:root {
  --bg-deep: #0b0d11;
  --bg-panel: #13171f;
  --bg-card: #1a202c;
  --bg-parchment: #f3ead3;
  --ink-dark: #1f170f;
  --gold-primary: #d4af37;
  --gold-bright: #f2cf66;
  --gold-muted: #9a7b2c;
  --brass-border: rgba(212, 175, 55, 0.34);
  --cyan-blueprint: #154c79;
  --crimson-alert: #d93829;
  --ochre-selknam: #d97736;
  --text-main: #ede6d6;
  --text-muted: #a9b2c3;
  --font-display: 'Cinzel', Georgia, serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
}

body {
  background: radial-gradient(circle at 50% 0%, #1a2232 0%, #0b0d11 70%);
  min-height: 100vh;
  overflow-x: hidden;
}

/* =========================================================================
   STICKY HEADER & NAVIGATION
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.75rem;
  background: rgba(11, 13, 17, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--brass-border);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.65);
}

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

.brand-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  color: var(--gold-primary);
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.06em;
}

.brand-years {
  font-size: 0.85rem;
  color: var(--gold-bright);
  font-weight: 500;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.nav-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.22);
  color: var(--text-main);
  padding: 0.48rem 0.85rem;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-btn:hover,
.nav-btn.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.24), rgba(154, 123, 44, 0.35));
  border-color: var(--gold-primary);
  color: var(--gold-bright);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.audio-pill-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(20, 26, 36, 0.9);
  border: 1px solid var(--brass-border);
  color: var(--text-main);
  padding: 0.48rem 0.9rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.audio-pill-btn.playing {
  border-color: #38b000;
  background: rgba(56, 176, 0, 0.14);
}

.audio-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #888;
}

.audio-pill-btn.playing .audio-dot {
  background: #4cc9f0;
  box-shadow: 0 0 10px #4cc9f0;
  animation: pulseDot 1.4s infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.65; }
}

.mixer-btn {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--brass-border);
  color: var(--gold-bright);
  padding: 0.45rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

/* =========================================================================
   AUDIO DRAWER (MODULE 6)
   ========================================================================= */
.audio-drawer {
  position: fixed;
  top: 66px;
  right: 24px;
  width: min(680px, 94vw);
  z-index: 950;
  background: rgba(17, 22, 31, 0.98);
  border: 1px solid var(--gold-primary);
  border-radius: 12px;
  padding: 1.35rem 1.5rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
}

.hidden {
  display: none !important;
}

.audio-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.6rem;
}

.audio-drawer-header h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #fff;
}

.close-icon-btn {
  background: transparent;
  border: 1px solid var(--brass-border);
  color: var(--text-main);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
}

.audio-drawer-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.audio-channels-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.audio-channel-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
}

.ch-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  margin-bottom: 0.4rem;
}

.audio-channel-card input[type="range"] {
  width: 100%;
  accent-color: var(--gold-primary);
  margin-bottom: 0.3rem;
}

.audio-channel-card small {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.audio-presets-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--gold-bright);
}

.preset-btn {
  background: rgba(212, 175, 55, 0.14);
  border: 1px solid var(--brass-border);
  color: var(--text-main);
  padding: 0.35rem 0.7rem;
  border-radius: 5px;
  font-size: 0.76rem;
  cursor: pointer;
}

.preset-btn:hover {
  background: var(--gold-primary);
  color: #000;
}

/* =========================================================================
   HERO SECTION
   ========================================================================= */
.hero-section {
  position: relative;
  padding: 3rem 2.2rem 2.5rem;
  border-bottom: 1px solid var(--brass-border);
  background: linear-gradient(180deg, rgba(20, 26, 38, 0.85) 0%, rgba(11, 13, 17, 0.98) 100%);
}

.hero-content {
  max-width: 1480px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.pill-gold {
  background: linear-gradient(135deg, #d4af37, #a37e1b);
  color: #0b0d11;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.28rem 0.7rem;
  border-radius: 4px;
  letter-spacing: 0.06em;
}

.pill-outline {
  border: 1px solid var(--brass-border);
  color: var(--gold-bright);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.28rem 0.7rem;
  border-radius: 4px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.3vw, 3.1rem);
  line-height: 1.15;
  color: #fff;
  margin-bottom: 1rem;
}

.hero-sub {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.35rem, 2.1vw, 1.95rem);
  color: var(--gold-bright);
  margin-top: 0.3rem;
}

.hero-lead {
  font-size: 1.04rem;
  color: #d6d0c4;
  margin-bottom: 1.5rem;
  max-width: 76ch;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.8rem;
}

.btn-primary-gold {
  background: linear-gradient(135deg, #e0bd48, #b58d24);
  color: #0b0d11;
  border: none;
  padding: 0.72rem 1.25rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.32);
  transition: transform 0.15s ease;
}

.btn-primary-gold:hover {
  transform: translateY(-2px);
}

.btn-secondary-brass {
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--gold-primary);
  color: var(--gold-bright);
  padding: 0.7rem 1.15rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary-brass:hover {
  background: rgba(212, 175, 55, 0.26);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  border-top: 1px solid rgba(212, 175, 55, 0.25);
  padding-top: 1.2rem;
}

.metric-item {
  background: rgba(255, 255, 255, 0.025);
  border-left: 3px solid var(--gold-primary);
  padding: 0.55rem 0.75rem;
  border-radius: 0 6px 6px 0;
}

.metric-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.18rem;
  color: var(--gold-bright);
}

.metric-item span {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.hero-portrait-frame {
  background: #141923;
  border: 2px solid var(--gold-primary);
  border-radius: 10px;
  padding: 0.85rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.75);
}

.hero-portrait-img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 6px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  cursor: zoom-in;
}

.portrait-caption {
  margin-top: 0.6rem;
  display: flex;
  flex-direction: column;
}

.portrait-caption strong {
  font-family: var(--font-display);
  font-size: 0.92rem;
  color: var(--gold-bright);
}

.portrait-caption span {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.hero-mini-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.mini-thumb {
  width: 100%;
  height: 58px;
  object-fit: cover;
  border-radius: 4px;
  border: 2px solid transparent;
  opacity: 0.65;
  cursor: pointer;
  transition: all 0.2s;
}

.mini-thumb.active,
.mini-thumb:hover {
  border-color: var(--gold-primary);
  opacity: 1;
}

/* =========================================================================
   GENERIC SECTION LAYOUT
   ========================================================================= */
.atlas-section {
  max-width: 1480px;
  margin: 0 auto;
  padding: 3rem 2rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.22);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 1.6rem;
  flex-wrap: wrap;
}

.kicker-gold {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--gold-primary);
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.kicker-ochre {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: #f4a261;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.3vw, 2.15rem);
  color: #fff;
  margin-bottom: 0.45rem;
}

.section-subtitle {
  max-width: 88ch;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.segmented-control {
  display: inline-flex;
  background: #0d1016;
  border: 1px solid var(--brass-border);
  border-radius: 8px;
  padding: 0.22rem;
  gap: 0.25rem;
}

.seg-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.55rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.84rem;
  cursor: pointer;
  transition: all 0.2s;
}

.seg-btn.active {
  background: linear-gradient(135deg, #d4af37, #9e7a1e);
  color: #0b0d11;
}

/* =========================================================================
   MODULE 1: EXPEDITIONARY MAP WORKSPACE
   ========================================================================= */
.map-controls-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.selknam-toggle-btn {
  background: rgba(217, 119, 54, 0.14);
  border: 1px solid #d97736;
  color: #f4a261;
  padding: 0.58rem 1rem;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.selknam-toggle-btn.active {
  background: #d97736;
  color: #0b0d11;
  box-shadow: 0 0 18px rgba(217, 119, 54, 0.5);
}

.map-workspace {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.map-stage-wrapper {
  background: #131822;
  border: 2px solid var(--brass-border);
  border-radius: 12px;
  padding: 0.85rem;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.65);
}

.map-canvas-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1200 / 620;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.4);
  background: #e9dec4;
}

.map-bg-image {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
}

.map-interactive-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.map-pin-group {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.map-pin-group:hover circle.pin-outer {
  r: 20px;
}

.pin-pulse {
  fill: rgba(217, 56, 41, 0.28);
  animation: svgPulse 1.8s infinite ease-in-out;
}

@keyframes svgPulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 0.25; }
}

.map-stepper-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.stepper-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.26);
  color: var(--text-main);
  padding: 0.4rem 0.72rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
}

.stepper-chip:hover,
.stepper-chip.active {
  background: var(--gold-primary);
  color: #0b0d11;
  border-color: var(--gold-bright);
}

/* Dossier Panel */
.dossier-panel {
  background: var(--bg-panel);
  border: 1px solid var(--gold-primary);
  border-radius: 12px;
  padding: 1.35rem;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.65);
}

.dossier-kicker-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.dossier-year-badge {
  background: rgba(212, 175, 55, 0.18);
  border: 1px solid var(--gold-primary);
  color: var(--gold-bright);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}

.dossier-coords {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
}

.dossier-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 0.15rem;
}

.dossier-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--gold-bright);
  margin-bottom: 0.9rem;
}

.dossier-photo-box {
  background: #0b0d11;
  border: 1px solid rgba(212, 175, 55, 0.32);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 0.95rem;
}

.dossier-main-img {
  width: 100%;
  height: 235px;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}

.dossier-photo-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0.75rem;
  background: rgba(20, 26, 36, 0.95);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.mini-action-btn {
  background: rgba(212, 175, 55, 0.2);
  border: 1px solid var(--gold-primary);
  color: var(--gold-bright);
  padding: 0.28rem 0.65rem;
  border-radius: 4px;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
}

.dossier-quote {
  background: rgba(212, 175, 55, 0.08);
  border-left: 3px solid var(--gold-primary);
  padding: 0.65rem 0.85rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.02rem;
  color: #f3ead3;
  margin-bottom: 0.95rem;
  border-radius: 0 6px 6px 0;
}

.dossier-body {
  font-size: 0.88rem;
  color: #d8d2c5;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 0.35rem;
}

.dossier-footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(212, 175, 55, 0.22);
}

.step-nav-btn,
.step-audio-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--brass-border);
  color: var(--text-main);
  padding: 0.42rem 0.7rem;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
}

.step-audio-btn {
  border-color: var(--gold-primary);
  color: var(--gold-bright);
}

/* Selk'nam Drawer */
.selknam-drawer {
  margin-top: 1.5rem;
  background: linear-gradient(135deg, #241712 0%, #161110 100%);
  border: 2px solid var(--ochre-selknam);
  border-radius: 12px;
  padding: 1.4rem;
}

.selknam-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.1rem;
}

.selknam-drawer-header h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: #fff;
}

.selknam-header-thumb {
  width: 140px;
  height: 86px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--ochre-selknam);
}

.selknam-zones-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.selknam-zone-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(217, 119, 54, 0.45);
  border-radius: 8px;
  padding: 0.95rem;
}

.selknam-zone-card h4 {
  font-family: var(--font-display);
  color: #f4a261;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.selknam-zone-card .clan-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: #e9c46a;
  margin-bottom: 0.5rem;
}

.selknam-zone-card p {
  font-size: 0.84rem;
  color: #dfd7c8;
}

/* =========================================================================
   MODULE 2: FORENSIC PHOTO INSPECTOR (ERROL MORRIS LOUPE)
   ========================================================================= */
.forensic-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.loupe-switch {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--brass-border);
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}

.verso-flip-btn {
  background: linear-gradient(135deg, #8b261d, #591610);
  border: 1px solid #e63946;
  color: #fff;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}

.forensic-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.35rem;
}

.forensic-thumb-btn {
  background: var(--bg-panel);
  border: 2px solid rgba(212, 175, 55, 0.22);
  border-radius: 8px;
  padding: 0.45rem;
  text-align: left;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s;
}

.forensic-thumb-btn.active,
.forensic-thumb-btn:hover {
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.15);
}

.forensic-thumb-btn img {
  width: 100%;
  height: 78px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 0.35rem;
}

.forensic-thumb-btn span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--gold-bright);
}

.forensic-thumb-btn strong {
  display: block;
  font-size: 0.76rem;
  line-height: 1.25;
}

.forensic-workspace {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.forensic-stage-card {
  background: var(--bg-panel);
  border: 2px solid var(--brass-border);
  border-radius: 12px;
  padding: 1rem;
}

.forensic-img-container {
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #08090c;
  border: 1px solid rgba(212, 175, 55, 0.35);
  cursor: crosshair;
}

.forensic-img-container img {
  width: 100%;
  max-height: 540px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.forensic-hotspots-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.forensic-hotspot-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(217, 56, 41, 0.9);
  border: 2px solid #fff;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 0 16px rgba(217, 56, 41, 0.95);
  transition: transform 0.18s ease;
}

.forensic-hotspot-pin:hover,
.forensic-hotspot-pin.active {
  transform: translate(-50%, -50%) scale(1.25);
  background: var(--gold-primary);
  color: #000;
}

.forensic-loupe {
  position: absolute;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  border: 3px solid var(--gold-primary);
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.85), inset 0 0 18px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  background-repeat: no-repeat;
  z-index: 30;
}

.forensic-plate-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.8rem;
  flex-wrap: wrap;
}

.plate-badge {
  background: rgba(212, 175, 55, 0.18);
  border: 1px solid var(--gold-primary);
  color: var(--gold-bright);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 0.22rem 0.6rem;
  border-radius: 4px;
}

/* Verso Panel */
.verso-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 1.25rem;
  align-items: start;
}

.verso-image-col img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--gold-primary);
}

.verso-stamp {
  display: block;
  margin-top: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gold-bright);
  text-align: center;
}

.verso-text-col h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.verso-highlight-box {
  background: rgba(212, 175, 55, 0.1);
  border-left: 3px solid var(--gold-primary);
  padding: 0.65rem 0.85rem;
  font-size: 0.86rem;
  margin-bottom: 0.9rem;
}

.albums-comparison-cards {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.album-comp-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 6px;
  padding: 0.65rem 0.8rem;
}

.album-comp-card strong {
  display: block;
  color: var(--gold-bright);
  font-size: 0.84rem;
  margin-bottom: 0.2rem;
}

.album-comp-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Forensic Sidebar */
.forensic-sidebar {
  background: var(--bg-panel);
  border: 1px solid var(--gold-primary);
  border-radius: 12px;
  padding: 1.3rem;
}

.forensic-verdict-box h3 {
  font-family: var(--font-display);
  font-size: 1.22rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.forensic-verdict-box p {
  font-size: 0.88rem;
  color: #ddd5c7;
  margin-bottom: 1rem;
}

.hotspot-detail-card {
  background: rgba(217, 56, 41, 0.1);
  border: 1px solid rgba(217, 56, 41, 0.55);
  border-radius: 8px;
  padding: 0.9rem;
  margin-bottom: 1rem;
}

.hotspot-detail-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  color: #ffb703;
}

.hotspot-pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e63946;
}

.hotspot-detail-card p {
  font-size: 0.86rem;
  color: #f1ece1;
}

.hotspot-list-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hs-list-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: var(--text-main);
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  text-align: left;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.hs-list-btn.active,
.hs-list-btn:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--gold-primary);
  color: var(--gold-bright);
}

/* =========================================================================
   MODULE 3: ADAM CURTIS HYPER-CONNECTION GRAPH
   ========================================================================= */
.curtis-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.curtis-filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--brass-border);
  color: var(--text-main);
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.curtis-filter-btn.active,
.curtis-filter-btn:hover {
  background: var(--gold-primary);
  color: #0b0d11;
}

.curtis-workspace {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.curtis-graph-box {
  background: radial-gradient(circle at 50% 48%, #1a2333 0%, #0d1118 100%);
  border: 2px solid var(--brass-border);
  border-radius: 12px;
  padding: 0.85rem;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.7);
}

.curtis-svg {
  width: 100%;
  aspect-ratio: 1000 / 620;
  display: block;
}

.curtis-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.55rem 0.5rem 0.1rem;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.dot-legend {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 0.35rem;
}

.curtis-inspector {
  background: var(--bg-panel);
  border: 1px solid var(--gold-primary);
  border-radius: 12px;
  padding: 1.3rem;
}

.curtis-node-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.curtis-node-avatar {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-primary);
}

.curtis-node-header h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #fff;
}

.curtis-node-years {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.curtis-node-proof {
  background: rgba(212, 175, 55, 0.08);
  border-left: 3px solid var(--gold-primary);
  padding: 0.75rem 0.9rem;
  font-size: 0.86rem;
  color: #e9e2d4;
  margin-bottom: 1rem;
  border-radius: 0 6px 6px 0;
}

.curtis-edges-heading {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--gold-bright);
  margin-bottom: 0.6rem;
  letter-spacing: 0.08em;
}

.curtis-edges-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: 330px;
  overflow-y: auto;
  padding-right: 0.3rem;
}

.curtis-edge-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
  cursor: pointer;
  transition: border-color 0.2s;
}

.curtis-edge-card:hover {
  border-color: var(--gold-primary);
}

.curtis-edge-card strong {
  display: block;
  font-size: 0.84rem;
  color: var(--gold-bright);
  margin-bottom: 0.25rem;
}

.curtis-edge-card p {
  font-size: 0.8rem;
  color: #d6cfc2;
}

/* =========================================================================
   MODULE 4: ATLANTA RECONSTRUCTOR & TUGBOAT CALCULATOR
   ========================================================================= */
.atlanta-workspace {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.blueprint-frame {
  position: relative;
  border: 2px solid #4cc9f0;
  border-radius: 12px;
  overflow: hidden;
  background: #0a2239;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.7);
  margin-bottom: 1.25rem;
}

.blueprint-svg-img {
  width: 100%;
  display: block;
}

.atlanta-overlay-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.tugboat-calculator-card {
  background: linear-gradient(135deg, #10253e 0%, #0d1826 100%);
  border: 1px solid #4cc9f0;
  border-radius: 12px;
  padding: 1.25rem;
}

.calc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.calc-header h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #fff;
}

.calc-badge {
  background: rgba(76, 201, 240, 0.16);
  border: 1px solid #4cc9f0;
  color: #90e0ef;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

.calc-controls-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.calc-slider-group {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(76, 201, 240, 0.28);
  border-radius: 8px;
  padding: 0.75rem;
}

.calc-slider-group label {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 0.45rem;
}

.calc-slider-group input[type="range"] {
  width: 100%;
  accent-color: var(--gold-primary);
  margin-bottom: 0.3rem;
}

.calc-slider-group small {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.calc-results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.calc-stat-box {
  background: rgba(255, 255, 255, 0.04);
  border-top: 3px solid var(--gold-primary);
  border-radius: 6px;
  padding: 0.75rem;
}

.stat-label {
  display: block;
  font-size: 0.73rem;
  color: var(--text-muted);
}

.stat-val {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #fff;
  margin: 0.2rem 0;
}

.gold-text {
  color: var(--gold-bright) !important;
}

.calc-stat-box small {
  font-size: 0.72rem;
  color: #90e0ef;
}

/* Atlanta Sidebar */
.atlanta-zones-sidebar {
  background: var(--bg-panel);
  border: 1px solid var(--gold-primary);
  border-radius: 12px;
  padding: 1.25rem;
}

.atlanta-cover-preview {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  padding-bottom: 0.95rem;
  margin-bottom: 0.95rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

.atlanta-cover-thumb {
  width: 78px;
  height: 108px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--gold-primary);
  cursor: zoom-in;
}

.atlanta-cover-preview h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.25rem;
}

.atlanta-cover-preview p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.atlanta-zone-detail {
  background: rgba(21, 76, 121, 0.24);
  border: 1px solid #4cc9f0;
  border-radius: 8px;
  padding: 0.95rem;
  margin-bottom: 0.95rem;
}

.atlanta-zone-detail h4 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--gold-bright);
  margin-bottom: 0.35rem;
}

.atlanta-zone-detail p {
  font-size: 0.85rem;
  color: #e4ded0;
  margin-bottom: 0.55rem;
}

.atlanta-zone-detail blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: #90e0ef;
  border-left: 2px solid var(--gold-primary);
  padding-left: 0.65rem;
}

.atlanta-zones-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.zone-select-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 175, 55, 0.24);
  color: var(--text-main);
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  text-align: left;
  font-size: 0.82rem;
  cursor: pointer;
}

.zone-select-btn.active,
.zone-select-btn:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--gold-primary);
  color: var(--gold-bright);
}

/* Cosechadora Tab */
.cosechadora-workspace {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.cosechadora-svg {
  width: 100%;
  border-radius: 12px;
  border: 2px solid var(--gold-primary);
}

.cosechadora-info-col {
  background: var(--bg-panel);
  border: 1px solid var(--gold-primary);
  border-radius: 12px;
  padding: 1.35rem;
}

.cosechadora-info-col h3 {
  font-family: var(--font-display);
  font-size: 1.28rem;
  margin-bottom: 0.65rem;
}

.cosechadora-info-col > p {
  font-size: 0.88rem;
  color: #dcd5c7;
  margin-bottom: 1rem;
}

.cosechadora-steps {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.cos-step {
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--gold-primary);
  padding: 0.65rem 0.85rem;
}

.cos-step strong {
  display: block;
  color: var(--gold-bright);
  font-size: 0.86rem;
  margin-bottom: 0.2rem;
}

.cos-step p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.cosechadora-photo-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.cos-thumb {
  width: 100%;
  height: 125px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--gold-primary);
  cursor: zoom-in;
}

/* =========================================================================
   MODULE 5: NUMISMATICS, CHAPTER READER & 148 ARCHIVE CATALOG
   ========================================================================= */
.coins-selector-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
}

.coin-tab-btn {
  background: var(--bg-panel);
  border: 1px solid var(--brass-border);
  color: var(--text-main);
  padding: 0.58rem 0.95rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.coin-tab-btn.active,
.coin-tab-btn:hover {
  background: var(--gold-primary);
  color: #0b0d11;
}

.coins-showcase {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.coin-image-stage {
  background: #0d1017;
  border: 2px solid var(--gold-primary);
  border-radius: 12px;
  padding: 1.1rem;
  text-align: center;
}

.coin-image-stage img {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  border-radius: 6px;
  cursor: zoom-in;
}

.coin-motto-banner {
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-size: 0.92rem;
  color: var(--gold-bright);
  letter-spacing: 0.1em;
}

.coin-details-box {
  background: var(--bg-panel);
  border: 1px solid var(--brass-border);
  border-radius: 12px;
  padding: 1.4rem;
}

.coin-details-box h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 0.3rem;
}

.coin-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--gold-bright);
  margin-bottom: 0.85rem;
}

.coin-specs-pill {
  background: rgba(212, 175, 55, 0.14);
  border: 1px solid var(--gold-primary);
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #fff;
  margin-bottom: 1rem;
}

.coin-body-text {
  font-size: 0.9rem;
  color: #dfd8ca;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.2rem;
}

.coin-body-text ul {
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

/* Integrated Book Reader */
.reader-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.reader-toc {
  background: var(--bg-panel);
  border: 1px solid var(--brass-border);
  border-radius: 12px;
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.toc-item-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  color: var(--text-main);
  padding: 0.65rem 0.8rem;
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
}

.toc-item-btn span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--gold-primary);
}

.toc-item-btn strong {
  font-size: 0.84rem;
}

.toc-item-btn.active,
.toc-item-btn:hover {
  background: rgba(212, 175, 55, 0.18);
  border-color: var(--gold-primary);
}

.reader-article {
  background: var(--bg-parchment);
  color: var(--ink-dark);
  border: 3px solid var(--gold-primary);
  border-radius: 12px;
  padding: 2.2rem 2.6rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.75);
}

.reader-article-header h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: #1a120b;
  margin-bottom: 0.65rem;
}

.reader-epigraph {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: #4a3520;
  border-left: 3px solid #8b261d;
  padding-left: 0.9rem;
  margin-bottom: 1.4rem;
}

.reader-figures-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.reader-fig img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid #5c4328;
  cursor: zoom-in;
}

.reader-content-body {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.72;
  color: #1f170f;
}

.reader-content-body h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #7c1d15;
  margin: 1.2rem 0 0.45rem;
}

.reader-content-body p {
  margin-bottom: 0.95rem;
}

/* Searchable 148 Archive Catalog */
.archive-filter-bar {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

#archive-search-input {
  flex: 1;
  min-width: 280px;
  background: var(--bg-panel);
  border: 1px solid var(--gold-primary);
  color: #fff;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
}

#archive-grade-filter {
  background: var(--bg-panel);
  border: 1px solid var(--brass-border);
  color: #fff;
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
  font-size: 0.86rem;
}

.archive-count-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--gold-bright);
}

.archive-table-wrapper {
  max-height: 540px;
  overflow-y: auto;
  border: 1px solid var(--brass-border);
  border-radius: 10px;
  background: var(--bg-panel);
}

.archive-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.archive-table th {
  position: sticky;
  top: 0;
  background: #1b2230;
  color: var(--gold-bright);
  text-align: left;
  padding: 0.75rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  border-bottom: 1px solid var(--gold-primary);
}

.archive-table td {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: top;
}

.archive-table tr:hover {
  background: rgba(212, 175, 55, 0.08);
}

.grade-pill {
  display: inline-block;
  padding: 0.15rem 0.48rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.72rem;
}

.grade-S { background: #d4af37; color: #000; }
.grade-A { background: #2a9d8f; color: #fff; }
.grade-B { background: #457b9d; color: #fff; }

/* =========================================================================
   LIGHTBOX MODAL & FOOTER
   ========================================================================= */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(5, 7, 10, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox-inner {
  max-width: 92vw;
  max-height: 90vh;
  text-align: center;
  position: relative;
}

.lightbox-close {
  position: absolute;
  top: -42px;
  right: 0;
  background: var(--gold-primary);
  color: #000;
  border: none;
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
}

#lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border: 2px solid var(--gold-primary);
  border-radius: 8px;
}

#lightbox-caption {
  margin-top: 0.65rem;
  color: var(--gold-bright);
  font-size: 0.92rem;
}

.site-footer {
  padding: 2rem;
  background: #07090c;
  border-top: 1px solid var(--brass-border);
}

.footer-inner {
  max-width: 1480px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.footer-motto span {
  display: block;
  font-family: var(--font-display);
  color: var(--gold-bright);
  font-weight: 700;
}

@media (max-width: 1100px) {
  .hero-content,
  .map-workspace,
  .forensic-workspace,
  .curtis-workspace,
  .atlanta-workspace,
  .cosechadora-workspace,
  .coins-showcase,
  .reader-layout {
    grid-template-columns: 1fr;
  }
  .forensic-strip {
    grid-template-columns: repeat(3, 1fr);
  }
  .calc-controls-grid,
  .calc-results-grid,
  .selknam-zones-grid {
    grid-template-columns: 1fr 1fr;
  }
}
