/* ORMÉ responsive refinement: preserve the approved espresso/cream identity. */
:root{--ui-espresso:#342820;--ui-walnut:#46362b;--ui-paper:#ebe1cf;--ui-cream:#f6edde;--ui-gold:#d5b574;--ui-line:rgba(235,225,207,.24)}
.project .perks-centered{display:grid;grid-template-columns:minmax(210px,.85fr) minmax(0,2fr) minmax(210px,.85fr);grid-template-rows:auto repeat(3,auto);gap:20px 28px;align-items:center;width:100%;max-width:1560px;margin-inline:auto;overflow:visible}
.project .perks-centered .project-inclusions{display:contents;position:static;inset:auto;border:0;margin:0;padding:0}
.project .perks-centered .terrace-experience{grid-column:2;grid-row:2 / 5;width:100%;min-width:0;min-height:0!important;align-self:center}
.project .perks-centered .terrace-sticky{position:relative;inset:auto;margin:0;padding:14px;border:1px solid var(--ui-line);border-radius:18px;background:var(--ui-walnut);box-shadow:none}
.project .perks-centered .terrace-scene{aspect-ratio:3/2;width:100%;height:auto;overflow:hidden;border-radius:10px;background:var(--ui-espresso)}
.project .perks-centered .terrace-scene img{width:100%;height:100%;object-fit:contain}
.project .perks-centered .terrace-sticky figcaption{position:static;inset:auto;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;padding:14px 0 8px;font-size:12px;line-height:1.5;letter-spacing:.025em;background:none;border:0;border-radius:0;backdrop-filter:none;color:var(--ui-cream)}
.project .perks-centered .terrace-control{display:block;width:100%;min-height:32px;margin:4px 0;accent-color:var(--ui-gold)}
.project .perks-centered .terrace-chapters{display:flex;justify-content:space-between;gap:8px;margin:0;padding:0;border:0}
.project .perks-centered .terrace-chapters button{min-height:44px;padding:8px 4px;font-size:13px;line-height:1.4;white-space:normal;text-align:center;color:var(--ui-cream);border-bottom:2px solid transparent}
.project .perks-centered .terrace-chapters button[aria-pressed=true]{color:var(--ui-gold);border-bottom-color:var(--ui-gold)}
.project .perks-centered .terrace-note{font-size:12px!important;line-height:1.6;margin:10px 0 0;color:#e3d6c4;max-width:none}
.project .perks-centered .terrace-note:last-child{display:none}
.project .perks-centered .project-inclusions .perk-card{position:relative;display:block;min-width:0;min-height:0;height:auto;padding:16px 0;margin:0;border:0;border-bottom:1px solid var(--ui-line);background:none!important;opacity:1!important;transform:none!important;cursor:auto;align-self:center;overflow:visible;transition:border-color .2s}
.project .perks-centered .perk-card:nth-child(1){grid-column:1;grid-row:2}
.project .perks-centered .perk-card:nth-child(2){grid-column:1;grid-row:3}
.project .perks-centered .perk-card:nth-child(3){grid-column:1;grid-row:4}
.project .perks-centered .perk-card:nth-child(4){grid-column:3;grid-row:2}
.project .perks-centered .perk-card:nth-child(5){grid-column:2;grid-row:1;text-align:center;border-bottom:0;padding:10px 12px}
.project .perks-centered .perk-card:nth-child(6){grid-column:3;grid-row:3}
.project .perks-centered .perk-card:nth-child(7){grid-column:3;grid-row:4}
.project .perks-centered .perk-detail{min-width:0;max-width:100%}
.project .perks-centered summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;list-style:none;cursor:pointer}
.project .perks-centered summary::-webkit-details-marker{display:none}
.project .perks-centered summary h3{padding:0;margin:0;max-width:none;font-family:var(--studio-display,'Cormorant Garamond',serif);font-size:clamp(23px,1.85vw,30px);font-weight:400;line-height:1.14;letter-spacing:-.025em;color:var(--ui-cream);overflow-wrap:anywhere}
.project .perks-centered .perk-card:nth-child(5) summary{justify-content:center}
.project .perks-centered .perk-card:nth-child(5) h3{color:var(--ui-gold);font-size:clamp(32px,2.7vw,44px)}
.project .perks-centered .perk-detail>p{padding:0;margin:12px 0 0;max-width:none;font-size:14px;line-height:1.65;word-spacing:normal;letter-spacing:normal;color:#eadfce;overflow:visible;overflow-wrap:anywhere}
.project .perks-centered .perk-toggle-icon{position:relative;width:16px;height:16px;flex:0 0 16px;color:var(--ui-gold)}
.project .perks-centered .perk-toggle-icon:before,.project .perks-centered .perk-toggle-icon:after{content:'';position:absolute;background:currentColor;left:1px;right:1px;top:7px;height:1px}
.project .perks-centered .perk-toggle-icon:after{transform:rotate(90deg);transition:transform .18s}
.project .perks-centered details[open] .perk-toggle-icon:after{transform:rotate(0)}
.project .perks-centered .perk-card:has(summary:hover),.project .perks-centered .perk-card:has(summary:focus-visible){border-color:var(--ui-gold)}
:where(button,a,input,select,textarea,summary):focus-visible{outline:2px solid var(--ui-gold);outline-offset:5px}
@media(max-width:1099px){
 .project .perks-centered{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:none;max-width:860px;gap:16px 24px}
 .project .perks-centered .terrace-experience{grid-column:1 / -1;grid-row:2;max-width:740px;justify-self:center}
 .project .perks-centered .project-inclusions .perk-card{grid-column:auto;grid-row:auto;width:100%;align-self:start}
 .project .perks-centered .project-inclusions .perk-card:nth-child(5){grid-column:1 / -1;grid-row:1;padding:12px}
 .project .perks-centered summary h3{font-size:25px}
 .project .perks-centered .terrace-scene{max-height:none}
}
@media(max-width:600px){
 .project .perks-centered{grid-template-columns:minmax(0,1fr);gap:8px}
 .project .perks-centered .terrace-sticky{padding:10px;border-radius:12px}
 .project .perks-centered .terrace-note{font-size:12px!important}
 .project .perks-centered .terrace-sticky figcaption{font-size:11px;letter-spacing:0}
 .project .perks-centered .project-inclusions .perk-card{padding:14px 4px}
 .project .perks-centered summary h3{font-size:27px}
 .project .perks-centered .perk-detail>p{font-size:15px;line-height:1.7}
 .project .perks-centered .perk-card:nth-child(5) h3{font-size:36px}
}
@media(max-width:1100px){
 .site-header .menu{display:flex;flex-direction:column;gap:6px;padding:10px;align-items:center;justify-content:center;min-width:44px;min-height:44px;flex:0 0 44px;cursor:pointer}
 .site-header .menu span{display:block;width:22px;height:1px;background:currentColor}
 .site-header nav{display:none}
 .site-header.menu-open nav{display:flex;position:absolute;top:100%;left:0;right:0;width:100%;max-height:calc(100dvh - 78px);overflow-y:auto;flex-direction:column;align-items:stretch;gap:0;padding:12px clamp(20px,5vw,72px);background:var(--ui-paper);color:var(--ui-espresso);border-bottom:1px solid #c1ad93;box-shadow:0 16px 30px rgba(35,26,20,.12)}
 .site-header.menu-open nav a{display:block;min-height:48px;padding:14px 4px;line-height:1.5;font-size:16px;color:var(--ui-espresso);white-space:normal;overflow-wrap:anywhere}
}
/* Keep the next-unit control outside the scrollable specification area. */
@media(min-width:761px){
 .plans .residence-story{min-height:0;height:calc(100svh - 104px)}
 .plans .residence-story .residence-selector-panel{display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:16px;min-height:0;padding:clamp(22px,2.5vw,40px);overflow:visible}
 .plans .residence-story .residence-story-index{margin:0}
 .plans .residence-story .residence-selector-copy{min-height:0;overflow-y:auto;overflow-x:hidden;padding-right:10px;scrollbar-width:thin;scrollbar-color:var(--ui-gold) var(--ui-espresso);overscroll-behavior:contain}
 .plans .residence-story .residence-story-controls{min-height:0;margin:0;padding:0;align-self:end}
 .plans .residence-story .residence-story-next{min-height:104px;max-width:100%;grid-template-columns:96px minmax(0,1fr)}
 .plans .residence-story .residence-story-next img{width:96px;height:80px}
 .plans .residence-story .residence-story-next>span{min-width:0;overflow-wrap:anywhere}
}
/* Dialog controls stay pinned while the native dialog content scrolls. */
.modal-toolbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:62px;padding:9px 12px;background:var(--ui-paper);color:var(--ui-espresso);border-bottom:1px solid #c6b49c}
.modal-toolbar .modal-close{position:static;flex:0 0 44px;width:44px;height:44px;margin:0 0 0 auto;min-height:44px;background:var(--ui-paper);color:var(--ui-espresso)}
.modal-toolbar .unit-detail-back{position:static;display:inline-flex;align-items:center;min-height:44px;margin:0;max-width:calc(100% - 60px);padding:8px 12px;background:none;color:var(--ui-espresso)}
.neighbourhood-explorer{max-width:1296px;margin:auto;color:var(--ui-espresso)}
.neighbourhood-destinations{display:flex;gap:28px;overflow-x:auto;scrollbar-width:thin;border-bottom:1px solid #b7a48a;margin-bottom:34px;padding-bottom:1px}
.neighbourhood-destinations button{flex:1 0 auto;display:grid;gap:8px;min-height:82px;padding:12px 4px 17px;text-align:left;background:none;border:0;border-bottom:2px solid transparent;color:var(--ui-espresso);font-size:17px}
.neighbourhood-destinations button small{font-size:13px;line-height:1.5;color:#725a40}
.neighbourhood-destinations button[aria-selected=true]{border-bottom-color:#866134}
.neighbourhood-slideshow{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:clamp(26px,4vw,64px);align-items:center}
.neighbourhood-photo{margin:0;min-width:0;position:relative;touch-action:pan-y}
.neighbourhood-photo img{display:block;width:100%;aspect-ratio:3/2;object-fit:cover;border-radius:14px;background:#d6c8b6}
.neighbourhood-photo figcaption{position:static;display:block;inset:auto;margin:12px 0 0;padding:0;font-size:13px;color:#705a45;background:none;letter-spacing:0;text-transform:none}
.neighbourhood-place-panel{min-width:0;overflow:visible}
.neighbourhood-category{margin:0 0 14px;font-size:14px;color:#705335;letter-spacing:0}
.neighbourhood-place-panel h3{margin:0 0 24px;font-family:var(--studio-display,Georgia,serif);font-size:clamp(38px,3.5vw,56px);font-weight:400;line-height:1.05;letter-spacing:-.035em;overflow-wrap:anywhere}
.neighbourhood-distance{display:grid;gap:6px;margin:0 0 24px}
.neighbourhood-distance strong{font-size:30px;font-weight:500;line-height:1.3}
.neighbourhood-distance span{font-size:13px;color:#725a40}
.neighbourhood-description{max-width:38ch;font-size:16px;line-height:1.75;margin:0 0 25px}
.neighbourhood-directions{display:inline-flex;align-items:center;min-height:44px;padding:8px 0;border-bottom:1px solid #82613e;color:var(--ui-espresso);font-size:14px;line-height:1.5;text-decoration:none}
.neighbourhood-controls{display:flex;align-items:center;gap:20px;margin-top:30px}
.neighbourhood-controls button{display:grid;place-items:center;flex:0 0 48px;width:48px;height:48px;border:1px solid #9d8568;border-radius:50%;font-size:23px;background:none;color:var(--ui-espresso)}
.neighbourhood-counter{font-size:13px;color:#705a45}
.neighbourhood-distance-note{max-width:100%;margin:26px 0 24px;font-size:12px;line-height:1.75;color:#6c5946}
.neighbourhood-map{border-top:1px solid #b7a48a;border-bottom:1px solid #b7a48a}
.neighbourhood-map>summary{min-height:56px;padding:17px 4px;font-size:15px;cursor:pointer}
.neighbourhood-map .map-wrap{width:100%;max-width:none;height:360px;min-height:0;margin:0 0 20px;overflow:hidden}
.neighbourhood-map iframe{width:100%;height:100%;border:0}
#chantier .construction-thumbs{display:flex;max-width:100%;gap:12px;overflow-x:auto;overflow-y:hidden;padding:12px 2px 18px;scroll-snap-type:x proximity;scrollbar-width:thin}
#chantier .construction-thumbs button{display:block;flex:0 0 126px;min-width:126px;width:126px;min-height:108px;height:auto;scroll-snap-align:center}
#chantier .construction-thumbs button img{display:block;max-width:100%;width:100%;height:78px;object-fit:cover}
#chantier .construction-thumbs button span{display:block;line-height:1.5;padding:8px 2px}
@media(max-width:760px){.neighbourhood-slideshow{grid-template-columns:minmax(0,1fr);gap:24px}.neighbourhood-destinations{gap:22px;margin-bottom:24px}.neighbourhood-destinations button{font-size:15px;min-height:76px}.neighbourhood-place-panel h3{font-size:40px;margin-bottom:20px}.neighbourhood-distance{margin-bottom:20px}.neighbourhood-description{max-width:none}.neighbourhood-controls{margin-top:24px}.neighbourhood-map .map-wrap{height:300px}}
.neighbourhood-healthcare{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:26px 0;border-top:1px solid #b7a48a}.neighbourhood-healthcare h3{font-family:var(--studio-display,Georgia,serif);font-size:30px;line-height:1.25;margin:8px 0 12px;overflow-wrap:anywhere}.neighbourhood-healthcare p{font-size:14px;line-height:1.7;margin:0;max-width:65ch}.neighbourhood-healthcare a{flex:0 0 auto;display:inline-flex;align-items:center;min-height:44px;color:var(--ui-espresso);font-size:14px;border-bottom:1px solid #82613e;text-decoration:none}@media(max-width:760px){.neighbourhood-healthcare{align-items:flex-start;flex-direction:column;gap:16px}.neighbourhood-healthcare h3{font-size:28px}}
@media(prefers-reduced-motion:reduce){.project .perks-centered *{transition:none!important;scroll-behavior:auto!important}}
