.home-h1-section {
  --home-h1-container-width: min(1290px, calc(var(--vw) - 48px));
  position: relative;
  width: auto;
  margin-left: var(--bleed-margin);
  margin-right: var(--bleed-margin);
  min-height: 765px;
  padding: 0;
  background: #ffffff;
  font-family: "Nunito", sans-serif;
  overflow-x: clip;
  overflow-y: visible;
}

.home-h1-section__inner {
  position: relative;
  z-index: 2;
  width: var(--home-h1-container-width);
  margin: 0 auto;
  min-height: 765px;
  padding-top: 64px;
  padding-bottom: 96px;
}

.home-h1-section__text {
  display: flex;
  width: 630px;
  max-width: 630px;
  flex-direction: column;
  gap: 24px;
}

.home-h1-section__eyebrow {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.216px;
  text-transform: uppercase;
  color: #4a5565;
}

.home-h1-section__title {
  width: 630px;
  max-width: 100%;
  margin: 0;
  font-size: clamp(32px, 5vw, 55px);
  font-weight: 500;
  line-height: 68px;
  color: #4a5565;
  text-wrap: balance;
}

.home-h1-section__body {
  width: 630px;
  max-width: 100%;
  color: #101828;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  overflow: hidden;
  transition: max-height 0.42s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.home-h1-section__body.is-collapsed {
  overflow: hidden;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 72%, rgba(0, 0, 0, 0));
}

.home-h1-section__body p {
  margin: 0;
}

.home-h1-section__body p + p {
  margin-top: 1rem;
}

.home-h1-section__body a {
  color: inherit;
  text-decoration: underline;
}

.home-h1-section__show-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: "Nunito", sans-serif;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.1;
  color: #007893;
  text-decoration: none;
  cursor: pointer;
}

.home-h1-section__show-more:hover,
.home-h1-section__show-more:focus-visible {
  text-decoration: underline;
}

.home-h1-section__show-more[hidden] {
  display: none;
}

.home-h1-section__show-more-icon {
  display: block;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.home-h1-section__show-more[aria-expanded="true"] .home-h1-section__show-more-icon {
  transform: rotate(180deg);
}

.home-h1-section__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 0.25rem;
}

.home-h1-section__media-rail {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: min(
    calc(739px + max(0px, (var(--vw) - 1728px) / 2)),
    calc(((var(--vw) + var(--home-h1-container-width)) / 2) - 654px)
  );
  min-width: 620px;
}

.home-h1-section__image-wrap {
  position: sticky;
  top: 24px;
  width: 100%;
  height: min(765px, calc(100vh - 48px));
  min-height: 520px;
  border-radius: 24px 0 0 24px;
  overflow: hidden;
  transform: scale(1);
  transform-origin: right center;
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
  .home-h1-section__image-wrap:hover {
    transform: scale(1.04);
  }
}

.home-h1-section__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: translate3d(0, var(--home-h1-image-shift, 0px), 0) scale(1.06);
  transform-origin: center center;
  transition: transform 320ms cubic-bezier(0.22, 0.61, 0.36, 1), filter 320ms cubic-bezier(0.22, 0.61, 0.36, 1);
  filter: saturate(0.96);
  will-change: transform;
}

.home-h1-section__media-rail.is-visible .home-h1-section__image {
  transform: translate3d(0, calc(var(--home-h1-image-shift, 0px) - 16px), 0) scale(1.095);
  filter: saturate(1.04);
}

@media (hover: hover) and (pointer: fine) {
  .home-h1-section__media-rail.is-visible:hover .home-h1-section__image {
    transform: translate3d(0, calc(var(--home-h1-image-shift, 0px) - 22px), 0) scale(1.11);
    filter: saturate(1.07);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-h1-section__image-wrap {
    transition: none;
  }

  .home-h1-section__image-wrap:hover {
    transform: none;
  }

  .home-h1-section__image {
    transform: none;
    filter: none;
    will-change: auto;
  }

  .home-h1-section__media-rail.is-visible .home-h1-section__image {
    transform: none;
    filter: none;
  }
}

@media (max-width: 1320px) {
  .home-h1-section {
    padding: 0;
    width: 100%;
    margin-left: 0;
  }

  .home-h1-section__inner {
    width: min(1290px, calc(var(--vw) - 64px));
    min-height: 0;
    padding-top: 56px;
    padding-bottom: 80px;
  }

  .home-h1-section__text {
    width: min(630px, 100%);
    max-width: 630px;
  }

  .home-h1-section__title {
    font-size: clamp(2.25rem, 3.5vw, 3.75rem);
    line-height: 1.13;
    width: auto;
  }

  .home-h1-section__body {
    width: auto;
  }

  .home-h1-section__media-rail {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    width: min(1290px, calc(var(--vw) - 64px));
    min-width: 0;
    margin: 0 auto 0;
    padding-bottom: 80px;
  }

  .home-h1-section__image-wrap {
    position: relative;
    top: auto;
    width: min(100%, 820px);
    margin-left: auto;
    height: 640px;
    min-height: 0;
    border-radius: 24px;
  }

  .home-h1-section__image {
    transform: none;
    filter: none;
    will-change: auto;
  }

  .home-h1-section__media-rail.is-visible .home-h1-section__image {
    transform: none;
    filter: none;
  }
}

@media (max-width: 1100px) {
  .home-h1-section {
    padding: 0;
  }

  .home-h1-section__inner {
    width: min(1290px, calc(100% - 40px));
    padding-top: 48px;
    padding-bottom: 64px;
  }

  .home-h1-section__text,
  .home-h1-section__eyebrow,
  .home-h1-section__body {
    width: auto;
    max-width: 100%;
  }

  .home-h1-section__title {
    font-size: clamp(2.25rem, 5.5vw, 3.25rem);
    line-height: 1.1;
    width: auto;
  }

  .home-h1-section__media-rail {
    width: min(1290px, calc(100% - 40px));
  }

  .home-h1-section__image-wrap {
    width: 100%;
    margin-left: 0;
    max-width: 100%;
    height: min(72vw, 560px);
    border-radius: 24px;
  }

  .home-h1-section__image {
    transform: none;
    will-change: auto;
  }
}

@media (max-width: 768px) {
  .home-h1-section {
    padding: 0;
  }

  .home-h1-section__inner {
    width: calc(100% - 32px);
    padding-top: 36px;
    padding-bottom: 48px;
  }

  .home-h1-section__title {
    font-size: clamp(2rem, 8.3vw, 2.75rem);
    line-height: 1.12;
  }

  .home-h1-section__body.is-collapsed {
    max-height: 220px;
  }

  .home-h1-section__show-more {
    font-size: 1rem;
  }

  .home-h1-section__media-rail {
    width: calc(100% - 32px);
    padding-bottom: 48px;
  }

  .home-h1-section__image-wrap {
    height: min(78vw, 420px);
    border-radius: 18px;
  }
}
