:root {
  --bg:        #07090d;
  --ink:       #dde4ee;
  --ink-dim:   #8b95a0;
  --ink-faint: #4d5662;
  --line:      #191f28;

  --c-screen: #38b2c2;
  --c-senses: #5bd0a0;
  --c-head:   #e6b14c;
  --c-body:   #b08cff;

  --maxw: 32rem;
  --pad: clamp(1.1rem, 5vw, 2rem);
  --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-sans:  'DM Sans', system-ui, -apple-system, sans-serif;
  --t-fast: 160ms;
  --t-med:  400ms;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(255,255,255,0) 0, rgba(255,255,255,0.026) 1px, rgba(255,255,255,0) 2px),
    linear-gradient(90deg, rgba(255,255,255,0) 0, rgba(255,255,255,0.026) 1px, rgba(255,255,255,0) 2px);
  background-size: 32px 32px;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(0.97rem, 0.88rem + 0.5vw, 1.08rem);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-optical-sizing: auto;
}

h2, h4, p { margin: 0; }
strong { color: #e8edf5; font-weight: 600; }

[data-group="Screen"] { --accent: var(--c-screen); }
[data-group="Senses"] { --accent: var(--c-senses); }
[data-group="Head"]   { --accent: var(--c-head); }
[data-group="Body"]   { --accent: var(--c-body); }

.scrolly { position: relative; margin-top: -100vh; margin-top: -100lvh; }

.stage {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  opacity: 0;
}

.rail {
  padding: 0.7rem var(--pad) 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.48rem;
}

.rail-tracks {
  display: flex;
  gap: clamp(0.35rem, 1.5vw, 0.75rem);
  align-items: stretch;
}

.rail-group {
  flex: 4;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rail-group[data-group="Head"] { flex: 2; }

.rail-name {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color var(--t-fast) var(--ease);
}
.rail-group.is-current .rail-name { color: var(--accent); }

.rail-segs {
  display: flex;
  gap: 3px;
  height: 2px;
}
.seg {
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  background: var(--line);
  border-radius: 2px;
  transition: background var(--t-med) var(--ease), opacity var(--t-med) var(--ease);
}
.seg.is-on { background: var(--accent); }

.rail-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  line-height: 1;
  min-height: 0.9rem;
}
.rail-label-num {
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
  flex: 0 0 auto;
}
.rail-label-sep { color: var(--ink-faint); flex: 0 0 auto; }
.rail-label-title {
  color: var(--ink-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  /* overflow:hidden (needed for the ellipsis) also clips descenders against
     the line-height:1 box, cutting off the "g" in titles like "Navigation".
     Extend the clip box below the baseline; negative margin keeps layout put. */
  padding-bottom: 0.35em;
  margin-bottom: -0.35em;
}

.steps { position: relative; z-index: 1; }

.step {
  min-height: 90svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 var(--pad) clamp(2.5rem, 10svh, 5rem);
}

.section-head {
  position: relative;
  width: 100%;
  padding: calc(clamp(1rem, 3.5svh, 1.65rem) + 14px) 0;
  margin-bottom: clamp(1.8rem, 5svh, 2.8rem);
}

.section-head::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: #fff;
  z-index: 0;
}

.sh-inner {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: 0;
}

.sh-eyebrow {
  display: none;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6a737d;
  margin-bottom: 0.4rem;
}
.sh-eyebrow::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 1px;
  background: var(--accent);
  flex: 0 0 auto;
}
.sh-index { font-variant-numeric: tabular-nums; }
.sh-group { color: #1a1f26; font-weight: 600; }

.sh-title {
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 1.2rem + 2.8vw, 2.35rem);
  line-height: 1.06;
  letter-spacing: -0.022em;
  font-weight: 700;
  color: #07090d;
  font-optical-sizing: auto;
  /* Extend the paint box below the baseline so descenders aren't clipped
     by the tight line-height on -webkit-background-clip: text titles.
     Negative margin keeps the layout spacing unchanged. */
  padding-bottom: 0.18em;
  margin-bottom: -0.18em;
}

.sh-lead {
  margin-top: 0.4rem;
  font-family: var(--font-sans);
  font-size: 0.83rem;
  line-height: 1.5;
  color: #7a8390;
  font-style: italic;
  font-weight: 400;
  text-wrap: pretty;
}

.sh-title { position: relative; display: inline-block; }
.sh-title .px-grid i,
.sh-title .arrow,
.sh-title .tp,
.sh-title .waves,
.sh-title .heat,
.sh-title .af,
.sh-title .bulb { pointer-events: none; }

.fx-smudge { position: relative; }
.fx-smudge .sm { display: inline-block; }
.fx-smudge.is-played .sm { animation: smudge 1.5s var(--ease) 0.25s both; }
@keyframes smudge {
  0%   { transform: translateY(0); text-shadow: none; filter: blur(0); }
  38%  { transform: translateY(0.13em);
         text-shadow: 0 -5px 3px rgba(7,9,13,0.32), 0 -10px 7px rgba(7,9,13,0.15);
         filter: blur(0.3px); }
  56%  { transform: translateY(0.13em);
         text-shadow: 0 -5px 3px rgba(7,9,13,0.30), 0 -10px 7px rgba(7,9,13,0.14);
         filter: blur(0.3px); }
  100% { transform: translateY(0); text-shadow: none; filter: blur(0); }
}

.fx-screen {
  color: transparent;
  -webkit-text-fill-color: transparent;
  background-image: linear-gradient(100deg, #07090d 0%, #07090d 41%, #97a2b0 47%, #f2f6fb 50%, #97a2b0 53%, #07090d 59%, #07090d 100%);
  background-size: 250% 100%;
  background-position: 118% 0;
  background-clip: text;
  -webkit-background-clip: text;
}
.fx-screen.is-played { animation: glareSweep 1.7s cubic-bezier(0.45,0.05,0.4,1) 0.2s both; }
@keyframes glareSweep {
  0%   { background-position: 118% 0; }
  100% { background-position: -18% 0; }
}

.fx-touch .tp {
  position: absolute;
  width: 0.66em; height: 0.66em;
  border: 2px solid #07090d;
  border-radius: 50%;
  left: 1.3em; top: 0.42em;
  opacity: 0;
}
.fx-touch.is-played .tp {
  animation: touchTap 1.8s var(--ease) 0.2s both;
}
@keyframes touchTap {
  0%   { opacity: 0; transform: translate(0, 0) scale(2.2); }
  18%  { opacity: 1; transform: translate(0, 0) scale(1); }
  45%  { opacity: 1; transform: translate(0, 0) scale(1); }
  88%  { opacity: 1; transform: translate(3.1em, 0.15em) scale(1); }
  100% { opacity: 0; transform: translate(3.1em, 0.15em) scale(2.2); }
}

.fx-display .px-grid { position: absolute; inset: 0; display: block; }
.fx-display .px-grid i {
  position: absolute;
  width: 0.13em; height: 0.13em;
  margin: -0.065em 0 0 -0.065em;
  background: #fff;
  border-radius: 1px;
  box-shadow: 0 0 0 1px rgba(7,9,13,0.10);
  opacity: 0;
}
.fx-display.is-played .px-grid i {
  animation: pxOn 0.9s var(--ease) both;
  animation-delay: calc(0.1s + var(--i) * 0.055s);
}
@keyframes pxOn {
  0%   { opacity: 0; transform: scale(0.3); }
  40%  { opacity: 1; transform: scale(1); }
  70%  { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1); }
}
.fx-display.is-played { animation: screenOn 1.5s var(--ease) 0.1s both; }
@keyframes screenOn {
  0%   { opacity: 0.32; }
  100% { opacity: 1; }
}

.fx-vision .eye { font-style: normal; }
.fx-vision.is-played {
  animation: focusPull 1.15s var(--ease) 0.12s both;
}
@keyframes focusPull {
  0%   { filter: blur(7px); opacity: 0.45; }
  40%  { filter: blur(3.5px); opacity: 0.74; }
  62%  { filter: blur(1.3px); opacity: 0.93; }
  76%  { filter: blur(2px); opacity: 0.9; }
  100% { filter: blur(0); opacity: 1; }
}

.fx-nav .arrow {
  position: absolute;
  left: 100%;
  margin-left: 0.1em;
  top: 50%;
  height: 2px;
  width: 0;
  background: #07090d;
  transform: translateY(-50%);
  opacity: 0;
}
.fx-nav .arrow::after {
  content: "";
  position: absolute;
  right: -1px; top: 50%;
  width: 0.18em; height: 0.18em;
  border-top: 2px solid #07090d;
  border-right: 2px solid #07090d;
  transform: translateY(-50%) rotate(45deg);
}
.fx-nav.is-played .arrow { animation: navArrow 1.5s var(--ease) 0.25s both; }
@keyframes navArrow {
  0%   { opacity: 0; width: 0; }
  30%  { opacity: 1; width: 0.5em; }
  62%  { opacity: 1; width: 0.5em; }
  100% { opacity: 0; width: 0; }
}

.fx-orient { transform-origin: center center; }
.fx-orient.is-played { animation: seesaw 1.6s var(--ease) 0.1s both; }

.fx-orient.is-live { animation: none !important; }
@keyframes seesaw {
  0%   { transform: rotate(0deg); }
  20%  { transform: rotate(2.6deg); }
  45%  { transform: rotate(-2deg); }
  68%  { transform: rotate(1.1deg); }
  85%  { transform: rotate(-0.5deg); }
  100% { transform: rotate(0deg); }
}

.fx-vibrate.is-played { animation: buzz 0.6s linear 0.1s both; }
@keyframes buzz {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-1.5px, 1px); }
  20% { transform: translate(1.5px, -1px); }
  30% { transform: translate(-2px, -1px); }
  40% { transform: translate(2px, 1px); }
  50% { transform: translate(-1.5px, 1px); }
  60% { transform: translate(1.5px, -1px); }
  70% { transform: translate(-1px, 1px); }
  80% { transform: translate(1px, -1px); }
  90% { transform: translate(-0.5px, 0); }
}

.fx-processor {
  color: transparent;
  -webkit-text-fill-color: transparent;
  background-image: linear-gradient(90deg, #07090d 50%, #d4d7db 50%);
  background-size: 200% 100%;
  background-position: 0% 0;
  background-clip: text;
  -webkit-background-clip: text;
}
.fx-processor.is-played { animation: procFill 2.6s var(--ease) 0.15s both; }
@keyframes procFill {
  0%   { background-position: 0% 0; }
  10%  { background-position: 0% 0; }
  11%  { background-position: 100% 0; }
  24%  { background-position: 100% 0; }
  36%  { background-position: 68% 0; }
  46%  { background-position: 68% 0; }
  58%  { background-position: 38% 0; }
  68%  { background-position: 38% 0; }
  80%  { background-position: 12% 0; }
  90%  { background-position: 12% 0; }
  100% { background-position: 0% 0; }
}

.fx-radio .waves {
  position: absolute;
  right: -0.15em; top: 0.05em;
  width: 0.5em; height: 0.9em;
}
.fx-radio .waves::before,
.fx-radio .waves::after {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 0.5em; height: 0.5em;
  margin-top: -0.25em;
  border: 2px solid #07090d;
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-top-color: transparent;
  border-radius: 50%;
  opacity: 0;
}
.fx-radio.is-played .waves::before { animation: radioWave 1.8s var(--ease) 0.2s both; }
.fx-radio.is-played .waves::after  { animation: radioWave 1.8s var(--ease) 0.5s both; }
@keyframes radioWave {
  0%   { opacity: 0; transform: scale(0.3); }
  35%  { opacity: 0.9; }
  100% { opacity: 0; transform: scale(2.4); }
}

.fx-power .pw {
  display: inline-block;
  color: transparent;
  -webkit-text-fill-color: transparent;
  background-image: linear-gradient(0deg, #07090d 50%, #d4d7db 50%);
  background-size: 100% 200%;
  background-position: 0 0%;
  background-clip: text;
  -webkit-background-clip: text;
}
.fx-power.is-played .pw { animation: charge 2s var(--ease) 0.15s both; }
@keyframes charge {
  0%   { background-position: 0 0%; opacity: 1; }
  50%  { background-position: 0 100%; opacity: 1; }
  60%  { background-position: 0 100%; opacity: 1; }
  66%  { opacity: 0.28; }
  72%  { opacity: 1; }
  78%  { opacity: 0.5; }
  84%  { opacity: 1; }
  100% { background-position: 0 100%; opacity: 1; }
}
.fx-power .cl { position: relative; display: inline-block; }
.fx-power .heat {
  position: absolute;
  left: 0; right: 0; top: -0.45em;
  height: 0.5em;
}
.fx-power .heat::before,
.fx-power .heat::after {
  content: "";
  position: absolute;
  top: 0;
  width: 0.6em; height: 0.5em;
  border-left: 2px solid #07090d;
  border-top-left-radius: 0.3em;
  border-top-right-radius: 0.3em;
  opacity: 0;
}
.fx-power .heat::before { left: 22%; }
.fx-power .heat::after  { left: 55%; }
.fx-power.is-played .heat::before { animation: heatRise 1.8s ease-out 1.0s both; }
.fx-power.is-played .heat::after  { animation: heatRise 1.8s ease-out 1.25s both; }
@keyframes heatRise {
  0%   { opacity: 0; transform: translateY(0.3em) scaleY(0.6); }
  35%  { opacity: 0.7; }
  100% { opacity: 0; transform: translateY(-0.5em) scaleY(1.1); }
}

.fx-frame .frm { position: relative; display: inline-block; }
.fx-frame .frm::before,
.fx-frame .frm::after {
  content: "Frame";
  position: absolute;
  left: 0; top: 0;
  color: #07090d;
  letter-spacing: inherit;
  pointer-events: none;
}
.fx-frame .frm::before { clip-path: inset(0 0 50% 0); }
.fx-frame .frm::after  { clip-path: inset(50% 0 0 0); }
.fx-frame.is-played .frm { color: transparent; }
.fx-frame.is-played .frm::before { animation: kerfTop 1.7s cubic-bezier(0.32,1.5,0.46,1) 0.15s both; }
.fx-frame.is-played .frm::after  { animation: kerfBot 1.7s cubic-bezier(0.32,1.5,0.46,1) 0.15s both; }
@keyframes kerfTop {
  0%   { transform: translateY(0); }
  20%  { transform: translateY(-0.085em); }
  58%  { transform: translateY(-0.085em); }
  76%  { transform: translateY(0.014em); }
  100% { transform: translateY(0); }
}
@keyframes kerfBot {
  0%   { transform: translateY(0); }
  20%  { transform: translateY(0.085em); }
  58%  { transform: translateY(0.085em); }
  76%  { transform: translateY(-0.014em); }
  100% { transform: translateY(0); }
}
.fx-frame .key {
  display: inline-block;
  transform-origin: center bottom;
}
.fx-frame.is-played .key { animation: keyPress 1.2s var(--ease) both; }
.fx-frame.is-played .key:nth-of-type(1) { animation-delay: 0.7s; }
.fx-frame.is-played .key:nth-of-type(2) { animation-delay: 0.92s; }
.fx-frame.is-played .key:nth-of-type(3) { animation-delay: 1.14s; }
@keyframes keyPress {
  0%   { transform: translateY(0); text-shadow: none; }
  25%  { transform: translateY(0.1em); text-shadow: 0 -0.05em 0 #07090d; }
  55%  { transform: translateY(0); text-shadow: none; }
  100% { transform: translateY(0); text-shadow: none; }
}

.fx-camera .af {
  position: absolute;
  left: -0.32em; right: -0.5em;
  top: -0.25em; bottom: -0.15em;
  opacity: 0;
}
.fx-camera .af::before,
.fx-camera .af::after {
  content: "";
  position: absolute;
  width: 0.6em; height: 0.6em;
  border: 2px solid #07090d;
}
.fx-camera .af::before { left: 0; top: 0; border-right: none; border-bottom: none; }
.fx-camera .af::after  { right: 0; bottom: 0; border-left: none; border-top: none; }
.fx-camera.is-played .af { animation: afFocus 1.7s var(--ease) 0.2s both; }
.fx-camera.is-played { animation: shutter 1.7s var(--ease) 0.2s both; }
@keyframes afFocus {
  0%   { opacity: 0; transform: scale(1.18); }
  40%  { opacity: 1; transform: scale(1); }
  72%  { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1); }
}
@keyframes shutter {
  0%, 44%, 100% { opacity: 1; }
  48% { opacity: 0.45; }
  52% { opacity: 1; }
}

.fx-light { position: relative; color: #07090d; }
.fx-light .bulb { display: none; }
.fx-light::after {
  content: "Illumination";
  position: absolute;
  left: 0; top: 0;
  color: #d4d7db;
  letter-spacing: inherit;
  pointer-events: none;
  -webkit-clip-path: polygon(-4% 50%, 8% 47%, 8% 53%);
  clip-path: polygon(-4% 50%, 8% 47%, 8% 53%);
  opacity: 0;
}
.fx-light.is-played::after { animation: torchBeam 2.1s var(--ease) 0.15s both; }
@keyframes torchBeam {
  0%   { opacity: 0; -webkit-clip-path: polygon(-4% 50%, 8% 47%, 8% 53%);
                             clip-path: polygon(-4% 50%, 8% 47%, 8% 53%); }
  14%  { opacity: 1; -webkit-clip-path: polygon(-4% 50%, 30% 40%, 30% 60%);
                             clip-path: polygon(-4% 50%, 30% 40%, 30% 60%); }
  46%  { opacity: 1; -webkit-clip-path: polygon(-4% 50%, 106% 10%, 106% 52%);
                             clip-path: polygon(-4% 50%, 106% 10%, 106% 52%); }
  72%  { opacity: 1; -webkit-clip-path: polygon(-4% 50%, 106% 48%, 106% 90%);
                             clip-path: polygon(-4% 50%, 106% 48%, 106% 90%); }
  86%  { opacity: 0.95; -webkit-clip-path: polygon(-4% 50%, 106% 28%, 106% 72%);
                                clip-path: polygon(-4% 50%, 106% 28%, 106% 72%); }
  100% { opacity: 0; -webkit-clip-path: polygon(-4% 50%, 106% 28%, 106% 72%);
                             clip-path: polygon(-4% 50%, 106% 28%, 106% 72%); }
}

.card {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.card-heritage, .card-art, .card-body, .card .deeper {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

.card-heritage {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--ink-dim);
  margin-bottom: 1.6rem;
}

.card-heritage .h-label { display: none; }
.h-clock {
  width: 13px; height: 13px;
  margin-top: 2px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--ink-faint);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.h-rows { display: flex; flex-direction: column; gap: 0.2rem; }
.h-row { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem; }
.h-label { color: var(--accent); font-weight: 600; font-size: 0.73rem; }
.h-dev   { color: var(--ink-dim); }
.h-year  { color: var(--ink-faint); font-variant-numeric: tabular-nums; }

.card-heritage .h-row:has(.h-note) { cursor: pointer; }
.card-heritage .h-row:has(.h-note) .h-dev {
  text-decoration: underline dotted var(--ink-faint);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.card-heritage .h-row:has(.h-note):hover .h-dev { text-decoration-color: var(--ink-dim); }
.card-heritage .h-row:has(.h-note):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.card-heritage .h-note { display: none; }

.card-heritage.no-popover .h-row { cursor: default; }
.card-heritage.no-popover .h-dev { text-decoration: none; }

.h-note-pop {
  position: absolute;
  z-index: 40;
  max-width: 260px;
  padding: 0.7rem 0.85rem;
  background: #0c1219;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  font-size: 0.92rem;
  line-height: 1.62;
  color: #fff;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity 140ms var(--ease), transform 140ms var(--ease);
  pointer-events: none;
}
.h-note-pop.is-open { opacity: 1; transform: none; }
.h-note-pop p { margin: 0; color: #fff; }
.h-note-pop p + p { margin-top: 0.6rem; }

.card-art { display: none; }
.card-art .viz-svg, .viz-svg {
  width: 100%;
  height: auto;
  max-height: 28svh;
  display: block;
}

.card-body { color: var(--ink-dim); }
.card-body > p { margin-top: 0.95rem; color: var(--ink); }
.card-body > p:first-child { margin-top: 0; }
.card-body .subhead {
  margin-top: 1.8rem;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 600;
}

.hiw {
  margin-top: 1.9rem;
  padding-left: 1rem;
  border-left: 1px solid var(--line);
}
.hiw-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--accent);
}
.hiw-cog { display: none; }
.hiw-body {
  margin-top: 0.85rem;
  font-size: 0.92rem;
  line-height: 1.62;
  color: #6f7884;
}
.hiw-body > p { margin: 0; }
.hiw-body > p + p { margin-top: 0.8rem; }

.hiw-body .subhead {
  margin-top: 1.5rem;
  color: var(--ink-dim);
  font-size: 0.66rem;
}
.hiw-body > :first-child { margin-top: 0; }

.hiw-heritage { margin: 0.5rem 0 0; }

.deeper {
  border-top: 1px solid var(--line);
  margin-top: 2.4rem;
  padding-top: 1.2rem;
}
.deeper > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--accent);
  font-weight: 600;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.deeper > summary::-webkit-details-marker { display: none; }
.deeper > summary::before {
  content: "+";
  font-size: 1.1rem;
  font-weight: 700;
  width: 0.9rem;
  text-align: center;
  font-family: var(--font-sans);
}
.deeper[open] > summary::before { content: "\2013"; }

.deeper-body {
  margin-top: 1rem;
  color: var(--ink-dim);
}
.deeper-body > p { margin-top: 0.88rem; }
.deeper-lead { font-style: italic; }
.deeper-body .subhead {
  margin-top: 1.3rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--accent);
  font-weight: 600;
}

.hand {
  position: relative;
  z-index: 3;
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: clamp(3.5rem, 11svh, 7rem) var(--pad) calc(4.5rem + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.hand-viz { margin: 0 0 2.2rem; width: 100%; max-width: 14rem; align-self: center; }
.hand-viz .viz-svg { max-height: 30svh; }
.hand-content { width: 100%; max-width: var(--maxw); }

.hand-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 1.5rem + 3.5vw, 3rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.025em;
  font-optical-sizing: auto;
  color: #fff;
  text-align: center;
}
.hand-lead {
  color: #fff;
  margin-top: 1.1rem;
  font-family: var(--font-serif);
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.12rem);
  line-height: 1.66;
}

.hand-share { margin-top: 1.6rem; }
.pass-it {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-dim);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.pass-it svg { width: 13px; height: 13px; }
.pass-it:hover { background: rgba(255, 255, 255, 0.09); color: var(--ink, #f4f6f7); }
.pass-it:active { transform: scale(0.985); }
.pass-it:focus-visible { outline: 2px solid var(--c-screen); outline-offset: 2px; }

.signup { margin: 2.6rem auto 0; text-align: left; }
.signup > label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--ink-dim);
  margin-bottom: 0.65rem;
}
.signup-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.signup input[type="email"] {
  flex: 1 1 12rem;
  min-width: 0;
  padding: 0.78rem 0.9rem;
  font-family: var(--font-sans);
  font-size: 0.93rem;
  color: var(--ink);
  background: #0c1219;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.signup input[type="email"]:focus-visible { outline: 2px solid var(--c-screen); outline-offset: 2px; }
.signup button {
  flex: 0 0 auto;
  padding: 0.78rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: #04161a;
  background: var(--c-screen);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  transition: filter var(--t-fast) var(--ease);
}
.signup button:hover { filter: brightness(1.1); }
.signup button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.credits {
  margin-top: 2.8rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--ink-faint);
  line-height: 1.75;
}
.credits p + p { margin-top: 0.4rem; }
.credits a {
  color: var(--ink-dim);
  text-decoration: underline;
  text-decoration-color: var(--ink-faint);
  text-underline-offset: 2px;
  transition: color var(--t-fast) var(--ease);
}
.credits a:hover { color: var(--ink); }
.todo { color: var(--c-head); }

@media (min-width: 56rem) {
  :root {
    --maxw: 38rem;
    --col-w: 25.5rem;
    --col-left: calc((100% - var(--col-w)) / 2 + clamp(2.5rem, 9vw, 9.5rem));
  }
  .rail-name { font-size: 0.92rem; overflow: visible; text-overflow: clip; }
  .step { min-height: auto; padding-block: clamp(3rem, 12svh, 7rem); }

  body { background-color: #000; background-image: none; }

  #main {
    width: var(--col-w);
    max-width: var(--col-w);
    margin-left: var(--col-left);
    margin-right: auto;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-bottom: 0;
  }

  body .td-readout { right: calc(100% - var(--col-left) - var(--col-w) + 10px); }

  .section-head::before { width: calc(100% + 2 * var(--pad)); }

  aside.mobile-aside { display: flex; }
}

.mobile-aside {
  display: none;
  position: fixed;
  top: 50%;
  left: clamp(1.5rem, 6vw, 5.5rem);
  transform: translateY(-50%);
  z-index: 60;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.4rem;
  width: 14.5rem;
  max-width: 28vw;
  font-family: var(--font-sans);
}
.mobile-aside .ma-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0;
}
.mobile-aside .ma-head {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  line-height: 1.18;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  text-wrap: pretty;
}
.mobile-aside .ma-qr {
  width: 9.5rem;
  height: 9.5rem;
  border-radius: 0.55rem;
  display: block;
  box-shadow: 0 1px 0 rgba(255,255,255,0.04), 0 12px 40px rgba(0,0,0,0.5);
}
.mobile-aside .ma-link {
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  color: var(--ink-dim);
  line-height: 1.5;
  margin: 0;
}
.mobile-aside .ma-link a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink-faint);
  padding-bottom: 1px;
  transition: border-color var(--t-fast) var(--ease);
}
.mobile-aside .ma-link a:hover { border-color: var(--ink); }

.intro {
  position: relative;
  height: calc(200svh + 100lvh);
}

.intro-pin {
  position: sticky;
  top: 0;

  height: 100vh;
  height: 100lvh;
  overflow: hidden;
}

.device-frame {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 300px;
  height: 612px;
  margin: 0;
  transform: translate(-50%, -50%) scale(3);
  border: 1.5px solid rgba(233, 238, 246, 0.82);
  border-radius: 30px;
  background: #000;
  will-change: transform;
}

.device-cam {
  position: absolute;
  left: 50%;
  top: 14px;
  width: 7px;
  height: 7px;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 1.5px solid #fff;
  background: transparent;
}

.device-text {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  width: min(22rem, 78vw);
  margin: 0;
  text-align: center;
  text-wrap: balance;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.5rem, 1rem + 3.2vw, 2.4rem);
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: var(--ink);
  will-change: transform, opacity;
}
.device-text span { display: block; }
.device-text span + span { margin-top: 0.85em; }

.intro-cue .cue-text { display: block; margin-bottom: 0.55em; }

.device-layers {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}
.device-layers .iline {
  position: absolute;
  left: 0;
  top: 0;
  width: 10px;
  height: 2px;
  border-radius: 2px;
  opacity: 0;
  will-change: left, top, width, height, background;
}
.device-layers .ititle {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  transform-origin: left center;
  will-change: transform, opacity, color;
}
@media (min-width: 56rem) {
  .device-layers .ititle { font-size: 0.92rem; }
}

.intro-cue {
  position: absolute;
  left: 50%;

  bottom: calc(var(--pad) + env(safe-area-inset-bottom, 0px) + (100lvh - 100svh));
  transform: translateX(-50%);
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3em;
  width: min(22rem, 78vw);
  text-align: center;
  text-wrap: balance;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.5rem, 1rem + 3.2vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.cue-arrow {
  width: 0.92em;
  height: 0.92em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: cueBob 1.9s var(--ease) infinite;
}
@keyframes cueBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(0.32em); }
}

.td-readout {
  position: fixed;
  right: 2px;
  bottom: 14px;
  z-index: 41;
  display: flex;
  flex-direction: column;
  gap: 2px;
  pointer-events: none;
  padding: 3px 4px;
  border-radius: 6px;
  background: rgba(8, 11, 15, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  align-items: flex-end;
  text-align: right;
  font-family: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.9);
  font-variant-numeric: tabular-nums;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}
.td-readout.is-on { opacity: 1; transform: translateY(0); transition: opacity 200ms var(--ease), transform 200ms var(--ease); }
.td-readout .td-k {
  color: rgba(255, 255, 255, 0.45);
  margin-right: 0.5em;
}
.td-readout .td-max { color: rgba(255, 255, 255, 0.45); }

@media (prefers-reduced-motion: reduce) {
  .td-readout { transition: opacity 120ms linear; }
}

.dr-num { font-variant-numeric: tabular-nums; }

.dd-readout .dd-v { font-variant-numeric: tabular-nums; }

.dd-readout {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 0.45em;
  row-gap: 2px;
  align-items: baseline;
  justify-content: end;
}
.dd-readout .dd-v { text-align: right; }
.dd-readout .dd-u { text-align: left; color: rgba(255, 255, 255, 0.45); }

.dd-readout .dd-bit-row { grid-column: 1 / -1; text-align: center; }
.dd-readout .dd-bit-row .dd-u { text-align: center; }

.td-readout.dd-supersede {
  opacity: 0 !important;
  transform: translateY(4px) !important;
  transition: opacity 200ms var(--ease), transform 200ms var(--ease);
}
