/* Story pages: "The problem, the agent, the result."
   One Control Tower scene per step, beside its words. Each customer has its own visual metaphor, chosen for
   what its buyers recognise from their own work:
     DNSFilter     ticket-age chart, triage filter, response times collapsing
     Praktika      every ticket to one person, the cancellation policy in the app, a target gauge
     Trace         volume outgrowing capacity, every channel through Mach 1 first, ideas going live
     Aurora Solar  lead coverage across time zones before and after, one rep's output fanning out tenfold
     Abstrax       the cold route, a packaging line set by the forecast, a payback balance
     Beech Valley  the cost of each manual message, four years of leads re-lit in daily batches, payback
   Every number and label comes from that step's own text. The scenes are decorative (aria-hidden).

   Built on assets/story-evaluate.css (frame, chips, motion vocabulary, pause rule) and played by
   assets/onboarding-scenes.js. Colour rules from the implementation scenes: Horizon only for what
   Mach 1 handles, signal orange only for the problem, the plane glyph only for the agent.
   Every animation runs FROM a start value TO the element's resting style, so without the script, or
   with reduced motion, each scene shows its end state. Only transform, opacity, clip-path and stroke
   offsets animate. */

/* ---------- Placement in the story ---------- */
.s-step:has(> .s-step-side) {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
  gap: 20px clamp(32px, 4.4vw, 64px);
}
.s-step-side {
  position: sticky;
  top: 96px;
  display: grid;
  align-content: start;
  gap: 20px;
  min-width: 0;
}
@media (max-width: 900px) {
  .s-step:has(> .s-step-side) { grid-template-columns: minmax(0, 1fr); }
  .s-step-side { position: static; gap: 16px; }
  .s-step-side .ss { max-width: 520px; }
}

/* ---------- Frame and shared atoms ---------- */
.ss {
  margin: 0;
  --ss-warm: #f59e0b;
  --ss-cold: #38bdf8;
}
.ss .ev-stage {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 280px;
}
.ss-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}
.ss-foot.is-line {
  flex-wrap: nowrap;
  padding-top: 12px;
  border-top: 1px dashed var(--line-2);
  color: var(--fg-3);
  font-size: 12.5px;
  line-height: 1.4;
}
.ss-foot.is-line .ev-i { width: 14px; height: 14px; }
.ss-note { color: var(--fg-3); font-size: 12.5px; }
.ss-tag { flex: none; }
.ss-logo { display: block; flex: none; width: 13px; height: 13px; }
.ev-chip.is-accent { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent-ink); }
.ev-chip.is-quiet { border-color: var(--line); background: var(--bg-subtle); color: var(--fg-3); }
@container ev-scene (max-width: 420px) {
  .ss .ev-meta { display: none; }
}

.ss-sk { display: grid; flex: 1 1 auto; gap: 6px; min-width: 12px; }
.ss-sk i { display: block; height: 6px; border-radius: 3px; background: var(--line-2); }
.ss-sk i + i { height: 5px; background: var(--line); }
.ss-team { display: inline-flex; flex: none; }
.ss-av {
  display: grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--bg-elev);
  border-radius: 50%;
  background: var(--bg-sunken);
  color: var(--fg-3);
}
.ss-av .ev-i { width: 14px; height: 14px; }
.ss-team .ss-av + .ss-av { margin-left: -8px; }
.ss-av.is-sm { width: 20px; height: 20px; border-width: 0; }
.ss-av.is-sm .ev-i { width: 11px; height: 11px; }
.ss-av.is-lg { width: 40px; height: 40px; }
.ss-av.is-lg .ev-i { width: 19px; height: 19px; }

.ss-msg {
  align-self: flex-end;
  max-width: 88%;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 14px 14px 4px 14px;
  background: var(--bg-elev);
  color: var(--fg);
  font-size: 12.5px;
  line-height: 1.35;
}
.ss-msg.is-agent {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 6px;
  border-color: var(--horizon-line);
  border-radius: 14px 14px 14px 4px;
  background: var(--horizon-soft);
  color: var(--horizon-ink);
}
.ss-msg .ev-plane { width: 13px; height: 13px; }

/* Meters */
.ss-meter-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--fg-2);
  font-size: 12.5px;
  line-height: 1.35;
}
.ss-meter-head > span { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.ss-meter-head .ev-i { width: 14px; height: 14px; color: var(--fg-3); }
.ss-meter-head > b {
  flex: none;
  color: var(--fg);
  font: 620 18px/1 var(--font-sans);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.015em;
  white-space: nowrap;
}
.ss-meter.is-horizon .ss-meter-head > b,
.ss-grad {
  background: linear-gradient(100deg, var(--horizon-1), var(--horizon-2) 60%, var(--horizon-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ss-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: var(--bg-sunken);
  box-shadow: inset 0 0 0 1px var(--line);
}
.ss-track > i {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: var(--fg-4);
  transform-origin: 0 50%;
}
.ss-meter.is-horizon .ss-track > i:not(.ss-was) {
  background: linear-gradient(90deg, var(--horizon-1), var(--horizon-2) 70%, var(--horizon-3));
}
.ss-track.is-accent > i { background: var(--accent); }

/* Wires (SVG stretched to its box; strokes stay in screen pixels) */
.ss-wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
}
.ss-wires path {
  stroke: var(--line-3);
  stroke-width: 1.5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.ss-wires path.is-lit { stroke: var(--horizon-2); }
.ss-wires .ss-flow { stroke: var(--horizon-2); stroke-width: 2.5; stroke-dasharray: 2 10; opacity: 0; }
.ss-wires.is-accent path { stroke: color-mix(in srgb, var(--accent) 38%, var(--line-2)); }
.ss-wires.is-accent .ss-flow { stroke: var(--accent); }

.ss-x {
  background: linear-gradient(100deg, var(--horizon-1), var(--horizon-2) 55%, var(--horizon-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font: 680 48px/1 var(--font-sans);
  letter-spacing: -0.04em;
}
.ss-pin-ring {
  width: calc(var(--pin, 20px) + 14px);
  height: calc(var(--pin, 20px) + 14px);
  border: 1.5px solid var(--horizon-2);
  border-radius: 50%;
  opacity: 0;
}
.ss-box {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: var(--bg-elev);
  color: var(--fg-2);
  box-shadow: var(--shadow-2);
}
.ss-wx {
  display: block;
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =====================================================================================
   DNSFilter
   ===================================================================================== */
/* Problem: how old the tickets are, and the team's day running over. */
.dq { display: grid; gap: 6px; }
.dq-axis {
  display: grid;
  grid-template-columns: 1fr 1fr 1.35fr;
  padding-left: 38px;
  color: var(--fg-3);
  font-size: 11.5px;
}
.dq-axis span { padding-left: 6px; }
.dq-axis .is-late { color: var(--accent-ink); font-weight: 560; }
.dq-body { position: relative; }
.dq-zones {
  position: absolute;
  inset: -4px 0 -4px 38px;
  display: grid;
  grid-template-columns: 1fr 1fr 1.35fr;
}
.dq-zones i { border-left: 1px dashed var(--line-2); }
.dq-zones i.is-late { border-radius: 8px; border-left-color: transparent; background: var(--accent-soft); }
.dq-rows { position: relative; display: grid; gap: 4px; }
.dq-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  height: 26px;
}
.dq-tk {
  display: grid;
  place-items: center;
  width: 28px;
  height: 22px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: var(--bg-elev);
  color: var(--fg-3);
}
.dq-tk .ev-i { width: 12px; height: 12px; }
.dq-track { position: relative; height: 8px; }
.dq-track b {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--w) * 1%);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--line-3), var(--fg-4) 52%, var(--accent));
  background-size: calc(10000% / var(--w)) 100%;
  transform-origin: 0 50%;
}
.dq-day { margin-top: auto; }
.ss-meter-head > b.dq-over-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent-ink);
  font: 560 12.5px/1 var(--font-sans);
}
.dq-over-label .ev-i { width: 13px; height: 13px; color: currentColor; }
.dq-day-track {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: var(--bg-sunken);
  box-shadow: inset 0 0 0 1px var(--line);
}
.dq-work,
.dq-over {
  position: absolute;
  top: 0;
  bottom: 0;
  transform-origin: 0 50%;
}
.dq-work { left: 0; width: 64%; border-radius: 999px 0 0 999px; background: var(--fg-4); }
.dq-over {
  left: 64%;
  width: 30%;
  border-radius: 0 999px 999px 0;
  background: repeating-linear-gradient(135deg, var(--accent) 0 5px, color-mix(in srgb, var(--accent) 55%, var(--bg-elev)) 5px 10px);
}

/* Agent: a triage filter. Three of every four tickets stay with Mach 1. */
.tf {
  display: grid;
  grid-template-columns: auto 96px minmax(0, 1fr);
  align-items: center;
  min-height: 150px;
}
.tf-src { display: grid; justify-items: center; }
.tf-tk {
  display: grid;
  place-items: center;
  width: 32px;
  height: 24px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: var(--bg-elev);
  color: var(--fg-3);
  box-shadow: 0 1px 0 var(--line);
}
.tf-tk + .tf-tk { margin-top: -8px; }
.tf-tk .ev-i { width: 12px; height: 12px; }
.tf-src small,
.tf-gate small { margin-top: 6px; color: var(--fg-3); font-size: 11.5px; white-space: nowrap; }
.tf-gate {
  position: relative;
  display: grid;
  justify-items: center;
  padding-top: 20px;
}
.tf-gate::before {
  content: "";
  position: absolute;
  top: 42px;
  left: 0;
  right: 0;
  border-top: 1.5px solid var(--line-3);
}
.tf-gate small { color: var(--horizon-ink); font-weight: 560; }
.tf-gate-node {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--horizon-line);
  border-radius: 50%;
  background: var(--bg-elev);
  background-image: linear-gradient(var(--horizon-soft), var(--horizon-soft));
  color: var(--horizon-ink);
  box-shadow: 0 0 0 6px var(--horizon-soft), 0 8px 24px -8px var(--horizon-2);
}
.tf-gate-node .ev-plane { width: 20px; height: 20px; }
.tf-gate-node::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1.5px solid var(--horizon-2);
  border-radius: 50%;
  opacity: 0;
}
.tf-outs { position: relative; display: grid; gap: 28px; }
.tf-outs::before {
  content: "";
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 0;
  border-left: 1.5px solid var(--line-3);
}
.tf-lane { display: flex; align-items: center; gap: 10px; min-height: 48px; }
.tf-flow { position: relative; flex: 1 1 auto; min-width: 28px; height: 2px; }
.tf-line { position: absolute; inset: 0; background: var(--line-3); transform-origin: 0 50%; }
.tf-lane.is-on .tf-line { background: var(--horizon-2); }
.tf-dot { position: absolute; inset: -3px 0; color: var(--horizon-2); opacity: 0; }
.tf-lane:not(.is-on) .tf-dot { color: var(--fg-3); }
.tf-dot::before {
  content: "";
  position: absolute;
  top: 0;
  left: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.tf-dest {
  display: grid;
  flex: none;
  gap: 1px;
  max-width: 10em;
  padding: 6px 11px 7px;
  border: 1px solid var(--horizon-line);
  border-radius: 12px;
  background: var(--horizon-soft);
  color: var(--horizon-ink);
}
.tf-dest b { font: 660 19px/1.1 var(--font-sans); letter-spacing: -0.02em; }
.tf-dest small { font-size: 11.5px; line-height: 1.3; }
.tf-dest.is-team { border-color: var(--line-2); background: var(--bg-elev); color: var(--fg-2); }
.tf-dest.is-team b .ev-i { width: 18px; height: 18px; }
@container ev-scene (max-width: 420px) {
  .tf { grid-template-columns: auto 84px minmax(0, 1fr); }
  .tf-src small { display: none; }
  .tf-dest { max-width: 8.5em; padding: 5px 9px; }
}

/* Result: the wait collapses from days to minutes. */
.tc { display: grid; gap: 20px; }
.tc-track {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 28px;
  padding: 0 10px;
  border: 1px dashed var(--line-3);
  border-radius: 8px;
}
.tc-was { color: var(--fg-4); font-size: 12px; text-decoration: line-through; }
.tc-now {
  position: absolute;
  inset: -1px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--horizon-1), var(--horizon-2) calc(100% - var(--cut) + 1%), var(--line-3) calc(100% - var(--cut) + 1%));
  clip-path: inset(0 var(--cut) 0 0 round 8px);
}

/* =====================================================================================
   Praktika
   ===================================================================================== */
/* Problem: every app user's ticket ends with one person. */
.fi { position: relative; height: 196px; }
.fi-user {
  position: absolute;
  z-index: 1;
  left: 9%;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--bg-elev);
  color: var(--fg-3);
  translate: -50% -50%;
}
.fi-user .ev-i { width: 13px; height: 13px; }
.fi-one {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 72%;
  display: grid;
  justify-items: center;
  gap: 2px;
  width: 128px;
  text-align: center;
  translate: -50% -20px;
}
.fi-one .ss-av { margin-bottom: 4px; border: 1.5px solid var(--accent-line); background: var(--bg-elev); color: var(--accent-ink); box-shadow: 0 0 0 5px var(--accent-soft); }
.fi-one b { color: var(--fg); font: 600 13px/1.3 var(--font-sans); }
.fi-one small { color: var(--fg-3); font-size: 11.5px; line-height: 1.3; }
.fi-load { margin-top: auto; }

/* Agent: the cancellation policy, run inside the app. */
.pf {
  display: grid;
  grid-template-columns: minmax(0, 188px) minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}
.pf-phone {
  position: relative;
  min-height: 262px;
  padding: 26px 10px 12px;
  border: 1.5px solid var(--line-3);
  border-radius: 26px;
  background: var(--bg-subtle);
  box-shadow: var(--shadow-2);
}
.pf-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 46px;
  height: 6px;
  border-radius: 3px;
  background: var(--line-3);
  translate: -50% 0;
}
.pf-chat { display: flex; flex-direction: column; gap: 7px; }
.pf .ss-msg { font-size: 12px; }
.pf-offers { display: flex; align-self: flex-start; gap: 5px; }
.pf-offers b {
  padding: 4px 9px;
  border: 1px solid var(--horizon-line);
  border-radius: 999px;
  background: var(--bg-elev);
  color: var(--horizon-ink);
  font: 560 11.5px/1.2 var(--font-sans);
}
.pf-receipt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--horizon-line);
  border-radius: 12px;
  background: var(--bg-elev);
}
.pf-receipt > .ev-i,
.pf-tick {
  display: grid;
  flex: none;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 5px;
  border: 1px solid var(--horizon-line);
  border-radius: 50%;
  background: var(--horizon-soft);
  color: var(--horizon-ink);
  stroke-width: 2.6;
}
.pf-tick .ev-i { width: 12px; height: 12px; stroke-width: 2.8; }
.pf-tick { padding: 0; background-color: var(--bg-elev); background-image: linear-gradient(var(--horizon-soft), var(--horizon-soft)); }
.pf-receipt > span { display: grid; gap: 1px; }
.pf-receipt b { color: var(--fg); font: 600 12.5px/1.25 var(--font-sans); }
.pf-receipt small { color: var(--fg-3); font-size: 11.5px; }
.pf-side { display: grid; gap: 12px; min-width: 0; }
.pf-cap { color: var(--fg-3); font-size: 12px; }
.pf-rail { position: relative; display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.pf-rail::before {
  content: "";
  position: absolute;
  top: 11px;
  bottom: 11px;
  left: 10.5px;
  border-left: 1px dashed var(--line-3);
}
.pf-rail li { position: relative; display: flex; align-items: center; gap: 10px; color: var(--fg-2); font-size: 13px; line-height: 1.35; }
@container ev-scene (max-width: 440px) {
  .pf { grid-template-columns: minmax(0, 1fr); }
  .pf-phone { justify-self: center; width: min(100%, 250px); min-height: 0; }
  .pf-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
  .pf-rail::before { display: none; }
  .pf-rail li { font-size: 12px; }
}

/* Result: a gauge against the 40% target. */
.pg-dial { position: relative; width: min(100%, 290px); margin: 0 auto; }
.pg-svg { display: block; width: 100%; height: auto; overflow: visible; fill: none; }
.pg-bg,
.pg-val { stroke-width: 15; stroke-linecap: round; }
.pg-bg { stroke: var(--bg-sunken); }
.pg-val { stroke: url(#pk-gauge); stroke-dasharray: 85 100; stroke-dashoffset: 0; }
.pg-tick { stroke: var(--fg); stroke-width: 2.5; stroke-linecap: round; }
.pg-target {
  position: absolute;
  top: 11%;
  left: 35.8%;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--fg-2);
  font-size: 11.5px;
  white-space: nowrap;
  translate: calc(-100% - 6px) -50%;
}
.pg-target .ev-i { width: 12px; height: 12px; }
.pg-read {
  position: absolute;
  bottom: 0;
  left: 50%;
  display: grid;
  justify-items: center;
  width: 62%;
  text-align: center;
  translate: -50% 0;
}
.pg-read b {
  background: linear-gradient(100deg, var(--horizon-1), var(--horizon-2) 55%, var(--horizon-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font: 680 34px/1.05 var(--font-sans);
  letter-spacing: -0.03em;
}
.pg-read small { color: var(--fg-3); font-size: 12px; line-height: 1.3; }
.ss-track > i.ss-was { background: var(--fg-4); opacity: 0.6; }
.pg-role {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-top: auto;
  color: var(--fg-2);
  font-size: 12.5px;
}
.pg-role s { color: var(--fg-4); }
.pg-role b { color: var(--horizon-ink); font-weight: 600; }
.pg-role > .ev-i { width: 14px; height: 14px; color: var(--fg-3); }
.pg-who { display: inline-flex; align-items: center; gap: 6px; color: var(--fg); font-weight: 560; }

/* =====================================================================================
   Trace
   ===================================================================================== */
/* Problem: support volume outgrows what people can handle. */
.vc { position: relative; height: 178px; }
.vc-svg {
  position: absolute;
  top: 24px;
  left: 0;
  width: 100%;
  height: 148px;
  overflow: visible;
}
.vc-area { fill: color-mix(in srgb, var(--fg-4) 22%, transparent); }
.vc-over { fill: color-mix(in srgb, var(--accent) 26%, transparent); }
.vc-line { fill: none; stroke: var(--fg-2); stroke-width: 2; vector-effect: non-scaling-stroke; }
.vc-cap { fill: none; stroke: var(--fg); stroke-width: 1.5; stroke-dasharray: 5 5; vector-effect: non-scaling-stroke; }
.vc-lab { position: absolute; display: inline-flex; align-items: center; gap: 6px; color: var(--fg-2); font-size: 12px; white-space: nowrap; }
.vc-lab.is-vol { top: 0; right: 0; }
.vc-lab.is-cap { top: 102px; left: 0; }
.vc-lab.is-over {
  top: 48px;
  left: 60%;
  padding: 3px 9px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: var(--bg-elev);
  color: var(--accent-ink);
  font-weight: 560;
  translate: -50% 0;
}

/* Agent: every channel meets Mach 1 first. */
.ss-net { position: relative; height: 210px; }
.ss-chan,
.ss-hub {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  translate: -50% -50%;
}
.ss-chan {
  left: 8%;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--bg-elev);
  color: var(--fg-2);
}
.ss-hub {
  top: 50%;
  left: 50%;
  width: 50px;
  height: 50px;
  border: 1px solid var(--horizon-line);
  border-radius: 50%;
  background: var(--bg-elev);
  background-image: linear-gradient(var(--horizon-soft), var(--horizon-soft));
  color: var(--horizon-ink);
  box-shadow: 0 0 0 6px var(--horizon-soft), 0 8px 24px -8px var(--horizon-2);
}
.ss-hub .ev-plane { width: 22px; height: 22px; }
.ss-hub::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1.5px solid var(--horizon-2);
  border-radius: 50%;
  opacity: 0;
}
.ss-hub-cap {
  position: absolute;
  top: calc(50% + 36px);
  left: 50%;
  color: var(--horizon-ink);
  font: 560 12px/1.2 var(--font-sans);
  white-space: nowrap;
  translate: -50% 0;
}
.ss-out {
  position: absolute;
  z-index: 1;
  right: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 36%;
  translate: 0 -50%;
}
.ss-out > span:last-child { display: grid; gap: 1px; min-width: 0; }
.ss-out b { color: var(--fg); font: 600 12.5px/1.25 var(--font-sans); }
.ss-out small { color: var(--fg-3); font-size: 11.5px; line-height: 1.3; }
.tr-ring {
  position: relative;
  display: grid;
  flex: none;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: conic-gradient(var(--horizon-2) calc(var(--p, 0) * 1%), var(--line-2) 0);
}
.tr-ring::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--bg-elev);
}
.tr-ring > * { position: relative; }
.ss-out .tr-ring b { color: var(--horizon-ink); font: 680 11px/1 var(--font-sans); letter-spacing: -0.02em; }
.tr-ring.is-person { background: var(--line-2); color: var(--fg-2); }
.tr-ring .ev-i { width: 16px; height: 16px; }
@container ev-scene (max-width: 420px) {
  .ss-out { width: 38%; gap: 6px; }
  .ss-out small { display: none; }
  .tr-ring { width: 38px; height: 38px; }
  .ss-out .tr-ring b { font-size: 9px; letter-spacing: -0.04em; }
  .ss-chan { width: 30px; height: 30px; }
  .ss-hub-cap { display: none; }
}

/* Result: team ideas move from idea to live. */
.kb { display: grid; gap: 8px; }
.kb-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  color: var(--fg-3);
  font-size: 11.5px;
}
.kb-cols span { padding: 0 8px; }
.kb-cols .is-live { color: var(--horizon-ink); font-weight: 560; }
.kb-rows {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 8px 0;
  border-radius: 12px;
  background:
    linear-gradient(var(--line-2), var(--line-2)) 33.33% 0 / 1px 100% no-repeat,
    linear-gradient(var(--line-2), var(--line-2)) 66.66% 0 / 1px 100% no-repeat,
    linear-gradient(var(--horizon-soft), var(--horizon-soft)) 100% 0 / 33.33% 100% no-repeat;
}
.kb-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* The next ideas, already waiting in the first column. */
.kb-row:nth-child(-n+2)::before {
  content: "";
  grid-row: 1;
  grid-column: 1;
  margin: 0 6px;
  border: 1px dashed var(--line-3);
  border-radius: 10px;
}
.kb-card {
  position: relative;
  display: flex;
  grid-column: 3;
  align-items: center;
  gap: 6px;
  margin: 0 6px;
  padding: 8px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--bg-elev);
  box-shadow: var(--shadow-2);
}
.kb-bulb {
  display: grid;
  flex: none;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--horizon-soft);
  color: var(--horizon-ink);
}
.kb-bulb .ev-i { width: 12px; height: 12px; }
.kb-live {
  position: absolute;
  top: -7px;
  right: -7px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid var(--horizon-line);
  border-radius: 50%;
  background: var(--bg-elev);
  color: var(--horizon-ink);
}
.kb-live .ev-i { width: 10px; height: 10px; stroke-width: 3; }
@container ev-scene (max-width: 420px) {
  .kb-card .ss-sk { display: none; }
  .kb-card { justify-content: center; padding: 7px 4px; }
}

/* =====================================================================================
   Aurora Solar
   ===================================================================================== */
/* Problem and agent share one board: who gets a touchpoint, across time zones. */
.tz { display: grid; gap: 6px; }
.tz-head { display: grid; grid-template-columns: 1fr 2fr; color: var(--fg-3); font-size: 11.5px; }
.tz-head span { padding: 0 10px; }
.tz-head span:first-child { color: var(--fg-2); font-weight: 560; }
.tz-map {
  position: relative;
  height: 172px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--bg-elev) 70%, transparent);
}
.tz-zone { position: absolute; top: 0; bottom: 0; border-left: 1px dashed var(--line-2); }
.tz-band {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 33.33%;
  background: color-mix(in srgb, var(--fg-4) 16%, transparent);
  transform-origin: 0 50%;
}
.tz-band.is-agent {
  width: 100%;
  background: linear-gradient(90deg, var(--horizon-soft), color-mix(in srgb, var(--horizon-2) 8%, transparent));
}
.tz-pin { position: absolute; display: grid; place-items: center; translate: -50% -50%; }
.tz-pin > * { grid-area: 1 / 1; }
.tz-pin > i {
  width: var(--pin, 22px);
  height: var(--pin, 22px);
  border: 1.5px solid var(--fg-4);
  border-radius: 50%;
  background: var(--bg-elev);
}
.tz-pin.is-missed > i { border-style: dashed; opacity: 0.6; }
.tz-pin.is-s { --pin: 16px; }
.tz-pin.is-m { --pin: 22px; }
.tz-pin.is-l { --pin: 30px; }
.tz-pin > b {
  display: grid;
  place-items: center;
  width: calc(var(--pin, 22px) + 4px);
  height: calc(var(--pin, 22px) + 4px);
  border: 1.5px solid var(--horizon-line);
  border-radius: 50%;
  background: var(--bg-elev);
  background-image: linear-gradient(var(--horizon-soft), var(--horizon-soft));
  color: var(--horizon-ink);
}
.tz-pin > b.is-team { border-color: var(--line-3); background-image: none; color: var(--fg-2); }
.tz-pin > b .ev-i { width: 54%; height: 54%; stroke-width: 2.2; }
.tz-key { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: var(--fg-3); font-size: 11.5px; }
.tz-key i { width: 10px; height: 10px; margin-left: 4px; border: 1.5px dashed var(--fg-4); border-radius: 50%; }
.tz-key i.is-done { border-style: solid; border-color: var(--line-3); background: var(--bg-sunken); }

/* Result: one rep's output, tenfold. */
.rf {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
}
.rf-was,
.rf-fan { display: grid; justify-items: center; gap: 6px; }
.rf-was small,
.rf-fan small { color: var(--fg-3); font-size: 11.5px; text-align: center; }
.rf-was small { max-width: 6em; line-height: 1.3; }
.rf-card {
  display: grid;
  place-items: center;
  width: 28px;
  height: 38px;
  border: 1.5px solid var(--horizon-line);
  border-radius: 7px;
  background: var(--bg-elev);
  background-image: linear-gradient(var(--horizon-soft), var(--horizon-soft));
  color: var(--horizon-ink);
}
.rf-card .ev-i { width: 13px; height: 13px; }
.rf-card.is-was { border-color: var(--line-3); background-image: none; color: var(--fg-3); }
.rf-arc { position: relative; width: 100%; height: 124px; }
/* The fan pivots on the rep's avatar just below it (124px arc + 6px gap + 20px to the avatar's centre). */
.rf-arc .rf-card {
  position: absolute;
  top: 0;
  left: 50%;
  width: 26px;
  height: 36px;
  margin-left: -13px;
  transform-origin: 50% 150px;
  rotate: calc(var(--r) * var(--spread, 1));
}
.rf-rep .ss-av { border: 1.5px solid var(--horizon-line); background: var(--bg-elev); color: var(--horizon-ink); }
.rb { display: grid; gap: 8px; margin-top: auto; }
.rb small { display: inline-flex; align-items: center; gap: 6px; color: var(--fg-3); font-size: 12px; }
.rb small .ev-i { width: 14px; height: 14px; }
.rb-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rb-step {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--bg-elev);
  color: var(--fg-2);
  font-size: 12px;
}
.rb-steps > :last-child { border-color: var(--horizon-line); background: var(--horizon-soft); color: var(--horizon-ink); font-weight: 560; }
.rb-arrow { width: 12px; height: 12px; color: var(--fg-4); }
@container ev-scene (max-width: 420px) {
  /* Narrow frames: the fan takes the full width, before and after sit underneath. */
  .rf { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 8px; }
  .rf-fan { grid-row: 1; grid-column: 1 / -1; }
  .rf-was { grid-row: 2; }
  .rf .ss-x { grid-row: 2; justify-self: end; }
  .ss-x { font-size: 38px; }
  .rb-arrow { display: none; }
}

/* =====================================================================================
   Abstrax
   ===================================================================================== */
/* Problem: California to New York, into the cold. */
.ss-route {
  display: grid;
  grid-template-columns: auto minmax(40px, 1fr) auto;
  align-items: center;
  gap: 14px 12px;
  padding-top: 4px;
}
.ss-city { display: grid; grid-row: 1; grid-column: 1; justify-items: start; gap: 2px; max-width: 9.5em; }
.ss-city.is-end { grid-column: 3; justify-items: end; text-align: right; }
.ss-city b { margin-top: 6px; color: var(--fg); font: 560 13px/1.3 var(--font-sans); }
.ss-city small { color: var(--fg-3); font-size: 12px; line-height: 1.35; }
.ss-wx-tile {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--bg-elev);
}
.ss-wx-tile .ss-wx { width: 20px; height: 20px; }
.ss-wx-tile.is-warm { color: var(--ss-warm); }
.ss-wx-tile.is-cold { color: var(--ss-cold); }
.ss-road { position: relative; grid-row: 1; grid-column: 2; align-self: start; height: 42px; }
.ss-road > i {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  border-top: 2px dashed var(--line-3);
  transform-origin: 0 50%;
}
.ss-mover { position: absolute; inset: 0; display: flex; align-items: center; justify-content: flex-end; }
.ss-frost {
  position: absolute;
  inset: -1px;
  border: 1px solid color-mix(in srgb, var(--ss-cold) 70%, transparent);
  border-radius: inherit;
  background: color-mix(in srgb, var(--ss-cold) 22%, transparent);
}
.ss-temp {
  position: relative;
  display: flex;
  grid-column: 1 / -1;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
  color: var(--fg-3);
  font-size: 11.5px;
}
.ss-temp > i {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--ss-warm), color-mix(in srgb, var(--ss-warm) 30%, var(--ss-cold)) 50%, var(--ss-cold));
  opacity: 0.7;
}
.ss-loss { display: inline-flex; align-items: center; gap: 10px; color: var(--accent-ink); font: 500 12.5px/1.3 var(--font-sans); }
.ss-drops { display: inline-flex; align-items: flex-start; gap: 4px; height: 14px; }
.ss-drops i { width: 6px; height: 8px; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; background: var(--accent); }
.ss-drops i:nth-child(2) { margin-top: 4px; }

/* Agent: a packaging line set by each destination's forecast. */
.cv { display: grid; gap: 12px; }
.cv-station {
  display: inline-flex;
  justify-self: center;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 5px 11px;
  border: 1px dashed var(--line-3);
  border-radius: 999px;
  background: var(--bg-elev);
  color: var(--fg-2);
  font-size: 12px;
  line-height: 1.3;
  text-align: center;
}
.cv-station .ev-i { width: 14px; height: 14px; }
.cv-cells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 8px; }
.cv-cell { display: grid; justify-items: center; gap: 8px; }
.cv-fc {
  display: inline-flex;
  order: -2;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 8px 0 6px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--bg-elev);
  color: var(--fg-2);
  font: 500 12px/1 var(--font-sans);
}
.cv-fc .ss-wx { width: 14px; height: 14px; color: var(--ss-warm); }
.cv-fc.is-cold .ss-wx { color: var(--ss-cold); }
.cv-fc svg.ss-wx:has(use) { color: var(--fg-3); }
.cv-pack {
  order: -1;
  padding: 2px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--fg-3);
  font: 560 11.5px/1.3 var(--font-sans);
}
.cv-pack.is-on { border-color: var(--horizon-line); background: var(--horizon-soft); color: var(--horizon-ink); }
.cv-box { position: relative; isolation: isolate; display: grid; place-items: center; padding: 6px; }
.cv .ss-box { width: 44px; height: 44px; border-radius: 10px; }
.cv .ss-box .ss-wx { width: 22px; height: 22px; }
.cv-wrap {
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 2px dashed var(--horizon-2);
  border-radius: 14px;
  background: var(--horizon-soft);
}
.cv-belt {
  position: relative;
  height: 10px;
  margin-top: -6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--bg-sunken);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.cv-belt i {
  position: absolute;
  inset: 0 0 0 -20px;
  background: repeating-linear-gradient(90deg, var(--line-3) 0 2px, transparent 2px 20px);
}

/* Result: hours to build against the value of a year. */
.bs { position: relative; height: 196px; }
.bs-post {
  position: absolute;
  top: 34px;
  bottom: 14px;
  left: 50%;
  width: 4px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--line-3);
}
.bs-base {
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 96px;
  height: 8px;
  margin-left: -48px;
  border-radius: 4px;
  background: var(--line-3);
}
.bs-beam {
  position: absolute;
  top: 30px;
  left: 21%;
  right: 21%;
  height: 4px;
  border-radius: 2px;
  background: var(--fg-3);
  rotate: var(--a);
}
.bs-beam::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--fg-2);
}
.bs-pan { position: absolute; top: 2px; width: 0; transform-origin: 50% 0; rotate: calc(var(--a) * -1); }
.bs-pan.is-l { left: 0; }
.bs-pan.is-r { right: 0; }
.bs-load {
  position: absolute;
  top: 0;
  left: 50%;
  display: grid;
  justify-items: center;
  padding-top: 30px;
  translate: -50% 0;
}
.bs-load::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  height: 30px;
  border-left: 1px solid var(--line-3);
}
.bs-cost,
.bs-value {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 8px 12px 9px;
  border: 1px solid var(--line-2);
  border-bottom: 3px solid var(--fg-3);
  border-radius: 10px 10px 4px 4px;
  background: var(--bg-elev);
  text-align: center;
  white-space: nowrap;
}
.bs-cost .ev-i { width: 16px; height: 16px; color: var(--fg-3); }
.bs-cost b { color: var(--fg); font: 600 14px/1.2 var(--font-sans); }
.bs-cost small,
.bs-value small { color: var(--fg-3); font-size: 11.5px; line-height: 1.3; }
.bs-value { padding: 10px 14px 11px; border-color: var(--horizon-line); border-bottom-color: var(--horizon-2); background-image: linear-gradient(var(--horizon-soft), var(--horizon-soft)); }
.bs-value b {
  background: linear-gradient(100deg, var(--horizon-1), var(--horizon-2) 55%, var(--horizon-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font: 680 24px/1.1 var(--font-sans);
  letter-spacing: -0.02em;
}
@container ev-scene (max-width: 420px) {
  .bs-beam { left: 24%; right: 24%; }
  .bs-value small { max-width: 7em; white-space: normal; }
  .bs-value b { font-size: 20px; }
  .bs-cost, .bs-value { padding-inline: 9px; }
}

/* =====================================================================================
   Beech Valley
   ===================================================================================== */
.ss-years {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  gap: 10px;
  min-height: 124px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-2);
}
.ss-col { display: flex; flex-direction: column-reverse; align-items: center; gap: 6px; }
.ss-col > i {
  position: relative;
  display: block;
  width: 15px;
  height: 15px;
  border: 1.5px solid var(--fg-4);
  border-radius: 50%;
  background: var(--bg-elev);
}
.ss-years:not(.is-lit) .ss-col > i { opacity: 0.75; }
.ss-col > i > b {
  position: absolute;
  inset: -1.5px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--horizon-1), var(--horizon-2) 70%, var(--horizon-3));
  box-shadow: 0 0 0 3px var(--horizon-soft);
}
.ss-axis { display: flex; justify-content: space-between; margin-top: -8px; color: var(--fg-3); font-size: 11.5px; }

/* Problem: what one message costs a rep. */
.mc { margin-top: auto; }
.mc-bar { display: flex; gap: 3px; }
.mc-seg { display: grid; gap: 6px; min-width: 0; }
.mc-seg i {
  display: block;
  height: 10px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--accent) 60%, var(--bg-elev));
  transform-origin: 0 50%;
}
.mc-seg:first-child i { border-radius: 999px 3px 3px 999px; }
.mc-seg:last-child i { border-radius: 3px 999px 999px 3px; background: var(--accent); }
.mc-seg small { overflow: hidden; color: var(--fg-3); font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.ss-meter-head > b.ss-timer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px 0 8px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font: 600 12.5px/1 var(--font-sans);
}
.ss-clock { position: relative; width: 14px; height: 14px; border: 1.5px solid currentColor; border-radius: 50%; }
.ss-clock i {
  position: absolute;
  top: 1.5px;
  left: 50%;
  width: 1.5px;
  height: 4px;
  margin-left: -0.75px;
  border-radius: 1px;
  background: currentColor;
  transform-origin: 50% 100%;
}

/* Agent: three systems, four years re-lit, forty messages a day. */
.bt-sys { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.bt-out { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: auto; }
.ss-batch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px 7px 10px;
  border: 1px solid var(--horizon-line);
  border-radius: 12px;
  background: var(--horizon-soft);
  color: var(--horizon-ink);
}
.ss-batch > span { display: grid; gap: 1px; }
.ss-batch small { font-size: 11.5px; opacity: 0.85; }
.ss-batch b { font: 640 16px/1.1 var(--font-sans); }
.ss-batch .ev-plane { width: 18px; height: 18px; }
.bt-envs { display: flex; gap: 5px; }
.bt-env {
  display: grid;
  place-items: center;
  width: 26px;
  height: 20px;
  border: 1px solid var(--horizon-line);
  border-radius: 5px;
  background: var(--bg-elev);
  color: var(--horizon-ink);
}
.bt-env .ev-i { width: 12px; height: 12px; }

/* Result: a month of Mach 1 against a month of one client. */
.cs {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: end;
  gap: 20px;
}
.cs-col { display: grid; justify-items: center; gap: 4px; text-align: center; }
.cs-col b { color: var(--fg); font: 640 18px/1.2 var(--font-sans); font-variant-numeric: tabular-nums; }
.cs-col:not(.is-cost) b {
  background: linear-gradient(100deg, var(--horizon-1), var(--horizon-2) 55%, var(--horizon-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cs-col small { max-width: 13em; color: var(--fg-3); font-size: 11.5px; line-height: 1.35; }
.cs-stack { display: flex; flex-direction: column-reverse; align-items: center; gap: 2px; min-height: 100px; margin-bottom: 4px; }
.cs-stack i {
  display: block;
  width: 58px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--horizon-1), var(--horizon-2) 60%, var(--horizon-3));
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.18);
}
.cs-col.is-cost .cs-stack i { background: var(--fg-4); }
.ss-orders {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  gap: 2px 14px;
  margin-top: auto;
}
.ss-orders .ss-meter-head { grid-column: 1 / -1; }
.ss-orders small { padding-bottom: 2px; color: var(--fg-3); font-size: 12px; line-height: 1.4; }
.ss-yoy { display: flex; align-items: flex-end; gap: 6px; height: 46px; }
.ss-yoy i { display: block; width: 24px; border-radius: 6px 6px 2px 2px; transform-origin: 50% 100%; }
.ss-yoy i:first-child { height: 52%; background: var(--fg-4); }
.ss-yoy i:last-child { height: 100%; background: linear-gradient(180deg, var(--horizon-3), var(--horizon-2) 40%, var(--horizon-1)); }

/* ---------- Motion ---------- */
@keyframes ss-drop { from { opacity: 0; translate: 0 -12px; } }
@keyframes ss-grow-from { from { scale: var(--from, 0) 1; } }
@keyframes ss-travel { from { translate: calc(-100% + 32px) 0; } }
@keyframes ss-collapse { from { clip-path: inset(0 0 0 0 round 8px); } }
@keyframes ss-arc { from { stroke-dashoffset: 85; } }
@keyframes ss-ship {
  0% { opacity: 0; translate: calc(-200% - 24px) 0; }
  12% { opacity: 1; }
  38%, 58% { translate: calc(-100% - 12px) 0; }
  100% { translate: 0 0; }
}
@keyframes ss-fan { from { opacity: 0; rotate: 0deg; } }
@keyframes ss-tilt { from { rotate: 0deg; } }
@keyframes ss-belt-in { from { opacity: 0; translate: -64px 0; } }
@keyframes ss-run {
  0% { opacity: 0; translate: 0 0; }
  15%, 80% { opacity: 1; }
  100% { opacity: 0; translate: 100% 0; }
}
@keyframes ss-flow { to { stroke-dashoffset: -24; } }
@keyframes ss-blink { 50% { opacity: 0.3; } }
@keyframes ss-spin { to { rotate: 360deg; } }
@keyframes ss-belt { to { translate: 20px 0; } }
@keyframes ss-send {
  0%, 60%, 100% { translate: 0 0; }
  30% { translate: 0 -4px; }
}
@keyframes ss-drip {
  0% { opacity: 0; translate: 0 -3px; }
  30% { opacity: 1; }
  100% { opacity: 0; translate: 0 6px; }
}

.ss[data-ob-run] .a-drop { animation: ss-drop var(--d, var(--dur-3)) var(--e, var(--ease-out)) var(--t, 0s) both; }
/* Bars in these scenes always fill sideways, at any frame width. */
.ss.ev-scene[data-ob-run] .a-grow { animation-name: ev-grow-x; }
.ss .a-grow-from { transform-origin: 0 50%; }
.ss[data-ob-run] .a-grow-from { animation: ss-grow-from var(--d, var(--dur-3)) var(--e, var(--ease-out)) var(--t, 0s) both; }
.ss[data-ob-run] .a-travel { animation: ss-travel var(--d, 1s) var(--e, var(--ease-in-out)) var(--t, 0s) both; }
.ss[data-ob-run] .a-collapse { animation: ss-collapse var(--d, 0.9s) var(--e, var(--ease-in-out)) var(--t, 0s) both; }
.ss[data-ob-run] .a-arc { animation: ss-arc var(--d, 1s) var(--e, var(--ease-out)) var(--t, 0s) both; }
.ss[data-ob-run] .a-ship { animation: ss-ship var(--d, 1.1s) var(--e, var(--ease-in-out)) var(--t, 0s) both; }
.ss[data-ob-run] .a-fan { animation: ss-fan 0.6s var(--ease-out) var(--t, 0s) both; }
.ss[data-ob-run] .a-tilt,
.ss[data-ob-run] .a-untilt { animation: ss-tilt var(--d, 1s) var(--ease-spring) var(--t, 0s) both; }
.ss[data-ob-run] .a-belt { animation: ss-belt-in var(--d, 0.7s) var(--ease-out) var(--t, 0s) both; }
.ss[data-ob-run] .tf-dot { animation: ss-run 0.9s linear calc(0.95s + var(--n, 0) * 0.22s) both; }

/* After the story: an ambient layer that keeps each scene alive without changing what it says. */
.ss[data-ob-done] .ss-ping { animation: ss-blink 1.8s var(--ease-in-out) infinite; }
.ss[data-ob-done] .ss-flow { opacity: 0.9; animation: ss-flow 1.2s linear infinite; }
.ss[data-ob-done] .ss-hub::after,
.ss[data-ob-done] .tf-gate-node::after { animation: ev-ping 2.8s var(--ease-out) infinite; }
.ss[data-ob-done] .tf-dot { animation: ss-run 1.5s linear calc(var(--n, 0) * 0.5s) infinite; }
.ss[data-ob-done] .ss-pin-ring { animation: ev-ping 3.6s var(--ease-out) calc(var(--n, 0) * 0.4s) infinite; }
.ss[data-ob-done] .ss-clock i { animation: ss-spin 4s linear infinite; }
.ss[data-ob-done] .ss-drops i { animation: ss-drip 1.8s var(--ease-in-out) infinite; }
.ss[data-ob-done] .ss-drops i:nth-child(2) { animation-delay: 0.5s; }
.ss[data-ob-done] .ss-drops i:nth-child(3) { animation-delay: 1s; }
.ss[data-ob-done] .cv-belt i { animation: ss-belt 1.2s linear infinite; }
.ss[data-ob-done] .bt-env { animation: ss-send 2.4s var(--ease-in-out) infinite; }
.ss[data-ob-done] .bt-env:nth-child(2) { animation-delay: 0.15s; }
.ss[data-ob-done] .bt-env:nth-child(3) { animation-delay: 0.3s; }
.ss[data-ob-done] .bt-env:nth-child(4) { animation-delay: 0.45s; }
.ss[data-ob-done] .bt-env:nth-child(5) { animation-delay: 0.6s; }

@media (prefers-reduced-motion: reduce) {
  .ss-wires .ss-flow { display: none; }
}

/* ---------- Phones ---------- */
@media (max-width: 560px) {
  .ss .ev-stage { min-height: 0; gap: 14px; }
  .ss-net { height: 196px; }
}

@media (forced-colors: active) {
  .ss-meter.is-horizon .ss-meter-head > b,
  .ss-x,
  .pg-read b,
  .bs-value b,
  .cs-col:not(.is-cost) b { background: none; color: CanvasText; }
}
