/* Full-screen parallax / scroll-snap presentation */
:root {
  --screen-pad-top: clamp(86px, 9vh, 104px);
  --screen-pad-x: clamp(24px, 4.4vw, 72px);
  --screen-gap: clamp(12px, 1.5vh, 20px);
}
html {
  scroll-snap-type: y mandatory;
  overscroll-behavior-y: none;
  scroll-padding-top: 0 !important;
}
body {
  overflow-x: hidden;
}
main {
  position: relative;
}
.hero,
.overview,
.residences,
.lifestyle,
.gallery,
.location,
.faq,
.final-cta {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
/* Decorative strips should not create their own scroll stops. */
.editorial-strip {
  display: none !important;
}
/* Project metrics live inside the address screen instead of consuming a separate scroll. */
.overview > .metrics {
  margin: 0 0 var(--screen-gap);
  width: 100%;
  padding: 9px 0 !important;
  background: transparent;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.overview > .metrics > div {
  padding: 2px 16px !important;
}
.overview > .metrics strong {
  font-size: clamp(27px, 2.1vw, 38px) !important;
}
.overview > .metrics > div > span {
  font-size: 12px !important;
  margin-top: 1px !important;
}
.overview > .metrics .metric-unit {
  font-size: 0.55em !important;
}

@media (min-width: 901px) and (min-height: 680px) {
  .overview,
  .residences,
  .lifestyle,
  .gallery,
  .location,
  .faq,
  .final-cta {
    height: 100svh !important;
    min-height: 100svh !important;
    max-height: 100svh !important;
    overflow: hidden !important;
  }
  .section,
  .lifestyle-intro {
    padding: var(--screen-pad-top) var(--screen-pad-x) clamp(18px, 2.5vh, 30px) !important;
  }
  .overview,
  .residences,
  .gallery,
  .location,
  .faq {
    display: flex;
    flex-direction: column;
  }
  .section-top {
    flex: 0 0 auto;
    padding-top: 0 !important;
    margin-bottom: clamp(8px, 1vh, 12px) !important;
  }

  /* ADDRESS: metrics + intro + image/story all fit in one viewport */
  .overview > .metrics {
    flex: 0 0 auto;
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: clamp(8px, 1.2vh, 14px) !important;
  }
  .overview .intro-grid {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    align-items: end;
    gap: clamp(24px, 4vw, 64px) !important;
    margin-bottom: clamp(10px, 1.3vh, 16px) !important;
  }
  .overview .intro-grid h2 {
    font-size: clamp(35px, 3vw, 52px);
    line-height: 1;
  }
  .overview .intro-text {
    font-size: clamp(10px, 0.82vw, 13px);
    line-height: 1.65;
    max-width: 620px;
  }
  .overview .overview-grid {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.95fr);
    gap: clamp(24px, 3vw, 52px) !important;
    align-items: stretch;
  }
  .overview .architecture-figure {
    height: 100%;
    min-height: 0;
    margin: 0;
    overflow: hidden;
  }
  .overview .architecture-figure > img {
    height: calc(100% - 22px);
    width: 100%;
    object-fit: fill;
    aspect-ratio: auto !important;
    transform: scale(1.06);
    will-change: transform;
  }
  .overview .overview-story {
    align-self: center;
    padding: 0 !important;
  }
  .overview .overview-story h3 {
    font-size: clamp(32px, 2.6vw, 45px);
    margin: 8px 0 10px !important;
  }
  .overview .overview-story p {
    font-size: clamp(10px, 0.82vw, 13px);
    line-height: 1.65;
  }
  .overview .story-features {
    margin: 10px 0 !important;
    gap: 4px !important;
  }
  .overview .story-features > div {
    padding: 7px 0;
    font-size: 11px;
  }

  /* RESIDENCES: tabs + copy + direct image are a single screen */
  .residences .section-heading {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    align-items: end;
    gap: 30px;
    margin-bottom: 8px !important;
  }
  .residences .section-heading h2 {
    font-size: clamp(34px, 3vw, 52px);
    line-height: 1;
  }
  .residences .section-heading p {
    text-align: right;
    margin: 0 !important;
    font-size: 11px;
  }
  .residences .residence-tabs {
    flex: 0 0 auto;
    margin-bottom: 8px !important;
  }
  .residences .residence-tabs button {
    padding: 8px 10px !important;
  }
  .residences .residence-panel {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  }
  .residences .residence-info {
    min-height: 0;
    padding: clamp(18px, 2.1vw, 32px) !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .residences .residence-info h3 {
    font-size: clamp(31px, 2.8vw, 46px);
    margin: 8px 0 !important;
  }
  .residences .residence-info > p {
    font-size: clamp(10px, 0.82vw, 12px);
    line-height: 1.6;
  }
  .residences .residence-meta {
    margin: 10px 0 !important;
  }
  .residences .residence-meta strong {
    font-size: 20px;
  }
  .residences .direct-plan {
    height: 100%;
    padding: clamp(12px, 1.6vw, 22px) !important;
  }
  .residences .direct-plan-top {
    margin-bottom: 5px;
  }
  .residences .direct-plan-top h4 {
    font-size: clamp(25px, 2vw, 34px);
  }
  .residences .inline-plan-stage {
    flex: 1 1 auto;
    min-height: 0 !important;
    background: #fff;
  }
  .residences .inline-plan-stage img {
    width: 100%;
    height: 100% !important;
    max-height: none !important;
    object-fit: contain;
    transform: scale(0.985);
    will-change: transform;
  }
  .residences .direct-plan .plan-footnote {
    margin-top: 3px !important;
    font-size: 7px;
  }

  /* LIFESTYLE: compact two-column composition */
  .lifestyle {
    background: var(--deep);
  }
  .lifestyle-intro {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .lifestyle .lifestyle-heading {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    align-items: end;
    margin-bottom: clamp(10px, 1.2vh, 15px) !important;
  }
  .lifestyle h2 {
    font-size: clamp(35px, 3.1vw, 52px);
    line-height: 1;
  }
  .lifestyle .club-number {
    margin: 0 !important;
  }
  .lifestyle .club-number strong {
    font-size: clamp(34px, 3vw, 48px) !important;
  }
  .lifestyle .lifestyle-grid {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
    gap: clamp(28px, 4vw, 64px) !important;
    align-items: stretch;
  }
  .lifestyle .clubhouse-figure {
    height: 100%;
    min-height: 0;
    margin: 0;
    overflow: hidden;
  }
  .lifestyle .clubhouse-figure img {
    width: 100%;
    height: calc(100% - 22px);
    object-fit: cover;
    aspect-ratio: auto !important;
    transform: scale(1.06);
    will-change: transform;
  }
  .lifestyle .lifestyle-copy {
    align-self: center;
  }
  .lifestyle .lifestyle-copy h3 {
    font-size: clamp(32px, 2.7vw, 45px);
    margin: 8px 0 !important;
  }
  .lifestyle .lifestyle-copy > p {
    font-size: clamp(10px, 0.82vw, 12px);
    line-height: 1.6;
  }
  .lifestyle .amenity {
    padding: 8px 0 !important;
  }
  .lifestyle .amenity-detail {
    padding: 5px 0 8px;
    font-size: 15px;
    line-height: 1.5;
  }

  /* GALLERY: three images fill remaining viewport */
  .gallery .gallery-grid {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    grid-template-rows: 1fr 1fr;
    gap: 10px !important;
  }
  .gallery .gallery-item {
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }
  .gallery .gallery-item.gallery-wide {
    grid-row: 1 / 3;
    grid-column: 1;
  }
  .gallery .gallery-item:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }
  .gallery .gallery-item:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
  }
  .gallery .gallery-item img,
  .gallery .gallery-wide img {
    height: 100% !important;
    width: 100%;
    object-fit: cover;
    transform: scale(1.07);
    will-change: transform;
  }
  .gallery .fine-print {
    flex: 0 0 auto;
    margin-top: 5px !important;
    font-size: 7px;
    line-height: 1.3;
  }

  /* LOCATION: copy + map fill one screen */
  .location .location-layout {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(320px, 0.74fr) minmax(0, 1.26fr);
    gap: clamp(28px, 4vw, 64px) !important;
  }
  .location .location-copy {
    align-self: center;
  }
  .location .location-copy h2 {
    font-size: clamp(38px, 3.4vw, 56px);
    line-height: 1;
  }
  .location .location-copy > p {
    font-size: clamp(10px, 0.82vw, 12px);
    line-height: 1.65;
    margin: 10px 0 !important;
  }
  .location .location-tabs {
    margin: 10px 0;
  }
  .location .location-tabs button {
    padding: 8px 12px;
  }
  .location #location-content h3 {
    font-size: 20px;
    margin: 8px 0;
  }
  .location #location-content ul {
    margin: 6px 0 12px;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 18px;
  }
  .location #location-content li {
    font-size: 16px;
    padding: 4px 0;
  }
  .location .location-map {
    height: 100%;
    min-height: 0 !important;
    overflow: hidden;
  }
  .location .map-placeholder {
    height: 100%;
    min-height: 0;
    padding: clamp(20px, 3vw, 45px);
  }
  .location .map-placeholder h3 {
    font-size: clamp(34px, 3vw, 50px);
  }

  /* FAQ: show all questions in a compact single-screen split */
  .faq {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    align-items: center;
    gap: clamp(30px, 5vw, 80px) !important;
  }
  .faq .faq-heading {
    align-self: center;
  }
  .faq .faq-heading h2 {
    font-size: clamp(38px, 3.5vw, 58px);
    margin-top: 10px !important;
  }
  .faq .faq-heading > p {
    font-size: 11px;
    margin-top: 8px !important;
  }
  .faq .faq-list {
    min-height: 0;
  }
  .faq summary {
    padding: 10px 0 !important;
    font-size: 11px;
  }
  .faq details > p {
    font-size: 9px;
    line-height: 1.55;
    padding-bottom: 8px;
  }

  .final-cta {
    display: flex;
    align-items: center;
    padding: var(--screen-pad-top) var(--screen-pad-x) 32px !important;
  }
  .final-cta > img {
    transform: scale(1.08);
    will-change: transform;
  }
  .final-cta h2 {
    font-size: clamp(46px, 4.8vw, 78px);
    margin: 12px 0 18px !important;
  }
}

/* Keep content inside the viewport on shorter laptop displays. */
@media (min-width: 901px) and (max-height: 760px) {
  :root {
    --screen-pad-top: 78px;
    --screen-gap: 8px;
  }
  .site-header {
    height: 72px !important;
    background: #203a33 !important;
  }
  .site-header.scrolled {
    height: 66px !important;
  }
  .brand {
    width: 175px;
  }
  .desktop-nav a,
  .header-brochure {
    font-size: 9px;
  }
  .overview .intro-grid h2,
  .residences .section-heading h2,
  .lifestyle h2 {
    font-size: 36px !important;
  }
  .overview .overview-story h3,
  .residences .residence-info h3,
  .lifestyle .lifestyle-copy h3 {
    font-size: 31px !important;
  }
  .overview > .metrics {
    padding: 5px 0 !important;
  }
  .overview > .metrics strong {
    font-size: 25px !important;
  }
  .residences .residence-info {
    padding: 15px 22px !important;
  }
  .residences .residence-meta {
    margin: 6px 0 !important;
  }
  .lifestyle .amenity {
    padding: 5px 0 !important;
  }
  .lifestyle .amenity-detail {
    padding: 3px 0 5px;
  }
  .faq summary {
    padding: 7px 0 !important;
  }
}

/* Mobile/tablet: still snap screen-by-screen, with intentionally condensed content. */
@media (max-width: 900px) {
  html {
    scroll-snap-type: y proximity;
  }
  .hero,
  .overview,
  .residences,
  .lifestyle,
  .gallery,
  .location,
  .faq,
  .final-cta {
    min-height: 100svh;
    scroll-snap-align: start;
  }
  .metrics {
    display: none !important;
  }
  .section-top {
    margin-bottom: 10px !important;
    padding: 0 !important;
  }
  .overview .intro-grid {
    margin-bottom: 12px !important;
    gap: 8px !important;
  }
  .overview .intro-grid h2,
  .residences .section-heading h2,
  .lifestyle h2 {
    font-size: clamp(32px, 10vw, 42px) !important;
  }
  .overview .intro-text {
    display: none;
  }
  .overview .overview-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 12px !important;
    min-height: 0;
  }
  .overview .architecture-figure {
    max-height: 47svh;
    overflow: hidden;
    margin: 0;
  }
  .overview .architecture-figure > img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    transform: scale(1.05);
    will-change: transform;
  }
  .overview .overview-story h3 {
    font-size: 31px;
    margin: 5px 0 !important;
  }
  .overview .overview-story > p {
    display: none;
  }
  .overview .story-features {
    display: none;
  }

  .residences .section-heading p {
    display: none;
  }
  .residences .section-heading {
    margin-bottom: 6px !important;
  }
  .residences .residence-tabs {
    margin-bottom: 6px !important;
  }
  .residences .residence-tabs button {
    padding: 7px 3px !important;
    font-size: 9px;
  }
  .residences .residence-panel {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    min-height: 0;
  }
  .residences .residence-info {
    padding: 13px 16px !important;
  }
  .residences .residence-info h3 {
    font-size: 29px;
    margin: 4px 0 !important;
  }
  .residences .residence-info > p,
  .residences .residence-meta small {
    display: none;
  }
  .residences .residence-meta {
    margin: 4px 0 !important;
  }
  .residences .residence-info .text-link {
    font-size: 9px;
  }
  .residences .direct-plan {
    min-height: 0 !important;
    padding: 10px !important;
  }
  .residences .direct-plan-top h4 {
    font-size: 23px;
  }
  .residences .inline-plan-stage {
    flex: 1 1 auto;
    min-height: 34svh !important;
  }
  .residences .inline-plan-stage img {
    height: 100% !important;
    object-fit: contain;
  }
  .residences .plan-footnote {
    display: none !important;
  }

  .lifestyle-intro {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
  }
  .lifestyle .lifestyle-heading {
    margin-bottom: 8px !important;
  }
  .lifestyle .club-number {
    margin-top: 8px !important;
  }
  .lifestyle .club-number strong {
    font-size: 30px !important;
  }
  .lifestyle .lifestyle-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 42svh) auto;
    gap: 10px !important;
    min-height: 0;
  }
  .lifestyle .clubhouse-figure {
    height: 100%;
    margin: 0;
    overflow: hidden;
  }
  .lifestyle .clubhouse-figure img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    transform: scale(1.05);
    will-change: transform;
  }
  .lifestyle .lifestyle-copy h3 {
    font-size: 29px;
    margin: 5px 0 !important;
  }
  .lifestyle .lifestyle-copy > p {
    display: none;
  }
  .lifestyle .amenity {
    padding: 5px 0 !important;
  }
  .lifestyle .amenity-detail {
    display: none !important;
  }
  .lifestyle .text-link {
    display: none;
  }

  .gallery {
    height: 100svh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .gallery .gallery-grid {
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 6px !important;
    min-height: 0;
  }
  .gallery .gallery-item {
    height: 100%;
    overflow: hidden;
  }
  .gallery .gallery-item.gallery-wide {
    grid-column: 1/-1;
  }
  .gallery .gallery-item img,
  .gallery .gallery-wide img {
    height: 100% !important;
    width: 100%;
    object-fit: cover;
    transform: scale(1.05);
    will-change: transform;
  }
  .gallery .fine-print {
    font-size: 6px;
    margin-top: 4px !important;
  }

  .location {
    height: 100svh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .location .location-layout {
    flex: 1 1 auto;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 10px !important;
    min-height: 0;
  }
  .location .location-copy h2 {
    font-size: 36px;
  }
  .location .location-copy > p {
    display: none;
  }
  .location .location-tabs {
    margin: 5px 0;
  }
  .location .location-tabs button {
    padding: 6px 8px;
    font-size: 9px;
  }
  .location #location-content h3 {
    display: none;
  }
  .location #location-content ul {
    display: block;
  }
  .location .location-copy > a {
    font-size: 9px;
  }
  .location .location-map {
    min-height: 0 !important;
    height: 100%;
  }
  .location .map-placeholder {
    height: 100%;
    min-height: 0;
    padding: 20px;
  }
  .location .map-placeholder h3 {
    font-size: 34px;
  }

  .faq {
    height: 100svh;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 8px !important;
  }
  .faq .faq-heading h2 {
    font-size: 36px !important;
    margin-top: 5px !important;
  }
  .faq .faq-heading > p {
    display: none;
  }
  .faq .faq-list {
    min-height: 0;
  }
  .faq summary {
    padding: 7px 0 !important;
    font-size: 10px;
  }
  .faq details > p {
    font-size: 8px;
    line-height: 1.35;
    padding-bottom: 5px;
  }
  .final-cta {
    height: 100svh !important;
    min-height: 100svh !important;
    padding: 90px 24px 80px !important;
  }
  .final-cta h2 {
    font-size: 48px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-snap-type: y proximity;
  }
  .parallax-media {
    transform: none !important;
  }
}
