/* A scene in a docs page (`@scene <name>` in build_docs.py; scene.js), 23 Nov 2026. Wireframe
   wireframe-docs-scenes-2026-11-23.md v2, region A and read 2's settled points: one app still in the article column, at
   rest the whole window, each phase zoomed to its focus box; the caption at the left and the shared player's Back,
   Pause/Play/Replay and Forward at the right of one row, the progress bar under it; on a phone the buttons go under the
   caption at 44 px. Tokens from docs-kit.css only (tests/test_docs_visuals_tokens.py). */
.scn { margin: 24px 0 32px; }
.scn-frame { overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--still-bg); }
.scn-img { display: block; width: 100%; height: auto; }
.scn-marks { display: none; }
.scn.js .scn-frame { position: relative; }
.scn.js .scn-cam { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.scn.js .scn-img { height: 100%; }
.scn.js .scn-marks { display: block; position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.scn-cam.moving { transition: transform 700ms cubic-bezier(0.23, 1, 0.32, 1); will-change: transform; }
/* The veil (still review 2): outside the phase's focus box, the frame's own dark at 55%, arriving with the zoom. */
.scn-veil { fill: var(--still-bg); fill-opacity: 0.55; opacity: 0; transition: opacity 700ms cubic-bezier(0.23, 1, 0.32, 1); }
.scn-veil.on { opacity: 1; }
.scn-mark { opacity: 0; transition: opacity 220ms ease-out; }
.scn-mark.on { opacity: 1; }
.scn-mark .ring { fill: none; stroke: var(--still-mark); stroke-width: 3px; }
.scn-mark .dim { fill: var(--still-dim); }
.scn-mark .line { fill: none; stroke: var(--still-mark); stroke-width: 3px; stroke-linecap: round; stroke-linejoin: round; }
.scn-mark .node { fill: var(--still-mark); }
.scn-mark .glow { fill: none; stroke: var(--still-mark); stroke-width: 2px; }
.scn-mark text { fill: var(--still-ink); font: 600 13px var(--sans); paint-order: stroke; stroke: var(--still-halo); stroke-width: 6px; }
/* Edge fades (still review 1: half-words hard against the border): over an edge the still goes on past, 24 px of the frame
   fade to the still's own dark, less where the box the caption is about is closer (scene.js sets each size). */
.scn-fade { position: absolute; z-index: 1; opacity: 0; pointer-events: none; transition: opacity 220ms ease-out; }
.scn-fade.on { opacity: 1; }
.scn-fade[data-edge="l"] { left: 0; top: 0; bottom: 0; background: linear-gradient(to right, var(--still-bg), transparent); }
.scn-fade[data-edge="r"] { right: 0; top: 0; bottom: 0; background: linear-gradient(to left, var(--still-bg), transparent); }
.scn-fade[data-edge="t"] { left: 0; right: 0; top: 0; background: linear-gradient(to bottom, var(--still-bg), transparent); }
.scn-fade[data-edge="b"] { left: 0; right: 0; bottom: 0; background: linear-gradient(to top, var(--still-bg), transparent); }
.scn-list { margin: 8px 0 0; padding-left: 24px; color: var(--text-soft); }
.scn.js .scn-list { display: none; }
/* The caption row (read 2, item 4): caption 16 px at the left, three 36 px buttons at the right, one line at 720. */
.scn .aps { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 16px; row-gap: 8px; margin-top: 12px; }
.scn .aps-row { display: contents; }
.scn .aps-cap { grid-column: 1; grid-row: 1; font-weight: 400; color: var(--text); }
.scn .aps-ctl { grid-column: 2; grid-row: 1; gap: 8px; }
.scn .aps-bar { grid-column: 1 / -1; grid-row: 2; }
.scn .aps-b { min-width: 36px; height: 36px; }
.scn .aps-pp { padding: 0 12px; }
/* An arrow with nowhere to go looks disabled at every width (still review 2: at 1440 it read as live). */
.scn .aps-b:disabled { opacity: 0.4; }
/* Reduced motion: the last phase, Back and Forward only (read 2, item 6). */
.scn.scn-still .aps-pp { display: none; }
@media (max-width: 719px) {
  .scn-frame { border: 0; }   /* every pixel of the column for the still: the named element fits whole at 0.93 */
  .scn .aps { grid-template-columns: minmax(0, 1fr); }
  .scn .aps-ctl { grid-column: 1; grid-row: 2; }
  .scn .aps-bar { grid-row: 3; }
  .scn .aps-b { min-width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) { .scn-cam.moving, .scn-mark, .scn-fade, .scn-veil { transition: none; } }
