/* ========================================================================== 
   MCPA field atlas redesign
   One coherent light theme, documentary photography, and square geometry.
   Existing IDs and interaction hooks remain unchanged.
   ========================================================================== */

:root {
  --paper: #eef1ef;
  --paper-deep: #e4e9e7;
  --surface: #f8faf8;
  --surface-strong: #ffffff;
  --ink: #102f3d;
  --muted: #52666e;
  --line: #b9c5c3;
  --blue: #155f8d;
  --blue-strong: #0f4e77;
  --blue-tint: #dce9ef;
  --navy: #102f3d;
  --navy-2: #183f50;
  --terracotta: #b7482e;
  --terracotta-tint: #f0dfda;
  --olive: #536b58;
  --olive-tint: #dfe7df;
  --sand: #b7a56f;
  --sand-tint: #ece8da;
  --d-sand: #d7c78f;
  --d-terracotta: #d35e3d;
  --r-card: 0;
  --r-ui: 0;
  --shadow: none;
  --shell: 1320px;
  --nav-h: 72px;
}

* { border-radius: 0; }
html, body { max-width: 100%; overflow-x: clip; }
html { scroll-padding-top: calc(var(--nav-h) + 20px); }
body {
  color: var(--ink);
  background: var(--paper);
  font-family: 'IBM Plex Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.58;
}
body::before { display: none; }

.shell { width: min(100%, var(--shell)); padding-inline: clamp(20px, 4vw, 56px); }
section { padding-block: clamp(78px, 8vw, 124px); }

h1, h2, h3, h4,
.brand > span,
.stat .num,
.impact-card .figure {
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  font-weight: 600;
  letter-spacing: -.025em;
}
h2 {
  max-width: 18ch;
  font-size: clamp(44px, 5.4vw, 76px);
  line-height: .94;
  text-wrap: balance;
}
h3 { line-height: 1.05; }
.mono,
.eyebrow,
.phase,
.story-meta,
.news-meta,
.svc-tag,
.lr-stage-cap,
.geo-legend,
.pj-meta,
.prov-stat,
.timeline .year,
.footer-bottom {
  font-family: 'IBM Plex Mono', Consolas, monospace !important;
}
a { text-underline-offset: 3px; }
::selection { background: var(--terracotta); color: #fff; }

.sec-head { margin-bottom: clamp(40px, 5vw, 72px); }
.sec-head > p {
  max-width: 64ch;
  margin-top: 20px;
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.66;
}
.eyebrow {
  display: inline-flex;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--terracotta);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.eyebrow::before { display: none; }

.btn {
  min-height: 48px;
  padding: 13px 22px;
  border: 1px solid currentColor;
  border-radius: 0;
  font-family: 'IBM Plex Sans', Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
  transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { border-color: var(--terracotta); background: var(--terracotta); color: #fff; box-shadow: none; }
.btn-primary:hover { border-color: #91351f; background: #91351f; }
.btn-secondary { border-color: var(--blue-strong); background: var(--blue-strong); color: #fff; }
.btn-secondary:hover { border-color: var(--ink); background: var(--ink); }
.btn-ghost { border-color: var(--blue-strong); background: transparent; color: var(--blue-strong); }
.btn-ghost:hover { background: var(--blue-strong); color: #fff; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--terracotta), white 25%); outline-offset: 3px; }

/* Header */
.site-header {
  background: rgba(248, 250, 248, .96);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
  backdrop-filter: blur(14px);
}
.nav { height: var(--nav-h); gap: clamp(14px, 2vw, 28px); }
.brand { min-width: 245px; color: var(--ink); gap: 10px; }
.brand img { width: auto; height: 49px; }
.brand > span { font-size: 23px; line-height: .78; letter-spacing: -.015em; }
.brand .brand-sub {
  margin-top: 8px;
  color: var(--muted);
  font-family: 'IBM Plex Mono', Consolas, monospace;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: .075em;
}
.nav-links { gap: clamp(14px, 1.65vw, 25px); font-size: 13px; }
.nav-links a { padding-block: 26px 23px; border-bottom: 3px solid transparent; color: var(--ink); white-space: nowrap; }
.nav-links a:hover,
.nav-links a.active { color: var(--terracotta); border-bottom-color: var(--terracotta); }
.nav .btn { min-height: 42px; padding: 10px 16px; }
.gt select { border-color: var(--line); border-radius: 0; background: transparent; color: var(--ink); }
.nav-toggle { border-radius: 0; }

/* Hero */
.hero {
  position: relative;
  min-height: min(850px, calc(100dvh - var(--nav-h)));
  padding: 0;
  overflow: hidden;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.hero::before,
.hero::after { display: none; }
.hero-photo-panel {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 0;
  width: 59%;
  margin: 0;
  overflow: hidden;
  background: #eee9dd;
  border-right: 1px solid var(--line);
}
.hero-photo-panel::after { display: none; }
.hero-photo-panel img {
  display: block;
  width: 100%;
  height: calc(100% - 31px);
  object-fit: cover;
  object-position: 51% center;
  filter: none;
}
.hero-photo-panel figcaption {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  height: 31px;
  padding: 7px 18px;
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  font-family: 'IBM Plex Mono', Consolas, monospace;
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 41%;
  max-width: none;
  min-height: min(850px, calc(100dvh - var(--nav-h)));
  margin: 0 0 0 59%;
  padding: clamp(56px, 7vw, 96px) clamp(24px, 4vw, 64px) 104px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.hero h1 {
  max-width: none;
  color: var(--ink);
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  font-size: clamp(54px, 5.55vw, 82px);
  font-weight: 600;
  line-height: .89;
  letter-spacing: -.03em;
  white-space: nowrap;
  text-wrap: nowrap;
}
.hero h1 .accent { position: relative; color: var(--terracotta); }
.hero h1 .accent::after { display: none; }
.hero-sub {
  max-width: 34ch;
  margin: 26px 0 30px;
  color: var(--muted);
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.55;
}
.hero-phase {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  padding: 10px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--blue-strong);
  font-size: 10px;
  letter-spacing: .1em;
}
.hero-phase::before { width: 22px; height: 2px; border-radius: 0; background: var(--terracotta); }
.hero-replay { color: var(--terracotta); }
.hero-scene {
  position: absolute;
  inset: auto auto 52px clamp(20px, 3.8vw, 56px);
  z-index: 3;
  width: min(34vw, 500px);
  height: clamp(146px, 20vh, 188px);
  border: 1px solid rgba(248, 250, 248, .92);
  border-radius: 0;
  background: #e9e6d8;
  box-shadow: 12px 12px 0 rgba(16, 47, 61, .18);
}
.hero-scroll {
  left: auto;
  right: clamp(20px, 3vw, 44px);
  bottom: 22px;
  transform: none;
  color: var(--terracotta);
  opacity: 1;
}
.hero-scroll span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.hero-scroll svg { width: 20px; height: 20px; }

/* Results ledger */
.impact-strip {
  padding-block: clamp(70px, 7vw, 102px);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.strip-lead {
  max-width: 68ch;
  margin-bottom: 52px;
  color: var(--ink);
  font-size: clamp(19px, 2vw, 26px);
  line-height: 1.47;
}
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.stat { min-height: 178px; padding: 26px 24px 24px 0; border: 0; border-right: 1px solid var(--line); }
.stat + .stat { padding-left: 24px; }
.stat:last-child { border-right: 0; }
.stat .num {
  color: var(--ink);
  font-size: clamp(42px, 4.4vw, 68px);
  font-variant-numeric: tabular-nums;
  line-height: .9;
}
.stat .num small { color: var(--terracotta); font-family: 'IBM Plex Mono', monospace; font-size: .34em; }
.stat .label { max-width: 18ch; margin-top: 20px; color: var(--muted); font-size: 13px; line-height: 1.35; }

/* National evidence atlas */
.dashboard {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--paper-deep);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.dashboard::before { display: none; }
.dashboard .sec-head { display: block; }
.dashboard .sec-head > p { color: var(--muted); }
.dashboard .eyebrow { color: var(--terracotta); }
.dash-panel {
  padding: clamp(22px, 2.5vw, 34px);
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  color: var(--ink);
  box-shadow: none;
  backdrop-filter: none;
}
.dash-panel h3 { color: var(--ink); font-size: clamp(22px, 2vw, 29px); font-weight: 600; }
.dash-panel .panel-note { margin-top: 8px; color: var(--muted); font-size: 13px; }
.geo-panel { padding: clamp(24px, 3vw, 42px); border-top: 4px solid var(--blue-strong); }
.geo-head { gap: 22px; }
.geo-body { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(290px, .65fr); gap: clamp(28px, 4vw, 62px); align-items: start; }
.geo-chips { gap: 7px; }
.geo-chip {
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
}
.geo-chip:hover { border-color: var(--blue-strong); color: var(--blue-strong); }
.geo-chip[aria-pressed="true"] { border-color: var(--blue-strong); background: var(--blue-strong); color: #fff; }
.dash-map-wrap { margin-top: 12px; }
.afg-outline { fill: #d5e2e5; stroke: var(--blue-strong); stroke-width: 1.6; }
.prov-dot { fill: var(--blue); stroke: var(--surface); stroke-width: 2; }
.prov-dot.prov-zero { fill: #81979e; }
.prov-dot:hover,
.prov-dot:focus-visible,
.prov-dot.active { fill: var(--terracotta); }
.prov-dot.lit { fill: var(--blue); }
.prov-dot.prov-zero.lit { fill: #6f8992; }
.prov-dot:not(.lit):not(.active) { opacity: .32; }
.prov-dot.prov-hq { stroke: var(--ink); stroke-width: 3; }
.prov-halo { stroke: var(--terracotta); }
.geo-legend { margin-top: 12px; color: var(--muted); font-size: 10px; }
.geo-detail h4,
.prov-info h4 { color: var(--ink); font-size: 25px; }
.geo-detail h4 .mono,
.prov-info h4 .mono { color: var(--terracotta); font-size: 10px; }
.geo-detail > p,
.prov-info p { color: var(--muted); }
.geo-provline,
.geo-hint { color: var(--muted) !important; }
.proj-list { border: 1px solid var(--line); border-radius: 0; background: var(--paper); }
.proj-list li { padding: 11px 13px; background: var(--surface); border-bottom: 1px solid var(--line); }
.proj-list li:last-child { border-bottom: 0; }
.pj-name { color: var(--ink); }
.pj-meta { color: var(--blue-strong); }
.prov-stat {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper);
  color: var(--muted);
}
.prov-stat b { color: var(--ink); }
.dash-grid-3 { grid-template-columns: repeat(12, 1fr); gap: 16px; margin-top: 16px; }
.dash-grid-3 .dash-panel:nth-child(1) { grid-column: span 6; }
.dash-grid-3 .dash-panel:nth-child(2) { grid-column: span 3; }
.dash-grid-3 .dash-panel:nth-child(3) { grid-column: span 3; }
.chart-box { min-height: 250px; }
.chart-caption { color: var(--muted); }

/* Land release story */
.landrelease { background: var(--surface); border-bottom: 1px solid var(--line); }
.landrelease .sec-head { display: block; }
.lr-layout { display: grid; grid-template-columns: minmax(470px, 1.05fr) minmax(0, .95fr); gap: clamp(48px, 7vw, 100px); align-items: start; }
.lr-stage-wrap { top: calc(var(--nav-h) + 28px); }
.lr-stage {
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 4px solid var(--terracotta);
  border-radius: 0;
  background: var(--paper);
  box-shadow: 14px 14px 0 var(--paper-deep);
}
.lr-stage svg { display: block; width: 100%; border-radius: 0; background: #e8eeee; }
.lr-stage-cap {
  min-height: 58px;
  margin: 0;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.lr-stage-cap .mono { color: var(--blue-strong); font-size: 10px; }
.lr-stage-cap .lr-count { color: var(--muted); }
.lr-steps { padding-left: 60px; }
.lr-rail { left: 20px; width: 2px; background: var(--line); }
.lr-rail-fill { background: var(--terracotta); }
.lr-step { padding: 2px 0 120px; }
.lr-step .lr-node {
  left: -60px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-family: 'IBM Plex Mono', monospace;
}
.lr-step.active .lr-node { border-color: var(--terracotta); background: var(--terracotta); color: #fff; box-shadow: none; }
.lr-step h3 { color: var(--ink); font-size: clamp(28px, 2.8vw, 39px); }
.lr-step h3 span { color: var(--muted); font-weight: 500; }
.lr-step > p { margin-top: 16px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.lr-step ul { margin-top: 18px; gap: 10px; }
.lr-step li { color: var(--muted); font-size: 14px; }
.lr-step li svg { color: var(--terracotta); }
.lr-note { border-left: 3px solid var(--terracotta); border-radius: 0; background: var(--terracotta-tint); }
.scene { transform: none; transition: opacity .28s ease; }
.scene.on { transform: none; }
#lrStage text,
.eore-fig text,
.contact-map text { font-family: 'IBM Plex Mono', Consolas, monospace !important; }

/* Risk education */
.eore { padding: 0; overflow: clip; background: var(--paper); border-bottom: 1px solid var(--line); }
.eore-head { padding: clamp(78px, 8vw, 120px) 0 14px; }
.eore-head .sec-head { max-width: 860px; }
.eore-track-wrap { max-width: 100vw; overflow: hidden; }
.eore-track { max-width: 100vw; gap: 16px; padding: 30px clamp(20px, 4vw, 56px) 94px; }
.eore-panel {
  flex-basis: min(600px, 82vw);
  padding: clamp(26px, 3vw, 40px);
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue-strong);
  border-radius: 0;
  background: var(--surface);
  box-shadow: none;
}
.eore-panel:nth-child(even) { border-top-color: var(--terracotta); background: var(--paper-deep); }
.eore-panel .phase { color: var(--terracotta); font-size: 10px; }
.eore-panel h3 { max-width: 18ch; font-size: clamp(29px, 2.6vw, 38px); }
.eore-panel p { color: var(--muted); font-size: 15px; }
.eore-panel li { color: var(--muted); }
.eore-panel li svg { color: var(--terracotta); }
.eore-fig { padding: 12px; border: 1px solid var(--line); border-radius: 0; background: #f2f5f2; }
.eore-progress { height: 3px; border-radius: 0; background: var(--line); }
.eore-progress i { border-radius: 0; background: var(--terracotta); }

/* Outcomes */
#outcomes { background: var(--surface); border-bottom: 1px solid var(--line); }
.impact-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.impact-card {
  grid-column: span 4;
  min-width: 0;
  min-height: 300px;
  padding: 28px;
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper);
  box-shadow: none;
  transition: border-color .18s ease, transform .18s ease;
}
.impact-card:hover { transform: translateY(-2px); border-color: var(--blue-strong); }
.impact-feature {
  grid-column: span 8;
  grid-row: span 2;
  min-height: 560px;
  justify-content: flex-start;
  padding: clamp(34px, 5vw, 64px);
  border: 1px solid var(--blue-strong);
  border-top: 6px solid var(--blue-strong);
  background: var(--blue-tint);
  color: var(--ink);
  overflow: hidden;
  position: relative;
}
.impact-feature::before { display: none; }
.impact-feature::after { display: none; }
.impact-card:nth-child(2),
.impact-card:nth-child(3) { grid-column: span 4; }
.impact-card:nth-child(4),
.impact-card:nth-child(5) { grid-column: span 6; min-height: 330px; }
.impact-card:nth-child(5) { background: var(--terracotta-tint); }
.impact-card .icon { width: 42px; height: 42px; border-radius: 0; background: transparent; color: var(--blue-strong); border: 1px solid currentColor; }
.impact-feature .icon { background: transparent; color: var(--blue-strong); }
.impact-card h3 { font-size: clamp(24px, 2vw, 31px); }
.impact-card .figure,
.impact-feature .figure { margin-top: auto; color: var(--blue-strong); font-size: clamp(38px, 4vw, 62px); line-height: .95; }
.impact-feature > * { position: relative; z-index: 1; }
.impact-sketch {
  flex: 1 1 230px;
  width: 100%;
  min-height: 220px;
  margin: 10px 0 16px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.impact-sketch img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 220px;
  max-height: 330px;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: multiply;
}
.impact-card p,
.impact-feature p { max-width: 52ch; color: var(--muted); font-size: 14.5px; }
.impact-illustration {
  width: calc(100% + 56px);
  max-width: none;
  height: 190px;
  margin: -28px -28px 10px;
  border-bottom: 1px solid var(--line);
  object-fit: cover;
  object-position: center 42%;
  filter: none;
}

/* About and operational archive */
#about { background: var(--paper); border-bottom: 1px solid var(--line); }
.about-layout { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(330px, .82fr); gap: clamp(42px, 6vw, 84px); }
.about-body p { max-width: 64ch; color: var(--muted); line-height: 1.78; }
.about-body p:first-of-type { color: var(--ink); font-size: 18px; }
.cred-list { gap: 0; margin-top: 34px; border-top: 2px solid var(--ink); }
.cred-list li { padding: 19px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.cred-list svg { color: var(--terracotta); }
.timeline { padding: 30px 28px 2px 46px; border: 1px solid var(--line); border-top: 4px solid var(--terracotta); background: var(--surface); }
.timeline::before { left: 23px; top: 42px; bottom: 24px; background: var(--line); }
.timeline li::before { left: -29px; background: var(--surface); border-color: var(--terracotta); }
.timeline .year { color: var(--terracotta); }
.timeline strong { font-family: 'Barlow Condensed', sans-serif; font-size: 20px; }
.gallery { margin-top: clamp(70px, 8vw, 108px); }
.gallery h3 { margin-bottom: 24px; font-size: 34px; }
.gallery-grid { gap: 8px; }
.gallery-item { border-radius: 0; border: 1px solid var(--line); }
.gallery-cap { border-radius: 0; background: rgba(16,47,61,.88); font-family: 'IBM Plex Sans', sans-serif; }

/* Capability index */
.services { background: var(--surface); border-bottom: 1px solid var(--line); }
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 44px; border-top: 2px solid var(--ink); }
.svc-card,
.svc-card.svc-wide,
.svc-card:first-child {
  grid-column: span 1;
  min-height: 250px;
  padding: 30px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  display: grid;
  grid-template-columns: 46px 1fr;
  grid-template-rows: auto 1fr auto;
  column-gap: 18px;
  overflow: visible;
}
.svc-card::after { display: none; }
.svc-card:hover { transform: none; border-bottom-color: var(--terracotta); }
.svc-card .icon,
.svc-card:first-child .icon { grid-row: 1 / span 2; width: 42px; height: 42px; border: 1px solid var(--blue-strong); border-radius: 0; background: transparent; color: var(--blue-strong); }
.svc-card h3 { font-size: clamp(24px, 2vw, 30px); }
.svc-card p,
.svc-card.svc-wide p,
.svc-card:first-child p { margin-top: 11px; color: var(--muted); font-size: 15px; }
.svc-card .svc-tag,
.svc-card.svc-wide .svc-tag,
.svc-card:first-child .svc-tag { grid-column: 2; margin-top: 24px; color: var(--terracotta); font-size: 10px; }
.svc-card:first-child { border-top: 5px solid var(--terracotta); }

/* Case studies */
.stories { background: var(--paper-deep); border-bottom: 1px solid var(--line); }
.story-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.story-card {
  grid-column: span 5;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  box-shadow: none;
  transition: transform .18s ease, border-color .18s ease;
}
.story-card:first-child {
  grid-column: span 7;
  grid-row: span 3;
  border-top: 6px solid var(--blue-strong);
  background: var(--blue-tint);
  color: var(--ink);
}
.story-card:hover { transform: translateY(-2px); border-color: var(--blue-strong); }
.story-head { padding: 16px 22px; border-bottom: 1px solid var(--line); background: transparent; color: var(--blue-strong); }
.story-card:first-child .story-head { background: transparent; color: var(--blue-strong); }
.story-body { padding: 25px 26px 28px; }
.story-card:first-child .story-body { min-height: 500px; padding: clamp(34px, 5vw, 58px); justify-content: flex-end; }
.story-card h3 { font-size: 27px; }
.story-card:first-child h3 { max-width: 13ch; font-size: clamp(43px, 5vw, 68px); }
.story-meta,
.story-card:first-child .story-meta { color: var(--terracotta); font-size: 10px; }
.story-body > p:not(.story-meta),
.story-card:first-child .story-body > p:not(.story-meta) { color: var(--muted); }
.story-card:first-child .btn-ghost { border-color: var(--blue-strong); color: var(--blue-strong); }
.story-card:first-child .btn-ghost:hover { background: var(--blue-strong); color: #fff; }
.story-dialog article { border-radius: 0; border-top: 5px solid var(--terracotta); }
.story-dialog h3 { font-size: clamp(34px, 4vw, 54px); }
.story-stats .prov-stat { background: var(--paper); }

/* News */
#news { background: var(--surface); border-bottom: 1px solid var(--line); }
.news-filters { gap: 0; border-bottom: 1px solid var(--line); }
.chip { min-height: 42px; padding: 8px 16px; border: 1px solid var(--line); border-bottom: 0; border-radius: 0; color: var(--muted); }
.chip + .chip { border-left: 0; }
.chip[aria-pressed="true"] { border-color: var(--blue-strong); background: var(--blue-strong); color: #fff; }
.news-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.news-card {
  grid-column: span 5;
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper);
  box-shadow: none;
  display: grid;
  grid-template-columns: 42% 58%;
  transition: transform .18s ease, border-color .18s ease;
}
.news-card:first-child { grid-column: span 7; grid-row: span 2; display: flex; }
.news-card.hidden { display: none !important; }
.news-card:hover { transform: translateY(-2px); border-color: var(--blue-strong); }
.news-card img { width: 100%; height: 100% !important; min-height: 280px; max-height: 360px; object-fit: cover; filter: saturate(.82); }
.news-card:first-child img { height: 360px !important; }
.news-body { padding: 26px; justify-content: center; }
.news-card h3 { font-size: 26px; }
.news-card:first-child h3 { font-size: clamp(31px, 3vw, 43px); }
.news-meta { color: var(--muted); font-size: 10px; }
.news-meta .cat { color: var(--terracotta); }

/* Partners */
#partners { background: var(--paper); border-bottom: 1px solid var(--line); }
.partner-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 42px; border-top: 2px solid var(--ink); }
.partner-card {
  min-height: 132px;
  padding: 25px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  text-align: left;
  align-items: flex-start;
  justify-content: flex-start;
}
.partner-mark { display: none; }
.partner-card strong { max-width: 30ch; padding-right: 34px; color: var(--ink); font-size: 16px; }
.partner-card::after { content: "+"; position: absolute; right: 0; top: 21px; color: var(--terracotta); font-family: 'IBM Plex Mono', monospace; font-size: 22px; }
.partner-detail { place-items: center start; padding: 22px 38px 22px 0; background: var(--blue-strong); color: #fff; text-align: left; }
.partner-card:hover .partner-detail,
.partner-card:focus .partner-detail,
.partner-card:focus-within .partner-detail { padding-left: 22px; }

/* Contact, grievance, and footer */
#contact { background: var(--surface); border-bottom: 1px solid var(--line); }
.contact-card {
  display: grid;
  grid-template-columns: minmax(340px, .9fr) minmax(0, 1.1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 6px solid var(--terracotta);
  border-radius: 0;
  background: var(--surface);
  box-shadow: none;
}
.contact-info { padding: clamp(30px, 4vw, 52px); background: var(--blue-tint); color: var(--ink); }
.contact-info h2 { color: var(--ink); font-size: clamp(42px, 4.6vw, 66px); }
.contact-info > p,
.c-row span { color: var(--muted); }
.c-row .icon { border-radius: 0; background: transparent; color: var(--blue-strong); border: 1px solid currentColor; }
.c-row a { color: var(--blue-strong); }
.contact-map { border: 1px solid var(--line); border-radius: 0; background: var(--paper); }
.contact-map svg path:first-child { fill: #d5e2e5 !important; stroke: var(--blue-strong) !important; }
.contact-map svg text { fill: var(--ink) !important; }
.contact-socials { display: none; }
.contact-form { padding: clamp(30px, 4vw, 52px); background: var(--surface); }
.field label { color: var(--ink); font-weight: 600; }
.field input,
.field textarea {
  border: 1px solid #8ba0a5;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
}
.field input:focus,
.field textarea:focus { border-color: var(--blue-strong); box-shadow: 0 0 0 3px rgba(21,95,141,.16); }
.field .error { color: #8b281b; }
.grievance { background: var(--paper-deep); border-bottom: 1px solid var(--line); }
.grv-card { border: 1px solid var(--line); border-top: 6px solid var(--blue-strong); border-radius: 0; background: var(--surface); box-shadow: none; }
.grv-num { border-radius: 0; background: var(--blue-strong); color: #fff; }
.grv-note { border-left-color: var(--terracotta); border-radius: 0; background: var(--terracotta-tint); }
.site-footer { margin: 0; padding: 72px 0 28px; border-top: 0; background: var(--paper); color: var(--ink); }
.footer-grid { grid-template-columns: 1.7fr .8fr .8fr; }
.footer-brand { color: var(--ink); }
.footer-brand span { font-family: 'Barlow Condensed', sans-serif; font-size: 25px; }
.site-footer .tagline,
.site-footer li,
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--terracotta); }
.site-footer h4 { color: var(--ink); }
.footer-bottom { border-top-color: var(--line); color: var(--muted); }
.cookie-banner { border: 1px solid var(--line); border-radius: 0; background: var(--surface); color: var(--ink); box-shadow: 12px 12px 0 rgba(16,47,61,.14); }
.to-top { border-radius: 0; background: var(--blue-strong); }
.lightbox { background: rgba(16,47,61,.92); }
.lightbox-btn { border-radius: 0; }

@media (max-width: 1240px) {
  .nav-links { display: none; }
  .nav-toggle { display: grid; }
  .nav .gt { margin-left: auto; }
  .nav.open .nav-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    position: absolute;
    inset: var(--nav-h) 0 auto;
    z-index: 12;
    padding: 24px max(24px, calc((100vw - var(--shell)) / 2 + 52px));
    gap: 8px 28px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
  }
  .nav.open .nav-links a { padding: 12px 0; }
  .hero-photo-panel { width: 56%; }
  .hero-inner { width: 44%; margin-left: 56%; }
  .hero h1 { font-size: clamp(52px, 6.2vw, 76px); }
  .dash-grid-3 .dash-panel:nth-child(1) { grid-column: span 6; }
  .dash-grid-3 .dash-panel:nth-child(2),
  .dash-grid-3 .dash-panel:nth-child(3) { grid-column: span 3; }
  .lr-layout { grid-template-columns: minmax(390px, .95fr) minmax(0, 1.05fr); gap: 46px; }
}

@media (max-width: 900px) {
  :root { --nav-h: 68px; }
  section { padding-block: 76px; }
  .nav { height: var(--nav-h); gap: 10px; }
  .brand { min-width: 0; max-width: calc(100% - 52px); }
  .brand img { height: 44px; }
  .brand > span { font-size: 20px; }
  .brand .brand-sub { font-size: 7px; white-space: normal; }
  .nav .gt,
  .nav > .btn { display: none; }
  .nav-toggle { margin-left: auto; }

  .hero { min-height: 0; display: block; }
  .hero-photo-panel { position: relative; width: 100%; height: 420px; min-height: 360px; border-right: 0; border-bottom: 1px solid var(--line); }
  .hero-photo-panel img { object-position: 50% center; }
  .hero-scene { position: absolute; inset: 308px 20px auto; width: calc(100% - 40px); height: 172px; margin: 0; box-shadow: 9px 9px 0 rgba(16,47,61,.16); }
  .hero-inner { width: 100%; min-height: 0; margin: 0; padding: 80px 22px 84px; }
  .hero h1 { max-width: none; font-size: clamp(56px, 10vw, 76px); white-space: normal; text-wrap: balance; }
  .hero h1 br { display: none; }
  .hero-sub { font-size: 17px; }
  .hero-scroll { display: none; }

  .strip-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }

  .geo-body { grid-template-columns: 1fr; }
  .dash-grid-3 { grid-template-columns: 1fr; }
  .dash-grid-3 .dash-panel:nth-child(n) { grid-column: auto; }

  .lr-layout { grid-template-columns: 1fr; gap: 46px; }
  .lr-stage-wrap { position: sticky; top: var(--nav-h); z-index: 5; }
  .lr-stage { background: rgba(238,241,239,.98); box-shadow: 8px 8px 0 var(--paper-deep); }
  .lr-stage svg { max-height: 39dvh; }
  .lr-step { padding-bottom: 92px; }

  .impact-feature { grid-column: 1 / -1; grid-row: auto; min-height: 470px; }
  .impact-card:nth-child(n) { grid-column: span 6; }
  .about-layout { grid-template-columns: 1fr; }
  .timeline { margin-top: 14px; }
  .story-card,
  .story-card:first-child { grid-column: 1 / -1; grid-row: auto; }
  .story-card:first-child .story-body { min-height: 400px; }
  .news-card,
  .news-card:first-child { grid-column: 1 / -1; grid-row: auto; }
  .news-card:first-child { display: flex; }
  .partner-grid { grid-template-columns: 1fr; }
  .contact-card,
  .grv-card { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .shell { padding-inline: 18px; }
  h2 { font-size: clamp(42px, 13vw, 58px); }
  .nav.open .nav-links { grid-template-columns: 1fr; gap: 0; padding-inline: 22px; }
  .hero-photo-panel { height: 240px; min-height: 240px; }
  .hero-photo-panel figcaption { padding-inline: 12px; }
  .hero-scene { position: absolute; inset: 166px 14px auto; width: calc(100% - 28px); height: 110px; margin: 0; }
  .hero-inner { padding: 52px 18px 56px; }
  .hero h1 { font-size: clamp(46px, 13vw, 50px); white-space: nowrap; text-wrap: nowrap; }
  .hero h1 br { display: block; }
  .hero-sub { margin: 20px 0 22px; font-size: 16px; }
  .hero-phase { margin-top: 18px; }
  .btn-lg { padding: 14px 20px; font-size: 15px; }

  .strip-grid { grid-template-columns: 1fr; }
  .stat,
  .stat + .stat { min-height: 142px; padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .stat .num { font-size: 56px; }

  .dashboard .shell { padding-inline: 14px; }
  .dash-panel { padding: 20px 16px; }
  .geo-chip { min-height: 44px; }
  .geo-detail h4 { font-size: 23px; }

  .lr-steps { padding-left: 48px; }
  .lr-rail { left: 17px; }
  .lr-step .lr-node { left: -48px; width: 36px; height: 36px; }
  .lr-step h3 { font-size: 30px; }

  .eore-track { padding-inline: 14px; }
  .eore-panel { flex-basis: 88vw; padding: 24px 20px; }

  .impact-grid { grid-template-columns: minmax(0, 1fr); }
  .impact-card:nth-child(n) { grid-column: 1; width: 100%; min-height: auto; }
  .impact-feature { min-height: 430px; }
  .impact-sketch { min-height: 190px; margin-block: 8px 14px; }
  .impact-sketch img { min-height: 190px; max-height: 250px; }
  .impact-illustration { height: 220px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item:nth-child(1) { grid-column: 1 / -1; min-height: 280px; }

  .svc-grid { grid-template-columns: 1fr; gap: 0; }
  .svc-card,
  .svc-card.svc-wide,
  .svc-card:first-child { grid-column: 1; grid-template-columns: 42px 1fr; padding-inline: 0; }
  .story-card:first-child .story-body { min-height: 360px; }

  .news-card,
  .news-card:first-child { display: flex; min-height: 0; }
  .news-card img,
  .news-card:first-child img { height: 220px !important; min-height: 0; }
  .form-row { grid-template-columns: 1fr; }
  .contact-info,
  .contact-form,
  .grv-card { padding: 27px 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :first-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero-scene,
  .impact-card,
  .story-card,
  .news-card { transform: none !important; }
}
