/* Crown Estates, Lekki: limestone and lagoon green. Italiana + Manrope. */
:root {
  --bg: #ece7de; --bg2: #e3dcd0; --paper: #f6f3ee;
  --ink: #16201c; --mute: #4b5752; --line: rgba(22, 32, 28, .16);
  --lagoon: #1f4d45; --lagoon-2: #2e6a5c; --sage: #9db8a6; --sand: #c9ae7e; --sand-ink: #7a5f32;
  --fd: 'Italiana', 'Didot', serif; --fb: 'Manrope', system-ui, sans-serif;
  --gut: clamp(20px, 4.2vw, 68px); --max: 1480px;
  --e-out: cubic-bezier(.16, .84, .24, 1); --e-io: cubic-bezier(.7, 0, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.65 var(--fb); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--lagoon-2); outline-offset: 3px; border-radius: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -120px; z-index: 300; background: var(--ink); color: var(--bg); padding: 10px 16px; }
.skip:focus { top: 60px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }

/* type scale */
.d1 { font-family: var(--fd); font-size: clamp(3.4rem, 12.5vw, 13.5rem); line-height: .86; letter-spacing: -.01em; }
.d2 { font-family: var(--fd); font-size: clamp(2.6rem, 7.4vw, 7.6rem); line-height: .94; }
.d3 { font-family: var(--fd); font-size: clamp(2rem, 4.4vw, 4.2rem); line-height: 1.02; }
.d4 { font-family: var(--fd); font-size: clamp(1.6rem, 2.6vw, 2.4rem); line-height: 1.1; }
.lead { font-size: clamp(1.15rem, 1.6vw, 1.42rem); line-height: 1.55; font-weight: 300; max-width: 34em; }
.small { font-size: .82rem; letter-spacing: .02em; color: var(--mute); }
.num { font-family: var(--fd); font-variant-numeric: lining-nums; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: .8em; padding: 1.05em 1.9em; border-radius: 999px; background: var(--lagoon); color: var(--paper); text-decoration: none; font-weight: 600; font-size: .92rem; letter-spacing: .02em; border: 0; cursor: pointer; transition: background .4s, transform .5s var(--e-out); }
.btn span { display: inline-block; transition: transform .5s var(--e-out); }
.btn:hover { background: var(--ink); }
.btn.ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px currentColor; }
.btn.ghost:hover { background: var(--ink); color: var(--paper); box-shadow: none; }
.btn.lite { background: var(--paper); color: var(--lagoon); }
.ulink { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; transition: background-size .5s var(--e-out); }
.ulink:hover { background-size: 0 1px; background-position: 100% 100%; }

/* header */
.hd { position: fixed; top: 48px; left: 0; right: 0; z-index: 100; transition: background .5s, color .5s, backdrop-filter .5s; }
.hd .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.hd.scrolled { background: rgba(236, 231, 222, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo svg { width: 30px; height: 30px; flex: none; }
.logo b { font: 400 1.5rem/1 var(--fd); letter-spacing: .06em; white-space: nowrap; }
.nav { display: flex; gap: clamp(18px, 2.4vw, 40px); align-items: center; }
.nav a { text-decoration: none; font-size: .9rem; font-weight: 500; position: relative; padding: 6px 0; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--e-out); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav .btn { padding: .8em 1.4em; }
.nav .btn::after { display: none; }
.burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); cursor: pointer; position: relative; }
.burger i { position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--ink); transition: transform .5s var(--e-out); }
.burger i:nth-child(1) { top: 19px; } .burger i:nth-child(2) { top: 25px; }
.nav-open .burger i:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.nav-open .burger i:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }
#menu { position: fixed; inset: 48px 0 0 0; z-index: 90; background: var(--lagoon); color: var(--paper); padding: 140px var(--gut) 40px; display: flex; flex-direction: column; justify-content: space-between; visibility: hidden; clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--e-io), visibility 0s .8s; }
#menu ol { list-style: none; margin: 0; padding: 0; }
#menu li a { font: 400 clamp(2.6rem, 11vw, 4.4rem)/1.1 var(--fd); text-decoration: none; display: block; }
#menu .small { color: rgba(246, 243, 238, .78); }
.nav-open #menu { visibility: visible; clip-path: inset(0); transition: clip-path .8s var(--e-io); }
.nav-open .hd { color: var(--paper); background: transparent; border-color: transparent; backdrop-filter: none; }
.nav-open .burger { background: transparent; border-color: rgba(255, 255, 255, .4); }
.nav-open .burger i { background: var(--paper); }

/* preloader */
.pre { display: none; }
.has-js .pre { display: flex; position: fixed; inset: 0; z-index: 500; background: var(--lagoon); color: var(--paper); align-items: center; justify-content: center; flex-direction: column; gap: 22px; transition: clip-path 1s var(--e-io); clip-path: inset(0); }
.pre svg { width: 120px; height: 84px; }
.pre svg rect, .pre svg path { fill: none; stroke: var(--paper); stroke-width: 1; stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 1.1s var(--e-out) forwards; }
.pre svg path { animation-delay: .25s; }
.pre-num { font: 400 3.4rem/1 var(--fd); }
.pre .small { color: rgba(246, 243, 238, .8); letter-spacing: .14em; text-transform: uppercase; font-size: .7rem; }
.pre.done { clip-path: inset(0 0 100% 0); }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* split text */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.wi { display: inline-block; }
.has-js:not(.rm) [data-split] .wi { transform: translate3d(0, 108%, 0); transition: transform 1.15s var(--e-out); transition-delay: calc(var(--l, 0) * 90ms + var(--dl, 0ms)); }
.has-js:not(.rm) [data-split].in .wi { transform: none; }
.has-js:not(.rm) [data-split="chars"] .wi { transform: none; }
.ch { display: inline-block; }
.has-js:not(.rm) [data-split="chars"] .ch { transform: translate3d(0, 112%, 0) rotate(6deg); transition: transform 1.2s var(--e-out); transition-delay: calc(var(--c, 0) * 32ms + var(--dl, 0ms)); }
.has-js:not(.rm) [data-split="chars"].in .ch { transform: none; }
.has-js:not(.rm) [data-r] { opacity: 0; transform: translate3d(0, 36px, 0); transition: opacity 1s var(--e-out), transform 1.2s var(--e-out); transition-delay: var(--dl, 0ms); }
.has-js:not(.rm) [data-r].in { opacity: 1; transform: none; }
.has-js:not(.rm) [data-stagger] > * { opacity: 0; transform: translate3d(0, 30px, 0); transition: opacity .9s var(--e-out), transform 1.1s var(--e-out); }
.has-js:not(.rm) [data-stagger].in > * { opacity: 1; transform: none; }
[data-stagger].in > :nth-child(2) { transition-delay: 90ms; } [data-stagger].in > :nth-child(3) { transition-delay: 180ms; } [data-stagger].in > :nth-child(4) { transition-delay: 270ms; } [data-stagger].in > :nth-child(5) { transition-delay: 360ms; } [data-stagger].in > :nth-child(6) { transition-delay: 450ms; }

/* image masks */
.m { position: relative; overflow: hidden; background: var(--bg2); margin: 0; }
.m > .mi { position: absolute; inset: -9% 0; }
.m img { width: 100%; height: 100%; object-fit: cover; background: #cfc6b6; }
.has-js:not(.rm) .m > .mi { clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--e-io); }
.has-js:not(.rm) .m > .mi img { transform: scale(1.18); transition: transform 1.8s var(--e-out); }
.has-js:not(.rm) .m.in > .mi { clip-path: inset(0); }
.has-js:not(.rm) .m.in > .mi img { transform: scale(1); }
.m figcaption, .cap-under { font-size: .8rem; color: var(--mute); margin-top: 10px; }

/* cursor */
.cur { position: fixed; left: 0; top: 0; z-index: 400; pointer-events: none; opacity: 0; transition: opacity .3s; }
.cur.on { opacity: 1; }
.cur-ring { position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--ink); transition: transform .45s var(--e-out), background .3s, border-color .3s; mix-blend-mode: normal; }
.cur.link .cur-ring { transform: scale(2.6); background: rgba(31, 77, 69, .12); border-color: var(--lagoon); }
.cur.lab .cur-ring { transform: scale(6.2); background: var(--lagoon); border-color: var(--lagoon); }
.cur-lab { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%) scale(.6); opacity: 0; color: var(--paper); font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; transition: opacity .3s, transform .45s var(--e-out); }
.cur.lab .cur-lab { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* hover preview */
.pv { position: fixed; left: 0; top: 0; z-index: 60; width: 300px; aspect-ratio: 4 / 5; pointer-events: none; margin: -190px 0 0 -150px; opacity: 0; transition: opacity .35s; }
.pv img { width: 100%; height: 100%; object-fit: cover; background: #b9c9bf; clip-path: inset(12% 12% 12% 12%); transition: clip-path .6s var(--e-out); }
.pv.on { opacity: 1; }
.pv.on img { clip-path: inset(0); }

/* page transition: limestone slabs */
.pt { position: fixed; inset: 0; z-index: 450; pointer-events: none; display: grid; grid-template-columns: repeat(5, 1fr); }
.pt i { background: var(--lagoon); transform: scaleY(0); transform-origin: bottom; transition: transform .62s var(--e-io); }
.pt i:nth-child(2) { transition-delay: 40ms; } .pt i:nth-child(3) { transition-delay: 80ms; } .pt i:nth-child(4) { transition-delay: 120ms; } .pt i:nth-child(5) { transition-delay: 160ms; }
.pt-mark { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font: 400 clamp(1.8rem, 4vw, 3rem)/1 var(--fd); color: var(--paper); opacity: 0; transition: opacity .3s; white-space: nowrap; }
.pt-leave .pt { pointer-events: auto; }
.pt-leave .pt i { transform: scaleY(1); }
.pt-leave .pt-mark { opacity: 1; transition-delay: .35s; }
.pt-enter .pt i { transform: scaleY(1); transform-origin: top; transition: none; }
.pt-enter .pt-mark { opacity: 1; transition: none; }
.pt-enter-go .pt i { transform: scaleY(0); transition: transform .8s var(--e-io); }
.pt-enter-go .pt-mark { opacity: 0; transition: opacity .3s; }

/* ---------- HOME HERO (pinned model) ---------- */
.hero { position: relative; background: var(--bg); }
.has-js:not(.rm):not(.gl-off) .hero { height: 460vh; }
.hero-stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.has-js:not(.rm):not(.gl-off) .hero-stage { position: sticky; top: 0; }
[data-gl] { position: absolute; inset: 0; }
[data-gl] canvas { display: block; width: 100%; height: 100%; }
.hero-fb { position: absolute; inset: 0; display: none; }
.hero-fb img { width: 100%; height: 100%; object-fit: cover; background: #c8c1b3; }
.hero-fb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(236, 231, 222, .2), rgba(236, 231, 222, .92) 85%); }
.gl-off .hero-fb, html:not(.has-js) .hero-fb { display: block; }
.hero-stage::after { content: ''; position: absolute; inset: auto 0 0 0; height: 42%; background: linear-gradient(180deg, rgba(236, 231, 222, 0), rgba(236, 231, 222, .9) 70%); pointer-events: none; }
.hero-copy { position: absolute; z-index: 2; inset: 124px calc(var(--gut) + 30px) 40px var(--gut); pointer-events: none; display: grid; grid-template-rows: auto 1fr auto; }
.hero-copy a, .hero-copy button { pointer-events: auto; }
.hero h1 { max-width: 11ch; transition: opacity .6s, transform .8s var(--e-out); }
.has-js:not(.gl-off) .hero h1 { opacity: calc(1 - var(--p, 0) * 9); transform: translateY(calc(var(--p, 0) * -300px)); }
.hero-sub { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.hero-sub .lead { max-width: 25em; font-size: 1.08rem; }
.caps { position: relative; align-self: center; justify-self: end; width: min(420px, 100%); }
.cap { background: rgba(246, 243, 238, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 26px 28px; border-left: 2px solid var(--lagoon); }
.cap .d4 { margin: 4px 0 8px; }
.cap p { margin: 0; font-size: .95rem; color: var(--mute); }
.cap .k { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--lagoon-2); }
.has-js:not(.gl-off) .cap { position: absolute; right: 0; top: 50%; opacity: 0; transform: translate3d(0, -40%, 0); transition: opacity .6s, transform .9s var(--e-out); }
.has-js:not(.gl-off) .cap.on { opacity: 1; transform: translate3d(0, -50%, 0); }
.has-js:not(.gl-off) .cap:first-child { display: none; }
.gl-off .caps, html:not(.has-js) .caps { display: grid; gap: 12px; justify-self: start; margin: 24px 0; }
.legend { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; flex-wrap: wrap; font-size: .82rem; font-weight: 500; }
.legend li { display: flex; align-items: center; gap: 8px; opacity: .45; transition: opacity .5s; }
.legend li.lit, .gl-off .legend li { opacity: 1; }
.legend i { width: 14px; height: 14px; display: block; }
.hero-scroll { z-index: 2; position: absolute; right: var(--gut); bottom: 40px; width: 1px; height: 80px; background: var(--line); }
.hero-scroll i { position: absolute; inset: 0; background: var(--ink); transform-origin: top; transform: scaleY(0); }
.gl-tip { position: fixed; left: 0; top: 0; z-index: 70; pointer-events: none; background: var(--ink); color: var(--paper); padding: 10px 14px; font-size: .78rem; display: grid; gap: 2px; opacity: 0; transition: opacity .2s; }
.gl-tip b { font: 400 1.1rem/1 var(--fd); }
.gl-tip.on { opacity: 1; }
.gl-hint { font-size: .78rem; color: var(--mute); }
.gl-off .gl-hint { display: none; }

/* sections */
.sec { padding: clamp(96px, 14vw, 200px) 0; position: relative; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(16px, 2vw, 32px); }
.intro .d2 { grid-column: 1 / span 10; }
.intro .lead { grid-column: 7 / span 6; margin-top: 56px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(64px, 9vw, 120px); border-top: 1px solid var(--line); }
.stats > div { padding: 28px 24px 0 0; border-right: 1px solid var(--line); }
.stats > div:last-child { border-right: 0; }
.stats .num { font-size: clamp(3rem, 6vw, 5.6rem); line-height: 1; display: block; }
.stats .small { display: block; margin-top: 10px; }

/* residences list with hover preview */
.types { list-style: none; margin: 56px 0 0; padding: 0; border-top: 1px solid var(--line); }
.types li { border-bottom: 1px solid var(--line); }
.types a { display: grid; grid-template-columns: 80px minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 24px; align-items: baseline; padding: 34px 0; text-decoration: none; transition: padding .6s var(--e-out), color .4s; }
.types a:hover { padding-left: 20px; color: var(--lagoon); }
.types .d3 { font-size: clamp(2rem, 4vw, 3.6rem); }
.types .tag { font-size: .9rem; color: var(--mute); }
.types .pr { font-weight: 600; white-space: nowrap; }
.sw { display: inline-block; width: 12px; height: 12px; margin-right: 8px; }

/* split feature */
.feature { background: var(--lagoon); color: var(--paper); }
.feature .small, .feature .mute { color: rgba(246, 243, 238, .78); }
.feat-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 110px); align-items: center; }
.feat-grid .m { aspect-ratio: 4 / 5; background: #2a5a50; }
.feat-list { list-style: none; padding: 0; margin: 40px 0 0; }
.feat-list li { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-top: 1px solid rgba(246, 243, 238, .2); }

/* horizontal day gallery */
.hg { position: relative; background: var(--paper); }
.hg-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.hg-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; }
.hg-track { display: flex; gap: clamp(20px, 3vw, 48px); padding: 0 var(--gut); width: max-content; will-change: transform; }
.hg-item { width: clamp(260px, 34vw, 520px); flex: none; }
.hg-item:nth-child(even) { margin-top: 70px; }
.hg-item .m { aspect-ratio: 4 / 3; }
.hg-item:nth-child(3n) .m { aspect-ratio: 3 / 4; width: 78%; }
.hg-item .t { display: flex; gap: 16px; align-items: baseline; margin-top: 16px; }
.hg-item .t .num { font-size: 1.8rem; }
.hg-bar { height: 1px; background: var(--line); margin: 40px var(--gut) 0; }
.hg-bar i { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0); }
.rm .hg-pin { position: relative; height: auto; padding: 100px 0; }
.rm .hg-track { overflow-x: auto; width: auto; }

/* velocity type */
.vel { overflow: hidden; padding: clamp(40px, 6vw, 90px) 0; border-block: 1px solid var(--line); }
.v-track { display: flex; width: max-content; will-change: transform; }
.v-track span { font: 400 clamp(5rem, 16vw, 17rem)/1 var(--fd); padding-right: .35em; white-space: nowrap; }
.v-track span em { font-style: normal; color: var(--lagoon-2); }

/* amenities accordion */
.acc { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 28px 0; background: none; border: 0; text-align: left; cursor: pointer; }
.acc-btn .d4 { transition: transform .5s var(--e-out); }
.acc-btn:hover .d4 { transform: translateX(12px); }
.acc-ico { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); position: relative; flex: none; }
.acc-ico::before, .acc-ico::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 1px; background: var(--ink); transform: translate(-50%, -50%); transition: transform .5s var(--e-out); }
.acc-ico::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc-item.open .acc-ico::after { transform: translate(-50%, -50%) rotate(0); }
.acc-panel { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .6s var(--e-out); }
.has-js .acc-panel { grid-template-rows: 0fr; }
.has-js .acc-item.open .acc-panel { grid-template-rows: 1fr; }
.acc-panel > div { overflow: hidden; }
.acc-panel p { max-width: 40em; color: var(--mute); padding-bottom: 28px; margin: 0; }
.amen { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 100px); }
.amen .m { aspect-ratio: 3 / 4; position: sticky; top: 150px; }

/* location */
.loc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 100px); align-items: start; }
.dist { list-style: none; padding: 0; margin: 0; }
.dist li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.dist .num { font: 300 1.7rem/1 var(--fb); letter-spacing: -.02em; }
.planmap { aspect-ratio: 1; background: var(--paper); border: 1px solid var(--line); position: relative; }
.planmap svg { width: 100%; height: 100%; }

/* CTA */
.cta { text-align: center; padding: clamp(110px, 16vw, 230px) 0; }
.cta .d1 { max-width: 12ch; margin: 0 auto 48px; }

/* footer */
.ft { background: var(--ink); color: rgba(246, 243, 238, .86); padding: 100px 0 36px; font-size: .92rem; }
.ft a { text-decoration: none; }
.ft a:hover { text-decoration: underline; }
.ft-top { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); gap: 40px; }
.ft h3 { font: 400 1.8rem/1.1 var(--fd); color: var(--paper); margin-bottom: 18px; }
.ft h4 { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: rgba(246, 243, 238, .7); margin-bottom: 16px; }
.ft ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.news { display: flex; gap: 8px; margin-top: 18px; max-width: 420px; }
.news .fld { flex: 1; min-width: 0; }
.news .fld input { width: 100%; min-width: 0; background: transparent; border: 1px solid rgba(246, 243, 238, .35); color: var(--paper); padding: 14px 16px; border-radius: 999px; font: inherit; }
.news input::placeholder { color: rgba(246, 243, 238, .6); }
.news .btn { background: var(--paper); color: var(--ink); padding: 14px 22px; }
.ft .err { color: #f2b8a8; }
.ft .ok { color: var(--paper); margin-top: 18px; }
.ft-big { font: 400 clamp(4rem, 17vw, 18rem)/.8 var(--fd); color: var(--paper); margin: 90px 0 30px; letter-spacing: -.01em; white-space: nowrap; }
.ft-bot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px solid rgba(246, 243, 238, .16); padding-top: 24px; font-size: .8rem; color: rgba(246, 243, 238, .72); }

/* forms */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; }
.fld { display: grid; gap: 8px; min-width: 0; }
.fld.full { grid-column: 1 / -1; }
.fld label, .fld legend { font-size: .82rem; font-weight: 600; letter-spacing: .02em; }
.fld input, .fld select, .fld textarea { width: 100%; min-width: 0; font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 2px; padding: 14px 16px; transition: border-color .3s; }
.fld textarea { min-height: 130px; resize: vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus { border-color: var(--lagoon); outline: none; box-shadow: 0 0 0 3px rgba(46, 106, 92, .25); }
.fld.bad input, .fld.bad select, .fld.bad textarea { border-color: #a33a22; }
.err { color: #a33a22; font-size: .8rem; min-height: 1em; }
.ok { padding: 40px; background: var(--paper); border-left: 3px solid var(--lagoon); }
.ok:focus { outline: none; }
.chk { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; }
.chk input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--lagoon); flex: none; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }

/* inner page heads */
.ph-head { padding: clamp(170px, 20vw, 260px) 0 clamp(60px, 8vw, 110px); }
.ph-head .d1 { max-width: 14ch; }
.ph-head .lead { margin-top: 36px; }
.crumbs { font-size: .82rem; color: var(--mute); margin-bottom: 26px; display: flex; gap: 10px; }
.crumbs a { text-decoration: none; }
.wide-m { aspect-ratio: 21 / 9; }

/* estate: phases chapter */
.phases { position: relative; background: var(--lagoon); color: var(--paper); }
.has-js:not(.rm) .phases { height: 420vh; }
.ph-stage { padding: 120px 0; }
.has-js:not(.rm) .ph-stage { position: sticky; top: 0; height: 100vh; height: 100svh; padding: 0; overflow: hidden; display: grid; align-items: center; }
.ph-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 100px); align-items: center; }
.ph-year { font: 400 clamp(6rem, 18vw, 17rem)/.8 var(--fd); display: block; }
.ph-track { height: 1px; background: rgba(246, 243, 238, .25); margin-top: 32px; }
.ph-fill { height: 100%; background: var(--paper); transform-origin: left; transform: scaleX(0); }
.ph-list { position: relative; }
.ph { padding: 24px 0; border-top: 1px solid rgba(246, 243, 238, .2); }
.has-js:not(.rm) .ph { position: absolute; inset: 50% 0 auto 0; transform: translateY(-30%); opacity: 0; border: 0; transition: opacity .6s, transform .9s var(--e-out); }
.has-js:not(.rm) .ph.on { opacity: 1; transform: translateY(-50%); }
.ph .k { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--sage); }
.ph p { color: rgba(246, 243, 238, .82); max-width: 32em; }
.ph .d3 { margin: 10px 0 18px; }
.infra { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.infra > div { padding: 36px 32px 36px 0; border-right: 1px solid var(--line); }
.infra > div:nth-child(3n) { border-right: 0; }
.infra > div:nth-child(n + 4) { border-top: 1px solid var(--line); }
.infra .d4 { margin: 14px 0 10px; }
.infra p { color: var(--mute); font-size: .95rem; margin: 0; }
.infra .num { font-size: 1rem; color: var(--lagoon-2); font-family: var(--fb); font-weight: 700; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: end; }
.two .m:first-child { aspect-ratio: 4 / 5; }
.two .m:last-child { aspect-ratio: 1; }

/* residences */
.flt { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; }
.flt button { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: .88rem; font-weight: 500; }
.flt button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.res { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); row-gap: clamp(60px, 8vw, 120px); }
.res-card { grid-column: span 6; text-decoration: none; display: block; }
.res-card:nth-child(3n + 1) { grid-column: 1 / span 7; }
.res-card:nth-child(3n + 2) { grid-column: 9 / span 4; margin-top: 140px; }
.res-card:nth-child(3n) { grid-column: 3 / span 6; }
.res-card .m { aspect-ratio: 4 / 3; }
.res-card:nth-child(3n + 2) .m { aspect-ratio: 3 / 4; }
.res-card .meta { display: flex; justify-content: space-between; gap: 16px; margin-top: 18px; align-items: baseline; flex-wrap: wrap; }
.res-card .d4 { transition: color .4s; }
.res-card:hover .d4 { color: var(--lagoon-2); }
.res-card .m img { transition: transform 1.2s var(--e-out); }
.res-card:hover .m img { transform: scale(1.04); }
.res-card[hidden] { display: none; }
.spec { width: 100%; border-collapse: collapse; font-size: .95rem; }
.spec caption { text-align: left; font: 400 2rem/1.1 var(--fd); margin-bottom: 20px; }
.spec th, .spec td { text-align: left; padding: 16px 12px 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { font-weight: 600; font-size: .82rem; }
.tbl-wrap { overflow-x: auto; }

/* villa detail */
.v-hero { position: relative; height: 92vh; height: 92svh; min-height: 560px; overflow: hidden; }
.v-hero .mi { position: absolute; inset: -6% 0; }
.v-hero img { width: 100%; height: 100%; object-fit: cover; background: #b8c2b9; }
.v-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22, 32, 28, .2) 0%, rgba(22, 32, 28, 0) 40%, rgba(22, 32, 28, .7) 100%); }
.v-hero .wrap { position: absolute; inset: auto 0 56px; z-index: 2; color: var(--paper); }
.v-facts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.v-facts > div { padding: 28px 20px 28px 0; }
.v-facts .num { font-size: 2.4rem; display: block; line-height: 1; }
.gal-main { aspect-ratio: 16 / 9; }
.thumbs { display: flex; gap: 12px; margin-top: 14px; overflow-x: auto; padding-bottom: 6px; }
.thumbs button { flex: none; width: 120px; aspect-ratio: 4 / 3; padding: 0; border: 0; background: #cfc6b6; cursor: pointer; opacity: .6; transition: opacity .3s; }
.thumbs button[aria-current="true"], .thumbs button:hover { opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; background: #cfc6b6; }
.floor { background: var(--paper); border: 1px solid var(--line); padding: 24px; }
.floor svg { width: 100%; height: auto; }
.pay { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.pay > div { padding: 32px 24px 32px 0; border-top: 2px solid var(--lagoon); margin-right: 16px; }
.pay .num { font-size: 3.4rem; line-height: 1; display: block; }

/* visit */
.visit { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 100px); align-items: start; }
.slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.slots label { position: relative; }
.slots input { position: absolute; opacity: 0; inset: 0; }
.slots span { display: block; text-align: center; padding: 12px 6px; border: 1px solid var(--line); background: var(--paper); font-size: .88rem; font-weight: 500; cursor: pointer; transition: background .3s, color .3s; }
.slots input:checked + span { background: var(--lagoon); color: var(--paper); border-color: var(--lagoon); }
.slots input:focus-visible + span { outline: 2px solid var(--lagoon-2); outline-offset: 2px; }
.slot-out { font-size: .85rem; color: var(--lagoon-2); min-height: 1.4em; }
.aside-card { background: var(--paper); padding: 32px; border-top: 2px solid var(--lagoon); }
.aside-card + .aside-card { margin-top: 20px; }
.aside-card dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; margin: 16px 0 0; font-size: .92rem; }
.aside-card dt { font-weight: 600; }
.aside-card dd { margin: 0; color: var(--mute); }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); }
.steps li { border-top: 1px solid var(--ink); padding-top: 22px; counter-increment: s; }
.steps li::before { content: '0' counter(s); font: 400 3rem/1 var(--fd); display: block; margin-bottom: 16px; }
.steps p { color: var(--mute); font-size: .95rem; }

/* responsive */
@media (max-width: 1000px) {
  .nav { display: none; }
  .burger { display: block; }
  .intro .d2, .intro .lead { grid-column: 1 / -1; }
  .feat-grid, .amen, .loc, .visit, .ph-grid { grid-template-columns: minmax(0, 1fr); }
  .amen .m { position: relative; top: 0; aspect-ratio: 16 / 10; }
  .types a { grid-template-columns: 48px minmax(0, 1fr) auto; }
  .types .tag.hide-m { display: none; }
  .ft-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ft-top > :first-child { grid-column: 1 / -1; }
  .res-card:nth-child(n) { grid-column: 1 / -1; margin-top: 0; }
  .infra { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .infra > div { border-right: 0; border-top: 1px solid var(--line); }
  .v-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pay { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .stats > div:nth-child(2) { border-right: 0; }
  .stats > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .hero-sub { flex-direction: column; align-items: start; }
  .caps { width: 100%; }
  .cap { padding: 18px 20px; }
  .types a { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; padding: 26px 0; }
  .types .ix { display: none; }
  .types .tag { grid-column: 1 / -1; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .infra, .steps { grid-template-columns: minmax(0, 1fr); }
  .two { grid-template-columns: minmax(0, 1fr); }
  .v-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pay { grid-template-columns: minmax(0, 1fr); }
  .ft-top { grid-template-columns: minmax(0, 1fr); }
  .news { flex-direction: column; }
  .hg-item:nth-child(even) { margin-top: 30px; }
  .d1, .d2, .d3 { overflow-wrap: anywhere; }
  .logo b { font-size: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
.hero-fb figure, .hero-fb .mi { position: absolute; inset: 0; margin: 0; }

main > .hero:first-child, main > .pre + .hero { margin-top: -48px; }
