@font-face {
  font-family: "B612";
  src: url("./fonts/B612-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "B612";
  src: url("./fonts/B612-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("./fonts/IBMPlexMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --graphite-950: #080a0c;
  --graphite-900: #0e1216;
  --graphite-800: #171d22;
  --line: #2a333b;
  --text: #f3f0e8;
  --muted: #a7b0b7;
  --evidence: #61b8ff;
  --safety: #ff9d2e;
  --retraction: #ff4d57;
  --success: #75d6ae;
  --focus: #ffe08a;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--graphite-950);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  background-color: var(--graphite-950);
  background-image:
    repeating-linear-gradient(0deg, transparent 0 47px, rgba(97, 184, 255, 0.035) 47px 48px),
    repeating-linear-gradient(90deg, transparent 0 47px, rgba(97, 184, 255, 0.025) 47px 48px),
    radial-gradient(circle at 74% 8%, rgba(255, 157, 46, 0.08), transparent 27%),
    repeating-radial-gradient(circle at 30% 20%, rgba(243, 240, 232, 0.018) 0 1px, transparent 1px 5px);
  color: var(--text);
  font-family: "B612", sans-serif;
  line-height: 1.5;
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
}

body,
button,
a,
code,
pre {
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--evidence);
  text-decoration-color: rgba(97, 184, 255, 0.55);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

a:hover {
  color: var(--text);
  text-decoration-color: var(--safety);
}

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

[hidden] {
  display: none !important;
}

.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.site-header {
  align-items: center;
  background: rgba(8, 10, 12, 0.92);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr auto 1fr;
  min-height: 56px;
  padding: 0 max(24px, calc((100vw - 1240px) / 2));
  position: relative;
  z-index: 2;
}

.site-header::after {
  background: var(--safety);
  bottom: -1px;
  content: "";
  height: 2px;
  left: max(24px, calc((100vw - 1240px) / 2));
  position: absolute;
  width: 84px;
}

.site-header > a:last-child {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  justify-self: end;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand {
  color: var(--text);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand strong {
  color: var(--safety);
  font-weight: 400;
}

.runtime {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  gap: 9px;
  letter-spacing: 0.04em;
  margin: 0;
  text-transform: uppercase;
}

.runtime > span:first-child {
  background: var(--safety);
  box-shadow: 0 0 0 3px rgba(255, 157, 46, 0.15);
  height: 7px;
  width: 7px;
}

.runtime[data-status="verified"] > span:first-child {
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(117, 214, 174, 0.15);
}

.runtime[data-status="failure"] > span:first-child {
  background: var(--retraction);
  box-shadow: 0 0 0 3px rgba(255, 77, 87, 0.16);
}

main,
footer {
  margin: 0 auto;
  max-width: 1240px;
  min-width: 0;
  width: calc(100% - 48px);
}

.hero {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 10px 54px;
  grid-template-columns: minmax(210px, 0.58fr) minmax(0, 1.72fr);
  padding: 38px 0 30px;
}

.eyebrow {
  color: var(--evidence);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  margin: 0;
  text-transform: uppercase;
}

.hero > .eyebrow {
  grid-column: 1;
  grid-row: 1;
}

.product-role {
  color: var(--text);
  font-size: clamp(1.02rem, 1.55vw, 1.35rem);
  grid-column: 1;
  grid-row: 2 / span 2;
  line-height: 1.25;
  margin: 0;
  max-width: 230px;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  font-weight: 700;
  margin: 0;
}

h1 {
  font-size: clamp(3rem, 5.1vw, 4.7rem);
  grid-column: 2;
  grid-row: 1 / span 2;
  letter-spacing: -0.055em;
  line-height: 0.98;
  max-width: 900px;
}

.hero h1 + p,
.hero h1 + p + p {
  color: var(--muted);
  font-size: clamp(0.88rem, 1.2vw, 1rem);
  grid-column: 2;
  margin: 0;
  max-width: 810px;
}

.hero h1 + p {
  margin-top: 10px;
}

.shell-command {
  align-items: center;
  background: var(--graphite-900);
  border: 1px solid var(--line);
  border-left: 3px solid var(--safety);
  display: grid;
  gap: 14px;
  grid-column: 1 / -1;
  grid-template-columns: 230px minmax(0, 1fr);
  margin-top: 10px;
  min-width: 0;
  padding: 12px 16px;
}

.shell-command span {
  color: var(--safety);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shell-command code {
  color: var(--text);
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(0.66rem, 0.9vw, 0.75rem);
  overflow-wrap: anywhere;
  white-space: normal;
}

.flight-recorder {
  background: var(--graphite-900);
  border: 1px solid var(--line);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  margin: 28px 0 42px;
  min-width: 0;
  position: relative;
}

.flight-recorder::before {
  background: var(--safety);
  content: "";
  height: 6px;
  left: -1px;
  position: absolute;
  top: -1px;
  width: 128px;
}

.flight-recorder::after {
  border-color: transparent var(--graphite-950) transparent transparent;
  border-style: solid;
  border-width: 0 26px 26px 0;
  content: "";
  position: absolute;
  right: -1px;
  top: -1px;
}

.flight-recorder > header {
  align-items: end;
  display: grid;
  gap: 12px 40px;
  grid-template-columns: 220px minmax(0, 1fr);
  padding: 23px 28px 20px;
}

.flight-recorder h2 {
  font-size: clamp(1.55rem, 2.5vw, 2.25rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
}

#phase-rail {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

#phase-rail li {
  background: var(--graphite-950);
  border-right: 1px solid var(--line);
  color: var(--muted);
  display: grid;
  font-size: 0.76rem;
  gap: 3px 10px;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 70px;
  padding: 12px 14px 10px;
  position: relative;
}

#phase-rail li:last-child {
  border-right: 0;
}

#phase-rail li > span {
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
  grid-row: 1 / span 2;
}

#phase-rail li::after {
  color: var(--muted);
  content: attr(data-status);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.55rem;
  grid-column: 2;
  letter-spacing: 0.08em;
}

#phase-rail li.is-complete {
  box-shadow: inset 0 -3px 0 var(--evidence);
  color: var(--text);
}

#phase-rail li.is-complete::after {
  color: var(--evidence);
}

#phase-rail li.is-active {
  background: #21190f;
  box-shadow: inset 0 -4px 0 var(--safety);
  color: var(--text);
}

#phase-rail li.is-active::after,
#phase-rail li.is-active > span {
  color: var(--safety);
}

#phase-rail li.is-active.is-invalidation {
  background: #241013;
  box-shadow: inset 0 -4px 0 var(--retraction);
}

#phase-rail li.is-active.is-invalidation::after,
#phase-rail li.is-active.is-invalidation > span {
  color: var(--retraction);
}

.story-panel {
  background-color: var(--graphite-800);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 8px 34px;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 130px;
  padding: 22px 28px;
  transition: background-color 180ms ease, border-color 180ms ease;
}

#story-label {
  color: var(--safety);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  grid-row: 1 / span 2;
  letter-spacing: 0.1em;
  margin: 3px 0 0;
  text-transform: uppercase;
}

[data-scene-id="SOURCE_CORRECTED"] #story-label,
[data-scene-id="MATCHFLIGHT_RETRACTED"] #story-label {
  color: var(--retraction);
}

#story-title {
  font-size: clamp(1.3rem, 2.25vw, 2rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

#story-caption {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
  max-width: 760px;
}

.resolution-path {
  align-items: center;
  background: #0b0e11;
  border: 1px solid var(--line);
  border-left: 3px solid var(--evidence);
  display: grid;
  gap: 8px 18px;
  grid-column: 1 / -1;
  grid-template-columns: 190px minmax(0, 1fr) auto;
  margin-top: 8px;
  min-width: 0;
  padding: 11px 14px;
}

.resolution-path__label,
.resolution-path__current {
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.resolution-path__route,
.resolution-path__current {
  align-items: center;
  display: flex;
  gap: 10px;
  margin: 0;
  min-width: 0;
}

.resolution-path__route {
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
}

.resolution-path__route strong,
.resolution-path__current strong {
  color: var(--text);
  font-family: "IBM Plex Mono", monospace;
  overflow-wrap: anywhere;
}

#resolution-current[data-resolution-status="PROVISIONAL_YES"] {
  color: var(--safety);
}

#resolution-current[data-resolution-status="WITHDRAWN_AFTER_CORRECTION"] {
  color: var(--retraction);
}

.dependency-trace {
  background-color: #0b0e11;
  border-bottom: 1px solid var(--line);
  margin: 0;
  min-width: 0;
  padding: 16px 18px 12px;
}

#dependency-graph {
  display: block;
  height: auto;
  max-height: 430px;
  max-width: 100%;
  min-width: 0;
  width: 100%;
}

.dependency-trace figcaption {
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.03em;
  margin: 4px 4px 0;
}

.graph-edge {
  fill: none;
  stroke: var(--evidence);
  stroke-linecap: square;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.graph-edge--parent {
  stroke-dasharray: 5 5;
}

.graph-edge--invalidated {
  stroke: var(--retraction);
  stroke-dasharray: 3 4;
  stroke-width: 2;
}

.graph-node rect {
  fill: var(--graphite-800);
  stroke: var(--evidence);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.graph-node--current rect {
  fill: #21190f;
  stroke: var(--safety);
  stroke-width: 2;
}

.graph-node--correction rect,
.graph-node--retracted rect {
  fill: #241013;
  stroke: var(--retraction);
  stroke-width: 2;
}

[data-presentation-state="correction-focus"] .graph-node--retracted {
  opacity: 0.58;
}

[data-presentation-state="correction-focus"] .graph-edge--invalidated {
  opacity: 0.62;
}

@keyframes retraction-wave-in {
  0% {
    filter: saturate(0.35);
    opacity: 0.34;
    transform: translateX(-14px);
  }

  58% {
    filter: saturate(1.35);
    opacity: 1;
    transform: translateX(3px);
  }

  100% {
    filter: none;
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes retraction-edge-in {
  0% {
    opacity: 0.2;
    stroke-dashoffset: 18;
  }

  100% {
    opacity: 1;
    stroke-dashoffset: 0;
  }
}

html[data-motion="full"] [data-presentation-state="retraction-wave"] .graph-node.graph-wave-target {
  animation: retraction-wave-in 720ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
  transform-box: fill-box;
  transform-origin: center;
}

html[data-motion="full"] [data-presentation-state="retraction-wave"] .graph-edge.graph-wave-target {
  animation: retraction-edge-in 620ms ease-out both;
}

html[data-motion="full"] [data-presentation-state="retraction-wave"] .graph-node.graph-wave-target.graph-wave-order-0,
html[data-motion="full"] [data-presentation-state="retraction-wave"] .graph-edge.graph-wave-target.graph-wave-order-0 {
  animation-delay: 80ms;
}

html[data-motion="full"] [data-presentation-state="retraction-wave"] .graph-node.graph-wave-target.graph-wave-order-1,
html[data-motion="full"] [data-presentation-state="retraction-wave"] .graph-edge.graph-wave-target.graph-wave-order-1 {
  animation-delay: 260ms;
}

html[data-motion="full"] [data-presentation-state="retraction-wave"] .graph-node.graph-wave-target.graph-wave-order-2,
html[data-motion="full"] [data-presentation-state="retraction-wave"] .graph-edge.graph-wave-target.graph-wave-order-2 {
  animation-delay: 520ms;
}

.graph-node text {
  fill: var(--text);
  font-family: "IBM Plex Mono", monospace;
}

.graph-node__label {
  font-size: 11px;
}

.graph-node__type {
  fill: var(--muted) !important;
  font-size: 8px;
  letter-spacing: 0.08em;
}

.graph-node--current .graph-node__type {
  fill: var(--safety) !important;
}

.graph-node--correction .graph-node__type,
.graph-node--retracted .graph-node__type {
  fill: var(--retraction) !important;
}

#dependency-list {
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

#dependency-list li {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px 16px;
}

#dependency-list li:nth-child(even) {
  border-right: 0;
}

#dependency-list strong {
  color: var(--evidence);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

#dependency-list .is-invalidated strong {
  color: var(--retraction);
}

#dependency-list span {
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.64rem;
  overflow-wrap: anywhere;
}

#evidence-rail {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  padding: 1px 0 0;
}

.evidence-item {
  background: var(--graphite-800);
  border-bottom: 1px solid var(--line);
  border-left: 3px solid var(--evidence);
  min-width: 0;
  padding: 13px 15px;
}

.evidence-item--current,
.evidence-item--dependent {
  border-left-color: var(--safety);
}

.evidence-item--correction,
.evidence-item--retracted {
  border-left-color: var(--retraction);
}

.evidence-item span {
  color: var(--evidence);
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.57rem;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.evidence-item--current span,
.evidence-item--dependent span {
  color: var(--safety);
}

.evidence-item--correction span,
.evidence-item--retracted span {
  color: var(--retraction);
}

.evidence-item strong {
  color: var(--text);
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  font-weight: 400;
  overflow-wrap: anywhere;
}

#reason-codes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 14px 18px 0;
}

#reason-codes li {
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  padding: 6px 9px;
  text-transform: uppercase;
}

#reason-codes .is-correction {
  border-color: var(--retraction);
  color: var(--retraction);
}

.recorder-controls {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(90px, auto)) minmax(150px, 1fr);
  padding: 16px 18px 18px;
}

.recorder-controls button {
  background: var(--graphite-800);
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--text);
  cursor: pointer;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  min-height: 44px;
  padding: 9px 14px;
  text-transform: uppercase;
}

.recorder-controls button:hover {
  border-color: var(--safety);
  color: var(--safety);
}

#pause-control[aria-pressed="true"] {
  background: #21190f;
  border-color: var(--safety);
  color: var(--safety);
}

.recorder-controls progress {
  accent-color: var(--safety);
  height: 10px;
  justify-self: stretch;
  width: 100%;
}

.receipt-inspector,
.service-handoff,
.second-invariant,
.failure-state {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 16px 38px;
  grid-template-columns: minmax(210px, 0.65fr) minmax(0, 1.35fr);
  padding: 38px 0;
}

.receipt-inspector h2,
.service-handoff h2,
.second-invariant h2,
.failure-state h2 {
  font-size: clamp(1.55rem, 3vw, 2.6rem);
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.receipt-inspector > .eyebrow,
.service-handoff > .eyebrow,
.second-invariant > .eyebrow,
.failure-state > .eyebrow {
  grid-column: 1;
}

.receipt-inspector > h2,
.service-handoff > h2,
.second-invariant > h2,
.failure-state > h2 {
  grid-column: 2;
  grid-row: 1 / span 2;
}

#sequence-checksum {
  color: var(--evidence);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  grid-column: 1 / -1;
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}

.receipt-inspector details {
  background: var(--graphite-900);
  border: 1px solid var(--line);
  grid-column: 1 / -1;
  min-width: 0;
}

.receipt-inspector summary {
  color: var(--text);
  cursor: pointer;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  min-height: 44px;
  padding: 13px 16px;
  text-transform: uppercase;
}

.receipt-inspector pre {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.67rem;
  margin: 0;
  max-height: 500px;
  max-width: 100%;
  overflow: auto;
  padding: 18px;
  white-space: pre;
}

.receipt-inspector nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  grid-column: 1 / -1;
}

.receipt-inspector nav a {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
}

.authority-strip {
  background: var(--graphite-800);
  border: 1px solid var(--line);
  border-left: 5px solid var(--evidence);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 10px 0 18px;
  padding: 16px 18px;
}

.service-handoff {
  background: var(--graphite-900);
  border: 1px solid var(--line);
  border-left: 5px solid var(--safety);
  margin: 0 0 46px;
  padding: 30px 28px;
}

.service-handoff > p:not(.eyebrow),
.handoff-actions {
  grid-column: 2;
}

.service-handoff > p:not(.eyebrow) {
  color: var(--muted);
  margin: 0;
}

.service-handoff > p strong {
  color: var(--text);
}

.handoff-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.handoff-actions a {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
}

.handoff-actions .handoff-primary {
  background: var(--safety);
  color: var(--graphite-950);
  padding: 11px 14px;
  text-decoration: none;
}

.handoff-actions .handoff-primary:hover {
  background: var(--text);
  color: var(--graphite-950);
}

.service-handoff .handoff-boundary {
  border-top: 1px solid var(--line);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.64rem;
  padding-top: 14px;
}

.authority-strip strong {
  color: var(--success);
  font-size: 0.78rem;
}

.authority-strip span {
  color: var(--text);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
}

.authority-strip span::before {
  color: var(--evidence);
  content: "× ";
}

.second-invariant > p:not(.eyebrow) {
  color: var(--muted);
  grid-column: 2;
  margin: 0;
}

.second-invariant > a {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  grid-column: 2;
  justify-self: start;
  text-transform: uppercase;
}

.failure-state {
  background: var(--graphite-800);
  border: 2px solid var(--retraction);
  margin: 30px 0 48px;
  padding: 28px;
}

.failure-state .eyebrow,
.failure-state h2,
.failure-state a {
  color: var(--retraction);
}

.failure-state > p:not(.eyebrow),
.failure-state > a,
.failure-state > code {
  grid-column: 2;
}

.failure-state > p:not(.eyebrow) {
  color: var(--text);
  font-family: "IBM Plex Mono", monospace;
  margin: 0;
}

.failure-state > a {
  justify-self: start;
}

.failure-state > code {
  background: var(--graphite-950);
  border-left: 3px solid var(--retraction);
  color: var(--text);
  font-family: "IBM Plex Mono", monospace;
  overflow-wrap: anywhere;
  padding: 11px 13px;
}

footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.65rem;
  padding: 24px 0 36px;
}

footer p {
  margin: 0;
  max-width: 940px;
}

@media (max-width: 760px) {
  .site-header {
    gap: 8px 16px;
    grid-template-columns: 1fr auto;
    padding: 12px 16px;
  }

  .site-header::after {
    left: 16px;
  }

  .runtime {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  main,
  footer {
    width: calc(100% - 28px);
  }

  .hero {
    gap: 12px;
    grid-template-columns: minmax(0, 1fr);
    padding: 32px 0 24px;
  }

  .hero > .eyebrow,
  .product-role,
  h1,
  .hero h1 + p,
  .hero h1 + p + p,
  .shell-command {
    grid-column: 1;
    grid-row: auto;
  }

  h1 {
    font-size: clamp(2.65rem, 13vw, 4rem);
  }

  .product-role {
    max-width: none;
  }

  .shell-command {
    align-items: start;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr);
    padding: 12px;
  }

  .flight-recorder {
    margin-top: 20px;
  }

  .flight-recorder > header,
  .story-panel {
    gap: 10px;
    grid-template-columns: minmax(0, 1fr);
    padding-left: 16px;
    padding-right: 16px;
  }

  #phase-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #phase-rail li:nth-child(2) {
    border-right: 0;
  }

  #phase-rail li:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  #story-label {
    grid-row: auto;
  }

  .dependency-trace {
    padding: 8px 4px;
  }

  #dependency-graph {
    min-height: 260px;
  }

  #dependency-list {
    grid-template-columns: minmax(0, 1fr);
  }

  #dependency-list li,
  #dependency-list li:nth-child(even) {
    border-right: 0;
  }

  #dependency-list span {
    font-size: 0.72rem;
  }

  #reason-codes {
    padding-left: 12px;
    padding-right: 12px;
  }

  .recorder-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 14px 12px 16px;
  }

  .recorder-controls progress {
    grid-column: 1 / -1;
  }

  .receipt-inspector,
  .service-handoff,
  .second-invariant,
  .failure-state {
    gap: 12px;
    grid-template-columns: minmax(0, 1fr);
    padding: 28px 0;
  }

  .receipt-inspector > .eyebrow,
  .service-handoff > .eyebrow,
  .second-invariant > .eyebrow,
  .failure-state > .eyebrow,
  .receipt-inspector > h2,
  .service-handoff > h2,
  .second-invariant > h2,
  .failure-state > h2,
  #sequence-checksum,
  .receipt-inspector details,
  .receipt-inspector nav,
  .service-handoff > p:not(.eyebrow),
  .service-handoff .handoff-actions,
  .second-invariant > p:not(.eyebrow),
  .second-invariant > a,
  .failure-state > p:not(.eyebrow),
  .failure-state > a,
  .failure-state > code {
    grid-column: 1;
    grid-row: auto;
  }

  .resolution-path {
    align-items: start;
    grid-template-columns: minmax(0, 1fr);
  }

  .resolution-path__route,
  .resolution-path__current {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .failure-state {
    margin: 20px 0 34px;
    padding: 20px;
  }

  .authority-strip {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    transform: none !important;
  }
}

html[data-motion="reduced"] .story-panel,
html[data-motion="reduced"] .graph-node,
html[data-motion="reduced"] .graph-edge {
  animation: none;
  transform: none;
  transition-duration: 0s;
}

html[data-motion="reduced"] .graph-wave-target {
  filter: none;
  opacity: 1;
}
