/* ============================================================
   Residential — page styles
   Desktop geometry measured at a 1440px viewport against
   _source/spec/residential-1-ref-1440.png
   ============================================================ */

/* ---------- hero ---------- */

.residential-hero {
  background: var(--gray);
}

.residential-hero__inner {
  height: 874px;
}

.residential-hero__title {
  position: absolute;
  top: 65px;
  left: 19px;
  font-size: 120px;
  line-height: 120px;
  letter-spacing: 0;
  white-space: nowrap;
  font-weight: 700;
}

.residential-hero__subtitle {
  position: absolute;
  top: 178px;
  left: 20px;
  font-size: 24px;
  line-height: 24px;
  letter-spacing: 2.4px;
  font-weight: 700;
  white-space: nowrap;
}

.residential-hero__text {
  position: absolute;
  top: 258px;
  left: 20px;
  width: 470px;
}

.residential-hero__text p {
  margin: 0 0 27px;
}

.residential-hero__text p:last-child {
  margin-bottom: 0;
}

/* ---------- hover image ---------- */

.residential-hero__media {
  position: absolute;
  top: 209px;
  left: 536px;
  width: 725px;
  height: 453px;
  margin: 0;
}

.residential-hero__media .media-swap__frame {
  width: 100%;
  height: 100%;
}

.residential-hero__badge {
  right: 10px;
  bottom: -41px;
  width: 244px;
  height: 171px;
}

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .residential-hero__inner {
    height: auto;
    padding: 24px 28px 56px;
    width: auto;
    max-width: none;
  }

  .residential-hero__title,
  .residential-hero__subtitle {
    position: static;
    white-space: normal;
  }

  .residential-hero__title {
    font-size: clamp(42px, 11vw, 96px);
    line-height: 1;
  }

  .residential-hero__subtitle {
    margin-top: 12px;
    letter-spacing: 2px;
  }

  .residential-hero__text {
    position: static;
    width: auto;
    max-width: 560px;
    margin-top: 36px;
  }

  .residential-hero__media {
    position: static;
    width: 100%;
    height: auto;
    max-width: 725px;
    margin-top: 40px;
  }

  .residential-hero__media .media-swap__frame {
    height: auto;
    aspect-ratio: 725 / 453;
  }

  .residential-hero__media .media-swap__frame img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}
