:root {
  --navy-deep: #140A14;
  --navy: #1A0E1C;
  --navy-mid: #221428;
  --navy-light: #2C1C34;
  --purple: #B34D8E;
  --magenta: #B34D8E;
  --blue-accent: #3A6DB5;
  --gradient-start: #B34D8E;
  --gradient-mid: #7A5BA0;
  --gradient-end: #3A6DB5;
  --text-primary: #FFFFFF;
  --text-secondary: #8A90A4;
  --text-muted: #5E5570;
  --white: #FFFFFF;
  --border: rgba(50,34,60,0.5);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--navy-deep);
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ═══════ NAV ═══════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0.4rem 3rem;
  display: flex;
  align-items: center;
  background: var(--navy);
  transition: background 0.4s, box-shadow 0.4s;
}

nav.scrolled {
  background: var(--navy);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

nav .nav-logo {
  height: 77px;
  opacity: 0.95;
  transition: opacity 0.3s;
}

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

/* ═══════ HERO ═══════ */
.hero {
  position: relative;
  min-height: 70vh;
  padding: 8rem 3rem 12rem;
  background: var(--navy);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%; right: -10%;
  width: 60vw; height: 60vw;
  background: radial-gradient(ellipse, rgba(179,77,142,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4rem;
}

.hero-left {
  flex: 1;
  max-width: 620px;
}

.hero-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-label::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--magenta);
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 5.5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.hero-desc {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 520px;
  font-weight: 300;
}

.hero-right {
  flex: 0 0 320px;
  padding-top: 1rem;
}

.hero-subtitle {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.hero-meta-item {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.hero-meta-item span {
  color: var(--text-secondary);
  font-weight: 500;
}

/* ═══════ VIDEO OVERLAP ═══════ */
.video-section {
  position: relative;
  max-width: 1100px;
  margin: -7rem auto 0;
  padding: 0 3rem;
  z-index: 10;
}

.video-section::after {
  content: '';
  position: absolute;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  top: 33%;
  bottom: -20rem;
  background: #F5F7FA;
  z-index: -1;
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  background: #F5F7FA;
  box-shadow:
    0 40px 80px rgba(0,0,0,0.2),
    0 0 0 1px rgba(255,255,255,0.05);
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 1.2s ease;
}

.video-wrapper video.fading {
  opacity: 0;
}

.video-wrapper video#welcomeVideo2 {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 1.5s ease;
}

.video-quote {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.1rem, 2.2vw, 1.8rem);
  font-style: italic;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
  padding: 2rem 4rem;
  z-index: 1;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5), 0 1px 4px rgba(0,0,0,0.3);
  opacity: 1;
  transition: opacity 1s ease;
  pointer-events: none;
}

.video-quote.hidden { opacity: 0; }

/* Interactive last-frame */
.interactive-frame {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.5s ease;
  pointer-events: none;
  z-index: 2;
}

.interactive-frame.active {
  opacity: 1;
  pointer-events: auto;
}

.interactive-frame .frame-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.interactive-frame canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.frame-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  opacity: 1;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.frame-hint.hidden {
  opacity: 0;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(179,77,142,0.15) 0%, rgba(30,91,166,0.15) 100%),
    var(--navy);
}

.play-btn {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
}

.play-btn:hover {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.1);
  transform: scale(1.08);
}

.play-btn svg {
  width: 24px; height: 24px;
  fill: var(--white);
  margin-left: 3px;
}

/* ═══════ ROOTS / STATS ═══════ */
.roots-section {
  padding: 8rem 3rem 6rem;
  max-width: 100%;
  background: #F5F7FA;
  position: relative;
  overflow: visible;
  z-index: 11;
}

.roots-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4rem;
  max-width: 1280px;
  margin: 0 auto;
}

.roots-left {
  flex: 1;
  min-width: 0;
  max-width: 580px;
}

.roots-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 1.25rem;
}

.roots-text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 400;
  line-height: 1.45;
  color: var(--navy);
}

.roots-subtext {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  color: #555B70;
  margin-top: 1.5rem;
}

.roots-right {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 3rem;
}

.stat-col { padding-top: 0.5rem; }

.stat-col-line {
  width: 100%;
  height: 1px;
  background: #2A1E34;
  margin-bottom: 1rem;
}

.stat-item {}

.stat-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #555B70;
  margin-bottom: 0.6rem;
  font-family: 'Outfit', sans-serif;
}

.stat-value {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
  color: var(--navy);
}

.divider {
  max-width: 100%;
  padding: 0 3rem;
  background: var(--navy);
}

.divider-line {
  max-width: 1280px;
  margin: 0 auto;
  height: 1px;
  background: #2A1E34;
}


/* ═══════ QUOTE SECTION ═══════ */
.quote-section {
  background: var(--navy);
  padding: 5rem 3rem;
  position: relative;
  z-index: 11;
}
.quote-inner { max-width: 800px; margin: 0 auto; text-align: center; }
.quote-eyebrow {
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 2rem;
}
.quote-stage { position: relative; min-height: 8rem; }
.quote-line {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.5;
  color: var(--text-primary);
  opacity: 0;
  transition: opacity 0.8s ease;
  position: absolute;
  top: 0; left: 0; right: 0;
}
.quote-line.visible { opacity: 1; }
.quote-line.fading { opacity: 0; transition: opacity 1.2s ease; }
.quote-line .quote-highlight {
  color: var(--magenta);
  font-style: normal;
  font-weight: 600;
  transition: opacity 1.5s ease;
}
.quote-line.fading .quote-highlight { opacity: 1; transition: opacity 2s ease 0.5s; }

/* ═══════ VIDEO OVERLAY LIST ═══════ */
.video-overlay-list {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.vol-item {
  font-family: 'Outfit', sans-serif;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: rgba(245,247,250,0.7);
  background: rgba(20,14,24,0.45);
  backdrop-filter: blur(6px);
  padding: 0.4rem 0.8rem 0.4rem 1.1rem;
  border-radius: 4px;
  border-left: 2px solid var(--magenta);
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.5s ease, transform 0.5s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
  cursor: default;
}
.vol-item.visible { opacity: 1; transform: translateX(0); }
.vol-item:hover {
  background: rgba(20,14,24,0.75);
  border-left-color: var(--white);
  box-shadow: 0 0 16px rgba(179,77,142,0.2);
  color: rgba(255,255,255,1);
}

/* ═══════ CAROUSEL ═══════ */
.carousel-section {
  padding: 6rem 0 7rem;
  position: relative;
  overflow: hidden;
  background: #221428;
}

.carousel-container {
  position: relative;
  max-width: 840px;
  margin: 0 auto;
  padding: 0 1rem;
}

.interactive-container {
  background: var(--navy);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 1.5rem;
  position: relative;
}

.carousel-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 2.4/1;
  min-height: 420px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--navy);
  cursor: pointer;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  display: flex;
  pointer-events: none;
}

.carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.slide-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.slide-overlay canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Slide background images */
.slide-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Fish slide: no overlay */
.slide-video-fish {}

/* AI indicator */
.ai-indicator {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 15;
  font-family: 'Outfit', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--magenta);
  background: rgba(20,14,24,0.75);
  backdrop-filter: blur(6px);
  padding: 0.25rem 0.7rem;
  border-radius: 12px;
  border: 1px solid rgba(179,77,142,0.3);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.ai-indicator.visible { opacity: 1; }

/* Slide text overlay (inside game) */
.slide-text-overlay {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 3;
  background: rgba(20,14,24,0.3);
  backdrop-filter: blur(6px);
  padding: 1rem 1.4rem;
  border-radius: 8px;
  pointer-events: none;
  max-width: 360px;
}

.sto-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--white);
}

/* ═══════ CAROUSEL INFO (below controls, prominent) ═══════ */
.carousel-info { margin-top: 1.5rem; }

.carousel-info-panel {
  display: none;
  align-items: baseline;
  gap: 1.5rem;
}

.carousel-info-panel.active { display: flex; }

.ci-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  flex-shrink: 0;
  min-width: 200px;
}

.ci-text {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  font-weight: 300;
  flex: 1;
}

@media (max-width: 900px) {
  .carousel-info-panel { flex-direction: column; gap: 0.75rem; }
  .ci-label { min-width: auto; }
  .slide-text-overlay { max-width: 260px; bottom: 1rem; left: 1rem; padding: 0.8rem 1rem; }
  .interactive-container { padding: 1rem; }
}

.learn-more-btn {
  display: inline-block;
  padding: 0.7rem 1.8rem;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.4s, border-color 0.4s;
  background: none;
  z-index: 1;
}

.learn-more-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.4,0,0.2,1);
  z-index: -1;
}

.learn-more-btn:hover {
  border-color: transparent;
}

.learn-more-btn:hover::before {
  transform: scaleX(1);
}

/* Carousel Controls */
.carousel-controls {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.carousel-dots {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.carousel-dot {
  width: 10px; height: 10px;
  border-radius: 2px;
  background: rgba(255,255,255,0.15);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  border: none;
  padding: 0;
}

.carousel-dot.active {
  background: var(--white);
  transform: scale(1.1);
}

.carousel-dot:hover:not(.active) {
  background: rgba(255,255,255,0.35);
}

.carousel-progress {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.carousel-progress-bar {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
  border-radius: 2px;
}

.carousel-timer {
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  min-width: 2.5rem;
  text-align: right;
  transition: color 0.3s;
}
.carousel-timer.done {
  color: var(--magenta);
  animation: timerPulse 1s ease infinite;
}
@keyframes timerPulse {
  0%,100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ═══════ GAME OPTIONS PANEL ═══════ */
.game-options-panel {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.5rem 0.8rem;
  background: rgba(40,28,50,0.2);
  border-radius: 8px;
  border: 1px solid rgba(40,28,50,0.4);
  position: relative;
}
.game-options-title {
  position: absolute;
  top: -0.6rem; left: 0.8rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--navy-mid);
  padding: 0 0.4rem;
}
.game-options-panel .sliders-panel {
  border: none;
  background: none;
  padding: 0.3rem 0;
  min-width: auto;
}

.carousel-reset {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: none;
  border: 1px solid rgba(255,255,255,0.12);
  padding: 0.3rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  z-index: 10;
  transition: color 0.3s, border-color 0.3s;
}

.carousel-reset:hover {
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.3);
}

.game-control-hint {
  display: none !important;
}

/* Game hint - simple star + text */
.carousel-game-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
  text-align: center;
}
.carousel-game-hint .hint-star {
  font-size: 0.6rem;
  color: var(--magenta);
  line-height: 1;
}
.carousel-game-hint .hint-text {
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

/* ═══════ CAROUSEL NAV ARROWS ═══════ */
.carousel-nav-wrap {
  display: flex;
  align-items: stretch;
  gap: 0;
}
.carousel-nav-btn {
  flex: 0 0 auto;
  width: 36px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  padding: 0;
  line-height: 1;
}
.carousel-nav-btn:hover { color: var(--text-primary); }
.carousel-nav-wrap .carousel-viewport { flex: 1; min-width: 0; }

/* ═══════ TIMER TOGGLE ═══════ */
.timer-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-bottom: 0.5rem;
}
.toggle-text {
  font-family: 'Outfit', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.toggle-label {
  position: relative;
  display: inline-block;
  width: 32px;
  height: 18px;
  cursor: pointer;
}
.toggle-label input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: #2A1E34;
  border-radius: 9px;
  transition: background 0.3s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  left: 2px; top: 2px;
  width: 14px; height: 14px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: transform 0.3s, background 0.3s;
}
.toggle-label input:checked + .toggle-slider { background: var(--magenta); }
.toggle-label input:checked + .toggle-slider::before {
  transform: translateX(14px);
  background: var(--white);
}

/* ═══════ GAME CONTROLS BOX ═══════ */
.game-controls-box {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.game-controls-box .carousel-game-hint { margin-top: 0; }

/* Controls wrap */
.game-controls-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.75rem;
}

/* ═══════ SLIDER PANELS ═══════ */
.sliders-panel {
  display: none;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.5rem 0.8rem;
  background: rgba(40,28,50,0.25);
  border-radius: 8px;
  border: 1px solid rgba(40,28,50,0.35);
  min-width: 140px;
}
.sliders-panel.visible { display: flex; }
.boids-slider-row {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.boids-slider-row label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.boid-letter {
  color: var(--magenta);
  font-weight: 700;
}
.boids-slider-row input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: #2A1E34;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
.boids-slider-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--magenta);
  cursor: pointer;
}
.boids-slider-row input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--magenta);
  border: none;
  cursor: pointer;
}

/* ═══════ BOIDS EQUATION DISPLAY ═══════ */
.boids-eq {
  font-family: 'Outfit', sans-serif;
  padding: 0.5rem 0.7rem !important;
  min-width: 160px !important;
}
.eq-title {
  font-size: 0.6rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--magenta); margin-bottom: 0.4rem;
}
.eq-rule {
  font-size: 0.6rem; color: var(--text-secondary); line-height: 1.6; font-family: 'Courier New', monospace;
}
.eq-label {
  display: inline-block; width: 1rem; font-weight: 700; color: var(--magenta); font-family: 'Outfit', sans-serif;
}
.eq-note {
  font-size: 0.5rem; color: var(--text-muted); margin-top: 0.3rem; font-style: italic;
}

/* ═══════ MODEL: vertical flow, two columns ═══════ */
.model-section {
  background: var(--navy); padding: 5rem 2rem 4rem; position: relative; overflow: hidden;
}
.model-inner { max-width: 600px; margin: 0 auto; text-align: center; }
.model-eyebrow {
  font-family: 'Outfit', sans-serif; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--magenta); margin-bottom: 3rem;
}
.model-vflow {
  display: flex; gap: 4rem; justify-content: center; align-items: flex-start;
  position: relative;
}
.mvf-col {
  display: flex; flex-direction: column; align-items: center; gap: 0;
}
.mvf-step {
  text-align: center; opacity: 0;
  transition: opacity 0.4s ease;
  min-height: 2.2em;
}
.mvf-step.lit { opacity: 1; }
.mvf-step span {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-style: italic; font-weight: 400;
  color: var(--white); line-height: 1.4;
}
.mvf-label span {
  color: var(--magenta); font-weight: 600;
}
.mvf-line {
  width: 1px; height: 1.8rem; background: transparent;
  transition: background 0.5s ease;
  margin: 0.15rem 0;
}
.mvf-line.grown { background: var(--magenta); box-shadow: 0 0 4px rgba(179,77,142,0.3); }
.mvf-merge {
  position: absolute; bottom: -3.5rem; left: 50%; transform: translateX(-50%);
  text-align: center; opacity: 0;
  transition: opacity 0.6s ease;
  white-space: nowrap;
}
.mvf-merge.lit { opacity: 1; }
.mvf-merge span {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-style: italic; font-weight: 400;
  color: var(--text-secondary); line-height: 1.4;
}
/* Extra bottom padding for merge text */
.model-section { padding-bottom: 7rem; }


/* ═══════ EVENTS SECTION ═══════ */
.events-section {
  background: #F5F6F9;
  padding: 6rem 3rem;
  border-top: 1px solid #E4E6EB;
  border-bottom: 1px solid #E4E6EB;
  position: relative;
  overflow: hidden;
}

.events-section::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(ellipse, rgba(179,77,142,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.events-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(ellipse, rgba(58,109,181,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.events-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.events-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #B34D8E;
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.events-eyebrow::before,
.events-eyebrow::after {
  content: '';
  width: 36px;
  height: 1px;
  background: #B34D8E;
}

.events-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 400;
  color: #1A1D2B;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.events-subtitle {
  font-size: 1rem;
  color: #5E6278;
  max-width: 640px;
  margin: 0 auto 3rem;
  line-height: 1.7;
  font-weight: 400;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 380px));
  gap: 1.5rem;
  justify-content: center;
}

.event-card {
  display: block;
  background: #FFFFFF;
  border: 1px solid #E4E6EB;
  border-radius: 14px;
  padding: 2rem 1.75rem;
  text-align: left;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.event-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #B34D8E, #3A6DB5);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s ease;
}

.event-card:hover {
  transform: translateY(-4px);
  border-color: rgba(179,77,142,0.3);
  box-shadow: 0 16px 36px rgba(179,77,142,0.12), 0 4px 12px rgba(0,0,0,0.06);
}

.event-card:hover::before {
  transform: scaleX(1);
}

.event-card-logo {
  display: block;
  max-height: 56px;
  max-width: 180px;
  width: auto;
  height: auto;
  margin-bottom: 1rem;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.event-card:hover .event-card-logo {
  transform: scale(1.04);
}

.event-card-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: #1A1D2B;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.event-card-desc {
  font-size: 0.9rem;
  color: #5E6278;
  line-height: 1.6;
  font-weight: 400;
  margin-bottom: 1.25rem;
}

.event-card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: #B34D8E;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.event-card:hover .event-card-link {
  color: #3A6DB5;
}

@media (max-width: 768px) {
  .events-section { padding: 4rem 1.5rem; }
  .events-grid { grid-template-columns: 1fr; }
}


/* ═══════ FOOTER ═══════ */
footer {
  border-top: 1px solid var(--border);
  padding: 3.5rem 3rem 2.5rem;
  background: var(--navy-deep);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-logo-link {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
}

.footer-logo {
  height: 38px;
  width: auto;
  opacity: 0.85;
  transition: opacity 0.3s;
  display: block;
}

.footer-logo-link:hover .footer-logo,
.footer-logo:hover { opacity: 1; }

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.3s;
  font-weight: 400;
}

.footer-links a:hover { color: var(--text-secondary); }

.footer-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.footer-disclaimer {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 800px;
  font-weight: 300;
}

.footer-legal {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.6;
  text-align: center;
  font-weight: 300;
}

.footer-contact a {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color 0.3s;
  white-space: nowrap;
}

.footer-contact a:hover { color: var(--magenta); }

/* ═══════ ANIMATIONS ═══════ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════ RESPONSIVE ═══════ */
@media (max-width: 900px) {
  nav { padding: 0.5rem 1.5rem; }
  nav .nav-logo { height: 55px; }
  .hero { padding: 6rem 1.5rem 10rem; }
  .hero-content { flex-direction: column; gap: 2rem; }
  .hero-right { flex: none; }
  .video-section { padding: 0 1.5rem; margin-top: -5rem; }
  .roots-section { padding: 6rem 1.5rem 4rem; }
  .roots-inner { flex-direction: column; gap: 3rem; }
  .roots-right { gap: 1.5rem 3rem; }
  .carousel-container { padding: 0 0.75rem; }
  footer { padding: 2.5rem 1.5rem 2rem; }
  .footer-top { flex-direction: column; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 768px) {
  .video-wrapper { aspect-ratio: 4/3; }
  .video-section { margin-top: -4rem; padding: 0 0.75rem; }
}

@media (max-width: 600px) {
  .hero { padding: 6rem 1.25rem 8rem; }
  .hero-title { font-size: 2.2rem; }
  .roots-right { grid-template-columns: 1fr; gap: 1.5rem; }
  .stat-value { font-size: 2rem; }
  .carousel-viewport { aspect-ratio: auto; min-height: 500px; }
  .footer-links { gap: 1rem; }
}

@media (max-width: 480px) {
  .video-wrapper { aspect-ratio: 1/1; }
  .video-section { margin-top: -3rem; padding: 0 0.5rem; }
}

/* ═══════ LIGHT THEME (INNER PAGES) ═══════ */
body.theme-light {
  background: #F4F5F7;
  color: var(--navy);
}

body.theme-light nav {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

body.theme-light nav.scrolled {
  background: rgba(255,255,255,0.98);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

body.theme-light .page-header {
  padding: 9rem 3rem 3.5rem;
  background: #fff;
  border-bottom: 1px solid #E4E6EB;
}

.page-header-inner {
  max-width: 860px;
  margin: 0 auto;
}

body.theme-light .page-header h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

body.theme-light .page-header .page-updated {
  font-size: 0.8rem;
  color: #666B80;
  font-weight: 400;
}

/* Content card */
body.theme-light .page-body {
  max-width: 860px;
  margin: -1.5rem auto 4rem;
  padding: 0 3rem;
}

.page-card {
  background: #fff;
  border: 1px solid #E4E6EB;
  border-radius: 12px;
  padding: 3rem 3.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.page-card h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--navy);
  margin: 2.5rem 0 0.75rem;
  padding-top: 2rem;
  border-top: 1px solid #ECEDF0;
}

.page-card h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.page-card p {
  font-family: 'Outfit', sans-serif;
  font-size: 0.92rem;
  line-height: 1.8;
  color: #3A3F50;
  font-weight: 300;
  margin-bottom: 1rem;
}

.page-card ul {
  margin: 0 0 1.25rem 1.25rem;
  padding: 0;
}

.page-card li {
  font-family: 'Outfit', sans-serif;
  font-size: 0.92rem;
  line-height: 1.8;
  color: #3A3F50;
  font-weight: 300;
  margin-bottom: 0.4rem;
}

.page-card a {
  color: var(--magenta);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.3s;
}

.page-card a:hover { color: var(--purple); }

/* Light footer */
body.theme-light footer {
  background: #fff;
  border-top: 1px solid #E4E6EB;
}

body.theme-light .footer-links a {
  color: #666B80;
}

body.theme-light .footer-links a:hover { color: #3A3F50; }

body.theme-light .footer-disclaimer {
  color: #666B80;
}

body.theme-light .footer-contact a {
  color: #3A3F50;
}

body.theme-light .footer-contact a:hover { color: var(--magenta); }

@media (max-width: 900px) {
  body.theme-light .page-header { padding: 7.5rem 1.5rem 2.5rem; }
  body.theme-light .page-body { padding: 0 1.5rem; margin-bottom: 3rem; }
  .page-card { padding: 2rem 1.75rem; }
}

.stat-value-sm {
  font-family: 'Playfair Display', serif;
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  font-weight: 400;
  color: var(--navy);
  letter-spacing: 0.01em;
  line-height: 1.7;
}

.stat-value-light {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  font-weight: 300;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  line-height: 1.6;
}

/* ═══════ MOBILE: hide subtitle, video above fold ═══════ */
@media (max-width: 768px) {
  .hero-subtitle { display: none; }
  .hero {
    min-height: auto;
    padding: 6rem 1.5rem 8rem;
  }
  .video-section {
    margin-top: -5rem;
    padding: 0 1rem;
  }
  .video-overlay-list {
    right: 0.5rem;
    gap: 0.4rem;
  }
  .vol-item { font-size: 0.5rem; padding: 0.3rem 0.5rem; }
  .model-section { padding: 3rem 0.75rem; }
  .model-section { padding: 3rem 1rem 6rem; }
  .model-vflow { gap: 2rem; }
  .mvf-step span { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }
  .mvf-merge span { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }
}

/* ═══════ LANDSCAPE (all devices) ═══════ */
@media (orientation: landscape) {

  /* Video: full width */
  .video-section {
    max-width: 100%;
    padding: 0 1rem;
  }

  /* Carousel: use more width */
  .carousel-section {
    padding: 3rem 0 4rem;
  }
  .carousel-container {
    max-width: 100%;
    padding: 0 1.5rem;
  }
  .carousel-reset {
    margin-bottom: 0.5rem;
  }

  /* Interactive container: grid layout — game left, info right */
  .interactive-container {
    display: grid;
    grid-template-columns: 1fr 280px;
    grid-template-rows: 1fr auto auto;
    gap: 0 1.5rem;
    padding: 1rem;
    align-items: start;
  }

  /* Game fills left column, viewport height minus header & chrome */
  .carousel-viewport {
    grid-column: 1;
    grid-row: 1;
    aspect-ratio: auto;
    min-height: 0;
    height: calc(100vh - 10rem);
    min-height: 350px;
    border-radius: 8px;
  }

  /* Controls below game */
  .carousel-controls {
    grid-column: 1;
    grid-row: 2;
    margin-top: 0.5rem;
  }

  /* Info text on the right, vertically centered */
  .carousel-info {
    grid-column: 2;
    grid-row: 1 / 3;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
  }

  .game-controls-wrap {
    grid-column: 1 / -1;
  }

  .carousel-info-panel {
    flex-direction: column;
    gap: 0.75rem;
  }

  .ci-label {
    font-size: 0.75rem;
    min-width: auto;
  }

  .ci-text {
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .learn-more-btn {
    padding: 0.5rem 1.4rem;
    font-size: 0.75rem;
  }

  /* Slide title overlay */
  .slide-text-overlay {
    bottom: 0.75rem;
    left: 0.75rem;
    padding: 0.6rem 1rem;
    max-width: 240px;
  }
  .sto-title {
    font-size: 1rem;
  }

  /* Game hint */
  .game-control-hint {
    bottom: 2.5rem;
    font-size: 0.7rem;
    padding: 0.35rem 0.9rem;
  }
}

/* Landscape on small screens: tighter */
@media (orientation: landscape) and (max-height: 550px) {
  .carousel-viewport {
    height: calc(100vh - 5.5rem);
    min-height: 200px;
  }
  .interactive-container {
    grid-template-columns: 1fr 200px;
    padding: 0.5rem;
    gap: 0 0.75rem;
  }
  .carousel-section { padding: 1rem 0 1.5rem; }
  .carousel-container { padding: 0 0.5rem; }
  .hero { min-height: auto; padding: 5rem 1.5rem 6rem; }
  .hero-title { font-size: 1.8rem; }
  .roots-section { padding: 3rem 1.5rem 2rem; }
  .ci-label { font-size: 0.65rem; }
  .ci-text { font-size: 0.8rem; line-height: 1.45; }
  .sto-title { font-size: 0.85rem; }
  .slide-text-overlay { max-width: 180px; padding: 0.4rem 0.7rem; }
}
