/* ---- the load-in (loadin.js). The stage is black from the first paint and sits above everything; the load-in builds inside it
   and removes it when it hands over to the hero. The page is held still (no scroll) until then. Off under reduced motion (the head
   flag never sets data-loadin). ---- */
.li-stage { position: fixed; inset: 0; z-index: 200; background: var(--bg); overflow: hidden; pointer-events: none; }
html:not([data-loadin]) .li-stage { display: none; }
html[data-loadin]:not(.li-done) { overflow: hidden; }
html[data-loadin] { scrollbar-gutter: stable; }   /* the scrollbar's room is kept while scrolling is held, so letting go never shifts the page sideways */
html[data-loadin] #dither-canvas { transition: none; }   /* the picture is at full strength the moment a load-in opens onto it */
.li-stage svg, .li-stage canvas { position: absolute; display: block; max-width: none; overflow: visible; }
.li-ko, .li-acq { inset: 0; width: 100%; height: 100%; }
.li-word { color: #fff; }
.li-word:not(.li-in) { visibility: hidden; }
.li-pane { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: var(--bg); will-change: transform; }   /* four of these frame the window onto the hero; they only ever move by transform, never by layout (no layout shift) */
.li-frame { position: absolute; overflow: hidden; background: var(--bg); clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%); }
.li-frame canvas { inset: 0; width: 100%; height: 100%; image-rendering: pixelated; visibility: hidden; }   /* one cell per canvas pixel, like the work tiles */
.li-frame canvas.is-on { visibility: visible; }
