:root {
  --black: #050505;
  --stage: #0b0a09;
  --tungsten: #ffb46b;
  --tungsten-hot: #ffd9a8;
  --steel: #4da3ff;
  --bone: #efe6d6;
  --bone-dim: #a89f91;
  --blueprint: #071426;
  --display: 'Big Shoulders Display', 'Oswald', 'Arial Narrow', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --servo: cubic-bezier(.3, 1.45, .45, 1); /* overshoot and settle */
  --gutter: clamp(16px, 3vw, 48px);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--black); color: var(--bone); }
body { font: 400 15px/1.5 var(--mono); overflow-x: clip; -webkit-font-smoothing: antialiased; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
button { font: inherit; color: inherit; }

/* ---------- boot sequence (the loader) ---------- */
.boot {
  position: fixed; inset: 0; z-index: 50; display: grid; place-content: center; gap: 22px; background: var(--black);
  transition: opacity .6s ease .1s, visibility 0s linear .7s;
}
.booted .boot { opacity: 0; visibility: hidden; }
.boot-mark { margin: 0; font: 900 clamp(48px, 9vw, 120px)/.85 var(--display); letter-spacing: .02em; color: var(--bone); }
.boot-mark span { display: block; margin-top: 10px; font: 400 12px/1 var(--mono); letter-spacing: .3em; color: var(--tungsten); }
.boot-log { list-style: none; margin: 0; padding: 0; width: min(420px, 86vw); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--bone-dim); }
.boot-log li { display: flex; align-items: baseline; gap: 8px; opacity: 0; animation: boot-line .01s linear forwards; }
.boot-log li i { flex: 1; border-bottom: 1px dotted #3a3631; }
.boot-log li b { color: var(--tungsten); font-weight: 600; }
.boot-log li.last { color: var(--tungsten-hot); }
.boot-log li.last::after { content: '_'; animation: caret .5s steps(1) infinite; }
.boot-log li:nth-child(1) { animation-delay: .15s; } .boot-log li:nth-child(2) { animation-delay: .45s; }
.boot-log li:nth-child(3) { animation-delay: .75s; } .boot-log li:nth-child(4) { animation-delay: 1.0s; }
.boot-log li:nth-child(5) { animation-delay: 1.25s; } .boot-log li:nth-child(6) { animation-delay: 1.55s; }
@keyframes boot-line { to { opacity: 1; } }
@keyframes caret { 50% { opacity: 0; } }

/* ---------- chrome ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; gap: 20px;
  padding: var(--gutter); pointer-events: none;
}
.top > * { pointer-events: auto; }
/* once a text page scrolls, the floating header becomes a bar (see headerBar in ui.js) */
.top { transition: background-color .3s ease, padding .35s var(--servo), box-shadow .3s ease; }
.scrolled .top { padding-block: 12px; background-color: rgb(5 5 5 / .96); box-shadow: 0 1px 0 #24211d; }
.mark { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--bone); }
.mark b { font: 900 30px/1 var(--display); letter-spacing: .03em; }
.mark span { font: 600 9px/1.15 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--bone-dim); }
.unit { margin: 0 0 0 auto; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--bone-dim); }
.unit em { font-style: normal; color: var(--tungsten); }
.dot { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--tungsten); box-shadow: 0 0 10px var(--tungsten); animation: rec 1.6s steps(1) infinite; }
@keyframes rec { 50% { opacity: .25; } }
.toggle {
  padding: 9px 14px; border-radius: 999px; border: 1px solid #3a3631; background: rgb(5 5 5 / .6); cursor: pointer;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase; transition: border-color .2s, color .2s, transform .35s var(--servo);
}
.toggle b { color: var(--bone-dim); font-weight: 600; }
.toggle[aria-pressed="true"] { border-color: var(--tungsten); }
.toggle[aria-pressed="true"] b { color: var(--tungsten); }
.toggle:hover { transform: translateY(-2px); border-color: var(--bone-dim); }
:focus-visible { outline: 2px solid var(--tungsten); outline-offset: 4px; border-radius: 4px; }

/* ---------- the wake ---------- */
.track { position: relative; height: 380svh; }
.sticky { position: sticky; top: 0; height: 100svh; min-height: 560px; overflow: hidden; background: var(--black); }
.wake { position: absolute; inset: 0; overflow: hidden; }
.stage { position: absolute; inset: 0; cursor: crosshair; }
.stage canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s ease; }
.booted .stage canvas { opacity: 1; }
.stage:focus-visible { outline-offset: -8px; }
.poster { position: absolute; inset: 0; background: radial-gradient(40% 50% at 62% 48%, #1a120b, transparent 70%); }
.no-gl .poster { background: url(img/poster.jpg) 72% 50% / cover no-repeat, var(--black); }
/* without WebGL the home is one still screen: no scrub track, no X-ray to promise */
.no-gl .track { height: auto; }
.no-gl .steel, .no-gl .telemetry, .no-gl .next, .no-gl .nudge { display: none; }
@media (max-aspect-ratio: 9/10) {
  .no-gl .poster { background-size: 160% auto; background-position: 86% 14%; }
}

.hero-copy { position: absolute; left: var(--gutter); bottom: clamp(120px, 20vh, 220px); z-index: 5; max-width: 48vw; pointer-events: none; }
.headline { margin: 0; white-space: nowrap; font: 900 clamp(54px, 8.2vw, 230px)/.8 var(--display); letter-spacing: -.005em; text-transform: uppercase; color: var(--bone); }
.headline .ln { display: block; overflow: hidden; padding-bottom: .04em; }
.headline .ln > span { display: block; transform: translateY(105%); transition: transform 1.1s var(--servo); }
.awake .headline .ln > span { transform: none; }
.awake .headline .ln:nth-child(2) > span { transition-delay: .12s; }
.awake .headline .ln:nth-child(3) > span { transition-delay: .24s; color: var(--tungsten); text-shadow: 0 0 40px rgb(255 180 107 / .35); }
.sub { max-width: 46ch; margin: 22px 0 0; font-size: clamp(13px, 1vw, 16px); color: var(--bone-dim); opacity: 0; transform: translateY(12px); transition: opacity .8s ease .55s, transform .9s var(--servo) .55s; }
.awake .sub { opacity: 1; transform: none; }
.nudge { color: var(--tungsten-hot); }

.telemetry {
  position: absolute; right: var(--gutter); bottom: var(--gutter); z-index: 5; margin: 0; padding: 14px 16px; width: 270px;
  display: grid; gap: 4px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid #26231f; background: rgb(5 5 5 / .55); backdrop-filter: blur(6px);
  opacity: 0; transform: translateY(10px); transition: opacity .8s ease .9s, transform .9s var(--servo) .9s;
}
.awake .telemetry { opacity: 1; transform: none; }
.telemetry div { display: flex; justify-content: space-between; gap: 12px; }
.telemetry dt { color: var(--bone-dim); }
.telemetry dd { margin: 0; color: var(--steel); font-variant-numeric: tabular-nums; }
.loadrow dd { flex: 1; display: flex; align-items: center; }
.load { --load: 0; display: block; height: 4px; width: 100%; background: linear-gradient(90deg, var(--tungsten) calc(var(--load) * 100%), #26231f 0); }

.next {
  position: absolute; left: 50%; bottom: var(--gutter); z-index: 5; margin: 0; translate: -50% 0;
  font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--bone-dim); opacity: 0; transition: opacity 1s ease 1.4s;
}
.awake .next { opacity: 1; }
.next span { color: var(--tungsten); margin-right: 8px; }
.next i { display: block; width: 1px; height: 34px; margin: 10px auto 0; background: linear-gradient(var(--tungsten), transparent); animation: drip 2.2s ease-in-out infinite; }
@keyframes drip { 0%, 100% { transform: scaleY(.4); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } }

/* ---------- film grain, lens dust, vignette ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 30; pointer-events: none; opacity: .07; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 .9  0 0 0 0 .8  0 0 0 1.4 -.25'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1s steps(6) infinite;
}
.wake::after {
  content: ''; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background:
    radial-gradient(120% 90% at 55% 45%, transparent 55%, rgb(0 0 0 / .75) 100%),
    radial-gradient(2px 2px at 23% 31%, rgb(255 220 180 / .22), transparent 70%),
    radial-gradient(3px 3px at 71% 22%, rgb(255 220 180 / .16), transparent 70%),
    radial-gradient(1.5px 1.5px at 84% 66%, rgb(255 220 180 / .2), transparent 70%),
    radial-gradient(2.5px 2.5px at 12% 74%, rgb(255 220 180 / .14), transparent 70%);
}
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-6%, 4%); } 40% { transform: translate(4%, -6%); } 60% { transform: translate(-3%, -2%); } 80% { transform: translate(6%, 3%); } 100% { transform: translate(0, 0); } }

.nojs { position: fixed; inset: auto 0 40px; text-align: center; color: var(--bone-dim); }

/* ---------- Skin / Steel ---------- */
.hero-copy, .telemetry, .next { transition-property: opacity, transform; }
.xray .hero-copy { opacity: 0; transform: translateY(-24px); transition: opacity .5s ease, transform .7s var(--servo); }
.xray .telemetry { opacity: 0; transition-delay: 0s; }
.xray .next { opacity: 0; transition-delay: 0s; }
.steel { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.eyebrow { margin: 0 0 14px; font: 600 11px/1 var(--mono); letter-spacing: .24em; text-transform: uppercase; color: var(--bone-dim); }
.eyebrow span { color: var(--tungsten); margin-right: 8px; }
.steel-copy { position: absolute; left: var(--gutter); top: clamp(92px, 15vh, 170px); width: min(32vw, 780px); }
.steel-copy .eyebrow, .steel-copy .sub { opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .7s var(--servo); }
.xray .steel-copy .eyebrow, .xray .steel-copy .sub { opacity: 1; transform: none; transition-delay: .25s; }
.steel-copy .sub { margin-top: 18px; max-width: 46ch; }
.steel-hl { margin: 0; white-space: nowrap; font: 900 clamp(40px, 4.1vw, 118px)/.84 var(--display); text-transform: uppercase; color: var(--tungsten-hot); }
.steel-hl .ln { display: block; overflow: hidden; padding-bottom: .04em; }
.steel-hl .ln > span { display: block; transform: translateY(125%); transition: transform .9s var(--servo); }
.steel-hl .ln.cold { color: #8cc8ff; }
.xray .steel-hl .ln.cold { text-shadow: 0 0 30px rgb(77 163 255 / .35); }
.xray .steel-hl .ln > span { transform: none; }
.xray .steel-hl .ln:nth-child(2) > span { transition-delay: .08s; }
.xray .steel-hl .ln:nth-child(3) > span { transition-delay: .35s; }
.xray .steel-hl .ln:nth-child(4) > span { transition-delay: .43s; }
.steel-done .steel-copy { opacity: 0; transform: translateY(-20px); transition: opacity .5s ease, transform .7s var(--servo); }
.steel-copy { transition: opacity .5s ease .1s, transform .7s var(--servo) .1s; }
.steel-end { position: absolute; left: var(--gutter); bottom: clamp(60px, 12vh, 140px); width: min(30vw, 520px); opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .8s var(--servo); }
.steel-done .steel-end { opacity: 1; transform: none; }
.steel-end .big { margin: 0; font: 900 clamp(38px, 4.2vw, 120px)/.86 var(--display); text-transform: uppercase; color: var(--bone); }
.steel-end .big b { display: block; font-size: 1.9em; color: #8cc8ff; text-shadow: 0 0 40px rgb(77 163 255 / .4); }

.callouts { position: absolute; inset: 0; }
.co { position: absolute; left: 0; top: 0; width: 236px; padding: 8px 11px 9px; opacity: 0; visibility: hidden;
  display: grid; grid-template-columns: auto 1fr; column-gap: 8px; row-gap: 2px; align-items: baseline;
  font: 400 10.5px/1.35 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--bone-dim);
  background: rgb(4 12 24 / .74); border: 1px solid rgb(140 200 255 / .28); border-left: 2px solid #8cc8ff; backdrop-filter: blur(4px); will-change: transform; }
.co[data-side="left"] { border-left: 1px solid rgb(140 200 255 / .28); border-right: 2px solid #8cc8ff; }
.co-no { grid-row: span 3; font: 900 22px/1 var(--display); color: var(--tungsten); }
.co-name { color: var(--bone); font-weight: 600; letter-spacing: .08em; }
.co-spec { color: var(--bone-dim); text-transform: none; letter-spacing: .02em; }
.co-live { color: #8cc8ff; font-variant-numeric: tabular-nums; font-weight: 600; }
.leaders { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.leaders polyline { fill: none; stroke: #8cc8ff; stroke-width: 1; opacity: 0; }
.leaders circle { fill: var(--tungsten); opacity: 0; transition: opacity .3s; }
.leaders circle.ring { fill: none; stroke: var(--tungsten); stroke-width: 1; transform-box: fill-box; transform-origin: center; animation: ping 2.4s ease-out infinite; }
@keyframes ping { 0% { transform: scale(.5); stroke-opacity: 1; } 100% { transform: scale(1.6); stroke-opacity: 0; } }

.gauge { position: absolute; right: var(--gutter); top: 50%; translate: 0 -50%; display: grid; justify-items: center; gap: 10px;
  font: 600 10px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--bone-dim); opacity: 0; transition: opacity .6s ease; }
.xray .gauge { opacity: 1; }
.gauge i { position: relative; display: block; width: 2px; height: 180px; background: #26231f; }
.gauge b { position: absolute; left: 0; right: 0; top: 0; height: calc(var(--peel, 0) * 100%); background: linear-gradient(var(--tungsten), #8cc8ff); box-shadow: 0 0 10px #8cc8ff; }
.gauge em { font-style: normal; color: #8cc8ff; writing-mode: vertical-rl; transform: rotate(180deg); min-height: 11ch; }

.studio { position: relative; z-index: 2; padding: clamp(90px, 16vh, 200px) var(--gutter) 48px; background: var(--black); border-top: 1px solid #1a1815; }
.studio-hl { margin: 0; font: 900 clamp(64px, 11vw, 300px)/.8 var(--display); text-transform: uppercase; color: var(--bone); }
.studio .sub { max-width: 52ch; margin-top: 22px; color: var(--bone-dim); }
.foot { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; margin: clamp(60px, 12vh, 140px) 0 0; padding-top: 18px; border-top: 1px solid #1a1815;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--bone-dim); }
.foot b { font: 900 22px/1 var(--display); letter-spacing: .04em; color: var(--bone); }
.foot span { margin-left: auto; text-transform: none; letter-spacing: .04em; }

@media (max-width: 760px) {
  .hero-copy { max-width: none; right: var(--gutter); bottom: 150px; }
  .telemetry { left: var(--gutter); right: var(--gutter); width: auto; grid-template-columns: 1fr 1fr; column-gap: 16px; bottom: 14px; padding: 10px 12px; font-size: 10px; }
  .telemetry .loadrow { grid-column: 1 / -1; }
  .next { display: none; }
  .unit { display: none; }
  .toggle { margin-left: auto; }
  .steel-copy { top: 78px; right: var(--gutter); width: auto; }
  .steel-hl { font-size: clamp(30px, 9vw, 44px); }
  .steel-copy .sub { font-size: 12px; }
  .steel-end { right: var(--gutter); width: auto; top: 78px; bottom: auto; }
  .steel-end .big { font-size: 30px; }
  .steel-end .sub { display: none; }
  .co { width: 150px; padding: 6px 8px; font-size: 9px; }
  .co-spec { display: none; }
  .co-no { font-size: 16px; grid-row: span 2; }
  .gauge { display: none; }
  .foot span { margin-left: 0; }
}
@media (min-width: 2200px) { body { font-size: 18px; } .telemetry { width: 360px; font-size: 13px; } }
@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .headline .ln > span, .sub, .telemetry { transition: none; }
  .boot-log li { animation-delay: 0s !important; }
  .dot { animation: none; }
}

/* ================= THE CONTROL DESK (/console) ================= */
.sr-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.desk-body { overflow: hidden; }
.desk-page { display: grid; grid-template-columns: minmax(0, 1fr) min(46vw, 780px); height: 100svh; }
.desk-stage { position: relative; height: 100svh; overflow: hidden; background: var(--black); }
.desk-stage .stage { position: absolute; inset: 0; }
.desk-stage::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgb(0 0 0 / .7) 100%); }
.rec-flag, .play-flag { position: absolute; left: var(--gutter); top: 96px; z-index: 3; margin: 0; display: none; align-items: center; gap: 8px;
  font: 600 12px/1 var(--mono); letter-spacing: .3em; text-transform: uppercase; }
.rec-flag { color: #ff5a3c; }
.rec-flag i { width: 10px; height: 10px; border-radius: 50%; background: #ff5a3c; box-shadow: 0 0 12px #ff5a3c; animation: rec 1s steps(1) infinite; }
.play-flag { color: #8cc8ff; }
.recording .rec-flag, .playing .play-flag { display: flex; }

.desk {
  position: relative; height: 100svh; overflow-y: auto; padding: 92px 26px 22px; display: grid; gap: 16px; align-content: start;
  background:
    repeating-linear-gradient(90deg, rgb(255 255 255 / .014) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #17191c, #101214 55%, #0b0c0e);
  border-left: 1px solid #23262b; box-shadow: inset 1px 0 0 #000, -30px 0 60px rgb(0 0 0 / .5);
  scrollbar-width: thin; scrollbar-color: #2a2d33 transparent;
}
.desk-head .eyebrow { margin-bottom: 10px; }
.desk-hl { margin: 0; font: 900 clamp(46px, 5vw, 120px)/.82 var(--display); text-transform: uppercase; color: var(--bone); }
.desk-sub { margin: 12px 0 0; max-width: 56ch; font-size: 12.5px; line-height: 1.6; color: var(--bone-dim); }
.desk-sub b { color: #8cc8ff; font-weight: 600; }

/* plates with screws */
.moods, .panel, .deck { position: relative; border: 1px solid #25282d; border-radius: 10px; background: rgb(0 0 0 / .22);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .04), inset 0 -1px 0 #000, 0 1px 0 rgb(255 255 255 / .03); }
.moods::before, .panel::before, .deck::before, .moods::after, .panel::after, .deck::after {
  content: ''; position: absolute; top: 7px; width: 7px; height: 7px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #8b9097, #3a3e44 60%, #1b1d20); box-shadow: inset 0 0 0 1px #000; }
.moods::before, .panel::before, .deck::before { left: 7px; }
.moods::after, .panel::after, .deck::after { right: 7px; }

/* mood keys */
.moods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 20px 14px 14px; }
.mood { position: relative; display: grid; justify-items: center; gap: 6px; padding: 14px 6px 10px; cursor: pointer; border-radius: 8px;
  border: 1px solid #30343a; background: linear-gradient(180deg, #262a30, #181b1f); box-shadow: 0 3px 0 #08090a, inset 0 1px 0 rgb(255 255 255 / .06);
  transition: transform .12s var(--servo), box-shadow .12s, border-color .2s; }
.mood i { width: 26px; height: 4px; border-radius: 2px; background: #2a2622; transition: background .2s, box-shadow .2s; }
.mood b { font: 900 clamp(18px, 1.7vw, 26px)/1 var(--display); letter-spacing: .03em; text-transform: uppercase; color: var(--bone); }
.mood kbd, .tbtn kbd, .switch kbd { font: 600 9px/1 var(--mono); color: #6f747b; border: 1px solid #33373d; border-radius: 3px; padding: 2px 4px; }
.mood:hover { border-color: #4a4f57; }
.mood:active, .mood[aria-pressed="true"] { transform: translateY(2px); box-shadow: 0 1px 0 #08090a, inset 0 1px 0 rgb(255 255 255 / .04); }
.mood[aria-pressed="true"] i { background: var(--tungsten); box-shadow: 0 0 10px var(--tungsten), 0 0 2px #fff; }
.mood[data-mood="angry"][aria-pressed="true"] i { background: #ff5a3c; box-shadow: 0 0 10px #ff5a3c, 0 0 2px #fff; }
.mood.auto[aria-pressed="true"] i { background: #8cc8ff; box-shadow: 0 0 10px #8cc8ff, 0 0 2px #fff; }
.mood[aria-pressed="true"] { border-color: #5a4a36; }

/* eyes pad + faders */
.panel { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; padding: 22px 18px 16px; align-items: start; }
.unit-label, .fader label { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 0 0 10px;
  font: 600 10px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: #9aa0a8; text-shadow: 0 1px 0 #000; }
.led { width: 6px; height: 6px; border-radius: 50%; background: #2c2723; box-shadow: inset 0 0 0 1px #000; transition: background .2s, box-shadow .2s; }
.led.on { background: var(--tungsten); box-shadow: 0 0 8px var(--tungsten); }
.pad-unit { display: grid; justify-items: center; }
.pad { --x: .5; --y: .5; --ax: .5; --ay: .5; position: relative; width: clamp(150px, 13vw, 230px); aspect-ratio: 1; cursor: crosshair; touch-action: none;
  border-radius: 8px; border: 1px solid #2c3036;
  background:
    radial-gradient(circle, transparent 31%, rgb(140 200 255 / .18) 31.5%, transparent 32.5%),
    radial-gradient(circle, transparent 62%, rgb(140 200 255 / .12) 62.5%, transparent 63.5%),
    linear-gradient(90deg, transparent calc(50% - .5px), rgb(140 200 255 / .3) calc(50% - .5px) calc(50% + .5px), transparent 0),
    linear-gradient(0deg, transparent calc(50% - .5px), rgb(140 200 255 / .3) calc(50% - .5px) calc(50% + .5px), transparent 0),
    repeating-linear-gradient(90deg, rgb(140 200 255 / .06) 0 1px, transparent 1px 10%),
    repeating-linear-gradient(0deg, rgb(140 200 255 / .06) 0 1px, transparent 1px 10%),
    #06090d;
  box-shadow: inset 0 2px 10px #000; }
.pad.focus { outline: 2px solid var(--tungsten); outline-offset: 4px; }
.pad.held { cursor: grabbing; }
.pad-dot, .pad-actual { position: absolute; left: calc(var(--x) * 100%); top: calc(var(--y) * 100%); translate: -50% -50%; border-radius: 50%; pointer-events: none; }
.pad-dot { width: 22px; height: 22px; border: 2px solid var(--tungsten); box-shadow: 0 0 12px rgb(255 180 107 / .6); }
.pad-actual { left: calc(var(--ax) * 100%); top: calc(var(--ay) * 100%); width: 8px; height: 8px; background: #8cc8ff; box-shadow: 0 0 10px #8cc8ff; }
.pad-out, .fader output { display: block; margin-top: 10px; min-height: 1.3em; font: 600 11px/1.3 var(--mono); color: #8cc8ff; text-align: center; font-variant-numeric: tabular-nums; }
.ch { margin: 4px 0 0; font: 400 9px/1 var(--mono); letter-spacing: .18em; color: #5d6269; text-align: center; }

.faders { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.fader { --v: .5; display: grid; justify-items: center; min-width: 0; }
/* the five labels share a narrow strip: tighter tracking so BREATH and PUPILS never collide */
.faders { container-type: inline-size; }
.fader label { letter-spacing: .12em; white-space: nowrap; gap: 4px; }
.fader output, .fader .ch { white-space: nowrap; }
/* mid-width desks (the column is under ~560px): the eye pad sits above the faders so each strip gets room */
@media (min-width: 901px) and (max-width: 1280px) {
  .panel { grid-template-columns: 1fr; justify-items: center; gap: 18px; }
  .faders { width: 100%; max-width: 420px; }
}
@container (max-width: 330px) {
  .fader label { font-size: 8.5px; letter-spacing: .04em; gap: 3px; }
  .fader output { font-size: 9.5px; }
  .fader .ch { letter-spacing: .06em; }
}
.fader label { cursor: pointer; }
.slot { position: relative; width: 52px; height: clamp(170px, 24vh, 250px); }
.slot::before { content: ''; position: absolute; left: 50%; top: 10px; bottom: 10px; width: 6px; translate: -50% 0; border-radius: 3px;
  background: #050607; box-shadow: inset 0 1px 3px #000, 0 1px 0 rgb(255 255 255 / .05); }
.slot::after { content: ''; position: absolute; left: 50%; top: 12px; bottom: 12px; width: 34px; translate: -50% 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, #3a3e44 0 1px, transparent 1px 10%) left / 7px 100% no-repeat,
              repeating-linear-gradient(0deg, #3a3e44 0 1px, transparent 1px 10%) right / 7px 100% no-repeat; }
.meter { --m: 0; position: absolute; left: 2px; top: 12px; bottom: 12px; width: 3px; border-radius: 2px; background: #15171a; overflow: hidden; }
.meter::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--m) * 100%); background: linear-gradient(0deg, #3d7fd0, #8cc8ff); box-shadow: 0 0 6px #8cc8ff; }
.knob { position: absolute; left: 50%; bottom: calc(var(--v) * (100% - 28px)); width: 42px; height: 28px; translate: -50% 0; z-index: 1; pointer-events: none;
  border-radius: 5px; background: linear-gradient(180deg, #d6dce3, #8c949e 45%, #6c737c 55%, #b9c0c8);
  box-shadow: 0 4px 8px rgb(0 0 0 / .7), inset 0 1px 0 #fff, inset 0 -1px 0 #4a5058; }
.knob::after { content: ''; position: absolute; left: 4px; right: 4px; top: 50%; height: 2px; translate: 0 -50%; background: var(--tungsten); box-shadow: 0 0 6px var(--tungsten); }
.slot input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ns-resize; writing-mode: vertical-lr; direction: rtl; touch-action: none; }
.fader:has(input:focus-visible) .knob { outline: 2px solid var(--tungsten); outline-offset: 3px; }

/* transport, scope, switch */
.deck { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 18px; padding: 22px 18px 16px; align-items: center; }
.transport { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; grid-column: 1 / -1; }
.tbtn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; cursor: pointer; border-radius: 7px;
  border: 1px solid #30343a; background: linear-gradient(180deg, #262a30, #181b1f); box-shadow: 0 3px 0 #08090a;
  font: 600 11px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--bone); transition: transform .12s var(--servo), box-shadow .12s; }
.tbtn:active, .tbtn[aria-pressed="true"] { transform: translateY(2px); box-shadow: 0 1px 0 #08090a; }
.tbtn:disabled, .tbtn[aria-disabled="true"] { opacity: .35; cursor: not-allowed; }
.tbtn i { display: block; }
.tbtn.rec i { width: 10px; height: 10px; border-radius: 50%; background: #7a2a1e; }
.tbtn.rec[aria-pressed="true"] i { background: #ff5a3c; box-shadow: 0 0 10px #ff5a3c; animation: rec 1s steps(1) infinite; }
.tbtn.play i { width: 0; height: 0; border-left: 10px solid #8cc8ff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.tbtn.play[aria-pressed="true"] { border-color: #3d6a96; }
.tbtn.stop i { width: 9px; height: 9px; background: var(--bone-dim); }
.tc { margin-left: auto; font: 600 26px/1 var(--mono); color: var(--bone); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.recording .tc { color: #ff5a3c; }
.playing .tc { color: #8cc8ff; }
.take { width: 100%; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: #6f747b; text-align: right; }
.scope-unit { min-width: 0; }
.scope { display: block; width: 100%; height: 110px; border-radius: 6px; border: 1px solid #22262c;
  background: repeating-linear-gradient(0deg, rgb(140 200 255 / .03) 0 1px, transparent 1px 3px), #04070a; box-shadow: inset 0 2px 12px #000; }
.scope-key { display: flex; gap: 14px; margin: 8px 0 0; font: 600 9px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; }
.k-jaw { color: var(--tungsten); } .k-lids { color: var(--bone); } .k-brow { color: #8cc8ff; }
.k-load { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; color: #6f747b; }
.k-load .load { width: 60px; }
.switch { display: grid; grid-template-columns: auto 52px auto; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; border-radius: 999px;
  border: 1px solid #30343a; background: #0b0d10; font: 600 10px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--bone-dim); }
.switch kbd { grid-column: 1 / -1; justify-self: center; }
.switch i { position: relative; height: 26px; border-radius: 999px; background: #1b1e22; box-shadow: inset 0 2px 6px #000; }
.switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: linear-gradient(180deg, #ffd9a8, #c98a45); box-shadow: 0 0 10px rgb(255 180 107 / .6); transition: translate .45s var(--servo), background .3s; }
.switch[aria-checked="true"] i::after { translate: 26px 0; background: linear-gradient(180deg, #d6ecff, #5d9ad6); box-shadow: 0 0 12px rgb(140 200 255 / .7); }
.switch[aria-checked="false"] span:first-child, .switch[aria-checked="true"] span:nth-child(3) { color: var(--bone); }
.desk-foot { margin: 4px 0 0; font-size: 10.5px; color: #6f747b; }
.desk-foot a { color: var(--bone-dim); }

/* mic to jaw: a VU strip with the gate marked, so you can see your voice cross it */
.voice { --lvl: 0; --gate: .3; grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding-top: 14px; border-top: 1px solid #22262c; }
.voice .unit-label { margin: 0; }
.tbtn.talk i { width: 8px; height: 13px; border-radius: 4px; border: 2px solid var(--bone-dim); }
.tbtn.talk[aria-pressed="true"] { border-color: #5a4a36; }
.tbtn.talk[aria-pressed="true"] i { border-color: var(--tungsten); background: var(--tungsten); box-shadow: 0 0 10px var(--tungsten); }
.voice[data-state="asking"] .tbtn.talk i { animation: rec 1s steps(1) infinite; }
.vu { position: relative; flex: 1 1 120px; min-width: 100px; height: 10px; border-radius: 5px; background: #050607; box-shadow: inset 0 1px 3px #000; overflow: hidden; }
.vu-fill { position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(var(--lvl)); background: linear-gradient(90deg, #2c2723, #6b5640); }
.voice.hot .vu-fill { background: linear-gradient(90deg, #c98a45, var(--tungsten)); }
.vu-gate { position: absolute; top: 0; bottom: 0; left: calc(var(--gate) * 100%); width: 2px; background: #8cc8ff; opacity: 0; }
.voice[data-state="live"] .vu-gate { opacity: .85; }
.voice-state { min-width: 12ch; font: 600 10px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: #8a8f96; text-align: right; }
.voice[data-state="live"] .voice-state { color: var(--tungsten); }
.voice:is([data-state="blocked"], [data-state="nomic"], [data-state="busy"], [data-state="failed"]) .voice-state { color: #ff7a5c; }
.voice-note { flex-basis: 100%; margin: 0; font-size: 10.5px; line-height: 1.5; color: #8a8f96; }
.fader.voiced .ch { color: var(--tungsten); }
.fader.voiced .ch::after { content: ' · MIC'; }
@media (prefers-reduced-motion: reduce) { .voice[data-state="asking"] .tbtn.talk i { animation: none; } }

/* home: the studio link into the desk */
.studio-hl a { color: inherit; text-decoration: none; background: linear-gradient(var(--tungsten), var(--tungsten)) 0 100% / 0 6px no-repeat; transition: background-size .6s var(--servo); }
.studio-hl a:hover, .studio-hl a:focus-visible { background-size: 100% 6px; }
.studio-hl a span { color: var(--tungsten); }

@media (max-width: 900px) {
  .desk-body { overflow: auto; }
  .desk-page { grid-template-columns: 1fr; height: auto; }
  .desk-stage { position: sticky; top: 0; height: 44svh; z-index: 1; }
  /* z-index 0: its own layer, so the fader knobs scroll under the sticky stage, not over it */
  .desk { z-index: 0; height: auto; overflow: visible; padding: 18px 14px 28px; border-left: 0; border-top: 1px solid #23262b; box-shadow: none; }
  .desk-hl { font-size: 40px; }
  .moods { grid-template-columns: repeat(2, 1fr); }
  .panel { grid-template-columns: 1fr; justify-items: center; }
  .faders { width: 100%; }
  .slot { width: 46px; height: 190px; }
  .knob { width: 38px; }
  .deck { grid-template-columns: 1fr; }
  .rec-flag, .play-flag { top: 76px; }
}

/* ================= SITE NAV ================= */
.nav { display: flex; gap: 18px; margin-left: 28px; }
.nav a { position: relative; padding: 4px 0; font: 600 11px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--bone-dim); transition: color .2s; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px; background: var(--tungsten); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--servo); }
.nav a:hover, .nav a:focus-visible, .nav a[aria-current="page"] { color: var(--bone); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
@media (max-width: 980px) { .nav { gap: 12px; margin-left: 16px; } .nav a { font-size: 10px; letter-spacing: .14em; } }
@media (max-width: 760px) {
  .nav { position: fixed; top: 58px; left: 0; right: 0; margin: 0; padding: 8px 14px; gap: 16px; overflow-x: auto; scrollbar-width: none;
    background: linear-gradient(rgb(5 5 5 / .85), rgb(5 5 5 / 0)); }
  .nav::-webkit-scrollbar { display: none; }
}

/* ================= PERFORMANCES ================= */
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; text-decoration: none;
  font: 600 12px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--black); background: var(--tungsten);
  box-shadow: 0 0 30px rgb(255 180 107 / .3); transition: transform .35s var(--servo), box-shadow .3s; }
.pill:hover, .pill:focus-visible { transform: translateY(-3px); box-shadow: 0 0 46px rgb(255 180 107 / .55); }
.pill.ghost { background: transparent; color: var(--bone); border: 1px solid #3a3631; box-shadow: none; }
.pill.ghost:hover { border-color: var(--tungsten); }

.shows-page { padding-top: 0; }
.marquee { position: relative; padding: clamp(130px, 22vh, 220px) var(--gutter) clamp(70px, 12vh, 140px); text-align: center; overflow: hidden;
  background: radial-gradient(60% 70% at 50% 40%, #1a120b, transparent 70%), var(--black); }
.bulbs { position: absolute; left: 0; right: 0; top: clamp(84px, 13vh, 130px); height: 18px; pointer-events: none;
  background:
    radial-gradient(circle, #fff3d6 0 2px, #ffb46b 3px, rgb(255 180 107 / .35) 5px, transparent 7px) 0 50% / 36px 18px repeat-x,
    radial-gradient(circle, #3a2a1a 0 3px, transparent 4px) 18px 50% / 36px 18px repeat-x;
  filter: drop-shadow(0 0 6px rgb(255 180 107 / .55)); animation: chase 1.2s steps(2) infinite; }
.bulbs.bottom { top: auto; bottom: 34px; animation-direction: reverse; }
@keyframes chase { to { background-position: 36px 50%, 54px 50%; } }
.marquee .eyebrow { justify-content: center; }
.marquee-hl { margin: 6px 0 0; font: 900 clamp(76px, 15vw, 340px)/.8 var(--display); text-transform: uppercase; color: var(--tungsten-hot);
  text-shadow: 0 0 40px rgb(255 180 107 / .45), 0 0 120px rgb(255 140 60 / .25); }
.marquee-sub { max-width: 60ch; margin: 26px auto 0; color: var(--bone-dim); }
.running { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 36px 0 0; padding: 0; }
.running a { display: inline-flex; align-items: baseline; gap: 10px; padding: 10px 16px; border: 1px solid #2a2622; border-radius: 6px; text-decoration: none;
  font: 600 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--bone); background: rgb(255 255 255 / .02); transition: border-color .2s, transform .35s var(--servo); }
.running a:hover, .running a:focus-visible { border-color: var(--tungsten); transform: translateY(-2px); }
.running b { font: 900 18px/1 var(--display); color: var(--tungsten); }
.running span { font-size: 9px; letter-spacing: .2em; color: var(--bone-dim); }

.show { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 80px); align-items: center;
  min-height: 100svh; padding: clamp(80px, 12vh, 140px) var(--gutter); border-top: 1px solid #16140f; scroll-margin-top: 40px; }
.show.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
.show.flip .screen { order: 2; }
.screen { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000 center / cover no-repeat; border: 1px solid #1d1b17;
  box-shadow: 0 30px 80px rgb(0 0 0 / .7), 0 0 0 1px #000; }
.screen::before, .screen::after { content: ''; position: absolute; left: 0; right: 0; height: 9%; background: #000; z-index: 3; pointer-events: none; }
.screen::before { top: 0; } .screen::after { bottom: 0; }
.screen .film { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.title-card::before { content: attr(data-title); }
.title-card { position: absolute; inset: 0; display: grid; place-items: center; z-index: 0; font: 900 clamp(28px, 4vw, 72px)/1 var(--display);
  text-transform: uppercase; color: #2a2622; letter-spacing: .04em; }
.show.live .title-card { opacity: 0; }
.fade { position: absolute; inset: 0; z-index: 2; background: #000; opacity: 0; pointer-events: none; }
.burn { position: absolute; left: 0; right: 0; bottom: 10.5%; z-index: 4; margin: 0; display: flex; align-items: center; gap: 12px; padding: 0 3.5%;
  font: 600 clamp(9px, .8vw, 12px)/1 var(--mono); letter-spacing: .14em; color: rgb(255 255 255 / .82); text-shadow: 0 1px 2px #000; pointer-events: none; }
.b-label { flex: 1; }
.b-tc { font-variant-numeric: tabular-nums; }
.b-rec { width: 8px; height: 8px; border-radius: 50%; background: #444; }
.show.live .b-rec { background: #ff5a3c; box-shadow: 0 0 8px #ff5a3c; animation: rec 1s steps(1) infinite; }
.film-toggle { position: absolute; right: 3.5%; top: 11.5%; z-index: 4; padding: 7px 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgb(255 255 255 / .25); background: rgb(0 0 0 / .45); color: var(--bone); backdrop-filter: blur(6px);
  font: 600 10px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; opacity: 0; transition: opacity .3s; }
.screen:hover .film-toggle, .film-toggle:focus-visible, .film-toggle[aria-pressed="false"] { opacity: 1; }

.bill { max-width: 620px; }
.act { display: flex; align-items: center; gap: 12px; margin: 0; font: 600 11px/1 var(--mono); letter-spacing: .24em; text-transform: uppercase; color: var(--bone-dim); }
.act b { padding: 5px 9px; border-radius: 4px; font-size: 10px; letter-spacing: .2em; }
.act .built { color: var(--black); background: var(--tungsten); }
.act .concept { color: #8cc8ff; border: 1px solid rgb(140 200 255 / .45); }
.show-title { margin: 14px 0 0; font: 900 clamp(48px, 6.4vw, 170px)/.84 var(--display); text-transform: uppercase; color: var(--bone); }
.venue { margin: 12px 0 26px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--tungsten); }
.bill h3 { margin: 22px 0 6px; font: 600 10px/1 var(--mono); letter-spacing: .26em; text-transform: uppercase; color: var(--bone-dim); }
.bill p { margin: 0; color: #cfc6b8; }
.numbers { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); margin: 28px 0 0; }
.numbers div { padding: 14px 14px 12px; background: var(--black); border: 1px solid #22201b; margin: -1px 0 0 -1px; }
.numbers dt { font: 600 9px/1.3 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--bone-dim); min-height: 2.6em; }
.numbers dd { margin: 8px 0 0; font: 900 clamp(34px, 3.4vw, 64px)/.9 var(--display); color: var(--bone); white-space: nowrap; }
.numbers dd small { margin-left: 4px; font: 600 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--tungsten); }
.numbers.targets dd { color: #b9d9f7; }
.numbers.targets dd small { color: #8cc8ff; }
.target-note { margin-top: 10px !important; font-size: 11px; color: #8cc8ff !important; }
.words { margin: 26px 0 0; padding: 18px 20px; border-left: 2px solid var(--tungsten); background: linear-gradient(90deg, rgb(255 180 107 / .06), transparent); }
.words blockquote { margin: 0; font: 900 clamp(24px, 2.2vw, 40px)/1 var(--display); text-transform: uppercase; color: #6d665c; }
.words blockquote::before { content: '“'; color: var(--tungsten); margin-right: 4px; }
.words figcaption { margin-top: 8px; font-size: 12px; color: var(--bone-dim); }

.encore { padding: clamp(100px, 18vh, 220px) var(--gutter); text-align: center; border-top: 1px solid #16140f; }
.encore .eyebrow { justify-content: center; }
.encore-hl { max-width: 16ch; margin: 10px auto 0; font: 900 clamp(54px, 8vw, 220px)/.84 var(--display); text-transform: uppercase; color: var(--bone); }
.encore-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }

@media (max-width: 900px) {
  .show, .show.flip { grid-template-columns: 1fr; min-height: auto; }
  .show.flip .screen { order: 0; }
  .marquee { padding-top: 150px; }
}

/* ================= WORKSHOP ================= */
.ws-page { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.ws-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; background: var(--black); }
.ws-stage .stage { position: absolute; inset: 0; }
.ws-stage::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgb(0 0 0 / .7) 100%); }
.ws-label { position: absolute; left: var(--gutter); bottom: 92px; z-index: 2; margin: 0; font: 900 clamp(40px, 5vw, 120px)/.85 var(--display); text-transform: uppercase; color: var(--bone);
  text-shadow: 0 0 40px rgb(0 0 0 / .8); }
[data-stage="programme"] .ws-label { color: var(--tungsten-hot); }
.ws-steps { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 40px; z-index: 2; margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.ws-steps li { padding-top: 10px; border-top: 2px solid #2a2622; font: 600 10px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: #6f685e; transition: border-color .4s, color .4s; }
.ws-steps li.done { border-top-color: var(--tungsten); color: var(--bone); }
.ws-text { padding: 0 var(--gutter) 30vh; border-left: 1px solid #16140f; }
.ws-intro { min-height: 70svh; display: grid; align-content: end; padding: 140px 0 60px; }
.ws-hl { margin: 0; font: 900 clamp(52px, 6vw, 160px)/.84 var(--display); text-transform: uppercase; color: var(--bone); }
.ws-intro p:last-child { max-width: 46ch; margin-top: 22px; color: var(--bone-dim); }
.ws-chapter { min-height: 100svh; display: grid; align-content: center; gap: 14px; }
.ws-no { margin: 0; font: 900 clamp(90px, 12vw, 260px)/.8 var(--display); color: #1d1a16; -webkit-text-stroke: 1px #3a3631; }
.ws-chapter h2 { margin: -.3em 0 0; font: 900 clamp(48px, 5.5vw, 140px)/.85 var(--display); text-transform: uppercase; color: var(--bone); }
.ws-chapter p { max-width: 50ch; margin: 0; color: #cfc6b8; }
.ws-note { font-size: 12px; color: var(--tungsten) !important; }
.ws-note a { color: var(--tungsten-hot); }
@media (max-width: 900px) {
  .ws-page { grid-template-columns: 1fr; }
  .ws-stage { height: 50svh; z-index: 1; }
  .ws-label { bottom: 52px; font-size: 34px; }
  .ws-steps { bottom: 16px; }
  .ws-steps li { font-size: 8px; letter-spacing: .1em; }
  .ws-text { border-left: 0; }
  .ws-intro { min-height: auto; padding: 40px 0 20px; }
  .ws-chapter { min-height: 80svh; }
}

/* ================= CONTACT ================= */
.contact-body { overflow: hidden; }
.contact-page { display: grid; grid-template-columns: minmax(0, 1fr) min(46vw, 760px); height: 100svh; }
.contact { height: 100svh; overflow-y: auto; padding: 100px clamp(20px, 3vw, 48px) 40px; background: linear-gradient(180deg, #0f0e0c, #0a0908); border-left: 1px solid #1d1b17; }
.contact-hl { margin: 0; font: 900 clamp(48px, 5.4vw, 140px)/.84 var(--display); text-transform: uppercase; color: var(--bone); }
.contact-sub { margin: 16px 0 0; color: var(--bone-dim); }
.proto-note { margin: 18px 0 0; padding: 10px 12px; border: 1px dashed rgb(140 200 255 / .4); border-radius: 6px; font-size: 12px; color: #b9d9f7; }
.proto-note b { color: #8cc8ff; }
.form { display: grid; gap: 22px; margin-top: 30px; }
.field label { display: block; margin-bottom: 8px; font: 600 10px/1 var(--mono); letter-spacing: .24em; text-transform: uppercase; color: var(--bone-dim); }
.field input, .field select, .field textarea { width: 100%; padding: 12px 2px; border: 0; border-bottom: 2px solid #34302a; border-radius: 0; background: transparent;
  font: 400 17px/1.4 var(--mono); color: var(--bone); transition: border-color .25s; }
.field select { appearance: none; background: linear-gradient(45deg, transparent 50%, var(--bone-dim) 50%) calc(100% - 14px) 55% / 6px 6px no-repeat,
  linear-gradient(-45deg, transparent 50%, var(--bone-dim) 50%) calc(100% - 8px) 55% / 6px 6px no-repeat; }
.field select option { background: #0f0e0c; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--tungsten); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { box-shadow: 0 2px 0 0 var(--tungsten); }
.field [aria-invalid="true"] { border-bottom-color: #ff5a3c; }
/* what is it for: four radio pills (a native select trips WebKit's strict-CSP
   handling of its own internal styles, and four visible choices beat a menu) */
.kinds { min-width: 0; margin: 0; padding: 0; border: 0; }
.kinds legend { padding: 0; margin-bottom: 12px; font: 600 10px/1 var(--mono); letter-spacing: .24em; text-transform: uppercase; color: var(--bone-dim); }
.kind-row { display: flex; flex-wrap: wrap; gap: 8px; }
.kinds .kind { position: relative; display: inline-flex; margin: 0; }
.kind input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.kind span { padding: 11px 15px; border: 1px solid #3a3631; border-radius: 999px; font: 600 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--bone-dim); transition: border-color .2s, color .2s, background-color .2s, transform .35s var(--servo); }
.kind:hover span { border-color: var(--tungsten); color: var(--bone); }
.kind input:checked + span { background: var(--tungsten); border-color: var(--tungsten); color: var(--black); transform: translateY(-2px); }
.kind input:focus-visible + span { outline: 2px solid var(--tungsten-hot); outline-offset: 3px; }
.err { min-height: 1.2em; margin: 6px 0 0; font-size: 12px; color: #ff8a6a; }
.hint { margin: 8px 0 0; font-size: 11px; color: #6f685e; }
.send { justify-self: start; padding: 16px 26px; border: 0; border-radius: 999px; cursor: pointer; background: var(--tungsten); color: var(--black);
  font: 600 12px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; box-shadow: 0 0 30px rgb(255 180 107 / .3);
  transition: transform .35s var(--servo), box-shadow .3s; }
.send:hover, .send:focus-visible { transform: translateY(-3px); box-shadow: 0 0 46px rgb(255 180 107 / .55); }
.send:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.send.ghost { background: transparent; color: var(--bone); border: 1px solid #3a3631; box-shadow: none; }
.thanks { display: none; margin-top: 36px; outline: none; }
.sent .form { display: none; }
.sent .thanks { display: block; }
.thanks-hl { margin: 0; font: 900 clamp(48px, 5vw, 120px)/.84 var(--display); text-transform: uppercase; color: var(--tungsten-hot); }
.thanks p:not(.thanks-hl) { max-width: 52ch; margin: 16px 0 24px; color: var(--bone-dim); }
@media (max-width: 900px) {
  .contact-body { overflow: auto; }
  .contact-page { grid-template-columns: 1fr; height: auto; }
  .contact-page .desk-stage { position: sticky; top: 0; height: 38svh; z-index: 1; }
  .contact { height: auto; overflow: visible; padding: 26px 16px 40px; border-left: 0; }
}

/* ================= 404 ================= */
.lost { position: relative; height: 100svh; overflow: hidden; }
.lost .stage { position: absolute; inset: 0; }
.lost-copy { position: absolute; left: var(--gutter); bottom: clamp(60px, 14vh, 160px); z-index: 2; max-width: min(46vw, 760px); }
.lost-hl { margin: 0; font: 900 clamp(54px, 7vw, 190px)/.84 var(--display); text-transform: uppercase; color: var(--bone); }
.lost-copy .sub { opacity: 1; transform: none; }
.lost-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
@media (max-width: 760px) { .lost-copy { max-width: none; right: var(--gutter); } }

/* ================= THE WORKSHOP WALL (footer) ================= */
.wall { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 30px; align-items: end;
  padding: 50px var(--gutter) 34px; border-top: 1px solid #1d1b17;
  background: radial-gradient(circle, #050505 0 2.2px, transparent 2.8px) 0 0 / 22px 22px, linear-gradient(180deg, #2a241c, #1d1913); }
.wall.span { grid-column: 1 / -1; }
.pegboard { display: flex; align-items: flex-start; gap: clamp(14px, 3vw, 46px); min-height: 190px; padding-top: 6px; }
.tool { width: auto; height: 170px; color: #c9a77a; fill: #120f0b; filter: drop-shadow(6px 8px 6px rgb(0 0 0 / .55)); transform-origin: 50% 4px;
  transition: transform .9s var(--servo); stroke: #6b5a44; stroke-width: 1; }
.tool:nth-child(odd) { height: 150px; }
.tool:nth-child(5) { height: 96px; }
.wall:hover .tool:nth-child(odd) { transform: rotate(3deg); }
.wall:hover .tool:nth-child(even) { transform: rotate(-3deg); }
.wall-info { padding: 18px 20px; border-radius: 8px; background: rgb(5 5 5 / .78); border: 1px solid #3a3226; }
.wall-mark { margin: 0; font: 600 11px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--bone-dim); }
.wall-mark b { font: 900 30px/1 var(--display); letter-spacing: .03em; color: var(--bone); margin-right: 8px; }
.wall-nav { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 14px 0 0; }
.wall-nav a { display: inline-block; padding: 8px 2px; min-height: 28px; font: 600 11px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--bone); text-decoration: none; }
.wall-nav a:hover, .wall-nav a:focus-visible, .wall-nav a[aria-current="page"] { color: var(--tungsten); }
.wall-note { margin: 14px 0 0; font-size: 11px; color: var(--bone-dim); }
@media (max-width: 760px) { .wall { grid-template-columns: 1fr; } .pegboard { overflow: hidden; } .tool { height: 120px; } .tool:nth-child(odd) { height: 104px; } }
@media (prefers-reduced-motion: reduce) { .tool { transition: none; } .wall:hover .tool { transform: none !important; } }

/* skip link */
.skip { position: fixed; left: 12px; top: -80px; z-index: 100; padding: 10px 16px; border-radius: 6px; background: var(--tungsten); color: var(--black); font: 600 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.skip:focus { top: 12px; }
main:focus { outline: none; }

/* ---------- boards: the art and motion direction, as drafting sheets ---------- */
.boards-body { background: var(--black); }
.boards { padding: 120px var(--gutter) 40px; max-width: 1480px; margin: 0 auto; }
.boards-intro { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px 56px; align-items: end; margin-bottom: clamp(48px, 7vw, 110px); }
.boards-intro .eyebrow { grid-column: 1 / -1; }
.boards-hl { margin: 0; font: 900 clamp(52px, 7.4vw, 150px)/.86 var(--display); text-transform: uppercase; color: var(--bone); }
.boards-hl em { font-style: normal; color: var(--tungsten); }
.boards-sub { margin: 0; max-width: 54ch; font-size: clamp(14px, 1.05vw, 17px); line-height: 1.6; color: var(--bone-dim); }
.sheet-index { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 0; padding: 0; list-style: none; }
.sheet-index a { display: inline-flex; gap: 8px; align-items: baseline; padding: 10px 14px; border: 1px solid #23324a; border-radius: 4px; font: 600 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--bone); text-decoration: none; background: #071426; transition: border-color .25s, transform .35s var(--servo), color .25s; }
.sheet-index a b { color: var(--steel); }
.sheet-index a:hover, .sheet-index a:focus-visible { border-color: var(--tungsten); transform: translateY(-2px); color: var(--tungsten-hot); }

.sheet {
  position: relative; margin: 0 0 clamp(36px, 5vw, 72px); padding: clamp(22px, 3vw, 44px) clamp(18px, 3vw, 44px) 92px;
  border: 1px solid #1d3352; border-radius: 3px; scroll-margin-top: 90px;
  background:
    linear-gradient(rgb(77 163 255 / .07) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgb(77 163 255 / .07) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(rgb(77 163 255 / .12) 1px, transparent 1px) 0 0 / 120px 120px,
    linear-gradient(90deg, rgb(77 163 255 / .12) 1px, transparent 1px) 0 0 / 120px 120px,
    var(--blueprint);
}
.sheet::before, .sheet::after { content: ''; position: absolute; width: 22px; height: 22px; border: 2px solid var(--steel); pointer-events: none; }
.sheet::before { left: 10px; top: 10px; border-right: 0; border-bottom: 0; }
.sheet::after { right: 10px; top: 10px; border-left: 0; border-bottom: 0; }
.sheet-head { display: grid; grid-template-columns: auto 1fr; gap: 0 22px; align-items: end; margin-bottom: clamp(22px, 3vw, 40px); }
.sheet-no { grid-row: span 2; margin: 0; font: 900 clamp(64px, 8vw, 132px)/.8 var(--display); color: transparent; -webkit-text-stroke: 1.5px var(--steel); }
.sheet-head h2 { margin: 0; font: 900 clamp(34px, 4.2vw, 70px)/.9 var(--display); text-transform: uppercase; color: var(--bone); }
.sheet-rule { margin: 8px 0 0; font: 600 12px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--tungsten); }
.title-block { position: absolute; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, auto); margin: 0; border-top: 1px solid #2a4468; border-left: 1px solid #2a4468; background: rgb(5 5 5 / .55); }
.title-block div { padding: 8px 14px; border-right: 1px solid #2a4468; }
.title-block div:last-child { border-right: 0; }
.title-block dt { font: 600 9px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--steel); }
.title-block dd { margin: 5px 0 0; font: 400 11px/1.2 var(--mono); color: var(--bone); white-space: nowrap; }
.mini-h { margin: 0 0 8px; font: 600 12px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--bone); }
.spec-note { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--bone-dim); max-width: 60ch; }

/* 01 palette */
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.swatch { margin: 0; border: 1px solid #23324a; border-radius: 3px; overflow: hidden; background: rgb(5 5 5 / .6); transition: transform .4s var(--servo), border-color .25s; }
.swatch:hover { transform: translateY(-3px); border-color: var(--tungsten); }
.swatch .chip { height: 108px; border-bottom: 1px solid #23324a; }
.swatch-iris .chip { background: radial-gradient(circle at 50% 50%, #ffe3a1 0, #ffbf4a 18%, #e0761a 38%, #7a2a06 56%, #1a0700 66%, #0d0400 70%, #050505 71%); }
.swatch figcaption { display: grid; gap: 6px; padding: 14px; font-size: 12.5px; line-height: 1.5; color: var(--bone-dim); }
.swatch figcaption b { font: 900 22px/1 var(--display); text-transform: uppercase; color: var(--bone); }
.swatch code { font: 600 11px/1 var(--mono); letter-spacing: .08em; color: var(--steel); }
.swatch .ratio { font: 600 11px/1.3 var(--mono); color: var(--tungsten-hot); }
.rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 28px; margin: 28px 0 0; padding: 0; list-style: none; counter-reset: rule; }
.rules li { position: relative; padding-left: 36px; font-size: 14px; line-height: 1.55; color: var(--bone); counter-increment: rule; }
.rules li::before { content: counter(rule, decimal-leading-zero); position: absolute; left: 0; top: 1px; font: 600 12px/1.4 var(--mono); color: var(--tungsten); }

/* 02 type */
.type-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; }
.specimen { padding: 20px; border: 1px solid #23324a; border-radius: 3px; background: rgb(5 5 5 / .6); }
.spec-display { grid-row: span 2; }
.spec-meta { margin: 0 0 14px; font: 600 10px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--steel); }
.spec-big { margin: 0 0 18px; font: 900 clamp(84px, 13vw, 250px)/.8 var(--display); color: var(--bone); }
.spec-big span { color: var(--tungsten); }
.spec-mid { margin: 0 0 14px; font: 600 clamp(40px, 4.6vw, 76px)/.95 var(--display); color: var(--bone); }
.spec-tele { margin: 0 0 14px; font: 400 clamp(12px, 1.1vw, 15px)/1.8 var(--mono); color: var(--bone-dim); letter-spacing: .08em; white-space: pre; overflow-x: auto; }
.spec-tele b { font-weight: 600; color: var(--tungsten-hot); }
.scale-ladder { margin: 0 0 14px; padding: 0; list-style: none; }
.scale-ladder li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed #2a4468; font: 400 12px/1 var(--mono); color: var(--bone-dim); }
.scale-ladder b { font-weight: 600; color: var(--bone); }

/* 03 light */
.light-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.plot { margin: 0; }
.plot svg { display: block; width: 100%; height: auto; border: 1px solid #23324a; background: rgb(5 5 5 / .7); }
.plot figcaption { margin-top: 12px; font-size: 13px; line-height: 1.6; color: var(--bone-dim); }
.lp-grid line { stroke: rgb(77 163 255 / .1); stroke-width: 1; }
.lp-stage { fill: none; stroke: #2a4468; stroke-dasharray: 6 5; }
.lp-beam { stroke-width: 2; opacity: .9; }
.lp-lamp { stroke: var(--black); stroke-width: 3; }
.lp-head { fill: #3a3527; stroke: var(--bone); stroke-width: 1.5; }
.lp-cam { fill: none; stroke: var(--bone-dim); stroke-width: 1.5; }
.lp-label { font: 600 11px var(--mono); letter-spacing: .14em; fill: var(--bone); }
.lp-small { font: 400 10px var(--mono); letter-spacing: .06em; fill: var(--bone-dim); }
.grades .mini-h:not(:first-child) { margin-top: 26px; }
.grade-list { display: grid; gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; }
.grade { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: center; }
.grade-chip {
  height: 56px; border: 1px solid #23324a; border-radius: 3px;
  background:
    radial-gradient(circle at 26% 30%, var(--key) 0, color-mix(in srgb, var(--key) calc(var(--level) * 70%), transparent) 16%, transparent 52%),
    linear-gradient(100deg, transparent 62%, var(--rim2) 63%, transparent 66%),
    linear-gradient(80deg, transparent 84%, var(--rim) 86%, transparent 90%),
    var(--fog);
}
.grade p { margin: 0; display: grid; gap: 4px; font: 400 11px/1.4 var(--mono); color: var(--bone-dim); }
.grade b { font: 900 18px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; color: var(--bone); }

/* 04 materials */
.mat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, .62fr) minmax(0, .62fr); gap: 16px; }
.mat { margin: 0; }
.mat canvas, .steel-chip { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; border: 1px solid #23324a; background: #0b0a09; }
.mat:not(.mat-wide) canvas, .steel-chip { aspect-ratio: 1; }
.steel-chip { background: repeating-linear-gradient(90deg, #8d98a6 0 1px, #5e6876 1px 3px, #a7b2bf 3px 4px, #6c7684 4px 6px); background-blend-mode: normal; box-shadow: inset 0 0 0 1px #23324a, inset -40px -40px 80px rgb(5 5 5 / .5), inset 30px 30px 60px rgb(77 163 255 / .25); }
.mat figcaption { margin-top: 10px; display: grid; gap: 4px; font-size: 12.5px; line-height: 1.55; color: var(--bone-dim); }
.mat figcaption b { font: 600 11px/1.3 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--bone); }
.mat-time { min-height: 1.4em; margin: 18px 0 0; font: 600 11px/1.4 var(--mono); letter-spacing: .08em; color: var(--tungsten-hot); }

/* 05 motion */
.motion-lede { margin: 0 0 18px; max-width: 76ch; font-size: 14.5px; line-height: 1.65; color: var(--bone); }
.motion-controls { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 0 0 22px; }
.motion-hint { font: 400 12px/1.4 var(--mono); color: var(--bone-dim); }
.curves { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.curve { margin: 0; padding: 12px 12px 14px; border: 1px solid #23324a; border-radius: 3px; background: rgb(5 5 5 / .65); }
.curve-plot { display: block; width: 100%; height: auto; overflow: visible; }
.cv-grid line { stroke: rgb(77 163 255 / .14); }
.cv-target { stroke: var(--bone-dim); stroke-dasharray: 2 4; }
.cv-zero { stroke: #2a4468; }
.cv-tick { font: 400 9px var(--mono); fill: var(--bone-dim); }
.cv-live { fill: none; stroke: var(--tungsten); stroke-width: 2.4; stroke-linejoin: round; }
.cv-calm { fill: none; stroke: var(--steel); stroke-width: 1.6; stroke-dasharray: 5 4; }
.cv-dot { fill: var(--tungsten-hot); stroke: var(--black); stroke-width: 2; }
.cv-head { stroke: rgb(255 217 168 / .5); stroke-width: 1; }
.actuator { position: relative; height: 10px; margin: 8px 8px 12px; border-radius: 5px; background: #0f1d31; box-shadow: inset 0 0 0 1px #23324a; }
.actuator i { position: absolute; left: -5px; top: -3px; display: block; width: calc(100% + 10px); height: 16px; pointer-events: none; }
.actuator i::before { content: ''; position: absolute; left: 0; top: 0; width: 10px; height: 16px; border-radius: 2px; background: var(--tungsten); box-shadow: 0 0 14px rgb(255 180 107 / .7); }
.curve figcaption { display: grid; gap: 4px; font: 400 11px/1.45 var(--mono); color: var(--bone-dim); }
.curve figcaption b { font: 900 20px/1 var(--display); text-transform: uppercase; color: var(--bone); }
.cv-m { color: var(--tungsten-hot); }

/* 06 wake: the exposure sheet */
.dope-wrap { overflow-x: auto; border: 1px solid #23324a; background: rgb(5 5 5 / .7); }
.dope-wrap:focus-visible { outline: 2px solid var(--tungsten); outline-offset: 2px; }
.dope { border-collapse: collapse; font: 400 10px/1 var(--mono); color: var(--bone-dim); }
.dope th, .dope td { width: 14px; min-width: 14px; height: 26px; padding: 0; border-right: 1px solid rgb(77 163 255 / .1); border-bottom: 1px solid rgb(77 163 255 / .12); text-align: center; }
.dope thead th { height: 30px; font-weight: 600; color: var(--steel); }
.dope tbody th { position: sticky; left: 0; z-index: 1; min-width: 92px; padding: 0 12px; text-align: left; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--bone); background: #08111f; border-right: 1px solid #2a4468; }
.dope thead th:first-child { position: sticky; left: 0; z-index: 1; background: #08111f; }
.dope .sec { border-right-color: rgb(77 163 255 / .45); }
.dope .key { position: relative; }
.dope .key i { display: block; width: 10px; height: 10px; margin: auto; background: var(--tungsten); transform: rotate(45deg); box-shadow: 0 0 10px rgb(255 180 107 / .8); }
.dope .action td { position: relative; height: 58px; padding: 0; text-align: left; }
.dope-notes { position: relative; height: 58px; }
.dope-notes span { position: absolute; padding-left: 8px; border-left: 1px solid var(--tungsten); white-space: nowrap; font: 600 10px/14px var(--mono); letter-spacing: .04em; color: var(--tungsten-hot); }

/* 07 sound */
.sound-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.sound-cue { display: grid; gap: 12px; align-content: start; padding: 18px; border: 1px solid #23324a; border-radius: 3px; background: rgb(5 5 5 / .6); }
.sound-cue .pill { justify-self: start; }
.sound-foot { margin-top: 18px; }
.boards-foot { padding: 20px 0 30px; font: 400 12px/1.6 var(--mono); color: var(--bone-dim); }
.boards-foot a { color: var(--tungsten); }
.boards-foot a:hover, .boards-foot a:focus-visible { color: var(--tungsten-hot); }

@media (max-width: 1020px) {
  .boards-intro, .type-grid, .light-grid { grid-template-columns: 1fr; }
  .spec-display { grid-row: auto; }
  .mat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mat-wide { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .boards { padding-top: 96px; }
  .sheet { padding-bottom: 150px; }
  .title-block { grid-template-columns: repeat(2, auto); left: 0; }
  .title-block div:nth-child(2) { border-right: 0; }
  .title-block div:nth-child(-n + 2) { border-bottom: 1px solid #2a4468; }
  .sheet-head { grid-template-columns: 1fr; }
  .sheet-no { grid-row: auto; font-size: 56px; }
  .grade { grid-template-columns: 84px 1fr; }
  .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .swatch .chip { height: 72px; }
  .swatch figcaption { padding: 10px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .sheet-index a, .swatch { transition: none; }
}
