/*
 * Hero D (AEC-4117 / AEC-4144 exploration): a real looping background
 * <video>, additive to the A/B/C crossfade-image rotator variants which
 * keep their own hero-rotator.css untouched. Not loaded on hero-a/b/c.html
 * or the live site.
 *
 * This site's CSS is the live build's own purged Tailwind output, so any
 * utility class not already used somewhere on the live site compiles to
 * nothing (documented: the lg:col-span-12 collapse bug on the original
 * AEC-4117 deploy, and the order-1/lg:order-1 bug on variant B). Full
 * viewport height, z-index stacking and the bottom-anchored content
 * position below are all plain CSS for that reason, not Tailwind
 * arbitrary-value utilities.
 */

.hero-video-section {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh; /* overrides the vh fallback only where svh is supported */
}

.hero-video {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-video__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(10, 12, 16, 0.3) 0%,
    rgba(10, 12, 16, 0.18) 30%,
    rgba(10, 12, 16, 0.55) 68%,
    rgba(10, 12, 16, 0.88) 100%
  );
}

/* Same visual language as hero-rotator__controls (A/B/C), duplicated here
 * rather than shared, because this page does not load hero-rotator.css. */
.hero-video__controls {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 3;
  display: flex;
  align-items: center;
  padding: 0.4rem;
  border-radius: 999px;
  background: rgba(10, 12, 16, 0.45);
  backdrop-filter: blur(4px);
}

.hero-video__pause {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  font-size: 0.7rem;
  line-height: 1;
}

.hero-video__pause:hover {
  background: rgba(255, 255, 255, 0.15);
}

.hero-video__pause:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.hero-video__content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: flex-end;
  padding-bottom: 3rem;
}

@media (min-width: 40rem) {
  .hero-video__content {
    padding-bottom: 4.5rem;
  }
}

@media (min-width: 64rem) {
  .hero-video__content {
    padding-bottom: 6rem;
  }
}

.hero-video__stack {
  max-width: 38rem;
}

/* Reduced motion: the video never autoplays (handled in JS, which shows the
 * poster as a static frame instead) and the pause control is pre-set to its
 * "paused" state, so nothing here needs to animate. */
