/* ---------- HERO TOP BAR (outside the video) ---------- */
.hero-topbar {
  max-width: 1160px;
  margin: 40px auto 12px;      /* space above video like Apple */
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 16px;
}
.hero-topbar .ht-title {
  font-family: "Outfit", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 6vw, 64px);
  line-height: 1.05;
  margin: 0;
  color: #111;
}
.hero-topbar .ht-subtitle {
  font-family: "Outfit", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 600;
  font-size: clamp(16px, 2.2vw, 24px);
  line-height: 1.25;
  margin: 0;
  color: #111;
  text-align: right;
  white-space: nowrap;
}

/* ---------- HERO INDEX (video/image container) ---------- */
.hero-index {
  --w: 100%;
  --r: 0px;
  width: var(--w);
  height: 76vh;
  max-height: 920px;
  border-radius: var(--r);
  overflow: hidden;
  margin: 32px auto;
  position: relative;
  background: #0b0b0b;
}

/* Media layers fill and stack */
.hero-media,
.hero-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-media { z-index: 1; }     /* video */
.hero-fallback {
  z-index: 2;                   /* image sits on top until video is ready */
  opacity: 1;
  transition: opacity .4s ease;
}

/* When JS confirms the video can play, fade the image out */
.hero-index.is-video-ready .hero-fallback {
  opacity: 0;
  pointer-events: none;
}

/* ---------- MOBILE ---------- */
@media (max-width: 767px) {
  .hero-topbar {
    grid-template-columns: 1fr;
    gap: 4px;
    margin: 24px auto 8px;
  }
  .hero-topbar .ht-subtitle {
    text-align: left;
    white-space: normal;
  }
  .hero-index {
    height: 62vh;
    max-height: 680px;
  }
}

/* ---------- ACCESSIBILITY ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-index { transition: none !important; }
}
