/* Full-width residential project carousel. */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: calc(100svh - 82px);
  min-height: 690px;
  max-height: 900px;
  overflow: hidden;
  background: #000;
  color: #f8f8f8;
}

.hero-slides,
.hero-slide {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity .9s ease, visibility .9s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}

.hero-slide::after,
.hero-cutout-media::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, .24) 0%, rgba(0, 0, 0, .13) 47%, rgba(0, 0, 0, .49) 100%);
}

.hero-cutout-media::after {
  -webkit-mask-image: var(--hero-cutout-image);
  mask-image: var(--hero-cutout-image);
  -webkit-mask-size: cover;
  mask-size: cover;
  -webkit-mask-position: center 55%;
  mask-position: center 55%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.hero-cutouts {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-cutout-slide,
.hero-cutout-media {
  position: absolute;
  inset: 0;
}

.hero-cutout-slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity .9s ease, visibility .9s ease;
}

.hero-cutout-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-cutout-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}

.hero-carousel-footer {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin: 0 clamp(24px, 6vw, 112px) 28px;
}

.hero-carousel-controls { display: flex; align-items: center; gap: 32px; padding-bottom: 4px; }
.hero-pagination { display: flex; align-items: center; gap: 3px; }
.hero-dot {
  position: relative;
  width: 24px;
  height: 30px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
.hero-dot::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 1px;
  right: 1px;
  height: 2px;
  background: rgba(255, 255, 255, .48);
  transition: background .3s ease, transform .3s ease;
}
.hero-dot:hover::after,
.hero-dot.is-active::after { background: #fff; transform: scaleY(1.8); }
.hero :is(button, a):focus-visible { outline-color: #ececec; outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 980px) {
  .hero { height: calc(100svh - 68px); }
}

@media (max-width: 760px) {
  .hero { display: flex; height: calc(100svh - 68px); min-height: 720px; max-height: none; }
  .hero-slide img,
  .hero-cutout-media img { object-position: center; }
  .hero-cutout-media::after { -webkit-mask-position: center; mask-position: center; }
  .hero-carousel-footer { gap: 20px; margin: 0 24px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .hero-cutout-slide { transition: none; }
}
