/* Patchbay PB-1 — the site is the instrument.
   Palette: matte black panel, brushed-aluminium labels, one orange LED, cold LCD green. */

@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/Barlow-Regular.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/Barlow-Medium.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/Barlow-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Archivo Black"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/ArchivoBlack-Regular.woff2") format("woff2"); }
@font-face { font-family: "Share Tech Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/ShareTechMono-Regular.woff2") format("woff2"); }

:root {
  --bg: #07080a;
  --face: #151618;
  --face-2: #101113;
  --rail: #2a2c30;
  --edge-hi: #2e3136;
  --edge-lo: #040405;
  --alu: #d4d8dc;
  --alu-dim: #8d939a;
  --engr: #aab0b6;
  --copy: #b3b8be;
  --orange: #ff7a1a;
  --orange-hi: #ffb27a;
  --orange-dim: #4a2a14;
  --lcd: #9dffb0;
  --lcd-dim: #2a5a37;
  --lcd-glass: #0a150e;
  --cable-cv: #b9bec4;
  --rail-w: 30px;
  --pad-x: 44px;
  --sans: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --mono: "Share Tech Mono", "Roboto Mono", Consolas, monospace;
  --logo: "Archivo Black", "Arial Black", Impact, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; scroll-behavior: auto; }
body {
  margin: 0; min-height: 100vh;
  font-family: var(--sans); font-size: 15.5px; line-height: 1.5; color: var(--copy);
  background: radial-gradient(ellipse 70% 40% at 50% 0%, #131416 0%, var(--bg) 60%);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
html.fine body { cursor: none; }
html.fine a, html.fine button, html.fine input, html.fine [tabindex] { cursor: none; }
p { margin: 0 0 1em; }
em { font-style: normal; color: var(--alu); font-weight: 500; }
kbd { font-family: var(--mono); font-size: .92em; color: var(--alu); letter-spacing: .06em; }

/* ---------- rack ---------- */
.rack {
  position: relative; max-width: 1240px; margin: 0 auto; padding: 40px var(--rail-w) 56px;
}
.rack::before, .rack::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: var(--rail-w);
  background:
    radial-gradient(circle at 50% 22px, #000 0 3.2px, #3a3d42 3.6px 4.6px, transparent 5px) 0 0 / 100% 44px repeat-y,
    linear-gradient(90deg, #202226, #34373c 40%, #2a2d31 60%, #1b1d20);
  box-shadow: inset 1px 0 0 #3d4046, inset -1px 0 0 #101113;
}
.rack::before { left: 0; }
.rack::after { right: 0; }

/* ---------- module ---------- */
.module, .manual {
  position: relative; display: grid; grid-template-columns: 72px 1fr; column-gap: 28px;
  padding: 0 var(--pad-x) 100px;
  background: linear-gradient(180deg, var(--face) 0%, var(--face-2) 100%);
  border-top: 1px solid var(--edge-hi); border-bottom: 1px solid var(--edge-lo);
  margin-bottom: 3px;
}
.manual { grid-template-columns: 1fr; }
.module + .module, .manual + .module, .module + .manual { box-shadow: 0 -3px 0 #050506; }
.screw { position: absolute; width: 14px; height: 14px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 40% 35%, #6a6e74, #3a3d42 60%, #26282c 100%);
  box-shadow: inset 0 1px 1px #8b9096, inset 0 -1px 1px #000, 0 1px 0 #000; }
.screw::after { content: ""; position: absolute; left: 2px; right: 2px; top: 6px; height: 2px; background: #0b0c0d; transform: rotate(var(--slot, 20deg)); }
.screw.tl { left: 9px; top: 9px; } .screw.tr { right: 9px; top: 9px; }
.screw.bl { left: 9px; bottom: 9px; } .screw.br { right: 9px; bottom: 9px; }

.mhead {
  grid-column: 1 / -1; display: flex; align-items: baseline; gap: 20px; height: 66px;
  margin: 0 calc(-1 * var(--pad-x)) 30px; padding: 0 var(--pad-x) 0 calc(var(--pad-x) + 100px);
  border-bottom: 1px solid #24262a; box-shadow: 0 1px 0 #0a0b0c;
}
.mnum { font-family: var(--mono); font-size: 13px; color: var(--alu-dim); letter-spacing: .1em; }
.mname { margin: 0; font: 600 26px/1 var(--sans); letter-spacing: .18em; color: #e4e7ea; text-shadow: 0 1px 0 #000; }
.msub { font: 500 11px/1 var(--sans); letter-spacing: .2em; color: var(--alu-dim); }
.mhp { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--alu-dim); letter-spacing: .08em; }
.mhead .led { align-self: center; }

.lbl { display: block; font: 500 10.5px/1 var(--sans); letter-spacing: .16em; color: var(--alu-dim); text-transform: uppercase; margin-bottom: 10px; white-space: nowrap; }
.lbl.small { font-size: 9.5px; }
.copy p { max-width: 46ch; }
.copy p:last-child { margin-bottom: 0; }

/* lit / unlit modules */
.module .mbody, .module .jacks, .module .out-note { transition: opacity .45s ease, filter .45s ease; }
.module:not(.on):not(.panel) .mbody, .module:not(.on):not(.panel) .jacks { opacity: .38; filter: saturate(.2); }

/* ---------- LED ---------- */
.led { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 40% 35%, #5a3a26, #2a1a10 70%);
  box-shadow: inset 0 0 0 1px #000, 0 0 0 1px #2a2c30; transition: background .12s, box-shadow .12s; }
.led.on { background: radial-gradient(circle at 40% 35%, #ffd2a8, var(--orange) 55%, #c24f05 100%);
  box-shadow: inset 0 0 0 1px #7a3a10, 0 0 0 1px #2a2c30, 0 0 8px 2px rgba(255,122,26,.55); }

/* ---------- jacks ---------- */
.jacks { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 26px; padding-top: 2px; align-items: flex-start; }
.jack { position: relative; display: block; width: 72px; padding: 0; border: 0; background: none; color: var(--engr); font: inherit; text-align: center; }
.jack::before { content: ""; display: block; width: 36px; height: 36px; margin: 0 auto; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #000 0 6px, #1c1d20 6.5px 8.5px, #cfd3d7 9px 11px, #7b8087 11.5px 12.5px, #b8bcc1 13px 15px, #4a4d52 15.5px 17px, transparent 17.5px);
  box-shadow: 0 1px 0 #000, 0 0 0 1px #0d0e10; transition: box-shadow .15s; }
.jack span { display: inline-block; margin-top: 6px; padding: 0 4px; background: var(--face); font: 500 9.5px/1.2 var(--sans); letter-spacing: .14em; white-space: nowrap; }
.jack.out { position: absolute; left: var(--pad-x); bottom: 20px; }
.jack.out span { margin-top: 4px; }
.jack.near::before, .jack.armed::before { box-shadow: 0 0 0 2px var(--orange), 0 0 10px 2px rgba(255,122,26,.45); }
.jack.patched::before { box-shadow: 0 0 0 2px #7b8087, 0 0 0 3px #0d0e10; }
.jack.src::before { background: radial-gradient(circle at 50% 50%, #000 0 6px, #1c1d20 6.5px 8.5px, var(--orange) 9px 11px, #7a3a10 11.5px 12.5px, #b8bcc1 13px 15px, #4a4d52 15.5px 17px, transparent 17.5px); }
.jack.fixed { width: auto; }
.jack.fixed::before { width: 40px; height: 40px; }
.jack-led { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 72px; font: 500 9.5px/1 var(--sans); letter-spacing: .14em; color: var(--engr); }
.jack-led span { padding: 0 4px; background: var(--face); }
.jack-led .led { box-shadow: inset 0 0 0 1px #000, 0 0 0 1px #2a2c30, 0 0 0 4px var(--face); }

/* ---------- knobs ---------- */
.knobs { display: flex; gap: 26px; align-items: flex-end; flex-wrap: wrap; }
.ctl { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 92px; }
.ctl.big { width: 124px; }
.klbl { font: 500 10.5px/1 var(--sans); letter-spacing: .16em; color: var(--engr); }
.kval { font-family: var(--mono); font-size: 12.5px; color: var(--lcd); background: var(--lcd-glass); padding: 2px 6px; min-width: 56px; text-align: center; box-shadow: inset 0 0 0 1px #000, inset 0 2px 4px #000, 0 0 0 1px #26282c; }
html:not(.powered) .kval { color: var(--lcd-dim); }
.knob { position: relative; width: 64px; height: 64px; outline: none; touch-action: none; user-select: none; }
.knob.small { width: 46px; height: 46px; }
.knob.large { width: 96px; height: 96px; }
.knob .ticks { position: absolute; inset: -10px; width: calc(100% + 20px); height: calc(100% + 20px); pointer-events: none; }
.knob .arc { position: absolute; inset: -6px; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 225deg, var(--orange) 0deg var(--a, 0deg), #2a2c30 var(--a, 0deg) 270deg, transparent 270deg 360deg);
  -webkit-mask: radial-gradient(circle, transparent 0 calc(50% - 4px), #000 calc(50% - 3.5px) calc(50% - 1px), transparent calc(50% - .5px)); mask: radial-gradient(circle, transparent 0 calc(50% - 4px), #000 calc(50% - 3.5px) calc(50% - 1px), transparent calc(50% - .5px)); }
html:not(.powered) .knob .arc { background: conic-gradient(from 225deg, #55575c 0deg var(--a, 0deg), #2a2c30 var(--a, 0deg) 270deg, transparent 270deg 360deg); }
.knob .cap { position: absolute; inset: 0; border-radius: 50%;
  background:
    repeating-conic-gradient(from 0deg, #1a1b1e 0deg 6deg, #26282c 6deg 12deg),
    #1d1e21;
  box-shadow: inset 0 2px 3px #3a3d42, inset 0 -3px 4px #000, 0 3px 4px #000, 0 0 0 1px #0a0b0c; transform: rotate(var(--rot, 0deg)); transition: transform .05s linear; }
.knob .cap::before { content: ""; position: absolute; inset: 22%; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #35383d, #17181a 70%); box-shadow: inset 0 1px 1px #4a4d52; }
.knob .ptr { position: absolute; left: 50%; top: 6%; width: 3px; height: 44%; margin-left: -1.5px; background: #e8ebee; border-radius: 1px; box-shadow: 0 0 2px #000; }
.knob:focus-visible .arc { box-shadow: 0 0 0 2px var(--orange); }
.knob.dragging .cap { transition: none; }

/* ---------- slide switches ---------- */
.slide { position: relative; display: inline-flex; height: 34px; padding: 3px; background: #0b0c0d; box-shadow: inset 0 1px 3px #000, 0 0 0 1px #2a2c30; --n: 4; --pos: 0; }
.slide button { position: relative; z-index: 1; width: 52px; border: 0; background: none; color: var(--alu-dim); font: 500 10.5px/1 var(--sans); letter-spacing: .14em; padding: 0; transition: color .15s; }
.slide button[aria-checked="true"] { color: #111; }
.slide::before { content: ""; position: absolute; top: 3px; bottom: 3px; left: calc(3px + var(--pos) * (100% - 6px) / var(--n)); width: calc((100% - 6px) / var(--n)); background: linear-gradient(180deg, #e2e5e8, #aeb3b8); box-shadow: inset 0 1px 0 #fff, 0 1px 2px #000; transition: left .18s cubic-bezier(.3,.9,.3,1); }
.slide::after { content: ""; position: absolute; top: 12px; bottom: 12px; left: calc(3px + var(--pos) * (100% - 6px) / var(--n) + (100% - 6px) / var(--n) / 2 - 1px); width: 2px; background: #5f646a; transition: left .18s cubic-bezier(.3,.9,.3,1); }
.switch-block { align-self: start; }

/* ---------- rocker ---------- */
.power { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.rocker { position: relative; width: 46px; height: 82px; padding: 0; border: 0; background: #0b0c0d; box-shadow: inset 0 1px 3px #000, 0 0 0 1px #2a2c30, 0 0 0 2px #0a0b0c; font: 600 13px/1 var(--sans); color: #6c7178; }
.rocker-i, .rocker-o { position: absolute; left: 0; right: 0; text-align: center; z-index: 2; pointer-events: none; }
.rocker-i { top: 14px; } .rocker-o { bottom: 14px; }
.rocker-cap { position: absolute; left: 3px; right: 3px; height: 50%; background: linear-gradient(180deg, #2e3136, #1a1b1e); box-shadow: inset 0 1px 0 #4a4d52, 0 2px 3px #000; transition: top .12s, bottom .12s, background .12s; }
.rocker[aria-checked="false"] .rocker-cap { top: 3px; bottom: auto; }
.rocker[aria-checked="true"] .rocker-cap { top: auto; bottom: 3px; background: linear-gradient(180deg, #202226, #17181a); }
.rocker[aria-checked="true"] .rocker-i { color: var(--orange); text-shadow: 0 0 8px rgba(255,122,26,.7); }
.rocker[aria-checked="false"] .rocker-o { color: var(--alu); }
.rocker:focus-visible { box-shadow: inset 0 1px 3px #000, 0 0 0 2px var(--orange); }

/* ---------- LCD & windows ---------- */
.lcd { position: relative; padding: 10px 14px; background: var(--lcd-glass); color: var(--lcd); font-family: var(--mono); font-size: 16px; line-height: 24px; letter-spacing: .04em; white-space: nowrap; overflow: hidden;
  box-shadow: inset 0 0 0 1px #000, inset 0 4px 12px rgba(0,0,0,.7), 0 0 0 3px #26282c, 0 0 0 4px #08090a; text-shadow: 0 0 6px rgba(157,255,176,.45); }
.lcd::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 1px, transparent 1px 3px); }
.lcd-row { height: 24px; }
.lcd.tall { line-height: 22px; font-size: 14.5px; }
.lcd.tall .lcd-row { height: 22px; }
html:not(.powered) .lcd { color: transparent; text-shadow: none; background: #080d09; }
html:not(.powered) .lcd-input { color: transparent; }
.lcd .rt { display: inline-block; margin-right: 12px; opacity: .28; transition: opacity .3s; }
.lcd .rt.lit { opacity: 1; }
.lcd .rt.lit::before { content: "▸"; margin-right: 2px; }
.lcd-input { width: 15ch; border: 0; background: none; color: var(--lcd); font: inherit; letter-spacing: inherit; text-shadow: inherit; outline: none; padding: 0; caret-color: var(--lcd); }
.lcd-input:focus { background: rgba(157,255,176,.08); }
.name-row { display: flex; }
.scope, .lcdwin { display: block; width: 100%; height: auto; background: var(--lcd-glass);
  box-shadow: inset 0 0 0 1px #000, 0 0 0 3px #26282c, 0 0 0 4px #08090a; }
.window-block.wide { grid-area: win; }

/* ---------- keybed ---------- */
.keybed { position: relative; display: flex; height: 150px; padding: 0; background: #0b0c0d; box-shadow: inset 0 0 0 1px #000, 0 0 0 3px #26282c, 0 0 0 4px #08090a; user-select: none; touch-action: none; }
.key { position: relative; border: 0; padding: 0; font: inherit; color: #5c6167; }
.key.white { flex: 1 1 0; margin: 2px 1px 2px; background: linear-gradient(180deg, #d9dcdf 0%, #e6e8ea 85%, #b9bcc0 100%); box-shadow: inset 0 -4px 0 #a9adb2, inset 1px 0 0 #fff; }
.key.white:active, .key.white.down { background: linear-gradient(180deg, #b7bbbf 0%, #c6c9cc 90%, #9fa3a8 100%); box-shadow: inset 0 -2px 0 #8f9398; transform: translateY(1px); }
.key.black { position: absolute; top: 2px; width: 7%; height: 60%; z-index: 2; background: linear-gradient(180deg, #2a2c30, #121315 80%, #000); box-shadow: inset 0 -6px 0 #000, inset 1px 0 0 #3a3d42, 2px 2px 3px rgba(0,0,0,.6); color: #8d939a; }
.key.black:active, .key.black.down { background: linear-gradient(180deg, #1c1e21, #0b0c0d 80%, #000); box-shadow: inset 0 -3px 0 #000; }
.key .kl { position: absolute; bottom: 8px; left: 0; right: 0; text-align: center; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; pointer-events: none; }
.key .kn { position: absolute; bottom: 26px; left: 0; right: 0; text-align: center; font: 500 9px/1 var(--sans); letter-spacing: .1em; opacity: .6; pointer-events: none; }
.key.black .kl { bottom: 12px; }
.key.black .kn { display: none; }
.key.white.on { box-shadow: inset 0 -4px 0 #a9adb2, inset 1px 0 0 #fff, inset 0 0 0 2px var(--orange); }
.key.black.on { box-shadow: inset 0 -6px 0 #000, inset 0 0 0 2px var(--orange); }

/* ---------- 00 · panel ---------- */
.panel .panel-grid { grid-column: 2; display: grid; grid-template-columns: minmax(0, 1.1fr) 120px minmax(0, 1fr); column-gap: 32px; row-gap: 26px;
  grid-template-areas: "brand power lcd" "brand power scope" "keys keys keys"; }
.panel { grid-template-columns: 0 1fr; column-gap: 0; }
.panel .mhead { padding-left: var(--pad-x); }
.brand { grid-area: brand; padding-right: 10px; }
.eyebrow { font: 500 11px/1 var(--sans); letter-spacing: .22em; color: var(--alu-dim); text-transform: uppercase; margin-bottom: 26px; }
.logo { margin: 0 0 22px; font: 400 clamp(44px, 6vw, 68px)/.95 var(--logo); letter-spacing: -.01em; color: #e9ecef; text-shadow: 0 1px 0 #fff2, 0 -1px 0 #000, 0 2px 2px #000; }
.logo #logo-b { color: var(--orange); text-shadow: 0 0 22px rgba(255,122,26,.35), 0 -1px 0 #000; }
.standfirst { font-size: 18px; line-height: 1.45; color: #cfd3d7; max-width: 44ch; margin-bottom: 18px; }
.hint { font-size: 13.5px; color: var(--alu-dim); max-width: 46ch; }
.power { grid-area: power; justify-self: center; align-self: start; padding-top: 8px; }
.lcd-block { grid-area: lcd; }
.scope-block { grid-area: scope; }
.keys-block { grid-area: keys; }
.out-note { position: absolute; left: calc(var(--pad-x) + 88px); right: var(--pad-x); bottom: 36px; font-size: 13.5px; color: var(--alu-dim); }
.out-note p { margin: 0; }

/* ---------- 01 · osc ---------- */
.mbody { position: relative; z-index: 1; grid-column: 2; display: grid; gap: 28px 32px; align-items: start; }
.osc-body { grid-template-columns: minmax(300px, 380px) 300px minmax(0, 1fr); grid-template-areas: "copy win knobs" "copy sw lfo"; }
.osc-body .copy { grid-area: copy; } .osc-body .window-block { grid-area: win; } .osc-body .switch-block { grid-area: sw; } .osc-body .knobs { grid-area: knobs; flex-wrap: nowrap; gap: 18px; justify-content: flex-end; }
.osc-body .knobs .ctl { width: 86px; }
.lfo-strip { grid-area: lfo; display: flex; align-items: flex-end; gap: 18px; padding: 12px 16px 12px; background: #101113; box-shadow: inset 0 0 0 1px #000, 0 0 0 1px #24262a; align-self: end; justify-self: start; }
.lfo-strip .lbl { position: absolute; margin: 0; }
.lfo-strip { position: relative; padding-top: 30px; }
.lfo-strip .lbl { top: 10px; left: 16px; }
.lfo-strip .led { margin-bottom: 30px; }
.lfo-strip .ctl { width: 70px; }

/* ---------- 02 · vcf ---------- */
.vcf-body { grid-template-columns: 560px minmax(0, 1fr); grid-template-areas: "win copy" "knobs sw"; }
.vcf-body .copy { grid-area: copy; align-self: end; } .vcf-body .switch-block { grid-area: sw; align-self: end; } .vcf-body .knobs { grid-area: knobs; }

/* ---------- 03 · env ---------- */
.env-body { grid-template-columns: minmax(0, 1fr) 380px; grid-template-areas: "copy win" "knobs win"; }
.env-body .copy { grid-area: copy; align-self: end; } .env-body .window-block { grid-area: win; } .env-body .knobs { grid-area: knobs; }
.knobs.four { gap: 28px; }

/* ---------- 04 · dly ---------- */
.dly-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "chaser copy" "knobs copy"; }
.dly-body .copy { grid-area: copy; align-self: center; } .chaser-block { grid-area: chaser; } .dly-body .knobs { grid-area: knobs; }
.chaser { display: flex; gap: 14px; padding: 12px 16px; background: #101113; box-shadow: inset 0 0 0 1px #000, 0 0 0 1px #24262a; width: max-content; max-width: 100%; }
.chaser i { display: block; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #5a3a26, #2a1a10 70%); box-shadow: inset 0 0 0 1px #000; transition: background .08s, box-shadow .08s; }
.chaser i.on { background: radial-gradient(circle at 40% 35%, #ffd2a8, var(--orange) 55%, #c24f05); box-shadow: inset 0 0 0 1px #7a3a10, 0 0 8px 2px rgba(255,122,26,.5); }

/* ---------- 05 · out ---------- */
.out-body { grid-template-columns: 560px minmax(0, 1fr) auto; grid-template-areas: "win copy copy" "sw meter knobs"; }
.out-body .copy { grid-area: copy; align-self: end; } .out-body .switch-block { grid-area: sw; } .meter-block { grid-area: meter; } .out-body .knobs { grid-area: knobs; justify-self: end; }
.meter { display: flex; gap: 8px; align-items: flex-end; height: 64px; padding: 10px 14px; background: #101113; box-shadow: inset 0 0 0 1px #000, 0 0 0 1px #24262a; width: max-content; }
.meter i { display: block; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #5a3a26, #2a1a10 70%); box-shadow: inset 0 0 0 1px #000; }
.meter i.on { background: radial-gradient(circle at 40% 35%, #ffd2a8, var(--orange) 55%, #c24f05); box-shadow: inset 0 0 0 1px #7a3a10, 0 0 6px 1px rgba(255,122,26,.45); }
.meter i:nth-child(n+11).on { background: radial-gradient(circle at 40% 35%, #fff, #ffb27a 55%, #c24f05); }

/* ---------- manual (paper) ---------- */
.manual { padding-bottom: 0; }
.paper { position: relative; z-index: 1; width: min(100%, 980px); margin: 0 auto -44px; padding: 44px 56px 90px; background: linear-gradient(180deg, #efe9da, #e8e1d0); color: #1d1b17; box-shadow: 0 2px 0 #fff8 inset, 0 18px 30px -10px rgba(0,0,0,.8), 0 0 0 1px #0006; }
.paper::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(115deg, transparent 0 7px, rgba(0,0,0,.012) 7px 8px); }
.paper-head, .paper-foot { display: flex; justify-content: space-between; font: 500 10.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: #5a5548; }
.paper-head { border-bottom: 1px solid #1d1b17; padding-bottom: 10px; margin-bottom: 30px; }
.paper h2 { margin: 0 0 28px; font: 600 34px/1 var(--sans); letter-spacing: .02em; color: #1d1b17; }
.paper .secno { display: inline-block; min-width: 56px; font-family: var(--mono); font-weight: 400; color: #8a8270; }
.paper h3 { margin: 0 0 8px; font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #1d1b17; padding-top: 8px; border-top: 1px solid #b9b19f; }
.paper-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.spec { width: 100%; border-collapse: collapse; margin-bottom: 26px; font-size: 13.5px; line-height: 1.4; }
.spec th { width: 108px; padding: 5px 10px 5px 0; text-align: left; vertical-align: top; font: 500 10.5px/1.6 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #5a5548; border-bottom: 1px dotted #b9b19f; }
.spec td { padding: 5px 0; vertical-align: top; border-bottom: 1px dotted #b9b19f; font-family: var(--sans); }
.dims { margin: 0 0 12px; padding: 8px 0 0; }
.dims svg { display: block; width: 100%; max-width: 360px; height: auto; }
.fine { font-size: 12px; line-height: 1.45; color: #5a5548; margin: 0; }
.paper-foot { border-top: 1px solid #1d1b17; padding-top: 10px; margin-top: 8px; }
.pocket-lip { position: relative; z-index: 2; height: 76px; margin: 0 calc(-1 * var(--pad-x)); background: linear-gradient(180deg, #1e2024 0, #141517 6px, var(--face-2)); box-shadow: 0 -1px 0 #3a3d42, 0 -3px 8px rgba(0,0,0,.7); display: flex; align-items: center; justify-content: center; }
.pocket-lip span { font: 500 10.5px/1 var(--sans); letter-spacing: .22em; color: var(--alu-dim); }

/* ---------- 06 · patch (ending) ---------- */
.patch-body { grid-template-columns: minmax(0, 1fr) 500px; grid-template-areas: "copy lcd" "keys keys" "actions serial"; }
.patch-body .copy { grid-area: copy; align-self: center; } .patch-body .lcd-block { grid-area: lcd; } .patch-body .actions { grid-area: actions; align-self: end; } .patch-body .keys-block { grid-area: keys; } .patch-body .serial { grid-area: serial; }
.patch-body .keybed { height: 120px; }
.actions { display: flex; gap: 32px; align-items: flex-start; }
.pbtn-block { display: flex; flex-direction: column; gap: 10px; }
.pbtn { position: relative; display: flex; flex-direction: column; justify-content: center; width: 176px; height: 78px; padding: 0 18px 0 40px; border: 0; text-decoration: none; color: #e4e7ea; text-align: left;
  background: linear-gradient(180deg, #2a2c30, #1a1b1e 60%, #141517); box-shadow: inset 0 1px 0 #4a4d52, inset 0 -2px 0 #000, 0 3px 0 #000, 0 0 0 1px #0a0b0c; font: inherit; }
.pbtn:active, .pbtn.pressed { transform: translateY(2px); box-shadow: inset 0 1px 0 #4a4d52, inset 0 -2px 0 #000, 0 1px 0 #000, 0 0 0 1px #0a0b0c; }
.pbtn .led { position: absolute; left: 16px; top: 50%; margin-top: -5px; }
.pbtn span { font: 600 18px/1 var(--sans); letter-spacing: .2em; }
.pbtn small { display: block; margin-top: 6px; font-family: var(--mono); font-size: 11.5px; color: var(--alu-dim); letter-spacing: .06em; }
.pbtn:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.lineout { position: absolute; right: 40px; bottom: 20px; display: flex; align-items: flex-end; gap: 22px; }
.lineout .lbl { margin: 0 8px 14px 0; }
.serial { display: flex; justify-content: flex-end; align-self: end; }
.serial-plate { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px 26px 14px; background: linear-gradient(180deg, #d7dbdf, #b6bbc0 60%, #c6cacf); color: #1c1e21; box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 #7b8087, 0 2px 4px #000, 0 0 0 1px #0a0b0c; max-width: 620px; }
.serial-plate::before, .serial-plate::after { content: ""; position: absolute; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #f2f4f6, #8f949a 70%); box-shadow: inset 0 0 0 1px #5b6067, 0 1px 0 #fff; }
.serial-plate::before { left: 8px; } .serial-plate::after { right: 8px; }
.sp-brand { font: 400 15px/1 var(--logo); letter-spacing: .08em; }
.sp-row { font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; }
.sp-row b { font: 500 9.5px/1 var(--sans); letter-spacing: .16em; color: #4a4f55; margin: 0 4px 0 10px; }
.sp-row b:first-child { margin-left: 0; }
.sp-row.fine { font-family: var(--sans); font-size: 11.5px; color: #3a3f45; letter-spacing: 0; margin-top: 4px; }

/* ---------- cables ---------- */
#cables { position: absolute; left: 0; top: 0; width: 100%; overflow: visible; pointer-events: none; z-index: 5; }
#cables path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
#cables .shadow { stroke: #000; stroke-width: 9; opacity: .5; }
#cables .body { stroke: var(--orange); stroke-width: 6; }
#cables .hi { stroke: var(--orange-hi); stroke-width: 1.6; opacity: .55; }
#cables .cv .body { stroke: var(--cable-cv); }
#cables .cv .hi { stroke: #fff; opacity: .5; }
.trace { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.trace path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.trace .groove { stroke: #0a0b0c; stroke-width: 5; }
.trace .lit { stroke: var(--orange); stroke-width: 2; filter: drop-shadow(0 0 3px rgba(255,122,26,.7)); }

/* ---------- pointer plug ---------- */
#plug { position: fixed; left: 0; top: 0; z-index: 50; pointer-events: none; opacity: 0; transform-origin: 12px 4px; will-change: transform; }
html.fine #plug.show { opacity: 1; }
#plug svg { display: block; filter: drop-shadow(2px 4px 3px rgba(0,0,0,.6)); }
#jacktip { position: absolute; left: 30px; top: 8px; padding: 5px 9px; background: linear-gradient(180deg, #d7dbdf, #b6bbc0); color: #1c1e21; font: 500 10px/1 var(--sans); letter-spacing: .14em; white-space: nowrap; box-shadow: 0 2px 4px #000, 0 0 0 1px #0a0b0c; opacity: 0; transition: opacity .12s; }
#plug.snap #jacktip { opacity: 1; }
#plug.dragging svg { filter: drop-shadow(3px 8px 5px rgba(0,0,0,.7)); }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .knob .cap { transition: none; }
}

/* ---------- widths ---------- */
@media (max-width: 1180px) {
  .osc-body { grid-template-columns: minmax(0, 1fr) 300px; grid-template-areas: "copy win" "knobs sw" "lfo lfo"; }
  .vcf-body { grid-template-columns: minmax(0, 1fr); grid-template-areas: "win" "copy" "knobs" "sw"; }
  .vcf-body .window-block.wide { max-width: 560px; }
  .out-body { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "win win" "copy copy" "sw meter" "knobs knobs"; }
  .out-body .knobs { justify-self: start; }
  .patch-body { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "lcd" "actions" "keys" "lineout"; }
  .panel .panel-grid { grid-template-columns: minmax(0, 1fr) 100px; grid-template-areas: "brand power" "lcd lcd" "scope scope" "keys keys"; }
}
@media (max-width: 720px) {
  :root { --rail-w: 12px; --pad-x: 16px; }
  body { font-size: 14.5px; }
  .rack { padding-top: 16px; }
  .module, .manual { grid-template-columns: 1fr; column-gap: 0; padding-bottom: 96px; }
  .mhead { height: 56px; gap: 12px; margin-bottom: 22px; padding-left: calc(var(--pad-x) + 76px); }
  .panel .mhead { padding-left: calc(var(--pad-x) + 14px); }
  .eyebrow { font-size: 10px; letter-spacing: .16em; margin-bottom: 18px; }
  .mname { font-size: 20px; letter-spacing: .14em; } .msub { display: none; }
  .screw { width: 10px; height: 10px; } .screw.tl, .screw.tr { top: 7px; } .screw.tl, .screw.bl { left: 6px; } .screw.tr, .screw.br { right: 6px; } .screw.bl, .screw.br { bottom: 7px; }
  .jacks { flex-direction: row; gap: 18px; margin-bottom: 24px; }
  .mbody { grid-column: 1; gap: 24px; }
  .osc-body, .vcf-body, .env-body, .dly-body, .out-body, .patch-body { grid-template-columns: minmax(0, 1fr); grid-template-areas: none; }
  .osc-body > *, .vcf-body > *, .env-body > *, .dly-body > *, .out-body > *, .patch-body > * { grid-area: auto !important; }
  .copy { order: -1; }
  .knobs, .knobs.four { gap: 18px 6px; justify-content: space-between; }
  .ctl { width: 78px; } .ctl.big { width: 100px; } .knob { width: 56px; height: 56px; } .knob.large { width: 76px; height: 76px; }
  .panel { grid-template-columns: 1fr; }
  .panel .panel-grid { grid-column: 1; grid-template-columns: 1fr; grid-template-areas: "brand" "power" "lcd" "scope" "keys"; row-gap: 22px; }
  .logo { font-size: 46px; }
  .standfirst { font-size: 16px; }
  .power { justify-self: start; flex-direction: row; align-items: center; gap: 16px; padding: 0; }
  .power .lbl { margin: 0; }
  .lcd { font-size: 13.5px; padding: 8px 10px; }
  .lcd .rt { margin-right: 6px; }
  .lcd.tall { font-size: 12px; letter-spacing: .02em; }
  .lcd-input { width: 12ch; }
  .keybed { height: 118px; }
  .key .kn { display: none; }
  .out-note { left: calc(var(--pad-x) + 80px); bottom: 30px; right: 16px; font-size: 12.5px; }
  .jack.out { left: var(--pad-x); bottom: 18px; }
  .lfo-strip { width: 100%; justify-content: space-between; }
  .chaser { gap: 8px; padding: 10px 12px; } .chaser i { width: 11px; height: 11px; }
  .paper { padding: 22px 18px 70px; margin-bottom: -36px; }
  .paper h2 { font-size: 26px; } .paper .secno { min-width: 40px; }
  .paper-cols { grid-template-columns: 1fr; }
  .spec { font-size: 13px; } .spec th { width: 84px; }
  .pocket-lip { height: 60px; } .pocket-lip span { font-size: 9px; letter-spacing: .16em; }
  .actions { flex-direction: column; gap: 20px; }
  .lineout { right: 16px; bottom: 18px; gap: 14px; }
  .serial { justify-content: flex-start; }
  .serial-plate { padding: 12px 22px; }
  .sp-row { font-size: 11px; }
  .trace { display: none; }
  #plug { display: none; }
}
