/* The text remains in its line boxes. Only the ink settles. */
body [data-title-motion],
body [data-title-static] {
  opacity: 1;
  transform: none;
  animation: none;
}

/* Preserve the long, single-word masthead when the heading scale would clip it. */
@media (max-width: 560px) {
  #tx-hero h1[data-title-motion] { --type-h1: clamp(1.5rem, 8vw, 2.75rem); }
}

@media (prefers-reduced-motion: no-preference) {
  [data-title-motion="opening"] > .public-title-part,
  [data-title-motion="view"][data-title-entering] > .public-title-part {
    position: relative;
    animation: public-title-settle var(--armoneey-response, 320ms cubic-bezier(.22,.68,.23,1)) both;
  }

  [data-title-motion] > .public-title-part:nth-child(2) {
    animation-delay: 70ms;
  }

  body [data-title-rule] {
    transform-origin: left center;
    animation: public-title-rule var(--armoneey-response, 320ms cubic-bezier(.22,.68,.23,1)) 85ms both;
  }
}

@media (forced-colors: active) {
  [data-title-motion="opening"] > .public-title-part,
  [data-title-motion="view"][data-title-entering] > .public-title-part,
  body [data-title-static][data-title-rule] {
    animation: none;
  }
}

@keyframes public-title-settle {
  from { inset-block-start: clamp(2px, .12em, 6px); }
  to { inset-block-start: 0; }
}

@keyframes public-title-rule {
  from { transform: scaleX(.9); }
  to { transform: scaleX(1); }
}
