/* Анімації (працюють у будь-якому стилі). */

/* Заголовок по літерах */
.has-motion-js .hero--parliament h1.is-split .word { display: inline-block; white-space: nowrap; }
.has-motion-js .hero--parliament h1.is-split .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(.55em) rotate(8deg);
  filter: blur(8px);
  animation: ch-in .9s var(--ease) forwards;
  animation-delay: calc(var(--d) * 32ms + 120ms);
}
@keyframes ch-in { to { opacity: 1; transform: none; filter: none; } }

/* Решта першого екрана з'являється після заголовка */
.has-motion-js .hero--parliament :is(.kicker, .hero__lead, .hero__actions, .hero__president) {
  opacity: 0;
  animation: hero-rise 1s var(--ease) forwards;
}
.has-motion-js .hero--parliament .kicker { animation-delay: .05s; }
.has-motion-js .hero--parliament .hero__lead { animation-delay: calc(var(--hero-letters, 30) * 32ms + 200ms); }
.has-motion-js .hero--parliament .hero__actions { animation-delay: calc(var(--hero-letters, 30) * 32ms + 320ms); }
.has-motion-js .hero--parliament .hero__president { animation: hero-rise 1.2s var(--ease) .35s forwards; }
.has-motion-js .hero--parliament .hero__photo { animation: hero-photo 1.4s var(--ease) .35s both; }
@keyframes hero-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes hero-photo { from { clip-path: inset(100% 0 0 0 round 28px); } to { clip-path: inset(0 0 0 0 round 28px); } }

/* Велике «315» на фоні */
.has-motion-js .hero--parliament::before { animation: big-315 1.8s var(--ease) .1s both; }
@keyframes big-315 { from { opacity: 0; transform: translateY(8%) scale(1.06); } to { opacity: 1; transform: none; } }

/* Смужка прогресу */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  height: 3px;
  background: var(--accent);
  transform-origin: 0 50%;
  transform: scaleX(0);
  pointer-events: none;
}

/* Заголовки розділів виїжджають з-під лінії */
.has-motion-js .wipe { overflow: hidden; padding-bottom: .08em; }
.has-motion-js .wipe .wipe__inner { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); }
.has-motion-js .wipe.is-in .wipe__inner { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .scroll-progress { display: none; }
}
@media print { .scroll-progress { display: none; } }


/* ---------- Велике контурне «315» на першому екрані ---------- */
.hero--parliament { position: relative; isolation: isolate; }
.hero--parliament::before {
  content: "315";
  position: absolute;
  z-index: -1;
  left: calc(var(--gutter) - .06em);
  bottom: -.2em;
  font-family: "Geologica", "Golos Text", sans-serif;
  font-weight: 900;
  font-size: clamp(200px, 32vw, 500px);
  line-height: 1;
  letter-spacing: -.06em;
  color: transparent;
  -webkit-text-stroke: 2px rgba(19, 99, 63, .22);
  pointer-events: none;
}
@media (max-width: 600px) {
  .hero--parliament::before { font-size: 62vw; bottom: auto; top: 110px; left: auto; right: -4vw; -webkit-text-stroke-width: 1.5px; }
}
