/* design-loops.css — the films beside the opening line move (design-loops.js).

   A film's loop lies exactly over its still, in the same box and the same
   crop, and takes the still's slow push (refinement.css: 1.07 to 1 over 7 s
   while the film is up), so the only change is that the picture moves. It is
   invisible until a frame of it is on screen, then dissolves in. Without the
   script, or under reduced motion, there is no loop and the stills stay as
   they are. */

.twoshot__shot .loop {
  position: absolute; inset: 0; z-index: 1;
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 50%;
  pointer-events: none;
  /* unseen, it rests small: a <video> is a Largest Contentful Paint candidate
     at its first decoded frame, even at opacity 0, measured at that moment;
     once shown, design-loops.js gives it the still's own push */
  opacity: 0; transform: scale(.5);
  transition: opacity .8s var(--ease);
}
.twoshot__shot .loop.is-on { opacity: 1; }
.twoshot__shot .loop.is-instant { transition: none; }

@media (prefers-reduced-motion: reduce) {
  .twoshot__shot .loop { display: none; }
}
