/* ══════════════════════════════════════════
   HERO — Scroll Frame Sequence (vídeo frame a frame)
══════════════════════════════════════════ */

.hero-scrollzone {
  position: relative;
  height: 300vh;
}

.hero-scrollzone .section--hero {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 0;
}

.hero-bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  filter: brightness(1.08);
}

/* Esconde as partículas (bolinhas) enquanto o hero está visível */
.hero-canvas {
  transition: opacity 0.5s ease;
}

.hero-canvas.is-hidden-by-hero {
  opacity: 0;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 72% 62% at 50% 48%,
      rgba(9, 7, 28, 0.72) 0%,
      rgba(9, 7, 28, 0.48) 55%,
      rgba(9, 7, 28, 0.18) 100%),
    linear-gradient(180deg,
      rgba(9, 7, 28, 0.55) 0%,
      rgba(9, 7, 28, 0.10) 25%,
      rgba(9, 7, 28, 0.10) 70%,
      rgba(9, 7, 28, 0.58) 100%);
}

/* ── Layout do conteúdo: centralizado (composição limpa sobre a cena) ── */
.hero-scrollzone .section--hero {
  align-items: center;
}

.hero-scrollzone .hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-scrollzone .hero__content {
  max-width: 720px;
  gap: var(--space-5);
  align-items: center;
  text-align: center;
  position: relative;
}


.hero-scrollzone .hero__title {
  font-size: clamp(30px, 3.8vw, 50px);
  letter-spacing: -1px;
  line-height: 1.15;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

/* Sem sombra nas palavras com gradiente (a sombra atravessa o texto transparente) */
.hero-scrollzone .hero__title .tg {
  text-shadow: none;
}

.hero-scrollzone .hero__subtitle {
  font-size: var(--text-md);
  max-width: 520px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.90);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  margin: 0 auto;
}

/* ── Hook de entrada (pergunta inicial) ── */
.hero-hook {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  padding-bottom: 80px;
  transition: opacity 0.5s ease;
}

.hero-hook__text {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 66px);
  font-weight: 700;
  color: #fff;
  text-align: center;
  line-height: 1.18;
  letter-spacing: -1.5px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
  padding: 0 24px;
}

.hero-hook__accent {
  color: #fff;
  font-style: italic;
}

.hero-hook .hw {
  overflow: visible;
  padding-right: 0.06em;
}

/* Scroll cue */
.hero-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  pointer-events: none;
  transition: opacity 0.3s ease;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.7);
}

.hero-scroll-cue__line {
  width: 2px;
  height: 44px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), transparent);
  animation: heroCuePulse 1.6s ease-in-out infinite;
  transform-origin: top;
}

@keyframes heroCuePulse {
  0%, 100% { transform: scaleY(0.4); opacity: 0.4; }
  50%      { transform: scaleY(1);   opacity: 1; }
}

/* Máscara das palavras do título (reveal por scroll) */
.hw {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}

.hw__in {
  display: inline-block;
  will-change: transform;
}

/* Reaplica o gradiente nas palavras dentro de .tg (background-clip não
   atravessa wrappers inline-block) */
.tg .hw__in {
  background: linear-gradient(135deg, #C084FC 0%, #818CF8 55%, #60A5FA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (max-width: 640px) {
  .hero-scrollzone {
    height: 220vh;
  }
}
