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

.hero h1,
.hero-description {
  width: 100%;
  max-width: 100%;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.hero-visual::after {
  pointer-events: none;
  z-index: 1;
}

.hero .hero-visual {
  background: transparent;
  isolation: isolate;
}

@media (min-width: 600px) {
  .hero {
    --hero-content-width: min(calc(100vw - 80px), 1270px);
    --hero-gutter: max(40px, calc((100vw - 1270px) / 2));
    --hero-copy-width: min(590px, calc(var(--hero-content-width) * .48));
    --hero-media-left: calc(50vw - 125px);
    --hero-white-edge: calc(var(--hero-gutter) + var(--hero-copy-width) + 18px - var(--hero-media-left));
    --hero-fade: clamp(90px, 8vw, 180px);
    min-height: 720px;
    padding-bottom: 0;
  }

  .site-header {
    position: absolute;
    background: linear-gradient(180deg, #fff 0, #fffffff0 52%, #ffffff00 100%);
  }

  .hero .hero-inner,
  .inner-hero .hero-inner {
    width: var(--hero-content-width);
    padding-top: 166px;
    padding-bottom: 100px;
  }

  .hero .hero-copy,
  .inner-hero .hero-copy {
    width: var(--hero-copy-width);
    max-width: var(--hero-copy-width);
    text-align: left;
  }

  .hero .hero-visual,
  .inner-hero .hero-visual {
    position: absolute;
    left: var(--hero-media-left);
    right: 0;
    top: -38px;
    bottom: 28px;
    width: auto;
    height: auto;
    margin: 0;
    clip-path: none;
  }

  .hero .hero-visual > img,
  .hero-video {
    clip-path: url(#hero-mask);
  }

  .hero .hero-visual::after {
    background: linear-gradient(90deg,
      #fff 0,
      #fff var(--hero-white-edge),
      #fffffff0 calc(var(--hero-white-edge) + var(--hero-fade) * .2),
      #ffffff85 calc(var(--hero-white-edge) + var(--hero-fade) * .6),
      #ffffff00 calc(var(--hero-white-edge) + var(--hero-fade)));
  }

  .hero .hero-description {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
  }

  .hero .eyebrow {
    text-align: left;
  }

  .hero .button-row {
    justify-content: flex-start;
  }

  .hero .location-line {
    justify-content: flex-start;
    text-align: left;
  }

  .hero .hero-badge {
    top: auto;
    bottom: 44px;
    right: max(16px, calc((100vw - 1440px) / 2 + 16px));
  }
}

@media (min-width: 600px) and (max-width: 1100px) {
  .hero {
    --hero-content-width: calc(100vw - 64px);
    --hero-gutter: 32px;
    --hero-copy-width: calc(var(--hero-content-width) * .56);
    --hero-media-left: 42vw;
    --hero-fade: clamp(75px, 10vw, 110px);
  }

  .hero .hero-inner,
  .inner-hero .hero-inner {
    padding-top: 160px;
    padding-bottom: 90px;
  }

  .hero .hero-visual,
  .inner-hero .hero-visual {
    top: 20px;
  }

  .hero .hero-badge,
  .inner-hero .hero-badge {
    width: 185px;
    height: 150px;
    padding: 20px;
    bottom: 40px;
    gap: 10px;
  }

  .hero .trust-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .hero .trust-item {
    flex-direction: column;
    align-items: flex-start;
    max-width: none;
    border: 0;
    padding: 0;
    text-align: left;
    gap: 8px;
  }
}

@media (min-width: 600px) and (max-width: 700px) {
  .hero {
    --hero-content-width: calc(100vw - 48px);
    --hero-gutter: 24px;
  }

  .hero .hero-inner,
  .inner-hero .hero-inner {
    padding-top: 158px;
    padding-bottom: 85px;
  }

  .hero .hero-badge,
  .inner-hero .hero-badge {
    width: 160px;
    height: 132px;
    bottom: 35px;
    right: 8px;
    padding: 17px;
  }

  .inner-hero .hero-badge p {
    font-size: 24px;
  }

  .home-hero .hero-badge {
    width: 180px;
    height: 150px;
    padding: 18px;
  }

  .home-hero .hero-badge > .icon {
    display: none;
  }

  .hero .trust-item {
    align-items: center;
    text-align: center;
  }

  .hero .trust-row {
    gap: 8px;
  }
}

@media (min-width: 2001px) {
  .hero,
  .inner-hero {
    height: 760px;
    min-height: 760px;
  }

  .hero .hero-inner,
  .inner-hero .hero-inner {
    padding-top: 180px;
  }
}

@media (max-width: 599px) {
  .hero .hero-copy,
  .inner-hero .hero-copy {
    max-width: 520px;
    margin-inline: auto;
  }

  .hero .hero-visual,
  .inner-hero .hero-visual {
    position: relative;
    left: auto;
    top: auto;
    right: auto;
    bottom: auto;
    width: calc(100% + 16px);
    height: 320px;
    margin: 25px -8px 0;
    clip-path: none;
  }

  .hero .hero-visual > img,
  .hero-video {
    clip-path: url(#hero-mobile-mask);
  }

  .hero .hero-visual::after {
    background: linear-gradient(180deg, #fff 0, #fffffff0 25px, #ffffff65 70px, #ffffff00 125px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video {
    display: none;
  }
}
