:root {
  --ink: #142326;
  --muted: #647276;
  --paper: #f4f7f6;
  --white: #ffffff;
  --line: #d8e0de;
  --teal: #0e5d5a;
  --teal-dark: #083f3d;
  --orange: #ef6a3c;
  --orange-dark: #b63b1d;
  --blue: #3a78a6;
  --cyan: #7fc4c8;
  --yellow: #efb94a;
  --shadow: 0 14px 34px rgba(20, 35, 38, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "IBM Plex Sans", "Noto Sans SC", system-ui, sans-serif;
  font-size: 16px;
  letter-spacing: 0;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

.topbar {
  height: 64px;
  padding: 0 clamp(20px, 4vw, 64px);
  display: flex;
  align-items: center;
  gap: 38px;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 247, 246, .94);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .9rem; white-space: nowrap; }
.brand b { color: var(--orange); }
.brand-mark { width: 28px; height: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; align-items: end; }
.brand-mark i { display: block; background: var(--teal); }
.brand-mark i:nth-child(1) { height: 50%; }
.brand-mark i:nth-child(2) { height: 82%; background: var(--orange); }
.brand-mark i:nth-child(3) { height: 66%; }
nav { display: flex; align-self: stretch; gap: 28px; }
nav a { display: grid; place-items: center; color: var(--muted); font-size: .88rem; font-weight: 600; border-bottom: 2px solid transparent; }
nav a:hover, nav a.active { color: var(--teal-dark); border-color: var(--orange); }
.update-pill { margin-left: auto; font-size: .78rem; color: var(--muted); white-space: nowrap; }
.update-pill span { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #2f986f; margin-right: 6px; box-shadow: 0 0 0 4px rgba(47, 152, 111, .12); }

main { overflow: hidden; }
.hero {
  min-height: 560px;
  padding: 76px clamp(20px, 6vw, 96px) 56px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr);
  grid-template-rows: 1fr auto;
  gap: 38px 72px;
  color: white;
  background:
    linear-gradient(120deg, rgba(8, 63, 61, .98), rgba(14, 93, 90, .91)),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(255,255,255,.04) 32px),
    #0e5d5a;
  position: relative;
}
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 49.8%, rgba(255,255,255,.05) 50%); pointer-events: none; }
.hero > * { min-width: 0; position: relative; z-index: 1; }
.eyebrow { margin: 0 0 12px; color: var(--orange); font-size: .76rem; font-weight: 700; letter-spacing: .13em; }
.hero h1 { margin: 0; font-size: clamp(3.2rem, 7vw, 6.4rem); line-height: .9; letter-spacing: 0; }
.hero h1 em { color: #f3c05c; font-style: normal; }
.lede { max-width: 680px; margin: 26px 0 28px; color: rgba(255,255,255,.77); line-height: 1.8; }
.scenario-control { width: fit-content; padding: 4px; display: flex; border: 1px solid rgba(255,255,255,.24); }
.scenario-control button { min-width: 82px; padding: 9px 16px; border: 0; color: rgba(255,255,255,.7); background: transparent; cursor: pointer; }
.scenario-control button.selected { background: white; color: var(--teal-dark); font-weight: 700; }

.hero-metric { align-self: center; padding: 30px 34px; border: 1px solid rgba(255,255,255,.22); background: rgba(2, 37, 36, .32); box-shadow: var(--shadow); }
.metric-top, .range-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.metric-top { flex-wrap: wrap; }
.metric-top > span:first-child { font-weight: 600; }
.confidence { padding: 5px 9px; color: #ffe3a3; background: rgba(239,185,74,.16); font-size: .72rem; }
.big-number { margin: 22px 0 0; display: flex; align-items: flex-start; font-weight: 700; line-height: 1; color: #fff; }
.big-number span { font-size: clamp(4.3rem, 7vw, 6.6rem); }
.big-number small { margin: 9px 0 0 8px; color: #f3c05c; font-size: 1.4rem; }
.hero-metric > p { margin: 3px 0 24px; color: rgba(255,255,255,.6); font-size: .86rem; }
.range-row { padding-top: 17px; border-top: 1px solid rgba(255,255,255,.17); font-size: .85rem; }
.range-row span { color: rgba(255,255,255,.58); }
.range-row strong { min-width: 0; text-align: right; }
.signal-grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.18); }
.signal-grid article { padding: 24px 26px 0; display: flex; align-items: center; gap: 15px; border-right: 1px solid rgba(255,255,255,.18); }
.signal-grid article:last-child { border-right: 0; }
.signal-grid b, .signal-grid strong { display: block; }
.signal-grid b { margin-bottom: 5px; color: rgba(255,255,255,.6); font-size: .74rem; font-weight: 500; }
.signal-grid strong { font-size: 1.05rem; }
.signal-icon { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.24); color: #f3c05c; font-size: 1.2rem; font-weight: 700; }

.section { padding: 78px clamp(20px, 6vw, 96px); }
.section-head { margin-bottom: 30px; display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; }
.section-head h2 { margin: 0 0 7px; font-size: clamp(1.7rem, 3vw, 2.45rem); letter-spacing: 0; }
.section-head p:not(.eyebrow) { margin: 0; color: var(--muted); }
.chart-legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px; font-size: .78rem; color: var(--muted); }
.dot { width: 22px; height: 3px; display: inline-block; margin: 0 7px 3px 0; }
.dot.forecast { background: var(--orange); }
.dot.prior { background: var(--teal); }
.dot.normal { background: #98a4a4; }
.chart-shell { min-height: 386px; padding: 24px 18px 10px; position: relative; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.chart-meta { padding: 0 14px; display: flex; justify-content: space-between; color: var(--muted); font-size: .75rem; }
.line-chart { width: 100%; height: 330px; }
.line-chart svg { width: 100%; height: 100%; overflow: visible; }
.grid-line { stroke: #e5eae8; stroke-width: 1; }
.axis-label { fill: #7e8b8e; font-size: 11px; }
.forecast-band { fill: rgba(239, 106, 60, .12); }
.normal-line { fill: none; stroke: #a8b1b1; stroke-width: 2; stroke-dasharray: 5 6; }
.prior-line { fill: none; stroke: #0e5d5a; stroke-width: 2.3; }
.forecast-line { fill: none; stroke: #ef6a3c; stroke-width: 3.2; }
.focus-point { fill: white; stroke: #ef6a3c; stroke-width: 3; cursor: pointer; }
.focus-point:hover { r: 6; }
.tooltip { position: absolute; z-index: 5; min-width: 150px; padding: 10px 12px; color: white; background: var(--ink); font-size: .76rem; line-height: 1.55; pointer-events: none; box-shadow: var(--shadow); }
.month-strip { margin-top: 14px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; }
.month-strip button { min-height: 42px; border: 1px solid var(--line); color: var(--muted); background: transparent; cursor: pointer; }
.month-strip button:hover, .month-strip button.active { color: white; border-color: var(--teal); background: var(--teal); font-weight: 600; }

.detail-band { display: grid; grid-template-columns: 1.05fr .95fr; gap: 1px; padding-top: 0; padding-bottom: 0; background: var(--line); }
.detail-band > div { padding: 54px clamp(24px, 4vw, 58px); background: white; }
.section-head.compact { margin-bottom: 28px; align-items: flex-start; }
.section-head.compact h2 { font-size: 1.55rem; }
.method-tag, #regionMonthLabel { padding: 6px 9px; background: #eef3f2; color: var(--teal); font-size: .72rem; font-weight: 600; }
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); }
.detail-grid > div { min-width: 0; padding: 20px; border-right: 1px solid var(--line); }
.detail-grid > div:last-child { border: 0; }
.detail-grid span, .detail-grid small, .detail-grid b { display: block; }
.detail-grid span { margin-bottom: 12px; color: var(--muted); font-size: .75rem; }
.detail-grid b { font-size: 1.55rem; }
.detail-grid small { margin-top: 8px; color: var(--muted); font-size: .68rem; line-height: 1.4; }
.warm-text { color: var(--orange-dark); }
.insight { margin: 22px 0 0; padding-left: 15px; border-left: 3px solid var(--orange); color: var(--muted); line-height: 1.7; font-size: .86rem; }
.region-map { height: 242px; display: grid; grid-template-columns: repeat(9, 1fr); grid-template-rows: repeat(3, 1fr); gap: 6px; }
.region { padding: 9px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; text-align: left; border: 0; color: #43261b; background: #f4b17d; cursor: pointer; transition: transform .15s, filter .15s; }
.region:hover { transform: translateY(-2px); filter: saturate(1.12); }
.region b { font-size: .68rem; }
.region span { font-size: .9rem; font-weight: 700; }
.region.pacific { grid-area: 1 / 1 / 3 / 3; }
.region.southwest { grid-area: 3 / 2 / 4 / 4; }
.region.plains { grid-area: 2 / 3 / 4 / 6; }
.region.midwest { grid-area: 1 / 5 / 3 / 7; }
.region.northeast { grid-area: 1 / 7 / 2 / 10; }
.region.southeast { grid-area: 2 / 6 / 4 / 9; }
.heat-scale { margin-top: 12px; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .68rem; }
.heat-scale i { flex: 1; height: 6px; background: linear-gradient(90deg, #e8d9a1, #ef6a3c, #a82c1e); }

.enso-section { color: white; background: #142f35; }
.enso-section .section-head p:not(.eyebrow) { color: rgba(255,255,255,.58); }
.enso-status { padding: 9px 12px; border: 1px solid rgba(255,255,255,.15); color: #ffd885; font-size: .78rem; }
.enso-status span { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #efb94a; }
.enso-layout { display: grid; grid-template-columns: 1.25fr .75fr; gap: 30px; }
.enso-chart { display: grid; gap: 18px; padding: 32px; border: 1px solid rgba(255,255,255,.14); background: rgba(0,0,0,.08); }
.enso-row { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: center; }
.enso-row > span { color: rgba(255,255,255,.72); font-size: .8rem; }
.prob-bar { height: 44px; display: flex; overflow: hidden; }
.prob-bar i { min-width: 34px; display: grid; place-items: center; font-style: normal; font-size: .69rem; font-weight: 700; transition: width .35s ease; }
.prob-bar .nina { background: #3a78a6; }
.prob-bar .neutral { background: #67807e; }
.prob-bar .nino { background: #d95e36; }
.enso-legend { padding-left: 114px; display: flex; gap: 20px; color: rgba(255,255,255,.6); font-size: .72rem; }
.enso-legend i { display: inline-block; width: 8px; height: 8px; margin-right: 6px; }
.enso-note { padding: 30px; border-top: 3px solid #efb94a; background: rgba(255,255,255,.07); }
.ocean-glyph { height: 42px; margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.ocean-glyph i { width: 64px; height: 2px; background: #7fc4c8; }
.ocean-glyph i:nth-child(2) { margin-left: 12px; width: 78px; background: #efb94a; }
.ocean-glyph i:nth-child(3) { width: 52px; }
.enso-note h3 { margin: 0 0 12px; font-size: 1.3rem; }
.enso-note > p { color: rgba(255,255,255,.65); line-height: 1.7; font-size: .86rem; }
.enso-note dl { margin: 20px 0 0; }
.enso-note dl div { padding: 10px 0; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: .75rem; }
.enso-note dt { color: rgba(255,255,255,.45); }
.enso-note dd { margin: 0; text-align: right; }

.comparison-section { background: #edf2f0; }
.section-note { max-width: 430px; text-align: right; line-height: 1.5; }
.scenario-table { border-top: 2px solid var(--ink); background: white; }
.table-row { width: 100%; min-height: 66px; padding: 0 22px; display: grid; grid-template-columns: 1.35fr repeat(4, 1fr); align-items: center; border: 0; border-bottom: 1px solid var(--line); text-align: left; background: white; color: var(--ink); }
button.table-row { cursor: pointer; }
button.table-row:hover, button.table-row.active { background: #f3f7f6; box-shadow: inset 4px 0 0 var(--teal); }
.table-head { min-height: 44px; color: var(--muted); font-size: .72rem; }
.scenario-swatch { width: 11px; height: 11px; display: inline-block; margin-right: 10px; }
.scenario-swatch.cool { background: var(--blue); }
.scenario-swatch.base { background: var(--teal); }
.scenario-swatch.warm { background: var(--orange); }
.risk-high { color: var(--orange-dark); font-weight: 700; }

.sources-section { background: white; }
.source-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.source-grid a { min-height: 170px; padding: 20px; display: flex; flex-direction: column; border: 1px solid var(--line); transition: border .15s, transform .15s; }
.source-grid a:hover { border-color: var(--teal); transform: translateY(-3px); }
.source-grid span { width: fit-content; margin-bottom: 27px; padding: 4px 7px; color: white; background: var(--teal); font-size: .64rem; font-weight: 700; }
.source-grid b { line-height: 1.35; font-size: .9rem; }
.source-grid small { margin-top: auto; color: var(--muted); font-size: .72rem; }
.methodology { margin-top: 20px; padding: 24px 28px; display: grid; grid-template-columns: 130px 1fr auto; gap: 26px; align-items: start; border-left: 4px solid var(--orange); background: var(--paper); }
.methodology strong { font-size: .9rem; }
.methodology p { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.65; }
.methodology span { color: var(--muted); font-size: .68rem; white-space: nowrap; }

footer { min-height: 86px; padding: 0 clamp(20px, 6vw, 96px); display: flex; align-items: center; gap: 30px; color: rgba(255,255,255,.58); background: #0d2024; font-size: .75rem; }
footer > span { color: white; font-weight: 700; }
footer p { margin: 0; }
footer a { margin-left: auto; color: white; }

@media (max-width: 980px) {
  nav { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero::after { display: none; }
  .signal-grid { grid-column: 1; }
  .detail-band, .enso-layout { grid-template-columns: 1fr; }
  .source-grid { grid-template-columns: repeat(3, 1fr); }
  .methodology { grid-template-columns: 1fr; gap: 10px; }
}

@media (max-width: 680px) {
  .topbar { height: 58px; padding: 0 16px; }
  .update-pill { font-size: 0; }
  .update-pill span { margin: 0; }
  .hero { min-height: auto; padding: 52px 20px 30px; gap: 30px; }
  .hero h1 { font-size: 3.4rem; }
  .hero-metric { padding: 24px; }
  .range-row { align-items: flex-start; flex-direction: column; gap: 7px; }
  .range-row strong { text-align: left; }
  .signal-grid { grid-template-columns: 1fr; }
  .signal-grid article { padding: 18px 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); }
  .section { padding: 56px 20px; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .chart-legend { justify-content: flex-start; }
  .chart-shell { margin: 0 -8px; padding: 20px 5px 8px; min-height: 330px; }
  .line-chart { height: 280px; overflow-x: auto; }
  .line-chart svg { min-width: 660px; }
  .month-strip { grid-template-columns: repeat(6, 1fr); }
  .detail-band { padding: 0; }
  .detail-band > div { padding: 42px 20px; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-grid > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .region-map { height: 280px; grid-template-columns: repeat(6, 1fr); }
  .region.pacific { grid-area: 1 / 1 / 2 / 3; }
  .region.southwest { grid-area: 2 / 1 / 3 / 3; }
  .region.plains { grid-area: 1 / 3 / 3 / 5; }
  .region.midwest { grid-area: 3 / 2 / 4 / 4; }
  .region.northeast { grid-area: 1 / 5 / 2 / 7; }
  .region.southeast { grid-area: 2 / 5 / 4 / 7; }
  .enso-chart { padding: 22px 14px; }
  .enso-row { grid-template-columns: 62px 1fr; gap: 10px; }
  .enso-legend { padding-left: 72px; gap: 12px; }
  .table-row { padding: 12px 14px; grid-template-columns: 1.3fr .8fr .7fr; gap: 8px; }
  .table-row > *:nth-child(4), .table-row > *:nth-child(5) { display: none; }
  .source-grid { grid-template-columns: 1fr; }
  .source-grid a { min-height: 130px; }
  .source-grid span { margin-bottom: 18px; }
  footer { padding: 24px 20px; flex-wrap: wrap; }
  footer p { order: 3; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
