.masthead { transition: transform 280ms ease; }
.masthead.is-hidden { transform: translateY(-101%); pointer-events: none; }
.hero-slides { position: relative; aspect-ratio: 3/2; overflow: hidden; touch-action: pan-y pinch-zoom; background: #272925; cursor: grab; user-select: none; -webkit-user-select: none; }
.hero-slides.is-dragging { cursor: grabbing; }
.hero-slides .hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 1100ms ease-in-out; pointer-events: none; }
.hero-slides .hero-image.is-current { opacity: 1; }
.carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 1px solid #ffffff66; border-radius: 50%; background: #17221c38; color: white; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(5px); transition: background .2s, opacity .25s; opacity: 0; pointer-events: none; }
.controls-active .carousel-arrow, .hero-slides:focus-visible .carousel-arrow, .carousel-arrow:focus-visible { opacity: 1; pointer-events: auto; }
.hero-slides.is-dragging .carousel-arrow { opacity: 0; pointer-events: none; }
.carousel-arrow:hover { background: #17221c99; }
.carousel-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.carousel-prev { left: 18px; }
.carousel-next { right: 18px; }
.carousel-controls { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; padding: 0 7px; border: 1px solid #ffffff45; border-radius: 30px; background: #17221c55; backdrop-filter: blur(6px); }
.carousel-dots { display: flex; }
.carousel-dots button { width: 30px; height: 36px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; }
.carousel-dots button::after { content: ''; width: 5px; height: 5px; background: #ffffff70; border-radius: 50%; transition: width .3s, background .3s; }
.carousel-dots button[aria-pressed="true"]::after { width: 16px; border-radius: 4px; background: #fff; }
.carousel-pause { width: 36px; height: 36px; color: white; background: none; border: 0; border-left: 1px solid #ffffff40; cursor: pointer; font-size: 12px; }
.hero-slides :focus-visible, .hero-slides:focus-visible { outline: 2px solid white; outline-offset: -4px; }
.carousel-name { margin-left: auto; color: #d1d3c9; white-space: nowrap; letter-spacing: .4px; }
@media(max-width:1100px) { .carousel-name { display: none; } }
@media(min-width:761px) {
  html { scroll-padding-top: 102px; }
  /* Floorplans occupy the full viewport while the desktop header is hidden. */
  #floorplans { scroll-margin-top: -102px; }
}
@media(max-width:760px) {
  /* The header slides away on navigation: do not leave its old 88px offset. */
  html { scroll-padding-top: 0; }
  .carousel-prev { left: 10px; }
  .carousel-next { right: 10px; }
  .carousel-controls { bottom: 10px; }
}
@media(prefers-reduced-motion:reduce) { .masthead, .hero-slides .hero-image { transition: none; } }
