/* ==========================================================================
   GHOST WIRES · FOUNDER 3D CINEMA PORTFOLIO & BIOGRAPHY
   Blender-Grade Interactive 3D Book Selector · Dark Roots -> Bright Present
   Zero Cheesy Social Chrome · Pure Pro Vertical Reel Cadence
   ========================================================================== */

:root {
  /* Dark Era (Roots, Gladys King, Vela, Khanyisa High School) */
  --dark-void: #04060a;
  --dark-stage: #070b14;
  --dark-surface: rgba(13, 19, 33, 0.78);
  --dark-surface-solid: #0c1220;
  --dark-border: rgba(148, 163, 184, 0.14);
  --dark-border-strong: rgba(148, 163, 184, 0.26);
  --dark-ink: #f8fafc;
  --dark-muted: #94a3b8;
  --dark-subtle: #64748b;
  --accent-amber: #f59e0b;
  --accent-amber-soft: rgba(245, 158, 11, 0.16);
  --accent-cobalt-glow: #3b82f6;

  /* Bright Era (Me Now with hair · Cape Town · CPUT · Ghost Wires) */
  --sky-top: #60a5fa;
  --sky-mid: #bae6fd;
  --sky-bottom: #f8fafc;
  --bright-canvas: #f4f7fb;
  --bright-surface: #ffffff;
  --bright-ink: #0f172a;
  --bright-muted: #475569;
  --bright-subtle: #64748b;
  --bright-border: rgba(15, 23, 42, 0.08);
  --bright-border-strong: rgba(15, 23, 42, 0.14);
  --cobalt: #2563eb;
  --cobalt-deep: #1d4ed8;
  --midnight: #0b1220;
  --pink-awareness: #db2777;

  /* Typography */
  --font-display: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Geometry & Motion */
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-pill: 9999px;
  --ease-cine: cubic-bezier(0.22, 1, 0.36, 1);

  /* Live scroll morph 0 (dark) -> 1 (bright) */
  --bright-progress: 0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--dark-void);
  color: var(--dark-ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body {
  margin: 0;
  background-color: var(--dark-void);
  color: var(--dark-ink);
  line-height: 1.6;
  overflow-x: clip;
  transition: background-color 0.65s var(--ease-cine), color 0.65s var(--ease-cine);
}

body.is-bright-era {
  background-color: var(--bright-canvas);
  color: var(--bright-ink);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}

.container--wide {
  max-width: 1340px;
}

/* ==========================================================================
   FLOATING SLIM PILL NAVBAR (DYNAMICALLY MORPHS DARK -> BRIGHT)
   ========================================================================== */
.pill-nav-shell {
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  justify-content: center;
  padding: 0 20px;
  pointer-events: none;
}

.pill-nav {
  pointer-events: auto;
  width: 100%;
  max-width: 980px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 10px 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(8, 12, 22, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 20px 50px -18px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  transition: background 0.55s var(--ease-cine), border-color 0.55s var(--ease-cine), box-shadow 0.55s var(--ease-cine), color 0.55s var(--ease-cine);
}

body.is-bright-era .pill-nav {
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 46px -18px rgba(15, 23, 42, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #0b1220;
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.nav-logo-mark img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.nav-brand-label {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f8fafc;
  transition: color 0.5s ease;
}

body.is-bright-era .nav-brand-label {
  color: var(--bright-ink);
}

.nav-center-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-pill-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 500;
  color: #cbd5e1;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease;
}

.nav-pill-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-pill-link.is-active {
  color: #ffffff;
  background: rgba(59, 130, 246, 0.22);
  border: 1px solid rgba(96, 165, 250, 0.3);
  font-weight: 600;
}

body.is-bright-era .nav-pill-link {
  color: #475569;
}

body.is-bright-era .nav-pill-link:hover {
  color: var(--bright-ink);
  background: rgba(15, 23, 42, 0.05);
}

body.is-bright-era .nav-pill-link.is-active {
  color: var(--cobalt-deep);
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.2);
}

.awareness-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink-awareness);
  box-shadow: 0 0 10px rgba(219, 39, 119, 0.65);
}

.nav-pill-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  background: #f8fafc;
  color: #05070b;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.25s var(--ease-cine), background 0.35s ease, color 0.35s ease, box-shadow 0.25s ease;
}

.nav-pill-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px -10px rgba(255, 255, 255, 0.45);
}

body.is-bright-era .nav-pill-cta {
  background: var(--midnight);
  color: #ffffff;
}

body.is-bright-era .nav-pill-cta:hover {
  box-shadow: 0 12px 26px -10px rgba(15, 23, 42, 0.35);
}

.nav-menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
  cursor: pointer;
  place-items: center;
}

body.is-bright-era .nav-menu-toggle {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.04);
  color: var(--bright-ink);
}

.mobile-nav-drawer {
  position: fixed;
  top: 76px;
  left: 16px;
  right: 16px;
  z-index: 89;
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(8, 12, 22, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 28px 60px -15px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(22px);
}

body.is-bright-era .mobile-nav-drawer {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 24px 50px -15px rgba(15, 23, 42, 0.18);
}

.mobile-nav-drawer.is-open {
  display: flex;
}

/* ==========================================================================
   PRO VERTICAL REEL SCRUBBER RAIL (ZERO CHEESY SOCIAL ICONS)
   ========================================================================== */
.reel-rail {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 12px 9px;
  border-radius: var(--radius-pill);
  background: rgba(8, 12, 22, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.16);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: background 0.55s var(--ease-cine), border-color 0.55s var(--ease-cine);
}

body.is-bright-era .reel-rail {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 12px 32px -14px rgba(15, 23, 42, 0.14);
}

.reel-era-badge {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-amber);
  padding: 4px 0;
  transition: color 0.5s ease;
}

body.is-bright-era .reel-era-badge {
  color: var(--cobalt);
}

.reel-dots {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 0;
}

.reel-dot {
  position: relative;
  width: 6px;
  height: 16px;
  border-radius: 99px;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: rgba(148, 163, 184, 0.34);
  transition: height 0.35s var(--ease-cine), background 0.35s ease, box-shadow 0.35s ease;
}

.reel-dot:hover {
  background: rgba(248, 250, 252, 0.75);
}

.reel-dot.is-active {
  height: 30px;
  background: #f59e0b;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.6);
}

body.is-bright-era .reel-dot {
  background: rgba(15, 23, 42, 0.18);
}

body.is-bright-era .reel-dot.is-active {
  background: var(--cobalt);
  box-shadow: 0 0 14px rgba(37, 99, 235, 0.4);
}

.reel-dot-tip {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  background: #0b1220;
  color: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.22);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.reel-dot:hover .reel-dot-tip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.reel-step-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.reel-step-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  transform: scale(1.06);
}

body.is-bright-era .reel-step-btn {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.04);
  color: var(--bright-ink);
}

.reel-counter {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
}

/* ==========================================================================
   SHARED CHAPTER STRUCTURE & CINEMA TYPOGRAPHY
   ========================================================================== */
.cine-chapter {
  position: relative;
  padding: 108px 0 92px;
  isolation: isolate;
}

.cine-chapter--dark {
  background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.09), transparent 55%), var(--dark-void);
  color: var(--dark-ink);
}

.cine-chapter--dark-alt {
  background: radial-gradient(circle at 80% 35%, rgba(245, 158, 11, 0.08), transparent 48%), radial-gradient(circle at 18% 70%, rgba(59, 130, 246, 0.08), transparent 50%), #050810;
  color: var(--dark-ink);
}

.cine-chapter--bright {
  background: var(--bright-canvas);
  color: var(--bright-ink);
}

.cine-chapter--sky {
  background: linear-gradient(180deg, #dbeafe 0%, #eff6ff 34%, var(--bright-canvas) 100%);
  color: var(--bright-ink);
}

.chapter-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
}

.chapter-eyebrow--amber {
  border-color: rgba(245, 158, 11, 0.34);
  background: rgba(245, 158, 11, 0.1);
  color: #fbbf24;
}

.chapter-eyebrow--bright {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(37, 99, 235, 0.2);
  color: var(--cobalt-deep);
  box-shadow: 0 8px 20px -12px rgba(37, 99, 235, 0.25);
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.cine-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.4vw, 3.85rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.038em;
  margin: 18px 0 0;
}

.cine-lead {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.65;
  color: var(--dark-muted);
  max-width: 620px;
  margin: 16px 0 0;
}

.cine-chapter--bright .cine-lead,
.cine-chapter--sky .cine-lead {
  color: var(--bright-muted);
}

/* Ghosted Giant Background Watermark (Exact Apple Watch Ultra 3 DNA) */
.ghost-watermark {
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(5.5rem, 18vw, 17rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.9;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  color: transparent;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0.015) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.ghost-watermark--amber {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.2) 0%, rgba(245, 158, 11, 0.02) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.ghost-watermark--bright {
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.11) 0%, rgba(37, 99, 235, 0.01) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* Kinetic Display Stat Number (Like 49mm / 2587 / 100 in Reference Video) */
.kinetic-stat-block {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 6px 0 12px;
}

.kinetic-num {
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 7vw, 6.2rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.05em;
  background: linear-gradient(180deg, #ffffff 15%, #94a3b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}

.kinetic-num--amber {
  background: linear-gradient(180deg, #fde68a 10%, #f59e0b 95%);
  -webkit-background-clip: text;
  background-clip: text;
}

.kinetic-num--bright {
  background: linear-gradient(180deg, #0f172a 15%, #2563eb 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.kinetic-unit {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-amber);
}

/* ==========================================================================
   CHAPTER 00 — DARK CINEMA OPENING STAGE (3D INTERACTIVE MONOLITH)
   ========================================================================== */
.hero-cinema {
  position: relative;
  min-height: 100svh;
  padding: 112px 0 64px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(ellipse 68% 52% at 50% 42%, rgba(37, 99, 235, 0.16), transparent 65%),
    radial-gradient(ellipse 46% 36% at 62% 56%, rgba(245, 158, 11, 0.11), transparent 62%),
    #04060a;
  overflow: hidden;
}

.hero-cinema-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.15fr);
  gap: 36px;
  align-items: center;
}

.hero-copy-col {
  position: relative;
  z-index: 3;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.65rem, 5.2vw, 4.7rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin: 20px 0 0;
  color: #ffffff;
}

.hero-headline-muted {
  display: block;
  color: #94a3b8;
}

.hero-subcopy {
  margin: 22px 0 0;
  font-size: 16.5px;
  line-height: 1.68;
  color: #94a3b8;
  max-width: 520px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.btn-cine-primary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  background: #ffffff;
  color: #05070b;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.25s var(--ease-cine), box-shadow 0.25s ease;
}

.btn-cine-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -10px rgba(255, 255, 255, 0.45);
}

.btn-cine-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(148, 163, 184, 0.24);
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease-cine);
}

.btn-cine-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(248, 250, 252, 0.42);
  transform: translateY(-2px);
}

.btn-bright-primary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  background: var(--midnight);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.25s var(--ease-cine), box-shadow 0.25s ease;
}

.btn-bright-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -12px rgba(15, 23, 42, 0.4);
}

.btn-bright-frosted {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.85);
  color: var(--bright-ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(15, 23, 42, 0.12);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s var(--ease-cine);
}

.btn-bright-frosted:hover {
  background: #ffffff;
  transform: translateY(-2px);
}

.hero-era-map {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.era-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.16);
  color: #cbd5e1;
  transition: border-color 0.25s ease, transform 0.25s ease, color 0.25s ease;
}

.era-chip:hover {
  border-color: rgba(245, 158, 11, 0.5);
  color: #ffffff;
  transform: translateY(-1px);
}

.era-chip--bright-jump {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.2), rgba(186, 230, 253, 0.14));
  border-color: rgba(125, 211, 252, 0.35);
  color: #e0f2fe;
}

/* 3D Stage Viewport Container */
.stage-3d-shell {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: radial-gradient(circle at 50% 44%, rgba(30, 58, 138, 0.22), rgba(4, 6, 10, 0.96) 72%);
  box-shadow: 0 36px 90px -28px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.stage-3d-shell--hero {
  height: 540px;
}

.stage-3d-shell--roots {
  height: 500px;
}

.stage-3d-shell--books {
  height: 560px;
  background:
    radial-gradient(ellipse 75% 58% at 50% 42%, rgba(245, 158, 11, 0.12), transparent 62%),
    radial-gradient(ellipse 65% 55% at 24% 72%, rgba(37, 99, 235, 0.16), transparent 62%),
    #05070d;
}

.stage-3d-shell--bright {
  height: 540px;
  background:
    radial-gradient(ellipse 75% 65% at 50% 35%, rgba(186, 230, 253, 0.72), rgba(241, 247, 255, 0.98) 72%);
  border-color: rgba(15, 23, 42, 0.09);
  box-shadow: 0 34px 80px -32px rgba(37, 99, 235, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.stage-3d-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: pan-y;
}

.stage-3d-canvas:active {
  cursor: grabbing;
}

.stage-hud-top {
  position: absolute;
  top: 14px;
  left: 16px;
  right: 16px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}

.hud-pill {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: rgba(5, 8, 16, 0.72);
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.2);
  backdrop-filter: blur(12px);
}

.hud-pill--bright {
  background: rgba(255, 255, 255, 0.82);
  color: var(--bright-ink);
  border-color: rgba(15, 23, 42, 0.1);
}

.hud-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
}

.stage-hud-bottom {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}

.hud-btn-group {
  pointer-events: auto;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.hud-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(8, 12, 22, 0.78);
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.hud-btn:hover {
  background: rgba(30, 41, 59, 0.92);
  border-color: rgba(248, 250, 252, 0.4);
  transform: translateY(-1px);
}

.hud-btn.is-active {
  background: var(--accent-amber);
  color: #05070b;
  border-color: var(--accent-amber);
}

.hud-btn--bright {
  background: rgba(255, 255, 255, 0.86);
  color: var(--bright-ink);
  border-color: rgba(15, 23, 42, 0.12);
}

.hud-btn--bright:hover {
  background: #ffffff;
  border-color: rgba(37, 99, 235, 0.35);
}

.hud-btn--bright.is-active {
  background: var(--cobalt);
  color: #ffffff;
  border-color: var(--cobalt);
}

/* ==========================================================================
   CHAPTERS 01 & 02 — DARK ROOTS (GLADYS KING & VELA 3D DIORAMA)
   ========================================================================== */
.roots-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.18fr);
  gap: 36px;
  align-items: start;
}

.roots-chapters-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.roots-card {
  position: relative;
  padding: 26px 26px 24px;
  border-radius: var(--radius-lg);
  background: rgba(11, 17, 30, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.14);
  cursor: pointer;
  text-align: left;
  width: 100%;
  color: inherit;
  transition: border-color 0.35s var(--ease-cine), background 0.35s var(--ease-cine), transform 0.35s var(--ease-cine), box-shadow 0.35s var(--ease-cine);
}

.roots-card:hover {
  border-color: rgba(148, 163, 184, 0.32);
  transform: translateY(-2px);
}

.roots-card.is-active {
  background: linear-gradient(155deg, rgba(17, 26, 46, 0.95), rgba(8, 13, 24, 0.96));
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(245, 158, 11, 0.14);
}

.roots-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.roots-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-amber);
}

.roots-motto {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
}

.roots-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 10px 0 8px;
  color: #ffffff;
}

.roots-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: #94a3b8;
}

.roots-mini-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.roots-mini-strip--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.roots-thumb-btn {
  position: relative;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 13px;
  overflow: hidden;
  padding: 0;
  background: #0a101d;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  transition: transform 0.25s var(--ease-cine), border-color 0.25s ease;
}

.roots-thumb-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.6);
}

.roots-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.roots-thumb-btn--contain img {
  object-fit: contain;
  padding: 6px;
  background: #ffffff;
}

.roots-thumb-btn--portrait img {
  object-position: center 14%;
}

.roots-thumb-label {
  position: absolute;
  left: 6px;
  bottom: 6px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 600;
  background: rgba(5, 8, 16, 0.8);
  color: #f8fafc;
  backdrop-filter: blur(8px);
}

.source-micro-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #64748b;
}

.roots-sticky-stage {
  position: sticky;
  top: 96px;
}

.roots-stage-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(11, 17, 30, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.roots-stage-caption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  color: #ffffff;
}

.roots-stage-caption span {
  font-size: 12.5px;
  color: #94a3b8;
}

/* ==========================================================================
   CHAPTER 03 — KHANYISA HIGH SCHOOL INTERACTIVE 3D BOOK SELECTOR (DARK)
   ========================================================================== */
.book-selector-header {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.book-selector-workspace {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(0, 0.86fr);
  gap: 26px;
  align-items: stretch;
}

/* Right Book Inspector Panel */
.book-inspector-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  border-radius: var(--radius-xl);
  background: linear-gradient(165deg, rgba(13, 20, 36, 0.92), rgba(7, 11, 20, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 28px 70px -28px rgba(0, 0, 0, 0.8);
}

.book-vol-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-amber);
}

.book-vol-title {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #ffffff;
  margin: 10px 0 12px;
}

.book-vol-desc {
  font-size: 14.5px;
  line-height: 1.68;
  color: #cbd5e1;
  margin: 0;
}

.book-spread-thumbs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.book-spread-thumb {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: #0b1120;
  padding: 0;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  transition: transform 0.25s var(--ease-cine), border-color 0.25s ease;
}

.book-spread-thumb:hover {
  transform: translateY(-2px);
  border-color: var(--accent-amber);
}

.book-spread-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.book-spread-thumb span {
  position: absolute;
  left: 7px;
  bottom: 7px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(4, 6, 10, 0.82);
  color: #f8fafc;
  font-size: 10.5px;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.book-source-box {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.book-source-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 4px;
}

.book-source-text {
  font-size: 12.5px;
  line-height: 1.5;
  color: #e2e8f0;
}

.book-source-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #60a5fa;
  text-decoration: none;
}

.book-source-link:hover {
  text-decoration: underline;
}

.book-inspector-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

/* Spine Swatch Selector Strip (Inspired by "One loop. Three terrains." in Video) */
.book-swatch-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.book-swatch-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 14px 14px 13px;
  border-radius: 18px;
  background: rgba(11, 17, 30, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
  text-align: left;
  cursor: pointer;
  transition: transform 0.28s var(--ease-cine), border-color 0.28s ease, background 0.28s ease, box-shadow 0.28s ease;
}

.book-swatch-btn:hover {
  transform: translateY(-3px);
  border-color: rgba(248, 250, 252, 0.34);
  color: #ffffff;
}

.book-swatch-btn.is-active {
  background: linear-gradient(155deg, rgba(24, 36, 62, 0.96), rgba(10, 16, 30, 0.96));
  border-color: var(--accent-amber);
  color: #ffffff;
  box-shadow: 0 18px 40px -18px rgba(245, 158, 11, 0.38);
}

.swatch-spine-chip {
  width: 100%;
  height: 7px;
  border-radius: 99px;
}

.swatch-vol {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94a3b8;
}

.book-swatch-btn.is-active .swatch-vol {
  color: #fbbf24;
}

.swatch-name {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.25;
}

/* Dark Tribute Callout for Mr. Ncetani (Still inside KHS Dark Chapter) */
.tribute-dark-card {
  position: relative;
  z-index: 2;
  margin-top: 34px;
  padding: 26px;
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, rgba(16, 24, 42, 0.88), rgba(8, 12, 22, 0.92));
  border: 1px solid rgba(148, 163, 184, 0.18);
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.tribute-thumb-btn {
  position: relative;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 18px;
  overflow: hidden;
  padding: 0;
  background: #05070b;
  aspect-ratio: 16 / 10;
  cursor: pointer;
  transition: transform 0.3s var(--ease-cine), border-color 0.3s ease;
}

.tribute-thumb-btn:hover {
  transform: scale(1.02);
  border-color: var(--accent-amber);
}

.tribute-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tribute-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fbbf24;
}

.tribute-quote {
  margin: 12px 0 14px;
  font-size: 16.5px;
  line-height: 1.72;
  color: #f1f5f9;
  font-weight: 500;
}

.tribute-attrib {
  font-size: 13px;
  color: #94a3b8;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* ==========================================================================
   THE DAWN PORTAL (CONTINUOUS DARK -> BRIGHT TRANSITION BAND)
   ========================================================================== */
.dawn-portal {
  position: relative;
  padding: 128px 0 118px;
  text-align: center;
  background: linear-gradient(
    180deg,
    #050810 0%,
    #0b162c 22%,
    #1d4ed8 48%,
    #60a5fa 70%,
    #bae6fd 86%,
    #dbeafe 100%
  );
  color: #ffffff;
  overflow: hidden;
}

.dawn-portal-inner {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
}

.dawn-beam {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  width: 760px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.34) 0%, rgba(186, 230, 253, 0.14) 45%, transparent 72%);
  filter: blur(28px);
  pointer-events: none;
}

.dawn-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: #ffffff;
  backdrop-filter: blur(12px);
}

.dawn-heading {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.04;
  margin: 20px 0 16px;
  text-shadow: 0 12px 36px rgba(15, 23, 42, 0.25);
}

.dawn-sub {
  font-size: 17px;
  line-height: 1.68;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 auto;
  max-width: 580px;
}

/* ==========================================================================
   CHAPTER 04 — "ME NOW" (BRIGHT ERA · KHWEZI WITH HIS HAIR · CPUT · GHOST WIRES)
   ========================================================================== */
.now-3d-workspace {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.88fr);
  gap: 26px;
  align-items: stretch;
  margin-top: 32px;
}

.now-inspector-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 24px 60px -28px rgba(37, 99, 235, 0.16);
}

.now-swatch-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.now-swatch-btn {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 13px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.09);
  color: var(--bright-muted);
  text-align: left;
  cursor: pointer;
  transition: transform 0.25s var(--ease-cine), border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.now-swatch-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.35);
  color: var(--bright-ink);
}

.now-swatch-btn.is-active {
  border-color: var(--cobalt);
  background: linear-gradient(155deg, #ffffff, #eff6ff);
  color: var(--bright-ink);
  box-shadow: 0 14px 30px -16px rgba(37, 99, 235, 0.35);
}

.now-swatch-bar {
  width: 100%;
  height: 5px;
  border-radius: 99px;
}

.now-swatch-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

/* Bright Editorial Manifesto & 4-Column Contrast Bento */
.manifesto-split {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.85fr);
  gap: 32px;
  align-items: start;
  margin-top: 72px;
}

.manifesto-statement {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.8vw, 2.55rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.032em;
  color: var(--bright-ink);
  margin: 0;
}

.manifesto-muted {
  color: #64748b;
  font-weight: 600;
}

.founder-note-card {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid var(--bright-border);
  box-shadow: 0 20px 50px -28px rgba(15, 23, 42, 0.14);
}

.founder-note-text {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.68;
  color: var(--bright-muted);
}

.founder-note-name {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--bright-ink);
}

.founder-note-role {
  font-size: 13px;
  color: var(--bright-subtle);
}

.contrast-bento-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.bento-card {
  position: relative;
  min-height: 320px;
  padding: 24px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: transform 0.35s var(--ease-cine), box-shadow 0.35s var(--ease-cine);
}

.bento-card:hover {
  transform: translateY(-4px);
}

.bento-card--portrait {
  padding: 0;
  cursor: pointer;
  background: #0f172a;
}

.bento-card--portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.bento-portrait-scrim {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px;
  background: linear-gradient(180deg, transparent, rgba(5, 8, 16, 0.88));
  color: #ffffff;
}

.bento-card--light {
  background: #ffffff;
  border: 1px solid var(--bright-border);
  color: var(--bright-ink);
  box-shadow: 0 18px 42px -26px rgba(15, 23, 42, 0.12);
}

.bento-card--cobalt {
  background: linear-gradient(155deg, #2563eb, #1d4ed8);
  color: #ffffff;
  box-shadow: 0 22px 48px -22px rgba(37, 99, 235, 0.48);
}

.bento-card--midnight {
  background: linear-gradient(155deg, #0f172a, #050811);
  color: #ffffff;
  box-shadow: 0 22px 48px -22px rgba(15, 23, 42, 0.45);
}

.bento-icon-pill {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: rgba(37, 99, 235, 0.1);
  color: var(--cobalt);
}

.bento-card--cobalt .bento-icon-pill,
.bento-card--midnight .bento-icon-pill {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.bento-stat {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}

.bento-copy {
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 14px;
  opacity: 0.88;
}

.bento-meta-foot {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.72;
}

/* 2x2 Pillars Grid (Bright) */
.pillars-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.pillar-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid var(--bright-border);
  box-shadow: 0 18px 44px -28px rgba(15, 23, 42, 0.1);
  transition: transform 0.3s var(--ease-cine), box-shadow 0.3s var(--ease-cine);
}

.pillar-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 52px -26px rgba(37, 99, 235, 0.15);
}

.pillar-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 16px 0 10px;
  color: var(--bright-ink);
}

.pillar-body {
  margin: 0 0 16px;
  font-size: 14.5px;
  line-height: 1.68;
  color: var(--bright-muted);
}

.pillar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.pillar-tag {
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  background: #f1f5f9;
  color: #334155;
}

/* ==========================================================================
   CHAPTER 05 — COMPLETE ARCHIVE & VERIFIED SOURCES LEDGER (BRIGHT)
   ========================================================================== */
.archive-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.archive-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.archive-filter-btn {
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--bright-border-strong);
  background: #ffffff;
  color: var(--bright-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.archive-filter-btn:hover {
  border-color: var(--cobalt);
  color: var(--bright-ink);
}

.archive-filter-btn.is-active {
  background: var(--midnight);
  color: #ffffff;
  border-color: var(--midnight);
}

.archive-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.archive-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: 20px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--bright-border);
  box-shadow: 0 14px 36px -24px rgba(15, 23, 42, 0.14);
  text-align: left;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.3s var(--ease-cine), box-shadow 0.3s var(--ease-cine), border-color 0.3s ease;
}

.archive-card:hover {
  transform: translateY(-5px);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 26px 52px -24px rgba(37, 99, 235, 0.2);
}

.archive-card.is-hidden {
  display: none;
}

.archive-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #eef2f7;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.archive-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.45s var(--ease-cine);
}

.archive-card:hover .archive-thumb-wrap img {
  transform: scale(1.03);
}

.archive-thumb-wrap--center img {
  object-position: center center;
}

.archive-thumb-wrap--cert {
  padding: 14px;
  background: linear-gradient(155deg, #f1f5f9, #e2e8f0);
}

.archive-thumb-wrap--cert img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  border-radius: 8px;
  box-shadow: 0 10px 26px -8px rgba(15, 23, 42, 0.22);
}

.archive-source-pill {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 4px 9px;
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(15, 23, 42, 0.84);
  color: #f8fafc;
  backdrop-filter: blur(8px);
}

.archive-card-body {
  padding: 15px 16px 17px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.archive-card-kicker {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cobalt);
}

.archive-card-title {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--bright-ink);
}

.archive-card-caption {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--bright-subtle);
}

/* Official Sources & Provenance Ledger */
.sources-ledger-card {
  margin-top: 38px;
  padding: 30px;
  border-radius: var(--radius-xl);
  background: #ffffff;
  border: 1px solid var(--bright-border);
  box-shadow: 0 18px 46px -28px rgba(15, 23, 42, 0.1);
}

.sources-ledger-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.source-item {
  padding: 16px 18px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.07);
}

.source-item-title {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--bright-ink);
  margin: 0 0 6px;
}

.source-item-detail {
  font-size: 13px;
  line-height: 1.58;
  color: var(--bright-muted);
  margin: 0 0 8px;
}

.source-item-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--cobalt);
  text-decoration: none;
  word-break: break-all;
}

.source-item-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   CHAPTER 06 — FAQ, AWARENESS CALLOUT, CLOSING SKY BANNER & FOOTER (BRIGHT)
   ========================================================================== */
.faq-split {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 36px;
  align-items: start;
}

.awareness-callout-link {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
  padding: 20px 22px;
  border-radius: 20px;
  text-decoration: none;
  background: linear-gradient(155deg, #fff1f7, #ffffff);
  border: 1px solid rgba(219, 39, 119, 0.2);
  box-shadow: 0 14px 36px -22px rgba(219, 39, 119, 0.22);
  transition: transform 0.25s var(--ease-cine), border-color 0.25s ease;
}

.awareness-callout-link:hover {
  transform: translateY(-2px);
  border-color: rgba(219, 39, 119, 0.45);
}

.awareness-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #be185d;
}

.awareness-desc {
  font-size: 14px;
  line-height: 1.62;
  color: #475569;
}

.awareness-cta-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: #be185d;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid var(--bright-border);
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px;
  border: 0;
  background: transparent;
  text-align: left;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--bright-ink);
  cursor: pointer;
}

.faq-plus {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f1f5f9;
  color: var(--bright-ink);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-cine), background 0.25s ease, color 0.25s ease;
}

.faq-item.is-open .faq-plus {
  transform: rotate(45deg);
  background: var(--midnight);
  color: #ffffff;
}

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s var(--ease-cine);
}

.faq-item.is-open .faq-panel {
  grid-template-rows: 1fr;
}

.faq-panel-inner {
  overflow: hidden;
}

.faq-answer {
  margin: 0;
  padding: 0 22px 22px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--bright-muted);
}

.faq-answer a {
  color: var(--cobalt);
  font-weight: 600;
}

/* Closing Sky Banner & Editorial White Footer Card */
.closing-section {
  padding: 24px 0 38px;
  background: var(--bright-canvas);
}

.closing-sky-banner {
  padding: 58px 40px;
  border-radius: var(--radius-xl);
  text-align: center;
  background: linear-gradient(135deg, #60a5fa 0%, #93c5fd 42%, #dbeafe 100%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 28px 66px -30px rgba(37, 99, 235, 0.38);
}

.closing-banner-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--bright-ink);
  margin: 0;
}

.closing-banner-sub {
  font-size: 16px;
  line-height: 1.65;
  color: #1e293b;
  max-width: 560px;
  margin: 14px auto 26px;
}

.closing-sky-banner .hero-cta-row {
  justify-content: center;
  margin-top: 0;
}

.editorial-footer-wrap {
  padding: 0 0 42px;
  background: var(--bright-canvas);
}

.footer-card {
  padding: 36px;
  border-radius: var(--radius-xl);
  background: #ffffff;
  border: 1px solid var(--bright-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr 1.15fr;
  gap: 28px;
}

.footer-card .nav-brand-label {
  color: var(--bright-ink);
}

.footer-blurb {
  margin: 14px 0 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--bright-subtle);
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--bright-ink);
  margin-bottom: 12px;
}

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

.footer-links a {
  font-size: 13.5px;
  color: var(--bright-subtle);
  text-decoration: none;
}

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

.footer-contact-item {
  font-size: 13.5px;
  color: var(--bright-muted);
  margin: 0 0 8px;
}

.footer-bottom-row {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--bright-border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  color: var(--bright-subtle);
}

.footer-bottom-row a {
  color: var(--cobalt);
}

/* ==========================================================================
   FULL-SCREEN CLICK-TO-ZOOM ARCHIVAL LIGHTBOX (WITH SOURCE ATTRIBUTION)
   ========================================================================== */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(4, 6, 12, 0.88);
  backdrop-filter: blur(18px);
}

.lightbox-backdrop.is-open {
  display: flex;
}

.lightbox-dialog {
  width: 100%;
  max-width: 1080px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  overflow: hidden;
  background: #0b1120;
  border: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow: 0 36px 90px -20px rgba(0, 0, 0, 0.85);
}

.lightbox-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.lightbox-meta-label {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.lightbox-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lightbox-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 13px;
  border-radius: 99px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.lightbox-btn--icon {
  width: 34px;
  height: 34px;
  padding: 0;
}

.lightbox-stage {
  flex: 1;
  min-height: 300px;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: #05070d;
}

.lightbox-img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 10px;
  transition: transform 0.28s var(--ease-cine);
  cursor: zoom-in;
}

.lightbox-stage.is-zoomed {
  align-items: flex-start;
  justify-content: flex-start;
}

.lightbox-stage.is-zoomed .lightbox-img {
  max-width: none;
  max-height: none;
  width: 165%;
  cursor: zoom-out;
}

.lightbox-caption-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  background: #0b1120;
}

.lightbox-caption-text {
  font-size: 13px;
  color: #cbd5e1;
}

.lightbox-source-text {
  display: block;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #60a5fa;
}

.lightbox-counter {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
}

/* ==========================================================================
   SCROLL REVEAL MOTION (ALWAYS VISIBLE WITHOUT JS; CRISP FAST TRANSITION)
   ========================================================================== */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.44s var(--ease-cine), transform 0.44s var(--ease-cine);
}

body.js-reveal-armed .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(18px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1140px) {
  .reel-rail {
    display: none;
  }

  .hero-cinema-grid,
  .roots-layout,
  .book-selector-workspace,
  .now-3d-workspace,
  .manifesto-split,
  .faq-split {
    grid-template-columns: 1fr;
  }

  .roots-sticky-stage {
    position: static;
  }

  .book-swatch-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contrast-bento-grid,
  .archive-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .nav-center-links,
  .pill-nav > .nav-pill-cta {
    display: none;
  }

  .nav-menu-toggle {
    display: grid;
  }

  .tribute-dark-card,
  .pillars-grid-2x2,
  .sources-ledger-grid,
  .now-swatch-row {
    grid-template-columns: 1fr;
  }

  .book-swatch-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stage-3d-shell--hero,
  .stage-3d-shell--books,
  .stage-3d-shell--bright {
    height: 410px;
  }

  .stage-3d-shell--roots {
    height: 370px;
  }
}

@media (max-width: 560px) {
  .container {
    padding: 0 18px;
  }

  .cine-chapter {
    padding: 76px 0 64px;
  }

  .hero-cinema {
    padding: 96px 0 48px;
  }

  .contrast-bento-grid,
  .archive-grid-4,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .closing-sky-banner {
    padding: 40px 22px;
  }

  .footer-card,
  .book-inspector-panel,
  .now-inspector-card,
  .sources-ledger-card {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
