/* Word-level motion preserves layout and stays independent of letter entrances. */
main .heading-word {
  display: inline-block;
  position: relative;
  transform-origin: center;
  transition: transform 260ms cubic-bezier(.2,.7,.2,1), color 180ms ease;
}
@media (hover: hover) and (pointer: fine) {
  main :is(h1,h2):not(.eyebrow):not(.section-label):not(.page-kicker):not(.ledger-project-index) .heading-word:hover {
    z-index: 1;
    transform: translateY(-.025em) scale(1.045);
    color: var(--cyan) !important;
    background: none !important;
    -webkit-text-fill-color: currentColor !important;
  }
  main .heading-word:hover .motion-letter {
    color: inherit !important;
    background: none !important;
    -webkit-text-fill-color: currentColor !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  main .heading-word { transition: none; }
  main .heading-word:hover { transform: none !important; }
}

/* Section labels remain static, including any wrappers restored from an older tab. */
main :is(.eyebrow,.section-label,.page-kicker,.ledger-project-index) .heading-word,
main :is(.eyebrow,.section-label,.page-kicker,.ledger-project-index) .heading-word:hover {
  transform: none !important;
  transition: none;
  color: inherit !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
}
