/* ========================================
   DELEGATE — DIRECTION C: THE TERRAIN
   Full-Viewport Pitch Deck
   ======================================== */

/* --- RESET & BASE --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Ground */
  --ground: #EDEEE8;
  --ground-light: #F4F5F0;
  --ground-dark: #E2E3DC;

  /* Elevation greens */
  --green-light: #C8D4B8;
  --green-mid: #7A9B68;
  --green-deep: #3D5A34;

  /* Water / data */
  --water: #6B8EA3;
  --water-light: #8FAEBE;
  --water-dark: #4A6E82;

  /* Contour lines */
  --contour: #C4A97D;
  --contour-light: #D4C4A0;
  --contour-dark: #A8895E;

  /* Alert / heat */
  --amber: #D4862F;
  --amber-light: #E8A860;

  /* Text */
  --ink: #2A2319;
  --ink-light: #5A4F3E;
  --ink-muted: #8A7F6E;

  /* Fonts */
  --font-headline: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Space Mono', monospace;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ground);
  overflow-x: hidden;
}

::selection {
  background: var(--green-light);
  color: var(--ink);
}

/* ========================================
   SCROLL-SNAP DECK
   ======================================== */
.deck {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
}

.slide {
  width: 100vw;
  height: 100vh;
  scroll-snap-align: start;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.slide-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.slide-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  width: 100%;
  padding: 0 48px;
}

.slide-content--center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ========================================
   SLIDE INDICATOR DOTS
   ======================================== */
.slide-dots {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.slide-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--contour);
  opacity: 0.35;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  padding: 0;
}

.slide-dot:hover {
  opacity: 0.7;
}

.slide-dot.active {
  background: var(--amber);
  opacity: 1;
  transform: scale(1.5);
}

/* ========================================
   SLIDE COUNTER
   ======================================== */
.slide-counter {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 100;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-muted);
  letter-spacing: 0.08em;
  transition: color 0.3s;
}

.slide-counter.on-dark {
  color: var(--contour-light);
}

/* ========================================
   NAV HINT
   ======================================== */
.nav-hint {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 100;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
  opacity: 0.5;
  transition: color 0.3s, opacity 0.3s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-hint.on-dark {
  color: var(--contour-light);
}

.nav-hint-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 1px solid currentColor;
  border-radius: 3px;
  font-size: 10px;
  line-height: 1;
}

/* ========================================
   SLIDE 1: THE MAP (Title)
   ======================================== */
.slide--map {
  background: var(--ground);
}

.slide-content--map {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.map-title {
  font-family: var(--font-headline);
  font-size: clamp(100px, 18vw, 220px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 16px;
  opacity: 0;
}

.map-subtitle {
  font-family: var(--font-body);
  font-size: clamp(18px, 2.5vw, 28px);
  color: var(--ink-light);
  margin-bottom: 24px;
  opacity: 0;
}

.map-coords {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--contour-dark);
  text-transform: uppercase;
  opacity: 0;
}

/* Agent nodes overlay on the map */
.agent-nodes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.agent-node-dot {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
}

.agent-node-dot::after {
  content: attr(data-label);
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  white-space: nowrap;
  text-transform: uppercase;
}

.agent-node-dot .node-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  animation: nodeGlow 3s ease-in-out infinite;
}

@keyframes nodeGlow {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.4; }
  50% { transform: translate(-50%, -50%) scale(1.4); opacity: 0.15; }
}

/* ========================================
   SLIDE 2: THE SHIFT
   ======================================== */
.slide--shift {
  background: var(--ground);
}

.contour-decoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
}

.contour-decoration--shift {
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 80px,
      var(--contour) 80px,
      var(--contour) 81px
    );
}

.shift-headline {
  font-family: var(--font-headline);
  font-size: clamp(40px, 7vw, 96px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(60px);
}

.shift-now {
  font-family: var(--font-headline);
  font-size: clamp(24px, 4vw, 48px);
  font-weight: 600;
  color: var(--amber);
  opacity: 0;
  transform: translateY(40px);
}

/* ========================================
   SLIDE 3: THE PROBLEM
   ======================================== */
.slide--problem {
  background: var(--ground);
  background-image:
    linear-gradient(135deg, rgba(200, 212, 184, 0.15) 0%, transparent 50%),
    linear-gradient(315deg, rgba(200, 212, 184, 0.1) 0%, transparent 50%);
}

.problem-warning {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  opacity: 0;
}

.problem-icon {
  font-size: 14px;
  color: var(--amber);
}

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

.problem-number {
  font-family: var(--font-headline);
  font-size: clamp(100px, 20vw, 280px);
  font-weight: 700;
  line-height: 0.9;
  color: var(--amber);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.problem-desc {
  font-family: var(--font-body);
  font-size: clamp(18px, 2.5vw, 28px);
  color: var(--ink-light);
  margin-bottom: 8px;
  opacity: 0;
}

.problem-punchline {
  font-family: var(--font-headline);
  font-size: clamp(24px, 3.5vw, 44px);
  font-weight: 700;
  color: var(--ink);
  opacity: 0;
}

/* ========================================
   SLIDE 4: THE EVOLUTION
   ======================================== */
.slide--evolution {
  background: var(--ground);
}

.slide-content--evolution {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  text-align: center;
}

.evolution-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.evolution-blocks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: 200px;
}

.evo-block {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  opacity: 0;
}

.evolution-unified {
  width: 140px;
  height: 140px;
  border-radius: 16px;
  background: var(--green-deep);
  position: relative;
  opacity: 0;
  transform: scale(0.5);
}

.evolution-unified::after {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 24px;
  border: 2px solid var(--green-mid);
  opacity: 0.3;
}

.evolution-label {
  font-family: var(--font-headline);
  font-size: clamp(24px, 3.5vw, 44px);
  font-weight: 700;
  color: var(--ink);
  opacity: 0;
}

.evolution-arrow {
  opacity: 0;
  flex-shrink: 0;
}

/* ========================================
   SLIDE 5: THE INSIGHT
   ======================================== */
.slide--insight {
  background: var(--green-deep);
}

.insight-text {
  font-family: var(--font-headline);
  font-size: clamp(40px, 7vw, 100px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ground);
}

.insight-char {
  display: inline-block;
  opacity: 0;
}

/* ========================================
   SLIDE 6: THE PRODUCT
   ======================================== */
.slide--product {
  background: var(--ground);
}

.product-title {
  font-family: var(--font-headline);
  font-size: clamp(80px, 16vw, 200px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 20px;
  opacity: 0;
  text-shadow: 0 0 80px rgba(212, 134, 47, 0);
  transition: text-shadow 1s;
}

.product-title.glow {
  text-shadow: 0 0 80px rgba(212, 134, 47, 0.3), 0 0 160px rgba(212, 134, 47, 0.1);
}

.product-sub {
  font-family: var(--font-body);
  font-size: clamp(18px, 2.5vw, 28px);
  color: var(--ink-light);
  line-height: 1.5;
  opacity: 0;
}

/* ========================================
   SLIDE 7: THE SETTLEMENT (How It Works)
   ======================================== */
.slide--settlement {
  background: var(--ground);
}

.slide-content--settlement {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.settlement-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--contour-dark);
  border: 1px solid var(--contour);
  padding: 4px 14px;
  margin-bottom: 60px;
  text-transform: uppercase;
  opacity: 0;
}

.settlement-trail {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 900px;
  width: 100%;
}

.settlement-waypoint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
  opacity: 0;
  transform: scale(0.8);
}

.waypoint-marker {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green-deep);
  color: white;
  font-family: var(--font-headline);
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.waypoint-marker::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px dashed var(--contour);
  opacity: 0.5;
}

.waypoint-text {
  font-family: var(--font-headline);
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 600;
  color: var(--ink);
  max-width: 180px;
}

.trail-line {
  flex: 1;
  height: 2px;
  background: var(--contour);
  position: relative;
  transform: scaleX(0);
  transform-origin: left;
}

.trail-line::before {
  content: '';
  position: absolute;
  top: -3px;
  left: 0;
  width: 100%;
  height: 8px;
  background: repeating-linear-gradient(
    90deg,
    var(--contour) 0px,
    var(--contour) 6px,
    transparent 6px,
    transparent 12px
  );
  opacity: 0.4;
}

/* ========================================
   SLIDE 8: AGENT PROFILE: ELLE
   ======================================== */
.slide--elle {
  background: var(--ground);
}

.slide-content--elle {
  display: flex;
  justify-content: center;
}

.elle-card {
  background: white;
  border: 1px solid var(--contour-light);
  border-radius: 12px;
  padding: 48px;
  max-width: 560px;
  width: 100%;
  position: relative;
  opacity: 0;
  transform: translateX(60px);
}

.elle-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--green-deep);
  border-radius: 12px 12px 0 0;
}

.elle-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.elle-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--amber);
  text-transform: uppercase;
  background: rgba(212, 134, 47, 0.08);
  padding: 4px 10px;
  border-radius: 4px;
}

.elle-id {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
}

.elle-name {
  font-family: var(--font-headline);
  font-size: clamp(48px, 8vw, 72px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 24px;
}

.elle-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--ground-dark);
  border-bottom: 1px solid var(--ground-dark);
}

.elle-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.elle-stat-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  text-transform: uppercase;
}

.elle-stat-value {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.elle-capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.elle-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--green-deep);
  background: rgba(61, 90, 52, 0.08);
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
}

.elle-note {
  font-family: var(--font-body);
  font-size: 16px;
  font-style: italic;
  color: var(--ink-light);
  padding-top: 16px;
  border-top: 1px dashed var(--contour-light);
}

/* ========================================
   SLIDE 9: THE CONFLUENCE
   ======================================== */
.slide--confluence {
  background: var(--ground);
}

.confluence-labels {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: 60px;
  margin-bottom: 20px;
}

.confluence-stream-label {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
}

.confluence-stream-label--mcp {
  color: var(--water);
  left: 0;
  top: 0;
}

.confluence-stream-label--a2a {
  color: var(--green-mid);
  right: 0;
  top: 0;
}

.confluence-stream-label--stripe {
  color: var(--amber);
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
}

.confluence-center-text {
  font-family: var(--font-headline);
  font-size: clamp(60px, 12vw, 160px);
  font-weight: 700;
  color: var(--ink);
  line-height: 0.9;
  margin-bottom: 20px;
  opacity: 0;
}

.confluence-sub {
  font-family: var(--font-body);
  font-size: clamp(16px, 2vw, 24px);
  color: var(--ink-light);
  line-height: 1.5;
  max-width: 500px;
  opacity: 0;
}

/* ========================================
   SLIDE 10: ELEVATION DATA (Market)
   ======================================== */
.slide--market {
  background: linear-gradient(135deg, var(--green-light) 0%, var(--green-mid) 100%);
}

.market-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(42, 35, 25, 0.5);
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0;
}

.market-number {
  font-family: var(--font-headline);
  font-size: clamp(100px, 20vw, 280px);
  font-weight: 700;
  line-height: 0.9;
  color: var(--amber);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.market-source {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-light);
  letter-spacing: 0.06em;
  margin-bottom: 48px;
  opacity: 0;
}

.market-readings {
  display: flex;
  gap: 48px;
}

.market-reading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  opacity: 0;
  transform: translateY(20px);
}

.reading-value {
  font-family: var(--font-mono);
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 700;
  color: var(--ink);
}

.reading-unit {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-light);
}

.reading-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  text-transform: uppercase;
}

/* ========================================
   SLIDE 11: THE FRONTIER (Builders)
   ======================================== */
.slide--frontier {
  background: var(--ground-light);
}

.frontier-headline {
  font-family: var(--font-headline);
  font-size: clamp(40px, 7vw, 96px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 24px;
  opacity: 0;
}

.frontier-math {
  font-family: var(--font-body);
  font-size: clamp(16px, 2vw, 24px);
  color: var(--ink-light);
  margin-bottom: 40px;
  opacity: 0;
}

.frontier-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  opacity: 0;
}

.frontier-badge-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--amber);
  text-transform: uppercase;
  background: rgba(212, 134, 47, 0.1);
  padding: 8px 20px;
  border-radius: 6px;
  border: 1px solid rgba(212, 134, 47, 0.25);
}

.frontier-badge-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid var(--amber);
  position: relative;
}

.frontier-badge-ring::after {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1.5px dashed var(--contour);
}

/* ========================================
   SLIDE 12: EXPEDITION 2026
   ======================================== */
.slide--expedition {
  background: var(--ground);
}

.compass-rose {
  margin-bottom: 40px;
  opacity: 0;
}

.compass-svg {
  width: 180px;
  height: 180px;
}

.compass-line,
.compass-letter,
.compass-needle {
  opacity: 0;
}

.expedition-title {
  font-family: var(--font-headline);
  font-size: clamp(40px, 7vw, 96px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 16px;
  opacity: 0;
}

.expedition-sub {
  font-family: var(--font-mono);
  font-size: clamp(14px, 1.5vw, 18px);
  color: var(--contour-dark);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
}

/* ========================================
   SLIDE 13: BASE CAMP (CTA)
   ======================================== */
.slide--basecamp {
  background: var(--ink);
}

.basecamp-statement {
  font-family: var(--font-headline);
  font-size: clamp(28px, 4.5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--ground);
  margin-bottom: 12px;
  opacity: 0;
}

.basecamp-need {
  font-family: var(--font-headline);
  font-size: clamp(20px, 3vw, 36px);
  font-weight: 600;
  color: var(--amber);
  margin-bottom: 48px;
  opacity: 0;
}

.basecamp-form {
  display: flex;
  gap: 0;
  max-width: 480px;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(196, 169, 125, 0.3);
  margin-bottom: 16px;
  opacity: 0;
}

.basecamp-input {
  flex: 1;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ground);
}

.basecamp-input::placeholder {
  color: var(--ink-muted);
}

.basecamp-input:focus {
  background: rgba(255, 255, 255, 0.1);
}

.basecamp-btn {
  padding: 16px 24px;
  background: var(--green-deep);
  border: none;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: white;
  white-space: nowrap;
  transition: background 0.2s;
}

.basecamp-btn:hover {
  background: var(--green-mid);
}

.basecamp-note {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(196, 169, 125, 0.4);
  letter-spacing: 0.04em;
  opacity: 0;
}

/* ========================================
   SLIDE 14: SUMMIT
   ======================================== */
.slide--summit {
  background: var(--green-deep);
}

.summit-text {
  font-family: var(--font-headline);
  font-size: clamp(48px, 10vw, 140px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ground);
  margin-bottom: 32px;
  opacity: 0;
}

.summit-stamp {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: rgba(237, 238, 232, 0.4);
  text-transform: uppercase;
  opacity: 0;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
  .slide-content {
    padding: 0 24px;
  }

  .slide-dots {
    right: 14px;
    gap: 8px;
  }

  .slide-dot {
    width: 6px;
    height: 6px;
  }

  .slide-counter {
    right: 14px;
    bottom: 14px;
    font-size: 11px;
  }

  .nav-hint {
    left: 14px;
    bottom: 14px;
    font-size: 10px;
  }

  .slide-content--evolution {
    flex-direction: column;
    gap: 32px;
  }

  .evolution-arrow {
    transform: rotate(90deg);
  }

  .settlement-trail {
    flex-direction: column;
    gap: 0;
  }

  .trail-line {
    width: 2px;
    height: 40px;
    transform: scaleY(0);
    transform-origin: top;
  }

  .trail-line::before {
    display: none;
  }

  .market-readings {
    flex-direction: column;
    gap: 24px;
  }

  .elle-card {
    padding: 28px;
  }

  .elle-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .basecamp-form {
    flex-direction: column;
  }

  .basecamp-btn {
    padding: 16px;
  }

  .confluence-labels {
    height: 80px;
  }
}
