.service-flow-hero .service-hero {
  --service-hero-edge: clamp(18px, 5vw, 72px);
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr;
  min-height: min(650px, calc(100vh - 76px));
  align-items: center;
  overflow: hidden;
  padding-top: 52px;
  padding-bottom: 52px;
  background: linear-gradient(180deg, #fff 0%, #fff 62%, rgba(248, 251, 253, 0.82) 84%, #f8fbfd 100%);
}

.service-flow-hero .service-hero > div {
  position: relative;
  z-index: 3;
  width: min(640px, 45vw);
}

.service-flow-hero .service-hero h1 {
  max-width: 12.4em;
  text-wrap: balance;
}

.service-flow-hero .service-hero .hero-copy {
  max-width: 610px;
}

.service-flow-hero .service-hero-visual {
  position: absolute;
  inset: 0 0 0 35%;
  z-index: 0;
  width: auto;
  height: 100%;
  margin: 0;
  aspect-ratio: auto;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #edf3f7;
  box-shadow: none;
}

.service-flow-hero .service-hero-visual::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.98) 9%, rgba(255, 255, 255, 0.84) 20%, rgba(255, 255, 255, 0.32) 34%, rgba(255, 255, 255, 0) 48%);
}

.service-flow-hero .service-hero-visual::before {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  height: clamp(150px, 24vh, 210px);
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, rgba(248, 251, 253, 0) 0%, rgba(248, 251, 253, 0.2) 28%, rgba(248, 251, 253, 0.72) 68%, rgba(248, 251, 253, 0.97) 92%, #f8fbfd 100%);
}

.service-flow-hero .service-hero-visual picture,
.service-flow-hero .service-hero-visual img {
  width: 100%;
  height: 100%;
}

.service-flow-hero .service-hero-visual img {
  object-fit: cover;
  object-position: 58% center;
}

@media (max-width: 1080px) {
  .service-flow-hero .service-hero > div {
    width: min(590px, 52vw);
  }

  .service-flow-hero .service-hero-visual {
    left: 42%;
  }
}

@media (max-width: 900px) {
  .service-flow-hero .service-hero {
    min-height: auto;
    align-items: start;
    gap: 34px;
    padding-top: 38px;
    padding-bottom: 0;
  }

  .service-flow-hero .service-hero > div {
    width: 100%;
    max-width: 720px;
  }

  .service-flow-hero .service-hero-visual {
    position: relative;
    inset: auto;
    z-index: 1;
    width: calc(100% + (var(--service-hero-edge) * 2));
    height: auto;
    margin-left: calc(var(--service-hero-edge) * -1);
    aspect-ratio: 16 / 9;
  }

  .service-flow-hero .service-hero-visual::after {
    display: none;
  }

  .service-flow-hero .service-hero-visual::before {
    height: 34%;
  }

  .service-flow-hero .service-hero-visual img {
    object-position: center center;
  }
}

@media (max-width: 660px) {
  .service-flow-hero .service-hero {
    gap: 28px;
    padding-top: 26px;
  }

  .service-flow-hero .service-hero h1 {
    font-size: clamp(37px, 11vw, 50px);
  }

  .service-flow-hero .service-hero-visual {
    aspect-ratio: 3 / 2;
  }

  .service-flow-hero .service-hero-visual img {
    object-position: 55% center;
  }
}
