/* Homepage example run ("Theatre"): a scripted inspection of the made-up site Fernly, shown in a browser window.
   Page-specific. Shared pieces (window, QC tag, string, ring, inspect box, cursor, tape, run log, stamp) come from
   ui/bench.css and ui/components.css. Only this file may reference --specimen-* (the made-up customer palette).
   Pattern: every state has a static end state on a state class (.is-in entered live, .is-set entered by instant replay);
   entrance motion exists only for live mode with motion allowed. Transform, translate, rotate, scale and opacity only. */

/* ---- Hero layout ---- */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); grid-template-areas: "copy stage" "legend stage"; grid-template-rows: auto 1fr; align-items: start; gap: var(--space-8) var(--space-12); padding-block: var(--space-10) var(--space-16); }
.hero-copy { grid-area: copy; min-width: 0; }
.stage { grid-area: stage; align-self: start; }
.hero-legend { grid-area: legend; align-self: start; }
.hero h1 { font-size: clamp(2.5rem, 4.4vw, 4.25rem); }

.hero-legend { min-width: 0; padding: var(--space-5); background: var(--color-surface); border: var(--border-width) solid var(--color-border-strong); border-radius: var(--radius-sheet); }
.hero-legend h2 { margin: 0 0 var(--space-3); font: 900 var(--text-section)/1.1 var(--font-display); font-stretch: var(--stretch-display); letter-spacing: -.02em; }
.legend-flow { display: grid; gap: var(--space-1); margin: 0 0 var(--space-4); padding-left: 1.4rem; font-weight: var(--weight-label); }
.legend-stamps { display: grid; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.legend-stamps > li { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); align-items: center; gap: var(--space-3); }
.legend-stamps .ds-stamp { justify-self: start; }
.legend-flow > li, .legend-stamps > li { padding-inline: var(--space-1); }
.legend-flow > li[data-active], .legend-stamps > li[data-active] { background: var(--color-highlight); }

@media (max-width: 1024px) {
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "stage" "legend"; grid-template-rows: none; gap: var(--space-10); }
  .hero h1 { font-size: clamp(2.5rem, 6.2vw, 4.25rem); }
  .stage { max-width: 860px; }
  .hero-legend { max-width: 860px; }
  .legend-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-left: 0; list-style-position: inside; }
  .legend-stamps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .hero { grid-template-areas: none; gap: var(--space-6); }
  .hero-copy { display: contents; grid-area: auto; }
  .hero h1 { order: 1; margin-bottom: 0; font-size: clamp(2.25rem, 11.5vw, 3.5rem); }
  .hero-copy > .free-run { order: 2; }
  .hero-actions { order: 2; gap: var(--space-2) var(--space-5); margin-top: 0; }
  .stage { order: 3; grid-area: auto; }
  .hero-copy > .sticker { order: 4; justify-self: start; margin: 0; }
  .hero-lede { order: 5; }
  .hero-legend { order: 6; grid-area: auto; }
  .legend-flow { grid-template-columns: 1fr; padding-left: 1.4rem; list-style-position: outside; }
  .legend-stamps { grid-template-columns: 1fr; }
}

/* ---- Free first run (hero form) ---- */
.free-run { --eyelet-x: var(--space-4); --eyelet-y: var(--space-6); --eyelet-d: var(--space-4); display: grid; gap: var(--space-4); margin-top: var(--space-6); padding: var(--space-5) var(--space-5) var(--space-5) var(--space-12); }
.free-run[hidden] { display: none; }
.free-run .ds-form-head { margin: 0; }
.free-goal summary { cursor: pointer; min-height: var(--control-height); display: flex; align-items: center; font-weight: var(--weight-label); }
.free-goal .ds-field { padding-bottom: var(--space-2); }
.free-consent { display: flex; align-items: flex-start; gap: var(--space-3); min-height: var(--control-height); margin: 0; font-weight: var(--weight-label); cursor: pointer; }
.free-consent input { flex: none; width: 1.5rem; min-height: 0; height: 1.5rem; margin: 0; padding: 0; accent-color: var(--color-ink); }
.free-run .primary-button { justify-self: start; }
.free-run-error { margin: 0; padding: var(--space-3) var(--space-4); border-left: var(--focus-width) solid var(--color-danger); background: var(--color-danger-surface); color: var(--color-danger); font-weight: var(--weight-label); }
.free-run-error[hidden] { display: none; }
.free-run-error a { color: inherit; }
.free-run-note { margin: 0; color: var(--color-muted); font-size: var(--text-small); }
.free-run[data-state="sending"] .primary-button { opacity: var(--opacity-disabled); cursor: progress; }
.hero-actions[data-free] [data-signup-cta] { display: none; }
@media (max-width: 700px) { .free-run { padding: var(--space-5) var(--space-4); } }

/* ---- Stage frame ---- */
.stage { margin: 0; min-width: 0; }
.stage-window { background: var(--color-surface); }
.ds-window-url { flex: 1 1 0; height: 26px; padding-inline: 10px; display: flex; align-items: center; background: var(--color-canvas); border: 1.5px solid var(--color-border-strong); border-radius: var(--radius-control); font-weight: 500; }
.ds-window-nav > b { border-color: transparent; background: none; font: 700 18px/1 var(--font-body); }
.ds-window-nav > b[data-hover] { border-color: var(--color-ink); background: var(--color-canvas); }
.ds-window-nav > b[data-dim] { opacity: 1; color: var(--color-border-strong); }
.ds-window-note { flex: none; width: 15em; overflow: hidden; text-align: right; white-space: nowrap; }
.ds-window-note .note-short { display: none; }
.ds-window-load { opacity: 0; }
.ds-window-bar { height: 40px; }
.stage-view { position: relative; height: clamp(21rem, 52svh, 34rem); overflow: hidden; container-type: size; contain: layout paint style; background: var(--color-surface); border-radius: 0 0 6px 6px; }
.stage-cursor-layer { position: absolute; left: 0; right: 0; top: 0; bottom: 0; z-index: 6; overflow: hidden; border-radius: inherit; pointer-events: none; }
.stage-layer, .stage-scrim { position: absolute; inset: 0; pointer-events: none; }
.stage-scrim { background: var(--color-canvas); opacity: 0; }
.stage[data-state="done"] .stage-scrim { opacity: .5; }

/* ---- Fernly: a made-up customer site, authored at 1:1 and adapted by container query ---- */
.fl { position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; visibility: hidden; opacity: 0; color: var(--specimen-text); font: 15px/1.5 var(--font-specimen);
  background: radial-gradient(circle at 20% 10%, var(--specimen-glow-a), transparent 50%), radial-gradient(circle at 90% 80%, var(--specimen-glow-b), transparent 45%), linear-gradient(135deg, var(--specimen-sky-a), var(--specimen-sky-b) 60%, var(--specimen-sky-c)); }
.stage-view[data-page="home"] .fl-home, .stage-view[data-page="login"] .fl-404 { visibility: visible; opacity: 1; }
.fl-404 { background: var(--color-surface); color: var(--color-ink); }
.fl-emoji { display: inline-block; width: 1.4em; font-style: normal; text-align: center; }
.fl-nav { display: flex; flex: none; justify-content: space-between; align-items: center; height: 52px; padding-inline: 28px; }
.fl-logo { font-size: 19px; }
.fl-logo b { font-weight: 800; }
.fl-links { display: flex; gap: 20px; font-size: 13px; }
.fl-links > span { padding: 2px 0; opacity: .88; }
.fl-links > span[data-hover] { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.fl-404 .fl-links > span { opacity: 1; }
.fl-hero { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.1fr 1fr; gap: 26px; align-items: center; padding: 6px 28px 18px; }
.fl-pill { display: inline-block; margin-bottom: 10px; padding: 4px 10px; border: 1px solid var(--specimen-glass-edge); border-radius: 999px; background: var(--specimen-pill); font-size: 11px; }
.fl-h1 { margin: 0 0 10px; font-size: clamp(26px, 4.7cqi, 40px); font-weight: 800; line-height: 1.06; letter-spacing: -.02em; }
.fl-p { margin: 0; max-width: 34ch; color: var(--specimen-muted); font-size: 14px; }
.fl-stats { display: flex; gap: 18px; margin-top: 14px; font-size: 12px; }
.fl-stats b { display: block; font-size: 19px; }
.fl-card { padding: 20px; border: 1px solid var(--specimen-glass-edge); border-radius: 20px; background: var(--specimen-glass); }
.fl-card-title { margin-bottom: 8px; font-size: 18px; font-weight: 700; }
.fl-label { width: fit-content; margin: 8px 0 4px; font-size: 12px; opacity: .85; }
.fl-field { position: relative; display: flex; align-items: center; height: 38px; padding-inline: 12px; overflow: hidden; border: 1px solid var(--specimen-glass-edge); border-radius: 12px; background: var(--specimen-field); font-size: 13px; white-space: nowrap; }
.fl-ph { color: var(--specimen-muted); opacity: .7; }
.fl-field.has-value .fl-ph { display: none; }
.fl-value { border-right: 1.5px solid transparent; }
.fl-field[data-focus] { border-color: var(--specimen-text); }
.fl-field[data-focus] .fl-value { border-right-color: var(--specimen-text); }
.fl-field[data-invalid] { border-color: var(--specimen-error-edge); }
.fl-error { min-height: 20px; margin-top: 3px; color: var(--specimen-error); font-size: 12px; font-weight: 600; opacity: 0; }
.fl-error[data-on] { opacity: 1; }
.fl-btn { position: relative; display: grid; place-items: center; height: 42px; margin-top: 8px; border-radius: 12px; background: var(--specimen-cta); color: var(--specimen-cta-text); font-size: 14px; font-weight: 700; }
.fl-spin { position: absolute; left: 14px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border: 2.5px solid var(--specimen-cta-text); border-top-color: transparent; border-radius: 50%; opacity: 0; }
.fl-btn[data-busy] .fl-spin { opacity: 1; }
.fl-toast { position: absolute; left: 28px; bottom: 16px; padding: 10px 14px; border-radius: 14px; background: var(--specimen-toast); font-size: 12px; opacity: 0; }
.stage-view[data-toast] .fl-toast { opacity: 1; }
.fl-404-body { flex: 1; display: grid; place-content: center; justify-items: center; gap: 6px; text-align: center; }
.fl-404-body b { font-size: clamp(44px, 12cqi, 84px); font-weight: 800; line-height: 1; }
.fl-404-body span { font-size: 14px; }
@container (max-width: 560px) {
  .fl-nav { height: 44px; padding-inline: 16px; }
  .fl-links > span:not(:last-child) { display: none; }
  .fl-hero { grid-template-columns: 1fr; align-content: start; gap: 8px; padding: 0 16px 12px; }
  .fl-p, .fl-stats { display: none; }
  .fl-pill { margin-bottom: 6px; }
  .fl-h1 { margin: 0; font-size: 22px; }
  .fl-card { padding: 12px 14px; border-radius: 16px; }
  .fl-card-title { margin-bottom: 0; font-size: 15px; }
  .fl-label { margin: 4px 0 3px; font-size: 11px; }
  .fl-field { height: 34px; }
  .fl-error { min-height: 16px; margin-top: 1px; font-size: 11px; }
  .fl-btn { height: 38px; margin-top: 4px; }
  .fl-toast { display: none; }
}
@container (max-height: 430px) and (min-width: 561px) { .fl-p, .fl-stats { display: none; } }

/* ---- Overlays: tags, strings, rings, inspect box, cursor (end states; entrance motion is gated below) ---- */
.stage .ds-qc-tag { z-index: 3; width: clamp(9.5rem, 27cqi, 14rem); padding: 8px 12px 14px 30px; gap: 2px; font: 12px/1.3 var(--font-body); transform-origin: 14px 50%; visibility: hidden; opacity: 0; transition: opacity var(--motion-normal); }
.stage .ds-qc-tag.is-in, .stage .ds-qc-tag.is-set { visibility: visible; opacity: 1; }
.stage .ds-qc-tag::before { left: 9px; width: 10px; height: 10px; margin-top: -5px; }
.stage .ds-qc-tag-kind { font-size: 11px; }
.stage .ds-qc-tag-claim { font-size: 13px; line-height: 1.25; }
.stage .ds-qc-tag-claim--ai { font-size: 15px; line-height: 1.2; }
.stage .ds-qc-tag-value { display: grid; font-size: 11.5px; line-height: 1.3; }
.stage .ds-qc-tag-value > * { grid-area: 1 / 1; }
.stage .ds-qc-tag[data-state="measuring"] .ds-qc-tag-value::after, .stage .ds-qc-tag[data-state="done"] .ds-qc-tag-value::after { content: none; }
.stage .ds-qc-tag[data-state="measuring"] .v-done, .stage .ds-qc-tag[data-state="done"] .v-wait { visibility: hidden; }
.stage .ds-qc-tag[data-state="measuring"] .v-wait::after { content: ""; display: inline-block; width: .5em; height: .5em; margin-left: .4em; border: 1px solid var(--color-ink); border-radius: 50%; background: var(--color-signal); }
.stage .ds-qc-tag > .ds-stamp { position: absolute; right: -8px; bottom: -10px; margin: 0; padding: 2px 8px; border-width: 2.5px; font-size: 12px; rotate: -3deg; }
.stage-layer .ds-stamp:not(.is-in):not(.is-set) { opacity: 0; }
.stage .ds-qc-tag[data-verdict="dropped"] .ds-qc-tag-claim { text-decoration-thickness: 2px; }
.stage .ds-pass { position: absolute; left: 0; top: 0; z-index: 3; translate: var(--tx, 0px) var(--ty, 0px); background: var(--color-surface); border-width: 2.5px; font-size: 12px; }
.stage .ds-string { z-index: 2; translate: var(--sx, 0px) var(--sy, 0px); opacity: 0; }
.stage .ds-string.is-in, .stage .ds-string.is-set { opacity: 1; }
.stage .ds-ring { z-index: 2; stroke-width: 3.5; opacity: 0; }
.stage .ds-ring.is-in, .stage .ds-ring.is-set { opacity: 1; }
.stage .ds-inspect { z-index: 1; opacity: 0; transition: none; }
.stage .ds-inspect.is-in, .stage .ds-inspect.is-set { opacity: 1; }
.stage .ds-inspect-label { background: var(--color-ink); border-color: var(--color-ink); border-radius: 0; padding: 3px 7px; color: var(--color-on-night); font: 500 11px/1.2 var(--font-code); }
.stage .ds-inspect-label::before { content: none; }
.stage .ds-cursor { z-index: 5; opacity: 0; transition: opacity var(--motion-normal); }
.stage .ds-cursor.is-on { opacity: 1; }
.stage .ds-cursor > svg { display: block; width: 22px; height: 26px; }
.stage .ds-cursor-ring { left: -11px; top: -11px; width: 22px; height: 22px; }
.stage .ds-cursor-label { left: 16px; top: 22px; border-radius: 3px; }
.stage-say { display: flex; align-items: center; min-height: 3.2em; margin: var(--space-5) 0 0; font: 600 1.0625rem/1.35 var(--font-body); }
.stage-say::before { content: ""; flex: none; width: .65em; height: .65em; margin-right: .6em; border: 1.5px solid var(--color-ink); border-radius: 50%; background: var(--color-signal); }
@media (min-width: 701px) { .stage-say { min-height: 1.6em; } }

/* ---- Panel: transport, scoreboard, run log ---- */
.stage-panel { margin-top: var(--space-3); background: var(--color-surface); border: var(--rule-width) solid var(--color-ink); border-radius: var(--radius-panel); }
.stage-controls { display: flex; align-items: stretch; gap: var(--space-3); padding: var(--space-2) var(--space-3); visibility: hidden; }
.stage[data-ready] .stage-controls { visibility: visible; }
.stage[data-mode="static"] .stage-toggle { display: none; }
@media (prefers-reduced-motion: reduce) { .stage-toggle { display: none; } }
.stage-toggle { min-width: 7.5rem; padding: 0 var(--space-4); gap: var(--space-2); }
.stage-toggle-icon { width: 12px; height: 14px; background: linear-gradient(90deg, currentColor 0 36%, transparent 36% 64%, currentColor 64% 100%); }
.stage-toggle[data-state="paused"] .stage-toggle-icon, .stage-toggle[data-state="done"] .stage-toggle-icon { background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.stage .ds-tape { flex: 1 1 0; min-width: 0; }
.stage .ds-tape > li > button { gap: .4em; justify-content: flex-start; padding-inline: var(--space-2); font-size: var(--text-caption); text-transform: uppercase; overflow: hidden; }
.stage .ds-tape > li > button:focus-visible { outline-offset: -3px; }
.stage .ds-tape-fill { --p: 0; transition: none; }
.stage .ds-tape > li.is-set .ds-tape-fill, .stage .ds-tape > li.is-in .ds-tape-fill { --p: 1; }
.stage-score { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1) var(--space-5); padding: var(--space-2) var(--space-4); border-block: var(--border-width) solid var(--color-border); font: 500 var(--text-small)/1.4 var(--font-code); }
.stage-score b { font-weight: 800; }
.stage-score [data-score="danger"] b { color: var(--color-stamp); }
.stage-score [data-score="review"] b { color: var(--color-review); }
.stage-score [data-score="success"] b { color: var(--color-success); }
.stage-score [data-score="muted"] b { color: var(--color-muted); }
.stage-meta { display: inline-flex; gap: var(--space-3); margin-left: auto; white-space: nowrap; }
.stage-clock { color: var(--color-muted); font-variant-numeric: tabular-nums; }
.stage-clock b { color: var(--color-ink); }
.stage-step { display: none; min-width: 9ch; text-align: right; }
.stage .ds-runlog { display: grid; grid-template-rows: repeat(3, 1fr); height: 84px; padding: var(--space-1) var(--space-4); font-size: var(--text-small); line-height: 1; }
.stage .ds-runlog > li { height: auto; align-items: center; }
.stage .ds-runlog > li:not(:last-child) { color: var(--color-muted); }
.stage .ds-runlog time { color: var(--color-action); }
.stage .ds-runlog b { font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.stage .ds-runlog b[data-tone="danger"] { color: var(--color-stamp); }
.stage .ds-runlog b[data-tone="review"] { color: var(--color-review); }
.stage .ds-runlog b[data-tone="success"] { color: var(--color-success); }
.stage .ds-runlog b[data-tone="muted"] { color: var(--color-muted); }
.stage .ds-runlog span { overflow: hidden; text-overflow: ellipsis; }
.stage-transcript { margin-top: var(--space-4); }
.stage-transcript ol { display: grid; gap: var(--space-2); margin: var(--space-2) 0 0; padding-left: 1.4rem; color: var(--color-ink); }
.stage figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 var(--space-4); margin-top: var(--space-3); color: var(--color-muted); font: italic var(--text-body)/1.4 var(--font-note); }
.stage-caption-actions { display: inline-flex; flex-wrap: wrap; gap: var(--space-4); font-style: normal; }
[data-done-cta] { visibility: hidden; }
.stage[data-state="done"] [data-done-cta] { visibility: visible; }
.stage[data-state="done"] [data-self-check] { background: var(--color-highlight); }

/* ---- Phones: compact tags, one chapter at a time, filed as a grid at the end ---- */
@container (max-width: 559px) {
  .stage .ds-qc-tag-kind { display: none; }
}
.stage[data-narrow] .ds-qc-tag { width: var(--cellw, 8rem); padding: 6px 8px 12px 24px; }
.stage[data-narrow] .ds-qc-tag::before { left: 6px; }
.stage[data-narrow] .ds-qc-tag-claim { font-size: 12px; }
.stage[data-narrow] .ds-qc-tag-claim--ai { font-size: 13px; }
.stage[data-narrow] .ds-qc-tag-value { font-size: 10.5px; }
.stage[data-narrow][data-mode] :is(.ds-qc-tag, .ds-string, .ds-pass).is-shelved { opacity: 0; animation: none; }
.stage[data-narrow][data-state="done"] .ds-qc-tag { opacity: 1; visibility: visible; transform: translate(var(--gx, 0px), var(--gy, 0px)) rotate(var(--rot, 0deg)); transition: transform .5s ease, opacity var(--motion-normal); }
.stage[data-narrow][data-state="done"] .ds-string { opacity: 0; }
.stage[data-narrow][data-state="done"] .ds-pass { translate: var(--gx, 0px) var(--gy, 0px); transition: translate .5s ease; }
@media (max-width: 700px) {
  .stage-view { height: clamp(24rem, 58svh, 30rem); }
  .ds-window-note { width: auto; }
  .ds-window-note .note-long { display: none; }
  .ds-window-note .note-short { display: inline; }
  .stage-controls { flex-wrap: wrap; }
  .stage-toggle { flex: 1 1 100%; }
  .stage .ds-tape { flex: 1 1 100%; }
  .stage .ds-tape > li > button span { display: none; }
  .stage .ds-tape > li > button { justify-content: center; }
  .stage-score { gap: var(--space-1) var(--space-3); font-size: var(--text-caption); }
  .stage-step { display: inline; color: var(--color-muted); }
  .stage-total { display: none; }
  .stage .ds-runlog > li { grid-template-columns: 2.6rem 4.4rem minmax(0, 1fr); }
  .stage figcaption { display: grid; }
}
@supports not (container-type: size) { .stage-view, .stage-panel { display: none; } }

/* ---- Motion: live mode only, motion allowed. Pause freezes it all through [data-paused] (components.css). ---- */
.ticker-track { animation-play-state: paused; }
html[data-hero-motion="on"] .ticker-track { animation-play-state: running; }
@media (prefers-reduced-motion: no-preference) {
  .stage[data-mode="live"] .ds-qc-tag.is-in { animation: ds-tag-drop .5s var(--ease-stamp) both; }
  .stage[data-mode="live"] .ds-cursor[data-travel="a"] { animation: ds-travel-a var(--dur, 900ms) var(--ease-glide) both; }
  .stage[data-mode="live"] .ds-cursor[data-travel="b"] { animation: ds-travel-b var(--dur, 900ms) var(--ease-glide) both; }
  .stage[data-mode="live"] .ds-inspect.is-in { animation: stage-pop .18s ease-out both; }
  .stage[data-mode="live"] .ds-window-load[data-go="a"] { animation: stage-load-a .8s ease-out both; }
  .stage[data-mode="live"] .ds-window-load[data-go="b"] { animation: stage-load-b .8s ease-out both; }
  .stage[data-mode="live"] .say-text[data-fresh] { animation: stage-say .25s ease-out both; }
  .stage[data-mode="live"] .ds-runlog > li.is-new > * { animation: ds-ledger-in .16s ease-out both; }
  .stage[data-mode="live"] .ds-tape > li[data-run="a"] .ds-tape-fill { animation: stage-fill-a var(--dur, 1s) linear var(--skip, 0s) both; }
  .stage[data-mode="live"] .ds-tape > li[data-run="b"] .ds-tape-fill { animation: stage-fill-b var(--dur, 1s) linear var(--skip, 0s) both; }
  .stage[data-mode="live"] .fl-btn[data-busy] .fl-spin { animation: stage-spin .8s linear infinite; }
  .stage[data-mode="live"] .ds-qc-tag[data-state="measuring"] .v-wait::after { animation: ds-pulse .6s ease-in-out infinite; }
  .stage[data-mode="live"] .stage-view .fl, .stage[data-mode="live"] .stage-view .fl-toast, .stage[data-mode="live"] .fl-error, .stage[data-mode="live"] .stage-scrim { transition: opacity .15s; }
  .stage[data-state="done"] .fl-btn[data-busy] .fl-spin, .stage[data-state="done"] .ds-qc-tag .v-wait::after, .stage[data-state="done"] .fl-field .fl-value { animation: none; }
}
@keyframes stage-pop { from { opacity: 0; scale: .94; } to { opacity: 1; scale: 1; } }
@keyframes stage-load-a { from { scale: 0 1; opacity: 1; } 70% { scale: .85 1; opacity: 1; } to { scale: 1 1; opacity: 0; } }
@keyframes stage-load-b { from { scale: 0 1; opacity: 1; } 70% { scale: .85 1; opacity: 1; } to { scale: 1 1; opacity: 0; } }
@keyframes stage-say { from { opacity: 0; translate: 0 4px; } to { opacity: 1; translate: 0 0; } }
@keyframes stage-fill-a { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes stage-fill-b { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes stage-spin { from { rotate: 0deg; } to { rotate: 360deg; } }

/* ---- Forced colors ---- */
@media (forced-colors: active) {
  .stage .ds-qc-tag, .stage .ds-stamp, .stage .ds-tape, .stage .ds-ring { border-color: CanvasText; }
  .stage .ds-qc-tag > .ds-stamp, .stage .ds-pass { border-width: 2px; }
  .stage .ds-tape-fill { background: Highlight; }
}
