/* Homepage photo-led refresh */
.home-hero {
  min-height: clamp(660px, 82vh, 860px);
  align-items: center;
  overflow: hidden;
  background-color: #07131b;
  background-image:
    linear-gradient(90deg, rgba(5, 13, 19, .96) 0%, rgba(8, 22, 31, .86) 45%, rgba(9, 34, 46, .42) 100%),
    url("/assets/images/portable-air-conditioner-units.png");
  background-position: center, right center;
  background-size: cover, min(920px, 62vw) auto;
  background-repeat: no-repeat;
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(0deg, rgba(11, 23, 32, .72), rgba(11, 23, 32, 0));
  pointer-events: none;
}

.home-hero .hero-inner {
  position: relative;
  z-index: 1;
}

.home-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 520px);
  gap: clamp(26px, 5vw, 64px);
  align-items: center;
  width: min(1240px, 100%);
  margin: 0 auto;
  padding-top: clamp(72px, 8vw, 96px);
  padding-bottom: clamp(62px, 8vw, 88px);
}

.hero-copy {
  max-width: 790px;
  min-width: 0;
}

.hero-copy p:not(.eyebrow) {
  text-shadow: 0 2px 24px rgba(0, 0, 0, .34);
}

.hero-gallery {
  display: grid;
  grid-template-columns: 1fr .7fr;
  gap: 12px;
  align-items: end;
  min-width: 0;
}

.hero-photo {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(235, 246, 239, .42);
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .36);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo-primary img {
  object-fit: contain;
  background: #fff;
  padding: clamp(12px, 2vw, 24px);
}

.hero-photo figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 7px 10px;
  border-radius: 7px;
  background: rgba(7, 17, 25, .82);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  backdrop-filter: blur(10px);
}

.hero-photo-primary {
  grid-column: 1 / 3;
  aspect-ratio: 16 / 10;
}

.hero-photo-secondary {
  grid-column: 2 / 3;
  aspect-ratio: 1 / 1;
  margin-top: -92px;
  transform: translateX(-12px);
  border-color: rgba(47, 176, 109, .72);
}

.hero-photo-secondary img {
  object-fit: contain;
  background: #fff;
  padding: 10px;
}

.home-image-stack img:first-child {
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #fff;
  padding: 14px;
}

.home-image-stack img:nth-child(2) {
  object-fit: contain;
  background: #fff;
  padding: 14px;
}

@media (max-width: 980px) {
  .home-hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-gallery {
    max-width: 680px;
  }

  .hero-photo-secondary {
    max-width: 270px;
    justify-self: end;
  }
}

@media (max-width: 720px) {
  html,
  body {
    overflow-x: hidden;
  }

  .home-hero {
    min-height: auto;
    background-position: center, center top;
    background-size: cover, min(680px, 112vw) auto;
  }

  .home-hero-layout {
    display: block;
    width: 100%;
    max-width: 100%;
    padding-right: 24px;
    padding-left: 24px;
    padding-top: 58px;
    padding-bottom: 44px;
  }

  .hero-copy,
  .hero-gallery {
    width: calc(100vw - 48px);
    max-width: calc(100vw - 48px);
  }

  .hero-photo {
    width: 100%;
    max-width: 100%;
  }

  .home-hero .eyebrow,
  .home-hero h1,
  .home-hero p {
    max-width: 100%;
  }

  .home-hero h1 {
    font-size: clamp(35px, 9vw, 42px);
  }

  .home-hero .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
  }

  .home-hero .btn {
    width: 100%;
    padding-right: 12px;
    padding-left: 12px;
    white-space: normal;
  }

  .hero-gallery {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 26px;
  }

  .hero-photo-primary,
  .hero-photo-secondary {
    grid-column: auto;
    margin-top: 0;
    transform: none;
  }

  .hero-photo-primary {
    aspect-ratio: 4 / 3;
  }

  .hero-photo-secondary {
    aspect-ratio: 16 / 11;
    max-width: none;
  }

  .hero-photo figcaption {
    font-size: 11px;
  }

  .home-image-stack img:nth-child(2) {
    aspect-ratio: 16 / 10;
  }
}
