/*
  Editorial Workbench — reusable design + motion library
  Extracted from outputs/stem-agent-orchestration-website-style.html (2026-08-26).
  Paper/ink/cobalt/red/yellow editorial system: bordered "plate" surfaces with hard
  offset shadows, condensed display type, mono labels, and a small set of
  data-attribute-driven motion primitives (reveal / stagger / sequence / draw / lift).

  SSoT: design/styles/editorial-workbench/workbench.css
  DUPLICATED-IN: C:/Programmatica/Active/josiahbujanda-com/workbench.css (sync via scripts/sync-workbench.ps1)

  Fonts are NOT declared here; the host page loads Barlow Condensed 800/900,
  IBM Plex Mono 400/700, Inter 400, Archivo Black.
*/

/* =========================================================================
   L1 TOKENS
   ========================================================================= */
:root {
  /* Palette */
  --paper: #F5F0E5;
  --paper-deep: #E9E0CD;
  --white: #FFFDF7;
  --ink: #151515;
  --blue: #1557D6;
  --blue-deep: #0E42AD;
  --red: #E94B35;
  --yellow: #F3CF55;
  --yellow-text: #B88B00;
  --muted: #675F53;
  --text-on-ink: #F5F5F7;

  /* Aliases (same values, alternate names used by some source markup) */
  --cobalt: var(--blue);
  --hot-rod: var(--red);
  --cream: var(--paper);
  --carbon: var(--ink);
  --signal: var(--yellow);

  /* Fonts */
  --body: "Inter", Arial, sans-serif;
  --display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --black: "Archivo Black", Impact, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  /* Motion */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-fast: cubic-bezier(.2, .8, .2, 1);
  --dur-tap: 180ms;
  --dur-panel: 250ms;
  --dur-row: 450ms;
  --dur-step: 520ms;
  --dur-reveal: 700ms;
  --dur-draw: 900ms;
  --stagger: 70ms;

  /* Layout */
  --shell: 1400px;

  /* Shadow offsets (hard offset shadow = var(--offset) var(--offset) 0 var(--shadow-color)) */
  --offset-s: 3px;
  --offset-m: 7px;
  --offset-l: 12px;
}

/* =========================================================================
   L2 BASE
   ========================================================================= */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--body);
  background:
    radial-gradient(circle at 20% 15%, rgba(255,255,255,.78), transparent 26rem),
    linear-gradient(rgba(21,21,21,.018) 1px, transparent 1px),
    var(--paper);
  background-size: auto, 100% 5px, auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button { font: inherit; color: inherit; }

button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

[id] { scroll-margin-top: 96px; }

.wb-page {
  width: calc(100% - 64px);
  max-width: var(--shell);
  margin: 0 auto;
  padding: 54px 0 92px;
}

/* =========================================================================
   L3 TYPE ROLES
   ========================================================================= */
.t-label,
.eyebrow,
.section-index,
.project-label,
.micro,
.tag,
.status,
.phase-index,
.table-head,
.principle-index {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.eyebrow,
.section-index {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.t-display {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.045em;
  line-height: .82;
}

.t-body {
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.6;
}

/* =========================================================================
   L4 SURFACES
   ========================================================================= */
.plate {
  --shadow-color: var(--ink);
  position: relative;
  border: 2px solid var(--ink);
  background: rgba(250,247,238,.66);
  box-shadow: var(--offset-l) var(--offset-l) 0 var(--shadow-color);
}
.plate--blue { --shadow-color: var(--blue); }
.plate--red { --shadow-color: var(--red); }
.plate--yellow { --shadow-color: var(--yellow); }
.plate--grid {
  background:
    linear-gradient(rgba(21,87,214,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21,87,214,.07) 1px, transparent 1px),
    rgba(255,253,247,.62);
  background-size: 26px 26px;
}
.plate--dots {
  background-image: radial-gradient(rgba(21,21,21,.13) .8px, transparent .8px);
  background-size: 10px 10px;
}

.tape {
  position: absolute;
  z-index: 5;
  width: 112px;
  height: 27px;
  background: var(--blue);
  opacity: .94;
}
.tape--red { background: var(--red); }
.tape--yellow { background: var(--yellow); }

.board--ink {
  position: relative;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--text-on-ink);
  overflow: hidden;
}
.board--ink::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.16) .8px, transparent .8px);
  background-size: 10px 10px;
  opacity: .55;
}

.strip {
  display: grid;
  grid-template-columns: 170px 1fr;
  border: 2px solid var(--ink);
  background: var(--yellow);
  transform: rotate(-.25deg);
}
.strip strong {
  padding: 17px 18px;
  border-right: 2px solid var(--ink);
  font: 900 1.4rem/.95 var(--display);
  text-transform: uppercase;
}
.strip p { margin: 0; padding: 16px 18px; font-size: 13px; line-height: 1.55; }

.rail {
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--text-on-ink);
  font: 800 12px/1 var(--mono);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.rail--red { background: var(--red); color: var(--ink); }

.note {
  position: relative;
  border: 2px solid var(--ink);
  background: var(--paper);
  box-shadow: var(--offset-m) var(--offset-m) 0 var(--ink);
  transform: translateY(0) rotate(var(--tilt, 0deg));
}
.note::before {
  content: "";
  position: absolute;
  top: -13px;
  left: 50%;
  width: 72px;
  height: 24px;
  transform: translateX(-50%) rotate(-2deg);
  background: var(--blue);
  opacity: .9;
}

/* =========================================================================
   L5 BLOCKS (ported from the source page, class names preserved)
   ========================================================================= */
.hero {
  min-height: 610px;
  display: grid;
  grid-template-columns: minmax(420px, .92fr) minmax(520px, 1.15fr);
  gap: 58px;
  align-items: center;
  padding: 42px 0 64px;
  border-bottom: 2px solid var(--ink);
}
.hero h1,
.section-heading h2 {
  margin: 0;
  font-family: var(--display);
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: -.045em;
}
.hero h1 {
  max-width: 690px;
  font-size: clamp(5rem, 9.5vw, 9.6rem);
  line-height: .76;
}
.hero-rule {
  width: 92px;
  height: 13px;
  margin: 30px 0 24px 4px;
  background: var(--blue);
}
.hero-deck {
  max-width: 560px;
  margin: 0 0 0 4px;
  font-size: clamp(1.05rem, 1.5vw, 1.34rem);
  line-height: 1.48;
}
.hero-deck strong { font-weight: 800; }

.hero-plate {
  position: relative;
  min-height: 470px;
  border: 2px solid var(--ink);
  background:
    linear-gradient(rgba(21,87,214,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21,87,214,.07) 1px, transparent 1px),
    rgba(255,253,247,.62);
  background-size: 26px 26px;
  box-shadow: 12px 12px 0 var(--yellow);
  transform: rotate(.55deg);
  overflow: hidden;
}
.hero-plate::before {
  content: "ORCHESTRATION / RUN MAP";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  width: 100%;
  padding: 10px 13px;
  border-bottom: 2px solid var(--ink);
  background: var(--paper);
  font: 700 10px/1 var(--mono);
  letter-spacing: .08em;
}
.hero-plate .tape {
  top: -12px;
  left: 38%;
  transform: rotate(-3deg);
}
.hero-diagram { width: 100%; height: 100%; min-height: 470px; display: block; }

/* ---------- SECTIONS ---------- */
.section {
  padding: 130px 0 100px;
  border-bottom: 2px solid var(--ink);
}
.section-heading {
  display: grid;
  grid-template-columns: .28fr .9fr .72fr;
  gap: 46px;
  align-items: end;
  margin-bottom: 54px;
}
.section-heading h2 {
  font-size: clamp(4rem, 6.8vw, 7.4rem);
  line-height: .82;
}
.section-heading p {
  margin: 0;
  max-width: 440px;
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- ARCHITECTURE ---------- */
.architecture-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.system-card {
  position: relative;
  min-height: 530px;
  border: 2px solid var(--ink);
  background: rgba(250,247,238,.66);
  overflow: hidden;
}
.system-card--blue { box-shadow: 9px 9px 0 var(--blue); }
.system-card--red { box-shadow: 9px 9px 0 var(--red); }

.system-card-head {
  display: grid;
  grid-template-columns: 56px 1fr;
  min-height: 106px;
  border-bottom: 2px solid var(--ink);
}
.system-card-rail {
  display: grid;
  place-items: center;
  border-right: 2px solid var(--ink);
  background: var(--ink);
  color: var(--text-on-ink);
  font: 800 12px/1 var(--mono);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.system-card--red .system-card-rail { background: var(--red); color: var(--ink); }
.system-card-copy { padding: 17px 20px 15px; }
.system-card-copy .project-label { font-size: 10px; color: var(--muted); }
.system-card-copy h3 {
  margin: 4px 0 2px;
  font-family: var(--display);
  font-size: 2.7rem;
  line-height: .92;
  text-transform: uppercase;
}
.system-card-copy p { margin: 6px 0 0; max-width: 50ch; font-size: 12px; line-height: 1.48; }
.system-canvas {
  position: relative;
  min-height: 365px;
  background: radial-gradient(rgba(21,21,21,.13) .8px, transparent .8px), transparent;
  background-size: 10px 10px;
}
.system-canvas svg { display: block; width: 100%; height: 365px; }
.tag {
  position: absolute;
  z-index: 4;
  left: 14px;
  bottom: 14px;
  padding: 8px 10px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  font-size: 9px;
  font-weight: 700;
  box-shadow: 3px 3px 0 var(--ink);
}

.route {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}
.route-blue { stroke: var(--blue); }
.route-red { stroke: var(--red); }
.route-dash { stroke-dasharray: 6 6; animation: dashShift 1.8s linear infinite; }
@keyframes dashShift { to { stroke-dashoffset: -24; } }

.diagram-label {
  font-family: var(--mono);
  font-size: 10px;
  fill: var(--ink);
  letter-spacing: .06em;
}
.diagram-label-small { font-size: 8px; fill: var(--muted); }
.packet { filter: drop-shadow(2px 2px 0 rgba(21,21,21,.2)); }

.decision-strip {
  display: grid;
  grid-template-columns: 170px 1fr;
  margin-top: 32px;
  border: 2px solid var(--ink);
  background: var(--yellow);
  transform: rotate(-.25deg);
}
.decision-strip strong {
  padding: 17px 18px;
  border-right: 2px solid var(--ink);
  font: 900 1.4rem/.95 var(--display);
  text-transform: uppercase;
}
.decision-strip p { margin: 0; padding: 16px 18px; font-size: 13px; line-height: 1.55; }

/* ---------- PIPELINE ---------- */
.pipeline-board {
  position: relative;
  border: 2px solid var(--ink);
  background:
    linear-gradient(rgba(21,87,214,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21,87,214,.055) 1px, transparent 1px),
    rgba(255,253,247,.72);
  background-size: 24px 24px;
  box-shadow: 12px 12px 0 var(--blue);
}
.pipeline-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 12px 14px;
  border-bottom: 2px solid var(--ink);
  background: var(--ink);
  color: var(--text-on-ink);
}
.replay {
  min-height: 36px;
  padding: 7px 11px;
  border: 1.5px solid var(--white);
  background: transparent;
  color: var(--text-on-ink);
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .06em;
  cursor: pointer;
}
.replay:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }

.pipeline-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  min-width: 760px;
  gap: 0;
  padding: 48px 34px 28px;
  overflow: hidden;
}
.pipeline-line {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 84px;
  height: 2px;
  background: var(--ink);
}
.pipeline-progress {
  position: absolute;
  left: 10%;
  top: 84px;
  width: 0;
  height: 5px;
  background: var(--blue);
  transform: translateY(-1.5px);
  transition: width var(--dur-step) var(--ease);
}
.pipeline-runner {
  position: absolute;
  z-index: 5;
  left: 10%;
  top: 77px;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--ink);
  opacity: 0;
  transition: left var(--dur-step) var(--ease), opacity var(--dur-tap) ease;
}
.pipeline-board.is-running .pipeline-runner { opacity: 1; }

.phase-btn {
  position: relative;
  z-index: 4;
  min-height: 112px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: center;
}
.phase-node {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  border: 2px solid var(--ink);
  background: var(--paper);
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 280ms var(--ease), background 220ms ease, color 220ms ease;
}
.phase-name {
  display: block;
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 900;
  line-height: .9;
  text-transform: uppercase;
}
.phase-sub { display: block; margin-top: 5px; font: 9px/1.2 var(--mono); color: var(--muted); }
.phase-btn.is-active .phase-node,
.phase-btn[aria-expanded="true"] .phase-node {
  background: var(--yellow);
  transform: translateY(-5px) rotate(-2deg);
}
.phase-btn.is-complete .phase-node { background: var(--blue); color: var(--white); }

.pipeline-detail-stage {
  position: relative;
  min-height: 245px;
  border-top: 2px solid var(--ink);
  background: var(--paper);
}
.detail-panel {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 180px minmax(0, .82fr) minmax(0, 1.18fr);
  gap: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(9px);
  transition: opacity var(--dur-panel) var(--ease-fast), transform var(--dur-panel) var(--ease-fast), visibility var(--dur-panel);
}
.detail-panel.visible { opacity: 1; visibility: visible; transform: none; }
.detail-label {
  display: grid;
  place-items: center;
  padding: 20px;
  border-right: 2px solid var(--ink);
  background: var(--blue);
  color: var(--white);
  font: 900 2rem/.86 var(--display);
  text-align: center;
  text-transform: uppercase;
}
.detail-copy { padding: 24px 25px; border-right: 1px solid var(--ink); }
.detail-copy .micro { font-size: 9px; color: var(--blue); font-weight: 700; }
.detail-copy h4 {
  margin: 8px 0 12px;
  font-family: var(--display);
  font-size: 2.1rem;
  line-height: .95;
  text-transform: uppercase;
}
.detail-copy p { margin: 0; font-size: 12px; line-height: 1.6; }
.detail-panel ul { list-style: none; margin: 0; padding: 14px 20px; }
.detail-panel li {
  position: relative;
  padding: 11px 0 11px 22px;
  border-bottom: 1px solid var(--ink);
  font-size: 12px;
}
.detail-panel li:last-child { border-bottom: 0; }
.detail-panel li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 10px;
  color: var(--red);
  font-family: var(--mono);
  font-weight: 800;
}
code {
  padding: 1px 4px;
  background: var(--paper-deep);
  font-family: var(--mono);
  font-size: .9em;
}

/* ---------- FANOUT ---------- */
.fanout-board {
  position: relative;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--text-on-ink);
  box-shadow: 12px 12px 0 var(--yellow);
  overflow: hidden;
}
.fanout-board::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.16) .8px, transparent .8px);
  background-size: 10px 10px;
  opacity: .55;
}
.fanout-top {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  border-bottom: 2px solid var(--white);
}
.fanout-top .status { color: var(--white); }
.fanout-svg { position: relative; z-index: 2; width: 100%; min-width: 760px; height: auto; display: block; }

.fan-route {
  fill: none;
  stroke: rgba(255,255,255,.72);
  stroke-width: 1.5;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}
.fanout-board.animate .fan-route {
  animation: routeDraw var(--dur-draw) var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 70ms);
}
@keyframes routeDraw { to { stroke-dashoffset: 0; } }

.scout-box {
  opacity: .25;
  transform-box: fill-box;
  transform-origin: center;
  transform: translateY(10px);
}
.fanout-board.animate .scout-box {
  animation: scoutResolve 420ms var(--ease) forwards;
  animation-delay: calc(840ms + var(--i, 0) * 80ms);
}
@keyframes scoutResolve { to { opacity: 1; transform: none; } }
.fan-packet { opacity: 0; }
.fanout-board.animate .fan-packet { animation: packetShow 1ms linear 720ms forwards; }
@keyframes packetShow { to { opacity: 1; } }

.constraint-row {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 2px solid var(--white);
}
.constraint-row span {
  flex: 1 1 180px;
  padding: 12px 14px;
  border-right: 1px solid var(--white);
  font: 700 9px/1.2 var(--mono);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.constraint-row span:last-child { border-right: 0; color: var(--yellow); }

/* ---------- COMPARISON ---------- */
.compare {
  border: 2px solid var(--ink);
  background: rgba(250,247,238,.74);
  box-shadow: 10px 10px 0 var(--blue);
  overflow-x: auto;
}
.compare-grid { min-width: 760px; }
.compare-head,
.compare-row {
  display: grid;
  grid-template-columns: minmax(170px, .8fr) minmax(240px, 1fr) minmax(240px, 1fr);
}
.compare-head {
  background: var(--ink);
  color: var(--text-on-ink);
}
.compare-head > div,
.compare-row > div { padding: 15px 18px; }
.compare-head > div:not(:last-child),
.compare-row > div:not(:last-child) { border-right: 1px solid var(--ink); }
.compare-head > div:not(:last-child) { border-right-color: var(--white); }
.compare-row { border-top: 1px solid var(--ink); }
.compare-row:first-of-type { border-top: 0; }
.dimension { font: 10px/1.2 var(--mono); color: var(--muted); }
.value { font-size: 13px; }
.value.orch strong { color: var(--blue); }
.value.scout strong { color: var(--red); }

/* ---------- PRINCIPLES ---------- */
.principles {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.principle {
  position: relative;
  min-height: 280px;
  padding: 18px 17px;
  border: 2px solid var(--ink);
  background: var(--paper);
  box-shadow: 7px 7px 0 var(--ink);
}
.principle::before {
  content: "";
  position: absolute;
  top: -13px;
  left: 50%;
  width: 72px;
  height: 24px;
  transform: translateX(-50%) rotate(-2deg);
  background: var(--blue);
  opacity: .9;
}
.principle--red::before { background: var(--red); }
.principle--yellow::before { background: var(--yellow); }
.principle-index { display: block; margin: 12px 0 44px; color: var(--blue); font-size: 11px; font-weight: 700; }
.principle h3 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 2rem;
  line-height: .9;
  text-transform: uppercase;
}
.principle p { margin: 0; font-size: 11px; line-height: 1.6; }

.wb-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0 0;
  font: 10px/1.3 var(--mono);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* =========================================================================
   L6 MOTION PRIMITIVES (data-attribute driven, no IDs)
   ========================================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity var(--dur-reveal) var(--ease), transform var(--dur-reveal) var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@keyframes wbRowIn { to { opacity: 1; transform: none; } }
@keyframes wbNoteIn { to { opacity: 1; transform: translateY(0) rotate(var(--tilt, 0deg)); } }

/* Default: any [data-stagger] element animates in with wbRowIn once its nearest
   [data-reveal] ancestor is marked .is-visible; JS sets --i per element in DOM order. */
[data-stagger] { opacity: 0; transform: translateX(-9px); }
[data-reveal].is-visible [data-stagger] {
  animation: wbRowIn var(--dur-row) var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * var(--stagger));
}

/* Overrides (win on specificity, order-independent): compare rows keep the slide-in,
   principle notes get the tilt-aware drop-in. */
.compare-row[data-stagger] { transform: translateX(-9px); }
[data-reveal].is-visible .compare-row[data-stagger] {
  animation: wbRowIn var(--dur-row) var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * var(--stagger));
}

.principle[data-stagger] { transform: translateY(15px) rotate(var(--tilt, 0deg)); }
[data-reveal].is-visible .principle[data-stagger] {
  animation: wbNoteIn var(--dur-step) var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * var(--stagger));
}

/* [data-sequence] pipeline board: state carried entirely by classes/attrs set in JS
   (.is-running on the board; .is-active/.is-complete/[aria-expanded] on steps;
   .visible on panels; progress width + runner left set inline). No extra CSS needed
   beyond the block rules above (.pipeline-*, .phase-*, .detail-*). */

/* [data-draw] fanout board: per-item stagger comes from --i set by JS */
.fan-route { animation-delay: calc(var(--i, 0) * 70ms); }
.scout-box { animation-delay: calc(840ms + var(--i, 0) * 80ms); }

[data-lift] {
  transition: transform var(--dur-tap) var(--ease-fast);
}
@media (hover:hover) and (pointer:fine) {
  [data-lift]:hover,
  .system-card:hover,
  .principle:hover {
    transform: translateY(-5px) rotate(calc(var(--tilt, 0deg) - .5deg));
  }
  .system-card:hover { transform: translateY(-5px) rotate(-.25deg); }
}

/* =========================================================================
   L7 RESPONSIVE
   ========================================================================= */
@media (max-width: 1040px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-plate { min-height: 420px; }
  .hero-diagram { min-height: 420px; }
  .section-heading { grid-template-columns: .22fr 1fr; }
  .section-heading p { grid-column: 2; }
  .principles { grid-template-columns: repeat(2, 1fr); }
  .principle:last-child { grid-column: span 2; min-height: 210px; }
}
@media (max-width: 760px) {
  .wb-page { width: calc(100% - 28px); padding-top: 26px; }
  .hero { gap: 34px; padding-top: 26px; }
  .hero h1 { font-size: clamp(4.8rem, 22vw, 7.2rem); }
  .hero-plate { min-height: 360px; box-shadow: 7px 7px 0 var(--yellow); }
  .hero-diagram { min-height: 360px; }
  .section { padding: 86px 0 70px; }
  .section-heading { grid-template-columns: 1fr; gap: 8px; margin-bottom: 36px; }
  .section-heading p { grid-column: auto; margin-top: 14px; }
  .section-heading h2 { font-size: clamp(3.7rem, 17vw, 6rem); }
  .architecture-grid { grid-template-columns: 1fr; }
  .system-card { min-height: 500px; }
  .decision-strip,
  .strip { grid-template-columns: 1fr; }
  .decision-strip strong,
  .strip strong { border-right: 0; border-bottom: 2px solid var(--ink); }
  .pipeline-board { overflow-x: auto; box-shadow: 7px 7px 0 var(--blue); }
  .pipeline-detail-stage { min-width: 760px; }
  .fanout-board { overflow-x: auto; box-shadow: 7px 7px 0 var(--yellow); }
  .compare { box-shadow: 7px 7px 0 var(--blue); }
}
@media (max-width: 520px) {
  .principles { grid-template-columns: 1fr; }
  .principle:last-child { grid-column: auto; }
  .wb-footer { flex-direction: column; }
}

/* =========================================================================
   L8 REDUCED MOTION
   The reduced-motion end state IS the still image. Asset exports run with
   reduced motion emulated and get the finished state for free.
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal],
  [data-stagger],
  .scout-box,
  .fan-route {
    opacity: 1 !important;
    transform: none !important;
    stroke-dashoffset: 0 !important;
  }
  .packet,
  .fan-packet,
  .pipeline-runner {
    display: none !important;
  }
}
