/* Движение «Индустрии»: появление блоков, счётчики и прорисовка схем.
   Выключается при prefers-reduced-motion и без JavaScript. */

.js-motion .reveal {
  opacity: 0;
  transform: translate3d(0, calc(var(--reveal-y, -20px) * -1), 0);
  transition:
    opacity var(--dur-base, 220ms) var(--ease, cubic-bezier(0.4, 0, 0.2, 1)) var(--m-delay, 0ms),
    transform var(--dur-base, 220ms) var(--ease, cubic-bezier(0.4, 0, 0.2, 1)) var(--m-delay, 0ms);
}

.js-motion .reveal.is-in {
  opacity: 1;
  transform: none;
}

.m-draw {
  stroke: var(--accent, currentColor);
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.js-motion .m-draw {
  stroke-dasharray: var(--m-len, 1200);
  stroke-dashoffset: var(--m-len, 1200);
}

.js-motion .m-draw.is-in {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1600ms var(--ease, cubic-bezier(0.4, 0, 0.2, 1)) var(--m-delay, 0ms);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  .js-motion .reveal,
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .js-motion .m-draw,
  .m-draw {
    stroke-dasharray: none !important;
    stroke-dashoffset: 0 !important;
  }
}
