/* Shared only by the four customer pages. */

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  ::view-transition-old(root) { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  header .brand-mark { view-transition-name: studio-mark; }
  ::view-transition-old(root) { animation: studio-leave 155ms ease-in both; }
  ::view-transition-new(root) { animation: studio-arrive 310ms cubic-bezier(.22,.77,.2,1) both; }
  ::view-transition-group(studio-mark) { animation-duration: 310ms; }
  .motion-groups :is(.ritual-steps, .about-features).reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .mobile-menu.is-open .nav-link {
    animation: menu-letter 280ms cubic-bezier(.22,.77,.2,1) backwards;
  }
  .mobile-menu .nav-link:nth-child(2) { animation-delay: 25ms; }
  .mobile-menu .nav-link:nth-child(3) { animation-delay: 50ms; }
  .mobile-menu .nav-link:nth-child(4) { animation-delay: 75ms; }
  .mobile-menu .nav-link:nth-child(5) { animation-delay: 100ms; }
  .mobile-menu .nav-link:nth-child(6) { animation-delay: 125ms; }
  .btn:active:not(:disabled) { scale: .985; }
  .studio-play span, .film-nav button { transition: scale 160ms ease-out, background-color 160ms; }
  .studio-play:active span, .film-nav button:active { scale: .94; }
  .time-loading .skeleton::after { animation-iteration-count: 3; }
  .hero-scroll::after { animation-iteration-count: 2; }
  .marquee-track { animation: none; }
  @supports (animation-timeline: view()) {
    .marquee { view-timeline-name: --studio-band; }
    .marquee-track {
      animation: studio-band linear both;
      animation-timeline: --studio-band;
    }
  }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 850px) and (hover: hover) and (pointer: fine) {
  .hero-image-wrap:hover .portrait-stage, .hero-image-wrap[style] .portrait-stage {
    transform: perspective(1000px) rotateX(var(--pitch, 0deg)) rotateY(var(--yaw, 0deg));
  }
  .portrait-stage { transition: transform 280ms cubic-bezier(.2,.75,.2,1); }
  .service-row:hover { padding-left: 0; }
  .service-row .service-thumb { transition: translate 240ms ease-out; }
  .service-row:is(:hover, :focus-within) .service-thumb { translate: 5px 0; }
}
@keyframes studio-leave { to { opacity: 0; } }
@keyframes studio-arrive { from { opacity: 0; transform: translateY(6px); } }
@keyframes menu-letter { from { opacity: .25; transform: translateY(8px); } }
@keyframes studio-band { from { transform: translateX(0); } to { transform: translateX(-14%); } }
