.closing-scene{position:relative;background:#111d15;color:var(--cream);overflow:hidden;isolation:isolate}
.closing-scene>img{display:block;width:100%;height:auto;max-width:none;mask:none;-webkit-mask:none}
.closing-copy{position:absolute;z-index:1;left:6%;top:15%;width:35%;display:flex;flex-direction:column;align-items:flex-start;text-shadow:0 2px 16px #0008}
.closing-copy .scene-name{font:700 clamp(42px,4.5vw,72px)/1.04 var(--serif);letter-spacing:-.015em;margin:22px 0 32px;max-width:430px}
.closing-copy .text-link{font-size:13px}
@media(max-width:700px){
 .closing-scene{height:70svh;min-height:560px;max-height:680px;display:block}
 .closing-scene>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:80% 50%}
 .closing-scene::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(180deg,transparent 48%,#11141630 65%,#11141680 100%)}
 .closing-copy{position:absolute;z-index:2;left:6%;right:6%;top:auto;bottom:32px;width:auto;padding:0;background:none;text-shadow:0 2px 4px #000e,0 3px 14px #000a}
 .closing-copy .scene-name{font-size:43px;max-width:350px;margin:14px 0 22px}
 .closing-copy .text-link{font-size:12px}
}

/* Grade the empty backdrop while keeping the mascot's original pixels. */
@media(min-width:701px){
 .closing-scene::before{content:"";position:absolute;inset:0 auto 0 0;width:40%;pointer-events:none;background:linear-gradient(90deg,#20262e91,transparent);z-index:1}
 .closing-copy{z-index:2}
}

/* Neutralize the pendant lights in place, outside the mascot silhouette. */
.closing-scene > .closing-light-grade{
 position:absolute;inset:0;width:100%;height:auto;
 filter:saturate(.15);
 mask-image:
   radial-gradient(ellipse 4.5% 8% at 56% 4%,#000 62%,transparent),
   radial-gradient(ellipse 11% 19% at 95% 9%,#000 62%,transparent);
 pointer-events:none;
}
@media(max-width:700px){
 .closing-scene{container-type:size}
 .closing-scene > .closing-light-grade{
   inset:50% auto auto 80%;
   width:max(100%,150cqh);
   transform:translate(-80%,-50%);
 }
}

.closing-reveal{position:relative;isolation:isolate}
.closing-reveal .closing-scene{
 position:sticky;
 top:min(0px,calc(100svh - 100vw / 1.5));
}
.closing-reveal footer{position:relative;z-index:3;background:var(--cream)}
.closing-reveal footer::before{
 content:"";position:absolute;inset:auto 0 calc(100% - 2px);
 height:clamp(33px,4vw + 1px,55px);pointer-events:none;
 background:url('/assets/paper-edge-cream.svg') center/100% 100% no-repeat;
}
@media(max-width:700px){
 .closing-reveal .closing-scene{
   top:min(0px,calc(100svh - 54px - clamp(560px,70svh,680px)));
 }
}
@media(prefers-reduced-motion:reduce){
 .closing-reveal .closing-scene{position:relative;top:auto}
}

@media(max-width:700px) and (prefers-reduced-motion:no-preference){
 .closing-reveal .closing-copy{bottom:clamp(68px,14vw,96px)}
}

@media(max-width:600px) and (prefers-reduced-motion:no-preference){
 .closing-reveal .closing-scene{overflow:clip;isolation:auto;transform:translateZ(0)}
 .closing-reveal footer{transform:translateZ(0)}
}
