/* ─── Hero: full-viewport with video background ─── */

.hero {
  --hero-extra-height: 22svh;
  --hero-reveal-progress: 0;
  position: relative;
  height: calc(100svh + var(--hero-extra-height));
  overflow: hidden;
}

/* ─── Background video ─── */

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 115%; /* extra height gives parallax room without gaps */
  top: -7.5%;
  object-fit: cover;
  object-position: center center;
  filter: grayscale(100%);
  will-change: transform, opacity;
}

/* Bottom gradient: eases video into page background so text is legible */
.hero-video-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 30%,
    rgba(247, 247, 247, 1) 65%,
    var(--bg) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* ─── Text content: always visible on top of video ─── */

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: calc(72px + var(--hero-extra-height));
  margin-bottom: 80px;
}

.hero-content .container {
  position: relative;
}

.hero-tag {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 12px;
  font-family: var(--font-sans);
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1em;
}

.hero-headline-tagline {
  font-style: italic;
}

.hero-reveal {
  position: absolute;
  top: calc(100% + 22px);
  left: 50%;
  width: min(560px, calc(100vw - 56px));
  transform: translateX(-50%) translateY(calc((1 - var(--hero-reveal-progress)) * 14px));
  opacity: var(--hero-reveal-progress);
  pointer-events: none;
}

.hero.is-revealing .hero-reveal {
  pointer-events: auto;
}

.hero-body {
  font-size: 1.125rem; /* 18px con :root 16px */
  color: var(--muted);
  max-width: 100%;
  margin: 0 auto 28px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hero-note {
  font-size: 0.875rem;
  color: var(--muted);
  letter-spacing: 0.01em;
  line-height: 1.65;
  margin: 0;
}

/* ─── Scroll cue ─── */

.scroll-cue {
  position: absolute;
  bottom: calc(28px + var(--hero-extra-height));
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-decoration: none;
  will-change: opacity;
}

.scroll-cue-ring {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(17, 17, 17, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease;
}

.scroll-cue:hover .scroll-cue-ring {
  border-color: rgba(17, 17, 17, 0.5);
}

.scroll-cue-arrow {
  font-size: 15px;
  line-height: 1;
  animation: scrollCueBounce 1.6s ease-in-out infinite;
}

@keyframes scrollCueBounce {
  0%,
  100% {
    transform: translateY(-2px);
    opacity: 0.55;
  }
  50% {
    transform: translateY(3px);
    opacity: 1;
  }
}

/* ─── Reduced motion ─── */

@media (prefers-reduced-motion: reduce) {
  .hero-video {
    will-change: auto;
  }
  .hero-body,
  .hero-ctas,
  .hero-note,
  .hero-reveal {
    transform: none;
  }
  .scroll-cue-arrow {
    animation: none;
    opacity: 0.7;
  }
}
