/* ============================================================================
   sampler.css — "modular sampler" skin (2026-11-24, Claude)
   Loaded after styles.css. Only changes how things look; markup and behaviour
   are untouched, so removing this file restores the previous look.

   Materials
   - brushed aluminium face-plates with black silk-screen print
   - black anodised panels for the sound modules (white print)
   - yellow-green STN LCD for the work readout, amber VFD for the status strip
   - grey keycaps, backlit rubber pads (category select), knurled knobs,
     hex-nut jacks, Phillips screws, walnut cheeks, Dymo tape for the guide
   ============================================================================ */

:root {
  --alu-hi: #e4e6e9;
  --alu-1: #cfd2d6;
  --alu-2: #b6bac0;
  --alu-edge: #7d838b;
  --print: #16171a;
  --print-2: #42464d;
  --print-3: #585d65;

  --anod-1: #222326;
  --anod-2: #17181a;

  --key-1: #ecebe6;
  --key-2: #cdcbc4;
  --key-skirt: #85827a;

  --lcd-1: #b3bf90;
  --lcd-2: #9dab78;
  --lcd-ink: #1c2412;
  --lcd-ink-2: #34401f;

  --vfd-bg: #110c05;
  --vfd: #ffb547;
  --vfd-hi: #ffd58c;
  --vfd-dim: #cf9443;

  --led-amber: #ffab2e;

  --font-display: 'Michroma', 'Barlow Semi Condensed', sans-serif;
  --font-label: 'Barlow Semi Condensed', 'IBM Plex Sans KR', sans-serif;
  --font-title: 'Barlow Semi Condensed', 'IBM Plex Sans KR', sans-serif;
  --font-body: 'IBM Plex Sans', 'IBM Plex Sans KR', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', 'IBM Plex Sans KR', ui-monospace, monospace;
}

body { font-family: var(--font-label); }

.studio-backdrop,
body.mode-business .studio-backdrop {
  background:
    radial-gradient(ellipse at 50% -10%, rgba(255, 236, 200, 0.06), transparent 60%),
    #0c0c0e;
}

/* ---------------------------------------------------------------- chassis */
.rack-chassis {
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.018) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #1d1e21 0%, #141517 100%);
  border-left: 14px solid #5b3a22;
  border-right: 14px solid #5b3a22;
  border-top: 2px solid #34363b;
  border-bottom: 4px solid #070708;
  box-shadow:
    inset 4px 0 0 #3f2716, inset -4px 0 0 #3f2716,
    inset 8px 0 0 rgba(0,0,0,0.35), inset -8px 0 0 rgba(0,0,0,0.35),
    0 30px 70px rgba(0, 0, 0, 0.8);
}
body.mode-business .rack-chassis { border-left-color: #5b3a22; border-right-color: #5b3a22; }

.rack-rail {
  height: 12px;
  border-radius: 1px;
  background: linear-gradient(180deg, #eef0f2 0%, #b4b8be 40%, #81868d 75%, #5d6168 100%);
  border-top: 1px solid #fff;
  border-bottom: 1px solid #0a0a0b;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.5);
}
.rack-rail::after {
  inset: 4px 14px;
  background: repeating-linear-gradient(90deg, #2a2c30 0 9px, transparent 9px 34px);
  border-radius: 2px;
  opacity: 0.9;
}

/* ---------------------------------------------------------------- panels */
.module,
.rack-header {
  /* silk-screen print colours for anything sitting on the aluminium */
  --ink: var(--print);
  --ink-dim: var(--print-2);
  --ink-muted: var(--print-3);
  color: var(--print);
  background:
    linear-gradient(105deg, transparent 25%, rgba(255, 255, 255, 0.28) 42%, transparent 58%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.10) 0 1px, rgba(0,0,0,0.035) 1px 2px, transparent 2px 3px),
    linear-gradient(180deg, var(--alu-hi) 0%, var(--alu-1) 35%, var(--alu-2) 100%);
  border: 1px solid var(--alu-edge);
  border-radius: 3px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25),
    0 1px 0 #000,
    0 8px 18px rgba(0, 0, 0, 0.5);
}

/* sound modules: black anodised with white print */
.synth-mod {
  --ink: #ecebe7;
  --ink-dim: #b7b9be;
  --ink-muted: #9a9da3;
  color: #ecebe7;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, var(--anod-1) 0%, var(--anod-2) 100%);
  border-color: #000;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 1px 0 #000, 0 8px 18px rgba(0,0,0,0.55);
}

.mod-head, .mod-head-compact { border-bottom: 1px solid rgba(0, 0, 0, 0.22); }
.synth-mod .mod-head-compact { border-bottom-color: rgba(255, 255, 255, 0.14); }
.mod-jacks { border-top: 1px solid rgba(0, 0, 0, 0.22); }
.synth-mod .mod-jacks { border-top-color: rgba(255, 255, 255, 0.14); }

.mod-code {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--ink);
}

/* engraved step numbers */
.step-pill,
body.mode-business .step-pill {
  min-width: 22px;
  height: 22px;
  border-radius: 50%;
  padding: 0;
  background: var(--print);
  color: var(--alu-hi);
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 700;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.6), 0 1px 0 rgba(255,255,255,0.7);
}
.synth-mod .step-pill { background: #ecebe7; color: var(--print); box-shadow: none; }

/* Phillips screws */
.screw {
  width: 10px;
  height: 10px;
  background:
    linear-gradient(#41444a, #41444a) center / 62% 1.5px no-repeat,
    linear-gradient(#41444a, #41444a) center / 1.5px 62% no-repeat,
    radial-gradient(circle at 35% 30%, #ffffff 0%, #b9bdc3 55%, #7a7f87 100%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), inset 0 -1px 1px rgba(0, 0, 0, 0.3);
}
.screw.tl { transform: rotate(12deg); }
.screw.tr { transform: rotate(-28deg); }
.screw.bl { transform: rotate(40deg); }
.screw.br { transform: rotate(-6deg); }

/* ---------------------------------------------------------------- header */
.brand-plate {
  background: linear-gradient(180deg, #1d1e21, #0f1012);
  border: 1px solid #000;
  border-radius: 2px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 1px 0 rgba(255,255,255,0.8);
  padding: 6px 14px;
}
.brand-en,
body.mode-business .brand-en {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: #eeece6;
}
.brand-tag {
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--print-2);
}

.mode-switcher {
  background: linear-gradient(180deg, #1b1c1f, #101113);
  border: 1px solid #000;
  border-radius: 6px;
  padding: 4px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.6), 0 1px 0 rgba(255,255,255,0.7);
}
.mode-btn {
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #c3c4c8;
  border-radius: 4px;
}
.mode-btn:hover { color: #fff; background: rgba(255,255,255,0.06); }
.mode-btn.active[data-mode="artist"],
.mode-btn.active[data-mode="business"] {
  color: var(--print);
  background: linear-gradient(180deg, var(--key-1), var(--key-2));
  border-color: var(--key-skirt);
  box-shadow: inset 0 1px 0 #fff, 0 1px 0 var(--key-skirt);
}

.power-switch {
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: #fff;
  background: linear-gradient(180deg, #e0463d 0%, #b02820 60%, #8e1d17 100%);
  border: 1px solid #4f0d09;
  border-radius: 4px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 2px 0 #4f0d09, 0 3px 5px rgba(0,0,0,0.35);
}
.power-switch .power-led { background: #4a1110; }
.power-switch.active .power-led { background: #ffe1d6; box-shadow: 0 0 6px #fff; }

/* ---------------------------------------------------------------- keycaps */
.hw-btn,
.toggle-chip,
.biz-case-btn,
.btn-monitor-sec.keycap {
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  color: var(--print);
  background: linear-gradient(180deg, var(--key-1) 0%, var(--key-2) 100%);
  border: 1px solid var(--key-skirt);
  border-radius: 5px;
  box-shadow:
    inset 0 1px 0 #fff,
    inset 0 -2px 0 rgba(0, 0, 0, 0.08),
    0 2px 0 var(--key-skirt),
    0 3px 5px rgba(0, 0, 0, 0.28);
  transition: transform 0.06s ease, box-shadow 0.06s ease;
}
.hw-btn:hover,
.toggle-chip:hover,
.biz-case-btn:hover {
  border-color: #5f5c55;
  background: linear-gradient(180deg, #f6f5f1 0%, #d6d4cd 100%);
}
.hw-btn:active,
.biz-case-btn:active {
  transform: translateY(2px);
  box-shadow: inset 0 1px 0 #fff, 0 0 0 var(--key-skirt), 0 1px 2px rgba(0, 0, 0, 0.3);
}
/* latched keys sit lower and light an LED */
.hw-btn.active,
.hw-btn[aria-pressed="true"],
.biz-case-btn.active {
  color: var(--print);
  border-color: #5f5c55;
  background: linear-gradient(180deg, #d9d7cf 0%, #c3c0b7 100%);
  transform: translateY(1px);
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.18), 0 1px 0 var(--key-skirt);
}
.hw-btn.active::before,
.hw-btn[aria-pressed="true"]::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--led-amber);
  box-shadow: 0 0 6px var(--led-amber);
  flex: none;
}
.btn-accent, .btn-dl, .btn-play { color: var(--print); border-color: var(--key-skirt); }
.btn-dl:hover { color: var(--print); border-color: #5f5c55; }
.btn-play { box-shadow: inset 0 1px 0 #fff, inset 0 -3px 0 #2f9e58, 0 2px 0 var(--key-skirt), 0 3px 5px rgba(0,0,0,0.28); }
.btn-mute[aria-pressed="true"] { color: var(--print); background: linear-gradient(180deg, #f2c1bb, #d99a92); border-color: #7a2a22; }

.toggle-chip { padding: 5px 9px; }
.toggle-chip input { accent-color: #e08a12; }

.guide-close {
  border: 1px solid var(--key-skirt);
  background: linear-gradient(180deg, var(--key-1), var(--key-2));
  color: var(--print);
  border-radius: 50%;
  width: 26px;
  height: 26px;
}

/* ---------------------------------------------------------------- Dymo tape guide */
.guide-strip,
body.mode-business .guide-strip {
  background: transparent;
  border: 0;
  padding: 10px 2px 2px;
  align-items: flex-start;
}
.guide-steps { gap: 10px 14px; }
.guide-item {
  display: inline-block;
  padding: 5px 12px 5px 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.14) 0%, transparent 45%),
    #b51d26;
  color: #fff;
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.28), 0 -1px 0 rgba(0, 0, 0, 0.45);
  border-radius: 2px;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.45);
  transform: rotate(-0.6deg);
}
.guide-item:nth-child(2) { transform: rotate(0.5deg); }
.guide-item:nth-child(3) { transform: rotate(-0.3deg); }
body.mode-business .guide-item { background: linear-gradient(180deg, rgba(255,255,255,0.14) 0%, transparent 45%), #1d4f9a; }
.guide-item b, body.mode-business .guide-item b { color: #fff; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.guide-item .step-pill {
  display: inline;
  background: transparent;
  color: #fff;
  box-shadow: none;
  min-width: 0;
  height: auto;
  margin-right: 4px;
  font-size: 13px;
}
.guide-item .step-pill::after { content: " ▸"; }

/* ---------------------------------------------------------------- category pads */
.cat-grid { gap: 8px; }
.cat-btn {
  font-family: var(--font-label);
  color: #f1eee7;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(255,255,255,0.10), transparent 70%),
    linear-gradient(180deg, #57595f 0%, #404247 100%);
  border: 1px solid #1f2023;
  border-radius: 8px;
  padding: 9px 11px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -3px 0 rgba(0, 0, 0, 0.25),
    0 2px 0 #1b1c1f,
    0 4px 7px rgba(0, 0, 0, 0.35);
  transition: transform 0.06s ease, box-shadow 0.1s ease, background 0.15s ease;
}
.cat-btn:hover { border-color: #000; background: radial-gradient(ellipse at 50% 35%, rgba(255,255,255,0.14), transparent 70%), linear-gradient(180deg, #5e6066, #46484d); }
.cat-btn:active { transform: translateY(2px); }
/* pressed pad glows from inside in its category colour */
.cat-btn.active {
  transform: translateY(1px);
  border-color: #1a1b1e;
  background:
    radial-gradient(ellipse at 50% 55%, color-mix(in srgb, var(--cat-accent, #ffab2e) 70%, transparent) 0%, color-mix(in srgb, var(--cat-accent, #ffab2e) 18%, transparent) 70%),
    linear-gradient(180deg, #4a4b50, #393a3e);
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px color-mix(in srgb, var(--cat-accent, #ffab2e) 60%, transparent),
    0 1px 0 #1b1c1f;
}
.cat-icon-box,
.cat-btn.active .cat-icon-box {
  background: transparent;
  border: 0;
  color: #f1eee7;
}
.cat-code { font-size: 14px; font-weight: 700; letter-spacing: 0.06em; }
.cat-name { font-size: 12px; color: #d2cfc8; font-family: var(--font-body); font-weight: 400; }
.cat-count { font-family: var(--font-mono); background: rgba(0, 0, 0, 0.35); color: #f1eee7; border-radius: 3px; }
.cat-btn.active .cat-name { color: #fff; }

/* ---------------------------------------------------------------- readouts */
.vfd-counter,
.channel-readout {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--vfd);
  background: var(--vfd-bg);
  border: 1px solid #000;
  border-radius: 2px;
  padding: 3px 8px;
  text-shadow: 0 0 5px rgba(255, 181, 71, 0.55);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.8), 0 1px 0 rgba(255,255,255,0.7);
}

/* the work readout is a yellow-green STN LCD */
.source-work-display {
  --ink: var(--lcd-ink);
  --ink-dim: var(--lcd-ink-2);
  --ink-muted: var(--lcd-ink-2);
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,0.035) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, var(--lcd-1), var(--lcd-2));
  border: 4px solid #26282b;
  border-radius: 4px;
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.35), 0 1px 0 rgba(255,255,255,0.8);
}
.source-year { font-family: var(--font-mono); color: var(--lcd-ink); font-size: 12px; }
.source-title { font-family: var(--font-title); font-weight: 700; font-size: 22px; letter-spacing: 0.01em; color: var(--lcd-ink); }
.source-venue { font-family: var(--font-body); color: var(--lcd-ink-2); font-size: 13px; }
.source-medium { font-family: var(--font-body); color: var(--lcd-ink-2); font-size: 12px; }
.source-work-display .work-badge,
.source-work-display .work-badge.badge-live,
.source-work-display .work-badge.badge-archive {
  font-family: var(--font-mono);
  background: transparent;
  border: 1px solid var(--lcd-ink);
  color: var(--lcd-ink);
}

.channel-select {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--vfd);
  background: var(--vfd-bg);
  border: 1px solid #000;
  border-radius: 3px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.8), 0 1px 0 rgba(255,255,255,0.7);
}

.source-jack-bay { border-left-color: rgba(0, 0, 0, 0.2); }

/* windows that stay dark keep light text */
.source-hardware-bay,
.crt-bezel,
.vfd-strip,
.scope-frame,
.biz-card-banner,
.yt-mini-frame {
  --ink: #eef2f7;
  --ink-dim: #b8bec8;
  --ink-muted: #9aa2ae;
  color: #eef2f7;
}
.source-hardware-bay {
  background: linear-gradient(180deg, #1a1b1e, #0f1012);
  border: 4px solid #26282b;
  border-radius: 4px;
}

/* status strip: amber VFD */
.vfd-strip {
  background: var(--vfd-bg);
  border: 4px solid #26282b;
  border-radius: 4px;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.9), 0 1px 0 rgba(255,255,255,0.8);
}
.vfd-ch { color: var(--vfd); font-family: var(--font-mono); }
.vfd-title { color: var(--vfd-hi); font-family: var(--font-mono); font-weight: 600; font-size: 15px; text-shadow: 0 0 6px rgba(255, 181, 71, 0.45); }
.vfd-sub { color: var(--vfd-dim); font-family: var(--font-mono); }
.vfd-links a { color: var(--vfd-hi); font-family: var(--font-mono); border-bottom: 1px dotted var(--vfd-dim); }

/* ---------------------------------------------------------------- monitor */
.crt-bezel {
  background:
    linear-gradient(180deg, #34363b 0%, #1d1e21 100%);
  border: 1px solid #000;
  border-radius: 14px;
  padding: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), inset 0 -2px 0 rgba(0,0,0,0.4), 0 1px 0 rgba(255,255,255,0.8);
}
.crt-screen {
  border-radius: 12px / 16px;
  border: 2px solid #000;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.9);
}
/* glass reflection */
.crt-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  border-radius: inherit;
  background:
    linear-gradient(155deg, rgba(255,255,255,0.10) 0%, transparent 32%),
    radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,0.45) 100%);
}
.crt-osd { font-family: var(--font-mono); }
.monitor-card-title, .no-signal-title { font-family: var(--font-title); font-weight: 700; letter-spacing: 0.02em; }
.monitor-card-title { font-size: clamp(22px, 2.4vw, 30px); }
.monitor-card-meta { font-family: var(--font-body); font-size: 13px; }
.monitor-card-kicker { font-family: var(--font-mono); }
.btn-monitor-cta { font-family: var(--font-label); font-size: 13px; letter-spacing: 0.06em; border-radius: 3px; }
.btn-monitor-sec { font-family: var(--font-label); font-size: 13px; letter-spacing: 0.06em; border-radius: 3px; }

.prof-body, .dossier-summary, .dossier-list, .biz-form-wrap { font-family: var(--font-body); }
.prof-body h3, .dossier .prof-body .dossier-title, .biz-form-wrap h3 { font-family: var(--font-title); font-weight: 700; letter-spacing: 0.01em; }
.dossier .prof-body .dossier-title { font-size: clamp(22px, 2.6vw, 30px); }

/* ---------------------------------------------------------------- knobs (knurled aluminium) */
.knob {
  position: relative;
  background: none;
  padding: 6px;
  width: 54px;
  height: 54px;
}
.knob-sm { width: 48px; height: 48px; }
/* printed scale: ticks across the 270° travel */
.knob::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-conic-gradient(from -135deg, var(--ink) 0 1.4deg, transparent 1.4deg 27deg);
  -webkit-mask: radial-gradient(circle, transparent 60%, #000 62%), conic-gradient(from 135deg, transparent 0 90deg, #000 90deg);
  -webkit-mask-composite: source-in;
  mask: radial-gradient(circle, transparent 60%, #000 62%) intersect, conic-gradient(from 135deg, transparent 0 90deg, #000 90deg);
  opacity: 0.85;
  pointer-events: none;
}
.knob-cap {
  border: 0;
  background: repeating-conic-gradient(#f1f2f4 0 5deg, #9097a0 5deg 10deg);
  box-shadow: 0 3px 4px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.45);
}
/* spun-metal face over the knurled skirt */
.knob-cap::before {
  content: "";
  position: absolute;
  inset: 16%;
  border-radius: 50%;
  background: conic-gradient(from 20deg, #d1d5da, #f8f9fa 12%, #b6bbc2 30%, #eef0f2 50%, #bfc4ca 70%, #f6f7f8 85%, #d1d5da);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25), inset 0 1px 0 #fff;
}
.knob-pointer {
  z-index: 1;
  top: 3px;
  width: 3px;
  height: 42%;
  background: var(--print);
  box-shadow: none;
}
.knob-label { font-family: var(--font-label); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; color: var(--ink); }
.knob:focus-visible { outline: 2px solid #e08a12; outline-offset: 3px; border-radius: 50%; }

/* ---------------------------------------------------------------- jacks (hex nut) */
.jack {
  width: 30px;
  height: 30px;
  background: transparent;
  box-shadow: none;
}
.jack-ring {
  inset: 0;
  border: 0;
  border-radius: 0;
  clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0 50%);
  background: linear-gradient(160deg, #fbfbfc 0%, #b7bcc3 45%, #7a8089 100%);
}
.jack .jack-ring { border-color: transparent !important; }
.jack-hole {
  position: relative;
  width: 15px;
  height: 15px;
  background: radial-gradient(circle, #050506 0 42%, #2a2c30 47% 58%, #d3d6db 63% 76%, #80858d 82%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}
/* signal colour printed as a ring on the panel */
.jack[data-signal="video"] { box-shadow: 0 0 0 3px #d9a300; }
.jack[data-signal="audio"] { box-shadow: 0 0 0 3px #d6411c; }
.jack[data-signal="cv"]    { box-shadow: 0 0 0 3px #0fa696; }
.jack-label { font-family: var(--font-label); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; color: var(--ink); }

/* ---------------------------------------------------------------- sound modules */
.mini-label { font-family: var(--font-label); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; color: var(--ink-dim); }
.wave-btn, .fx-btn {
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #d8d9dc;
  background: linear-gradient(180deg, #45474c, #34363a);
  border: 1px solid #0c0c0d;
  border-radius: 4px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 2px 0 #0c0c0d;
  position: relative;
}
.wave-btn.active, .fx-btn.active {
  color: #fff;
  background: linear-gradient(180deg, #3b3d41, #2d2f33);
  border-color: #0c0c0d;
  box-shadow: inset 0 2px 3px rgba(0,0,0,0.45), 0 1px 0 #0c0c0d;
}
/* little LED in the corner of a latched button */
.wave-btn.active::after, .fx-btn.active::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--led-amber);
  box-shadow: 0 0 5px var(--led-amber);
}
.fx-btn.active::after { background: #ff5a36; box-shadow: 0 0 5px #ff5a36; }

.btn-play-sound { font-size: 14px; letter-spacing: 0.1em; }

.scope-frame {
  background: #071009;
  border: 4px solid #0c0c0d;
  border-radius: 8px;
  box-shadow: inset 0 0 18px rgba(0,0,0,0.9), 0 1px 0 rgba(255,255,255,0.12);
}
.vu-bar { background: #0b0b0c; border-color: #000; }

/* ---------------------------------------------------------------- business mode */
.biz-intro { font-family: var(--font-body); font-size: 13px; color: var(--print); }
.biz-card-banner { background: linear-gradient(180deg, #1a1b1e, #0f1012); border: 4px solid #26282b; border-radius: 4px; }
.biz-service-card {
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 0;
  padding: 10px 2px 2px;
}
.biz-service-code { font-family: var(--font-mono); color: var(--print); }
.biz-service-kr { color: var(--print-2); }
.biz-service-title { font-family: var(--font-title); font-size: 16px; color: var(--print); }
.biz-service-desc { font-family: var(--font-body); font-size: 12.5px; color: var(--print-2); }
.biz-case-btn { padding: 8px 10px; }
.biz-case-btn small { color: var(--print-2); font-family: var(--font-body); }
.biz-direct-bar { border-top-color: rgba(0, 0, 0, 0.22); }
.biz-contact-quick { color: var(--print-2); }
.biz-contact-quick a { color: #0a5f55; }

/* ---------------------------------------------------------------- footer */
.rack-footer { font-family: var(--font-label); font-size: 12px; letter-spacing: 0.14em; color: #9c9fa6; }

body.power-off .rack-chassis { filter: saturate(0.25) brightness(0.55); }

@media (max-width: 640px) {
  .rack-chassis { border-left-width: 6px; border-right-width: 6px; }
  .guide-item { font-size: 12px; }
  .source-title { font-size: 20px; }
}

/* buttons that already carry their own LED don't get a second one */
.hw-btn:has(.led)::before { display: none; }

@media (max-width: 640px) {
  /* the 16:9 screen was too short for the work card on phones and hid the PLAY button */
  .crt-screen:has(.monitor-card), .crt-screen:has(.no-signal-screen) { aspect-ratio: auto; }
  .crt-screen:has(.monitor-card) .crt-media-stage,
  .crt-screen:has(.no-signal-screen) .crt-media-stage { position: relative; }
  .monitor-card { gap: 18px; padding: 44px 16px 16px; }
}
body.mode-business .guide-item .step-pill { background: transparent; color: #fff; box-shadow: none; }

/* solid fallbacks under the gradients (also what contrast checkers read) */
.module, .rack-header { background-color: var(--alu-1); }
.synth-mod { background-color: var(--anod-1); }
.source-work-display { background-color: var(--lcd-1); }
.source-hardware-bay, .biz-card-banner { background-color: #141517; }
.cat-btn { background-color: #4a4c51; }
.cat-btn.active { background-color: #3f3c37; box-shadow: inset 0 2px 6px rgba(0,0,0,0.35), 0 1px 0 #1b1c1f; }
.hw-btn, .toggle-chip, .biz-case-btn { background-color: var(--key-2); }
.channel-select { background-color: var(--vfd-bg); }
/* power key: darker red so white print passes 4.5:1 */
.power-switch { background: linear-gradient(180deg, #c93a31 0%, #a3271f 60%, #861c16 100%); background-color: #a3271f; }
/* PLAY key: green LED dot instead of a coloured stripe */
.btn-play { box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgba(0,0,0,0.08), 0 2px 0 var(--key-skirt), 0 3px 5px rgba(0,0,0,0.28); }
.btn-play::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #2fbf63; box-shadow: 0 0 5px #2fbf63; margin-left: 2px; }

/* ============================================================================
   Module 02 faceplates — a device per category showing the work's still frame
   ============================================================================ */
.source-hardware-bay { height: 178px; padding: 7px; gap: 6px; }
.fp {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  border-radius: 3px;
  background: radial-gradient(ellipse at 50% 110%, #2a2620 0%, #121212 60%, #0b0b0c 100%);
}
.fp-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: #b8bec8; }
.fp-img {
  position: absolute;
  inset: 0;
  background: var(--thumb) center / cover no-repeat;
}
/* no still frame: test pattern instead */
.no-thumb .fp-img {
  background: linear-gradient(90deg, #c0c0c0 0 14.3%, #c0c000 0 28.6%, #00c0c0 0 42.9%, #00c000 0 57.2%, #c000c0 0 71.5%, #c00000 0 85.8%, #0000c0 0);
}

/* PERF — a stage screen under swinging spotlights and a crowd */
.fp-perf { background: linear-gradient(180deg, #08080b 0%, #14101c 70%, #0b0a0d 100%); }
.fp-truss { position: absolute; left: 6%; right: 6%; top: 6%; height: 6px; background: repeating-linear-gradient(90deg, #8b9099 0 2px, transparent 2px 9px), linear-gradient(#8b9099, #8b9099) top / 100% 1px no-repeat, linear-gradient(#8b9099, #8b9099) bottom / 100% 1px no-repeat; }
.fp-stagescreen {
  position: absolute;
  left: 18%; right: 18%; top: 17%;
  height: 46%;
  overflow: hidden;
  border: 2px solid #000;
  box-shadow: 0 0 18px rgba(204, 93, 232, 0.35);
}
.fp-spot {
  position: absolute;
  top: 8%;
  width: 46%; height: 92%;
  background: linear-gradient(180deg, rgba(255, 244, 214, 0.55), rgba(255, 244, 214, 0) 85%);
  clip-path: polygon(48% 0, 52% 0, 100% 100%, 0 100%);
  mix-blend-mode: screen;
  transform-origin: 50% 0;
}
.fp-spot.l { left: 2%; animation: fp-swing 5s ease-in-out infinite alternate; }
.fp-spot.r { right: 2%; animation: fp-swing 5s ease-in-out infinite alternate-reverse; }
@keyframes fp-swing { from { transform: rotate(-16deg); } to { transform: rotate(12deg); } }
.fp-crowd {
  position: absolute;
  left: -4%; right: -4%; bottom: -6px;
  height: 34%;
  background:
    radial-gradient(circle at 50% 30%, #060607 0 9px, transparent 10px) 0 0 / 22px 26px repeat-x,
    radial-gradient(circle at 50% 30%, #060607 0 8px, transparent 9px) 11px 9px / 22px 26px repeat-x,
    linear-gradient(transparent 55%, #060607 55%);
}

/* CUR — a cassette from the archive, label written by hand */
.fp-cur { display: grid; place-items: center; background: radial-gradient(ellipse at 50% 40%, #241d2a 0%, #0c0b0e 75%); }
.fp-cassette {
  position: relative;
  width: 150px;
  height: 96px;
  padding: 7px 8px 0;
  border-radius: 6px;
  background: linear-gradient(180deg, #3a3b40, #26272b);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 4px 8px rgba(0,0,0,0.6);
  transform: rotate(-4deg);
}
.fp-clabel {
  display: grid;
  gap: 1px;
  height: 64px;
  padding: 4px 7px 0;
  border-radius: 3px;
  background:
    linear-gradient(#cc5de8, #cc5de8) left 0 bottom 30px / 100% 4px no-repeat,
    #efe8d6;
  color: #1c1b22;
  overflow: hidden;
}
.fp-clabel b { font-family: var(--font-label); font-size: 12px; font-weight: 700; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fp-clabel small { font-family: var(--font-mono); font-size: 11px; color: #4b4856; }
.fp-cwindow {
  position: absolute;
  left: 28px; right: 28px; top: 44px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
  border-radius: 11px;
  background: rgba(20, 18, 24, 0.92);
  box-shadow: inset 0 0 0 1px #000;
}
.fp-reel { width: 18px; height: 18px; border-radius: 50%; background: repeating-conic-gradient(#e9e6dc 0 20deg, #2a2730 20deg 60deg); box-shadow: 0 0 0 2px #4a3a2a; animation: spinSlow 3.5s linear infinite; }
.fp-tape { flex: 1; height: 8px; margin: 0 3px; background: #4a3a2a; border-radius: 2px; }
.fp-cfoot { position: absolute; left: 30px; right: 30px; bottom: 0; height: 14px; clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%); background: #1d1e21; display: flex; justify-content: space-around; align-items: center; }
.fp-cfoot i { width: 6px; height: 6px; border-radius: 50%; background: #0a0a0b; }

@media (prefers-reduced-motion: reduce) {
  .fp-beam, .fp-cube, .fp-roll, .fp-spot, .fp-reel { animation: none !important; }
}

/* ============================================================================
   Artist profile pad (module 01) — sits under the category pads
   ============================================================================ */
.profile-pad-wrap {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.22);
}
.profile-pad {
  --cat-accent: #ff5a36;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(255,255,255,0.18), transparent 70%),
    linear-gradient(180deg, #c8442b 0%, #9b2f1c 100%);
  background-color: #a8341f;
  border-color: #4a160c;
}
.profile-pad:hover { background: radial-gradient(ellipse at 50% 35%, rgba(255,255,255,0.22), transparent 70%), linear-gradient(180deg, #d24c32, #a5341f); }
.profile-pad .cat-name { color: #ffe9e2; }
.profile-pad .cat-count { background: rgba(0, 0, 0, 0.3); }
.profile-pad.active {
  background:
    radial-gradient(ellipse at 50% 55%, rgba(255, 214, 160, 0.65) 0%, rgba(255, 140, 90, 0.2) 70%),
    linear-gradient(180deg, #a8341f, #7f2414);
  background-color: #8f2a18;
}
/* while the monitor shows the profile, the category pad stops glowing */
.cat-grid.on-profile .cat-btn.active {
  transform: none;
  background: radial-gradient(ellipse at 50% 35%, rgba(255,255,255,0.10), transparent 70%), linear-gradient(180deg, #57595f 0%, #404247 100%);
  background-color: #4a4c51;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), inset 0 -3px 0 rgba(0,0,0,0.25), 0 2px 0 #1b1c1f, 0 4px 7px rgba(0,0,0,0.35);
}

@media (max-width: 640px) {
  /* the device drawings now carry the work's image, so show them on phones too */
  .source-hardware-bay { display: flex; height: 190px; }
}

.source-body { grid-template-columns: 222px minmax(0, 1fr) 68px; }
@media (max-width: 880px) { .source-body { grid-template-columns: 1fr; } }

/* cube without an image: one colour per face so it reads as a solid */
/* cassette: label text above the tape window */
.fp-cassette { height: 100px; }
.fp-clabel { height: 72px; align-content: start; padding-top: 3px; background: linear-gradient(#cc5de8, #cc5de8) left 0 top 34px / 100% 3px no-repeat, #efe8d6; }
.fp-cwindow { top: 50px; }

/* INST — a stack of three mismatched sets (video sculpture) */
.fp-stackset { display: grid; place-items: center; background: radial-gradient(ellipse at 50% 85%, #2c2433 0%, #0c0b0e 70%); }
.fp-stack { display: flex; flex-direction: column; align-items: center; }
.fp-set { position: relative; display: grid; place-items: center; animation: fp-bob 2.6s ease-in-out infinite; }
.fp-scr { position: relative; overflow: hidden; background: #0b0d10; }
.fp-scr::after {
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,0.3) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at center, transparent 45%, rgba(0,0,0,0.55) 100%),
    linear-gradient(150deg, rgba(255,255,255,0.22), transparent 40%);
}
/* top: round cream "eyeball" set, colours shifted */
.fp-set.s-top {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fffaf0, #e8dcc2 60%, #b9a985);
  box-shadow: 0 3px 5px rgba(0,0,0,0.5);
  transform: rotate(9deg);
  margin-bottom: -3px;
  z-index: 3;
  animation-delay: -0.4s;
}
.s-top .fp-scr { width: 27px; height: 27px; border-radius: 50%; box-shadow: inset 0 0 0 2px #1c1c1c; }
.s-top .fp-img { filter: hue-rotate(150deg) saturate(1.8); }
/* middle: mint cube monitor, green monochrome */
.fp-set.s-mid {
  width: 66px; height: 48px;
  border-radius: 8px;
  background: linear-gradient(180deg, #9ff0d6, #5fcfae);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 3px 5px rgba(0,0,0,0.5);
  transform: rotate(-7deg);
  margin-bottom: -4px;
  z-index: 2;
  animation-delay: -1.3s;
  grid-template-columns: 1fr 9px;
  padding: 0 5px 0 6px;
  gap: 3px;
}
.s-mid .fp-scr { width: 100%; height: 36px; border-radius: 5px / 7px; }
.s-mid .fp-img { filter: grayscale(1) contrast(1.4) sepia(1) hue-rotate(70deg) saturate(2.5); }
.fp-dial { width: 9px; height: 9px; border-radius: 50%; background: repeating-conic-gradient(#fff 0 20deg, #2a8f73 20deg 40deg); box-shadow: 0 1px 1px rgba(0,0,0,0.4); }
/* bottom: glossy orange set, full colour */
.fp-set.s-bot {
  width: 112px; height: 62px;
  border-radius: 16px;
  background:
    linear-gradient(170deg, rgba(255,255,255,0.45) 0%, transparent 35%),
    linear-gradient(180deg, #ff7a3d, #e2541c);
  box-shadow: inset 0 -3px 0 rgba(0,0,0,0.18), 0 4px 8px rgba(0,0,0,0.55);
  transform: rotate(2deg);
  z-index: 1;
  animation-delay: -2s;
  grid-template-columns: 1fr auto;
  padding: 0 7px 0 8px;
  gap: 5px;
}
.s-bot .fp-scr { width: 100%; height: 46px; border-radius: 12px / 16px; box-shadow: inset 0 0 0 2px #2a1206; }
.s-bot .fp-img { filter: saturate(1.3) contrast(1.05); }
.fp-tvch { padding: 2px 3px; font-family: var(--font-mono); font-size: 11px; line-height: 1; color: #ffe066; background: #2a1206; border-radius: 3px; }
@keyframes fp-bob { 50% { translate: 0 -1.5px; } }
@media (prefers-reduced-motion: reduce) { .fp-set { animation: none !important; } }


/* PROJ — the projector on its own, throwing the work into the dark */
.fp-proj { display: block; background: radial-gradient(ellipse at 30% 70%, #1d1c22 0%, #09090b 70%); }
.fp-cone {
  position: absolute;
  left: 52%; top: 50%;
  width: 52%; height: 96%;
  transform: translateY(-58%);
  clip-path: polygon(0 50%, 100% 0, 100% 100%);
  overflow: hidden;
  background: linear-gradient(90deg, rgba(255, 244, 205, 0.9) 0%, rgba(255, 244, 205, 0.25) 100%);
  mix-blend-mode: screen;
  animation: fp-flicker 3.2s steps(1) infinite;
}
.fp-cone .fp-img { opacity: 0.6; mix-blend-mode: multiply; -webkit-mask: linear-gradient(90deg, transparent 10%, #000 70%); mask: linear-gradient(90deg, transparent 10%, #000 70%); }
.fp-pj {
  position: absolute;
  left: 8%; top: 50%;
  width: 86px; height: 46px;
  transform: translateY(-40%);
  border-radius: 7px 7px 5px 5px;
  background: linear-gradient(180deg, #f6f4ef 0%, #d9d6ce 100%);
  box-shadow: inset 0 -3px 0 rgba(0,0,0,0.12), 0 6px 10px rgba(0,0,0,0.6);
}
.fp-pj-top { position: absolute; left: 4px; right: 4px; top: -7px; height: 8px; border-radius: 5px 5px 0 0; background: linear-gradient(180deg, #ffffff, #e6e3dc); }
.fp-pj-grille { position: absolute; left: 8px; top: 10px; width: 30px; height: 24px; border-radius: 3px; background: radial-gradient(circle, #6b6860 0 1.2px, transparent 1.6px) 0 0 / 5px 5px; }
.fp-pj-led { position: absolute; left: 44px; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: #3cff7a; box-shadow: 0 0 5px #3cff7a; }
.fp-pj-lens {
  position: absolute;
  right: 6px; top: 50%;
  width: 34px; height: 34px;
  transform: translateY(-50%);
  border-radius: 50%;
  background:
    radial-gradient(circle, #fffbe8 0 16%, #ffe38a 26%, #2d3a52 42%, #10141c 60%, #3a3d44 64%, #1b1d21 70%, #8c9098 74%, #45484f 82%);
  box-shadow: 0 0 0 2px #22252a, 0 0 14px rgba(255, 232, 150, 0.85);
}
.fp-pj-feet { position: absolute; left: 8px; right: 8px; bottom: -4px; height: 4px; background: linear-gradient(90deg, #1b1b1d 0 9px, transparent 9px calc(100% - 9px), #1b1b1d calc(100% - 9px)); }
.no-thumb .fp-cone .fp-img { opacity: 0.35; }
@keyframes fp-flicker { 0%, 100% { opacity: 1; } 47% { opacity: 0.86; } 49% { opacity: 1; } 83% { opacity: 0.92; } }

/* TV — a simple cube analog monitor */
.fp-cubetv { display: grid; place-items: center; background: radial-gradient(ellipse at 50% 80%, #24221e 0%, #0b0a09 70%); }
.fp-cube-tv { position: relative; width: 96px; height: 88px; margin-right: 14px; }
.fp-ctv-face {
  position: absolute; inset: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 6px;
  padding: 8px 8px 6px;
  border-radius: 9px;
  background: linear-gradient(180deg, #e9e6df 0%, #cfcbc2 100%);
  box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgba(0,0,0,0.12), 0 6px 10px rgba(0,0,0,0.6);
  z-index: 1;
}
.fp-ctv-side {
  position: absolute;
  top: 6px; right: -12px;
  width: 16px; height: calc(100% - 4px);
  border-radius: 0 7px 7px 0;
  background: linear-gradient(90deg, #a9a59b, #8e8a80);
  transform: skewY(-24deg);
  transform-origin: 0 0;
}
.fp-ctv-screen {
  position: relative;
  overflow: hidden;
  border-radius: 10px / 13px;
  background: #0b0d10;
  box-shadow: inset 0 0 0 3px #1d1e20, 0 0 0 1px rgba(0,0,0,0.25);
}
.fp-ctv-screen .fp-img { filter: saturate(1.2) contrast(1.08); }
.fp-ctv-screen::after {
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,0.3) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at center, transparent 45%, rgba(0,0,0,0.6) 100%),
    linear-gradient(150deg, rgba(255,255,255,0.2), transparent 40%);
}
.fp-ctv-strip { display: flex; align-items: center; gap: 4px; height: 10px; }
.fp-ctv-strip i { width: 9px; height: 9px; border-radius: 50%; background: repeating-conic-gradient(#f6f5f2 0 20deg, #8f8b82 20deg 40deg); box-shadow: 0 1px 1px rgba(0,0,0,0.35); }
.fp-ctv-strip .fp-tvch { margin-left: auto; }
@media (prefers-reduced-motion: reduce) { .fp-cone { animation: none !important; } }

/* PROJ fix: side view — the lens is a barrel on the right side and the beam starts at its tip */
.fp-pj-lens {
  right: -17px;
  width: 19px; height: 26px;
  border-radius: 3px 5px 5px 3px;
  background:
    repeating-linear-gradient(90deg, transparent 0 4px, rgba(0,0,0,0.35) 4px 5px),
    linear-gradient(180deg, #5b5f68 0%, #2a2c31 45%, #17181b 60%, #464952 100%);
  box-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.fp-pj-lens::after { /* the front glass, seen edge-on */
  content: "";
  position: absolute;
  right: -3px; top: 2px;
  width: 5px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff3c4, #ffe38a 50%, #ffd35a);
  box-shadow: 0 0 10px rgba(255, 232, 150, 0.95);
}
.fp-cone {
  left: calc(8% + 108px);
  top: calc(50% + 4px);
  width: calc(92% - 108px);
  transform: translateY(-50%);
}
