/* ==========================================================================
   FORMCHECK — Marketing site
   Apple-inspired theme: true black + soft gray, SF Pro typography, restrained
   accents. Courtroom concept lives in the copy, not the chrome.
   ========================================================================== */

:root {
  /* Surfaces — Apple-like neutral system */
  --ink:        #000000;          /* hero / cinematic black */
  --ink-2:      #0a0a0a;
  --ink-3:      #1d1d1f;          /* Apple body-text dark */
  --surface:    #f5f5f7;          /* Apple soft gray */
  --surface-2:  #fbfbfd;          /* nearly white */
  --rule:       rgba(255, 255, 255, 0.10);
  --rule-2:     rgba(255, 255, 255, 0.18);
  --rule-dark:  rgba(0, 0, 0, 0.08);
  --rule-dark-2:rgba(0, 0, 0, 0.14);

  /* Text */
  --on-dark:    #f5f5f7;
  --on-dark-2:  #a1a1a6;          /* Apple muted on dark */
  --on-dark-3:  #6e6e73;
  --on-light:   #1d1d1f;
  --on-light-2: #6e6e73;          /* Apple muted on light */
  --on-light-3: #86868b;

  /* Accents — restrained */
  --brand:      #2997ff;          /* Apple link blue (informational hover) */
  --brand-2:    #0071e3;          /* Apple primary button blue */
  --brass:      #b08d4e;          /* premium highlight only */
  --brass-2:    #d3ab68;
  --cobalt:     #5b8def;          /* skeleton left */
  --cyan:       #64d2ff;          /* skeleton right */
  --lime:       #b5e853;          /* angle highlight, used sparingly */

  /* Verdicts (Apple system colors) */
  --admitted:     #30d158;
  --admitted-soft:rgba(48, 209, 88, 0.16);
  --pending:      #ff9f0a;
  --pending-soft: rgba(255, 159, 10, 0.16);
  --objected:     #ff453a;
  --objected-soft:rgba(255, 69, 58, 0.16);

  /* Type */
  --ff-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  --ff-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --ff-serif: "Iowan Old Style", "Apple Garamond", "Hoefler Text", Garamond, "Times New Roman", ui-serif, serif;

  /* Layout */
  --gutter: clamp(22px, 5vw, 80px);
  --section-y: clamp(96px, 14vw, 180px);
  --maxw: 1240px;
  --maxw-narrow: 980px;
  --maxw-text: 720px;

  /* Motion */
  --ease:     cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  background: var(--ink);
  color: var(--on-dark);
  font-family: var(--ff-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.47;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--brand-2); color: #fff; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute; top: -100px; left: 12px; z-index: 200;
  background: #fff; color: var(--on-light);
  padding: 10px 16px; font-weight: 600; font-size: 14px;
  border-radius: 999px;
}
.skip:focus { top: 12px; }

/* ============================================================
   PROGRESS BAR  (kept minimal — Apple has nothing similar but
   it's useful here for scroll feedback. Hairline, white.)
   ============================================================ */
.progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px; z-index: 110;
  background: transparent;
  pointer-events: none;
}
.progress__bar {
  height: 100%; width: 0;
  background: #fff;
  opacity: .7;
  transition: width .15s linear;
}

/* ============================================================
   TYPOGRAPHY UTILITIES
   ============================================================ */
.eyebrow {
  display: inline-block;
  font-size: 17px;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: -0.005em;
  line-height: 1.2;
}
.eyebrow--brass { color: var(--brass-2); }
.eyebrow--muted { color: var(--on-dark-2); }
.eyebrow--on-light { color: var(--brand-2); }

.headline {
  font-family: var(--ff-sans);
  font-weight: 600;
  font-size: clamp(40px, 5.6vw, 80px);
  line-height: 1.0625;
  letter-spacing: -0.015em;
  color: var(--on-dark);
}
.headline--xl {
  font-size: clamp(48px, 8vw, 96px);
  line-height: 1.05;
  letter-spacing: -0.022em;
}
.subhead {
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 400;
  line-height: 1.38;
  letter-spacing: 0;
  color: var(--on-dark-2);
}
.body {
  font-size: 17px;
  line-height: 1.52;
  color: var(--on-dark-2);
}

/* On light surfaces */
.on-light .headline,
.on-light .eyebrow + .headline,
.on-light h1, .on-light h2, .on-light h3 { color: var(--on-light); }
.on-light .subhead, .on-light .body { color: var(--on-light-2); }
.on-light .eyebrow { color: var(--brand-2); }

/* ============================================================
   BUTTONS  (Apple pill style)
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  font-family: var(--ff-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.18;
  letter-spacing: -0.005em;
  padding: 12px 22px;
  border-radius: 980px;
  border: 1px solid transparent;
  color: #fff;
  background: var(--brand-2);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), opacity .25s var(--ease);
  white-space: nowrap;
  min-height: 44px;
}
.btn:hover { background: #0077ed; }
.btn:active { opacity: .9; }

/* Premium metallic-gold CTA — used for the "Try web demo" button.
   Multi-stop gold gradient + scroll-reactive shine via the --gold-shift
   CSS variable (set by inline JS at the bottom of index.html), so the
   reflection band drifts as you scroll, the way real polished metal
   would respond to a shifting light source. !important is used to win
   over the generic .btn rule shipped earlier in the file. */
.btn.btn--gold {
  --gold-shift: 0%;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(120, 80, 20, 0.55) !important;
  color: #2a1d05 !important;
  background:
    linear-gradient(
      135deg,
      #8a5a14 0%,
      #c89744 14%,
      #e9c47e 28%,
      #fff4c2 36%,        /* bright highlight */
      #fffbe8 40%,        /* hot spot */
      #fff4c2 44%,
      #e9c47e 56%,
      #c89744 72%,
      #8a5a14 88%,
      #d2a04a 100%
    ) !important;
  background-size: 240% 240% !important;
  background-position: calc(var(--gold-shift) * 1) center !important;
  background-repeat: no-repeat !important;
  box-shadow:
    0 1px 0 rgba(255, 246, 218, 0.65) inset,
    0 -1px 0 rgba(80, 50, 10, 0.4) inset,
    0 10px 22px -10px rgba(200, 151, 68, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.08) !important;
  font-weight: 700 !important;
  letter-spacing: -0.005em;
  text-shadow: 0 1px 0 rgba(255, 240, 200, 0.45);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease,
    background-position 220ms cubic-bezier(.4,0,.2,1);
}
.btn.btn--gold:hover {
  transform: translateY(-1px);
  filter: saturate(1.15) brightness(1.04);
  box-shadow:
    0 1px 0 rgba(255, 246, 218, 0.7) inset,
    0 -1px 0 rgba(80, 50, 10, 0.4) inset,
    0 16px 30px -12px rgba(200, 151, 68, 0.75),
    0 0 0 1px rgba(255, 255, 255, 0.10) !important;
}
.btn.btn--gold:active { transform: translateY(0); filter: brightness(0.96); }

/* The shimmer sweep that runs across every few seconds — gives the button
   a subtle "alive" feeling even when the user isn't scrolling. */
.btn--gold-spark {
  position: absolute;
  top: 0; bottom: 0; left: -60%;
  width: 45%;
  background: linear-gradient(110deg,
    rgba(255,255,255,0) 0%,
    rgba(255,253,230,0.75) 50%,
    rgba(255,255,255,0) 100%);
  transform: skewX(-18deg);
  animation: goldSpark 3.4s cubic-bezier(.4,0,.2,1) infinite;
  pointer-events: none;
  z-index: 2;
}
@keyframes goldSpark {
  0%   { left: -60%; opacity: 0; }
  20%  { opacity: 0.9; }
  60%  { left: 110%; opacity: 0.9; }
  100% { left: 110%; opacity: 0; }
}
.on-light .btn.btn--gold { color: #2a1d05 !important; }

.btn--soon {
  background: transparent;
  color: rgba(255,255,255,0.55);
  border-color: rgba(255,255,255,0.18);
  cursor: not-allowed;
  position: relative;
  pointer-events: none;
}
.btn--soon:hover { background: transparent; color: rgba(255,255,255,0.55); }
.on-light .btn--soon {
  color: rgba(0,0,0,0.42);
  border-color: rgba(0,0,0,0.14);
}
.on-light .btn--soon:hover { background: transparent; color: rgba(0,0,0,0.42); }

.btn--ghost {
  background: transparent;
  color: var(--on-dark);
  border-color: rgba(255,255,255,0.4);
}
.btn--ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.6); }

.on-light .btn--ghost {
  color: var(--on-light);
  border-color: rgba(0,0,0,0.18);
}
.on-light .btn--ghost:hover { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.4); }

.btn--quiet {
  background: transparent;
  color: var(--brand);
  padding: 12px 0;
  min-height: 0;
}
.btn--quiet:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 4px; background: transparent; }

.on-light .btn--quiet { color: var(--brand-2); }

.btn--white {
  background: #fff;
  color: var(--on-light);
}
.btn--white:hover { background: #f5f5f7; }

/* ============================================================
   PRIMARY NAV  (Apple-style narrow translucent bar)
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 80;
  height: 44px;
  display: flex; align-items: center;
  padding: 0 var(--gutter);
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav__inner {
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}
.nav__mark {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--on-dark);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.nav__mark-glyph { width: 18px; height: 18px; color: var(--on-dark); }
.nav__mark-dot { fill: var(--brass-2); }
.nav__mark-stack {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav__mark-by {
  font-family: var(--ff-serif);
  font-size: 11px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: rgba(255,255,255,0.42);
  margin-top: 2px;
  text-transform: none;
}
.on-light .nav__mark-by { color: rgba(0,0,0,0.48); }

.foot__by {
  font-family: var(--ff-serif);
  font-style: italic;
  font-weight: 400;
  color: rgba(255,255,255,0.65);
}

.nav__links {
  display: flex; justify-content: center;
  gap: 28px;
  font-size: 12px;
  font-weight: 400;
  color: var(--on-dark-2);
}
.nav__links a {
  padding: 4px 0;
  transition: color .2s var(--ease);
}
.nav__links a:hover, .nav__links a:focus-visible { color: var(--on-dark); }

.nav__right {
  display: flex; align-items: center; gap: 16px;
  justify-self: end;
  font-size: 12px;
}
.nav__right a {
  color: var(--on-dark-2);
  transition: color .2s var(--ease);
}
.nav__right a:hover { color: var(--on-dark); }
.nav__right .btn {
  font-size: 12px;
  padding: 6px 14px;
  min-height: 0;
}

@media (max-width: 880px) {
  .nav__links { display: none; }
}

/* ============================================================
   SUB-NAV  (Apple-style product subnav strip)
   ============================================================ */
.subnav {
  position: sticky; top: 44px; z-index: 70;
  height: 52px;
  background: rgba(245, 245, 247, 0.72);
  color: var(--on-light);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.subnav__inner {
  height: 100%;
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex; align-items: center;
  gap: 28px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.subnav__inner::-webkit-scrollbar { display: none; }
.subnav__brand {
  font-size: 21px;
  font-weight: 600;
  color: var(--on-light);
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.subnav__list {
  display: flex; gap: 24px;
  flex: 1;
  list-style: none;
  min-width: 0;
}
.subnav__list a {
  font-size: 12px;
  font-weight: 400;
  color: var(--on-light-2);
  white-space: nowrap;
  padding: 4px 0;
  transition: color .2s var(--ease);
}
.subnav__list a:hover, .subnav__list a:focus-visible { color: var(--on-light); }
.subnav__list a.is-current { color: var(--on-light); }

.subnav__cta {
  font-size: 12px;
  font-weight: 400;
  color: var(--brand-2);
  white-space: nowrap;
  transition: color .2s var(--ease);
}
.subnav__cta:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 720px) {
  .subnav__brand { display: none; }
  .subnav__cta { display: none; }
}

/* ============================================================
   SECTION SCAFFOLDING
   ============================================================ */
.section {
  padding: var(--section-y) 0;
  position: relative;
}
.section--dark   { background: var(--ink); color: var(--on-dark); }
.section--ink2   { background: var(--ink-2); color: var(--on-dark); }
.section--light  { background: var(--surface); color: var(--on-light); }
.section--light-2 { background: var(--surface-2); color: var(--on-light); }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container--narrow { max-width: var(--maxw-narrow); }
.container--text   { max-width: var(--maxw-text); }

.section__head {
  max-width: var(--maxw-text);
  margin: 0 auto clamp(48px, 7vw, 88px);
  padding: 0 var(--gutter);
  text-align: center;
}
.section__head--left { text-align: left; margin-left: 0; padding-left: 0; }
.section__head .eyebrow { margin-bottom: 14px; }
.section__head .subhead { margin-top: 20px; }
.section__head--left .subhead { margin-left: 0; }

/* Anchor scroll offset for sticky nav stack */
[id] { scroll-margin-top: 100px; }
@media (max-width: 720px) { [id] { scroll-margin-top: 80px; } }

/* Anchor scroll offset for sticky nav stack on focus */
.is-scroll-target {
  outline: none !important;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: clamp(56px, 9vw, 120px) var(--gutter) clamp(40px, 6vw, 72px);
  background:
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(91, 141, 239, .12), transparent 70%),
    var(--ink);
  text-align: center;
  overflow: hidden;
}
.hero__inner {
  max-width: 980px;
  margin: 0 auto;
}
.hero__eyebrow {
  display: inline-block;
  font-size: 19px;
  font-weight: 600;
  color: var(--brass-2);
  letter-spacing: -0.005em;
  margin-bottom: 18px;
}
.hero__eyebrow--soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(212, 165, 89, 0.10);
  border: 1px solid rgba(212, 165, 89, 0.35);
  color: var(--brass-2);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}
.hero__eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brass-2);
  box-shadow: 0 0 0 4px rgba(212, 165, 89, 0.18);
  animation: heroSoonPulse 2.2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes heroSoonPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(212, 165, 89, 0.18); }
  50%      { box-shadow: 0 0 0 7px rgba(212, 165, 89, 0.05); }
}
.hero__eyebrow-highlight {
  font-weight: 700;
  color: #f6d99a;
  text-decoration: underline;
  text-decoration-color: rgba(246, 217, 154, 0.55);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}
.on-light .hero__eyebrow-highlight {
  color: #8a5a14;
  text-decoration-color: rgba(138, 90, 20, 0.45);
}
.hero__title {
  font-family: var(--ff-sans);
  /* Bold + pure white — the whole phrase carries equal weight. */
  font-weight: 800;
  font-size: clamp(48px, 9vw, 112px);
  line-height: 1.04;
  letter-spacing: -0.028em;
  color: #ffffff;
  margin: 0 0 18px;
}
.hero__lede {
  font-size: clamp(19px, 2.2vw, 28px);
  font-weight: 400;
  line-height: 1.32;
  letter-spacing: -0.005em;
  color: var(--on-dark-2);
  max-width: 720px;
  margin: 0 auto 28px;
}
.hero__cta {
  display: inline-flex; gap: 18px; flex-wrap: wrap; justify-content: center;
  margin-bottom: 32px;
}
.hero__trust {
  font-size: 13px;
  color: var(--on-dark-3);
  letter-spacing: -0.005em;
  margin-bottom: 64px;
}
.hero__trust-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--admitted);
  margin-right: 8px;
  vertical-align: middle;
}

/* The analyzer mockup is hidden on first paint — title + CTAs lead the
   page. The mockup reveals only after the user begins scrolling (the
   `.is-revealed` class is added by script.js on first scroll past 24px).
   Was previously revealed on `is-loaded` (i.e. immediately on page load). */
.hero__stage {
  position: relative;
  margin: 0 auto;
  max-width: 1100px;
  perspective: 1800px;
  /* Reserve no height when collapsed so the hero CTAs don't get pushed
     down on first paint. The mockup expands into place on scroll. */
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  transition:
    max-height 1.0s var(--ease-out),
    opacity   0.9s var(--ease-out),
    transform 0.9s var(--ease-out);
}
.hero.is-revealed .hero__stage {
  max-height: 1600px;
  opacity: 1;
  transform: none;
}
/* Legacy cinematic entrance — keep as a no-op so existing scripts that
   add `.is-loaded` don't trigger the reveal. The new gate is `.is-revealed`. */
.hero .app { opacity: 1; transform: none; }

/* ============================================================
   APP MOCKUP  (cleaner, fewer panels, soft glow)
   ============================================================ */
.app {
  position: relative;
  border-radius: 22px;
  background: linear-gradient(180deg, #1c1c1e 0%, #0c0c0e 100%);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.5),
    0 60px 140px -40px rgba(91, 141, 239, .25),
    0 30px 80px -30px rgba(0,0,0,0.8);
  overflow: hidden;
}

.app__bar {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: rgba(0,0,0,0.18);
}
.app__dots { display: inline-flex; gap: 6px; }
.app__dots i {
  width: 11px; height: 11px; border-radius: 50%;
  background: #3a3a3c;
}
.app__dots i:nth-child(1) { background: #ff5f57; opacity: .85; }
.app__dots i:nth-child(2) { background: #febc2e; opacity: .85; }
.app__dots i:nth-child(3) { background: #28c840; opacity: .85; }

.app__title {
  font-size: 13px;
  font-weight: 500;
  color: var(--on-dark);
  letter-spacing: -0.005em;
}
.app__title small {
  color: var(--on-dark-3);
  margin-left: 6px;
  font-weight: 400;
}
.app__case {
  margin-left: auto;
  font-size: 12px;
  color: var(--on-dark-3);
  letter-spacing: 0;
}

.app__body {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1px;
  background: rgba(255,255,255,0.05);
  min-height: 460px;
}
@media (max-width: 760px) {
  .app__body { grid-template-columns: 1fr; min-height: 0; }
}

.app__left {
  background: #0e0e10;
  padding: 22px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  min-width: 0;
}
.app__sport {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  align-self: start;
  width: 100%;
}
.app__sport-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: rgba(91, 141, 239, 0.12);
  color: #b8d0ff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
}
.app__sport-chip i {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--cobalt);
}
.app__sport-phase {
  font-size: 12px;
  color: var(--on-dark-3);
}

.app__video {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 60%, rgba(91, 141, 239, 0.08), transparent 60%),
    #060608;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(255,255,255,0.03);
}
.app__video::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 32px 32px;
}
.app__video svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.app__video-cap {
  position: absolute; left: 14px; bottom: 12px;
  font-family: var(--ff-mono);
  font-size: 10.5px;
  color: var(--on-dark-2);
  letter-spacing: 0;
  display: inline-flex; gap: 8px;
}
.app__video-cap span { color: var(--brass-2); }

.app__verdicts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.vchip {
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.025);
  border-radius: 12px;
  min-height: 64px;
  justify-content: center;
}
.vchip__label {
  font-size: 11px;
  color: var(--on-dark-3);
  letter-spacing: 0;
}
.vchip__val {
  font-size: 14px;
  font-weight: 500;
  color: var(--on-dark);
}
.vchip--admit .vchip__val { color: var(--admitted); }
.vchip--pend  .vchip__val { color: var(--pending); }
.vchip--obj   .vchip__val { color: var(--objected); }

/* Real-app verdict palette (matches getColor/getVerdict in App.jsx).
   Optimal = #00ff88, Close = #ffcc00, Needs Work = #ff3366. The chip text
   is paired with a glyph (✓ / ~ / ✕) for colour-blind safety. */
.vchip__val { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.vchip__glyph {
  display: inline-flex; align-items: center; justify-content: center;
  width: 14px; height: 14px;
  border-radius: 4px;
  font-family: var(--ff-mono);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}
.vchip--optimal .vchip__val   { color: #00ff88; }
.vchip--optimal .vchip__glyph { background: rgba(0,255,136,0.18); color: #00ff88; }
.vchip--close   .vchip__val   { color: #ffcc00; }
.vchip--close   .vchip__glyph { background: rgba(255,204,0,0.18); color: #ffcc00; }
.vchip--needs   .vchip__val   { color: #ff3366; }
.vchip--needs   .vchip__glyph { background: rgba(255,51,102,0.18); color: #ff3366; }

.app__right {
  background: #131316;
  padding: 22px;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 16px;
  min-width: 0;
}
.app__panel-h {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px;
  color: var(--on-dark-3);
}
.app__panel-h span:last-child { color: var(--on-dark-2); }

.app__measure {
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  padding: 18px 18px 16px;
  display: grid;
  gap: 12px;
}
.app__measure-h {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 11px;
  color: var(--on-dark-3);
}
.app__measure-h em {
  color: var(--lime);
  font-style: normal;
  font-weight: 500;
}
.app__measure-val {
  display: flex; align-items: baseline; gap: 4px;
  font-family: var(--ff-sans);
  font-weight: 500;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--on-dark);
}
.app__measure-val small {
  font-size: 22px;
  color: var(--on-dark-2);
  font-weight: 400;
}
.app__corridor {
  position: relative;
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
}
.app__corridor-band {
  position: absolute; top: 0; bottom: 0;
  background: rgba(48, 209, 88, 0.4);
  border-radius: 3px;
}
.app__corridor-mark {
  position: absolute; top: -3px; bottom: -3px;
  width: 2px; border-radius: 1px;
  background: var(--lime);
  box-shadow: 0 0 8px rgba(181, 232, 83, 0.6);
}
.app__measure-foot {
  display: flex; justify-content: space-between;
  font-size: 10.5px;
  color: var(--on-dark-3);
}

.app__skel3d {
  position: relative;
  border-radius: 12px;
  background:
    radial-gradient(ellipse at 50% 80%, rgba(100, 210, 255, 0.07), transparent 60%),
    #0a0a0c;
  overflow: hidden;
  min-height: 180px;
}
.app__skel3d::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 18px 18px;
  transform: perspective(280px) rotateX(58deg);
  transform-origin: 50% 100%;
  opacity: .7;
}
.app__skel3d svg { position: relative; width: 100%; height: 100%; }
.app__skel3d-cap {
  position: absolute; right: 12px; top: 12px;
  font-family: var(--ff-mono);
  font-size: 10px;
  color: var(--on-dark-3);
}
.app__skel3d-cap em { font-style: normal; color: var(--cyan); }

.app__footrow {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding: 12px 18px;
  border-top: 1px solid rgba(255,255,255,0.05);
  background: rgba(0,0,0,0.15);
}
.app__cite {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  background: rgba(255,255,255,0.04);
  border-radius: 999px;
  font-size: 10.5px;
  color: var(--on-dark-2);
}
.app__cite i {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--brass-2);
}
.app__cite--bone { color: var(--on-dark); }

/* skeleton lines (shared) */
.skel { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.skel--cobalt { stroke: var(--cobalt); }
.skel--cyan   { stroke: var(--cyan); }
.skel--brass  { stroke: var(--brass-2); }

/* ============================================================
   WORKFLOW INTRO
   ============================================================ */
.workflow-intro { padding: clamp(96px, 14vw, 180px) 0 clamp(40px, 6vw, 80px); }

/* ============================================================
   EVIDENCE MONITOR  (sticky scrollytelling)
   ============================================================ */
.evidence {
  position: relative;
  background: var(--ink);
  color: var(--on-dark);
  --evidence-len: 400vh;
}
.evidence__track {
  position: relative;
  height: var(--evidence-len);
}
.evidence__pin {
  position: sticky; top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.evidence__inner {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1.25fr .9fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 960px) {
  .evidence__inner { grid-template-columns: 1fr; gap: 32px; }
}

.evidence__monitor {
  position: relative;
  border-radius: 22px;
  background: linear-gradient(180deg, #1c1c1e 0%, #0c0c0e 100%);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.5),
    0 40px 90px -30px rgba(91, 141, 239, .18),
    0 24px 60px -30px rgba(0,0,0,0.7);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.evidence__monitor-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: rgba(0,0,0,0.18);
}
.evidence__monitor-bar small {
  font-size: 12px;
  color: var(--on-dark-2);
  font-weight: 500;
}
.evidence__monitor-bar .case {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--on-dark-3);
}

.evidence__canvas {
  position: relative;
  height: calc(100% - 42px);
  background:
    radial-gradient(ellipse at 50% 65%, rgba(91, 141, 239, .06), transparent 60%),
    #060608;
}
.evidence__canvas::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 40px 40px;
}
.evidence__canvas svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
}

.evidence__layer {
  opacity: 0;
  transition: opacity .8s var(--ease-out);
}
.evidence__layer--video { opacity: 1; }
.evidence[data-active-step="2"] .evidence__layer--keypoints,
.evidence[data-active-step="3"] .evidence__layer--keypoints,
.evidence[data-active-step="4"] .evidence__layer--keypoints,
.evidence[data-active-step="2"] .evidence__layer--skeleton,
.evidence[data-active-step="3"] .evidence__layer--skeleton,
.evidence[data-active-step="4"] .evidence__layer--skeleton { opacity: 1; }
.evidence[data-active-step="3"] .evidence__layer--phase,
.evidence[data-active-step="4"] .evidence__layer--phase,
.evidence[data-active-step="3"] .evidence__layer--arc,
.evidence[data-active-step="4"] .evidence__layer--arc { opacity: 1; }
.evidence[data-active-step="4"] .evidence__layer--verdict,
.evidence[data-active-step="4"] .evidence__layer--cite { opacity: 1; }

.evidence__file-name {
  position: absolute; top: 16px; left: 16px;
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--on-dark-2);
  padding: 5px 10px;
  background: rgba(0,0,0,0.45);
  border-radius: 6px;
  display: inline-flex; gap: 6px;
}
.evidence__file-name em { font-style: normal; color: var(--brass-2); }

.evidence__phase {
  position: absolute; top: 16px; right: 16px;
  font-size: 11px;
  color: var(--on-dark);
  padding: 5px 10px;
  background: rgba(91, 141, 239, 0.18);
  border-radius: 6px;
}
.evidence__phase em { font-style: normal; color: var(--cyan); margin-left: 6px; }

.evidence__arc-label {
  position: absolute;
  bottom: 28%;
  left: 54%;
  font-size: clamp(20px, 2.4vw, 32px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--lime);
}

.evidence__verdict {
  position: absolute; left: 16px; bottom: 16px;
  display: flex; gap: 8px; flex-wrap: wrap;
}
.evidence__verdict .vchip {
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 8px 12px;
  border-radius: 10px;
}

.evidence__cite {
  position: absolute;
  bottom: 16px; right: 16px;
  background: rgba(255,255,255,0.98);
  color: var(--on-light);
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.4;
  max-width: 280px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.5);
  transform: translateY(8px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.evidence[data-active-step="4"] .evidence__cite { transform: translateY(0); }
.evidence__cite small {
  display: block; margin-top: 3px;
  font-size: 11px;
  color: var(--on-light-2);
}

/* steps copy — Apple-style spacious */
.evidence__steps {
  display: grid;
  gap: 24px;
}
.evidence__steps .eyebrow { margin-bottom: 8px; }
.estep {
  cursor: pointer;
  padding: 16px 0;
  opacity: .35;
  transition: opacity .5s var(--ease);
}
.estep:hover { opacity: .55; }
.estep[data-active="true"] { opacity: 1; }
.estep__num {
  font-size: 13px;
  color: var(--brass-2);
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: -0.005em;
}
.estep__title {
  font-family: var(--ff-sans);
  font-weight: 600;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.012em;
  color: var(--on-dark);
  margin-bottom: 8px;
}
.estep__desc {
  font-size: 15px;
  line-height: 1.5;
  color: var(--on-dark-2);
  max-width: 460px;
}
.estep__chips {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-top: 14px;
}
.estep__chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  font-size: 11px;
  color: var(--on-dark-2);
}
.estep__chip i {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--brass-2);
}

/* mobile fallback: stack steps as static cards */
@media (max-width: 720px) {
  .evidence { --evidence-len: auto; }
  .evidence__track { height: auto; padding: 40px 0; }
  .evidence__pin {
    position: static; height: auto;
    display: block;
    overflow: visible;
  }
  .evidence__monitor { aspect-ratio: 4 / 3; margin-bottom: 32px; }
  .estep { opacity: 1; }
  .evidence__steps { gap: 28px; }
  .evidence .evidence__layer { opacity: 1; }
  .evidence .evidence__layer--verdict,
  .evidence .evidence__layer--cite { display: none; }
}

/* ============================================================
   ZOOM SCENE  (cinematic, cleaner)
   ============================================================ */
.zoom {
  position: relative;
  background: var(--ink);
  color: var(--on-dark);
  --zoom-len: 280vh;
}
.zoom__track {
  position: relative;
  height: var(--zoom-len);
}
.zoom__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.zoom__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 50% 60%, rgba(181, 232, 83, .05), transparent 65%),
    var(--ink);
}
.zoom__stage {
  position: relative;
  width: min(1040px, 92vw);
  transform-origin: 62% 50%;
  will-change: transform;
}
.zoom__app {
  position: relative;
  border-radius: 22px;
  background: linear-gradient(180deg, #1c1c1e 0%, #0c0c0e 100%);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.5),
    0 50px 120px -30px rgba(0,0,0,0.7);
  overflow: hidden;
}
.zoom__app .app__bar { padding: 12px 16px; }
.zoom__app-body { grid-template-columns: 1fr; min-height: 460px; }
.zoom__app-left { grid-template-rows: auto 1fr; }

@media (max-width: 720px) {
  .zoom__app-body { min-height: 0; }
  .zoom__app-left { grid-template-rows: auto auto; }
  .zoom__app-left .app__video { aspect-ratio: 16 / 10; }
}

/* Apple-style feature callout */
.zoom__measure {
  position: absolute;
  inset: 56px 22px 22px 56%;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(181, 232, 83, 0.08), rgba(181, 232, 83, 0.02));
  border: 1px solid rgba(181, 232, 83, 0.25);
  padding: 26px 26px 22px;
  display: flex; flex-direction: column; gap: 16px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.zoom__measure-h {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 12px;
  color: var(--lime);
  font-weight: 500;
}
.zoom__measure-h em { font-style: normal; color: var(--on-dark-2); font-weight: 400; }
.zoom__measure-val {
  font-family: var(--ff-sans);
  font-weight: 600;
  font-size: clamp(64px, 7vw, 112px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--on-dark);
  display: flex; align-items: baseline; gap: 4px;
}
.zoom__measure-val small {
  font-size: 28px;
  color: var(--on-dark-2);
  font-weight: 400;
  letter-spacing: 0;
}
.zoom__corridor {
  position: relative;
  height: 10px;
  background: rgba(255,255,255,0.06);
  border-radius: 5px;
  overflow: hidden;
}
.zoom__corridor-band {
  position: absolute; top: 0; bottom: 0;
  background: rgba(48, 209, 88, 0.42);
  border-radius: 5px;
}
.zoom__corridor-mark {
  position: absolute; top: -4px; bottom: -4px;
  width: 3px; border-radius: 2px;
  background: var(--lime);
  box-shadow: 0 0 12px rgba(181, 232, 83, .6);
}
.zoom__corridor-foot {
  display: flex; justify-content: space-between;
  font-size: 11px;
  color: var(--on-dark-3);
}
.zoom__verdict {
  display: inline-flex; align-items: center; gap: 8px;
  align-self: flex-start;
  padding: 8px 14px;
  background: var(--admitted-soft);
  color: var(--admitted);
  font-size: 13px;
  font-weight: 500;
  border-radius: 999px;
}
.zoom__verdict i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--admitted);
}

/* Citation card — pinned to the bottom-right of the viewport (not the stage)
   so it stays visible no matter how tall the stage grows. Was previously
   `bottom: -36px` relative to the stage, which clipped off-screen when the
   stage centered vertically inside the 100vh pin on tall windows. */
.zoom__cite {
  position: fixed;
  /* Lifted higher up the viewport (was clamp(16px, 4vh, 40px)) so the full
     card is comfortably above the bottom edge of every screen size. */
  bottom: clamp(80px, 14vh, 160px);
  right: clamp(20px, 4vw, 48px);
  z-index: 2;
  width: min(380px, calc(100vw - 32px));
  background: rgba(255,255,255,0.98);
  color: var(--on-light);
  border-radius: 14px;
  padding: 18px 20px;
  font-size: 14px;
  line-height: 1.45;
  box-shadow: 0 16px 48px rgba(0,0,0,0.55);
  transform: translateY(16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
/* Only render the citation while the user is actually inside the zoom
   section. Without this it would float over every other section since
   `position: fixed` ignores the parent. The `.zoom.is-cite` toggle is set
   by script.js when the zoom scrub passes the citation milestone. */
.zoom.is-cite .zoom__cite {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.zoom__cite-h {
  font-size: 12px;
  color: var(--on-light-2);
  margin-bottom: 8px;
  font-weight: 500;
}
.zoom__cite-paper { color: var(--on-light); font-weight: 600; }
.zoom__cite-paper em { font-style: italic; color: var(--on-light-2); font-weight: 400; }

.zoom__caption {
  position: absolute;
  top: 10vh;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
  width: 100%;
  padding: 0 var(--gutter);
}
.zoom__caption .eyebrow {
  display: block;
  margin-bottom: 14px;
}
.zoom__caption-h {
  font-family: var(--ff-sans);
  font-weight: 600;
  font-size: clamp(32px, 4.4vw, 64px);
  line-height: 1.07;
  letter-spacing: -0.018em;
  color: var(--on-dark);
  max-width: 820px;
  margin: 0 auto;
}

@media (max-width: 720px) {
  .zoom { --zoom-len: auto; }
  .zoom__track { height: auto; padding: 40px 0 24px; }
  .zoom__pin {
    position: static; height: auto;
    display: block;
    overflow: visible;
  }
  .zoom__stage { transform: scale(1) !important; width: 100%; }
  .zoom__cite {
    position: relative;
    bottom: auto; right: auto;
    margin: 32px auto 0;
    transform: none;
    opacity: 1;
    width: 100%;
    max-width: 520px;
  }
  .zoom__measure {
    position: relative;
    inset: auto;
    margin: 16px 0 0;
  }
  .zoom__caption {
    position: relative;
    top: auto; left: auto;
    transform: none;
    margin-bottom: 40px;
    padding: 0;
    text-align: center;
  }
  .zoom__caption-h { margin: 0; }
}

/* ============================================================
   SPORTS  (Apple product-card grid)
   ============================================================ */
.sports {
  background: var(--surface);
  color: var(--on-light);
}
.sports__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 880px) {
  .sports__grid { grid-template-columns: repeat(3, 1fr); }
}

.sport {
  position: relative;
  background: #fff;
  border-radius: 22px;
  padding: 32px 28px 28px;
  display: grid;
  gap: 18px;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.sport:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

.sport__head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px;
}
.sport__name {
  font-family: var(--ff-sans);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.012em;
  color: var(--on-light);
}
.sport__case {
  font-size: 11px;
  font-weight: 500;
  color: var(--brass);
  letter-spacing: 0;
  white-space: nowrap;
}
.sport__art {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 70%, rgba(91, 141, 239, 0.06), transparent 60%),
    #0a0a0c;
  aspect-ratio: 4 / 3;
}
.sport__art::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 24px 24px;
}
.sport__art svg { position: relative; width: 100%; height: 100%; }

.sport__phases {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.sport__phase {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  background: rgba(0,0,0,0.05);
  border-radius: 999px;
  font-size: 11px;
  color: var(--on-light);
  font-weight: 500;
}
.sport__phase i {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--brass);
}

.sport__checks {
  list-style: none;
  display: grid; gap: 0;
  font-size: 13px;
}
.sport__checks li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.sport__checks li:first-child { border-top: 0; }
.sport__checks .ck-name { color: var(--on-light); font-weight: 500; }
.sport__checks .ck-range { color: var(--on-light-2); font-size: 12px; }
.sport__checks .ck-status {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 999px;
}
.ck-status--admit { background: var(--admitted-soft); color: #157f3a; }
.ck-status--pend  { background: var(--pending-soft);  color: #a55700; }
.ck-status--obj   { background: var(--objected-soft); color: #a8302a; }

/* ============================================================
   DOSSIER  (Apple editorial light-section)
   ============================================================ */
.dossier {
  background: var(--surface);
  color: var(--on-light);
  padding: var(--section-y) 0;
}
.dossier__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.dossier__paper {
  background: #fff;
  border-radius: 24px;
  padding: clamp(32px, 5vw, 64px);
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.dossier__head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: end;
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.dossier__case {
  font-size: 12px;
  font-weight: 500;
  color: var(--brass);
  margin-bottom: 12px;
  letter-spacing: 0;
}
.dossier__title {
  font-family: var(--ff-sans);
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.018em;
  color: var(--on-light);
}
.dossier__stamp {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: var(--admitted-soft);
  color: #157f3a;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}
.dossier__stamp i { width: 6px; height: 6px; border-radius: 50%; background: #157f3a; }

.dossier__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
}
@media (max-width: 800px) { .dossier__grid { grid-template-columns: 1fr; } }

.dossier__cell {
  padding-top: 24px;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.dossier__cell:nth-child(1),
.dossier__cell:nth-child(2) {
  padding-top: 0;
  border-top: 0;
}
@media (max-width: 800px) {
  .dossier__cell:nth-child(2) {
    padding-top: 24px;
    border-top: 1px solid rgba(0,0,0,0.06);
  }
}
.dossier__cell-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--brass);
  margin-bottom: 10px;
}
.dossier__cell-h {
  font-family: var(--ff-sans);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--on-light);
  margin-bottom: 8px;
}
.dossier__cell-body {
  font-size: 15px;
  line-height: 1.55;
  color: var(--on-light-2);
}
.dossier__cell-body em {
  font-style: italic;
  color: var(--on-light);
  font-weight: 500;
}

.dossier__verdict-row {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 12px;
}
.vchip-paper {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}
.vchip-paper i { width: 6px; height: 6px; border-radius: 50%; }
.vchip-paper--admit { background: var(--admitted-soft); color: #157f3a; }
.vchip-paper--admit i { background: #157f3a; }
.vchip-paper--pend  { background: var(--pending-soft);  color: #a55700; }
.vchip-paper--pend i { background: #a55700; }
.vchip-paper--obj   { background: var(--objected-soft); color: #a8302a; }
.vchip-paper--obj i { background: #a8302a; }

.dossier__cite {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 12px;
  padding: 5px 11px;
  background: rgba(0,0,0,0.04);
  border-radius: 999px;
  font-size: 12px;
  color: var(--on-light-2);
}
.dossier__cite i { width: 4px; height: 4px; border-radius: 50%; background: var(--brass); }
/* Citation chips/links — when wrapped in an <a>, keep the pill look but make
   the hover state pop so it's visibly clickable. */
a.dossier__cite, a.evidence__cite { text-decoration: none; cursor: pointer; }
a.dossier__cite:hover { background: rgba(212, 165, 89, 0.16); color: var(--brass-2); }
.research__cite a { color: inherit; text-decoration: none; border-bottom: 1px dashed rgba(212,165,89,0.55); transition: color 160ms ease, border-color 160ms ease; }
.research__cite a:hover { color: var(--brass-2); border-bottom-color: var(--brass-2); }

.dossier__foot {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(0,0,0,0.08);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.dossier__foot-line {
  font-family: var(--ff-sans);
  font-weight: 500;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--on-light);
  max-width: 480px;
}
.dossier__signature {
  font-size: 12px;
  color: var(--on-light-2);
  letter-spacing: 0;
}

/* ============================================================
   3D SKELETON  (cinematic dark)
   ============================================================ */
.skel3d {
  background: var(--ink);
  color: var(--on-dark);
  position: relative;
  overflow: hidden;
}
.skel3d__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  gap: clamp(40px, 6vw, 80px);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 1000px) {
  .skel3d__inner { grid-template-columns: 1fr 1.15fr; }
}
.skel3d__copy { max-width: 480px; }
.skel3d__copy .eyebrow { margin-bottom: 14px; }
.skel3d__title {
  font-family: var(--ff-sans);
  font-weight: 600;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.018em;
  color: var(--on-dark);
  margin-bottom: 22px;
}
.skel3d__lede {
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.45;
  color: var(--on-dark-2);
  margin-bottom: 32px;
}
.skel3d__list {
  list-style: none;
  display: grid;
  gap: 14px;
}
.skel3d__list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: baseline;
  font-size: 15px;
  color: var(--on-dark-2);
}
.skel3d__list li::before {
  content: '';
  width: 18px; height: 1px;
  background: var(--brass-2);
  align-self: center;
}

.skel3d__stage {
  position: relative;
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 50% 80%, rgba(100, 210, 255, 0.08), transparent 60%),
    #0a0a0c;
  border: 1px solid rgba(255,255,255,0.05);
  aspect-ratio: 5 / 4;
  overflow: hidden;
  perspective: 1200px;
}
.skel3d__floor {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 50%;
  background-image:
    linear-gradient(to right, rgba(100, 210, 255, 0.10) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(100, 210, 255, 0.10) 1px, transparent 1px);
  background-size: 32px 32px;
  transform: rotateX(60deg);
  transform-origin: 50% 100%;
  mask-image: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 95%);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 95%);
}
.skel3d__svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.skel3d__cap {
  position: absolute; top: 16px; left: 16px;
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--on-dark-2);
  padding: 5px 10px;
  background: rgba(0,0,0,0.4);
  border-radius: 6px;
}
.skel3d__cap em { font-style: normal; color: var(--cyan); }

.skel3d__legend {
  position: absolute; bottom: 16px; left: 16px;
  display: flex; gap: 14px;
  font-size: 11px;
  color: var(--on-dark-2);
  font-weight: 500;
}
.skel3d__legend span {
  display: inline-flex; align-items: center; gap: 6px;
}
.skel3d__legend i {
  width: 10px; height: 2px; border-radius: 1px;
}

.skel3d__hint {
  position: absolute; bottom: 16px; right: 16px;
  font-family: var(--ff-mono);
  font-size: 10px;
  color: var(--on-dark-3);
}

/* ============================================================
   RESEARCH RECEIPTS  (Apple-style spec table)
   ============================================================ */
.research {
  background: var(--surface-2);
  color: var(--on-light);
}
.research__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.research__table {
  border-radius: 22px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.research__row {
  display: grid;
  grid-template-columns: 1.4fr .8fr .8fr 1.4fr auto;
  gap: 0;
  align-items: stretch;
}
.research__row + .research__row { border-top: 1px solid rgba(0,0,0,0.06); }
.research__row > div {
  padding: 22px 24px;
  font-size: 14px;
  color: var(--on-light-2);
  display: flex;
  align-items: center;
}
.research__row--head > div {
  background: rgba(0,0,0,0.02);
  font-size: 11px;
  font-weight: 600;
  color: var(--on-light-2);
  letter-spacing: 0;
  text-transform: uppercase;
}
.research__check { color: var(--on-light); font-weight: 500; }
.research__corridor {
  font-family: var(--ff-mono);
  color: var(--on-light);
  font-size: 13px;
}
.research__cite em { font-style: italic; color: var(--on-light); }

@media (max-width: 800px) {
  .research__row { grid-template-columns: 1fr; padding: 14px 0; }
  .research__row > div + div { padding-top: 4px; padding-bottom: 4px; }
  .research__row > div { padding-top: 4px; padding-bottom: 4px; }
  .research__row--head { display: none; }
  .research__row > div::before {
    content: attr(data-label);
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: var(--on-light-3);
    text-transform: uppercase;
    margin-right: 12px;
    min-width: 80px;
  }
  .research__row { padding: 18px 24px; gap: 6px; }
}

/* ============================================================
   TEAMS  (Apple hub-style card grid)
   ============================================================ */
.teams {
  background: var(--surface);
  color: var(--on-light);
}
.teams__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 880px) {
  .teams__grid {
    grid-template-columns: 1.3fr 1fr 1fr;
    grid-template-areas:
      "leaderboard activity invite"
      "messages    streaks  bests";
  }
  .tcard--leaderboard { grid-area: leaderboard; }
  .tcard--activity   { grid-area: activity; }
  .tcard--invite     { grid-area: invite; }
  .tcard--messages   { grid-area: messages; }
  .tcard--streaks    { grid-area: streaks; }
  .tcard--bests      { grid-area: bests; }
}

.tcard {
  background: #fff;
  border-radius: 22px;
  padding: 28px;
  display: grid;
  gap: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.tcard__h {
  display: flex; justify-content: space-between; align-items: baseline;
}
.tcard__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--brass);
}
.tcard__num {
  font-size: 12px;
  color: var(--on-light-3);
}
.tcard__title {
  font-family: var(--ff-sans);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.012em;
  color: var(--on-light);
}
.tcard__body {
  font-size: 14px;
  line-height: 1.5;
  color: var(--on-light-2);
}

/* leaderboard */
.lb { display: grid; gap: 6px; }
.lb__row {
  display: grid;
  grid-template-columns: 22px 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  background: rgba(0,0,0,0.025);
  border-radius: 12px;
  font-size: 14px;
}
.lb__rank { color: var(--brass); font-weight: 600; }
.lb__name { color: var(--on-light); font-weight: 500; }
.lb__score {
  font-family: var(--ff-mono);
  color: var(--on-light);
  font-weight: 500;
}
.lb__delta {
  font-size: 11px;
  color: var(--admitted);
  font-weight: 500;
}
.lb__row--gold { background: rgba(176, 141, 78, 0.10); }
.lb__row--gold .lb__rank { color: var(--brass); font-weight: 700; }

/* activity */
.actlog {
  display: grid; gap: 0;
  border-left: 1px solid rgba(0,0,0,0.08);
  padding-left: 18px;
  margin-left: 4px;
}
.actlog__item {
  position: relative;
  padding: 10px 0;
}
.actlog__item::before {
  content: ''; position: absolute;
  left: -22px; top: 15px;
  width: 7px; height: 7px;
  background: var(--brass);
  border-radius: 50%;
}
.actlog__date {
  font-size: 11px;
  color: var(--on-light-3);
  font-weight: 500;
}
.actlog__what {
  font-size: 14px;
  color: var(--on-light);
}
.actlog__what em {
  font-style: normal;
  color: var(--on-light-2);
  font-family: var(--ff-mono);
  font-size: 12px;
}

/* invite */
.invite { display: grid; gap: 18px; }
.invite__code {
  font-family: var(--ff-mono);
  font-size: clamp(28px, 3vw, 36px);
  letter-spacing: 0.08em;
  color: var(--on-light);
  background: rgba(0,0,0,0.03);
  padding: 26px 18px;
  text-align: center;
  border-radius: 14px;
  font-weight: 500;
}
.invite__code em { font-style: normal; color: var(--brass); }
.invite__row {
  display: flex; gap: 8px; justify-content: space-between;
  font-size: 12px;
  color: var(--on-light-2);
}
.invite__row span:last-child { color: var(--admitted); font-weight: 500; }

/* messages */
.msgs { display: grid; gap: 10px; }
.msg {
  padding: 14px;
  background: rgba(0,0,0,0.025);
  border-radius: 14px;
  font-size: 14px;
  color: var(--on-light);
  line-height: 1.45;
}
.msg__who {
  display: block;
  font-size: 11px;
  color: var(--brass);
  font-weight: 600;
  margin-bottom: 4px;
}
.msg--coach { background: rgba(176, 141, 78, 0.08); }

/* streaks */
.streaks { display: grid; gap: 14px; }
.streaks__row {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 4px;
}
.streaks__row i {
  display: block;
  height: 22px;
  background: rgba(0,0,0,0.05);
  border-radius: 4px;
}
.streaks__row i.on { background: var(--admitted-soft); }
.streaks__row i.now { background: var(--admitted); }
.streaks__num {
  font-family: var(--ff-sans);
  font-weight: 600;
  font-size: 40px;
  letter-spacing: -0.025em;
  color: var(--on-light);
  display: flex; align-items: baseline; gap: 8px;
}
.streaks__num small {
  font-size: 12px;
  font-weight: 500;
  color: var(--on-light-3);
}

/* bests */
.bests {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.best {
  background: rgba(0,0,0,0.025);
  border-radius: 14px;
  padding: 14px;
  display: grid; gap: 4px;
}
.best__label {
  font-size: 11px;
  color: var(--on-light-3);
  font-weight: 500;
}
.best__val {
  font-family: var(--ff-sans);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.022em;
  color: var(--on-light);
}
.best__delta {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--admitted);
  font-weight: 500;
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.cta-final {
  position: relative;
  background: var(--ink);
  color: var(--on-dark);
  padding: clamp(100px, 14vw, 180px) var(--gutter);
  text-align: center;
  overflow: hidden;
}
.cta-final__inner {
  max-width: 820px;
  margin: 0 auto;
}
.cta-final__title {
  font-family: var(--ff-sans);
  font-weight: 600;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 1.04;
  letter-spacing: -0.024em;
  color: var(--on-dark);
  margin: 18px 0 22px;
}
.cta-final__lede {
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 400;
  line-height: 1.34;
  color: var(--on-dark-2);
  max-width: 560px;
  margin: 0 auto 36px;
}
.cta-final__row {
  display: inline-flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 36px;
}
.cta-final__trust {
  display: flex; gap: 18px; justify-content: center; flex-wrap: wrap;
  font-size: 12px;
  color: var(--on-dark-3);
}
.cta-final__trust span { display: inline-flex; align-items: center; gap: 6px; }
.cta-final__trust i {
  width: 4px; height: 4px; border-radius: 50%; background: var(--brass-2);
}

/* ============================================================
   FOOTER
   ============================================================ */
.foot {
  background: var(--ink);
  color: var(--on-dark-3);
  padding: 56px var(--gutter) 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.foot__inner {
  max-width: var(--maxw);
  margin: 0 auto;
}
.foot__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
@media (min-width: 800px) {
  .foot__top { grid-template-columns: 1fr 1.4fr; align-items: end; }
}
.foot__mark {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--on-dark);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.foot__mark svg { width: 18px; height: 18px; color: var(--on-dark); }
.foot__mark .nav__mark-dot { fill: var(--brass-2); }

.foot__headline {
  font-family: var(--ff-sans);
  font-weight: 500;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.3;
  letter-spacing: -0.012em;
  color: var(--on-dark-2);
}
.foot__headline em { font-style: italic; color: var(--on-dark); font-weight: 400; }

.foot__cols {
  display: flex; flex-wrap: wrap; gap: 24px;
  padding: 24px 0;
  font-size: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.foot__cols a { color: var(--on-dark-3); transition: color .2s var(--ease); }
.foot__cols a:hover { color: var(--on-dark); }

.foot__base {
  padding-top: 18px;
  display: flex; gap: 14px; justify-content: space-between; flex-wrap: wrap;
  font-size: 12px;
  color: var(--on-dark-3);
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-hero {
  padding: clamp(96px, 14vw, 180px) var(--gutter) clamp(60px, 8vw, 100px);
  background:
    radial-gradient(ellipse 60% 50% at 50% 30%, rgba(91, 141, 239, 0.10), transparent 70%),
    var(--ink);
  color: var(--on-dark);
  text-align: center;
}
.contact-hero__inner { max-width: 720px; margin: 0 auto; }
.contact-hero__title {
  font-family: var(--ff-sans);
  font-weight: 600;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 1.04;
  letter-spacing: -0.024em;
  color: var(--on-dark);
  margin: 18px 0 18px;
}
.contact-hero__sub {
  font-size: clamp(19px, 2.2vw, 24px);
  color: var(--on-dark-2);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.34;
}

.contact-paths {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(80px, 10vw, 140px);
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  background: var(--ink);
}
@media (min-width: 800px) { .contact-paths { grid-template-columns: 1fr 1fr; } }

.cpath {
  position: relative;
  background: #1c1c1e;
  border-radius: 22px;
  padding: 36px;
  display: grid;
  gap: 16px;
  color: var(--on-dark);
}
.cpath__num {
  font-size: 12px;
  font-weight: 600;
  color: var(--brass-2);
}
.cpath__title {
  font-family: var(--ff-sans);
  font-weight: 600;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.012em;
  color: var(--on-dark);
}
.cpath__text {
  color: var(--on-dark-2);
  font-size: 15px;
  line-height: 1.5;
}
.cpath--feature {
  background: linear-gradient(180deg, rgba(91, 141, 239, 0.10) 0%, #1c1c1e 100%);
}

.contact-form-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(96px, 14vw, 160px);
  background: var(--ink);
}
.contact-form-wrap__head { margin-bottom: 32px; }
.contact-form-wrap__head .eyebrow { color: var(--brand); }

.cform {
  background: #1c1c1e;
  border-radius: 22px;
  padding: clamp(28px, 4vw, 48px);
  display: grid;
  gap: 18px;
}
.cform__row {
  display: grid; gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .cform__row { grid-template-columns: 1fr 1fr; } }
.cform__field { display: grid; gap: 6px; }
.cform__field span {
  font-size: 12px;
  font-weight: 600;
  color: var(--on-dark-2);
}
.cform__field input,
.cform__field textarea {
  font-family: var(--ff-sans);
  font-size: 15px;
  color: var(--on-dark);
  background: #0a0a0a;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 12px 14px;
  resize: vertical;
  transition: border-color .2s var(--ease);
}
.cform__field input:focus,
.cform__field textarea:focus {
  outline: none;
  border-color: var(--brand);
}
.cform__field input::placeholder,
.cform__field textarea::placeholder {
  color: var(--on-dark-3);
}
.cform__field--full { grid-column: 1 / -1; }
.cform__help {
  font-size: 12px;
  color: var(--on-dark-3);
  margin-top: 2px;
}
.cform__submit { display: flex; justify-content: flex-end; }
.cform__submit .cta__sent { display: none; color: var(--admitted); }
.cform.is-sent .cta__inner,
.cform.is-sent .cta__arrow { display: none; }
.cform.is-sent .cta__sent { display: inline; }

/* ============================================================
   REVEAL (slow Apple-style fade-up)
   ============================================================ */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 1.2s var(--ease-out) var(--rd, 0s),
    transform 1.2s var(--ease-out) var(--rd, 0s);
  will-change: opacity, transform;
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ============================================================
   LIVE HERO MOCKUP — moving, interactive, real-app fidelity
   Sport switcher pills (real app uses the same pill segmented
   control), REC indicator, scan-line sweep on the video, keypoint
   twinkle, corridor mark drift, AUTO phase pulse, angle pop on
   sport switch. Click a pill → JS sets [data-sport] on .app and
   the rest reacts via CSS. Reduced motion strips all of it.
   ============================================================ */

/* — sport pill segmented control (matches App.jsx header) — */
.app__switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  margin-left: auto;
  background: rgba(91, 141, 239, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}
.app__switcher-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--on-dark-2);
  font: 500 11px/1 var(--ff-sans);
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: background .22s var(--ease), color .22s var(--ease), box-shadow .22s var(--ease);
  white-space: nowrap;
}
.app__switcher-pill:hover { color: var(--on-dark); }
.app__switcher-pill svg { width: 12px; height: 12px; display: block; }
.app__switcher-pill[aria-pressed="true"] {
  background: linear-gradient(180deg, var(--cobalt), #4a7adc);
  color: #fff;
  box-shadow:
    0 4px 14px rgba(91, 141, 239, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.app__switcher-pill[aria-pressed="true"] svg { color: #fff; }
@media (max-width: 720px) {
  .app__switcher-pill span { display: none; }
  .app__switcher-pill { padding: 6px 10px; }
}

/* — live status row (REC dot + timecode + AUTO phase pill) — */
.app__live {
  display: flex; align-items: center; gap: 12px;
  margin-left: auto;
  font-family: var(--ff-mono);
  font-size: 10.5px;
  color: var(--on-dark-3);
  letter-spacing: 0.04em;
}
.app__live-rec {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--objected);
  text-transform: uppercase;
  font-weight: 600;
}
.app__live-rec::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--objected);
  box-shadow: 0 0 8px rgba(255, 69, 58, 0.55);
  animation: liveRec 1.4s ease-in-out infinite;
}
.app__live-time {
  font-variant-numeric: tabular-nums;
  color: var(--on-dark-2);
}
.app__live-auto {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(48, 209, 88, 0.28);
  background: rgba(48, 209, 88, 0.08);
  color: var(--admitted);
  font: 600 10px/1 var(--ff-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.app__live-auto::before {
  content: "";
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--admitted);
  animation: autoPulse 1.8s ease-in-out infinite;
}

/* The hero's app body uses a narrower video column when the photo variant
   is in play (video is portrait, right panel is the wide info side). */
#hero-app .app__body { grid-template-columns: 420px 1fr; }
#hero-app .app__left { padding: 16px 18px 18px; }
@media (max-width: 760px) {
  #hero-app .app__body { grid-template-columns: 1fr; }
}

/* — photo variant of the video frame (real captured clip + skeleton overlay)
   The container aspect matches the source clip's 9:16 portrait. That way the
   video fills the box without any cover-crop, and MediaPipe-detected joints
   map 1:1 to canvas coordinates — including knees, ankles, feet, which would
   otherwise be cropped off the bottom of a 4:3 box and produce hip→knee lines
   that walk off-screen. */
.app__video--photo {
  aspect-ratio: 9 / 16;
  background:
    radial-gradient(ellipse at 50% 60%, rgba(91, 141, 239, 0.06), transparent 60%),
    #050507;
}
.app__video--photo::before {
  /* hide the dot grid — the photograph carries the texture */
  display: none;
}
.app__video-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  filter: brightness(0.92) saturate(0.88) contrast(1.05);
  z-index: 1;
}
.app__video-overlay {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 2;
  pointer-events: none;
  overflow: visible;
  /* The overlay coords are percentages of the visible frame, so they stretch
     with it. Without 'none', the SVG would letterbox. */
}

/* Live pose canvas — sits between the video and the static SVG. Always
   present in the layout so its getBoundingClientRect() has real dims for
   pose-overlay.js to size against; transparent until detection paints.
   Once detection lands (.is-live-pose on the host), the static SVG hides
   so it doesn't double-up over the canvas. */
.app__video-pose {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 3;
  pointer-events: none;
  display: block;
}
.app__video--photo.is-live-pose .app__video-overlay { display: none; }
.app__video-overlay .skel { filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.55)); }
.app__video-overlay circle { filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.6)); }
.app__video-overlay text {
  paint-order: stroke;
  stroke: rgba(0, 0, 0, 0.85);
  stroke-width: 1.2;
}

/* — scan-line that sweeps top→bottom of the video frame — */
.app__video { isolation: isolate; }
.app__video::after {
  content: "";
  position: absolute; left: 0; right: 0; top: 0;
  height: 56px;
  pointer-events: none;
  z-index: 3;
  background: linear-gradient(180deg,
    rgba(91, 141, 239, 0) 0%,
    rgba(91, 141, 239, 0.18) 50%,
    rgba(100, 210, 255, 0.32) 88%,
    rgba(100, 210, 255, 0) 100%);
  mix-blend-mode: screen;
  animation: scanSweep 4.6s cubic-bezier(.45,.05,.55,.95) infinite;
  will-change: transform, opacity;
}

/* — every keypoint twinkles, staggered so it doesn't strobe — */
.app__video svg circle[fill="#f5f5f7"],
.app__video svg circle[fill="#64d2ff"],
.app__video svg circle[fill="#5b8def"],
.app__video svg circle[fill="#b5e853"] {
  transform-origin: center;
  transform-box: fill-box;
  animation: kpTwinkle 2.8s ease-in-out infinite;
}
.app__video svg circle:nth-of-type(2n)  { animation-delay: .35s; }
.app__video svg circle:nth-of-type(3n)  { animation-delay: .70s; }
.app__video svg circle:nth-of-type(4n)  { animation-delay: 1.10s; }
.app__video svg circle:nth-of-type(5n)  { animation-delay: 1.50s; }

/* — corridor mark gently drifts within its band — */
.app__corridor-mark { animation: corridorDrift 3.6s ease-in-out infinite; }

/* — measure value pops on sport change — */
.app__measure-val { transition: color .35s var(--ease); }
.app[data-sport-changed] .app__measure-val { animation: anglePop .55s var(--ease-out); }

/* — sport-state swap: phase chip color & accent — */
.app[data-sport="tackle"] .app__sport-chip {
  background: rgba(255, 159, 10, 0.10);
  color: #ffd089;
}
.app[data-sport="tackle"] .app__sport-chip i { background: var(--pending); }
.app[data-sport="shot"] .app__sport-chip {
  background: rgba(100, 210, 255, 0.10);
  color: #c5edff;
}
.app[data-sport="shot"] .app__sport-chip i { background: var(--cyan); }

/* — 3D skeleton: slow auto-orbit until the cursor enters — */
.app__skel3d svg { animation: orbit3d 26s linear infinite; will-change: transform; }

/* — Joint analysis panel (replaces the orbiting 3D dummy) ——————————————————
   One row per analysed joint: name, live angle, mini-corridor bar with a
   verdict-coloured mark, verdict label. Matches the right-side panel of
   the real app. */
.app__phase-mini {
  display: inline-flex; align-items: center; gap: 6px;
  font: 500 11px/1 var(--ff-mono);
  letter-spacing: 0.04em;
  color: var(--on-dark-2);
}
.app__phase-mini::before {
  content: "";
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--admitted);
  animation: autoPulse 1.8s ease-in-out infinite;
}
.app__phase-mini i { display: none; }

.app__measure-verdict {
  font-style: normal;
  font-weight: 600;
  font-size: 11px;
  font-family: var(--ff-mono);
  letter-spacing: 0.02em;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid currentColor;
}
.app__measure-verdict--optimal { color: #00ff88; background: rgba(0,255,136,0.10); }
.app__measure-verdict--close   { color: #ffcc00; background: rgba(255,204,0,0.10); }
.app__measure-verdict--needs   { color: #ff3366; background: rgba(255,51,102,0.10); }

.app__joints {
  list-style: none;
  display: grid;
  gap: 6px;
  padding: 0;
  margin: 0;
}
.jrow {
  display: grid;
  grid-template-columns: 64px 50px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: rgba(255,255,255,0.025);
  border-radius: 10px;
  font-size: 12px;
}
.jrow__name { color: var(--on-dark); font-weight: 500; }
.jrow__angle { color: var(--on-dark-2); font-family: var(--ff-mono); font-variant-numeric: tabular-nums; font-size: 12.5px; }
.jrow__bar {
  position: relative;
  height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,0.08);
  min-width: 40px;
}
.jrow__bar i {
  position: absolute; top: -2px; bottom: -2px;
  width: 2px; border-radius: 1px;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
}
.jrow__verdict {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.jrow__glyph {
  display: inline-flex; align-items: center; justify-content: center;
  width: 13px; height: 13px;
  border-radius: 3px;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1;
}
.jrow--optimal { color: #00ff88; }
.jrow--optimal .jrow__bar i { color: #00ff88; background: #00ff88; }
.jrow--optimal .jrow__glyph { background: rgba(0,255,136,0.18); color: #00ff88; }
.jrow--close   { color: #ffcc00; }
.jrow--close   .jrow__bar i { color: #ffcc00; background: #ffcc00; }
.jrow--close   .jrow__glyph { background: rgba(255,204,0,0.18); color: #ffcc00; }
.jrow--needs   { color: #ff3366; }
.jrow--needs   .jrow__bar i { color: #ff3366; background: #ff3366; }
.jrow--needs   .jrow__glyph { background: rgba(255,51,102,0.18); color: #ff3366; }

.app__cue {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(91,141,239,0.10), rgba(91,141,239,0.04));
  border: 1px solid rgba(91,141,239,0.18);
}
.app__cue-tag {
  font-family: var(--ff-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6ea1ff;
  padding-top: 3px;
}
.app__cue p { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--on-dark); }

/* — window-chrome meta strip (replaces the old Case 001 · Sprint slug) — */
.app__chrome-meta {
  margin-left: auto;
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--on-dark-3);
  letter-spacing: 0.02em;
}

/* ============================================================
   SPORT CARDS — hover plays a sport-specific micro-loop
   ============================================================ */
.sport { position: relative; }
.sport__art { overflow: hidden; }
.sport__art svg { will-change: transform; }

/* Photo-backed card: real captured frame with the skeleton overlay
   layered on top, same vocabulary as the hero mockup. */
.sport__art--photo { position: relative; aspect-ratio: 4 / 3; }
.sport__art--photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 52% 26%;
  filter: brightness(0.9) saturate(0.85) contrast(1.05);
}
.sport__art--photo svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 2;
  pointer-events: none;
}
.sport__art--photo svg .skel { filter: drop-shadow(0 0 3px rgba(0,0,0,0.6)); }
.sport__art--photo svg circle { filter: drop-shadow(0 0 2px rgba(0,0,0,0.6)); }
.sport__art--photo svg text {
  paint-order: stroke;
  stroke: rgba(0, 0, 0, 0.8);
  stroke-width: 1.4;
}

/* Sprint: stride forward, lift, return */
.sport:hover .sport__art svg,
.sport:focus-within .sport__art svg {
  animation: sportPulse 4.2s ease-in-out infinite;
}
.sport:nth-of-type(1):hover .sport__art svg { animation: sprintStride 2.2s ease-in-out infinite; }
.sport:nth-of-type(2):hover .sport__art svg { animation: tackleApproach 2.6s ease-in-out infinite; }
.sport:nth-of-type(3):hover .sport__art svg { animation: shotRelease 2.4s ease-in-out infinite; }

/* — angle arc grows on hover for every sport card — */
.sport__art svg path[stroke="#b5e853"],
.sport__art svg text[fill="#b5e853"] {
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.sport:hover .sport__art svg path[stroke="#b5e853"] {
  filter: drop-shadow(0 0 6px rgba(181, 232, 83, 0.45));
}

/* ============================================================
   LEADERBOARD: row pop-in + score tick (driven by JS class)
   ============================================================ */
.lb__row { transition: transform .35s var(--ease), background .35s var(--ease); }
.lb__row.is-popped { animation: lbPop .55s var(--ease-out); }
.lb__score { font-variant-numeric: tabular-nums; transition: color .25s var(--ease); }

/* Streak dots fill in sequentially when section enters viewport */
.streaks__row i { transition: background .35s var(--ease); }
.streaks.is-in i.on { animation: streakFill .5s var(--ease-out) both; }

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes liveRec {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.35; transform: scale(0.82); }
}
@keyframes autoPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.45); }
  50%      { opacity: 0.6; box-shadow: 0 0 0 6px rgba(48, 209, 88, 0); }
}
@keyframes scanSweep {
  0%   { transform: translateY(-100%); opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { transform: translateY(560px); opacity: 0; }
}
@keyframes kpTwinkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(0.78); }
}
@keyframes corridorDrift {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(6px); }
}
@keyframes anglePop {
  0%   { transform: translateY(2px) scale(0.94); color: var(--lime); }
  60%  { transform: none; color: var(--lime); }
  100% { transform: none; color: var(--on-dark); }
}
@keyframes orbit3d {
  0%   { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}
@keyframes lbPop {
  0%   { transform: translateY(6px); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
@keyframes streakFill {
  0%   { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1);    opacity: 1; }
}

/* Sport card loops — small, repeatable */
@keyframes sprintStride {
  0%, 100% { transform: translateX(0) translateY(0); }
  35%      { transform: translateX(6px) translateY(-1px); }
  70%      { transform: translateX(2px) translateY(1px); }
}
@keyframes tackleApproach {
  0%, 100% { transform: scaleX(1); }
  50%      { transform: scaleX(0.94); }
}
@keyframes shotRelease {
  0%, 100% { transform: translateY(0); }
  40%      { transform: translateY(-4px); }
  70%      { transform: translateY(-2px); }
}
@keyframes sportPulse {
  0%, 100% { filter: none; }
  50%      { filter: brightness(1.06); }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .hero .app { opacity: 1; transform: none; }

  .evidence { --evidence-len: auto; }
  .evidence__track { height: auto; padding: 60px 0; }
  .evidence__pin { position: static; height: auto; }
  .estep { opacity: 1; }
  .evidence[data-active-step] .evidence__layer { opacity: 1; }

  .zoom { --zoom-len: auto; }
  .zoom__track { height: auto; padding: 60px 0; }
  .zoom__pin {
    position: static; height: auto;
    display: block;
    overflow: visible;
  }
  .zoom__stage { transform: none !important; width: 100%; }
  .zoom__cite { opacity: 1; transform: none; position: relative; right: auto; bottom: auto; margin: 28px auto 0; max-width: 520px; }
  .zoom__measure { position: relative; inset: auto; margin: 14px 0 0; }
  .zoom__caption { position: relative; top: auto; left: auto; transform: none; margin: 0 auto 40px; text-align: center; }
  .zoom__caption-h { margin: 0 auto; }
  .progress__bar { display: none; }

  /* New live-mockup animations — strip all of them */
  .app__video::after { display: none; }
  .app__video svg circle { animation: none !important; }
  .app__corridor-mark { animation: none !important; }
  .app__skel3d svg { animation: none !important; }
  .app__live-rec::before { animation: none !important; }
  .app__live-auto::before { animation: none !important; }
  .sport:hover .sport__art svg,
  .sport:focus-within .sport__art svg { animation: none !important; }
  .streaks.is-in i.on { animation: none !important; }
  .lb__row.is-popped { animation: none !important; }
}

@supports (scrollbar-gutter: stable) {
  html { scrollbar-gutter: stable; }
}
