/* =========================================================
   HERO OPTION 3 — Index2 split: copy left, video right
   ========================================================= */

.hero-v3 {
  --hero-v3-marquee-pad: clamp(1.15rem, 2.8vh, 1.75rem);
  position: relative;
  isolation: isolate;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - var(--site-header-h, 8.5rem));
  overflow: hidden;
  color: var(--white);
  background: var(--navy-dark);
}

.hero-v3__split {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.95fr);
  align-items: center;
  min-height: 0;
  gap: clamp(1rem, 2.5vw, 2rem);
  padding:
    clamp(1.5rem, 3.5vh, 2.5rem)
    clamp(1.5rem, 4vw, 3.75rem)
    var(--hero-v3-marquee-pad);
}

.hero-v3__copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  min-width: 0;
}

.hero-v3__copy-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1.35rem;
}

.hero-v3__title {
  max-width: 16ch;
  margin: 0;
  color: var(--white);
  font-family: var(--font-primary);
  font-size: clamp(2.85rem, 5vw, 4.75rem);
  font-weight: var(--font-primary-weight, 400);
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.hero-v3__lede {
  margin: 0;
  max-width: 28rem;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.45;
}

.hero-v3__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.hero-v3__actions .btn--secondary {
  background: rgba(255, 255, 255, 0.96);
  color: var(--navy-dark);
  border-color: transparent;
}

.hero-v3__actions .btn--secondary:hover {
  background: var(--white);
}

.hero-v3__media {
  position: relative;
  z-index: 1;
  width: min(100%, 48rem);
  height: min(70vh, 36rem);
  margin-inline: auto;
  overflow: hidden;
  border-radius: var(--radius-xl, 1.75rem);
  background: #0b0a18;
}

.hero-v3__poster,
.hero-v3__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  border: 0;
  object-fit: cover;
  object-position: center;
  background: #0b0a18;
  transform: none;
  transform-origin: center center;
}

.hero-v3__poster {
  z-index: 0;
  transition: opacity 0.45s var(--ease);
}

.hero-v3__media.is-playing .hero-v3__poster {
  opacity: 0;
  pointer-events: none;
}

.hero-v3__video {
  z-index: 1;
  pointer-events: none;
}

.hero-v3__media-btn {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.4rem;
  padding: 0.45rem 0.9rem 0.45rem 0.7rem;
  border: 0;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.55);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.25s var(--ease);
}

.hero-v3__media-btn:hover {
  background: rgba(17, 24, 39, 0.72);
}

.hero-v3__media-btn-icon {
  width: 0.65rem;
  height: 0.65rem;
  background:
    linear-gradient(var(--gold), var(--gold)) left / 35% 100% no-repeat,
    linear-gradient(var(--gold), var(--gold)) right / 35% 100% no-repeat;
}

.hero-v3__media-btn[aria-pressed="true"] .hero-v3__media-btn-icon {
  background: var(--gold);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.hero-v3__ticker {
  position: relative;
  z-index: 2;
  width: 100%;
  margin-top: auto;
  overflow: hidden;
  padding: var(--hero-v3-marquee-pad) 0;
  user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 1.25rem, #000 calc(100% - 1.25rem), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 1.25rem, #000 calc(100% - 1.25rem), transparent);
}

.hero-v3__ticker-track {
  display: flex;
  width: max-content;
  animation: proofMarquee 42s linear infinite;
  will-change: transform;
}

.hero-v3__ticker:hover .hero-v3__ticker-track {
  animation-play-state: paused;
}

.hero-v3__ticker-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: clamp(1.15rem, 2.4vw, 2rem);
  padding-right: clamp(1.15rem, 2.4vw, 2rem);
}

.hero-v3__ticker-item {
  flex-shrink: 0;
  color: var(--white);
  font-family: var(--font-primary);
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  font-weight: var(--font-primary-weight, 700);
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
  text-transform: capitalize;
}

.hero-v3__ticker-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

@keyframes proofMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 900px) {
  .hero-v3 {
    min-height: calc(100svh - var(--site-header-h, 8.5rem));
  }

  .hero-v3__split {
    grid-template-columns: 1fr;
    align-items: stretch;
    padding: 1.5rem 1.25rem var(--hero-v3-marquee-pad);
    gap: 1.15rem;
  }

  .hero-v3__copy {
    flex: 1 1 auto;
    min-height: min(34svh, 20rem);
  }

  .hero-v3__title {
    max-width: 16ch;
    font-size: clamp(2.55rem, 9.5vw, 3.5rem);
  }

  .hero-v3__media {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .hero-v3__poster,
  .hero-v3__video {
    inset: -14% 0;
    height: 128%;
    transform: scale(1.28);
  }

  .hero-v3__media-btn {
    min-height: 2.65rem;
    padding: 0.55rem 1rem 0.55rem 0.8rem;
    font-size: 0.85rem;
  }

  .hero-v3__ticker {
    padding: var(--hero-v3-marquee-pad) 0;
  }

  .hero-v3__ticker-item {
    font-size: clamp(1.65rem, 7vw, 2.2rem);
  }
}

@media (max-width: 600px) {
  .hero-v3__split {
    padding: 1.35rem 1.15rem var(--hero-v3-marquee-pad);
  }

  .hero-v3__lede {
    font-size: 1.02rem;
  }

  .hero-v3__actions {
    width: 100%;
  }

  .hero-v3__actions .btn {
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-v3__ticker-track {
    animation: none;
  }

  .hero-v3__video {
    display: none;
  }

  .hero-v3__poster {
    transform: none;
    inset: 0;
    height: 100%;
  }
}
