/* ===========================================================
   Auctus Realty — editorial design system (v3)
   Photography leads. Type: Instrument Serif (display) + Instrument Sans (text/UI).
   Palette: paper, stone, ink, night, with a single restrained sand accent.
   Motion: one hero sequence + scroll-linked reveals (progressive; none when reduced-motion).
   =========================================================== */
:root {
  --paper: #f5f4f1;
  --stone: #e9e7e2;
  --ink: #141414;
  --ink-soft: rgba(20, 20, 20, 0.66);
  --line: rgba(20, 20, 20, 0.16);
  --night: #0e0f10;
  --night-2: #1a1b1d;
  --on-night: #f2f0ec;
  --on-night-soft: rgba(242, 240, 236, 0.7);
  --line-night: rgba(242, 240, 236, 0.18);
  --sand: #b48a5e;
  --sand-deep: #7c5a33;
  --danger: #a3312b;

  --serif: "Instrument Serif", "Times New Roman", Times, serif;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 4vw, 64px);
  --max: 1480px;
  --hdr: 68px;
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 1rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--sand-deep); outline-offset: 3px; }
.on-night :focus-visible, .hdr:not(.is-solid) :focus-visible, .foot :focus-visible, .menu :focus-visible, .lb :focus-visible { outline-color: var(--on-night); }

.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -64px; z-index: 500; background: var(--ink); color: var(--paper); padding: 0.7em 1.2em; font-weight: 500; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(14px, 2vw, 32px); }
.sec { padding-block: clamp(64px, 8vw, 124px); }
.sec--tight { padding-block: clamp(40px, 5.5vw, 84px); }
.sec--stone { background: var(--stone); }
.sec--night { background: var(--night); color: var(--on-night); }
.sec--night p { color: var(--on-night-soft); }

/* ---------- Type ---------- */
.display { font-family: var(--serif); font-size: clamp(2.25rem, 4.4vw, 4rem); line-height: 1.04; letter-spacing: -0.02em; }
.display--m { font-size: clamp(1.9rem, 3.4vw, 3rem); line-height: 1.1; }
.serif-lead { font-family: var(--serif); font-size: clamp(1.2rem, 1.6vw, 1.5rem); line-height: 1.4; letter-spacing: -0.005em; }
.statement { font-family: var(--serif); font-size: clamp(1.6rem, 2.7vw, 2.5rem); line-height: 1.22; letter-spacing: -0.012em; margin: 0; }
em { font-style: italic; }
.muted { color: var(--ink-soft); }
.caption { font-size: 0.78rem; color: var(--ink-soft); margin: 0.7rem 0 0; max-width: 46ch; }
.sec--night .caption { color: var(--on-night-soft); }

/* ---------- Buttons and links ---------- */
.cta {
  display: inline-flex; align-items: center; gap: 1.1em; padding: 1.05em 1.7em; border: 0; cursor: pointer;
  background: var(--ink); color: var(--paper); font-weight: 500; font-size: 0.8125rem; letter-spacing: 0.02em; line-height: 1; text-decoration: none;
  position: relative; isolation: isolate; overflow: hidden; transition: color 0.4s;
}
.cta::before { content: ""; position: absolute; inset: 0; background: var(--sand-deep); transform: translateY(101%); transition: transform 0.55s var(--ease); z-index: -1; }
.cta::after { content: ""; width: 1.7em; height: 1px; background: currentColor; transition: width 0.45s var(--ease); }
.cta:hover::before { transform: none; }
.cta:hover::after { width: 2.6em; }
.cta--light { background: var(--paper); color: var(--ink); }
.cta--light::before { background: var(--stone); }
.cta--light:hover { color: var(--ink); }
.cta--ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px currentColor; }
.cta--ghost::before { background: var(--paper); }
.cta--ghost:hover { color: var(--ink); }
.cta--block { width: 100%; justify-content: space-between; }
.tlink { text-decoration: none; font-weight: 500; padding-bottom: 0.25em; background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat; transition: background-size 0.45s var(--ease); display: inline-block; }
.tlink:hover { background-size: 0 1px; background-position: right bottom; }

/* ---------- Header + menu ---------- */
.hdr { position: fixed; inset: 0 0 auto 0; z-index: 300; height: var(--hdr); color: var(--on-night); transition: background-color 0.4s, color 0.4s, transform 0.5s var(--ease), box-shadow 0.4s; }
.hdr.is-solid { background: rgba(245, 244, 241, 0.9); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
@supports (backdrop-filter: blur(1px)) { .hdr.is-solid { background: rgba(245, 244, 241, 0.78); backdrop-filter: saturate(1.5) blur(18px); } }
.hdr.is-hidden { transform: translateY(-101%); }
.hdr.is-open { background: transparent; color: var(--on-night); box-shadow: none; backdrop-filter: none; transform: none; }
.hdr__bar { height: 100%; padding-inline: var(--gutter); display: flex; align-items: center; gap: 28px; }
.logo { text-decoration: none; display: inline-flex; align-items: baseline; gap: 0.5em; margin-right: auto; }
.logo__mark { font-family: var(--serif); font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1; }
.logo__sub { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.04em; opacity: 0.8; }
.hdr__quick { display: flex; gap: clamp(20px, 3vw, 44px); }
.hdr__quick a { text-decoration: none; font-size: 0.8125rem; letter-spacing: 0.02em; font-weight: 500; padding-block: 0.4em; background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; transition: background-size 0.45s var(--ease); }
.hdr__quick a:hover, .hdr__quick a[aria-current="page"] { background-size: 100% 1px; }
.menu-btn { display: inline-flex; align-items: center; gap: 0.8em; background: none; border: 0; padding: 0.6em 0; cursor: pointer; font-weight: 500; font-size: 0.8125rem; letter-spacing: 0.02em; }
.menu-btn__icon { width: 30px; height: 10px; position: relative; }
.menu-btn__icon::before, .menu-btn__icon::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform 0.5s var(--ease), top 0.5s var(--ease); }
.menu-btn__icon::before { top: 0; }
.menu-btn__icon::after { top: 9px; }
.hdr.is-open .menu-btn__icon::before { top: 4px; transform: rotate(20deg); }
.hdr.is-open .menu-btn__icon::after { top: 4px; transform: rotate(-20deg); }

.menu { position: fixed; inset: 0; z-index: 250; background: var(--night); color: var(--on-night); clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path 0.8s var(--ease), visibility 0s 0.8s; overflow-y: auto; }
.menu.is-open { clip-path: inset(0); visibility: visible; transition: clip-path 0.8s var(--ease); }
.menu__inner { min-height: 100%; padding: calc(var(--hdr) + 5vh) var(--gutter) 6vh; max-width: var(--max); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 6vw; align-items: end; }
.menu__nav a { display: block; text-decoration: none; font-family: var(--serif); font-size: clamp(1.9rem, 4.2vw, 3.4rem); line-height: 1.14; letter-spacing: -0.015em; padding-block: 0.04em; transition: transform 0.6s var(--ease), color 0.3s; }
.menu__nav a:hover, .menu__nav a[aria-current="page"] { transform: translateX(0.35em); color: var(--sand); }
.menu__aside { padding-bottom: 0.6rem; font-size: 0.875rem; }
.menu__aside a { display: block; text-decoration: none; margin-bottom: 0.4em; color: var(--on-night-soft); }
.menu__aside a:hover { color: var(--on-night); }
.menu__lead { color: var(--on-night-soft); margin: 0 0 0.6rem; }
.menu__aside .menu__phone { font-family: var(--serif); font-size: clamp(1.35rem, 2vw, 1.75rem); color: var(--on-night); }
.menu__small { color: var(--on-night-soft); font-size: 0.78rem; margin-top: 1.4rem; }
@media (max-width: 860px) { .hdr__quick { display: none; } .menu__inner { grid-template-columns: 1fr; align-content: space-between; } }

/* ---------- Hero (sticky "curtain": the page slides up over it) ---------- */
.stage { position: relative; }
.hero { position: sticky; top: 0; z-index: 0; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; color: var(--on-night); background: var(--night); }
.hero__media { position: absolute; inset: 0; animation: unveil 2s var(--ease) both; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 100%; animation: settle 2.8s var(--ease) both; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(14, 15, 16, 0.5) 0%, rgba(14, 15, 16, 0.08) 26%, rgba(14, 15, 16, 0.18) 48%, rgba(14, 15, 16, 0.86) 100%); }
.hero__inner { position: absolute; z-index: 2; inset: 0; padding: calc(var(--hdr) + 24px) var(--gutter) clamp(28px, 4.4vw, 60px); display: flex; flex-direction: column; justify-content: flex-end; max-width: var(--max); margin-inline: auto; }
.hero__title { font-family: var(--serif); font-size: clamp(2.5rem, 5.3vw, 4.75rem); line-height: 1; letter-spacing: -0.024em; }
.hero__title .ln { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.hero__title .ln > span { display: block; animation: rise 1.4s var(--ease) both; animation-delay: 0.5s; }
.hero__title .ln:nth-child(2) > span { animation-delay: 0.68s; }
.hero__foot { display: flex; flex-wrap: wrap; gap: 24px 56px; align-items: end; margin-top: clamp(24px, 3.4vw, 46px); padding-top: clamp(18px, 2vw, 28px); border-top: 1px solid rgba(242, 240, 236, 0.32); animation: fade 1.2s 1.1s both; }
.hero__lede { max-width: 46ch; flex: 0 1 46ch; margin: 0; color: rgba(242, 240, 236, 0.82); font-size: clamp(0.9rem, 1vw, 1rem); }
.hero__scroll { position: absolute; z-index: 2; right: var(--gutter); top: 50%; width: 1px; height: 84px; background: rgba(242, 240, 236, 0.28); overflow: hidden; animation: fade 1.2s 1.6s both; }
.hero__scroll::after { content: ""; position: absolute; inset: 0; background: var(--on-night); transform: translateY(-100%); animation: drop 2.6s 2s var(--ease) infinite; }
.curtain { position: relative; z-index: 2; background: var(--paper); }
@keyframes unveil { from { clip-path: inset(7% 5% 7% 5%); } to { clip-path: inset(0 0 0 0); } }
@keyframes settle { from { transform: scale(1.18); } to { transform: scale(1); } }
@keyframes rise { from { transform: translateY(108%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes drop { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
@media (max-width: 760px) { .hero__scroll { display: none; } }
@media (max-width: 640px) {
  .hero__inner { padding-bottom: 88px; }
  .hero__title { font-size: clamp(2.4rem, 11vw, 3.3rem); }
  .hero__lede { display: none; }
  .hero__foot { margin-top: 22px; }
  .hero__media img { object-position: 50% 100%; }
  .hero::after { background: linear-gradient(180deg, rgba(14, 15, 16, 0.55) 0%, rgba(14, 15, 16, 0.1) 30%, rgba(14, 15, 16, 0.4) 55%, rgba(14, 15, 16, 0.9) 100%); }
}

/* ---------- Intro (statement + portrait photograph) ---------- */
.intro { align-items: center; row-gap: 48px; }
.intro__figure { grid-column: 1 / 6; margin: 0; }
.intro__figure .frame { aspect-ratio: 3 / 4; }
.intro__text { grid-column: 7 / 13; }
.intro__text .tlink { margin-top: 2.4rem; }
@media (max-width: 860px) { .intro__figure, .intro__text { grid-column: 1 / -1; } .intro__figure { max-width: 420px; } }

.frame { position: relative; overflow: hidden; background: var(--stone); }
.frame img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Showcase: current listings (data-driven) ---------- */
.showcase__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; padding-bottom: clamp(24px, 3vw, 40px); }
.showcase__count { margin: 0; color: var(--ink-soft); max-width: 30ch; font-size: 0.875rem; }
.panel { position: relative; display: block; height: min(94vh, 1000px); height: min(94svh, 1000px); min-height: 560px; color: var(--on-night); background: var(--night); overflow: hidden; text-decoration: none; }
.panel + .panel { margin-top: 6px; }
.panel__media { position: absolute; inset: 0; }
.panel__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; transition: transform 1.8s var(--ease); }
.panel:hover .panel__media img { transform: scale(1.045); }
.panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 15, 16, 0.32) 0%, rgba(14, 15, 16, 0) 30%, rgba(14, 15, 16, 0.2) 52%, rgba(14, 15, 16, 0.86) 100%); }
.panel__body { position: absolute; z-index: 2; inset: auto 0 0 0; padding: var(--gutter); display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 32px 6vw; align-items: end; max-width: var(--max); margin-inline: auto; }
.panel__place { margin: 0 0 0.8rem; font-size: 0.8125rem; font-weight: 500; color: rgba(242, 240, 236, 0.85); }
.panel__title { font-family: var(--serif); font-size: clamp(2rem, 4.6vw, 4rem); line-height: 1.02; letter-spacing: -0.022em; }
.panel__facts { margin: 0; padding: 0.3rem 1.2rem; background: rgba(14, 15, 16, 0.46); }
@supports (backdrop-filter: blur(1px)) { .panel__facts { backdrop-filter: blur(12px); } }
.panel__facts div { display: flex; justify-content: space-between; gap: 20px; padding-block: 0.75rem; border-top: 1px solid rgba(242, 240, 236, 0.22); font-size: 0.84rem; }
.panel__facts div:first-child { border-top: 0; }
.panel__facts dt { color: rgba(242, 240, 236, 0.78); }
.panel__facts dd { margin: 0; font-weight: 500; text-align: right; }
.panel__go { display: inline-block; margin-top: 1.1rem; font-size: 0.8125rem; font-weight: 500; padding-bottom: 0.25em; background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat; transition: background-size 0.45s var(--ease); }
.panel:hover .panel__go { background-size: 0 1px; background-position: right bottom; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 1rem; }
.tag { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.02em; padding: 0.35em 0.8em; box-shadow: inset 0 0 0 1px currentColor; }
@media (max-width: 860px) { .panel__body { grid-template-columns: 1fr; } .panel { min-height: 620px; } }

.void { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(14px, 2vw, 32px); align-items: center; row-gap: 40px; }
.void__text { grid-column: 1 / 7; }
.void__text h3 { font-family: var(--serif); font-size: clamp(1.9rem, 3.4vw, 3rem); line-height: 1.1; letter-spacing: -0.018em; margin-bottom: 1rem; }
.void__text p { max-width: 40ch; color: var(--ink-soft); }
.void__figure { grid-column: 8 / 13; margin: 0; }
.void__figure .frame { aspect-ratio: 4 / 5; }
@media (max-width: 860px) { .void__text, .void__figure { grid-column: 1 / -1; } }

/* ---------- Listing photography band (data-driven) ---------- */
.band { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(14px, 2vw, 32px); align-items: start; }
.band figure { margin: 0; }
.band a { display: block; text-decoration: none; }
.band .frame { transition: transform 1s var(--ease); }
.band figure:nth-child(4n + 1) { grid-column: 1 / 6; } .band figure:nth-child(4n + 1) .frame { aspect-ratio: 4 / 5; }
.band figure:nth-child(4n + 2) { grid-column: 7 / 11; margin-top: clamp(32px, 7vw, 110px); } .band figure:nth-child(4n + 2) .frame { aspect-ratio: 3 / 4; }
.band figure:nth-child(4n + 3) { grid-column: 2 / 7; } .band figure:nth-child(4n + 3) .frame { aspect-ratio: 1 / 1; }
.band figure:nth-child(4n + 4) { grid-column: 8 / 13; margin-top: clamp(16px, 4vw, 64px); } .band figure:nth-child(4n + 4) .frame { aspect-ratio: 4 / 3; }
.band a:hover .frame { transform: translateY(-6px); }
.band figcaption { font-size: 0.78rem; color: var(--ink-soft); margin-top: 0.7rem; }
@media (max-width: 760px) { .band { grid-template-columns: 1fr 1fr; } .band figure:nth-child(n) { grid-column: auto; margin-top: 0; } .band figure:nth-child(3n + 1) { grid-column: 1 / -1; } }

/* ---------- City story (decorative photography + data-driven locations) ---------- */
.city__head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(28px, 3.5vw, 52px); }
.city__head p { max-width: 34ch; color: var(--ink-soft); margin: 0; font-size: 0.9375rem; }
.collage { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(120px, 15vw, 240px); gap: clamp(10px, 1.4vw, 22px); }
.collage figure { margin: 0; position: relative; overflow: hidden; background: var(--stone); }
.collage img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.collage figure:hover img { transform: scale(1.04); }
.collage figcaption { position: absolute; left: 14px; bottom: 12px; color: var(--on-night); font-size: 0.75rem; font-weight: 500; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5); }
.collage__a { grid-column: 1 / 9; grid-row: span 2; }
.collage__b { grid-column: 9 / 13; grid-row: span 4; }
.collage__c { grid-column: 1 / 6; grid-row: span 2; }
.collage__d { grid-column: 6 / 9; grid-row: span 2; }
@media (max-width: 760px) { .collage { grid-auto-rows: 42vw; } .collage__a { grid-column: 1 / -1; } .collage__b { grid-column: 1 / 8; grid-row: span 2; } .collage__c { grid-column: 8 / -1; grid-row: span 2; } .collage__d { grid-column: 1 / -1; } }

.where { margin-top: clamp(44px, 6vw, 88px); border-top: 1px solid var(--line); }
.where__row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 12px clamp(20px, 4vw, 64px); align-items: baseline; padding-block: clamp(16px, 1.8vw, 24px); border-bottom: 1px solid var(--line); }
.where__place { font-family: var(--serif); font-size: clamp(1.5rem, 2.5vw, 2.25rem); line-height: 1.1; letter-spacing: -0.015em; margin: 0; }
.where__detail { margin: 0; color: var(--ink-soft); font-size: 0.875rem; }
.where__links { margin: 0; text-align: right; font-size: 0.875rem; }
.where__intro { margin: 0; padding-block: 1.6rem 0.4rem; color: var(--ink-soft); max-width: 60ch; }
@media (max-width: 760px) { .where__row { grid-template-columns: 1fr; } .where__links { text-align: left; } }

/* ---------- Why Auctus ---------- */
.why { column-gap: clamp(14px, 2vw, 32px); row-gap: 56px; }
.why__title { grid-column: 1 / 7; align-self: start; }
.why__rows { grid-column: 8 / 13; }
.why__row { padding-block: clamp(22px, 2.6vw, 34px); border-top: 1px solid var(--line-night); }
.why__row:last-child { border-bottom: 1px solid var(--line-night); }
.why__row h3 { font-family: var(--serif); font-size: clamp(1.25rem, 1.7vw, 1.6rem); line-height: 1.2; margin-bottom: 0.5rem; }
.why__row p { margin: 0; max-width: 46ch; font-size: 0.9375rem; }
.why .tlink { margin-top: 2rem; }
@media (max-width: 900px) { .why__title, .why__rows { grid-column: 1 / -1; } }

/* ---------- NRI split ---------- */
.split { align-items: center; row-gap: 48px; }
.split__figure { grid-column: 1 / 6; margin: 0; }
.split__figure .frame { aspect-ratio: 4 / 5; }
.split__text { grid-column: 7 / 13; }
.split__text .display--m { margin-bottom: 1.4rem; }
.lines { margin-top: 2.4rem; border-bottom: 1px solid var(--line); }
.lines > div { padding-block: 1.3rem; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 8px 32px; }
.lines h3 { font-family: var(--serif); font-size: 1.25rem; line-height: 1.2; }
.lines p { margin: 0; color: var(--ink-soft); font-size: 0.9375rem; }
@media (max-width: 860px) { .split__figure, .split__text { grid-column: 1 / -1; } .split__figure { max-width: 460px; } .lines > div { grid-template-columns: 1fr; } }

/* ---------- Founder ---------- */
.founder__name { font-family: var(--serif); font-size: clamp(2.25rem, 4.6vw, 4rem); line-height: 1; letter-spacing: -0.025em; margin-left: -0.025em; }
.founder__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 48px); margin: clamp(24px, 3vw, 40px) 0 0; }
.founder__facts div { border-top: 1px solid var(--line); padding-top: 1rem; }
.founder__facts dt { font-size: 0.75rem; color: var(--ink-soft); margin-bottom: 0.3rem; }
.founder__facts dd { margin: 0; font-family: var(--serif); font-size: clamp(1.05rem, 1.4vw, 1.3rem); line-height: 1.25; }
.founder__bio { max-width: 62ch; margin-top: clamp(24px, 3vw, 40px); color: var(--ink-soft); font-size: 0.9375rem; }
@media (max-width: 760px) { .founder__facts { grid-template-columns: 1fr; gap: 1.4rem; } }

/* ---------- Finale (full-bleed enquiry) ---------- */
.finale { position: relative; min-height: 74vh; min-height: 74svh; display: grid; align-items: end; color: var(--on-night); overflow: hidden; background: var(--night); }
.finale__media { position: absolute; inset: 0; }
.finale__media img { width: 100%; height: 100%; object-fit: cover; }
.finale::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 15, 16, 0.5), rgba(14, 15, 16, 0.4) 40%, rgba(14, 15, 16, 0.88)); }
.finale__inner { position: relative; z-index: 2; padding: clamp(56px, 7vw, 104px) var(--gutter) clamp(32px, 4vw, 56px); max-width: var(--max); margin-inline: auto; width: 100%; }
.finale__title { font-family: var(--serif); font-size: clamp(2.1rem, 4.2vw, 3.6rem); line-height: 1.05; letter-spacing: -0.022em; max-width: 14ch; }
.finale__row { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; margin-top: clamp(24px, 3vw, 40px); padding-top: clamp(16px, 1.6vw, 22px); border-top: 1px solid rgba(242, 240, 236, 0.32); }
.finale__phone { font-family: var(--serif); font-size: clamp(1.5rem, 2.4vw, 2.1rem); text-decoration: none; line-height: 1.1; letter-spacing: -0.015em; }
.finale__meta { font-size: 0.84rem; color: rgba(242, 240, 236, 0.8); margin: 0.7rem 0 0; }
.finale__meta a { text-decoration: none; }
.finale__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.foot { position: relative; background: var(--night); color: var(--on-night-soft); padding-top: clamp(48px, 6vw, 88px); overflow: hidden; font-size: 0.875rem; }
.foot__word { position: absolute; left: 50%; bottom: -0.18em; transform: translateX(-50%); font-family: var(--serif); font-size: clamp(5rem, 18vw, 15rem); line-height: 1; letter-spacing: -0.035em; color: rgba(242, 240, 236, 0.045); pointer-events: none; user-select: none; white-space: nowrap; }
.foot__grid { position: relative; display: grid; grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); gap: 40px; }
.foot__lead { font-family: var(--serif); font-size: clamp(1.2rem, 1.6vw, 1.45rem); line-height: 1.25; color: var(--on-night); max-width: 24ch; margin-bottom: 1.3rem; }
.foot__head { color: var(--on-night); font-weight: 500; font-size: 0.8125rem; letter-spacing: 0.02em; margin: 0 0 0.9rem; }
.foot li { margin-bottom: 0.45rem; }
.foot a { text-decoration: none; }
.foot li a:hover { color: var(--on-night); text-decoration: underline; text-underline-offset: 4px; }
.foot__base { position: relative; margin-top: clamp(40px, 5vw, 72px); padding-block: 22px clamp(60px, 9vw, 140px); border-top: 1px solid var(--line-night); font-size: 0.75rem; }
.foot__base p { margin: 0 0 12px; max-width: 80ch; }
.foot__credits { display: flex; flex-wrap: wrap; gap: 4px 24px; color: rgba(242, 240, 236, 0.5); }
.foot__credits a { text-decoration: underline; }
@media (max-width: 900px) { .foot__grid { grid-template-columns: 1fr 1fr; } .foot__intro { grid-column: 1 / -1; } }

/* ---------- Mobile dock ---------- */
.dock { display: none; }
@media (max-width: 640px) {
  .dock { display: grid; grid-template-columns: 1fr 1.4fr; position: fixed; z-index: 280; left: 0; right: 0; bottom: 0; background: var(--night); padding-bottom: env(safe-area-inset-bottom); }
  .dock a { text-align: center; padding: 1em 0; font-size: 0.8125rem; letter-spacing: 0.02em; font-weight: 500; text-decoration: none; color: var(--on-night); }
  .dock__enquire { background: var(--paper); color: var(--ink) !important; }
  body { padding-bottom: 56px; }
}

/* ---------- Inner page heads ---------- */
.ph { padding: calc(var(--hdr) + clamp(32px, 5vw, 80px)) 0 clamp(28px, 3.5vw, 52px); }
.ph__title { font-family: var(--serif); font-size: clamp(2.25rem, 4.8vw, 4rem); line-height: 1.02; letter-spacing: -0.025em; }
.ph__row { display: flex; justify-content: space-between; align-items: end; gap: 28px; flex-wrap: wrap; margin-top: clamp(18px, 2vw, 28px); }
.ph__lede { max-width: 52ch; color: var(--ink-soft); margin: 0; font-size: 1rem; }
.ph__photo { position: relative; height: clamp(240px, 42vw, 540px); overflow: hidden; background: var(--night); }
.ph__photo img { width: 100%; height: 100%; object-fit: cover; }
.ph--dark { background: var(--night); color: var(--on-night); }
.ph--dark .ph__lede { color: var(--on-night-soft); }

/* ---------- Properties page ---------- */
.finder { margin-bottom: clamp(32px, 5vw, 64px); border-block: 1px solid var(--line); padding-block: 18px; }
.finder__top { display: flex; flex-wrap: wrap; align-items: end; gap: 14px 24px; }
.finder__search { flex: 1 1 320px; }
.finder__search input { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--ink); padding: 0.6rem 0; font-size: 1rem; }
.finder__search input:focus { outline: none; box-shadow: 0 1px 0 var(--ink); }
.finder__field { display: grid; gap: 4px; min-width: 130px; }
.finder__field label { font-size: 0.75rem; color: var(--ink-soft); }
.finder select { background: transparent; border: 0; border-bottom: 1px solid var(--ink); padding: 0.5rem 1.4rem 0.5rem 0; font-size: 0.875rem; font-weight: 500; cursor: pointer; }
.finder__more { margin-top: 14px; }
.finder__more summary { cursor: pointer; font-weight: 500; font-size: 0.875rem; padding-block: 0.5rem; list-style: none; display: inline-flex; gap: 0.6em; align-items: center; }
.finder__more summary::-webkit-details-marker { display: none; }
.finder__more summary::before { content: ""; width: 0.55em; height: 0.55em; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(-45deg); transition: transform 0.3s var(--ease); }
.finder__more[open] summary::before { transform: rotate(45deg); }
.finder__panel { display: grid; gap: 22px; padding-block: 16px 8px; }
.finder__group { border: 0; padding: 0; margin: 0; min-width: 0; }
.finder__group legend { font-size: 0.78rem; color: var(--ink-soft); padding: 0; margin-bottom: 8px; }
.finder__opts, .finder__toggles { display: flex; flex-wrap: wrap; gap: 8px; }
.finder__fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px 24px; }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt span { display: inline-block; padding: 0.45em 0.95em; font-size: 0.8125rem; font-weight: 500; box-shadow: inset 0 0 0 1px var(--line); transition: background-color 0.25s, color 0.25s, box-shadow 0.25s; }
.opt em { font-style: normal; opacity: 0.55; margin-left: 0.2em; }
.opt:hover span { box-shadow: inset 0 0 0 1px var(--ink); }
.opt input:checked + span { background: var(--ink); color: var(--paper); box-shadow: none; }
.opt input:focus-visible + span { outline: 2px solid var(--sand-deep); outline-offset: 2px; }
.finder__active { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-top: 12px; }
.finder__active:empty { display: none; }
.chip { display: inline-block; text-decoration: none; padding: 0.35em 0.85em; font-size: 0.78rem; font-weight: 500; box-shadow: inset 0 0 0 1px var(--ink); }
.results__count { font-size: 0.8125rem; color: var(--ink-soft); margin: 0 0 28px; }
.results[aria-busy="true"] { opacity: 0.55; transition: opacity 0.2s; }
.nomatch { padding-block: 3rem; max-width: 48ch; }
.nomatch h2 { font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.25rem); line-height: 1.12; margin-bottom: 0.8rem; }.pgrid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(40px, 5vw, 76px) clamp(14px, 2vw, 32px); }
.pcard { position: relative; display: block; }
.pcard__link { display: block; text-decoration: none; }
.pcard__media { position: relative; overflow: hidden; background: var(--stone); }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; transition: transform 1.6s var(--ease); }
.pcard:hover .pcard__media img { transform: scale(1.045); }
.pcard__tags { position: absolute; left: 16px; top: 16px; display: flex; gap: 6px; }
.pcard__tags .tag { background: var(--paper); color: var(--ink); box-shadow: none; }
.pcard__body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; align-items: end; padding-top: 1.1rem; }
.pcard__place { margin: 0 0 0.35rem; font-size: 0.75rem; letter-spacing: 0.02em; font-weight: 500; color: var(--sand-deep); }
.pcard__title { font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.5rem); line-height: 1.08; letter-spacing: -0.018em; }
.pcard__meta { margin: 0.6rem 0 0; color: var(--ink-soft); font-size: 0.84rem; }
.pcard__meta span + span::before { content: ""; display: inline-block; width: 1.4em; height: 1px; background: currentColor; vertical-align: middle; margin: 0 0.7em; opacity: 0.5; }
.pcard__go { font-size: 0.8125rem; font-weight: 500; padding-bottom: 0.25em; background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat; transition: background-size 0.45s var(--ease); }
.pcard:hover .pcard__go { background-size: 0 1px; background-position: right bottom; }
.pcard[data-slot="a"] { grid-column: 1 / -1; } .pcard[data-slot="a"] .pcard__media { aspect-ratio: 21 / 10; }
.pcard[data-slot="b"] { grid-column: 1 / 8; } .pcard[data-slot="b"] .pcard__media { aspect-ratio: 4 / 5; }
.pcard[data-slot="c"] { grid-column: 9 / 13; margin-top: clamp(32px, 8vw, 120px); } .pcard[data-slot="c"] .pcard__media { aspect-ratio: 3 / 4; }
@media (max-width: 860px) { .pcard[data-slot] { grid-column: 1 / -1; margin-top: 0; } .pcard[data-slot] .pcard__media { aspect-ratio: 4 / 5; } .filters__sort { margin-left: 0; } }

/* ---------- Property page ---------- */
.dhero { position: relative; height: 100vh; height: 100svh; min-height: 620px; color: var(--on-night); background: var(--night); overflow: hidden; }
.dhero__media { position: absolute; inset: 0; animation: unveil 1.8s var(--ease) both; }
.dhero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; animation: settle 2.6s var(--ease) both; }
.dhero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(14, 15, 16, 0.5) 0%, rgba(14, 15, 16, 0.02) 28%, rgba(14, 15, 16, 0.2) 50%, rgba(14, 15, 16, 0.84) 100%); }
.dhero__inner { position: absolute; z-index: 2; inset: 0; padding: 0 var(--gutter) clamp(28px, 4vw, 56px); max-width: var(--max); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 28px 6vw; align-items: end; }
.dhero__place { font-weight: 500; font-size: 0.8125rem; margin: 0 0 0.8rem; color: rgba(242, 240, 236, 0.86); }
.dhero__title { font-family: var(--serif); font-size: clamp(2.25rem, 4.8vw, 4rem); line-height: 1.04; letter-spacing: -0.024em; }
.dhero__aside { justify-self: end; text-align: right; }
.dhero__price-label { margin: 0; color: rgba(242, 240, 236, 0.75); font-size: 0.78rem; }
.dhero__price { font-family: var(--serif); font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.1; margin: 0.2rem 0 1.2rem; }
.dhero--plain .dhero__media, .dhero--plain { background: var(--night-2); }
@media (max-width: 860px) { .dhero__inner { grid-template-columns: 1fr; } .dhero__aside { justify-self: start; text-align: left; } }

.dfacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin: 0; border-bottom: 1px solid var(--line); }
.dfacts div { padding: clamp(16px, 1.8vw, 24px) clamp(16px, 2vw, 32px) clamp(16px, 1.8vw, 24px) 0; }
.dfacts div + div { padding-left: clamp(16px, 2vw, 32px); border-left: 1px solid var(--line); }
.dfacts dt { font-size: 0.75rem; color: var(--ink-soft); margin-bottom: 0.3rem; }
.dfacts dd { margin: 0; font-family: var(--serif); font-size: clamp(1.1rem, 1.5vw, 1.35rem); line-height: 1.2; }
@media (max-width: 640px) { .dfacts div + div { border-left: 0; padding-left: 0; } .dfacts div { border-top: 1px solid var(--line); } .dfacts div:first-child { border-top: 0; } }

.dbody { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(40px, 6vw, 96px); align-items: start; padding-block: clamp(40px, 5.5vw, 88px); }
.dbody__main > section + section { margin-top: clamp(40px, 5vw, 68px); }
.dbody h2 { font-family: var(--serif); font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.15; letter-spacing: -0.015em; margin-bottom: 1.1rem; }
.dbody .serif-lead p { color: var(--ink); margin-bottom: 1em; }
.specs, .amenities, .docs { font-size: 0.9375rem; }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 64px); margin: 0; }
.specs div { display: flex; justify-content: space-between; gap: 20px; padding-block: 0.8rem; border-top: 1px solid var(--line); }
.specs dt { color: var(--ink-soft); }
.specs dd { margin: 0; font-weight: 500; text-align: right; }
.specs .is-pending { font-weight: 400; font-style: italic; color: var(--ink-soft); }
@media (max-width: 700px) { .specs { grid-template-columns: 1fr; } }
.amenities { columns: 2; column-gap: 48px; }
.amenities li { break-inside: avoid; padding-block: 0.6rem; border-top: 1px solid var(--line); }
@media (max-width: 620px) { .amenities { columns: 1; } }
.docs { border-bottom: 1px solid var(--line); }
.docs li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 0.95rem; border-top: 1px solid var(--line); }
.docs .is-pending { font-style: italic; color: var(--ink-soft); }
.docs a { font-weight: 500; }
.doc-figure { margin: 0 0 2rem; max-width: 620px; }
.doc-figure a { display: block; background: #fff; }
.doc-figure figcaption { font-size: 0.78rem; color: var(--ink-soft); padding-top: 0.6rem; }

.aside-card { position: sticky; top: calc(var(--hdr) + 24px); background: var(--night); color: var(--on-night); padding: clamp(24px, 2.6vw, 36px); }
.aside-card__label { margin: 0; color: var(--on-night-soft); font-size: 0.78rem; }
.aside-card__price { font-family: var(--serif); font-size: clamp(1.6rem, 2.3vw, 2.1rem); line-height: 1.1; margin: 0.3rem 0 1.3rem; }
.aside-card .cta { width: 100%; justify-content: space-between; margin-bottom: 10px; }
.aside-card__contact { margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px solid var(--line-night); font-size: 0.84rem; color: var(--on-night-soft); }
.aside-card__contact p { margin: 0 0 0.4rem; }
.aside-card__contact a { color: var(--on-night); text-decoration: none; }
.aside-card__contact a:hover { text-decoration: underline; }
.aside-card .tlink { margin-top: 0.9rem; color: var(--on-night); }
@media (max-width: 1000px) { .dbody { grid-template-columns: 1fr; } .aside-card { position: static; } }

.mosaic { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(8px, 1.2vw, 18px); padding-bottom: clamp(40px, 5.5vw, 88px); }
.mosaic__item { position: relative; padding: 0; border: 0; background: var(--stone); overflow: hidden; cursor: zoom-in; display: block; }
.mosaic__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.mosaic__item:hover img { transform: scale(1.04); }
.mosaic__item[data-span="12"] { grid-column: span 12; aspect-ratio: 21 / 9; }
.mosaic__item[data-span="7"] { grid-column: span 7; aspect-ratio: 4 / 3; }
.mosaic__item[data-span="5"] { grid-column: span 5; aspect-ratio: 5 / 6; }
.mosaic__item[data-span="4"] { grid-column: span 4; aspect-ratio: 4 / 5; }
@media (max-width: 760px) { .mosaic__item[data-span] { grid-column: span 12; aspect-ratio: 4 / 3; } .mosaic__item[data-span="4"], .mosaic__item[data-span="5"] { grid-column: span 6; aspect-ratio: 4 / 5; } }
.viewall { position: absolute; z-index: 3; right: var(--gutter); bottom: clamp(28px, 4vw, 56px); }

.dcta { position: relative; min-height: 56vh; display: grid; align-items: center; color: var(--on-night); background: var(--night); overflow: hidden; }
.dcta__media { position: absolute; inset: 0; }
.dcta__media img { width: 100%; height: 100%; object-fit: cover; }
.dcta::after { content: ""; position: absolute; inset: 0; background: rgba(14, 15, 16, 0.6); }
.dcta__inner { position: relative; z-index: 2; padding: clamp(48px, 6vw, 88px) var(--gutter); max-width: var(--max); margin-inline: auto; width: 100%; }
.dcta__title { font-family: var(--serif); font-size: clamp(2rem, 4.2vw, 3.5rem); line-height: 1.05; letter-spacing: -0.022em; max-width: 16ch; margin-bottom: 1.6rem; }
.dcta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Full-screen gallery ---------- */
.lb { position: fixed; inset: 0; z-index: 600; background: rgba(10, 11, 12, 0.98); color: var(--on-night); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; animation: fade 0.35s both; }
.lb[hidden] { display: none; }
.lb__top { display: flex; justify-content: space-between; align-items: center; padding: 16px var(--gutter); font-size: 0.8125rem; }
.lb__title { margin: 0; color: var(--on-night-soft); }
.lb__close { background: none; border: 0; cursor: pointer; font-weight: 500; padding: 0.4em 0; }
.lb__stage { position: relative; display: grid; place-items: center; min-height: 0; padding-inline: clamp(48px, 7vw, 110px); }
.lb__stage img { max-width: 100%; max-height: 100%; object-fit: contain; animation: fade 0.5s both; }
.lb__nav { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: 0; cursor: pointer; width: 56px; height: 56px; }
.lb__nav::before { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; border: solid var(--on-night); border-width: 0 0 1.5px 1.5px; }
.lb__prev { left: clamp(4px, 1.6vw, 24px); } .lb__prev::before { transform: translate(-30%, -50%) rotate(45deg); }
.lb__next { right: clamp(4px, 1.6vw, 24px); } .lb__next::before { transform: translate(-70%, -50%) rotate(-135deg); }
.lb__nav:hover::before { border-color: var(--sand); }
.lb__foot { padding: 14px var(--gutter) 20px; display: grid; gap: 12px; }
.lb__count { margin: 0; text-align: center; font-size: 0.78rem; color: var(--on-night-soft); }
.lb__thumbs { display: flex; gap: 8px; justify-content: center; overflow-x: auto; }
.lb__thumb { flex: 0 0 auto; width: 84px; height: 56px; padding: 0; border: 0; background: var(--night-2); cursor: pointer; opacity: 0.5; transition: opacity 0.3s; }
.lb__thumb img { width: 100%; height: 100%; object-fit: cover; }
.lb__thumb[aria-current="true"], .lb__thumb:hover { opacity: 1; }

/* ---------- Forms, calculator, prose ---------- */
.contact { align-items: start; row-gap: 56px; }
.contact__col { grid-column: 1 / 7; }
.contact__form { grid-column: 8 / 13; }
.contact__phone { font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.3rem); letter-spacing: -0.02em; line-height: 1.1; text-decoration: none; display: inline-block; margin-bottom: 1.3rem; }
.contact__phone:hover { color: var(--sand-deep); }
.details { margin: 0; }
.details { font-size: 0.9375rem; }
.details div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding-block: 0.85rem; border-top: 1px solid var(--line); }
.details dt { color: var(--ink-soft); font-size: 0.78rem; }
.details dd { margin: 0; }
.details a { text-decoration: none; }
.details a:hover { text-decoration: underline; }
.details .is-pending { font-style: italic; color: var(--ink-soft); }
.map { margin-top: 2rem; aspect-ratio: 4 / 3; overflow: hidden; background: var(--stone); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.55) contrast(1.05); }
form.enquiry { display: grid; gap: 1.6rem; }
form.enquiry label, .calc-form label { display: block; font-size: 0.78rem; color: var(--ink-soft); margin-bottom: 0.2rem; }
form.enquiry input, form.enquiry textarea, .calc-form input { width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(20, 20, 20, 0.4); border-radius: 0; padding: 0.5rem 0; font-size: 1rem; transition: border-color 0.3s; }
form.enquiry input:focus, form.enquiry textarea:focus, .calc-form input:focus { outline: none; border-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }
form.enquiry textarea { min-height: 110px; resize: vertical; }
.form-note { font-size: 0.78rem; color: var(--ink-soft); max-width: 46ch; margin: 0; }
@media (max-width: 900px) { .contact__col, .contact__form { grid-column: 1 / -1; } }

.calc { align-items: start; row-gap: 48px; }
.calc-form { grid-column: 1 / 6; display: grid; gap: 1.8rem; }
.calc-result { grid-column: 7 / 13; background: var(--night); color: var(--on-night); padding: clamp(28px, 4vw, 56px); }
.calc-result .emi-label { color: var(--on-night-soft); font-size: 0.8125rem; }
.calc-result .emi-figure { font-family: var(--serif); font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.05; letter-spacing: -0.025em; margin: 0.4rem 0 1.4rem; }
.calc-breakdown { margin: 0; }
.calc-breakdown { font-size: 0.9375rem; }
.calc-breakdown div { display: flex; justify-content: space-between; gap: 16px; padding-block: 0.7rem; border-top: 1px solid var(--line-night); }
.calc-breakdown dt { color: var(--on-night-soft); }
.calc-breakdown dd { margin: 0; font-weight: 500; }
.calc-result .note { color: var(--on-night-soft); font-size: 0.78rem; margin: 1.4rem 0 0; }
@media (max-width: 860px) { .calc-form, .calc-result { grid-column: 1 / -1; } }

.prose { max-width: 70ch; font-size: 0.9375rem; }
.prose h2 { font-family: var(--serif); font-size: clamp(1.25rem, 1.7vw, 1.5rem); line-height: 1.2; margin: 2.2em 0 0.6em; letter-spacing: -0.01em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { list-style: disc; padding-left: 1.3em; margin-bottom: 1.1em; }
.prose li { margin-bottom: 0.4em; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Chat assistant ---------- */
.chat-launcher { position: fixed; right: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 32px); z-index: 270; height: 44px; padding: 0 20px 0 16px; background: var(--ink); color: var(--paper); border: 1px solid var(--line-night); cursor: pointer; display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: 0.8125rem; letter-spacing: 0.02em; transition: background-color 0.3s, transform 0.4s var(--ease); }
.chat-launcher:hover { background: var(--sand-deep); transform: translateY(-2px); }
.chat-launcher svg { width: 20px; height: 20px; }
body.is-locked .chat-launcher, body.is-locked .chat-panel, body.is-locked .dock { display: none; }
@media (max-width: 640px) { .chat-launcher { bottom: 72px; width: 46px; height: 46px; padding: 0; justify-content: center; } .chat-launcher-label { display: none; } }
.chat-panel { position: fixed; right: clamp(12px, 3vw, 32px); bottom: clamp(80px, 9vw, 100px); z-index: 271; width: min(380px, calc(100vw - 24px)); max-height: min(580px, 72vh); background: var(--paper); box-shadow: 0 24px 70px rgba(14, 15, 16, 0.38); display: flex; flex-direction: column; overflow: hidden; animation: chat-in 0.4s var(--ease); }
.chat-panel[hidden] { display: none; }
@keyframes chat-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.chat-head { background: var(--night); color: var(--on-night); padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; }
.chat-head-info { display: flex; align-items: center; gap: 12px; }
.chat-avatar { width: 34px; height: 34px; background: var(--sand-deep); color: #fff; font-weight: 600; font-size: 0.72rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.chat-head strong { font-family: var(--serif); font-size: 1.1rem; font-weight: 400; }
.chat-head span { display: block; font-size: 0.72rem; color: var(--on-night-soft); }
.chat-close { background: none; border: 0; color: var(--on-night); font-size: 1.4rem; cursor: pointer; line-height: 1; padding: 4px 6px; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; font-size: 0.875rem; }
.chat-msg { max-width: 90%; padding: 0.7em 0.95em; line-height: 1.5; }
.chat-msg.bot { background: var(--stone); align-self: flex-start; }
.chat-msg.user { background: var(--ink); color: var(--paper); align-self: flex-end; }
.chat-msg a { text-decoration: underline; }
.chat-quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 12px; }
.chat-quick button { background: transparent; border: 0; box-shadow: inset 0 0 0 1px var(--line); padding: 0.45em 0.9em; font-size: 0.75rem; cursor: pointer; }
.chat-quick button:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; border: 0; border-bottom: 1px solid var(--ink-soft); padding: 0.6em 0.2em; font-size: 0.875rem; background: transparent; }
.chat-form input:focus { outline: none; border-color: var(--ink); }
.chat-form button { background: var(--ink); color: var(--paper); border: 0; width: 42px; height: 42px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.chat-form button:hover { background: var(--sand-deep); }
.chat-form button svg { width: 17px; height: 17px; }

/* ---------- Scroll-linked motion (progressive: supported browsers only, never with reduced motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    [data-reveal] { animation: reveal linear both; animation-timeline: view(); animation-range: entry 4% entry 46%; }
    .parallax img { animation: drift linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; will-change: transform; }
    .hero__inner { animation: hero-out linear both; animation-timeline: scroll(root); animation-range: 0 78vh; }
  }
}
@keyframes reveal { from { opacity: 0; transform: translateY(46px); } to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: scale(1.14) translateY(-4%); } to { transform: scale(1.14) translateY(4%); } }
@keyframes hero-out { to { opacity: 0; transform: translateY(-9vh); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0ms !important; }
  .hero { position: relative; }
}

/* ---------- Saved / favourites (functional styles only) ---------- */
[hidden] { display: none !important; }
.fav { position: absolute; z-index: 2; top: 12px; right: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 0.6em; min-width: 44px; min-height: 44px; padding: 0; border: 0; cursor: pointer; background: var(--paper); color: var(--ink); font: inherit; font-size: 0.8125rem; font-weight: 500; transition: background 0.2s, color 0.2s; }
.fav:hover { background: var(--ink); color: var(--paper); }
.fav[aria-pressed="true"] { color: var(--sand-deep); }
.fav[aria-pressed="true"] path { fill: currentColor; }
.fav[aria-pressed="true"]:hover { color: var(--paper); }
.fav--text { position: static; padding: 0 1.3em; margin-top: 12px; background: transparent; color: inherit; box-shadow: inset 0 0 0 1px currentColor; }
.fav--text:hover { background: var(--on-night); color: var(--night); }
.fav--text[aria-pressed="true"] { color: inherit; background: var(--on-night); color: var(--night); }
.saved-count { display: inline-block; min-width: 1.4em; margin-left: 0.5em; padding: 0.1em 0.4em; background: var(--sand); color: var(--ink); font-size: 0.7rem; font-weight: 600; line-height: 1.3; text-align: center; vertical-align: middle; }
.saved { padding-bottom: clamp(40px, 5.5vw, 84px); }
.saved__sec + .saved__sec { margin-top: clamp(40px, 5vw, 72px); }
.saved__head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; }
.saved__title { font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.25rem); line-height: 1.12; margin: 0; }
.saved__lede, .saved__state { color: var(--ink-soft); margin: 0.6rem 0 1.4rem; font-size: 0.9375rem; }
.saved__notice { padding: 1em 1.2em; margin: 0 0 2rem; box-shadow: inset 0 0 0 1px var(--sand-deep); }
.pgrid--flat { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(40px, 5vw, 72px) clamp(14px, 2vw, 32px); }
.pgrid--flat .pcard__media { aspect-ratio: 4 / 5; }
.pgrid--flat .pcard__title { font-size: clamp(1.3rem, 1.7vw, 1.6rem); }
.pgrid--flat .pcard__body { grid-template-columns: 1fr; }
@media (max-width: 860px) { .pgrid--flat { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pgrid--flat { grid-template-columns: 1fr; } }
/* ---------- Compare (functional styles only) ---------- */
.cmp { position: absolute; z-index: 2; top: 12px; right: 64px; min-height: 44px; padding: 0 1em; border: 0; cursor: pointer; background: var(--paper); color: var(--ink); font: inherit; font-size: 0.8125rem; font-weight: 500; transition: background 0.2s, color 0.2s; }
.cmp:hover, .cmp[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.cmp.is-full { opacity: 0.55; }
.cmp--text { position: static; margin-top: 12px; margin-left: 8px; background: transparent; color: inherit; box-shadow: inset 0 0 0 1px currentColor; }
.cmp--text:hover, .cmp--text[aria-pressed="true"] { background: var(--on-night); color: var(--night); }
.dhero__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 860px) { .dhero__actions { justify-content: flex-start; } }
.tray { position: fixed; z-index: 275; left: var(--gutter); bottom: 16px; display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; max-width: min(560px, calc(100vw - 2 * var(--gutter))); padding: 12px 16px; background: var(--night); color: var(--on-night); box-shadow: 0 12px 40px rgba(14, 15, 16, 0.35); }
.tray__text { margin: 0; font-size: 0.8125rem; flex: 1 1 200px; }
.tray__actions { display: flex; align-items: center; gap: 12px; }
.tray__go { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.2em; background: var(--paper); color: var(--ink); font-size: 0.8125rem; font-weight: 500; text-decoration: none; }
.tray__clear { min-height: 44px; padding: 0 0.6em; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
@media (max-width: 760px) { .tray { left: 0; right: 0; bottom: calc(52px + env(safe-area-inset-bottom)); max-width: none; } }
.cmp-page { padding-bottom: clamp(40px, 5.5vw, 84px); font-size: 0.9375rem; }
.cmp__note { margin: 0 0 1.4rem; padding: 0.9em 1.1em; box-shadow: inset 0 0 0 1px var(--sand-deep); }
.cmp-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-bottom: 1.2rem; }
.cmp-bar__count { margin: 0; color: var(--ink-soft); margin-right: auto; }
.cmp-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cmp-table { width: 100%; min-width: 640px; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.cmp-table > thead th:first-child, .cmp-table > tbody th { width: 9.5rem; }
.cmp-table th, .cmp-table td { text-align: left; vertical-align: top; padding: 0.9rem 1rem 0.9rem 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.cmp-table tbody th { position: sticky; left: 0; z-index: 1; background: var(--paper); font-weight: 500; color: var(--ink-soft); }
.cmp-table thead th { border-top: 0; font-weight: 400; }
.cmp-col__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--stone); margin-bottom: 0.8rem; }
.cmp-col__media img { width: 100%; height: 100%; object-fit: cover; }
.cmp-col__title { display: block; font-family: var(--serif); font-size: 1.2rem; line-height: 1.15; text-decoration: none; margin-bottom: 0.5rem; }
.cmp-col--add { vertical-align: middle; }
.cmp-list { margin: 0; padding-left: 1.1em; }
.cmp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
@media (max-width: 640px) { .cmp-table { min-width: 560px; } .cmp-table > thead th:first-child, .cmp-table > tbody th { width: 6.5rem; } }
/* ---------- Similar properties (functional styles only) ---------- */
.similar { padding-block: clamp(40px, 5vw, 72px); }
.similar__title { font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.25rem); line-height: 1.12; margin: 0; }
.similar__lede { color: var(--ink-soft); margin: 0.6rem 0 1.6rem; font-size: 0.9375rem; }
.pcard__why { list-style: none; margin: 0.9rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.78rem; color: var(--ink-soft); }
.pcard__why li + li::before { content: ""; display: inline-block; width: 1em; height: 1px; background: currentColor; vertical-align: middle; margin-right: 14px; opacity: 0.5; }
/* ---------- Sharing (functional styles only) ---------- */
.share { flex-basis: 100%; margin-top: 8px; text-align: left; }
.share__toggle { list-style: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.3em; cursor: pointer; box-shadow: inset 0 0 0 1px currentColor; font-size: 0.8125rem; font-weight: 500; }
.share__toggle::-webkit-details-marker { display: none; }
.share[open] .share__toggle { background: var(--on-night); color: var(--night); }
.share__panel { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.share__link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.1em; background: var(--paper); color: var(--ink); border: 0; font: inherit; font-size: 0.8125rem; font-weight: 500; text-decoration: none; cursor: pointer; }
.share__link:hover { background: var(--sand); }
.share__url { flex: 1 1 100%; }
.share__url input { width: 100%; min-height: 44px; padding: 0 0.9em; border: 0; background: rgba(242, 240, 236, 0.12); color: inherit; font: inherit; font-size: 0.78rem; }
/* ---------- Enquiry form additions (functional styles only) ---------- */
form.enquiry select { width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(20, 20, 20, 0.4); border-radius: 0; padding: 0.5rem 0; font-size: 1rem; }
form.enquiry select:focus { outline: none; border-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }
form.enquiry [aria-invalid="true"] { border-color: var(--danger); }
.enquiry__error { margin: 0.35rem 0 0; color: var(--danger); font-size: 0.8rem; }
.enquiry__hint { margin: 0.35rem 0 0; color: var(--ink-soft); font-size: 0.78rem; }
.enquiry__status { margin: 0; min-height: 1.4em; color: var(--ink-soft); font-size: 0.875rem; }
.enquiry__status.is-bad { color: var(--danger); }
.enquiry__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.enquiry__done { padding: 2rem 0; max-width: 40rem; }
.enquiry__done h3 { font-family: var(--serif); font-size: clamp(1.4rem, 2.2vw, 1.8rem); line-height: 1.15; margin: 0 0 0.8rem; }
.enquiry__ref { color: var(--ink-soft); }
.enquire { padding-block: clamp(40px, 5vw, 72px); }
.enquire__title { font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.25rem); line-height: 1.12; margin: 0; }
.enquire__lede { color: var(--ink-soft); margin: 0.6rem 0 1.6rem; max-width: 46rem; font-size: 0.9375rem; }
.enquire form.enquiry { max-width: 46rem; }
/* ---------- AI property search (functional styles only) ---------- */
.aisearch { padding-bottom: clamp(40px, 5.5vw, 84px); max-width: 60rem; font-size: 0.9375rem; }
.aisearch__label { margin: 0 0 0.6rem; color: var(--ink-soft); font-size: 0.78rem; }
.aisearch__chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.aisearch__chip { display: inline-flex; align-items: center; gap: 4px; padding: 0.3em 0.4em 0.3em 0.9em; box-shadow: inset 0 0 0 1px var(--ink); font-size: 0.8125rem; }
.aisearch__chip.is-unmatched, .aisearch__chip.is-unchecked { box-shadow: inset 0 0 0 1px var(--danger); color: var(--danger); }
.aisearch__chip-x { min-width: 32px; min-height: 32px; border: 0; background: none; cursor: pointer; font-size: 1.2rem; line-height: 1; }
.aisearch__assume { margin: 0.7rem 0 0; color: var(--ink-soft); font-size: 0.78rem; }
.aisearch__thread { margin: 1.6rem 0; display: grid; gap: 0.9rem; }
.aisearch__msg { margin: 0; padding: 0.9em 1.1em; max-width: 46rem; }
.aisearch__msg--user { justify-self: end; background: var(--ink); color: var(--paper); }
.aisearch__msg--assistant { box-shadow: inset 0 0 0 1px var(--line); }
.aisearch__msg--error { color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger); }
.aisearch__form { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.aisearch__form input { flex: 1 1 18rem; min-height: 48px; padding: 0 0.9em; border: 0; border-bottom: 1px solid rgba(20, 20, 20, 0.4); background: transparent; font-size: 1rem; }
.aisearch__form input:focus { outline: none; border-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }
.aisearch__hint { color: var(--ink-soft); font-size: 0.78rem; margin: 0.8rem 0 0; }
.aisearch__results { margin-top: 2.4rem; }
.aisearch__group { margin-bottom: 2.6rem; }
.aisearch__group-title { font-family: var(--serif); font-size: clamp(1.3rem, 1.9vw, 1.6rem); line-height: 1.15; margin: 0 0 0.4rem; }
.aisearch__group-note { color: var(--ink-soft); margin: 0 0 1.2rem; }
.aisearch__cards { display: grid; gap: 1.4rem; }
.aicard { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 1.2rem; }
.aicard__img { width: 100%; height: 100%; min-height: 150px; object-fit: cover; background: var(--stone); }
.aicard:not(:has(.aicard__img)) { grid-template-columns: 1fr; }
.aicard__title { font-family: var(--serif); font-size: 1.3rem; line-height: 1.15; margin: 0 0 0.3rem; }
.aicard__title a { text-decoration: none; }
.aicard__place { margin: 0; color: var(--sand-deep); font-weight: 500; font-size: 0.78rem; }
.aicard__facts, .aicard__line { margin: 0.4rem 0 0; color: var(--ink-soft); font-size: 0.84rem; }
.aicard__label { font-weight: 500; color: var(--ink); }
.aicard__tbc .aicard__label { color: var(--sand-deep); }
.aicard__miss .aicard__label { color: var(--danger); }
.aicard__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1rem; }
.aisearch__relax { margin: 0; padding-left: 1.2em; max-width: 46rem; }
.aisearch__contact { color: var(--ink-soft); }
.aisearch__clarify { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0.4rem 0 1.2rem; }
.aisearch__clarify-q { flex-basis: 100%; margin: 0; color: var(--ink-soft); }
@media (max-width: 560px) { .aicard { grid-template-columns: 1fr; } .aicard__img { min-height: 180px; } }