/* ==========================================================================
   ONDES-1 · "Hi-Fi Catalogue, 1974"
   Paper, mustard, burnt orange, olive, walnut. Fraunces (soft) / Archivo / Courier Prime.
   ========================================================================== */

@property --peel {
  syntax: '<length>';
  inherits: true;
  initial-value: 14px;
}

:root {
  --paper: #EEE2C6;
  --paper-2: #E5D3AC;
  --paper-3: #F6EDD8;
  --ivory: #F8F0DE;
  --ink: #2A1E16;
  --ink-2: #4A3A2E;
  --ink-soft: rgba(42, 30, 22, .62);
  --walnut: #5B3520;
  --walnut-d: #38210F;
  --mustard: #E2A52A;
  --mustard-l: #F1C766;
  --orange: #D2561F;
  --olive: #6E7232;
  --alu: #DCD6C9;
  --alu-2: #C9C2B3;
  --alu-3: #9F9788;

  --f-display: 'Fraunces', 'Cooper Black', Georgia, serif;
  --f-sans: 'Archivo', system-ui, -apple-system, sans-serif;
  --f-mono: 'Courier Prime', 'Courier New', ui-monospace, monospace;

  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --bounce: cubic-bezier(.5, 1.8, .5, .8);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --gutter: clamp(18px, 4.2vw, 64px);
  --line: 2px solid var(--ink);
  --radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
main, .footer { overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-variation-settings: 'wdth' 96;
  -webkit-font-smoothing: antialiased;
}

/* paper tooth: a fixed SVG-noise layer multiplied over everything */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  opacity: .5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35  0 0 0 0 .25  0 0 0 0 .14  0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
sup { font-size: .6em; }
em { font-style: italic; }

::selection { background: var(--mustard); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--paper);
  padding: 10px 14px; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 12px; }

.mono { font-family: var(--f-mono); }

.label, .eyebrow, .ctl__label, .group__title {
  font-family: var(--f-sans);
  font-variation-settings: 'wdth' 125;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
}

.eyebrow {
  font-size: .72rem;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .4em 1.6em;
}
.eyebrow span + span::before {
  content: '';
  display: inline-block;
  width: .55em; height: .55em;
  border-radius: 50%;
  background: var(--orange);
  margin-right: 1.6em;
  margin-left: -.8em;
  transform: translate(-50%, -.1em);
}

/* -------------------------------------------------------------- buttons */
.btn {
  --bg: var(--ink);
  --fg: var(--paper);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 52px;
  padding: .9em 1.6em;
  border: var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-sans);
  font-variation-settings: 'wdth' 115;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 5px 0 var(--ink);
  transform: translateY(0);
  transition: transform .35s var(--spring), box-shadow .35s var(--spring), background-color .2s;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 8px 0 var(--ink); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); transition-duration: .08s; }
.btn--ink { --bg: var(--ink); --fg: var(--paper); box-shadow: 0 5px 0 var(--orange); }
.btn--ink:hover { box-shadow: 0 8px 0 var(--orange); }
.btn--ink:active { box-shadow: 0 1px 0 var(--orange); }
.btn--orange { --bg: var(--orange); --fg: var(--ivory); }

/* -------------------------------------------------------------- loader */
.loader {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--paper);
  display: grid;
  place-items: center;
}
.loader__inner { display: grid; justify-items: center; gap: 14px; }
.loader__reel { width: 64px; height: 64px; animation: spin 1.1s linear infinite; }
.loader__reel circle { fill: none; stroke: var(--ink); stroke-width: 3; }
.loader__reel .loader__hub circle { fill: var(--mustard); }
.loader__reel path { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.loader__counter {
  display: flex; gap: 3px;
  font-family: var(--f-mono); font-weight: 700; font-size: 1.5rem;
}
.loader__counter span {
  display: inline-block;
  width: 1.15em; text-align: center;
  background: var(--ink); color: var(--paper);
  border-radius: 4px;
  padding: .05em 0;
}
.loader__cap {
  margin: 0;
  font-family: var(--f-mono); font-size: .8rem; letter-spacing: .08em;
  color: var(--ink-soft);
}
.loader__wipe {
  position: absolute; left: 0; right: 0; top: 100%;
  display: grid;
}
.loader__wipe i { display: block; height: 12px; }
.loader__wipe i:nth-child(1) { background: var(--mustard); }
.loader__wipe i:nth-child(2) { background: var(--orange); }
.loader__wipe i:nth-child(3) { background: var(--olive); }
.loader__wipe i:nth-child(4) { background: var(--walnut); }
.no-js .loader, .loader.is-gone { display: none; }

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

/* -------------------------------------------------------------- cursor */
.cursor { display: none; }
@media (pointer: fine) {
  .has-cursor .cursor {
    display: block;
    position: fixed; left: 0; top: 0;
    z-index: 160;
    pointer-events: none;
  }
  .cursor__dot {
    position: absolute;
    width: 12px; height: 12px;
    margin: -6px 0 0 -6px;
    border-radius: 50%;
    background: var(--orange);
    border: 2px solid var(--ink);
    transition: transform .35s var(--spring), background-color .2s;
  }
  .cursor__label {
    position: absolute;
    left: 14px; top: 10px;
    padding: 3px 9px 4px;
    border-radius: 999px;
    background: var(--ink); color: var(--paper);
    font-family: var(--f-mono); font-size: .72rem; font-weight: 700;
    letter-spacing: .06em; text-transform: lowercase;
    white-space: nowrap;
    transform: scale(0); transform-origin: 0 0;
    transition: transform .35s var(--spring);
  }
  .cursor.is-label .cursor__label { transform: scale(1); }
  .cursor.is-label .cursor__dot { transform: scale(.6); }
  .cursor.is-down .cursor__dot { transform: scale(1.6); background: var(--mustard); }
  .cursor.is-hidden { opacity: 0; }
}

/* -------------------------------------------------------------- nav */
.nav {
  position: fixed;
  z-index: 100;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px var(--gutter);
  transition: background-color .3s, box-shadow .3s, transform .5s var(--ease-out);
}
.nav.is-scrolled {
  background: rgba(238, 226, 198, .9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 0 var(--ink);
}
.nav.is-hidden, .is-loading .nav, .is-intro .nav { transform: translateY(-110%); }
.nav__brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none;
  font-family: var(--f-display);
  font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 48;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -.01em;
}
.nav__brand svg { width: 32px; height: 32px; transition: transform .6s var(--spring); }
.nav__brand svg circle { fill: var(--mustard); stroke: var(--ink); stroke-width: 2.5; }
.nav__brand svg path { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; }
.nav__brand:hover svg { transform: rotate(-200deg); }
.nav__links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  display: block;
  padding: 7px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-variation-settings: 'wdth' 125;
  font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .12em;
  transition: background-color .2s, color .2s;
}
.nav__links a:hover { background: var(--ink); color: var(--paper); }
.nav__cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 8px 8px 16px;
  border: var(--line); border-radius: 999px;
  background: var(--orange); color: var(--ivory);
  text-decoration: none;
  font-variation-settings: 'wdth' 125;
  font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .12em;
  box-shadow: 0 3px 0 var(--ink);
  transition: transform .35s var(--spring), box-shadow .35s var(--spring);
}
.nav__cta span {
  font-family: var(--f-mono); text-transform: none; letter-spacing: 0;
  background: var(--ivory); color: var(--ink);
  border-radius: 999px; padding: 3px 9px;
}
.nav__cta:hover { transform: translateY(-2px) rotate(-2deg); box-shadow: 0 5px 0 var(--ink); }

/* -------------------------------------------------------------- hero */
.hero {
  position: relative;
  padding-top: clamp(88px, 11vh, 120px);
  padding-bottom: clamp(24px, 3vw, 40px);
}
.hero__head {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(40px, 1fr) minmax(250px, 340px);
  grid-template-areas:
    'eyebrow eyebrow eyebrow'
    'title stripes aside';
  align-items: end;
  column-gap: clamp(16px, 2.4vw, 40px);
  padding: 0 var(--gutter);
  max-width: 1500px;
  margin: 0 auto;
}
.hero__eyebrow { grid-area: eyebrow; margin-bottom: clamp(4px, 1vw, 14px); }
.hero__title {
  grid-area: title;
  margin: 0;
  font-family: var(--f-display);
  font-weight: 900;
  font-variation-settings: 'SOFT' 100, 'WONK' 0, 'opsz' 144;
  font-size: clamp(4.6rem, 13.4vw, 14rem);
  line-height: .78;
  letter-spacing: -.035em;
  color: var(--walnut-d);
  padding-bottom: .06em;
}
.hero__word { display: inline-flex; }
.ch { display: inline-block; transform-origin: 50% 100%; }
.ch--dash { color: var(--orange); margin: 0 -.02em; }
.ch--one { color: var(--orange); }
.hero__stripes {
  grid-area: stripes;
  align-self: center;
  display: grid;
  gap: 5px;
  margin-top: 2vw;
}
.hero__stripes i {
  display: block;
  height: clamp(8px, 1.1vw, 15px);
  border-radius: 999px;
  transform-origin: 0 50%;
}
.hero__stripes i:nth-child(1) { background: var(--mustard); }
.hero__stripes i:nth-child(2) { background: var(--orange); }
.hero__stripes i:nth-child(3) { background: var(--olive); }
.hero__stripes i:nth-child(4) { background: var(--walnut); }
.hero__aside { grid-area: aside; padding-bottom: .9vw; }
.hero__lede {
  margin: 0 0 22px;
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.45;
  max-width: 34ch;
}

.hero__sticker-a { position: absolute; right: calc(var(--gutter) + 372px); top: 0; transform: rotate(9deg); }
.hero__sticker-b { position: absolute; left: calc(var(--gutter) + 6px); bottom: -78px; transform: rotate(-6deg); z-index: 5; }

/* -------------------------------------------------------------- stickers (peel) */
:where(.sticker) { position: relative; }
.sticker { overflow: hidden; }
.sticker {
  --w: 120px; --h: 120px;
  --peel: 14px;
  --bg: var(--mustard);
  --fg: var(--ink);
  width: var(--w);
  height: var(--h);
  filter: drop-shadow(2px 3px 0 rgba(42, 30, 22, .28));
  transition: --peel .55s var(--spring), filter .4s var(--ease-out), translate .5s var(--spring), scale .5s var(--spring);
  z-index: 4;
}
.sticker:hover { --peel: 46px; filter: drop-shadow(5px 9px 4px rgba(42, 30, 22, .25)); translate: 0 -4px; scale: 1.03; }
.sticker__face {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  background: var(--bg);
  color: var(--fg);
  border: 2.5px solid var(--ink);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--peel)), calc(100% - var(--peel)) 100%, 0 100%);
}
.sticker__face::after {
  content: '';
  position: absolute;
  inset: -2.5px;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(42,30,22,0) 40%, rgba(42,30,22,.18) 100%),
    var(--paper-3);
  border: 2.5px solid var(--ink);
  clip-path: polygon(calc(100% - var(--peel)) 100%, 100% calc(100% - var(--peel)), 100% 100%);
  transform-origin: 0 0;
  transform: translate(calc(var(--w) + var(--h) - var(--peel)), calc(var(--w) + var(--h) - var(--peel))) matrix(0, -1, -1, 0, 0, 0);
}
.sticker--round .sticker__face { border-radius: 50%; }
.sticker--tag { --bg: var(--orange); --fg: var(--ivory); }
.sticker--tag .sticker__face { border-radius: 12px; }
.sticker--oval { --bg: var(--olive); --fg: var(--ivory); }
.sticker--oval .sticker__face { border-radius: 50%; }
.sticker__big {
  font-family: var(--f-display); font-weight: 900;
  font-variation-settings: 'SOFT' 100, 'opsz' 144;
  font-size: 2.9rem; line-height: .85; letter-spacing: -.03em;
}
.sticker__mid {
  font-family: var(--f-display); font-weight: 800;
  font-variation-settings: 'SOFT' 100, 'opsz' 72;
  font-size: 1.45rem; line-height: 1;
}
.sticker__small {
  font-variation-settings: 'wdth' 125;
  font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  font-size: .58rem; line-height: 1.3;
  margin-top: 4px;
}
.sticker--tag .sticker__small, .sticker--oval .sticker__small { margin: 0 0 3px; }

/* -------------------------------------------------------------- instrument */
.instrument-wrap {
  position: relative;
  padding: clamp(36px, 5vw, 64px) var(--gutter) 0;
  max-width: 1500px;
  margin: 0 auto;
  scroll-margin-top: 70px;
}
.synth {
  display: grid;
  grid-template-columns: clamp(16px, 3.2vw, 50px) minmax(0, 1fr) clamp(16px, 3.2vw, 50px);
  border: 2.5px solid var(--ink);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 0 -2px var(--walnut-d), 0 34px 60px -30px rgba(56, 33, 15, .55);
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.synth__cheek {
  background-color: var(--walnut);
  background-image:
    linear-gradient(90deg, rgba(255,220,180,.16), rgba(0,0,0,0) 30%, rgba(0,0,0,.22)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='700'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.09 .0045' numOctaves='3' seed='11'/%3E%3CfeColorMatrix values='0 0 0 0 .16  0 0 0 0 .08  0 0 0 0 .03  2.2 0 0 0 -.95'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23w)'/%3E%3C/svg%3E");
  background-size: 100% 100%, 90px 700px;
}
.synth__cheek--l { border-right: 2.5px solid var(--ink); }
.synth__cheek--r { border-left: 2.5px solid var(--ink); transform: scaleX(-1); }
.synth__body {
  min-width: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.22) 0 1px, rgba(0,0,0,0) 1px 3px, rgba(120,110,95,.06) 3px 4px),
    linear-gradient(180deg, #E4DED2 0%, #D5CEC0 100%);
}

.synth__top {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 34px);
  padding: 16px clamp(14px, 2vw, 26px);
  border-bottom: 2.5px solid var(--ink);
}
.plate { flex: 1; min-width: 0; display: grid; gap: 2px; }
.plate__name {
  font-family: var(--f-display); font-weight: 900;
  font-variation-settings: 'SOFT' 100, 'opsz' 96;
  font-size: clamp(1.6rem, 2.6vw, 2.4rem); line-height: .9; letter-spacing: -.02em;
}
.plate__sub, .plate__serial {
  font-variation-settings: 'wdth' 125; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em; font-size: .56rem;
}
.plate__serial { font-family: var(--f-mono); text-transform: none; letter-spacing: .02em; font-size: .7rem; font-weight: 400; color: var(--ink-soft); }

.label { font-size: .56rem; }

.voices { display: grid; justify-items: center; gap: 7px; }
.voices__leds { display: flex; gap: 7px; }
.voices__leds i {
  width: 12px; height: 12px; border-radius: 50%;
  background: #8E8576;
  border: 2px solid var(--ink);
  transition: background-color .25s, box-shadow .25s;
}
.voices__leds i.is-on { background: var(--orange); box-shadow: 0 0 10px 2px rgba(240, 120, 40, .75); transition-duration: 0s; }
.voices__note {
  font-family: var(--f-mono); font-weight: 700; font-size: .78rem;
  min-width: 4.2ch; text-align: center;
  background: var(--ink); color: var(--mustard-l);
  border-radius: 4px; padding: 1px 6px;
}

.meters { display: flex; gap: 10px; }
.vu {
  width: clamp(112px, 11vw, 158px);
  aspect-ratio: 160 / 104;
  border: 2.5px solid var(--ink);
  border-radius: 10px;
  overflow: hidden;
  background: var(--ink);
}
.vu svg { width: 100%; height: 100%; }
.vu .vu-face { fill: #E9DFC7; transition: fill .6s; }
.is-powered .vu .vu-face { fill: #F7D98E; }
.vu .vu-glow { fill: url(#vuGlow); opacity: 0; transition: opacity .6s; }
.is-powered .vu .vu-glow { opacity: 1; }
.vu .vu-arc { fill: none; stroke: var(--ink); stroke-width: 1.4; }
.vu .vu-red { fill: none; stroke: var(--orange); stroke-width: 4.5; }
.vu .vu-tick { stroke: var(--ink); stroke-width: 1.4; }
.vu .vu-tick--red { stroke: var(--orange); }
.vu text { font-family: var(--f-mono); font-size: 8.5px; fill: var(--ink); }
.vu .vu-big { font-family: var(--f-display); font-weight: 900; font-size: 17px; font-variation-settings: 'SOFT' 100; }
.vu .vu-needle { stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; }
.vu .vu-cover { fill: var(--ink); }
.vu .vu-ch { fill: var(--paper); font-family: var(--f-sans); font-weight: 700; font-size: 8px; letter-spacing: .1em; }

.power { display: grid; justify-items: center; gap: 6px; }
.toggle {
  position: relative;
  width: 46px; height: 74px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  touch-action: manipulation;
}
.toggle__plate {
  position: absolute; inset: 0;
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  background: var(--alu-2);
  display: flex; flex-direction: column; justify-content: space-between; align-items: center;
  padding: 3px 0;
  font-family: var(--f-mono); font-weight: 700; font-size: .55rem; text-transform: uppercase;
}
.toggle__nut {
  position: absolute; left: 50%; top: 50%;
  width: 24px; height: 24px; margin: -12px 0 0 -12px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #F2EEE6, #B4AC9D 70%);
  border: 2.5px solid var(--ink);
  z-index: 2;
}
.toggle__lever {
  position: absolute; left: 50%; bottom: 50%;
  width: 13px; height: 21px; margin-left: -6.5px;
  border-radius: 7px 7px 4px 4px;
  background: linear-gradient(90deg, #A8A091, #F4F0E8 45%, #B9B1A3);
  border: 2.5px solid var(--ink);
  transform-origin: 50% 100%;
  transform: scaleY(-1);
  transition: transform .5s var(--bounce);
  z-index: 1;
}
.toggle[aria-checked='true'] .toggle__lever { transform: scaleY(1); }
.toggle::after {
  content: '';
  position: absolute; inset: -7px;
  border-radius: 16px;
  border: 2.5px solid var(--orange);
  opacity: 0;
  pointer-events: none;
}
.synth:not(.was-powered) .toggle::after { animation: invite 2.4s var(--ease-out) 3.2s infinite; }
@keyframes invite {
  0% { opacity: .9; transform: scale(.92); }
  70%, 100% { opacity: 0; transform: scale(1.25); }
}
.toggle:active .toggle__lever { transition-duration: .25s; }
.led {
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid var(--ink);
  background: #7a3b22;
  transition: background-color .3s, box-shadow .3s;
}
.is-powered .led--power { background: #FF6A2B; box-shadow: 0 0 12px 3px rgba(255, 110, 40, .7); }

/* --- control groups */
.synth__controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px clamp(12px, 2vw, 28px);
  padding: 16px clamp(14px, 2vw, 26px) 14px;
}
.group { display: grid; gap: 10px; align-content: start; }
.group__title {
  justify-self: start;
  margin: 0;
  padding: 4px 11px 4px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--band, var(--ink));
  color: var(--band-fg, var(--ivory));
  font-size: .55rem;
  white-space: nowrap;
}
.group--osc { --band: var(--mustard); --band-fg: var(--ink); }
.group--filter { --band: var(--orange); }
.group--env { --band: var(--olive); }
.group--ribbon { --band: var(--walnut); }
.group--out { --band: var(--ink); }
.group__row { display: flex; gap: clamp(8px, 1.2vw, 16px); align-items: flex-start; }

.ctl { display: grid; justify-items: center; gap: 2px; position: relative; }
.ctl__label { font-size: .54rem; margin-top: 2px; }
.ctl__val {
  position: absolute;
  top: -8px; left: 50%;
  transform: translate(-50%, 4px) scale(.8);
  opacity: 0;
  font-family: var(--f-mono); font-weight: 700; font-size: .7rem;
  white-space: nowrap;
  background: var(--ink); color: var(--mustard-l);
  padding: 1px 7px; border-radius: 4px;
  pointer-events: none;
  transition: opacity .2s, transform .35s var(--spring);
  z-index: 3;
}
.ctl.is-active .ctl__val { opacity: 1; transform: translate(-50%, -6px) scale(1); }

.knob, .selector {
  --size: clamp(52px, 5.2vw, 66px);
  width: var(--size); height: var(--size);
  cursor: grab;
  touch-action: none;
  border-radius: 50%;
}
.knob--lg { --size: clamp(64px, 6.6vw, 86px); }
.knob:active, .selector:active { cursor: grabbing; }
.knob:focus-visible, .selector:focus-visible { border-radius: 50%; outline-offset: 4px; }
.knob svg, .selector svg { width: 100%; height: 100%; overflow: visible; }
.k-tick { stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.k-tick--major { stroke-width: 3; }
.k-skirt { fill: var(--ink); }
.k-knurl { fill: none; stroke: #6c5b4c; stroke-width: 3; stroke-dasharray: 2 3.2; }
.k-cap { stroke: var(--ink); stroke-width: 2.5; }
.k-cap--cream { fill: #F4EAD3; }
.k-cap--orange { fill: var(--orange); }
.k-cap--olive { fill: var(--olive); }
.k-cap--mustard { fill: var(--mustard); }
.k-cap--walnut { fill: var(--walnut); }
.k-shine { fill: rgba(255,255,255,.22); }
.k-ind { fill: var(--ink); }
.k-cap--orange ~ .k-ind, .k-cap--olive ~ .k-ind, .k-cap--walnut ~ .k-ind { fill: var(--ivory); }
.k-lbl { font-family: var(--f-mono); font-weight: 700; font-size: 10px; fill: var(--ink); }
.k-wave { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.k-wave.is-sel { stroke: var(--orange); stroke-width: 2.6; }

.slide3 {
  display: flex; align-items: center; gap: 6px;
  height: clamp(52px, 5.2vw, 66px);
  cursor: pointer; touch-action: none;
  border-radius: 8px;
}
.slide3__ticks {
  display: grid; height: 100%; align-content: space-between;
  font-family: var(--f-mono); font-weight: 700; font-size: .62rem; line-height: 1;
  padding: 4px 0;
}
.slide3__ticks b { font-weight: 700; }
.slide3__track {
  position: relative;
  width: 18px; height: 100%;
  border: 2.5px solid var(--ink);
  border-radius: 6px;
  background: var(--ink-2);
}
.slide3__thumb {
  position: absolute; left: -1px; right: -1px;
  height: 16px;
  top: calc((1 - (var(--oct, 0) + 1) / 2) * (100% - 16px));
  border-radius: 4px;
  background: linear-gradient(180deg, #F4F0E8, #B8B0A2);
  border: 2px solid var(--ink);
  transition: top .45s var(--bounce);
}

/* --- ribbon */
.ribbon {
  position: relative;
  margin: 2px clamp(14px, 2vw, 26px) 14px;
  height: 50px;
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.12)),
    var(--ink-2);
  cursor: ew-resize;
  touch-action: none;
  overflow: hidden;
}
.ribbon__scale { position: absolute; inset: 0; }
.ribbon__scale i {
  position: absolute; bottom: 0;
  width: 2px; height: 9px;
  background: rgba(238, 226, 198, .45);
  transform: translateX(-1px);
}
.ribbon__scale i.is-c { height: 20px; background: var(--mustard); }
.ribbon__scale b {
  position: absolute; top: 5px;
  font-family: var(--f-mono); font-size: .62rem; color: var(--mustard-l);
  transform: translateX(4px);
}
.ribbon__wire {
  position: absolute; left: 0; right: 0; top: 50%;
  height: 2px; margin-top: -1px;
  background: linear-gradient(90deg, #B9B1A3, #F4F0E8, #B9B1A3);
}
.ribbon__ring {
  position: absolute; top: 50%; left: 50%;
  width: 30px; height: 30px; margin: -15px 0 0 -15px;
  border-radius: 50%;
  border: 6px solid #C99B3D;
  box-shadow: 0 0 0 2px var(--ink), inset 0 0 0 2px var(--ink);
  transition: transform .35s var(--spring), border-color .2s;
  will-change: left;
}
.ribbon__ring span { position: absolute; inset: -14px; border-radius: 50%; }
.ribbon.is-on .ribbon__ring { transform: scale(1.18); border-color: var(--mustard-l); box-shadow: 0 0 0 2px var(--ink), inset 0 0 0 2px var(--ink), 0 0 22px 6px rgba(240, 150, 40, .6); }
.ribbon__label {
  position: absolute; right: 12px; top: 6px;
  font-family: var(--f-mono); font-size: .66rem; color: rgba(238, 226, 198, .6);
  pointer-events: none;
}

/* --- keys */
.keys {
  position: relative;
  display: flex;
  height: clamp(118px, 13vw, 176px);
  margin: 0 clamp(14px, 2vw, 26px) clamp(14px, 2vw, 22px);
  touch-action: none;
  cursor: pointer;
}
.key {
  position: relative;
  touch-action: none;
}
.key--w {
  flex: 1 1 0;
  margin-right: -2.5px;
  background: var(--ivory);
  border: 2.5px solid var(--ink);
  border-radius: 0 0 9px 9px;
  box-shadow: inset 0 -7px 0 #E4D7BB;
  transition: background-color .25s, box-shadow .25s, transform .25s var(--spring);
}
.key--w:first-child { border-top-left-radius: 6px; }
.key--b {
  position: absolute; top: 0;
  height: 61%;
  z-index: 2;
  background: var(--walnut-d);
  border: 2.5px solid var(--ink);
  border-radius: 0 0 7px 7px;
  box-shadow: inset 0 -8px 0 #5A3A24, inset 2px 0 0 rgba(255,255,255,.08);
  transition: background-color .25s, box-shadow .25s, transform .25s var(--spring);
}
.key.is-down { transition-duration: 0s; }
.key--w.is-down { background: var(--mustard-l); box-shadow: inset 0 -2px 0 #D9A23A, inset 0 4px 0 var(--orange); transform: translateY(2px); }
.key--b.is-down { background: var(--orange); box-shadow: inset 0 -3px 0 #8f3511; transform: translateY(2px); }
.key__hint {
  position: absolute; left: 50%; bottom: 12px;
  transform: translateX(-50%);
  font-family: var(--f-mono); font-weight: 700; font-size: .7rem;
  color: var(--ink-soft);
  pointer-events: none;
}
.key--b .key__hint { bottom: 10px; color: rgba(238, 226, 198, .75); font-size: .62rem; }
.key__c {
  position: absolute; left: 50%; top: 10px; transform: translateX(-50%);
  font-family: var(--f-mono); font-size: .58rem; color: var(--alu-3); pointer-events: none;
}

.play-hint {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px 28px;
  max-width: 1320px; margin: 26px auto 0;
  font-size: .9rem;
}
.play-hint__lead { margin: 0; }
.play-hint__touch { display: none; }
@media (hover: none) and (pointer: coarse) {
  .play-hint__keys { display: none; }
  .play-hint__touch { display: block; margin: 0; font-family: var(--f-mono); font-size: .82rem; }
}
.play-hint__keys {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  list-style: none; margin: 0; padding: 0;
  font-family: var(--f-mono); font-size: .8rem;
}
kbd {
  display: inline-block;
  min-width: 1.9em;
  padding: 1px 5px 2px;
  margin: 0 1px;
  text-align: center;
  font-family: var(--f-mono); font-weight: 700; font-size: .78rem;
  background: var(--ivory);
  border: 2px solid var(--ink);
  border-radius: 6px;
  box-shadow: 0 2px 0 var(--ink);
}

/* -------------------------------------------------------------- tape label */
.tape-label {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  width: min(700px, 100%);
  padding: 34px 22px 18px;
  background-color: var(--ivory);
  background-image:
    linear-gradient(var(--mustard) 0 5px, var(--orange) 5px 10px, var(--olive) 10px 15px, var(--walnut) 15px 20px, transparent 20px),
    repeating-linear-gradient(180deg, transparent 0 25px, rgba(110, 114, 50, .28) 25px 26px);
  background-size: 100% 20px, 100% 100%;
  background-position: 0 9px, 0 30px;
  background-repeat: no-repeat, no-repeat;
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  box-shadow: 6px 7px 0 var(--ink);
  transform: rotate(-1.3deg);
  margin: 0 0 clamp(48px, 7vw, 96px);
}
.tape-label--b { transform: rotate(1.1deg); margin-left: auto; }
.tape-label__tape {
  position: absolute;
  top: -16px; left: 50%;
  width: 118px; height: 32px;
  margin-left: -59px;
  background: rgba(233, 214, 160, .82);
  transform: rotate(-3deg);
  clip-path: polygon(0 8%, 6% 0, 11% 9%, 17% 1%, 24% 8%, 31% 0, 38% 7%, 45% 1%, 52% 9%, 60% 0, 67% 8%, 74% 1%, 81% 9%, 88% 0, 94% 8%, 100% 2%, 100% 92%, 94% 100%, 88% 91%, 81% 100%, 74% 92%, 66% 100%, 59% 91%, 52% 100%, 44% 92%, 37% 100%, 30% 91%, 23% 100%, 16% 92%, 9% 100%, 4% 91%, 0 98%);
  mix-blend-mode: multiply;
}
.tape-label__side {
  display: grid; place-items: center;
  width: clamp(54px, 7vw, 76px); aspect-ratio: 1;
  border: 2.5px solid var(--ink);
  border-radius: 10px;
  background: var(--ink); color: var(--mustard);
  font-family: var(--f-display); font-weight: 900;
  font-variation-settings: 'SOFT' 100, 'opsz' 144;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1;
}
.tape-label__body { display: grid; gap: 4px; min-width: 0; }
.tape-label__meta { font-family: var(--f-mono); font-size: .8rem; color: var(--ink-soft); }
.tape-label__title {
  margin: 0;
  font-family: var(--f-display); font-weight: 800;
  font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 144;
  font-size: clamp(2.3rem, 6vw, 4.6rem);
  line-height: .92; letter-spacing: -.025em;
}
.tape-label__nr {
  align-self: start;
  font-family: var(--f-mono); font-weight: 700; font-size: .66rem; line-height: 1.25;
  text-align: center; text-transform: uppercase;
  border: 2px solid var(--ink); border-radius: 6px; padding: 4px 6px;
}

/* -------------------------------------------------------------- story */
.story, .specs {
  position: relative;
  padding: clamp(72px, 9vw, 130px) var(--gutter) clamp(32px, 4vw, 56px);
  max-width: 1500px;
  margin: 0 auto;
}
.story__grid {
  display: grid;
  grid-template-columns: minmax(260px, 5fr) 7fr;
  gap: clamp(32px, 6vw, 110px);
  align-items: start;
}
.story__cassette { position: sticky; top: 110px; }
.cassette { width: 100%; height: auto; overflow: visible; }
.cs-body { fill: var(--walnut-d); stroke: var(--ink); stroke-width: 3; }
.cs-screw { fill: var(--alu-2); stroke: var(--ink); stroke-width: 2; }
.cs-label { fill: var(--ivory); stroke: var(--ink); stroke-width: 2.5; }
.cs-s1 { fill: var(--mustard); } .cs-s2 { fill: var(--orange); } .cs-s3 { fill: var(--olive); } .cs-s4 { fill: var(--walnut); }
.cs-small { font-family: var(--f-mono); font-weight: 700; font-size: 10px; fill: var(--ink); letter-spacing: .06em; }
.cs-sidebox { fill: var(--ink); }
.cs-side { font-family: var(--f-display); font-weight: 900; font-size: 24px; fill: var(--mustard); }
.cs-title { font-family: var(--f-display); font-weight: 800; font-size: 21px; fill: var(--ink); font-variation-settings: 'SOFT' 100, 'opsz' 48; }
.cs-window { fill: #1A110A; stroke: var(--ink); stroke-width: 2.5; }
.cs-pack { fill: #6A4127; }
.cs-hub { fill: var(--paper-3); stroke: var(--ink); stroke-width: 2; }
.cs-teeth { stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; }
.cs-foot { fill: #2E1B0E; stroke: var(--ink); stroke-width: 2.5; }
.cs-hole { fill: var(--paper); stroke: var(--ink); stroke-width: 2; }
.story__counter { margin: 18px 0 0; font-size: .85rem; color: var(--ink-soft); }
.story__now { color: var(--ink); font-weight: 700; }
.story__count {
  display: inline-block;
  background: var(--ink); color: var(--paper);
  padding: 1px 7px; border-radius: 4px;
  font-weight: 700; letter-spacing: .12em;
}

.story__intro {
  margin: 0 0 1em;
  font-family: var(--f-display);
  font-weight: 400;
  font-variation-settings: 'SOFT' 100, 'WONK' 0, 'opsz' 72;
  font-size: clamp(1.45rem, 2.5vw, 2.25rem);
  line-height: 1.22;
  letter-spacing: -.01em;
}
.story__intro em { font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 72; font-style: normal; color: var(--orange); font-weight: 600; }
.story__body { margin: 0 0 clamp(40px, 5vw, 64px); max-width: 56ch; font-size: 1.1rem; }

.tracks { list-style: none; margin: 0 0 clamp(48px, 6vw, 80px); padding: 0; border-bottom: 2px dashed var(--ink); }
.track {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 18px;
  padding: 22px 0 22px;
  border-top: 2px dashed var(--ink);
  isolation: isolate;
}
.track::before {
  content: '';
  position: absolute; inset: 0 -14px;
  background: rgba(226, 165, 42, .22);
  border-radius: 10px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .55s var(--ease-out);
  z-index: -1;
}
.track:hover::before { transform: scaleX(1); }
.track__no {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 2.5px solid var(--ink);
  background: var(--paper-3);
  font-family: var(--f-mono); font-weight: 700; font-size: .95rem;
  transition: transform .5s var(--spring), background-color .2s, color .2s;
}
.track:hover .track__no { transform: rotate(-14deg) scale(1.08); background: var(--orange); color: var(--ivory); }
.track__text h3 {
  margin: 4px 0 6px;
  font-family: var(--f-display); font-weight: 800;
  font-variation-settings: 'SOFT' 100, 'opsz' 48;
  font-size: clamp(1.3rem, 1.9vw, 1.65rem); line-height: 1.05;
}
.track__text p { margin: 0; max-width: 54ch; }
.track__len { font-family: var(--f-mono); font-size: .8rem; color: var(--ink-soft); padding-top: 8px; white-space: nowrap; }

.personnel {
  padding: clamp(22px, 3vw, 34px);
  border: 2.5px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper-3);
}
.personnel__title {
  margin: 0 0 18px;
  font-variation-settings: 'wdth' 125; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em; font-size: .72rem;
}
.personnel__list { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 32px; margin: 0; }
.personnel__list dt {
  font-family: var(--f-display); font-weight: 700;
  font-variation-settings: 'SOFT' 100, 'opsz' 36;
  font-size: 1.25rem; line-height: 1.1;
}
.personnel__list dd { margin: 4px 0 0; font-size: .95rem; color: var(--ink-2); }
.personnel__rec { margin: 24px 0 0; padding-top: 16px; border-top: 2px dotted var(--ink); font-size: .85rem; }

/* -------------------------------------------------------------- specs */
.specs__sticker { position: absolute; left: calc(var(--gutter) + 30px); top: clamp(70px, 8vw, 120px); transform: rotate(-8deg); }
.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(40px, 5vw, 72px) clamp(24px, 4vw, 56px);
}
.feature { min-width: 0; }
.feature__plate {
  --plate: var(--mustard);
  position: relative;
  aspect-ratio: 16 / 9;
  border: 2.5px solid var(--ink);
  border-radius: var(--radius);
  background: var(--plate);
  overflow: hidden;
  margin-bottom: 22px;
  display: grid;
  place-items: center;
}
.feature--filter .feature__plate { --plate: var(--orange); }
.feature--ribbon .feature__plate { --plate: var(--olive); }
.feature--build .feature__plate { --plate: var(--walnut); }
.feature__plate::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(42,30,22,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42,30,22,.12) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
.feature__tag {
  position: absolute; left: 14px; top: 14px; z-index: 2;
  padding: 3px 10px;
  border: 2px solid var(--ink); border-radius: 999px;
  background: var(--ivory);
  font-variation-settings: 'wdth' 125; font-weight: 700;
  font-size: .6rem; letter-spacing: .14em;
}
.feature__readout {
  position: absolute; right: 14px; bottom: 14px; z-index: 2;
  padding: 2px 9px;
  border-radius: 4px;
  background: var(--ink); color: var(--mustard-l);
  font-size: .78rem; font-weight: 700;
}
.osc-canvas, .filter-plot, .ribbon-illo, .build-illo { position: relative; width: 88%; height: auto; }
.feature__title {
  margin: 0 0 10px;
  font-family: var(--f-display); font-weight: 800;
  font-variation-settings: 'SOFT' 100, 'opsz' 72;
  font-size: clamp(1.5rem, 2.3vw, 2.05rem); line-height: 1.04; letter-spacing: -.015em;
  max-width: 22ch;
}
.feature p { margin: 0 0 12px; max-width: 58ch; }
.feature__note { font-size: .82rem; color: var(--ink-soft); }
.feature__note::before { content: '↳ '; color: var(--orange); }

.filter-plot__grid line { stroke: rgba(248, 240, 222, .35); stroke-width: 1; }
.filter-plot__grid text { fill: rgba(248, 240, 222, .85); font-family: var(--f-mono); font-size: 9px; }
.filter-plot__fill { fill: rgba(248, 240, 222, .22); }
.filter-plot__line { fill: none; stroke: var(--ivory); stroke-width: 3; stroke-linejoin: round; }
.filter-plot__dot { fill: var(--ink); stroke: var(--ivory); stroke-width: 2; }

.ri-strip { fill: var(--ink-2); stroke: var(--ink); stroke-width: 2.5; }
.ri-ticks line { stroke: rgba(248,240,222,.55); stroke-width: 1.5; }
.ri-wire { stroke: var(--ivory); stroke-width: 2; }
.ri-ring-o { fill: none; stroke: var(--mustard); stroke-width: 5; }
.ri-ring-o { paint-order: stroke; }
.ri-finger-o { stroke: var(--ink); stroke-width: 19; stroke-linecap: round; }
.ri-finger { stroke: #E9C9A0; stroke-width: 14; stroke-linecap: round; }
.ri-txt { font-family: var(--f-mono); font-size: 11px; fill: var(--ivory); font-weight: 700; }
.ri-ring { animation: ringglide 5.5s cubic-bezier(.65, 0, .35, 1) infinite alternate; }
@keyframes ringglide { from { transform: translateX(40px); } to { transform: translateX(260px); } }
.ribbon-illo.is-live .ri-ring { animation: none; transition: transform .12s linear; }

.bl { transition: transform .7s var(--spring); }
.bl-alu { fill: #E6E1D6; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.bl-alu-s { fill: #BDB5A6; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.bl-alu-d { fill: #A0988A; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.bl-steel { fill: #8C877F; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.bl-steel-s { fill: #6A655E; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.bl-steel-d { fill: #57534D; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.bl-wood { fill: #A2673C; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.bl-wood-t { fill: #C1844F; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.bl-knob { fill: var(--orange); stroke: var(--ink); stroke-width: 2; }
.bl-callouts line { stroke: var(--ivory); stroke-width: 1.5; stroke-dasharray: 3 3; }
.bl-txt { font-family: var(--f-mono); font-size: 11px; font-weight: 700; fill: var(--ivory); }
.bl-callouts { opacity: 0; transition: opacity .4s; }
.feature--build .feature__plate:hover .bl--panel, .feature--build.is-exploded .bl--panel { transform: translateY(-22px); }
.feature--build .feature__plate:hover .bl--chassis, .feature--build.is-exploded .bl--chassis { transform: translateY(16px); }
.feature--build .feature__plate:hover .bl--cheek, .feature--build.is-exploded .bl--cheek { transform: translate(-16px, -2px); }
.feature--build .feature__plate:hover .bl-callouts, .feature--build.is-exploded .bl-callouts { opacity: 1; }

.sheet {
  margin-top: clamp(64px, 8vw, 110px);
  padding: clamp(22px, 3.4vw, 44px);
  border: 2.5px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper-3);
  box-shadow: 8px 9px 0 var(--ink);
}
.sheet__title {
  margin: 0 0 clamp(18px, 2.4vw, 30px);
  font-family: var(--f-display); font-weight: 800;
  font-variation-settings: 'SOFT' 100, 'opsz' 72;
  font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1;
}
.sheet__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px clamp(24px, 3vw, 48px); }
.sheet__head {
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 2.5px solid var(--ink);
  font-variation-settings: 'wdth' 125; font-weight: 700;
  font-size: .66rem; text-transform: uppercase; letter-spacing: .14em;
}
.sheet dl { margin: 0; }
.row {
  display: flex; align-items: baseline; gap: 8px;
  padding: 5px 0;
  font-family: var(--f-mono); font-size: .86rem; line-height: 1.35;
}
.row::before {
  content: '';
  order: 1;
  flex: 1 1 12px;
  min-width: 12px;
  border-bottom: 2px dotted rgba(42, 30, 22, .45);
  transform: translateY(-4px);
}
.row dt { order: 0; font-weight: 700; white-space: nowrap; }
.row dd { order: 2; margin: 0; text-align: right; }

/* -------------------------------------------------------------- order */
.order {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  gap: clamp(36px, 6vw, 100px);
  align-items: center;
  padding: clamp(80px, 10vw, 150px) var(--gutter);
  margin-top: clamp(48px, 6vw, 90px);
  background: var(--mustard);
  border-top: 2.5px solid var(--ink);
  border-bottom: 2.5px solid var(--ink);
}
.order::before {
  content: '';
  position: absolute; left: 0; right: 0; top: 10px; height: 20px;
  background: linear-gradient(var(--orange) 0 5px, var(--olive) 5px 10px, var(--walnut) 10px 15px, transparent 15px);
}
.order__intro { max-width: 640px; justify-self: end; width: 100%; }
.order__title {
  margin: 14px 0 22px;
  font-family: var(--f-display); font-weight: 900;
  font-variation-settings: 'SOFT' 100, 'opsz' 144;
  font-size: clamp(4rem, 10vw, 9rem);
  line-height: .85; letter-spacing: -.04em;
}
.order__title span {
  display: block;
  margin-top: 12px;
  font-weight: 500;
  font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 48;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  letter-spacing: -.01em; line-height: 1.1;
}
.order__lede { margin: 0 0 26px; max-width: 46ch; font-size: 1.1rem; }
.order__box { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-family: var(--f-mono); }
.order__box li { display: flex; gap: 10px; align-items: baseline; }
.order__box li::before { content: '✓'; font-weight: 700; color: var(--walnut-d); }

.coupon-wrap { position: relative; }
.coupon {
  position: relative;
  padding: clamp(26px, 3.5vw, 40px);
  background: var(--paper-3);
  border-radius: 6px;
  outline: 2.5px dashed var(--ink);
  outline-offset: 10px;
  box-shadow: 0 0 0 10px var(--paper-3), 0 0 0 12.5px transparent;
  transform: rotate(1.2deg);
  transition: transform .6s var(--spring);
}
.coupon:hover, .coupon:focus-within { transform: rotate(0deg); }
.coupon__scissors {
  position: absolute; left: -2px; top: -26px;
  width: 34px; height: 22px;
  transition: left 1.6s var(--ease-out);
}
.coupon__scissors circle { fill: var(--paper-3); stroke: var(--ink); stroke-width: 2.5; }
.coupon__scissors path { stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; }
.coupon:hover .coupon__scissors, .coupon:focus-within .coupon__scissors { left: calc(100% - 30px); }
.coupon__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 20px; }
.coupon__head h3 {
  margin: 0;
  font-family: var(--f-display); font-weight: 800;
  font-variation-settings: 'SOFT' 100, 'opsz' 72;
  font-size: 1.9rem; line-height: 1;
}
.coupon__head .mono { font-size: .76rem; color: var(--ink-soft); }
.coupon__choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border: 0; padding: 0; margin: 0 0 20px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: grid; gap: 2px;
  height: 100%;
  padding: 12px 14px 12px 40px;
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  background: var(--ivory);
  transition: background-color .2s, color .2s, transform .35s var(--spring);
}
.choice span::before {
  content: '';
  position: absolute; left: 14px; top: 16px;
  width: 16px; height: 16px; border-radius: 50%;
  border: 2.5px solid currentColor;
  background: transparent;
  box-shadow: inset 0 0 0 3px var(--ivory);
  transition: background-color .2s, box-shadow .2s;
}
.choice b { font-size: .98rem; }
.choice small { font-family: var(--f-mono); font-size: .74rem; opacity: .8; }
.choice input:checked + span { background: var(--ink); color: var(--paper); }
.choice input:checked + span::before { background: var(--mustard); box-shadow: inset 0 0 0 3px var(--ink); border-color: var(--mustard); }
.choice:hover span { transform: translateY(-2px); }
.choice input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 3px; }

.field { display: grid; gap: 2px; margin-bottom: 14px; }
.field label {
  font-variation-settings: 'wdth' 125; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em; font-size: .62rem;
}
.field input, .field select {
  width: 100%;
  min-height: 44px;
  padding: 8px 4px 6px;
  border: 0;
  border-bottom: 2.5px solid var(--ink);
  border-radius: 0;
  background: transparent;
  font-family: var(--f-mono); font-size: 1.12rem; color: var(--ink);
  transition: background-color .2s;
}
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 14px) 50%, calc(100% - 8px) 50%;
  background-size: 6px 6px; background-repeat: no-repeat;
  cursor: pointer;
}
.field input:focus, .field select:focus { outline: none; background-color: rgba(226, 165, 42, .25); }
.field input:focus-visible, .field select:focus-visible { outline: none; box-shadow: 0 3px 0 var(--orange); }
.field.is-invalid input { border-bottom-color: var(--orange); }
.field__err { margin: 4px 0 0; min-height: 0; font-family: var(--f-mono); font-size: .8rem; color: #A63A0E; font-weight: 700; }
.field__err:empty { display: none; }
.coupon__submit { width: 100%; margin-top: 10px; }
.coupon__fine { margin: 14px 0 0; font-size: .76rem; color: var(--ink-soft); text-align: center; }

.coupon.is-done > :not(.coupon__done):not(.coupon__scissors) { visibility: hidden; }
.coupon__done {
  position: absolute; inset: 0;
  display: grid; place-content: center; justify-items: center;
  gap: 10px;
  padding: 30px;
  text-align: center;
}
.coupon__done[hidden] { display: none; }
.stamp {
  display: grid; place-content: center;
  width: 150px; height: 150px;
  border-radius: 50%;
  border: 5px double var(--orange);
  color: var(--orange);
  transform: rotate(-12deg);
  font-family: var(--f-mono); font-weight: 700; text-transform: uppercase;
  line-height: 1.05;
  mix-blend-mode: multiply;
  margin-bottom: 8px;
}
.stamp span { font-size: .8rem; letter-spacing: .2em; }
.stamp b {
  font-family: var(--f-display); font-weight: 900; font-variation-settings: 'SOFT' 100, 'opsz' 96;
  font-size: 2.3rem; text-transform: none; letter-spacing: -.02em; line-height: 1;
}
.stamp__date { margin-top: 4px; border-top: 2px solid; padding-top: 4px; }
.coupon__done-title {
  margin: 0;
  font-family: var(--f-display); font-weight: 800; font-variation-settings: 'SOFT' 100, 'opsz' 72;
  font-size: 1.9rem; line-height: 1.05;
}
.coupon__done-text { margin: 0; max-width: 32ch; }
.coupon__again {
  margin-top: 8px;
  background: none; border: 0; padding: 4px;
  text-decoration: underline; text-underline-offset: 3px;
  cursor: pointer; font-size: .85rem;
}

/* -------------------------------------------------------------- footer */
.footer {
  position: relative;
  background: var(--walnut-d);
  color: var(--paper);
  padding: clamp(56px, 8vw, 110px) var(--gutter) 28px;
  overflow: hidden;
}
.footer__mark {
  font-family: var(--f-display); font-weight: 900;
  font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 144;
  font-size: clamp(3.4rem, 17.4vw, 21rem);
  line-height: .8; letter-spacing: -.045em;
  color: var(--mustard);
  margin: 0 0 clamp(40px, 6vw, 80px);
  white-space: nowrap;
}
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px clamp(24px, 4vw, 64px); max-width: 1400px; }
.footer__h {
  margin: 0 0 14px;
  font-variation-settings: 'wdth' 125; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em; font-size: .68rem;
  color: var(--mustard-l);
}
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__list li { padding-left: 20px; position: relative; }
.footer__list li::before { content: ''; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); }
.footer__addr { font-style: normal; font-family: var(--f-mono); line-height: 1.5; }
.footer__open { margin: 14px 0 0; color: rgba(238, 226, 198, .7); }
.footer__colophon { margin: 0; color: rgba(238, 226, 198, .85); }
.footer__base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: 18px;
  border-top: 2px dashed rgba(238, 226, 198, .35);
  font-size: .8rem; color: rgba(238, 226, 198, .7);
}
.footer__top { color: var(--mustard-l); text-decoration: none; }
.footer__top:hover { text-decoration: underline; }

/* -------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .hero__head {
    grid-template-columns: auto 1fr;
    grid-template-areas: 'eyebrow eyebrow' 'title stripes' 'aside aside';
  }
  .hero__aside { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; padding-top: 26px; }
  .hero__lede { margin: 0; }
  .hero__sticker-a { right: var(--gutter); top: -10px; }
  .synth__controls { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; }
  .instrument-wrap { padding-top: 100px; }
  .hero__sticker-b { bottom: -92px; }
}

@media (max-width: 960px) {
  .meters .vu { width: 116px; }
  .story__grid { grid-template-columns: 1fr; }
  .story__cassette { position: relative; top: 0; max-width: 420px; }
  .features { grid-template-columns: 1fr; }
  .sheet__cols { grid-template-columns: 1fr 1fr; }
  .order { grid-template-columns: 1fr; }
  .order__intro { justify-self: start; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 1rem; }
  .nav__links { display: none; }
  .nav__cta span { display: none; }
  .nav__cta { padding: 8px 14px; }
  .hero__head { grid-template-columns: 1fr; grid-template-areas: 'eyebrow' 'title' 'stripes' 'aside'; }
  .hero__title { font-size: clamp(3.4rem, 18.4vw, 9rem); }
  .hero__stripes { margin-top: 18px; }
  .hero__stripes i { height: 7px; }
  .hero__aside { display: block; padding-top: 22px; }
  .hero__lede { margin-bottom: 20px; }
  .hero__sticker-a { --w: 92px !important; --h: 92px !important; top: auto; bottom: -6px; right: var(--gutter); }
  .eyebrow { flex-direction: column; gap: 4px; }
  .eyebrow span + span::before { display: none; }
  .hero__sticker-a .sticker__big { font-size: 2.1rem; }
  .hero__sticker-a .sticker__small { font-size: .48rem; }
  .hero__sticker-b { display: none; }

  .synth { border-radius: 16px; }
  .synth__top {
    display: grid;
    grid-template-columns: 1fr auto auto;
    grid-template-areas: 'plate voices power' 'meters meters meters';
    gap: 12px 14px;
  }
  .plate { grid-area: plate; }
  .plate__sub, .plate__serial { display: none; }
  .voices { grid-area: voices; }
  .voices .label { display: none; }
  .voices__leds { gap: 5px; }
  .power { grid-area: power; }
  .power .label { display: none; }
  .meters { grid-area: meters; justify-content: center; }
  .meters .vu { width: auto; flex: 1 1 0; max-width: 150px; }
  .synth__controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 12px;
  }
  .group--osc { grid-column: 1 / -1; }
  .group__row { justify-content: flex-start; }
  .ribbon { height: 56px; }
  .ribbon__label { display: none; }
  .keys { height: 150px; }
  .play-hint__keys li:last-child { display: none; }

  .tape-label { grid-template-columns: auto 1fr; padding: 32px 16px 16px; }
  .tape-label__nr { display: none; }
  .track { grid-template-columns: 44px 1fr; gap: 14px; }
  .track__no { width: 42px; height: 42px; font-size: .82rem; }
  .track__len { grid-column: 2; padding-top: 0; }
  .personnel__list { grid-template-columns: 1fr; }
  .specs__sticker { display: none; }
  .sheet__cols { grid-template-columns: 1fr; }
  .row { font-size: .8rem; }
  .coupon__choice { grid-template-columns: 1fr; }
  .coupon { transform: none; outline-offset: 6px; }
  .footer__grid { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
  .group__row { gap: 6px; }
  .knob, .selector { --size: 50px; }
  .knob--lg { --size: 58px; }
}

/* -------------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .ri-ring { animation: none; transform: translateX(150px); }
  .loader__reel { animation: none; }
}

.footer__mark span { display: inline-block; transition: transform .5s var(--spring), color .2s; }
.footer__mark span:hover { transform: translateY(-.12em) rotate(-6deg); color: var(--orange); transition-duration: .25s; }
.footer__mark { cursor: default; }
