:root {
  --bg: #fff;
  --ink: #101014;
  --ink-soft: rgba(16,16,20,.56);
  --ink-faint: rgba(16,16,20,.28);
  --cobalt: #2337ec;
  --cobalt-deep: #1b2bc9;
  --navy: #0a1128;
  --ember: #ff7a29;
  /* Poetic-style type system: Inter (UI/text), Inter Tight (display), IBM Plex Mono (data) */
  --serif: "Inter Tight", "Inter", Arial, Helvetica, sans-serif;
  --grot: "Inter", Arial, Helvetica, sans-serif;
  --sans: "Inter", Arial, Helvetica, sans-serif;
  --mono: "IBM Plex Mono", monospace;
  --font-sans: "Inter", Arial, Helvetica, sans-serif;
  --font-display: "Inter Tight", "Inter", Arial, Helvetica, sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --pad: clamp(48px, 6vw, 110px);
  --content: 1536px;
}

* { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); overflow-x: clip; font-optical-sizing: auto; font-kerning: normal; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-weight: 400; -webkit-font-smoothing: antialiased; }
button, a { font: inherit; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
svg, canvas, img, video { display: block; max-width: 100%; }

.display { margin: 0; font-family: var(--serif); font-weight: 400; line-height: .95; letter-spacing: -.012em; }
.display .em { font-style: italic; }
.kicker { margin: 0; color: var(--cobalt); font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .12em; line-height: 1.2; text-transform: uppercase; }
.caption { margin: 0; color: var(--ink-soft); font-family: var(--mono); font-size: 12px; line-height: 1.55; text-align: left; }
.section-grid { width: min(100%, var(--content)); margin-inline: auto; padding-inline: var(--pad); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); }
.pin-scene { position: relative; height: var(--pin); }
.pin-stage { position: sticky; top: 0; width: 100%; height: 100svh; overflow: hidden; }
.seam { position: absolute; z-index: 12; right: 0; bottom: 0; left: 0; height: 12rem; pointer-events: none; background: linear-gradient(to top, var(--bg), transparent); }

.glass-white {
  position: relative;
  overflow: hidden;
  border: 0;
  background: rgba(255,255,255,.55);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.8), 0 20px 50px rgba(16,16,20,.08);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.glass-white::before {
  position: absolute;
  inset: 0;
  padding: 1.4px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(16,16,20,.18) 0%, rgba(16,16,20,.05) 20%, rgba(16,16,20,0) 40%, rgba(16,16,20,0) 60%, rgba(16,16,20,.05) 80%, rgba(16,16,20,.18) 100%);
  content: "";
  pointer-events: none;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; border-radius: 999px; padding: 12px 32px; font-family: var(--sans); font-size: 16px; font-weight: 600; letter-spacing: -.015em; }
.button-light { background: #fff; color: var(--ink); }
.button-glass { color: #fff; }
.button-night-glass { border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06); color: #fff; }

[data-fade] { opacity: 0; transform: translateY(20px); }
[data-fade].is-visible { opacity: 1; transform: none; transition: opacity .6s ease-out, transform .6s ease-out; transition-delay: var(--fade-delay, 0s); }
.char { display: inline-block; opacity: 0; transform: translateX(-18px); }
.word-group { display: inline-block; white-space: nowrap; }
.char.is-visible { opacity: 1; transform: none; transition: opacity .5s ease-out, transform .5s ease-out; transition-delay: calc(.2s + var(--char-index) * 30ms); }
.march { animation: march 1.5s linear infinite; }
.bandrow { animation: bandrow 3.2s ease-in-out infinite alternate; }
.breathe { animation: breathe 5.5s ease-in-out infinite; }
@keyframes march { to { stroke-dashoffset: -40; } }
@keyframes bandrow { from { opacity: .45; } to { opacity: .95; } }
@keyframes breathe { 50% { transform: translateY(-7px); } }

/* Hero */
.hero-shell { min-height: 100svh; display: flex; align-items: center; justify-content: center; padding: 12px; background: #fff; }
.hero-frame { position: relative; width: 100%; max-width: 1536px; height: 94svh; min-height: 700px; overflow: hidden; border-radius: 24px; background: #9ba88f; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; opacity: 0; }
.hero-nav { position: absolute; z-index: 20; top: 24px; left: 50%; width: calc(100% - 48px); max-width: 1024px; min-height: 58px; transform: translateX(-50%); border-radius: 999px; padding: 11px 18px 11px 24px; display: flex; align-items: center; justify-content: space-between; gap: 28px; color: #fff; }
.hero-nav, .hero-copy, .hero-stats { text-shadow: 0 1px 12px rgba(10,17,40,.38); }
.hero-brand { display: flex; align-items: center; gap: 10px; font-family: var(--sans); font-size: 18px; font-weight: 600; white-space: nowrap; }
.hero-brand svg { width: 20px; height: 20px; fill: currentColor; }
.hero-nav-center { display: flex; align-items: center; gap: 28px; font-size: 14px; color: rgba(255,255,255,.85); }
.hero-nav-center a:hover { color: #fff; }
.hero-nav-right { display: flex; align-items: center; gap: 20px; font-size: 14px; }
.hero-talk { border-radius: 999px; padding: 10px 24px; background: #fff; color: var(--ink); }
.hero-copy { position: absolute; z-index: 10; left: clamp(32px, 4vw, 56px); bottom: clamp(96px, 8.5vw, 128px); color: #fff; }
.hero-title { max-width: 11ch; color: #fff; font-size: min(9vw, 138px); line-height: .95; letter-spacing: -.04em; }
.hero-copy > p { margin: 16px 0 0; color: rgba(255,255,255,.85); font-size: 16px; }
.hero-actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-actions .button-glass { border-color: rgba(255,255,255,.5); background: rgba(10,17,40,.32); box-shadow: 0 8px 24px rgba(10,17,40,.14); }
.hero-stats { position: absolute; z-index: 10; top: 118px; right: clamp(32px, 4vw, 56px); display: grid; gap: 22px; color: #fff; }
.hero-stats > div { width: 210px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; }
.hero-stats b { font-family: var(--grot); font-size: 38px; font-weight: 450; letter-spacing: -.05em; }
.hero-stats i { width: 100%; height: 1px; transform: rotate(20deg); background: rgba(255,255,255,.4); }
.hero-stats span { color: rgba(255,255,255,.7); font-family: var(--mono); font-size: 12px; white-space: nowrap; }
.field-cutout { position: absolute; z-index: 12; right: 0; bottom: 0; width: 262px; min-height: 120px; padding: 32px 24px 22px 52px; border-radius: 56px 0 0 0; background: #fff; color: var(--ink); display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; }
.field-cutout > span { font-size: 16px; }
.field-cutout small { display: flex; align-items: center; gap: 5px; color: var(--ink-soft); font-size: 12px; }
.field-cutout small svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.cutout-mask { position: absolute; width: 56px; height: 56px; fill: #fff; }
.cutout-mask-top { top: -56px; right: 0; }
.cutout-mask-left { bottom: 0; left: -56px; }

/* Bridge */
.bridge-stage { background: #fff; }
#bridgeCanvas { position: absolute; top: var(--pad); right: var(--pad); left: var(--pad); width: calc(100% - var(--pad) * 2); height: 58vh; max-width: none; }
.bridge-overlay { position: absolute; top: calc(var(--pad) + 58vh + 18px); left: 17%; width: 66%; max-width: 52ch; font-size: clamp(22px, 2.4vw, 40px); opacity: 0; }
.bridge-caption { position: absolute; z-index: 13; left: var(--pad); bottom: 28px; opacity: 0; }

/* Horse */
.horse-strip { position: relative; height: 42vh; min-height: 320px; overflow: hidden; background: #fff; }
.horse-plate { position: absolute; inset: 5% var(--pad) 12%; display: grid; place-items: center; }
.horse-plate canvas { width: min(74vw, 1020px); height: 30vh; max-width: none; }
.horse-baseline { position: absolute; right: 0; bottom: 4%; left: 0; height: 1px; background: rgba(16,16,20,.15); }
.horse-caption { position: absolute; z-index: 2; left: var(--pad); bottom: 24px; }

/* Thesis */
.thesis-section { background: #fff; }
.thesis-statement { min-height: 100svh; align-content: start; padding-top: var(--pad); padding-bottom: var(--pad); }
.thesis-statement .kicker { grid-column: 1 / 13; }
.thesis-statement h2 { grid-column: 1 / 12; margin-top: clamp(32px, 5vh, 64px); font-size: clamp(64px, 9.6vw, 172px); }
.thesis-reveal { grid-column: 1 / 9; max-width: 46ch; margin: clamp(40px, 7vh, 86px) 0 0; color: var(--ink); font-family: var(--sans); font-size: clamp(22px, 2.2vw, 36px); font-weight: 600; line-height: 1.14; letter-spacing: -.035em; }
.thesis-reveal .word { opacity: .15; }
.thesis-figure-stage { background: #fff; display: flex; align-items: center; justify-content: flex-end; padding: 7vh var(--pad) 6vh; }
.thesis-figure { width: 62vw; max-width: 1180px; margin: 0; }
.thesis-figure svg { width: 100%; overflow: visible; }
.thesis-figure figcaption { margin-top: 18px; }
.thesis-figure .table-rule { fill: none; stroke: rgba(16,16,20,.14); stroke-width: 1; }
.thesis-figure .record-row text, .thesis-figure .edge-label, .thesis-figure .table-note, .thesis-figure .graph-note { fill: var(--ink-soft); font-family: var(--mono); font-size: 18px; }
.thesis-figure .record-row circle, .thesis-figure .graph-nodes circle { fill: var(--ink); }
.thesis-figure .relation { fill: none; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.thesis-figure .relation.bought { stroke: var(--cobalt); stroke-width: 3; }
.thesis-figure .relation.viewed { stroke: rgba(16,16,20,.25); stroke-width: 1.6; }
.thesis-figure .relation.dormant { stroke: rgba(16,16,20,.35); stroke-width: 2.2; stroke-dasharray: 3 7; }
.thesis-figure .relationship-graph { opacity: 0; }
.thesis-figure .graph-note { fill: var(--cobalt); opacity: 0; }

/* Engine */
.engine-stage { background: #fff; color: #fff; }
.engine-bg { position: absolute; z-index: 0; inset: 0; overflow: hidden; clip-path: circle(0% at 50% 50%); background: var(--cobalt); }
.engine-bg video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; opacity: .55; }
.engine-bg > div { position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 6%, #2a3ff5 0%, #2337ec 46%, #1b2bc9 100%); opacity: .8; }
.engine-content { position: relative; z-index: 2; width: 100%; height: 100%; opacity: 0; }
.engine-content > .kicker { position: absolute; top: 6vh; left: var(--pad); color: rgba(255,255,255,.72); }
.engine-content > h2 { position: absolute; z-index: 3; top: 9vh; left: var(--pad); max-width: 5.2ch; color: #fff; font-size: clamp(50px, 6.2vw, 96px); }
.engine-figure { position: absolute; top: 19vh; left: 61%; width: min(82vw, 1100px); height: 58vh; max-width: none; transform: translateX(-50%); overflow: visible; }
.engine-side-label { fill: rgba(255,255,255,.72); font-family: var(--mono); font-size: 15px; letter-spacing: .18em; }
.engine-signals path { fill: none; stroke: rgba(255,255,255,.28); stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 1; }
.engine-dots circle { fill: #fff; opacity: 0; }
.engine-dots circle.hollow { fill: none; stroke: #fff; stroke-width: 2.6; }
.vida-band rect { fill: rgba(22,36,159,.6); stroke: #fff; stroke-width: 2; }
.vida-band > text { fill: #fff; stroke: #16249f; stroke-width: 4px; paint-order: stroke fill; font-family: var(--serif); font-size: 66px; font-weight: 500; letter-spacing: 14px; text-anchor: middle; writing-mode: vertical-rl; transform: rotate(180deg); transform-origin: 620px 314px; }
.vida-band .bandrow { fill: rgba(255,255,255,.34); font-family: var(--mono); font-size: 15px; text-anchor: middle; }
.engine-actions .action-path { fill: none; stroke: #fff; stroke-width: 3.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.action-chip { opacity: 0; }
.action-chip rect { fill: rgba(27,43,201,.72); stroke: #fff; stroke-width: 2; }
.action-chip text { fill: #fff; font-family: var(--mono); font-size: 12.5px; letter-spacing: 2.5px; text-anchor: middle; }
.engine-pulse { fill: #fff; }
.engine-support { position: absolute; z-index: 13; bottom: 7vh; left: var(--pad); width: min(410px, calc(100vw - var(--pad) * 2)); border-radius: 16px; padding: 22px 24px; color: var(--ink); font-size: 16px; line-height: 1.5; opacity: 0; }
.engine-caption { position: absolute; z-index: 13; left: var(--pad); bottom: 24px; color: rgba(22,36,159,.76); opacity: 0; }

/* Dealy */
.dealy-section { background-color: #fff; background-image: radial-gradient(rgba(16,16,20,.06) 1.1px, transparent 1.4px); background-size: 26px 26px; }
.dealy-stage { align-content: start; padding-top: 8vh; }
.dealy-stage > .kicker { grid-column: 1 / 13; }
.dealy-stage > h2 { grid-column: 1 / 11; margin-top: 24px; font-size: clamp(62px, 7.6vw, 116px); }
.dealy-stage > h2 span { display: block; }
.dealy-figure { position: absolute; right: var(--pad); bottom: 5vh; width: min(74vw, 1160px); margin: 0; filter: drop-shadow(0 30px 50px rgba(16,16,20,.10)); }
.figure-stamp { position: absolute; z-index: 3; top: 0; left: 35%; transform: translateY(-50%); border-radius: 999px; padding: 9px 15px; background: #fff; box-shadow: 0 10px 30px rgba(16,16,20,.08); color: var(--cobalt); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; }
.dealy-network path, .dealy-network circle { vector-effect: non-scaling-stroke; }
.dealy-figure svg { width: 100%; overflow: visible; }
.dealy-figure figcaption { margin: 12px 0 0 35%; }
.dealy-edges .edge, .missing-edge { fill: none; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.dealy-edges .bought-thick { stroke: var(--cobalt); stroke-width: 5; }
.dealy-edges .bought { stroke: var(--cobalt); stroke-width: 3; }
.dealy-edges .viewed { stroke: rgba(16,16,20,.25); stroke-width: 1.6; }
.dealy-edges .dormant { stroke: rgba(16,16,20,.35); stroke-width: 2.2; stroke-dasharray: 3 7; }
.dealy-edges text, .dealy-figure .edge-label { fill: var(--ink-soft); font-family: var(--mono); font-size: 15px; }
.dealy-nodes circle { fill: var(--ink); }
.missing-edge { stroke: var(--cobalt); stroke-width: 3.6; stroke-dasharray: 11 9; }
.target-halo { fill: rgba(35,55,236,.04); }
.target-ring { fill: #fff; stroke: var(--cobalt); stroke-width: 2.6; }
.probability-chip { opacity: 0; }
.probability-chip rect { fill: #fff; filter: drop-shadow(0 12px 24px rgba(16,16,20,.12)); }
.probability-chip text { fill: var(--cobalt); font-family: var(--mono); font-size: 22px; font-weight: 500; text-anchor: middle; }
.missing-target [data-boule] circle { fill: var(--cobalt); }
.dealy-after { min-height: 78vh; align-content: center; row-gap: 46px; padding-top: var(--pad); padding-bottom: var(--pad); background: #fff; }
.learn-strip { grid-column: 1 / 10; }
.learn-strip > .caption { color: var(--ink); font-size: 13px; }
.learn-dots { position: relative; margin-top: 30px; min-height: 190px; display: grid; grid-template-columns: repeat(8, 1fr); align-items: center; gap: clamp(12px, 2.5vw, 34px); }
.learn-dots button { position: relative; z-index: 2; justify-self: center; width: 18px; height: 18px; border: 2px solid var(--cobalt); border-radius: 50%; padding: 0; background: #fff; cursor: pointer; }
.learn-dots button.is-on { background: var(--cobalt); }
.learn-dots svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.learn-dots svg path { fill: none; stroke: var(--cobalt); stroke-width: 2; stroke-dasharray: 7 7; }
.dealy-support { grid-column: 3 / 10; margin: 0; font-family: var(--serif); font-size: clamp(30px, 4vw, 62px); line-height: 1; }

/* Best-shot */
.bestshot-section { background: #fff; }
.bestshot-stage { align-content: start; padding-top: 8vh; }
.bestshot-stage > .kicker { grid-column: 1 / 13; color: #a94b13; }
.bestshot-stage > h2 { grid-column: 1 / 10; margin-top: 24px; font-size: clamp(62px, 8.4vw, 128px); }
.bestshot-figure { position: absolute; right: 4vw; bottom: 6vh; width: 78vw; margin: 0; }
.bestshot-svg { width: 100%; overflow: visible; }
.bestshot-mobile { display: none; }
.state-lines path { fill: none; stroke: rgba(16,16,20,.3); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.state-lines .return-line { stroke-dasharray: 10 9; }
.state-nodes circle { fill: #fff; stroke: rgba(16,16,20,.3); stroke-width: 2; }
.state-nodes text { fill: var(--ink); font-family: var(--mono); font-size: 14px; text-anchor: middle; }
.prob-chips { opacity: 0; }
.glass-chip rect { fill: rgba(255,255,255,.72); filter: drop-shadow(0 14px 26px rgba(16,16,20,.12)); }
.glass-chip text { fill: var(--ember); font-family: var(--mono); font-size: 18px; font-weight: 500; text-anchor: middle; }
.bestshot-figure.is-ignited .state-line, .bestshot-figure.is-ignited .return-line { stroke: var(--ember); stroke-width: 3.5; }
.bestshot-figure.is-ignited .return-line { stroke-width: 4; }
.bestshot-figure.is-ignited .state-nodes circle { stroke: var(--ember); }
.bestshot-after { min-height: 78vh; align-content: center; padding-top: var(--pad); padding-bottom: var(--pad); row-gap: 28px; }
.bestshot-support { grid-column: 1 / 8; margin: 0; font-family: var(--serif); font-size: clamp(30px, 4.2vw, 64px); line-height: 1; }
.night-runner { position: relative; grid-column: 1 / 10; min-height: 170px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 30px; overflow: hidden; }
.night-runner button { position: relative; z-index: 3; border: 0; border-radius: 999px; padding: 13px 32px; background: var(--ink); color: #fff; cursor: pointer; }
.night-counters { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(2, minmax(120px, 1fr)); gap: 16px; }
.night-counters b { padding: 18px 20px; background: #fff; color: var(--ink); font-family: var(--mono); font-size: 32px; font-weight: 500; text-align: center; box-shadow: 0 14px 32px rgba(16,16,20,.08); }
.night-pulses { position: absolute; inset: 0; pointer-events: none; }
.night-pulses i { position: absolute; left: 22%; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: var(--ember); animation: travel 1.2s linear forwards; }
@keyframes travel { to { transform: translateX(58vw); opacity: 0; } }
.bestshot-after > .caption { grid-column: 1 / 10; }

/* Systems */
.systems-section { background: #fff; }
.system-scene { min-height: 100svh; align-items: center; padding-top: var(--pad); padding-bottom: var(--pad); }
.system-copy { align-self: center; }
.system-copy > h2 { margin-bottom: clamp(48px, 9vh, 110px); font-size: clamp(58px, 7.8vw, 118px); }
.system-copy > h3 { font-size: clamp(42px, 5.1vw, 78px); }
.system-copy > p { max-width: 42ch; margin: 28px 0 0; color: var(--ink-soft); font-size: 17px; line-height: 1.55; }
.system-sale .system-copy { grid-column: 1 / 6; }
.system-sale .system-figure { grid-column: 6 / 13; }
.system-figure { margin: 0; }
.system-figure svg { width: 100%; overflow: visible; }
.system-figure figcaption { margin-top: 16px; }
.sold-path path, .rental-orbit path, .booking-circuit path, .occupancy-ramp path { fill: none; stroke: var(--cobalt); stroke-width: 2.4; stroke-linecap: round; }
.sold-path circle, .rental-orbit circle, .booking-circuit circle, .month-dots circle { fill: #fff; stroke: var(--cobalt); stroke-width: 2; }
.sold-path rect { fill: var(--cobalt); }
.sold-path text { fill: var(--ink-soft); font-family: var(--mono); font-size: 18px; text-anchor: middle; }
.orbit-pulse { fill: var(--cobalt) !important; offset-path: path("M160 340C160 260 560 260 560 340V480C560 552 160 552 160 480Z"); offset-distance: 0%; animation: orbitTravel 6s linear infinite; }
@keyframes orbitTravel { to { offset-distance: 100%; } }
.month-ramp text { fill: var(--cobalt); font-family: var(--mono); font-size: 28px; }
.month-ramp .today-note { fill: var(--ink-soft); font-size: 14px; }
.deadline-tick { stroke: var(--cobalt); stroke-width: 5; animation: bandrow 3.2s ease-in-out infinite alternate; }
.system-camp .camp-figure { grid-column: 1 / 8; }
.system-camp .system-copy { grid-column: 9 / 13; }
.system-camp .system-copy > h3 { font-size: clamp(46px, 5.5vw, 82px); }
.camp-loop { position: relative; }
.booking-circuit .future-leg, .occupancy-ramp .future-ramp { stroke-dasharray: 9 9; opacity: .35; }
#gerCanvas { position: absolute; top: 124px; left: 50%; width: 180px; height: 180px; transform: translateX(-50%); }

/* Finale */
.finale-stage { background: var(--navy); color: #fff; }
.finale-video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; opacity: .5; }
.finale-tint { position: absolute; inset: 0; background: rgba(10,17,40,.6); }
#finaleCanvas { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.finale-content { position: relative; z-index: 3; height: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; pointer-events: none; }
.finale-content h2 { margin-top: 6vh; max-width: 14ch; color: #fff; font-size: clamp(40px, 5vw, 88px); }
.finale-close { position: absolute; bottom: 15vh; width: min(52ch, calc(100vw - 48px)); color: rgba(255,255,255,.85); font-size: 17px; line-height: 1.55; }
.finale-close p { margin: 0; }
.finale-close p + p { margin-top: 16px; }
.finale-actions { position: absolute; bottom: 6vh; display: flex; gap: 10px; pointer-events: auto; }

/* Shared footer, preserved */
.site-footer { position: relative; z-index: 2; padding: 72px 0 28px; background: var(--navy); color: rgba(255,255,255,.72); }
.site-footer .container { width: min(100%, 1180px); margin-inline: auto; padding-inline: 24px; }
.foot-grid { display: grid; grid-template-columns: 1.45fr repeat(3, 1fr); gap: 54px; }
.foot-brand .brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-size: 18px; font-weight: 600; }
.foot-brand .mark { width: 20px; height: 20px; color: var(--cobalt); }
.foot-brand .mark svg { width: 100%; height: 100%; fill: currentColor; }
.foot-brand p { max-width: 32ch; margin: 22px 0 0; font-size: 14px; line-height: 1.55; }
.foot-brand .mn { margin-top: 12px; color: #93a8ef; }
.foot-col { display: flex; flex-direction: column; gap: 13px; }
.foot-col h5 { margin: 0 0 10px; color: #fff; font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }
.foot-col a { font-size: 14px; }
.foot-bottom { margin-top: 52px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.22); display: flex; justify-content: space-between; gap: 24px; color: rgba(255,255,255,.62); font-family: var(--mono); font-size: 11px; }
.nav-drawer { display: none !important; }

@media (min-width: 768px) {
  .hero-shell { padding: 20px; }
  .hero-frame { border-radius: 48px; }
}

@media (max-width: 760px) {
  :root { --pad: 24px; }
  .kicker, .caption { font-size: 10px; }
  .hero-shell { padding: 12px; }
  .hero-frame { height: 94svh; min-height: 720px; border-radius: 24px; }
  .hero-nav { top: 12px; width: calc(100% - 24px); min-height: 52px; padding: 8px 10px 8px 16px; gap: 10px; }
  .hero-brand { font-size: 16px; }
  .hero-brand svg { width: 18px; height: 18px; }
  .hero-nav-center, .hero-login { display: none; }
  .hero-talk { padding: 9px 16px; font-size: 13px; }
  .hero-copy { left: 24px; right: 24px; bottom: 235px; }
  .hero-title { max-width: 8ch; font-size: 13vw; }
  .hero-copy > p { max-width: 27ch; font-size: 14px; line-height: 1.45; }
  .hero-actions { margin-top: 18px; }
  .button { min-height: 44px; padding: 11px 20px; font-size: 13px; }
  .hero-stats { top: 84px; right: 18px; gap: 8px; }
  .hero-stats > div { width: 124px; gap: 6px; }
  .hero-stats b { font-size: 24px; }
  .hero-stats span { font-size: 8px; }
  .field-cutout { width: 190px; min-height: 98px; padding: 26px 16px 16px 34px; border-radius: 42px 0 0; }
  .field-cutout > span { font-size: 13px; }
  .cutout-mask { width: 42px; height: 42px; }
  .cutout-mask-top { top: -42px; }
  .cutout-mask-left { left: -42px; }

  #bridgeCanvas { top: 72px; height: 48vh; }
  .bridge-overlay { top: calc(72px + 48vh + 22px); left: 24px; width: calc(100% - 48px); font-size: 24px; }
  .bridge-caption { right: 24px; bottom: 24px; }
  .horse-strip { min-height: 300px; }
  .horse-plate canvas { width: 94vw; height: 28vh; }
  .horse-caption { right: 24px; bottom: 18px; }

  .thesis-statement h2 { grid-column: 1 / 13; margin-top: 28px; font-size: clamp(60px, 18vw, 78px); }
  .thesis-reveal { grid-column: 1 / 13; margin-top: 54px; font-size: 24px; }
  .thesis-figure-stage { justify-content: center; padding: 8vh 18px 5vh; }
  .thesis-figure { width: 100%; }
  .thesis-figure .record-row text, .thesis-figure .edge-label, .thesis-figure .table-note, .thesis-figure .graph-note { font-size: 25px; }

  .engine-content > .kicker { top: 5vh; }
  .engine-content > h2 { top: 8vh; right: 24px; max-width: 6.2ch; font-size: 54px; }
  .engine-figure { top: 25vh; left: 50%; width: 98vw; height: 48vh; }
  .engine-side-label { font-size: 24px; }
  .vida-band > text { font-size: 88px; }
  .vida-band .bandrow { font-size: 24px; }
  .action-chip text { font-size: 24px; letter-spacing: 2px; }
  .engine-support { bottom: 8vh; border-radius: 14px; padding: 16px 18px; font-size: 14px; }
  .engine-caption { right: 24px; bottom: 20px; }

  .dealy-stage { padding-top: 7vh; }
  .dealy-stage > h2 { grid-column: 1 / 13; font-size: clamp(58px, 17vw, 74px); }
  .dealy-figure { right: 12px; bottom: 12vh; width: calc(100vw - 24px); }
  .dealy-edges text, .dealy-figure .edge-label { font-size: 29px; }
  .probability-chip text { font-size: 36px; }
  .figure-stamp { font-size: 9px; }
  .dealy-after { min-height: 76vh; }
  .learn-strip { grid-column: 1 / 13; }
  .learn-dots { grid-template-columns: repeat(4, 1fr); min-height: 220px; }
  .dealy-support { grid-column: 1 / 13; font-size: 42px; }

  .bestshot-stage > h2 { grid-column: 1 / 13; font-size: clamp(58px, 17vw, 74px); }
  .bestshot-figure { right: 12px; bottom: 3vh; width: calc(100vw - 24px); }
  .bestshot-desktop { display: none; }
  .bestshot-mobile { display: block; max-height: 64vh; }
  .state-nodes text { font-size: 11px; text-anchor: start; }
  .bestshot-after { min-height: 82vh; }
  .bestshot-support { grid-column: 1 / 13; font-size: 42px; }
  .night-runner { grid-column: 1 / 13; grid-template-columns: 1fr; gap: 18px; }
  .night-counters { grid-template-columns: 1fr 1fr; }
  .night-counters b { padding: 15px; font-size: 26px; }
  .bestshot-after > .caption { grid-column: 1 / 13; }

  .system-scene { display: block; min-height: 100svh; }
  .system-copy > h2 { margin-bottom: 54px; font-size: 62px; }
  .system-copy > h3, .system-camp .system-copy > h3 { font-size: 50px; }
  .system-copy > p { margin-top: 22px; font-size: 15px; }
  .system-figure { margin-top: 52px; }
  .system-camp { display: flex; flex-direction: column; justify-content: center; }
  .system-camp .camp-figure { order: 2; }
  .system-camp .system-copy { order: 1; }
  .sold-path text { font-size: 24px; }
  .month-ramp text { font-size: 32px; }
  .month-ramp .today-note { font-size: 20px; }
  #gerCanvas { top: 80px; width: 128px; height: 128px; }

  .finale-content h2 { margin-top: 7vh; width: calc(100% - 40px); font-size: 50px; }
  .finale-close { bottom: 23vh; font-size: 15px; }
  .finale-actions { right: 20px; bottom: 5vh; left: 20px; display: grid; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 42px 24px; }
  .foot-brand { grid-column: 1 / 3; }
  .foot-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .001ms !important; }
  [data-fade], .char { opacity: 1 !important; transform: none !important; }
  .pin-scene { height: 100svh; }
}

html.static-mode *, html.static-mode *::before, html.static-mode *::after { animation: none !important; transition: none !important; }
html.static-mode [data-fade], html.static-mode .char { opacity: 1 !important; transform: none !important; }
