/* Home page motion (founder, 7 Nov 2026: "why no motion … no scroll motion … looks plain").
   Loaded after brand.css. Works with motion.js:
   - section headings rise word by word, copy and cards arrive in order as they scroll in;
   - the hero has a slow warm light drifting behind it;
   - the product stage grows into place as it scrolls up (--p from motion.js);
   - numbers count up; a tool strip moves; a line draws through the four engagement steps;
   - case cards lift and light under the pointer.
   prefers-reduced-motion: everything is shown in its final state, nothing moves. */

body.front { --accent-rgb: 229 72 28; --accent: #e5481c; --ease: cubic-bezier(.16, 1, .3, 1); }

/* ---------------------------------------------------------------- hero light */
.vx-hero[data-hero-glow] { position: relative; isolation: isolate; }
.vx-hero[data-hero-glow]::before, .vx-hero[data-hero-glow]::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; filter: blur(80px); }
.vx-hero[data-hero-glow]::before { width: min(720px, 80vw); height: min(720px, 80vw); top: -260px; right: -120px; opacity: .38;
  background: radial-gradient(circle, #f2794f 0, rgb(242 121 79 / 0) 65%); animation: vxGlowA 22s ease-in-out infinite alternate; }
.vx-hero[data-hero-glow]::after { width: min(560px, 70vw); height: min(560px, 70vw); top: 120px; left: -220px; opacity: .32;
  background: radial-gradient(circle, #f4b860 0, rgb(244 184 96 / 0) 65%); animation: vxGlowB 28s ease-in-out infinite alternate; }
@keyframes vxGlowA { to { transform: translate(-140px, 120px) scale(1.18); } }
@keyframes vxGlowB { to { transform: translate(180px, -60px) scale(.9); } }
body.front main.vx-home { overflow-x: clip; }

/* the accent words of the headline settle a beat later, with a sweep under them */
.vx-h1 .vx-acc { position: relative; }

/* ---------------------------------------------------------------- stage grows into place */
.js .vx-stage[data-scrub] {
  transform: perspective(1400px) translateY(calc((1 - var(--p, 0)) * 40px)) scale(calc(.92 + var(--p, 0) * .08)) rotateX(calc((1 - var(--p, 0)) * 9deg));
  transform-origin: 50% 0; will-change: transform; }

/* ---------------------------------------------------------------- tool strip */
.vx-marquee { margin-top: clamp(48px, 6vw, 80px); padding: 18px 0; border-block: 1px solid var(--rule);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.vx-marquee .track { --dur: 38s; }
.vx-marquee ul { display: flex; gap: 56px; margin: 0; padding: 0 28px; list-style: none; }
.vx-marquee li { font: 560 clamp(20px, 2vw, 26px)/1 var(--display); letter-spacing: -.02em; color: var(--ink-3); white-space: nowrap; }
.vx-marquee li::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 18px; border-radius: 50%;
  background: var(--acc); vertical-align: middle; transform: translateY(-2px); opacity: .7; }
.marquee.paused .track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- cards */
.vx-three .vx-ico { transition: transform .5s var(--ease), background-color .3s; }
.vx-three li:hover .vx-ico { transform: translateY(-4px) rotate(-6deg); }
.vx-case[data-spot] { overflow: hidden; }
.vx-case[data-spot]:hover { background: #fff; }
.vx-case .vx-go svg { transition: transform .35s var(--ease); }
.vx-case:hover .vx-go svg { transform: translateX(5px); }
.vx-proof-row .vx-big { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- engagement line */
.vx-eng[data-line] { position: relative; }
.vx-eng[data-line]::before { content: ""; position: absolute; left: 28px; right: 28px; top: -22px; height: 2px; border-radius: 2px;
  background: var(--acc); transform: scaleX(var(--p, 0)); transform-origin: left; }
.vx-eng[data-line]::after { content: ""; position: absolute; top: -27px; left: calc(28px + (100% - 56px) * var(--p, 0)); width: 12px; height: 12px;
  margin-left: -6px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 6px rgb(var(--accent-rgb) / .15); }
.vx-eng li { transition: background-color .4s, transform .5s var(--ease); }
.vx-eng li:hover { background: #fff; transform: translateY(-4px); }

/* ---------------------------------------------------------------- FarmQuick strip */
.vx-case-strip { position: relative; overflow: hidden; isolation: isolate; }
.vx-case-strip::after { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; right: -160px; top: -220px; border-radius: 50%;
  background: radial-gradient(circle, rgb(var(--accent-rgb) / .35), transparent 65%); filter: blur(40px); animation: vxGlowA 18s ease-in-out infinite alternate; }

/* ---------------------------------------------------------------- buttons */
.vx-home .btn { transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .2s; }
.vx-home .btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -18px rgb(20 19 17 / .5); }

@media (max-width: 760px) {
  .vx-eng[data-line]::before { left: -10px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; transform: scaleY(var(--p, 0)); transform-origin: top; }
  .vx-eng[data-line]::after { left: -10px; top: calc(100% * var(--p, 0)); margin-top: -6px; }
  .vx-eng[data-line] { margin-left: 12px; }
  .js .vx-stage[data-scrub] { transform: translateY(calc((1 - var(--p, 0)) * 24px)) scale(calc(.96 + var(--p, 0) * .04)); }
}

@media (prefers-reduced-motion: reduce) {
  .vx-hero[data-hero-glow]::before, .vx-hero[data-hero-glow]::after, .vx-case-strip::after { animation: none; }
  .js .vx-stage[data-scrub] { transform: none; }
  .vx-marquee .track { animation: none; }
  .vx-eng[data-line]::before { transform: none; }
  .vx-eng[data-line]::after { display: none; }
}
