/* заглушка/hero.css — стартовий кадр заставки логотипа (таск 04). Фінальний кадр живе в stub.css; тут лише те, що ховає
   логотип до play(). Усе діє тільки під html.js, коли рух дозволено, і поки стан не "final". Без JS, при reduced motion,
   при повторному візиті в сесії і з реклами (utm, gclid, fbclid, якір) герой одразу у фінальному кадрі.
   Розльоту від прокрутки і треку більше немає: герой займає один екран, на телефоні звичайний потік сторінки.
   Таймлайн 1,3 с і стани data-hero-state веде hero.js. */

@media (prefers-reduced-motion: no-preference) {
  /* Стартовий кадр: SVG невидимий до play(), літери FORMA лише контуром (dashoffset ставить JS), підпис прозорий,
     розділювач scaleX(0), напрямні видимі */
  html.js .hero:not([data-hero-state="final"]) .hero__logo { opacity: 0; }
  html.js .hero:not([data-hero-state="final"]) .glyph:not(.sub) { fill-opacity: 0; stroke-opacity: 1; }
  html.js .hero:not([data-hero-state="final"]) .hero__caption { opacity: 0; }
  html.js .hero:not([data-hero-state="final"]) .hero__guides { opacity: 1; }
  html.js .hero:not([data-hero-state="final"]) .hero__divider { transform: scaleX(0); }
  /* Страховка: html.js є, а hero.js не поставив стан — за 1,6 с показуємо фінальний кадр (анімація 0 мс із затримкою;
     FALLBACK_MS у hero.js міняти разом). Щойно JS ставить стан, правило не діє */
  html.js .hero:not([data-hero-state]) .hero__logo { animation: hero-fallback-show 0s 1.6s forwards; }
  html.js .hero:not([data-hero-state]) .glyph:not(.sub) { animation: hero-fallback-glyph 0s 1.6s forwards; }
  html.js .hero:not([data-hero-state]) .hero__caption { animation: hero-fallback-show 0s 1.6s forwards; }
  html.js .hero:not([data-hero-state]) .hero__guides { animation: hero-fallback-hide 0s 1.6s forwards; }
  html.js .hero:not([data-hero-state]) .hero__divider { animation: hero-fallback-divider 0s 1.6s forwards; }
}
@keyframes hero-fallback-show { to { opacity: 1; } }
@keyframes hero-fallback-glyph { to { fill-opacity: 1; stroke-opacity: 0; } }
@keyframes hero-fallback-hide { to { opacity: 0; } }
@keyframes hero-fallback-divider { to { transform: scaleX(1); } }
