:root {
  --paper: #f6f1e8;
  --ink: #151515;
  --muted: #5c615d;
  --line: #d9d0c2;
  --panel: #fffaf1;
  --panel-2: #ede4d6;
  --red: #b83a2f;
  --red-dark: #80251e;
  --green: #1f6f57;
  --blue: #235b7a;
  --amber: #c2791b;
  --coal: #242424;
  --shadow: 0 18px 42px rgba(31, 24, 15, 0.12);
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: var(--font-scale, 1rem);
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(21, 21, 21, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, var(--paper), #ece2d3 62%, #e4dbcd);
  background-size: 42px 42px, 100% 100%;
  line-height: 1.45;
}

body.dyslexia-mode {
  font-family: Verdana, Arial, ui-sans-serif, system-ui, sans-serif;
  line-height: 1.65;
  word-spacing: 0.08em;
}

body.high-contrast {
  --paper: #ffffff;
  --panel: #ffffff;
  --panel-2: #f2f2f2;
  --ink: #000000;
  --muted: #202020;
  --line: #000000;
  --red: #9f1d17;
  --red-dark: #6f120f;
  --green: #005f3c;
  --blue: #003f6b;
  --amber: #8a4a00;
  --coal: #000000;
}

a {
  color: inherit;
}

button,
textarea,
input {
  font: inherit;
}

.skip-link {
  position: absolute;
  top: -4rem;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--coal);
  color: var(--paper);
  border-radius: 8px;
}

.skip-link:focus {
  top: 1rem;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem max(1rem, calc((100vw - var(--max)) / 2));
  background: rgba(246, 241, 232, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 1.35rem;
  height: 1.35rem;
  display: inline-block;
  background:
    linear-gradient(90deg, transparent 42%, var(--paper) 42% 58%, transparent 58%),
    linear-gradient(180deg, transparent 42%, var(--paper) 42% 58%, transparent 58%),
    var(--red);
  border: 2px solid var(--ink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.nav-links a,
.region-actions a,
.source-card a {
  text-decoration: none;
}

.nav-links a {
  padding: 0.45rem 0.65rem;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
  outline: none;
}

.access-bar {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0.75rem auto 0;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem;
  background: rgba(255, 250, 241, 0.95);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.access-bar > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.access-bar button,
.access-bar select {
  min-height: 2.45rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.translation-box label {
  font-weight: 800;
}

main {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  padding: 1.25rem 0 2.5rem;
}

section[id] {
  scroll-margin-top: 7.5rem;
}

.console {
  min-height: calc(100vh - 5.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(21rem, 0.75fr);
  gap: 1rem;
  align-items: stretch;
  margin-bottom: 1rem;
}

.console-copy,
.triage-panel,
.infrastructure-band,
.section-block,
.region-band,
.hinge-detail {
  background: rgba(255, 250, 241, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.console-copy {
  display: flex;
  flex-direction: column;
  justify-content: end;
  min-height: 36rem;
  padding: 2rem;
  border-left: 8px solid var(--red);
}

.eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--red-dark);
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 11ch;
  font-size: 6.6rem;
  line-height: 0.86;
  letter-spacing: 0;
}

h2 {
  font-size: 2.35rem;
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  font-size: 1.02rem;
  line-height: 1.1;
}

.lede {
  max-width: 56rem;
  margin-top: 1.2rem;
  font-size: 1.18rem;
  color: var(--muted);
}

.doctrine {
  margin-top: 1.3rem;
  padding: 1rem;
  border: 1px solid #d5a197;
  border-left: 6px solid var(--red);
  background: #fff1ec;
  border-radius: 8px;
  max-width: 58rem;
}

.pulse-rail {
  margin-bottom: auto;
  padding: 0.85rem;
  border: 1px solid rgba(21, 21, 21, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(35, 91, 122, 0.13), transparent 52%),
    #fffdf8;
}

.pulse-label {
  display: block;
  margin-bottom: 0.65rem;
  font-size: 0.78rem;
  font-weight: 900;
  color: var(--red-dark);
  text-transform: uppercase;
}

.pulse-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.pulse-grid span {
  display: grid;
  gap: 0.45rem;
  min-height: 4.8rem;
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.pulse-grid b {
  font-size: 0.9rem;
}

.pulse-grid i {
  position: relative;
  display: block;
  height: 0.55rem;
  overflow: hidden;
  border-radius: 99px;
  background: #e8ded0;
}

.pulse-grid i::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 58%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--red));
  animation: pulseSweep 2.8s ease-in-out infinite;
}

.pulse-grid span:nth-child(2) i::after {
  width: 72%;
  animation-delay: 0.25s;
}

.pulse-grid span:nth-child(3) i::after {
  width: 86%;
  animation-delay: 0.5s;
}

.pulse-grid span:nth-child(4) i::after {
  width: 65%;
  animation-delay: 0.75s;
}

.triage-panel {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  min-height: 36rem;
}

.panel-head {
  padding: 0.25rem 0.25rem 0.8rem;
}

.segmented {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 0.8rem;
}

.segmented button,
.copy-button,
.hinge-button {
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.segmented button {
  padding: 0.7rem;
  text-align: left;
  min-height: 3.2rem;
}

.segmented button.active {
  background: var(--coal);
  color: var(--paper);
  border-color: var(--coal);
}

.stage-output {
  flex: 1;
  display: grid;
  align-content: start;
  gap: 0.8rem;
  padding: 1rem;
  background: #f4eadc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stage-output ul,
.path-card ul,
.law-card ul,
.template-card ul,
.hinge-detail ul {
  margin: 0;
  padding-left: 1.1rem;
}

.stage-output li,
.path-card li,
.law-card li,
.template-card li,
.hinge-detail li {
  margin: 0.35rem 0;
  color: var(--muted);
}

.stage-kicker {
  display: inline-block;
  width: fit-content;
  padding: 0.25rem 0.45rem;
  background: #dceee8;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  border-radius: 4px;
}

.stakes-cinema {
  min-height: 34rem;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.55fr);
  gap: 1rem;
  overflow: hidden;
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 8px;
  background: #111;
  color: #fff;
  box-shadow: var(--shadow);
}

.stakes-cinema::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.16) 58%, rgba(0, 0, 0, 0.78)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.72));
  pointer-events: none;
}

.stakes-cinema img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.08);
  transform: scale(1.03);
}

.stakes-copy,
.stakes-callouts {
  position: relative;
  z-index: 1;
}

.stakes-copy {
  align-self: end;
  display: grid;
  gap: 1rem;
  max-width: 48rem;
  padding: 1rem;
}

.stakes-copy .eyebrow {
  color: #ffb19d;
}

.stakes-copy h2 {
  max-width: 12ch;
  font-size: 3.4rem;
}

.stakes-copy p {
  max-width: 42rem;
  color: #f3eadf;
  font-size: 1.08rem;
}

.stakes-callouts {
  align-self: end;
  display: grid;
  gap: 0.75rem;
}

.stakes-callouts article {
  display: grid;
  gap: 0.45rem;
  padding: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-left: 6px solid #ffb000;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.54);
  backdrop-filter: blur(7px);
}

.stakes-callouts span {
  font-size: 0.8rem;
  font-weight: 900;
  color: #ffb000;
}

.stakes-callouts p {
  color: #eadfd1;
}

.image-credit {
  position: absolute;
  z-index: 1;
  right: 1rem;
  bottom: 0.7rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
}

.living-world {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 8px;
  color: #f7fff9;
  background:
    linear-gradient(135deg, rgba(31, 111, 87, 0.22), transparent 42%),
    linear-gradient(180deg, #0f2023, #102b2a 54%, #121715);
  box-shadow: var(--shadow);
}

.living-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.72fr);
  gap: 1rem;
  min-height: 32rem;
}

.nature-immersive {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: min(78vh, 47rem);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: #071010;
}

.nature-video-stack,
.nature-video,
.nature-shade {
  position: absolute;
  inset: 0;
}

.nature-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0;
  filter: saturate(1.08) contrast(1.05);
  transform: scale(1.035);
  transition: opacity 900ms ease, transform 3600ms ease;
}

.nature-video.active {
  opacity: 1;
  transform: scale(1);
}

.nature-shade {
  background:
    linear-gradient(90deg, rgba(3, 18, 17, 0.84), rgba(3, 18, 17, 0.42) 48%, rgba(3, 18, 17, 0.2)),
    linear-gradient(180deg, rgba(3, 18, 17, 0.22), rgba(3, 18, 17, 0.78));
  pointer-events: none;
}

.nature-copy {
  position: relative;
  z-index: 1;
  width: min(43rem, 100%);
  min-height: inherit;
  padding: clamp(1.25rem, 4vw, 3rem);
  align-content: end;
}

.nature-copy h2 {
  max-width: 10ch;
  font-size: clamp(3rem, 8vw, 6.7rem);
  line-height: 0.9;
}

.nature-copy p {
  max-width: 38rem;
  font-size: 1.08rem;
}

.scene-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.15rem;
}

.scene-controls button {
  min-height: 2.8rem;
  padding: 0.65rem 0.82rem;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #f7fff9;
  cursor: pointer;
  font-weight: 900;
}

.scene-controls button.active {
  color: #06221c;
  background: #9cf0c6;
  border-color: #9cf0c6;
}

.scene-controls button:focus-visible {
  outline: 3px solid rgba(156, 240, 198, 0.55);
  outline-offset: 2px;
}

.nature-caption {
  min-height: 3.4rem;
  padding: 0.72rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.42);
}

.nature-copy .life-pulse {
  width: min(31rem, 100%);
}

.river-frame,
.living-card {
  margin: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: #071010;
}

.river-frame video,
.living-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.river-frame::after,
.living-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.74));
  pointer-events: none;
}

.river-frame figcaption,
.living-card figcaption {
  position: absolute;
  z-index: 1;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  color: #fff;
  font-size: 0.88rem;
}

.river-frame figcaption {
  width: fit-content;
  max-width: calc(100% - 1.5rem);
  padding: 0.55rem 0.65rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.72);
}

.living-copy {
  display: grid;
  align-content: center;
  gap: 1rem;
  padding: 1rem;
}

.living-copy .eyebrow {
  color: #97f0cf;
}

.living-copy h2 {
  max-width: 13ch;
  font-size: 3rem;
}

.living-copy p,
.life-lens p,
.lens-output p,
.lens-output li {
  color: #d9eee5;
}

.life-pulse {
  display: grid;
  gap: 0.55rem;
}

.life-pulse span {
  display: grid;
  gap: 0.35rem;
}

.life-pulse b {
  font-size: 0.82rem;
  text-transform: uppercase;
}

.life-pulse i {
  position: relative;
  display: block;
  height: 0.62rem;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.14);
}

.life-pulse i::after {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--level);
  border-radius: inherit;
  background: linear-gradient(90deg, #90e7ff, #9cf0c6, #ffd166);
  animation: lifeBreath 4.8s ease-in-out infinite;
}

.living-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.living-card {
  min-height: 20rem;
}

.living-card figcaption {
  display: grid;
  gap: 0.35rem;
}

.living-card strong {
  font-size: 1rem;
}

.living-card span {
  color: #edf8f3;
}

.life-lens {
  display: grid;
  grid-template-columns: minmax(16rem, 0.32fr) minmax(15rem, 0.28fr) minmax(0, 1fr);
  gap: 0.8rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.life-lens .eyebrow {
  color: #ffd166;
}

.lens-buttons {
  display: grid;
  gap: 0.5rem;
  align-content: start;
}

.lens-buttons button {
  min-height: 3rem;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #f7fff9;
  cursor: pointer;
  text-align: left;
  font-weight: 800;
}

.lens-buttons button.active {
  color: #0f2023;
  background: #9cf0c6;
  border-color: #9cf0c6;
}

.lens-buttons button:focus-visible {
  outline: 3px solid rgba(156, 240, 198, 0.52);
  outline-offset: 2px;
}

.lens-output {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.24);
}

.lens-output ul {
  margin: 0;
  padding-left: 1.1rem;
}

.lens-output li {
  margin: 0.35rem 0;
}

.infrastructure-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.72fr);
  gap: 1rem;
  padding: 1rem;
  margin-bottom: 1rem;
  overflow: hidden;
}

.stack-visual {
  min-height: 20rem;
  position: relative;
  background:
    linear-gradient(90deg, rgba(35, 91, 122, 0.16) 1px, transparent 1px),
    linear-gradient(180deg, rgba(35, 91, 122, 0.16) 1px, transparent 1px),
    #eef4f0;
  background-size: 32px 32px;
  border: 1px solid #c7d7d0;
  border-radius: 8px;
}

.node {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 6.6rem;
  min-height: 2.6rem;
  padding: 0.4rem 0.7rem;
  background: var(--panel);
  border: 2px solid var(--ink);
  border-radius: 8px;
  font-weight: 800;
  box-shadow: 4px 4px 0 rgba(21, 21, 21, 0.12);
}

.node-a { top: 1.5rem; left: 1.2rem; border-color: var(--blue); }
.node-b { top: 2.8rem; right: 6%; border-color: var(--red); }
.node-c { top: 8.2rem; left: 24%; border-color: var(--amber); }
.node-d { bottom: 2rem; left: 8%; border-color: var(--green); }
.node-e { bottom: 3.2rem; right: 7%; border-color: var(--blue); }
.node-f { top: 12.1rem; right: 34%; border-color: var(--red-dark); }

.line {
  position: absolute;
  z-index: 1;
  height: 3px;
  background: var(--coal);
  transform-origin: left center;
}

.line-1 { top: 4.2rem; left: 8rem; width: 44%; transform: rotate(7deg); }
.line-2 { top: 8.1rem; left: 39%; width: 36%; transform: rotate(-23deg); }
.line-3 { top: 11.1rem; left: 30%; width: 26%; transform: rotate(26deg); }
.line-4 { bottom: 5rem; left: 20%; width: 42%; transform: rotate(-5deg); }
.line-5 { bottom: 7.3rem; right: 18%; width: 24%; transform: rotate(-42deg); }

.stack-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem;
}

.stack-copy p,
.section-heading p,
.template-card p,
.path-card p,
.law-card p,
.source-card p,
.region-band p,
.hinge-detail p {
  color: var(--muted);
}

.section-block,
.split-section {
  margin-bottom: 1rem;
}

.section-block {
  padding: 1rem;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(18rem, 0.38fr) minmax(0, 1fr);
  gap: 1rem;
}

.split-section > .section-heading {
  padding: 1rem;
  background: var(--coal);
  color: var(--paper);
  border-radius: 8px;
}

.split-section > .section-heading p {
  color: #d7d0c5;
}

.section-heading {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.section-heading h2 {
  max-width: 14ch;
}

.section-heading p {
  max-width: 66ch;
}

.path-grid,
.template-grid,
.law-grid,
.source-grid {
  display: grid;
  gap: 0.75rem;
}

.path-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.template-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.law-grid,
.source-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.path-card,
.template-card,
.law-card,
.source-card {
  display: grid;
  gap: 0.7rem;
  padding: 0.95rem;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.path-card {
  border-top: 5px solid var(--blue);
}

.path-card:nth-child(2n) {
  border-top-color: var(--red);
}

.path-card:nth-child(3n) {
  border-top-color: var(--green);
}

.step-number,
.law-tag,
.source-tag {
  width: fit-content;
  padding: 0.25rem 0.45rem;
  background: var(--coal);
  color: var(--paper);
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 800;
}

.hinge-layout {
  display: grid;
  grid-template-columns: minmax(14rem, 0.34fr) minmax(0, 1fr);
  gap: 0.75rem;
}

.hinge-list {
  display: grid;
  gap: 0.5rem;
}

.hinge-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  width: 100%;
  padding: 0.85rem;
  text-align: left;
  background: var(--panel);
}

.hinge-button.active {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.hinge-detail {
  min-height: 25rem;
  padding: 1rem;
  display: grid;
  gap: 0.9rem;
  align-content: start;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.detail-box {
  padding: 0.8rem;
  background: #f5eee4;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.template-card pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 15rem;
  overflow: auto;
  padding: 0.85rem;
  background: #1e1e1e;
  color: #f7f1e7;
  border-radius: 8px;
  font-size: 0.86rem;
  line-height: 1.45;
}

.copy-button {
  width: fit-content;
  padding: 0.55rem 0.75rem;
  background: var(--coal);
  color: var(--paper);
}

.copy-button:focus-visible,
.segmented button:focus-visible,
.hinge-button:focus-visible {
  outline: 3px solid rgba(35, 91, 122, 0.38);
  outline-offset: 2px;
}

.tracker-section {
  background: var(--coal);
  color: var(--paper);
}

.tracker-section .section-heading p {
  color: #d8d2c6;
}

.tracker-wrap {
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #171717;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  vertical-align: top;
}

th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0;
  color: #f2d0c7;
}

td {
  color: #eee6da;
}

.state-finder {
  border-top: 6px solid var(--blue);
}

.state-shell {
  display: grid;
  grid-template-columns: minmax(16rem, 0.28fr) minmax(0, 1fr);
  gap: 0.85rem;
}

.state-picker,
.state-output {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.state-picker {
  display: grid;
  align-content: start;
  gap: 0.65rem;
  font-weight: 800;
}

.state-picker select {
  min-height: 3rem;
  padding: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
}

.state-output {
  display: grid;
  gap: 0.8rem;
}

.state-output p,
.state-output li {
  color: var(--muted);
}

.state-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.state-link-grid a {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--blue);
  background: #fff;
  font-weight: 800;
  text-decoration: none;
}

.region-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.38fr);
  gap: 1rem;
  padding: 1rem;
  margin-bottom: 1rem;
  border-left: 8px solid var(--green);
}

.region-actions {
  display: grid;
  gap: 0.55rem;
  align-content: center;
}

.region-actions a,
.source-card a {
  display: inline-flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--blue);
  font-weight: 800;
}

.source-card {
  align-content: start;
}

.source-card a {
  margin-top: 0.2rem;
  word-break: break-word;
  font-size: 0.88rem;
}

.media-story {
  display: grid;
  grid-template-columns: minmax(18rem, 0.34fr) minmax(0, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.media-lead {
  padding: 1rem;
  background: var(--coal);
  color: var(--paper);
  border-radius: 8px;
  display: grid;
  align-content: end;
  gap: 0.65rem;
}

.media-lead p {
  color: #e4dccc;
}

.media-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 0.55fr);
  gap: 0.75rem;
}

.media-card {
  min-height: 14rem;
  margin: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111;
  box-shadow: var(--shadow);
}

.media-card-large {
  grid-row: span 2;
  min-height: 30rem;
}

.media-card img,
.media-card video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.media-card figcaption {
  position: absolute;
  left: 0.65rem;
  right: 0.65rem;
  bottom: 0.65rem;
  padding: 0.65rem;
  background: rgba(0, 0, 0, 0.76);
  color: #fff;
  border-radius: 6px;
  font-size: 0.88rem;
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.chart-card {
  display: grid;
  gap: 0.8rem;
  padding: 0.95rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.chart-head {
  display: grid;
  gap: 0.45rem;
}

.chart-head p {
  color: var(--muted);
}

.chart-card canvas {
  width: 100%;
  min-height: 14rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #faf6ee;
}

.impact-lab,
.field-sprint {
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.impact-lab {
  border: 1px solid #213844;
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 176, 0, 0.18), transparent 28%),
    linear-gradient(135deg, #102631, #111 64%);
  color: #fff;
}

.impact-lab .section-heading p {
  color: #d9e3df;
}

.impact-lab .eyebrow {
  color: #ffbf47;
}

.lab-shell {
  display: grid;
  grid-template-columns: minmax(17rem, 0.38fr) minmax(0, 1fr);
  gap: 0.85rem;
}

.lab-controls,
.lab-results {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.lab-controls {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.lab-controls label {
  display: grid;
  gap: 0.55rem;
  font-weight: 800;
}

.lab-controls output {
  color: #ffbf47;
}

.lab-controls input[type="range"] {
  width: 100%;
  accent-color: #ffbf47;
}

.lab-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 1rem;
}

.lab-results article {
  display: grid;
  align-content: end;
  min-height: 14rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.13)),
    rgba(0, 0, 0, 0.22);
}

.lab-results span {
  font-size: 3rem;
  line-height: 0.95;
  font-weight: 900;
  color: #ffbf47;
}

.lab-results p {
  margin-top: 0.65rem;
  color: #e9f1ee;
}

.national-map-block {
  overflow: hidden;
}

.map-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.35fr);
  gap: 0.75rem;
}

#usaMap {
  min-height: 32rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #e8efe8;
}

.map-panel {
  display: grid;
  align-content: start;
  gap: 0.7rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.map-panel p,
.map-panel li {
  color: var(--muted);
}

.leaflet-container {
  font: inherit;
}

.leaflet-popup-content {
  min-width: 14rem;
}

.leaflet-popup-content strong {
  display: block;
  margin-bottom: 0.25rem;
}

.site-footer {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto 2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.field-sprint {
  display: grid;
  grid-template-columns: minmax(17rem, 0.34fr) minmax(0, 1fr);
  gap: 1rem;
  border: 1px solid var(--line);
  background: #fffdf8;
}

.field-sprint > div:first-child {
  display: grid;
  align-content: center;
  gap: 0.65rem;
  padding: 1rem;
  color: var(--paper);
  background: var(--coal);
  border-radius: 8px;
}

.field-sprint > div:first-child p {
  color: #e7ded0;
}

.sprint-board {
  display: grid;
  gap: 0.65rem;
  padding: 1rem;
}

.sprint-meter {
  height: 0.9rem;
  overflow: hidden;
  border-radius: 99px;
  background: #e5dbce;
}

.sprint-meter span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--amber), var(--red));
  transition: width 240ms ease;
}

.sprint-board label {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.sprint-board input {
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.1rem;
  accent-color: var(--green);
}

.reveal {
  opacity: 0;
  transform: translateY(1.1rem);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulseSweep {
  0%, 100% { transform: translateX(-18%); opacity: 0.72; }
  50% { transform: translateX(48%); opacity: 1; }
}

@keyframes lifeBreath {
  0%, 100% { filter: saturate(0.82); transform: scaleX(0.96); transform-origin: left center; }
  50% { filter: saturate(1.15); transform: scaleX(1); transform-origin: left center; }
}

@media (max-width: 960px) {
  .console,
  .infrastructure-band,
  .split-section,
  .hinge-layout,
  .region-band,
  .media-story,
  .media-grid,
  .living-hero,
  .life-lens,
  .map-shell,
  .stakes-cinema,
  .lab-shell,
  .field-sprint {
    grid-template-columns: 1fr;
  }

  .console-copy,
  .triage-panel {
    min-height: auto;
  }

  .path-grid,
  .law-grid,
  .source-grid,
  .template-grid,
  .living-grid,
  .detail-grid,
  .chart-grid,
  .lab-results,
  .state-shell,
  .state-link-grid {
    grid-template-columns: 1fr;
  }

  .media-card-large {
    min-height: 22rem;
  }

  .stakes-copy h2 {
    font-size: 2.6rem;
  }

  .living-copy h2 {
    font-size: 2.45rem;
  }

  .nature-copy h2 {
    font-size: clamp(3rem, 13vw, 5.2rem);
  }
}

@media (max-width: 640px) {
  section[id] {
    scroll-margin-top: 19rem;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
  }

  .access-bar {
    width: min(calc(100% - 0.85rem), var(--max));
    align-items: stretch;
    flex-direction: column;
  }

  .nav-links a {
    flex: 1;
    text-align: center;
  }

  main {
    width: min(calc(100% - 0.85rem), var(--max));
    padding-top: 0.65rem;
  }

  h1 {
    font-size: 3.6rem;
  }

  h2 {
    font-size: 1.9rem;
  }

  .segmented {
    grid-template-columns: 1fr;
  }

  .pulse-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stakes-cinema {
    min-height: 44rem;
  }

  .living-hero {
    min-height: auto;
  }

  .nature-immersive {
    min-height: 43rem;
  }

  .nature-copy {
    padding: 1.4rem;
  }

  .scene-controls button {
    flex: 1 1 calc(50% - 0.5rem);
  }

  .river-frame,
  .living-card {
    min-height: 20rem;
  }

  .lab-results span {
    font-size: 2.4rem;
  }

  .stack-visual {
    min-height: 26rem;
  }

  #usaMap {
    min-height: 25rem;
  }

  .node {
    min-width: 5.8rem;
    font-size: 0.85rem;
  }

  .node-b { top: 5.5rem; right: 1rem; }
  .node-c { top: 11rem; left: 1.1rem; }
  .node-f { top: 15rem; right: 1.4rem; }
  .node-d { bottom: 4rem; left: 1rem; }
  .node-e { bottom: 1rem; right: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
