.mt-stone-story {
  position: relative;
  isolation: isolate;
  display: grid;
  width: 100%;
  height: clamp(20rem, 72svh, 45rem);
  max-height: 100svh;
  overflow: hidden;
  background-image: var(--mt-stone-story-image);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
  color: var(--color-ivory);
}

.mt-stone-story__overlay {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      color-mix(in srgb, var(--color-charcoal) 84%, transparent) 0%,
      color-mix(in srgb, var(--color-charcoal) 70%, transparent) 52%,
      color-mix(in srgb, var(--color-charcoal) 58%, transparent) 100%
    ),
    color-mix(in srgb, var(--color-charcoal) 22%, transparent);
}

.mt-stone-story__container {
  display: flex;
  align-items: center;
  width: min(100%, 100rem);
  height: 100%;
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 3vw, 3rem);
}

.mt-stone-story__content {
  width: 100%;
  max-width: none;
}

.mt-stone-story__heading {
  width: 100%;
  max-width: none;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 5.25vw, 5.5rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
  color: var(--color-ivory);
}

.mt-stone-story__description {
  width: 100%;
  max-width: none;
  margin-top: clamp(1.15rem, 2vw, 1.8rem);
  font-family: var(--font-body);
  font-size: clamp(0.98rem, 1.25vw, 1.16rem);
  font-weight: 300;
  line-height: 1.78;
  color: color-mix(in srgb, var(--color-ivory) 84%, transparent);
}

@media (max-width: 767px) {
  .mt-stone-story {
    height: clamp(20rem, 68svh, 34rem);
    background-attachment: scroll;
    background-position: 58% center;
  }

  .mt-stone-story__overlay {
    background:
      linear-gradient(
        90deg,
        color-mix(in srgb, var(--color-charcoal) 82%, transparent) 0%,
        color-mix(in srgb, var(--color-charcoal) 68%, transparent) 100%
      ),
      color-mix(in srgb, var(--color-charcoal) 24%, transparent);
  }

  .mt-stone-story__container {
    padding-inline: 1rem;
  }

  .mt-stone-story__content {
    width: 100%;
    max-width: none;
  }

  .mt-stone-story__heading {
    width: 100%;
    max-width: none;
    font-size: clamp(2.15rem, 10.5vw, 3.5rem);
  }

  .mt-stone-story__description {
    width: 100%;
    max-width: none;
    font-size: 0.96rem;
    line-height: 1.72;
  }
}

@media (max-width: 360px) {
  .mt-stone-story {
    height: clamp(19rem, 66svh, 28rem);
  }

  .mt-stone-story__heading {
    font-size: clamp(2rem, 10vw, 2.65rem);
  }

  .mt-stone-story__description {
    margin-top: 1rem;
    font-size: 0.9rem;
    line-height: 1.65;
  }
}

@media (max-height: 540px) and (orientation: landscape) {
  .mt-stone-story {
    height: 100svh;
    min-height: 18rem;
    background-attachment: scroll;
  }

  .mt-stone-story__heading {
    font-size: clamp(2rem, 7vw, 3.6rem);
  }

  .mt-stone-story__description {
    width: 100%;
    max-width: none;
    margin-top: 0.9rem;
    font-size: 0.9rem;
    line-height: 1.55;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mt-stone-story {
    background-attachment: scroll;
  }
}
