/**
 * Domaine — main stylesheet.
 *
 * Structure:
 *   1. Tokens
 *   2. Base + typography
 *   3. Chrome: masthead, drawer, cursor, buttons
 *   4. Front page acts
 *   5. Collection archive
 *   6. Single residence
 *   7. Journal, pages, forms
 *   8. Footer
 *   9. Motion + responsive + reduced motion
 */

/* ─────────────────────────────  1. Tokens  ───────────────────────────── */

:root {
	/* Sky ground. The whole page reads as one continuous light-blue field now —
	   no dark inversion anywhere — so --bone-deep does the work the old
	   near-black stone tones used to do: a slightly deeper wash for section
	   rhythm, never a black block. --stone-900/800/700 stay dark (navy, not
	   black) because a handful of small elements genuinely need a dark fill —
	   a solid button, a hover state, the photo-viewer chrome — but none of
	   them is a full section background any more; grep before reusing them. */
	--paper: #eaf4fb;
	--bone: #dcecf7;
	--bone-deep: #c9e1f0;
	--ink: #17293a;
	--ink-soft: #3c5568;
	/* Slate blue-grey. Measured against BOTH grounds it appears on — paper and
	   the deeper section tint — because a value that clears 4.5:1 on one can
	   still fail on the other: 6.53:1 / 5.37:1. */
	--clay: #3d5a6e;
	--stone-900: #12222f;
	--stone-800: #1b3346;
	--stone-700: #27485d;
	--stone-line: #cfe4f1;
	--bone-dim: #a9c8dd;
	/* Darkened from #c3a878 (2.15:1 on the old paper — already failing before
	   this repaint) toward 3.5:1; a fully AA gold would desaturate the accent
	   past recognising, so this is used only on large serif numerals and kept
	   off anything that is someone's only cue to content. */
	--champagne: #9c7c46;
	--sea: #35505f;

	--fg: var(--ink);
	--bg: var(--paper);

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

	--pad: clamp(1.25rem, 5vw, 6.5rem);
	--pad-y: clamp(4rem, 9vh, 8.5rem);
	--measure: 34rem;
	--maxw: 96rem;

	--ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ──────────────────────────  2. Base + type  ─────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--fg);
	font-family: var(--sans);
	font-size: clamp(1rem, 0.94rem + 0.28vw, 1.125rem);
	font-weight: 350;
	line-height: 1.62;
	letter-spacing: 0.004em;
	overflow-x: hidden;
	font-synthesis-weight: none;
	-webkit-font-smoothing: antialiased;
}

img, svg, canvas, video { max-width: 100%; display: block; }
img { height: auto; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }

h1, h2, h3, h4 {
	font-family: var(--serif);
	font-weight: 380;
	line-height: 1.02;
	letter-spacing: -0.012em;
	margin: 0;
	text-wrap: balance;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--champagne); color: var(--stone-900); }

:focus-visible {
	outline: 2px solid var(--champagne);
	outline-offset: 3px;
}

/* The act marker: lowercase roman numeral in italic serif — the theme's
   substitute for the usual uppercase monospace eyebrow label. */
.act-mark {
	font-family: var(--serif);
	font-style: italic;
	font-size: clamp(1.05rem, 1.4vw, 1.4rem);
	color: var(--clay);
	margin: 0 0 1.6rem;
	letter-spacing: 0.01em;
}
.act-mark--light { color: var(--bone-dim); }
/* ...except inside the sections that no longer invert: the marker needs a
   colour that reads on the light tint they now share with the rest of the
   page, not the pale-on-dark one built for a photograph. */
.tour .act-mark--light,
.atlas .act-mark--light,
.showcase .act-mark--light,
.residence-tour .act-mark--light {
	color: var(--clay);
}

.dot { margin: 0 0.55em; opacity: 0.5; }

.link-underline {
	font-family: var(--serif);
	font-size: 1.35rem;
	font-style: italic;
	text-decoration: none;
	background-image: linear-gradient(currentColor, currentColor);
	background-size: 100% 1px;
	background-repeat: no-repeat;
	background-position: 0 100%;
	padding-bottom: 0.15em;
	transition: background-size 0.5s var(--ease-out);
}
.link-underline:hover { background-size: 0 1px; background-position: 100% 100%; }

.site-main { display: block; }

/* A deeper wash for section rhythm — not an inversion. The whole theme reads
   as one continuous sky now; these just sit a shade further into it. */
.tour, .showcase, .atlas, .footer, .residence-tour {
	background: var(--bone-deep);
	color: var(--ink);
}

/* ───────────────────────────  3. Chrome  ─────────────────────────────── */

.masthead {
	position: fixed;
	inset: 0 0 auto;
	z-index: 60;
	padding: clamp(1rem, 2.2vw, 2rem) var(--pad);
	color: var(--paper);
	transition: background-color 0.5s var(--ease), color 0.5s var(--ease), padding 0.5s var(--ease);
}
.masthead::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(18, 34, 47, 0.5), rgba(18, 34, 47, 0));
	opacity: 1;
	transition: opacity 0.5s var(--ease);
	pointer-events: none;
}
.masthead.is-solid {
	background: var(--paper);
	color: var(--ink);
	padding-top: clamp(0.7rem, 1.2vw, 1.1rem);
	padding-bottom: clamp(0.7rem, 1.2vw, 1.1rem);
	box-shadow: 0 1px 0 rgba(23, 21, 15, 0.08);
}
.masthead.is-solid::before { opacity: 0; }
.masthead.is-hidden { transform: translateY(-102%); }
.masthead { transition: transform 0.55s var(--ease-out), background-color 0.5s var(--ease), color 0.5s var(--ease), padding 0.5s var(--ease); }

/* Interior pages start on paper, so the bar must be legible immediately. */
body:not(.has-hero-webgl) .masthead { color: var(--ink); }
body:not(.has-hero-webgl) .masthead::before {
	background: linear-gradient(to bottom, rgba(250, 248, 243, 0.9), rgba(250, 248, 243, 0));
}

.masthead__inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	max-width: var(--maxw);
	margin-inline: auto;
}

.wordmark { text-decoration: none; display: block; }
.wordmark__name {
	font-family: var(--serif);
	font-size: clamp(1.5rem, 2.1vw, 2rem);
	letter-spacing: 0.14em;
	display: block;
	line-height: 1;
}
.wordmark__sub {
	display: block;
	font-size: 0.72rem;
	letter-spacing: 0.16em;
	text-transform: lowercase;
	opacity: 0.62;
	margin-top: 0.4rem;
}

.nav-list {
	display: flex;
	gap: clamp(1.2rem, 2.4vw, 2.6rem);
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 0.92rem;
	letter-spacing: 0.02em;
}
.nav-list a {
	text-decoration: none;
	position: relative;
	padding-block: 0.4rem;
}
.nav-list a::after {
	content: '';
	position: absolute;
	left: 0; bottom: 0.1rem;
	width: 100%; height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 0.45s var(--ease-out);
}
.nav-list a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-list .sub-menu { display: none; }

.masthead__actions { display: flex; align-items: center; gap: 1rem; }

.btn {
	display: inline-block;
	font-family: var(--sans);
	font-size: 0.86rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	padding: 0.95em 1.7em;
	border: 1px solid currentColor;
	background: transparent;
	color: inherit;
	cursor: pointer;
	transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
	will-change: transform;
}
.btn--ghost:hover { background: currentColor; }
.btn--ghost:hover { color: var(--stone-900); }
.masthead.is-solid .btn--ghost:hover { color: var(--paper); }
.btn--line { border-color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
/* Its only use (the tour section's CTA) now sits on the light tint, not a
   dark one — this is a dark-outline button, not a pale one, despite the name. */
.btn--light { border-color: var(--clay); color: var(--ink); }
.btn--light:hover { background: var(--ink); color: var(--paper); }
.btn--solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--solid:hover { background: var(--sea); border-color: var(--sea); }

.menu-toggle {
	display: none;
	background: none;
	border: 0;
	color: inherit;
	padding: 0.6rem;
	cursor: pointer;
}
.menu-toggle__bars { display: block; width: 26px; }
.menu-toggle__bars i {
	display: block;
	height: 1px;
	background: currentColor;
	margin: 6px 0;
	transition: transform 0.4s var(--ease-out);
}
.menu-toggle[aria-expanded='true'] .menu-toggle__bars i:first-child { transform: translateY(3.5px) rotate(10deg); }
.menu-toggle[aria-expanded='true'] .menu-toggle__bars i:last-child { transform: translateY(-3.5px) rotate(-10deg); }

.drawer {
	position: fixed;
	inset: 0;
	z-index: 55;
	background: var(--bone-deep);
	color: var(--ink);
	display: grid;
	place-items: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.5s var(--ease);
}
.drawer.is-open { opacity: 1; pointer-events: auto; }
.drawer__inner { text-align: center; padding: var(--pad); }
.drawer-list {
	list-style: none;
	margin: 0 0 3rem;
	padding: 0;
	font-family: var(--serif);
	font-size: clamp(2rem, 8vw, 3.6rem);
	line-height: 1.25;
}
.drawer-list a { text-decoration: none; }
.drawer-list .sub-menu { display: none; }
.drawer__contact { color: var(--clay); font-size: 0.95rem; }

/* Custom cursor */
.cursor {
	position: fixed;
	top: 0; left: 0;
	z-index: 90;
	pointer-events: none;
	mix-blend-mode: difference;
	opacity: 0;
	transition: opacity 0.3s var(--ease);
}
.cursor.is-on { opacity: 1; }
.cursor__dot {
	position: absolute;
	width: 9px; height: 9px;
	margin: -4.5px 0 0 -4.5px;
	border-radius: 50%;
	background: #fff;
	transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out), margin 0.35s var(--ease-out);
}
.cursor.is-label .cursor__dot {
	width: 84px; height: 84px;
	margin: -42px 0 0 -42px;
}
.cursor__label {
	position: absolute;
	transform: translate(-50%, -50%);
	color: #000;
	font-size: 0.7rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	opacity: 0;
	transition: opacity 0.25s var(--ease);
	white-space: nowrap;
}
.cursor.is-label .cursor__label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* Image reveal mask — clip-path wipe, not a fade. */
.media-mask {
	display: block;
	overflow: hidden;
	clip-path: inset(0 0 100% 0);
	will-change: clip-path;
}
.media-mask img { transform: scale(1.12); transition: transform 1.4s var(--ease-out); }
.is-revealed .media-mask,
.media-mask.is-revealed { clip-path: inset(0 0 0 0); transition: clip-path 1.15s var(--ease-out); }
.is-revealed .media-mask img,
.media-mask.is-revealed img { transform: scale(1); }
a:hover > .media-mask img { transform: scale(1.045); transition: transform 1.2s var(--ease-out); }

.img-fallback {
	background: linear-gradient(135deg, var(--bone-deep), var(--bone));
	aspect-ratio: 3 / 2;
	width: 100%;
}

.status {
	display: inline-block;
	font-size: 0.72rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	padding: 0.35em 0.85em;
	border: 1px solid currentColor;
	color: var(--sea);
	vertical-align: middle;
	margin-left: 0.9rem;
}
.status--sold, .status--off-market { color: var(--clay); }
.status--reserved { color: var(--champagne); }

/* ────────────────────────  4. Front page acts  ───────────────────────── */

/* Act I — hero */
.hero {
	position: relative;
	height: 100svh;
	min-height: 34rem;
	overflow: hidden;
	background: var(--stone-900);
	color: var(--paper);
	display: flex;
	align-items: flex-end;
}
.hero__canvas,
.hero__fallback {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.hero__canvas { z-index: 2; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero__canvas.is-ready { opacity: 1; }
.hero__fallback { z-index: 1; }
.hero__scrim {
	position: absolute;
	inset: 0;
	z-index: 3;
	background:
		linear-gradient(to top, rgba(18, 34, 47, 0.64) 0%, rgba(18, 34, 47, 0.08) 45%, rgba(18, 34, 47, 0.24) 100%);
}
.hero__copy {
	position: relative;
	text-shadow: 0 2px 20px rgba(8, 15, 22, 0.55), 0 1px 4px rgba(8, 15, 22, 0.4);
	z-index: 4;
	padding: 0 var(--pad) clamp(7rem, 16vh, 11rem);
	max-width: 62rem;
}
.hero__title {
	font-size: clamp(3.1rem, 8.4vw, 8.6rem);
	font-weight: 300;
	line-height: 0.95;
	margin: 0 0 1.4rem;
}
.hero__title .word { display: inline-block; overflow: hidden; vertical-align: bottom; }
.hero__title .word > span { display: inline-block; }
.hero__sub {
	max-width: 32rem;
	color: rgba(250, 248, 243, 0.82);
	font-size: clamp(1rem, 1.15vw, 1.2rem);
}
.hero__ticker {
	position: absolute;
	z-index: 5;
	right: var(--pad);
	bottom: clamp(7rem, 16vh, 11rem);
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
	text-align: right;
}
.hero__tick {
	text-decoration: none;
	opacity: 0.4;
	transition: opacity 0.5s var(--ease);
	line-height: 1.25;
}
.hero__tick.is-active { opacity: 1; }
.hero__tick-name {
	display: block;
	font-family: var(--serif);
	font-size: 1.35rem;
}
.hero__tick-place {
	display: block;
	font-size: 0.76rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--bone-dim);
}
.hero__hint {
	position: absolute;
	z-index: 5;
	left: var(--pad);
	bottom: 2.2rem;
	font-size: 0.72rem;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: rgba(250, 248, 243, 0.6);
	animation: hint 3.4s var(--ease) infinite;
}
@keyframes hint {
	0%, 100% { transform: translateY(0); opacity: 0.35; }
	50% { transform: translateY(6px); opacity: 0.85; }
}

/* Act II — manifesto */
.manifesto {
	padding: var(--pad-y) var(--pad);
	max-width: var(--maxw);
	margin-inline: auto;
}
.manifesto__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	gap: clamp(2rem, 6vw, 7rem);
	align-items: start;
}
.manifesto__lead {
	font-size: clamp(1.9rem, 4vw, 3.7rem);
	line-height: 1.08;
	font-weight: 300;
	max-width: 22ch;
}
.manifesto__body { max-width: var(--measure); padding-top: 0.6rem; color: var(--ink-soft); }

/* Act III — collection */
.collection { padding: 0 var(--pad) var(--pad-y); max-width: var(--maxw); margin-inline: auto; }
.collection__head { padding-block: var(--pad-y) clamp(2rem, 5vw, 4rem); max-width: 40rem; }
.collection__title { font-size: clamp(2rem, 4.2vw, 3.6rem); }

.feature {
	display: grid;
	gap: clamp(1.5rem, 3vw, 3.5rem);
	margin-bottom: clamp(3rem, 6vw, 6rem);
	align-items: end;
}
.feature__media { display: block; text-decoration: none; }
.feature__title { font-size: clamp(1.7rem, 2.8vw, 2.8rem); margin-bottom: 0.6rem; }
.feature__title a { text-decoration: none; }
.feature__place {
	font-size: 0.78rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--clay);
	margin-bottom: 0.9rem;
}
.feature__excerpt { color: var(--ink-soft); max-width: 32rem; }
.feature__price {
	font-family: var(--serif);
	font-size: clamp(1.4rem, 2vw, 1.9rem);
	margin-top: 1.4rem;
}

/* Three different rhythms so no two features look alike. */
.feature--wide { grid-template-columns: minmax(0, 1fr); }
.feature--wide .feature__media { grid-column: 1 / -1; }
.feature--wide .feature__text {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(1.5rem, 4vw, 4rem);
	align-items: start;
}
.feature--offset { grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr); }
.feature--offset .feature__text { order: -1; padding-bottom: 1rem; }
.feature--tall { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); align-items: end; }
.feature--tall .feature__media { max-width: 30rem; }

.spec { margin: 1.4rem 0 0; display: grid; gap: 0.45rem; }
.spec__row { display: flex; justify-content: space-between; gap: 1rem; max-width: 22rem; }
.spec__row dt { color: var(--clay); font-size: 0.86rem; }
.spec__row dd { margin: 0; font-family: var(--serif); font-size: 1.15rem; }
.spec--inline { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem 2.5rem; max-width: 34rem; }

.collection__more { margin-top: clamp(1rem, 3vw, 2rem); }

/* Act IV — 360 tour */
.tour { padding: var(--pad-y) var(--pad); }
.tour__head { max-width: 46rem; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.tour__title { font-size: clamp(2.1rem, 4.6vw, 4rem); margin-bottom: 1.2rem; }
.tour__lede { color: var(--clay); max-width: 38rem; margin-inline: auto; }
.tour__cta { text-align: center; margin-top: clamp(2rem, 4vw, 3rem); }

.pano {
	max-width: 84rem;
	margin-inline: auto;
	position: relative;
}
.pano__stage {
	position: relative;
	aspect-ratio: 16 / 9;
	background: var(--stone-800);
	overflow: hidden;
	cursor: grab;
}
.pano__stage.is-dragging { cursor: grabbing; }
.pano__canvas { width: 100%; height: 100%; display: block; }
.pano:fullscreen .pano__stage,
.pano__stage:fullscreen { aspect-ratio: auto; height: 100vh; }

.pano__loading {
	position: absolute;
	inset: 0;
	display: grid;
	place-content: center;
	gap: 1rem;
	justify-items: center;
	background: var(--stone-800);
	transition: opacity 0.6s var(--ease);
	z-index: 3;
}
.pano__loading.is-done { opacity: 0; pointer-events: none; }
.pano__loading-bar { display: block; width: 180px; height: 2px; background: rgba(250, 248, 243, 0.18); overflow: hidden; }
.pano__loading-bar i { display: block; height: 100%; width: 0; background: var(--champagne); transition: width 0.3s linear; }
.pano__loading-text { font-size: 0.76rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bone-dim); }

.pano__hud {
	position: absolute;
	left: clamp(1rem, 2vw, 2rem);
	top: clamp(1rem, 2vw, 2rem);
	z-index: 2;
	pointer-events: none;
}
.pano__room {
	font-family: var(--serif);
	font-size: clamp(1.4rem, 2.4vw, 2.1rem);
	margin: 0;
	text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6);
	/* This sits on the photograph inside the viewer, not on the section
	   around it — it had no colour of its own and was inheriting the
	   section's text colour, which was fine while that colour was pale (the
	   old dark section) and went unreadable the moment the section became
	   light. The photo underneath didn't change, so this shouldn't have
	   either. */
	color: var(--paper);
}
.pano__hint {
	font-size: 0.72rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(250, 248, 243, 0.7);
	margin: 0.3rem 0 0;
	transition: opacity 0.6s var(--ease);
}
.pano__hint.is-faded { opacity: 0; }

.pano__tools {
	position: absolute;
	right: clamp(1rem, 2vw, 2rem);
	top: clamp(1rem, 2vw, 2rem);
	z-index: 2;
	display: flex;
	gap: 0.5rem;
}
.pano__tool {
	width: 38px; height: 38px;
	display: grid;
	place-items: center;
	background: rgba(19, 18, 16, 0.5);
	border: 1px solid rgba(250, 248, 243, 0.25);
	color: var(--paper);
	font-size: 1.05rem;
	cursor: pointer;
	backdrop-filter: blur(6px);
	transition: background-color 0.3s var(--ease);
}
.pano__tool:hover { background: rgba(250, 248, 243, 0.9); color: var(--stone-900); }

.pano__hotspots { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hotspot {
	position: absolute;
	transform: translate(-50%, -50%);
	pointer-events: auto;
	background: none;
	border: 0;
	color: var(--paper);
	cursor: pointer;
	display: grid;
	justify-items: center;
	gap: 0.5rem;
	padding: 0;
}
.hotspot__ring {
	width: 40px; height: 40px;
	border: 1px solid rgba(250, 248, 243, 0.85);
	border-radius: 50%;
	display: grid;
	place-items: center;
	position: relative;
	transition: transform 0.4s var(--ease-out), background-color 0.4s var(--ease);
}
.hotspot__ring::before {
	content: '';
	width: 6px; height: 6px;
	border-radius: 50%;
	background: var(--paper);
}
.hotspot__ring::after {
	content: '';
	position: absolute;
	inset: -6px;
	border: 1px solid rgba(250, 248, 243, 0.35);
	border-radius: 50%;
	animation: ping 2.6s var(--ease) infinite;
}
@keyframes ping {
	0% { transform: scale(0.85); opacity: 0.9; }
	70%, 100% { transform: scale(1.5); opacity: 0; }
}
.hotspot:hover .hotspot__ring { transform: scale(1.15); background: rgba(250, 248, 243, 0.18); }
.hotspot__label {
	font-size: 0.74rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-shadow: 0 1px 10px rgba(0, 0, 0, 0.8);
	white-space: nowrap;
}

.pano__rooms {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	margin-top: 0;
	background: var(--stone-800);
}
.pano__roombtn {
	flex: 1 1 0;
	min-width: 8rem;
	background: none;
	border: 0;
	border-top: 2px solid transparent;
	color: var(--bone-dim);
	padding: 1.1rem 1.2rem;
	text-align: left;
	cursor: pointer;
	transition: color 0.35s var(--ease), background-color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.pano__roombtn:hover { color: var(--paper); background: var(--stone-700); }
.pano__roombtn.is-active { color: var(--paper); border-top-color: var(--champagne); background: var(--stone-700); }
.pano__roomnum { display: block; font-size: 0.72rem; letter-spacing: 0.18em; opacity: 0.65; }
.pano__roomname { display: block; font-family: var(--serif); font-size: 1.2rem; margin-top: 0.15rem; }

/* Act V — story */
.story {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	align-items: center;
	gap: clamp(2rem, 6vw, 6rem);
	padding: var(--pad-y) var(--pad);
	background: var(--bone);
	max-width: none;
}
.story__media { overflow: hidden; height: clamp(20rem, 60vh, 42rem); }
.story__media img { width: 100%; height: 120%; object-fit: cover; }
.story__text { max-width: var(--measure); color: var(--ink-soft); }
.story__title { font-size: clamp(1.9rem, 3.6vw, 3.2rem); margin-bottom: 1.6rem; color: var(--ink); }

/* Act VI — amenities */
.amenities {
	padding: var(--pad-y) var(--pad);
	max-width: var(--maxw);
	margin-inline: auto;
	display: grid;
	grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.35fr);
	gap: clamp(2rem, 6vw, 6rem);
	align-items: start;
}
.amenities__title { font-size: clamp(1.9rem, 3.4vw, 3rem); margin-bottom: 1.2rem; }
.amenities__note { color: var(--clay); max-width: 22rem; }
.amenities__list { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.amenity {
	display: grid;
	grid-template-columns: 4rem minmax(0, 1fr) auto;
	gap: 0 clamp(1rem, 2.5vw, 2.5rem);
	align-items: baseline;
	padding: clamp(1.1rem, 2vw, 1.7rem) 0;
	background-image: linear-gradient(var(--bone-deep), var(--bone-deep));
	background-size: 100% 1px;
	background-repeat: no-repeat;
	background-position: 0 100%;
}
.amenity:last-child { background-image: none; }
.amenity__num { font-family: var(--serif); font-size: 1.05rem; color: var(--champagne); }
.amenity__name { font-size: clamp(1.35rem, 2.4vw, 2.1rem); font-weight: 350; }
.amenity__name a { text-decoration: none; }
.amenity__desc { grid-column: 2; color: var(--clay); font-size: 0.95rem; margin: 0.35rem 0 0; max-width: 38rem; }
.amenity__count { color: var(--clay); font-size: 0.8rem; letter-spacing: 0.08em; }

/* Act VII — horizontal showcase */
.showcase { overflow: hidden; }
.showcase__pin { min-height: 100svh; display: flex; align-items: center; }
.showcase__track {
	display: flex;
	align-items: center;
	gap: clamp(1.5rem, 4vw, 4rem);
	padding-inline: var(--pad);
	will-change: transform;
}
.panel { flex: 0 0 auto; }
.showcase__intro { max-width: 26rem; }
.showcase__title { font-size: clamp(2rem, 4vw, 3.4rem); margin-bottom: 1rem; }
.showcase__note { color: var(--clay); }
.panel--property { width: clamp(17rem, 26vw, 25rem); }
.panel__media { position: relative; display: block; overflow: hidden; }
.panel__media img { transition: transform 1.1s var(--ease-out); }
.panel__media:hover img { transform: scale(1.05); }
.panel__media::before {
	content: '';
	position: absolute;
	inset: 0 auto auto 0;
	width: 7rem; height: 5rem;
	background: linear-gradient(150deg, rgba(10, 9, 7, 0.55), rgba(10, 9, 7, 0));
	pointer-events: none;
	z-index: 1;
}
.panel__index {
	position: absolute;
	z-index: 2;
	left: 1rem; top: 1rem;
	font-family: var(--serif);
	font-size: 1.1rem;
	color: var(--paper);
}
.panel__meta { padding-top: 1.1rem; }
.panel__title { font-size: 1.6rem; }
.panel__title a { text-decoration: none; }
.panel__place { color: var(--clay); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; margin: 0.4rem 0 0.5rem; }
.panel__price { font-family: var(--serif); font-size: 1.25rem; margin: 0; }
.showcase__end { width: 20rem; }
.showcase__endlink {
	font-family: var(--serif);
	font-size: clamp(1.6rem, 2.6vw, 2.4rem);
	text-decoration: none;
	display: inline-block;
}
.showcase__endlink span { display: inline-block; transition: transform 0.5s var(--ease-out); }
.showcase__endlink:hover span { transform: translateX(0.5rem); }

/* Act VIII — the atlas */
.atlas {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
	gap: clamp(2rem, 5vw, 5rem);
	padding: var(--pad-y) var(--pad);
	align-items: center;
}
.atlas__title { font-size: clamp(1.9rem, 3.4vw, 3rem); margin-bottom: 2rem; }
.atlas__list { list-style: none; margin: 0; padding: 0; }
.atlas__list li {
	background-image: linear-gradient(var(--stone-line), var(--stone-line));
	background-size: 100% 1px;
	background-repeat: no-repeat;
	background-position: 0 100%;
}
.atlas__list a {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 0.2rem 1rem;
	padding: 1rem 0;
	text-decoration: none;
	transition: padding-left 0.4s var(--ease-out), color 0.4s var(--ease);
	color: var(--clay);
}
.atlas__list a:hover, .atlas__list a.is-active { padding-left: 0.8rem; color: var(--ink); }
.atlas__name { font-family: var(--serif); font-size: 1.35rem; color: var(--ink); }
.atlas__place { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; grid-column: 1; }
.atlas__coords { grid-row: 1 / span 2; align-self: center; font-size: 0.78rem; letter-spacing: 0.06em; opacity: 0.65; }
.atlas__canvas-wrap { position: relative; }
.atlas__canvas { width: 100%; aspect-ratio: 16 / 11; }
.atlas__tip {
	position: absolute;
	transform: translate(-50%, calc(-100% - 14px));
	background: var(--paper);
	color: var(--ink);
	padding: 0.5rem 0.8rem;
	font-size: 0.82rem;
	white-space: nowrap;
	pointer-events: none;
	/* Paper-on-navy had all the contrast this card needed on its own; against
	   the new light map the two grounds sit close enough in lightness that the
	   card needs its own edge to read as a card rather than a smudge. */
	box-shadow: 0 6px 20px rgba(23, 41, 58, 0.14);
}

/* Act IX — advisors */
.advisors { padding: var(--pad-y) var(--pad); max-width: var(--maxw); margin-inline: auto; }
.advisors__head { max-width: 40rem; margin-bottom: clamp(2rem, 5vw, 4rem); }
.advisors__title { font-size: clamp(1.9rem, 3.4vw, 3rem); }
.advisors__row {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(1.2rem, 3vw, 2.6rem);
	align-items: start;
}
.advisor { transform: translateY(var(--lift, 0)); }
.advisor__portrait { display: block; }
.advisor__name { font-size: 1.5rem; margin-top: 1.1rem; }
.advisor__name a { text-decoration: none; }
.advisor__role { color: var(--clay); font-size: 0.9rem; margin: 0.2rem 0 0; }
.advisor__region { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--clay); margin: 0.5rem 0 0; }

/* Act X — journal teaser */
.journal-teaser {
	padding: var(--pad-y) var(--pad);
	background: var(--bone);
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
	gap: clamp(2rem, 5vw, 5rem);
	align-items: start;
}
.journal-teaser__head { grid-column: 1 / -1; max-width: 44rem; }
.journal-teaser__title { font-size: clamp(1.9rem, 3.4vw, 3rem); }
.lead-article__media { display: block; }
.lead-article__cat { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--clay); margin: 1.2rem 0 0.6rem; }
.lead-article__title { font-size: clamp(1.7rem, 2.8vw, 2.5rem); }
.lead-article__title a { text-decoration: none; }
.lead-article__excerpt { color: var(--ink-soft); margin-top: 0.8rem; max-width: 40rem; }
.reading-list { list-style: none; margin: 0; padding: 0; }
.reading-list__item {
	background-image: linear-gradient(var(--bone-deep), var(--bone-deep));
	background-size: 100% 1px;
	background-repeat: no-repeat;
	background-position: 0 100%;
}
.reading-list__item a {
	display: grid;
	gap: 0.3rem;
	padding: 1.3rem 0;
	text-decoration: none;
	transition: padding-left 0.4s var(--ease-out);
}
.reading-list__item a:hover { padding-left: 0.7rem; }
.reading-list__date, .reading-list__time { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--clay); }
.reading-list__title { font-family: var(--serif); font-size: 1.4rem; }

/* ────────────────────────  5. Collection archive  ────────────────────── */

.collection-head, .page-head, .place-head {
	padding: calc(var(--pad-y) + 5rem) var(--pad) clamp(2rem, 4vw, 3.5rem);
	max-width: var(--maxw);
	margin-inline: auto;
}
.collection-head__title, .page-head__title, .place-head__title {
	font-size: clamp(2.6rem, 7vw, 6rem);
	font-weight: 300;
	line-height: 0.96;
}
.collection-head__title .word, .page-head__title .word, .place-head__title .word { display: inline-block; overflow: hidden; vertical-align: bottom; }
.collection-head__title .word > span, .page-head__title .word > span, .place-head__title .word > span { display: inline-block; }
.collection-head__note, .page-head__note, .place-head__desc, .place-head__count {
	color: var(--clay);
	margin-top: 1.2rem;
	max-width: 34rem;
}

.viewbar {
	position: sticky;
	top: 0;
	z-index: 30;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem var(--pad);
	background: var(--paper);
	max-width: none;
	box-shadow: 0 1px 0 var(--bone-deep);
}
.viewbar__filters { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.viewbar select {
	appearance: none;
	background: transparent;
	border: 1px solid var(--bone-deep);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 0.85rem;
	letter-spacing: 0.04em;
	padding: 0.65em 2.2em 0.65em 1em;
	background-image: linear-gradient(45deg, transparent 50%, var(--clay) 50%), linear-gradient(135deg, var(--clay) 50%, transparent 50%);
	background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%;
	background-size: 5px 5px, 5px 5px;
	background-repeat: no-repeat;
	cursor: pointer;
}
.viewbar__views { display: flex; }
.viewbar__view {
	background: none;
	border: 1px solid var(--bone-deep);
	border-left-width: 0;
	color: var(--clay);
	font-family: var(--sans);
	font-size: 0.8rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 0.75em 1.3em;
	cursor: pointer;
	transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}
.viewbar__view:first-child { border-left-width: 1px; }
.viewbar__view.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.collection-body { padding-bottom: var(--pad-y); }
.collection-body__count { padding: 1.5rem var(--pad) 0; color: var(--clay); font-size: 0.85rem; max-width: var(--maxw); margin-inline: auto; }
.results { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.results.is-busy { opacity: 0.35; transition: opacity 0.3s var(--ease); }

.row-property {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: clamp(1.5rem, 4vw, 4.5rem);
	align-items: center;
	padding: clamp(2.5rem, 6vw, 5.5rem) 0;
}
.row-property--flip .row-property__media { order: 2; }
.row-property__media { display: block; }
.row-property__index { font-family: var(--serif); font-size: 1.1rem; color: var(--champagne); margin: 0 0 0.8rem; }
.row-property__place { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--clay); margin: 0 0 0.7rem; }
.row-property__title { font-size: clamp(1.9rem, 3.6vw, 3.2rem); margin-bottom: 0.8rem; }
.row-property__title a { text-decoration: none; }
.row-property__excerpt { color: var(--ink-soft); max-width: 32rem; }
.row-property__price { font-family: var(--serif); font-size: clamp(1.4rem, 2.2vw, 2rem); margin-top: 1.5rem; }

.results--grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2.2rem) clamp(1rem, 2vw, 1.6rem); padding-top: 2rem; }
.sheet__media { display: block; position: relative; overflow: hidden; }
.sheet__media img { transition: transform 1.1s var(--ease-out); }
.sheet__media:hover img { transform: scale(1.04); }
.sheet__status { position: absolute; left: 0.9rem; top: 0.9rem; }
.sheet__status .status { background: rgba(19, 18, 16, 0.55); color: var(--paper); border-color: rgba(250, 248, 243, 0.4); margin: 0; backdrop-filter: blur(4px); }
.sheet__title { font-size: 1.45rem; margin-top: 0.9rem; }
.sheet__title a { text-decoration: none; }
.sheet__place { font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--clay); margin: 0.3rem 0 0.4rem; }
.sheet__price { font-family: var(--serif); font-size: 1.2rem; margin: 0; display: flex; justify-content: space-between; gap: 1rem; }
.sheet__beds { font-family: var(--sans); font-size: 0.8rem; color: var(--clay); align-self: end; }

.pagination { max-width: var(--maxw); margin: 3rem auto 0; padding-inline: var(--pad); }
.pagination ul { list-style: none; display: flex; gap: 0.4rem; margin: 0; padding: 0; }
.pagination a, .pagination span {
	display: inline-grid;
	place-items: center;
	min-width: 2.8rem;
	height: 2.8rem;
	padding-inline: 0.8rem;
	text-decoration: none;
	border: 1px solid var(--bone-deep);
	font-size: 0.9rem;
}
.pagination .current { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ──────────────────────  6. Single residence  ────────────────────────── */

.residence__hero {
	position: relative;
	height: 92svh;
	min-height: 30rem;
	overflow: hidden;
	display: flex;
	align-items: flex-end;
	background: var(--stone-900);
	color: var(--paper);
}
.residence__hero-media { position: absolute; inset: -8% 0; }
.residence__hero-media img { width: 100%; height: 100%; object-fit: cover; }
.residence__hero-scrim {
	position: absolute; inset: 0;
	/* Navy instead of near-black, and thinner: a bright sky photograph read as
	   flat grey under an 0.8-opacity black curtain regardless of how blue the
	   photo itself was. */
	background: linear-gradient(to top, rgba(18, 34, 47, 0.6) 0%, rgba(18, 34, 47, 0.04) 55%, rgba(18, 34, 47, 0.22) 100%);
}
/* Legibility that doesn't depend on the scrim being dark enough for every
   photo: a bright, low-contrast sky (exactly what the new photography looks
   for) can thin the gradient below what the location line needs, since it
   sits higher up the hero where the gradient has already faded. The same
   text-shadow already used for the panorama's room label does the same job
   here, independent of how blue the sky behind it is. */
.residence__hero-copy {
	position: relative;
	padding: 0 var(--pad) clamp(4rem, 10vh, 8rem);
	max-width: 60rem;
	text-shadow: 0 2px 20px rgba(8, 15, 22, 0.65), 0 1px 4px rgba(8, 15, 22, 0.55);
}
.residence__place { font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bone-dim); margin-bottom: 1.2rem; }
.residence__title { font-size: clamp(2.6rem, 7vw, 7rem); font-weight: 300; line-height: 0.95; }
.residence__title .word { display: inline-block; overflow: hidden; vertical-align: bottom; }
.residence__title .word > span { display: inline-block; }
.residence__price { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2.3rem); margin-top: 1.4rem; }
.residence__tourjump {
	position: absolute;
	right: var(--pad);
	bottom: clamp(4rem, 10vh, 8rem);
	font-size: 0.8rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--paper);
	border-bottom: 1px solid rgba(250, 248, 243, 0.4);
	padding-bottom: 0.4rem;
}

.overview {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	gap: clamp(2rem, 6vw, 6rem);
	padding: var(--pad-y) var(--pad);
	max-width: var(--maxw);
	margin-inline: auto;
	align-items: start;
}
.overview__lede { font-family: var(--serif); font-size: clamp(1.35rem, 2.2vw, 1.9rem); line-height: 1.35; color: var(--ink-soft); }
.overview__facts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(1.5rem, 3vw, 2.6rem) clamp(1.5rem, 4vw, 3.5rem);
	margin: 0;
}
.overview__fact dt { color: var(--clay); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 0.5rem; }
.overview__fact dd { margin: 0; font-family: var(--serif); }
.overview__fact dd.is-numeral { font-size: clamp(2.6rem, 5vw, 4.2rem); line-height: 0.9; font-weight: 300; }
.overview__fact dd.is-words { font-size: clamp(1.3rem, 2vw, 1.7rem); line-height: 1.2; }
.overview__fact--wide { grid-column: 1 / -1; }

.gallery {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: clamp(0.8rem, 2vw, 1.6rem);
	padding: 0 var(--pad) var(--pad-y);
	max-width: var(--maxw);
	margin-inline: auto;
}
.gallery__item { margin: 0; }
.gallery__item--full { grid-column: 1 / -1; }
.gallery__item--half-left { grid-column: 1 / span 7; }
.gallery__item--half-right { grid-column: 8 / -1; align-self: end; }
.gallery__item--inset { grid-column: 3 / span 8; }
.gallery__item figcaption { font-size: 0.82rem; color: var(--clay); margin-top: 0.7rem; font-style: italic; font-family: var(--serif); }

.residence-tour { padding: var(--pad-y) var(--pad); }
.residence-tour__head { max-width: 40rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.residence-tour__title { font-size: clamp(2rem, 4vw, 3.4rem); }

.residence-amenities {
	padding: var(--pad-y) var(--pad);
	max-width: var(--maxw);
	margin-inline: auto;
	display: grid;
	grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.4fr);
	gap: clamp(1.5rem, 5vw, 5rem);
}
.residence-amenities__title { font-size: clamp(1.7rem, 3vw, 2.6rem); }
.residence-amenities__list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: clamp(1.5rem, 4vw, 4rem); }
.residence-amenities__list li { break-inside: avoid; display: flex; gap: 1.2rem; align-items: baseline; padding: 0.7rem 0; }
.residence-amenities__list .num { font-family: var(--serif); color: var(--champagne); font-size: 0.95rem; }
.residence-amenities__list .name { font-family: var(--serif); font-size: 1.3rem; }

.residence-story {
	background: var(--bone);
	padding: var(--pad-y) var(--pad);
}
.residence-story__body {
	max-width: 44rem;
	margin-inline: auto;
	font-family: var(--serif);
	font-size: clamp(1.2rem, 1.8vw, 1.5rem);
	line-height: 1.6;
	color: var(--ink-soft);
}
.residence-story .act-mark { max-width: 44rem; margin-inline: auto; }
.residence-story__by { font-style: italic; color: var(--clay); margin-top: 1.6rem; }
.residence-story__plan { max-width: 60rem; margin: clamp(2.5rem, 6vw, 5rem) auto 0; }
.residence-story__plan figcaption { font-family: var(--serif); font-style: italic; color: var(--clay); margin-top: 0.7rem; }

.enquire {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
	gap: clamp(2rem, 5vw, 5rem);
	padding: var(--pad-y) var(--pad);
	max-width: var(--maxw);
	margin-inline: auto;
	align-items: start;
}
.enquire__portrait { display: block; width: 8.5rem; margin-bottom: 1.4rem; }
.enquire__eyebrow { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--clay); }
.enquire__name { font-size: clamp(1.7rem, 3vw, 2.6rem); }
.enquire__name a { text-decoration: none; }
.enquire__role { color: var(--clay); margin-top: 0.3rem; }
.enquire__contact { margin-top: 1rem; font-family: var(--serif); font-size: 1.3rem; }

.nextup { padding: 0 var(--pad) var(--pad-y); max-width: var(--maxw); margin-inline: auto; }
.nextup__title { font-size: clamp(1.5rem, 2.6vw, 2.2rem); margin-bottom: 2rem; }
.nextup__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.2rem, 3vw, 2.6rem); }
.nextup__item a { text-decoration: none; display: block; }
.nextup__item h3 { font-size: 1.5rem; margin-top: 1rem; }
.nextup__item p { color: var(--clay); font-size: 0.9rem; margin-top: 0.3rem; }

/* ────────────────────  7. Journal, pages, forms  ─────────────────────── */

.journal {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 17rem);
	gap: clamp(2rem, 5vw, 5rem);
	max-width: var(--maxw);
	margin-inline: auto;
	padding: 0 var(--pad) var(--pad-y);
}
.entry { padding: clamp(1.8rem, 4vw, 3rem) 0; display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: clamp(1.2rem, 3vw, 2.8rem); align-items: start; }
.entry--lead { grid-template-columns: minmax(0, 1fr); }
.entry--lead .entry__title { font-size: clamp(2rem, 4vw, 3.4rem); }
.entry__media { display: block; }
.entry__meta { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--clay); margin-bottom: 0.7rem; }
.entry__meta a { text-decoration: none; }
.entry__title { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
.entry__title a { text-decoration: none; }
.entry__excerpt { color: var(--ink-soft); margin-top: 0.7rem; max-width: 40rem; }

.journal__aside .widget { margin-bottom: 2.5rem; }
.journal__aside .widget__title { font-size: 1.2rem; margin-bottom: 0.8rem; }
.journal__aside ul { list-style: none; margin: 0; padding: 0; }
.journal__aside li { padding: 0.35rem 0; }

.article { max-width: 100%; }
.article__head { max-width: 52rem; margin-inline: auto; padding: calc(var(--pad-y) + 4rem) var(--pad) clamp(2rem, 4vw, 3rem); }
.article__meta { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--clay); margin-bottom: 1.2rem; }
.article__title { font-size: clamp(2.2rem, 5vw, 4.4rem); font-weight: 300; }
.article__title .word { display: inline-block; overflow: hidden; vertical-align: bottom; }
.article__title .word > span { display: inline-block; }
.article__standfirst { font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.7rem); color: var(--ink-soft); margin-top: 1.4rem; line-height: 1.4; }
.article__media { margin: 0 0 clamp(2rem, 5vw, 4rem); overflow: hidden; max-height: 75vh; }
.article__media img { width: 100%; object-fit: cover; }
.article__body { max-width: 40rem; margin-inline: auto; padding-inline: var(--pad); }
.article__body p, .article__body ul, .article__body ol { font-size: 1.08rem; line-height: 1.75; }
.article__body h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin: 2.5rem 0 1rem; }
.article__body h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); margin: 2rem 0 0.8rem; }
.article__body blockquote {
	margin: 2rem 0;
	padding-left: 1.6rem;
	border-left: 2px solid var(--champagne);
	font-family: var(--serif);
	font-size: 1.4rem;
	font-style: italic;
	color: var(--ink-soft);
}
.article__body img { margin-block: 1.6rem; }
.article__foot, .article__nav { max-width: 40rem; margin: 3rem auto 0; padding-inline: var(--pad); color: var(--clay); font-size: 0.9rem; }
.article__nav { display: flex; justify-content: space-between; gap: 2rem; padding-block: 2rem 0; }
.article__nav a { text-decoration: none; font-family: var(--serif); font-size: 1.15rem; color: var(--ink); }

.about-hero {
	position: relative;
	min-height: 68svh;
	display: flex;
	align-items: flex-end;
	background: var(--stone-900);
	color: var(--paper);
	overflow: hidden;
}
.about-hero__media { position: absolute; inset: -6% 0; }
.about-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.about-hero__scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(18, 34, 47, 0.6), rgba(18, 34, 47, 0.12)); }
.about-hero__copy { position: relative; padding: 0 var(--pad) clamp(3rem, 8vh, 6rem); text-shadow: 0 2px 20px rgba(8, 15, 22, 0.55), 0 1px 4px rgba(8, 15, 22, 0.4); }
.about-hero__title { font-size: clamp(2.4rem, 6vw, 5.4rem); font-weight: 300; }
.about-hero__title .word { display: inline-block; overflow: hidden; vertical-align: bottom; }
.about-hero__title .word > span { display: inline-block; }
.about-body { padding: var(--pad-y) 0; }

.method { padding: 0 var(--pad) var(--pad-y); max-width: var(--maxw); margin-inline: auto; }
.method__title { font-size: clamp(1.9rem, 3.4vw, 3rem); margin-bottom: clamp(2rem, 4vw, 3rem); max-width: 30rem; }
.method__list { list-style: none; margin: 0; padding: 0; }
.method__step {
	display: grid;
	grid-template-columns: 5rem minmax(0, 1fr);
	gap: clamp(1rem, 3vw, 3rem);
	padding: clamp(1.5rem, 3vw, 2.4rem) 0;
	background-image: linear-gradient(var(--bone-deep), var(--bone-deep));
	background-size: 100% 1px;
	background-repeat: no-repeat;
	background-position: 0 100%;
}
.method__step:last-child { background-image: none; }
.method__num { font-family: var(--serif); color: var(--champagne); font-size: 1.1rem; }
.method__step h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); margin-bottom: 0.6rem; }
.method__step p { color: var(--ink-soft); max-width: 42rem; }

.contact {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
	gap: clamp(2rem, 6vw, 6rem);
	padding: calc(var(--pad-y) + 4rem) var(--pad) var(--pad-y);
	max-width: var(--maxw);
	margin-inline: auto;
	align-items: start;
}
.contact__title { font-size: clamp(2.4rem, 5vw, 4.4rem); font-weight: 300; margin-bottom: 1.5rem; }
.contact__title .word { display: inline-block; overflow: hidden; vertical-align: bottom; }
.contact__title .word > span { display: inline-block; }
.contact__body { color: var(--ink-soft); max-width: var(--measure); }
.contact__details { margin-top: 2.5rem; font-family: var(--serif); font-size: 1.25rem; line-height: 1.5; }
.contact__details a { text-decoration: none; }

.enquiry { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem 1.6rem; }
.enquiry__intro, .field--wide, .enquiry__submit, .enquiry__status { grid-column: 1 / -1; }
.enquiry__intro { color: var(--clay); margin: 0; }
.field { margin: 0; display: grid; gap: 0.45rem; }
.field label { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--clay); }
.field input, .field textarea {
	font-family: var(--sans);
	font-size: 1rem;
	color: var(--ink);
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--bone-deep);
	padding: 0.6rem 0;
	transition: border-color 0.4s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); }
.field--honey { position: absolute; left: -9999px; }
.enquiry__status { min-height: 1.4em; font-family: var(--serif); font-size: 1.15rem; }
.enquiry__status.is-error { color: #a03b2a; }

.comments { max-width: 40rem; margin: 4rem auto 0; padding-inline: var(--pad); }
.comments__title { font-size: 1.6rem; margin-bottom: 1.5rem; }
.comments__list { list-style: none; margin: 0 0 2.5rem; padding: 0; }
.comments__list .children { list-style: none; padding-left: 1.5rem; }
.comment-body { padding: 1.2rem 0; }
.comment-form { display: grid; gap: 1rem; }
.comment-form input[type='text'], .comment-form input[type='email'], .comment-form input[type='url'], .comment-form textarea {
	width: 100%;
	font-family: var(--sans);
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--bone-deep);
	padding: 0.6rem 0;
}

.searchform { display: flex; gap: 0.8rem; max-width: 30rem; }
.searchform__input {
	flex: 1;
	font-family: var(--sans);
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--bone-deep);
	padding: 0.6rem 0;
	font-size: 1rem;
	color: inherit;
}
.searchform__submit {
	background: none;
	border: 1px solid currentColor;
	color: inherit;
	font-size: 0.8rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	padding: 0.6em 1.2em;
	cursor: pointer;
}
.result { padding: 1.8rem 0; background-image: linear-gradient(var(--bone-deep), var(--bone-deep)); background-size: 100% 1px; background-repeat: no-repeat; background-position: 0 100%; }
.result__type { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--champagne); margin-bottom: 0.4rem; }
.result__title { font-size: clamp(1.4rem, 2.4vw, 2rem); }
.result__title a { text-decoration: none; }
.result__excerpt { color: var(--ink-soft); margin-top: 0.5rem; max-width: 44rem; }

.notfound { padding: calc(var(--pad-y) + 5rem) var(--pad) var(--pad-y); max-width: 46rem; margin-inline: auto; }
.notfound__title { font-size: clamp(2.4rem, 6vw, 5rem); font-weight: 300; margin-bottom: 1.5rem; }
.notfound__title .word { display: inline-block; overflow: hidden; vertical-align: bottom; }
.notfound__title .word > span { display: inline-block; }
.notfound__body { color: var(--ink-soft); }
.notfound__actions { margin: 2rem 0; }

.nothing { padding: clamp(3rem, 8vw, 6rem) 0; max-width: 40rem; }
.nothing__title { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 1rem; }
.nothing__body { color: var(--ink-soft); margin-bottom: 1.5rem; }

.advisor-single {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	gap: clamp(2rem, 6vw, 6rem);
	padding: calc(var(--pad-y) + 4rem) var(--pad) var(--pad-y);
	max-width: var(--maxw);
	margin-inline: auto;
	align-items: start;
}
.advisor-single__portrait { overflow: hidden; }
.advisor-single__name { font-size: clamp(2.2rem, 4.5vw, 4rem); font-weight: 300; margin-bottom: 1.6rem; }
.advisor-single__name .word { display: inline-block; overflow: hidden; vertical-align: bottom; }
.advisor-single__name .word > span { display: inline-block; }
.advisor-single__bio { color: var(--ink-soft); max-width: var(--measure); }
.advisor-single__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 2rem; margin-top: 2.5rem; }
.advisor-single__facts dt { font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--clay); margin-bottom: 0.4rem; }
.advisor-single__facts dd { margin: 0; font-family: var(--serif); font-size: 1.25rem; }
.advisor-single__facts a { text-decoration: none; }

/* ────────────────────────────  8. Footer  ────────────────────────────── */

.footer { padding: var(--pad-y) var(--pad) 3rem; }
.footer__statement { max-width: var(--maxw); margin: 0 auto clamp(4rem, 10vw, 8rem); }
.footer__eyebrow { font-family: var(--serif); font-style: italic; color: var(--clay); font-size: 1.2rem; margin-bottom: 1.5rem; }
.footer__line {
	display: block;
	font-family: var(--serif);
	font-size: clamp(2.6rem, 9vw, 8.5rem);
	line-height: 0.94;
	font-weight: 300;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: -0.01em;
}
.footer__line .word { display: inline-block; overflow: hidden; vertical-align: bottom; }
.footer__line .word > span { display: inline-block; transition: transform 0.6s var(--ease-out); }
.footer__line:hover .word > span { transform: translateY(-0.06em); }
.footer__arrow { display: inline-block; transition: transform 0.6s var(--ease-out); }
.footer__line:hover .footer__arrow { transform: translateX(0.4em); }

.footer__base {
	max-width: var(--maxw);
	margin-inline: auto;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
	gap: 2rem;
	align-items: end;
	color: var(--clay);
	font-size: 0.9rem;
}
.footer__address { font-family: var(--serif); font-size: 1.1rem; color: var(--ink); }
.footer__tel a { text-decoration: none; }
.footer-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.footer-list a { text-decoration: none; }
.footer-list a:hover { color: var(--ink); }
.footer__colophon { text-align: right; margin: 0; }
.footer__credit { display: block; opacity: 0.6; margin-top: 0.3rem; }

/* ──────────────  9. Motion, responsive, reduced motion  ──────────────── */

[data-reveal] { opacity: 0; transform: translateY(28px); }
[data-reveal].is-revealed {
	opacity: 1;
	transform: none;
	transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

[data-reveal-words] .word > span { transform: translateY(105%); }
[data-reveal-words].is-revealed .word > span {
	transform: none;
	transition: transform 0.95s var(--ease-out);
	transition-delay: calc(var(--i, 0) * 65ms);
}

@media (max-width: 1100px) {
	.advisors__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.results--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.journal { grid-template-columns: minmax(0, 1fr); }
	.journal__aside { border-top: 1px solid var(--bone-deep); padding-top: 2rem; }
}

@media (max-width: 900px) {
	.masthead__nav { display: none; }
	.menu-toggle { display: block; }
	.masthead__actions .btn--ghost { display: none; }

	.manifesto__grid,
	.story,
	.amenities,
	.atlas,
	.overview,
	.enquire,
	.contact,
	.journal-teaser,
	.residence-amenities,
	.advisor-single {
		grid-template-columns: minmax(0, 1fr);
	}
	.story__media { height: 55vw; }
	.feature--offset, .feature--tall, .row-property { grid-template-columns: minmax(0, 1fr); }
	.feature--offset .feature__text { order: 0; }
	.feature--wide .feature__text { grid-template-columns: minmax(0, 1fr); }
	.row-property--flip .row-property__media { order: 0; }
	.residence-amenities__list { columns: 1; }
	.overview__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.gallery__item--half-left, .gallery__item--half-right, .gallery__item--inset { grid-column: 1 / -1; }
	.footer__base { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
	.footer__colophon { text-align: left; }
	.hero__ticker { display: none; }
	.enquiry { grid-template-columns: minmax(0, 1fr); }
	.nextup__row { grid-template-columns: minmax(0, 1fr); }
	.atlas__canvas { aspect-ratio: 4 / 3; }
	.entry { grid-template-columns: minmax(0, 1fr); }

	/* Horizontal showcase falls back to a normal vertical stack. */
	.showcase__pin { min-height: 0; display: block; }
	.showcase__track {
		flex-direction: column;
		align-items: stretch;
		transform: none !important;
		padding-block: var(--pad-y);
		gap: 2.5rem;
	}
	.panel--property, .showcase__intro, .showcase__end { width: auto; max-width: none; }
}

@media (max-width: 600px) {
	.results--grid { grid-template-columns: minmax(0, 1fr); }
	.advisors__row { grid-template-columns: minmax(0, 1fr); }
	.advisor { transform: none; }
	.overview__facts { grid-template-columns: minmax(0, 1fr); }
	.pano__stage { aspect-ratio: 4 / 5; }
	.pano__roombtn { min-width: 50%; }
	.viewbar { flex-direction: column; }
	.spec--inline { grid-template-columns: minmax(0, 1fr); }
	.advisor-single__facts { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}
	[data-reveal], [data-reveal].is-revealed { opacity: 1; transform: none; }
	[data-reveal-words] .word > span { transform: none; }
	.media-mask { clip-path: none; }
	.media-mask img { transform: none; }
	.cursor { display: none; }
	.hero__hint { animation: none; }
	.hotspot__ring::after { animation: none; }
	.showcase__track { transform: none !important; }
	.showcase__pin { min-height: 0; display: block; }
	.showcase__track { flex-direction: column; align-items: stretch; padding-block: var(--pad-y); }
	.panel--property, .showcase__intro, .showcase__end { width: auto; }
}

/* Advisor initial plate — used when no portrait photograph exists. */
.plate {
	display: grid;
	place-items: center;
	aspect-ratio: 5 / 7;
	background:
		radial-gradient(120% 90% at 30% 12%, rgba(255,255,255,0.75), rgba(255,255,255,0) 60%),
		linear-gradient(155deg, var(--bone-deep), var(--bone) 55%, #b8d4e8);
	color: var(--clay);
}
.plate__mark {
	font-family: var(--serif);
	font-size: clamp(2.6rem, 5vw, 4.4rem);
	letter-spacing: 0.06em;
	line-height: 1;
	color: var(--ink);
	opacity: 0.72;
}
.advisor-single__portrait .plate { aspect-ratio: 4 / 5; }
.enquire__portrait .plate { aspect-ratio: 1 / 1; }

/* Status pills sitting on dark photography have to invert. */
.residence__hero .status,
.hero .status,
.showcase .status,
.tour .status {
	color: var(--paper);
	border-color: rgba(250, 248, 243, 0.55);
	background: rgba(19, 18, 16, 0.35);
	backdrop-filter: blur(4px);
}
