/* A synchronous JS opt-in gates the first paint. Unenhanced headings remain visible. */
@media screen and (prefers-reduced-motion: no-preference) {
  html[data-headline-pending] main > :is(.homehero, .pagehero, .sub-hero):first-child h1 {
    clip-path: inset(0 100% 0 0);
  }
  ::highlight(expression-headline-remainder) {
    color: transparent;
    text-shadow: none;
  }
  /* A relative containing block keeps the caret aligned when the reader scrolls.
     The shared reel styles explicitly position their h1 as static. */
  main h1[data-headline-cursor] { position: relative !important; }
  main h1[data-headline-cursor]::after {
    content: "";
    pointer-events: none;
    position: absolute;
    inset: 0 auto auto 0;
    width: max(6px, .18em);
    height: max(6px, .18em);
    background: currentColor;
    transform: translate(var(--headline-cursor-x), var(--headline-cursor-y));
    animation: headline-caret .84s steps(1, end) infinite;
  }
}
@keyframes headline-caret {
  0%, 100% { opacity: 1; }
  55% { opacity: 0; }
}
