/* Motion is opt-in. Content keeps its normal layout before JavaScript runs. */
@media (prefers-reduced-motion: no-preference) {
  .main-topic .motion .banner-man {
    translate: var(--pointer-x, 0px) calc(var(--pointer-y, 0px) + var(--scroll-depth, 0px));
  }

  .main-topic .motion .banner-wave {
    translate: calc(-1 * var(--pointer-x, 0px)) calc(-0.55 * var(--scroll-depth, 0px) - var(--pointer-y, 0px));
  }

  .home-enter {
    animation: home-enter 580ms cubic-bezier(.2,.75,.25,1) var(--entrance-delay, 0ms) backwards;
  }

  .inoti-about-top { --entrance-x: 20px; }
  .inoti-about-bottom { --entrance-x: -20px; }
  [dir="rtl"] .inoti-about-top { --entrance-x: -20px; }
  [dir="rtl"] .inoti-about-bottom { --entrance-x: 20px; }

  .home-enter:focus-within {
    animation: none;
  }

  @keyframes home-enter {
    from { opacity: .35; translate: var(--entrance-x, 0px) 24px; }
    to   { opacity: 1; translate: 0 0; }
  }
}

@media (prefers-reduced-motion: reduce) {
  .main-topic .motion .circle1,
  .main-topic .motion .mini-circles {
    animation: none;
  }
}
