/* Home Video Hero */

.page-home .home-video-hero,
.page-cms .home-video-hero {
  /* 100vw includes the scrollbar width; --scrollbar-w is set in JS */
  width: var(--hero-vw);
  max-width: var(--hero-vw);
  margin-left: calc(50% - var(--hero-vw) / 2);
  margin-right: calc(50% - var(--hero-vw) / 2);
}

:root {
  --hero-vw: calc(100vw - var(--scrollbar-w, 0px));
}

.home-video-hero {
  --hero-accent: #0084b1;
  --hero-radius: 3.125rem;
  --hero-cta-invert: 1.375rem;
  --hero-cta-gap: 0.875rem;
  --hero-cta-w: clamp(15rem, 23vw, 20.6875rem);
  --hero-cta-shell-w: calc(var(--hero-cta-w) + 2 * var(--hero-cta-gap));
  --hero-dock-h: clamp(5.5rem, 7.85vw, 7.0625rem);
  --hero-dock-gap: clamp(0.75rem, 1.5vw, 1.5rem);
  --hero-content-max: 90rem;
  --hero-pad-x: clamp(2.5rem, 7.4vw, 6.625rem);
  --hero-bottom-indent: clamp(1rem, 2.25vw, 2rem);
  --hero-scroll-size: clamp(4.5rem, 6.67vw, 6rem);

  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  overflow: visible;
  background: transparent;
  color: #fff;
  border-bottom-left-radius: var(--hero-radius);
  border-bottom-right-radius: var(--hero-radius);
}

.home-video-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-top: none;
  border-bottom-left-radius: var(--hero-radius);
  border-bottom-right-radius: var(--hero-radius);
}

.home-video-hero--no-media {
  background: #0a1620;
}

.home-video-hero--no-media .home-video-hero__media {
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(0, 132, 177, 0.22) 0%, transparent 55%),
    linear-gradient(180deg, #0d1f2d 0%, #061018 100%);
}

.home-video-hero__media {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  border-bottom-left-radius: var(--hero-radius);
  border-bottom-right-radius: var(--hero-radius);
}

.home-video-hero__video,
.home-video-hero__poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.home-video-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.32) 0%, rgba(0, 0, 0, 0.12) 45%, rgba(0, 0, 0, 0.48) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.38) 0%, rgba(0, 0, 0, 0.08) 52%, rgba(0, 0, 0, 0.28) 100%);
  pointer-events: none;
}

.home-video-hero__content {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-top: clamp(10rem, 21.5vh, 16.25rem);
  padding-bottom: 0;
  pointer-events: none;
}

.home-video-hero__content > * {
  pointer-events: auto;
}

.home-video-hero__bottom {
  width: 100%;
  margin-top: auto;
}

.home-video-hero .container {
  padding-left: var(--hero-pad-x);
  padding-right: clamp(1.5rem, 4vw, 3rem);
}

.home-video-hero__content > .home-video-hero__container:not(.home-video-hero__container--bottom) {
  max-width: none !important;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.home-video-hero .container.home-video-hero__container--bottom,
.home-video-hero__subtitle-band > .container {
  max-width: none !important;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-left: calc(var(--hero-pad-x) + var(--hero-bottom-indent));
}

.home-video-hero .container.home-video-hero__container--bottom {
  margin-bottom: clamp(1.25rem, 2.3vw, 2.125rem);
  padding-top: 0;
  padding-right: calc(var(--hero-cta-shell-w) + var(--hero-cta-invert) + var(--hero-dock-gap));
}

.home-video-hero__subtitle-band > .container {
  padding-right: calc(var(--hero-scroll-size) + 4rem);
}

@media (min-width: 1400px) {
  .home-video-hero__content > .home-video-hero__container:not(.home-video-hero__container--bottom) {
    padding-left: calc(max(0px, (var(--hero-vw) - var(--hero-content-max)) / 2) + var(--hero-pad-x));
  }

  .home-video-hero .container.home-video-hero__container--bottom,
  .home-video-hero__subtitle-band > .container {
    padding-left: calc(max(0px, (var(--hero-vw) - var(--hero-content-max)) / 2) + var(--hero-pad-x) + var(--hero-bottom-indent));
  }
}

.home-video-hero__copy {
  max-width: min(57.5rem, 100%);
}

.home-video-hero__title {
  margin: 0;
  padding: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
}

.home-video-hero__line {
  display: block;
  margin: 0;
  color: #fff;
}

.home-video-hero__line--top,
.home-video-hero__line--bottom {
  padding-left: 0.12em;
  font-size: clamp(2rem, 3.34vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.home-video-hero__line--main {
  margin: 0.12em 0 0.1em;
  font-size: clamp(4.5rem, 11.8vw, 10.625rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0.02em;
}

.home-video-hero__subtitle-band {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: clamp(1rem, 1.5vw, 1.375rem);
}

.home-video-hero__subtitle {
  margin: 0;
  font-size: clamp(1.5rem, 3.34vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
}

.home-video-hero__scroll {
  position: absolute;
  top: 50%;
  right: clamp(1.5rem, 2.5vw, 2.25rem);
  z-index: 7;
  width: var(--hero-scroll-size);
  height: var(--hero-scroll-size);
  padding: 0;
  margin: 0;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.home-video-hero__scroll-icon {
  width: 52%;
  height: auto;
  display: block;
}

.home-video-hero__scroll:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(calc(-50% + 4px));
}

.home-video-hero__features {
  display: inline-flex;
  align-items: center;
  gap: clamp(1.25rem, 2.8vw, 2.5rem);
  max-width: 100%;
  min-height: 8.625rem;
  padding: 2rem 1.5rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid #979797;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  box-sizing: border-box;
  isolation: isolate;
}

.home-video-hero__feature {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 0;
}

.home-video-hero__feature-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.home-video-hero .home-video-hero__feature-icon.material-icons {
  flex-shrink: 0;
  font-size: 1.375rem;
  width: 1.375rem;
  height: 1.375rem;
  color: #fff;
}

.home-video-hero__feature-title {
  font-size: clamp(1.125rem, 1.67vw, 1.5rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.015em;
  white-space: nowrap;
  color: #fff;
}

.home-video-hero__feature-desc {
  max-width: 15rem;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.2;
  color: #fff;
}

.home-video-hero__cta-shell {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: flex;
  width: var(--hero-cta-shell-w);
  height: var(--hero-dock-h);
  padding: var(--hero-cta-gap) var(--hero-cta-gap) 0;
  box-sizing: border-box;
  background: #fff;
  border-top-left-radius: var(--hero-cta-invert);
}

.home-video-hero__cta-shell::before,
.home-video-hero__cta-shell::after {
  content: '';
  position: absolute;
  width: var(--hero-cta-invert);
  height: var(--hero-cta-invert);
  background: transparent;
  border-bottom-right-radius: var(--hero-cta-invert);
  box-shadow: var(--hero-cta-invert) var(--hero-cta-invert) 0 var(--hero-cta-invert) #fff;
  pointer-events: none;
}

.home-video-hero__cta-shell::before {
  top: calc(-1 * var(--hero-cta-invert));
  right: 0;
}

.home-video-hero__cta-shell::after {
  bottom: 0;
  left: calc(-1 * var(--hero-cta-invert));
}

.home-video-hero__cta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0 0.75rem;
  border-radius: 2rem;
  background: #fff;
  color: var(--hero-accent) !important;
  border: 2.5px solid var(--hero-accent);
  font-size: clamp(1.125rem, 1.8vw, 1.625rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-align: center;
  text-decoration: none !important;
  box-sizing: border-box;
  transition: background-color 0.25s ease, color 0.25s ease;
}

@media (min-width: 1200px) {
  .home-video-hero__cta {
    white-space: nowrap;
  }
}

.home-video-hero__cta:hover {
  background: var(--hero-accent);
  color: #fff !important;
}

.home-video-hero .material-icons {
  font-family: 'Material Icons' !important;
  font-weight: normal !important;
  font-style: normal !important;
  font-size: inherit;
  display: inline-block;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'liga';
}

@media (max-width: 1199.98px) {
  .home-video-hero {
    --hero-radius: 2.5rem;
  }
}

@media (max-width: 1359.98px) {
  .home-video-hero__features {
    display: inline-grid;
    grid-template-columns: repeat(2, auto);
    gap: 1rem 2rem;
    min-height: 0;
    padding: 1.25rem 1.5rem;
  }

  .home-video-hero__feature-title {
    font-size: 1.125rem;
  }

  .home-video-hero__feature-desc {
    font-size: 0.8125rem;
  }
}

@media (max-width: 991.98px) {
  .home-video-hero {
    --hero-radius: 1.75rem;
    --hero-pad-x: clamp(1.25rem, 5vw, 2rem);
    --hero-bottom-indent: 0px;
    min-height: 0;
  }

  .home-video-hero__content {
    min-height: 0;
    padding-top: calc(var(--hero-header-height, 5rem) + 2rem);
  }

  .home-video-hero__content > .home-video-hero__container:not(.home-video-hero__container--bottom) {
    flex: 1 1 auto;
    display: flex;
    align-items: flex-end;
    width: 100%;
    padding-bottom: clamp(1.5rem, 5vh, 2.5rem);
  }

  .home-video-hero__copy {
    max-width: 100%;
  }

  .home-video-hero__bottom {
    flex-shrink: 0;
    margin-top: 0;
  }

  .home-video-hero__line--top,
  .home-video-hero__line--bottom {
    font-size: clamp(1.75rem, 7.5vw, 2.5rem);
  }

  .home-video-hero__line--main {
    font-size: clamp(4rem, 21vw, 7.5rem);
    letter-spacing: 0.01em;
  }

  .home-video-hero__subtitle-band {
    margin-bottom: 1rem;
  }

  .home-video-hero__subtitle-band > .container {
    padding-right: var(--hero-pad-x);
  }

  .home-video-hero__subtitle {
    font-size: clamp(1.375rem, 5.6vw, 2rem);
  }

  .home-video-hero__scroll {
    display: none !important;
  }

  .home-video-hero .container.home-video-hero__container--bottom {
    margin-bottom: 0.75rem;
    padding-right: var(--hero-pad-x);
  }

  .home-video-hero__features {
    display: grid;
    align-items: start;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.125rem 1rem;
    width: 100%;
    padding: 1.125rem 1.125rem 1.25rem;
    border-radius: 1.25rem;
    border-color: rgba(255, 255, 255, 0.45);
  }

  .home-video-hero__feature {
    gap: 0.25rem;
  }

  .home-video-hero__feature-head {
    align-items: flex-start;
    gap: 0.4rem;
  }

  .home-video-hero .home-video-hero__feature-icon.material-icons {
    margin-top: 0.06em;
  }

  .home-video-hero .home-video-hero__feature-icon.material-icons {
    font-size: 1.125rem;
    width: 1.125rem;
    height: 1.125rem;
  }

  .home-video-hero__feature-title {
    font-size: 1rem;
    font-weight: 400;
    white-space: normal;
  }

  .home-video-hero__feature-desc {
    font-size: 0.75rem;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.85);
  }

  .home-video-hero__cta-shell {
    position: relative;
    right: auto;
    bottom: auto;
    z-index: 3;
    width: 100%;
    height: auto;
    margin-top: 0;
    padding: 0 var(--hero-pad-x) clamp(1.25rem, 5vw, 1.75rem);
    background: transparent;
    border-radius: 0;
  }

  .home-video-hero__cta-shell::before,
  .home-video-hero__cta-shell::after,
  .home-video-hero::after {
    display: none;
  }

  .home-video-hero__cta {
    min-height: 3.5rem;
    border-color: #fff;
    border-radius: 999px;
    font-size: 1.0625rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  }

  .home-video-hero__cta:hover {
    border-color: var(--hero-accent);
  }
}

@media (max-width: 374.98px) {
  .home-video-hero__features {
    grid-template-columns: minmax(0, 1fr);
  }
}
:has(.home-video-hero--builder-page) .page-header {
  display: none;
}

:has(.home-video-hero--builder-page) #wrapper {
  padding-top: 0 !important;
}

body:has(.home-video-hero--builder-page) .home-video-hero {
  width: var(--hero-vw);
  max-width: var(--hero-vw);
  margin-left: calc(50% - var(--hero-vw) / 2);
  margin-right: calc(50% - var(--hero-vw) / 2);
}
