/* LRAOR — hand-written overrides only */

/* ── Global body defaults ─────────────────────────────────────────────────── */
body {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400;
  color: #1F1C19;
  background: #F5EFE6;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Scope to main content only — footer/header paragraphs inherit from parent color class */
main p { color: #3D3A35; }

/* Body text size bump */
.prose-body, main p { font-size: 1.0625rem; }
@media (min-width: 1024px) {
  .prose-body, main p { font-size: 1.125rem; }
}

/* ── Fraunces variable font settings ─────────────────────────────────────── */
h1, h2, h3, h4, .font-display {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  color: #1E2A5E;
  font-variation-settings: "SOFT" 50, "WONK" 0, "opsz" 144;
  letter-spacing: -0.01em;
}
h1 { font-weight: 600; }

/* ── Eyebrow labels ───────────────────────────────────────────────────────── */
.eyebrow {
  font-weight: 600;
  letter-spacing: 0.25em;
  font-size: 0.75rem;
}

/* ── Card/group body text ─────────────────────────────────────────────────── */
.card-desc, .group p { color: #3D3A35; line-height: 1.6; }

/* ── Link underline offset ────────────────────────────────────────────────── */
a { text-underline-offset: 3px; }

/* ── Smooth scroll ────────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

/* ── Skip link ────────────────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 1rem;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: #B8562A;
  color: white;
  border-radius: 0.375rem;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 1rem; }

/* ── Prose defaults ───────────────────────────────────────────────────────── */
.prose-lraor p  { margin-bottom: 1.25rem; line-height: 1.75; }
.prose-lraor h2 { margin-top: 2.5rem; margin-bottom: 1rem; }
.prose-lraor h3 { margin-top: 2rem; margin-bottom: 0.75rem; }
.prose-lraor ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1.25rem; }
.prose-lraor li { margin-bottom: 0.375rem; line-height: 1.7; }

/* ── Opal accent utilities ────────────────────────────────────────────────── */
.opal-bar {
  height: 3px;
  width: 48px;
  background: linear-gradient(90deg, #2D5FB8 0%, #3FB5C4 25%, #4A8A3B 50%, #E8B923 75%, #C93B2A 100%);
  border-radius: 999px;
  flex-shrink: 0;
}

.opal-shimmer {
  background: linear-gradient(
    135deg,
    rgba(45,95,184,0.35)  0%,
    rgba(63,181,196,0.22) 33%,
    rgba(232,185,35,0.28) 66%,
    rgba(201,59,42,0.25)  100%
  );
  mix-blend-mode: soft-light;
}

/* ── Button utilities (plain CSS — @apply unavailable in Play CDN) ────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background-color: #1E2A5E; color: white;
  border-radius: 0.375rem; font-weight: 500;
  transition: background-color 0.2s;
  text-decoration: none;
}
.btn-primary:hover, .btn-primary:focus { background-color: #14204A; }

.btn-primary-warm {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background-color: #B8562A; color: white;
  border-radius: 0.375rem; font-weight: 500;
  transition: background-color 0.2s;
  text-decoration: none;
}
.btn-primary-warm:hover { background-color: #8C3A1A; }

.btn-primary-light {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background-color: white; color: #1E2A5E;
  border-radius: 0.375rem; font-weight: 500;
  transition: background-color 0.2s;
  text-decoration: none;
}
.btn-primary-light:hover { background-color: #F5EFE6; }

.btn-ghost-light {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border: 2px solid rgba(255,255,255,0.6); color: white;
  border-radius: 0.375rem; font-weight: 500;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
  text-decoration: none;
}
.btn-ghost-light:hover { background-color: white; border-color: white; color: #1E2A5E; }

.btn-primary:focus-visible,
.btn-primary-warm:focus-visible,
.btn-primary-light:focus-visible,
.btn-ghost-light:focus-visible {
  outline: 2px solid #B8562A;
  outline-offset: 2px;
}

/* ── Hero text shadow ─────────────────────────────────────────────────────── */
.hero-text-shadow { text-shadow: 0 2px 12px rgba(10,18,50,0.6), 0 1px 3px rgba(0,0,0,0.4); }

/* ── Hero animations ──────────────────────────────────────────────────────── */
.hero-reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: heroReveal 900ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  animation-delay: var(--d, 0ms);
}
@keyframes heroReveal {
  to { opacity: 1; transform: translateY(0); }
}

/* Ken Burns — subtle slow zoom on hero background */
.hero-kenburns img {
  animation: kenburns 22s ease-out forwards;
  will-change: transform;
}
@keyframes kenburns {
  from { transform: scale(1.0); }
  to   { transform: scale(1.08); }
}

/* Scroll cue pulse */
.scroll-cue-line {
  position: relative;
  overflow: hidden;
}
.scroll-cue-line::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 30%;
  background: rgba(255,255,255,0.9);
  animation: scrollCue 1.8s ease-in-out infinite;
}
@keyframes scrollCue {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(400%); }
}

/* ── Wandella parallax ────────────────────────────────────────────────────── */
.parallax-img {
  transform: translateY(0);
  will-change: transform;
  transition: transform 80ms linear;
}

/* ── Partners marquee ─────────────────────────────────────────────────────── */
.marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group {
  display: flex;
  gap: 0;
  padding-right: 0;
  align-items: center;
  flex-shrink: 0;
}
.marquee-item {
  width: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.partner-logo {
  width: 120px;
  height: 48px;
  object-fit: contain;
  opacity: 0.9;
  filter: none;
  transition: opacity 200ms, transform 200ms;
}
.partner-logo:hover { opacity: 1; transform: scale(1.05); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Card hover — only on pointer devices ─────────────────────────────────── */
@media (hover: hover) {
  .card-hover:hover {
    box-shadow: 0 25px 50px -12px rgba(30,42,94,0.18);
    transform: translateY(-4px);
  }
  .card-hover:hover .card-img { transform: scale(1.05); }
}
.card-hover { transition: transform 0.5s, box-shadow 0.5s; }
.card-img   { transition: transform 0.7s; }

/* ── prefers-reduced-motion — disable everything ─────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero-reveal { animation: none !important; opacity: 1; transform: none; }
  .hero-kenburns img { animation: none !important; }
  .scroll-cue-line::after { animation: none !important; }
  .marquee-track {
    animation: none !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    width: 100%;
  }
  .marquee-group:nth-child(2) { display: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
