/* ═══════════════════════════════════════════════════════════════
   Reploid Services — rack stylesheet
   dark brushed aluminium Eurorack · cream Cwejman panel · mono silkscreen
   ═══════════════════════════════════════════════════════════════ */

:root {
  --rack-black: #0B0C0E;
  --panel: #16181C;
  --panel-raised: #1E2126;
  --panel-deep: #101216;
  --rail: #2A2E34;
  --rail-hi: #3A3F47;
  --cream: #F3EEDC;
  --cream-2: #E8E4D8;
  --panel-text: #E8E4D8;
  --muted: #8C8F96;
  --signal: #E03A2B;
  --signal-dark: #B32B20;
  --green: #7CE0A0;
  --amber: #FFB23E;
  --scope-blue: #6ECBFF;
  --yellow: #F2C94C;
  --cyan: #4FD1D9;
  --magenta: #D96BE0;
  --white: #F5F5F2;

  --display: "Archivo Narrow", "Barlow Condensed", "Arial Narrow", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --body: "IBM Plex Sans", system-ui, -apple-system, sans-serif;

  --gap: 8px;
  --rail-h: 14px;
  --radius: 2px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--rack-black);
  color: var(--panel-text);
  font-family: var(--body);
  font-size: 1.02rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 18% -8%, rgba(255,255,255,.045), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; line-height: 1; }
p { margin: 0; }
.mono { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }

:focus-visible {
  outline: 2px solid var(--scope-blue);
  outline-offset: 3px;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--cream); color: #14161a;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  padding: 10px 16px; transition: top .18s var(--ease);
}
.skip-link:focus { top: 8px; }

/* ── shared hardware atoms ───────────────────────────────── */

.rail {
  height: var(--rail-h);
  position: relative;
  background:
    linear-gradient(180deg, #3A3F47 0%, #22262C 42%, #14161A 70%, #2A2E34 100%);
  border-top: 1px solid #454B54;
  border-bottom: 1px solid #08090B;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 3px 10px rgba(0,0,0,.6);
}
.rail::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(90deg,
    transparent 0 26px,
    rgba(0,0,0,.55) 26px 34px,
    rgba(255,255,255,.10) 34px 35px);
  opacity: .5;
}

.led {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: #3a3f47; flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.6);
}
.led--green.is-on, .led--green.is-pulse { background: var(--green); box-shadow: 0 0 6px rgba(124,224,160,.85), 0 0 14px rgba(124,224,160,.35); }
.led--amber.is-on { background: var(--amber); box-shadow: 0 0 6px rgba(255,178,62,.85); }
.led--red.is-on { background: var(--signal); box-shadow: 0 0 6px rgba(224,58,43,.9), 0 0 14px rgba(224,58,43,.4); }
.led--green.is-pulse { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .led--green.is-pulse { animation: none; } }

.screw {
  position: absolute; width: 11px; height: 11px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #6A707A, #33383F 55%, #14171B 100%);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.75), 0 1px 1px rgba(255,255,255,.06);
  z-index: 3;
}
.screw::before, .screw::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 7px; height: 1.4px; background: #0E1013; border-radius: 1px;
  transform: translate(-50%,-50%) rotate(38deg);
  box-shadow: 0 .6px 0 rgba(255,255,255,.14);
}
.screw::after { transform: translate(-50%,-50%) rotate(-52deg); }
.screw--tl { top: 8px; left: 8px; }
.screw--tr { top: 8px; right: 8px; }
.screw--bl { bottom: 8px; left: 8px; }
.screw--br { bottom: 8px; right: 8px; }

/* ▪ buttons */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .13em; text-transform: uppercase;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .12s var(--ease), box-shadow .18s var(--ease);
}
.btn__icon { width: 13px; height: 13px; flex: 0 0 auto; }
.btn--primary {
  background: var(--signal); color: #FFF3EE;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), inset 0 -2px 0 rgba(0,0,0,.28), 0 3px 0 #8E1F16;
}
.btn--primary:hover, .btn--primary:focus-visible {
  background: #EF4A39;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), inset 0 -2px 0 rgba(0,0,0,.25), 0 3px 0 #8E1F16, 0 0 22px rgba(224,58,43,.4);
  transform: translateY(-1px);
}
.btn--primary:active { transform: translateY(1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 1px 0 #8E1F16; }
.btn--ghost {
  background: transparent; color: var(--panel-text);
  border-color: #3A3F47;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.btn--ghost:hover, .btn--ghost:focus-visible { border-color: var(--cream-2); color: #fff; background: rgba(255,255,255,.05); }
.btn--full { width: 100%; justify-content: center; }
.btn--big { padding: 15px 26px; font-size: .78rem; }

/* ▪ placeholder plate */
.ph {
  font-family: var(--mono); font-size: .72em; letter-spacing: .09em; text-transform: uppercase;
  color: var(--amber);
  background: rgba(255,178,62,.08);
  border: 1px solid rgba(255,178,62,.32);
  border-bottom-style: dotted;
  padding: 1px 5px;
  border-radius: 2px;
  white-space: nowrap;
  text-shadow: 0 0 12px rgba(255,178,62,.25);
}

/* ▪ jacks */
.jack {
  width: 16px; height: 16px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 40% 32%, #4A4F57, #1B1E23 62%, #0C0E11 100%);
  box-shadow: 0 0 0 1.5px var(--rail-hi), inset 0 0 0 1px rgba(0,0,0,.9);
  flex: 0 0 auto;
  transition: box-shadow .18s var(--ease);
}
.jack__hole {
  width: 6px; height: 6px; border-radius: 50%;
  background: #050607;
  box-shadow: inset 0 0 2px #000;
}
.jack--out { box-shadow: 0 0 0 1.5px rgba(224,58,43,.75), inset 0 0 0 1px rgba(0,0,0,.9); }
.jack--green { box-shadow: 0 0 0 1.5px rgba(124,224,160,.7), inset 0 0 0 1px rgba(0,0,0,.9); }
.jack--hot { box-shadow: 0 0 0 1.5px rgba(224,58,43,.9), 0 0 10px rgba(224,58,43,.35), inset 0 0 0 1px rgba(0,0,0,.9); }
.jack-btn:hover .jack, a:hover > .jack { box-shadow: 0 0 0 1.5px var(--signal), 0 0 12px rgba(224,58,43,.5), inset 0 0 0 1px rgba(0,0,0,.9); }

/* ▪ knob */
.knob {
  --knob-size: 78px;
  --knob-rot: 0deg;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: none; border: 0; padding: 0;
  cursor: grab;
  touch-action: none;
  position: relative;
}
.knob:active { cursor: grabbing; }
.knob--lg { --knob-size: 96px; }
.knob--sm { --knob-size: 42px; }
.knob__dial { position: relative; width: var(--knob-size); height: var(--knob-size); }
.knob__dial svg { width: 100%; height: 100%; transform: rotate(135deg); overflow: visible; }
.knob__track { fill: none; stroke: #33383F; stroke-width: 3.5; stroke-dasharray: 236 400; stroke-linecap: round; }
.knob__arc {
  fill: none; stroke: var(--signal); stroke-width: 3.5; stroke-linecap: round;
  stroke-dasharray: 236 400;
  stroke-dashoffset: 236;
  filter: drop-shadow(0 0 3px rgba(224,58,43,.7));
  transition: stroke-dashoffset .12s linear;
}
.knob__ticks line { stroke: #4A5058; stroke-width: 1.2; }
.knob__body {
  position: absolute; inset: 16%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 42% 32%, #2E333A 0%, #1A1D22 58%, #0C0E11 100%);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,.12),
    inset 0 -3px 6px rgba(0,0,0,.85),
    0 2px 5px rgba(0,0,0,.7);
  transition: transform .12s var(--ease);
  transform: rotate(var(--knob-rot));
}
.knob__body::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255,255,255,.055) 0deg 2deg, transparent 2deg 5deg);
  opacity: .8;
}
.knob__pointer {
  position: absolute; left: 50%; top: 9%;
  width: 2.5px; height: 34%;
  background: #F2F0EA; border-radius: 2px;
  transform: translateX(-50%);
  box-shadow: 0 0 6px rgba(255,255,255,.4);
}
.knob__meta { display: flex; align-items: baseline; gap: 6px; }
.knob__label { color: var(--muted); font-size: .62rem; }
.knob__value { color: var(--cream); font-size: .78rem; font-weight: 500; }
.knob__hint { color: #5C616A; font-size: .54rem; letter-spacing: .12em; }
.knob:focus-visible .knob__body { outline: 2px solid var(--scope-blue); outline-offset: 3px; }
.knob:focus { outline: none; }

/* ═══════════ HEADER ═══════════ */

.rack-header {
  position: sticky; top: 0; z-index: 90;
  background: linear-gradient(180deg, #101216 0%, #0B0C0E 100%);
  border-bottom: 1px solid #000;
  box-shadow: 0 6px 24px rgba(0,0,0,.65);
  backdrop-filter: blur(6px);
}
.rack-header__inner {
  max-width: 1180px; margin: 0 auto;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 9px 18px;
}
.wordmark { display: flex; align-items: flex-start; gap: 9px; }
.wordmark__mark {
  width: 12px; height: 12px; margin-top: 5px; flex: 0 0 auto;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #FF6A57, var(--signal) 55%, #8E1F16 100%);
  box-shadow: 0 0 10px rgba(224,58,43,.7), inset 0 1px 0 rgba(255,255,255,.4);
}
.wordmark__text {
  font-family: var(--display); font-weight: 700; font-size: 1.5rem;
  line-height: .86; letter-spacing: .015em; text-transform: none; color: #fff;
}
.wordmark__text em { display: block; font-style: normal; font-weight: 500; }

.bench-note { border-left: 1px solid #2A2E34; padding-left: 16px; }
.bench-note p { font-size: .66rem; line-height: 1.45; color: var(--muted); }
.bench-note__loc { color: #6C7078; margin-top: 2px; font-size: .6rem !important; letter-spacing: .02em; }

.chain-nav ul { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.chain-nav a {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase;
  color: #A7ABB3;
  padding: 6px 7px;
  border-radius: 2px;
  transition: color .16s var(--ease), background .16s var(--ease);
}
.chain-nav a:hover, .chain-nav a:focus-visible { color: #fff; background: rgba(255,255,255,.06); }
.chain-nav a:hover .led { background: var(--signal); box-shadow: 0 0 7px rgba(224,58,43,.9); }
.chain-nav a.is-current { color: #fff; }
.chain-nav a.is-current .led { background: var(--signal); box-shadow: 0 0 8px rgba(224,58,43,.95); }

.header-tools { display: flex; align-items: center; gap: 12px; }

.lang-toggle {
  display: inline-flex; align-items: center;
  border: 1px solid #34383F; border-radius: 2px;
  background: #14161A; padding: 2px;
  cursor: pointer;
}
.lang-toggle__opt {
  font-family: var(--mono); font-size: .64rem; letter-spacing: .08em;
  padding: 3px 7px; color: #71767E; border-radius: 1px;
  transition: all .16s var(--ease);
}
.lang-toggle__opt.is-active { background: var(--cream); color: #16181C; font-weight: 600; }

.jack-btn { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); }
.jack-btn__label { font-size: .68rem; letter-spacing: .08em; color: var(--amber); }
.jack-btn:hover .jack-btn__label { color: #FFD08A; }

.burger { display: none; width: 34px; height: 30px; border: 1px solid #34383F; background: #14161A; border-radius: 2px; cursor: pointer; padding: 0 7px; }
.burger span { display: block; height: 2px; background: var(--cream-2); margin: 4px 0; transition: transform .2s var(--ease), opacity .2s var(--ease); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 58px 0 auto 0; z-index: 89;
  background: #101216;
  border-bottom: 1px solid #2A2E34;
  padding: 14px 18px 20px;
  box-shadow: 0 18px 32px rgba(0,0,0,.7);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav li { border-bottom: 1px solid #1E2126; }
.mobile-nav a {
  display: flex; gap: 12px; align-items: baseline;
  padding: 13px 2px;
  font-family: var(--display); font-size: 1.02rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--cream-2);
}
.mobile-nav a .mono { color: var(--signal); font-size: .66rem; }
.mobile-nav__note { margin-top: 14px; color: #5F646C; font-size: .6rem; }

/* ═══════════ RACK LAYOUT ═══════════ */

body { position: relative; }

.rack {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 10px 0;
  display: flex; flex-direction: column; gap: 10px;
  position: relative;
}

.row { position: relative; }
.row__rail { margin-bottom: var(--gap); }
.row__grid { display: grid; gap: var(--gap); }
.row__grid--osc { grid-template-columns: minmax(0, 2.05fr) minmax(0, 1fr); }
.row__grid--filter { grid-template-columns: minmax(0, 2.6fr) minmax(0, 1fr); }
.row__grid--env { grid-template-columns: minmax(0, 2.05fr) minmax(0, 1fr); }
.row__grid--scope { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
.row__grid--vca { grid-template-columns: minmax(0, 1fr); }

.module {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,.022) 0%, transparent 22%),
    var(--panel);
  border: 1px solid #2E3239;
  border-top-color: #3B4048;
  border-bottom-color: #0A0B0D;
  border-radius: var(--radius);
  padding: 14px 16px 18px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.055),
    inset 0 -1px 0 rgba(0,0,0,.6),
    0 4px 14px rgba(0,0,0,.45);
}
.module::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: var(--radius);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
  opacity: .5;
  mix-blend-mode: overlay;
}
.module.is-lit { border-color: #45383A; box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 0 0 1px rgba(224,58,43,.14), 0 6px 20px rgba(0,0,0,.5); }

/* ▪ module plate (naamplaatje) */
.module__plate {
  display: flex; align-items: center; gap: 10px;
  padding: 0 0 10px;
  border-bottom: 1px solid #262A30;
  margin-bottom: 14px;
  position: relative; z-index: 2;
}
.module__plate--sm { padding-bottom: 8px; margin-bottom: 12px; }
.plate__no { color: #5E636B; font-size: .6rem; }
.plate__name {
  font-family: var(--display); font-weight: 700; font-size: .96rem;
  letter-spacing: .1em; text-transform: uppercase; color: #C9CDD4;
  white-space: nowrap;
}
.plate__name--sm { font-size: .82rem; }
.plate__name--dark { color: #16181C; }
.plate__desc { color: #5E636B; }
.hp-marks { display: flex; gap: 2px; flex: 1; justify-content: flex-end; align-items: center; }
.hp-marks i { width: 1px; height: 6px; background: #34383F; display: block; }
.plate__led { display: inline-flex; align-items: center; gap: 5px; margin-left: 6px; }
.plate__ledtxt { color: #6D727A; font-size: .56rem; }

/* ═══════════ 01 · OSC ═══════════ */

.module--osc {
  overflow: hidden;
  --osc-photo-opacity: .28;
}
.module--osc::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("assets/images/img-02.jpg");
  background-size: cover; background-position: center 62%;
  filter: grayscale(1) contrast(1.15) brightness(.72);
  opacity: var(--osc-photo-opacity, .28);
  z-index: 0;
  mask-image: radial-gradient(120% 90% at 78% 20%, #000 0%, rgba(0,0,0,.45) 55%, transparent 85%);
  -webkit-mask-image: radial-gradient(120% 90% at 78% 20%, #000 0%, rgba(0,0,0,.45) 55%, transparent 85%);
}
.module--osc > * { position: relative; z-index: 2; }

.osc-body { padding: 4px 4px 0; }
.eyebrow { color: var(--signal); font-size: .66rem; margin-bottom: 12px; letter-spacing: .14em; }

.display-xl {
  font-size: clamp(2.5rem, 6.1vw, 4.5rem);
  line-height: .9;
  letter-spacing: .02em;
  color: #F6F3EA;
  text-shadow: 0 2px 0 rgba(0,0,0,.5);
  margin-bottom: 16px;
}
.lede { font-size: 1.04rem; max-width: 52ch; color: #BEBFC1; line-height: 1.6; }
.osc-loc { margin-top: 12px; color: #6B7078; font-size: .64rem; }

.osc-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 6px; align-items: center; }
.osc-out-jack { display: inline-flex; align-items: center; gap: 7px; margin-left: 4px; color: #6D727A; }
.osc-out-jack .mono { font-size: .52rem; }

.osc-knobwrap {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid #262A30;
}
.osc-wave { flex: 1 1 220px; min-width: 190px; }
.osc-wave svg { width: 100%; height: 54px; display: block; }
.wave-path {
  fill: none; stroke: var(--green); stroke-width: 1.8;
  filter: drop-shadow(0 0 4px rgba(124,224,160,.7));
  stroke-dasharray: 900; stroke-dashoffset: 0;
  animation: waveIn 2.4s var(--ease) both;
}
@keyframes waveIn { from { stroke-dashoffset: 900; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .wave-path { animation: none; } }
.osc-wave__cap { color: #5F646C; font-size: .58rem; margin-top: 6px; }

.osc-specs { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px; font-size: .6rem; color: #767B83; }
.osc-specs li { display: flex; align-items: center; gap: 6px; }
.osc-specs span:first-child { color: #4E535B; }

/* ▪ PWR module */
.pwr-body { display: flex; flex-direction: column; gap: 14px; }
.pwr-switch { display: flex; align-items: center; gap: 10px; color: #6D727A; font-size: .58rem; }
.toggle-switch {
  width: 42px; height: 22px; border-radius: 2px; position: relative;
  background: linear-gradient(180deg, #2A2E34, #14161A);
  border: 1px solid #3A3F47; cursor: pointer; padding: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.toggle-switch__lever {
  position: absolute; top: 2px; left: 2px; width: 17px; height: 16px;
  background: linear-gradient(180deg, #E6E2D6, #9A9EA4);
  border-radius: 1px;
  transition: transform .18s var(--ease), background .18s var(--ease);
  box-shadow: 0 1px 2px rgba(0,0,0,.7);
}
.toggle-switch.is-on .toggle-switch__lever { transform: translateX(19px); background: linear-gradient(180deg, #FF7A68, #C22F22); }
.toggle-switch:focus-visible { outline: 2px solid var(--scope-blue); outline-offset: 3px; }

.pwr-strip { display: flex; gap: 4px; }
.pwr-strip i { flex: 1; height: 7px; background: #2A2E34; border-radius: 1px; transition: all .2s var(--ease); }
.pwr-strip i.is-on { background: var(--green); box-shadow: 0 0 7px rgba(124,224,160,.6); }
.pwr-strip.is-off i.is-on { background: #34383F; box-shadow: none; }

.pwr-list { display: flex; flex-direction: column; gap: 11px; margin: 0; }
.pwr-list dt { color: #5A5F67; font-size: .58rem; margin-bottom: 3px; }
.pwr-list dd { margin: 0; color: var(--cream-2); font-size: .72rem; line-height: 1.5; letter-spacing: .02em; text-transform: none; }

.pwr-status { border-top: 1px solid #262A30; padding-top: 12px; display: flex; flex-direction: column; gap: 7px; }
.pwr-status__line { display: flex; align-items: center; gap: 7px; color: #6D727A; font-size: .58rem; flex-wrap: wrap; }

/* ═══════════ 02 · MIX ═══════════ */

.mix-channels { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0; border: 1px solid #23272D; border-radius: 2px; }
.channel { padding: 14px 16px; border-right: 1px solid #23272D; display: flex; flex-direction: column; gap: 10px; background: var(--panel-raised); transition: background .2s var(--ease); }
.channel:last-child { border-right: 0; }
.channel:hover { background: #22262C; }
.channel__head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.channel__idx { color: #565B63; font-size: .56rem; }
.channel__title { font-size: 1.18rem; letter-spacing: .06em; color: #E4E1D6; }
.channel__sub { color: #5F646C; font-size: .56rem; margin-left: auto; }
.channel__copy { font-size: .9rem; line-height: 1.55; color: #9FA2A8; }
.channel__tags { display: flex; flex-wrap: wrap; gap: 5px; }
.channel__tags li { font-size: .55rem; color: #767B83; border: 1px solid #33383F; padding: 1px 6px; border-radius: 1px; }
.channel__meters { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 10px; border-top: 1px dashed #2C3037; }

.fader { width: 14px; height: 76px; position: relative; flex: 0 0 auto; }
.fader__rail {
  position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; transform: translateX(-50%);
  background: linear-gradient(180deg, #0B0C0E, #23272D);
  box-shadow: inset 0 0 0 1px #000, 0 0 0 1px #2E3239;
}
.fader__cap {
  position: absolute; left: 0; right: 0; height: 15px;
  top: calc(var(--pos) - 15px);
  background: linear-gradient(180deg, #4A5058, #1E2126);
  border: 1px solid #5A6068; border-radius: 1px;
  box-shadow: 0 1px 2px rgba(0,0,0,.8);
}
.fader__cap::after { content: ""; position: absolute; left: 2px; right: 2px; top: 6px; height: 1px; background: var(--cream-2); opacity: .7; }

.vu { display: flex; flex-direction: column-reverse; gap: 2px; flex: 1; max-width: 64px; }
.vu i { height: 4px; background: #2A2E34; border-radius: 1px; }
.vu i:nth-child(1), .vu i:nth-child(2), .vu i:nth-child(3), .vu i:nth-child(4), .vu i:nth-child(5) { background: var(--green); box-shadow: 0 0 5px rgba(124,224,160,.4); }
.vu i:nth-child(6), .vu i:nth-child(7) { background: var(--yellow); box-shadow: 0 0 5px rgba(242,201,76,.4); }
.vu i:nth-child(8) { background: var(--signal); box-shadow: 0 0 5px rgba(224,58,43,.5); }
.channel__val { color: #5F646C; font-size: .55rem; }

/* ═══════════ 03 · FILTER ═══════════ */

.filter-body { display: flex; flex-direction: column; gap: 14px; }
.filter-modes { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.filter-modes__lbl { color: #565B63; font-size: .56rem; margin-right: 4px; }
.mode-btn {
  font-family: var(--mono); font-size: .58rem; letter-spacing: .1em;
  padding: 5px 9px; border-radius: 2px; cursor: pointer;
  background: #14161A; border: 1px solid #33383F; color: #8C8F96;
  transition: all .16s var(--ease);
}
.mode-btn:hover { color: #fff; border-color: #5A6068; }
.mode-btn.is-active { background: var(--signal); border-color: #FF7A68; color: #FFF3EE; box-shadow: 0 0 14px rgba(224,58,43,.35); }

.filter-strips { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); border: 1px solid #23272D; border-radius: 2px; }
.strip {
  padding: 12px 12px 14px;
  border-right: 1px solid #23272D;
  display: flex; flex-direction: column; gap: 9px;
  background: var(--panel-raised);
  position: relative;
  transition: opacity .3s var(--ease), filter .3s var(--ease), background .2s var(--ease);
}
.strip:last-child { border-right: 0; }
.strip:hover { background: #24282F; }
.strip.is-dim { opacity: .28; filter: saturate(.3); }
.strip.is-emph { background: #262A31; box-shadow: inset 0 0 0 1px rgba(224,58,43,.28); }
.strip__top { display: flex; align-items: center; gap: 7px; }
.strip__idx { color: #565B63; font-size: .55rem; }
.strip__title { font-size: .92rem; letter-spacing: .07em; color: #E9E5D9; }
.strip__top .jack { margin-left: auto; width: 12px; height: 12px; }
.strip__top .jack .jack__hole { width: 4px; height: 4px; }
.strip__copy { font-size: .82rem; line-height: 1.5; color: #969AA1; flex: 1; }
.strip__ctl { display: flex; align-items: center; gap: 8px; }
.strip__ctl-lbl { color: #565B63; font-size: .52rem; }
.strip__foot { color: #767B83; font-size: .54rem; border-top: 1px dashed #2C3037; padding-top: 7px; }

/* ▪ price card */
.pricecard { display: flex; flex-direction: column; gap: 12px; }
.pricecard__lead { color: #6D727A; font-size: .58rem; }
.pricecard__steps { display: flex; flex-direction: column; gap: 7px; }
.pricecard__steps li {
  font-size: .62rem; color: var(--cream-2); text-transform: none; letter-spacing: .01em;
  padding-left: 16px; position: relative; line-height: 1.5;
}
.pricecard__steps li::before { content: "▸"; position: absolute; left: 0; color: var(--signal); }
.pricecard__note { font-size: .84rem; line-height: 1.55; color: #969AA1; }
.pricecard__fine { color: #4E535B; font-size: .52rem; line-height: 1.5; }

/* ═══════════ 04 · ENVELOPE ═══════════ */

.env-intro { font-size: .95rem; color: #A6A9AF; max-width: 62ch; margin-bottom: 18px; }
.env-graph { position: relative; }
.env-graph__labels { display: flex; justify-content: space-between; color: #4E535B; font-size: .55rem; padding: 0 2px 4px; }
.env-svg { width: 100%; height: 150px; display: block; overflow: visible; }
.env-line {
  fill: none; stroke: var(--signal); stroke-width: 2;
  stroke-dasharray: 1400; stroke-dashoffset: 1400;
  filter: drop-shadow(0 0 5px rgba(224,58,43,.6));
  transition: stroke-dashoffset 1.6s var(--ease);
}
.is-revealed .env-line { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) { .env-line { stroke-dashoffset: 0; } }

.env-nodes { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; margin-top: 14px; }
.env-node {
  position: relative;
  text-align: left; cursor: pointer;
  background: var(--panel-raised); border: 1px solid #2B3037;
  border-radius: 2px; padding: 12px 11px;
  display: flex; flex-direction: column; gap: 4px;
  transition: border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
}
.env-node:hover { border-color: #4A5058; transform: translateY(-1px); }
.env-node.is-active { border-color: var(--signal); background: #23262C; box-shadow: 0 0 0 1px rgba(224,58,43,.25), 0 0 20px rgba(224,58,43,.12); }
.env-node__dot {
  position: absolute; top: -5px; left: 11px; width: 8px; height: 8px; border-radius: 50%;
  background: #3A3F47; box-shadow: 0 0 0 2px var(--panel);
  transition: all .2s var(--ease);
}
.env-node.is-active .env-node__dot { background: var(--signal); box-shadow: 0 0 0 2px var(--panel), 0 0 10px rgba(224,58,43,.9); }
.env-node__no { color: #565B63; font-size: .55rem; }
.env-node__title { font-family: var(--display); font-size: 1rem; text-transform: uppercase; letter-spacing: .07em; color: #E9E5D9; }
.env-node__when { color: #6D727A; font-size: .52rem; }
.env-node__desc {
  font-family: var(--body); font-size: .78rem; line-height: 1.5; color: #8E9299;
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height .34s var(--ease), opacity .28s var(--ease), margin .3s var(--ease);
}
.env-node.is-active .env-node__desc { max-height: 200px; opacity: 1; margin-top: 6px; }

.transport { display: flex; flex-direction: column; gap: 6px; }
.transport__h { font-family: var(--mono); font-size: .58rem; color: var(--amber); letter-spacing: .12em; margin-top: 8px; }
.transport__list { display: flex; flex-direction: column; gap: 5px; }
.transport__list li { font-size: .8rem; color: #9FA2A8; padding-left: 12px; position: relative; line-height: 1.45; }
.transport__list li::before { content: "—"; position: absolute; left: 0; color: #45494F; }
.transport__plate { margin-top: 12px; border: 1px dashed #3A3F47; border-radius: 2px; padding: 10px; background: #14161A; }
.transport__plate .mono { color: #5F646C; font-size: .54rem; }
.transport__plate p { margin-top: 4px; color: var(--cream-2); font-size: .66rem; text-transform: none; letter-spacing: .02em; line-height: 1.5; }

/* ═══════════ 05 · SCOPE ═══════════ */

.module--scope {
  background: linear-gradient(180deg, #FFFDF6 0%, var(--cream) 65%, #E6E1CE 100%);
  border-color: #C9C2AA;
  border-top-color: #FFFDF6;
  color: #16181C;
}
.module--scope .module__plate { border-bottom-color: #CFC7AE; }
.module--scope .plate__no { color: #8A8571; }
.module--scope .hp-marks i { background: #C3BBA0; }
.module--scope .plate__ledtxt { color: #6C6753; }
.module--scope::after { opacity: .28; mix-blend-mode: multiply; }

.scope-h { font-size: clamp(1.7rem, 3.4vw, 2.5rem); color: #14161A; line-height: .95; margin-bottom: 12px; letter-spacing: .02em; }
.scope-copy { font-size: .92rem; line-height: 1.6; color: #45403A; max-width: 56ch; }

.scope-screen {
  margin-top: 16px;
  background: #0B0C0E;
  border: 1px solid #0A0B0D;
  border-radius: 2px;
  padding: 8px;
  box-shadow: inset 0 0 30px rgba(0,0,0,.9), 0 2px 0 #C9C2AA;
}
.scope-screen__head { display: flex; align-items: center; gap: 10px; color: #6D727A; font-size: .55rem; padding: 0 2px 6px; }
.scope-screen__ch { display: inline-flex; border: 1px solid #33383F; border-radius: 1px; overflow: hidden; }
.ch-btn {
  font-family: var(--mono); font-size: .55rem; letter-spacing: .08em;
  background: #14161A; color: #767B83; border: 0; padding: 3px 8px; cursor: pointer;
  transition: all .16s var(--ease);
}
.ch-btn.is-active { background: var(--cream); color: #16181C; font-weight: 600; }
.scope-screen__lbl { color: var(--signal); }
.scope-screen__lbl--cyan { color: var(--cyan); }
.scope-screen__scale { margin-left: auto; }
#scopeCanvas { width: 100%; height: auto; display: block; background: #05070A; border: 1px solid #1B1F24; }
.scope-screen__foot { display: flex; justify-content: space-between; gap: 8px; color: #5A5F67; font-size: .52rem; padding: 6px 2px 0; flex-wrap: wrap; }

.scope-legend { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.scope-legend li { display: flex; align-items: center; gap: 8px; color: #575246; font-size: .58rem; text-transform: none; letter-spacing: .04em; }
.swatch { width: 14px; height: 3px; border-radius: 1px; display: block; }
.swatch--red { background: var(--signal); }
.swatch--cyan { background: var(--cyan); }
.scope-out { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed #CBC3AA; color: #6C6753; }
.scope-out .mono { font-size: .55rem; }

/* ▪ compare panel */
.compare { display: flex; flex-direction: column; }
.compare__head { display: grid; grid-template-columns: 1fr auto; gap: 10px; color: #4E535B; font-size: .52rem; padding-bottom: 8px; border-bottom: 1px solid #262A30; }
.compare__row {
  display: grid; grid-template-columns: 10px 1fr; gap: 8px; align-items: start;
  padding: 11px 0; border-bottom: 1px solid #23272D;
}
.compare__row .led { margin-top: 5px; }
.compare__row p { font-size: .82rem; line-height: 1.45; color: #B2B5BA; }
.compare__row strong { display: block; font-family: var(--mono); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: #E9E5D9; margin-bottom: 3px; }
.compare__row p span { display: block; font-size: .78rem; color: #8E9299; }
.compare__other { grid-column: 2; font-size: .74rem !important; color: #5F646C !important; padding-left: 10px; border-left: 1px solid #33383F; margin-top: 6px; }
.compare__other::before { content: "ALGEMEEN · "; font-family: var(--mono); font-size: .5rem; letter-spacing: .1em; color: #45494F; }
.compare__note { margin-top: 12px; color: #4E535B; font-size: .53rem; line-height: 1.55; text-transform: none; letter-spacing: .03em; }

/* ═══════════ 06 · VCA/OUT ═══════════ */

.vca-body { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.25fr); gap: 0; border: 1px solid #23272D; border-radius: 2px; }
.vca-jacks { padding: 16px; border-right: 1px solid #23272D; background: var(--panel-raised); display: flex; flex-direction: column; gap: 14px; }
.vca-form-wrap { padding: 16px; }
.vca-h { font-size: 1.05rem; letter-spacing: .07em; color: #E9E5D9; }
.vca-h--form { margin-bottom: 4px; }
.vca-form__lead { color: #5F646C; font-size: .55rem; margin-bottom: 14px; }

.jack-matrix { display: flex; flex-direction: column; gap: 0; }
.jack-matrix li {
  display: grid; grid-template-columns: 22px 92px 1fr; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px dashed #2C3037;
}
.jack-matrix li:last-child { border-bottom: 0; }
.jack-matrix__lbl { color: #6D727A; font-size: .55rem; }
.jack-matrix__val { color: var(--cream-2); font-size: .66rem; letter-spacing: .03em; text-transform: none; }

.vca-note { font-size: .82rem; line-height: 1.55; color: #8E9299; }
.vca-out { display: flex; gap: 22px; margin-top: auto; padding-top: 12px; border-top: 1px solid #262A30; }
.vca-out div { display: flex; align-items: center; gap: 7px; color: #6D727A; font-size: .55rem; }

/* ▪ form */
.intake-form { display: flex; flex-direction: column; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field__label { color: #7A7F88; font-size: .55rem; display: flex; align-items: baseline; gap: 6px; }
.field__label .opt { color: #4E535B; font-size: .9em; }
.field__input {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .02em;
  background: #101216; color: var(--cream-2);
  border: 1px solid #34383F; border-radius: 2px;
  padding: 10px 11px; width: 100%;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease), background .16s var(--ease);
  appearance: none;
}
.field__input::placeholder { color: #4E535B; }
.field__input:hover { border-color: #4A5058; }
.field__input:focus {
  outline: none;
  border-color: var(--scope-blue);
  box-shadow: 0 0 0 1px var(--scope-blue), 0 0 18px rgba(110,203,255,.18);
  background: #0D1014;
}
.field__input:invalid:not(:placeholder-shown) { border-color: rgba(224,58,43,.7); }
.field__input--area { resize: vertical; min-height: 92px; line-height: 1.55; }
.field__select {
  background-image:
    linear-gradient(45deg, transparent 50%, #8C8F96 50%),
    linear-gradient(135deg, #8C8F96 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 30px;
}
.field__select option { background: #14161A; color: var(--cream-2); }

.field--tone .tone-switch { display: flex; gap: 6px; flex-wrap: wrap; }
.tone-switch label { position: relative; cursor: pointer; }
.tone-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.tone-switch span {
  display: block; padding: 6px 10px; border: 1px solid #34383F; border-radius: 2px;
  color: #767B83; font-size: .55rem; background: #101216;
  transition: all .16s var(--ease);
}
.tone-switch label:hover span { color: #fff; border-color: #5A6068; }
.tone-switch input:checked + span { background: var(--signal); border-color: #FF7A68; color: #FFF3EE; }
.tone-switch input:focus-visible + span { outline: 2px solid var(--scope-blue); outline-offset: 2px; }

.form-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.form-note { color: #4E535B; font-size: .52rem; text-transform: none; letter-spacing: .03em; max-width: 24ch; line-height: 1.5; }

/* ═══════════ FOOTER ═══════════ */

.rack-footer { margin-top: 12px; background: var(--rack-black); }
.rack-footer__inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  padding: 14px 18px;
  color: #6D727A;
}
.rack-footer__inner .mono { font-size: .58rem; }
.footer-chain { display: flex; align-items: center; gap: 8px; }
.footer-chain a { color: #8C8F96; transition: color .16s var(--ease); }
.footer-chain a:hover { color: var(--signal); }
.footer-chain span { color: #34383F; }
.footer-lang {
  font-family: var(--mono); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase;
  background: none; border: 1px solid #2A2E34; border-radius: 2px; padding: 5px 9px;
  color: #8C8F96; cursor: pointer; transition: all .16s var(--ease);
}
.footer-lang:hover { color: #fff; border-color: #4A5058; }
.rack-footer__inner--fine { border-top: 1px solid #16181C; padding-top: 10px; color: #45494F; }
.rack-footer__inner--fine .mono { font-size: .52rem; text-transform: none; letter-spacing: .04em; }

/* ═══════════ CABLES ═══════════ */

.cable-layer {
  position: absolute; top: 0; left: 0;
  pointer-events: none; z-index: 60;
  overflow: visible;
}
.cable-layer .cable-shadow { fill: none; stroke: rgba(0,0,0,.55); stroke-linecap: round; }
.cable-layer .cable { fill: none; stroke-linecap: round; mix-blend-mode: screen; }
.cable-layer .plug { filter: drop-shadow(0 1px 2px rgba(0,0,0,.8)); }

/* cable spine (left rack edge) */
.cable-spine { position: absolute; left: -2px; top: 0; width: 34px; height: 100%; pointer-events: none; z-index: 40; }

/* ═══════════ PATCH HINT ═══════════ */

.patch-hint {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  padding: 9px 16px; text-align: center;
  background: rgba(11,12,14,.92);
  border-top: 1px solid #2A2E34;
  color: #767B83;
  backdrop-filter: blur(8px);
}
.patch-hint .mono { font-size: .55rem; letter-spacing: .1em; }
.patch-hint b { color: var(--signal); font-weight: 500; }

/* power-off state: rack goes quiet (LEDs dead, traces dim) */
body.power-off .led.is-on { background: #34383F; box-shadow: inset 0 0 0 1px #000; }
body.power-off .module { filter: saturate(.55) brightness(.72); }
body.power-off .cable-layer { opacity: .25; transition: opacity .3s var(--ease); }

/* ═══════════ REVEAL ═══════════ */

[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
[data-reveal].is-revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ═══════════ RESPONSIVE ═══════════ */

@media (max-width: 1080px) {
  .rack-header__inner { grid-template-columns: auto 1fr auto; }
  .bench-note { display: none; }
  .filter-strips { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .strip:nth-child(3) { border-right: 0; }
  .strip:nth-child(n+4) { border-top: 1px solid #23272D; }
}

@media (max-width: 940px) {
  .chain-nav { display: none; }
  .burger { display: block; }
  .rack-header__inner { grid-template-columns: auto 1fr auto; gap: 10px; }
  .header-tools { justify-self: end; }
  .row__grid--osc,
  .row__grid--filter,
  .row__grid--env,
  .row__grid--scope { grid-template-columns: minmax(0,1fr); }
  .vca-body { grid-template-columns: minmax(0,1fr); }
  .vca-jacks { border-right: 0; border-bottom: 1px solid #23272D; }
  .env-nodes { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .patch-hint { display: block; }
  body { padding-bottom: 34px; }
  .cable-layer .cable--long { display: none; }
}

@media (max-width: 720px) {
  body { font-size: .98rem; }
  .module { padding: 12px 12px 16px; }
  .mix-channels { grid-template-columns: minmax(0,1fr); }
  .channel { border-right: 0; border-bottom: 1px solid #23272D; }
  .channel:last-child { border-bottom: 0; }
  .filter-strips { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .strip { border-right: 0; border-bottom: 1px solid #23272D; }
  .strip:nth-child(odd) { border-right: 1px solid #23272D; }
  .display-xl { font-size: clamp(2.1rem, 9.2vw, 3rem); }
  .field-row { grid-template-columns: minmax(0,1fr); }
  .jack-matrix li { grid-template-columns: 22px 80px 1fr; gap: 8px; }
  .env-nodes { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .env-node { padding: 10px; }
  .env-node__desc { max-height: 220px; opacity: 1; margin-top: 4px; }
  .env-svg { height: 110px; }
  .osc-knobwrap { gap: 14px; }
  .knob--lg { --knob-size: 78px; }
  .rack-footer__inner { justify-content: flex-start; gap: 10px; }
  .footer-chain { order: 3; flex-wrap: wrap; }
  .scope-screen__foot { font-size: .48rem; }
}

@media (max-width: 420px) {
  .filter-strips { grid-template-columns: minmax(0,1fr); }
  .strip:nth-child(odd) { border-right: 0; }
  .wordmark__text { font-size: 1.28rem; }
  .jack-btn__label { font-size: .6rem; }
}
