/* ── Reusable Page Hero ──
   Used in: Bio, Maria CHOIR (and any future full-screen hero pages)

   Required HTML structure:
   <section class="page-hero" data-hero>
     <div class="page-hero__bg">
       <img class="page-hero__img" src="..." alt="">
     </div>
     <div class="page-hero__overlay"></div>
     <div class="page-hero__content">
       <h1 class="page-hero__title">...</h1>
       <p  class="page-hero__subtitle">...</p>
       <div class="page-hero__arrow">↓ svg</div>
     </div>
   </section>
*/

.page-hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  z-index: 5;
}

/* Image container: oversized vertically to allow parallax movement */
.page-hero__bg {
  position: absolute;
  top: -25%;
  left: 0;
  right: 0;
  bottom: -25%;
  will-change: transform;
}

/* Starts transparent — the page's own background-color (set per page,
   matching this asset's dominant tone) shows through as an LQIP-style
   buffer, so the fade-in never looks like a color "pop". Triggered on
   mount by page-hero.js, not gated on the asset's 'load' event. */
.page-hero__img,
.page-hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.34, 1.1, 0.64, 1);
}
.page-hero__img.is-ready,
.page-hero__video.is-ready {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .page-hero__img, .page-hero__video { transition: none; opacity: 1; }
}

/* Gradient overlay: light at top, darker at bottom for text legibility */
.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13, 9, 2, 0.1) 0%,
    rgba(13, 9, 2, 0.25) 100%
  );
  pointer-events: none;
}

/* Content: flex-col, centered horizontally, pinned to top with small pt */
.page-hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  text-align: center;
  padding: 16px clamp(20px, 4vw, 80px) 0;
}

.page-hero__title {
  font-family: "PP Neue Montreal Book", sans-serif;
  font-weight: 400;
  font-size: clamp(64px, 4.85vw + 34.91px, 128px);
  line-height: 1.1;
  letter-spacing: 0;
  color: #fff;
  white-space: nowrap;
}

.page-hero__subtitle {
  font-family: "Slack Light", sans-serif;
  font-weight: 300;
  font-size: clamp(18px, 0.45vw + 15.27px, 24px);
  line-height: 1.25;
  letter-spacing: 0;
  color: #fff;
  white-space: nowrap;
}

/* Down arrow: right below subtitle in the flex flow */
.page-hero__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 24px;
  animation: hero-arrow-bounce 2.4s ease-in-out infinite;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.2s;
}
.page-hero__arrow:hover { opacity: 1; }
.page-hero__arrow svg { display: block; width: 30px; height: 14px; }

@keyframes hero-arrow-bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(9px); }
}

/* ── Tablet (600–959px) ── */
@media (max-width: 959px) {
  .page-hero__title    { font-size: clamp(64px, 8.5vw, 112px); }
  .page-hero__subtitle { font-size: clamp(16px, 2.2vw, 22px); }
  .page-hero__content  { gap: 0; }
}

/* ── Mobile (<600px) ── */
@media (max-width: 599px) {
  .page-hero__title    { white-space: normal; font-size: clamp(46px, 8.61vw + 12.42px, 64px); }
  .page-hero__subtitle { font-size: clamp(14px, 1.91vw + 6.54px, 18px); }
  .page-hero__content  { gap: 0; }
}
