/* Operations Intelligence Workbench: project site.
   Self-contained: system fonts, no external requests. Motion uses only
   transform and opacity and is removed under prefers-reduced-motion. */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f7fa;
  --ink: #12151c;
  --muted: #4b5362;
  --line: #e4e7ec;
  --line-strong: #cdd3dd;
  --accent: #1f4fd8;
  --accent-hover: #1a41b5;
  --accent-soft: #edf2fe;
  --night: #0b1020;
  --night-2: #131a30;
  --night-ink: #eef1f8;
  --night-muted: #b4bdd2;
  --ai: #8db0ff;
  --person: #ffc970;
  --system: #78dca7;
  --radius: 16px;
  --shadow-lg: 0 30px 60px -28px rgb(16 20 28 / 0.35), 0 12px 24px -16px rgb(16 20 28 / 0.18);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }
code, pre { font-family: var(--mono); }
h1, h2, h3, p, ul, ol, figure, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.pipeline :focus-visible, .foot :focus-visible { outline-color: #a9c0ff; }

.wrap { width: min(1160px, 100% - 2rem); margin-inline: auto; }
@media (min-width: 720px) { .wrap { width: min(1160px, 100% - 3rem); } }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 50;
  background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 10px;
}
.skip:focus { top: 1rem; }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgb(255 255 255 / 0.9);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.top__row { display: flex; align-items: center; gap: 1rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); text-decoration: none; font-weight: 650; letter-spacing: -.01em; margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand__short { display: none; }
.brand__name { display: none; }
@media (min-width: 560px) { .brand__name { display: inline; } }
@media (max-width: 559px) { .brand__short { display: inline; } }
.top__nav { display: none; gap: 1.5rem; }
.top__nav a { color: var(--muted); text-decoration: none; font-size: .9375rem; padding: .35rem 0; }
.top__nav a:hover { color: var(--ink); }
@media (min-width: 1200px) { .top__nav { display: flex; } }

.music__btn {
  font: 500 .875rem/1 var(--font);
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: .6rem .95rem;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: .5rem;
}
.music__btn::before {
  content: ""; width: .5rem; height: .5rem; border-radius: 50%;
  background: var(--line-strong);
}
.music__btn[aria-pressed="true"] { background: var(--accent-soft); border-color: #b9c9f6; color: #1a41b5; }
.music__btn[aria-pressed="true"]::before { background: var(--accent); }
.music__btn:hover { border-color: var(--accent); }
.music__btn[hidden] { display: none; }
.music noscript audio { height: 36px; max-width: 220px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .7rem 1.25rem;
  border-radius: 12px; border: 1px solid transparent;
  font: 600 .9688rem/1.2 var(--font);
  text-decoration: none; cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 1px 2px rgb(31 79 216 / .35), 0 8px 18px -8px rgb(31 79 216 / .55); }
.btn--primary:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: var(--bg); color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { color: var(--ink); border-color: var(--ink); transform: translateY(-1px); }

/* ---------- Typography ---------- */
.eyebrow { font: 600 .8125rem/1.2 var(--font); letter-spacing: .09em; text-transform: uppercase; color: var(--accent); }
.eyebrow--dark { color: var(--ai); }
h1 { font-weight: 700; letter-spacing: -.035em; line-height: 1.04; }
h2 { font-size: clamp(1.75rem, 1.1rem + 2.4vw, 2.75rem); font-weight: 680; letter-spacing: -.025em; line-height: 1.12; text-wrap: balance; }
h3 { font-size: 1.1875rem; font-weight: 650; letter-spacing: -.01em; line-height: 1.3; }
.lead { font-size: 1.125rem; color: var(--muted); max-width: 44rem; text-wrap: pretty; }
.small { font-size: .9375rem; color: var(--muted); }
section { padding-block: clamp(4.5rem, 9vw, 8rem); }
.section-head { display: grid; gap: 1rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head--dark { margin-bottom: 1rem; }
.section-head--dark h2 { color: var(--night-ink); }
.section-head--dark .lead { color: var(--night-muted); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-top: clamp(3.5rem, 8vw, 6.5rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.hero__bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60rem 28rem at 12% -8%, var(--accent-soft) 0%, transparent 62%),
    radial-gradient(48rem 26rem at 92% 0%, #fdf3e2 0%, transparent 58%);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(to right, var(--line) 1px, transparent 1px), linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(60rem 30rem at 50% 0%, #000 20%, transparent 72%);
  mask-image: radial-gradient(60rem 30rem at 50% 0%, #000 20%, transparent 72%);
}
.hero__inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.5rem; }
.hero h1 { font-size: clamp(2rem, 1rem + 4.8vw, 4.5rem); max-width: 14ch; text-wrap: balance; }
.hero h1 span { display: block; text-wrap: balance; }
@media (min-width: 720px) { .hero h1 { max-width: none; } }
.hero h1 .hl { color: var(--accent); }
.hero__lede { font-size: clamp(1.0625rem, .95rem + .5vw, 1.3125rem); color: var(--muted); max-width: 40rem; text-wrap: pretty; }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: .5rem; }
@media (max-width: 559px) { .eyebrow { font-size: .75rem; letter-spacing: .05em; } .hero__cta { flex-direction: column; align-self: stretch; } .hero__cta .btn { width: 100%; } }
.hero__note { font-size: .9375rem; color: var(--muted); max-width: 36rem; }
.frame--hero { width: min(1040px, 100%); margin-top: clamp(1.5rem, 4vw, 3rem); }

/* ---------- Browser frame ---------- */
.frame {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg); overflow: hidden; text-align: left;
}
.frame__bar {
  display: flex; align-items: center; gap: .4rem;
  height: 38px; padding-inline: .9rem;
  background: #f1f3f7; border-bottom: 1px solid var(--line);
}
.frame__bar i { width: 10px; height: 10px; border-radius: 50%; background: #d3d8e2; }
.frame__bar span { margin-left: .6rem; font-size: .75rem; color: var(--muted); letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame img { width: 100%; }
.frame--video { box-shadow: var(--shadow-lg); background: var(--night); border-color: var(--night-2); }
.frame--video video { width: 100%; aspect-ratio: 16 / 9; background: var(--night); object-fit: cover; }

/* ---------- Key facts strip ---------- */
.strip { padding-block: 0; border-block: 1px solid var(--line); background: var(--bg-soft); }
.strip__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
.strip__list li { padding: 1.4rem 1rem; display: grid; gap: .15rem; border-left: 1px solid var(--line); }
.strip__list li:nth-child(odd) { border-left: 0; padding-left: 0; }
.strip__list li:nth-child(n+3) { border-top: 1px solid var(--line); }
.strip__list strong { font-size: .9688rem; font-weight: 650; }
.strip__list span { font-size: .875rem; color: var(--muted); }
@media (min-width: 900px) {
  .strip__list { grid-template-columns: repeat(4, 1fr); }
  .strip__list li { padding: 1.6rem 1.5rem; border-top: 0 !important; border-left: 1px solid var(--line) !important; }
  .strip__list li:first-child { border-left: 0 !important; padding-left: 0; }
}

/* ---------- Pipeline (the centrepiece) ---------- */
.pipeline {
  background:
    radial-gradient(50rem 22rem at 50% -5%, rgb(60 100 220 / .28) 0%, transparent 70%),
    linear-gradient(180deg, var(--night) 0%, #0a0f1d 100%);
  color: var(--night-ink);
  overflow: hidden;
}
.pipe { --cycle: 18s; position: relative; }
.pipe__foot { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgb(255 255 255 / .1); display: grid; gap: 1rem; }
.pipe__legend { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip { font-size: .8125rem; font-weight: 600; padding: .35rem .8rem; border-radius: 999px; border: 1px solid currentColor; }
.chip--ai { color: var(--ai); }
.chip--person { color: var(--person); }
.chip--system { color: var(--system); }

.pipe__stage { position: relative; }
.pipe__list { position: relative; display: grid; grid-auto-rows: 1fr; gap: 0; }
.stage { position: relative; }
.stage__btn {
  all: unset; box-sizing: border-box; cursor: pointer; width: 100%; height: 100%;
  display: grid; grid-template-columns: 52px 1fr; column-gap: 1rem; align-items: start;
  padding: .6rem 0;
}
.stage__btn:focus-visible { outline: 3px solid #a9c0ff; outline-offset: 2px; border-radius: 14px; }
.stage__node {
  position: relative; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--night-2); border: 1.5px solid var(--stage-c);
  font-weight: 650; font-size: 1.0625rem; color: var(--night-ink);
}
.stage__node b { font-weight: 650; position: relative; }
.stage__ring {
  position: absolute; inset: -7px; border-radius: 50%;
  border: 2px solid var(--stage-c);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--stage-c) 28%, transparent), transparent);
  opacity: 0; transform: scale(.85);
}
.stage__name { display: inline; font-weight: 650; font-size: 1.0625rem; color: var(--night-ink); line-height: 1.25; }
.stage__kind { display: inline-block; margin-left: .55rem; font-size: .75rem; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--stage-c); vertical-align: 1px; }
.stage__desc { display: block; margin-top: .3rem; font-size: .9375rem; line-height: 1.5; color: var(--night-muted); }
.stage--ai { --stage-c: var(--ai); }
.stage--person { --stage-c: var(--person); }
.stage--system { --stage-c: var(--system); }

/* vertical (small screens): the line and packet run down the left edge */
.pipe__line { position: absolute; left: 25px; top: calc(100% / 18); bottom: calc(100% / 18); width: 2px; background: linear-gradient(180deg, rgb(120 140 190 / .55), rgb(120 140 190 / .25)); border-radius: 2px; }
.pipe__packet { position: absolute; left: 25px; top: calc(100% / 18); height: calc(100% * 8 / 9); width: 2px; z-index: 2; pointer-events: none; animation: packet-y var(--cycle) infinite; }
.pipe__packet i {
  position: absolute; left: -7px; top: -7px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 5px rgb(255 255 255 / .16), 0 0 22px 4px rgb(160 190 255 / .75);
}
.stage__ring { animation: ring var(--cycle) ease-in-out infinite; animation-delay: calc(var(--i) * 2s); }
.stage__node { z-index: 1; }

.pipe__hint { font-size: .875rem; color: var(--night-muted); }
@media (min-width: 900px) { .pipe__foot { grid-template-columns: auto 1fr; align-items: center; column-gap: 2rem; } .pipe__hint { text-align: right; } }

@media (min-width: 900px) {
  .pipe__list { grid-template-columns: repeat(9, 1fr); grid-auto-rows: auto; column-gap: .25rem; }
  .stage__btn { grid-template-columns: 1fr; justify-items: center; text-align: center; row-gap: .75rem; padding: 0 .15rem 0; align-content: start; }
  .stage__node { width: 64px; height: 64px; font-size: 1.1875rem; }
  .stage__text { display: grid; justify-items: center; gap: .3rem; position: relative; }
  .stage__name { display: block; font-size: .9375rem; }
  .stage__kind { display: block; margin: 0; font-size: .6875rem; }
  .stage__desc {
    position: absolute; z-index: 5; bottom: calc(100% + 95px); left: 50%; width: 240px; margin: 0;
    padding: .75rem .9rem; text-align: left; font-size: .875rem; line-height: 1.45; color: var(--night-ink);
    background: #1b2440; border: 1px solid #36426b; border-radius: 12px;
    box-shadow: 0 18px 36px -16px rgb(0 0 0 / .6);
    opacity: 0; transform: translate(-50%, 6px); pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
  }
  .stage:first-child .stage__desc { left: 0; transform: translate(0, 6px); }
  .stage:last-child .stage__desc { left: auto; right: 0; transform: translate(0, 6px); }
  .stage__btn:hover .stage__desc, .stage__btn:focus-visible .stage__desc, .stage.is-open .stage__desc { opacity: 1; transform: translate(-50%, 0); }
  .stage:first-child .stage__btn:hover .stage__desc, .stage:first-child .stage__btn:focus-visible .stage__desc, .stage:first-child.is-open .stage__desc { transform: translate(0, 0); }
  .stage:last-child .stage__btn:hover .stage__desc, .stage:last-child .stage__btn:focus-visible .stage__desc, .stage:last-child.is-open .stage__desc { transform: translate(0, 0); }
  /* WCAG 1.4.13: Escape dismisses a tooltip shown by hover or focus. */
  .stage.is-dismissed .stage__desc { opacity: 0 !important; }
  .pipe__stage { padding-top: 100px; }

  /* horizontal: the line and packet run along the node centres */
  .pipe__line { left: calc(100% / 18); right: calc(100% / 18); top: calc(100px + 32px - 1px); bottom: auto; width: auto; height: 2px; background: linear-gradient(90deg, rgb(120 140 190 / .55), rgb(120 140 190 / .25)); }
  .pipe__packet { left: calc(100% / 18); top: calc(100px + 32px - 1px); width: calc(100% * 8 / 9); height: 2px; animation-name: packet-x; }
  .pipe__packet i { top: -7px; left: -7px; }
}

@keyframes ring {
  0%   { opacity: 0; transform: scale(.85); }
  3%   { opacity: 1; transform: scale(1); }
  10%  { opacity: 1; transform: scale(1); }
  14%  { opacity: 0; transform: scale(1.06); }
  100% { opacity: 0; transform: scale(1.06); }
}
/* Nine dwell stops; each leg takes about 0.6 s of the 18 s cycle. */
@keyframes packet-x {
  0%      { transform: translateX(0); opacity: 0; }
  2%      { opacity: 1; }
  11.11%  { transform: translateX(0); animation-timing-function: ease-in-out; }
  14.61%  { transform: translateX(12.5%); }
  22.22%  { transform: translateX(12.5%); animation-timing-function: ease-in-out; }
  25.72%  { transform: translateX(25%); }
  33.33%  { transform: translateX(25%); animation-timing-function: ease-in-out; }
  36.83%  { transform: translateX(37.5%); }
  44.44%  { transform: translateX(37.5%); animation-timing-function: ease-in-out; }
  47.94%  { transform: translateX(50%); }
  55.55%  { transform: translateX(50%); animation-timing-function: ease-in-out; }
  59.05%  { transform: translateX(62.5%); }
  66.66%  { transform: translateX(62.5%); animation-timing-function: ease-in-out; }
  70.16%  { transform: translateX(75%); }
  77.77%  { transform: translateX(75%); animation-timing-function: ease-in-out; }
  81.27%  { transform: translateX(87.5%); }
  88.88%  { transform: translateX(87.5%); animation-timing-function: ease-in-out; }
  92.38%  { transform: translateX(100%); opacity: 1; }
  98%     { transform: translateX(100%); opacity: 1; }
  99.9%   { transform: translateX(100%); opacity: 0; }
  100%    { transform: translateX(0); opacity: 0; }
}
@keyframes packet-y {
  0%      { transform: translateY(0); opacity: 0; }
  2%      { opacity: 1; }
  11.11%  { transform: translateY(0); animation-timing-function: ease-in-out; }
  14.61%  { transform: translateY(12.5%); }
  22.22%  { transform: translateY(12.5%); animation-timing-function: ease-in-out; }
  25.72%  { transform: translateY(25%); }
  33.33%  { transform: translateY(25%); animation-timing-function: ease-in-out; }
  36.83%  { transform: translateY(37.5%); }
  44.44%  { transform: translateY(37.5%); animation-timing-function: ease-in-out; }
  47.94%  { transform: translateY(50%); }
  55.55%  { transform: translateY(50%); animation-timing-function: ease-in-out; }
  59.05%  { transform: translateY(62.5%); }
  66.66%  { transform: translateY(62.5%); animation-timing-function: ease-in-out; }
  70.16%  { transform: translateY(75%); }
  77.77%  { transform: translateY(75%); animation-timing-function: ease-in-out; }
  81.27%  { transform: translateY(87.5%); }
  88.88%  { transform: translateY(87.5%); animation-timing-function: ease-in-out; }
  92.38%  { transform: translateY(100%); opacity: 1; }
  98%     { transform: translateY(100%); opacity: 1; }
  99.9%   { transform: translateY(100%); opacity: 0; }
  100%    { transform: translateY(0); opacity: 0; }
}

/* ---------- Walkthroughs ---------- */
.walk { background: var(--bg); }
.video figcaption { margin-top: .9rem; font-size: .9375rem; color: var(--muted); }
.video figcaption strong { color: var(--ink); font-weight: 650; }
.video--trailer { margin-bottom: clamp(2rem, 4vw, 3rem); }
.video--trailer .frame { max-width: 960px; margin-inline: auto; }
.video--trailer figcaption { max-width: 960px; margin-inline: auto; }
.video-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .video-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }

/* ---------- Scenario cards ---------- */
.scenarios { background: var(--bg-soft); border-block: 1px solid var(--line); }
.cards { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.card {
  display: flex; flex-direction: column; gap: .9rem;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; box-shadow: 0 1px 2px rgb(16 20 28 / .05);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -14px rgb(16 20 28 / .22); }
.card p { color: var(--muted); }
.card__gate { margin-top: auto; padding-top: 1rem; border-top: 1px dashed var(--line-strong); font-size: .9375rem; }
.card__gate span { display: block; font-size: .75rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: #8a4a06; margin-bottom: .15rem; }
.card__gate { color: var(--ink) !important; font-weight: 550; }
.card__links { display: flex; gap: 1.25rem; font-size: .9375rem; font-weight: 550; }

/* ---------- Honest ---------- */
.rows { display: grid; gap: clamp(3.5rem, 7vw, 6rem); }
.row { display: grid; gap: 1.75rem; align-items: center; }
.row__text { display: grid; gap: 1.1rem; }
.ticks { display: grid; gap: .9rem; }
.ticks li { position: relative; padding-left: 1.6rem; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: .6rem; height: .6rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.ticks strong { color: var(--ink); font-weight: 650; }
@media (min-width: 900px) {
  .row { grid-template-columns: 5fr 7fr; gap: 3.5rem; }
  .row--flip { grid-template-columns: 7fr 5fr; }
  .row--flip .row__text { order: 2; }
  .row--flip .row__shot { order: 1; }
}
.straight { margin-top: clamp(4rem, 8vw, 6.5rem); padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line); }
.straight h3 { margin-bottom: 1.1rem; }
.straight ul { display: grid; gap: .9rem; }
@media (min-width: 900px) { .straight ul { grid-template-columns: 1fr 1fr; gap: 1.25rem 2.5rem; } }
.straight li { color: var(--muted); }
.straight strong { color: var(--ink); font-weight: 650; }

/* ---------- Casebook band ---------- */
.casebook { padding-top: 0; }
.casebook__card {
  display: grid; gap: 2rem; align-items: center;
  padding: clamp(1.75rem, 4vw, 3.5rem); border-radius: 24px;
  background: linear-gradient(135deg, var(--accent-soft) 0%, #f6f1e7 100%);
  border: 1px solid #d9e2fa;
}
.casebook__card p:not(.eyebrow):not(.casebook__cta) { color: var(--muted); max-width: 38rem; margin-top: 1rem; }
.casebook__card h2 { margin-top: .75rem; }
.casebook__cta { margin-top: 1.75rem; }
.casebook__list { display: grid; gap: .6rem; }
.casebook__list li { background: rgb(255 255 255 / .75); border: 1px solid #d9e2fa; border-radius: 12px; padding: .75rem 1rem; font-weight: 550; font-size: .9688rem; }
@media (min-width: 900px) { .casebook__card { grid-template-columns: 7fr 4fr; } }

/* ---------- Agents ---------- */
.agents { background: var(--bg-soft); border-block: 1px solid var(--line); }
.agent-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .agent-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .agent-grid .panel:last-child { grid-column: 1 / -1; } }
.panel { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; display: flex; flex-direction: column; gap: .9rem; min-width: 0; }
.panel p { color: var(--muted); }
.panel .small { margin-top: auto; }
.panel:first-child .small { margin-top: 0; }
pre {
  background: var(--night); color: #dfe6f7; border-radius: 12px; padding: 1rem 1.1rem;
  font-size: .8125rem; line-height: 1.6; overflow-x: auto; tab-size: 2; white-space: pre-wrap; overflow-wrap: anywhere;
}
pre:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
p code { font-size: .875em; background: #eceff5; border-radius: 6px; padding: .1em .4em; color: var(--ink); }

/* ---------- Run it ---------- */
.run__inner { display: grid; gap: 2rem; align-items: center; }
.run h2 { margin-block: .75rem 1rem; }
.run p:not(.eyebrow) { color: var(--muted); max-width: 34rem; }
.run__cta { margin-top: 1.5rem; }
@media (min-width: 900px) { .run__inner { grid-template-columns: 5fr 7fr; gap: 3.5rem; } }

/* ---------- Footer ---------- */
.foot { background: var(--night); color: var(--night-muted); padding-block: 3.5rem; }
.foot a { color: #cfdcff; }
.foot a:hover { color: #fff; }
.foot__grid { display: grid; gap: 2rem; }
.foot__brand { color: var(--night-ink); font-weight: 650; margin-bottom: .5rem; }
.foot .small { color: var(--night-muted); margin-top: .5rem; }
.foot__links { display: grid; gap: .5rem; font-size: .9375rem; }
@media (min-width: 900px) { .foot__grid { grid-template-columns: 4fr 4fr 2fr; gap: 3rem; } }

/* ---------- Entrance (calm; off for reduced motion) ---------- */
.rise { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; animation-delay: var(--d, 0ms); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Reduced motion: a complete, still diagram ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .pipe__packet { display: none; }
  .stage__ring { opacity: .55; transform: none; }
  .stage__desc { transition: none; }
  .btn:hover, .card:hover { transform: none; }
}
