@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0); opacity: 0.35; }
  50% { transform: translate3d(0, -8px, 0); opacity: 0.75; }
}

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

.rise {
  animation: rise 0.8s ease both;
}

.hero__copy .rise:nth-child(2) { animation-delay: 0.08s; }
.hero__copy .rise:nth-child(3) { animation-delay: 0.16s; }
.hero__copy .rise:nth-child(4) { animation-delay: 0.24s; }
.hero__copy .rise:nth-child(5) { animation-delay: 0.32s; }

.marquee__track {
  animation: marquee 36s linear infinite;
}

.hero__logo {
  animation: float 7.5s ease-in-out infinite;
}

.particle {
  animation: drift 6.5s ease-in-out infinite;
}

.particle--2 { animation-delay: -1.4s; }
.particle--3 { animation-delay: -2.6s; }
.particle--4 { animation-delay: -3.5s; }
.particle--5 { animation-delay: -4.4s; }

.ring--a {
  animation: spin-slow 48s linear infinite;
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: calc(var(--d, 0) * 70ms);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.js .problem-card.reveal.is-visible:hover,
.js .service-card.reveal.is-visible:hover,
.js .diff.reveal.is-visible:hover {
  transform: translateY(-4px);
}

.timeline::before,
.nav,
.nav-toggle__icon span,
.service-card::before,
.project__overlay,
.art,
.text-link::after,
.nav__link::after {
  transition-duration: 0.45s;
  transition-timing-function: ease;
  transition-property: transform, opacity, visibility;
}

.timeline::before {
  transition: transform 1.15s ease;
}

.carousel__track {
  transition: transform 0.45s ease;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal,
  .rise,
  .js .problem-card.reveal.is-visible:hover,
  .js .service-card.reveal.is-visible:hover,
  .js .diff.reveal.is-visible:hover {
    opacity: 1;
    transform: none;
  }

  .timeline::before,
  .timeline.is-visible::before {
    transform: none;
  }

  .marquee__viewport {
    overflow: visible;
  }

  .marquee__track {
    width: auto;
    flex-wrap: wrap;
    justify-content: center;
    transform: none;
  }

  .marquee__group:last-child {
    display: none;
  }

  .marquee__group {
    flex-wrap: wrap;
    justify-content: center;
    width: min(100% - 2rem, 70rem);
    margin-inline: auto;
    white-space: normal;
  }
}
