@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=JetBrains+Mono:wght@300;400&display=swap');

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

/* ===== THEME SYSTEM ===== */
:root {
  --transition-theme: 0.4s ease;
}

[data-theme="dark"] {
  --bg-primary: #0F0F1A;
  --bg-secondary: #1A1A2E;
  --bg-surface: #16162A;
  --bg-nav: rgba(15, 15, 26, 0.95);
  --gold: #C9A84C;
  --gold-soft: rgba(201, 168, 76, 0.12);
  --gold-hover: rgba(201, 168, 76, 0.06);
  --gold-border: rgba(201, 168, 76, 0.15);
  --gold-border-hover: rgba(201, 168, 76, 0.35);
  --sage: #7C8C6E;
  --copper: #B87333;
  --text-primary: #F5F5F0;
  --text-secondary: #A0A0A0;
  --text-muted: #666;
  --border: rgba(201, 168, 76, 0.08);
  --drawer-bg: #12122A;
  --code-bg: rgba(201, 168, 76, 0.06);
}

[data-theme="light"] {
  --bg-primary: #FAFAF7;
  --bg-secondary: #F0EDE6;
  --bg-surface: #FFFFFF;
  --bg-nav: rgba(250, 250, 247, 0.95);
  --gold: #9E7E2E;
  --gold-soft: rgba(158, 126, 46, 0.1);
  --gold-hover: rgba(158, 126, 46, 0.05);
  --gold-border: rgba(158, 126, 46, 0.2);
  --gold-border-hover: rgba(158, 126, 46, 0.4);
  --sage: #5E6E52;
  --copper: #9A5F2A;
  --text-primary: #1A1A2E;
  --text-secondary: #5A5A5A;
  --text-muted: #888;
  --border: rgba(0, 0, 0, 0.08);
  --drawer-bg: #FFFFFF;
  --code-bg: rgba(158, 126, 46, 0.06);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  overflow: hidden;
  height: 100vh;
  -webkit-font-smoothing: antialiased;
  transition: background var(--transition-theme), color var(--transition-theme);
}

/* ===== LAYOUT: LEFT NAV + CENTER + RIGHT DRAWER ===== */
.app {
  display: grid;
  grid-template-columns: 240px 1fr;
  height: 100vh;
  transition: grid-template-columns 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.app.drawer-open {
  grid-template-columns: 240px 1fr 420px;
}

/* ===== LEFT SIDEBAR ===== */
.sidebar {
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 2rem 0;
  position: relative;
  z-index: 10;
  transition: background var(--transition-theme), border-color var(--transition-theme);
}

.sidebar-logo {
  padding: 0 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.sidebar-logo h1 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--gold);
}

.sidebar-logo span {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0 0.75rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
  text-decoration: none;
  color: var(--text-secondary);
}

.nav-item:hover {
  background: var(--gold-hover);
  color: var(--text-primary);
}

.nav-item.active {
  background: var(--gold-soft);
  border-color: var(--gold-border);
  color: var(--gold);
}

.nav-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.nav-label {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.sidebar-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.theme-toggle {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.05em;
  width: 100%;
  transition: all 0.2s;
}

.theme-toggle:hover {
  border-color: var(--gold-border);
  color: var(--text-primary);
}

.theme-toggle svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.sidebar-credit {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  text-align: center;
  letter-spacing: 0.03em;
}

/* ===== MAIN CONTENT ===== */
.main {
  position: relative;
  overflow: hidden;
}

.panel {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 5rem;
  opacity: 0;
  transform: translateY(30px);
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.panel.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.panel.exit-up {
  opacity: 0;
  transform: translateY(-30px);
}

.panel.exit-down {
  opacity: 0;
  transform: translateY(30px);
}

/* Arrow navigation (up + down) */
.nav-arrow {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--gold);
  opacity: 0.5;
  transition: opacity 0.3s;
  padding: 0.5rem;
}

.nav-arrow:hover { opacity: 1; }

.nav-arrow.down { bottom: 2rem; }
.nav-arrow.up { top: 1.5rem; }

.nav-arrow svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.nav-arrow.down svg {
  animation: arrowBounceDown 2s ease-in-out infinite;
}

.nav-arrow.up svg {
  animation: arrowBounceUp 2s ease-in-out infinite;
}

.nav-arrow.hidden { opacity: 0; pointer-events: none; }

@keyframes arrowBounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

@keyframes arrowBounceUp {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* Page indicator dots */
.page-dots {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  z-index: 5;
}

.page-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.3;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  padding: 0;
}

.page-dot.active {
  background: var(--gold);
  opacity: 1;
  transform: scale(1.3);
}

.panel-content {
  max-width: 680px;
  width: 100%;
}

.panel-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.panel h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.panel h2 em {
  font-style: italic;
  color: var(--gold);
}

.panel p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-secondary);
  font-weight: 300;
  margin-bottom: 1rem;
}

.panel p:last-child { margin-bottom: 0; }

.panel-accent {
  color: var(--gold);
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-style: italic;
  margin-top: 1.5rem;
}

.panel-divider {
  width: 40px;
  height: 1px;
  background: var(--gold);
  opacity: 0.4;
  margin: 2rem 0;
}

/* Detail trigger button */
.detail-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--gold-border);
  border-radius: 4px;
  background: none;
  color: var(--gold);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
}

.detail-trigger:hover {
  background: var(--gold-soft);
  border-color: var(--gold-border-hover);
}

.detail-trigger svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  transition: transform 0.3s;
}

.detail-trigger:hover svg {
  transform: translateX(3px);
}

/* Hero-specific */
.panel.hero-panel {
  text-align: center;
}

.panel.hero-panel .panel-content {
  max-width: 700px;
}

.hero-title {
  margin-bottom: 1.5rem;
  line-height: 1.05;
}

.hero-title .hero-wordmark {
  display: inline-block;
  width: clamp(280px, 36vw, 440px);
  max-width: 100%;
  height: auto;
}
/* Theme-aware wordmark: white letters vanish on the light background, so swap to
   the dark-letter variant in light mode. Both keep the sacred red dot. */
.hero-title .hero-wordmark--light { display: none; }
[data-theme="light"] .hero-title .hero-wordmark--dark { display: none; }
[data-theme="light"] .hero-title .hero-wordmark--light { display: inline-block; }

.hero-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

/* ===== ELEVATOR PITCH TRIGGER (Hero panel) ===== */
.elevator-pitch-trigger {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 2rem;
  cursor: pointer;
}
.elevator-thumb {
  position: relative;
  width: 180px;
  height: 100px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(201, 168, 76, 0.25);
  transition: all 0.3s ease;
}
.elevator-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.elevator-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  background: rgba(201, 168, 76, 0.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(201, 168, 76, 0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.elevator-play-icon svg {
  width: 14px;
  height: 14px;
  fill: rgba(255,255,255,0.9);
  margin-left: 2px;
}
.elevator-thumb:hover {
  border-color: rgba(201, 168, 76, 0.5);
  transform: scale(1.03);
}
.elevator-thumb:hover .elevator-play-icon {
  background: rgba(201, 168, 76, 0.35);
  border-color: rgba(201, 168, 76, 0.6);
}
.elevator-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-top: 0.6rem;
  text-transform: uppercase;
}

/* ===== ELEVATOR PITCH FULLSCREEN OVERLAY ===== */
.elevator-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 10001;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.6s ease;
}
.elevator-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}
/* Dual-screen pair inside the fullscreen overlay.
   The wrapper takes the two films' COMBINED aspect ratio, so it scales to fit
   whatever the viewport is; each film is then height:100%/width:auto, keeping
   its native shape. Their widths sum to exactly the wrapper width, which is why
   there are no bars between or beside them and nothing is cropped.
   0.5625 = 1080/1920 (presenter), 1.7778 = 1280/720 (slides). If either film is
   ever re-cut at a different aspect, update this sum or bars will appear. */
.elevator-pair {
  display: flex;
  align-items: stretch;
  aspect-ratio: 2.3403;
  max-width: 100%;
  max-height: 100%;
  margin: auto;
}
.elevator-pair video {
  height: 100%;
  width: auto;
  display: block;
  object-fit: contain;
}
@media (max-aspect-ratio: 12/10) {
  /* Portrait-ish viewports: stack so the presenter stays legible. */
  .elevator-pair { flex-direction: column; aspect-ratio: auto; height: 100%; width: 100%; }
  .elevator-pair video { height: auto; width: 100%; }
}
.elevator-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  opacity: 0;
  animation: elevatorCloseAppear 0.4s ease 2s forwards;
}
.elevator-close:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}
@keyframes elevatorCloseAppear {
  to { opacity: 1; }
}

/* ===== EMAIL GATE ===== */
.app[data-gated="true"] .sidebar { display: none; }
.app[data-gated="true"] { grid-template-columns: 1fr; }
.app[data-gated="true"] .nav-arrow,
.app[data-gated="true"] .page-dots { display: none; }
.app[data-gated="true"] .panel:not(.hero-panel) { display: none; }
.app:not([data-gated="true"]) .gate-capture { display: none; }

.gate-capture { margin-top: 2.5rem; }

.gate-input-wrap {
  display: flex;
  max-width: 420px;
  margin: 0 auto;
  border: 1px solid var(--gold-border);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.3s;
}
.gate-input-wrap:focus-within { border-color: var(--gold); }

.gate-email-input {
  flex: 1;
  padding: 0.85rem 1rem;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  outline: none;
}
.gate-email-input::placeholder { color: var(--text-muted); }
.gate-email-input:disabled { opacity: 0.5; }

.gate-submit-btn {
  padding: 0.85rem 1.2rem;
  background: var(--gold);
  border: none;
  color: var(--bg-primary);
  cursor: pointer;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
}
.gate-submit-btn:hover { opacity: 0.85; }
.gate-submit-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.gate-terms-note {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 1rem;
  letter-spacing: 0.02em;
}
.gate-tc-link {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.gate-tc-link:hover { opacity: 0.8; }

.gate-message {
  margin-top: 1rem;
  font-size: 0.85rem;
  min-height: 1.5em;
  transition: opacity 0.3s;
}
.gate-message.success { color: var(--gold); }
.gate-message.error { color: #e74c3c; }

/* T&C Modal */
.tc-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.tc-modal-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}
.tc-modal {
  background: var(--bg-secondary);
  border: 1px solid var(--gold-border);
  border-radius: 6px;
  max-width: 680px;
  width: 92%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.tc-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--gold-border);
}
.tc-modal-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}
.tc-modal-print {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.tc-modal-print svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}
.tc-modal-print:hover {
  border-color: var(--gold-border);
  color: var(--text-primary);
}
.tc-modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0 0.3rem;
  line-height: 1;
}
.tc-modal-close:hover { color: var(--text-primary); }

@media print {
  @page {
    size: A4 portrait;
    margin: 0.6in 0.75in 0 0.75in;
  }
  body > *:not(.tc-modal-overlay) { display: none !important; }
  .tc-modal-overlay {
    position: static !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    background: #fff !important;
    display: block !important;
  }
  .tc-modal {
    position: static !important;
    max-width: 100% !important;
    max-height: none !important;
    width: 100% !important;
    border: none !important;
    box-shadow: none !important;
    background: #fff !important;
    border-radius: 0 !important;
  }
  .tc-modal-header { display: none !important; }
  .tc-print-doc-title {
    display: block !important;
    font-family: 'Playfair Display', serif !important;
    font-size: 18pt !important;
    font-weight: 700 !important;
    color: #1e3a5f !important;
    border-bottom: 2px solid #c9a227 !important;
    padding-bottom: 0.5rem !important;
    margin-bottom: 1.2rem !important;
  }
  .tc-modal-body {
    max-height: none !important;
    overflow: visible !important;
    color: #1a1a2e !important;
    font-size: 9pt !important;
    line-height: 1.6 !important;
  }
  .tc-modal-body h2 {
    color: #1e3a5f !important;
    font-size: 11pt !important;
    margin-top: 0.8rem !important;
    margin-bottom: 0.3rem !important;
  }
  .tc-modal-body h3 {
    color: #333 !important;
    font-size: 10pt !important;
    margin-top: 0.5rem !important;
    margin-bottom: 0.2rem !important;
  }
  .tc-modal-body p { margin: 0 0 0.5rem !important; }
  .tc-modal-body ul { margin: 0 0 0.5rem !important; padding-left: 1.2rem !important; }
  .tc-modal-body li { margin-bottom: 0.2rem !important; }
  .tc-section {
    break-inside: avoid !important;
    page-break-inside: avoid !important;
    break-before: auto !important;
    margin-top: 0.4rem !important;
  }
  .tc-modal-body {
    padding-bottom: 0.8in !important;
  }
  p.tc-last-updated {
    margin-top: 1.5rem !important;
    padding-top: 0.8rem !important;
    border-top: 1px solid #ccc !important;
    font-size: 8pt !important;
    color: #999 !important;
  }
  .tc-print-footer {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0.3rem 0 !important;
    border-top: 1px solid #ccc !important;
    font-size: 7pt !important;
    color: #999 !important;
    font-family: 'Inter', sans-serif !important;
    position: fixed;
    bottom: 0.2in;
    left: 0.75in;
    right: 0.75in;
    background: #fff;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}
@media not print {
  .tc-print-doc-title { display: none; }
  .tc-print-footer { display: none; }
}
@media screen {
  .tc-section { border-bottom: 1px solid var(--border); padding-bottom: 0.8rem; margin-bottom: 0.8rem; }
  .tc-last-updated { border-bottom: none; }
}
.tc-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.7;
}
.tc-modal-body h2 {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 1.5rem 0 0.5rem;
}
.tc-modal-body h2:first-child { margin-top: 0; }
.tc-modal-body h3 {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 1rem 0 0.4rem;
}
.tc-modal-body p { margin: 0 0 0.8rem; }
.tc-modal-body ul { padding-left: 1.2rem; margin: 0 0 0.8rem; }
.tc-modal-body li { margin-bottom: 0.3rem; }
.tc-modal-body hr {
  border: none;
  border-top: 1px solid var(--gold-border);
  margin: 1.2rem 0;
}

/* Stat cards (used in Problem panel) */
.stat-row {
  display: flex;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.stat-card {
  flex: 1;
  padding: 1.25rem;
  border: 1px solid var(--gold-border);
  border-radius: 2px;
  background: var(--gold-hover);
  transition: border-color 0.3s;
}

.stat-card:hover {
  border-color: var(--gold-border-hover);
}

.stat-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.8rem;
  color: var(--gold);
  font-weight: 300;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* Connect panel */
.connect-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.connect-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s;
  border-radius: 2px;
}

.connect-link.primary {
  background: var(--gold);
  color: var(--bg-primary);
}

.connect-link.primary:hover { opacity: 0.9; }

.connect-link.secondary {
  border: 1px solid var(--gold-border);
  color: var(--gold);
}

.connect-link.secondary:hover {
  border-color: var(--gold-border-hover);
  background: var(--gold-hover);
}

/* ── N4S Demo hero CTA + inline capture (Connect panel) ── */
.demo-cta { margin-top: 2.25rem; padding-top: 2rem; border-top: 1px solid var(--gold-border); }
.demo-kicker { font-family: 'JetBrains Mono', monospace; font-size: 0.66rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.95rem; }
.demo-row { display: flex; align-items: center; gap: 1.15rem; flex-wrap: wrap; }
.demo-btn { display: inline-flex; align-items: center; gap: 0.6rem; padding: 1.05rem 2.3rem; background: var(--gold); color: var(--bg-primary); border: 0; border-radius: 2px; font-family: 'Inter', sans-serif; font-size: 0.86rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; transition: all 0.3s; }
.demo-btn:hover { opacity: 0.92; }
.demo-explain { font-size: 0.85rem; color: var(--text-muted); max-width: 32ch; line-height: 1.5; }
.demo-capture { margin-top: 1.5rem; max-width: 30rem; }
.demo-input-wrap { display: flex; border: 1px solid var(--gold-border-hover, rgba(201,168,76,0.5)); border-radius: 3px; overflow: hidden; }
.demo-input-wrap input { flex: 1; background: transparent; border: 0; padding: 0.85rem 1rem; color: var(--text-primary); font-family: 'Inter', sans-serif; font-size: 0.95rem; }
.demo-input-wrap input:focus { outline: none; }
.demo-input-wrap button { background: var(--gold); color: var(--bg-primary); border: 0; padding: 0 1.3rem; font-family: 'Inter', sans-serif; font-weight: 700; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; }
.demo-tc-note { font-size: 0.8rem; color: var(--text-muted); line-height: 1.6; margin-top: 0.8rem; }
.demo-tc-note a { color: var(--gold); }
.demo-msg { font-size: 0.85rem; margin-top: 0.7rem; min-height: 1.2em; }
.demo-msg.ok { color: var(--gold); }
.demo-msg.err { color: #c0655a; }

/* ===== RIGHT DRAWER ===== */
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  background: var(--drawer-bg);
  border-left: 1px solid var(--border);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background var(--transition-theme);
  z-index: 20;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.drawer.open {
  transform: translateX(0);
}

.drawer-header {
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: var(--drawer-bg);
  z-index: 2;
}

.drawer-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.drawer-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.2s;
}

.drawer-close:hover { color: var(--text-primary); }

.drawer-close svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.drawer-body {
  padding: 1.75rem;
  flex: 1;
}

.drawer-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

.drawer-body p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-primary);
  font-weight: 300;
  margin-bottom: 1rem;
}

.drawer-body p:last-child { margin-bottom: 0; }

/* Module cards in drawer */
.module-card {
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-bottom: 0.75rem;
  transition: border-color 0.3s;
}

.module-card:hover {
  border-color: var(--gold-border);
}

.module-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.module-card-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  background: var(--gold-soft);
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
}

.module-card-name {
  font-size: 0.85rem;
  font-weight: 500;
}

.module-card p {
  font-size: 0.8rem;
  margin-bottom: 0;
}

.stage-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stage-label:first-child { margin-top: 0; }

.stage-dot-sm {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.stage-dot-sm.discovery { background: var(--gold); }
.stage-dot-sm.strategy { background: var(--sage); }
.stage-dot-sm.execution { background: var(--copper); }

/* Parker visual in drawer */
.parker-orb-container {
  display: flex;
  justify-content: center;
  padding: 2rem 0;
}

.parker-orb {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: url('../images/parker-logo-opt.png') center/contain no-repeat;
  border: 1px solid var(--gold-border);
  animation: orbPulse 4s ease-in-out infinite;
  position: relative;
}

.parker-orb::after {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  border: 1px solid var(--gold-border);
  opacity: 0.4;
  animation: orbPulse 4s 1s ease-in-out infinite;
}

@keyframes orbPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.04); opacity: 0.7; }
}

/* Journey steps in drawer */
.journey-step {
  padding: 1.25rem;
  border-left: 2px solid var(--border);
  margin-left: 0.5rem;
  margin-bottom: 1.5rem;
  transition: border-color 0.3s;
}

.journey-step:hover {
  border-left-color: var(--gold);
}

.step-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.journey-step h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.journey-step p {
  font-size: 0.82rem;
}

/* Drawer content sections — hidden by default */
.drawer-content { display: none; }
.drawer-content.active { display: block; }

/* ===== RFI FORM (drawer) ===== */
.rfi-form { display: flex; flex-direction: column; gap: 1.2rem; }
.rfi-field-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.rfi-input, .rfi-textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: transparent;
  border: 1px solid var(--gold-border);
  border-radius: 3px;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.3s;
}
.rfi-input:focus, .rfi-textarea:focus { border-color: var(--gold); }
.rfi-input::placeholder, .rfi-textarea::placeholder { color: var(--text-muted); }
.rfi-textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.rfi-divider {
  text-align: center;
  padding: 1.4rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 0.2rem 0;
}
.rfi-divider-thanks {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.rfi-divider-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.04em;
}
.rfi-submit {
  padding: 0.8rem 1.6rem;
  background: var(--gold);
  color: var(--bg-primary);
  border: none;
  border-radius: 3px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.3s;
  align-self: flex-start;
}
.rfi-submit:hover { opacity: 0.85; }
.rfi-submit:disabled { opacity: 0.4; cursor: default; }
.rfi-error {
  font-size: 0.8rem;
  color: #f87171;
  display: none;
}
.rfi-success {
  text-align: center;
  padding: 2rem 0;
  display: none;
}
.rfi-success.visible { display: block; }
.rfi-success-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(52,211,153,0.1);
  border: 1px solid rgba(52,211,153,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.rfi-success-icon svg { width: 22px; height: 22px; stroke: #34d399; fill: none; stroke-width: 2; }
.rfi-success h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}
.rfi-success p {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.rfi-reset-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--gold);
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.06em;
}
.rfi-reset-link:hover { text-decoration: underline; }

/* ===== SCROLLBAR (drawer only) ===== */
.drawer::-webkit-scrollbar {
  width: 4px;
}

.drawer::-webkit-scrollbar-track {
  background: transparent;
}

.drawer::-webkit-scrollbar-thumb {
  background: var(--gold-border);
  border-radius: 2px;
}

/* ===== D360 PANEL ===== */
.panel.d360-panel {
  align-items: flex-start;
  overflow-y: auto;
  padding: 3rem 3rem 4rem;
}

.panel.d360-panel::-webkit-scrollbar { width: 4px; }
.panel.d360-panel::-webkit-scrollbar-track { background: transparent; }
.panel.d360-panel::-webkit-scrollbar-thumb { background: var(--gold-border); border-radius: 2px; }

.d360-wrap {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
}

.d360-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.d360-brand {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.d360-brand-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.d360-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.d360-header h2 em {
  font-style: italic;
  color: var(--gold);
}

.d360-quote {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--gold);
  border-left: 2px solid var(--gold-border);
  padding-left: 1.25rem;
  margin: 0 auto;
  max-width: 600px;
  line-height: 1.6;
  opacity: 0.8;
  text-align: left;
}

/* Category headings */
.d360-category {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.d360-category::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Featured hero card */
.d360-featured {
  border: 1px solid var(--gold-border);
  border-radius: 4px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  background: var(--bg-surface);
  transition: all 0.3s;
}

.d360-featured:hover {
  border-color: var(--gold-border-hover);
}

.d360-featured-visual {
  position: relative;
  overflow: hidden;
  background: #0a0a14;
}

.d360-featured-visual .d360-sizer {
  display: block;
  width: 100%;
  height: auto;
}

.d360-featured-poster {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  transition: opacity 0.4s;
  z-index: 2;
  cursor: pointer;
}

.d360-featured-poster::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 26, 0.55);
  transition: background 0.3s;
}

.d360-featured:hover .d360-featured-poster::before {
  background: rgba(15, 15, 26, 0.45);
}

.d360-featured-poster > * {
  position: relative;
  z-index: 1;
}

.d360-featured-poster.hidden {
  opacity: 0;
  pointer-events: none;
}

.d360-inline-video {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  display: none;
  z-index: 3;
}

.d360-inline-video.active {
  display: block;
}

.d360-pulse {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: orbPulse 4s ease-in-out infinite;
  position: relative;
}

.d360-pulse::before {
  content: '';
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 1px solid var(--gold-border);
  opacity: 0.3;
  animation: orbPulse 4s 1s ease-in-out infinite;
}

.d360-pulse svg {
  width: 26px;
  height: 26px;
  fill: var(--gold);
  stroke: none;
}

.d360-waveform {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-top: 1.75rem;
  height: 28px;
}

.d360-waveform .bar {
  width: 3px;
  background: var(--gold);
  border-radius: 1px;
  opacity: 0.35;
  animation: d360wave 1.8s ease-in-out infinite;
}

@keyframes d360wave {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.55; }
}

.d360-featured-body {
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.d360-type-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  margin-bottom: 0.85rem;
}

.d360-type-badge.podcast { background: rgba(201, 168, 76, 0.15); color: var(--gold); }
.d360-type-badge.video { background: rgba(124, 140, 110, 0.2); color: var(--sage); }
.d360-type-badge.interactive { background: rgba(100, 140, 220, 0.15); color: #7CA0E0; }
.d360-type-badge.timelapse { background: rgba(180, 140, 80, 0.15); color: #D4A855; }

/* ===== TIMELAPSE FEATURED PANEL ===== */
.timelapse-featured {
  border: 1px solid var(--gold-border);
  border-radius: 4px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  background: var(--bg-surface);
  transition: all 0.3s;
}
.timelapse-featured:hover {
  border-color: var(--gold-border-hover);
}

.timelapse-visual {
  position: relative;
  overflow: hidden;
  background: #0a0a14;
}
.timelapse-visual .timelapse-sizer {
  display: block;
  width: 100%;
  height: auto;
}
.timelapse-poster {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  transition: opacity 0.4s;
  z-index: 2;
  cursor: pointer;
}
.timelapse-poster::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 26, 0.55);
  transition: background 0.3s;
}
.timelapse-featured:hover .timelapse-poster::before {
  background: rgba(15, 15, 26, 0.45);
}
.timelapse-poster > * {
  position: relative;
  z-index: 1;
}
.timelapse-poster.hidden {
  opacity: 0;
  pointer-events: none;
}
.timelapse-video {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  display: none;
  z-index: 3;
}
.timelapse-video.active {
  display: block;
}

.timelapse-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all 0.2s;
  font-family: inherit;
}
.timelapse-close-btn:hover {
  background: rgba(0,0,0,0.8);
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}
.timelapse-close-btn.visible {
  display: flex;
}

/* Deep Dive section collapse */
.deepdive-section {
  overflow: hidden;
  max-height: 800px;
  opacity: 1;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.35s ease,
              margin 0.4s ease;
}
.deepdive-section.collapsed {
  max-height: 0;
  opacity: 0;
  margin-bottom: -0.5rem;
  pointer-events: none;
}

/* Timelapse section collapse */
.timelapse-section {
  overflow: hidden;
  max-height: 800px;
  opacity: 1;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.35s ease,
              margin 0.4s ease;
}
.timelapse-section.collapsed {
  max-height: 0;
  opacity: 0;
  margin-top: -0.5rem;
  pointer-events: none;
}
.timelapse-section-close {
  background: none;
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-muted);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-family: inherit;
  line-height: 1;
}
.timelapse-section-close:hover {
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
}

/* Timelapse body — right side with thumbnails */
.timelapse-body {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
}
.timelapse-body .d360-type-badge {
  margin-bottom: 0.6rem;
}
.timelapse-thumb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  flex: 1;
}
.timelapse-thumb {
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s;
}
.timelapse-thumb:hover {
  border-color: var(--gold-border-hover);
  transform: scale(1.02);
}
.timelapse-thumb.active {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}
.timelapse-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16/10;
}
.timelapse-thumb-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.25rem 0.45rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
}

@media (max-width: 900px) {
  .timelapse-featured { grid-template-columns: 1fr; }
  .timelapse-poster { padding: 2rem; }
}

/* ===== STRATEGIC BRIEFING FEATURED PANEL ===== */
.briefing-section {
  overflow: hidden;
  max-height: 800px;
  opacity: 1;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.35s ease,
              margin 0.4s ease;
}
.briefing-section.collapsed {
  max-height: 0;
  opacity: 0;
  margin-top: -0.5rem;
  pointer-events: none;
}
.briefing-section-close {
  background: none;
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-muted);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-family: inherit;
  line-height: 1;
}
.briefing-section-close:hover {
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
}
.briefing-featured {
  border: 1px solid var(--gold-border);
  border-radius: 4px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  background: var(--bg-surface);
  transition: all 0.3s;
}
.briefing-featured:hover {
  border-color: var(--gold-border-hover);
}
.briefing-featured .reader-nav {
  min-height: 500px;
}
.briefing-featured .reader-content {
  min-height: 500px;
  max-height: 580px;
}
@media (max-width: 900px) {
  .briefing-featured { grid-template-columns: 1fr; }
  .briefing-featured .reader-nav { min-height: 300px; }
  .briefing-featured .reader-content { min-height: 300px; max-height: 400px; }
}

/* ===== INFOGRAPHIC SECTION ===== */
.infographic-section {
  overflow: hidden;
  max-height: 800px;
  opacity: 1;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.35s ease,
              margin 0.4s ease;
}
.infographic-section.collapsed {
  max-height: 0;
  opacity: 0;
  margin-top: -0.5rem;
  pointer-events: none;
}
.infographic-section-close {
  background: none;
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-muted);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-family: inherit;
  line-height: 1;
}
.infographic-section-close:hover {
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
}
.infographic-featured {
  border: 1px solid var(--gold-border);
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-surface);
  transition: all 0.3s;
}
.infographic-featured:hover {
  border-color: var(--gold-border-hover);
}
.infographic-featured img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== VMX EXPLAINER VIDEO SECTION ===== */
.vmx-section {
  overflow: hidden;
  max-height: 800px;
  opacity: 1;
  transition: max-height 0.5s ease,
              opacity 0.35s ease,
              margin 0.4s ease;
}
.vmx-section.collapsed {
  max-height: 0;
  opacity: 0;
  margin-top: -0.5rem;
  pointer-events: none;
}
.vmx-section-close {
  background: none;
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-muted);
  font-size: 1.15rem;
  cursor: pointer;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s;
  padding: 0;
  font-family: inherit;
  line-height: 1;
}
.vmx-section-close:hover {
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
}
.vmx-featured {
  border: 1px solid var(--gold-border);
  border-radius: 4px;
  overflow: hidden;
  background: #000;
  transition: all 0.3s;
}
.vmx-featured:hover {
  border-color: var(--gold-border-hover);
}
.vmx-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.vmx-poster {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  background: linear-gradient(135deg, #0a0a0f 0%, #111118 100%);
}
.vmx-poster.hidden { display: none; }
.vmx-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}
.vmx-close-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  font-size: 1.2rem;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  cursor: pointer;
  z-index: 3;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.vmx-close-btn.visible { display: flex; }
.vmx-close-btn:hover {
  background: rgba(0,0,0,0.85);
  border-color: rgba(255,255,255,0.3);
}

/* ===== SLIDESHOW FEATURED PANEL ===== */
.slideshow-section {
  overflow: hidden;
  max-height: 800px;
  opacity: 1;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.35s ease,
              margin 0.4s ease;
}
.slideshow-section.collapsed {
  max-height: 0;
  opacity: 0;
  margin-bottom: -0.5rem;
  pointer-events: none;
}
.slideshow-featured {
  border: 1px solid var(--gold-border);
  border-radius: 4px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  background: var(--bg-surface);
  transition: all 0.3s;
}
.slideshow-featured:hover {
  border-color: var(--gold-border-hover);
}
.slideshow-panel {
  position: relative;
  overflow: hidden;
  background: #0a0a14;
}
.slideshow-panel .slideshow-sizer {
  display: block;
  width: 100%;
  height: auto;
}
.slideshow-poster {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  transition: opacity 0.4s;
  z-index: 2;
  cursor: pointer;
}
.slideshow-poster::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 26, 0.5);
  transition: background 0.3s;
}
.slideshow-featured:hover .slideshow-poster::before {
  background: rgba(15, 15, 26, 0.4);
}
.slideshow-poster > * {
  position: relative;
  z-index: 1;
}
.slideshow-poster.hidden {
  opacity: 0;
  pointer-events: none;
}
.slideshow-video {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  display: none;
  z-index: 3;
}
.slideshow-video.active {
  display: block;
}
.slideshow-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all 0.2s;
  font-family: inherit;
}
.slideshow-close-btn:hover {
  background: rgba(0,0,0,0.8);
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}
.slideshow-close-btn.visible {
  display: flex;
}
.slideshow-section-close {
  background: none;
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-muted);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-family: inherit;
  line-height: 1;
}
.slideshow-section-close:hover {
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
}
.slideshow-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 4;
}

/* Download PDF link in card */
.d360-card-download {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.65rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s;
}
.d360-card-download:hover {
  color: var(--text-primary);
}
.d360-card-download svg {
  width: 10px;
  height: 10px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

/* ===== ELEVATOR PITCH DUAL-SCREEN =====
   Same construction as .slideshow-featured (it reuses every .slideshow-* child
   class), with ONE difference that is the whole point of it:

   The Framework Overview pairs two 16:9 videos, so 1fr 1fr gives equal heights
   for free. The Elevator pair does not — the presenter film is 1080x1920 (9:16)
   and the slides are 1280x720 (16:9). Under 1fr 1fr the portrait film would be
   object-fit:cover'd into a 16:9 box and cropped to a narrow vertical slice.

   So the columns are weighted by each film's OWN aspect ratio. Each panel's
   sizer is that film's poster at width:100%;height:auto, so panel height =
   columnWidth / aspect — and because the columns sit in the same proportion as
   the aspects, both heights resolve to the same value. Equal height, no
   letterboxing, no cropping, without re-encoding either file.

   Do not "tidy" these to 1fr 1fr. If either film is re-cut at a different
   aspect, change these two numbers to match or the cropping returns. */
.elevator-featured {
  grid-template-columns: 0.5625fr 1.7778fr;  /* 1080/1920 : 1280/720 */
}

@media (max-width: 900px) {
  .slideshow-featured { grid-template-columns: 1fr; }
  .elevator-featured  { grid-template-columns: 1fr; }
}

/* ===== MINDMAP TWO-STAGE REVEAL (Option C) ===== */
.mindmap-card {
  position: relative;
  overflow: hidden;
}
.mindmap-card-static {
  transition: opacity 0.35s ease;
}
.mindmap-card.previewing .mindmap-card-static {
  opacity: 0;
}
.mindmap-card-preview {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  overflow: hidden;
  border-radius: 4px;
}
.mindmap-card.previewing .mindmap-card-preview {
  opacity: 1;
  pointer-events: auto;
}
.mindmap-card-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Mindmap expand container */
.mindmap-expand-container {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
  opacity: 0;
  margin-top: 0;
}
.mindmap-expand-container.open {
  max-height: 600px;
  opacity: 1;
  margin-top: 1rem;
}
.mindmap-expand-inner {
  background: #06060e;
  border: 1px solid rgba(100, 140, 220, 0.2);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}
.mindmap-expand-inner iframe {
  width: 100%;
  height: 500px;
  border: none;
  display: block;
}
.mindmap-close-btn {
  position: absolute;
  top: 10px;
  right: 12px;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.6);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.2s;
  font-family: inherit;
}
.mindmap-close-btn:hover {
  background: rgba(0,0,0,0.8);
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}
.d360-type-badge.presentation { background: rgba(184, 115, 51, 0.2); color: var(--copper); }
.d360-type-badge.pdf { background: rgba(160, 160, 160, 0.1); color: var(--text-secondary); }
.d360-type-badge.whitepaper { background: rgba(201, 168, 76, 0.1); color: var(--gold); }

.d360-type-badge svg {
  width: 10px;
  height: 10px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.d360-featured-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.d360-featured-body p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
  font-weight: 300;
  margin-bottom: 0.85rem;
}

.d360-cta-group {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.d360-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-border);
  padding: 0.55rem 1.1rem;
  border-radius: 4px;
  background: none;
  cursor: pointer;
  transition: all 0.3s;
}

.d360-cta:hover {
  background: var(--gold-soft);
  border-color: var(--gold-border-hover);
}

.d360-cta svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
  stroke: none;
}

.d360-cta.watch {
  color: var(--text-primary);
  border-color: var(--border);
}

.d360-cta.watch:hover {
  border-color: var(--gold-border);
  color: var(--gold);
}

.d360-cta.watch svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

/* Compact grid for supporting content */
.d360-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.85rem;
}

.d360-card {
  padding: 1.15rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
  background: transparent;
}

.d360-card:hover {
  border-color: var(--gold-border);
  background: var(--gold-hover);
}

.d360-card h4 {
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.d360-card p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
  font-weight: 300;
}

.d360-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.65rem;
  font-size: 0.6rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

/* D360 audio player overlay */
.d360-audio-overlay {
  display: none;
  position: fixed;
  bottom: 1.5rem;
  left: 260px;
  right: 1.5rem;
  z-index: 25;
  background: var(--bg-secondary);
  border: 1px solid var(--gold-border);
  border-radius: 6px;
  padding: 0.85rem 1.25rem;
  align-items: center;
  gap: 1rem;
  transition: background var(--transition-theme);
}

.d360-audio-overlay.visible { display: flex; }

.d360-audio-overlay .d360-play-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--gold-border);
  background: var(--gold-soft);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.3s;
}

.d360-audio-overlay .d360-play-btn:hover {
  background: var(--gold);
  color: var(--bg-primary);
}

.d360-audio-overlay .d360-play-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  stroke: none;
}

.d360-audio-info {
  flex: 1;
  min-width: 0;
}

.d360-audio-info .d360-audio-title {
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.d360-audio-progress {
  width: 100%;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  margin-top: 0.4rem;
  cursor: pointer;
  position: relative;
}

.d360-audio-progress-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 2px;
  width: 0%;
  transition: width 0.3s;
}

.d360-audio-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.d360-audio-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.2rem;
  flex-shrink: 0;
  transition: color 0.2s;
}

.d360-audio-close:hover { color: var(--text-primary); }

.d360-audio-close svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  /* Sidebar → slim fixed top bar on mobile (section nav is handled by the up/down
     arrows + page dots). Keeps Terms / theme toggle / Log Out / Admin reachable,
     which a plain display:none removed entirely. */
  .sidebar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0; left: 0; right: 0;
    width: auto;
    height: auto;
    padding: 0.4rem 0.8rem;
    background: var(--bg-nav);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-right: none;
    border-bottom: 1px solid var(--border);
    z-index: 200;
  }
  .sidebar-nav { display: none; }
  .sidebar-logo { margin: 0; padding: 0; border: none; }
  .sidebar-logo span { display: none; }
  .sidebar-logo h1 { margin: 0; font-size: 1.05rem; }
  .sidebar-footer {
    display: flex; flex-direction: row; align-items: center;
    gap: 0.15rem; margin: 0; padding: 0; border: none;
  }
  .sidebar-footer .sidebar-credit { display: none; }
  .sidebar-footer .theme-toggle {
    margin: 0 !important; padding: 0.45rem;
  }
  .sidebar-footer .theme-toggle span { display: none; }
  .panel { padding: 3rem 1.5rem; }
  .drawer { width: 100%; }
  .stat-row { flex-direction: column; }
  .d360-featured { grid-template-columns: 1fr; }
  .d360-featured-poster { padding: 2rem; }
  .d360-audio-overlay { left: 1rem; }
  .inline-reader { grid-template-columns: 1fr; }
  .reader-nav { min-height: 300px; }
  .reader-content { min-height: 300px; max-height: 400px; }
}

/* ════════════════════════════════════════════════════════════
   INLINE BRIEFING READER (D360 Technical Documents)
════════════════════════════════════════════════════════════ */
.d360-briefing-card {
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.d360-briefing-card:hover {
  border-color: var(--gold-border-hover);
  background: var(--gold-hover);
}
.d360-briefing-card.active-reader {
  border-color: var(--gold);
  background: var(--gold-hover);
}
.d360-briefing-card-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.d360-briefing-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.d360-briefing-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.2;
}
.d360-briefing-card h4 {
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.1rem;
  line-height: 1.3;
}
.d360-briefing-card .d360-card-meta {
  margin-top: 0;
}
.d360-briefing-action {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
  transition: gap 0.2s;
}
.d360-briefing-card:hover .d360-briefing-action { gap: 0.6rem; }
.d360-briefing-action svg {
  width: 14px;
  height: 14px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
  transition: transform 0.3s;
}
.d360-briefing-card.active-reader .d360-briefing-action svg {
  transform: rotate(90deg);
}
.d360-briefing-card.active-reader .briefing-label-read { display: none; }
.d360-briefing-card.active-reader .briefing-label-close { display: inline; }
.d360-briefing-action .briefing-label-close { display: none; }

/* Inline reader container */
.inline-reader {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-surface);
  border: 1px solid var(--gold-border);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
  max-height: 0;
  opacity: 0;
  transform: translateY(-8px);
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.35s ease,
              transform 0.35s ease;
  pointer-events: none;
}
.inline-reader.open {
  max-height: 2000px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Left nav pane */
.reader-nav {
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  min-height: 500px;
}
.reader-nav-header {
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid var(--border);
}
.reader-nav-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.1rem;
}
.reader-nav-subtitle {
  font-size: 0.62rem;
  color: var(--text-muted);
}
.reader-nav-sections {
  flex: 1;
  overflow-y: auto;
  padding: 0.6rem 0.5rem;
}
.reader-nav-sections::-webkit-scrollbar { width: 3px; }
.reader-nav-sections::-webkit-scrollbar-track { background: transparent; }
.reader-nav-sections::-webkit-scrollbar-thumb { background: var(--gold-border); border-radius: 2px; }
.reader-section-item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.55rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 0.1rem;
  border: 1px solid transparent;
}
.reader-section-item:hover { background: var(--gold-hover); }
.reader-section-item.active {
  background: var(--gold-soft);
  border-color: var(--gold-border);
}
.reader-section-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.52rem;
  color: var(--gold);
  margin-top: 0.2rem;
  width: 14px;
  flex-shrink: 0;
}
.reader-section-title {
  font-size: 0.75rem;
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 0.05rem;
}
.reader-section-desc {
  font-size: 0.62rem;
  color: var(--text-muted);
  line-height: 1.35;
}
.reader-nav-progress {
  padding: 0.65rem 1.25rem;
  border-top: 1px solid var(--border);
}
.reader-progress-bar {
  height: 2px;
  background: var(--border);
  border-radius: 1px;
  overflow: hidden;
  margin-bottom: 0.35rem;
}
.reader-progress-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 1px;
  transition: width 0.3s;
}
.reader-progress-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.48rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

/* Right content pane */
.reader-content {
  overflow-y: auto;
  padding: 1.75rem 2rem;
  background: var(--bg-primary);
  min-height: 500px;
  max-height: 580px;
}
.reader-content::-webkit-scrollbar { width: 4px; }
.reader-content::-webkit-scrollbar-track { background: transparent; }
.reader-content::-webkit-scrollbar-thumb { background: var(--gold-border); border-radius: 2px; }

/* Document page rendering */
.reader-doc-page {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}
.reader-doc-page h1 {
  font-family: Georgia, serif;
  font-size: 1.15rem;
  font-weight: bold;
  color: #1e3a5f;
  margin-bottom: 0.65rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #c9a227;
}
.reader-doc-page h2 {
  font-family: Georgia, serif;
  font-size: 0.9rem;
  font-weight: bold;
  color: #2c5282;
  margin: 1.1rem 0 0.4rem;
}
.reader-doc-page p {
  font-size: 0.8rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 0.45rem;
}
.reader-doc-page ul {
  margin: 0.35rem 0 0.6rem 1.2rem;
}
.reader-doc-page li {
  font-size: 0.78rem;
  line-height: 1.55;
  color: #444;
  margin-bottom: 0.25rem;
}
.reader-doc-page .module-heading {
  display: flex;
  align-items: baseline;
  border-left: 3px solid #c9a227;
  padding-left: 0.75rem;
  margin: 0.9rem 0 0.35rem;
}
.reader-doc-page .module-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  color: #1e3a5f;
}
.reader-doc-page .module-sep {
  font-size: 0.72rem;
  color: #999;
}
.reader-doc-page .module-name {
  font-family: Georgia, serif;
  font-size: 0.82rem;
  color: #1e3a5f;
}
.reader-doc-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.6rem 0;
  font-size: 0.72rem;
}
.reader-doc-page th {
  background: #1e3a5f;
  color: #fff;
  padding: 0.45rem 0.55rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.68rem;
}
.reader-doc-page td {
  padding: 0.35rem 0.55rem;
  border-bottom: 1px solid #e2e2e2;
  color: #444;
  vertical-align: top;
}
.reader-doc-page tr:nth-child(even) td {
  background: rgba(30, 58, 95, 0.03);
}
.reader-doc-page hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 1.1rem 0;
}
.reader-doc-page .page-footer-doc {
  display: flex;
  justify-content: space-between;
  margin-top: 1.25rem;
  padding-top: 0.4rem;
  border-top: 1px solid #e2e2e2;
  font-size: 0.55rem;
  color: #999;
}

/* ===== INSIGHTS PANEL ===== */
.insights-panel {
  align-items: flex-start;
  overflow-y: auto;
  padding: 3rem 3rem 4rem;
}
.insights-panel::-webkit-scrollbar { width: 4px; }
.insights-panel::-webkit-scrollbar-track { background: transparent; }
.insights-panel::-webkit-scrollbar-thumb { background: var(--gold-border); border-radius: 2px; }

.insights-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
}

.insights-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.panel-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.insights-subscribe {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  border-radius: 3px;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.insights-subscribe-title {
  font-family: 'Georgia', serif;
  font-size: 1rem;
  color: var(--gold);
  display: block;
}

.insights-subscribe-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.insights-subscribe-panel {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: var(--bg-surface);
  border: 1px solid var(--gold-border);
  border-radius: 3px;
  padding: 1.25rem;
  margin-top: 0.75rem;
}

.insights-subscribe-panel.hidden {
  display: none;
}

.insights-subscribe-panel-row {
  display: flex;
  gap: 0.6rem;
}

.insights-subscribe-panel-row .insights-subscribe-input {
  flex: 1;
  min-width: 0;
}

.insights-subscribe-btn-submit {
  align-self: flex-end;
}

.insights-subscribe-input {
  background: var(--bg-primary);
  border: 1px solid var(--gold-border);
  color: var(--text-primary);
  padding: 0.5rem 0.75rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  border-radius: 2px;
  min-width: 220px;
  outline: none;
  transition: border-color 0.2s;
}

.insights-subscribe-input:focus {
  border-color: var(--gold);
}

.insights-subscribe-input::placeholder {
  color: var(--text-muted);
}

.insights-subscribe-btn {
  background: var(--gold);
  color: #0F0F1A;
  border: none;
  padding: 0.5rem 1.25rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 2px;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.insights-subscribe-btn:hover {
  opacity: 0.85;
}

.insights-subscribe-success {
  font-size: 0.85rem;
  color: var(--gold);
  font-style: italic;
}

.insights-subscribe-success.hidden {
  display: none;
}

.insights-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.insights-filter {
  background: transparent;
  border: 1px solid var(--gold-border);
  color: var(--text-secondary);
  padding: 0.35rem 0.85rem;
  border-radius: 2px;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}

.insights-filter:hover {
  border-color: var(--gold-border-hover);
  color: var(--text-primary);
}

.insights-filter.active {
  background: var(--gold-soft);
  border-color: var(--gold);
  color: var(--gold);
}

.insights-filter-divider {
  width: 1px;
  background: var(--border);
  margin: 0 0.25rem;
  align-self: stretch;
}

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

.insight-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1.5rem;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.insight-card:hover {
  border-color: var(--gold-border-hover);
  transform: translateY(-1px);
}

.insight-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.insight-card-pillar {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
}

.insight-card-type {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.insight-card-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-left: auto;
}

.insight-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text-primary);
}

.insight-card-excerpt {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.insight-card[data-type="newsletter"] {
  border-left: 2px solid var(--gold);
}

/* Insights Reader Overlay */
.insights-reader {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  z-index: 5;
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.insights-reader.hidden {
  opacity: 0;
  pointer-events: none;
}

.insights-reader-close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: border-color 0.2s;
}

.insights-reader-close:hover {
  border-color: var(--gold-border-hover);
  color: var(--text-primary);
}

.insights-reader-close svg {
  width: 14px;
  height: 14px;
}

.insights-reader-body {
  max-width: 680px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

.insights-reader-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.insights-reader-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

.insights-reader-body p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.insights-reader-hashtags {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.insights-reader-hashtag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 0.03em;
}

.insights-reader-carousel-embed {
  margin-bottom: 2rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.insights-carousel-canvas,
.insights-carousel-image {
  width: 100%;
  display: block;
  cursor: pointer;
}
.insights-carousel-image {
  aspect-ratio: 576 / 720;   /* carousel slide ratio — reserves space, no layout shift */
  object-fit: contain;
  background: var(--bg-secondary);
  user-select: none;
}

.insights-carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 0.75rem;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}

.insights-carousel-prev,
.insights-carousel-next {
  background: transparent;
  border: 1px solid var(--gold-border);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.insights-carousel-prev:hover:not(:disabled),
.insights-carousel-next:hover:not(:disabled) {
  border-color: var(--gold);
  color: var(--gold);
}

.insights-carousel-prev:disabled,
.insights-carousel-next:disabled {
  opacity: 0.3;
  cursor: default;
}

.insights-carousel-counter {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  min-width: 3rem;
  text-align: center;
}

.insights-reader-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--gold);
  text-decoration: none;
  transition: opacity 0.2s;
}

.insights-reader-linkedin:hover {
  opacity: 0.7;
}

@media (max-width: 1024px) {
  .insights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .insights-grid {
    grid-template-columns: 1fr;
  }

  .insights-subscribe {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .insights-subscribe-panel-row {
    flex-direction: column;
  }

  .insights-subscribe-input {
    min-width: unset;
  }

  .insights-subscribe-btn-submit {
    align-self: stretch;
  }

  .insights-content {
    padding: 2rem 1rem 3rem;
  }

  .insights-reader-body {
    padding: 3rem 1.25rem 4rem;
  }

  .insights-reader-title {
    font-size: 1.5rem;
  }

  .insights-reader-close {
    top: 1rem;
    right: 1rem;
  }
}

/* ===== EXPLORE PANEL (client-facing explorations) ===== */
.explore-panel {
  align-items: center;
  padding: 3rem 2.5rem;
}

.explore-content {
  max-width: 1220px;
  margin: 0 auto;
  width: 100%;
}

.explore-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
  margin-top: 1.75rem;
}

.explore-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.explore-card:hover {
  border-color: var(--gold-border-hover);
  transform: translateY(-2px);
}

.explore-card-figure {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.explore-card-figure img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 62%;
}

.explore-card-body {
  padding: 1.25rem 1.35rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.explore-card-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.explore-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text-primary);
}

.explore-card-desc {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-secondary);
  flex: 1;
}

.explore-card-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.63rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  padding-top: 0.6rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.explore-card:hover .explore-card-link { color: var(--text-primary); }

/* Coming soon — rendered as a div, never a link */
.explore-card--soon { cursor: default; border-style: dashed; }
.explore-card--soon:hover { transform: none; border-color: var(--border); }
.explore-card--soon .explore-card-figure img { filter: grayscale(0.25) brightness(0.68); }

.explore-badge {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(8, 8, 14, 0.78);
  border: 1px solid var(--gold-border-hover);
  border-radius: 2px;
  padding: 0.28rem 0.5rem;
}

.explore-card-link--soon { color: var(--text-muted); }
.explore-card--soon:hover .explore-card-link--soon { color: var(--text-muted); }

.explore-foot {
  margin-top: 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

@media (max-width: 1024px) {
  .explore-panel { align-items: flex-start; overflow-y: auto; }
  .explore-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .explore-panel { padding: 2rem 1.25rem 3rem; }
  .explore-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .explore-card-figure { aspect-ratio: 16 / 9; }
}

/* Taste poster: the cups sit in the bottom ~15% of the source, which the
   default 62% crop excludes. Anchor this one card to the bottom edge. */
.explore-card--taste .explore-card-figure img { object-position: center bottom; }
