/* Inactive chapters must remove descendants from rendering, even explicit visible children. */
.layered-record[hidden]{display:none!important}
.sound-message{position:absolute;right:55px;white-space:nowrap;font:10px/1.3 Arial,sans-serif;letter-spacing:.02em;background:#000;color:#ddd;padding:7px 9px;border-radius:3px;pointer-events:none}
.sound-message:empty{display:none}
#film{height:100svh;min-height:0;padding:calc(88px + env(safe-area-inset-top)) 5vw calc(108px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:18px}
#film .screen-heading{flex:none}
#film .screen-heading .eyebrow{font-size:8px}
#film .screen-heading h1{font-size:clamp(30px,5.5svh,64px);line-height:.9;margin:10px 0}
#film .screen-heading h1 br{display:none}
#film .screen-heading p{font-size:11px;margin:8px 0 0;line-height:1.4}
#film .collage{flex:1;min-height:0;width:92%;height:auto;margin:0 auto;position:relative}
#film .collage .show:nth-child(n){width:24%;height:29%;left:var(--x);top:var(--y);transform:rotate(var(--tilt,-1deg));right:auto;bottom:auto}
#film .show:nth-child(1){--x:0%;--y:1%;--tilt:-2deg}#film .show:nth-child(2){--x:25%;--y:3%;--tilt:1deg}
#film .show:nth-child(3){--x:50%;--y:0%;--tilt:-1deg}#film .show:nth-child(4){--x:75%;--y:4%;--tilt:2deg}
#film .show:nth-child(5){--x:2%;--y:35%;--tilt:1deg}#film .show:nth-child(6){--x:27%;--y:33%;--tilt:-2deg}
#film .show:nth-child(7){--x:52%;--y:35%;--tilt:1deg}#film .show:nth-child(8){--x:76%;--y:37%;--tilt:-1deg}
#film .show:nth-child(9){--x:20%;--y:69%;--tilt:-1deg}#film .show:nth-child(10){--x:47%;--y:68%;--tilt:2deg}
#film .show figcaption{font-size:10px;line-height:1.15;padding:15px 7px 5px}
@media(max-width:700px){
 #film{padding-left:22px;padding-right:22px;gap:12px}
 #film .screen-heading h1{font-size:clamp(27px,5svh,43px)}
 #film .collage{width:97%}
 #film .collage .show:nth-child(n){width:49%;height:17.5%;left:0;top:var(--m-y);transform:rotate(-1deg)}
 #film .collage .show:nth-child(2n){left:50%;transform:rotate(1deg)}
 #film .show:nth-child(1),#film .show:nth-child(2){--m-y:1%}
 #film .show:nth-child(3),#film .show:nth-child(4){--m-y:21%}
 #film .show:nth-child(5),#film .show:nth-child(6){--m-y:41%}
 #film .show:nth-child(7),#film .show:nth-child(8){--m-y:61%}
 #film .show:nth-child(9),#film .show:nth-child(10){--m-y:81%}
 #film .show figcaption{font-size:9px;line-height:1.15;padding:12px 5px 4px}
}
/* Preserve readable access for zoomed text / unusually short landscape screens. */
@media(max-height:480px){#film{height:auto;min-height:100svh}#film .collage{flex:none;height:300px}}

@media(prefers-reduced-motion:reduce){.layered-record{transform:none!important}}
