/* Everything that moves on the start page. Visitors who ask for less motion get none of it. */

@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] {
    transform: translateY(105%);
    animation: rise var(--t-reveal) var(--ease-expo) 150ms forwards;
  }

  .js .mask + .mask [data-rise] {
    animation-delay: 260ms;
  }

  .js .hero-sentence, .js .hero-side {
    opacity: 0;
    animation: fade-up 700ms var(--ease-out) 520ms forwards;
  }

  .js .door-sign.is-swinging {
    animation: sway 2000ms ease-in-out;
  }

  .js .party-sticker:not([hidden]) {
    animation: stick 500ms var(--ease-out) both;
  }

  .js [data-glare].is-lit .showcase-glare {
    animation: glare 1600ms var(--ease-in-out) 700ms both;
  }

}

@keyframes rise {
  to {
    transform: none;
  }

}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: none;
  }

}

@keyframes sway {
  0% {
    rotate: 0deg;
  }

  22% {
    rotate: 2.4deg;
  }

  48% {
    rotate: -1.5deg;
  }

  74% {
    rotate: 0.6deg;
  }

  100% {
    rotate: 0deg;
  }

}

@keyframes glare {
  from {
    transform: translateX(-150%) skewX(-18deg);
  }

  to {
    transform: translateX(650%) skewX(-18deg);
  }

}

@keyframes stick {
  from {
    opacity: 0;
    scale: 1.3;
  }

  to {
    opacity: 1;
    scale: 1;
  }

}
