.msp-home-hero {
  --hero-min-height: clamp(34rem, 56vw, 42rem);

  position: relative;
  min-height: var(--hero-min-height);
  overflow: hidden;
  background-color: #dfeaf3;
  isolation: isolate;
}

.msp-home-hero__media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.msp-home-hero__image {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.msp-home-hero__image img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: right center;
}

.msp-home-hero__media::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      rgba(223, 234, 243, 0.80) 40%,
      rgba(223, 234, 243, 0.40) 58%,
      rgba(223, 234, 243, 0.08) 76%,
      rgba(223, 234, 243, 0) 100%
    );
}

.msp-home-hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: var(--hero-min-height);
  padding-top: clamp(3rem, 4vw, 4.5rem);
  padding-bottom: clamp(4rem, 7vw, 6.5rem);
}

.msp-home-hero__content {
  width: 60vw;
  max-width: 60rem;
}

.msp-home-hero__text {
  display: grid;
  gap: clamp(0.875rem, 1.2vw, 1.25rem);
}

.msp-home-hero__text .field,
.msp-home-hero__text .field__item {
  margin: 0;
}

.msp-home-hero__text .field__item,
.msp-home-hero__text .field__item > div {
  display: grid;
  gap: clamp(0.875rem, 1.2vw, 1.25rem);
}

.msp-home-hero__text .field__item > *,
.msp-home-hero__text .field__item > div > *,
.msp-home-hero__text > * {
  margin: 0;
}

.msp-home-hero__text h1 {
  max-width: 15ch;
  font-family: var(--font-heading);
  font-size: clamp(2.7rem, 5.3vw, 4.6rem);
  line-height: 0.94;
  font-weight: 900;
  letter-spacing: -0.035em;
  color: var(--color-text);
}

.msp-home-hero__text .hero-highlight {
  color: var(--color-secondary);
}

.msp-home-hero__text .hero-line {
  display: inline-block;
  font-size: 0.72em;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.msp-home-hero__text p {
  max-width: 42ch;
  font-family: var(--font-body);
  font-size: clamp(1.0625rem, 0.98rem + 0.45vw, 1.35rem);
  line-height: 1.38;
  font-weight: 500;
  color: var(--color-text);
}

.msp-home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: clamp(1.5rem, 2vw, 2.25rem);
}

@media (max-width: 74rem) {
  .msp-home-hero {
    --hero-min-height: clamp(31rem, 50vw, 37rem);
  }

  .msp-home-hero__content {
    width: 58vw;
    max-width: 42rem;
  }

  .msp-home-hero__text h1 {
    font-size: clamp(2.35rem, 4.9vw, 3.95rem);
  }
}

@media (max-width: 63.9375rem) {
  .msp-home-hero {
    min-height: auto;
  }

  .msp-home-hero__media::after {
    background:
      linear-gradient(
        90deg,
        rgba(223, 234, 243, 0.97) 0%,
        rgba(223, 234, 243, 0.94) 34%,
        rgba(223, 234, 243, 0.84) 56%,
        rgba(223, 234, 243, 0.58) 78%,
        rgba(223, 234, 243, 0.32) 100%
      );
  }

  .msp-home-hero__image img {
    object-position: 78% center;
  }

  .msp-home-hero__inner {
    align-items: flex-start;
    min-height: auto;
    padding-top: 3rem;
    padding-bottom: 4rem;
  }

  .msp-home-hero__content {
    width: 100%;
    max-width: 100%;
  }

  .msp-home-hero__text h1 {
    max-width: 14ch;
    font-size: clamp(2.15rem, 7.8vw, 3.4rem);
  }

  .msp-home-hero__text p {
    max-width: 36ch;
    font-size: clamp(1rem, 0.95rem + 0.35vw, 1.125rem);
    line-height: 1.4;
  }

  .msp-home-hero__actions {
    gap: 0.875rem;
    margin-top: 1.5rem;
  }
}

@media (max-width: 40rem) {
  .msp-home-hero {
    min-height: auto;
  }

  .msp-home-hero__media::after {
    background:
      linear-gradient(
        180deg,
        rgba(223, 234, 243, 0.93) 0%,
        rgba(223, 234, 243, 0.84) 42%,
        rgba(223, 234, 243, 0.76) 100%
      );
  }

  .msp-home-hero__image img {
    object-position: 72% center;
  }

  .msp-home-hero__inner {
    min-height: auto;
    padding-top: 2.5rem;
    padding-bottom: 3rem;
  }

  .msp-home-hero__text h1 {
    max-width: none;
    font-size: clamp(2rem, 10vw, 2.85rem);
  }

  .msp-home-hero__text p {
    max-width: none;
  }

  .msp-home-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .msp-home-hero__actions .msp-button {
    width: 100%;
  }
}
