/* ============================================================
   Magic City Watershed — design system
   Light, editorial, engineering-firm-with-great-taste
   Project palette: Valley #1f4f8b · Village #e07b00 · Fivemile #2e8b57
   ============================================================ */

:root {
  /* Surfaces */
  --bg-base: #ffffff;
  --bg-soft: #f6f4ef;       /* warm off-white */
  --bg-card: #ffffff;
  --bg-deep: #0c1a2c;       /* hero / footer dark */
  --bg-deep-2: #142235;

  /* Borders / lines */
  --line: #e6e3dc;
  --line-strong: #cfcabd;
  --line-dark: rgba(255,255,255,0.10);

  /* Text */
  --text-primary: #14202f;
  --text-secondary: #3a4a5e;
  --text-muted: #6a7585;
  --text-soft: #8a93a1;
  --text-onDark: #f4f1ea;
  --text-onDark-muted: #aab5c5;

  /* Brand creek colors (canonical) */
  --valley: #1f4f8b;
  --valley-soft: rgba(31, 79, 139, 0.10);
  --village: #e07b00;
  --village-soft: rgba(224, 123, 0, 0.10);
  --fivemile: #2e8b57;
  --fivemile-soft: rgba(46, 139, 87, 0.10);

  /* Accents */
  --accent: #1f4f8b;        /* primary brand */
  --accent-deep: #163a66;
  --accent-glow: rgba(31, 79, 139, 0.18);
  --warn: #b56500;
  --danger: #b3261e;
  --positive: #2e8b57;

  --font-display: "Manrope", "Inter", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Roboto Mono", monospace;

  --content-max: 1180px;
  --content-narrow: 880px;
  --gutter: 28px;
  --nav-height: 64px;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-xl: 22px;

  --shadow-sm: 0 1px 2px rgba(20,32,47,.04), 0 1px 1px rgba(20,32,47,.03);
  --shadow-md: 0 4px 12px rgba(20,32,47,.06), 0 2px 4px rgba(20,32,47,.04);
  --shadow-lg: 0 16px 40px rgba(20,32,47,.10), 0 4px 12px rgba(20,32,47,.06);
}

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap");

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent-deep); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }

img, svg { max-width: 100%; height: auto; display: block; }

/* ---------- Layout containers ---------- */

.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container-narrow {
  max-width: var(--content-narrow);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: 96px 0;
  position: relative;
}

.section.tight { padding: 64px 0; }
.section.soft { background: var(--bg-soft); }
.section.dark {
  background: var(--bg-deep);
  color: var(--text-onDark);
}
.section.dark h1, .section.dark h2, .section.dark h3, .section.dark h4 { color: var(--text-onDark); }
.section.dark p { color: var(--text-onDark-muted); }
.section.dark .eyebrow { color: #6ea3e0; }
.section.dark a { color: #6ea3e0; }

/* ---------- Typography ---------- */

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(40px, 7vw, 80px); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 700; letter-spacing: -0.025em; }
h3 { font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; letter-spacing: -0.015em; }
h4 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }

p { color: var(--text-secondary); margin: 0 0 14px; }
p:last-child { margin-bottom: 0; }

ul, ol { color: var(--text-secondary); padding-left: 22px; }
ul li, ol li { margin: 6px 0; }

strong { color: var(--text-primary); font-weight: 600; }

code { font-family: var(--font-mono); font-size: 0.92em; background: var(--bg-soft); padding: 1px 5px; border-radius: 3px; color: var(--text-primary); }

.eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 14px;
  display: inline-block;
}

.subtitle {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--text-muted);
  max-width: 720px;
  margin-top: 12px;
  line-height: 1.55;
}

.section-header { margin-bottom: 56px; max-width: 820px; }

/* ---------- Top nav ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  height: var(--nav-height);
  display: flex;
  align-items: center;
}

.site-nav-inner {
  max-width: var(--content-max);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav-brand {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.015em;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-nav-brand:hover { text-decoration: none; color: var(--accent); }

.brand-mark {
  width: 44px;
  height: 44px;
  display: inline-block;
  background: url('vulcan-water.svg') center/contain no-repeat;
  flex-shrink: 0;
}

.site-nav-links {
  display: flex;
  gap: 26px;
  flex: 1;
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-nav-links li { margin: 0; }

.site-nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 0;
  position: relative;
}
.site-nav-links a:hover { color: var(--text-primary); text-decoration: none; }
.site-nav-links a.active { color: var(--accent); font-weight: 600; }
.site-nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -22px;
  height: 2px;
  background: var(--accent);
}

.site-nav-divider {
  width: 1px;
  height: 22px;
  background: var(--line-strong);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff !important;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
}
.nav-cta:hover { background: var(--accent-deep); text-decoration: none !important; }

/* ---------- Hero (full bleed dark) ---------- */

.hero-full {
  position: relative;
  min-height: clamp(540px, 88vh, 820px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-deep);
  color: var(--text-onDark);
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(2px) saturate(0.85);
  transform: scale(1.06);
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(31, 79, 139, 0.45) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(46, 139, 87, 0.30) 0%, transparent 60%),
    linear-gradient(180deg, rgba(8,16,28,0.55) 0%, rgba(8,16,28,0.85) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 110px 0 70px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #cfdcef;
  backdrop-filter: blur(6px);
  margin-bottom: 28px;
}
.hero-eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #6ea3e0;
  box-shadow: 0 0 0 4px rgba(110,163,224,.20);
}

.hero-content h1 {
  color: #fff;
  max-width: 18ch;
  margin-bottom: 22px;
}
.hero-content h1 .grad {
  background: linear-gradient(90deg, #ffffff 0%, #cfdcef 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-content .subline {
  display: block;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 500;
  color: #d2dbeb;
  margin-top: 18px;
  letter-spacing: -0.005em;
}

.hero-tagline {
  font-size: clamp(18px, 1.8vw, 22px);
  color: #e1e8f3;
  max-width: 56ch;
  font-weight: 400;
  margin-top: 14px;
  line-height: 1.5;
}

.hero-tagline em {
  font-style: normal;
  background: linear-gradient(120deg, var(--village) 0%, #ffb046 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 44px;
  max-width: 1000px;
}

.glass-stat {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
}
.glass-stat:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.30);
  transform: translateY(-2px);
}
.glass-stat .v {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.025em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.glass-stat .l {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: #aab9d0;
  margin-top: 8px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .15s, background .2s, border-color .2s, color .2s, box-shadow .2s;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font-body);
}
.btn:hover { text-decoration: none !important; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: #fff;
  color: var(--accent-deep);
  border-color: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
.btn-primary:hover { background: #fff; color: var(--accent-deep); box-shadow: 0 8px 24px rgba(0,0,0,.25); }

.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.30);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.16); color: #fff; border-color: rgba(255,255,255,0.50); }

.btn-solid {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-solid:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline:hover { background: var(--accent); color: #fff; }

.btn .arrow {
  transition: transform .2s ease;
  display: inline-block;
}
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Generic figure ---------- */

.fig {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.fig img { width: 100%; height: auto; display: block; background: #f7f5f0; }
.fig figcaption {
  padding: 14px 22px 18px;
  font-size: 13.5px;
  color: var(--text-muted);
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  line-height: 1.5;
}
.fig figcaption strong { color: var(--text-secondary); }

.section.dark .fig {
  border-color: rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
}
.section.dark .fig figcaption {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.10);
  color: #b8c5d8;
}
.section.dark .fig figcaption strong { color: #d2dbeb; }

/* ---------- Pull quote / callout ---------- */

.pull-quote {
  margin: 36px 0;
  padding: 32px 36px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.pull-quote .label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  display: inline-block;
}
.pull-quote p {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.1vw, 22px);
  line-height: 1.45;
  color: var(--text-primary);
  font-weight: 500;
  letter-spacing: -0.012em;
}

.section.dark .pull-quote {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.10);
  border-left-color: #6ea3e0;
}
.section.dark .pull-quote p { color: #f4f1ea; }
.section.dark .pull-quote .label { color: #6ea3e0; }

/* ---------- Big number / stat block ---------- */

.statline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  overflow: hidden;
}
.statline .cell {
  padding: 24px 22px;
  border-right: 1px solid var(--line);
}
.statline .cell:last-child { border-right: 0; }
.statline .cell .v {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.statline .cell .l {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-top: 10px;
}

/* ---------- Watershed exposure cards (Problem) ---------- */

.exposure-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.exposure-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  border-top: 4px solid;
  transition: transform .2s, box-shadow .2s;
}
.exposure-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.exposure-card.valley   { border-top-color: var(--valley); }
.exposure-card.village  { border-top-color: var(--village); }
.exposure-card.fivemile { border-top-color: var(--fivemile); }

.exposure-card .creek-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
}
.exposure-card.valley   .creek-label { color: var(--valley); }
.exposure-card.village  .creek-label { color: var(--village); }
.exposure-card.fivemile .creek-label { color: var(--fivemile); }

.exposure-card h3 { font-size: 18px; margin-top: 6px; }

.exposure-stat {
  margin-top: 18px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.exposure-stat .pct {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1;
}
.exposure-stat .units {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}
.exposure-card .desc {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.5;
}

.bar-track {
  height: 8px;
  background: var(--bg-soft);
  border-radius: 999px;
  margin-top: 14px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 1s cubic-bezier(.2,.8,.2,1);
}
.bar-fill.valley   { background: var(--valley); }
.bar-fill.village  { background: var(--village); }
.bar-fill.fivemile { background: var(--fivemile); }

.bar-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* ---------- Approach (5 anchors) ---------- */

.anchors {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 36px;
  position: relative;
}

.anchor {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  position: relative;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.anchor:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }

.anchor .num {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.anchor .num::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  background: var(--accent);
  margin-right: 8px;
  vertical-align: middle;
}

.anchor h4 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  line-height: 1.25;
}

.anchor p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
}
.anchor .ref {
  font-size: 11px;
  color: var(--text-soft);
  margin-top: 12px;
  font-family: var(--font-mono);
  display: block;
}

.anchor-output {
  margin-top: 28px;
  padding: 24px 28px;
  background: linear-gradient(135deg, #14305a 0%, var(--accent) 100%);
  color: #fff;
  border-radius: var(--radius-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: 0 8px 24px rgba(31,79,139,.20);
}
.anchor-output .label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #cfdcef;
}
.anchor-output h3 { color: #fff; margin-top: 4px; font-size: 22px; }
.anchor-output p { color: #cfdcef; font-size: 14px; max-width: 60ch; }

/* (data-table styling moved inline in index.html) */

/* ---------- Capabilities grid ---------- */

.caps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.cap-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.cap-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }

.cap-card .icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--accent-glow);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-weight: 800;
  font-size: 18px;
  font-family: var(--font-display);
}

.cap-card h4 { font-size: 16px; margin-bottom: 8px; }
.cap-card p { font-size: 13.5px; color: var(--text-muted); line-height: 1.55; }

/* ---------- Path forward steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 36px;
  counter-reset: step;
}
.step-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
  counter-increment: step;
}
.step-card::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 18px; right: 22px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--bg-soft);
  letter-spacing: -0.04em;
}
.step-card .stage {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.step-card.future .stage { color: var(--text-muted); }
.step-card h4 { font-size: 17px; margin-top: 8px; line-height: 1.3; }
.step-card p { font-size: 13.5px; color: var(--text-muted); margin-top: 10px; }

/* ---------- Contact card ---------- */

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: center;
  box-shadow: var(--shadow-md);
  margin-top: 32px;
}
.contact-card .lead-text h3 { font-size: 24px; margin-bottom: 8px; }
.contact-card .lead-text p { color: var(--text-muted); font-size: 15px; }
.contact-card dl {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 6px 18px;
  font-size: 14px;
}
.contact-card dt { color: var(--text-muted); font-weight: 500; }
.contact-card dd { color: var(--text-primary); font-weight: 500; }
.contact-card .qr-block {
  text-align: center;
}
.contact-card .qr-block img {
  width: 140px; height: 140px; border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}
.contact-card .qr-block .cap {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--bg-deep);
  color: var(--text-onDark-muted);
  padding: 56px 0 36px;
  font-size: 13px;
  border-top: 1px solid var(--line-dark);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-brand .name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.015em;
  display: flex; align-items: center; gap: 10px;
}
.footer-brand p { color: var(--text-onDark-muted); margin-top: 12px; max-width: 36ch; font-size: 13px; }

.footer-col h5 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #fff;
  margin-bottom: 12px;
  font-weight: 700;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin: 7px 0; }
.footer-col a { color: var(--text-onDark-muted); font-size: 13px; }
.footer-col a:hover { color: #fff; }

.footer-meta {
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--text-onDark-muted);
  font-size: 12px;
}

/* ---------- Reveal-on-scroll (CSS-only via JS-toggled class) ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Workbook page ---------- */

.workbook-hero {
  padding: 80px 0 32px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}

.workbook-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 28px 0;
}
.workbook-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: transform .2s, box-shadow .2s;
}
.workbook-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.workbook-card.valley   { border-top-color: var(--valley); }
.workbook-card.village  { border-top-color: var(--village); }
.workbook-card.fivemile { border-top-color: var(--fivemile); }
.workbook-card .creek-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase;
}
.workbook-card.valley .creek-label   { color: var(--valley); }
.workbook-card.village .creek-label  { color: var(--village); }
.workbook-card.fivemile .creek-label { color: var(--fivemile); }

.workbook-card h3 { font-size: 18px; margin-top: 6px; }
.workbook-card ul { padding: 0; list-style: none; margin-top: 16px; }
.workbook-card li {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.workbook-card li:last-child { border-bottom: 0; }
.workbook-card li a {
  flex: 1;
  color: var(--text-primary);
  font-weight: 500;
}
.workbook-card li a:hover { color: var(--accent); }
.workbook-card li .meta {
  font-size: 11px; color: var(--text-muted); font-weight: 500; white-space: nowrap;
}
.dl-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 5px;
  background: var(--accent-glow); color: var(--accent);
  font-size: 12px; font-weight: 700;
  flex: 0 0 auto;
}

.feature-doc {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  box-shadow: var(--shadow-md);
  margin: 28px 0;
}
.feature-doc h3 { font-size: 22px; }
.feature-doc p { color: var(--text-muted); font-size: 14.5px; margin-top: 6px; max-width: 60ch; }
.feature-doc .actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Map page chrome ---------- */

.map-shell { display: flex; flex-direction: column; height: 100vh; }
.map-bar {
  display: flex; align-items: center; gap: 18px;
  padding: 12px 20px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  z-index: 10;
}
.map-bar .brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  display: flex; align-items: center; gap: 10px;
  color: var(--text-primary);
}
.map-bar .brand:hover { color: var(--accent); text-decoration: none; }
.map-bar .map-title {
  flex: 1;
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.map-bar a { font-size: 13px; color: var(--text-secondary); }
.map-bar a:hover { color: var(--accent); }

#map-app { flex: 1; display: grid; grid-template-columns: 320px 1fr; min-height: 0; }
#sidebar {
  overflow-y: auto;
  padding: 20px;
  background: #fbfaf6;
  border-right: 1px solid var(--line);
  font-size: 13px;
}
#map { width: 100%; height: 100%; }
#sidebar h3 {
  margin-top: 22px;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--text-muted);
}
#sidebar h3:first-of-type { margin-top: 0; }
.layer-toggle { display: flex; align-items: center; padding: 5px 0; cursor: pointer; }
.layer-toggle input { margin-right: 9px; cursor: pointer; }
.layer-toggle .swatch {
  width: 16px; height: 16px; margin-right: 8px;
  border: 1px solid rgba(0,0,0,0.15); border-radius: 3px;
  flex: 0 0 auto;
}
.layer-toggle.indented { padding-left: 20px; }
.ari-picker, .ws-picker { display: flex; gap: 4px; margin: 10px 0 4px; }
.ari-picker button, .ws-picker button {
  flex: 1; padding: 7px 6px; font-size: 12px;
  border: 1px solid var(--line); background: #fff; cursor: pointer;
  border-radius: 4px; font-weight: 600; color: var(--text-secondary);
  transition: all .15s;
}
.ari-picker button:hover, .ws-picker button:hover { border-color: var(--accent); color: var(--accent); }
.ari-picker button.active { background: var(--accent); color: white; border-color: var(--accent); }
.ws-picker button.valley   { border-left: 3px solid var(--valley); }
.ws-picker button.village  { border-left: 3px solid var(--village); }
.ws-picker button.fivemile { border-left: 3px solid var(--fivemile); }

.gage-popup {
  font-family: var(--font-body);
  min-width: 220px;
}
.gage-popup .head {
  padding: 10px 14px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 10px;
  margin: -10px -10px 0 -10px;
  border-radius: 4px 4px 0 0;
}
.gage-popup .head.valley   { background: var(--valley); }
.gage-popup .head.village  { background: var(--village); }
.gage-popup .head.fivemile { background: var(--fivemile); }
.gage-popup .head .gid { font-size: 16px; font-weight: 800; letter-spacing: -0.02em; }
.gage-popup .head .creek { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.85; font-weight: 600; }
.gage-popup .body { padding: 10px 14px 4px; }
.gage-popup table { font-size: 12.5px; border-collapse: collapse; width: 100%; }
.gage-popup table td { padding: 4px 0; border-bottom: 1px solid var(--line); }
.gage-popup table td:first-child { color: var(--text-muted); font-weight: 500; padding-right: 14px; }
.gage-popup table tr:last-child td { border-bottom: 0; }

#map-legend {
  position: absolute; bottom: 36px; left: 16px; z-index: 5;
  background: rgba(255,255,255,0.96);
  padding: 12px 14px;
  border: 1px solid var(--line);
  font-size: 12px; line-height: 1.5;
  max-width: 250px;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  font-family: var(--font-body);
}
#map-legend h4 {
  margin: 0 0 8px 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: 700;
}
.legend-row { display: flex; align-items: center; padding: 2px 0; font-size: 12px; }
.legend-swatch { width: 18px; height: 12px; margin-right: 8px; border: 1px solid rgba(0,0,0,0.15); border-radius: 2px; }

#map-intro {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  background: rgba(20,32,47,0.92);
  color: #fff;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  font-family: var(--font-body);
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-md);
  animation: introShow .35s ease, introHide .8s ease 3.2s forwards;
  pointer-events: none;
  white-space: nowrap;
}
#map-intro .pulse { width: 8px; height: 8px; border-radius: 50%; background: #6ea3e0; animation: pulse 1.6s infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(110,163,224,.6); }
  50% { box-shadow: 0 0 0 8px rgba(110,163,224,0); }
}
@keyframes introShow {
  from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
  to { opacity: 1; transform: translateX(-50%); }
}
@keyframes introHide {
  to { opacity: 0; transform: translateX(-50%) translateY(-8px); pointer-events: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .anchors { grid-template-columns: repeat(3, 1fr); }
  .anchors .anchor:nth-child(4),
  .anchors .anchor:nth-child(5) { grid-column: span 1; }
  .caps-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid .footer-col:nth-child(4) { grid-column: span 3; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  :root { --gutter: 20px; }
  .section { padding: 64px 0; }
  .section.tight { padding: 48px 0; }
  .hero-content { padding: 90px 0 60px; }

  /* Compact nav: brand + Map/Workbook only — drop CTA on small screens */
  .site-nav-inner { gap: 12px; }
  .site-nav-links { gap: 14px; }
  .site-nav-inner > .site-nav-links:first-of-type { display: none; }
  .site-nav-divider { display: none; }
  .nav-cta { display: none; }
  .site-nav-brand { font-size: 14px; }
  .brand-mark { width: 34px; height: 34px; }

  .anchors { grid-template-columns: 1fr; }
  .exposure-cards { grid-template-columns: 1fr; }
  .caps-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .statline { grid-template-columns: repeat(2, 1fr); }
  .statline .cell:nth-child(2) { border-right: 0; }
  .statline .cell:nth-child(1), .statline .cell:nth-child(2) { border-bottom: 1px solid var(--line); }

  .contact-card { grid-template-columns: 1fr; padding: 24px; }
  .feature-doc { grid-template-columns: 1fr; }
  .workbook-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  #map-app { grid-template-columns: 1fr; grid-template-rows: 280px 1fr; }
  #sidebar { border-right: 0; border-bottom: 1px solid var(--line); }

  .data-table { font-size: 13px; }
  .data-table th, .data-table td { padding: 10px 12px; }
}

/* ============================================================
   New 7-tab structure additions (2026-05-04b)
   ============================================================ */

/* ---------- Site nav, expanded for 7 tabs ---------- */

.site-nav-links.primary {
  display: flex;
  gap: 22px;
  flex: 1;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.site-nav-links.primary::-webkit-scrollbar { display: none; }
.site-nav-links.primary a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 0;
  position: relative;
  white-space: nowrap;
}
.site-nav-links.primary a:hover { color: var(--text-primary); text-decoration: none; }
.site-nav-links.primary a.active { color: var(--accent); font-weight: 600; }
.site-nav-links.primary a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -22px;
  height: 2px;
  background: var(--accent);
}

/* ---------- Page-hero (subpages) ---------- */

.page-hero {
  padding: 64px 0 36px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  font-size: clamp(32px, 4.6vw, 52px);
  margin-top: 8px;
  letter-spacing: -0.025em;
}
.page-hero .subtitle { max-width: 70ch; margin-top: 14px; }

/* ---------- Migration banner ---------- */

.migration-banner {
  background: linear-gradient(135deg, var(--bg-soft) 0%, #f0ebde 100%);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  font-size: 13.5px;
  color: var(--text-secondary);
  text-align: center;
}
.migration-banner strong { color: var(--text-primary); }
.migration-banner a { color: var(--accent); font-weight: 600; }

/* ---------- Capital project cards ---------- */

.capital-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 32px;
}

.capital-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  border-top: 5px solid;
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.capital-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.capital-card.valley   { border-top-color: var(--valley); }
.capital-card.village  { border-top-color: var(--village); }
.capital-card.fivemile { border-top-color: var(--fivemile); }
.capital-card.citywide { border-top-color: var(--accent); }

.capital-card .top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.capital-card .creek-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.capital-card.valley   .creek-label { color: var(--valley); }
.capital-card.village  .creek-label { color: var(--village); }
.capital-card.fivemile .creek-label { color: var(--fivemile); }
.capital-card.citywide .creek-label { color: var(--accent); }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--text-muted);
  white-space: nowrap;
}
.status-badge.concept    { background: rgba(110,163,224,.15); color: #2c5b8e; }
.status-badge.scoping    { background: rgba(224,123,0,.14); color: var(--warn); }
.status-badge.design     { background: rgba(46,139,87,.14); color: var(--positive); }
.status-badge.construct  { background: rgba(31,79,139,.14); color: var(--accent-deep); }

.capital-card h3 { font-size: 20px; margin-top: 4px; line-height: 1.25; }
.capital-card .basin-tag {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 8px;
}
.capital-card p.desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 14px;
  line-height: 1.55;
}

.proj-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  overflow: hidden;
}
.proj-metrics .pm {
  padding: 12px 14px;
  border-right: 1px solid var(--line);
}
.proj-metrics .pm:last-child { border-right: 0; }
.proj-metrics .pm .v {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.015em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.proj-metrics .pm .l {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--text-muted);
  margin-top: 6px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.proj-funding {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.proj-funding strong { color: var(--text-secondary); }

.proj-footnote {
  font-size: 11.5px;
  color: var(--text-soft);
  margin-top: 14px;
  font-style: italic;
}

/* ---------- Funding table ---------- */

.funding-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-size: 13.5px;
  margin-top: 24px;
}
.funding-table th, .funding-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.funding-table tr:last-child td { border-bottom: 0; }
.funding-table thead th {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line-strong);
}
.funding-table td.prog {
  font-weight: 700;
  color: var(--text-primary);
  min-width: 200px;
}
.funding-table td .agency {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}
.funding-table td.match { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Critical infra row ---------- */

.infra-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 28px;
}
.infra-tile {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  text-align: left;
  transition: transform .2s, box-shadow .2s;
}
.infra-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.infra-tile .ic {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--accent-glow);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 18px; font-weight: 800;
  margin-bottom: 14px;
}
.infra-tile .label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.infra-tile .v {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  margin-top: 6px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.infra-tile .pct {
  font-size: 12.5px;
  color: var(--danger);
  font-weight: 600;
  margin-top: 8px;
}
.infra-tile .pct.muted { color: var(--text-muted); }

/* ---------- Neighborhood ranking table ---------- */

.rank-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-size: 13.5px;
  margin-top: 24px;
}
.rank-table th, .rank-table td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.rank-table tr:last-child td { border-bottom: 0; }
.rank-table thead th {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line-strong);
}
.rank-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.rank-table td.rank {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--accent);
  width: 40px;
}
.rank-table tbody tr:hover { background: var(--bg-soft); }

/* ---------- Roadmap Gantt ---------- */

.gantt {
  margin-top: 32px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px 18px;
  overflow-x: auto;
}
.gantt-grid {
  display: grid;
  grid-template-columns: 220px repeat(5, 1fr);
  gap: 6px;
  align-items: center;
  min-width: 720px;
}
.gantt-axis {
  display: contents;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.gantt-axis > * {
  padding: 8px 4px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.gantt-axis > .label-spacer { border-bottom: 1px solid var(--line); }

.phase-row {
  display: contents;
}
.phase-row .phase-label {
  padding: 14px 8px 14px 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
}
.phase-row .phase-label .stage {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.phase-row .phase-bar {
  position: relative;
  height: 28px;
  margin: 6px 0;
  background: transparent;
}
.phase-row .phase-bar .bar {
  position: absolute;
  top: 4px;
  bottom: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) 0%, #3a7ec5 100%);
  box-shadow: 0 2px 6px rgba(31,79,139,.20);
}
.phase-row.foundation .bar    { background: linear-gradient(90deg, var(--accent) 0%, #3a7ec5 100%); }
.phase-row.inventory  .bar    { background: linear-gradient(90deg, #2c5b8e 0%, var(--village) 100%); }
.phase-row.design     .bar    { background: linear-gradient(90deg, var(--village) 0%, #ffb046 100%); }
.phase-row.construct  .bar    { background: linear-gradient(90deg, #ffb046 0%, var(--fivemile) 100%); }
.phase-row.adaptive   .bar    {
  background: repeating-linear-gradient(45deg, var(--fivemile), var(--fivemile) 6px, #5fae84 6px, #5fae84 12px);
}

.phase-row .milestone {
  position: absolute;
  top: 50%;
  width: 12px; height: 12px;
  background: #fff;
  border: 2px solid var(--accent-deep);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 1px 3px rgba(0,0,0,.20);
}

.phase-detail {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}
.phase-detail .pd {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 22px;
}
.phase-detail .pd .stage {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
}
.phase-detail .pd h4 { font-size: 15.5px; margin-top: 6px; }
.phase-detail .pd p { font-size: 13.5px; color: var(--text-muted); margin-top: 8px; }
.phase-detail .pd ul { padding-left: 18px; margin-top: 8px; font-size: 13px; }
.phase-detail .pd li { color: var(--text-muted); margin: 3px 0; }

/* ---------- Capital project tile (preview on home) ---------- */

.proj-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 28px;
}
.proj-tile {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  border-left: 3px solid var(--accent);
  transition: transform .2s, box-shadow .2s;
  display: block;
  color: inherit;
}
.proj-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); text-decoration: none; }
.proj-tile.valley   { border-left-color: var(--valley); }
.proj-tile.village  { border-left-color: var(--village); }
.proj-tile.fivemile { border-left-color: var(--fivemile); }
.proj-tile .creek-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.proj-tile.valley   .creek-label { color: var(--valley); }
.proj-tile.village  .creek-label { color: var(--village); }
.proj-tile.fivemile .creek-label { color: var(--fivemile); }
.proj-tile h4 { font-size: 15px; margin-top: 6px; line-height: 1.3; }
.proj-tile .meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 10px;
  font-variant-numeric: tabular-nums;
}

/* ---------- Map advanced layer toggle ---------- */
.layer-section.advanced {
  margin-top: 16px;
  border-top: 1px dashed var(--line);
  padding-top: 12px;
}
.advanced-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.advanced-toggle:hover { color: var(--accent); }
.advanced-toggle .chev { transition: transform .2s; display: inline-block; }
.advanced-toggle[aria-expanded="true"] .chev { transform: rotate(90deg); }
.advanced-content { display: none; }
.advanced-content.open { display: block; }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .capital-grid { grid-template-columns: 1fr; }
  .infra-row { grid-template-columns: repeat(3, 1fr); }
  .proj-preview-grid { grid-template-columns: repeat(2, 1fr); }
  .phase-detail { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .infra-row { grid-template-columns: repeat(2, 1fr); }
  .proj-preview-grid { grid-template-columns: 1fr; }
  .proj-metrics { grid-template-columns: 1fr; }
  .proj-metrics .pm { border-right: 0; border-bottom: 1px solid var(--line); }
  .proj-metrics .pm:last-child { border-bottom: 0; }
  .funding-table { font-size: 12.5px; }
  .funding-table th, .funding-table td { padding: 10px 12px; }
  .rank-table { font-size: 12.5px; }
  .rank-table th, .rank-table td { padding: 9px 10px; }
}

/* ---------- Print ---------- */

@media print {
  .site-nav, .hero-ctas, .nav-cta, #map-intro, #map-legend { display: none !important; }
  .hero-full { min-height: auto; background: #fff; color: #000; }
  .hero-bg, .hero-overlay { display: none; }
  .hero-content { padding: 24px 0; }
  .hero-content h1, .hero-content h1 .grad { color: #000 !important; -webkit-text-fill-color: #000 !important; }
  body { background: #fff; color: #000; }
  .section { padding: 24px 0; }
  .section.dark { background: #fff; color: #000; }
  .section.dark h1, .section.dark h2, .section.dark h3, .section.dark p { color: #000 !important; }
  .glass-stat .v, .glass-stat .l { color: #000 !important; }
  .anchor, .cap-card, .exposure-card, .step-card, .workbook-card, .contact-card, .feature-doc, .fig {
    box-shadow: none !important;
    page-break-inside: avoid;
  }
  a { color: #000; text-decoration: none; }
  .site-footer { background: #fff; color: #000; border-top: 1px solid #999; }
}
