/* ==========================================================================
   Botnasium — production stylesheet
   Source of truth: approved Botnasium Design (brand system artboard).
   Bright Lab / Dark Arena · Cobalt / Cyan / Volt / Graphite / Night
   Archivo (display, width axis) · Figtree (body) · JetBrains Mono (data)
   ========================================================================== */

@font-face { font-family: 'Archivo'; src: url('/assets/fonts/archivo-var.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('/assets/fonts/figtree-var.woff2') format('woff2'); font-weight: 300 900; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/assets/fonts/jetbrains-mono-var.woff2') format('woff2'); font-weight: 100 800; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --cobalt: #1B3FE0; --cobalt-deep: #0F2699; --cobalt-press: #0B1F80; --cobalt-field: #1535C4;
  --electric: #2F6BFF; --cyan: #16C7E8; --volt: #C6F432; --volt-deep: #7FA012; --volt-hover: #D3FF45;
  --graphite: #11151C; --graphite-2: #2A3240; --slate: #5A6475; --mist: #9AA7BD; --fog: #C9D2E0;
  --line: #E3E8F0; --line-2: #D5DDEA; --cloud: #F3F6FA; --chip: #EEF2F8; --ice: #DCE5FF; --white: #FFFFFF;
  --night: #070B14; --night-2: #0E1526; --night-3: #16223F; --night-line: #1F2A44; --arena-field: #10204F;
  --danger: #B42318; --danger-bg: #FDECEA; --danger-ink: #7A1A10; --warn-bg: #FFF6DB; --warn-ink: #5C4300;

  --f-display: 'Archivo', 'Arial Black', 'Helvetica Neue', Arial, sans-serif;
  --f-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --gutter: clamp(20px, 4.4vw, 64px);
  --max: 1312px;
  --section-y: clamp(72px, 9vw, 128px);
  --r-s: 10px; --r-m: 18px; --r-l: 28px;
  --shadow-lift: 0 18px 40px -18px rgba(17,21,28,.35);
  --ease: cubic-bezier(.2,0,.2,1); --ease-out: cubic-bezier(.16,1,.3,1);
  --focus: 3px solid var(--cyan);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--white); color: var(--graphite); font-family: var(--f-body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: var(--cobalt); }
a:hover { color: var(--cobalt-deep); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: var(--focus); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--graphite); color: var(--white); padding: 12px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; color: var(--white); }

/* ---------- Type ---------- */
.d { font-family: var(--f-display); font-stretch: 112%; font-weight: 900; text-transform: uppercase; line-height: .94; letter-spacing: -.012em; text-wrap: balance; }
.wm { font-family: var(--f-display); font-stretch: 125%; font-weight: 900; line-height: 1; letter-spacing: .005em; }
.m { font-family: var(--f-mono); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; line-height: 1.35; }
.d-hero { font-size: clamp(36px, 12vw, 92px); }
.d-xxl { font-size: clamp(46px, 7.4vw, 112px); }
.d-xl { font-size: clamp(42px, 6.2vw, 88px); }
.d-l { font-size: clamp(30px, 9.4vw, 72px); }
@media (min-width: 900px) { .d-l { font-size: clamp(44px, 5vw, 72px); } }
.d-m { font-size: clamp(34px, 4.3vw, 60px); }
.d-s { font-size: clamp(28px, 3.1vw, 44px); }
.d-xs { font-size: clamp(22px, 2vw, 28px); }
.lead { font-size: clamp(17px, 1.45vw, 20px); line-height: 1.6; color: var(--graphite-2); }
.muted { color: var(--slate); }
.eyebrow { color: var(--cobalt); }
.t-cobalt { color: var(--cobalt); } .t-volt { color: var(--volt); } .t-cyan { color: var(--cyan); } .t-white { color: var(--white); }
.num { font-family: var(--f-mono); font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.stack { display: flex; flex-direction: column; gap: var(--gap, 20px); }
.row { display: flex; flex-wrap: wrap; gap: var(--gap, 14px); align-items: center; }
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: end; }
@media (min-width: 900px) { .split { grid-template-columns: 1.2fr 1fr; } .split.even { grid-template-columns: 1fr 1fr; } .split.center { align-items: center; } }
.grid { display: grid; gap: var(--gap, 16px); grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 260px)), 1fr)); }
.dots { background-image: radial-gradient(circle, #CBD4E2 1.1px, transparent 1.3px); background-size: 24px 24px; }
.dots-dark { background-image: radial-gradient(circle, rgba(255,255,255,.13) 1.1px, transparent 1.3px); background-size: 24px 24px; }
.bg-cloud { background-color: var(--cloud); }
.bg-night { background-color: var(--night); color: var(--white); }
.bg-cobalt { background-color: var(--cobalt); color: var(--white); }
.bg-graphite { background-color: var(--graphite); color: var(--white); }
.panel-round { border-radius: clamp(22px, 3vw, 32px); }
.inset { margin-inline: var(--gutter); }
@media (min-width: 1440px) { .inset { margin-inline: auto; max-width: var(--max); } }

/* ---------- Buttons & chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 26px; border-radius: 12px; border: 2px solid transparent; font-family: var(--f-display); font-stretch: 112%; font-weight: 800; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform 90ms var(--ease), box-shadow 90ms var(--ease), background-color 140ms, color 140ms; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 13px; border-radius: 10px; }
.btn-volt { background: var(--volt); color: var(--graphite); box-shadow: 0 4px 0 var(--volt-deep); }
.btn-volt:hover { background: var(--volt-hover); color: var(--graphite); }
.btn-volt:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--volt-deep); }
.btn-cobalt { background: var(--cobalt); color: var(--white); box-shadow: 0 4px 0 var(--cobalt-press); }
.btn-cobalt:hover { background: #2A4DF0; color: var(--white); }
.btn-cobalt:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--cobalt-press); }
.btn-dark { background: var(--graphite); color: var(--white); }
.btn-dark:hover { background: var(--graphite-2); color: var(--white); }
.btn-line { background: transparent; color: var(--graphite); border-color: var(--graphite); }
.btn-line:hover { background: var(--graphite); color: var(--white); }
.btn-line-inv { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn-line-inv:hover { background: var(--white); color: var(--graphite); }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--night-3); color: var(--mist); box-shadow: none; cursor: default; transform: none; }
.btn.is-busy { opacity: .75; cursor: progress; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 4px 12px; border-radius: 999px; background: var(--chip); color: var(--graphite-2); font-size: 13px; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; font-weight: 800; font-size: 14px; white-space: nowrap; }
.tag { display: inline-flex; align-self: flex-start; align-items: center; padding: 6px 10px; border-radius: 6px; font-family: var(--f-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.tag-line { border: 1.5px solid currentColor; }
.tag-volt { background: var(--volt); color: var(--graphite); }
.tag-ice { background: var(--ice); color: var(--cobalt-deep); }
.status-pill { display: inline-flex; align-self: flex-start; align-items: center; gap: 10px; padding: 8px 14px 8px 12px; background: var(--graphite); color: var(--white); border-radius: 999px; }
.led { display: inline-block; flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--volt); box-shadow: 0 0 0 4px rgba(198,244,50,.22); animation: led 1.8s ease-in-out infinite; }
@keyframes led { 50% { opacity: .35; box-shadow: 0 0 0 1px rgba(198,244,50,.1); } }
.oct { clip-path: polygon(29% 0, 71% 0, 100% 29%, 100% 71%, 71% 100%, 29% 100%, 0 71%, 0 29%); display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--f-mono); font-weight: 700; flex-shrink: 0; }
.route-anim { stroke-dasharray: 10 10; animation: route 1s linear infinite; }
@keyframes route { to { stroke-dashoffset: -20; } }
.lift { transition: transform 160ms var(--ease), box-shadow 160ms var(--ease); }
.lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.th-cyan { background: var(--cyan); color: #0E1526; } .th-cobalt { background: var(--cobalt); color: var(--white); }
.th-electric { background: var(--electric); color: var(--white); } .th-graphite { background: var(--graphite); color: var(--white); }
.th-volt { background: var(--volt); color: var(--graphite); } .th-night { background: var(--night-2); color: var(--white); }
.th-deep { background: var(--cobalt-deep); color: var(--white); }
.ph { background: repeating-linear-gradient(135deg, #E3E9F3 0 10px, var(--cloud) 10px 20px); border: 1px dashed #8A96AB; border-radius: 14px; display: flex; align-items: flex-end; padding: 12px; }
.ph span { background: var(--white); color: var(--graphite-2); padding: 5px 8px; border-radius: 6px; }

/* ---------- Header / navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
.site-header.dark { background: rgba(7,11,20,.96); border-bottom-color: var(--night-line); color: var(--white); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; color: inherit; }
.brand:hover { color: inherit; }
.brand .wm { font-size: clamp(18px, 1.7vw, 23px); }
.brand svg { width: clamp(30px, 2.6vw, 38px); height: auto; }
.nav-desktop { display: none; gap: clamp(14px, 1.7vw, 26px); }
.nav-desktop a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-decoration: none; font-weight: 600; font-size: 15px; border-bottom: 2px solid transparent; }
.nav-desktop a:hover { border-bottom-color: var(--cobalt); color: inherit; }
.dark .nav-desktop a:hover { border-bottom-color: var(--cyan); }
.nav-desktop a[aria-current="page"] { border-bottom: 3px solid var(--volt); }
.header-actions { display: flex; align-items: center; gap: 6px; }
.header-cta { display: none; }
.menu { position: relative; }
.menu > summary { list-style: none; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 10px; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary:hover { background: rgba(127,137,160,.12); }
.menu .i-close { display: none; }
.menu[open] .i-open { display: none; }
.menu[open] .i-close { display: block; }
.menu-panel { position: fixed; inset: 76px 0 0 0; background: var(--night); color: var(--white); padding: 12px var(--gutter) 28px; display: flex; flex-direction: column; overflow-y: auto; }
.menu-panel nav { display: flex; flex-direction: column; }
.menu-panel nav a { display: flex; justify-content: space-between; align-items: center; min-height: 56px; color: var(--white); text-decoration: none; border-bottom: 1px solid var(--night-line); font-family: var(--f-display); font-stretch: 112%; font-weight: 900; text-transform: uppercase; font-size: 24px; }
.menu-panel nav a:hover { color: var(--volt); }
.menu-panel nav a .m { color: var(--mist); font-size: 11px; }
.menu-panel .btn { margin-top: auto; }
.menu-panel .menu-foot { margin-top: 16px; text-align: center; color: var(--mist); }
@media (min-width: 600px) { .header-cta { display: inline-flex; } }
@media (min-width: 1180px) {
  .nav-desktop { display: flex; }
  .menu { display: none; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--graphite); color: var(--mist); padding-block: 56px 32px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 12px; }
.footer-brand .brand { color: var(--white); }
.footer-col { display: flex; flex-direction: column; }
.footer-col .m { color: var(--mist); margin-bottom: 6px; }
.footer-col a, .footer-col span.soon { display: inline-flex; align-items: center; min-height: 44px; color: var(--fog); text-decoration: none; font-size: 15px; }
.footer-col a:hover { color: var(--volt); }
.footer-col span.soon { color: var(--mist); }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--graphite-2); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; font-size: 14px; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
.footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; color: var(--fog); text-decoration: none; }
.footer-bottom a:hover { color: var(--volt); }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } .footer-brand { grid-column: auto; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(36px, 5vw, 64px) clamp(56px, 6vw, 80px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(36px, 4vw, 48px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: clamp(20px, 2.4vw, 32px); }
.hero-title { display: flex; flex-direction: column; gap: 2px; }
.hero-title .blue { color: var(--cobalt); }
.hero-title .last { display: flex; align-items: flex-end; gap: 16px; }
.hero-title .last svg { width: clamp(52px, 6.5vw, 96px); height: auto; margin-bottom: .12em; }
.hero-sub { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.5; color: var(--graphite-2); max-width: 36ch; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--slate); font-size: 11.5px; }
.hero-visual { position: relative; }
.mission-panel { position: relative; z-index: 1; background: var(--cobalt); color: var(--white); border-radius: clamp(20px, 2.4vw, 28px); padding: clamp(14px, 1.8vw, 22px) clamp(14px, 2vw, 26px); display: flex; flex-direction: column; gap: 14px; box-shadow: 0 40px 80px -40px rgba(15,38,153,.6); }
.mp-head, .mp-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.mp-head .m { font-size: clamp(10px, .9vw, 12px); }
.mp-status { display: flex; gap: 14px; align-items: center; }
.mp-status .phase { opacity: .7; }
.mp-status .timer { color: var(--volt); font-size: clamp(11px, 1vw, 14px); min-width: 11ch; text-align: right; }
.field { position: relative; border-radius: 14px; overflow: hidden; background: var(--cobalt-field); aspect-ratio: 520 / 400; }
.field svg { width: 100%; height: 100%; }
.field-done { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.field-done > div { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 22px; background: var(--night); border: 2px solid var(--volt); border-radius: 14px; box-shadow: 0 20px 50px rgba(7,11,20,.5); animation: pop 420ms var(--ease-out) both; }
.field-done .d { font-size: clamp(18px, 2vw, 26px); color: var(--volt); }
.replay { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px 0 8px; margin-left: -8px; border: none; border-radius: 10px; background: transparent; color: var(--white); cursor: pointer; font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: .9; }
.replay:hover { background: rgba(255,255,255,.12); opacity: 1; }
.sensor { font-size: 11px; opacity: .9; text-align: right; }
.code-card, .hero-photo { display: none; }
@media (min-width: 700px) {
  .hero-visual { padding-bottom: 190px; }
  .code-card { display: flex; position: absolute; left: -12px; bottom: 0; z-index: 2; width: 250px; background: var(--white); border-radius: 16px; padding: 16px 18px; box-shadow: 0 24px 50px -20px rgba(17,21,28,.45); flex-direction: column; gap: 8px; }
  .hero-photo { display: flex; position: absolute; right: 24px; bottom: 0; z-index: 0; width: min(300px, 48%); height: 160px; box-shadow: 0 24px 50px -24px rgba(17,21,28,.4); }
}
.code-card .blocks { display: flex; flex-direction: column; gap: 6px; font-family: var(--f-mono); font-size: 13px; font-weight: 600; }
.code-card .blocks span { padding: 6px 10px; border-radius: 6px; }
@media (min-width: 1100px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 620px); }
  .hero .d-hero { font-size: clamp(74px, 7.1vw, 108px); }
}
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }

/* Hero mission phases. Server renders the completed state; hero.js plays the opening once. */
.hz, .h-rover, .h-draw, .h-trail, .h-amb { transition: opacity 400ms; }
.hero-pending .field .hz, .hero-pending .field .h-rover, .hero-pending .field .h-amb, .hero-pending .field .h-trail { opacity: 0; animation: reveal 0s 2.4s forwards; }
@keyframes reveal { to { opacity: 1; } }
.ph-pre .hz, .ph-pre .h-rover { opacity: 0; }
.ph-init .h-rover { opacity: 0; }
.h-scan { opacity: 0; }
.ph-init .h-scan { animation: scan 720ms cubic-bezier(.4,0,.2,1) both; }
@keyframes scan { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(400px); } }
.h-draw { stroke-dasharray: 1; stroke-dashoffset: 0; opacity: 0; }
.ph-pre .h-draw, .ph-init .h-draw, .ph-wake .h-draw, .ph-active .h-draw { stroke-dashoffset: 1; opacity: .9; }
.ph-route .h-draw, .ph-run .h-draw, .ph-complete .h-draw { stroke-dashoffset: 0; opacity: .9; transition: stroke-dashoffset 900ms cubic-bezier(.4,0,.2,1); }
.h-amb { opacity: .75; }
.ph-pre .h-amb, .ph-init .h-amb, .ph-wake .h-amb, .ph-active .h-amb, .ph-route .h-amb, .ph-run .h-amb, .ph-complete .h-amb { opacity: 0; }
.h-trail { stroke-dasharray: 1; opacity: .4; }
.ph-run .h-trail, .ph-complete .h-trail { opacity: 1; }
.h-led { fill: #3A4458; }
.ph-settled .h-led, .ph-wake .h-led, .ph-active .h-led, .ph-route .h-led, .ph-run .h-led, .ph-complete .h-led { fill: var(--volt); animation: led 1.4s ease-in-out infinite; }
.mission-led { background: #5E6B84; animation: none; box-shadow: none; }
.mission-led.on { background: var(--volt); box-shadow: 0 0 0 4px rgba(198,244,50,.22); animation: led 1.8s ease-in-out infinite; }
.mission-label { transition: opacity 300ms; }
.mission-label.dim { opacity: .45; }
.cone { opacity: 0; transition: opacity 140ms; }
.sense .cone { opacity: .95; }
.pulse { transform-box: fill-box; transform-origin: center; opacity: 0; }
.near .pulse { animation: pulse 800ms ease-out infinite; }
.ph-complete .pulse { animation: pulse 800ms ease-out 2; }
.ph-settled .pulse { animation: pulse 3.2s ease-out infinite; }
@keyframes pulse { 0% { opacity: .9; transform: scale(.55); } 100% { opacity: 0; transform: scale(1.7); } }
.core { transform-box: fill-box; transform-origin: center; transition: transform 300ms; }
.ph-complete .core { transform: scale(1.5); }

/* ---------- Ticker ---------- */
.ticker { background: var(--graphite); overflow: hidden; height: clamp(52px, 5vw, 72px); display: flex; align-items: center; }
.ticker-track { display: flex; gap: 48px; white-space: nowrap; width: max-content; animation: tick 38s linear infinite; font-size: clamp(18px, 1.8vw, 26px); color: var(--white); }
.ticker-track span:nth-child(4n+2) { color: var(--volt); } .ticker-track span:nth-child(4n+4) { color: var(--cyan); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- Loop steps ---------- */
.steps5 { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin-top: clamp(40px, 5vw, 64px); }
.step { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: var(--r-m); background: var(--cloud); }
.step .d { font-size: clamp(16px, 1.45vw, 22px); }
.step p { color: var(--graphite-2); line-height: 1.5; }
.step.dark { background: var(--graphite); color: var(--white); } .step.dark p { color: var(--fog); } .step.dark .m { color: var(--volt); }

/* ---------- How it works (stages) ---------- */
.stage-tabs { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .stage-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } }
.stage-tab { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px 18px; min-height: 88px; border-radius: 16px; border: 2px solid var(--line-2); background: var(--white); color: var(--graphite); cursor: pointer; text-align: left; text-decoration: none; transition: border-color 140ms, background-color 140ms, transform 90ms; }
.stage-tab:hover { border-color: var(--cobalt); color: var(--graphite); }
.stage-tab:active { transform: translateY(2px); }
.stage-tab .m { color: var(--cobalt); }
.stage-tab .d { font-size: clamp(22px, 2.2vw, 30px); }
.stage-tab small { font-size: 13px; opacity: .8; }
.stage-tab[aria-selected="true"] { background: var(--graphite); border-color: var(--graphite); color: var(--white); }
.stage-tab[aria-selected="true"] .m { color: var(--volt); }
.rail { height: 6px; background: var(--line-2); border-radius: 4px; margin-top: 12px; }
.rail > div { height: 100%; width: 100%; background: var(--cobalt); border-radius: 4px; transform-origin: left; transition: transform 420ms var(--ease); }
.stage-panels { margin-top: 28px; }
.stage-panel { display: grid; gap: clamp(24px, 4vw, 56px); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-l); padding: clamp(16px, 3vw, 40px); }
.stage-panel + .stage-panel { margin-top: 20px; }
.js .stage-panel[hidden] { display: none; }
@media (min-width: 1000px) { .stage-panel { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: center; } }
.stage-art { border-radius: 20px; background-color: var(--night-2); overflow: hidden; aspect-ratio: 760 / 420; display: flex; align-items: center; justify-content: center; }
.stage-art svg { width: 100%; height: 100%; }
.stage-copy { display: flex; flex-direction: column; gap: 18px; }
.stage-copy p { color: var(--graphite-2); font-size: 18px; }
.js .stage-panel:not([hidden]) .stage-art > * { animation: pop 420ms var(--ease-out); }

/* ---------- Programs ---------- */
.program-cards { position: relative; display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); margin-top: clamp(40px, 5vw, 56px); }
.program-card { display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: var(--white); }
.program-card .top { padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.program-card .top .row { justify-content: space-between; }
.program-card { container-type: inline-size; }
.program-card h3 { font-size: clamp(22px, calc(13.5cqi - 7px), 40px); }
.program-card .body { padding: 26px; display: flex; flex-direction: column; gap: 18px; flex-grow: 1; }
.program-card .kv { display: flex; flex-direction: column; gap: 6px; }
.program-card .kv .m { color: var(--slate); font-size: 11px; }
.program-card .kv span:last-child { font-weight: 600; }
.price-row { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.price { font-family: var(--f-display); font-stretch: 112%; font-weight: 900; font-size: 32px; line-height: 1; }
.price small { font-size: 16px; font-weight: 700; }
.price-label { font-size: 10.5px; color: var(--slate); }
.route-rail { display: none; }
@media (min-width: 1060px) { .route-rail { display: block; position: absolute; left: 0; right: 0; top: -34px; } .route-rail svg { width: 100%; height: 24px; } }

/* ---------- Progression ---------- */
.levels { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); }
.level { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.level .oct { width: clamp(92px, 8vw, 120px); height: clamp(92px, 8vw, 120px); gap: 6px; }
.level .oct b { font-size: clamp(24px, 2.2vw, 30px); }
.pips { display: flex; gap: 4px; } .pips i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.level .d { font-size: 26px; }
.level p { color: var(--graphite-2); font-size: 15px; line-height: 1.5; }
.lvl-glow { animation: lvl 5s ease-in-out infinite; }
@keyframes lvl { 0%, 100% { filter: none; } 10% { filter: drop-shadow(0 0 14px rgba(198,244,50,.9)); } 20% { filter: none; } }

/* ---------- Arena ---------- */
.arena { position: relative; overflow: hidden; }
.beam { position: absolute; top: -200px; width: 520px; height: 900px; background: radial-gradient(ellipse at top, rgba(22,199,232,.22), transparent 65%); pointer-events: none; opacity: .4; transition: opacity 700ms; }
.arena.live .beam { opacity: 1; }
.arena-head { position: relative; display: flex; flex-direction: column; gap: 20px; align-items: center; text-align: center; }
.arena-head h2 { max-width: 14ch; }
.arena-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(16px, 2.2vw, 32px); margin-top: clamp(36px, 5vw, 56px); }
@media (min-width: 1100px) { .arena-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
.a-card { background: var(--night-2); border: 1px solid var(--night-line); border-radius: 24px; padding: clamp(14px, 1.6vw, 22px); }
.a-main { display: flex; flex-direction: column; gap: 14px; }
.a-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; }
.a-top .m { color: var(--mist); }
.a-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.lights { display: flex; gap: 6px; }
.alight { width: 12px; height: 12px; border-radius: 50%; background: var(--night-line); border: 1px solid #2E3B5C; transition: background-color 120ms, box-shadow 120ms; }
.alight.on { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.alight.go { background: var(--volt); border-color: var(--volt); box-shadow: 0 0 14px var(--volt); }
.a-status { color: var(--volt) !important; min-width: 16ch; text-align: right; }
.snd { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 1px solid #2E3B5C; border-radius: 10px; background: transparent; color: var(--fog); cursor: pointer; font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.snd:hover { border-color: var(--mist); color: var(--white); }
.snd[aria-pressed="true"] { border-color: var(--volt); color: var(--volt); }
.snd .on-icon { display: none; } .snd[aria-pressed="true"] .on-icon { display: block; } .snd[aria-pressed="true"] .off-icon { display: none; }
.afield { position: relative; border-radius: 14px; overflow: hidden; background: var(--arena-field); aspect-ratio: 720 / 460; transition: box-shadow 600ms; }
.afield svg { width: 100%; height: 100%; }
.arena.live .afield { box-shadow: 0 0 0 2px rgba(22,199,232,.75), 0 0 80px -12px rgba(22,199,232,.55); }
.cd-wrap { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; background: rgba(7,11,20,.35); }
.cd-wrap.go { background: transparent; }
.cd { font-family: var(--f-display); font-stretch: 125%; font-weight: 900; font-size: clamp(88px, 14vw, 176px); line-height: 1; color: var(--white); animation: cd 680ms var(--ease-out) both; }
.cd-wrap.go .cd { color: var(--volt); }
@keyframes cd { 0% { opacity: 0; transform: scale(1.5); } 28% { opacity: 1; transform: scale(1); } 100% { opacity: .15; transform: scale(.92); } }
.a-result { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; padding: 12px; }
.a-result > div { width: min(380px, 100%); background: var(--night); border: 2px solid var(--volt); border-radius: 20px; padding: clamp(16px, 2vw, 26px); display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,.6); animation: pop 520ms var(--ease-out) both; }
.a-result .d { font-size: clamp(22px, 2.6vw, 34px); color: var(--volt); }
.a-result .num { font-size: clamp(26px, 3vw, 40px); }
.badge-unlock { display: flex; align-items: center; gap: 12px; padding: 8px 18px 8px 8px; background: var(--night-2); border-radius: 999px; }
.badge-unlock .oct { width: 40px; height: 40px; background: var(--volt); }
.loop-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; }
.loop-head .m { color: var(--mist); } .loop-head span:last-child { color: var(--fog); font-size: 14px; }
.loop { display: grid; grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); gap: 6px; }
.lp { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 40px; padding: 4px 6px; border-radius: 10px; border: 1px solid var(--night-line); color: #8B97AE; font-family: var(--f-mono); font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1.2; transition: background-color 200ms, color 200ms, border-color 200ms; }
.lp.done { color: var(--volt); border-color: rgba(198,244,50,.35); }
.lp.now { background: var(--volt); border-color: var(--volt); color: var(--graphite); }
.lp.next { color: var(--white); border-color: var(--mist); border-style: dashed; }
.a-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 16px; }
.a-actions > span { color: var(--mist); font-size: 15px; }
.startbtn { min-width: 250px; }
@media (max-width: 520px) { .startbtn { width: 100%; min-width: 0; } }
.a-side { display: flex; flex-direction: column; gap: 16px; }
.timer-big { font-size: clamp(48px, 5vw, 64px); letter-spacing: -.02em; color: var(--mist); line-height: 1.1; }
.a-live .timer-big { color: var(--white); } .a-done .timer-big { color: var(--volt); }
.runlog { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--night-line); min-height: 96px; }
.runlog li { display: grid; grid-template-columns: 78px 1fr; gap: 10px; font-family: var(--f-mono); font-size: 12px; color: var(--fog); animation: login 260ms ease-out both; }
.runlog li span:first-child { color: #6B7A96; }
@keyframes login { from { opacity: 0; transform: translateY(4px); } }
.board { display: flex; flex-direction: column; gap: 6px; }
.board li { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; }
.board li .m { color: var(--mist); }
.board li:first-child .m { color: var(--volt); }
.board li.you { background: var(--volt); color: var(--graphite); animation: lbin 700ms var(--ease-out) both; }
.board li.you .m { color: var(--graphite); }
@keyframes lbin { from { opacity: 0; transform: translateX(-28px); } }
.arena-foot { position: relative; display: grid; gap: 24px; align-items: center; margin-top: clamp(36px, 5vw, 56px); padding-top: 24px; border-top: 1px solid var(--night-line); }
@media (min-width: 1000px) { .arena-foot { grid-template-columns: 1fr auto; gap: 48px; } }
.arena-foot .claims { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: clamp(20px, 2vw, 26px); }

/* ---------- Lab Zero ---------- */
.plan { position: relative; background: var(--cobalt-deep); border-radius: var(--r-l); padding: clamp(18px, 2.4vw, 28px); color: var(--white); display: flex; flex-direction: column; gap: 14px; }
.plan-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.plan-grid { border: 2px solid rgba(255,255,255,.55); border-radius: 12px; background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 20px 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 14px; min-height: 360px; }
@media (min-width: 560px) { .plan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: 1fr 1fr; min-height: 420px; } .zone.arena-z { grid-column: span 2; } }
.zone { border: 1.5px dashed rgba(255,255,255,.6); border-radius: 8px; padding: 12px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 96px; }
.zone .m { font-size: 11px; } .zone span:last-child { font-size: 13px; color: var(--fog); }
.zone.arena-z { border: 2px solid var(--volt); background: rgba(198,244,50,.08); } .zone.arena-z .m { color: var(--volt); }

/* ---------- Founding 25 band ---------- */
.founding-band { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(36px, 5vw, 72px); padding: clamp(40px, 6vw, 80px) clamp(22px, 5vw, 72px); overflow: hidden; }
@media (min-width: 1280px) { .founding-band { grid-template-columns: minmax(0, 1fr) 460px; } }
.benefits { display: grid; gap: 14px 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.benefits li { display: flex; gap: 12px; align-items: center; font-weight: 600; font-size: 17px; }
.benefits svg { flex-shrink: 0; }
.slots-card { background: rgba(7,11,20,.28); border-radius: 24px; padding: clamp(20px, 2.4vw, 28px); display: flex; flex-direction: column; gap: 20px; align-self: center; }
.slots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(6px, 1vw, 12px); }
.slot { aspect-ratio: 1; border-radius: clamp(8px, 1vw, 12px); border: 2px solid rgba(255,255,255,.45); display: flex; align-items: center; justify-content: center; font-family: var(--f-mono); font-weight: 700; font-size: clamp(11px, 1vw, 15px); color: var(--white); }
.footnote { font-size: 14px; color: var(--ice); }

/* ---------- Trust ---------- */
.trust-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); margin-top: clamp(32px, 4vw, 48px); }
.trust { padding: 26px; border: 1px solid var(--line); border-radius: var(--r-m); display: flex; flex-direction: column; gap: 12px; }
.trust h3 { font-size: 18px; font-weight: 800; } .trust p { color: var(--graphite-2); line-height: 1.55; }
.trust-link { padding: 26px; background: var(--cloud); border-radius: var(--r-m); display: flex; flex-direction: column; justify-content: space-between; gap: 12px; text-decoration: none; color: var(--graphite); font-size: 20px; font-weight: 800; line-height: 1.3; }
.trust-link:hover { color: var(--graphite); }

/* ---------- Project cards ---------- */
.projects { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); margin-top: clamp(32px, 4vw, 48px); }
.project { background: var(--white); border-radius: 22px; overflow: hidden; border: 1px solid var(--line); }
.project .art { height: 220px; display: flex; align-items: center; justify-content: center; }
.project .art svg { width: 180px; height: 140px; }
.project .body { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.project .body .row { justify-content: space-between; }
.project h3 { font-size: 26px; } .project p { color: var(--graphite-2); }

/* ---------- Finale ---------- */
.finale { position: relative; overflow: hidden; text-align: center; padding-block: clamp(96px, 11vw, 150px); }
.finale .stack { align-items: center; --gap: 28px; position: relative; }
.finale h2 { max-width: 13ch; }
.finale-route { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 16px; opacity: .5; }

/* ---------- Generic cards used on inner pages ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: 22px; }
.card-pad { padding: clamp(20px, 2.4vw, 28px); }
.page-hero { padding-block: clamp(56px, 7vw, 104px) clamp(48px, 6vw, 88px); }
.page-hero h1 { max-width: 16ch; }
.kicker-list { display: grid; gap: 14px; }

/* Programs page rows */
.prog-row { display: grid; border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }
.prog-row + .prog-row { margin-top: 28px; }
@media (min-width: 960px) { .prog-row { grid-template-columns: 400px 1fr; } }
.prog-side { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.prog-side h2 { font-size: clamp(28px, 8vw, 40px); }
.prog-side .oct { width: 64px; height: 64px; font-size: 20px; }
.prog-main { padding: clamp(24px, 3vw, 40px); display: grid; gap: 32px; }
@media (min-width: 700px) { .prog-main { grid-template-columns: 1fr 1fr; } .prog-main .span2 { grid-column: span 2; } }
.rhythm { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 560px) { .rhythm { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.rhythm span { padding: 14px; border-radius: 12px; background: var(--cloud); font-weight: 800; }
.rhythm span:last-child { background: var(--graphite); color: var(--volt); }
.level-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.level-card { background: var(--white); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.level-card .oct { width: 72px; height: 72px; font-size: 22px; }
.level-card .d { font-size: 26px; } .level-card p { color: var(--graphite-2); font-size: 15px; line-height: 1.5; }

/* Arena page */
.mission-steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.mission-step { background: var(--night-2); border: 1px solid var(--night-line); border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.mission-step .num { font-size: 44px; color: var(--cyan); } .mission-step p { color: var(--fog); }
.mission-step.v { background: var(--volt); color: var(--graphite); border-color: var(--volt); } .mission-step.v .num { color: var(--graphite); } .mission-step.v p { color: var(--graphite); }
.sample-missions { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.smission { border-radius: 22px; overflow: hidden; background: var(--night-2); border: 1px solid var(--night-line); }
.smission .art { height: 180px; background-color: var(--arena-field); background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 20px 20px; display: flex; align-items: center; justify-content: center; }
.smission .art svg { width: 220px; height: 140px; }
.smission .body { padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.smission .body p { color: var(--fog); font-size: 15px; }
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); border-top: 1px solid var(--night-line); border-bottom: 1px solid var(--night-line); }
.values > div { padding: 32px 24px 32px 0; display: flex; flex-direction: column; gap: 10px; }
.values p { color: var(--fog); }
.values .d { font-size: clamp(22px, 2.1vw, 30px) !important; }
.saturday { display: grid; gap: clamp(32px, 5vw, 72px); }
@media (min-width: 1000px) { .saturday { grid-template-columns: 440px 1fr; } }
.sched { display: flex; flex-direction: column; gap: 10px; }
.sched li { display: grid; grid-template-columns: minmax(64px, 110px) 1fr; align-items: center; gap: 8px 20px; padding: 18px clamp(16px, 2vw, 28px); background: var(--white); border-radius: 18px; }
@media (min-width: 640px) { .sched li { grid-template-columns: 110px 1fr auto; } }
.sched .num { font-size: clamp(20px, 2vw, 26px); }
.sched .d { font-size: clamp(20px, 2vw, 26px); }
.sched li > :last-child { grid-column: 2; justify-self: start; }
@media (min-width: 640px) { .sched li > :last-child { grid-column: auto; justify-self: end; } }
.sched li.night { background: var(--graphite); color: var(--white); } .sched li.night .num { color: var(--volt); }
.sched li.volt { background: var(--volt); }

/* Lab page */
.zones { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .zones { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: 300px 300px; } .zones .tall { grid-row: span 2; } }
.zones > div { border-radius: 22px; padding: 26px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; min-height: 220px; }
.zones .tall { justify-content: space-between; }
.zones .tall .card-inner { background: var(--white); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.trust-list { display: flex; flex-direction: column; gap: 10px; }
.trust-list li { background: var(--white); border-radius: 16px; padding: 22px 26px; display: grid; gap: 6px 20px; }
@media (min-width: 760px) { .trust-list li { grid-template-columns: 260px 1fr; } }
.trust-list b { font-size: 18px; }
.preview-card { position: relative; border-radius: var(--r-l); background: var(--white); border: 1px solid var(--line); box-shadow: 0 40px 80px -40px rgba(17,21,28,.4); overflow: hidden; }
.preview-ribbon { position: absolute; top: 18px; right: -44px; transform: rotate(35deg); background: var(--volt); padding: 6px 56px; }
.bar { height: 10px; border-radius: 5px; background: var(--line); } .bar > div { height: 100%; border-radius: 5px; background: var(--cobalt); }
.stat-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stat-tiles > div { background: var(--cloud); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }

/* Founding page */
.benefit-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .benefit-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .benefit-grid .hero-b { grid-row: span 2; } }
.benefit-grid > div { background: var(--cloud); border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.benefit-grid .hero-b { background: var(--graphite); color: var(--white); justify-content: flex-end; } .benefit-grid .hero-b p { color: var(--fog); }
.benefit-grid .v { background: var(--volt); }
.benefit-grid h3 { font-size: 20px; font-weight: 800; }
.howto { display: flex; flex-direction: column; gap: 12px; }
.howto li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; background: var(--white); border-radius: 18px; padding: 22px; }
.howto .num { font-size: 30px; color: var(--cobalt); }
.howto li.dark { background: var(--graphite); color: var(--white); } .howto li.dark .num { color: var(--volt); } .howto li.dark span { color: var(--fog); }
.faq-mini details { border-top: 1px solid var(--line-2); padding: 20px 0; }
.faq-mini details:last-child { border-bottom: 1px solid var(--line-2); }
.faq-mini summary, .faq summary { font-weight: 800; font-size: 19px; cursor: pointer; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 20px; list-style: none; }
.faq-mini summary::-webkit-details-marker, .faq summary::-webkit-details-marker { display: none; }
.faq-mini summary::after, .faq summary::after { content: '+'; font-family: var(--f-mono); font-size: 24px; color: var(--cobalt); flex-shrink: 0; }
.faq-mini details[open] summary::after, .faq details[open] summary::after { content: '–'; }
.faq-mini p, .faq p { margin-top: 10px; color: var(--graphite-2); line-height: 1.65; max-width: 68ch; }
.faq details { border-top: 1px solid var(--line); padding: 20px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.tbd { display: inline-block; margin-top: 12px; padding: 6px 10px; border-radius: 6px; background: var(--cloud); font-family: var(--f-mono); font-size: 12px; font-weight: 600; color: var(--cobalt); }

/* Schools / Camps / Parties */
.offers { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.offers > div { border: 1px solid var(--line); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.offers h3 { font-size: 20px; font-weight: 800; } .offers p { color: var(--graphite-2); font-size: 15px; }
.phases3 { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.phases3 > div { background: var(--white); border-radius: 22px; padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.phases3 .num { font-size: 34px; color: var(--cobalt); }
.phases3 .d { font-size: clamp(20px, 2vw, 26px) !important; }
.zones h3.d { font-size: clamp(22px, 2.2vw, 28px) !important; }
.party-flow .d { font-size: clamp(17px, 1.6vw, 22px) !important; }
.founding-band h2 { font-size: clamp(34px, 10.5vw, 88px); }
@media (min-width: 1280px) { .founding-band h2 { font-size: clamp(64px, 5.4vw, 88px); } }
.camp-cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.camp { border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: var(--white); }
.camp .top { position: relative; overflow: hidden; height: 200px; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; }
.camp .top h2 { font-size: clamp(28px, 2.6vw, 34px); position: relative; }
.camp .body { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.camp .body p { color: var(--graphite-2); }
.party-flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); border: 1px solid var(--night-line); border-radius: 24px; overflow: hidden; }
.party-flow li { padding: 22px; display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--night-line); }
@media (min-width: 900px) { .party-flow li { border-top: 0; border-left: 1px solid var(--night-line); } .party-flow li:first-child { border-left: 0; } }
.party-flow li:first-child { border-top: 0; }
.party-flow .num { font-size: 34px; color: var(--cyan); } .party-flow span:last-child { color: var(--fog); font-size: 15px; }
.party-flow li.v { background: var(--volt); color: var(--graphite); } .party-flow li.v .num { color: var(--graphite); } .party-flow li.v span:last-child { color: var(--graphite); }
.missions { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.mission { background: var(--white); color: var(--graphite); border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; }
.mission.signature { background: var(--graphite); color: var(--white); box-shadow: 0 30px 60px -30px rgba(17,21,28,.6); }
.mission .top { padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.mission h3 { font-size: clamp(28px, 10vw, 38px); }
.mission .body { padding: 28px; display: flex; flex-direction: column; gap: 14px; flex-grow: 1; }
.mission .body ul { display: flex; flex-direction: column; gap: 8px; font-weight: 600; }
.mission .foot { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.mission.signature .foot { border-top-color: var(--graphite-2); }
.pick { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 16px; border-radius: 12px; border: 2px solid currentColor; background: transparent; color: inherit; font-family: var(--f-display); font-stretch: 112%; font-weight: 800; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; text-decoration: none; }
.mission.signature .pick { color: var(--volt); }
.pick[aria-pressed="true"] { background: var(--volt); border-color: var(--volt); color: var(--graphite) !important; }

/* About */
.belief { display: grid; gap: clamp(24px, 5vw, 72px); }
@media (min-width: 1000px) { .belief { grid-template-columns: 380px 1fr; } }
.belief .lines { font-size: clamp(34px, 4.4vw, 64px); line-height: 1.02; display: flex; flex-direction: column; gap: 10px; }
.three { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.future-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.future-grid > div { border: 1.5px dashed var(--mist); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.future-grid > div:last-child { grid-column: 1 / -1; }
.future-grid b { font-size: 19px; }

/* Legal */
.legal { max-width: 760px; }
.legal h2 { font-size: 22px; font-weight: 800; margin-top: 32px; }
.legal p, .legal li { color: var(--graphite-2); line-height: 1.7; }
.legal ul { list-style: disc; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.draft-banner { display: flex; gap: 10px; align-items: flex-start; padding: 16px 18px; border-radius: 12px; background: var(--warn-bg); color: var(--warn-ink); font-weight: 600; }

/* ---------- Forms ---------- */
.form-card { background: var(--white); color: var(--graphite); border-radius: 24px; padding: clamp(22px, 3vw, 32px); box-shadow: 0 30px 60px -30px rgba(7,11,20,.5); }
.form { display: grid; gap: 18px; }
.form-2 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-2 { grid-template-columns: 1fr 1fr; } .form-2 .full { grid-column: 1 / -1; } }
.fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fld > label, .legend { font-weight: 700; font-size: 15px; }
.legend { margin-bottom: 8px; padding: 0; }
.opt-note { font-weight: 500; color: var(--slate); }
.in { width: 100%; min-height: 54px; border: 2px solid var(--line-2); border-radius: 12px; padding: 0 14px; font-size: 17px; color: var(--graphite); background: var(--white); }
textarea.in { min-height: 120px; padding: 14px; resize: vertical; line-height: 1.5; }
select.in { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2311151C' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.in:focus { border-color: var(--cobalt); box-shadow: 0 0 0 4px rgba(27,63,224,.14); outline: none; }
.in[aria-invalid="true"] { border-color: var(--danger); }
.err { color: var(--danger); font-size: 14px; font-weight: 600; }
.err:empty { display: none; }
.hint { font-size: 13px; color: var(--slate); }
.banner-err { padding: 14px 16px; border-radius: 12px; background: var(--danger-bg); color: var(--danger-ink); font-weight: 600; }
.banner-err:empty { display: none; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.ck { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; cursor: pointer; padding: 10px 0; line-height: 1.45; }
.ck input { width: 22px; height: 22px; margin: 0; flex-shrink: 0; accent-color: var(--cobalt); }
.ck-grid { display: grid; gap: 0 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.ck-box { background: var(--cloud); border-radius: 12px; padding: 4px 14px; }
.toggles { display: flex; flex-wrap: wrap; gap: 8px; }
.tog { position: relative; }
.tog input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tog span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--line-2); background: var(--white); font-weight: 700; font-size: 14px; color: var(--graphite); cursor: pointer; }
.tog span:hover { border-color: var(--cobalt); }
.tog input:checked + span { background: var(--graphite); border-color: var(--graphite); color: var(--white); }
.tog input:focus-visible + span { outline: var(--focus); outline-offset: 3px; }
.proto { display: inline-flex; align-self: flex-start; padding: 5px 9px; border-radius: 6px; border: 1.5px solid currentColor; font-family: var(--f-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.success { display: flex; flex-direction: column; gap: 14px; animation: pop 420ms var(--ease-out) both; }
.success .d { font-size: clamp(28px, 3vw, 40px); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Founding application (/founding/join) ---------- */
.join-shell { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--white); }
.join-head { position: sticky; top: 0; z-index: 10; background: var(--white); border-bottom: 1px solid var(--line); }
.join-head .wrap { max-width: 720px; display: flex; flex-direction: column; gap: 12px; padding-block: 12px 14px; }
.join-top { display: flex; justify-content: space-between; align-items: center; }
.join-top .brand .wm { font-size: 17px; } .join-top .brand svg { width: 30px; }
.close-x { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; color: var(--graphite); border-radius: 10px; }
.progress { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.progress i { height: 6px; border-radius: 3px; background: var(--line); }
.progress i.done { background: var(--cobalt); } .progress i.now { background: var(--volt); }
.join-meta { display: flex; justify-content: space-between; } .join-meta .m:first-child { color: var(--cobalt); } .join-meta .m:last-child { color: var(--slate); }
.join-main { flex-grow: 1; }
.join-main .wrap { max-width: 720px; padding-block: 28px 40px; }
.jstep { display: flex; flex-direction: column; gap: 20px; }
.jstep + .jstep { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.js .jstep + .jstep { margin-top: 0; padding-top: 0; border-top: 0; }
.js .jstep[hidden] { display: none; }
.jstep h1, .jstep h2 { font-size: clamp(30px, 5vw, 44px); }
.opt { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 14px 16px; border-radius: 14px; border: 2px solid var(--line-2); background: var(--white); color: var(--graphite); text-align: left; cursor: pointer; }
.opt:hover { border-color: var(--cobalt); }
.opt-radio input, .opt-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt-radio, .opt-check { position: relative; display: block; }
.opt-radio input:checked + .opt, .opt-check input:checked + .opt { border-color: var(--cobalt); background: #EEF2FF; }
.opt-radio input:focus-visible + .opt, .opt-check input:focus-visible + .opt { outline: var(--focus); outline-offset: 3px; }
.opt .lvl { width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-family: var(--f-mono); font-weight: 700; }
.opt .txt { display: flex; flex-direction: column; gap: 2px; flex-grow: 1; } .opt .txt b { font-size: 17px; } .opt .txt span { font-size: 14px; color: var(--slate); }
.opt .fit { display: none; } .opt-radio.fits .fit { display: inline-flex; }
.box { width: 24px; height: 24px; flex-shrink: 0; border-radius: 6px; border: 2px solid var(--cobalt); display: flex; align-items: center; justify-content: center; }
.box svg { opacity: 0; } .opt-check input:checked + .opt .box { background: var(--cobalt); } .opt-check input:checked + .opt .box svg { opacity: 1; }
.summary-card { border-radius: 18px; background: var(--cobalt); color: var(--white); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.summary-card .line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.summary-card .line + .line { padding-top: 12px; border-top: 1px solid rgba(255,255,255,.25); }
.ack-box { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 14px; background: var(--cloud); cursor: pointer; }
.ack-box input { width: 24px; height: 24px; margin: 0; flex-shrink: 0; accent-color: var(--cobalt); }
.join-foot { position: sticky; bottom: 0; background: var(--white); border-top: 1px solid var(--line); }
.join-foot .wrap { max-width: 720px; display: flex; flex-direction: column; gap: 8px; padding-block: 12px 18px; }
.join-foot .row { flex-wrap: nowrap; gap: 10px; }
.join-foot .btn-next { flex-grow: 1; }
.join-foot .need { text-align: center; min-height: 18px; font-size: 13px; color: var(--slate); }
.back-btn { width: 56px; padding: 0; background: var(--white); border-color: var(--line-2); color: var(--graphite); }
.welcome { background-color: var(--night); color: var(--white); min-height: 100%; }
.welcome .wrap { max-width: 720px; padding-block: 40px 48px; display: flex; flex-direction: column; gap: 22px; }
.member-card { position: relative; border-radius: 22px; background: var(--cobalt); padding: 22px; display: flex; flex-direction: column; gap: 18px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(27,63,224,.6); max-width: 460px; }
.member-card > svg { position: absolute; right: -40px; top: -40px; width: 200px; opacity: .25; }
.member-card > div { position: relative; }
.welcome-actions { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; max-width: 460px; }
.welcome-actions .full { grid-column: 1 / -1; }
.btn-ghost-night { background: var(--night-3); color: var(--white); }
.btn-ghost-night:hover { background: #22305A; color: var(--white); }
.nojs-note { padding: 14px 16px; border-radius: 12px; background: var(--cloud); color: var(--graphite-2); font-size: 15px; }
.js .nojs-only { display: none; }
.no-js-hide { display: none; }
.js .no-js-hide { display: revert; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .ticker-track { animation: none; }
  .led, .route-anim, .lvl-glow, .pulse { animation: none !important; }
}

@media (max-width: 480px) { .hide-sm { display: none; } }

@media (max-width: 400px) { .btn { white-space: normal; text-align: center; line-height: 1.2; padding-inline: 18px; } }
.d-founding { font-size: clamp(44px, 11.5vw, 96px); }
.founding-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(36px, 5vw, 72px); align-items: center; }
@media (min-width: 1200px) { .founding-hero { grid-template-columns: minmax(0, 1fr) 520px; } .d-founding { font-size: clamp(70px, 6.2vw, 100px); } }

/* Cloudflare Turnstile slot — invisible unless Cloudflare needs an interaction. */
.ts-wrap { display: grid; gap: 6px; min-width: 0; max-width: 100%; }
.ts { min-width: 0; max-width: 100%; }
.ts-note { font-size: 14px; line-height: 1.45; color: var(--slate); margin: 0; }
.ts-note:empty { display: none; }
.ts-note a { color: inherit; text-decoration: underline; }
.form-card .ts-note, .join-main .ts-note { color: var(--graphite-2); }
