/* ==========================================================================
   RENATA — marketing site
   Design system: premium studio with retro soul (Layer 2 of the site prompt)
   Retro appears only as surgical accents: bitmap mono labels, phosphor-cyan
   interactives, stepped square-wave motifs, scanlines INSIDE monitor frames.
   ========================================================================== */

/* ---- Fonts (self-hosted, offline-friendly — no CDN) --------------------- */

@font-face {
  font-family: "Inter";
  /* second src entry: engines that don't recognise "woff2-variations"
     still load the file as plain woff2 (static instances) */
  src: url("../assets/fonts/InterVariable.woff2") format("woff2-variations"),
       url("../assets/fonts/InterVariable.woff2") format("woff2");
  /* the shipped file is a SUBSET of Inter variable (41KB, was 344KB): Latin +
     Latin-1 + punctuation/arrows the site uses, wght limited to 400-700 (the
     CSS only uses 400/500/600), opsz axis kept whole. The untouched original
     sits next to it as InterVariable.full.woff2 (never fetched) — re-subset
     from it with fontTools if new glyphs or weights are ever needed. */
  font-weight: 400 700;
  font-style: normal;
  /* optional (not swap): on a slow first visit the system fallback stays for
     the whole page life instead of re-painting the hero H1 seconds in —
     that late swap was the page's LCP on simulated slow 4G. Inter still
     shows on every fast or warm-cache load. */
  font-display: optional;
}

@font-face {
  font-family: "Departure Mono";
  src: url("../assets/fonts/DepartureMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---- Tokens -------------------------------------------------------------- */

:root {
  /* colour */
  --bg: #08080F;            /* deep black-blue page background */
  --panel: #0A0A0F;         /* raised panels */
  --line: #1C1C28;          /* hairline borders, 1px */
  --text: #F2F2F5;          /* primary text */
  --text-2: #F2F2F5;        /* secondary text — white for clarity over the
                               Emily videos (owner decision 2026-07-03;
                               was #8A8A99) */
  --cyan: #00E5FF;          /* the single brand accent */
  --cyan-hover: #66EFFF;
  /* (CTA buttons use the electric-cyan brand accent — owner decision) */
  --term-green: #00E5FF;    /* terminal / boot readouts — brand cyan */

  /* type */
  --font-sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: "Departure Mono", "Consolas", ui-monospace, monospace;

  /* layout — 8px base scale */
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-5: 40px;
  --s-6: 48px;
  --s-8: 64px;
  --s-10: 80px;
  --max-w: 1200px;
  --section-pad: 160px;
  --radius: 6px;            /* corners 6px max */
  --nav-h: 64px;
}

@media (max-width: 900px) {
  :root {
    --section-pad: 96px;
  }
}

/* ---- Base ---------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 28px;
  font-weight: 400;
  -webkit-text-size-adjust: 100%;
}

/* stepped square-wave line running down the page margin — the one page-level
   retro texture. Hidden until there is real margin to live in. */
body::before {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  left: 40px;
  width: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='64'%3E%3Cpath d='M4 0V16H12V48H4V64' fill='none' stroke='%231C1C28' stroke-width='1'/%3E%3C/svg%3E") repeat-y;
  pointer-events: none;
  z-index: 0;
  display: none;
}

/* (The stepped square-wave margin line stays disabled — it crossed ghost
   Emily #1's body once she took over the left margin.) */

img {
  max-width: 100%;
  height: auto;
  display: block;
}

::selection {
  background: var(--cyan);
  color: var(--bg);
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--bg);
  color: var(--cyan);
  padding: 8px 16px;
  border: 1px solid var(--line);
}

.skip-link:focus {
  left: 8px;
  top: 8px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Type ---------------------------------------------------------------- */

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

h2 {
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.08;
}

.h1 {
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.05;
}

.h2-quiet {
  font-size: clamp(28px, 3vw, 40px);
}

p {
  margin: 0;
}

.body-copy {
  color: var(--text-2);
  max-width: 560px;
}

.body-copy strong {
  color: var(--text);
  font-weight: 500;
}

.subhead {
  color: var(--text-2);
  font-size: 19px;
  line-height: 30px;
  max-width: 540px;
}

.footnote {
  font-size: 13px;
  line-height: 20px;
  color: var(--text-2);
  max-width: 560px;
}

/* Departure Mono — bitmap accent face. ONLY for eyebrows, stat numerals,
   format tags, nav labels, terminal readouts. Always uppercase, 12–14px,
   +0.08em tracking, rendered crisp. Never at paragraph size. */
.mono,
.select-label {
  font-family: var(--font-mono);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  -webkit-font-smoothing: none;
}

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  color: var(--cyan);
  -webkit-font-smoothing: none;
  margin-bottom: var(--s-2);
}

/* ---- Layout -------------------------------------------------------------- */

.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--s-3);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--s-3);
}

.section {
  padding-block: var(--section-pad);
  position: relative;
  z-index: 1;
}

/* ---- Nav ----------------------------------------------------------------- */

/* No full-width hairlines anywhere — they read as black lines crossing the
   fixed ghost Emilys as the page scrolls (owner fix). */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(8, 8, 15, 0.92);
}

.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
}

.wordmark {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 38px;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  line-height: 1;
}

.wm-accent {
  color: var(--cyan);
}

.nav-links {
  display: flex;
  gap: var(--s-4);
}

.nav-links a {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: var(--text-2);
  text-decoration: none;
  -webkit-font-smoothing: none;
  transition: color 150ms ease;
}

.nav-links a:hover {
  color: var(--cyan);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }
}

/* ---- Buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.35;
  padding: 14px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  text-align: left;
}

/* Electric-cyan CTA — Renata's Modern-theme brand colour. Hover reacts:
   brightens and glows. */
.btn-amber {
  background: var(--cyan);
  color: var(--bg);
  transition: background-color 150ms ease, box-shadow 150ms ease;
}

.btn-amber:hover {
  background: var(--cyan-hover);
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.45);
}

/* Ghost — hard offset shadow that collapses with a 2px down-right pixel
   shift, 80ms steps(2): reads like a physical button press at 50Hz. */
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
  box-shadow: 2px 2px 0 0 var(--line);
  transition: transform 80ms steps(2, end), box-shadow 80ms steps(2, end), border-color 150ms ease;
}

.btn-ghost:hover {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 0 var(--line);
  border-color: var(--text-2);
}

.btn-nav {
  padding: 10px 16px;
  font-size: 13px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  align-items: center;
}

@media (max-width: 480px) {
  .btn {
    font-size: 14px;
    padding: 12px 16px;
  }

  .btn-nav {
    padding: 10px 14px;
    font-size: 12px;
  }
}

/* ---- Monitor frame ---------------------------------------------------------
   Every screenshot/video sits in one: 1px hairline border, 6px radius,
   Departure Mono caption chip. Scanlines live INSIDE the screen only. */

.monitor {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 10px;
  min-width: 0;
}

.monitor-screen {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  background: #000;
}

.monitor-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(242, 242, 245, 0.7) 0 1px,
    transparent 1px 3px
  );
  opacity: 0.06;
  pointer-events: none;
}

.monitor-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  margin: 10px 2px 0;
}

.caption-chip {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: var(--text-2);
  -webkit-font-smoothing: none;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 4px 8px;
  background: var(--bg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.power-led {
  flex: none;
  width: 6px;
  height: 6px;
  background: var(--cyan);
}

/* .clean — video surfaces: maximum fidelity. No bezel padding, no scanlines,
   no CRT treatment; just the hairline frame and the caption row. */
.monitor.clean {
  padding: 0;
  overflow: hidden;
}

.monitor.clean .monitor-screen {
  border-radius: 0;
}

.monitor.clean .monitor-screen::after {
  display: none;
}

.monitor.clean .monitor-caption {
  margin: 0;
  padding: 10px 12px;
}

/* ---- Click-to-play video card --------------------------------------------- */

.video-card .monitor-screen {
  cursor: pointer;
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 8, 15, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--cyan);
  font-size: 20px;
  cursor: pointer;
  box-shadow: 2px 2px 0 0 var(--line);
  transition: transform 80ms steps(2, end), box-shadow 80ms steps(2, end), border-color 150ms ease;
}

.play-btn:hover {
  transform: translate(calc(-50% + 2px), calc(-50% + 2px));
  box-shadow: 0 0 0 0 var(--line);
  border-color: var(--cyan);
}

.monitor-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

/* ---- (2) Hero -------------------------------------------------------------- */

.hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  padding-block: var(--s-10);
  position: relative;
  z-index: 1;
}

.capture .hero {
  min-height: 0;
}

/* Under ?capture, pin the vh-sized offsets to 900px-viewport pixel
   equivalents so tall-window full-page captures render at true scale.
   The fixed stages become absolute at ?stagey= / ?stagey2= (set by JS) so
   a full-page capture can show them at simulated scroll positions. */
.capture .emily-stage,
.capture .emily-stage-2 {
  position: absolute;
  height: 900px;
}

.capture .scrub-v1,
.capture .emily-stage .emily-still,
.capture .scrub-chips {
  top: -90px;
  left: -135px;
  height: 1350px;
}

.capture .scrub-chips {
  position: absolute;
}

.capture .scrub-v2,
.capture .emily-stage-2 .emily-still {
  top: -54px;
  height: 1035px;
}

.hero-grid {
  align-items: center;
}

.hero-copy {
  /* start one column in — Emily owns the left margin */
  grid-column: 2 / span 5;
}

.hero-copy .h1 {
  margin-bottom: var(--s-3);
}

.hero-copy .subhead {
  margin-bottom: var(--s-5);
}

.hero-media {
  grid-column: 7 / span 6;
}

.hero-screen {
  aspect-ratio: 16 / 9;
}

.hero-screen video,
.hero-screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 900px) {
  .hero {
    min-height: 0;
  }

  .hero-copy,
  .hero-media {
    grid-column: 1 / -1;
  }

  .hero-media {
    margin-top: var(--s-6);
  }
}

/* ---- (3) Stat strip -------------------------------------------------------- */

.stat-strip {
  padding-block: var(--s-4);
  position: relative;
  z-index: 1;
}

.stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-6);
  justify-content: space-between;
}

.stat {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.stat-num {
  font-family: var(--font-mono);
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--cyan);
  -webkit-font-smoothing: none;
}

.stat-label {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: var(--text-2);
  -webkit-font-smoothing: none;
}

/* ---- (4) Generator --------------------------------------------------------- */

.gen-copy {
  grid-column: 1 / span 6;
}

.gen-copy h2 {
  margin-bottom: var(--s-3);
}

.gen-copy .body-copy {
  margin-bottom: var(--s-6);
}

.gen-media {
  grid-column: 8 / span 5;
  align-self: start;
}

@media (max-width: 900px) {
  .gen-copy,
  .gen-media {
    grid-column: 1 / -1;
  }

  .gen-media {
    margin-top: var(--s-6);
    max-width: 520px;
  }
}

/* ---- (5) Studio ------------------------------------------------------------ */

.studio-head {
  align-items: end;
  margin-bottom: var(--s-6);
}

.studio-copy {
  grid-column: 1 / span 6;
}

.studio-copy h2 {
  margin-bottom: var(--s-3);
}

.studio-promo {
  grid-column: 8 / span 5;
}

.studio-big {
  /* the only landscape UI capture — use it big */
}

@media (max-width: 900px) {
  .studio-copy,
  .studio-promo {
    grid-column: 1 / -1;
  }

  .studio-promo {
    margin-top: var(--s-4);
  }
}

/* ---- (6) Convert — the on-ramp, deliberately quieter ------------------------ */

.convert-wrap {
  max-width: 800px;
}

.convert-wrap .eyebrow {
  color: var(--text-2);
}

.convert-wrap .h2-quiet {
  margin-bottom: var(--s-3);
}

.convert-wrap .body-copy {
  margin-bottom: var(--s-2);
  max-width: 640px;
}

.convert-wrap .footnote {
  margin-bottom: var(--s-6);
  max-width: 640px;
}

.convert-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
  margin-bottom: var(--s-3);
}

@media (max-width: 700px) {
  .convert-cards {
    grid-template-columns: 1fr;
  }
}

/* Terminal readout — green-on-black, scanlined like every monitor */
.terminal {
  padding: 20px 22px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 22px;
  letter-spacing: 0.04em;
  color: var(--term-green);
  -webkit-font-smoothing: none;
  overflow-x: auto;
}

.t-line {
  white-space: nowrap;
}

.t-ts {
  color: #1E9E52;
}

.t-comment {
  margin-top: 12px;
  color: #6ADf9B;
}

/* ---- (7) Export ------------------------------------------------------------ */

.section-export h2 {
  max-width: 800px;
  margin-bottom: var(--s-5);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1);
}

.format-tag {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  color: var(--text);
  -webkit-font-smoothing: none;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 6px 12px;
  background: var(--panel);
}

.export-caption {
  margin-top: var(--s-3);
  color: var(--text-2);
  font-size: 15px;
  line-height: 24px;
  max-width: 640px;
}

/* ---- (8) Light Synth — full-bleed band -------------------------------------- */

.lightsynth {
  position: relative;
  z-index: 1;
  padding-block: 200px;
  background-image:
    linear-gradient(rgba(8, 8, 15, 0.6), rgba(8, 8, 15, 0.6)),
    url("../assets/img/lightsynth_bg.jpg");
  background-size: cover;
  background-position: center;
  /* constrained to the text column width instead of full-bleed */
  width: min(100% - 48px, var(--max-w));
  margin-inline: auto;
  border-radius: var(--radius);
  overflow: hidden;
}

.ls-content .eyebrow {
  color: var(--cyan);
}

.ls-content h2 {
  margin-bottom: var(--s-2);
}

.ls-body {
  color: var(--text);
  opacity: 0.9;
  font-size: 19px;
  line-height: 30px;
  margin-bottom: var(--s-5);
}

.lightsynth .btn-ghost {
  background: rgba(8, 8, 15, 0.55);
}

@media (max-width: 900px) {
  .lightsynth {
    padding-block: 128px;
  }
}

/* ---- (9) Themes -------------------------------------------------------------
   The section retints via --t-accent / --t-deep. Swaps are an instant cut
   with a 150ms steps(3) palette snap — no crossfade. */

.themes {
  --t-accent: var(--cyan);
  --t-deep: var(--line);
}

.themes[data-theme="atari"]  { --t-accent: #00FF00; --t-deep: #000000; }
.themes[data-theme="c64"]    { --t-accent: #9FE000; --t-deep: #40318D; }
.themes[data-theme="amiga"]  { --t-accent: #FF8800; --t-deep: #0055AA; }
.themes[data-theme="zx"]     { --t-accent: #F2F2F5; --t-deep: #D42020; }
.themes[data-theme="sega"]   { --t-accent: #FF4438; --t-deep: #101014; }
.themes[data-theme="nes"]    { --t-accent: #E45C10; --t-deep: #3C3C44; }
.themes[data-theme="gameboy"]{ --t-accent: #9BBC0F; --t-deep: #FF4FD8; }

.themes h2 {
  max-width: 900px;
  margin-bottom: var(--s-5);
}

.theme-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1);
  margin-bottom: var(--s-5);
  position: relative;
  padding-bottom: 8px;
}

.theme-tab {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  -webkit-font-smoothing: none;
  color: var(--text-2);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 8px 14px;
  cursor: pointer;
  transition: color 150ms steps(3, end), border-color 150ms steps(3, end), background-color 150ms steps(3, end), box-shadow 150ms steps(3, end);
}

/* Four tabs carry their machine's own OUTLINE colour, sampled from that theme's
   player screenshot. Boxes are never filled — always transparent (black) bg +
   white text, only the 1px border is coloured. The other four keep the default
   grey outline. The outline colour is fixed per option (it doesn't change on
   hover/active); the sliding underline marks which tab is active. */
.theme-tab[data-theme="modern"]  { border-color: var(--text-2); }
.theme-tab[data-theme="atari"]   { border-color: #00FF00; }
.theme-tab[data-theme="c64"]     { border-color: #352879; }
.theme-tab[data-theme="amiga"]   { border-color: #0055AA; }
.theme-tab[data-theme="zx"]      { border-color: #FF0000; }
.theme-tab[data-theme="sega"]    { border-color: #1155CC; }
.theme-tab[data-theme="nes"]     { border-color: #C9C7C3; }
.theme-tab[data-theme="gameboy"] { border-color: #9BBC0F; }

.theme-tab:hover {
  box-shadow: 0 0 0 1px rgba(242, 242, 245, 0.28);
}

/* Atari: hard black offset borders */
.themes[data-theme="atari"] .theme-tab[aria-pressed="true"] {
  box-shadow: 3px 3px 0 0 #000000;
}

/* Sliding active underline — GSAP moves it 200ms expo.out; ZX gets stripes */
.tab-underline {
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--t-accent);
  transition: background-color 150ms steps(3, end);
}

.themes[data-theme="zx"] .tab-underline {
  background: linear-gradient(to right, #D42020 0 25%, #E0C020 25% 50%, #20A020 50% 75%, #20B0C0 75% 100%);
}

/* Per-theme underline colours (Modern cyan / C64 lime / Amiga orange come from
   --t-accent; ZX is the rainbow above; these four are owner overrides). */
.themes[data-theme="atari"]   .tab-underline { background: #F2F2F5; } /* white */
.themes[data-theme="sega"]    .tab-underline { background: #FFD400; } /* yellow */
.themes[data-theme="nes"]     .tab-underline { background: #E4000F; } /* red */
.themes[data-theme="gameboy"] .tab-underline { background: #FF4FD8; } /* magenta */

.themes .power-led {
  background: var(--t-accent);
  transition: background-color 150ms steps(3, end);
}

.themes .caption-chip {
  transition: color 150ms steps(3, end), border-color 150ms steps(3, end);
}

.themes #theme-caption {
  color: var(--text-2);
  border-color: var(--t-deep);
}

/* The caption box below the screenshot takes the selected theme's OUTLINE
   colour for the same four machines as the tabs (sampled from their
   screenshots). Never filled — black bg + white text, coloured border only. */
.themes[data-theme="modern"]  #theme-caption { border-color: var(--text-2); }
.themes[data-theme="atari"]   #theme-caption { border-color: #00FF00; }
.themes[data-theme="c64"]     #theme-caption { border-color: #352879; }
.themes[data-theme="amiga"]   #theme-caption { border-color: #0055AA; }
.themes[data-theme="zx"]      #theme-caption { border-color: #FF0000; }
.themes[data-theme="sega"]    #theme-caption { border-color: #1155CC; }
.themes[data-theme="nes"]     #theme-caption { border-color: #C9C7C3; }
.themes[data-theme="gameboy"] #theme-caption { border-color: #9BBC0F; }

.theme-select-wrap {
  display: none;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-4);
}

.select-label {
  color: var(--text-2);
}

#theme-select {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 8px 12px;
}

@media (max-width: 768px) {
  .theme-tabs {
    display: none;
  }

  .theme-select-wrap {
    display: flex;
  }
}

.themes-grid {
  align-items: start;
}

.themes-shot {
  grid-column: 1 / span 6;
}

.themes-shot .monitor {
  max-width: 460px;
}

/* kept in the LEFT half so it never covers ghost Emily #2 on the right */
.themes-promo {
  grid-column: 1 / span 7;
  margin-top: var(--s-4);
}

@media (max-width: 900px) {
  .themes-shot,
  .themes-promo {
    grid-column: 1 / -1;
    position: static;
  }

  .themes-promo {
    margin-top: var(--s-4);
  }
}

/* ---- (10) Compare ------------------------------------------------------------ */

#compare h2 {
  margin-bottom: var(--s-5);
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  /* narrow enough to stay clear of ghost Emily #2 on the right */
  max-width: 820px;
}

.compare-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.compare-table th,
.compare-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-table thead th {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-2);
  -webkit-font-smoothing: none;
}

.compare-table thead th.col-renata {
  color: var(--cyan);
}

.compare-table tbody th {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 15px;
  color: var(--text);
  text-align: left;
  white-space: nowrap;
}

.compare-table td {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  -webkit-font-smoothing: none;
}

.compare-table .col-renata {
  background: rgba(0, 229, 255, 0.04);
  border-inline: 1px solid var(--line);
}

.tick {
  color: var(--cyan);
  font-size: 14px;
}

.tick-plain {
  color: var(--text);
  font-size: 14px;
}

#compare .footnote {
  margin-top: var(--s-3);
  max-width: none;
}

/* ---- (11) CTA ----------------------------------------------------------------- */

.cta {
  text-align: center;
}

.cta-head {
  max-width: 900px;
  margin-inline: auto;
  margin-bottom: var(--s-6);
}

.cta-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-2);
  margin-bottom: var(--s-3);
}

.cta-input {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  width: min(360px, 100%);
}

.cta-input::placeholder {
  color: var(--text-2);
}

.cta-note {
  color: var(--text-2);
  font-size: 15px;
  line-height: 24px;
}

.cta-confirm {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  color: var(--cyan);
  -webkit-font-smoothing: none;
  padding: 14px 0;
}

/* ---- (12) Footer ---------------------------------------------------------------- */

.footer {
  padding-block: var(--s-8);
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--s-6);
  flex-wrap: wrap;
}

.footer-left p {
  color: var(--text-2);
  font-size: 15px;
  line-height: 26px;
}

/* The trademark disclaimer (A14 theme rename). Deliberately quiet — it is a
   legal courtesy line, not a message, and must never compete with the copy
   above it. */
.footer-left p.footer-legal {
  margin-top: 12px;
  max-width: 46ch;
  font-size: 12px;
  line-height: 19px;
  opacity: 0.62;
}

.social-row {
  list-style: none;
  margin: 0 0 var(--s-2);
  padding: 0;
  display: flex;
  gap: var(--s-3);
}

.social-link {
  display: inline-flex;
  color: var(--text-2);
  transition: color 150ms ease, transform 80ms steps(2, end);
}

.social-link:hover {
  color: var(--cyan);
  transform: translate(2px, 2px);
}

.footer-handles {
  display: flex;
  gap: var(--s-3);
}

.footer-handles a {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: var(--text-2);
  text-decoration: none;
  -webkit-font-smoothing: none;
  transition: color 150ms ease;
}

.footer-handles a:hover {
  color: var(--cyan);
}

@media (max-width: 700px) {
  .footer-inner {
    flex-direction: column;
  }
}

/* ---- Decorative layers ------------------------------------------------------ */

.avatar-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.hero > .container,
.section > .container,
.lightsynth > .container {
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .avatar-layer,
  .emily-stage,
  .emily-stage-2,
  .scrub-chips {
    display: none !important;
  }
}

/* ---- Emily scroll-scrub videos ----------------------------------------------
   Desktop only: the videos replace the stills once loaded, and their
   currentTime is driven by scroll (see main.js). Stills remain the
   reduced-motion / mobile / no-JS fallbacks. */

.scrub-video {
  display: block;
}

.emily-still.scrub-replaced {
  visibility: hidden;
}

/* GIANT ghost Emily — a page-level stage down the left of the first
   viewports. Her body reads well over two screens tall; the video's right
   side and the stage's bottom dissolve into the page. */
main {
  position: relative;
}

/* Ghost Emily #1 is FIXED to the viewport: she holds the top-left corner,
   half in half out, while the page scrolls over her — then fades away as
   the Light Synth section approaches (opacity driven from main.js). */
.emily-stage {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.scrub-v1,
.emily-stage .emily-still {
  position: absolute;
  /* top-left, her full head in view from the first frame, shifted toward
     the left edge */
  top: -10vh;
  left: -15vh;
  height: 150vh;
  width: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(to right, #000 0 45%, transparent 80%);
  mask-image: linear-gradient(to right, #000 0 45%, transparent 80%);
}

/* Pillar chips that appear beside Emily mid-scrub. A standalone fixed layer
   ABOVE the content (the ghost stage sits below it) so the chips are real,
   clickable links; the container matches the video box so % coordinates are
   video coordinates. */
.scrub-chips {
  position: fixed;
  top: -10vh;
  left: -15vh;
  height: 150vh;
  aspect-ratio: 9 / 16;
  pointer-events: none;
  z-index: 5;
}

.scrub-chips .caption-chip {
  position: absolute;
  left: 20%;
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(8, 8, 15, 0.8);
  opacity: 0;
  text-decoration: none;
  cursor: pointer;
  transform: translateY(6px);
  transition: opacity 200ms steps(3, end), transform 200ms steps(3, end),
    background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.scrub-chips .caption-chip.on {
  pointer-events: auto;
}

.scrub-chips .caption-chip:hover {
  background: var(--cyan);
  color: var(--bg);
  border-color: var(--cyan);
  transform: translate(2px, 2px);
}

.scrub-chips .caption-chip:nth-child(1) { top: 46%; }
.scrub-chips .caption-chip:nth-child(2) { top: 52%; }
.scrub-chips .caption-chip:nth-child(3) { top: 58%; }
.scrub-chips .caption-chip:nth-child(4) { top: 64%; }

.scrub-chips .caption-chip.on {
  opacity: 1;
  transform: translateY(0);
}

/* Ghost Emily #2 — the Orbit. Fixed to the viewport like ghost #1, but
   mirrored: she holds the RIGHT side at the same scale as Emily #1, fading
   in just below Light Synth (opacity driven from main.js) and performing
   until the page end. */
.emily-stage-2 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.scrub-v2,
.emily-stage-2 .emily-still {
  position: absolute;
  top: -6vh;
  right: 0;
  transform: translateX(32%);
  height: 115vh;
  width: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(to left, #000 0 55%, transparent 85%);
  mask-image: linear-gradient(to left, #000 0 55%, transparent 85%);
}

/* ---- Mark scroll-scrub ghosts (the developer) --------------------------------
   Stage A rides the TOP-RIGHT margin while Emily #1 holds the top-left;
   stage B rides the BOTTOM-LEFT margin once Emily #2 owns the bottom-right.
   Both play the SAME clip (one fetch, one Blob URL, two windows into the
   take): A scrubs the typing→glance beats, B the commit→lean-back→end pose.
   Mirrors Emily's treatment: fixed stage, mask fades, stills as fallback. */

.mark-stage,
.mark-stage-2 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

/* Stage A: his face lands in the right margin; desk + monitor extend left
   under the hero content, the frame's right side hangs off the page edge. */
.mark-va,
.mark-stage .mark-still {
  position: absolute;
  top: 6vh;
  height: 56vh;
  /* face sits at ~0.56 of the 16:9 frame width — park it ~140px in from
     the right edge: right = 140px - 0.44 * (56vh * 16/9) */
  right: calc(140px - 43.8vh);
  width: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  -webkit-mask-image:
    linear-gradient(to left, #000 0 42%, transparent 74%),
    linear-gradient(to bottom, transparent 0, #000 10%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to left, #000 0 42%, transparent 74%),
    linear-gradient(to bottom, transparent 0, #000 10%, #000 88%, transparent 100%);
  mask-composite: intersect;
}

/* Stage B: lower-left quadrant, big — Mark fully on screen WITH the
   keyboard (owner direction); only the monitor's left half hangs off the
   page edge. The shelf side fades right so the CTA column stays clear. */
.mark-vb,
.mark-stage-2 .mark-still {
  position: absolute;
  top: 35vh;
  height: 64vh;
  /* show the frame from x≈0.28 (keyboard starts ≈0.33, face ≈0.55):
     left = -0.28 * (64vh * 16/9) */
  left: -31.9vh;
  width: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  -webkit-mask-image:
    linear-gradient(to right, #000 0 64%, transparent 90%),
    linear-gradient(to bottom, transparent 0, #000 10%, #000 90%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, #000 0 64%, transparent 90%),
    linear-gradient(to bottom, transparent 0, #000 10%, #000 90%, transparent 100%);
  mask-composite: intersect;
}

.mark-still.scrub-replaced {
  visibility: hidden;
}

/* Capture toolkit: pin the vh-sized offsets to 900px-viewport equivalents
   (?stagey3 / ?stagey4 park the stages absolute at page offsets). */
.capture .mark-stage,
.capture .mark-stage-2 {
  position: absolute;
  height: 900px;
}

.capture .mark-va,
.capture .mark-stage .mark-still {
  top: 54px;
  height: 504px;
  right: -254px;
}

.capture .mark-vb,
.capture .mark-stage-2 .mark-still {
  top: 315px;
  height: 576px;
  left: -287px;
}

@media (max-width: 900px) {
  .mark-stage,
  .mark-stage-2 {
    display: none !important;
  }
}

/* Fixed full-viewport ghosts don't degrade gracefully without the scroll
   fades — reduced-motion users get the clean static page instead. */
@media (prefers-reduced-motion: reduce) {
  .emily-stage,
  .emily-stage-2,
  .mark-stage,
  .mark-stage-2 {
    display: none;
  }
}

html.scrub-demo .emily-stage,
html.scrub-demo .emily-stage-2,
html.scrub-demo .mark-stage,
html.scrub-demo .mark-stage-2 {
  display: block; /* review captures force reduced-motion but need the ghosts */
}

/* ---- Lightbox -------------------------------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(8, 8, 15, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-3);
}

.lightbox-frame {
  width: min(1080px, 100%);
}

.lightbox-close {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  -webkit-font-smoothing: none;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 5px 10px;
  cursor: pointer;
  box-shadow: 2px 2px 0 0 var(--line);
  transition: transform 80ms steps(2, end), box-shadow 80ms steps(2, end), border-color 150ms ease;
}

.lightbox-close:hover {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 0 var(--line);
  border-color: var(--cyan);
}

body.lightbox-open {
  overflow: hidden;
}

/* ---- Motion helpers (Stage 3) ----------------------------------------------
   HTML always holds the final state; JS only animates FROM offsets, so with
   no JS or with prefers-reduced-motion everything renders finished. */

.h1 .w,
.line-inner {
  display: inline-block;
  will-change: transform;
}

.line {
  display: block;
  overflow: hidden;
}

.line .line-inner {
  display: block;
}

/* Boot micro-intro — plays once per session, skipped by any input */
.boot {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.boot pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 26px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--term-green);
  -webkit-font-smoothing: none;
}

.boot .cursor {
  display: inline-block;
  width: 9px;
  height: 15px;
  background: var(--term-green);
  vertical-align: -2px;
  animation: bootblink 640ms steps(1, end) infinite;
}

@keyframes bootblink {
  50% {
    opacity: 0;
  }
}

/* ==========================================================================
   (9b) THE JOURNEY — "BRING-UP": nine months told as a PCB powering on.
   One dark spine trace down the centre lights cyan as you scroll; chips
   solder in per milestone; the trace terminates at the J1 · YOU edge
   connector — the narrative hand-off to the CTA form directly below.
   HTML holds the fully-powered final board (reduced-motion / no-JS state);
   JS only animates FROM offsets — the .js-anim class (added only for
   motion users) arms the unlit initial states. All motion: transform /
   opacity / stroke-dash.
   ========================================================================== */

.bringup {
  position: relative;
  z-index: 1;
}

.bu-head {
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: var(--s-6);
}

.bu-head h2 {
  margin-bottom: var(--s-3);
}

.bu-head .body-copy {
  max-width: 620px;
}

/* silkscreen strip: assembly legend left, milestone counter right */
.bu-silk {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-3);
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: var(--s-4);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: var(--text-2);
  -webkit-font-smoothing: none;
}

.bu-silk .bu-counter {
  color: var(--cyan);
  white-space: nowrap;
}

/* ---- the board column ---- */
.bu-board {
  position: relative;
  max-width: 760px;
  margin-inline: auto;
}

/* central spine: dark copper below, lit overlay scales down as you scroll */
.bu-spine,
.bu-spine-lit {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  margin-left: -1px;
}

.bu-spine {
  background: var(--line);
}

.bu-spine-lit {
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.45);
  transform-origin: 50% 0;
  will-change: transform;
}

/* act headers */
.bu-act {
  display: flex;
  align-items: baseline;
  gap: var(--s-2);
  margin: var(--s-6) 0 var(--s-3);
  position: relative;
  z-index: 1;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.bu-act:first-of-type {
  margin-top: 0;
}

.bu-act .bu-act-num {
  font-family: var(--font-mono);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  color: var(--cyan);
  -webkit-font-smoothing: none;
}

.bu-act .bu-act-dates {
  font-family: var(--font-mono);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: var(--text-2);
  -webkit-font-smoothing: none;
  margin-left: auto;
}

/* milestone rows: card | spine lane | card, alternating sides */
.bu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bu-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 200px 1fr;
  align-items: center;
  padding-block: 12px;
}

.bu-row .bu-card {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
  text-align: right;
}

.bu-row.right .bu-card {
  grid-column: 3;
  justify-self: start;
  text-align: left;
}

/* pad on the spine */
.bu-pad {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  width: 10px;
  height: 10px;
  background: rgba(0, 229, 255, 0.85);
  border: 1px solid var(--cyan);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.55);
  position: relative;
  z-index: 1;
}

/* stub trace from the spine to the card side */
.bu-stub {
  position: absolute;
  top: 50%;
  right: 50%;
  width: 96px;
  height: 1px;
  background: var(--cyan);
  opacity: 0.7;
  transform-origin: 100% 50%;
}

.bu-row.right .bu-stub {
  right: auto;
  left: 50%;
  transform-origin: 0 50%;
}

/* the human card */
.bu-card {
  max-width: 280px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  position: relative;
  z-index: 1;
}

.bu-ref {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  color: var(--cyan);
  -webkit-font-smoothing: none;
  display: block;
  margin-bottom: 6px;
}

.bu-sent {
  font-size: 15px;
  line-height: 23px;
  color: var(--text);
}

.bu-card .monitor {
  margin-top: 12px;
  padding: 6px;
}

.bu-card .monitor-caption {
  margin: 6px 2px 0;
}

.bu-card .caption-chip {
  font-size: 10px;
  padding: 3px 6px;
}

/* screenshot crops inside cards: fixed window, top-anchored */
.bu-shot {
  aspect-ratio: 4 / 3.1;
}

.bu-shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* mini oscilloscope + inline card art */
.bu-scope svg {
  display: block;
  width: 100%;
  height: auto;
}

.bu-scope path {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 2;
}

/* chip footprints (DIP outlines) in the spine lane */
.bu-chipwrap {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.bu-chip {
  display: block;
  margin-inline: auto;
}

.bu-chip .body {
  fill: var(--bg);
  stroke: var(--cyan);
  stroke-width: 1.5;
}

.bu-chip .notch {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.5;
}

.bu-chip .pins line {
  stroke: var(--cyan);
  stroke-width: 2;
}

.bu-chip .etch {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  fill: var(--cyan);
  text-transform: uppercase;
}

.bu-chiplabel {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  color: var(--text-2);
  -webkit-font-smoothing: none;
  white-space: nowrap;
}

/* the eight theme pads — the ONE palette cameo on the page outside Themes */
.bu-themepads {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  justify-content: flex-end;
}

.bu-row.right .bu-themepads {
  justify-content: flex-start;
}

.bu-themepads .tp {
  width: 22px;
  height: 14px;
  border: 1px solid var(--cyan);
  background: rgba(0, 229, 255, 0.16);
}

/* ---- ACT IV signature: every chip feeds the Studio package ---- */
.bu-sig {
  position: relative;
  margin: var(--s-4) 0;
}

.bu-sig svg {
  display: block;
  width: 100%;
  height: auto;
}

.bu-sig .trace {
  fill: none;
  stroke: rgba(0, 229, 255, 0.7);
  stroke-width: 1.5;
}

.bu-sig .pkg {
  fill: var(--bg);
  stroke: var(--cyan);
  stroke-width: 2;
}

.bu-sig .pkg-pins line {
  stroke: var(--cyan);
  stroke-width: 2;
}

.bu-sig .silk {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  fill: var(--text-2);
  text-transform: uppercase;
}

/* the die: the Studio screenshot inside the package interior */
.bu-die {
  position: absolute;
  left: 37.5%;
  top: 27%;
  width: 25%;
  height: 46%;
  overflow: hidden;
  background: #000;
}

.bu-die img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

.bu-sig figcaption {
  text-align: center;
  margin-top: 4px;
}

/* ---- final silkscreen legend (stat stamps) ---- */
.bu-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
  justify-content: center;
  margin: var(--s-6) 0;
  position: relative;
  z-index: 1;
}

.bu-legend .bu-stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.bu-legend .bu-stat-num {
  font-family: var(--font-mono);
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--cyan);
  -webkit-font-smoothing: none;
}

.bu-legend .bu-stat-label {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  color: var(--text-2);
  -webkit-font-smoothing: none;
}

/* ---- J1 · YOU — the edge connector IS the waitlist ---- */
.bu-j1 {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding-top: 76px;
}

/* the copper terminates at you: a last run of spine into the connector */
.bu-j1::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 64px;
  margin-left: -1px;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.45);
}

.js-anim .bu-j1::before {
  background: var(--line);
  box-shadow: none;
  transition: background-color 300ms steps(3, end), box-shadow 300ms steps(3, end);
}

.js-anim .bu-j1.lit::before {
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.45);
}

.bu-j1 .bu-fingers {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: var(--s-3);
}

.bu-j1 .bu-fingers i {
  width: 14px;
  height: 34px;
  background: rgba(0, 229, 255, 0.28);
  border: 1px solid var(--cyan);
  border-bottom: none;
  border-radius: 2px 2px 0 0;
}

.bu-j1 .bu-fingers i.you {
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.6);
}

.bu-j1-ref {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: var(--cyan);
  -webkit-font-smoothing: none;
  display: block;
  margin-bottom: 10px;
}

.bu-j1 h3 {
  font-size: clamp(24px, 2.6vw, 34px);
  margin-bottom: var(--s-3);
}

/* the one waitlist input lives in the CTA section directly below —
   J1 is the narrative terminus that hands the visitor to it */
.bu-j1-note {
  color: var(--text-2);
  font-size: 15px;
  line-height: 24px;
  max-width: 480px;
  margin-inline: auto;
}

/* ---- Mark, when the fixed ghosts are hidden (mobile + reduced motion):
   an in-flow photo card in Act I. Hidden for motion-desktop users, who
   already have the scrub ghosts. ---- */
.bu-markcard {
  max-width: 320px;
  margin: 0 auto var(--s-5);
}

.bu-markcard img {
  width: 100%;
  height: auto;
}

@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .bu-markcard {
    display: none;
  }
}

/* ---- animation arming: .js-anim is added ONLY for motion users; it
   resets everything to unlit so scroll can compose the board. ---- */
.js-anim .bu-spine-lit {
  transform: scaleY(0);
}

.js-anim .bu-row .bu-pad {
  background: transparent;
  border-color: var(--line);
  box-shadow: none;
  transition: background-color 240ms steps(3, end), border-color 240ms steps(3, end), box-shadow 240ms steps(3, end);
}

.js-anim .bu-row.lit .bu-pad {
  background: rgba(0, 229, 255, 0.85);
  border-color: var(--cyan);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.55);
}

.js-anim .bu-row .bu-stub {
  transform: scaleX(0);
  opacity: 0.2;
  background: var(--line);
  transition: transform 240ms steps(3, end), opacity 240ms steps(3, end), background-color 240ms steps(3, end);
}

.js-anim .bu-row.lit .bu-stub {
  transform: scaleX(1);
  opacity: 0.7;
  background: var(--cyan);
}

.js-anim .bu-chip .body,
.js-anim .bu-chip .notch {
  stroke: #3A3A48;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 600ms steps(12, end), stroke 600ms steps(3, end);
}

.js-anim .bu-row.lit .bu-chip .body,
.js-anim .bu-row.lit .bu-chip .notch {
  stroke: var(--cyan);
  stroke-dashoffset: 0;
}

.js-anim .bu-chip .pins line {
  opacity: 0;
  transition: opacity 240ms steps(3, end);
}

.js-anim .bu-row.lit .bu-chip .pins line {
  opacity: 1;
}

.js-anim .bu-chip .etch,
.js-anim .bu-scope path {
  opacity: 0;
  transition: opacity 300ms steps(3, end) 300ms;
}

.js-anim .bu-row.lit .bu-chip .etch,
.js-anim .bu-row.lit .bu-scope path {
  opacity: 1;
}

/* theme-pad cameo: flash each machine palette once, settle back to cyan */
.js-anim .bu-themepads .tp {
  border-color: var(--line);
  background: transparent;
}

.js-anim .bu-row.lit .bu-themepads .tp {
  animation: tp-flash 900ms steps(3, end) forwards;
  animation-delay: calc(var(--i) * 90ms);
}

@keyframes tp-flash {
  0% {
    background: var(--tp);
    border-color: var(--tp);
  }
  70% {
    background: var(--tp);
    border-color: var(--tp);
  }
  100% {
    background: rgba(0, 229, 255, 0.16);
    border-color: var(--cyan);
  }
}

/* signature block arming: traces draw in, then the die powers on */
.js-anim .bu-sig .trace {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 700ms steps(14, end);
}

.js-anim .bu-sig.lit .trace {
  stroke-dashoffset: 0;
}

.js-anim .bu-sig .trace:nth-of-type(2) { transition-delay: 120ms; }
.js-anim .bu-sig .trace:nth-of-type(3) { transition-delay: 240ms; }
.js-anim .bu-sig .trace:nth-of-type(4) { transition-delay: 360ms; }
.js-anim .bu-sig .trace:nth-of-type(5) { transition-delay: 480ms; }
.js-anim .bu-sig .trace:nth-of-type(6) { transition-delay: 600ms; }

.js-anim .bu-sig .pkg,
.js-anim .bu-sig .pkg-pins line {
  stroke: #3A3A48;
  transition: stroke 400ms steps(3, end) 500ms;
}

.js-anim .bu-sig.lit .pkg,
.js-anim .bu-sig.lit .pkg-pins line {
  stroke: var(--cyan);
}

/* the die-shot power-on: stepped clip wipe (small area — same budget class
   as the Convert terminal's clip typing) */
.js-anim .bu-die img {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 800ms steps(10, end) 900ms;
}

.js-anim .bu-sig.lit .bu-die img {
  clip-path: inset(0 0 0 0);
}

.js-anim .bu-j1 .bu-fingers i.you {
  background: rgba(0, 229, 255, 0.28);
  box-shadow: none;
  transition: background-color 300ms steps(3, end), box-shadow 300ms steps(3, end);
}

.js-anim .bu-j1.lit .bu-fingers i.you {
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.6);
}

/* ---- mobile <900px: the board becomes a left-rail schematic ---- */
@media (max-width: 900px) {
  .bu-row,
  .bu-row.right {
    grid-template-columns: 56px 1fr;
  }

  .bu-spine,
  .bu-spine-lit {
    left: 28px;
    margin-left: 0;
  }

  .bu-row .bu-card,
  .bu-row.right .bu-card {
    grid-column: 2;
    justify-self: start;
    text-align: left;
    max-width: none;
    width: 100%;
  }

  .bu-row .bu-pad {
    grid-column: 1;
  }

  .bu-row .bu-stub,
  .bu-row.right .bu-stub {
    left: 28px;
    right: auto;
    width: 28px;
    transform-origin: 0 50%;
  }

  .bu-chipwrap {
    grid-column: 1;
    grid-row: 1;
  }

  .bu-chip {
    width: 44px;
    height: auto;
  }

  .bu-chiplabel {
    display: none;
  }

  .bu-row.has-chip .bu-card {
    grid-column: 2;
  }

  .bu-themepads {
    justify-content: flex-start;
  }

  .bu-bus {
    display: none;
  }

  .bu-act {
    flex-wrap: wrap;
  }

  .bu-die {
    /* same proportional interior — SVG scales with width */
  }
}

/* ==========================================================================
   PRESS PACK PAGE (press.html)
   Reuses the site design system (tokens, .nav, .footer, .container, .section,
   .eyebrow, .monitor, .format-tag). Everything below is scoped to the press
   page and adds only the document-style blocks it needs: masthead, fact
   table, numbers grid, hooks, FAQ, asset list, boilerplate.
   ========================================================================== */

/* narrower reading column than the marketing sections */
.press-main .container {
  max-width: 900px;
}

.press-section {
  padding-block: 0;
  margin-bottom: var(--s-8);
}

.press-section > h2 {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  -webkit-font-smoothing: none;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin: 0 0 var(--s-3);
  display: flex;
  align-items: center;
  gap: 10px;
}

.press-section > h2::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--cyan);
  flex: none;
}

.press-copy {
  color: var(--text-2);
  max-width: 720px;
  margin-bottom: var(--s-2);
}

.press-copy:last-child { margin-bottom: 0; }
.press-copy strong { color: var(--text); font-weight: 600; }
.press-copy em { color: var(--text-2); }

.press-copy code,
.press-fact code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  letter-spacing: 0.04em;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1px 6px;
  -webkit-font-smoothing: none;
}

/* ---- Masthead ---- */
.press-masthead {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  position: relative;
  padding: var(--s-6);
  margin-top: var(--s-8);
  margin-bottom: var(--s-8);
}

.press-masthead::before,
.press-masthead::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  background: var(--cyan);
}
.press-masthead::before { top: -5px; left: -5px; }
.press-masthead::after { bottom: -5px; right: -5px; }

.press-title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(48px, 8vw, 72px);
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: var(--s-2) 0 0;
}

.press-tagline {
  font-size: 22px;
  font-weight: 500;
  margin-top: 6px;
}

.press-meta {
  margin-top: var(--s-3);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  -webkit-font-smoothing: none;
}
.press-meta b { color: var(--cyan); font-weight: 400; padding: 0 0.4em; }

/* ---- Fact table ---- */
.press-fact {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
}
.press-fact th,
.press-fact td {
  border: 1px solid var(--line);
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
}
.press-fact th {
  width: 200px;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  -webkit-font-smoothing: none;
}
.press-fact td { font-size: 15.5px; color: var(--text); }

/* ---- Lists ---- */
.press-list { margin: 0 0 var(--s-2) 22px; max-width: 720px; }
.press-list li { margin-bottom: 10px; color: var(--text-2); }
.press-list li::marker { color: var(--cyan); }
.press-list strong { color: var(--text); font-weight: 600; }

/* ---- Numbers grid ---- */
.press-numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-2);
}
.press-num {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 18px 18px 15px;
}
.press-num .n {
  font-family: var(--font-mono);
  font-size: 32px;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--text);
  -webkit-font-smoothing: none;
}
.press-num .n span { color: var(--cyan); }
.press-num .l {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  -webkit-font-smoothing: none;
  line-height: 1.5;
}

/* ---- FAQ ---- */
.press-qa dt { font-weight: 600; font-size: 16.5px; margin-top: var(--s-2); color: var(--text); }
.press-qa dt:first-child { margin-top: 0; }
.press-qa dd { margin: 4px 0 0; font-size: 16px; color: var(--text-2); }

/* ---- Boilerplate quote ---- */
.press-quote {
  border-left: 2px solid var(--cyan);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--panel);
  padding: 18px 22px;
  margin: 0;
  color: var(--text-2);
}

/* ---- Placeholder marker (fields the owner should fill in) ---- */
.press-placeholder {
  color: var(--cyan);
  font-style: italic;
  font-family: var(--font-mono);
  font-size: 0.9em;
  -webkit-font-smoothing: none;
}

/* ---- Back-to-home helper on the press nav ---- */
.nav-links a[aria-current="page"] { color: var(--cyan); }

/* ---- Clean bio photo (no monitor bezel) ---- */
.press-bio-photo { margin: 0; }
.press-bio-photo img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
}
.press-bio-photo figcaption {
  margin-top: var(--s-1);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: var(--text-2);
  -webkit-font-smoothing: none;
}

/* ---- Assets: subheads, brand grid, screenshot grid ---- */
.press-subhead {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  -webkit-font-smoothing: none;
  margin: var(--s-4) 0 var(--s-2);
}

.press-brand-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-2);
  align-items: stretch;
}
.press-brand-cell {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: var(--s-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  text-align: center;
}
.press-brand-cell.wide { grid-column: span 2; }
.press-brand-cell img {
  max-width: 100%;
  max-height: 90px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.press-brand-cell figcaption {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11px;
  color: var(--text-2);
  -webkit-font-smoothing: none;
}
.press-brand-cell figcaption a { color: var(--cyan); text-decoration: none; }
.press-brand-cell figcaption a:hover { color: var(--cyan-hover); }

/* Clean screenshots — plain images, no monitor bezel / scanlines / CRT */
.press-shot { margin: 0; }
.press-shot img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  display: block;
}
.press-shot figcaption {
  margin-top: var(--s-1);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  color: var(--text-2);
  -webkit-font-smoothing: none;
}

@media (max-width: 720px) {
  .press-numbers { grid-template-columns: 1fr 1fr; }
  .press-fact th { width: 130px; }
  .press-masthead { padding: var(--s-4); }
  .press-brand-grid { grid-template-columns: 1fr 1fr; }
  .press-brand-cell.wide { grid-column: span 2; }
  .press-shots { grid-template-columns: 1fr 1fr !important; }
  .press-shots .press-shot[style*="span 2"] { grid-column: span 2 !important; }
}
