/* =====================================================================
   TradeCQ design system v1
   Layout concept: a cinematic dark stage. Full-bleed film up top,
   athlete rows like a streaming service, data surfaces like an exchange.
   One brand color (gold). Rise/fall colors carry meaning only.
   ===================================================================== */

:root {
  color-scheme: dark;

  /* Ground and surfaces (cool neutrals biased toward the blue-black of a broadcast stage) */
  --ink-900: #07090C;   /* page */
  --ink-850: #0B0E13;   /* header, sheets, tab bar */
  --ink-800: #0E1218;   /* cards, panels */
  --ink-750: #141A23;   /* raised: selected rows, inputs on cards */
  --ink-700: #1A202A;   /* pressed / active tab */
  --line: #1C222C;      /* hairlines */
  --line-strong: #2E3642;

  /* Text */
  --text: #F3F1EC;      /* primary, warm white */
  --text-2: #C7CDD6;    /* links, secondary values */
  --text-3: #AEB6C4;    /* body on dark */
  --text-4: #8C95A3;    /* labels, captions */

  /* Brand and meaning */
  --gold: #F2B544;      /* the only brand color: primary actions, active state */
  --gold-hi: #FFD27A;
  --on-gold: #07090C;
  --rise: #3DDC97;
  --rise-text: #5BE3A8;
  --rise-soft: rgba(61, 220, 151, 0.12);
  --fall: #FF6B5B;
  --fall-text: #FF8A7D;
  --fall-soft: rgba(255, 107, 91, 0.13);
  --chain: #8DB7FF;     /* Ethereum proofs only */
  --chain-soft: rgba(141, 183, 255, 0.14);
  --glass: rgba(255, 255, 255, 0.12);
  --glass-hi: rgba(255, 255, 255, 0.2);
  --scrim: rgba(7, 9, 12, 0.92);

  /* Type */
  --font-display: "Archivo", "Arial Narrow", "Helvetica Neue", sans-serif;
  --font-ui: "DM Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --fs-hero: clamp(3.25rem, 8vw, 7rem);
  --fs-h1: clamp(2.75rem, 6vw, 4.5rem);
  --fs-h2: clamp(2.25rem, 4.4vw, 3.75rem);
  --fs-h3: 1.375rem;
  --fs-lead: 1.25rem;
  --fs-body: 1.0625rem;
  --fs-sm: 0.9375rem;
  --fs-xs: 0.8125rem;
  --fs-label: 0.75rem;

  /* Shape and space */
  --r-sm: 8px;
  --r: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 24px;
  --gutter: clamp(16px, 4vw, 40px);
  --container: 1360px;
  --header-h: 76px;
  --banner-h: 33px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-fast: 150ms;
  --t: 200ms;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink-900);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: var(--fs-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video, canvas { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--on-gold); padding: 10px 16px; border-radius: var(--r); font-weight: 700; }
.skip-link:focus { top: 12px; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 120px) 0; }
.section:last-of-type { padding-bottom: clamp(64px, 9vw, 120px); }
.section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; margin-bottom: clamp(28px, 4vw, 44px); }
.section__head > div { display: flex; flex-direction: column; gap: 14px; max-width: 820px; }
.stack { display: flex; flex-direction: column; gap: 16px; }

/* ---------- Type ---------- */
.display {
  font-family: var(--font-display);
  font-stretch: 72%;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.93;
  letter-spacing: -0.005em;
}
.h-hero { font-size: var(--fs-hero); }
.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
.lead { font-size: var(--fs-lead); color: var(--text-2); max-width: 60ch; line-height: 1.5; }
.body { color: var(--text-3); max-width: 65ch; }
.small { font-size: var(--fs-sm); color: var(--text-3); }
.fine { font-size: var(--fs-xs); color: var(--text-4); line-height: 1.5; }
.eyebrow { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.eyebrow--chain { color: var(--chain); }
.label { font-size: var(--fs-label); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-4); }
.figure { font-family: var(--font-display); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.link { color: var(--text-2); font-weight: 600; border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; transition: color var(--t-fast), border-color var(--t-fast); }
.link:hover { color: var(--text); border-color: var(--text-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 10px 20px; border-radius: var(--r); border: 1px solid transparent;
  font-weight: 700; font-size: var(--fs-sm); line-height: 1.2; cursor: pointer; white-space: nowrap;
  transition: background var(--t-fast) var(--ease), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn svg { flex: none; }
.btn--lg { min-height: 54px; padding: 14px 26px; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--gold); color: var(--on-gold); }
.btn--primary:hover { background: var(--gold-hi); }
.btn--glass { background: var(--glass); color: var(--text); font-weight: 600; }
.btn--glass:hover { background: var(--glass-hi); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--text-3); }
.btn--chain { background: var(--chain-soft); color: #CFE0FF; font-weight: 600; }
.btn--chain:hover { background: rgba(141, 183, 255, 0.22); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }

/* Rise / Hold / Fall: always arrow + word, never color alone */
.reads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.read {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 8px 6px; border-radius: var(--r-sm); border: 1.5px solid transparent;
  font-weight: 700; font-size: var(--fs-xs); cursor: pointer; transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.read--rise { background: var(--rise-soft); color: var(--rise-text); }
.read--hold { background: rgba(255, 255, 255, 0.07); color: var(--text-2); }
.read--fall { background: var(--fall-soft); color: var(--fall-text); }
.read:hover { border-color: currentColor; }
.read[aria-pressed="true"].read--rise { background: var(--rise); color: #06150E; }
.read[aria-pressed="true"].read--hold { background: var(--text); color: var(--ink-900); }
.read[aria-pressed="true"].read--fall { background: var(--fall); color: #1B0705; }
.reads--lg .read { min-height: 64px; font-size: 1.0625rem; border-radius: var(--r-md); }

/* Chips (filters) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 38px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent;
  color: var(--text-2); font-size: var(--fs-xs); font-weight: 600; cursor: pointer; transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.chip:hover { border-color: var(--text-4); color: var(--text); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--ink-900); border-color: var(--text); }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: var(--fs-label); font-weight: 700; letter-spacing: 0.04em; white-space: nowrap; }
.badge--muted { background: rgba(255, 255, 255, 0.07); color: var(--text-2); }
.badge--gold { background: rgba(242, 181, 68, 0.14); color: var(--gold); }
.badge--rise { background: var(--rise-soft); color: var(--rise-text); }
.badge--chain { background: var(--chain-soft); color: var(--chain); }
.badge--sample { background: transparent; border: 1px dashed var(--line-strong); color: var(--text-4); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* Panels and cards */
.panel { background: var(--ink-800); border: 1px solid var(--line); border-radius: var(--r-lg); }
.panel--pad { padding: clamp(20px, 3vw, 32px); }

/* ---------- Demo banner ---------- */
.demo-banner { background: #10141B; border-bottom: 1px solid #1F2630; color: var(--text-3); font-size: var(--fs-label); letter-spacing: 0.02em; text-align: center; padding: 8px var(--gutter); line-height: 1.4; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: var(--ink-850); border-bottom: 1px solid var(--line); transition: background var(--t) var(--ease), border-color var(--t) var(--ease), backdrop-filter var(--t); }
.site-header--overlay { position: absolute; left: 0; right: 0; top: var(--banner-h); background: linear-gradient(to bottom, rgba(7, 9, 12, 0.85), rgba(7, 9, 12, 0)); border-color: transparent; }
.site-header--overlay.is-solid { position: fixed; top: env(safe-area-inset-top, 0px); background: rgba(11, 14, 19, 0.92); border-color: var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.site-header__inner { min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header__left { display: flex; align-items: center; gap: 44px; min-width: 0; }
.wordmark { font-family: var(--font-display); font-weight: 800; font-size: 1.625rem; letter-spacing: -0.025em; color: var(--text); white-space: nowrap; }
.wordmark span { color: var(--gold); }
.main-nav { display: flex; gap: 30px; font-size: var(--fs-sm); font-weight: 500; }
.main-nav a { color: var(--text-2); padding: 8px 0; border-bottom: 2px solid transparent; transition: color var(--t-fast), border-color var(--t-fast); }
.main-nav a:hover { color: var(--text); }
.main-nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--gold); }
.site-header__right { display: flex; align-items: center; gap: 20px; font-size: var(--fs-xs); }
.quiet-nav { display: flex; gap: 20px; }
.quiet-nav a { color: var(--text-3); font-weight: 500; transition: color var(--t-fast); }
.quiet-nav a:hover, .quiet-nav a[aria-current="page"] { color: var(--text); }
.credits-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12); font-weight: 600; font-size: var(--fs-xs); font-variant-numeric: tabular-nums; white-space: nowrap; transition: background var(--t-fast); }
.credits-pill:hover { background: rgba(255, 255, 255, 0.14); }
.credits-pill small { color: var(--text-4); font-weight: 500; font-size: inherit; }
.menu-btn { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 12px; border: 0; background: transparent; color: var(--text); cursor: pointer; }

/* ---------- Mobile menu sheet ---------- */
.sheet { position: fixed; inset: 0; z-index: 80; background: var(--ink-850); display: flex; flex-direction: column; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); overflow-y: auto; }
.sheet__top { display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding-inline: 16px; border-bottom: 1px solid var(--line); }
.sheet__close { width: 44px; height: 44px; border-radius: 12px; border: 0; background: rgba(255, 255, 255, 0.08); color: var(--text); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.sheet__nav { display: flex; flex-direction: column; padding: 8px 16px 0; }
.sheet__nav a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.sheet__nav strong { display: block; font-family: var(--font-display); font-stretch: 75%; font-weight: 800; font-size: 2.125rem; line-height: 1; text-transform: uppercase; }
.sheet__nav a[aria-current="page"] strong { color: var(--gold); }
.sheet__nav span > span { display: block; font-size: var(--fs-xs); color: var(--text-4); margin-top: 4px; }
.sheet__nav a strong { color: var(--text); }
.sheet__nav a[aria-current="page"] strong { color: var(--gold); }
.sheet__group { padding: 22px 16px 0; display: flex; flex-direction: column; gap: 10px; }
.sheet__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sheet__tile { padding: 14px 16px; border-radius: var(--r-md); background: var(--ink-750); border: 1px solid var(--line); font-weight: 600; min-height: 48px; }
.sheet__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 10px; }
.sheet__links a { padding: 10px 0; color: var(--text-2); }
.sheet__cta { margin-top: auto; padding: 16px; border-top: 1px solid var(--line); }

/* ---------- Mobile tab bar ---------- */
.tabbar { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(860px, 100svh); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; background: var(--ink-900); }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__film, .hero__stage { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__stage { background: radial-gradient(ellipse at 68% 34%, #1B2430 0%, #0C1017 48%, var(--ink-900) 100%); }
.hero.is-playing .hero__stage { opacity: 0; }
.hero__scrim { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(7, 9, 12, 0.92) 0%, rgba(7, 9, 12, 0.55) 38%, rgba(7, 9, 12, 0) 66%),
  linear-gradient(to top, var(--ink-900) 4%, rgba(7, 9, 12, 0) 38%); }
.hero__content { width: 100%; padding-top: 220px; padding-bottom: clamp(96px, 12vw, 150px); }
.hero__copy { max-width: 700px; display: flex; flex-direction: column; gap: 22px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero__controls { position: absolute; right: 0; bottom: clamp(96px, 12vw, 150px); display: flex; align-items: center; gap: 14px; }
.film-btn { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.6); background: rgba(7, 9, 12, 0.3); color: var(--text); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: border-color var(--t-fast), background var(--t-fast); }
.film-btn:hover { border-color: var(--text); background: rgba(7, 9, 12, 0.5); }
.rating { background: rgba(40, 46, 56, 0.75); border-left: 3px solid var(--text-2); padding: 8px 44px 8px 14px; font-size: var(--fs-sm); font-weight: 600; }

/* ---------- Page heads (inner pages) ---------- */
.page-head { padding-block: clamp(40px, 6vw, 72px) clamp(24px, 3vw, 36px); }
.page-head__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 40px; }
.page-head__copy { display: flex; flex-direction: column; gap: 14px; max-width: 780px; }

/* ---------- Athlete cards (streaming-row style) ---------- */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(196px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.rail > * { scroll-snap-align: start; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.acard { position: relative; border-radius: var(--r-md); overflow: hidden; background: var(--ink-800); border: 1px solid var(--line); transition: transform var(--t-fast) var(--ease), border-color var(--t-fast); }
.acard:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.acard__art { position: relative; aspect-ratio: 3 / 4; max-width: 100%; overflow: hidden; }
.acard__mono { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 5.5rem; color: rgba(255, 255, 255, 0.07); letter-spacing: -0.02em; }
.acard__sport { position: absolute; top: 12px; left: 12px; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; background: rgba(7, 9, 12, 0.72); padding: 5px 9px; border-radius: 999px; color: #D5DAE2; }
.acard__flag { position: absolute; top: 12px; right: 12px; }
.acard__meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 14px 14px; background: linear-gradient(to top, rgba(7, 9, 12, 0.96), rgba(7, 9, 12, 0)); }
.acard__name { display: block; font-weight: 700; font-size: 1.0625rem; line-height: 1.25; }
.acard__name::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* whole card is the link target */
.acard__row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 6px; font-size: var(--fs-label); color: var(--text-4); }
.acard__cq { font-size: 1.625rem; color: var(--text); }
.acard__reads { position: relative; z-index: 2; padding: 10px; }

/* Sport tones (photo placeholders until real stills land) */
.tone-soccer { background: #12221B; }
.tone-nfl { background: #161B2A; }
.tone-nba { background: #271D12; }
.tone-mlb { background: #111D2A; }
.tone-boxing { background: #261617; }
.tone-ufc { background: #1D1D22; }
.tone-golf { background: #18211A; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.step { display: flex; flex-direction: column; gap: 14px; padding: 28px; }
.step__n { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-sm); letter-spacing: 0.1em; color: var(--gold); }
.step__visual { margin-top: auto; padding-top: 10px; }
.meter { display: flex; gap: 6px; }
.meter span { flex: 1; height: 6px; border-radius: 3px; background: var(--line-strong); }
.meter span.on { background: var(--gold); }

/* ---------- Eight Reads ---------- */
.reads-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.reads-grid > div { background: #0B0E13; padding: 26px; display: flex; flex-direction: column; gap: 8px; }
.reads-grid .n { font-family: var(--font-display); font-weight: 800; color: var(--text-4); font-size: var(--fs-xs); }

/* ---------- Countdown band ---------- */
.board { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; padding: clamp(24px, 4vw, 40px); border-radius: var(--r-xl); background: var(--ink-800); border: 1px solid var(--line); }
.countdown { display: flex; gap: 10px; }
.countdown div { min-width: 82px; padding: 12px 10px; border-radius: var(--r-md); background: var(--ink-900); border: 1px solid var(--line); text-align: center; }
.countdown strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: 2.5rem; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown span { display: block; margin-top: 6px; font-size: var(--fs-label); color: var(--text-4); text-transform: uppercase; letter-spacing: 0.12em; }

/* ---------- Proof ---------- */
.proof-band { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding: clamp(28px, 5vw, 56px); border-radius: var(--r-xl); background: var(--ink-800); border: 1px solid var(--line); }
.proof-band > :first-child { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.proof { flex: 1 1 340px; max-width: 460px; min-width: 0; background: var(--ink-900); border: 1px solid #232A35; border-radius: var(--r-lg); padding: 24px; font-size: var(--fs-sm); }
.proof__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.kv { display: grid; grid-template-columns: 110px minmax(0, 1fr); row-gap: 12px; column-gap: 12px; color: var(--text-2); }
.kv dt { color: var(--text-4); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.mono { font-family: var(--font-mono); font-size: 0.8125rem; }

/* ---------- Investor strip ---------- */
.lines { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1px; background: var(--line); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.lines > div { background: var(--ink-850); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.lines .target { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }

/* ---------- Tables (desk, index) ---------- */
.table-wrap { position: relative; overflow-x: auto; }
.table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: var(--fs-sm); }
.table th { padding: 12px; text-align: left; font-size: var(--fs-label); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-4); white-space: nowrap; }
.table td { padding: 12px; border-top: 1px solid #1A2029; vertical-align: middle; }
.table th:first-child, .table td:first-child { padding-left: 20px; }
.table th:last-child, .table td:last-child { padding-right: 20px; }
.table .r { text-align: right; }
.table tbody tr { transition: background var(--t-fast); }
.table tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
.table tbody tr.is-selected { background: var(--ink-750); }
.who { display: flex; align-items: center; gap: 12px; }
.who__mono { width: 40px; height: 40px; flex: none; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: var(--fs-sm); color: #D5DAE2; }
.who__name { font-weight: 700; line-height: 1.25; }
.who__sub { font-size: var(--fs-xs); color: var(--text-4); }
.spark { width: 120px; height: 32px; }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.search { display: flex; align-items: center; gap: 10px; flex: 1 1 260px; max-width: 420px; min-height: 44px; padding: 0 12px; border-radius: var(--r); background: var(--ink-900); border: 1px solid #232A35; transition: border-color var(--t-fast); }
.search:focus-within { border-color: var(--text-4); }
.search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; font-size: var(--fs-sm); }
.search input::placeholder { color: var(--text-4); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.stat { background: var(--ink-800); padding: 16px 20px; min-width: 0; }
.stat__label { font-size: var(--fs-label); color: var(--text-4); }
.stat__value { font-size: 1.75rem; line-height: 1.2; }

/* ---------- Tabs ---------- */
.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--ink-800); border: 1px solid var(--line); border-radius: 12px; font-size: var(--fs-sm); font-weight: 600; }
.tabs a, .tabs button { padding: 9px 16px; border-radius: 9px; color: var(--text-3); border: 0; background: transparent; cursor: pointer; transition: background var(--t-fast), color var(--t-fast); }
.tabs a:hover, .tabs button:hover { color: var(--text); }
.tabs [aria-current="page"], .tabs [aria-selected="true"] { background: var(--ink-700); color: var(--text); }

/* ---------- Desk layout and ticket ---------- */
.desk { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.desk__market { flex: 999 1 640px; min-width: 0; overflow: hidden; }
.ticket { flex: 1 1 340px; position: sticky; top: calc(var(--header-h) + 16px); display: flex; flex-direction: column; gap: 18px; padding: 22px; }
.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; background: var(--ink-900); border: 1px solid var(--line); border-radius: 12px; }
.seg button { min-height: 44px; border-radius: 9px; border: 0; background: transparent; color: var(--text-3); font-weight: 700; cursor: pointer; transition: background var(--t-fast), color var(--t-fast); }
.seg button[aria-pressed="true"][data-mode="back"] { background: var(--rise); color: #06150E; }
.seg button[aria-pressed="true"][data-mode="reduce"] { background: var(--text); color: var(--ink-900); }
.presets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.presets button { min-height: 44px; border-radius: var(--r); border: 1px solid var(--line-strong); background: transparent; font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer; transition: border-color var(--t-fast), background var(--t-fast); }
.presets button:hover { border-color: var(--text-4); }
.presets button[aria-pressed="true"] { border: 1.5px solid var(--gold); background: var(--ink-700); }
.summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; row-gap: 10px; column-gap: 12px; font-size: var(--fs-sm); padding-block: 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.summary dt { color: var(--text-4); }
.summary dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.summary .total { color: var(--text); font-weight: 700; }
.field-note { font-size: var(--fs-xs); color: var(--fall-text); min-height: 1.2em; }

/* ---------- Dialog ---------- */
.dialog { width: min(480px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--line-strong); border-radius: var(--r-xl); background: var(--ink-850); color: var(--text); }
.dialog::backdrop { background: rgba(3, 4, 6, 0.72); backdrop-filter: blur(4px); }
.dialog__body { padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.dialog__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 16px); z-index: 90; opacity: 0; pointer-events: none; padding: 12px 18px; border-radius: 999px; background: var(--text); color: var(--ink-900); font-weight: 700; font-size: var(--fs-sm); transition: opacity var(--t) var(--ease), transform var(--t) var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Empty states ---------- */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: clamp(40px, 7vw, 72px) 24px; }
.empty__icon { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: var(--ink-750); color: var(--gold); }

/* ---------- Athlete case ---------- */
.case-hero { position: relative; padding-block: clamp(48px, 7vw, 96px) clamp(32px, 4vw, 48px); overflow: hidden; }
.case-hero__mono { position: absolute; right: -2%; top: 50%; transform: translateY(-50%); font-family: var(--font-display); font-weight: 800; font-size: clamp(10rem, 28vw, 26rem); line-height: 0.8; color: rgba(255, 255, 255, 0.035); pointer-events: none; }
.case { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.case__main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.case__side { flex: 1 1 320px; position: sticky; top: calc(var(--header-h) + 16px); display: flex; flex-direction: column; gap: 16px; padding: 24px; }
.story { display: flex; flex-direction: column; gap: 16px; font-size: 1.125rem; color: var(--text-2); max-width: 65ch; }
.story h2 { color: var(--text); }
.dims { display: flex; flex-direction: column; }
.dims > div { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.dims > div:first-child { border-top: 0; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-size: 1.1875rem; font-weight: 700; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; transition: transform var(--t) var(--ease); color: var(--text-4); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details > div { padding: 0 0 22px; color: var(--text-3); max-width: 70ch; }

/* ---------- Business (investor) ---------- */
.ir-hero { padding-block: clamp(64px, 9vw, 128px) clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.ir-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(24px, 4vw, 64px); padding-block: clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.ir-grid > :first-child { display: flex; flex-direction: column; gap: 10px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 32px; }
.fact__value { font-size: clamp(2.75rem, 5vw, 4rem); line-height: 1; }
.fact__label { margin-top: 10px; font-size: var(--fs-sm); color: var(--text-3); }
.source { font-size: var(--fs-xs); color: var(--text-4); }
.source a { color: var(--text-3); border-bottom: 1px solid var(--line-strong); }
.timeline { display: flex; flex-direction: column; }
.timeline > div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; padding: 22px 0; border-top: 1px solid var(--line); }
.timeline > div:first-child { border-top: 0; padding-top: 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--ink-900); }
.site-footer__inner { padding-block: 64px 40px; display: flex; flex-direction: column; gap: 48px; }
.site-footer__cols { display: flex; flex-wrap: wrap; gap: 40px 64px; }
.site-footer__brand { flex: 1 1 240px; display: flex; flex-direction: column; gap: 12px; }
.site-footer nav { flex: 0 1 160px; display: flex; flex-direction: column; gap: 10px; font-size: var(--fs-sm); }
.site-footer nav a { color: var(--text-2); transition: color var(--t-fast); }
.site-footer nav a:hover { color: var(--text); }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 24px; border-top: 1px solid var(--line); font-size: var(--fs-xs); color: var(--text-4); }
.site-footer__base a { color: var(--text-3); }

/* ---------- Load-in (from a visible resting state) ---------- */
@keyframes rise-in { from { transform: translateY(10px); opacity: 0.001; } to { transform: none; opacity: 1; } }
.js-ready .rise-in { animation: rise-in 500ms var(--ease) both; }
.js-ready .rise-in:nth-child(2) { animation-delay: 40ms; }
.js-ready .rise-in:nth-child(3) { animation-delay: 80ms; }
.js-ready .rise-in:nth-child(4) { animation-delay: 120ms; }
.js-ready .rise-in:nth-child(5) { animation-delay: 160ms; }
.js-ready .rise-in:nth-child(6) { animation-delay: 200ms; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .quiet-nav { display: none; }
  .main-nav { gap: 22px; }
}
@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .main-nav, .site-header__right .btn { display: none; }
  .menu-btn { display: inline-flex; }
  .site-header__right { gap: 8px; }
  .wordmark { font-size: 1.375rem; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 6px 4px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(11, 14, 19, 0.94); border-top: 1px solid var(--line);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 52px; font-size: 0.6875rem; font-weight: 600; color: var(--text-4); }
  .tabbar a[aria-current="page"] { color: var(--gold); }
  .hero { min-height: 640px; }
  .hero__content { padding-top: 160px; padding-bottom: 72px; }
  .hero__controls { bottom: auto; top: 96px; right: 0; }
  .rating { padding-right: 18px; }
  .ir-grid { grid-template-columns: minmax(0, 1fr); }
  .timeline > div { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .ticket, .case__side { position: static; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .stat { padding: 12px 14px; }
  .stat__value { font-size: 1.3125rem; }
}
@media (max-width: 640px) {
  .hide-sm { display: none; }
  .table { min-width: 0; }
  .table th:first-child, .table td:first-child { padding-left: 14px; }
  .table th:last-child, .table td:last-child { padding-right: 14px; }
}
@media (max-width: 520px) {
  .countdown div { min-width: 64px; }
  .countdown strong { font-size: 1.875rem; }
  .kv { grid-template-columns: 96px minmax(0, 1fr); }
  .rail { grid-auto-columns: 160px; }
  .acard__mono { font-size: 4rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
/* Rebuild components reuse the reference tokens. */
.cq-chart{display:block;width:100%;height:180px;overflow:hidden}.who__photo{width:44px;height:44px;border-radius:var(--r);object-fit:cover;object-position:top;flex:none}.acard__photo{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:center bottom}.case-video{width:100%;max-width:390px;max-height:620px;aspect-ratio:9/16;object-fit:contain;background:var(--ink-900);border-radius:var(--r-md)}details>summary{cursor:pointer;min-height:44px;padding-block:12px;font-weight:700}details>p{padding-bottom:16px}.stats{min-width:0}.stats .stat{min-width:0}button:disabled{opacity:.5;cursor:not-allowed}table{max-width:100%}.table-wrap{max-width:100%;overflow-x:auto}.ticket .summary{overflow-wrap:anywhere}#proof-status{overflow-wrap:anywhere}main{min-width:0}
@media(max-width:520px){.hero{min-height:600px;min-height:calc(100svh - 68px)}.hero__content{padding-top:160px;padding-bottom:70px}.hero__copy{gap:16px}.hero .h-hero{font-size:clamp(2.4rem,11vw,3.6rem)}.hero .lead{font-size:1rem}.hero__actions .btn{min-height:48px}.page-head__row{flex-wrap:wrap}.desk,.desk__market{min-width:0}.toolbar .chips{max-width:100%;overflow-x:auto}.who{gap:8px}.who__name{overflow-wrap:anywhere}.who__photo{width:36px;height:36px}.cq-chart{height:150px}.table th,.table td{padding:12px 8px}.stats{flex-basis:100%!important}.case{gap:24px}.panel{min-width:0}.tabbar{max-width:100vw}}

/* Keep portfolio totals inside their phone-width statistic cells. */
.stats .h2{font-size:1.75rem;line-height:1.2}.table-wrap:focus-visible{outline-offset:-2px}
@media(max-width:520px){.stats .h2{font-size:1.125rem}.stat .figure{overflow-wrap:anywhere}}

/* Reserve the measured banner and the reference phone tab bar within the hero. */
@media(max-width:520px){.hero{min-height:calc(100svh - var(--banner-h) - 76px - env(safe-area-inset-bottom,0px))}.hero__content{padding-top:148px;padding-bottom:32px}.credits-pill{padding-inline:10px;gap:6px}.credits-pill small{display:none}}
