/* File-preview fallback: if the carousel script cannot initialize, rotate the
   three existing slides with CSS. The first slide remains static for users
   who request reduced motion or browsers that do not support this media query. */
@media (prefers-reduced-motion: no-preference) {
  .v16-carousel:not([data-carousel-ready]) .v16-slide {
    animation: v27-carousel-fallback 18s infinite;
  }
  .v16-carousel:not([data-carousel-ready]) .v16-slide:nth-of-type(1) { animation-delay: 0s; }
  .v16-carousel:not([data-carousel-ready]) .v16-slide:nth-of-type(2) { animation-delay: -6s; }
  .v16-carousel:not([data-carousel-ready]) .v16-slide:nth-of-type(3) { animation-delay: -12s; }

  .v22-timeline-wave { transform-origin: center bottom; animation: v27-wave-travel 7s ease-in-out infinite alternate; }
  .v22-milestone-dot { animation: v27-node-pulse 3.6s ease-in-out infinite; }
  .v22-milestone:nth-child(2) .v22-milestone-dot { animation-delay: .45s; }
  .v22-milestone:nth-child(3) .v22-milestone-dot { animation-delay: .9s; }
  .v22-milestone:nth-child(4) .v22-milestone-dot { animation-delay: 1.35s; }
  .v22-milestone:nth-child(5) .v22-milestone-dot { animation-delay: 1.8s; }
  .v22-milestone:nth-child(6) .v22-milestone-dot { animation-delay: 2.25s; }
  .v22-milestone:nth-child(7) .v22-milestone-dot { animation-delay: 2.7s; }
}
@keyframes v27-carousel-fallback {
  0%, 27% { opacity: 1; visibility: visible; }
  33%, 94% { opacity: 0; visibility: hidden; }
  100% { opacity: 1; visibility: visible; }
}
@keyframes v27-wave-travel {
  from { transform: translateX(0) scaleX(1); }
  to { transform: translateX(-2.8%) scaleX(1.055); }
}
@keyframes v27-node-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 1px 3px rgb(119 30 34 / 24%); }
  16% { transform: translate(-50%, -50%) scale(1.65); box-shadow: 0 0 0 9px rgb(185 45 52 / 19%); }
  30% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 1px 3px rgb(119 30 34 / 24%); }
}

/* Supported browsers can animate these sections while scrolling without script. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .v16-iraq-services, .v16-advantages, .v16-cargo, .v22-locations, .v16-service-entries {
      animation: v27-scroll-reveal 1ms linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }
    .v25-motion-pending { opacity: 1; translate: none; }
  }
}
@keyframes v27-scroll-reveal {
  from { opacity: .35; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Motion preferences always win over the optional preview effects. */
@media (prefers-reduced-motion: reduce) {
  .v16-carousel .v16-slide,
  .v22-timeline-wave,
  .v22-milestone-dot,
  .v16-iraq-services, .v16-advantages, .v16-cargo, .v22-locations, .v16-service-entries {
    animation: none !important;
    transition: none !important;
  }
}
