/* ===========================================================================
   PIXRA RACING — launch site
   Light by default, the way gaming-hardware storefronts present black
   hardware; the dark theme keeps the original launch-night look.
   Palette comes from the logo: its cyan "P" and its red rim.
   =========================================================================== */
/* Light-first: the pale studio ground gaming-hardware pages use, where black
   anodised hardware reads as black. Dark is one toggle away and keeps the
   original launch look. */
:root {
  --bg: #f4f5f8;
  --bg-2: #eceef3;
  --surface: #ffffff;
  --line: rgba(15,23,42,.08);
  --line-strong: rgba(15,23,42,.18);
  --text: #0b0e14;
  --dim: #5b6473;
  --cyan: #0899c2;
  --cyan-deep: #066a88;
  --red: #d9262f;
  --led-green: #159a44;
  --led-yellow: #b98a00;
  --led-blue: #2f6bff;
  --nav-bg: rgba(244,245,248,.86);
  --panel: rgba(255,255,255,.85);
  --label-bg: rgba(255,255,255,.92);
  --shade: 244,245,248;
  --btn-bg: #0b0e14;
  --btn-fg: #ffffff;
  --btn-glow: rgba(11,14,20,.25);
  --ghost-bg: rgba(15,23,42,.04);
  --card-shadow: 0 1px 2px rgba(16,24,40,.05), 0 12px 32px rgba(16,24,40,.08);
  --tintA: rgba(8,153,194,.07);
  --tintB: rgba(217,38,47,.04);
  --glow: rgba(8,153,194,.10);
  color-scheme: light;

  --display: "Chakra Petch", "Eurostile", "Bank Gothic", system-ui, sans-serif;
  --body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;

  --max: 1200px;
  --pad: clamp(20px, 5vw, 64px);
}

:root[data-theme="dark"] {
  --bg: #0a0c12;
  --bg-2: #0f131c;
  --surface: #141925;
  --line: rgba(255,255,255,.08);
  --line-strong: rgba(255,255,255,.16);
  --text: #eef2f8;
  --dim: #8f97ab;
  --cyan: #19d3ff;
  --cyan-deep: #0a8fb3;
  --red: #ff3b3b;
  --led-green: #2dff6a;
  --led-yellow: #ffd23f;
  --led-blue: #3d7dff;
  --nav-bg: rgba(10,12,18,.88);
  --panel: rgba(20,25,37,.7);
  --label-bg: rgba(10,12,18,.78);
  --shade: 10,12,18;
  --btn-bg: #19d3ff;
  --btn-fg: #04121a;
  --btn-glow: rgba(25,211,255,.35);
  --ghost-bg: rgba(255,255,255,.03);
  --card-shadow: none;
  --tintA: rgba(25,211,255,.10);
  --tintB: rgba(255,59,59,.07);
  --glow: rgba(25,211,255,.12);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* the page ground: a faint vignette so the fixed canvas has something to sit on */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(1200px 700px at 70% -10%, var(--tintA), transparent 60%),
    radial-gradient(900px 600px at 0% 100%, var(--tintB), transparent 60%),
    var(--bg);
}

/* the WebGL surface stays offscreen; each stage shows a copy in its own canvas */
#gl { position: fixed; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.stage-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

main, header, footer { position: relative; z-index: 1; }

/* every 3D stage is a hole the canvas shows through; it must never paint -
   except at its edges, where a vignette in the page colour fades the scene
   out so no rectangle shows where the render stops */
.stage { background: transparent; pointer-events: none; position: relative; overflow: hidden; }
.stage::after { z-index: 1; }
.teardown-stage::after { background: linear-gradient(180deg, var(--bg), transparent 12%, transparent 88%, var(--bg)) !important; }
.stage::after {
  content: ""; position: absolute; inset: -1px;
  background:
    radial-gradient(ellipse 58% 56% at 50% 50%, transparent 52%, var(--bg) 100%),
    linear-gradient(90deg, var(--bg), transparent 14%, transparent 86%, var(--bg)),
    linear-gradient(180deg, var(--bg), transparent 14%, transparent 86%, var(--bg));
}
/* the hero's DDU fills its stage edge to edge, so only the top and bottom fade */
.hero-stage::after {
  background:
    linear-gradient(90deg, var(--bg), transparent 6%, transparent 94%, var(--bg)),
    linear-gradient(180deg, var(--bg), transparent 16%, transparent 84%, var(--bg)) !important;
}
@media (max-width: 700px) {
  .stage:not(.teardown-stage)::after {
    background:
      linear-gradient(90deg, var(--bg), transparent 5%, transparent 95%, var(--bg)),
      linear-gradient(180deg, var(--bg), transparent 12%, transparent 88%, var(--bg)) !important;
  }
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(40px, 5.6vw, 74px); text-transform: uppercase; letter-spacing: -.015em; line-height: .98; }
h1 em { font-style: normal; color: var(--cyan); }
h2 { font-size: clamp(28px, 3.6vw, 46px); text-transform: uppercase; letter-spacing: -.01em; }
h3 { font-size: 20px; font-weight: 600; }
p { margin: 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cyan);
  display: inline-flex; align-items: center; gap: 10px;
}
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } }

.lede { font-size: clamp(17px, 1.4vw, 20px); color: var(--dim); max-width: min(60ch, 100%); }

/* ---- buttons ---- */
.btn {
  font-family: var(--display); font-weight: 600; font-size: 15px;
  letter-spacing: .04em; text-transform: uppercase;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 24px; border-radius: 6px;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s, box-shadow .15s, background .15s;
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.btn-primary {
  background: var(--btn-bg); color: var(--btn-fg);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 30px var(--btn-glow); }
.btn-ghost { color: var(--text); border-color: var(--line-strong); background: var(--ghost-bg); }
.btn-ghost:hover { border-color: var(--cyan); }
.btn-sm { padding: 10px 16px; font-size: 13px; }

/* ---- theme toggle ---- */
.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: transparent; color: var(--dim); cursor: pointer; display: grid; place-items: center; flex: 0 0 auto;
}
.theme-toggle:hover { color: var(--text); border-color: var(--cyan); }
.theme-toggle:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }

/* ---- nav ---- */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 28px;
  padding: 14px var(--pad);
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none;
  font-family: var(--display); font-weight: 700; letter-spacing: .18em; font-size: 16px;
}
.brand img { border-radius: 50%; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a {
  color: var(--dim); text-decoration: none;
  font-family: var(--display); font-size: 14px; letter-spacing: .06em; text-transform: uppercase;
}
.nav-links a:hover { color: var(--text); }
@media (max-width: 720px) { .nav-links { display: none; } .nav .btn { margin-left: auto; } }

/* ---- hero video background ---- */
.hero-bg {
  position: absolute; top: 0; left: 0; right: 0; height: 100vh; z-index: -1;
  overflow: hidden; pointer-events: none;
}
.hero-bg video, .hero-bg iframe {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 100%; height: 100%; min-width: 177.78vh; min-height: 56.25vw;
  object-fit: cover; border: 0; opacity: .55;
}
.hero-bg-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(var(--shade),.92) 0%, rgba(var(--shade),.72) 45%, rgba(var(--shade),.55) 100%),
    linear-gradient(180deg, rgba(var(--shade),.6), rgba(var(--shade),.2) 40%, var(--bg) 100%);
}
.hero-bg:not(.on) { display: none; }

/* ---- hero: centered, the product full-bleed under the claim ---- */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(44px, 6vw, 84px) var(--pad) 0;
  display: grid; gap: 8px; justify-items: center; text-align: center;
}
.hero-copy { display: grid; gap: 22px; justify-items: center; max-width: 62rem; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-stage { width: 100%; max-width: 1080px; aspect-ratio: 16 / 8.4; min-height: 300px; }
@media (max-width: 700px) { .hero-stage { aspect-ratio: 4 / 3; min-height: 260px; } }

/* ---- the numbers strip ---- */
.stats {
  max-width: var(--max); margin: 0 auto;
  padding: 6px var(--pad) clamp(36px, 5vw, 56px);
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
}
.stats > div { padding: 10px 18px; border-left: 1px solid var(--line); display: grid; gap: 4px; align-content: start; }
.stats > div:first-child { border-left: 0; }
.stats b {
  font-family: var(--display); font-weight: 700; font-size: clamp(30px, 3.6vw, 52px); line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stats b span { font-size: .45em; color: var(--cyan); margin-left: 2px; }
.stats small { font-size: 13px; color: var(--dim); line-height: 1.35; }
@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 18px; }
  .stats > div:nth-child(4) { border-left: 0; }
}
@media (max-width: 480px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stats > div:nth-child(odd) { border-left: 0; } }

/* ---- the games marquee ---- */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.marquee-track {
  display: flex; align-items: center; gap: 48px; width: max-content;
  padding: 16px 0; animation: mq 32s linear infinite;
}
.marquee-track span {
  font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--dim); white-space: nowrap;
}
.marquee-track i { width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); flex: 0 0 auto; }
@keyframes mq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

.ticker {
  display: flex; flex-wrap: nowrap; gap: 0; max-width: 100%; overflow-x: auto;
  scrollbar-width: none;            /* it may still scroll on a narrow phone, but never shows a bar */
  margin: 0 auto; padding: 0; text-align: left;
  border: 1px solid var(--line); border-radius: 6px;
  background: var(--panel);
  font-family: var(--mono);
}
.ticker::-webkit-scrollbar { display: none; }
.ticker > div { padding: 9px 13px; border-right: 1px solid var(--line); flex: 1 1 auto; }
.ticker > div:last-child { border-right: 0; }
.ticker dt { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.ticker dd { margin: 2px 0 0; font-size: 18px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ticker dd small { font-size: 11px; color: var(--dim); }
.ticker dd.live { font-size: 12px; display: inline-flex; align-items: center; gap: 8px; color: var(--cyan); }
.ticker dd[data-t="flag"] { min-width: 6.5ch; }
.ticker dd.flag-yellow { color: var(--led-yellow); }
.ticker dd.flag-blue { color: var(--led-blue); }
@media (max-width: 520px) {
  .ticker { flex-wrap: wrap; }
  .ticker > div { flex: 1 1 30%; border-bottom: 1px solid var(--line); }
  .ticker > div:first-child { flex-basis: 100%; border-right: 0; }
}

/* ---- the pain ---- */
.pain {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) var(--pad);
  border-top: 1px solid var(--line);
}
.pain .section-head { max-width: 70ch; }
.compare { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.compare .col {
  display: grid; gap: 14px; align-content: start;
  padding: 26px; border: 1px solid var(--line); border-radius: 16px;
  background: var(--surface); box-shadow: var(--card-shadow);
}
.compare .col h3 { font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.compare ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 16px; }
.compare li { padding-left: 24px; position: relative; color: var(--dim); }
.compare li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 12px;
  background: currentColor; -webkit-mask: var(--mark) center / contain no-repeat; mask: var(--mark) center / contain no-repeat;
}
.compare .bad li { --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 2l8 8M10 2l-8 8' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E"); }
.compare .bad li::before { color: var(--red); }
.compare .good { border-color: var(--cyan); background: linear-gradient(180deg, var(--tintA), var(--surface)); }
.compare .good h3 { color: var(--cyan); }
.compare .good li { color: var(--text); --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.5l3 3 5-7' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E"); }
.compare .good li::before { color: var(--cyan); }
@media (max-width: 900px) { .compare { grid-template-columns: 1fr; } }

/* ---- how it works ---- */
.how {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) var(--pad);
  border-top: 1px solid var(--line);
}
.section-head { display: grid; gap: 14px; max-width: 60ch; margin-bottom: 40px; }
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
}
.steps li {
  display: grid; gap: 10px; align-content: start;
  padding: 26px; border: 1px solid var(--line); border-radius: 16px;
  background: var(--surface); box-shadow: var(--card-shadow);
}
.steps p { color: var(--dim); font-size: 16px; }
.steps em { font-style: normal; color: var(--text); font-family: var(--mono); font-size: 14px; }
.step-n {
  font-family: var(--display); font-weight: 700; font-size: 28px; line-height: 1;
  color: var(--cyan);
}
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

.games {
  margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
}
.games-label { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.games ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.games li {
  font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: .04em;
  padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: 4px;
}

/* ---- dashboards gallery ---- */
.dashes, .link, .tools {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) var(--pad);
  border-top: 1px solid var(--line);
}
.dashes .section-head, .link .section-head, .tools .section-head { max-width: 72ch; }
.dash-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px;
}
.dash-grid li { display: grid; gap: 4px; }
.dash-grid img {
  display: block; width: 100%; height: auto; aspect-ratio: 854 / 480;
  border-radius: 12px; border: 1px solid var(--line-strong); background: #000;
  box-shadow: var(--card-shadow);
  transition: transform .2s, border-color .2s;
}
.dash-grid li:hover img { transform: translateY(-2px); border-color: var(--cyan); }
.dash-grid span { font-family: var(--display); font-weight: 600; font-size: 15px; margin-top: 6px; }
.dash-grid small { font-family: var(--mono); font-size: 11px; color: var(--dim); letter-spacing: .04em; }
@media (max-width: 800px) { .dash-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .dash-grid { grid-template-columns: 1fr; } }

/* ---- the link: a flow from console to accessories ---- */
.flow {
  display: grid; grid-template-columns: 1fr auto 1fr auto 1.2fr; align-items: center; gap: 0;
  margin: 8px 0 32px; padding: 26px 22px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--panel);
}
.flow .node { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid var(--line-strong); border-radius: 8px; text-align: center; }
.flow .node b { font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: .02em; }
.flow .node span { font-family: var(--mono); font-size: 11px; color: var(--dim); }
.flow .node.ddu { border-color: var(--cyan); box-shadow: 0 0 30px rgba(25,211,255,.18); }
.flow .node.fan { gap: 2px; }
.flow .node.fan b { font-size: 14px; }
.flow .node.fan span { margin-top: 6px; }
.flow .edge { position: relative; height: 2px; min-width: 70px; margin: 0 8px; background: var(--line-strong); }
.flow .edge::after { content: ""; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left: 7px solid var(--line-strong); }
.flow .edge span {
  position: absolute; left: 50%; top: -22px; transform: translateX(-50%); white-space: nowrap;
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--dim);
}
.flow .edge.fast { background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.flow .edge.fast::after { border-left-color: var(--cyan); }
.flow .edge.fast span { color: var(--cyan); }
@media (max-width: 760px) {
  .flow { grid-template-columns: 1fr; gap: 26px; }
  .flow .edge { width: 2px; height: 40px; min-width: 0; margin: 0 auto; }
  .flow .edge::after { right: -4px; top: auto; bottom: -2px; border: 5px solid transparent; border-top: 7px solid var(--line-strong); }
  .flow .edge.fast::after { border-top-color: var(--cyan); border-left-color: transparent; }
  .flow .edge span { left: 16px; top: 50%; transform: translateY(-50%); }
}
.link-facts, .ota-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; }
.link-facts li, .ota-facts li { color: var(--dim); padding-left: 22px; position: relative; }
.link-facts li::before, .ota-facts li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 2px; background: var(--cyan); }
.link-facts b, .ota-facts b { color: var(--text); font-weight: 600; }
@media (max-width: 760px) { .link-facts, .ota-facts { grid-template-columns: 1fr; } }

/* ---- the designers ---- */
.tool img {
  display: block; width: 100%; height: auto;
  border-radius: 12px; border: 1px solid var(--line-strong); background: #111;
  box-shadow: var(--card-shadow);
}
.tool h3 { margin-top: 14px; }
.tool p { color: var(--dim); margin-top: 8px; font-size: 16px; }
.tool code { font-family: var(--mono); font-size: 14px; color: var(--text); }
.tool-wide { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 32px; align-items: center; margin-bottom: 36px; }
.tool-wide h3 { margin-top: 0; }
.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 28px; }
@media (max-width: 860px) { .tool-wide, .tool-grid { grid-template-columns: 1fr; } }

/* ---- OTA ---- */
.ota { border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--tintA), transparent); }
.ota-inner {
  max-width: var(--max); margin: 0 auto; padding: clamp(48px, 7vw, 96px) var(--pad);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 40px; align-items: start;
}
.ota-inner > div { display: grid; gap: 14px; }
.ota-facts { grid-template-columns: 1fr; }
@media (max-width: 860px) { .ota-inner { grid-template-columns: 1fr; } }

/* ---- teardown: a tall section with a sticky, full-height stage ---- */
.teardown { height: 300vh; border-top: 1px solid var(--line); position: relative; }
.teardown-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.teardown-stage { position: absolute; inset: 0; }
.teardown-copy {
  position: absolute; left: var(--pad); top: 12vh; max-width: 44ch; display: grid; gap: 14px; z-index: 2;
  opacity: calc(1 - var(--p, 0) * 1.6);
}
.teardown-copy p:not(.eyebrow) { color: var(--dim); }
.teardown-labels span {
  position: absolute; transform: translate(-50%, -50%);
  font-family: var(--mono); font-size: 12px; letter-spacing: .04em; white-space: nowrap;
  color: var(--text); background: var(--label-bg); border: 1px solid var(--line-strong);
  padding: 6px 10px; border-radius: 4px; opacity: 0; transition: opacity .3s; pointer-events: none;
}
.teardown-labels span::before {
  content: ""; position: absolute; left: 50%; width: 1px; background: linear-gradient(var(--cyan), rgba(25,211,255,.25));
  height: var(--lead, 60px);
}
.teardown-labels span[data-dy="200"]::before, .teardown-labels span[data-dy="210"]::before, .teardown-labels span[data-dy="170"]::before, .teardown-labels span[data-dy="-150"]::before { --lead: 130px; }
.teardown-labels span[data-dy="-230"]::before { --lead: 190px; }
.teardown-labels span[data-dy^="-"]::before { top: 100%; }
.teardown-labels span:not([data-dy^="-"])::before { bottom: 100%; transform: scaleY(-1); }
.teardown-labels span.on { opacity: 1; }
.teardown-hint {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--dim);
  opacity: calc(1 - var(--p, 0) * 4);
}
.teardown-hint::after { content: ""; display: block; width: 1px; height: 28px; margin: 8px auto 0; background: linear-gradient(var(--cyan), transparent); }
@media (max-width: 700px) {
  .teardown-copy { top: 84px; max-width: calc(100vw - 2 * var(--pad)); gap: 10px; }
  .teardown-copy h2 { font-size: 34px; }
  .teardown-copy p:not(.eyebrow) { font-size: 15px; }
  .teardown-labels span { font-size: 11px; }
}

/* ---- hardware ---- */
.hardware {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) var(--pad);
  border-top: 1px solid var(--line);
}
.hardware .section-head { max-width: 70ch; }
.hw-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.hw { padding: 24px; border: 1px solid var(--line); border-radius: 16px; display: grid; gap: 14px; align-content: start; background: var(--surface); box-shadow: var(--card-shadow); }
.hw h3 { font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); }
.hw ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hw li { display: grid; gap: 2px; padding-left: 16px; position: relative; }
.hw li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 2px; background: var(--cyan); }
.hw b { font-family: var(--mono); font-weight: 500; font-size: 14px; }
.hw span { font-size: 14px; color: var(--dim); }
@media (max-width: 960px) { .hw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .hw-grid { grid-template-columns: 1fr; } }

/* ---- product sections ---- */
.product[data-num] { position: relative; }
.product[data-num]::before {
  content: attr(data-num); position: absolute; top: 18px; right: var(--pad);
  font-family: var(--display); font-weight: 700; font-size: clamp(84px, 12vw, 170px); line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--line-strong); pointer-events: none; z-index: 2;
}
@media (max-width: 700px) { .product[data-num]::before { font-size: 72px; top: 12px; } }
.product {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) var(--pad);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px); align-items: center;
  border-top: 1px solid var(--line);
}
.product.flip > .product-stage { order: 2; }
.product-stage { aspect-ratio: 1 / 1; width: 100%; max-height: 560px; min-height: 300px; }
.product-copy { display: grid; gap: 18px; }
.product-copy > p { color: var(--dim); }
@media (max-width: 900px) {
  .product { grid-template-columns: 1fr; }
  .product.flip > .product-stage { order: 0; }
  .product-stage { aspect-ratio: 4 / 3; min-height: 260px; }
}

.feats { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.feats li { padding-left: 22px; position: relative; }
.feats li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 10px; height: 2px; background: var(--cyan);
}

.specs {
  margin: 8px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: var(--surface); box-shadow: var(--card-shadow);
  font-family: var(--mono); font-size: 13px;
}
.specs > div { padding: 12px 14px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.specs > div:nth-child(2n) { border-right: 0; }
.specs > div:nth-last-child(-n+2) { border-bottom: 0; }
.specs dt { color: var(--dim); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.specs dd { margin: 3px 0 0; }
@media (max-width: 480px) {
  .specs { grid-template-columns: 1fr; }
  .specs > div { border-right: 0; }
  .specs > div:nth-last-child(2) { border-bottom: 1px solid var(--line); }
}

.readout {
  font-family: var(--mono); font-size: 13px; color: var(--dim);
  display: flex; gap: 14px; align-items: baseline;
}
.readout b { color: var(--cyan); font-weight: 500; font-variant-numeric: tabular-nums; font-size: 15px; }

/* ---- waitlist ---- */
.waitlist {
  border-top: 1px solid var(--line);
  padding: clamp(56px, 8vw, 120px) var(--pad);
  background:
    radial-gradient(800px 400px at 50% 0%, var(--glow), transparent 65%);
}
.waitlist-inner { max-width: 620px; margin: 0 auto; display: grid; gap: 18px; }
.waitlist .lede b { color: var(--text); font-weight: 600; }
.timeline {
  list-style: none; margin: 6px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0;
}
.timeline li { position: relative; padding: 18px 14px 0 0; display: grid; gap: 4px; border-top: 2px solid var(--line-strong); }
.timeline li::before {
  content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--line-strong);
}
.timeline li.done { border-top-color: var(--led-green); }
.timeline li.done::before { background: var(--led-green); border-color: var(--led-green); }
.timeline li.next { border-top-color: var(--cyan); }
.timeline li.next::before { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.timeline b { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; }
.timeline span { font-size: 14px; color: var(--dim); }
@media (max-width: 520px) { .timeline { grid-template-columns: 1fr; gap: 14px; } }
#waitlist-form { display: grid; gap: 18px; margin-top: 8px; }
.field { display: grid; gap: 6px; }
.field span, .chips legend {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim);
}
.field input {
  font: 16px var(--body); color: var(--text);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 6px;
  padding: 14px 16px; width: 100%;
}
.field input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(25,211,255,.18); }
.chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { padding: 0; margin-bottom: 8px; float: left; width: 100%; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span {
  display: inline-block; padding: 8px 14px; border-radius: 4px;
  border: 1px solid var(--line-strong);
  font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: .04em;
  color: var(--dim); transition: all .15s;
}
.chips input:checked + span { color: #04121a; background: var(--cyan); border-color: var(--cyan); }
.chips input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
#waitlist-form .btn { justify-self: start; }
.form-note { font-size: 14px; color: var(--dim); min-height: 1.4em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }   /* the honeypot */
.form-note.ok { color: var(--led-green); }
.form-note.err { color: var(--red); }

/* ---- footer ---- */
.foot {
  border-top: 1px solid var(--line);
  padding: 32px var(--pad) 48px;
  display: grid; gap: 16px; max-width: var(--max); margin: 0 auto;
}
.foot > div { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; letter-spacing: .06em; }
.foot img { border-radius: 50%; }
.foot p { color: var(--dim); font-size: 13px; max-width: 72ch; }
