/* ════════════════════════════════════════
   MULGREW ELITE TUITION — CASE STUDY ATLAS
   ════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --navy: #0A1733;
  --navy-2: #14254A;
  --navy-3: #1d3266;
  --gold: #C9A961;
  --gold-deep: #A88934;
  --gold-soft: #E0C684;
  --cream: #FAFAF6;
  --cream-2: #F4F1E8;
  --land: #F0EBE0;
  --land-stroke: rgba(10,23,51,0.22);
  --water: #E9E4D5;
  --body: #2F3B54;
  --muted: #6B7280;
  --hairline: rgba(10,23,51,0.10);
  --p2:  #C9A961;
  --p1e: #6F8B4F;
  --p1f: #B85A3C;
  --p1g: #4C6B96;
  --p3:  #76558B;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Manrope', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--body);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ── TOPBAR ── */
.topbar {
  position: sticky; top: 0; z-index: 80;
  background: rgba(10,23,51,0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(201,169,97,0.22);
  color: var(--cream);
}
.topbar-inner {
  max-width: 1440px; margin: 0 auto;
  padding: 14px 36px;
  display: flex; align-items: center; gap: 36px;
}
.topbar-brand {
  display: flex; align-items: center; gap: 14px;
  flex-shrink: 0;
}
.topbar-brand img { height: 44px; width: auto; display: block; }
.topbar-brand .name {
  font-family: var(--serif); font-style: italic; font-size: 19px;
  color: var(--gold); line-height: 1;
}
.topbar-brand .name small {
  display: block;
  font-family: var(--sans); font-style: normal;
  font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(250,250,246,0.55); font-weight: 600;
  margin-top: 4px;
}
.topbar-nav {
  display: flex; gap: 28px;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(250,250,246,0.78);
  margin-left: auto;
}
.topbar-nav a { transition: color 0.2s; }
.topbar-nav a:hover { color: var(--gold); }
.topbar-cta {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--navy); background: var(--gold);
  padding: 10px 18px; border-radius: 2px;
  transition: background 0.2s;
}
.topbar-cta:hover { background: var(--gold-soft); }

/* ── HERO ── */
.hero {
  background: var(--navy);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 75% 45%, rgba(201,169,97,0.10), transparent 55%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1440px; margin: 0 auto;
  padding: 64px 36px 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative; z-index: 1;
}
.hero-text {}
.eyebrow {
  font-family: var(--sans); font-size: 11px; font-weight: 700;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold);
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 24px;
}
.eyebrow::before {
  content: ''; display: block; width: 32px; height: 1px;
  background: var(--gold); opacity: 0.65;
}
.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(38px, 4.4vw, 64px);
  line-height: 1.0; letter-spacing: -0.01em;
  color: var(--cream); margin-bottom: 24px;
  text-wrap: balance;
}
.hero h1 em { font-style: italic; color: var(--gold); }
.hero-lede {
  font-size: 17px; line-height: 1.55;
  color: rgba(250,250,246,0.70);
  max-width: 520px;
  margin-bottom: 36px;
  font-weight: 400;
}

/* Paper filter chips */
.filters-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: rgba(250,250,246,0.45);
  margin-bottom: 14px;
}
.filter-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 28px;
}
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,169,97,0.25);
  color: rgba(250,250,246,0.75);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
}
.chip .dot {
  width: 9px; height: 9px; border-radius: 50%;
  border: 0.5px solid rgba(10,23,51,0.4);
}
.chip:hover { border-color: var(--gold); background: rgba(201,169,97,0.08); color: var(--cream); }
.chip.active { background: var(--cream); border-color: var(--cream); color: var(--navy); }
.chip.active .dot { box-shadow: 0 0 0 2px rgba(10,23,51,0.15); }

.hero-stats {
  display: flex; gap: 36px; padding-top: 28px;
  border-top: 1px solid rgba(201,169,97,0.20);
}
.hero-stat .n {
  font-family: var(--serif); font-size: 36px; line-height: 1;
  color: var(--gold); display: block; margin-bottom: 4px;
}
.hero-stat .l {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(250,250,246,0.45);
}

/* ── GLOBE STAGE ── */
.globe-stage {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center;
}
.globe-wrap {
  position: relative;
  width: 100%;
  max-width: 620px;
  aspect-ratio: 1 / 1;
}
.globe-wrap.is-empty {
  background: radial-gradient(circle, rgba(201,169,97,0.04), transparent 70%);
  border-radius: 50%;
}
.globe-svg {
  width: 100%; height: 100%;
  display: block;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.globe-svg:active { cursor: grabbing; }
.globe-loading {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: var(--gold-soft);
  font-family: var(--serif); font-style: italic; font-size: 18px;
  opacity: 0.6;
  pointer-events: none;
}
.globe-hint {
  margin-top: 18px;
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: rgba(250,250,246,0.45);
  display: flex; align-items: center; gap: 14px;
}
.globe-hint::before, .globe-hint::after {
  content: ''; display: block; width: 24px; height: 1px;
  background: rgba(201,169,97,0.4);
}
.globe-actions {
  display: flex; gap: 12px;
  margin-top: 14px;
}
.globe-btn {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  background: rgba(201,169,97,0.10);
  border: 1px solid rgba(201,169,97,0.30);
  color: var(--gold);
  padding: 8px 14px; border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
}
.globe-btn:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }

/* SVG globe internals */
.sphere-bg {
  fill: url(#oceanGradient);
  stroke: rgba(201,169,97,0.4);
  stroke-width: 0.8px;
}
.atmosphere {
  fill: none;
  stroke: url(#atmoGradient);
  stroke-width: 16px;
  opacity: 0.85;
  pointer-events: none;
}
.terminator {
  fill: url(#terminatorGradient);
  pointer-events: none;
  mix-blend-mode: multiply;
}
.land {
  fill: url(#landGradient);
  stroke: rgba(10,23,51,0.55);
  stroke-width: 0.5px;
  stroke-linejoin: round;
  transition: fill 0.2s;
}
.graticule {
  fill: none;
  stroke: rgba(255,255,255,0.07);
  stroke-width: 0.4px;
}
.pin-glow {
  fill: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.pin {
  stroke: var(--navy);
  stroke-width: 1.2px;
  cursor: pointer;
  filter: drop-shadow(0 1px 1.5px rgba(0,0,0,0.35));
  transition: r 0.18s ease, opacity 0.18s ease, stroke-width 0.18s ease;
}
.pin.paper-2  { fill: var(--p2); }
.pin.paper-1e { fill: var(--p1e); }
.pin.paper-1f { fill: var(--p1f); }
.pin.paper-1g { fill: var(--p1g); }
.pin.paper-3  { fill: var(--p3); }
.pin.dimmed   { opacity: 0.18; }
.pin.hidden   { opacity: 0; pointer-events: none; }
.pin.active   {
  stroke: white; stroke-width: 2px;
}
.pin.active + .pin-glow,
.pin-glow.active {
  opacity: 0.6;
  animation: pin-pulse 1.6s ease-out infinite;
}
@keyframes pin-pulse {
  0%   { opacity: 0.7; r: 9; }
  100% { opacity: 0; r: 24; }
}
.pin-label {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 10px;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
  transition: opacity 0.18s ease;
  paint-order: stroke;
}
.pin-label.paper-2  { fill: var(--navy); }
.pin-label.paper-1e,
.pin-label.paper-1f,
.pin-label.paper-1g,
.pin-label.paper-3  { fill: white; }
.pin-label.dimmed { opacity: 0.18; }
.pin-label.hidden { opacity: 0; }

/* ── INDEX SECTION ── */
.index-section {
  padding: 96px 36px 80px;
  background: var(--cream);
}
.index-inner { max-width: 1440px; margin: 0 auto; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 40px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.section-head .eyebrow { color: var(--gold-deep); margin-bottom: 16px; }
.section-head .eyebrow::before { background: var(--gold-deep); }
.section-head h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(34px, 3.6vw, 52px);
  line-height: 1.0; letter-spacing: -0.005em;
  color: var(--navy);
  text-wrap: balance; max-width: 720px;
}
.section-head h2 em { font-style: italic; color: var(--gold-deep); }
.section-head .head-text { flex: 1; min-width: 320px; }
.section-head .head-meta {
  font-family: var(--serif); font-style: italic;
  font-size: 15px; color: var(--muted);
  max-width: 380px;
}

.index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.index-card {
  background: white;
  padding: 22px 22px 20px;
  cursor: pointer;
  position: relative;
  transition: background 0.2s, transform 0.2s;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 180px;
}
.index-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--paper-color);
  transition: width 0.2s;
}
.index-card:hover { background: var(--cream); }
.index-card:hover::before { width: 6px; }
.index-card.active { background: var(--cream-2); }
.index-card.active::before { width: 6px; }
.index-card.dimmed { opacity: 0.35; }

.index-card-top {
  display: flex; align-items: center; gap: 10px;
}
.ic-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--paper-color);
  color: white;
  display: grid; place-items: center;
  font-family: var(--sans); font-weight: 700; font-size: 11px;
  line-height: 1; letter-spacing: 0;
  border: 1px solid var(--paper-color);
}
.ic-num.paper-2 { color: var(--navy); }
.ic-topic {
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
}
.ic-title {
  font-family: var(--serif); font-weight: 500;
  font-size: 19px; line-height: 1.1; letter-spacing: -0.005em;
  color: var(--navy);
}
.ic-title em { font-style: italic; color: var(--gold-deep); }
.ic-meta {
  margin-top: auto;
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--paper-color);
}

/* ── DRAWER ── */
.drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(10,23,51,0.35);
  backdrop-filter: blur(2px);
  z-index: 90;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s;
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(540px, 100vw);
  background: var(--cream);
  z-index: 100;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.65, 0, 0.35, 1);
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: -20px 0 60px rgba(10,23,51,0.25);
}
.drawer.open { transform: translateX(0); }
.drawer-header {
  background: var(--navy); color: white;
  padding: 24px 32px 22px;
  position: relative;
  flex-shrink: 0;
}
.drawer-header::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--paper-color, var(--gold));
}
.drawer-close {
  position: absolute; top: 22px; right: 24px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: grid; place-items: center;
  color: var(--cream); font-size: 18px;
  transition: background 0.2s;
}
.drawer-close:hover { background: rgba(201,169,97,0.20); }
.drawer-num {
  font-family: var(--sans); font-size: 10px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--paper-color, var(--gold));
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 12px;
}
.drawer-num::before {
  content: ''; display: block; width: 18px; height: 1px;
  background: var(--paper-color, var(--gold));
}
.drawer-title {
  font-family: var(--serif); font-weight: 400;
  font-size: 30px; line-height: 1.05; letter-spacing: -0.005em;
  color: white; margin-bottom: 12px;
}
.drawer-title em { font-style: italic; color: var(--paper-color, var(--gold)); }
.drawer-subtitle {
  font-family: var(--serif); font-style: italic;
  font-size: 15px; color: rgba(250,250,246,0.7);
  max-width: 90%;
}
.drawer-meta {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-top: 16px;
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(250,250,246,0.55);
}
.drawer-meta span { display: inline-flex; align-items: center; gap: 8px; }
.drawer-meta span::before {
  content: ''; width: 4px; height: 4px; border-radius: 50%;
  background: rgba(201,169,97,0.5);
}
.drawer-meta span:first-child::before { display: none; }

.drawer-body {
  padding: 28px 32px 32px;
  overflow-y: auto;
  flex: 1;
}
.drawer-section { margin-bottom: 28px; }
.drawer-label {
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold-deep);
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 12px;
}
.drawer-label::before {
  content: ''; display: block; width: 14px; height: 1px;
  background: var(--gold);
}
.drawer-hook {
  font-family: var(--serif); font-style: italic;
  font-size: 18px; line-height: 1.35;
  color: var(--navy);
  letter-spacing: -0.005em;
}
.drawer-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.drawer-stat {
  background: white; padding: 12px 14px;
  border-left: 2px solid var(--paper-color, var(--gold));
}
.drawer-stat .n {
  font-family: var(--serif); font-size: 22px; line-height: 1;
  color: var(--navy); display: block; margin-bottom: 4px;
}
.drawer-stat .n small {
  font-size: 14px; color: var(--gold-deep); font-style: italic;
}
.drawer-stat .d {
  font-size: 10px; line-height: 1.4; color: var(--body);
}
.drawer-deploy {
  font-size: 14px; line-height: 1.55; color: var(--body);
}
.drawer-deploy strong { color: var(--navy); font-weight: 600; }
.drawer-chips {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px;
}
.drawer-chip {
  font-size: 9px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--navy);
  background: white;
  padding: 4px 10px;
  border: 1px solid var(--hairline);
  border-radius: 100px;
}

.drawer-actions {
  display: flex; gap: 10px;
  padding: 20px 32px;
  background: var(--cream-2);
  border-top: 1px solid var(--hairline);
  flex-shrink: 0;
}
.drawer-btn {
  flex: 1;
  padding: 12px 16px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  background: white;
  border: 1px solid var(--hairline);
  color: var(--navy);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.18s;
}
.drawer-btn:hover { background: var(--navy); color: white; border-color: var(--navy); }
.drawer-btn.primary { background: var(--navy); color: white; border-color: var(--navy); }
.drawer-btn.primary:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }

/* ── FOOTER ── */
.footer {
  background: var(--navy);
  color: var(--cream);
  padding: 56px 36px 28px;
  position: relative;
}
.footer::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0;
  height: 2px; background: var(--gold);
}
.footer-inner {
  max-width: 1440px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 56px;
}
.footer-brand .name {
  font-family: var(--serif); font-style: italic;
  font-size: 24px; color: var(--gold);
  margin-bottom: 12px;
}
.footer-brand p {
  font-size: 13px; color: rgba(250,250,246,0.6);
  line-height: 1.55; max-width: 320px;
}
.footer-col h4 {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col a {
  font-size: 13px; color: rgba(250,250,246,0.7);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--gold); }
.footer-base {
  max-width: 1440px; margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(201,169,97,0.18);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; color: rgba(250,250,246,0.45);
  letter-spacing: 0.08em;
}
.footer-base em { color: var(--gold-soft); font-style: italic; }

/* ── RESPONSIVE ── */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; padding: 48px 24px; }
  .globe-wrap { max-width: 440px; margin: 0 auto; }
  .topbar-nav { display: none; }
  .topbar-inner { padding: 12px 20px; gap: 18px; }
  .index-section { padding: 64px 20px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer { padding: 40px 20px 24px; }
}

/* ════════════════════════════════════════
   THEATRE MODE — fullscreen globe + card
   ════════════════════════════════════════ */
.atlas-theatre {
  position: fixed; inset: 0;
  background: var(--navy);
  z-index: 200;
  display: grid;
  grid-template-columns: 1fr 600px;
  grid-template-rows: 56px 1fr;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.atlas-theatre.open {
  opacity: 1;
  pointer-events: auto;
}
.atlas-theatre .theatre-bar {
  transform: translateY(-100%);
  transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1) 0.05s;
}
.atlas-theatre.open .theatre-bar { transform: translateY(0); }
.atlas-theatre .theatre-panel {
  transform: translateX(100%);
  transition: transform 0.55s cubic-bezier(0.65, 0, 0.35, 1) 0.1s;
}
.atlas-theatre.open .theatre-panel { transform: translateX(0); }
.atlas-theatre .theatre-globe-host {
  opacity: 0;
  transition: opacity 0.4s ease 0.25s;
}
.atlas-theatre.open .theatre-globe-host { opacity: 1; }

/* Globe FLIP animation — set inline by JS */
.globe-svg.flipping {
  transition: transform 0.6s cubic-bezier(0.5, 0, 0.2, 1);
  will-change: transform;
}
.atlas-theatre::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 40%, rgba(201,169,97,0.10), transparent 55%);
  pointer-events: none;
}

.theatre-bar {
  grid-column: 1 / -1;
  grid-row: 1;
  background: rgba(10,23,51,0.92);
  border-bottom: 1px solid rgba(201,169,97,0.22);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
  z-index: 3;
  position: relative;
}
.theatre-brand {
  display: flex; align-items: center; gap: 12px;
  color: var(--cream);
}
.theatre-brand img { height: 30px; width: auto; }
.theatre-brand .name {
  font-family: var(--serif); font-style: italic; font-size: 15px;
  color: var(--gold);
}
.theatre-brand .name small {
  font-family: var(--sans); font-style: normal;
  font-size: 8px; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(250,250,246,0.55); font-weight: 600;
  margin-left: 8px;
}
.theatre-title {
  font-family: var(--sans); font-size: 10px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold);
}
.theatre-filter-row {
  display: flex; gap: 6px;
}
.theatre-filter-row .chip {
  font-size: 10px; padding: 6px 10px;
}
.theatre-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(201,169,97,0.10);
  border: 1px solid rgba(201,169,97,0.35);
  color: var(--gold);
  display: grid; place-items: center;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s;
}
.theatre-close:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }

.theatre-globe-host {
  grid-column: 1; grid-row: 2;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  padding: 24px;
  z-index: 2;
}
.theatre-globe-host .globe-svg {
  width: 100%; height: 100%;
  max-width: min(82vh, 100%);
  max-height: 100%;
  aspect-ratio: 1 / 1;
}
.theatre-globe-host .globe-actions {
  position: absolute;
  bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 3;
}
.theatre-globe-host .globe-hint {
  position: absolute;
  top: 16px; left: 50%; transform: translateX(-50%);
  margin: 0;
  z-index: 3;
}

.theatre-panel {
  grid-column: 2; grid-row: 2;
  background: var(--cream);
  overflow-y: auto;
  position: relative;
  z-index: 2;
}
.theatre-panel-empty {
  height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px;
  text-align: center;
  color: var(--muted);
}
.theatre-panel-empty .eyebrow { color: var(--gold-deep); margin-bottom: 20px; }
.theatre-panel-empty h3 {
  font-family: var(--serif); font-weight: 400; font-size: 28px;
  color: var(--navy); margin-bottom: 14px;
  line-height: 1.1;
}
.theatre-panel-empty h3 em { font-style: italic; color: var(--gold-deep); }
.theatre-panel-empty p {
  font-size: 14px; line-height: 1.55; max-width: 380px;
}

/* The case card — full-detail, scrollable, styled like the A5 card */
.tc-card {
  display: flex; flex-direction: column;
  min-height: 100%;
}
.tc-header {
  background: var(--navy); color: white;
  padding: 26px 28px 22px;
  position: relative;
  flex-shrink: 0;
}
.tc-header::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--paper-color, var(--gold));
}
.tc-num {
  font-family: var(--sans); font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--paper-color, var(--gold));
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px;
}
.tc-num::before {
  content: ''; display: block; width: 18px; height: 1px;
  background: var(--paper-color, var(--gold));
}
.tc-title {
  font-family: var(--serif); font-weight: 400;
  font-size: 30px; line-height: 1.0; letter-spacing: -0.005em;
  color: white; margin-bottom: 10px;
}
.tc-title em { font-style: italic; color: var(--paper-color, var(--gold)); }
.tc-subtitle {
  font-family: var(--serif); font-style: italic;
  font-size: 13px; color: rgba(250,250,246,0.65);
  margin-bottom: 14px;
  line-height: 1.35;
}
.tc-meta {
  display: flex; gap: 14px; flex-wrap: wrap;
  font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(250,250,246,0.55);
}
.tc-meta span { display: inline-flex; align-items: center; gap: 8px; }
.tc-meta span + span::before {
  content: '';
  width: 3px; height: 3px; border-radius: 50%;
  background: rgba(201,169,97,0.45);
}

.tc-body { padding: 22px 28px; }
.tc-section { margin-bottom: 22px; }
.tc-label {
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold-deep);
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px;
}
.tc-label::before {
  content: ''; display: block; width: 14px; height: 1px; background: var(--gold);
}
.tc-hook {
  font-family: var(--serif); font-style: italic;
  font-size: 17px; line-height: 1.35;
  color: var(--navy);
  letter-spacing: -0.005em;
}
.tc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tc-stat {
  background: white; padding: 11px 13px;
  border-left: 2px solid var(--paper-color, var(--gold));
}
.tc-stat .n {
  font-family: var(--serif); font-size: 20px; line-height: 1;
  color: var(--navy); display: block; margin-bottom: 4px;
}
.tc-stat .n small {
  font-size: 13px; color: var(--gold-deep); font-style: italic; margin-left: 2px;
}
.tc-stat .d {
  font-size: 10px; line-height: 1.4; color: var(--body);
}

.tc-two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.tc-list {
  list-style: none;
  display: flex; flex-direction: column; gap: 6px;
}
.tc-list li {
  font-size: 11px; line-height: 1.45; color: var(--body);
  padding-left: 12px; position: relative;
}
.tc-list li::before {
  content: ''; position: absolute; left: 0; top: 7px;
  width: 6px; height: 1px; background: var(--gold);
}
.tc-list li strong { color: var(--navy); font-weight: 600; }
.tc-col-h {
  font-family: var(--serif); font-weight: 500;
  font-size: 14px; color: var(--navy);
  margin-bottom: 8px; line-height: 1.15;
}

.tc-impacts {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px;
}
.tc-impact-label {
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 6px; padding-bottom: 4px;
  border-bottom: 1px solid rgba(201,169,97,0.30);
}
.tc-impact-body { font-size: 10px; line-height: 1.5; color: var(--body); }
.tc-impact-body strong { color: var(--navy); font-weight: 600; }

.tc-response-body { font-size: 11px; line-height: 1.55; color: var(--body); }
.tc-response-body p + p { margin-top: 6px; }
.tc-response-body strong { color: var(--navy); font-weight: 600; }

.tc-verdict {
  background: var(--navy); color: white;
  padding: 14px 16px;
  border-top: 2px solid var(--paper-color, var(--gold));
}
.tc-verdict .tc-label { color: var(--paper-color, var(--gold)); margin-bottom: 10px; }
.tc-verdict .tc-label::before { background: var(--paper-color, var(--gold)); }
.tc-verdict-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 5px 0;
  border-bottom: 0.5px solid rgba(255,255,255,0.10);
  font-size: 10px;
}
.tc-verdict-row:last-child { border-bottom: 0; }
.tc-verdict-row .lbl {
  font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.tc-verdict-row .val {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: 13px; color: var(--gold);
}
.tc-verdict-row .val.no { color: #E08C8C; }
.tc-verdict-row .val.mid { color: white; }

.tc-actions {
  display: flex; gap: 8px;
  padding: 16px 28px 22px;
  background: var(--cream-2);
  border-top: 1px solid var(--hairline);
  position: sticky; bottom: 0;
}
.tc-btn {
  flex: 1;
  padding: 11px 14px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  background: white;
  border: 1px solid var(--hairline);
  color: var(--navy);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.18s;
}
.tc-btn:hover { background: var(--navy); color: white; border-color: var(--navy); }
.tc-btn.primary { background: var(--navy); color: white; border-color: var(--navy); }
.tc-btn.primary:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }

@media (max-width: 980px) {
  .atlas-theatre {
    grid-template-columns: 1fr;
    grid-template-rows: 52px 50vh 1fr;
  }
  .theatre-globe-host { grid-column: 1; }
  .theatre-panel { grid-column: 1; }
}

/* ════════════════════════════════════════
   AESTHETIC ENHANCEMENTS  (additive layer)
   ════════════════════════════════════════ */

/* Tactile grain across the whole page */
body::after{
  content:''; position:fixed; inset:0; pointer-events:none; z-index:300;
  opacity:.02; mix-blend-mode:multiply;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Hero atmosphere — layered glows + faint starfield behind the content */
.hero::after{
  content:''; position:absolute; inset:0; z-index:0; pointer-events:none;
  background:
    radial-gradient(ellipse 55% 60% at 50% 118%, rgba(29,50,102,.55), transparent 60%),
    radial-gradient(circle at 80% 58%, rgba(201,169,97,.10), transparent 48%),
    radial-gradient(1.4px 1.4px at 14% 24%, rgba(224,198,132,.55), transparent),
    radial-gradient(1px 1px   at 30% 66%, rgba(224,198,132,.40), transparent),
    radial-gradient(1.6px 1.6px at 66% 12%, rgba(224,198,132,.50), transparent),
    radial-gradient(1px 1px   at 88% 38%, rgba(224,198,132,.32), transparent),
    radial-gradient(1.2px 1.2px at 46% 7%, rgba(224,198,132,.42), transparent),
    radial-gradient(1px 1px   at 8% 52%, rgba(224,198,132,.30), transparent),
    radial-gradient(1px 1px   at 94% 70%, rgba(224,198,132,.30), transparent);
}
.hero-inner{ z-index:2; }   /* keep content above the new atmosphere layer */

/* Luminous halo so the planet glows against the navy */
.globe-svg{ position:relative; z-index:1; }
.globe-wrap::before{
  content:''; position:absolute; inset:-7%; border-radius:50%; z-index:0; pointer-events:none;
  background:radial-gradient(circle, rgba(201,169,97,.20) 0%, rgba(201,169,97,.07) 44%, transparent 66%);
  filter:blur(10px);
  animation:atlasGlow 7s ease-in-out infinite alternate;
}
.globe-wrap::after{
  content:''; position:absolute; inset:1%; border-radius:50%; z-index:0; pointer-events:none;
  box-shadow:0 40px 90px -24px rgba(0,0,0,.6), inset 0 0 70px rgba(201,169,97,.06);
}
@keyframes atlasGlow{
  from{ opacity:.75; transform:scale(.99); }
  to  { opacity:1;   transform:scale(1.02); }
}

/* Refined index-card hover — gentle lift + warm shadow */
.index-card{ transition:background .25s, transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s cubic-bezier(.22,1,.36,1); }
.index-card:hover{
  transform:translateY(-5px);
  box-shadow:0 22px 44px -22px rgba(10,23,51,.32), 0 0 0 1px rgba(201,169,97,.25);
}

/* Chips — subtle lift on hover */
.chip{ transition:border-color .2s, background .2s, color .2s, transform .25s var(--ease,cubic-bezier(.22,1,.36,1)), box-shadow .25s; }
.chip:hover{ transform:translateY(-2px); box-shadow:0 8px 20px -12px rgba(201,169,97,.5); }

/* CTA buttons — soft depth */
.topbar-cta{ box-shadow:0 8px 22px -12px rgba(201,169,97,.6); transition:background .2s, transform .25s, box-shadow .25s; }
.topbar-cta:hover{ transform:translateY(-1px); box-shadow:0 12px 26px -12px rgba(201,169,97,.7); }

/* Headline accent — a touch of warm glow on the italic gold phrase */
.hero h1 em{ text-shadow:0 0 30px rgba(201,169,97,.25); }

@media (prefers-reduced-motion: reduce){
  .globe-wrap::before{ animation:none; }
}

/* ════════════════════════════════════════
   PHONE FIXES — case-study cards & theatre
   (≤640px) — stack every internal grid so
   nothing overflows horizontally
   ════════════════════════════════════════ */
@media (max-width: 640px) {

  /* Case card internal grids → single column */
  .tc-stats   { grid-template-columns: 1fr; }
  .tc-two-col { grid-template-columns: 1fr; gap: 16px; }
  .tc-impacts { grid-template-columns: 1fr; gap: 10px; }

  /* Roomier stat blocks now they're full width */
  .tc-stat { padding: 13px 15px; }
  .tc-stat .n { font-size: 22px; }
  .tc-stat .d { font-size: 11px; }

  /* Tighten card chrome for small screens */
  .tc-header   { padding: 20px 18px 18px; }
  .tc-title    { font-size: 25px; line-height: 1.05; }
  .tc-subtitle { font-size: 12.5px; }
  .tc-body     { padding: 18px 18px; }
  .tc-hook     { font-size: 16px; }
  .tc-actions  { padding: 14px 18px 18px; }
  .tc-btn      { padding: 12px 10px; font-size: 10px; letter-spacing: .12em; }

  /* Guard against any horizontal overflow in the scrolling panels */
  .drawer, .theatre-panel { overflow-x: hidden; }
  .drawer { width: 100vw; }

  /* ── THEATRE on a phone: stack globe on top, card/panel below ──
     Works for both "Expand View" (globe-led) and tapping a case
     (card-led). The globe stays usable; the card scrolls beneath. */
  .atlas-theatre {
    grid-template-columns: 1fr;
    grid-template-rows: 52px 42vh 1fr;
  }
  .theatre-globe-host { grid-column: 1; grid-row: 2; padding: 12px; }
  .theatre-panel      { grid-column: 1; grid-row: 3; }

  /* Theatre bar: stop the brand + filter chips overflowing */
  .theatre-bar { grid-column: 1; grid-row: 1; padding: 0 14px; gap: 10px; }
  .theatre-filter-row { display: none; }      /* chips overflow the narrow bar; filter from the hero instead */
  .theatre-brand .name small { display: none; }
  .theatre-brand img { height: 26px; }
  .theatre-brand .name { font-size: 14px; }
  /* keep the globe controls clear of the panel edge */
  .theatre-globe-host .globe-actions { bottom: 10px; }
  .theatre-globe-host .globe-hint { top: 8px; }
}

/* Very small phones — a touch tighter still */
@media (max-width: 380px) {
  .tc-title { font-size: 22px; }
  .tc-header { padding: 18px 16px 16px; }
  .tc-body { padding: 16px 16px; }
  .tc-actions { padding: 12px 16px 16px; gap: 6px; }
}
