/* ============================================================
   VERMEIL — Marylebone, W1
   Gallery-catalogue restraint: vast negative space, hairline
   rules, serif display over quiet sans, silk reveals,
   monochrome ground with a single brass accent.
   ============================================================ */

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/CormorantGaramond-var.woff2') format('woff2-variations');
  font-weight: 300 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/CormorantGaramond-italic-var.woff2') format('woff2-variations');
  font-weight: 300 700; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-var.woff2') format('woff2-variations');
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --ink: #171512;
  --ink-2: #2a2723;
  --paper: #f6f3ee;
  --paper-2: #efeae2;
  --mute: #7c766b;
  --hairline: rgba(23, 21, 18, .16);
  --hairline-inv: rgba(246, 243, 238, .22);
  --brass: #9a7a45;
  --brass-hi: #b8925a;
  --serif: 'Cormorant Garamond', 'Georgia', serif;
  --sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --ease-silk: cubic-bezier(.22, 1, .36, 1);
  --gutter: clamp(20px, 4.5vw, 72px);
  --sec-pad: clamp(84px, 11vw, 176px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { height: auto; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.has-detail, body.has-lb, body.has-modal, body.has-mnav { overflow: hidden; }

img { display: block; max-width: 100%; opacity: 0; transition: opacity .9s var(--ease-silk); }
img.loaded, .no-js img { opacity: 1; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--brass); color: var(--paper); }
:focus-visible { outline: 1.5px solid var(--brass); outline-offset: 3px; }

/* ---------- typography ---------- */
.kicker {
  font-family: var(--sans);
  font-size: 11px; font-weight: 500;
  letter-spacing: .32em; text-transform: uppercase;
  color: var(--brass);
}
.serif { font-family: var(--serif); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.04; }

.sec-head { padding: 0 var(--gutter); margin-bottom: clamp(48px, 6vw, 96px); }
.sec-head .kicker { display: block; margin-bottom: 22px; }
.sec-title {
  font-size: clamp(40px, 6.2vw, 92px);
  letter-spacing: -.015em;
  max-width: 14ch;
}
.sec-title em { font-style: italic; font-weight: 300; }
.sec-sub { max-width: 54ch; color: var(--mute); margin-top: 26px; font-size: 15.5px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease-silk), transform 1s var(--ease-silk); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- veil / loader ---------- */
#veil {
  position: fixed; inset: 0; z-index: 200;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 18px;
  color: var(--paper);
  transition: opacity .85s var(--ease-silk), visibility .85s;
}
#veil.done { opacity: 0; visibility: hidden; }
#veil .v-mark {
  font-family: var(--serif); font-size: clamp(34px, 5vw, 56px);
  letter-spacing: .42em; text-indent: .42em; font-weight: 300;
  animation: veil-mark 1.6s var(--ease-silk) both;
}
#veil .v-sub { font-size: 10px; letter-spacing: .4em; text-transform: uppercase; color: var(--brass-hi); animation: veil-mark 1.6s .15s var(--ease-silk) both; }
#veil .v-line { width: 0; height: 1px; background: var(--brass); animation: veil-line 1s .3s var(--ease-silk) forwards; }
@keyframes veil-mark { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes veil-line { to { width: 72px; } }

/* ---------- cursor ---------- */
#cursor {
  position: fixed; left: 0; top: 0; z-index: 190; pointer-events: none;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(154, 122, 69, .75);
  mix-blend-mode: multiply;
  opacity: 0; transition: opacity .4s;
  will-change: transform;
}
#cursor.on { opacity: .85; }
#cursor.is-hover { background: rgba(154, 122, 69, .12); }
@media (pointer: coarse) { #cursor { display: none; } }

/* ---------- nav ---------- */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter); height: 84px;
  color: var(--paper);
  transition: color .5s, background .5s, box-shadow .5s, height .5s var(--ease-silk);
}
#nav.scrolled {
  color: var(--ink); background: rgba(246, 243, 238, .92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--hairline);
  height: 66px;
}
body.has-detail #nav, body.has-lb #nav, body.has-modal #nav { visibility: hidden; }
.wordmark { display: flex; flex-direction: column; line-height: 1; }
.wordmark .wm-a { font-family: var(--serif); font-size: 24px; letter-spacing: .34em; text-indent: .05em; }
.wordmark .wm-b { font-size: 8.5px; letter-spacing: .38em; text-transform: uppercase; color: var(--brass-hi); margin-top: 5px; }
#nav.scrolled .wm-b { color: var(--brass); }
.nav-links { display: flex; gap: 38px; align-items: center; }
.nav-links a {
  font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; font-weight: 500;
  position: relative; padding: 6px 0; opacity: .92;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--brass); transform: scaleX(0); transform-origin: right;
  transition: transform .55s var(--ease-silk);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta {
  font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; font-weight: 500;
  border: 1px solid currentColor; padding: 11px 22px;
  transition: background .45s var(--ease-silk), color .45s, border-color .45s;
}
.nav-cta:hover { background: var(--brass); border-color: var(--brass); color: #fff; }
#menu-btn {
  display: none; width: 44px; height: 44px; position: relative; z-index: 130;
}
#menu-btn span { display: block; width: 26px; height: 1.5px; background: currentColor; margin: 7px auto; transition: transform .45s var(--ease-silk), opacity .3s; }
#menu-btn.is-x span:nth-child(1) { transform: translateY(4.2px) rotate(45deg); }
#menu-btn.is-x span:nth-child(2) { transform: translateY(-4.2px) rotate(-45deg); }

/* mobile nav overlay */
#mnav {
  position: fixed; inset: 0; z-index: 120; background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; justify-content: center; padding: 0 var(--gutter);
  opacity: 0; visibility: hidden; transition: opacity .6s var(--ease-silk), visibility .6s;
}
#mnav.open { opacity: 1; visibility: visible; }
.mnav-link {
  font-family: var(--serif); font-size: clamp(34px, 9vw, 58px); line-height: 1.25;
  padding: 10px 0; border-bottom: 1px solid var(--hairline-inv);
  display: flex; justify-content: space-between; align-items: baseline;
  opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease-silk), transform .7s var(--ease-silk);
}
.mnav-link small { font-family: var(--sans); font-size: 10px; letter-spacing: .3em; color: var(--brass-hi); }
#mnav.open .mnav-link { opacity: 1; transform: none; }
#mnav.open .mnav-link:nth-child(1) { transition-delay: .08s; }
#mnav.open .mnav-link:nth-child(2) { transition-delay: .14s; }
#mnav.open .mnav-link:nth-child(3) { transition-delay: .2s; }
#mnav.open .mnav-link:nth-child(4) { transition-delay: .26s; }
#mnav.open .mnav-link:nth-child(5) { transition-delay: .32s; }
#mnav.open .mnav-link:nth-child(6) { transition-delay: .38s; }

/* ---------- hero ---------- */
#hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: var(--ink); }
.hero-media { position: absolute; inset: -6% 0; will-change: transform; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: 1; }
.hero-media img { animation: hero-breathe 14s var(--ease-silk) both; }
@keyframes hero-breathe { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,16,13,.42) 0%, rgba(18,16,13,.12) 38%, rgba(18,16,13,.58) 100%); }
.hero-inner {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--gutter) clamp(56px, 8vh, 96px); color: var(--paper);
}
.hero-kick { display: flex; align-items: center; gap: 18px; margin-bottom: 30px; }
.hero-kick .rule { width: 56px; height: 1px; background: var(--brass); }
.hero-title {
  font-size: clamp(52px, 9.4vw, 148px);
  line-height: .98; letter-spacing: -.02em; font-weight: 300;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span { display: block; transform: translateY(110%); animation: hero-line 1.2s var(--ease-silk) forwards; }
.hero-title .line:nth-child(2) > span { animation-delay: .12s; }
.hero-title em { font-style: italic; }
@keyframes hero-line { to { transform: none; } }
.hero-sub {
  margin-top: 34px; max-width: 46ch; color: rgba(246,243,238,.82);
  font-size: 15.5px; font-weight: 300; letter-spacing: .02em;
}
.hero-foot {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--hairline-inv);
}
.hero-foot .hf { font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; color: rgba(246,243,238,.72); }
.scroll-cue { display: flex; align-items: center; gap: 14px; font-size: 10px; letter-spacing: .34em; text-transform: uppercase; color: rgba(246,243,238,.72); }
.scroll-cue i { display: block; width: 1px; height: 46px; background: linear-gradient(var(--brass), transparent); animation: cue 2.2s var(--ease-silk) infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- intro / manifesto ---------- */
#s-building { padding: var(--sec-pad) 0 0; }
.intro-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 7vw, 120px);
  padding: 0 var(--gutter); align-items: start;
}
.intro-statement { font-family: var(--serif); font-size: clamp(28px, 3.6vw, 52px); line-height: 1.18; font-weight: 300; letter-spacing: -.01em; }
.intro-statement em { font-style: italic; }
.intro-body { color: var(--mute); display: flex; flex-direction: column; gap: 20px; padding-top: 12px; }
.intro-body p { max-width: 52ch; }
.intro-body .sig { margin-top: 8px; font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink); }
.intro-body .sig b { color: var(--brass); font-weight: 500; }
#intro-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
  margin: clamp(56px, 8vw, 110px) var(--gutter) 0;
}
.stat { padding: clamp(28px, 4vw, 52px) 0; text-align: center; border-right: 1px solid var(--hairline); }
.stat:last-child { border-right: 0; }
.stat-n { font-family: var(--serif); font-size: clamp(34px, 4.6vw, 64px); font-weight: 300; display: block; }
.stat-l { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--mute); margin-top: 8px; display: block; }
.intro-figures {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px);
  padding: clamp(56px, 8vw, 110px) var(--gutter) 0;
}
.intro-figures figure { overflow: hidden; }
.intro-figures img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.intro-figures .fig-b { margin-top: clamp(48px, 9vw, 140px); }
.intro-figures figcaption { font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: var(--mute); padding-top: 14px; }

/* ---------- collection ---------- */
#s-collection { padding-top: var(--sec-pad); }
.coll-tools { padding: 0 var(--gutter); }
#filters {
  border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
  padding: 26px 0; display: flex; flex-wrap: wrap; gap: 26px 44px; align-items: flex-start;
}
.fgroup { display: flex; flex-direction: column; gap: 12px; }
.fgroup > span { font-size: 9.5px; letter-spacing: .32em; text-transform: uppercase; color: var(--mute); }
.fopts { display: flex; flex-wrap: wrap; gap: 6px; }
.fopt {
  font-size: 11px; letter-spacing: .12em; padding: 8px 15px;
  border: 1px solid var(--hairline); border-radius: 999px;
  transition: all .35s var(--ease-silk); white-space: nowrap;
}
.fopt:hover { border-color: var(--ink); }
.fopt.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.floor-chips { display: flex; gap: 6px; }
.floor-chip {
  font-size: 11px; letter-spacing: .12em; padding: 8px 15px;
  border: 1px solid var(--hairline); border-radius: 999px; transition: all .35s var(--ease-silk);
}
.floor-chip.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.sort-wrap { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.sort-wrap label { font-size: 9.5px; letter-spacing: .32em; text-transform: uppercase; color: var(--mute); }
#sort-select {
  font-family: var(--sans); font-size: 12px; letter-spacing: .06em;
  border: 0; border-bottom: 1px solid var(--ink); background: transparent;
  padding: 6px 2px; color: var(--ink); cursor: pointer; border-radius: 0;
}

#storeys-band {
  display: flex; align-items: flex-end; gap: clamp(6px, 1.4vw, 18px);
  padding: 34px 0 8px; border-bottom: 1px solid var(--hairline);
}
.storey { display: flex; flex-direction: column; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.storey-bar {
  width: 100%; height: 88px; position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
}
.storey-bar::before {
  content: ''; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 1px; height: 100%; background: var(--hairline);
}
.storey-fill {
  display: block; width: 3px; background: var(--ink); position: relative; z-index: 1;
  transition: height .6s var(--ease-silk), background .35s;
}
.storey-n { font-style: normal; font-size: 10px; letter-spacing: .06em; color: var(--mute); margin-top: 8px; }
.storey-label { font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); transition: color .3s; }
.storey.is-on .storey-label, .storey.is-on .storey-n { color: var(--brass); }
.storey.is-dim { opacity: .3; }
.storey:hover .storey-fill, .storey.is-on .storey-fill { background: var(--brass); }

.coll-meta {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 0; border-bottom: 1px solid var(--hairline);
}
#collection-count { font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--mute); }
.view-toggle { display: flex; border: 1px solid var(--hairline); }
.view-btn { padding: 9px 18px; font-size: 10px; letter-spacing: .24em; text-transform: uppercase; transition: all .35s; }
.view-btn + .view-btn { border-left: 1px solid var(--hairline); }
.view-btn.is-on { background: var(--ink); color: var(--paper); }
#reset-filters { font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--mute); border-bottom: 1px solid transparent; padding-bottom: 2px; transition: color .3s, border-color .3s; }
#reset-filters:hover { color: var(--ink); border-color: var(--ink); }

/* grid cards */
#collection-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 3.4vw, 56px) clamp(20px, 2.4vw, 40px);
  padding: clamp(36px, 5vw, 72px) var(--gutter) 0;
}
.card { display: block; }
.card-media { display: block; overflow: hidden; position: relative; aspect-ratio: 4/3; background: var(--paper-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-silk), opacity .9s; }
.card:hover .card-media img { transform: scale(1.055); }
.card-cta {
  position: absolute; left: 50%; bottom: 22px; transform: translate(-50%, 14px);
  background: var(--paper); color: var(--ink);
  font-size: 9.5px; letter-spacing: .3em; text-transform: uppercase; font-weight: 500;
  padding: 12px 22px; opacity: 0; transition: all .5s var(--ease-silk);
}
.card:hover .card-cta, .card:focus-visible .card-cta { opacity: 1; transform: translate(-50%, 0); }
.card-body { display: block; padding-top: 20px; }
.card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card-name { font-family: var(--serif); font-size: 27px; letter-spacing: -.01em; }
.badge { font-size: 8.5px; letter-spacing: .24em; text-transform: uppercase; padding: 5px 10px; border: 1px solid var(--hairline); color: var(--mute); white-space: nowrap; }
.badge-available { color: var(--brass); border-color: rgba(154,122,69,.5); }
.badge-reserved { color: var(--mute); }
.badge-soon { color: var(--ink); border-style: dashed; }
.card-meta { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin-top: 8px; }
.card-foot { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--hairline); }
.card-price { font-family: var(--serif); font-size: 19px; font-style: italic; }
.card-view { font-size: 10.5px; color: var(--mute); letter-spacing: .06em; }

/* list rows */
#collection-list { padding: 0 var(--gutter); }
.row {
  display: grid; grid-template-columns: 168px 1.4fr 1fr auto; gap: clamp(18px, 3vw, 48px);
  align-items: center; padding: 26px 0; border-bottom: 1px solid var(--hairline);
  transition: background .4s;
}
.row:hover { background: var(--paper-2); }
.row-media { aspect-ratio: 4/3; overflow: hidden; display: block; background: var(--paper-2); }
.row-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-silk), opacity .9s; }
.row:hover .row-media img { transform: scale(1.06); }
.row-name { font-family: var(--serif); font-size: 30px; display: block; }
.row-strap { display: block; color: var(--mute); font-size: 13px; margin-top: 6px; max-width: 44ch; }
.row-facts { display: flex; flex-direction: column; gap: 3px; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); }
.row-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.row-price { font-family: var(--serif); font-size: 22px; font-style: italic; }

/* empty state */
#collection-empty { text-align: center; padding: clamp(70px, 10vw, 130px) var(--gutter); }
#collection-empty h3 { font-size: clamp(30px, 4vw, 46px); font-weight: 300; font-style: italic; }
#collection-empty p { color: var(--mute); margin: 18px 0 30px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; font-weight: 500;
  padding: 18px 40px; transition: all .5s var(--ease-silk); border: 1px solid transparent;
}
.btn-brass { background: var(--brass); color: #fff; }
.btn-brass:hover { background: var(--brass-hi); }
.btn-ghost { border-color: var(--hairline); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-inv { border-color: var(--hairline-inv); color: var(--paper); }
.btn-inv:hover { border-color: var(--paper); }

/* ---------- amenities ---------- */
#s-amenities { padding-top: var(--sec-pad); }
.am {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(36px, 6vw, 110px);
  padding: clamp(44px, 6vw, 90px) var(--gutter); align-items: center;
  border-top: 1px solid var(--hairline);
}
.am:last-child { border-bottom: 1px solid var(--hairline); }
.am-flip .am-media { order: 2; }
.am-imgs { position: relative; }
.am-img { overflow: hidden; }
.am-img img { width: 100%; height: 100%; object-fit: cover; }
.am-img-a { aspect-ratio: 16/11; }
.am-img-b {
  position: absolute; right: -8%; bottom: -16%; width: 46%; aspect-ratio: 4/3;
  border: 6px solid var(--paper); box-shadow: 0 24px 60px rgba(23,21,18,.16);
}
.am-flip .am-img-b { right: auto; left: -8%; }
.am-title { font-size: clamp(34px, 4.4vw, 62px); margin: 14px 0 22px; font-weight: 300; }
.am-text { color: var(--mute); max-width: 48ch; }
.am-meta { list-style: none; margin-top: 30px; }
.am-meta li {
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2);
  padding: 11px 0; border-top: 1px solid var(--hairline); display: flex; gap: 14px; align-items: center;
}
.am-meta li::before { content: ''; width: 18px; height: 1px; background: var(--brass); flex: none; }

/* ---------- neighbourhood ---------- */
#s-neighbourhood { padding-top: var(--sec-pad); background: var(--ink); color: var(--paper); margin-top: var(--sec-pad); padding-bottom: var(--sec-pad); }
#s-neighbourhood .sec-sub { color: rgba(246,243,238,.66); }
.nb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 110px); padding: 0 var(--gutter); align-items: start; }
.nb-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.nb-photos figure { overflow: hidden; }
.nb-photos img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3/4; }
.nb-photos .wide { grid-column: 1 / -1; }
.nb-photos .wide img { aspect-ratio: 16/8; }
#nbhd-list { list-style: none; }
.nb {
  display: grid; grid-template-columns: 1fr auto auto; gap: 20px; align-items: baseline;
  padding: 17px 0; border-bottom: 1px solid var(--hairline-inv);
}
.nb-place { font-family: var(--serif); font-size: 24px; }
.nb-note { font-size: 12px; color: rgba(246,243,238,.55); }
.nb-walk { font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--brass-hi); white-space: nowrap; }
.nb-foot { margin-top: 34px; color: rgba(246,243,238,.55); font-size: 13px; max-width: 46ch; }

/* ---------- contact ---------- */
#s-enquire { padding-top: var(--sec-pad); padding-bottom: var(--sec-pad); }
.enq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); padding: 0 var(--gutter); }
.enq-copy p { color: var(--mute); max-width: 48ch; margin-top: 22px; }
.enq-details { margin-top: 44px; }
.enq-details .ed { padding: 16px 0; border-top: 1px solid var(--hairline); display: grid; grid-template-columns: 150px 1fr; gap: 12px; }
.enq-details .ed span { font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: var(--mute); }
.enq-details .ed strong { font-weight: 400; font-size: 15px; }
.enq-details .ed a { border-bottom: 1px solid var(--brass); padding-bottom: 1px; }
.enq-cta { margin-top: 38px; }
.enq-aside { position: relative; }
.enq-aside figure { overflow: hidden; height: 100%; min-height: 420px; }
.enq-aside img { width: 100%; height: 100%; object-fit: cover; }
.enq-aside figcaption {
  position: absolute; left: 22px; bottom: 22px; background: var(--paper);
  padding: 14px 20px; font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: var(--ink);
}

/* ---------- footer ---------- */
footer { background: var(--ink); color: var(--paper); padding: clamp(60px, 8vw, 110px) var(--gutter) 40px; }
.foot-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.foot-mark { font-family: var(--serif); font-size: clamp(48px, 8vw, 110px); letter-spacing: .3em; line-height: 1; font-weight: 300; }
.foot-col { display: flex; flex-direction: column; gap: 9px; }
.foot-col h5 { font-size: 9.5px; letter-spacing: .32em; text-transform: uppercase; color: var(--brass-hi); margin-bottom: 8px; font-weight: 500; }
.foot-col a, .foot-col span { font-size: 12.5px; color: rgba(246,243,238,.72); }
.foot-col a:hover { color: var(--paper); }
.foot-base { margin-top: clamp(50px, 7vw, 90px); padding-top: 24px; border-top: 1px solid var(--hairline-inv); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.foot-base small { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: rgba(246,243,238,.42); }
.foot-base a { color: rgba(246,243,238,.6); }

/* ---------- residence detail ---------- */
#detail {
  position: fixed; inset: 0; z-index: 110; background: var(--paper);
  overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity .5s var(--ease-silk), transform .5s var(--ease-silk), visibility .5s;
}
#detail.open { opacity: 1; visibility: visible; transform: none; }
.d-bar {
  position: sticky; top: 0; z-index: 5; background: rgba(246,243,238,.94);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 var(--gutter); height: 66px;
}
#d-back { font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; display: flex; gap: 12px; align-items: center; }
#d-back:hover { color: var(--brass); }
.d-bar .db-brand { font-family: var(--serif); letter-spacing: .3em; font-size: 15px; }
#detail-body { padding: clamp(48px, 7vw, 100px) var(--gutter) 120px; max-width: 1240px; margin: 0 auto; }
.d-head { max-width: 800px; }
.d-name { font-size: clamp(48px, 7.6vw, 110px); font-weight: 300; letter-spacing: -.02em; margin: 18px 0 20px; }
.d-strap { font-family: var(--serif); font-style: italic; font-size: clamp(19px, 2.4vw, 27px); color: var(--mute); line-height: 1.4; }
.d-price-row { display: flex; align-items: center; gap: 18px; margin-top: 30px; }
.d-price { font-family: var(--serif); font-size: clamp(26px, 3.4vw, 40px); font-style: italic; }
.d-facts {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
  margin: clamp(40px, 5vw, 70px) 0;
}
.d-facts > div { padding: 22px 18px 22px 0; border-right: 1px solid var(--hairline); }
.d-facts > div:nth-child(4n) { border-right: 0; }
.d-facts span { display: block; font-size: 9.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--mute); margin-bottom: 8px; }
.d-facts strong { font-weight: 400; font-size: 15.5px; }
.d-desc { font-family: var(--serif); font-size: clamp(20px, 2.6vw, 30px); line-height: 1.5; font-weight: 300; max-width: 56ch; }
.d-sec { margin-top: clamp(56px, 8vw, 100px); }
.d-sec-t { font-size: 12px; font-family: var(--sans); letter-spacing: .3em; text-transform: uppercase; font-weight: 500; padding-bottom: 20px; border-bottom: 1px solid var(--hairline); margin-bottom: 34px; display: flex; justify-content: space-between; align-items: baseline; }
.d-sec-t span { font-family: var(--serif); font-style: italic; text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--mute); font-weight: 300; }
.d-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.g-item { overflow: hidden; padding: 0; display: block; position: relative; background: var(--paper-2); }
.g-item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; transition: transform 1.2s var(--ease-silk), opacity .9s; }
.g-item.g-main { grid-column: span 2; grid-row: span 2; }
.g-item.g-main img { aspect-ratio: auto; height: 100%; }
.g-item::after {
  content: '+'; position: absolute; right: 14px; bottom: 10px; color: #fff;
  font-family: var(--serif); font-size: 22px; opacity: 0; transition: opacity .4s;
}
.g-item:hover::after { opacity: .9; }
.g-item:hover img { transform: scale(1.05); }
.plan { width: 100%; max-width: 760px; background: #fbf9f5; border: 1px solid var(--hairline); }
.plan-room { fill: none; stroke: var(--ink); stroke-width: 1; }
.plan-label { font-family: var(--sans); font-size: 8.5px; letter-spacing: .12em; text-transform: uppercase; fill: var(--ink); text-anchor: middle; }
.plan-dim { font-family: var(--serif); font-style: italic; font-size: 9px; fill: var(--mute); text-anchor: middle; }
.plan-note { font-family: var(--sans); font-size: 7.5px; letter-spacing: .14em; text-transform: uppercase; fill: var(--mute); }
.d-feats { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.d-feats li { padding: 14px 0; border-bottom: 1px solid var(--hairline); font-size: 13.5px; display: flex; gap: 14px; align-items: baseline; }
.d-feats li::before { content: ''; width: 16px; height: 1px; background: var(--brass); flex: none; transform: translateY(-4px); }
.d-spec { margin-top: 30px; color: var(--mute); font-size: 13px; max-width: 68ch; }
.d-actions { display: flex; gap: 18px; margin-top: clamp(50px, 7vw, 80px); flex-wrap: wrap; }
.d-pn { display: flex; justify-content: space-between; margin-top: clamp(60px, 8vw, 100px); padding-top: 30px; border-top: 1px solid var(--hairline); }
.d-pn a { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--mute); transition: color .3s; }
.d-pn a:hover { color: var(--ink); }

/* ---------- lightbox ---------- */
#lightbox {
  position: fixed; inset: 0; z-index: 150; background: rgba(14, 13, 11, .96);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .45s var(--ease-silk), visibility .45s;
}
#lightbox.open { opacity: 1; visibility: visible; }
.lb-stage { position: relative; width: min(1180px, 92vw); flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; margin-top: 20px; }
#lb-img { max-width: 100%; max-height: 100%; object-fit: contain; opacity: 1; }
#lb-cap { position: absolute; left: 0; bottom: -34px; font-family: var(--serif); font-style: italic; color: rgba(246,243,238,.7); font-size: 15px; }
.lb-ui { position: absolute; top: 18px; right: var(--gutter); left: var(--gutter); display: flex; justify-content: space-between; align-items: center; z-index: 3; }
#lb-count { color: var(--paper); font-size: 11px; letter-spacing: .3em; }
.lb-btn {
  color: var(--paper); font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase;
  padding: 12px 6px; border-bottom: 1px solid transparent; transition: border-color .3s;
}
.lb-btn:hover { border-color: var(--brass); }
.lb-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 54px; height: 54px; border: 1px solid var(--hairline-inv); border-radius: 50%;
  color: var(--paper); font-size: 20px; font-family: var(--serif);
  display: flex; align-items: center; justify-content: center;
  transition: background .35s, border-color .35s;
}
.lb-arrow:hover { background: var(--brass); border-color: var(--brass); }
#lb-prev { left: 18px; }
#lb-next { right: 18px; }
#lb-thumbs { display: flex; gap: 10px; padding: 22px 0 26px; }
.lb-th { width: 74px; height: 52px; overflow: hidden; opacity: .45; transition: opacity .35s, outline .35s; outline: 1px solid transparent; outline-offset: 3px; padding: 0; }
.lb-th.is-on { opacity: 1; outline-color: var(--brass); }
.lb-th img { width: 100%; height: 100%; object-fit: cover; opacity: 1; }

/* ---------- enquiry modal ---------- */
#enquiry {
  position: fixed; inset: 0; z-index: 160; background: rgba(14,13,11,.55);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; visibility: hidden; transition: opacity .45s var(--ease-silk), visibility .45s;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
#enquiry.open { opacity: 1; visibility: visible; }
.enq-panel {
  background: var(--paper); width: min(620px, 100%); max-height: 92vh; overflow-y: auto;
  padding: clamp(34px, 5vw, 56px); position: relative;
  transform: translateY(20px); transition: transform .5s var(--ease-silk);
}
#enquiry.open .enq-panel { transform: none; }
.enq-panel .kicker { display: block; margin-bottom: 14px; }
.enq-panel h3 { font-size: clamp(30px, 4.6vw, 44px); font-weight: 300; line-height: 1.1; }
#enquiry-note { font-family: var(--serif); font-style: italic; color: var(--mute); margin: 12px 0 30px; font-size: 17px; }
#enquiry-close {
  position: absolute; top: 20px; right: 20px; width: 42px; height: 42px;
  font-size: 20px; font-family: var(--serif); border: 1px solid var(--hairline); border-radius: 50%;
  transition: all .35s;
}
#enquiry-close:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.field { margin-bottom: 20px; position: relative; }
.field label { display: block; font-size: 9.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--mute); margin-bottom: 9px; }
.field input, .field select, .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--hairline); background: transparent;
  font-family: var(--sans); font-size: 15px; padding: 10px 2px; color: var(--ink); border-radius: 0;
  transition: border-color .35s;
}
.field textarea { resize: vertical; min-height: 88px; border: 1px solid var(--hairline); padding: 12px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brass); }
.field.has-err input, .field.has-err textarea, .field.has-err select { border-color: #b0563e; }
.err { display: block; font-size: 11.5px; color: #b0563e; margin-top: 7px; font-style: italic; font-family: var(--serif); }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.f-check { display: flex; gap: 14px; align-items: flex-start; }
.f-check input { width: auto !important; margin-top: 3px; accent-color: var(--brass); }
.f-check label { font-size: 12px !important; letter-spacing: .04em !important; text-transform: none !important; color: var(--mute); text-transform: none; }
#enquiry-submit { width: 100%; margin-top: 10px; }
#enquiry-submit[disabled] { opacity: .6; cursor: wait; }
#enquiry-success { text-align: center; padding: 30px 0 10px; }
#enquiry-success .tick {
  width: 64px; height: 64px; border: 1px solid var(--brass); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 26px;
  color: var(--brass); font-size: 24px; font-family: var(--serif);
}
#enquiry-success h4 { font-size: clamp(28px, 4vw, 38px); font-weight: 300; font-style: italic; }
#enquiry-success p { color: var(--mute); margin: 16px auto; max-width: 40ch; font-size: 14px; }
#enquiry-success .ref { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--ink); display: block; margin: 18px 0 28px; }

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  #collection-grid { grid-template-columns: repeat(2, 1fr); }
  .intro-grid, .enq-grid, .nb-grid { grid-template-columns: 1fr; }
  .am { grid-template-columns: 1fr; gap: 34px; }
  .am-flip .am-media { order: 0; }
  .am-img-b { right: 4%; }
  .am-flip .am-img-b { left: 4%; }
  .d-facts { grid-template-columns: repeat(2, 1fr); }
  .d-facts > div:nth-child(4n) { border-right: 1px solid var(--hairline); }
  .d-facts > div:nth-child(2n) { border-right: 0; }
  .d-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 14.5px; }
  .nav-links, .nav-cta { display: none; }
  #menu-btn { display: block; }
  #collection-grid { grid-template-columns: 1fr; }
  #intro-stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat { border-bottom: 1px solid var(--hairline); }
  .stat:nth-last-child(-n+2) { border-bottom: 0; }
  .intro-figures { grid-template-columns: 1fr; }
  .intro-figures .fig-b { margin-top: 0; }
  .row { grid-template-columns: 108px 1fr; grid-template-rows: auto auto; }
  .row-facts { grid-column: 2; }
  .row-right { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .row-price { font-size: 19px; }
  #filters { gap: 20px 24px; padding: 20px 0; }
  .sort-wrap { margin-left: 0; }
  .d-feats { grid-template-columns: 1fr; }
  .d-pn { flex-direction: column; gap: 14px; }
  .lb-arrow { width: 44px; height: 44px; }
  #lb-prev { left: 6px; } #lb-next { right: 6px; }
  #lb-thumbs { display: none; }
  .f-row { grid-template-columns: 1fr; }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 20px; }
}
@media (max-width: 480px) {
  .d-facts { grid-template-columns: 1fr 1fr; }
  .nb { grid-template-columns: 1fr auto; }
  .nb-note { grid-column: 1 / -1; order: 3; }
}
