/**
 * Govind Narayan Art Gallery — animation.css
 *
 * Support styles for the GSAP modules in assets/js/animation.js.
 * Nothing here sets layout or positioning — that stays in style.css.
 * This file only holds the small, animation-specific hints/rules that
 * a given module needs in order to run smoothly.
 *
 * Loaded by inc/animation-settings.php (gnag_animation_enqueue), after
 * style.css, only when at least one animation module is enabled.
 *
 * Modules:
 *   9. Hero Parallax — scroll + pointer parallax on the home page hero image
 */

/* ── MODULE 9: Hero Parallax ─────────────────────────────────────────────
   GSAP fully owns the transform on the image and on each hero text layer
   (buffer scale + scroll yPercent + pointer x/y, all set in
   initHeroParallax()). Every element it moves gets the same rendering
   hints so edges/text stay crisp instead of going jagged or blurry once
   promoted to a GPU compositor layer for the animation:
     • will-change / backface-visibility — pre-promote the layer and
       avoid the hairline-seam/pixelation some browsers show on a moving
       element's edges.
     • -webkit-font-smoothing / -moz-osx-font-smoothing — keep the text
       layers anti-aliased instead of blurry once they're on their own
       compositor layer.
   Darkening for the image lives in style.css as a static overlay, not a
   `filter` here — a filter on an animated element causes its own, worse
   pixelation artifacts (see style.css comment). */
.hero-bg-img img,
.hero-title,
.eyebrow,
.hero-sub,
.hero-cta-row {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
}
.hero-title,
.eyebrow,
.hero-sub,
.hero-cta-row {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
