/* ============================================================
   GLOBOSCOPIO — TEXTILE PALETTE v3
   Deep Navy/Indigo base · Terracotta · Gold · Sky Blue
   Derived from handwoven sock reference
   ============================================================ */

/* === DARK MODE (Lab) === */
:root, [data-theme="dark"] {
  --bg: #12141d;
  --bg-raised: #1b1e2e;
  --bg-hover: #242838;
  --text: #f9f7f2;
  --text-secondary: #d5d0c5;
  --text-dim: #8a8d9b;
  --text-muted: #5a5e6e;
  --terracotta: #C24F2B;
  --terracotta-bright: #e06540;
  --gold: #D49B35;
  --gold-bright: #e8b04a;
  --sky: #78A3AD;
  --sky-bright: #92bcc6;
  --indigo: #4a5580;
  --brown: #8b5e3c;
  --cream: #f9f7f2;
  --border: #2a2d3e;
  --border-light: #383c50;
  --header-bg: rgba(18, 20, 29, 0.92);
  --tracklist-bg: #1b1e2e;
  --tile-bg: #1b1e2e;
  --tile-wash: grayscale(100%) sepia(30%) hue-rotate(140deg) saturate(120%);
  --block-label-bg: rgba(212, 155, 53, 0.08);
  --glow1: rgba(194, 79, 43, 0.08);
  --glow2: rgba(74, 85, 128, 0.1);
  --ruler-shadow: rgba(194, 79, 43, 0.5);
}

/* === LIGHT MODE (Luz) === */
[data-theme="light"] {
  --bg: #f9f7f2;
  --bg-raised: #eceae3;
  --bg-hover: #e2dfd6;
  --text: #12141d;
  --text-secondary: #2e3040;
  --text-dim: #5a5e73;
  --text-muted: #8a8d9b;
  --terracotta: #A64B2A;
  --terracotta-bright: #943f20;
  --gold: #B3822B;
  --gold-bright: #9a7020;
  --sky: #4A6D63;
  --sky-bright: #3d5d54;
  --indigo: #3a4570;
  --brown: #6b4525;
  --cream: #f9f7f2;
  --border: #d1cfc8;
  --border-light: #bfbdb5;
  --header-bg: rgba(249, 247, 242, 0.95);
  --tracklist-bg: #ddd8cc;
  --tile-bg: #eceae3;
  --tile-wash: grayscale(80%) sepia(40%) saturate(50%);
  --block-label-bg: rgba(179, 130, 43, 0.1);
  --glow1: rgba(166, 75, 42, 0.04);
  --glow2: rgba(58, 69, 112, 0.04);
  --ruler-shadow: rgba(166, 75, 42, 0.35);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 18px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s ease, color 0.3s ease;
}

::selection { background: var(--terracotta); color: white; }

/* ========== READING RULER ========== */
#reading-ruler {
  position: fixed;
  left: 0; width: 100%;
  height: 1px;
  background: var(--terracotta);
  pointer-events: none;
  display: none;
  z-index: 50;
  box-shadow: 0 0 12px var(--ruler-shadow);
}

/* ========== HEADER ========== */
header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  z-index: 1000;
  transition: all 0.3s ease;
  background: transparent;
}
header.scrolled {
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  height: 62px;
}
#brand-name {
  font-family: 'Archivo', sans-serif;
  font-size: 1.8rem;
  text-transform: uppercase;
  line-height: 1;
  transition: all 0.15s;
  color: var(--text);
}
#tagline {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--terracotta);
  margin-top: 4px;
  transition: opacity 0.3s ease;
}
header.scrolled #brand-name {
  font-family: 'Space Mono', monospace;
  font-size: 1.1rem;
  color: var(--terracotta-bright);
  animation: flash 0.2s ease-out;
}
header.scrolled #tagline { opacity: 0; height: 0; margin: 0; }
@keyframes flash {
  0% { background-color: var(--terracotta); color: white; }
  100% { background-color: transparent; }
}
.controls { display: flex; align-items: center; gap: 20px; flex-shrink: 0; white-space: nowrap; }
.nav-links { display: flex; gap: 12px; align-items: center; flex-shrink: 0; }
.nav-link {
  text-decoration: none;
  color: var(--text);
  font-family: 'Space Mono', monospace;
  font-size: 0.78rem;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--gold); }
.header-controls {
  display: flex; align-items: center; gap: 10px;
}
.header-controls .lang-toggle { margin: 0; }
.theme-toggle {
  cursor: pointer;
  background: none;
  border: 1px solid var(--sky);
  color: var(--sky);
  padding: 5px 14px;
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.2s;
}
.theme-toggle:hover {
  background: var(--sky);
  color: var(--bg);
}

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 5% 60px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 25% 55%, var(--glow1) 0%, transparent 50%),
    radial-gradient(ellipse at 75% 35%, var(--glow2) 0%, transparent 50%);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.episode-meta {
  font-family: 'Space Mono', monospace;
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.episode-title {
  font-family: 'Archivo', sans-serif;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.9;
  text-transform: uppercase;
  margin-bottom: 10px;
  overflow-wrap: break-word;
  word-break: break-word;
}
.episode-title em { color: var(--terracotta); font-style: normal; }
.episode-subtitle {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--text-dim);
  margin-bottom: 30px;
}
.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}
.hero-description p {
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 1.25rem;
  max-width: 520px;
}
.hero-description p strong { color: var(--text); font-weight: 700; }
.hero-meta-line {
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.btn-lab {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  padding: 12px 22px;
  transition: all 0.3s ease;
  margin-right: 8px;
  margin-bottom: 8px;
}
.btn-lab.primary { background: var(--terracotta); border: 1px solid var(--terracotta); color: white; }
.btn-lab.primary:hover { box-shadow: 0 0 20px rgba(194, 79, 43, 0.3); filter: brightness(1.1); }
.btn-lab.outline { background: transparent; border: 1px solid var(--border-light); color: var(--text); }
.btn-lab.outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-lab.support { background: transparent; border: 1px solid var(--gold); color: var(--gold); }
.btn-lab.support:hover { background: rgba(212, 155, 53, 0.1); }
.btn-lab.contact { background: transparent; border: 1px solid var(--sky); color: var(--sky); cursor: pointer; }
.btn-lab.contact:hover { background: rgba(120, 163, 173, 0.1); }

/* ========== CONTACT MODAL ========== */
.contact-overlay {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.75); backdrop-filter: blur(6px);
  align-items: center; justify-content: center;
}
.contact-overlay.active { display: flex; }
.contact-modal {
  background: var(--bg-raised); border: 1px solid var(--border-light);
  border-radius: 6px; padding: 2rem; width: 90%; max-width: 440px;
  position: relative; box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.contact-modal h3 {
  font-family: 'Archivo Black', sans-serif; font-size: 1.1rem;
  color: var(--terracotta); margin: 0 0 0.25rem 0; letter-spacing: 0.05em;
}
.contact-modal .modal-subtitle {
  font-family: 'Space Mono', monospace; font-size: 0.72rem;
  color: var(--text-muted); margin-bottom: 1.2rem;
}
.contact-modal label {
  font-family: 'Space Mono', monospace; font-size: 0.72rem;
  color: var(--text-secondary); display: block; margin-bottom: 4px; letter-spacing: 0.04em;
}
.contact-modal input, .contact-modal select, .contact-modal textarea {
  width: 100%; box-sizing: border-box; padding: 8px 10px; margin-bottom: 0.9rem;
  background: var(--bg); border: 1px solid var(--border); border-radius: 3px;
  color: var(--text); font-family: 'Source Sans 3', sans-serif; font-size: 0.88rem;
}
.contact-modal textarea { resize: vertical; min-height: 80px; }
.contact-modal input:focus, .contact-modal select:focus, .contact-modal textarea:focus {
  outline: none; border-color: var(--terracotta);
}
.contact-modal .captcha-row {
  display: flex; align-items: center; gap: 10px; margin-bottom: 0.9rem;
}
.contact-modal .captcha-row .captcha-q {
  font-family: 'Space Mono', monospace; font-size: 0.82rem;
  color: var(--text); white-space: nowrap; min-width: fit-content;
}
.contact-modal .captcha-row input {
  width: 70px; margin-bottom: 0; text-align: center;
  font-family: 'Space Mono', monospace; font-size: 0.88rem;
}
.contact-modal .field-error {
  font-family: 'Space Mono', monospace; font-size: 0.68rem;
  color: var(--terracotta); margin-top: -0.6rem; margin-bottom: 0.7rem; display: none;
}
.contact-modal .modal-actions {
  display: flex; gap: 8px; justify-content: flex-end; margin-top: 0.5rem;
}
.contact-modal .btn-send {
  font-family: 'Space Mono', monospace; font-size: 0.78rem;
  padding: 8px 18px; border: none; border-radius: 3px; cursor: pointer;
  background: var(--terracotta); color: white; font-weight: 700; letter-spacing: 0.04em;
}
.contact-modal .btn-send:hover { filter: brightness(1.1); }
.contact-modal .btn-cancel {
  font-family: 'Space Mono', monospace; font-size: 0.78rem;
  padding: 8px 14px; border: 1px solid var(--border); border-radius: 3px;
  cursor: pointer; background: transparent; color: var(--text-muted);
}
.contact-modal .btn-cancel:hover { border-color: var(--text-secondary); color: var(--text-secondary); }
.contact-modal .close-x {
  position: absolute; top: 12px; right: 14px; background: none; border: none;
  color: var(--text-muted); font-size: 1.2rem; cursor: pointer; line-height: 1;
}
.contact-modal .close-x:hover { color: var(--text); }

/* ========== TRACKLIST ========== */
.tracklist-wrap {
  position: relative;
  background: var(--tracklist-bg);
  padding: 32px;
  border-left: 4px solid var(--terracotta);
  transition: background 0.4s ease;
}
.tracklist-header {
  font-family: 'Space Mono', monospace;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
  color: var(--terracotta);
}
.tracklist { position: relative; cursor: crosshair; }

.block-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 10px 14px;
  margin-top: 18px;
  margin-bottom: 4px;
  background: var(--block-label-bg);
  border-left: 3px solid var(--gold);
  display: flex;
  align-items: center;
  gap: 10px;
}
.block-label::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--sky);
  border-radius: 50%;
  flex-shrink: 0;
}
.block-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.track-row {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 2;
  transition: all 0.15s;
}
.track-row:hover { color: var(--terracotta); }
.track-row-art {
  width: 44px; height: 44px;
  border-radius: 3px;
  object-fit: cover;
  opacity: 0.75;
  transition: all 0.3s;
  filter: var(--tile-wash);
}
.track-row:hover .track-row-art { filter: none; opacity: 1; transform: scale(1.08); }
.track-row-artist-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}
.track-row-title {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}
.track-row:hover .track-row-title { color: var(--terracotta); }
.track-row-artist {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.01em;
}
.track-row-album {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.78rem;
  color: var(--text-dim);
  font-style: italic;
  margin-top: 1px;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.vinyl-icon {
  flex-shrink: 0;
  opacity: 0.5;
}
.track-label {
  font-style: normal;
  font-weight: 600;
  font-size: 0.72rem;
  color: var(--gold);
  background: color-mix(in srgb, var(--gold) 12%, transparent);
  padding: 1px 6px;
  border-radius: 3px;
  letter-spacing: 0.02em;
}
.track-row-bpm-key {
  display: flex; gap: 6px; justify-content: flex-end; align-items: center;
  margin-top: 2px;
}
.track-row-bpm-key .bpm {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
  background: var(--terracotta);
  color: white;
}
.track-row-bpm-key .key {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  color: var(--text-muted);
}
.track-row-time {
  font-family: 'Space Mono', monospace;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: right;
}
.track-row-links { display: flex; gap: 5px; justify-content: flex-end; align-items: center; }
.track-row-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 3px;
  transition: all 0.2s;
  width: 28px; height: 28px;
}
.track-row-links a svg { width: 14px; height: 14px; fill: currentColor; }
.track-row-links a:hover { color: var(--terracotta); border-color: var(--terracotta); }
.track-row-links a.yt:hover { color: #ff4444; border-color: #ff4444; }
.capstone-tag {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  color: var(--terracotta);
  border: 1px solid var(--terracotta);
  padding: 1px 5px;
  border-radius: 2px;
  margin-left: 6px;
  vertical-align: middle;
}

/* ========== FIELD NOTES ========== */
.field-notes { margin-top: 2rem; }
.field-notes-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1.25rem;
}
.field-notes-title {
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold);
}
.lang-toggle {
  display: flex; gap: 0;
  font-family: 'Space Mono', monospace; font-size: 0.7rem;
}
.lang-btn {
  cursor: pointer; background: none;
  border: 1px solid var(--border-light);
  color: var(--text-dim);
  padding: 4px 10px;
  transition: all 0.2s;
}
.lang-btn:first-child { border-radius: 3px 0 0 3px; }
.lang-btn:last-child { border-radius: 0 3px 3px 0; border-left: none; }
.lang-btn.active {
  background: var(--sky);
  color: var(--bg);
  border-color: var(--sky);
}
.note-card {
  border-left: 2px solid var(--border);
  padding: 12px 16px;
  margin-bottom: 14px;
  transition: all 0.25s;
  position: relative;
}
.note-card:hover { border-left-color: var(--terracotta); }
.note-card-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 4px;
}
.note-card-location {
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.note-card-stops {
  display: flex; flex-wrap: wrap; gap: 4px; align-items: center;
  margin-bottom: 8px;
}
.note-card-stops .journey-stop {
  font-size: 0.78rem;
  padding: 3px 9px;
}
.note-card-stops .journey-arrow {
  font-size: 0.72rem;
}
.note-card p {
  font-size: 0.95rem; font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.65; margin: 0;
}
.note-card p strong { color: var(--text); }
.note-lang { display: none; }
.note-lang.active { display: block; }
.meta-tag {
  font-family: 'Space Mono', monospace;
  font-size: 0.64rem;
  letter-spacing: 0.03em;
  padding: 3px 8px;
  border-radius: 2px;
  line-height: 1.4;
  white-space: nowrap;
}
.meta-tag .meta-label {
  opacity: 0.6;
  margin-right: 3px;
  text-transform: uppercase;
  font-size: 0.58rem;
  letter-spacing: 0.06em;
}
.meta-genre { color: var(--terracotta); border: 1px solid color-mix(in srgb, var(--terracotta) 35%, transparent); background: color-mix(in srgb, var(--terracotta) 6%, transparent); }
.meta-lang { color: var(--gold); border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); background: color-mix(in srgb, var(--gold) 6%, transparent); }
.meta-inst { color: var(--sky); border: 1px solid color-mix(in srgb, var(--sky) 35%, transparent); background: color-mix(in srgb, var(--sky) 6%, transparent); }
.track-meta {
  display: flex; flex-wrap: wrap; gap: 4px;
  margin-top: 5px;
}
.track-meta .meta-tag { font-size: 0.6rem; padding: 2px 6px; }
.meta-year { color: var(--text-secondary); border: 1px solid var(--border); background: color-mix(in srgb, var(--text-secondary) 6%, transparent); }

/* ========== TIDAL ========== */
.tidal-section { max-width: 560px; margin: 3rem auto; padding: 0 5%; }
.tidal-section iframe { width: 100%; border-radius: 3px; border: 1px solid var(--border); }

/* ========== JOURNEY ========== */
.journey-stop {
  font-family: 'Space Mono', monospace;
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 3px;
  transition: all 0.25s;
}
.journey-stop:hover { border-color: var(--sky); color: var(--sky-bright); background: rgba(120, 163, 173, 0.08); }
.journey-arrow { color: var(--text-muted); font-family: 'Space Mono', monospace; font-size: 0.8rem; }

/* ========== ARCHIVE ========== */
.archive-section { padding: 80px 5%; }
.year-breaker { display: flex; align-items: center; gap: 20px; margin: 50px 0 30px; }
.year-breaker h2 { font-family: 'Space Mono', monospace; font-size: 1.1rem; white-space: nowrap; color: var(--gold); }
.year-breaker .line { flex-grow: 1; height: 1px; background: var(--border); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.experiment-tile {
  position: relative; background: var(--tile-bg);
  aspect-ratio: 1; overflow: hidden;
  text-decoration: none; color: inherit; border-radius: 3px;
}
.experiment-tile img {
  width: 100%; height: 100%; object-fit: cover;
  filter: var(--tile-wash); opacity: 0.7;
  transition: all 0.5s ease;
}
.experiment-tile:hover img { filter: none; transform: scale(1.05); opacity: 1; }
.tile-overlay {
  position: absolute; bottom: 0; left: 0; width: 100%;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  opacity: 0; transition: opacity 0.3s ease;
  color: white;
}
.experiment-tile:hover .tile-overlay { opacity: 1; }
.tile-code { font-family: 'Space Mono', monospace; font-size: 0.75rem; color: var(--gold-bright); font-weight: 700; margin-bottom: 4px; }
.tile-title { font-family: 'Archivo', sans-serif; font-size: 1.1rem; }
.experiment-tile::after {
  content: ""; position: absolute; top: -100%; left: 0;
  width: 100%; height: 2px;
  background: var(--terracotta);
  box-shadow: 0 0 15px var(--ruler-shadow);
  z-index: 5; pointer-events: none;
}
.experiment-tile:hover::after { animation: tileScan 2.5s linear infinite; }
@keyframes tileScan { 0% { top: 0; } 100% { top: 100%; } }

/* ========== LISTEN ========== */
.listen-section { padding: 3rem 5%; text-align: center; }
.listen-links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 1.25rem; }

/* ========== CREDITS ========== */
.credits {
  max-width: 720px; margin: 0 auto;
  padding: 4rem 5%; border-top: 2px solid var(--border);
}
.credits-title {
  font-family: 'Space Mono', monospace; font-size: 0.85rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-muted); text-align: center; margin-bottom: 2rem;
}
.credit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; text-align: left; margin-bottom: 2rem; }
.credit-label {
  font-family: 'Space Mono', monospace; font-size: 0.72rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 0.25rem;
}
.credit-value { color: var(--text-secondary); font-size: 1rem; }
.labels-list { text-align: center; margin-top: 1.5rem; }
.labels-list .credit-value {
  font-family: 'Space Mono', monospace; font-size: 0.78rem;
  line-height: 2.2; color: var(--text-dim);
}

/* ========== FOOTER ========== */
footer {
  padding: 60px 5%; border-top: 1px solid var(--border);
  text-align: center; background: var(--tile-bg);
  transition: background 0.4s ease;
}
.footer-brand { font-family: 'Archivo', sans-serif; font-size: 1.4rem; text-transform: uppercase; margin-bottom: 4px; }
.footer-tagline {
  font-family: 'Space Mono', monospace; font-size: 0.78rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--terracotta); margin-bottom: 1.25rem;
}
.footer-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 1.25rem; }
.footer-links a {
  font-family: 'Space Mono', monospace; font-size: 0.78rem;
  color: var(--text-dim); text-decoration: none;
  padding: 4px 10px; border: 1px solid var(--border);
  border-radius: 3px; transition: all 0.2s;
}
.footer-links a:hover { color: var(--gold); border-color: var(--gold); }
.footer-copy {
  font-family: 'Space Mono', monospace; font-size: 0.7rem;
  color: var(--text-muted); letter-spacing: 0.08em; margin-top: 1rem;
}
.return-btn {
  display: inline-block; margin-top: 30px;
  font-family: 'Space Mono', monospace; font-size: 0.85rem;
  color: var(--terracotta); text-decoration: none;
  border: 1px solid var(--terracotta);
  padding: 10px 20px; font-weight: 700;
  transition: all 0.3s ease;
}
.return-btn:hover { background: var(--terracotta); color: white; box-shadow: 0 0 20px rgba(194, 79, 43, 0.25); }

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; }
  .controls { gap: 10px; }
  .nav-links { gap: 6px; }
  .nav-link { font-size: 0.7rem; }
  .theme-toggle { font-size: 0.65rem; padding: 4px 8px; }
  .credit-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  header {
    height: auto;
    min-height: 50px;
    padding: 10px 4%;
    flex-wrap: wrap;
    gap: 4px;
  }
  header.scrolled {
    height: auto;
    min-height: 46px;
  }
  #brand-name { font-size: 1rem; }
  header.scrolled #brand-name { font-size: 0.9rem; }
  #tagline { font-size: 0.6rem; letter-spacing: 1px; margin-top: 2px; }
  .controls { gap: 6px; }
  .nav-links { gap: 4px; }
  .nav-link { font-size: 0.65rem; letter-spacing: 0; }
  .header-controls { gap: 4px; }
  .lang-btn { font-size: 0.6rem; padding: 3px 5px; }
  .theme-toggle { font-size: 0.58rem; padding: 3px 6px; }
  /* Episode hero */
  .hero { padding: 90px 5% 40px; min-height: auto; }
  .episode-title { font-size: clamp(2.2rem, 10vw, 3.5rem); }
  .episode-subtitle { font-size: 1rem; }
  .episode-meta { font-size: 0.75rem; }
  .hero-description p { font-size: 1rem; }
  .hero-meta-line { font-size: 0.75rem; }
  .btn-lab { font-size: 0.75rem; padding: 10px 16px; }
  /* Tracklist: hide right column (time/bpm/links) on mobile */
  .track-row {
    grid-template-columns: 44px 1fr;
    gap: 8px;
  }
  .track-row > div:last-child { display: none; }
  .track-row-art { width: 40px; height: 40px; }
  .track-row-artist { font-size: 0.85rem; }
  .track-row-title { font-size: 0.75rem; }
  .track-row-album { font-size: 0.7rem; }
  .meta-tag { font-size: 0.55rem; }
  .tracklist-wrap { padding: 16px 12px; }
  /* Episode page field notes */
  .field-notes { padding: 20px 12px; }
  .block-content { font-size: 0.88rem; }
  /* 2020 experiments section */
  .credit-grid { gap: 1rem; }
}
@media (max-width: 380px) {
  header { padding: 8px 3%; }
  #brand-name { font-size: 0.85rem; }
  .nav-link { font-size: 0.58rem; }
  .lang-btn { font-size: 0.55rem; padding: 2px 4px; }
  .theme-toggle { font-size: 0.55rem; padding: 2px 5px; }
  footer { padding: 40px 4%; }
  .footer-links { gap: 5px; }
  .footer-links a { font-size: 0.68rem; padding: 3px 7px; }
  .footer-copy { font-size: 0.6rem; }
}

/* ========== LANDING PAGE ========== */
.landing-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 5% 60px;
  position: relative;
}
.landing-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 25% 55%, var(--glow1) 0%, transparent 50%),
    radial-gradient(ellipse at 75% 35%, var(--glow2) 0%, transparent 50%);
  pointer-events: none;
}
.landing-hero > * { position: relative; z-index: 1; }
.landing-title {
  font-family: 'Archivo', sans-serif;
  font-size: clamp(2.5rem, 8vw, 7rem);
  line-height: 0.85;
  text-transform: uppercase;
  margin-bottom: 10px;
  white-space: nowrap;
}

/* Hero two-column layout */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero-text { min-width: 0; }
.hero-covers { min-width: 0; position: relative; }

/* Album cover grid */
.album-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.2);
}
.album-cell {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  display: block;
  cursor: pointer;
}
.album-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1), filter 0.4s ease;
  /* Smooth rendering for small source images */
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.album-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.7) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.album-overlay span {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  color: white;
  text-align: center;
  padding: 3px 6px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 95%;
}
.album-cell:hover img {
  transform: scale(1.15);
  filter: saturate(1.3) brightness(1.05);
}
.album-cell:hover .album-overlay {
  opacity: 1;
}
/* Stagger entrance animation */
@keyframes coverFadeIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}
.album-cell {
  animation: coverFadeIn 0.5s ease both;
}
.album-cell:nth-child(1) { animation-delay: 0.05s; }
.album-cell:nth-child(2) { animation-delay: 0.1s; }
.album-cell:nth-child(3) { animation-delay: 0.15s; }
.album-cell:nth-child(4) { animation-delay: 0.2s; }
.album-cell:nth-child(5) { animation-delay: 0.25s; }
.album-cell:nth-child(6) { animation-delay: 0.3s; }
.album-cell:nth-child(7) { animation-delay: 0.35s; }
.album-cell:nth-child(8) { animation-delay: 0.4s; }
.album-cell:nth-child(9) { animation-delay: 0.45s; }

/* Tablet: narrower gap */
@media (max-width: 1024px) {
  .hero-grid {
    gap: 2rem;
  }
}

/* Mobile: stack hero vertically, covers on top */
@media (max-width: 768px) {
  .landing-hero {
    padding: 80px 5% 40px;
    min-height: auto;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .hero-covers {
    order: -1;
  }
  .album-grid {
    max-width: 100%;
    margin: 0;
    gap: 3px;
    border-radius: 6px;
  }
  .album-overlay {
    opacity: 1;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.6) 100%);
  }
  .album-overlay span {
    font-size: 0.5rem;
  }
  .landing-title {
    font-size: clamp(2.2rem, 11vw, 3.5rem);
    white-space: normal;
  }
  .landing-description {
    font-size: 1rem;
  }
  .latest-episode {
    padding: 1.2rem;
    margin: 1.5rem 0;
  }
  .latest-title {
    font-size: 1.2rem;
  }
}
.landing-tagline {
  font-family: 'Space Mono', monospace;
  font-size: clamp(0.7rem, 1.5vw, 0.95rem);
  color: var(--terracotta);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.landing-description {
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--text-dim);
  max-width: 620px;
  line-height: 1.8;
  margin-bottom: 2rem;
}
.latest-episode {
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 2rem;
  background: var(--bg-raised);
  max-width: 700px;
  margin: 3rem 0;
}
.latest-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}
.latest-title {
  font-family: 'Archivo', sans-serif;
  font-size: 1.6rem;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}
.latest-meta {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.latest-desc {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}
.platforms-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}
.platforms-bar a {
  font-family: 'Space Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.platforms-bar a:hover { color: var(--terracotta); }

/* ========== ARCHIVE PAGE ========== */
.archive-hero {
  padding: 120px 5% 40px;
  border-bottom: 1px solid var(--border);
}
.archive-hero h1 {
  font-family: 'Archivo', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.archive-hero .subtitle {
  font-family: 'Space Mono', monospace;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.season-tabs {
  display: flex;
  gap: 8px;
  padding: 1.5rem 5%;
  border-bottom: 1px solid var(--border);
}
.season-tab {
  font-family: 'Space Mono', monospace;
  font-size: 0.78rem;
  padding: 6px 16px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.season-tab:hover { border-color: var(--terracotta); color: var(--terracotta); }
.season-tab.active {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: white;
}
.episodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding: 2rem 5%;
}
.episode-card {
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-raised);
  transition: all 0.25s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.episode-card:hover {
  border-color: var(--terracotta);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.episode-card .card-cover {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  filter: var(--tile-wash);
  transition: filter 0.3s;
}
.episode-card:hover .card-cover { filter: none; }
.episode-card .card-body { padding: 16px; }
.episode-card .card-code {
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  color: var(--gold);
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.episode-card .card-title {
  font-family: 'Archivo', sans-serif;
  font-size: 1.05rem;
  text-transform: uppercase;
  margin-bottom: 4px;
  line-height: 1.2;
}
.episode-card .card-date {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.episode-card .card-desc {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.no-cover-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-muted);
}
