/* ==========================================================================
   Site-wide title entrance (2026-09-29). JS: js/atimi-heading-reveal.js.
   Word styles are the shared .main-heading-reveal rules in style.css (unscoped).
   This file only removes the older, page-specific title entrances so every
   hero and section title runs the same word reveal and nothing doubles up.
   Loaded site-wide, late (priority 220).
   ========================================================================== */

/* Hero titles: drop the old whole-title fade/rise so only the word reveal plays. */
body:not(.elementor-editor-active) .careers-hero-copy > .elementor-widget-heading,
body:not(.elementor-editor-active) .mark-hero__copy.stagger > .elementor-widget-heading,
html.cs-motion-ready body:not(.elementor-editor-active) .cs-hero .cs-hero-title,
.case-landing-hero-copy > h1{
  opacity:1!important;transform:none!important;animation:none!important;transition:none!important
}

/* Descenders (g, y, p) must not be clipped by the old per-page overflow rules. */
.main-heading-reveal{overflow:visible}

/* Elementor editor: the script does not run there; titles always visible. */
body.elementor-editor-active .main-heading-reveal .heading-reveal-word-inner{opacity:1!important;transform:none!important}

@media (prefers-reduced-motion:reduce){
  .main-heading-reveal .heading-reveal-word-inner{opacity:1!important;transform:none!important;transition:none!important}
}

/* Gradient-text words: re-apply the parent's background-clip:text on the word spans (flagged by the JS). */
.main-heading-reveal .heading-reveal-word--clip,
.main-heading-reveal .heading-reveal-word--clip .heading-reveal-word-inner{background:inherit;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent}

/* Hero titles hidden from first paint until the script has wrapped the words (class set in wp_head, removed by the script, 3s failsafe). */
html.atimi-titles-pending [data-elementor-type="wp-page"] h1{visibility:hidden}

/* Our expertise card titles use the shared word reveal (2026-09-29): drop the old whole-title fade
   (expertiseTitleReveal + the motion-ready hidden state in style.css). Icon, description and CTA keep theirs. */
#services.expertise-current.expertise-motion-ready .expertise-card.expertise-card .expertise-title.elementor-widget,
.expertise-current.expertise-motion-ready .expertise-card.expertise-card .expertise-title.elementor-widget{opacity:1!important;transform:none!important;animation:none!important;filter:none!important;clip-path:none!important}
