/* Sports Hub v3 - LIGHT, blue + orange, performant */
@import url("https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Geist:wght@300;400;500;600;700;800;900&family=Geist+Mono:wght@300;400;500&display=swap");

:root {
  --paper: #FAF7F2;
  --paper-2: #F2EDE4;
  --ink: #0A1833;
  --ink-2: #172A4E;
  --blue: #2E3A8C;       /* primary brand - softer navy */
  --blue-2: #1E2770;
  --orange: #FF5B1F;     /* secondary brand */
  --orange-2: #E84500;
  --line: rgba(10,24,51,0.08);
  --line-2: rgba(10,24,51,0.16);
  --dim: rgba(10,24,51,0.6);
  --dim-2: rgba(10,24,51,0.4);

  --font-display: "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-serif: "Instrument Serif", serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-display);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body { cursor: auto; }
@media (max-width: 900px) { body { cursor: auto; } }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; padding: 0; cursor: pointer; }
@media (max-width: 900px) { button { cursor: pointer; } }
input, textarea { font: inherit; }
/* Screen-reader only (WCAG); paired with visible labels where layout is compact */
.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: -9999px;
  top: 12px;
  z-index: 10000;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
}
.skip-link:focus {
  left: 12px;
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
::selection { background: var(--blue); color: #fff; }

/* Cursor (disabled) */
.cursor-dot, .cursor-ring { display: none; }

.noise { display: none; }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 90;
  padding: 20px 32px;
  display: flex; align-items: center; justify-content: space-between;
  transition: padding .4s, background .4s, backdrop-filter .4s;
}
.nav.scrolled {
  padding: 12px 32px;
  background: rgba(250,247,242,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav .brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; letter-spacing: -0.02em; flex-shrink: 0; }
.nav .brand .mark-img {
  width: 48px; height: 48px;
  min-width: 48px; max-width: 48px;
  min-height: 48px; max-height: 48px;
  border-radius: 11px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(0,144,255,0.15));
  transition: transform .3s ease;
}
.nav .brand:hover .mark-img { transform: rotate(-8deg) scale(1.05); }

.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-links { display: flex; gap: 22px; font-size: 13px; font-weight: 500; }
.nav-links a { opacity: 0.7; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; color: var(--blue); }
/* Hamburger button */
.nav-hamburger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 40px; height: 40px;
  background: none; border: none; cursor: pointer; padding: 8px;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block; width: 20px; height: 1.5px;
  background: var(--ink); border-radius: 2px;
  transition: transform .3s ease, opacity .2s ease;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu overlay */
.nav-mobile {
  display: none;
  position: fixed; inset: 0; z-index: 88;
  background: var(--paper);
  flex-direction: column; justify-content: center;
  padding: 100px 40px 60px;
  gap: 0;
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.nav-mobile.open {
  opacity: 1;
  pointer-events: auto;
}
.nav-mobile-links {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--line);
}
.nav-mobile-link {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(32px, 8vw, 52px);
  letter-spacing: -0.04em; color: var(--ink);
  text-decoration: none;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  transition: color .2s, opacity .2s;
  opacity: 0.85;
}
.nav-mobile-link:hover { opacity: 1; color: var(--blue); }
.nav-mobile-cta {
  margin-top: 36px;
  align-self: flex-start;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile { display: flex; }
}

.lang { display: flex; border: 1px solid var(--line-2); border-radius: 99px; overflow: hidden; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; font-weight: 500; }
.lang button { padding: 5px 10px; opacity: 0.5; transition: all .2s; }
.lang button.on { background: var(--ink); color: var(--paper); opacity: 1; }

.cta-pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 99px; background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 600; transition: transform .2s, background .2s; }
.cta-pill:hover { transform: translateY(-1px) scale(1.02); background: var(--blue); }
.cta-pill .arrow { transition: transform .3s; }
.cta-pill:hover .arrow { transform: translateX(4px); }
@media (max-width: 720px) {
  .cta-pill { padding: 8px 14px; font-size: 12px; gap: 6px; }
  .cta-pill .arrow { display: none; }
}

/* Hero */
.hero {
  position: relative;
  min-height: 72vh;
  padding: 100px 32px 32px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  background: var(--paper);
}
.hero-canvas { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.55; }
.hero-canvas canvas { width: 100%; height: 100%; display: block; }

.hero-hud {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--dim);
}
.hud-item { display: flex; flex-direction: column; gap: 4px; }
.hud-item b { color: var(--blue); font-weight: 500; font-size: 11px; }
.hud-item.right { text-align: right; }

.hero-title {
  position: relative; z-index: 2;
  align-self: end;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(64px, 12vw, 200px);
  line-height: 0.84;
  letter-spacing: -0.055em;
  pointer-events: none;
  color: var(--ink);
}
.hero-title .l1, .hero-title .l2 { display: block; }
.hero-title .slide { display: inline-block; }
.hero-title .outline { -webkit-text-stroke: 1.5px var(--ink); color: transparent; }
.hero-title .orange { color: var(--orange); }
.hero-rotator {
  display: inline-block;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--blue);
  letter-spacing: -0.02em;
  min-width: 4ch;
}
.hero-rotator .word { display: inline-block; transition: transform .5s cubic-bezier(.6,.05,.2,.99), opacity .4s; }
.hero-rotator .word.out { transform: translateY(-40%) rotateX(40deg); opacity: 0; }
.hero-rotator .word.in-pre { transform: translateY(50%) rotateX(-40deg); opacity: 0; transition: none; }

.hero-bottom {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: end;
  padding-top: 40px;
}
@media (max-width: 900px) { .hero-bottom { grid-template-columns: 1fr; gap: 24px; } }
.hero-lead { font-size: clamp(16px,1.6vw,20px); line-height: 1.4; color: var(--dim); max-width: 52ch; }
.hero-lead em { font-style: normal; color: var(--orange); font-weight: 500; }
.hero-actions { display: flex; gap: 10px; justify-self: end; flex-wrap: wrap; }
@media (max-width: 900px) { .hero-actions { justify-self: start; } }

/* Mobile-only: collapse hero so HUD, title and bottom stack tight without empty space */
@media (max-width: 720px) {
  .hero {
    min-height: auto;
    grid-template-rows: auto auto auto;
    padding: 88px 24px 28px;
    row-gap: 24px;
  }
  .hero-title { align-self: start; }
  .hero-bottom { padding-top: 16px; }
}

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; border-radius: 99px; font-size: 14px; font-weight: 600; transition: all .25s; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--orange); transform: translateY(-1px); }
.btn-ghost { color: var(--ink); border: 1px solid var(--line-2); }
.btn-ghost:hover { background: rgba(10,24,51,0.04); border-color: var(--ink); }
.arrow-icon { transition: transform .3s; }
.btn:hover .arrow-icon { transform: translateX(4px); }

/* Ticker */
.ticker {
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  white-space: nowrap;
  background: var(--paper-2);
  position: relative;
}
.ticker::before, .ticker::after { content: ''; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none; }
.ticker::before { left: 0; background: linear-gradient(90deg, var(--paper-2), transparent); }
.ticker::after { right: 0; background: linear-gradient(-90deg, var(--paper-2), transparent); }
.ticker-track { display: inline-flex; gap: 56px; animation: tick 50s linear infinite; align-items: center; will-change: transform; }
@keyframes tick { to { transform: translate3d(-50%, 0, 0); } }
.ticker-item { display: inline-flex; align-items: center; gap: 18px; font-family: var(--font-display); font-weight: 500; font-size: clamp(28px,3.2vw,44px); letter-spacing: -0.025em; }
.ticker-item .sep { width: 10px; height: 10px; background: var(--orange); border-radius: 50%; flex-shrink: 0; }
.ticker-item.italic { font-family: var(--font-serif); font-style: italic; color: var(--blue); font-weight: 400; }

/* Section shell */
.sec { position: relative; padding: 140px 0; }
.wrap { width: min(100%, 1440px); margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .wrap { padding: 0 20px; } .sec { padding: 80px 0; } }

.eyebrow { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); font-weight: 500; }
.eyebrow .idx { border: 1px solid var(--line-2); padding: 3px 8px; border-radius: 4px; color: var(--dim); }
.sec-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(48px,7vw,120px); line-height: 0.9; letter-spacing: -0.04em; margin-top: 20px; max-width: 16ch; }
.sec-title .serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--orange); letter-spacing: -0.015em; }
.sec-header { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; align-items: end; margin-bottom: 80px; }
.sec-header p { font-size: 16px; line-height: 1.5; color: var(--dim); max-width: 36ch; padding-bottom: 10px; }
@media (max-width: 900px) { .sec-header { grid-template-columns: 1fr; margin-bottom: 48px; gap: 20px; } }

/* Manifesto (dark break) */
.manifesto { background: var(--ink); color: var(--paper); padding: 120px 0; position: relative; overflow: hidden; }
.manifesto-inner { font-family: var(--font-display); font-weight: 500; font-size: clamp(36px,5.5vw,88px); line-height: 1.02; letter-spacing: -0.035em; max-width: 20ch; }
.manifesto-inner .serif { font-family: var(--font-serif); font-style: italic; color: var(--orange); font-weight: 400; }
.manifesto-inner .word { display: inline-block; opacity: 0.15; transition: opacity .6s; }
.manifesto-inner .word.lit { opacity: 1; }

/* Pillars */
.pillars { background: var(--paper); position: relative; padding: 0; }
.pillar-intro { padding: 140px 0 80px; border-bottom: 1px solid var(--line); }

/* Scene: sticky phone on one side, scrolling text on the other.
   Using position:sticky with explicit column heights avoids jank. */
.pillar-scene {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  contain: layout paint;
}
.pillar-scene:nth-child(even) { background: var(--paper-2); }

.pillar-text { padding: 160px 48px; }
.pillar-text-inner { max-width: 40ch; }

.pillar-stage {
  position: relative;
  padding: 0 32px;
}
.pillar-stage-inner {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 0;
}
@media (max-width: 900px) {
  .pillar-scene { grid-template-columns: 1fr; }
  .pillar-text { padding: 60px 20px; }
  .pillar-stage { padding: 20px; order: 2; }
  .pillar-stage-inner { position: static; height: auto; }
}

.pillar-num { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--blue); margin-bottom: 16px; }
.pillar-q { font-family: var(--font-serif); font-style: italic; font-size: clamp(20px,2vw,28px); color: var(--dim); margin-bottom: 24px; line-height: 1.2; }
.pillar-h { font-family: var(--font-display); font-weight: 500; font-size: clamp(48px,6vw,96px); line-height: 0.9; letter-spacing: -0.04em; margin-bottom: 28px; }
.pillar-h .serif { font-family: var(--font-serif); font-style: italic; color: var(--orange); font-weight: 400; }
.pillar-p { font-size: 17px; line-height: 1.55; color: var(--dim); margin-bottom: 32px; }
.pillar-meta { display: flex; gap: 20px; padding-top: 24px; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); flex-wrap: wrap; }
.pillar-meta span b { color: var(--orange); font-weight: 500; }

/* Phone - isolated rendering layer to kill scroll jank */
.phone {
  position: relative;
  width: 300px;
  height: 600px;
  background: #fff;
  border-radius: 40px;
  border: 7px solid #1c1c1c;
  box-shadow:
    0 40px 80px -20px rgba(10,24,51,0.25),
    0 20px 40px -30px rgba(30,76,255,0.2),
    inset 0 0 0 1px rgba(255,255,255,0.05);
  overflow: hidden;
  transform: translateZ(0);
  will-change: auto;
  contain: layout paint;
}
.phone::before { content: ''; position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 90px; height: 22px; background: #1c1c1c; border-radius: 999px; z-index: 20; }
.phone-screen { position: absolute; inset: 0; overflow: hidden; background: #FAF7F2; color: var(--ink); font-size: 13px; }

/* Pillar 1 WHO */
.who-screen { padding: 50px 14px 14px; height: 100%; display: flex; flex-direction: column; gap: 9px; }
.who-title { font-size: 10px; font-family: var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.who-h { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 10px; line-height: 1.1; color: var(--ink); }
.who-card { display: flex; align-items: center; gap: 10px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; opacity: 0; transform: translateX(20px); transition: opacity .5s, transform .5s; box-shadow: 0 2px 6px -2px rgba(10,24,51,0.05); }
.who-card.on { opacity: 1; transform: translateX(0); }
.who-card.match { border-color: var(--orange); background: #FFF1E9; box-shadow: 0 0 0 1px var(--orange), 0 8px 24px -8px rgba(255,91,31,0.3); }
.who-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--paper-2); display: grid; place-items: center; font-size: 16px; flex-shrink: 0; }
.who-info { flex: 1; min-width: 0; }
.who-n { font-size: 12px; font-weight: 600; color: var(--ink); }
.who-s { font-size: 10px; font-family: var(--font-mono); color: var(--dim); margin-top: 2px; letter-spacing: 0.04em; }
.who-lvl { display: flex; gap: 2px; margin-top: 5px; }
.who-lvl span { width: 11px; height: 3px; background: var(--line-2); border-radius: 2px; }
.who-lvl span.on { background: var(--blue); }
.who-card.match .who-lvl span.on { background: var(--orange); }
.who-btn { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 9px; background: var(--blue); color: #fff; border-radius: 99px; font-weight: 600; }
.who-card.match .who-btn { background: var(--orange); }

/* Pillar 2 WHERE */
.where-screen { height: 100%; position: relative; background: #EDE7DC; overflow: hidden; }
.where-map { position: absolute; inset: 0; }
.where-map svg { width: 100%; height: 100%; display: block; }
.where-hud { position: absolute; top: 44px; left: 14px; right: 14px; z-index: 5; display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }
.where-hud .pill { padding: 5px 10px; background: rgba(255,255,255,0.8); border: 1px solid var(--line); border-radius: 99px; backdrop-filter: blur(6px); }
.where-pin { position: absolute; transform: translate(-50%,-50%); z-index: 4; }
.where-pin .p-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(30,76,255,0.25), 0 0 20px var(--blue); animation: pin-pulse 2s ease-in-out infinite; }
.where-pin.heat .p-dot { background: var(--orange); box-shadow: 0 0 0 4px rgba(255,91,31,0.25), 0 0 20px var(--orange); }
.where-pin.cyan .p-dot { background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,0.2), 0 0 20px rgba(255,255,255,0.6); }
@keyframes pin-pulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.35)} }
.where-pin .p-label { position: absolute; top: -32px; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 5px 8px; background: var(--ink); color: #fff; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.06em; border-radius: 4px; font-weight: 600; }
.where-you { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 16px; height: 16px; background: var(--ink); border: 3px solid #fff; border-radius: 50%; z-index: 6; box-shadow: 0 2px 8px rgba(10,24,51,0.3); }
.where-you::before { content: ''; position: absolute; inset: -10px; border: 2px solid rgba(30,76,255,0.5); border-radius: 50%; animation: ripple 2s ease-out infinite; }
@keyframes ripple { 0%{transform:scale(0.6);opacity:1} 100%{transform:scale(2.5);opacity:0} }
.where-card { position: absolute; bottom: 14px; left: 14px; right: 14px; background: rgba(255,255,255,0.95); backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; z-index: 5; display: flex; align-items: center; gap: 10px; box-shadow: 0 10px 24px -10px rgba(10,24,51,0.2); }
.where-card .ico { width: 34px; height: 34px; border-radius: 10px; background: var(--orange); color: #fff; display: grid; place-items: center; font-size: 17px; flex-shrink: 0; }
.where-card .info { flex: 1; color: var(--ink); }
.where-card .info b { font-size: 12px; font-weight: 600; display: block; }
.where-card .info small { font-size: 9px; color: var(--dim); font-family: var(--font-mono); letter-spacing: 0.04em; }
.where-card .go { padding: 6px 10px; background: var(--blue); color: #fff; border-radius: 99px; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; }

/* Pillar 3 GEAR */
.gear-screen { padding: 50px 14px 14px; height: 100%; display: flex; flex-direction: column; color: var(--ink); }
.gear-h { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 4px; color: var(--ink); }
.gear-sub { font-size: 10px; font-family: var(--font-mono); color: var(--dim); letter-spacing: 0.08em; margin-bottom: 18px; }
.gear-item { display: grid; grid-template-columns: 24px 1fr auto; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.gear-box { width: 20px; height: 20px; border: 1.5px solid var(--line-2); border-radius: 6px; display: grid; place-items: center; transition: all .3s; font-size: 11px; color: var(--ink); background: #fff; }
.gear-item.on .gear-box { background: var(--blue); border-color: var(--blue); color: #fff; }
.gear-name { font-weight: 500; transition: opacity .3s; color: var(--ink); }
.gear-item.on .gear-name { opacity: 0.5; text-decoration: line-through; }
.gear-who { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); padding: 4px 8px; border: 1px solid var(--line); border-radius: 99px; white-space: nowrap; background: #fff; }
.gear-item.on .gear-who { color: var(--orange); border-color: rgba(255,91,31,0.4); background: #FFF1E9; }
.gear-foot { margin-top: auto; padding: 14px 0 4px; display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.gear-foot b { color: var(--orange); font-weight: 500; }

/* Numbers */
.nums { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 0; }
.nums-grid { display: grid; grid-template-columns: repeat(4,1fr); }
@media (max-width: 900px) { .nums-grid { grid-template-columns: repeat(2,1fr); } }
.num-cell { padding: 60px 32px; border-right: 1px solid var(--line); }
.num-cell:last-child { border-right: none; }
@media (max-width: 900px) {
  .num-cell:nth-child(2n) { border-right: none; }
  .num-cell:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
.num-val { font-family: var(--font-display); font-weight: 500; font-size: clamp(56px,6vw,104px); letter-spacing: -0.045em; line-height: 0.9; color: var(--ink); }
.num-val .unit { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--orange); font-size: 0.5em; margin-left: 4px; letter-spacing: -0.01em; }
.num-l { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); margin-top: 14px; }

/* Stories rail */
.stories { background: var(--paper); padding: 140px 0; overflow: hidden; position: relative; }
.stories-wrap { position: relative; }
.stories-rail { display: flex; gap: 24px; padding: 0 32px 20px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; scroll-behavior: smooth; }
.stories-rail::-webkit-scrollbar { display: none; }
/* Stories: desktop-only prev/next. Mobile uses touch scroll on .stories-rail. */
.stories-nav { display: flex; justify-content: flex-end; gap: 10px; padding: 0 32px 16px; }
@media (max-width: 900px) { .stories-nav { display: none; } }

.stories-nav-btn {
  width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line-2); border-radius: 50%;
  background: transparent;
  color: var(--dim);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all .3s cubic-bezier(.2,.8,.2,1);
}
.stories-nav-btn:hover:not(:disabled) {
  border-color: var(--ink);
  color: var(--ink);
  background: #fff;
  transform: scale(1.05);
}
.stories-nav-btn:disabled { opacity: 0.25; cursor: not-allowed; border-color: transparent; }
.stories-nav-btn svg { display: block; }
.story { flex: 0 0 300px; scroll-snap-align: start; aspect-ratio: 1 / 1.22; border-radius: 16px; overflow: hidden; position: relative; border: 1px solid var(--line-2); background: #fff; display: flex; flex-direction: column; padding: 18px 18px 16px; justify-content: flex-start; transition: transform .4s, border-color .4s, box-shadow .4s; color: var(--ink); }
.story:hover { transform: translateY(-4px); border-color: var(--blue); box-shadow: 0 20px 40px -20px rgba(30,76,255,0.2); }
.story.accent-lime { background: linear-gradient(160deg, #E6EEFF, #fff); }
.story.accent-heat { background: linear-gradient(160deg, #FFE8DE, #fff); }
.story.accent-cyan { background: linear-gradient(160deg, var(--ink), var(--ink-2)); color: #fff; }
.story.accent-cyan .story-sport { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.15); }
.story-top { display: flex; justify-content: space-between; align-items: start; }
.story-sport { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; padding: 5px 9px; background: rgba(10,24,51,0.06); border: 1px solid var(--line); border-radius: 99px; }
.story-time { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; color: var(--orange); }
.story-mid { flex: 1; display: flex; flex-direction: column; justify-content: center; min-height: 0; padding: 8px 0 10px; }
.story-h { font-family: var(--font-display); font-weight: 500; font-size: clamp(22px, 3.2vw, 28px); line-height: 1.02; letter-spacing: -0.03em; margin: 0 0 8px; }
.story-h .serif { font-family: var(--font-serif); font-style: italic; color: var(--blue); font-weight: 400; }
.story.accent-cyan .story-h .serif { color: var(--orange); }
.story-detail { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; line-height: 1.35; color: var(--dim); margin: 0; max-width: 100%; }
.story.accent-cyan .story-detail { color: rgba(255,255,255,0.72); }
.story-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 4px; }
.story-avs { display: flex; }
.story-avs .a { width: 24px; height: 24px; border-radius: 50%; background: var(--paper-2); border: 2px solid #fff; margin-left: -7px; display: grid; place-items: center; font-size: 12px; }
.story-avs .a:first-child { margin-left: 0; }
.story.accent-cyan .story-avs .a { border-color: var(--ink); background: var(--ink-2); }
.story-spots { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; }
.story-spots b { color: var(--blue); }
.story.accent-heat .story-spots b { color: var(--orange); }
@media (max-width: 480px) {
  .story { flex: 0 0 min(280px, 86vw); padding: 16px 14px 14px; aspect-ratio: 1 / 1.18; }
}

/* How */
.how { background: var(--ink); color: var(--paper); }
.how .eyebrow { color: var(--orange); }
.how .eyebrow .idx { border-color: rgba(255,255,255,0.15); color: rgba(255,255,255,0.5); }
.how .sec-title { color: var(--paper); }
.how .sec-title .serif { color: var(--orange); }
.how .sec-header p { color: rgba(255,255,255,0.6); }

.steps { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid rgba(255,255,255,0.1); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 48px 32px 48px 0; border-right: 1px solid rgba(255,255,255,0.1); min-height: 420px; display: flex; flex-direction: column; transition: background .3s; }
.step:last-child { border-right: none; }
@media (max-width: 900px) { .step { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); padding: 32px 0; min-height: auto; } }
.step:hover { background: rgba(255,255,255,0.02); }
.step-n { font-family: var(--font-mono); font-size: 11px; color: rgba(255,255,255,0.45); letter-spacing: 0.14em; margin-bottom: 48px; }
.step-h { font-family: var(--font-display); font-weight: 500; font-size: clamp(36px,3.8vw,56px); letter-spacing: -0.03em; line-height: 0.95; margin-bottom: 16px; }
.step-p { font-size: 15px; line-height: 1.55; color: rgba(255,255,255,0.65); max-width: 32ch; }
.step-vis { margin-top: auto; padding-top: 32px; }

.sv-discover { display: flex; flex-direction: column; gap: 6px; }
.sv-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 99px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; width: fit-content; }
.sv-chip.on { background: var(--blue); color: #fff; border-color: var(--blue); }
.sv-join { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; padding: 16px; font-size: 13px; display: flex; flex-direction: column; gap: 10px; }
.sv-join .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sv-join .tap { padding: 9px 14px; background: var(--orange); color: #fff; border-radius: 99px; font-weight: 600; font-size: 12px; }
.sv-play { display: flex; flex-direction: column; gap: 6px; }
.sv-play .rate { display: flex; gap: 4px; font-size: 16px; }
.sv-next { margin-top: 8px; padding: 10px 14px; background: var(--orange); color: #fff; border-radius: 10px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; display: inline-block; width: fit-content; }

/* FAQ */
.faq .sec-title { max-width: 14ch; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); padding: 32px 0; }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; list-style: none; font-family: var(--font-display); font-weight: 500; font-size: clamp(22px,2.6vw,34px); letter-spacing: -0.025em; line-height: 1.2; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .pm { width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; transition: all .35s; position: relative; color: var(--ink); }
.faq-item .pm::before, .faq-item .pm::after { content: ''; position: absolute; background: currentColor; transition: transform .35s; }
.faq-item .pm::before { width: 12px; height: 1.5px; }
.faq-item .pm::after { width: 1.5px; height: 12px; }
.faq-item[open] .pm { background: var(--orange); color: #fff; border-color: var(--orange); }
.faq-item[open] .pm::after { transform: rotate(90deg); }
.faq-item:hover .pm { border-color: var(--blue); color: var(--blue); }
.faq-a { margin-top: 20px; font-size: 16px; line-height: 1.6; color: var(--dim); max-width: 68ch; }

/* CTA */
.cta { padding: 180px 0 120px; text-align: center; position: relative; overflow: hidden; background: var(--paper); }
.cta-glow { position: absolute; top: 0; left: 50%; transform: translate(-50%,-40%); width: 900px; height: 900px; background: radial-gradient(circle, rgba(255,91,31,0.18), transparent 60%); pointer-events: none; animation: glow-drift 8s ease-in-out infinite; }
@keyframes glow-drift { 0%,100%{transform:translate(-50%,-40%) scale(1)} 50%{transform:translate(-50%,-35%) scale(1.1)} }
.cta-eye { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--blue); margin-bottom: 36px; }
.cta-h { font-family: var(--font-display); font-weight: 500; font-size: clamp(64px,11vw,220px); line-height: 0.82; letter-spacing: -0.05em; margin-bottom: 48px; color: var(--ink); }
.cta-h .serif { font-family: var(--font-serif); font-style: italic; color: var(--orange); font-weight: 400; }
.cta-form-wrap { display: flex; flex-direction: column; align-items: center; width: 100%; }
.cta-form { display: inline-flex; padding: 6px; border: 1px solid var(--line-2); border-radius: 99px; background: #fff; transition: border-color .3s, box-shadow .3s; }
.cta-form:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(30,76,255,0.14); }
.cta-form.is-done:focus-within { border-color: var(--line-2); box-shadow: none; }
/* Submit control is removed in JS after success; this rule covers any remaining node (e.g. .btn overrides [hidden]). */
.cta-form.is-done button[type="submit"] { display: none !important; }
.cta-form input { background: transparent; border: none; outline: none; color: var(--ink); padding: 14px 20px; min-width: 300px; font-size: 14px; }
.cta-form input::placeholder { color: var(--dim-2); }
.cta-form.is-done input { min-width: 260px; cursor: default; color: var(--dim); }
.cta-form.is-done input::placeholder { color: transparent; }
.cta-inline-success { margin: 0; margin-top: 20px; max-width: 36ch; font-family: var(--font-display); font-weight: 500; font-size: clamp(22px, 2.8vw, 32px); letter-spacing: -0.02em; line-height: 1.2; color: var(--ink); }
.cta-foot { margin-top: 28px; font-size: 13px; color: var(--dim); }

/* Mobile: stack email + waitlist button so the control is not cramped side-by-side */
@media (max-width: 480px) {
  .cta { padding-left: 24px; padding-right: 24px; }
  .cta-form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    border-radius: 20px;
    padding: 10px;
    gap: 8px;
  }
  .cta-form input {
    min-width: 0;
    width: 100%;
    flex: none;
    padding: 12px 14px;
    font-size: 15px;
    text-align: left;
  }
  .cta-form button[type="submit"].btn {
    width: 100%;
    justify-content: center;
    padding: 11px 16px;
    font-size: 13px;
    border-radius: 14px;
  }
  .cta-form.is-done input {
    min-width: 0;
    width: 100%;
    text-align: center;
  }
}

/* Wordmark */
.wordmark { padding: 40px 32px 20px; font-family: var(--font-display); font-weight: 600; font-size: clamp(64px,15vw,260px); letter-spacing: -0.055em; line-height: 0.9; white-space: nowrap; overflow: hidden; color: var(--ink); }
.wordmark .serif { font-family: var(--font-serif); font-style: italic; color: var(--orange); font-weight: 400; }
.wordmark-track { display: inline-block; animation: word-drift 40s linear infinite; will-change: transform; }
@keyframes word-drift { to { transform: translate3d(-50%, 0, 0); } }

/* Footer */
.footer { padding: 80px 32px 32px; border-top: 1px solid var(--line); background: var(--paper-2); }
.footer-in { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid var(--line); }
@media (max-width: 900px) { .footer-in { grid-template-columns: 1fr 1fr; } }
.footer-brand p { font-size: 13px; color: var(--dim); line-height: 1.5; max-width: 32ch; }
.footer-col h5 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim-2); font-weight: 400; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--ink); transition: color .2s; }
.footer-col a:hover { color: var(--blue); }
.footer-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--dim-2); text-transform: uppercase; }

/* Tweaks */
.tweaks { position: fixed; bottom: 20px; right: 20px; width: 260px; background: rgba(255,255,255,0.95); backdrop-filter: blur(20px); border: 1px solid var(--line-2); border-radius: 18px; padding: 18px; z-index: 1000; display: none; font-size: 12px; color: var(--ink); box-shadow: 0 20px 60px -20px rgba(10,24,51,0.25); }
.tweaks.on { display: block; }
.tweaks h5 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); margin-bottom: 16px; font-weight: 500; }
.tw-row { margin-bottom: 16px; }
.tw-row label { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); margin-bottom: 8px; }
.tw-swatches { display: flex; gap: 6px; }
.tw-swatches button { width: 24px; height: 24px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; }
.tw-swatches button.sel { border-color: var(--ink); }
.tw-seg { display: flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.tw-seg button { padding: 6px 10px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.6; flex: 1; }
.tw-seg button.on { background: var(--blue); color: #fff; opacity: 1; }

/* Perf: isolate heavy sections so they don't repaint off-screen */
.pillars, .stories, .how, .manifesto, .footer {
  content-visibility: auto;
  contain-intrinsic-size: 1200px;
}
.ticker { contain: layout paint; }

body.subtle .ticker-track { animation-duration: 90s; }
body.subtle .wordmark-track { animation-duration: 80s; }
