/* ============================================================
   BUILD SEQUENCE — full-bleed image chapters

   The core device: each stage of the build is a full-bleed image with
   a caption block over it. Photography is the structure.
   ============================================================ */

.chapter{position:relative;min-height:clamp(440px,78vh,760px);
  display:flex;align-items:flex-end;overflow:hidden}
.chapter-scrim{position:absolute;inset:0;z-index:1;pointer-events:none;
  background:linear-gradient(180deg,rgba(21,22,22,.15) 0%,rgba(21,22,22,.28) 45%,rgba(21,22,22,.92) 100%)}
.chapter-in{position:relative;z-index:2;width:100%;padding-block:clamp(2rem,5vh,3.4rem)}
.chapter h2{max-width:15ch}
.chapter .lede{max-width:42ch;margin:.9rem 0 0}
.chapter-media{position:absolute;inset:0;z-index:0;will-change:transform}

/* Katie asked for "selective black-and-white photography". Applied to the
   sequence imagery only; the hero film stays in colour. Grayscale is
   applied via CSS, not baked into the files, so a colour version is one
   line away. (Revision pass, folded in.) */
.chapter-media img{
  width:100%;height:100%;object-fit:cover;object-position:center 62%;
  filter:grayscale(1) contrast(1.06);
}

@media(max-width:640px){
  .chapter{min-height:clamp(400px,68vh,560px)}
}

@media (prefers-reduced-motion:reduce){
  /* kills the JS parallax offset, which sets an inline transform */
  .chapter-media{transform:none !important}
}
