/* Fieldstar website motion. Only active once motion.js adds html.fs-motion (never in the Odoo editor or with reduced motion). */
@keyframes fs-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fs-marquee { to { transform: translateX(-50%); } }

/* gentle hero entrance */
html.fs-motion #wrap > section:first-child .container > * { animation: fs-up .8s cubic-bezier(.2,.7,.2,1) both; }
html.fs-motion #wrap > section:first-child .container > *:nth-child(2) { animation-delay: .12s; }
html.fs-motion #wrap > section:first-child .container > *:nth-child(3) { animation-delay: .24s; }
html.fs-motion #wrap > section:first-child .container > *:nth-child(n+4) { animation-delay: .36s; }

/* scroll reveal */
html.fs-motion .fs-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--fs-delay, 0s); }
html.fs-motion .fs-reveal.fs-in { opacity: 1; transform: none; }


/* logo marquee */
.fs-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.fs-marquee-track { display: flex; gap: 16px; width: max-content; }
.fs-marquee-item { flex: none; width: 168px; height: 84px; display: flex; align-items: center; justify-content: center; background: #FFFFFF; }
.fs-marquee-item img { max-height: 52px; max-width: 136px; object-fit: contain; }
html.fs-motion .fs-marquee-track { animation: fs-marquee var(--fs-speed, 60s) linear infinite; }
html.fs-motion .fs-marquee:hover .fs-marquee-track { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  html.fs-motion *, html.fs-motion *::before, html.fs-motion *::after { animation: none !important; transition: none !important; }
  html.fs-motion .fs-reveal { opacity: 1; transform: none; }
}
