/*
  Halden PS-1: hardware product page (Screenery template)
  The page is moulded putty plastic with screen-printed ink. The instrument is drawn in CSS and SVG and plays.
  Its shell colour is one token (--shell) so the colour picker recolours the device, the drawings and the order panel together.

  Contents
   1. Tokens
   2. Base and browser surfaces
   3. Kit: buttons, rubber keys, fields, checkbox, select, swatches, alert
   4. Header
   5. Hero and the instrument (head, LCD, knobs, sequencer, keybed, Bench panel)
   6. Anatomy (exploded view)
   7. Spec sheet
   8. Sound presets
   9. Editions and comparison
  10. Order panel and reservation form
  11. Shipping, returns, warranty
  12. Questions, footer
  13. Motion
  14. Narrow screens
*/

/* ---------- 1. Tokens ---------- */
:root {
  /* The plastic. --shell is the device colour and changes with the picker; the page ground stays putty. */
  --ground: #e6dfcf;
  --ground-2: #ddd5c2;
  --ground-3: #d2c8b2;
  --paper: #f4f0e6;
  --ink: #2a2620;
  --ink-2: #554d42;
  --rule: #bfb39b;

  --shell: #d6cbb3;
  --print: #2b2722;
  --print-2: #4a4339;
  --shell-hi: color-mix(in oklab, var(--shell), white 38%);
  --shell-lo: color-mix(in oklab, var(--shell), #3a3128 22%);
  --shell-lo2: color-mix(in oklab, var(--shell), #3a3128 38%);

  /* One signal colour, and its text-safe version */
  --signal: #d4501c;
  --signal-hi: #ef6a33;
  --signal-ink: #a33a0f;
  --signal-led: #ff7a3d;
  --signal-tint: color-mix(in oklab, var(--signal), white 70%);

  /* Rubber, smoke, LCD */
  --rubber: #efe9dd;
  --rubber-lo: #cfc6b5;
  --rubber-dark: #3b3733;
  --rubber-dark-hi: #55504a;
  --smoke: #24201d;
  --lcd: #b4c294;
  --lcd-lo: #9fae80;
  --lcd-ink: #18200f;
  --lcd-ghost: rgba(24, 32, 15, 0.075);
  --led-off: #5b3426;

  /* Type */
  --sans: "Sora", "Helvetica Neue", Arial, sans-serif;
  --mono: "Share Tech Mono", ui-monospace, "SF Mono", monospace;  /* measurements, LCD-adjacent labels, serials */

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-h3: 1.375rem;
  --fs-h2: clamp(2rem, 1.2rem + 2.6vw, 3.35rem);
  --fs-h1: clamp(2.4rem, 1.2rem + 3.6vw, 4.25rem);

  /* Space */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 72px;
  --s-9: 112px;
  --gutter: clamp(16px, 4vw, 48px);
  --wrap: 1200px;

  /* Radius: moulded corners are generous, printed things are sharp */
  --r-1: 4px;
  --r-2: 8px;
  --r-3: 14px;
  --r-4: 22px;
  --r-dev: 38px;

  /* Moulded depth: offset, soft blur, warm shadow */
  --shadow-1: 0 1px 0 rgba(255, 255, 255, 0.55) inset, 0 2px 3px rgba(60, 46, 30, 0.18);
  --shadow-2: 0 2px 2px rgba(60, 46, 30, 0.14), 0 8px 18px -6px rgba(60, 46, 30, 0.3);
  --shadow-dev: 0 2px 0 rgba(255, 255, 255, 0.5) inset, 0 -3px 0 rgba(60, 46, 30, 0.2) inset, 0 6px 8px rgba(50, 38, 24, 0.22), 0 34px 60px -18px rgba(50, 38, 24, 0.5);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* Plastic grain, an SVG noise tile */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .16 0 0 0 0 .1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Shell colours from the picker (set on <html data-colour>) */
:root[data-colour="bone"] { --shell: #e9e4d7; }
:root[data-colour="sage"] { --shell: #aab396; --print: #20251a; --print-2: #2f3527; }
:root[data-colour="graphite"] { --shell: #4a4945; --print: #efe9dc; --print-2: #d8d1c2; --rubber: #6a6863; --rubber-lo: #4f4d49; --rubber-dark: #1f1d1b; --rubber-dark-hi: #34312e; }

/* ---------- 2. Base and browser surfaces ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; color-scheme: light; accent-color: var(--signal); scrollbar-color: var(--shell-lo2) var(--ground-2); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--fs-md);
  line-height: 1.6;
  color: var(--ink);
  background: var(--grain), var(--ground);
  caret-color: var(--signal);
  overflow-x: clip;
}
::selection { background: var(--signal); color: #fff; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--ground-2); }
::-webkit-scrollbar-thumb { background: var(--shell-lo2); border-radius: 12px; border: 3px solid var(--ground-2); }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance; font-weight: 600; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--signal-ink); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 6px; }
button { font: inherit; color: inherit; }
kbd { font-family: var(--mono); font-size: 0.85em; padding: 1px 6px; border-radius: 5px; background: var(--rubber); box-shadow: 0 2px 0 var(--rubber-lo), 0 2px 3px rgba(60, 46, 30, 0.2); color: var(--ink); }
[hidden] { display: none !important; }
.tnum { font-variant-numeric: tabular-nums; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; background: var(--ink); color: var(--paper); border-radius: var(--r-2); }
.skip:focus { top: 12px; }
.skip:hover { color: var(--paper); }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- 3. Kit ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  font-weight: 600; font-size: var(--fs-sm); letter-spacing: 0.01em; text-decoration: none;
  border: 0; border-radius: 999px; cursor: pointer;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), background-color 0.2s;
}
.btn-sm { min-height: 44px; padding: 0 18px; }
.btn-signal { background: var(--signal-ink); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 3px 0 #7d2b0a, 0 6px 12px -4px rgba(120, 40, 10, 0.5); }
.btn-signal:hover { background: #b6420f; color: #fff; }
.btn-signal:active { transform: translateY(2px); box-shadow: 0 1px 0 #7d2b0a, 0 2px 4px rgba(120, 40, 10, 0.4); }
.btn-ghost { background: var(--ground-2); color: var(--ink); box-shadow: 0 0 0 1px var(--rule) inset, var(--shadow-1); }
.btn-ghost:hover { background: var(--ground-3); color: var(--ink); }
.btn-block { width: 100%; }

/* Rubber key: the moulded button used on the device and the stepper */
.rk {
  display: inline-grid; place-items: center; gap: 2px;
  min-width: 44px; min-height: 44px; padding: 0 10px;
  border: 0; border-radius: 12px; cursor: pointer;
  background: linear-gradient(var(--rubber), color-mix(in oklab, var(--rubber), var(--rubber-lo) 45%));
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 3px 0 var(--rubber-lo), 0 5px 8px -2px rgba(50, 38, 24, 0.35);
  transition: transform 0.08s, box-shadow 0.08s;
  touch-action: manipulation;
}
:root[data-colour="graphite"] .device .rk { color: var(--print); }
.rk:active, .rk.is-down { transform: translateY(2px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 1px 0 var(--rubber-lo), 0 2px 3px rgba(50, 38, 24, 0.3); }
.rk:disabled { opacity: 0.45; cursor: not-allowed; }
.rk-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; }

.field { display: grid; gap: 6px; }
.field label, .opt-title, legend { font-weight: 600; font-size: var(--fs-sm); }
.field input, .select-wrap select {
  width: 100%; min-height: 48px; padding: 10px 14px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--rule); border-radius: var(--r-2);
  box-shadow: 0 2px 3px rgba(60, 46, 30, 0.12) inset;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:hover, .select-wrap select:hover { border-color: var(--ink-2); }
.field input:focus-visible, .select-wrap select:focus-visible { outline: none; border-color: var(--signal); box-shadow: 0 0 0 3px color-mix(in oklab, var(--signal), transparent 70%); border-radius: var(--r-2); }
.field.is-bad input { border-color: var(--signal-ink); background: #fbeee6; }
.field.is-ok input { border-color: #5d7a3d; }
.hint { font-size: var(--fs-xs); color: var(--ink-2); }
.err { font-size: var(--fs-sm); color: var(--signal-ink); font-weight: 500; min-height: 0; }
.err:empty { display: none; }
.field-row { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: var(--s-4); }

.select-wrap { position: relative; }
.select-wrap select { appearance: none; padding-right: 44px; cursor: pointer; }
.select-wrap .ico { position: absolute; right: 14px; top: 50%; translate: 0 -50%; pointer-events: none; }

.check { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; cursor: pointer; font-size: var(--fs-sm); line-height: 1.5; }
.check input { position: absolute; opacity: 0; width: 26px; height: 26px; margin: 0; cursor: pointer; }
.check-box { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: var(--paper); border: 1.5px solid var(--ink-2); color: transparent; box-shadow: 0 2px 3px rgba(60, 46, 30, 0.14) inset; }
.check-box .ico { width: 16px; height: 16px; stroke-width: 2.4; }
.check input:checked + .check-box { background: var(--signal-ink); border-color: var(--signal-ink); color: #fff; }
.check input:focus-visible + .check-box { outline: 3px solid var(--signal); outline-offset: 3px; }
.check.is-bad .check-box { border-color: var(--signal-ink); background: #fbeee6; }
.check-sub { color: var(--ink-2); }

/* Shell colour swatches: moulded chips */
.sw { position: relative; display: grid; justify-items: center; gap: 6px; cursor: pointer; min-width: 58px; }
.sw input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.sw-chip { width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(160deg, color-mix(in oklab, var(--sw), white 30%), var(--sw) 55%, color-mix(in oklab, var(--sw), black 18%)); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 3px 6px rgba(50, 38, 24, 0.3); transition: transform 0.2s var(--ease), box-shadow 0.2s; }
.sw-name { font-size: var(--fs-xs); font-weight: 500; }
.sw input:checked + .sw-chip { box-shadow: 0 0 0 3px var(--ground), 0 0 0 5px var(--ink), 0 3px 6px rgba(50, 38, 24, 0.3); transform: translateY(-2px); }
.sw input:focus-visible + .sw-chip { outline: 3px solid var(--signal); outline-offset: 6px; }

.alert { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 14px 16px; border-radius: var(--r-2); background: #f7e3d8; border: 1.5px solid var(--signal-ink); color: #5e220a; font-size: var(--fs-sm); }
.alert .ico { color: var(--signal-ink); margin-top: 2px; }
.link-btn { padding: 0; border: 0; background: none; color: var(--signal-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; min-height: 0; }

/* ---------- 4. Header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-5);
  padding: 10px var(--gutter);
  background: var(--grain), var(--ground);
  box-shadow: 0 1px 0 var(--rule), 0 2px 0 rgba(255, 255, 255, 0.5);
}
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.95rem; }
.logo small { display: block; font-weight: 400; letter-spacing: 0.08em; font-size: 0.62rem; color: var(--ink-2); }
.logo svg { width: 40px; height: 28px; fill: none; stroke: var(--ink); stroke-width: 1.6; }
.logo svg circle { fill: var(--signal); stroke: none; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 10px 12px; border-radius: 999px; color: var(--ink); text-decoration: none; font-size: var(--fs-sm); font-weight: 500; }
.nav a:hover { background: var(--ground-2); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.mute-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--ground-2); box-shadow: 0 0 0 1px var(--rule) inset; cursor: pointer; font-size: var(--fs-sm); font-weight: 500; }
.mute-btn:hover { background: var(--ground-3); }
.mute-btn[aria-pressed="true"], .mute-btn[aria-pressed="true"]:hover { background: var(--ink); color: var(--paper); box-shadow: none; }

/* ---------- 5. Hero and the instrument ---------- */
.hero { padding: clamp(32px, 4.5vw, 64px) var(--gutter) var(--s-8); max-width: 1280px; margin: 0 auto; }
.hero-copy { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--s-4) var(--s-7); align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.hero h1 { font-size: var(--fs-h1); font-weight: 600; letter-spacing: -0.035em; grid-row: span 3; max-width: 13ch; }
.lede { font-size: var(--fs-lg); line-height: 1.5; color: var(--ink-2); max-width: 46ch; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; font-size: var(--fs-sm); color: var(--ink-2); }
.hero-meta strong { font-size: 1.5rem; color: var(--ink); font-weight: 600; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; }

.stage { position: relative; min-width: 0; }
.play-hint { max-width: 74ch; margin: 0 auto var(--s-5); text-align: center; font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.9; }
.play-hint > span:first-child { font-weight: 600; color: var(--ink); }
.hint-sound { display: block; font-family: var(--mono); letter-spacing: 0.02em; color: var(--signal-ink); }
.hint-sound.is-live { color: #4d6a2f; }

/* The device body */
.device {
  --pad: clamp(18px, 3vw, 34px);
  position: relative; container-type: inline-size;
  width: min(1060px, 100%); margin: 0 auto;
  padding: var(--pad) var(--pad) calc(var(--pad) + 10px);
  border-radius: var(--r-dev);
  color: var(--print);
  background:
    radial-gradient(120% 80% at 20% 0%, rgba(255, 255, 255, 0.35), transparent 55%),
    linear-gradient(180deg, var(--shell-hi) 0%, var(--shell) 12%, var(--shell) 86%, var(--shell-lo) 100%);
  box-shadow: var(--shadow-dev);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(16px, 2.4vw, 26px);
  transition: background 0.5s var(--ease), color 0.3s;
  outline: none;
}
.device::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--grain); pointer-events: none; opacity: 0.8; }
.parting { position: absolute; left: 22px; right: 22px; top: 46%; height: 0; border-top: 1px solid color-mix(in oklab, var(--shell), black 14%); border-bottom: 1px solid color-mix(in oklab, var(--shell), white 40%); pointer-events: none; opacity: 0; }

.dev-head { display: flex; align-items: center; gap: clamp(12px, 3cqi, 32px); }
.plate { display: grid; gap: 2px; }
.plate-brand { font-weight: 700; font-size: clamp(1.2rem, 2.6cqi, 1.7rem); letter-spacing: 0.32em; line-height: 1; }
.plate-model { font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--print-2); }
.plate-model span { margin-left: 6px; }
.grille {
  flex: 1; height: 40px; min-width: 60px; max-width: 360px; margin-left: auto;
  background: radial-gradient(circle at 50% 50%, color-mix(in oklab, var(--shell), black 62%) 0 2.6px, transparent 3.2px) 0 0 / 12px 12px;
  border-radius: 10px;
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.head-right { display: flex; align-items: center; gap: 16px; }
.pwr { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: var(--print-2); }
.led { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--led-off); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4), 0 0 0 1.5px color-mix(in oklab, var(--shell), black 30%); transition: background-color 0.06s, box-shadow 0.12s; }
.led-pwr { background: #8bd46a; box-shadow: 0 0 6px 1px rgba(120, 220, 90, 0.75), 0 0 0 1.5px color-mix(in oklab, var(--shell), black 30%); }

/* Speaker slide switch */
.spk { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px; border: 0; background: none; cursor: pointer; color: var(--print); }
.spk-track { position: relative; width: 46px; height: 22px; border-radius: 6px; background: color-mix(in oklab, var(--shell), black 45%); box-shadow: 0 2px 3px rgba(0, 0, 0, 0.35) inset; }
.spk-thumb { position: absolute; top: 2px; left: 2px; width: 22px; height: 18px; border-radius: 4px; background: linear-gradient(var(--rubber), var(--rubber-lo)); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4); transition: transform 0.18s var(--ease); }
.spk[aria-checked="true"] .spk-thumb { transform: translateX(20px); background: linear-gradient(var(--signal-hi), var(--signal)); }
.spk-label { display: grid; font-family: var(--mono); font-size: 11px; line-height: 1.15; letter-spacing: 0.12em; }

/* Front panel: LCD window + knobs */
.dev-panel { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(16px, 3cqi, 36px); align-items: center; padding: clamp(10px, 1.6cqi, 18px); border-radius: 22px; background: color-mix(in oklab, var(--shell), black 4%); box-shadow: 0 1px 2px rgba(50, 38, 24, 0.25) inset, 0 -1px 0 rgba(255, 255, 255, 0.4) inset; transition: background 0.5s; }
.window {
  position: relative; min-width: 0; padding: clamp(10px, 1.6cqi, 16px); border-radius: 14px;
  background: linear-gradient(160deg, #3a332d, var(--smoke) 60%);
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.35), 0 3px 8px rgba(0, 0, 0, 0.45) inset;
}
.window::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(112deg, rgba(255, 255, 255, 0.16) 0 18%, transparent 18.5% 60%, rgba(255, 255, 255, 0.05) 60.5% 70%, transparent 70.5%); pointer-events: none; }
.lcd {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; gap: 6px; padding: 10px 14px 10px;
  border-radius: 6px; color: var(--lcd-ink);
  background: radial-gradient(130% 120% at 30% 20%, var(--lcd), var(--lcd-lo));
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45) inset;
}
.ann-row { display: flex; justify-content: space-between; gap: 4px; }
.ann { font-family: var(--mono); font-size: clamp(9px, 1.5cqi, 12px); letter-spacing: 0.08em; line-height: 1; color: var(--lcd-ghost); transition: color 0.05s; }
.ann::before { content: attr(data-t); }
.ann.on { color: var(--lcd-ink); }
.ann svg { display: block; width: 12px; height: 12px; fill: currentColor; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
.ann[data-ann="sharp"] svg { fill: none; }
.ann-mute svg { width: 16px; }
.digits { display: flex; align-items: stretch; gap: 0; }
.dig { flex: 1 1 0; min-width: 0; aspect-ratio: 54 / 76; max-height: 92px; }
.units { display: grid; align-content: space-between; gap: 2px; padding-left: 6px; min-width: 32px; }
.lcd-foot { display: flex; align-items: center; gap: 10px; }
.dots { flex: 1; display: grid; grid-template-columns: repeat(16, 1fr); gap: 3px; }
.dots i { height: 6px; border-radius: 1px; background: var(--lcd-ghost); }
.dots i.on { background: color-mix(in oklab, var(--lcd-ink), transparent 50%); }
.dots i.at { background: var(--lcd-ink); }

.knobs { --size: clamp(58px, 9.6cqi, 92px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.knob-wrap { display: grid; justify-items: center; gap: 8px; }
.knob {
  --rot: 0deg;
  position: relative; width: var(--size); height: var(--size); border-radius: 50%;
  cursor: ns-resize; touch-action: none;
}
/* Printed scale: 11 ticks over 270 degrees */
.knob::before {
  content: ""; position: absolute; inset: -9px; border-radius: 50%;
  background: repeating-conic-gradient(from -136deg, var(--print) 0 1.6deg, transparent 1.6deg 27deg);
  -webkit-mask: radial-gradient(closest-side, transparent 86%, #000 87% 100%), conic-gradient(from -136deg, #000 0 273deg, transparent 273deg);
  -webkit-mask-composite: source-in;
  mask: radial-gradient(closest-side, transparent 86%, #000 87% 100%) intersect, conic-gradient(from -136deg, #000 0 273deg, transparent 273deg);
  opacity: 0.85;
}
.knob-skirt { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, #2e2a26, #4c4640, #2e2a26, #4c4640, #2e2a26); box-shadow: 0 4px 6px rgba(0, 0, 0, 0.35), 0 10px 18px -6px rgba(40, 28, 16, 0.55); }
.knob-cap { position: absolute; inset: 10%; border-radius: 50%; rotate: var(--rot); background: radial-gradient(circle at 35% 30%, #6c655d, #3a3531 60%, #2a2622); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 -2px 3px rgba(0, 0, 0, 0.4) inset; transition: rotate 0.08s linear; }
.knob-cap i { position: absolute; left: 50%; top: 7%; width: 4px; height: 32%; margin-left: -2px; border-radius: 2px; background: var(--signal-hi); }
.knob:focus-visible { outline-offset: 12px; border-radius: 50%; }
.knob.is-turning .knob-cap { transition: none; }
.knob-label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; font-weight: 400; }
.knob-scale { display: flex; justify-content: space-between; width: calc(var(--size) + 2px); max-width: 100%; margin-top: -4px; font-family: var(--mono); font-size: 11px; color: var(--print-2); }
.knob-scale b { font-weight: 400; }

/* Sequencer row */
.dev-seq { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(12px, 2.4cqi, 26px); align-items: center; }
.transport { display: flex; align-items: center; gap: 10px; }
.rk-play { width: 64px; height: 56px; color: #fff; background: linear-gradient(var(--signal-hi), var(--signal)); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 3px 0 #8f300b, 0 6px 10px -2px rgba(110, 36, 8, 0.5); }
.rk-play .ico { fill: currentColor; stroke: none; }
.rk-play .rk-label { font-size: 11px; }
.rk-play[aria-pressed="true"] { transform: translateY(2px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 1px 0 #8f300b, 0 0 14px 2px rgba(255, 110, 50, 0.45); }
:root[data-colour="graphite"] .device .rk-play { color: #fff; }
.pair { display: flex; align-items: center; gap: 6px; }
.pair-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-align: center; min-width: 44px; }
.pair-label b { font-weight: 400; display: block; }
.rk-sm .ico { width: 16px; height: 16px; stroke-width: 2; }
.rk-patt { min-width: 64px; }
.patt-leds { display: flex; gap: 4px; }
.patt-leds i { width: 6px; height: 6px; border-radius: 50%; background: var(--led-off); }
.patt-leds i.on { background: var(--signal-led); box-shadow: 0 0 5px rgba(255, 110, 50, 0.8); }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 1.6cqi, 16px); }
.grp { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; padding: 6px; border-radius: 12px; background: color-mix(in oklab, var(--shell), black 7%); box-shadow: 0 1px 2px rgba(50, 38, 24, 0.28) inset; transition: background 0.5s; }
.step {
  position: relative; display: grid; justify-items: center; align-content: center; gap: 5px;
  min-height: 48px; min-width: 0; padding: 6px 0 4px;
  border: 0; border-radius: 8px; cursor: pointer;
  background: linear-gradient(var(--rubber), color-mix(in oklab, var(--rubber), var(--rubber-lo) 50%));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 2px 0 var(--rubber-lo), 0 3px 5px -1px rgba(50, 38, 24, 0.35);
  transition: transform 0.06s, box-shadow 0.06s;
  touch-action: manipulation;
}
.step .num { font-family: var(--mono); font-size: 11px; line-height: 1; color: var(--ink-2); }
:root[data-colour="graphite"] .step .num { color: var(--print); }
.step:active { transform: translateY(1px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 1px 0 var(--rubber-lo); }
.step .led { width: 10px; height: 6px; border-radius: 2px; }
.step[aria-pressed="true"] .led { background: color-mix(in oklab, var(--signal-led), var(--led-off) 22%); }
.step.at .led { background: var(--signal-led); box-shadow: 0 0 8px 2px rgba(255, 110, 50, 0.75), 0 0 0 1.5px color-mix(in oklab, var(--shell), black 30%); }
.step.at:not([aria-pressed="true"]) .led { background: color-mix(in oklab, var(--signal-led), var(--led-off) 65%); box-shadow: 0 0 4px rgba(255, 110, 50, 0.4); }

/* Keybed: two rows of rubber keys, sharps offset by half a key */
.dev-keys { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(12px, 2.4cqi, 26px); align-items: end; }
.pair-oct { flex-direction: column; gap: 6px; align-self: center; }
.keybed { --cols: 16; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); grid-template-rows: auto auto; gap: 8px 6px; touch-action: none; user-select: none; -webkit-user-select: none; }
.key {
  position: relative; grid-column: var(--col) / span 2;
  display: grid; align-content: space-between; justify-items: center;
  min-width: 0; padding: 8px 4px 10px; border: 0; border-radius: 12px 12px 16px 16px; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.05s, box-shadow 0.05s, background-color 0.1s;
}
.key .cap { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; opacity: 0.9; }
.key .note { font-weight: 600; font-size: clamp(14px, 1.8cqi, 18px); }
.key.nat { grid-row: 2; min-height: clamp(84px, 12cqi, 112px); background: linear-gradient(var(--rubber), color-mix(in oklab, var(--rubber), var(--rubber-lo) 55%)); color: var(--ink); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 5px 0 var(--rubber-lo), 0 8px 12px -3px rgba(50, 38, 24, 0.4); }
:root[data-colour="graphite"] .key.nat { color: var(--print); }
.key.sharp { grid-row: 1; min-height: clamp(56px, 8cqi, 74px); margin: 0 10%; background: linear-gradient(var(--rubber-dark-hi), var(--rubber-dark)); color: #efe9dd; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 4px 0 #1f1c19, 0 7px 10px -3px rgba(30, 20, 10, 0.5); align-content: center; }
.key.is-down { transform: translateY(4px); }
.key.nat.is-down { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 1px 0 var(--rubber-lo), 0 2px 4px rgba(50, 38, 24, 0.35); background: linear-gradient(color-mix(in oklab, var(--rubber), var(--signal) 14%), color-mix(in oklab, var(--rubber), var(--rubber-lo) 55%)); }
.key.sharp.is-down { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset, 0 0 0 #1f1c19, 0 1px 3px rgba(30, 20, 10, 0.5); background: linear-gradient(color-mix(in oklab, var(--rubber-dark-hi), var(--signal) 30%), var(--rubber-dark)); }
.key:focus-visible { outline-offset: 2px; }

.serial { position: absolute; right: calc(var(--pad) + 4px); bottom: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--print-2); }

/* Bench edition: brushed aluminium panel and turned knobs */
.device[data-edition="bench"] .dev-panel {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #e2e3df, #c4c5c0 55%, #d6d7d2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 -1px 0 rgba(0, 0, 0, 0.2) inset, 0 2px 4px rgba(40, 30, 20, 0.3);
  color: #23211e;
}
.device[data-edition="bench"] .dev-panel .knob-scale { color: #3b3833; }
.device[data-edition="bench"] .dev-panel .knob::before { background: repeating-conic-gradient(from -136deg, #23211e 0 1.6deg, transparent 1.6deg 27deg); }
.device[data-edition="bench"] .knob-skirt { background: conic-gradient(from 20deg, #9a9b96, #f0f0ec, #8c8d88, #e6e6e2, #9a9b96, #f4f4f0, #9a9b96); }
.device[data-edition="bench"] .knob-cap { background: repeating-radial-gradient(circle at 50% 50%, #d4d5d0 0 1px, #c2c3be 1px 2px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 -2px 3px rgba(0, 0, 0, 0.25) inset; }
.device[data-edition="bench"] .knob-cap i { background: var(--signal); }
.bench-tag { display: none; }

/* ---------- Shared section frame ---------- */
.sec { position: relative; max-width: var(--wrap); margin: 0 auto; padding: var(--s-9) var(--gutter) var(--s-8); }
.sec::before { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); top: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid rgba(255, 255, 255, 0.6); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-4) var(--s-7); align-items: end; margin-bottom: var(--s-7); }
.sec-head h2 { font-size: var(--fs-h2); max-width: 16ch; }
.sec-head p { color: var(--ink-2); max-width: 54ch; }

/* ---------- 6. Anatomy ---------- */
.anatomy-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--s-6) var(--s-7); align-items: start; }
.exploded { margin: 0; position: sticky; top: 96px; }
.exploded svg { display: block; width: 100%; height: auto; overflow: visible; }
.exploded figcaption { margin-top: var(--s-3); font-size: var(--fs-xs); color: var(--ink-2); font-family: var(--mono); letter-spacing: 0.04em; }
.exploded .p { stroke: var(--ink); stroke-width: 1; stroke-linejoin: round; transition: fill 0.3s var(--ease); }
.exploded .p.f-top { fill: var(--shell-hi); }
.exploded .p.f-front { fill: var(--shell); }
.exploded .p.f-side { fill: var(--shell-lo); }
.exploded .hole { fill: var(--ink); opacity: 0.72; }
.exploded .p.smoke { fill: #3a332d; fill-opacity: 0.82; }
.exploded .p.lcdm.f-top { fill: #c9c4b4; }
.exploded .lcdglass { fill: var(--lcd); stroke: var(--ink); stroke-width: 0.8; }
.exploded .p.bump.f-top { fill: var(--rubber); }
.exploded .p.bump.f-front, .exploded .p.bump.f-side { fill: var(--rubber-lo); }
.exploded .p.pcb.f-top { fill: #5f7550; }
.exploded .p.pcb.f-front, .exploded .p.pcb.f-side { fill: #46593a; }
.exploded .chip { fill: #26231f; }
.exploded .trace { fill: none; stroke: #c9d6a7; stroke-width: 0.8; stroke-dasharray: 3 3; }
.exploded .ledpad { fill: var(--signal); }
.exploded .cone { fill: #4a443d; }
.exploded .p.cell.f-top { fill: #a59c8e; }
.exploded .p.cell.f-front { fill: #6c6459; }
.exploded .floor { fill: var(--shell-lo); opacity: 0.6; }
.exploded .screw { fill: #807868; stroke: var(--ink); stroke-width: 0.8; }
.exploded .axis { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 2 6; fill: none; opacity: 0.6; }
.exploded .leader { stroke: var(--ink); stroke-width: 1; fill: none; }
.exploded .callout circle { fill: var(--ground); stroke: var(--ink); stroke-width: 1.4; transition: fill 0.2s; }
.exploded .callout text { font-family: var(--mono); font-size: 16px; text-anchor: middle; fill: var(--ink); }
.exploded .part { transition: opacity 0.3s var(--ease); cursor: pointer; }
.exploded svg.has-on .part:not(.is-on) { opacity: 0.28; }
.exploded .part.is-on .p.f-top { fill: color-mix(in oklab, var(--signal), white 55%); }
.exploded .part.is-on .p.f-front { fill: color-mix(in oklab, var(--signal), white 30%); }
.exploded .part.is-on .p.f-side { fill: var(--signal); }
.exploded .part.is-on .callout circle { fill: var(--signal-ink); stroke: var(--signal-ink); }
.exploded .part.is-on .callout text { fill: #fff; }
.exploded .part.is-on .leader { stroke: var(--signal-ink); stroke-width: 1.6; }

.parts { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.parts button {
  display: grid; grid-template-columns: 34px 1fr; gap: 2px 14px; width: 100%; text-align: left;
  padding: 12px 14px; border: 0; border-radius: var(--r-2); background: none; cursor: pointer;
  transition: background-color 0.2s;
}
.parts button:hover, .parts button.is-on { background: var(--ground-2); }
.pn { grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 15px; border: 1.4px solid var(--ink); transition: background-color 0.2s, color 0.2s; }
.parts button.is-on .pn { background: var(--signal-ink); border-color: var(--signal-ink); color: #fff; }
.pt { font-weight: 600; }
.pd { font-size: var(--fs-sm); color: var(--ink-2); }

/* ---------- 7. Spec sheet ---------- */
.sheet {
  position: relative; max-width: 940px; padding: clamp(20px, 4vw, 44px) clamp(18px, 4vw, 48px) var(--s-5);
  background: var(--paper); color: var(--ink); border-radius: 3px;
  box-shadow: 0 1px 1px rgba(60, 46, 30, 0.15), 0 14px 30px -12px rgba(60, 46, 30, 0.4);
}
.sheet::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: radial-gradient(circle, var(--ground) 0 3px, transparent 3.5px) 6px 0 / 16px 10px repeat-x; translate: 0 -5px; }
.sheet table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.sheet th, .sheet td { padding: 13px 0; border-bottom: 1px dashed var(--rule); vertical-align: baseline; text-align: left; }
.sheet th { width: 30%; padding-right: var(--s-5); font-family: var(--mono); font-weight: 400; font-size: var(--fs-sm); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.sheet td { font-size: 1rem; }
.sheet-foot { margin-top: var(--s-4); font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: 0.12em; color: var(--ink-2); }

/* ---------- 8. Sound presets: a printed patch chart ---------- */
.presets { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.presets li { border-bottom: 1px solid var(--rule); }
.presets button {
  display: grid; grid-template-columns: 48px minmax(150px, 0.8fr) minmax(0, 1.6fr) minmax(0, 1.1fr) auto; gap: var(--s-2) var(--s-5); align-items: center;
  width: 100%; padding: var(--s-4) var(--s-2); text-align: left; border: 0; background: none; cursor: pointer;
  transition: background-color 0.2s;
}
.presets button:hover { background: var(--ground-2); }
.presets button[aria-pressed="true"] { background: var(--ground-3); }
.pr-slot { font-family: var(--mono); font-size: 1.4rem; color: var(--ink-2); }
.pr-name { font-weight: 600; font-size: var(--fs-lg); }
.pr-desc { font-size: var(--fs-sm); color: var(--ink-2); }
.pr-vals { font-family: var(--mono); font-size: var(--fs-sm); letter-spacing: 0.04em; }
.pr-go { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: var(--fs-sm); font-weight: 600; }
.pr-go .ico { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.presets button[aria-pressed="true"] .pr-go { background: var(--signal-ink); }

/* ---------- 9. Editions ---------- */
.swatches { grid-column: 1; grid-row: 1; align-self: start; display: flex; flex-wrap: wrap; align-items: end; gap: var(--s-3); margin: 0; padding: var(--s-5) 0 0; border: 0; min-width: 0; }
.swatches legend { float: left; width: 100%; margin-bottom: var(--s-3); }
.swatches legend span, .opt legend span { font-weight: 400; color: var(--ink-2); margin-left: 6px; }
.compare { display: grid; grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1fr) minmax(0, 1fr); gap: 0 var(--s-5); }
.ed-col { display: grid; align-content: start; gap: var(--s-3); padding: var(--s-5); border-radius: var(--r-3); transition: background-color 0.3s, box-shadow 0.3s; }
.ed-col[data-ed-col="standard"] { grid-column: 2; grid-row: 1; }
.ed-col[data-ed-col="bench"] { grid-column: 3; grid-row: 1; }
.ed-col.is-on { background: var(--ground-2); box-shadow: 0 0 0 1.5px var(--ink) inset; }
.ed-col h3 { font-size: var(--fs-h3); display: flex; justify-content: space-between; gap: 8px; }
.ed-col h3 .tnum { font-family: var(--mono); font-weight: 400; }
.ed-col p { font-size: var(--fs-sm); color: var(--ink-2); }
.ed-col .btn { justify-self: start; }
.ed-col.is-on .btn { background: var(--ink); color: var(--paper); box-shadow: none; }
.mini { width: 100%; height: auto; display: block; }
.mini .m-shell { fill: var(--shell); stroke: color-mix(in oklab, var(--shell), black 30%); stroke-width: 1; transition: fill 0.5s var(--ease); }
.mini .m-shadow { fill: rgba(60, 46, 30, 0.25); }
.mini .m-smoke { fill: var(--smoke); }
.mini .m-lcd { fill: var(--lcd); }
.mini .m-knob circle { fill: #3a3531; }
.mini .m-knob-alu circle { fill: #c9cac5; stroke: #8c8d88; }
.mini .m-keys rect { fill: var(--rubber); stroke: var(--rubber-lo); }
.mini .m-steps rect { fill: color-mix(in oklab, var(--shell), black 10%); }
.mini .m-signal { fill: var(--signal); }
.cmp { grid-column: 1 / -1; width: 100%; border-collapse: collapse; margin-top: var(--s-4); font-size: var(--fs-sm); table-layout: fixed; }
.cmp th, .cmp td { padding: 12px 0; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: top; }
.cmp th:nth-child(n+2), .cmp td { padding-left: var(--s-5); }
.cmp col:first-child { width: 0.8fr; }
.cmp thead th { font-weight: 600; border-bottom: 2px solid var(--ink); }
.cmp tbody th { font-weight: 500; color: var(--ink-2); }
.cmp td.tnum { font-family: var(--mono); font-size: 0.95rem; }

/* ---------- 10. Order ---------- */
.order-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-6); align-items: start; }
.configure, .checkout {
  padding: clamp(20px, 3vw, 36px); border-radius: var(--r-4);
  background: linear-gradient(180deg, color-mix(in oklab, var(--ground), white 25%), var(--ground));
  box-shadow: var(--shadow-dev);
}
.configure { display: grid; gap: var(--s-5); }
.opt { margin: 0; padding: 0; border: 0; min-width: 0; }
.opt legend { margin-bottom: var(--s-3); padding: 0; }
.opt-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.opt-swatches { display: flex; flex-wrap: wrap; gap: var(--s-4); }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice-body { display: grid; gap: 2px; padding: 14px 16px; min-height: 64px; border-radius: var(--r-3); background: var(--paper); box-shadow: 0 0 0 1.5px var(--rule) inset, var(--shadow-1); transition: box-shadow 0.2s, background-color 0.2s; }
.choice-name { font-weight: 600; }
.choice-sub { font-family: var(--mono); font-size: var(--fs-xs); color: var(--ink-2); letter-spacing: 0.02em; }
.choice input:checked + .choice-body { box-shadow: 0 0 0 2.5px var(--ink) inset, var(--shadow-1); background: #fff; }
.choice input:focus-visible + .choice-body { outline: 3px solid var(--signal); outline-offset: 3px; }
.opt-split { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-5); align-items: start; }
.opt-title { display: block; margin-bottom: var(--s-3); }
.stepper { display: inline-flex; align-items: center; gap: 6px; }
.stepper output { min-width: 40px; text-align: center; font-family: var(--mono); font-size: 1.5rem; }
.opt-note { margin-top: var(--s-2); font-size: var(--fs-xs); color: var(--ink-2); }
.summary { margin: 0; padding: var(--s-4) 0 0; border-top: 2px solid var(--ink); display: grid; gap: 6px; }
.summary > div { display: flex; justify-content: space-between; gap: var(--s-4); font-size: var(--fs-sm); }
.summary dt { color: var(--ink-2); }
.summary dd { margin: 0; font-family: var(--mono); font-size: 1rem; }
.summary .total { margin-top: var(--s-2); padding-top: var(--s-3); border-top: 1px dashed var(--rule); font-size: var(--fs-lg); font-weight: 600; }
.summary .total dt { color: var(--ink); }
.summary .total dd { font-size: 1.6rem; }

.form { display: grid; gap: var(--s-4); }
.form h3 { font-size: var(--fs-h3); margin-bottom: var(--s-2); }
.form-foot { font-size: var(--fs-xs); color: var(--ink-2); text-align: center; }
.err-terms { margin-top: -6px; }
[data-submit] { position: relative; margin-top: var(--s-2); }
.spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; animation: spin 0.8s linear infinite; }
[data-submit][aria-busy="true"] .spinner { display: block; }
[data-submit][aria-busy="true"] { cursor: progress; background: #8f3410; }
@keyframes spin { to { rotate: 360deg; } }

.done { outline: none; }
.ticket { position: relative; display: grid; gap: var(--s-3); justify-items: start; padding: var(--s-5) 0; }
.ticket h3 { font-size: clamp(2rem, 4vw, 2.8rem); }
.ticket-led { width: 14px; height: 14px; border-radius: 50%; background: #8bd46a; box-shadow: 0 0 10px 2px rgba(120, 220, 90, 0.7); }
.ticket-no { font-family: var(--mono); font-size: 1.5rem; letter-spacing: 0.1em; padding: 6px 12px; background: var(--lcd); color: var(--lcd-ink); border-radius: 4px; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3) inset; }
.done-sub { color: var(--ink-2); font-size: var(--fs-sm); }

/* ---------- 11. Shipping, returns, warranty ---------- */
.insert { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--s-7); align-items: start; }
.runs h3, .terms dt { font-size: var(--fs-lg); }
.run-list { list-style: none; margin: var(--s-4) 0 0; padding: 0; display: grid; }
.run-list li { display: grid; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.run-name { font-weight: 600; }
.run-meta { font-family: var(--mono); font-size: var(--fs-sm); color: var(--ink-2); }
.run-past .run-name::after { content: "Shipped"; margin-left: 10px; font-family: var(--mono); font-weight: 400; font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.bar { display: block; height: 8px; margin-top: 6px; border-radius: 4px; background: var(--ground-3); box-shadow: 0 1px 2px rgba(60, 46, 30, 0.25) inset; overflow: hidden; }
.bar::before { content: ""; display: block; height: 100%; width: var(--fill); background: var(--signal); border-radius: inherit; }
.terms { margin: 0; display: grid; }
.terms > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: var(--s-4); padding: var(--s-4) 0; border-bottom: 1px solid var(--rule); }
.terms > div:first-child { border-top: 2px solid var(--ink); }
.terms dt { font-weight: 600; font-size: 1.05rem; }
.terms dd { margin: 0; color: var(--ink-2); max-width: 62ch; }

/* ---------- 12. Questions, footer ---------- */
.faq-list { max-width: 860px; border-top: 2px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--rule); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); min-height: 64px; padding: var(--s-3) 0; cursor: pointer; font-weight: 600; font-size: 1.1rem; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .ico { transition: rotate 0.3s var(--ease); }
.faq-list details[open] summary .ico { rotate: 180deg; }
.faq-list summary:hover { color: var(--signal-ink); }
.faq-list details p { padding: 0 0 var(--s-5); color: var(--ink-2); max-width: 66ch; }

.foot { margin-top: var(--s-8); padding: var(--s-7) var(--gutter) var(--s-6); background: var(--grain), #34312d; color: #e9e3d6; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-5) var(--s-7); }
.foot-plate { display: grid; gap: 10px; }
.foot-plate p { color: #cfc7b7; font-size: var(--fs-sm); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 4px 6px; align-content: start; justify-content: end; }
.foot-nav a { padding: 10px 12px; color: #e9e3d6; font-size: var(--fs-sm); text-decoration: none; border-radius: 999px; }
.foot-nav a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.foot a:focus-visible { outline-color: var(--signal-hi); }
.foot-small { grid-column: 1 / -1; padding-top: var(--s-4); border-top: 1px solid #4b4741; font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: 0.02em; color: #bdb5a5; }

/* ---------- 13. Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Power-on: the step LEDs sweep once, left to right (script.js adds .booting) */
  .device.booting .step .led { animation: sweep 0.5s var(--ease) both; animation-delay: calc(var(--i, 0) * 34ms + 120ms); }
  @keyframes sweep { 0% { background: var(--led-off); } 30% { background: var(--signal-led); box-shadow: 0 0 8px 2px rgba(255, 110, 50, 0.7); } 100% { } }
  .hero-copy > * { animation: rise 0.9s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.06s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.12s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.18s; }
  @keyframes rise { from { translate: 0 14px; filter: blur(3px); } to { translate: 0 0; filter: blur(0); } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .spinner { animation: none; border-top-color: rgba(255, 255, 255, 0.35); border-right-color: #fff; }
}

/* ---------- 14. Narrow screens ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
}
@media (max-width: 900px) {
  .hero-copy, .sec-head { grid-template-columns: 1fr; }
  .hero h1 { grid-row: auto; }
  .anatomy-grid, .order-grid, .insert { grid-template-columns: 1fr; }
  .exploded { position: static; max-width: 640px; }
  .presets button { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .pr-desc, .pr-vals { grid-column: 2 / 3; }
  .pr-go { grid-row: 1 / span 3; grid-column: 3; }
  .compare { grid-template-columns: 1fr 1fr; gap: 0 var(--s-3); }
  .swatches { grid-column: 1 / -1; padding: 0 0 var(--s-5); }
  .ed-col[data-ed-col="standard"] { grid-column: 1; grid-row: 2; }
  .ed-col[data-ed-col="bench"] { grid-column: 2; grid-row: 2; }
  .cmp th:first-child { width: 32%; }
}
@media (max-width: 600px) {
  .top { padding: 8px var(--gutter); gap: 8px; }
  .logo small { display: none; }
  .mute-btn span { display: none; }
  .mute-btn { padding: 0 12px; }
  .hero { padding-top: var(--s-6); }
  .play-hint { text-align: left; }
  .sec { padding-top: var(--s-8); padding-bottom: var(--s-7); }
  .opt-split { grid-template-columns: 1fr; }
  .presets button { grid-template-columns: 36px minmax(0, 1fr); }
  .pr-go { grid-row: auto; grid-column: 2; justify-self: start; margin-top: var(--s-2); }
  .field-row { grid-template-columns: 1fr; }
  .terms > div { grid-template-columns: 1fr; gap: 4px; }
  .ed-col { padding: var(--s-3); }
  .ed-col h3 { flex-direction: column; gap: 0; }
  .cmp { font-size: var(--fs-xs); }
  .cmp th:nth-child(n+2), .cmp td { padding-left: var(--s-3); }
  .cmp td.tnum { font-size: 0.8rem; }
  .foot { grid-template-columns: 1fr; }
  .foot-nav { justify-content: start; margin-left: -12px; }
  .sheet th { width: 36%; font-size: var(--fs-xs); }
  .sheet td { font-size: var(--fs-sm); }
}

/* The instrument reflows on its own width (container queries) */
@container (max-width: 760px) {
  .dev-panel { grid-template-columns: minmax(0, 1fr); }
  .knobs { --size: clamp(54px, 15cqi, 84px); }
  .dev-seq { grid-template-columns: minmax(0, 1fr); }
  .transport { justify-content: space-between; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plate-model span { display: none; }
}
@container (max-width: 520px) {
  .dev-head, .dev-panel, .dev-seq, .dev-keys { margin-inline: -6px; }
  .dev-head { flex-wrap: wrap; }
  .grille { order: 3; flex-basis: 100%; max-width: none; height: 26px; margin-left: 0; }
  .head-right { margin-left: auto; gap: 8px; }
  .pwr { display: none; }
  .knobs { gap: 4px; }
  .knob-scale { display: none; }
  .knob-label { font-size: 11px; letter-spacing: 0.08em; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .dev-keys { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .pair-oct { flex-direction: row; justify-content: center; }
  /* One octave, C to B: 7 natural keys of at least 44px */
  .keybed { --cols: 14; gap: 8px 4px; }
  .key-top { display: none; }
  .key.sharp { margin: 0; }
  .key .cap { font-size: 11px; }
  .serial { display: none; }
  .ann-row .ann { font-size: 9px; letter-spacing: 0.02em; }
}
.preset-status { margin-top: var(--s-4); font-family: var(--mono); font-size: var(--fs-sm); color: var(--ink-2); }
.preset-status a { margin-left: 8px; }

/* Desktop hero: a compact row so the instrument face sits inside the first screen */
@media (min-width: 901px) {
  .hero { padding-top: clamp(20px, 2.4vw, 36px); }
  .hero-copy { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-3) var(--s-7); align-items: center; margin-bottom: var(--s-5); }
  .hero h1 { font-size: clamp(2.6rem, 1rem + 2.6vw, 3.6rem); max-width: 14ch; }
  .lede { font-size: var(--fs-md); }
  .hero-meta strong { font-size: 1.3rem; }
  .play-hint { max-width: 120ch; margin-bottom: var(--s-3); line-height: 1.7; }
  .hint-sound { display: inline; margin-left: 8px; }
}
