/* SKETCH 2026-10-19, round 3 (the pictures): perma's pictures on full-screen plates of the print, paced by the scroll.
   Loaded by editorial.html; inert without ?c=. plates.js builds the plate and lays it out. */
.plates { position: relative; margin-top: clamp(80px, 14vh, 128px); }
.pl-stage { position: sticky; top: 0; z-index: 4; height: 100vh; height: 100svh; overflow: hidden; color: var(--paper); }
.pl-print, .pl-paper { position: absolute; left: 0; top: 0; pointer-events: none; image-rendering: pixelated; }
.pl-print { z-index: 0; }
.pl-paper { z-index: 3; }
.pc2 .pl-paper { z-index: 1; }   /* 2: the blue grows out from under the picture */
.pl-pics { position: absolute; inset: 0; z-index: 2; }
.pl-track { position: absolute; left: 0; top: 0; width: 100%; height: 100%; transform-origin: 0 0; }
.pl-pic { position: absolute; margin: 0; transform-origin: 0 0; cursor: zoom-in; }
.pl-pic > img, .pl-pic > iframe { display: block; width: 100%; height: 100%; margin: 0; }
.pl-pic > img { object-fit: contain; }
.pl-pic.pl-frame { cursor: auto; }
.pl-pic > iframe.proto { aspect-ratio: auto; outline-offset: 5px; }
.pl-cover { position: absolute; left: 0; top: 0; pointer-events: none; image-rendering: pixelated; }
.pl-pic .try { position: absolute; right: 0; top: 100%; margin: 16px 0 0; white-space: nowrap; transition: opacity .25s; }   /* under the frame, on its right: above it, it covered the picture before (his note); the left is the corner caption's */
.pl-pic .try.off { opacity: 0; pointer-events: none; }
.pl-pic .ptry { z-index: 1; transition: opacity .25s; }
.pl-pic .ptry.off, .ptry.pl-corner.off { opacity: 0; pointer-events: none; }
.ptry.pl-corner { left: var(--pl-l, 24px); bottom: 72px; z-index: 4; transition: opacity .25s; }
/* the corner: where you are in the plate's pictures, and the picture's caption */
.pl-cap { position: absolute; z-index: 4; left: var(--pl-l, 64px); bottom: var(--pl-cb, 40px); display: flex; gap: 20px; align-items: center; pointer-events: none;
          transition: opacity .25s; }
.pl-cap .steps { display: flex; gap: 6px; align-items: center; pointer-events: auto; }   /* the live marks (panel.css .steps): on the blue, paper at .32 */
.pl-cap .steps button { width: 9px; height: 9px; padding: 0; border: 0; background: currentColor; opacity: .32; cursor: pointer;
                        transition: width .45s cubic-bezier(.2,.7,.2,1), opacity .2s, background-color .3s; }
.pl-cap .steps button:hover { opacity: .75; }
.pl-cap .steps button.on { width: 30px; background: var(--accent); opacity: 1; }
.pl-twin { position: absolute; top: 0; z-index: 1; pointer-events: none; image-rendering: pixelated; }   /* B white: the faint copy of the page's shape */
.pl-cap .pl-t { opacity: .7; }
.pl-cap.off { opacity: 0; }
/* the header over a blue sheet (his note: it should work "on the blue background and the white"): it becomes a band of
   the sheet's blue, ending on a clean edge like the paper band, so the pictures pass under blue, not under bare type;
   the mark, links, CV outline and the player turn paper (all of them read --fg / currentColor). plate.js sets .onplate
   once the sheet covers the whole band, and drops it when the sheet's end comes up into it */
.hd::after { content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none; opacity: 0; transition: opacity .25s;
             background: var(--ink); }
.hd::before { transition: opacity .25s; }
.hd { transition: color .25s; }
body.onplate .hd { --fg: var(--paper); color: var(--paper); }
body.onplate .hd::before { opacity: 0; }
body.onplate .hd::after { opacity: 1; }

/* the gallery, as live (site.js gallery()): one picture per screen on paper, swiped sideways; Close in the corner; the marks + caption under */
.pl-gal { position: fixed; inset: 0; z-index: 80; background: color-mix(in srgb, var(--paper) 97%, transparent); display: flex; flex-direction: column;
          opacity: 0; pointer-events: none; transition: opacity .25s ease; color: var(--ink); }
.pl-gal.on { opacity: 1; pointer-events: auto; }
.pl-gal .lb-x { position: absolute; top: 12px; right: 16px; z-index: 1; padding: 10px; color: var(--ink); opacity: .7; }
.pl-gal .lb-x:hover { opacity: 1; }
.pl-gal .lb-strip { flex: 1 1 auto; min-height: 0; width: 100%; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
                    overscroll-behavior-x: contain; scrollbar-width: none; margin-top: 56px; }
.pl-gal .lb-strip::-webkit-scrollbar { display: none; }
.pl-gal .lb-slide { flex: 0 0 100%; margin: 0; padding: 0 16px; display: flex; align-items: center; justify-content: center; scroll-snap-align: center; scroll-snap-stop: always; min-height: 0; cursor: zoom-out; }
.pl-gal .lb-slide img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.pl-gal .lb-foot { flex: none; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 18px 16px max(20px, 3vh); }
.pl-gal .steps { display: flex; gap: 6px; align-items: center; }
.pl-gal .steps button { width: 9px; height: 9px; padding: 0; border: 0; background: var(--ink); opacity: .22; cursor: pointer; transition: width .45s cubic-bezier(.2,.7,.2,1), opacity .2s; }
.pl-gal .steps button.on { width: 30px; background: var(--accent); opacity: 1; }
.pl-gal .lb-name { opacity: .75; }
@media (max-width: 860px) { .pl-cap { gap: 14px; } }
.pl-pics.pl-free { -webkit-mask-image: none !important; mask-image: none !important; }
.pl-pic.inking .proto { outline-color: transparent; }   /* the prototype's ring waits for the picture */
/* round 4 (plate.js): each step of pictures is a layer; the line between two is a mask */
.pl-layer { position: absolute; inset: 0; }
.pl-pic.crop { overflow: hidden; }
.pl-pic.crop > img { position: absolute; max-width: none; object-fit: fill; }
/* round 5b, c=5 ground: the plate as a long sheet the pictures scroll over; the flood is the sheet's own colour, its
   grainy edge a mask (plate.js edgeMask); the marks + caption stick in the corner on a chip of the blue */
.pl-stage.pl-ground { position: relative; top: auto; height: auto; overflow: clip; }
.pl-flood { position: absolute; inset: 0; z-index: 0; background: var(--ink); }
.pl-rail { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; justify-content: flex-end; pointer-events: none; }
.pl-ground .pl-cap { position: sticky; left: auto; bottom: var(--pl-cb); align-self: flex-start; margin: 0 0 var(--pl-cb) calc(var(--pl-l) - 12px);
                     padding: 8px 12px; background: var(--ink); }
.pl-live .pl-pic { transform-origin: 50% 50%; will-change: transform; }   /* c=7: each picture grows from its own middle */

/* c=8: a transparent drawing on its own white sheet */
.pl-pic.pl-card { background: #fff; padding: 5%; box-sizing: border-box; }
.pl-pic.pl-scrub > iframe, .pl-pic.pl-scrub > iframe:hover { border: 0; background: transparent; outline: none; }
.pl-twhold { position: absolute; left: 0; width: 100%; z-index: 1; pointer-events: none; }   /* ground: the faint copy's sticky track */
.pl-ground .pl-rail { top: 50vh; top: 50svh; }   /* the corner chip waits until the sheet has come half a screen up (it sat on the sheet's top edge) */
/* ?q=1, the quiet pass: captions are plain text under their pictures (no chip, no corner); full paper colour, regular */
.pl-q .pl-rail { display: none; }
.pl-under { position: absolute; z-index: 3; display: flex; gap: 16px; align-items: center; color: var(--paper); font-weight: 400; white-space: nowrap; }
.pl-under .steps { display: flex; gap: 6px; align-items: center; }
.pl-under .steps button { width: 9px; height: 9px; padding: 0; border: 0; background: currentColor; opacity: .32; cursor: pointer; transition: width .45s cubic-bezier(.2,.7,.2,1), opacity .2s; }
.pl-under .steps button.on { width: 30px; background: var(--accent); opacity: 1; }
.pl-pic > .pl-cap.pl-under { position: absolute; left: 0; top: 100%; bottom: auto; margin: 18px 0 0; padding: 0; background: none; transition: none; }
.pl-pic > .pl-cap.pl-under .pl-t { opacity: 1; }
.pl-pic > .pl-cap.pl-under .steps { pointer-events: auto; }
