/* AquaSentinel landing — tokens from DESIGN.md §7 / §19 */
@font-face { font-family: "Inter"; src: url("assets/fonts/Inter-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url("assets/fonts/Inter-cyrillic.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "AvantGardeCTT"; src: url("assets/fonts/AvantGardeCTT-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "AvantGardeCTT"; src: url("assets/fonts/AvantGardeCTT-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }

:root {
  --brand: #0F2867; --deep: #1D1B93; --support: #6489D4; --data: #00CCFF;
  --ink: #071225; --mist: #F4FAFC; --ice: #EAF6FB; --pale: #EEF4FF;
  --teal: #0EA5A6; --amber: #F59E0B; --risk: #EF4444;
  --line: rgba(15, 40, 103, .12); --muted: #46557a;
  --display: "AvantGardeCTT", "Century Gothic", "Inter", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.6 var(--body); color: var(--ink); background: #fff; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; padding: 0; }
ol, ul { list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid var(--deep); outline-offset: 3px; border-radius: 4px; }
.cta :focus-visible { outline-color: var(--data); }
svg text { font-family: var(--body); }

.defs { position: absolute; }
.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--pad); }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* ---------- type ---------- */
.h2 { font: 700 clamp(2rem, 4.1vw, 3.6rem)/1.06 var(--display); letter-spacing: -.015em; color: var(--brand); max-width: 15em; text-wrap: balance; }
.h2--sm { font-size: clamp(1.6rem, 2.7vw, 2.5rem); }
.h2--inv { color: #fff; }
.h3 { font: 700 clamp(1.35rem, 2.2vw, 2rem)/1.15 var(--display); color: var(--brand); max-width: 22em; text-wrap: balance; }
.lead { font-size: clamp(1rem, 1.25vw, 1.15rem); color: var(--muted); max-width: 34em; }
.lead--inv { color: rgba(255, 255, 255, .8); }
.kicker { display: flex; align-items: center; gap: 12px; font: 600 12px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--brand); margin-bottom: 26px; }
.kicker b { font: 700 12px/1 var(--display); padding: 7px 9px; border: 1.5px solid var(--brand); border-radius: 6px; letter-spacing: .06em; }
.kicker b + span::before { content: ""; display: inline-block; width: 28px; height: 1.5px; background: var(--data); vertical-align: middle; margin-right: 12px; }
.kicker--inv { color: #fff; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 12px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--brand); }
.beacon { width: 9px; height: 9px; border-radius: 50%; background: var(--data); box-shadow: 0 0 0 0 rgba(0, 204, 255, .6); animation: beacon 2s infinite; flex: none; }
@keyframes beacon { to { box-shadow: 0 0 0 12px rgba(0, 204, 255, 0); } }
.dot { width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg); flex: none; display: inline-block; }
.dot--amber { background: var(--amber); } .dot--risk { background: var(--risk); } .dot--teal { background: var(--teal); }
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(40px, 6vw, 80px); }
.sec { padding-block: clamp(88px, 11vw, 168px); position: relative; }

/* word split */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.wi { display: inline-block; will-change: transform; }
.motion [data-split] { visibility: hidden; }
.motion [data-reveal] { opacity: 0; transform: translateY(26px); }
.motion [data-hero-in], .motion [data-hero-chip] { opacity: 0; }

/* ---------- buttons ---------- */
.btn { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 28px; border-radius: 999px; font: 600 15px/1 var(--body); white-space: nowrap; transition: color .35s var(--ease), border-color .35s; }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; transform: translateY(102%); transition: transform .45s var(--ease); }
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn:hover svg { transform: translateX(4px); }
.btn--sm { height: 42px; padding: 0 20px; font-size: 14px; }
.btn--primary { background: var(--brand); color: #fff; } .btn--primary::before { background: var(--data); } .btn--primary:hover, .btn--primary:focus-visible { color: var(--brand); }
.btn--ghost { border: 1.5px solid var(--brand); color: var(--brand); } .btn--ghost::before { background: var(--brand); } .btn--ghost:hover, .btn--ghost:focus-visible { color: #fff; }
.btn--light { background: #fff; color: var(--brand); } .btn--light::before { background: var(--data); }
.btn--line { border: 1.5px solid rgba(255, 255, 255, .45); color: #fff; } .btn--line::before { background: #fff; } .btn--line:hover, .btn--line:focus-visible { color: var(--brand); border-color: #fff; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: transform .5s var(--ease), background .3s, box-shadow .3s; }
.nav.is-stuck { background: rgba(255, 255, 255, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav.is-hidden { transform: translateY(-105%); }
.nav__inner { max-width: 1320px; margin-inline: auto; padding: 12px var(--pad); display: flex; align-items: center; gap: 28px; }
.nav__logo img { height: 52px; width: auto; }
.nav__links { display: flex; gap: clamp(14px, 2.2vw, 34px); margin-left: auto; font: 500 14px/1 var(--body); color: var(--brand); }
.nav__links a { position: relative; padding: 10px 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1.5px; background: var(--data); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav__links a:hover::after, .nav__links a.is-here::after { transform: scaleX(1); transform-origin: left; }
.nav__side { display: flex; align-items: center; gap: 18px; }
.lang { display: flex; align-items: center; gap: 6px; font: 600 13px/1 var(--body); color: var(--support); letter-spacing: .06em; }
.lang button { padding: 8px 4px; color: #5d6f98; }
.lang button[aria-pressed="true"] { color: var(--brand); box-shadow: 0 1.5px 0 var(--data); }
.nav__burger { display: none; width: 42px; height: 42px; position: relative; }
.nav__burger i { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--brand); transition: transform .35s var(--ease), top .35s var(--ease); }
.nav__burger i:first-child { top: 16px; } .nav__burger i:last-child { top: 24px; }
.nav.is-open .nav__burger i:first-child { top: 20px; transform: rotate(45deg); }
.nav.is-open .nav__burger i:last-child { top: 20px; transform: rotate(-45deg); }

/* ---------- mission rail ---------- */
.rail { position: fixed; right: 22px; top: 50%; z-index: 40; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--brand); font: 600 10px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; opacity: 0; transition: opacity .4s, color .3s; pointer-events: none; }
.rail.is-on { opacity: 1; } .rail.is-inv { color: #fff; }
.rail__label { writing-mode: vertical-rl; min-height: 90px; text-align: end; }
.rail__track { position: relative; width: 2px; height: 180px; background: currentColor; opacity: 1; background: color-mix(in srgb, currentColor 18%, transparent); }
.rail__fill { position: absolute; inset: 0; background: var(--data); transform-origin: top; transform: scaleY(var(--sp, 0)); }
.rail__dot { position: absolute; left: 50%; top: calc(var(--sp, 0) * 100%); width: 10px; height: 10px; margin: -5px; border-radius: 3px; background: currentColor; border: 2px solid var(--data); transform: rotate(45deg); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; background: linear-gradient(180deg, #fff 0%, var(--mist) 100%); padding-block: 120px 96px; }
.hero__copy { position: relative; z-index: 2; }
.hero h1 { font: 700 clamp(2.5rem, 5.1vw, 4.6rem)/1.03 var(--display); letter-spacing: -.02em; color: var(--brand); max-width: 10.6em; margin: 22px 0 26px; }
.hero__lead { font-size: clamp(1.02rem, 1.3vw, 1.2rem); color: var(--muted); max-width: 31em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 36px 0 44px; }
.stage { display: flex; flex-wrap: wrap; gap: 14px 40px; padding-top: 22px; border-top: 1px solid var(--line); max-width: 560px; }
.stage dt { font: 600 11px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: #5d6f98; margin-bottom: 8px; }
.stage dd { font: 700 15px/1.3 var(--display); color: var(--brand); }
.hero__visual { position: absolute; inset: 0 0 0 38%; }
.hero__grid { position: absolute; inset: 0; width: 100%; height: 100%; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 36%); mask-image: linear-gradient(90deg, transparent 0, #000 36%); }
/* centred with margins, not a transform: GSAP moves this element and would bake a CSS translate into pixels */
.hero__stage { --w: min(92%, 1040px, (100svh - 150px) * 1.45); position: absolute; top: 53%; left: 54%; width: var(--w); aspect-ratio: 1800 / 1240; margin: calc(var(--w) * -.3444) 0 0 calc(var(--w) * -.5); }
.hero__stage > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__rings { -webkit-mask-image: linear-gradient(90deg, transparent 6%, #000 40%); mask-image: linear-gradient(90deg, transparent 6%, #000 40%); }
@media (max-width: 1180px) { .hero__calls { display: none; } }
.hring { fill: none; stroke: var(--data); stroke-width: 1.5; vector-effect: non-scaling-stroke; opacity: .4; }
.motion .hring { opacity: 0; }
.call path { fill: none; stroke: var(--brand); stroke-width: 1.25; vector-effect: non-scaling-stroke; stroke-dasharray: 1; }
.call circle { fill: var(--data); stroke: #fff; stroke-width: 5; }
.call__t { font: 700 27px var(--display); fill: var(--brand); }
.call__s { font: 500 22px var(--body); fill: #5d6f98; }
.motion .call path { stroke-dashoffset: 1; } .motion .call circle, .motion .call text { opacity: 0; }
.hero__scroll { position: absolute; left: var(--pad); bottom: 28px; z-index: 2; display: flex; align-items: center; gap: 12px; font: 600 11px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.hero__scroll i { width: 1.5px; height: 34px; background: linear-gradient(var(--data), var(--data)) no-repeat top / 100% 40%, var(--line); animation: scrollhint 1.8s var(--ease) infinite; }
@keyframes scrollhint { from { background-position: 0 -14px, 0 0; } to { background-position: 0 34px, 0 0; } }

/* map primitives (shared by hero + scan) */
.map-ticks text { font: 500 10px var(--body); fill: rgba(15, 40, 103, .5); letter-spacing: .08em; }
.river use { fill: none; stroke-linecap: round; }
.river__bank { stroke: #bcd1f1; stroke-width: 198; } .river__w0 { stroke: #eaf4fd; stroke-width: 192; }
.river__w1 { stroke: #dcebfb; stroke-width: 132; } .river__w2 { stroke: #cde1f9; stroke-width: 78; } .river__w3 { stroke: #bfd7f6; stroke-width: 30; }
.river__bank--lg { stroke-width: 218; } .river__w0--lg { stroke-width: 212; } .river__w1--lg { stroke-width: 140; } .river__w2--lg { stroke-width: 64; }
.motion .river[data-river] use { stroke-dasharray: 1; stroke-dashoffset: 1; }
.route { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.route--base { stroke: rgba(15, 40, 103, .38); stroke-width: 1.5; stroke-dasharray: 3 8; }
.route--trail { stroke: var(--brand); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .55; }
.samples circle { fill: #fff; stroke: var(--brand); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.2); transition: opacity .4s, transform .5s var(--ease); }
.samples circle.is-on { opacity: 1; transform: none; } .samples circle.is-hot { fill: var(--amber); stroke: #fff; }
.sonar { fill: none; stroke: var(--data); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: sonar 2.8s ease-out infinite; }
.sonar--2 { animation-delay: 1.4s; }
@keyframes sonar { from { transform: scale(.6); opacity: .9; } to { transform: scale(4.2); opacity: 0; } }
.vessel__tag rect { fill: var(--brand); } .vessel__tag text { font: 600 11px var(--body); fill: #fff; letter-spacing: .08em; }
.anomaly__plume { opacity: .22; transition: opacity .8s; }
.anomaly__ring { fill: none; stroke: var(--amber); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.anomaly__mark { fill: var(--amber); stroke: #fff; stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.2); transition: opacity .3s, transform .5s var(--ease); }
.anomaly__tag { opacity: 0; transition: opacity .4s; }
.anomaly__tag rect { fill: #fff; stroke: var(--amber); stroke-width: 1.5; }
.anomaly__tag text { font: 500 11px var(--body); fill: var(--muted); } .anomaly__tag .t-strong { font-weight: 700; font-size: 12.5px; fill: var(--brand); }
.anomaly.is-on .anomaly__plume { opacity: 1; }
.anomaly.is-on .anomaly__mark { opacity: 1; transform: none; }
.anomaly.is-on .anomaly__tag { opacity: 1; }
.anomaly.is-on .anomaly__ring { animation: sonar 2s ease-out infinite; } .anomaly.is-on .anomaly__ring--2 { animation-delay: 1s; }

.viz-note { position: absolute; right: 18px; bottom: 14px; font: 500 10.5px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: #5d6f98; }

/* ---------- ticker ---------- */
.ticker { border-block: 1px solid var(--line); background: #fff; overflow: hidden; padding: 18px 0; }
.ticker__row { display: flex; width: max-content; gap: 56px; font: 600 12px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: #5d6f98; will-change: transform; }
.ticker__row span { display: flex; gap: 10px; align-items: center; white-space: nowrap; }
.ticker__row span::before { content: ""; width: 6px; height: 6px; background: var(--data); transform: rotate(45deg); margin-right: 6px; }
.ticker__row b { color: var(--brand); font: 700 13px/1 var(--display); letter-spacing: .02em; text-transform: none; }
.ticker__row i { font-style: normal; text-transform: none; }

/* ---------- problem ---------- */
.statement { font: 400 clamp(1.5rem, 3vw, 2.7rem)/1.24 var(--display); color: var(--brand); max-width: 24em; margin: clamp(36px, 5vw, 64px) 0 clamp(56px, 8vw, 110px); }
.sw { transition: none; }
.pgrid { --g: clamp(36px, 4.8vw, 72px); display: grid; grid-template-columns: repeat(3, 1fr); column-gap: var(--g); border-top: 1px solid var(--line); }
.pcard { position: relative; padding: 34px 0 38px; }
.pcard + .pcard::before { content: ""; position: absolute; left: calc(var(--g) / -2); top: 0; bottom: 0; width: 1px; background: var(--line); }
.pcard__n { font: 700 13px/1 var(--display); color: var(--support); letter-spacing: .08em; }
.pcard h3 { font: 700 1.45rem/1.15 var(--display); color: var(--brand); margin: 12px 0 10px; }
.pcard p { color: var(--muted); font-size: .98rem; }
.pcard__meta { display: flex; align-items: center; gap: 10px; margin-top: 20px; font: 600 11.5px/1 var(--body) !important; letter-spacing: .12em; text-transform: uppercase; color: var(--brand) !important; }
.pviz { width: 100%; border-radius: 18px; background: var(--mist); box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 26px; overflow: hidden; }
.pviz text { font: 600 11px var(--body); fill: var(--brand); letter-spacing: .04em; }
.pv-grid { stroke: rgba(15, 40, 103, .08); fill: none; }
.pv-axis { stroke: rgba(15, 40, 103, .45); stroke-width: 1.5; fill: none; }
.pv-days text { fill: #5d6f98; font-weight: 500; text-anchor: middle; }
.pv-link { stroke: rgba(15, 40, 103, .35); stroke-width: 1.5; stroke-dasharray: 3 4; fill: none; }
.pv-lab { fill: rgba(245, 158, 11, .22); stroke: var(--amber); stroke-width: 1.5; }
.pv-sample circle { fill: var(--brand); stroke: #fff; stroke-width: 2.5; }
.pv-report circle { fill: #fff; stroke: var(--brand); stroke-width: 2.5; }
.pv-now { stroke: var(--data); stroke-width: 2; }
.motion .pv-now { animation: pv-now 7s linear infinite; }
@keyframes pv-now { from { transform: translateX(0); } to { transform: translateX(182px); } }
.pviz use { fill: none; stroke-linecap: butt; }
.pv-bank { stroke: #bcd1f1; stroke-width: 82; } .pv-cells { stroke-width: 78; }
.pv-known circle { fill: rgba(0, 204, 255, .14); stroke: var(--data); stroke-width: 1.5; }
.pv-known rect { fill: var(--brand); }
.motion .pv-known circle { transform-box: fill-box; transform-origin: center; animation: pv-pulse 3.2s ease-out infinite; }
@keyframes pv-pulse { 0%, 100% { transform: scale(.8); opacity: 1; } 60% { transform: scale(1.25); opacity: .35; } }
.pv-limit { stroke: var(--risk); stroke-width: 1.5; stroke-dasharray: 5 5; fill: none; }
.pviz .pv-limit-t { fill: #b42323; text-anchor: end; }
.pv-over { fill: rgba(245, 158, 11, .32); }
.pv-line { stroke: var(--brand); stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-dasharray: 1; }
.motion .pv-line { stroke-dashoffset: 1; transition: stroke-dashoffset 2s var(--ease) .3s; } .motion .pcard.is-in .pv-line { stroke-dashoffset: 0; }
.motion .pv-over { opacity: 0; transition: opacity .8s 1.4s; } .motion .pcard.is-in .pv-over { opacity: 1; }
.pv-miss { fill: var(--risk); stroke: #fff; stroke-width: 2; }
.motion .pv-miss { transform-box: fill-box; transform-origin: center; animation: pv-pulse 2.4s ease-out infinite; }
.aside { margin-top: clamp(36px, 5vw, 60px); padding-left: 22px; border-left: 3px solid var(--data); font: 400 clamp(1.05rem, 1.5vw, 1.3rem)/1.4 var(--display); color: var(--brand); max-width: 34em; }

/* ---------- scan (pinned) ---------- */
.scan { position: relative; height: 420vh; background: var(--mist); border-block: 1px solid var(--line); }
.scan__sticky { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.scan__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.steps { margin-top: 30px; display: grid; gap: 4px; }
.steps li { position: relative; display: grid; grid-template-columns: 38px 1fr; gap: 6px; padding: 14px 0 14px 18px; opacity: .38; transition: opacity .5s; }
.steps li::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--line); }
.steps li::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--data); transform: scaleY(0); transform-origin: top; transition: transform .6s var(--ease); }
.steps li.is-active { opacity: 1; } .steps li.is-active::after { transform: none; }
.steps b { font: 700 13px/1.5 var(--display); color: var(--support); }
.steps h3 { font: 700 1.15rem/1.2 var(--display); color: var(--brand); }
.steps p { color: var(--muted); font-size: .95rem; margin-top: 6px; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .6s var(--ease), opacity .4s; }
.steps li.is-active p { max-height: 9em; opacity: 1; }
.scan__stage { position: relative; }
.scan__map { position: relative; aspect-ratio: 900 / 640; border-radius: 28px; overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 40px 90px -40px rgba(15, 40, 103, .4); }
.scan__map > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.manual circle { fill: #fff; stroke: #5d6f98; stroke-width: 2; }
.manual path { stroke: #5d6f98; stroke-width: 2; }
.hud { position: absolute; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: rgba(255, 255, 255, .88); border: 1px solid var(--line); font: 600 10.5px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: #5d6f98; }
.hud b { font: 700 14px/1 var(--display); color: var(--brand); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.hud--tl { top: 16px; left: 16px; } .hud--tr { top: 16px; right: 16px; } .hud--bl { bottom: 16px; left: 16px; }
.hud--scale { left: 16px; bottom: 58px; flex-direction: column; align-items: stretch; gap: 7px; }
.hud--scale i { width: 200px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #CFE0F7, #8DB8EE 22%, #4C97E3 42%, #19C3F0 62.5%, #F59E0B 62.5%, #EF4444); }
.hud--scale em { display: flex; justify-content: space-between; font-style: normal; } .hud--scale em b { font: 600 10px/1 var(--body); color: #5d6f98; letter-spacing: .06em; }
.hud .mk { width: 10px; height: 10px; border-radius: 50%; border: 2px solid #5d6f98; background: #fff; }
.toast { position: absolute; right: 16px; display: flex; gap: 12px; align-items: flex-start; width: min(290px, 70%); padding: 10px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: 0 20px 50px -20px rgba(15, 40, 103, .45); opacity: 0; transform: translateX(24px) scale(.96); transition: opacity .45s, transform .55s var(--ease); }
.toast.is-on { opacity: 1; transform: none; }
.toast .dot { margin-top: 5px; }
.toast b { display: block; font: 700 14px/1.2 var(--display); color: var(--brand); } .toast span { font-size: 12px; line-height: 1.35; color: var(--muted); display: block; margin-top: 3px; }
.toast--alert { bottom: 112px; border-color: rgba(239, 68, 68, .4); } .toast--ok { bottom: 42px; }
.scan .viz-note { right: 18px; bottom: 16px; }

/* ---------- stack (isometric) ---------- */
.stack__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: center; }
.stack .lead { margin-top: 22px; }
.layers { margin-top: 36px; border-bottom: 1px solid var(--line); }
.layers li { position: relative; display: grid; grid-template-columns: 46px 1fr; padding: 18px 16px; border-top: 1px solid var(--line); cursor: default; transition: background .35s, padding .35s var(--ease); }
.layers li::before { content: ""; position: absolute; left: 0; top: -1px; bottom: 0; width: 3px; background: var(--data); transform: scaleY(0); transition: transform .4s var(--ease); }
.layers li.is-active { background: var(--pale); padding-left: 24px; } .layers li.is-active::before { transform: none; }
.layers b { font: 700 13px/1.6 var(--display); color: var(--support); }
.layers h3 { font: 700 1.1rem/1.25 var(--display); color: var(--brand); } .layers p { font-size: .93rem; color: var(--muted); margin-top: 4px; }
.iso-wrap { perspective: 2200px; display: grid; place-items: end center; min-height: 720px; padding-bottom: 80px; }
.iso { --gap: 150; position: relative; width: min(310px, 56vw); aspect-ratio: 1; transform-style: preserve-3d; transform: translateY(20%) rotateX(57deg) rotateZ(-45deg); }
.motion .iso { --gap: 10; }
.iso::before { content: ""; position: absolute; inset: 2%; background: rgba(15, 40, 103, .34); filter: blur(38px); transform: translateZ(-70px); }
.plate { position: absolute; inset: 0; border-radius: 30px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1.5px rgba(15, 40, 103, .2); transform: translateZ(calc(var(--i) * var(--gap) * 1px)); transition: box-shadow .35s, translate .5s var(--ease); }
.plate { --i: 0; } .plate[data-plate="1"] { --i: 1; } .plate[data-plate="2"] { --i: 2; } .plate[data-plate="3"] { --i: 3; }
.plate svg { display: block; width: 100%; height: 100%; }
.plate.is-active { translate: 0 0 22px; box-shadow: 0 0 0 3px var(--data), 0 0 0 9px rgba(0, 204, 255, .2); }
.plate--base { background: var(--brand); }
.pl-grid { stroke: rgba(255, 255, 255, .1); fill: none; } .pl-ring { fill: none; stroke: var(--data); stroke-width: 2; opacity: .55; }
.pl-chips rect { fill: var(--pale); } .pl-chips .on { fill: var(--data); }
.pl-chips text { font: 700 24px var(--display); fill: var(--brand); text-anchor: middle; }
.pl-mark { fill: #fff; stroke: var(--brand); stroke-width: 3; }
.plate .ui { fill: var(--pale); } .plate .ui--a { fill: var(--data); } .plate .ui--b { fill: var(--brand); } .plate .ui--w { fill: rgba(255, 255, 255, .7); } .plate .ui--l { fill: rgba(15, 40, 103, .22); } .plate .ui--warn { fill: var(--amber); }
.pl-api { font: 700 24px var(--display); fill: var(--brand); text-anchor: middle; }
.pl-spark { stroke: var(--brand); stroke-width: 4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.iso__beam { position: absolute; left: 50%; top: 50%; width: 3px; margin-left: -1.5px; height: calc(var(--gap) * 3px); transform-origin: top; transform: rotateX(90deg); background: repeating-linear-gradient(var(--data) 0 8px, transparent 8px 16px); background-size: 100% 16px; animation: beam 1s linear infinite; }
@keyframes beam { to { background-position: 0 -16px; } }

/* ---------- platform / anatomy ---------- */
.anat { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 4vw, 64px); align-items: center; margin-bottom: clamp(64px, 8vw, 120px); }
.anat__list { margin-top: 0; }
.anat__list li { padding-block: 14px; cursor: pointer; }
.anat__stage { position: relative; aspect-ratio: 19 / 18; border-radius: 28px; background: var(--mist); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.anat__stage canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity .8s; touch-action: pan-y; }
.anat__stage[data-state="ready"] canvas { opacity: 1; cursor: grab; }
.anat__stage[data-state="ready"] canvas:active { cursor: grabbing; }
.anat__status, .anat__hint { position: absolute; left: 24px; right: 24px; font: 600 10.5px var(--body); letter-spacing: .14em; text-transform: uppercase; color: #5d6f98; pointer-events: none; }
.anat__status { top: 50%; text-align: center; }
.anat__hint { bottom: 18px; }
.anat__status--fail, .anat__stage[data-state] .anat__status--load { display: none; }
.anat__stage[data-state="failed"] .anat__status--fail { display: block; }
@media (pointer: coarse) { .anat__drag { display: none; } }
.anat__explode { position: absolute; top: 18px; right: 18px; display: none; align-items: center; gap: 10px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: rgba(255, 255, 255, .8); font: 600 13px/1 var(--body); color: var(--brand); transition: background .25s, border-color .25s, color .25s; }
.anat__stage[data-state="ready"] .anat__explode { display: inline-flex; }
.anat__zoom { position: absolute; right: 18px; bottom: 14px; display: none; gap: 8px; }
.anat__stage[data-state="ready"] .anat__zoom { display: flex; }
.anat__zoom button { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: rgba(255, 255, 255, .8); font: 500 20px/1 var(--body); color: var(--brand); transition: border-color .25s, background .25s; }
.anat__zoom button:hover { border-color: var(--brand); background: #fff; }
.anat__hint { right: 124px; }
.anat__explode:hover { border-color: var(--brand); }
.anat__explode[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.anat__explode i { width: 14px; height: 14px; background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat; transition: rotate .4s var(--ease); }
.anat__explode[aria-pressed="true"] i { rotate: 45deg; }

/* ---------- platform / maneuver ---------- */
.mv { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px clamp(24px, 4vw, 64px); }
.mv__tabs { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; }
.mv__tabs button { position: relative; overflow: hidden; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--line); font: 600 14px/1 var(--body); color: var(--brand); transition: background .3s, color .3s, border-color .3s; }
.mv__tabs b { font: 700 11px/1 var(--display); color: var(--support); letter-spacing: .06em; }
.mv__tabs button:hover { border-color: var(--brand); }
.mv__tabs button[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.mv__tabs button[aria-selected="true"] b { color: var(--data); }
.mv__tabs button::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--data); transform: scaleX(0); transform-origin: left; }
.mv.is-auto .mv__tabs button[aria-selected="true"]::after { animation: tabtimer 6s linear forwards; }
@keyframes tabtimer { to { transform: none; } }
.mv__stage { position: relative; border-radius: 28px; background: var(--mist); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.mv__stage svg { width: 100%; height: auto; }
.mv__arc, .mv__ring, .mv__axis, .mv__lane { fill: none; stroke: var(--support); stroke-width: 1.5; stroke-dasharray: 4 7; opacity: 0; transition: opacity .5s; }
.mv__ring { stroke: var(--data); stroke-width: 2; stroke-dasharray: none; }
.mv__current { opacity: 0; transition: opacity .5s; } .mv__current path { stroke: var(--support); stroke-width: 2; stroke-linecap: round; fill: none; stroke-dasharray: 26 200; animation: current 2.6s linear infinite; }
@keyframes current { from { stroke-dashoffset: 226; } to { stroke-dashoffset: 0; } }
[data-mode="transit"] .mv__lane, [data-mode="zero"] .mv__arc, [data-mode="crab"] .mv__axis, [data-mode="anchor"] .mv__ring, [data-mode="anchor"] .mv__current { opacity: 1; }
#scanVessel image, #mvVessel image { filter: drop-shadow(0 3px 5px rgba(15, 40, 103, .45)); }
.jet > g { transition: opacity .35s; }
.jet path { fill: url(#jetGrad); transform-origin: 0 0; }
.motion .jet path { animation: jet .42s ease-in-out infinite alternate; }
@keyframes jet { from { transform: scaleX(.78); } to { transform: scaleX(1.08); } }
.mv__caption { position: absolute; left: 22px; right: 22px; bottom: 18px; font: 400 clamp(.92rem, 1.2vw, 1.05rem)/1.35 var(--display); color: var(--brand); max-width: 30em; min-height: 2.7em; }
.mv__badge { position: absolute; top: 18px; right: 18px; padding: 8px 12px; border-radius: 8px; background: var(--brand); color: #fff; font: 600 11px/1 var(--body); letter-spacing: .08em; opacity: 0; transform: translateY(-8px); transition: opacity .4s, transform .4s var(--ease); }
[data-mode="anchor"] .mv__badge { opacity: 1; transform: none; }
.specs { display: grid; grid-template-columns: 1fr 1fr; align-content: center; }
.specs div { padding: 18px 0; border-top: 1px solid var(--line); }
.specs dt { font: 600 11px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: #5d6f98; margin-bottom: 10px; }
.specs dd { font: 700 clamp(1.5rem, 2.3vw, 2.1rem)/1 var(--display); color: var(--brand); font-variant-numeric: tabular-nums; }
.specs small { font: 500 .85rem/1 var(--body); color: var(--muted); }
.mv__note { grid-column: 1 / -1; font-size: .85rem; color: #5d6f98; }

.proof { margin-top: clamp(72px, 9vw, 130px); background: var(--brand); color: #fff; padding-block: clamp(64px, 8vw, 110px); position: relative; overflow: hidden; }
.proof::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 80px 80px, linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 80px 80px; }
.proof .wrap { position: relative; }
.proof__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 48px); }
.proof__grid > div { border-top: 1px solid rgba(255, 255, 255, .22); padding-top: 24px; }
.proof strong { display: flex; align-items: baseline; gap: 6px; font: 700 clamp(3rem, 6.2vw, 5.6rem)/1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.proof strong small { font-size: .38em; color: var(--data); letter-spacing: 0; }
.proof__grid p { margin-top: 16px; font-size: .95rem; color: rgba(255, 255, 255, .78); max-width: 22em; }
.proof__foot { margin-top: clamp(40px, 5vw, 64px) !important; font: 400 clamp(1.05rem, 1.6vw, 1.4rem)/1.35 var(--display) !important; color: #fff !important; max-width: 32em !important; padding-left: 22px; border-left: 3px solid var(--data); }
.platform { padding-bottom: 0; }

/* ---------- use cases ---------- */
.urows { border-top: 1px solid var(--line); }
.urow { display: grid; grid-template-columns: 56px minmax(0, 1.05fr) minmax(0, 1.5fr) auto; gap: clamp(16px, 3vw, 56px); align-items: center; padding: 30px 0; border-bottom: 1px solid var(--line); }
.urow b { font: 700 13px/1 var(--display); color: var(--support); letter-spacing: .08em; }
.urow h3 { font: 700 clamp(1.3rem, 2.1vw, 1.85rem)/1.15 var(--display); color: var(--brand); transition: translate .5s var(--ease); }
.urow:hover h3 { translate: 12px 0; }
.urow p { color: var(--muted); max-width: 36em; }
.urow__link { display: inline-flex; align-items: center; gap: 8px; font: 600 13px/1 var(--body); color: var(--brand); padding: 6px 0; border-bottom: 1.5px solid var(--data); white-space: nowrap; }
.urow__link svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); }
.urow__link:hover svg, .urow:hover .urow__link svg { transform: translateX(4px); }

/* ---------- investors ---------- */
.invest { background: var(--mist); border-block: 1px solid var(--line); }
.market { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: clamp(28px, 6vw, 96px); align-items: center; }
.market__rings { width: 100%; overflow: visible; }
.ring { fill: none; stroke-width: 2; stroke-dasharray: 1; transform-box: fill-box; transform-origin: center; rotate: -90deg; }
.motion .ring { stroke-dashoffset: 1; }
.ring--1 { stroke: var(--support); } .ring--2 { stroke: var(--deep); fill: rgba(100, 137, 212, .08); } .ring--3 { stroke: var(--data); stroke-width: 3; fill: rgba(0, 204, 255, .16); }
.ring-ticks { fill: none; stroke: var(--brand); stroke-width: 10; stroke-dasharray: 1 16; opacity: .22; transform-box: fill-box; transform-origin: center; animation: spin 80s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.market__rings text { font: 700 15px var(--display); fill: #5d6f98; text-anchor: middle; letter-spacing: .1em; } .market__rings text.on { fill: var(--brand); }
.market__list li { display: grid; grid-template-columns: 76px 1fr; padding: 22px 0; border-top: 1px solid var(--line); }
.market__list li:last-child { border-bottom: 1px solid var(--line); }
.market__list b { font: 700 14px/1.7 var(--display); color: var(--support); letter-spacing: .1em; }
.market__list .is-on b { color: var(--brand); }
.market__list h3 { font: 700 1.3rem/1.2 var(--display); color: var(--brand); } .market__list p { color: var(--muted); font-size: .96rem; margin-top: 4px; }
.model { margin-top: clamp(64px, 8vw, 120px); }
.model__cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); margin-top: 36px; }
.model__tag { font: 600 11.5px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--deep); padding-bottom: 14px; border-bottom: 2px solid var(--brand); }
.model__col li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .98rem; }
.model__col b { font: 700 1.05rem/1 var(--display); color: var(--brand); white-space: nowrap; font-variant-numeric: tabular-nums; }
.model__col b i { font: 500 .78rem/1 var(--body); color: #5d6f98; }
.ltv { display: grid; grid-template-columns: 1fr auto 1fr auto 1.2fr; align-items: stretch; gap: 14px; margin: 36px 0 16px; }
.ltv > div { padding: 22px 24px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.ltv > div > span { display: block; font: 600 11px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: #5d6f98; margin-bottom: 14px; }
.ltv strong { font: 700 clamp(1.6rem, 3vw, 2.6rem)/1 var(--display); color: var(--brand); font-variant-numeric: tabular-nums; }
.ltv__op { align-self: center; font: 400 1.8rem/1 var(--display); color: var(--support); font-style: normal; }
.ltv .ltv__sum { background: var(--brand); border-color: var(--brand); } .ltv .ltv__sum > span { color: rgba(255, 255, 255, .75); } .ltv__sum strong { color: #fff; }

/* ---------- roadmap ---------- */
.track { --p: 1; position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(14px, 2vw, 32px); padding-top: 54px; }
.motion .track { --p: 0; }
.track__plan, .track__done { position: absolute; left: 0; top: 11px; height: 2px; }
.track__plan { right: 0; background: repeating-linear-gradient(90deg, var(--support) 0 8px, transparent 8px 16px); clip-path: inset(-4px calc(100% - var(--p) * 100%) -4px 0); }
.track__done { width: 10%; background: var(--brand); }
.track__boat img { display: block; width: 100%; height: auto; }
.track__boat { position: absolute; top: -8px; left: calc(var(--p) * 100%); width: 58px; margin-left: -29px; filter: drop-shadow(0 6px 10px rgba(15, 40, 103, .3)); }
.track li { position: relative; padding-top: 36px; transition: opacity .5s; }
.motion .track li { opacity: .3; } .motion .track li.is-reached { opacity: 1; }
.track .node { position: absolute; top: -51px; left: 0; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--support); transition: background .4s, border-color .4s; }
.track li.is-reached .node { border-color: var(--brand); }
.track li.is-current .node { background: var(--data); border-color: var(--brand); animation: beacon 2s infinite; }
.track__tag { position: absolute; top: 0; left: 0; padding: 6px 10px; border-radius: 6px; background: var(--brand); color: #fff; font: 600 10.5px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; }
.track b { display: block; font: 700 13px/1 var(--display); color: var(--support); letter-spacing: .08em; }
.track h3 { font: 700 1.2rem/1.2 var(--display); color: var(--brand); margin: 10px 0 8px; } .track p { font-size: .93rem; color: var(--muted); }
.ask { margin-top: clamp(56px, 7vw, 96px); display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; padding: clamp(28px, 4vw, 52px); border-radius: 28px; background: var(--pale); border: 1px solid var(--line); }
.ask__sum > span { font: 600 12px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--deep); }
.ask__sum strong { display: block; font: 700 clamp(3rem, 7vw, 6rem)/1 var(--display); letter-spacing: -.02em; color: var(--brand); margin: 14px 0 12px; font-variant-numeric: tabular-nums; }
.ask__sum p { color: var(--muted); max-width: 24em; }
.ask__gets li { display: flex; align-items: center; gap: 14px; padding: 15px 0; border-top: 1px solid var(--line); font: 700 1.05rem/1.2 var(--display); color: var(--brand); }
.ask__gets li:last-child { border-bottom: 1px solid var(--line); }
.ask__gets li::before { content: ""; width: 9px; height: 9px; background: var(--data); border: 1.5px solid var(--brand); transform: rotate(45deg); flex: none; }

/* ---------- CTA + footer ---------- */
.cta { position: relative; background: var(--brand); color: #fff; overflow: hidden; padding-top: clamp(88px, 11vw, 160px); }
.cta__bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cta__rings circle { fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: 1.5; }
.cta__sweep { fill: rgba(0, 204, 255, .14); transform-origin: 0 0; animation: spin 10s linear infinite; }
.cta__inner { position: relative; }
.cta__logo { width: clamp(220px, 24vw, 320px); height: auto; margin-bottom: clamp(40px, 6vw, 72px); }
.cta .lead { margin-top: 24px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.team { margin-top: clamp(56px, 7vw, 96px); padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .18); display: grid; grid-template-columns: 1fr 1.6fr; gap: 24px 48px; }
.team p { font: 400 1.1rem/1.4 var(--display); max-width: 20em; }
.team ul { display: flex; flex-wrap: wrap; gap: 10px; align-content: flex-start; }
.team li { padding: 10px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .28); font: 500 13px/1 var(--body); color: rgba(255, 255, 255, .88); }
.foot { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: clamp(56px, 7vw, 96px); padding-block: 26px; border-top: 1px solid rgba(255, 255, 255, .18); font-size: .85rem; color: rgba(255, 255, 255, .72); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot a { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .3); text-underline-offset: 4px; }
.foot a:hover { color: #fff; text-decoration-color: var(--data); }

/* ---------- legal pages ---------- */
.legal { max-width: 780px; margin-inline: auto; padding: 140px var(--pad) 96px; }
.legal h1 { font: 700 clamp(2.2rem, 5vw, 3.4rem)/1.05 var(--display); letter-spacing: -.015em; color: var(--brand); margin: 18px 0 14px; }
.legal h2 { font: 700 1.45rem/1.2 var(--display); color: var(--brand); margin: 56px 0 14px; padding-top: 28px; border-top: 1px solid var(--line); }
.legal h3 { font: 700 1.05rem/1.3 var(--display); color: var(--brand); margin: 26px 0 8px; }
.legal p, .legal li { color: #2b3857; } .legal p { margin-bottom: 14px; }
.legal ul { list-style: none; margin-bottom: 14px; } .legal ul li { position: relative; padding-left: 22px; margin-bottom: 8px; }
.legal ul li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; background: var(--data); border: 1px solid var(--brand); transform: rotate(45deg); }
.legal a { color: var(--deep); text-decoration: underline; text-underline-offset: 3px; }
.legal code { font-size: .9em; padding: 2px 6px; border-radius: 5px; background: var(--pale); color: var(--brand); }
.legal__meta { font-size: .9rem; color: #5d6f98; }
.legal-nav__back { margin-left: auto; font: 500 14px/1 var(--body); color: var(--brand); }

.motion .model__col li, .motion [data-ltv] > *, .motion .ask__gets li { opacity: 0; }
.model__col li { transition: background .3s, padding .3s var(--ease); }
.model__col li:hover { background: #fff; padding-inline: 12px; }

/* ---------- contact dialog ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
html:has(dialog[open]) { overflow: hidden; }
dialog.lead { width: min(640px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 28px; background: #fff; color: var(--ink); overflow: auto; box-shadow: 0 60px 120px -40px rgba(7, 18, 37, .6); }
dialog.lead::backdrop { background: rgba(7, 18, 37, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
dialog.lead[open] { animation: lead-in .5s var(--ease); } dialog.lead[open]::backdrop { animation: lead-fade .35s ease-out; }
@keyframes lead-in { from { opacity: 0; transform: translateY(28px) scale(.96); } }
@keyframes lead-fade { from { opacity: 0; } }
.lead__body, .lead__done { padding: clamp(26px, 5vw, 44px); }
.lead__body[hidden], .lead__done[hidden] { display: none; }
dialog.lead .kicker { margin-bottom: 16px; }
.lead__close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--brand); transition: background .25s, rotate .35s var(--ease); }
.lead__close:hover { background: var(--pale); rotate: 90deg; }
.lead__close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
dialog.lead form { display: grid; gap: 16px; margin-top: 24px; }
.lead__intent { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lead__intent label { position: relative; cursor: pointer; }
.lead__intent input { position: absolute; opacity: 0; inset: 0; }
.lead__intent span { display: block; padding: 11px 16px; border-radius: 999px; border: 1.5px solid var(--line); font: 600 13.5px/1 var(--body); color: var(--brand); transition: background .25s, color .25s, border-color .25s; }
.lead__intent label:hover span { border-color: var(--brand); }
.lead__intent input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.lead__intent input:focus-visible + span { outline: 2px solid var(--deep); outline-offset: 3px; }
.lead__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; }
.field > span { font: 600 11.5px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: #5d6f98; }
.field small { font-size: 1em; font-weight: 500; letter-spacing: .04em; text-transform: none; opacity: .8; }
.field input, .field textarea { width: 100%; padding: 13px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--mist); font: 400 16px/1.4 var(--body); color: var(--ink); resize: vertical; transition: border-color .25s, background .25s, box-shadow .25s; }
.field input:hover, .field textarea:hover { border-color: var(--support); }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(0, 204, 255, .22); }
dialog.lead.was-tried .field :invalid { border-color: var(--risk); }
.lead__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead__error { padding: 12px 14px; border-radius: 12px; background: #fef2f2; border: 1px solid rgba(239, 68, 68, .5); color: #8f1d1d; font-size: .92rem; }
.lead__error[hidden] { display: none; }
.lead__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 6px; }
.lead__legal { flex: 1 1 200px; font-size: .82rem; line-height: 1.45; color: #5d6f98; }
.lead__legal a { color: var(--deep); text-decoration: underline; text-underline-offset: 3px; }
dialog.lead.is-sending [data-lead-submit] { opacity: .6; pointer-events: none; }
dialog.lead.is-sending [data-lead-submit] svg { animation: lead-send .7s var(--ease) infinite; }
@keyframes lead-send { to { transform: translateX(8px); opacity: 0; } }
.lead__done { text-align: center; } .lead__done:focus { outline: 0; }
.lead__done p { color: var(--muted); max-width: 26em; margin: 12px auto 26px; }
.lead__check { width: 72px; height: 72px; margin: 6px auto 22px; fill: none; stroke: var(--brand); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.lead__check circle { stroke: var(--data); }
.lead__check circle, .lead__check path { stroke-dasharray: 1; animation: lead-draw .7s var(--ease) both; }
.lead__check path { animation-delay: .35s; }
@keyframes lead-draw { from { stroke-dashoffset: 1; } }

/* ---------- no-motion / no-JS fallbacks ---------- */
html:not(.motion) .scan { height: auto; padding-block: 88px; }
html:not(.motion) .scan__sticky { position: static; height: auto; }
html:not(.motion) .steps li { opacity: 1; } html:not(.motion) .steps p { max-height: none; opacity: 1; }
html:not(.motion) .route--trail { stroke-dashoffset: 0; }
html:not(.motion) .toast { opacity: 1; transform: none; }
html:not(.motion) .anomaly__mark, html:not(.motion) .anomaly__tag, html:not(.motion) .anomaly__plume { opacity: 1; transform: none; }
html:not(.motion) .hero__scroll { display: none; }
html:not(.motion) { scroll-behavior: auto; }
html.reduced *, html.reduced *::before, html.reduced *::after { animation: none !important; transition: none !important; }
.motion-opt { position: fixed; left: 16px; bottom: 16px; z-index: 60; display: none; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 30px -14px rgba(15, 40, 103, .5); font: 500 12.5px/1 var(--body); color: var(--muted); }
.motion-opt b { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
html.reduced .motion-opt { display: inline-flex; }

/* ---------- responsive ---------- */
@media (max-height: 780px) { .hero__scroll { display: none; } }
@media (max-width: 1279px) { .rail { display: none; } }
@media (max-width: 1080px) {
  .urow { grid-template-columns: 40px 1fr; row-gap: 10px; align-items: start; padding: 24px 0; } .urow p, .urow__link { grid-column: 2; justify-self: start; }
  .proof__grid { grid-template-columns: 1fr 1fr; }
  .mv { grid-template-columns: 1fr; } .specs { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 980px) {
  .nav__burger { display: block; }
  .nav__side .btn { display: none; }
  .nav__links { position: fixed; inset: 0; z-index: -1; margin: 0; flex-direction: column; justify-content: center; gap: 6px; padding: 96px var(--pad) 40px; background: #fff; font: 700 clamp(1.8rem, 7vw, 2.6rem)/1.1 var(--display); opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; }
  .nav.is-open { transform: none !important; }
  .nav__side { margin-left: auto; }
  .split, .stack__grid, .market, .model__cols, .ask, .team, .anat { grid-template-columns: 1fr; }
  .anat__stage { order: -1; }
  .split { align-items: start; }
  .hero { flex-direction: column; align-items: stretch; padding-block: 112px 0; }
  .hero__visual { position: relative; inset: auto; height: min(78vw, 520px); margin-top: 12px; }
  .hero__grid { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 30%); mask-image: linear-gradient(180deg, transparent 0, #000 30%); }
  .hero__stage { --w: min(124%, 760px); top: 50%; left: 50%; }
  .hero__scroll, .hero__calls { display: none; }
  .scan__grid { grid-template-columns: 1fr; gap: 18px; } .scan__stage { order: -1; }
  .scan .kicker { margin-bottom: 12px; } .scan .h2 { font-size: clamp(1.3rem, 5.2vw, 1.9rem); }
  .steps { margin-top: 14px; } .steps li { display: none; padding-block: 6px; } .steps li.is-active { display: grid; }
  html:not(.motion) .steps li { display: grid; }
  .toast { width: min(250px, 72%); padding: 10px 12px; } .toast--alert { bottom: 96px; } .toast--ok { bottom: 36px; }
  .hud--bl { display: none; }
  .iso-wrap { min-height: 700px; }
  .pgrid { grid-template-columns: 1fr; } .pcard { border-bottom: 1px solid var(--line); } .pcard + .pcard::before { display: none; }
  .track { grid-template-columns: 1fr; padding: 0 0 0 44px; gap: 34px; }
  .track__plan, .track__done { left: 8px; top: 0; right: auto; width: 2px; }
  .track__plan { bottom: 0; height: auto; background: repeating-linear-gradient(180deg, var(--support) 0 8px, transparent 8px 16px); clip-path: inset(0 -4px calc(100% - var(--p) * 100%) -4px); }
  .track__done { height: 10%; }
  .track__boat { left: 9px; top: calc(var(--p) * 100%); margin: -18px 0 0 -26px; rotate: 90deg; }
  .track li { padding-top: 0; } .track__tag { position: static; display: inline-block; margin-bottom: 10px; }
  .track .node { left: -44px; top: 2px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .proof__grid { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr 1fr; }
  .ltv { grid-template-columns: 1fr; } .ltv__op { justify-self: center; }
  .btn { height: 50px; padding: 0 22px; } .hero__actions .btn, .cta__actions .btn, .lead__foot .btn { width: 100%; }
  .lead__row { grid-template-columns: 1fr; } .lead__intent span { padding: 10px 13px; font-size: 13px; }
  .mv__tabs button { height: 42px; padding: 0 14px; font-size: 13px; }
  .mv__caption { position: static; padding: 0 16px 16px; }
  .market__list li { grid-template-columns: 60px 1fr; }
  .nav__logo img { height: 44px; }
}
.cta--slim { padding-top: 0; } .cta--slim .foot { margin-top: 0; border-top: 0; }

/* phone: the map keeps its room, the notices shrink to one line each */
@media (max-width: 620px) {
  .hud--scale, .scan .viz-note { display: none; }
  .toast { width: auto; max-width: 62%; right: 8px; padding: 7px 10px; gap: 8px; border-radius: 10px; }
  .toast span { display: none; } .toast b { font-size: 12px; } .toast .dot { margin-top: 3px; }
  .toast--alert { bottom: 40px; } .toast--ok { bottom: 8px; }
  .anat__explode { top: 12px; right: 12px; height: 36px; padding: 0 12px; }
  .anat__hint { left: 14px; right: 14px; bottom: 12px; font-size: 9.5px; }
}

@media (max-width: 980px) { .hero .map-ticks { display: none; } }
