/* Video hero + MediaBackground */

.hero-photo {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--space-deep);
}

.hero-photo__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.media-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--space-deep);
}

.media-bg__video,
.media-bg__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.media-bg__video {
  z-index: 1;
  opacity: 1;
  transition: opacity 1.2s var(--ease-out);
}

.media-bg__poster {
  z-index: 2;
  transition: opacity 1.2s var(--ease-out);
}

.media-bg__poster.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.hero-photo__overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(
      to top,
      var(--overlay) 0%,
      var(--overlay-light) 45%,
      var(--overlay-soft) 100%
    ),
    var(--grad-mesh-atmosphere);
  opacity: 0.92;
}

.hero-photo__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: calc(var(--nav-h) + var(--sp-xl)) var(--gutter)
    calc(var(--sp-3xl) + var(--sp-2xl));
}

.hero-photo__title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--text-on-dark);
  max-width: 14ch;
  margin-top: var(--sp-lg);
}

.hero-photo__lede {
  font-size: var(--text-lg);
  line-height: 1.55;
  color: var(--text-on-dark-soft);
  max-width: 42ch;
  margin-top: var(--sp-lg);
}

.hero-photo__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  margin-top: var(--sp-xl);
}

@media (max-width: 768px) {
  .hero-photo__title {
    max-width: none;
  }

  .hero-photo__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-photo__actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .media-bg__video {
    display: none;
  }

  .media-bg__poster {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
