/*
 * Creative-world typography motion.
 *
 * Every transform lives on a generated child, leaving the authored section
 * timelines free to move their parent surfaces. Text remains readable without
 * JavaScript and reduced-motion visitors receive the final state immediately.
 */
html[data-site-mode="creative"] .text-motion-mask {
  display: inline-block;
  overflow: clip;
  padding-block: .08em;
  margin-block: -.08em;
  vertical-align: bottom;
}

html[data-site-mode="creative"] .text-motion-word,
html[data-site-mode="creative"] .text-motion-copy-inner {
  display: inline-block;
  will-change: transform, opacity, filter;
}

html[data-site-mode="creative"] [data-text-motion="copy"] {
  overflow: clip;
}

html[data-site-mode="creative"] [data-text-motion="interactive"] {
  cursor: inherit;
}

.text-motion-accessible {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .text-motion-word,
  .text-motion-copy-inner {
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
  }
}
