/* Consistent, quiet text motion shared by every public page and project detail. */
.text-motion-word {
  display: inline-block;
  will-change: auto;
}

.text-motion-words.is-visible .text-motion-word {
  animation: text-word-enter 680ms cubic-bezier(.2, .72, .2, 1) both;
  animation-delay: calc(var(--text-word-index, 0) * 42ms);
  will-change: transform, opacity;
}

.text-motion-copy.is-visible {
  animation: text-copy-enter 620ms cubic-bezier(.2, .72, .2, 1) both;
}

@keyframes text-word-enter {
  from { opacity: .08; transform: translate3d(0, .34em, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes text-copy-enter {
  from { opacity: .22; transform: translate3d(0, 12px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .text-motion-word,
  .text-motion-copy.is-visible {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    will-change: auto;
  }
}
