/* Naught Audio — dual skins (CosmoNaught Cyan web default · Luxury Warm)
   Room photo: fixed CSS full-viewport layer. Content scrolls over it.
   No scroll-dolly / no scaling transforms (those broke the site). */
:root {
  --naught-lime: #7dffa8;
  --naught-cyan: #00f0ff;
  --naught-accent: #00f0ff;
  --naught-accent-rgb: 0, 240, 255;
  --naught-magenta: #5a7cff;
  --naught-bg: #02040a;
  --naught-panel: #060a12;
  --naught-border: rgba(0, 240, 255, 0.16);
  --naught-text: #e8f7ff;
  --naught-muted: rgba(180, 230, 255, 0.62);
  --skin-room: url("../assets/bg/listening-room-cosmo.jpg");
  --skin-veil-tint: rgba(0, 40, 55, 0.06);
  /* contain = entire room image visible (letterbox with --naught-bg) */
  --skin-room-pos: center center;
  --skin-room-size: contain;
  --font-ui: "Inter", system-ui, sans-serif;
  --font-display: "Space Grotesk", "Inter", sans-serif;
  --rack-max: 1120px;
  --glow-tube: 0.2;
  --glow-viz: 0.35;
}

html[data-skin="cosmo"],
body[data-skin="cosmo"] {
  --naught-lime: #7dffa8;
  --naught-cyan: #00f0ff;
  --naught-accent: #00f0ff;
  --naught-accent-rgb: 0, 240, 255;
  --naught-magenta: #5a7cff;
  --naught-bg: #02040a;
  --naught-panel: #060a12;
  --naught-border: rgba(0, 240, 255, 0.16);
  --naught-text: #e8f7ff;
  --naught-muted: rgba(180, 230, 255, 0.62);
  --skin-room: url("../assets/bg/listening-room-cosmo.jpg");
  --skin-veil-tint: rgba(0, 40, 55, 0.06);
  --skin-room-pos: center center;
  --skin-room-size: contain;
}

html[data-skin="luxury"],
body[data-skin="luxury"] {
  --naught-lime: #b4f000;
  --naught-cyan: #b4f000; /* primary accent = lime-gold on Luxury Warm */
  --naught-accent: #b4f000;
  --naught-accent-rgb: 180, 240, 0;
  --naught-magenta: #88cc00;
  --naught-bg: #060604;
  --naught-panel: #0a0c08;
  --naught-border: rgba(180, 240, 0, 0.18);
  --naught-text: #f2ffe8;
  --naught-muted: rgba(200, 230, 160, 0.62);
  --skin-room: url("../assets/bg/listening-room-warm.jpg");
  --skin-veil-tint: rgba(40, 50, 10, 0.06);
  --skin-room-pos: center center;
  --skin-room-size: contain;
  --skin-veil-bottom: rgba(8, 10, 4, 0.22);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-ui);
  background: var(--naught-bg);
  color: var(--naught-text);
  overflow-x: hidden;
  min-height: 100%;
}
body.is-dragging { cursor: copy; }

.font-display { font-family: var(--font-display); letter-spacing: -0.03em; }

/* Fixed full-viewport room photo — behind .site (z-index 0 vs 2).
   contain = entire image visible (no crop). Letterbox bars use --naught-bg.
   No scroll transform. Skin via data-skin. */
.room-photo,
#room-photo {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background-color: var(--naught-bg);
  background-image: var(--skin-room);
  background-position: var(--skin-room-pos, center center);
  background-size: var(--skin-room-size, contain);
  background-repeat: no-repeat;
  transform: none !important;
}
html[data-skin="luxury"] .room-photo,
html[data-skin="luxury"] #room-photo,
body[data-skin="luxury"] .room-photo,
body[data-skin="luxury"] #room-photo {
  background-image: url("../assets/bg/listening-room-warm.jpg");
  background-position: center center;
  background-size: contain;
}
html[data-skin="cosmo"] .room-photo,
html[data-skin="cosmo"] #room-photo,
body[data-skin="cosmo"] .room-photo,
body[data-skin="cosmo"] #room-photo {
  background-image: url("../assets/bg/listening-room-cosmo.jpg");
  background-position: center center;
  background-size: contain;
}

/* WebGL dust + haze — ABOVE the room photo and page-veil so particles are visible.
   Below .site so UI stays on top. (Was z-index 0 under the veil → invisible.) */
#room-canvas {
  position: fixed;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  z-index: 2;
  pointer-events: none;
  display: block;
  background: transparent !important;
  opacity: 1;
}
body::before {
  content: none;
  display: none;
}
/* Light veil under the particle canvas */
.page-veil {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 55% at 50% 30%, var(--skin-veil-tint), transparent 62%),
    linear-gradient(
      to bottom,
      rgba(2, 6, 12, 0.01) 0%,
      transparent 40%,
      rgba(1, 4, 10, 0.08) 78%,
      var(--skin-veil-bottom, rgba(1, 2, 8, 0.16)) 100%
    );
  transition: background 0.45s ease;
}
html[data-skin="luxury"] .page-veil,
body[data-skin="luxury"] .page-veil {
  background:
    radial-gradient(ellipse 90% 55% at 50% 30%, var(--skin-veil-tint), transparent 62%),
    linear-gradient(
      to bottom,
      rgba(10, 12, 4, 0.01) 0%,
      transparent 40%,
      rgba(8, 10, 4, 0.08) 78%,
      rgba(6, 8, 3, 0.16) 100%
    );
}

/* Shared glass — translucent but readable */
.glass {
  background: rgba(8, 10, 14, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 12px 36px -18px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(11px) saturate(1.12);
  -webkit-backdrop-filter: blur(11px) saturate(1.12);
}
.crt {
  position: fixed; inset: 0; pointer-events: none; z-index: 50;
  background: linear-gradient(rgba(255,255,255,0.012) 50%, rgba(0,0,0,0.01) 50%);
  background-size: 100% 4px; opacity: 0.22;
}
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 49;
  background-image: radial-gradient(rgba(255,255,255,0.02) 0.6px, transparent 1px);
  background-size: 3px 3px; opacity: 0.14;
}

/* Content above room */
/* Above particles so glass/panels stay readable; transparent areas still show dust */
.site { position: relative; z-index: 3; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 1.5rem;
  background: rgba(1, 1, 1, 0.22);
  backdrop-filter: blur(12px) saturate(1.08);
  -webkit-backdrop-filter: blur(12px) saturate(1.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.nav-brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: inherit; }
.nav-brand img { width: 36px; height: 36px; border-radius: 8px; }
.nav-brand .name { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.04em; }
.nav-brand .tag { display: block; font-size: 0.58rem; letter-spacing: 0.22em; color: var(--naught-cyan); margin-top: -2px; }
.nav-links { display: flex; gap: 1.25rem; align-items: center; font-size: 0.82rem; }
.nav-links a { color: var(--naught-muted); text-decoration: none; transition: color 0.15s; }
.nav-links a:hover { color: #fff; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  border: none; cursor: pointer; font-family: inherit; font-weight: 600;
  border-radius: 999px; padding: 0.7rem 1.25rem; font-size: 0.9rem;
  transition: transform 0.15s, background 0.15s, border-color 0.15s, opacity 0.15s;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: linear-gradient(135deg, #e8ffff 0%, var(--naught-cyan) 100%);
  color: #021018;
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.25);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #fff 0%, var(--naught-lime) 100%);
  box-shadow: 0 0 28px rgba(125, 255, 168, 0.3);
}
.btn-ghost {
  background: rgba(0, 20, 30, 0.25); color: #e8f7ff;
  border: 1px solid rgba(0, 240, 255, 0.35);
}
.btn-ghost:hover { border-color: var(--naught-cyan); color: var(--naught-cyan); background: rgba(0, 240, 255, 0.08); }
.btn-download[disabled], .btn-download.is-soon {
  opacity: 0.7; cursor: not-allowed;
}

/* Chapters */
.chapter {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem;
  position: relative;
}
.chapter-kicker {
  font-size: 0.7rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--naught-cyan); margin-bottom: 0.75rem;
}
.chapter-kicker.magenta { color: var(--naught-magenta); }
.chapter h1, .chapter h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.035em;
  margin: 0 0 1rem;
  line-height: 1.1;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.75), 0 0 32px rgba(0, 0, 0, 0.45);
}
.chapter h1 { font-size: clamp(2.6rem, 7vw, 4.4rem); }
.chapter h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.chapter p.lead {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 38rem;
  line-height: 1.55;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.5);
}
.chapter-glass {
  padding: 1.35rem 1.5rem 1.5rem;
  border-radius: 18px;
  background: rgba(8, 10, 14, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 12px 32px -20px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(11px) saturate(1.12);
  -webkit-backdrop-filter: blur(11px) saturate(1.12);
  margin-bottom: 1.25rem;
  max-width: 42rem;
}

/* Hero */
.hero {
  min-height: 92dvh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 5.5rem 1.5rem 4rem;
  max-width: 1200px; margin: 0 auto;
  position: relative;
}
.hero-panel {
  max-width: 44rem;
  padding: 2rem 2.1rem 2.15rem;
  border-radius: 22px;
  background: rgba(8, 10, 14, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 16px 48px -20px rgba(0, 0, 0, 0.35),
    0 0 32px rgba(180, 240, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px) saturate(1.15);
  -webkit-backdrop-filter: blur(12px) saturate(1.15);
}
.hero-panel .chapter-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 240, 255, 0.28);
  background: rgba(0, 240, 255, 0.06);
  margin-bottom: 1.1rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.98;
  margin: 0 0 1.1rem;
  font-size: clamp(2.8rem, 8vw, 4.6rem);
}
.hero h1 .line-soft {
  display: block;
  background: linear-gradient(100deg, #ffffff 0%, #b8fff0 35%, var(--naught-cyan) 75%, var(--naught-lime) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 18px rgba(0, 40, 50, 0.55));
}
.hero h1 .line-accent {
  display: block;
  margin-top: 0.12em;
  font-size: 0.42em;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--naught-cyan);
  font-weight: 500;
  text-shadow: 0 0 24px rgba(0, 240, 255, 0.35);
}
.hero .lead {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 34rem;
  line-height: 1.6;
  margin: 0;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.75), 0 0 28px rgba(0, 0, 0, 0.4);
}
.hero .lead strong {
  color: #fff;
  font-weight: 500;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.65rem; }
.hero-meta {
  margin-top: 1.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
}
.hero-chip {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero-chip.lime { color: var(--naught-lime); border-color: rgba(var(--naught-accent-rgb), 0.3); }
.hero-chip.cyan { color: var(--naught-cyan); border-color: rgba(var(--naught-accent-rgb), 0.28); }

/* Skin-specific copy (story headline, etc.) */
.skin-line { display: none; }
html[data-skin="cosmo"] .skin-line-cosmo,
body[data-skin="cosmo"] .skin-line-cosmo,
html[data-skin="luxury"] .skin-line-luxury,
body[data-skin="luxury"] .skin-line-luxury { display: inline; }
/* Fallback before data-skin is set */
html:not([data-skin]) .skin-line-cosmo,
body:not([data-skin]) .skin-line-cosmo { display: inline; }

/* —— Hero skin toggle (Luxury Warm / CosmoNaught Cyan) —— */
.skin-toggle {
  margin-top: 1.35rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}
.skin-toggle-label {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--naught-muted);
  font-weight: 600;
}
.skin-toggle-track {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.28rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--naught-accent-rgb), 0.28);
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.skin-opt {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--naught-muted);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: background 0.18s, color 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.skin-opt:hover {
  color: var(--naught-text);
  border-color: rgba(var(--naught-accent-rgb), 0.25);
}
.skin-opt.is-active {
  color: #0a0a0a;
  background: linear-gradient(135deg, #fff 0%, var(--naught-accent) 100%);
  border-color: rgba(var(--naught-accent-rgb), 0.55);
  box-shadow: 0 0 18px rgba(var(--naught-accent-rgb), 0.35);
}
.skin-opt.is-active .skin-dot {
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
}
.skin-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  flex-shrink: 0;
}
.skin-dot.warm {
  background: radial-gradient(circle at 35% 30%, #e8ff8a, #b4f000 55%, #7a9e00);
}
.skin-dot.cyan {
  background: radial-gradient(circle at 35% 30%, #b8ffff, #00f0ff 55%, #0099a8);
}
.skin-toggle-hint {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--naught-muted);
  opacity: 0.85;
}
@media (max-width: 520px) {
  .skin-toggle-track { width: 100%; }
  .skin-opt { flex: 1 1 auto; justify-content: center; font-size: 0.72rem; padding: 0.5rem 0.55rem; }
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.feature-card {
  background: rgba(8, 10, 14, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 1.15rem 1.2rem;
  box-shadow:
    0 10px 28px -18px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(11px) saturate(1.12);
  -webkit-backdrop-filter: blur(11px) saturate(1.12);
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
  color: var(--naught-cyan);
  text-shadow: 0 0 18px rgba(0, 240, 255, 0.25), 0 1px 12px rgba(0, 0, 0, 0.45);
}
.feature-card p { margin: 0; font-size: 0.88rem; color: rgba(255, 255, 255, 0.72); line-height: 1.45; }

/* Drop zone */
.drop-zone {
  margin-top: 1.5rem;
  border: 1.5px dashed rgba(180, 240, 0, 0.45);
  border-radius: 20px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  background: rgba(12, 18, 10, 0.16);
  backdrop-filter: blur(11px) saturate(1.12);
  -webkit-backdrop-filter: blur(11px) saturate(1.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.drop-zone.is-hover {
  border-color: var(--naught-lime);
  background: rgba(180, 240, 0, 0.12);
  box-shadow: 0 0 40px rgba(180, 240, 0, 0.12);
}
.drop-zone h3 { font-family: var(--font-display); margin: 0 0 0.5rem; font-size: 1.4rem; }
.drop-zone p { margin: 0 0 1rem; color: var(--naught-muted); font-size: 0.95rem; }
.drop-zone input { display: none; }
.drop-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }

/* Reliquary player shell */
.reliquary {
  max-width: var(--rack-max);
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}
.player-shell {
  background: rgba(6, 8, 12, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  box-shadow:
    0 20px 60px -24px rgba(0, 0, 0, 0.4),
    0 0 calc(40px + var(--glow-viz) * 80px) rgba(180, 240, 0, calc(var(--glow-viz) * 0.12)),
    0 0 calc(70px + var(--glow-viz) * 100px) rgba(0, 240, 255, calc(var(--glow-viz) * 0.06)),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  padding: 1.25rem 1.35rem 1.75rem;
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
}

.player-header {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
  gap: 1rem; margin-bottom: 1rem;
}
.billboard {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: #fff;
  min-height: 1.4em;
}
.billboard .sub { display: block; font-size: 0.72rem; color: var(--naught-muted); margin-top: 0.2rem; font-family: var(--font-ui); letter-spacing: 0.04em; }

/* Lattice viz */
.lattice-scope {
  position: relative;
  width: 100%;
  height: 400px;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(0, 40, 50, 0.85) 0%, #000 70%);
  border: 1px solid rgba(var(--naught-accent-rgb), 0.28);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow:
    0 0 calc(20px + var(--glow-viz) * 50px) rgba(var(--naught-accent-rgb), calc(var(--glow-viz) * 0.28)),
    0 0 calc(36px + var(--glow-viz) * 80px) rgba(var(--naught-accent-rgb), calc(var(--glow-viz) * 0.1)),
    inset 0 0 60px rgba(0, 0, 0, 0.5);
}
#lattice-canvas { width: 100%; height: 100%; display: block; }
.lattice-label {
  position: absolute; top: 10px; left: 12px; z-index: 2;
  font-size: 0.62rem; letter-spacing: 0.22em; color: var(--naught-cyan);
  pointer-events: none;
}
.lattice-mode {
  position: absolute; top: 10px; right: 12px; z-index: 2;
  font-size: 0.62rem; letter-spacing: 0.14em; color: var(--naught-muted);
  pointer-events: none;
}
.lattice-mode.live { color: var(--naught-lime); }

/* Transport */
.transport {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem 1rem;
  align-items: center;
  margin-bottom: 1.25rem;
  padding: 0.75rem 0.85rem;
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}
.transport-btns { display: flex; gap: 0.4rem; }
.t-btn {
  width: 42px; height: 42px; border-radius: 10px; border: none; cursor: pointer;
  background: #fff; color: #000; font-weight: 700; font-size: 0.95rem;
}
.t-btn.ghost { background: #1a1a1e; color: #fff; border: 1px solid #333; }
.t-btn:hover { background: var(--naught-lime); color: #000; }
.seek-wrap { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.seek {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px;
  border-radius: 99px; background: #1a1a1e; outline: none;
}
.seek::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%;
  background: var(--naught-lime); cursor: pointer;
}
.times { display: flex; justify-content: space-between; font-size: 0.7rem; color: var(--naught-muted); font-variant-numeric: tabular-nums; }
.master-wrap { display: flex; align-items: center; gap: 0.4rem; font-size: 0.7rem; color: var(--naught-muted); }
.master-wrap input { width: 90px; }

/* IR load row + readable status (same both skins) */
.ir-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.btn-ir {
  font-size: 0.72rem !important;
  padding: 0.35rem 0.7rem !important;
  letter-spacing: 0.06em;
}
/* IR label — text only (no badge/box; long filenames looked wrong in a chip) */
.ir-status {
  margin-top: 0.55rem;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  max-width: 100%;
}
.ir-status-kicker {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--naught-accent);
  margin-bottom: 0.2rem;
}
.ir-name {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  color: #ffffff;
  letter-spacing: 0.01em;
  word-break: break-word;
  overflow-wrap: anywhere;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
}
.ir-status.is-custom {
  border: none;
  background: transparent;
}
.ir-status.is-custom .ir-status-kicker {
  color: #fff;
  text-shadow: 0 0 10px rgba(var(--naught-accent-rgb), 0.55);
}
#ir-input { display: none; }

/* —— Playlist (identical structure for Cosmo + Luxury; accents via CSS vars) —— */
.playlist-panel {
  margin: 0 0 1.25rem;
  border-radius: 12px;
  border: 1px solid rgba(var(--naught-accent-rgb), 0.28);
  background: rgba(0, 0, 0, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}
.playlist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid rgba(var(--naught-accent-rgb), 0.18);
  background: rgba(var(--naught-accent-rgb), 0.06);
}
.playlist-title {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  font-weight: 700;
  color: var(--naught-accent);
}
.playlist-meta {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--naught-muted);
  font-variant-numeric: tabular-nums;
}
.playlist-list {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0;
  max-height: 220px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--naught-accent-rgb), 0.45) transparent;
}
.playlist-list::-webkit-scrollbar { width: 8px; }
.playlist-list::-webkit-scrollbar-thumb {
  background: rgba(var(--naught-accent-rgb), 0.35);
  border-radius: 99px;
}
.playlist-empty {
  padding: 1rem 1rem 1.1rem;
  color: var(--naught-muted);
  font-size: 0.85rem;
  text-align: center;
}
.playlist-item {
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
  border: none;
  width: 100%;
  background: transparent;
  color: var(--naught-text);
  font: inherit;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}
.playlist-item:hover {
  background: rgba(var(--naught-accent-rgb), 0.08);
}
.playlist-item.is-active {
  background: rgba(var(--naught-accent-rgb), 0.14);
  color: #fff;
  box-shadow: inset 3px 0 0 var(--naught-accent);
}
.playlist-item.is-active .playlist-idx {
  color: var(--naught-accent);
}
.playlist-idx {
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  color: var(--naught-muted);
  letter-spacing: 0.04em;
}
.playlist-name {
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.playlist-badge {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--naught-accent);
  opacity: 0;
  font-weight: 700;
}
.playlist-item.is-active .playlist-badge { opacity: 1; }

@media (max-width: 640px) {
  .transport { grid-template-columns: 1fr; }
  .playlist-list { max-height: 180px; }
}

/* Unit racks */
.unit {
  position: relative;
  margin: 1.35rem 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #26262b;
  min-height: 280px;
  background: #0c0c0e center/cover no-repeat;
  box-shadow: 0 20px 50px -18px rgba(0,0,0,0.9);
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}
.unit.is-focused {
  border-color: rgba(180, 240, 0, 0.45);
  box-shadow:
    0 24px 60px -12px rgba(0,0,0,0.95),
    0 0 40px rgba(180, 240, 0, 0.12),
    0 0 60px rgba(0, 240, 255, 0.08);
  transform: translateY(-2px);
}
.unit-veil {
  position: absolute; inset: 0;
  /* Light vignette only — no frosted bars over the photo */
  background: linear-gradient(to bottom, rgba(0,0,0,0.12) 0%, transparent 35%, transparent 55%, rgba(0,0,0,0.28) 100%);
  pointer-events: none;
}
.unit-hud {
  position: relative; z-index: 2;
  padding: 1rem 1.1rem 1.15rem;
  display: flex; flex-direction: column; gap: 0.85rem;
  min-height: 260px; justify-content: space-between;
}
.unit-top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.65rem;
  padding: 0;
  background: none;
  border: none;
  backdrop-filter: none;
}
.unit-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 1),
    0 2px 16px rgba(0, 0, 0, 0.95),
    0 0 24px rgba(0, 0, 0, 0.7);
  font-weight: 600;
}
.unit-title span { color: var(--naught-lime); }
.toggle {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  user-select: none;
  padding: 0;
  border-radius: 0;
  background: none;
  border: none;
  transition: color 0.15s;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 1),
    0 2px 12px rgba(0, 0, 0, 0.9);
}
.toggle .sw {
  width: 44px; height: 24px; border-radius: 99px;
  background: rgba(20, 20, 24, 0.9); border: 1px solid rgba(255, 255, 255, 0.25);
  position: relative; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}
.toggle .sw::after {
  content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px;
  border-radius: 50%; background: #888; transition: left 0.15s, background 0.15s, box-shadow 0.15s;
}
.toggle.on .sw {
  background: rgba(40, 70, 12, 0.95);
  border-color: rgba(180, 240, 0, 0.65);
  box-shadow: 0 0 14px rgba(180, 240, 0, 0.35);
}
.toggle.on .sw::after {
  left: 22px;
  background: var(--naught-lime);
  box-shadow: 0 0 12px rgba(180, 240, 0, 0.75);
}
.toggle.on {
  color: var(--naught-lime);
}

/* Controls sit directly on photo — no glass deck */
.knob-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem 1.5rem;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
  border-radius: 0;
  background: none;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.knob-field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
  min-width: 140px;
  flex: 1 1 140px;
  max-width: 210px;
}
.knob-field label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: #fff;
  text-transform: uppercase;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 1),
    0 2px 12px rgba(0, 0, 0, 0.95),
    0 0 18px rgba(0, 0, 0, 0.7);
  text-align: left;
}
.knob {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 12px;
  border-radius: 99px;
  background: linear-gradient(90deg, #0a0a0c 0%, #1e1e24 100%);
  outline: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.65);
  cursor: pointer;
}
.knob::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(145deg, #f0f0f5, #9a9aa8);
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 2px 10px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(0, 0, 0, 0.4);
  cursor: grab;
  margin-top: -1px;
}
.knob::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(145deg, #f0f0f5, #9a9aa8);
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
  cursor: grab;
}
.knob::-moz-range-track {
  height: 12px;
  border-radius: 99px;
  background: #121216;
}

/* Accent thumbs + glowing tracks */
.knob.lime {
  background: linear-gradient(90deg, #0a1204 0%, rgba(180, 240, 0, 0.22) 100%);
  border-color: rgba(180, 240, 0, 0.35);
  box-shadow:
    inset 0 1px 4px rgba(0, 0, 0, 0.55),
    0 0 14px rgba(180, 240, 0, 0.12);
}
.knob.lime::-webkit-slider-thumb {
  background: radial-gradient(circle at 35% 30%, #e8ff8a, var(--naught-lime) 55%, #7a9e00);
  border-color: rgba(255, 255, 220, 0.55);
  box-shadow:
    0 0 14px rgba(180, 240, 0, 0.75),
    0 2px 8px rgba(0, 0, 0, 0.5);
}
.knob.lime::-moz-range-thumb {
  background: var(--naught-lime);
  border-color: rgba(255, 255, 220, 0.55);
  box-shadow: 0 0 14px rgba(180, 240, 0, 0.75);
}
.knob.cyan {
  background: linear-gradient(90deg, #041018 0%, rgba(0, 240, 255, 0.22) 100%);
  border-color: rgba(0, 240, 255, 0.35);
  box-shadow:
    inset 0 1px 4px rgba(0, 0, 0, 0.55),
    0 0 14px rgba(0, 240, 255, 0.12);
}
.knob.cyan::-webkit-slider-thumb {
  background: radial-gradient(circle at 35% 30%, #b8ffff, var(--naught-cyan) 55%, #0099a8);
  border-color: rgba(220, 255, 255, 0.55);
  box-shadow:
    0 0 14px rgba(0, 240, 255, 0.75),
    0 2px 8px rgba(0, 0, 0, 0.5);
}
.knob.cyan::-moz-range-thumb {
  background: var(--naught-cyan);
  border-color: rgba(220, 255, 255, 0.55);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.75);
}

.unit-blurb { display: none; }

/* Spec table */
.specs-glass {
  padding: 1.25rem 1.35rem 1.4rem;
  border-radius: 18px;
  background: rgba(8, 10, 14, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(11px) saturate(1.12);
  -webkit-backdrop-filter: blur(11px) saturate(1.12);
  margin-top: 1rem;
}
.spec-table {
  width: 100%; border-collapse: collapse; font-size: 0.88rem;
}
.spec-table th, .spec-table td {
  text-align: left; padding: 0.55rem 0.65rem; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.spec-table th { color: var(--naught-lime); font-weight: 500; width: 38%; }
.spec-table td { color: rgba(255, 255, 255, 0.72); }
.note {
  margin-top: 1rem; font-size: 0.8rem; color: rgba(255, 255, 255, 0.68);
  border-left: 2px solid var(--naught-cyan); padding-left: 0.75rem;
}

/* Download */
.download-panel {
  text-align: center;
  padding: 3rem 1.5rem;
  background: rgba(8, 10, 14, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  box-shadow:
    0 12px 36px -20px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(11px) saturate(1.12);
  -webkit-backdrop-filter: blur(11px) saturate(1.12);
}
.download-panel p { color: rgba(255, 255, 255, 0.72); max-width: 28rem; margin: 0.75rem auto 1.5rem; }

/* Commercial email — larger, high-contrast, easy to read/tap */
a[data-commercial],
.commercial-email {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.45;
  color: #ffffff;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
  word-break: break-all;
}
a[data-commercial]:hover,
.commercial-email:hover {
  color: var(--naught-accent);
  text-shadow: 0 0 12px rgba(var(--naught-accent-rgb), 0.45);
}
.download-panel .commercial-line {
  margin-top: 1.35rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}
.download-panel .commercial-line a[data-commercial] {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 1.15rem;
}
.spec-table a[data-commercial] {
  font-size: 1rem;
  color: #fff;
}

/* Footer */
.footer {
  padding: 2.5rem 1.5rem 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.35), transparent);
}
.footer a { color: var(--naught-cyan); text-decoration: none; }

@media (max-width: 720px) {
  .nav-links .hide-sm { display: none; }
  .lattice-scope { height: 260px; }
  .transport { grid-template-columns: 1fr; }
  .unit { min-height: 260px; }
  .knob-field { min-width: 120px; max-width: none; }
  .knob-row { gap: 0.85rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .unit.is-focused { transform: none; }
}
