/* MUNDU Homepage-2 / H02 — noticeable single-run Hero entrance.
   Supersedes H01 in the SAME files; no new stylesheet/duplicate animation engine.
   Deliberately does not alter typography, colors, sizing, backgrounds or button hover. */
@media (prefers-reduced-motion: no-preference) {
  /* Existing H01 subtle scroll-depth effect, unchanged. */
  #top.hero .hero-media img,
  #top.hero .hero-media video {
    transform: translate3d(0, var(--h01-media-y, 0px), 0) scale(1.075);
    transform-origin: center center;
    backface-visibility: hidden;
  }
  #top.hero .hero-inner { translate: 0 var(--h01-content-y, 0px); }

  /* JS adds this state ONCE. CSS animations remain filled after finishing.
     We NEVER remove and re-add the class, avoiding replay/flicker. */
  #top.hero.h02-intro-once .hero-eyebrow {
    animation: h02-eyebrow 650ms cubic-bezier(.22,1,.36,1) 100ms both !important;
  }
  #top.hero.h02-intro-once #hero-heading {
    animation: h02-heading-left 1320ms cubic-bezier(.16,1,.3,1) 300ms both !important;
  }
  #top.hero.h02-intro-once .hero-desc {
    animation: h02-description 1020ms cubic-bezier(.22,1,.36,1) 1450ms both !important;
  }
  #top.hero.h02-intro-once .hero-actions {
    animation: h02-buttons-up 1080ms cubic-bezier(.16,1,.3,1) 2250ms both !important;
  }
  /* Don't animate footer a second time; it has its own established layout. */
  #top.hero.h02-intro-once .hero-footer { animation: none !important; }

  @keyframes h02-eyebrow {
    0% { opacity: 0; transform: translate3d(-36px,0,0); filter: blur(2px); }
    100% { opacity: 1; transform: translate3d(0,0,0); filter: blur(0); }
  }
  @keyframes h02-heading-left {
    0% { opacity: 0; transform: translate3d(-128px,0,0); filter: blur(5px); }
    55% { opacity: .95; filter: blur(0); }
    100% { opacity: 1; transform: translate3d(0,0,0); filter: blur(0); }
  }
  @keyframes h02-description {
    0% { opacity: 0; transform: translate3d(0,19px,0); }
    100% { opacity: 1; transform: translate3d(0,0,0); }
  }
  @keyframes h02-buttons-up {
    0% { opacity: 0; transform: translate3d(0,76px,0); }
    100% { opacity: 1; transform: translate3d(0,0,0); }
  }
}

@media (max-width: 767px), (pointer: coarse) {
  #top.hero .hero-inner { translate: 0 0 !important; }
  #top.hero .hero-media img,
  #top.hero .hero-media video { transform: none !important; }
  /* On phones use a shorter distance to prevent horizontal clipping. */
  @keyframes h02-heading-left {
    0% {opacity:0;transform:translate3d(-45px,0,0);filter:blur(2px)}
    100% {opacity:1;transform:translate3d(0,0,0);filter:blur(0)}
  }
}

@media (prefers-reduced-motion: reduce) {
  #top.hero .hero-inner { translate: 0 0 !important; }
  #top.hero .hero-media img,
  #top.hero .hero-media video { transform: none !important; }
  #top.hero .hero-eyebrow,
  #top.hero #hero-heading,
  #top.hero .hero-desc,
  #top.hero .hero-actions,
  #top.hero .hero-footer {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}
