/* ============================================================
   IPELENG TAU / COMPONENTS
   Built entirely from tokens.css. The only raw values below sit
   inside material recipes, where a texture needs its own stops
   and is documented as such.
   ============================================================ */

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

/* Controls do not inherit the page typeface on their own. Every
   control here is lettered, so they must. */
button, input, select, textarea {
  font-family: inherit; font-size: inherit; line-height: inherit; color: inherit;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--s7);
}

body {
  margin: 0;
  background: var(--room);
  color: var(--ink);
  font-family: var(--f);
  font-variation-settings: 'wdth' var(--w-norm), 'wght' 400;
  font-size: var(--t-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- THE ROOM ---------------------------------------------
   The gear is lit. The room is not. One warm source above, and
   the floor falls away into the dark. */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(115% 62% at 50% -6%, rgba(255,205,145,.13) 0%,
                    rgba(255,160,80,.045) 36%, transparent 70%),
    linear-gradient(180deg, var(--room-lift) 0%, var(--room) 34%, var(--room-deep) 100%);
}

main, header, footer { position: relative; z-index: var(--z-body); }

img { max-width: 100%; display: block; }

a { color: var(--ink); text-decoration-color: var(--ink-dim); text-underline-offset: .25em; }
a:hover { text-decoration-color: var(--gold-mid); }

:focus-visible { outline: 2px solid var(--gold-mid); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: var(--s4); top: -6rem; z-index: var(--z-skip);
  background: var(--panel); color: var(--on-panel);
  padding: var(--s3) var(--s5); border-radius: var(--r-panel);
  font-variation-settings: 'wdth' var(--w-cond), 'wght' 700;
  font-size: var(--t-legend); letter-spacing: var(--tr-legend); text-transform: uppercase;
  transition: top var(--d-move) var(--e-out);
}
.skip:focus { top: var(--s4); }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.vh { position:absolute; width:1px; height:1px; overflow:hidden; clip-path: inset(50%); white-space: nowrap; }


/* ============================================================
   TYPE ROLES
   ============================================================ */

.legend {
  font-size: var(--t-legend);
  font-variation-settings: 'wdth' var(--w-cond), 'wght' 600;
  letter-spacing: var(--tr-legend);
  text-transform: uppercase;
  color: var(--ink-soft);
  line-height: 1.3;
  margin: 0;
}
.legend--xs  { font-size: var(--t-legend-xs); }
.legend--lit { color: var(--gold-mid); }
.legend--on-panel { color: var(--on-panel); }

.prose { max-width: var(--measure); color: var(--ink-soft); }
.prose p { margin: 0 0 var(--s4); }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); font-variation-settings: 'wdth' var(--w-norm), 'wght' 650; }


/* ============================================================
   HARDWARE
   Small drawn parts reused on every unit. This is the icon
   system; there are no icon fonts and no emoji anywhere.
   ============================================================ */

.screw {
  width: 11px; height: 11px; border-radius: 50%; position: relative; flex: none;
  background: linear-gradient(150deg, var(--screw) 0%, var(--screw-slot) 78%);
  box-shadow: inset 0 1px 0 rgba(255,250,240,.45), 0 1px 2px rgba(0,0,0,.45);
}
.screw::after {
  content: ''; position: absolute; inset: 0; margin: auto;
  width: 7px; height: 1.5px; border-radius: 1px;
  background: var(--screw-slot);
  box-shadow: 0 1px 0 rgba(255,250,240,.30);
  transform: rotate(28deg);
}
.screw:nth-child(even)::after { transform: rotate(-14deg); }

.jewel {
  width: 15px; height: 15px; border-radius: 50%; flex: none;
  background:
    radial-gradient(circle at 36% 30%, rgba(255,255,255,.32) 0 18%, transparent 42%),
    radial-gradient(circle at 50% 55%, var(--lamp-off) 0 60%, #2A1A08 100%);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.75), 0 1px 0 rgba(255,250,240,.35);
  transition: background var(--d-lamp) var(--e-out), box-shadow var(--d-lamp) var(--e-out);
}
.jewel.is-lit {
  background:
    radial-gradient(circle at 36% 30%, var(--lamp-core) 0 20%, transparent 46%),
    radial-gradient(circle at 50% 55%, var(--lamp) 0 55%, #C25400 100%);
  box-shadow: var(--lamp-lit), inset 0 1px 2px rgba(0,0,0,.3);
}
.jewel--lg { width: 20px; height: 20px; }

.jack {
  width: 32px; height: 32px; border-radius: 50%; flex: none; position: relative;
  background:
    radial-gradient(circle at 50% 50%, #050403 0 30%, #17140F 31% 56%, var(--screw) 57% 100%);
  box-shadow: inset 0 2px 4px rgba(0,0,0,.55), 0 1px 0 rgba(255,250,240,.4);
}
.jack::after {
  content: ''; position: absolute; inset: 0; margin: auto;
  width: 12px; height: 12px; border-radius: 50%;
  background: radial-gradient(circle at 42% 34%, #2A2620 0%, #000 82%);
  box-shadow: inset 0 2px 3px rgba(0,0,0,.95);
}
.jack--sm { width: 26px; height: 26px; }
.jack--sm::after { width: 10px; height: 10px; }

.vent {
  height: 100%;
  background-image: radial-gradient(circle at center, rgba(0,0,0,.5) 0 1.6px, transparent 1.9px);
  background-size: 7px 7px;
  opacity: .5;
}


/* ============================================================
   THE CABINET
   A cream tolex combo: handle on top, corner caps, a smooth
   panel strip carrying the badge, gold piping, diamond grille,
   a second panel strip carrying the controls, and feet.
   ============================================================ */

.head { padding: var(--s5) 0 var(--s6); }
@media (min-width: 48rem) { .head { padding: var(--s7) 0 var(--s7); } }

.cabinet {
  position: relative;
  padding: var(--s4);
  border-radius: var(--r-cab);
  background-color: var(--tolex);
  /* pebbled vinyl grain */
  background-image:
    repeating-linear-gradient(34deg,  rgba(255,252,242,.16) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(-56deg, rgba(90,74,44,.11)    0 1px, transparent 1px 5px),
    radial-gradient(130% 80% at 50% -10%, var(--tolex-hi) 0%, var(--tolex) 46%, var(--tolex-shade) 100%);
  background-size: 5px 5px, 5px 5px, 100% 100%;
  box-shadow:
    inset 0 1px 0 rgba(255,252,242,.6),
    inset 0 -2px 6px rgba(90,74,44,.35),
    0 0 0 1px var(--tolex-edge),
    var(--sh-deep);
}
@media (min-width: 48rem) { .cabinet { padding: var(--s5); } }

/* Handle: the cream strap on the top of the cabinet. */
.cabinet__handle {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  width: 138px; height: 20px;
  border-radius: 10px 10px 2px 2px;
  background: linear-gradient(180deg, var(--cap-hi) 0%, var(--cap) 55%, var(--cap-lo) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 -2px 6px rgba(0,0,0,.4);
  z-index: 0;
}
.cabinet__handle::after {
  content: ''; position: absolute; inset: 5px 20px auto; height: 10px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, rgba(90,74,44,.32), rgba(90,74,44,.04));
}

/* Corner caps: cream plastic, bolted through. */
.cap {
  position: absolute; width: 30px; height: 30px; z-index: 3; pointer-events: none;
  background: linear-gradient(150deg, var(--cap-hi) 0%, var(--cap) 45%, var(--cap-lo) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 1px 3px rgba(0,0,0,.3);
  clip-path: polygon(0 0, 100% 0, 100% 36%, 36% 36%, 36% 100%, 0 100%);
}
/* All four are authored identically and flipped into place, so the
   rounded corner always lands on the outside of the cabinet. */
.cap { border-radius: var(--r-cab) 0 0 0; }
.cap--tl { top: 0; left: 0; }
.cap--tr { top: 0; right: 0;    transform: scaleX(-1); }
.cap--bl { bottom: 0; left: 0;  transform: scaleY(-1); }
.cap--br { bottom: 0; right: 0; transform: scale(-1); }

/* Feet */
.foot-block {
  position: absolute; bottom: -9px; width: 54px; height: 10px; border-radius: 0 0 4px 4px;
  background: linear-gradient(180deg, var(--cap) 0%, var(--cap-lo) 100%);
  box-shadow: 0 3px 8px rgba(0,0,0,.5);
}
.foot-block--l { left: 12%; }
.foot-block--r { right: 12%; }

/* ---- PANEL STRIP ------------------------------------------
   The smooth cream vinyl the badge and the controls mount on. */
.panel {
  position: relative; z-index: 2;
  padding: var(--s4);
  border-radius: var(--r-panel);
  color: var(--on-panel);
  background: linear-gradient(176deg, var(--panel-hi) 0%, var(--panel) 44%, var(--panel-deep) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.85),
    inset 0 -2px 6px rgba(90,74,44,.22),
    0 2px 6px rgba(0,0,0,.30);
}
@media (min-width: 48rem) { .panel { padding: var(--s5) var(--s6); } }

/* ---- GOLD PIPING ------------------------------------------ */
.piping {
  position: relative; z-index: 2;
  height: 4px; margin: var(--s3) 0;
  border-radius: 3px;
  background: var(--gold-face);
  box-shadow: inset 0 1px 0 rgba(255,247,214,.8), 0 1px 3px rgba(0,0,0,.45);
}

/* ---- BADGE ------------------------------------------------
   His name as the stamped brass logo plate. One use only. */
.badge {
  margin: 0;
  font-size: clamp(1.75rem, 7.3vw, 5.6rem);
  font-variation-settings: 'wdth' var(--w-ultra), 'wght' 800;
  letter-spacing: -0.028em;
  line-height: .92;
  text-transform: uppercase;
  /* Stamped into the panel in one solid dark ink. A gold gradient
     here sank into the cream and stopped being readable. */
  color: var(--badge-ink);
  text-shadow: 0 1px 0 rgba(255,252,238,.85), 0 -1px 1px rgba(70,54,18,.25);
}
.badge span { display: block; white-space: nowrap; }

.tagline {
  margin: var(--s2) 0 0;
  font-size: clamp(0.7188rem, 0.65rem + 0.32vw, 0.875rem);
  font-variation-settings: 'wdth' var(--w-cond), 'wght' 650;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--on-panel);
}

/* ---- SELECTOR ---------------------------------------------
   The input selector row. Its own line, ruled off, with real
   air beneath it so it never crowds the name. */
.selector {
  display: flex; flex-wrap: wrap; gap: var(--s2) var(--s6);
  padding-bottom: var(--s3);
  margin-bottom: var(--s5);
  /* On a phone the five inputs distribute across the strip rather
     than leaving one orphan on a second line. */
}
@media (max-width: 30rem) {
  .selector { justify-content: space-between; gap: var(--s2) var(--s3); }
  .selector a { letter-spacing: .1em; }
}
.selector {
  border-bottom: 1px solid rgba(36,31,23,.20);
  box-shadow: 0 1px 0 rgba(255,255,255,.6);
}
.selector a {
  font-size: var(--t-legend-xs);
  font-variation-settings: 'wdth' var(--w-cond), 'wght' 700;
  letter-spacing: var(--tr-legend); text-transform: uppercase;
  color: var(--on-panel);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: border-color var(--d-lamp) var(--e-out);
}
.selector a:hover, .selector a:focus-visible { border-bottom-color: var(--gold); }

/* ---- DIAMOND GRILLE ---------------------------------------
   Oxblood cloth under a cream diamond lattice. Behind it, the
   artwork of whatever is loaded, dim until the amp is live. */
.grille {
  position: relative; z-index: 2;
  overflow: hidden;
  border-radius: var(--r-panel);
  min-height: 104px;
  background-color: var(--grille);
  box-shadow:
    inset 0 2px 8px rgba(0,0,0,.55),
    inset 0 0 0 1px rgba(0,0,0,.35),
    0 1px 0 rgba(255,252,242,.45);
}
@media (min-width: 48rem) { .grille { min-height: 168px; } }

.grille__art {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: .42;
  mix-blend-mode: screen;
  filter: saturate(.5) contrast(1.1) brightness(.9);
  transform: scale(1.04);
  transition: opacity var(--d-move) var(--e-out), filter var(--d-move) var(--e-out);
}
.grille.is-live .grille__art { opacity: .82; filter: saturate(1) contrast(1) brightness(1.05); }

/* cloth weave, then the diamond lattice over it */
.grille::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    repeating-linear-gradient(64deg,  transparent 0 31px, rgba(214,201,166,.80) 31px 33px),
    repeating-linear-gradient(-64deg, transparent 0 31px, rgba(214,201,166,.80) 31px 33px),
    repeating-linear-gradient(0deg,   rgba(0,0,0,.20) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg,  rgba(0,0,0,.20) 0 1px, transparent 1px 3px),
    radial-gradient(130% 100% at 50% -10%, rgba(115,46,43,.55) 0%, transparent 62%);
}

.grille__caption {
  position: absolute; left: var(--s5); bottom: var(--s4); z-index: 2;
  color: var(--ink);
  text-shadow: 0 1px 5px rgba(0,0,0,.95);
  opacity: 0; transform: translateY(4px);
  transition: opacity var(--d-move) var(--e-out), transform var(--d-move) var(--e-out);
}
.grille.is-live .grille__caption { opacity: 1; transform: none; }


/* ============================================================
   CONTROLS
   ============================================================ */

.controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--s4) var(--s5); }
.controls__in     { display: flex; align-items: flex-end; gap: var(--s4); flex: 1 1 16rem; min-width: 0; }
.controls__meters { display: flex; align-items: flex-end; gap: var(--s4); margin-left: auto; flex: 0 0 auto; }
@media (max-width: 34rem) {
  .controls { gap: var(--s4); }
  .controls__in, .controls__meters { flex: 1 1 100%; margin-left: 0; }
}

.control { display: flex; flex-direction: column; align-items: center; gap: var(--s2); }
.control .legend { margin-top: var(--s1); color: var(--on-panel); }
.control--stomp { flex: 1; min-width: 0; align-items: stretch; }
.control--stomp .stomp { max-width: 100%; }
.control--stomp .legend { text-align: center; }

/* the lead the visitor is imagined to have just plugged in */
.control--in { position: relative; }
.control--in::after {
  content: ''; position: absolute; top: 16px; left: calc(50% + 13px); width: var(--s5); height: 4px;
  background: linear-gradient(180deg, var(--cable) 0%, var(--cable-shade) 100%);
  border-radius: 2px; box-shadow: 0 1px 2px rgba(0,0,0,.4);
}

/* ---- FOOTSWITCH  /  the primary action --------------------- */
.stomp {
  appearance: none; border: 0; cursor: pointer; width: 100%;
  display: flex; align-items: center; gap: var(--s4);
  padding: var(--s3) var(--s5) var(--s3) var(--s3);
  border-radius: var(--r-pedal);
  background: linear-gradient(180deg, var(--chassis-hi) 0%, var(--chassis) 46%, var(--chassis-lo) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,250,240,.24),
    inset 0 -3px 6px rgba(0,0,0,.5),
    0 4px 0 rgba(60,48,26,.65),
    0 8px 18px rgba(0,0,0,.4);
  color: var(--ink);
  text-align: left; text-decoration: none;
  transition: transform var(--d-click) var(--e-switch), box-shadow var(--d-click) var(--e-switch);
}
@media (min-width: 40rem) { .stomp { width: auto; } }
@media (min-width: 34rem) { .control--stomp { flex: 1 1 auto; max-width: 26rem; } }
/* The switch only claims a minimum once the panel is wide enough to
   give the meters their own room beside it. */
@media (min-width: 62rem) { .stomp { min-width: 17.5rem; } }
@media (max-width: 30rem) {
  .stomp { padding: var(--s3) var(--s4) var(--s3) var(--s3); gap: var(--s3); }
  .stomp__plate { width: 38px; height: 38px; }
}
.stomp:hover { box-shadow: inset 0 1px 0 rgba(255,250,240,.3), inset 0 -3px 6px rgba(0,0,0,.45), 0 4px 0 rgba(60,48,26,.65), 0 10px 24px rgba(0,0,0,.45); }
.stomp:active, .stomp.is-down {
  transform: translateY(3px);
  box-shadow: inset 0 2px 6px rgba(0,0,0,.65), 0 1px 0 rgba(60,48,26,.65), 0 3px 8px rgba(0,0,0,.35);
}
.stomp__plate {
  width: 46px; height: 46px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: radial-gradient(circle at 40% 30%, var(--gold-hi) 0%, var(--gold-mid) 42%, var(--gold) 70%, var(--gold-lo) 100%);
  box-shadow: inset 0 -2px 4px rgba(70,54,18,.45), 0 1px 0 rgba(255,250,240,.3);
}
.stomp__plate svg { width: 18px; height: 18px; }
.stomp__plate path { fill: #2A2008; stroke: #2A2008; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.stomp__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow: hidden; }
.stomp__now {
  font-size: var(--t-body);
  font-variation-settings: 'wdth' var(--w-cond), 'wght' 700;
  letter-spacing: .04em; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.stomp__txt .legend { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- VOLUME KNOB  /  a real control ------------------------
   Drag it, scroll it, or use the arrow keys. It sets playback
   volume and nothing else. It is not wired to the meter. */
.knob-well { position: relative; display: grid; place-items: center; width: 62px; height: 52px; }
.knob-well::before {
  content: ''; position: absolute; top: 2px; left: 2px; right: 2px; height: 48px;
  border-radius: 50%;
  background: conic-gradient(from 225deg, rgba(36,31,23,.40) 0deg 270deg, transparent 270deg);
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent 0 25px, #000 25px 27px, transparent 27px);
  mask: radial-gradient(circle at 50% 50%, transparent 0 25px, #000 25px 27px, transparent 27px);
}
.knob {
  width: 44px; height: 44px; border-radius: 50%; flex: none; position: relative;
  cursor: grab; touch-action: none;
  background:
    radial-gradient(circle at 42% 24%, rgba(255,250,240,.22) 0 24%, transparent 54%),
    repeating-conic-gradient(from 0deg, #4A443A 0deg 3deg, #201C16 3deg 6deg),
    radial-gradient(circle at 50% 50%, #3A342C 0%, #17140F 100%);
  box-shadow: 0 2px 4px rgba(0,0,0,.45), 0 6px 14px rgba(0,0,0,.35), inset 0 -2px 5px rgba(0,0,0,.6);
}
.knob:active { cursor: grabbing; }
.knob::before {
  content: ''; position: absolute; inset: 7px; border-radius: 50%;
  background: radial-gradient(circle at 40% 26%, #56503F 0%, #1B1814 88%);
  box-shadow: inset 0 1px 0 rgba(255,250,240,.18);
}
.knob__pointer { position: absolute; inset: 0; z-index: 1; transition: transform var(--d-click) var(--e-out); }
.knob__pointer::after {
  content: ''; position: absolute; left: 50%; top: 5px;
  width: 3px; height: 14px; margin-left: -1.5px; border-radius: 2px;
  background: var(--gold-hi);
  box-shadow: 0 1px 2px rgba(0,0,0,.8);
}

/* ---- VU METER ---------------------------------------------- */
.vu {
  position: relative; width: 158px; flex: none;
  background: linear-gradient(178deg, #EDE2C2 0%, #D2C39A 100%);
  border-radius: 3px;
  padding: var(--s2) var(--s3);
  box-shadow: inset 0 2px 5px rgba(0,0,0,.4), inset 0 -1px 0 rgba(255,255,255,.5), 0 1px 0 rgba(255,255,255,.5);
  overflow: hidden;
}
@media (max-width: 34rem) { .vu { width: auto; flex: 1; min-width: 0; } }
.vu::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(158deg, rgba(255,255,255,.45) 0%, rgba(255,255,255,.05) 38%, transparent 60%);
}
.vu svg { width: 100%; height: auto; display: block; }
#vu-needle { transition: transform 70ms linear; }


/* ============================================================
   SECTIONS
   ============================================================ */

.unit { padding: var(--s8) 0 var(--s6); position: relative; }
.unit--tight { padding-top: var(--s7); }

.unit__head { display: flex; align-items: baseline; gap: var(--s4); margin-bottom: var(--s6); flex-wrap: wrap; }
.unit__head h2 {
  font-size: var(--t-plate);
  font-variation-settings: 'wdth' var(--w-exp), 'wght' 700;
  letter-spacing: var(--tr-plate); text-transform: uppercase;
  line-height: var(--lh-tight); margin: 0; color: var(--ink);
}
.unit__rule {
  flex: 1 1 8rem; height: 1px; min-width: 3rem;
  background: linear-gradient(90deg, var(--hair-str), transparent);
  transform: translateY(-.35em);
}


/* ============================================================
   THE BOARD  /  the discography as a pedalboard
   ============================================================ */

.board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: var(--s3);
  padding: var(--s4) var(--s3);
  border-radius: 8px;
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,.30) 0 2px, transparent 2px 9px),
    linear-gradient(180deg, var(--chassis) 0%, var(--chassis-lo) 100%);
  box-shadow: var(--bevel-dark), var(--sh-lift);
  border: 1px solid rgba(0,0,0,.5);
}
@media (min-width: 40rem) {
  .board { grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); gap: var(--s5); padding: var(--s6); }
}

.pedal {
  --enamel: var(--enamel-1);
  appearance: none; border: 0; padding: 0; cursor: pointer; text-align: left;
  position: relative; display: flex; flex-direction: column;
  border-radius: var(--r-pedal);
  background: linear-gradient(176deg,
      color-mix(in srgb, var(--enamel) 100%, white 16%) 0%,
      var(--enamel) 30%,
      color-mix(in srgb, var(--enamel) 100%, black 26%) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.34),
    inset 0 -2px 5px rgba(0,0,0,.4),
    0 3px 0 rgba(0,0,0,.5),
    0 8px 20px rgba(0,0,0,.4);
  color: var(--enamel-ink, var(--on-panel));
  overflow: hidden;
  transition: transform var(--d-click) var(--e-switch), box-shadow var(--d-click) var(--e-switch), filter var(--d-lamp) var(--e-out);
  filter: saturate(.86) brightness(.93);
}
.pedal:hover { filter: saturate(1) brightness(1); }
.pedal:active { transform: translateY(2px); box-shadow: inset 0 2px 6px rgba(0,0,0,.5), 0 1px 0 rgba(0,0,0,.5), 0 4px 10px rgba(0,0,0,.4); }
.pedal.is-on {
  filter: saturate(1.08) brightness(1.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.42), inset 0 -2px 5px rgba(0,0,0,.35),
              0 3px 0 rgba(0,0,0,.5), 0 10px 26px rgba(0,0,0,.45), 0 0 0 1px var(--gold-mid);
}

.pedal__art {
  position: relative; aspect-ratio: 1 / 1;
  margin: var(--s3) var(--s3) 0;
  border-radius: 3px; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.35), 0 1px 3px rgba(0,0,0,.4);
  background: var(--chassis-lo);
}
.pedal__art img { width: 100%; height: 100%; object-fit: cover; }
.pedal__art::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(255,255,255,.2), transparent 42%);
}

.pedal__body { padding: var(--s3) var(--s3) var(--s2); display: flex; flex-direction: column; gap: 1px; flex: 1; }
.pedal__title {
  font-size: var(--t-body-sm);
  font-variation-settings: 'wdth' 82, 'wght' 850;
  letter-spacing: .045em; text-transform: uppercase; line-height: 1.14;
  margin: 0; color: var(--enamel-ink, var(--on-panel));
}
.pedal__meta {
  font-size: var(--t-legend-xs);
  font-variation-settings: 'wdth' var(--w-cond), 'wght' 600;
  letter-spacing: var(--tr-legend); text-transform: uppercase;
  color: var(--enamel-ink, var(--on-panel)); opacity: .88; margin: 0;
}
.pedal__foot { display: flex; flex-direction: column; align-items: center; gap: var(--s2); padding: var(--s1) var(--s3) var(--s3); }
.pedal__switch {
  width: 30px; height: 30px; border-radius: 50%;
  background: radial-gradient(circle at 38% 28%, #F2ECDC 0%, #CFC7B2 40%, #8E876F 74%, #35322C 100%);
  box-shadow: inset 0 -3px 5px rgba(0,0,0,.45), inset 0 2px 2px rgba(255,255,255,.4), 0 2px 4px rgba(0,0,0,.45);
}
.pedal:active .pedal__switch { box-shadow: inset 0 3px 6px rgba(0,0,0,.55); }


/* ============================================================
   THROUGH THE CAB  /  video behind grille cloth
   ============================================================ */

.cab {
  border-radius: var(--r-cab);
  padding: var(--s4);
  background-color: var(--tolex);
  background-image:
    repeating-linear-gradient(34deg,  rgba(255,252,242,.15) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(-56deg, rgba(90,74,44,.10)    0 1px, transparent 1px 5px),
    radial-gradient(130% 90% at 50% -10%, var(--tolex-hi) 0%, var(--tolex) 50%, var(--tolex-shade) 100%);
  background-size: 5px 5px, 5px 5px, 100% 100%;
  box-shadow: inset 0 1px 0 rgba(255,252,242,.55), 0 0 0 1px var(--tolex-edge), var(--sh-lift);
}
.cab__grid { display: grid; gap: var(--s4); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 46rem) { .cab__grid { grid-template-columns: repeat(3, 1fr); } }

/* ---- THE STAGE --------------------------------------------
   A cab has one speaker, so one clip plays at a time and the
   rest of the grid stays a set of posters. */
.cab__stage {
  display: grid; gap: var(--s5);
  grid-template-columns: 1fr;
  margin-bottom: var(--s5);
  padding-bottom: var(--s5);
  border-bottom: 1px solid rgba(90,74,44,.35);
  box-shadow: 0 1px 0 rgba(255,252,242,.4);
}
@media (min-width: 46rem) { .cab__stage { grid-template-columns: 325px 1fr; gap: var(--s6); align-items: center; } }
.cab__stage[hidden] { display: none; }

.cab__screen {
  width: min(325px, 100%); margin-inline: auto;
  aspect-ratio: 325 / 610;
  border-radius: var(--r-panel); overflow: hidden;
  background: var(--grille);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.55), inset 0 2px 8px rgba(0,0,0,.5), 0 1px 0 rgba(255,252,242,.4);
}
.cab__screen iframe { width: 100%; height: 100%; border: 0; display: block; }
.cab__note { display: flex; flex-direction: column; gap: var(--s3); align-items: flex-start; }
.cab__title {
  margin: 0; color: var(--on-panel);
  font-size: var(--t-plate-sm);
  font-variation-settings: 'wdth' var(--w-exp), 'wght' 700;
  letter-spacing: var(--tr-plate); text-transform: uppercase; line-height: 1.08;
}
.cab__note .legend--lit { color: #6B4A12; }
.cab__note .legend[style] { color: rgba(36,31,23,.72) !important; }

.speaker.is-live { box-shadow: inset 0 0 0 2px var(--gold), 0 2px 10px rgba(0,0,0,.5); }
.speaker.is-live::after { opacity: .35; }

.speaker {
  appearance: none; border: 0; padding: 0; cursor: pointer;
  position: relative; display: block; width: 100%;
  aspect-ratio: 9 / 14;
  border-radius: var(--r-panel); overflow: hidden;
  background-color: var(--grille);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.55), inset 0 2px 8px rgba(0,0,0,.5), 0 1px 0 rgba(255,252,242,.4);
}
.speaker img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .94;
  transition: opacity var(--d-move) var(--e-out), transform var(--d-move) var(--e-out);
}
.speaker:hover img { opacity: 1; transform: scale(1.03); }
/* the lattice sits over the picture, so it reads as sound
   coming through cloth rather than a thumbnail in a frame */
.speaker::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  /* The cloth is a hint here, not a veil: this is the proof he
     can play, so the picture has to stay readable. */
  background-image:
    repeating-linear-gradient(64deg,  transparent 0 26px, rgba(214,201,166,.20) 26px 28px),
    repeating-linear-gradient(-64deg, transparent 0 26px, rgba(214,201,166,.20) 26px 28px),
    linear-gradient(180deg, rgba(0,0,0,.06) 0%, rgba(30,10,10,.42) 100%);
  transition: opacity var(--d-move) var(--e-out);
}
.speaker:hover::after { opacity: .45; }
.speaker__play {
  position: absolute; left: var(--s3); bottom: var(--s3); z-index: 3;
  display: flex; align-items: center; gap: var(--s2);
  padding: var(--s2) var(--s3); border-radius: 3px;
  background: rgba(12,10,8,.8);
  box-shadow: 0 1px 0 rgba(255,250,240,.14), 0 2px 8px rgba(0,0,0,.55);
}
.speaker__play svg { width: 12px; height: 12px; fill: var(--gold-mid); }
.speaker__cap {
  position: absolute; left: 0; right: 0; top: 0; z-index: 3; padding: var(--s3);
  font-size: var(--t-legend-xs);
  font-variation-settings: 'wdth' var(--w-cond), 'wght' 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink); text-shadow: 0 1px 5px rgba(0,0,0,.95);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.speaker iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 4; }
.speaker.is-playing::after, .speaker.is-playing .speaker__play, .speaker.is-playing .speaker__cap { display: none; }


/* ============================================================
   SPECIFICATION  /  the plate screwed to the back
   ============================================================ */

.spec {
  position: relative;
  display: grid; gap: var(--s6); grid-template-columns: 1fr;
  padding: var(--s6) var(--s5);
  border-radius: var(--r-panel);
  color: var(--on-panel);
  background: linear-gradient(174deg, var(--panel-hi) 0%, var(--panel) 46%, var(--panel-deep) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), inset 0 -2px 6px rgba(90,74,44,.2), var(--sh-lift);
}
@media (min-width: 52rem) { .spec { grid-template-columns: 1.35fr 1fr; gap: var(--s8); padding: var(--s8) var(--s7); } }

.spec__screws { position: absolute; inset: 0; pointer-events: none; }
.spec__screws .screw { position: absolute; }
.spec__screws .screw:nth-child(1) { top: 11px;    left: 11px;  }
.spec__screws .screw:nth-child(2) { top: 11px;    right: 11px; }
.spec__screws .screw:nth-child(3) { bottom: 11px; left: 11px;  }
.spec__screws .screw:nth-child(4) { bottom: 11px; right: 11px; }

.spec .prose { color: var(--on-panel); max-width: 56ch; }
.spec .prose strong { color: #100E0A; }
.spec h2 {
  font-size: var(--t-plate-sm);
  font-variation-settings: 'wdth' var(--w-exp), 'wght' 700;
  letter-spacing: var(--tr-plate); text-transform: uppercase;
  margin: 0 0 var(--s4); color: var(--on-panel);
  text-shadow: 0 1px 0 rgba(255,255,255,.55);
}
.spec dl { margin: 0; display: grid; grid-template-columns: auto 1fr; align-self: start; width: 100%; }
.spec dt, .spec dd {
  margin: 0; padding: var(--s3) 0;
  border-top: 1px solid rgba(36,31,23,.22);
  box-shadow: 0 -1px 0 rgba(255,255,255,.55);
  font-size: var(--t-legend);
  letter-spacing: var(--tr-legend); text-transform: uppercase;
  color: var(--on-panel);
}
.spec dt { font-variation-settings: 'wdth' var(--w-cond), 'wght' 500; padding-right: var(--s5); white-space: nowrap; }
.spec dd { font-variation-settings: 'wdth' var(--w-cond), 'wght' 800; text-align: right; }
.spec dl > :nth-child(1), .spec dl > :nth-child(2) { border-top: 0; box-shadow: none; }


/* ============================================================
   OUT  /  the patchbay. Replaces the linktree.
   ============================================================ */

.patchbay {
  border-radius: 6px;
  padding: var(--s5) var(--s4);
  background: linear-gradient(180deg, var(--chassis-hi) 0%, var(--chassis) 8%, var(--chassis-lo) 100%);
  box-shadow: var(--bevel-dark), var(--sh-lift);
  border: 1px solid rgba(0,0,0,.55);
}
@media (min-width: 40rem) { .patchbay { padding: var(--s6); } }

.patchbay__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(124px, 1fr)); gap: var(--s4) var(--s3); }

.socket {
  display: flex; flex-direction: column; align-items: center; gap: var(--s2);
  padding: var(--s3) var(--s2); border-radius: 4px;
  text-decoration: none; color: var(--ink-soft);
  transition: background var(--d-lamp) var(--e-out), color var(--d-lamp) var(--e-out);
}
.socket:hover, .socket:focus-visible { background: rgba(240,234,219,.06); color: var(--ink); }
.socket:hover .jack::after { box-shadow: inset 0 2px 3px rgba(0,0,0,.95), 0 0 6px 1px rgba(212,178,85,.55); }
.socket .legend { text-align: center; color: inherit; }

.socket--out {
  grid-column: 1 / -1;
  display: flex; flex-direction: row; align-items: center; gap: var(--s6);
  padding: var(--s4) var(--s5); border-radius: 5px;
  background: linear-gradient(180deg, rgba(240,234,219,.08), rgba(0,0,0,.28));
  box-shadow: var(--bevel-dark);
  color: var(--ink); margin-bottom: var(--s5);
}
.socket--out:hover { background: linear-gradient(180deg, rgba(212,178,85,.16), rgba(0,0,0,.28)); }
.socket--out .socket__txt { flex: 1; min-width: 0; }
.socket--out .socket__big {
  display: block;
  font-size: var(--t-plate-sm);
  font-variation-settings: 'wdth' var(--w-exp), 'wght' 700;
  letter-spacing: var(--tr-plate); text-transform: uppercase; line-height: 1.05;
  margin: 0 0 3px; color: var(--ink);
}
.socket--out .socket__txt .legend { display: block; }
.plugged { position: relative; flex: none; margin-right: var(--s5); }
.plugged::after {
  content: ''; position: absolute; top: 50%; left: calc(100% - 2px); width: var(--s5); height: 4px;
  transform: translateY(-50%);
  background: linear-gradient(180deg, var(--cable) 0%, var(--cable-shade) 100%);
  border-radius: 2px; box-shadow: 0 1px 2px rgba(0,0,0,.6);
}


/* ============================================================
   RACK  /  the producer wing, and contact
   ============================================================ */

.rack { display: grid; gap: var(--s4); grid-template-columns: 1fr; }
@media (min-width: 44rem) { .rack { grid-template-columns: 1fr 1fr; gap: var(--s5); } }

.rack__unit {
  display: flex; flex-direction: column; gap: var(--s3);
  padding: var(--s5); border-radius: 4px;
  text-decoration: none; color: var(--ink);
  background: linear-gradient(180deg, var(--chassis) 0%, var(--chassis-lo) 100%);
  box-shadow: var(--bevel-dark), var(--sh-sit);
  border: 1px solid rgba(0,0,0,.5);
  transition: transform var(--d-move) var(--e-out), box-shadow var(--d-move) var(--e-out);
}
.rack__unit:hover { transform: translateY(-2px); box-shadow: var(--bevel-dark), var(--sh-lift); }
.rack__unit h3 {
  font-size: var(--t-plate-sm);
  font-variation-settings: 'wdth' var(--w-exp), 'wght' 700;
  letter-spacing: var(--tr-plate); text-transform: uppercase; margin: 0; line-height: 1.06;
}
.rack__unit p { margin: 0; color: var(--ink-soft); font-size: var(--t-body-sm); max-width: 36ch; }
.rack__ears { display: flex; gap: var(--s2); align-items: center; margin-bottom: var(--s1); }

/* Contact sits on the cream panel, because it is the one place
   a person is asked to write to a human. */
.contact {
  position: relative;
  padding: var(--s6) var(--s5);
  border-radius: var(--r-panel);
  color: var(--on-panel);
  background: linear-gradient(174deg, var(--panel-hi) 0%, var(--panel) 46%, var(--panel-deep) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), inset 0 -2px 6px rgba(90,74,44,.2), var(--sh-lift);
  display: grid; gap: var(--s5); align-items: center;
}
@media (min-width: 46rem) { .contact { grid-template-columns: 1fr auto; padding: var(--s7); gap: var(--s7); } }
.contact h2 {
  font-size: var(--t-plate-sm);
  font-variation-settings: 'wdth' var(--w-exp), 'wght' 700;
  letter-spacing: var(--tr-plate); text-transform: uppercase;
  margin: 0 0 var(--s3); color: var(--on-panel);
  text-shadow: 0 1px 0 rgba(255,255,255,.55);
}
.contact p { margin: 0; color: var(--on-panel); font-size: var(--t-body-sm); max-width: 46ch; }


/* ============================================================
   MAILING LIST
   ============================================================ */

.strip-form { display: flex; flex-direction: column; gap: var(--s3); max-width: 30rem; }
@media (min-width: 34rem) { .strip-form { flex-direction: row; align-items: stretch; } }

.field {
  flex: 1;
  background: linear-gradient(180deg, #0B0907 0%, #131009 100%);
  border: 1px solid rgba(0,0,0,.7); border-radius: 4px;
  box-shadow: inset 0 2px 5px rgba(0,0,0,.6);
  color: var(--ink); font-size: var(--t-body-sm);
  padding: var(--s3) var(--s4); min-height: 46px;
}
.field::placeholder { color: var(--ink-faint); }
.field:focus { outline: 2px solid var(--gold-mid); outline-offset: 1px; }

.btn {
  appearance: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  padding: var(--s3) var(--s5); min-height: 46px; border-radius: 4px;
  background: var(--gold-face);
  color: #2A2008;
  font-size: var(--t-legend);
  font-variation-settings: 'wdth' var(--w-cond), 'wght' 800;
  letter-spacing: var(--tr-legend); text-transform: uppercase; text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255,247,214,.75), inset 0 -2px 4px rgba(70,54,18,.3), 0 2px 0 rgba(40,30,8,.5), 0 5px 14px rgba(0,0,0,.4);
  transition: transform var(--d-click) var(--e-switch), box-shadow var(--d-click) var(--e-switch);
  white-space: nowrap;
}
.btn:active { transform: translateY(2px); box-shadow: inset 0 2px 5px rgba(70,54,18,.4); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
/* The second action in a pair. Same shape, no brass. */
.btn--quiet {
  background: linear-gradient(180deg, var(--chassis-hi) 0%, var(--chassis) 46%, var(--chassis-lo) 100%);
  color: var(--ink);
  box-shadow: var(--bevel-dark), 0 2px 0 rgba(0,0,0,.5), 0 5px 14px rgba(0,0,0,.35);
}
.btn--quiet:active { box-shadow: inset 0 2px 5px rgba(0,0,0,.6); }


/* ============================================================
   PLAYER  /  a small combo docked in the bottom left corner
   ============================================================ */

.player {
  position: fixed; left: var(--s4); bottom: var(--s4); z-index: var(--z-strip);
  width: min(23.5rem, calc(100vw - var(--s4) * 2));
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s3);
  border-radius: 10px;
  background-color: var(--tolex);
  background-image:
    repeating-linear-gradient(34deg,  rgba(255,252,242,.15) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(-56deg, rgba(90,74,44,.10)    0 1px, transparent 1px 5px),
    linear-gradient(180deg, var(--tolex-hi) 0%, var(--tolex) 48%, var(--tolex-shade) 100%);
  background-size: 5px 5px, 5px 5px, 100% 100%;
  box-shadow: inset 0 1px 0 rgba(255,252,242,.6), 0 0 0 1px var(--tolex-edge), var(--sh-deep);
  transform: translateY(calc(100% + var(--s6)));
  transition: transform var(--d-move) var(--e-out);
}
.player.is-up { transform: translateY(0); }
@media (max-width: 30rem) {
  .player {
    left: var(--s3); right: var(--s3); bottom: var(--s3); width: auto;
    padding: var(--s2) var(--s3);
    padding-bottom: max(var(--s2), env(safe-area-inset-bottom));
  }
}

.player__art {
  width: 42px; height: 42px; flex: none; border-radius: 3px; object-fit: cover;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.3), 0 1px 3px rgba(0,0,0,.4);
  background: var(--grille);
}
.player__btn {
  appearance: none; border: 0; cursor: pointer; flex: none;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 40% 30%, var(--gold-hi) 0%, var(--gold-mid) 42%, var(--gold) 72%, var(--gold-lo) 100%);
  box-shadow: inset 0 -2px 4px rgba(70,54,18,.45), 0 2px 5px rgba(0,0,0,.45);
}
.player__btn svg { width: 15px; height: 15px; }
.player__btn path { fill: #2A2008; stroke: #2A2008; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.player__txt { min-width: 0; flex: 1; }
.player__title {
  margin: 0; font-size: var(--t-legend);
  font-variation-settings: 'wdth' var(--w-cond), 'wght' 800;
  letter-spacing: .05em; text-transform: uppercase; color: var(--on-panel);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.player__sub { margin: 0; color: var(--on-panel); opacity: .82; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__more {
  flex: none; display: none;
  font-size: var(--t-legend-xs);
  font-variation-settings: 'wdth' var(--w-cond), 'wght' 800;
  letter-spacing: var(--tr-legend); text-transform: uppercase;
  color: var(--on-panel); text-decoration: none;
  padding: var(--s2) var(--s3);
  border: 1px solid rgba(36,31,23,.38); border-radius: 3px;
}
.player__more:hover { background: rgba(36,31,23,.08); }
@media (min-width: 26rem) { .player__more { display: block; } }

/* live level, driven by the same signal as the needle */
.meter { display: flex; align-items: flex-end; gap: 2px; height: 24px; flex: none; }
.meter i {
  display: block; width: 3px; height: 24px; border-radius: 1px;
  background: #8A3A0A; opacity: .3;
  transform: scaleY(.12); transform-origin: bottom;
  transition: transform 70ms linear, opacity 70ms linear;
  will-change: transform;
}


/* ============================================================
   CABLE  /  the patch lead between units.
   One authored motion: engaging a pedal runs light down the chain.
   ============================================================ */

.wire {
  position: relative; height: 88px;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  margin: calc(var(--s5) * -1) 0; pointer-events: none;
}
@media (max-width: 30rem) { .wire { height: 66px; } }
.wire .cable-layer { position: absolute; inset: 0; margin: auto; width: 64px; }
.cable-layer { pointer-events: none; overflow: visible; }
.cable-layer path { fill: none; stroke: var(--cable-shade); stroke-width: 6; stroke-linecap: round; }
.cable-layer path.hi { stroke: var(--cable); stroke-width: 3.4; }
.cable-layer path.pulse {
  stroke: var(--gold-hi); stroke-width: 3.4;
  stroke-dasharray: 12 100; stroke-dashoffset: 112; opacity: 0;
}
.cable-layer.is-travelling path.pulse { animation: travel var(--d-travel) var(--e-out) forwards; }
@keyframes travel {
  0%   { stroke-dashoffset: 112; opacity: 0; }
  10%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}


/* ============================================================
   FOOT
   ============================================================ */

.foot {
  margin-top: var(--s8);
  padding: var(--s7) 0 calc(var(--s10) + env(safe-area-inset-bottom));
  border-top: 1px solid var(--hair);
}
.foot__grid { display: flex; flex-wrap: wrap; gap: var(--s5) var(--s7); align-items: flex-start; justify-content: space-between; }
.foot__links { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); }
.foot__links a {
  color: var(--ink-soft); text-decoration: none; font-size: var(--t-legend);
  font-variation-settings: 'wdth' var(--w-cond), 'wght' 600;
  letter-spacing: var(--tr-legend); text-transform: uppercase;
}
.foot__links a:hover { color: var(--gold-mid); }
.foot__stamp { display: flex; flex-direction: column; gap: var(--s1); }


/* ============================================================
   COMING SOON  /  used by the samples page
   ============================================================ */

.soon { display: grid; gap: var(--s6); justify-items: start; }
.soon__list { display: grid; gap: var(--s3); margin: 0; padding: 0; list-style: none; }
.soon__list li {
  display: flex; align-items: center; gap: var(--s3);
  color: var(--on-panel); font-size: var(--t-body-sm);
  font-variation-settings: 'wdth' var(--w-norm), 'wght' 500;
}
/* A pilot lamp reads as hardware on the dark panels but disappears
   on cream, so the marker here is a stamped bullet. */
.soon__list .dot {
  width: 9px; height: 9px; border-radius: 50%; flex: none;
  background: var(--badge-ink);
  box-shadow: 0 1px 0 rgba(255,252,238,.7);
}


/* ============================================================
   REVEAL  /  units settle into place once, on first sight
   ============================================================ */

.rise { opacity: 0; transform: translateY(14px); }
.rise.is-in { opacity: 1; transform: none; transition: opacity 640ms var(--e-out), transform 640ms var(--e-out); }
@media (prefers-reduced-motion: reduce) { .rise { opacity: 1; transform: none; } }
