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

.motion-letter {
  display: inline-block;
  position: relative;
}

/* Reserve the normal advance even when the visible letter grows heavier. */
.motion-letter::before {
  content: attr(data-glyph);
  visibility: hidden;
}

.motion-letter > span {
  position: absolute;
  inset: 0 auto auto 0;
  font-weight: var(--letter-weight, inherit);
}

@media (prefers-reduced-motion: no-preference) {
  .motion-letter > span {
    transition: font-weight 220ms ease-out;
  }

  .site-dropdown:not([hidden]),
  .site-menu.is-mobile-open {
    animation: menu-arrive 220ms cubic-bezier(.2,.75,.25,1) both;
  }

  @keyframes menu-arrive {
    from { opacity: 0; translate: 0 -6px; }
    to   { opacity: 1; translate: 0 0; }
  }

  :is(.site-contact, .inner-button, .cto-mobile-link, .inner-contact-card, .inner-text-link) span[aria-hidden="true"] {
    transition: transform 230ms cubic-bezier(.2,.8,.22,1);
  }

  @media (hover: hover) and (pointer: fine) {
    :is(.site-contact, .inner-button, .cto-mobile-link, .inner-contact-card, .inner-text-link):hover span[aria-hidden="true"] {
      transform: translate(2px,-2px);
    }
  }

  :is(.site-contact, .inner-button, .cto-mobile-link, .inner-contact-card, .inner-text-link):focus-visible span[aria-hidden="true"] {
    transform: translate(2px,-2px);
  }

  #cto-site-mockup .cto-faq-list summary::after {
    transition: background-size 220ms ease-out, border-color 200ms ease;
  }

  .cto-faq-list details[open] > .cto-faq-answer {
    animation: answer-arrive 300ms ease-out;
  }

  @keyframes answer-arrive {
    from { opacity: .15; translate: 0 -4px; }
    to   { opacity: 1; translate: 0 0; }
  }

  @supports (interpolate-size: allow-keywords) and selector(details::details-content) {
    .cto-faq-list details { interpolate-size: allow-keywords; }
    .cto-faq-list details::details-content {
      block-size: 0;
      overflow: clip;
      transition: block-size 340ms cubic-bezier(.25,.8,.25,1), content-visibility 340ms allow-discrete;
    }
    .cto-faq-list details[open]::details-content { block-size: auto; }
  }
}

@media print {
  .motion-letter::before { display: none; }
  .motion-letter > span { position: static; }
  .motion-read-word { opacity: 1 !important; }
}
