@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans-semibold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  --ink: #0e1111;
  --ink-soft: #222726;
  --paper: #f4f1ea;
  --paper-raised: #faf8f3;
  --oxide: #b74d2c;
  --signal: #e97a4a;
  --muted: #626966;
  --rule: rgba(14, 17, 17, 0.22);
  --rule-light: rgba(244, 241, 234, 0.22);
  --grid: rgba(14, 17, 17, 0.055);
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --shell: min(94vw, 1580px);
  --reading: 760px;
  --header-height: 84px;
  color-scheme: light;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

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

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

body {
  min-width: 320px;
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: clamp(56px, 5vw, 88px) clamp(56px, 5vw, 88px);
  pointer-events: none;
  content: "";
}

::selection {
  background: var(--signal);
  color: var(--ink);
  text-shadow: none;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

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

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

h1,
h2,
h3 {
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.96;
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
}

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

.reading-progress {
  position: fixed;
  z-index: 120;
  inset: 0 0 auto;
  height: 3px;
  transform: scaleX(var(--reading-progress, 0));
  transform-origin: left;
  background: var(--signal);
  pointer-events: none;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: var(--header-height);
  border-bottom: 1px solid var(--rule);
  background: color-mix(in srgb, var(--paper) 91%, transparent);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 100%;
  gap: clamp(1rem, 3vw, 3rem);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 132px;
  height: auto;
}

.brand-label {
  margin-left: 0.9rem;
  padding-left: 0.9rem;
  border-left: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  line-height: 1.2;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(1rem, 2.25vw, 2.4rem);
}

.site-nav > a,
.language-list a {
  position: relative;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav > a::after,
.language-list a::after {
  position: absolute;
  right: 0;
  bottom: -0.35rem;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  transform-origin: right;
  background: currentColor;
  content: "";
  transition: transform 180ms ease;
}

.site-nav > a:hover::after,
.language-list a:hover::after,
.language-list a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.language-list {
  display: flex;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.language-list a {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.language-list a[aria-current="page"] {
  color: var(--oxide);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 20px;
  height: 1px;
  background: currentColor;
  content: "";
  transition: transform 180ms ease;
}

.menu-toggle span::before {
  transform: translateY(-6px);
}

.menu-toggle span::after {
  transform: translateY(5px);
}

.menu-toggle[aria-expanded="true"] span {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] span::before {
  transform: translateY(0) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span::after {
  transform: translateY(-1px) rotate(-45deg);
}

.eyebrow,
.meta-line,
.section-label,
.card-number,
.fact dt,
.toc-title,
.decision-number,
.scope-note strong,
.site-footer__meta,
.tag-list {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  line-height: 1.35;
  text-transform: uppercase;
}

.index-hero {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(280px, 4fr);
  min-height: calc(92svh - var(--header-height));
  border-bottom: 1px solid var(--ink);
}

.index-hero__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(3.5rem, 8vw, 8rem) clamp(1.5rem, 5vw, 6rem) clamp(3rem, 5vw, 5rem) max(3vw, calc((100vw - min(94vw, 1580px)) / 2));
}

.index-hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
}

.index-hero .eyebrow::before,
.article-kicker::before {
  width: 0.62rem;
  height: 0.62rem;
  flex: 0 0 auto;
  background: var(--oxide);
  content: "";
}

.index-hero h1 {
  max-width: 1120px;
  margin: clamp(4rem, 11vh, 9rem) 0 2.5rem;
  font-size: clamp(3.7rem, 8.3vw, 9.5rem);
  overflow-wrap: anywhere;
}

.title-stop {
  color: var(--oxide);
}

.index-hero__lead {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.15rem, 1.65vw, 1.7rem);
  line-height: 1.42;
}

.index-register {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
  padding: clamp(2rem, 4vw, 4rem);
  border-left: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.index-register__head,
.index-register__foot {
  display: flex;
  justify-content: space-between;
  color: #aeb4b0;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.index-register__map {
  position: relative;
  display: grid;
  align-content: center;
  gap: clamp(1.75rem, 4vh, 3.5rem);
  margin-block: 2rem;
}

.index-register__map::before {
  position: absolute;
  top: 15%;
  bottom: 15%;
  left: 1.2rem;
  width: 1px;
  background: var(--rule-light);
  content: "";
}

.register-node {
  position: relative;
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  align-items: center;
  gap: 1rem;
}

.register-node span:first-child {
  position: relative;
  z-index: 1;
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 1px solid var(--paper);
  background: var(--ink);
  color: var(--signal);
  font-family: var(--mono);
  font-size: 0.7rem;
}

.register-node strong {
  max-width: 15ch;
  font-size: clamp(1.15rem, 1.7vw, 1.6rem);
  font-weight: 400;
  line-height: 1.15;
}

.register-node:nth-child(2) span:first-child {
  background: var(--paper);
  color: var(--ink);
}

.register-node:nth-child(3) span:first-child {
  border-color: var(--oxide);
  background: var(--oxide);
  color: var(--paper);
}

.intro-section {
  padding: clamp(5rem, 10vw, 10rem) 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(180px, 3fr) minmax(0, 9fr);
  gap: clamp(2rem, 6vw, 7rem);
}

.intro-grid h2 {
  max-width: 15ch;
  margin-bottom: 2rem;
  font-size: clamp(3rem, 6vw, 7rem);
}

.intro-grid__body > p {
  max-width: 780px;
  color: var(--muted);
  font-size: clamp(1.15rem, 1.8vw, 1.6rem);
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(3rem, 7vw, 7rem);
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.principle {
  min-height: 260px;
  padding: 1.5rem;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.principle span {
  color: var(--oxide);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.principle h3 {
  margin: 4rem 0 1rem;
  font-size: clamp(1.5rem, 2vw, 2.2rem);
}

.principle p {
  max-width: 36ch;
  margin-bottom: 0;
  color: var(--muted);
}

.case-index {
  padding: 0 0 clamp(6rem, 12vw, 12rem);
}

.case-index__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-block: 1.25rem;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.case-list {
  display: grid;
  gap: 1px;
  background: var(--ink);
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.case-card {
  --card-bg: var(--paper-raised);
  --card-fg: var(--ink);
  --card-muted: var(--muted);
  display: grid;
  grid-template-columns: minmax(190px, 3fr) minmax(0, 9fr);
  min-height: clamp(500px, 56vw, 760px);
  background: var(--card-bg);
  color: var(--card-fg);
}

.case-card:nth-child(2) {
  --card-bg: var(--oxide);
  --card-fg: var(--paper);
  --card-muted: rgba(244, 241, 234, 0.76);
}

.case-card:nth-child(3) {
  --card-bg: var(--ink);
  --card-fg: var(--paper);
  --card-muted: #aeb4b0;
}

.case-card__rail {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.5rem, 3vw, 3rem);
  border-right: 1px solid currentColor;
}

.case-card__rail .card-number {
  color: var(--card-muted);
}

.card-schematic {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 240px;
}

.card-schematic::before,
.card-schematic::after {
  position: absolute;
  background: currentColor;
  opacity: 0.35;
  content: "";
}

.card-schematic::before {
  width: 1px;
  height: 70%;
}

.card-schematic::after {
  width: 70%;
  height: 1px;
}

.card-schematic span {
  position: absolute;
  z-index: 1;
  width: 1.1rem;
  height: 1.1rem;
  border: 1px solid currentColor;
  background: var(--card-bg);
}

.card-schematic span:nth-child(1) {
  top: 14%;
  left: calc(50% - 0.55rem);
}

.card-schematic span:nth-child(2) {
  top: calc(50% - 0.55rem);
  right: 14%;
  background: var(--signal);
}

.card-schematic span:nth-child(3) {
  bottom: 14%;
  left: calc(50% - 0.55rem);
}

.card-schematic span:nth-child(4) {
  top: calc(50% - 0.55rem);
  left: 14%;
}

.case-card__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(2rem, 5vw, 6rem);
}

.case-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--card-muted);
}

.case-card h2 {
  max-width: 15ch;
  margin: clamp(4rem, 9vw, 9rem) 0 2rem;
  font-size: clamp(3rem, 6.2vw, 7.4rem);
  overflow-wrap: anywhere;
}

.case-card__summary {
  max-width: 750px;
  color: var(--card-muted);
  font-size: clamp(1.05rem, 1.55vw, 1.45rem);
}

.case-card__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 3rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--card-muted);
}

.tag-list span {
  padding: 0.5rem 0.65rem;
  border: 1px solid currentColor;
}

.text-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid currentColor;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.text-link span {
  font-size: 1.3rem;
  transition: transform 180ms ease;
}

.text-link:hover span {
  transform: translate(0.2rem, -0.2rem);
}

.site-cta {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(240px, 4fr);
  background: var(--oxide);
  color: var(--paper);
}

.site-cta__copy {
  padding: clamp(4rem, 8vw, 9rem) max(3vw, calc((100vw - min(94vw, 1580px)) / 2));
}

.site-cta h2 {
  max-width: 14ch;
  margin-bottom: 2rem;
  font-size: clamp(3rem, 6vw, 7rem);
}

.site-cta p {
  max-width: 650px;
  color: rgba(244, 241, 234, 0.82);
  font-size: clamp(1.05rem, 1.5vw, 1.4rem);
}

.site-cta__action {
  display: grid;
  place-items: center;
  min-height: 300px;
  border-left: 1px solid var(--paper);
  color: var(--paper);
}

.site-cta__action a {
  display: grid;
  width: min(70%, 260px);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.site-cta__action a:hover {
  transform: rotate(-3deg);
  background: var(--paper);
  color: var(--oxide);
}

.article-hero {
  border-bottom: 1px solid var(--ink);
}

.article-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(280px, 4fr);
}

.article-hero__copy {
  min-width: 0;
  padding: clamp(4rem, 8vw, 8rem) clamp(2rem, 5vw, 6rem) clamp(3rem, 6vw, 6rem) 0;
}

.article-kicker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
}

.article-hero h1 {
  max-width: 15ch;
  margin: clamp(4rem, 9vw, 8rem) 0 2rem;
  font-size: clamp(3.4rem, 7vw, 8rem);
  overflow-wrap: anywhere;
}

.article-hero__summary {
  max-width: 820px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.15rem, 1.8vw, 1.65rem);
  line-height: 1.42;
}

.article-hero__facts {
  display: grid;
  align-content: end;
  border-left: 1px solid var(--ink);
  background: rgba(250, 248, 243, 0.75);
}

.fact {
  padding: clamp(1.35rem, 2.2vw, 2rem);
  border-top: 1px solid var(--ink);
}

.fact:first-child {
  border-top: 0;
}

.fact dt {
  margin-bottom: 0.6rem;
  color: var(--oxide);
}

.fact dd {
  margin: 0;
  font-size: clamp(1rem, 1.4vw, 1.3rem);
}

.article-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--ink);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.article-meta-bar__group {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.case-layout {
  display: grid;
  grid-template-columns: minmax(220px, 3fr) minmax(0, 9fr);
  gap: clamp(3rem, 7vw, 8rem);
  padding-block: clamp(5rem, 10vw, 10rem);
}

.case-toc {
  align-self: start;
  position: sticky;
  top: calc(var(--header-height) + 2rem);
}

.toc-title {
  display: block;
  margin-bottom: 1.25rem;
  color: var(--oxide);
}

.case-toc ol {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ink);
  list-style: none;
}

.case-toc li {
  border-bottom: 1px solid var(--rule);
}

.case-toc a {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.65rem;
  padding-block: 0.8rem;
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: none;
}

.case-toc a:hover,
.case-toc a[aria-current="true"] {
  color: var(--ink);
}

.case-toc a span:first-child {
  color: var(--oxide);
  font-family: var(--mono);
  font-size: 0.68rem;
}

.article-body {
  min-width: 0;
}

.story-section {
  max-width: var(--reading);
  margin-bottom: clamp(5rem, 9vw, 9rem);
}

.story-section h2 {
  margin-bottom: 2rem;
  font-size: clamp(2.6rem, 5vw, 5.5rem);
  overflow-wrap: anywhere;
  hyphens: auto;
}

.story-section p,
.story-section li {
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 1.45vw, 1.28rem);
  line-height: 1.7;
}

.story-section p + p {
  margin-top: 1.4rem;
}

.constraint-list {
  margin: 2.5rem 0 0;
  padding: 0;
  border-top: 1px solid var(--ink);
  list-style: none;
}

.constraint-list li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--rule);
}

.constraint-list li::before {
  color: var(--oxide);
  font-family: var(--mono);
  font-size: 0.75rem;
  content: counter(list-item, decimal-leading-zero);
}

.architecture-section {
  max-width: none;
}

.architecture-frame {
  margin-top: 3rem;
  padding: clamp(1.5rem, 4vw, 4rem);
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.architecture-frame svg {
  width: 100%;
  height: auto;
}

.architecture-frame figcaption {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule-light);
  color: #aeb4b0;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.decision-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 3rem;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.decision {
  min-width: 0;
  padding: clamp(1.3rem, 2.4vw, 2.2rem);
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.decision-number {
  color: var(--oxide);
}

.decision h3 {
  margin: 4rem 0 1.25rem;
  font-size: clamp(1.5rem, 2.3vw, 2.25rem);
}

.decision p {
  font-size: 1rem;
  line-height: 1.58;
}

.decision-tradeoff {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  color: var(--muted) !important;
}

.scope-note {
  max-width: var(--reading);
  margin: -2rem 0 clamp(6rem, 10vw, 10rem);
  padding: 1.5rem;
  border: 1px solid var(--oxide);
  background: color-mix(in srgb, var(--oxide) 6%, var(--paper));
}

.scope-note strong {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--oxide);
}

.scope-note p {
  margin: 0;
  color: var(--muted);
}

.article-next {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 2rem;
  padding-block: clamp(4rem, 7vw, 7rem);
  border-top: 1px solid var(--ink);
}

.article-next span {
  color: var(--muted);
}

.article-next h2 {
  max-width: 18ch;
  margin: 1rem 0 0;
  font-size: clamp(2.4rem, 5vw, 5.3rem);
  overflow-wrap: anywhere;
  hyphens: auto;
}

.article-next a {
  font-size: clamp(2rem, 4vw, 4rem);
  text-decoration: none;
}

.not-found {
  display: grid;
  min-height: calc(100svh - var(--header-height));
  align-content: center;
  padding-block: 5rem;
}

.not-found__code {
  color: var(--oxide);
  font-family: var(--mono);
  font-size: 1rem;
}

.not-found h1 {
  max-width: 12ch;
  margin: 3rem 0 2rem;
  font-size: clamp(4rem, 10vw, 11rem);
}

.not-found p {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.25rem;
}

.site-footer {
  background: var(--ink);
  color: var(--paper);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(250px, 5fr);
  min-height: 360px;
}

.site-footer__brand,
.site-footer__links {
  padding: clamp(2rem, 5vw, 5rem) 0;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-right: clamp(2rem, 5vw, 6rem);
}

.site-footer__brand img {
  width: min(340px, 70%);
}

.site-footer__brand p {
  max-width: 440px;
  margin-bottom: 0;
  color: #aeb4b0;
}

.site-footer__links {
  display: grid;
  align-content: space-between;
  padding-left: clamp(2rem, 5vw, 6rem);
  border-left: 1px solid var(--rule-light);
}

.site-footer__links nav {
  display: grid;
  gap: 0.85rem;
}

.site-footer__links a {
  width: fit-content;
}

.site-footer__meta {
  color: #8e9591;
}

@media (max-width: 1050px) {
  .index-hero,
  .article-hero__inner {
    grid-template-columns: minmax(0, 7fr) minmax(260px, 5fr);
  }

  .case-card {
    grid-template-columns: minmax(150px, 2.5fr) minmax(0, 9.5fr);
  }

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

  .decision {
    min-height: 0;
  }

  .decision h3 {
    margin-top: 2rem;
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 72px;
    --shell: min(92vw, 720px);
  }

  body.menu-open {
    overflow: hidden;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .brand img {
    width: 108px;
  }

  .brand-label {
    font-size: 0.6rem;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    z-index: 99;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: grid;
    max-height: calc(100svh - var(--header-height));
    justify-items: start;
    gap: 1.5rem;
    padding: 2rem 4vw 2.5rem;
    overflow-y: auto;
    border-bottom: 1px solid var(--ink);
    background: var(--paper);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-0.75rem);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms;
  }

  .site-nav[data-open="true"] {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .no-js .site-header {
    position: relative;
    height: auto;
  }

  .no-js .header-inner {
    grid-template-columns: 1fr;
    padding-block: 1rem;
  }

  .no-js .menu-toggle {
    display: none;
  }

  .no-js .site-nav {
    position: static;
    display: flex;
    max-height: none;
    flex-wrap: wrap;
    grid-column: 1 / -1;
    padding: 1rem 0 0;
    border: 0;
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .site-nav > a {
    font-size: 1.4rem;
  }

  .language-list {
    width: 100%;
    padding-top: 1.25rem;
    border-top: 1px solid var(--rule);
  }

  .language-list a {
    font-size: 0.8rem;
  }

  .index-hero,
  .article-hero__inner,
  .site-cta,
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .index-hero__copy {
    min-height: calc(78svh - var(--header-height));
    padding-inline: 4vw;
  }

  .index-register {
    min-height: 560px;
    border-left: 0;
  }

  .intro-grid,
  .case-layout {
    grid-template-columns: 1fr;
  }

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

  .principle {
    min-height: 0;
  }

  .principle h3 {
    margin-top: 2.5rem;
  }

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

  .case-card__rail {
    min-height: 250px;
    border-right: 0;
    border-bottom: 1px solid currentColor;
  }

  .card-schematic {
    min-height: 160px;
  }

  .case-card h2 {
    margin-top: 4rem;
  }

  .site-cta__action {
    border-top: 1px solid var(--paper);
    border-left: 0;
  }

  .article-hero__copy {
    padding-right: 0;
  }

  .article-hero__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--ink);
    border-left: 0;
  }

  .fact:nth-child(2) {
    border-top: 0;
  }

  .fact:nth-child(even) {
    border-left: 1px solid var(--ink);
  }

  .case-toc {
    position: static;
  }

  .case-toc ol {
    columns: 2;
    column-gap: 2rem;
  }

  .site-footer__links {
    padding-left: 0;
    border-top: 1px solid var(--rule-light);
    border-left: 0;
  }
}

@media (max-width: 560px) {
  .brand-label {
    display: none;
  }

  .index-hero h1,
  .article-hero h1 {
    font-size: clamp(3.2rem, 15vw, 5.3rem);
  }

  .case-card__body {
    padding: 1.5rem;
  }

  .case-card h2 {
    font-size: clamp(2.7rem, 13vw, 4.2rem);
  }

  .case-card__foot,
  .article-meta-bar,
  .article-next {
    align-items: flex-start;
    flex-direction: column;
  }

  .case-card__foot,
  .article-next {
    display: flex;
  }

  .article-hero__facts {
    grid-template-columns: 1fr;
  }

  .fact,
  .fact:nth-child(2),
  .fact:nth-child(even) {
    border-top: 1px solid var(--ink);
    border-left: 0;
  }

  .case-toc ol {
    columns: 1;
  }

  .architecture-frame {
    margin-inline: -4vw;
    border-right: 0;
    border-left: 0;
  }
}

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

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

@media print {
  .site-header,
  .reading-progress,
  .case-toc,
  .site-cta,
  .site-footer,
  .article-next {
    display: none !important;
  }

  body,
  .architecture-frame {
    background: #fff;
    color: #000;
  }

  body::before {
    display: none;
  }

  .case-layout,
  .article-hero__inner {
    display: block;
  }

  .article-hero__facts {
    grid-template-columns: repeat(2, 1fr);
    border: 1px solid #000;
  }

  a {
    text-decoration: none;
  }
}
