:root {
  --ink: #12201c;
  --muted: #5d6b65;
  --paper: #f6f1e9;
  --mist: #e7eee9;
  --line: rgba(18, 32, 28, 0.14);
  --forest: #17453a;
  --leaf: #58a36d;
  --sun: #f4ba5f;
  --ember: #d95f3f;
  --ocean: #2f7c96;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(18, 32, 28, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 64px);
  color: var(--white);
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.scrolled,
.site-header.open {
  color: var(--ink);
  background: rgba(246, 241, 233, 0.94);
  box-shadow: 0 12px 30px rgba(18, 32, 28, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0;
}

.brand-mark {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 70% 32%, var(--sun) 0 18%, transparent 19%),
    linear-gradient(135deg, var(--ocean), var(--leaf) 48%, var(--ember));
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.16);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 9px 13px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.18);
}

.site-header.scrolled .site-nav a:hover,
.site-header.open .site-nav a:hover {
  background: var(--mist);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: inherit;
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 360px);
  align-items: end;
  gap: 28px;
  padding: min(22vh, 190px) clamp(18px, 5vw, 64px) 7vh;
  color: var(--white);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 22, 22, 0.85), rgba(10, 22, 22, 0.5) 48%, rgba(10, 22, 22, 0.68)),
    linear-gradient(0deg, rgba(10, 22, 22, 0.72), transparent 36%);
  pointer-events: none;
}

.hero-media {
  position: absolute;
  inset: 0;
  background: #0d1515;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.86;
  filter: saturate(1.08) contrast(1.04);
}

.hero-content,
.hero-panel {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--leaf);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #baf2c5;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(3.2rem, 8vw, 7.6rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
  line-height: 1.2;
}

.hero-copy {
  max-width: 610px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.04rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--sun);
  color: #21180c;
}

.button.ghost {
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: var(--white);
}

.hero-panel {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-panel div {
  padding: 18px;
  background: rgba(5, 16, 16, 0.34);
}

.hero-panel strong {
  display: block;
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.hero-panel span {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.section {
  padding: clamp(64px, 9vw, 120px) clamp(18px, 5vw, 64px);
}

.section-heading {
  max-width: 840px;
  margin-bottom: 34px;
}

.section-heading p,
.split p,
.chart-copy p,
.impact-copy p {
  color: var(--muted);
}

.intro {
  background: var(--paper);
}

.evidence-grid,
.action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card,
.action-grid article {
  min-height: 245px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.feature-card p,
.action-grid p,
.cause-list p {
  color: var(--muted);
}

.card-icon {
  display: block;
  width: 52px;
  height: 52px;
  margin-bottom: 24px;
  border-radius: 50%;
}

.card-icon.heat {
  background:
    radial-gradient(circle at 50% 28%, #fff1b2 0 12%, transparent 13%),
    linear-gradient(135deg, var(--sun), var(--ember));
}

.card-icon.water {
  background:
    radial-gradient(circle at 35% 35%, #d9fbff 0 12%, transparent 13%),
    linear-gradient(135deg, var(--ocean), #5bb7c6);
}

.card-icon.storm {
  background:
    radial-gradient(circle at 62% 38%, #ffffff 0 10%, transparent 11%),
    linear-gradient(135deg, #747d87, var(--forest));
}

.data-band {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  background: #10221f;
  color: var(--white);
}

.chart-copy p {
  color: rgba(255, 255, 255, 0.72);
}

.chart-wrap {
  padding: clamp(16px, 3vw, 26px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    rgba(255, 255, 255, 0.06);
  background-size: 54px 54px;
}

canvas {
  width: 100%;
  height: auto;
}

.chart-labels {
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
  font-weight: 700;
}

.split {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 6vw, 90px);
  background: var(--mist);
}

.cause-list {
  display: grid;
  gap: 14px;
}

.cause-list article {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 0 18px;
  padding: 22px;
  border-left: 4px solid var(--leaf);
  background: rgba(255, 255, 255, 0.56);
}

.cause-list span {
  grid-row: span 2;
  color: var(--ember);
  font-weight: 800;
}

.impacts {
  background: var(--paper);
}

.impact-map {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  min-height: 430px;
  padding: clamp(22px, 5vw, 46px);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(18, 32, 28, 0.9), rgba(18, 32, 28, 0.46)),
    url("https://svs.gsfc.nasa.gov/vis/a000000/a005600/a005603/Map_HD_2025.png") center / cover;
  color: var(--white);
}

.impact-copy {
  max-width: 620px;
}

.impact-copy p {
  color: rgba(255, 255, 255, 0.78);
}

.impact-points {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.impact-points li {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

.impact-points span {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--sun);
}

.actions {
  background: #fbfaf6;
}

.action-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.action-grid article {
  min-height: 210px;
}

.site-footer {
  padding: 28px clamp(18px, 5vw, 64px);
  color: rgba(255, 255, 255, 0.72);
  background: #10221f;
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
  max-width: 980px;
}

.site-footer a {
  color: #baf2c5;
  font-weight: 700;
}

@media (max-width: 900px) {
  .hero,
  .data-band,
  .split,
  .impact-map {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 140px;
  }

  .evidence-grid,
  .action-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    padding: 14px 18px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 70px;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 8px;
    background: rgba(246, 241, 233, 0.98);
    color: var(--ink);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    border-radius: 8px;
  }

  h1 {
    font-size: 3.2rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .evidence-grid,
  .action-grid {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .action-grid article {
    min-height: auto;
  }

  .cause-list article {
    grid-template-columns: 1fr;
  }

  .cause-list span {
    margin-bottom: 8px;
  }
}
