/* V0.4.9 R6 – Stable Typography Layout.
 * The ORIGINAL heading owns all line breaks, height and position throughout.
 * Only the absolute visual overlay animates; no geometry-changing class is
 * added or removed during the effect or the handover.
 */
html.tx-preflight [data-textify-experiment] {
  position: relative; /* established before first paint, never toggled */
}
/* Hide only the paint of the source text; its layout and markup stay intact. */
html.tx-preflight [data-textify-experiment]:not(.tx-finished) {
  -webkit-text-fill-color: transparent !important;
}
/* Keep the animated letters painted despite the invisible source text. */
html.tx-preflight [data-textify-experiment] .tx-overlay .tx-glyph {
  -webkit-text-fill-color: currentColor !important;
}
html.tx-preflight [data-textify-experiment] .tx-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: clip; /* clips only the animation, NEVER the original heading */
  contain: paint;
}
html.tx-preflight [data-textify-experiment] .tx-glyph {
  position: absolute;
  display: block;
  white-space: pre;
  pointer-events: none;
  opacity: 0;
  transform-origin: center center;
  backface-visibility: hidden;
}
@media (prefers-reduced-motion: reduce) {
  html.tx-preflight [data-textify-experiment] {
    -webkit-text-fill-color: currentColor !important;
  }
  html.tx-preflight [data-textify-experiment] .tx-overlay { display: none !important; }
}
