/* ==========================================================================
   Zenith Stay — Editorial luxury
   Ivory · Midnight navy · Champagne gold
   Cormorant Garamond (display) · Manrope (text)
   ========================================================================== */

:root {
  --ivory: #F8F5EC;
  --ivory-deep: #F0EADD;
  --navy: #25213B;
  --navy-deep: #1C1930;
  --gold: #C49A55;               /* Muted Champagne — accents on light, textured sections */
  --gold-navy: #C5A36A;          /* original champagne, kept for the navy sections */
  --gold-ink: #7A5826;           /* Muted Champagne darkened for small text on limestone (≥4.5:1) */
  --ink: #29223D;                /* Deep Plum Navy — primary typography */
  --text: var(--ink);
  --text-soft: #5E5967;
  --text-light: #D9D4DD;
  --rule: rgba(37, 33, 59, .14);
  --rule-light: rgba(248, 245, 236, .16);

  /* Limestone plaster texture: seamless tile (edge cross-fade), ivory veil baked in, pre-scaled
     per breakpoint by tools/build-images.php — one unscaled bitmap layer, cheap to paint. */
  --texture: url("assess/images/web/texture-plaster.webp");
  --tex-size: 1671px 941px;
  --tex-base: #F9EAD6;                     /* average tile colour, shown while the tile loads */
  --tex-deepen: rgba(196, 154, 85, .07);   /* slightly deeper stone for alternating sections */

  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
  --max: 1320px;
  --section: clamp(96px, 12vw, 184px);
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

/* Base ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--tex-base) var(--texture) 0 0 / var(--tex-size) repeat;
  color: var(--text);
  font: 400 16px/1.75 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
em { font-style: italic; }
[hidden] { display: none !important; }
.no-scroll { overflow: hidden; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  padding: 10px 16px; background: var(--navy); color: var(--ivory);
  font-size: 13px; text-decoration: none;
  transform: translateY(-160%); transition: transform .3s var(--ease);
}
.skip-link:focus { transform: none; }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--section); }
section[id] { scroll-margin-top: 24px; }

/* Shared type ------------------------------------------------------------ */
.label {
  display: flex; align-items: baseline; gap: 14px;
  margin-bottom: clamp(24px, 3vw, 40px);
  color: var(--gold-ink);
  font: 600 12px/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase;
}
.label span { color: var(--gold); font-weight: 500; letter-spacing: .08em; }
.label span::after { content: ''; display: inline-block; width: 28px; height: 1px; margin-left: 14px; vertical-align: middle; background: currentColor; }
.label--light { color: var(--gold); }
.label--center { justify-content: center; }

.title,
.rooftop-title,
.contact-title {
  font: 400 clamp(46px, 6.4vw, 104px)/.95 var(--serif);
  letter-spacing: -.015em;
}
.title em, .rooftop-title em, .contact-title em, .statement em { font-weight: 300; }

.statement {
  max-width: 19em;
  margin-left: clamp(0px, 16vw, 220px);
  font: 400 clamp(29px, 3.6vw, 56px)/1.18 var(--serif);
  letter-spacing: -.01em;
}
.statement em { color: var(--gold-ink); }

.prose { max-width: 34em; color: var(--text-soft); font-size: 16px; }
.prose p + p { margin-top: 1.1em; }
.prose--light { color: var(--text-light); }

.link-line {
  display: inline-flex; align-items: center; gap: 14px;
  margin-top: 28px; padding: 10px 0;
  color: var(--ink); text-decoration: none;
  font: 600 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
}
.link-line::after {
  content: ''; width: 44px; height: 1px; background: var(--gold);
  transition: width .5s var(--ease);
}
.link-line:hover::after { width: 72px; }

/* Photographs ----------------------------------------------------------- */
.photo { position: relative; }
.photo-trigger {
  display: block; width: 100%; padding: 0; border: 0; background: none;
  cursor: zoom-in; text-align: left;
}
.photo-frame { display: block; overflow: hidden; background: var(--ivory-deep); }
.photo-frame img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.6s var(--ease);
}
.photo-trigger:hover .photo-frame img { transform: scale(1.035); }
.photo figcaption {
  margin-top: 14px;
  color: var(--text-soft);
  font: 500 11px/1.5 var(--sans); letter-spacing: .18em; text-transform: uppercase;
}

/* Header ---------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  transition: transform .6s var(--ease), background-color .5s ease, box-shadow .5s ease;
}
.site-header.is-scrolled {
  background: var(--tex-base) var(--texture) 0 0 / var(--tex-size) repeat;
  box-shadow: 0 1px 0 var(--rule);
}
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner {
  height: 100%;
  width: min(1480px, 100% - 2 * var(--gutter)); margin-inline: auto;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.menu-toggle, .header-cta {
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 44px; padding: 0; border: 0; background: none;
  color: var(--ink); cursor: pointer; text-decoration: none;
  font: 600 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  transition: color .4s ease;
}
.menu-toggle { justify-self: start; }
.header-cta { justify-self: end; }
.header-cta::after { content: ''; width: 24px; height: 1px; background: var(--gold); transition: width .4s var(--ease); }
.header-cta:hover::after { width: 40px; }
.menu-lines { position: relative; display: block; width: 28px; height: 10px; }
.menu-lines span {
  position: absolute; left: 0; width: 100%; height: 1px; background: currentColor;
  transition: transform .5s var(--ease), width .5s var(--ease);
}
.menu-lines span:first-child { top: 0; }
.menu-lines span:last-child { bottom: 0; width: 66%; }
.menu-toggle:hover .menu-lines span:last-child { width: 100%; }

.brand { display: block; line-height: 0; }
.brand img { width: clamp(132px, 14vw, 176px); height: auto; }
.brand-light { display: none; }

/* Header while menu is open */
.menu-open .site-header { background: transparent; box-shadow: none; transform: none; }
.menu-open .menu-toggle, .menu-open .header-cta { color: var(--ivory); }
.menu-open .brand-color { display: none; }
.menu-open .brand-light { display: block; }
.menu-open .menu-lines span:first-child { top: 4.5px; transform: rotate(45deg); }
.menu-open .menu-lines span:last-child { bottom: 4.5px; width: 100%; transform: rotate(-45deg); }

/* Full-screen menu ------------------------------------------------------ */
.site-menu {
  position: fixed; inset: 0; z-index: 40;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
  background: var(--navy);
  color: var(--ivory);
  overflow-y: auto;
  animation: fade-in .6s ease both;
}
.site-menu-nav ol { width: min(1100px, 100%); margin-inline: auto; }
.site-menu-nav li { animation: rise-in .9s var(--ease) both; animation-delay: calc(.08s + var(--i) * .06s); }
.site-menu-nav a {
  display: flex; align-items: baseline; gap: clamp(16px, 3vw, 40px);
  padding: clamp(6px, .7vw, 9px) 0;
  font: 400 clamp(36px, min(4.8vw, 8svh), 68px)/1.05 var(--serif);   /* ~19% smaller on desktop; height cap keeps short laptops clear of the header; mobile stays 36px */
  text-decoration: none;
  transition: color .4s ease, transform .6s var(--ease);
}
.site-menu-nav a span { min-width: 2.2em; color: var(--gold); font: 500 12px/1 var(--sans); letter-spacing: .14em; }
.site-menu-nav a:hover, .site-menu-nav a:focus-visible { color: var(--gold); transform: translateX(10px); }
.site-menu-foot {
  width: min(1100px, 100%); margin: clamp(32px, 6vh, 64px) auto 0;
  color: var(--text-light); font: 500 12px/1.5 var(--sans); letter-spacing: .22em; text-transform: uppercase;
}

/* Enquire rail + contact drawer ------------------------------------------
   A margin note in the right gutter, shown (by premium.js) only while the header's own
   Enquire link is hidden, after the hero and before the Enquire section. ≥768px, JS only. */
.enquire-rail {
  --rail-w: min(44px, var(--gutter));
  position: fixed; top: 50%; right: calc((var(--gutter) - var(--rail-w)) / 2); z-index: 45;
  display: none; flex-direction: column; align-items: center; gap: 16px;
  width: var(--rail-w); padding: 14px 0; border: 0; background: none;
  color: var(--ink); cursor: pointer;
  opacity: 0; visibility: hidden; transform: translate(10px, -50%);
  transition: opacity .5s ease, transform .7s var(--ease), color .4s ease, visibility 0s linear .7s;
}
.enquire-rail::before {
  content: ''; width: 1px; height: 56px; background: var(--gold);
  transition: height .6s var(--ease), background-color .4s ease;
}
.enquire-rail-text {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font: 600 10px/1 var(--sans); letter-spacing: .32em; text-transform: uppercase;
}
.enquire-rail.is-visible { opacity: 1; visibility: visible; transform: translate(0, -50%); transition-delay: 0s; }
.enquire-rail:hover, .enquire-rail:focus-visible { color: var(--gold-ink); }
.enquire-rail:hover::before, .enquire-rail:focus-visible::before { height: 76px; }
.enquire-rail.is-dark { color: var(--ivory); }
.enquire-rail.is-dark::before { background: var(--gold-navy); }
.enquire-rail.is-dark:hover, .enquire-rail.is-dark:focus-visible { color: var(--gold-navy); }
@media (min-width: 768px) { .js .enquire-rail { display: flex; } }

.enquire-backdrop {
  position: fixed; inset: 0; z-index: 69;
  background: rgba(28, 25, 48, .2);
  opacity: 0; visibility: hidden;
  transition: opacity .5s ease, visibility 0s linear .5s;
}
.enquire-drawer {
  --gold: var(--gold-navy);
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 70;
  width: min(360px, 100vw - 48px);
  display: flex; flex-direction: column;
  padding: calc(var(--header-h) + 40px) clamp(28px, 3vw, 44px) 40px;
  overflow-y: auto;
  background: var(--navy); color: var(--ivory);
  border-left: 1px solid rgba(197, 163, 106, .35);
  visibility: hidden; transform: translateX(100%);
  transition: transform .6s var(--ease), visibility 0s linear .6s;
}
.enquire-backdrop.is-open, .enquire-drawer.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
/* Children only ever transition colour, so they never lag behind the inherited visibility
   (the global reduced-motion rule would otherwise give them a visibility transition). */
.enquire-rail-text, .enquire-drawer * { transition-property: color; }
.enquire-drawer-close {
  position: absolute; top: 18px; right: clamp(16px, 2vw, 28px);
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0;
  border: 0; background: none; cursor: pointer;
  font: 600 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  transition: color .3s ease;
}
.enquire-drawer-close span { font-size: 24px; font-weight: 300; letter-spacing: 0; }
.enquire-drawer-close:hover { color: var(--gold); }
.enquire-drawer-eyebrow { color: var(--gold); font: 600 11px/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; }
.enquire-drawer-title { margin-top: 14px; font: 300 clamp(34px, 3vw, 42px)/1.05 var(--serif); }
.enquire-drawer-list { margin-top: clamp(32px, 5vh, 52px); border-top: 1px solid var(--rule-light); }
.enquire-drawer-list li { display: grid; gap: 4px; padding: 20px 0; border-bottom: 1px solid var(--rule-light); }
.enquire-drawer-list span { color: var(--text-light); font: 600 10px/1.5 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.enquire-drawer-list .enquire-drawer-book { color: var(--gold); }   /* champagne label above the Airbnb link */
.enquire-drawer-list a { font: 400 26px/1.25 var(--serif); text-decoration: none; transition: color .3s ease; }
.enquire-drawer-list a:hover { color: var(--gold); }
.enquire-drawer-list .enquire-drawer-airbnb { font-size: 21px; font-style: italic; }
.enquire-drawer-airbnb span { color: var(--gold); font: 400 18px/1 var(--sans); letter-spacing: 0; text-transform: none; }

/* Hero ------------------------------------------------------------------ */
.hero-scene {
  /* Start geometry of the centred photograph (unchanged from the static design). */
  --ft-0: calc(var(--header-h) + 20px);
  --fb-0: 88px;
  --hero-h: clamp(620px, 100svh, 1080px);
  --fw-0: max(250px, min(40vw, calc((var(--hero-h) - var(--ft-0) - var(--fb-0)) * .68), 540px));
  --display: clamp(60px, min(13.4vw, 25svh), 236px);

  /* Cinematic expansion: --p (0 → 1) is set from scroll progress by premium.js.
     Without JS, or with reduced motion, --p stays 0 and the hero is static. */
  --p: 0;
  --band: 0px;                                        /* extra height when the pinned hero fills a tall viewport */
  --expand: min(80svh, 840px);                        /* pinned scroll distance (desktop) */
  --inset-end: clamp(10px, 1.4vw, 24px);              /* "nearly full-viewport" margin */
  --ft: calc(var(--ft-0) + var(--band) / 2 + (var(--inset-end) - var(--ft-0) - var(--band) / 2) * var(--p));
  --fb: calc(var(--fb-0) + var(--band) / 2 + (var(--inset-end) - var(--fb-0) - var(--band) / 2) * var(--p));
  --fw: calc(var(--fw-0) + (100% - 2 * var(--inset-end) - var(--fw-0)) * var(--p));
  /* Headline fade-out, eased (smoothstep) over p .24 → .60 */
  --hl-t: clamp(0, (var(--p) - .24) / .36, 1);
  --type-o: calc(1 - var(--hl-t) * var(--hl-t) * (3 - 2 * var(--hl-t)));
  position: relative;
}
.hero {
  position: relative;
  height: 100vh;
  height: calc(var(--hero-h) + var(--band));
  min-height: 620px;
  overflow: hidden;
  background: transparent;
}
.hero-frame {
  position: absolute;
  top: var(--ft); bottom: var(--fb);
  left: calc(50% - var(--fw) / 2);
  width: var(--fw);
  overflow: hidden;
  background: var(--ivory-deep);
}
.hero-frame::after {
  /* light navy veil so the ivory half of the headline stays legible over bright sky */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(37, 33, 59, .34) 0%, rgba(37, 33, 59, .26) 55%, rgba(37, 33, 59, .08) 100%);
}
.hero-frame::after { opacity: calc(1 - var(--p) * .55); }   /* veil lifts as the headline leaves */
.hero-media { position: absolute; inset: 0; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: 58% calc(50% - 6% * var(--p));     /* drift towards pergola + sunset when wide */
}

.hero-type {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: var(--ft) 12px var(--fb);
  pointer-events: none;
}
.hero-type--inverse {
  color: var(--ivory);
  clip-path: inset(var(--ft) calc(50% - var(--fw) / 2) var(--fb) calc(50% - var(--fw) / 2));
}
.hero-title {
  font: 400 var(--display)/.84 var(--serif);
  letter-spacing: .01em;
  text-align: center;
  text-transform: uppercase;
}
.hero-title .line { display: block; overflow: hidden; padding: .02em .04em .06em; }
.hero-title .line > span { display: block; }
.hero-type:not(.hero-type--inverse) .hero-title { color: var(--ink); }
.hero-title, .hero-foot > * {
  opacity: var(--type-o);
  transform: translateY(calc(var(--p) * -3vh));
}

.hero-foot {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: calc(var(--band) / 2);
  height: var(--fb-0);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  color: var(--text-soft);
  font: 600 11px/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase;
}
.hero-foot p:last-child { text-align: right; }
.hero-scroll {
  display: inline-flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
}
.hero-scroll i { position: relative; display: block; width: 1px; height: 30px; overflow: hidden; background: var(--rule); }
.hero-scroll i::after {
  content: ''; position: absolute; inset: 0; background: var(--gold);
  animation: scroll-line 2.4s var(--ease) infinite;
}

/* Expanded-state editorial note --------------------------------------------
   Crossfades with the headline: headline eases out over p .24 → .60, the note eases in over
   p .46 → .84. They overlap only while both are faint (≈10% each at p ≈ .53), so the two
   never compete. The note rides the photograph's corner and settles on the page gutter at
   p = 1, so it is never cut by the expanding edge. With --p at 0 (no JS / reduced motion)
   it stays invisible and the static hero is unchanged.
   Landscape: Deep Plum on the sunlit wall (upper-left), lifted by a soft ivory haze.
   Portrait (tablet / phone): ivory at bottom-left over a soft navy fade. */
.hero-scene {
  --note-t: clamp(0, (var(--p) - .46) / .38, 1);
  --note-o: calc(var(--note-t) * var(--note-t) * (3 - 2 * var(--note-t)));
  --scrim-o: clamp(0, (var(--p) - .40) / .40, 1);
  --note-pad: calc(var(--gutter) - var(--inset-end));   /* inset from the photo edge = page gutter at p = 1 */
}
.hero-frame::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  opacity: var(--scrim-o);
  background: radial-gradient(ellipse 36% 46% at 15% 27%, rgba(248, 245, 236, .5) 0%, rgba(248, 245, 236, .22) 55%, rgba(248, 245, 236, 0) 100%);
}
.hero-note {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  clip-path: inset(var(--ft) calc(50% - var(--fw) / 2) var(--fb) calc(50% - var(--fw) / 2));
  opacity: var(--note-o);
}
.hero-note-inner {
  position: absolute;
  left: calc(50% - var(--fw) / 2 + var(--note-pad));     /* photo's left edge + pad */
  top: calc(var(--ft) + clamp(64px, 12svh, 150px));        /* photo's top edge + offset */
  max-width: 26rem;
  color: var(--ink);
  transform: translateY(calc((1 - var(--note-o)) * 14px));
}
.hero-note-brand {
  display: flex; align-items: center; gap: 14px;
  font: 600 12px/1.4 var(--sans); letter-spacing: .24em; text-transform: uppercase;
}
.hero-note-brand::before { content: ''; width: 28px; height: 1px; background: var(--gold); }
.hero-note-tagline {
  margin-top: 22px;
  font: 400 clamp(44px, 4.6vw, 76px)/1 var(--serif);
  letter-spacing: -.01em;
}
.hero-note-tagline em { font-weight: 300; }
.hero-note-meta {
  display: grid; gap: 6px;
  margin-top: 26px;
  font: 600 11px/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase;
}

@media (orientation: portrait) {
  .hero-frame::before {
    background: linear-gradient(0deg, rgba(28, 25, 48, .82) 0%, rgba(28, 25, 48, .55) 28%, rgba(28, 25, 48, 0) 56%);
  }
  .hero-note-inner {
    top: auto;
    bottom: calc(var(--fb) + clamp(28px, 5svh, 56px));        /* photo's bottom edge + offset */
    right: calc(50% - var(--fw) / 2 + var(--note-pad));      /* photo's right edge + pad */
    max-width: 30rem;
    color: var(--ivory);
  }
  .hero-note-tagline { margin-top: 16px; font-size: clamp(38px, 7.5vw, 60px); }
  .hero-note-meta { margin-top: 18px; }
}
@media (max-width: 640px) and (orientation: portrait) {
  .hero-note-brand { font-size: 11px; letter-spacing: .22em; }
  .hero-note-brand::before { width: 22px; }
  .hero-note-tagline { margin-top: 14px; font-size: clamp(34px, 10.5vw, 46px); }
  .hero-note-meta { margin-top: 16px; font-size: 10px; letter-spacing: .18em; }
}

/* Hero entrance */
.js .hero-frame { animation: frame-in 1.8s var(--ease) both; }
.js .hero-media img { animation: settle 2.6s var(--ease) both; }
.js .hero-type--inverse { animation: fade-in 1.8s var(--ease) both; }
.js .hero-title .line > span { animation: line-up 1.5s var(--ease) both; animation-delay: .25s; }
.js .hero-title .line + .line > span { animation-delay: .4s; }
.js .hero-foot { animation: fade-in 1.2s ease both; animation-delay: .9s; }

/* Scroll-driven expansion: the scene gains scroll length and the hero stays pinned
   while --p runs 0 → 1, then releases into normal scrolling. Only with JS + motion allowed. */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-scene.is-cinematic {
    /* On viewports taller than the hero's height cap, the pinned hero fills the screen and the
       original composition sits centred in it — no empty strip below while it is pinned. */
    --band: max(0px, 100svh - var(--hero-h));
    height: calc(var(--hero-h) + var(--band) + var(--expand));
  }
  .js .hero-scene.is-cinematic .hero { position: sticky; top: 0; }
}
/* Short laptop screens: the pinned hero must fit the viewport, or its lower edge is never visible. */
@media (prefers-reduced-motion: no-preference) and (min-width: 641px) and (max-height: 619px) {
  .js .hero-scene.is-cinematic { --hero-h: 100svh; }
  .js .hero-scene.is-cinematic .hero { min-height: 0; }
}

/* 01 Residence ---------------------------------------------------------- */
.residence-grid {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2.4vw, 36px);
  margin-top: clamp(64px, 9vw, 140px);
}
.residence-main { grid-column: 1 / span 7; }
.residence-main .photo-frame { aspect-ratio: 4 / 5; }
.residence-aside { grid-column: 9 / span 4; padding-top: clamp(80px, 16vw, 260px); }
.residence-detail { width: 78%; margin-bottom: clamp(40px, 5vw, 72px); }
.residence-detail .photo-frame { aspect-ratio: 3 / 4; }

/* At a glance ----------------------------------------------------------- */
.glance { padding-bottom: var(--section); }
.glance-list { border-top: 1px solid var(--rule); }
.glance-list li {
  display: grid; grid-template-columns: 1fr 6fr 4fr; align-items: baseline; gap: 24px;
  padding: clamp(24px, 3.4vw, 44px) 0;
  border-bottom: 1px solid var(--rule);
}
.glance-num { color: var(--gold-ink); font: italic 400 22px/1 var(--serif); }
.glance-list h3 { font: 400 clamp(34px, 5vw, 76px)/1 var(--serif); letter-spacing: -.01em; }
.glance-list p { color: var(--text-soft); max-width: 24em; }

/* 02 Living ------------------------------------------------------------- */
.living { position: relative; overflow: hidden; background: var(--tex-deepen); }
.ghost-word {
  position: absolute; top: clamp(40px, 6vw, 90px); right: -0.06em;
  color: var(--gold); opacity: .2;
  font: italic 300 clamp(120px, 24vw, 400px)/.8 var(--serif);
  letter-spacing: -.03em;
  pointer-events: none; user-select: none; white-space: nowrap;
}
.living-grid {
  position: relative;
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2.4vw, 36px);
  align-items: start;
}
.living-head { grid-column: 1 / span 5; grid-row: 1; padding-top: clamp(20px, 6vw, 100px); }
.living-head .title { margin-bottom: clamp(28px, 3vw, 44px); }
.living-main { grid-column: 6 / span 7; grid-row: 1 / span 2; position: relative; z-index: 1; }
.living-main .photo-frame { aspect-ratio: 4 / 5; }
.living-inset { grid-column: 2 / span 3; grid-row: 2; align-self: end; margin-top: 64px; }
.living-inset .photo-frame { aspect-ratio: 3 / 4; }

/* 03 Bedrooms ----------------------------------------------------------- */
.bedrooms-grid {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2.4vw, 36px);
  align-items: start;
}
.bedrooms-main { grid-column: 1 / span 6; grid-row: 1 / span 2; }
.bedrooms-main .photo-frame { aspect-ratio: 4 / 5; }
.bedrooms-head { grid-column: 8 / span 5; grid-row: 1; padding-top: clamp(0px, 4vw, 64px); }
.bedrooms-head .title { margin-bottom: clamp(28px, 3vw, 44px); }
.bedrooms-pair {
  grid-column: 8 / span 5; grid-row: 2; align-self: end;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 28px);
  margin-top: clamp(48px, 6vw, 96px);
}
.bedrooms-pair .photo-frame { aspect-ratio: 3 / 4; }
.bedrooms-b { margin-top: clamp(40px, 6vw, 96px); }

/* 04 Rooftop ------------------------------------------------------------ */
.rooftop { position: relative; background: var(--navy); color: var(--ivory); }

/* Navy surfaces keep the original champagne exactly as before. */
.rooftop, .site-footer, .site-menu, .lightbox, .menu-open .site-header { --gold: var(--gold-navy); }
.rooftop .photo figcaption { color: var(--text-light); }
.rooftop .photo-frame { background: var(--navy-deep); }
.rooftop-title {
  position: relative; z-index: 0;
  text-align: center;
  font-size: clamp(50px, 9.2vw, 168px);
  line-height: .9;
  padding-bottom: .12em;                        /* keeps the descenders of "open sky" inside the heading box */
  margin-bottom: clamp(28px, 4vw, 72px);        /* clear gap before the photographs */
}
.rooftop-title span, .rooftop-title em { display: block; }
.rooftop-title em { color: var(--gold); }
.rooftop-grid {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2.4vw, 36px);
  align-items: start;
}
.rooftop-main {
  grid-column: 4 / span 6; grid-row: 1;
  position: relative; z-index: 1;
  margin-top: 0;
}
.rooftop-main .photo-frame { aspect-ratio: 4 / 5; }
.rooftop-side { grid-column: 1 / span 3; grid-row: 1; padding-top: clamp(120px, 22vw, 360px); }
.rooftop-small .photo-frame { aspect-ratio: 3 / 4; }
.rooftop-side .prose { margin-top: clamp(28px, 3vw, 44px); }
.rooftop-tall { grid-column: 10 / span 3; grid-row: 1; margin-top: clamp(80px, 10vw, 170px); }
.rooftop-tall .photo-frame { aspect-ratio: 2 / 3; }

/* 05 Gallery ------------------------------------------------------------ */
.gallery-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 32px;
  margin-bottom: clamp(48px, 7vw, 104px);
}
.gallery-head .prose { max-width: 26em; }
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  column-gap: clamp(16px, 2.6vw, 40px); row-gap: clamp(40px, 5vw, 72px);
  padding-bottom: clamp(40px, 6vw, 96px);
}
.gallery-item .photo-frame { aspect-ratio: 4 / 5; }
.gallery-item { position: relative; }
.gallery-item:nth-child(3n + 2) { top: clamp(40px, 6vw, 96px); }

/* 06 Contact ------------------------------------------------------------ */
.contact { background: var(--tex-deepen); text-align: center; }
.contact-inner { display: flex; flex-direction: column; align-items: center; }
.contact-title { font-size: clamp(56px, 10vw, 176px); line-height: .88; }
.contact-place {
  margin-top: clamp(28px, 4vw, 48px);
  color: var(--gold-ink); font: 600 12px/1.5 var(--sans); letter-spacing: .24em; text-transform: uppercase;
}
.contact-note { margin-top: 18px; color: var(--text-soft); }
.contact-list { display: grid; gap: 14px; margin-top: 32px; }
.contact-list li { display: grid; gap: 2px; }
.contact-list span { color: var(--text-soft); font: 600 11px/1.5 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.contact-list a, .contact-list p { font: 400 clamp(22px, 2.4vw, 30px)/1.3 var(--serif); text-decoration: none; }
.contact-list a:hover { color: var(--gold-ink); }

/* Footer ---------------------------------------------------------------- */
.site-footer { background: var(--navy); color: var(--text-light); padding: clamp(72px, 9vw, 128px) 0 32px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.footer-brand { display: block; line-height: 0; }
.footer-brand img { width: clamp(180px, 18vw, 240px); height: auto; }
.footer-nav {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px clamp(20px, 3vw, 40px);
  margin-top: clamp(40px, 5vw, 64px);
}
.footer-nav a {
  display: inline-block; padding: 10px 0;
  color: var(--ivory); text-decoration: none;
  font: 600 12px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  transition: color .3s ease;
}
.footer-nav a:hover { color: var(--gold); }
.footer-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: 28px; }
.footer-contact a { color: var(--gold); font: 600 12px/1.4 var(--sans); letter-spacing: .12em; text-decoration: none; }
.footer-contact a:hover { color: var(--ivory); }
.footer-bottom {
  width: 100%;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  margin-top: clamp(56px, 7vw, 96px); padding-top: 24px;
  border-top: 1px solid var(--rule-light);
  font-size: 12px; letter-spacing: .08em;
}
.footer-bottom a { color: var(--ivory); text-decoration: none; padding: 6px 0; margin: -6px 0; }
.footer-bottom a:hover { color: var(--gold); }

/* Lightbox -------------------------------------------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 80;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  padding: 72px clamp(12px, 3vw, 40px) 32px;
  background: rgba(28, 25, 48, .97);
  color: var(--ivory);
  animation: fade-in .5s ease both;
}
.lightbox-figure { grid-column: 2; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.lightbox-figure img { max-width: 100%; max-height: calc(100svh - 170px); width: auto; object-fit: contain; animation: fade-in .6s ease both; }
.lightbox-figure figcaption {
  display: flex; gap: 20px; margin-top: 18px;
  font: 600 11px/1.5 var(--sans); letter-spacing: .2em; text-transform: uppercase;
}
.lightbox-count { color: var(--gold); }
.lightbox-close, .lightbox-nav {
  min-height: 44px; padding: 8px 4px; border: 0; background: none; color: var(--ivory); cursor: pointer;
  font: 600 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  transition: color .3s ease;
}
.lightbox-close:hover, .lightbox-nav:hover { color: var(--gold); }
.lightbox-close { position: absolute; top: 16px; right: clamp(12px, 3vw, 40px); display: flex; align-items: center; gap: 10px; }
.lightbox-close span { font-size: 26px; font-weight: 300; letter-spacing: 0; }
.lightbox-prev { grid-column: 1; grid-row: 1; }
.lightbox-next { grid-column: 3; grid-row: 1; }

/* Scroll reveal --------------------------------------------------------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(32px);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
}
.js [data-reveal="image"] { transform: none; clip-path: inset(10% 0 0 0); transition: opacity 1.2s var(--ease), clip-path 1.6s var(--ease); }
.js [data-reveal="image"] .photo-frame img { transform: scale(1.1); transition: transform 2.2s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
.js [data-reveal].is-in .photo-frame img { transform: none; }
.js [data-reveal="image"].is-in .photo-trigger:hover .photo-frame img { transform: scale(1.035); }

/* Keyframes ------------------------------------------------------------- */
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes line-up { from { transform: translateY(110%); } to { transform: none; } }
@keyframes frame-in { from { opacity: 0; clip-path: inset(6% 4% 6% 4%); } to { opacity: 1; clip-path: inset(0); } }
@keyframes settle { from { transform: scale(1.14); } to { transform: scale(1); } }
@keyframes scroll-line { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* Responsive ------------------------------------------------------------ */
@media (max-width: 1024px) {
  :root { --texture: url("assess/images/web/texture-plaster-md.webp"); --tex-size: 1253px 706px; }   /* 75% tile */
  /* Narrower frame + larger type so the headline clearly overruns the photograph. */
  .hero-scene {
    --hero-h: clamp(620px, 100svh, 940px);
    --fw-0: max(240px, min(46vw, calc((var(--hero-h) - var(--ft-0) - var(--fb-0)) * .62), 480px));
    --display: clamp(60px, min(15.5vw, 24svh), 170px);
    --expand: min(70svh, 760px);     /* pinned scroll distance (tablet) */
  }
  .statement { margin-left: 0; }
  .glance-list li { grid-template-columns: 56px 1fr; }
  .glance-list p { grid-column: 2; }
  .rooftop-side { grid-column: 1 / span 3; }
}

@media (max-width: 900px) {
  .residence-grid, .living-grid, .bedrooms-grid, .rooftop-grid { grid-template-columns: repeat(6, 1fr); }

  .residence-main { grid-column: 1 / -1; }
  .residence-aside { grid-column: 2 / -1; padding-top: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: end; }
  .residence-detail { width: 100%; margin: 0; }

  .living-head { grid-column: 1 / -1; padding-top: 0; margin-bottom: 48px; }
  .living-main { grid-column: 1 / -1; grid-row: 2; }
  .living-inset { grid-column: 4 / -1; grid-row: 3; margin-top: -72px; z-index: 2; }   /* overlaps the photo, clear of its left-aligned caption */

  .bedrooms-head { grid-column: 1 / -1; grid-row: 1; padding-top: 0; margin-bottom: 48px; }
  .bedrooms-main { grid-column: 1 / -1; grid-row: 2; }
  .bedrooms-pair { grid-column: 1 / -1; grid-row: 3; }

  .rooftop-main { grid-column: 1 / -1; grid-row: 1; margin-top: 8px; }
  .rooftop-side { grid-column: 1 / span 3; grid-row: 2; padding-top: 48px; }
  .rooftop-tall { grid-column: 4 / -1; grid-row: 2; margin-top: 120px; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item:nth-child(3n + 2) { top: 0; }
  .gallery-item:nth-child(2n) { top: 56px; }
}

@media (max-width: 640px) {
  :root { --header-h: 68px; --texture: url("assess/images/web/texture-plaster-sm.webp"); --tex-size: 919px 518px; }   /* 55% tile */
  .header-cta::after { display: none; }
  .menu-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .site-menu-nav { position: relative; top: -24px; }   /* list sits slightly higher; location label keeps its place */

  .hero-scene {
    --ft-0: calc(var(--header-h) + 12px);
    --fb-0: 76px;
    --hero-h: clamp(560px, 100svh, 780px);
    --fw-0: min(62vw, 300px);
    --display: clamp(44px, 17vw, 100px);
    --expand: min(50svh, 420px);     /* pinned scroll distance (mobile) */
    --inset-end: 10px;
  }
  .hero-foot { grid-template-columns: 1fr 1fr; font-size: 10px; letter-spacing: .18em; }
  .hero-scroll { display: none; }

  .residence-aside { grid-column: 1 / -1; grid-template-columns: 1fr; }
  .residence-detail { width: 64%; }

  .glance-list li { grid-template-columns: 40px 1fr; gap: 12px 16px; }

  .living-inset { grid-column: 3 / -1; margin-top: 28px; }   /* stagger by offset, never over the caption above */
  .ghost-word { display: none; }

  .rooftop-side { grid-column: 1 / -1; }
  .rooftop-small { width: 60%; }
  .rooftop-tall { grid-column: 3 / -1; grid-row: 3; margin-top: 40px; }   /* own row below the text, staggered right */

  .gallery-grid { column-gap: 12px; row-gap: 32px; }
  .gallery-item:nth-child(2n) { top: 36px; }
  .photo figcaption { font-size: 10px; letter-spacing: .14em; }

  .lightbox { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; padding-top: 64px; }
  .lightbox-figure { grid-column: 1 / -1; grid-row: 1; }
  .lightbox-prev { grid-column: 1; grid-row: 2; justify-self: start; }
  .lightbox-next { grid-column: 2; grid-row: 2; justify-self: end; }

  .footer-bottom { flex-direction: column; align-items: center; }
}

/* Reduced motion -------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; transition-delay: 0s !important;
  }
  .js [data-reveal], .js [data-reveal="image"] { opacity: 1; transform: none; clip-path: none; }
  .js [data-reveal] .photo-frame img, .photo-trigger:hover .photo-frame img { transform: none; }
  .hero-scroll i::after { animation: none; transform: none; }
}
