/* Scoped photographic layers and scroll reveal geometry. */
.home-page .hero-residence{isolation:isolate;background:#07152f;min-height:740px;height:100svh;max-height:1150px}
.residence-atmosphere{position:absolute;inset:0;z-index:-2;background:radial-gradient(ellipse at 78% 43%,#286cb56b,transparent 49%),radial-gradient(ellipse at 95% 80%,#0a989a29,transparent 45%),linear-gradient(120deg,#060f23 15%,#102949 75%,#0c2440)}
.residence-grid{position:absolute;inset:45% -30% -70%;z-index:-1;background-image:linear-gradient(#78b8ef12 1px,transparent 1px),linear-gradient(90deg,#78b8ef12 1px,transparent 1px);background-size:70px 70px;transform:perspective(550px) rotateX(62deg);mask-image:linear-gradient(transparent,#000 40%,transparent)}
.home-page .hero-residence .hero-inner{text-align:left;width:min(1440px,calc(100% - 112px));padding:140px 0 90px;pointer-events:none}
.home-page .hero-residence h1{font-size:clamp(41px,4vw,64px);max-width:700px;line-height:1.08;letter-spacing:-.045em}
.home-page .hero-residence .hero-sub{max-width:440px;margin:0 0 30px;color:#c3cfe0}
.home-page .hero-residence .hero-ctas{justify-content:flex-start;pointer-events:auto}
.home-page .hero-residence .hero-trust{font-size:9px;letter-spacing:1px;color:#a7bdd9;max-width:440px;line-height:1.7}
.residence-scene{position:absolute;z-index:0;right:2%;top:22%;width:57%;height:62%;pointer-events:none}
.residence-house-layer{position:absolute;inset:0;z-index:1;transform:scale(var(--residence-zoom,1));transform-origin:62% 58%}
.residence-house{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 35px 30px #0008)}
@media(min-width:1600px){.residence-scene{right:3%;width:57%}}
@media(max-width:1050px){.home-page .hero-residence{min-height:900px;align-items:flex-start}.home-page .hero-residence .hero-inner{width:calc(100% - 64px);padding-top:150px}.home-page .hero-residence h1{font-size:51px}.residence-scene{width:69%;right:2%;top:auto;bottom:70px;height:36%}.home-page .hero-residence .hero-trust{max-width:340px}.residence-grid{inset:55% -50% -50%}}
@media(max-width:680px){.home-page .hero-residence{min-height:800px}.home-page .hero-residence .hero-inner{width:calc(100% - 40px);padding:128px 0 0}.home-page .hero-residence h1{font-size:clamp(33px,8.3vw,45px);margin-bottom:22px}.home-page .hero-residence .hero-sub{font-size:14px;max-width:340px;margin-bottom:22px}.home-page .hero-residence .hero-ctas{margin-bottom:22px}.home-page .hero-residence .hero-trust{font-size:8px;max-width:300px}.residence-scene{width:98%;right:1%;height:260px;bottom:66px}.residence-orbit-back{opacity:.35}}
@media(prefers-reduced-motion:reduce){.residence-house{animation:none}.residence-house-layer,.residence-orbit-front{transition:none;transform:none}.home-page .hero-residence h1 em{animation:none;will-change:auto}}

.residence-motion-toggle{position:absolute;right:28px;bottom:24px;z-index:3;border:1px solid #ffffff40;border-radius:999px;padding:10px 16px;background:#07152fcc;color:#d5e6fb;font-size:11px;cursor:pointer}
.residence-motion-toggle[hidden]{display:none}
.residence-motion-toggle:hover{background:#183d65}
.residence-motion-toggle:focus-visible{outline:2px solid white;outline-offset:4px}



.residence-scroll-stage{position:relative;background:#07152f}
.residence-light{position:absolute;inset:-30% 0;z-index:-1;pointer-events:none;background:linear-gradient(115deg,transparent 35%,#429de52b 48%,#a3daff10 52%,transparent 65%);transform:translateX(var(--light-x,-30%))}
.residence-blueprint{position:absolute;width:100%;height:100%;left:-30px;top:-40px;color:#80c6ff;opacity:var(--blueprint-opacity,.12);transform:scale(1.06)}
.residence-blueprint path{stroke-dasharray:1;stroke-dashoffset:var(--blueprint-draw,1)}
.residence-foreground{position:absolute;z-index:2;right:-6%;bottom:0;width:52%;height:auto;transform-origin:100% 100%;transform:translate3d(var(--foliage-x,0px),0,0) scale(var(--foliage-scale,1));filter:drop-shadow(0 16px 18px #0006)}

/* Anchor decorative foliage to the hero corners, independently of the property. */
.residence-foliage{position:absolute;right:-4%;width:32%;aspect-ratio:2;z-index:2;pointer-events:none}
.residence-foliage .residence-foreground{inset:0;width:100%;height:auto}
.residence-foliage-bottom{bottom:-5%}
.residence-foliage-top{top:-3%;right:-3%;width:26%;transform:scaleY(-1);opacity:.65}
@media(max-width:1050px){.residence-foliage{width:34%;right:-5%}.residence-foliage-top{width:26%;right:-4%}}
@media(max-width:680px){.residence-foliage-bottom{width:62%;right:-12%;bottom:-4%}.residence-foliage-top{width:50%;right:-12%;top:-2%;opacity:.5}.residence-motion-toggle{right:20px;bottom:18px}}

/* Keep the investment category as the primary line of the headline. */
.home-page .hero-residence h1 em{font-size:clamp(46px,4.8vw,80px);line-height:1.15}
@media(max-width:1050px){.home-page .hero-residence h1 em{font-size:60px}}
@media(max-width:680px){.home-page .hero-residence h1 em{font-size:clamp(36px,9vw,54px)}}
