:root {
  --motion-premium-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --motion-reveal-duration: 620ms;
}

.reveal { opacity: 1; transform: none; filter: none; }
.motion-ready .reveal {
  opacity: 0;
  transform: translate3d(0, 0.75rem, 0);
  filter: blur(2px);
  transition:
    opacity var(--motion-reveal-duration) var(--motion-premium-ease),
    transform var(--motion-reveal-duration) var(--motion-premium-ease),
    filter 460ms var(--motion-premium-ease);
}
.motion-ready .reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: none;
  animation: none;
}
.motion-ready .reveal-delay-1 { transition-delay: 60ms; }
.motion-ready .reveal-delay-2 { transition-delay: 110ms; }
.motion-ready .reveal-delay-3 { transition-delay: 160ms; }
.motion-ready .reveal-delay-4 { transition-delay: 210ms; }
.is-scroll-locked { overflow: hidden; }

.residence-intro { position: relative; min-height: min(54rem, calc(100svh - 4.5rem)); overflow: hidden; background: #161b1a; color: #fff; }
.residence-intro-media,
.residence-intro-shade { position: absolute; inset: 0; }
.residence-intro-media img,
.residence-intro-media video { width: 100%; height: 100%; object-fit: cover; }
.residence-intro-shade { background: linear-gradient(90deg, rgb(22 27 26 / 72%) 0%, rgb(22 27 26 / 22%) 68%, rgb(22 27 26 / 8%) 100%); }
.residence-intro-content { position: relative; z-index: 1; display: flex; min-height: inherit; align-items: flex-end; justify-content: space-between; gap: 2rem; padding-block: 6rem 3.5rem; }
.residence-intro-copy { max-width: 49rem; }
.residence-intro-copy h1 { margin-top: 1.1rem; font-family: "DM Serif Display", Georgia, serif; font-size: clamp(3.75rem, 9vw, 6.8rem); line-height: 0.86; letter-spacing: -0.045em; text-wrap: balance; }
.residence-intro-copy > p:last-of-type { max-width: 38rem; margin-top: 1.5rem; color: rgb(255 255 255 / 82%); font-size: 1rem; line-height: 1.75; }
.residence-intro-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.residence-scroll-cue { display: grid; flex: 0 0 auto; justify-items: center; gap: 0.75rem; color: rgb(255 255 255 / 76%); font-size: 0.625rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.residence-scroll-cue svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.5; animation: cue-down 1.8s ease-in-out infinite; }

.listing-jump-wrap { position: sticky; top: 4.5rem; z-index: 30; border-bottom: 1px solid rgb(22 27 26 / 10%); background: rgb(247 245 240 / 96%); backdrop-filter: blur(12px); }
.listing-jump-nav { display: flex; gap: 2rem; margin: 0 auto; padding-block: 1rem; overflow-x: auto; scroll-padding-inline: 1.25rem; scrollbar-width: none; }
.listing-jump-nav::-webkit-scrollbar { display: none; }
.listing-jump-nav a { flex: 0 0 auto; padding-block: 0.25rem; color: rgb(22 27 26 / 62%); font-size: 0.675rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; transition: color 160ms ease; }
.listing-jump-nav a:hover,
.listing-jump-nav a:focus-visible { color: #183d37; }

.residence-page-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(20rem, 24rem); gap: clamp(3rem, 6vw, 6rem); align-items: start; padding-block: clamp(4rem, 8vw, 7rem); }
.residence-content-flow { min-width: 0; }
.residence-editorial-section { padding-bottom: clamp(4rem, 8vw, 7rem); }
.residence-editorial-grid { display: grid; gap: 2.5rem; }
.residence-editorial-title { max-width: 47rem; margin-top: 1rem; font-family: "DM Serif Display", Georgia, serif; font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 0.98; letter-spacing: -0.035em; text-wrap: balance; }
.residence-editorial-body { max-width: 42rem; color: rgb(22 27 26 / 70%); font-size: 1rem; line-height: 1.95; }
.residence-location-note { margin-top: 1.5rem; padding-left: 1rem; border-left: 2px solid #c5a46d; color: rgb(22 27 26 / 58%); font-size: 0.875rem; line-height: 1.7; }
.residence-facts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 4rem; border-block: 1px solid rgb(22 27 26 / 13%); }
.residence-facts > div { display: grid; gap: 0.4rem; padding: 1.5rem 1rem; border-right: 1px solid rgb(22 27 26 / 10%); }
.residence-facts > div:last-child { border-right: 0; }
.residence-facts strong { font-family: "DM Serif Display", Georgia, serif; font-size: 1.875rem; font-weight: 400; }
.residence-facts span { color: rgb(22 27 26 / 52%); font-size: 0.625rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }

.residence-section { padding-block: clamp(4rem, 8vw, 6.5rem); border-top: 1px solid rgb(22 27 26 / 12%); }
.residence-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2.5rem; }
.residence-section-heading h2 { max-width: 42rem; margin-top: 0.9rem; font-family: "DM Serif Display", Georgia, serif; font-size: clamp(2.5rem, 4.5vw, 4.5rem); line-height: 1; letter-spacing: -0.03em; text-wrap: balance; }
.residence-section-heading > p { max-width: 26rem; color: rgb(22 27 26 / 64%); font-size: 0.875rem; line-height: 1.75; }
.residence-text-link { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 0.75rem; padding-bottom: 0.4rem; border-bottom: 1px solid rgb(24 61 55 / 40%); color: #183d37; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.residence-text-link span { transition: transform 180ms ease; }
.residence-text-link:hover span { transform: translateX(0.25rem); }

.gallery-grid-featured { height: 38rem; }
.gallery-grid img,
.gallery-grid video,
.gallery-single img,
.gallery-single video { width: 100%; height: 100%; object-fit: cover; }
.gallery-grid [data-lightbox-trigger] { cursor: zoom-in; }
.gallery-single { height: min(38rem, 68vw); overflow: hidden; border-radius: 0.75rem; }
.gallery-more { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; background: rgb(22 27 26 / 48%); color: #fff; }
.gallery-more strong { font-family: "DM Serif Display", Georgia, serif; font-size: 1.875rem; font-weight: 400; }
.gallery-more span { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }

.residence-amenity-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgb(22 27 26 / 12%); }
.residence-amenity { display: flex; min-height: 5.5rem; align-items: center; gap: 1rem; padding: 1.2rem 0.75rem; border-bottom: 1px solid rgb(22 27 26 / 12%); }
.residence-amenity > span { display: grid; width: 2.75rem; height: 2.75rem; flex: 0 0 auto; place-items: center; color: #183d37; }
.residence-amenity svg { width: 1.5rem; height: 1.5rem; }
.residence-amenity strong { font-size: 0.875rem; line-height: 1.5; }
.residence-benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem 2rem; margin-top: 2rem; padding: 1.5rem; background: #183d37; color: #fff; }
.residence-benefits p { display: flex; gap: 0.75rem; color: rgb(255 255 255 / 78%); font-size: 0.875rem; line-height: 1.65; }
.residence-benefits span { color: #c5a46d; }

.residence-feedback { position: relative; }
.residence-testimonial-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: rgb(22 27 26 / 12%); border: 1px solid rgb(22 27 26 / 12%); }
.residence-testimonial { display: flex; min-height: 19rem; flex-direction: column; padding: clamp(1.5rem, 4vw, 2.5rem); background: #fff; }
.residence-stars { color: #c5a46d; font-size: 0.75rem; letter-spacing: 0.16em; }
.residence-testimonial blockquote { margin-block: 2rem auto; font-family: "DM Serif Display", Georgia, serif; font-size: 1.875rem; line-height: 1.35; }
.residence-testimonial footer { display: grid; gap: 0.2rem; font-size: 0.75rem; }
.residence-testimonial footer span { color: rgb(22 27 26 / 52%); }

.public-calendar { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1rem; }
.public-calendar-month { padding: 1.25rem; background: #e9e5dc; }
.public-calendar-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.public-calendar-header h3 { font-family: "DM Serif Display", Georgia, serif; font-size: 1.875rem; }
.public-calendar-header > div { display: flex; gap: 0.75rem; color: rgb(22 27 26 / 58%); font-size: 0.625rem; }
.public-calendar-header span { display: flex; align-items: center; gap: 0.3rem; }
.public-calendar-header i { width: 0.45rem; height: 0.45rem; border-radius: 50%; }
.public-calendar-header .is-free { background: #183d37; }
.public-calendar-header .is-taken { background: #a85f43; }
.public-calendar-weekdays,
.public-calendar-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.25rem; }
.public-calendar-weekdays { margin-bottom: 0.35rem; text-align: center; color: rgb(22 27 26 / 48%); font-size: 0.625rem; font-weight: 700; }
.public-calendar-weekdays abbr { text-decoration: none; }
.public-calendar-day { display: flex; aspect-ratio: 1; min-width: 0; flex-direction: column; align-items: center; justify-content: center; gap: 0.1rem; border: 1px solid transparent; border-radius: 0.375rem; background: #fff; color: rgb(22 27 26 / 88%); font-size: 0.6875rem; font-weight: 700; transition: transform 140ms ease, border-color 140ms ease, background-color 140ms ease, color 140ms ease; }
.public-calendar-day small { max-width: 100%; overflow: hidden; color: rgb(22 27 26 / 50%); font-size: 0.625rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.public-calendar-day:not(:disabled):hover { border-color: rgb(24 61 55 / 48%); transform: translateY(-1px); }
.public-calendar-day.is-in-range { background: rgb(197 164 109 / 25%); }
.public-calendar-day.is-selected { border-color: #183d37; background: #183d37; color: #fff; }
.public-calendar-day.is-selected small { color: rgb(255 255 255 / 74%); }
.public-calendar-day.is-unavailable { background: rgb(168 95 67 / 10%); color: #a85f43; text-decoration: line-through; }
.public-calendar-day.is-outside,
.public-calendar-day.is-past { opacity: 0.34; }
.public-calendar-day:disabled { cursor: not-allowed; }
.residence-calendar-cta { margin-top: 1.5rem; }

.residence-disclosures { border-top: 1px solid rgb(22 27 26 / 14%); }
.residence-disclosures details { border-bottom: 1px solid rgb(22 27 26 / 14%); }
.residence-disclosures summary { display: flex; min-height: 4.8rem; cursor: pointer; align-items: center; justify-content: space-between; gap: 1rem; list-style: none; }
.residence-disclosures summary::-webkit-details-marker { display: none; }
.residence-disclosures summary span { display: flex; align-items: center; gap: 1rem; font-family: "DM Serif Display", Georgia, serif; font-size: 1.875rem; }
.residence-disclosures summary small { color: #c5a46d; font-family: Manrope, sans-serif; font-size: 0.625rem; font-weight: 700; }
.residence-disclosures summary i { color: #183d37; font-size: 1.875rem; font-style: normal; transition: transform 180ms ease; }
.residence-disclosures details[open] summary i { transform: rotate(45deg); }
.residence-disclosure-body { max-width: 48rem; padding: 0 0 2rem 2.25rem; color: rgb(22 27 26 / 66%); font-size: 0.85rem; line-height: 1.8; }
.residence-disclosure-body dl { margin-top: 1.25rem; border-top: 1px solid rgb(22 27 26 / 10%); }
.residence-disclosure-body dl > div { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.75rem; border-bottom: 1px solid rgb(22 27 26 / 10%); }
.residence-disclosure-body dd { color: #161b1a; font-weight: 700; }
.residence-detail-note { margin-top: 1rem; color: #183d37; }
.residence-addon-list { display: grid; gap: 0.75rem; margin-top: 1.25rem; }
.residence-addon-list > div { display: flex; align-items: start; justify-content: space-between; gap: 1rem; padding: 1rem; background: #e9e5dc; }
.residence-addon-list span { display: grid; gap: 0.25rem; }
.residence-addon-list small { color: rgb(22 27 26 / 56%); }
.residence-addon-list b { color: #161b1a; white-space: nowrap; }
.residence-policy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; max-width: none; }
.residence-policy-grid h3 { margin-bottom: 0.75rem; color: #161b1a; font-weight: 700; }
.residence-policy-grid p + p { margin-top: 0.5rem; }

.residence-inquiry { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 3rem; }
.residence-inquiry-copy h2 { margin-top: 1rem; font-family: "DM Serif Display", Georgia, serif; font-size: clamp(2.5rem, 4vw, 4.5rem); line-height: 1; }
.residence-inquiry-copy > p:last-of-type { margin-top: 1.25rem; color: rgb(22 27 26 / 64%); font-size: 0.875rem; line-height: 1.8; }
.residence-contact-list { display: grid; gap: 0.5rem; margin-top: 1.5rem; color: #183d37; font-size: 0.75rem; }
.residence-inquiry-form { display: grid; gap: 1rem; padding: 1.5rem; background: #fff; border: 1px solid rgb(22 27 26 / 10%); }
.residence-form-pair,
.residence-form-triple,
.residence-form-message { display: grid; gap: 1rem; }
.residence-form-message { grid-template-columns: minmax(7rem, 0.3fr) minmax(0, 0.7fr); }

.booking-drawer { position: sticky; top: 9rem; align-self: start; min-width: 0; }
.booking-drawer-backdrop,
.booking-drawer-header { display: none; }
.booking-panel { transition: border-color 200ms ease, box-shadow 200ms ease; }
.booking-panel:focus-within { border-color: rgb(24 61 55 / 34%); box-shadow: 0 16px 40px rgb(22 27 26 / 9%); }
.booking-status { padding: 0.8rem 1rem; border: 1px solid transparent; border-radius: 0.375rem; background: rgb(22 27 26 / 5%); color: rgb(22 27 26 / 68%); font-size: 0.75rem; line-height: 1.6; }
.booking-status.is-loading { border-color: rgb(197 164 109 / 32%); background: rgb(197 164 109 / 10%); color: #161b1a; }
.booking-status.is-success { border-color: rgb(24 61 55 / 20%); background: rgb(24 61 55 / 8%); color: #183d37; }
.booking-status.is-error { border-color: rgb(168 95 67 / 22%); background: rgb(168 95 67 / 9%); color: #a85f43; }
.booking-quote { padding: 1rem; border-radius: 0.375rem; background: #f7f5f0; }
.booking-breakdown { display: grid; gap: 0.5rem; margin-top: 1rem; padding-top: 0.8rem; border-top: 1px solid rgb(22 27 26 / 10%); }
.booking-breakdown[hidden] { display: none; }
.booking-breakdown > div { display: flex; justify-content: space-between; gap: 1rem; color: rgb(22 27 26 / 62%); font-size: 0.6875rem; }
.booking-breakdown strong { color: #161b1a; }
.booking-spinner { width: 0.9rem; height: 0.9rem; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: booking-spin 700ms linear infinite; }
.booking-spinner[hidden] { display: none; }
.booking-assurance { display: flex; gap: 0.75rem; padding: 1rem 1.5rem; border-top: 1px solid rgb(22 27 26 / 8%); color: rgb(22 27 26 / 62%); font-size: 0.7rem; line-height: 1.55; }
.booking-assurance > span { color: #183d37; }
.booking-assurance strong { display: block; color: #161b1a; }
[data-availability-total].is-updated { animation: quote-arrive 360ms cubic-bezier(0.16, 1, 0.3, 1); }

.sticky-book-bar { position: fixed; inset: auto 0 0; z-index: 50; display: none; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem 1.25rem calc(0.75rem + env(safe-area-inset-bottom)); border-top: 1px solid rgb(22 27 26 / 10%); background: rgb(247 245 240 / 98%); box-shadow: 0 -8px 24px rgb(22 27 26 / 8%); transform: translateY(110%); transition: transform 220ms ease; }
.sticky-book-bar.visible { transform: translateY(0); }
.sticky-book-bar > div { display: grid; }
.sticky-book-bar span { color: rgb(22 27 26 / 52%); font-size: 0.625rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.sticky-book-bar strong { font-family: "DM Serif Display", Georgia, serif; font-size: 1.875rem; font-weight: 400; }
.sticky-book-bar .btn-primary { min-height: 2.8rem; padding-inline: 1rem; font-size: 0.65rem; }

.residence-final-cta { padding-block: clamp(4rem, 8vw, 7rem); background: #161b1a; color: #fff; }
.residence-final-cta .section-shell { display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.residence-final-cta h2 { margin-top: 1rem; font-family: "DM Serif Display", Georgia, serif; font-size: clamp(3.75rem, 7vw, 6.8rem); line-height: 0.94; letter-spacing: -0.04em; }
.residence-final-cta p:last-child { margin-top: 1rem; color: rgb(255 255 255 / 62%); font-size: 0.875rem; }

.lightbox-close { top: 1.5rem; right: 1.5rem; }
.lightbox-prev { top: 50%; left: 1.5rem; transform: translateY(-50%); }
.lightbox-next { top: 50%; right: 1.5rem; transform: translateY(-50%); }

@keyframes cue-down { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(0.35rem); } }
@keyframes booking-spin { to { transform: rotate(360deg); } }
@keyframes quote-arrive { from { opacity: 0.35; transform: translateY(0.25rem); } to { opacity: 1; transform: translateY(0); } }

@media (min-width: 640px) {
  .residence-form-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .residence-form-triple { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1199px) and (min-width: 1024px) {
  .residence-page-shell { grid-template-columns: minmax(0, 1fr) 21rem; gap: 3rem; }
  .residence-amenity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1023px) {
  .residence-page-shell { display: block; }
  .booking-drawer-backdrop { position: fixed; inset: 0; z-index: 59; display: block; visibility: hidden; background: rgb(22 27 26 / 56%); opacity: 0; transition: opacity 200ms ease, visibility 200ms ease; }
  .booking-drawer-backdrop.is-open { visibility: visible; opacity: 1; }
  .booking-drawer { position: fixed; inset: auto 0 0; z-index: 60; max-height: min(92svh, 54rem); overflow-y: auto; overscroll-behavior: contain; padding-bottom: env(safe-area-inset-bottom); background: #f7f5f0; box-shadow: 0 -18px 60px rgb(22 27 26 / 28%); transform: translateY(105%); transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1); }
  .booking-drawer.is-open { transform: translateY(0); }
  .booking-drawer-header { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid rgb(22 27 26 / 10%); background: rgb(247 245 240 / 98%); }
  .booking-drawer-header > div { display: grid; }
  .booking-drawer-header span { color: rgb(22 27 26 / 52%); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; }
  .booking-drawer-header strong { font-family: "DM Serif Display", Georgia, serif; font-size: 1.875rem; font-weight: 400; }
  .booking-drawer-header button { display: grid; width: 2.75rem; height: 2.75rem; place-items: center; border: 1px solid rgb(22 27 26 / 16%); font-size: 1.875rem; line-height: 1; }
  .booking-panel { border: 0; border-radius: 0; box-shadow: none; }
  .sticky-book-bar { display: flex; }
  body.is-booking-open .sticky-book-bar { transform: translateY(110%); }
}

@media (max-width: 767px) {
  .residence-intro { min-height: calc(100svh - 4rem); }
  .residence-intro-shade { background: linear-gradient(0deg, rgb(22 27 26 / 82%) 0%, rgb(22 27 26 / 18%) 72%); }
  .residence-intro-content { align-items: end; padding-bottom: 1.5rem; }
  .residence-intro-copy { width: 100%; }
  .residence-intro-copy h1 { font-size: clamp(3.75rem, 20vw, 6.8rem); }
  .residence-intro-copy > p:last-of-type { max-width: 31rem; font-size: 1rem; }
  .residence-intro-actions > * { flex: 1 1 100%; }
  .residence-scroll-cue { display: none; }
  .listing-jump-wrap { top: 4rem; }
  .listing-jump-nav { margin-inline: -1.25rem; padding-inline: 1.25rem; gap: 1.5rem; }
  .residence-editorial-grid,
  .residence-inquiry { grid-template-columns: 1fr; }
  .residence-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .residence-facts > div { border-bottom: 1px solid rgb(22 27 26 / 10%); }
  .residence-facts > div:nth-child(2n) { border-right: 0; }
  .residence-facts > div:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .residence-section-heading { display: grid; gap: 1rem; }
  .gallery-grid-featured { height: 29rem; }
  .gallery-grid { grid-template-columns: 1fr; grid-template-rows: 1fr; }
  .gallery-main { min-height: 29rem; }
  .gallery-thumb { display: none; }
  .residence-amenity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .residence-amenity { min-height: 5rem; align-items: start; flex-direction: column; gap: 0.3rem; }
  .residence-amenity > span { justify-content: start; }
  .residence-benefits,
  .residence-testimonial-grid,
  .residence-policy-grid { grid-template-columns: 1fr; }
  .public-calendar { grid-template-columns: 1fr; }
  .public-calendar-day { min-height: 2.7rem; aspect-ratio: auto; }
  .public-calendar-day small { display: none; }
  .residence-disclosure-body { padding-left: 0; }
  .residence-form-message { grid-template-columns: 1fr; }
  .residence-final-cta .section-shell { display: grid; }
  .residence-final-cta .btn-gold { width: 100%; }
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .motion-ready .reveal { opacity: 1; transform: none; filter: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
