/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */
:root {
  --color-bg-dark: #0a0e17;
  --color-bg-darker: #060a12;
  --color-bg-section: #0f1520;
  --color-bg-card: #141c2b;
  --color-text: #e8e6e3;
  --color-text-dim: #8a9ab5;
  --color-text-bright: #ffffff;
  --color-accent: #3b82f6;
  --color-accent-light: #60a5fa;
  --color-danger: #ef4444;
  --color-danger-glow: rgba(239, 68, 68, 0.3);
  --color-toxic: #dc2626;
  --color-toxic-bright: #f87171;
  --color-toxic-glow: rgba(220, 38, 38, 0.4);
  --color-water: #0ea5e9;
  --color-water-deep: #0369a1;
  --color-forest: #16a34a;
  --color-gold: #f59e0b;
  --color-gold-dim: rgba(245, 158, 11, 0.15);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1200px;
  --max-width-narrow: 800px;
}

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

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

body {
  font-family: var(--font-body);
  background: var(--color-bg-dark);
  color: var(--color-text);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--color-accent-light); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--color-gold); }

::selection {
  background: rgba(59, 130, 246, 0.4);
  color: #fff;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent-light);
  margin-bottom: 1.5rem;
  display: block;
}

.section-label--danger { color: var(--color-danger); }
.section-label--gold { color: var(--color-gold); }

h1, h2, h3, h4, h5 { font-family: var(--font-display); color: var(--color-text-bright); line-height: 1.15; }

.headline-massive {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.headline-large {
  font-size: clamp(2rem, 4.5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.headline-medium {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
}

.body-large {
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  line-height: 1.8;
  color: var(--color-text);
}

.body-regular {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text-dim);
}

.pullquote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-style: italic;
  font-weight: 400;
  color: var(--color-text-bright);
  line-height: 1.5;
  border-left: 4px solid var(--color-accent);
  padding-left: 2rem;
  margin: 3rem 0;
}

.pullquote--danger { border-left-color: var(--color-danger); }

.stat-number {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--color-text-bright);
  line-height: 1.15;
  padding-bottom: 0.05em;
}

.stat-label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  margin-top: 0.5rem;
}

.em-dash {
  display: block;
  text-align: center;
  font-size: 2rem;
  color: var(--color-text-dim);
  padding: 2rem 0;
  opacity: 0.4;
}

/* ============================================
   LAYOUT
   ============================================ */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; }
.container--narrow { max-width: var(--max-width-narrow); margin: 0 auto; padding: 0 2rem; }

.section {
  padding: 8rem 0;
  position: relative;
}

.section--dark { background: var(--color-bg-darker); }
.section--card { background: var(--color-bg-section); }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 2rem; }
  .section { padding: 5rem 0; }
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.4s, backdrop-filter 0.4s;
}

.nav--scrolled {
  background: rgba(10, 14, 23, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-logo-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.nav-logo-link:hover { color: inherit; }

.nav-logo-img {
  border-radius: 4px;
  transition: opacity 0.3s;
}

.nav-logo-link:hover .nav-logo-img { opacity: 0.85; }

.nav-logo {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-bright);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-subscribe {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.55rem 1rem;
  color: var(--color-text-dim);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  transition: all 0.3s;
}

.nav-subscribe:hover {
  color: var(--color-text-bright);
  border-color: rgba(255,255,255,0.3);
}

@media (max-width: 600px) {
  .nav-logo { display: none; }
  .nav-logo-img { width: 32px; height: 32px; }
  .nav-subscribe { display: none; }
}

.nav-logo span { color: #4ade80; }

.nav-cta {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.7rem 1.5rem;
  border: 2px solid var(--color-danger);
  color: var(--color-danger);
  border-radius: 4px;
  transition: all 0.3s;
}

.nav-cta:hover {
  background: var(--color-danger);
  color: #fff;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

#hero-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#hero-map canvas { outline: none; }

.hero-mine-pulse {
  width: 10px;
  height: 10px;
  background: #ef4444;
  border-radius: 50%;
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 10;
  box-shadow: 0 0 8px rgba(239,68,68,0.8);
  animation: heroMinePulse 2s ease-in-out infinite;
}

@keyframes heroMinePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.6), 0 0 8px rgba(239,68,68,0.8); }
  50% { box-shadow: 0 0 0 12px rgba(239,68,68,0), 0 0 16px rgba(239,68,68,0.4); }
}

.hero-map-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Hero content — centered full layout */
.hero-content--full {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 2rem;
}

.hero-content--full > * {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease forwards;
}

.hero-logos { animation-delay: 0.4s; }
.hero-content--full h1 { animation-delay: 0.7s; }
.hero-content--full .hero-subhead { animation-delay: 1s; }
.hero-content--full .hero-cta-row { animation-delay: 1.3s; }

.hero-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.hero-content--full h1 {
  font-family: var(--font-body);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.15;
  color: var(--color-text-bright);
  margin: 0 0 1.5rem 0;
  text-shadow: 0 2px 24px rgba(0,0,0,0.8), 0 0 60px rgba(0,0,0,0.3);
}

.hero-subhead {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.7);
  font-weight: 400;
  line-height: 1.75;
  margin: 0 auto 2.5rem;
  max-width: 540px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.9);
}

.hero-cta-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn--hero {
  font-size: 0.85rem;
  padding: 0.9rem 2rem;
  text-shadow: none;
  min-height: 44px;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
  opacity: 0;
  animation: fadeUp 1s 2.5s forwards;
}

.hero-scroll-hint span {
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}

.hero-scroll-line {
  width: 1px;
  height: 28px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.2), transparent);
  margin: 0.5rem auto 0;
  animation: scrollPulse 2.5s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 0.6; transform: scaleY(1.15); }
}

@media (max-width: 600px) {
  .hero-content--full { padding: 0 1.25rem; }
  .hero-content--full h1 { font-size: clamp(1.5rem, 7vw, 2.4rem); letter-spacing: 0.1em; margin-bottom: 1rem; }
  .hero-subhead { font-size: 0.92rem; margin-bottom: 2rem; }
  .hero-logos img:first-child { width: 36px; height: 36px; }
  .hero-logos img:last-child { height: 30px; }
  .hero-logos { gap: 0.8rem; margin-bottom: 1.5rem; }
  .hero-cta-row { flex-direction: column; align-items: stretch; padding: 0 0.5rem; }
  .btn--hero { text-align: center; font-size: 0.8rem; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Water flow indicator — small, near mine site area */
.water-flow-indicator {
  position: absolute;
  right: 28%;
  bottom: 32%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  opacity: 0;
  animation: fadeUp 1s 3s forwards;
  pointer-events: none;
}

.water-flow-indicator .flow-chevron {
  width: 6px;
  height: 6px;
  border-left: 1px solid rgba(100,180,255,0.5);
  border-top: 1px solid rgba(100,180,255,0.5);
  transform: rotate(45deg);
  opacity: 0;
  animation: flowPulse 2.5s ease-in-out infinite;
}

.water-flow-indicator .flow-chevron:nth-child(1) { animation-delay: 0.8s; }
.water-flow-indicator .flow-chevron:nth-child(2) { animation-delay: 0.4s; }
.water-flow-indicator .flow-chevron:nth-child(3) { animation-delay: 0s; }

.water-flow-indicator .flow-label {
  font-family: var(--font-body);
  font-size: 0.45rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-top: 0.4rem;
  white-space: nowrap;
}

@keyframes flowPulse {
  0%, 100% { opacity: 0; transform: rotate(45deg) translateY(0); }
  40%, 60% { opacity: 0.55; transform: rotate(45deg) translateY(-2px); }
}

@media (max-width: 768px) {
  .water-flow-indicator { right: 20%; bottom: 28%; }
}

/* ============================================
   INTRO / WILDERNESS SECTION
   ============================================ */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.intro-grid p { margin-bottom: 1.5rem; }

@media (max-width: 900px) {
  .intro-grid { grid-template-columns: 1fr; gap: 3rem; }
}

/* ============================================
   BIG STAT BLOCKS
   ============================================ */
.big-stat-row {
  display: flex;
  justify-content: center;
  gap: 6rem;
  flex-wrap: wrap;
  padding: 4rem 0;
}

.big-stat { text-align: center; }

.big-stat .stat-number {
  font-size: clamp(3rem, 8vw, 7rem);
  display: block;
  background: linear-gradient(135deg, var(--color-text-bright), var(--color-accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.big-stat--danger .stat-number {
  background: linear-gradient(135deg, var(--color-danger), var(--color-toxic-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   IMAGE SECTIONS
   ============================================ */
.full-image {
  width: 100%;
  height: 70vh;
  min-height: 500px;
  object-fit: cover;
  display: block;
}

.image-with-caption {
  position: relative;
}

.image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3rem 2rem 2rem;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  font-size: 0.85rem;
  color: var(--color-text-dim);
}

/* ============================================
   ECOSYSTEM PARTICLE VISUALIZATION
   ============================================ */
.ecosystem-section {
  position: relative;
  background: #000;
  /* NO overflow:hidden — it breaks position:sticky on the canvas */
}

/* Above-water to underwater submersion */
/* Landscape painting — overlaid on the canvas via CSS, not canvas drawImage.
   This avoids CORS issues with cross-origin images on canvas. */
#eco-painting-wrap {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  pointer-events: none;
  z-index: 3;
  -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}
#eco-painting-img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
#eco-painting-text {
  position: absolute;
  top: 45%;
  left: 0;
  right: 0;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  z-index: 4;
}
#eco-painting-text p {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  font-style: italic;
  font-weight: 400;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 2px 30px rgba(0,0,0,0.7), 0 0 60px rgba(0,0,0,0.4);
  max-width: 650px;
  margin: 0 auto;
  padding: 0 2rem;
  line-height: 1.6;
}

.eco-scroll-container {
  position: relative;
  height: 1000vh;
}

#eco-canvas {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: block;
  z-index: 1;
}

.eco-cards {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.eco-card {
  position: absolute;
  left: 5%;
  width: 38%;
  max-width: 480px;
  padding: 2rem 2.5rem;
  background: rgba(10, 14, 23, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  color: var(--color-text);
  pointer-events: auto;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.eco-card.eco-card--visible {
  opacity: 1;
  transform: translateY(0);
}

.eco-card.eco-card--right {
  left: auto;
  right: 5%;
}

.eco-card.eco-card--center {
  left: 50%;
  transform: translateX(-50%) translateY(30px);
}
.eco-card.eco-card--center.eco-card--visible {
  transform: translateX(-50%) translateY(0);
}

.eco-card h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-text-bright);
  margin-bottom: 0.75rem;
}

.eco-card[data-eco-step="3"] h3,
.eco-card[data-eco-step="4"] h3,
.eco-card[data-eco-step="5"] h3,
.eco-card[data-eco-step="6"] h3,
.eco-card[data-eco-step="7"] h3 {
  color: var(--color-danger);
}

.eco-card p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--color-text-dim);
}

.eco-card p strong {
  color: var(--color-text-bright);
}

.eco-card[data-eco-step="3"] p strong,
.eco-card[data-eco-step="4"] p strong,
.eco-card[data-eco-step="5"] p strong,
.eco-card[data-eco-step="6"] p strong,
.eco-card[data-eco-step="7"] p strong {
  color: var(--color-danger);
}

/* Position cards down the scroll container.
   1200vh total. First 360vh is submersion.
   Step 2 (The Chain) gets a 250vh zone for the surface return camera move.
   Cards after step 2 are pushed down to accommodate. */
.eco-card[data-eco-step="0"] { top: 280vh; }
.eco-card[data-eco-step="1"] { top: 370vh; }
.eco-card[data-eco-step="2"] { top: 460vh; }
.eco-card[data-eco-step="3"] { top: 560vh; }
.eco-card[data-eco-step="4"] { top: 650vh; }
.eco-card[data-eco-step="5"] { top: 740vh; }
.eco-card[data-eco-step="6"] { top: 830vh; }
.eco-card[data-eco-step="7"] { top: 910vh; }

@media (max-width: 768px) {
  .eco-card {
    left: 3% !important;
    right: 3% !important;
    width: auto;
    max-width: none;
  }
  .eco-card.eco-card--right { left: 3% !important; }
  .eco-card.eco-card--center { left: 3% !important; transform: translateY(30px); }
  .eco-card.eco-card--center.eco-card--visible { transform: translateY(0); }
}

/* ============================================
   SCROLLING MAP SECTION
   ============================================ */
.map-section {
  position: relative;
  background: var(--color-bg-darker);
}

.map-container {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  z-index: 1;
}

#pollution-map {
  width: 100%;
  height: 100%;
}

.map-overlay-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, var(--color-bg-darker), transparent);
  z-index: 400;
  pointer-events: none;
}

.map-overlay-gradient--bottom {
  top: auto;
  bottom: 0;
  height: 120px;
  background: linear-gradient(to top, var(--color-bg-darker), transparent);
}

.map-narrative {
  position: relative;
  z-index: 500;
  pointer-events: none;
}

.map-step {
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 2rem;
  pointer-events: none;
}

.map-step:first-child { padding-top: 30vh; }
.map-step:last-child { padding-bottom: 30vh; }

.map-step-card {
  background: rgba(10, 14, 23, 0.92);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 2.5rem;
  max-width: 420px;
  pointer-events: auto;
  opacity: 0.15;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.map-step-card.active {
  opacity: 1;
  transform: translateY(0);
}

.map-step-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.map-step-card p {
  font-size: 0.95rem;
  color: var(--color-text-dim);
  line-height: 1.7;
}

.map-step-card .step-icon {
  display: inline-block;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-toxic);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 36px;
  text-align: center;
  margin-bottom: 1rem;
}

.map-step-card .step-icon--mine {
  background: var(--color-danger);
  box-shadow: 0 0 20px var(--color-danger-glow);
}

.map-step-card .step-icon--water { background: var(--color-water-deep); }
.map-step-card .step-icon--park { background: var(--color-forest); }
.map-step-card .step-icon--canada { background: var(--color-danger); }

.map-step-card .toxin-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  background: rgba(220, 38, 38, 0.15);
  color: var(--color-toxic-bright);
  margin-right: 0.4rem;
  margin-top: 0.5rem;
}

.map-legend {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  z-index: 600;
  background: rgba(10, 14, 23, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  font-size: 0.75rem;
}

.map-legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  color: var(--color-text-dim);
}

.map-legend-item:last-child { margin-bottom: 0; }

.map-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.map-progress {
  position: absolute;
  top: 50%;
  right: 2rem;
  transform: translateY(-50%);
  z-index: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.map-progress-track {
  width: 2px;
  height: 200px;
  background: rgba(255,255,255,0.1);
  border-radius: 1px;
  position: relative;
  overflow: hidden;
}

.map-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(to bottom, var(--color-gold), var(--color-danger));
  border-radius: 1px;
  transition: height 0.4s ease;
}

.map-progress-label {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  writing-mode: vertical-rl;
  margin-top: 0.75rem;
}

/* ============================================
   TRACK RECORD SECTION
   ============================================ */
.track-record-stat {
  text-align: center;
  padding: 6rem 2rem;
}

.track-record-stat .stat-number {
  font-size: clamp(5rem, 15vw, 12rem);
  display: block;
  color: var(--color-danger);
  -webkit-text-fill-color: var(--color-danger);
  text-shadow: 0 0 60px var(--color-danger-glow);
}

.track-record-stat .stat-label {
  font-size: clamp(1rem, 2vw, 1.5rem);
  color: var(--color-text);
  text-transform: none;
  letter-spacing: 0;
  max-width: 600px;
  margin: 1rem auto 0;
}

/* ============================================
   JOBS COMPARISON
   ============================================ */
.jobs-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.jobs-compare-side { text-align: center; }

.jobs-compare-vs {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--color-text-dim);
}

.jobs-number {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: 1;
  display: block;
  margin-bottom: 0.5rem;
}

.jobs-number--mine { color: var(--color-text-dim); }
.jobs-number--wilderness { color: var(--color-forest); }

.jobs-desc {
  font-size: 0.9rem;
  color: var(--color-text-dim);
  line-height: 1.5;
}

.jobs-desc strong {
  color: var(--color-text);
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.jobs-bar-section {
  max-width: 700px;
  margin: 4rem auto 0;
}

.jobs-bar-row {
  margin-bottom: 2rem;
}

.jobs-bar-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.jobs-bar-label span:first-child { color: var(--color-text); font-weight: 500; }
.jobs-bar-label span:last-child { color: var(--color-text-bright); font-weight: 700; }

.jobs-bar-track {
  height: 12px;
  background: rgba(255,255,255,0.06);
  border-radius: 6px;
  overflow: hidden;
}

.jobs-bar-fill {
  height: 100%;
  border-radius: 6px;
  width: 0;
  transition: width 1.5s ease-out;
}

.jobs-bar-fill--mine {
  background: linear-gradient(90deg, var(--color-text-dim), #6b7280);
  max-width: 12%;
}

.jobs-bar-fill--wilderness {
  background: linear-gradient(90deg, var(--color-forest), #4ade80);
}

@media (max-width: 700px) {
  .jobs-compare { grid-template-columns: 1fr; gap: 2rem; }
}

/* ============================================
   SPECIES CARDS
   ============================================ */

/* ============================================
   FOREIGN COMPANY SECTION
   ============================================ */
.foreign-highlight {
  background: var(--color-bg-card);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 16px;
  padding: 4rem;
  text-align: center;
  max-width: 800px;
  margin: 3rem auto;
}

.foreign-highlight .flag-row {
  margin-bottom: 1.5rem;
  text-align: center;
}
.foreign-highlight .flag-row img {
  max-width: 200px;
  width: 100%;
  height: auto;
  border-radius: 6px;
  opacity: 0.9;
  filter: brightness(0.9);
}

.foreign-highlight h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.foreign-highlight p {
  font-size: 1.05rem;
  color: var(--color-text-dim);
  line-height: 1.8;
}

.pollution-fill-text {
  display: inline-block;
  color: #4a9eed;
  background: linear-gradient(to right, #cc2936, #cc2936) no-repeat left;
  background-size: 0% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: background-size 2.5s ease-in-out;
}

.pollution-fill-text.filling {
  background-size: 100% 100%;
}

/* ============================================
   CTA / ACTION SECTION
   ============================================ */
.cta-section {
  text-align: center;
  padding: 10rem 2rem;
  background:
    radial-gradient(ellipse at center, rgba(59, 130, 246, 0.08) 0%, transparent 70%),
    var(--color-bg-darker);
}

.cta-section h2 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 1.5rem;
}

.cta-section p {
  font-size: 1.15rem;
  color: var(--color-text-dim);
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.8;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}

.btn--primary {
  background: var(--color-danger);
  color: #fff;
}

.btn--primary:hover {
  background: #dc2626;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--color-danger-glow);
}

.btn--outline {
  background: transparent;
  color: var(--color-text-bright);
  border: 2px solid rgba(255,255,255,0.2);
}

.btn--outline:hover {
  border-color: var(--color-text-bright);
  color: #fff;
  transform: translateY(-2px);
}

/* Senator contact list */
.senator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.senator-card {
  background: var(--color-bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 1.25rem;
  transition: border-color 0.3s;
}

.senator-card:hover { border-color: var(--color-accent); }

.senator-card .senator-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-text-bright);
}

.senator-card .senator-state {
  font-size: 0.8rem;
  color: var(--color-text-dim);
  margin-bottom: 0.5rem;
}

.senator-card a {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 4rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer p {
  font-size: 0.85rem;
  color: var(--color-text-dim);
  line-height: 1.6;
}

.footer a { color: var(--color-accent-light); }

.footer-logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

/* ============================================
   SUBSCRIBE SECTION
   ============================================ */
.subscribe-section {
  padding: 6rem 0;
  background: linear-gradient(to bottom, var(--color-bg-dark), var(--color-bg-darker));
  position: relative;
}

.subscribe-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--color-accent));
}

.subscribe-card {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  padding: 3.5rem 3rem;
  background: rgba(20, 28, 43, 0.6);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  backdrop-filter: blur(8px);
}

.subscribe-logo {
  border-radius: 8px;
  margin: 0 auto 1.5rem;
  display: block;
  opacity: 0.9;
}

.subscribe-heading {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--color-text-bright);
  margin-bottom: 1rem;
}

.subscribe-desc {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text-dim);
  margin-bottom: 2rem;
}

.btn--subscribe {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 6px;
  transition: all 0.3s;
  text-decoration: none;
}

.btn--subscribe:hover {
  background: var(--color-accent-light);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59,130,246,0.3);
}

.subscribe-note {
  font-size: 0.75rem;
  color: var(--color-text-dim);
  margin-top: 1rem;
  opacity: 0.7;
}

/* ============================================
   ANIMATIONS (scroll-triggered via Intersection Observer)
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }
.reveal-delay-4 { transition-delay: 0.6s; }

/* ============================================
   DIVIDER LINE
   ============================================ */
.divider {
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
  margin: 2rem 0;
}

.divider--center { margin: 2rem auto; }
.divider--danger { background: var(--color-danger); }
#the-lies .divider { background: var(--color-danger); }
#the-lies .divider--danger { background: var(--color-danger); }

/* ============================================
   COUNTER ANIMATION
   ============================================ */
.count-up {
  display: inline-block;
}

/* ============================================
   MAPLIBRE GL OVERRIDES
   ============================================ */
.maplibregl-ctrl-attrib { display: none !important; }
.maplibregl-ctrl-logo { display: none !important; }

#pollution-map {
  width: 100%;
  height: 100%;
}

/* Map markers */
.mine-marker {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-danger);
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  animation: pulse 2s infinite;
  cursor: default;
  opacity: 0;
  transition: opacity 0.3s;
}

.mine-marker.marker-visible {
  opacity: 1;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { box-shadow: 0 0 0 22px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.map-label {
  font-family: var(--font-body);
  font-weight: 700;
  text-shadow: 0 1px 6px rgba(0,0,0,0.9), 0 0 12px rgba(0,0,0,0.6);
  white-space: nowrap;
  pointer-events: none;
  line-height: 1.3;
}

.map-label--mine { color: #ef4444; font-size: 12px; letter-spacing: 0.08em; text-shadow: 0 0 12px rgba(0,0,0,1), 0 2px 8px rgba(0,0,0,0.9), 0 0 30px rgba(0,0,0,0.5); background: rgba(0,0,0,0.5); padding: 4px 8px; border-radius: 4px; border-left: 3px solid #ef4444; }
.map-label--city { color: #fff; font-size: 12px; }
.map-label--area { color: #38bdf8; font-size: 13px; letter-spacing: 0.2em; opacity: 0.7; }
.map-label--park { color: #4ade80; font-size: 11px; letter-spacing: 0.15em; opacity: 0.6; }
.map-label--country { color: rgba(255,255,255,0.4); font-size: 10px; letter-spacing: 0.3em; }

/* ============================================
   FULL-BLEED IMAGE WITH TEXT OVERLAY
   ============================================ */
.image-interlude {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 4rem 0;
}

.image-interlude-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.image-interlude-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

.image-interlude-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 3rem 2rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */


@media (max-width: 600px) {
  .map-step-card { max-width: 100%; padding: 1.5rem; }
  .map-legend { display: none; }
  .map-progress { display: none; }
  .foreign-highlight { padding: 2rem; }
  .jobs-compare { grid-template-columns: 1fr; }
  .big-stat-row { gap: 3rem; }
}

/* ============================================
   SCROLL PROGRESS BAR
   ============================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-danger));
  z-index: 10000;
  transition: none;
  will-change: width;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.scroll-progress.visible {
  opacity: 1;
}

/* ============================================
   AMBIENT BREATHING ANIMATIONS
   ============================================ */
@keyframes breathe {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes driftSlow {
  0% { transform: translate(0, 0); }
  33% { transform: translate(4px, -3px); }
  66% { transform: translate(-3px, 2px); }
  100% { transform: translate(0, 0); }
}

@keyframes glowPulse {
  0%, 100% { text-shadow: 0 0 20px rgba(239,68,68,0.3); }
  50% { text-shadow: 0 0 40px rgba(239,68,68,0.6), 0 0 80px rgba(239,68,68,0.2); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.stat-number { animation: breathe 4s ease-in-out infinite; }
.big-stat:nth-child(2) .stat-number { animation-delay: 0.8s; }
.big-stat:nth-child(3) .stat-number { animation-delay: 1.6s; }

#track-record .stat-number {
  animation: glowPulse 3s ease-in-out infinite;
}

.hero-content h1 {
  animation: fadeUp 1.5s 1s forwards;
}

.section-label {
  position: relative;
  overflow: hidden;
}

.section-label::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  animation: shimmer 8s ease-in-out infinite;
}

.divider {
  position: relative;
  overflow: hidden;
}

.divider::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shimmer 4s ease-in-out infinite;
}

/* Floating water flow chevrons */
.flow-chevron { animation: floatY 3s ease-in-out infinite; }
.flow-chevron:nth-child(1) { animation-delay: 0s; }
.flow-chevron:nth-child(2) { animation-delay: 0.3s; }
.flow-chevron:nth-child(3) { animation-delay: 0.6s; }

/* Pullquote border pulse */
.pullquote {
  position: relative;
}

.pullquote::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: inherit;
  opacity: 0;
  filter: blur(8px);
  animation: breathe 3s ease-in-out infinite;
}

/* Toxin tags pulse */
.toxin-tag {
  animation: breathe 2.5s ease-in-out infinite;
}

.toxin-tag:nth-child(2) { animation-delay: 0.3s; }
.toxin-tag:nth-child(3) { animation-delay: 0.6s; }
.toxin-tag:nth-child(4) { animation-delay: 0.9s; }
.toxin-tag:nth-child(5) { animation-delay: 1.2s; }

/* Foreign highlight breathing border */
.foreign-highlight {
  position: relative;
}

.foreign-highlight::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid var(--color-danger);
  opacity: 0;
  animation: breathe 4s ease-in-out infinite;
}

/* Senator cards subtle hover lift */
.senator-card {
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.senator-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

/* ============================================
   PARALLAX IMAGE INTERLUDE
   ============================================ */
.image-interlude {
  overflow: hidden;
}

.image-interlude-bg {
  will-change: transform;
  transition: none;
}

/* ============================================
   COUNT-UP ANIMATION
   ============================================ */
.count-up {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

/* ============================================
   SHARE TOOLKIT
   ============================================ */
.share-toolkit {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  color: #fff;
}

.share-btn:active { transform: translateY(0); }

.share-btn--x { background: #14171a; }
.share-btn--facebook { background: #1877f2; }
.share-btn--email { background: #555; }
.share-btn--copy {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.2);
  color: var(--color-text-dim);
}

.share-btn--copy:hover {
  border-color: var(--color-accent);
  color: var(--color-text-bright);
}

.share-btn--copy.copied {
  border-color: #4ade80;
  color: #4ade80;
}

.share-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ============================================
   CALL SCRIPT
   ============================================ */
.call-script-section {
  margin-top: 3rem;
  text-align: left;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.call-script-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.5rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1.5px solid var(--color-danger);
  border-radius: 6px;
  color: var(--color-danger);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  width: 100%;
  text-align: left;
}

.call-script-toggle:hover {
  background: rgba(239, 68, 68, 0.2);
}

.call-script-toggle .toggle-icon {
  transition: transform 0.3s;
  font-size: 1.2rem;
}

.call-script-toggle.open .toggle-icon {
  transform: rotate(45deg);
}

.call-script-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.5s ease;
  background: rgba(10, 14, 23, 0.8);
  border: 1px solid rgba(255,255,255,0.06);
  border-top: none;
  border-radius: 0 0 6px 6px;
}

.call-script-body.open {
  max-height: 800px;
  padding: 2rem;
}

.call-script-body p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.call-script-body p:last-child { margin-bottom: 0; }

.call-script-body .script-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  margin-bottom: 0.5rem;
}

.call-script-body blockquote {
  border-left: 3px solid var(--color-accent);
  padding-left: 1.5rem;
  margin: 1rem 0;
  font-style: italic;
  color: var(--color-text);
  line-height: 1.8;
}

/* Phone link in senator cards */
.senator-phone {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-dim);
  margin-top: 0.25rem;
  transition: color 0.2s;
}

.senator-phone:hover {
  color: var(--color-accent-light);
}

@media (max-width: 600px) {
  .senator-phone {
    font-size: 0.9rem;
    padding: 0.4rem 0;
  }
}

/* ============================================
   TIMELINE (THE POLITICS)
   ============================================ */
.timeline {
  position: relative;
  margin: 3rem 0;
  padding-left: 2.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-accent), var(--color-danger), var(--color-gold));
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  padding-bottom: 0.5rem;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-bg-dark);
  border: 2px solid var(--color-accent);
  z-index: 1;
  transition: all 0.3s;
}

.timeline-item.visible::before {
  background: var(--color-accent);
  box-shadow: 0 0 12px rgba(59,130,246,0.5);
}

.timeline-item--danger::before {
  border-color: var(--color-danger);
}

.timeline-item--danger.visible::before {
  background: var(--color-danger);
  box-shadow: 0 0 12px var(--color-danger-glow);
}

.timeline-item--gold::before {
  border-color: var(--color-gold);
}

.timeline-item--gold.visible::before {
  background: var(--color-gold);
  box-shadow: 0 0 12px rgba(245,158,11,0.5);
}

.timeline-item--active::before {
  width: 16px;
  height: 16px;
  left: calc(-2.5rem - 2px);
  top: 0.2rem;
  animation: breathe 2s ease-in-out infinite;
}

.timeline-date {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent-light);
  margin-bottom: 0.4rem;
}

.timeline-item--danger .timeline-date { color: var(--color-danger); }
.timeline-item--gold .timeline-date { color: var(--color-gold); }

.timeline-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text-bright);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.timeline-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text-dim);
}

.timeline-desc strong {
  color: var(--color-text);
}

/* Pulse on the active "now" item */
@keyframes timelineNow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,158,11,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(245,158,11,0); }
}

.timeline-item--active::before {
  animation: timelineNow 2s ease-in-out infinite;
}

/* ============================================
   MOBILE MAP IMPROVEMENTS
   ============================================ */
@media (max-width: 768px) {
  /* Show a simplified mobile legend */
  .map-legend {
    display: flex !important;
    flex-wrap: wrap;
    gap: 0.4rem;
    bottom: auto;
    top: 1rem;
    right: auto;
    left: 1rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.55rem;
    background: rgba(10, 14, 23, 0.9);
    max-width: calc(100% - 2rem);
  }

  .map-legend-item {
    white-space: nowrap;
  }

  /* Better mobile step cards */
  .map-step-card {
    font-size: 0.9rem;
    max-width: 85vw;
  }

  .map-step-card h3 {
    font-size: 1.1rem;
  }

  .map-step-card p {
    font-size: 0.85rem;
    line-height: 1.6;
  }

  /* Mobile progress indicator */
  .map-progress {
    display: block !important;
    left: auto;
    right: 0.75rem;
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
    height: 120px;
  }

  .map-progress-track {
    height: 100%;
    width: 3px;
  }

  .map-progress-label {
    font-size: 0.5rem;
  }
}

@media (max-width: 600px) {
  .map-legend { display: none !important; }

  .share-toolkit {
    flex-direction: column;
    align-items: stretch;
  }

  .share-btn {
    justify-content: center;
  }

  .call-script-section {
    margin-left: 0;
    margin-right: 0;
  }

  .timeline { padding-left: 2rem; }
  .timeline-item::before { left: -2rem; }
  .timeline-item--active::before { left: calc(-2rem - 2px); }
}

/* ============================================
   AMBIENT WATER PARTICLES (BACKGROUND)
   ============================================ */
.ambient-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.04;
}

/* ============================================
   SECTION TRANSITIONS
   ============================================ */
.section {
  position: relative;
}

/* Subtle inner shadow at section tops */
.section--dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), transparent);
  pointer-events: none;
  z-index: 1;
}

/* Nav breathing dot when scrolled */
.nav--scrolled .nav-cta {
  position: relative;
}

.nav--scrolled .nav-cta::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-danger);
  animation: breathe 2s ease-in-out infinite;
}

/* ============================================
   INTRO OVERLAY
   ============================================ */
.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: var(--color-bg-darker);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.8s ease;
  pointer-events: auto;
}

.intro-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

.intro-overlay.hidden {
  display: none;
}

.intro-overlay-content {
  text-align: center;
  opacity: 0;
  transform: translateY(16px);
  animation: introFadeIn 1s 0.3s ease forwards;
}

@keyframes introFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

.intro-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.intro-logo {
  opacity: 0;
  transform: scale(0.9);
  animation: introLogoIn 0.8s ease forwards;
}

.intro-logo--mtjp {
  border-radius: 8px;
  animation-delay: 0.5s;
}

.intro-logo--stbw {
  height: 48px;
  width: auto;
  animation-delay: 0.8s;
  filter: brightness(1.1);
}

@keyframes introLogoIn {
  to { opacity: 1; transform: scale(1); }
}

.intro-logo-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.15);
  opacity: 0;
  animation: introLogoIn 0.6s 0.7s ease forwards;
}

.intro-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  opacity: 0;
  animation: introFadeIn 0.8s 1.1s ease forwards;
}

.intro-label--partner {
  font-weight: 400;
  letter-spacing: 0.12em;
  margin-top: 0.35rem;
  color: rgba(138, 154, 181, 0.7);
  font-size: 0.7rem;
  animation-delay: 1.4s;
}

@media (max-width: 480px) {
  .intro-logos { gap: 1rem; }
  .intro-logo--mtjp { width: 44px; height: 44px; }
  .intro-logo--stbw { height: 36px; }
  .intro-logo-divider { height: 28px; }
  .intro-label { font-size: 0.65rem; letter-spacing: 0.12em; }
  .intro-label--partner { font-size: 0.6rem; }
}

/* ============================================
   MOBILE POLISH
   ============================================ */
@media (max-width: 480px) {
  /* Tighter hero content on small screens */
  .hero-content {
    bottom: 2rem;
    left: 1.5rem;
    right: 1.5rem;
  }

  .hero-content h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .hero-content p {
    font-size: clamp(0.8rem, 3vw, 1rem);
  }

  /* Container padding */
  .container, .container--narrow {
    padding: 0 1.25rem;
  }

  /* Section padding */
  .section { padding: 3.5rem 0; }

  /* Typography scaling */
  .headline-large { font-size: clamp(1.6rem, 6vw, 2.5rem); }
  .headline-medium { font-size: clamp(1.3rem, 5vw, 2rem); }
  .headline-massive { font-size: clamp(2rem, 10vw, 4rem); }
  .body-large { font-size: 1.05rem; }

  /* Foreign highlight box */
  .foreign-highlight {
    padding: 1.5rem;
  }

  .foreign-highlight h3 {
    font-size: 1.2rem;
  }

  /* Pullquotes */
  .pullquote {
    font-size: clamp(1.1rem, 3.5vw, 1.6rem);
    padding-left: 1.25rem;
  }

  /* Image interludes */
  .image-interlude { min-height: 60vh; }
  .image-interlude-content { padding: 2rem 1.5rem; }

  /* Track record stat */
  #track-record .stat-number {
    font-size: clamp(4rem, 20vw, 8rem);
  }

  /* CTA section */
  .cta-section { padding: 4rem 0; }

  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-buttons .btn {
    text-align: center;
  }

  /* Timeline */
  .timeline { padding-left: 1.75rem; }
  .timeline-item::before { left: -1.75rem; }
  .timeline-item--active::before { left: calc(-1.75rem - 2px); }
  .timeline-title { font-size: 1.05rem; }
  .timeline-desc { font-size: 0.88rem; }

  /* Subscribe section */
  .subscribe-card { padding: 2.5rem 1.5rem; }
  .subscribe-heading { font-size: 1.4rem; }

  /* Nav on very small screens */
  .nav { padding: 0.9rem 1.25rem; }

  /* Senator grid single column */
  .senator-grid {
    grid-template-columns: 1fr !important;
  }

  /* Call script */
  .call-script-body blockquote {
    padding-left: 1rem;
  }

  /* John Adams quote box */
  #the-lies .headline-large {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
  }

  /* John Adams box padding override */
  #the-lies div[style*="padding: 2.5rem 3rem"] {
    padding: 1.5rem !important;
  }

  /* Chapters sidebar */
  .chapters-sidebar { display: none; }
}

/* Tablet polish */
@media (min-width: 481px) and (max-width: 768px) {
  .senator-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .eco-card {
    width: 60% !important;
    max-width: none !important;
  }
}

/* Ensure scroll-driven sections don't break on short viewports */
@media (max-height: 600px) {
  .eco-scroll-container { height: 800vh; }
  .map-step { min-height: 60vh; }
}

/* Touch device improvements */
@media (hover: none) {
  .senator-card:hover {
    transform: none;
    box-shadow: none;
  }

  .senator-card:active {
    transform: translateY(-2px);
    border-color: var(--color-accent);
  }
}

/* ============================================
   CHAPTERS SIDEBAR
   ============================================ */
.chapters-sidebar {
  position: fixed;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.chapters-sidebar.visible {
  opacity: 1;
  pointer-events: auto;
}

.chapters-track {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
}

.chapter-dot {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0;
  text-decoration: none;
  position: relative;
}

.chapter-dot::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.2);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.chapter-dot:hover::after {
  background: rgba(255,255,255,0.3);
  border-color: rgba(255,255,255,0.5);
  transform: scale(1.3);
}

.chapter-dot.active::after {
  background: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: 0 0 8px rgba(59,130,246,0.4);
  transform: scale(1.2);
}

.chapter-dot[data-section="the-vote"].active::after,
.chapter-dot[data-section="the-threat"].active::after,
.chapter-dot[data-section="track-record"].active::after,
.chapter-dot[data-section="the-lies"].active::after,
.chapter-dot[data-section="the-politics"].active::after {
  background: var(--color-danger);
  border-color: var(--color-danger);
  box-shadow: 0 0 8px var(--color-danger-glow);
}

.chapter-dot[data-section="take-action"].active::after {
  background: var(--color-gold);
  border-color: var(--color-gold);
  box-shadow: 0 0 8px rgba(245,158,11,0.4);
}

.chapter-label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0);
  white-space: nowrap;
  transition: color 0.3s ease;
  pointer-events: none;
}

.chapter-dot:hover .chapter-label,
.chapter-dot.active .chapter-label {
  color: rgba(255,255,255,0.6);
}

/* Connected line between dots */
.chapters-track::before {
  content: '';
  position: absolute;
  right: 3.5px;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 1px;
  background: rgba(255,255,255,0.06);
  z-index: -1;
}

.chapters-track {
  position: relative;
}

@media (max-width: 1100px) {
  .chapters-sidebar { right: 0.75rem; }
  .chapter-label { display: none; }
}

@media (max-width: 768px) {
  .chapters-sidebar { display: none; }
}

/* ============================================
   WEBKIT BACKDROP-FILTER FIX (Safari/iOS)
   ============================================ */
.nav--scrolled {
  -webkit-backdrop-filter: blur(20px);
}

.eco-card {
  -webkit-backdrop-filter: blur(12px);
}

.map-step-card {
  -webkit-backdrop-filter: blur(16px);
}

.map-legend {
  -webkit-backdrop-filter: blur(12px);
}

.subscribe-card {
  -webkit-backdrop-filter: blur(8px);
}


/* ============================================
   TOUCH TARGET FIXES
   ============================================ */
.nav-cta {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-subscribe {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.call-script-toggle {
  min-height: 44px;
}

.senator-card a {
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
}

/* ============================================
   FONT SIZE FLOOR (accessibility)
   ============================================ */
.flow-label { font-size: 0.55rem; }

@media (max-width: 768px) {
  .map-progress-label { font-size: 0.65rem; }
}

/* ============================================
   STAT CALLOUT BOXES
   ============================================ */
.stat-callout {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
}

.stat-callout-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1;
  flex-shrink: 0;
}

.stat-callout-label {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-dim);
}

@media (max-width: 480px) {
  .stat-callout {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
    padding: 1.25rem;
  }
}

/* ============================================
   STEP COUNTER ON MAP CARDS
   ============================================ */
.map-step-card::after {
  content: '';
  position: absolute;
  bottom: 1rem;
  right: 1.5rem;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.2);
  text-transform: uppercase;
}

.map-step[data-step="0"] .map-step-card::after { content: '1 of 10'; }
.map-step[data-step="1"] .map-step-card::after { content: '2 of 10'; }
.map-step[data-step="2"] .map-step-card::after { content: '3 of 10'; }
.map-step[data-step="3"] .map-step-card::after { content: '4 of 10'; }
.map-step[data-step="4"] .map-step-card::after { content: '5 of 10'; }
.map-step[data-step="5"] .map-step-card::after { content: '6 of 10'; }
.map-step[data-step="6"] .map-step-card::after { content: '7 of 10'; }
.map-step[data-step="7"] .map-step-card::after { content: '8 of 10'; }
.map-step[data-step="8"] .map-step-card::after { content: '9 of 10'; }
.map-step[data-step="9"] .map-step-card::after { content: '10 of 10'; }

.map-step-card {
  position: relative;
}

/* ============================================
   BACK-HALF SPACING TIGHTEN
   ============================================ */
#the-lies { padding: 6rem 0; }
#the-politics { padding: 6rem 0; }
#latest { padding: 5rem 0; }