/* MUNDU Homepage-2 — H04 Network / H05 Connections / H06 Testimonials.
 * Motion only. No typography, colors, dimensions, imagery or layout changes.
 * Nothing is hidden until JS opts in with section-specific -ready class.
 */
@media (prefers-reduced-motion: no-preference) {
  /* H04: Network — globe grows into the lower stage, copy sweeps in from left,
     four benefit cards enter distinctly from the right. */
  #network.h04-ready .network-copy,
  #network.h04-ready .network-features,
  #network.h04-complete .network-copy,
  #network.h04-complete .network-features,
  #network.h04-ready .network-ambience,
  #network.h04-complete .network-ambience,
  #network.h04-ready .globe-container,
  #network.h04-complete .globe-container {
    /* Retire the previous network parallax so it cannot fight the new sequence. */
    translate: 0 0 !important;
  }
  #network.h04-ready .network-copy > .h04-item {
    opacity: 0;
    translate: -86px 0;
    transition: opacity .78s ease, translate 1.12s cubic-bezier(.16,.85,.2,1);
  }
  #network.h04-ready .feature-card {
    opacity: 0;
    translate: 126px 0;
    transition: opacity .78s ease, translate 1.15s cubic-bezier(.16,.85,.2,1),
                background .25s, border-color .25s, transform .25s;
  }
  #network.h04-ready .globe-container {
    opacity: 0;
    scale: .87;
    /* CSS individual translate property is reserved by prior parallax; use top only
       for its fixed positioned decorative layer, maintaining its existing bottom. */
    margin-top: 0;
    transition: opacity 1.20s ease, scale 1.8s cubic-bezier(.16,.8,.19,1);
  }
  #network.h04-play .globe-container { opacity: .8; scale: 1; transition-delay: .12s; }
  #network.h04-play .network-copy > .h04-item,
  #network.h04-play .feature-card { opacity: 1; translate: 0 0; }
  #network.h04-play .network-copy > .h04-item:nth-child(1) { transition-delay: .20s; }
  #network.h04-play .network-copy > .h04-item:nth-child(2) { transition-delay: .43s; }
  #network.h04-play .network-copy > .h04-item:nth-child(3) { transition-delay: .79s; }
  #network.h04-play .network-copy > .h04-item:nth-child(4) { transition-delay: 1.05s; }
  #network.h04-play .feature-card:nth-child(1) { transition-delay: .48s; }
  #network.h04-play .feature-card:nth-child(2) { transition-delay: .75s; }
  #network.h04-play .feature-card:nth-child(3) { transition-delay: 1.02s; }
  #network.h04-play .feature-card:nth-child(4) { transition-delay: 1.29s; }

  /* H05: Connections — photo reveal left, text right, copy staggered; port art
     settles last. Keep original image crop/border and frame placement intact. */
  #connections.h05-ready .connections-photo {
    opacity: 0;
    translate: -112px 0;
    transition: opacity .95s ease, translate 1.3s cubic-bezier(.16,.85,.2,1);
  }
  #connections.h05-ready .connections-photo img {
    clip-path: inset(0 92% 0 0 round 20px);
    transition: clip-path 1.35s cubic-bezier(.18,.75,.2,1);
  }
  #connections.h05-ready .connections-content > .h05-item {
    opacity: 0;
    translate: 110px 0;
    transition: opacity .76s ease, translate 1.12s cubic-bezier(.17,.84,.18,1);
  }
  #connections.h05-ready .port-wave-art {
    opacity: 0;
    translate: 0 42px;
    transition: opacity 1.15s ease, translate 1.4s cubic-bezier(.17,.82,.2,1);
  }
  #connections.h05-play .connections-photo { opacity: 1; translate: 0 0; transition-delay: .12s; }
  #connections.h05-play .connections-photo img { clip-path: inset(0 0 0 0 round 20px); transition-delay: .14s; }
  #connections.h05-play .connections-content > .h05-item { opacity: 1; translate: 0 0; }
  #connections.h05-play .connections-content > .h05-item:nth-child(1) { transition-delay: .43s; }
  #connections.h05-play .connections-content > .h05-item:nth-child(2) { transition-delay: .70s; }
  #connections.h05-play .connections-content > .h05-item:nth-child(3) { transition-delay: .94s; }
  #connections.h05-play .connections-content > .h05-item:nth-child(4) { transition-delay: 1.15s; }
  #connections.h05-play .connections-content > .h05-item:nth-child(5) { transition-delay: 1.36s; }
  #connections.h05-play .port-wave-art { opacity: .66; translate: 0 0; transition-delay: 1.1s; }

  /* H06: Testimonials — editorial headline sweep, two cards rise in stagger,
     quotation glyph follows. Keep tile dimensions, copy and all colors. */
  #testimonials.h06-ready .testimonial-inner > .h06-heading {
    opacity: 0;
    translate: 0 62px;
    transition: opacity .80s ease, translate 1.08s cubic-bezier(.16,.86,.22,1);
  }
  #testimonials.h06-ready .testimonial-tile {
    opacity: 0;
    translate: 0 112px;
    scale: .95;
    transition: opacity .83s ease, translate 1.28s cubic-bezier(.16,.82,.18,1),
                scale 1.28s cubic-bezier(.16,.82,.18,1);
  }
  #testimonials.h06-ready .testimonial-tile__quote {
    opacity: 0;
    scale: .5;
    transition: opacity .45s ease, scale .75s cubic-bezier(.16,1.25,.2,1);
  }
  #testimonials.h06-play .testimonial-inner > .h06-heading { opacity: 1; translate: 0 0; }
  #testimonials.h06-play .testimonial-inner > .h06-heading:nth-child(1) { transition-delay: .12s; }
  #testimonials.h06-play .testimonial-inner > .h06-heading:nth-child(2) { transition-delay: .34s; }
  #testimonials.h06-play .testimonial-inner > .h06-heading:nth-child(3) { transition-delay: .50s; }
  #testimonials.h06-play .testimonial-tile { opacity: 1; translate: 0 0; scale: 1; }
  #testimonials.h06-play .testimonial-tile:nth-child(1) { transition-delay: .75s; }
  #testimonials.h06-play .testimonial-tile:nth-child(2) { transition-delay: 1.12s; }
  #testimonials.h06-play .testimonial-tile:nth-child(3) { transition-delay: 1.38s; }
  #testimonials.h06-play .testimonial-tile__quote { opacity: 1; scale: 1; }
  #testimonials.h06-play .testimonial-tile:nth-child(1) .testimonial-tile__quote { transition-delay: 1.29s; }
  #testimonials.h06-play .testimonial-tile:nth-child(2) .testimonial-tile__quote { transition-delay: 1.68s; }

  /* Smaller travel on mobile avoids horizontal overflow, still noticeable. */
  @media (max-width: 850px) {
    #network.h04-ready .network-copy > .h04-item { translate: -48px 0; }
    #network.h04-ready .feature-card { translate: 58px 0; }
    #connections.h05-ready .connections-photo { translate: -58px 0; }
    #connections.h05-ready .connections-content > .h05-item { translate: 50px 0; }
    #network.h04-play .network-copy > .h04-item,
    #network.h04-play .feature-card,
    #connections.h05-play .connections-photo,
    #connections.h05-play .connections-content > .h05-item { translate: 0 0; }
    #testimonials.h06-ready .testimonial-tile { translate: 0 65px; }
    #testimonials.h06-play .testimonial-tile { translate: 0 0; }
  }
}
