/* =====================================================================
   AURA ACOUSTIC & VISUAL LABORATORY
   Anthropic-Inspired Warm Editorial Design System
   ===================================================================== */

:root {
  /* Warm Earth & Paper Palette */
  --bg-stone: #FAF9F5;
  --bg-stone-subtle: #F3F1E8;
  --bg-stone-card: #FFFFFF;
  --bg-stone-muted: #EBE8DD;
  --bg-dark-slate: #191817;
  --bg-dark-card: #222120;
  
  /* Ink & Text */
  --ink: #191817;
  --ink-secondary: #4A4843;
  --ink-muted: #7A7871;
  --ink-faint: #A8A59C;

  /* Accent Colors */
  --terracotta: #D97757;
  --terracotta-hover: #C56545;
  --terracotta-soft: rgba(217, 119, 87, 0.12);
  --terracotta-border: rgba(217, 119, 87, 0.35);

  --moss: #788C5D;
  --moss-hover: #677A4D;
  --moss-soft: rgba(120, 140, 93, 0.12);

  --slate-blue: #6A9BCC;
  --slate-soft: rgba(106, 155, 204, 0.12);

  --border: #E5E3D8;
  --border-strong: #D6D3C5;
  --border-dark: rgba(255, 255, 255, 0.12);

  /* Typography */
  --font-serif: 'Newsreader', Georgia, Cambria, 'Times New Roman', serif;
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Consolas, monospace;

  /* Elevation */
  --shadow-subtle: 0 1px 3px rgba(25, 24, 23, 0.04), 0 4px 12px rgba(25, 24, 23, 0.03);
  --shadow-hover: 0 4px 16px rgba(25, 24, 23, 0.08);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

/* Links & Buttons Reset */
a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Containers */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =====================================================================
   TOP ANNOUNCEMENT BAR / TELEMETRY
   ===================================================================== */
.top-bar {
  background: var(--bg-stone-subtle);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-secondary);
  padding: 7px 0;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0 24px;
  max-width: 1240px;
  margin: 0 auto;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--moss);
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(120, 140, 93, 0.25);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.top-bar-label {
  font-weight: 600;
  color: var(--ink);
}

.top-bar-val {
  color: var(--ink-secondary);
}

.metric-separator {
  color: var(--border-strong);
}

/* =====================================================================
   HEADER & NAVIGATION
   ===================================================================== */
.site-header {
  background: rgba(250, 249, 245, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1240px;
  margin: 0 auto;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.brand-subtitle {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-item {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-secondary);
  transition: color 0.15s ease;
  position: relative;
  padding: 4px 0;
}

.nav-item:hover {
  color: var(--terracotta);
}

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

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  transition: all 0.15s ease;
  font-weight: 500;
}

.pill-btn-ghost {
  border: 1px solid var(--border-strong);
  color: var(--ink-secondary);
}

.pill-btn-ghost:hover {
  background: var(--bg-stone-subtle);
  color: var(--ink);
  border-color: var(--ink-secondary);
}

.pill-btn-primary {
  background: var(--terracotta);
  color: #FFFFFF;
}

.pill-btn-primary:hover {
  background: var(--terracotta-hover);
}

/* =====================================================================
   HERO SECTION
   ===================================================================== */
.hero-section {
  position: relative;
  padding: 64px 0 80px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero-bg-contours {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-bg-contours svg {
  width: 100%;
  height: 100%;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.field-meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--moss);
  background: var(--moss-soft);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 18px;
}

.tag-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--moss);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 2.85rem;
  line-height: 1.12;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 18px;
}

.hero-lead {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink-secondary);
  margin-bottom: 28px;
  max-width: 580px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}

.stat-card {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--terracotta);
  line-height: 1.1;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ink-muted);
  margin-top: 4px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  transition: all 0.15s ease;
}

.btn-terracotta {
  background: var(--terracotta);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(217, 119, 87, 0.25);
}

.btn-terracotta:hover {
  background: var(--terracotta-hover);
  transform: translateY(-1px);
}

.btn-outline {
  border: 1px solid var(--border-strong);
  color: var(--ink);
  background: var(--bg-stone-card);
}

.btn-outline:hover {
  background: var(--bg-stone-subtle);
  border-color: var(--ink-secondary);
}

/* Hero Canvas Card */
.hero-visual-card {
  background: var(--bg-stone-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-subtle);
  overflow: hidden;
}

.card-caption-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: var(--bg-stone-subtle);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.caption-id {
  font-weight: 600;
  color: var(--ink);
}

.caption-meta {
  color: var(--moss);
  font-weight: 600;
}

.canvas-wrapper {
  position: relative;
  background: #111110;
  width: 100%;
  aspect-ratio: 16 / 10;
}

.canvas-wrapper canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.canvas-overlay-data {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(17, 17, 16, 0.82);
  backdrop-filter: blur(4px);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.overlay-row .dim {
  color: #888680;
  margin-right: 6px;
}

.overlay-row .highlight {
  color: var(--terracotta);
  font-weight: 600;
}

.card-footnote {
  padding: 12px 16px;
  font-size: 0.78rem;
  color: var(--ink-muted);
  border-top: 1px solid var(--border);
  background: var(--bg-stone-card);
}

/* =====================================================================
   SECTIONS GENERAL
   ===================================================================== */
.section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}

.section-sand {
  background: var(--bg-stone-subtle);
}

.section-header {
  margin-bottom: 40px;
  max-width: 720px;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--terracotta);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.15rem;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 12px;
}

.section-desc {
  font-size: 0.98rem;
  color: var(--ink-secondary);
  line-height: 1.6;
}

/* =====================================================================
   LABORATORY A: AUDIO OBSERVATORY (PLAYER & CATALOG)
   ===================================================================== */
.player-deck {
  background: var(--bg-stone-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-subtle);
  padding: 28px;
  margin-bottom: 40px;
}

.deck-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
}

.track-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--moss);
  background: var(--moss-soft);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
}

.track-title-large {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
}

.track-meta-line {
  font-size: 0.88rem;
  color: var(--ink-muted);
  margin-top: 4px;
}

.meta-dot {
  margin: 0 6px;
}

.deck-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ctrl-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--bg-stone-subtle);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.ctrl-btn svg {
  width: 18px;
  height: 18px;
}

.ctrl-btn:hover {
  background: var(--bg-stone-card);
  border-color: var(--ink);
}

.ctrl-btn.ctrl-play {
  width: 54px;
  height: 54px;
  background: var(--terracotta);
  color: #FFFFFF;
  border: none;
  box-shadow: 0 2px 10px rgba(217, 119, 87, 0.3);
}

.ctrl-btn.ctrl-play svg {
  width: 22px;
  height: 22px;
}

.ctrl-btn.ctrl-play:hover {
  background: var(--terracotta-hover);
  transform: scale(1.04);
}

/* FFT Visualizer Screen */
.visualizer-screen {
  background: #141413;
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
}

.visualizer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #8E8B82;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.screen-label {
  color: var(--moss);
  font-weight: 600;
}

.screen-metrics strong {
  color: #E5E3D8;
}

.screen-metrics .divider {
  margin: 0 4px;
  color: #55544E;
}

#spectrumCanvas {
  width: 100%;
  height: 140px;
  display: block;
}

/* Scrub Bar Deck */
.scrub-deck {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.time-readout {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-secondary);
  min-width: 42px;
}

.progress-bar-wrap {
  flex: 1;
  min-width: 180px;
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  position: relative;
  cursor: pointer;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--terracotta);
  border-radius: 4px;
  transition: width 0.08s linear;
}

.progress-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid var(--terracotta);
  transform: translate(-50%, -50%);
  pointer-events: none;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.volume-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.volume-icon {
  font-size: 0.9rem;
  cursor: pointer;
}

.volume-slider {
  width: 80px;
  accent-color: var(--terracotta);
  cursor: pointer;
}

.stem-downloads {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.stem-btn {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-stone-subtle);
  border: 1px solid var(--border-strong);
  color: var(--ink-secondary);
  transition: all 0.15s ease;
}

.stem-btn:hover {
  background: var(--bg-stone-card);
  color: var(--ink);
  border-color: var(--ink);
}

.stem-btn-wav {
  background: var(--terracotta-soft);
  border-color: var(--terracotta-border);
  color: var(--terracotta);
  font-weight: 600;
}

.stem-btn-wav:hover {
  background: var(--terracotta);
  color: #FFFFFF;
}

.track-annotation {
  background: var(--bg-stone-subtle);
  border-left: 3px solid var(--moss);
  padding: 12px 16px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 0.85rem;
  line-height: 1.55;
}

.ann-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--moss);
  display: block;
  margin-bottom: 4px;
}

.ann-body {
  color: var(--ink-secondary);
}

/* Track Catalog Cards */
.catalog-tray {
  margin-top: 36px;
}

.tray-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-muted);
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.track-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

.track-card {
  background: var(--bg-stone-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.track-card:hover {
  border-color: var(--terracotta);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.track-card.active {
  border-color: var(--terracotta);
  background: #FFFDFB;
  box-shadow: 0 0 0 2px var(--terracotta-border);
}

.card-top-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.card-specimen-id {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--moss);
}

.card-dur {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-muted);
}

.card-track-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 4px;
}

.card-artist {
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-bottom: 10px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 12px;
}

.c-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  padding: 2px 6px;
  background: var(--bg-stone-subtle);
  border-radius: 3px;
  color: var(--ink-secondary);
}

.card-bottom-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-top: auto;
}

.card-play-hint {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--terracotta);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-stem-link {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--ink-muted);
  text-decoration: underline;
}

/* =====================================================================
   LABORATORY B: KINETIC VIDEO LAB
   ===================================================================== */
.video-lab-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 32px;
  align-items: start;
}

.video-stage-card {
  background: var(--bg-stone-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-subtle);
  overflow: hidden;
}

.stage-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-stone-subtle);
}

.stage-tag-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.live-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--terracotta);
  animation: pulse-dot 1.8s infinite;
}

.stage-title {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--ink);
}

.stage-info {
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.badge-moss {
  background: var(--moss-soft);
  color: var(--moss);
}

.badge-stone {
  background: var(--bg-stone-muted);
  color: var(--ink-secondary);
}

.video-viewport {
  position: relative;
  background: #0E0E0D;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.video-viewport video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.video-watermark {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(14, 14, 13, 0.75);
  backdrop-filter: blur(4px);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: #A09E96;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: right;
  pointer-events: none;
}

#videoStreamStatus {
  color: var(--moss);
  font-weight: 600;
}

.video-control-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg-stone-card);
}

.v-ctrl-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.v-btn {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background: var(--terracotta);
  color: #FFFFFF;
  transition: all 0.15s ease;
}

.v-btn:hover {
  background: var(--terracotta-hover);
}

.v-btn-ghost {
  background: var(--bg-stone-subtle);
  border: 1px solid var(--border-strong);
  color: var(--ink-secondary);
}

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

.v-time-display {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.v-download-link {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--terracotta);
  font-weight: 600;
  padding: 4px 8px;
}

.v-download-link:hover {
  text-decoration: underline;
}

.video-notes-bar {
  padding: 12px 20px;
  background: var(--bg-stone-subtle);
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--ink-secondary);
  line-height: 1.5;
}

.notes-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ink-muted);
  margin-right: 6px;
}

/* Video Playlist Tray */
.reel-selector-tray {
  background: var(--bg-stone-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-subtle);
  overflow: hidden;
}

.tray-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: var(--bg-stone-subtle);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.reel-items-list {
  display: flex;
  flex-direction: column;
}

.reel-card {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.reel-card:last-child {
  border-bottom: none;
}

.reel-card:hover {
  background: var(--bg-stone-subtle);
}

.reel-card.active {
  background: #FFFDFB;
  border-left: 3px solid var(--terracotta);
}

.reel-card-main {
  flex: 1;
}

.reel-card-cat {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--moss);
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}

.reel-card-title {
  font-family: var(--font-serif);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.reel-card-station {
  font-size: 0.74rem;
  color: var(--ink-muted);
  margin-top: 2px;
}

.reel-card-side {
  text-align: right;
  flex-shrink: 0;
}

.reel-card-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--ink-secondary);
  background: var(--bg-stone-subtle);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: 4px;
}

.reel-card-size {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--terracotta);
  font-weight: 600;
  display: block;
}

/* =====================================================================
   LABORATORY C: ACOUSTIC SYNTHESIZER
   ===================================================================== */
.synth-workbench {
  background: var(--bg-stone-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-subtle);
  padding: 28px;
}

.synth-top-row {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 28px;
  margin-bottom: 28px;
}

.scope-display-panel {
  background: #141413;
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #8E8B82;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 6px;
}

#synthStatusBadge {
  color: var(--terracotta);
  font-weight: 600;
}

#synthOscilloscope {
  width: 100%;
  height: 160px;
  display: block;
}

.scope-footer-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
}

.metric-block {
  display: flex;
  flex-direction: column;
}

.metric-name {
  font-size: 0.62rem;
  color: #8E8B82;
}

.metric-val {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--terracotta);
  margin-top: 2px;
}

.harmonic-tuning-panel {
  background: var(--bg-stone-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.panel-caption {
  font-size: 0.8rem;
  color: var(--ink-secondary);
  margin-bottom: 14px;
}

.tuning-keys-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.tune-btn {
  background: var(--bg-stone-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-align: left;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
}

.tune-btn:hover {
  border-color: var(--terracotta);
  background: #FFFDFB;
}

.tune-btn.active {
  background: var(--terracotta-soft);
  border-color: var(--terracotta);
}

.tune-hz {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}

.tune-label {
  font-size: 0.68rem;
  color: var(--ink-muted);
  margin-top: 2px;
}

.synth-action-row {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.synth-action-row .btn {
  justify-content: center;
  padding: 10px 14px;
  font-size: 0.85rem;
}

/* Param Controls Grid */
.synth-params-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.param-card {
  background: var(--bg-stone-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
}

.card-title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ink-secondary);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 6px;
}

.osc-type-selector {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-bottom: 16px;
}

.type-btn {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 6px 0;
  background: var(--bg-stone-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--ink-secondary);
  transition: all 0.15s ease;
}

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

.type-btn.active {
  background: var(--terracotta);
  color: #FFFFFF;
  border-color: var(--terracotta);
}

.slider-group {
  margin-bottom: 14px;
}

.slider-group:last-child {
  margin-bottom: 0;
}

.slider-label-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ink-secondary);
  margin-bottom: 6px;
}

.tactile-slider {
  width: 100%;
  accent-color: var(--terracotta);
  cursor: pointer;
}

/* =====================================================================
   LABORATORY D: PROCEDURAL SHADER & CREATIVE CODING SANDBOX
   ===================================================================== */
.sandbox-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: start;
}

.editor-deck {
  background: #141413;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
}

.editor-header {
  background: #1C1B1A;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.preset-pill-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.preset-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: #8E8B82;
  margin-right: 4px;
}

.preset-btn {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #C0BEB5;
  transition: all 0.15s ease;
}

.preset-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

.preset-btn.active {
  background: var(--terracotta);
  color: #FFFFFF;
  border-color: var(--terracotta);
}

.editor-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.editor-run-btn {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  background: var(--moss);
  color: #FFFFFF;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.editor-run-btn:hover {
  background: var(--moss-hover);
}

.editor-reset-btn {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  background: rgba(255, 255, 255, 0.08);
  color: #C0BEB5;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
}

.editor-reset-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
}

.code-editor-wrapper {
  display: flex;
  min-height: 380px;
  background: #141413;
  position: relative;
}

.line-numbers {
  width: 44px;
  padding: 14px 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.5;
  color: #55534D;
  text-align: right;
  user-select: none;
  background: #181716;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

#sandboxCodeEditor {
  flex: 1;
  padding: 14px 16px;
  background: transparent;
  color: #E2DFD2;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  line-height: 1.5;
  border: none;
  resize: none;
  outline: none;
  white-space: pre;
  overflow-x: auto;
}

.editor-status-bar {
  padding: 8px 16px;
  background: #1C1B1A;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: #8E8B82;
  display: flex;
  justify-content: space-between;
}

#editorStatusText {
  color: var(--moss);
}

/* Sandbox Preview Deck */
.sandbox-preview-deck {
  background: var(--bg-stone-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
}

.preview-header {
  padding: 10px 16px;
  background: var(--bg-stone-subtle);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ink-secondary);
  display: flex;
  justify-content: space-between;
}

#previewFps {
  color: var(--moss);
}

.preview-canvas-container {
  background: #111110;
  width: 100%;
  aspect-ratio: 4 / 3;
}

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

.preview-controls-row {
  padding: 14px 18px;
  background: var(--bg-stone-card);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.preview-param {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-secondary);
}

.mini-slider {
  width: 140px;
  accent-color: var(--terracotta);
  cursor: pointer;
}

/* =====================================================================
   LABORATORY E: GLOBAL TELEMETRY SENSOR ARRAY
   ===================================================================== */
.telemetry-dashboard {
  background: var(--bg-stone-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-subtle);
  overflow: hidden;
}

.station-tabs-bar {
  display: flex;
  background: var(--bg-stone-subtle);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}

.station-tab {
  padding: 14px 22px;
  border-right: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.station-tab:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.4);
}

.station-tab.active {
  background: var(--bg-stone-card);
  color: var(--terracotta);
  font-weight: 600;
  border-bottom: 2px solid var(--terracotta);
}

.station-tab-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--moss);
}

.station-details-card {
  padding: 28px;
}

.station-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.station-title-large {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--ink);
}

.station-geo-line {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin-top: 4px;
}

.station-sync-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 5px 12px;
  background: var(--moss-soft);
  color: var(--moss);
  border-radius: var(--radius-full);
}

.pulse-green {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--moss);
  animation: pulse-dot 1.5s infinite;
}

.telemetry-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.t-metric-card {
  background: var(--bg-stone-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.t-metric-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.t-metric-value {
  font-family: var(--font-serif);
  font-size: 1.95rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  margin: 6px 0 2px;
}

.t-metric-value small {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--terracotta);
  font-weight: normal;
}

.t-metric-sub {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ink-secondary);
}

.telemetry-strip-wrap {
  background: #141413;
  border-radius: var(--radius-md);
  padding: 16px;
}

.strip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: #8E8B82;
  margin-bottom: 10px;
}

#telemetryHistoryCanvas {
  width: 100%;
  height: 70px;
  display: block;
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer {
  background: var(--bg-dark-slate);
  color: #E2DFD2;
  padding: 64px 0 40px;
  font-size: 0.85rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: 40px;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.footer-summary {
  color: #9E9C93;
  line-height: 1.6;
  margin-bottom: 18px;
  max-width: 380px;
}

.footer-node-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--moss);
}

.footer-node-badge code {
  color: var(--terracotta);
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: #9E9C93;
  transition: color 0.15s ease;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.footer-links a:hover {
  color: var(--terracotta);
}

.footer-text {
  color: #9E9C93;
  line-height: 1.6;
  font-size: 0.8rem;
  margin-bottom: 16px;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #6E6D66;
}

/* =====================================================================
   RESPONSIVE DESIGN
   ===================================================================== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .video-lab-grid { grid-template-columns: 1fr; }
  .synth-top-row { grid-template-columns: 1fr; }
  .synth-params-grid { grid-template-columns: repeat(2, 1fr); }
  .sandbox-layout { grid-template-columns: 1fr; }
  .telemetry-metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .site-nav { display: none; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: 2.2rem; }
  .synth-params-grid { grid-template-columns: 1fr; }
  .telemetry-metrics-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
