/* Three cinematic chapters, deliberately separated from the artwork. */
.scroll-film{height:285vh;background:#03090c;isolation:isolate}
.film-sticky{display:block;height:100svh;min-height:650px;position:sticky;top:0;overflow:hidden;perspective:none;background:#03090c}
.film-sticky:before{content:'';position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(90deg,transparent 58%,#a7f5de13 58.08%,transparent 58.16%);opacity:.55}
.film-sticky:after{content:'';position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(180deg,#03090cbd 0%,transparent 18%,transparent 83%,#03090cd9 100%)}
.film-art{position:absolute;z-index:0;inset:-2%;background-image:linear-gradient(90deg,#03090cff 0%,#03090cf8 27%,#03090cc9 39%,#03090c08 67%,#03090c12 100%),url('assets/film-arch.webp');background-repeat:no-repeat;background-size:cover;background-position:center center;will-change:transform;transform-origin:70% 50%;filter:saturate(1.05);transition:transform .14s linear}
.film-copy{position:absolute;z-index:3;inset:0;display:block;pointer-events:none}
.film-chapter{display:none;position:absolute;top:50%;left:max(5.1vw,52px);width:min(625px,49vw);opacity:1;transform:translateY(-50%);text-align:left}
.film-chapter.is-current{display:block;animation:chapter-appear .6s cubic-bezier(.16,1,.3,1) both}
.film-chapter:nth-child(2),.film-chapter:nth-child(3){text-align:left}
.film-chapter:nth-child(2) p,.film-chapter:nth-child(3) p{margin-left:0;margin-inline:0}
.film-chapter .overline{font-size:.72rem;color:#e5c4a0;letter-spacing:.24em;font-weight:700;text-transform:uppercase}
.film-chapter h2{font-size:clamp(4rem,7.4vw,8.5rem);line-height:.96;letter-spacing:-.08em;font-weight:600;margin:27px 0 29px;text-shadow:0 12px 50px #01070bc9}
.film-chapter h2 em{font-weight:500;color:#b5f6e5}
.film-chapter p{font-size:clamp(1.04rem,1.35vw,1.22rem);max-width:455px;line-height:1.75;color:#c0d0cf;text-shadow:0 6px 25px #010707}
.film-counter{z-index:5;left:52px;bottom:40px;color:#c0d1cd;font-size:.68rem;letter-spacing:.19em}
.film-counter b{color:#b4fae7}
.film-side{z-index:5;right:34px;top:49%;color:#bad0ca;font-size:.64rem;letter-spacing:.19em}
.film-progress{position:absolute;z-index:5;right:25px;top:40%;height:130px;width:2px;background:#b8f3df30}
.film-progress span{position:absolute;top:0;left:0;width:100%;height:3%;background:#c9faea;box-shadow:0 0 13px #86edd1}
@keyframes chapter-appear{from{opacity:0;transform:translateY(calc(-50% + 25px))}to{opacity:1;transform:translateY(-50%)}}

@media(max-width:1100px){
  .film-chapter{width:min(520px,50vw)}
  .film-chapter h2{font-size:clamp(3.7rem,7.1vw,6.8rem)}
  .film-art{background-position:55% center}
}
@media(max-width:760px){
  .scroll-film{height:255vh}
  .film-sticky{height:100svh;min-height:0}
  .film-sticky:before{display:none}
  .film-sticky:after{background:linear-gradient(0deg,#03090c 3%,#03090cdb 26%,#03090c7a 50%,transparent 78%,#03090c5d 100%)}
  .film-art{inset:0;background-image:linear-gradient(0deg,#03090c 0%,#03090c71 40%,#03090c24 85%),url('assets/film-arch.webp');background-size:cover,auto 76%;background-position:center,65% 3%;opacity:.9;filter:saturate(.98)}
  .film-chapter{top:auto;bottom:16%;left:22px;width:calc(100% - 44px);transform:none}
  .film-chapter.is-current{animation:chapter-mobile-appear .6s cubic-bezier(.16,1,.3,1) both}
  .film-chapter h2{font-size:clamp(3.1rem,12.5vw,5.8rem);line-height:.97;margin:20px 0 20px}
  .film-chapter p{font-size:1rem;line-height:1.62;max-width:385px}
  .film-chapter .overline{font-size:.62rem;letter-spacing:.18em}
  .film-counter{left:22px;bottom:25px;font-size:.61rem}
  .film-progress{right:15px;top:38%;height:80px}
  .film-side{right:27px;top:49%;font-size:.56rem;opacity:.65}
  @keyframes chapter-mobile-appear{from{opacity:0;transform:translateY(23px)}to{opacity:1;transform:none}}
}
@media(max-width:380px){.film-chapter h2{font-size:3rem}.film-chapter{bottom:18%}.film-side{display:none}}
@media(prefers-reduced-motion:reduce){
  .scroll-film{height:auto}
  .film-sticky{position:relative;height:auto;min-height:760px}
  .film-art{transform:none!important;transition:none!important}
  .film-chapter,.film-chapter:first-child{display:none}
  .film-chapter:first-child{display:block;opacity:1;visibility:visible;transform:translateY(-50%);animation:none}
  .film-progress{display:none}
  .film-chapter.is-current{animation:none}
}
