/* ============================================
   HERO
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-bg-frame {
  position: absolute;
  inset: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #050408;
}

.hero-bg-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.45;
}

/* Hero background video — drop /assets/video/hero.mp4 to activate */
.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.55;
  /* Hides when src is missing or unsupported */
  display: none;
}
.hero-bg-video[src]:not([src=""]) {
  display: block;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, rgba(5,4,8,0.85) 0%, rgba(13,10,92,0.7) 45%, rgba(26,15,196,0.55) 100%);
  z-index: 1;
}

/* End-card B&W photo — fades in over the gradient when video ends */
.hero-bg-endcard {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 2s ease;
  z-index: 2;
}

.hero.video-ended .hero-bg-endcard {
  opacity: 0.55;
}

.hero-sparkle {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

/* Watermark: right-aligned, fades up to end-card prominence */
.hero-watermark {
  position: absolute;
  right: 6vw;
  top: 50%;
  transform: translateY(-50%);
  width: min(38vw, 480px);
  height: auto;
  opacity: 0;
  pointer-events: none;
  z-index: 4;
  mix-blend-mode: screen;
  transition: opacity 2s ease;
}

/* End card: logo blooms up when video finishes */
.hero.video-ended .hero-watermark {
  opacity: 0.65;
}

.hero-content {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 160px var(--gutter) var(--space-xl);
  opacity: 1;
}

.hero-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-sm);
}

.hero h1 {
  font-size: clamp(2.6rem, 3.8vw, 4rem);
  max-width: 16ch;
  margin-bottom: var(--space-sm);
  color: var(--cream);
}

.hero-sub {
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(255, 241, 208, 0.72);
  max-width: 520px;
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Event page hero: poster on its own, title renders below it */
.event-hero {
  position: relative;
  padding-top: 96px;
  background: var(--black);
  display: flex;
  justify-content: center;
}

.event-hero-img {
  width: 100%;
  max-width: var(--max-width);
  display: flex;
  justify-content: center;
}

.event-hero-img img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
}

.event-hero-fallback {
  position: relative;
  width: 100%;
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-title-block {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-md) var(--gutter) 0;
}

/* Page-level hero (smaller) */
.page-hero {
  position: relative;
  background: linear-gradient(155deg, #050408 0%, #0D0A5C 50%, #1A0FC4 100%);
  background-size: cover;
  background-position: center;
  padding: 160px var(--gutter) var(--space-lg);
  overflow: hidden;
}

/* Dark overlay so text stays readable over photos */
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(5,4,8,0.72) 0%, rgba(5,4,8,0.55) 60%, rgba(5,4,8,0.75) 100%);
  z-index: 0;
}

.page-hero > * {
  position: relative;
  z-index: 1;
}

.page-hero .hero-content {
  padding: 0;
  max-width: 640px;
}

.page-hero h1 {
  margin-bottom: var(--space-sm);
}

.page-hero p {
  font-size: 1.05rem;
  color: rgba(255, 241, 208, 0.72);
  max-width: 520px;
}

@media (max-width: 768px) {
  .hero-watermark {
    right: -10vw;
    width: 75vw;
  }

  .hero.video-ended .hero-watermark {
    opacity: 0.45;
  }

  .hero-ctas {
    gap: 12px;
  }

  .page-hero {
    padding-top: 130px;
  }
}
