.home-h1-split {
  --home-shell-gutter: max(20px, calc((100vw - 1290px) / 2));
  position: relative;
  overflow: visible;
  min-height: 792px;
  padding: 96px 0;
  background: #f8fafc;
}

.home-h1-split__media {
  position: sticky;
  top: clamp(20px, 4vh, 56px);
  align-self: start;
  width: 520px;
  height: 600px;
}

.home-h1-split__media-underlay {
  position: absolute;
  left: min(0px, calc((100vw - 1290px) / -2));
  right: -24px;
  top: -20px;
  width: auto;
  height: 640px;
  border-radius: 0 48px 48px 0;
  background: #d9edf8;
  z-index: 0;
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.home-h1-split__inner {
  position: relative;
  z-index: 1;
  width: min(1290px, calc(100% - 40px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 520px 1fr;
  gap: 55px;
  align-items: start;
}

.home-h1-split__image-frame {
  position: relative;
  z-index: 1;
  width: 520px;
  height: 600px;
  border-radius: 48px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(21, 50, 75, 0.18);
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.home-h1-split__image-frame picture {
  display: block;
  width: 100%;
  height: 100%;
}

.home-h1-split__image-frame picture img,
.home-h1-split__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.home-h1-split__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  transition: background 260ms ease;
}

.home-h1-split--about .home-h1-split__media {
  position: relative;
  top: auto;
  min-height: 460px;
}

.home-h1-split--about .home-h1-split__media-underlay {
  height: auto;
  bottom: -16px;
  border-radius: 28px;
}

.home-h1-split--about .home-h1-split__image-frame {
  width: min(100%, 420px);
  height: auto;
  aspect-ratio: 4 / 5;
  border-radius: 22px;
}

.home-h1-split--about .home-h1-split__overlay {
  background: rgba(0, 0, 0, 0.08);
}

.home-h1-split__media-secondary {
  position: absolute;
  right: -34px;
  bottom: -34px;
  width: min(56%, 228px);
  aspect-ratio: 4 / 4.2;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(21, 50, 75, 0.16);
  background: #ffffff;
  z-index: 3;
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 260ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.home-h1-split__media-secondary picture,
.home-h1-split__media-secondary-image {
  display: block;
  width: 100%;
  height: 100%;
}

.home-h1-split__media-secondary-image {
  object-fit: cover;
  object-position: center;
  transition: transform 380ms cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) and (pointer: fine) {
  .home-h1-split__image-frame:hover,
  .home-h1-split__image-frame:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 28px 78px rgba(21, 50, 75, 0.24);
  }

  .home-h1-split__image-frame:hover .home-h1-split__image,
  .home-h1-split__image-frame:focus-within .home-h1-split__image {
    transform: scale(1.04);
  }

  .home-h1-split__image-frame:hover .home-h1-split__overlay,
  .home-h1-split__image-frame:focus-within .home-h1-split__overlay {
    background: rgba(0, 0, 0, 0.14);
  }

  .home-h1-split--about .home-h1-split__media-secondary:hover,
  .home-h1-split--about .home-h1-split__media-secondary:focus-within {
    transform: translate3d(4px, -6px, 0);
    box-shadow: 0 24px 52px rgba(21, 50, 75, 0.22);
  }

  .home-h1-split--about .home-h1-split__media-secondary:hover .home-h1-split__media-secondary-image,
  .home-h1-split--about .home-h1-split__media-secondary:focus-within .home-h1-split__media-secondary-image {
    transform: scale(1.035);
  }

}

.home-h1-split__stats {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  color: #fff;
  padding: 0 20px 26px;
}

.home-h1-split__stat {
  padding-inline: 22px;
  border-right: 1px solid rgba(217, 237, 248, 0.95);
}

.home-h1-split__stat:first-child {
  padding-left: 8px;
}

.home-h1-split__stat:last-child {
  border-right: 0;
  padding-right: 8px;
}

.home-h1-split__stat strong {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(34px, 2.8vw, 39px);
  line-height: 1.1;
  font-weight: 500;
}

.home-h1-split__stat span {
  display: block;
  font-size: 16px;
  line-height: 1.6;
}

.home-h1-split__content {
  max-width: 715px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.home-h1-split__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #5fa8d3;
  border-radius: 60px;
  color: #dde5ec;
  background: rgba(21, 50, 75, 0.7);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.012em;
  backdrop-filter: blur(4px);
}

.home-h1-split__eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5fa8d3;
}

.home-h1-split__title {
  margin: 0;
  max-width: 715px;
  font-size: clamp(41px, 4vw, 61px);
  line-height: 1.1;
  font-weight: 400;
}

.home-h1-split__title-primary {
  color: #15324b;
}

.home-h1-split__title-highlight {
  color: #5fa8d3;
}

.home-h1-split__body {
  color: #15324b;
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.6;
  width: 100%;
  max-width: 715px;
}

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

.home-h1-split__body p + p {
  margin-top: 14px;
}

.home-h1-split__body a {
  color: #2f80b7;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.home-h1-split__body a[href^="tel:"] {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.home-h1-split__body a:hover,
.home-h1-split__body a:focus-visible {
  color: #1f6a9a;
  border-bottom-color: currentColor;
}

.home-h1-split__body-highlight {
  text-decoration: none;
}

.home-h1-split__toggle {
  margin-top: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #2f80b7;
  font-size: 14px;
  line-height: 1.1;
  font-weight: 600;
  text-transform: uppercase;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
}

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

.home-h1-split__toggle svg {
  transition: transform 0.2s ease;
}

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

@media (max-width: 1080px) {
  .home-h1-split {
    min-height: 0;
    padding: 80px 0;
  }

  .home-h1-split__inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .home-h1-split__media {
    position: relative;
    top: auto;
    width: min(100%, 560px);
    margin-inline: auto;
  }

  .home-h1-split--about .home-h1-split__media {
    min-height: 420px;
  }

  .home-h1-split--about .home-h1-split__image-frame {
    width: min(100%, 390px);
  }

  .home-h1-split__media-secondary {
    right: -24px;
    bottom: -24px;
    width: min(56%, 210px);
  }

  .home-h1-split__image-frame {
    width: 100%;
    height: 100%;
  }

  .home-h1-split__content {
    max-width: 100%;
    align-items: center;
    text-align: center;
  }

  .home-h1-split__media-underlay {
    left: -20px;
    right: -20px;
    top: -20px;
    width: auto;
    height: calc(100% + 40px);
    border-radius: 0;
  }
}

@media (max-width: 680px) {
  .home-h1-split {
    padding: 70px 0;
  }

  .home-h1-split__inner {
    width: min(100% - 28px, 1290px);
    gap: 26px;
  }

  .home-h1-split__media {
    width: 100%;
    height: 460px;
  }

  .home-h1-split--about .home-h1-split__media {
    height: auto;
    min-height: 340px;
  }

  .home-h1-split__image-frame {
    width: 100%;
    height: 100%;
    border-radius: 30px;
  }

  .home-h1-split--about .home-h1-split__image-frame {
    width: min(100%, 320px);
    height: auto;
    border-radius: 18px;
  }

  .home-h1-split__media-secondary {
    width: min(48vw, 170px);
    right: -10px;
    bottom: -14px;
    border-radius: 14px;
  }

  .home-h1-split__media-underlay {
    left: -12px;
    right: -12px;
    top: -12px;
    height: calc(100% + 24px);
    border-radius: 30px;
  }

  .home-h1-split__stats {
    padding: 0 14px 16px;
  }

  .home-h1-split__stat {
    padding-inline: 12px;
  }

  .home-h1-split__stat span {
    font-size: 14px;
    line-height: 1.4;
  }
}

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

  .home-h1-split__media-underlay,
  .home-h1-split__image-frame,
  .home-h1-split__media-secondary,
  .home-h1-split__image-frame picture img,
  .home-h1-split__image,
  .home-h1-split__media-secondary-image,
  .home-h1-split__overlay {
    transition: none;
  }
}
