:root {
  color-scheme: dark;
  --bg: #111111;
  --fg: #f1f1ee;
  --muted: #8f8f88;
  --muted-2: #5f5f59;
  --panel: #181818;
  --panel-2: #20201e;
  --line: #363631;
  --line-soft: rgba(255, 255, 255, 0.1);
  --accent: #f29d38;
  --accent-dim: rgba(242, 157, 56, 0.13);
  --ok: #5fd18b;
  --fail: #ff6b5f;
  --skip: #9ea4b3;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --sans: "IBM Plex Sans", Inter, ui-sans-serif, system-ui, sans-serif;
  --display: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #3d3d38 #111111;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
}

.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;
}

body::-webkit-scrollbar {
  width: 10px;
}

body::-webkit-scrollbar-track {
  background: var(--bg);
}

body::-webkit-scrollbar-thumb {
  background: #3d3d38;
}

::selection {
  background: var(--accent);
  color: #111111;
}

a {
  color: inherit;
}

.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.34;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 60px 60px;
}

.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

.side-nav {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 20;
  display: flex;
  width: 78px;
  height: 100vh;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  border-right: 1px solid var(--line-soft);
  background: rgba(17, 17, 17, 0.82);
  backdrop-filter: blur(14px);
}

.side-nav a {
  position: relative;
  width: 100%;
  height: 18px;
}

.side-nav a::before {
  content: "";
  position: absolute;
  left: 34px;
  top: 6px;
  width: 6px;
  height: 6px;
  background: var(--muted-2);
  transition: background 180ms ease, transform 180ms ease;
}

.side-nav a::after {
  content: attr(data-label);
  position: absolute;
  left: 54px;
  top: 0;
  color: var(--muted);
  font: 700 10px/1 var(--mono);
  letter-spacing: 0.16em;
  opacity: 0;
  text-transform: uppercase;
  transform: translateX(-6px);
  transition: opacity 180ms ease, transform 180ms ease, color 180ms ease;
  white-space: nowrap;
}

.side-nav a:hover::before {
  background: var(--accent);
  transform: scale(1.25);
}

.side-nav a.active::before {
  background: var(--accent);
  box-shadow: 0 0 18px rgba(242, 157, 56, 0.55);
  transform: scale(1.25);
}

.side-nav a:hover::after {
  color: var(--accent);
  opacity: 1;
  transform: translateX(0);
}

main {
  position: relative;
  z-index: 1;
  padding-left: 78px;
}

.console-shell,
.trace-section,
.artifact-section,
.notes-section {
  padding: 64px clamp(24px, 5vw, 72px);
}

.console-shell {
  min-height: 100vh;
  display: grid;
  align-content: center;
  gap: 34px;
}

.masthead {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  padding-left: 28px;
}

.vertical-tag {
  position: absolute;
  left: 0;
  top: 50%;
  color: var(--muted-2);
  font: 700 10px/1 var(--mono);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  transform: rotate(-90deg) translateX(-50%);
  transform-origin: left top;
}

.kicker,
.panel-label {
  margin: 0 0 14px;
  color: var(--accent);
  font: 800 10px/1.2 var(--mono);
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h2 {
  font-family: var(--display);
  font-weight: 900;
  line-height: 0.88;
  text-transform: uppercase;
}

.dek {
  max-width: 640px;
  margin: 28px 0 0;
  color: var(--muted);
  font: 500 14px/1.8 var(--mono);
}

.split-board {
  display: grid;
  gap: clamp(6px, 1vw, 12px);
  width: min(100%, 1120px);
}

.split-row {
  display: grid;
  grid-template-columns: repeat(var(--glyph-count), minmax(42px, 1fr));
  gap: 1px;
  background: rgba(242, 157, 56, 0.28);
}

.glyph {
  position: relative;
  min-height: clamp(92px, 13vw, 178px);
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.6);
  background: linear-gradient(180deg, rgba(242, 157, 56, 0.28), rgba(242, 157, 56, 0.09));
  color: var(--accent);
  font: 900 clamp(72px, 13vw, 174px) / 0.8 var(--display);
  text-transform: uppercase;
  transform: translateY(18px);
  opacity: 0;
  animation: tileEnter 700ms cubic-bezier(.2, .8, .2, 1) forwards;
  animation-delay: calc(var(--i) * 55ms);
}

.split-row-secondary .glyph {
  background: linear-gradient(180deg, rgba(241, 241, 238, 0.14), rgba(241, 241, 238, 0.04));
  color: var(--fg);
}

.glyph::before,
.glyph::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
}

.glyph::before {
  top: 50%;
  border-top: 1px solid rgba(0, 0, 0, 0.55);
  box-shadow: 0 -1px rgba(255, 255, 255, 0.04);
}

.glyph::after {
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transform: translateX(-130%);
  animation: sweep 2600ms ease-in-out infinite;
  animation-delay: calc(var(--i) * 150ms);
}

.glyph span {
  transform: translateY(0);
  transition: transform 160ms ease, color 160ms ease;
}

.glyph.is-cycling span {
  transform: translateY(-3px);
}

.build-tag {
  align-self: end;
  display: grid;
  gap: 8px;
  min-width: 190px;
  padding: 14px;
  border: 1px solid var(--line);
  color: var(--muted);
  font: 700 10px/1.2 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.build-tag span:first-child {
  color: var(--fg);
}

.mission-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1fr) minmax(240px, 0.85fr);
  gap: 18px;
}

.operator-panel,
.capability-panel,
.run-card,
.trace-section,
.artifact-section,
.notes-grid article {
  border: 1px solid var(--line);
  background: rgba(24, 24, 24, 0.92);
}

.operator-panel,
.capability-panel,
.run-card {
  min-height: 260px;
  padding: 22px;
}

.operator-panel {
  min-height: 520px;
}

.operator-panel,
.capability-panel,
.run-card,
.notes-grid article,
.trace-section,
.artifact-section,
.site-footer {
  position: relative;
  overflow: hidden;
}

.operator-panel::after,
.capability-panel::after,
.run-card::after,
.notes-grid article::after,
.trace-section::after,
.artifact-section::after,
.site-footer::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 48px;
  height: 48px;
  border-top: 1px solid transparent;
  border-right: 1px solid transparent;
  opacity: 0;
  transition: opacity 220ms ease, border-color 220ms ease;
}

.operator-panel:hover::after,
.capability-panel:hover::after,
.run-card:hover::after,
.notes-grid article:hover::after,
.trace-section:hover::after,
.artifact-section:hover::after,
.site-footer:hover::after {
  border-color: var(--accent);
  opacity: 1;
}

label {
  display: block;
  margin-bottom: 10px;
  color: var(--fg);
  font: 800 11px/1 var(--mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.mode-label {
  margin-top: 20px;
}

.mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.mode-option {
  min-width: 0;
  min-height: 58px;
  display: grid;
  align-content: center;
  justify-content: start;
  gap: 5px;
  margin: 0;
  padding: 9px 10px;
  border: 0;
  background: #111111;
  text-align: left;
}

.mode-option span,
.mode-option small {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.mode-option small {
  color: var(--muted-2);
  font: 700 9px/1.2 var(--mono);
  letter-spacing: 0.08em;
}

.mode-option.active {
  background: var(--accent-dim);
  color: var(--accent);
  box-shadow: inset 3px 0 var(--accent);
}

.mode-option.unavailable {
  cursor: not-allowed;
  opacity: 0.42;
}

.mode-disclosure {
  min-height: 46px;
  margin: 12px 0 0;
  color: var(--muted);
  font: 600 10px/1.55 var(--mono);
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
  pointer-events: none;
  transform: translateY(-70%) rotate(45deg);
}

.scenario-context {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  padding: 12px 12px 12px 14px;
  border-left: 2px solid var(--accent);
  background: rgba(242, 157, 56, 0.06);
  font-family: var(--mono);
}

.scenario-context strong {
  color: var(--fg);
  font-size: 10px;
  line-height: 1.5;
}

.scenario-context span {
  color: var(--accent);
  font-size: 9px;
  line-height: 1.45;
  text-transform: uppercase;
}

select,
button {
  width: 100%;
  min-height: 48px;
  border-radius: 0;
  font: 800 11px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

select {
  appearance: none;
  border: 1px solid var(--line);
  background: #111111;
  color: var(--fg);
  padding: 0 42px 0 14px;
}

button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  padding: 0 14px;
  border: 1px solid rgba(242, 157, 56, 0.7);
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

button:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--accent);
}

button.is-running {
  animation: runPulse 1100ms ease-in-out infinite;
}

button:disabled {
  cursor: wait;
  opacity: 0.55;
}

button i {
  width: 11px;
  height: 11px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

.microcopy,
.loading-line {
  color: var(--muted);
  font: 500 12px/1.75 var(--mono);
}

.capability-grid {
  display: grid;
}

.capability-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 36px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font: 700 10px/1.2 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.capability-row strong {
  color: var(--fg);
}

.hint {
  color: var(--muted);
  font: 500 11px/1.7 var(--mono);
}

.run-summary {
  display: grid;
  gap: 12px;
  color: var(--muted);
  font: 600 12px/1.65 var(--mono);
}

.run-summary strong {
  display: block;
  color: var(--fg);
  font-size: 26px;
  line-height: 1.05;
  font-family: var(--display);
  letter-spacing: 0;
  text-transform: uppercase;
}

.run-summary em {
  padding-left: 10px;
  border-left: 2px solid var(--accent);
  color: var(--muted);
  font-style: normal;
  font-size: 10px;
}

.pipeline-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  gap: 1px;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--line);
}

.pipeline-strip div {
  min-height: 76px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  background: #151515;
  color: var(--fg);
  font: 800 11px/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease;
}

.pipeline-strip span {
  color: var(--accent);
}

.pipeline-strip div.active {
  background: rgba(242, 157, 56, 0.15);
  color: var(--accent);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 26px;
}

h2 {
  font-size: clamp(48px, 8vw, 112px);
}

.status,
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  color: var(--muted);
  font: 900 10px/1 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.status.passed,
.pill.passed,
.status.verified,
.pill.verified {
  border-color: rgba(95, 209, 139, 0.45);
  color: var(--ok);
}

.status.failed,
.pill.failed {
  border-color: rgba(255, 107, 95, 0.5);
  color: var(--fail);
}

.status.skipped,
.pill.skipped {
  border-color: rgba(158, 164, 179, 0.5);
  color: var(--skip);
}

.status.simulated,
.pill.simulated {
  border-color: rgba(242, 157, 56, 0.55);
  background: rgba(242, 157, 56, 0.08);
  color: var(--accent);
}

.stage-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.flow-story {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr) 24px) minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  margin-bottom: 26px;
}

.flow-node {
  min-width: 0;
  min-height: 260px;
  padding: 14px;
  border: 1px solid var(--line);
  background: #151515;
  transition: border-color 220ms ease, background 220ms ease, transform 220ms ease, opacity 220ms ease;
}

.flow-node header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--accent);
  font: 900 9px/1 var(--mono);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.flow-node header b {
  color: var(--muted-2);
  font-size: 8px;
}

.flow-node h3 {
  min-height: 54px;
  margin-top: 14px;
  color: var(--fg);
  font: 900 25px/0.95 var(--display);
  text-transform: uppercase;
}

.flow-node dl {
  display: grid;
  gap: 5px;
  margin: 14px 0 0;
  font-family: var(--mono);
}

.flow-node dt {
  margin-top: 6px;
  color: var(--muted-2);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.flow-node dd {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.flow-node.queued {
  opacity: 0.52;
}

.flow-node.active {
  z-index: 2;
  border-color: var(--accent);
  background: rgba(242, 157, 56, 0.12);
  transform: translateY(-4px);
  animation: runPulse 1100ms ease-in-out infinite;
}

.flow-node.active header b {
  color: var(--accent);
}

.flow-node.complete {
  border-color: rgba(95, 209, 139, 0.4);
}

.flow-node.complete header b {
  color: var(--ok);
}

.flow-node.failed {
  border-color: var(--fail);
}

.flow-node.failed header b {
  color: var(--fail);
}

.flow-arrow {
  position: relative;
  display: grid;
  place-items: center;
  color: var(--muted-2);
}

.flow-arrow::before {
  content: "";
  width: 100%;
  border-top: 1px solid var(--line);
}

.flow-arrow::after {
  content: "";
  position: absolute;
  right: 1px;
  width: 6px;
  height: 6px;
  border-top: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
  transform: rotate(45deg);
}

.flow-arrow span {
  position: absolute;
  padding: 3px;
  background: var(--panel);
  color: var(--muted-2);
  font: 800 7px/1 var(--mono);
  text-transform: uppercase;
}

.stage {
  position: relative;
  border: 1px solid var(--line);
  background: #151515;
  overflow: hidden;
  transform: translateY(16px);
  opacity: 0;
  animation: cardIn 520ms cubic-bezier(.2, .8, .2, 1) forwards;
  animation-delay: calc(var(--i) * 55ms);
}

.stage::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 42px;
  height: 42px;
  border-top: 1px solid transparent;
  border-right: 1px solid transparent;
  opacity: 0;
  transition: opacity 180ms ease, border-color 180ms ease;
}

.stage:hover::after,
.stage[open]::after {
  border-color: var(--accent);
  opacity: 1;
}

.stage summary {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  min-height: 112px;
  padding: 18px;
  cursor: pointer;
  list-style: none;
}

.stage summary::-webkit-details-marker {
  display: none;
}

.stage h3 {
  color: var(--fg);
  font: 900 28px/0.95 var(--display);
  text-transform: uppercase;
}

.stage-index {
  display: block;
  margin-bottom: 12px;
  color: var(--muted-2);
  font: 800 10px/1 var(--mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.stage-body {
  padding: 0 18px 18px;
  color: var(--muted);
  font: 500 12px/1.75 var(--mono);
}

.stage-body dl {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 8px 14px;
  margin: 16px 0;
}

.stage-body dt {
  color: var(--fg);
  font-weight: 900;
  text-transform: uppercase;
}

.stage-body dd {
  margin: 0;
  overflow-wrap: anywhere;
}

pre {
  max-height: 300px;
  overflow: auto;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  background: #0b0b0b;
  color: #d8d4ca;
  font: 500 11px/1.55 var(--mono);
  white-space: pre-wrap;
}

.artifact-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.artifact {
  position: relative;
  min-height: 108px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  background: #151515;
  transform: translateY(14px);
  opacity: 0;
  animation: cardIn 520ms cubic-bezier(.2, .8, .2, 1) forwards;
  animation-delay: calc(var(--i) * 35ms);
}

.artifact:hover {
  border-color: rgba(242, 157, 56, 0.65);
  background: #191713;
}

.artifact a {
  color: var(--fg);
  font: 900 22px/0.95 var(--display);
  overflow-wrap: anywhere;
  text-decoration: none;
  text-transform: uppercase;
}

.artifact span {
  color: var(--muted);
  font: 800 10px/1 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.empty-state {
  grid-column: 1 / -1;
  min-height: 180px;
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 24px;
  border: 1px dashed var(--line);
  color: var(--muted);
  font: 500 12px/1.7 var(--mono);
}

.empty-state span {
  color: var(--accent);
  font: 900 10px/1 var(--mono);
  letter-spacing: 0.28em;
}

.empty-state p {
  margin: 0;
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.notes-grid article {
  min-height: 250px;
  padding: 22px;
}

.notes-grid span {
  color: var(--accent);
  font: 900 10px/1 var(--mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.notes-grid h3 {
  margin-top: 18px;
  color: var(--fg);
  font: 900 42px/0.95 var(--display);
  text-transform: uppercase;
}

.notes-grid p {
  margin: 22px 0 0;
  color: var(--muted);
  font: 500 12px/1.8 var(--mono);
}

.site-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin: 0 clamp(24px, 5vw, 72px) 64px;
  padding: 34px;
  border: 1px solid var(--line);
  background: rgba(24, 24, 24, 0.92);
}

.site-footer h2 {
  font-size: clamp(42px, 7vw, 96px);
}

.site-footer a {
  min-width: 260px;
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(242, 157, 56, 0.5);
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.site-footer a:hover {
  background: var(--accent-dim);
  color: var(--accent);
  transform: translateY(-3px);
}

.site-footer a span {
  color: var(--muted);
  font: 900 10px/1 var(--mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.site-footer a strong {
  font: 900 28px/0.95 var(--display);
  letter-spacing: 0;
  text-transform: uppercase;
}

.reveal {
  opacity: 1;
  transform: translateY(0);
  animation: revealIn 700ms cubic-bezier(.2, .8, .2, 1) both;
}

.live-line {
  position: relative;
  overflow: hidden;
}

.live-line::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: scanX 1400ms linear infinite;
}

@keyframes tileEnter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sweep {
  0%, 55% {
    transform: translateX(-130%);
  }
  100% {
    transform: translateX(130%);
  }
}

@keyframes cardIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes runPulse {
  0%, 100% {
    box-shadow: 0 0 0 rgba(242, 157, 56, 0);
  }
  50% {
    box-shadow: 0 0 28px rgba(242, 157, 56, 0.22);
  }
}

@keyframes revealIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scanX {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}

@media (max-width: 1100px) {
  .mission-grid,
  .stage-list,
  .notes-grid {
    grid-template-columns: 1fr;
  }

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

  .build-tag {
    max-width: 240px;
  }

  .flow-story {
    display: flex;
    overflow-x: auto;
    padding: 4px 0 12px;
    scroll-snap-type: x proximity;
  }

  .flow-node {
    min-width: 220px;
    scroll-snap-align: start;
  }

  .flow-arrow {
    min-width: 32px;
  }
}

@media (max-width: 760px) {
  .side-nav {
    display: none;
  }

  main {
    padding-left: 0;
  }

  .console-shell,
  .trace-section,
  .artifact-section,
  .notes-section {
    padding: 42px 18px;
  }

  .masthead {
    padding-left: 0;
  }

  .vertical-tag {
    position: static;
    transform: none;
    margin-bottom: 14px;
  }

  .glyph {
    min-height: clamp(62px, 19vw, 98px);
    font-size: clamp(52px, 18vw, 94px);
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .stage-body dl {
    grid-template-columns: 1fr;
  }

  .flow-story {
    flex-direction: column;
    overflow-x: visible;
    padding-bottom: 0;
  }

  .flow-node {
    min-width: 0;
    min-height: 0;
  }

  .flow-node h3 {
    min-height: 0;
  }

  .flow-arrow {
    min-width: 0;
    min-height: 34px;
  }

  .flow-arrow::before {
    width: 1px;
    height: 100%;
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .flow-arrow::after {
    right: auto;
    bottom: 2px;
    transform: rotate(135deg);
  }

  .site-footer {
    margin: 0 18px 42px;
    padding: 22px;
    flex-direction: column;
    align-items: stretch;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
