/* Vendored from https://ds01.jetty.bot/ (index.html inline styles), component sections only. Do not edit; update by re-vendoring. */

:root {
  /* Tailwind Stone ramp (vendored) — warm neutral body-text */
  --stone-50:  #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-400: #a8a29e;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;

  /* Lavender — Jetty's secondary accent */
  --lavender:        #7c5fd9;
  --lavender-soft:   #ede9fe;
  --lavender-strong: #5b3eb0;

  /* Sage — tertiary accent (used for Product ICP) */
  --sage:        #7c9885;
  --sage-soft:   #d8e3d6;
  --sage-strong: #4a6048;

  /* Body-text fg ramp swapped to Stone (warmer on bone) */
  --fg:           #0a1230;       /* unchanged — headings stay Harbor ink-900 */
  --fg-muted:     var(--stone-700);
  --fg-subtle:    var(--stone-500);
  --fg-faint:     var(--stone-400);

  /* Surfaces — bone family unchanged from ds01, warm border */
  --border:        #e8e1ce;       /* harbor-bone-200 */
  --border-soft:   #f3efe4;       /* harbor-bone-100 */
  --border-strong: var(--stone-300);

  /* New strong amber for hover */
  --accent-strong: #d88f0e;       /* harbor-amber-500 */

  /* On-ink accents — lavender and sage lifted for dark bands (the loop's
     Investigate and Improve stages; amber on ink is amber-300) */
  --lavender-bright: #a78bfa;
  --sage-bright:     #a9c4ae;

  /* The site's ink band — sticky header, homepage hero and CTA. A shade
     between ink-900 and ink-950, kept flat so header and hero read as one. */
  --band-ink: #040c28;
}

[data-theme="dark"] {
  --fg:           #f3efe4;
  --fg-muted:     var(--stone-300);
  --fg-subtle:    var(--stone-400);
  --fg-faint:     var(--stone-500);
  --border:        #1a2750;
  --accent-strong: #d88f0e;
}

/* ── Section primitives ─────────────────────────────────── */
.ds-section { padding: 96px 0 32px 0; border-top: 1px solid var(--border); }
.ds-section:first-of-type { border-top: 0; padding-top: 64px; }

.ds-section__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin: 0 0 14px 0;
}
.ds-section__title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 16px 0;
  color: var(--fg);
}
.ds-section__title em {
  font-style: italic;
  color: var(--lavender);
  font-weight: 400;
}
.ds-section__lede {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--fg-muted);
  line-height: 1.4;
  max-width: 640px;
  margin: 0 0 48px 0;
}

.ds-section__h3 {
  font-family: var(--font-sans);
  font-size: var(--text-md);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 56px 0 20px 0;
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: var(--fg);
}
.ds-section__h3::before {
  content: counter(h3-counter, decimal-leading-zero);
  counter-increment: h3-counter;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fg-faint);
  font-weight: 400;
}
.ds-section { counter-reset: h3-counter; }

.ds-grid { display: grid; gap: 16px; }
.ds-grid--2 { grid-template-columns: 1fr 1fr; }
.ds-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ds-grid--4 { grid-template-columns: repeat(4, 1fr); }
.ds-grid--6 { grid-template-columns: repeat(6, 1fr); }

.ds-callout {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  background: var(--surface-muted);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.5;
}
.ds-callout strong { color: var(--fg); font-weight: 600; }
.ds-callout__icon {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent-strong);
  text-transform: uppercase;
  padding-top: 1px;
  white-space: nowrap;
}

.ds-row-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--fg-subtle);
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.005em;
  border-radius: var(--radius-sm);    /* 4px — marketing default */
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--dur-fast), border-color var(--dur-fast),
              transform var(--dur-fast), box-shadow var(--dur-fast),
              color var(--dur-fast);
  white-space: nowrap;
  text-decoration: none;
}
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn:active { transform: translateY(1px); }

/* Primary CTA — amber fill, ink-900 text, 4px radius */
.btn--amber {
  background: var(--accent);
  color: var(--accent-fg);
  box-shadow: var(--shadow-sm);
}
.btn--amber:hover { background: var(--accent-strong); }

/* Secondary lavender — used for "Refinement is the engine" CTAs */
.btn--lavender {
  background: var(--lavender);
  color: #ffffff;
}
.btn--lavender:hover { background: var(--lavender-strong); }

/* Navy outline pill — used for the "Get started" header chip */
.btn--outline-pill {
  background: transparent;
  color: var(--fg);
  border: 1px solid color-mix(in srgb, var(--fg) 15%, transparent);
  border-radius: 999px;
  padding: 10px 22px;
}
.btn--outline-pill:hover {
  background: var(--fg);
  color: var(--fg-inverse);
  border-color: var(--fg);
}

/* Ghost / text link — minimal, rule-of-thirds */
.btn--ghost {
  background: transparent;
  color: var(--fg);
  padding: 8px 0;
}
.btn--ghost:hover { color: var(--accent-strong); }
.btn--ghost svg { transition: transform var(--dur-base) var(--ease-out); }
.btn--ghost:hover svg { transform: translate(2px, -2px); }

/* Secondary — solid neutral (navy on light, raised ink on dark) */
.btn--secondary { background: var(--btn-secondary-bg); color: var(--btn-secondary-fg); }
.btn--secondary:hover { background: color-mix(in srgb, var(--btn-secondary-bg) 88%, #ffffff); }

/* Tertiary — outline */
.btn--outline { background: transparent; color: var(--fg); border: 1.5px solid var(--border-strong); }
.btn--outline:hover { background: var(--surface-muted); }

/* Run / execute semantic — green (shares --success) */
.btn--run { background: var(--btn-run); color: var(--btn-run-fg); }
.btn--run:hover { background: color-mix(in srgb, var(--btn-run) 88%, #000000); }

/* Destructive semantic — red (outline default; solid for final confirm) */
.btn--danger { background: transparent; color: var(--btn-destructive); border: 1.5px solid var(--btn-destructive); }
.btn--danger:hover { background: color-mix(in srgb, var(--btn-destructive) 10%, transparent); }
.btn--danger-solid { background: var(--btn-destructive); color: var(--btn-destructive-fg); }

.btn--lg { padding: 16px 32px; font-size: 17px; }
.btn--xl { padding: 18px 64px; font-size: 19px; }
.btn--sm { padding: 8px 14px; font-size: 13px; }

.btn[disabled], .btn:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

/* ── ICP Tags & Badges ──────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.tag--ops      { color: var(--accent-strong); }
.tag--product  { color: var(--sage-strong); }
.tag--eng      { color: var(--lavender-strong); }

/* The amber "label tag" attached to the top of MissionInput */
.label-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6px 14px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  color: var(--accent-fg);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-bottom: 0;
  border-top-left-radius: var(--radius-sm);
  border-top-right-radius: var(--radius-sm);
}
.label-tag--lavender {
  color: #ffffff;
  background: var(--lavender);
  border-color: var(--lavender);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--fg-muted);
}
.badge--amber    { background: var(--accent-soft); color: var(--accent-strong); border-color: transparent; }
.badge--lavender { background: var(--lavender-soft); color: var(--lavender-strong); border-color: transparent; }
.badge--sage     { background: var(--sage-soft); color: var(--sage-strong); border-color: transparent; }
.badge--solid    { background: var(--fg); color: var(--bg); border-color: transparent; }

/* ── Cards ──────────────────────────────────────────────── */
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 24px;
  transition: box-shadow var(--dur-base), border-color var(--dur-base), transform var(--dur-base);
}
.card--hover:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin-bottom: 12px;
}
.card__title {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: -0.018em;
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 8px 0;
  color: var(--fg);
}
.card__body { font-size: 14px; color: var(--fg-muted); line-height: 1.55; }

/* Template card (homepage hairline grid) */
.tcard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  border-radius: 0;
}
.tcard {
  position: relative;
  display: block;
  padding: 32px 28px;
  text-decoration: none;
  color: inherit;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background var(--dur-base);
}
.tcard:nth-child(3n) { border-right: 0; }
.tcard:nth-last-child(-n+3) { border-bottom: 0; }
.tcard__arrow {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 16px;
  height: 16px;
  opacity: 0.5;
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base);
}
.tcard:hover .tcard__arrow { transform: translate(2px, -2px); opacity: 1; }
.tcard__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.2;
  color: var(--fg);
  margin: 18px 0 8px 0;
}
.tcard__desc { font-size: 14px; color: var(--fg-muted); line-height: 1.55; margin: 0; }

.tcard--ops:hover     { background: var(--accent-soft); }
.tcard--product:hover { background: var(--sage-soft); }
.tcard--eng:hover     { background: var(--lavender-soft); }

.tcard--ops     .tcard__arrow { color: var(--accent-strong); }
.tcard--product .tcard__arrow { color: var(--sage-strong); }
.tcard--eng     .tcard__arrow { color: var(--lavender-strong); }

/* ============================================================
   HOMEPAGE PATTERNS — THE LOOP (Aug 2026)
   ============================================================
   Ported from spot: src/components/loop/ (LoopDiagram, QuadrantSection,
   loop.module.css) and (marketing)/HomePage.tsx + HomeCTA.tsx.
   Four stages — Author → Run → Investigate → Improve → Run — drive the
   hero diagram (§19) and the quadrant plot (§21). The shared controller
   (auto-advance, pause on hover / focus / off-screen, reduced motion,
   arrow keys) is the "loop" script at the foot of the page. */

/* ── Stage tints ────────────────────────────────────────────
   Set one on a stage's element; the loop CSS reads only --tint*.
   Amber for the forward path (Author, Run), lavender for Investigate,
   sage for Improve. "bright" is the on-ink variant of each. */
.tint-amber {
  --tint:        var(--harbor-amber-400);
  --tint-fg:     var(--harbor-ink-900);
  --tint-soft:   var(--harbor-amber-100);
  --tint-strong: var(--harbor-amber-600);
  --tint-bright: var(--harbor-amber-300);
}
.tint-lavender {
  --tint:        var(--lavender);
  --tint-fg:     #ffffff;
  --tint-soft:   var(--lavender-soft);
  --tint-strong: var(--lavender-strong);
  --tint-bright: var(--lavender-bright);
}
.tint-sage {
  --tint:        var(--sage);
  --tint-fg:     #ffffff;
  --tint-soft:   var(--sage-soft);
  --tint-strong: var(--sage-strong);
  --tint-bright: var(--sage-bright);
}

/* ── Bands ──────────────────────────────────────────────────
   The homepage's dark top — sticky header, hero and CTA — is one flat
   ink (--band-ink); the quadrants sit on the cosmic gradient from
   jetty.io. Both re-map the semantic text tokens, so copy inside keeps
   using --fg / --fg-muted / --fg-subtle. */
.band--ink {
  background: var(--band-ink);
  --bg:        var(--band-ink);
  --fg:        var(--harbor-bone-50);
  --fg-muted:  var(--harbor-ink-200);
  --fg-subtle: var(--harbor-ink-300);
  color: var(--fg);
}
.band--cosmic {
  background:
    radial-gradient(ellipse at 10% 0%, #2a1048 0%, transparent 50%),
    radial-gradient(ellipse at 90% 0%, #0c2a40 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, #180e30 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, #082838 0%, transparent 50%),
    radial-gradient(ellipse at 20% 60%, #220e38 0%, transparent 40%),
    linear-gradient(160deg, #120628 0%, #081c30 30%, #062430 50%, #0e0828 80%, #180828 100%);
  --fg:        var(--harbor-bone-50);
  --fg-muted:  var(--harbor-ink-200);
  --fg-subtle: var(--harbor-ink-300);
  color: var(--harbor-bone-100);
}
/* A preview whose body is painted by the band inside it. */
.preview__body--flush { display: block; padding: 0; }

/* ── Section head on a band (DS H2 pattern: two lines, lavender L2) ── */
.sec-head {
  max-width: 720px;
  margin: 0 auto 44px;
  text-align: center;
}
.sec-head__h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--fg);
  text-wrap: balance;
}
.sec-head__h2 em { font-style: normal; color: var(--lavender); }
.band--ink .sec-head__h2 em,
.band--cosmic .sec-head__h2 em { color: var(--lavender-bright); }
.sec-head__lede {
  margin: 16px auto 0;
  max-width: 56ch;
  font-size: 18px;
  line-height: 1.5;
  color: var(--fg-muted);
  text-wrap: pretty;
}

/* ── Loop hero: headline left, the diagram right ──────────── */
.loop-hero-pat {
  display: grid;
  gap: 40px;
  align-items: center;
  padding: 56px 40px;
}
@media (min-width: 760px) {
  .loop-hero-pat { grid-template-columns: minmax(0, 7fr) minmax(0, 6fr); gap: 56px; }
}
/* Eyebrow: a step up from the DS's 11px/500 — on ink it needs the
   weight, and it reads in the headline's bone. */
.loop-hero-pat__eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg);
}
.loop-hero-pat__title {
  margin: 16px 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 3.9vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--fg);
  text-wrap: pretty;
}
/* Highlighter mark on the key word: accent amber with ink text (the
   amber button's pairing), padded a touch so the box clears the glyphs. */
.loop-hero-pat__title mark {
  background: var(--accent);
  color: var(--accent-fg);
  padding: 0 0.1em;
}
.loop-hero-pat__lede {
  margin: 20px 0 0;
  max-width: 58ch;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.5;
  color: var(--fg-muted);
  text-wrap: pretty;
}

/* ── The loop diagram ───────────────────────────────────────
   Faithful to the whiteboard sketch: nodes are buttons positioned over
   an 800×440 SVG of wires; Pelly sits in an ink disc in the middle and
   changes pose with the active stage. */
.loop-diagram { width: 100%; }
/* Labelled frame — a fieldset-style legend that breaks the border. The
   label paints the band's --bg behind itself. */
.loop-diagram--framed {
  position: relative;
  padding: 30px 22px 18px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
}
.loop-diagram__frame {
  position: absolute;
  top: -9px;
  left: 18px;
  padding: 0 8px;
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 18px;
  color: var(--fg-subtle);
}
.loop-diagram--dark.loop-diagram--framed { border-color: rgba(255, 255, 255, 0.18); }
.loop-diagram--dark .loop-diagram__frame { color: var(--harbor-ink-200); }

.loop {
  position: relative;
  aspect-ratio: 800 / 440;
  width: 100%;
  /* Node type scales with the diagram, not the viewport — it can sit in
     a half-width hero column or a full-width section. */
  container-type: inline-size;
}
.loop__wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.loop__edge {
  stroke: var(--harbor-ink-900);
  stroke-width: 2;
  stroke-linejoin: round;
  fill: none;
  transition: stroke var(--dur-base);
}
.loop__edge.is-live { stroke: var(--accent-strong); stroke-width: 3; }
.loop__arr { fill: var(--harbor-ink-900); }
.loop__arr--live { fill: var(--accent-strong); }
.loop__wire-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  fill: var(--fg-subtle);
}
.loop__disc { fill: var(--harbor-ink-900); }
.loop__pulse {
  fill: var(--accent);
  opacity: 0;
  filter: drop-shadow(0 0 4px rgba(240, 169, 31, 0.8));
}
.loop__pulse.is-going { opacity: 1; }

.loop__node {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  font-family: var(--font-display);
  font-size: clamp(12px, 3.6cqw, 22px);
  font-weight: 500;
  letter-spacing: -0.01em;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--tint);
  background: var(--tint);
  color: var(--tint-fg);
  text-decoration: none; /* nodes can be anchors */
  cursor: pointer;
  opacity: 0.8;
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base),
              opacity var(--dur-base);
}
/* Improve stays light (the sketch's quiet grey box) — sage-soft fill. */
.loop__node--improve { background: var(--tint-soft); color: var(--tint-strong); }
.loop__node:hover { opacity: 1; }
.loop__node.is-active {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--harbor-ink-900), var(--shadow-md);
}
.loop__node:focus-visible {
  outline: none;
  opacity: 1;
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent-strong);
}

/* Dark tone: on the ink band. */
.loop-diagram--dark .loop__edge { stroke: var(--harbor-ink-200); }
.loop-diagram--dark .loop__edge.is-live { stroke: var(--harbor-amber-300); }
.loop-diagram--dark .loop__arr { fill: var(--harbor-ink-200); }
.loop-diagram--dark .loop__arr--live { fill: var(--harbor-amber-300); }
.loop-diagram--dark .loop__wire-label { fill: var(--harbor-ink-300); }
/* A step up from the band, with a hairline, so the disc still reads. */
.loop-diagram--dark .loop__disc {
  fill: var(--harbor-ink-800);
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 1.5;
}
/* Improve's quiet box: a sage wash with a sage edge instead of sage-soft. */
.loop-diagram--dark .loop__node--improve {
  background: color-mix(in srgb, var(--tint) 26%, transparent);
  border-color: var(--tint-bright);
  color: var(--harbor-bone-50);
}
.loop-diagram--dark .loop__node.is-active {
  box-shadow: 0 0 0 3px var(--harbor-ink-950), 0 0 0 5px var(--harbor-bone-100),
              0 8px 24px rgba(0, 0, 0, 0.35);
}
.loop-diagram--dark .loop__node:focus-visible {
  box-shadow: 0 0 0 3px var(--harbor-ink-950), 0 0 0 5px var(--harbor-amber-300);
}

/* ── Pelicans in a well ─────────────────────────────────────
   A stack of poses in one grid cell; the active one springs in. Pelly's
   white fills need a dark Harbor-ink well behind them (§22). */
.pels {
  position: absolute;
  display: grid;
  grid-template-columns: 100%;
  grid-template-rows: 100%;
  place-items: center;
  overflow: hidden;
}
.pels--disc { border-radius: 50%; }
.pel {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.82) translateY(8%);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slower) var(--ease-spring);
  pointer-events: none;
}
.pel.is-active { opacity: 1; transform: none; transition-delay: 60ms; }
.pels--disc .pel { width: 78%; height: 78%; margin-top: 6%; }
/* The confused pose is a tall periscope (162×706): it's drawn to bleed
   off the bottom of its well rather than being shrunk to fit. The crop
   is done here — cover-fit, top-anchored, in a 162:430 box — so the
   asset stays canonical. */
.pels--disc .pel--investigate {
  width: auto;
  height: 100%;
  aspect-ratio: 162 / 430;
  margin-top: 4%;
  object-fit: cover;
  object-position: top;
}

/* ── CTA band: the closing question on the same ink ───────── */
.cta-band {
  padding: 48px 40px 56px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08); /* the seam under the hero */
}
.cta-band__title {
  margin: 0 auto;
  max-width: 24ch;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--fg);
  text-wrap: balance;
}
.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}
/* Amber text link under the buttons — the button's weight, underlined. */
.cta-band__link {
  display: inline-block;
  margin-top: 28px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent);
  transition: text-decoration-color var(--dur-fast);
}
.cta-band__link:hover { text-decoration-color: currentColor; }
/* .btn--secondary on ink: the raised-ink surface, bone text. */
.band--ink .btn--secondary {
  --btn-secondary-bg: var(--harbor-ink-700);
  --btn-secondary-fg: var(--harbor-bone-50);
}
.band--ink .btn--secondary:hover { background: var(--harbor-ink-600); }

/* ── Quadrants: the four stages as a 2×2 plot ───────────────
   The grid lines are the axes, Pelly sits at the origin, and a stage's
   bullets plot into its quadrant as points when it's active. Every
   tile's points are always laid out (they only fade), so the plot keeps
   one height. */
.quad-band {
  position: relative;
  overflow: hidden;
  padding: 64px 40px 72px;
}
/* A lavender/amber glow layered on the gradient. */
.quad-band::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 25% 25%, rgba(167, 139, 250, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 75% 75%, rgba(240, 169, 31, 0.10) 0%, transparent 40%);
}
.quad-band__inner { position: relative; }

.quad {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px; /* the axes show through */
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.quad__tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 232px;
  padding: 28px;
  /* A translucent ink wash with the DS dot grid (as in the pelican
     wells), so the band shows through every tile. */
  background-color: rgba(5, 10, 31, 0.42);
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.07) 1px, transparent 0);
  background-size: 16px 16px;
  border: 0;
  border-radius: 0;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: background-color var(--dur-base), box-shadow var(--dur-base);
}
.quad__tile:hover { background-color: rgba(5, 10, 31, 0.26); }
.quad__tile.is-active {
  background-color: color-mix(in srgb, var(--tint) 18%, rgba(5, 10, 31, 0.42));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tint-bright) 40%, transparent);
}
.quad__tile:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 3px rgba(245, 193, 74, 0.45);
}
/* Reading order: Author TL, Run TR, Investigate BL, Improve BR. The inner
   edge is inset so copy and points stay clear of the origin disc. */
.quad__tile--tl { grid-area: 1 / 1; padding-right: 104px; }
.quad__tile--tr { grid-area: 1 / 2; padding-left: 104px; }
.quad__tile--bl { grid-area: 2 / 1; padding-right: 104px; }
.quad__tile--br { grid-area: 2 / 2; padding-left: 104px; }

.quad__head { display: grid; gap: 6px; }
.quad__name {
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--tint-bright);
}
.quad__verb {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--harbor-bone-50);
  text-wrap: balance;
  max-width: 22ch;
}
/* The points: one per bullet, plotted in one after another as the loop
   plays; all at once (--at-once) for a stage the viewer picked — they
   came to read it, not to watch it. */
.quad__points { display: flex; flex-wrap: wrap; gap: 8px; }
.quad__point {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  font-size: 13.5px;
  color: var(--harbor-bone-100);
  opacity: 0;
  visibility: hidden;
}
.quad__point::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tint-bright);
  flex: none;
}
@keyframes loop-plot-in {
  from { opacity: 0; transform: translateY(8px) scale(0.94); }
  to   { opacity: 1; transform: none; }
}
.quad__point.is-in {
  visibility: visible;
  animation: loop-plot-in 420ms var(--ease-out) both;
  animation-delay: calc(var(--i) * 90ms + 140ms);
}
.quad__points--at-once .quad__point.is-in { animation-delay: 0ms; }

/* Origin: Pelly where the axes cross. Carries the active stage's tint
   so the glow follows the loop round. The ink ring cuts the axes just
   short of the disc; the hairline picks the disc out of the band. */
.quad__origin {
  left: calc(50% - 60px);
  top: calc(50% - 60px);
  width: 120px;
  height: 120px;
  background: var(--harbor-ink-950);
  box-shadow:
    0 0 0 5px rgba(5, 10, 31, 0.9),
    0 0 0 6px rgba(255, 255, 255, 0.16),
    0 0 64px color-mix(in srgb, var(--tint) 40%, transparent);
  z-index: 1;
  pointer-events: none;
  transition: box-shadow var(--dur-slow);
}

@media (max-width: 720px) {
  .quad-band { padding: 48px 24px 56px; }
  .quad { grid-template-columns: 1fr; }
  .quad__tile--tl, .quad__tile--tr, .quad__tile--bl, .quad__tile--br {
    grid-area: auto;
    padding: 22px;
    min-height: 0;
  }
  .quad__origin { display: none; }
}

/* ── Stage legend (anatomy) ─────────────────────────────── */
.stage-legend {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.stage-legend__swatch {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.stage-legend__dot {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--tint);
  flex: none;
}
.stage-legend__name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  color: var(--fg);
}
.stage-legend__tint {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--fg-subtle);
}

@media (prefers-reduced-motion: reduce) {
  .loop__node, .pel, .quad__tile, .quad__origin { transition: none; }
  .quad__point.is-in { animation: none; opacity: 1; }
}



/* ══════════════════════════════════════════════════════════
   §15 VERDICTS, CHECKLISTS & JUDGES
   ══════════════════════════════════════════════════════════
   Folded in from the Evals system (evals.html). The class names are
   the ones that system ships in components/bundle.css, so markup moves
   between the two without a rename.

   Six new tokens, and five aliases so the components read ds02's ramp
   under their own names. */
:root {
  --ink:            var(--fg);          /* headings, item text */
  --text:           var(--stone-700);   /* body */
  --text-subtle:    #6b655f;            /* ids, meta — a step darker than stone-500 so it clears 4.5:1 on surface-muted */
  --border-control: #8c857f;            /* the unchosen probability bar */
  --lavender-text:  var(--lavender-strong);

  /* Teal, not --success: pass and fail are the one pair a colour-blind
     reader cannot separate by hue, and teal leaves the red–green axis
     toward blue. The hue is the pictogram set's #189a8c, darkened until
     it clears 4.5:1 on bone. */
  --pass:      #0d7065;
  --pass-soft: #dcf0eb;
  --fail:      #b03a2e;   /* = --danger */
  --fail-soft: #f7e1dc;
  --unknown:   var(--text-subtle);
}
[data-theme="dark"] {
  --text:           var(--stone-300);
  --text-subtle:    var(--stone-400);
  --border-control: var(--harbor-ink-400);
  --lavender-text:  #a78bfa;
  --pass:      #3fc2b0;
  --pass-soft: #0c2b2a;
  --fail:      #f07a6a;   /* --danger is 3.3:1 on ink; a verdict has to clear 4.5 */
  --fail-soft: #3a1512;
}

/* ── Verdict ────────────────────────────────────────────── */
.ej-verdict {
  display: inline-flex; align-items: center; gap: var(--space-1);
  font-family: var(--font-mono); font-size: 11px; line-height: 16px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 10px 3px 7px; border-radius: var(--radius-full);
  background: var(--surface-muted); color: var(--unknown);
}
.ej-verdict--pass { background: var(--pass-soft); color: var(--pass); }
.ej-verdict--fail { background: var(--fail-soft); color: var(--fail); }
.ej-verdict--lg { font-size: 15px; line-height: 20px; gap: var(--space-2); padding: 6px 16px 6px 12px; }
.ej-verdict-line { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.ej-verdict-line__summary {
  font-family: var(--font-mono); font-size: 12px; line-height: 18px; color: var(--text-subtle);
  font-variant-numeric: tabular-nums; display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3);
}
.ej-verdict-line__summary b { font-weight: 500; color: var(--text); }
/* ── Result lists (Checklist, Judges) ───────────────────── */
.ej-results { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.ej-results + .ej-results { margin-top: var(--space-4); }
.ej-results__head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  padding: 9px var(--space-4); border-bottom: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 11px; line-height: 16px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-subtle);
}
.ej-results__count { font-variant-numeric: tabular-nums; color: var(--text); }
.ej-row { padding: var(--space-3) var(--space-4); }
.ej-row + .ej-row { border-top: 1px solid var(--border); }
.ej-check { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: var(--space-3); align-items: start; }
.ej-check__text { font-size: 15px; line-height: 23px; color: var(--ink); }
.ej-id { font-family: var(--font-mono); font-size: 12px; line-height: 18px; color: var(--text-subtle); }
.ej-conf { font-family: var(--font-mono); font-size: 13px; line-height: 20px; color: var(--text-subtle); font-variant-numeric: tabular-nums; text-align: right; }
.ej-glyph {
  width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); background: var(--surface-muted); color: var(--unknown);
}
.ej-glyph--pass { background: var(--pass-soft); color: var(--pass); }
.ej-glyph--fail { background: var(--fail-soft); color: var(--fail); }
.ej-reason {
  margin-top: var(--space-2); font-size: 13px; line-height: 19px; color: var(--text);
  display: flex; gap: var(--space-2); align-items: baseline;
}
.ej-reason__by {
  flex: none; font-family: var(--font-mono); font-size: 11px; line-height: 16px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-subtle);
}
/* ── Judges ─────────────────────────────────────────────── */
.ej-judge__top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); }
.ej-judge__q { font-size: 15px; line-height: 23px; color: var(--ink); }
.ej-judge__facts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-top: var(--space-2); }
.ej-type {
  font-family: var(--font-mono); font-size: 11px; line-height: 16px; font-weight: 500;
  padding: 2px 7px; border-radius: var(--radius-sm); background: var(--lavender-soft); color: var(--lavender-text);
}
.ej-scale { margin-top: var(--space-3); }
.ej-scale__head { display: flex; align-items: baseline; gap: var(--space-2); margin-bottom: var(--space-2); font-size: 13px; line-height: 19px; color: var(--text); }
.ej-scale__track { display: flex; gap: 3px; }
.ej-scale__seg { position: relative; flex: 1; height: 8px; border-radius: 2px; background: var(--surface-muted); }
.ej-scale__seg.is-pass { background: var(--pass); }
.ej-scale__seg.is-fail { background: var(--fail); }
.ej-scale__seg.is-threshold::before {
  content: ""; position: absolute; left: -4px; top: -5px; bottom: -5px; width: 2px; background: var(--ink); border-radius: 1px;
}
.ej-scale__legend {
  display: flex; justify-content: space-between; gap: var(--space-3);
  margin-top: var(--space-2); font-size: 13px; line-height: 19px; color: var(--text-subtle);
}
.ej-scale__value { font-family: var(--font-mono); font-size: 15px; line-height: 20px; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.ej-options { margin-top: var(--space-3); display: grid; gap: var(--space-2); }
.ej-option { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(60px, 2fr) auto; gap: var(--space-3); align-items: center; }
.ej-option__name { font-family: var(--font-mono); font-size: 13px; line-height: 20px; color: var(--text); }
.ej-option.is-chosen .ej-option__name { color: var(--ink); font-weight: 500; }
.ej-option__desc { font-family: var(--font-sans); font-size: 13px; color: var(--text-subtle); }
.ej-option__passon { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--lavender-text); }
.ej-option__bar { height: 6px; border-radius: 3px; background: var(--surface-muted); overflow: hidden; }
.ej-option__fill { display: block; height: 100%; background: var(--border-control); border-radius: 3px; }
.ej-option.is-chosen .ej-option__fill { background: var(--pass); }
.ej-option.is-chosen.is-fail .ej-option__fill { background: var(--fail); }
.ej-option__p { font-family: var(--font-mono); font-size: 13px; color: var(--text-subtle); font-variant-numeric: tabular-nums; }
@media (max-width: 560px) {
  .ej-check { grid-template-columns: 20px minmax(0, 1fr); }
  .ej-check .ej-conf { grid-column: 2; text-align: left; }
  .ej-option { grid-template-columns: minmax(0, 1fr) auto; }
  .ej-option__bar { display: none; }
}

