/* The Closing Line: shared styles for index.html (report) and dashboard.html.
   One set of fonts and colors for both pages. Colors are role tokens; dark mode
   is its own validated set of steps, not an automatic flip. */

:root {
  color-scheme: light;
  --page: #f9f9f7;
  --surface: #fcfcfb;
  --surface-2: #f2f1ec;
  --ink: #0b0b0b;
  --ink-2: #52514e;
  --muted: #6f6d67;
  --grid: #e1e0d9;
  --axis: #c3c2b7;
  --border: rgba(11, 11, 11, 0.10);
  --accent: #184f95;
  --accent-ink: #ffffff;
  --good: #006300;
  --bad: #b3261e;
  /* sport identity, categorical slots 1-5 in fixed order (validated) */
  --nfl: #2a78d6;
  --nba: #eb6834;
  --mlb: #1baf7a;
  --nhl: #eda100;
  --epl: #e87ba4;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 10px;
  --maxw: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #0d0d0d;
    --surface: #1a1a19;
    --surface-2: #232321;
    --ink: #ffffff;
    --ink-2: #c3c2b7;
    --muted: #9a988f;
    --grid: #2c2c2a;
    --axis: #383835;
    --border: rgba(255, 255, 255, 0.10);
    --accent: #6da7ec;
    --accent-ink: #0d0d0d;
    --good: #0ca30c;
    --bad: #e66767;
    --nfl: #3987e5;
    --nba: #d95926;
    --mlb: #199e70;
    --nhl: #c98500;
    --epl: #d55181;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0d0d0d;
  --surface: #1a1a19;
  --surface-2: #232321;
  --ink: #ffffff;
  --ink-2: #c3c2b7;
  --muted: #9a988f;
  --grid: #2c2c2a;
  --axis: #383835;
  --border: rgba(255, 255, 255, 0.10);
  --accent: #6da7ec;
  --accent-ink: #0d0d0d;
  --good: #0ca30c;
  --bad: #e66767;
  --nfl: #3987e5;
  --nba: #d95926;
  --mlb: #199e70;
  --nhl: #c98500;
  --epl: #d55181;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 16px/1.6 var(--font);
}
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.num, table { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }

/* ---------- shared navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--page) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav .wrap { display: flex; align-items: center; gap: 20px; min-height: 56px; flex-wrap: wrap; }
.brand { font-weight: 800; text-decoration: none; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.brand-mark { display: inline-flex; gap: 2px; }
.brand-mark i { width: 4px; height: 16px; border-radius: 2px; display: block; }
.nav-links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--ink-2); padding: 6px 12px; border-radius: 8px; font-weight: 600; font-size: 0.95rem;
}
.nav-links a:hover { background: var(--surface-2); color: var(--ink); }
.nav-links a[aria-current="page"] { background: var(--ink); color: var(--page); }
.theme-btn {
  border: 1px solid var(--border); background: var(--surface); color: var(--ink-2);
  border-radius: 8px; padding: 6px 10px; font: inherit; font-size: 0.85rem; cursor: pointer;
}

/* ---------- report ---------- */
.hero { padding: 48px 0 24px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; font-weight: 700; color: var(--muted); }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 8px 0 12px; }
.byline { color: var(--ink-2); margin: 0 0 20px; }
.lede { font-size: 1.1rem; color: var(--ink-2); max-width: 780px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 28px 0 8px; }
.tile {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px;
}
.tile .value { font-size: 2rem; font-weight: 800; line-height: 1.1; }
.tile .label { color: var(--ink-2); font-size: 0.9rem; margin-top: 6px; }
.tile .sub { color: var(--muted); font-size: 0.8rem; margin-top: 2px; }

.toc { display: flex; flex-wrap: wrap; gap: 6px; margin: 24px 0 8px; }
.toc a { font-size: 0.85rem; text-decoration: none; border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; color: var(--ink-2); background: var(--surface); }

.finding { padding: 40px 0; border-top: 1px solid var(--border); }
.finding .kicker { display: flex; gap: 8px; align-items: center; font-size: 0.8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.finding h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); margin: 8px 0 12px; max-width: 860px; }
.finding p { max-width: 780px; color: var(--ink-2); }
.finding p strong { color: var(--ink); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px;
}
.chart-card { margin-top: 16px; }
.chart-card h3 { font-size: 0.95rem; margin: 0 0 2px; }
.chart-card .caption { color: var(--muted); font-size: 0.8rem; margin: 0 0 10px; }
.chart-box { position: relative; height: 340px; }
.chart-box.short { height: 260px; }
.chart-fallback { color: var(--muted); font-size: 0.9rem; padding: 24px; text-align: center; }
details.data-table { margin-top: 10px; font-size: 0.85rem; }
details.data-table summary { cursor: pointer; color: var(--ink-2); }

.pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 700;
  padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2);
}
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.88rem; }
th, td { padding: 7px 10px; border-bottom: 1px solid var(--grid); text-align: right; white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
th { color: var(--ink-2); font-weight: 700; font-size: 0.8rem; position: sticky; top: 0; background: var(--surface); }
tbody tr:hover { background: var(--surface-2); }

/* ---------- methodology ---------- */
.method h3 { margin-top: 28px; }
.method p, .method li { color: var(--ink-2); max-width: 820px; }
.method code { font-size: 0.85em; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }
.formula { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 0.85rem; background: var(--surface-2); padding: 10px 12px; border-radius: 8px; overflow-x: auto; white-space: pre; }

/* ---------- dashboard ---------- */
.dash-head { padding: 28px 0 8px; }
.dash-head h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 4px 0; }
.sport-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 16px 0; }
.sport-tab {
  font: inherit; font-weight: 700; cursor: pointer; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 8px;
}
.sport-tab[aria-selected="true"] { background: var(--ink); color: var(--page); border-color: var(--ink); }
.filters {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; align-items: end;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px;
}
.field { display: flex; flex-direction: column; gap: 4px; font-size: 0.8rem; color: var(--ink-2); font-weight: 600; }
.field select, .field input {
  font: inherit; font-size: 0.9rem; font-weight: 500; color: var(--ink); background: var(--page);
  border: 1px solid var(--border); border-radius: 8px; padding: 7px 8px; min-width: 0;
}
.btn {
  font: inherit; font-weight: 700; font-size: 0.9rem; cursor: pointer; border-radius: 8px; padding: 8px 14px;
  border: 1px solid var(--ink); background: var(--ink); color: var(--page);
}
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.switches { display: flex; flex-wrap: wrap; gap: 16px; margin: 14px 0 4px; align-items: center; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--surface); }
.seg button { font: inherit; font-size: 0.85rem; font-weight: 600; border: 0; background: transparent; color: var(--ink-2); padding: 6px 12px; cursor: pointer; }
.seg button + button { border-left: 1px solid var(--border); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--page); }
.seg-label { font-size: 0.8rem; font-weight: 700; color: var(--muted); margin-right: 6px; }
.chart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 12px; margin-top: 12px; }
.loading { position: relative; }
.loading::after {
  content: "Loading data…"; position: absolute; inset: 0; display: grid; place-items: center;
  background: color-mix(in srgb, var(--page) 70%, transparent); font-weight: 700; color: var(--ink-2); border-radius: var(--radius);
}
.stale { opacity: 0.5; transition: opacity 0.2s; }

/* ---------- live games ---------- */
.live-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.games { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; margin-top: 12px; }
.game { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.game .status { font-size: 0.78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.game .status.live { color: var(--bad); }
.game .teams { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; font-weight: 700; margin: 8px 0; font-size: 1.05rem; }
.game .compare { width: 100%; font-size: 0.82rem; }
.game .compare th, .game .compare td { padding: 4px 6px; }
.edge { font-weight: 800; color: var(--good); }
.edge::before { content: "▲ "; }
.src { font-size: 0.72rem; color: var(--muted); }

/* ---------- footer ---------- */
footer { margin-top: 56px; padding: 28px 0 40px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.85rem; }
footer .disclaimer { max-width: 820px; }

@media (max-width: 640px) {
  .nav .wrap { gap: 8px; padding-top: 6px; padding-bottom: 6px; }
  .nav-links { margin-left: 0; width: 100%; }
  .chart-grid { grid-template-columns: 1fr; }
  .games { grid-template-columns: 1fr; }
  .chart-box { height: 280px; }
  .hero { padding-top: 28px; }
}

/* report additions */
.multiples { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.multiple-title { font-size: 0.8rem; font-weight: 700; color: var(--ink-2); margin-bottom: 4px; }
.method h4 { margin: 16px 0 4px; font-size: 0.9rem; }
.finding h2 { text-wrap: balance; }
.backtest-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 12px; }
.live-note { font-size: 0.85rem; color: var(--muted); }

/* dashboard additions */
#dashboard .tiles { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-top: 14px; }
#dashboard h2, #dashboard .filters, #live { scroll-margin-top: 72px; }
#dashboard .game .compare td:first-child { color: var(--ink-2); }
#dashboard .game details summary { cursor: pointer; color: var(--ink-2); font-weight: 600; }
#dashboard .game details .compare { margin: 4px 0 10px; }
#filters .btn { align-self: end; }
.chart-grid > *, .games > * { min-width: 0; }
@media (max-width: 640px) {
  #dashboard .chart-grid, #dashboard .games { grid-template-columns: minmax(0, 1fr); }
  #dashboard .game .compare th, #dashboard .game .compare td { padding: 4px 3px; white-space: normal; }
  #dashboard .switches { gap: 10px; }
  #dashboard .seg { flex-wrap: wrap; }
}
.method a, .method code, .method li, .method p { overflow-wrap: anywhere; }

/* player props: model vs market */
.game .props td, .game .props th { padding: 3px 5px; font-size: 0.78rem; }
/* difference sign is not good/bad, so it stays in ink, not status colors */
.game .props td.up, .game .props td.down { font-weight: 700; color: var(--ink); }

/* player pop-up + clickable player names */
.player-dialog { border: 1px solid var(--border); border-radius: var(--radius); padding: 0; background: var(--surface); color: var(--ink); width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); }
.player-dialog::backdrop { background: rgba(0, 0, 0, 0.45); }
.pd-box { padding: 16px 18px; }
.pd-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.pd-head h2 { margin: 0; font-size: 1.2rem; }
.pd-head p { margin: 2px 0 0; }
.pd-close { padding: 5px 10px; font-size: 0.85rem; }
.player-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 4px; }
.player-btn {
  font: inherit; font-size: 0.82rem; font-weight: 600; cursor: pointer; text-align: left;
  border: 1px solid var(--border); background: var(--page); color: var(--ink); border-radius: 999px; padding: 4px 10px;
}
.player-btn:hover, .player-btn:focus-visible { background: var(--surface-2); outline: 2px solid var(--accent); outline-offset: 1px; }
.player-btn .pos { color: var(--muted); font-weight: 500; margin-left: 4px; }
.player-btn .badge { color: var(--muted); font-weight: 500; font-size: 0.75rem; margin-left: 6px; }
.link-btn { font: inherit; font-weight: 600; background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; text-align: left; text-decoration: underline; text-underline-offset: 2px; }

/* long names (EPL uses full legal names) wrap inside their box instead of spilling out */
#proj-table td:first-child { white-space: normal; min-width: 8.5rem; max-width: 16rem; }
.link-btn { overflow-wrap: anywhere; line-height: 1.3; }
.player-list { min-width: 0; }
.player-btn { max-width: 100%; white-space: normal; overflow-wrap: anywhere; line-height: 1.3; }
.player-dialog td:first-child { white-space: normal; }
.pd-head > div { min-width: 0; }
.pd-head h2, .pd-head p { overflow-wrap: anywhere; }
.game, .game .teams > * { min-width: 0; overflow-wrap: anywhere; }
.game .compare th, .game .compare td { white-space: normal; }
@media (max-width: 640px) {
  #proj-table td:first-child { min-width: 7rem; }
  #proj-table th, #proj-table td { padding: 6px 6px; }
}

/* compact game cards that open the full game in a large pop-up */
.game-compact { cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.game-compact:hover, .game-compact:focus-visible { border-color: var(--accent); background: var(--surface-2); outline: none; }
.game-compact .edge { display: inline-block; margin-top: 4px; }
.open-hint { margin-top: 8px; font-size: 0.78rem; font-weight: 600; color: var(--accent); }
.game-dialog { width: min(760px, calc(100vw - 24px)); }
.game-dialog .game-detail { border: 0; padding: 0; background: transparent; }
.game-dialog .game-detail .status { display: none; }
.game-dialog .game-detail .teams { font-size: 1.3rem; }
.game-dialog .game .compare th, .game-dialog .game .compare td { padding: 6px 8px; font-size: 0.9rem; }
.game-dialog .player-btn { font-size: 0.9rem; padding: 6px 12px; }

/* 3D replay */
.game-dialog { width: min(1000px, calc(100vw - 24px)); }
.live-date-field { max-width: 220px; margin-top: 8px; }
.replay-host { margin-top: 4px; }
.replay-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0; }
.replay-bar input[type="range"] { flex: 1 1 220px; min-width: 160px; accent-color: var(--accent); }
.replay-bar select { font: inherit; font-size: 0.85rem; color: var(--ink); background: var(--page); border: 1px solid var(--border); border-radius: 8px; padding: 6px 8px; }
.replay-board { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; margin: 4px 0 6px; }
.replay-score { font-weight: 800; font-size: 1.1rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.replay-caption { color: var(--ink-2); font-size: 0.85rem; min-height: 2.4em; flex: 1 1 260px; overflow-wrap: anywhere; }
.replay-stage { position: relative; }
.replay-canvas { height: min(60vh, 560px); min-height: 300px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--surface); touch-action: none; }
.replay-canvas canvas { display: block; width: 100%; height: 100%; }
.replay-sz { position: absolute; right: 8px; top: 8px; width: 180px; background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--border); border-radius: 8px; padding: 6px; font-size: 0.72rem; color: var(--ink-2); }
.replay-sz svg { width: 100%; height: auto; display: block; }
.sz-title { font-weight: 700; margin-bottom: 2px; }
.sz-zone { fill: none; stroke: var(--ink-2); stroke-width: 1.5; }
.sz-ball { fill: var(--mlb); stroke: var(--surface); stroke-width: 1; }
.sz-strike { fill: var(--nba); stroke: var(--surface); stroke-width: 1; }
.sz-play { fill: var(--nfl); stroke: var(--surface); stroke-width: 1; }
.sz-num { font-size: 8px; font-weight: 700; fill: #fff; }
.sz-cap { margin-top: 2px; }
.replay-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin-top: 8px; color: var(--ink-2); }
.lg-item { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.lg-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.lg-shapes { flex: 1 1 100%; }
.replay-note { margin: 6px 0 0; }
.replay-list { margin-top: 8px; }
@media (max-width: 640px) {
  .replay-canvas { height: 44vh; min-height: 260px; }
  .replay-sz { width: 110px; }
}
.sz-key { margin-top: 2px; font-size: 0.66rem; color: var(--muted); }
.replay-empty { margin: 8px 0 0; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); color: var(--ink); font-size: 0.85rem; }

/* featured 3D replay on the dashboard */
#featured3d .live-head .field select { min-width: 0; max-width: 100%; }
.f3d-view { min-height: 120px; }
@media (max-width: 640px) { #featured3d .live-head .field { width: 100%; } #featured3d .live-head .field select { flex: 1; } }

/* prominent 3D replay buttons */
.btn-3d {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
  background: var(--accent); border-color: var(--accent); color: var(--accent-ink);
  font-size: 0.95rem; font-weight: 800; padding: 9px 16px; border-radius: 999px;
  box-shadow: 0 2px 10px color-mix(in srgb, var(--accent) 35%, transparent);
}
.btn-3d:hover, .btn-3d:focus-visible { filter: brightness(1.1); outline: 2px solid var(--ink); outline-offset: 2px; }
.game-compact .btn-3d { width: 100%; justify-content: center; }
.nav-links a.nav-3d { color: var(--accent); }
.nav-links a.nav-3d[aria-current="page"] { background: var(--accent); color: var(--accent-ink); }
.f3d-pick { flex-direction: row; align-items: center; gap: 8px; }
@media (max-width: 640px) { .f3d-pick { width: 100%; } .f3d-pick select { flex: 1; min-width: 0; } }

/* report intro: quarterback throws a spiral at the viewer (scroll-driven) */
.intro3d { position: relative; height: 340vh; background: #0b1220; }
.intro-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.intro-stage canvas { display: block; width: 100%; height: 100%; }
.intro-copy { position: absolute; left: 0; right: 0; top: 14vh; text-align: center; color: #fff; pointer-events: none; padding: 0 16px; text-shadow: 0 2px 16px rgba(0,0,0,0.6); }
.intro-copy .eyebrow { color: rgba(255,255,255,0.75); }
.intro-title { font-size: clamp(2.4rem, 8vw, 5rem); font-weight: 800; letter-spacing: -0.02em; margin: 8px 0 4px; line-height: 1; }
.intro-sub { font-size: 1.05rem; margin: 6px 0; color: rgba(255,255,255,0.85); }
.intro-arrow { display: inline-block; font-size: 1.6rem; animation: intro-bob 1.6s ease-in-out infinite; }
@keyframes intro-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
.intro-skip { position: absolute; right: 16px; bottom: 20px; color: #fff; background: rgba(0,0,0,0.45); border: 1px solid rgba(255,255,255,0.3); padding: 6px 12px; border-radius: 999px; font-size: 0.85rem; font-weight: 700; text-decoration: none; }
.intro-flash { position: absolute; inset: 0; background: var(--page); opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .intro3d { height: 100vh; } .intro-arrow { animation: none; } }

/* historical game browser (replays.html) */
.hist-filters { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.hist-nav { display: flex; gap: 6px; flex-wrap: wrap; align-items: end; }
.hist-nav .btn { flex: 1; white-space: nowrap; }
.hist-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.hist-chips .pill { font-weight: 600; }
.pill.hist-right { background: color-mix(in srgb, var(--good) 18%, var(--surface-2)); color: var(--ink); }
.pill.hist-wrong { background: color-mix(in srgb, var(--bad) 16%, var(--surface-2)); color: var(--ink); }
.pill.hist-split { border: 1px dashed var(--border); }
.hist-detail .compare { margin-top: 8px; }

/* video intro (report page and preview page) */
.introv { position: relative; height: 340vh; background: #05070c; }
.introv-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #05070c; transform-origin: 50% 45%; }
.introv-switch { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; gap: 0; border: 1px solid rgba(255,255,255,0.35); border-radius: 999px; overflow: hidden; background: rgba(0,0,0,0.55); }
.introv-switch a { color: #fff; text-decoration: none; font-size: 0.85rem; font-weight: 700; padding: 7px 14px; }
.introv-switch a[aria-current="page"] { background: #fff; color: #000; }
.introv-stage video, .introv-still, .introv-hold { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.introv-still[hidden], .introv-stage video[hidden], .introv-hold[hidden] { display: none; }
.introv-shade { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 55%, rgba(0,0,0,0) 45%, rgba(0,0,0,0.55) 100%), linear-gradient(to bottom, rgba(0,0,0,0.55), rgba(0,0,0,0) 35%); }
.introv-ball { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; }
.introv-copy { position: absolute; left: 0; right: 0; top: 12vh; text-align: center; color: #fff; pointer-events: none; padding: 0 16px; text-shadow: 0 2px 18px rgba(0,0,0,0.75); }
.introv-copy .eyebrow { color: rgba(255,255,255,0.8); }
.introv-title { font-size: clamp(2.4rem, 8vw, 5rem); font-weight: 800; letter-spacing: -0.02em; margin: 8px 0 4px; line-height: 1; }
.introv-sub { font-size: 1.05rem; margin: 6px 0; color: rgba(255,255,255,0.9); }
.introv-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.introv-skip { position: absolute; right: 16px; bottom: 20px; color: #fff; background: rgba(0,0,0,0.45); border: 1px solid rgba(255,255,255,0.3); padding: 6px 12px; border-radius: 999px; font-size: 0.85rem; font-weight: 700; text-decoration: none; }
.introv-credit { position: absolute; left: 16px; bottom: 22px; color: rgba(255,255,255,0.6); font-size: 0.72rem; }
.introv-credit.introv-credit-wrap { right: 118px; } /* long credit: wrap before the Skip button on phones */
.introv.introv-static { height: 100vh; }
@media (prefers-reduced-motion: reduce) { .introv { height: 100vh; } }
