:root {
  --void: #070909;
  --panel: #0c1010;
  --panel-raised: #111616;
  --bone: #e8e1d5;
  --bone-muted: #a9a59c;
  --line: #2a3030;
  --line-bright: #45504e;
  --signal: #a5ffdc;
  --signal-dim: #347a66;
  --qualify: #f0c486;
  --stop: #f18e82;
  --editorial: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --utility: Inter, "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--bone);
  background: var(--void);
  font-family: var(--utility);
  -webkit-font-smoothing: antialiased;
}

button,
select,
textarea {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

.masthead,
main,
.site-footer {
  width: min(1480px, calc(100% - 64px));
  margin: 0 auto;
}

.masthead {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  gap: 13px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.wordmark-symbol {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--void);
  background: var(--signal);
  font-family: var(--editorial);
  font-size: 23px;
  font-style: italic;
}

.wordmark-copy strong,
.wordmark-copy small {
  display: block;
}

.wordmark-copy strong {
  font-family: var(--editorial);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.wordmark-copy small,
.masthead-index,
.overline,
.section-rule,
.field-label span,
.lane-source small,
.lane-outcome small,
.release-diagnostics small {
  color: var(--bone-muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.wordmark-copy small {
  margin-top: 3px;
}

.masthead-index {
  display: flex;
  gap: 30px;
}

.opening {
  min-height: 700px;
  padding: 130px 0 80px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.overline {
  margin: 0 0 24px;
  color: var(--signal);
}

.opening h1 {
  max-width: 1210px;
  margin: 0;
  font-family: var(--editorial);
  font-size: clamp(64px, 8.3vw, 132px);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.89;
}

.opening h1 span {
  display: block;
  color: var(--bone-muted);
  font-style: italic;
}

.opening-foot {
  margin-top: 70px;
  display: flex;
  gap: 60px;
  align-items: flex-end;
  justify-content: space-between;
}

.opening-foot > p {
  max-width: 620px;
  margin: 0;
  color: var(--bone-muted);
  font-family: var(--editorial);
  font-size: clamp(18px, 2vw, 27px);
  line-height: 1.45;
}

.opening-mark {
  min-width: 370px;
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  gap: 13px;
  align-items: center;
  color: var(--bone-muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.opening-mark i {
  height: 1px;
  background: var(--line-bright);
}

.matched-reveal,
.instrument,
.architecture {
  padding: 90px 0;
  border-bottom: 1px solid var(--line);
}

.section-rule {
  padding: 12px 0;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.matched-heading,
.instrument-heading {
  margin-top: 54px;
  display: flex;
  gap: 32px;
  align-items: flex-end;
  justify-content: space-between;
}

.matched-heading h2,
.instrument-heading h2,
.architecture > h2 {
  margin: 0;
  font-family: var(--editorial);
  font-size: clamp(42px, 5vw, 78px);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.primary-action {
  min-width: 264px;
  padding: 17px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--void);
  background: var(--signal);
  border: 1px solid var(--signal);
  border-radius: 0;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition:
    color 160ms ease,
    background 160ms ease;
}

.primary-action:hover {
  color: var(--signal);
  background: transparent;
}

.primary-action:disabled {
  cursor: wait;
  opacity: 0.55;
}

.matched-statement {
  margin: 80px 0 52px;
  padding: 0;
  color: var(--bone);
  border: 0;
  font-family: var(--editorial);
  font-size: clamp(34px, 5.2vw, 82px);
  font-style: italic;
  letter-spacing: -0.045em;
  line-height: 1;
  text-align: center;
}

.matched-lanes {
  border-top: 1px solid var(--line-bright);
}

.matched-lane {
  min-height: 148px;
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(170px, 1.3fr) 80px minmax(260px, 1fr);
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.lane-source {
  display: flex;
  gap: 22px;
  align-items: center;
}

.lane-index {
  color: var(--signal);
  font-family: var(--editorial);
  font-size: 50px;
  font-style: italic;
}

.lane-source strong,
.lane-source div > span,
.lane-outcome strong,
.lane-outcome > span {
  display: block;
}

.lane-source strong {
  margin-top: 9px;
  font-family: var(--editorial);
  font-size: 23px;
  font-weight: 400;
}

.lane-source div > span {
  margin-top: 4px;
  color: var(--bone-muted);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}

.lane-signal {
  position: relative;
  height: 30px;
  display: flex;
  align-items: center;
}

.lane-signal::before {
  width: 100%;
  height: 1px;
  content: "";
  background: var(--line-bright);
}

.lane-signal i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--signal);
  box-shadow: 0 0 14px rgba(165, 255, 220, 0.7);
  transform: scaleX(0);
  transform-origin: left;
}

.lane-signal b {
  position: absolute;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--signal);
  border-radius: 50%;
  box-shadow: 0 0 16px var(--signal);
  opacity: 0;
}

.matched-lane.running .lane-signal i {
  animation: signal-travel 900ms cubic-bezier(0.3, 0, 0.1, 1) forwards;
}

.matched-lane.running .lane-signal b {
  animation: signal-orb 900ms cubic-bezier(0.3, 0, 0.1, 1) forwards;
}

.lane-gate {
  position: relative;
  height: 70px;
  display: grid;
  place-items: center;
}

.lane-gate::before {
  width: 1px;
  height: 100%;
  content: "";
  background: var(--line-bright);
}

.lane-gate i {
  position: absolute;
  width: 13px;
  height: 13px;
  background: var(--panel);
  border: 1px solid var(--line-bright);
  transform: rotate(45deg);
}

.matched-lane.authorized .lane-gate i {
  background: var(--signal);
  border-color: var(--signal);
  box-shadow: 0 0 22px rgba(165, 255, 220, 0.55);
}

.matched-lane.blocked .lane-signal i {
  width: 88%;
  background: var(--stop);
  box-shadow: 0 0 14px rgba(241, 142, 130, 0.55);
}

.matched-lane.blocked .lane-signal b {
  animation-name: blocked-orb;
  background: var(--stop);
  box-shadow: 0 0 15px var(--stop);
}

.matched-lane.blocked .lane-gate i {
  background: var(--stop);
  border-color: var(--stop);
  transform: rotate(45deg) scale(1.35);
}

@keyframes signal-travel {
  to {
    transform: scaleX(1);
  }
}

@keyframes signal-orb {
  0% {
    left: 0;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    left: calc(100% - 7px);
    opacity: 1;
  }
}

@keyframes blocked-orb {
  0% {
    left: 0;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    left: calc(88% - 7px);
    opacity: 1;
  }
}

.lane-outcome {
  padding-left: 28px;
}

.lane-outcome strong {
  margin-top: 8px;
  color: var(--bone-muted);
  font-family: var(--editorial);
  font-size: 25px;
  font-weight: 400;
}

.lane-outcome > span {
  max-width: 420px;
  margin-top: 5px;
  color: var(--bone-muted);
  font-size: 11px;
  line-height: 1.4;
}

.matched-lane.authorized .lane-outcome strong {
  color: var(--signal);
}

.matched-lane.blocked .lane-outcome strong {
  color: var(--stop);
}

.matched-conclusion {
  margin-top: 28px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  color: var(--bone-muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.matched-conclusion i {
  height: 1px;
  background: var(--line);
}

.instrument-heading {
  align-items: flex-start;
}

.model-switch {
  display: flex;
  border-bottom: 1px solid var(--line-bright);
}

.model-switch button {
  padding: 12px 14px;
  color: var(--bone-muted);
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.model-switch button.selected {
  color: var(--signal);
  border-bottom-color: var(--signal);
}

.model-switch button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.model-switch small {
  display: block;
  margin-top: 4px;
  font-size: 7px;
}

.scenario-index {
  margin-top: 65px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.scenario-button {
  min-height: 106px;
  padding: 19px 20px;
  text-align: left;
  color: var(--bone-muted);
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  font-family: var(--editorial);
  font-size: 20px;
  transition:
    color 160ms ease,
    background 160ms ease;
}

.scenario-button:last-child {
  border-right: 0;
}

.scenario-button span {
  display: block;
  margin-bottom: 17px;
  color: var(--bone-muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.scenario-button:hover,
.scenario-button.selected {
  color: var(--bone);
  background: var(--panel);
}

.scenario-button.selected span {
  color: var(--signal);
}

.authorization-field {
  position: relative;
  min-height: 590px;
  display: grid;
  grid-template-columns: minmax(230px, 0.85fr) minmax(280px, 1fr) 150px minmax(260px, 1fr);
  border-bottom: 1px solid var(--line);
}

.authorization-field > section {
  position: relative;
  z-index: 2;
  min-width: 0;
  padding: 34px 26px;
  border-right: 1px solid var(--line);
}

.authorization-field > section:last-child {
  border-right: 0;
}

.evidence-map {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.evidence-path {
  fill: none;
  stroke: var(--line-bright);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.evidence-path.signal {
  stroke: var(--signal);
  stroke-width: 1.5;
  filter: drop-shadow(0 0 5px rgba(165, 255, 220, 0.8));
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.evidence-path.signal.running {
  animation: draw-path 800ms cubic-bezier(0.2, 0, 0.1, 1) forwards;
}

.evidence-path.signal.blocked {
  stroke: var(--stop);
  filter: drop-shadow(0 0 5px rgba(241, 142, 130, 0.6));
}

.evidence-path.signal.qualified {
  stroke: var(--qualify);
  filter: drop-shadow(0 0 5px rgba(240, 196, 134, 0.6));
}

@keyframes draw-path {
  to {
    stroke-dashoffset: 0;
  }
}

.field-label {
  min-height: 62px;
}

.field-label h3 {
  margin: 8px 0 0;
  font-family: var(--editorial);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.025em;
}

.ledger-entries {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-bright);
}

.ledger-entry {
  position: relative;
  padding: 20px 18px 20px 0;
  background: var(--void);
  border-bottom: 1px solid var(--line);
}

.ledger-entry::after {
  position: absolute;
  top: 25px;
  right: 0;
  width: 7px;
  height: 7px;
  content: "";
  background: var(--panel);
  border: 1px solid var(--line-bright);
  border-radius: 50%;
}

.authorization-field.running .ledger-entry::after {
  background: var(--signal);
  border-color: var(--signal);
  box-shadow: 0 0 14px var(--signal);
}

.ledger-entry small,
.ledger-entry strong,
.ledger-entry p {
  display: block;
}

.ledger-entry small {
  color: var(--signal-dim);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ledger-entry strong {
  margin-top: 8px;
  color: var(--bone-muted);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ledger-entry p {
  margin: 13px 0 0;
  font-family: var(--editorial);
  font-size: 17px;
  line-height: 1.4;
}

.ledger-empty {
  min-height: 330px;
  display: grid;
  align-content: center;
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ledger-empty span {
  color: var(--stop);
  font-family: var(--editorial);
  font-size: 70px;
  font-style: italic;
}

.ledger-empty p {
  margin: 15px 0 0;
  font-family: var(--editorial);
  font-size: 22px;
}

.ledger-empty small {
  margin-top: 8px;
  color: var(--bone-muted);
}

.draft-ingress {
  margin: 0 0 24px;
  color: var(--bone-muted);
  font-family: var(--editorial);
  font-size: 18px;
  font-style: italic;
  line-height: 1.5;
}

.claim-stack {
  display: grid;
  gap: 10px;
}

.claim-node {
  position: relative;
  min-height: 92px;
  padding: 17px 42px 17px 19px;
  display: flex;
  align-items: center;
  background: var(--panel);
  border-left: 2px solid var(--line-bright);
  font-family: var(--editorial);
  font-size: 19px;
  line-height: 1.35;
  opacity: 0;
  transform: translateX(-25px);
}

.claim-node::before {
  position: absolute;
  top: 50%;
  left: -5px;
  width: 8px;
  height: 8px;
  content: "";
  background: var(--panel);
  border: 1px solid var(--line-bright);
  border-radius: 50%;
  transform: translateY(-50%);
}

.claim-node::after {
  position: absolute;
  top: 50%;
  right: 16px;
  width: 8px;
  height: 8px;
  content: "";
  background: var(--line-bright);
  transform: translateY(-50%) rotate(45deg);
}

.claim-node.entered {
  opacity: 1;
  transform: translateX(0);
  transition:
    opacity 380ms ease,
    transform 520ms cubic-bezier(0.15, 0.7, 0.1, 1);
}

.claim-node.supported {
  color: var(--signal);
  border-left-color: var(--signal);
}

.claim-node.supported::before,
.claim-node.supported::after {
  background: var(--signal);
  border-color: var(--signal);
  box-shadow: 0 0 15px rgba(165, 255, 220, 0.6);
}

.claim-node.qualified {
  color: var(--qualify);
  border-left-color: var(--qualify);
}

.claim-node.blocked,
.claim-node.conflict {
  color: var(--stop);
  border-left-color: var(--stop);
}

.claim-node.blocked span,
.claim-node.conflict span {
  text-decoration-line: line-through;
  text-decoration-thickness: 1px;
}

.claim-node.blocked::after,
.claim-node.conflict::after {
  background: var(--stop);
  box-shadow: 0 0 13px rgba(241, 142, 130, 0.55);
}

.claim-node.conflict {
  animation: conflict-pulse 320ms steps(2, end) 3;
}

@keyframes conflict-pulse {
  50% {
    opacity: 0.45;
  }
}

.chamber-status {
  margin-top: 24px;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  color: var(--bone-muted);
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.policy-gate {
  padding-right: 14px !important;
  padding-left: 14px !important;
  display: grid;
  place-items: center;
}

.gate-axis {
  position: absolute;
  inset: 34px 50%;
  display: flex;
  justify-content: center;
}

.gate-axis i {
  width: 1px;
  height: 100%;
  background: var(--line-bright);
}

.gate-axis b {
  position: absolute;
  top: 50%;
  width: 20px;
  height: 20px;
  background: var(--panel);
  border: 1px solid var(--line-bright);
  transform: translateY(-50%) rotate(45deg);
}

.gate-core {
  position: relative;
  z-index: 2;
  width: 112px;
  min-height: 164px;
  padding: 18px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--void);
  border-top: 1px solid var(--line-bright);
  border-bottom: 1px solid var(--line-bright);
}

.gate-core span,
.gate-core small {
  color: var(--bone-muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gate-core strong {
  max-width: 100px;
  margin: 17px 0;
  color: var(--bone-muted);
  font-family: var(--editorial);
  font-size: 21px;
  font-weight: 400;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.policy-gate.allow .gate-axis b,
.policy-gate.allow .gate-core {
  border-color: var(--signal);
}

.policy-gate.allow .gate-core strong {
  color: var(--signal);
  text-shadow: 0 0 20px rgba(165, 255, 220, 0.55);
}

.policy-gate.qualify .gate-axis b,
.policy-gate.qualify .gate-core {
  border-color: var(--qualify);
}

.policy-gate.qualify .gate-core strong {
  color: var(--qualify);
}

.policy-gate.withhold .gate-axis b,
.policy-gate.withhold .gate-core {
  border-color: var(--stop);
}

.policy-gate.withhold .gate-core strong {
  color: var(--stop);
}

.stopped-fragments {
  position: absolute;
  top: 50%;
  left: -60px;
  z-index: 3;
  width: 110px;
  pointer-events: none;
}

.stopped-fragment {
  padding: 6px;
  color: var(--stop);
  background: var(--void);
  border-right: 1px solid var(--stop);
  font-family: var(--mono);
  font-size: 7px;
  line-height: 1.3;
  opacity: 0;
  transform: translateX(-65px);
  animation: fragment-stop 620ms cubic-bezier(0.3, 0.7, 0.1, 1) forwards;
}

@keyframes fragment-stop {
  70% {
    opacity: 1;
    transform: translateX(3px);
  }
  100% {
    opacity: 0.65;
    transform: translateX(0);
  }
}

.release-copy {
  min-height: 270px;
  padding: 28px 0;
  color: var(--bone-muted);
  border-top: 1px solid var(--line-bright);
  border-bottom: 1px solid var(--line);
  font-family: var(--editorial);
  font-size: clamp(23px, 2.1vw, 35px);
  line-height: 1.3;
}

.release-copy span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.release-copy.allow {
  color: var(--signal);
}

.release-copy.qualify {
  color: var(--qualify);
}

.release-copy.withhold {
  color: var(--stop);
}

.release-copy .cursor {
  display: inline-block;
  width: 2px;
  height: 0.9em;
  margin-left: 3px;
  background: currentColor;
  animation: cursor-blink 650ms steps(1) infinite;
}

@keyframes cursor-blink {
  50% {
    opacity: 0;
  }
}

.release-diagnostics {
  margin-top: 21px;
  display: grid;
  gap: 14px;
}

.release-diagnostics div {
  display: flex;
  justify-content: space-between;
  color: var(--bone-muted);
  font-size: 10px;
}

.release-diagnostics span {
  text-align: right;
}

.instrument-controls {
  padding-top: 28px;
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
}

.run-scenario {
  min-width: 230px;
}

.instrument-controls p {
  max-width: 600px;
  margin: 0;
  color: var(--bone-muted);
  font-family: var(--editorial);
  font-size: 16px;
  font-style: italic;
  text-align: right;
}

.architecture > h2 {
  max-width: 850px;
  margin-top: 70px;
}

.architecture-lines {
  margin-top: 70px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-bright);
  border-bottom: 1px solid var(--line);
}

.architecture-lines article {
  min-height: 280px;
  padding: 28px;
  border-right: 1px solid var(--line);
}

.architecture-lines article:last-child {
  border-right: 0;
}

.architecture-lines article > span {
  color: var(--signal);
  font-family: var(--mono);
  font-size: 9px;
}

.architecture-lines h3 {
  margin: 80px 0 14px;
  font-family: var(--editorial);
  font-size: 27px;
  font-weight: 400;
}

.architecture-lines p {
  max-width: 360px;
  margin: 0;
  color: var(--bone-muted);
  font-size: 12px;
  line-height: 1.65;
}

.evidence-notes .architecture-lines article {
  min-height: 390px;
}

.evidence-finding {
  max-width: 980px;
  margin: 90px 0 28px;
  color: var(--bone);
  font-family: var(--editorial);
  font-size: clamp(30px, 4vw, 60px);
  line-height: 1.08;
}

.evidence-caveat {
  max-width: 760px;
  margin: 0 0 100px;
  color: var(--bone-muted);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.7;
  text-transform: uppercase;
}

.site-footer {
  min-height: 190px;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 40px;
  align-items: center;
}

.site-footer strong,
.site-footer div > span {
  display: block;
}

.site-footer strong {
  font-family: var(--editorial);
  font-size: 22px;
  font-weight: 400;
}

.site-footer div > span,
.site-footer p,
.site-footer > span {
  color: var(--bone-muted);
  font-size: 10px;
  line-height: 1.5;
}

.site-footer p {
  max-width: 430px;
  margin: 0;
}

.site-footer-contact {
  color: var(--bone);
  font-size: 10px;
  justify-self: end;
  text-decoration-color: var(--line-bright);
  text-underline-offset: 4px;
}

.site-footer-contact:hover {
  color: var(--signal);
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  max-width: 380px;
  padding: 13px 16px;
  color: var(--void);
  background: var(--bone);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  .opening {
    min-height: 620px;
  }

  .matched-lane {
    grid-template-columns: minmax(210px, 1fr) minmax(130px, 0.8fr) 60px minmax(210px, 1fr);
  }

  .authorization-field {
    grid-template-columns: 0.85fr 1fr 110px 1fr;
  }

  .authorization-field > section {
    padding-right: 18px;
    padding-left: 18px;
  }
}

@media (max-width: 880px) {
  .masthead,
  main,
  .site-footer {
    width: min(100% - 32px, 1480px);
  }

  .opening {
    min-height: 580px;
    padding-top: 90px;
  }

  .opening-foot,
  .matched-heading,
  .instrument-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .opening-mark {
    min-width: 0;
  }

  .matched-lane {
    padding: 26px 0;
    grid-template-columns: 1fr 70px minmax(170px, 0.8fr);
  }

  .lane-signal {
    display: none;
  }

  .lane-outcome {
    padding-left: 14px;
  }

  .scenario-index {
    grid-template-columns: repeat(2, 1fr);
  }

  .scenario-button:nth-child(2) {
    border-right: 0;
  }

  .scenario-button:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .authorization-field {
    display: grid;
    grid-template-columns: 1fr;
  }

  .authorization-field > section {
    min-height: 360px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .evidence-map {
    display: none;
  }

  .policy-gate {
    min-height: 260px !important;
  }

  .gate-axis {
    inset: 28px 50%;
  }

  .stopped-fragments {
    top: 50%;
    left: calc(50% - 160px);
  }

  .architecture-lines {
    grid-template-columns: 1fr;
  }

  .architecture-lines article {
    min-height: 220px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .architecture-lines h3 {
    margin-top: 45px;
  }

  .site-footer {
    padding: 45px 0;
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .site-footer-contact {
    justify-self: start;
  }

}

@media (max-width: 560px) {
  .masthead {
    min-height: 76px;
  }

  .masthead-index {
    display: none;
  }

  .opening {
    min-height: 540px;
    padding: 72px 0 52px;
  }

  .opening h1 {
    font-size: clamp(49px, 16vw, 74px);
  }

  .opening-foot {
    margin-top: 50px;
  }

  .opening-mark {
    grid-template-columns: 1fr;
  }

  .opening-mark i {
    display: none;
  }

  .matched-reveal,
  .instrument,
  .architecture {
    padding: 62px 0;
  }

  .matched-heading,
  .instrument-heading {
    margin-top: 38px;
  }

  .matched-heading h2,
  .instrument-heading h2,
  .architecture > h2 {
    font-size: 46px;
  }

  .matched-statement {
    margin: 54px 0 34px;
    font-size: 45px;
  }

  .matched-lane {
    grid-template-columns: 1fr 46px;
  }

  .lane-outcome {
    grid-column: 1 / -1;
    padding: 22px 0 0 72px;
  }

  .matched-conclusion {
    grid-template-columns: 1fr;
  }

  .matched-conclusion i {
    display: none;
  }

  .primary-action {
    width: 100%;
  }

  .model-switch {
    flex-direction: column;
  }

  .scenario-index {
    grid-template-columns: 1fr;
  }

  .scenario-button,
  .scenario-button:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .instrument-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .instrument-controls p {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
