:root {
  --bg: #050506;
  --bg-2: #0a0b0e;
  --panel: #0e1014;
  --line: #20242a;
  --line-2: #2e333a;
  --text: #f2f3f4;
  --muted: #8d949c;
  --dim: #5f666e;
  --accent: #ff4d00;
  --accent-hi: #ff6a26;
  --accent-ink: #140600;
  --cyan: #18e0ff;
  --nut: #8b9097;

  --sans: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --wide: "Michroma", "Space Grotesk", sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --c: 14px; /* chamfer size */
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 400; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Cybertruck corners */
.chamfer, .btn, .panel, .terminal, .chamfer-frame {
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
}

/* ---------- Boot ---------- */
.boot { display: none; }
html.booting .boot {
  display: flex; position: fixed; inset: 0; z-index: 100; background: #000;
  flex-direction: column; justify-content: center; padding: 0 var(--gutter);
  transition: opacity .35s;
}
html.booting body { overflow: hidden; }
.boot.is-done { opacity: 0; pointer-events: none; }
.boot-lines { font: 500 clamp(13px, 1.6vw, 16px)/1.9 var(--mono); color: var(--muted); margin: 0 auto; width: min(560px, 100%); white-space: pre-wrap; }
.boot-lines .ok { color: var(--cyan); }
.boot-lines .warn { color: var(--accent); }
.boot-lines .hd { color: var(--text); }
.boot-skip { position: absolute; bottom: 28px; left: 0; right: 0; text-align: center; font: 400 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }

/* ---------- Header ---------- */
.bar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 24px;
  height: 64px; padding: 0 var(--gutter);
  background: rgba(5, 5, 6, .82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; margin-right: auto; }
.logo img { height: 24px; width: auto; }
.nav { display: flex; gap: 28px; }
.nav a { font: 400 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--text); }
.payload-btn {
  display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 6px 0 14px;
  background: transparent; border: 1px solid var(--line-2);
  font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase;
}
.payload-btn:hover { border-color: var(--text); }
.payload-count {
  min-width: 26px; height: 26px; padding: 0 6px; display: grid; place-items: center;
  background: var(--panel); color: var(--muted); font: 600 12px var(--mono);
}
.payload-count.has { background: var(--accent); color: var(--accent-ink); }
.payload-count.bump { animation: bump .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes bump { 40% { transform: scale(1.4) rotate(-6deg); } }

/* ---------- Buttons ---------- */
.btn {
  --c: 10px;
  display: inline-flex; align-items: center; justify-content: space-between; gap: 18px;
  height: 56px; padding: 0 22px; border: 0;
  font: 400 13px var(--wide); letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  white-space: nowrap; transition: background .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-go { background: var(--accent); color: var(--accent-ink); }
.btn-go:hover { background: var(--accent-hi); text-shadow: -2px 0 0 rgba(24, 224, 255, .55), 2px 0 0 rgba(255, 255, 255, .35); }
.btn-go:disabled { background: #2a1d17; color: #6f5d54; cursor: not-allowed; text-shadow: none; }
.btn-price { font: 600 15px var(--mono); letter-spacing: 0; }
.btn-line { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); justify-content: center; }
.btn-line:hover { box-shadow: inset 0 0 0 1px var(--text); }
.btn-block { width: 100%; }
.btn-sm { height: 44px; padding: 0 16px; font-size: 11px; }
.btn-sm .btn-price { font-size: 13px; }
.icon-btn { width: 38px; height: 38px; background: none; border: 1px solid var(--line-2); font-size: 22px; line-height: 1; }
.icon-btn:hover { border-color: var(--text); }

/* ---------- Type ---------- */
.eyebrow, .kicker { font: 400 11px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }
.eyebrow span, .kicker span { color: var(--accent); }
.kicker .rotor { color: var(--text); white-space: nowrap; }
.kicker .rotor.is-scrambling { color: var(--cyan); }
.fine { font-size: 13px; color: var(--dim); margin: 12px 0 0; }

/* ---------- Hero / configurator ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr);
  gap: clamp(16px, 2vw, 28px);
  max-width: var(--max); margin: 0 auto; padding: 24px var(--gutter) 40px;
  align-items: start;
}
.stage {
  position: relative; overflow: hidden; touch-action: pan-y;
  background:
    linear-gradient(#ffffff08 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, #ffffff08 1px, transparent 1px) 0 0 / 40px 40px,
    radial-gradient(120% 90% at 50% 100%, #12151a, #050506 70%);
  border: 1px solid var(--line);
  aspect-ratio: 600 / 520;
}
.stage::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px);
}
.sim { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; }
.stage-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.stage-media { position: absolute; inset: 0; background: #050506; }
.stage-media img, .stage-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.stage.is-media .hud-bl, .stage.is-media .hud-br { display: none; }

/* gallery strip: the live sim plus real photos and clips */
.strip { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.thumb {
  --c: 8px; position: relative; flex: none; width: 84px; height: 64px; padding: 0; border: 0; overflow: hidden;
  background: #0b0c0e; cursor: pointer;
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
}
.thumb::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px var(--line-2); pointer-events: none; }
.thumb:hover::after { box-shadow: inset 0 0 0 1px #4a515a; }
.thumb.is-on::after { box-shadow: inset 0 0 0 2px var(--accent); }
.thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .7; transition: opacity .15s; }
.thumb:hover img, .thumb.is-on img { opacity: 1; }
.thumb svg { width: 54px; height: 44px; display: block; margin: 2px auto 0; }
.thumb-label { position: absolute; left: 0; right: 0; bottom: 3px; text-align: center; font: 600 8.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text); }
.thumb-label::before { content: "● "; color: var(--accent); }
.thumb-play { position: absolute; right: 5px; bottom: 5px; width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent #fff; filter: drop-shadow(0 0 2px #000); }
.thumb:focus-visible { outline: none; }
.thumb:focus-visible::after { box-shadow: inset 0 0 0 2px var(--cyan); }
.sim.dragging { cursor: grabbing; }
.stage[data-hitch="none"] [data-show="shank"], .stage[data-hitch="shank"] [data-show="none"] { display: none; }
.assembly { transform-origin: 300px 132px; transition: transform .55s cubic-bezier(.3, 1.4, .5, 1); }
.floor line { stroke: var(--accent); stroke-opacity: .16; stroke-width: 1; }
.floor .horizon { stroke-opacity: .7; stroke-width: 1.5; filter: drop-shadow(0 0 6px var(--accent)); }

/* nut facets, shaded from the chosen paint */
#cn-nut-back polygon, #cn-nut-front polygon { stroke: color-mix(in srgb, var(--nut) 55%, #fff); stroke-opacity: .32; stroke-width: 1; stroke-linejoin: round; transition: fill .35s; }
.f-hi    { fill: color-mix(in srgb, var(--nut) 74%, #fff); }
.f-base  { fill: var(--nut); }
.f-mid   { fill: color-mix(in srgb, var(--nut) 76%, #000); }
.f-dark  { fill: color-mix(in srgb, var(--nut) 56%, #000); }
.f-hole  { fill: color-mix(in srgb, var(--nut) 24%, #000); }
.f-inner { fill: color-mix(in srgb, var(--nut) 44%, #000); }

.hud { position: absolute; inset: 14px; pointer-events: none; font: 500 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.corner { position: absolute; width: 18px; height: 18px; border: 0 solid var(--accent); }
.c1 { top: 0; left: 0; border-width: 2px 0 0 2px; }
.c2 { top: 0; right: 0; border-width: 2px 2px 0 0; }
.c3 { bottom: 0; left: 0; border-width: 0 0 2px 2px; }
.c4 { bottom: 0; right: 0; border-width: 0 2px 2px 0; }
.hud-tl { position: absolute; top: 10px; left: 28px; }
.hud-tr { position: absolute; top: 10px; right: 28px; color: var(--text); display: flex; align-items: center; gap: 8px; }
.hud-tr b { width: 7px; height: 7px; background: var(--accent); border-radius: 50%; animation: blink 1.4s steps(2, start) infinite; }
@keyframes blink { to { opacity: .2; } }
.hud-bl { position: absolute; left: 28px; bottom: 12px; margin: 0; display: grid; grid-template-columns: auto auto; gap: 2px 16px; }
.hud-bl div { display: contents; }
.hud-bl dt { color: var(--dim); }
.hud-bl dd { margin: 0; color: var(--text); }
.hud-bl [data-ro-swing] { color: var(--cyan); font-variant-numeric: tabular-nums; }
.hud-br { position: absolute; right: 28px; bottom: 12px; color: var(--accent); }

.panel {
  --c: 20px;
  background: var(--panel); padding: clamp(22px, 2.6vw, 34px);
  display: flex; flex-direction: column;
  box-shadow: inset 0 0 0 1px var(--line);
}
.panel h1 { font: 400 clamp(26px, 2.6vw, 36px)/1.18 var(--wide); letter-spacing: -.01em; text-transform: uppercase; margin-bottom: 14px; }
.lede { color: #c3c8cd; margin: 0 0 24px; max-width: 40ch; }

.opt { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.opt legend {
  display: flex; align-items: baseline; gap: 10px; width: 100%; padding: 0; margin-bottom: 10px;
  font: 400 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.opt-n { color: var(--accent); }
.opt legend em { margin-left: auto; font-style: normal; color: var(--text); letter-spacing: .08em; }

.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sw { position: relative; cursor: pointer; }
.sw input, .seg-opt input, .ship-opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.sw-body {
  --c: 8px;
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 4px 10px;
  background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line-2);
  font-size: 12px; color: var(--muted); text-align: center;
  transition: box-shadow .15s, color .15s;
}
.sw-chip {
  width: 30px; height: 30px; background: var(--c-chip);
  clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
  background-image: linear-gradient(135deg, rgba(255, 255, 255, .28), transparent 50%, rgba(0, 0, 0, .35));
  background-color: var(--c-chip);
}
.sw:hover .sw-body { box-shadow: inset 0 0 0 1px #4a515a; }
.sw input:checked + .sw-body { box-shadow: inset 0 0 0 1px var(--accent), inset 0 -3px 0 var(--accent); color: var(--text); }
.sw input:focus-visible + .sw-body, .seg-opt input:focus-visible + .seg-body, .ship-opt input:focus-visible + .seg-body { outline: 2px solid var(--cyan); outline-offset: 2px; }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.opt-note { margin: 8px 0 0; font: 400 11px/1.5 var(--mono); letter-spacing: .04em; color: var(--muted); }
.seg-opt { position: relative; cursor: pointer; }
.seg-body {
  --c: 8px;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 10px;
  min-height: 62px; padding: 10px 14px;
  background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line-2);
  transition: box-shadow .15s, background .15s;
}
.seg-body b { font-weight: 500; font-size: 15px; }
.seg-body small { grid-column: 1; font: 400 11px var(--mono); color: var(--muted); }
.seg-body i { grid-row: 1 / span 2; grid-column: 2; font: 600 13px var(--mono); font-style: normal; color: var(--muted); }
.seg-opt:hover .seg-body { box-shadow: inset 0 0 0 1px #4a515a; }
.seg-opt input:checked + .seg-body { box-shadow: inset 0 0 0 1px var(--accent); background: rgba(255, 77, 0, .07); }
.seg-opt input:checked + .seg-body i { color: var(--accent); }

.buy { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin-top: auto; padding-top: 8px; }
.stepper { display: inline-flex; align-items: stretch; box-shadow: inset 0 0 0 1px var(--line-2); height: 56px; }
.stepper button { width: 40px; background: none; border: 0; font-size: 18px; color: var(--muted); }
.stepper button:hover { color: var(--text); background: var(--bg-2); }
.stepper output { min-width: 34px; display: grid; place-items: center; font: 600 15px var(--mono); }
.assure { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font: 400 11px var(--mono); letter-spacing: .06em; color: var(--muted); }
.assure li::before { content: "✓ "; color: var(--cyan); }

/* ---------- Ticker ---------- */
.ticker { border-bottom: 1px solid var(--line); overflow: hidden; background: var(--bg-2); }
.ticker-track { display: flex; width: max-content; animation: tick 50s linear infinite; }
.ticker span { font: 400 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 13px 26px; white-space: nowrap; }
.ticker span::before { content: "▸ "; color: var(--accent); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 11vw, 140px) var(--gutter) 0; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 48px); padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.sec-head .eyebrow { order: 2; margin: 0; }
.sec-head h2 { font: 400 clamp(28px, 4vw, 52px)/1.12 var(--wide); text-transform: uppercase; letter-spacing: -.02em; }

/* telemetry */
.telemetry { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(16px, 2vw, 28px); }
.field { --c: 20px; position: relative; margin: 0; background: var(--panel); }
.field img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; filter: saturate(.8) contrast(1.06); }
.field figcaption {
  position: absolute; left: 16px; bottom: 16px; right: 16px;
  font: 400 11px var(--mono); letter-spacing: .1em; text-transform: uppercase;
  background: rgba(5, 5, 6, .82); padding: 10px 12px; color: var(--text);
}
.field figcaption span { color: var(--accent); margin-right: 10px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); align-content: start; }
.stat { background: var(--bg); padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; gap: 6px; min-height: 190px; }
.stat b { font: 400 clamp(40px, 5.4vw, 72px)/1 var(--wide); letter-spacing: -.03em; margin-bottom: auto; }
.stat b i { font: 500 .32em var(--mono); font-style: normal; color: var(--accent); margin-left: 6px; letter-spacing: 0; }
.stat span { font: 400 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text); margin-top: 24px; }
.stat small { color: var(--muted); font-size: 14px; }
.stat-note { grid-column: 1 / -1; margin: 0; background: var(--bg); padding: 22px clamp(22px, 3vw, 36px); color: #c3c8cd; }

/* field footage */
.reel { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(10px, 1.4vw, 16px); }
.shot {
  --c: 16px; position: relative; margin: 0; overflow: hidden; background: var(--panel);
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
}
.shot video, .shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.9) contrast(1.05); }
.shot::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 3px); }
.shot figcaption {
  position: absolute; left: 12px; bottom: 12px; z-index: 1; max-width: calc(100% - 24px);
  font: 400 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase;
  background: rgba(5, 5, 6, .8); padding: 7px 10px; color: var(--text);
}
.shot figcaption span { color: var(--accent); margin-right: 10px; }
.w8 { grid-column: span 8; aspect-ratio: 16 / 9; }
.w4 { grid-column: span 4; }
.w6 { grid-column: span 6; aspect-ratio: 4 / 3; }
.install-film { aspect-ratio: 16 / 9; margin-bottom: clamp(28px, 4vw, 44px); }

/* blueprint */
.blueprint { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, .7fr); gap: clamp(16px, 2vw, 28px); align-items: start; }
.bp-image { position: relative; border: 1px solid #1f4fa0; background: #12408f; }
.bp-parts { max-width: 640px; }
.sheets { display: flex; gap: 6px; margin-bottom: 10px; }
.sheet-tab {
  height: 34px; padding: 0 14px; background: none; border: 0; box-shadow: inset 0 0 0 1px var(--line-2);
  font: 400 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.sheet-tab:hover { color: var(--text); }
.sheet-tab.is-on { color: var(--text); box-shadow: inset 0 0 0 1px var(--accent), inset 0 -2px 0 var(--accent); }
.bp-image img { width: 100%; height: auto; }
.hotspot {
  position: absolute; width: 28px; height: 28px; margin: -14px 0 0 -14px; padding: 0; border: 0; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font: 600 11px var(--mono);
  box-shadow: 0 0 0 4px rgba(255, 77, 0, .3);
}
.hotspot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--accent); animation: ping 2s ease-out infinite; }
.hotspot.is-on { background: var(--cyan); box-shadow: 0 0 0 4px rgba(24, 224, 255, .35); }
.hotspot.is-on::after { border-color: var(--cyan); }
@keyframes ping { from { transform: scale(1); opacity: .8; } to { transform: scale(2.2); opacity: 0; } }
.parts { list-style: none; margin: 0 0 20px; padding: 0; border-top: 1px solid var(--line); }
.parts li { border-bottom: 1px solid var(--line); }
.parts button {
  width: 100%; display: grid; grid-template-columns: 34px 1fr; gap: 2px 10px; text-align: left;
  padding: 14px 4px; background: none; border: 0;
}
.parts .n { grid-row: 1 / span 2; font: 600 12px var(--mono); color: var(--accent); padding-top: 2px; }
.parts b { font-weight: 500; }
.parts small { color: var(--muted); font-size: 13px; }
.parts button:hover b, .parts button.is-on b { color: var(--cyan); }
.parts button.is-on .n { color: var(--cyan); }
.specs { margin: 0; font: 400 13px var(--mono); }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px dashed var(--line-2); }
.specs dt { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: 11px; padding-top: 2px; }
.specs dd { margin: 0; text-align: right; }
.specs dd small { color: var(--muted); font-size: 11px; }

/* install */
.launch-seq { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.launch-seq li { position: relative; padding-top: 28px; border-top: 2px solid var(--line-2); }
.launch-seq li::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; background: var(--bg); border: 2px solid var(--line-2); transform: rotate(45deg); }
.launch-seq li:last-child { border-top-color: var(--accent); }
.launch-seq li:last-child::before { border-color: var(--accent); background: var(--accent); }
.launch-seq .t { font: 600 13px var(--mono); color: var(--accent); letter-spacing: .1em; }
.launch-seq h3 { font: 400 22px var(--wide); text-transform: uppercase; margin: 10px 0 8px; }
.launch-seq p { color: var(--muted); margin: 0; max-width: 34ch; }

/* faq terminal */
.terminal { --c: 18px; background: #07080a; box-shadow: inset 0 0 0 1px var(--line-2); max-width: 900px; font-family: var(--mono); }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 11px; color: var(--dim); letter-spacing: .06em; }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.term-bar i:first-child { background: var(--accent); }
.term-bar span { margin-left: 10px; }
.term-body { padding: 14px clamp(16px, 3vw, 28px) 22px; }
.terminal details { border-bottom: 1px dashed var(--line); }
.terminal summary { list-style: none; cursor: pointer; padding: 14px 0; font-size: 15px; color: var(--text); }
.terminal summary::-webkit-details-marker { display: none; }
.terminal summary:hover { color: var(--cyan); }
.terminal summary q { color: var(--accent); quotes: '"' '"'; }
.terminal details[open] summary q { color: var(--cyan); }
.ps { color: var(--dim); margin-right: 6px; }
.terminal details p { margin: -4px 0 16px; padding-left: 18px; color: #c3c8cd; font-size: 14px; line-height: 1.7; border-left: 2px solid var(--accent); }
.term-idle { margin: 14px 0 0; }
.cursor { color: var(--accent); animation: blink 1.1s steps(2, start) infinite; }

/* finale */
.finale { max-width: var(--max); margin: clamp(80px, 11vw, 140px) auto 0; padding: clamp(48px, 7vw, 88px) var(--gutter); text-align: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: radial-gradient(70% 90% at 50% 120%, rgba(255, 77, 0, .2), transparent 70%); }
.finale img { width: min(560px, 90%); margin: 0 auto; }
.finale > p { font: 400 12px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 20px 0 32px; }
.finale-buy { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; }
.chip { font: 500 12px var(--mono); letter-spacing: .06em; padding: 10px 14px; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text); }
.finale-link { display: block; margin-top: 18px; font: 400 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.finale-link:hover { color: var(--text); }

/* footer */
.foot { max-width: var(--max); margin: 0 auto; padding: 40px var(--gutter) 120px; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; color: var(--muted); font-size: 14px; }
.foot p { margin: 0 0 6px; }
.foot-logo { height: 20px; width: auto; margin-bottom: 14px; }
.legal { font-size: 12px; color: var(--dim); max-width: 64ch; }
.foot-mail { font: 400 12px var(--mono); }

/* ---------- Scroll cue ---------- */
/* Three chevrons that stretch apart and snap back together, like a rubber band. */
.scroll-cue {
  position: fixed; right: 18px; bottom: 34px; z-index: 20;
  display: flex; flex-direction: column; align-items: center; gap: 0;
  text-decoration: none; transition: opacity .4s, transform .4s;
}
.scroll-cue span { writing-mode: vertical-rl; font: 500 9.5px var(--mono); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.scroll-cue i {
  --d: 0px; width: 16px; height: 16px; margin-top: -6px;
  border: solid var(--accent); border-width: 0 3px 3px 0; rotate: 45deg;
  filter: drop-shadow(0 0 6px rgba(255, 77, 0, .55));
  animation: cue-stretch 1.5s cubic-bezier(.55, -.45, .4, 1.55) infinite;
}
.scroll-cue i:nth-of-type(2) { --d: 7px; animation-delay: .08s; }
.scroll-cue i:nth-of-type(3) { --d: 14px; animation-delay: .16s; }
@keyframes cue-stretch {
  0%, 100% { translate: 0 0; opacity: .35; }
  45% { translate: 0 var(--d); opacity: 1; }
}
.scroll-cue:hover i { border-color: var(--cyan); }
.scroll-cue.is-gone { opacity: 0; transform: translateY(14px); pointer-events: none; }

/* ---------- Sticky buy bar ---------- */
.buybar {
  position: fixed; left: 50%; bottom: 16px; z-index: 25;
  display: flex; align-items: center; gap: 14px;
  width: min(560px, calc(100% - 24px)); padding: 8px 8px 8px 14px;
  background: rgba(14, 16, 20, .94); backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 20px 50px rgba(0, 0, 0, .6);
  transform: translate(-50%, 140%); transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.buybar.is-on { transform: translate(-50%, 0); }
.bb-swatch { width: 26px; height: 26px; flex: none; background: var(--nut); clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%); transition: background .3s; }
.bb-text { display: flex; flex-direction: column; min-width: 0; margin-right: auto; line-height: 1.25; }
.bb-text b { font: 400 11px var(--wide); text-transform: uppercase; letter-spacing: .06em; }
.bb-text span { font: 400 11px var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Drawer ---------- */
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .65); z-index: 40; opacity: 0; transition: opacity .2s; }
.scrim.is-open { opacity: 1; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 50; width: min(440px, 100vw);
  background: var(--panel); border-left: 1px solid var(--line-2);
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform .32s cubic-bezier(.2, .8, .2, 1);
}
.drawer.is-open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font: 400 14px var(--wide); text-transform: uppercase; letter-spacing: .08em; }
.drawer-body { flex: 1; overflow-y: auto; padding: 4px 20px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 18px 20px 22px; }
.row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.empty { text-align: center; padding: 56px 0; color: var(--muted); }
.empty p { font: 400 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.empty .btn { margin-top: 12px; }

.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line-thumb { width: 64px; height: 64px; display: grid; place-items: center; background: #07080a; box-shadow: inset 0 0 0 1px var(--line-2); }
.line-thumb svg { width: 52px; height: 52px; }
.line-name { font: 400 11px var(--wide); text-transform: uppercase; letter-spacing: .05em; }
.line-meta { font: 400 12px var(--mono); color: var(--muted); margin-top: 3px; }
.line-controls { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.line .stepper { height: 30px; }
.line .stepper button { width: 30px; font-size: 15px; }
.line .stepper output { min-width: 26px; font-size: 13px; }
.line-remove { background: none; border: 0; padding: 0; color: var(--dim); font: 400 11px var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.line-remove:hover { color: var(--accent); }
.line-price { font: 600 15px var(--mono); align-self: start; }

/* ---------- Checkout ---------- */
.checkout { position: fixed; inset: 0; z-index: 60; background: var(--bg); overflow-y: auto; }
.checkout-inner { max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter) 64px; }
.checkout-head { display: flex; justify-content: space-between; align-items: center; height: 64px; border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.checkout-head img { height: 22px; width: auto; }
.checkout-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.checkout-form h2 { font: 400 clamp(26px, 3vw, 36px) var(--wide); text-transform: uppercase; margin-bottom: 8px; }
.co-step { font: 400 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 28px 0 12px; }
.co-step span { color: var(--accent); margin-right: 8px; }
.field { display: block; margin-bottom: 12px; }
.field span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field input { width: 100%; height: 48px; padding: 0 14px; background: var(--panel); color: var(--text); border: 1px solid var(--line-2); border-radius: 0; font: 400 15px var(--sans); }
.field input:focus { outline: none; border-color: var(--cyan); }
.field input.invalid { border-color: #ff3b3b; }
.field-row { display: grid; grid-template-columns: 1.4fr .8fr 1fr; gap: 10px; }
.ship-opts { display: grid; gap: 8px; margin-bottom: 20px; }
.ship-opt { position: relative; display: block; cursor: pointer; }
.ship-opt .seg-body small { grid-column: 1; }
.ship-opt input:checked + .seg-body { box-shadow: inset 0 0 0 1px var(--accent); background: rgba(255, 77, 0, .07); }
.ship-opt input:checked + .seg-body i { color: var(--accent); }
.form-error { color: #ff6b6b; font-size: 14px; margin: 0 0 12px; }
.summary { --c: 16px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); padding: 22px; position: sticky; top: 24px;
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c)); }
.summary .line { grid-template-columns: 52px 1fr auto; padding: 12px 0; }
.summary .line-thumb { width: 52px; height: 52px; }
.summary .line-thumb svg { width: 42px; height: 42px; }
.summary .row { color: var(--muted); font-size: 15px; }
.summary .row:first-of-type { margin-top: 12px; }
.summary .total { color: var(--text); font: 600 18px var(--mono); border-top: 1px solid var(--line-2); margin-top: 10px; padding-top: 14px; }

.confirm { position: relative; max-width: 640px; padding: 24px 0 48px; }
.liftoff { width: 160px; height: auto; margin-bottom: 8px; overflow: visible; }
.liftoff-craft { animation: liftoff 2.8s cubic-bezier(.55, 0, .9, .4) 0.6s forwards; }
.flame { opacity: 0; animation: flame-on .2s .6s forwards; }
.flame polygon { transform-box: fill-box; transform-origin: 50% 0; animation: flame .12s steps(2) infinite; }
@keyframes liftoff { 0% { transform: translateY(0); } 8% { transform: translate(-2px, 3px); } 14% { transform: translate(2px, 1px); } 100% { transform: translateY(-1400px); } }
@keyframes flame { 50% { transform: scaleY(1.4); } }
@keyframes flame-on { to { opacity: 1; } }
.confirm-title { font: 400 clamp(40px, 7vw, 76px)/1.02 var(--wide); text-transform: uppercase; letter-spacing: -.02em; margin: 6px 0 22px; }
.confirm p { color: #c3c8cd; }
.confirm .btn { margin-top: 24px; }

/* hitch "?" tip */
.tip { position: relative; display: inline-flex; }
.tip-btn {
  width: 18px; height: 18px; padding: 0; border: 1px solid var(--line-2); border-radius: 50%;
  background: transparent; color: var(--muted); font: 600 10px/1 var(--mono); cursor: help;
}
.tip-btn:hover, .tip.is-open .tip-btn { color: var(--accent-ink); background: var(--cyan); border-color: var(--cyan); }
.tip-pop {
  position: absolute; left: -60px; bottom: calc(100% + 10px); z-index: 5; width: 250px;
  transform: translateY(4px); opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s;
  padding: 10px 12px; background: #07080a; box-shadow: inset 0 0 0 1px var(--cyan), 0 12px 30px rgba(0, 0, 0, .6);
  font: 400 12px/1.5 var(--sans); letter-spacing: 0; text-transform: none; color: var(--text);
}
.tip:hover .tip-pop, .tip-btn:focus-visible + .tip-pop, .tip.is-open .tip-pop { opacity: 1; transform: none; }

/* stripe mount points */
.checkout-pay h2 { font: 400 clamp(26px, 3vw, 36px) var(--wide); text-transform: uppercase; margin-bottom: 8px; }
.express:not(:empty) { min-height: 52px; margin-bottom: 4px; }
.or { display: flex; align-items: center; gap: 12px; margin: 16px 0; font: 400 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.card-form { margin-top: 8px; padding: 18px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.form-error { margin: 14px 0 0; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; top: 76px; z-index: 70;
  display: flex; align-items: center; gap: 16px;
  transform: translate(-50%, -12px); opacity: 0; pointer-events: none;
  background: var(--text); color: var(--bg); padding: 10px 10px 10px 16px;
  font: 500 13px var(--mono); transition: opacity .2s, transform .2s;
  max-width: calc(100% - 24px);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast button { background: var(--bg); color: var(--text); border: 0; padding: 7px 12px; font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; padding-top: 12px; }
  .telemetry, .blueprint, .checkout-grid { grid-template-columns: 1fr; }
  .w8, .w6 { grid-column: span 12; }
  .w4 { grid-column: span 6; aspect-ratio: 4 / 5; }
  .field img { aspect-ratio: 4 / 3; }
  .summary { position: static; order: -1; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .payload-label { display: none; }
  .payload-btn { padding: 0 6px; }
  .hud { inset: 8px; font-size: 9px; }
  .hud-tl, .hud-tr { left: 22px; top: 6px; }
  .hud-tr { left: auto; right: 22px; }
  .hud-bl { left: 22px; bottom: 6px; }
  .hud-br { display: none; }
  .scroll-cue { right: 10px; bottom: 96px; }
  .launch-seq { grid-template-columns: 1fr; gap: 28px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { min-height: 150px; padding: 18px; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .field-row .field:first-child { grid-column: 1 / -1; }
  .foot { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 420px) {
  .seg { grid-template-columns: 1fr; }
  .swatches { gap: 6px; }
  .sw-body { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
