@font-face {
  font-family: "Lato";
  src: url("./assets/fonts/Lato-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Lato";
  src: url("./assets/fonts/Lato-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Lato";
  src: url("./assets/fonts/Lato-Heavy.ttf") format("truetype");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

:root {
  --paper: #F8F7F2;
  --ink: #152536;
  --teal: #0B6E69;
  --brick: #B8493C;
  --grey: #5E6B76;
  --rule: #CDD9DF;
  --soft: #ECEEEA;
  --white: #FFFFFF;
  --sans: "Lato", "Avenir Next", "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --header-height: 74px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px + env(safe-area-inset-top));
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  letter-spacing: 0;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

a,
button,
summary {
  min-height: 44px;
}

:focus-visible {
  outline: 3px solid var(--brick);
  outline-offset: 4px;
}

h1,
h2,
h3,
p,
ol,
dl,
figure {
  margin-top: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  max-width: 68ch;
  text-wrap: pretty;
}

.shell {
  width: min(calc(100% - 56px), 1240px);
  margin-inline: auto;
}

.band {
  border-block: 1px solid var(--rule);
}

.section {
  padding-block: 108px;
}

section[id],
.anchor-alias {
  scroll-margin-top: calc(var(--header-height) + 18px + env(safe-area-inset-top));
}

.anchor-alias {
  display: block;
  position: relative;
  top: calc((var(--header-height) + 18px) * -1);
  visibility: hidden;
}

.skip-link {
  position: fixed;
  top: max(10px, env(safe-area-inset-top));
  left: max(12px, env(safe-area-inset-left));
  z-index: 30;
  display: inline-flex;
  align-items: center;
  transform: translateY(-180%);
  padding: 8px 12px;
  border-radius: 4px;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-top: env(safe-area-inset-top);
  padding-inline: env(safe-area-inset-left) env(safe-area-inset-right);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

.nav {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto auto;
  gap: 28px;
  align-items: center;
  min-height: var(--header-height);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  width: max-content;
  color: var(--ink);
  font-size: 21px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

.wordmark span {
  color: var(--brick);
}

.wordmark i {
  color: var(--teal);
  font-style: normal;
}

.nav-primary,
.hero-actions,
.footer-links,
.inline-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.nav-primary {
  flex-wrap: nowrap;
  gap: 26px;
}

.nav-primary a,
.nav-paper,
.footer-links a {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.nav-primary a:hover,
.footer-links a:hover {
  color: var(--teal);
}

.nav-paper {
  justify-content: center;
  min-width: 78px;
  padding-inline: 16px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--ink);
  color: var(--white);
}

.nav-paper:hover {
  border-color: var(--teal);
  background: var(--teal);
}

.mobile-menu {
  display: none;
  position: relative;
}

.hero {
  min-height: clamp(560px, 72vh, 720px);
  padding-block: 72px 66px;
  border-top: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px;
  align-items: center;
}

.hero-copy {
  grid-column: 1 / span 6;
  padding-block: 16px;
}

.project-marker,
.kicker,
.plain-label,
.quote-label,
.evidence-label,
.status-label {
  color: var(--teal);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
}

.project-marker {
  margin-bottom: 18px;
}

.hero h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: 68px;
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 610px;
  margin-bottom: 26px;
  color: var(--teal);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
}

.hero-thesis {
  max-width: 540px;
  margin-bottom: 34px;
  color: var(--grey);
  font-size: 20px;
  line-height: 1.5;
}

.hero-actions {
  gap: 10px 14px;
}

.button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.button {
  padding: 14px 19px;
  border: 1px solid var(--ink);
}

.button-primary {
  background: var(--ink);
  color: var(--white);
}

.button-primary:hover {
  border-color: var(--teal);
  background: var(--teal);
}

.button-secondary {
  background: transparent;
  color: var(--ink);
}

.button-secondary:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.text-link {
  padding-inline: 4px;
  color: var(--brick);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.text-link:hover {
  color: var(--teal);
}

.hero-evidence {
  grid-column: 7 / -1;
  width: min(100%, 560px);
  max-width: 560px;
  margin: 0 0 0 auto;
  padding-top: 18px;
  border-top: 2px solid var(--ink);
}

.hero-figure-label {
  margin: 0 0 12px;
  color: var(--teal);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
}

.hero-evidence img {
  width: 100%;
  height: auto;
  aspect-ratio: 1567 / 694;
  object-fit: contain;
  background: var(--white);
}

figcaption {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--rule);
  color: var(--grey);
  font-size: 14px;
  line-height: 1.4;
}

figcaption strong {
  color: var(--ink);
}

.hero-evidence figcaption strong {
  flex: 0 0 auto;
  color: var(--brick);
  font-size: 32px;
  line-height: 1;
}

.hero-evidence figcaption span {
  max-width: 240px;
  font-size: 15px;
  text-align: right;
}

.reader-map {
  background: var(--soft);
}

.reader-map-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px;
  padding-block: 24px;
  align-items: start;
}

.reader-map .kicker {
  grid-column: 1 / span 2;
  margin: 9px 0 0;
  color: var(--ink);
}

.reader-map ol {
  grid-column: 3 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
  list-style: none;
}

.reader-map li {
  min-width: 0;
  border-bottom: 1px solid var(--rule);
}

.reader-map a {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 52px;
  padding: 4px 12px 4px 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}

.reader-map a:hover {
  color: var(--teal);
}

.reader-map a span {
  color: var(--teal);
  font-family: var(--mono);
  font-size: 11px;
}

.numbered-heading {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
}

.numbered-heading > span {
  grid-column: 1;
  padding-top: 9px;
  color: var(--brick);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
}

.numbered-heading > div {
  grid-column: 2 / span 9;
}

.numbered-heading .kicker {
  margin-bottom: 10px;
}

.numbered-heading h2 {
  max-width: 840px;
  margin-bottom: 0;
  font-size: 50px;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
}

.section-intro,
.mechanism-lede {
  max-width: 68ch;
  margin: 28px 0 42px calc((100% + 24px) / 12);
  color: var(--grey);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 58px;
  max-width: 1028px;
  margin: 52px 0 0 calc((100% + 24px) / 12);
}

.plain-reading,
.formal-reading {
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}

.plain-label,
.quote-label {
  margin-bottom: 12px;
}

.plain-reading .plain-label {
  color: var(--teal);
}

.formal-reading .plain-label {
  color: var(--brick);
}

.problem-grid p:not(.plain-label) {
  margin-bottom: 17px;
  color: var(--grey);
}

.problem-grid p:last-child {
  margin-bottom: 0;
}

.reading-note {
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-size: 15px;
}

.decision-chain {
  margin: 44px 0 0 calc((100% + 24px) / 12);
  color: var(--grey);
  font-family: var(--mono);
  font-size: 14px;
}

.decision-chain strong {
  color: var(--ink);
}

.problem-flow,
.concept-flow {
  display: grid;
  grid-template-columns: 1fr 32px 1fr 32px 1fr;
  gap: 14px;
  align-items: center;
  margin: 28px 0 0 calc((100% + 24px) / 12);
  padding-block: 20px;
  border-block: 1px solid var(--rule);
}

.problem-flow div {
  display: grid;
  gap: 5px;
}

.problem-flow div > span {
  color: var(--teal);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.problem-flow strong {
  font-size: 15px;
  line-height: 1.35;
}

.flow-arrow {
  color: var(--brick);
  font-size: 21px;
  font-weight: 700;
  text-align: center;
}

.concept-band,
.mechanism-band,
.engineering-band {
  padding-block: 104px;
  background: var(--soft);
}

.numbered-heading-light,
.numbered-heading-light h2 {
  color: var(--ink);
}

.numbered-heading-light > span {
  color: var(--teal);
}

.concept-flow {
  align-items: stretch;
  margin-top: 48px;
}

.concept-flow article {
  min-height: 210px;
  padding-block: 18px;
}

.concept-index {
  color: var(--teal);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
}

.concept-flow h3 {
  margin: 36px 0 10px;
  font-size: 21px;
  line-height: 1.2;
}

.concept-flow p {
  margin-bottom: 0;
  color: var(--grey);
  font-size: 15px;
  line-height: 1.5;
}

.glossary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 36px 0 0 calc((100% + 24px) / 12);
  border-top: 1px solid var(--rule);
}

.glossary-grid > div {
  min-height: 132px;
  padding: 16px 16px 16px 0;
  border-bottom: 1px solid var(--rule);
}

.glossary-grid > div + div {
  padding-left: 16px;
}

.glossary-grid span {
  color: var(--teal);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
}

.glossary-grid p {
  margin: 15px 0 0;
  color: var(--grey);
  font-size: 15px;
  line-height: 1.45;
}

.design-table-wrap,
.mechanism-table-wrap,
.limits-table-wrap,
.result-table-wrap {
  margin-left: calc((100% + 24px) / 12);
}

.design-table,
.mechanism-table,
.limits-table,
.result-table,
.responsive-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--rule);
}

.design-table caption,
.mechanism-table caption,
.limits-table caption,
.result-table caption {
  padding-bottom: 12px;
  color: var(--grey);
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  caption-side: top;
}

.design-table th,
.design-table td,
.mechanism-table th,
.mechanism-table td,
.limits-table th,
.limits-table td,
.result-table th,
.result-table td {
  padding: 14px;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
  font-size: 15px;
  line-height: 1.45;
}

.design-table thead th,
.mechanism-table thead th,
.limits-table thead th,
.result-table thead th {
  color: var(--grey);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.design-table tbody th,
.mechanism-table tbody th,
.limits-table tbody th,
.result-table tbody th {
  font-weight: 700;
}

.cost-list span {
  color: var(--brick);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
}

.contract-figure {
  margin: 48px 0 0 calc((100% + 24px) / 12);
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}

.contract-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 1916 / 821;
  object-fit: contain;
  background: var(--white);
}

.contract-figure figcaption {
  align-items: start;
}

.inline-links {
  gap: 8px 20px;
  margin: 18px 0 0 calc((100% + 24px) / 12);
}

.inline-links a {
  display: inline-flex;
  align-items: center;
  color: var(--brick);
  font-size: 14px;
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.inline-links a:hover {
  color: var(--teal);
}

.cost-band {
  padding-block: 68px;
  background: var(--paper);
}

.cost-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.cost-grid > div:first-child {
  grid-column: 1 / span 4;
}

.cost-grid h2,
.boundary-grid h2 {
  margin-bottom: 0;
  font-size: 40px;
  font-weight: 900;
  line-height: 1.12;
}

.cost-list {
  grid-column: 6 / -1;
  border-top: 1px solid var(--rule);
}

.cost-list div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding-block: 15px;
  border-bottom: 1px solid var(--rule);
}

.cost-list p {
  margin: 0;
  color: var(--grey);
  font-size: 15px;
}

.cost-grid > .inline-links {
  grid-column: 6 / -1;
  margin: 0;
}

.mechanism-lede {
  margin-bottom: 38px;
}

.mechanism-example,
.results-uncertainty {
  max-width: 68ch;
  margin: 38px 0 0 calc((100% + 24px) / 12);
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}

.mechanism-example p:last-child,
.results-uncertainty p {
  margin-bottom: 0;
  color: var(--grey);
}

.evidence-legend {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 38px calc((100% + 24px) / 12);
  border-top: 1px solid var(--rule);
}

.evidence-legend article {
  min-height: 152px;
  padding: 16px 16px 16px 0;
  border-bottom: 1px solid var(--rule);
}

.evidence-legend article + article {
  padding-left: 16px;
}

.evidence-label {
  margin-bottom: 8px;
}

.evidence-label.active {
  color: var(--brick);
}

.evidence-label.diagnostic,
.evidence-label.target {
  color: var(--grey);
}

.evidence-legend article > p:last-child {
  margin-bottom: 0;
  color: var(--grey);
  font-size: 14px;
  line-height: 1.45;
}

.ranking-figure {
  margin: 0 0 42px calc((100% + 24px) / 12);
}

.motion-stage,
.ranking-figure figcaption {
  width: min(100%, 880px);
}

.motion-fallback {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2500 / 2475;
  object-fit: contain;
}

.motion-canvas {
  display: none;
  width: 100%;
  aspect-ratio: 8 / 3;
}

.motion-canvas svg {
  display: block;
  width: 100%;
  height: 100%;
}

.motion-stage[data-motion-state="ready"] .motion-fallback {
  display: none;
}

.motion-stage[data-motion-state="ready"] .motion-canvas {
  display: block;
}

.result-table th,
.result-table td {
  font-size: 15px;
}

.num {
  font-family: var(--mono);
  font-size: 14px !important;
  font-variant-numeric: tabular-nums;
}

.prediction-value {
  color: var(--teal);
  font-weight: 700;
}

.execution-value {
  color: var(--brick);
  font-weight: 700;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 7px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

.status.changed {
  background: var(--brick);
  color: var(--white);
}

.status.same {
  background: var(--soft);
  color: var(--ink);
}

.table-note {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 10px;
  max-width: 68ch;
  margin: 15px 0 0 calc((100% + 24px) / 12);
  color: var(--grey);
  font-size: 14px;
}

.note-dot {
  width: 8px;
  height: 8px;
  margin-top: 7px;
  background: var(--brick);
}

.results-links {
  margin-top: 24px;
}

.figure-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin: 52px 0 0 calc((100% + 24px) / 12);
}

.figure-card {
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}

.figure-card img {
  width: 100%;
  background: var(--white);
  object-fit: contain;
}

.figure-card-heatmap img {
  aspect-ratio: 1038 / 600;
}

.figure-card-scatter img {
  aspect-ratio: 1038 / 512;
}

.figure-card figcaption {
  display: grid;
  gap: 4px;
}

.protocol-caveat {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 56px;
  margin: 54px 0 0 calc((100% + 24px) / 12);
  padding-block: 22px;
  border-block: 1px solid var(--rule);
}

.protocol-caveat h3 {
  margin-bottom: 0;
  font-size: 22px;
  line-height: 1.25;
}

.protocol-caveat > div:last-child > p:first-child {
  margin-bottom: 0;
  color: var(--grey);
  font-size: 15px;
}

.protocol-caveat .inline-links {
  margin: 18px 0 0;
}

.results-uncertainty .text-link {
  margin-top: 14px;
}

.claim-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin: 48px 0 0 calc((100% + 24px) / 12);
}

.status-panel {
  min-height: 218px;
  padding-top: 17px;
  border-top: 1px solid var(--rule);
}

.status-panel.completed .status-label {
  color: var(--teal);
}

.status-panel.diagnostic .status-label,
.status-panel.pending .status-label {
  color: var(--grey);
}

.status-panel h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.25;
}

.status-panel p:last-child {
  margin-bottom: 0;
  color: var(--grey);
  font-size: 15px;
}

.transfer-disclosure {
  margin: 28px 0 38px calc((100% + 24px) / 12);
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.application-matrix {
  margin-left: calc((100% + 24px) / 12);
  border-top: 1px solid var(--rule);
}

.application-row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  padding-block: 18px;
  border-bottom: 1px solid var(--rule);
}

.application-row h3 {
  grid-column: 1 / span 3;
  margin-bottom: 0;
  font-size: 18px;
}

.application-row dl {
  grid-column: 4 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 0;
}

.application-row dt {
  margin-bottom: 5px;
  color: var(--teal);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.application-row dd {
  margin: 0;
  color: var(--grey);
  font-size: 14px;
  line-height: 1.45;
}

.engineering-note {
  max-width: 68ch;
  margin: 34px 0 0 calc((100% + 24px) / 12);
  padding-top: 17px;
  border-top: 1px solid var(--rule);
  color: var(--grey);
  font-size: 15px;
}

.engineering-note strong {
  color: var(--ink);
}

.materials-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px 42px;
  margin: 42px 0 0 calc((100% + 24px) / 12);
}

.materials-group {
  border-top: 1px solid var(--rule);
}

.materials-group h3 {
  margin: 14px 0 8px;
  color: var(--teal);
  font-size: 17px;
}

.material-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20px;
  gap: 14px;
  align-items: center;
  min-height: 94px;
  padding-block: 14px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  text-decoration: none;
}

.material-link:hover {
  color: var(--teal);
}

.material-link strong,
.material-link small {
  display: block;
}

.material-link strong {
  font-size: 16px;
  line-height: 1.3;
}

.material-link small {
  margin-top: 4px;
  color: var(--grey);
  font-size: 14px;
  line-height: 1.4;
}

.material-link > span:last-child {
  color: var(--brick);
  font-size: 18px;
  font-weight: 700;
}

.citation-block {
  max-width: 68ch;
  margin: 46px 0 0 calc((100% + 24px) / 12);
  padding-top: 19px;
  border-top: 1px solid var(--rule);
}

.citation-block p {
  margin-bottom: 7px;
  font-size: 15px;
}

.citation-block cite {
  font-style: italic;
}

.citation-url {
  color: var(--grey);
  font-family: var(--mono);
  font-size: 13px !important;
  overflow-wrap: anywhere;
}

.boundary-band {
  padding-block: 64px;
  background: var(--soft);
}

.boundary-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.boundary-grid > div:first-child {
  grid-column: 1 / span 5;
}

.boundary-copy {
  grid-column: 7 / -1;
}

.boundary-copy p {
  margin-bottom: 15px;
  color: var(--grey);
  font-size: 17px;
}

.boundary-band .text-link {
  color: var(--teal);
}

.site-footer {
  padding-block: 40px max(40px, env(safe-area-inset-bottom));
  padding-inline: env(safe-area-inset-left) env(safe-area-inset-right);
  border-top: 1px solid var(--rule);
  background: var(--ink);
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: end;
}

.footer-grid .wordmark,
.footer-links a {
  color: var(--white);
}

.footer-grid > div:first-child p {
  max-width: 390px;
  margin: 14px 0 0;
  color: var(--rule);
  font-size: 14px;
}

.footer-links {
  justify-content: flex-end;
  gap: 8px 20px;
}

.footer-meta {
  grid-column: 1 / -1;
  margin-bottom: 0;
  color: var(--rule);
  font-family: var(--mono);
  font-size: 12px;
}

.not-found {
  min-height: calc(100dvh - var(--header-height));
  max-width: 830px;
  padding-top: 120px;
  padding-bottom: 100px;
}

.not-found h1 {
  max-width: 650px;
  margin-bottom: 22px;
  font-size: 54px;
  font-weight: 900;
  line-height: 1.05;
}

.not-found > p:not(.kicker) {
  max-width: 650px;
  margin-bottom: 30px;
  color: var(--grey);
  font-size: 18px;
}

.not-found-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}

@media (hover: hover) {
  .button,
  .nav-paper,
  .reader-map a,
  .material-link,
  .nav-primary a,
  .footer-links a,
  .text-link,
  .inline-links a {
    transition: color 160ms ease-out, background-color 160ms ease-out, border-color 160ms ease-out, transform 160ms ease-out;
  }

  .button:active,
  .nav-paper:active,
  .material-link:active {
    transform: translateY(1px);
  }
}

@media (max-width: 1040px) {
  .hero h1 {
    font-size: 58px;
  }

  .numbered-heading h2 {
    font-size: 44px;
  }

  .hero-evidence {
    grid-column: 7 / -1;
    max-width: 520px;
  }

  .hero-copy {
    grid-column: 1 / span 6;
  }

  .section-intro,
  .mechanism-lede,
  .problem-grid,
  .decision-chain,
  .problem-flow,
  .concept-flow,
  .glossary-grid,
  .design-table-wrap,
  .mechanism-table-wrap,
  .limits-table-wrap,
  .result-table-wrap,
  .contract-figure,
  .inline-links,
  .mechanism-example,
  .evidence-legend,
  .ranking-figure,
  .table-note,
  .figure-grid,
  .protocol-caveat,
  .results-uncertainty,
  .claim-status-grid,
  .transfer-disclosure,
  .application-matrix,
  .engineering-note,
  .materials-grid,
  .citation-block {
    margin-left: 0;
  }
}

@media (max-width: 860px) {
  .nav {
    gap: 18px;
  }

  .nav-primary {
    gap: 16px;
  }

  .hero-grid,
  .cost-grid,
  .boundary-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

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

  .hero-copy {
    grid-column: auto;
  }

  .hero-evidence {
    grid-column: auto;
    width: 100%;
    max-width: 760px;
    margin-left: 0;
  }

  .reader-map .kicker {
    grid-column: 1 / span 3;
  }

  .reader-map ol {
    grid-column: 4 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .problem-grid,
  .protocol-caveat {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .figure-card:first-child {
    grid-column: auto;
  }

  .cost-grid > div:first-child,
  .boundary-grid > div:first-child {
    grid-column: 1 / span 3;
  }

  .cost-list,
  .cost-grid > .inline-links,
  .boundary-copy {
    grid-column: 4 / -1;
  }

  .materials-grid {
    gap: 30px;
  }
}

@media (max-width: 767px) {
  .contract-figure {
    display: none;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 17px;
  }

  .shell {
    width: min(calc(100% - 36px), 1180px);
  }

  .site-header {
    padding-inline: max(0px, env(safe-area-inset-left)) max(0px, env(safe-area-inset-right));
  }

  .nav {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
  }

  .nav-primary {
    display: none;
  }

  .nav-paper {
    min-width: 68px;
    padding-inline: 12px;
  }

  .mobile-menu {
    display: block;
  }

  .mobile-menu summary {
    display: grid;
    place-items: center;
    width: 44px;
    padding: 0;
    border: 1px solid var(--rule);
    border-radius: 4px;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
  }

  .mobile-menu summary::-webkit-details-marker {
    display: none;
  }

  .mobile-menu summary span,
  .mobile-menu summary span::before,
  .mobile-menu summary span::after {
    display: block;
    width: 18px;
    height: 1px;
    background: currentColor;
  }

  .mobile-menu summary span {
    position: relative;
  }

  .mobile-menu summary span::before,
  .mobile-menu summary span::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .mobile-menu summary span::before {
    top: -6px;
  }

  .mobile-menu summary span::after {
    top: 6px;
  }

  .mobile-menu[open] summary span {
    background: transparent;
  }

  .mobile-menu[open] summary span::before {
    top: 0;
    transform: rotate(45deg);
  }

  .mobile-menu[open] summary span::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .mobile-menu nav {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    display: grid;
    width: min(280px, calc(100vw - 36px - env(safe-area-inset-left) - env(safe-area-inset-right)));
    border: 1px solid var(--rule);
    background: var(--paper);
  }

  .mobile-menu nav a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding-inline: 16px;
    border-bottom: 1px solid var(--rule);
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
  }

  .mobile-menu nav a:last-child {
    border-bottom: 0;
  }

  .hero {
    min-height: 0;
    padding-block: 44px 34px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-copy,
  .hero-evidence {
    grid-column: auto;
  }

  .hero-copy {
    padding: 0;
  }

  .hero h1 {
    font-size: 42px;
    line-height: 1.04;
  }

  .hero-subtitle {
    font-size: 22px;
  }

  .hero-thesis {
    margin-bottom: 26px;
    font-size: 18px;
  }

  .hero-evidence {
    width: 100%;
    margin-inline: auto;
    padding-top: 14px;
  }

  .hero-evidence img {
    aspect-ratio: 1567 / 694;
    object-fit: contain;
  }

  .hero-figure-label {
    margin-bottom: 10px;
    font-size: 11px;
  }

  .hero-evidence figcaption strong {
    font-size: 28px;
  }

  .hero-evidence figcaption span {
    font-size: 14px;
  }

  .reader-map-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .reader-map .kicker,
  .reader-map ol {
    grid-column: auto;
  }

  .reader-map .kicker {
    margin-top: 0;
  }

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

  .section,
  .concept-band,
  .mechanism-band,
  .engineering-band {
    padding-block: 74px;
  }

  .numbered-heading {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 14px;
  }

  .numbered-heading > span,
  .numbered-heading > div {
    grid-column: auto;
  }

  .numbered-heading h2 {
    font-size: 36px;
  }

  .section-intro,
  .mechanism-lede {
    margin-top: 24px;
    margin-bottom: 34px;
  }

  .problem-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 38px;
  }

  .decision-chain {
    margin-top: 36px;
  }

  .problem-flow,
  .concept-flow {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .problem-flow .flow-arrow,
  .concept-flow .flow-arrow {
    transform: rotate(90deg);
  }

  .concept-flow article {
    min-height: 0;
    padding-block: 16px;
  }

  .concept-flow h3 {
    margin-top: 20px;
  }

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

  .glossary-grid > div,
  .glossary-grid > div + div {
    min-height: 0;
    padding: 14px 0;
  }

  .design-table-wrap,
  .mechanism-table-wrap,
  .limits-table-wrap,
  .result-table-wrap {
    overflow: visible;
  }

  .responsive-table thead,
  .design-table thead,
  .mechanism-table thead,
  .limits-table thead,
  .result-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .responsive-table,
  .responsive-table tbody,
  .responsive-table tr,
  .responsive-table th,
  .responsive-table td,
  .design-table,
  .design-table tbody,
  .design-table tr,
  .design-table th,
  .design-table td,
  .mechanism-table,
  .mechanism-table tbody,
  .mechanism-table tr,
  .mechanism-table th,
  .mechanism-table td,
  .limits-table,
  .limits-table tbody,
  .limits-table tr,
  .limits-table th,
  .limits-table td,
  .result-table,
  .result-table tbody,
  .result-table tr,
  .result-table th,
  .result-table td {
    display: block;
    width: 100%;
  }

  .responsive-table tr,
  .design-table tr,
  .mechanism-table tr,
  .limits-table tr,
  .result-table tr {
    padding-block: 18px;
    border-top: 1px solid var(--rule);
  }

  .responsive-table tbody tr:first-child,
  .design-table tbody tr:first-child,
  .mechanism-table tbody tr:first-child,
  .limits-table tbody tr:first-child,
  .result-table tbody tr:first-child {
    border-top: 0;
  }

  .responsive-table th[scope="row"],
  .design-table th[scope="row"],
  .mechanism-table th[scope="row"],
  .limits-table th[scope="row"],
  .result-table th[scope="row"] {
    padding: 0 0 10px;
    border: 0;
    color: var(--ink);
    font-size: 18px;
  }

  .responsive-table td,
  .design-table td,
  .mechanism-table td,
  .limits-table td,
  .result-table td {
    display: grid;
    grid-template-columns: minmax(108px, .42fr) 1fr;
    gap: 14px;
    padding: 4px 0;
    border: 0;
    overflow-wrap: normal;
  }

  .responsive-table td::before,
  .design-table td::before,
  .mechanism-table td::before,
  .limits-table td::before,
  .result-table td::before {
    content: attr(data-label);
    color: var(--grey);
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
    text-transform: uppercase;
  }

  .design-table caption,
  .mechanism-table caption,
  .limits-table caption,
  .result-table caption {
    display: block;
    width: 100%;
  }

  .cost-grid,
  .boundary-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cost-grid > div:first-child,
  .cost-list,
  .cost-grid > .inline-links,
  .boundary-grid > div:first-child,
  .boundary-copy {
    grid-column: auto;
  }

  .cost-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .evidence-legend {
    grid-template-columns: 1fr;
  }

  .evidence-legend article,
  .evidence-legend article + article {
    min-height: 0;
    padding: 14px 0;
  }

  .ranking-figure {
    margin-bottom: 34px;
  }

  .table-note {
    margin-top: 14px;
  }

  .protocol-caveat,
  .claim-status-grid,
  .materials-grid {
    grid-template-columns: 1fr;
  }

  .claim-status-grid {
    gap: 26px;
  }

  .status-panel {
    min-height: 0;
  }

  .application-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .application-row h3,
  .application-row dl {
    grid-column: auto;
  }

  .application-row dl {
    grid-template-columns: 1fr;
    gap: 12px;
  }

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

  .figure-card:first-child {
    grid-column: auto;
  }

  .materials-grid {
    gap: 26px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .footer-meta {
    grid-column: auto;
  }

  .not-found {
    padding-top: 78px;
    padding-bottom: 76px;
  }

  .not-found h1 {
    font-size: 40px;
  }
}

@media (min-width: 721px) and (max-width: 860px) {
  .hero-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: center;
  }

  .hero-copy {
    grid-column: 1 / span 6;
  }

  .hero-evidence {
    grid-column: 7 / -1;
    max-width: 520px;
    margin-left: auto;
  }
}

@media (min-width: 390px) and (max-width: 720px) {
  .shell {
    width: min(calc(100% - 44px), 1180px);
  }
}

@media (max-width: 359px) {
  .shell {
    width: min(calc(100% - 36px), 1180px);
  }

  .hero {
    padding-block: 32px 18px;
  }

  .hero-grid {
    gap: 18px;
  }

  .wordmark {
    font-size: 17px;
  }

  .nav-paper {
    min-width: 62px;
    padding-inline: 9px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-thesis {
    margin-bottom: 20px;
  }

  .reader-map ol {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr) auto;
    gap: 8px;
    align-items: stretch;
  }

  .hero-actions .button {
    min-width: 0;
    padding-inline: 8px;
  }

  .responsive-table td,
  .design-table td,
  .mechanism-table td,
  .limits-table td,
  .result-table td {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }

  .motion-stage[data-motion-state="ready"] .motion-fallback {
    display: block;
  }

  .motion-stage[data-motion-state="ready"] .motion-canvas {
    display: none;
  }
}

@media print {
  .site-header,
  .skip-link,
  .hero-actions,
  .reader-map,
  .site-footer {
    display: none;
  }

  body,
  .hero,
  .concept-band,
  .mechanism-band,
  .engineering-band,
  .boundary-band {
    background: var(--white);
    color: var(--ink);
  }

  .section,
  .concept-band,
  .mechanism-band,
  .engineering-band {
    padding-block: 36px;
  }
}
