/* tahadhari.io — styling per docs/Design System.md (canvas-extracted values).
   Token names are neutral by product rule; water #2B6D9C exists only in the
   WebGL shader, never here. */

:root {
  --ink: #060F1A;
  --navy-grade: #0B2545;
  --navy-deep: #0F2438;
  --slate: #C8D5E1;
  --slate-muted: #8299AE;
  --slate-light: #EEF2F6;
  --crimson: #E22B3C;
  --crimson-hover: #C42433;
  --logo-plate: #E7EDF3;
  /* minted small-text crimson — meets 4.5:1 on its rendered backgrounds
     (large display crimson stays #E22B3C per the token of record) */
  --crimson-text: #F5626F;
  /* faint slate floored at 0.92 alpha for AA small-text contrast */
  --slate-faint: rgba(130, 153, 174, 0.92);
  --gutter: clamp(20px, 5vw, 64px);
  --chrome-gutter: clamp(20px, 4vw, 52px);
  --hairline: rgba(200, 213, 225, 0.12);
  --mono: 'IBM Plex Mono', monospace;
  --sora: 'Sora', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--slate);
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.page { position: relative; overflow: clip; }
a { color: var(--slate); text-decoration: none; }
a:hover { color: #fff; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--crimson); outline-offset: 3px; }
::selection { background: rgba(226, 43, 60, 0.35); color: #fff; }
img { max-width: 100%; }
h1, h2, h3, p { margin: 0; }

@keyframes cue-bob { 0%, 100% { transform: translateY(0); opacity: 0.55; } 50% { transform: translateY(7px); opacity: 1; } }
@keyframes pulse-dot { 0%, 100% { box-shadow: 0 0 0 0 rgba(226, 43, 60, 0.5); } 60% { box-shadow: 0 0 0 8px rgba(226, 43, 60, 0); } }
@keyframes pulse-slate { 0%, 100% { box-shadow: 0 0 0 0 rgba(130, 153, 174, 0.45); } 60% { box-shadow: 0 0 0 7px rgba(130, 153, 174, 0); } }
@keyframes pulse-ring { 0% { opacity: 0.9; transform: scale(1); } 100% { opacity: 0; transform: scale(2.6); } }
@keyframes kenburns { 0% { transform: scale(1) translateY(0); } 100% { transform: scale(1.08) translateY(-1.5%); } }

/* ===== fixed background stack ===== */
.bg-grad { position: fixed; inset: 0; z-index: 0; background: radial-gradient(120% 70% at 50% -10%, #0F2438 0%, #081826 45%, #060F1A 100%); }
.bg-plate { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.9s ease; }
.bg-plate--farmland { filter: saturate(0.35) brightness(0.55) contrast(1.05); }
#wf-canvas { position: fixed; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
.content { position: relative; z-index: 2; }

/* ===== nav ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 14px var(--chrome-gutter);
  background: rgba(6, 15, 26, 0.62); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(200, 213, 225, 0.08);
}
.nav-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.nav-home { display: flex; align-items: center; gap: 11px; flex: none; min-height: 44px; }
.nav-word { font-family: var(--sora); font-weight: 700; font-size: 15px; letter-spacing: 3.5px; color: #fff; }
.nav-desc {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 1.8px; color: var(--slate-muted);
  border-left: 1px solid rgba(200, 213, 225, 0.15); padding-left: 14px; white-space: nowrap;
}
.nav-right { display: flex; align-items: center; gap: 16px; flex: none; }
.lang { display: flex; align-items: center; gap: 2px; border: 1px solid rgba(200, 213, 225, 0.18); padding: 2px; }
.lang-btn {
  font-family: var(--mono); font-size: 11px; letter-spacing: 1.5px; color: var(--slate-muted);
  background: transparent; border: none; cursor: pointer; padding: 9px 12px;
  min-height: 44px; min-width: 44px; /* raised from 38px per Design System touch-target rule */
}
.lang-btn[aria-current="true"] { color: var(--ink); background: var(--slate); }

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 20px; background: var(--crimson); color: #fff;
  font-size: 13.5px; font-weight: 600; letter-spacing: 0.2px; border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--crimson-hover); color: #fff; }
.btn-primary--hero { min-height: 52px; padding: 0 30px; font-size: 15px; letter-spacing: 0; }
.btn-primary--cta { min-height: 54px; padding: 0 36px; font-size: 15.5px; letter-spacing: 0; }
.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 30px; border: 1px solid rgba(200, 213, 225, 0.3);
  color: var(--slate); font-size: 15px; font-weight: 600;
}
.btn-secondary:hover { border-color: #fff; color: #fff; }

/* ===== situation wire ===== */
.wire {
  position: fixed; top: 73px; left: 0; right: 0; z-index: 9; height: 36px;
  display: flex; align-items: center; gap: 14px; padding: 0 var(--chrome-gutter);
  background: rgba(6, 15, 26, 0.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(200, 213, 225, 0.08);
  font-family: var(--mono);
}
.wire-edge { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--crimson); opacity: 0; transition: opacity 0.4s ease; }
.wire-lead { display: flex; align-items: center; gap: 9px; flex: none; }
.wire-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--slate-muted); animation: pulse-slate 3.2s ease-out infinite; flex: none; }
.wire-label { font-size: 10px; letter-spacing: 1.8px; color: var(--slate-muted); }
.wire-chip { display: none; font-size: 9px; letter-spacing: 1.5px; color: #fff; background: var(--crimson); padding: 2px 7px; }
.wire-item {
  flex: 1; min-width: 0; display: flex; align-items: center; white-space: nowrap; overflow: hidden;
  font-size: 10.5px; letter-spacing: 0.8px; color: var(--slate); opacity: 1; transition: opacity 0.24s ease-out;
}
.wire-item a { color: inherit; display: inline-flex; align-items: center; gap: 10px; max-width: 100%; min-width: 0; min-height: 44px; margin: -14px 0; /* 44px hit target inside the 36px bar */ }
.wire-item .w-chip { font-size: 9px; letter-spacing: 1.2px; flex: none; }
.w-chip--advisory { color: var(--slate-muted); border: 1px solid var(--slate-muted); padding: 1px 6px; }
.w-chip--active { color: var(--ink); background: var(--slate); padding: 2px 6px; }
.w-chip--severe { color: #fff; background: var(--crimson); padding: 2px 6px; }
.wire-item .w-meta { color: var(--slate-muted); flex: none; }
.wire-item .w-headline { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.wire-item .w-src { color: var(--slate-faint); flex: none; }
.wire-quiet { color: var(--slate-muted); }
.wire-curated { flex: none; font-size: 9px; letter-spacing: 1.4px; color: var(--slate-faint); }
.wire-ctrls { display: flex; align-items: center; gap: 0; flex: none; }
.wire-btn {
  font-family: var(--mono); color: var(--slate-muted); background: transparent; border: none; cursor: pointer;
  width: 44px; height: 44px; margin: -4px 0; padding: 0; /* 44px hit target over the 36px bar */
  display: inline-flex; align-items: center; justify-content: center;
}
.wire-btn:hover { color: #fff; }
.wire-btn--step { font-size: 15px; }
.wire-btn--toggle { font-size: 11px; }
.wire-sheet {
  position: fixed; top: 109px; left: 0; right: 0; z-index: 9;
  background: rgba(6, 15, 26, 0.94); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
  padding: 8px var(--chrome-gutter) 14px; display: none; flex-direction: column;
  font-family: var(--mono);
}
.wire-sheet[data-open="true"] { display: flex; }
.wire-sheet-head { font-size: 9px; letter-spacing: 1.5px; color: var(--slate-faint); padding: 8px 0 4px; }
.wire-sheet a {
  display: flex; align-items: center; gap: 12px; min-height: 44px;
  font-size: 10.5px; letter-spacing: 0.8px; color: var(--slate);
  border-bottom: 1px solid rgba(200, 213, 225, 0.06);
}
.wire-sheet a:hover { color: #fff; }
.wire-sheet .w-d { color: var(--slate-muted); flex: none; min-width: 44px; }
.wire-sheet .w-region { color: var(--slate-muted); flex: none; }
.wire-sheet .w-headline { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wire-sheet .w-src { color: var(--slate-faint); flex: none; }

/* ===== HUD (simulated, aria-hidden) ===== */
.hud {
  position: fixed; top: 120px; right: var(--chrome-gutter); z-index: 5;
  display: flex; flex-direction: column; gap: 5px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 1px; color: var(--slate-muted);
  text-align: right; pointer-events: none;
}
.hud-title { color: var(--slate-faint); font-size: 9.5px; letter-spacing: 1.6px; margin-bottom: 2px; }
.hud-row { display: flex; gap: 14px; justify-content: flex-end; }
.hud-row .hud-val { color: var(--slate); min-width: 64px; }
.hud-mode { color: var(--crimson-text); letter-spacing: 2px; margin-top: 3px; }

/* ===== hero ===== */
.hero {
  min-height: 86vh; display: flex; align-items: center; gap: clamp(28px, 4vw, 60px); flex-wrap: wrap;
  position: relative; overflow: hidden; padding: 110px var(--gutter) 56px;
}
.section-bg { position: absolute; inset: 0; pointer-events: none; }
.section-bg > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scrim { position: absolute; inset: 0; }
.hero-img { object-position: center 38%; opacity: 0.62; filter: saturate(0.9); animation: kenburns 28s ease-in-out infinite alternate; transform-origin: center 35%; }
.scrim--hero-a { background: linear-gradient(97deg, rgba(6,15,26,0.95) 0%, rgba(6,15,26,0.74) 42%, rgba(6,15,26,0.3) 76%, rgba(6,15,26,0.48) 100%); }
/* solid-ink floor extended to 6% so the scroll cue meets AA over bright cloud */
.scrim--hero-b { background: linear-gradient(to top, #060F1A 0%, #060F1A 6%, rgba(6,15,26,0.55) 26%, rgba(6,15,26,0) 44%); }
.scrim--hero-c { background: linear-gradient(to bottom, rgba(6,15,26,0.88) 0%, rgba(6,15,26,0) 22%); }
.hero-inner { max-width: 720px; flex: 1 1 460px; min-width: 0; position: relative; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid rgba(200, 213, 225, 0.18); background: rgba(6, 15, 26, 0.6);
  padding: 8px 14px; margin-bottom: 30px;
}
.dot-crimson { width: 7px; height: 7px; border-radius: 50%; background: var(--crimson); flex: none; }
.hero-badge .dot-crimson { animation: pulse-dot 2.4s ease-out infinite; }
.hero-badge span:last-child { font-family: var(--mono); font-size: 11px; letter-spacing: 2px; color: var(--slate); }
.hero h1 {
  font-family: var(--sora); font-weight: 600; font-size: clamp(38px, 6vw, 74px);
  line-height: 1.06; letter-spacing: -2px; color: #fff; margin: 0 0 26px; text-wrap: balance;
}
.hero h1 em { font-style: italic; color: var(--crimson); }
.hero-sub { font-size: clamp(16px, 1.8vw, 20px); line-height: 1.6; color: rgba(200, 213, 225, 0.9); margin: 0 0 18px; max-width: 600px; text-wrap: pretty; }
.hero-micro { font-family: var(--mono); font-size: 11.5px; letter-spacing: 1.5px; line-height: 1.8; color: var(--slate-muted); margin: 0 0 12px; }
.hero-stat { font-family: var(--mono); font-size: 11.5px; letter-spacing: 1.5px; line-height: 1.8; color: var(--slate-muted); margin: 0 0 38px; }
.hero-stat .stat-fig { color: var(--crimson-text); }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-cue span { font-family: var(--mono); font-size: 10px; letter-spacing: 2.2px; color: var(--slate-muted); }
.scroll-cue svg { animation: cue-bob 2.2s ease-in-out infinite; }

/* ===== narrative sections 01–04 ===== */
.narr { min-height: 48vh; display: flex; align-items: center; padding: 44px var(--gutter); position: relative; overflow: hidden; }
.narr--right { justify-content: flex-end; }
.narr--inundation { min-height: 62vh; }
.narr--detection { min-height: 66vh; }
.narr-img { opacity: 0.45; filter: saturate(0.85); }
.narr-img--gathering { object-position: center 40%; }
.scrim--gathering-a { background: linear-gradient(97deg, rgba(6,15,26,0.72) 0%, rgba(6,15,26,0.42) 50%, rgba(6,15,26,0.88) 100%); }
.scrim--edge-top { background: linear-gradient(to top, rgba(6,15,26,0.85) 0%, rgba(6,15,26,0) 28%); }
.scrim--edge-bottom { background: linear-gradient(to bottom, rgba(6,15,26,0.85) 0%, rgba(6,15,26,0) 28%); }
.scrim--deluge-a { background: linear-gradient(83deg, rgba(6,15,26,0.9) 0%, rgba(6,15,26,0.42) 48%, rgba(6,15,26,0.7) 100%); }
.scrim--deluge-top { background: linear-gradient(to top, rgba(6,15,26,0.85) 0%, rgba(6,15,26,0) 30%); }
.detect-img { position: absolute; left: 0; top: -15%; width: 100%; height: 130%; object-fit: cover; opacity: 0.5; filter: saturate(0.9); will-change: transform; }
.scrim--detect-a { background: radial-gradient(110% 85% at 50% 45%, rgba(6,15,26,0) 35%, rgba(6,15,26,0.78) 100%); }
.scrim--detect-b { background: linear-gradient(to top, rgba(6,15,26,0.85) 0%, rgba(6,15,26,0.08) 30%); }

.card {
  max-width: 460px; background: rgba(6, 15, 26, 0.74); backdrop-filter: blur(8px);
  border: 1px solid var(--hairline); padding: 30px 32px; position: relative;
}
.card--detect { max-width: 480px; background: rgba(6, 15, 26, 0.78); }
.card-label { font-family: var(--mono); font-size: 11px; letter-spacing: 2px; color: var(--slate-muted); margin-bottom: 16px; }
.card-head {
  font-family: var(--sora); font-weight: 600; font-size: clamp(20px, 2.4vw, 25px);
  line-height: 1.35; letter-spacing: -0.4px; color: #fff; margin: 0 0 14px; text-wrap: pretty;
}
.card-body { font-size: 14.5px; line-height: 1.65; color: var(--slate-muted); margin: 0 0 22px; text-wrap: pretty; }
.card svg.trace { display: block; width: 100%; height: auto; }
.trace-caps { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }
.trace-caps span { font-family: var(--mono); font-size: 9.5px; letter-spacing: 1.4px; color: var(--slate-muted); }
.trace-caps .cap-alert { color: var(--crimson-text); }
.inset { position: relative; margin: 0 0 20px; overflow: hidden; }
.inset img { display: block; width: 100%; height: 150px; object-fit: cover; filter: saturate(0.8); }
.caption-bar {
  position: absolute; left: 10px; bottom: 8px;
  font-family: var(--mono); font-size: 9px; letter-spacing: 1.4px;
  color: rgba(200, 213, 225, 0.85); background: rgba(6, 15, 26, 0.72); padding: 3px 7px;
}
.caption-bar--light { color: var(--slate-light); }
.confirm-chip { display: flex; align-items: center; gap: 10px; border: 1px solid rgba(226, 43, 60, 0.5); padding: 11px 15px; margin-top: 20px; }
.confirm-chip .dot-crimson { animation: pulse-dot 2s ease-out infinite; }
.confirm-chip span:last-child { font-family: var(--mono); font-size: 11px; letter-spacing: 2.2px; color: var(--crimson-text); }
.trace-caps--tight { margin-bottom: 0; }

/* ===== ledger ===== */
.ledger {
  border-top: 1px solid rgba(226, 43, 60, 0.75); border-bottom: 1px solid rgba(226, 43, 60, 0.75);
  position: relative; overflow: hidden; padding: clamp(44px, 7vh, 72px) var(--gutter);
}
.ledger-img { filter: saturate(0.85); }
.ledger-grade { position: absolute; inset: 0; background: var(--navy-grade); opacity: 0.6; mix-blend-mode: multiply; }
/* mid/top stops raised from 0.38/0.62 — AA floor for the mono captions over
   the river image (goal-forced; flagged in the PR) */
.scrim--ledger { background: linear-gradient(to top, rgba(6,15,26,0.84) 0%, rgba(6,15,26,0.64) 55%, rgba(6,15,26,0.72) 100%); }
.ledger-inner { max-width: 1160px; margin: 0 auto; display: flex; flex-direction: column; gap: 32px; position: relative; }
.sec-label { display: flex; align-items: center; gap: 9px; }
.diamond { width: 6px; height: 6px; background: var(--crimson); transform: rotate(45deg); flex: none; }
.sec-label span:last-child { font-family: var(--mono); font-size: 11px; letter-spacing: 2px; color: var(--slate-muted); }
.ledger-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 36px 30px; }
.ledger-stat { display: flex; flex-direction: column; gap: 10px; }
.ledger-num { font-family: var(--sora); font-weight: 700; font-size: clamp(36px, 4.6vw, 58px); letter-spacing: -1.5px; line-height: 1; color: #fff; }
.ledger-cap { font-family: var(--mono); font-size: 10px; letter-spacing: 1.4px; line-height: 1.7; color: var(--slate-muted); max-width: 36ch; }

/* ===== perils ===== */
.perils { display: flex; flex-direction: column; justify-content: center; padding: 76px var(--gutter); max-width: 1160px; margin: 0 auto; }
.sec-label--head { margin-bottom: 14px; }
.h2 { font-family: var(--sora); font-weight: 600; font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -1px; color: #fff; margin: 0 0 12px; max-width: 640px; }
.sec-sub { font-size: 14.5px; line-height: 1.6; color: var(--slate-muted); margin: 0 0 40px; max-width: 560px; text-wrap: pretty; }
.peril-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.peril {
  background: rgba(15, 36, 56, 0.55); backdrop-filter: blur(6px);
  border: 1px solid rgba(200, 213, 225, 0.14); padding: 24px 24px 28px;
  display: flex; flex-direction: column; gap: 12px;
}
.peril--roadmap { background: rgba(15, 36, 56, 0.35); border: 1px solid rgba(130, 153, 174, 0.25); }
.peril-chip-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.chip-live { font-family: var(--mono); font-size: 10px; letter-spacing: 1.5px; color: var(--ink); background: var(--slate); padding: 4px 9px; font-weight: 500; }
.chip-roadmap { font-family: var(--mono); font-size: 10px; letter-spacing: 1.5px; color: var(--slate-muted); border: 1px solid var(--slate-muted); padding: 3px 8px; }
.peril h3 { font-family: var(--sora); font-weight: 600; font-size: 18px; color: #fff; margin: 0; }
.peril--roadmap h3 { color: var(--slate); }
.peril p { font-size: 13.5px; line-height: 1.6; color: var(--slate-muted); margin: 0; text-wrap: pretty; }

/* ===== from orbit to underwriting desk ===== */
.steps { padding: clamp(52px, 8vh, 84px) var(--gutter); position: relative; overflow: hidden; }
.steps-img { opacity: 0.8; filter: saturate(0.8); }
.scrim--steps { background: linear-gradient(to bottom, rgba(6,15,26,0.95) 0%, rgba(6,15,26,0.8) 45%, rgba(6,15,26,0.95) 100%); }
.steps-inner { max-width: 1160px; margin: 0 auto; position: relative; }
.steps-inner .h2 { margin-bottom: 24px; max-width: 560px; }
.console { position: relative; margin: 0 0 14px; overflow: hidden; border: 1px solid rgba(200, 213, 225, 0.14); }
.console img { display: block; width: 100%; height: 230px; object-fit: cover; opacity: 0.9; }
.scrim--console { background: linear-gradient(to top, rgba(6,15,26,0.85) 0%, rgba(6,15,26,0.05) 55%); }
.console-cap { position: absolute; left: 14px; bottom: 12px; font-family: var(--mono); font-size: 10px; letter-spacing: 1.5px; color: var(--slate); }
.step-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.step { border: 1px solid rgba(200, 213, 225, 0.14); background: rgba(6, 15, 26, 0.55); backdrop-filter: blur(6px); padding: 26px 26px 30px; }
.step-num { font-family: var(--mono); font-size: 12px; color: var(--crimson-text); margin-bottom: 16px; }
.step-media { position: relative; margin: 0 0 16px; overflow: hidden; border: 1px solid rgba(200, 213, 225, 0.18); }
.step-media img { display: block; width: 100%; height: 140px; object-fit: cover; filter: saturate(0.9); }
.step-media--dispatch { border: 1px solid rgba(226, 43, 60, 0.45); box-shadow: 0 0 26px rgba(226, 43, 60, 0.25); }
.step-media--dispatch img { filter: saturate(0.85); }
.scrim--stepcard { background: linear-gradient(to top, rgba(6,15,26,0.6) 0%, rgba(6,15,26,0) 45%); }
.step h3 { font-family: var(--sora); font-weight: 600; font-size: 19px; color: #fff; margin: 0 0 10px; }
.step p { font-size: 13.5px; line-height: 1.65; color: var(--slate-muted); margin: 0; text-wrap: pretty; }
.steps-note { font-family: var(--mono); font-size: 11px; letter-spacing: 1.2px; line-height: 1.8; color: var(--slate-muted); margin: 22px 0 0; max-width: 76ch; }

/* ===== one platform, two fronts ===== */
.plat { padding: clamp(52px, 8vh, 84px) var(--gutter); max-width: 1160px; margin: 0 auto; }
.plat .h2 { margin-bottom: 44px; max-width: 560px; }
.plat-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: stretch; }
.plat-fig { flex: 1 1 320px; min-width: 280px; min-height: 360px; margin: 0; position: relative; overflow: hidden; border: 1px solid rgba(200, 213, 225, 0.14); }
.plat-fig img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85); }
.scrim--fig { background: linear-gradient(to top, rgba(6,15,26,0.9) 0%, rgba(6,15,26,0.05) 48%); }
.plat-fig figcaption { position: absolute; left: 18px; right: 18px; bottom: 16px; font-family: var(--mono); font-size: 10px; letter-spacing: 1.6px; line-height: 1.8; color: var(--slate); }
.plat-cards { flex: 1.3 1 340px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.prod { border: 1px solid rgba(200, 213, 225, 0.14); background: rgba(6, 15, 26, 0.6); backdrop-filter: blur(6px); overflow: hidden; display: flex; flex-direction: column; }
.prod-media { position: relative; height: 170px; overflow: hidden; }
.prod-media img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0.8; filter: saturate(0.75); }
.scrim--prod { background: linear-gradient(to top, rgba(6,15,26,0.95) 4%, rgba(6,15,26,0) 60%); }
.prod-media .chip-live { position: absolute; top: 14px; left: 14px; }
.prod-body { padding: 22px 26px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.prod-body h3 { font-family: var(--sora); font-weight: 600; font-size: 20px; color: #fff; margin: 0; }
.prod-body p { font-size: 13.5px; line-height: 1.65; color: var(--slate-muted); margin: 0; text-wrap: pretty; }

/* ===== partners / from us ===== */
.partners, .news { padding: 0 var(--gutter) clamp(70px, 10vh, 110px); max-width: 1160px; margin: 0 auto; }
.sec-label--wide { margin-bottom: 24px; }
.logo-row { display: flex; gap: 18px; flex-wrap: wrap; align-items: stretch; }
.logo-tile { background: var(--logo-plate); border: 1px solid rgba(200, 213, 225, 0.2); padding: 28px 52px; display: inline-flex; align-items: center; justify-content: center; }
.logo-tile img { display: block; height: 56px; width: auto; }

.news-box { border: 1px solid rgba(200, 213, 225, 0.14); display: flex; flex-wrap: wrap; align-items: stretch; }
.news-photo { position: relative; flex: 1 1 300px; min-height: 320px; border-right: 1px solid rgba(200, 213, 225, 0.14); }
.news-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.news-photo .caption-bar { left: 12px; bottom: 12px; color: #fff; padding: 5px 9px; }
.news-body { flex: 1.4 1 340px; padding: clamp(24px, 3.5vw, 40px); display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.news-meta { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.news-meta .news-date { font-family: var(--mono); font-size: 10px; letter-spacing: 1.8px; color: var(--crimson-text); }
.news-meta .news-place { font-family: var(--mono); font-size: 10px; letter-spacing: 1.8px; color: var(--slate-muted); }
.news-body h3 { font-family: var(--sora); font-weight: 600; font-size: clamp(20px, 2.6vw, 28px); line-height: 1.35; letter-spacing: -0.4px; color: #fff; margin: 0; text-wrap: pretty; }
.news-body > p { font-size: 14.5px; line-height: 1.7; color: var(--slate); margin: 0; max-width: 760px; text-wrap: pretty; }
.news-stats { display: flex; gap: 32px; flex-wrap: wrap; border-top: 1px solid rgba(200, 213, 225, 0.1); padding-top: 16px; }
.news-stat { display: flex; flex-direction: column; gap: 4px; }
.news-stat .news-fig { font-family: var(--sora); font-weight: 600; font-size: 22px; color: #fff; }
.news-stat span:last-child { font-family: var(--mono); font-size: 10px; letter-spacing: 1.6px; color: var(--slate-muted); }

/* ===== seasonal outlook / clock / recent events ===== */
.outlook { padding: 0 var(--gutter) clamp(52px, 8vh, 84px); max-width: 900px; margin: 0 auto; }
.outlook-box { border: 1px solid rgba(226, 43, 60, 0.55); position: relative; overflow: hidden; padding: clamp(28px, 4vw, 44px); }
.outlook-img { opacity: 0.6; filter: saturate(0.9); }
.scrim--outlook { background: linear-gradient(97deg, rgba(6,15,26,0.95) 0%, rgba(6,15,26,0.74) 55%, rgba(6,15,26,0.45) 100%); }
.outlook-head { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; position: relative; }
.outlook-head .dot-crimson { animation: pulse-dot 2.4s ease-out infinite; }
.outlook-head span:last-child { font-family: var(--mono); font-size: 11px; letter-spacing: 2.2px; color: var(--crimson-text); }
.outlook-p { font-family: var(--sora); font-weight: 600; font-size: clamp(19px, 2.4vw, 25px); line-height: 1.5; letter-spacing: -0.3px; color: #fff; margin: 0; text-wrap: pretty; position: relative; }

.clock { margin-top: 14px; border: 1px solid var(--hairline); position: relative; overflow: hidden; padding: 22px 22px 26px; }
.clock-img { object-position: center 70%; opacity: 0.5; filter: saturate(0.95); }
.scrim--clock { background: linear-gradient(to bottom, rgba(6,15,26,0.9) 0%, rgba(6,15,26,0.66) 100%); }
.clock-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; position: relative; }
.clock-head span:first-child { font-family: var(--mono); font-size: 10px; letter-spacing: 1.8px; color: var(--slate-muted); }
.clock-count { font-family: var(--mono); font-size: 11px; letter-spacing: 1.8px; color: var(--crimson-text); }
.clock-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px 22px; position: relative; }
.mile { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid rgba(226, 43, 60, 0.5); padding-top: 10px; }
.mile-date { font-family: var(--mono); font-size: 11px; letter-spacing: 1.6px; color: var(--crimson-text); }
.mile p { font-size: 12.5px; line-height: 1.55; color: var(--slate); margin: 0; text-wrap: pretty; }

.log { margin-top: 14px; border: 1px solid var(--hairline); position: relative; overflow: hidden; background: rgba(6, 15, 26, 0.72); padding: 16px 22px 8px; }
.log-img { opacity: 0.25; filter: saturate(0.8); }
.scrim--log { background: linear-gradient(to bottom, rgba(6,15,26,0.55) 0%, rgba(6,15,26,0.85) 100%); }
.log-inner { position: relative; }
.log-head { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 6px; }
.log-head span:first-child { font-family: var(--mono); font-size: 10px; letter-spacing: 1.8px; color: var(--slate-muted); }
.log-head span:last-child { font-family: var(--mono); font-size: 9px; letter-spacing: 1.4px; color: var(--slate-faint); }
.log-quiet { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.8px; color: var(--slate-muted); padding: 10px 0 14px; }
.log a {
  display: flex; align-items: center; gap: 12px; min-height: 44px; /* raised from 40px per touch-target hard rule */
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.8px; color: var(--slate);
  border-top: 1px solid rgba(200, 213, 225, 0.06);
}
.log a:hover { color: #fff; }
.log .w-d { color: var(--slate-muted); flex: none; min-width: 44px; }
.log .w-region { color: var(--slate-muted); flex: none; }
.log .w-headline { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log .w-src { color: var(--slate-faint); flex: none; }

/* ===== hydrograph ===== */
.hydro { padding: clamp(52px, 8vh, 84px) var(--gutter) clamp(30px, 5vh, 60px); max-width: 1300px; margin: 0 auto; }
.hydro .h2 { margin-bottom: 12px; text-wrap: balance; }
.hydro .sec-sub { max-width: 620px; margin-bottom: 30px; }
.hydro-stage { position: relative; }
.hydro-stage svg { display: block; }
.hydro-markers { position: absolute; inset: 0; }
.hg-marker {
  position: absolute; transform: translate(-50%, -50%);
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer; padding: 0;
  opacity: 0.55; transition: opacity 150ms ease-out;
}
.hg-marker[data-active="true"] { opacity: 1; }
.hg-dot { width: 8px; height: 8px; transform: rotate(45deg); display: block; border: 1.4px solid var(--slate-muted); background: transparent; }
.hydro-divider-label { position: absolute; right: 0; top: 0; pointer-events: none; }
.hydro-divider-label span { font-family: var(--mono); font-size: 9.5px; letter-spacing: 1.8px; color: var(--crimson-text); }
.hydro-tail { display: flex; justify-content: flex-end; margin-top: -4px; }
.hydro-tail span { font-family: var(--mono); font-size: 10px; letter-spacing: 1.5px; color: var(--slate); text-align: right; }
.hydro-tail .tail-watched { color: var(--crimson-text); }
.hydro-zone { position: relative; min-height: 300px; margin-top: 24px; }
.hg-card {
  position: absolute; top: 0; width: min(420px, 100%); z-index: 3;
  border: 1px solid rgba(200, 213, 225, 0.22); background: rgba(6, 15, 26, 0.92);
  backdrop-filter: blur(8px); padding: 18px 22px;
}
.hg-card-media { position: relative; height: 96px; overflow: hidden; margin: -19px -23px 14px; background-size: cover; background-position: center; }
.hg-card-media .scrim { background: linear-gradient(to top, rgba(6,15,26,0.95) 6%, rgba(6,15,26,0.15) 70%); }
.hg-card-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hg-card-date { font-family: var(--mono); font-size: 10px; letter-spacing: 1.6px; color: var(--crimson-text); }
.hg-card-chip { font-family: var(--mono); font-size: 9px; letter-spacing: 1.4px; color: var(--slate); border: 1px solid rgba(200, 213, 225, 0.4); padding: 1px 7px; }
.hg-card h3 { font-family: var(--sora); font-weight: 600; font-size: 19px; line-height: 1.3; letter-spacing: -0.3px; color: #fff; margin: 10px 0 8px; }
.hg-card p { font-size: 13.5px; line-height: 1.6; color: rgba(200, 213, 225, 0.92); margin: 0 0 12px; text-wrap: pretty; }
.hg-card-foot { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; border-top: 1px solid rgba(200, 213, 225, 0.14); padding-top: 10px; }
.hg-card-fig { font-family: var(--mono); font-size: 12px; letter-spacing: 1px; color: #fff; }
.hg-card-src { font-family: var(--mono); font-size: 9px; letter-spacing: 1.2px; color: var(--slate-muted); }
.legend { display: flex; flex-direction: column; gap: 16px; padding-top: 6px; }
.legend-hint { font-family: var(--mono); font-size: 10px; letter-spacing: 1.6px; color: var(--slate-faint); }
.legend-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.legend-item { border: 1px solid rgba(200, 213, 225, 0.1); background: rgba(6, 15, 26, 0.45); padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.legend-item span { font-family: var(--mono); font-size: 9.5px; letter-spacing: 1.5px; color: var(--slate-muted); }
.hydro-note {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 1.3px; line-height: 1.9;
  color: var(--slate-faint); margin: 18px 0 0;
  border-top: 1px solid rgba(200, 213, 225, 0.08); padding-top: 14px;
}

/* ===== coverage band ===== */
.coverage { position: relative; overflow: hidden; }
.coverage > img { display: block; width: 100%; height: clamp(240px, 42vw, 460px); object-fit: cover; filter: saturate(0.85); }
/* bottom stop raised from 0.92 — AA floor for the county-lookup label over the river */
.scrim--coverage { background: linear-gradient(to top, rgba(6,15,26,0.97) 0%, rgba(6,15,26,0.12) 45%, rgba(6,15,26,0.4) 100%); pointer-events: none; }
.coverage-labels {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0 var(--gutter) clamp(18px, 3vw, 30px);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap;
}
.coverage-labels span:first-child { font-family: var(--mono); font-size: 10.5px; letter-spacing: 1.8px; color: var(--slate-light); }
.coverage-labels span:last-child { font-family: var(--mono); font-size: 10px; letter-spacing: 1.5px; color: var(--slate-muted); }

/* ===== cta / footer ===== */
.cta {
  min-height: 56vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 76px var(--gutter); position: relative; overflow: hidden;
}
.cta-img { opacity: 0.55; filter: saturate(0.85); }
.scrim--cta { background: linear-gradient(to top, rgba(6,15,26,0.95) 0%, rgba(6,15,26,0.55) 40%, rgba(6,15,26,0.35) 75%, rgba(6,15,26,0.72) 100%); }
.cta h2 {
  font-family: var(--sora); font-weight: 600; font-size: clamp(30px, 4.4vw, 54px);
  line-height: 1.12; letter-spacing: -1.4px; color: #fff; margin: 0 0 20px; max-width: 760px;
  text-wrap: balance; position: relative;
}
.cta-sub { font-size: 15.5px; line-height: 1.65; color: var(--slate); margin: 0 0 36px; max-width: 520px; text-wrap: pretty; position: relative; }
.cta-actions { display: flex; flex-direction: column; align-items: center; gap: 16px; position: relative; }
.cta-mail { font-family: var(--mono); font-size: 11px; letter-spacing: 1.5px; color: var(--slate-muted); }

.footer { border-top: 1px solid rgba(200, 213, 225, 0.1); background: rgba(6, 15, 26, 0.82); backdrop-filter: blur(8px); padding: 44px var(--gutter) 30px; position: relative; z-index: 2; }
.foot-inner { max-width: 1160px; margin: 0 auto; display: flex; flex-direction: column; gap: 26px; }
.foot-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 28px; flex-wrap: wrap; }
.foot-brand { display: flex; align-items: center; gap: 10px; }
.foot-brand span { font-family: var(--sora); font-weight: 700; font-size: 13px; letter-spacing: 3px; color: rgba(200, 213, 225, 0.85); }
.foot-reg { display: flex; flex-direction: column; gap: 8px; max-width: 460px; }
.foot-reg p { font-size: 12px; line-height: 1.65; color: var(--slate-muted); margin: 0; }
.foot-legal { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; border-top: 1px solid rgba(200, 213, 225, 0.08); padding-top: 18px; }
.foot-legal .legal { font-size: 11.5px; color: var(--slate-faint); }
.foot-legal .legal a { color: rgba(200, 213, 225, 0.7); display: inline-flex; align-items: center; min-height: 44px; margin: -16px 0; vertical-align: middle; /* 44px hit target, visually unchanged */ }
.foot-legal .legal a:hover { color: #fff; }
.foot-credit { font-size: 10px; color: var(--slate-faint); }

/* ===== reveals (JS sets initial state; visible without JS) ===== */

/* ===== responsive chrome ===== */
@media (max-width: 960px) {
  .hud, .nav-desc, .wire-curated { display: none !important; }
}
@media (max-width: 640px) {
  .wire-label { display: none !important; }
  /* nav wraps to two rows so the language toggle and CTA never collide with
     the wordmark (mobile-first hard rule; wire offset follows via JS) */
  .nav { flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; gap: 0 20px; }
  .nav-right { width: 100%; justify-content: space-between; }
  /* stacked CTAs need clearance above the scroll cue */
  .hero { padding-top: 176px; padding-bottom: 104px; }
}

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