/* Pioneer motion effects (PREVIEW). Decoration only. Classes on <html> from motion.js:
   fx-hero, fx-wipe (squeegee), fx-roller (paint roller), fx-drops (water beads),
   fx-still (the device asks for reduced motion: keep the still parts, drop the movement). */

/* ---------- Squeegee film ---------- */
.fx-wipe-host { position: relative; display: block; overflow: hidden; }
.fx-film { display: none; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.fx-hero .hero-media .fx-film,
.fx-wipe .fx-wipe-host .fx-film { display: block; }
.fx-tool { filter: drop-shadow(0 3px 4px rgba(31, 45, 61, .35)); }
.fx-film-body { transition: opacity .9s ease; }
.fx-film-fade .fx-film-body { opacity: 0; }
.fx-film-done { display: none !important; }
.fx-film-water .fx-soap, .fx-film-soap .fx-water { display: none; }
html:not(.fx-film-water):not(.fx-film-soap) .fx-soap { opacity: .8; } /* both: a lighter haze so the drops read */

/* ---------- Paint roller ---------- */
.fx-roller-host { position: relative; overflow-x: clip; isolation: isolate; } /* the handle may hang into the next section's top margin */
.fx-paint, .fx-roller-art { display: none; }
.fx-roller .fx-paint {
  display: block; position: absolute; left: 0; right: 0; z-index: -1;
  clip-path: inset(0 100% 0 0);
  /* fresh paint: a soft sea-green from the logo, with faint roller texture and edge lines */
  background:
    linear-gradient(180deg, rgba(31,78,95,.08), rgba(31,78,95,0) 6px, rgba(31,78,95,0) calc(100% - 6px), rgba(31,78,95,.08)),
    repeating-linear-gradient(180deg, rgba(255,255,255,.07) 0 3px, rgba(255,255,255,0) 3px 11px),
    #CDE7E1;
}
.fx-roller .fx-roller-host .split-text { text-shadow: 0 0 5px #F2F9F8, 0 0 12px #F2F9F8; } /* keeps text crisp as the roller passes behind it */
.fx-roller .fx-roller-art {
  display: block; position: absolute; z-index: -1; left: 0; top: 0;
  pointer-events: none; will-change: transform; transition: opacity .3s ease;
}

/* ---------- Water beads ---------- */
.fx-drops-layer { display: none; }
.fx-drops .fx-drops-layer { display: block; position: fixed; inset: 0; pointer-events: none; z-index: 5; }
.fx-cluster { position: absolute; top: 0; width: 0; height: 0; will-change: transform; }
@media (max-width: 1319px) {
  .fx-cluster:not(.fx-cluster-phone) { display: none; }
  .fx-cluster-phone { transform-origin: 0 0; scale: .7; opacity: .8; }
}
.fx-bead {
  position: absolute; border-radius: 50% 50% 48% 48%;
  background:
    radial-gradient(circle at 34% 30%, rgba(255,255,255,.95) 0 14%, rgba(255,255,255,0) 22%),
    radial-gradient(circle at 60% 72%, rgba(255,255,255,.55) 0 10%, rgba(255,255,255,0) 30%),
    radial-gradient(circle at 50% 50%, rgba(149,215,227,.18) 0 52%, rgba(78,205,196,.45) 72%, rgba(26,111,128,.38) 100%);
  box-shadow: 1px 2px 2px rgba(31, 78, 95, .16);
}
.fx-runner { animation: fx-run 11s ease-in 2s infinite; }
.fx-runner::before { /* faint wet trail it leaves behind */
  content: ""; position: absolute; left: 50%; bottom: 55%; width: 32%; height: 0;
  transform: translateX(-50%); border-radius: 3px;
  background: linear-gradient(180deg, rgba(149,215,227,0), rgba(149,215,227,.5));
  animation: fx-trail 11s ease-in 2s infinite;
}
@keyframes fx-run {
  0%, 30% { transform: translateY(0); opacity: 1; }
  80% { transform: translateY(70px); opacity: 1; }
  92%, 100% { transform: translateY(78px); opacity: 0; }
}
@keyframes fx-trail { 0%, 30% { height: 0; } 80% { height: 70px; } 100% { height: 76px; } }

/* ---------- Reduced motion: keep the still parts, remove the movement ---------- */
.fx-still .fx-film, .fx-still .fx-roller-art { display: none !important; }
.fx-still .fx-runner, .fx-still .fx-runner::before { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .fx-film, .fx-roller-art { display: none !important; }
  .fx-runner, .fx-runner::before { animation: none; }
}
