:root {
  color-scheme: light;
  --frost: #eef3f4;
  --porcelain: #fafcfb;
  --graphite: #152128;
  --graphite-soft: #26363e;
  --violet: #51486b;
  --violet-light: #dad6e2;
  --aluminium: #aebcc1;
  --aluminium-light: #d9e2e4;
  --oxide: #b65236;
  --oxide-dark: #8e3825;
  --line: #87979d;
  --body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  --max: 1180px;
  --prose: 680px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--porcelain);
  color: var(--graphite);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

a:hover {
  text-decoration-thickness: 2px;
}

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

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 0.65rem 0.9rem;
  transform: translateY(-160%);
  background: var(--graphite);
  color: white;
  font-weight: 750;
}

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

.masthead {
  position: relative;
  z-index: 10;
  display: flex;
  width: min(calc(100% - 40px), var(--max));
  min-height: 74px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid var(--aluminium);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 30px;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}

.brand-mark i {
  height: 18px;
  border: 1px solid var(--graphite);
  background: var(--frost);
}

.brand-mark i:nth-child(2) {
  background: var(--violet);
}

.brand-mark i:nth-child(3) {
  background: var(--oxide);
}

.masthead nav,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  font-size: 0.83rem;
  font-weight: 700;
}

.masthead nav a {
  text-decoration: none;
}

.masthead nav a:hover {
  text-decoration: underline;
}

.language-switch {
  min-width: 86px;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--graphite);
  text-align: center;
}

.language-switch:hover {
  background: var(--graphite);
  color: white;
  text-decoration: none !important;
}

.hero {
  display: grid;
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: clamp(4.5rem, 10vw, 8rem) 0 0;
  grid-template-columns: minmax(0, 1fr) 310px;
  column-gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
}

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

.eyebrow {
  margin: 0 0 1rem;
  color: var(--violet);
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  line-height: 1.25;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 860;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

h1 {
  max-width: 950px;
  margin-bottom: 2rem;
  font-size: clamp(3.5rem, 6.5vw, 5.75rem);
  text-transform: uppercase;
}

h1 span {
  color: var(--violet);
}

h2 {
  margin-bottom: 1.3rem;
  font-size: clamp(2.5rem, 5.2vw, 4.8rem);
}

h3 {
  font-size: 1.5rem;
}

.hero-deck {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(1.22rem, 2.2vw, 1.55rem);
  line-height: 1.45;
}

.hero-boundary {
  position: relative;
  padding: 1.35rem 1.25rem 1.15rem;
  border-top: 4px solid var(--violet);
  border-right: 1px solid var(--aluminium);
  border-bottom: 1px solid var(--aluminium);
  border-left: 1px solid var(--aluminium);
  background: var(--frost);
}

.status-light {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 10px;
  height: 10px;
  border: 2px solid var(--porcelain);
  border-radius: 50%;
  background: var(--oxide);
  box-shadow: 0 0 0 1px var(--oxide-dark);
}

.hero-boundary p {
  margin-bottom: 1.35rem;
  padding-right: 1.4rem;
  font-size: 1rem;
  font-weight: 720;
  line-height: 1.5;
}

.hero-boundary small {
  display: block;
  color: var(--graphite-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-transform: uppercase;
}

.metrics-strip {
  display: grid;
  margin: clamp(4rem, 8vw, 7rem) 0 0;
  grid-column: 1 / -1;
  grid-template-columns: 0.7fr 1.7fr 0.7fr 0.8fr 0.9fr;
  border-top: 1px solid var(--graphite);
  border-bottom: 1px solid var(--graphite);
}

.metric {
  display: flex;
  min-height: 124px;
  padding: 1.1rem 1rem;
  flex-direction: column-reverse;
  justify-content: space-between;
  border-right: 1px solid var(--aluminium);
}

.metric:first-child {
  padding-left: 0;
}

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

.metric dt {
  max-width: 140px;
  font-family: var(--display);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
}

.metric dd {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 850;
  letter-spacing: -0.04em;
  line-height: 1;
}

.metric-total dd {
  color: var(--violet);
}

.metric-unknown {
  padding-right: 0;
  background: var(--graphite);
  color: white;
}

.metric-unknown dt,
.metric-unknown dd {
  padding-left: 1rem;
}

.section {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: clamp(5.5rem, 11vw, 10rem) 0;
}

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

.section-heading > p:not(.eyebrow),
.together-copy > p:not(.eyebrow),
.unknown-copy > p:not(.eyebrow),
.method-copy > p:not(.eyebrow) {
  font-size: 1.09rem;
}

.prose-width {
  max-width: var(--prose);
}

.institution-circuit {
  display: grid;
  margin: 4rem 0 0;
  padding: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  border: 1px solid var(--graphite);
}

.circuit-node {
  position: relative;
  display: flex;
  min-height: 165px;
  padding: 1.25rem;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--graphite);
  background: var(--frost);
}

.circuit-node:last-child {
  border-right: 0;
}

.circuit-index {
  color: var(--violet);
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 850;
}

.circuit-node strong {
  max-width: 210px;
  font-family: var(--display);
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  line-height: 1.1;
}

.circuit-arrow {
  position: absolute;
  z-index: 1;
  top: calc(50% - 17px);
  right: -17px;
  display: grid;
  width: 34px;
  height: 34px;
  border: 1px solid var(--graphite);
  border-radius: 50%;
  place-items: center;
  background: var(--porcelain);
  font-weight: 850;
}

.bench-section {
  width: min(calc(100% - 24px), 1320px);
}

.bench-heading {
  display: grid;
  width: min(calc(100% - 16px), var(--max));
  margin: 0 auto 4rem;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.75fr);
  gap: 4rem;
  align-items: end;
}

.bench-heading > div {
  max-width: var(--prose);
}

.evidence-key {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--graphite);
  list-style: none;
}

.evidence-key li {
  display: grid;
  padding: 0.65rem 0;
  grid-template-columns: 14px 136px minmax(0, 1fr);
  gap: 0.55rem;
  border-bottom: 1px solid var(--aluminium);
  align-items: start;
}

.evidence-key strong {
  font-size: 0.8rem;
  line-height: 1.35;
}

.evidence-key li > span:last-child {
  color: var(--graphite-soft);
  font-size: 0.7rem;
  line-height: 1.45;
}

.key-led {
  width: 9px;
  height: 9px;
  margin-top: 0.2rem;
  border-radius: 50%;
  background: var(--violet);
}

.key-led-capability {
  border: 2px solid var(--violet);
  background: transparent;
}

.key-led-unknown {
  background: var(--oxide);
}

.lab-frame {
  padding: 0 20px 20px;
  border: 2px solid var(--graphite);
  background: var(--aluminium-light);
  box-shadow: 8px 8px 0 var(--aluminium);
}

.lab-rail {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  color: var(--graphite-soft);
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.rack-grid {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
}

.rack-slot {
  min-width: 0;
}

.rack-module {
  display: flex;
  width: 100%;
  min-height: 286px;
  padding: 0.9rem;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--porcelain);
  color: var(--graphite);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease, background-color 120ms ease;
}

.rack-module:hover {
  border-color: var(--violet);
  transform: translateY(-2px);
}

.rack-module[aria-pressed="true"] {
  border: 3px solid var(--violet);
  padding: calc(0.9rem - 2px);
  background: white;
}

.rack-slot-unknown .rack-module {
  border-color: var(--oxide);
  background: var(--graphite);
  color: white;
}

.rack-slot-unknown .rack-module[aria-pressed="true"] {
  border-color: var(--oxide);
}

.module-topline,
.module-value-row {
  display: flex;
  align-items: center;
}

.module-topline {
  margin-bottom: 1rem;
  gap: 0.4rem;
}

.module-led {
  width: 9px;
  height: 9px;
  border: 2px solid var(--violet);
  border-radius: 50%;
}

.rack-slot-unknown .module-led {
  border-color: var(--oxide);
  background: var(--oxide);
}

.module-stage {
  overflow: hidden;
  color: var(--violet);
  font-family: var(--display);
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.rack-slot-unknown .module-stage {
  color: #f0b8a8;
}

.module-lot {
  margin-left: auto;
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1;
}

.module-title {
  min-height: 4.2em;
  font-family: var(--display);
  font-size: clamp(1rem, 1.3vw, 1.22rem);
  font-weight: 850;
  line-height: 1.15;
}

.module-product {
  min-height: 3.2em;
  margin: 0.55rem 0;
  color: var(--graphite-soft);
  font-size: 0.76rem;
  font-weight: 680;
  line-height: 1.35;
}

.rack-slot-unknown .module-product,
.rack-slot-unknown .module-supplier {
  color: #d7e0e2;
}

.module-evidence {
  width: fit-content;
  margin-bottom: auto;
  padding: 0.18rem 0.42rem;
  border: 1px solid var(--violet);
  color: var(--violet);
  font-family: var(--display);
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  line-height: 1.25;
  text-transform: uppercase;
}

.module-evidence-capability {
  border-style: dashed;
}

.module-evidence-unknown {
  border-color: var(--oxide);
  color: #f0b8a8;
}

.module-value-row {
  margin-top: 1.25rem;
  gap: 0.5rem;
  justify-content: space-between;
  font-size: 0.69rem;
  line-height: 1.2;
}

.module-value-row strong {
  font-family: var(--display);
  font-size: 0.8rem;
  white-space: nowrap;
}

.module-supplier {
  overflow: hidden;
  color: var(--graphite-soft);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.value-track {
  display: block;
  height: 5px;
  margin-top: 0.65rem;
  background: var(--aluminium-light);
}

.value-track span {
  display: block;
  height: 100%;
  background: var(--violet);
}

.value-fill-1 { width: 19.06%; }
.value-fill-2 { width: 2%; }
.value-fill-3 { width: 11.87%; }
.value-fill-4 { width: 9.75%; }
.value-fill-5 { width: 7.41%; }
.value-fill-6 { width: 34.7%; }
.value-fill-7 { width: 19.73%; }
.value-fill-8 { width: 100%; }
.value-fill-9 { width: 14.29%; }
.value-fill-10 { width: 37.53%; }

.rack-slot-unknown .value-track {
  background: var(--graphite-soft);
}

.rack-slot-unknown .value-track span {
  background: var(--oxide);
}

.bench-inspector {
  display: grid;
  min-height: 180px;
  margin-top: 14px;
  padding: 1.4rem 1.5rem;
  grid-template-columns: 1fr 1.15fr 1.5fr;
  gap: 2rem;
  border: 1px solid var(--graphite);
  background: var(--frost);
}

.bench-inspector span {
  display: block;
}

.inspector-kicker,
.inspector-role > span,
.inspector-fields span {
  margin-bottom: 0.35rem;
  color: var(--violet);
  font-family: var(--display);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.inspector-identity > strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.4vw, 2.2rem);
  line-height: 1.05;
}

.inspector-role > strong {
  display: block;
  max-width: 300px;
  font-size: 1rem;
  line-height: 1.35;
}

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

.inspector-fields strong {
  display: block;
  font-family: var(--display);
  font-size: 0.88rem;
  line-height: 1.3;
}

.inspector-evidence {
  display: grid;
  margin: 0;
  padding-top: 1rem;
  grid-column: 1 / -1;
  grid-template-columns: 210px 1fr;
  gap: 1rem;
  border-top: 1px solid var(--aluminium);
  font-size: 0.8rem;
  line-height: 1.45;
}

.inspector-evidence strong {
  color: var(--violet);
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.editorial-note {
  display: grid;
  width: min(calc(100% - 16px), var(--max));
  margin: 2rem auto 0;
  grid-template-columns: 36px minmax(0, 760px);
  gap: 0.8rem;
  align-items: start;
}

.editorial-note > span {
  display: grid;
  width: 30px;
  height: 30px;
  border: 1px solid var(--violet);
  border-radius: 50%;
  place-items: center;
  color: var(--violet);
  font-family: serif;
  font-weight: 800;
}

.editorial-note p {
  margin: 0;
  color: var(--graphite-soft);
  font-size: 0.83rem;
}

.together-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.72fr);
  gap: clamp(3rem, 8vw, 8rem);
}

.together-copy {
  max-width: var(--prose);
}

.test-flow {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--graphite);
  list-style: none;
}

.test-flow li {
  display: grid;
  min-height: 84px;
  padding: 1rem 0;
  grid-template-columns: 50px minmax(0, 1fr);
  border-bottom: 1px solid var(--aluminium);
  align-items: center;
}

.test-flow li span {
  color: var(--violet);
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 850;
}

.test-flow li strong {
  font-family: var(--display);
  font-size: 1.2rem;
  line-height: 1.2;
}

.unknown-section {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1fr);
  gap: clamp(3rem, 9vw, 9rem);
  align-items: center;
}

.unknown-plate {
  position: relative;
  display: flex;
  min-height: 410px;
  padding: 2.4rem;
  flex-direction: column;
  border: 2px solid var(--oxide);
  background: var(--graphite);
  color: white;
}

.plate-screws::before,
.plate-screws::after {
  position: absolute;
  top: 18px;
  width: 9px;
  height: 9px;
  border: 1px solid var(--aluminium);
  border-radius: 50%;
  content: "";
}

.plate-screws::before {
  left: 18px;
}

.plate-screws::after {
  right: 18px;
}

.plate-number {
  margin-left: auto;
  font-family: var(--display);
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 1;
}

.unknown-plate > strong {
  max-width: 430px;
  margin: auto 0 1.4rem;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
}

.plate-state {
  width: fit-content;
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--oxide);
  color: #f0b8a8;
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.plate-values {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--graphite-soft);
  color: #d7e0e2;
  font-family: var(--display);
  font-size: 0.7rem;
  font-weight: 780;
  letter-spacing: 0.08em;
}

.unknown-copy {
  max-width: var(--prose);
}

.missing-fields {
  display: grid;
  margin: 2rem 0 0;
  padding: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--graphite);
  list-style: none;
}

.missing-fields li {
  display: flex;
  min-height: 56px;
  padding: 0.65rem;
  gap: 0.6rem;
  border-right: 1px solid var(--aluminium);
  border-bottom: 1px solid var(--aluminium);
  align-items: center;
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 780;
  text-transform: uppercase;
}

.missing-fields li:nth-child(even) {
  border-right: 0;
}

.missing-fields li span {
  display: grid;
  width: 24px;
  height: 24px;
  border: 1px solid var(--oxide);
  place-items: center;
  color: var(--oxide-dark);
}

.limits-list {
  display: grid;
  margin: 4rem 0 0;
  padding: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--graphite);
  border-left: 1px solid var(--graphite);
  list-style: none;
}

.limits-list li {
  display: grid;
  min-height: 180px;
  padding: 1.5rem;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 1rem;
  border-right: 1px solid var(--graphite);
  border-bottom: 1px solid var(--graphite);
}

.limit-index {
  color: var(--violet);
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 850;
}

.limits-list h3 {
  margin-bottom: 0.6rem;
  font-size: 1.5rem;
}

.limits-list p {
  max-width: 400px;
  margin: 0;
  font-size: 0.95rem;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 4rem;
  border-top: 2px solid var(--graphite);
  border-bottom: 2px solid var(--graphite);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  line-height: 1.35;
}

caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

th,
td {
  padding: 0.85rem 0.7rem;
  border-bottom: 1px solid var(--aluminium);
  text-align: left;
  vertical-align: top;
}

thead th {
  color: var(--violet);
  font-family: var(--display);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

tbody tr:nth-child(even) {
  background: var(--frost);
}

tbody td:first-child {
  width: 58px;
  font-family: var(--display);
  font-size: 1.05rem;
}

.number {
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.table-state {
  display: inline-block;
  padding: 0.18rem 0.36rem;
  border: 1px solid var(--violet);
  color: var(--violet);
  font-family: var(--display);
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
}

.table-state-capability {
  border-style: dashed;
}

.table-state-unknown {
  border-color: var(--oxide);
  color: var(--oxide-dark);
}

tfoot th,
tfoot td {
  padding-top: 1.2rem;
  padding-bottom: 1.2rem;
  border: 0;
  font-family: var(--display);
  font-size: 1.15rem;
}

tfoot th {
  text-align: right;
}

.method-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.75fr);
  gap: 3rem 7rem;
}

.method-copy {
  max-width: var(--prose);
}

.checked {
  display: flex;
  margin-top: 2rem;
  gap: 0.6rem;
  align-items: center;
  color: var(--violet);
  font-size: 0.8rem !important;
  font-weight: 800;
}

.checked span {
  display: grid;
  width: 25px;
  height: 25px;
  border: 1px solid var(--violet);
  border-radius: 50%;
  place-items: center;
}

.sources-panel {
  padding-top: 0.35rem;
}

.sources-panel h3 {
  margin-bottom: 1.4rem;
}

.source-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--graphite);
  list-style: none;
}

.source-list li {
  display: grid;
  padding: 0.85rem 0;
  grid-template-columns: 36px minmax(0, 1fr);
  border-bottom: 1px solid var(--aluminium);
  font-size: 0.84rem;
  line-height: 1.4;
}

.source-list li > span {
  color: var(--violet);
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 850;
}

.external {
  margin-left: 0.35rem;
  color: var(--violet);
}

.related-project {
  position: relative;
  display: block;
  padding: 1.4rem 4rem 1.4rem 1.5rem;
  grid-column: 1 / -1;
  border: 1px solid var(--graphite);
  background: var(--frost);
  text-decoration: none;
}

.related-project > span:first-child {
  color: var(--violet);
  font-family: var(--display);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.related-project strong {
  display: block;
  margin: 0.25rem 0 0.45rem;
  font-family: var(--display);
  font-size: 2rem;
}

.related-project p {
  max-width: 680px;
  margin: 0;
  font-size: 0.83rem;
}

.related-arrow {
  position: absolute;
  top: calc(50% - 24px);
  right: 1.5rem;
  display: grid;
  width: 48px;
  height: 48px;
  border: 1px solid var(--graphite);
  border-radius: 50%;
  place-items: center;
  font-size: 1.3rem;
}

.related-project:hover {
  background: var(--violet-light);
}

.site-footer {
  display: flex;
  width: min(calc(100% - 40px), var(--max));
  min-height: 140px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid var(--graphite);
}

.site-footer p {
  margin: 0;
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.not-found {
  display: grid;
  min-height: 100vh;
  place-items: center;
  background: var(--frost);
}

.not-found main {
  width: min(calc(100% - 40px), 680px);
  padding: 3rem;
  border: 2px solid var(--graphite);
  background: var(--porcelain);
  box-shadow: 8px 8px 0 var(--aluminium);
}

.not-found h1 {
  margin: 1rem 0;
  font-size: clamp(3rem, 8vw, 6rem);
}

.not-found a {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--graphite);
  font-weight: 750;
  text-decoration: none;
}

.error-code {
  color: var(--violet);
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.14em;
}

@media (max-width: 980px) {
  .masthead nav a:not(.language-switch) {
    display: none;
  }

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

  .hero-boundary {
    max-width: 680px;
    margin-top: 2.5rem;
  }

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

  .metric-total dd {
    font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  }

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

  .circuit-node:nth-child(2) {
    border-right: 0;
  }

  .circuit-node:nth-child(-n + 2) {
    border-bottom: 1px solid var(--graphite);
  }

  .circuit-node:nth-child(2) .circuit-arrow {
    top: auto;
    right: calc(50% - 17px);
    bottom: -17px;
    transform: rotate(90deg);
  }

  .bench-heading,
  .together-section,
  .unknown-section,
  .method-section {
    grid-template-columns: 1fr;
  }

  .bench-heading {
    gap: 2.5rem;
  }

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

  .rack-slot-10 {
    grid-column: 2;
  }

  .rack-slot-9 {
    grid-column: 1;
  }

  .bench-inspector {
    grid-template-columns: 0.8fr 1fr;
  }

  .inspector-fields {
    grid-column: 1 / -1;
  }

  .unknown-plate {
    max-width: 640px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .masthead,
  .hero,
  .section,
  .site-footer {
    width: min(calc(100% - 28px), var(--max));
  }

  .masthead {
    min-height: 66px;
  }

  .brand {
    font-size: 0.65rem;
  }

  .brand-mark {
    width: 25px;
  }

  .brand-mark i {
    height: 15px;
  }

  .language-switch {
    min-width: auto;
    padding: 0.35rem 0.55rem;
  }

  .hero {
    padding-top: 4rem;
  }

  h1 {
    margin-bottom: 1.4rem;
    font-size: clamp(2.85rem, 14vw, 4.2rem);
  }

  h2 {
    font-size: clamp(2.35rem, 12vw, 3.5rem);
  }

  .hero-deck {
    font-size: 1.15rem;
  }

  .hero-boundary {
    margin-top: 2rem;
  }

  .metrics-strip {
    margin-top: 3.5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric {
    min-height: 106px;
    padding: 0.9rem;
    border-bottom: 1px solid var(--aluminium);
  }

  .metric:nth-child(2),
  .metric:nth-child(4) {
    border-right: 0;
  }

  .metric:first-child {
    padding-left: 0.9rem;
  }

  .metric:last-child {
    grid-column: 1 / -1;
    border-bottom: 0;
  }

  .metric dd {
    font-size: 2rem;
  }

  .metric-total dd {
    font-size: 1.7rem;
  }

  .section {
    padding: 5rem 0;
  }

  .institution-circuit {
    margin-top: 2.5rem;
    grid-template-columns: 1fr;
  }

  .circuit-node {
    min-height: 124px;
    border-right: 0;
    border-bottom: 1px solid var(--graphite);
  }

  .circuit-node:last-child {
    border-bottom: 0;
  }

  .circuit-arrow,
  .circuit-node:nth-child(2) .circuit-arrow {
    top: auto;
    right: calc(50% - 17px);
    bottom: -17px;
    transform: rotate(90deg);
  }

  .bench-section {
    width: 100%;
  }

  .bench-heading,
  .editorial-note {
    width: calc(100% - 28px);
  }

  .evidence-key li {
    grid-template-columns: 14px 120px minmax(0, 1fr);
  }

  .lab-frame {
    padding: 0 10px 10px;
    border-right: 0;
    border-left: 0;
    box-shadow: none;
  }

  .lab-rail {
    padding: 0 0.25rem;
  }

  .lab-rail span:nth-child(2) {
    display: none;
  }

  .rack-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .rack-slot-9,
  .rack-slot-10 {
    grid-column: auto;
  }

  .rack-module {
    min-height: 228px;
  }

  .module-title {
    min-height: auto;
    font-size: 1.22rem;
  }

  .module-product {
    min-height: auto;
  }

  .bench-inspector {
    padding: 1rem;
    grid-template-columns: 1fr;
    gap: 1.3rem;
  }

  .inspector-fields {
    grid-template-columns: 1fr;
    grid-column: auto;
  }

  .inspector-evidence {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .unknown-plate {
    min-height: 340px;
    padding: 1.7rem;
  }

  .plate-number {
    font-size: 3.5rem;
  }

  .missing-fields,
  .limits-list {
    grid-template-columns: 1fr;
  }

  .missing-fields li,
  .missing-fields li:nth-child(even) {
    border-right: 0;
  }

  .limits-list li {
    min-height: 150px;
  }

  .table-wrap {
    overflow: visible;
  }

  table,
  thead,
  tbody,
  tfoot,
  tr,
  th,
  td {
    display: block;
  }

  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  tbody tr {
    padding: 1rem 0;
    border-bottom: 1px solid var(--graphite);
  }

  tbody td {
    display: grid;
    padding: 0.42rem 0;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 0.75rem;
    border: 0;
  }

  tbody td::before {
    color: var(--violet);
    content: attr(data-label);
    font-family: var(--display);
    font-size: 0.62rem;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  tbody td:first-child {
    width: auto;
  }

  tbody td:first-child strong {
    font-size: 1.3rem;
  }

  .number {
    text-align: left;
  }

  tfoot tr {
    display: grid;
    padding: 1.1rem 0;
    grid-template-columns: 1fr auto;
  }

  tfoot th,
  tfoot td {
    padding: 0;
    text-align: left;
  }

  .related-project {
    padding-right: 1.5rem;
  }

  .related-arrow {
    position: static;
    margin-top: 1rem;
  }

  .site-footer {
    padding: 2.5rem 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer nav {
    flex-wrap: wrap;
    gap: 0.8rem 1.2rem;
  }
}

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

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

@media print {
  .masthead nav,
  .rack-module,
  .site-footer nav,
  .skip-link {
    break-inside: avoid;
  }

  .rack-module {
    color-adjust: exact;
    print-color-adjust: exact;
  }

  a {
    text-decoration: none;
  }
}
