/* ==========================================================================
   03-hero.css — Full-bleed video/image hero, text overlay, scroll cue
   ========================================================================== */

.hero {
  position: relative;
  width: 100%;
  height: 100dvh;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-color: var(--color-footer); /* fallback while media loads */
}

/* --------------------------------------------------------------------------
   Video / image background
   -------------------------------------------------------------------------- */
.hero__video,
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  /* Slight colour grade — warm, cinematic */
  filter: saturate(0.9) brightness(0.92);
}

/* --------------------------------------------------------------------------
   Gradient overlay — lower half creates reading surface
   -------------------------------------------------------------------------- */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(26, 22, 18, 0.75) 0%,
    rgba(26, 22, 18, 0.35) 40%,
    transparent 65%
  );
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Hero content — bottom-left
   -------------------------------------------------------------------------- */
.hero__content {
  position: relative;
  z-index: 2;
  padding: var(--space-48) var(--space-80);
  max-width: 800px;
  /* Text reveals fade in after page load — see 15-motion.css */
  opacity: 0;
  transform: translateY(0);
  transition: opacity 400ms ease 600ms;
}

.hero__content.is-visible {
  opacity: 1;
}

.hero__eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-paper);
  opacity: 0.75;
  margin-bottom: var(--space-16);
  display: block;
}

.hero__headline {
  font-family: var(--font-display);
  font-size: 80px;
  font-weight: 300;
  font-variation-settings: 'opsz' 144, 'SOFT' 0, 'wght' 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--color-paper);
  margin-bottom: var(--space-24);
  /* Prevent orphan single word on last line */
  text-wrap: balance;
}

.hero__subhead {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(242, 236, 223, 0.80);
  max-width: 520px;
  margin-bottom: var(--space-32);
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-24);
  flex-wrap: wrap;
}

/* Ghost secondary link on hero */
.hero__link-secondary {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--color-paper);
  text-decoration: none;
  opacity: 0.75;
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  transition: opacity var(--transition-fast);
}

.hero__link-secondary:hover {
  opacity: 1;
  color: var(--color-paper);
}

/* --------------------------------------------------------------------------
   Scroll cue — centred chevron at bottom
   -------------------------------------------------------------------------- */
.hero__scroll-cue {
  position: absolute;
  bottom: var(--space-32);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-8);
  animation: scroll-bounce 2s ease-in-out infinite;
  cursor: pointer;
  background: none;
  border: none;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
}

.hero__scroll-cue svg {
  color: rgba(242, 236, 223, 0.60);
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* --------------------------------------------------------------------------
   Mobile adjustments
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .hero__content {
    padding: var(--space-32) var(--space-24);
    max-width: 100%;
  }

  .hero__headline {
    font-size: 44px;
  }

  .hero__subhead {
    font-size: 16px;
    max-width: 100%;
  }

  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-16);
  }

  .hero__scroll-cue {
    bottom: var(--space-16);
  }
}

/* No third breakpoint needed — 44px from the 768px rule already fits a 375px screen */
