/* ==========================================================================
   ELROY INTERACTIVE PITCH DECK
   Theme: Minimalist Editorial Botanical
   Palette: Black (#000), White (#fff), Blue (links only: #3b82f6)
   Typography: Fraunces (Headlines & Display), Plus Jakarta Sans (Body)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght,SOFT@0,9..144,300..800,0..100;1,9..144,300..800,0..100&family=JetBrains+Mono:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --bg-black: #000000;
  --text-white: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.72);
  --text-muted: rgba(255, 255, 255, 0.42);

  --border-subtle: rgba(255, 255, 255, 0.10);
  --border-medium: rgba(255, 255, 255, 0.20);
  --border-bright: rgba(255, 255, 255, 0.85);

  --card-bg: rgba(255, 255, 255, 0.03);
  --card-bg-hover: rgba(255, 255, 255, 0.06);

  --link-blue: #3b82f6;
  --link-blue-hover: #60a5fa;

  --font-headline: 'Fraunces', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Roboto Mono', Menlo, Monaco, Consolas, monospace;

  /* ==========================================================================
     STANDARDIZED TITLE DESIGN TOKENS
     ========================================================================== */
  --title-color: #ffffff;
  --title-headline-size: clamp(32px, 3.2vw, 44px);
  --title-headline-line-height: 1.15;
  --title-headline-letter-spacing: -0.02em;
  --title-headline-weight: 400;

  --title-quote-size: clamp(38px, 4.2vw, 56px);
  --title-quote-line-height: 1.22;

  --title-card-size: 20px;
  --title-card-line-height: 1.25;
  --title-card-letter-spacing: -0.015em;
  --title-card-weight: 500;

  --title-subcard-size: 17px;
  --title-subcard-line-height: 1.35;
  --title-subcard-letter-spacing: -0.01em;
  --title-subcard-weight: 500;

  --header-height: 0px;
  --bottom-bar-height: 36px;
  --slide-top-padding: max(120px, 12vh);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  box-shadow: none !important;
  text-shadow: none !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-black);
  color: var(--text-white);
  font-family: var(--font-body);
}

::selection {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

a {
  color: var(--link-blue);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--link-blue-hover);
  text-decoration: underline;
}

/* ==========================================================================
   PASSWORD GATE (CONFIDENTIAL PROTECTED OVERLAY)
   ========================================================================== */

.password-gate {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background-color: #000000;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.password-gate.unlocked {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.password-modal {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 440px;
  width: 100%;
  position: relative;
  z-index: 10;
}

.gate-logo {
  height: 44px;
  width: auto;
  margin-bottom: 36px;
  opacity: 0.95;
}

.gate-title {
  font-family: var(--font-headline);
  font-size: 30px;
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 8px;
}

.gate-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  font-weight: 300;
}

.gate-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gate-input-wrap {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.gate-input {
  width: 100%;
  height: 48px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-medium);
  border-radius: 0;
  padding: 0 54px 0 20px;
  font-size: 15px;
  color: #ffffff;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.gate-input:focus {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.gate-submit-btn {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 48px;
  height: 48px;
  border-radius: 0;
  background: #ffffff;
  border: 1px solid #000000;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gate-submit-btn:hover {
  background: #000000;
  color: #ffffff;
  border-color: #ffffff;
}

.gate-submit-btn svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
}

.gate-error-msg {
  margin-top: 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  opacity: 0;
  transition: opacity 0.2s;
}

.gate-error-msg.visible {
  opacity: 1;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

.gate-form.shake {
  animation: shake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* ==========================================================================
   APP CONTAINER & VIEWPORT
   ========================================================================== */

#deck-app {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #000000;
  overflow: hidden;
}

/* ==========================================================================
   BOTANICAL SPECIMENS (THROUGHOUT ALL SLIDES)
   ========================================================================== */

.bg-botanical-specimen {
  position: absolute;
  pointer-events: none;
  z-index: 2;
  opacity: 0.30;
  mix-blend-mode: screen;
  filter: grayscale(5%) contrast(112%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.bg-botanical-specimen.pos-top-right {
  top: -80px;
  right: -60px;
  width: clamp(380px, 36vw, 640px);
  transform: rotate(12deg);
}

.bg-botanical-specimen.pos-bottom-left {
  bottom: -90px;
  left: -70px;
  width: clamp(360px, 34vw, 600px);
  transform: rotate(-8deg);
}

.bg-botanical-specimen.pos-top-left {
  top: -80px;
  left: -70px;
  width: clamp(360px, 35vw, 620px);
  transform: rotate(-14deg);
}

.bg-botanical-specimen.pos-bottom-right {
  bottom: -80px;
  right: -60px;
  width: clamp(380px, 36vw, 640px);
  transform: rotate(16deg);
}

/* ==========================================================================
   FLOATING BRAND LOGO & COUNTER (NO TOP BANNER)
   ========================================================================== */

.floating-logo {
  position: absolute;
  top: 32px;
  left: 40px;
  z-index: 50;
  display: flex;
  align-items: center;
  opacity: 0.9;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  text-decoration: none;
}

.floating-logo:hover {
  opacity: 1;
}

/* Hide corner logo on slide 1 since center logo is prominent */
body.on-slide-1 .floating-logo {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.floating-logo-img {
  height: 22px;
  width: auto;
  display: block;
}

.floating-slide-counter {
  position: absolute;
  top: 32px;
  right: 40px;
  z-index: 50;
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  pointer-events: none;
}

.floating-slide-counter .cur {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
}

.floating-slide-counter .sep {
  color: var(--text-muted);
  font-size: 13px;
}

.floating-slide-counter .tot {
  color: var(--text-muted);
  font-size: 13px;
}

/* ==========================================================================
   MAIN SLIDE STAGE
   ========================================================================== */

.slide-stage {
  position: relative;
  flex: 1;
  width: 100%;
  margin-top: 0;
  margin-bottom: var(--bottom-bar-height);
  overflow: hidden;
  z-index: 10;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.985);
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0 90px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
  pointer-events: none;
  background: #000000;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

/* Flexible vertical centering when viewport is large,
   anchoring to a minimum 120px top margin above the title when content expands */
.slide::before {
  content: '';
  display: block;
  flex: 1 0 auto;
  min-height: 120px;
  width: 100%;
  pointer-events: none;
}

.slide::after {
  content: '';
  display: block;
  flex: 1 0 auto;
  min-height: 60px;
  width: 100%;
  pointer-events: none;
}

#slide-1::before,
#slide-1::after,
#slide-2::before,
#slide-2::after,
#slide-3::before,
#slide-3::after,
.slide-thank-you::before,
.slide-thank-you::after {
  display: none !important;
}

#slide-2,
#slide-3 {
  justify-content: center !important;
}

#slide-5::before {
  min-height: 75px;
}

.slide::-webkit-scrollbar {
  width: 6px;
}

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

.slide::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 3px;
}

.slide::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.35);
}

.slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  pointer-events: auto;
  z-index: 20;
}

.slide.prev {
  transform: scale(0.985);
}

.slide-content-wrap {
  width: 100%;
  max-width: 1240px;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 10;
  flex-shrink: 0;
}

/* ==========================================================================
   HEADLINES & CLEAN TYPOGRAPHY (NO EYEBROWS)
   ========================================================================== */

.slide-headline {
  font-family: var(--font-headline);
  font-size: var(--title-headline-size);
  font-weight: var(--title-headline-weight);
  line-height: var(--title-headline-line-height);
  letter-spacing: var(--title-headline-letter-spacing);
  color: var(--title-color);
  margin-bottom: 18px;
}

.slide-headline .italic {
  font-style: italic;
  font-weight: 300;
  color: var(--title-color);
}

.slide-subtitle {
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 860px;
  margin-bottom: 38px;
  font-weight: 300;
}

/* Clean Minimal Cards */
.clean-panel {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 32px;
  transition: all 0.25s;
}

.clean-panel:hover {
  border-color: var(--border-medium);
  background: var(--card-bg-hover);
}

/* ==========================================================================
   NAVIGATION ARROWS (FLAT, SQUARE, SOLID WHITE BG, BLUE LINK)
   ========================================================================== */

.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 0;
  background: #ffffff;
  border: 1px solid #000000;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 40;
  transition: all 0.2s ease;
  user-select: none;
}

.nav-arrow:hover {
  background: #000000;
  color: #ffffff;
  border-color: #ffffff;
  transform: translateY(-50%) scale(1.06);
}

.nav-arrow:active {
  transform: translateY(-50%) scale(0.96);
}

.nav-arrow.prev { left: 24px; }
.nav-arrow.next { right: 24px; }

.nav-arrow svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.2;
}

/* ==========================================================================
   BOTTOM BAR & DISCRETE STEP BLOCKS (NO RADIUS, NO SPACING, NO SUB-TEXT)
   ========================================================================== */

.bottom-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-bar-height);
  display: flex;
  align-items: center;
  padding: 0 40px;
  z-index: 50;
  background: #000000;
  border-top: 1px solid var(--border-subtle);
  user-select: none;
}

.steps-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 0;
  align-items: center;
}

.step-block {
  position: relative;
  flex: 1;
  height: 6px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.16);
  border: none;
  border-right: 1px solid #000000;
  cursor: pointer;
  transition: all 0.15s ease;
}

.step-block:last-child {
  border-right: none;
}

.step-block:hover {
  background: #ffffff;
  height: 8px;
  transform: translateY(-1px);
}

.step-block.visited {
  background: rgba(255, 255, 255, 0.42);
}

.step-block.active {
  background: #ffffff;
  height: 8px;
}

/* ==========================================================================
   HOVER PREVIEW POPUP (FLAT, SQUARE, CLEAN)
   ========================================================================== */

#hover-preview-card {
  position: absolute;
  bottom: calc(var(--bottom-bar-height) + 12px);
  left: 0;
  width: 270px;
  background: #000000;
  border: 1px solid var(--border-medium);
  border-radius: 0;
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) translateX(-50%);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  pointer-events: none;
  z-index: 100;
}

#hover-preview-card.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) translateX(-50%);
}

.preview-thumb-wrap {
  width: 100%;
  height: 148px;
  border-radius: 0;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border-subtle);
}

.preview-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.preview-info {
  padding: 10px 4px 4px 4px;
}

.preview-slide-num {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.preview-slide-title {
  font-family: var(--font-headline);
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  line-height: 1.3;
  margin-top: 2px;
}

.preview-slide-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   SLIDE 1: LIVING BOTANICAL HERO
   ========================================================================== */

#slide-1 {
  padding: 0;
  background: #000;
  position: relative;
  overflow: hidden;
  align-items: center;
  justify-content: center;
}

#canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#paracosmCanvas {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-vignette {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 35%, rgba(0, 0, 0, 0.75) 100%);
  pointer-events: none;
}

.hero-center-content {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: 900px;
  padding: 0 24px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.hero-logo-box {
  display: flex;
  justify-content: center;
}

.hero-logo-img {
  height: clamp(68px, 9vw, 115px);
  width: auto;
  max-width: 90vw;
}

.hero-action-box {
  display: flex;
  justify-content: center;
  margin-top: 64px;
}

/* White Box for "AI Manufactory" & Details (Positioned just above the progress bar) */
.hero-bottom-detail-box {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  color: #000000;
  border-radius: 0;
  padding: 14px 32px;
  max-width: 760px;
  width: auto;
  min-width: 300px;
  text-align: center;
  z-index: 25;
  box-sizing: border-box;
}

.hero-bottom-detail-box .hero-white-box-title {
  font-family: var(--font-headline);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #000000;
  margin-bottom: 6px;
}

.hero-bottom-detail-box .hero-white-box-desc {
  font-size: 14px;
  line-height: 1.45;
  color: #000000;
  margin-bottom: 6px;
  font-weight: 400;
}

.hero-bottom-detail-box .hero-white-box-meta {
  font-size: 13.5px;
  color: #000000;
  letter-spacing: 0.01em;
  font-weight: 500;
  line-height: 1.4;
}

.hero-bottom-detail-box .hero-white-box-meta a {
  color: #000000;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.15s ease;
}

.hero-bottom-detail-box .hero-white-box-meta a:hover {
  opacity: 0.65;
}

.hero-bottom-detail-box .hero-deck-link-row {
  margin-top: 6px;
  font-size: 13px;
  color: #000000;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.hero-bottom-detail-box .hero-deck-link-row a {
  color: #000000;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: opacity 0.15s ease;
}

.hero-bottom-detail-box .hero-deck-link-row a:hover {
  opacity: 0.65;
}

/* Flat, square, not opaque button: white background, no border, black text */
.flat-square-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 0;
  background: #ffffff;
  border: none;
  color: #000000;
  padding: 12px 28px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.flat-square-btn:hover {
  background: #f1f5f9;
  color: #000000;
  transform: translateY(-1px);
}

.flat-square-btn svg {
  stroke: currentColor;
}

.thank-you-contact-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 14px 32px;
  border: 1px solid var(--border-subtle);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.03);
}

/* ==========================================================================
   TEXT-ONLY STATEMENT SLIDES (SLIDE 2 & SLIDE 5 MISSION)
   ========================================================================== */

.slide.slide-text-only {
  align-items: center;
}

.slide-text-only .slide-content-wrap,
#slide-2 .slide-content-wrap,
#slide-3 .slide-content-wrap {
  max-width: 1240px;
}

.slide-quote-huge {
  font-family: var(--font-headline);
  font-size: var(--title-quote-size);
  font-weight: 400;
  line-height: var(--title-quote-line-height);
  color: var(--title-color);
  letter-spacing: -0.02em;
  margin: 0;
}

.mission-quote {
  font-size: var(--title-quote-size);
  line-height: var(--title-quote-line-height);
}

.slide-quote-huge .highlight {
  font-style: italic;
  font-weight: 300;
  color: var(--title-color);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 8px;
}

.dilemma-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  width: 100%;
}

.dilemma-card {
  padding: 36px;
  border-radius: 14px;
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
}

.dilemma-title {
  font-family: var(--font-headline);
  font-size: var(--title-card-size);
  font-weight: var(--title-card-weight);
  line-height: var(--title-card-line-height);
  letter-spacing: var(--title-card-letter-spacing);
  color: var(--title-color);
  margin-bottom: 12px;
}

.dilemma-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.dilemma-stat {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.dilemma-stat .num {
  font-family: var(--font-headline);
  font-size: 32px;
  font-weight: 500;
  color: #fff;
}

.dilemma-stat .label {
  font-size: 13px;
  color: var(--text-muted);
}

/* ==========================================================================
   SLIDE 4: LABOR & CHINA FRICTION STRIPS
   ========================================================================== */

.labor-friction-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.friction-step-card {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 0;
  padding: 16px 14px;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.friction-step-card:hover {
  border-color: var(--border-medium);
  background: var(--card-bg-hover);
}

.friction-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.friction-card-header .friction-num {
  margin-bottom: 0;
}

.friction-pills-wrap {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.friction-pct {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1px 6px;
  letter-spacing: 0.02em;
}

.friction-step-card:hover .friction-pct {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
}

.friction-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.friction-title {
  font-family: var(--font-headline);
  font-size: 15px;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 4px;
}

.friction-detail {
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--text-secondary);
}

/* Secondary China Section */
.china-section-wrap {
  margin-top: 4px;
  margin-bottom: 18px;
}

.secondary-section-title {
  font-family: var(--font-headline);
  font-size: 20px;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 6px;
  line-height: 1.25;
}

.secondary-section-sub {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.china-friction-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.china-step-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
}

.china-step-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
}

.china-card-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  display: inline-block;
  margin-bottom: 4px;
}

.china-card-title {
  font-family: var(--font-headline);
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 4px;
}

.china-card-detail {
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-secondary);
}

/* Bottom Solution Takeaway */
.elroy-dual-takeaway {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-medium);
  border-radius: 0;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.takeaway-pill {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #000000;
  background: #ffffff;
  padding: 3px 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.takeaway-text {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-secondary);
  margin: 0;
}

/* ==========================================================================
   SLIDE 5: MARCH TOWARDS ZERO-TOUCH (EXPANDABLE ACCORDIONS)
   ========================================================================== */

.workflow-flow-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.workflow-row {
  display: grid;
  grid-template-columns: 220px 36px 1fr;
  align-items: start;
  gap: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: background-color 0.15s ease;
}

.workflow-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.workflow-manual-col {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 9px 12px 9px 4px;
  background: transparent;
  border: none;
  min-height: 44px;
  box-sizing: border-box;
  cursor: pointer;
}

.workflow-manual-col .step-name {
  font-family: var(--font-headline);
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: -0.01em;
  transition: opacity 0.15s ease;
}

.workflow-manual-col:hover .step-name {
  opacity: 0.8;
}

.workflow-arrow-col {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted, rgba(255, 255, 255, 0.35));
  font-size: 16px;
  min-height: 44px;
  box-sizing: border-box;
  padding: 9px 0;
}

.workflow-accordion-card {
  background: transparent;
  border: none;
  transition: none;
}

.workflow-accordion-card:hover {
  border-color: transparent;
  background: transparent;
}

.workflow-accordion-card.open {
  border-color: transparent;
  background: transparent;
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 8px 9px 0;
  cursor: pointer;
  user-select: none;
  min-height: 44px;
  box-sizing: border-box;
  gap: 16px;
}

.accordion-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.accordion-header-left .solution-title {
  font-family: var(--font-headline);
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.accordion-body .solution-detail {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-secondary, rgba(255, 255, 255, 0.76));
  margin-bottom: 14px;
}

.accordion-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted, rgba(255, 255, 255, 0.45));
  background: transparent;
  border: none;
  padding: 0;
  width: 24px;
  height: 24px;
  transition: color 0.15s ease;
  flex-shrink: 0;
}

.workflow-accordion-card:hover .accordion-toggle-btn {
  color: #ffffff;
}

.workflow-accordion-card.open .accordion-toggle-btn {
  color: #ffffff;
  background: transparent;
  border: none;
}

.accordion-toggle-btn .toggle-icon {
  font-family: var(--font-mono, monospace);
  font-weight: 500;
  font-size: 19px;
  line-height: 1;
}

.accordion-body {
  display: none;
  padding: 4px 8px 16px 0;
  border-top: none;
  background: transparent;
}

.workflow-accordion-card.open .accordion-body {
  display: block;
  animation: fadeInAccordion 0.2s ease-out;
}

@keyframes fadeInAccordion {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}

.progression-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.prog-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  background: transparent;
  border: none;
}

.prog-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  width: fit-content;
  padding: 2.5px 7px;
}

.prog-tag.tag-today {
  color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.prog-tag.tag-seed {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.1);
}

.prog-tag.tag-longterm {
  color: #000000;
  background: #ffffff;
}

.prog-col p {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

/* ==========================================================================
   SLIDE 5: UNIT MARGIN WALK
   ========================================================================== */

.margin-walk-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-top: 8px;
}

.margin-card {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 36px;
}

.margin-card.elroy-card {
  border-color: var(--border-medium);
  background: rgba(255, 255, 255, 0.05);
}

.margin-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.margin-card-title {
  font-family: var(--font-headline);
  font-size: var(--title-card-size);
  font-weight: var(--title-card-weight);
  line-height: var(--title-card-line-height);
  letter-spacing: var(--title-card-letter-spacing);
  color: var(--title-color);
}

.margin-card-asp {
  font-size: 13px;
  color: var(--text-muted);
}

.bar-breakdown-stack {
  display: flex;
  height: 32px;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 28px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
}

.bar-seg {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  overflow: visible;
  white-space: nowrap;
  box-sizing: border-box;
}

.seg-dark { background: rgba(255, 255, 255, 0.15); color: var(--text-secondary); }
.seg-mid { background: rgba(255, 255, 255, 0.35); color: #fff; }
.seg-bright { background: #ffffff; color: #000; }

/* Semantic consistent categories for unit margin walk */
.seg-margin { background: #ffffff; color: #000000; }
.seg-spindle { background: #a1a1aa; color: #09090b; }
.seg-stock { background: #52525b; color: #ffffff; }
.seg-labor {
  background: #27272a;
  color: rgba(255, 255, 255, 0.85);
  border-right: 1px solid rgba(0, 0, 0, 0.4);
}

.cost-item-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.swatch {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  flex-shrink: 0;
}

.swatch-margin { background: #ffffff; }
.swatch-spindle { background: #a1a1aa; }
.swatch-stock { background: #52525b; }
.swatch-labor {
  background: #27272a;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.cost-item-row .pct {
  font-family: var(--font-mono);
  font-size: 13px;
  margin-left: 4px;
}

.pct-margin { color: #ffffff; }
.pct-spindle { color: #a1a1aa; }
.pct-stock { color: #71717a; }
.pct-labor { color: rgba(255, 255, 255, 0.48); }

.margin-sub-pct {
  font-size: 20px;
  font-family: var(--font-mono);
  font-weight: 500;
  margin-left: 6px;
}

.cost-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 0;
}

.cost-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--text-secondary);
}

.cost-item-row .val {
  font-family: var(--font-mono);
  font-weight: 600;
  color: #fff;
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.cost-item-row .val .pct {
  font-weight: 700;
  font-size: 13.5px;
}

.cost-item-row .val .dollar {
  color: var(--text-secondary);
  font-weight: 400;
  font-size: 13px;
}

.margin-calc-box {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.calc-row .calc-val {
  font-family: var(--font-mono);
  font-weight: 600;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.calc-divider {
  height: 1px;
  background: var(--border-medium);
  margin: 4px 0 2px;
}

.calc-profit-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 2px;
}

.calc-profit-row .profit-label {
  font-family: var(--font-headline);
  font-size: 22px;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.calc-profit-row .profit-val {
  font-family: var(--font-headline);
  font-size: 38px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1;
}

.calc-profit-row .profit-pct {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-left: 6px;
}

/* ==========================================================================
   SLIDE 6: ASTRO OS
   ========================================================================== */

.astro-architecture-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 14px;
}

.astro-module-card {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.25s;
}

.astro-module-card:hover {
  border-color: var(--border-medium);
  background: var(--card-bg-hover);
  transform: translateY(-3px);
}

.astro-module-card h4 {
  font-family: var(--font-headline);
  font-size: var(--title-card-size);
  font-weight: var(--title-card-weight);
  line-height: var(--title-card-line-height);
  letter-spacing: var(--title-card-letter-spacing);
  color: var(--title-color);
  margin-bottom: 8px;
}

.astro-module-card p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* ==========================================================================
   SLIDE 7: HOW IT SHAKES OUT
   ========================================================================== */

.cogs-compare-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.cogs-box {
  padding: 28px 32px;
  border-radius: 14px;
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cogs-box.highlight {
  border-color: var(--border-medium);
  background: rgba(255, 255, 255, 0.05);
}

.cogs-box .label-group h3 {
  font-family: var(--font-headline);
  font-size: var(--title-card-size);
  font-weight: var(--title-card-weight);
  line-height: var(--title-card-line-height);
  letter-spacing: var(--title-card-letter-spacing);
  color: var(--title-color);
  margin-bottom: 4px;
}

.cogs-box .label-group p {
  font-size: 13px;
  color: var(--text-muted);
}

.cogs-box .cogs-price {
  font-family: var(--font-headline);
  font-size: 44px;
  font-weight: 600;
  color: #fff;
}

.strategy-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.strategy-card {
  padding: 36px;
  border-radius: 14px;
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
}

.strategy-card h3 {
  font-family: var(--font-headline);
  font-size: var(--title-card-size);
  font-weight: var(--title-card-weight);
  line-height: var(--title-card-line-height);
  letter-spacing: var(--title-card-letter-spacing);
  color: var(--title-color);
  margin-bottom: 12px;
}

.strategy-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.strategy-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

/* ==========================================================================
   APPENDIX A2: CAPEX REQUIREMENTS
   ========================================================================== */

.capex-container-split {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: center;
}

.capex-media-col,
.capex-left-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.machine-photo-card {
  background: #000;
  border: 1px solid var(--border-subtle);
  border-radius: 0;
  overflow: hidden;
  position: relative;
}

.machine-photo-card img {
  width: 100%;
  height: auto;
  display: block;
  filter: contrast(105%);
}

.machine-photo-card .machine-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.88);
  padding: 5px 12px;
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-white);
  border: 1px solid var(--border-medium);
}

.capex-details-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.financing-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.finance-box {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 0;
  padding: 16px;
}

.finance-box .title {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.finance-box .num {
  font-family: var(--font-headline);
  font-size: 20px;
  font-weight: 500;
  color: #fff;
}

.utilization-tier-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.util-row {
  display: grid;
  grid-template-columns: 140px 1fr 180px;
  align-items: center;
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 0;
  padding: 16px 20px;
  gap: 20px;
}

.util-row.highlight {
  border-color: var(--border-medium);
  background: rgba(255, 255, 255, 0.05);
}

.util-row .tier-name {
  font-family: var(--font-headline);
  font-size: var(--title-subcard-size);
  font-weight: var(--title-subcard-weight);
  color: var(--title-color);
}

.util-bar-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 0;
  overflow: hidden;
}

.util-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: #ffffff;
}

.util-row .rev-num {
  font-family: var(--font-headline);
  font-size: 20px;
  font-weight: 500;
  text-align: right;
  color: #fff;
}

/* ==========================================================================
   SLIDE 7: MARKET SIZE & FUTURE ROBOTICS WAVE
   ========================================================================== */

.market-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 14px;
}

.market-card {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 24px 22px;
  text-align: left;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
}

.market-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-medium);
  background: var(--card-bg-hover);
}

.market-card .stat-num {
  font-family: var(--font-headline);
  font-size: 48px;
  font-weight: 500;
  line-height: 1;
  color: #fff;
  margin-bottom: 10px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.market-card .stat-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.market-card .stat-desc {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-secondary);
  flex: 1;
}

/* Full-Width Future Horizon Wave Card across the bottom */
.market-wave-card {
  margin-top: 18px;
  width: 100%;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 22px 28px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: center;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.market-wave-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: rgba(255, 255, 255, 0.35);
}

.market-wave-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.045);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.wave-card-stat-col {
  display: flex;
  flex-direction: column;
}

.wave-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
  width: fit-content;
}

.wave-pulse-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
}

.wave-stat-num {
  font-family: var(--font-headline);
  font-size: 52px;
  font-weight: 500;
  line-height: 1;
  color: #fff;
  margin-bottom: 6px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.wave-stat-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wave-card-body-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.wave-card-title {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  color: #ffffff;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.wave-card-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
}

/* ==========================================================================
   CITATION SYSTEM ([01], [02], TOOLTIP POPOVER)
   ========================================================================== */

.citation-mark {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  vertical-align: top;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: #d4d4d8;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  padding: 1px 5px;
  line-height: 1.2;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: all 0.2s ease;
  user-select: none;
}

.citation-mark:hover,
.citation-mark:focus-visible,
.citation-mark.active {
  color: #000000;
  background: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.35);
  outline: none;
}

/* Global Floating Citation Tooltip */
#citation-tooltip {
  position: fixed;
  z-index: 10000;
  width: 340px;
  max-width: calc(100vw - 32px);
  background: rgba(12, 14, 18, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05);
  pointer-events: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), 
              visibility 0.18s;
  text-align: left;
}

#citation-tooltip.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.citation-tip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.citation-tip-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 2px 7px;
  border-radius: 3px;
  white-space: nowrap;
}

.citation-tip-pub {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.citation-tip-title {
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.35;
  color: #ffffff;
  margin-bottom: 8px;
}

.citation-tip-snippet {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.citation-tip-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.citation-tip-link:hover {
  color: #000000;
  background: #ffffff;
  border-color: #ffffff;
  text-decoration: none;
}

/* ==========================================================================
   SLIDE 10: ROADMAP — PARALLEL EXPANSION TRACKS (SWIMLANES)
   ========================================================================== */

.roadmap-swimlanes {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 14px;
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.12));
  background: rgba(0, 0, 0, 0.45);
}

.swimlanes-header {
  display: grid;
  grid-template-columns: 210px 1fr 1fr 1fr;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.15));
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted, rgba(255, 255, 255, 0.5));
}

.swimlanes-header > div {
  padding: 12px 18px;
  border-right: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.swimlanes-header > div:last-child {
  border-right: none;
}

.swimlanes-header .stage-tag {
  font-size: 10px;
  color: var(--text-muted, rgba(255, 255, 255, 0.4));
  letter-spacing: 0.08em;
}

.swimlanes-header .stage-name {
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.03em;
}

.swimlane-row {
  display: grid;
  grid-template-columns: 210px 1fr 1fr 1fr;
  border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  transition: background 0.2s ease;
}

.swimlane-row:last-child {
  border-bottom: none;
}

.swimlane-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.swimlane-row .col-vector {
  padding: 13px 18px;
  border-right: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.swimlane-row .vector-idx {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.05em;
  padding-top: 1px;
}

.swimlane-row .vector-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.swimlane-row .vector-title {
  font-family: var(--font-headline, serif);
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.swimlane-row .vector-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.01em;
}

.swimlane-row .stage-cell {
  padding: 12px 18px;
  border-right: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.swimlane-row .stage-cell:last-child {
  border-right: none;
}

.swimlane-row .stage-cell p {
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
}

.swimlane-row .stage-cell.current-wedge {
  background: rgba(255, 255, 255, 0.03);
}

.swimlane-row .stage-cell.current-wedge p {
  color: #ffffff;
  font-weight: 500;
}

.stage-chip-wedge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  padding: 2px 6px;
  width: fit-content;
  margin-bottom: 5px;
}

.stage-chip-wedge::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  background: #ffffff;
}

@media screen and (max-width: 960px) {
  .roadmap-swimlanes {
    overflow-x: auto;
  }
  .swimlanes-header, .swimlane-row {
    min-width: 780px;
  }
}

/* ==========================================================================
   SLIDE 11: TEAM
   ========================================================================== */

.team-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 32px;
  align-items: stretch;
  width: 100%;
}

.team-founder-card {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.team-founder-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.team-photo-wrap {
  position: relative;
  width: 150px;
  height: 150px;
  margin-bottom: 20px;
}

.team-photo-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  display: block;
}

.team-company-pill {
  position: absolute;
  bottom: 0;
  right: 4px;
  background: #111111;
  border: 1px solid var(--border-medium);
  border-radius: 100px;
  padding: 3px 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.team-founder-name {
  font-family: var(--font-headline);
  font-size: var(--title-card-size);
  font-weight: var(--title-card-weight);
  line-height: var(--title-card-line-height);
  letter-spacing: var(--title-card-letter-spacing);
  color: var(--title-color);
  margin-bottom: 4px;
}

.team-founder-role {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.team-founder-location {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}

.team-founder-bio {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 20px;
  text-align: left;
}

.team-founder-contact {
  margin-top: auto;
  width: 100%;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.team-founder-contact a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s;
}

.team-founder-contact a:hover {
  color: #fff;
}

.team-details-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.team-metrics-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.team-stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.team-stat-card.highlight {
  border-color: rgba(255, 255, 255, 0.18);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.04) 0%, rgba(0, 0, 0, 0.5) 100%);
}

.team-stat-num {
  font-family: var(--font-headline);
  font-size: clamp(32px, 3.2vw, 42px);
  font-weight: 500;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 8px;
}

.team-stat-label {
  font-family: var(--font-headline);
  font-size: var(--title-subcard-size);
  font-weight: var(--title-subcard-weight);
  color: var(--title-color);
  margin-bottom: 6px;
}

.team-stat-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.team-exp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  flex: 1;
}

.team-exp-grid.single-card {
  grid-template-columns: 1fr;
}

.team-exp-card {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
}

.team-exp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.team-exp-card h4 {
  font-family: var(--font-headline);
  font-size: var(--title-subcard-size);
  font-weight: var(--title-subcard-weight);
  color: var(--title-color);
  margin-bottom: 8px;
  line-height: 1.3;
}

.team-exp-card p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* ==========================================================================
   SLIDE 12: RAISING PRE-SEED
   ========================================================================== */

.raise-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 12px;
}

.raise-pillar {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 36px;
}

.raise-pillar-header {
  font-family: var(--font-headline);
  font-size: var(--title-card-size);
  font-weight: var(--title-card-weight);
  line-height: var(--title-card-line-height);
  letter-spacing: var(--title-card-letter-spacing);
  color: var(--title-color);
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.raise-items-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.raise-item-box {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.raise-item-num {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  padding-top: 2px;
}

.raise-item-content h4 {
  font-family: var(--font-headline);
  font-size: var(--title-subcard-size);
  font-weight: var(--title-subcard-weight);
  line-height: var(--title-subcard-line-height);
  letter-spacing: var(--title-subcard-letter-spacing);
  color: var(--title-color);
  margin-bottom: 4px;
}

.raise-item-content p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* ==========================================================================
   SLIDE 12: STEP-BY-STEP COST BREAKDOWN TABLE
   ========================================================================== */

.cost-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-top: 8px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--card-bg);
}

.breakdown-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-align: left;
}

.breakdown-table th {
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.8);
  border-bottom: 1px solid var(--border-subtle);
}

.breakdown-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.breakdown-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.breakdown-table .stage-col {
  font-family: var(--font-headline);
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
}

.breakdown-table .trad-col {
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}

.breakdown-table .friction-col {
  color: var(--text-muted);
  max-width: 320px;
  line-height: 1.4;
}

.breakdown-table .elroy-proc-col {
  color: #ffffff;
  max-width: 340px;
  line-height: 1.4;
}

.breakdown-table .elroy-cost-col {
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
}

.breakdown-table .savings-col {
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
}

.breakdown-table tr.total-row td {
  background: rgba(255, 255, 255, 0.05);
  font-weight: 600;
  font-size: 13px;
  border-top: 1px solid var(--border-medium);
  border-bottom: none;
}

/* ==========================================================================
   SLIDE 11: THANK YOU
   ========================================================================== */

#slide-11,
.slide-thank-you {
  background: #000000 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.thank-you-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 760px;
  padding: 40px;
  position: relative;
  z-index: 10;
}

.thank-you-logo {
  height: 44px;
  width: auto;
  margin-bottom: 28px;
  opacity: 0.95;
}

.thank-you-title {
  font-family: var(--font-headline);
  font-size: var(--title-headline-size);
  font-weight: var(--title-headline-weight);
  letter-spacing: var(--title-headline-letter-spacing);
  color: var(--title-color);
  line-height: var(--title-headline-line-height);
  margin-bottom: 20px;
}

.thank-you-subtitle {
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 36px;
  font-weight: 300;
}

.thank-you-contact-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 14px 32px;
  border: 1px solid var(--border-subtle);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.03);
}

.thank-you-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #ffffff;
}

.thank-you-contact-item.link {
  color: var(--link-blue);
  text-decoration: none;
}

.thank-you-contact-item.link:hover {
  color: var(--link-blue-hover);
  text-decoration: underline;
}

.thank-you-contact-row .sep {
  color: var(--text-muted);
}

.thank-you-location {
  margin-top: 24px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ==========================================================================
   SLIDE 12: APPENDIX TABLE OF CONTENTS
   ========================================================================== */

.appendix-toc {
  width: 100%;
  max-width: 980px;
  display: flex;
  flex-direction: column;
  margin-top: 12px;
  border-top: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.12));
  border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.12));
}

.toc-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted, rgba(255, 255, 255, 0.4));
}

.toc-col-head-page {
  text-align: right;
}

.toc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.toc-item:last-child {
  border-bottom: none;
}

.toc-item:hover {
  background: rgba(255, 255, 255, 0.035);
  padding-left: 24px;
  padding-right: 24px;
}

.toc-item-left {
  display: flex;
  align-items: baseline;
  gap: 24px;
  flex-shrink: 0;
}

.toc-item-index {
  font-family: var(--font-mono, monospace);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  min-width: 32px;
  transition: color 0.2s ease;
}

.toc-item:hover .toc-item-index {
  color: #ffffff;
}

.toc-item-title {
  font-family: var(--font-headline);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: #ffffff;
  transition: color 0.2s ease;
}

.toc-leader {
  flex: 1;
  height: 1px;
  margin: 0 24px;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.22);
  position: relative;
  top: -2px;
  transition: border-color 0.2s ease;
}

.toc-item:hover .toc-leader {
  border-bottom-color: rgba(255, 255, 255, 0.6);
}

.toc-item-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.toc-page-num {
  font-family: var(--font-mono, monospace);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.2s ease;
}

.toc-item:hover .toc-page-num {
  color: #ffffff;
}

.toc-arrow {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.35);
  transition: transform 0.2s ease, color 0.2s ease;
}

.toc-item:hover .toc-arrow {
  transform: translateX(4px);
  color: #ffffff;
}

@media screen and (max-width: 768px) {
  .toc-item {
    padding: 18px 12px;
  }
  .toc-leader {
    display: none;
  }
  .toc-item-title {
    font-size: 17px;
  }
  .toc-item-left {
    gap: 14px;
  }
}

/* ==========================================================================
   SLIDE 16: INTERACTIVE COMPOUNDING & SPINDLE MODEL
   ========================================================================== */

.model-slide-wrap {
  max-width: 1280px;
  gap: 12px;
}

.model-top-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.model-reset-btn {
  background: #ffffff;
  color: #000000;
  border: 1px solid #000000;
  border-radius: 0;
  padding: 7px 14px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
}

.model-reset-btn:hover {
  background: #e2e8f0;
}

.model-controls-bar {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 16px;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  padding: 10px 16px;
  user-select: none;
}

.model-ctrl-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.model-ctrl-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.model-ctrl-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.model-ctrl-val {
  font-size: 11px;
  font-weight: 600;
  color: #ffffff;
}

.model-btn-group {
  display: flex;
  gap: 0;
}

.model-seg-btn {
  background: #000000;
  color: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: 0;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.model-seg-btn + .model-seg-btn {
  border-left: none;
}

.model-seg-btn.active {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

.slider-track-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 12px;
}

.model-range-input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.18);
  outline: none;
  border-radius: 0;
  margin-top: 4px;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.slider-benchmark {
  position: absolute;
  top: 1px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  z-index: 2;
}

.benchmark-tick {
  width: 1.5px;
  height: 12px;
  background: #ffffff;
  opacity: 0.9;
}

.benchmark-tag {
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  margin-top: 2px;
}

.model-range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  background: #ffffff;
  border: 1px solid #000000;
  border-radius: 0;
  cursor: pointer;
}

.model-stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-medium);
  background: #000000;
}

.stepper-btn {
  background: #ffffff;
  color: #000000;
  border: none;
  width: 26px;
  height: 26px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stepper-btn:hover {
  background: #e2e8f0;
}

.stepper-val {
  min-width: 38px;
  text-align: center;
  font-family: var(--font-headline);
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
}

.model-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.model-kpi-card {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  padding: 10px 14px;
}

.model-kpi-card.highlight {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-medium);
}

.model-kpi-card .kpi-lbl {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.model-kpi-card .kpi-val {
  font-family: var(--font-headline);
  font-size: 21px;
  font-weight: 500;
  color: #ffffff;
  line-height: 1.15;
}

.model-kpi-card .kpi-sub {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 3px;
}

.model-main-split {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 14px;
  align-items: stretch;
  min-height: 380px;
}

.model-assumptions-panel,
.model-schedule-panel {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  position: relative;
}

.panel-header-bar {
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 31px;
  flex-shrink: 0;
}

.unit-breakdown-list {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.unit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-secondary);
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.unit-row .u-val {
  color: #ffffff;
  font-weight: 500;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.unit-row.total-opex {
  color: #ffffff;
  font-weight: 600;
  padding-top: 8px;
}

.unit-row.gross-rev {
  color: #ffffff;
  font-weight: 600;
}

.unit-row.net-profit {
  border-bottom: none;
  padding-top: 8px;
  color: #ffffff;
  font-weight: 600;
  font-size: 13px;
}

.model-table-scroll {
  position: absolute;
  top: 31px;
  left: 0;
  right: 0;
  bottom: 0;
  overflow-y: auto;
}

.compounding-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.compounding-table th {
  position: sticky;
  top: 0;
  background: #0d0d0d;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 5px 8px;
  border-bottom: 1px solid var(--border-medium);
  z-index: 2;
  white-space: nowrap;
}

.compounding-table th:first-child,
.compounding-table td:first-child {
  text-align: left;
}

.compounding-table td:nth-child(2),
.compounding-table th:nth-child(2) {
  text-align: center;
}

.compounding-table td {
  padding: 4.5px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.compounding-table tr.yr-divider td {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-weight: 600;
}

.compounding-table td.strong-col {
  color: #ffffff;
  font-weight: 600;
}

/* ==========================================================================
   RESPONSIVENESS
   ========================================================================== */

@media screen and (max-width: 1024px) {
  .slide { padding: 0 40px; }
  .slide-headline, .thank-you-title, .slide-quote-huge { font-size: 28px; }
  .labor-friction-grid { grid-template-columns: repeat(3, 1fr); }
  .china-friction-grid { grid-template-columns: 1fr; }
  .elroy-dual-takeaway { flex-direction: column; align-items: flex-start; gap: 8px; }
  .market-cards-row { grid-template-columns: 1fr; gap: 16px; }
  .market-wave-card { grid-template-columns: 1fr; gap: 16px; padding: 20px; }
  .roadmap-timeline-grid { grid-template-columns: repeat(2, 1fr); }
  .astro-architecture-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; gap: 24px; }
  .team-metrics-row, .team-exp-grid { grid-template-columns: 1fr; }
  .capex-container-split { grid-template-columns: 1fr; }
}

@media screen and (max-width: 680px) {
  .market-cards-row { grid-template-columns: 1fr; }
}

/* Height-constrained viewports (laptops, split-screen, smaller displays) */
@media screen and (max-height: 850px) {
  .slide::before {
    min-height: 120px;
  }
  .slide::after {
    min-height: 48px;
  }
  .slide-headline {
    margin-bottom: 12px;
  }
  .slide-subtitle {
    margin-bottom: 16px !important;
  }
  .market-card {
    padding: 18px 18px;
  }
  .market-card .stat-num {
    font-size: 38px;
    margin-bottom: 6px;
  }
  .market-card .stat-name {
    margin-bottom: 8px;
  }
  .market-card .stat-desc {
    font-size: 13px;
    line-height: 1.45;
  }
  .market-wave-card {
    margin-top: 12px;
    padding: 16px 20px;
    gap: 20px;
    grid-template-columns: 200px 1fr;
  }
  .wave-stat-num {
    font-size: 42px;
    margin-bottom: 4px;
  }
  .wave-card-title {
    font-size: 14.5px;
    margin-bottom: 4px;
  }
  .wave-card-desc {
    font-size: 12.5px;
    line-height: 1.45;
  }
  .citation-mark {
    font-size: 10px;
    padding: 1px 4px;
    margin-top: 2px;
  }
  .workflow-row {
    padding: 8px 18px;
  }
  .workflow-flow-grid {
    gap: 6px;
  }
}

@media screen and (max-height: 720px) {
  .slide {
    padding-left: 60px;
    padding-right: 60px;
  }
  .slide::before {
    min-height: 120px;
  }
  .slide::after {
    min-height: 40px;
  }
  .workflow-row {
    padding: 7px 16px;
  }
  .workflow-manual .step-name {
    font-size: 14px;
  }
  .workflow-autonomous .solution-title {
    font-size: 13.5px;
  }
  .workflow-autonomous .solution-detail {
    font-size: 12px;
  }
}

/* ==========================================================================
   PITCH AUTH GATE & VIEWER STATUS STYLES
   ========================================================================== */

#pitch-auth-gate {
  position: fixed;
  inset: 0;
  background: #000000;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
}

#pitch-auth-gate .bg-botanical-specimen {
  z-index: 1;
  opacity: 0.28;
}

.auth-gate-card {
  position: relative;
  z-index: 10;
  background: #09090b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  width: 100%;
  max-width: 440px;
  padding: 36px 32px;
  text-align: left;
  box-sizing: border-box;
  animation: authFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.auth-gate-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.auth-logo-img {
  height: 26px;
  width: auto;
  display: block;
}

.auth-logo-text {
  font-family: var(--font-headline);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #fff;
}

.auth-logo-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-gate-title {
  font-family: var(--font-headline);
  font-size: 24px;
  font-weight: 500;
  color: #fff;
  margin: 0 0 8px;
  line-height: 1.2;
}

.auth-gate-desc {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0 0 24px;
}

.auth-gate-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-input-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.auth-input-group label .opt {
  text-transform: lowercase;
  color: #666;
  font-weight: normal;
}

.auth-input-group input {
  width: 100%;
  box-sizing: border-box;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: #fff;
  padding: 12px 14px;
  font-size: 14px;
  font-family: var(--font-body);
  transition: border-color 0.2s;
}

.auth-input-group input:focus {
  outline: none;
  border-color: #ffffff;
}

.auth-submit-btn {
  background: #ffffff;
  color: #000000;
  border: none;
  border-radius: 6px;
  padding: 13px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity 0.2s;
  margin-top: 6px;
}

.auth-submit-btn:hover:not(:disabled) {
  opacity: 0.88;
}

.auth-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.auth-gate-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 18px;
}

.auth-gate-success {
  text-align: center;
  padding: 16px 0;
}

.auth-gate-success .success-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 20px;
}

.auth-gate-success h3 {
  color: #fff;
  font-size: 18px;
  margin: 0 0 8px;
}

.auth-gate-success p {
  color: var(--text-secondary);
  font-size: 13.5px;
  line-height: 1.5;
}

.auth-direct-link {
  display: inline-block;
  margin-top: 16px;
  background: #fff;
  color: #000;
  text-decoration: none;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 13px;
}

.auth-gate-spinner {
  width: 32px;
  height: 32px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-top-color: #fff;
  border-radius: 50%;
  animation: authSpin 0.7s linear infinite;
  margin: 0 auto 16px;
}

@keyframes authSpin {
  to { transform: rotate(360deg); }
}

.auth-gate-status {
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
}

/* Floating Viewer Pill */
#pitch-viewer-pill {
  display: none !important;
}

.viewer-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
}

.viewer-name {
  color: #fff;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.viewer-admin-badge {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 6px;
  border-radius: 3px;
  text-decoration: none;
}
.viewer-admin-badge:hover { color: #fff; }

.viewer-logout-btn {
  background: none;
  border: none;
  color: #666;
  font-size: 14px;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
}
.viewer-logout-btn:hover { color: #fff; }

/* Mobile Tap Navigation Zones */
.mobile-tap-left, .mobile-tap-right {
  display: none;
}

@media screen and (max-width: 768px), screen and (pointer: coarse) {
  .mobile-tap-left, .mobile-tap-right {
    display: block;
    position: fixed;
    top: 60px;
    bottom: 60px;
    width: 15%;
    z-index: 100;
  }
  .mobile-tap-left { left: 0; }
  .mobile-tap-right { right: 0; }
}

/* Mobile Landscape Prompt Overlay */
#mobile-portrait-warning {
  display: none;
}

@media screen and (max-width: 768px) and (orientation: portrait) {
  #mobile-portrait-warning {
    display: flex;
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 999998;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px;
  }
  .portrait-icon {
    font-size: 32px;
    margin-bottom: 16px;
    animation: rotateHint 2s infinite ease-in-out;
  }
  @keyframes rotateHint {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(90deg); }
  }
  .portrait-title {
    font-family: var(--font-headline);
    font-size: 18px;
    color: #fff;
    margin: 0 0 8px;
  }
  .portrait-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
  }
  .btn-portrait-dismiss {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #aaa;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 12px;
    cursor: pointer;
  }
}

/* ==========================================================================
   PRINT / PDF EXPORT STYLES (16:9 Widescreen Presentation Pages)
   ========================================================================== */
@media print {
  @page {
    size: 1920px 1080px;
    margin: 0;
  }

  *, *::before, *::after {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    box-sizing: border-box !important;
  }

  html, body {
    width: 1920px !important;
    min-width: 1920px !important;
    max-width: 1920px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #000000 !important;
    color: #ffffff !important;
    overflow: visible !important;
  }

  /* Hide interactive and overlay elements */
  #password-gate,
  #pitch-auth-gate,
  #mobile-portrait-warning,
  .floating-logo,
  .floating-slide-counter,
  .nav-arrow,
  .deck-nav-bar,
  footer,
  .mobile-tap-left,
  .mobile-tap-right,
  .step-hover-card,
  #cit-hover-card,
  .citation-tooltip-box,
  .portrait-warning-modal,
  .admin-floating-btn,
  .hero-start-btn,
  .flat-square-btn {
    display: none !important;
    visibility: hidden !important;
  }

  /* Linear document layout */
  #deck-app,
  .slide-stage {
    position: static !important;
    display: block !important;
    width: 1920px !important;
    height: auto !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Each slide is an exact 1920x1080 16:9 page */
  .slide {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    width: 1920px !important;
    height: 1080px !important;
    min-height: 1080px !important;
    max-height: 1080px !important;
    padding: 60px 120px !important;
    margin: 0 !important;
    overflow: hidden !important;
    page-break-after: always !important;
    break-after: page !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    background: #000000 !important;
  }

  .slide:last-child,
  .slide:last-of-type {
    page-break-after: auto !important;
    break-after: auto !important;
  }

  .slide-content-wrap {
    width: 100% !important;
    max-width: 1400px !important;
  }

  .slide-text-only .slide-content-wrap,
  #slide-2 .slide-content-wrap,
  #slide-3 .slide-content-wrap {
    max-width: 1400px !important;
  }

  /* Spacers for vertical alignment */
  .slide::before {
    content: '' !important;
    display: block !important;
    flex: 1 0 auto !important;
    min-height: 60px !important;
    max-height: 120px !important;
  }

  .slide::after {
    content: '' !important;
    display: block !important;
    flex: 1 0 auto !important;
    min-height: 40px !important;
  }

  #slide-1::before,
  #slide-1::after,
  #slide-2::before,
  #slide-2::after,
  #slide-3::before,
  #slide-3::after,
  .slide-thank-you::before,
  .slide-thank-you::after {
    display: none !important;
  }

  #slide-1,
  #slide-2,
  #slide-3,
  .slide-thank-you {
    justify-content: center !important;
    align-items: center !important;
  }

  #slide-1 .hero-bottom-detail-box {
    position: absolute !important;
    bottom: 44px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: #ffffff !important;
    color: #000000 !important;
    padding: 14px 32px !important;
    text-align: center !important;
  }

  #slide-2 .slide-quote-huge,
  #slide-3 .slide-quote-huge {
    font-size: 56px !important;
    line-height: 1.22 !important;
  }

  /* Slide 4 (Labor & China Friction Grids) */
  #slide-4 .labor-friction-grid {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 12px !important;
    margin-bottom: 24px !important;
  }

  #slide-4 .china-friction-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px !important;
  }

  /* Slide 7 (Market Opportunity) */
  #slide-7 .market-cards-row {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
    margin-top: 14px !important;
  }

  #slide-7 .market-wave-card {
    display: grid !important;
    grid-template-columns: 220px 1fr !important;
    gap: 32px !important;
    padding: 24px 28px !important;
  }

  /* Slide 9 (Founder) */
  #slide-9 .team-grid {
    display: grid !important;
    grid-template-columns: 320px 1fr !important;
    gap: 32px !important;
    width: 100% !important;
    align-items: stretch !important;
  }

  #slide-9 .team-metrics-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
  }

  #slide-9 .team-exp-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  /* Slide 14 (Appendix A2): Remove machine photo image in PDF */
  #slide-14 .capex-media-col {
    display: none !important;
  }

  #slide-14 .capex-container-split {
    display: block !important;
    max-width: 1040px !important;
    margin: 0 auto !important;
  }

  #slide-14 .financing-mini-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    margin-bottom: 24px !important;
  }

  .bg-botanical-specimen {
    position: absolute !important;
    pointer-events: none !important;
  }
}
