/* ==========================================================================
   Version B — Tasteful (CSS transitions + IntersectionObserver, no libraries)
   Hidden-until-revealed states only apply once JS has run (.js-on) and the
   visitor hasn't asked for reduced motion.
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {

  /* hero entrance */
  .js-on .hero-title .line { overflow: hidden; }
  .js-on .hero-title .line-inner { animation: rise 1.1s var(--ease-out) both; }
  .js-on .hero-title .line:nth-child(2) .line-inner { animation-delay: .1s; }
  .js-on .hero-title .line:nth-child(3) .line-inner { animation-delay: .2s; }
  .js-on .hero .eyebrow,
  .js-on .hero-sub,
  .js-on .hero-ctas { animation: fadeUp .9s var(--ease-out) both; }
  .js-on .hero-sub { animation-delay: .35s; }
  .js-on .hero-ctas { animation-delay: .45s; }
  .js-on .hero-figure { animation: slideIn 1.4s var(--ease-out) .15s both; }
  .js-on .orb-teal { animation: grow 1.6s var(--ease-out) both; }
  .js-on .spin-badge { animation: fadeUp .9s var(--ease-out) .7s both; }

  /* scroll reveals */
  .js-on [data-reveal],
  .js-on [data-split] {
    opacity: 0; transform: translateY(28px);
    transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
    transition-delay: var(--d, 0s);
  }
  .js-on [data-reveal].is-in,
  .js-on [data-split].is-in { opacity: 1; transform: none; }

  /* problem strikes draw across */
  .js-on .problem-list .strike { transform: scaleX(0); transition: transform 1s var(--ease-out) .35s; }
  .js-on .problem-list li { transition: opacity .9s var(--ease-out), transform .9s var(--ease-out), color .8s .4s; }
  .js-on .problem-list li:not(.is-struck) { color: var(--ink); }
  .js-on .problem-list li.is-struck .strike { transform: scaleX(1); }
  .js-on .problem-list .pw:nth-child(2) .strike { transition-delay: .65s; }
  .js-on .problem-list .pw:nth-child(3) .strike { transition-delay: .95s; }

  /* stat bars */
  .js-on .stat-bar { transform: scaleX(0); transition: transform 1.2s var(--ease-out) calc(var(--d, 0s) + .2s); }
  .js-on .stat.is-in .stat-bar { transform: scaleX(1); }

  /* diagram draws once */
  .js-on .dg-edge { transition: stroke-dashoffset 1.4s var(--ease-out); }
  .js-on .dg-node, .js-on .dg-hub { opacity: 0; transition: opacity .6s var(--ease-out); }
  .js-on .apps-diagram.is-in .dg-hub { opacity: 1; }
  .js-on .apps-diagram.is-in .dg-node { opacity: 1; transition-delay: .7s; }

  /* process rail is scroll-driven by tasteful.js (see .rail-live in base.css); a short ease smooths wheel steps */
  .js-on .rail-live .step-fill { transition: transform .14s linear; }

  /* gentle hover lift on cards */
  .benefit, .step { transition: background-color .35s, color .35s, transform .4s var(--ease-out); }
  .benefit:hover { transform: translateY(-6px); }
}

@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes slideIn { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* calmer loops than the immersive version */
.v-tasteful .ticker-track { animation-duration: 60s; }
.v-tasteful .marquee-track { animation-duration: 80s; }
.v-tasteful .hero-bg .net { animation-duration: 10s; }
