/* Medobal Green v5: motion. CSS only, respects prefers-reduced-motion. */
@media (prefers-reduced-motion: no-preference) {

  /* hero entrance, staggered */
  .x-hero2-copy > * { animation: x-in .9s cubic-bezier(.2,.7,.2,1) both; }
  .x-hero2-copy > *:nth-child(2) { animation-delay: .08s; }
  .x-hero2-copy > *:nth-child(3) { animation-delay: .16s; }
  .x-hero2-copy > *:nth-child(4) { animation-delay: .24s; }
  .x-hero2-copy > *:nth-child(5) { animation-delay: .32s; }
  .x-hero2-media { animation: x-in-r 1.1s cubic-bezier(.2,.7,.2,1) .15s both; }

  /* shimmering green headline line */
  .x-hero2 h1 span {
    background: linear-gradient(90deg, #3E8A16 0%, #6FBF3A 25%, #2F7D17 50%, #6FBF3A 75%, #3E8A16 100%);
    background-size: 300% 100%;
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
    animation: x-shine 9s linear infinite;
  }

  /* floating hero pieces */
  .x-hm-main { animation: x-breathe 14s ease-in-out infinite alternate; }
  .x-hm-sub { animation: x-float 6s ease-in-out infinite alternate; }
  .x-hm-stat { animation: x-float 5s ease-in-out .6s infinite alternate; }
  .x-hm-event { animation: x-float 7s ease-in-out .3s infinite alternate; }

  /* flowing step connectors */
  .x-step-arrow {
    border-top: 0 !important;
    height: 3px !important;
    background: repeating-linear-gradient(90deg, rgba(79,163,31,.55) 0 8px, transparent 8px 16px);
    background-size: 32px 3px;
    animation: x-flow 1.2s linear infinite;
  }
  .x-step-ico { transition: transform .35s ease, box-shadow .35s ease; }
  .x-step:hover .x-step-ico { transform: translateY(-4px) rotate(-6deg); box-shadow: 0 0 0 14px rgba(79,163,31,.16); }

  /* button shine */
  .x-btn { position: relative; overflow: hidden; }
  .x-btn:after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg); transition: left .6s ease; }
  .x-btn:hover:after { left: 130%; }

  /* scroll-driven reveals (modern browsers); others simply show content */
  @supports (animation-timeline: view()) {
    .x-head, .x-card, .x-step, .x-g, .x-box, .x-tl li, .x-dispatch-box, .x-final h2, .home .numbers li {
      animation: x-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 26%;
    }
    .x-g img { animation: x-zoom linear both; animation-timeline: view(); animation-range: entry 0% cover 60%; }
    .x-dispatch img { animation: x-pan linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
  }
}

/* product ticker */
.x-marquee { overflow: hidden; background: #0F3F20; color: #fff; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.08); }
.x-mq-track { display: flex; width: max-content; gap: 0; }
.x-mq-track span { display: inline-flex; align-items: center; gap: 18px; padding: 0 18px; font-size: 18px; font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.x-mq-track svg { width: 18px; height: 18px; color: #E2E43A; flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .x-mq-track { animation: x-mq 38s linear infinite; }
  .x-marquee:hover .x-mq-track { animation-play-state: paused; }
}

@keyframes x-in { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes x-in-r { from { opacity: 0; transform: translateX(40px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes x-shine { to { background-position: 300% 0; } }
@keyframes x-breathe { from { transform: scale(1); } to { transform: scale(1.025); } }
@keyframes x-float { from { transform: translateY(0); } to { transform: translateY(-12px); } }
@keyframes x-flow { to { background-position: 32px 0; } }
@keyframes x-rise { from { opacity: 0; transform: translateY(46px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes x-zoom { from { transform: scale(1.18); } to { transform: scale(1); } }
@keyframes x-pan { from { transform: scale(1.15) translateY(-3%); } to { transform: scale(1.15) translateY(3%); } }
@keyframes x-mq { to { transform: translateX(-50%); } }

@media (max-width: 760px) {
  .x-mq-track span { font-size: 15px; padding: 0 12px; gap: 12px; }
  @media (prefers-reduced-motion: no-preference) {
    .x-step-arrow { height: auto !important; width: 3px !important;
      background: repeating-linear-gradient(180deg, rgba(79,163,31,.55) 0 8px, transparent 8px 16px);
      background-size: 3px 32px; border-left: 0 !important; animation: x-flow-v 1.2s linear infinite; }
  }
}
@keyframes x-flow-v { to { background-position: 0 32px; } }
