/* ==========================================================================
   USE CASES (structured, 13 Oct; tabs from 5 Nov, see below)
   --------------------------------------------------------------------------
   One row per use case, after neon.com/object-storage (the user's pick,
   13 Oct): the use case's name in the left column, the paragraph and the
   "Comes back" / "You decide" lines in the middle, the drawing on a raised
   panel on the right. A hairline from the middle column separates rows.
   Below 1100px it stacks: name, paragraph, panel, result lines.
   Drawings: outline, hatch and dashed for what is still to come, the
   section's Sage (--accent-text) for what Unlock produces, the ember diamond
   where a person decides; small rounded corners, round joins.
   Earlier rounds in web/explorations/: use-cases-cards/ (bordered cards),
   use-cases-grid/ (ruled 2 × 2), use-cases-drawings-v1/ (first drawings).
   Four workflow tabs from 5 Nov (after modal.com's product section) until
   10 Nov: web/versions/before-stacked-use-cases/.
   ========================================================================== */

/* Tabs (5 Nov, the handoff's "four tabs"; after modal.com's product
   section): a vertical tab list at the left — a regular Phosphor icon and
   the workflow's name, the selected one on a tinted 6px box with its icon in
   Sage — then the selected workflow: its copy and Output / Sign-off in the
   middle, the drawing on its raised panel at the right. The four panels
   share one grid cell, so the block keeps the tallest one's height and the
   page doesn't jump when the tab changes; hidden ones are visibility-hidden.
   Below 1100px the tabs become a row that scrolls sideways above the panel.
   The rows before: web/versions/before-workflow-tabs/. Stacked rows again
   for a day on 10 Nov (web/versions/before-tabs-again/), then the tabs
   back the same day (user), with the Trigger / Playbook / Output panels.
   A link to a panel (#use-case-…, the Solutions menu) selects its tab
   (tabs.js). */
.workflows {
  display: grid; grid-template-columns: 272px minmax(0, 1fr); column-gap: var(--space-7);
  align-items: start;
}
.workflows__tabs { display: grid; gap: var(--space-1); }
.workflows__tab {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: 0; border-radius: var(--r-ctl, 6px); background: none;
  font: 400 var(--size-body)/1.3 var(--font-body); text-align: left; color: var(--ink-muted);
  cursor: pointer;
  transition: background-color var(--motion-base) var(--motion-ease), color var(--motion-base) var(--motion-ease);
}
.workflows__tab .icon { --icon-size: 20px; flex: none; color: var(--ink-muted); transition: color var(--motion-base) var(--motion-ease); }
.workflows__tab:hover { color: var(--heading); }
.workflows__tab[aria-selected="true"] { background: color-mix(in srgb, var(--heading) 8%, var(--ground)); color: var(--heading); }
.workflows__tab[aria-selected="true"] .icon { color: var(--accent-text); }
.workflows__tab:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }

.use-cases { display: grid; }
.use-case {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.7fr);
  grid-template-rows: auto 1fr;
  grid-template-areas: "text art" "io art";
  align-content: start; column-gap: var(--space-7);
}
.use-case[hidden] { display: grid; visibility: hidden; }
.use-case { scroll-margin-top: calc(var(--nav-h, 56px) + var(--space-6)); }   /* a link to a panel lands with the tabs in view */
.use-case:focus-visible:not(:target) { outline: 2px solid var(--accent-text); outline-offset: var(--space-2); border-radius: var(--r-box, 6px); }   /* not on the panel a link just opened: the browser focuses a link's target (10 Nov) */
.use-case:target:focus { outline: none; }   /* nor the browser's own ring there */
.use-case h3 { display: none; }   /* the tab carries the name (phones: shown, see below) */
.use-case > p { grid-area: text; margin: 0; font-size: var(--size-body); line-height: 1.6; color: var(--ink); }
.use-case__text { grid-area: text; display: grid; gap: var(--space-3); }
.use-case__text p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink); }   /* Small (4 Nov, user; was 16px body) */
.use-case__text .use-case__lead { font-size: var(--size-h3); font-weight: 500; line-height: 1.2; letter-spacing: var(--display-tracking); font-family: var(--font-display); color: var(--heading); }   /* 5 Nov: with the name in the tab, the promise is the panel's heading (24px) */
.use-case .use-case__art {
  grid-area: art; grid-row: 1 / -1; align-self: start; margin: 0;
  box-sizing: border-box; padding: var(--space-7) var(--space-6);
  border-radius: var(--r-box, 6px);
  background: color-mix(in srgb, var(--heading) 4%, var(--ground));
}
@media (max-width: 1100px) {
  .workflows { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-6); }
  .workflows__tabs {
    display: flex; gap: var(--space-1); overflow-x: auto; scrollbar-width: none;
    margin-inline: calc(-1 * var(--space-1)); padding: var(--space-1);
  }
  .workflows__tabs::-webkit-scrollbar { display: none; }
  .workflows__tab { flex: none; white-space: nowrap; }
  .use-case {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas: "text" "art" "io";
  }
  .use-case .use-case__art {
    grid-row: auto; margin-top: var(--space-6);
    /* the panel runs full width, the drawing in it at most 600px (11 Nov,
       QA: at 1024 it filled 920px, its labels at twice the desktop size) */
    padding: var(--space-6) max(var(--space-4), calc((100% - 600px) / 2));
  }
  .use-case { scroll-margin-top: calc(var(--nav-h, 56px) + var(--space-10)); }   /* the tab row sits above the panel here */
}

/* Phones (10 Nov, user): no tabs — the four workflows stack, each under its
   name (the tab's icon and name as a Sage DM Mono label), then the outcome,
   the drawing, Trigger / Playbook / Output and the decision, with a hairline
   between workflows. Works without tabs.js: the hidden panels are only
   visibility-hidden, so they show here; tabs.js drops their roles. */
@media (max-width: 767px) {
  .workflows { row-gap: 0; }
  .workflows__tabs { display: none; }
  .use-case {
    grid-area: auto;
    grid-template-areas: "name" "text" "art" "io";
    scroll-margin-top: 0;   /* the page's scroll padding already clears the header */
  }
  .use-case[hidden] { visibility: visible; }
  .use-case + .use-case { margin-top: var(--space-7); padding-top: var(--space-7); border-top: var(--border-w) solid var(--line); }
  .use-case .use-case__name {
    grid-area: name; display: flex; align-items: center; gap: var(--space-2);
    margin: 0 0 var(--space-3);
    font-family: var(--font-label); font-size: 12px; font-weight: 500; line-height: 1.4; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--accent-text);
  }
  .use-case__name .icon { --icon-size: 16px; flex: none; }
}

/* The drawings (13 Oct, round 2 after Neon and Oxide): small product
   records, not just shapes. Cards carry real-looking IDs, names and status
   in mono; the item that matters gets a light fill (Support) or the Sage
   tint (chips, diff cells); the ember diamond is where a person decides.
   Each loops (below); without motion, or before the band is in view, it
   shows the end state. Secondary text is skeleton bars (below). Round 1 is in web/explorations/use-cases-drawings-v1/. */
.use-case__art {
  display: block; width: 100%; height: auto;
  margin: var(--space-6) 0; align-self: center;
  overflow: visible;
  color: color-mix(in srgb, var(--heading) 45%, var(--ground));
}
.use-case__art .use-case__line   { fill: none; stroke: currentColor; stroke-width: 1.25; }
.use-case__art .use-case__solid  { fill: color-mix(in srgb, var(--heading) 9%, var(--ground)); stroke: currentColor; stroke-width: 1.25; }   /* solid surfaces a step above the drawing's 4% backdrop (4 Nov, panels round; were the band colour, so they looked sunken) */
.use-case__art .use-case__dashed { fill: none; stroke: currentColor; stroke-width: 1.25; stroke-dasharray: 3 3; }
.use-case__art :is(.use-case__line, .use-case__solid) { stroke-linejoin: round; stroke-linecap: round; }
.use-case__art .use-case__line--lit { stroke: var(--accent-text); }
.use-case__art .use-case__hatch  { stroke: var(--accent-text); stroke-width: 1; }
.use-case__art .use-case__tint   { fill: color-mix(in srgb, var(--accent-text) 16%, var(--ground)); stroke: color-mix(in srgb, var(--accent-text) 55%, transparent); stroke-width: 1; }
.use-case__art .use-case__focus  { fill: var(--heading); }
/* The gates (26 Nov): who approves depends on the customer's policy (Rohit,
   26 Nov: "a person or an agent"), and Ember means a person, so the gate is
   a neutral outlined diamond — the step is there, not who takes it. Ember
   until then. Its label still lights Sage as the run reaches it. */
.use-case__art .use-case__gate   { fill: color-mix(in srgb, var(--heading) 9%, var(--ground)); stroke: color-mix(in srgb, var(--heading) 70%, transparent); stroke-width: 1.25; }
.use-case__art .use-case__found .use-case__gate { fill: none; stroke: var(--ground); }   /* Release: on the lit bar */
.use-case__art .use-case__icon   { fill: var(--ink-muted); }
.use-case__art .use-case__icon--bright { fill: var(--heading); }
.use-case__art .use-case__scan   { fill: var(--accent-text); opacity: 0; }
.use-case__art :is(.use-case__pulse, .use-case__bar) { transform-box: fill-box; transform-origin: center; }
.use-case__art .use-case__bar    { transform-origin: bottom; }
.use-case__art .use-case__segment { transform-box: fill-box; transform-origin: left; }
.use-case__art .use-case__trace  { stroke-dasharray: 1; }

.use-case__art text {
  font-family: var(--font-label); font-size: 9px; letter-spacing: 0.08em;
  fill: var(--ink-muted);
}
.use-case__art .use-case__mono   { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0; fill: var(--ink); }
.use-case__art .use-case__mono--bright { fill: var(--heading); }
.use-case__art .use-case__name   { font-family: var(--font-body); font-size: 12px; font-weight: 500; letter-spacing: 0; fill: var(--heading); }
.use-case__art .use-case__count:not(.use-case__count--5) { opacity: 0; }   /* end state: 5/5 */
.use-case__art .use-case__count  { font-family: var(--font-display); font-size: 22px; font-weight: 500; letter-spacing: -0.02em; fill: var(--heading); }
/* A step down inside the Specs spec panel and the Verification callers
   panel (26 Nov, later, user: "try reducing font size a bit"): their labels
   8 (9 elsewhere), the callers count 18 (22). */
.use-case__art text.use-case__small { font-size: 8px; }
.use-case__art--verification .use-case__count { font-size: 18px; }
.use-case__art .use-case__label--lit, .use-case__art .use-case__gate-label { fill: var(--accent-text); }
.use-case__art .use-case__on-focus { fill: var(--ground); }
.use-case__art .use-case__spike { fill: var(--accent-text); transform-box: fill-box; transform-origin: bottom; }   /* Support: the error spike in the logs */
.use-case__art .use-case__line--flag { stroke: var(--ill-flame); }        /* Verification: the caller that breaks */
.use-case__art .use-case__flagged-box { stroke: color-mix(in srgb, var(--ill-flame) 70%, transparent); }
.use-case__art .use-case__flag { fill: var(--ill-flame); }
.use-case__art .use-case__flag-label { fill: var(--heading); }
.use-case__art .use-case__request .use-case__dashed { fill: color-mix(in srgb, var(--heading) 6%, var(--ground)); }   /* Specs: what the PM brings */

/* Skeleton bars (14 Oct, after rekordsoftware.com): only the words that tell
   the story stay as text; names, IDs and values are rounded bars, like a
   screen still loading. Three strengths: plain, strong (titles), lit (Sage,
   things Unlock produced). They breathe slowly while the drawing plays. */
.use-case__art .use-case__skeleton         { fill: color-mix(in srgb, var(--heading) 14%, var(--ground)); }
.use-case__art .use-case__skeleton--strong { fill: color-mix(in srgb, var(--heading) 30%, var(--ground)); }
.use-case__art .use-case__skeleton--lit    { fill: color-mix(in srgb, var(--accent-text) 50%, var(--ground)); }
@media (prefers-reduced-motion: no-preference) {
  .use-case__art .use-case__skeleton:not(.use-case__write) { animation: uc-skeleton 2.4s cubic-bezier(0.2, 0, 0.2, 1) infinite alternate; }
}
@keyframes uc-skeleton { from { opacity: 1; } to { opacity: 0.55; } }
@media (max-width: 640px) {               /* the drawing shrinks to ~70%: text up a step so it still reads */
  .use-case__art text { font-size: 10.5px; }
  .use-case__art .use-case__mono { font-size: 11.5px; }
  .use-case__art .use-case__name { font-size: 13px; }
  .use-case__art text.use-case__small { font-size: 9.5px; }
}

/* Support (7s): a marker scans the releases, the one that caused it fills, the line runs to the proposed fix, the approval diamond pulses: ship it? */
@media (prefers-reduced-motion: no-preference) {
  .use-case__art--support * { animation: 7s cubic-bezier(0.2, 0, 0.2, 1) infinite; }
  .use-case__art--support .use-case__scan { animation-name: uc-support-scan; }
  .use-case__art--support .use-case__candidate--first rect { animation-name: uc-support-check-1; }
  .use-case__art--support .use-case__candidate--last rect { animation-name: uc-support-check-2; }
  .use-case__art--support .use-case__found { animation-name: uc-support-found; }
  .use-case__art--support .use-case__trace--find { animation-name: uc-support-find; }
  .use-case__art--support .use-case__trace--ticket { animation-name: uc-support-ticket; }
  .use-case__art--support .use-case__spike { animation-name: uc-support-spike; }
  .use-case__art--support .use-case__trace--fix { animation-name: uc-support-to-fix; }
  .use-case__art--support .use-case__fixed { animation-name: uc-support-fixed; }
  .use-case__art--support .use-case__fix-body { animation-name: uc-support-fix-body; }
  .use-case__art--support .use-case__pulse { animation-name: uc-support-pulse; }
  .use-case__art--support .use-case__gate-label { animation-name: uc-support-ship; }
}
@keyframes uc-support-scan { 0%, 6% { opacity: 0; translate: 0 0; } 9% { opacity: 1; translate: 0 0; } 17% { translate: 0 -70px; } 27% { translate: 0 70px; } 35% { opacity: 1; translate: 0 0; } 40%, 100% { opacity: 0; translate: 0 0; } }
@keyframes uc-support-check-1 { 0%, 13%, 22%, 100% { stroke: currentColor; } 17% { stroke: var(--accent-text); } }
@keyframes uc-support-check-2 { 0%, 23%, 31%, 100% { stroke: currentColor; } 27% { stroke: var(--accent-text); } }
@keyframes uc-support-found { 0%, 35% { opacity: 0; } 40%, 90% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes uc-support-ticket { 0%, 2% { stroke-dashoffset: 1; opacity: 1; } 8%, 90% { stroke-dashoffset: 0; opacity: 1; } 96%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes uc-support-spike { 0%, 4% { scale: 1 0.15; } 12%, 90% { scale: 1 1; } 96%, 100% { scale: 1 0.15; } }
@keyframes uc-support-find { 0%, 40% { stroke-dashoffset: 1; opacity: 1; } 48%, 90% { stroke-dashoffset: 0; opacity: 1; } 96%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes uc-support-to-fix { 0%, 48% { stroke-dashoffset: 1; opacity: 1; } 54%, 90% { stroke-dashoffset: 0; opacity: 1; } 96%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes uc-support-fixed { 0%, 54% { opacity: 0; } 60%, 90% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes uc-support-fix-body { 0%, 54% { opacity: 0; translate: 0 4px; } 60%, 90% { opacity: 1; translate: 0 0; } 96%, 100% { opacity: 0; } }
@keyframes uc-support-pulse { 0%, 62%, 70%, 100% { scale: 1; } 66% { scale: 1.45; } }
@keyframes uc-support-ship { 0%, 64% { fill: var(--ink-muted); } 68%, 90% { fill: var(--accent-text); } 96%, 100% { fill: var(--ink-muted); } }

/* Specs (8s): Unlock reads the ticket, the repo and the design docs in turn, the spec writes and ticks its acceptance criteria, the affected services and the open questions appear, then the diamond: you decide scope and priority. */
@media (prefers-reduced-motion: no-preference) {
  .use-case__art--specs * { animation: 8s cubic-bezier(0.2, 0, 0.2, 1) infinite; }
  .use-case__art--specs .use-case__source--1 > rect { animation-name: uc-specs-source-1; }
  .use-case__art--specs .use-case__source--2 > rect { animation-name: uc-specs-source-2; }
  .use-case__art--specs .use-case__source--3 > rect { animation-name: uc-specs-source-3; }
  .use-case__art--specs .use-case__trace--read-1 { animation-name: uc-specs-read-1; }
  .use-case__art--specs .use-case__trace--read-2 { animation-name: uc-specs-read-2; }
  .use-case__art--specs .use-case__trace--read-3 { animation-name: uc-specs-read-3; }
  .use-case__art--specs .use-case__write--1 { animation-name: uc-specs-write-1; }
  .use-case__art--specs .use-case__tick--1 { animation-name: uc-specs-tick-1; }
  .use-case__art--specs .use-case__write--2 { animation-name: uc-specs-write-2; }
  .use-case__art--specs .use-case__tick--2 { animation-name: uc-specs-tick-2; }
  .use-case__art--specs .use-case__write--3 { animation-name: uc-specs-write-3; }
  .use-case__art--specs .use-case__tick--3 { animation-name: uc-specs-tick-3; }
  .use-case__art--specs .use-case__chip--1 { animation-name: uc-specs-chip-1; }
  .use-case__art--specs .use-case__chip--2 { animation-name: uc-specs-chip-2; }
  .use-case__art--specs .use-case__chip--3 { animation-name: uc-specs-chip-3; }
  .use-case__art--specs .use-case__trace--gate { animation-name: uc-specs-gate; }
  .use-case__art--specs .use-case__pulse { animation-name: uc-specs-pulse; }
  .use-case__art--specs .use-case__gate-label { animation-name: uc-specs-scope; }
}
@keyframes uc-specs-source-1 { 0%, 4%, 16%, 100% { stroke: currentColor; } 9% { stroke: var(--accent-text); } }
@keyframes uc-specs-source-2 { 0%, 12%, 24%, 100% { stroke: currentColor; } 17% { stroke: var(--accent-text); } }
@keyframes uc-specs-source-3 { 0%, 20%, 32%, 100% { stroke: currentColor; } 25% { stroke: var(--accent-text); } }
@keyframes uc-specs-read-1 { 0%, 6% { stroke-dashoffset: 1; opacity: 1; } 13%, 90% { stroke-dashoffset: 0; opacity: 1; } 96%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes uc-specs-read-2 { 0%, 14% { stroke-dashoffset: 1; opacity: 1; } 21%, 90% { stroke-dashoffset: 0; opacity: 1; } 96%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes uc-specs-read-3 { 0%, 22% { stroke-dashoffset: 1; opacity: 1; } 29%, 90% { stroke-dashoffset: 0; opacity: 1; } 96%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes uc-specs-write-1 { 0%, 32% { opacity: 0; translate: -4px 0; } 36%, 90% { opacity: 1; translate: 0 0; } 96%, 100% { opacity: 0; } }
@keyframes uc-specs-tick-1 { 0%, 36% { opacity: 0; } 38%, 90% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes uc-specs-write-2 { 0%, 40% { opacity: 0; translate: -4px 0; } 44%, 90% { opacity: 1; translate: 0 0; } 96%, 100% { opacity: 0; } }
@keyframes uc-specs-tick-2 { 0%, 44% { opacity: 0; } 46%, 90% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes uc-specs-write-3 { 0%, 48% { opacity: 0; translate: -4px 0; } 52%, 90% { opacity: 1; translate: 0 0; } 96%, 100% { opacity: 0; } }
@keyframes uc-specs-tick-3 { 0%, 52% { opacity: 0; } 54%, 90% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes uc-specs-chip-1 { 0%, 57% { opacity: 0; translate: 0 4px; } 61%, 90% { opacity: 1; translate: 0 0; } 96%, 100% { opacity: 0; } }
@keyframes uc-specs-chip-2 { 0%, 60% { opacity: 0; translate: 0 4px; } 64%, 90% { opacity: 1; translate: 0 0; } 96%, 100% { opacity: 0; } }
@keyframes uc-specs-chip-3 { 0%, 64% { opacity: 0; translate: 0 4px; } 68%, 90% { opacity: 1; translate: 0 0; } 96%, 100% { opacity: 0; } }
@keyframes uc-specs-gate { 0%, 70% { stroke-dashoffset: 1; opacity: 1; } 74%, 90% { stroke-dashoffset: 0; opacity: 1; } 96%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes uc-specs-pulse { 0%, 74%, 82%, 100% { scale: 1; } 78% { scale: 1.45; } }
@keyframes uc-specs-scope { 0%, 75% { fill: var(--ink-muted); } 79%, 90% { fill: var(--accent-text); } 96%, 100% { fill: var(--ink-muted); } }

/* Verification (8s): the PR lights, every caller of what changed is traced and ticked in turn, the count lights, then the diamond: approve. */
@media (prefers-reduced-motion: no-preference) {
  .use-case__art--verification * { animation: 8s cubic-bezier(0.2, 0, 0.2, 1) infinite; }
  .use-case__art--verification .use-case__pr { animation-name: uc-verify-pr; }
  .use-case__art--verification .use-case__trace--call-1 { animation-name: uc-verify-call-1; }
  .use-case__art--verification .use-case__tick--1 { animation-name: uc-verify-tick-1; }
  .use-case__art--verification .use-case__trace--call-2 { animation-name: uc-verify-call-2; }
  .use-case__art--verification .use-case__tick--2 { animation-name: uc-verify-tick-2; }
  .use-case__art--verification .use-case__trace--call-3 { animation-name: uc-verify-call-3; }
  .use-case__art--verification .use-case__tick--3 { animation-name: uc-verify-tick-3; }
  .use-case__art--verification .use-case__trace--call-4 { animation-name: uc-verify-call-4; }
  .use-case__art--verification .use-case__tick--4 { animation-name: uc-verify-tick-4; }
  .use-case__art--verification .use-case__trace--call-5 { animation-name: uc-verify-call-5; }
  .use-case__art--verification .use-case__tick--5 { animation-name: uc-verify-tick-5; }
  .use-case__art--verification .use-case__summary { animation-name: uc-verify-summary; }
  .use-case__art--verification .use-case__flagged { animation-name: uc-verify-flagged; }
  .use-case__art--verification .use-case__pulse { animation-name: uc-verify-pulse; }
  .use-case__art--verification .use-case__gate-label { animation-name: uc-verify-approve; }
}
@keyframes uc-verify-pr { 0%, 2%, 12%, 100% { stroke: currentColor; } 6% { stroke: var(--accent-text); } }
@keyframes uc-verify-call-1 { 0%, 14% { stroke-dashoffset: 1; opacity: 1; } 20%, 90% { stroke-dashoffset: 0; opacity: 1; } 96%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes uc-verify-tick-1 { 0%, 20% { opacity: 0; } 22%, 90% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes uc-verify-call-2 { 0%, 20% { stroke-dashoffset: 1; opacity: 1; } 26%, 90% { stroke-dashoffset: 0; opacity: 1; } 96%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes uc-verify-tick-2 { 0%, 26% { opacity: 0; } 28%, 90% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes uc-verify-call-3 { 0%, 26% { stroke-dashoffset: 1; opacity: 1; } 32%, 90% { stroke-dashoffset: 0; opacity: 1; } 96%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes uc-verify-tick-3 { 0%, 32% { opacity: 0; } 34%, 90% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes uc-verify-call-4 { 0%, 32% { stroke-dashoffset: 1; opacity: 1; } 38%, 90% { stroke-dashoffset: 0; opacity: 1; } 96%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes uc-verify-tick-4 { 0%, 38% { opacity: 0; } 40%, 90% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes uc-verify-call-5 { 0%, 38% { stroke-dashoffset: 1; opacity: 1; } 44%, 90% { stroke-dashoffset: 0; opacity: 1; } 96%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes uc-verify-tick-5 { 0%, 44% { opacity: 0; } 46%, 90% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes uc-verify-flagged { 0%, 38% { opacity: 0; } 40%, 90% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes uc-verify-summary { 0%, 50% { opacity: 0; } 56%, 90% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes uc-verify-pulse { 0%, 58%, 66%, 100% { scale: 1; } 62% { scale: 1.45; } }
@keyframes uc-verify-approve { 0%, 60% { fill: var(--ink-muted); } 64%, 90% { fill: var(--accent-text); } 96%, 100% { fill: var(--ink-muted); } }

/* Verification count: 0/5 to 5/5, one step as each caller's line arrives and ticks. */
@media (prefers-reduced-motion: no-preference) {
  .use-case__art--verification .use-case__count--0 { animation-name: uc-verify-count-0; }
  .use-case__art--verification .use-case__count--1 { animation-name: uc-verify-count-1; }
  .use-case__art--verification .use-case__count--2 { animation-name: uc-verify-count-2; }
  .use-case__art--verification .use-case__count--3 { animation-name: uc-verify-count-3; }
  .use-case__art--verification .use-case__count--4 { animation-name: uc-verify-count-4; }
  .use-case__art--verification .use-case__count--5 { animation-name: uc-verify-count-5; }
}
@keyframes uc-verify-count-0 { 0%, 19.9% { opacity: 1; } 20%, 95.9% { opacity: 0; } 96%, 100% { opacity: 1; } }
@keyframes uc-verify-count-1 { 0%, 19.9% { opacity: 0; } 20%, 25.9% { opacity: 1; } 26%, 100% { opacity: 0; } }
@keyframes uc-verify-count-2 { 0%, 25.9% { opacity: 0; } 26%, 31.9% { opacity: 1; } 32%, 100% { opacity: 0; } }
@keyframes uc-verify-count-3 { 0%, 31.9% { opacity: 0; } 32%, 37.9% { opacity: 1; } 38%, 100% { opacity: 0; } }
@keyframes uc-verify-count-4 { 0%, 37.9% { opacity: 0; } 38%, 43.9% { opacity: 1; } 44%, 100% { opacity: 0; } }
@keyframes uc-verify-count-5 { 0%, 43.9% { opacity: 0; } 44%, 95.9% { opacity: 1; } 96%, 100% { opacity: 0; } }

/* Release (6s, redrawn 14 Oct after the audit; 26 Nov, Rohit: it ends at
   the release gate — "we prepare the evidence for the release decision. We
   don't run the rollout" — so the rollout bar, the deploy line and the alert
   went, and the loop shortened from 8s to 6s, the same moments in seconds):
   the steps scattered in people's heads (loose dashed notes) go into one
   playbook on the server; its four steps tick in turn (checklist, checks,
   risks with 1 open, evidence; 26 Nov, later, user: the drawing had got
   shorter, two rows before) and the release gate fills (the decision is
   yours), then holds. */
@media (prefers-reduced-motion: no-preference) {
  .use-case__art--release * { animation: 6s cubic-bezier(0.2, 0, 0.2, 1) infinite; }
  .use-case__art--release .use-case__note--1 > rect { animation-name: uc-release-note-1; }
  .use-case__art--release .use-case__note--2 > rect { animation-name: uc-release-note-2; }
  .use-case__art--release .use-case__note--3 > rect { animation-name: uc-release-note-3; }
  .use-case__art--release .use-case__trace--in { animation-name: uc-release-in; }
  .use-case__art--release .use-case__container { animation-name: uc-release-container; }
  .use-case__art--release .use-case__tick--1 { animation-name: uc-release-tick-1; }
  .use-case__art--release .use-case__tick--2 { animation-name: uc-release-tick-2; }
  .use-case__art--release .use-case__tick--3 { animation-name: uc-release-tick-3; }
  .use-case__art--release .use-case__tick--4 { animation-name: uc-release-tick-4; }
  .use-case__art--release .use-case__found { animation-name: uc-release-gate; }
  .use-case__art--release .use-case__pulse { animation-name: uc-release-pulse; }
}
@keyframes uc-release-note-1 { 0%, 2.7%, 12%, 100% { stroke: currentColor; } 6.7% { stroke: var(--accent-text); } }
@keyframes uc-release-note-2 { 0%, 6.7%, 16%, 100% { stroke: currentColor; } 10.7% { stroke: var(--accent-text); } }
@keyframes uc-release-note-3 { 0%, 10.7%, 20%, 100% { stroke: currentColor; } 14.7% { stroke: var(--accent-text); } }
@keyframes uc-release-in { 0%, 16% { stroke-dashoffset: 1; opacity: 1; } 21.3%, 90% { stroke-dashoffset: 0; opacity: 1; } 96%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes uc-release-container { 0%, 20% { opacity: 0; } 25.3%, 90% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes uc-release-tick-1 { 0%, 26.7% { opacity: 0; } 28.7%, 90% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes uc-release-tick-2 { 0%, 31.3% { opacity: 0; } 33.3%, 90% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes uc-release-tick-3 { 0%, 36% { opacity: 0; } 38%, 90% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes uc-release-tick-4 { 0%, 40.7% { opacity: 0; } 42.7%, 90% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes uc-release-gate { 0%, 45.3% { opacity: 0; } 50.7%, 90% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes uc-release-pulse { 0%, 50.7%, 61.3%, 100% { scale: 1; } 56% { scale: 1.45; } }

.use-cases.is-armed:not(.is-in) .use-case__art * { animation-play-state: paused; }

/* Trigger, Playbook, Output and the human decision (10 Nov, Rohit's
   developer action plan; before: a paragraph, then "Output" and "Sign-off"
   rows, 13 Oct to 10 Nov). Under the outcome line in the middle column:
   three rows on hairlines, each led by its name in the heading colour with
   a Sage duotone icon in its own column, the rest at 14px; the playbook's
   steps a numbered list (DM Mono numerals in Sage). Then the decision as
   the gate, in the How map's language (context-map.css): a box with an
   Ember edge and tint and an outlined Ember diamond, the line in the heading
   colour — Ember stays on the edge, tint and diamond, never the text. */
.use-case__io { grid-area: io; align-self: start; margin-top: var(--space-5); }
.use-case__flow { margin: 0; border-top: var(--border-w) solid var(--line); }
.use-case__flow div {
  display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: var(--space-4);
  padding: var(--space-3) 0;
  font-size: 14px; line-height: 1.5;
}
.use-case__flow div + div { border-top: var(--border-w) solid var(--line); }
.use-case__flow dt, .use-case__flow dd { margin: 0; }
.use-case__flow dt { display: flex; align-items: flex-start; gap: 6px; font-weight: 500; color: var(--heading); }
.use-case__flow dt .icon { --icon-size: 16px; flex: none; margin-top: 2px; color: var(--ink-muted); }   /* neutral (13 Nov, user: less green — Sage for eyebrows, drawings, the hero and highlights only) */
.use-case__flow dd { color: var(--ink); }
.use-case__steps { display: grid; gap: var(--space-1); margin: 0; padding: 0; list-style: none; counter-reset: step; }
.use-case__steps li { display: grid; grid-template-columns: 20px minmax(0, 1fr); counter-increment: step; }
.use-case__steps li::before {
  content: counter(step) ".";   /* 1. 2. 3. (13 Nov, user) */
  font: 500 12px/21px var(--font-label); color: var(--ink-muted);
}
/* The decision box: off the homepage since 26 Nov (Rohit: who approves
   depends on the customer's policy); kept for the sketches and review page. */
.use-case__decision {
  display: flex; align-items: flex-start; gap: var(--space-3);   /* the icon sits on the first line */
  margin: var(--space-3) 0 0; padding: var(--space-3) var(--space-4);
  border: var(--border-w) solid color-mix(in srgb, var(--accent) 55%, var(--ground));
  border-radius: var(--r-box, 6px);
  background: color-mix(in srgb, var(--accent) 7%, var(--ground));
  font-size: 14px; line-height: 1.5; color: var(--heading);
}
/* A person decides (10 Nov, user): Phosphor user-check, duotone, in Ember —
   the approval icon the accents keep for people. It replaced a CSS-drawn
   outlined diamond. */
.use-case__decision-icon { --icon-size: 16px; flex: none; margin-top: 3px; color: var(--accent); }   /* 16px beside 14px text (13 Nov, user: icon sizes; 20 before) */

@media (max-width: 1100px) {
  .use-case__io { margin-top: var(--space-5); }
  .use-case__flow div { grid-template-columns: 104px minmax(0, 1fr); }
}

/* The Supabase pass (28 Nov): one green path a drawing. The inputs' wires go
   grey where every one was lit — Support keeps the alert's (the story told
   most), Specs and Verification grey all their inputs and calls, Release its
   way in — and Release's lit gate is a Sage-edged row, not a cream bar. */
.use-case__art--support .use-case__trace--ticket,
.use-case__art--specs :is(.use-case__trace--read-1, .use-case__trace--read-2, .use-case__trace--read-3),
.use-case__art--verification :is(.use-case__trace--call-1, .use-case__trace--call-2, .use-case__trace--call-3, .use-case__trace--call-5),
.use-case__art--release .use-case__trace--in { stroke: currentColor; }
.use-case__art--release .use-case__found .use-case__focus { fill: color-mix(in srgb, var(--accent-text) 10%, var(--ground)); stroke: var(--accent-text); stroke-width: 1.25; }
.use-case__art--release .use-case__found .use-case__gate { fill: color-mix(in srgb, var(--heading) 9%, var(--ground)); stroke: color-mix(in srgb, var(--heading) 70%, transparent); }
.use-case__art--release .use-case__on-focus { fill: var(--heading); }
