.water-canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; }
.cinema .hero-topline, .cinema .cinema-title, .cinema .hero-bottom { pointer-events: none; }
.cinema .cinema-title .text-link { pointer-events: auto; }
.water-error { position:absolute; left:50%; bottom:40px; transform:translateX(-50%); z-index:5; }

/* The canvas stays in place as the lower edge of the hero closes upward. */
.cinema .cinema-story { height: 140svh; }
.cinema .cinema-stage { position: relative; isolation: isolate; }
.cinema .hero-art {
  position: fixed;
  inset: 0;
  height: 100svh;
  clip-path: inset(0 0 calc(var(--closure, 0) * 100%) 0);
  transition: none;
  will-change: clip-path;
}
.cinema .hero-art:after {
  background: #000;
  opacity: calc(.08 + var(--closing-progress, 0) * .72);
}
.cinema .cinema-title { transform: none; opacity: 1; transition: none; }

/* Feather the closing edge while the scroll spring eases through direction changes. */
.cinema .hero-art {
  mask-image: linear-gradient(to bottom, #000 0, #000 max(0px, calc((1 - var(--closure, 0)) * 100% - var(--closure-feather, 0px))), transparent calc((1 - var(--closure, 0)) * 100%));
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 max(0px, calc((1 - var(--closure, 0)) * 100% - var(--closure-feather, 0px))), transparent calc((1 - var(--closure, 0)) * 100%));
}
@media (prefers-reduced-motion: reduce) {
  .cinema .hero-art { mask-image: none; -webkit-mask-image: none; }
}



/* The final scene belongs to the bottom of the page, and follows scroll position. */
.cinema-ending { position: relative; height: 260svh; background: #030303; }
.ending-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.ending-canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; }
