:root {
  --navy-950: #031a33;
  --navy-900: #082548;
  --navy-850: #0b2d57;
  --navy-800: #103d71;
  --navy-700: #184f8d;
  --gold-600: #bf8c19;
  --gold-500: #d8a32a;
  --gold-400: #f2c14e;
  --teal-500: #0b8c84;
  --green-500: #2f8f4e;
  --sky-500: #4591d1;
  --red-500: #b84c4c;
  --ink: #102033;
  --muted: #526070;
  --surface: #ffffff;
  --surface-2: #f6f8fb;
  --surface-3: #eef2f7;
  --border: rgba(16, 45, 80, 0.14);
  --shadow-sm: 0 12px 28px rgba(3, 26, 51, 0.10);
  --shadow-md: 0 24px 60px rgba(3, 26, 51, 0.16);
  --shadow-lg: 0 34px 90px rgba(3, 26, 51, 0.25);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 11px;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  color-scheme: light;
}

html[data-theme="dark"] {
  --ink: #eef5ff;
  --muted: #bac7d6;
  --surface: #081b33;
  --surface-2: #0c2647;
  --surface-3: #10345f;
  --border: rgba(255, 255, 255, 0.14);
  --shadow-sm: 0 12px 28px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 24px 60px rgba(0, 0, 0, 0.36);
  --shadow-lg: 0 34px 90px rgba(0, 0, 0, 0.52);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background:
    radial-gradient(circle at 6% 2%, rgba(216, 163, 42, .18), transparent 24rem),
    linear-gradient(180deg, #ffffff 0%, var(--surface-2) 38%, #ffffff 100%);
  min-width: 320px;
}
html[data-theme="dark"] body {
  background:
    radial-gradient(circle at 6% 2%, rgba(216, 163, 42, .14), transparent 24rem),
    linear-gradient(180deg, #061426 0%, #071b33 60%, #041222 100%);
}
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }

.container {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  transform: translateY(-140%);
  padding: 12px 16px;
  background: var(--gold-400);
  color: var(--navy-950);
  border-radius: 999px;
  font-weight: 800;
}
.skip-link:focus { transform: translateY(0); }
.prototype-banner {
  background: linear-gradient(90deg, var(--navy-950), var(--navy-800));
  color: #fff;
  text-align: center;
  padding: 8px 16px;
  font-size: 0.86rem;
  letter-spacing: .01em;
}
.prototype-banner strong { color: var(--gold-400); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(22px);
  background: rgba(255, 255, 255, 0.84);
  border-bottom: 1px solid var(--border);
}
html[data-theme="dark"] .site-header { background: rgba(6, 20, 38, 0.86); }
.nav-shell {
  min-height: 74px;
  width: min(1240px, calc(100% - 28px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 900;
  color: var(--navy-900);
}
html[data-theme="dark"] .brand { color: #fff; }
.brand img { width: 142px; height: auto; }
.brand span { border-left: 1px solid var(--border); padding-left: 12px; white-space: nowrap; }
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
}
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  padding: 10px 11px;
  border-radius: 999px;
  font-weight: 750;
  font-size: 0.90rem;
}
.nav-links a:hover, .nav-links a:focus-visible {
  background: var(--surface-3);
  color: var(--navy-900);
  outline: none;
}
html[data-theme="dark"] .nav-links a:hover,
html[data-theme="dark"] .nav-links a:focus-visible { color: #fff; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}
.menu-toggle span:not(.visually-hidden) {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
  border-radius: 99px;
}
.gold-btn, .outline-btn, .ghost-btn, .icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border-radius: 999px;
  padding: 0 17px;
  text-decoration: none;
  font-weight: 850;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, color .22s ease, border .22s ease;
}
.gold-btn {
  border: 0;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: #07162a;
  box-shadow: 0 14px 32px rgba(216, 163, 42, .28);
}
.gold-btn:hover, .gold-btn:focus-visible { transform: translateY(-2px); box-shadow: 0 20px 44px rgba(216, 163, 42, .34); outline: none; }
.outline-btn {
  border: 1px solid rgba(255,255,255,.52);
  color: #fff;
  background: rgba(255,255,255,.08);
}
.outline-btn.dark { color: var(--navy-900); border-color: var(--border); background: var(--surface); }
html[data-theme="dark"] .outline-btn.dark { color: #fff; }
.ghost-btn {
  border: 1px solid var(--border);
  color: var(--ink);
  background: var(--surface);
}
.ghost-btn.compact { min-height: 36px; padding: 0 13px; font-size: .86rem; }
.icon-btn {
  width: 44px;
  padding: 0;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
}
.ghost-btn:hover, .outline-btn.dark:hover, .icon-btn:hover,
.ghost-btn:focus-visible, .outline-btn.dark:focus-visible, .icon-btn:focus-visible {
  transform: translateY(-1px);
  background: var(--surface-3);
  outline: none;
}

.hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  background: var(--navy-950);
  color: #fff;
}
.hero-media {
  position: absolute;
  inset: 0;
  opacity: .95;
  background: radial-gradient(circle at 75% 20%, rgba(242, 193, 78, .25), transparent 28rem);
}
.hero-media::before {
  content: "";
  position: absolute;
  inset: -4% 0 auto -6%;
  height: 118%;
  width: 118%;
  background: linear-gradient(110deg, rgba(3,26,51,.88) 0%, rgba(3,26,51,.72) 38%, rgba(3,26,51,.32) 100%);
  z-index: 2;
}
.hero-img {
  position: absolute;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
  filter: saturate(1.05) contrast(1.04);
}
.img-one { inset: 0; width: 100%; height: 100%; opacity: .44; filter: saturate(1.05) contrast(1.1); }
.img-two { top: 130px; right: 8%; width: min(46vw, 600px); height: 340px; border-radius: 34px; transform: rotate(-3deg); z-index: 1; }
.img-three { right: 5%; bottom: 110px; width: min(38vw, 480px); height: 290px; border-radius: 34px; transform: rotate(4deg); z-index: 1; }
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 17% 28%, rgba(242,193,78,.15), transparent 25rem),
    linear-gradient(180deg, transparent 65%, rgba(3,26,51,.92));
  z-index: 3;
}
.hero-grid {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  align-items: center;
  gap: 56px;
  min-height: 760px;
  padding: 88px 0 72px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--gold-400);
  font-size: .79rem;
  font-weight: 950;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 3px;
  border-radius: 99px;
  background: currentColor;
}
.eyebrow.dark { color: var(--gold-600); }
.hero h1 {
  margin: 18px 0 18px;
  max-width: 780px;
  font-size: clamp(3.2rem, 7.2vw, 7.2rem);
  line-height: .91;
  letter-spacing: -.065em;
}
.hero p {
  max-width: 660px;
  color: rgba(255,255,255,.86);
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  line-height: 1.7;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-badges {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-badges li {
  border: 1px solid rgba(255,255,255,.20);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.88);
  padding: 9px 12px;
  border-radius: 999px;
  font-weight: 750;
  font-size: .9rem;
}
.hero-dashboard {
  position: relative;
  padding: 24px;
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,.94);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.38);
  overflow: hidden;
}
.hero-dashboard::before {
  content: "";
  position: absolute;
  inset: -120px -100px auto auto;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: rgba(216, 163, 42, .20);
}
html[data-theme="dark"] .hero-dashboard { background: rgba(8,27,51,.94); color: #fff; }
.panel-header, .chart-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.panel-header { color: var(--muted); font-weight: 850; font-size: .93rem; }
.status-dot {
  color: var(--green-500);
  background: rgba(47,143,78,.10);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: .78rem;
}
.headline-metric span {
  display: block;
  margin-top: 20px;
  font-size: 4.4rem;
  font-weight: 1000;
  letter-spacing: -.06em;
  color: var(--navy-900);
}
html[data-theme="dark"] .headline-metric span { color: #fff; }
.headline-metric small, .metric-grid small { display: block; color: var(--muted); line-height: 1.25; }
.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 20px;
}
.metric-grid > div {
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.metric-grid.tight strong { font-size: 1.36rem; color: var(--navy-800); }
html[data-theme="dark"] .metric-grid.tight strong { color: var(--gold-400); }
.mini-chart-wrap { margin-top: 22px; padding: 8px; border-radius: var(--radius-md); background: linear-gradient(180deg, var(--surface-2), transparent); }

.section { padding: 92px 0; }
.section-heading { margin-bottom: 34px; }
.section-heading.center { max-width: 850px; margin: 0 auto 42px; text-align: center; }
.section-heading.center .eyebrow { justify-content: center; }
.section-heading.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, .65fr);
  gap: 50px;
  align-items: end;
}
.section-heading h2 {
  margin: 12px 0 0;
  font-size: clamp(2.0rem, 4vw, 4.1rem);
  line-height: .98;
  letter-spacing: -.055em;
  color: var(--navy-900);
}
html[data-theme="dark"] .section-heading h2 { color: #fff; }
.section-heading p { margin: 14px 0 0; color: var(--muted); line-height: 1.7; font-size: 1.05rem; }
.section-heading.light h2, .section-heading.light p { color: #fff; }
.section-heading.light p { color: rgba(255,255,255,.82); }

.story-section { position: relative; }
.story-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(135deg, transparent 45%, rgba(16,61,113,.05) 45.5%, transparent 46.2%),
    linear-gradient(45deg, transparent 58%, rgba(216,163,42,.05) 58.5%, transparent 59.1%);
}
.journey-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.journey-card {
  position: relative;
  min-height: 270px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border .25s ease;
}
.journey-card:hover, .journey-card:focus-within { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(216,163,42,.42); }
.journey-number {
  position: absolute;
  top: 16px;
  right: 18px;
  color: rgba(16,61,113,.18);
  font-size: 3.5rem;
  font-weight: 1000;
  letter-spacing: -.07em;
}
.journey-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(16,61,113,.10), rgba(216,163,42,.16));
  color: var(--navy-800);
  font-size: 1.8rem;
}
.journey-card h3 { margin: 28px 0 10px; color: var(--navy-900); font-size: 1.25rem; }
html[data-theme="dark"] .journey-card h3 { color: #fff; }
.journey-card p { margin: 0; color: var(--muted); line-height: 1.6; }

.atlas-section, .focus-section {
  background:
    radial-gradient(circle at 90% 10%, rgba(216,163,42,.28), transparent 27rem),
    linear-gradient(135deg, var(--navy-950), var(--navy-800));
  color: #fff;
}
.atlas-shell {
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,.94);
  color: var(--ink);
  border: 1px solid rgba(255,255,255,.42);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
html[data-theme="dark"] .atlas-shell { background: rgba(8,27,51,.93); color: #fff; }
.atlas-controls {
  display: flex;
  gap: 8px;
  padding: 14px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.atlas-tab {
  white-space: nowrap;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  padding: 10px 14px;
  font-weight: 850;
}
.atlas-tab.active { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.atlas-main {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 360px;
  gap: 0;
}
.atlas-chart-panel { padding: 28px; border-right: 1px solid var(--border); }
.chart-kicker {
  display: inline-block;
  color: var(--gold-600);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 950;
  font-size: .75rem;
}
.chart-title-row h3 { margin: 5px 0 0; font-size: clamp(1.35rem, 2.3vw, 2rem); color: var(--navy-900); }
html[data-theme="dark"] .chart-title-row h3 { color: #fff; }
.donut-zone {
  position: relative;
  width: min(520px, 100%);
  aspect-ratio: 1;
  margin: 18px auto 0;
}
.donut-svg { width: 100%; height: 100%; overflow: visible; }
.donut-segment { transition: opacity .18s ease, transform .18s ease; transform-origin: center; cursor: pointer; }
.donut-segment:hover, .donut-segment.active { transform: scale(1.025); opacity: .92; }
.donut-center {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 180px;
  height: 180px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: inset 0 0 0 8px var(--surface-2);
}
.donut-center span { display: block; font-size: 2.2rem; font-weight: 1000; color: var(--navy-900); letter-spacing: -.06em; }
html[data-theme="dark"] .donut-center span { color: #fff; }
.donut-center small { display: block; color: var(--muted); margin-top: -26px; max-width: 120px; }
.atlas-detail {
  padding: 28px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
}
.atlas-detail h3 { margin: 9px 0 8px; font-size: 1.65rem; color: var(--navy-900); }
html[data-theme="dark"] .atlas-detail h3 { color: #fff; }
.atlas-detail p { color: var(--muted); line-height: 1.7; }
.detail-metric {
  margin: 22px 0;
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
}
.detail-metric span { font-size: 2.8rem; font-weight: 1000; letter-spacing: -.06em; color: var(--gold-600); }
.detail-metric small { display: block; color: var(--muted); margin-top: 4px; }
.related-list { display: grid; gap: 9px; }
.related-pill {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 13px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: .92rem;
}
.related-pill strong { color: var(--ink); }
.bar-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  padding: 18px 24px 24px;
  border-top: 1px solid var(--border);
}
.legend-row {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  font-size: .9rem;
  color: var(--muted);
}
.legend-dot { width: 12px; height: 12px; border-radius: 999px; }
.legend-row strong { color: var(--ink); }

.service-layout {
  display: grid;
  grid-template-columns: 470px minmax(0, 1fr);
  gap: 38px;
  align-items: center;
}
.priority-wheel {
  position: relative;
  aspect-ratio: 1;
  border-radius: 999px;
  background:
    radial-gradient(circle, var(--surface) 0 31%, transparent 31.5%),
    conic-gradient(from -30deg, rgba(16,61,113,.08), rgba(216,163,42,.13), rgba(11,140,132,.11), rgba(16,61,113,.08));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.priority-wheel::before {
  content: "";
  position: absolute;
  inset: 70px;
  border-radius: 999px;
  border: 1px dashed rgba(16,61,113,.26);
}
.wheel-node {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 150px;
  min-height: 64px;
  transform: rotate(var(--angle)) translate(185px) rotate(calc(-1 * var(--angle))) translate(-50%, -50%);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--navy-900);
  font-weight: 900;
  box-shadow: var(--shadow-sm);
  padding: 10px 12px;
  text-align: center;
}
html[data-theme="dark"] .wheel-node { color: #fff; }
.wheel-node.active { background: linear-gradient(135deg, var(--gold-400), var(--gold-600)); color: var(--navy-950); border-color: transparent; transform: rotate(var(--angle)) translate(185px) rotate(calc(-1 * var(--angle))) translate(-50%, -50%) scale(1.06); }
.wheel-core {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 185px;
  height: 185px;
  border-radius: 999px;
  background: var(--surface);
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 26px;
}
.wheel-core img { width: 120px; }
.wheel-core strong { font-size: .9rem; color: var(--navy-900); }
html[data-theme="dark"] .wheel-core strong { color: #fff; }
.priority-panel {
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 30px;
}
.priority-panel h3 { margin: 9px 0 8px; font-size: 2.35rem; color: var(--navy-900); letter-spacing: -.04em; }
html[data-theme="dark"] .priority-panel h3 { color: #fff; }
.priority-panel p { color: var(--muted); line-height: 1.7; }
.priority-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0;
}
.priority-metrics div {
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.priority-metrics strong { display: block; color: var(--gold-600); font-size: 1.35rem; }
.priority-metrics small { color: var(--muted); }
.region-selector, .chip-row, .story-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.region-chip, .filter-chip, .story-filter {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  padding: 9px 12px;
  font-weight: 850;
}
.region-chip.active, .filter-chip.active, .story-filter.active {
  background: var(--navy-800);
  color: #fff;
  border-color: var(--navy-800);
}
.region-card {
  margin-top: 18px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(16,61,113,.08), rgba(216,163,42,.10));
  border: 1px solid var(--border);
}
.region-card h4 { margin: 0 0 6px; color: var(--navy-900); }
html[data-theme="dark"] .region-card h4 { color: #fff; }
.region-card ul { margin: 12px 0 0; padding-left: 18px; color: var(--muted); line-height: 1.65; }

.explorer-section { background: var(--surface-2); }
.explorer-shell {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.explorer-sidebar, .department-page {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}
.explorer-sidebar { padding: 18px; position: sticky; top: 104px; }
.search-label { display: block; font-weight: 900; color: var(--navy-900); margin-bottom: 8px; }
html[data-theme="dark"] .search-label { color: #fff; }
#deptSearch {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-2);
  color: var(--ink);
  padding: 0 14px;
  outline: none;
}
#deptSearch:focus { border-color: var(--gold-600); box-shadow: 0 0 0 4px rgba(216,163,42,.15); }
.chip-row { margin: 14px 0 16px; }
.department-list { display: grid; gap: 10px; max-height: 590px; overflow: auto; padding-right: 4px; }
.dept-list-btn {
  width: 100%;
  text-align: left;
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 16px;
  padding: 14px;
  color: var(--ink);
}
.dept-list-btn.active { background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); color: #fff; border-color: transparent; }
.dept-list-btn strong { display: block; font-size: .95rem; }
.dept-list-btn small { display: block; margin-top: 5px; color: var(--muted); }
.dept-list-btn.active small { color: rgba(255,255,255,.74); }
.department-page { overflow: hidden; }
.dept-hero {
  position: relative;
  min-height: 310px;
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 26px;
  padding: 30px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy-950), var(--navy-800));
}
.dept-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 92% 16%, rgba(216,163,42,.25), transparent 22rem);
  pointer-events: none;
}
.dept-hero > * { position: relative; z-index: 1; }
.dept-hero h3 { margin: 10px 0 10px; font-size: clamp(2rem, 4vw, 3.6rem); line-height: .98; letter-spacing: -.055em; }
.dept-hero p { max-width: 720px; color: rgba(255,255,255,.82); line-height: 1.65; }
.dept-hero img { border-radius: var(--radius-lg); height: 245px; width: 100%; object-fit: cover; box-shadow: var(--shadow-lg); }
.dept-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 18px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.dept-metrics div {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  background: var(--surface-2);
}
.dept-metrics strong { display: block; color: var(--navy-800); font-size: 1.35rem; }
html[data-theme="dark"] .dept-metrics strong { color: var(--gold-400); }
.dept-metrics small { display: block; margin-top: 3px; color: var(--muted); }
.dept-tabs {
  display: flex;
  gap: 8px;
  padding: 16px 18px 0;
  overflow-x: auto;
}
.dept-tab {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--surface-2);
  color: var(--muted);
  font-weight: 850;
  white-space: nowrap;
}
.dept-tab.active { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.dept-tab-content { padding: 22px; }
.dept-panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .6fr);
  gap: 22px;
}
.data-card, .budget-card, .services-card, .performance-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 20px;
}
.data-card h4, .budget-card h4, .services-card h4, .performance-card h4 { margin: 0 0 12px; color: var(--navy-900); }
html[data-theme="dark"] .data-card h4, html[data-theme="dark"] .budget-card h4, html[data-theme="dark"] .services-card h4, html[data-theme="dark"] .performance-card h4 { color: #fff; }
.data-card p, .budget-card p { color: var(--muted); line-height: 1.65; }
.service-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.service-list li { padding: 12px; border-radius: 13px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.history-bars { display: grid; gap: 13px; margin-top: 18px; }
.history-row { display: grid; grid-template-columns: 92px minmax(0,1fr) 86px; gap: 12px; align-items: center; color: var(--muted); font-weight: 800; }
.history-track { height: 20px; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
.history-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--navy-800), var(--gold-500)); width: var(--w); }
.budget-slider { margin-top: 18px; }
.budget-slider input { width: 100%; accent-color: var(--gold-600); }
.slider-output { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); margin-top: 6px; font-size: .9rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--border); }
th { color: var(--navy-900); font-weight: 950; }
html[data-theme="dark"] th { color: #fff; }
td { color: var(--muted); }
.focus-mini-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.focus-mini-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface-2);
}
.focus-mini-card img { width: 100%; height: 120px; object-fit: cover; }
.focus-mini-card div { padding: 13px; }
.focus-mini-card h4 { margin: 0 0 6px; font-size: 1rem; color: var(--navy-900); }
html[data-theme="dark"] .focus-mini-card h4 { color: #fff; }
.focus-mini-card p { margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.5; }
.story-open { margin-top: 12px; width: 100%; min-height: 36px; border: 0; border-radius: 999px; background: var(--navy-800); color: #fff; font-weight: 900; }
.progress-list { display: grid; gap: 14px; }
.progress-item label { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-weight: 850; margin-bottom: 6px; }
.progress-track { height: 14px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.progress-fill { height: 100%; width: var(--p); background: linear-gradient(90deg, var(--teal-500), var(--gold-500)); border-radius: 999px; }

.story-toolbar { margin-bottom: 24px; }
.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.focus-card {
  position: relative;
  min-height: 420px;
  border: 1px solid rgba(255,255,255,.20);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--navy-900);
  box-shadow: var(--shadow-md);
  color: #fff;
}
.focus-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .58;
  filter: saturate(1.08) contrast(1.05);
  transition: transform .45s ease;
}
.focus-card:hover img { transform: scale(1.06); }
.focus-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3,26,51,.10), rgba(3,26,51,.88) 62%, rgba(3,26,51,.96));
}
.focus-content {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  padding: 24px;
}
.story-tag {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(242,193,78,.95);
  color: var(--navy-950);
  font-weight: 950;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.focus-content h3 { margin: 14px 0 8px; font-size: 1.45rem; line-height: 1.05; }
.focus-content p { color: rgba(255,255,255,.82); line-height: 1.55; margin: 0; }
.focus-content button { margin-top: 18px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; background: rgba(255,255,255,.12); color: #fff; min-height: 40px; padding: 0 14px; font-weight: 900; }

.performance-section { background: var(--surface); }
.performance-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gauge-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 26px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.gauge {
  width: 160px;
  height: 160px;
  margin: 0 auto 16px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--gold-500) calc(var(--val) * 1%), var(--surface-3) 0);
  position: relative;
}
.gauge::before { content: ""; position: absolute; inset: 16px; border-radius: 999px; background: var(--surface); }
.gauge span { position: relative; z-index: 1; font-size: 2rem; font-weight: 1000; color: var(--navy-900); }
html[data-theme="dark"] .gauge span { color: #fff; }
.gauge-card h3 { color: var(--navy-900); margin: 0 0 8px; }
html[data-theme="dark"] .gauge-card h3 { color: #fff; }
.gauge-card p { color: var(--muted); line-height: 1.6; margin: 0; }

.implementation-section { background: var(--surface-2); }
.build-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.build-grid article, .download-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.build-step {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(216,163,42,.15);
  color: var(--gold-600);
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .75rem;
}
.build-grid h3 { color: var(--navy-900); margin: 16px 0 8px; }
html[data-theme="dark"] .build-grid h3 { color: #fff; }
.build-grid p { color: var(--muted); line-height: 1.65; }
.download-panel {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.download-panel h3 { color: var(--navy-900); margin: 8px 0; font-size: 1.8rem; }
html[data-theme="dark"] .download-panel h3 { color: #fff; }
.download-panel p { color: var(--muted); margin: 0; line-height: 1.6; }
.download-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.site-footer {
  padding: 42px 0;
  background: var(--navy-950);
  color: #fff;
}
.footer-grid {
  display: grid;
  grid-template-columns: 260px 1fr 220px;
  gap: 26px;
  align-items: center;
}
.footer-grid img { width: 160px; }
.footer-grid p, .footer-grid span { color: rgba(255,255,255,.72); line-height: 1.6; }
.footer-grid a { display: block; color: rgba(255,255,255,.82); text-decoration: none; margin: 6px 0; font-weight: 800; }
.footer-grid a:hover { color: var(--gold-400); }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 12, 24, .76);
  backdrop-filter: blur(14px);
}
.modal-backdrop[hidden] { display: none; }
.story-modal {
  position: relative;
  width: min(1050px, 100%);
  max-height: min(88vh, 840px);
  overflow: auto;
  display: grid;
  grid-template-columns: 42% 58%;
  border-radius: var(--radius-xl);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.modal-close {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(3,26,51,.88);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
}
.modal-media img { width: 100%; height: 100%; object-fit: cover; min-height: 640px; }
.modal-body { padding: 34px; }
.modal-body h2 { margin: 9px 0 10px; color: var(--navy-900); font-size: clamp(2rem, 4vw, 3.4rem); line-height: .98; letter-spacing: -.05em; }
html[data-theme="dark"] .modal-body h2 { color: #fff; }
.modal-body p { color: var(--muted); line-height: 1.7; }
.modal-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 22px; }
.modal-columns > div {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.modal-columns h3 { margin: 0 0 6px; color: var(--navy-900); }
html[data-theme="dark"] .modal-columns h3 { color: #fff; }
.story-steps { margin-top: 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.story-steps div { padding: 14px; border-radius: var(--radius-md); background: var(--surface-2); border: 1px solid var(--border); }
.story-steps strong { display: block; color: var(--gold-600); margin-bottom: 4px; }
.story-steps small { color: var(--muted); line-height: 1.4; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 1100px) {
  .nav-links {
    position: fixed;
    top: 121px;
    right: 14px;
    left: 14px;
    display: none;
    padding: 14px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
  }
  .nav-links.open { display: flex; }
  .menu-toggle { display: block; }
  .brand span { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-dashboard { max-width: 560px; }
  .img-two, .img-three { opacity: .28; width: 56vw; }
  .journey-grid { grid-template-columns: repeat(2, 1fr); }
  .service-layout { grid-template-columns: 1fr; }
  .priority-wheel { max-width: 500px; margin: 0 auto; }
  .atlas-main { grid-template-columns: 1fr; }
  .atlas-chart-panel { border-right: 0; border-bottom: 1px solid var(--border); }
  .explorer-shell { grid-template-columns: 1fr; }
  .explorer-sidebar { position: static; }
  .department-list { max-height: 420px; }
  .dept-hero { grid-template-columns: 1fr; }
  .dept-hero img { max-width: 420px; }
  .focus-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .container { width: min(100% - 24px, 1180px); }
  .prototype-banner { font-size: .76rem; text-align: left; }
  .nav-shell { min-height: 66px; }
  .brand img { width: 126px; }
  .nav-actions .ghost-btn { display: none; }
  .hero { min-height: auto; }
  .hero-grid { min-height: auto; padding: 70px 0 54px; gap: 28px; }
  .hero h1 { font-size: clamp(3rem, 14vw, 4.6rem); }
  .img-two, .img-three { display: none; }
  .metric-grid, .priority-metrics, .dept-metrics, .performance-grid, .build-grid, .footer-grid, .modal-columns, .story-steps { grid-template-columns: 1fr; }
  .section { padding: 68px 0; }
  .section-heading.split { grid-template-columns: 1fr; gap: 14px; }
  .journey-grid, .focus-grid { grid-template-columns: 1fr; }
  .priority-wheel { transform: scale(.72); margin: -65px auto; }
  .priority-panel { margin-top: 70px; }
  .wheel-node { width: 138px; transform: rotate(var(--angle)) translate(174px) rotate(calc(-1 * var(--angle))) translate(-50%, -50%); }
  .wheel-node.active { transform: rotate(var(--angle)) translate(174px) rotate(calc(-1 * var(--angle))) translate(-50%, -50%) scale(1.06); }
  .dept-panel-grid { grid-template-columns: 1fr; }
  .story-modal { grid-template-columns: 1fr; max-height: 92vh; }
  .modal-media img { min-height: 230px; max-height: 260px; }
  .modal-body { padding: 24px; }
  .download-panel { flex-direction: column; align-items: stretch; }
}

@media print {
  .site-header, .prototype-banner, .hero-media, .hero-scrim, .nav-actions, .menu-toggle, .story-toolbar, .modal-backdrop { display: none !important; }
  body { background: white; color: #111; }
  .hero { min-height: auto; background: white; color: #111; }
  .hero-grid { min-height: auto; display: block; padding: 20px 0; }
  .hero p, .section-heading.light h2, .section-heading.light p { color: #111; }
  .section { padding: 24px 0; break-inside: avoid; }
  .atlas-section, .focus-section { background: white; color: #111; }
  .atlas-shell, .department-page, .explorer-sidebar, .journey-card, .priority-panel, .build-grid article, .download-panel { box-shadow: none; }
  .focus-grid { grid-template-columns: repeat(2, 1fr); }
  a { text-decoration: none; }
}
.legend-row {
  border: 1px solid transparent;
  background: transparent;
  border-radius: 12px;
  padding: 8px;
  text-align: left;
}
.legend-row:hover, .legend-row:focus-visible {
  border-color: var(--border);
  background: var(--surface-2);
  outline: none;
}
.muted { color: var(--muted); line-height: 1.6; }
