/* AI Football · Interactive Technical Vision. Light matchday theme, mobile first.
   Art direction: chalk-paper sections, turf-green drenched bands (hero, lab, league, finale). */
html { scroll-padding-top: 76px; }
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
strong { color: var(--turf-ink); font-weight: 680; }
em { font-style: normal; color: var(--turf); font-weight: 650; }
.fine { font-size: 15px; color: var(--muted); max-width: 78ch; margin-top: 28px; }
.fine a { white-space: nowrap; }
kbd { font-family: var(--mono); font-size: 12.5px; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 5px; padding: 0 5px; background: var(--surface); }

/* ---------- Top bar ---------- */
.topbar { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background-color .3s var(--ease), border-color .3s, color .3s; border-bottom: 1px solid transparent; color: var(--chalk); }
.topbar.is-solid { background: oklch(0.985 0.006 145 / 0.92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-color: var(--line); color: var(--turf-ink); }
.topbar-in { display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 16px; max-width: 1440px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 800; font-stretch: 72%; letter-spacing: .02em; font-size: 20px; margin-right: auto; min-height: 44px; }
.brand:hover { color: inherit; }
.brand svg { width: 26px; height: 26px; flex: none; }
.brand em { display: none; font-weight: 500; font-stretch: 100%; letter-spacing: 0; color: inherit; opacity: .7; font-size: 14px; }
.topnav { position: relative; }
.menu-btn { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: inherit; border: 1.5px solid currentColor; border-radius: 999px; height: 44px; padding: 0 14px; cursor: pointer; }
.menu-btn:active { transform: scale(0.97); }
.menu-btn .bars, .menu-btn .bars::before, .menu-btn .bars::after { display: block; width: 16px; height: 1.5px; background: currentColor; position: relative; }
.menu-btn .bars::before, .menu-btn .bars::after { content: ""; position: absolute; left: 0; }
.menu-btn .bars::before { top: -5px; } .menu-btn .bars::after { top: 5px; }
.menu-lbl { font-size: 14.5px; font-weight: 600; }
.menu-list { list-style: none; margin: 0; padding: 8px; position: absolute; right: 0; top: 52px; width: min(300px, calc(100vw - 32px)); max-height: calc(100dvh - 90px); overflow: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); display: none; color: var(--text); transform-origin: top right; }
.menu-list.open { display: block; animation: menuIn .18s var(--ease); }
@keyframes menuIn { from { opacity: 0; transform: scale(.97) translateY(-4px); } }
.menu-list a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; min-height: 44px; border-radius: 10px; color: var(--text-2); text-decoration: none; font-size: 15.5px; }
.menu-list a span { font-stretch: 62%; font-weight: 800; font-size: 18px; color: var(--dim); width: 22px; }
.menu-list a:hover, .menu-list a[aria-current] { background: var(--turf-wash); color: var(--turf-ink); }
.menu-list a[aria-current] span { color: var(--turf); }
.btn-blueprint { display: none; }
.topbar:not(.is-solid) .btn-blueprint { background: transparent; color: var(--chalk); border-color: oklch(1 0 0 / .55); }
.progress { height: 3px; }
.progress i { display: block; height: 100%; background: var(--floodlight); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section h2 { font-size: clamp(36px, 7vw, 72px); max-width: 17ch; margin: 18px 0 18px; }
.section .lede { margin-bottom: 36px; }

/* ---------- Hero (turf drench + living pitch) ---------- */
.hero { min-height: 100dvh; display: flex; align-items: center; position: relative; overflow: hidden; padding: 104px 0 88px;
  background-color: var(--turf); color: var(--chalk);
  background-image: radial-gradient(120% 70% at 85% 0%, oklch(0.98 0.05 100 / 0.22), transparent 60%), repeating-linear-gradient(90deg, transparent 0 7%, oklch(1 0 0 / 0.05) 7% 14%); }
.hero-grid { display: grid; gap: 36px; align-items: center; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 15px; color: var(--floodlight); margin: 0 0 18px; }
.hero-kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.hero h1 { font-size: clamp(54px, 7.6vw, 112px); font-stretch: 64%; font-weight: 820; line-height: .9; letter-spacing: -0.015em; margin: 0 0 24px; color: var(--chalk); text-transform: uppercase; max-width: 11ch; }
.hero .lede { color: oklch(0.96 0.025 140); font-size: clamp(18px, 2vw, 22px); max-width: 46ch; }
.hero .lede strong { color: var(--floodlight); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 22px; }
.hero-cta .btn { min-height: 50px; padding: 12px 22px; font-size: 16px; }
.btn-chalk { background: var(--chalk); color: var(--turf-ink); border-color: var(--chalk); }
@media (hover: hover) and (pointer: fine) { .btn-chalk:hover { background: var(--floodlight); border-color: var(--floodlight); color: var(--turf-ink); } }
.btn-ghost { background: transparent; color: var(--chalk); border-color: oklch(1 0 0 / .5); }
@media (hover: hover) and (pointer: fine) { .btn-ghost:hover { background: oklch(1 0 0 / .1); color: var(--chalk); border-color: var(--chalk); } }
.hero-meta { margin: 0; font-size: 14px; color: oklch(0.92 0.03 140); }
.hero-pitch { margin: 0; position: relative; perspective: 900px; }
.hp-tilt { transform: rotateX(38deg) rotateZ(-8deg); transform-origin: 50% 60%; filter: drop-shadow(0 30px 40px oklch(0.25 0.08 155 / .45)); }
#heroPitch { width: min(100%, 420px); margin: 0 auto; overflow: visible; }
.hero-pitch figcaption { text-align: center; font-size: 13px; color: oklch(0.92 0.03 140); margin-top: 6px; }
.hp-field { fill: oklch(0.52 0.14 150); }
.hp-stripe { fill: oklch(0.49 0.135 151); }
.hp-line { fill: none; stroke: oklch(0.98 0.01 120 / .85); stroke-width: .35; }
.hp-a { fill: var(--chalk); } .hp-b { fill: var(--team-b); } .hp-ball { fill: #fff; }
.hp-shadow { fill: oklch(0.2 0.05 155 / .35); }
.scroll-cue { position: absolute; z-index: 2; left: 50%; bottom: 18px; width: 44px; height: 44px; margin-left: -22px; display: grid; place-items: center; }
.scroll-cue span { width: 22px; height: 34px; border: 1.5px solid oklch(1 0 0 / .55); border-radius: 12px; position: relative; }
.scroll-cue span::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--chalk); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }

/* ---------- Contrast ---------- */
.concept.band { aspect-ratio: 21 / 9; margin-bottom: clamp(40px, 6vw, 72px); }
.contrast h2 { max-width: 19ch; }
.vs { display: grid; gap: 14px; margin-top: 10px; }
.vs-col { border-radius: var(--radius); padding: 24px; }
.vs-gen { background: var(--surface-2); color: var(--text-2); }
.vs-sim { background: var(--turf-ink); color: var(--chalk); }
.vs-k { font-weight: 750; font-stretch: 80%; font-size: 22px; margin-bottom: 4px; }
.vs-gen .vs-k { color: var(--muted); }
.vs-sim .vs-k { color: var(--floodlight); }
.vs-flow { margin: 14px 0 18px; padding: 0; list-style: none; counter-reset: f; }
.vs-flow li { counter-increment: f; position: relative; padding: 10px 0 10px 42px; border-top: 1px solid var(--line); font-size: 16.5px; }
.vs-sim .vs-flow li { border-color: oklch(1 0 0 / .14); }
.vs-flow li::before { content: counter(f); position: absolute; left: 0; top: 8px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 800; background: var(--surface-3); color: var(--muted); }
.vs-sim .vs-flow li::before { background: var(--floodlight); color: var(--turf-ink); }
.vs-verdict { margin: 0; font-weight: 700; }
.vs-gen .vs-verdict { text-decoration: line-through; text-decoration-color: oklch(0.52 0.17 30 / .6); text-decoration-thickness: 2px; color: var(--text-2); }
.vs-sim .vs-verdict { color: var(--chalk); }
.vs-mid { display: none; }

/* ---------- How ---------- */
.how-grid { display: grid; gap: 40px; }
.loop { position: relative; width: min(100%, 440px); aspect-ratio: 1; margin: 8px auto 0; }
.loop-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.loop-track { fill: none; stroke: var(--line-strong); stroke-width: 1.5; stroke-dasharray: 2 6; }
.loop-run { fill: none; stroke: var(--turf); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 120 822; transform-origin: 200px 200px; transform: rotate(-90deg); transition: transform .9s var(--ease-in-out); }
.loop[data-step="1"] .loop-run { transform: rotate(0deg); }
.loop[data-step="2"] .loop-run { transform: rotate(90deg); }
.loop[data-step="3"] .loop-run { transform: rotate(180deg); }
.loop-node { position: absolute; width: 31%; min-height: 64px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; padding: 8px 10px; cursor: pointer; text-align: center; transform: translate(-50%, -50%); transition: border-color .25s, background-color .25s, box-shadow .25s; }
.loop-node b { display: block; font-size: 18px; font-stretch: 80%; color: var(--turf-ink); }
.loop-node span { display: block; font-size: 13px; color: var(--muted); line-height: 1.3; }
.loop-node[aria-pressed="true"] { border-color: var(--turf); background: var(--turf-wash); box-shadow: var(--shadow); }
.n1 { left: 50%; top: 11%; } .n2 { left: 85%; top: 50%; } .n3 { left: 50%; top: 89%; } .n4 { left: 15%; top: 50%; }
.loop-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 36%; text-align: center; }
.loop-center p { font-size: 13.5px; color: var(--text-2); margin: 0; line-height: 1.45; }
.how-media .concept { width: 100%; }
.concept.tall { aspect-ratio: 4 / 5; }
.concept.wide { aspect-ratio: 16 / 9; }
.tri { margin: 64px 0 0; display: grid; gap: 0; border-top: 2px solid var(--turf-ink); }
.tri > div { display: grid; gap: 6px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.tri dt { font-size: clamp(30px, 5vw, 46px); font-weight: 820; font-stretch: 64%; text-transform: uppercase; color: var(--turf); line-height: 1; }
.tri dd { margin: 0; color: var(--text-2); font-size: 17px; max-width: 60ch; }

/* ---------- Pipeline ---------- */
.pipe { display: grid; gap: 10px; }
.pipe-node { position: relative; text-align: left; display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
  padding: 14px 16px; min-height: 66px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; transition: border-color .2s, background-color .2s, transform .16s var(--ease); }
.pipe-node:active { transform: scale(0.98); }
.pipe-node .pi { grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 820; font-stretch: 70%; font-size: 20px; background: var(--surface-2); color: var(--muted); }
.pipe-node b { font-size: 17px; font-stretch: 86%; color: var(--turf-ink); line-height: 1.15; } .pipe-node small { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.pipe-node[aria-selected="true"] { border-color: var(--turf); background: var(--turf-wash); }
.pipe-node[aria-selected="true"] .pi, .pipe-node.is-past .pi { background: var(--turf); color: var(--on-accent); }
.pipe-node:not(:last-child)::after { content: ""; position: absolute; left: 35px; bottom: -11px; width: 2px; height: 10px; background: var(--turf); opacity: .4; }
.pipe-panel { margin-top: 18px; padding: 26px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); display: grid; gap: 22px; }
.pp-role { color: var(--turf); font-weight: 700; font-size: 15px; margin: 0 0 4px; }
.pipe-panel h3 { font-size: 32px; }
.pipe-panel p { color: var(--text-2); margin: 0; }
.pp-r { margin: 0; display: grid; gap: 14px; }
.pp-r dt { font-size: 13.5px; font-weight: 700; color: var(--muted); }
.pp-r dd { margin: 2px 0 0; color: var(--text); font-size: 16px; }
.rule { margin-top: 22px; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding: 18px 20px; border-radius: 14px; background: var(--turf-ink); color: var(--chalk); }
.rule span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--floodlight); color: var(--turf-ink); font-size: 0; }
.rule span::after { content: "!"; font-size: 22px; font-weight: 900; }

/* ---------- Brain ---------- */
.brain { background: var(--bg-2); }
.brain-grid { display: grid; gap: 28px; }
.brain-stack { display: grid; gap: 10px; }
.bl { border-radius: 14px; padding: 18px 20px 18px 62px; background: var(--surface); position: relative; border: 1.5px solid transparent; transition: border-color .25s, transform .3s var(--ease); }
.bl::before { position: absolute; left: 18px; top: 18px; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-weight: 820; font-stretch: 70%; font-size: 17px; color: var(--turf-ink); }
.bl-1::before { content: "1"; background: oklch(0.90 0.06 150); } .bl-2::before { content: "2"; background: oklch(0.86 0.10 150); } .bl-3::before { content: "3"; background: oklch(0.90 0.10 85); }
.bl.is-hi { border-color: var(--turf); transform: translateX(4px); }
.bl-k { font-weight: 760; font-stretch: 86%; font-size: 20px; margin: 0; color: var(--turf-ink); }
.bl-d { margin: 4px 0; color: var(--text-2); font-size: 15.5px; }
.bl-f { margin: 0; font-size: 13.5px; color: var(--muted); font-weight: 600; }
.bl-note { font-size: 14.5px; color: var(--muted); margin: 6px 0 0; }
.bc-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.bc-tabs button { min-height: 44px; padding: 8px 15px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--surface); cursor: pointer; font-size: 15px; color: var(--text-2); font-weight: 600; transition: transform .16s var(--ease), background-color .2s; }
.bc-tabs button:active { transform: scale(0.97); }
.bc-tabs button[aria-selected="true"] { background: var(--turf); color: var(--on-accent); border-color: var(--turf); }
.bc-panel { padding: 26px; border-radius: var(--radius); background: var(--surface); min-height: 260px; box-shadow: var(--shadow); }
.bc-panel h3 { font-size: 30px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.bc-panel p { color: var(--text-2); }
.bc-ex { margin: 18px 0 0; padding: 14px 16px; border-radius: 12px; background: var(--turf-wash); font-size: 16px; color: var(--turf-ink) !important; }
.bc-ex b { display: block; font-weight: 750; color: var(--turf); margin-bottom: 2px; }
.nollm { margin-top: 56px; display: grid; gap: 24px; }
.nollm-k { font-size: clamp(30px, 5vw, 52px); font-weight: 820; font-stretch: 66%; color: var(--turf-ink); line-height: 1; margin: 0; text-transform: uppercase; max-width: 16ch; }
.nollm > p { color: var(--text-2); max-width: 70ch; margin: 0; }
.dev-order { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.dev-order li { display: grid; grid-template-columns: 48px 1fr; column-gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.dev-order b { grid-row: span 2; font-size: 34px; font-weight: 820; font-stretch: 62%; color: var(--turf); line-height: 1; }
.dev-order span { font-weight: 700; font-size: 17px; color: var(--turf-ink); }
.dev-order small { color: var(--muted); font-size: 15px; }

/* ---------- Lab (deep turf band) ---------- */
.lab-sec { background-color: var(--turf-ink); color: var(--chalk); }
.lab-sec h2 { color: var(--chalk); }
.lab-sec .lede { color: oklch(0.93 0.03 140); }
.lab-sec .eyebrow, .lab-sec .eyebrow .num { color: var(--floodlight); }
.lab-flag { display: grid; gap: 4px; padding: 14px 18px; border-radius: 14px; background: var(--floodlight); color: var(--turf-ink); margin-bottom: 22px; }
.lab-flag strong { color: var(--turf-ink); font-size: 16.5px; font-weight: 800; }
.lab-flag span { color: var(--turf-ink); font-size: 15px; }
.lab { border-radius: 22px; background: var(--surface); color: var(--text); padding: 14px; box-shadow: 0 40px 80px -40px oklch(0.1 0.05 155 / .7); }
.lab-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
.lab-tabs::-webkit-scrollbar { display: none; }
.lab-tab { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; font-size: 15px; font-weight: 600; color: var(--text-2); white-space: nowrap; transition: transform .16s var(--ease); }
.lab-tab:active { transform: scale(0.97); }
.lab-tab span { font-size: 13px; font-weight: 800; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: var(--surface-2); }
.lab-tab[aria-selected="true"] { border-color: var(--turf); color: var(--turf-ink); background: var(--turf-wash); }
.lab-tab[aria-selected="true"] span { background: var(--turf); color: var(--on-accent); }
.lab-summary { margin: 12px 2px 14px; color: var(--text-2); font-size: 15.5px; min-height: 3em; }
.lab-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.lab-stage, .lab-panel, .chain { min-width: 0; }
.pitch-wrap { position: relative; border-radius: 14px; overflow: hidden; background: oklch(0.40 0.10 152); }
#pitch { width: 100%; height: auto; display: block; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.lab-paused { margin: 0; padding: 9px 12px; background: var(--floodlight); color: var(--turf-ink); font-weight: 650; font-size: 14.5px; text-align: center; }

/* pitch drawing */
.pitch-apron { fill: oklch(0.43 0.11 152); }
.stripe-a { fill: oklch(0.54 0.14 149); } .stripe-b { fill: oklch(0.51 0.135 150); }
.pl-line { stroke: oklch(0.99 0.01 120 / .85); stroke-width: .18; fill: none; }
.pl-spot { fill: oklch(0.99 0.01 120 / .9); }
.pl-goal { fill: oklch(0.99 0.01 120 / .3); stroke: oklch(0.99 0.01 120); stroke-width: .15; }
.atk { font-size: 1.75px; font-weight: 800; letter-spacing: .2px; fill: oklch(0.99 0.01 120 / .75); paint-order: stroke; stroke: oklch(0.43 0.11 152); stroke-width: 1.4px; }
.atk-arrow { stroke: oklch(0.99 0.01 120 / .35); stroke-width: .3; fill: none; }
.atk.atk-a.is-live { fill: #fff; } .atk.atk-b.is-live { fill: var(--floodlight); }
.atk-arrow.is-live.atk-a { stroke: oklch(0.99 0.01 120 / .9); } .atk-arrow.is-live.atk-b { stroke: var(--floodlight); }
.mk-a { fill: oklch(0.99 0.01 120); } .mk-b { fill: var(--floodlight); } .mk-press { fill: oklch(0.62 0.2 30); }
.cell { fill: transparent; } .cell-A { fill: oklch(0.99 0.01 120 / .16); } .cell-B { fill: oklch(0.80 0.15 72 / .22); }
.fm { fill: none; stroke-width: .24; stroke-dasharray: .8 .6; }
.fm-A { stroke: oklch(0.99 0.01 120 / .8); } .fm-B { stroke: oklch(0.86 0.14 80 / .9); }
.zone { fill: none; stroke-width: .16; stroke-dasharray: .5 .5; }
.zone-A { stroke: oklch(0.99 0.01 120 / .7); } .zone-B { stroke: oklch(0.86 0.14 80 / .8); }
.zone-dev { stroke-width: .14; }
.route { fill: none; stroke-width: .3; stroke-linecap: round; opacity: .95; }
.route-A { stroke: oklch(0.99 0.01 120 / .85); } .route-B { stroke: oklch(0.86 0.14 80 / .95); }
.po { stroke-width: .32; stroke-linecap: round; }
.po-open { stroke: oklch(0.93 0.17 125); }
.po-tight { stroke: var(--floodlight); stroke-dasharray: .8 .6; }
.po-blocked { stroke: oklch(0.68 0.19 28); stroke-dasharray: .3 .6; }
.po-chosen { stroke-width: .75; }
.po-label { font-size: 1.7px; font-weight: 800; fill: oklch(0.95 0.17 125); paint-order: stroke; stroke: oklch(0.3 0.08 155); stroke-width: .45px; }
.press { stroke: oklch(0.68 0.2 28 / .9); stroke-width: .32; }
.press-1 { stroke-width: .55; }
.press-ring { fill: oklch(0.68 0.2 28 / .12); stroke: oklch(0.68 0.2 28 / .8); stroke-width: .18; stroke-dasharray: .6 .5; }
.shadow { fill: oklch(0.22 0.05 155 / .32); stroke: oklch(0.68 0.2 28 / .45); stroke-width: .12; }
.cover-line { fill: none; stroke: oklch(0.80 0.10 250); stroke-width: .38; }
.cover-depth { stroke: oklch(0.80 0.10 250 / .5); stroke-width: .15; stroke-dasharray: .6 .8; }
.cover-label { font-size: 1.5px; font-weight: 700; fill: oklch(0.90 0.06 250); }
.bp-future { fill: none; stroke: oklch(1 0 0 / .5); stroke-width: .22; stroke-dasharray: .5 .5; }
.bp-past { fill: none; stroke: #fff; stroke-width: .32; }
.vision { fill: oklch(1 0 0 / .1); stroke: oklch(1 0 0 / .45); stroke-width: .12; }
.fx-ring { fill: none; stroke: #fff; stroke-width: .22; }
.fx-text { font-size: 1.7px; font-weight: 800; fill: #fff; paint-order: stroke; stroke: oklch(0.25 0.06 155 / .8); stroke-width: .45px; letter-spacing: .1px; }
.pl { cursor: pointer; outline: none; }
.pl .hit { fill: transparent; }
.pl .body { stroke-width: .3; }
.team-A .body { fill: var(--team-a); stroke: oklch(0.30 0.06 158); }
.team-B .body { fill: var(--team-b); stroke: oklch(0.42 0.10 55); }
.team-A.is-gk .body { fill: oklch(0.80 0.12 210); stroke: oklch(0.35 0.08 220); }
.team-B.is-gk .body { fill: oklch(0.72 0.14 330); stroke: oklch(0.38 0.1 330); }
.pl .num { font-size: 1.6px; font-weight: 850; fill: oklch(0.22 0.04 158); pointer-events: none; dominant-baseline: central; }
.pl .facing { stroke: oklch(0.22 0.04 158 / .8); stroke-width: .26; stroke-linecap: round; }
.pl .sel-ring { fill: none; stroke: transparent; stroke-width: .32; }
.pl.is-sel .sel-ring { stroke: var(--floodlight); stroke-dasharray: .9 .45; }
.pl:focus-visible .sel-ring { stroke: #fff; }
.pl.has-ball .body { stroke: #fff; stroke-width: .48; }
.ball { fill: #fff; stroke: oklch(0.25 0.03 158); stroke-width: .13; }
.ball-shadow { fill: oklch(0.2 0.05 155); }

/* controls */
.lab-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }
.ctl { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 8px 12px; border-radius: 12px; border: 1.5px solid var(--line-strong); background: var(--surface); cursor: pointer; font-size: 15px; font-weight: 600; justify-content: center; color: var(--turf-ink); transition: transform .16s var(--ease), background-color .2s, border-color .2s; }
.ctl:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .ctl:hover { border-color: var(--turf); } }
.ctl-play { background: var(--turf); color: var(--on-accent); border-color: var(--turf); font-weight: 750; min-width: 108px; }
@media (hover: hover) and (pointer: fine) { .ctl-play:hover { background: var(--turf-deep); } }
.ctl .lbl { white-space: nowrap; }
#labRestart .lbl, #labStep .lbl { display: none; }
.lab-speed { display: inline-flex; border: 1.5px solid var(--line-strong); border-radius: 12px; overflow: hidden; }
.lab-speed button { min-height: 41px; min-width: 44px; border: 0; background: var(--surface); cursor: pointer; font-size: 15px; font-weight: 600; color: var(--text-2); }
.lab-speed button + button { border-left: 1px solid var(--line); }
.lab-speed button[aria-pressed="true"] { background: var(--turf-wash); color: var(--turf-ink); font-weight: 800; }
.ctl-toggle .sw { width: 32px; height: 19px; border-radius: 10px; background: var(--surface-3); position: relative; transition: background-color .2s; }
.ctl-toggle .sw::after { content: ""; position: absolute; top: 2.5px; left: 2.5px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 2px oklch(0.2 0.05 155 / .3); transition: transform .2s var(--ease); }
.ctl-toggle[aria-pressed="true"] .sw { background: var(--turf); }
.ctl-toggle[aria-pressed="true"] .sw::after { transform: translateX(13px); }
.lab-time { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.lab-clock { font-family: var(--mono); font-size: 15.5px; color: var(--turf-ink); font-weight: 600; }
.lab-clock .sep { color: var(--dim); margin: 0 6px; }
.lab-clock .tick { margin-left: 12px; color: var(--muted); font-size: 13.5px; font-weight: 400; }
.lab-poss { font-size: 13.5px; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.poss-A { background: var(--turf-ink); color: var(--chalk); } .poss-B { background: var(--team-b); color: var(--turf-ink); }
.lab-timeline { position: relative; margin-top: 10px; padding-bottom: 30px; }
.lab-timeline input[type=range] { width: 100%; height: 44px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.lab-timeline input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: var(--surface-3); }
.lab-timeline input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: var(--turf); border: 4px solid var(--surface); box-shadow: 0 1px 4px oklch(0.2 0.05 155 / .4); }
.lab-timeline input[type=range]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--surface-3); }
.lab-timeline input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--turf); border: 4px solid var(--surface); }
.lab-markers { position: absolute; left: 12px; right: 12px; top: 40px; height: 30px; }
.mk { position: absolute; top: -4px; width: 30px; height: 40px; margin-left: -15px; border: 0; background: transparent; cursor: pointer; padding: 0; }
.mk::before { content: ""; position: absolute; left: 50%; top: 8px; width: 9px; height: 9px; margin-left: -4.5px; background: var(--dim); border-radius: 50%; }
.mk-dec::before { width: 12px; height: 12px; margin-left: -6px; background: var(--floodlight); border: 1.5px solid var(--team-b-edge); border-radius: 2px; transform: rotate(45deg); }
@media (hover: hover) and (pointer: fine) { .mk:hover::before { background: var(--turf); } }
.lab-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.lab-legend i { display: inline-block; width: 10px; height: 10px; margin-left: 6px; }
.lg-dec { background: var(--floodlight); border: 1.5px solid var(--team-b-edge); transform: rotate(45deg); border-radius: 2px; }
.lg-ev { background: var(--dim); border-radius: 50%; }
.lab-layers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; align-items: center; }
.ll-k { width: 100%; margin: 0; font-weight: 750; font-size: 15px; color: var(--turf-ink); }
.lab-layer { min-height: 44px; padding: 8px 13px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; font-size: 14.5px; font-weight: 600; color: var(--text-2); display: inline-flex; align-items: center; gap: 8px; transition: transform .16s var(--ease); }
.lab-layer:active { transform: scale(0.97); }
.lab-layer::before { content: ""; width: 12px; height: 12px; border-radius: 4px; border: 1.5px solid var(--dim); }
.lab-layer[aria-pressed="true"] { border-color: var(--turf); color: var(--turf-ink); background: var(--turf-wash); }
.lab-layer[aria-pressed="true"]::before { background: var(--turf); border-color: var(--turf); }
.lab-key { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.lab-key summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--turf); font-size: 15px; font-weight: 650; }
.lab-key ul { margin: 6px 0 0; padding-left: 18px; color: var(--text-2); font-size: 15px; }
.lab-key li { margin-bottom: 6px; }

/* player panel */
.lab-panel { border-radius: 16px; background: var(--bg-2); padding: 16px; font-size: 15px; }
.pp-pick { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.pp-pick span { font-weight: 700; font-size: 14px; color: var(--muted); }
.pp-pick select { flex: 1; min-width: 0; min-height: 44px; background: var(--surface); color: var(--text); border: 1.5px solid var(--line-strong); border-radius: 12px; padding: 0 10px; font-size: 15.5px; font-family: inherit; }
.pp-head { display: flex; gap: 12px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.pp-badge { flex: none; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; font-weight: 850; font-stretch: 70%; font-size: 24px; color: var(--turf-ink); }
.pp-badge.team-A { background: var(--surface); box-shadow: inset 0 0 0 2px var(--turf-ink); } .pp-badge.team-B { background: var(--team-b); }
.pp-name { margin: 0; font-weight: 760; font-stretch: 86%; font-size: 20px; color: var(--turf-ink); }
.pp-team { margin: 0; color: var(--muted); font-size: 14px; }
.pp-sec { padding: 12px 0; border-bottom: 1px solid var(--line); }
.pp-sec:last-child { border-bottom: 0; padding-bottom: 0; }
.pp-sec p { margin: 0 0 6px; color: var(--text-2); }
.pp-k { font-size: 14px !important; font-weight: 750; color: var(--turf-ink) !important; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pp-live { color: var(--ev-verified); background: oklch(0.93 0.05 155); border-radius: 999px; padding: 0 8px; font-size: 12.5px; font-weight: 700; }
.pp-tag { color: oklch(0.42 0.1 65); background: oklch(0.94 0.06 85); border-radius: 999px; padding: 0 8px; font-size: 12.5px; font-weight: 700; }
.pp-obs { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 4px; }
.pp-obs li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 10px; border-radius: 9px; background: var(--surface); font-size: 14.5px; min-width: 0; overflow-wrap: anywhere; text-align: right; }
.pp-obs b { font-weight: 500; color: var(--muted); flex: none; text-align: left; }
.pp-watch, .pp-hidden { font-size: 14.5px; }
.pp-hidden b { color: var(--ev-pending); font-weight: 700; }
.pp-watch b { color: var(--turf-ink); font-weight: 700; }
.pp-dec { background: var(--turf-wash); margin: 8px -16px 0; padding: 14px 16px; border-bottom: 0; }
.pp-choice { color: var(--turf-ink) !important; font-weight: 700; }
.pp-attrs { display: grid; gap: 7px; margin: 6px 0 8px; }
.attr { display: grid; grid-template-columns: 116px 1fr 30px; gap: 10px; align-items: center; font-size: 14.5px; }
.attr-n { color: var(--text-2); text-transform: capitalize; }
.attr-bar { height: 7px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.attr-bar i { display: block; height: 100%; background: var(--turf); border-radius: 4px; }
.attr-v { font-family: var(--mono); font-size: 13.5px; color: var(--muted); text-align: right; }
.pp-small { font-size: 14px !important; color: var(--muted) !important; }

/* decision chain */
.chain { margin-top: 16px; border-radius: 16px; padding: 16px; background: var(--turf-ink); color: var(--chalk); }
.chain-head { display: grid; gap: 4px; margin-bottom: 12px; }
.chain-k { margin: 0; font-weight: 800; font-stretch: 76%; font-size: 22px; color: var(--floodlight); }
.chain-title { margin: 0; font-weight: 650; font-size: 16px; color: var(--chalk); }
.chain-stages { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cs { position: relative; border-radius: 12px; padding: 12px 14px; background: oklch(1 0 0 / .06); border: 1.5px solid transparent; opacity: .45; transition: opacity .35s var(--ease), border-color .35s, background-color .35s; }
.cs.is-on { opacity: 1; background: var(--surface); color: var(--text); }
.cs-brain.is-on { border-color: oklch(0.70 0.12 150); }
.cs-contract.is-on { border-color: oklch(0.65 0.12 250); }
.cs-sim.is-on { border-color: var(--team-b); }
.cs-rec.is-on { border-color: oklch(0.55 0.08 250); }
.cs-n { margin: 0 0 6px; font-weight: 750; font-size: 15px; display: flex; gap: 8px; align-items: center; }
.cs.is-on .cs-n { color: var(--turf-ink); }
.cs-n span { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; font-size: 13px; font-weight: 850; background: oklch(1 0 0 / .14); flex: none; }
.cs.is-on .cs-n span { background: var(--turf); color: var(--on-accent); }
.cs-body { font-size: 14.5px; margin: 0; }
.cs.is-on .cs-body { color: var(--text-2); }
.cs-body ul { margin: 0; padding-left: 18px; }
pre.cs-body { font-family: var(--mono); font-size: 13px; white-space: pre-wrap; word-break: break-word; background: oklch(1 0 0 / .06); padding: 8px 10px; border-radius: 8px; }
.cs.is-on pre.cs-body { color: oklch(0.32 0.06 250); background: oklch(0.96 0.015 250); }
.cs-own { margin: 8px 0 0; font-size: 13px; font-weight: 600; opacity: .8; }
.cs.is-on .cs-own { color: var(--muted); opacity: 1; }
.chain.is-empty .chain-title { opacity: .75; font-weight: 500; }
.chain-note { margin: 14px 0 0; font-size: 15px; color: oklch(0.93 0.03 140); }
.chain-note em { color: var(--floodlight); }
.lab-foot { margin: 14px 2px 2px; font-size: 14px; color: var(--muted); }

/* ---------- Engine ---------- */
.engine-grid { display: grid; gap: 18px; }
.eng-pitch { position: relative; border-radius: var(--radius); background: var(--turf-ink); overflow: visible; }
.eng-svg { width: 100%; height: auto; }
.ep-field { fill: oklch(0.52 0.14 150); } .ep-l { fill: none; stroke: oklch(0.99 0.01 120 / .7); stroke-width: 1.4; }
.ep-traj { fill: none; stroke: #fff; stroke-width: 1.8; stroke-dasharray: 5 5; }
.ep-ball { fill: #fff; } .ep-pa { fill: var(--chalk); stroke: var(--turf-ink); stroke-width: 1.5; } .ep-pb { fill: var(--team-b); }
.eng-hot { position: absolute; inset: 0; }
.hot { position: absolute; transform: translate(-50%, -50%); min-height: 36px; padding: 4px 12px; border-radius: 999px; border: 1.5px solid var(--turf-ink); background: var(--surface); color: var(--turf-ink); font-size: 14px; font-weight: 650; cursor: pointer; white-space: nowrap; box-shadow: 0 4px 12px -6px oklch(0.2 0.05 155 / .5); }
.hot::before { content: ""; position: absolute; inset: -6px; }
.hot[aria-selected="true"] { background: var(--floodlight); }
.eng-panel { padding: 26px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.ep-k, .cd-k, .rp-k { font-size: 14px; font-weight: 700; color: var(--turf); margin: 0 0 4px; }
.eng-panel h3 { font-size: 32px; }
.eng-panel p { color: var(--text-2); }
.ep-n { font-size: 13.5px; color: var(--dim) !important; margin: 0; }
.candidate { margin-top: 44px; border-radius: 20px; padding: 26px; background: var(--bg-2); }
.cand-k { font-weight: 700; font-size: 15px; color: var(--turf); margin: 0; }
.candidate h3 { font-size: clamp(28px, 4vw, 40px); margin: 6px 0 8px; }
.candidate code { font-size: 13.5px; color: var(--turf-ink); background: var(--surface); padding: 1px 5px; border-radius: 5px; }
.cand-meta { color: var(--muted); font-size: 14.5px; word-break: break-all; }
.sha { word-break: break-all; }
.cand-status { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--text-2); font-size: 15.5px; }
.cand-cols { display: grid; gap: 20px; margin-top: 18px; }
.cc-k { font-weight: 760; font-stretch: 86%; font-size: 19px; color: var(--turf-ink); margin-bottom: 6px; }
.cand-cols ul { margin: 0; padding-left: 18px; color: var(--text-2); font-size: 16px; }
.cand-cols li { margin-bottom: 8px; }
.cand-cols li .ev { margin-left: 4px; }
.cand-note { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }

/* ---------- Record ---------- */
.tape { border-radius: 18px; background: var(--surface); overflow: hidden; box-shadow: var(--shadow); }
.tape-ctl { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; background: var(--turf-ink); color: var(--chalk); }
.tape-ctl .btn { min-width: 44px; min-height: 44px; justify-content: center; padding: 0; background: transparent; color: var(--chalk); border-color: oklch(1 0 0 / .4); }
.tape-tick { margin: 0; font-family: var(--mono); font-size: 14.5px; color: oklch(0.9 0.03 140); }
.tape-tick b { color: var(--floodlight); }
.tape-rows { display: grid; }
.tr { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.tr-k { font-size: 14px; font-weight: 750; color: var(--turf); }
.tr code { font-size: 13px; color: var(--text-2); word-break: break-word; white-space: pre-wrap; }
.tape-note { margin: 0; padding: 9px 14px; font-size: 13.5px; color: oklch(0.42 0.1 65); font-weight: 650; background: oklch(0.97 0.03 85); }
.channels { display: grid; gap: 12px; margin-top: 22px; }
.ch { padding: 22px; border-radius: var(--radius); }
.ch-lock { background: var(--turf-ink); color: var(--chalk); }
.ch-free { background: oklch(0.95 0.05 85); }
.ch-k { font-weight: 800; font-stretch: 80%; font-size: 22px; margin-bottom: 6px; }
.ch-lock .ch-k { color: var(--floodlight); } .ch-free .ch-k { color: oklch(0.40 0.1 60); }
.ch p { margin: 0 0 6px; }
.ch-lock p { color: oklch(0.95 0.02 140); } .ch-free p { color: var(--text-2); }
.ch .ch-f { font-size: 15px; margin: 0; opacity: .85; }
.seal { margin-top: 34px; }
.seal-k { font-weight: 760; font-stretch: 86%; font-size: 21px; color: var(--turf-ink); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.seal-steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 16px; counter-reset: s; border-top: 2px solid var(--turf-ink); }
.seal-steps li { counter-increment: s; padding: 14px 0; border-bottom: 1px solid var(--line); }
.seal-steps li::before { content: counter(s); font-weight: 850; font-stretch: 62%; font-size: 30px; color: var(--turf); line-height: 1; display: block; margin-bottom: 4px; }
.seal-steps b { display: block; color: var(--turf-ink); font-size: 17px; }
.seal-steps span { font-size: 15px; color: var(--text-2); }

/* ---------- Milestone ---------- */
.milestone { background: var(--bg-2); }
.mile-grid { display: grid; gap: 28px; }
.mk-k { font-weight: 800; font-stretch: 80%; font-size: 22px; color: var(--ev-verified); margin-bottom: 10px; }
.mk-not { color: var(--ev-pending); }
.checks, .nots { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 0; }
.checks li, .nots li { position: relative; padding: 11px 0 11px 32px; border-bottom: 1px solid var(--line); color: var(--text-2); font-size: 16px; }
.checks li::before { content: ""; position: absolute; left: 3px; top: 16px; width: 13px; height: 7px; border-left: 2.5px solid var(--ev-verified); border-bottom: 2.5px solid var(--ev-verified); transform: rotate(-45deg); }
.nots li::before { content: "×"; position: absolute; left: 3px; top: 6px; color: var(--ev-pending); font-size: 22px; font-weight: 700; }
.zero { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; padding: 18px 20px; border-radius: var(--radius); background: var(--turf-ink); color: var(--chalk); margin-bottom: 26px; }
.zero-n { margin: 0; font-family: var(--mono); font-size: 44px; font-weight: 700; color: var(--floodlight); background: oklch(0.18 0.03 158); padding: 2px 14px; border-radius: 10px; }
.zero p:last-child { margin: 0; color: oklch(0.93 0.025 140); font-size: 15px; }
.zero .ev { background: transparent; color: var(--floodlight); }
.evals { margin: 0; display: grid; gap: 10px; }
.evals dt { font-weight: 760; font-stretch: 86%; font-size: 18px; color: var(--turf-ink); }
.evals dd { margin: 0; color: var(--text-2); font-size: 16px; }

/* ---------- Roadmap ---------- */
.road { border-radius: 20px; background: var(--surface); padding: 16px; box-shadow: var(--shadow); }
.road-track { list-style: none; margin: 0; padding: 6px 2px 32px; display: flex; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; position: relative; }
.rn { flex: none; position: relative; scroll-snap-align: center; padding-right: 10px; }
.rn::after { content: ""; position: absolute; left: 48px; right: 0; top: 23px; height: 2px; background: var(--surface-3); z-index: 0; }
.rn:last-child::after { display: none; }
.rn button { position: relative; z-index: 1; display: grid; justify-items: start; gap: 6px; width: 136px; min-height: 120px; padding: 0 8px 0 0; border: 0; background: transparent; cursor: pointer; text-align: left; }
.rn-i { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-weight: 850; font-stretch: 70%; font-size: 21px; background: var(--surface); border: 2px solid var(--surface-3); color: var(--muted); transition: background-color .2s, border-color .2s, transform .16s var(--ease); }
.rn button:active .rn-i { transform: scale(0.95); }
.rn-n { font-weight: 720; font-stretch: 88%; font-size: 15.5px; line-height: 1.2; color: var(--turf-ink); }
.rn-s { font-size: 13px; color: var(--muted); font-weight: 600; }
.rn.is-done .rn-i { background: var(--turf-wash); border-color: var(--turf); color: var(--turf); }
.rn.is-cur .rn-i { background: var(--turf); border-color: var(--turf); color: var(--on-accent); }
@media (hover: hover) and (pointer: fine) { .rn button:hover .rn-i { border-color: var(--turf); } }
.rn.has-gate::after { background: repeating-linear-gradient(90deg, var(--floodlight) 0 6px, transparent 6px 10px); }
.rn-gate { position: absolute; left: 0; bottom: -26px; font-size: 12.5px; font-weight: 750; color: oklch(0.38 0.1 60); white-space: nowrap; background: oklch(0.94 0.08 88); border-radius: 999px; padding: 1px 9px; }
.road-panel { margin-top: 18px; border-top: 1px solid var(--line); padding: 18px 4px 4px; }
.road-panel h3 { font-size: 32px; }
.road-panel p { color: var(--text-2); }
.road-panel dl { margin: 0; display: grid; gap: 12px; }
.road-panel dt { font-size: 14px; font-weight: 700; color: var(--muted); }
.road-panel dd { margin: 2px 0 0; color: var(--text); }
.rp-done { color: var(--ev-verified); }

/* ---------- Motion ---------- */
.morph { border-radius: 20px; background: var(--surface); padding: 14px; box-shadow: var(--shadow); }
.morph-stage { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 600 / 340; background: var(--bg-2); }
.morph-svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .5s var(--ease); }
.morph-img { position: absolute; inset: 0; opacity: 0; transition: opacity .6s var(--ease); border-radius: 0; }
.morph-stage.show-img .morph-img { opacity: 1; }
.morph-stage.show-img .morph-svg { opacity: 0; }
.mo-bg { fill: oklch(0.955 0.012 145); } .mo-ground { stroke: oklch(0.46 0.13 152 / .5); stroke-width: 3; }
.mo-dot { fill: var(--turf-ink); } .mo-faded { opacity: .3; }
.mo-vec { stroke: var(--turf); stroke-width: 3.5; }
.mo-ball { fill: #fff; stroke: var(--turf-ink); stroke-width: 2; }
.mo-t { font-size: 15px; fill: var(--text-2); font-weight: 600; }
.mo-con { fill: none; stroke: oklch(0.62 0.15 70); stroke-width: 2.5; stroke-dasharray: 6 5; }
.mo-con.mo-ok { stroke: var(--turf); stroke-dasharray: none; stroke-width: 3; }
.mo-pin { stroke: var(--ev-pending); stroke-width: 3; } .mo-pinc { fill: var(--ev-pending); }
.mo-skel { fill: none; stroke: var(--turf); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.mo-skel circle { fill: var(--surface); }
.mo-skel.mo-solid { stroke: var(--turf-ink); }
.morph-steps { display: flex; gap: 8px; overflow-x: auto; margin-top: 12px; scrollbar-width: none; }
.morph-steps::-webkit-scrollbar { display: none; }
.morph-steps button { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 13px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; font-size: 15px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.morph-steps button span { font-weight: 850; font-stretch: 70%; color: var(--dim); }
.morph-steps button[aria-selected="true"] { border-color: var(--turf); color: var(--turf-ink); background: var(--turf-wash); }
.morph-steps button[aria-selected="true"] span { color: var(--turf); }
.morph-text { margin: 14px 4px 4px; color: var(--text-2); min-height: 4.8em; font-size: 16.5px; }
.arch-h { font-size: clamp(28px, 4vw, 42px); margin-top: 60px; max-width: 22ch; }
.arch { border-radius: 18px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.arch-tabs { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--bg-2); padding: 6px; gap: 6px; }
.arch-tabs button { min-height: 52px; border: 0; border-radius: 12px; background: transparent; cursor: pointer; font-weight: 820; font-stretch: 76%; font-size: 22px; color: var(--muted); }
.arch-tabs button[aria-selected="true"] { background: var(--turf); color: var(--on-accent); }
.arch-panel { padding: 22px; }
.arch-panel h4 { font-size: 24px; margin-bottom: 14px; }
.arch-panel dl { margin: 0; display: grid; gap: 14px; }
.arch-panel dt { font-size: 14px; font-weight: 700; color: var(--muted); }
.arch-panel dd { margin: 2px 0 0; color: var(--text-2); }

/* ---------- Production ---------- */
.production { background: var(--bg-2); }
.prod-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { min-height: 44px; padding: 8px 15px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--surface); cursor: pointer; font-size: 15px; font-weight: 600; color: var(--text-2); transition: transform .16s var(--ease); }
.chip:active { transform: scale(0.97); }
.chip[aria-pressed="true"] { background: var(--turf-ink); border-color: var(--turf-ink); color: var(--chalk); }
.prod-grid { display: grid; gap: 14px; }
.prod-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pc { width: 100%; min-height: 54px; display: flex; align-items: center; gap: 10px; text-align: left; padding: 8px 12px; border-radius: 12px; border: 1.5px solid transparent; background: var(--surface); cursor: pointer; font-size: 15px; font-weight: 600; line-height: 1.25; color: var(--turf-ink); transition: transform .16s var(--ease); }
.pc:active { transform: scale(0.98); }
.pc-dot { flex: none; width: 11px; height: 11px; border-radius: 50%; }
.pc-eng .pc-dot { background: var(--turf); } .pc-craft .pc-dot { background: var(--team-b); } .pc-both .pc-dot { background: linear-gradient(90deg, var(--turf) 50%, var(--team-b) 50%); }
.pc[aria-selected="true"] { border-color: var(--turf); background: var(--turf-wash); }
.prod-detail { padding: 24px; border-radius: var(--radius); background: var(--surface); min-height: 180px; box-shadow: var(--shadow); }
.prod-detail h3 { font-size: 30px; }
.prod-detail p { color: var(--text-2); margin-bottom: 0; }
.pd-lane { font-size: 14px !important; font-weight: 750; margin: 0 0 6px !important; }
.pd-eng { color: var(--turf) !important; } .pd-craft { color: oklch(0.45 0.11 60) !important; } .pd-both { color: var(--ev-hypothesis) !important; }
.prod-media { display: grid; gap: 12px; margin-top: 26px; }

/* ---------- Broadcast ---------- */
.bflow { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; counter-reset: b; }
.bflow li { counter-increment: b; display: flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line); font-size: 15px; }
.bflow li::before { content: counter(b); font-weight: 850; font-stretch: 70%; color: var(--dim); }
.bflow li:first-child { background: var(--turf-ink); color: var(--chalk); border-color: var(--turf-ink); }
.bflow li:last-child { background: var(--floodlight); border-color: var(--floodlight); color: var(--turf-ink); }
.bflow li:first-child::before, .bflow li:last-child::before { color: inherit; opacity: .7; }
.bflow b { font-weight: 650; }
.cams { display: grid; gap: 14px; }
.cam-pitch { border-radius: var(--radius); background: var(--turf-ink); }
.cam-svg { width: 100%; height: auto; }
.cp-field { fill: oklch(0.52 0.14 150); } .cp-l { fill: none; stroke: oklch(0.99 0.01 120 / .7); stroke-width: 1.4; }
.cp-cone { fill: oklch(0.83 0.15 85 / .28); stroke: var(--floodlight); stroke-width: 1.2; }
.cam { cursor: pointer; outline: none; }
.cam-dot { fill: var(--surface); stroke: var(--turf-ink); stroke-width: 2; }
.cam-n { font-size: 12px; fill: var(--turf-ink); font-weight: 850; pointer-events: none; }
.cam.is-sel .cam-dot { fill: var(--floodlight); }
.cam:focus-visible .cam-dot { stroke: #fff; stroke-width: 3.5; }
.cam-detail { padding: 24px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.cam-detail h3 { font-size: 30px; } .cam-detail p { color: var(--text-2); margin-bottom: 0; }
.cam-img { margin-top: 18px; }

/* ---------- Gates ---------- */
.gates { background: var(--bg-2); }
.gate-row { list-style: none; margin: 0; padding: 0; display: grid; border-top: 2px solid var(--turf-ink); }
.gate { display: grid; gap: 10px 28px; padding: 24px 0; border-bottom: 1px solid var(--line-strong); }
.g-k { margin: 0; display: flex; gap: 12px; align-items: center; font-weight: 700; font-size: 15px; color: var(--turf); }
.g-mark { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 850; font-stretch: 70%; font-size: 23px; background: var(--floodlight); color: var(--turf-ink); }
.gate.stop .g-mark { background: oklch(0.88 0.08 30); color: oklch(0.38 0.14 30); }
.gate.stop .g-k { color: var(--ev-pending); }
.gate h3 { font-size: clamp(24px, 3.2vw, 34px); margin: 0 0 4px; }
.g-q { color: var(--text-2); font-size: 16px; margin: 0; }
.gate dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-content: start; }
.gate dt { font-size: 14px; font-weight: 750; color: var(--muted); padding-top: 2px; }
.gate dd { margin: 0; color: var(--text); font-size: 15.5px; }

/* ---------- League (deep turf band) ---------- */
.league { overflow: hidden; background: var(--turf-ink); color: var(--chalk); }
.league h2, .league h3 { color: var(--chalk); }
.league .lede, .league p { color: oklch(0.93 0.025 140); }
.league .eyebrow, .league .eyebrow .num { color: var(--floodlight); }
.league .fine { color: oklch(0.85 0.03 140); }
.league-bg { position: absolute; inset: 0; border-radius: 0; opacity: .22; }
.league-bg .concept-tag { top: 16px; bottom: auto; right: 16px; left: auto; }
.league-in { position: relative; z-index: 2; }
.league-grid { display: grid; gap: 22px; }
.lg-k { font-weight: 750; font-size: 16px; color: var(--chalk); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.league .ev { background: transparent; color: var(--floodlight); }
.lg-line { font-size: clamp(22px, 3vw, 30px); font-stretch: 88%; line-height: 1.35; color: var(--chalk) !important; margin: 10px 0 0; max-width: 32ch; }
.lg-line b { color: var(--floodlight); font-weight: 850; font-stretch: 70%; font-size: 1.25em; }
.lg-table { padding: 18px; border-radius: 18px; background: var(--surface); color: var(--text); }
.lg-table .lg-k { color: var(--turf-ink); }
.lg-tag { font-size: 12.5px; font-weight: 700; color: oklch(0.42 0.1 65); background: oklch(0.94 0.06 85); border-radius: 999px; padding: 1px 9px; }
.tbl-scroll { overflow-x: auto; }
.lg-table table { width: 100%; border-collapse: collapse; font-size: 15px; margin-top: 10px; min-width: 330px; }
.lg-table th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 700; padding: 6px; border-bottom: 2px solid var(--turf-ink); }
.lg-table td { padding: 8px 6px; border-bottom: 1px solid var(--line); color: var(--text-2); }
.lg-table td:nth-child(n+3), .lg-table th:nth-child(n+3) { text-align: center; }
.lg-table tr:nth-child(4) td { border-bottom: 2px dashed var(--floodlight); }
.crest { display: inline-block; width: 14px; height: 17px; margin-right: 8px; vertical-align: -3px; clip-path: polygon(0 0, 100% 0, 100% 60%, 50% 100%, 0 60%); }
.crest-0 { background: oklch(0.55 0.13 250); } .crest-1 { background: var(--team-b); } .crest-2 { background: var(--turf); } .crest-3 { background: oklch(0.6 0.18 28); }
.crest-4 { background: oklch(0.55 0.13 300); } .crest-5 { background: oklch(0.3 0.04 158); } .crest-6 { background: oklch(0.7 0.12 200); } .crest-7 { background: oklch(0.82 0.14 95); }
.lg-layers { display: grid; gap: 0; margin-top: 28px; border-top: 1px solid oklch(1 0 0 / .2); }
.lg-layers > div { padding: 14px 0; border-bottom: 1px solid oklch(1 0 0 / .12); display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.lg-layers b { color: var(--floodlight); font-stretch: 80%; font-size: 18px; }
.lg-layers p { margin: 0; font-size: 15.5px; }

/* ---------- Explore (turf finale) ---------- */
.explore { min-height: 80dvh; display: flex; align-items: center; overflow: hidden; background-color: var(--turf); color: var(--chalk);
  background-image: repeating-linear-gradient(90deg, transparent 0 7%, oklch(1 0 0 / 0.05) 7% 14%); }
.explore h2 { color: var(--chalk); max-width: 18ch; }
.explore .lede { color: oklch(0.96 0.025 140); }
.explore .eyebrow, .explore .eyebrow .num { color: var(--floodlight); }
.explore-bg { position: absolute; inset: 0; border-radius: 0; opacity: .18; }
.explore-bg .concept-tag { top: 16px; bottom: auto; right: 16px; left: auto; }
.explore-in { position: relative; z-index: 2; }
.btn-xl { font-size: 18px; min-height: 58px; padding: 14px 28px; background: var(--chalk); color: var(--turf-ink); border-color: var(--chalk); }
@media (hover: hover) and (pointer: fine) { .btn-xl:hover { background: var(--floodlight); border-color: var(--floodlight); color: var(--turf-ink); } }
.deep-links { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.deep-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 15px; border-radius: 999px; border: 1.5px solid oklch(1 0 0 / .45); text-decoration: none; color: var(--chalk) !important; font-size: 15px; font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .deep-links a:hover { background: oklch(1 0 0 / .12); border-color: var(--chalk); } }

/* ---------- Footer ---------- */
.foot { padding: 40px 0 56px; background: var(--bg); border-top: 1px solid var(--line); }
.foot p { color: var(--muted); font-size: 14.5px; max-width: 90ch; }
.foot b { color: var(--turf-ink); }
.foot-legend { display: flex; flex-wrap: wrap; gap: 8px; }

/* ================= Phones ================= */
@media (max-width: 699px) {
  .hero h1 { font-size: clamp(54px, 15vw, 80px); }
  .ev { white-space: normal; max-width: 100%; }
  .eng-hot { position: static; display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; }
  .hot { position: static; transform: none; min-height: 44px; font-size: 15px; padding: 8px 15px; }
  .hot::before { display: none; }
  .loop { aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
  .loop-svg { display: none; }
  .loop-node { position: static; transform: none; width: auto; min-height: 76px; }
  .loop-center { position: static; transform: none; width: auto; grid-column: 1 / -1; text-align: left; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); }
  .loop-center p { font-size: 15.5px !important; }
  .mo-t { font-size: 24px; }
  .hero { padding-top: 92px; }
  .hp-tilt { transform: rotateX(42deg) rotateZ(-6deg) scale(.92); }
  #heroPitch { width: min(78%, 300px); }
  .concept.band { aspect-ratio: 4 / 3; }
}

/* ================= Tablet ================= */
@media (min-width: 700px) {
  .brand em { display: inline; }
  .vs { grid-template-columns: 1fr 1.2fr; align-items: stretch; }
  .tri > div { grid-template-columns: 280px 1fr; align-items: baseline; gap: 24px; }
  .pipe { grid-template-columns: repeat(5, 1fr); gap: 8px; }
  .pipe-node { grid-template-columns: 1fr; grid-template-rows: auto; row-gap: 6px; align-content: start; min-height: 158px; padding: 16px; }
  .pipe-node .pi { grid-row: auto; }
  .pipe-node:not(:last-child)::after { left: auto; right: -9px; bottom: auto; top: 35px; width: 10px; height: 2px; }
  .pipe-panel { grid-template-columns: 1fr 1.2fr; padding: 34px; }
  .seal-steps { grid-template-columns: repeat(3, 1fr); column-gap: 20px; }
  .channels { grid-template-columns: 1.2fr 1fr; }
  .tr { grid-template-columns: 110px 1fr; align-items: baseline; }
  .cand-cols { grid-template-columns: 1fr 1fr; }
  .mile-grid { grid-template-columns: 1.1fr 1fr; gap: 56px; }
  .gate { grid-template-columns: 1.1fr 1fr 1fr; align-items: start; }
  .gate .g-k { grid-column: 1 / -1; }
  .lg-layers { grid-template-columns: repeat(5, 1fr); column-gap: 16px; }
  .lg-layers > div { grid-template-columns: 1fr; gap: 4px; }
  .prod-media { grid-template-columns: 1.3fr 1fr; }
  .prod-list { grid-template-columns: repeat(3, 1fr); }
  #labRestart .lbl, #labStep .lbl { display: inline; }
  .lab { padding: 20px; }
  .dev-order { grid-template-columns: 1fr 1fr; column-gap: 32px; }
}

/* ================= Desktop ================= */
@media (min-width: 1040px) {
  .topbar-in { padding: 0 28px; height: 66px; gap: 16px; }
  .btn-blueprint { display: inline-flex; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 40px; }
  .how-grid { grid-template-columns: 1.2fr .8fr; align-items: center; gap: 72px; }
  .brain-grid { grid-template-columns: .85fr 1.15fr; gap: 44px; align-items: start; }
  .nollm { grid-template-columns: .8fr 1.2fr; align-items: start; column-gap: 56px; }
  .nollm-k { grid-row: span 2; }
  .lab-grid { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
  .lab-panel { position: sticky; top: 84px; max-height: calc(100dvh - 100px); overflow: auto; }
  .chain-stages { grid-template-columns: repeat(5, 1fr); }
  .engine-grid { grid-template-columns: 1.4fr 1fr; align-items: center; gap: 28px; }
  .prod-grid { grid-template-columns: 1.3fr 1fr; align-items: start; }
  .prod-list { grid-template-columns: repeat(2, 1fr); }
  .cams { grid-template-columns: 1.3fr 1fr; align-items: center; }
  .league-grid { grid-template-columns: 1fr 1fr; align-items: start; gap: 48px; }
  .road-track { overflow: visible; }
  .rn { flex: 1 1 0; min-width: 0; padding-right: 6px; }
  .rn button { width: 100%; }
  .morph-stage { max-width: 820px; margin: 0 auto; }
  .roadmap .wrap, .lab-sec .wrap { max-width: 1360px; }
}

/* Portrait pitch on phones (set by lab.js) */
.lab.is-portrait .pitch-wrap { max-width: 520px; margin: 0 auto; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
  .scroll-cue span::after { animation: none; }
}

@media print {
  .topbar, .scroll-cue, .lab-controls, .lab-timeline, .lab-layers { display: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
.league-bg,.explore-bg{opacity:1!important}
.league-bg::after,.explore-bg::after{content:'';position:absolute;inset:0;background:rgba(6,49,27,.78);pointer-events:none;z-index:1}
.league-bg .concept-tag,.explore-bg .concept-tag{z-index:3;opacity:1}
