/* Oravenza Residences — brand tokens from the identity guide (v01) */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("../assets/fonts/cormorant-garamond-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("../assets/fonts/cormorant-garamond-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 300 700; font-display: swap; src: url("../assets/fonts/cormorant-garamond-italic-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 300 700; font-display: swap; src: url("../assets/fonts/cormorant-garamond-italic-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("../assets/fonts/manrope-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("../assets/fonts/manrope-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --forest: #233D36;
  --forest-deep: #16271F;
  --forest-2: #2D4A41;
  --champagne: #C5A77E;
  --champagne-soft: #DCC7A6;
  --champagne-ink: #7E6240;
  --ivory: #F4F0E8;
  --ivory-2: #EBE5D9;
  --ivory-3: #E2DACB;
  --stone: #A89E92;
  --charcoal: #282724;
  --ink: #233D36;
  --ink-2: #545049;
  --on-dark: #F4F0E8;
  --on-dark-2: #BCC6BF;
  --line: rgba(35, 61, 54, .18);
  --line-dark: rgba(220, 199, 166, .28);
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --nav-h: 76px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --panel-w: min(440px, 36vw);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--forest-deep);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.is-loading { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
::selection { background: var(--champagne); color: var(--forest-deep); }
:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; }
[data-theme="dark"] :focus-visible, .on-dark :focus-visible, .arrival :focus-visible, .visit :focus-visible, .gate :focus-visible { outline-color: var(--champagne); }
html { scrollbar-color: var(--champagne) var(--forest-deep); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--forest-deep); }
::-webkit-scrollbar-thumb { background: var(--champagne); border: 3px solid var(--forest-deep); }

[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 var(--gutter); }

.display {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.01em;
  line-height: 1.02;
  text-wrap: balance;
  margin: 0;
}
h2.display { font-size: clamp(2.5rem, 5vw, 4.25rem); }
.lede { font-size: clamp(1.06rem, 1.3vw, 1.2rem); line-height: 1.6; max-width: 46ch; color: var(--ink-2); margin: 1.25rem 0 0; }

/* buttons */
.btn {
  --bg: var(--forest); --fg: var(--ivory);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: .8em 1.5em;
  border: 1px solid transparent; border-radius: 2px;
  background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.btn svg { transition: transform .45s var(--ease); flex: none; }
.btn:hover svg { transform: translateX(3px); }
.btn:hover { --bg: var(--forest-2); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .4; cursor: progress; }
.btn--on-dark.btn--primary { --bg: var(--champagne); --fg: var(--forest-deep); }
.btn--on-dark.btn--primary:hover { --bg: var(--champagne-soft); }
.btn--text { --bg: transparent; --fg: var(--forest); padding-inline: .2em; border-bottom: 1px solid currentColor; border-radius: 0; min-height: 44px; }
.btn--text:hover { --bg: transparent; --fg: var(--forest-2); }
.btn--text.btn--on-dark { --fg: var(--on-dark); }
.btn--text:hover svg { transform: translateY(2px); }
.btn--block { width: 100%; }
.btn--nav { min-height: 40px; padding: .55em 1.1em; font-size: .72rem; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; background: transparent; color: inherit; cursor: pointer; border-radius: 2px;
  transition: background-color .3s var(--ease), color .3s;
}
.icon-btn:hover { background: rgba(197, 167, 126, .18); }
.icon-btn--boxed { background: var(--ivory); border: 1px solid var(--line); color: var(--forest); }
.icon-btn--boxed:hover { background: var(--ivory-2); }

/* gate */
.gate {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: var(--ivory);
  color: var(--forest);
  transition: clip-path 1.3s var(--ease);
  clip-path: inset(0 0 0 0);
}
.gate.is-leaving { clip-path: inset(0 0 100% 0); }
.gate.is-gone { display: none; }
.gate__inner { display: grid; justify-items: center; gap: 1.5rem; padding: var(--gutter); text-align: center; }
.gate__logo { width: min(420px, 72vw); clip-path: inset(100% 0 0 0); animation: gate-reveal 1.6s var(--ease) .15s forwards; }
@keyframes gate-reveal { to { clip-path: inset(0 0 0 0); } }
.gate__progress { width: min(280px, 60vw); height: 1px; background: rgba(35, 61, 54, .15); overflow: hidden; margin-top: .5rem; }
.gate__progress span { display: block; height: 100%; width: 100%; background: var(--champagne-ink); transform-origin: left; transform: scaleX(0); transition: transform .6s var(--ease); }
.gate__status { margin: 0; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); min-height: 1.6em; }
.gate__actions { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; justify-content: center; opacity: 0; transform: translateY(8px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.gate.is-ready .gate__actions { opacity: 1; transform: none; }
.gate__foot { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; margin: 0; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); }

/* canvas */
#gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#gl.is-hidden { visibility: hidden; }

/* nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 0 var(--gutter);
  color: var(--on-dark);
  transition: color .5s var(--ease), background-color .5s var(--ease), border-color .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav[data-theme="light"] { color: var(--forest); background: rgba(244, 240, 232, .97); border-bottom-color: var(--line); }
.nav::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 150px; z-index: -1; pointer-events: none; background: linear-gradient(rgba(16, 29, 23, .78), rgba(16, 29, 23, .4) 55%, rgba(16, 29, 23, 0)); opacity: 0; transition: opacity .5s var(--ease); }
.nav[data-theme="dark"]::before { opacity: 1; }
.nav__brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.nav__brand img { width: 62px; height: auto; }
.nav__word { display: grid; line-height: 1; }
.nav__word span { font-family: var(--serif); font-size: 1.45rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.nav__word small { font-size: .69rem; font-weight: 600; letter-spacing: .42em; text-transform: uppercase; margin-top: .3rem; padding-left: .1em; }
.nav__links { display: flex; gap: clamp(1rem, 2vw, 2.2rem); }
.nav__links a { font-size: .78rem; font-weight: 500; letter-spacing: .08em; text-decoration: none; padding: .5rem 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .45s var(--ease); }
.nav__links a:hover, .nav__links a[aria-current="true"] { background-size: 100% 1px; }
.nav__right { display: flex; align-items: center; gap: .5rem; }
.nav[data-theme="dark"] .btn--nav { --bg: var(--champagne); --fg: var(--forest-deep); }
.nav[data-theme="dark"] .btn--nav:hover { --bg: var(--champagne-soft); }
.nav__menu { display: none; }
#sound-toggle .wave { animation: none; }

/* arrival */
.arrival { position: relative; height: 300vh; z-index: 2; background: var(--forest-deep); }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; background: var(--forest-deep) url("../assets/hero/hero-poster.jpg") center / cover; }
.chapter.chapter--hero { will-change: opacity, transform; transition: none; }
.arrival__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; color: var(--on-dark); }
.arrival__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(14, 25, 20, .7) 0%, rgba(14, 25, 20, .25) 42%, rgba(14, 25, 20, 0) 68%), linear-gradient(0deg, rgba(14, 25, 20, .55), rgba(14, 25, 20, 0) 45%); }
.arrival__shade { transition: opacity .8s var(--ease); }
.arrival__sticky::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(12, 22, 18, .78) 0%, rgba(12, 22, 18, .45) 38%, rgba(12, 22, 18, 0) 62%); opacity: 0; transition: opacity .8s var(--ease); }
.arrival__sticky.is-late::after { opacity: 1; }
.chapter {
  position: absolute; left: var(--gutter); bottom: clamp(88px, 14vh, 150px);
  max-width: min(760px, calc(100vw - 2 * var(--gutter)));
  opacity: 0; transform: translateY(24px); filter: blur(6px);
  transition: opacity .9s var(--ease), transform 1.1s var(--ease), filter .9s var(--ease);
  pointer-events: none;
}
.chapter, .arrival__meta, .places { z-index: 2; }
.chapter.is-active { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.chapter__title { font-size: clamp(2.6rem, 6.6vw, 6rem); color: var(--on-dark); text-shadow: 0 2px 30px rgba(10, 20, 15, .35); }
.chapter:not(.chapter--hero) .chapter__title { font-size: clamp(2.3rem, 4.8vw, 4.4rem); }
.chapter__body { margin: 1.25rem 0 0; font-size: clamp(1rem, 1.25vw, 1.15rem); max-width: 44ch; color: var(--on-dark); opacity: .9; text-shadow: 0 1px 16px rgba(10, 20, 15, .5); }
.chapter__actions { display: flex; flex-wrap: wrap; gap: 1.75rem; align-items: center; margin-top: 2rem; }
.chapter--end .chapter__body { max-width: 40ch; }
.places { position: absolute; inset: 0; pointer-events: none; }
.place {
  position: absolute; left: 0; top: 0;
  display: grid; justify-items: center;
  opacity: 0; transition: opacity .6s var(--ease);
  will-change: transform;
}
.place.is-on { opacity: 1; }
.place__label { display: grid; text-align: center; padding: .35rem .7rem; background: rgba(22, 39, 31, .72); border: 1px solid var(--line-dark); white-space: nowrap; }
.place__label b { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.15rem; line-height: 1.1; letter-spacing: .01em; }
.place__label span { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--champagne-soft); }
.place__stem { width: 1px; height: 34px; background: linear-gradient(var(--champagne), rgba(197, 167, 126, .1)); }
.place__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--champagne); outline: 1px solid rgba(220, 199, 166, .55); outline-offset: 3px; }
.arrival__meta { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 28px; display: flex; justify-content: space-between; gap: 1rem; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--on-dark-2); }
.arrival__scroll { display: inline-flex; align-items: center; gap: .8rem; }
.arrival__line { position: relative; width: 48px; height: 1px; background: rgba(220, 199, 166, .3); overflow: hidden; }
.arrival__line::after { content: ""; position: absolute; inset: 0; background: var(--champagne); transform: translateX(-100%); animation: scrollcue 2.4s var(--ease) 1.2s 4 both; }
@keyframes scrollcue { 50% { transform: none; } 100% { transform: translateX(100%); } }
.arrival__rail { position: absolute; right: var(--gutter); top: 50%; width: 1px; height: 160px; transform: translateY(-50%); background: rgba(220, 199, 166, .22); }
.arrival__rail span { position: absolute; inset: 0; background: var(--champagne); transform-origin: top; transform: scaleY(0); }

/* walkthrough film: scroll-scrubbed frame sequence */
.film { position: relative; z-index: 2; background: transparent; margin-top: -100vh; margin-top: -100svh; }
/* the walkthrough's shading, caption and counter arrive just after the hand-off from the hero */
.film__sticky { --intro: 1; }
.film__sticky::before, .film__sticky::after, .film .approach__caption:not(.is-out), .film__meta { opacity: var(--intro); }
.arrival__shade { will-change: opacity; }
.film__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; color: var(--on-dark); }
.film__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; background: var(--forest-deep) url("../assets/sequence/f_000.avif") center / cover; }
.film.is-static .film__canvas { background: var(--forest-deep) url("../assets/renders/aerial.jpg") center / cover; }
.film__sticky::before { content: ""; position: absolute; inset: auto 0 0 0; height: 55%; z-index: 1; pointer-events: none; background: linear-gradient(0deg, rgba(14, 25, 20, .82), rgba(14, 25, 20, .38) 50%, rgba(14, 25, 20, 0)); }
.film__sticky::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 170px; z-index: 1; pointer-events: none; background: linear-gradient(rgba(14, 25, 20, .55), rgba(14, 25, 20, 0)); }
.approach__caption { position: absolute; z-index: 2; left: var(--gutter); bottom: clamp(64px, 10vh, 110px); max-width: 560px; transition: opacity .5s var(--ease), transform .7s var(--ease); text-shadow: 0 1px 18px rgba(10, 20, 15, .5); }
.approach__caption.is-out { opacity: 0; transform: translateY(10px); }
.approach__title { margin: 0; font-size: clamp(2.4rem, 4.8vw, 4.4rem); color: var(--on-dark); }
.approach__body { margin: 1rem 0 0; font-size: clamp(1rem, 1.25vw, 1.15rem); max-width: 42ch; }
.approach__note { margin: .9rem 0 0; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--champagne-soft); }
.film__meta { position: absolute; z-index: 2; right: var(--gutter); bottom: clamp(64px, 10vh, 110px); display: flex; align-items: center; gap: 1.5rem; padding: .6rem 1.1rem; background: rgba(16, 29, 23, .72); border: 1px solid var(--line-dark); }
.film__count { font-size: .78rem; font-weight: 600; letter-spacing: .14em; font-variant-numeric: tabular-nums; color: var(--champagne-soft); }
.film .walk__bar { z-index: 2; }

/* residences */
.residences { position: relative; z-index: 2; background: var(--ivory); padding: clamp(88px, 12vw, 168px) 0 clamp(72px, 9vw, 128px); }
.residences__lead { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.residences__show { margin: 0; }
.residences__show img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
figcaption { margin-top: .75rem; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
/* centred on the image itself: the bottom padding matches the caption under the image */
.residences__text { padding-bottom: calc(.75rem + .72rem * 1.6); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(72px, 9vw, 128px); border-top: 1px solid var(--line); }
.plan-item { display: grid; grid-template-rows: auto 1fr auto; gap: 1.25rem; padding: 2rem clamp(16px, 2.4vw, 36px) 2.25rem; border-right: 1px solid var(--line); text-align: left; background: none; border-top: 0; border-bottom: 0; border-left: 0; cursor: pointer; transition: background-color .5s var(--ease); }
.plan-item:first-child { padding-left: 0; }
.plan-item:last-child { border-right: 0; padding-right: 0; }
.plan-item:hover { background: var(--ivory-2); }
.plan-item__fig { aspect-ratio: 16 / 10; display: grid; place-items: center; }
.plan { width: 100%; height: 100%; }
.plan .p-room { fill: var(--ivory); stroke: var(--forest); stroke-width: .1; }
.plan .p-wet { fill: var(--ivory-3); stroke: var(--forest); stroke-width: .1; }
.plan .p-balcony { stroke: var(--forest); stroke-width: .06; }
.plan .p-hatch { stroke: var(--champagne); stroke-width: .05; }
.plan .p-gap { stroke: var(--ivory); stroke-width: .16; }
.plan-item:hover .plan .p-gap { stroke: var(--ivory-2); }
.plan .p-win { stroke: var(--champagne-ink); stroke-width: .14; }
.plan .p-label { font-family: var(--sans); font-size: .34px; fill: var(--ink-2); text-anchor: middle; dominant-baseline: middle; }
.plan-item__name { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.plan-item__name b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(1.6rem, 2.3vw, 2.1rem); line-height: 1.1; color: var(--forest); }
.plan-item__name span { font-size: .75rem; font-weight: 600; letter-spacing: .14em; color: var(--forest); white-space: nowrap; }
.plan-item__facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: .25rem 1.75rem; margin: 0; }
.plan-item__facts div { display: grid; }
.plan-item__facts dt { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.plan-item__facts dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--charcoal); }
.plan-item__go { display: inline-flex; align-items: center; gap: .5rem; font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--forest); }
.plan-item:hover .plan-item__go svg { transform: translateX(4px); }
.plan-item__go svg { transition: transform .45s var(--ease); }

/* progress bar (used by the walkthrough film) */
.walk__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(220, 199, 166, .2); }
.walk__bar span { display: block; height: 100%; background: var(--champagne); transform-origin: left; transform: scaleX(0); }

/* studio */
.studio { position: relative; z-index: 1; height: 100vh; height: 100svh; min-height: 640px; display: grid; grid-template-columns: 1fr var(--panel-w); }
.studio__stage { position: relative; touch-action: none; overflow: hidden; }
.studio__units { position: absolute; top: calc(var(--nav-h) + 20px); left: var(--gutter); display: flex; background: rgba(244, 240, 232, .96); border: 1px solid var(--line); }
.unit-tab { min-height: 44px; padding: .5rem 1.15rem; border: 0; background: transparent; cursor: pointer; font-size: .78rem; font-weight: 600; letter-spacing: .12em; color: var(--ink-2); transition: background-color .35s var(--ease), color .35s; }
.unit-tab + .unit-tab { border-left: 1px solid var(--line); }
.unit-tab:hover { color: var(--forest); background: var(--ivory-2); }
.unit-tab[aria-selected="true"] { background: var(--forest); color: var(--ivory); }
.studio__hint { position: absolute; left: var(--gutter); bottom: 28px; display: flex; align-items: center; gap: .6rem; font-size: .78rem; color: var(--ink-2); background: rgba(244, 240, 232, .86); padding: .5rem .8rem; border: 1px solid var(--line); transition: opacity .6s var(--ease); }
.studio__hint.is-dim { opacity: 0; }
.studio__zoom { position: absolute; right: 24px; bottom: 24px; display: grid; gap: 6px; }
.studio__out { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); }
.room-tags { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s var(--ease); }
.room-tags.is-visible { opacity: 1; }
.room-tag { position: absolute; left: 0; top: 0; display: grid; justify-items: center; gap: 1px; padding: .3rem .55rem; border: 1px solid transparent; background: rgba(244, 240, 232, .82); color: var(--forest); cursor: pointer; pointer-events: auto; white-space: nowrap; transition: background-color .3s, border-color .3s, color .3s; }
.room-tag__name { font-size: .7rem; font-weight: 600; letter-spacing: .06em; line-height: 1.2; }
.room-tag__size { font-size: .7rem; color: var(--ink-2); font-variant-numeric: tabular-nums; line-height: 1.2; }
.room-tag.is-hover { border-color: var(--champagne); }
.room-tag.is-active { background: var(--forest); color: var(--ivory); }
.room-tag.is-active .room-tag__size { color: var(--champagne-soft); }

.panel { position: relative; z-index: 2; background: var(--ivory); border-left: 1px solid var(--line); display: grid; grid-template-rows: auto auto 1fr auto; padding-top: var(--nav-h); min-height: 0; overflow: hidden; }
.panel__head { padding: 1.75rem 2rem 1.25rem; }
.panel__title { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 2.2rem; line-height: 1.05; color: var(--forest); }
.panel__meta { margin: .5rem 0 0; font-size: .85rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; margin: 0 2rem; border-bottom: 1px solid var(--line); }
.tab { min-height: 46px; border: 0; background: none; cursor: pointer; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); position: relative; }
.tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--forest); transform: scaleX(0); transition: transform .45s var(--ease); }
.tab[aria-selected="true"] { color: var(--forest); }
.tab[aria-selected="true"]::after { transform: none; }
.pane { overflow-y: auto; padding: 1.25rem 2rem 1.5rem; min-height: 0; scrollbar-color: var(--stone) transparent; }
.panel__foot { padding: 1rem 2rem 1.5rem; border-top: 1px solid var(--line); }

.room-list { list-style: none; margin: 0; padding: 0; }
.room-list button { width: 100%; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .85rem 0; border: 0; border-bottom: 1px solid var(--line); background: none; cursor: pointer; text-align: left; transition: padding .35s var(--ease), color .3s; }
.room-list button:hover { padding-left: .5rem; color: var(--forest); }
.room-list .rl-name { font-weight: 600; color: var(--forest); }
.room-list .rl-size { font-size: .85rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.room-detail__back { display: inline-flex; align-items: center; gap: .5rem; min-height: 40px; padding: 0; border: 0; background: none; cursor: pointer; font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.room-detail__back:hover { color: var(--forest); }
.room-detail__img { margin: 1rem 0 0; }
.room-detail__img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.room-detail__img figcaption { margin-top: .45rem; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.room-detail h3 { margin: .5rem 0 0; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 2.4rem; line-height: 1; color: var(--forest); }
.room-detail__dims { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: .25rem 1.75rem; margin: 1.25rem 0 0; }
.room-detail__dims div { display: grid; }
.room-detail__dims dt { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.room-detail__dims dd { margin: 0; font-size: 1.05rem; font-weight: 600; color: var(--charcoal); font-variant-numeric: tabular-nums; }
.spec-list { margin: 1.5rem 0 0; border-top: 1px solid var(--line); }
.spec-list div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.spec-list dt { font-size: .8rem; color: var(--ink-2); }
.spec-list dd { margin: 0; font-size: .9rem; color: var(--charcoal); }
.spec-list .is-finish dd { color: var(--forest); font-weight: 600; }
.room-detail__actions { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; margin-top: 1.5rem; align-items: center; }
.room-detail__nav { display: flex; justify-content: space-between; margin-top: 1.25rem; }
.room-detail__nav button { min-height: 40px; border: 0; background: none; cursor: pointer; font-size: .8rem; color: var(--ink-2); padding: 0; }
.room-detail__nav button:hover { color: var(--forest); }

.finish { padding: 1rem 0 1.15rem; border-bottom: 1px solid var(--line); }
.finish:first-child { padding-top: .25rem; }
.finish__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.finish__label { margin: 0; font-weight: 600; color: var(--forest); font-size: .95rem; }
.finish__current { font-size: .8rem; color: var(--ink-2); }
.finish__spec { margin: .15rem 0 .75rem; font-size: .78rem; color: var(--ink-2); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { position: relative; width: 46px; height: 46px; padding: 0; border: 1px solid var(--line); border-radius: 2px; background-size: 200%; background-position: center; cursor: pointer; transition: transform .3s var(--ease); }
.swatch::after { content: ""; position: absolute; inset: -5px; border: 1px solid transparent; border-radius: 3px; transition: border-color .3s; }
.swatch:hover { transform: translateY(-2px); }
.swatch[aria-pressed="true"]::after { border-color: var(--forest); }
.swatch[aria-pressed="true"]::before { content: ""; position: absolute; right: 4px; bottom: 4px; width: 7px; height: 7px; border-radius: 50%; background: var(--ivory); box-shadow: 0 0 0 1.5px var(--forest); }
.finish-tools { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 1.25rem; }
.tool-btn { display: inline-flex; align-items: center; gap: .5rem; min-height: 40px; padding: 0; border: 0; background: none; cursor: pointer; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--forest); }
.tool-btn:hover { color: var(--forest-2); text-decoration: underline; }
.toast { font-size: .8rem; color: var(--forest); min-height: 1.4em; margin: .5rem 0 0; }

/* specs */
.specs { position: relative; z-index: 2; background: var(--ivory); padding: clamp(88px, 11vw, 150px) 0; border-top: 1px solid var(--line); }
.specs__head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; }
.seg { display: flex; border: 1px solid var(--line); }
.seg button { min-height: 44px; padding: .5rem 1.15rem; border: 0; background: none; cursor: pointer; font-size: .78rem; font-weight: 600; letter-spacing: .12em; color: var(--ink-2); }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-checked="true"] { background: var(--forest); color: var(--ivory); }
.specs__summary { display: flex; flex-wrap: wrap; gap: 1.5rem clamp(32px, 5vw, 72px); margin: clamp(40px, 5vw, 64px) 0 2.5rem; }
.specs__summary div { display: grid; }
.specs__summary dt { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.specs__summary dd { margin: .2rem 0 0; font-family: var(--serif); font-size: clamp(2rem, 3.2vw, 2.8rem); line-height: 1; color: var(--forest); font-variant-numeric: lining-nums tabular-nums; }
.specs__summary dd small { font-family: var(--sans); font-size: .8rem; letter-spacing: .06em; color: var(--ink-2); margin-left: .35em; }
.table-wrap { overflow-x: auto; }
.schedule { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 760px; }
.schedule th { text-align: left; font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); padding: .9rem 1rem .9rem 0; border-bottom: 1px solid var(--forest); }
.schedule td { padding: 1rem 1rem 1rem 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--charcoal); font-size: .92rem; }
.schedule td:first-child { font-weight: 600; color: var(--forest); }
.schedule .num { text-align: right; padding-right: 2rem; }
.schedule td.services { color: var(--ink-2); font-size: .85rem; max-width: 34ch; }
.schedule tr { transition: background-color .3s; }
.schedule tbody tr:hover { background: var(--ivory-2); }
.fineprint { margin: 1.5rem 0 0; font-size: .8rem; color: var(--ink-2); max-width: 70ch; }

/* visit */
.visit { position: relative; z-index: 2; background: var(--forest); color: var(--on-dark); padding: clamp(88px, 11vw, 150px) 0; }
.visit .lede { color: var(--on-dark-2); }
.visit__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.visit__selection { margin-top: 2.25rem; padding: 1.25rem 0; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.visit__selection p { margin: 0; }
.visit__selection .sel-unit { font-family: var(--serif); font-style: italic; font-size: 1.6rem; line-height: 1.1; }
.visit__selection .sel-finishes { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.chip { display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .6rem .3rem .35rem; border: 1px solid var(--line-dark); font-size: .75rem; color: var(--on-dark-2); }
.chip i { width: 16px; height: 16px; border-radius: 1px; background-size: 200%; border: 1px solid rgba(244, 240, 232, .25); }
.visit__info { display: grid; gap: .9rem; margin: 2rem 0 0; }
.visit__info div { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; }
.visit__info dt { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--champagne-soft); padding-top: .2em; }
.visit__info dd { margin: 0; color: var(--on-dark); }
.form { display: grid; gap: 1.25rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field { display: grid; gap: .45rem; }
.field label { font-size: .8rem; font-weight: 600; letter-spacing: .02em; color: var(--on-dark); }
.optional { font-weight: 400; color: var(--on-dark-2); margin-left: .35rem; letter-spacing: 0; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .75rem .9rem;
  background: rgba(244, 240, 232, .06); color: var(--on-dark);
  border: 1px solid rgba(220, 199, 166, .38); border-radius: 2px;
  caret-color: var(--champagne);
  transition: border-color .3s, background-color .3s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--champagne) 50%), linear-gradient(135deg, var(--champagne) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { background: var(--forest); color: var(--ivory); }
.field input::placeholder, .field textarea::placeholder { color: rgba(188, 198, 191, .8); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--champagne); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--champagne); background: rgba(244, 240, 232, .1); box-shadow: 0 0 0 1px var(--champagne); }
.field input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(.85) sepia(.3); cursor: pointer; }
.field__error { display: none; margin: 0; font-size: .8rem; color: #F2C3A3; }
.field.is-invalid input, .field.is-invalid select { border-color: #E8A27F; }
.field.is-invalid .field__error { display: block; }
.form__note { margin: 0; font-size: .8rem; color: var(--on-dark-2); }
.form.is-sending #f-submit { opacity: .6; pointer-events: none; }
.form-done { padding: 2.5rem 0; border-top: 1px solid var(--line-dark); }
.form-done h3 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
.form-done p { color: var(--on-dark-2); max-width: 44ch; margin: 1rem 0 1.5rem; }

/* footer */
.foot { --foot-bg: #161513; --foot-ink: var(--on-dark); --foot-ink-2: #ABA398; position: relative; z-index: 2; background: var(--foot-bg); color: var(--foot-ink-2); padding: clamp(72px, 9vw, 120px) 0 32px; border-top: 1px solid rgba(197, 167, 126, .45); }
.foot a { color: var(--foot-ink); text-decoration: none; }
.foot__mark { display: block; width: 100%; height: auto; margin: 0 0 clamp(40px, 5vw, 80px); overflow: visible; }
.foot__mark text { font-family: var(--serif); font-weight: 400; font-size: 168px; fill: var(--champagne); }
.foot__cols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 80px); padding: clamp(36px, 4vw, 56px) 0; border-top: 1px solid rgba(244, 240, 232, .12); }
.foot__brand img { width: 84px; }
.foot__tag { margin: 1.25rem 0 0; font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 2vw, 1.9rem); line-height: 1.15; color: var(--foot-ink); }
.foot__sub { margin: .6rem 0 0; font-size: .92rem; max-width: 32ch; }
.foot__head { margin: 0 0 1.1rem; font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--champagne); }
.foot__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.foot__col li a { font-size: 1rem; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .45s var(--ease), color .3s; padding-bottom: 2px; }
.foot__col li a:hover { background-size: 100% 1px; color: var(--champagne-soft); }
.foot__visit { display: grid; gap: .45rem; margin: 0 0 1.5rem; }
.foot__visit div { display: grid; grid-template-columns: 5.5rem 1fr; gap: .75rem; font-size: .92rem; }
.foot__visit dt { color: var(--foot-ink-2); }
.foot__visit dd { margin: 0; color: var(--foot-ink); }
.foot__cta { min-height: 44px; }
.foot a.btn { color: var(--fg); }
.foot .btn--primary.btn--on-dark { --fg: var(--forest-deep); }
.foot__bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 3rem; align-items: end; padding-top: 24px; border-top: 1px solid rgba(244, 240, 232, .12); }
.foot__legal { margin: 0; font-size: .78rem; line-height: 1.55; max-width: 72ch; }
.foot__meta { margin: 0; display: flex; gap: 2rem; align-items: center; font-size: .78rem; white-space: nowrap; }
.foot__meta a { display: inline-flex; align-items: center; gap: .4rem; color: var(--foot-ink); }
.foot__meta a:hover { color: var(--champagne-soft); }
.foot :focus-visible { outline-color: var(--champagne); }
.noscript { position: fixed; bottom: 0; left: 0; right: 0; z-index: 200; margin: 0; padding: 1rem; background: var(--champagne); color: var(--forest-deep); text-align: center; }

/* no webgl fallback */
.no-webgl .walk, .no-webgl .studio { display: none; }

/* responsive */
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .nav__menu { display: inline-grid; }
  .nav__links.is-open { display: grid; position: fixed; top: var(--nav-h); left: 0; right: 0; padding: 1rem var(--gutter) 1.5rem; background: var(--ivory); color: var(--forest); border-bottom: 1px solid var(--line); gap: 0; }
  .nav__links.is-open a { padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
}
@media (max-width: 900px) {
  :root { --nav-h: 64px; }
  .btn--nav { display: none; }
  .nav__brand img { width: 50px; }
  .nav__word span { font-size: 1.2rem; }
  .nav__word small { font-size: .69rem; letter-spacing: .3em; }
  .residences__lead { grid-template-columns: 1fr; }
  .residences__text { padding-bottom: 0; }
  .plans { grid-template-columns: 1fr; }
  .plan-item, .plan-item:first-child, .plan-item:last-child { padding: 1.75rem 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .studio { grid-template-columns: 1fr; grid-template-rows: 58svh auto; height: auto; min-height: 0; }
  .panel { border-left: 0; border-top: 1px solid var(--line); padding-top: 0; overflow: visible; }
  .pane { overflow: visible; }
  .panel__head, .pane, .panel__foot { padding-left: var(--gutter); padding-right: var(--gutter); }
  .tabs { margin: 0 var(--gutter); }
  .studio__units { top: calc(var(--nav-h) + 12px); }
  .studio__hint { bottom: 16px; font-size: .72rem; }
  .studio__zoom { right: 12px; bottom: 12px; }
  .film__meta { left: var(--gutter); right: auto; bottom: 20px; padding: .3rem .8rem; gap: 1rem; }
  .approach__caption { bottom: 96px; }
  .room-tag { padding: .15rem .4rem; }
  .room-tag__name { font-size: .7rem; }
  .room-tag__size { display: none; }
  .room-tag.is-active .room-tag__size { display: block; }
  .visit__grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .foot__cols { grid-template-columns: 1fr; gap: 36px; }
  .foot__col ul { grid-template-columns: 1fr 1fr; column-gap: 1rem; }
  .foot__bar { grid-template-columns: 1fr; }
  .foot__meta { justify-content: space-between; }
  .arrival__rail { display: none; }
  .arrival__meta #loc-label { display: none; }
  .chapter { bottom: 76px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .gate__logo { clip-path: none; }
  .chapter { filter: none; transform: none; }
}

/* performance: skip layout and paint for the closing sections until they come near */
.specs, .visit, .foot { content-visibility: auto; contain-intrinsic-size: auto 900px; }
.film__sticky, .arrival__sticky { contain: layout paint; }
