﻿/* ================================================================
   THE COST OF CONNECTION — style.css
   Chapter 1: The Lifecycle of a Device

   Palette:
     Space/Elements — #000, #0d1117, #4fc3f7
     Mine scene     — #1a0a02 → #c9845a
     Documents      — #f5e6ca, #2c1a0e
     Corporate UI   — #fafafa, #1a1a1a, #0066cc
================================================================ */

/* — RESET & BASE ——————————————————————————————————————————————— */

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

:root {
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --serif: 'EB Garamond', Georgia, 'Times New Roman', serif;

  /* Mine */
  --mine-deep:  #1a0a02;
  --mine-earth: #3d1c02;
  --mine-mid:   #6b3210;
  --mine-dust:  #c87941;
  --mine-sky:   #c9845a;

  /* Ad */
  --ad-white:   #ffffff;
  --ad-text:    #1d1d1f;
  --ad-sub:     #6e6e73;

  /* Documents */
  --doc-paper:  #f5e6ca;
  --doc-aged:   #d4b896;
  --doc-ink:    #2c1a0e;

  /* Corporate */
  --corp-bg:    #fafafa;
  --corp-text:  #1a1a1a;
  --corp-blue:  #0066cc;
  --corp-red:   #cc2200;
  --corp-rule:  #e0e0e0;
}

html {
  scroll-behavior: auto; /* Lenis handles smooth scroll */
}

body {
  font-family: var(--sans);
  background: #000;
  color: #fff;
  overflow-x: hidden;
}


/* — CHAPTER NAV ——————————————————————————————————————————————— */

.chapter-nav {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 0.7rem 1.5rem;
  transition: opacity 0.6s ease, transform 0.6s ease;
  font-family: 'Cormorant Garamond', Georgia, serif;
}

.ch-pill {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0;
  font-size: 1.3rem;
  font-style: italic;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.ch-current {
  color: rgba(210, 190, 160, 0.7);
}

.ch-next,
.ch-prev {
  color: rgba(210, 190, 160, 0.3);
}

.ch-next:hover,
.ch-prev:hover {
  color: rgba(210, 190, 160, 0.6);
}

.ch-num {
  font-size: 0.85rem;
  opacity: 0.5;
}

.ch-separator {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}


/* — SCENES — base ———————————————————————————————————————————— */

.scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}


/* ================================================================
   SCENE 0 — SPACE OPENING + ZOOM SEQUENCE
================================================================ */

#scene-space {
  background: #000;
}

#starfield {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Earth system — centered via GSAP xPercent/yPercent */
#earth-system {
  position: absolute;
  left: 50%;
  top: 50%;
  /* GSAP sets transform: translate(-50%, -50%) */
}

#earth-globe {
  position: relative;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  z-index: 1;
}

.earth-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  user-select: none;
  transform: scale(1.16);
}

.earth-atmosphere {
  display: none;
}


/* ── Site brand — fixed corner mark ──────────────────────────────
   "Teknologisk Bæredygtighed" — always visible, unobtrusive
──────────────────────────────────────────────────────────────── */
.site-brand {
  position: fixed;
  top: 0.85rem;
  left: 1.25rem;
  z-index: 210;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1rem;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(200, 240, 210, 0.45);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.6s ease;
}

/* ── Chapter title: "En Enheds Livscyklus" ───────────────────────
   Font: Space Mono — clean, geometric, observatory/mission-control
──────────────────────────────────────────────────────────────── */
.space-subtitle {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  text-align: center;
  pointer-events: none;
  z-index: 5;
  margin: 0;
  font-size: inherit;
  font-weight: normal;
}

.sl-word {
  display: block;
  line-height: 1.2;
  position: relative;
}

.sl-word:first-child {
  transform: translateY(-4px);
}

.sl-word:last-child {
  transform: translateY(4px);
}

/* Rules removed */

.sl-gap {
  display: inline-block;
  width: clamp(24px, 2.5vw, 48px);
}

.sl {
  display: inline-block;
  font-family: 'Space Mono', 'JetBrains Mono', monospace;
  font-size: clamp(24px, 4.5vw, 56px);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
}

/* — "En Enheds": silver-blue, celestial ————————————————————————— */
.sl-word:first-child .sl {
  background: linear-gradient(145deg, #c8daf8, #8badd6, #c8daf8);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter:
    drop-shadow(0 0 8px rgba(140, 180, 255, 0.3))
    drop-shadow(0 0 20px rgba(100, 150, 240, 0.12));
  animation: shimmer 6s ease-in-out infinite;
}

/* — "Livscyklus": warm white-gold, stellar glow ———————————————— */
.sl-word:last-child .sl {
  background: linear-gradient(145deg, #f0e6d0, #ffffff, #dce8f8, #f0e6d0);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter:
    drop-shadow(0 0 6px rgba(200, 210, 240, 0.4))
    drop-shadow(0 0 16px rgba(160, 180, 255, 0.2))
    drop-shadow(0 0 40px rgba(120, 150, 240, 0.08));
  animation: shimmer 6s ease-in-out infinite reverse;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}


/* Premise text overlay */
.space-premise {
  position: absolute;
  bottom: 17%;
  left: 0;
  right: 0;
  text-align: center;
  font-size: clamp(14px, 2vw, 20px);
  font-weight: 300;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.6);
  z-index: 6;
  opacity: 0; /* GSAP */
  pointer-events: none;
}


/* Cloud overlay — white fade during Earth zoom */
#zoom-clouds {
  position: absolute;
  inset: 0;
  background: #fff;
  pointer-events: none;
  z-index: 8;
}

/* Zoom layers — satellite images that fade in during Earth zoom */
.zoom-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 7;
  pointer-events: none;
}

.zoom-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#zoom-satellite img {
  object-position: 60% 60%;
}

/* Mine establishing shot layer — no background, just transitions to mine scene */
#zoom-mine {
  display: none;
}

/* Location backdrop — covers starfield */
.location-backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    #1a3a5c 0%,
    #4a7a9a 30%,
    #8ab4c8 55%,
    #c8a882 80%,
    #a07050 100%
  );
  z-index: 8;
  opacity: 0; /* GSAP */
  pointer-events: none;
}

/* Location tag */
.location-tag {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(20px, 3vw, 36px);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.12em;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  z-index: 10;
  opacity: 0; /* GSAP */
}

.location-dot {
  width: 10px;
  height: 10px;
  background: #ff4040;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
  animation: dot-pulse 2.4s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255, 64, 64, 0.4), 0 0 8px rgba(0, 0, 0, 0.3); }
  50%       { box-shadow: 0 0 0 12px rgba(255, 64, 64, 0.15), 0 0 16px rgba(0, 0, 0, 0.2); }
}


/* ================================================================
   CONSTELLATION PERIODIC TABLE
   Elements as stars on the starfield. Part of the space scene.
================================================================ */

.elements-header {
  position: absolute;
  top: 6%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 5;
  opacity: 0; /* GSAP */
}

.elements-count {
  font-family: var(--sans);
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 200;
  letter-spacing: -0.02em;
  color: #4fc3f7;
  line-height: 1;
  position: relative;
  display: inline-block;
}

.elements-tilde {
  position: absolute;
  right: 100%;
  font-weight: 300;
  opacity: 0.5;
}

.elements-subtitle {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 8px;
}

/* Periodic table grid — transparent, stars float in space */
.periodic-table {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  grid-template-columns: repeat(18, 1fr);
  gap: 2px;
  width: min(90vw, 720px);
  z-index: 3;
  opacity: 0; /* GSAP */
}

/* Constellation lines SVG overlaid on the grid */
#constellation-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0; /* GSAP */
}

/* Category star colors */
.pt-cell { --cat: 200, 200, 220; } /* fallback — cool white */
.pt-cell[data-cat="am"]  { --cat: 220, 140, 130; } /* alkali metals — warm red */
.pt-cell[data-cat="aem"] { --cat: 230, 175, 110; } /* alkaline earth — amber */
.pt-cell[data-cat="tm"]  { --cat: 180, 185, 220; } /* transition metals — steel blue */
.pt-cell[data-cat="ptm"] { --cat: 140, 200, 165; } /* post-transition — sage green */
.pt-cell[data-cat="md"]  { --cat: 180, 200, 130; } /* metalloids — olive */
.pt-cell[data-cat="nm"]  { --cat: 165, 210, 230; } /* nonmetals — pale cyan */
.pt-cell[data-cat="hal"] { --cat: 195, 175, 230; } /* halogens — lavender */
.pt-cell[data-cat="ng"]  { --cat: 170, 150, 215; } /* noble gases — muted violet */
.pt-cell[data-cat="ln"]  { --cat: 210, 180, 145; } /* lanthanides — warm tan */
.pt-cell[data-cat="ac"]  { --cat: 185, 165, 165; } /* actinides — dusty mauve */

/* Base star — dim dot with faint symbol */
.pt-cell {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  font-size: clamp(4px, 0.5vw, 7px);
  font-family: var(--sans);
  font-weight: 400;
  color: rgba(var(--cat), 0.3);
  background: transparent;
  border: none;
  border-radius: 0;
  position: relative;
  line-height: 1;
  transition: all 0.3s ease;
}

/* Star dot */
.pt-cell::before {
  content: '';
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgb(var(--cat));
  opacity: 0.6;
  box-shadow: 0 0 5px rgba(var(--cat), 0.5);
  flex-shrink: 0;
}

/* Phone elements — brighter stars with visible symbols */
.pt-cell.in-phone {
  color: rgba(79, 195, 247, 0.55);
  font-size: clamp(5px, 0.6vw, 8px);
  font-weight: 500;
}

.pt-cell.in-phone::before {
  width: 3px;
  height: 3px;
  background: rgba(79, 195, 247, 0.95);
  opacity: 1;
  box-shadow:
    0 0 4px rgba(79, 195, 247, 0.5),
    0 0 10px rgba(79, 195, 247, 0.2);
}

/* Critical elements — prominent stars */
.pt-cell.critical {
  color: rgba(79, 195, 247, 0.7);
}

.pt-cell.critical::before {
  width: 4px;
  height: 4px;
  background: #4fc3f7;
  opacity: 1;
  box-shadow:
    0 0 6px rgba(79, 195, 247, 0.6),
    0 0 14px rgba(79, 195, 247, 0.3),
    0 0 28px rgba(79, 195, 247, 0.1);
}

/* Active spotlight — pulsing white star with large blue glow */
.pt-cell.active {
  color: rgba(255, 255, 255, 0.9);
}

.pt-cell.active::before {
  width: 7px;
  height: 7px;
  background: #fff;
  opacity: 1;
  box-shadow:
    0 0 12px rgba(79, 195, 247, 1),
    0 0 32px rgba(79, 195, 247, 0.8),
    0 0 64px rgba(79, 195, 247, 0.5),
    0 0 100px rgba(79, 195, 247, 0.25);
  animation: star-pulse 1.5s ease-in-out infinite;
}

/* Blue halo behind active cell */
.pt-cell.active::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 195, 247, 0.35) 0%, rgba(79, 195, 247, 0.12) 40%, transparent 70%);
  animation: halo-pulse 1.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes star-pulse {
  0%, 100% {
    box-shadow:
      0 0 8px  rgba(79, 195, 247, 1),
      0 0 24px rgba(79, 195, 247, 0.7),
      0 0 48px rgba(79, 195, 247, 0.4);
  }
  50% {
    box-shadow:
      0 0 12px rgba(79, 195, 247, 1),
      0 0 36px rgba(79, 195, 247, 0.8),
      0 0 64px rgba(79, 195, 247, 0.5),
      0 0 100px rgba(79, 195, 247, 0.2);
  }
}

@keyframes halo-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1);   opacity: 1; }
  50%      { transform: translate(-50%, -50%) scale(1.3); opacity: 0.7; }
}

/* Part constellation drawings */
.part-constellation {
  position: absolute;
  left: 10%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  opacity: 0; /* GSAP */
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.part-constellation svg {
  filter: drop-shadow(0 0 6px rgba(79, 195, 247, 0.3));
}

.part-label {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(79, 195, 247, 0.5);
}

/* Spotlight info cards */
.element-spotlight {
  position: absolute;
  right: 6%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(13, 17, 23, 0.92);
  border: 1px solid rgba(79, 195, 247, 0.2);
  border-radius: 12px;
  padding: 24px 28px;
  max-width: 260px;
  backdrop-filter: blur(12px);
  opacity: 0; /* GSAP */
  pointer-events: none;
}

.spot-symbol {
  font-family: 'Cinzel', serif;
  font-size: 48px;
  font-weight: 700;
  color: #4fc3f7;
  line-height: 1;
}

.spot-number {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 300;
  color: rgba(79, 195, 247, 0.5);
  margin-top: -4px;
}

.spot-name {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 12px;
}

.spot-use {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 4px;
}

.spot-location {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(79, 195, 247, 0.6);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.spot-fact {
  font-size: 12px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 8px;
  line-height: 1.5;
}

/* Transition text */
.elements-outro {
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
  z-index: 5;
  opacity: 0; /* GSAP */
}


/* ================================================================
   SCENE 2 — THE MINE
================================================================ */

#scene-mine {
  background: linear-gradient(
    to bottom,
    #c9845a  0%,
    #8b4513 18%,
    #6b3210 42%,
    #3d1c02 70%,
    #1a0a02 100%
  );
}

/* Mine facts — centered text over slideshow */
.mine-fact {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
  opacity: 0; /* GSAP */
  pointer-events: none;
}

.mine-fact-value {
  font-family: 'Space Mono', 'JetBrains Mono', monospace;
  font-size: clamp(36px, 7vw, 80px);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
  line-height: 1;
  margin-bottom: 0.3em;
}

.mine-fact::before {
  content: '';
  position: absolute;
  inset: -40px -60px;
  background: radial-gradient(ellipse, rgba(0,0,0,0.5) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.mine-fact-text {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(14px, 2vw, 22px);
  font-style: italic;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.04em;
}

/* Mine slideshow */
.mine-slideshow {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.mine-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0; /* GSAP drives crossfade */
  user-select: none;
  pointer-events: none;
}

/* — Corporate intrusions ———————————————————————————————————— */

.intrusion {
  position: absolute;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

/* intrusion positions — removed (replaced by stat-panels) */

.intrusion-body {
  background: rgba(250, 250, 250, 0.96);
  color: var(--corp-text);
  font-family: var(--sans);
  padding: 20px 24px;
  max-width: 270px;
  border-left: 3px solid var(--corp-blue);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
}

.intrusion-kicker {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 10px;
}

.intrusion-stat {
  font-size: 40px;
  font-weight: 300;
  line-height: 1;
  color: #1a1a1a;
  margin-bottom: 6px;
}

.intrusion-note {
  font-size: 11px;
  color: #666;
  border-top: 1px solid var(--corp-rule);
  margin-top: 10px;
  padding-top: 10px;
}


/* — Stat panels (persistent, educational) ————————————————————— */

.stat-panels {
  position: absolute;
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 280px;
}

.stat-panel {
  background: rgba(0, 0, 0, 0.72);
  border-left: 3px solid var(--corp-blue);
  padding: 16px 20px;
  opacity: 0; /* GSAP */
  transform: translateY(20px);
  pointer-events: none;
}

.stat-panel-kicker {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 6px;
}

.stat-panel-value {
  font-size: 32px;
  font-weight: 300;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 4px;
}

.stat-panel-note {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 8px;
  padding-top: 8px;
}


/* — Hidden documents ——————————————————————————————————————————— */

.hidden-doc {
  position: absolute;
  z-index: 15;
  cursor: pointer;
  outline: none;
}

/* Positions — grouped bottom-right, half peeking from edge */
#doc-cobalt    { bottom: -42px; right: 3%;  transform: rotate(-4deg); }
#doc-silicon   { bottom: -42px; right: 8%;  transform: rotate(2deg);  }
#doc-rareearth { bottom: -42px; right: 13%; transform: rotate(-2deg); }

/* The peeking corner */
.doc-peek {
  width: 64px;
  height: 84px;
  background: var(--doc-paper);
  box-shadow: 2px 3px 10px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.doc-peek::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.25) 0%,
    transparent 60%
  );
}

.hidden-doc:hover  .doc-peek,
.hidden-doc:focus  .doc-peek {
  transform: translateY(-5px);
  box-shadow: 3px 8px 18px rgba(0, 0, 0, 0.6);
}

/* Nudge animation */
.hidden-doc.doc-nudged .doc-peek {
  animation: doc-nudge 1.8s ease-in-out 0.2s 2;
}

@keyframes doc-nudge {
  0%, 100% { transform: translateY(0); }
  25%      { transform: translateY(-6px) rotate(2deg); }
  50%      { transform: translateY(-3px); }
  75%      { transform: translateY(-5px) rotate(-1deg); }
}

.doc-peek-hint {
  position: absolute;
  bottom: -22px;
  left: 0;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.45);
  pointer-events: none;
  white-space: nowrap;
  font-family: var(--sans);
  letter-spacing: 0.04em;
}

/* Full overlay */
.doc-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.hidden-doc.is-open .doc-overlay,
.doc-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

/* Newspaper style */
.doc-newspaper,
.doc-bureau {
  background: var(--doc-paper);
  color: var(--doc-ink);
  font-family: var(--serif);
  max-width: 540px;
  width: 92%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 40px 44px;
  position: relative;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.doc-newspaper-head,
.doc-bureau-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 2px solid var(--doc-ink);
  padding-bottom: 14px;
  margin-bottom: 22px;
}

.doc-pub,
.doc-org {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.doc-type {
  display: block;
  font-size: 12px;
  font-style: italic;
  color: rgba(44, 26, 14, 0.65);
  margin-top: 3px;
  font-family: var(--sans);
}

.doc-source {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  font-style: italic;
  color: rgba(44, 26, 14, 0.5);
  border-top: 1px solid var(--doc-aged);
  padding-top: 14px;
  margin-top: 20px;
}

/* Document card needs relative for close button positioning */
.doc-bureau {
  position: relative;
}

/* Close button */
.doc-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: rgba(44, 26, 14, 0.1);
  border: 1px solid rgba(44, 26, 14, 0.3);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  color: var(--doc-aged);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 2px;
  font-family: var(--sans);
  transition: background 0.2s, color 0.2s;
}

.doc-close:hover {
  background: var(--doc-aged);
  color: var(--doc-ink);
}


/* Scene 3 (phone void) & Scene 4 (transition) — REMOVED */


/* ================================================================
   PLAYBAR
================================================================ */

#playbar {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 150;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(10, 10, 12, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 40px;
  padding: 6px 6px 6px 20px;
  backdrop-filter: blur(12px);
  transition: opacity 0.4s ease;
}

#playbar.hidden {
  opacity: 0;
  pointer-events: none;
}

.progress-track {
  width: 180px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: visible;
  position: relative;
}

.progress-fill {
  height: 100%;
  width: 0;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 2px;
  position: relative;
  z-index: 1;
}

.playbar-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

/* Scene tick marks on progress bar */
.progress-tick {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 3px;
  height: 10px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 1px;
  cursor: pointer;
  transition: background 0.2s, height 0.2s;
  z-index: 2;
  box-sizing: border-box;
  padding: 0;
}

/* Enlarged touch target via pseudo-element */
.progress-tick::before {
  content: '';
  position: absolute;
  inset: -8px -6px;
}

.progress-tick:hover {
  background: rgba(255, 255, 255, 0.6);
  height: 14px;
  background-clip: content-box;
}

.progress-tick:hover::after {
  content: attr(title);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-family: var(--sans);
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
  background: rgba(10, 10, 12, 0.9);
  padding: 3px 8px;
  border-radius: 4px;
  pointer-events: none;
}

#play-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}

#play-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.icon-pause { display: none; }
.icon-play  { display: block; }

#play-btn.is-playing .icon-pause { display: block; }
#play-btn.is-playing .icon-play  { display: none; }


/* ================================================================
   SHARED — STAGE LABELS
================================================================ */

.stage-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 10;
  pointer-events: none;
  opacity: 0; /* GSAP */
}

.stage-label-num {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.3);
}

.stage-label-title {
  font-family: var(--sans);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 300;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.85);
}

.stage-label-location {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

/* intrusion positions — removed (replaced by stat-panels) */


/* ================================================================
   SCENE 5 — REFINEMENT
================================================================ */

#scene-refinement {
  background: #000;
}

.refine-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, #1a1e2e 0%, #2a2e3e 100%);
}

/* Wash: ore → powder transformation */
.refine-wash {
  position: absolute;
  inset: 0;
  display: flex;
  opacity: 0; /* GSAP */
}

.refine-wash-ore {
  flex: 1;
  background: linear-gradient(135deg, #6b3210, #3d1c02, #1a0a02);
}

.refine-wash-powder {
  flex: 1;
  background: linear-gradient(135deg, #e8e4df, #f0f4f8, #fff);
}

.refine-wash-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Mix: supply streams merge */
.refine-mix {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  opacity: 0; /* GSAP */
}

.refine-stream {
  width: 4px;
  height: 0; /* GSAP animates */
  border-radius: 2px;
}

#stream-drc  { background: #8b4513; position: absolute; left: 30%; top: 10%; }
#stream-aus  { background: #c4956e; position: absolute; left: 50%; top: 10%; }
#stream-phil { background: #5a8a7a; position: absolute; left: 70%; top: 10%; }

.refine-stream-merged {
  width: 4px;
  height: 0; /* GSAP */
  background: #f0f0f0;
  border-radius: 2px;
  position: absolute;
  left: 50%;
  bottom: 20%;
}

.refine-mix-caption {
  position: absolute;
  bottom: 10%;
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.55);
  opacity: 0; /* GSAP */
}

/* Safety poster — simplified */
.refine-poster {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0; /* GSAP */
}

.refine-poster-frame {
  background: #fff;
  padding: 32px 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.refine-poster-icon {
  font-size: 48px;
  line-height: 1;
}

.refine-poster-text {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #1a1a1a;
  text-align: center;
}

.refine-poster-waste {
  font-size: 11px;
  color: #888;
  text-align: center;
  font-style: italic;
}


/* ================================================================
   SCENE 6 — CLEAN ROOM
================================================================ */

#scene-cleanroom {
  background: #000;
}

.clean-bg {
  position: absolute;
  inset: 0;
  background: #0a0a0a;
}

/* Airlock: expanding slit of light */
.clean-airlock {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  opacity: 0; /* GSAP */
}

.clean-airlock-slit {
  width: 100%;
  height: 2px; /* GSAP expands to 100% */
  background: #f8f9fa;
}

/* Faceless workers grid */
.clean-workers {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 2px;
  padding: 10%;
  opacity: 0; /* GSAP */
}

.clean-worker {
  background: linear-gradient(180deg, #dde8f0 0%, #c8d8e8 100%);
  border-radius: 50% 50% 20% 20% / 60% 60% 40% 40%;
  opacity: 0.7;
  position: relative;
}

/* "Visor" slit */
.clean-worker::after {
  content: '';
  position: absolute;
  top: 28%;
  left: 25%;
  right: 25%;
  height: 12%;
  background: rgba(0, 40, 80, 0.25);
  border-radius: 2px;
}

/* Stats grid — 3 cards coexist */
.clean-stats-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  padding: 12% 6%;
  gap: 24px;
  z-index: 5;
  opacity: 0; /* GSAP */
}

.clean-stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  opacity: 0; /* GSAP fades each in */
}

.clean-stat-number {
  font-family: var(--sans);
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 200;
  letter-spacing: -0.02em;
  color: #f8f9fa;
}

.clean-stat-unit {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(248, 249, 250, 0.6);
}

.clean-stat-sub {
  font-size: 11px;
  color: rgba(248, 249, 250, 0.35);
  margin-top: 8px;
}


/* ================================================================
   SCENE 7 — ASSEMBLY
================================================================ */

#scene-assembly {
  background: #1a1c1e;
}

.asm-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #2a2d30 0%, #1a1c1e 100%);
}

/* Production counter */
.asm-counter {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 5;
  opacity: 0; /* GSAP */
}

.asm-counter-number {
  font-family: var(--mono);
  font-size: clamp(56px, 10vw, 120px);
  font-weight: 300;
  color: #c8e84b;
  letter-spacing: -0.02em;
}

.asm-counter-label {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.asm-counter-rate {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.25);
  margin-top: 8px;
}

/* Conveyor lines */
.asm-lines {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 15% 0;
  opacity: 0.15;
}

.asm-line {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(200, 232, 75, 0.4), transparent);
}

/* Building / nets */
.asm-building {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  width: 200px;
  display: flex;
  flex-direction: column;
  opacity: 0; /* GSAP */
}

.asm-floor {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background: #2a2d30;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.asm-window {
  width: 28px;
  height: 28px;
  background: rgba(200, 200, 150, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.asm-net {
  height: 6px;
  background: rgba(200, 200, 200, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* asm-poster — REMOVED (replaced by labor stat panels) */


/* ================================================================
   SCENE 8 — UNBOXING / USE
================================================================ */

#scene-unboxing {
  background: #0a1520;
}

.unbox-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #1a3050, #0a1520);
}

/* Container ship */
.unbox-ship {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 0; /* GSAP */
}

.unbox-ocean {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #0a1a30 0%, #1a3050 50%, #0a1520 100%);
}

.unbox-containers {
  position: relative;
  z-index: 2;
  width: 240px;
  height: 160px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(8, 1fr);
  gap: 1px;
}

/* Generate container boxes via repeating background */
.unbox-containers::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(to right, rgba(200,200,200,0.15) 0px, rgba(200,200,200,0.15) 18px, transparent 18px, transparent 20px),
    repeating-linear-gradient(to bottom, rgba(200,200,200,0.15) 0px, rgba(200,200,200,0.15) 18px, transparent 18px, transparent 20px);
  background-size: 20px 20px;
}

.unbox-ship-caption {
  position: relative;
  z-index: 2;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
}

/* Box opening */
.unbox-box {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  opacity: 0; /* GSAP */
}

.unbox-box-lid {
  position: absolute;
  width: 220px;
  height: 110px;
  top: calc(50% - 115px);
  left: 50%;
  transform: translateX(-50%);
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 4px 4px 0 0;
}

.unbox-box-base {
  width: 220px;
  height: 110px;
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 0 0 4px 4px;
  position: relative;
}

.unbox-box-phone {
  position: absolute;
  z-index: 2;
}

.unbox-box-phone img {
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

/* Use / Decay */
.unbox-use {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: linear-gradient(180deg, #f5f0eb 0%, #1a1a1a 100%);
  opacity: 0; /* GSAP */
}

.unbox-lifespan {
  text-align: center;
}

.unbox-lifespan-number {
  font-family: var(--mono);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 300;
  color: #1a1a1a;
  letter-spacing: -0.01em;
}

.unbox-lifespan-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888;
  margin-top: 8px;
}

.unbox-phone-decay {
  position: relative;
  width: 160px;
  height: 160px;
}

.unbox-phone-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Crack overlay */
.unbox-crack {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(32deg, transparent 42%, rgba(0,0,0,0.3) 42.2%, transparent 42.4%),
    linear-gradient(155deg, transparent 58%, rgba(0,0,0,0.2) 58.2%, transparent 58.4%);
  opacity: 0; /* GSAP */
}

/* Battery indicator */
.unbox-battery {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 24px;
  height: 12px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 2px;
  overflow: hidden;
  opacity: 0; /* GSAP */
}

.unbox-battery::after {
  content: '';
  position: absolute;
  right: -4px;
  top: 3px;
  width: 2px;
  height: 4px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 0 1px 1px 0;
}

.unbox-battery-fill {
  height: 100%;
  width: 100%; /* GSAP shrinks to ~10% */
  background: #4caf50;
  transition: background 0.3s;
}

.unbox-obsolete {
  font-family: var(--mono);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.04em;
  opacity: 0; /* GSAP */
}


/* ================================================================
   SCENE 9 — RETURN TO EARTH
================================================================ */

#scene-eol {
  background: #0a0a0a;
}

.eol-bg {
  position: absolute;
  inset: 0;
  background: #0a0a0a;
}

/* Falling phone */
.eol-fall {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10%;
  opacity: 0; /* GSAP */
}

.eol-falling-phone img {
  display: block;
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.1));
}

/* Fork */
.eol-fork {
  position: absolute;
  inset: 0;
  display: flex;
  opacity: 0; /* GSAP */
}

.eol-path {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 5%;
  position: relative;
}

.eol-path--informal {
  background: linear-gradient(180deg, rgba(196, 84, 10, 0.15), rgba(58, 42, 24, 0.4));
}

.eol-path--formal {
  background: linear-gradient(180deg, rgba(46, 204, 113, 0.1), rgba(46, 204, 113, 0.02));
}

.eol-path-label {
  font-family: var(--mono);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
}

.eol-path-desc {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

.eol-path-scene {
  text-align: center;
  max-width: 320px;
}

.eol-path-detail {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.45);
}

.eol-smoke {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 40% 60%, rgba(196, 84, 10, 0.2) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 30%, rgba(58, 42, 24, 0.25) 0%, transparent 50%);
  pointer-events: none;
}

.eol-divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.08);
  align-self: stretch;
}

.eol-path-scene--formal {
  color: rgba(46, 204, 113, 0.7);
}

.eol-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.eol-stat {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.5);
  opacity: 0; /* GSAP fades each in */
}

/* Convergence */
.eol-convergence {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 0; /* GSAP */
}

.eol-broken-arc {
  width: 200px;
  height: 200px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 100%, 50% 50%, 0 50%);
}

.eol-convergence-text {
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
}


/* ================================================================
   SCENE — TRANSPORT
================================================================ */

#scene-transport {
  background: #0a1520;
}

.transport-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #0d1a2a 0%, #0a1520 100%);
}

.transport-route {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 0;
  z-index: 5;
  width: min(90vw, 800px);
}

.transport-stop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  opacity: 0; /* GSAP */
}

.transport-dot {
  width: 12px;
  height: 12px;
  background: var(--corp-blue);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(0, 102, 204, 0.5);
}

.transport-stop-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  line-height: 1.4;
  white-space: nowrap;
}

.transport-stop-sub {
  font-size: 9px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.transport-line {
  flex: 1;
  height: 2px;
  background: rgba(0, 102, 204, 0.3);
  transform: scaleX(0); /* GSAP */
  transform-origin: left;
}

.transport-ship {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 0; /* GSAP */
}


/* ================================================================
   SCENE 10 — SOLUTIONS
================================================================ */

#scene-solutions {
  background: #0a0a0a;
}

.solutions-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, #141820 0%, #0a0a0a 70%);
}

.solutions-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 20px;
  padding: 14% 8%;
  z-index: 2;
}

.solution-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0; /* GSAP */
  transform: translateY(20px);
}

.solution-icon {
  font-size: 28px;
  line-height: 1;
}

.solution-title {
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.02em;
}

.solution-desc {
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.45);
}

.solutions-takeaway {
  position: absolute;
  bottom: 14%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  opacity: 0; /* GSAP */
}

.solutions-takeaway-text {
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

.solutions-end {
  position: absolute;
  bottom: 6%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  opacity: 0; /* GSAP */
}

.solutions-next {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  transition: all 0.2s;
}

.solutions-next:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}


/* ================================================================
   MOBILE BREAKPOINTS
================================================================ */

@media (max-width: 768px) {
  .stat-panels {
    right: 3%;
    max-width: 200px;
  }

  .stat-panel-value {
    font-size: 24px;
  }

  .clean-stats-grid {
    grid-template-columns: 1fr;
    padding: 20% 10%;
    gap: 16px;
  }

  .transport-route {
    flex-direction: column;
    width: auto;
    gap: 4px;
  }

  .transport-line {
    width: 2px;
    height: 20px;
    flex: none;
    transform: scaleY(0);
    transform-origin: top;
  }

  .solutions-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    padding: 18% 6%;
    gap: 12px;
  }

  .solution-card {
    padding: 16px;
  }

  .solutions-takeaway {
    bottom: 10%;
  }
}


/* ================================================================
   SCROLLBAR
================================================================ */

::-webkit-scrollbar       { width: 4px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 2px; }


/* ================================================================
   ACCESSIBILITY
================================================================ */

@media (prefers-reduced-motion: reduce) {
  .location-dot { animation: none; }
  .pt-cell.active::before,
  .pt-cell.active::after { animation: none; }
  .sl-word:first-child .sl,
  .sl-word:last-child .sl { animation: none; }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
