:root {
  --navy-900: #102c46;
  --navy-800: #173b59;
  --blue-700: #0067a8;
  --blue-600: #0878bd;
  --blue-100: #eaf3f8;
  --ink: #18232d;
  --slate-700: #465866;
  --slate-600: #5e6d78;
  --slate-400: #87949e;
  --line: #d3dce3;
  --line-dark: #aebbc5;
  --surface: #f4f7f9;
  --surface-2: #eef3f6;
  --white: #ffffff;
  --success: #27735e;
  --max-width: 1080px;
  --text-width: 690px;
  --header-height: 60px;
  --font-sans: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

body,
button {
  font-family: var(--font-sans);
}

a {
  color: inherit;
  text-underline-offset: 3px;
}

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

figure,
dl,
dd,
p,
h1,
h2,
h3,
h4 {
  margin: 0;
}

button {
  color: inherit;
}

.container {
  width: min(calc(100% - 48px), var(--max-width));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 8px 12px;
  color: var(--white);
  background: var(--navy-900);
  transform: translateY(-180%);
}

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

:focus-visible {
  outline: 3px solid var(--blue-600);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: var(--header-height);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
}

.site-header.is-scrolled {
  box-shadow: 0 2px 8px rgba(16, 44, 70, 0.07);
}

.nav-shell {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy-900);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.wordmark-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--white);
  background: var(--navy-900);
  font-size: 10px;
  letter-spacing: 0.03em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  color: var(--slate-700);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--blue-700);
}

.site-nav .nav-cta {
  padding: 7px 14px;
  border: 1px solid var(--navy-900);
  color: var(--navy-900);
}

.site-nav .nav-cta:hover {
  color: var(--white);
  background: var(--navy-900);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 21px;
  height: 2px;
  background: var(--navy-900);
  content: "";
}

.nav-toggle span {
  position: relative;
  margin: auto;
}

.nav-toggle span::before {
  position: absolute;
  top: -6px;
}

.nav-toggle span::after {
  position: absolute;
  top: 6px;
}

.hero {
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(270px, 0.72fr);
  gap: 72px;
  align-items: start;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow,
.section-kicker,
.project-number,
.feature-label {
  color: var(--blue-700);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.105em;
  line-height: 1.35;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin-top: 15px;
  color: var(--navy-900);
  font-size: clamp(2.35rem, 5vw, 3.45rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.hero-lede {
  max-width: 700px;
  margin-top: 22px;
  color: var(--slate-700);
  font-size: 18px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 16px;
  border: 1px solid var(--navy-900);
  color: var(--white);
  background: var(--navy-900);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}

.button:hover {
  border-color: var(--blue-700);
  background: var(--blue-700);
}

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

.profile-brief {
  border-top: 3px solid var(--navy-900);
  background: var(--white);
}

.brief-heading {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--navy-900);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.profile-brief dl > div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
}

.profile-brief dt {
  color: var(--slate-600);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.profile-brief dd {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.48;
}

.section {
  padding: 68px 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr);
  gap: 70px;
  margin-bottom: 32px;
  align-items: end;
}

.section-heading h2,
.profile-grid h2,
.contact-band h2 {
  margin-top: 8px;
  color: var(--navy-900);
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.18;
}

.section-heading > p,
.profile-grid > div > p {
  color: var(--slate-700);
  line-height: 1.65;
}

.project-list {
  display: grid;
  gap: 20px;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: 42px;
  padding: 30px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--line-dark);
  background: var(--white);
}

.project-card-primary {
  border-top-color: var(--blue-700);
}

.project-card > * {
  min-width: 0;
}

.project-copy h3 {
  max-width: 620px;
  margin-top: 8px;
  color: var(--navy-900);
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.22;
}

.project-copy > p:not(.project-number) {
  margin-top: 13px;
  color: var(--slate-700);
  font-size: 15px;
}

.project-facts {
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.project-facts > div {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.project-facts dt {
  color: var(--slate-600);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-facts dd {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.45;
}

.text-link {
  display: inline-flex;
  gap: 7px;
  margin-top: 17px;
  color: var(--blue-700);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.report-figure {
  align-self: center;
  border: 1px solid var(--line);
  background: var(--surface);
}

.report-figure figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
  font-size: 11px;
}

.report-figure figcaption span {
  color: var(--blue-700);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.report-figure figcaption strong {
  color: var(--navy-900);
  font-weight: 700;
}

.figure-note {
  padding: 9px 12px;
  border-top: 1px solid var(--line);
  color: var(--slate-600);
  background: var(--white);
  font-size: 10px;
  line-height: 1.45;
}

.process-row {
  display: grid;
  grid-template-columns: repeat(7, auto);
  gap: 8px;
  align-items: stretch;
  padding: 22px 18px;
}

.process-row i {
  align-self: center;
  color: var(--slate-400);
  font-style: normal;
}

.process-node {
  display: flex;
  min-width: 0;
  min-height: 78px;
  flex-direction: column;
  justify-content: center;
  padding: 9px;
  border: 1px solid var(--line-dark);
  background: var(--white);
}

.process-node span {
  color: var(--blue-700);
  font-size: 9px;
  font-weight: 700;
}

.process-node strong {
  color: var(--navy-900);
  font-size: 12px;
}

.process-node small {
  margin-top: 3px;
  color: var(--slate-600);
  font-size: 9px;
  line-height: 1.35;
}

.process-node-review {
  border-color: var(--blue-700);
  background: var(--blue-100);
}

.data-panel {
  padding: 15px;
}

.data-panel-head,
.data-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr 64px;
  gap: 10px;
  align-items: center;
}

.data-panel-head {
  padding-bottom: 8px;
  border-bottom: 2px solid var(--navy-900);
  color: var(--slate-600);
  font-size: 10px;
  text-transform: uppercase;
}

.data-panel-head strong {
  grid-column: 2 / 4;
  color: var(--navy-900);
  font-size: 10px;
  text-align: right;
}

.data-row {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}

.data-row > strong {
  color: var(--navy-900);
  font-size: 10px;
  text-align: right;
}

.spark {
  height: 6px;
  background: #dfe7ec;
}

.spark b {
  display: block;
  height: 100%;
  background: var(--blue-700);
}

.threshold-table {
  padding: 14px;
}

.threshold-table > div {
  display: grid;
  grid-template-columns: 38px 1fr 80px;
  gap: 10px;
  align-items: center;
  padding: 8px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}

.threshold-table .threshold-head {
  border-bottom: 2px solid var(--navy-900);
  color: var(--slate-600);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.threshold-table strong {
  color: var(--blue-700);
}

.threshold-table small {
  color: var(--slate-600);
  font-size: 10px;
  text-align: right;
}

.bar-table {
  padding: 18px 14px;
}

.bar-table > div {
  display: grid;
  grid-template-columns: 108px 1fr 42px;
  gap: 10px;
  align-items: center;
  margin: 9px 0;
  font-size: 10px;
}

.bar-table > div > div {
  height: 11px;
  border-left: 1px solid var(--navy-900);
  background: repeating-linear-gradient(90deg, #e0e7ec 0, #e0e7ec 1px, transparent 1px, transparent 20%);
}

.bar-table b {
  display: block;
  height: 100%;
  background: var(--slate-400);
}

.bar-table .bar-best {
  background: var(--blue-700);
}

.approach-section {
  background: var(--surface);
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 2px solid var(--navy-900);
  border-bottom: 1px solid var(--line);
}

.principles-grid article {
  padding: 19px 18px 22px;
  border-right: 1px solid var(--line);
}

.principles-grid article:last-child {
  border-right: 0;
}

.principles-grid span {
  color: var(--blue-700);
  font-size: 10px;
  font-weight: 700;
}

.principles-grid h3 {
  margin-top: 8px;
  color: var(--navy-900);
  font-size: 15px;
  line-height: 1.3;
}

.principles-grid p {
  margin-top: 7px;
  color: var(--slate-700);
  font-size: 12px;
  line-height: 1.55;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(350px, 1.1fr);
  gap: 76px;
  align-items: start;
}

.profile-grid > div > p {
  margin-top: 15px;
}

.profile-list {
  border-top: 2px solid var(--navy-900);
}

.profile-list > div {
  display: grid;
  grid-template-columns: 145px 1fr;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.profile-list dt {
  color: var(--navy-900);
  font-size: 12px;
  font-weight: 700;
}

.profile-list dd {
  color: var(--slate-700);
  font-size: 12px;
}

.contact-section {
  padding: 44px 0;
  color: var(--white);
  background: var(--navy-900);
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  gap: 70px;
  align-items: start;
}

.contact-band .section-kicker {
  color: #8fc7e8;
}

.contact-band h2 {
  max-width: 620px;
  color: var(--white);
  font-size: 1.65rem;
}

.contact-links {
  border-top: 1px solid rgba(255, 255, 255, 0.35);
}

.contact-links a {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.contact-links a:hover {
  color: #a9d9f4;
}

.site-footer {
  padding: 17px 0;
  border-top: 1px solid var(--line);
  color: var(--slate-600);
  background: var(--white);
  font-size: 11px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

/* Case studies */

.case-hero,
.about-hero {
  padding: 48px 0 38px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.breadcrumb {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--blue-700);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.breadcrumb::before {
  content: "← ";
}

.case-title,
.about-title {
  max-width: 840px;
  margin-top: 10px;
  color: var(--navy-900);
  font-size: clamp(2.1rem, 4.7vw, 3.3rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.case-summary,
.about-lede {
  max-width: 790px;
  margin-top: 17px;
  color: var(--slate-700);
  font-size: 17px;
  line-height: 1.55;
}

.case-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 28px;
  border-top: 2px solid var(--navy-900);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.meta-item {
  min-width: 0;
  padding: 11px 13px;
  border-right: 1px solid var(--line);
}

.meta-item:last-child {
  border-right: 0;
}

.meta-item span {
  display: block;
  color: var(--slate-600);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.meta-item strong {
  display: block;
  margin-top: 3px;
  color: var(--navy-900);
  font-size: 12px;
  line-height: 1.4;
}

.case-feature {
  margin-top: 24px;
}

.case-feature .report-figure {
  max-width: 920px;
  margin-top: 8px;
}

.case-body {
  padding: 54px 0 68px;
}

.case-layout {
  display: grid;
  grid-template-columns: minmax(0, var(--text-width)) minmax(230px, 1fr);
  gap: 72px;
  align-items: start;
}

.case-layout > * {
  min-width: 0;
}

.content-section + .content-section {
  margin-top: 45px;
  padding-top: 42px;
  border-top: 1px solid var(--line);
}

.content-section h2 {
  color: var(--navy-900);
  font-size: 1.65rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.content-section h3 {
  color: var(--navy-900);
  font-size: 15px;
  line-height: 1.35;
}

.content-section p {
  margin-top: 13px;
  color: var(--slate-700);
}

.content-section ul {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--slate-700);
}

.content-section li {
  padding-left: 4px;
}

.content-section li + li {
  margin-top: 7px;
}

.content-section .button {
  margin-top: 20px;
}

.case-aside {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  border-top: 3px solid var(--navy-900);
}

.aside-block {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.aside-block h2 {
  color: var(--blue-700);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.aside-block p {
  margin-top: 4px;
  color: var(--slate-700);
  font-size: 12px;
  line-height: 1.5;
}

.metric-grid,
.source-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 20px;
  border-top: 2px solid var(--navy-900);
  border-bottom: 1px solid var(--line);
}

.metric-card,
.source-card {
  min-width: 0;
  padding: 14px;
  border-right: 1px solid var(--line);
}

.metric-card:last-child,
.source-card:last-child {
  border-right: 0;
}

.metric-card strong {
  display: block;
  color: var(--blue-700);
  font-size: 1.6rem;
  line-height: 1.15;
}

.metric-card span,
.source-card span {
  display: block;
  margin-top: 4px;
  color: var(--slate-600);
  font-size: 10px;
  line-height: 1.45;
}

.source-card strong {
  display: block;
  color: var(--navy-900);
  font-size: 12px;
}

.decision-list {
  margin-top: 19px;
  border-top: 2px solid var(--navy-900);
}

.decision-card {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 13px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.decision-number {
  color: var(--blue-700);
  font-size: 11px;
  font-weight: 700;
}

.decision-card p {
  margin-top: 5px;
  font-size: 14px;
}

.evidence-note {
  margin-top: 19px;
  padding: 13px 15px;
  border-left: 3px solid var(--blue-700);
  background: var(--blue-100);
}

.evidence-note strong {
  color: var(--navy-900);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.evidence-note p {
  margin-top: 4px;
  font-size: 13px;
}

.split-timeline {
  display: grid;
  grid-template-columns: 1.8fr 0.65fr 0.9fr;
  margin-top: 19px;
  border: 1px solid var(--line);
}

.split-block {
  padding: 12px;
  border-right: 1px solid var(--line);
  background: var(--surface);
}

.split-block:last-child {
  border-right: 0;
}

.split-block strong,
.split-block span {
  display: block;
}

.split-block strong {
  color: var(--navy-900);
  font-size: 11px;
}

.split-block span {
  margin-top: 3px;
  color: var(--slate-600);
  font-size: 10px;
}

.split-block.is-validation {
  border-top: 3px solid var(--blue-700);
  background: var(--blue-100);
}

.split-block.is-censored {
  background: repeating-linear-gradient(135deg, var(--surface), var(--surface) 6px, #e8eef2 6px, #e8eef2 12px);
}

.comparison-chart {
  margin-top: 19px;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.comparison-chart > p {
  margin-top: 2px;
  color: var(--slate-600);
  font-size: 10px;
}

.compare-row {
  display: grid;
  grid-template-columns: 154px 1fr 42px;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
  font-size: 11px;
}

.compare-track {
  height: 10px;
  border-left: 1px solid var(--navy-900);
  background: #dfe7ec;
}

.compare-fill {
  height: 100%;
  background: var(--slate-400);
}

.compare-fill.is-best {
  background: var(--blue-700);
}

.architecture-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 20px;
}

.architecture-step {
  position: relative;
  padding: 13px;
  border: 1px solid var(--line-dark);
  background: var(--surface);
}

.architecture-step:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -18px;
  color: var(--slate-400);
  content: "→";
  transform: translateY(-50%);
}

.architecture-step span,
.architecture-step strong,
.architecture-step small {
  display: block;
}

.architecture-step span {
  color: var(--blue-700);
  font-size: 9px;
  font-weight: 700;
}

.architecture-step strong {
  margin-top: 5px;
  color: var(--navy-900);
  font-size: 12px;
}

.architecture-step small {
  margin-top: 4px;
  color: var(--slate-600);
  font-size: 9px;
  line-height: 1.4;
}

.output-schema {
  margin-top: 18px;
  border-top: 2px solid var(--navy-900);
}

.output-schema > div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.output-schema dt {
  color: var(--navy-900);
  font-size: 12px;
  font-weight: 700;
}

.output-schema dd {
  color: var(--slate-700);
  font-size: 12px;
}

.next-project {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.next-project a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px 0;
  color: var(--navy-900);
  text-decoration: none;
}

.next-project span {
  color: var(--blue-700);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.next-project h2 {
  margin-top: 3px;
  font-size: 1.25rem;
}

.next-project .next-arrow {
  font-size: 1.25rem;
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 72px;
  align-items: end;
}

.about-lede {
  margin: 0;
  font-size: 16px;
}

.timeline-list {
  margin-top: 18px;
  border-top: 2px solid var(--navy-900);
}

.timeline-item {
  display: grid;
  grid-template-columns: 150px 1fr 118px;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-item dt {
  color: var(--navy-900);
  font-size: 12px;
  font-weight: 700;
}

.timeline-item dd,
.timeline-item time {
  color: var(--slate-700);
  font-size: 12px;
  line-height: 1.5;
}

.timeline-item time {
  text-align: right;
}

@media (max-width: 900px) {
  .hero-grid,
  .section-heading,
  .project-card,
  .profile-grid,
  .contact-band,
  .case-layout,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid,
  .section-heading,
  .project-card,
  .profile-grid,
  .contact-band,
  .case-layout,
  .about-grid {
    gap: 30px;
  }

  .profile-brief {
    max-width: 620px;
  }

  .project-card {
    padding: 24px;
  }

  .report-figure {
    width: 100%;
  }

  .case-aside {
    position: static;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid var(--line);
  }

  .aside-block {
    padding: 12px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .aside-block:last-child {
    border-right: 0;
  }
}

@media (max-width: 700px) {
  :root {
    --header-height: 56px;
  }

  body {
    font-size: 15px;
  }

  .container {
    width: min(calc(100% - 32px), var(--max-width));
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 55px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 14px;
    border-bottom: 1px solid var(--line);
    background: var(--white);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
  }

  .site-nav .nav-cta {
    margin-top: 8px;
    padding: 8px 11px;
    text-align: center;
  }

  .hero {
    padding: 42px 0 38px;
  }

  .hero h1 {
    font-size: clamp(2.05rem, 10.8vw, 2.65rem);
  }

  .hero-lede {
    font-size: 16px;
  }

  .section {
    padding: 48px 0;
  }

  .section-heading {
    margin-bottom: 24px;
  }

  .section-heading h2,
  .profile-grid h2 {
    font-size: 1.65rem;
  }

  .project-card {
    padding: 19px;
  }

  .project-copy h3 {
    font-size: 1.4rem;
  }

  .project-facts > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .process-row {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 14px;
  }

  .process-row i {
    justify-self: center;
    transform: rotate(90deg);
  }

  .process-node {
    min-height: 0;
  }

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

  .principles-grid article:nth-child(2) {
    border-right: 0;
  }

  .principles-grid article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .profile-list > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .contact-section {
    padding: 36px 0;
  }

  .case-hero,
  .about-hero {
    padding: 36px 0 30px;
  }

  .case-title,
  .about-title {
    font-size: clamp(2rem, 10.5vw, 2.55rem);
  }

  .case-summary {
    font-size: 16px;
  }

  .case-meta {
    grid-template-columns: 1fr 1fr;
  }

  .meta-item:nth-child(2) {
    border-right: 0;
  }

  .meta-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .case-body {
    padding: 42px 0 52px;
  }

  .case-aside {
    grid-template-columns: 1fr;
  }

  .aside-block {
    padding: 11px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric-grid,
  .source-grid {
    grid-template-columns: 1fr;
  }

  .metric-card,
  .source-card {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric-card:last-child,
  .source-card:last-child {
    border-bottom: 0;
  }

  .split-timeline {
    grid-template-columns: 1fr;
  }

  .split-block {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .compare-row {
    grid-template-columns: 120px 1fr 40px;
  }

  .architecture-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .architecture-step:not(:last-child)::after {
    top: auto;
    right: 50%;
    bottom: -18px;
    transform: translateX(50%) rotate(90deg);
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .timeline-item time {
    text-align: left;
  }

  .output-schema > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .footer-row {
    flex-direction: column;
    gap: 3px;
  }
}

@media (max-width: 430px) {
  .principles-grid {
    grid-template-columns: 1fr;
  }

  .principles-grid article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .data-panel-head,
  .data-row {
    grid-template-columns: 1fr 58px;
  }

  .data-panel-head strong,
  .data-row .spark {
    display: none;
  }

  .threshold-table > div {
    grid-template-columns: 28px 1fr;
  }

  .threshold-table small {
    display: none;
  }

  .bar-table > div {
    grid-template-columns: 92px 1fr 38px;
  }
}

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