/* ==========================================================================
   Character theme
   Tokens > base > layout > components > sections > utilities
   ========================================================================== */

/* Tokens ------------------------------------------------------------------ */
:root {
	--navy: #18204f;
	--navy-deep: #0f1538;
	--ink: #18204f;
	--ink-soft: #4a5070;
	--sage: #a4c29e;
	--sage-dark: #8fac8a;
	--sage-ink: #5f7f5a;      /* sage text on white, AA */
	--blue: #c9d8df;          /* light blue (brand, Oct 2026): backgrounds behind navy text, or accents on navy. Never text on light grounds; never white text on it */
	--blue-soft: #e4ecf0;     /* light blue tint for small panels */
	--blue-ink: #3d5a6c;      /* blue-grey text on light blue (6:1) */
	--bg: #fafafa;          /* page ground: white cards sit on it */
	--paper: #f1f1f1;       /* alternating bands */
	--white: #fff;
	--line: #dcdde3;
	--line-strong: #b9bccb;
	--badge-grey: #e7e7e9;
	--badge-sage: #dce8d9;

	--font-sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
	--font-serif: "Cardo", Georgia, "Times New Roman", serif;

	--step--1: 0.875rem;
	--step-0: 1.0625rem;                                   /* 17px body */
	--step-1: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);      /* card titles */
	--step-2: clamp(1.75rem, 1.4rem + 1.3vw, 2.25rem);     /* H2 */
	--step-3: clamp(2.25rem, 1.6rem + 2.6vw, 3.4375rem);   /* hero */

	--space-1: 0.5rem;
	--space-2: 1rem;
	--space-3: 1.5rem;
	--space-4: 2rem;
	--space-5: 3rem;
	--space-6: clamp(3.5rem, 2.5rem + 4vw, 6rem);         /* section rhythm */

	--container: 82.5rem;    /* 1320px */
	--gutter: clamp(1.25rem, 0.8rem + 2vw, 2.5rem);
	--measure: 68ch;
	/* Where sticky headings stop: clear of the header plus breathing room. */
	--sticky-top: calc(var(--header-h) + 3.5rem);
	--radius: 2px;           /* buttons, inputs */
	--radius-card: 4px;
	--radius-img: 6px;
	--header-h: 5rem;
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--shadow-hover: 0 18px 40px -24px rgb(24 32 79 / 0.35);
}

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

:where(html) {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-h) + 1rem);
}

@media (prefers-reduced-motion: no-preference) {
	:where(html) { scroll-behavior: smooth; }
}

:where(body) {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 400 var(--step-0) / 1.6 var(--font-serif);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

:where(h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd) { margin: 0; }
:where(ul, ol)[class] { list-style: none; padding: 0; }
:where(img, svg, video) { display: block; max-width: 100%; height: auto; }
:where(a) { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
:where(button, input, select, textarea) { font: inherit; color: inherit; }
:where(button) { cursor: pointer; }
:where(address) { font-style: normal; }

:where(h1, h2, h3, h4) {
	font-family: var(--font-sans);
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

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

::selection { background: var(--sage); color: var(--navy-deep); }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: 1rem; top: -4rem;
	z-index: 100;
	padding: 0.75rem 1rem;
	background: var(--navy);
	color: var(--white);
	font-family: var(--font-sans);
	font-weight: 700;
}
.skip-link:focus { top: 1rem; }

/* Layout ------------------------------------------------------------------ */
.container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.section { padding-block: var(--space-6); }
.section--tight { padding-block: calc(var(--space-6) * 0.6); }
.section--flush { padding-block: 0; }
.section--paper { background: var(--paper); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy :where(h1, h2, h3) { color: var(--white); }
/* Two plain-background sections in a row share one gap. */
.section:not(.s-hero, .section--paper, .section--navy, .section--tight, .section--flush) + .section:not(.section--paper, .section--navy, .section--tight, .section--flush) { padding-top: 0; }

/* Type -------------------------------------------------------------------- */
.eyebrow {
	margin-bottom: 0.75rem;
	color: var(--sage-ink);
	font: 700 0.8125rem / 1.3 var(--font-sans);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.section--navy .eyebrow { color: var(--sage); }

.h-hero { font-size: var(--step-3); line-height: 1.08; }
.h-section { font-size: var(--step-2); line-height: 1.12; }
.h-serif {
	font: 700 var(--step-2) / 1.2 var(--font-serif);
	letter-spacing: 0;
}
.h-card {
	font: 700 var(--step-1) / 1.25 var(--font-serif);
	letter-spacing: 0;
}

.lede {
	max-width: 60ch;
	color: var(--ink);
	font-size: 1.1875rem;
	line-height: 1.6;
}

.prose { max-width: var(--measure); }
/* Booking embeds (e.g. /schedule-consultation/) need ~1000px for Calendly's
   side-by-side calendar; the text around them stays at reading width. */
.prose:has(> .calendly-inline-widget) { max-width: 66rem; margin-inline: auto; }
.prose:has(> .calendly-inline-widget) > :not(.calendly-inline-widget) { max-width: var(--measure); margin-inline: auto; }
.prose > * + * { margin-top: 1.1em; }
.prose :where(h2) { margin-top: 2em; font-size: var(--step-2); }
.prose :where(h3) { margin-top: 1.6em; font: 700 var(--step-1) / 1.3 var(--font-serif); letter-spacing: 0; }
.prose :where(ul, ol) { padding-left: 1.25em; }
.prose :where(li + li) { margin-top: 0.4em; }
.prose :where(a) { color: var(--navy); text-decoration-color: var(--sage-dark); }
.prose :where(a:hover) { text-decoration-color: currentColor; }
.prose :where(img) { margin-block: 2em; }
.prose :where(blockquote) {
	padding-left: 1.25em;
	border-left: 2px solid var(--sage);
	font-size: 1.25rem;
	font-style: italic;
}

/* Buttons ----------------------------------------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6em;
	min-height: 3rem;
	padding: 0.7rem 1.4rem;
	border: 1px solid var(--navy);
	border-radius: var(--radius);
	background: var(--navy);
	color: var(--white);
	font: 700 1rem / 1.2 var(--font-serif);
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.1s;
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform 0.25s var(--ease); }
.btn:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
/* Hover: a soft shadow on solid and outlined buttons (no lift). */
.btn:not(.btn--text) { transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.25s var(--ease); }
.btn:not(.btn--text):hover, .btn:not(.btn--text):focus-visible { box-shadow: 0 12px 22px -10px rgb(15 21 56 / 0.5); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

.btn--secondary { background: transparent; color: var(--navy); }
.btn--secondary:hover { background: var(--navy); color: var(--white); }

.btn--light { background: var(--white); border-color: var(--white); color: var(--navy); }
.btn--light:hover { background: var(--paper); border-color: var(--paper); }

.btn--text {
	min-height: 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--sage-ink);
}
.btn--text:hover { background: none; color: var(--navy); }

.btn--sm { min-height: 2.5rem; padding: 0.5rem 1rem; font-size: 0.9375rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center; }

/* Icons ------------------------------------------------------------------- */
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* Dimension rule: the signature divider ------------------------------------ */
.dim-rule {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
	height: 1.5rem;
}
.dim-rule__line {
	position: absolute;
	left: var(--gutter); right: var(--gutter);
	top: 50%;
	height: 1px;
	background: var(--line-strong);
	transform-origin: left;
}
.dim-rule__line::before,
.dim-rule__line::after {
	content: "";
	position: absolute;
	top: -6px;
	width: 1px; height: 13px;
	background: var(--line-strong);
}
.dim-rule__line::before { left: 0; }
.dim-rule__line::after { right: 0; }
.dim-rule__label {
	position: relative;
	padding-inline: 0.75rem;
	background: var(--bg);
	color: var(--ink-soft);
	font: 600 0.6875rem / 1 var(--font-sans);
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

/* Badges ------------------------------------------------------------------ */
.badge {
	display: inline-block;
	padding: 0.3rem 0.5rem;
	background: var(--badge-grey);
	color: var(--navy);
	font: 700 0.625rem / 1 var(--font-sans);
	letter-spacing: 0.05em;
	text-transform: uppercase;
}
.badge--sage { background: var(--badge-sage); }

/* Header ------------------------------------------------------------------ */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s, box-shadow 0.2s;
}
/* The frosted background sits on a layer behind the header. A backdrop-filter
   on the header itself would make it the containing block for the fixed
   mobile menu, squeezing the menu into the header's height. */
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgb(250 250 250 / 0.96); }
@supports (backdrop-filter: blur(8px)) {
	.site-header::before { background: rgb(250 250 250 / 0.86); backdrop-filter: saturate(1.4) blur(10px); }
}
.nav-open .site-header::before { background: var(--bg); }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 32px); }

.site-header__inner {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	height: var(--header-h);
}

.site-logo { flex: none; display: block; }
.site-logo__img { width: 190px; height: auto; }

.site-nav { margin-left: auto; }
.site-nav__list { display: flex; align-items: center; gap: 0.25rem; }
.site-nav__item { position: relative; display: flex; align-items: center; }
.site-nav__link {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	padding: 0.6rem 0.7rem;
	border: 0;
	background: none;
	color: var(--navy);
	font: 600 0.875rem / 1 var(--font-sans);
	letter-spacing: 0.01em;
	text-decoration: none;
	white-space: nowrap;
}
.site-nav__link .icon { width: 0.9rem; height: 0.9rem; transition: transform 0.2s; }
.site-nav__link:hover,
.site-nav__item.is-current > .site-nav__link { color: var(--navy); text-decoration: underline; text-decoration-color: var(--sage); text-decoration-thickness: 2px; text-underline-offset: 0.5em; }
.site-nav__subtoggle {
	display: none;
	padding: 0.25rem;
	border: 0;
	background: none;
	color: var(--navy);
}

.site-nav__sub {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 14rem;
	padding: 0.5rem 0;
	border: 1px solid var(--line);
	background: var(--white);
	box-shadow: var(--shadow-hover);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.18s, transform 0.18s var(--ease), visibility 0.18s;
}
.site-nav__sub .site-nav__link { display: block; padding: 0.65rem 1.1rem; font-weight: 500; }
.site-nav__item.has-sub:hover > .site-nav__sub,
.site-nav__item.has-sub:focus-within > .site-nav__sub,
.site-nav__item.is-open > .site-nav__sub { opacity: 1; visibility: visible; transform: none; }
.site-nav__item.is-open > .site-nav__link .icon { transform: rotate(180deg); }

.site-nav__mobile-extras { display: none; }

.site-header__actions { display: flex; align-items: center; gap: 1rem; }
.site-header__phone {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: var(--navy);
	font: 600 0.875rem / 1 var(--font-sans);
	text-decoration: none;
	white-space: nowrap;
}
/* Same underline as the nav links, on the number only. */
.site-header__phone:hover span,
.site-header__phone:focus-visible span { text-decoration: underline; text-decoration-color: var(--sage); text-decoration-thickness: 2px; text-underline-offset: 0.5em; }
/* Solid navy handset; the whole icon turns sage on hover. */
.site-header__phone .icon { width: 1.4em; height: 1.4em; --icon-fill: var(--navy); color: var(--navy); transition: color 0.2s; }
.site-header__phone:hover .icon,
.site-header__phone:focus-visible .icon { --icon-fill: var(--sage-dark); color: var(--sage-dark); }
/* A short "ringing" wiggle on hover. */
@media (prefers-reduced-motion: no-preference) {
	.site-header__phone:hover .icon,
	.site-header__phone:focus-visible .icon { animation: phone-ring 0.6s var(--ease); }
}
@keyframes phone-ring {
	0%, 100% { transform: rotate(0); }
	15% { transform: rotate(-14deg); }
	30% { transform: rotate(12deg); }
	45% { transform: rotate(-10deg); }
	60% { transform: rotate(8deg); }
	75% { transform: rotate(-4deg); }
}

.nav-toggle {
	display: none;
	width: 2.75rem; height: 2.75rem;
	padding: 0;
	border: 1px solid var(--line);
	background: var(--white);
	position: relative;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
	position: absolute;
	left: 50%;
	width: 1.25rem; height: 1.5px;
	margin-left: -0.625rem;
	background: var(--navy);
	transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav-toggle__bars { top: 50%; }
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; left: 0; margin: 0; }
.nav-toggle__bars::before { transform: translateY(-6px); }
.nav-toggle__bars::after { transform: translateY(6px); }
.nav-open .nav-toggle__bars { background: transparent; }
.nav-open .nav-toggle__bars::before { transform: rotate(45deg); }
.nav-open .nav-toggle__bars::after { transform: rotate(-45deg); }

@media (max-width: 1180px) {
	.site-header__phone span { display: none; }
	/* Laptop widths: tighter nav so every item stays on one line. */
	.site-header__inner { gap: 1rem; }
	.site-logo__img { width: 165px; }
	.site-nav__link { padding-inline: 0.5rem; font-size: 0.8125rem; }
	.site-header__actions { gap: 0.6rem; }
}

@media (max-width: 1023px) {
	:root { --header-h: 4.25rem; }
	.site-logo__img { width: 160px; }
	.nav-toggle { display: block; }
	.site-header__cta, .site-header__phone { display: none; }
	.site-header__actions { margin-left: auto; }

	.site-nav {
		position: fixed;
		inset: var(--header-h) 0 0 0;
		z-index: 40;
		display: flex;
		flex-direction: column;
		margin: 0;
		padding: var(--space-3) var(--gutter) calc(var(--space-5) + env(safe-area-inset-bottom));
		overflow-y: auto;
		background: var(--bg);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-8px);
		transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0.2s;
	}
	.admin-bar .site-nav { top: calc(var(--header-h) + var(--wp-admin--admin-bar--height, 46px)); }
	.nav-open .site-nav { opacity: 1; visibility: visible; transform: none; }
	.nav-open { overflow: hidden; }

	.site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.site-nav__item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
	.site-nav__link { flex: 1; padding: 1.1rem 0; font-size: 1.0625rem; }
	.site-nav__parent { justify-content: space-between; }
	.site-nav__parent .icon { width: 1.25rem; height: 1.25rem; }
	.site-nav__subtoggle { display: inline-flex; padding: 0.75rem; }
	.site-nav__item.is-open > .site-nav__subtoggle .icon { transform: rotate(180deg); }
	.site-nav__link:hover { text-decoration: none; }

	.site-nav__sub {
		position: static;
		flex-basis: 100%;
		display: none;
		min-width: 0;
		padding: 0 0 0.75rem 1rem;
		border: 0;
		background: none;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}
	.site-nav__item.is-open > .site-nav__sub { display: block; }
	.site-nav__item.has-sub:hover > .site-nav__sub { display: none; }
	.site-nav__item.has-sub.is-open:hover > .site-nav__sub { display: block; }
	.site-nav__sub .site-nav__link { padding: 0.6rem 0; font-size: 1rem; }

	.site-nav__mobile-extras {
		display: grid;
		gap: 1rem;
		margin-top: var(--space-4);
	}
	.site-nav__phone {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 0.5rem;
		font: 600 1rem / 1 var(--font-sans);
		color: var(--navy);
		text-decoration: none;
	}
}

/* Page header (simple pages) ---------------------------------------------- */
.page-header { padding-block: var(--space-5) var(--space-4); }
.page-header__title { font-size: var(--step-3); max-width: 22ch; }
.page-header__intro { margin-top: var(--space-3); max-width: 60ch; font-size: 1.1875rem; }

.breadcrumbs {
	margin-bottom: var(--space-3);
	color: var(--ink-soft);
	font: 500 0.8125rem / 1.4 var(--font-sans);
}
.breadcrumbs a { color: var(--ink-soft); text-decoration: none; }
.breadcrumbs a:hover { color: var(--navy); text-decoration: underline; }
.breadcrumbs__sep { margin-inline: 0.5rem; color: var(--line-strong); }
.breadcrumbs .last,
.breadcrumbs [aria-current] { color: var(--navy); }

/* CTA band -----------------------------------------------------------------
   Three styles (Site Settings → Closing band style). The footer is navy, so
   each style hands over to it: a white card straddling the edge (default),
   navy joined to the footer by a hairline, or a darkened photo. */
.cta-band { position: relative; background: var(--navy-deep); color: var(--white); }
.cta-band__inner {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--space-4);
	padding-block: var(--space-6) var(--space-5);
}
.cta-band__eyebrow { color: var(--sage); }
.cta-band__title { color: var(--white); font-size: clamp(2rem, 1.4rem + 2.2vw, 3.25rem); line-height: 1.08; }
.cta-band__text p:not(.eyebrow) { margin-top: 0.75rem; max-width: 52ch; color: rgb(255 255 255 / 0.82); }
.cta-band__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.cta-band__phone { color: var(--white); font: 600 0.9375rem / 1 var(--font-sans); text-decoration-color: var(--sage); text-underline-offset: 0.3em; }

/* Navy: one continuous block with the footer. */
.cta-band--navy .cta-band__inner { border-bottom: 1px solid rgb(255 255 255 / 0.12); }
.cta-band--navy + .site-footer .site-footer__grid { padding-top: var(--space-5); }

/* Card: white panel half over the page, half over the footer. */
.cta-band--card { background: linear-gradient(to bottom, var(--bg) 50%, var(--navy-deep) 50%); color: var(--ink); }
.cta-band--card .cta-band__inner {
	align-items: center;
	padding: clamp(2rem, 1.2rem + 3vw, 3.5rem);
	background: var(--white);
	border: 1px solid var(--line);
	border-top: 3px solid var(--sage);
	border-radius: var(--radius-card);
	box-shadow: 0 30px 60px -30px rgb(15 21 56 / 0.45);
}
.cta-band--card .cta-band__eyebrow { color: var(--sage-ink); }
.cta-band--card .cta-band__title { color: var(--navy); font-size: var(--step-2); }
.cta-band--card .cta-band__text p:not(.eyebrow) { color: var(--ink); }
.cta-band--card .cta-band__phone { color: var(--navy); }
.cta-band--card + .site-footer .site-footer__grid { padding-top: var(--space-5); }
/* The top half continues the page's last section. */
.site-main:has(> .section--paper:last-child) + .cta-band--card { background: linear-gradient(to bottom, var(--paper) 50%, var(--navy-deep) 50%); }
.site-main:has(> .section--navy:last-child) + .cta-band--card { background: var(--navy-deep); }
/* The card lines up with the content edges: the container's gutter becomes its margin. */
.cta-band--card .container.cta-band__inner { width: min(100% - 2 * var(--gutter), var(--container)); max-width: none; }

/* Photo: the left side darkened behind the text. */
.cta-band--photo { overflow: hidden; }
.cta-band__media { position: absolute; inset: 0; }
.cta-band__media img { width: 100%; height: 100%; object-fit: cover; }
.cta-band--photo::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(90deg, rgb(15 21 56 / 0.92) 0%, rgb(15 21 56 / 0.78) 45%, rgb(15 21 56 / 0.3) 100%);
}
.cta-band--photo .cta-band__inner { z-index: 2; flex-direction: column; align-items: flex-start; padding-block: clamp(4rem, 2.5rem + 5vw, 7rem); }
@media (max-width: 640px) {
	.cta-band--photo::before { background: rgb(15 21 56 / 0.82); }
}

/* Footer ------------------------------------------------------------------- */
.site-footer {
	background: var(--navy-deep);
	color: rgb(255 255 255 / 0.78);
	font: 500 0.9375rem / 1.6 var(--font-sans);
}
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--sage); text-underline-offset: 0.3em; }
.site-footer__grid {
	display: grid;
	grid-template-columns: 1.6fr repeat(3, 1fr);
	gap: var(--space-5) var(--space-4);
	padding-block: var(--space-6) var(--space-5);
}
.site-footer__logo img { width: 200px; }
.site-footer__tagline { margin-top: var(--space-3); max-width: 32ch; font-family: var(--font-serif); font-size: 1.0625rem; color: rgb(255 255 255 / 0.85); }
.site-footer__address { margin-top: var(--space-3); }
.site-footer__address a { color: var(--white); font-weight: 600; }
.site-footer__social { display: flex; gap: 0.5rem; margin-top: var(--space-3); }
.site-footer__social a {
	display: grid;
	place-items: center;
	width: 2.5rem; height: 2.5rem;
	border: 1px solid rgb(255 255 255 / 0.25);
	color: var(--white);
}
.site-footer__social a:hover { border-color: var(--sage); }
.site-footer__heading {
	margin-bottom: 1rem;
	color: var(--sage);
	font: 700 0.75rem / 1.3 var(--font-sans);
	letter-spacing: 0.12em;
	text-transform: uppercase;
}
.site-footer__links li + li { margin-top: 0.55rem; }
.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1rem;
	padding-block: var(--space-3);
	border-top: 1px solid rgb(255 255 255 / 0.12);
	font-size: 0.8125rem;
}
.site-footer__legal { display: flex; gap: 1.25rem; }

@media (max-width: 900px) {
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
	.site-footer__grid { grid-template-columns: 1fr; }
}

/* Mobile action bar --------------------------------------------------------- */
.action-bar { display: none; }
@media (max-width: 767px) {
	.action-bar {
		position: fixed;
		inset: auto 0 0 0;
		z-index: 45;
		display: grid;
		grid-template-columns: 1fr 2fr;
		padding-bottom: env(safe-area-inset-bottom);
		background: var(--navy);
		box-shadow: 0 -8px 24px -12px rgb(15 21 56 / 0.4);
		transform: translateY(100%);
		transition: transform 0.3s var(--ease);
	}
	.action-bar.is-visible { transform: none; }
	.action-bar a {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 0.5rem;
		min-height: 3.5rem;
		color: var(--white);
		font: 700 1rem / 1 var(--font-serif);
		text-decoration: none;
	}
	.action-bar__call { border-right: 1px solid rgb(255 255 255 / 0.18); }
	.action-bar__cta { background: var(--white); color: var(--navy) !important; margin: 0.5rem; min-height: 2.5rem !important; }
	.site-footer { padding-bottom: calc(4.5rem + env(safe-area-inset-bottom)); }
	.nav-open .action-bar { transform: translateY(100%); }
}

/* Reveal (JS adds .js to <html>; without JS everything is visible) ---------- */
@media (prefers-reduced-motion: no-preference) {
	.js [data-reveal] {
		opacity: 0;
		transform: translateY(18px);
		transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
		transition-delay: calc(var(--reveal-i, 0) * 80ms);
	}
	.js [data-reveal].is-in { opacity: 1; transform: none; }
}

/* ==========================================================================
   Sections
   ========================================================================== */

/* Shared heads ------------------------------------------------------------- */
.section-head { max-width: 46rem; margin-bottom: var(--space-5); }
.section-head .h-section { max-width: 22ch; }
.section-head__intro { margin-top: var(--space-2); max-width: 60ch; font-size: 1.125rem; }
.section-head--split {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--space-2) var(--space-4);
	max-width: none;
}

/* Hero ---------------------------------------------------------------------- */
.s-hero { padding: 0; }
.s-hero__grid {
	display: grid;
	grid-template-columns:
		[full-start] minmax(var(--gutter), 1fr)
		[content-start] minmax(0, calc(var(--container) / 2))
		[mid] minmax(0, calc(var(--container) / 2))
		[content-end] minmax(var(--gutter), 1fr) [full-end];
	align-items: stretch;
}
.s-hero__text {
	grid-column: content-start / mid;
	align-self: center;
	padding-block: var(--space-6);
	padding-right: clamp(1.5rem, 4vw, 4rem);
}
.s-hero__title { max-width: 15ch; }
.s-hero__title em { font-style: normal; color: var(--sage-ink); }
.s-hero__intro { margin-top: var(--space-3); max-width: 46ch; }
.s-hero__actions { margin-top: var(--space-4); }

.s-hero__media {
	position: relative;
	grid-column: mid / full-end;
	min-height: min(78vh, 46rem);
	overflow: hidden;
	background: var(--paper);
}
.s-hero__img {
	position: absolute;
	inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 0.9s ease;
}
.s-hero__img.is-active { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
	.s-hero__img.is-active { animation: hero-drift 4s ease-out both; }
}
@keyframes hero-drift { from { transform: scale(1.045); } to { transform: scale(1); } }

.s-hero__pause {
	position: absolute;
	right: 1rem; bottom: 1rem;
	display: grid;
	place-items: center;
	width: 2.25rem; height: 2.25rem;
	border: 1px solid rgb(255 255 255 / 0.7);
	background: rgb(15 21 56 / 0.35);
	color: var(--white);
}
.s-hero__pause-icon { width: 10px; height: 12px; border-inline: 3px solid currentColor; }
.s-hero__pause[aria-pressed="true"] .s-hero__pause-icon {
	width: 0; height: 0;
	border-style: solid;
	border-width: 6px 0 6px 10px;
	border-color: transparent transparent transparent currentColor;
}

/* Full-bleed variant */
.s-hero--full .s-hero__grid { position: relative; min-height: min(80vh, 44rem); }
.s-hero--full .s-hero__media { grid-column: full-start / full-end; grid-row: 1; min-height: 100%; }
.s-hero--full .s-hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgb(15 21 56 / 0.82) 0%, rgb(15 21 56 / 0.55) 45%, rgb(15 21 56 / 0.1) 100%);
}
.s-hero--full .s-hero__text { position: relative; z-index: 1; grid-row: 1; color: var(--white); }
.s-hero--full .s-hero__title { color: var(--white); }
.s-hero--full .s-hero__intro { color: rgb(255 255 255 / 0.9); }
.s-hero--full .eyebrow { color: var(--sage); }
.s-hero--full .btn--secondary { border-color: var(--white); color: var(--white); }
.s-hero--full .btn--secondary:hover { background: var(--white); color: var(--navy); }

/* Compact: inner pages. About 40% of the screen, so content shows above the fold. */
.s-hero--compact .s-hero__text { padding-block: var(--space-5); }
.s-hero--compact .s-hero__title { max-width: 24ch; font-size: clamp(2.25rem, 1.7rem + 1.8vw, 3.125rem); }
.s-hero--compact .s-hero__intro { max-width: 58ch; }
.s-hero--compact.s-hero--split .s-hero__title { font-size: clamp(2.25rem, 1.5rem + 1.6vw, 2.875rem); }
.s-hero--compact.s-hero--split .s-hero__media { min-height: clamp(18rem, 42vh, 26rem); }
.s-hero--compact.s-hero--full .s-hero__grid { min-height: clamp(18rem, 42vh, 25rem); }
/* Medium: compact type with more height, so a side image sits nearer 4:3. */
.s-hero--medium .s-hero__text { padding-block: var(--space-6); }
.s-hero--medium.s-hero--split .s-hero__media { min-height: clamp(26rem, 62vh, 36rem); }
.s-hero--medium.s-hero--full .s-hero__grid { min-height: clamp(24rem, 58vh, 34rem); }
.s-hero--compact.s-hero--banner .s-hero__media { min-height: clamp(13rem, 26vw, 19rem); }
@media (min-width: 1024px) { .s-hero--compact.s-hero--full .s-hero__text { grid-column: content-start / content-end; } }

.s-hero--text .s-hero__text { grid-column: content-start / content-end; padding-block: var(--space-6) var(--space-4); }
.s-hero--text .s-hero__title { max-width: 20ch; }

@media (max-width: 1023px) {
	.s-hero__grid { grid-template-columns: var(--gutter) 1fr var(--gutter); }
	.s-hero__text { grid-column: 2; padding: var(--space-5) 0 var(--space-4); }
	.s-hero__media { grid-column: 1 / -1; min-height: 0; aspect-ratio: 4 / 3; }
	.s-hero--full .s-hero__media { grid-column: 1 / -1; min-width: 0; aspect-ratio: auto; }
	.s-hero--full .s-hero__text { grid-column: 2; padding-block: var(--space-6); }
	.s-hero--compact.s-hero--full .s-hero__text { padding-block: var(--space-5); }
	/* The image keeps its 4:3 ratio here; a min-height would widen it past the screen. */
	.s-hero--compact.s-hero--split .s-hero__media,
	.s-hero--medium.s-hero--split .s-hero__media { min-height: 0; min-width: 0; }
	.s-hero--medium .s-hero__text { padding-block: var(--space-5) var(--space-4); }
	.s-hero--text .s-hero__text { grid-column: 2; }
}

/* Paths ---------------------------------------------------------------------- */
.s-paths__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
	gap: var(--space-3);
}
.s-paths__item {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: var(--space-4);
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius-card);
	box-shadow: 0 1px 2px rgb(24 32 79 / 0.04), 0 12px 28px -22px rgb(24 32 79 / 0.35);
	transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s;
}
.s-paths__item:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow-hover); }
.s-paths__drawing { align-self: flex-start; margin: 0 0 var(--space-3); }
.s-paths__photo {
	margin: calc(-1 * var(--space-4)) calc(-1 * var(--space-4)) var(--space-4);
	aspect-ratio: 3 / 2;
	overflow: hidden;
	border-radius: var(--radius-card) var(--radius-card) 0 0;
	background: var(--paper);
}
.s-paths__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.s-paths__item:hover .s-paths__photo img { transform: scale(1.03); }
.s-paths__title a { color: inherit; text-decoration: none; }
.s-paths__title a::after { content: ""; position: absolute; inset: 0; }
.s-paths__text { margin-top: 0.6rem; color: var(--ink); }
.s-paths__more { margin-top: auto; padding-top: var(--space-3); justify-content: flex-start; }
.s-paths__item:hover .s-paths__more { color: var(--navy); }
.s-paths__item:hover .s-paths__more .icon { transform: translateX(3px); }
.s-paths__item:focus-within { outline: 2px solid var(--navy); outline-offset: 2px; }
.s-paths__item:focus-within a:focus-visible { outline: none; }
.section--paper .s-paths__item { border-color: transparent; }

/* Path icons (two-colour SVG, traced from the approved artwork) ------------------ */
.drawing { display: block; overflow: visible; }
.drawing--icon { width: auto; height: 6.5rem; max-width: 100%; }
.drawing .d-fill-navy { fill: var(--navy); }
.drawing .d-fill-sage { fill: var(--sage-dark); }
@media (prefers-reduced-motion: no-preference) {
	/* Shapes fade up into place (navy, then sage); without JS the icon is simply shown. */
	.js .drawing[data-draw] :is(.d-fill-navy, .d-fill-sage) {
		opacity: 0;
		transform: translateY(6px);
		transform-box: fill-box;
		transition: opacity 0.6s ease, transform 0.8s var(--ease);
	}
	.js .drawing[data-draw] .d-fill-sage { transition-delay: 0.25s; }
	.js .drawing[data-draw].is-in :is(.d-fill-navy, .d-fill-sage) { opacity: 1; transform: none; }
}

/* Split ----------------------------------------------------------------------- */
.s-split__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: var(--space-5) clamp(2rem, 6vw, 6rem);
}
.s-split--image-left .s-split__media { order: -1; }
.s-split__body { margin-top: var(--space-3); }
/* Lists in image + text sections use the diamond markers. */
.s-split__body ul { padding-left: 0; list-style: none; }
.s-split__body ul li { position: relative; margin: 0; padding: 0.45rem 0 0.45rem 2rem; }
/* Sage check in a soft circle. */
.s-split__body ul li::before { content: ""; position: absolute; left: 0; top: 0.6rem; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: rgb(164 194 158 / 0.3); }
.s-split__body ul li::after { content: ""; position: absolute; left: 0.45rem; top: 0.85rem; width: 0.3rem; height: 0.55rem; border: solid var(--sage-ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.s-split__body ul li strong { color: var(--navy); }
.s-split .btn-row { margin-top: var(--space-4); }
.s-split__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-img); }
.s-split__figure { margin: 0; }
.s-split--long .s-split__grid { align-items: start; }
.s-split--long .s-split__media { position: sticky; top: var(--sticky-top); }
.s-split--long .s-split__img { aspect-ratio: 4 / 5; }
@media (max-width: 1023px) { .s-split--long .s-split__media { position: static; } .s-split--long .s-split__img { aspect-ratio: 4 / 3; object-position: 50% 30%; } }
/* A sign-off line, e.g. the end of a letter. */
.prose .signature { margin-top: var(--space-3); color: var(--navy); font: italic 400 1.5rem / 1.3 var(--font-serif); }
.prose .signature small { display: block; margin-top: 0.3rem; color: var(--sage-ink); font: 700 0.6875rem / 1.3 var(--font-sans); font-style: normal; letter-spacing: 0.08em; text-transform: uppercase; }
.s-split__figure .s-split__img { aspect-ratio: 4 / 5; box-shadow: 0 30px 50px -36px rgb(24 32 79 / 0.5); }
.s-split__caption { margin-top: 0.75rem; color: var(--sage-ink); font: italic 400 0.9375rem / 1.4 var(--font-serif); }
.s-split--trio .s-split__media { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.s-split__trio-img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: var(--radius-img); }
@media (max-width: 899px) {
	.s-split__grid { grid-template-columns: 1fr; }
	.s-split__media { order: -1; }
}

/* Cards ------------------------------------------------------------------------ */
.card-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--space-4) var(--space-3);
}
@media (max-width: 1023px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .card-grid { grid-template-columns: 1fr; } }

.listing-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius-card);
	box-shadow: 0 1px 2px rgb(24 32 79 / 0.04), 0 12px 28px -22px rgb(24 32 79 / 0.3);
	transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.listing-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.listing-card__media { overflow: hidden; aspect-ratio: 3 / 2; background: var(--paper); }
.listing-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.listing-card:hover .listing-card__img { transform: scale(1.035); }
.listing-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; padding: 1.25rem 1.25rem 1.4rem; flex: 1; }
.listing-card__title a { color: inherit; text-decoration: none; }
.listing-card__title a::after { content: ""; position: absolute; inset: 0; }
.listing-card__title a:focus-visible { outline: none; }
.listing-card:has(a:focus-visible) { outline: 2px solid var(--navy); outline-offset: 2px; }
.listing-card__place { margin-top: -0.25rem; color: var(--navy); font-size: 1rem; }
.listing-card__meta { color: var(--ink-soft); font-size: 0.9375rem; }
.listing-card__price {
	display: flex;
	flex-direction: column;
	margin-top: auto;
	padding-top: 0.75rem;
	width: 100%;
	border-top: 1px solid var(--line);
	font: 700 1.25rem / 1.2 var(--font-serif);
}
.listing-card__price-label {
	margin-bottom: 0.2rem;
	color: var(--ink-soft);
	font: 600 0.6875rem / 1 var(--font-sans);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* Logos ------------------------------------------------------------------------- */
.s-logos__inner {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	gap: var(--space-4) var(--space-5);
}
.s-logos__heading { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.25rem); white-space: nowrap; }
.s-logos__list { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-around; gap: var(--space-4); }
/* --logo-scale (Site Settings → Featured logos → Size %) enlarges a logo whose file has a lot of empty space. */
.s-logos__img { width: auto; max-width: calc(180px * var(--logo-scale, 1)); max-height: calc(96px * var(--logo-scale, 1)); object-fit: contain; filter: grayscale(1); opacity: 0.8; mix-blend-mode: multiply; transition: filter 0.3s, opacity 0.3s; }
.s-logos__item a:hover .s-logos__img { filter: none; opacity: 1; }
@media (max-width: 767px) {
	.s-logos__inner { grid-template-columns: 1fr; text-align: center; }
}

/* Design guide ------------------------------------------------------------------- */
.s-guide__panel {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	align-items: center;
	gap: var(--space-5);
	padding: clamp(1.5rem, 4vw, 3.5rem);
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius-card);
}
.s-guide__intro { display: grid; grid-template-columns: 10rem 1fr; gap: var(--space-4); align-items: center; }
.s-guide__img { width: 100%; }  /* the cover art already carries its own tilt and shadow */
.s-guide__title { font-size: clamp(1.5rem, 1.25rem + 1vw, 2.125rem); max-width: 24ch; }
.s-guide__text { margin-top: var(--space-2); }
@media (max-width: 899px) {
	.s-guide__panel { grid-template-columns: 1fr; }
}
@media (max-width: 479px) {
	.s-guide__intro { grid-template-columns: 6rem 1fr; gap: var(--space-3); }
}

/* Forms (Gravity Forms, gravity-theme layout) ------------------------------------ */
.form-theme .gform_wrapper.gravity-theme .gform_fields { gap: 1rem 1rem; }
.form-theme .gform_wrapper.gravity-theme .gfield_label,
.form-theme .gform_wrapper.gravity-theme .gform-field-label {
	margin-bottom: 0.4rem;
	color: var(--navy);
	font: 600 0.8125rem / 1.3 var(--font-sans);
}
.form-theme .gform_wrapper.gravity-theme input:not([type="checkbox"], [type="radio"], [type="submit"], [type="hidden"]),
.form-theme .gform_wrapper.gravity-theme select,
.form-theme .gform_wrapper.gravity-theme textarea {
	width: 100%;
	min-height: 3rem;
	padding: 0.65rem 0.85rem;
	border: 1px solid var(--line-strong);
	border-radius: 3px;
	background: var(--white);
	color: var(--navy);
	font: 400 1rem / 1.4 var(--font-sans);
	transition: border-color 0.2s, box-shadow 0.2s;
}
.form-theme .gform_wrapper.gravity-theme ::placeholder { color: #6b7088; opacity: 1; }
.form-theme .gform_wrapper.gravity-theme input:focus,
.form-theme .gform_wrapper.gravity-theme select:focus,
.form-theme .gform_wrapper.gravity-theme textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgb(164 194 158 / 0.45); }
.form-theme .gform_wrapper.gravity-theme .gfield_required { color: var(--sage-ink); }
.form-theme .gform_wrapper.gravity-theme .gfield_consent_label,
.form-theme .gform_wrapper.gravity-theme .gfield_description { font: 500 0.8125rem / 1.5 var(--font-sans); color: var(--ink-soft); }
.form-theme .gform_wrapper.gravity-theme .gform_footer { margin-top: 1.25rem; padding: 0; }
.form-theme .gform_wrapper.gravity-theme .gform_footer .btn { width: 100%; min-height: 3.25rem; font: 700 1rem / 1 var(--font-serif); }
.form-theme .gform_wrapper.gravity-theme .gfield_error input,
.form-theme .gform_wrapper.gravity-theme .gfield_error select { border-color: #a3312c; }
.form-theme .gform_wrapper.gravity-theme .validation_message { margin-top: 0.35rem; padding: 0; border: 0; background: none; color: #a3312c; font: 600 0.8125rem / 1.3 var(--font-sans); }
/* The client prefers no "* indicates required" legend (markers show on error). */
.form-theme .gform_required_legend { display: none; }
.form-theme__summary { margin-bottom: 1rem; color: #a3312c; font: 600 0.875rem / 1.4 var(--font-sans); }

/* Model carousel ---------------------------------------------------------------- */
.carousel {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 2 * var(--space-3)) / 3);
	gap: var(--space-3);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding: 0.25rem 0.25rem 1.5rem;
	margin: -0.25rem -0.25rem 0;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel__item { scroll-snap-align: start; }
@media (max-width: 1023px) { .carousel { grid-auto-columns: 46%; } }
@media (max-width: 639px) { .carousel { grid-auto-columns: 82%; } }

.carousel-nav { display: flex; gap: 0.5rem; }
.carousel-nav__btn {
	display: grid;
	place-items: center;
	width: 2.75rem; height: 2.75rem;
	border: 1px solid var(--line-strong);
	border-radius: 50%;
	background: var(--white);
	color: var(--navy);
	transition: background-color 0.2s, color 0.2s, opacity 0.2s;
}
.carousel-nav__btn:hover:not(:disabled) { background: var(--navy); color: var(--white); }
.carousel-nav__btn:disabled { opacity: 0.35; cursor: default; }

.model-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius-card);
	box-shadow: 0 1px 2px rgb(24 32 79 / 0.04), 0 12px 28px -22px rgb(24 32 79 / 0.3);
	text-align: center;
	transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.model-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.model-card__media { display: grid; place-items: center; aspect-ratio: 38 / 25; padding: 1rem 1.5rem 0; }
.model-card__img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.6s var(--ease); }
.model-card:hover .model-card__img { transform: scale(1.03); }
.model-card__body { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; padding: 0.75rem 1.25rem 1.5rem; }
.model-card__title a { color: inherit; text-decoration: none; }
.model-card__title a::after { content: ""; position: absolute; inset: 0; }
.model-card:has(a:focus-visible) { outline: 2px solid var(--navy); outline-offset: 2px; }
.model-card__title a:focus-visible { outline: none; }
.model-card__specs { color: var(--ink-soft); font-size: 0.9375rem; }
.model-card__more { margin-top: 0.5rem; }

/* Features ("What makes a Character House") -------------------------------------- */
.s-features__grid { display: grid; grid-template-columns: 0.85fr 1fr; gap: var(--space-5); align-items: stretch; }
.s-features__media { position: relative; min-height: 22rem; }
/* Fills the column to the height of the feature list beside it. */
.s-features__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-img); box-shadow: 0 30px 50px -36px rgb(24 32 79 / 0.55); }
.s-features__list { display: grid; }
.s-features__item { display: grid; grid-template-columns: 5rem 1fr; gap: 1.25rem; align-items: start; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.s-features__item:first-child { padding-top: 0; }
.s-features__item:last-child { border-bottom: 0; }
.s-features__thumb { width: 5rem; height: 5rem; object-fit: cover; border-radius: var(--radius-card); }
.s-features__title { font: 700 1.1875rem / 1.3 var(--font-serif); letter-spacing: 0; }
.s-features__text { margin-top: 0.25rem; font-size: 1rem; }
.s-features--cards .s-features__grid { grid-template-columns: 1fr; }
.s-features--cards .s-features__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
.s-features--cards .s-features__item { grid-template-columns: 1fr; padding: 0; border: 0; background: var(--white); border-radius: var(--radius-card); overflow: hidden; box-shadow: 0 12px 28px -22px rgb(24 32 79 / 0.3); }
.s-features--cards .s-features__item > div { padding: 1.25rem 1.5rem 1.5rem; }
.s-features--cards .s-features__thumb { width: 100%; height: auto; aspect-ratio: 5 / 4; border-radius: 0; }
@media (max-width: 899px) {
	.s-features__grid { grid-template-columns: 1fr; }
	.s-features__media { min-height: 0; aspect-ratio: 4 / 3; }
	.s-features--cards .s-features__list { grid-template-columns: 1fr; }
}

/* Comparison (finish lines) ---------------------------------------------------------- */
/* Cards share header and list rows (subgrid), so headers match in height and the
   "Premium details" boxes start at the same line. */
.s-compare__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto 1fr; gap: 0 var(--space-3); }
.compare-card {
	display: grid;
	grid-row: span 2;
	grid-template-rows: subgrid;
	overflow: hidden;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius-card);
	box-shadow: 0 12px 28px -22px rgb(24 32 79 / 0.3);
}
.compare-card__head { padding: var(--space-4) var(--space-4) var(--space-3); }
.compare-card__eyebrow { margin-bottom: 0.4rem; }
.compare-card__title { font-size: clamp(1.625rem, 1.4rem + 0.8vw, 2rem); }
.compare-card__text { margin-top: 0.5rem; max-width: 64ch; }
.compare-card__list { margin: var(--space-3) var(--space-4) var(--space-4); padding: var(--space-3); background: var(--paper); border-radius: var(--radius-card); }
.compare-card__list-title { margin-bottom: 0.75rem; font: 700 0.75rem / 1.3 var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase; }
.compare-card__list ul { margin: 0; padding: 0; list-style: none; }
.compare-card__list li { display: flex; gap: 0.75rem; align-items: baseline; padding: 0.35rem 0; }
.compare-card__list .icon { width: 1rem; height: 1rem; color: var(--sage-dark); transform: translateY(0.15em); }
.compare-card--featured { border-color: var(--navy); }
.compare-card--featured .compare-card__head { background: var(--navy); color: var(--white); }
.compare-card--featured .compare-card__title { color: var(--white); }
.compare-card--featured .compare-card__eyebrow { color: var(--sage); }
@media (max-width: 767px) { .s-compare__grid { grid-template-columns: 1fr; grid-template-rows: none; gap: var(--space-3); } .compare-card { grid-row: auto; grid-template-rows: auto 1fr; } }

/* Process steps --------------------------------------------------------------------- */
.s-steps__list { display: grid; grid-template-columns: repeat(var(--steps-cols, 4), minmax(0, 1fr)); gap: var(--space-5) var(--space-4); counter-reset: none; }
.s-steps__num {
	display: grid;
	place-items: center;
	width: 2.25rem; height: 2.25rem;
	margin-bottom: 0.9rem;
	border-radius: 50%;
	background: var(--navy);
	color: var(--white);
	font: 700 0.75rem / 1 var(--font-sans);
	letter-spacing: 0.04em;
}
.s-steps__title { font: 700 1.25rem / 1.3 var(--font-serif); letter-spacing: 0; }
.s-steps__text { margin-top: 0.5rem; font-size: 1rem; }
.s-steps__actions { margin-top: var(--space-5); }
.s-steps--cards .s-steps__list { gap: var(--space-3); }
.s-steps--cards .s-steps__item { padding: var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--white); box-shadow: 0 18px 30px -26px rgb(24 32 79 / 0.45); }
@media (max-width: 1023px) { .s-steps__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 519px) { .s-steps__list { grid-template-columns: 1fr; gap: var(--space-4); } }

/* Inline CTA ---------------------------------------------------------------------------- */
.s-cta__panel {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3) var(--space-4);
	padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 4vw, 3rem);
	border-radius: var(--radius-card);
}
.s-cta__panel--navy { background: var(--navy); color: var(--white); }
.s-cta__panel--line { background: var(--white); border: 1px solid var(--navy); }
.s-cta__title { font-size: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem); }
.s-cta__panel--navy .s-cta__title { color: var(--white); }
.s-cta__text { margin-top: 0.3rem; }
.s-cta__panel--navy .s-cta__text { color: rgb(255 255 255 / 0.82); }

/* Booking calendar (Calendly) ------------------------------------------------------------------ */
/* ~1000px lets Calendly show the calendar and times side by side; it stacks below that. */
.s-booking__widget { max-width: 66rem; height: 720px; min-width: 320px; margin-inline: auto; }
@media (max-width: 767px) { .s-booking__widget { height: 1060px; } }
.s-booking__fallback { margin-top: var(--space-2); text-align: center; font-size: 0.9375rem; color: var(--ink-soft); }

/* Form section ---------------------------------------------------------------------------- */
.s-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); align-items: start; }
.s-form__text { margin-top: var(--space-2); max-width: 46ch; font-size: 1.0625rem; }
.s-form__img { width: 100%; margin-top: var(--space-4); aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-img); }
.s-form__card {
	padding: clamp(1.5rem, 3vw, 2.25rem);
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius-card);
	box-shadow: 0 1px 2px rgb(24 32 79 / 0.04), 0 20px 40px -30px rgb(24 32 79 / 0.35);
}
@media (max-width: 899px) { .s-form__grid { grid-template-columns: 1fr; } }

/* Required markers show only after a failed submit (client preference). */
.form-theme .gform_wrapper.gravity-theme .gfield_required { display: none; }
.form-theme .gform_wrapper.gravity-theme .gfield_error .gfield_required { display: inline; }

/* Centred section heads ------------------------------------------------------------ */
.section--center .section-head { margin-inline: auto; text-align: center; }
.section--center .section-head .h-section,
.section--center .section-head .h-serif { margin-inline: auto; }
.section--center .section-head__intro { margin-inline: auto; }
.section--center .s-features__item { text-align: center; }

/* Banner hero (Portfolio) ------------------------------------------------------------ */
.s-hero--banner .s-hero__grid { position: relative; display: grid; grid-template-columns: 1fr; }
.s-hero--banner .s-hero__media { grid-column: 1; grid-row: 1; width: 100%; min-width: 0; min-height: clamp(16rem, 38vw, 26rem); }
/* Banners take their height from min-height, never from the mobile 4:3 rule:
   Safari sizes a grid item's width from aspect-ratio + min-height, which left
   the image two-thirds wide on iPhones (Chrome stretches it, so desktop
   responsive mode looked fine). */
.s-hero.s-hero--banner .s-hero__media { aspect-ratio: auto; }
.s-hero--banner .s-hero__media::after { content: ""; position: absolute; inset: 0; background: rgb(15 21 56 / 0.45); }
.s-hero--banner .s-hero__text {
	position: relative;
	z-index: 1;
	grid-column: 1;
	grid-row: 1;
	align-self: center;
	justify-self: center;
	padding: var(--space-5) var(--gutter);
	text-align: center;
}
.s-hero--banner .s-hero__title { max-width: none; color: var(--white); }
.s-hero--banner .eyebrow { color: var(--sage); }
.s-hero__tagline {
	grid-row: 2;
	margin: 0;
	padding: var(--space-4) var(--gutter);
	background: var(--paper);
	text-align: center;
	font: 400 clamp(1.125rem, 1rem + 0.6vw, 1.5rem) / 1.4 var(--font-serif);
}

/* Feature cards: image on top, centred text --------------------------------------------- */
.s-features--cards .s-features__item > div { padding: 1.4rem 1.6rem 1.75rem; }
.s-features--cards .s-features__title { font-size: 1.375rem; }

/* Gallery ------------------------------------------------------------------------------- */
.gallery-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.75rem; }
.gallery-grid__item[hidden] { display: none; }
.gallery-grid__link { display: block; overflow: hidden; border-radius: var(--radius-card); background: var(--paper); }
.gallery-grid__img { width: 100%; aspect-ratio: 6 / 5; object-fit: cover; transition: transform 0.6s var(--ease), opacity 0.3s; }
.gallery-grid__link:hover .gallery-grid__img { transform: scale(1.04); }
.gallery-grid__link:focus-visible { outline-offset: 2px; }
.s-gallery__more { margin-top: var(--space-4); text-align: center; }
.s-gallery--rail .gallery-grid { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 22%; }
@media (max-width: 899px) { .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 539px) { .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; } }

/* Lightbox ------------------------------------------------------------------------------- */
.lightbox {
	width: 100vw; max-width: none;
	height: 100dvh; max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgb(10 14 38 / 0.94);
	color: var(--white);
}
.lightbox::backdrop { background: rgb(10 14 38 / 0.6); }
.lightbox-open { overflow: hidden; }
.lightbox__figure { display: grid; grid-template-rows: minmax(0, 1fr) auto; height: 100%; margin: 0; padding: 4.5rem clamp(1rem, 6vw, 6rem) 1.25rem; }
.lightbox__img { width: 100%; height: 100%; min-height: 0; object-fit: contain; opacity: 0; transition: opacity 0.3s; }
.lightbox__img.is-loaded { opacity: 1; }
.lightbox__caption { display: flex; gap: 1rem; justify-content: center; padding-top: 1rem; font: 500 0.875rem / 1.4 var(--font-sans); color: rgb(255 255 255 / 0.8); }
.lightbox__count { font-weight: 700; color: var(--sage); }
.lightbox__btn {
	position: absolute;
	display: grid;
	place-items: center;
	width: 3rem; height: 3rem;
	border: 1px solid rgb(255 255 255 / 0.35);
	border-radius: 50%;
	background: rgb(10 14 38 / 0.5);
	color: var(--white);
}
.lightbox__btn:hover { background: var(--white); color: var(--navy); }
.lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__close { right: 1rem; top: 1rem; }
@media (max-width: 639px) {
	.lightbox__prev, .lightbox__next { top: auto; bottom: 1rem; transform: none; }
	.lightbox__figure { padding-bottom: 5rem; }
}

/* ==========================================================================
   Listing page (single home-for-sale)
   ========================================================================== */
.badge--outline { background: transparent; box-shadow: inset 0 0 0 1px var(--navy); }

.listing-hero { padding-block: var(--space-4) var(--space-5); }
.listing-hero__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: var(--space-5); align-items: center; }
.listing-hero__badges { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.9rem; }
.listing-hero__title { font-size: clamp(2.25rem, 1.7rem + 2.2vw, 3.25rem); line-height: 1.05; }
.listing-hero__place { display: flex; align-items: center; gap: 0.4rem; margin-top: 0.75rem; color: var(--ink-soft); font: 500 0.9375rem / 1.4 var(--font-sans); }
.listing-hero__place .icon { color: var(--sage-dark); }
.listing-hero__price { display: grid; gap: 0.15rem; margin: var(--space-3) 0 var(--space-4); }
.listing-hero__price-label { color: var(--ink-soft); font: 700 0.6875rem / 1 var(--font-sans); letter-spacing: 0.1em; text-transform: uppercase; }
.listing-hero__price strong { font: 700 clamp(1.5rem, 1.3rem + 0.8vw, 2rem) / 1.2 var(--font-serif); }
.listing-hero__price-note { margin-top: 0.3rem; color: var(--sage-ink); font-size: 1rem; }
.listing-hero__media { overflow: hidden; border-radius: var(--radius-img); background: var(--paper); box-shadow: 0 30px 50px -36px rgb(24 32 79 / 0.5); }
.listing-hero__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.listing-hero .btn--secondary .icon { width: 1.05em; height: 1.05em; }
.listing-note { margin-bottom: var(--space-4); padding: 1rem 1.25rem; border-left: 3px solid var(--sage-dark); background: var(--white); font-size: 1.0625rem; }
@media (max-width: 899px) {
	.listing-hero__grid { grid-template-columns: 1fr; }
	.listing-hero__media { order: -1; }
}

/* Stat row: big numbers divided by hairlines (as on the plan pages) */
.stat-row { display: flex; flex-wrap: wrap; margin: var(--space-3) 0 0; }
.stat-row__item { display: flex; flex-direction: column-reverse; padding: 0 1.5rem; border-left: 1px solid var(--line); }
.stat-row__item:first-child { padding-left: 0; border-left: 0; }
.stat-row dd { margin: 0; font: 400 clamp(1.5rem, 1.3rem + 0.8vw, 2rem) / 1.1 var(--font-serif); }
.stat-row dt { margin-top: 0.3rem; color: var(--ink-soft); font: 600 0.6875rem / 1 var(--font-sans); letter-spacing: 0.1em; text-transform: uppercase; }
@media (max-width: 519px) {
	.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 0; }
	.stat-row__item, .stat-row__item:first-child { padding: 0 1rem; border-left: 1px solid var(--line); }
	.stat-row__item:nth-child(odd) { padding-left: 0; border-left: 0; }
}

/* Story: viewer + about */
.listing-story__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--space-5); align-items: start; }
.listing-story__headline { margin-bottom: var(--space-3); font-size: clamp(1.625rem, 1.35rem + 1vw, 2.25rem); }
.listing-story__about { margin-bottom: var(--space-3); }
.listing-story__list-title { margin: var(--space-3) 0 0.5rem; padding-top: var(--space-3); border-top: 1px solid var(--line); color: var(--ink-soft); font: 700 0.75rem / 1.3 var(--font-sans); letter-spacing: 0.1em; text-transform: uppercase; }
@media (max-width: 899px) { .listing-story__grid { grid-template-columns: minmax(0, 1fr); } }
/* Grid children may shrink below their content (the thumbnail rail is wide). */
.listing-story__grid > *, .listing-model__grid > *, .listing-details__grid > *, .listing-hero__grid > * { min-width: 0; }

.diamond-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.75rem; }
.diamond-list li { position: relative; padding: 0.6rem 0 0.6rem 1.1rem; border-bottom: 1px solid var(--line); font-size: 1rem; line-height: 1.4; }
.diamond-list li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: 6px; height: 6px; background: var(--navy); transform: rotate(45deg); }
@media (max-width: 519px) { .diamond-list { grid-template-columns: 1fr; } }

/* Viewer: stage + thumbnails (photos) or sheet tabs (plans) */
.viewer__stage { position: relative; margin: 0; }
.viewer__open { position: relative; display: block; width: 100%; padding: 0; border: 0; overflow: hidden; border-radius: var(--radius-img); background: var(--paper); cursor: zoom-in; }
.viewer__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.6s var(--ease); }
.viewer__open:hover .viewer__img { transform: scale(1.02); }
.viewer__zoom { position: absolute; right: 0.75rem; bottom: 0.75rem; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: rgb(255 255 255 / 0.92); color: var(--navy); box-shadow: 0 6px 16px -8px rgb(15 21 56 / 0.5); }
.viewer__caption { margin-top: 0.6rem; color: var(--ink-soft); font: 500 0.8125rem / 1.4 var(--font-sans); }
.viewer__thumbs { display: grid; grid-auto-flow: column; grid-auto-columns: 5.5rem; gap: 0.5rem; margin-top: 0.75rem; overflow-x: auto; scrollbar-width: thin; padding-bottom: 0.25rem; }
.viewer__thumb { display: block; padding: 0; border: 2px solid transparent; border-radius: var(--radius-card); overflow: hidden; background: none; opacity: 0.7; transition: opacity 0.2s, border-color 0.2s; }
.viewer__thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.viewer__thumb:hover, .viewer__thumb.is-active { opacity: 1; border-color: var(--navy); }

.viewer--sheets .viewer__open { background: var(--white); border: 1px solid var(--line); padding: 1rem; }
.viewer--sheets .viewer__img { aspect-ratio: 11 / 8.5; object-fit: contain; }
.viewer__head { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 0.6rem; color: var(--ink-soft); font: 600 0.75rem / 1 var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase; }
.viewer__head span:first-child { color: var(--navy); }
.viewer__tabs { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: var(--space-3); }
.viewer__tab {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.65rem 1.1rem 0.65rem 0.9rem;
	border: 1px solid var(--line);
	border-radius: var(--radius-card);
	background: var(--white);
	color: var(--navy);
	transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.viewer__tab-num { font: 400 1.5rem / 1 var(--font-serif); }
.viewer__tab-label { font: 600 0.6875rem / 1.2 var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.75; }
.viewer__tab:hover { border-color: var(--navy); }
.viewer__tab.is-active { background: var(--navy); border-color: var(--navy); color: var(--white); box-shadow: 0 12px 22px -14px rgb(15 21 56 / 0.7); }

/* Built on our model */
.listing-model__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: var(--space-5); align-items: start; }
.listing-model__intro > * + * { margin-top: var(--space-2); }
.listing-model__drawing { width: 100%; max-width: 20rem; margin-block: var(--space-2); mix-blend-mode: multiply; }
.price-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-block: var(--space-3); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--line); }
.price-compare div { display: grid; gap: 0.25rem; padding: 0.9rem 1rem; background: var(--white); }
.price-compare span { color: var(--ink-soft); font: 700 0.6875rem / 1.2 var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase; }
.price-compare strong { font: 700 1.25rem / 1.2 var(--font-serif); }
@media (max-width: 899px) { .listing-model__grid { grid-template-columns: 1fr; } }

/* Details + map */
.listing-details__title { margin-bottom: var(--space-3); }
.listing-details .spec-table { margin-top: 0; border-top: 1px solid var(--line); }
.listing-details__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); align-items: start; }
.spec-table { margin: var(--space-3) 0 0; }
.spec-table div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.spec-table dt { color: var(--ink-soft); font: 600 0.8125rem / 1.4 var(--font-sans); }
.spec-table dd { margin: 0; text-align: right; font-weight: 700; }
.spec-table a { color: var(--navy); text-decoration-color: var(--sage-dark); }
.listing-map { overflow: hidden; border-radius: var(--radius-img); border: 1px solid var(--line); background: var(--paper); }
.listing-map iframe { display: block; width: 100%; aspect-ratio: 4 / 3.4; border: 0; }
.realtor { display: flex; align-items: center; gap: 1rem; margin-top: var(--space-4); padding: 1rem 1.25rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); }
.realtor__img { width: 4rem; height: 4rem; border-radius: 50%; object-fit: cover; }
.realtor__label { color: var(--ink-soft); font: 700 0.6875rem / 1.2 var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase; }
.realtor__name { font: 700 1.125rem / 1.3 var(--font-serif); }
.realtor__name a { color: inherit; text-decoration-color: var(--sage-dark); }
.realtor__meta { color: var(--ink-soft); font-size: 0.9375rem; }
@media (max-width: 899px) { .listing-details__grid { grid-template-columns: 1fr; } }

/* Inquiry */
.listing-inquire__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--space-5); align-items: start; }
.listing-inquire__text { margin-top: var(--space-2); max-width: 44ch; }
.listing-inquire__call { margin-top: var(--space-3); font: 600 0.9375rem / 1.4 var(--font-sans); }
.listing-inquire__call a { color: var(--navy); text-decoration-color: var(--sage-dark); }
@media (max-width: 899px) { .listing-inquire__grid { grid-template-columns: 1fr; } }

/* Model pages ------------------------------------------------------------------ */
.model-hero .eyebrow { margin-bottom: 0.6rem; }
.model-hero__tagline { margin-top: 0.75rem; max-width: 34ch; color: var(--ink-soft); font: italic 400 clamp(1.125rem, 1rem + 0.4vw, 1.375rem) / 1.4 var(--font-serif); }
.model-hero__price-note { max-width: 46ch; margin-top: 0.3rem; color: var(--ink-soft); font-size: 0.9375rem; line-height: 1.45; }
.model-hero a.listing-hero__price-note { justify-self: start; text-decoration-color: var(--sage-dark); text-underline-offset: 0.2em; }
.model-hero__drawing { object-fit: contain; padding: var(--space-3); background: var(--white); }
.model-plan__drawing { width: 100%; height: auto; border-radius: var(--radius-img); background: var(--white); }
.model-plan__elevation { display: grid; justify-items: start; gap: 0.4rem; margin: var(--space-4) 0 0; padding-top: var(--space-3); border-top: 1px solid var(--line); }
.model-plan__elevation img { width: 100%; max-width: 18rem; height: auto; padding: 0.75rem; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--white); }
.model-plan__elevation figcaption { color: var(--ink-soft); font: 700 0.6875rem / 1 var(--font-sans); letter-spacing: 0.1em; text-transform: uppercase; }

/* Full-width photo strip: a wide crop that fits on screen with its thumbnails. */
.model-photos .viewer__img { aspect-ratio: 21 / 9; max-height: 70vh; }
@media (max-width: 767px) { .model-photos .viewer__img { aspect-ratio: 4 / 3; } }

.model-ways__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.model-way { display: grid; align-content: start; justify-items: start; gap: 0.5rem; padding: var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--white); }
.model-way:first-child { border-top: 3px solid var(--sage); }
.model-way:last-child { border-top: 3px solid var(--navy); }
.model-way__label { color: var(--ink-soft); font: 700 0.6875rem / 1.2 var(--font-sans); letter-spacing: 0.1em; text-transform: uppercase; }
.model-way__price { font: 700 clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem) / 1.2 var(--font-serif); }
.model-way__text { max-width: 44ch; color: var(--ink-soft); }
.model-way__recent { font-size: 0.9375rem; }
.model-way__recent a { color: var(--navy); text-decoration-color: var(--sage-dark); }
.model-way .btn { margin-top: 0.4rem; }
.model-ways__homes-title { margin: var(--space-4) 0 var(--space-2); }
@media (max-width: 767px) { .model-ways__grid { grid-template-columns: 1fr; } }

/* FAQ ------------------------------------------------------------------------------ */
.s-faq__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: var(--space-5); align-items: start; }
@media (min-width: 900px) { .s-faq__grid > .section-head { position: sticky; top: var(--sticky-top); } }
.faq { border-bottom: 1px solid var(--line); }
.faq:first-child { border-top: 1px solid var(--line); }
.faq__q { display: flex; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; cursor: pointer; list-style: none; font: 700 1.1875rem / 1.35 var(--font-serif); }
.faq__q::-webkit-details-marker { display: none; }
.faq__q .icon { flex: none; margin-top: 0.15rem; color: var(--sage-dark); transition: transform 0.25s var(--ease); }
.faq[open] .faq__q .icon,
.faq.is-open .faq__q .icon { transform: rotate(45deg); }
.faq.is-closing .faq__q .icon { transform: none; }
.faq__a { box-sizing: border-box; padding: 0 2rem 1.25rem 0; }
@media (max-width: 899px) { .s-faq__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Homes For Sale archive
   ========================================================================== */
.s-inventory__note { max-width: 34ch; color: var(--ink-soft); font-size: 1rem; }
.s-inventory__note a { color: var(--navy); text-decoration-color: var(--sage-dark); }
.s-inventory__empty { margin-top: var(--space-3); padding: 1.25rem 1.5rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); }
.s-inventory__empty a { color: var(--navy); text-decoration-color: var(--sage-dark); }
.card-grid > [hidden] { display: none; }

.filters { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; margin: calc(var(--space-3) * -1) 0 var(--space-4); }
.filters__group { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.filters__label { margin-right: 0.35rem; color: var(--ink-soft); font: 700 0.6875rem / 1 var(--font-sans); letter-spacing: 0.1em; text-transform: uppercase; }
.chip {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	min-height: 2.25rem;
	padding: 0.35rem 0.85rem;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-card);
	background: var(--white);
	color: var(--navy);
	font: 600 0.8125rem / 1 var(--font-sans);
	transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.chip:hover { border-color: var(--navy); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.chip__count { color: var(--ink-soft); font-weight: 500; }
.chip.is-active .chip__count { color: rgb(255 255 255 / 0.7); }

.sold-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-3); }
.sold-card { overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); }
.sold-card__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: saturate(0.85); }
.sold-card__body { display: grid; gap: 0.4rem; justify-items: start; padding: 0.9rem 1rem 1.1rem; }
.sold-card__title { font: 700 1.0625rem / 1.3 var(--font-serif); letter-spacing: 0; }
.sold-card__place { color: var(--ink-soft); font-size: 0.9375rem; }
@media (max-width: 1023px) { .sold-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 639px) { .sold-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; } }

/* Inventory: filters + Grid | Map switch ------------------------------------------- */
.inventory-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin: calc(var(--space-3) * -1) 0 var(--space-4); }
.inventory-bar .filters { margin: 0; }
.view-switch { display: inline-flex; margin-left: auto; padding: 3px; border: 1px solid var(--line-strong); border-radius: var(--radius-card); background: var(--white); }
.view-switch__btn { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.45rem 0.9rem; border: 0; border-radius: 3px; background: none; color: var(--navy); font: 600 0.8125rem / 1 var(--font-sans); transition: background-color 0.2s, color 0.2s; }
.view-switch__btn .icon { width: 1rem; height: 1rem; }
.view-switch__btn.is-active { background: var(--navy); color: var(--white); }

.inventory[data-view="grid"] .inventory__map { display: none; }
.inventory[data-view="map"] { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: var(--space-3); align-items: start; }
.inventory[data-view="map"] .inventory__map { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.inventory[data-view="map"] .homes-map { height: calc(100vh - var(--header-h) - 2rem); min-height: 28rem; }
.inventory[data-view="map"] .inventory__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
.inventory[data-view="map"] .listing-card__body { padding: 0.9rem 1rem 1rem; gap: 0.35rem; }
.inventory[data-view="map"] .listing-card__title { font-size: 1.125rem; }
.inventory[data-view="map"] .listing-card__price { font-size: 1.0625rem; }
.inventory__list > .is-hot .listing-card { border-color: var(--navy); box-shadow: 0 0 0 2px var(--navy), var(--shadow-hover); }
@media (max-width: 1023px) {
	.inventory[data-view="map"] { grid-template-columns: 1fr; }
	.inventory[data-view="map"] .inventory__map { position: relative; top: 0; }
	.inventory[data-view="map"] .homes-map { height: 60vh; min-height: 22rem; }
}
@media (max-width: 639px) { .inventory[data-view="map"] .inventory__list { grid-template-columns: 1fr; } }

.homes-map {
	position: relative;
	z-index: 0;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius-img);
	background: #eef0f2;
}
.homes-map__loading { display: grid; place-items: center; height: 100%; margin: 0; color: var(--ink-soft); font: 500 0.875rem var(--font-sans); }

/* Price-tag pins */
.price-tag-icon { background: none; border: 0; }
.price-tag {
	position: absolute;
	left: 0; top: 0;
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	padding: 0.3rem 0.55rem;
	border: 2px solid var(--white);
	border-radius: 4px;
	background: var(--navy);
	color: var(--white);
	font: 700 0.75rem / 1 var(--font-sans);
	white-space: nowrap;
	box-shadow: 0 4px 10px -3px rgb(15 21 56 / 0.5);
	transform: translate(-50%, calc(-100% - 7px));
	transition: transform 0.15s var(--ease), background-color 0.15s;
}
.price-tag::after {
	content: "";
	position: absolute;
	left: 50%; bottom: -7px;
	width: 10px; height: 10px;
	background: inherit;
	border-right: 2px solid var(--white);
	border-bottom: 2px solid var(--white);
	transform: translateX(-50%) rotate(45deg);
}
.price-tag .icon { width: 0.9rem; height: 0.9rem; }
.price-tag--sold { background: #8a90a6; font-weight: 600; }
.leaflet-marker-icon:hover .price-tag,
.leaflet-marker-icon:focus .price-tag,
.leaflet-marker-icon.is-hot .price-tag { background: var(--sage-ink); transform: translate(-50%, calc(-100% - 7px)) scale(1.12); }
.leaflet-marker-icon:focus-visible { outline: none; }
.leaflet-marker-icon:focus-visible .price-tag { box-shadow: 0 0 0 3px var(--navy); }

/* Popup: the mini listing card */
.map-popup .leaflet-popup-content-wrapper { padding: 0; overflow: hidden; border-radius: var(--radius-card); box-shadow: var(--shadow-hover); }
.map-popup .leaflet-popup-content { width: 240px !important; margin: 0; font-family: var(--font-serif); line-height: 1.4; }
.map-popup .leaflet-popup-close-button { top: 6px !important; right: 6px !important; width: 26px !important; height: 26px !important; border-radius: 50%; background: rgb(255 255 255 / 0.92) !important; color: var(--navy) !important; font: 400 20px/24px var(--font-sans) !important; }
.map-card { display: block; color: var(--navy); text-decoration: none; }
.map-card img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.map-card__body { display: grid; gap: 0.25rem; justify-items: start; padding: 0.75rem 0.9rem 0.9rem; }
.map-card__body p { margin: 0 !important; }
.map-card__title { font: 700 1.125rem / 1.25 var(--font-serif); }
.map-card__place, .map-card__specs { color: var(--ink-soft); font-size: 0.875rem; }
.map-card__price { display: grid; margin-top: 0.3rem !important; padding-top: 0.45rem; width: 100%; border-top: 1px solid var(--line); font: 700 1rem / 1.2 var(--font-serif); }
.map-card__price span { color: var(--ink-soft); font: 700 0.625rem / 1.4 var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase; }
.map-card__more { margin-top: 0.3rem; color: var(--sage-ink); font: 700 0.875rem var(--font-serif); }
/* Leaflet's stylesheet loads after ours, so these carry the extra .homes-map. */
.homes-map.leaflet-container { font-family: var(--font-sans); }
.homes-map .leaflet-popup-content a.map-card,
.homes-map .leaflet-popup-content .map-card { color: var(--navy); }
.homes-map .leaflet-popup-content a.map-card:hover .map-card__more { color: var(--navy); }
.homes-map .leaflet-popup-content .map-card__more { color: var(--sage-ink); }
.homes-map .leaflet-control-attribution a { color: var(--ink-soft); }

/* Team ------------------------------------------------------------------------ */
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--space-3); }
/* Each card spans five shared rows (photo, name, title, quote, bio link), so
   quote boxes and links line up across a row and the boxes share a height. */
.team-card { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; align-items: start; justify-items: start; padding-bottom: var(--space-5); }
.team-card > .team-card__media { grid-row: 1; }
.team-card > .team-card__name { grid-row: 2; }
.team-card > .team-card__role { grid-row: 3; }
.team-card > .team-card__dream { grid-row: 4; align-self: stretch; justify-self: stretch; }
.team-card > .team-card__more { grid-row: 5; }
@supports not (grid-template-rows: subgrid) {
	.team-card { display: flex; flex-direction: column; align-items: flex-start; }
	.team-card > .team-card__dream { align-self: stretch; }
}
.team-card__media { display: block; width: 100%; padding: 0; border: 0; overflow: hidden; border-radius: var(--radius-card); background: var(--paper); box-shadow: 0 22px 34px -28px rgb(24 32 79 / 0.55); }
button.team-card__media { cursor: pointer; }
.team-card__img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 0.6s var(--ease); }
button.team-card__media:hover .team-card__img { transform: scale(1.03); }
.team-card__name { margin-top: 1rem; font: 700 1.3125rem / 1.25 var(--font-serif); letter-spacing: 0; }
.team-card__role { margin-top: 0.3rem; color: var(--sage-ink); font: 700 0.6875rem / 1.3 var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase; }
.team-card__dream { align-self: stretch; margin-top: 0.9rem; padding: 0.8rem 1rem 0.9rem; border-radius: var(--radius-card); background: var(--paper); }
.team-card__dream-label { color: #6f84a6; font: 700 0.625rem / 1.3 var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase; }
.team-card__dream-text { margin-top: 0.3rem; font: italic 400 0.9375rem / 1.45 var(--font-serif); }
.team-card__more { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.8rem; padding: 0; border: 0; background: none; color: var(--navy); font: 600 0.9375rem / 1.3 var(--font-serif); text-decoration: underline; text-decoration-color: var(--sage); text-underline-offset: 0.3em; cursor: pointer; }
.team-card__more .icon { width: 0.95em; height: 0.95em; transition: transform 0.25s var(--ease); }
.team-card__more:hover .icon { transform: rotate(90deg); }
@media (max-width: 1023px) { .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559px) { .team-grid { grid-template-columns: 1fr; } }

/* Bio pop-up */
.team-bio { width: min(56rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); overflow-y: auto; overscroll-behavior: contain; padding: 0; border: 0; border-radius: var(--radius-img); background: var(--white); color: var(--navy); box-shadow: 0 40px 80px -30px rgb(10 14 38 / 0.6); }
.team-bio::backdrop { background: rgb(10 14 38 / 0.55); }
.team-bio[open] { animation: bio-in 0.3s var(--ease); }
@keyframes bio-in { from { opacity: 0; transform: translateY(12px); } }
.team-bio__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; }
.team-bio__media img { width: 100%; height: 100%; min-height: 22rem; object-fit: cover; }
.team-bio__body { padding: var(--space-4) var(--space-4) var(--space-4); overflow-y: auto; }
.team-bio__name { font: 700 1.75rem / 1.2 var(--font-serif); }
.team-bio__text { margin-top: var(--space-2); font-size: 1rem; }
.team-bio__close { position: absolute; top: 0.75rem; right: 0.75rem; z-index: 1; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; padding: 0; border: 0; border-radius: 50%; background: rgb(255 255 255 / 0.92); color: var(--navy); cursor: pointer; box-shadow: 0 6px 16px -8px rgb(15 21 56 / 0.5); }
.bio-open { overflow: hidden; }
@media (max-width: 767px) {
	.team-bio__grid { grid-template-columns: 1fr; }
	.team-bio__media img { min-height: 0; aspect-ratio: 4 / 3; object-position: 50% 25%; }
	.team-bio__body { padding: var(--space-3); overflow: visible; }
}
@media (prefers-reduced-motion: reduce) { .team-bio[open] { animation: none; } }

/* Quote / statement ---------------------------------------------------------- */
.s-quote__figure { max-width: 52rem; margin: 0 auto; text-align: center; }
.s-quote__text p { color: var(--navy); font: 400 clamp(1.625rem, 1.2rem + 1.6vw, 2.5rem) / 1.3 var(--font-serif); }
.s-quote__text p::before, .s-quote__text p::after { color: var(--sage); }
.s-quote__cite { margin-top: var(--space-2); color: var(--sage-ink); font: 700 0.75rem / 1.3 var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase; }
.section--navy .s-quote__text p { color: var(--white); }

/* Blog: index and archives ----------------------------------------------------- */
.blog-head { padding-bottom: var(--space-3); }
.blog-head__title { margin-top: 0.4rem; }
.blog-head__intro { margin-top: var(--space-2); max-width: 58ch; }
.blog-topics { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: var(--space-3); }
.blog-topics .chip { text-decoration: none; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5) var(--space-3); }
.post-card { display: flex; flex-direction: column; }
.post-card__media { display: block; overflow: hidden; border-radius: var(--radius-img); background: var(--paper); }
.post-card__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.6s var(--ease); }
.post-card:hover .post-card__img { transform: scale(1.03); }
.post-card__body { display: flex; flex-direction: column; gap: 0.45rem; padding-top: 1rem; }
.post-card__topic { color: var(--sage-ink); font: 700 0.6875rem / 1.3 var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase; }
.post-card__title { font: 700 1.3125rem / 1.3 var(--font-serif); letter-spacing: 0; }
.post-card__title a { color: var(--navy); text-decoration: none; }
.post-card__title a:hover { text-decoration: underline; text-decoration-color: var(--sage); text-underline-offset: 0.2em; }
.post-card__excerpt { color: var(--ink-soft); font-size: 1rem; line-height: 1.55; }
.post-card__meta { margin-top: auto; padding-top: 0.3rem; color: var(--ink-soft); font: 500 0.8125rem / 1.4 var(--font-sans); }
.post-card--featured { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--space-4); align-items: center; margin-bottom: var(--space-5); padding-bottom: var(--space-5); border-bottom: 1px solid var(--line); }
.post-card--featured .post-card__body { padding-top: 0; }
.post-card--featured .post-card__title { font-size: clamp(1.625rem, 1.3rem + 1.1vw, 2.25rem); }
.post-card--featured .post-card__excerpt { font-size: 1.0625rem; }
.blog-pagination { margin-top: var(--space-5); }
.blog-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; }
.blog-pagination .page-numbers { display: inline-grid; place-items: center; min-width: 2.5rem; height: 2.5rem; padding: 0 0.6rem; border: 1px solid var(--line-strong); border-radius: var(--radius-card); color: var(--navy); font: 600 0.875rem / 1 var(--font-sans); text-decoration: none; }
.blog-pagination .page-numbers.current { background: var(--navy); border-color: var(--navy); color: var(--white); }
.blog-pagination .page-numbers.dots { border: 0; }
.blog-pagination .page-numbers .icon { width: 1rem; height: 1rem; }
@media (max-width: 1023px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .post-card--featured { grid-template-columns: 1fr; } }
@media (max-width: 639px) { .post-grid { grid-template-columns: 1fr; } }

/* Blog: single post */
.article-head { padding-bottom: var(--space-4); }
/* Title block, image, text and the closing prompt share one 58rem column. */
.article-head__inner { max-width: calc(58rem + 2 * var(--gutter)); }
.article-head .eyebrow a { color: inherit; text-decoration: none; }
.article-head__title { margin-top: 0.5rem; font-size: clamp(2rem, 1.5rem + 2vw, 3rem); line-height: 1.12; }
.article-head__meta { display: flex; flex-wrap: wrap; gap: 0.3rem 1.25rem; margin-top: var(--space-2); color: var(--ink-soft); font: 500 0.875rem / 1.4 var(--font-sans); }
.article-head__meta span:first-child { color: var(--navy); font-weight: 700; }
.article-head__media { max-width: calc(58rem + 2 * var(--gutter)); margin-top: var(--space-4); }
.article-head__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-img); }
.article-body { padding-bottom: var(--space-6); }
.article-body__content { max-width: 58rem; margin: 0 auto; font-size: 1.1875rem; line-height: 1.75; }
.article-body__content :where(h2) { font-size: clamp(1.5rem, 1.25rem + 0.9vw, 2rem); }
.article-body__content :where(img) { height: auto; border-radius: var(--radius-img); }
/* Wide tables scroll sideways inside the column instead of widening the page. */
.article-body__content table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.article-body__content :where(table) { width: 100%; border-collapse: collapse; font-size: 1rem; }
@media (max-width: 639px) { .article-body__content :where(table) { font-size: 0.875rem; } .article-body__content :where(th, td) { min-width: 7rem; } }
.article-body__content :where(th, td) { padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.article-body__content :where(th) { font: 700 0.8125rem / 1.3 var(--font-sans); letter-spacing: 0.04em; text-transform: uppercase; }
.article-cta { max-width: 58rem; margin: var(--space-5) auto 0; padding: var(--space-3); border-top: 3px solid var(--sage); border-radius: var(--radius-card); background: var(--paper); }
.article-cta__title { font: 700 1.375rem / 1.3 var(--font-serif); }
.article-cta__text { margin-top: 0.3rem; color: var(--ink-soft); }
.article-cta .btn-row { margin-top: var(--space-2); }

/* Contact ------------------------------------------------------------------------ */
.s-contact__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: var(--space-5); align-items: start; }
.s-contact__text { margin-top: var(--space-2); max-width: 42ch; }
.s-contact__list { display: grid; gap: var(--space-3); margin: var(--space-4) 0 0; }
.s-contact__list dt { display: flex; align-items: center; gap: 0.5rem; color: var(--sage-ink); font: 700 0.6875rem / 1.3 var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase; }
.s-contact__list dt .icon { width: 1rem; height: 1rem; color: var(--sage-dark); }
.s-contact__list dd { margin: 0.4rem 0 0; font: 400 1.25rem / 1.45 var(--font-serif); }
.s-contact__list dd a { color: var(--navy); }
.s-contact__list address { font-style: normal; }
.s-contact__directions { display: inline-block; margin-top: 0.3rem; font: 600 0.875rem / 1.3 var(--font-sans); text-decoration-color: var(--sage); text-underline-offset: 0.3em; }
.s-contact__cta { margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--line); }
.s-contact__cta p { margin-bottom: 0.8rem; color: var(--ink-soft); }
.s-contact__social { display: flex; gap: 0.5rem; margin-top: var(--space-3); }
.s-contact__social a { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 1px solid var(--line-strong); border-radius: var(--radius-card); color: var(--navy); transition: background-color 0.2s, color 0.2s; }
.s-contact__social a:hover { background: var(--navy); color: var(--white); }
.s-contact__social .icon { width: 1.1rem; height: 1.1rem; }
.s-contact__form-title { margin-bottom: var(--space-2); font: 700 1.5rem / 1.25 var(--font-serif); letter-spacing: 0; }
.s-contact__map { margin-top: var(--space-5); }
.s-contact__map iframe { display: block; width: 100%; height: clamp(18rem, 40vw, 26rem); border: 0; border-radius: var(--radius-img); filter: saturate(0.85); }
@media (max-width: 899px) { .s-contact__grid { grid-template-columns: 1fr; } }

/* Areas We Serve: hub and area pages -------------------------------------------- */
.area-hero { padding-bottom: var(--space-4); }
.area-hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); align-items: center; }
.area-hero__grid > * { min-width: 0; }
.area-hero__title { margin-top: 0.4rem; font-size: clamp(2.25rem, 1.6rem + 2.2vw, 3.25rem); }
.area-hero__answer { margin-top: var(--space-2); max-width: 56ch; }
.area-hero .btn-row { margin-top: var(--space-3); }
.area-hero__media { overflow: hidden; border-radius: var(--radius-img); box-shadow: 0 30px 50px -36px rgb(24 32 79 / 0.5); }
.area-hero__media { position: relative; }
.area-hero__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.area-hero__credit { position: absolute; right: 0.5rem; bottom: 0.5rem; max-width: calc(100% - 1rem); margin: 0; padding: 0.25rem 0.55rem; border-radius: 2px; background: rgb(15 21 56 / 0.62); color: rgb(255 255 255 / 0.92); font: 500 0.6875rem / 1.35 var(--font-sans); text-align: right; text-wrap: balance; }
.area-hero__credit a { color: inherit; text-decoration: none; }
.area-hero__credit a:hover { text-decoration: underline; }
.area-hero--hub .area-hero__answer { max-width: 64ch; }
.area-hero__grid--solo { grid-template-columns: minmax(0, 52rem); }
@media (max-width: 899px) { .area-hero__grid { grid-template-columns: 1fr; } .area-hero__media { order: -1; } }

.area-facts__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--line); }
.area-fact { display: grid; align-content: start; gap: 0.4rem; padding: 1.1rem 1.25rem 1.25rem; background: var(--white); }
.area-fact dt { color: var(--sage-ink); font: 700 0.6875rem / 1.3 var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase; }
.area-fact dd { margin: 0; font: 400 1.0625rem / 1.45 var(--font-serif); }
.area-fact__src { margin-left: 0.3rem; color: var(--ink-soft); font: 600 0.75rem / 1 var(--font-sans); text-decoration-color: var(--sage); }
.area-facts__note { margin-top: 0.9rem; color: var(--ink-soft); font: 500 0.8125rem / 1.5 var(--font-sans); }
/* Never leave an empty cell: 4 or 8 facts sit four across; 2 two across; a
   lone last fact (7, 10…) spans the row. */
.area-facts__grid[data-count="4"], .area-facts__grid[data-count="8"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.area-facts__grid[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.area-facts__grid[data-count="5"] { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.area-facts__grid[data-count="5"] .area-fact { grid-column: span 2; }
.area-facts__grid[data-count="5"] .area-fact:nth-child(n+4) { grid-column: span 3; }
.area-facts__grid[data-count="7"] .area-fact:last-child, .area-facts__grid[data-count="10"] .area-fact:last-child { grid-column: 1 / -1; }
@media (max-width: 1023px) { .area-facts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1023px) { .area-facts__grid[data-count] { grid-template-columns: repeat(2, minmax(0, 1fr)); } .area-facts__grid[data-count] .area-fact { grid-column: auto; } .area-facts__grid[data-count] .area-fact:nth-child(odd):last-child { grid-column: 1 / -1; } }
@media (max-width: 599px) { .area-facts__grid[data-count], .area-facts__grid { grid-template-columns: 1fr; } }

.area-sold { margin-top: var(--space-3); color: var(--ink-soft); font-size: 1rem; }
.area-sold span { color: var(--navy); font: 700 0.75rem / 1 var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase; }
.area-map { height: clamp(18rem, 36vw, 26rem); margin-top: var(--space-4); }
.area-map--hub { height: clamp(22rem, 45vw, 34rem); margin-top: 0; }
.price-tag--area { background: var(--sage-ink); font-family: var(--font-serif); font-size: 0.875rem; font-weight: 700; letter-spacing: 0; cursor: pointer; }
.leaflet-marker-icon.price-tag-icon--area:hover .price-tag,
.leaflet-marker-icon.price-tag-icon--area:focus .price-tag { background: var(--navy); }

.area-guide__items { display: grid; gap: var(--space-4); }
.area-guide__title { font: 700 1.375rem / 1.3 var(--font-serif); letter-spacing: 0; }
.area-guide__item .prose { margin-top: 0.6rem; }

.area-links__title { font: 700 1.375rem / 1.3 var(--font-serif); letter-spacing: 0; }
.area-links__title a { color: var(--navy); text-decoration-color: var(--sage); text-underline-offset: 0.2em; }
.area-links__list { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: var(--space-2); }
.area-link { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.7rem 1rem; border: 1px solid var(--line-strong); border-radius: var(--radius-card); background: var(--white); color: var(--navy); font: 600 0.9375rem / 1 var(--font-sans); text-decoration: none; transition: border-color 0.2s, background-color 0.2s; }
.area-link .icon { width: 1rem; height: 1rem; color: var(--sage-dark); transition: transform 0.25s var(--ease); }
.area-link:hover { border-color: var(--navy); }
.area-link:hover .icon { transform: translateX(3px); }

.area-cta__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.area-cta__panel { display: grid; align-content: start; justify-items: start; gap: 0.7rem; padding: clamp(1.5rem, 3vw, 2.5rem); border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--white); }
.area-cta__panel--navy { border-color: var(--navy); background: var(--navy); color: rgb(255 255 255 / 0.85); }
.area-cta__panel--navy .eyebrow { color: var(--sage); }
.area-cta__title { font-size: clamp(1.5rem, 1.25rem + 0.9vw, 2rem); }
.area-cta__panel--navy .area-cta__title { color: var(--white); }
@media (max-width: 767px) { .area-cta__grid { grid-template-columns: 1fr; } }

.area-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
.area-card { position: relative; display: flex; flex-direction: column; gap: 0.4rem; padding: var(--space-3); border: 1px solid var(--line); border-top: 3px solid var(--sage); border-radius: var(--radius-card); background: var(--white); transition: box-shadow 0.25s, transform 0.25s var(--ease); }
.area-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.area-card__juris { color: var(--sage-ink); font: 700 0.6875rem / 1.3 var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase; }
.area-card__title { font: 700 1.5rem / 1.2 var(--font-serif); letter-spacing: 0; }
.area-card__title a { color: var(--navy); text-decoration: none; }
.area-card__title a::after { content: ""; position: absolute; inset: 0; }
.area-card__count { color: var(--ink-soft); font: 600 0.875rem / 1.3 var(--font-sans); }
.area-card__hoods { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 0.3rem 0.9rem; margin-top: 0.3rem; }
.area-card__hoods a { color: var(--navy); font-size: 0.9375rem; text-decoration-color: var(--sage); text-underline-offset: 0.2em; }
.area-card__more { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: auto; padding-top: 0.8rem; color: var(--sage-ink); font: 600 0.9375rem / 1.3 var(--font-serif); }
.area-card__more .icon { width: 1rem; height: 1rem; transition: transform 0.25s var(--ease); }
.area-card:hover .area-card__more .icon { transform: translateX(3px); }
@media (max-width: 1023px) { .area-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .area-cards { grid-template-columns: 1fr; } }
.area-office { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-2); margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--line); }
.area-office__title { margin-top: 0.3rem; font: 700 1.375rem / 1.3 var(--font-serif); }
.area-office address { margin-top: 0.3rem; color: var(--ink-soft); font-style: normal; }
.area-more { margin-top: var(--space-4); }
.admin-bar { --sticky-top: calc(var(--header-h) + 3.5rem + var(--wp-admin--admin-bar--height, 32px)); }

/* Areas: living guide, history, neighborhoods ------------------------------------ */
.area-reviewed { color: var(--ink-soft); font: 500 0.8125rem / 1.4 var(--font-sans); }
.area-reviewed::before { content: ""; display: inline-block; width: 0.5rem; height: 0.5rem; margin-right: 0.45rem; border-radius: 50%; background: var(--sage); vertical-align: 0.05em; }
.section-head .area-reviewed { margin-top: 0.6rem; }
.area-living__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
.living-card { display: flex; flex-direction: column; gap: 0.7rem; padding: var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--white); }
.living-card__icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: rgb(164 194 158 / 0.25); color: var(--sage-ink); }
.living-card__icon .icon { width: 1.4rem; height: 1.4rem; }
.living-card__title { font: 700 1.25rem / 1.25 var(--font-serif); letter-spacing: 0; }
.living-card__list { display: grid; gap: 0.55rem; }
.living-card__list li { padding-bottom: 0.55rem; border-bottom: 1px solid var(--line); font-size: 0.9875rem; line-height: 1.45; }
.living-card__list li:last-child { padding-bottom: 0; border-bottom: 0; }
.living-card__list strong { color: var(--navy); font-weight: 700; }
.living-card__list span { color: var(--ink-soft); }
.living-card__link { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: auto; padding-top: 0.4rem; color: var(--sage-ink); font: 600 0.875rem / 1.3 var(--font-sans); text-decoration: none; }
.living-card__link .icon { width: 0.9rem; height: 0.9rem; }
.living-card__link:hover { color: var(--navy); }
@media (max-width: 1023px) { .area-living__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .area-living__grid { grid-template-columns: 1fr; } }

.area-history { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: var(--space-5); margin-top: var(--space-5); padding: clamp(1.75rem, 4vw, 3rem); border-radius: var(--radius-card); background: var(--navy); color: rgb(255 255 255 / 0.85); }
.area-history .eyebrow { color: var(--sage); }
.area-history__text { margin-top: 0.8rem; font: 400 1.1875rem / 1.6 var(--font-serif); }
.area-timeline { position: relative; display: grid; gap: 1.1rem; padding-left: 1.5rem; }
.area-timeline::before { content: ""; position: absolute; left: 0.3rem; top: 0.5rem; bottom: 0.5rem; width: 1px; background: rgb(164 194 158 / 0.5); }
.area-timeline li { position: relative; display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; align-items: baseline; }
.area-timeline li::before { content: ""; position: absolute; left: -1.5rem; top: 0.45rem; width: 0.65rem; height: 0.65rem; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 4px var(--navy); }
.area-timeline__year { color: var(--white); font: 700 1.25rem / 1.2 var(--font-serif); }
.area-timeline__text { line-height: 1.5; }
.area-history--solo { grid-template-columns: 1fr; }
.area-history--solo .area-history__text { max-width: 70ch; }
@media (max-width: 899px) { .area-history { grid-template-columns: 1fr; gap: var(--space-3); } }

.hood-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-2); }
.hood { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 0.45rem; padding: 1.1rem 1.2rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--white); }
.hood--linked { border-top: 3px solid var(--sage); transition: box-shadow 0.25s, transform 0.25s var(--ease); }
.hood--linked:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.hood__name { font: 700 1.1875rem / 1.25 var(--font-serif); }
.hood__name a { color: var(--navy); text-decoration: none; }
.hood__name a::after { content: ""; position: absolute; inset: 0; }
.hood__badge { padding: 0.25rem 0.55rem; border-radius: 2px; background: var(--navy); color: var(--white); font: 700 0.625rem / 1.2 var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase; }
.hood__note { color: var(--ink-soft); font-size: 0.9375rem; line-height: 1.45; }
.hood__more { display: inline-flex; align-items: center; gap: 0.3rem; margin-top: auto; color: var(--sage-ink); font: 600 0.875rem / 1.3 var(--font-serif); }
.hood__more .icon { width: 0.9rem; height: 0.9rem; }
@media (max-width: 1023px) { .hood-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 479px) { .hood-grid { grid-template-columns: 1fr; } }

.area-allhoods { margin-top: var(--space-4); }
.area-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: var(--space-2); }
.area-chip { display: inline-flex; align-items: baseline; gap: 0.4rem; padding: 0.55rem 0.85rem; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--white); color: var(--navy); font: 600 0.9375rem / 1.2 var(--font-serif); text-decoration: none; }
.area-chip small { color: var(--ink-soft); font: 500 0.75rem / 1 var(--font-sans); }
.area-chip em { color: var(--sage-ink); font: 700 0.6875rem / 1 var(--font-sans); font-style: normal; letter-spacing: 0.04em; text-transform: uppercase; }
.area-chip--linked { border-color: var(--line-strong); }
.area-chip--linked:hover { border-color: var(--navy); }

/* ==========================================================================
   Light blue accent (client, Oct 26, 2026) — changelog #59.
   Every use of the light blue lives in this block, so reverting is deleting
   it (the --blue tokens in :root can stay). Contrast: navy on --blue 10.6:1,
   --blue on navy 10.6:1. It is never used for text on a light background.
   ========================================================================== */

/* 1. (The closing band's light blue was replaced by the band styles, Oct 27.) */

/* 2. Header "Schedule a Consultation": light blue on hover. */
.site-header__cta:hover, .site-header__cta:focus-visible { background: var(--blue); border-color: var(--blue); color: var(--navy); }

/* 3. White buttons on navy panels: light blue on hover. */
.btn--light:hover { background: var(--blue); border-color: var(--blue); color: var(--navy); }

/* 4. Footer links: light blue on hover. */
.site-footer a:hover { color: var(--blue); }

/* 5. Team "Dream home must-have" boxes. */
.team-card__dream { background: var(--blue-soft); }
.team-card__dream-label { color: var(--blue-ink); }

/* 6. Blog post closing prompt. */
.article-cta { background: var(--blue-soft); border-top-color: var(--blue); }

/* 7. Area history timeline (on navy). */
.area-timeline::before { background: rgb(201 216 223 / 0.45); }
.area-timeline li::before { background: var(--blue); }
.area-history .eyebrow { color: var(--blue); }

/* 8. Text selection. */
::selection { background: var(--blue); color: var(--navy-deep); }
