/* A looping scene's parts (pieces/timeline): a part rises in while its cue is on and fades out, 20% faster, when it
   ends; a drawn line's dash follows the clock's steps smoothly. Entrances ease out, nothing bounces. The scene picks its
   own colours from the theme; nothing here does. With less motion the clock stands still and nothing moves. */
.kit-cue { opacity: 0; transform: translateY(10px);
  transition: opacity calc(var(--kit-exit) * 3) var(--kit-ease-out), transform calc(var(--kit-exit) * 3) var(--kit-ease-out); }
.kit-cue.kit-cue-on { opacity: 1; transform: none;
  transition-duration: calc(var(--kit-enter) * 3), calc(var(--kit-enter) * 3); }
.kit-cue-fade { transform: none; }
.kit-cue-line { transition: stroke-dashoffset calc(var(--kit-press) * 0.6) linear; }
.kit-cue-turn { transition: transform calc(var(--kit-press) * 0.6) linear; transform-box: view-box; }
@media (prefers-reduced-motion: reduce) {
  .kit-cue, .kit-cue.kit-cue-on, .kit-cue-line, .kit-cue-turn { transition: none; }
}

/* A story told by a scene (a sign-in page's left half): line drawings over the page itself, nothing behind them, and
   below them talks that read like a chat: the customer's message on the left edge, the answer on the right edge, a
   card across the full width under them. The box is upright (3 by 4), as tall as the window allows; every size follows
   its height, so the same story fits a short window. The scene's own code draws the lines (a viewBox of 600 by 800).
   Colours: the logo's V colour for the line and what is done; the page's own colour and words for the rest. */
.kit-story { --kit-story-h: clamp(300px, calc(100dvh - 260px), 760px); position: relative;
  width: min(100%, calc(var(--kit-story-h) * 0.75)); height: var(--kit-story-h); margin: 0 auto; container-type: size;
  color: var(--kit-on-main); font-family: var(--kit-font); }
.kit-story-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.kit-story-line { fill: none; stroke: var(--kit-logo-v, var(--kit-accent)); stroke-width: 3; stroke-linecap: round;
  stroke-linejoin: round; stroke-dasharray: 1 1; }
.kit-story-whole { stroke-dasharray: none; stroke-width: 2.5; }
.kit-story-hand { stroke: var(--kit-on-main); stroke-width: 3; stroke-linecap: round; }
.kit-story-hand-short { stroke-width: 3.5; }
.kit-story-pin { fill: var(--kit-on-main); }
.kit-story-caption { position: absolute; left: 50%; top: 15.5%; margin: 0; white-space: nowrap; font-size: 2.5cqh;
  font-weight: 600; transform: translateX(-50%); }
.kit-story-caption.kit-cue { transform: translate(-50%, 10px); }
.kit-story-caption.kit-cue-on { transform: translate(-50%, 0); }
.kit-story-thread { position: absolute; left: 0; right: 0; top: 21%; bottom: 0; display: flex; flex-direction: column;
  gap: 2.6cqh; }
.kit-story-talk { display: flex; flex-direction: column; gap: 1cqh; }
.kit-story-card { display: flex; align-items: center; gap: 1.2cqh; box-sizing: border-box; min-height: 4.6cqh;
  padding: 1cqh 1.6cqh; border: 1px solid var(--kit-line); border-radius: 1.6cqh; background: var(--kit-main);
  font-size: 2.1cqh; line-height: 1.35; }
.kit-story-in { align-self: flex-start; max-width: 84%; }
.kit-story-out { align-self: flex-end; max-width: 84%; min-height: 4.6cqh; }
.kit-story-note { align-self: stretch; font-weight: 600; color: var(--kit-quiet); }
.kit-story-time { flex: none; margin-left: auto; padding-left: 0.6cqh; font-size: 1.7cqh; color: var(--kit-quiet); }
.kit-story-icon { flex: none; width: 2.2cqh; height: 2.2cqh; fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round; }
.kit-story-done { color: var(--kit-logo-v, var(--kit-accent)); }
.kit-story .kit-player { top: 0; right: 0; }
