:root {
  --navy-950: #031020;
  --navy-900: #071727;
  --navy-800: #0d2340;
  --blue-700: #1b2a4e;
  --teal-500: #20b8bc;
  --teal-300: #7ce7e4;
  --teal-700: #0f777b;
  --amber-500: #efa21b;
  --amber-700: #a86808;
  --paper: #f4efe4;
  --paper-2: #fbf8f1;
  --teal-field: #a4bab8;
  --teal-field-line: #7f9c99;
  --white: #ffffff;
  --ink: #1b2431;
  --muted: #576273;
  --line: #dcd5c8;
  --shadow: 0 18px 50px rgba(8, 20, 36, 0.08);
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Newsreader", Georgia, serif;
  font-size: 19px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; }
a { color: var(--teal-700); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
h1, h2, h3, h4 {
  color: var(--blue-700);
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  line-height: 1.03;
  margin: 0;
}
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--amber-500); outline-offset: 3px; }

.wrap { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }
.wrap-narrow { width: min(calc(100% - 48px), 820px); margin-inline: auto; }
.mono, .eyebrow, .btn, .site-nav a, .mobile-nav summary, .status-pill,
.meta-line, .tag, .step-number, .record-label, .flow-label {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}
.eyebrow {
  color: var(--teal-700);
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}
.skip-link {
  background: var(--amber-500);
  color: var(--navy-950);
  left: 16px;
  padding: 10px 14px;
  position: fixed;
  top: -80px;
  z-index: 100;
}
.skip-link:focus { top: 16px; }

.site-header {
  background: rgba(3, 16, 32, 0.97);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  position: relative;
  z-index: 20;
}
.header-inner {
  align-items: center;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  min-height: 76px;
}
.brand { align-items: center; display: inline-flex; flex: 0 0 auto; }
.brand img { display: block; height: 34px; width: auto; }
.site-nav { align-items: center; display: flex; gap: clamp(14px, 1.8vw, 26px); }
.site-nav a {
  color: #dbe5f0;
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--teal-300); text-decoration: none; }
.site-nav .nav-cta { border: 1px solid rgba(124, 231, 228, 0.66); padding: 11px 14px; }
.mobile-nav { display: none; position: relative; }
.mobile-nav summary {
  border: 1px solid rgba(124, 231, 228, 0.55);
  color: #fff;
  cursor: pointer;
  font-size: 11px;
  letter-spacing: 0.1em;
  list-style: none;
  padding: 10px 12px;
  text-transform: uppercase;
}
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav-links {
  background: var(--navy-900);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  min-width: 220px;
  padding: 10px;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
}
.mobile-nav-links a {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #e7eef6;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 11px 8px;
  text-transform: uppercase;
}

.btn {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  display: inline-flex;
  font-size: 11px;
  font-weight: 500;
  justify-content: center;
  letter-spacing: 0.08em;
  line-height: 1.1;
  min-height: 46px;
  padding: 13px 18px;
  text-transform: uppercase;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--teal-500); color: var(--navy-950); box-shadow: 0 12px 30px rgba(32, 184, 188, 0.2); }
.btn-primary:hover { box-shadow: 0 16px 38px rgba(32, 184, 188, 0.3); }
.btn-secondary { border-color: rgba(255, 255, 255, 0.38); color: #fff; }
.btn-secondary:hover { border-color: var(--amber-500); }
.btn-outline { background: rgba(255, 255, 255, 0.55); border-color: #cfc7b8; color: var(--blue-700); }
.btn-outline:hover { border-color: var(--teal-700); }
.btn-amber { background: var(--amber-500); color: var(--navy-950); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }

.home-hero, .doc-hero {
  background:
    linear-gradient(rgba(122, 172, 205, 0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 172, 205, 0.065) 1px, transparent 1px),
    radial-gradient(120% 130% at 78% 0%, #153966 0%, #09203a 45%, var(--navy-950) 100%);
  background-size: 48px 48px, 48px 48px, auto;
  color: #eef4f8;
  overflow: hidden;
  position: relative;
}
.home-hero::after, .doc-hero::after {
  background: linear-gradient(110deg, transparent 0 66%, rgba(32, 184, 188, 0.05) 66% 67%, transparent 67% 100%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}
.home-hero-grid {
  align-items: center;
  display: grid;
  gap: clamp(40px, 6vw, 82px);
  grid-template-columns: minmax(0, 0.96fr) minmax(440px, 1.04fr);
  min-height: 680px;
  padding: 76px 0 84px;
  position: relative;
  z-index: 1;
}
.home-hero .eyebrow, .doc-hero .eyebrow { color: var(--teal-300); }
.hero-title {
  color: #fff9ed;
  font-size: clamp(56px, 6.4vw, 94px);
  letter-spacing: -0.015em;
  max-width: 10ch;
}
.hero-lede { color: #dce8f1; font-size: clamp(21px, 2vw, 27px); line-height: 1.38; margin: 24px 0 16px; max-width: 42ch; }
.hero-body { color: #bac9d8; font-size: 17px; line-height: 1.55; margin-bottom: 28px; max-width: 56ch; }
.hero-note { color: #aabaca; font-size: 13px; margin-top: 22px; }

.control-panel {
  background: rgba(4, 19, 35, 0.7);
  border: 1px solid rgba(201, 224, 237, 0.27);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.34);
  min-height: 510px;
  padding: 26px;
  position: relative;
}
.control-panel::before { border: 1px solid rgba(255, 255, 255, 0.08); content: ""; inset: 12px; pointer-events: none; position: absolute; }
.panel-topline { align-items: center; display: flex; justify-content: space-between; position: relative; z-index: 1; }
.panel-topline .status-pill { color: var(--teal-300); }
.status-pill {
  border: 1px solid currentColor;
  display: inline-flex;
  font-size: 9px;
  letter-spacing: 0.11em;
  padding: 5px 7px;
  text-transform: uppercase;
}
.performer-strip { display: grid; gap: 8px; grid-template-columns: repeat(3, 1fr); margin-top: 44px; position: relative; z-index: 1; }
.performer-chip { border: 1px solid rgba(255, 255, 255, 0.18); min-height: 98px; padding: 14px; }
.performer-chip:nth-child(1) { border-top: 3px solid var(--teal-500); }
.performer-chip:nth-child(2) { border-top: 3px solid var(--amber-500); }
.performer-chip:nth-child(3) { border-top: 3px solid #8fa8cf; }
.performer-chip strong { color: #fff; display: block; font-family: "Instrument Serif", serif; font-size: 23px; font-weight: 400; }
.performer-chip span { color: #aebdca; display: block; font-size: 12px; line-height: 1.35; margin-top: 5px; }
.flow-diagram { align-items: center; display: grid; gap: 10px; grid-template-columns: 1fr 30px 1.15fr 30px 1fr; margin: 58px 4px 0; position: relative; z-index: 1; }
.flow-node { border: 1px solid rgba(255, 255, 255, 0.22); color: #dbe7ef; min-height: 98px; padding: 15px 12px; text-align: center; }
.flow-node strong { color: #fff; display: block; font-family: "Instrument Serif", serif; font-size: 23px; font-weight: 400; }
.flow-node span { color: #9cabb9; display: block; font-size: 11px; line-height: 1.35; margin-top: 5px; }
.flow-arrow { color: var(--amber-500); font-family: "IBM Plex Mono", monospace; text-align: center; }
.gate-node { border-color: var(--teal-500); box-shadow: 0 0 0 3px rgba(32, 184, 188, 0.08); }
.gate-node .flow-label { color: var(--teal-300); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; }
.reality-bar { border-top: 2px solid rgba(255, 255, 255, 0.58); color: #eaf0f4; margin: 52px 12px 0; padding-top: 13px; position: relative; text-align: center; z-index: 1; }
.reality-bar::before { background: repeating-linear-gradient(120deg, rgba(255, 255, 255, 0.24) 0 1px, transparent 1px 8px); content: ""; height: 9px; left: 0; position: absolute; right: 0; top: -11px; }
.reality-bar strong { font-family: "Instrument Serif", serif; font-size: 23px; font-weight: 400; }
.reality-bar span { color: #9caebd; display: block; font-size: 11px; }

.record-strip { background: var(--navy-900); border-top: 1px solid rgba(255, 255, 255, 0.09); color: #dbe5ee; }
.record-strip-inner { align-items: center; display: grid; gap: 16px; grid-template-columns: 1.3fr 1fr 1fr; min-height: 88px; }
.record-item { border-left: 1px solid rgba(255, 255, 255, 0.16); padding-left: 18px; }
.record-item:first-child { border-left: 0; padding-left: 0; }
.record-label { color: var(--teal-300); display: block; font-size: 9px; letter-spacing: 0.13em; text-transform: uppercase; }
.record-item strong { color: #fff; display: block; font-size: 16px; font-weight: 500; margin-top: 2px; }
.record-item span { color: #a7b7c5; display: block; font-size: 12px; }

.site-section { padding: 88px 0; }
.site-section.compact { padding: 62px 0; }
.section-alt { background: var(--teal-field); border-block: 1px solid var(--teal-field-line); }
.section-alt .section-head h2 { color: var(--navy-950); }
.section-alt .section-head p { color: #172c3c; font-weight: 500; }
.section-alt > .wrap > .section-head .eyebrow,
.section-alt .hazard-toggle { color: #063f49; }
.section-dark { background: var(--navy-900); color: #d8e3ec; }
.section-dark h2, .section-dark h3 { color: #fff9ed; }
.section-head { margin-bottom: 34px; max-width: 880px; }
.section-head h2 { font-size: clamp(42px, 5.4vw, 68px); margin: 10px 0 15px; }
.section-head p { color: var(--muted); font-size: 19px; max-width: 68ch; }
.section-dark .section-head p { color: #b9c7d3; }
.split { align-items: start; display: grid; gap: clamp(36px, 6vw, 78px); grid-template-columns: 0.85fr 1.15fr; }
.big-claim { font-size: clamp(38px, 4.4vw, 58px); max-width: 13ch; }
.prose { max-width: 68ch; }
.prose p:last-child { margin-bottom: 0; }
.turn-line { border-left: 3px solid var(--amber-500); color: var(--blue-700); font-family: "Instrument Serif", serif; font-size: 30px; line-height: 1.2; margin: 28px 0; padding: 8px 0 8px 24px; }

.card-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.card-grid.five { grid-template-columns: repeat(5, 1fr); }
.card-group-label {
  align-items: baseline;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 24px;
  grid-template-columns: 220px 1fr;
  margin: 52px 0 22px;
  padding-top: 22px;
}
.card-group-label h3 {
  color: var(--navy-950);
  font-size: clamp(31px, 3.3vw, 46px);
  max-width: 22ch;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--teal-500);
  box-shadow: var(--shadow);
  min-width: 0;
  padding: 26px;
}
.card:nth-child(2n) { border-top-color: var(--amber-500); }
.card:nth-child(3n) { border-top-color: var(--blue-700); }
.card h3 { font-size: 31px; margin: 8px 0 10px; }
.card p { color: #3e4957; font-size: 16px; line-height: 1.5; }
.card .tag { color: var(--teal-700); }
.card .button-row { margin-top: 20px; }
.tag { color: var(--muted); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; }

.performer-card { min-height: 290px; }
.performer-card .performer-verb { color: var(--teal-700); font-family: "Instrument Serif", serif; font-size: 25px; font-style: italic; }
.performer-card ul { color: var(--muted); font-size: 15px; margin: 18px 0 0; padding-left: 19px; }
.performer-card li { margin-bottom: 7px; }

.hazard-list {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-auto-flow: dense;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.hazard-list details {
  background: var(--white);
  border: 1px solid rgba(3, 16, 32, 0.18);
  border-top: 4px solid var(--teal-700);
  box-shadow: 0 12px 30px rgba(3, 16, 32, 0.09);
  min-height: 244px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.hazard-list details:nth-child(2),
.hazard-list details:nth-child(5) { border-top-color: var(--amber-500); }
.hazard-list details:nth-child(3) { border-top-color: var(--blue-700); }
.hazard-list details:hover {
  box-shadow: 0 20px 42px rgba(3, 16, 32, 0.16);
  transform: translateY(-4px);
}
.hazard-list details:focus-within { border-color: var(--navy-800); }
.hazard-list details[open] {
  border-color: var(--teal-700);
  box-shadow: 0 22px 50px rgba(3, 16, 32, 0.18);
  grid-column: span 2;
}
.hazard-list summary {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  min-height: 240px;
  list-style: none;
  padding: 24px 64px 24px 24px;
  position: relative;
}
.hazard-list summary::-webkit-details-marker { display: none; }
.hazard-number {
  color: var(--amber-700);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.13em;
}
.hazard-list summary strong {
  color: var(--navy-950);
  font-family: "Instrument Serif", serif;
  font-size: clamp(29px, 2.6vw, 39px);
  font-weight: 400;
  line-height: 1.04;
  margin-top: 30px;
  max-width: 15ch;
}
.hazard-toggle {
  align-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  bottom: 20px;
  display: flex;
  font-family: "IBM Plex Mono", monospace;
  font-size: 18px;
  height: 36px;
  justify-content: center;
  position: absolute;
  right: 20px;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  width: 36px;
}
.hazard-list details[open] summary { min-height: 170px; }
.hazard-list details[open] .hazard-toggle { background: var(--navy-900); color: var(--white); transform: rotate(45deg); }
.hazard-copy {
  animation: hazard-reveal 0.24s ease-out;
  background: #f5f8f7;
  border-top: 1px solid rgba(3, 16, 32, 0.12);
  color: #243844;
  font-size: 17px;
  line-height: 1.52;
  margin: 0;
  max-width: none;
  padding: 22px 24px 26px;
}
@keyframes hazard-reveal {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.mechanism { align-items: stretch; display: grid; grid-template-columns: repeat(5, 1fr); }
.mechanism-step { border: 1px solid rgba(255, 255, 255, 0.16); min-height: 188px; padding: 22px; position: relative; }
.mechanism-step + .mechanism-step { border-left: 0; }
.mechanism-step::after { color: var(--amber-500); content: "→"; font-family: "IBM Plex Mono", monospace; position: absolute; right: -9px; top: 22px; z-index: 2; }
.mechanism-step:last-child::after { display: none; }
.mechanism-step .step-number { color: var(--teal-300); font-size: 10px; letter-spacing: 0.12em; }
.mechanism-step h3 { font-size: 27px; margin: 18px 0 8px; }
.mechanism-step p { color: #aebdca; font-size: 14px; line-height: 1.45; }

#method { background: linear-gradient(180deg, var(--paper) 0%, #eee5d6 100%); }
.method-grid { display: grid; gap: 14px; grid-template-columns: repeat(5, 1fr); margin-top: 34px; }
.method-phase {
  --phase: var(--teal-700);
  --phase-bg: #d9eeeb;
  background: linear-gradient(180deg, var(--phase-bg) 0 94px, var(--white) 94px 100%);
  border: 1px solid rgba(3, 16, 32, 0.14);
  border-top: 5px solid var(--phase);
  box-shadow: 0 14px 32px rgba(3, 16, 32, 0.08);
  min-height: 268px;
  padding: 22px;
  position: relative;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.method-phase:nth-child(2) { --phase: #31598b; --phase-bg: #e1eaf4; }
.method-phase:nth-child(3) { --phase: var(--amber-700); --phase-bg: #f6e5bd; }
.method-phase:nth-child(4) { --phase: var(--navy-800); --phase-bg: #dbe2ea; }
.method-phase:nth-child(5) { --phase: #2d6f69; --phase-bg: #d8e9e6; }
.method-phase:hover { box-shadow: 0 22px 46px rgba(3, 16, 32, 0.14); transform: translateY(-4px); }
.method-phase:not(:last-child)::after {
  align-items: center;
  background: var(--paper);
  border: 1px solid rgba(3, 16, 32, 0.15);
  border-radius: 50%;
  color: var(--phase);
  content: "→";
  display: flex;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  height: 28px;
  justify-content: center;
  position: absolute;
  right: -22px;
  top: 30px;
  width: 28px;
  z-index: 2;
}
.method-phase .step-number {
  align-items: center;
  color: var(--phase);
  display: flex;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 58px;
  height: 54px;
  line-height: 1;
}
.method-phase h3 { color: var(--navy-950); font-size: 32px; margin: 34px 0 10px; }
.method-phase p { color: #354451; font-size: 15px; line-height: 1.45; }

.cta-panel {
  align-items: center;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
  color: #dbe5ee;
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr auto;
  padding: 44px;
}
.cta-panel h2 { color: #fff9ed; font-size: clamp(38px, 5vw, 62px); }
.cta-panel p { color: #b9c7d3; margin: 12px 0 0; max-width: 60ch; }

.doc-hero { padding: 62px 0 58px; }
.doc-hero > .wrap { position: relative; z-index: 1; }
.doc-hero h1 { color: #fff9ed; font-size: clamp(48px, 6vw, 78px); margin: 12px 0 16px; max-width: 16ch; }
.doc-hero .lede { color: #cfdae5; font-size: 22px; max-width: 62ch; }
.meta-line { color: #9eb0c0; font-size: 10px; letter-spacing: 0.1em; margin-top: 20px; text-transform: uppercase; }
.doc-layout { align-items: start; display: grid; gap: 54px; grid-template-columns: minmax(0, 780px) 320px; padding: 58px 0 84px; }
.article {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 38px 42px;
}
.article h2 { font-size: 38px; margin: 38px 0 13px; }
.article h2:first-child { margin-top: 0; }
.article h3 { font-size: 27px; margin: 26px 0 10px; }
.article p, .article li { max-width: 68ch; }
.article ul, .article ol { padding-left: 24px; }
.article li { margin-bottom: 9px; }
.article blockquote { background: var(--paper-2); border-left: 3px solid var(--amber-500); color: var(--blue-700); font-family: "Instrument Serif", serif; font-size: 27px; line-height: 1.3; margin: 24px 0; padding: 24px 28px; }
.article .related { border-top: 1px solid var(--line); margin-top: 38px; padding-top: 8px; }
.side { position: sticky; top: 24px; }
.side-card { background: var(--paper-2); border: 1px solid var(--line); margin-bottom: 18px; padding: 22px; }
.side-card.highlight { background: #fff9ec; border-color: #e6d0a1; }
.side-card h3 { font-size: 25px; margin-bottom: 10px; }
.side-card p { color: var(--muted); font-size: 15px; line-height: 1.5; }
.doi { color: var(--muted); font-family: "IBM Plex Mono", monospace; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-list .tag { background: var(--white); border: 1px solid var(--line); color: var(--teal-700); padding: 5px 7px; }
.provenance-note { background: #eef7f5; border-left: 3px solid var(--teal-500); color: #315456; font-size: 15px; margin: 24px 0; padding: 16px 18px; }
.version-row { border-bottom: 1px solid var(--line); display: grid; gap: 8px; grid-template-columns: 1fr auto; padding: 12px 0; }
.version-row .mono { color: var(--muted); font-size: 10px; }

.resource-group { padding: 54px 0; }
.resource-group + .resource-group { border-top: 1px solid var(--line); }
.resource-group-head { display: grid; gap: 24px; grid-template-columns: 240px 1fr; margin-bottom: 28px; }
.resource-group-head h2 { font-size: 45px; }
.resource-group-head p { color: var(--muted); margin: 0; max-width: 62ch; }
.resource-list { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.resource-card { background: var(--white); border: 1px solid var(--line); box-shadow: 0 12px 34px rgba(8, 20, 36, 0.05); padding: 24px; }
.resource-card h3 { font-size: 31px; margin: 8px 0 10px; }
.resource-card p { color: var(--muted); font-size: 15.5px; line-height: 1.48; }
.resource-card .button-row { margin-top: 18px; }
.resource-status { align-items: center; display: flex; gap: 9px; }
.resource-status::before { background: var(--teal-500); border-radius: 50%; content: ""; height: 7px; width: 7px; }
.resource-status.working::before { background: var(--amber-500); }
.resource-status.external::before { background: #8fa0b5; }

.method-steps { counter-reset: method; display: grid; gap: 14px; }
.method-step { background: var(--white); border: 1px solid var(--line); display: grid; gap: 20px; grid-template-columns: 72px 1fr; padding: 24px; }
.method-step::before { color: var(--amber-700); content: counter(method, decimal-leading-zero); counter-increment: method; font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: 0.1em; padding-top: 5px; }
.method-step h3 { font-size: 29px; margin-bottom: 8px; }
.method-step p { color: var(--muted); font-size: 16px; margin: 0; }

.site-footer { background: var(--navy-950); color: #9faebe; padding: 42px 0; }
.footer-grid { align-items: center; display: grid; gap: 24px; grid-template-columns: auto 1fr auto; }
.footer-grid img { display: block; height: 30px; }
.footer-copy { font-size: 12px; text-align: center; }
.footer-links { display: flex; gap: 14px; }
.footer-links a { color: #c4d0dc; font-size: 13px; }

@media (max-width: 1040px) {
  .site-nav { display: none; }
  .mobile-nav { display: block; }
  .home-hero-grid { grid-template-columns: 1fr; }
  .hero-title { max-width: 12ch; }
  .control-panel { min-height: auto; }
  .doc-layout { grid-template-columns: 1fr; }
  .side { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); position: static; }
  .side-card { margin-bottom: 0; }
  .card-grid.five, .method-grid, .mechanism { grid-template-columns: repeat(2, 1fr); }
  .mechanism-step + .mechanism-step { border-left: 1px solid var(--line); }
  .mechanism-step::after { display: none; }
  .method-phase::after { display: none !important; }
  .resource-list { grid-template-columns: repeat(2, 1fr); }
  .hazard-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hazard-list details[open] { grid-column: span 2; }
}

@media (max-width: 720px) {
  body { font-size: 18px; }
  .wrap, .wrap-narrow { width: min(calc(100% - 32px), var(--max)); }
  .home-hero-grid { gap: 42px; min-height: auto; padding: 62px 0; }
  .hero-title { font-size: clamp(48px, 15vw, 68px); }
  .hero-lede { font-size: 21px; }
  .performer-strip { grid-template-columns: 1fr; margin-top: 34px; }
  .performer-chip { min-height: auto; }
  .flow-diagram { grid-template-columns: 1fr; margin-top: 34px; }
  .flow-arrow { transform: rotate(90deg); }
  .reality-bar { margin-top: 34px; }
  .record-strip-inner { grid-template-columns: 1fr; padding: 22px 0; }
  .record-item, .record-item:first-child { border-left: 1px solid rgba(255, 255, 255, 0.16); padding-left: 14px; }
  .site-section { padding: 66px 0; }
  .split, .card-grid, .card-grid.two, .card-grid.five, .card-group-label, .mechanism, .method-grid,
  .resource-list, .resource-group-head, .cta-panel { grid-template-columns: 1fr; }
  .big-claim { max-width: 16ch; }
  .hazard-list { grid-template-columns: 1fr; }
  .hazard-list details,
  .hazard-list details[open] { grid-column: auto; min-height: 0; }
  .hazard-list summary,
  .hazard-list details[open] summary { min-height: 210px; }
  .cta-panel { padding: 30px 24px; }
  .article { padding: 28px 22px; }
  .doc-layout { gap: 28px; padding: 34px 0 66px; }
  .side { grid-template-columns: 1fr; }
  .version-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; justify-items: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
