/* ============================================================
   ARCTIC SEA ICE — style.css
   Aesthetic: Deep polar night / cinematic documentary
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=DM+Sans:wght@300;400;500&display=swap');

/* ── Variables ────────────────────────────────────────────── */
:root {
  --ocean:      #060f1a;
  --deep:       #0a1628;
  --mid-blue:   #0f2540;
  --card-bg:    rgba(8, 20, 38, 0.88);
  --ice-white:  #d8eeff;
  --accent:     #4eb8ff;
  --accent-dim: #2a7ab5;
  --text-main:  #cfe4f7;
  --text-muted: #6a8fad;
  --danger:     #ff6b4a;
  --orange:     #ff9f43;
  --blue:       #4caf50;
  --gold:       #f0c060;
  --serif:      'Playfair Display', Georgia, serif;
  --sans:       'DM Sans', system-ui, sans-serif;
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background-color: var(--ocean);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── Hero / Title Screen ──────────────────────────────────── */
#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  padding: 8vh 6vw;
  overflow: hidden;
  background: url('bear.jpg') center/cover no-repeat;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(6, 15, 26, 0.75) 0%,
    rgba(6, 15, 26, 0.45) 50%,
    rgba(6, 15, 26, 0.15) 100%
  );
  z-index: 0;
}

#hero > *:not(.scroll-cue) {
  position: relative;
  z-index: 1;
}

.hero-stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(200,230,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 15%, rgba(200,230,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 80% 55%, rgba(200,230,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 10% 70%, rgba(200,230,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 45% 85%, rgba(200,230,255,0.3) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 35% 10%, rgba(200,230,255,0.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 25%, rgba(200,230,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 72% 78%, rgba(200,230,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 55% 50%, rgba(200,230,255,0.3) 0%, transparent 100%),
    radial-gradient(2px 2px at 15% 45%, rgba(200,230,255,0.3) 0%, transparent 100%);
  animation: twinkle 8s ease-in-out infinite alternate;
}

@keyframes twinkle {
  0%   { opacity: 0.5; }
  100% { opacity: 1; }
}

.aurora {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(20, 80, 120, 0.15) 30%,
    rgba(40, 160, 140, 0.08) 55%,
    transparent 75%
  );
  animation: aurora-drift 12s ease-in-out infinite alternate;
  transform-origin: center;
}

@keyframes aurora-drift {
  0%   { transform: scaleX(1) translateY(0px);  opacity: 0.6; }
  50%  { transform: scaleX(1.05) translateY(-20px); opacity: 1; }
  100% { transform: scaleX(0.97) translateY(10px);  opacity: 0.7; }
}

.hero-label {
  font-family: var(--sans);
  font-size: 1.0rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(180, 200, 220, 0.75);
  margin-bottom: 1.2rem;
  opacity: 0;
  animation: fade-up 1s var(--ease-smooth) 0.3s forwards;
}

#hero h1 {
  font-family: var(--serif);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 900;
  line-height: 1.0;
  color: #fff;
  text-shadow: 0 0 80px rgba(78, 184, 255, 0.3);
  opacity: 0;
  animation: fade-up 1s var(--ease-smooth) 0.6s forwards;
}

#hero h1 em {
  font-style: normal;
  color: var(--accent);
  display: block;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--ice-white);
  max-width: 520px;
  margin: 1.5rem 0 0 0;
  font-weight: 300;
  opacity: 0;
  animation: fade-up 1s var(--ease-smooth) 0.9s forwards;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.scroll-cue {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--ice-white);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0;
  animation: fade-in 1s var(--ease-smooth) 2s forwards;
}

.scroll-arrow {
  width: 24px;
  height: 36px;
  border: 1.5px solid var(--accent-dim);
  border-radius: 12px;
  position: relative;
}

.scroll-arrow::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
  animation: scroll-bounce 1.8s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  80%       { transform: translateX(-50%) translateY(12px); opacity: 0; }
}

/* ── Scrolly Layout ───────────────────────────────────────── */
#scrolly-container {
  display: flex;
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
}

/* ── Left: Sticky Map ─────────────────────────────────────── */
.sticky-visual {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 60%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}

#map-container {
  width: 100%;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}



/* subtle polar glow behind the globe */
#map-container::before {
  content: '';
  position: absolute;
  width: 60%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(78,184,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* ── Data Display ─────────────────────────────────────────── */
.data-display {
  width: 100%;
  padding: 1.5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
}

.data-inner {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
}

#year-label {
  font-family: var(--serif);
  font-size: 5rem;
  font-weight: 900;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.02em;
  transition: color 0.6s var(--ease-smooth);
}

#extent-label {
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  transition: all 0.6s var(--ease-smooth);
  text-align: center;
}



.extent-value {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 700;
  display: block;
  color: var(--accent);
  transition: color 0.6s var(--ease-smooth);
}

/* Loss bar */
.loss-bar-wrap {
  width: 80%;
  max-width: 340px;
  margin-top: 0.6rem;
}

.loss-bar-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  display: flex;
  justify-content: space-between;
}

.loss-bar-track {
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: visible;
  position: relative;
}

.loss-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--danger) 100%);
  border-radius: 2px;
  transition: width 1s var(--ease-smooth);
  position: relative;
}

.loss-bar-fill::after {
  content: '';
  position: absolute;
  right: -1px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 8px var(--danger);
}

/* ── SVG Map Elements ─────────────────────────────────────── */
.globe-sphere {
  fill: #071525;
  filter: drop-shadow(0 0 40px rgba(78, 184, 255, 0.15));
}

.graticule {
  fill: none;
  stroke: #1a3a5c;
  stroke-width: 0.4px;
}

.graticule-polar {
  fill: none;
  stroke: #2a5080;
  stroke-width: 0.6px;
  stroke-dasharray: 3 4;
}

.land {
  fill: #1e3a18;
  stroke: #0f2010;
  stroke-width: 0.5px;
}

.ice {
  fill: rgba(216, 238, 255, 0.82);
  stroke: rgba(255, 255, 255, 0.7);
  stroke-width: 0.8px;
  filter: drop-shadow(0 0 18px rgba(180, 220, 255, 0.5));
}

.baseline {
  fill: none;
  stroke: rgba(255, 107, 74, 0.9); /* using var(--danger) color */
  stroke-width: 1.5px;
  stroke-dasharray: 4 6;
  filter: drop-shadow(0 0 8px rgba(255, 107, 74, 0.6));
}

/* ── Right: Scrolling Text ────────────────────────────────── */
.scroll-text {
  width: 42%;
  padding: 0 4% 0 2%;
  z-index: 10;
}

.step {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth);
}

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

.step-content {
  background: var(--card-bg);
  padding: 2.5rem 2.5rem 2.5rem 2.2rem;
  border-radius: 16px;
  border-left: 4px solid var(--accent);
  backdrop-filter: blur(16px);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(78, 184, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: hidden;
}

/* card glow tint per step */
.step[data-year="1979"] .step-content { border-left-color: #4eb8ff; }
.step[data-year="2005"] .step-content { border-left-color: #72c9ff; }
.step[data-year="2012"] .step-content { border-left-color: var(--danger); }
.step[data-year="2024"] .step-content { border-left-color: var(--gold); }

.step-content::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 0% 50%, rgba(78,184,255,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.step-year-tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(78, 184, 255, 0.1);
  border: 1px solid rgba(78, 184, 255, 0.2);
  padding: 0.25rem 0.7rem;
  border-radius: 4px;
  margin-bottom: 0.9rem;
}

.step[data-year="2012"] .step-year-tag {
  color: var(--danger);
  background: rgba(255, 107, 74, 0.1);
  border-color: rgba(255, 107, 74, 0.25);
}
.step[data-year="2024"] .step-year-tag {
  color: var(--gold);
  background: rgba(240, 192, 96, 0.1);
  border-color: rgba(240, 192, 96, 0.25);
}

.step h2 {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 1rem;
}

.step p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-main);
  font-weight: 300;
}

.step-stat {
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(78, 184, 255, 0.1);
  display: flex;
  gap: 1.5rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.stat-number {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.step[data-year="2012"] .stat-number { color: var(--danger); }
.step[data-year="2024"] .stat-number { color: var(--gold); }

.stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ── Temperature Section ──────────────────────────────────── */
.temp-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4rem 8%;
  background: linear-gradient(180deg, #090e17 0%, #0f172a 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.temp-content {
  max-width: 800px;
  text-align: center;
  margin-bottom: 4rem;
}

.temp-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.temp-content p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.temp-content p strong {
  font-weight: 900;
  color:#20f9fd;
}

/* #temp-map-container {
  width: 100%;
  max-width: 800px;
  height: 600px;
  position: relative;
  background: radial-gradient(circle at center, rgba(14, 21, 37, 0.8) 0%, transparent 70%);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
} */

#temp-map-container {
  width: 100%;
  max-width: 1050px;
  height: 720px;
  position: relative;
  background: radial-gradient(circle at center, rgba(14, 21, 37, 0.95) 0%, rgba(6, 15, 26, 1) 75%);
  border-radius: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

#temp-map-container svg {
  width: 100%;
  height: 100%;
}

.temp-legend {
  position: absolute;
  bottom: 9px;
  right: 9px;
  z-index: 5;
  background: rgba(15, 23, 42, 0.8);
  padding: 0.7rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-primary);
  font-size: 0.8rem;
}

.legend-gradient {
  width: 200px;
  height: 12px;
  border-radius: 6px;
  margin: 0.5rem 0;
}

.legend-labels {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
}

/* ── Timeline Slider ──────────────────────────────────────── */
.timeline-container {
  width: 100%;
  max-width: 600px;
  margin-bottom: 3rem;
  text-align: center;
  z-index: 10;
}

.year-display {
  position: absolute;
  top: auto;
  left: 55px;
  bottom: 40px;
  z-index: 5;

  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 1rem;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

#year-slider {
  position: absolute;
  left: 55px;
  bottom: 32px;
  width: 280px;
  z-index: 20;
  display: block;

  -webkit-appearance: none;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  transition: opacity 0.2s;
}

#year-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}

.timeline-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.8rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: bold;
}

.temp-cell {
  mix-blend-mode: normal;
}

/* ── Outro ────────────────────────────────────────────────── */
#outro {
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 8%;
  text-align: center;
  border-top: 1px solid rgba(78, 184, 255, 0.1);
}

#outro h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #ffffff;
  margin-bottom: 1.5rem;
}

#outro p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto;
  font-weight: 300;
  line-height: 1.8;
}

.lead-sentence {
  display: inline;
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

#outro p strong {
  font-weight: 900;
  color:#20f9fd;
}

.source-note {
  margin-top: 4rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.6;
  letter-spacing: 0.05em;
}

/* ── Keyframes ────────────────────────────────────────────── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  #scrolly-container {
    flex-direction: column;
  }

  .sticky-visual {
    width: 100%;
    height: 60vh;
    position: sticky;
    top: 0;
    z-index: 0;
  }

  #map-container {
    height: 50vh;
  }

  .data-display {
    padding: 0.8rem 1rem 1rem;
  }

  #year-label { font-size: 3rem; }
  .extent-value { font-size: 1.5rem; }
  .loss-bar-wrap { width: 90%; }

  .scroll-text {
    width: 92%;
    margin: 0 auto;
    padding: 0;
    margin-top: -8vh;
    z-index: 1;
  }

  .step {
    min-height: 85vh;
    padding-bottom: 3rem;
  }

  .step-content {
    padding: 1.8rem 1.6rem;
  }

  .step h2 { font-size: 1.6rem; }
  .step p  { font-size: 0.95rem; }
}

.temp-title {
  position: absolute;
  top: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  width: 520px;
  text-align: center;
}

.temp-title h3 {
  color: white;
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}

.temp-title p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.temp-caption {
  position: absolute;
  left: 42px;
  bottom: 72px;
  z-index: 6;
  color: var(--text-muted);
  max-width: 520px;
  font-size: 0.95rem;
}

.temp-question {
  text-align: center;
  margin-bottom: 1.5rem;
}

.temp-question h3 {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.temp-question p {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 300;
}

.stress-gradient {
  width: 250px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(to right, #ffffff, #c8e6ff, #ffddaa, #ff6b30, #cc0000);
  margin: 0.6rem 0 0.4rem;
  border: 1px solid rgba(255,255,255,0.15);
}

.stress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.stress-note {
  margin-top: 0.6rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  max-width: 220px;
  line-height: 1.4;
}

/* ── Section 3: Wrangel National Park Banner ────────── */
#wrangel {
  position: relative;
  width: 100%;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 8%;
  background: linear-gradient(rgba(10, 15, 25, 0.4), rgba(10, 15, 25, 0.7)), url('wrangel.jpg') center/cover no-repeat;
  background-attachment: fixed;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.wrangel-hero {
  max-width: 800px;
}

.wrangel-hero h2 {
  font-family: var(--serif);
  font-size: 3.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.wrangel-description-placeholder {
  font-size: 1.25rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
}

/* ── Section 4: Seasonal Graphs ────────── */
#wrangel-data {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  align-items: center;
  gap: 2rem;
  padding: 4rem 8%;
  background: var(--bg);
}

@media (max-width: 900px) {
  #wrangel-data {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 6rem 5%;
  }
}

#wrangel-graph-container {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
  width: 100%;
  max-width: 600px;
}

.graph-title {
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  text-align: center;
  letter-spacing: 0.5px;
}

#wrangel-graph {
  width: 100%;
  height: 400px;
}

.graph-legend {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

/* D3 Graph SVG Styles */
.line-path {
  fill: none;
  stroke-width: 3px;
  stroke-linecap: round;
}

.graph-axis path,
.graph-axis line {
  stroke: rgba(255, 255, 255, 0.2);
}

.graph-axis text {
  fill: var(--text-muted);
  font-family: var(--sans);
  font-size: 0.8rem;
}

.data-dot {
  stroke: var(--bg);
  stroke-width: 2px;
  transition: r 0.2s;
}

.data-dot:hover {
  r: 6;
  fill: var(--gold) !important;
}

.wrangel-content {
  background: var(--card-bg);
  padding: 3.5rem;
  border-radius: 16px;
  max-width: 850px;
  border-left: 4px solid var(--accent);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(78, 184, 255, 0.08);
}

.wrangel-content h2 {
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.2rem;
}

.wrangel-content p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-main);
  font-weight: 300;
}

.wrangel-content p strong {
  font-weight: 900;
  color:#20f9fd;
}


/* ── Section 5: Churchill Banner ────────── */
#churchill {
  position: relative;
  width: 100%;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 8%;
  background: linear-gradient(rgba(10, 15, 25, 0.4), rgba(10, 15, 25, 0.7)), url('churchill.jpg') center/cover no-repeat;
  background-attachment: fixed;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.churchill-hero {
  max-width: 800px;
}

.churchill-hero h2 {
  font-family: var(--serif);
  font-size: 3.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.churchill-description-placeholder {
  font-size: 1.25rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
}

/* ── Section 6: Churchill Seasonal Graphs ────────── */
#churchill-data {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding: 4rem 8%;
  background: var(--bg);
}

@media (max-width: 900px) {
  #churchill-data {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 6rem 5%;
  }
}

#churchill-graph-container {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
  width: 100%;
  max-width: 600px;
}

#churchill-graph {
  width: 100%;
  height: 300px;
}

.churchill-content {
  background: var(--card-bg);
  padding: 3.5rem;
  border-radius: 16px;
  max-width: 700px;
  border-left: 4px solid var(--accent);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(78, 184, 255, 0.08);
}

.churchill-content h2 {
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.2rem;
}

.churchill-content p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-main);
  font-weight: 300;
}

.churchill-content p strong {
  font-weight: 900;
  color:#20f9fd;
}

/* ARTICLE CARds */

.sources-section {
max-width: 1200px;
margin: 5rem auto;
padding: 0 2rem;
}

.sources-section h2 {
text-align: center;
margin-bottom: 2rem;
font-size: 2rem;
}

.article-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
gap: 1.5rem;
}

.article-card {
display: flex;
flex-direction: column;
text-decoration: none;
color: inherit;

padding: 1.5rem;
border-radius: 16px;

background: rgba(255,255,255,0.05);
border: 1px solid rgba(255,255,255,0.1);

transition: transform 0.25s ease,
box-shadow 0.25s ease;
}

.article-card:hover {
transform: translateY(-6px);
box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.source {
font-size: 0.8rem;
font-weight: 700;
letter-spacing: 1px;
opacity: 0.7;
margin-bottom: 0.75rem;
}

.article-card h3 {
margin: 0 0 1rem;
line-height: 1.3;
}

.article-card p {
flex-grow: 1;
line-height: 1.6;
opacity: 0.85;
}

.read-more {
margin-top: 1rem;
font-weight: 600;
}

/* ── Call to Action ───────────────────────────────────────── */
#call-to-action {
  background: linear-gradient(180deg, #060f1a 0%, #0a1a2e 100%);
  border-top: 1px solid rgba(78, 184, 255, 0.12);
  padding: 8rem 8% 4rem;
  display: flex;
  justify-content: center;
}

.cta-inner {
  max-width: 860px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cta-tag {
  letter-spacing: 0.25em;
  font-size: 0.75rem;
  color: var(--danger);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.cta-inner h2 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  color: #fff;
  margin-bottom: 2rem;
}

.cta-inner h2 em {
  font-style: normal;
  color: var(--danger);
}

.cta-inner > p {
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--text-main);
  margin-bottom: 1.4rem;
  opacity: 0.95;
}

.cta-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  text-align: left;
}

.cta-action-item {
  background: var(--card-bg);
  border: 1px solid rgba(255, 107, 74, 0.15);
  border-radius: 14px;
  padding: 1.8rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.cta-action-icon {
  font-size: 1.6rem;
}

.cta-action-item strong {
  font-size: 1rem;
  color: #fff;
  font-weight: 600;
}

.cta-action-item p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-muted);
  font-weight: 300;
}

@media (max-width: 900px) {
  .cta-actions {
    grid-template-columns: 1fr;
  }
}

/* - FINAL CONCLUSION -*/

/* ==========================================================
   FINAL CONCLUSION
========================================================== */

#final-conclusion{
    min-height:100vh;

    display:grid;
    grid-template-columns:1fr 1.55fr;

    background:
    linear-gradient(
        180deg,
        #08101b 0%,
        #060f1a 100%
    );

    overflow:hidden;
}

/* LEFT IMAGE */

.conclusion-image{
    position:relative;
    height:100vh;
    overflow:hidden;
}

.conclusion-image img{
    width:100%;
    height:100%;

    object-fit:cover;
    object-position:center;

    filter:
    brightness(.9)
    contrast(1.05);
}

.conclusion-image::after{
    content:"";

    position:absolute;
    inset:0;

    background:
    linear-gradient(
        90deg,
        transparent 55%,
        rgba(6,15,26,.95) 100%
    );
}

/* RIGHT CONTENT */

.conclusion-content{

    display:flex;
    flex-direction:column;

    justify-content:center;

    padding:

    2rem
    7vw;

    max-width:1200px;
}

.conclusion-tag{

    letter-spacing:.25em;

    font-size:.75rem;

    color:var(--accent);

    margin-bottom:1rem;
}

.conclusion-content h2{

    font-family:var(--serif);

    font-size:
    clamp(
      2.5rem,
      4.5vw,
      4rem
    );

    line-height:1.05;

    margin-bottom:2rem;

    color:white;
}

.conclusion-content h2 em{

    font-style:normal;

    color:var(--accent);
}

.conclusion-content p{

    font-size:1.05rem;

    line-height:1.9;

    color:var(--text-main);

    margin-bottom:1.6rem;

    opacity:.95;
}

.conclusion-content p strong {
  color: var(--accent);
  font-weight: 700;
}

/* credits span FULL width */

.conclusion-stat{

    grid-column:1 / -1;

    display:flex;

    justify-content: center;

    gap:7rem;

    padding:

    3rem
    6vw
    4rem;



    background:
    rgba(255,255,255,.02);

    backdrop-filter:
    blur(10px);
}

.conclusion-stat div{

    text-align:center;
}

.conclusion-stat span{

    display:block;

    font-family:var(--serif);

    font-size:2rem;

    color:white;

    margin-bottom:.5rem;
}

.conclusion-stat small{

    color:var(--text-muted);

    letter-spacing:.05em;

    font-size:.95rem;
}

@media(max-width:900px){

.conclusion-stat{

flex-direction:column;

gap:2rem;

}

}

/* MOBILE */

@media(max-width:900px){

#final-conclusion{

grid-template-columns:1fr;

}

.conclusion-image{

height:60vh;

}

.conclusion-content{

padding:4rem 8%;

}

.conclusion-image::after{

background:

linear-gradient(
180deg,
transparent 60%,
rgba(6,15,26,.95)
100%
);

}

}

/* ── Hexbin Hover States ──────────────────────────────────── */
#choropleth-cells .temp-cell {
  transition: opacity 0.15s ease, stroke 0.15s ease, stroke-width 0.15s ease;
}
#choropleth-cells .temp-cell:hover {
  opacity: 1 !important;
  stroke: #fff !important;
  stroke-width: 2px !important;
}