/* V18 — optional motion media within the three-part ritual. */
.sr-ritual__rail article::before {
  z-index: -3;
  opacity: 1;
  transition: opacity .28s ease, transform .9s cubic-bezier(.2,.75,.25,1), filter .5s ease;
}

.sr-ritual__motion {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  pointer-events: none;
  opacity: 0;
  filter: saturate(.85);
  transform: scale(1.04);
  transition: opacity .32s ease, transform .9s cubic-bezier(.2,.75,.25,1), filter .5s ease;
}

.sr-ritual__rail article.is-motion-playing::before { opacity: 0; }

.sr-ritual__rail article.is-motion-playing .sr-ritual__motion {
  opacity: 1;
  filter: saturate(1.05);
  transform: scale(1);
}

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