/* Entrance, scroll reveal, hover, character reveal */

.wordmark .mark {
  animation: mark-in 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.wordmark-type {
  animation: rise 0.7s 0.12s both;
}

.hero-fig,
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--d, 0s);
}

.hero-fig.is-visible,
.hero-fig.visible,
.reveal.is-visible,
.reveal.visible {
  opacity: 1;
  transform: none;
}

.word {
  display: inline-block;
  white-space: nowrap;
}

.char {
  display: inline-block;
  animation: char-in 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.char-space {
  white-space: pre;
}

.frame img,
.hero-fig img,
.yoga-fig img {
  transition: transform 0.25s ease;
}

.frame:hover img,
.hero-fig:hover img,
.yoga-fig:hover img {
  transform: scale(1.04);
}

.btn,
.dock-link,
.toc a,
.footer-links a {
  transition: color 0.2s ease, background 0.2s ease;
}

.btn::after {
  transition: transform 0.45s ease;
}

.marquee-track {
  animation: ticker 42s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes mark-in {
  from { opacity: 0; clip-path: inset(0 100% 0 0); }
  to { opacity: 1; clip-path: inset(0 0 0 0); }
}

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

@keyframes char-in {
  from { opacity: 0; transform: translateY(0.45em); }
  to { opacity: 1; transform: none; }
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .hero-fig,
  .char {
    opacity: 1;
    transform: none;
  }
}
