/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;1,400&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Indie+Flower&display=swap');

/* ── Variables ── */
:root {
  --bg:           #f5efe6;
  --bg-mid:       #ede8de;
  --surface:      #ece5d8;
  --border:       #c8b49a;
  --accent:       #f6b018;
  --accent-hover: #f8c040;
  --accent-glow:  rgba(246,176,24,0.35);
  --text:         #2e1f0e;
  --text-muted:   #7a5c3a;
  --error:        #b03a22;
  --radius:       10px;
  --transition:   0.35s ease;
}

/* ── Custom scrollbars ── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}
/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

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

body {
  font-family: 'Lora', Georgia, serif;
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ── Screens ── */
.screen {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative; /* needed so watermark is positioned within screen */
}
.screen.hidden { display: none; }
.screen.active  { display: flex; }

/* ── Background watermark ── */
.screen-watermark {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 110%;
  max-width: 850px;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}
.screen-watermark img {
  width: 100%;
  height: auto;
  opacity: 0.06;
  display: block;
}

/* Lift content containers above the watermark */
.intro-container,
.main-container,
.closing-wrap {
  position: relative;
  z-index: 1;
}

/* Main screen: top-aligned so categories have room to expand */
#main-screen {
  align-items: flex-start;
  padding: 0;
}

/* ── Password screen: stack logo above card ── */
#password-screen {
  flex-direction: column;
  gap: 0;
}

/* ── Password Card — cream surface matching the rest of the presentation ── */
.card {
  background: #faf6f0;
  border-radius: var(--radius);
  padding: 52px 44px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: 0 8px 40px rgba(62,40,20,0.13), 0 1px 0 rgba(255,255,255,0.7);
}
.card h1 {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
  letter-spacing: 0.01em;
}
.card p {
  font-family: Calibri, 'Segoe UI', sans-serif;
  color: var(--text-muted);
  margin-bottom: 28px;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ── Inputs — scoped light inside the card ── */
.card input {
  font-family: Calibri, 'Segoe UI', sans-serif;
  width: 100%;
  padding: 13px 16px;
  margin-bottom: 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: border var(--transition), box-shadow var(--transition);
}
.card input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.card input::placeholder { color: var(--text-muted); opacity: 0.7; }

/* keep the bare `input` rule for any future use outside the card */
input {
  font-family: Calibri, 'Segoe UI', sans-serif;
  width: 100%;
  padding: 13px 16px;
  margin-bottom: 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #faf6f0;
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: border var(--transition), box-shadow var(--transition);
}
input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
input::placeholder { color: var(--text-muted); opacity: 0.7; }

/* ── Buttons (base) ── */
button {
  font-family: Calibri, 'Segoe UI', sans-serif;
  cursor: pointer;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  transition: background var(--transition), transform 0.1s, box-shadow var(--transition);
}
button:active { transform: scale(0.97); }

.card button {
  width: 100%;
  padding: 13px;
  background: var(--accent);
  color: #1c1410;
  font-weight: 700;
  margin-top: 4px;
  letter-spacing: 0.03em;
}
.card button:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 18px rgba(246,176,24,0.35);
}


/* ── DEV skip button (removed) ── */
#dev-skip-btn {
  display: none;
  background: #8b0000;
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  border: 1px dashed #ff4444;
  border-radius: 6px;
  opacity: 0.75;
}
#dev-skip-btn:hover {
  background: #a00000;
  opacity: 1;
}

/* ── Error (inside dark card) ── */
.card .error {
  color: #e06050;
}

/* ── Verify screen extras ── */
.verify-email-display {
  color: var(--accent);
  font-style: normal;
  word-break: break-all;
}

.verify-resend {
  font-family: Calibri, 'Segoe UI', sans-serif;
  font-size: 0.85rem;
  color: #7a6050;
  margin-top: 18px;
  margin-bottom: 0;
}

.verify-resend-link {
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}
.verify-resend-link:hover {
  color: var(--accent-hover);
}

/* ── Error ── */
.error {
  font-family: Calibri, sans-serif;
  color: var(--error);
  font-size: 0.88rem;
  margin-top: 12px;
}
.hidden { display: none !important; }

/* ═══════════════════════════════════════════════════
   MAIN SCREEN
   ═══════════════════════════════════════════════════ */

.main-container {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 32px 80px;
}

/* ── Greeting ── */
.greeting {
  padding: 18vh 0 8vh;
}

.greeting-question {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.3;
  margin-bottom: 0.6em;
  font-style: italic;
}

.greeting-answer {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1.3;
}

/* ── "Gentle People" clickable link ── */
.gp-link {
  color: var(--accent);
  cursor: pointer;
  position: relative;
  text-decoration: none;
}
.gp-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(1);
}
.gp-link.revealed {
  cursor: default;
}

/* ── Categories container ──
   NOTE: no transform here — transform on an ancestor breaks position:fixed
   children (creates a new containing block). Opacity-only is safe. ── */
.categories {
  border-top: 1px solid var(--border);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.categories.visible {
  opacity: 1;
  pointer-events: all;
}

/* ── Individual category item ── */
.category-item {
  border-bottom: 1px solid var(--border);
  opacity: 0;
}
.categories.visible .category-item {
  animation: fadeIn 0.22s ease forwards;
}

/* opacity-only — no transform, so fixed tooltips aren't re-anchored */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Category header ── */
.category-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  background: transparent;
  border: none;
  border-radius: 0;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  gap: 16px;
  transition: color var(--transition);
}
.category-header:hover       { color: var(--accent); transform: none; }
.category-header:active      { transform: none; }
.category-header[aria-expanded="true"] { color: var(--accent); }

.category-title {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.2;
  transition: color 0.6s ease;
}

.category-toggle {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent);
  flex-shrink: 0;
  line-height: 1;
  transition: transform var(--transition);
  width: 24px;
  text-align: center;
}
.category-header[aria-expanded="true"] .category-toggle {
  transform: rotate(45deg);
}

/* ── Category body ── */
.category-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.category-body p {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(0.9rem, 1.6vw, 1.05rem);
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.1em;
  opacity: 0;   /* paragraphs start invisible; JS fades them in sequentially */
}
.category-body p:last-child {
  margin-bottom: 0;
  padding-bottom: 24px;
}
.category-body p em     { font-style: italic; }
.category-body p strong { color: var(--text); font-weight: 600; }

/* ═══════════════════════════════════════════════════
   CITATION SYSTEM
   ═══════════════════════════════════════════════════ */

.cite-ref {
  display: inline;
  position: relative;
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 0.62em;
  font-weight: 700;
  color: var(--accent);
  vertical-align: super;
  line-height: 0;
  cursor: default;
  margin-left: 1px;
  white-space: nowrap;
}

.cite-tooltip {
  display: none;
  position: fixed;
  background: #2a1a0a;
  border: 1px solid #6b3d1e;
  border-radius: 6px;
  padding: 14px 16px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.35);
  z-index: 1000;
  pointer-events: none;
  white-space: normal;
  width: min(340px, calc(100vw - 48px));
  max-width: calc(100vw - 48px);
  box-sizing: border-box;
  flex-direction: column;
  gap: 10px;
}

.cite-line {
  display: block;
  font-family: 'Lora', Georgia, serif;
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 400;
  color: var(--accent);
  line-height: 1.55;
}

/* ═══════════════════════════════════════════════════
   EXECUTIVE INTRO SLIDES
   ═══════════════════════════════════════════════════ */

#intro-screen {
  align-items: flex-start;
  padding: 0;
}

.intro-container {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 32px 40px;
  max-width: 680px;
  margin: 0 auto;
}

/* Slide content area — fade-in animation re-triggered by JS */
.intro-slide-content {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: introFadeIn 0.45s ease;
}

@keyframes introFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Cover slide ── */
.intro-cover {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.intro-cover-monogram {
  width: 48px;
  height: 48px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #2e1f0e;
  margin-bottom: 28px;
}
.intro-cover-title {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 0;
}
.intro-cover-rule {
  width: 64px;
  height: 1px;
  background: var(--accent);
  margin: 18px auto;
}
.intro-cover-sub {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-style: italic;
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 44px;
}
.intro-cover-logo {
  width: clamp(360px, 72vw, 570px);
  height: auto;
  margin-bottom: 24px;
}

.concept-art-img {
  margin-top: 28px;
  opacity: 0.88;
  animation: fadeUpSoft 0.55s ease 0.2s both;
}
.cheers-concept-art {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.main-screen-art {
  display: block;
  width: 100%;
  max-width: 540px;
  margin: 28px auto 0;
  border-radius: var(--radius);
  opacity: 0.88;
}

.intro-cover-tagline {
  font-family: 'Lora', Georgia, serif;
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.intro-cover-confidential {
  margin-bottom: 6px;
}

/* ── Statement / list slides ── */
.intro-statement {
  width: 100%;
}

/* Allow tall slides (mythical-beast, opportunity etc) to scroll */
.intro-slide-content.intro-opportunity-slide {
  overflow-y: auto;
  max-height: calc(100vh - 160px);
  align-items: flex-start;
  padding-right: 4px;
}

.intro-label {
  font-family: 'Lora', Georgia, serif;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.intro-title {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 22px;
}
.intro-body {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(0.95rem, 1.7vw, 1.08rem);
  color: var(--text-muted);
  line-height: 1.8;
}
.intro-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.intro-list-item {
  font-family: 'Lora', Georgia, serif;
  font-size: 1rem;
  color: var(--text-muted);
  padding: 6px 0 6px 14px;
  border-left: 2px solid var(--accent);
  line-height: 1.5;
}

/* ── Concept slide (inline expandable category-creator) ── */
.intro-concept-text {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: clamp(1.4rem, 3.2vw, 2.2rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 0;
}

.intro-expand-trigger {
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-style: dotted;
  transition: color 0.2s ease;
}
.intro-expand-trigger:hover {
  color: var(--accent-hover);
}
.intro-expand-trigger[aria-expanded="true"] {
  text-decoration: none;
  color: var(--accent);
}

/* Pulse hint when user tries to advance without opening the dropdown */
@keyframes hintPulse {
  0%   { color: var(--accent); text-shadow: none; }
  35%  { color: #fff; text-shadow: 0 0 12px var(--accent), 0 0 24px var(--accent-glow); }
  100% { color: var(--accent); text-shadow: none; }
}
.intro-expand-trigger.hint-pulse {
  animation: hintPulse 0.6s ease;
}

.intro-expand-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.intro-expand-p {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(0.88rem, 1.6vw, 1.02rem);
  color: var(--text-muted);
  line-height: 1.82;
  margin-top: 1.15em;
  margin-bottom: 0;
  opacity: 0;   /* JS fades these in sequentially on expand */
}
.intro-expand-p.visible {
  opacity: 1;
}

/* Alcohol items — always visible, no expand wrapper */
.why-now-alcohol-items {
  margin-top: 0.75em;
}
.why-now-alcohol-items .intro-expand-p {
  opacity: 1;
}


/* ── "We were at Gentle People." line ── */
.intro-gp-line {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: clamp(1.4rem, 3.2vw, 2.2rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin-top: 1.4em;
}

.intro-gp-link {
  color: var(--accent);
  cursor: pointer;
  position: relative;
  text-decoration: none;
}
.intro-gp-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
}
.intro-gp-link.revealed {
  cursor: default;
}
.intro-gp-link.revealed::after {
  display: none;
}

/* Pulse hint when user tries to advance without opening the GP categories */
.intro-gp-link.hint-pulse {
  animation: hintPulse 0.6s ease;
}

/* ── Opportunity slide category accordion ── */
.intro-categories-wrap {
  border-top: 1px solid var(--border);
  margin-top: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.intro-categories-wrap.visible {
  opacity: 1;
  pointer-events: all;
}
/* Mirror the main-screen fade-in for category items inside the intro wrap */
.intro-categories-wrap.visible .category-item {
  animation: fadeIn 0.22s ease forwards;
}

/* ── Intro nav error message ── */
.intro-nav-error {
  font-family: Calibri, 'Segoe UI', sans-serif;
  font-size: 0.85rem;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 8px;
  animation: fadeIn 0.25s ease;
  transition: opacity 0.4s ease;
}
.intro-nav-error.fading-out {
  opacity: 0;
}

/* ── Navigation row ── */
.intro-nav {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 36px;
}

/* Circular arrow buttons */
.nav-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.25s ease, color 0.25s ease, opacity 0.25s ease;
  padding: 0;
}
.nav-arrow:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}
.nav-arrow:disabled {
  opacity: 0.28;
  cursor: default;
}
.nav-arrow:active:not(:disabled) {
  transform: scale(0.93);
}

/* Progress / dots / cooldown */
.intro-progress {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.intro-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}
.intro-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.3s ease, transform 0.3s ease;
}
.intro-dot.active {
  background: var(--accent);
  transform: scale(1.4);
}
.intro-cooldown-bar {
  width: 100%;
  height: 1px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}
.intro-cooldown-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: var(--accent);
}

/* ── Corner logo — persistent across all slides ── */
.corner-logo {
  display: none;
}

/* ── Login screen logo — sits above the card ── */
.login-logo {
  width: 260px;
  display: block;
  margin: 0 auto 28px;
}

/* ── Cream transition overlay (login → main screen) ── */
#transition-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
  z-index: 500;
}
#transition-overlay.fading {
  pointer-events: all;
}

/* ── Category cycle highlight ── */
.category-header.cycle-lit .category-title {
  color: var(--accent);
}

/* ── Main screen nav (back / forward arrows) ── */
.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 36px 0 48px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}

.main-nav-center {
  flex: 1;
  text-align: center;
  min-height: 1.2em;
}

.main-nav-error {
  font-family: Calibri, 'Segoe UI', sans-serif;
  font-size: 0.85rem;
  color: #1a1a1a;
  animation: fadeIn 0.25s ease;
}

/* Locked (grayed) state for the forward arrow */
.nav-arrow.nav-locked {
  opacity: 0.28;
}
.nav-arrow.nav-locked:hover {
  border-color: var(--border);
  color: var(--text);
  cursor: default;
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */

@media (max-width: 600px) {
  .card { padding: 36px 24px; }
  .main-container { padding: 0 20px 60px; }
  .greeting { padding: 12vh 0 5vh; }
  .category-header { padding: 18px 0; }
}

/* ═══════════════════════════════════════════════════
   WHY NOW SECTION
   ═══════════════════════════════════════════════════ */

/* Familiar slide: italic muted preamble */
.why-now-preamble {
  font-style: italic;
  color: var(--text-muted);
  font-weight: 400;
}

/* Familiar slide: two-line Cheers trigger */
.why-now-cheers-trigger {
  display: block;
  text-decoration: none;
  margin: 20px 0 4px;
  cursor: pointer;
}
.why-now-cheers-line {
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 1.83rem);
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-style: dotted;
  line-height: 1.7;
  transition: color 0.2s ease;
}
.why-now-cheers-left  { text-align: left; }
.why-now-cheers-right { text-align: right; }
.why-now-cheers-trigger:hover .why-now-cheers-line       { color: var(--accent-hover); }
.why-now-cheers-trigger[aria-expanded="true"] .why-now-cheers-line { text-decoration: none; }

/* "The need to belong." header inside the familiar dropdown */
.why-now-belonging-head {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
}

/* Changes slide: "Three forces..." intro line */
.why-now-forces-intro {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(0.95rem, 1.7vw, 1.08rem);
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 14px;
}

/* Three forces list — gold logo bullets */
.why-now-forces {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.why-now-force-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(0.88rem, 1.5vw, 1rem);
  color: var(--text-muted);
  line-height: 1.75;
}

.why-now-force-item::before {
  content: "";
  display: block;
  width: 26px;
  height: 26px;
  background-image: url('images/logoGoldTranspNoText.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
  margin-top: 0.2em;   /* align with cap-height of first text line */
  opacity: 0.9;
}

/* Bridge sentence before the trigger */
.why-now-bridge {
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  font-size: clamp(0.95rem, 1.7vw, 1.05rem);
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 1.6em;
  margin-bottom: 18px;
}

.why-now-cheers-img {
  width: 60%;
  max-height: 204px;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--radius);
  display: block;
  margin-bottom: 20px;
}

/* "The end of [alcohol as anchor]" trigger line */
.why-now-anchor-lead {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: clamp(1.2rem, 2.6vw, 1.9rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 0;
}

/* ── Wednesday Timeline ── */
.why-now-timeline {
  margin-top: 20px;
  position: relative;
}

/* Vertical connector line runs through the time column */
.why-now-timeline::before {
  content: '';
  position: absolute;
  left: 39px;
  top: 20px;
  bottom: 20px;
  width: 1px;
  background: var(--border);
  pointer-events: none;
}

.timeline-entry {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0 20px;
  align-items: start;
}

.timeline-time {
  font-family: 'Lora', Georgia, serif;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  padding: 7px 0;
  text-align: center;
  position: relative;
  z-index: 1;
  transition: color 0.25s ease, border-color 0.25s ease;
  width: 80px;
}
.timeline-time:hover        { color: var(--accent); border-color: var(--accent); }
.timeline-time:active       { transform: none; }
.timeline-time.visited      { color: var(--accent); border-color: var(--accent); font-weight: 600; }

.timeline-text {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(0.88rem, 1.5vw, 1rem);
  color: var(--text-muted);
  line-height: 1.8;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.45s ease, max-height 0.5s ease, padding 0.3s ease;
  margin: 0;
}
.timeline-text.visible {
  opacity: 1;
  max-height: 300px;
  padding: 10px 0 14px;
}

/* ── Mythical Beast ── */
.why-now-beast-sub {
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  font-size: clamp(0.95rem, 1.7vw, 1.1rem);
  color: var(--text-muted);
  margin-bottom: 22px;
  line-height: 1.6;
}

.why-now-beast-body  { margin-bottom: 1.2em; }
.why-now-beast-detail { margin-bottom: 1.2em; }

.beast-competitor-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1em;
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: fadeUpSoft 0.45s ease 1.65s both;
}
.beast-competitor-list li {
  font-family: Calibri, 'Segoe UI', sans-serif;
  font-size: clamp(0.82rem, 1.4vw, 0.92rem);
  color: var(--text-muted);
  padding-left: 1.1em;
  position: relative;
  line-height: 1.5;
}
.beast-competitor-list li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--accent);
}
.beast-competitor-closing {
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  font-size: clamp(0.88rem, 1.5vw, 1rem);
  color: var(--text);
  line-height: 1.6;
  animation: fadeUpSoft 0.4s ease 2.0s both;
}
.why-now-beast-peer-reviewed {
  font-family: Calibri, 'Segoe UI', sans-serif;
  font-size: 0.72rem;
  color: var(--text-muted);
  opacity: 0.65;
  margin-top: 4px;
  margin-bottom: 10px;
  font-style: italic;
}

.why-now-competitors {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 4px 0 16px;
}

.competitor-item {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(0.88rem, 1.5vw, 1rem);
  color: var(--text-muted);
  padding: 8px 0 8px 14px;
  border-left: 2px solid var(--accent);
  line-height: 1.5;
}
.competitor-item strong { color: var(--text); }

.why-now-beast-footer {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(0.88rem, 1.5vw, 1rem);
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.7;
}

/* ── Product: Addressable Market ── */
.product-market-intro {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(0.92rem, 1.6vw, 1.05rem);
  color: var(--text-muted);
  margin-bottom: 6px;
  line-height: 1.75;
}

/* Inline TAM trigger inside the intro sentence */
.mkt-intro-tam {
  display: inline;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: 700;
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
  transition: opacity 0.15s;
}
.mkt-intro-tam:hover { opacity: 0.75; }

/* Expanding SAM/SOM row below the intro sentence */
.mkt-intro-expand {
  display: flex;
  gap: 20px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.35s ease;
  margin-bottom: 18px;
}

/* ── TAM label chip ── */
.tam-label {
  font-weight: 400;
  font-size: 0.82em;
  opacity: 0.75;
}

/* ── SAM / SOM number pill ── */
.mkt-sub-num {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: clamp(0.82rem, 1.4vw, 0.95rem);
  color: var(--text-muted);
  background: rgba(0,0,0,0.04);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 10px;
  white-space: nowrap;
}
.mkt-sub-num em { font-style: normal; opacity: 0.65; font-size: 0.9em; }

/* ── Category grid ── */
.product-cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

.product-cat-card {
  padding: 14px 0 14px 0;
  border-bottom: 1px solid var(--border);
}
.product-cat-card:nth-child(odd)  { padding-right: 20px; border-right: 1px solid var(--border); }
.product-cat-card:nth-child(even) { padding-left: 20px; }

/* Last row — hide bottom border if it's the lone card in a 2-col grid */
.product-cat-card:last-child:nth-child(odd) {
  border-right: none;
  grid-column: 1 / -1;
}

.product-cat-title {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: clamp(0.8rem, 1.4vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

/* TAM clickable button */
.product-tam-btn {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  background: none;
  border: none;
  padding: 0;
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 700;
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
  transition: opacity 0.15s;
  margin-bottom: 4px;
}
.product-tam-btn:hover { opacity: 0.75; }
.product-tam-btn[aria-expanded="true"] { text-decoration: none; }

/* SAM + SOM reveal */
.product-sam-som {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.35s ease;
  margin-top: 2px;
}

@media (max-width: 540px) {
  .product-cat-grid            { grid-template-columns: 1fr; }
  .product-cat-card:nth-child(odd)  { padding-right: 0; border-right: none; }
  .product-cat-card:nth-child(even) { padding-left: 0; }
  .product-cat-card:last-child:nth-child(odd) { grid-column: auto; }
}

/* Sources footnote */
.mkt-sources-note {
  font-family: 'Lora', Georgia, serif;
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.6;
  margin-top: 14px;
  font-style: italic;
}

/* ── Product: Experiences ── */
.product-experiences-intro {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(0.92rem, 1.6vw, 1.05rem);
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.75;
  font-style: italic;
}

.product-verticals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 4px;
}

.vertical-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
}

.vertical-card-title {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: clamp(0.88rem, 1.4vw, 1rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
}

.vertical-card-desc {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(0.82rem, 1.3vw, 0.92rem);
  color: var(--text-muted);
  line-height: 1.7;
}

@media (max-width: 600px) {
  .product-verticals {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════════════════════
   SECTION 3 — THE STRUCTURAL MOATS
   ══════════════════════════════════════════════════ */

/* ── Slide 11: intro / bullets ── */
.moat-intro-subhead {
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  font-size: clamp(0.95rem, 1.7vw, 1.1rem);
  color: var(--text-muted);
  margin-bottom: 26px;
  line-height: 1.6;
}

.moat-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.moat-bullet {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(0.92rem, 1.6vw, 1.05rem);
  color: var(--text);
  line-height: 1.6;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.moat-bullet::before {
  content: "";
  display: block;
  width: 26px;
  height: 26px;
  background-image: url('images/logoGoldTranspNoText.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
  margin-top: 0.2em;
  opacity: 0.9;
}
.moat-bullet.visible {
  opacity: 1;
  transform: none;
}

.moat-label-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.moat-label-chip {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 6px 14px;
}

/* ── Slide 12: medical / portrait layout ── */
.moat-medical-layout {
  display: flex;
  gap: 36px;
  align-items: flex-start;
}

.moat-medical-text {
  flex: 1 1 0;
  min-width: 0;
}

.moat-medical-subhead {
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  font-size: clamp(0.92rem, 1.6vw, 1.05rem);
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 6px;
}

.moat-zandra-main-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 8px;
}

/* Nested sub-items */
.moat-sub-item {
  border-top: 1px solid var(--border);
}
.moat-sub-item:last-child {
  border-bottom: 1px solid var(--border);
}

.moat-sub-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 12px;
  color: var(--text);
  transition: color var(--transition);
}
.moat-sub-trigger:hover              { color: var(--accent); }
.moat-sub-trigger[aria-expanded="true"] { color: var(--accent); }

.moat-sub-title {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: clamp(0.88rem, 1.5vw, 1.02rem);
  font-weight: 400;
  line-height: 1.3;
}

.moat-sub-toggle {
  font-size: 1.2rem;
  color: var(--accent);
  flex-shrink: 0;
  width: 20px;
  text-align: center;
  line-height: 1;
}

.moat-sub-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.moat-sub-body p {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(0.86rem, 1.5vw, 0.98rem);
  color: var(--text-muted);
  line-height: 1.8;
  padding-bottom: 16px;
}

/* Portrait block (single-column layout) */
.moat-medical-portrait {
  width: 280px;
  margin: 20px auto 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.moat-portrait-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius);
  background: var(--surface);
}

.moat-portrait-name {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 700;
}

.moat-portrait-title {
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  font-size: 0.83rem;
  color: var(--accent);
  line-height: 1.45;
}

/* ── Slide 13: tech / Gentle OS ── */
.moat-tech-subhead {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(0.95rem, 1.7vw, 1.1rem);
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 4px;
}

.moat-tech-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 10px;
}
.moat-tech-body p {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(0.88rem, 1.5vw, 1rem);
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.1em;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.moat-tech-body p:last-child { margin-bottom: 0; }

@media (max-width: 620px) {
  .moat-medical-portrait { width: 180px; margin: 14px auto 20px; }
}

/* ══════════════════════════════════════════════════
   SECTION 4 — THE MARKET
   ══════════════════════════════════════════════════ */

.market-subhead {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(0.95rem, 1.7vw, 1.1rem);
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 4px;
}

.market-crises-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 10px;
}

.market-crises-body p {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(0.88rem, 1.5vw, 1rem);
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.1em;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.market-crises-body p:last-child { margin-bottom: 0; }
.market-crises-body p strong { color: var(--text); font-weight: 600; }

/* ══════════════════════════════════════════════════
   SECTION 5 — THE TEAM
   ══════════════════════════════════════════════════ */

/* ── Slide 15: founders ── */
.team-photo {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 14px 0 18px;
  display: block;
}

.team-members-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.team-member-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.team-member-name {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: clamp(0.68rem, 1.1vw, 0.76rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  padding: 0;
  line-height: 1.4;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
  transition: color var(--transition);
}
.team-member-name:hover              { color: var(--accent-hover); }
.team-member-name[aria-expanded="true"] { color: var(--text); text-decoration: none; }

.team-member-title {
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  font-size: clamp(0.72rem, 1.1vw, 0.82rem);
  color: var(--text-muted);
  line-height: 1.4;
}

.team-member-bio {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
  margin-top: 8px;
}
.team-member-bio p {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(0.75rem, 1.1vw, 0.84rem);
  color: var(--text-muted);
  line-height: 1.75;
}

.team-footer {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ── Slide 16: ask ── */
.team-ask-layout {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.team-ask-el {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.team-ask-el.visible {
  opacity: 1;
  transform: none;
}

.team-ask-heading {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  text-align: left;
  width: 100%;
  margin-bottom: 28px;
}

.team-ask-image-wrap {
  position: relative;
  display: block;
  width: min(480px, 90vw);
  margin: 0 auto 28px;
  overflow: visible;
}

.team-ask-img {
  width: 100%;
  border-radius: var(--radius);
  display: block;
}

/* SVG overlay: covers the image, draws the dashed line extending to label */
.team-ask-callout-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

/* Label overlaid on the upper-right of the image */
.team-ask-callout-label {
  position: absolute;
  top: 10%;
  right: -16%;
  background: rgba(237, 229, 216, 0.92);
  padding: 3px 9px 4px;
  border-radius: 3px;
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  font-size: clamp(0.68rem, 1.2vw, 0.78rem);
  color: var(--text);
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 1px 5px rgba(0,0,0,0.1);
  line-height: 1;
}

.team-ask-closing {
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  color: var(--text-muted);
  line-height: 1.4;
  text-align: right;
  width: 100%;
}

/* Response checkboxes */
.team-ask-response-wrap {
  width: 100%;
  margin-top: 28px;
  text-align: center;
}

.team-ask-response-btns {
  display: inline-flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.team-ask-checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.team-ask-checkbox-box {
  width: 22px;
  height: 22px;
  border: 2px solid #1a1a1a;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.team-ask-checkmark {
  font-family: 'Indie Flower', cursive;
  font-size: 16px;
  color: #1a1a1a;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.team-ask-checkbox-label.active .team-ask-checkmark {
  opacity: 1;
}

.team-ask-checkbox-text {
  font-family: 'Indie Flower', cursive;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  color: #1a1a1a;
  line-height: 1;
}

.team-ask-response-body {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.35s ease;
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  font-size: clamp(0.88rem, 1.6vw, 1rem);
  color: var(--text-muted);
  padding-top: 0;
  line-height: 1.5;
}

.team-ask-response-body[aria-hidden="false"] {
  padding-top: 12px;
}

.team-ask-wrong-choice-img {
  display: block;
  max-width: 280px;
  width: 100%;
  margin: 16px auto 14px;
  border-radius: var(--radius);
  opacity: 0;
  transition: opacity 0.5s ease 0.35s;
}
.team-ask-response-body[aria-hidden="false"] .team-ask-wrong-choice-img {
  opacity: 1;
}

.team-ask-email {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.team-ask-copyright {
  width: 100%;
  text-align: center;
  margin-top: 2.5rem;
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
/* Land at 0.55 opacity when the fade-in completes */
.team-ask-el.team-ask-copyright.visible {
  opacity: 0.55;
}

.team-ask-exec-return {
  margin-top: 1.2rem;
  width: 100%;
  text-align: center;
  transition: opacity 1.4s ease, transform 1.4s ease !important;
}

.team-ask-exec-return button {
  background: none;
  border: none;
  padding: 0;
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  opacity: 0.5;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s ease;
}

.team-ask-exec-return button:hover {
  opacity: 0.9;
}

@media (max-width: 640px) {
  .team-members-row             { grid-template-columns: 1fr; }
  .team-ask-image-wrap          { width: 52vw; }
  .team-ask-callout-label       { font-size: 0.55rem; right: -18%; }
  .team-ask-response-btns       { gap: 16px; }
}

/* ── Why Now: Mythical Beast scatter chart ── */
.beast-chart-wrap {
  margin-top: 20px;
  width: 100%;
}

.beast-chart {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  overflow: visible;
}

/* Footnote toggle */
.beast-footnote {
  margin-top: 10px;
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(0.78rem, 1.3vw, 0.88rem);
}

.beast-fn-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
  transition: opacity 0.15s;
}
.beast-fn-btn:hover { opacity: 0.7; }
.beast-fn-btn[aria-expanded="true"] { text-decoration: none; }

.beast-fn-list {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.35s ease;
  color: var(--text-muted);
  line-height: 1.8;
  padding-top: 0;
}
.beast-fn-list[aria-hidden="false"] {
  padding-top: 6px;
}

/* ── Slide art images ── */
.cover-art-img {
  display: block;
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 14px;
  margin: 0 auto 24px;
  opacity: 0.92;
}

.slide-art-img {
  display: block;
  max-width: 300px;
  width: 100%;
  border-radius: var(--radius);
  margin: 24px auto 0;
  opacity: 0.9;
}

/* Images inside collapsible dropdowns start invisible and fade in
   after the container has finished expanding (~0.45 s delay) */
.intro-expand-body .slide-art-img,
.market-crises-body .slide-art-img {
  opacity: 0;
  transition: opacity 0.5s ease;
  transition-delay: 0s;
}
.intro-expand-body[aria-hidden="false"] .slide-art-img,
.market-crises-body[aria-hidden="false"] .slide-art-img {
  opacity: 0.9;
  transition-delay: 0.45s;
}

/* Wednesday dancers — a touch narrower so it reads as accent, not full bleed */
.wednesday-art-img {
  max-width: 240px;
}

/* Moat intro butterfly — fades in after the sequential bullets finish (~1.4 s) */
@keyframes artFadeIn {
  from { opacity: 0; }
  to   { opacity: 0.9; }
}

.moat-intro-art {
  margin-top: 28px;
  opacity: 0;
  animation: artFadeIn 0.7s ease 1.6s forwards;
}

/* Hover labels on unnamed dots */
.beast-dot-hover {
  cursor: default;
}
.beast-dot-hover .beast-dot-label {
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
}
.beast-dot-hover:hover .beast-dot-label {
  opacity: 1;
}

/* ══════════════════════════════════════════════════
   SEQUENTIAL & ENTRANCE ANIMATIONS
   ══════════════════════════════════════════════════ */

@keyframes coverElemIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0);    }
}
@keyframes coverRuleGrow {
  from { width: 0;    opacity: 0; }
  to   { width: 64px; opacity: 1; }
}
@keyframes introLabelIn {
  from { opacity: 0; letter-spacing: 0.4em; }
  to   { opacity: 1; letter-spacing: 0.22em; }
}
@keyframes introTitleIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0);    }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-22px); }
  to   { opacity: 1; transform: none;              }
}
@keyframes fadeUpSoft {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* ── Cover slide — every element staggers in ── */
.intro-cover-logo     { animation: coverElemIn   0.55s ease 0.2s   both; }
.intro-cover-rule     { animation: coverRuleGrow 0.5s  ease 0.7s   both; }
.intro-cover-sub      { animation: coverElemIn   0.5s  ease 0.9s   both; }
.intro-cover-confidential { animation: coverElemIn 0.4s ease 1.1s  both; }
.intro-cover-tagline      { animation: coverElemIn 0.4s ease 1.35s both; }

/* ── Universal: label + title re-animate on every slide render ── */
.intro-label { animation: introLabelIn 0.5s  ease 0.1s  both; }
.intro-title { animation: introTitleIn 0.55s ease 0.28s both; }

/* ── Exec concept & Why Now familiar — main concept text ── */
.intro-concept-text { animation: fadeUpSoft 0.5s ease 0.34s both; }

/* ── Exec opportunity slide ── */
.intro-opportunity .intro-title   { animation: introTitleIn 0.55s ease 0.2s  both; }
.intro-opportunity .intro-body    { animation: fadeUpSoft   0.5s  ease 0.42s both; text-align: center; }
.intro-opportunity .intro-gp-line { animation: fadeUpSoft   0.4s  ease 0.65s both; }

/* ── Why Now "changes" — forces stagger then bridge/image/trigger cascade ── */
.why-now-forces-intro            { animation: fadeUpSoft  0.4s ease 0.35s both; }
.why-now-force-item:nth-child(1) { animation: slideInLeft 0.4s ease 0.5s  both; }
.why-now-force-item:nth-child(2) { animation: slideInLeft 0.4s ease 0.68s both; }
.why-now-force-item:nth-child(3) { animation: slideInLeft 0.4s ease 0.86s both; }
.why-now-trust-art               { animation: fadeUpSoft  0.45s ease 1.0s  both; }
.why-now-bridge                  { animation: fadeUpSoft  0.45s ease 1.15s both; }
.why-now-cheers-img              { animation: fadeUpSoft  0.5s  ease 1.3s  both; }
.why-now-anchor-lead             { animation: fadeUpSoft  0.4s  ease 1.5s  both; }

/* ── Wednesday timeline — entries slide in from left ── */
.timeline-entry:nth-child(1) { animation: slideInLeft 0.38s ease 0.22s both; }
.timeline-entry:nth-child(2) { animation: slideInLeft 0.38s ease 0.38s both; }
.timeline-entry:nth-child(3) { animation: slideInLeft 0.38s ease 0.54s both; }
.timeline-entry:nth-child(4) { animation: slideInLeft 0.38s ease 0.70s both; }
.timeline-entry:nth-child(5) { animation: slideInLeft 0.38s ease 0.86s both; }
.timeline-entry:nth-child(6) { animation: slideInLeft 0.38s ease 1.02s both; }
.wednesday-art-img           { animation: fadeUpSoft  0.5s  ease 1.25s both; }

/* ── Mythical beast — text then chart then closing line ── */
.why-now-beast-sub    { animation: fadeUpSoft 0.4s  ease 0.38s both; }
.why-now-beast-body   { animation: fadeUpSoft 0.45s ease 0.54s both; }
.beast-chart-wrap     { animation: fadeUpSoft 0.55s ease 0.72s both; }
.why-now-beast-detail { animation: fadeUpSoft 0.4s  ease 1.4s  both; }

/* ── Moat intro subheading (bullets handled by existing JS timers) ── */
.moat-intro-subhead { animation: fadeUpSoft 0.45s ease 0.4s both; }

/* ── Moat I — Zandra portrait slides in, text follows ── */
.moat-medical-portrait { animation: fadeUpSoft 0.5s ease 0.22s both; }
.moat-medical-subhead  { animation: fadeUpSoft 0.45s ease 0.42s both; }

/* ── Moat II ── */
.moat-tech-subhead { animation: fadeUpSoft 0.45s ease 0.4s both; }

/* ── Market "We'll Handle That for You" ── */
.market-subhead { animation: fadeUpSoft 0.5s ease 0.42s both; }

/* ── Team founders — cards stagger up ── */
.team-member-card:nth-child(1) { animation: fadeUpSoft 0.45s ease 0.28s both; }
.team-member-card:nth-child(2) { animation: fadeUpSoft 0.45s ease 0.46s both; }
.team-member-card:nth-child(3) { animation: fadeUpSoft 0.45s ease 0.64s both; }

/* ── Closing screen ──────────────────────────────────────────────── */
.closing-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  text-align: center;
  padding: 40px 24px;
  gap: 0;
}

.closing-monogram {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--ink);
  animation: fadeUpSoft 0.7s ease 0.2s both;
}

.closing-rule {
  width: 0;
  height: 1px;
  background: var(--ink);
  opacity: 0.35;
  margin: 28px 0;
  animation: coverRuleGrow 0.6s ease 0.7s both;
}

.closing-headline {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0.01em;
  margin-bottom: 18px;
  animation: fadeUpSoft 0.6s ease 1s both;
}

.closing-body {
  font-family: var(--font-sans);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--ink);
  opacity: 0.7;
  line-height: 1.7;
  margin-bottom: 36px;
  animation: fadeUpSoft 0.6s ease 1.25s both;
}

.closing-tagline {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--ink);
  opacity: 0.4;
  margin-bottom: 48px;
  animation: fadeUpSoft 0.6s ease 1.5s both;
}

.closing-exec-return {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  color: var(--ink);
  opacity: 0.75;
  background: none;
  border: none;
  border-bottom: 1px solid currentColor;
  cursor: pointer;
  padding: 4px 0 3px;
  margin-bottom: 16px;
  transition: opacity 0.2s ease;
  animation: fadeUpSoft 0.5s ease 1.75s both;
}
.closing-exec-return:hover { opacity: 1; }

.closing-restart {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--ink);
  opacity: 0.35;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 0;
  transition: opacity 0.2s ease;
  animation: fadeUpSoft 0.5s ease 1.95s both;
}
.closing-restart:hover { opacity: 0.75; }
