/* V38: hover controls on desktop; a compact control row below mobile photos. */
.hero-visual.hero-carousel {
  --hero-caption-height: 60px;
}
.hero-carousel-stage {
  position: absolute;
  inset: 0 0 var(--hero-caption-height);
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
  background: #e2e5e2;
}
.hero-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.65s ease,
    visibility 0.65s;
  pointer-events: none;
}
.hero-carousel-slide.is-active {
  opacity: 1;
  visibility: visible;
}
.hero-carousel-slide img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: var(--hero-photo-position, 50% 50%);
}
.hero-carousel-stage:after {
  content: "";
  position: absolute;
  inset: 55% 0 0;
  pointer-events: none;
  background: linear-gradient(transparent, #1723235c);
}
.hero-carousel-arrow,
.hero-carousel-play,
.hero-carousel-dot {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  color: #fff;
  cursor: pointer;
}
.hero-carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  margin-top: -22px;
  border: 1px solid #ffffff5c;
  border-radius: 50%;
  background: #17232370;
  backdrop-filter: blur(6px);
}
.hero-carousel-arrow--prev {
  left: 16px;
}
.hero-carousel-arrow--next {
  right: 16px;
}
.hero-carousel-arrow .icon {
  width: 22px;
  height: 22px;
}
.hero-carousel-controls {
  position: absolute;
  z-index: 2;
  bottom: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  padding: 0 5px;
  border: 1px solid #ffffff38;
  border-radius: 24px;
  background: #17232380;
  backdrop-filter: blur(6px);
}
.hero-carousel-dots {
  display: flex;
  align-items: center;
}
.hero-carousel-dot {
  width: 28px;
  background: transparent;
  border-radius: 14px;
}
.hero-carousel-dot:before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 8px;
  background: #ffffff8c;
  transition:
    width 0.2s,
    background 0.2s;
}
.hero-carousel-dot[aria-current="true"]:before {
  width: 16px;
  background: #fff;
}
.hero-carousel-play {
  width: 44px;
  margin-left: 5px;
  border-radius: 50%;
  background: transparent;
}
.hero-carousel-play .icon {
  width: 18px;
  height: 18px;
}
.hero-carousel-play .hero-play-icon {
  display: none;
}
.hero-carousel-play[aria-pressed="false"] .hero-play-icon {
  display: block;
}
.hero-carousel-play[aria-pressed="false"] .hero-pause-icon {
  display: none;
}
.hero-carousel-arrow:hover,
.hero-carousel-play:hover {
  background: #007d87;
}
.hero-carousel-dot:hover:before {
  background: #fff;
}
.hero-carousel button:focus-visible,
.hero-carousel-stage:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -4px;
  box-shadow: 0 0 0 2px var(--accent);
}
.hero-carousel [hidden] {
  display: none !important;
}
.hero-visual.hero-carousel figcaption {
  height: var(--hero-caption-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 20px;
}
.hero-visual.hero-carousel figcaption > span {
  margin: 0;
  max-width: none;
  font-size: 11px;
  line-height: 1.5;
}
.hero-visual.hero-carousel figcaption > a {
  flex-shrink: 0;
}
@media (max-width: 940px) {
  .hero-visual.hero-carousel {
    --hero-caption-height: 64px;
  }
  .hero-visual.hero-carousel figcaption {
    padding-inline: 14px;
    gap: 10px;
  }
  .hero-visual.hero-carousel figcaption > span,
  .hero-visual.hero-carousel figcaption > a {
    font-size: 10px;
  }
}
@media (max-width: 680px) {
  .hero-visual.hero-carousel {
    --hero-caption-height: 72px;
    height: calc(clamp(220px, 56vw, 290px) + var(--hero-caption-height));
  }
  .hero-carousel-arrow,
  .hero-carousel-stage:after {
    display: none;
  }
  .hero-visual.hero-carousel figcaption {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto 36px;
    column-gap: 10px;
    row-gap: 0;
    padding: 8px 14px;
  }
  .hero-visual.hero-carousel figcaption > span {
    grid-column: 1;
    grid-row: 1;
    font-size: 10px;
    white-space: nowrap;
  }
  .hero-visual.hero-carousel figcaption > a {
    grid-column: 2;
    grid-row: 1 / 3;
    justify-self: end;
  }
  .hero-carousel-controls {
    position: static;
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    transform: none;
    margin-left: -7px;
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: 0;
    backdrop-filter: none;
  }
  .hero-carousel-dot {
    width: 26px;
    height: 36px;
  }
  .hero-carousel-dot:before {
    width: 5px;
    height: 5px;
    background: #aab7b7;
  }
  .hero-carousel-dot[aria-current="true"]:before {
    width: 14px;
    background: var(--accent);
  }
  .hero-carousel-dot:hover:before {
    background: var(--accent);
  }
  .hero-carousel-play {
    width: 36px;
    height: 36px;
    margin-left: 2px;
    color: var(--accent);
  }
  .hero-carousel-play .icon {
    width: 14px;
    height: 14px;
  }
  .hero-carousel-play:hover {
    background: var(--accent-soft);
  }
  .hero-carousel button:focus-visible {
    outline-color: var(--accent);
    box-shadow: none;
  }
}
.hero-carousel [data-hero-controls],
.hero-carousel-stage:after {
  transition: opacity 0.2s ease;
}
@media (hover: hover) and (pointer: fine) and (min-width: 681px) {
  .hero-carousel [data-hero-controls],
  .hero-carousel-stage:after {
    opacity: 0;
    pointer-events: none;
  }
  .hero-carousel:hover [data-hero-controls],
  .hero-carousel:has(:focus-visible) [data-hero-controls] {
    opacity: 1;
    pointer-events: auto;
  }
  .hero-carousel:hover .hero-carousel-stage:after,
  .hero-carousel:has(:focus-visible) .hero-carousel-stage:after {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-carousel-slide,
  .hero-carousel-dot:before,
  .hero-carousel [data-hero-controls],
  .hero-carousel-stage:after {
    transition: none;
  }
}

/* V49: a quieter frame, stronger typography and more room for the facade photo. */
.home-hero {
  padding-top: 24px;
}
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  min-height: 490px;
  background: #f2f6f5;
  border: 1px solid #e0e7e5;
}
.hero-copy {
  min-width: 0;
  padding: 36px clamp(24px, 2.6vw, 38px) 30px;
}
.hero-copy .eyebrow {
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.055em;
  margin-bottom: 20px;
  color: var(--text-secondary);
}
.hero-copy h1 {
  font-size: clamp(35px, 3.55vw, 52px);
  line-height: 1.13;
  letter-spacing: -0.045em;
  margin-bottom: 20px;
  text-wrap: wrap;
}
.hero-copy h1 span {
  color: var(--accent-hover);
}
.hero-description {
  max-width: 42ch;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 22px;
}
.hero-actions {
  gap: 8px 18px;
  align-items: center;
}
.hero-actions .button {
  min-height: 48px;
  padding: 12px 18px;
  font-size: 13px;
}
.hero-calc {
  min-height: 44px;
  font-size: 12px;
}
.hero-bottom {
  gap: 20px;
  margin-top: 27px;
  padding-top: 20px;
  border-top-color: #d6e1dd;
}
.hero-start-price small,
.hero-bottom > a > span {
  color: var(--text-secondary);
}
.hero-start-price b {
  font-size: 30px;
  line-height: 1.3;
}
.hero-bottom > a {
  font-size: 12px;
  line-height: 1.7;
}
.hero-visual.hero-carousel figcaption {
  border-bottom: 0;
}
.hero-visual.hero-carousel figcaption > a {
  min-height: 36px;
}
@media (min-width: 681px) and (max-width: 900px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
  .hero-copy {
    padding: 30px;
  }
  .hero-copy h1 {
    font-size: 40px;
  }
  .hero-description {
    max-width: 64ch;
  }
  .hero-visual.hero-carousel {
    height: calc(clamp(290px, 43vw, 380px) + var(--hero-caption-height));
  }
  .hero-bottom {
    max-width: 460px;
  }
}
@media (max-width: 680px) {
  .home-hero {
    padding-top: 16px;
  }
  .hero-layout {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
  .hero-copy {
    padding: 24px 20px 22px;
  }
  .hero-copy .eyebrow {
    margin-bottom: 16px;
    font-size: 9px;
  }
  .hero-copy h1 {
    font-size: clamp(28px, 8.4vw, 38px);
    line-height: 1.15;
    margin-bottom: 17px;
  }
  .hero-description {
    max-width: none;
    font-size: 13px;
    line-height: 1.75;
    margin-bottom: 18px;
  }
  .hero-actions {
    gap: 6px 14px;
  }
  .hero-actions .button {
    padding-inline: 15px;
    min-height: 46px;
    font-size: 12px;
  }
  .hero-calc {
    font-size: 11px;
  }
  .hero-bottom {
    margin-top: 18px;
    padding-top: 16px;
    gap: 14px;
  }
  .hero-start-price b {
    font-size: 28px;
  }
  .hero-visual.hero-carousel figcaption > span {
    white-space: normal;
  }
}
@media (max-width: 370px) {
  .hero-copy {
    padding-inline: 16px;
  }
  .hero-actions {
    column-gap: 10px;
  }
  .hero-actions .button {
    padding-inline: 12px;
  }
}
