/* ────────────────────────────────────────────────────────────────────────
   Design system
   Graphite, bone and one signal colour: the red of a recording light.
   System type only, so nothing is fetched from anywhere. To use a licensed
   brand face, add @font-face rules here and put it first in --display.
   ──────────────────────────────────────────────────────────────────────── */
:root {
  --ink: #0a0b0c;
  --ink-2: #0f1113;
  --ink-3: #15181b;
  --bone: #ede9e2;
  --mute: #a39f97;
  --dim: #716e68;
  --line: rgba(237, 233, 226, 0.1);
  --line-2: rgba(237, 233, 226, 0.2);
  --tally: #ff4d2b;
  --tally-deep: #e23c1c;
  --tally-wash: rgba(255, 77, 43, 0.13);
  --ok: #a8e08f;
  --paper: #e9e5dd;
  --paper-2: #dedad1;
  --paper-ink: #131415;
  --paper-mute: #5d5a54;
  --paper-line: rgba(19, 20, 21, 0.14);

  --display: "Segoe UI Variable Display", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --text: "Segoe UI Variable Text", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --gutter: clamp(20px, 4.4vw, 72px);
  --max: 90rem;
  --nav-h: 4.25rem;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --r: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--text);
  font-size: clamp(100%, 0.65rem + 0.39vw, 131.25%);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}
[hidden] {
  display: none !important;
}
html.is-locked {
  overflow: hidden;
}
body {
  margin: 0;
  overflow-x: clip;
}
h1, h2, h3, p, ul, ol, dl, dd, figure, pre, table {
  margin: 0;
  padding: 0;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
img, svg, canvas {
  display: block;
  max-width: 100%;
}
::selection {
  background: var(--tally);
  color: #fff;
}
:focus-visible {
  outline: 2px solid var(--tally);
  outline-offset: 3px;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--bone);
  color: var(--ink);
  transform: translateY(-200%);
}
.skip:focus {
  transform: none;
}

.wrap {
  width: min(var(--max), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* ── Type ─────────────────────────────────────────────────────────────── */
.display {
  font-family: var(--display);
  font-weight: 560;
  font-size: clamp(2.6rem, 5.6vw, 7rem);
  line-height: 0.94;
  letter-spacing: -0.048em;
  text-wrap: balance;
}
.display--md {
  font-size: clamp(2.3rem, 5vw, 5.2rem);
  line-height: 0.96;
  letter-spacing: -0.042em;
}
.title {
  font-family: var(--display);
  font-weight: 560;
  font-size: clamp(1.7rem, 2.9vw, 2.9rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.title--lg {
  font-size: clamp(2rem, 3.6vw, 3.6rem);
}
.lede {
  max-width: 46ch;
  font-size: clamp(1.02rem, 1.25vw, 1.28rem);
  line-height: 1.5;
  color: var(--mute);
  text-wrap: pretty;
}
.label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.7188rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}
.no {
  color: var(--tally);
}
.fine {
  font-size: 0.7813rem;
  line-height: 1.5;
  color: var(--dim);
}
.pip {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tally);
  box-shadow: 0 0 0 0 rgba(255, 77, 43, 0.6);
  animation: pip 2.4s var(--ease) infinite;
}
@keyframes pip {
  0% { box-shadow: 0 0 0 0 rgba(255, 77, 43, 0.55); }
  70%, 100% { box-shadow: 0 0 0 9px rgba(255, 77, 43, 0); }
}
.c-dim { color: var(--dim); }
.c-tally { color: var(--tally); }
.c-ok { color: var(--ok); }
.c-key { color: #cfc9be; }
.c-str { color: #f0b8a6; }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 3.25rem;
  padding: 0 1.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  font-family: var(--text);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease-out);
}
.btn:active {
  transform: scale(0.97);
}
.btn--sm {
  min-height: 2.5rem;
  padding: 0 1.1rem;
  font-size: 0.875rem;
}
.btn--lg {
  min-height: 4rem;
  padding: 0 2.4rem;
  font-size: 1.0625rem;
}
.btn--tally {
  background: var(--tally);
  color: #fff;
}
.btn--tally:hover {
  background: var(--tally-deep);
}
.btn--ghost {
  border-color: var(--line-2);
  color: var(--bone);
}
.btn--ghost:hover {
  border-color: var(--bone);
}
.btn--bone {
  background: var(--bone);
  color: var(--ink);
}
.btn--bone:hover {
  background: #fff;
}
.btn--line {
  border-color: var(--line-2);
}
.btn--line:hover {
  border-color: currentColor;
}

/* ── Nav ──────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--nav-h);
  padding: 0 var(--gutter);
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: rgba(10, 11, 12, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  font-family: var(--display);
  font-size: 1.3125rem;
  font-weight: 620;
  letter-spacing: -0.04em;
}
.mark {
  width: 1.4rem;
  height: 1.4rem;
}
.mark-dot {
  fill: var(--tally);
}
.nav-links {
  display: flex;
  gap: 30px;
  font-size: 0.875rem;
  color: var(--mute);
}
.nav-links a {
  position: relative;
  padding: 6px 0;
  transition: color 0.3s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--bone);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
.nav-links a:hover {
  color: var(--bone);
}
.nav-links a:hover::after {
  transform: scaleX(1);
}
.nav-toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: transparent;
}
.nav-toggle i {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.5px;
  background: var(--bone);
  transition: transform 0.4s var(--ease-out);
}
.nav-toggle i:nth-of-type(1) { top: 16px; }
.nav-toggle i:nth-of-type(2) { top: 22px; }
.nav-toggle[aria-expanded="true"] i:nth-of-type(1) { transform: translateY(3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] i:nth-of-type(2) { transform: translateY(-3px) rotate(-45deg); }

/* ── Stage ────────────────────────────────────────────────────────────── */
.stage {
  position: relative;
}
.js .stage {
  height: calc(100svh + 4 * 88svh);
}
.stage-pin {
  position: relative;
  overflow: hidden;
}
.js .stage-pin {
  position: sticky;
  top: 0;
  height: 100svh;
}
.stage-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 55% at var(--gx, 70%) var(--gy, 48%), rgba(120, 128, 140, 0.16), transparent 70%),
    radial-gradient(40% 30% at var(--gx, 70%) 92%, rgba(255, 77, 43, 0.07), transparent 70%);
  pointer-events: none;
}
.stage-canvas,
.stage-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.stage-canvas {
  opacity: 0;
  transition: opacity 0.7s ease;
}
.stage-canvas.is-ready {
  opacity: 1;
}
.stage-fallback {
  inset: 12% 6% 12% 46%;
  width: auto;
  height: auto;
  opacity: 0.9;
}
html:not(.js) .stage-canvas,
html:not(.js) .ring-hit,
html:not(.js) .callout,
html:not(.js) .console,
html:not(.js) .finish,
html:not(.js) .rail,
html:not(.js) .tear-lines,
html:not(.js) .tear-steps,
html:not(.js) .orbit-lines {
  display: none;
}

.panel {
  position: relative;
  z-index: 2;
  padding: calc(var(--nav-h) + 40px) var(--gutter) 40px;
  max-width: 760px;
}
.js .panel {
  position: absolute;
  left: 0;
  top: 50%;
  width: min(48vw, 45rem);
  max-width: none;
  padding: 0 0 0 var(--gutter);
  opacity: 0;
  transform: translateY(calc(-50% + 28px));
  pointer-events: none;
  transition: opacity 0.55s var(--ease), transform 0.9s var(--ease-out);
}
.js .panel.is-active {
  opacity: 1;
  transform: translateY(-50%);
  pointer-events: auto;
}
.js .panel.is-past {
  transform: translateY(calc(-50% - 28px));
}
.panel--hero .label {
  margin-bottom: clamp(18px, 3svh, 32px);
}
.js .panel--hero {
  width: min(62vw, 82rem);
}
.panel--hero .display .line {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  padding-bottom: 0.16em;
  margin-bottom: -0.1em;
}
.js .panel--hero .display .line > span {
  display: block;
  transform: translateY(105%);
  animation: rise 1.1s var(--ease-out) forwards;
}
.js .panel--hero .display .line:nth-child(2) > span {
  animation-delay: 0.09s;
}
@keyframes rise {
  to { transform: none; }
}
.panel--hero .lede {
  margin-top: clamp(20px, 3.4svh, 36px);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(22px, 3.6svh, 40px);
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-top: clamp(22px, 4svh, 44px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
}
.facts b {
  margin-right: 6px;
  font-weight: 500;
  color: var(--bone);
}
.panel--step .label {
  margin-bottom: 20px;
}
.panel--step .title {
  font-size: clamp(2.1rem, 4.2vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.042em;
}
.panel--step p:not(.label):not(.sent) {
  max-width: 40ch;
  margin-top: 22px;
  font-size: clamp(1.02rem, 1.2vw, 1.22rem);
  color: var(--mute);
}
.sent {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  padding: 9px 16px 9px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bone);
}
.sent span {
  color: var(--ok);
}

/* Hold target that rides on the 3D control */
.ring-hit {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  width: var(--hit, 96px);
  height: var(--hit, 96px);
  margin: calc(var(--hit, 96px) / -2) 0 0 calc(var(--hit, 96px) / -2);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.ring-hit.is-live {
  opacity: 1;
  pointer-events: auto;
  cursor: grab;
}
.ring-hit span {
  position: absolute;
  inset: 6%;
  border: 1px solid rgba(255, 77, 43, 0.55);
  border-radius: 50%;
  animation: invite 2.6s var(--ease) infinite;
}
.ring-hit.is-down span {
  animation: haptic 0.5s var(--ease-out);
  border-color: var(--tally);
}
@keyframes invite {
  0% { transform: scale(0.72); opacity: 0; }
  35% { opacity: 0.9; }
  100% { transform: scale(1.18); opacity: 0; }
}
@keyframes haptic {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* Labels for points on the band. The page places the three pieces every
   frame: a dot on the point, a leader that starts outside the ring's outline,
   and the text at the leader's far end. Only the dot lies over the ring. */
.callout {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease);
}
.callout.is-on {
  opacity: 1;
}
.callout-dot {
  position: absolute;
  left: -4px;
  top: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tally);
  box-shadow: 0 0 0 5px rgba(255, 77, 43, 0.18);
}
.callout-line {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  background: linear-gradient(90deg, var(--tally), rgba(237, 233, 226, 0.5));
  transform-origin: left center;
}
.callout-text {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  gap: 0.3rem;
  margin: 0;
  white-space: nowrap;
  line-height: 1.15;
}
.callout-text[data-align="right"] {
  text-align: right;
}
.callout-text[data-align="center"] {
  text-align: center;
}
.callout b {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.callout em {
  font-style: normal;
  font-size: 0.8125rem;
  color: var(--mute);
}

/* Live console under the ring */
.console {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(24px, 5svh, 56px);
  z-index: 3;
  width: min(27rem, 32vw);
  padding: 16px 18px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(15, 17, 19, 0.72);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  transition: opacity 0.5s var(--ease), transform 0.8s var(--ease-out), border-color 0.4s var(--ease);
}
.console.is-away {
  opacity: 0;
  transform: translateY(24px);
  pointer-events: none;
}
.console.is-rec {
  border-color: rgba(255, 77, 43, 0.5);
}
.console-top {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 0.7188rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
}
.console-rec {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.console-rec i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dim);
  transition: background-color 0.2s, box-shadow 0.2s;
}
.console-rec b {
  font-weight: 500;
}
.console.is-rec .console-rec i {
  background: var(--tally);
  box-shadow: 0 0 12px 2px rgba(255, 77, 43, 0.7);
}
.console.is-rec .console-rec b {
  color: var(--tally);
}
.console.is-sent .console-rec i {
  background: var(--ok);
}
.console-time {
  font-variant-numeric: tabular-nums;
}
.console-route {
  margin-left: auto;
}
.console-route b {
  font-weight: 500;
  color: var(--bone);
}
.wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 1.9rem;
  margin-top: 14px;
}
.wave i {
  flex: 1 1 0;
  height: 100%;
  border-radius: 2px;
  background: var(--line-2);
  transform: scaleY(0.08);
  transition: transform 0.3s var(--ease), background-color 0.3s;
}
.console.is-rec .wave i {
  background: var(--tally);
  animation: wave 0.9s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * -137ms);
}
@keyframes wave {
  0% { transform: scaleY(0.12); }
  100% { transform: scaleY(var(--amp, 0.8)); }
}
.console-text {
  min-height: 3em;
  margin-top: 12px;
  font-size: 0.9688rem;
  line-height: 1.45;
  color: var(--bone);
}
.console-text:empty::before {
  content: "…";
  color: var(--dim);
}
.console-hint {
  margin-top: 10px;
  font-size: 0.7813rem;
  color: var(--dim);
}
.console.is-sent .console-hint {
  color: var(--ok);
}
kbd {
  display: inline-block;
  padding: 1px 7px;
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--bone);
}

.finish,
.os {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 17, 19, 0.6);
}
.finish {
  position: absolute;
  right: var(--gutter);
  top: calc(var(--nav-h) + 18px);
  z-index: 3;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.finish button,
.os button {
  padding: 7px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}
.finish button[aria-pressed="true"],
.os button[aria-pressed="true"] {
  background: var(--bone);
  color: var(--ink);
}

.rail {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(24px, 5svh, 56px);
  z-index: 3;
  display: flex;
  gap: 6px;
}
.rail li {
  width: 26px;
  height: 2px;
  background: var(--line-2);
  transition: background-color 0.4s var(--ease), width 0.6s var(--ease-out);
}
.rail li.is-on {
  width: 54px;
  background: var(--tally);
}

/* ── Ticker ───────────────────────────────────────────────────────────── */
.ticker {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--ink-2);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 38s linear infinite;
}
.ticker span {
  display: inline-flex;
  align-items: center;
  gap: 34px;
  padding: 18px 17px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  white-space: nowrap;
}
.ticker span::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--tally);
}
@keyframes ticker {
  to { transform: translateX(-50%); }
}

/* ── Sections ─────────────────────────────────────────────────────────── */
.section {
  position: relative;
  padding: clamp(96px, 16svh, 200px) 0;
}
.section--tight {
  padding: clamp(72px, 11svh, 140px) 0;
}
.head .label {
  margin-bottom: clamp(18px, 2.6svh, 30px);
}
.head .lede {
  margin-top: clamp(20px, 3svh, 34px);
}
.head--row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 96px);
  align-items: end;
}
.head--row .lede {
  margin-top: 0;
  padding-bottom: 0.5em;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 110px);
  align-items: center;
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease), transform 1.2s var(--ease-out);
}
.reveal.is-in,
html:not(.js) .reveal {
  opacity: 1;
  transform: none;
}

/* ── Routes ───────────────────────────────────────────────────────────── */
.routes {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
  gap: clamp(24px, 4vw, 72px);
  margin-top: clamp(48px, 8svh, 96px);
  align-items: start;
}
.routes-tabs {
  display: grid;
  border-top: 1px solid var(--line);
}
.routes-tabs button {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 4px 0;
  padding: 24px 0 24px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  color: var(--dim);
  transition: color 0.4s var(--ease), padding 0.6s var(--ease-out);
}
.routes-tabs button::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 100%;
  height: 1px;
  background: var(--tally);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s var(--ease-out);
}
.routes-tabs .no {
  grid-row: span 2;
  padding-top: 0.5em;
  font-family: var(--mono);
  font-size: 0.7188rem;
  letter-spacing: 0.12em;
  color: inherit;
}
.routes-tabs b {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.2vw, 2.1rem);
  font-weight: 560;
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.routes-tabs em {
  max-width: 38ch;
  font-style: normal;
  font-size: 0.9375rem;
  line-height: 1.45;
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.6s var(--ease-out), opacity 0.4s var(--ease);
  overflow: hidden;
}
.routes-tabs button:hover {
  color: var(--mute);
}
.routes-tabs button[aria-selected="true"] {
  color: var(--bone);
  padding-left: 12px;
}
.routes-tabs button[aria-selected="true"]::before {
  transform: scaleX(1);
}
.routes-tabs button[aria-selected="true"] .no {
  color: var(--tally);
}
.routes-tabs button[aria-selected="true"] em {
  display: block;
  opacity: 1;
  color: var(--mute);
}
.routes-tabs button:not([aria-selected="true"]) em {
  display: none;
}
.routes-view {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}
.shot {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  animation: shot 0.7s var(--ease-out);
}
@keyframes shot {
  from { opacity: 0; transform: translateY(14px); }
}
.shot-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.7188rem;
  letter-spacing: 0.06em;
  color: var(--dim);
}
.shot-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-2);
}
.shot-bar span {
  margin-left: 10px;
}
.code {
  min-height: 330px;
  padding: 22px 22px 26px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: clamp(0.7813rem, 1.02vw, 0.9063rem);
  line-height: 1.75;
  color: var(--bone);
  tab-size: 2;
}
.shot--field {
  padding-bottom: 22px;
}
.field {
  min-height: 250px;
  padding: 34px 26px 20px;
}
.field-label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}
.field-input {
  margin-top: 12px;
  padding: 18px 18px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
  font-family: var(--mono);
  font-size: clamp(0.8125rem, 1.1vw, 0.9688rem);
  box-shadow: 0 0 0 4px var(--tally-wash);
}
.caret {
  display: inline-block;
  width: 2px;
  height: 1.15em;
  margin-left: 2px;
  vertical-align: -0.2em;
  background: var(--tally);
  animation: blink 1.05s steps(1) infinite;
}
@keyframes blink {
  50% { opacity: 0; }
}
.os {
  margin-left: 26px;
}
.routes-view > .fine {
  margin-top: 14px;
}

/* ── Approvals ────────────────────────────────────────────────────────── */
.gates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.gate {
  position: relative;
  padding: 20px 20px 46px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(30, 33, 37, 0.9), rgba(17, 19, 21, 0.9));
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9);
  transition: border-color 0.5s var(--ease), transform 0.9s var(--ease-out);
}
.gate--desk {
  margin-top: 56px;
  border-radius: 16px;
}
.gate header {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.8125rem;
  color: var(--mute);
}
.gate header .mark {
  width: 18px;
  height: 18px;
  color: var(--bone);
}
.gate header b {
  font-weight: 600;
  color: var(--bone);
}
.gate header span {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.6563rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tally);
}
.gate h3 {
  margin-top: 18px;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 580;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.gate-meta {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 0.7188rem;
  color: var(--dim);
}
.gate-quote {
  margin-top: 14px;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--mute);
}
.gate-rows {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.875rem;
}
.gate-rows div {
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
}
.gate-rows div + div {
  border-top: 1px solid var(--line);
}
.gate-rows dt {
  color: var(--mute);
}
.gate-rows dd {
  font-family: var(--mono);
}
.gate-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 18px;
}
.gate-actions .btn {
  width: 100%;
}
.gate-result {
  display: none;
  margin-top: 18px;
  font-size: 0.875rem;
  font-weight: 600;
}
.gate[data-state] .gate-actions {
  display: none;
}
.gate[data-state] .gate-result {
  display: block;
  animation: shot 0.5s var(--ease-out);
}
.gate[data-state="approved"] {
  border-color: rgba(168, 224, 143, 0.5);
}
.gate[data-state="approved"] .gate-result {
  color: var(--ok);
}
.gate[data-state="cancelled"] .gate-result {
  color: var(--mute);
}
.gate-where {
  position: absolute;
  left: 20px;
  bottom: 16px;
  font-family: var(--mono);
  font-size: 0.6563rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ── Battery and offline recording ────────────────────────────────────── */
/* One graphic, two quantities. They are drawn as different kinds of thing:
   a cell that runs down over days, and a tape that fills over hours. */
.power {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(40px, 7svh, 80px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(237, 233, 226, 0.018);
}
.power-half {
  padding: clamp(22px, 3vw, 44px);
}
.power-half + .power-half {
  border-left: 1px solid var(--line);
}
.power-kind {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone);
}
.power-kind svg {
  width: 26px;
  height: 14px;
  color: var(--ok);
}
.power-rec {
  width: 10px;
  height: 10px;
  margin: 0 8px;
  border-radius: 50%;
  background: var(--tally);
}
.power-n {
  display: flex;
  align-items: baseline;
  gap: 0.14em;
  margin-top: clamp(14px, 2.4svh, 28px);
  font-family: var(--display);
  font-weight: 560;
  line-height: 0.82;
  letter-spacing: -0.05em;
}
.power-n {
  flex-wrap: wrap;
}
.power-n small {
  flex-basis: 100%;
  margin: 0 0 1.1em;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--mute);
}
.power-n b {
  font-size: clamp(6.5rem, 13vw, 13rem);
  font-weight: inherit;
}
.power-n span {
  font-size: clamp(2rem, 3.6vw, 3.6rem);
  letter-spacing: -0.03em;
}
.power-half--battery .power-n span {
  color: var(--ok);
}
.power-half--rec .power-n span {
  color: var(--tally);
}
.power-what {
  max-width: 30ch;
  margin-top: 14px;
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  line-height: 1.4;
  color: var(--mute);
}
.power-fine {
  max-width: 96ch;
  margin-top: 18px;
}

/* Battery: a cell with a terminal, one mark per day. */
.cell {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 34px;
}
.cell-body {
  position: relative;
  flex: 1;
  height: 46px;
  padding: 4px;
  border: 1.5px solid rgba(237, 233, 226, 0.42);
  border-radius: 12px;
  overflow: hidden;
}
.cell > i {
  flex: none;
  width: 5px;
  height: 18px;
  border-radius: 0 3px 3px 0;
  background: rgba(237, 233, 226, 0.42);
}
.cell-fill {
  position: absolute;
  inset: 4px;
  border-radius: 7px;
  background: linear-gradient(90deg, var(--ok), #d3ecc6);
  transform-origin: left;
}
.power.is-in .cell-fill {
  animation: drain 12s linear 0.4s infinite;
}
@keyframes drain {
  0% { transform: scaleX(1); }
  78% { transform: scaleX(calc(1 / var(--days, 7))); }
  84% { transform: scaleX(calc(1 / var(--days, 7))); }
  94%, 100% { transform: scaleX(1); }
}
.cell-ticks {
  position: absolute;
  inset: 4px;
  background: repeating-linear-gradient(90deg, transparent 0 calc(100% / var(--days, 7) - 3px), var(--ink) calc(100% / var(--days, 7) - 3px) calc(100% / var(--days, 7)));
}

/* Recording: the tape. */
.tape {
  position: relative;
  height: 46px;
  margin-top: 34px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  overflow: hidden;
}
.tape-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 77, 43, 0.3), var(--tally));
  transform: scaleX(0);
  transform-origin: left;
}
.power.is-in .tape-fill {
  animation: tape 9s var(--ease) 0.4s infinite;
}
@keyframes tape {
  0% { transform: scaleX(0); opacity: 1; }
  62% { transform: scaleX(0.82); opacity: 1; }
  70% { transform: scaleX(0.82); opacity: 1; }
  92%, 100% { transform: scaleX(0.82); opacity: 0; }
}
.tape-ticks {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 calc(100% / 24 - 1px), rgba(10, 11, 12, 0.55) calc(100% / 24 - 1px) calc(100% / 24));
}
.tape-legend {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}
.tape-legend span:nth-child(2) {
  color: var(--mute);
  text-align: center;
}

/* ── Vitals ───────────────────────────────────────────────────────────── */
.vitals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(48px, 8svh, 96px);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.vital {
  position: relative;
  padding: 22px 22px 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  transition: background-color 0.5s var(--ease);
}
.vital:hover {
  background: var(--ink-2);
}
.vital-n {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: clamp(26px, 5svh, 56px);
}
.vital-n b {
  font-family: var(--display);
  font-size: clamp(2.6rem, 4.6vw, 4.8rem);
  font-weight: 540;
  line-height: 1;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}
.vital-n small {
  font-family: var(--mono);
  font-size: 0.7188rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}
.vital svg {
  width: calc(100% + 44px);
  max-width: none;
  height: 64px;
  margin: 18px -22px 0;
}
.vital svg path {
  fill: none;
  stroke: var(--tally);
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
}
.vital svg .area {
  fill: var(--tally-wash);
  stroke: none;
}
.vital svg rect {
  fill: var(--tally);
}
.vital svg .draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.vitals.is-in .draw {
  animation: draw 2.2s var(--ease-out) forwards;
}
@keyframes draw {
  to { stroke-dashoffset: 0; }
}
.ask {
  margin-top: 28px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--ink-2);
  font-family: var(--mono);
  font-size: clamp(0.8125rem, 1.05vw, 0.9375rem);
  line-height: 1.7;
}
.ask-a {
  color: var(--mute);
}
.ask .fine {
  margin-top: 10px;
  font-family: var(--text);
}

/* ── Pricing ──────────────────────────────────────────────────────────── */
.price {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 110px);
  align-items: end;
}
.price-n {
  display: flex;
  align-items: baseline;
  margin: clamp(10px, 2svh, 24px) 0 clamp(18px, 3svh, 34px) -0.04em;
  font-family: var(--display);
  font-weight: 560;
  line-height: 0.82;
  letter-spacing: -0.065em;
}
.price-n span {
  font-size: clamp(8rem, 22vw, 22rem);
}
.price-n small {
  font-size: clamp(1.6rem, 3.4vw, 3.4rem);
  letter-spacing: -0.03em;
  color: var(--tally);
}
.price-main .lede {
  margin: 18px 0 30px;
}
.price-card {
  padding: clamp(22px, 2.4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--ink-2);
}
.ticks {
  margin-top: 18px;
}
.ticks li {
  position: relative;
  padding: 13px 0 13px 30px;
  border-top: 1px solid var(--line);
  font-size: 0.9688rem;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 19px;
  width: 12px;
  height: 6px;
  border-left: 1.5px solid var(--tally);
  border-bottom: 1.5px solid var(--tally);
  transform: rotate(-45deg);
}
.bill {
  margin-top: 18px;
  padding: 6px clamp(22px, 2.4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 24px;
}
.bill div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  font-size: 0.9375rem;
}
.bill div + div {
  border-top: 1px solid var(--line);
}
.bill dt {
  color: var(--mute);
}
.bill dd {
  font-family: var(--mono);
  font-size: 0.8125rem;
  text-align: right;
}

/* ── Optional photo strip (public/ring) ───────────────────────────────── */
.bench {
  padding-bottom: clamp(72px, 11svh, 140px);
}
.bench-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 1fr);
  gap: 14px;
  margin-top: 22px;
  overflow-x: auto;
}
.bench-item {
  aspect-ratio: 4 / 3;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--ink-2);
}
.bench-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Datasheet section ────────────────────────────────────────────────── */
.paper {
  background: var(--paper);
  color: var(--paper-ink);
  --line: var(--paper-line);
  --mute: var(--paper-mute);
  --dim: var(--paper-mute);
}
.paper .label {
  color: var(--paper-mute);
}
.paper .lede {
  color: var(--paper-mute);
}
.wear {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 90px);
  margin-top: clamp(48px, 8svh, 96px);
  align-items: center;
}
.section-drawing svg {
  width: 100%;
  overflow: visible;
}
.d-body {
  fill: #f6f3ed;
  stroke: var(--paper-ink);
  stroke-width: 1.5;
  stroke-linejoin: round;
}
.d-sleeve {
  fill: #e6e0d4;
}
.d-bar {
  fill: #fbf9f5;
  stroke: var(--tally);
  stroke-width: 2;
}
.section-drawing figcaption {
  max-width: 52ch;
  margin-top: 18px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--paper-mute);
}
.section-drawing figcaption p {
  margin: 12px 0 0;
}
.d-legend {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: mark;
  display: grid;
  gap: 6px;
  color: var(--paper-ink);
}
.d-legend li {
  counter-increment: mark;
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  align-items: baseline;
}
.d-legend li::before {
  content: counter(mark);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--tally-deep);
}
.d-note {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
}
.d-mark {
  fill: var(--paper);
  stroke: var(--tally-deep);
  stroke-width: 1;
}
.d-mark-no {
  font-family: var(--mono);
  font-size: 0.6875rem;
  fill: var(--tally-deep);
}
.d-dash {
  fill: none;
  stroke: var(--paper-mute);
  stroke-width: 1;
  stroke-dasharray: 3 4;
}
.d-dim,
.d-lead {
  fill: none;
  stroke: var(--paper-ink);
  stroke-width: 1;
}
.d-num {
  font-family: var(--mono);
  font-size: 0.6563rem;
  fill: var(--tally-deep);
}
.d-text {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.04em;
  fill: var(--paper-ink);
}
.d-text--dim {
  fill: var(--paper-mute);
}
.cells {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--paper-line);
  border-left: 1px solid var(--paper-line);
}
.cells > div {
  padding: clamp(18px, 2vw, 28px);
  border-right: 1px solid var(--paper-line);
  border-bottom: 1px solid var(--paper-line);
}
.cells dt {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-mute);
}
.cells dd {
  margin-top: 14px;
  font-family: var(--display);
  font-size: clamp(2rem, 3.2vw, 3.3rem);
  font-weight: 560;
  line-height: 1;
  letter-spacing: -0.045em;
  white-space: nowrap;
}
.cells dd small {
  margin-left: 6px;
  font-family: var(--mono);
  font-size: 0.32em;
  letter-spacing: 0.06em;
  color: var(--tally-deep);
}
.cells p {
  margin-top: 12px;
  font-size: 0.9063rem;
  line-height: 1.5;
  color: var(--paper-mute);
}
.kit {
  margin-top: clamp(64px, 10svh, 130px);
  padding-top: clamp(28px, 4svh, 48px);
  border-top: 1px solid var(--paper-ink);
}
.kit-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 48px);
  margin-top: clamp(28px, 5svh, 56px);
}
.kit-steps li {
  position: relative;
  padding-top: 20px;
  border-top: 1px solid var(--paper-line);
}
.kit-steps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 44px;
  height: 1px;
  background: var(--tally-deep);
}
.kit-steps .no {
  font-family: var(--mono);
  font-size: 0.7188rem;
  letter-spacing: 0.12em;
  color: var(--tally-deep);
}
.kit-steps b {
  display: block;
  margin-top: 14px;
  font-family: var(--display);
  font-size: clamp(1.3rem, 1.9vw, 1.9rem);
  font-weight: 560;
  letter-spacing: -0.035em;
}
.kit-steps p {
  max-width: 30ch;
  margin-top: 8px;
  font-size: 0.9375rem;
  color: var(--paper-mute);
}

/* ── Spec sheet + FAQ ─────────────────────────────────────────────────── */
.sheet {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.25fr);
  gap: clamp(28px, 5vw, 96px);
  align-items: start;
}
.sheet .head {
  position: sticky;
  top: calc(var(--nav-h) + 40px);
}
.spec {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--line-2);
}
.spec th,
.spec td {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.spec th {
  width: 34%;
  padding-right: 18px;
  font-family: var(--mono);
  font-size: 0.7188rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  padding-top: 21px;
}
.spec td {
  font-size: clamp(1rem, 1.2vw, 1.18rem);
}
.spec tr {
  transition: background-color 0.3s;
}
.spec tr:hover th {
  color: var(--tally);
}
.faq {
  border-top: 1px solid var(--line-2);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  position: relative;
  padding: 22px 44px 22px 0;
  font-family: var(--display);
  font-size: clamp(1.15rem, 1.6vw, 1.55rem);
  font-weight: 540;
  letter-spacing: -0.028em;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 15px;
  height: 1.5px;
  background: var(--tally);
  transition: transform 0.5s var(--ease-out);
}
.faq summary::after {
  transform: rotate(90deg);
}
.faq details[open] summary::after {
  transform: rotate(0deg);
}
.faq details p {
  max-width: 58ch;
  padding: 0 0 26px;
  font-size: 1rem;
  color: var(--mute);
}
.faq a {
  color: var(--bone);
  text-decoration: underline;
  text-decoration-color: var(--tally);
  text-underline-offset: 3px;
}

/* ── Closing + footer ─────────────────────────────────────────────────── */
.closing {
  position: relative;
  padding: clamp(110px, 20svh, 240px) 0;
  text-align: center;
  background:
    radial-gradient(50% 60% at 50% 100%, rgba(255, 77, 43, 0.16), transparent 70%),
    var(--ink-2);
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.closing-mark {
  width: clamp(72px, 9vw, 120px);
  height: auto;
  margin: 0 auto clamp(26px, 4svh, 44px);
  color: var(--bone);
}
.closing-mark .mark-dot {
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  50% { opacity: 0.25; }
}
.closing .lede {
  margin: clamp(20px, 3svh, 32px) auto clamp(28px, 4svh, 44px);
}
.foot {
  padding: 44px 0 40px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--mute);
}
.foot-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
}
.foot .brand {
  color: var(--bone);
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
}
.foot a:hover {
  color: var(--bone);
}
.foot-bottom {
  display: grid;
  gap: 10px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.foot-bottom .fine {
  max-width: 78ch;
}

/* ── Reservation flow ─────────────────────────────────────────────────── */
.flow {
  width: min(64rem, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 28px;
  background: var(--ink-2);
  color: var(--bone);
  overflow: hidden;
  box-shadow: 0 60px 140px -30px rgba(0, 0, 0, 0.9);
}
.flow[open] {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.3fr);
  animation: flow-in 0.6s var(--ease-out);
}
.flow::backdrop {
  background: rgba(5, 6, 7, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: fade 0.4s ease;
}
@keyframes flow-in {
  from { opacity: 0; transform: translateY(26px) scale(0.985); }
}
@keyframes fade {
  from { opacity: 0; }
}
.flow-x {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: transparent;
  font-size: 1.25rem;
  line-height: 1;
}
.flow-x:hover {
  border-color: var(--bone);
}
.flow-side {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 40px);
  background:
    radial-gradient(90% 60% at 30% 0%, rgba(255, 77, 43, 0.2), transparent 70%),
    var(--ink-3);
  border-right: 1px solid var(--line);
}
.flow-mark {
  width: 86px;
  height: 86px;
  margin-bottom: auto;
  color: var(--bone);
}
.flow-side .label {
  margin-top: 60px;
}
.flow-name {
  margin-top: 8px;
  font-family: var(--display);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 580;
  line-height: 1;
  letter-spacing: -0.05em;
}
.flow-summary {
  margin-top: 26px;
  border-top: 1px solid var(--line);
}
.flow-summary div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
}
.flow-summary dt {
  color: var(--mute);
}
.flow-summary dd {
  font-family: var(--mono);
  font-size: 0.7813rem;
  text-align: right;
}
.flow-main {
  display: flex;
  flex-direction: column;
  min-height: min(37rem, calc(100dvh - 34px));
  padding: clamp(24px, 3vw, 40px);
  overflow-y: auto;
}
.flow-dots {
  display: flex;
  gap: 6px;
  margin-bottom: clamp(24px, 4svh, 40px);
}
.flow-dots li {
  width: 26px;
  height: 2px;
  background: var(--line-2);
  transition: background-color 0.4s, width 0.6s var(--ease-out);
}
.flow-dots li.is-on {
  width: 50px;
  background: var(--tally);
}
.flow-step {
  display: none;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.flow-step.is-on {
  display: block;
  animation: shot 0.55s var(--ease-out);
}
.flow-step legend,
.flow-done h3 {
  padding: 0;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: 570;
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.flow-lede {
  margin-top: 10px;
  font-size: 0.9688rem;
  color: var(--mute);
}
.flow-lede b {
  color: var(--bone);
  font-weight: 600;
}
.choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 26px;
}
.choices--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.choice {
  position: relative;
  display: block;
  padding: 16px 16px 18px;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  cursor: pointer;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.choice:hover {
  border-color: var(--mute);
}
.choice input {
  position: absolute;
  opacity: 0;
}
.choice:has(input:checked) {
  border-color: var(--tally);
  background: var(--tally-wash);
}
.choice:has(input:focus-visible) {
  outline: 2px solid var(--tally);
  outline-offset: 3px;
}
.choice b {
  display: block;
  font-size: 0.9688rem;
  font-weight: 600;
}
.choice em {
  display: block;
  margin-top: 3px;
  font-style: normal;
  font-size: 0.8125rem;
  color: var(--mute);
}
.swatch {
  display: block;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 50%;
  border: 7px solid;
}
.swatch--ti {
  border-color: #8f8a84;
  box-shadow: inset 0 0 0 1px #5c5955, 0 0 0 1px #b9b4ad;
}
.swatch--st {
  border-color: #c9cbcf;
  box-shadow: inset 0 0 0 1px #8b8e93, 0 0 0 1px #eef0f2;
}
.swatch--un {
  border: 2px dashed var(--mute);
}
.input {
  display: block;
  margin-top: 18px;
}
.input > span {
  display: block;
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}
.input small {
  margin-left: 6px;
  color: var(--dim);
  text-transform: none;
  letter-spacing: 0;
}
.input input,
.input select {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.3);
  color: var(--bone);
  font: 400 16px var(--text);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.input select {
  max-width: 220px;
}
.input input::placeholder {
  color: var(--dim);
}
.input input:focus,
.input select:focus {
  outline: 0;
  border-color: var(--tally);
  box-shadow: 0 0 0 4px var(--tally-wash);
}
.input.is-bad input {
  border-color: var(--tally);
}
.flow-error {
  margin-top: 14px;
  font-size: 0.875rem;
  color: #ff8a70;
}
.flow-error a {
  text-decoration: underline;
}
.flow-step .fine {
  margin-top: 16px;
}
.flow-done {
  text-align: left;
}
.flow-done:focus {
  outline: 0;
}
.flow-tick {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--ok);
  color: var(--ink);
  font-size: 1.5rem;
  font-weight: 700;
}
.flow-done > .btn {
  margin-top: 28px;
}
.flow-deposit {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid var(--line-2);
  border-radius: 16px;
}
.flow-deposit .btn {
  margin-top: 12px;
}
.flow-nav {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: auto;
  padding-top: 28px;
}
.flow-nav [data-flow-back] {
  margin-right: auto;
}
.flow-nav .btn[aria-busy="true"] {
  opacity: 0.6;
  pointer-events: none;
}

/* ── Models: the ring at the centre ───────────────────────────────────── */
/* The section pins. The ring pulls back to the middle and the tiles settle
   into orbits in the ring's own plane, each one wired to it by a spoke that
   stops short of the metal. Every few seconds one sample command leaves the
   background, goes in at the control and comes out at a tile. Without script
   this is a heading and a paragraph. */
.orbit {
  position: relative;
  border-top: 1px solid var(--line);
}
.orbit-pin {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 12svh, 140px) var(--gutter);
}
.orbit-title {
  margin-top: 18px;
  font-size: clamp(1.9rem, 3.2vw, 3.3rem);
  line-height: 1;
  letter-spacing: -0.04em;
}
.orbit-foot {
  display: contents;
}
.orbit-how {
  position: relative;
  z-index: 4;
  max-width: 30rem;
  margin-top: 44px;
}
.orbit-how .lede {
  max-width: 40ch;
  font-size: clamp(0.95rem, 1.08vw, 1.1rem);
}
.orbit-note {
  position: relative;
  z-index: 4;
  max-width: 19rem;
  margin-top: 28px;
}
html:not(.js) .orbit-streams,
html:not(.js) .orbit-list,
html:not(.js) .orbit-fly,
html:not(.js) .orbit-pop,
html:not(.js) .orbit-routes,
html:not(.js) .orbit-now,
html:not(.js) .orbit .stage-canvas,
.orbit .finish.is-off,
.orbit-fallback {
  display: none;
}

/* Route pills: which tiles each route reaches. */
.orbit-routes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.orbit-routes button {
  padding: 7px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: none;
  font-family: var(--mono);
  font-size: 0.6563rem;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
  cursor: pointer;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.orbit-routes button:hover {
  border-color: var(--bone);
  color: var(--bone);
}
.orbit-routes button[aria-pressed="true"] {
  border-color: var(--bone);
  background: var(--bone);
  color: var(--ink);
}

/* The command that just went through the ring, and what came of it. */
.orbit-now {
  min-height: 5.4rem; /* the page raises this to its tallest command */
  margin-bottom: 14px;
  transition-property: none; /* its height is set and read back in one go */
}
.orbit-cmd {
  font-size: 1rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--bone);
}
.orbit-via,
.orbit-receipt {
  margin-top: 7px;
  font-family: var(--mono);
  font-size: 0.625rem;
  line-height: 1.3;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}
.orbit-receipt {
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--ok);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.orbit-receipt.is-in {
  opacity: 1;
}
.orbit-receipt i,
.orbit-pop i {
  font-style: normal;
}

.js .orbit {
  height: calc(100svh + 3 * 70svh);
}
.js .orbit.is-still {
  height: 100svh;
}
.js .orbit-pin {
  position: sticky;
  top: 0;
  height: 100svh;
  padding: 0;
}
.js .orbit-pin.is-over-ring {
  cursor: pointer;
}
.js .orbit-head {
  position: absolute;
  left: var(--gutter);
  top: calc(var(--nav-h) + clamp(18px, 5svh, 56px));
  z-index: 4;
  width: fit-content;
  max-width: min(34vw, 30rem);
}
.js .orbit-how {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(20px, 4.5svh, 48px);
  width: min(27vw, 24rem);
  margin: 0;
}
.js .orbit-note {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(20px, 4.5svh, 48px);
  width: min(19vw, 17rem);
  margin: 0;
}

/* Three rows of sample commands, deep in the background. */
.orbit-streams {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.stream {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  display: flex;
  height: 30px;
  opacity: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  transition: opacity 0.8s var(--ease);
}
.orbit.is-settled .stream.is-on {
  opacity: 1;
}
.stream-track {
  display: flex;
  flex: none;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
  animation: stream var(--dur, 180s) linear infinite;
  animation-play-state: paused;
}
.stream:nth-child(2) .stream-track {
  animation-direction: reverse;
}
.orbit.is-live .stream-track {
  animation-play-state: running;
}
.stream span {
  padding: 5px 26px;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  color: rgba(237, 233, 226, 0.07);
  cursor: pointer;
  pointer-events: auto;
  transition: color 0.3s var(--ease);
}
.stream span:hover {
  color: rgba(237, 233, 226, 0.5);
}
.stream span.is-off {
  color: rgba(237, 233, 226, 0.025);
  pointer-events: none;
}
.stream span.is-plucked {
  color: transparent;
}
@keyframes stream {
  to {
    transform: translateX(-50%);
  }
}

/* Spokes, orbit tracks and the pulse. Drawn under the ring's canvas, and
   never inside the ring's outline: the script ends each one short of it. */
.orbit-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.orbit-lines .spoke {
  fill: none;
  stroke: rgba(237, 233, 226, 0.17);
  stroke-width: 1;
  transition: stroke 0.35s var(--ease);
}
.orbit-lines .spoke.is-far {
  stroke: rgba(237, 233, 226, 0.1);
}
.orbit-lines .spoke.is-on {
  stroke: rgba(237, 233, 226, 0.5);
}
.orbit-lines .spoke.is-off {
  stroke: rgba(237, 233, 226, 0.045);
}
.orbit-lines .spoke.is-hot {
  stroke: rgba(237, 233, 226, 0.7);
}
.orbit-lines .spoke.is-lit {
  stroke: var(--brand, var(--bone));
}
.orbit-lines .track {
  fill: none;
  stroke: rgba(237, 233, 226, 0.06);
  stroke-width: 1;
  stroke-dasharray: 2 7;
}
.orbit-lines .pulse-trail,
.orbit-lines .pulse {
  fill: none;
  stroke: var(--brand, var(--tally));
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
}
.orbit-lines .pulse-trail {
  stroke-width: 1;
}
.orbit-lines .pulse {
  stroke-width: 2.4;
  filter: drop-shadow(0 0 5px var(--brand, var(--tally)));
}
.orbit .stage-canvas {
  z-index: 2;
}
.js .orbit-fallback {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  display: block;
  width: calc(var(--or, 90px) * 2.7);
  transform: translate(calc(var(--ox, 50vw) - 50%), calc(var(--oy, 50svh) - 47%));
  pointer-events: none;
}
.orbit-fallback-cap {
  transition: fill 0.2s var(--ease);
}
.orbit-fallback.is-down .orbit-fallback-cap {
  fill: var(--tally);
}

/* Tiles: dark glass, the mark as a grey silhouette until it is the one in use. */
.orbit-list {
  --t: 58px;
  position: absolute;
  inset: 0;
  z-index: 3;
  margin: 0;
  pointer-events: none;
}
.orbit-list li {
  --tile: var(--t);
  position: absolute;
  left: 0;
  top: 0;
  width: var(--tile);
  height: var(--tile);
  margin: calc(var(--tile) / -2) 0 0 calc(var(--tile) / -2);
  border-radius: 26%;
  outline-offset: 5px;
  opacity: 0;
  pointer-events: auto;
  will-change: transform, opacity;
}
.orbit-list li.is-outer {
  --tile: calc(var(--t) * var(--small, 0.74));
}
.orb {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 26%;
  background-color: #121418;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 62%);
  box-shadow:
    inset 0 0 0 1px rgba(237, 233, 226, 0.1),
    0 14px 26px -14px rgba(0, 0, 0, 0.95);
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.orb img {
  width: min(60%, calc(var(--px, 128) * 0.8px));
  height: auto;
  aspect-ratio: 1;
  max-width: none;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.5;
  transition: filter 0.4s var(--ease), opacity 0.4s var(--ease);
}
.orbit-list li.is-outer .orb img {
  opacity: 0.3;
}
/* A route pill is on: the tiles it reaches show their colours. */
.orbit-list li.is-on .orb {
  box-shadow:
    inset 0 0 0 1px rgba(237, 233, 226, 0.26),
    0 14px 26px -14px rgba(0, 0, 0, 0.95);
}
.orbit-list li.is-on .orb img {
  filter: none;
  opacity: 0.94;
}
.orbit-list li.is-off .orb img {
  opacity: 0.11;
}
/* The tile a command just landed on. */
.orbit-list li.is-lit .orb {
  background-color: #1b1e24;
  box-shadow:
    inset 0 0 0 1px var(--brand),
    0 0 0 3px rgba(237, 233, 226, 0.06),
    0 0 30px -6px var(--brand);
}
@supports (color: color-mix(in srgb, red 50%, blue)) {
  .orbit-list li.is-lit .orb {
    background-color: color-mix(in srgb, var(--brand) 24%, #121418);
    box-shadow:
      inset 0 0 0 1px var(--brand),
      0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent),
      0 0 30px -6px var(--brand);
  }
}
.orbit-list li.is-lit .orb img {
  filter: none;
  opacity: 1;
}
.orbit-list b {
  position: absolute;
  left: 50%;
  top: calc(100% + 6px);
  transform: translateX(-50%);
  padding: 3px 5px;
  border-radius: 5px;
  background: rgba(10, 11, 12, 0.72);
  font-family: var(--mono);
  font-size: 0.5938rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--mute);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), color 0.3s var(--ease);
}
.orbit-list li.is-outer b {
  font-size: 0.5313rem;
  color: var(--dim);
}
.orbit-list li.is-up b {
  top: auto;
  bottom: calc(100% + 6px);
}
.orbit-list li.is-right b,
.orbit-list li.is-left b {
  top: 50%;
  transform: translateY(-50%);
}
.orbit-list li.is-right b {
  left: calc(100% + 8px);
}
.orbit-list li.is-left b {
  left: auto;
  right: calc(100% + 8px);
}
.orbit-list li.is-set b {
  opacity: 1;
}
.orbit-list li.is-on b,
.orbit-list li.is-lit b {
  color: var(--bone);
}
/* Outer names are quiet: on only while their tile is lit, hovered or focused. */
.orbit-list li.is-quiet b {
  opacity: 0;
}
.orbit-list li.is-quiet.is-lit:not(.is-mute) b {
  opacity: 1;
}
.orbit-list li.is-mute b,
.orbit-list li.is-off b {
  opacity: 0;
}
.orbit-list li.is-set:hover b,
.orbit-list li.is-set:focus-visible b {
  z-index: 2;
  background: var(--ink);
  color: var(--bone);
  opacity: 1;
}

/* The command on its way in, and the receipt on its way out. */
.orbit-fly,
.orbit-pop {
  position: absolute;
  left: 0;
  top: 0;
  margin: 0;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}
.orbit-fly {
  z-index: 6;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgb(11 12 14 / 0.88);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.07);
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  color: var(--bone);
}
.orbit-pop {
  z-index: 7;
  padding: 6px 11px;
  border-radius: 999px;
  background: #0d0f12;
  box-shadow:
    inset 0 0 0 1px var(--brand, var(--ok)),
    0 12px 26px -10px #000;
  font-family: var(--mono);
  font-size: 0.6875rem;
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: var(--bone);
  scale: 0.86;
  transition: opacity 0.25s var(--ease), scale 0.4s var(--ease-out);
}
.orbit-pop i {
  color: var(--ok);
}
/* On a small orbit the receipt is cut to the size of the tiles around it. */
.orbit-pop.is-tight {
  padding: 4px 9px;
  font-size: 0.5938rem;
  letter-spacing: 0.03em;
}
.orbit-pop.is-in {
  opacity: 1;
  scale: 1;
}

@media (max-width: 860px) {
  .orbit-list b {
    top: calc(100% + 4px);
    padding: 2px 4px;
    font-size: 0.5rem;
    letter-spacing: 0.06em;
  }
  .orbit-list li.is-up b {
    bottom: calc(100% + 4px);
  }
  .js .orbit-head {
    top: calc(var(--nav-h) + 14px);
    right: var(--gutter);
    max-width: none;
  }
  .orbit-title {
    margin-top: 10px;
    font-size: 1.5rem;
  }
  /* Stacked under the orbit: command and receipt, pills, copy, fine print. */
  .js .orbit-foot {
    position: absolute;
    left: var(--gutter);
    right: var(--gutter);
    bottom: 12px;
    z-index: 4;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .js .orbit-how,
  .js .orbit-note {
    display: contents;
  }
  .orbit-now {
    order: 1;
    min-height: 5.5rem; /* room for a command of two lines */
    margin: 0;
  }
  .orbit-cmd {
    font-size: 0.9375rem;
  }
  .orbit-via,
  .orbit-receipt {
    margin-top: 4px;
  }
  .orbit-routes {
    order: 2;
    gap: 5px;
    margin: 0;
  }
  .orbit-routes button {
    padding: 6px 9px;
    font-size: 0.5625rem;
    letter-spacing: 0.05em;
  }
  .orbit-how .lede {
    order: 3;
    max-width: none;
    font-size: 0.8125rem;
    line-height: 1.4;
  }
  .orbit-note .fine {
    order: 4;
    font-size: 0.625rem;
    line-height: 1.35;
  }
  .stream span {
    padding: 4px 16px;
    font-size: 0.8125rem;
  }
  .orbit-fly {
    font-size: 0.8125rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stream-track {
    animation: none;
  }
}

/* ── Responsive ───────────────────────────────────────────────────────── */
/* ── Teardown ─────────────────────────────────────────────────────────── */
/* Without script or WebGL this is a plain list of what is inside. With both,
   it pins and the scroll takes the ring apart. */
.tear {
  position: relative;
  border-top: 1px solid var(--line);
}
.tear-pin {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 12svh, 140px) var(--gutter);
}
.tear-copy {
  position: relative;
  z-index: 3;
  max-width: 34rem;
}
.tear-title {
  margin-top: 18px;
  font-size: clamp(1.9rem, 3.2vw, 3.3rem);
  line-height: 1;
  letter-spacing: -0.04em;
}
.tear-fine {
  max-width: 44ch;
  margin-top: 16px;
}
.tear-beat {
  margin-top: 34px;
}
.tear-beat h3 {
  max-width: 34ch;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bone);
}
.tear-sub {
  margin-top: 6px;
  font-size: 0.875rem;
  color: var(--dim);
}
.tear-beat ul {
  display: grid;
  gap: 9px;
  margin-top: 16px;
  list-style: none;
}
.tear-beat li {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-size: 1rem;
  line-height: 1.3;
  color: var(--mute);
}
.tear-beat li::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c98a3c;
}
.tear-beat li i {
  display: none;
}
.tear-beat--note p {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}
html:not(.js) .tear-beat--note,
.tear.is-static .tear-beat--note,
.tear.is-static .stage-canvas,
.tear.is-static .tear-lines,
.tear.is-static .tear-steps,
.tear.is-static .finish {
  display: none;
}

.js .tear:not(.is-static) {
  height: calc(100svh + 5 * 80svh);
}
.js .tear:not(.is-static) .tear-pin {
  position: sticky;
  top: 0;
  height: 100svh;
  padding: 0;
}
.js .tear:not(.is-static) .tear-copy {
  position: absolute;
  left: var(--gutter);
  top: calc(var(--nav-h) + clamp(24px, 9svh, 110px));
  width: min(35vw, 30rem);
  max-width: none;
}
.js .tear:not(.is-static) .tear-beats {
  display: grid;
  margin-top: clamp(26px, 6svh, 64px);
}
.js .tear:not(.is-static) .tear-beat {
  grid-area: 1 / 1;
  margin-top: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0s linear 0.3s;
}
.js .tear:not(.is-static) .tear-beat.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s var(--ease) 0.12s, visibility 0s;
}
.tear-lines {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.tear-lines g {
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.tear-lines g.is-on {
  opacity: 1;
  transition: opacity 0.4s var(--ease) 0.12s;
}
.tear-lines path {
  fill: none;
  stroke: rgba(237, 233, 226, 0.5);
  stroke-width: 1;
}
.tear-lines circle {
  fill: var(--ink);
  stroke: #e0a050;
  stroke-width: 1;
}
.tear-lines text {
  display: none;
  fill: var(--bone);
  font-family: var(--mono);
  font-size: 10px;
  text-anchor: middle;
  dominant-baseline: central;
}
.tear-steps {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(20px, 4.5svh, 48px);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 17, 19, 0.6);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.tear-steps span {
  padding: 0 12px 0 14px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}
.tear-steps button {
  padding: 7px 13px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}
.tear-steps button[aria-pressed="true"] {
  background: var(--bone);
  color: var(--ink);
}

@media (max-width: 860px) {
  .js .tear:not(.is-static) .tear-copy {
    inset: calc(var(--nav-h) + 14px) var(--gutter) 70px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: auto;
    pointer-events: none;
  }
  .tear-title {
    margin-top: 10px;
    font-size: 1.5rem;
  }
  .tear-fine {
    margin-top: 8px;
    font-size: 0.6875rem;
    line-height: 1.4;
  }
  .js .tear:not(.is-static) .tear-beats {
    align-items: end;
    margin-top: 0;
  }
  .tear-beat h3 {
    font-size: 0.6875rem;
  }
  .tear-sub {
    margin-top: 3px;
    font-size: 0.75rem;
  }
  .js .tear:not(.is-static) .tear-beat ul {
    grid-template-columns: 1fr 1fr;
    gap: 6px 14px;
    margin-top: 10px;
  }
  .js .tear:not(.is-static) .tear-beat li {
    gap: 8px;
    font-size: 0.8125rem;
  }
  .js .tear:not(.is-static) .tear-beat li::before {
    display: none;
  }
  .js .tear:not(.is-static) .tear-beat li i {
    display: grid;
    flex: none;
    place-items: center;
    width: 17px;
    height: 17px;
    border: 1px solid #e0a050;
    border-radius: 50%;
    font-family: var(--mono);
    font-size: 0.625rem;
    font-style: normal;
    color: var(--bone);
  }
  .tear-lines path {
    display: none;
  }
  .tear-lines text {
    display: block;
  }
  .tear-steps {
    right: var(--gutter);
    bottom: 14px;
    justify-content: space-between;
  }
  .tear-steps span {
    display: none;
  }
  .tear-steps button {
    flex: 1;
    padding: 8px 4px;
    font-size: 0.625rem;
  }
}

@media (max-width: 1100px) {
  .console {
    width: min(22rem, 38vw);
  }
  .split,
  .sheet {
    grid-template-columns: minmax(0, 1fr);
  }
  .sheet .head {
    position: static;
  }
  .routes {
    grid-template-columns: minmax(0, 1fr);
  }
  .routes-view {
    position: static;
  }
}

@media (max-width: 860px) {
  :root {
    --nav-h: 3.75rem;
  }
  .nav {
    gap: 12px;
  }
  .nav-toggle {
    display: block;
  }
  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    gap: 0;
    padding: 6px var(--gutter) 20px;
    background: rgba(10, 11, 12, 0.96);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    font-family: var(--display);
    font-size: 1.7rem;
    letter-spacing: -0.035em;
    color: var(--bone);
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity 0.35s var(--ease), transform 0.5s var(--ease-out);
  }
  .nav.is-open {
    background: rgba(10, 11, 12, 0.96);
  }
  .nav.is-open .nav-links {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .nav-links a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-links a::after {
    display: none;
  }

  .js .stage {
    height: calc(100svh + 4 * 80svh);
  }
  .js .panel {
    top: auto;
    bottom: clamp(20px, 4svh, 40px);
    width: 100%;
    padding: 0 var(--gutter);
    transform: translateY(28px);
  }
  .js .panel--hero {
    width: 100%;
  }
  .js .panel.is-active {
    transform: none;
  }
  .js .panel.is-past {
    transform: translateY(-28px);
  }
  .panel--hero .display {
    font-size: clamp(2rem, 10vw, 3.6rem);
  }
  .panel--hero .lede {
    font-size: 0.98rem;
    margin-top: 14px;
  }
  .panel--hero .label {
    margin-bottom: 12px;
  }
  .cta-row {
    margin-top: 18px;
  }
  .cta-row .btn {
    flex: 1 1 auto;
    min-height: 48px;
    padding: 0 18px;
  }
  .facts {
    display: none;
  }
  .panel--step .title {
    font-size: clamp(1.9rem, 8.4vw, 3rem);
  }
  .panel--step p:not(.label):not(.sent) {
    margin-top: 14px;
    font-size: 1rem;
  }
  .panel--step .label {
    margin-bottom: 12px;
  }
  .console {
    left: var(--gutter);
    right: var(--gutter);
    top: 39svh;
    bottom: auto;
    width: auto;
    padding: 10px 14px;
    border-radius: 14px;
  }
  .console .wave,
  .console-hint,
  .console-time {
    display: none;
  }
  .console-text {
    min-height: 0;
    margin-top: 6px;
    font-size: 0.8438rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .console-text:empty {
    display: none;
  }
  .finish {
    top: calc(var(--nav-h) + 8px);
    transition: opacity 0.4s var(--ease);
  }
  .finish.is-away {
    opacity: 0;
    pointer-events: none;
  }
  .rail {
    display: none;
  }
  .callout b {
    font-size: 0.6563rem;
  }
  .callout em {
    font-size: 0.75rem;
  }

  .head--row,
  .price,
  .wear,
  .power {
    grid-template-columns: minmax(0, 1fr);
  }
  .power-half + .power-half {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .power-n b {
    font-size: clamp(5.5rem, 30vw, 9rem);
  }
  .power .tape-legend span:nth-child(2) {
    display: none;
  }
  .head--row .lede {
    padding-bottom: 0;
  }
  .gates {
    grid-template-columns: minmax(0, 1fr);
  }
  .gate--desk {
    margin-top: 0;
  }
  .vitals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kit-steps {
    grid-template-columns: minmax(0, 1fr);
  }
  .code {
    min-height: 0;
    font-size: 0.75rem;
  }
  .field {
    min-height: 0;
    padding: 24px 16px 18px;
  }
  .os {
    margin-left: 16px;
  }
  .spec th {
    width: 38%;
  }

  .flow {
    width: 100vw;
    max-height: 94dvh;
    margin: auto 0 0;
    border-radius: 24px 24px 0 0;
    border-bottom: 0;
  }
  .flow[open] {
    grid-template-columns: minmax(0, 1fr);
    animation-name: sheet-in;
  }
  @keyframes sheet-in {
    from { transform: translateY(100%); }
  }
  .flow-side {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 14px;
    padding: 18px 64px 16px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .flow-mark {
    width: 34px;
    height: 34px;
    margin: 0;
  }
  .flow-side .label {
    margin: 0;
  }
  .flow-name,
  .flow-summary {
    display: none;
  }
  .flow-main {
    min-height: 0;
    padding: 22px 20px calc(20px + env(safe-area-inset-bottom, 0px));
  }
  .choices,
  .choices--two {
    grid-template-columns: minmax(0, 1fr);
  }
  .choice {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 14px;
    align-items: center;
    padding: 12px 14px;
  }
  .choice .swatch {
    grid-row: span 2;
    width: 34px;
    height: 34px;
    margin: 0;
    border-width: 6px;
  }
  .choice .swatch--un {
    border-width: 2px;
  }
  .flow-nav .btn {
    flex: 1 1 auto;
  }
}

@media (max-width: 860px) and (max-height: 740px) {
  .console,
  .cta-row .btn--ghost {
    display: none;
  }
  .panel--hero .lede {
    font-size: 0.92rem;
  }
}

@media (max-width: 520px) {
  .vital {
    padding: 16px 14px 0;
  }
  .vital svg {
    width: calc(100% + 28px);
    margin-inline: -14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .ticker-track {
    animation: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .tape-fill {
    transform: scaleX(0.82);
  }
  .power.is-in .cell-fill,
  .power.is-in .tape-fill {
    animation: none;
  }
  .vital svg .draw {
    stroke-dashoffset: 0;
  }
}
