/* ============================================================
   RIoT IO — Worlds
   A scroll-driven journey: one WebGL particle field (js/worlds.js)
   re-forms into a new world for every chapter. Dark only — the
   particles are light, so they need the night to glow in.
   ============================================================ */

/* Stand-ins for the web fonts while they download: Arial resized to the same
   widths and heights, so nothing re-wraps or jumps when the real fonts arrive
   (measured against Space Grotesk and Inter; the bold display size is tuned so
   the hero headline wraps the same at every screen size, keeping layout shift near zero). */
@font-face { font-family: "Space Grotesk Fallback"; src: local("Arial"), local("ArialMT"); font-weight: 100 600; size-adjust: 107.83%; ascent-override: 90.88%; descent-override: 26.89%; line-gap-override: 0%; }
@font-face { font-family: "Space Grotesk Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"); font-weight: 601 900; size-adjust: 106.5%; ascent-override: 92.02%; descent-override: 27.23%; line-gap-override: 0%; }
@font-face { font-family: "Inter Fallback"; src: local("Arial"), local("ArialMT"); font-weight: 100 450; size-adjust: 106.58%; ascent-override: 91.01%; descent-override: 22.52%; line-gap-override: 0%; }
@font-face { font-family: "Inter Fallback"; src: local("Arial"), local("ArialMT"); font-weight: 451 550; size-adjust: 107.66%; ascent-override: 90.1%; descent-override: 22.29%; line-gap-override: 0%; }
@font-face { font-family: "Inter Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"); font-weight: 551 900; size-adjust: 101.15%; ascent-override: 95.9%; descent-override: 23.73%; line-gap-override: 0%; }

:root {
  --bg: #07080F;
  --navy-950: #0D0F18;
  --navy-900: #13162A;
  --navy-800: #1A1D2E;
  --navy-500: #4A4F72;
  --gold-200: #ECDF9E;
  --gold-300: #E0CC72;
  --gold-500: #C4A32E;
  --gold-600: #A68A26;
  --cyan: #4FD1FF;
  --green: #4ADE80;
  --warn: #FFA94F;
  --text: #F4F5F8;
  --text-2: #B7BCD4;
  --text-3: #8B90B0;
  --line: rgba(255,255,255,.12);
  --accent: var(--gold-300);
  --accent-2: var(--gold-500);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --font-display: "Space Grotesk", "Space Grotesk Fallback", system-ui, sans-serif;
  --font-body: "Inter", "Inter Fallback", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --gutter: clamp(20px, 7vw, 128px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html {
  background: var(--bg);
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--gold-300); outline-offset: 4px; border-radius: 6px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
svg.i {
  width: 16px; height: 16px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- the stage ---------- */
#stage {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100vh; height: 100lvh;
  z-index: 0; display: block; pointer-events: none;
}
/* no WebGL: a still night sky keeps the page beautiful and fully readable */
html.no-webgl #stage { display: none; }
html.no-webgl body {
  background:
    radial-gradient(60% 50% at 75% 35%, rgba(196,163,46,.16), transparent 70%),
    radial-gradient(50% 40% at 20% 80%, rgba(79,209,255,.08), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}
main, .topbar, .rail, .hud, .anchors, .progress { position: relative; z-index: 2; }

/* ---------- top bar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px var(--gutter);
  padding-top: max(20px, env(safe-area-inset-top));
  background: linear-gradient(to bottom, rgba(7,8,15,.78), rgba(7,8,15,0));
}
.brand img { height: 30px; width: auto; }
.top-links { display: flex; align-items: center; gap: 28px; }
.top-link {
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-2); transition: color .3s;
}
.top-link:hover { color: var(--text); }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  font-size: .84rem; font-weight: 600;
  color: var(--navy-900);
  background: linear-gradient(100deg, var(--gold-200), var(--gold-300) 40%, var(--gold-500));
  box-shadow: 0 0 0 1px rgba(224,204,114,.35), 0 8px 30px rgba(196,163,46,.18);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.pill:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(224,204,114,.6), 0 12px 40px rgba(196,163,46,.32); }
.pill svg.i { width: 14px; height: 14px; }

/* ---------- chapter rail (desktop) ---------- */
.rail {
  position: fixed; z-index: 30;
  right: clamp(14px, 2vw, 34px); top: 50%; transform: translateY(-50%);
}
.rail ol { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.rail a {
  display: flex; align-items: center; justify-content: flex-end; gap: 12px;
  padding: 6px 0;
  font-family: var(--font-mono); font-size: .62rem; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(183,188,212,.55);
  transition: color .4s;
}
.rail-label {
  opacity: 0; transform: translateX(8px);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
  white-space: nowrap;
}
.rail-n { opacity: .7; }
.rail-tick { width: 14px; height: 1px; background: currentColor; transition: width .6s var(--ease); }
.rail a:hover, .rail a:focus-visible { color: var(--text); }
.rail a:hover .rail-label, .rail a:focus-visible .rail-label, .rail a.on .rail-label { opacity: 1; transform: none; }
.rail a.on { color: var(--gold-300); }
.rail a.on .rail-tick { width: 34px; }

/* mobile progress line */
.progress {
  position: fixed; z-index: 31; left: 0; right: 0; top: 0; height: 2px;
  display: none; pointer-events: none;
}
.progress i {
  display: block; height: 100%; width: 100%;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--gold-500), var(--gold-200));
}

/* ---------- HUD ---------- */
.hud {
  position: fixed; z-index: 30;
  left: var(--gutter); right: var(--gutter); bottom: 22px;
  bottom: max(22px, env(safe-area-inset-bottom));
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-3);
  pointer-events: none;
}
.rail, .hud { transition: opacity .6s var(--ease); }
.at-end .rail, .at-end .hud { opacity: 0; pointer-events: none; }
.at-end .rail a { visibility: hidden; transition: visibility 0s .6s; }
.hud-left { display: flex; gap: 18px; align-items: center; min-width: 0; }
.hud-world { color: var(--gold-300); white-space: nowrap; }
.hud-readout { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud-live { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 12px var(--cyan);
  animation: blink 1.8s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: .3; } }

/* labels that ride on points inside a world (positioned by worlds.js) */
.anchors { position: fixed; inset: 0; z-index: 3; pointer-events: none; }
.anchor {
  position: absolute; left: 0; top: 0;
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text); white-space: nowrap;
  opacity: 0; will-change: transform, opacity;
}
.anchor::before {
  content: ""; display: inline-block; width: 18px; height: 1px; margin-right: 8px;
  vertical-align: middle; background: currentColor; opacity: .6;
}
.anchor.a-below { transform-origin: 50% 0; }
.anchor.a-left::before { display: none; }
.anchor.a-left::after {
  content: ""; display: inline-block; width: 18px; height: 1px; margin-left: 8px;
  vertical-align: middle; background: currentColor; opacity: .6;
}
.anchor.a-below::before { display: none; }
.anchor.c-cyan { color: var(--cyan); }
.anchor.c-silver { color: #C0C4D8; }
.anchor.c-green { color: var(--green); }
.anchor.c-gold { color: var(--gold-300); }

/* ---------- chapters ---------- */
.world { position: relative; height: calc(var(--len, 180) * 1vh); }
.pin {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  display: flex; align-items: center;
  padding: 104px var(--gutter) 84px;
  overflow: hidden;
}
.panel { position: relative; width: min(600px, 100%); }
.panel.right { margin-left: auto; margin-right: clamp(0px, 5vw, 96px); }
.panel.center { margin: 0 auto; text-align: center; }
/* a soft pool of night behind the words, so particles never fight the copy */
.panel::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  inset: -22% -34% -22% -40%;
  background: radial-gradient(closest-side, rgba(7,8,15,.74), rgba(7,8,15,.42) 55%, rgba(7,8,15,0));
}
.panel.center::before { inset: -40% -20%; }

#gateway           { --accent: #FFD592; --accent-2: #FFA94F; }
#hdv-two-way-comm  { --accent: #FFE2A8; --accent-2: #FFA94F; }
#asset-tracking    { --accent: #A6EBFF; --accent-2: #4FD1FF; }
#environmental-tag { --accent: #BDEFFF; --accent-2: #4FD1FF; }
#platform          { --accent: #A6EBFF; --accent-2: #4FD1FF; }

.chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 16px; margin-bottom: 30px;
  border-radius: 999px; border: 1px solid var(--line);
  background: rgba(13,15,24,.5);
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-2);
}
.chip-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  margin-bottom: 26px;
  font-family: var(--font-mono); font-size: .7rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; opacity: .8; }

.display {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 5.2rem);
  line-height: 1.02; letter-spacing: -.038em;
  text-wrap: balance;
}
.display-xl { font-size: clamp(2.8rem, 6.4vw, 6.9rem); line-height: .97; letter-spacing: -.045em; }
.display.long { font-size: clamp(2.2rem, 4.1vw, 4.3rem); line-height: 1.04; }
.hi {
  background: linear-gradient(100deg, #FFFFFF 0%, var(--accent) 45%, var(--accent-2) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.lede {
  margin-top: 26px; max-width: 31em;
  font-size: clamp(1rem, 1.15vw, 1.13rem);
  color: var(--text-2);
}
.lede.small { font-size: .92rem; color: var(--text-3); }
.lede strong { color: var(--text); font-weight: 600; }

/* product actions */
.pcta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 24px; }
.btn-sm { padding: 11px 18px; font-size: .86rem; }
.plink {
  font-size: .86rem; font-weight: 600; color: var(--text);
  border-bottom: 1px solid rgba(255,255,255,.3); padding-bottom: 2px;
  transition: color .2s, border-color .2s;
}
.plink::after { content: " →"; }
.plink.ext::after { content: " ↗"; }
.plink:hover { color: var(--gold-200); border-color: var(--gold-300); }
.build-terms {
  font-family: var(--font-mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-3);
}

.ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 0; cursor: pointer;
  font-family: var(--font-body); font-size: .94rem; font-weight: 600;
  transition: transform .35s var(--ease), box-shadow .35s, background .3s;
}
.btn-gold {
  color: var(--navy-900);
  background: linear-gradient(100deg, var(--gold-200), var(--gold-300) 35%, var(--gold-500) 75%, var(--gold-600));
  box-shadow: 0 10px 40px rgba(196,163,46,.25);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 50px rgba(196,163,46,.4); }
.btn-ghost {
  color: var(--text);
  background: rgba(255,255,255,.04);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16);
}
.btn-ghost:hover { background: rgba(255,255,255,.09); }
.btn-full { width: 100%; justify-content: center; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.tag {
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(10,12,20,.62);
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-2);
}

.steps {
  list-style: none; margin-top: 30px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  background: var(--line);
}
.steps li {
  padding: 14px 14px 16px; background: rgba(10,12,20,.72);
  font-size: .82rem; font-weight: 500; line-height: 1.35; color: var(--text);
}
.steps.five { grid-template-columns: repeat(5, 1fr); }
.steps b {
  display: block; margin-bottom: 6px;
  font-family: var(--font-mono); font-size: .62rem; font-weight: 500; letter-spacing: .16em;
  color: var(--gold-300);
}

.bigstat { margin-top: 30px; display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.bigstat b {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(3.4rem, 7vw, 6.4rem); line-height: .9; letter-spacing: -.045em;
  background: linear-gradient(100deg, #FFF3D6, var(--accent) 50%, var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.bigstat span {
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-2);
}

.stat-row { display: flex; flex-wrap: wrap; gap: 18px clamp(26px, 4vw, 56px); margin-top: 34px; }
.stat b {
  display: block;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.1rem, 3.6vw, 3.3rem); line-height: 1; letter-spacing: -.035em;
}
.stat span {
  display: block; margin-top: 8px;
  font-family: var(--font-mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-3);
}

.marquee {
  position: absolute; left: 0; right: 0; bottom: 70px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.marquee-label {
  font-family: var(--font-mono); font-size: .62rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--text-3);
}
.marquee-viewport {
  width: 100%; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}
.marquee-track { display: flex; gap: 72px; width: max-content; animation: marquee 34s linear infinite; }
.marquee-track span {
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  letter-spacing: .22em; text-transform: uppercase;
  color: rgba(244,245,248,.42);
}
@keyframes marquee { to { transform: translateX(calc(-50% - 36px)); } }
.trusted-inline {
  display: none; margin-top: 18px;
  font-family: var(--font-mono); font-size: .62rem; line-height: 1.8; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-3);
}

.protos { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.proto {
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid currentColor; background: rgba(10,12,20,.62);
  font-family: var(--font-display); font-weight: 700; font-size: .78rem; letter-spacing: .14em;
}
.p-mqtt { color: var(--cyan); }
.p-http { color: #C0C4D8; }
.p-https { color: var(--green); }
.p-udp { color: var(--gold-300); }
.lock {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 22px;
  font-size: .88rem; color: #9BE8B7;
}
.lock svg.i { color: var(--green); }

/* multi-world chapters: one list, several worlds — the active item follows the scroll */
.sub-list { list-style: none; margin-top: 26px; border-top: 1px solid var(--line); }
.sub { border-bottom: 1px solid var(--line); }
.sub button {
  width: 100%; display: flex; align-items: baseline; gap: 18px;
  padding: 13px 0 11px; border: 0; background: none; cursor: pointer; text-align: left;
  font: inherit; color: var(--text-3);
  transition: color .45s var(--ease);
}
.sub button:hover { color: var(--text-2); }
.sub-n { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .16em; min-width: 20px; transition: color .45s; }
.sub-name { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.1rem, 1.5vw, 1.4rem); letter-spacing: -.02em; }
.sub-desc {
  max-height: 0; opacity: 0; overflow: hidden;
  padding-left: 38px; font-size: .9rem; line-height: 1.55; color: var(--text-2);
  transition: max-height .7s var(--ease), opacity .5s, padding-bottom .7s var(--ease);
}
.sub.on button { color: var(--text); }
.sub.on .sub-n { color: var(--sa, var(--gold-300)); }
.sub.on .sub-desc { max-height: 10em; opacity: 1; padding-bottom: 14px; }
.sub-desc p { margin: 0; }
.pchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px !important; }
.pchips span {
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid rgba(224,204,114,.32); background: rgba(196,163,46,.06);
  font-family: var(--font-mono); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-200);
}

/* where a product fits, and the Puck's two ways of working */
.fits {
  margin-top: 18px;
  font-family: var(--font-mono); font-size: .62rem; line-height: 1.9; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-2);
}
.fits span { margin-right: 12px; color: var(--accent); }
.fits span::after { content: " →"; }
.modes {
  margin-top: 24px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--line);
}
.mode { padding: 14px 16px 16px; background: rgba(10,12,20,.74); font-size: .84rem; line-height: 1.45; color: var(--text-2); }
.mode b {
  display: block; margin-bottom: 6px;
  font-family: var(--font-mono); font-size: .62rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent);
}

.signature { align-self: flex-end; margin-bottom: 4vh; }
.sig-line {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.15rem, 2vw, 1.6rem); letter-spacing: -.01em;
  color: var(--text-2);
}

/* hero */
.hero { width: min(760px, 100%); }
.cue {
  position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: .6rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--text-3);
  transition: opacity .6s;
}
.cue i { position: relative; width: 1px; height: 52px; overflow: hidden; background: rgba(224,204,114,.25); }
.cue i::after {
  content: ""; position: absolute; left: 0; top: -45%; width: 100%; height: 45%;
  background: linear-gradient(transparent, var(--gold-200));
  animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue { to { top: 100%; } }
.scrolled .cue { opacity: 0; }

/* ---------- contact ---------- */
.contact {
  position: relative; min-height: 100vh;
  padding: 130px var(--gutter) 40px;
  display: flex; flex-direction: column; justify-content: center; gap: 70px;
}
.contact-card {
  width: 100%; max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start;
  padding: clamp(28px, 5vw, 64px);
  border-radius: 32px;
  background: rgba(9,11,19,.6);
  border: 1px solid rgba(196,163,46,.24);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
  box-shadow: 0 40px 120px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.06);
}
.contact-card .display { font-size: clamp(2.1rem, 3.8vw, 3.6rem); }
.terms { margin-top: 26px; display: grid; gap: 12px; }
.terms div { display: grid; grid-template-columns: 96px 1fr; gap: 14px; }
.terms dt {
  padding-top: 3px;
  font-family: var(--font-mono); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-300);
}
.terms dd { font-size: .9rem; line-height: 1.5; color: var(--text-2); }
.contact-lines { list-style: none; margin-top: 30px; display: flex; flex-direction: column; gap: 14px; }
.contact-lines li, .contact-lines a { display: flex; align-items: center; gap: 12px; color: var(--text-2); font-size: .95rem; }
.contact-lines a:hover { color: var(--text); }
.contact-lines svg.i { color: var(--gold-300); width: 17px; height: 17px; }

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label {
  display: flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 600; color: #E4E6EE;
}
.field label svg.i { width: 15px; height: 15px; color: var(--gold-300); }
.field .optional { color: var(--text-3); font-weight: 400; }
.field input, .field textarea {
  width: 100%;
  padding: 13px 16px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(7,8,15,.62); color: var(--text);
  font-family: var(--font-body); font-size: .94rem;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: var(--navy-500); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(196,163,46,.18);
}
.captcha input { max-width: 180px; }
.ts-box:empty { display: none; }
/* two doors: a product, or a new build */
.doors { border: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.door { position: relative; cursor: pointer; }
.door input { position: absolute; opacity: 0; pointer-events: none; }
.door span {
  display: block; padding: 14px 16px; border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14); background: rgba(7,8,15,.5);
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.door b { display: block; font-family: var(--font-display); font-size: 1rem; color: var(--text); }
.door small { font-size: .76rem; color: var(--text-3); }
.door:hover span { border-color: rgba(224,204,114,.45); }
.door input:checked + span { border-color: var(--gold-500); background: rgba(196,163,46,.1); box-shadow: 0 0 0 3px rgba(196,163,46,.15); }
.door input:focus-visible + span { outline: 2px solid var(--gold-300); outline-offset: 2px; }
.contact-form[data-intent="product"] [data-door="project"],
.contact-form[data-intent="project"] [data-door="product"] { display: none; }
.field select {
  width: 100%; padding: 13px 40px 13px 16px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14); color: var(--text);
  background: rgba(7,8,15,.62) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E0CC72' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 14px;
  font-family: var(--font-body); font-size: .94rem;
  -webkit-appearance: none; appearance: none; cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.field select:focus { outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(196,163,46,.18); }
.field select option { background: #13162A; color: #F4F5F8; }
.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.2em; font-size: .85rem; }
.form-status.ok { color: var(--green); }
.form-status.err { color: var(--warn); }

/* the short answers: plain, crawlable Q&A under the form */
.faq {
  width: 100%; max-width: 1180px; margin: 0 auto;
  padding: clamp(28px, 4vw, 52px);
  border-radius: 28px;
  background: rgba(9,11,19,.55);
  border: 1px solid var(--line);
}
.faq .eyebrow { margin-bottom: 14px; }
.faq-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 2.6vw, 2.2rem); letter-spacing: -.03em; }
.faq-grid { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 48px; }
.qa h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; color: var(--text); }
.qa p { margin-top: 8px; font-size: .92rem; line-height: 1.6; color: var(--text-2); }
.qa a { color: var(--text); white-space: nowrap; border-bottom: 1px solid var(--line); transition: border-color .2s; }
.qa a:hover { border-color: var(--gold-300); }

.footer {
  width: 100%; max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px 28px;
  padding-bottom: 40px;
}
.footer .brand img { height: 26px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-links a { font-size: .8rem; color: var(--text-3); transition: color .2s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: .74rem; color: var(--navy-500); }

/* ---------- kinetic reveals (only when JS runs; otherwise everything is simply shown) ---------- */
.js .rv {
  opacity: 0; transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .9s var(--ease);
}
.js .on-stage .rv, .js .rv.on-stage {
  opacity: 1; transform: none;
  transition-duration: 1s, 1.2s;
  transition-delay: calc(var(--d, 0) * 90ms + 160ms);
}
.js .split .w {
  display: inline-block; overflow: hidden; vertical-align: bottom;
  padding: .08em .04em .12em; margin: -.08em -.04em -.12em;
}
.js .split .w > span {
  display: inline-block;
  transform: translateY(112%) rotate(5deg); transform-origin: 0 100%;
  transition: transform .8s var(--ease);
}
.js .on-stage .split .w > span {
  transform: none;
  transition-duration: 1.2s;
  transition-delay: calc(var(--i) * 60ms + 80ms);
}
.js .contact-card.rv { transition-delay: 0s; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps.five { grid-template-columns: repeat(5, 1fr); }
  .steps.five li { padding: 10px 8px 12px; font-size: .74rem; }
}
@media (max-width: 860px) {
  .rail { display: none; }
  .progress { display: block; }
  .top-link { display: none; }
  .brand img { height: 26px; }
  .pin { align-items: flex-end; padding: 96px 22px 76px; }
  .panel, .panel.right { margin: 0; width: 100%; }
  .panel::before {
    inset: -42% -22px -90px;
    background: linear-gradient(to top, rgba(7,8,15,.94) 45%, rgba(7,8,15,.6) 75%, rgba(7,8,15,0));
  }
  .panel.center::before { inset: -60% -22px -90px; }
  .signature { align-self: flex-end; margin-bottom: 0; }
  .display { font-size: clamp(2.1rem, 9vw, 3rem); }
  .display.long { font-size: clamp(1.9rem, 7.6vw, 2.5rem); }
  .display-xl { font-size: clamp(2.5rem, 11.5vw, 3.6rem); }
  .lede { margin-top: 18px; font-size: .97rem; }
  .eyebrow { margin-bottom: 18px; }
  .chip { margin-bottom: 20px; font-size: .58rem; }
  .tags { margin-top: 20px; }
  .tag { font-size: .58rem; padding: 7px 11px; }
  .steps { margin-top: 20px; }
  .steps li { padding: 10px 12px 12px; font-size: .76rem; }
  .bigstat { margin-top: 18px; }
  .stat-row { margin-top: 22px; gap: 14px 26px; }
  .marquee { bottom: auto; top: 96px; }
  .ctas { margin-top: 24px; }
  .cue { display: none; }
  .hud { bottom: 14px; bottom: max(14px, env(safe-area-inset-bottom)); left: 22px; right: 22px; font-size: .56rem; justify-content: center; }
  .hud-left { display: none; }
  .anchors { display: none; }
  .marquee { display: none; }
  .trusted-inline { display: block; }
  .sectors .lede { display: none; }
  .sub-list { margin-top: 16px; }
  .sub button { padding: 9px 0 7px; gap: 14px; }
  .sub-name { font-size: 1.02rem; }
  .sub-desc { padding-left: 34px; font-size: .84rem; }
  .fits { margin-top: 14px; font-size: .55rem; }
  .modes { margin-top: 16px; }
  .mode { padding: 10px 12px 12px; font-size: .76rem; }
  .contact { padding: 110px 16px 30px; gap: 50px; }
  .contact-card { grid-template-columns: 1fr; border-radius: 24px; }
  .terms div { grid-template-columns: 80px 1fr; }
  .faq { border-radius: 24px; }
  .faq-grid { grid-template-columns: 1fr; gap: 20px; }
  .pcta { margin-top: 16px; }
  .form-row { grid-template-columns: 1fr; }
  .footer { justify-content: center; text-align: center; }
  .footer-links { justify-content: center; gap: 14px 22px; }
}
@media (max-width: 480px) {
  .hero .ctas .btn { width: 100%; justify-content: center; }
  .tags { display: none; }
  .stat-row { gap: 12px 20px; }
  .stat b { font-size: 1.6rem; }
  .stat span { font-size: .54rem; }
}

/* laptop-height screens: keep the tall chapter panels inside the viewport */
@media (max-height: 940px) and (min-width: 861px) {
  .pin { padding-top: 88px; padding-bottom: 64px; }
  .display.long { font-size: clamp(2rem, 3.4vw, 3.4rem); }
  .sub button { padding: 8px 0 6px; }
  .sub-name { font-size: 1.05rem; }
  .sub-desc { font-size: .84rem; }
  .sub.on .sub-desc { padding-bottom: 8px; }
  .sub-list { margin-top: 18px; }
}

/* short landscape screens: tighten vertical rhythm */
@media (max-height: 720px) and (min-width: 861px) {
  .display { font-size: clamp(2.2rem, 4.2vw, 4rem); }
  .display-xl { font-size: clamp(2.6rem, 5.4vw, 5.4rem); }
  .lede { margin-top: 18px; }
  .tags, .ctas, .steps, .stat-row, .bigstat, .protos { margin-top: 20px; }
  .marquee { bottom: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv, .js .split .w > span { transition: none; transform: none; opacity: 1; }
  .marquee-track, .live-dot, .cue i::after { animation: none; }
}
