/* The layered site. Every surface here is a scan: crumpled paper, black
   paper, grunge, duct tape, snow and cloud plates from the Resource Boy
   packs, and the Zhoosh hoarding. Code does the behaviour — peeling, tape
   placement, weather — and nothing else. */
:root{--tape-shadow:0 1px 3px rgba(0,0,0,.35)}
body.lay{overflow-x:hidden}

/* ---- the wall (stack only): the old hoarding, dirtied and lit from the middle ---- */
.hoarding{position:fixed;inset:0;z-index:-1;background:#2a2622 center/cover no-repeat}
/* The single old hoarding is what a page gets when its script hasn't run. It
   used to be the wall's own background, so every Zhoosh it up page fetched its
   326KB and then buildWall() put his comp over it (12 Oct). With the script
   on, layers.js asks for it only when there is no comp and no posters. */
html:not(.js-anim) .hoarding{background-image:url(tex/hoarding-zhoosh.webp)}
.hoarding.tiled{background-image:none}
.hoarding .wall{position:absolute;inset:-6% -3%}
.hoarding .wp{position:absolute;display:block;height:auto;box-shadow:0 1px 2px rgba(0,0,0,.55)}
.hoarding .wp.old{object-fit:cover;filter:saturate(.7) sepia(.12) brightness(.86)}   /* sun-faded, not see-through */
/* no grunge over the wall: multiplied at 60% it darkened Zhoosh's posters by more than half (Steven, 19 Sept) */
.hoarding::after{content:"";position:absolute;inset:0;z-index:6;background:radial-gradient(ellipse 85% 75% at 50% 45%,transparent 45%,rgba(0,0,0,.34) 100%)}
body.lay-stack{background:transparent}
body.lay-stack main{padding:clamp(10px,1.6vw,24px) 0 6vw}

/* ---- sheets: each part of the site is a pasted sheet of paper ---- */
.lay-stack .sheet{position:relative;isolation:isolate;background:transparent;border-bottom:0;box-shadow:none;
  margin:0 auto clamp(14px,2.2vw,30px);transform:rotate(calc(var(--tilt,0deg) + var(--drop,0deg)));transform-origin:var(--pivot,50% 0);
  transition:transform 1.3s cubic-bezier(.25,1.45,.45,1)}
/* the shadow a sheet throws on the wall is a layer of its own, a box-shadow
   and never a filter (layers.js sheet()). A lifting sheet's layer reaches
   --sp past its edges, so the fold can fade the shadow out with a mask. */
.lay-stack .sheet > .shade{position:absolute;inset:calc(-1 * var(--sp,0px));z-index:-2;pointer-events:none}
.lay-stack .sheet > .shade > i,.unroll-shade > i{position:absolute;inset:var(--sp,0px);
  box-shadow:var(--wx-shadow-x,3px) var(--wx-shadow-y,6px) 0 rgba(0,0,0,calc(.18 + var(--wx-sun,0) * .3)),0 24px 60px rgba(0,0,0,.4)}
/* A torn sheet's shadow stops above the whole depth of the tear, and only
   its blur runs on under it (Steven, 29 Sept, "check shadow"): stopped at
   80% of it, the deep bites showed the wall inside the shadow as a pale
   strip, and the hard offset shadow drew a straight line across the tear. */
.lay-stack .sheet.torn > .shade > i{bottom:calc(var(--sp,0px) + var(--tear-h,0px) + 4px);
  box-shadow:0 10px 22px rgba(0,0,0,calc(.2 + var(--wx-sun,0) * .2)),0 24px 60px rgba(0,0,0,.4)}
.lay-stack .sheet > .foldshade{position:absolute;inset:0;z-index:-2;pointer-events:none}
.lay-stack .site-header.sheet{position:relative;top:auto;margin-bottom:clamp(14px,2.2vw,30px)}   /* it's paper too, so it doesn't stick */
.lay .paper,.lay .dirt{position:absolute;inset:0;pointer-events:none;z-index:6}
/* --tex is the flyer's own stock, set inline. A sheet carries both scans and
   takes whichever the theme calls for, so the toggle changes the paper too. */
.lay .paper{background:var(--tex,var(--tex-w,url(tex/paper-crumpled-a.webp))) center/cover;mix-blend-mode:multiply;opacity:.88}
[data-theme="dark"] .lay-stack .sheet > .paper{background-image:var(--tex-b)}
/* The band (.dark) was black stock until 3 Oct. It is a light colour with black
   type now, in both themes, so it takes the light scan and the light press
   like any other sheet, and keeps them when the rest of the site goes dark. */
[data-theme="dark"] .lay-stack .sheet.dark > .paper,[data-theme="dark"] .lay .dark > .paper{background-image:var(--tex,var(--tex-w,url(tex/paper-crumpled-a.webp)))}
[data-theme="dark"] .lay .dark .paper{mix-blend-mode:multiply;opacity:.88}
.lay .dirt{background:url(tex/grunge-b.webp) center/cover;mix-blend-mode:multiply;opacity:.32;
  mask:linear-gradient(transparent 35%,#000 95%);-webkit-mask:linear-gradient(transparent 35%,#000 95%)}
/* torn sheets: the paper colour, the scan and the dirt all take the tear;
   the tape and the copy don't. The shadow is a filter so it follows the tear. */
/* the ground follows the theme in CSS: copied from the sheet when it was built,
   it kept the light paper after the site switched to dark, under light ink (23 Sept) */
.lay .ground{position:absolute;inset:0;z-index:-1;background:var(--paper)}
.lay .dark > .ground{background:var(--deep)}
.lay-stack .sheet.torn > .ground,.lay-stack .sheet.torn > .paper,
.lay-stack .sheet.torn > .press,.lay-stack .sheet.torn > .crease,.lay-stack .sheet.torn > .era-loop{
  -webkit-mask:var(--blk) top/100% calc(100% - var(--tear-h) + 3px) no-repeat,var(--tear) bottom/100% var(--tear-h) no-repeat;
  mask:var(--blk) top/100% calc(100% - var(--tear-h) + 3px) no-repeat,var(--tear) bottom/100% var(--tear-h) no-repeat}
.lay-stack .sheet.torn > .dirt{
  -webkit-mask:linear-gradient(transparent 35%,#000 95%) top/100% calc(100% - var(--tear-h) + 3px) no-repeat,var(--tear) bottom/100% var(--tear-h) no-repeat;
  mask:linear-gradient(transparent 35%,#000 95%) top/100% calc(100% - var(--tear-h) + 3px) no-repeat,var(--tear) bottom/100% var(--tear-h) no-repeat}
/* stickers (RULES 18–20): they belong to the wall, not the site. Slapped on
   the hoarding, so they're above the posters and under every sheet — found in
   the gaps, behind a lifted corner, or when a sheet comes down. */
.lay .slap{position:absolute;z-index:12;pointer-events:none;
  filter:drop-shadow(var(--wx-shadow-x,2px) var(--wx-shadow-y,3px) 3px rgba(0,0,0,.45))}
.slaps{position:fixed;inset:0;z-index:0;pointer-events:none;overflow:clip}
.slaps .slap{z-index:0;max-width:140px;pointer-events:auto;cursor:grab;touch-action:none}
/* held, it peels: it lifts off the wall and throws a longer shadow. Drag it
   off the edge of the screen and it comes away for good (Steven, 21 Sept). */
.slaps .slap.held{cursor:grabbing;z-index:6;transition:filter .15s,scale .15s;scale:1.12;will-change:translate;
  filter:drop-shadow(10px 20px 16px rgba(0,0,0,.6))}
.slaps .slap.off{opacity:.55;scale:.9}
/* in Zhoosh's paw (paw/sticker-paw.js): above the others, and it isn't yours to move */
.slaps .slap.pawed{z-index:7;pointer-events:none;will-change:translate,transform}   /* its own layer while she drags it: no streaks */
.lay .tape{position:absolute;z-index:8;pointer-events:auto;cursor:pointer;filter:drop-shadow(var(--tape-shadow))}   /* solid white tape: no opacity */
/* tape the paper was pulled out from under: left on the wall, under the sheets (layers.js leaveOnWall) */
.lay .tape.wall-tape{z-index:auto}
.lay .tape.pulled{pointer-events:none;transition:transform .5s cubic-bezier(.5,0,.8,.4),opacity .35s .2s;opacity:0;
  transform:translate(-50%,-50%) translate(var(--pull-x,0),-40px) rotate(var(--pull-r,0deg)) scale(1.08) !important}
/* the easter egg: pull one tape and the sheet swings from the other; pull both and it comes away.
   A film is named through its pasteup so this outranks its swing further down
   (.lay-stack .pasteup .vg-item): that rule's transition won until 12 Oct, the
   fade lost its delay, and a film blinked out instead of falling. */
.lay-stack .sheet.gone,.lay .flyer.gone,.lay-stack .pasteup.gone,.lay-stack .pasteup .vg-item.gone{transition:transform 1.4s cubic-bezier(.55,0,.9,.5),opacity .5s 1.05s;
  transform:translateY(110vh) rotate(calc(var(--tilt,0deg) + var(--drop,0deg) * 3)) !important;opacity:0;pointer-events:none}

/* the lifted corner: the back of the paper, reflected over the fold — a small
   piece of its own (layers.js peel), so its filter shadow is small too */
.lay .flap{position:absolute;pointer-events:none;z-index:9;filter:drop-shadow(-3px 6px 6px rgba(0,0,0,.4))}
.lay .flap .back{position:absolute;inset:0;background-color:#e9e3d5;background-repeat:no-repeat}
.lay .flap .back.dk{background-color:#1d1b18;background-blend-mode:normal,multiply}   /* the back of black stock is black */
.lay .grab{position:absolute;right:-3%;bottom:-3%;width:min(150px,28%);height:min(130px,24%);z-index:10;cursor:grab;touch-action:none}
/* on a phone a thumb scrolling up the right-hand side landed on the corner
   and peeled the sheet (Steven, 1 Oct: "activated without interaction"):
   up-and-down is always a scroll there, and the corner peels sideways */
@media (hover:none){ .lay .grab{touch-action:pan-y;width:min(84px,22%);height:min(84px,18%)} }
.lay .grab.bl{right:auto;left:-3%}
.lay .grab:active{cursor:grabbing}

/* ---- the flyer, guerrilla-pasted over the hero ---- */
/* Fly-posted illegally, so it doesn't care what it covers: pasted across the
   right-hand end of the headline, leaving enough to read (Steven, 19 Sept). */
.lay .hero{overflow:visible;z-index:3}
.lay .hero .kinetic{margin-top:clamp(.5rem,4vh,3rem)}
.flyer{position:absolute;z-index:40;right:2%;top:31%;bottom:auto;width:min(40%,460px);container-type:inline-size;
  --tilt:-4deg;
  transform:rotate(calc(var(--tilt) + var(--drop,0deg)));transform-origin:var(--pivot,50% 0);
  transition:transform 1.3s cubic-bezier(.25,1.45,.45,1);
  filter:drop-shadow(var(--wx-shadow-x,6px) var(--wx-shadow-y,10px) 3px rgba(0,0,0,.45))}
.flyer .fsheet{position:relative;background:#0e0d0c;padding:4px;isolation:isolate}
.flyer .paper{mix-blend-mode:screen;opacity:.9}   /* --tex is Steven's folded black stock: it's been in a pocket */
.flyer .lu{position:relative;min-height:0;padding:5cqw 5cqw 5.5cqw;text-align:center;display:block}
.flyer .lu-top{font-size:calc(2cqw * var(--cqz,1));gap:2cqw;letter-spacing:.3em} .flyer .lu-top img{width:7.5cqw}
/* the bill keeps one size whatever is headlining: the headline and the
   guest list each hold their own space, so a longer role can't stretch the
   paper (Steven, 21 Sept). The grey rule is gone — the gap does the work. */
/* 12 Oct: the work headlines and the roles are the small print (bill.js). The
   headline's band is tall enough for a long title on two lines, and the
   guest row gave up the difference, so the paper is the size it was. The
   headline is a link across its whole band, and each guest link fills its row. */
.flyer .lu-headwrap{position:relative;margin:2.2cqw 0 1cqw;min-height:12.5cqw;display:flex;align-items:center;justify-content:center}
.flyer .lu-head a::after{content:"";position:absolute;inset:0}
.flyer .lu-guests a{position:relative} .flyer .lu-guests a::before{content:"";position:absolute;inset:-.14em 0}
.flyer .lu-guests{font-size:calc(3.4cqw * var(--cqz,1));max-width:none;margin-bottom:1.5cqw;min-height:24cqw;
  display:flex;align-items:center;justify-content:center;flex-wrap:wrap}
.flyer .lu-t2{margin-top:3.4cqw}
.flyer .lu-t2{font-size:calc(3.1cqw * var(--cqz,1))} .flyer .lu-t3{font-size:calc(1.85cqw * var(--cqz,1));max-width:none;margin-top:1cqw}
.flyer .lu-label{font-size:calc(1.3cqw * var(--cqz,1));margin:2.2cqw 0 .6cqw} .flyer .lu-t4{font-size:calc(2.1cqw * var(--cqz,1));max-width:none}
.flyer .lu-small{font-size:calc(1.2cqw * var(--cqz,1));margin-top:2.6cqw}
.flyer.torn{transition:transform 1.2s cubic-bezier(.55,0,.9,.55),opacity .4s 1s;transform:translateY(130vh) rotate(26deg);opacity:0;pointer-events:none}
.flyer .grab{right:auto;left:-4%;bottom:-4%;width:32%;height:26%}
/* on a phone it hung 5% off the sheet's edge and was cut there (Steven, 1 Oct): all of it stays on */
@media (max-width:760px){ .flyer{width:60%;right:3%;top:35%;--tilt:-4deg} }

/* ---- weather, on the wall, from real plates (stack only) ---- */
.wx-layer{position:fixed;inset:0;pointer-events:none;z-index:60;opacity:0;transition:opacity 2.5s}
.wx-snow{mix-blend-mode:screen;background:url(tex/snow-a.webp) 0 0/140vw auto repeat,url(tex/snow-b.webp) 30vw 0/200vw auto repeat;
  animation:snowfall 16s linear infinite}
@keyframes snowfall{to{background-position:6vw 140vw,24vw 200vw}}
[data-wx="snow"] .wx-snow{opacity:.95}
.wx-cloud{overflow:hidden}
.wx-cloud img{position:absolute;width:95vw;opacity:.32;mix-blend-mode:screen;filter:blur(8px);animation:drift var(--d,110s) linear infinite}
.wx-cloud img:nth-child(1){top:-8%;--d:120s} .wx-cloud img:nth-child(2){top:28%;--d:150s;animation-delay:-60s;opacity:.4} .wx-cloud img:nth-child(3){top:58%;--d:170s;animation-delay:-120s;opacity:.35}
@keyframes drift{from{transform:translateX(-90vw)}to{transform:translateX(100vw)}}
[data-wx="cloud"] .wx-cloud{opacity:.55} [data-wx="overcast"] .wx-cloud{opacity:.8;background:rgba(150,152,150,.14)}
[data-wx="fog"] .wx-cloud{opacity:1;backdrop-filter:blur(1.5px);-webkit-backdrop-filter:blur(1.5px);background:rgba(200,200,195,.28)}
.wx-wet{background:url(tex/grunge-a.webp) center/cover;mix-blend-mode:multiply}
[data-wx="rain"] .wx-wet,[data-wx="storm"] .wx-wet{opacity:.55}
.wx-lamp{mix-blend-mode:multiply;background:radial-gradient(ellipse 66% 100% at 26% -10%,#ffd58f 0,#dba055 34%,#5a3a18 66%,#0a0907 100%)}
[data-day="night"] .wx-lamp{opacity:1}
.wx-sun{mix-blend-mode:screen;background:linear-gradient(200deg,rgba(255,196,90,.28),transparent 55%)}
[data-wx="clear"][data-day="day"] .wx-sun{opacity:1}
[data-wx="storm"] body,[data-wx="storm"] .hoarding{animation:flash 8s steps(1) infinite}
@keyframes flash{0%,92%,94%,100%{filter:none}93%,95.5%{filter:brightness(1.8)}}

/* ---- lab chrome ---- */
.lay-hint{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(16px + env(safe-area-inset-bottom,0px));white-space:nowrap;max-width:calc(100vw - 24px);overflow:hidden;text-overflow:ellipsis;opacity:0;transition:opacity .5s;z-index:10070;margin:0;font-family:"Archivo",sans-serif;font-size:.72rem;letter-spacing:.05em;
  color:var(--vanilla,#f1e5b3);background:rgba(17,17,16,.85);padding:6px 10px;border-radius:999px;pointer-events:none}
.lay-hint.on{opacity:1}
.lay-switch{position:fixed;left:50%;bottom:16px;transform:translateX(-50%);z-index:10060;display:flex;gap:3px;padding:5px;background:#111110;border-radius:999px;
  box-shadow:0 8px 30px rgba(0,0,0,.35);font-family:"Archivo",sans-serif;font-size:12.5px;max-width:calc(100vw - 20px);overflow-x:auto;scrollbar-width:none}
.lay-switch a{color:var(--vanilla,#f1e5b3);text-decoration:none;padding:8px 12px;border-radius:999px;white-space:nowrap;opacity:.72}
.lay-switch a:hover{opacity:1} .lay-switch a.on{background:var(--chartreuse);color:#000;opacity:1}
.wx-panel{position:fixed;left:14px;bottom:16px;z-index:10060;display:flex;flex-wrap:wrap;gap:3px;max-width:46vw;padding:5px;
  background:#111110;border-radius:16px;box-shadow:0 8px 30px rgba(0,0,0,.35);font-family:"Archivo",sans-serif;font-size:11.5px}
.wx-panel .wx-now{flex-basis:100%;color:var(--chartreuse);padding:4px 9px 3px;font-variation-settings:"wght" 700;letter-spacing:.04em;text-transform:uppercase}
.wx-panel button{appearance:none;border:0;background:rgba(255,255,255,.08);color:var(--vanilla,#f1e5b3);padding:5px 9px;border-radius:999px;cursor:pointer;font:inherit;opacity:.85}
.wx-panel button:hover{background:var(--chartreuse);color:#000;opacity:1}
@media (max-width:760px){ .wx-panel{max-width:calc(100vw - 28px);bottom:64px} }

/* the hero forces its children to position:relative; ours are overlays */
.lay .hero > .flyer,.lay .hero > .paper,.lay .hero > .dirt,.lay .hero > .flap,.lay .hero > .grab,.lay .hero > .tape,.lay .hero > .ground,
.lay .hero > .shade,.lay .hero > .foldshade{position:absolute}
.lay .hero > .flyer{z-index:40} .lay .hero > .paper,.lay .hero > .dirt{z-index:6} .lay .hero > .tape{z-index:8} .lay .hero > .flap{z-index:9} .lay .hero > .grab{z-index:10}
/* sheets sit on the wall with the wall showing round them */
.lay-stack main{max-width:min(1140px,80vw)}
.lay-stack .site-header.sheet{width:min(1140px,80vw);margin-inline:auto;box-sizing:border-box}
@media (max-width:1023px){ .lay-stack main,.lay-stack .site-header.sheet{max-width:88vw;width:88vw} }
/* below a laptop <main> is the width of the screen with the 6vw either side as padding, not 88vw
   with nothing round it: the sheets are laid out as before, but the tape and the slipped paper
   that hang past them now sit inside main, so clipping main at the screen (style.css) takes them
   out of the page's width without cutting them */
@media (max-width:1023px){ body.lay-stack main{max-width:none;width:100%;padding-inline:6vw;box-sizing:border-box} }

.lay-stack .sheet{margin-left:var(--shift,0)}    /* pasted by hand, so not a perfect column */
.lay-stack .hero{min-height:min(calc(100svh - 62px),860px)}
.wx-lamp{background:radial-gradient(ellipse 72% 110% at 28% -10%,#ffdca0 0,#e0aa62 38%,#6a4a22 70%,#100d09 100%)}

/* On a phone the site sizes the headline to the whole screen (15vw), but here
   it sits on an 88vw sheet, so it ran off the edge. Scaled to the sheet. */
@media (max-width:760px){ .lay-stack .hero .kinetic{font-size:clamp(2.2rem,13.6vw,4.6rem) !important} }

/* The hero as a bill: the headline is the poster (lines scaled to the sheet
   in layers.js), set tight, and the standfirst sits under a heavy rule like
   the small print at the foot of a gig poster. */
.lay .hero .kinetic{line-height:.8;margin-block:clamp(.5rem,3vh,2rem) clamp(1rem,4vh,3rem)}
.lay .hero .kinetic .line{padding-bottom:0}
.lay .hero-foot{border-top:clamp(5px,.6vw,8px) solid currentColor;padding-top:clamp(.9rem,1.6vw,1.4rem);align-items:flex-start}
.lay .hero-foot p{font-size:clamp(1.15rem,1.75vw,1.7rem);line-height:1.12;max-width:31ch;
  font-variation-settings:"wght" 680,"wdth" 92;letter-spacing:-.01em}

/* Steven's own comp of the hoarding replaces the collage when there is one */
.hoarding.comp{background-size:cover;background-position:center;background-repeat:no-repeat}
/* Nothing is lost, it's just screwed up (Steven, 21 Sept). Whatever comes
   down lands in the pile at the foot of the screen as a ball of his paper
   with its name printed on it — under the ball's own shading and under the
   press, so the word is printed into the paper rather than stuck on it.
   A click opens it back out where it came from. */
.lay-stack .sheet.balled,.lay .flyer.balled,.lay-stack .pasteup.balled,.lay-stack .vg-item.balled{display:none}
/* a heap, not a shelf: each ball overlaps its neighbours and lands at its own angle */
.bin{position:fixed;left:clamp(14px,2vw,28px);bottom:clamp(14px,2vw,26px);z-index:10080;
  display:flex;align-items:flex-end;gap:0;max-width:min(46vw,470px);flex-wrap:wrap-reverse}
.bin .paperball{margin:-16px -9px 0 -9px;rotate:var(--lie,0deg)}
.paperball{position:relative;width:clamp(80px,7.6vw,118px);padding:0;border:0;background:none;cursor:pointer;line-height:0;
  container-type:inline-size;isolation:isolate;
  filter:drop-shadow(4px 9px 11px rgba(0,0,0,.55));transition:transform .25s cubic-bezier(.2,1.4,.4,1)}
.paperball img{display:block;width:100%;height:auto}
/* The word, written on the sheet before it was screwed up (Steven, 22 Sept).
   The ink layer covers the ball exactly, so his displacement map lines up
   with the creases it came from: filter bends the letters, the mask then
   trims them to the paper's edge, and multiply lets the ball's shadows
   through the ink. The word itself is turned to sit with the paper. */
.paperball .ink{position:absolute;inset:0;z-index:1;display:flex;align-items:center;justify-content:center;pointer-events:none;
  -webkit-mask:var(--ball) center/100% 100% no-repeat;mask:var(--ball) center/100% 100% no-repeat;
  mix-blend-mode:multiply;opacity:.86}
.paperball .ink b{display:block;width:80%;translate:var(--nudge,0 0);transform:rotate(var(--turn,-8deg));
  font-family:"Archivo",system-ui,sans-serif;font-weight:normal;font-variation-settings:"wght" 860,"wdth" 80;
  text-transform:uppercase;letter-spacing:-.005em;font-size:calc(17cqw * var(--cqz,1));line-height:.86;text-align:center;
  color:#1b1914;text-wrap:balance;overflow-wrap:anywhere}
.paperball .press{position:absolute;inset:0;z-index:3;pointer-events:none;
  background:url(tex/press-light.webp) 0 0/420px auto repeat;mix-blend-mode:screen;opacity:.8;
  -webkit-mask:var(--ball) center/100% 100% no-repeat;mask:var(--ball) center/100% 100% no-repeat}
/* the balls are white paper whatever the site's theme, so the press stays the
   white-stock version — the dark one speckled them black */
[data-theme="dark"] .lay .paperball .press{background-image:url(tex/press-light.webp);mix-blend-mode:screen;opacity:.8}
.paperball:hover{transform:rotate(-7deg) scale(1.07)}
.paperball.going{transition:transform .5s cubic-bezier(.5,0,.8,.4),opacity .4s;transform:translateY(-40px) scale(.2) rotate(180deg);opacity:0}

/* ---- print, not paste (Steven, 20–21 Sept) ----
   The press texture is a scan (Dusty Halftone Print's own texture layer) laid
   over the whole sheet, not a mask on one heading — so every line of copy is
   printed, and it can't clip anything that travels outside a box the way a
   mask does. On white stock it's black with light specks, screened: white
   paper is untouched (screen against white is white) and the ink breaks up.
   On black stock it's the same scan the other way, multiplied: the black
   paper is untouched and the white ink breaks up. Rule 24.
   The crease layer is Steven's black-on-transparent wrinkled rectangle,
   which is already the right way round — black with the folds as highlights.
   Screened, the folds run across the type as well as the paper, because the
   print folded with the sheet. */
.lay .press,.lay .crease{position:absolute;inset:0;pointer-events:none}
.lay .press{z-index:7;background:url(tex/press-light.webp) 0 0/var(--press,760px) auto repeat;mix-blend-mode:screen;opacity:var(--press-o,.85)}
.flyer .press{background-image:url(tex/press-dark.webp);mix-blend-mode:multiply;opacity:var(--press-o,.8)}
/* the site's dark theme turns every sheet into dark stock, so the press has
   to turn over with it or it lifts near-black paper into grey speckle */
[data-theme="dark"] .lay .press{background-image:url(tex/press-dark.webp);mix-blend-mode:multiply;opacity:var(--press-o,.72)}
[data-theme="dark"] .lay .paper{mix-blend-mode:screen;opacity:.62}
[data-theme="dark"] .lay .crease{opacity:.3}
[data-theme="dark"] .lay .dark .press{background-image:url(tex/press-light.webp);mix-blend-mode:screen;opacity:var(--press-o,.85)}
[data-theme="dark"] .lay .dark .crease{opacity:var(--crease-o,.5)}
.lay .crease{z-index:7;background:url(tex/crease.webp) center/cover no-repeat;mix-blend-mode:screen;opacity:var(--crease-o,.5)}
.flyer .crease{opacity:var(--crease-o,.32)}
/* Steven's rule: everything printed carries the texture except his own
   handwriting, which should read as him writing on the poster. The hand sits
   above the press and the creases, so nothing touches it. */
.lay-stack .sheet :is(.hw,.hand,.u-hand,.scroll-cue,.signoff){position:relative;z-index:8}
.lay-stack .sheet .doodle{z-index:8}      /* already absolute: don't restack it, the full stop falls out of line */

/* ---- fixes, 21 Sept ----
   A sheet is narrower than the window, but the site sizes its big numbers in
   vw, so on a sheet they ran into each other. Sized off the column instead. */
.lay-stack .stats .stat{container-type:inline-size}
.lay-stack .stats .stat b{font-size:clamp(1.7rem,27cqw * var(--cqz,1),4.4rem)}
/* only the homepage's grid: a size container can't size itself to what's in
   it, so on a strip every stat came out the same width and "7,000 hrs" ran
   into "4.1m" (Steven, 26 Sept). A strip's stats take their own width and wrap. */

/* A sheet is a poster, not a newspaper: copy never sets in columns (Steven,
   23 Sept, reversing the two columns of 21 Sept). The stat numbers still size
   off the sheet, so the sheet stays a size container. */
.lay-stack .sheet{container-type:inline-size}

/* ---- the marker bleed on his handwriting (Steven's filter, 21 Sept) ----
   Fractal noise displacing the ink, so the pen spreads and wobbles into the
   paper the way a marker does. Only the hand gets it: printed copy carries
   the scanned press texture, never a filter (rule 12). */
.lay :is(.hw,.doodle,.hand-arrow-down,.signoff img){filter:url(#marker-bleed-big)}

/* ---- the game, pasted up like everything else (Steven, 21 Sept) ----
   On the site the field is seen through liquid glass. On a hoarding that's
   the wrong material: it's a sheet of paper gone up over the whole wall,
   with the press across it and the faces stuck on top of it. */
.lay .joy-veil{background:var(--paper);backdrop-filter:none;-webkit-backdrop-filter:none;isolation:isolate}
.lay .joy-veil::before,.lay .joy-veil::after{content:"";position:absolute;inset:0;pointer-events:none}
.lay .joy-veil::before{z-index:2;background:var(--joy-tex,url(tex/fold-white-43.webp)) center/cover;mix-blend-mode:multiply;opacity:.9}
.lay .joy-veil::after{z-index:3;background:url(tex/press-light.webp) 0 0/760px auto repeat;mix-blend-mode:screen;opacity:.85}
[data-theme="dark"] .lay .joy-veil::before{background-image:url(tex/block-02.webp);mix-blend-mode:screen;opacity:.62}
[data-theme="dark"] .lay .joy-veil::after{background-image:url(tex/press-dark.webp);mix-blend-mode:multiply;opacity:.72}
.lay .joy-field,.lay .joy-bar,.lay .joy-thread,.lay .joy-set,.lay .joy-end{z-index:6}
.lay .joy-field{z-index:4}
/* the bar is set like the top of a bill, not a toolbar; its rule underneath
   came out on 12 Oct (Steven: the faces drift up behind it) */
.lay .joy-bar{padding:1.1rem clamp(16px,3vw,44px);
  font-variation-settings:"wght" 760,"wdth" 108;text-transform:uppercase;letter-spacing:.06em}
.lay .joy-bar .mono:first-child{font-size:clamp(.72rem,1.05vw,.92rem)}
.lay .joy-count{font-variation-settings:"wght" 900,"wdth" 116;letter-spacing:-.01em}
.lay .joy-gear,.lay .joy-close{border:2px solid currentColor;border-radius:0;background:none;
  padding:.28em .7em;font-variation-settings:"wght" 760}
.lay .joy-end{background:color-mix(in srgb, var(--paper) 86%, transparent);backdrop-filter:none;-webkit-backdrop-filter:none}
/* the faces are stickers on the sheet: they sit on the paper, not behind glass */
.lay .joy-face img{filter:drop-shadow(3px 6px 5px rgba(27,25,20,.45))}

/* ---- level 2 of 3: a little bit of fun (Steven, 22 Sept) ----
   The site as it is, printed. Each band carries its own sheet of stock and
   the press, the way the stack's sheets do, but nothing is lifted off the
   page: no gaps, no tilt, no tape, no tears. The masthead stays sticky. */
.lay-flyer .band{isolation:isolate}
.lay-flyer .band:not(.site-header,.hero){position:relative}
.lay-flyer .band > .paper{opacity:.82}
/* each band carries the paper colour itself: most of the site's sections are
   transparent, and the scan multiplied over nothing is just a grey scan */
.lay-flyer .band:not(.dark){background-color:var(--paper)}
[data-theme="dark"] .lay-flyer .band > .paper{background-image:var(--tex-b)}
[data-theme="dark"] .lay-flyer .band.dark > .paper{background-image:var(--tex,var(--tex-w,url(tex/paper-crumpled-a.webp)))}   /* the band stays light stock */
.lay-flyer .band :is(.hw,.hand,.u-hand,.scroll-cue,.signoff){position:relative;z-index:8}   /* his hand is never printed (rule 27) */
.lay-flyer .band .doodle{z-index:8}


/* ---- 22 Sept: the levels across every page ---- */

/* the smiley on the hero sits over the heavy rule under the headline, so
   when it inflates across the rule the rule doesn't run through its face */
.lay .hero > .hero-type{z-index:3}

/* a film that's playing is never printed over or taped over: YouTube's rules
   forbid covering its player */
.lay .video-embed{position:relative;z-index:9}

/* level 1, all business: no rolling smiley (22 Sept), and no full stop at
   all (23 Sept) — the gold stop is retired from the brand, so the headline
   simply ends with its last word. */
.lay-business .kinetic .dot{display:none}

/* ---- the fun dial in the masthead ---- */
.fun-dial{position:relative;display:inline-flex;align-items:center}
.fun-dial-btn{appearance:none;border:0;background:none;padding:0;margin:0;cursor:pointer;line-height:0;border-radius:50%;
  transition:transform .25s cubic-bezier(.2,1.5,.4,1)}
.fun-dial-btn img{width:var(--ctl,1.5rem);height:var(--ctl,1.5rem);display:block;filter:drop-shadow(1px 2px 0 rgba(27,25,20,.25))}
.fun-dial-btn:hover,.fun-dial.open .fun-dial-btn{transform:rotate(-14deg) scale(1.12)}
.fun-dial-btn:focus-visible{outline:2px solid var(--teal);outline-offset:3px}
.fun-dial-pop{position:absolute;right:-8px;top:calc(100% + 12px);z-index:30;width:min(290px,86vw);padding:.9rem .8rem .7rem;
  background:var(--paper);color:var(--ink);border:2px solid var(--ink);box-shadow:4px 6px 0 rgba(27,25,20,.2);text-align:left}
.fun-dial-pop[hidden]{display:none}
.fd-q{margin:0 .3rem .5rem;font-size:.72rem;letter-spacing:.16em;text-transform:uppercase;font-variation-settings:"wght" 800}
.fd-opt{display:flex;align-items:center;gap:.7rem;padding:.45rem .4rem;color:inherit;text-decoration:none;
  font-size:.95rem;line-height:1.15;font-variation-settings:"wght" 650}
.fd-opt img{width:32px;height:32px;flex:none}
/* his zany face keeps its tongue: as wide as the others, taller (dial.js lines the face up) */
.fun-dial img.zany{height:auto}
.fd-opt:hover,.fd-opt:focus-visible{background:rgba(27,25,20,.07);outline:none}
/* keyboard: the same ring as everything else; the tint alone was faint on chartreuse (4 Nov) */
.fd-opt:focus-visible{outline:3px solid var(--ink,#1b1914);outline-offset:-3px}
.fd-opt.on{background:var(--chartreuse);color:#000}
/* the masthead is a printed sheet on the other levels: the dial sits above its paper and press */
.lay .site-header .fun-dial{z-index:12}

/* ---- level 3: photos and film stills torn all round, taped to the wall ----
   Rule 14: a tear always shows what's behind it, and behind these is the
   hoarding. The top and bottom tears cut the outer layer, the side tears the
   picture inside it, so every corner is torn both ways. */
.lay-stack .pasteup{position:relative;background:none;border:0;box-shadow:none;margin:0 auto clamp(18px,2.6vw,36px);
  transform:rotate(calc(var(--tilt,0deg) + var(--drop,0deg)));transform-origin:var(--pivot,50% 0);transition:transform 1.3s cubic-bezier(.25,1.45,.45,1)}
.lay-stack .pasteup{margin-left:var(--shift,0)}
.lay-stack .pasteup.framed{padding:0}
.lay-stack .pasteup .video-grid{padding-bottom:0}
.lay-stack .pasteup .vg-item{position:relative}
/* the shadow is a box-shadow behind the picture (24 Sept: a filter came out
   in seamed blocks in Safari). It is pulled in by the whole depth of the
   tear and spread back out, as the inline pieces' has been since 29 Sept.
   Pulled in by half, a deep bite showed the wall between the paper and the
   start of the shadow, and the shadow's straight edge as a line under the
   torn one: plain to see under a white still (Steven, 12 Oct, Yes Live). */
.lay-stack .rip{display:block;position:relative;isolation:isolate}
.lay-stack .rip::before{content:"";position:absolute;z-index:-1;pointer-events:none;
  inset:var(--th,28px) var(--tw,28px);box-shadow:2px 12px 24px 10px rgba(0,0,0,.34),0 3px 8px 5px rgba(0,0,0,.16)}
/* a collage goes up on white stock, torn round the white (the picture inside isn't torn) */
.lay-stack .rip.mounted .mount{display:block;padding:calc(var(--th,24px) + 8px) calc(var(--tw,24px) + 8px);
  background:url(tex/fold-white-32.webp) center/cover,var(--paper);background-blend-mode:multiply}
[data-theme="dark"] .lay-stack .rip.mounted .mount{background:#ece6d9}
.lay-stack .rip-cut{display:block}
.lay-stack .play-tear{display:block;position:relative}   /* the Playground, torn itself (layers.js pasteUp) */
.lay-stack .play-tear .play-live{border:0}
.lay-stack .pasteup img,.lay-stack .pasteup video{display:block}
/* Every picture carries its own grain (Steven, 30 Nov: Zhoosh it up is the max, and the photos
   were the one thing on it left clean; A bit of fun prints its pictures under the band's paper
   and press). Still stuck on top of the sheet, so the grain is the picture's own (layers.js grain):
   the paper scan multiplied and the press screened, a touch lighter than a sheet's, and lighter
   again in the dark theme (29 Sept: "too much grain on dark mode"). Each layer is cut to the
   picture: inside the tear's outer layer, so its top and bottom tears clip it, with the side tears
   as a mask of its own; the portrait stickers by their own outline. */
.lay-stack .rip-cut{position:relative}   /* a film's still is already: .video-facade */
/* The same grain on A bit of fun's pictures (30 Nov: "the same grain"), so these four are for both levels */
.lay .grain{position:absolute;inset:0;pointer-events:none}
.lay .grain-paper{background:url(tex/paper-crumpled-a.webp) center/cover;mix-blend-mode:multiply;opacity:.6}   /* one scan for every picture on both levels, not its sheet's or band's */
.lay .grain-press{background:url(tex/press-light.webp) 0 0/760px auto repeat;mix-blend-mode:screen;opacity:.7}
[data-theme="dark"] .lay .grain-paper{opacity:.42}
[data-theme="dark"] .lay .grain-press{opacity:.5}
/* A bit of fun: a picture and its grain sit just above the band's paper (6) and press (7), as a
   picture stuck on does on Zhoosh it up, so only its own grain crosses it. The grain is laid over
   the picture by layers.js (place), in the picture's parent. */
.lay-flyer .grain-pic{position:relative;z-index:8}
.lay-flyer .grain-parent{position:relative}
.lay-flyer .grain{z-index:8}
.lay-flyer .grain-in{z-index:auto}   /* inside a film's still, which is lifted itself */
.lay-flyer .cutout-frame > .grain{z-index:8;transition:transform .55s var(--ease),opacity .5s var(--ease)}
/* The About portrait is sticky (style.css), and a sticky block is a layer of its own: under the
   band's paper and press, it held his picture under them whatever its z-index. So the portrait
   comes up whole, and the smiley behind him carries the same grain, cut round (layers.js). */
.lay-flyer .portrait:has(.grain){z-index:8}
.lay-flyer .disc-face > .grain{border-radius:50%}
/* the cutout's grain goes with his face when the smiley comes out (style.css, .is-face) */
.lay-flyer .cutout-frame.is-face > .grain{opacity:0;transform:scale(.94) translateY(2.5%) rotate(-1.2deg)}
@media (hover:hover){ .lay-flyer .cutout-frame:hover > .grain{opacity:0;transform:scale(.94) translateY(2.5%) rotate(-1.2deg)} }
/* a block that fades in is a layer of its own until it has, under the band's paper and press:
   the band's grain would cross its pictures while it faded, then lift off (as on Zhoosh it up, 26 Nov) */
.lay-flyer .reveal:has(.grain){opacity:1;transform:none;transition:none}
.lay-stack .grain-lr{
  -webkit-mask:var(--tl) left/var(--tw,28px) 100% no-repeat,var(--blk) center/calc(100% - 2 * var(--tw,28px) + 2px) 100% no-repeat,var(--tr) right/var(--tw,28px) 100% no-repeat;
  mask:var(--tl) left/var(--tw,28px) 100% no-repeat,var(--blk) center/calc(100% - 2 * var(--tw,28px) + 2px) 100% no-repeat,var(--tr) right/var(--tw,28px) 100% no-repeat}
.lay .grain-own{-webkit-mask:var(--own) 0 0/100% 100% no-repeat;mask:var(--own) 0 0/100% 100% no-repeat}   /* both levels: the stickers, and A bit of fun's cutout */
.lay-stack .rip-tb{
  -webkit-mask:var(--tt) top/100% var(--th,28px) no-repeat,var(--blk) center/100% calc(100% - 2 * var(--th,28px) + 2px) no-repeat,var(--tb) bottom/100% var(--th,28px) no-repeat;
  mask:var(--tt) top/100% var(--th,28px) no-repeat,var(--blk) center/100% calc(100% - 2 * var(--th,28px) + 2px) no-repeat,var(--tb) bottom/100% var(--th,28px) no-repeat}
.lay-stack .rip-lr{
  -webkit-mask:var(--tl) left/var(--tw,28px) 100% no-repeat,var(--blk) center/calc(100% - 2 * var(--tw,28px) + 2px) 100% no-repeat,var(--tr) right/var(--tw,28px) 100% no-repeat;
  mask:var(--tl) left/var(--tw,28px) 100% no-repeat,var(--blk) center/calc(100% - 2 * var(--tw,28px) + 2px) 100% no-repeat,var(--tr) right/var(--tw,28px) 100% no-repeat}
/* The caption is a slip of printed paper stuck over the bottom edge of what
   it describes (Steven, 23 Sept: it sat too far away). Plain stock and ink:
   the press scan is black with light specks and only works screened over
   paper — laid flat as a background it made a black label with black type. */
.lay-stack .pasteup figcaption{display:table;position:relative;z-index:3;margin:clamp(.8rem,1.4vw,1.2rem) 0 0 clamp(1rem,4%,3rem);
  max-width:min(52ch,78%);padding:.5em .8em .55em;
  background:url(tex/fold-white-32.webp) center/cover,var(--pal-b);background-blend-mode:multiply;color:var(--on-deep);opacity:1;   /* the slip is the second colour (3 Oct) */
  font-size:var(--small);line-height:1.35;transform:rotate(-1.4deg);box-shadow:2px 4px 0 rgba(0,0,0,.2),0 8px 16px rgba(0,0,0,.25)}
/* A slip with Sound on: the copy, then the pill on a line of its own beneath it, as on every
   level (style.css). In the line of the copy it touched the first word, and spaced off it the
   copy wrapped round underneath the pill (Steven, 12 Oct: "after the copy instead"). A slip is
   a table, so here it has to be told to be the column, and to stay as narrow as its copy. */
.lay-stack .pasteup[data-hear] figcaption{display:flex;width:fit-content;padding:.7em .9em .75em}
.lay-stack .dark .pasteup figcaption{background-color:var(--pal-a)}
/* the name under a quote is a slip too, pasted on like a picture's (4 Nov) */
.lay-stack .said figcaption{background:url(tex/fold-white-32.webp) center/cover,var(--pal-b);background-blend-mode:multiply;
  transform:rotate(-1.4deg);box-shadow:2px 4px 0 rgba(0,0,0,.2),0 8px 16px rgba(0,0,0,.25)}
.lay-stack .dark .said figcaption{background-color:var(--pal-a)}
/* only a caption right under its picture overlaps it; the reel's own caption sits clear of the phase strip */
.lay-stack .pasteup .rip + figcaption{margin-top:calc(-1 * clamp(1.4rem,2.6vw,2.2rem))}
.lay-stack .pasteup .tape{z-index:8}
/* hung from one strip (layers.js stripHang): the bottom edge isn't held, so it
   stands off the wall and its shadow is longer there (the light's still up
   and to the left, rule 17) */
.lay-stack [data-hang="strip"] > .rip::before{box-shadow:3px 19px 28px 10px rgba(0,0,0,.38),0 4px 8px 5px rgba(0,0,0,.16)}
/* while a film plays, its still — and the tape that held it — are off */
.lay-stack .vg-item:has(.video-embed:not(.own)) > .tape{display:none}
.lay-stack .pasteup .video-embed{box-shadow:3px 6px 0 rgba(0,0,0,.2),0 14px 22px rgba(0,0,0,.4)}

/* ---- level 3, About: his portrait as two stickers on the sheet ---- */
.lay-stack .portrait.stuck{position:relative;z-index:8}
.stickpair{position:relative;width:min(100%,560px);margin:0 auto;user-select:none;-webkit-user-select:none}
.stickpair img{position:absolute;inset:0;width:100%;height:100%;display:block;-webkit-user-drag:none}
.stickpair{container-type:inline-size}
.stickpair .sp-top{position:absolute;inset:0}
.stickpair .sp-me{position:absolute;left:19%;bottom:15%;rotate:-8deg;pointer-events:none;
  font-family:"Steven Hand","Bradley Hand","Segoe Script",cursive;font-size:calc(9.5cqw * var(--cqz,1));line-height:1;color:#1b1914}
.lay-stack .portrait.stuck > figcaption{display:none}
.stickpair .sp-top{cursor:grab;touch-action:none;transition:translate .45s cubic-bezier(.2,1.3,.4,1),rotate .35s,filter .2s,scale .2s}
.stickpair .sp-top.held{cursor:grabbing;transition:none;scale:1.03;filter:drop-shadow(12px 22px 16px rgba(0,0,0,.4));will-change:translate,rotate}   /* its own layer while held or pawed: Safari left streaks repainting its shadow (12 Nov) */
.stickpair .sp-top:focus-visible{outline:3px solid var(--teal);outline-offset:4px}
/* the masthead's link styles reach into the dial: it keeps its own */
.nav .fun-dial .fd-opt{color:var(--ink);text-transform:none;letter-spacing:0;font-size:.95rem;padding:.45rem .4rem}
.nav .fun-dial .fd-opt.on{color:#1b1914}
.nav .fun-dial .fd-opt::after{content:none}
/* the stickers peek over the printed page, never under the paper or the press */
.lay .peeker{z-index:8}

/* ---- the torn-paper page change (tear.js) ---- */
.tear-canvas{position:fixed;inset:0;width:100%;height:100%;z-index:2147483001;display:none;pointer-events:none}
.tear-canvas.on{display:block;pointer-events:auto}   /* nothing else gets clicked while it tears */

/* Nothing on these pages may widen the page. The flyer bleeds off the right
   edge on a phone and every lifted corner's flap is a full-size transformed
   layer: clipped to the eye, but still counted as page width, so a phone laid
   the stack out 1020px wide and zoomed out to fit. clip, not hidden: hidden
   would make body a scroll container and unstick the masthead. */
html:has(> body.lay),body.lay{overflow-x:clip}


/* ---- 23 Sept: Zhoosh it up fixes ---- */

/* a film still is torn right through: nothing behind it. The facade's own
   ink backing showed through the side tears as black (or cream in dark mode) */
.lay-stack .video-facade.rip-tb{background:none}
.lay-stack .video-facade.rip-tb img{opacity:1}

/* The reel becomes a pile of posters pasted over one another: the one you're
   on is on top, the others show round its edges, and moving on slaps the
   next one up. Paper is opaque, so nothing shows through (Steven, 23 Sept:
   the half-transparent neighbours let the wall through and looked a mess). */
.lay-stack .reel{padding-bottom:0}
.lay-stack .reel-track{display:grid;overflow:visible;scroll-snap-type:none;gap:0;padding:clamp(10px,2vw,24px) 0}
.lay-stack .reel-slide{grid-area:1/1;width:min(100%,720px);justify-self:center;opacity:1;z-index:var(--rz,1);
  transform:translate(var(--rx,0),var(--ry,0)) rotate(var(--rt,0deg))}
.lay-stack .reel-slide .vg-item > .tape{z-index:8}
.lay-stack .reel-arrow{z-index:60;top:50%}
@media (max-width:760px){ .lay-stack .reel-arrow{display:grid} }
/* the phase names are printed on a strip of paper, not on the wall */
.lay-stack .reel-tabs{width:fit-content;max-width:94%;margin:clamp(14px,2vw,22px) auto 0;padding:.55rem 1.2rem .6rem;
  background:url(tex/fold-white-32.webp) center/cover,var(--paper);background-blend-mode:multiply;color:var(--ink);
  transform:rotate(-.7deg);box-shadow:2px 4px 0 rgba(0,0,0,.2),0 10px 20px rgba(0,0,0,.3)}
[data-theme="dark"] .lay-stack .reel-tabs{background:var(--paper)}
.lay-stack .reel-tab{opacity:.62} .lay-stack .reel-tab[aria-current="true"]{opacity:1}

/* ---- the masthead, pinned: a torn strip taped across the top of the screen ---- */
.head-spacer{height:0}
/* anything jumped to (index.html#work) lands clear of the pinned strip;
   layers.js measures the strip when it pins */
.lay-stack [id]{scroll-margin-top:var(--strip-h,7.5rem)}
.lay-stack .site-header.sheet.pinned{position:fixed;top:0;left:50%;z-index:10040;margin:0;width:min(1140px,92vw);
  padding-top:.3rem;padding-bottom:calc(.3rem + var(--tear-h,20px));
  transform:translateX(-50%) rotate(-.5deg);transform-origin:50% 0;animation:strip-in .5s cubic-bezier(.2,1.3,.4,1)}
@keyframes strip-in{from{transform:translate(-50%,-115%) rotate(-3deg)}}
@media (prefers-reduced-motion:reduce){ .lay-stack .site-header.sheet.pinned{animation:none} }

/* ---- the menu bar tucks away while you read (head.js, 30 Sept) ----
   html[data-nav]: slim (Steven's pick), or tuck / fixed with ?nav=. On the two sticky levels
   the bar slides up out of sight and back; on Zhoosh it up the pinned strip
   is pulled up off the top of the screen, and drops back in with the same
   bounce it pinned with (strip-in restarts when .tucked comes off). */
body:not(.lay-stack) .site-header{transition:transform .34s cubic-bezier(.3,.7,.2,1)}
[data-nav="tuck"] body:not(.lay-stack) .site-header.tucked,
[data-nav="slim"] body:not(.lay-stack) .site-header.tucked{transform:translateY(calc(-100% - 18px))}
[data-nav="tuck"] .lay-stack .site-header.sheet.pinned.tucked,
[data-nav="slim"] .lay-stack .site-header.sheet.pinned.tucked{animation:none;transform:translate(-50%,calc(-100% - 56px)) rotate(-2.5deg);
  transition:transform .4s cubic-bezier(.5,0,.75,.3)}
/* slim: the mark smaller, the name on one line, no "London" */
.site-header.slim{padding-top:.3rem;padding-bottom:.3rem}
.lay-stack .site-header.sheet.pinned.slim{padding-top:.15rem;padding-bottom:calc(.15rem + var(--tear-h,20px))}
.site-header.slim .brand-mark{width:clamp(2.4rem,3vw,2.9rem)}
.site-header.slim .logo{font-size:clamp(1rem,1.25vw,1.2rem)}
.site-header.slim .logo-place{display:none}
@media (prefers-reduced-motion:reduce){
  body:not(.lay-stack) .site-header,.lay-stack .site-header.sheet.pinned.tucked{transition:none}
}

/* ---- unfurling (layers.js unfurl) ----
   Laid over the sheet from outside it: the shadow of what's unrolled, just
   under the sheet, and the roll itself, just over it. The roll is the back
   of the paper: unprinted, opaque, a cylinder with square ends. */
.lay-stack main{position:relative}
.unroll{position:absolute;pointer-events:none}
.unroll-shade > i{inset:0 0 auto 0;height:0}
.unroll .roll{position:absolute;left:0;right:0;top:0;height:0;border-radius:3px / 50%;
  background:linear-gradient(to bottom,rgba(0,0,0,.34),rgba(255,255,255,.36) 24%,rgba(255,255,255,.1) 46%,rgba(0,0,0,.06) 68%,rgba(0,0,0,.44)),
    var(--tex-w,none) center/cover,#e3dccd;
  background-blend-mode:normal,multiply,normal;
  box-shadow:0 4px 6px -1px rgba(0,0,0,.42),0 12px 22px -4px rgba(0,0,0,.34)}
.unroll.dark .roll{background:linear-gradient(to bottom,rgba(0,0,0,.5),rgba(255,255,255,.16) 24%,rgba(255,255,255,.04) 46%,rgba(0,0,0,.12) 68%,rgba(0,0,0,.6)),
    var(--tex-b,none) center/cover,#1f1d1a;background-blend-mode:normal,screen,normal}
/* tape goes on once the paper under it is down */
.lay .tape.waiting{visibility:hidden}

/* ---- the wall was pasted from the bottom up (24 Sept) ----
   Each piece sits over the ends of the tape holding the one below it (z is
   set per piece in layers.js). The site's travelling ball stays above it all. */
.lay-stack .zo{z-index:var(--z,auto)}
.lay-stack .companion{z-index:900}

/* ---- About on the wall: a heading is a line of the poster, over its copy
   (24 Sept: sized for the whole page, the headings ran into the copy beside
   them once the page was a sheet) ---- */
.lay-stack .intro-grid{grid-template-columns:minmax(0,1fr);gap:0}
.lay-stack .intro-grid > *{grid-column:1 / -1}
.lay-stack .intro-grid > h2{font-size:var(--h2)}
.lay-stack .intro-grid .label{position:static}

/* under the portrait, in his own hand: "Me!" (Steven, 24 and 26 Sept) — never printed over */
.lay .portrait figcaption{font-family:"Steven Hand","Bradley Hand","Segoe Script",cursive;font-variation-settings:normal;font-weight:400;
  font-size:clamp(2.2rem,3.6vw,3.4rem);line-height:1;letter-spacing:0;text-transform:none;opacity:1;
  text-align:center;margin-top:.9rem;transform:rotate(-2deg);position:relative;z-index:8}
/* on a phone a sheet's bottom padding can be shallower than its tear, and the
   last line landed on the torn-off part, out on the wall: room for the tear */
@media (max-width:760px){ .lay-stack .sheet.torn::after{content:"";display:block;height:var(--tear-h,0px);pointer-events:none} }


/* ---- 26 Sept: Zhoosh it up fixes ---- */

/* a film taped at two corners swings from the one that's left when you pull
   the other, the way a sheet does (it just hung there, dead straight) */
.lay-stack .pasteup .vg-item{transform:rotate(calc(var(--hang,0deg) + var(--drop,0deg)));transform-origin:var(--pivot,50% 0);
  transition:transform 1.3s cubic-bezier(.25,1.45,.45,1)}

/* A pile of films: only the one on top shows its caption (the ones underneath
   peeked out from under it in a heap), and the pile's own caption is stuck
   on the pile, across its top edge towards the right, instead of drifting
   below it (Steven, 26 Sept: "more where the arrow is") */
.lay-stack .reel-slide:not(.is-here) figcaption{visibility:hidden}
.lay-stack .pasteup .reel-stage{isolation:isolate}
.lay-stack .pasteup .reel ~ figcaption{position:absolute;z-index:5;top:-.7rem;right:14%;left:auto;margin:0;
  max-width:min(42ch,52%);transform:rotate(1.6deg)}
@media (max-width:760px){ .lay-stack .pasteup .reel ~ figcaption{position:relative;top:auto;right:auto;max-width:none;margin:1rem 0 0 4%;transform:rotate(-1.2deg)} }

/* A film that's playing sits on a torn sheet of white stock: the paper is
   torn, the player never is — nothing may cover or cut a YouTube player.
   Its tape and its caption move off the player while it plays. */
.lay-stack .pasteup{--pm:clamp(16px,2.2vw,30px)}
.lay-stack .rip > .playmount{display:none;position:absolute;inset:calc(-1 * var(--pm));z-index:-1;pointer-events:none}
.lay-stack .rip:has(> .video-embed:not(.own)) > .playmount{display:block}
.lay-stack .playmount > i{position:absolute;inset:0;background:url(tex/fold-white-32.webp) center/cover,var(--paper);background-blend-mode:multiply}
[data-theme="dark"] .lay-stack .playmount > i{background:#ece6d9}
.lay-stack .rip:has(> .video-embed:not(.own))::before{inset:calc(var(--th,28px) - var(--pm)) calc(var(--tw,28px) - var(--pm))}
.lay-stack .rip > .video-embed{box-shadow:none}
.lay-stack .rip:has(> .video-embed:not(.own)) + figcaption{margin-top:calc(var(--pm) + .5rem)}

/* ---- 27 Sept ---- */
/* the era loop is printed on its sheet, so the sheet's own paper and press
   go over it; the card holding the copy sits on the print */

/* ---- Zhoosh it up: Zhoosh and Axel on the phone over "Call me" and "Text me"
   (layers.js; Steven, 28 Sept) — smaller than the other stickers, and cut
   along the bottom so they come up from behind the words ---- */
/* In front of his handwriting, behind the words (Steven, 29 Sept). His hand
   sits over the press, so the link comes up over it too, as one layer with
   the animal at the back of it and the words at the front. The words carry
   their own press, so they still read as printed: the scan's specks as a
   mask (tex/press-ink.webp, the dark press's specks at its .8), so the paper
   shows through the ink where the press broke it up. */
.lay-stack .cta-peeker{position:relative;z-index:10;isolation:isolate}
.lay-stack .cta-ink{position:relative;z-index:1}
/* The mask is 413KB for three words at the foot of the page, and was fetched on
   arrival. layers.js fetches it when the footer is near and adds .cta-near once
   it's in, so the words are never hidden behind a mask that hasn't come (12 Oct). */
.lay-stack.cta-near .cta-ink{-webkit-mask:url(tex/press-ink.webp) 0 0/760px auto repeat;mask:url(tex/press-ink.webp) 0 0/760px auto repeat}
.lay-stack .cta-peek{position:absolute;left:50%;bottom:48%;width:clamp(86px,7vw,116px);height:11em;translate:-50% 0;
  pointer-events:none;z-index:0;clip-path:inset(-60% -40% 0 -40%)}
.lay-stack .cta-peek img{position:absolute;left:0;bottom:0;width:100%;height:auto;transform-origin:50% 100%;
  filter:drop-shadow(2px 4px 5px rgba(27,25,20,.28));
  transform:translateY(104%) rotate(var(--lean,-4deg));transition:transform .45s cubic-bezier(.2,1.45,.4,1)}
.lay-stack .cta-text-me{--lean:5deg}
/* Email me: the two of them at their laptops, so it's wider than it is tall */
.lay-stack .cta-email-me{--lean:-2deg}
.lay-stack .cta-email-me .cta-peek{width:clamp(170px,14vw,236px)}
.lay-stack .cta-peeker:hover .cta-peek img,.lay-stack .cta-peeker:focus-visible .cta-peek img{transform:translateY(3%) rotate(var(--lean,-4deg))}
@media (prefers-reduced-motion:reduce){.lay-stack .cta-peek img{transition:none}}

/* the Studio's inline pictures, torn (layers.js): the film keeps its rounded
   phone corners off — the tear is its edge now */
.lay-stack .rip-inline{width:100%}
/* They're stuck onto the poster, not printed on it, so they sit above the
   sheet's press the way his hand and the stickers do: the sheet's grain doesn't
   cross them (they carry a lighter grain of their own since 30 Nov: .grain), and
   the same black stock in both themes (Steven, 29 Sept: "too
   much grain on dark mode", "the black background feels different").
   The shadow comes from under the paper, pulled in by the whole depth of
   the tear, so no tear can bite past it: pulled in by half, the deep
   bites showed the page inside the shadow as a pale box. */
.lay-stack .sheet .rip-inline{position:relative;z-index:8}
.lay-stack .rip-inline::before{inset:var(--th,24px) var(--tw,24px);
  box-shadow:2px 10px 20px 10px rgba(0,0,0,.3),0 3px 8px 5px rgba(0,0,0,.16)}
/* on his black folded stock, so the backing stands clear of the page it's
   stuck on (Steven, 29 Sept) — the pictures stay clean on top of it */
/* the stock carries its own speck of the press scan, screened, so it reads
   as the same black paper in both themes */
.lay-stack .rip.mounted.rip-inline .mount,[data-theme="dark"] .lay-stack .rip.mounted.rip-inline .mount{
  padding:calc(var(--th,24px) + 4px) calc(var(--tw,24px) + 4px);
  background:url(tex/press-light.webp) 0 0/760px auto repeat,url(tex/fold-black-20.webp) center/cover,#141210;
  background-blend-mode:screen,normal,normal}
.lay-stack .rip-inline video{display:block;width:100%;border-radius:0 !important}
.lay-stack .snap-codes .rip-inline img{border-radius:0}
/* the grids live inside their backing now, so they're styled there */
.lay-stack .gl-grid .mount > div{display:grid;grid-template-columns:repeat(4,1fr);gap:var(--s2)}
.lay-stack .snap-codes .mount > div{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--s2)}
/* the sheet is narrower than the eight copy columns, so the film takes half of it, not three eighths.
   The three codes were stacked beside it, a column twice the film's height with nothing under the
   film (Steven, 12 Oct: "better horizontally placed"). They are one strip across the sheet now,
   under the film and the numbers; the numbers spread down the film's height so nothing is left over. */
@media (min-width:640px){
  .lay-stack .snap > .snap-film{grid-column:span 4}
  .lay-stack .snap > .snap-side{display:contents}
  .lay-stack .snap .snap-stats{grid-column:span 4;align-self:stretch;display:flex;flex-direction:column}
  .lay-stack .snap .snap-stats li{flex:1;display:flex;flex-direction:column;justify-content:center}
  .lay-stack .snap .snap-codes{grid-column:1 / -1}
  .lay-stack .snap-codes .rip-lr{display:grid;grid-template-columns:repeat(3,1fr)}
}
@media (max-width:1023px){ .lay-stack .gl-grid .mount > div{grid-template-columns:repeat(3,1fr)} }
@media (max-width:639px){ .lay-stack .gl-grid .mount > div{grid-template-columns:repeat(2,1fr)} }

/* All business, About: his logo circle behind the portrait, no face, turning
   (build.py; Steven, 28 Sept) */
.disc-face .disc-logo{width:100%;height:100%;display:block;animation:markSpin 36s linear infinite}
@media (prefers-reduced-motion:reduce){.disc-face .disc-logo{animation:none}}

/* his face sticker, knocked into the pile by the cat (paw/about-paw.js) */
.lay-stack .sp-top.balled{visibility:hidden}


/* All business, About: the ring round his logo circle in the masthead's own
   cut of Archivo — without it, it fell back to the regular weight and read
   thinner than his logo (Steven, 29 Sept) */
.disc-face .disc-logo text{font-family:"Archivo","Helvetica Neue",Arial,sans-serif;font-variation-settings:"wght" 800,"wdth" 88;letter-spacing:0}

/* The scraps are stuck on, not printed: the band's paper and press stayed
   put over them while they moved, so they looked like tracing paper sliding
   over grain (Steven, 29 Sept). The stage comes up over the texture; each
   scrap carries its own grain, and the board they turn into is typed crisp. */
.lay .st-scraps .story-stage{z-index:8}
/* on a phone the stage is solid, to cover the steps scrolling under it: lifted,
   it carries the band's own paper so it isn't a flat panel over the scan. It took
   the black stock (--tex-b) from when this band was black; the band is light stock
   now in both themes, and the black scan screened onto pink left it flat (Steven,
   2 Dec). Now the sheet's own: its white stock multiplied, the press screened over,
   both under the scraps so the numbers stay crisp. */
@media (max-width:1023px){
  .lay .st-scraps .story-stage{
    background:url(tex/press-light.webp) 0 0/var(--press,760px) auto repeat,
      var(--tex,var(--tex-w,url(tex/paper-crumpled-a.webp))) center/cover,var(--deep);
    background-blend-mode:screen,multiply}
}

/* ---- the Work dropdown is paper too (Steven, 30 Sept): a slip of the
   masthead's own stock with the press over it, like every printed thing.
   A bit of fun: flat and square-cut. Zhoosh it up: torn along the bottom,
   a touch askew, its shadow following the tear. ---- */
.lay .drop{border:0;isolation:isolate;background:transparent;box-shadow:none}
.lay .drop::before,.lay .drop::after{content:"";position:absolute;inset:0;pointer-events:none}
.lay .drop::before{z-index:-2;background:var(--tex-w,url(tex/fold-white-32.webp)) center/cover,var(--paper);background-blend-mode:multiply}
.lay .drop::after{z-index:1;background:url(tex/press-light.webp) 0 0/760px auto repeat;mix-blend-mode:screen;opacity:.85}
[data-theme="dark"] .lay .drop::before{background:var(--tex-b,url(tex/fold-black-20.webp)) center/cover,var(--paper);background-blend-mode:screen}
[data-theme="dark"] .lay .drop::after{background-image:url(tex/press-dark.webp);mix-blend-mode:multiply;opacity:.72}
.lay-flyer .drop{filter:drop-shadow(2px 5px 0 rgba(0,0,0,.12)) drop-shadow(0 12px 18px rgba(0,0,0,.22))}
.lay-stack .drop{padding-bottom:calc(.45rem + 16px);rotate:-.8deg;transform-origin:20% 0;
  filter:drop-shadow(2px 6px 4px rgba(0,0,0,.35)) drop-shadow(0 14px 18px rgba(0,0,0,.25))}
.lay-stack .drop::before,.lay-stack .drop::after{
  -webkit-mask:var(--blk) top/100% calc(100% - 17px) no-repeat,url(tex/tear-03.png) bottom/100% 18px no-repeat;
  mask:var(--blk) top/100% calc(100% - 17px) no-repeat,url(tex/tear-03.png) bottom/100% 18px no-repeat}


/* ---- 1 Oct: his own films play inside the torn paper ---- */
/* A film on Cloudflare Stream (or kept with the site) is his file in our own
   player, not YouTube's, so nothing forbids tearing it: it plays torn all
   round and taped up, exactly like its still and like the silent loops
   (Steven, 1 Oct). The white stock and the lifted tape above are now only
   for a YouTube player. The browser's own control bar would sit under the
   bottom tear, so the torn player carries a slip of controls just inside it. */
.lay-stack .rip > .video-embed.own{max-height:none}
.lay-stack .video-embed.own.rip-tb video{cursor:pointer}
.lay-stack .filmbar{position:absolute;z-index:2;left:calc(var(--tw,28px) + .5rem);right:calc(var(--tw,28px) + .5rem);bottom:calc(var(--th,28px) + .4rem);
  display:flex;align-items:center;gap:.55rem;padding:.3rem .55rem;color:var(--ink);
  background:url(tex/fold-white-32.webp) center/cover,var(--paper);background-blend-mode:multiply;
  box-shadow:2px 3px 0 rgba(0,0,0,.2),0 6px 12px rgba(0,0,0,.25);transform:rotate(-.4deg);
  font-size:var(--small);font-variant-numeric:tabular-nums;line-height:1;opacity:0;transition:opacity .25s var(--ease)}
[data-theme="dark"] .lay-stack .filmbar{background:var(--paper)}
.lay-stack .video-embed.own:hover .filmbar,.lay-stack .video-embed.own:focus-within .filmbar,.lay-stack .video-embed.own.is-paused .filmbar{opacity:1}
/* on a phone the slip would sit over the picture the whole time: it shows
   for a moment when the film starts and whenever it's paused (tap the film) */
.lay-stack .video-embed.own.is-awake .filmbar{opacity:1}
@media (hover:none){ .lay-stack .video-embed.own:not(.is-paused):not(.is-awake) .filmbar{opacity:0;pointer-events:none} }
.lay-stack .filmbar button{flex:none;display:grid;place-items:center;width:1.9rem;height:1.9rem;padding:0;border:0;background:none;color:inherit;cursor:pointer}
.lay-stack .filmbar button:focus-visible,.lay-stack .filmbar input:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.lay-stack .filmbar svg{width:1.15rem;height:1.15rem;fill:currentColor}
.lay-stack .filmbar input{flex:1;min-width:0;height:1.9rem;margin:0;background:none;accent-color:var(--ink);cursor:pointer}
.lay-stack .filmbar .fb-time{flex:none;min-width:5.6em;text-align:right}
@media (max-width:520px){ .lay-stack .filmbar .fb-time{display:none} }


/* ---- 1 Oct: the masthead on a phone ---- */
/* The sound switch pushed the last control onto a third line on About. One
   line for the links and one for nothing else: tighter gaps, never wrapping. */
@media (max-width:639px){
  .lay .site-header .nav{flex-wrap:nowrap;gap:.4rem clamp(.5rem,3vw,1rem)}
  .lay .site-header .nav > a,.lay .site-header .nav-item > a{white-space:nowrap}
  /* slim on a phone is one line: the mark without the name, then the links.
     It was the full two-line masthead, a fifth of the screen (Steven, 1 Oct). */
  .site-header.slim{flex-wrap:nowrap;align-items:center;column-gap:.6rem}
  .site-header.slim .logo{display:none}
  .site-header.slim .brand-mark{width:2.3rem}
  .site-header.slim .nav{width:auto;flex:1;min-width:0;justify-content:flex-end;gap:.3rem clamp(.4rem,2.4vw,.8rem)}
}

/* slim on a phone, continued: the links, the face and the sound switch; light
   and dark and the palette are a scroll to the top away */
@media (max-width:639px){
  .site-header.slim .theme-toggle,.site-header.slim .palette-toggle,.site-header.slim [data-palette],.site-header.slim .nav > button:not(.sound-toggle):not(.fun-dial-btn){display:none}
  .lay-stack .site-header.sheet.pinned.slim{padding-inline:1rem 2.6rem}
}
/* the game goes over everything the lab adds: the pile's paper balls and the
   hint were sitting on top of it (Steven, 1 Oct) */
.lay .game-veil{z-index:10090}
/* the flyer's headline is fitted to the full width of its box, which on a
   small flyer put its last letter on the paper's edge: a little air either side */
.flyer .lu-headwrap{margin-inline:3cqw}
/* A bit of fun on a phone: the flyer sat over the opening paragraph. The
   headline leaves room for it, the way the taller hero does on Zhoosh it up. */
@media (max-width:760px){ .lay-flyer .hero .kinetic{margin-bottom:60vw} .lay-flyer .flyer{top:38%} }


/* ---- 1 Oct, later: no show between the two mastheads on Zhoosh it up ----
   Steven: the change from the clean masthead to the ripped strip, and the
   strip dropping in, half-showing and going again, felt clumsy on a phone.
   The big masthead simply scrolls away with the page. The strip is there
   when you scroll back up and gone when you scroll down, with no movement
   in between (head.js pins it already tucked). */
.lay-stack .site-header.sheet.pinned{animation:none}
[data-nav="tuck"] .lay-stack .site-header.sheet.pinned.tucked,
[data-nav="slim"] .lay-stack .site-header.sheet.pinned.tucked{transition:none;visibility:hidden}


/* ---- 1 Oct: the fun dial on a phone ---- */
/* It opened from the face's right edge, 290px wide, and ran off the left of
   the screen. On a phone it's as wide as the masthead and hangs from it. */
.fd-tweaks{display:none}
@media (max-width:639px){
  .site-header .fun-dial{position:static}
  .site-header .fun-dial-pop{left:12px;right:12px;width:auto;top:calc(100% - 4px)}
  .lay-stack .site-header.sheet .fun-dial-pop{top:calc(100% - var(--tear-h,20px))}
  /* the switches move into the dial's menu (dial.js) */
  .site-header .nav > .sound-toggle,.site-header .nav > .theme-toggle,.site-header .nav > .pal-toggle,.site-header .nav > .motion-toggle{display:none}
  .fd-tweaks{display:block;margin-top:.5rem;padding-top:.6rem;border-top:2px solid var(--ink)}
  .fd-tweak{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:44px;padding:.2rem .4rem;margin:0;
    appearance:none;border:0;background:none;color:inherit;font:inherit;font-size:.95rem;font-variation-settings:"wght" 650;text-align:left;cursor:pointer}
  .fd-tweak[hidden]{display:none}
  .fd-tweak b{font-variation-settings:"wght" 500;opacity:.7}
  .fd-opt{min-height:44px}
}

/* the dial's menu is paper too, like the Work menu on the printed levels
   (Steven, 1 Oct: "this dropdown seems to have forgotten the texture") */
.lay .fun-dial-pop{isolation:isolate;background:transparent}
.lay .fun-dial-pop::before,.lay .fun-dial-pop::after{content:"";position:absolute;inset:0;pointer-events:none}
.lay .fun-dial-pop::before{z-index:-2;background:var(--tex-w,url(tex/fold-white-32.webp)) center/cover,var(--paper);background-blend-mode:multiply}
.lay .fun-dial-pop::after{z-index:1;background:url(tex/press-light.webp) 0 0/760px auto repeat;mix-blend-mode:screen;opacity:.85}
[data-theme="dark"] .lay .fun-dial-pop::before{background:var(--tex-b,url(tex/fold-black-20.webp)) center/cover,var(--paper);background-blend-mode:screen}
[data-theme="dark"] .lay .fun-dial-pop::after{background-image:url(tex/press-dark.webp);mix-blend-mode:multiply;opacity:.72}

/* The Experience ident's caption slip on a phone: the pill has had a line of
   its own there since 1 Oct (above the words then; beneath them, as at every
   width, since 12 Oct). */
@media (max-width:760px){
  .lay-stack .pasteup[data-hear] figcaption{gap:.7rem;padding:.75em .9em .8em}
  .lay-stack .pasteup[data-hear] figcaption > span{opacity:.85}
}

/* Safari showed a dark hairline along a torn sheet where the solid paper meets
   the torn edge, appearing on one scroll direction and not the other (Steven,
   1 Oct). The two masks overlapped by 1px, which a fraction of a pixel at
   retina scale can eat; they overlap by 3px now. */

/* the blended layers of a sheet far from the window are dropped (layers.js) */
.lay-stack .sheet.far > .paper,.lay-stack .sheet.far > .crease,.lay-stack .sheet.far > .press,.lay-stack .sheet.far > .dirt{visibility:hidden}

/* ?try=lite (trial.js): none of the blended layers at all, to find out whether
   they're what the browser is choking on */
html.try-lite .lay .paper,html.try-lite .lay .crease,html.try-lite .lay .press,html.try-lite .lay .dirt{display:none}

/* The solid part of every torn mask (1 Oct). It was a generated gradient the size of
   the whole sheet, and Safari now and then failed to paint it: the paper vanished while
   its torn edge stayed. A tiny black bitmap, stretched, does the same job. */
:root{--blk:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAAAAADhZOFXAAAADElEQVR42mNgoA4AAABIAAEQRe/SAAAAAElFTkSuQmCC)}

/* Torn sheets, rebuilt (1 Oct): see sheet() in layers.js. The body of each
   layer has no mask. A transparent bottom border the depth of the tear, with
   the background kept out of it, stops the paper where the tear begins while
   the texture is still laid out over the whole sheet, so body and tear line
   up. The flat paper colour runs 3px further, under the tear, so no gap can
   open between the two. The twins (.tw) carry only the small tear mask. */
.lay-stack .sheet.torn.split > .ground:not(.tw),.lay-stack .sheet.torn.split > .paper:not(.tw),.lay-stack .sheet.torn.split > .crease:not(.tw),.lay-stack .sheet.torn.split > .press:not(.tw){
  -webkit-mask:none;mask:none;border-bottom:var(--tear-h) solid transparent;background-origin:border-box;background-clip:padding-box}
.lay-stack .sheet.torn.split > .ground:not(.tw){border-bottom-width:calc(var(--tear-h) - 3px)}
.lay-stack .sheet.torn.split > .tw{-webkit-mask:var(--tear) bottom/100% var(--tear-h) no-repeat;mask:var(--tear) bottom/100% var(--tear-h) no-repeat;
  clip-path:inset(calc(100% - var(--tear-h)) 0 0 0)}

/* the flyer can be taken hold of and moved off the wall (layers.js, 1 Oct) */
.lay .hero > .flyer{cursor:grab;touch-action:pan-y;-webkit-user-select:none;user-select:none}
.lay .hero > .flyer.held{cursor:grabbing}


/* =====================================================================
   BREAKING THE GRID (8 Oct 2026; RULES 41-47)
   The type sits on the grid; the paper doesn't. Every break is a piece of
   paper hung off the grid by a measured amount, in the grid's own units:
   g = a gutter (2u), c = a column and its gutter (5u). Medium, as picked.
   The Hang is in layers.js (the tables) and above (--shift, --tilt).
   ===================================================================== */
/* A single film is centred here as on the other two levels (style.css), so
   this level says nothing about where it sits. It hung to one side and then
   the other until Steven centred it on 12 Oct. What that costs: an Overhang
   on a single film no longer reaches the wall's edge. Its paper is still a
   column wider to one side, so the film is a little bigger, half a column
   off the middle and tilted; photos are what carry past the edge now. */
@media (min-width:640px){
  /* the Overhang: one picture a screen is wider than its sheet by a column,
     toward the nearer edge, tilted 1.5 degrees. It stays taped at its corners
     (layers.js measures it again), covers no copy, and can't leave the screen:
     the most it takes is what the wall has, less a gutter */
  .lay-stack .pasteup.brk-over-r{
    margin-right:calc(-1 * min(var(--u) * 5, (100vw - 100%) / 2 - var(--gutter)));
    rotate:1.5deg}
  .lay-stack .pasteup.brk-over-l{
    margin-left:calc(var(--shift, 0%) - min(var(--u) * 5, (100vw - 100%) / 2 - var(--gutter)));
    rotate:-1.5deg}

  /* the Slip: a pull statement is printed on a slip, like a caption, which
     crosses the label | copy line by a gutter and tilts 1.5 degrees */
  .lay-stack .prose > .pull{
    display:inline-block;max-width:min(24ch,100%);
    margin-bottom:clamp(1.2rem,2.2vw,2rem);   /* it tilts, so its low corner sat on the copy that follows (Steven, 12 Oct) */
    background:var(--pal-b);color:var(--on-deep);padding:.35em .6em .4em;
    rotate:-1.5deg;translate:calc(var(--gutter) * -1) 0;
    box-shadow:2px 4px 0 rgba(0,0,0,.2),0 8px 16px rgba(0,0,0,.25);
    --ink:var(--on-deep);--teal:var(--on-deep);--gold-bright:var(--on-deep)}
  .lay-stack .dark .prose > .pull{background:var(--pal-a)}

  /* (The Stagger stepped the stats off their row until 12 Oct. Steven read it
     as stats that weren't aligned, so they sit on one line again.) */
}

/* the copy never sits at the paper's edge: a sheet's torn or tilted edge takes a few
   pixels off the inside, so its copy gets a quarter unit more room than the margin */
.lay-stack .section.sheet{padding-inline:calc(var(--margin) + var(--s1))}

/* Case 07's Side quests on Zhoosh it up (20 Nov): torn, shadowed and taped up (layers.js) */
.lay-stack .side-quests .sq-shot{position:relative;margin:1.4em 0 1.6em}
.lay-stack .side-quests .sq-shot img{border:0}
.lay-stack .side-quests .sq-shot .tape{z-index:9}

/* Case 07's taped pictures inside a sheet: the Side quests and the two strips (26 Nov). They come
   down like any picture on the wall (rule 31): a pulled tape swings them from the one that's left,
   the last one drops them, and they wait in the pile as a ball. Pulling the tape used to leave the
   picture where it was and put a ball in the pile anyway. They're a layer above the sheet's paper
   and press (z 6-7), so no grain prints on them. Their hole stays a hole: the copy doesn't jump. */
.lay-stack .sheet .sq-taped{position:relative;z-index:8;transform:rotate(var(--drop,0deg));transform-origin:var(--pivot,50% 0);
  transition:transform 1.3s cubic-bezier(.25,1.45,.45,1)}
.lay-stack .sheet .sq-taped.gone{transition:transform 1.4s cubic-bezier(.55,0,.9,.5),opacity .5s 1.05s;
  transform:translateY(110vh) rotate(calc(var(--drop,0deg) * 3)) !important;opacity:0;pointer-events:none}
.lay-stack .sheet .sq-taped.balled{visibility:hidden}
.lay-stack .sq-taped .tape{z-index:9}
/* the strips' own picture styles (style.css: 16:10 crop, white ground, a shadowed box) are for
   the screenshots, not the tape: on the tape they showed its transparent ground as a white box */
.lay-stack .gl-grid .tape{aspect-ratio:auto;object-fit:fill;background:none;box-shadow:none;border-radius:0;height:auto}
.lay-stack .rip-cut > a{display:block}
/* a strip's caption is a slip stuck over its bottom edge, as every picture's is (rule 31) */
.lay-stack .sq-taped figcaption{position:relative;z-index:9;margin:calc(-1 * clamp(1.4rem,2.6vw,2.2rem)) 0 0 clamp(1rem,4%,3rem);
  max-width:min(52ch,78%);padding:.5em .8em .55em;
  background:url(tex/fold-white-32.webp) center/cover,var(--pal-b);background-blend-mode:multiply;
  transform:rotate(-1.4deg);box-shadow:2px 4px 0 rgba(0,0,0,.2),0 8px 16px rgba(0,0,0,.25)}
.lay-stack .dark .sq-taped figcaption{background-color:var(--pal-a)}

/* A block that fades in is a layer of its own until it has, and that layer sits under the
   sheet's paper and press: the grain printed over the torn pictures inside it, then lifted off
   once the fade was done (Steven, 26 Nov: "the textures over the images come and go"). So a
   block with torn pictures in it is simply there, as the sheet unrolls. */
.lay-stack .reveal:has(.rip-inline){opacity:1;transform:none;transition:none}

/* The Studio's grid of guideline pages keeps its columns once it's torn (26 Nov). Torn, the grid
   sits one layer further in, so .gl-grid > div no longer reached it and the twelve pages stacked
   one a row, about 4,500px down the sheet. Case 07's two strips of three stay one picture a row:
   three across, the tear ate most of each picture. */
.lay-stack .gl-grid:not(.route-strip,.font-flow) .rip-lr{display:grid;grid-template-columns:repeat(4,1fr);gap:var(--s2)}
@media (max-width:1023px){ .lay-stack .gl-grid:not(.route-strip,.font-flow) .rip-lr{grid-template-columns:repeat(3,1fr)} }
@media (max-width:639px){ .lay-stack .gl-grid:not(.route-strip,.font-flow) .rip-lr{grid-template-columns:repeat(2,1fr)} }
