/* Evercrest landing: the bits theme.json can't express. Colors + fonts live in theme.json.
   Desktop values follow the "Evercrest Home" design (1440 container, 48px gutter);
   below 1100px two-column sections stack, below 640px everything goes single column. */

:root {
	--ec-ink: var(--wp--preset--color--contrast);
	--ec-bg: var(--wp--preset--color--base);
	--ec-sand: var(--wp--preset--color--accent-5);
	--ec-muted: #777;
	--ec-body: #666;
	--ec-line: rgb(0 0 0 / 0.1);
	--ec-gutter: 48px;
	--ec-mono-font: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
	--ec-display: var(--wp--preset--font-family--archivo);
	--ec-ease: cubic-bezier(0.22, 1, 0.36, 1);
}
@media (max-width: 768px) {
	:root { --ec-gutter: 24px; }
}

/* In-page nav jumps land below the sticky header (+ admin bar) instead of under it. */
html { scroll-padding-top: calc(var(--wp-admin--admin-bar--height, 0px) + 110px); }

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
::selection {
	background: var(--ec-ink);
	color: var(--ec-bg);
}
/* Sections sit flush: no blockGap between header / main / footer or inside our blocks.
   Specific margins below win by source order. */
.wp-site-blocks > * + * { margin-block-start: 0; }
[class*="ec-"] > * { margin-block: 0; }

/* ---------- Shared ---------- */
.ec-wrap {
	max-width: 1440px;
	margin-inline: auto;
	padding-inline: var(--ec-gutter);
}
.ec-mono {
	font-family: var(--ec-mono-font);
	font-size: 11px;
	line-height: 1.6;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ec-muted);
}
.ec-eyebrow {
	margin-bottom: 14px !important;
	font-family: var(--ec-display);
	font-size: 11px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: #555;
}
.ec-body { color: var(--ec-body); font-size: 16px; line-height: 1.6; }
.ec-dim { color: #9a968f; }
.ec-link { font-size: 13px; font-weight: 600; }
.ec-link a {
	padding-bottom: 2px;
	border-bottom: 1.5px solid currentColor;
	transition: opacity 0.3s;
}
.ec-link a:hover { opacity: 0.6; }
a { transition: color 0.2s, opacity 0.2s; }

/* Headings: theme.json gives Archivo 900 uppercase; sizes per design. */
.ec-wrap h2,
.ec-spotlight h2 {
	font-size: clamp(36px, 4.2vw, 60px);
	line-height: 0.92;
	letter-spacing: -0.02em;
}
.ec-wrap h2.ec-h2-xl { font-size: clamp(40px, 5vw, 72px); line-height: 0.9; }
.ec-wrap h2.ec-h2-xxl { font-size: clamp(48px, 6.7vw, 96px); line-height: 0.88; }

/* Buttons: pill, per design (600 14px, 14/26). */
.wp-element-button {
	font-weight: 600;
	padding: 14px 26px;
	transition: background-color 0.2s, color 0.2s;
}
.wp-element-button:hover { background: #333; color: #fff; }
.is-style-outline .wp-element-button {
	border: 1px solid rgb(0 0 0 / 0.18);
	background: transparent;
	color: var(--ec-ink);
}
.is-style-outline .wp-element-button:hover { background: #fff; color: var(--ec-ink); }
.ec-btn-sm .wp-element-button { padding: 11px 20px; font-size: 13px; }

/* Striped image placeholder with a centered mono label. */
.ec-ph {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: repeating-linear-gradient(135deg, #dcdcd8 0 10px, #d4d4cf 10px 20px);
	font-family: var(--ec-mono-font);
	font-size: 11px;
	color: #72726c;
	text-align: center;
}
/* Image block filling a placeholder: empty = stripes + label show through (editor shows Upload); set = photo covers them. */
.ec-ph > .ec-ph-img { position: absolute; inset: 0; margin: 0; }
.ec-ph-img img,
.ec-ph-img .components-resizable-box__container { width: 100% !important; height: 100% !important; object-fit: cover; }
.ec-ph-img .components-placeholder { height: 100%; min-height: 0; justify-content: center; }
/* Featured images from the Residences / Regions collections. */
.ec-ph > img,
.ec-spotlight > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ec-spotlight > img { filter: brightness(0.72); } /* Keeps the white title readable on bright photos. */
.ec-ph-img img:not([src]),
.ec-ph > img:not([src]) { display: none; }

/* Section header: title left, actions right. */
.ec-section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px 40px;
	margin-bottom: 40px;
}
.ec-head-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 28px;
}

/* ---------- Header (sticky) ---------- */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 20;
}
/* The admin bar scrolls away on phones, so don't leave its height as a gap above the sticky nav. */
@media (max-width: 600px) {
	.wp-site-blocks > header.wp-block-template-part { top: 0; }
}
.ec-nav {
	background: rgb(251 250 248 / 0.86);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid rgb(0 0 0 / 0.06);
}
.ec-nav-inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 16px;
	padding-block: 18px;
}
.ec-brand { gap: 10px; }
/* Block-level so the inline line box doesn't push the logo below the wordmark's center. */
.ec-brand a:has(img),
.ec-brand img { display: block; transition: transform 0.5s; }
.ec-brand:hover img { transform: rotate(-6deg); }
.ec-wordmark {
	font-family: var(--ec-display);
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}
.ec-wordmark a:hover { text-decoration: none; }
.ec-pill .wp-block-navigation__container {
	gap: 4px;
	padding: 5px;
	border: 1px solid var(--ec-line);
	border-radius: 999px;
	background: #fff;
}
.ec-pill .wp-block-navigation-item__content {
	padding: 8px 16px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 500;
	transition: background-color 0.2s;
}
.ec-pill .wp-block-navigation-item__content:hover { background: #f1efeb; }
.ec-nav-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 24px;
}
.ec-nav-phone { font-size: 13px; font-weight: 500; white-space: nowrap; }
.ec-nav-phone a { color: #555; }
.ec-nav-phone a:hover { color: var(--ec-ink); }
@media (max-width: 1100px) {
	.ec-nav-phone { display: none; }
}
/* Nav block is set to overlayMenu "always" so the burger breakpoint is ours (860px), not core's fixed 600px.
   Above it, show the pill inline and hide the burger — mirrors core's own "mobile" overlay rules. */
@media (min-width: 861px) {
	.ec-pill .wp-block-navigation__responsive-container-open { display: none; }
	.ec-pill .wp-block-navigation__responsive-container:not(.is-menu-open) {
		display: block;
		position: relative;
		width: 100%;
		z-index: auto;
		background-color: inherit;
	}
	.ec-pill .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__responsive-container-close { display: none; }
}
@media (max-width: 860px) {
	.ec-nav-inner { grid-template-columns: 1fr auto auto; }
	.ec-nav .ec-pill { order: 3; } /* burger sits after "Book a viewing", far right */
}
/* backdrop-filter makes .ec-nav the containing block for fixed children, which would trap the overlay inside the header bar. */
.ec-nav:has(.is-menu-open) { backdrop-filter: none; }
.ec-pill .is-menu-open .wp-block-navigation__container {
	gap: 20px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
}
.ec-pill .is-menu-open .wp-block-navigation-item__content {
	padding: 0;
	font-family: var(--ec-display);
	font-size: 34px;
	font-weight: 700;
	letter-spacing: -0.02em;
}
.ec-pill .is-menu-open .wp-block-navigation-item__content:hover { background: none; }
/* Clicks (and core's auto-focus when the overlay opens) shouldn't ring the links; keyboard focus still does. */
.ec-pill .wp-block-navigation-item__content:focus:not(:focus-visible) { outline: none; }

/* ---------- Motion ----------
   Page load: hero cascade. Scroll: .ec-reveal / .ec-reveal-group (assets/js/evercrest.js).
   Hidden state only applies once JS has flagged <html>, so no-JS visitors still see everything. */
@keyframes ec-rise {
	from {
		opacity: 0;
		transform: translateY(18px);
	}
}
@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
	.ec-hero-top > * { animation: ec-rise 0.9s 0.12s var(--ec-ease) both; }
	.ec-hero-lead { animation-delay: 0.2s !important; }
	.ec-hero-strip { animation: ec-rise 0.9s 0.28s var(--ec-ease) both; }

	.ec-js .ec-reveal,
	.ec-js .ec-reveal-group > * {
		opacity: 0;
		transform: translateY(26px);
		transition: opacity 0.7s var(--ec-ease), transform 0.7s var(--ec-ease);
		transition-delay: calc(var(--ec-i, 0) * var(--ec-stagger, 0.12s));
	}
	.ec-js .ec-reveal.is-in,
	.ec-js .ec-reveal-group.is-in > * {
		opacity: 1;
		transform: none;
	}
}
.ec-stats { --ec-stagger: 0.1s; }

/* ---------- Hero ---------- */
.ec-hero-top { padding: 64px 16px 32px; }
.ec-hero h1 {
	font-size: clamp(40px, 5.8vw, 80px);
	font-weight: 800;
	line-height: 0.95;
	letter-spacing: -0.035em;
	color: #0a0a0a;
}
.ec-hero-lead {
	max-width: 46ch;
	margin: 24px auto 0 !important;
	font-size: clamp(15px, 1.6vw, 19px);
	line-height: 1.6;
	color: #6b6b6b;
	text-wrap: pretty;
}
/* Concave strip: the #ec-hero-curve clipPath (in the pattern, objectBoundingBox units) pinches the
   top and bottom edges inward at the center, so the curve scales with the strip. */
.ec-hero-strip {
	display: flex;
	gap: 3px;
	height: 88vh;
	clip-path: url(#ec-hero-curve);
}
.ec-hero-strip > .ec-ph { flex: 1; }
.ec-hero-strip > .ec-ph:nth-child(1) { flex: 1.1; }
.ec-hero-strip > .ec-ph:nth-child(2) { flex: 1.6; }
.ec-hero-strip > .ec-ph:nth-child(3) { flex: 1.5; }
.ec-hero-strip img { transition: transform 1.2s ease-out; }
.ec-hero-strip > .ec-ph:hover img { transform: scale(1.06); }
/* Soft vignette top and bottom to seat the curve. */
.ec-hero-strip > .ec-ph::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(180deg, rgba(10, 10, 10, 0.18) 0%, rgba(10, 10, 10, 0) 22%, rgba(10, 10, 10, 0) 78%, rgba(10, 10, 10, 0.18) 100%);
}
@media (max-width: 767px) {
	.ec-hero-top { padding: 48px 16px 24px; }
	.ec-hero-lead { margin-top: 20px !important; }
	.ec-hero-strip { height: 60vh; }
	.ec-hero-strip > .ec-ph:nth-child(4) { display: none; }
}

/* ---------- Statement ---------- */
.ec-statement {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 24px;
	padding-block: 140px 120px;
}
.ec-statement-label { grid-column: 1 / span 3; padding-top: 14px; letter-spacing: 0.12em; }
.ec-statement-text {
	grid-column: 4 / span 9;
	font-family: var(--ec-display);
	font-size: clamp(26px, 3.05vw, 44px);
	font-weight: 500;
	line-height: 1.18;
	letter-spacing: -0.025em;
	text-wrap: pretty;
}
@media (max-width: 900px) {
	.ec-statement { padding-block: 88px 72px; }
	.ec-statement-label,
	.ec-statement-text { grid-column: 1 / -1; }
}

/* ---------- Residences ---------- */
.ec-residences { padding-bottom: 140px; }
.ec-tabs {
	display: flex;
	gap: 4px;
	padding: 4px;
	border-radius: 999px;
	background: var(--ec-sand);
}
.ec-tabs button {
	padding: 8px 16px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	font: 500 13px var(--wp--preset--font-family--barlow);
	color: #666;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.ec-tabs button[aria-pressed="true"] {
	background: #fff;
	color: var(--ec-ink);
	box-shadow: 0 1px 3px rgb(0 0 0 / 0.1);
}
.ec-res-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	grid-auto-flow: dense;
	gap: 24px;
	counter-reset: ec-res;
}
.ec-res-card {
	display: flex;
	flex-direction: column;
	gap: 14px;
	counter-increment: ec-res;
}
.ec-res-card[hidden] { display: none; }
/* Editorial rhythm: visible cards 1, 4, 5, 8… span two columns. Recounts after filtering. */
.ec-res-card:nth-child(4n + 1 of .ec-res-card:not([hidden])),
.ec-res-card:nth-child(4n of .ec-res-card:not([hidden])) { grid-column: span 2; }
.ec-res-media { height: clamp(260px, 28vw, 420px); }
.ec-res-media img { transition: transform 0.9s ease-out; }
/* Whole card is clickable: the title link stretches over it. */
.ec-res-card { position: relative; }
.ec-res-name a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.ec-res-card:hover .ec-res-media img { transform: scale(1.04); }
.ec-res-card:has(a:focus-visible) { outline: 2px solid var(--ec-ink); outline-offset: 6px; }
.ec-res-name a:focus-visible { outline: none; }
/* Number badge (01, 02…) follows the visible order. */
.ec-res-media::before {
	content: counter(ec-res, decimal-leading-zero);
	position: absolute;
	z-index: 1;
	top: 14px;
	left: 14px;
	padding: 4px 8px;
	border-radius: 4px;
	background: #fff;
	font: 600 11px var(--ec-mono-font);
	color: var(--ec-ink);
}
.ec-res-status {
	position: absolute;
	top: 14px;
	right: 14px;
	padding: 5px 10px;
	border-radius: 999px;
	background: rgb(17 17 17 / 0.85);
	font: 500 12px var(--wp--preset--font-family--barlow);
	color: #fff;
}
.ec-res-meta {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
}
.ec-res-name { font-size: 18px; font-weight: 600; line-height: 1.2; }
.ec-res-place { margin-top: 2px !important; font-size: 14px; line-height: 1.5; color: var(--ec-muted); }
.ec-res-price { font-size: 16px; font-weight: 500; white-space: nowrap; }
@media (max-width: 900px) {
	.ec-residences { padding-bottom: 88px; }
	.ec-res-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	.ec-res-grid { grid-template-columns: 1fr; }
	.ec-res-grid .ec-res-card:nth-child(n of .ec-res-card:not([hidden])) { grid-column: auto; }
	.ec-res-media { height: 300px; }
	.ec-res-meta { flex-direction: column; gap: 4px; }
}

/* ---------- Spotlight ---------- */
.ec-spotlight {
	position: relative;
	height: 760px;
	overflow: hidden;
	background: repeating-linear-gradient(135deg, #2a2d2c 0 10px, #252827 10px 20px);
	color: #fff;
}
.ec-spot-label {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	letter-spacing: 0;
	text-transform: none;
	color: #6f7572;
}
.ec-spot-inner {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	height: 100%;
	padding-block: 64px;
}
.ec-spot-top {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	letter-spacing: 0.12em;
	color: #c9ccca;
}
.ec-spot-bottom {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 420px;
	align-items: end;
	gap: 48px;
}
.ec-spotlight h2.ec-spot-title {
	font-size: clamp(56px, 8.3vw, 120px);
	line-height: 0.85;
	letter-spacing: -0.03em;
}
.ec-spot-card {
	padding: 28px;
	border-radius: 6px;
	background: var(--ec-bg);
	color: var(--ec-ink);
}
.ec-spot-specs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px 24px;
}
.ec-spot-value {
	margin-top: 4px !important;
	font-family: var(--ec-display);
	font-size: 28px;
	font-weight: 700;
}
.ec-spot-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 24px !important;
	padding-top: 24px;
	border-top: 1px solid var(--ec-line);
}
.ec-spot-price { font-size: 20px; font-weight: 600; }
@media (max-width: 900px) {
	.ec-spotlight { height: auto; min-height: 640px; }
	.ec-spot-inner { min-height: 640px; gap: 48px; padding-block: 48px; }
	.ec-spot-bottom { grid-template-columns: 1fr; }
	.ec-spot-card { max-width: 420px; }
}

/* Residence page (single-residence.html): hero fits the screen below the sticky header, so the title shows on load. */
@media (min-width: 901px) {
	.single-residence .ec-spotlight { height: max(560px, calc(100svh - var(--wp-admin--admin-bar--height, 0px) - 86px)); }
}
.ec-res-detail { padding-block: 64px 120px; }
.ec-res-content { max-width: 720px; margin-top: 40px !important; font-size: 18px; }
.ec-res-content > * + * { margin-top: 1.2em; }

/* ---------- Approach ---------- */
.ec-approach {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 80px;
	padding-block: 140px;
}
.ec-approach-intro {
	position: sticky;
	top: 120px;
	align-self: start;
}
.ec-approach-intro .ec-body { max-width: 380px; margin-top: 24px !important; }
.ec-approach-img {
	height: 280px;
	margin-top: 40px !important;
	background: repeating-linear-gradient(135deg, #e2e0db 0 10px, #dbd9d3 10px 20px);
}
.ec-steps { border-bottom: 1px solid var(--ec-line); }
.ec-step {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr) 180px;
	gap: 24px;
	padding-block: 40px;
	border-top: 1px solid var(--ec-line);
}
.ec-step-num { padding-top: 8px; font-size: 13px; letter-spacing: 0; color: #999; }
.ec-step h3 {
	font-family: var(--ec-display);
	font-size: clamp(24px, 2.2vw, 32px);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.02em;
}
.ec-step .ec-body { max-width: 460px; margin-top: 14px !important; }
.ec-step-time { padding-top: 8px; text-align: right; }
@media (max-width: 1100px) {
	.ec-approach { grid-template-columns: 1fr; gap: 56px; padding-block: 96px; }
	.ec-approach-intro { position: static; }
}
@media (max-width: 640px) {
	.ec-step { grid-template-columns: 40px minmax(0, 1fr); gap: 8px 16px; padding-block: 32px; }
	.ec-step-time { grid-column: 2; padding-top: 0; text-align: left; }
}

/* ---------- Stats (dark band, numbers count up) ---------- */
.ec-stats-band {
	border-block: 1px solid rgb(0 0 0 / 0.08);
}
.ec-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	padding-block: 88px;
}
.ec-stat-item {
	padding-block: 8px;
	text-align: center;
	border-left: 1px solid #2a2a2a;
}
.ec-stat-item:first-child { border-left: 0; }
.ec-stat {
	font-family: var(--ec-display);
	font-size: clamp(44px, 5.6vw, 80px);
	font-weight: 900;
	line-height: 1;
	letter-spacing: -0.03em;
	font-variant-numeric: tabular-nums;
}
.ec-stat-label {
	margin-top: 14px !important;
	font-family: var(--ec-display);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	opacity: 0.6;
}
/* Screen-reader copy of the stat value; the visible one counts up (evercrest.js). */
.ec-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
@media (max-width: 768px) {
	.ec-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; padding-block: 64px; }
	.ec-stat-item:nth-child(odd) { border-left: 0; }
}

/* ---------- Index ---------- */
.ec-index {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	align-items: start;
	gap: 64px;
	padding-block: 140px;
}
.ec-index .ec-section-head { margin-bottom: 32px; }
.ec-regions { border-bottom: 1px solid var(--ec-line); }
.ec-region {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr) auto 32px;
	align-items: center;
	gap: 16px;
	padding-block: 22px;
	border-top: 1px solid var(--ec-line);
	transition: opacity 0.2s;
}
.ec-region .ec-mono { font-size: 12px; letter-spacing: 0; color: #999; }
.ec-region-name {
	font-family: var(--ec-display);
	font-size: clamp(24px, 2.4vw, 34px);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.02em;
}
.ec-region-name a { color: inherit; }
.ec-region-count { font-size: 15px; font-weight: 500; color: var(--ec-body); }
.ec-region-arrow { font-size: 20px; font-weight: 500; text-align: right; transition: transform 0.2s; }
/* Hovered/focused region stays solid; the rest fade back. */
.ec-regions:has(.is-active) .ec-region:not(.is-active) { opacity: 0.35; }
.ec-region:not(.is-active) .ec-region-arrow { transform: translateX(-8px); }
.ec-index-media { position: sticky; top: 120px; }
.ec-index-img {
	height: 560px;
	border-radius: 4px;
	background: repeating-linear-gradient(135deg, #dcdad4 0 10px, #d4d2cb 10px 20px);
}
.ec-index-img img.is-entering { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
	.ec-index-img img { transition: opacity 0.6s var(--ec-ease); }
}
.ec-index-caption {
	display: flex;
	justify-content: space-between;
	margin-top: 14px !important;
	font-size: 13px;
	color: var(--ec-body);
}
@media (max-width: 1100px) {
	.ec-index { grid-template-columns: 1fr; gap: 48px; padding-block: 96px; }
	.ec-index-media { position: static; }
	.ec-index-img { height: 380px; }
}
@media (max-width: 640px) {
	.ec-region { grid-template-columns: 32px minmax(0, 1fr) auto; }
	.ec-region-arrow { display: none; }
}

/* ---------- Carousels (testimonials, journal): Swiper, set up in evercrest.js ---------- */
.ec-track .swiper-wrapper > * { margin: 0; }
.ec-carousel-nav {
	display: flex;
	align-items: center;
	gap: 8px;
}
.ec-carousel-nav [data-ec-count] { margin-right: 12px; font-size: 12px; }
.ec-arrow {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 1px solid rgb(0 0 0 / 0.18);
	border-radius: 50%;
	background: transparent;
	font: 500 18px var(--wp--preset--font-family--barlow);
	color: var(--ec-ink);
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s;
}
.ec-arrow:hover { background: var(--ec-ink); color: #fff; }

/* ---------- Testimonials ---------- */
.ec-testimonial { background: var(--ec-sand); }
.ec-testimonial-inner { padding-block: 120px; }
.ec-quote-slide {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	align-items: center;
	gap: 24px;
}
.ec-quote-img {
	grid-column: 1 / span 4;
	height: 440px;
	background: repeating-linear-gradient(135deg, #dddad3 0 10px, #d5d2ca 10px 20px);
}
.ec-quote-img img { object-position: top; }
.ec-quote-body { grid-column: 6 / span 7; }
.ec-quote-mark {
	font-family: var(--ec-display);
	font-size: 96px;
	font-weight: 900;
	line-height: 0.6;
	color: #c5c1b8;
}
.ec-quote {
	margin-top: 16px !important;
	font-family: var(--ec-display);
	font-size: clamp(24px, 2.5vw, 36px);
	font-weight: 500;
	line-height: 1.25;
	letter-spacing: -0.02em;
	text-wrap: pretty;
}
.ec-quote-cite {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 16px;
	margin-top: 32px !important;
}
.ec-quote-name { font-size: 16px; font-weight: 600; }
.ec-quote-role { font-size: 14px; color: var(--ec-muted); }
.ec-testimonial .ec-carousel-nav {
	justify-content: flex-end;
	margin-top: 32px !important;
}
@media (max-width: 900px) {
	.ec-testimonial-inner { padding-block: 88px; }
	.ec-quote-img { grid-column: 1 / -1; height: 300px; }
	.ec-quote-body { grid-column: 1 / -1; }
	.ec-testimonial .ec-carousel-nav { justify-content: flex-start; }
}

/* ---------- Journal ---------- */
.ec-journal { padding-block: 140px; }
.ec-journal-card {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.ec-journal-img {
	height: 300px;
	background: repeating-linear-gradient(135deg, #e0dfda 0 10px, #d8d7d1 10px 20px);
}
.ec-journal-meta { color: #888; }
.ec-journal-title { font-size: 22px; font-weight: 600; line-height: 1.25; text-wrap: pretty; }
.ec-journal-title a { color: inherit; }
.ec-journal-title a:hover { color: #555; }
@media (max-width: 1100px) {
	.ec-journal { padding-block: 96px; }
}

/* ---------- Contact ---------- */
.ec-contact-inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: start;
	gap: 80px;
	padding-block: 120px;
}
.ec-contact .ec-eyebrow { color: #999; }
.ec-contact-lead {
	max-width: 420px;
	margin-top: 28px !important;
	font-size: 17px;
	line-height: 1.6;
	color: #aaa;
}
.ec-contact-details {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	max-width: 460px;
	margin-top: 48px !important;
	font-size: 14px;
	line-height: 1.6;
}
.ec-contact-details .ec-mono { display: block; margin-bottom: 6px; }
.ec-contact-details a { color: #ccc; }
.ec-contact-details a:hover { color: #fff; }
.ec-form-panel {
	padding: 40px;
	border: 1px solid #2a2a2a;
	border-radius: 8px;
	background: #1b1b1b;
}
.ec-form { display: flex; flex-direction: column; gap: 24px; }
.ec-form[hidden] { display: none; }
.ec-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ec-field { display: flex; flex-direction: column; gap: 8px; }
.ec-contact .ec-mono { color: #888; }
.ec-field input {
	padding: 10px 0;
	border: 0;
	border-bottom: 1px solid #444;
	background: transparent;
	font: inherit;
	font-size: 16px;
	color: #fff;
	outline: none;
	transition: border-color 0.2s;
}
.ec-field input:focus { border-bottom-color: #fff; }
.ec-field input::placeholder { color: #666; }
.ec-choices { margin: 0; padding: 0; border: 0; }
.ec-choices legend { margin-bottom: 12px; padding: 0; }
.ec-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ec-chips-single { display: grid; grid-template-columns: repeat(4, 1fr); }
.ec-chips button {
	padding: 10px 16px;
	border: 1px solid #3a3a3a;
	border-radius: 999px;
	background: transparent;
	font: 500 14px var(--wp--preset--font-family--barlow);
	color: #ccc;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.ec-chips-single button { padding-inline: 0; border-radius: 6px; }
.ec-chips button[aria-pressed="true"] { border-color: #fff; background: #fff; color: var(--ec-ink); }
.ec-submit {
	margin-top: 8px;
	padding: 16px;
	border: 0;
	border-radius: 999px;
	background: #fff;
	font: 600 15px var(--wp--preset--font-family--barlow);
	color: var(--ec-ink);
	cursor: pointer;
	transition: background-color 0.2s;
}
.ec-submit:hover { background: #e6e6e6; }
.ec-form-done { padding-block: 16px; }
.ec-form-done-title {
	font-family: var(--ec-display);
	font-size: 32px;
	font-weight: 700;
	letter-spacing: -0.02em;
}
.ec-form-done p + p { margin-top: 12px; font-size: 16px; line-height: 1.6; color: #aaa; }
@media (max-width: 1100px) {
	.ec-contact-inner { grid-template-columns: 1fr; gap: 56px; padding-block: 96px; }
}
@media (max-width: 640px) {
	.ec-form-panel { padding: 24px; }
	.ec-form-row,
	.ec-contact-details { grid-template-columns: 1fr; }
	.ec-chips-single { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Footer ---------- */
.ec-footer {
	max-width: 1440px;
	margin-inline: auto;
	padding: 88px var(--ec-gutter) 32px;
}
.ec-footer-cols {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 40px;
}
.ec-footer-about-col { max-width: 300px; }
.ec-footer .ec-footer-about { margin-top: 20px !important; font-size: 14px; color: var(--ec-muted); }
.ec-footer-cols h3.ec-eyebrow { margin-bottom: 6px !important; color: var(--ec-muted); }
.ec-footer .ec-links {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 12px 0 0 !important;
	padding: 0;
	list-style: none;
	font-size: 14px;
}
.ec-footer .ec-links li { margin: 0; }
.ec-links a:hover,
.ec-social a:hover { color: #555; }
.ec-footer-mark {
	margin-top: 88px !important;
	font-family: var(--ec-display);
	/* "EVERCREST" is ~6.5em wide: scale to the container so it never overflows. */
	font-size: min(180px, calc((100vw - 2 * var(--ec-gutter)) / 7));
	font-weight: 900;
	line-height: 0.8;
	letter-spacing: -0.03em;
	text-align: center;
	text-transform: uppercase;
	white-space: nowrap;
}
.ec-footer-bar {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 16px;
	margin-top: 32px !important;
	padding-top: 20px;
	border-top: 1px solid var(--ec-line);
	font-size: 13px;
	color: var(--ec-muted);
}
.ec-social { display: flex; gap: 24px; }
@media (max-width: 900px) {
	.ec-footer { padding-top: 64px; }
	.ec-footer-cols { grid-template-columns: 1fr 1fr; }
	.ec-footer-about-col { grid-column: 1 / -1; }
	.ec-footer-mark { margin-top: 56px !important; }
}
