/* ============================================================
   Vincent Alves Coaching — Dawn & Dusk Design System
   Palette, typography, components. Production-ready.
   ============================================================ */

:root {
  /* === DAWN (light surfaces) === */
  --paper:   #F5F1EA;
  --sand:    #E8DFD0;
  --dawn:    #F0E4D7;
  --bone:    #E8E5DE;
  --ink:     #1A1814;

  /* === DUSK (dark surfaces) === */
  --slate:   #0F1419;
  --horizon: #2A3947;
  --steel:   #8B95A1;

  /* === ACCENTS === */
  --ember:      #C44B2A;
  --ember-soft: rgba(196, 75, 42, 0.10);
  --mist:       #9FB3C8;
  --mist-soft:  rgba(159, 179, 200, 0.10);

  /* ============================================================
     UTILITY COLOR LAYER — for plan / training data only.
     Per RUNNING_PLAN_DESIGN.md: utility colors are signal, not
     atmosphere. They appear as edges, dots, pills, and gradient
     stops — never as page surfaces or body text. The brand layer
     above (Paper / Ink / Slate / Bone / Ember / Mist) is untouched.
     ============================================================ */

  /* === Pace zones (Karvonen/HRR effort bands) === */
  --zone-easy:          #2A6F4F;            /* forest — Z1-Z2 recovery / easy */
  --zone-easy-soft:     #C8DDD0;            /* tinted surface companion */
  --zone-marathon:      #5B7A8A;            /* slate-blue — Z3 marathon pace */
  --zone-marathon-soft: #D5DFE5;
  --zone-tempo:         #D4730E;            /* harvest amber — Z4 tempo / threshold */
  --zone-tempo-soft:    #F7E5C2;
  --zone-speed:         #C73E1D;            /* rust — Z5 VO₂max / speed */
  --zone-speed-soft:    #F4D5CC;
  --zone-race:          #C44B2A;            /* Ember — race day (intentional brand+utility convergence) */
  --zone-race-soft:     #F4D5CC;
  --zone-rest:          #8A8275;            /* steel-warm — rest */
  --zone-rest-soft:     #E8E5DE;

  /* === Session types (gym days; running types inherit zones) === */
  --sess-long:  #1A1814;                    /* Ink — long runs get the brand's most authoritative color */
  --sess-push:  #5B5B8A;                    /* muted indigo — gym upper push */
  --sess-pull:  #6B8E5A;                    /* olive — gym upper pull */
  --sess-legs:  #8B5B8A;                    /* muted plum — gym lower */

  /* === Week states (macrocycle vocabulary) === */
  --week-build:    #1A1814;                 /* Ink — default heavy block */
  --week-peak:     #C73E1D;                 /* rust — biggest stimulus, sparingly */
  --week-race:     #C44B2A;                 /* Ember — week containing race day */
  --week-taper:    #D4730E;                 /* harvest amber — deload before race */
  --week-recovery: #2A6F4F;                 /* forest — week after race */
  --week-handoff:  #8A8275;                 /* steel-warm — final / transitional */

  /* === Type === */
  --serif:        "Merriweather", Georgia, "Times New Roman", serif;
  --serif-italic: "Cormorant Garamond", "Merriweather", Georgia, serif;
  --sans:         "Figtree", system-ui, -apple-system, "Segoe UI Variable", "Segoe UI", sans-serif;
  --mono:         "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* === Type scale === */
  --scale: 1;
  --fs-mini:  calc(11px * var(--scale));
  --fs-micro: calc(12px * var(--scale));
  --fs-xs:    calc(13px * var(--scale));
  --fs-sm:    calc(14px * var(--scale));
  --fs-base:  calc(16px * var(--scale));
  --fs-md:    calc(18px * var(--scale));
  --fs-lg:    calc(22px * var(--scale));
  --fs-xl:    calc(28px * var(--scale));
  --fs-2xl:   calc(36px * var(--scale));
  --fs-3xl:   calc(48px * var(--scale));
  --fs-4xl:   calc(64px * var(--scale));
  --fs-5xl:   calc(88px * var(--scale));

  /* === Density === */
  --density: 1;
  --sp-1: calc(4px  * var(--density));
  --sp-2: calc(8px  * var(--density));
  --sp-3: calc(12px * var(--density));
  --sp-4: calc(16px * var(--density));
  --sp-5: calc(20px * var(--density));
  --sp-6: calc(24px * var(--density));
  --sp-8: calc(32px * var(--density));
  --sp-10: calc(40px * var(--density));
  --sp-12: calc(48px * var(--density));
  --sp-16: calc(64px * var(--density));

  /* === Radii — tight, by brand === */
  --r-xs: 2px;
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 10px;

  /* === Section divider === */
  --rule-w: 80px;
  --rule-h: 1px;

  /* === Surface bindings (mode-dependent) === */
  --bg:       var(--paper);
  --bg-2:     var(--sand);
  --fg:       var(--ink);
  --fg-quiet: rgba(26, 24, 20, 0.65);
  --border:   rgba(26, 24, 20, 0.12);
  --card:     var(--bone);
  --on-accent: var(--bone);

  /* === Motion === */
  --ease: cubic-bezier(0.2, 0, 0, 1);

  /* === Layout === */
  --section-pad: 128px;
}

[data-mode="dusk"] {
  --bg:       var(--slate);
  --bg-2:     var(--horizon);
  --fg:       var(--bone);
  --fg-quiet: var(--steel);
  --border:   rgba(232, 229, 222, 0.12);
  --card:     var(--horizon);
  --on-accent: var(--bone);

  /* Utility-color Dusk overrides — lit variants per RUNNING_PLAN_DESIGN.md.
     Same OKLCH lightness as their Dawn siblings, just shifted brighter for
     dark surfaces. Soft companions go darker, not lighter, so tinted blocks
     stay quiet on a dark page. */
  --zone-easy:          #4FA87A;
  --zone-easy-soft:     #14302A;
  --zone-marathon:      #7FA0B0;
  --zone-marathon-soft: #1A2A35;
  --zone-tempo:         #FFC04D;
  --zone-tempo-soft:    #3A2A0E;
  --zone-speed:         #FF5A3D;
  --zone-speed-soft:    #3A1A14;
  --zone-race:          #FF7038;
  --zone-race-soft:     #3A1A14;
  --zone-rest:          #6B6B7B;
  --zone-rest-soft:     #2A2A3A;

  --sess-long:  #F0E6D2;            /* Bone — Dusk inverse of Ink */
  --sess-push:  #8080BA;
  --sess-pull:  #8FB07A;
  --sess-legs:  #BA80BA;

  --week-build:    #F0E6D2;
  --week-peak:     #FF5A3D;
  --week-race:     #FF7038;
  --week-taper:    #FFC04D;
  --week-recovery: #4FA87A;
  --week-handoff:  #6B6B7B;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; }

/* === Typography helpers === */
.va-serif        { font-family: var(--serif); }
.va-italic       { font-family: var(--serif-italic); font-style: italic; }
.va-sans         { font-family: var(--sans); }
.va-mono         { font-family: var(--mono); }

.va-h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(40px, 6vw, var(--fs-4xl));
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin: 0;
}
.va-h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: var(--fs-2xl);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0;
}
.va-h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: var(--fs-xl);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}
.va-h4 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: var(--fs-lg);
  line-height: 1.2;
  margin: 0;
}
.va-italic-display {
  font-family: var(--serif-italic);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 4vw, var(--fs-3xl));
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--ember);
  margin: 0;
}
.va-body {
  font-family: var(--serif);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--fg);
  margin: 0;
}
.va-body-sans {
  font-family: var(--sans);
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--fg);
  margin: 0;
}
.va-eyebrow {
  font-family: var(--sans);
  font-size: var(--fs-mini);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ember);
  margin: 0;
}
.va-caption {
  font-family: var(--sans);
  font-size: var(--fs-micro);
  color: var(--fg-quiet);
  letter-spacing: 0.02em;
  margin: 0;
}
.fine-print {
  font-family: var(--sans);
  font-size: var(--fs-micro);
  color: var(--fg-quiet);
  line-height: 1.5;
  margin: 0;
}

/* === Section divider — Ember rule === */
.va-rule {
  display: block;
  width: var(--rule-w);
  height: var(--rule-h);
  background: var(--ember);
  border: 0;
  margin: 0;
}
.va-rule.center { margin-left: auto; margin-right: auto; }

/* === Buttons / CTAs === */
.va-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  font-family: var(--sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-accent);
  background: var(--ember);
  border: 1px solid var(--slate);
  border-radius: var(--r-sm);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 180ms cubic-bezier(0.2, 0, 0, 1), transform 180ms cubic-bezier(0.2, 0, 0, 1), box-shadow 180ms cubic-bezier(0.2, 0, 0, 1);
}
.va-cta:hover {
  background: color-mix(in oklab, var(--ember) 90%, black 10%);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px -6px color-mix(in oklab, var(--ember) 40%, transparent);
}
.va-cta:active {
  background: color-mix(in oklab, var(--ember) 85%, black 15%);
  transform: translateY(0);
  box-shadow: 0 1px 4px -2px color-mix(in oklab, var(--ember) 30%, transparent);
}
.va-cta:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
}
.va-cta:disabled,
.va-cta.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
.va-cta--mist {
  background: var(--mist);
  color: var(--slate);
  border-color: var(--slate);
}
.va-cta--mist:hover {
  background: color-mix(in oklab, var(--mist) 90%, black 10%);
  transform: translateY(-1px);
}
.va-cta--mist:active {
  background: color-mix(in oklab, var(--mist) 85%, black 15%);
  transform: translateY(0);
}
.va-cta--ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--fg);
}
.va-cta--ghost:hover {
  background: color-mix(in oklab, var(--fg) 8%, transparent);
  transform: translateY(-1px);
}
.va-cta--ghost:active {
  background: color-mix(in oklab, var(--fg) 14%, transparent);
  transform: translateY(0);
}
.va-cta--text {
  background: transparent;
  color: var(--ember);
  border: 0;
  padding: 8px 0;
  border-bottom: 1px solid var(--ember);
  border-radius: 0;
  text-transform: none;
  letter-spacing: 0;
  transition: color 200ms ease, border-bottom-color 200ms ease;
}
.va-cta--text:hover {
  color: color-mix(in oklab, var(--ember) 88%, black 12%);
  border-bottom-color: color-mix(in oklab, var(--ember) 88%, black 12%);
}
.va-cta--text:active {
  color: color-mix(in oklab, var(--ember) 80%, black 20%);
  border-bottom-color: color-mix(in oklab, var(--ember) 80%, black 20%);
}
.va-cta--lg { padding: 18px 28px; font-size: var(--fs-sm); }
.va-cta--sm { padding: 10px 16px; font-size: var(--fs-mini); }

/* === Em-dash list === */
.va-list { list-style: none; padding: 0; margin: 0; }
.va-list li {
  font-family: var(--serif);
  font-size: var(--fs-base);
  line-height: 1.6;
  padding-left: 28px;
  position: relative;
  margin-bottom: 8px;
  color: var(--fg);
}
.va-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--ember);
  font-weight: 700;
}

/* === Cards === */
.va-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-6);
}

/* === Inputs === */
.va-input {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--sans);
  font-size: var(--fs-sm);
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.va-input:focus {
  outline: 0;
  border-color: var(--ember);
  box-shadow: 0 0 0 3px rgba(196, 75, 42, 0.18);
}
.va-input::placeholder { color: var(--fg-quiet); }
.va-label {
  display: block;
  font-family: var(--sans);
  font-size: var(--fs-mini);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-quiet);
  margin: 0 0 6px;
}

/* === Surface utilities === */
.va-surface {
  background: var(--bg);
  color: var(--fg);
  transition: background 250ms ease, color 250ms ease;
}

/* ============================================================
   Layout & sections
   ============================================================ */
.va-inner       { max-width: 1040px; margin: 0 auto; padding: 0 40px; }
.va-inner-wide  { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.va-inner-narrow{ max-width: 880px;  margin: 0 auto; padding: 0 40px; }

.va-section {
  padding: var(--section-pad) 0;
  background: var(--bg);
  color: var(--fg);
  position: relative;
}

/* ============================================================
   Nav (shared) — dawn + dusk surfaces
   Used on every non-homepage page. Homepage uses its own
   sticky-adaptive nav inline.
   ============================================================ */
.va-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.va-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.va-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--fg);
}
.va-brand img { width: 32px; height: 32px; object-fit: contain; }
.va-brand-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--fg);
}
.va-brand-name em {
  font-family: var(--serif-italic);
  font-style: italic;
  font-weight: 400;
}
.va-nav-links {
  display: flex;
  gap: 32px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
}
.va-nav-links a {
  color: var(--fg);
  opacity: 0.78;
  transition: opacity 150ms ease;
}
.va-nav-links a:hover { opacity: 1; }
.va-nav-actions { display: flex; align-items: center; gap: 16px; }
.va-nav-actions .va-cta { margin-left: 24px; }
.va-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
  transition: color 200ms ease;
}
.va-social:hover { color: var(--ember); }
.va-social:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 2px;
  border-radius: 2px;
}

/* (was 760, aligned with mobile dispatcher 767 — see L1234 sibling rule) */

/* ============================================================
   Footer (always Dusk)
   ============================================================ */
.va-footer {
  background: var(--slate);
  color: var(--bone);
  padding: 80px 0 40px;
}
.va-footer .va-inner-wide,
.va-footer .va-inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.va-footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}
.va-footer-mark {
  font-family: var(--serif-italic);
  font-style: italic;
  color: var(--ember);
  font-size: 32px;
  letter-spacing: -0.01em;
  line-height: 1;
}
.va-footer-tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--steel);
  letter-spacing: 0.08em;
  margin-top: 8px;
  text-transform: uppercase;
}
.va-footer-blurb {
  font-size: 14px;
  color: var(--steel);
  max-width: 46ch;
  margin-top: 24px;
  line-height: 1.6;
}
.va-footer-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 24px;
}
.va-footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-size: 14px;
}
.va-footer-links a {
  color: var(--steel);
  position: relative;
  padding-bottom: 2px;
}
.va-footer-links a:hover { color: var(--bone); }
.va-footer-socials {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--bone);
}
.va-footer-meta {
  font-size: 13px;
  color: var(--steel);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--horizon);
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .va-footer-side { align-items: flex-start; }
  .va-footer-links { justify-content: flex-start; }
}

/* ============================================================
   Hero — homepage only
   ============================================================ */
@keyframes va-kenburns {
  0%   { transform: scale(1.00); }
  100% { transform: scale(1.04); }
}
.va-kenburns {
  animation: va-kenburns 20s var(--ease) infinite alternate;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.va-hero { position: relative; overflow: hidden; }
.va-hero-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(15,20,25,0.35) 0%, rgba(15,20,25,0.05) 28%, rgba(15,20,25,0) 55%, rgba(15,20,25,0.6) 100%);
}

/* ============================================================
   Reveal animation (fade-up on scroll)
   ============================================================ */
.va-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.va-reveal.in,
.no-js .va-reveal { opacity: 1; transform: none; }

/* ============================================================
   Mobile responsive helpers
   ============================================================ */
@media (max-width: 900px) {
  :root { --section-pad: 88px; }
}
@media (max-width: 640px) {
  :root { --section-pad: 64px; }
  .va-inner, .va-inner-wide, .va-inner-narrow { padding: 0 24px; }
}

/* ============================================================
   Sprint 5b — Mobile landing (Glass on Photo)
   Activates only on body[data-view="mobile"].
   Honors PRODUCT.md "commit, don't hedge" — full-bleed photo,
   floating chrome, Ember CTA, scroll-locked viewport.
   Conscious deviations from DESIGN.md L163 (glass) and
   PRODUCT.md L100 (Ember on Silver path) — both approved by
   project owner; tracked in root-files grill-me follow-up.
   ============================================================ */

/* Dispatcher — toggles desktop/mobile trees */
body[data-view="mobile"] .va-desktop-tree { display: none; }
body[data-view="mobile"] .va-mobile-tree  { display: block; }
body[data-view="desktop"] .va-mobile-tree { display: none; }
body[data-view="desktop"] .va-desktop-tree { display: block; }

body[data-view="mobile"] {
  overflow: hidden;
  height: 100svh;
  background: var(--slate);
}

/* Mobile lander root — fills viewport */
.va-mobile-tree { position: relative; height: 100svh; overflow: hidden; }

.va-mobile-lander {
  position: relative;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  isolation: isolate; /* contains the photo's stacking context */
}

/* Full-bleed photo */
.va-mobile-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% 50%; /* favors the runner's right-of-center position */
  z-index: 1;
}

/* Photo gradient overlay — top + bottom thirds darkened for type contrast */
.va-mobile-photo-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(15,20,25,0.62) 0%, rgba(15,20,25,0.20) 22%, rgba(15,20,25,0) 42%, rgba(15,20,25,0) 56%, rgba(15,20,25,0.30) 76%, rgba(15,20,25,0.78) 100%);
}

/* Top chrome — wordmark + hamburger */
.va-mobile-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px 0;
}

.va-mobile-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--bone);
  text-decoration: none;
  /* Filter ensures bone-on-bright-photo legibility */
  filter: drop-shadow(0 1px 8px rgba(15, 20, 25, 0.55));
}
.va-mobile-mark-logo {
  display: block;
  height: 22px;
  width: auto;
  flex-shrink: 0;
}
.va-mobile-mark-word {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  color: var(--bone);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.va-mobile-mark-coaching {
  font-family: var(--serif-italic);
  font-style: italic;
  font-weight: 400;
  opacity: 0.82;
  /* Force a soft visual break between Alves and Coaching without a dot */
  margin-left: 2px;
}

/* Hamburger trigger — 3-stripe for universal recognition */
.va-mobile-hamburger {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(15, 20, 25, 0.32);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  border: 1px solid rgba(232, 229, 222, 0.22);
  border-radius: 999px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: background-color 180ms var(--ease), border-color 180ms var(--ease);
}
@supports not (backdrop-filter: blur(8px)) {
  .va-mobile-hamburger { background: rgba(15, 20, 25, 0.78); }
}
.va-mobile-hamburger:hover { background: rgba(15, 20, 25, 0.5); }
.va-mobile-hamburger:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
}
.va-mobile-hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--bone);
  border-radius: 1px;
  transition: transform 200ms var(--ease), opacity 180ms var(--ease);
}

/* Headline + subhead block — upper third, shifted up to free CTA real estate */
.va-mobile-headline {
  position: absolute;
  top: 13%;
  left: 0;
  right: 0;
  padding: 0 24px;
  z-index: 5;
  color: var(--bone);
}
/* Localized radial scrim behind headline — survives busy backgrounds without
   darkening the entire upper third like the page-wide scrim does */
.va-mobile-headline-scrim {
  position: absolute;
  inset: -16px -8px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    120% 70% at 30% 50%,
    rgba(15, 20, 25, 0.55) 0%,
    rgba(15, 20, 25, 0.30) 40%,
    rgba(15, 20, 25, 0) 78%
  );
  filter: blur(12px);
}
.va-mobile-h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(34px, 9.2vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
  color: var(--bone);
  text-shadow: 0 2px 20px rgba(15, 20, 25, 0.65), 0 1px 4px rgba(15, 20, 25, 0.55);
}
.va-mobile-h1-italic {
  display: block;
  font-family: var(--serif-italic);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(34px, 9.2vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--bone);
  text-shadow: 0 2px 20px rgba(15, 20, 25, 0.65), 0 1px 4px rgba(15, 20, 25, 0.55);
}

/* Subhead — moved below the CTA bar (Round 4). Sits inside .va-mobile-cta-wrap
   so it tracks the CTA's lift. Spacing above keyed to the CTA's bottom edge.
   Round 5: left-aligned, font-size +5% (15px → ~15.75px). */
.va-mobile-sub {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-size: 15.75px;
  line-height: 1.45;
  color: var(--bone);
  opacity: 0.95;
  text-shadow: 0 1px 12px rgba(15, 20, 25, 0.7), 0 1px 3px rgba(15, 20, 25, 0.5);
  max-width: 26ch;
  text-align: left;
}

/* Three-step pill row — center-aligned, single line, never wraps.
   Round 5 changes per Vince:
   - Pills 18% smaller overall (padding + label + numeral all reduced).
   - Pill background goes translucent slate (50% MORE transparent than the
     hamburger overlay's rgba(15,20,25,0.96) → roughly rgba(15,20,25,0.48)).
   - Ember moves from full pill background INTO the numeral bubble only.
   - Thin ember border (1px) around each pill.
   - Top distance above CTA mirrors the subhead's 14px below CTA. */
.va-mobile-steps {
  position: absolute;
  /* CTA top is `38% - cap-height`. CTA visual height ≈ 58px (min-height).
     Mirror the subhead's 14px gap below the CTA's bottom edge by anchoring
     the pill row's bottom 14px above the CTA's top.
     Round 6: pill row height ≈ 26px (post -14% shrink from 30px). */
  top: calc(38% - clamp(22px, 6.3vw, 30px) - 14px - 26px);
  left: 0;
  right: 0;
  padding: 0 20px;
  z-index: 5;
  display: flex;
  flex-wrap: nowrap;          /* Hard rule: never break to row 2. */
  justify-content: center;
  align-items: stretch;
  /* Round 6: gap -14% (was 8px → 6.9px). */
  gap: 6.9px;
  margin: 0;
  list-style: none;
}
.va-mobile-step {
  flex: 1 1 0;                /* Equal-width pills sharing the row. */
  min-width: 0;               /* Allow shrink rather than overflow. */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* Round 6: gap -14% (was 5px → 4.3px). */
  gap: 4.3px;
  /* Round 6: padding -14% (was 6.5px 8.2px → 5.6px 7.05px). */
  padding: 5.6px 7.05px;
  /* Translucent slate fill, ember border (Round 5 spec retained). */
  background: rgba(15, 20, 25, 0.48);
  border: 1px solid var(--ember);
  color: var(--bone);
  border-radius: 999px;
  box-shadow: 0 1px 4px rgba(15, 20, 25, 0.35);
  white-space: nowrap;
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  backdrop-filter: blur(8px) saturate(140%);
}
.va-mobile-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* Round 6: numeral bubble -14% (was 14.75px → 12.7px). */
  width: 12.7px;
  height: 12.7px;
  border-radius: 999px;
  background: var(--ember);
  color: var(--bone);
  font-family: var(--mono);
  /* Round 6: numeral font -14% (was 9px → 7.75px). */
  font-size: 7.75px;
  font-weight: 600;
  line-height: 1;
  flex: 0 0 auto;
}
.va-mobile-step-label {
  font-family: var(--sans);
  /* Round 6: label font -14% (was 10.25px → 8.8px). */
  font-size: 8.8px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 360px) {
  /* Round 6: -14% propagation on the small-Android override too. */
  .va-mobile-steps { gap: 5.2px; padding: 0 14px; }
  .va-mobile-step { padding: 4.7px 5.6px; gap: 3.4px; }
  .va-mobile-step-label { font-size: 8.2px; }
  .va-mobile-step-num { width: 11.2px; height: 11.2px; font-size: 7.3px; }
}

/* Primary CTA — Round 4: lifted further by 1 cap-height of the headline italic
   "E" so the pill row above sits in the visual midline. Cap-height of
   Cormorant italic ≈ 0.69 × font-size; the headline font-size is
   clamp(34px, 9.2vw, 44px), so the lift is clamp(22px, 6.3vw, 30px). */
.va-mobile-cta-wrap {
  position: absolute;
  top: calc(38% - clamp(22px, 6.3vw, 30px));
  left: 0;
  right: 0;
  padding: 0 20px;
  z-index: 5;
}
.va-mobile-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 18px 22px;
  background: var(--ember);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 12px 32px -10px rgba(196, 75, 42, 0.55), 0 2px 8px rgba(15, 20, 25, 0.4);
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), background-color 180ms var(--ease);
}
.va-mobile-cta:hover {
  background: color-mix(in oklab, var(--ember) 92%, black 8%);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -10px rgba(196, 75, 42, 0.65), 0 2px 8px rgba(15, 20, 25, 0.4);
}
.va-mobile-cta:active {
  transform: translateY(0);
  box-shadow: 0 6px 18px -6px rgba(196, 75, 42, 0.55);
}
.va-mobile-cta:focus-visible {
  outline: 2px solid var(--bone);
  outline-offset: 3px;
}
/* Subtle resting drift on the arrow — reads as "this is the next step"
   without being needy. Mobile users almost never trigger :hover, so the
   resting state needed something. 4s cycle: ~1s of motion, 3s of pause.
   Drift distance (3px) matches the :hover transform so the motion
   language is consistent across rest and interaction states. */
@keyframes va-mobile-cta-arrow-drift {
  0%, 100% { transform: translateX(0); }
  12%      { transform: translateX(3px); }
  24%      { transform: translateX(0); }
}
.va-mobile-cta-arrow {
  display: inline-flex;
  align-items: center;
  font-size: 17px;
  line-height: 1;
  /* Pulls arrow back to optical baseline against the 15px label */
  position: relative;
  top: 0.5px;
  transition: transform 180ms var(--ease);
  animation: va-mobile-cta-arrow-drift 4s var(--ease) infinite;
}
/* Pause the resting drift on interaction so the :hover transform wins cleanly. */
.va-mobile-cta:hover .va-mobile-cta-arrow,
.va-mobile-cta:active .va-mobile-cta-arrow { animation-play-state: paused; }
.va-mobile-cta:hover .va-mobile-cta-arrow { transform: translateX(3px); }

/* Bottom corners — stats-strip treatment per DESIGN.md L259-265
   Numerals in Cormorant italic; labels in Figtree mono caps. */
.va-mobile-corners {
  position: absolute;
  bottom: max(36px, env(safe-area-inset-bottom, 24px));
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 24px;
  color: var(--bone);
}
.va-mobile-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  filter: drop-shadow(0 1px 8px rgba(15, 20, 25, 0.55));
}
.va-mobile-stat--right { align-items: flex-end; text-align: right; }
.va-mobile-stat-num {
  font-family: var(--serif-italic);
  font-style: italic;
  font-weight: 500;
  font-size: 26px;
  line-height: 1;
  color: var(--bone);
  letter-spacing: -0.01em;
}
.va-mobile-stat-num--word {
  /* "ISSA" treated as a numeric peer — same italic display rhythm */
  letter-spacing: 0.02em;
}
.va-mobile-stat-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone);
  opacity: 0.78;
}
/* Restore an ember underscore on the left numeral per DESIGN.md stats-strip
   "Optional Ember underscore beneath the number" */
.va-mobile-stat:first-child .va-mobile-stat-num {
  position: relative;
  padding-bottom: 3px;
}
.va-mobile-stat:first-child .va-mobile-stat-num::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 18px;
  height: 1.5px;
  background: var(--ember);
}

/* ============================================================
   Mobile hamburger overlay (glass)
   ============================================================ */
.va-mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  padding: 0;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 240ms var(--ease), visibility 0s linear 240ms;
}
.va-mobile-nav.is-open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
  transition: opacity 240ms var(--ease), visibility 0s linear 0s;
}

/* Glass backdrop */
.va-mobile-nav-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 20, 25, 0.62);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  z-index: 1;
}
@supports not (backdrop-filter: blur(8px)) {
  .va-mobile-nav-backdrop { background: rgba(15, 20, 25, 0.96); }
}

.va-mobile-nav-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 20px 24px 32px;
}

.va-mobile-nav-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 56px;
}
.va-mobile-nav-mark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  color: var(--bone);
  letter-spacing: -0.01em;
}
.va-mobile-nav-mark em {
  font-family: var(--serif-italic);
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  margin-left: 6px;
  opacity: 0.82;
}
.va-mobile-nav-close {
  appearance: none;
  background: transparent;
  border: 1px solid rgba(232, 229, 222, 0.28);
  border-radius: 999px;
  width: 44px;
  height: 44px;
  color: var(--bone);
  font-size: 20px;
  font-family: var(--sans);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 180ms var(--ease), background-color 180ms var(--ease);
}
.va-mobile-nav-close:hover {
  background: rgba(232, 229, 222, 0.08);
  border-color: rgba(232, 229, 222, 0.5);
}
.va-mobile-nav-close:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
}

.va-mobile-nav-rule {
  display: block;
  width: 28px;
  height: 1.5px;
  background: var(--ember);
  border: 0;
  margin: 0 0 14px;
}

.va-mobile-nav-list {
  flex: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.va-mobile-nav-list li {
  border-bottom: 1px solid rgba(232, 229, 222, 0.10);
}
.va-mobile-nav-list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 22px 0;
  font-family: var(--serif-italic);
  font-style: italic;
  font-size: 28px;
  font-weight: 400;
  color: var(--bone);
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color 180ms var(--ease), padding-left 180ms var(--ease);
}
.va-mobile-nav-list a::after {
  content: "→";
  font-family: var(--sans);
  font-style: normal;
  font-size: 16px;
  opacity: 0.5;
  transition: transform 180ms var(--ease), opacity 180ms var(--ease);
}
.va-mobile-nav-list a:hover {
  color: color-mix(in oklab, var(--ember) 70%, var(--bone) 30%);
  padding-left: 8px;
}
.va-mobile-nav-list a:hover::after {
  opacity: 1;
  transform: translateX(4px);
  color: var(--ember);
}
.va-mobile-nav-list a:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 4px;
  border-radius: 2px;
}
.va-mobile-nav-num {
  font-family: var(--mono);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--steel);
  margin-right: 14px;
  vertical-align: middle;
}

.va-mobile-nav-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 58px;
  margin-top: 24px;
  background: var(--ember);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 12px 32px -10px rgba(196, 75, 42, 0.55);
  transition: transform 180ms var(--ease), background-color 180ms var(--ease);
}
.va-mobile-nav-cta:hover {
  background: color-mix(in oklab, var(--ember) 92%, black 8%);
  transform: translateY(-2px);
}
.va-mobile-nav-cta:active { transform: translateY(0); }
.va-mobile-nav-cta:focus-visible {
  outline: 2px solid var(--bone);
  outline-offset: 3px;
}
/* Social icons row inside the hamburger overlay — sits below the CTA */
.va-mobile-nav-socials {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}
.va-mobile-nav-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(232, 229, 222, 0.22);
  color: var(--bone);
  text-decoration: none;
  transition: color 180ms var(--ease), border-color 180ms var(--ease), background-color 180ms var(--ease);
}
.va-mobile-nav-social:hover {
  color: var(--ember);
  border-color: rgba(196, 75, 42, 0.55);
  background: rgba(196, 75, 42, 0.08);
}
.va-mobile-nav-social:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
}

.va-mobile-nav-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
}

/* Reduced motion — disable all the moving parts */
@media (prefers-reduced-motion: reduce) {
  .va-mobile-cta,
  .va-mobile-cta-arrow,
  .va-mobile-nav,
  .va-mobile-nav-list a,
  .va-mobile-nav-list a::after,
  .va-mobile-nav-cta,
  .va-mobile-hamburger,
  .va-mobile-hamburger span {
    transition: none;
  }
  .va-mobile-cta-arrow { animation: none; }
}

/* Update existing nav-links breakpoint to match dispatcher (was 760, now 767) */
@media (max-width: 767px) {
  .va-nav-links { display: none; }
}
