/* ============================================================
   Видео под скролл (светлая тема): робот, камера, кадры листает колесо мыши / свайп
   ============================================================ */
.intro { position: relative; height: var(--h-d, 340vh); background: var(--bg-2); }
.intro__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.intro__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* в конце кадр растворяется в фон страницы */
.intro__fade { position: absolute; inset: 0; background: var(--bg); mix-blend-mode: screen; opacity: 0; pointer-events: none; z-index: 1; }

/* подписи по ходу прокрутки */
.intro__cap {
  position: absolute; left: 50%; bottom: 13vh; z-index: 2;
  width: calc(100% - 32px); max-width: 700px; padding: 22px 28px; text-align: center;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 60px rgba(20, 44, 96, 0.18);
  -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
  color: var(--text);
  opacity: 0; transform: translate(-50%, 24px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}
.intro__cap.is-on { opacity: 1; transform: translate(-50%, 0); }
.intro__cap h2, .intro__t { font-family: var(--font-display); font-weight: 700; font-size: clamp(20px, 3vw, 36px); line-height: 1.15; letter-spacing: -0.01em; }
.intro__cap p:not(.intro__t) { margin-top: 8px; color: var(--text-2); font-size: clamp(14px, 1.5vw, 18px); }
.intro__cap .btn { margin-top: 16px; }
.intro__cap.is-on .btn { pointer-events: auto; }

/* подсказка «крутите» */
.intro__hint {
  position: absolute; left: 50%; bottom: 4vh; z-index: 2; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: #2b3245; font-size: 12px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  transition: opacity 0.4s ease; pointer-events: none; white-space: nowrap;
}
.intro__hint i { width: 22px; height: 34px; border-radius: 12px; border: 2px solid #2b3245; position: relative; }
.intro__hint i::after {
  content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; margin-left: -1.5px;
  border-radius: 2px; background: #2b3245; animation: introWheel 1.5s ease-in-out infinite;
}
@keyframes introWheel { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(12px); } }
.intro.is-scrolled .intro__hint { opacity: 0; }

/* прогресс + пропуск */
.intro__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(16, 32, 64, 0.08); z-index: 3; }
.intro__bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.intro__skip {
  position: absolute; right: 20px; bottom: 22px; z-index: 3;
  padding: 9px 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: var(--text); background: rgba(255, 255, 255, 0.8); border: 1px solid var(--border-strong);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background 0.2s, color 0.2s;
}
.intro__skip:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* первый кадр — обычная картинка: мгновенный показ и быстрый LCP, canvas рисуется поверх */
.intro__sticky picture { position: absolute; inset: 0; display: block; }
.intro__first { width: 100%; height: 100%; object-fit: cover; display: block; }

/* пока грузится первый кадр */
.intro__poster { position: absolute; inset: 0; background: var(--bg-2); transition: opacity 0.5s; }
.intro.is-ready .intro__poster { opacity: 0; pointer-events: none; }

/* не удалось загрузить кадры — секция скрыта */
.intro.is-off { display: none; }

@media (max-width: 720px) {
  .intro { height: var(--h-m, 300vh); }
  .intro__cap { bottom: 16vh; padding: 16px 18px; border-radius: 18px; }
  .intro__skip { right: 12px; bottom: 16px; }
}
