@font-face {
  font-family: "Hanken Grotesk";
  src: url("./fonts/HankenGrotesk.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("./fonts/JetBrainsMono.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --black: #070909;
  --black-soft: #0b0f0e;
  --metal: #111715;
  --metal-light: #18201e;
  --white: #f1f2ec;
  --paper: #e7e7de;
  --paper-light: #f1f1e9;
  --paper-ink: #111613;
  --muted: #8d9993;
  --paper-muted: #59605b;
  --line: rgba(218, 229, 223, 0.16);
  --paper-line: rgba(17, 22, 19, 0.2);
  --cyan: #6de4cf;
  --cyan-bright: #a4ffeb;
  --amber: #e4bb63;
  --red: #e77964;
  --max: 96rem;
  --gutter: max(1.4rem, calc((100vw - var(--max)) / 2 + 2.5rem));
  --sans: "Hanken Grotesk", Arial, sans-serif;
  --mono: "JetBrains Mono", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--black);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--white);
  background: var(--black);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  color: var(--black);
  background: var(--cyan);
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  top: -6rem;
  left: 1.25rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  color: var(--black);
  background: var(--cyan-bright);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.skip-link:focus {
  top: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  width: min(calc(100% - 3rem), var(--max));
  min-height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.wordmark strong {
  font-size: 1.25rem;
  font-weight: 720;
  letter-spacing: -0.04em;
}

.wordmark span {
  color: #738078;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 3rem);
  color: #a8b0ab;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-header nav a {
  position: relative;
  padding: 0.5rem 0;
}

.site-header nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-header nav a:hover::after,
.site-header nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero {
  position: relative;
  min-height: calc(100vh - 5rem);
  display: grid;
  grid-template-columns: minmax(20rem, 0.78fr) minmax(38rem, 1.25fr);
  gap: clamp(2.5rem, 5vw, 6rem);
  align-items: center;
  padding: clamp(3.5rem, 6vw, 6rem) var(--gutter);
  background: var(--black);
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 39%;
  width: 1px;
  pointer-events: none;
  background: rgba(218, 229, 223, 0.045);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 35rem;
  margin: 0;
  text-align: left;
}

.kicker,
.section-code,
.panel-code,
.instrument-index,
.instrument-state,
.signal-sequence > li > span,
.result-label > span {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 520;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.kicker {
  margin: 0 0 2rem;
  color: #89958e;
}

.kicker span {
  color: var(--cyan);
}

.hero h1 {
  margin: 0;
  color: #f4f5ef;
  font-size: clamp(4.7rem, 6.8vw, 7.5rem);
  font-weight: 520;
  line-height: 0.82;
  letter-spacing: -0.073em;
}

.hero-deck {
  max-width: 43rem;
  margin: clamp(2rem, 3.5vw, 3rem) 0 0;
  color: #aeb7b2;
  font-size: clamp(1.05rem, 1.55vw, 1.32rem);
  line-height: 1.55;
}

.hero-proof {
  width: fit-content;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.25rem;
  margin: 2.2rem 0 0;
  color: #78847d;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-proof > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--cyan);
}

.hero-proof i {
  width: 0.42rem;
  height: 0.42rem;
  display: inline-block;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0.28rem rgba(109, 228, 207, 0.08);
}

.hero-proof strong {
  color: #dce2de;
  font-weight: 500;
}

.optical-instrument {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0;
  border: 1px solid #2a3430;
  background: #090c0b;
  box-shadow: 0 2.5rem 7rem rgba(0, 0, 0, 0.38), inset 0 1px rgba(255, 255, 255, 0.035);
}

.instrument-head {
  min-height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem 1.4rem;
  border-bottom: 1px solid var(--line);
  background: var(--metal);
}

.instrument-head > div {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
}

.instrument-index {
  color: var(--cyan);
}

.instrument-head h2 {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 580;
  letter-spacing: -0.015em;
}

.instrument-state {
  color: #8d9a93;
  font-size: 0.7rem;
}

.diagram-shell {
  position: relative;
  height: clamp(18rem, 27vw, 27rem);
  overflow: hidden;
  background: #080b0a;
}

.optical-path {
  width: 100%;
  height: 100%;
  display: block;
}

.optical-path--compact {
  display: none;
}

.optical-path .signal-background {
  fill: #080b0a;
}

.optical-path .signal-grid-line {
  fill: none;
  stroke: rgba(169, 196, 183, 0.055);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.optical-path .signal-annotations,
.optical-path .signal-labels {
  fill: rgba(141, 153, 147, 0.82);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 520;
  letter-spacing: 1.1px;
}

.optical-path .signal-labels {
  fill: rgba(164, 255, 235, 0.72);
  font-size: 11.5px;
  letter-spacing: 0.85px;
}

.optical-path .signal-labels--amber {
  fill: rgba(228, 187, 99, 0.86);
}

.optical-path .signal-loop-label {
  fill: var(--cyan-bright);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.25px;
}

.optical-path .signal-structure,
.optical-path .signal-active,
.optical-path .signal-selected,
.optical-path .signal-loop,
.optical-path .signal-loop-inner,
.optical-path .signal-loop-direction,
.optical-path .signal-readout {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.optical-path .signal-structure {
  stroke: rgba(92, 117, 106, 0.42);
  stroke-width: 1;
}

.optical-path .signal-active,
.optical-path .signal-selected {
  stroke: rgba(109, 228, 207, 0.75);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.45;
}

.optical-path .signal-selected {
  stroke: rgba(164, 255, 235, 0.86);
  stroke-width: 1.7;
}

.optical-path .signal-couplers circle {
  fill: #080b0a;
  stroke: rgba(228, 187, 99, 0.8);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.optical-path .signal-loop-halo {
  fill: rgba(109, 228, 207, 0.025);
  stroke: rgba(109, 228, 207, 0.075);
  stroke-width: 12;
  vector-effect: non-scaling-stroke;
}

.optical-path .signal-loop {
  stroke: rgba(109, 228, 207, 0.7);
  stroke-width: 1.6;
}

.optical-path .signal-loop-inner {
  stroke: rgba(92, 117, 106, 0.34);
  stroke-width: 1;
}

.optical-path .signal-loop-direction {
  stroke: rgba(164, 255, 235, 0.9);
  stroke-linecap: round;
  stroke-width: 1.5;
}

.optical-path .signal-update-node,
.optical-path .signal-tap-node,
.optical-path .signal-detector {
  fill: #080b0a;
  stroke-width: 1.25;
  vector-effect: non-scaling-stroke;
}

.optical-path .signal-update-node {
  stroke: var(--cyan-bright);
}

.optical-path .signal-tap-node,
.optical-path .signal-detector {
  stroke: var(--amber);
}

.optical-path .signal-readout {
  stroke: rgba(228, 187, 99, 0.82);
  stroke-linecap: round;
  stroke-width: 1.5;
}

.optical-path .signal-cyan-fill {
  fill: var(--cyan-bright);
}

.optical-path .signal-amber-fill {
  fill: var(--amber);
}

.instrument-legend {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.instrument-legend li {
  min-height: 6.8rem;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: 0.8rem;
  padding: 1rem 1.4rem;
  border-left: 1px solid var(--line);
}

.instrument-legend li:first-child {
  border-left: 0;
}

.instrument-legend span {
  grid-row: 1 / 3;
  color: #738078;
  font-family: var(--mono);
  font-size: 0.65rem;
}

.instrument-legend strong {
  align-self: end;
  font-size: 0.86rem;
  font-weight: 570;
}

.instrument-legend small {
  color: #79857f;
  font-family: var(--mono);
  font-size: 0.68rem;
}

.optical-instrument figcaption {
  margin: 0;
  padding: 0.85rem 1.4rem;
  border-top: 1px solid var(--line);
  color: #929d97;
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.55;
}

.signal-section {
  padding: clamp(7rem, 10vw, 11rem) var(--gutter);
  color: var(--paper-ink);
  background: var(--paper);
}

.section-intro,
.evidence-heading {
  width: min(100%, var(--max));
  display: grid;
  grid-template-columns: minmax(11rem, 0.45fr) minmax(20rem, 1.1fr) minmax(20rem, 0.8fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  margin: 0 auto;
}

.section-code {
  margin: 0.7rem 0 0;
  color: #515a55;
}

.section-intro h2,
.evidence-heading h2,
.contact-section h2 {
  margin: 0;
  font-size: clamp(3.7rem, 7.4vw, 7.7rem);
  font-weight: 520;
  line-height: 0.88;
  letter-spacing: -0.068em;
}

.section-intro > p:last-child,
.evidence-heading > p:last-child {
  max-width: 31rem;
  margin: 0.4rem 0 0;
  color: var(--paper-muted);
  font-size: clamp(1rem, 1.45vw, 1.2rem);
  line-height: 1.62;
}

.signal-sequence {
  width: min(100%, var(--max));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: clamp(5rem, 9vw, 9rem) auto 0;
  padding: 0;
  border-top: 1px solid var(--paper-ink);
  border-bottom: 1px solid var(--paper-line);
  list-style: none;
}

.signal-sequence li {
  min-height: 21rem;
  padding: 1.5rem clamp(1.25rem, 2.5vw, 2.5rem) 2.5rem;
  border-left: 1px solid var(--paper-line);
}

.signal-sequence li:first-child {
  border-left: 0;
  padding-left: 0;
}

.signal-sequence li:last-child {
  padding-right: 0;
}

.signal-sequence > li > span {
  color: #66706a;
}

.signal-sequence h3 {
  max-width: 12ch;
  margin: 4.5rem 0 0;
  font-size: clamp(1.55rem, 2.35vw, 2.4rem);
  font-weight: 570;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.signal-sequence p {
  max-width: 18rem;
  margin: 1.3rem 0 0;
  color: var(--paper-muted);
  font-size: 0.88rem;
  line-height: 1.62;
}

.software-result {
  width: min(100%, var(--max));
  display: grid;
  grid-template-columns: minmax(14rem, 0.55fr) minmax(34rem, 1.35fr);
  gap: 2.5rem 4rem;
  margin: clamp(5rem, 8vw, 8rem) auto 0;
  padding: clamp(2rem, 4vw, 3.5rem);
  color: var(--white);
  background: var(--metal);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06);
}

.result-label > span {
  color: var(--cyan);
}

.result-label h3 {
  margin: 1.2rem 0 0;
  font-size: clamp(1.65rem, 2.5vw, 2.35rem);
  font-weight: 560;
  letter-spacing: -0.035em;
}

.software-result dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
}

.software-result dl > div {
  min-width: 0;
  padding-left: clamp(1rem, 2.5vw, 2.5rem);
  border-left: 1px solid var(--line);
}

.software-result dt,
.proof-ledger dt {
  color: #77847d;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.software-result dd {
  margin: 1rem 0 0;
  color: var(--cyan-bright);
  font-size: clamp(2rem, 3.4vw, 3.5rem);
  font-weight: 450;
  line-height: 1;
  letter-spacing: -0.055em;
}

.software-result sup {
  font-size: 0.45em;
}

.software-result > p {
  grid-column: 2;
  max-width: 57rem;
  margin: 0;
  color: #84918a;
  font-family: var(--mono);
  font-size: 0.7rem;
  line-height: 1.65;
}

.evidence-section {
  padding: clamp(7rem, 10vw, 11rem) var(--gutter);
  color: var(--white);
  background: var(--black-soft);
  border-top: 1px solid var(--line);
}

.evidence-heading .section-code {
  color: #7b8881;
}

.evidence-heading > p:last-child {
  color: #9ba69f;
}

.proof-grid {
  width: min(100%, var(--max));
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(19rem, 0.75fr);
  margin: clamp(5rem, 8vw, 8rem) auto 0;
  border-top: 1px solid #49544f;
  border-bottom: 1px solid var(--line);
}

.current-proof,
.next-proof {
  padding: clamp(2rem, 4vw, 4rem) 0;
}

.current-proof {
  padding-right: clamp(2rem, 5vw, 5rem);
}

.next-proof {
  padding-left: clamp(2rem, 5vw, 5rem);
  border-left: 1px solid var(--line);
}

.panel-code {
  color: #7b8881;
}

.current-proof h3,
.next-proof h3 {
  margin: 1.2rem 0 0;
  font-size: clamp(1.75rem, 3vw, 3rem);
  font-weight: 540;
  line-height: 1;
  letter-spacing: -0.045em;
}

.current-proof > p {
  max-width: 38rem;
  margin: 1.5rem 0 0;
  color: #8f9b95;
}

.proof-ledger {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 3rem 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.proof-ledger > div {
  min-width: 0;
  padding: 1.5rem clamp(0.8rem, 2vw, 2rem) 1.4rem;
  border-left: 1px solid var(--line);
}

.proof-ledger > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.proof-ledger dd {
  margin: 1rem 0 0;
  color: var(--cyan-bright);
  font-family: var(--mono);
  font-size: clamp(1.15rem, 1.9vw, 1.8rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}

.next-proof > p {
  max-width: 23rem;
  margin: 1.5rem 0 0;
  color: #8f9b95;
}

.next-proof ul {
  margin: 3rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.next-proof li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  color: #c3cbc6;
  font-size: 0.82rem;
}

.next-proof li span {
  color: #58645e;
  font-family: var(--mono);
  font-size: 0.62rem;
}

.evidence-boundary {
  width: min(100%, var(--max));
  display: grid;
  grid-template-columns: minmax(11rem, 0.35fr) minmax(0, 1.65fr);
  gap: 2rem;
  margin: 2rem auto 0;
  padding-top: 2rem;
}

.evidence-boundary span {
  color: var(--amber);
  font-family: var(--mono);
  font-size: 0.61rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.evidence-boundary p {
  max-width: 64rem;
  margin: 0;
  color: #9aa59f;
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.7;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(11rem, 0.45fr) minmax(25rem, 1.1fr) minmax(20rem, 0.8fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
  padding: clamp(7rem, 10vw, 11rem) var(--gutter);
  color: var(--paper-ink);
  background: var(--paper-light);
}

.contact-section .section-code {
  align-self: start;
}

.contact-detail {
  max-width: 30rem;
}

.contact-detail p {
  margin: 0;
  color: var(--paper-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.contact-detail a {
  display: inline-flex;
  gap: 1rem;
  margin-top: 2.3rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid currentColor;
  font-size: clamp(1.3rem, 2.1vw, 2rem);
  font-weight: 560;
  letter-spacing: -0.035em;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 2rem;
  padding: 1.5rem var(--gutter) 2rem;
  border-top: 1px solid var(--line);
  color: #738078;
  background: var(--black);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

footer strong {
  color: #aab2ad;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: -0.01em;
}
footer a { color: var(--cyan); }

@media (max-width: 66rem) {
  .hero {
    min-height: 0;
    display: block;
    padding: clamp(6.5rem, 11vw, 9rem) var(--gutter) clamp(6rem, 9vw, 8rem);
  }

  .hero::before {
    left: 50%;
  }

  .hero-copy {
    max-width: 78rem;
    margin: 0 auto;
    text-align: center;
  }

  .hero h1 {
    font-size: clamp(5rem, 11vw, 9rem);
  }

  .hero-deck {
    margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  }

  .hero-proof {
    justify-content: center;
    margin: 2.2rem auto 0;
  }

  .optical-instrument {
    width: min(100%, var(--max));
    margin: clamp(5rem, 9vw, 7rem) auto 0;
  }

  .diagram-shell {
    height: clamp(20rem, 34vw, 30rem);
  }

  .section-intro,
  .evidence-heading,
  .contact-section {
    grid-template-columns: minmax(8rem, 0.35fr) minmax(20rem, 1fr);
  }

  .section-intro > p:last-child,
  .evidence-heading > p:last-child,
  .contact-detail {
    grid-column: 2;
  }

  .signal-sequence {
    grid-template-columns: repeat(2, 1fr);
  }

  .signal-sequence li {
    min-height: 17rem;
  }

  .signal-sequence li:nth-child(3) {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--paper-line);
  }

  .signal-sequence li:nth-child(4) {
    border-top: 1px solid var(--paper-line);
  }

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

  .current-proof {
    padding-right: 0;
  }

  .next-proof {
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 52rem) {
  .site-header {
    width: calc(100% - 2.3rem);
    min-height: 4.4rem;
  }

  .wordmark span {
    display: none;
  }

  .site-header nav a:nth-child(2),
  .site-header nav a:nth-child(3) {
    display: none;
  }

  .site-header nav {
    gap: 1.25rem;
  }

  .hero {
    padding-top: 5.5rem;
  }

  .hero h1 {
    font-size: clamp(4.2rem, 20vw, 7.5rem);
  }

  .hero-proof {
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
  }

  .hero-proof > span:last-child {
    flex-basis: 100%;
  }

  .instrument-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1.1rem;
  }

  .instrument-head > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.45rem;
  }

  .diagram-shell {
    height: 19rem;
  }

  .instrument-legend {
    grid-template-columns: repeat(2, 1fr);
  }

  .instrument-legend li {
    min-height: 5.7rem;
  }

  .instrument-legend li:nth-child(3) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .instrument-legend li:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .section-intro,
  .evidence-heading,
  .contact-section {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .section-intro > p:last-child,
  .evidence-heading > p:last-child,
  .contact-detail {
    grid-column: auto;
  }

  .section-intro h2,
  .evidence-heading h2,
  .contact-section h2 {
    font-size: clamp(3.7rem, 17vw, 6rem);
  }

  .signal-sequence {
    grid-template-columns: 1fr;
  }

  .signal-sequence li,
  .signal-sequence li:first-child,
  .signal-sequence li:last-child,
  .signal-sequence li:nth-child(3) {
    min-height: 0;
    padding: 1.4rem 0 2.2rem;
    border-top: 1px solid var(--paper-line);
    border-left: 0;
  }

  .signal-sequence li:first-child {
    border-top: 0;
  }

  .signal-sequence h3 {
    margin-top: 2.7rem;
  }

  .software-result {
    grid-template-columns: 1fr;
    padding: 1.4rem;
  }

  .software-result dl {
    grid-template-columns: 1fr;
    border-top: 1px solid var(--line);
  }

  .software-result dl > div {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: baseline;
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--line);
    border-left: 0;
  }

  .software-result dd {
    margin: 0;
    font-size: 2rem;
  }

  .software-result > p {
    grid-column: auto;
  }

  .proof-ledger {
    grid-template-columns: 1fr;
  }

  .proof-ledger > div,
  .proof-ledger > div:first-child {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: baseline;
    gap: 0 1rem;
    padding: 1.15rem 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .proof-ledger > div:first-child {
    border-top: 0;
  }

  .proof-ledger dd {
    margin: 0;
    font-size: 1.4rem;
  }

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

  footer {
    grid-template-columns: 1fr;
    gap: 0.7rem;
    padding-bottom: 2rem;
  }
}

@media (max-width: 46rem) {
  .optical-instrument {
    width: calc(100% + 2.8rem);
    max-width: none;
    margin-right: -1.4rem;
    margin-left: -1.4rem;
  }

  .diagram-shell {
    height: min(31rem, 139vw);
  }

  .optical-path--wide {
    display: none;
  }

  .optical-path--compact {
    display: block;
  }

  .optical-path--compact .signal-annotations {
    font-size: 11.5px;
    letter-spacing: 0.65px;
  }

  .optical-path--compact .signal-labels {
    font-size: 14px;
    letter-spacing: 0.45px;
  }

  .optical-path--compact .signal-loop-label {
    font-size: 17px;
  }
}

@media (max-width: 30rem) {
  .site-header nav a:nth-child(4) {
    display: none;
  }

  .hero h1 {
    font-size: clamp(3.85rem, 20vw, 5.8rem);
  }

  .instrument-legend strong {
    font-size: 0.78rem;
  }

  .instrument-legend small {
    font-size: 0.65rem;
  }
}

@media (forced-colors: active) {
  .optical-path .signal-background {
    fill: Canvas;
  }

  .optical-path .signal-grid-line,
  .optical-path .signal-structure,
  .optical-path .signal-loop-inner,
  .optical-path .signal-loop-halo {
    stroke: GrayText;
  }

  .optical-path .signal-active,
  .optical-path .signal-selected,
  .optical-path .signal-loop,
  .optical-path .signal-loop-direction,
  .optical-path .signal-update-node {
    stroke: Highlight;
  }

  .optical-path .signal-readout,
  .optical-path .signal-tap-node,
  .optical-path .signal-detector {
    stroke: LinkText;
  }

  .optical-path .signal-annotations,
  .optical-path .signal-labels,
  .optical-path .signal-loop-label {
    fill: CanvasText;
  }

  .optical-path .signal-couplers circle {
    fill: Canvas;
    stroke: CanvasText;
  }
}

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

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