:root {
  color-scheme: light;
  --ink: #1c2126;
  --ink-soft: #3a4047;
  --muted: #6b7178;
  --dim: #9aa0a6;
  --paper: #f4f2ec;
  --paper-2: #ece8df;
  --surface: #ffffff;
  --surface-soft: #faf9f5;
  --line: rgba(28, 33, 38, 0.12);
  --line-strong: rgba(28, 33, 38, 0.2);
  --accent: #2f8d7c;
  --accent-deep: #246c5f;
  --accent-soft: #d6e9e3;
  --accent-tint: #eaf4f1;
  --sand: #b07a43;
  --sand-soft: #f1e5d4;
  --shadow-sm: 0 8px 24px rgba(28, 33, 38, 0.06);
  --shadow: 0 18px 50px rgba(28, 33, 38, 0.1);
  --shadow-lg: 0 30px 80px rgba(28, 33, 38, 0.12);
  --rail: 60px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Snap only engages once JS confirms boot/layout has settled (see script.js) —
   enabling it from first paint lets Chromium's snap engine resolve against an
   unstable initial layout (web fonts, async Three.js import, canvas sizing)
   and jump straight to the last section instead of the hero. proximity (not
   mandatory) is used deliberately: mandatory snap re-resolves to the wrong
   (last) panel in this exact boot-overlay + dynamic-import setup. */
html.snap-ready {
  scroll-snap-type: y proximity;
}

html.skip-boot {
  scroll-behavior: auto;
  scroll-snap-type: none;
}

body {
  margin: 0;
  background:
    linear-gradient(0deg, rgba(28, 33, 38, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 33, 38, 0.015) 1px, transparent 1px),
    radial-gradient(120% 80% at 78% 8%, var(--accent-tint) 0%, transparent 46%),
    linear-gradient(160deg, #f7f5ef 0%, var(--paper) 52%, #eef1ee 100%);
  background-size: 64px 64px, 64px 64px, auto, auto;
  background-attachment: fixed;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

code {
  font-family: "SFMono-Regular", ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
  font-size: 0.92em;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--accent-tint);
  color: var(--accent-deep);
}

/* ---------- Brand mark (iris aperture) + wordmark ---------- */

.iris {
  fill: none;
  stroke: currentColor;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.iris-hex {
  stroke-width: 3.8;
}

.iris-tick {
  stroke-width: 2.6;
}

.iris-p,
.iris-l {
  stroke-width: 5.2;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  color: var(--ink);
  font-size: 1.5rem;
  letter-spacing: 0.2px;
  line-height: 1;
  white-space: nowrap;
}

.wm-part {
  font-weight: 600;
}

.wm-lens {
  font-weight: 400;
}

.wordmark.with-datum {
  position: relative;
  padding-bottom: 14px;
}

.wordmark.with-datum::after {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 7px;
  height: 1px;
  background: var(--line-strong);
}

.wordmark.with-datum::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 2px;
  height: 9px;
  transform: translateX(-50%);
  background: var(--ink);
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 30;
  background: linear-gradient(90deg, var(--accent), var(--sand));
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: 0 center;
  pointer-events: none;
}

/* ---------- Boot / loading ---------- */

.boot {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background:
    radial-gradient(110% 70% at 50% 30%, var(--accent-tint) 0%, transparent 55%),
    linear-gradient(160deg, #fbfaf6 0%, var(--paper) 100%);
  transition: opacity 520ms ease, visibility 520ms ease;
}

.boot.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.skip-boot .boot {
  display: none;
}

.boot-grid {
  width: min(460px, calc(100vw - 40px));
  display: grid;
  gap: 26px;
  justify-items: center;
  text-align: center;
}

.boot-lockup {
  display: grid;
  justify-items: center;
  gap: 16px;
}

.boot-iris {
  width: 92px;
  height: 92px;
  color: var(--ink);
  opacity: 0;
  transform: scale(0.92);
  animation: irisIn 700ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.boot-iris .iris-hex {
  stroke-dasharray: 168;
  stroke-dashoffset: 168;
  animation: irisDraw 1100ms ease forwards 120ms;
}

.boot-lockup .wordmark {
  font-size: 2rem;
  opacity: 0;
  animation: fadeUp 600ms ease forwards 360ms;
}

.boot-tagline {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.2px;
  opacity: 0;
  animation: fadeUp 600ms ease forwards 520ms;
}

.boot-copy {
  display: flex;
  gap: 14px;
  align-items: baseline;
  justify-content: center;
}

.boot-copy span {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.boot-copy strong {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
}

.boot-track {
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: rgba(28, 33, 38, 0.08);
  overflow: hidden;
}

.boot-track span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
}

.boot-brand {
  display: grid;
  gap: 10px;
  justify-items: center;
  color: var(--dim);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

@keyframes irisIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes irisDraw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Rail nav ---------- */

.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail);
  z-index: 20;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  justify-items: center;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
}

.rail-logo {
  width: 100%;
  min-height: 92px;
  display: grid;
  place-items: center;
  gap: 6px;
  padding-top: 14px;
  border-bottom: 1px solid var(--line);
}

.rail-iris {
  width: 30px;
  height: 30px;
  color: var(--ink);
}

.rail-logo small {
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.rail nav {
  display: grid;
  width: 100%;
  align-self: center;
}

.rail nav a {
  position: relative;
  height: 54px;
  display: grid;
  place-items: center;
  border-bottom: 1px solid rgba(28, 33, 38, 0.06);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.78rem;
  transition: color 160ms ease, background 160ms ease;
}

.rail nav a:hover {
  color: var(--ink);
  background: var(--accent-tint);
}

.rail nav a.is-active {
  color: #ffffff;
  background: var(--ink);
}

.rail nav a.is-active::after {
  content: "";
  position: absolute;
  right: -1px;
  width: 3px;
  height: 100%;
  background: var(--accent);
}

.rail-cta {
  width: 100%;
  min-height: 86px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  transition: background 160ms ease;
}

.rail-cta:hover {
  background: var(--accent-deep);
}

.topline {
  position: fixed;
  top: 0;
  left: var(--rail);
  right: 0;
  z-index: 15;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px clamp(20px, 4vw, 54px);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  pointer-events: none;
}

/* ---------- Story / panels ---------- */

.story {
  position: relative;
  z-index: 2;
  margin-left: var(--rail);
  overflow: hidden;
}

.panel {
  position: relative;
  min-height: 100svh;
  scroll-snap-align: start;
  overflow: hidden;
  padding: clamp(72px, 10vh, 110px) clamp(24px, 5vw, 76px) clamp(34px, 7vh, 74px);
  display: grid;
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}

.panel:not(.beta) {
  padding-bottom: 70px;
}

.hero {
  min-height: 94svh;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
}

.hero-bg-word,
.mega-word {
  position: absolute;
  left: clamp(18px, 4vw, 74px);
  top: 9vh;
  z-index: -1;
  color: rgba(28, 33, 38, 0.05);
  font-size: clamp(4rem, 16vw, 15rem);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  white-space: nowrap;
  max-width: calc(100vw - var(--rail) - 40px);
  overflow: hidden;
  pointer-events: none;
}

.model-stage {
  position: relative;
  height: min(72vh, 680px);
  min-height: 430px;
  min-width: 0;
  display: grid;
  place-items: center;
}

.model-stage::before {
  content: "";
  position: absolute;
  inset: 8% 4% 6%;
  z-index: -1;
  background: radial-gradient(60% 55% at 50% 46%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 70%);
}

#carCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.model-fallback {
  position: absolute;
  inset: 10% 4%;
  display: grid;
  place-items: center;
  opacity: 0.9;
}

.model-fallback.is-hidden {
  display: none;
}

.fallback-car {
  position: relative;
  width: min(78vw, 520px);
  aspect-ratio: 2.6;
  filter: drop-shadow(0 24px 30px rgba(28, 33, 38, 0.14));
}

.fallback-car span {
  position: absolute;
  display: block;
  background: #c2c7cc;
}

.fallback-body {
  left: 6%;
  right: 6%;
  bottom: 22%;
  height: 30%;
  border-radius: 40px 60px 24px 24px / 60px 80px 24px 24px;
}

.fallback-cabin {
  left: 30%;
  width: 40%;
  bottom: 50%;
  height: 22%;
  background: #aeb4ba !important;
  border-radius: 40px 30px 0 0;
}

.fallback-nose {
  left: 0;
  bottom: 24%;
  width: 16%;
  height: 14%;
  background: #c2c7cc !important;
  border-radius: 0 0 0 24px;
  clip-path: polygon(0 60%, 100% 0, 100% 100%, 0 100%);
}

.fallback-wheel {
  width: 18%;
  aspect-ratio: 1;
  bottom: 8%;
  border-radius: 50%;
  background: #2a3036 !important;
  box-shadow: inset 0 0 0 6px #c2c7cc;
}

.w1 { left: 16%; }
.w2 { right: 16%; }

.scan-readout {
  position: absolute;
  left: clamp(12px, 2vw, 30px);
  bottom: clamp(18px, 4vw, 40px);
  display: grid;
  gap: 4px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}

.scan-readout span {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scan-readout strong {
  color: var(--accent-deep);
  font-size: 0.86rem;
  font-weight: 700;
}

.hero-copy,
.section-copy,
.beta-copy {
  max-width: 650px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-tint);
  color: var(--accent-deep);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  max-width: 900px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.0;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

h1 {
  max-width: 760px;
  font-size: clamp(3.4rem, 5.1vw, 5.6rem);
  line-height: 1.0;
}

h1 span {
  display: block;
}

h2 {
  font-size: clamp(2.5rem, 4.6vw, 4.6rem);
}

.hero-lede,
.section-copy p:not(.eyebrow),
.beta-copy p:not(.eyebrow) {
  margin: clamp(20px, 3vw, 28px) 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
  line-height: 1.55;
  max-width: 640px;
}

.hero-lede span {
  display: inline;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.button.primary {
  background: var(--ink);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.button.primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  background: #11161a;
}

.button.ghost {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line-strong);
}

.button.ghost:hover {
  border-color: var(--ink);
  background: var(--surface-soft);
}

.next-peek {
  position: absolute;
  left: clamp(24px, 5vw, 76px);
  right: clamp(24px, 5vw, 76px);
  bottom: 0;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  transition: color 160ms ease;
}

.next-peek:hover {
  color: var(--ink);
}

.next-peek strong {
  color: var(--accent-deep);
  font-weight: 700;
}

/* ---------- Processor console ---------- */

.processor {
  grid-template-columns: minmax(300px, 0.9fr) minmax(340px, 1.1fr);
}

.processor-console {
  width: min(100%, 670px);
  justify-self: end;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.console-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.processor-console ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.processor-console li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px 18px;
  padding: clamp(18px, 3vw, 26px);
  border-bottom: 1px solid var(--line);
}

.processor-console li:last-child {
  border-bottom: 0;
}

.processor-console li span {
  grid-row: span 2;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
}

.processor-console li strong {
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
  font-weight: 600;
  line-height: 1.1;
}

.processor-console li em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.95rem;
}

/* ---------- Render / pipeline stack ---------- */

.render {
  grid-template-columns: minmax(320px, 0.92fr) minmax(320px, 1fr);
}

.split-visual {
  position: relative;
  min-height: 540px;
  display: grid;
  place-items: center;
}

.render-stack {
  width: min(520px, 100%);
  display: grid;
  gap: 16px;
  transform: rotate(-3deg);
}

.file-chip {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  font-size: clamp(1.3rem, 3.4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.file-chip::after {
  content: "ready";
  color: var(--dim);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.file-chip.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint), var(--shadow-sm);
}

.file-chip.output {
  background: var(--sand-soft);
  border-color: rgba(176, 122, 67, 0.4);
  color: #6e4a23;
}

.file-chip.output::after {
  color: var(--sand);
}

.pipeline-lines {
  position: absolute;
  inset: 10%;
  z-index: -1;
  display: grid;
  align-content: center;
  gap: 40px;
}

.pipeline-lines span {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.section-copy.tight {
  justify-self: end;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 32px;
}

.stat-row span {
  min-height: 118px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.stat-row strong {
  font-size: 1rem;
  font-weight: 600;
}

.stat-row small {
  color: var(--muted);
  font-size: 0.84rem;
}

/* ---------- Translate / convertor ---------- */

.translate {
  grid-template-columns: minmax(320px, 0.92fr) minmax(320px, 1fr);
}

.translate-stack {
  gap: 22px;
}

.file-chip.process {
  justify-content: flex-start;
  gap: 16px;
  font-size: clamp(1rem, 2vw, 1.35rem);
  background: var(--surface-soft);
}

.file-chip.process::after {
  content: none;
}

.file-chip.process span:first-child {
  font-size: clamp(1rem, 2.2vw, 1.5rem);
  font-weight: 600;
}

.local-badge {
  margin-left: auto;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Draft board (datum inspection drawing) ---------- */

.draft {
  grid-template-columns: minmax(340px, 1fr) minmax(300px, 0.9fr);
}

.draft-board {
  position: relative;
  padding: clamp(14px, 1.8vw, 24px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.datum-sheet {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- Compare ---------- */

.compare {
  grid-template-columns: minmax(320px, 0.9fr) minmax(320px, 1.1fr);
  align-content: center;
}

.compare-copy {
  max-width: 720px;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.compare-grid article {
  min-height: 320px;
  display: grid;
  align-content: end;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.compare-grid article.hot {
  background: var(--sand-soft);
  border-color: rgba(176, 122, 67, 0.45);
}

.compare-grid span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.compare-grid article.hot span {
  color: var(--sand);
}

.compare-grid strong {
  font-size: clamp(1.5rem, 2.6vw, 2.6rem);
  font-weight: 600;
  line-height: 1.0;
}

.compare-grid small {
  color: var(--muted);
  font-size: 0.92rem;
}

.delta-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: -22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--line);
  overflow: hidden;
}

.delta-strip span {
  min-height: 56px;
  display: grid;
  place-items: center;
  background: var(--surface);
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

/* ---------- Native / spec grid ---------- */

.native {
  grid-template-columns: minmax(300px, 0.85fr) minmax(360px, 1.15fr);
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.spec-grid article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.spec-grid strong {
  display: block;
  margin-bottom: 7px;
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.2;
}

.spec-grid small {
  color: var(--muted);
  font-size: 0.8rem;
}

/* ---------- Beta / waitlist ---------- */

.beta {
  grid-template-columns: minmax(300px, 0.95fr) minmax(340px, 0.9fr);
  align-items: center;
  padding-bottom: 96px;
}

.beta-brand {
  display: grid;
  gap: 8px;
  margin-top: 32px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.waitlist-form {
  display: grid;
  gap: 14px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.waitlist-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.waitlist-form input,
.waitlist-form select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink);
  padding: 0 13px;
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.waitlist-form input::placeholder {
  color: var(--dim);
}

.waitlist-form input:focus,
.waitlist-form select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
  background: var(--surface);
}

.waitlist-form select option {
  background: var(--surface);
  color: var(--ink);
}

.checkbox-line {
  grid-template-columns: 18px 1fr;
  align-items: start;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 500;
}

.checkbox-line input {
  min-height: auto;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--accent);
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--accent-deep);
  font-size: 0.86rem;
  font-weight: 600;
}

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  z-index: 2;
  margin-left: var(--rail);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 32px clamp(24px, 5vw, 76px);
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  scroll-snap-align: end;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-iris {
  width: 40px;
  height: 40px;
  flex: none;
  color: var(--ink);
}

.footer-brand > div {
  display: grid;
  gap: 5px;
}

.footer-brand .wordmark {
  font-size: 1.2rem;
}

.footer-brand span:last-child {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--muted);
  max-width: 460px;
}

.footer-credit {
  display: grid;
  gap: 10px;
  justify-items: end;
  text-align: right;
}

.footer-credit > span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

/* ---------- Saptasati company lockup ---------- */

.sapta-mark {
  height: 26px;
  width: auto;
  flex: none;
  display: block;
}

.sapta-mark-sm {
  height: 15px;
  width: auto;
}

.sapta-credit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.sapta-credit-text {
  display: grid;
  gap: 1px;
  line-height: 1.15;
}

.sapta-credit-text small {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}

.sapta-credit-text strong {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--ink);
}

.dev-credit {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.topline-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

/* ---------- Scroll-reveal ---------- */

[data-section] .section-copy,
[data-section] .processor-console,
[data-section] .split-visual,
[data-section] .draft-board,
[data-section] .compare-grid,
[data-section] .spec-grid,
[data-section] .waitlist-form,
[data-section] .hero-copy,
[data-section] .model-stage {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 700ms ease, transform 700ms ease;
}

[data-section].is-visible .section-copy,
[data-section].is-visible .processor-console,
[data-section].is-visible .split-visual,
[data-section].is-visible .draft-board,
[data-section].is-visible .compare-grid,
[data-section].is-visible .spec-grid,
[data-section].is-visible .waitlist-form,
[data-section].is-visible .hero-copy,
[data-section].is-visible .model-stage {
  opacity: 1;
  transform: translateY(0);
}

.skip-boot .hero .hero-copy,
.skip-boot .hero .model-stage,
.skip-boot [data-section] .section-copy,
.skip-boot [data-section] .processor-console,
.skip-boot [data-section] .split-visual,
.skip-boot [data-section] .draft-board,
.skip-boot [data-section] .compare-grid,
.skip-boot [data-section] .spec-grid,
.skip-boot [data-section] .waitlist-form,
.skip-boot [data-section] .hero-copy,
.skip-boot [data-section] .model-stage {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  :root {
    --rail: 0px;
  }

  html {
    scroll-snap-type: y proximity;
  }

  .rail {
    inset: auto 0 0 0;
    width: auto;
    height: 58px;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: 1fr;
    border-right: 0;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.92);
  }

  .rail-logo {
    min-height: 58px;
    width: 72px;
    padding: 0;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }

  .rail-iris {
    width: 26px;
    height: 26px;
  }

  .rail-logo small {
    display: none;
  }

  .rail nav {
    display: flex;
    height: 100%;
  }

  .rail nav a {
    flex: 1;
    height: 100%;
    border-bottom: 0;
    border-right: 1px solid rgba(28, 33, 38, 0.06);
  }

  .rail-cta {
    width: 76px;
    min-height: 58px;
    writing-mode: horizontal-tb;
    transform: none;
  }

  .topline {
    left: 0;
  }

  .topline span:nth-child(3) {
    display: none;
  }

  .story,
  .site-footer {
    margin-left: 0;
  }

  .panel,
  .hero,
  .processor,
  .render,
  .translate,
  .draft,
  .compare,
  .native,
  .beta {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 92px 22px 86px;
  }

  .hero {
    min-height: 94svh;
  }

  .model-stage {
    order: 2;
    min-height: 360px;
    height: 44vh;
  }

  .hero-copy {
    order: 1;
  }

  h1 {
    font-size: clamp(3rem, 11vw, 5rem);
  }

  h2 {
    font-size: clamp(2.4rem, 9vw, 4rem);
  }

  .hero-bg-word,
  .mega-word {
    left: 18px;
    top: 96px;
    font-size: clamp(4rem, 20vw, 9rem);
  }

  .section-copy.tight,
  .processor-console {
    justify-self: stretch;
  }

  .split-visual {
    min-height: 360px;
  }

  .compare-grid {
    grid-template-columns: 1fr;
  }

  .compare-grid article {
    min-height: 170px;
  }

  .delta-strip,
  .stat-row,
  .spec-grid {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-bottom: 86px;
  }

  .footer-credit {
    justify-items: start;
    text-align: left;
  }
}

@media (max-width: 620px) {
  .topline {
    display: none;
  }

  .panel,
  .hero,
  .processor,
  .render,
  .translate,
  .draft,
  .compare,
  .native,
  .beta {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    position: relative;
  }

  .hero-bg-word,
  .mega-word {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
  }

  .hero-copy,
  .section-copy,
  .beta-copy,
  .hero-lede,
  .hero-actions,
  h1,
  h2 {
    width: calc(100vw - 48px);
    max-width: calc(100vw - 48px);
  }

  h1 {
    font-size: clamp(2.7rem, 11.5vw, 3.5rem);
  }

  h2 {
    font-size: clamp(2.3rem, 11vw, 3.6rem);
  }

  .hero .model-stage {
    position: absolute;
    top: 84px;
    right: -120px;
    width: 320px;
    height: 290px;
    min-height: 290px;
    opacity: 0.5;
    pointer-events: none;
    z-index: -1;
  }

  .hero .scan-readout {
    display: none;
  }

  .hero-copy {
    position: relative;
    z-index: 2;
  }

  .hero-lede,
  .section-copy p:not(.eyebrow),
  .beta-copy p:not(.eyebrow) {
    width: calc(100vw - 64px) !important;
    max-width: calc(100vw - 64px) !important;
    overflow-wrap: anywhere;
  }

  .hero-lede span {
    display: block;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: calc(100vw - 48px);
    max-width: calc(100vw - 48px);
    white-space: normal;
    text-align: center;
  }

  .processor-console li {
    grid-template-columns: 42px 1fr;
  }

  .render-stack {
    transform: none;
  }

  .file-chip {
    min-height: 58px;
    padding: 0 16px;
  }

  .stat-row,
  .delta-strip,
  .spec-grid {
    grid-template-columns: 1fr;
  }

  .next-peek {
    left: 16px;
    right: 16px;
  }

  .next-peek strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
