/* WEB-03: Homepage video hero. Scoped to the TDMI home page only. */
.tdmi-home-video-hero {
  position: relative;
  margin-top: var(--tdmi-home-header-height, 147px);
  height: 775px;
  min-height: 775px;
  overflow: hidden;
  background: #07294d;
  isolation: isolate;
}

.tdmi-home-video-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  z-index: 0;
}

.tdmi-home-video-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(3, 24, 46, .76) 0%, rgba(3, 24, 46, .58) 34%, rgba(3, 24, 46, .14) 58%, rgba(3, 24, 46, 0) 76%);
}

.tdmi-home-video-hero__container {
  position: relative;
  z-index: 2;
  min-height: inherit;
}

.tdmi-home-video-hero__content {
  position: absolute;
  left: 15px;
  top: 50%;
  bottom: auto;
  width: min(650px, calc(50% - 30px));
  color: #fff;
  opacity: 1;
  transform: translate3d(0, -50%, 0);
  transition: opacity .5s ease, transform .65s ease;
  will-change: opacity, transform;
}

.tdmi-home-video-hero__content.is-hidden {
  opacity: 0;
  transform: translate3d(-24px, -50%, 0);
  pointer-events: none;
}

.tdmi-home-video-hero__title {
  margin: 0;
  max-width: 650px;
  color: #fff;
  font-size: clamp(46px, 3.5vw, 58px);
  line-height: 1.08;
  letter-spacing: -.02em;
  text-shadow: 0 3px 18px rgba(0, 0, 0, .28);
}

.tdmi-home-video-hero__description {
  margin-top: 18px;
  max-width: 650px;
  color: rgba(255, 255, 255, .94);
  font-size: 18px;
  line-height: 1.6;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .28);
}

.tdmi-home-video-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.tdmi-home-video-hero .main-btn.tdmi-hero-secondary {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
  line-height: 56px;
}

.tdmi-home-video-hero .main-btn.tdmi-hero-secondary:hover,
.tdmi-home-video-hero .main-btn.tdmi-hero-secondary:focus,
.tdmi-home-video-hero .main-btn.tdmi-hero-secondary:active {
  background: #fff;
  border-color: #fff;
  color: #07294d;
}

@media only screen and (min-width: 992px) and (max-width: 1199px) {
  .tdmi-home-video-hero {
    height: 650px;
    min-height: 650px;
  }

  .tdmi-home-video-hero__content {
    width: min(600px, calc(56% - 30px));
  }

  .tdmi-home-video-hero__title {
    font-size: 52px;
  }
}

@media (max-width: 991px) {
  .tdmi-home-video-hero {
    height: 620px;
    min-height: 620px;
  }

  .tdmi-home-video-hero__content {
    width: min(540px, calc(62% - 30px));
  }

  .tdmi-home-video-hero__title {
    font-size: clamp(38px, 6vw, 52px);
  }
}

@media (max-width: 767px) {
  .tdmi-home-video-hero {
    height: 590px;
    min-height: 590px;
  }

  .tdmi-home-video-hero__video {
    object-position: 58% 42%;
  }

  .tdmi-home-video-hero::after {
    background: linear-gradient(90deg, rgba(3, 24, 46, .76) 0%, rgba(3, 24, 46, .55) 58%, rgba(3, 24, 46, .12) 100%);
  }

  .tdmi-home-video-hero__content {
    top: 50%;
    left: 20px;
    right: 20px;
    bottom: auto;
    width: auto;
    transform: translate3d(0, -50%, 0);
  }

  .tdmi-home-video-hero__content.is-hidden {
    transform: translate3d(-18px, -50%, 0);
  }

  .tdmi-home-video-hero__title {
    max-width: 500px;
    font-size: clamp(34px, 9.4vw, 44px);
  }

  .tdmi-home-video-hero__description {
    margin-top: 14px;
    max-width: 500px;
    font-size: 16px;
    line-height: 1.5;
  }

  .tdmi-home-video-hero__actions {
    margin-top: 22px;
    gap: 10px;
  }

  .tdmi-home-video-hero .main-btn.tdmi-hero-secondary {
    line-height: 41px;
  }
}

@media (max-width: 480px) {
  .tdmi-home-video-hero {
    height: 610px;
    min-height: 610px;
  }

  .tdmi-home-video-hero__video {
    object-position: 61% 42%;
  }

  .tdmi-home-video-hero__title {
    font-size: 34px;
    line-height: 1.12;
  }

  .tdmi-home-video-hero__actions .main-btn {
    padding-left: 17px;
    padding-right: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tdmi-home-video-hero__content {
    transition: none;
  }
}
