.steps-film, .steps-film-frames { display: none; }
.steps-story[data-scroll-film] {
  height: 235svh;
}
.steps-story[data-scroll-film] .concrete-hero {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 100svh;
  isolation: isolate;
}
.steps-story[data-scroll-film] .concrete-hero-photo,
.steps-story[data-scroll-film] .concrete-hero-copy {
  animation: none;
}
.steps-story[data-scroll-film] .steps-film {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
}
.steps-story[data-scroll-film] .steps-film { z-index: -1; }
.steps-story[data-scroll-film] .concrete-hero-media { z-index: 0; background: transparent; pointer-events: none; }
/* The film fills the whole screen during the story; the paper only appears
   once the hero scrolls away (see the data-film-exit feather below). */
.steps-story[data-scroll-film]:not([data-frames]) .concrete-hero-media { mask-image: none; }
/* Keep the dark vignette steady above the film and the end photo, so it
   doesn't blink when the film hands over to the photo. */
.steps-story[data-scroll-film] .concrete-hero-media::after { z-index: 2; }
.steps-story[data-scroll-film] .concrete-hero-photo { visibility: hidden; }
.steps-story[data-scroll-film] .steps-film video,
.steps-story[data-scroll-film] .steps-film img,
.steps-story[data-scroll-film] .steps-film-frames {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: inherit;
  object-position: inherit;
}
.steps-story[data-scroll-film] .steps-film video { opacity: 0; }
.steps-story[data-scroll-film][data-ready] .steps-film video { opacity: 1; }
/* The real hero copy stays in place for the whole film, so nothing moves when it ends. */
.steps-story[data-scroll-film] .concrete-hero-copy :is(h1, p) {
  text-shadow: 0 1px 6px #181c20, 0 1px 2px #181c2099;
}
@media (max-width: 680px) and (orientation: portrait) {
  .steps-story[data-scroll-film] .steps-film { object-position: 47% 62%; }
}
.steps-story[data-scroll-film] .steps-film-end { opacity: 0; transition: opacity .24s ease; }
.steps-story[data-scroll-film][data-film-ended] .steps-film-end { opacity: 1; }
@supports (height: 100lvh) {
  @media (max-width: 760px) {
    /* Keep the pinned image large enough even as Safari retracts its bars.
       Use the small viewport only for the distance that drives the film. */
    .steps-story[data-scroll-film] { height: calc(100lvh + 135svh); }
    .steps-story[data-scroll-film] .concrete-hero { height: 100lvh; min-height: 100lvh; }
  }
}
.steps-story[data-scroll-film][data-frames] .concrete-hero { background: var(--graphite-deep); }
.steps-story[data-scroll-film][data-frames] .steps-film { mask-image: none; }
.steps-story[data-scroll-film][data-film-exit] .concrete-hero {
  mask-image: linear-gradient(to bottom, #000 calc(100% - var(--steps-feather)), transparent);
}
.steps-story[data-scroll-film][data-frames][data-frame] .steps-film-frames { display: block; }
.steps-story[data-scroll-film] .steps-film-end { z-index: 1; }

.steps-scroll-indicator {
  position: absolute;
  z-index: 3;
  inset-inline: 0;
  bottom: max(clamp(58px, 10svh, 94px), env(safe-area-inset-bottom));
  display: grid;
  justify-items: center;
  gap: 9px;
  color: var(--on-dark);
  font: 600 clamp(.86rem, 1vw, 1rem)/1.2 var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  text-shadow: 0 1px 6px #181c20, 0 1px 2px #181c20;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity .25s ease, visibility 0s linear .25s;
}
.steps-story[data-scroll-film]:not([data-film-ended]) .steps-scroll-indicator {
  visibility: visible;
  opacity: .96;
  transition-delay: 0s;
}
.steps-scroll-track {
  display: block;
  width: clamp(44px, 4vw, 60px);
  height: 2px;
  background: rgb(255 253 249 / 40%);
  box-shadow: 0 1px 3px #181c2066;
}
.steps-scroll-track::after {
  content: "";
  display: block;
  height: 100%;
  background: currentColor;
  transform: scaleX(calc(.14 + .86 * var(--steps-scroll-progress, 0)));
  transform-origin: left;
}
@supports (height: 100lvh) {
  @media (max-width: 760px) {
    .steps-scroll-indicator { bottom: calc(100lvh - 100svh + max(70px, 9svh, env(safe-area-inset-bottom))); }
  }
}
.steps-story[data-scroll-film] .concrete-hero-media::after { transform: translateZ(0); will-change: transform; backface-visibility: hidden; }
