/* The Residences — type-led layout. Loads after site.67ebd69ab55f.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;
 min-height:min(88svh,760px);display:flex;align-items:flex-end;
 padding:calc(132px + 60px) 6.5% 84px}
.residence-opening>picture>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 42%;z-index:-3}
.residence-opening:after{content:'';position:absolute;inset:0;
 background:linear-gradient(180deg,#061c2b8c,#061c2b1f 32%,#081e23a1 64%,#061a18ed);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 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:'Libre Caslon Display',Georgia,serif;font-size:clamp(34px,4vw,54px);
 line-height:1;color:var(--ink);margin:6px 0 4px}
.type-area span{font-family:'DM Sans',system-ui,sans-serif;font-size:17px;color:var(--muted)}
p.type-meta{font-size:17px;letter-spacing:.01em;line-height:1.65}

/* per-type sections */
.type-feature{display:grid;grid-template-columns:1.05fr 1fr;gap:clamp(40px,5vw,84px);
 align-items:start;padding:var(--res-gap) 6.5%}
.type-feature.reverse .type-photo{order:2}
.type-photo{margin:0;overflow:hidden}
.type-photo img{width:100%;height:clamp(360px,44vw,620px);object-fit:cover;
 box-shadow:var(--shadow);transform:translate3d(0,var(--type-drift,0px),0) scale(1.06)}
.type-photo figcaption{margin-top:16px;font-size:16px;line-height:1.6;color:var(--muted)}
.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{display:block;width:100%;padding:0;border:1px solid var(--rule);
 background:#fff;color:var(--ink);text-align:left;cursor:zoom-in;margin-bottom:16px;
 transition:border-color .2s}
.featured-plan:hover{border-color:var(--ink)}
.featured-plan img{width:100%;display:block;background:#fff;
 max-height:clamp(360px,46vw,560px);object-fit:contain}
.featured-plan span{display:block;padding:16px 18px;font-size:16px;
 border-top:1px solid var(--rule);min-height:52px}

/* penthouse */
.penthouse-feature{padding:var(--res-gap) 6.5%;background:var(--ink);color:var(--paper)}
.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-feature figure{margin:0}
.penthouse-feature figure img{width:100%;height:clamp(320px,46vw,660px);object-fit:cover}
.penthouse-feature figcaption{margin-top:16px;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;grid-template-columns:1fr 1fr;gap:18px;flex:1 1 520px}
.penthouse-feature .featured-plan{margin-bottom:0;display:flex;flex-direction:column}
.penthouse-feature .featured-plan span{margin-top:auto}

@media(max-width:1100px){
 .type-columns{grid-template-columns:1fr 1fr}
 .type-columns h3{min-height:0}
}
@media(max-width:900px){
 .residence-opening{min-height:0;padding:calc(108px + 48px) 7% 60px}
 .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,.type-feature,.penthouse-feature{padding-left:7%;padding-right:7%}
 .type-columns{grid-template-columns:1fr}
 .type-feature{display:block}
 .type-feature .type-photo{margin-bottom:32px}
 .type-photo img{height:300px}
 .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{padding-top:calc(108px + 34px);padding-bottom:46px}
 .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)}}
