.homepage-hero {
  --hero-gutter: clamp(24px, 10.5vw, 78px);
  --hero-blue: #2d46b5;
  --hero-ink: #101938;
  display: grid;
  grid-template-columns: var(--hero-gutter) minmax(0, 1fr) var(--hero-gutter);
  grid-template-rows: auto auto auto auto;
  position: relative;
  isolation: isolate;
}

.homepage-hero__background {
  grid-area: 1 / 1 / 4 / -1;
  position: relative;
  z-index: -1;
  background: #293d9d;
}

.homepage-hero__background img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.homepage-hero__right {
  display: contents;
}

.homepage-hero__copy {
  grid-area: 2 / 2;
  padding: clamp(150px, 31vw, 240px) 0 clamp(48px, 9vw, 104px);
  color: #fff;
}

.homepage-hero__eyebrow {
  display: inline-block;
  margin: 0 0 28px;
  padding: 9px 23px;
  border: 1px solid #becbff55;
  border-radius: 100px;
  background: #8c9dd9;
  font-size: 15px;
  line-height: 1.4;
}

.homepage-hero__copy h1 {
  max-width: 25ch;
  margin: 0 0 24px;
  color: inherit;
  font-size: clamp(34px, 5.5vw, 54px);
  font-weight: 600;
  line-height: 1.1;
}

.homepage-hero__description {
  max-width: 62ch;
  margin: 0 0 30px;
  font-size: 16px;
  line-height: 1.45;
}

.homepage-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.homepage-hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 10px 18px;
  color: #fff;
  border: 1px solid #fff;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
}

.homepage-hero__button:hover,
.homepage-hero__button--primary {
  background: #fff;
  color: #263275;
}

.homepage-hero__arrow {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 11px;
  background: #304eaa;
}

.homepage-hero__arrow img {
  display: block;
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.homepage-hero__cards,
.homepage-hero__socials {
  padding: 0;
  margin: 0;
  list-style: none;
}

.homepage-hero__cards {
  grid-area: 3 / 1 / 4 / -1;
  display: flex;
  gap: 18px;
  padding: 0 var(--hero-gutter) 56px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--hero-gutter);
  scrollbar-width: none;
}

.homepage-hero__cards::-webkit-scrollbar {
  display: none;
}

.homepage-hero__cards > li {
  flex: 0 0 min(412px, 82vw);
  min-width: 0;
  scroll-snap-align: start;
}

.homepage-hero__card {
  display: grid;
  grid-template-columns: minmax(0, 32%) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 100%;
  padding: 10px;
  background: #fff;
  border-radius: 22px;
  color: var(--hero-ink);
  text-decoration: none;
}

.homepage-hero__card:hover {
  color: #202c8e;
  background-color: #f8f9ff;
}

.homepage-hero__card-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 17px;
  background: #f1f3fa;
}

.homepage-hero__card-copy {
  padding: 2px 12px 2px 0;
}

.homepage-hero__card-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--hero-blue);
  font-size: 14px;
  line-height: 1.2;
}

.homepage-hero__card-heading > img {
  flex: none;
}

.homepage-hero__card-heading .homepage-hero__arrow {
  margin-left: auto;
}

.homepage-hero__card p {
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 1.35;
}

.homepage-hero__socials {
  grid-area: 1 / 2;
  justify-self: start;
  align-self: start;
  display: flex;
  gap: 9px;
  margin-top: clamp(40px, 10vw, 74px);
  padding: 16px 21px;
  background: #20246a33;
  border: 1px solid #1a236c;
  border-radius: 12px;
}

.homepage-hero__socials a {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  background: #455cbb73;
  border: 1px solid #243f9a;
  border-radius: 7px;
}

.homepage-hero__socials a:hover {
  background: #536ccb;
}

.homepage-hero a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.homepage-hero__socials a:focus-visible {
  outline-color: #fff;
}

.homepage-hero__metrics {
  grid-area: 4 / 1 / 5 / -1;
  padding: 40px var(--hero-gutter);
  background: #f0f2fc;
  color: var(--hero-ink);
}

.homepage-hero__metrics h2 {
  margin: 0 0 26px;
  color: #606575;
  font-size: 16px;
  font-weight: 400;
  text-align: center;
}

.homepage-hero__metrics dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px 20px;
  max-width: 390px;
  margin: 0 auto;
}

.homepage-hero__metrics dl > div {
  display: flex;
  flex-direction: column-reverse;
}

.homepage-hero__metrics dt {
  color: #606575;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.3;
}

.homepage-hero__metrics dd {
  margin: 0 0 5px;
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 500;
  line-height: 1.15;
}

.homepage-hero__metrics dl > div:nth-child(3) {
  order: 1;
}

@media (max-width: 575.98px) {
  .homepage-hero {
    --hero-gutter: clamp(18px, 9vw, 43px);
  }

  .homepage-hero__background {
    grid-row-end: 3;
  }

  .homepage-hero__socials {
    justify-self: center;
    margin-top: 25px;
    padding: 0;
    background: transparent;
    border: 0;
  }

  .homepage-hero__copy {
    padding-top: clamp(180px, 65vw, 230px);
    padding-bottom: 48px;
  }

  .homepage-hero__eyebrow {
    margin-bottom: 16px;
    padding: 6px 12px;
    font-size: clamp(11px, 3.34vw, 14px);
  }

  .homepage-hero__copy h1 {
    max-width: 20ch;
    margin-bottom: 14px;
    font-size: clamp(27px, 8.6vw, 42px);
  }

  .homepage-hero__description {
    margin-bottom: 16px;
    font-size: 15px;
  }

  .homepage-hero__actions {
    width: fit-content;
    flex-direction: column;
  }

  .homepage-hero__button {
    min-height: 55px;
    font-size: 15px;
  }

  .homepage-hero__cards {
    gap: 12px;
    padding: 54px var(--hero-gutter) 26px;
    background: #fff;
  }

  .homepage-hero__cards > li {
    flex-basis: min(310px, 83vw);
  }

  .homepage-hero__card {
    gap: 10px;
    box-shadow: 0 3px 22px #23338416;
  }

  .homepage-hero__card-copy {
    padding-right: 0;
  }

  .homepage-hero__card-heading,
  .homepage-hero__card p {
    font-size: 13px;
  }

  .homepage-hero__card-heading > img {
    width: 20px;
    height: 20px;
  }

  .homepage-hero__metrics {
    padding: 24px var(--hero-gutter);
  }

  .homepage-hero__metrics h2 {
    margin-bottom: 22px;
  }

  .homepage-hero__metrics dt {
    font-size: 13px;
  }

  .homepage-hero__metrics dl > div:nth-child(4) {
    order: -1;
  }

  .homepage-hero__metrics dl > div:first-child {
    order: -2;
  }
}

@media (width > 1200px) {
  .homepage-hero-preview {
    --homepage-preview-header-height: 118px;
  }

  .homepage-hero-preview .header-26 {
    position: relative;
    z-index: 10;
    height: var(--homepage-preview-header-height);
    background: transparent;
  }

  .homepage-hero-preview .header-26 .logo-navigation > ul > li > a {
    color: #fff;
  }

  .homepage-hero-preview .header-26 .logo-navigation-logo,
  .homepage-hero-preview .header-26:not(.search-active) .header-search-trigger img {
    filter: brightness(0) invert(1);
  }

  .homepage-hero-preview .header-26:not(.search-active) .header-search-trigger {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #29478b80;
  }

  .homepage-hero {
    --hero-gutter: clamp(56px, 8.5vw, 160px);
    grid-template-columns: var(--hero-gutter) minmax(0, 34fr) minmax(0, 9fr) minmax(0, 57fr) var(--hero-gutter);
    grid-template-rows: auto auto;
    padding-top: clamp(75px, 6.6vw, 120px);
    padding-bottom: clamp(40px, 3.2vw, 65px);
  }

  .homepage-hero__background {
    grid-area: auto;
    position: absolute;
    inset: calc(-1 * var(--homepage-preview-header-height)) 0 0;
  }

  .homepage-hero__background::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(
      ellipse 80% 72% at 100% var(--hero-gradient-center, 106%),
      rgb(255 255 255 / 92%) 20%,
      rgb(255 255 255 / 78%) 43%,
      rgb(255 255 255 / 42%) 64%,
      rgb(255 255 255 / 12%) 84%,
      transparent 100%
    );
  }

  .homepage-hero__right {
    display: grid;
    grid-area: 1 / 4 / 3 / 5;
    grid-template-rows: auto 1fr;
    gap: clamp(24px, 4svh, 46px);
    padding-top: clamp(22px, calc(25svh - 168px), 100px);
  }

  .homepage-hero__copy {
    grid-area: auto;
    padding: 0;
  }

  .homepage-hero__eyebrow {
    background: #6a8ad642;
  }

  .homepage-hero__copy h1 {
    max-width: none;
    margin-bottom: 32px;
    font-size: clamp(42px, 4.1vw, 66px);
  }

  .homepage-hero__cards {
    grid-area: 1 / 2;
    align-self: start;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 412px;
    padding: 0;
    overflow: visible;
  }

  .homepage-hero__cards > li {
    flex: none;
  }

  .homepage-hero__socials {
    grid-area: 2 / 2;
    margin-top: 12px;
  }

  .homepage-hero__metrics {
    grid-area: auto;
    align-self: end;
    justify-self: end;
    padding: 0;
    background: transparent;
  }

  .homepage-hero__metrics h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    color: #263052;
    font-size: 14px;
  }

  .homepage-hero__metrics h2::after {
    content: "";
    width: 74px;
    height: 1px;
    background: currentColor;
  }

  .homepage-hero__metrics dl {
    max-width: none;
    gap: 24px 18px;
  }

  .homepage-hero__metrics dt {
    color: #263052;
  }

  .homepage-hero__metrics dd {
    color: var(--hero-blue);
    font-size: 26px;
  }

  .homepage-hero__metrics dl > div:nth-child(3) {
    order: 0;
  }
}

@media (min-width: 1600px) {
  .homepage-hero {
    --hero-gutter: clamp(95px, 6.3vw, 150px);
    grid-template-columns: var(--hero-gutter) minmax(0, 26fr) minmax(0, 24fr) minmax(0, 50fr) var(--hero-gutter);
  }

  .homepage-hero__metrics dl {
    grid-template-columns: repeat(4, auto);
  }
}

@media (width > 1200px) and (height <= 850px) {
  .homepage-hero {
    --hero-gradient-center: 101%;
    padding-top: clamp(38px, 6svh, 51px);
  }

  .homepage-hero__right {
    gap: 24px;
  }

  .homepage-hero__eyebrow,
  .homepage-hero__copy h1 {
    margin-bottom: 20px;
  }

  .homepage-hero__copy h1 {
    font-size: clamp(40px, min(4.1vw, 7.6svh), 60px);
  }

  .homepage-hero__description {
    margin-bottom: 20px;
  }

  .homepage-hero__metrics h2 {
    margin-bottom: 12px;
  }

  .homepage-hero__metrics dl {
    row-gap: 12px;
  }
}
