/* Scroll motion for the Star Wars collection pages, carried over from the MOTU site and
   genxmichael.com. motion-20261120.js marks each piece with data-rv="<kind>"
   and adds .is-in when it enters the screen. Each kind only describes where the
   piece starts; it always lands on its own normal style. The keyframes use the
   translate, rotate and scale properties, not transform, so a piece's own
   transform (hover lifts, tilted badges) is left alone. Nothing here applies
   when the visitor has Reduce Motion turned on, or if the script does not run. */
@media (prefers-reduced-motion: no-preference) {
  [data-rv]:not(.is-in) {
    opacity: 0;
  }

  [data-rv].is-in {
    animation-duration: var(--rv-dur, 700ms);
    animation-delay: var(--rv-delay, 0ms);
    animation-timing-function: cubic-bezier(0.2, 0.7, 0.2, 1);
    animation-fill-mode: backwards;
  }

  [data-rv="fade"].is-in {
    animation-name: rv-fade;
  }

  [data-rv="rise"].is-in {
    animation-name: rv-rise;
  }

  [data-rv="settle"].is-in {
    animation-name: rv-settle;
  }

  [data-rv="drop"].is-in {
    animation-name: rv-drop;
    animation-timing-function: cubic-bezier(0.2, 1.25, 0.35, 1);
  }

  [data-rv="develop"].is-in {
    animation-name: rv-develop;
    animation-timing-function: cubic-bezier(0.3, 0.5, 0.2, 1);
  }
}

@media print {
  [data-rv] {
    opacity: 1 !important;
    animation: none !important;
  }
}

@keyframes rv-fade {
  from {
    opacity: 0;
  }
}

@keyframes rv-rise {
  from {
    opacity: 0;
    translate: 0 22px;
  }
}

@keyframes rv-settle {
  from {
    opacity: 0;
    scale: 1.04;
  }
}

@keyframes rv-drop {
  from {
    opacity: 0;
    translate: 0 -30px;
    rotate: -10deg;
    scale: 1.06;
  }
}

@keyframes rv-develop {
  from {
    opacity: 0;
    filter: grayscale(1) brightness(1.9) contrast(0.6) blur(7px);
  }
  35% {
    opacity: 1;
  }
}
