/* The Residences — type-led layout. Loads after site.13b42554509b.css; shares its tokens.
   Follows RESIDENCES_PAGE_PLAN.md: photography drifts, floorplans stay still. */

.residence-page{--res-gap:clamp(70px,7vw,120px)}

/* opening — grows with its text so long headings never clip on small phones */
.residence-opening{position:relative;isolation:isolate;color:#fff;overflow:clip;display:grid;margin-top:84px}
.residence-opening>picture>img{grid-area:1/1;width:100%;height:100%;object-fit:cover;object-position:50% 42%;z-index:-3}
.residence-opening>div{grid-area:1/1;align-self:end;padding:40px 6.5% 52px}
.residence-opening:after{content:'';position:absolute;inset:0;
 background:linear-gradient(180deg,#061c2b59,#061c2b00 22%,#081e2300 48%,#081e2366 74%,#061a18b8);z-index:-1}
.residence-opening h1{font-size:clamp(46px,6.4vw,102px);line-height:1.02;text-wrap:balance}
.residence-opening p{font-size:clamp(18px,1.6vw,22px);line-height:1.6;margin-top:20px;color:#fffffff0}

.res-action{display:inline-flex;align-items:center;gap:12px;padding:17px 30px;
 border:1px solid var(--ink);font-size:17px;min-height:54px;transition:background .2s,color .2s}
.res-action:hover{background:var(--ink);color:var(--paper)}
.res-action.light{margin-top:34px;border-color:#ffffff9c;color:#fff}
.res-action.light:hover{background:var(--paper);color:var(--ink);border-color:var(--paper)}.res-text-link{display:inline-flex;align-items:center;gap:8px;font-size:17px;
 padding:12px 0;min-height:44px;border-bottom:1px solid var(--rule);transition:border-color .2s}
.res-text-link:hover{border-color:var(--ink)}

/* section navigation */
.res-nav{position:sticky;top:0;z-index:15;display:flex;gap:6px;flex-wrap:wrap;
 padding:0 6.5%;background:var(--paper);border-bottom:1px solid var(--rule)}
.res-nav a{padding:20px 18px;font-size:16px;letter-spacing:.02em;position:relative;white-space:nowrap}
.res-nav a:after{content:'';position:absolute;left:16px;right:16px;bottom:0;height:2px;
 background:var(--ink);transform:scaleX(0);transform-origin:left;transition:transform .3s var(--ease)}
.res-nav a:hover:after,.res-nav a[aria-current=true]:after{transform:scaleX(1)}
.res-nav a[aria-current=true]{color:var(--ink)}

/* keep anchor targets clear of the sticky bar */
.type-comparison,.type-feature,.penthouse-feature,#amenities,#res-interiors,#specifications{scroll-margin-top:64px}
[tabindex='-1']:focus{outline:none}
.res-introduction{padding:var(--res-gap) 6.5% calc(var(--res-gap) - 20px);max-width:1150px}
.res-introduction h2{font-size:clamp(32px,4.2vw,62px);line-height:1.08;margin-bottom:30px;text-wrap:balance}
.res-introduction p{font-size:clamp(18px,1.7vw,20px);line-height:1.8;max-width:62ch}

.res-section-heading{margin-bottom:clamp(40px,4vw,64px);max-width:760px}
.res-section-heading h2{font-size:clamp(30px,3.8vw,56px);line-height:1.1;margin-bottom:18px;text-wrap:balance}
.res-section-heading p{font-size:19px;line-height:1.75;color:var(--muted)}
.res-note{margin-top:44px;font-size:16px;line-height:1.75;color:var(--muted);max-width:74ch}

/* type comparison */
.type-comparison{padding:var(--res-gap) 6.5%;background:var(--paper-warm)}
.type-columns{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--rule);border:1px solid var(--rule)}
.type-columns article{background:var(--paper);padding:36px 28px 30px;display:flex;flex-direction:column;gap:12px}
.type-columns article:last-child{grid-column:span 2}
.type-columns h3{font-size:23px;line-height:1.2;min-height:2.4em;overflow-wrap:break-word;-webkit-hyphens:auto;hyphens:auto}
.type-columns p{font-size:17px;line-height:1.7;color:var(--muted)}
.type-columns .res-text-link{margin-top:auto;padding-top:22px;color:var(--ink)}
p.type-area{font-family:'Montserrat',sans-serif;font-weight:500;font-size:clamp(34px,4vw,54px);
 line-height:1;color:var(--ink);margin:6px 0 4px}
.type-area span{font-family:'Montserrat',sans-serif;font-size:17px;color:var(--muted)}
p.type-meta{font-size:17px;letter-spacing:.01em;line-height:1.65}

/* per-type sections */
/* full-bleed photo, then details and floorplan side by side */
.type-feature{padding:0 0 var(--res-gap)}
.type-photo{margin:0;overflow:hidden}
.type-photo img{display:block;width:100%;height:auto;
 transform:translate3d(0,var(--type-drift,0px),0) scale(var(--type-scale,1))}
.type-photo figcaption{margin-top:16px;padding:0 6.5%;font-size:16px;line-height:1.6;color:var(--muted)}
.type-body{display:grid;grid-template-columns:1fr 1.15fr;gap:clamp(40px,5vw,84px);
 align-items:start;padding:clamp(40px,4.5vw,72px) 6.5% 0}
.type-details h2{font-size:clamp(30px,3.6vw,52px);line-height:1.08;margin-bottom:6px}
.type-details dl{margin:26px 0 30px;border-top:1px solid var(--rule)}
.type-details dl>div{display:grid;grid-template-columns:minmax(140px,38%) 1fr;gap:4%;
 padding:16px 0;border-bottom:1px solid var(--rule)}
.type-details dt{font-size:16px;font-weight:500;letter-spacing:.08em;text-transform:uppercase;line-height:1.55;color:var(--muted);
 overflow-wrap:break-word;-webkit-hyphens:auto;hyphens:auto}
.type-details dd{margin:0;font-size:18px;line-height:1.6}
.type-details .res-action{margin-top:28px}

/* floorplans stay still and readable — no drift, no scale */
.featured-plan{position:relative;display:block;width:100%;padding:0;border:1px solid var(--rule);
 background:var(--paper);color:var(--ink);text-align:left;cursor:zoom-in;margin-bottom:16px;
 transition:border-color .2s}
.featured-plan:hover{border-color:var(--ink);background:var(--paper);color:var(--ink)}
.featured-plan img{width:100%;display:block;background:var(--paper);
 max-height:clamp(360px,46vw,560px);object-fit:contain}
/* small expand icon in the drawing's corner */
.featured-plan span{position:absolute;bottom:14px;right:14px;display:grid;place-items:center;
 width:40px;height:40px;
 background:#ffffffe6;border:1px solid var(--rule);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
 transition:background .2s,color .2s}
.featured-plan:hover span{background:var(--ink);color:var(--paper);border-color:var(--ink)}

/* penthouse */
.penthouse-feature{padding:var(--res-gap) 0;background:var(--ink);color:var(--paper)}
.penthouse-heading,.penthouse-bottom,.penthouse-feature figcaption{padding-inline:6.5%}
.penthouse-heading{display:flex;justify-content:space-between;align-items:flex-end;
 gap:40px;flex-wrap:wrap;margin-bottom:clamp(36px,4vw,60px)}
.penthouse-heading h2{font-size:clamp(38px,5.6vw,88px);line-height:1;max-width:11ch;text-wrap:balance}
.penthouse-heading p.type-area{color:var(--paper)}
.penthouse-heading .type-area span,.penthouse-heading .type-meta{color:#ffffffdb}
.penthouse-gallery{display:grid;gap:28px;margin-top:34px}
.penthouse-gallery figure{margin:0}
.penthouse-gallery img{display:block;width:100%;height:auto;aspect-ratio:1672 / 941;object-fit:cover}
.penthouse-gallery figcaption{padding-inline:6.5%;margin-top:12px;font-size:16px;line-height:1.6;color:#ffffffd1}
.penthouse-bottom{display:flex;justify-content:space-between;align-items:flex-end;
 gap:40px;flex-wrap:wrap;margin-top:clamp(36px,4vw,56px)}
.penthouse-plans{display:grid;gap:18px;flex:1 1 520px}
.penthouse-feature .featured-plan{margin-bottom:0}

@media(max-width:1100px){
 .type-columns{grid-template-columns:1fr 1fr}
 .type-columns h3{min-height:0}
}
@media(max-width:900px){
 .residence-opening{margin-top:72px}
 .residence-opening>div{grid-area:2/1;background:var(--ink-deep);padding:36px 7% 40px}
 .residence-opening:after{display:none}
 .residence-opening p{font-size:17px}
 .res-nav{gap:0;overflow-x:auto;flex-wrap:nowrap;padding:0 7%;
  scrollbar-width:none;-webkit-overflow-scrolling:touch}
 .res-nav::-webkit-scrollbar{display:none}
 .res-nav a{padding:18px 14px;min-height:48px;display:flex;align-items:center}
 /* keep anchor targets clear of the sticky bar */
.type-comparison,.type-feature,.penthouse-feature,#amenities,#res-interiors,#specifications{scroll-margin-top:64px}
[tabindex='-1']:focus{outline:none}
.res-introduction{padding:56px 7% 40px}
 .type-comparison{padding-left:7%;padding-right:7%}
 .type-photo figcaption,.type-body,.penthouse-heading,.penthouse-bottom,.penthouse-feature figcaption{padding-inline:7%}
 .type-columns{grid-template-columns:1fr}
 .type-columns article:last-child{grid-column:auto}
 .type-body{display:block;padding-top:36px}
 .type-body .featured-plan{margin-top:32px}
 .featured-plan span{bottom:10px;right:10px}
 .penthouse-plans{grid-template-columns:1fr;flex-basis:auto;width:100%}
 .penthouse-bottom .res-action{width:100%;justify-content:center}
}
@media(max-width:380px){
 .residence-opening h1{font-size:38px}
 .res-action{padding:14px 20px;font-size:14px}
}
@media(prefers-reduced-motion:reduce){
 .type-photo img{transform:none}
}

@media(max-width:900px){.res-nav{flex-wrap:wrap;overflow:visible;padding:0 5%}.res-nav a{padding:10px 12px}.type-comparison,.type-feature,.penthouse-feature,#amenities,#res-interiors,#specifications{scroll-margin-top:var(--res-nav-height,100px)}}
