/* Take-apart engine extras (js/apart.js). Loaded after site.css. */

/* The scroll range as an element: the ViewTimeline that drives the whole sequence watches it. Height is set from JS. */
.apart-track { position: absolute; left: 0; top: 0; width: 1px; height: 0; visibility: hidden; pointer-events: none; }

/* Slab frames are always painted. They used to fade in with a class halfway through the scroll, which made
   every slab texture repaint at the exact moment the stack opens. The flat image covers them until then. */
.apart .slab::before { opacity: 1; transition: none; }

/* Slabs go on the GPU one per frame after decoding (class set from JS), under the flat image. */
.apart .board .slab { visibility: hidden; }
.apart .board .slab.is-in { visibility: visible; }

/* will-change only where script writes transforms per frame (raf engine). Timeline animations promote
   their own layers, and the static diagram does not move. */
.apart[data-engine="timeline"].in-view .board, .apart[data-engine="timeline"].in-view .slab,
.apart[data-engine="static"].in-view .board, .apart[data-engine="static"].in-view .slab { will-change: auto; }
