/* ===========================================================
   hero.css — hero section + scroll animation styles
   =========================================================== */

/* Tall scroll track: hero stays sticky while frames advance on scroll */
#hero-frame-wrapper {
  position: relative;
  height: 400vh;
}

#hero {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: var(--color-text);
}

/* Canvas fills the sticky hero */
.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero__frames {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Dark wash so overlay text stays legible */
#hero::after {
  content: "";
  position: absolute;
  inset: 0;
  /* velatura radiale al centro: tiene leggibile il testo anche quando
     il frame sotto e' cielo chiaro; + gradiente verticale per il resto */
  background:
    radial-gradient(ellipse 70% 55% at 50% 50%,
      rgba(15, 12, 10, 0.55) 0%,
      rgba(15, 12, 10, 0.28) 55%,
      transparent 100%),
    linear-gradient(180deg,
      rgba(26, 26, 26, 0.38) 0%,
      rgba(26, 26, 26, 0.20) 40%,
      rgba(26, 26, 26, 0.58) 100%);
  z-index: 3;
  pointer-events: none;
}

/* ---- Overlays ---- */
.hero__overlay-intro,
.hero__overlay-final {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  text-align: center;
  color: #fff;
  width: min(90%, 720px);
  padding-inline: var(--space-2);
}

/* "Elena Stays presenta" — firma del brand sopra al nome della casa.
   Elena Stays e' il marchio ombrello: deve leggersi e avere peso proprio. */
.hero__overlay-intro .hero__presents {
  margin-top: 0;
  margin-bottom: var(--space-3);
  font-size: var(--fs-md);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  text-shadow: 0 2px 12px rgba(15, 12, 10, 0.75);
}
/* filetto dorato sotto la firma, per staccarla dal titolo */
.hero__overlay-intro .hero__presents::after {
  content: "";
  display: block;
  width: 68px;
  height: 1px;
  margin: var(--space-2) auto 0;
  background: var(--color-gold-light);
  opacity: 0.75;
}

.hero__overlay-intro h1 {
  font-size: var(--fs-4xl);
  letter-spacing: 0.02em;
  text-shadow: 0 2px 24px rgba(15, 12, 10, 0.6);
}
.hero__overlay-intro p {
  margin-top: var(--space-2);
  font-size: var(--fs-md);
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 10px rgba(15, 12, 10, 0.6);
}

.hero__overlay-final {
  opacity: 0; /* fades in via GSAP */
}
.hero__overlay-final h2 {
  font-size: var(--fs-4xl);
  color: #fff;
  margin-bottom: var(--space-4);
  text-shadow: 0 2px 24px rgba(15, 12, 10, 0.6);
}

.hero__scroll-hint {
  position: absolute;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--fs-sm);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.hero__scroll-hint::after {
  content: "";
  display: block;
  width: 1px;
  height: 40px;
  margin: var(--space-1) auto 0;
  background: rgba(255, 255, 255, 0.6);
  animation: scrollPulse 1.8s var(--ease) infinite;
  transform-origin: top;
}

@keyframes scrollPulse {
  0%   { transform: scaleY(0); opacity: 0; }
  40%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(0); opacity: 0; transform-origin: bottom; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__scroll-hint::after { animation: none; }
}
