@font-face {
  font-family: Manrope;
  src: url('./assets/fonts/manrope-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: 'DM Mono';
  src: url('./assets/fonts/dm-mono-400-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'DM Mono';
  src: url('./assets/fonts/dm-mono-500-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root,
:root[data-cd-theme='dark'] {
  color-scheme: dark;
  --bg: #0b0d10;
  --stage-bg: #060705;
  --surface: #11130f;
  --surface-2: #171a14;
  --surface-3: #20241c;
  --text: #f4eddb;
  --muted: #9a927f;
  --quiet: #736d5e;
  --line: rgba(244, 237, 219, .13);
  --line-hot: rgba(255, 176, 0, .5);
  --line-solid: #2d3028;
  --amber: #ffb000;
  --orange: #ff6b35;
  --good: #8fc99c;
  --danger: #ff6a5b;
  --shadow-color: #000;
  --grid: rgba(244, 237, 219, .025);
  --selection: #1b170b;
  --paper: var(--text);
  --panel: var(--surface);
  --sage: var(--good);
}

:root[data-cd-theme='light'] {
  color-scheme: light;
  --bg: #f2efe7;
  --stage-bg: #e9e5dc;
  --surface: #fbf9f3;
  --surface-2: #e5e0d6;
  --surface-3: #d8d2c5;
  --text: #171b1e;
  --muted: #59636c;
  --quiet: #767e82;
  --line: rgba(23, 27, 30, .17);
  --line-hot: rgba(128, 84, 0, .46);
  --line-solid: #c8c2b5;
  --amber: #805400;
  --orange: #a73732;
  --good: #087a55;
  --danger: #b4233a;
  --shadow-color: #37342e;
  --grid: rgba(23, 27, 30, .05);
  --selection: #f4e8c8;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  overflow-x: hidden;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  padding-top: 38px;
  background:
    radial-gradient(circle at 76% -6%, color-mix(in srgb, var(--amber) 10%, transparent), transparent 34rem),
    radial-gradient(circle at 8% 27%, color-mix(in srgb, var(--orange) 5%, transparent), transparent 28rem),
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--bg);
  color: var(--text);
  font: 13px/1.55 Manrope, sans-serif;
  font-variant-numeric: tabular-nums;
}

button,
input,
select { font: inherit; }

button,
select { color: inherit; }

button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }

::selection {
  color: #171005;
  background: #ffb000;
}

:root[data-cd-theme='light'] ::selection {
  color: #fffdf8;
  background: var(--amber);
}

:where(a, button, input, select, canvas):focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

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

.skip-link {
  position: fixed;
  top: 5px;
  left: 10px;
  z-index: 1000;
  padding: 7px 10px;
  transform: translateY(-160%);
  border: 1px solid var(--amber);
  background: var(--surface);
  color: var(--text);
  font: 500 9px/1 'DM Mono', monospace;
  text-decoration: none;
}

.skip-link:focus { transform: none; }

.grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.91' numOctaves='3' stitchTiles='stitchTiles'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.62'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.fleet-rail {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  height: 38px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line-solid);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--amber) 10%, transparent), transparent 28%),
    color-mix(in srgb, var(--surface) 96%, transparent);
  box-shadow: 0 12px 38px color-mix(in srgb, var(--shadow-color) 16%, transparent);
  backdrop-filter: blur(14px);
  font: 500 9px/1 'DM Mono', monospace;
  letter-spacing: .08em;
}

.fleet-rail a { text-decoration: none; }
.fleet-home { font-weight: 500; }
.fleet-shelf { color: var(--amber); }
.rail-rule { width: 1px; height: 14px; background: var(--line-solid); }
.fleet-title { color: var(--muted); }
.fleet-status { margin-left: auto; color: var(--muted); }
.fleet-status i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 12px color-mix(in srgb, var(--good) 72%, transparent);
}

.fleet-rail .cd-theme-toggle {
  min-width: 76px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 9px;
  border: 1px solid var(--line-solid);
  border-radius: 0;
  background: var(--surface-2);
  color: var(--muted);
  font: 500 8px/1 'DM Mono', monospace;
}

.fleet-rail .cd-theme-toggle:hover { color: var(--text); border-color: var(--amber); }

main {
  width: min(1680px, calc(100% - clamp(28px, 5vw, 84px)));
  margin: 0 auto;
}

.masthead {
  min-height: 510px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(350px, .55fr);
  gap: clamp(50px, 9vw, 150px);
  align-items: center;
  padding: 80px 0 60px;
}

.mast-copy {
  position: relative;
  padding: 30px 0 30px 29px;
  border-left: 1px solid var(--amber);
}

.mast-copy::before,
.mast-copy::after {
  content: '';
  position: absolute;
  left: -4px;
  width: 7px;
  height: 7px;
  background: var(--amber);
}

.mast-copy::before { top: 0; }
.mast-copy::after { bottom: 0; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 0 0 30px;
  font: 500 9px/1 'DM Mono', monospace;
  letter-spacing: .13em;
}

.eyebrow span {
  padding: 5px 8px;
  background: color-mix(in srgb, var(--amber) 12%, transparent);
  color: var(--amber);
}

.eyebrow b { color: var(--muted); font-weight: 400; }

h1 {
  margin: 0;
  font: 800 clamp(76px, 11vw, 170px)/.72 Manrope, sans-serif;
  letter-spacing: -.087em;
  white-space: nowrap;
}

h1 em {
  color: var(--amber);
  font-style: normal;
  font-weight: 400;
}

.lede {
  max-width: 760px;
  margin: 39px 0 0;
  color: var(--muted);
  font-size: clamp(13px, 1.15vw, 17px);
  line-height: 1.72;
}

.snapshot-passport {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line-solid);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--amber) 8%, transparent), transparent 64%),
    var(--surface);
  box-shadow: 22px 22px 0 color-mix(in srgb, var(--shadow-color) 14%, transparent);
}

.snapshot-passport div {
  min-width: 0;
  min-height: 116px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border-right: 1px solid var(--line-solid);
  border-bottom: 1px solid var(--line-solid);
}

.snapshot-passport div:nth-child(2n) { border-right: 0; }
.snapshot-passport span,
.snapshot-passport p { font: 500 8px/1.4 'DM Mono', monospace; letter-spacing: .09em; }
.snapshot-passport span { color: var(--muted); }
.snapshot-passport strong {
  overflow: hidden;
  color: var(--text);
  font: 500 clamp(19px, 2vw, 29px)/1 'DM Mono', monospace;
  letter-spacing: -.06em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.snapshot-passport div:first-child strong { color: var(--amber); }
.snapshot-passport div:nth-child(2) strong { font-size: clamp(15px, 1.45vw, 22px); }
.snapshot-passport p {
  grid-column: 1 / -1;
  margin: 0;
  padding: 13px 20px;
  color: var(--quiet);
}

.mode-deck {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line-solid);
  background: var(--surface);
}

.mode-deck button {
  min-width: 0;
  min-height: 104px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  align-content: center;
  gap: 6px 14px;
  padding: 20px 23px;
  border: 0;
  border-right: 1px solid var(--line-solid);
  background: transparent;
  text-align: left;
  transition: background .2s ease, color .2s ease;
}

.mode-deck button:last-child { border-right: 0; }
.mode-deck button:hover { background: var(--surface-2); }

.mode-deck button[aria-pressed='true'] {
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--amber) 17%, transparent), transparent 72%),
    var(--selection);
  box-shadow: inset 0 -2px var(--amber);
}

.mode-deck span {
  grid-row: 1 / 3;
  color: var(--amber);
  font: 500 9px/1 'DM Mono', monospace;
}

.mode-deck b {
  font: 700 13px/1 Manrope, sans-serif;
  letter-spacing: .05em;
}

.mode-deck small {
  color: var(--muted);
  font: 400 8px/1.3 'DM Mono', monospace;
}

.studio {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 390px);
  border: 1px solid var(--line-solid);
  border-top: 0;
  background: var(--surface);
}

.stage-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line-solid);
}

.stage-shell {
  position: relative;
  flex: 1;
  min-height: min(72vh, 760px);
  overflow: hidden;
  background: var(--stage-bg);
  isolation: isolate;
}

.stage-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 48%, color-mix(in srgb, var(--amber) 8%, transparent), transparent 31%),
    linear-gradient(118deg, color-mix(in srgb, var(--orange) 4%, transparent), transparent 30%);
}

.stage-shell::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  box-shadow: inset 0 0 90px color-mix(in srgb, var(--shadow-color) 48%, transparent);
}

#visualizerCanvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  cursor: grab;
}

#visualizerCanvas:active { cursor: grabbing; }

.stage-hud {
  position: absolute;
  inset: 22px 24px auto;
  z-index: 5;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  pointer-events: none;
  font-family: 'DM Mono', monospace;
}

.stage-hud div { display: flex; align-items: baseline; gap: 13px; }
.stage-hud span { color: var(--amber); font-size: 8px; }
.stage-hud b { font-size: 11px; letter-spacing: .12em; }
.stage-hud p {
  max-width: 380px;
  margin: 0;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: .07em;
  text-align: right;
}

.canvas-hint {
  position: absolute;
  inset: auto 24px 18px;
  z-index: 5;
  color: var(--quiet);
  pointer-events: none;
  font: 500 7px/1 'DM Mono', monospace;
  letter-spacing: .1em;
  text-align: center;
}

.stage-corners { position: absolute; inset: 12px; z-index: 4; pointer-events: none; }
.stage-corners i { position: absolute; width: 18px; height: 18px; }
.stage-corners i:nth-child(1) { top: 0; left: 0; border-top: 1px solid var(--line-hot); border-left: 1px solid var(--line-hot); }
.stage-corners i:nth-child(2) { top: 0; right: 0; border-top: 1px solid var(--line-hot); border-right: 1px solid var(--line-hot); }
.stage-corners i:nth-child(3) { bottom: 0; right: 0; border-bottom: 1px solid var(--line-hot); border-right: 1px solid var(--line-hot); }
.stage-corners i:nth-child(4) { bottom: 0; left: 0; border-bottom: 1px solid var(--line-hot); border-left: 1px solid var(--line-hot); }

.loading-state {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: grid;
  place-content: center;
  gap: 9px;
  background: var(--stage-bg);
  text-align: center;
  font-family: 'DM Mono', monospace;
}

.loading-state span {
  width: 46px;
  height: 46px;
  margin: 0 auto 12px;
  border: 1px solid var(--line-solid);
  border-top-color: var(--amber);
  border-radius: 50%;
  animation: rotate 1s linear infinite;
}

.loading-state b { font-size: 10px; letter-spacing: .13em; }
.loading-state small { color: var(--muted); font-size: 8px; }
.loading-state.is-error span { border-color: var(--danger); animation: none; }
.loading-state.is-error b { color: var(--danger); }

.transport {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto minmax(200px, 1fr) auto auto auto;
  align-items: stretch;
  border-top: 1px solid var(--line-solid);
  background: var(--surface);
}

.transport > button,
.speed-control {
  min-width: 74px;
  min-height: 54px;
  border: 0;
  border-right: 1px solid var(--line-solid);
  background: transparent;
}

.transport > button {
  display: grid;
  place-content: center;
  gap: 3px;
}

.transport > button:hover,
.transport > button[aria-pressed='true']:hover { background: var(--surface-2); }
.transport > button span { color: var(--amber); font: 500 15px/1 'DM Mono', monospace; }
.transport > button b { color: var(--muted); font: 500 7px/1 'DM Mono', monospace; letter-spacing: .08em; }
.transport > button[aria-pressed='false'] span { color: var(--quiet); }

.timeline-wrap {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(80px, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 0 20px;
  border-right: 1px solid var(--line-solid);
  color: var(--muted);
  font: 500 7px/1 'DM Mono', monospace;
}

.timeline-wrap span { white-space: nowrap; }

input[type='range'] {
  width: 100%;
  height: 26px;
  margin: 0;
  appearance: none;
  background: transparent;
}

input[type='range']::-webkit-slider-runnable-track {
  height: 2px;
  background: linear-gradient(90deg, var(--amber), var(--line-solid));
}

input[type='range']::-webkit-slider-thumb {
  width: 13px;
  height: 13px;
  margin-top: -5px;
  appearance: none;
  border: 2px solid var(--stage-bg);
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 1px var(--amber);
}

input[type='range']::-moz-range-track { height: 2px; background: var(--line-solid); }
input[type='range']::-moz-range-progress { height: 2px; background: var(--amber); }
input[type='range']::-moz-range-thumb { width: 11px; height: 11px; border: 2px solid var(--stage-bg); border-radius: 50%; background: var(--amber); }

.speed-control {
  display: grid;
  place-content: center;
  gap: 5px;
  color: var(--muted);
  font: 500 7px/1 'DM Mono', monospace;
  text-align: center;
}

.speed-control select {
  min-width: 58px;
  height: 26px;
  padding: 0 5px;
  border: 1px solid var(--line-solid);
  border-radius: 0;
  background: var(--surface-2);
  color: var(--text);
  font: 500 9px/1 'DM Mono', monospace;
}

.readout { min-width: 0; background: var(--surface); }

.readout > header {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line-solid);
  font: 500 8px/1 'DM Mono', monospace;
  letter-spacing: .1em;
}

.readout > header p { margin: 0; color: var(--muted); }
.readout > header span { color: var(--amber); }

.selection-title {
  min-height: 126px;
  display: grid;
  grid-template-columns: 45px 1fr;
  gap: 18px;
  align-items: start;
  padding: 25px 22px;
  border-bottom: 1px solid var(--line-solid);
  background: linear-gradient(125deg, color-mix(in srgb, var(--amber) 8%, transparent), transparent 70%);
}

.selection-title > span {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-hot);
  color: var(--amber);
  font: 500 9px/1 'DM Mono', monospace;
}

.selection-title h2 {
  overflow-wrap: anywhere;
  margin: 0;
  font: 700 clamp(20px, 2vw, 28px)/1.08 Manrope, sans-serif;
  letter-spacing: -.04em;
}

.selection-title p {
  margin: 10px 0 0;
  color: var(--muted);
  font: 400 8px/1.5 'DM Mono', monospace;
  letter-spacing: .04em;
}

.selection-metrics { margin: 0; }
.selection-metrics > div {
  min-height: 66px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 18px;
  align-items: center;
  padding: 12px 22px;
  border-bottom: 1px solid var(--line-solid);
}

.selection-metrics dt { color: var(--muted); font: 500 8px/1.35 'DM Mono', monospace; letter-spacing: .06em; }
.selection-metrics dd { min-width: 0; margin: 0; text-align: right; }
.selection-metrics strong { display: block; overflow-wrap: anywhere; font: 500 14px/1.1 'DM Mono', monospace; }
.selection-metrics small { display: block; margin-top: 5px; color: var(--quiet); font: 400 7px/1.3 'DM Mono', monospace; }

.encoding-key { padding: 22px; border-bottom: 1px solid var(--line-solid); }
.encoding-key h3,
.selection-ledger h3 { margin: 0; font: 700 9px/1 Manrope, sans-serif; letter-spacing: .09em; }
.encoding-key ul { margin: 16px 0 0; padding: 0; list-style: none; }
.encoding-key li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font: 400 8px/1.45 'DM Mono', monospace;
}

.encoding-key strong { color: var(--amber); font-weight: 500; }
.encoding-key span { color: var(--muted); }

.selection-ledger > header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line-solid);
}

.selection-ledger > header span { color: var(--muted); font: 500 7px/1 'DM Mono', monospace; }

#selectionLedger button {
  width: 100%;
  min-height: 46px;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 8px 22px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
}

#selectionLedger button:hover { background: var(--surface-2); }
#selectionLedger span { color: var(--quiet); font: 500 7px/1 'DM Mono', monospace; }
#selectionLedger b { overflow: hidden; font: 500 9px/1 'DM Mono', monospace; text-overflow: ellipsis; white-space: nowrap; }
#selectionLedger span b { display: block; color: var(--text); }
#selectionLedger small { display: block; margin-top: 4px; color: var(--quiet); font-size: 7px; }
#selectionLedger strong { color: var(--amber); font: 500 8px/1 'DM Mono', monospace; white-space: nowrap; }

.field-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-inline: 1px solid var(--line-solid);
  border-bottom: 1px solid var(--line-solid);
}

.field-notes article {
  min-height: 330px;
  padding: clamp(28px, 4vw, 58px);
  border-right: 1px solid var(--line-solid);
  background: var(--surface);
}

.field-notes article:last-child { border-right: 0; }
.field-notes span { color: var(--amber); font: 500 8px/1 'DM Mono', monospace; letter-spacing: .12em; }
.field-notes h2 { margin: 38px 0 25px; font: 700 clamp(27px, 3vw, 43px)/1.02 Manrope, sans-serif; letter-spacing: -.05em; }
.field-notes h2 em { color: var(--amber); font-style: normal; font-weight: 500; }
.field-notes p { max-width: 430px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.75; }

footer {
  min-height: 110px;
  display: grid;
  grid-template-columns: 1fr 1.4fr auto;
  gap: 24px;
  align-items: center;
  padding: 25px 0;
  color: var(--muted);
  font: 400 8px/1.5 'DM Mono', monospace;
}

footer p { margin: 0; }
footer b { color: var(--text); }
footer a { color: var(--amber); text-decoration: none; }

@keyframes rotate { to { transform: rotate(360deg); } }

@media (max-width: 1180px) {
  .masthead { grid-template-columns: 1fr minmax(320px, .5fr); gap: 50px; }
  .studio { grid-template-columns: minmax(0, 1fr) 330px; }
  .transport { grid-template-columns: auto minmax(140px, 1fr) auto auto auto; }
  .timeline-wrap { gap: 9px; padding: 0 12px; }
  .field-notes article { min-height: 300px; }
}

@media (max-width: 940px) {
  .masthead { min-height: auto; grid-template-columns: 1fr; padding: 75px 0 55px; }
  .snapshot-passport { max-width: 620px; }
  .mode-deck { grid-template-columns: 1fr 1fr; }
  .mode-deck button:nth-child(2) { border-right: 0; }
  .mode-deck button:nth-child(-n + 2) { border-bottom: 1px solid var(--line-solid); }
  .studio { grid-template-columns: 1fr; }
  .stage-column { border-right: 0; }
  .stage-shell { min-height: min(72svh, 680px); }
  .readout { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-solid); }
  .readout > header { grid-column: 1 / -1; }
  .selection-title, .selection-metrics { grid-column: 1; }
  .encoding-key, .selection-ledger { grid-column: 2; }
  .selection-title { grid-row: 2; }
  .encoding-key { grid-row: 2 / span 2; border-left: 1px solid var(--line-solid); }
  .selection-ledger { border-left: 1px solid var(--line-solid); }
  .field-notes { grid-template-columns: 1fr; }
  .field-notes article { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line-solid); }
  .field-notes article:last-child { border-bottom: 0; }
}

@media (max-width: 680px) {
  body { padding-top: 38px; }
  main { width: min(100% - 24px, 1680px); }
  .fleet-rail { gap: 8px; }
  .fleet-title, .fleet-status { display: none; }
  .fleet-shelf { margin-right: auto; }
  .fleet-rail .cd-theme-toggle { min-width: 40px; width: 40px; padding: 0; }
  .fleet-rail .cd-theme-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .masthead { padding-top: 56px; gap: 38px; }
  .mast-copy { padding: 22px 0 22px 17px; }
  .eyebrow { flex-wrap: wrap; gap: 8px; margin-bottom: 23px; font-size: 7px; }
  h1 { font-size: clamp(61px, 24vw, 112px); line-height: .78; }
  .lede { margin-top: 27px; font-size: 12px; }
  .snapshot-passport div { min-height: 96px; padding: 16px; }
  .snapshot-passport strong { font-size: 18px; }
  .snapshot-passport p { padding: 11px 16px; font-size: 7px; }
  .mode-deck button { min-height: 88px; padding: 16px 13px; gap: 5px 9px; }
  .mode-deck b { font-size: 10px; }
  .mode-deck small { font-size: 7px; }
  .stage-shell { min-height: 560px; }
  .stage-hud { inset: 18px 17px auto; }
  .stage-hud p { display: none; }
  .stage-hud div { gap: 9px; }
  .canvas-hint { inset-inline: 15px; font-size: 6px; }
  .transport {
    min-height: 0;
    grid-template-columns: repeat(4, 1fr);
  }
  .transport > button,
  .speed-control { min-width: 0; min-height: 58px; }
  .timeline-wrap {
    grid-column: 1 / -1;
    grid-row: 1;
    min-height: 58px;
    border-right: 0;
    border-bottom: 1px solid var(--line-solid);
  }
  .transport > button,
  .speed-control { grid-row: 2; }
  .transport > button:last-child { border-right: 0; }
  .readout { display: block; }
  .encoding-key,
  .selection-ledger { border-left: 0; }
  .selection-title { min-height: 112px; padding: 20px 17px; }
  .selection-metrics > div { padding-inline: 17px; }
  .encoding-key { padding: 20px 17px; }
  .selection-ledger > header { padding-inline: 17px; }
  #selectionLedger button { min-height: 48px; padding-inline: 17px; }
  .field-notes article { padding: 38px 24px; }
  .field-notes h2 { margin-top: 28px; }
  footer { grid-template-columns: 1fr; gap: 12px; padding: 30px 0; }
}

@media (max-width: 420px) {
  .snapshot-passport strong { font-size: 16px; }
  .stage-shell { min-height: 520px; }
  .mode-deck small { display: none; }
  .mode-deck button { min-height: 70px; grid-template-rows: auto; }
  .mode-deck span { grid-row: auto; }
  .timeline-wrap span { max-width: 70px; overflow: hidden; text-overflow: ellipsis; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
