/* VSSGEO · lane "reveal" (A9, 2026-09-28). Pairs with reveal.js. LOAD AFTER reports.css, lead-fixes.css, the four
   charts-*.css and chartfix.css (any place after chartfix.css is fine).
   One motion for the report: a unit fades in with an 8 px rise when it scrolls into view in #winscroll; cards stagger
   their parts 45 ms apart; the charts inside draw on the same beat. Every rule is scoped to html.vgr, which reveal.js
   sets only when motion is allowed, so with reduced motion (or without the script) this file does nothing at all.
   The chart lanes' own "arrive" animations are switched off here and replayed under .vgr-play, using their own
   keyframes (vgw-drop, vgs-cell, vgc-drop, vwk-block, vwk-tick, vgg-drop, vgg-fill) so the drawing language is theirs. */

:root{--vgr-ease:cubic-bezier(.2,.8,.2,1);--vgr-dur:.42s}
@keyframes vgr-rise{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* ── 1 · units: wait unseen, then rise ───────────────────────────────────────────────────────────── */
:root.vgr body.door #panel .vgr-u.vgr-hold{opacity:0!important}
:root.vgr body.door #panel .vgr-u.vgr-play:not(.vgr-c){
  animation:vgr-rise var(--vgr-dur) var(--vgr-ease) backwards!important;animation-delay:var(--vgr-t,0ms)!important}
/* cards: the box is there, its parts rise one after another */
:root.vgr body.door #panel .vgr-c.vgr-play>*{
  animation:vgr-rise var(--vgr-dur) var(--vgr-ease) backwards!important;animation-delay:var(--vgr-t,0ms)!important}

/* ── 2 · the old one-shot entrances (reports.js .vr2-in) — off; the reveal replaces them ───────────── */
:root.vgr body.door #panel.vr2 .vr2-in,
:root.vgr body.door #panel.vr2 .vr2-in:is(.gbar,.ibar) :is(.track i,.t i),
:root.vgr body.door #panel.vr2 .vr2-in .pbar2 .band,
:root.vgr body.door #panel.vr2 .stack.vr2-in{animation:none}

/* ── 3 · waffle (charts.js / chartfix.js): squares drop in reading order, only on reveal ───────────── */
:root.vgr body.door #panel .who .vgw-grid.vgw-in i{animation:none}
:root.vgr body.door #panel .vgr-play .vgw-grid i,
:root.vgr body.door #panel .vgr-play .vgw-grid.vgw-in i{
  animation:vgw-drop .32s var(--vg-spring,var(--vgr-ease)) backwards;
  animation-delay:calc(var(--vgr-t,0ms) + 80ms + var(--vgr-q,0ms))!important}

/* ── 4 · block bars (charts-scales.js .vgs-bar): cells fill left to right, only on reveal ──────────── */
:root.vgr body.door #panel .vgs-bar.vgs-go>:is(b.on,.vgs-us){animation:none}
:root.vgr body.door #panel .vgs-bar.vgs-wait>:is(b.on,.vgs-us){opacity:1}
:root.vgr body.door #panel .vgr-play .vgs-bar>b.on{
  animation:vgs-cell .22s var(--vg-spring,var(--vgr-ease)) backwards;animation-delay:calc(var(--vgr-t,0ms) + 100ms + var(--k,0) * 14ms)}
:root.vgr body.door #panel .vgr-play .vgs-bar>.vgs-us{animation:vgs-cell .2s ease backwards;animation-delay:calc(var(--vgr-t,0ms) + 380ms)}

/* ── 5 · Work charts (charts-work.js): blocks by row, U.S. tick after — delays follow the reveal ────── */
:root.vgr body.door #panel :is(#sOcc,#sInd) .vwk-in .vwk-blocks i.on,
:root.vgr body.door #panel :is(#sOcc,#sInd) .vwk-in.vwk-row .vwk-blocks i.on{
  animation:vwk-block .2s var(--vg-spring,var(--vgr-ease)) both;animation-delay:calc(var(--vgr-t,0ms) + 100ms + var(--k,0) * 8ms)}
:root.vgr body.door #panel :is(#sOcc,#sInd) .vwk-in .vwk-tick{animation:vwk-tick .24s ease-out both;animation-delay:calc(var(--vgr-t,0ms) + 340ms)}

/* ── 6 · groups mosaic + row bars (charts-groups.js) ───────────────────────────────────────────────── */
:root.vgr body.door #panel .vgg.vgg-in .vgg-t{animation-delay:calc(var(--vgr-t,0ms) + var(--k,0) * 50ms)}
:root.vgr body.door #panel .gbar.vgg-row.vgg-grow .vgg-bar>span{animation-delay:calc(var(--vgr-t,0ms) + 120ms)}

/* ── 7 · meters (charts-cards.js): reveal.js sets each block's delay; the drop plays under .vgr-play, not .vgc-go ─────── */
:root.vgr body.door #panel .vgc.vgc-go .vgc-m>i.vgc-f::after{animation:none}
:root.vgr body.door #panel .vgr-play.vgr-play .vgc-m>i.vgc-f.vgc-f::after,
:root.vgr body.door #panel .vgr-play.vgr-play.vgc-m>i.vgc-f.vgc-f::after{animation:vgc-drop .26s var(--vg-spring,var(--vgr-ease)) backwards;animation-delay:inherit}
:root.vgr body.door #panel .vgc .vgc-n{font-variant-numeric:tabular-nums}

/* ── 8 · reduced motion: belt and braces (reveal.js already drops html.vgr) ─────────────────────────── */
@media (prefers-reduced-motion:reduce){
  :root body.door #panel .vgr-u.vgr-hold{opacity:1!important}
  :root body.door #panel .vgr-u,:root body.door #panel .vgr-c>*{animation:none!important}
}
/* print / PDF: never print a waiting unit */
@media print{:root body.door #panel .vgr-u.vgr-hold{opacity:1!important}}
