/* ==========================================================================
   ONDA 01 — Industrial Editorial Design System & Interactive Hardware Styles
   ========================================================================== */

:root {
  --bg: #f2efe9;
  --bg-elevated: #faf8f4;
  --bg-muted: #e6e1d7;
  --ink: #141413;
  --ink-soft: #57544e;
  --ink-faint: #8c877d;
  --line: rgba(20, 20, 19, 0.11);
  --line-strong: rgba(20, 20, 19, 0.22);

  --accent: #ff4d1c;
  --accent-hover: #e53f12;
  --accent-soft: rgba(255, 77, 28, 0.12);

  --oled-bg: #0c0b09;
  --oled-amber: #ffb547;
  --oled-amber-dim: rgba(255, 181, 71, 0.42);
  --oled-amber-glow: rgba(255, 181, 71, 0.25);

  --font-sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 26px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==================== FINISH THEMES FOR HARDWARE & BACKPLATE ==================== */
[data-finish="titanium"] {
  --ch-bg-1: #e4e2dc;
  --ch-bg-2: #cbc8bf;
  --ch-border: #b3afa5;
  --ch-ink: #1c1b19;
  --ch-ink-muted: #615e57;
  --ch-well: #d6d3cb;
  --ch-btn-bg: #ebe9e4;
  --ch-btn-shadow: #aba79e;
  --ch-key-white: #f7f5f0;
  --ch-key-white-edge: #c4c0b6;
  --ch-key-black: #242320;
  --ch-key-black-edge: #0c0c0b;
  --ch-knob-base: #c2bfb6;
  --ch-knob-top: #dedcd5;
  --ch-knob-indicator: #ff4d1c;
  --ch-etch: rgba(25, 24, 22, 0.55);
  --ch-etch-shadow: rgba(255, 255, 255, 0.55);
  --ch-screw: #9c988f;
}

[data-finish="obsidian"] {
  --ch-bg-1: #262624;
  --ch-bg-2: #161615;
  --ch-border: #3a3936;
  --ch-ink: #ebe8e1;
  --ch-ink-muted: #8f8c84;
  --ch-well: #121211;
  --ch-btn-bg: #2c2b29;
  --ch-btn-shadow: #090908;
  --ch-key-white: #2f2e2b;
  --ch-key-white-edge: #141412;
  --ch-key-black: #121210;
  --ch-key-black-edge: #050504;
  --ch-knob-base: #1b1b19;
  --ch-knob-top: #343330;
  --ch-knob-indicator: #ff5c2e;
  --ch-etch: rgba(235, 232, 225, 0.45);
  --ch-etch-shadow: rgba(0, 0, 0, 0.7);
  --ch-screw: #4c4a46;
}

[data-finish="signal"] {
  --ch-bg-1: #ee5c2e;
  --ch-bg-2: #cc441b;
  --ch-border: #b33814;
  --ch-ink: #1b1512;
  --ch-ink-muted: rgba(27, 21, 18, 0.72);
  --ch-well: #c54018;
  --ch-btn-bg: #f37146;
  --ch-btn-shadow: #9b2e0e;
  --ch-key-white: #f7f3eb;
  --ch-key-white-edge: #a73816;
  --ch-key-black: #1f1c1a;
  --ch-key-black-edge: #0c0a09;
  --ch-knob-base: #b83a14;
  --ch-knob-top: #262422;
  --ch-knob-indicator: #ffb547;
  --ch-etch: rgba(25, 16, 12, 0.56);
  --ch-etch-shadow: rgba(255, 165, 130, 0.42);
  --ch-screw: #992e0d;
}

[data-finish="moss"] {
  --ch-bg-1: #5a6453;
  --ch-bg-2: #41493c;
  --ch-border: #333a2f;
  --ch-ink: #eef0e8;
  --ch-ink-muted: rgba(238, 240, 232, 0.68);
  --ch-well: #384033;
  --ch-btn-bg: #65705d;
  --ch-btn-shadow: #292f26;
  --ch-key-white: #ecebe4;
  --ch-key-white-edge: #353c30;
  --ch-key-black: #1e211c;
  --ch-key-black-edge: #0d0e0c;
  --ch-knob-base: #363d31;
  --ch-knob-top: #717d68;
  --ch-knob-indicator: #ffb547;
  --ch-etch: rgba(236, 240, 228, 0.48);
  --ch-etch-shadow: rgba(20, 24, 18, 0.6);
  --ch-screw: #30372c;
}

/* ==================== RESET & BASE ==================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.5;
  overflow-x: hidden;
}

.paper-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font-family: inherit;
}

kbd {
  display: inline-block;
  padding: 2px 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--bg-elevated);
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 4px;
  color: var(--ink);
}

.serif-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* ==================== HEADER ==================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 24px;
  background: rgba(242, 239, 233, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.14em;
  font-size: 14px;
}

.brand-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.brand-model {
  color: var(--ink-faint);
  font-weight: 400;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.main-nav a {
  position: relative;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.audio-status-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg-elevated);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.audio-status-btn:hover {
  border-color: var(--ink);
}

.audio-status-btn.playing {
  background: var(--ink);
  color: var(--bg-elevated);
  border-color: var(--ink);
}

.audio-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 11px;
}

.audio-bars i {
  display: block;
  width: 2px;
  height: 4px;
  background: currentColor;
  border-radius: 1px;
  transition: height 0.2s ease;
}

.audio-status-btn.playing .audio-bars i:nth-child(1) {
  background: var(--accent);
  animation: eqBar 0.7s ease-in-out infinite alternate;
}
.audio-status-btn.playing .audio-bars i:nth-child(2) {
  background: var(--oled-amber);
  animation: eqBar 0.55s ease-in-out 0.15s infinite alternate;
}
.audio-status-btn.playing .audio-bars i:nth-child(3) {
  background: var(--accent);
  animation: eqBar 0.8s ease-in-out 0.3s infinite alternate;
}

@keyframes eqBar {
  from { height: 3px; }
  to { height: 11px; }
}

/* ==================== BUTTONS ==================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  border: none;
  background: var(--ink);
  color: #f7f5f0;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 18px rgba(20, 20, 19, 0.14);
}

.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(255, 77, 28, 0.26);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-sm {
  padding: 8px 15px;
  font-size: 13px;
}

.btn-lg {
  padding: 15px 28px;
  font-size: 15px;
}

.btn-full {
  width: 100%;
}

.price-pill {
  font-family: var(--font-mono);
  font-size: 11.5px;
  opacity: 0.78;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-ghost:hover {
  background: var(--bg-elevated);
  border-color: var(--ink);
}

/* ==================== HERO ==================== */
.hero-section {
  padding: 48px 0 64px;
}

.hero-top {
  max-width: 780px;
  margin: 0 auto 44px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-bottom: 22px;
}

.status-led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.status-led.pulse {
  box-shadow: 0 0 0 0 rgba(255, 77, 28, 0.65);
  animation: ledPulse 2.4s infinite;
}

@keyframes ledPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 77, 28, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(255, 77, 28, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 77, 28, 0); }
}

.hero-title {
  margin: 0 0 18px;
  font-size: clamp(44px, 7.2vw, 84px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.hero-lead {
  margin: 0 auto 28px;
  max-width: 590px;
  font-size: clamp(16px, 1.8vw, 18.5px);
  color: var(--ink-soft);
  line-height: 1.55;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 14px;
}

.hero-hint-inline {
  width: 100%;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-faint);
}

/* ==================== PLAYABLE HARDWARE CHASSIS ==================== */
.hardware-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  perspective: 1400px;
}

.hardware-ambient-glow {
  position: absolute;
  width: 72%;
  height: 60%;
  top: 22%;
  background: radial-gradient(ellipse at center, rgba(255, 140, 66, 0.14), transparent 72%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.onda-chassis {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 920px;
  padding: 28px 30px 26px;
  border-radius: var(--radius-xl);
  background: linear-gradient(155deg, var(--ch-bg-1) 0%, var(--ch-bg-2) 100%);
  border: 1px solid var(--ch-border);
  color: var(--ch-ink);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.45),
    inset 0 -3px 6px rgba(0, 0, 0, 0.2),
    0 42px 84px -22px rgba(20, 18, 14, 0.34),
    0 14px 28px -10px rgba(20, 18, 14, 0.2),
    0 2px 4px rgba(20, 18, 14, 0.12);
  transition: background 0.45s var(--ease-out), border-color 0.45s var(--ease-out), color 0.35s ease;
  user-select: none;
  overflow: hidden;
}

/* Subtle anodized brushed grain */
.onda-chassis::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.3) 0px,
    rgba(0, 0, 0, 0.2) 1px,
    transparent 2px,
    transparent 4px
  );
  mix-blend-mode: overlay;
}

.chassis-specular {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(
    540px circle at var(--mx, 28%) var(--my, 18%),
    rgba(255, 255, 255, 0.22),
    transparent 62%
  );
  transition: opacity 0.3s ease;
}

.chassis-bevel {
  position: absolute;
  inset: 6px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  pointer-events: none;
}

/* Corner Precision Torx Screws */
.screw {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.35), var(--ch-screw) 70%);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.48), 0 1px 0 rgba(255, 255, 255, 0.28);
  z-index: 3;
}

.screw::after {
  content: "";
  position: absolute;
  inset: 2.5px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.42);
}

.screw-tl { top: 13px; left: 13px; }
.screw-tr { top: 13px; right: 13px; }
.screw-bl { bottom: 13px; left: 13px; }
.screw-br { bottom: 13px; right: 13px; }

/* TOP DECK */
.deck-top {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 205px 1fr;
  gap: 22px;
  margin-bottom: 24px;
}

.speaker-section {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.045);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.12);
}

.hw-micro-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--ch-ink);
}

.speaker-grille {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: 6px;
  padding: 12px 2px;
}

.grille-hole {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.62);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.8), 0 0.8px 0 rgba(255, 255, 255, 0.22);
}

.speaker-submeta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--ch-ink-muted);
}

.signal-pip {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  transition: background 0.1s ease, box-shadow 0.1s ease;
}

.signal-pip.lit {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

/* SAPPHIRE OLED & TAPE BAY */
.sapphire-bay {
  position: relative;
  border-radius: 15px;
  padding: 12px 16px 11px;
  background: var(--oled-bg);
  border: 2px solid rgba(0, 0, 0, 0.55);
  box-shadow:
    inset 0 6px 18px rgba(0, 0, 0, 0.9),
    0 1px 0 rgba(255, 255, 255, 0.25);
  color: var(--oled-amber);
  overflow: hidden;
}

.sapphire-glass-reflection {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    118deg,
    rgba(255, 255, 255, 0.09) 0%,
    rgba(255, 255, 255, 0.025) 36%,
    transparent 36.5%,
    transparent 100%
  );
  z-index: 3;
}

.oled-header,
.oled-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.oled-header {
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 181, 71, 0.14);
}

.oled-badge {
  padding: 2px 7px;
  border-radius: 3px;
  background: var(--oled-amber);
  color: #0c0b09;
  font-weight: 600;
}

.oled-meta {
  color: var(--oled-amber-dim);
}

.oled-mode-btn {
  padding: 2px 7px;
  border-radius: 3px;
  border: 1px solid rgba(255, 181, 71, 0.35);
  background: transparent;
  color: var(--oled-amber);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.oled-mode-btn:hover {
  background: rgba(255, 181, 71, 0.16);
}

.oled-main-row {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 162px 1fr;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
}

/* Spinning Dual Magnetic Micro-Tape Reels */
.tape-window {
  position: relative;
  height: 82px;
  border-radius: 9px;
  background: linear-gradient(180deg, #161411 0%, #0d0c0a 100%);
  border: 1px solid rgba(255, 181, 71, 0.16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  overflow: hidden;
}

.tape-reel {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle, #181613 24%, #403224 25%, #2b2117 62%, #686258 63%, #91897d 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 0 6px rgba(0, 0, 0, 0.7);
  will-change: transform;
}

.reel-hub {
  position: absolute;
  inset: 19px;
  border-radius: 50%;
  background: #141311;
  border: 1.5px solid #ffb547;
  z-index: 2;
}

.reel-spoke {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 3px;
  margin-left: -22px;
  margin-top: -1.5px;
  background: linear-gradient(90deg, #d7d1c6 0%, transparent 32%, transparent 68%, #d7d1c6 100%);
  border-radius: 2px;
}

.reel-spoke.s2 { transform: rotate(60deg); }
.reel-spoke.s3 { transform: rotate(120deg); }

.tape-bridge {
  position: absolute;
  left: 36px;
  right: 36px;
  bottom: 13px;
  height: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tape-ribbon {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #754e2b, #c5884a, #754e2b);
  opacity: 0.85;
}

.tape-head {
  width: 14px;
  height: 7px;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, #a8a296, #5e5a52);
  transform: translateY(3px);
}

/* Scope Canvas */
.scope-wrap {
  position: relative;
  height: 82px;
  border-radius: 8px;
  background: rgba(255, 181, 71, 0.03);
  border: 1px solid rgba(255, 181, 71, 0.1);
  overflow: hidden;
}

#oledCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.oled-toast {
  position: absolute;
  top: 6px;
  right: 8px;
  padding: 2px 7px;
  border-radius: 3px;
  background: rgba(255, 181, 71, 0.18);
  border: 1px solid rgba(255, 181, 71, 0.45);
  color: #ffd084;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}

.oled-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.oled-footer {
  padding-top: 7px;
  border-top: 1px solid rgba(255, 181, 71, 0.14);
  color: var(--oled-amber-dim);
}

#oledActiveNote {
  color: var(--oled-amber);
}

/* ==================== MIDDLE DECK: ENGINE + KNOBS ==================== */
.deck-middle {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 24px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.04);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cluster-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ch-ink-muted);
  margin-bottom: 7px;
}

.transport-label {
  margin-top: 12px;
}

.voice-grid,
.transport-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.hw-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 44px;
  padding: 4px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: var(--ch-btn-bg);
  color: var(--ch-ink);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  box-shadow:
    0 3px 0 var(--ch-btn-shadow),
    0 4px 8px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.15s ease;
}

.hw-btn:active,
.hw-btn.pressed {
  transform: translateY(2px);
  box-shadow:
    0 1px 0 var(--ch-btn-shadow),
    0 1px 3px rgba(0, 0, 0, 0.14);
}

.hw-led {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.hw-btn.active .hw-led {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent), 0 0 2px #fff;
}

.hw-btn-accent {
  background: #232220;
  color: #f6f3ed;
  border-color: #0e0d0c;
  box-shadow: 0 3px 0 #0a0a09, 0 4px 8px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.hw-btn-accent.active .hw-led {
  background: #ffb547;
  box-shadow: 0 0 10px #ffb547, 0 0 3px #fff;
}

.hw-btn-oct {
  font-size: 9.5px;
}

/* KNURLED ALUMINUM KNOBS */
.knobs-bank {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  justify-items: center;
}

.knob-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

.knob-dial {
  position: relative;
  width: 78px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: ns-resize;
  outline: none;
  touch-action: none;
}

.knob-dial:focus-visible .knob-cap {
  box-shadow: 0 0 0 3px var(--accent), 0 8px 16px rgba(0, 0, 0, 0.35);
}

.knob-ticks {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-conic-gradient(
    from -135deg,
    var(--ch-ink-muted) 0deg 1.8deg,
    transparent 1.8deg 27deg
  );
  -webkit-mask-image: radial-gradient(transparent 62%, #000 63%, #000 72%, transparent 73%);
  mask-image: radial-gradient(transparent 62%, #000 63%, #000 72%, transparent 73%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 74% 100%, 50% 50%, 26% 100%, 0 100%);
  opacity: 0.62;
}

.knob-cap {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.45), transparent 55%),
    conic-gradient(
      from 40deg,
      var(--ch-knob-top),
      var(--ch-knob-base),
      var(--ch-knob-top),
      var(--ch-knob-base),
      var(--ch-knob-top)
    );
  border: 2.5px dashed rgba(0, 0, 0, 0.28);
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.28),
    0 2px 4px rgba(0, 0, 0, 0.25),
    inset 0 1px 2px rgba(255, 255, 255, 0.4);
  transform: rotate(calc(var(--angle, 0) * 1deg));
  transition: box-shadow 0.15s ease;
}

.knob-dial.dragging .knob-cap {
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.34),
    0 0 0 2px var(--accent),
    inset 0 1px 2px rgba(255, 255, 255, 0.4);
}

.knob-indicator {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3.5px;
  height: 14px;
  border-radius: 2px;
  background: var(--ch-knob-indicator);
  box-shadow: 0 0 5px rgba(255, 77, 28, 0.4);
}

.knob-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ch-ink);
}

.knob-val {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ch-ink-muted);
  margin-top: -5px;
}

/* ==================== BOTTOM DECK: TACTILE KEYBED ==================== */
.deck-keys {
  position: relative;
  z-index: 2;
}

.keybed-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ch-ink-muted);
}

.keybed-meta strong {
  color: var(--ch-ink);
}

.key-hints-toggle {
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  background: rgba(255, 255, 255, 0.14);
  color: var(--ch-ink);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.keybed {
  position: relative;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
  height: 144px;
  padding: 8px;
  border-radius: 14px;
  background: var(--ch-well);
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.24);
}

.key {
  position: relative;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 11px;
  font-family: var(--font-mono);
  transition: transform 0.06s ease, box-shadow 0.06s ease;
  touch-action: none;
}

.key-white {
  height: 100%;
  border-radius: 7px 7px 9px 9px;
  background: linear-gradient(180deg, var(--ch-key-white) 0%, color-mix(in srgb, var(--ch-key-white) 92%, #000) 100%);
  color: var(--ch-ink-muted);
  box-shadow:
    0 5px 0 var(--ch-key-white-edge),
    0 6px 10px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  z-index: 1;
}

[data-finish="obsidian"] .key-white {
  color: #a8a39a;
}

.key-white.active {
  transform: translateY(3.5px);
  box-shadow:
    0 1.5px 0 var(--ch-key-white-edge),
    0 2px 4px rgba(0, 0, 0, 0.18),
    inset 0 0 0 1.5px var(--accent);
}

.key-black {
  position: absolute;
  top: 8px;
  width: calc((100% - 16px) / 8 * 0.64);
  height: 78px;
  border-radius: 5px 5px 8px 8px;
  background: linear-gradient(180deg, var(--ch-key-black) 0%, #090908 100%);
  color: rgba(255, 255, 255, 0.62);
  box-shadow:
    0 5px 0 var(--ch-key-black-edge),
    0 7px 12px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  z-index: 3;
  transform: translateX(-50%);
}

.key-black.active {
  transform: translateX(-50%) translateY(3.5px);
  box-shadow:
    0 1.5px 0 var(--ch-key-black-edge),
    0 2px 5px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1.5px var(--oled-amber);
}

/* Accurately positioned black keys over 8 white keys */
.kb-1 { left: calc(8px + (100% - 16px) * 1 / 8); }
.kb-2 { left: calc(8px + (100% - 16px) * 2 / 8); }
.kb-3 { left: calc(8px + (100% - 16px) * 4 / 8); }
.kb-4 { left: calc(8px + (100% - 16px) * 5 / 8); }
.kb-5 { left: calc(8px + (100% - 16px) * 6 / 8); }

.key-pip {
  position: absolute;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(128, 128, 128, 0.28);
  transition: background 0.08s ease, box-shadow 0.08s ease;
}

.key.active .key-pip {
  background: var(--accent);
  box-shadow: 0 0 9px var(--accent), 0 0 2px #fff;
}

.key-black.active .key-pip {
  background: var(--oled-amber);
  box-shadow: 0 0 9px var(--oled-amber), 0 0 2px #fff;
}

.key-note {
  font-size: 11px;
  font-weight: 600;
}

.key-kbd {
  font-size: 9px;
  opacity: 0.55;
  margin-top: 2px;
  transition: opacity 0.2s ease;
}

.keybed.hide-hints .key-kbd {
  opacity: 0;
}

/* ==================== FINISH DOCK ==================== */
.finish-dock {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 18px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(20, 18, 14, 0.06);
}

.dock-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  padding-left: 6px;
}

.finish-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.swatch-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.swatch-btn:hover {
  color: var(--ink);
  background: rgba(20, 20, 19, 0.04);
}

.swatch-btn.active {
  background: var(--ink);
  color: #f7f5f0;
}

.swatch-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.22);
  flex-shrink: 0;
}

.dot-titanium { background: linear-gradient(135deg, #eceae4, #bcb8ae); }
.dot-obsidian { background: linear-gradient(135deg, #3a3936, #111110); }
.dot-signal { background: linear-gradient(135deg, #ff6c3d, #c93d14); }
.dot-moss { background: linear-gradient(135deg, #6e7966, #3d4538); }

/* ==================== PRECISION SPECS RIBBON ==================== */
.specs-ribbon {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-elevated);
  padding: 34px 0;
}

.ribbon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.ribbon-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.ribbon-item:first-child {
  padding-left: 0;
  border-left: none;
}

.ribbon-num {
  font-family: var(--font-mono);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.ribbon-caption {
  font-size: 13px;
  color: var(--ink-soft);
}

/* ==================== SHARED SECTION STYLES ==================== */
.section {
  padding: 96px 0;
}

.section-header-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: end;
  margin-bottom: 48px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 12px;
}

.eyebrow-sm {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--oled-amber);
}

.section-title {
  margin: 0;
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.section-intro {
  margin: 0;
  font-size: 16px;
  line-height: 1.62;
  color: var(--ink-soft);
}

/* ==================== 3D EXPLODED-VIEW ANATOMY ==================== */
.anatomy-workspace {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 32px;
  align-items: stretch;
}

.exploded-stage {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 22px 24px 28px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.exploded-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.explode-slider-label {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

.explode-slider-label input[type="range"] {
  flex: 1;
  accent-color: var(--accent);
  height: 4px;
  cursor: ew-resize;
}

.explode-percent {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  min-width: 42px;
  text-align: right;
  color: var(--accent);
}

.stack-viewport {
  flex: 1;
  min-height: 495px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1400px;
  overflow: hidden;
}

.stack-3d {
  position: relative;
  width: 340px;
  height: 196px;
  transform-style: preserve-3d;
  transform: rotateX(56deg) rotateZ(-28deg);
  transition: transform 0.35s var(--ease-out);
}

.hw-layer {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  cursor: pointer;
  transition: transform 0.35s var(--ease-out), filter 0.25s ease;
  outline: none;
}

.layer-1 { transform: translateZ(calc(var(--explode, 0.78) * 168px)); }
.layer-2 { transform: translateZ(calc(var(--explode, 0.78) * 84px)); }
.layer-3 { transform: translateZ(0px); }
.layer-4 { transform: translateZ(calc(var(--explode, 0.78) * -84px)); }
.layer-5 { transform: translateZ(calc(var(--explode, 0.78) * -168px)); }

.hw-layer.active.layer-1 { transform: translateZ(calc(var(--explode, 0.78) * 168px)) translateX(28px); }
.hw-layer.active.layer-2 { transform: translateZ(calc(var(--explode, 0.78) * 84px)) translateX(28px); }
.hw-layer.active.layer-3 { transform: translateZ(0px) translateX(28px); }
.hw-layer.active.layer-4 { transform: translateZ(calc(var(--explode, 0.78) * -84px)) translateX(28px); }
.hw-layer.active.layer-5 { transform: translateZ(calc(var(--explode, 0.78) * -168px)) translateX(28px); }

.layer-plate {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  padding: 14px;
  border: 1.5px solid rgba(20, 20, 19, 0.18);
  box-shadow: -14px 18px 26px rgba(20, 18, 14, 0.16);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.hw-layer:hover .layer-plate {
  border-color: rgba(255, 77, 28, 0.65);
}

.hw-layer.active .layer-plate {
  border-color: var(--accent);
  box-shadow:
    -18px 22px 34px rgba(255, 77, 28, 0.2),
    0 0 0 2px rgba(255, 77, 28, 0.25);
}

.plate-tag {
  position: absolute;
  top: 9px;
  left: 12px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  opacity: 0.78;
  z-index: 2;
}

.plate-top {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(220, 224, 230, 0.36));
  backdrop-filter: blur(4px);
  color: #1c1b19;
}

.top-elements {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 22px;
}

.mini-sapphire {
  display: block;
  width: 62%;
  height: 44px;
  margin-left: auto;
  border-radius: 7px;
  background: linear-gradient(135deg, #1b1a18, #090908);
  border: 1px solid rgba(255, 181, 71, 0.45);
  box-shadow: inset 0 0 12px rgba(255, 181, 71, 0.2);
}

.mini-encoders {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  padding-right: 12px;
}

.mini-encoders span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f5f3ee, #9c988f);
  border: 2px dashed rgba(20, 20, 19, 0.35);
  box-shadow: -3px 5px 8px rgba(0, 0, 0, 0.25);
}

.plate-chassis {
  background: linear-gradient(145deg, #dbd8d0, #b9b5ab);
  color: #1c1b19;
}

.chassis-cutouts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
}

.cutout-screen {
  width: 62%;
  height: 36px;
  margin-left: auto;
  border-radius: 6px;
  background: rgba(20, 20, 19, 0.16);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.28);
}

.cutout-knobs {
  display: flex;
  justify-content: flex-end;
  gap: 22px;
  padding-right: 16px;
}

.cutout-knobs i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(20, 20, 19, 0.2);
}

.cutout-keys {
  height: 48px;
  border-radius: 7px;
  background: rgba(20, 20, 19, 0.14);
}

.plate-pcb {
  background: linear-gradient(145deg, #1b221e, #101512);
  color: #f2c97d;
}

.pcb-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.plate-acoustic {
  background: linear-gradient(145deg, #2d2b28, #1d1c1a);
  color: #d8d3c9;
}

.acoustic-chamber-viz {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 20px 14px 4px;
}

.driver-ring {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: radial-gradient(circle, #111 26%, #4a4742 28%, #222 60%, #7a746a 64%, #312f2c 100%);
  border: 2px solid rgba(255, 181, 71, 0.3);
}

.baffle-lines {
  width: 170px;
  height: 92px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.09) 0px,
    rgba(255, 255, 255, 0.09) 6px,
    transparent 6px,
    transparent 18px
  );
}

.plate-back {
  background: linear-gradient(145deg, #c7c3b9, #9f9b92);
  color: #1c1b19;
}

.battery-pack {
  margin-top: 32px;
  height: 112px;
  border-radius: 10px;
  background: linear-gradient(135deg, #242422, #171716);
  color: #e6e2d8;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.cell-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--oled-amber);
}

.cell-bars {
  height: 22px;
  border-radius: 4px;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 181, 71, 0.72) 0 18px,
    transparent 18px 23px
  );
}

/* Layer Inspector Panel */
.anatomy-inspector {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.layer-pills {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.layer-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--ink-soft);
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
}

.layer-pill:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.layer-pill.active {
  background: var(--ink);
  color: #faf8f4;
  border-color: var(--ink);
  transform: translateX(4px);
}

.pill-idx {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
}

.layer-detail-card {
  flex: 1;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.detail-top-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  margin-bottom: 10px;
}

.detail-weight {
  color: var(--accent);
  font-weight: 600;
}

.detail-title {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.detail-desc {
  margin: 0 0 22px;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.detail-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.metric-box {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.metric-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
}

.metric-val {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
}

/* ==================== ACOUSTICS LAB SECTION ==================== */
.acoustics-section {
  background: #141413;
  color: #f3efe7;
}

.acoustics-section .section-intro {
  color: #a9a499;
}

.acoustics-lab {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 24px;
}

.lab-visualizer-panel,
.lab-audition-panel {
  background: #1c1b19;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-xl);
  padding: 24px;
}

.circuit-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.circuit-tab {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #151412;
  color: #b7b2a8;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.circuit-tab:hover {
  border-color: rgba(255, 181, 71, 0.45);
}

.circuit-tab.active {
  background: rgba(255, 181, 71, 0.1);
  border-color: var(--oled-amber);
  color: #fff;
}

.tab-code {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}

.circuit-tab.active .tab-code {
  background: var(--oled-amber);
  color: #141413;
}

.circuit-tab strong {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  margin-bottom: 2px;
}

.circuit-tab span {
  font-size: 11.5px;
  color: #8c877c;
  line-height: 1.3;
}

.curve-canvas-shell {
  background: #0d0c0a;
  border: 1px solid rgba(255, 181, 71, 0.18);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.curve-header {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.09em;
  color: var(--oled-amber);
  margin-bottom: 10px;
}

#curveStats {
  color: var(--oled-amber-dim);
}

#acousticCanvas {
  width: 100%;
  height: 230px;
  display: block;
}

.curve-axis-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255, 181, 71, 0.45);
}

/* Audition Pads */
.lab-audition-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.audition-header h3 {
  margin: 8px 0 6px;
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.audition-header p {
  margin: 0;
  font-size: 13.5px;
  color: #9e998e;
}

.chord-pads {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.chord-pad {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 15px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: linear-gradient(180deg, #252421, #191816);
  color: #f4f0e8;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.chord-pad:hover {
  border-color: var(--oled-amber);
  transform: translateY(-2px);
}

.chord-pad.ringing {
  border-color: var(--accent);
  box-shadow: 0 0 22px rgba(255, 77, 28, 0.28), inset 0 0 0 1px var(--accent);
  transform: translateY(0);
}

.pad-name {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
}

.pad-mood {
  font-size: 12px;
  color: #9a958b;
}

.pad-action {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--oled-amber);
}

.circuit-specs-mini {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12.5px;
}

.circuit-specs-mini div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.circuit-specs-mini span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: #8a857b;
}

.circuit-specs-mini strong {
  font-weight: 500;
  color: #ebe7df;
}

/* ==================== CONNECTIVITY / EDGE INSPECTOR ==================== */
.edge-inspector-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 32px;
  margin-bottom: 24px;
}

.edge-blueprint {
  padding: 28px 0 34px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}

.edge-chassis-profile {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding: 18px 34px;
  border-radius: 999px;
  background: linear-gradient(180deg, #dfdcd5 0%, #c6c2b9 52%, #b5b1a7 100%);
  border: 1px solid #9d998f;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.68),
    inset 0 -2px 3px rgba(0, 0, 0, 0.18),
    0 18px 36px -14px rgba(20, 18, 14, 0.24);
}

.edge-thickness-dim {
  position: absolute;
  top: -24px;
  right: 26px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
}

.ports-strip {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 14px;
}

.port-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 10px;
  transition: transform 0.18s ease, background 0.18s ease;
}

.port-node:hover {
  transform: translateY(-2px);
}

.port-graphic {
  display: block;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.port-usbc {
  width: 44px;
  height: 16px;
  border-radius: 999px;
  background: #171615;
  border: 2px solid #868278;
  box-shadow: inset 0 0 0 3px #2e2c29;
}

.port-jack {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle, #0e0e0d 46%, #caa35d 49%, #8f6f36 100%);
  border: 2px solid #8a867c;
}

.port-jack.port-accent {
  border-color: var(--accent);
}

.port-switch {
  width: 38px;
  height: 16px;
  border-radius: 4px;
  background: linear-gradient(90deg, #1b1a18 0 46%, #ff4d1c 46% 100%);
  border: 2px solid #6e6a62;
}

.port-node.active .port-graphic {
  box-shadow: 0 0 0 4px rgba(255, 77, 28, 0.3);
}

.port-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #252421;
}

.port-node.active .port-label {
  color: var(--accent);
}

.port-readout {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.port-readout-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 6px;
}

.port-readout h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 500;
}

.port-readout p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-soft);
}

.craft-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.craft-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
}

.craft-index {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  margin-bottom: 14px;
}

.craft-card h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.craft-card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.58;
}

/* ==================== CONFIGURATOR & ENGRAVING ==================== */
.configurator-section {
  background: var(--bg-muted);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.configurator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}

.backplate-stage {
  position: sticky;
  top: 96px;
}

.backplate-card {
  position: relative;
  aspect-ratio: 1.62 / 1;
  border-radius: var(--radius-xl);
  padding: 32px 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(150deg, var(--ch-bg-1) 0%, var(--ch-bg-2) 100%);
  border: 1px solid var(--ch-border);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.42),
    inset 0 -3px 6px rgba(0, 0, 0, 0.2),
    0 34px 64px -20px rgba(20, 18, 14, 0.32);
  overflow: hidden;
  transition: background 0.45s var(--ease-out), border-color 0.45s var(--ease-out);
}

.backplate-specular {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    420px circle at var(--mx, 35%) var(--my, 25%),
    rgba(255, 255, 255, 0.24),
    transparent 62%
  );
}

.bp-top-row,
.bp-bottom-row {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ch-etch);
  text-shadow: 0 1px 0 var(--ch-etch-shadow);
}

.bp-center-etch {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 18px 12px;
  border-top: 1px solid rgba(128, 128, 128, 0.18);
  border-bottom: 1px solid rgba(128, 128, 128, 0.18);
}

.bp-etch-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--ch-etch);
  opacity: 0.72;
  margin-bottom: 8px;
}

.bp-etch-text {
  font-family: var(--font-mono);
  font-size: clamp(18px, 2.4vw, 26px);
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--ch-etch);
  text-shadow: 0 1px 0 var(--ch-etch-shadow);
  min-height: 34px;
  text-transform: uppercase;
}

.bp-marks {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 8.5px;
}

.bp-barcode {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 24px;
  opacity: 0.55;
}

.bp-barcode i {
  display: block;
  width: 2px;
  height: 100%;
  background: var(--ch-etch);
}
.bp-barcode i:nth-child(2n) { width: 4px; }
.bp-barcode i:nth-child(3n) { width: 1.5px; }

.backplate-caption {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-soft);
}

/* Config Form Controls */
.config-controls {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.config-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.char-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
  margin-bottom: 12px;
}

.config-finish-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.finish-tile {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 13px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--line);
  background: var(--bg);
  text-align: left;
  cursor: pointer;
  transition: all 0.18s ease;
}

.finish-tile:hover {
  border-color: var(--line-strong);
}

.finish-tile.active {
  border-color: var(--ink);
  background: #fff;
  box-shadow: 0 4px 12px rgba(20, 18, 14, 0.08);
}

.finish-tile strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.finish-tile span {
  font-size: 11.5px;
  color: var(--ink-faint);
}

.config-input {
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--line-strong);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.config-input:focus {
  border-color: var(--accent);
  background: #fff;
}

.accessory-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.accessory-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--bg);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.accessory-item:hover {
  border-color: var(--line-strong);
}

.accessory-item input {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
  cursor: pointer;
}

.acc-info {
  flex: 1;
}

.acc-info strong {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
}

.acc-info span {
  font-size: 12px;
  color: var(--ink-faint);
}

.acc-price {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.config-checkout-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.total-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
}

.total-price {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* ==================== TECHNICAL SPECS ACCORDION ==================== */
.specs-sheet-section {
  padding: 64px 0;
}

.specs-accordion {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
}

.specs-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  cursor: pointer;
  list-style: none;
}

.specs-summary::-webkit-details-marker {
  display: none;
}

.accordion-icon::before {
  content: "+";
  font-size: 18px;
  color: var(--accent);
}

.specs-accordion[open] .accordion-icon::before {
  content: "−";
}

.specs-table-grid {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 34px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13.5px;
}

.spec-row span {
  color: var(--ink-soft);
}

.spec-row strong {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  text-align: right;
}

/* ==================== FOOTER ==================== */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 56px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand p {
  margin: 10px 0 0;
  font-size: 13.5px;
  color: var(--ink-soft);
  max-width: 360px;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
}

/* ==================== RESERVATION MODAL DRAWER ==================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(16, 15, 13, 0.56);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-backdrop.open {
  opacity: 1;
}

.modal-panel {
  position: relative;
  width: 100%;
  max-width: 470px;
  height: 100%;
  background: var(--bg-elevated);
  padding: 34px 30px;
  overflow-y: auto;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.25);
  transform: translateX(30px);
  transition: transform 0.3s var(--ease-out);
}

.modal-backdrop.open .modal-panel {
  transform: translateX(0);
}

.modal-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  cursor: pointer;
  font-size: 14px;
}

.modal-title {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.modal-sub {
  margin: 0 0 22px;
  font-size: 14px;
  color: var(--ink-soft);
}

.order-summary-box {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 22px;
  font-size: 13px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
}

.summary-line.total {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 15px;
}

.reserve-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.form-field input,
.form-field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: #fff;
  font-size: 14px;
  outline: none;
}

.form-field input:focus,
.form-field select:focus {
  border-color: var(--accent);
}

/* Confirmation Certificate */
.certificate-card {
  margin: 24px 0;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: #141413;
  color: #f4f0e8;
  border: 1px solid rgba(255, 181, 71, 0.3);
}

.cert-header,
.cert-footer {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #a19c92;
}

.cert-badge {
  padding: 2px 7px;
  border-radius: 3px;
  background: var(--accent);
  color: #fff;
}

.cert-serial {
  margin: 18px 0 12px;
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 600;
  color: var(--oled-amber);
  letter-spacing: 0.08em;
}

.cert-message {
  font-size: 14px;
  color: #cfc9be;
  line-height: 1.55;
}

.cert-details {
  margin: 18px 0;
  padding: 14px 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.18);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.18);
  font-family: var(--font-mono);
  font-size: 11.5px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 980px) {
  .main-nav {
    display: none;
  }

  .deck-top,
  .deck-middle,
  .section-header-split,
  .anatomy-workspace,
  .acoustics-lab,
  .configurator-grid {
    grid-template-columns: 1fr;
  }

  .speaker-section {
    display: none;
  }

  .ribbon-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ribbon-item:nth-child(3) {
    padding-left: 0;
    border-left: none;
  }

  .craft-bento,
  .specs-table-grid {
    grid-template-columns: 1fr;
  }

  .backplate-stage {
    position: static;
  }

  .circuit-tabs {
    grid-template-columns: 1fr;
  }
}

/* Prevent grid children from causing horizontal overflow */
.deck-top > *,
.deck-middle > *,
.anatomy-workspace > *,
.acoustics-lab > *,
.configurator-grid > *,
.oled-main-row > * {
  min-width: 0;
}

@media (max-width: 640px) {
  .site-header {
    padding: 11px 14px;
  }

  .header-inner {
    gap: 10px;
  }

  .brand-lockup {
    font-size: 12.5px;
    gap: 6px;
  }

  .audio-status-btn {
    padding: 7px 10px;
    font-size: 10.5px;
  }

  .btn-sm {
    padding: 7px 12px;
    font-size: 12px;
  }

  .price-pill {
    display: none;
  }

  .container {
    padding: 0 14px;
  }

  .hero-section {
    padding: 32px 0 48px;
  }

  .hero-eyebrow {
    font-size: 9.5px;
    padding: 6px 11px;
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

  .onda-chassis {
    padding: 24px 14px 18px;
    border-radius: 18px;
  }

  .screw-tl { top: 9px; left: 9px; }
  .screw-tr { top: 9px; right: 9px; }
  .screw-bl { bottom: 9px; left: 9px; }
  .screw-br { bottom: 9px; right: 9px; }

  .deck-middle {
    padding: 12px;
    gap: 18px;
  }

  .voice-grid,
  .transport-row {
    gap: 5px;
  }

  .hw-btn {
    font-size: 9px;
    height: 40px;
    min-width: 0;
  }

  .oled-main-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .oled-header,
  .oled-footer {
    font-size: 9px;
    gap: 6px;
  }

  .tape-window {
    height: 66px;
  }

  .knobs-bank {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 8px;
  }

  .keybed {
    height: 118px;
    gap: 4px;
    padding: 6px;
  }

  .key-black {
    height: 64px;
    top: 6px;
  }

  .keybed-tip {
    display: none;
  }

  .finish-dock {
    border-radius: 18px;
    padding: 12px;
  }

  .stack-viewport {
    min-height: 360px;
  }

  .stack-3d {
    width: 240px;
    height: 140px;
    transform: rotateX(55deg) rotateZ(-28deg) scale(0.84);
  }

  .edge-inspector-card {
    padding: 20px 16px;
  }

  .edge-chassis-profile {
    border-radius: 18px;
    padding: 16px 14px;
  }

  .config-controls {
    padding: 20px 16px;
  }

  .config-finish-grid {
    grid-template-columns: 1fr;
  }

  .config-checkout-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .ports-strip {
    flex-wrap: wrap;
    justify-content: center;
  }

  .chord-pads {
    grid-template-columns: 1fr;
  }

  .detail-metrics {
    grid-template-columns: 1fr;
  }

  .footer-meta {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
