:root {
  --bg-primary: #0d0b09;
  --bg-secondary: #16120e;
  --bg-card: #1d1812;
  --bg-card-hover: #251e17;
  --bg-glass: rgba(29, 24, 18, 0.85);
  --text-primary: #f4ece1;
  --text-secondary: #cbbba6;
  --text-muted: #8f7e6a;
  --accent-gold: #d4a853;
  --accent-gold-light: #f1cf82;
  --accent-crimson: #9e2a2b;
  --accent-crimson-light: #d64545;
  --accent-emerald: #3b7a57;
  --accent-azure: #3d6b88;
  --border-gold: rgba(212, 168, 83, 0.25);
  --border-subtle: rgba(244, 236, 225, 0.09);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 30px rgba(212, 168, 83, 0.15);
  --font-display: 'Cinzel', 'Playfair Display', Georgia, serif;
  --font-serif: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

body.theme-vellum {
  --bg-primary: #f6efe2;
  --bg-secondary: #ede2ce;
  --bg-card: #fffaf0;
  --bg-card-hover: #f7eedc;
  --bg-glass: rgba(255, 250, 240, 0.9);
  --text-primary: #231b12;
  --text-secondary: #4a3c2c;
  --text-muted: #786550;
  --accent-gold: #9c6b19;
  --accent-gold-light: #b88022;
  --accent-crimson: #8b1e20;
  --accent-crimson-light: #a82426;
  --border-gold: rgba(156, 107, 25, 0.3);
  --border-subtle: rgba(35, 27, 18, 0.12);
  --shadow-lg: 0 16px 40px rgba(55, 38, 18, 0.14);
  --shadow-glow: 0 0 25px rgba(156, 107, 25, 0.12);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Scroll Progress Bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-crimson), var(--accent-gold), var(--accent-gold-light));
  width: 0%;
  z-index: 9999;
  box-shadow: 0 0 12px var(--accent-gold);
}

/* Ambient Canvas */
#ember-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

/* Sticky Navigation */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-gold);
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
}

.nav-crest {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--accent-gold-light), var(--accent-gold));
  color: #120e0a;
  font-family: var(--font-display);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 0 15px rgba(212, 168, 83, 0.4);
}

.nav-title-wrap {
  display: flex;
  flex-direction: column;
}

.nav-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-subtitle {
  font-size: 0.7rem;
  color: var(--accent-gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-gold-light);
  background: rgba(212, 168, 83, 0.12);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-icon {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  color: var(--text-primary);
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.btn-icon:hover {
  border-color: var(--accent-gold);
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

/* Layout Containers */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

section {
  padding: 5.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 3.5rem;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-gold);
  background: rgba(212, 168, 83, 0.1);
  border: 1px solid var(--border-gold);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.85rem);
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.section-desc {
  font-size: 1.08rem;
  color: var(--text-secondary);
  font-family: var(--font-serif);
  font-size: 1.25rem;
}

/* Hero Section */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 4rem 0 5rem;
  background:
    radial-gradient(circle at 80% 20%, rgba(212, 168, 83, 0.14), transparent 45%),
    radial-gradient(circle at 15% 75%, rgba(158, 42, 43, 0.16), transparent 50%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(212, 168, 83, 0.12);
  border: 1px solid var(--border-gold);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-gold-light);
  margin-bottom: 1.4rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4.3rem);
  line-height: 1.08;
  margin-bottom: 1.2rem;
  background: linear-gradient(135deg, var(--text-primary) 20%, var(--accent-gold-light) 60%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.38rem;
  color: var(--text-secondary);
  border-left: 3px solid var(--accent-gold);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
}

.hero-quote cite {
  display: block;
  font-size: 0.9rem;
  font-style: normal;
  font-family: var(--font-sans);
  color: var(--accent-gold);
  margin-top: 0.4rem;
  letter-spacing: 0.04em;
}

.hero-lead {
  color: var(--text-secondary);
  font-size: 1.02rem;
  margin-bottom: 2rem;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-gold), #b5852b);
  color: #130e08;
  font-weight: 700;
  padding: 0.85rem 1.6rem;
  border-radius: 10px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 10px 25px rgba(212, 168, 83, 0.3);
  transition: all 0.25s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(212, 168, 83, 0.45);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-gold);
  font-weight: 600;
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
}

.btn-secondary:hover {
  border-color: var(--accent-gold);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

/* Cover Showcase Card */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.book-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--border-gold);
  box-shadow: var(--shadow-lg), 0 0 60px rgba(212, 168, 83, 0.2);
  max-width: 440px;
  width: 100%;
  transform: perspective(1000px) rotateY(-6deg) rotateX(2deg);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s ease;
}

.book-frame:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02);
  box-shadow: var(--shadow-lg), 0 0 80px rgba(212, 168, 83, 0.35);
}

.book-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.book-floating-tag {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: rgba(13, 11, 9, 0.88);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-gold);
  padding: 0.85rem 1rem;
  border-radius: 12px;
  color: #f4ece1;
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Stats Ribbon */
.stats-ribbon {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 14px;
  padding: 1.35rem 1.25rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-gold);
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-gold-light);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-primary);
}

.stat-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Speaker Pillars */
.speakers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.speaker-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.speaker-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-crimson));
}

.speaker-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-gold);
}

.speaker-avatar {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(212, 168, 83, 0.15);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--accent-gold-light);
  margin-bottom: 1.1rem;
}

.speaker-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 0.3rem;
}

.speaker-role {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-gold);
  margin-bottom: 1rem;
}

.speaker-focus {
  font-size: 0.93rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.speaker-lessons-list {
  list-style: none;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.speaker-lessons-list li {
  font-size: 0.83rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  transition: background 0.2s;
}

.speaker-lessons-list li:hover {
  background: rgba(212, 168, 83, 0.12);
  color: var(--accent-gold-light);
}

/* Interactive Map & Chronology */
.chrono-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: start;
}

.map-box {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  padding: 1.5rem;
  position: sticky;
  top: 90px;
}

.map-svg-wrap {
  width: 100%;
  background: #100d0a;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  position: relative;
}

.map-node {
  cursor: pointer;
  transition: transform 0.25s ease;
}

.map-node circle {
  transition: all 0.25s ease;
}

.map-node:hover circle, .map-node.active circle {
  r: 9;
  fill: var(--accent-gold-light);
  filter: drop-shadow(0 0 10px var(--accent-gold));
}

.map-detail-card {
  margin-top: 1.15rem;
  padding: 1.15rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
}

.era-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.era-tab {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.era-tab.active, .era-tab:hover {
  background: rgba(212, 168, 83, 0.16);
  border-color: var(--accent-gold);
  color: var(--accent-gold-light);
}

.timeline-list {
  position: relative;
  padding-left: 1.75rem;
  border-left: 2px solid var(--border-gold);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  max-height: 680px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.timeline-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  position: relative;
  cursor: pointer;
  transition: all 0.25s ease;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.2rem;
  top: 1.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-gold);
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 0 2px var(--accent-gold);
}

.timeline-item:hover, .timeline-item.active {
  border-color: var(--accent-gold);
  transform: translateX(4px);
  box-shadow: var(--shadow-glow);
}

.timeline-year {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.timeline-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0.2rem 0 0.4rem;
}

.timeline-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* 10 Lessons + 4 Appendices Curriculum */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  background: var(--bg-card);
  padding: 1rem 1.25rem;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-pill {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-pill.active, .filter-pill:hover {
  background: var(--accent-gold);
  color: #140f0a;
  border-color: var(--accent-gold);
}

.search-input-wrap {
  position: relative;
  min-width: 260px;
}

.search-input {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-gold);
  color: var(--text-primary);
  padding: 0.55rem 1rem;
  border-radius: 8px;
  font-size: 0.88rem;
  outline: none;
}

.search-input:focus {
  box-shadow: 0 0 0 2px rgba(212, 168, 83, 0.3);
}

.lessons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 1.5rem;
}

.lesson-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.lesson-card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.lesson-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
  gap: 0.5rem;
}

.lesson-badge {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  background: rgba(212, 168, 83, 0.15);
  color: var(--accent-gold-light);
  border: 1px solid var(--border-gold);
}

.lesson-badge.appendix {
  background: rgba(158, 42, 43, 0.2);
  color: #f08080;
  border-color: rgba(158, 42, 43, 0.45);
}

.lesson-pages {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.lesson-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.lesson-author {
  font-size: 0.82rem;
  color: var(--accent-gold);
  font-weight: 600;
  margin-bottom: 0.9rem;
}

.lesson-summary {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.15rem;
}

.lesson-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}

.tag {
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.lesson-footer {
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-gold-light);
}

/* Conference recordings */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.25rem;
}

.video-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
}

.video-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.4;
  flex: 1;
}

.video-link, .video-playlist a {
  color: var(--accent-gold-light);
  font-weight: 600;
  text-underline-offset: 0.2em;
}

.video-link:hover, .video-playlist a:hover {
  color: var(--text-primary);
}

.video-playlist {
  text-align: center;
  margin-top: 2rem;
}

.lesson-video-link {
  display: inline-block;
  margin-bottom: 1.25rem;
}

.video-dialog {
  position: fixed;
  width: min(920px, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  margin: auto;
  padding: clamp(1.25rem, 4vw, 2.25rem);
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--accent-gold);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
}

.video-dialog::backdrop {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
}

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

.video-dialog-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  line-height: 1.3;
}

.video-dialog .modal-close {
  position: static;
  flex: none;
}

#video-disclosure {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.video-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.video-dialog [hidden] {
  display: none;
}

.video-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 1.25rem;
  background: #000;
}

.video-player iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Modal for Deep-Dive Lesson View */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  z-index: 5000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-backdrop.open {
  display: flex;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--accent-gold);
  border-radius: 18px;
  max-width: 900px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 2.25rem;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-gold);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
}

/* Translator's Laboratory (Tabs) */
.lab-tabs {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2.25rem;
}

.lab-tab {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  color: var(--text-secondary);
  padding: 0.75rem 1.35rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lab-tab.active, .lab-tab:hover {
  background: linear-gradient(135deg, var(--accent-gold), #b5852b);
  color: #140f0a;
  border-color: var(--accent-gold-light);
}

.lab-panel {
  display: none;
}

.lab-panel.active {
  display: block;
  animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Word Battles Grid */
.word-battles-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1.75rem;
}

.word-selector-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.word-select-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  text-align: left;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.word-select-btn:hover, .word-select-btn.active {
  border-color: var(--accent-gold);
  background: rgba(212, 168, 83, 0.12);
}

.word-greek {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--accent-gold);
  font-size: 0.95rem;
}

.word-showcase {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  padding: 2rem;
}

.duel-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.duel-box {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid var(--border-subtle);
}

.duel-box.tyndale-side {
  border-left: 4px solid var(--accent-gold);
}

.duel-box.opponent-side {
  border-left: 4px solid var(--accent-crimson);
}

/* Parallel Evolution Columns */
.parallel-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.parallel-col {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 1.25rem;
}

.parallel-era {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-gold);
  font-weight: 700;
}

.parallel-version {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0.25rem 0 0.75rem;
}

.parallel-text {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--text-primary);
}

/* Comparison Table */
.comparison-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border-gold);
  margin-top: 1.25rem;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  font-size: 0.9rem;
}

.comparison-table th, .comparison-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
  vertical-align: top;
}

.comparison-table th {
  background: var(--bg-secondary);
  color: var(--accent-gold-light);
  font-family: var(--font-display);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Coined Phrases Flip Grid */
.phrases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.1rem;
}

.phrase-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 14px;
  padding: 1.35rem;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.phrase-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-glow);
}

.phrase-word {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--accent-gold-light);
  margin-bottom: 0.35rem;
}

.phrase-ref {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-gold);
  margin-bottom: 0.55rem;
}

.phrase-meaning {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* KJB Impact Bars */
.impact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.meter-group {
  margin-bottom: 1.4rem;
}

.meter-header {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.45rem;
}

.meter-track {
  height: 14px;
  background: var(--bg-secondary);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.meter-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-crimson), var(--accent-gold), var(--accent-gold-light));
  border-radius: 999px;
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.finding-video-cues {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  margin-top: 0.75rem;
  font-size: 0.85rem;
}

/* Footer */
footer {
  padding: 4rem 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-gold);
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid, .chrono-layout, .word-battles-grid, .impact-grid, .speakers-grid, .duel-columns {
    grid-template-columns: 1fr;
  }
  .map-box {
    position: static;
  }
  .top-nav {
    padding: 0.75rem 1rem;
  }
  .nav-links {
    display: none;
  }
}
