/* Homepage HERO display modes: CMS-controlled video or the existing image carousel. */
html[data-hero-pending="true"] .hero-slides,
html[data-hero-pending="true"] .hero-content,
html[data-hero-pending="true"] .hero-slider-controls { visibility: hidden; }
.hero-play-button {
  position: absolute;
  z-index: 6;
  left: 50%;
  top: 55%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: rgba(9, 8, 24, .65);
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}
.hero-play-button[hidden],
.hero[data-hero-mode="images"] .hero-play-button { display: none; }
.hero-play-button:focus-visible { outline: 3px solid #a17aff; outline-offset: 5px; }
.hero-background-video {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-video-content {
  position: absolute;
  z-index: 4;
  top: 52%;
  left: 50%;
  width: min(920px, calc(100% - 48px));
  transform: translate(-50%, -50%);
  text-align: center;
  text-shadow: 0 5px 28px rgba(0, 0, 0, .62);
}

.hero-video-kicker {
  display: flex;
  justify-content: center;
  gap: 13px;
  margin-bottom: 23px;
  color: rgba(255, 255, 255, .82);
  font: 700 11px "Space Mono", monospace;
  letter-spacing: .22em;
}

.hero-video-kicker span { color: var(--lime); }
.hero-video-message { transition: opacity .24s ease, transform .24s ease; }
.hero-video-message.is-changing { opacity: 0; transform: translateY(12px); }

.hero-video-content h2 {
  margin: 0;
  color: #fff;
  font: 400 clamp(58px, 7vw, 112px)/.9 "Archivo Black", Impact, sans-serif;
  letter-spacing: -.075em;
  text-transform: uppercase;
}

.hero-video-content h2 em { color: #a17aff; font-style: normal; }
.hero-video-content > .hero-video-message > p {
  max-width: 680px;
  margin: 24px auto 0;
  color: rgba(255, 255, 255, .88);
  font-size: clamp(16px, 1.45vw, 21px);
  line-height: 1.55;
}

.hero-video-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: 34px;
}

.hero[data-hero-mode="video"]:before {
  background: linear-gradient(180deg, rgba(2, 2, 12, .52), rgba(2, 2, 12, .25) 43%, rgba(2, 2, 12, .72));
}

.hero[data-hero-mode="video"] .hero-slides,
.hero[data-hero-mode="video"] > .hero-content,
.hero[data-hero-mode="video"] .open-note,
.hero[data-hero-mode="video"] .hero-slider-controls { display: none; }

.hero[data-hero-mode="images"] .hero-background-video,
.hero[data-hero-mode="images"] .hero-video-content { display: none; }

@media (max-width: 760px) {
  .hero-video-content { top: 51%; width: calc(100% - 36px); }
  .hero-video-content h2 { font-size: clamp(48px, 15vw, 74px); }
  .hero-video-content > .hero-video-message > p { max-width: 520px; margin-top: 20px; font-size: 15px; }
  .hero-video-actions { flex-direction: column; gap: 18px; margin-top: 27px; }
  .hero-video-actions .pill { min-height: 54px; }
  .hero-video-actions .watch-link { display: flex; }
  /* Reserve the existing 76px navigation row, then show the complete frame.
     Intrinsic video/poster dimensions determine height, including future uploads. */
  .hero[data-hero-mode="video"] {
    height: auto;
    min-height: 0;
    padding-top: 76px;
  }
  .hero[data-hero-mode="video"] .hero-background-video {
    position: relative;
    inset: auto;
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
  }
  .hero[data-hero-mode="video"]::before,
  .hero[data-hero-mode="video"] .hero-glow { display: none; }
  .hero[data-hero-mode="video"] .hero-play-button { top: calc(50% + 38px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video-message { transition: none; }
}
