/* ExtraTab Series 2. Board world: solder mask ground, cyan live traces, tin pads, silkscreen. */

@font-face {
  font-family: "Saira";
  src: url("../fonts/saira.woff2") format("woff2-variations"), url("../fonts/saira.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 50% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("../fonts/geist.woff2") format("woff2-variations"), url("../fonts/geist.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/geist-mono.woff2") format("woff2-variations"), url("../fonts/geist-mono.woff2") format("woff2");
  font-weight: 400 500;
  font-display: swap;
}

:root {
  color-scheme: dark;

  /* ground and surfaces */
  --ground: #04070b;
  --mask: #08101a;
  --mask-2: #0b1622;
  --mask-3: #10202e;
  --copper: #12293a;

  /* lines */
  --line: rgb(150 205 235 / 0.09);
  --line-2: rgb(150 205 235 / 0.16);
  --line-3: rgb(150 205 235 / 0.26);

  /* ink */
  --text: #e8f1f6;
  --text-2: #b6c5d0;
  --muted: #8396a6;
  --silk: #cdd9e2;

  /* the one accent: live trace cyan */
  --cyan: #3ee3f6;
  --cyan-hi: #a8f4ff;
  --cyan-deep: #0b9fba;
  --cyan-ink: #021318;
  --cyan-a10: rgb(62 227 246 / 0.10);
  --cyan-a20: rgb(62 227 246 / 0.20);
  --cyan-a40: rgb(62 227 246 / 0.40);

  /* tin pads */
  --tin: linear-gradient(180deg, #e9eff3 0%, #b7c3cc 46%, #8794a0 100%);

  --danger: #ff8a7a;

  /* type */
  --display: "Saira", "Geist", system-ui, sans-serif;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* board grid: everything snaps to 8px */
  --u: 8px;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1320px;

  /* shape rule: keycaps and chips 6, controls and panes 12, board regions 20 */
  --r-s: 6px;
  --r-m: 12px;
  --r-l: 20px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  /* z scale */
  --z-board: 0;
  --z-content: 1;
  --z-sticky: 10;
  --z-nav: 50;
  --z-skip: 100;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  background: var(--ground);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

/* fixed board texture: vias on the 24px grid, never on a scrolling layer */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-board);
  pointer-events: none;
  background-image: radial-gradient(circle at center, rgb(150 205 235 / 0.07) 1px, transparent 1.4px);
  background-size: 24px 24px;
  mask-image: radial-gradient(120% 90% at 70% 0%, #000 0%, rgb(0 0 0 / 0.45) 55%, transparent 100%);
}

img, svg, video, canvas { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
::selection { background: var(--cyan); color: var(--cyan-ink); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
input, textarea { caret-color: var(--cyan); }

html { scrollbar-color: var(--mask-3) var(--ground); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ground); }
::-webkit-scrollbar-thumb { background: var(--mask-3); border-radius: 10px; border: 2px solid var(--ground); }
::-webkit-scrollbar-thumb:hover { background: var(--copper); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: fixed; left: 16px; top: 12px; z-index: var(--z-skip);
  padding: 10px 16px; border-radius: var(--r-m);
  background: var(--cyan); color: var(--cyan-ink); font-weight: 600; text-decoration: none;
  transform: translateY(-160%); transition: transform 0.3s var(--ease);
}
.skip:focus-visible { transform: none; }

.wrap {
  position: relative;
  z-index: var(--z-content);
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- type ---------- */

h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-stretch: 118%;
  font-weight: 760;
  letter-spacing: -0.035em;
  line-height: 0.98;
  text-wrap: balance;
  color: var(--text);
}
h1 { font-size: clamp(2.6rem, 1.3rem + 4.1vw, 4.9rem); }
h2 { font-size: clamp(2.1rem, 1.3rem + 3.2vw, 4rem); line-height: 1.02; }
h3 { font-size: 1.35rem; letter-spacing: -0.02em; line-height: 1.15; font-weight: 700; font-stretch: 112%; }

p { margin: 0; text-wrap: pretty; }
.lede { font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem); line-height: 1.55; color: var(--text-2); max-width: 34ch; }
.body { color: var(--text-2); max-width: 58ch; }

/* silkscreen: board designators, never above a heading */
.silk {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- logo ---------- */

.mark { width: 32px; height: 32px; flex: none; overflow: visible; }
.mark .ring { fill: none; stroke: url(#g-mark); stroke-width: 3.2; stroke-linejoin: round; }
.mark .ring-in { stroke-width: 3; }
.mark .bar-a { fill: url(#g-bar); }
.mark .bar-b { fill: var(--cyan); }
.mark.glow { filter: drop-shadow(0 0 6px rgb(62 227 246 / 0.55)) drop-shadow(0 0 22px rgb(62 227 246 / 0.25)); }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
}
.wordmark {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 640;
  font-size: 21px;
  letter-spacing: -0.01em;
  line-height: 1;
}
.wordmark .x { color: var(--cyan); }
.wordmark .t {
  background: linear-gradient(180deg, #ffffff 0%, #c3ced6 52%, #8796a2 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

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

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-nav);
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgb(4 7 11 / 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav-inner {
  height: 72px;
  display: flex; align-items: center; gap: 32px;
}
.nav-inner > nav { margin-left: auto; }
.nav-links {
  display: flex; gap: 4px; margin: 0; padding: 0; list-style: none;
}
.nav-links a {
  display: block; padding: 8px 14px; border-radius: var(--r-m);
  font-size: 14.5px; color: var(--text-2); text-decoration: none;
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.nav-links a:hover { color: var(--text); background: var(--mask-2); }
.nav .btn { margin-left: 8px; }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-inner > nav { margin-left: 0; }
  .nav .btn { margin-left: auto; }
  .nav-inner { height: 64px; }
}

/* ---------- buttons and fields ---------- */

.btn {
  --h: 48px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 22px;
  border: 0; border-radius: var(--r-m);
  font-family: var(--sans); font-size: 15.5px; font-weight: 600; letter-spacing: -0.005em;
  white-space: nowrap; text-decoration: none; cursor: pointer;
  background: var(--cyan); color: var(--cyan-ink);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.55),
    inset 0 -2px 0 rgb(0 60 75 / 0.35),
    0 10px 24px -12px rgb(0 0 0 / 0.9);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.35s var(--ease);
}
.btn:hover {
  background: #6aeaf9;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.6),
    inset 0 -2px 0 rgb(0 60 75 / 0.35),
    0 14px 30px -14px rgb(0 0 0 / 0.95);
}
.btn:active { transform: translateY(1px) scale(0.985); }
.btn svg { width: 18px; height: 18px; transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-sm { --h: 40px; padding: 0 16px; font-size: 14.5px; }
.btn[disabled] { opacity: 0.7; cursor: progress; }

.btn-ghost {
  background: transparent; color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-3);
}
.btn-ghost:hover { background: var(--mask-2); box-shadow: inset 0 0 0 1px var(--cyan-a40); }

.textlink {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text-2); font-size: 15px; text-decoration: none;
  transition: color 0.25s var(--ease);
}
.textlink svg { width: 16px; height: 16px; transition: transform 0.35s var(--ease); }
.textlink:hover { color: var(--cyan-hi); }
.textlink:hover svg { transform: translate(2px, -2px); }

/* signup: label above, pad row, status below */
.signup { display: grid; gap: 10px; width: 100%; max-width: 480px; }
.signup label { font-size: 14px; font-weight: 500; color: var(--text-2); }
.signup-row {
  display: flex; gap: 8px; padding: 6px;
  border-radius: calc(var(--r-m) + 6px);
  background: var(--mask);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 20px 50px -30px rgb(0 0 0 / 0.9);
  transition: box-shadow 0.3s var(--ease);
}
.signup-row:focus-within { box-shadow: inset 0 0 0 1px var(--cyan-a40), 0 0 0 4px var(--cyan-a10), 0 20px 50px -30px rgb(0 0 0 / 0.9); }
.signup input[type="email"] {
  flex: 1; min-width: 0; height: 48px; padding: 0 14px;
  border: 0; border-radius: var(--r-m); background: transparent;
  font-size: 16px; color: var(--text); outline: none;
}
.signup input::placeholder { color: #7d90a0; }
.signup .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.signup-status { min-height: 22px; font-size: 14px; color: var(--muted); }
.signup-status[data-tone="error"] { color: var(--danger); }
.signup-status[data-tone="ok"] { color: var(--cyan-hi); }
.signup.is-done .signup-row { display: none; }
.signup.is-done label { display: none; }
.signup-done {
  display: none; align-items: center; gap: 14px;
  padding: 16px 18px; border-radius: calc(var(--r-m) + 6px);
  background: linear-gradient(180deg, var(--cyan-a10), transparent), var(--mask);
  box-shadow: inset 0 0 0 1px var(--cyan-a40);
}
.signup.is-done .signup-done { display: flex; }
.signup-done .pad {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: var(--cyan); color: var(--cyan-ink);
}
.signup-done .pad svg { width: 18px; height: 18px; }
.signup-done strong { display: block; font-weight: 600; color: var(--text); }
.signup-done span { font-size: 14.5px; color: var(--text-2); }
.btn .spin {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgb(2 19 24 / 0.25); border-top-color: var(--cyan-ink);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100dvh;
  display: grid;
  align-items: center;
  padding-top: 72px;
  overflow: clip;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5.6fr) minmax(0, 6.4fr);
  align-items: center;
  gap: 24px;
  min-height: calc(100dvh - 72px);
  padding-block: 40px 56px;
}
.hero-copy { position: relative; z-index: 2; display: grid; gap: 28px; align-content: center; }
.hero-copy h1 { max-width: 12.5ch; }
.hero-copy .lede { max-width: 31ch; }
.hero-actions { display: grid; gap: 18px; justify-items: start; }

.hero-stage {
  position: relative;
  align-self: stretch;
  margin-right: calc(-1 * var(--gutter));
  min-height: 520px;
}
.hero-stage canvas,
.hero-stage .hero-fallback {
  position: absolute; inset: -6% -4% -6% -10%;
  width: 114%; height: 112%;
  mask-image: radial-gradient(closest-side at 52% 50%, #000 52%, rgb(0 0 0 / 0.6) 74%, transparent 100%);
  -webkit-mask-image: radial-gradient(closest-side at 52% 50%, #000 52%, rgb(0 0 0 / 0.6) 74%, transparent 100%);
}
.hero-stage canvas { opacity: 0; transition: opacity 1.4s var(--ease); }
.hero-stage.is-live canvas { opacity: 1; }
.hero-stage.is-live .hero-fallback { opacity: 0; transition: opacity 1s var(--ease); }
.hero-fallback { object-fit: contain; }

/* pad labels projected from the 3D board */
.port-tags { position: absolute; inset: 0; pointer-events: none; }
.port-tag {
  position: absolute; left: 0; top: 0;
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px 6px 8px; border-radius: var(--r-s);
  background: rgb(8 16 26 / 0.78);
  box-shadow: inset 0 0 0 1px var(--line-2);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--silk);
  opacity: 0; transform: translate(-50%, -140%);
  transition: opacity 0.8s var(--ease);
  white-space: nowrap;
  will-change: transform;
}
.port-tag svg { width: 13px; height: 13px; color: var(--text); }
.hero-stage.is-live .port-tag { opacity: 1; }

/* hero entrance: pure CSS, content visible without JS */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 1.1s var(--ease) both; animation-delay: calc(var(--d, 0) * 90ms + 120ms); }
  @keyframes rise {
    from { opacity: 0; transform: translateY(18px); filter: blur(6px); }
    to { opacity: 1; transform: none; filter: none; }
  }
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    padding-block: 24px 48px;
    gap: 8px;
  }
  .hero-stage { order: -1; margin: 0 calc(-1 * var(--gutter)); min-height: 0; height: min(78vw, 420px); }
  .hero-stage canvas, .hero-stage .hero-fallback { inset: -4% 0; width: 100%; height: 108%; }
  .hero-copy h1 { max-width: 11ch; }
}

/* ---------- section rhythm ---------- */

.section { position: relative; padding-block: clamp(80px, 9vw, 136px); }
.section-head { display: grid; gap: 20px; max-width: 760px; margin-bottom: clamp(48px, 6vw, 80px); }

/* board region frame with corner fiducials */
.region {
  position: relative;
  border-radius: var(--r-l);
  background: linear-gradient(180deg, rgb(255 255 255 / 0.018), transparent 40%), var(--mask);
  box-shadow: inset 0 0 0 1px var(--line), 0 40px 80px -60px rgb(0 0 0 / 0.9);
}
.region > .designator {
  position: absolute; top: 18px; right: 20px;
}

/* ---------- split: the named-state sequence ---------- */

.split { position: relative; height: 330vh; }
.split-sticky {
  position: sticky; top: 0;
  height: 100dvh;
  display: grid;
  align-items: center;
}
.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.split-copy { display: grid; gap: 40px; }
.states { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; position: relative; }
.states::before {
  content: ""; position: absolute; left: 7px; top: 14px; bottom: 14px; width: 1px; background: var(--line-2);
}
.states li {
  position: relative;
  display: grid; gap: 2px;
  padding: 12px 0 12px 34px;
  color: var(--muted);
  transition: color 0.6s var(--ease);
}
.states li::before {
  content: ""; position: absolute; left: 2px; top: 19px;
  width: 11px; height: 11px; border-radius: 3px;
  background: var(--ground); box-shadow: inset 0 0 0 1.5px var(--line-3);
  transition: background-color 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.states strong {
  font-family: var(--display); font-stretch: 115%; font-weight: 700; font-size: 1.3rem; letter-spacing: -0.02em;
  color: var(--text-2); transition: color 0.6s var(--ease);
}
.states span { font-size: 15px; max-width: 30ch; }
.states li.is-on { color: var(--text-2); }
.states li.is-on strong { color: var(--text); }
.states li.is-on::before { background: var(--cyan); box-shadow: 0 0 0 4px var(--cyan-a20), 0 0 14px var(--cyan-a40); }
.states li.is-past::before { background: var(--mask-3); box-shadow: inset 0 0 0 1.5px var(--cyan-a40); }

.split-steps { position: absolute; inset: 0; pointer-events: none; display: grid; grid-template-rows: 1fr 1fr 1fr; }

/* browser frame */
.browser {
  --tab-w: 132px;
  position: relative;
  border-radius: var(--r-l);
  background: #070d15;
  box-shadow:
    inset 0 0 0 1px var(--line-2),
    0 60px 120px -50px rgb(0 0 0 / 0.95),
    0 0 0 1px rgb(0 0 0 / 0.4);
  overflow: hidden;
}
.browser-top {
  display: flex; align-items: center; gap: 14px;
  height: 46px; padding: 0 14px;
  background: #0a121c;
  border-bottom: 1px solid var(--line);
}
.lights { display: flex; gap: 7px; flex: none; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: #253445; }
.tabs {
  position: relative; flex: 1; min-width: 0;
  display: flex; gap: 2px; height: 100%; align-items: flex-end;
  overflow: hidden;
}
.tab {
  position: relative;
  flex: 1 1 0; min-width: 0; max-width: 120px;
  height: 34px; padding: 0 9px;
  display: flex; align-items: center; gap: 7px;
  border-radius: 9px 9px 0 0;
  color: var(--muted);
  font-size: 12px; white-space: nowrap; overflow: hidden;
  transition: transform 0.9s var(--ease), opacity 0.6s var(--ease), background-color 0.25s, color 0.25s, flex-basis 0.9s var(--ease), max-width 0.9s var(--ease), padding 0.9s var(--ease);
  transition-delay: calc(var(--i) * 22ms);
}
.tab svg { width: 13px; height: 13px; flex: none; color: var(--text-2); }
.tab span { overflow: hidden; text-overflow: clip; }
.tab + .tab::before {
  content: ""; position: absolute; left: -1px; top: 10px; bottom: 10px; width: 1px; background: var(--line-2);
}
.tab.is-active { background: #070d15; color: var(--text); }
.tab.is-active::before, .tab.is-active + .tab::before { opacity: 0; }
.tab-xt {
  position: absolute; left: 0; bottom: 0;
  height: 34px; width: 230px; max-width: 100%;
  display: flex; align-items: center; gap: 9px; padding: 0 12px;
  border-radius: 10px 10px 0 0;
  background: #070d15; color: var(--text);
  font-size: 12.5px; font-weight: 500;
  opacity: 0; transform: translateY(8px) scale(0.96);
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease);
  transition-delay: 0.35s;
}
.tab-xt .mark { width: 15px; height: 15px; }
.tab-xt em { font-style: normal; color: var(--muted); font-weight: 400; }

.browser-bar {
  display: flex; align-items: center; gap: 10px;
  height: 42px; padding: 0 14px;
  border-bottom: 1px solid var(--line);
}
.url {
  flex: 1; display: flex; align-items: center; gap: 8px;
  height: 28px; padding: 0 12px; border-radius: 8px;
  background: #0c1622; color: var(--text-2);
  font-family: var(--mono); font-size: 12px;
  overflow: hidden; white-space: nowrap;
}
.url svg { width: 13px; height: 13px; color: var(--muted); flex: none; }
.url b { font-weight: 400; color: var(--text); }

.panes {
  position: relative;
  display: grid;
  gap: 8px; padding: 8px;
  aspect-ratio: 16 / 10;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}
.panes[data-layout="2"] { grid-template-columns: 1fr 1fr; }
.panes[data-layout="3"] { grid-template-columns: 1.35fr 1fr; grid-template-rows: 1fr 1fr; }
.panes[data-layout="3"] .pane[data-p="1"] { grid-row: span 2; }
.panes[data-layout="4"] { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }

.pane {
  position: relative; min-width: 0; min-height: 0;
  display: flex; flex-direction: column;
  margin: 0;
  border-radius: 10px; overflow: hidden;
  background: #0b131d;
  box-shadow: inset 0 0 0 1px var(--line-2);
  transition: box-shadow 0.6s var(--ease), opacity 0.45s var(--ease);
  will-change: transform;
}
.pane-head {
  flex: none; display: flex; align-items: center; gap: 8px;
  height: 30px; padding: 0 10px;
  border-bottom: 1px solid var(--line);
  font-size: 11.5px; color: var(--text-2); white-space: nowrap; overflow: hidden;
}
.pane-head svg { width: 12px; height: 12px; flex: none; color: var(--text); }
.pane-head .host { font-family: var(--mono); font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.pane-head kbd {
  display: grid; place-items: center; width: 17px; height: 17px; border-radius: 4px; flex: none;
  font-family: var(--mono); font-size: 11px; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-3);
}
.pane-body { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.pane-body img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.pane[data-p="2"] .pane-body img { object-position: center; filter: saturate(0.85) brightness(0.92); }

.pane-notes { padding: 14px 16px; font-size: 13px; line-height: 1.7; color: var(--text-2); white-space: pre-line; }
.pane-notes b { color: var(--text); font-weight: 600; }
.pane-timer { display: grid; place-items: center; align-content: center; gap: 6px; text-align: center; }
.pane-timer .t {
  font-family: var(--display); font-stretch: 112%; font-weight: 600;
  font-size: clamp(1.8rem, 4.2vw, 3.4rem); letter-spacing: -0.03em; line-height: 1;
  font-variant-numeric: tabular-nums; color: var(--text);
}
.pane-timer .silk { font-size: 11px; }

/* stage machine: one pane at a time, then the fold, then the split */
.browser[data-stage="1"] .pane:not(.is-shown),
.browser[data-stage="2"] .pane:not([data-p="1"]) { opacity: 0; pointer-events: none; }
.browser[data-stage="1"] .panes,
.browser[data-stage="2"] .panes { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.browser[data-stage="1"] .pane,
.browser[data-stage="2"] .pane { grid-area: 1 / 1 / 2 / 2; }
.browser[data-stage="1"] .pane-head kbd,
.browser[data-stage="2"] .pane-head kbd { display: none; }

.browser:not([data-stage="1"]) .tab { opacity: 0; transform: translateX(calc(var(--i) * -36px)) scale(0.9); flex-basis: 0; max-width: 0; padding: 0; }
.browser:not([data-stage="1"]) .tab-xt { opacity: 1; transform: none; }

.browser[data-stage="3"] .pane { box-shadow: inset 0 0 0 1px var(--cyan-a20), 0 0 0 1px rgb(62 227 246 / 0.06); }
.browser[data-stage="3"] .pane.is-focus { box-shadow: inset 0 0 0 1.5px var(--cyan), 0 0 24px -6px var(--cyan-a40); }

/* the seam node: the mark sitting where the four panes meet */
.seam-node {
  position: absolute; left: 50%; top: 50%;
  width: 34px; height: 34px; margin: -17px 0 0 -17px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: #070d15;
  box-shadow: 0 0 0 6px #070d15;
  opacity: 0; transform: scale(0.4) rotate(-30deg);
  transition: opacity 0.6s var(--ease), transform 1s var(--ease);
  pointer-events: none; z-index: 2;
}
.seam-node .mark { width: 26px; height: 26px; }
.browser[data-stage="3"] .panes[data-layout="4"] .seam-node { opacity: 1; transform: none; transition-delay: 0.45s; }

.layout-ctl {
  display: flex; align-items: center; gap: 14px;
  margin-top: 20px;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.split.is-split .layout-ctl { opacity: 1; transform: none; }
.seg {
  display: inline-flex; padding: 4px; gap: 2px; border-radius: calc(var(--r-m) + 2px);
  background: var(--mask); box-shadow: inset 0 0 0 1px var(--line-2);
}
.seg button {
  display: grid; place-items: center; width: 40px; height: 34px;
  border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.seg button svg { width: 18px; height: 18px; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--mask-3); color: var(--cyan); box-shadow: inset 0 0 0 1px var(--cyan-a20); }
.layout-ctl p { font-size: 14px; color: var(--muted); }

@media (max-width: 960px) {
  .split { height: 300vh; }
  .split-grid { grid-template-columns: 1fr; gap: 24px; }
  .split-copy { gap: 16px; }
  .split-copy h2 { font-size: clamp(1.9rem, 7vw, 2.6rem); }
  .states { display: flex; gap: 0; }
  .states::before { display: none; }
  .states li { flex: 1; padding: 22px 8px 0 0; }
  .states li::before { top: 0; left: 0; }
  .states li span { display: none; }
  .states strong { font-size: 1rem; }
  .browser { --tab-w: 90px; border-radius: 14px; }
  .browser-top { height: 38px; }
  .tab { height: 28px; }
  .tab span { display: none; }
  .tab-xt { height: 28px; }
  .panes { aspect-ratio: 4 / 5; }
  .pane-head .host { display: none; }
  .layout-ctl p { display: none; }
}

/* ---------- revisions ---------- */

.revs-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr);
  align-items: stretch;
}
.rev { padding: clamp(28px, 3.5vw, 48px); display: grid; gap: 28px; align-content: start; }
.rev-head { display: grid; gap: 10px; }
.rev h3 { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); line-height: 1; letter-spacing: -0.035em; font-weight: 760; font-stretch: 118%; }
.rev-status { display: inline-flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 15px; }
.rev-status .led { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 3px var(--cyan-a20), 0 0 12px var(--cyan); }
.rev-2 .rev-status .led { background: transparent; box-shadow: inset 0 0 0 1.5px var(--cyan); animation: blink 2.4s var(--ease-io) infinite; }
@keyframes blink { 50% { box-shadow: inset 0 0 0 1.5px var(--cyan), 0 0 12px var(--cyan-a40); } }
@media (prefers-reduced-motion: reduce) { .rev-2 .rev-status .led { animation: none; } }

.parts { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.parts li {
  display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start;
  padding: 12px 0; color: var(--text);
}
.parts li + li { border-top: 1px solid var(--line); }
.parts small { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.pad-dot {
  margin-top: 6px; width: 12px; height: 12px; border-radius: 3px;
  background: var(--silk);
}
.rev-2 .pad-dot { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-3); }
.rev-2 .parts li { color: var(--text-2); }
.rev-2 { background: linear-gradient(180deg, rgb(62 227 246 / 0.05), transparent 46%), var(--mask); box-shadow: inset 0 0 0 1px var(--cyan-a20), 0 40px 80px -60px rgb(0 0 0 / 0.9); overflow: hidden; }
/* a scan line walks the unfinished board */
.rev-2::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 120px;
  background: linear-gradient(180deg, transparent, rgb(62 227 246 / 0.07) 70%, rgb(62 227 246 / 0.22) 100%);
  border-bottom: 1px solid rgb(62 227 246 / 0.35);
  transform: translateY(-130%);
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .rev-2.in-view::after { animation: scan 5.5s var(--ease-io) 0.4s infinite; }
  @keyframes scan { 0% { transform: translateY(-130%); } 70%, 100% { transform: translateY(calc(var(--h, 640px) + 10%)); } }
}

.rev-bus { position: relative; }
.rev-bus svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.rev-bus .trace-base { fill: none; stroke: var(--copper); stroke-width: 2; }
.rev-bus .trace-live { fill: none; stroke: var(--cyan); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 14 220; filter: drop-shadow(0 0 4px var(--cyan)); }
@media (prefers-reduced-motion: no-preference) {
  .rev-bus .trace-live { animation: flow 3.2s linear infinite; }
  .rev-bus .trace-live:nth-of-type(2n) { animation-delay: -1.6s; }
  @keyframes flow { from { stroke-dashoffset: 234; } to { stroke-dashoffset: 0; } }
}
.rev-bus .via { fill: var(--ground); stroke: var(--line-3); stroke-width: 1.5; }

.rev-foot { margin-top: 4px; }

@media (max-width: 900px) {
  .revs-grid { grid-template-columns: 1fr; }
  .rev-bus { height: 56px; }
  .rev-bus svg { display: none; }
  /* one-column layout: a straight vertical bus joins the two boards */
  .rev-bus::before, .rev-bus::after {
    content: ""; position: absolute; top: 0; bottom: 0; width: 2px; background: #173548;
  }
  .rev-bus::before { left: calc(50% - 10px); }
  .rev-bus::after { left: calc(50% + 8px); background: linear-gradient(180deg, transparent, var(--cyan) 50%, transparent); box-shadow: 0 0 6px var(--cyan); }
}

/* ---------- parts board (bento) ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: minmax(240px, auto);
  gap: 16px;
}
.cell {
  position: relative;
  display: flex; flex-direction: column; gap: 14px;
  padding: 28px;
  border-radius: var(--r-l);
  background: linear-gradient(180deg, rgb(255 255 255 / 0.02), transparent 50%), var(--mask);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
  transition: box-shadow 0.5s var(--ease), opacity 0.5s var(--ease), filter 0.5s var(--ease);
}
.cell h3 { font-size: 1.45rem; }
.cell p { color: var(--text-2); font-size: 15.5px; max-width: 40ch; }
.cell .designator { position: absolute; top: 22px; right: 24px; }
/* hover floods the cell, the rest of the board dims */
@media (hover: hover) {
  .bento:hover .cell:not(:hover) { opacity: 0.6; filter: saturate(0.6); }
  .cell:hover { box-shadow: inset 0 0 0 1px var(--cyan-a40), 0 0 0 4px var(--cyan-a10), 0 30px 60px -40px rgb(62 227 246 / 0.4); }
}
.cell-ws { grid-column: span 7; grid-row: span 2; }
.cell-notes { grid-column: span 5; }
.cell-timer { grid-column: span 5; }
.cell-keys { grid-column: span 5; }
.cell-sites { grid-column: span 7; }

/* workspaces */
.ws-ui { margin-top: auto; display: grid; grid-template-columns: 200px 1fr; gap: 16px; min-height: 300px; }
.ws-list { display: grid; gap: 6px; align-content: start; margin: 0; padding: 0; list-style: none; }
.ws-list button {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 11px 12px; border: 0; border-radius: var(--r-m);
  background: transparent; color: var(--text-2); font-size: 14.5px; text-align: left; cursor: pointer;
  box-shadow: inset 0 0 0 1px transparent;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.ws-list button:hover { background: var(--mask-2); color: var(--text); }
.ws-list button[aria-pressed="true"] { background: var(--mask-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--cyan-a20); }
.ws-list .glyph { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; width: 16px; height: 16px; flex: none; }
.ws-list .glyph i { border-radius: 2px; background: var(--line-3); }
.ws-list button[aria-pressed="true"] .glyph i { background: var(--cyan); }
.ws-list .glyph[data-n="2"] { grid-template-rows: 1fr; }
.ws-list .glyph[data-n="3"] i:first-child { grid-row: span 2; }

.ws-preview {
  display: grid; gap: 6px; padding: 6px;
  border-radius: 14px; background: #070d15; box-shadow: inset 0 0 0 1px var(--line-2);
  grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr;
}
.ws-preview[data-layout="2"] { grid-template-rows: 1fr; }
.ws-preview[data-layout="3"] { grid-template-columns: 1.35fr 1fr; }
.ws-preview[data-layout="3"] .ws-pane:first-child { grid-row: span 2; }
.ws-pane {
  display: grid; place-items: center; align-content: center; gap: 10px;
  min-height: 0; border-radius: 9px; background: var(--mask-2);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text-2); font-size: 12.5px;
  transition: opacity 0.4s var(--ease);
  will-change: transform;
}
.ws-pane svg { width: 26px; height: 26px; color: var(--text); }

/* notes */
.notes-pad {
  flex: 1; min-height: 130px; width: 100%; resize: none;
  padding: 14px 16px; border: 0; border-radius: var(--r-m);
  background: #070d15; box-shadow: inset 0 0 0 1px var(--line-2);
  color: var(--text); font-size: 14.5px; line-height: 1.7;
  transition: box-shadow 0.25s var(--ease);
}
.notes-pad:focus { outline: none; box-shadow: inset 0 0 0 1px var(--cyan-a40), 0 0 0 4px var(--cyan-a10); }
.notes-pad::placeholder { color: #7d90a0; }
.cell-foot { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.cell-foot svg { width: 14px; height: 14px; }

/* timer: the hexagon outline is the progress */
.timer { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; margin-top: auto; }
.timer-hex { position: relative; width: 132px; height: 132px; }
.timer-hex svg { width: 100%; height: 100%; overflow: visible; }
.timer-hex .track { fill: none; stroke: var(--copper); stroke-width: 5; stroke-linejoin: round; }
.timer-hex .fill { fill: none; stroke: var(--cyan); stroke-width: 5; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 0 6px rgb(62 227 246 / 0.6)); transition: stroke-dashoffset 1s linear; }
.timer-hex .read {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--display); font-stretch: 112%; font-weight: 640; font-size: 1.65rem; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.timer-ctl { display: flex; gap: 8px; flex-wrap: wrap; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: var(--r-m); cursor: pointer;
  background: var(--mask-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2);
  transition: background-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.2s var(--ease);
}
.icon-btn:hover { box-shadow: inset 0 0 0 1px var(--cyan-a40); }
.icon-btn:active { transform: scale(0.95); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn.primary { background: var(--cyan); color: var(--cyan-ink); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.5); }

/* keycaps */
.keys { margin-top: auto; display: grid; gap: 14px; }
.keyrow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.key {
  min-width: 46px; height: 46px; padding: 0 12px;
  display: inline-grid; place-items: center;
  border: 0; border-radius: var(--r-s); cursor: pointer;
  background: linear-gradient(180deg, #172636, #0e1824);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08), inset 0 0 0 1px var(--line-2), 0 3px 0 #050a10, 0 4px 10px rgb(0 0 0 / 0.5);
  font-family: var(--mono); font-size: 13px; color: var(--text);
  transition: transform 0.12s var(--ease), box-shadow 0.2s var(--ease), color 0.2s;
}
.key:hover { color: var(--cyan-hi); }
.key.is-down {
  transform: translateY(3px);
  color: var(--cyan-ink);
  background: var(--cyan);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.5), 0 0 0 #050a10, 0 0 22px var(--cyan-a40);
}
.key-plus { color: var(--muted); font-family: var(--mono); font-size: 13px; }
.mini-grid {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 4px;
  width: 112px; height: 72px; padding: 4px; border-radius: 9px;
  background: #070d15; box-shadow: inset 0 0 0 1px var(--line-2);
}
.mini-grid i { border-radius: 4px; background: var(--mask-3); transition: all 0.45s var(--ease); }
.mini-grid[data-max] i { opacity: 0.15; }
.mini-grid[data-max="1"] i:nth-child(1),
.mini-grid[data-max="2"] i:nth-child(2),
.mini-grid[data-max="3"] i:nth-child(3),
.mini-grid[data-max="4"] i:nth-child(4) { opacity: 1; background: var(--cyan); box-shadow: 0 0 12px var(--cyan-a40); }
.keys-out { display: flex; align-items: center; gap: 16px; font-size: 13.5px; color: var(--muted); }

/* sites cell: real panes from Series 1 */
.cell-sites { padding-bottom: 0; }
.sites-shots {
  position: relative; margin-top: auto; height: 210px; flex: none;
  margin-inline: -28px; margin-bottom: 0;
}
.sites-shots img {
  position: absolute; top: 10px; width: 46%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top left;
  border-radius: 12px; box-shadow: 0 0 0 1px var(--line-2), 0 30px 50px -20px rgb(0 0 0 / 0.9);
  transition: transform 0.8s var(--ease);
}
.sites-shots img:first-child { left: 28px; transform: rotate(-3deg); }
.sites-shots img:last-child { right: 28px; transform: rotate(2.5deg) translateY(14px); filter: saturate(0.85) brightness(0.92); }
.cell-sites:hover .sites-shots img:first-child { transform: rotate(-1deg) translateY(-8px); }
.cell-sites:hover .sites-shots img:last-child { transform: rotate(1deg) translateY(4px); }

@media (max-width: 1080px) {
  .cell-ws { grid-column: span 12; grid-row: auto; }
  .cell-notes, .cell-timer, .cell-keys, .cell-sites { grid-column: span 6; }
}
@media (max-width: 720px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .cell-ws, .cell-notes, .cell-timer, .cell-keys, .cell-sites { grid-column: auto; }
  .cell { padding: 22px; }
  .ws-ui { grid-template-columns: 1fr; min-height: 0; }
  .ws-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ws-list button { flex-direction: column; gap: 6px; padding: 10px 6px; font-size: 12.5px; text-align: center; }
  .ws-preview { aspect-ratio: 4 / 3; }
  .sites-shots { margin-inline: -22px; }
}

/* ---------- FAQ ---------- */

.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-grid .section-head { position: sticky; top: 120px; margin: 0; }
.qa { border-top: 1px solid var(--line-2); }
.qa:last-child { border-bottom: 1px solid var(--line-2); }
.qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 0; cursor: pointer; list-style: none;
  font-family: var(--display); font-stretch: 110%; font-weight: 640; font-size: clamp(1.1rem, 1rem + 0.4vw, 1.35rem); letter-spacing: -0.015em;
  transition: color 0.25s var(--ease);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--cyan-hi); }
.qa summary .plus {
  flex: none; position: relative; width: 30px; height: 30px; border-radius: 8px;
  box-shadow: inset 0 0 0 1px var(--line-3);
  transition: transform 0.5s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s;
}
.qa summary .plus::before, .qa summary .plus::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -0.75px 0 0 -6px; background: currentColor; border-radius: 1px;
}
.qa summary .plus::after { transform: rotate(90deg); transition: transform 0.5s var(--ease); }
.qa[open] summary .plus { background: var(--cyan); color: var(--cyan-ink); box-shadow: none; }
.qa[open] summary .plus::after { transform: rotate(0deg); }
.qa .answer { padding: 0 64px 28px 0; color: var(--text-2); max-width: 62ch; }
.qa .answer a { color: var(--cyan-hi); }
@media (max-width: 900px) {
  .faq-grid { grid-template-columns: 1fr; }
  .faq-grid .section-head { position: static; }
  .qa .answer { padding-right: 0; }
}

/* ---------- close ---------- */

.close { padding-block: clamp(64px, 8vw, 120px) clamp(96px, 10vw, 160px); }
.close-board {
  position: relative; overflow: hidden;
  min-height: min(760px, 92dvh);
  display: grid; place-items: center; text-align: center;
  padding: clamp(56px, 8vw, 112px) var(--gutter);
  border-radius: calc(var(--r-l) + 8px);
  background: #03060a;
  box-shadow: inset 0 0 0 1px var(--line-2);
  isolation: isolate;
}
.close-traces { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.cb-base { fill: none; stroke: #173548; stroke-width: 2.5; stroke-linejoin: round; }
.cb-live { fill: none; stroke: var(--cyan); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40 900; stroke-dashoffset: 940; filter: drop-shadow(0 0 5px rgb(62 227 246 / 0.9)); opacity: 0.9; }
.cb-via { fill: #03060a; stroke: var(--cyan-a40); stroke-width: 2; }
@media (prefers-reduced-motion: no-preference) {
  .close-board.in-view .cb-live { animation: inbound 3.6s cubic-bezier(.5,0,.3,1) infinite; animation-delay: calc(var(--k) * -0.45s); }
  @keyframes inbound { from { stroke-dashoffset: 940; } to { stroke-dashoffset: 0; } }
}
.close-board::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(34% 42% at 50% 50%, rgb(3 6 10 / 0.9), transparent 100%),
    radial-gradient(50% 60% at 50% 50%, rgb(62 227 246 / 0.06), transparent 100%);
}
.fid { position: absolute; width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-3); }
.fid::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--silk); opacity: 0.8; }
.fid.tl { left: 22px; top: 22px; } .fid.tr { right: 22px; top: 22px; } .fid.bl { left: 22px; bottom: 22px; } .fid.br { right: 22px; bottom: 22px; }
.close-inner { display: grid; justify-items: center; gap: 28px; max-width: 720px; }
.close-inner .mark { width: 72px; height: 72px; }
.close-inner h2 { font-size: clamp(2.5rem, 1.4rem + 4.6vw, 5.5rem); }
.close-inner .lede { max-width: 40ch; margin-inline: auto; }
.close-inner .signup { width: 100%; text-align: left; }
.close-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; }

/* ---------- footer ---------- */

.foot { position: relative; z-index: var(--z-content); border-top: 1px solid var(--line); padding-block: 40px 48px; }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; }
.foot-inner p { color: var(--muted); font-size: 14px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 0 0 0 auto; padding: 0; list-style: none; font-size: 14px; }
.foot-links a { color: var(--text-2); text-decoration: none; }
.foot-links a:hover { color: var(--cyan-hi); }

/* ---------- reveals: content visible by default, motion only when JS runs ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
  .js [data-reveal].in { opacity: 1; transform: none; }
  .js [data-wipe] { padding-bottom: 0.14em; margin-bottom: -0.14em; clip-path: inset(0 0 100% 0); transform: translateY(14px); transition: clip-path 1.1s var(--ease), transform 1.1s var(--ease); }
  .js [data-wipe].in { clip-path: inset(0 0 0 0); transform: none; }
}

/* ---------- legal pages ---------- */

.doc { padding-block: 140px 120px; }
.doc .wrap { max-width: 820px; }
.doc h1 { font-size: clamp(2.4rem, 1.6rem + 3vw, 3.75rem); margin-bottom: 20px; }
.doc h2 { font-size: 1.5rem; margin: 48px 0 12px; line-height: 1.2; }
.doc p, .doc li { color: var(--text-2); max-width: 66ch; }
.doc p + p { margin-top: 14px; }
.doc a { color: var(--cyan-hi); }

.lost { min-height: 100dvh; display: grid; place-items: center; text-align: center; padding: 120px var(--gutter); }
.lost .inner { display: grid; justify-items: center; gap: 24px; }
.lost .mark { width: 88px; height: 88px; }

/* layout control hides panes beyond the chosen count once the split has happened */
.browser[data-stage="3"] .panes[data-layout="1"] .pane:not([data-p="1"]),
.browser[data-stage="3"] .panes[data-layout="2"] .pane[data-p="3"],
.browser[data-stage="3"] .panes[data-layout="2"] .pane[data-p="4"],
.browser[data-stage="3"] .panes[data-layout="3"] .pane[data-p="4"] { display: none; }

/* ---------- small screens ---------- */
.url { min-width: 0; }
.tab span { display: none; }
.tab.is-active span { display: inline; }
.tab.is-active { flex-grow: 2.4; }
.split-copy h2 { font-size: clamp(2rem, 1.2rem + 2.4vw, 3.4rem); }

@media (max-width: 960px) {
  .split-grid { grid-template-columns: minmax(0, 1fr); }
  .panes { aspect-ratio: 1 / 1; }
  .split-sticky { align-items: start; padding-top: 80px; }
  .split-copy h2 { font-size: clamp(1.75rem, 6.4vw, 2.4rem); }
  .tab.is-active span { display: none; }
  .tab.is-active { flex-grow: 1; }
  .tab { padding: 0 2px; justify-content: center; }
  .tab svg { width: 11px; height: 11px; }
  .tabs { gap: 0; }
}
@media (max-width: 560px) {
  .signup-row { flex-direction: column; padding: 6px; }
  .signup-row .btn { width: 100%; }
  .signup input[type="email"] { flex: none; width: 100%; height: 50px; }
  .close-inner { width: 100%; min-width: 0; }
  .close-inner h2 { font-size: clamp(2.2rem, 10vw, 3rem); }
  .port-tag { font-size: 11px; padding: 4px 7px 4px 6px; gap: 5px; }
  .port-tag svg { width: 11px; height: 11px; }
  .hero-copy { gap: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .split { height: auto; }
  .split-sticky { position: relative; height: auto; padding-block: 120px; }
  .split-steps { display: none; }
}

/* ---------- one board: copper under the mask, a spine bus, silkscreened regions ---------- */
body::after {
  content: ""; position: fixed; inset: 0; z-index: var(--z-board); pointer-events: none;
  background-image: url("../img/copper.svg");
  background-size: 640px 640px;
  opacity: 0.5;
  mask-image: linear-gradient(90deg, #000 0%, rgb(0 0 0 / 0.45) 30%, rgb(0 0 0 / 0.45) 70%, #000 100%);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, rgb(0 0 0 / 0.45) 30%, rgb(0 0 0 / 0.45) 70%, #000 100%);
}
main { position: relative; }
.spine {
  position: absolute; z-index: var(--z-board); pointer-events: none;
  top: calc(100dvh - 40px); bottom: 180px;
  left: max(6px, calc((100vw - var(--maxw)) / 2 - 40px));
  width: 10px;
  border-left: 2px solid #12293a; border-right: 2px solid #12293a;
  overflow: hidden;
}
.spine i {
  position: absolute; left: 2px; width: 2px; top: 0; height: 100%;
  background: linear-gradient(180deg, transparent 0, var(--cyan) 60px, transparent 120px) 0 0 / 2px 1100px repeat-y;
  filter: drop-shadow(0 0 4px var(--cyan));
}
@media (prefers-reduced-motion: no-preference) {
  .spine i { animation: spine 7s linear infinite; }
  @keyframes spine { from { background-position: 0 -1100px; } to { background-position: 0 0; } }
}
.edge { position: relative; }
.edge::before {
  content: ""; position: absolute; inset: -40px calc(var(--gutter) * 0.4);
  border: 1px dashed rgb(205 217 226 / 0.13); border-radius: 26px; pointer-events: none;
}
.edge-label {
  position: absolute; top: -48px; right: calc(var(--gutter) * 0.4 + 28px);
  padding: 0 10px; background: var(--ground); line-height: 16px;
}
/* the spine taps each region on its left edge */
.edge-tap {
  position: absolute; top: 24px; left: calc(var(--gutter) * 0.4 - 5px);
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--ground); box-shadow: inset 0 0 0 2px var(--cyan-a40), 0 0 0 3px var(--ground);
}
.edge-tap::before {
  content: ""; position: absolute; top: 4px; right: 100%; width: 40px; height: 2px; background: #12293a;
}
.split-grid.edge::before { inset: -48px calc(var(--gutter) * 0.4); }
@media (max-width: 720px) {
  .spine, .edge-tap { display: none; }
  .edge::before { inset: -28px 6px; border-radius: 18px; }
  .edge-label { top: -36px; right: 20px; }
  .faq-list { padding-left: 28px; }
  .faq-list::before { left: 6px; }
  .qa summary::before { left: -27px; }
  body::after { opacity: 0.35; }
  .foot-links { margin-left: 0; }
  .keyrow { gap: 6px; flex-wrap: nowrap; }
  .key { min-width: 38px; height: 42px; padding: 0 8px; font-size: 12px; }
}
@media (max-width: 960px) {
  .split-grid.edge::before { display: none; }
  .split-grid .edge-label, .split-grid .edge-tap { display: none; }
}

/* workspace preview: real miniature panes */
.ws-pane { place-items: stretch; align-content: stretch; gap: 0; overflow: hidden; display: flex; flex-direction: column; }
.ws-pane .mh { flex: none; display: flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; border-bottom: 1px solid var(--line); font-size: 11px; color: var(--text-2); white-space: nowrap; overflow: hidden; }
.ws-pane .mh svg { width: 11px; height: 11px; }
.ws-pane .mb { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.ws-pane .mb img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.ws-pane .mb.note { padding: 8px 10px; font-size: 11.5px; line-height: 1.6; color: var(--text-2); white-space: pre-line; }
.ws-pane .mb.time { display: grid; place-items: center; font-family: var(--display); font-stretch: 112%; font-weight: 600; font-size: 1.5rem; color: var(--text); font-variant-numeric: tabular-nums; }
.ws-pane .mb.lock { display: grid; place-items: center; align-content: center; gap: 6px; font-size: 11.5px; color: var(--muted); text-align: center; padding: 8px; }
.ws-pane .mb.lock svg { width: 22px; height: 22px; color: var(--cyan); }

/* parts board: copper runs through the gaps between the cells */
.bento {
  padding: 16px; margin: -16px; border-radius: calc(var(--r-l) + 12px);
  background: url("../img/copper.svg") 0 0 / 420px 420px;
}
.bento > .cell { background-color: var(--mask); }

/* FAQ: a bus with one tap per question; the open one carries the signal */
.faq-list { position: relative; padding-left: 44px; }
.faq-list::before {
  content: ""; position: absolute; left: 12px; top: 0; bottom: 0; width: 2px; background: #12293a;
}
.qa summary { position: relative; }
.qa summary::before {
  content: ""; position: absolute; left: -37px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%;
  background: var(--ground); box-shadow: inset 0 0 0 2px #1d3d52, 0 0 0 3px var(--ground);
  transition: box-shadow 0.4s var(--ease), background-color 0.4s var(--ease);
}
.qa summary::after {
  content: ""; position: absolute; left: -25px; top: 50%; width: 19px; height: 2px; margin-top: -1px; background: #12293a;
  transition: background-color 0.4s var(--ease);
}
.qa[open] summary::before { background: var(--cyan); box-shadow: 0 0 0 3px var(--ground), 0 0 12px var(--cyan); }
.qa[open] summary::after { background: var(--cyan-a40); }

/* ---------- mobile, finished like the desktop ---------- */
html { -webkit-tap-highlight-color: transparent; }
.menu-btn {
  display: none; place-items: center; width: 44px; height: 44px; margin-left: 4px; flex: none;
  border: 0; border-radius: var(--r-m); cursor: pointer;
  background: var(--mask-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2);
  transition: background-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.2s var(--ease);
}
.menu-btn:active { transform: scale(0.94); }
.menu-btn svg { grid-area: 1 / 1; width: 20px; height: 20px; transition: opacity 0.3s var(--ease), transform 0.4s var(--ease); }
.menu-btn .i-close { opacity: 0; transform: rotate(-90deg) scale(0.6); }
.menu-btn[aria-expanded="true"] { box-shadow: inset 0 0 0 1px var(--cyan-a40); }
.menu-btn[aria-expanded="true"] .i-open { opacity: 0; transform: rotate(90deg) scale(0.6); }
.menu-btn[aria-expanded="true"] .i-close { opacity: 1; transform: none; }

.sheet {
  position: fixed; inset: 0; z-index: calc(var(--z-nav) - 1);
  background: rgb(4 7 11 / 0.96);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  padding: calc(88px + env(safe-area-inset-top)) var(--gutter) calc(32px + env(safe-area-inset-bottom));
  overflow-y: auto;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.6s var(--ease);
}
.sheet::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background: url("../img/copper.svg") 0 0 / 520px 520px; opacity: 0.6;
  mask-image: linear-gradient(180deg, transparent, #000 40%);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%);
}
.sheet.is-open { clip-path: inset(0 0 0 0); }
.sheet-inner { display: grid; gap: 40px; min-height: 100%; align-content: space-between; }
.sheet-links { list-style: none; margin: 0; padding: 0; display: grid; }
.sheet-links li { border-bottom: 1px solid var(--line); }
.sheet-links a {
  display: flex; align-items: baseline; gap: 16px; padding: 18px 0;
  font-family: var(--display); font-stretch: 118%; font-weight: 740; font-size: clamp(1.9rem, 8.5vw, 2.6rem); letter-spacing: -0.03em; line-height: 1.05;
  color: var(--text); text-decoration: none;
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease), color 0.2s;
}
.sheet-links a .silk { flex: none; width: 24px; color: var(--cyan); }
.sheet-links a:active { color: var(--cyan-hi); }
.sheet.is-open .sheet-links a { opacity: 1; transform: none; }
.sheet.is-open .sheet-links li:nth-child(1) a { transition-delay: 0.12s; }
.sheet.is-open .sheet-links li:nth-child(2) a { transition-delay: 0.17s; }
.sheet.is-open .sheet-links li:nth-child(3) a { transition-delay: 0.22s; }
.sheet.is-open .sheet-links li:nth-child(4) a { transition-delay: 0.27s; }
.sheet.is-open .sheet-links li:nth-child(5) a { transition-delay: 0.32s; }
.sheet-foot { display: grid; gap: 18px; justify-items: start; }
.sheet-foot .btn { width: 100%; --h: 52px; }
@media (prefers-reduced-motion: reduce) {
  .sheet, .sheet-links a { transition: none; }
}
body.menu-open { overflow: hidden; }

/* safe areas for notched phones */
.nav-inner, .wrap { padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
.foot { padding-bottom: calc(48px + env(safe-area-inset-bottom)); }

@media (max-width: 900px) {
  .menu-btn { display: grid; }
}
@media (max-width: 960px) {
  /* hero: compact board, headline rides over its lower edge, form above the fold */
  .hero { padding-top: 64px; min-height: auto; }
  .hero-grid { min-height: auto; padding-block: 0 56px; }
  .hero-stage { height: min(72vw, 330px); }
  .hero-copy { margin-top: -28px; gap: 20px; }
  .hero-copy h1 { font-size: clamp(2.5rem, 11.2vw, 3.4rem); max-width: 10ch; }
  .hero-copy .lede { font-size: 1.05rem; }
  .close-board { min-height: 0; padding: 72px 20px 64px; }
  .close-inner .mark { width: 56px; height: 56px; }
}
@media (max-width: 560px) {
  .nav .btn.nav-cta { --h: 44px; padding: 0 14px; font-size: 14px; }
  .nav-inner { gap: 10px; }
  .wordmark { font-size: 19px; }
  .nav .mark { width: 28px; height: 28px; }
  .section { padding-block: 72px; }
  .section-head { margin-bottom: 40px; gap: 14px; }
  h2 { font-size: clamp(2rem, 9vw, 2.6rem); }
  .cell h3 { font-size: 1.3rem; }
  .timer { grid-template-columns: 1fr; justify-items: start; gap: 18px; }
  .rev { padding: 26px 22px; }
  .qa summary { padding: 22px 0; }
}
@media (max-width: 374px) {
  .nav .btn.nav-cta { display: none; }
  .menu-btn { margin-left: auto; }
}
