.video-hero { 
  width: 100%;
  aspect-ratio: 21 / 9;
  position: relative;
  overflow: hidden;
  background: #000;
  min-height: 80vh;
}

.video-hero__video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.video-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  padding: 3rem;
  pointer-events: auto;
}

.video-hero__content {
  position: relative;
  z-index: 3;
  max-width: 720px;
  color: #fff;
}

.video-hero__content h1,
.video-hero__content p {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.45);
}

.video-hero__content h1 {
  font-size: clamp(3rem, 5.2vw, 4.8rem);
  line-height: 1;
  margin-bottom: 1rem;
}

.video-hero__content p {
  font-size: clamp(1.2rem, 2.1vw, 1.5rem);
}

@media (max-width: 768px) {
  .video-hero__cta {
    display:none;
  }
}


.video-hero__controls {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  color: #fff;
}

.video-hero__controls button {
  border: 0;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
}

.video-hero__controls label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.video-hero__controls input[type="range"] {
  width: 90px;
}

@media (max-width: 768px) {
  .video-hero {
    aspect-ratio: 16 / 9;
  }

  .video-hero__overlay {
    padding: 1.5rem;
  }

  .video-hero__controls {
    left: 1rem;
    right: 1rem;
    justify-content: space-between;
  }
}




.hero-rotating-words {
  display: inline-block;
  min-width: 9ch;
  transition: opacity 160ms ease, transform 160ms ease;
}

.hero-rotating-words.is-changing {
  opacity: 0;
  transform: translateY(0.08em);
}



/* v4.7 WCAG control boundaries */
.video-hero__controls button,
.video-hero__controls input[type="range"]{
  border:2px solid #ffffff;
}
.video-hero__controls button:focus-visible,
.video-hero__controls input[type="range"]:focus-visible{
  outline:3px solid #ffffff;
  outline-offset:3px;
}
