/* ==========================================================================
   ZHI — core styles
   Tokens · base · typography · buttons · glass · header · menu · footer ·
   forms · motion system. Section styles live in assets/css/sections/ and assets/css/components/.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
	/* Brand (from the ZHI logo) */
	--navy-950: #061521;
	--navy-900: #071B29;
	--navy-800: #0A2233;
	--navy-700: #0E3148;
	--logo-navy: #0A3048;
	--teal-800: #08555D;
	--teal-700: #0A6E77; /* buttons — 5.98:1 with white */
	--teal-600: #0A7680; /* links/text on ivory — 4.89:1 */
	--teal-400: #2BB3BA;
	--teal-300: #5ED0D6; /* accents on dark — 9.6:1 */
	--bronze-700: #7C5D2C; /* text on light — 5.5:1 */
	--bronze-500: #A07A42;
	--bronze-300: #C9A76B; /* text on dark — 7.7:1 */

	/* Neutrals */
	--ivory: #F7F4EE;
	--sand: #EFE8DC;
	--paper: #FFFFFF;
	--ink: #0A2233;
	--muted: #5B6670;
	--muted-dark: #A9B6BF;
	--line: rgba(10, 34, 51, 0.12);
	--line-dark: rgba(255, 255, 255, 0.14);

	/* Semantic */
	--bg: var(--ivory);
	--fg: var(--ink);
	--fg-muted: var(--muted);
	--accent: var(--teal-600);
	--focus: var(--teal-400);

	/* Type — sizes are overridden by Customizer → ZHI Brand → Typography. */
	--font-display: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
	--font-sans: "Jost", "Helvetica Neue", Arial, system-ui, sans-serif;
	--heading-weight: 400;
	--heading-lh: 1.05;
	--heading-ls: -0.015em;
	--body-lh: 1.65;
	--fs-h1: clamp(25px, calc(25px + 0.08545 * (100vw - 375px)), 116px);
	--fs-h2: clamp(22px, calc(22px + 0.04319 * (100vw - 375px)), 68px);
	--fs-h3: clamp(18px, calc(18px + 0.01127 * (100vw - 375px)), 30px);
	--fs-h4: clamp(16px, calc(16px + 0.00751 * (100vw - 375px)), 24px);
	--fs-h5: clamp(14px, calc(14px + 0.00563 * (100vw - 375px)), 20px);
	--fs-h6: clamp(13px, calc(13px + 0.00376 * (100vw - 375px)), 17px);
	--fs-body: clamp(12px, calc(12px + 0.00469 * (100vw - 375px)), 17px);
	--fs-lede: clamp(12px, calc(12px + 0.00657 * (100vw - 375px)), 19px);
	--fs-display: var(--fs-h1);
	--fs-sm: max(11px, calc(var(--fs-body) * 0.9));
	--fs-xs: max(10px, calc(var(--fs-body) * 0.78));
	--fs-eyebrow: max(10px, calc(var(--fs-body) * 0.72));

	/* Space (spacious marketing scale) */
	--space-1: 0.25rem;
	--space-2: 0.5rem;
	--space-3: 0.75rem;
	--space-4: 1rem;
	--space-5: 1.5rem;
	--space-6: 2rem;
	--space-7: 3rem;
	--space-8: 4rem;
	--space-9: 6rem;
	--section-y: clamp(5rem, 3.5rem + 6vw, 10rem);
	--gutter: clamp(1rem, 0.5rem + 2.5vw, 3rem);
	--container: 1360px;

	/* Shape & depth */
	--radius-sm: 4px;
	--radius: 10px;
	--radius-lg: 18px;
	--radius-btn: 999px;
	--shadow-sm: 0 1px 2px rgba(6, 21, 33, 0.06), 0 2px 8px rgba(6, 21, 33, 0.05);
	--shadow: 0 10px 30px -12px rgba(6, 21, 33, 0.25);
	--shadow-lg: 0 30px 80px -30px rgba(6, 21, 33, 0.45);

	/* Glass */
	--glass-bg: rgba(10, 34, 51, 0.42);
	--glass-bg-strong: rgba(7, 27, 41, 0.72);
	--glass-border: rgba(255, 255, 255, 0.16);
	--glass-blur: 18px;

	/* Motion */
	--ease-out: cubic-bezier(0.22, 1, 0.36, 1);
	--ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
	--ease-cinema: cubic-bezier(0.16, 1, 0.3, 1);
	--dur-fast: 180ms;
	--dur: 320ms;
	--dur-slow: 900ms;
	--dur-cinema: 1400ms;

	--header-h: 84px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
	margin: 0;
	background: var(--bg);
	color: var(--fg);
	font-family: var(--font-sans);
	font-size: var(--fs-body);
	font-weight: 400;
	line-height: var(--body-lh);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}
body.menu-open { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:where(ul[class], ol[class]) { list-style: none; margin: 0; padding: 0; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
address { font-style: normal; }
dl, dd { margin: 0; }
figure, blockquote { margin: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--teal-700); color: #fff; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 860px; }

.screen-reader-text {
	border: 0; clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden;
	padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important;
}
.skip-link {
	position: absolute; left: 1rem; top: -100px; z-index: 1000;
	background: var(--paper); color: var(--ink); padding: 0.75rem 1rem; border-radius: var(--radius-sm);
	box-shadow: var(--shadow);
}
.skip-link:focus { top: 1rem; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6, .h2, .h3, .hero__title, .cta__title {
	font-family: var(--font-display);
	font-weight: var(--heading-weight);
	letter-spacing: var(--heading-ls);
	line-height: var(--heading-lh);
	text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
h5 { font-size: var(--fs-h5); }
h6 { font-size: var(--fs-h6); }
.h2 { font-size: var(--fs-h2); margin-bottom: var(--space-5); }
.h2 em, .hero__title em, .cta__title em { font-style: italic; }
.h3 { font-size: var(--fs-h3); }
.lede { font-size: var(--fs-lede); line-height: 1.6; color: var(--fg-muted); max-width: 62ch; }
.lede strong { color: var(--fg); font-weight: 500; }
.eyebrow {
	display: inline-flex; align-items: center; gap: 0.85em;
	font-size: var(--fs-eyebrow); font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase;
	color: var(--bronze-700); margin-bottom: var(--space-5);
}
.eyebrow::before { content: ""; width: 2.25rem; height: 1px; background: currentColor; opacity: 0.7; }
.eyebrow--light { color: var(--bronze-300); }

/* ---------- Themes (section colour contexts) ---------- */
.theme-dark {
	--bg: var(--navy-900);
	--fg: #F2F5F7;
	--fg-muted: var(--muted-dark);
	--accent: var(--teal-300);
	--line: var(--line-dark);
	background: var(--bg);
	color: var(--fg);
}
.theme-dark .lede strong { color: #fff; }
.theme-sand { --bg: var(--sand); --fg-muted: #4F5A64; background: var(--bg); }
.theme-light, .theme-white {
	--bg: var(--ivory); --fg: var(--ink); --fg-muted: var(--muted); --accent: var(--teal-600); --line: rgba(10, 34, 51, 0.12);
	background: var(--bg); color: var(--fg);
}
.theme-white { --bg: var(--paper); }
.theme-teal {
	--bg: var(--teal-800);
	--fg: #F2F5F7;
	--fg-muted: rgba(242, 245, 247, 0.78);
	--accent: #fff;
	--line: var(--line-dark);
	background: var(--bg);
	color: var(--fg);
}
.theme-teal .lede strong { color: #fff; }
/* Extra section backgrounds chosen in the page editor. */
.theme-midnight, .theme-forest, .theme-bronze, .theme-charcoal {
	--fg: #F2F5F7; --fg-muted: rgba(242, 245, 247, 0.78); --accent: #fff; --line: var(--line-dark);
	background: var(--bg); color: var(--fg);
}
.theme-midnight { --bg: #0F2A52; }
.theme-forest { --bg: #0F3B2E; }
.theme-bronze { --bg: #5E4523; }
.theme-charcoal { --bg: #1C2024; }
.theme-mist, .theme-stone {
	--fg: var(--ink); --fg-muted: #4F5A64; --accent: var(--teal-600); --line: rgba(10, 34, 51, 0.12);
	background: var(--bg); color: var(--fg);
}
.theme-mist { --bg: #E2EDEC; }
.theme-stone { --bg: #F3EFE8; }
.theme-midnight .lede strong, .theme-forest .lede strong, .theme-bronze .lede strong, .theme-charcoal .lede strong { color: #fff; }
/* Chosen in the page editor ("Section background"): beats a design's own colour. */
.section.has-bg-dark { background: var(--navy-900); }
.section.has-bg-teal { background: var(--teal-800); }
.section.has-bg-teal::before { background: none; } /* dark fade-outs of glow effects */
.section.has-bg-mist { background: #E2EDEC; }
.section.has-bg-stone { background: #F3EFE8; }
.section.has-bg-midnight { background: #0F2A52; }
.section.has-bg-forest { background: #0F3B2E; }
.section.has-bg-bronze { background: #5E4523; }
.section.has-bg-charcoal { background: #1C2024; }
.section.has-bg-midnight::before, .section.has-bg-forest::before, .section.has-bg-bronze::before, .section.has-bg-charcoal::before, .section.has-bg-mist::before, .section.has-bg-stone::before { background: none; }

/* ---------- Buttons & links ---------- */
.btn {
	--btn-bg: transparent; --btn-fg: currentColor; --btn-bd: transparent;
	position: relative; isolation: isolate; overflow: hidden;
	display: inline-flex; align-items: center; justify-content: center; gap: 0.65rem;
	min-height: 52px; padding: 0.85rem 1.6rem;
	font-size: 0.75rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.2;
	text-decoration: none; white-space: nowrap;
	color: var(--btn-fg); background: var(--btn-bg); border: 1px solid var(--btn-bd); border-radius: var(--radius-btn);
	transition: color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.btn .icon { width: 18px; height: 18px; transition: transform var(--dur) var(--ease-out); }
.btn:hover .icon { transform: translateX(4px); }
.btn::before { /* light sweep */
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.22) 50%, transparent 70%);
	transform: translateX(-120%); transition: transform 700ms var(--ease-out);
}
.btn:hover::before { transform: translateX(120%); }
.btn--primary { --btn-bg: var(--teal-700); --btn-fg: #fff; --btn-bd: var(--teal-700); }
.btn--primary:hover { --btn-bg: var(--teal-800); --btn-bd: var(--teal-800); }
.btn--outline { --btn-fg: var(--fg); --btn-bd: currentColor; }
.btn--outline:hover { --btn-bg: var(--fg); --btn-bd: var(--fg); --btn-fg: var(--bg); }
.btn--glass {
	--btn-fg: #fff; --btn-bd: var(--glass-border); --btn-bg: rgba(255, 255, 255, 0.08);
	-webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.btn--glass:hover { --btn-bg: rgba(255, 255, 255, 0.18); --btn-bd: rgba(255, 255, 255, 0.4); }
.btn--ghost-light { --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, 0.3); }
.btn--sm { min-height: 42px; padding: 0.6rem 1.15rem; font-size: 0.75rem; }
.btn--lg { min-height: 58px; padding: 1rem 2rem; }
.btn--block { width: 100%; }

.link-arrow {
	display: inline-flex; align-items: center; gap: 0.5rem;
	font-size: var(--fs-sm); font-weight: 500; color: var(--accent); text-decoration: none;
	background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat;
	padding-bottom: 2px; transition: background-size var(--dur) var(--ease-out);
}
.link-arrow .icon { width: 16px; height: 16px; transition: transform var(--dur) var(--ease-out); }
.link-arrow:hover { background-size: 100% 1px; }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow--light { color: var(--teal-300); }

.icon-btn {
	display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
	border-radius: 50%; color: var(--fg); background: transparent; border: 1px solid var(--line);
	transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.icon-btn .icon { width: 19px; height: 19px; }
.icon-btn:hover { background: var(--teal-700); border-color: var(--teal-700); color: #fff; }
.icon-btn--line { border-color: currentColor; }
.icon-btn--line:disabled { opacity: 0.3; cursor: default; background: transparent; color: var(--fg); border-color: currentColor; }
.icon-btn--glass {
	color: #fff; background: rgba(255, 255, 255, 0.1); border-color: var(--glass-border);
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}

.badge {
	display: inline-flex; align-items: center; min-height: 26px; padding: 0.2rem 0.7rem;
	font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
	border-radius: 999px;
}
.badge--glass {
	color: #fff; background: rgba(7, 27, 41, 0.45); border: 1px solid rgba(255, 255, 255, 0.22);
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}

.sample-chip {
	display: inline-flex; vertical-align: middle; margin-left: 0.6rem; padding: 0.15rem 0.55rem;
	font-family: var(--font-sans); font-size: 0.625rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
	line-height: 1.6; color: var(--bronze-700); border: 1px dashed currentColor; border-radius: 999px;
	position: relative; top: -0.2em;
}
.theme-dark .sample-chip { color: var(--bronze-300); }

/* ---------- Glass surfaces ---------- */
.glass, .glass-dark {
	background: var(--glass-bg);
	border: 1px solid var(--glass-border);
	-webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
	backdrop-filter: blur(var(--glass-blur)) saturate(140%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), var(--shadow-lg);
	color: #fff;
}
.glass-dark { background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.glass { background: var(--glass-bg-strong); }
	.btn--glass, .badge--glass, .icon-btn--glass { background: rgba(7, 27, 41, 0.7); }
}

/* ---------- Media ---------- */
.media-ph {
	display: block; width: 100%; height: 100%; min-height: 100%;
	background:
		radial-gradient(120% 80% at 80% 10%, rgba(43, 179, 186, 0.35), transparent 60%),
		radial-gradient(90% 70% at 10% 100%, rgba(201, 167, 107, 0.28), transparent 60%),
		linear-gradient(160deg, #0E3148, #071B29);
}

/* ---------- Header ---------- */
.site-header {
	position: fixed; inset: 0 0 auto; z-index: 100;
	height: var(--header-h);
	color: #fff;
	transition: transform 500ms var(--ease-out), background-color var(--dur) var(--ease-out), height var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.site-header::before { /* glass layer, fades in on scroll */
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: rgba(7, 27, 41, 0.62);
	-webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	opacity: 0; transition: opacity var(--dur) var(--ease-out);
}
.has-hero .site-header:not(.is-scrolled) { background: linear-gradient(to bottom, rgba(6, 21, 33, 0.55), transparent); }
.site-header.is-scrolled, .has-solid-header .site-header { --header-h: 72px; }
.site-header.is-scrolled::before, .has-solid-header .site-header::before { opacity: 1; }
.has-solid-header .site-header::before { background: var(--navy-900); }
.site-header.is-hidden { transform: translateY(-100%); }
.has-solid-header .site-main { padding-top: calc(var(--header-h) + var(--space-8)); }

.site-header__inner { height: 100%; display: flex; align-items: center; gap: var(--space-6); }
.site-header__brand { flex: none; display: inline-flex; color: #fff; text-decoration: none; }
.site-header__actions { margin-left: auto; display: flex; align-items: center; gap: var(--space-3); }
.site-header__phone {
	display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.22); color: #fff; transition: background-color var(--dur);
}
.site-header__phone .icon { width: 18px; height: 18px; }
.site-header__phone:hover { background: rgba(255, 255, 255, 0.12); }

/* Logo */
.site-logo-img { display: block; width: auto; height: 46px; max-width: 220px; object-fit: contain; }
.site-logo-img--footer { height: 88px; max-width: 260px; }

/* Logo lockup */
.zhi-lockup { display: inline-flex; align-items: center; gap: 0.85rem; color: #F4F1EA; }
.zhi-mark { width: 46px; height: auto; color: currentColor; flex: none; }
.zhi-lockup__text { display: flex; flex-direction: column; font-family: var(--font-display); line-height: 1.1; }
.zhi-lockup__line1 { font-size: 0.9rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--bronze-300); font-weight: 500; }
.zhi-lockup__line2 { font-size: 0.62rem; letter-spacing: 0.5em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.zhi-lockup--stacked { flex-direction: column; align-items: flex-start; gap: 1rem; }
.zhi-lockup--stacked .zhi-mark { width: 72px; }
.zhi-lockup--stacked .zhi-lockup__line1 { font-size: 1.05rem; }

/* Primary nav (desktop) */
.primary-nav { display: none; margin-left: auto; }
.primary-nav__list { display: flex; align-items: center; gap: 0.15rem; }
.primary-nav__item { position: relative; }
.primary-nav__link {
	display: inline-flex; align-items: center; gap: 0.3rem;
	padding: 0.65rem 0.8rem; background: none; border: 0;
	font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
	color: rgba(255, 255, 255, 0.86); text-decoration: none;
	transition: color var(--dur-fast);
}
.primary-nav__link::after {
	content: ""; position: absolute; left: 0.8rem; right: 0.8rem; bottom: 0.35rem; height: 1px;
	background: var(--bronze-300); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease-out);
}
.primary-nav__link:hover, .primary-nav__item:focus-within > .primary-nav__link, .primary-nav__toggle[aria-expanded="true"] { color: #fff; }
.primary-nav__link:hover::after, .primary-nav__toggle[aria-expanded="true"]::after { transform: scaleX(1); }
/* Parent item with a dropdown: the name is a real link, the arrow opens the menu. */
.primary-nav__group { display: inline-flex; align-items: center; }
.primary-nav__group .primary-nav__link { padding-right: 0.15rem; }
.primary-nav__toggle { display: inline-flex; align-items: center; padding: 0.65rem 0.7rem 0.65rem 0.2rem; background: none; border: 0; color: rgba(255, 255, 255, 0.86); cursor: pointer; transition: color var(--dur-fast); }
.primary-nav__toggle:hover, .primary-nav__item.is-open > .primary-nav__group .primary-nav__toggle { color: #fff; }
.primary-nav__item.is-open > .primary-nav__group .primary-nav__link { color: #fff; }
.primary-nav__item.is-open > .primary-nav__group .primary-nav__link::after { transform: scaleX(1); }
.primary-nav__item:hover > .primary-nav__group .primary-nav__link::after { transform: scaleX(1); }
.primary-nav__caret { width: 14px; height: 14px; transition: transform var(--dur) var(--ease-out); }
.primary-nav__toggle[aria-expanded="true"] .primary-nav__caret { transform: rotate(180deg); }
.primary-nav__panel {
	position: absolute; top: calc(100% + 0.6rem); left: 50%; min-width: 250px;
	padding: 0.6rem; border-radius: var(--radius);
	background: rgba(7, 27, 41, 0.78); border: 1px solid var(--glass-border);
	-webkit-backdrop-filter: blur(22px) saturate(150%); backdrop-filter: blur(22px) saturate(150%);
	box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transform: translate(-50%, 8px);
	transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility 0s linear var(--dur);
}
.primary-nav__panel::before { content: ""; position: absolute; inset: -0.8rem 0 auto; height: 0.8rem; } /* hover bridge */
.primary-nav__item.is-open > .primary-nav__panel {
	opacity: 1; visibility: visible; transform: translate(-50%, 0);
	transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility 0s;
}
.primary-nav__sub a {
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
	padding: 0.7rem 0.85rem; border-radius: 6px; color: rgba(255, 255, 255, 0.86); text-decoration: none;
	font-size: var(--fs-sm); transition: background-color var(--dur-fast), color var(--dur-fast);
}
.primary-nav__sub a .icon { width: 15px; height: 15px; opacity: 0; transform: translateX(-6px); transition: opacity var(--dur), transform var(--dur) var(--ease-out); }
.primary-nav__sub a:hover, .primary-nav__sub a:focus-visible { background: rgba(255, 255, 255, 0.08); color: #fff; }
.primary-nav__sub a:hover .icon, .primary-nav__sub a:focus-visible .icon { opacity: 1; transform: none; }

/* Menu toggle */
.menu-toggle {
	display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
	background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.22);
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.menu-toggle__bars { display: grid; gap: 6px; width: 20px; }
.menu-toggle__bars span { display: block; height: 1.5px; background: #fff; border-radius: 2px; transition: transform var(--dur) var(--ease-out); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.site-header__cta { display: none; }

/* Mobile menu */
.mobile-menu {
	position: fixed; inset: 0; z-index: 90;
	padding-top: calc(var(--header-h) + var(--space-5));
	background: rgba(6, 21, 33, 0.9);
	-webkit-backdrop-filter: blur(24px) saturate(140%); backdrop-filter: blur(24px) saturate(140%);
	color: #fff; overflow-y: auto; overscroll-behavior: contain;
	opacity: 0; transition: opacity 400ms var(--ease-out);
}
.mobile-menu.is-open { opacity: 1; }
.mobile-menu[hidden] { display: none; }
.mobile-menu__inner { display: flex; flex-direction: column; min-height: calc(100% - var(--space-5)); padding-bottom: var(--space-7); }
.mobile-menu__item { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.mobile-menu__link {
	display: flex; align-items: center; justify-content: space-between; width: 100%;
	padding: 1.05rem 0; background: none; border: 0; text-align: left; text-decoration: none;
	font-family: var(--font-display); font-size: 1.85rem; line-height: 1.1; color: #fff;
}
.mobile-menu__link .icon { width: 22px; height: 22px; transition: transform var(--dur) var(--ease-out); }
.mobile-menu__link[aria-expanded="true"] .icon { transform: rotate(180deg); }
.mobile-menu__row { display: flex; align-items: center; }
.mobile-menu__row .mobile-menu__link { flex: 1; width: auto; }
.mobile-menu__expand { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 52px; height: 52px; background: none; border: 0; color: #fff; cursor: pointer; }
.mobile-menu__expand .icon { width: 22px; height: 22px; transition: transform var(--dur) var(--ease-out); }
.mobile-menu__expand[aria-expanded="true"] .icon { transform: rotate(180deg); }
.mobile-menu__sub { padding: 0 0 1rem; }
.mobile-menu__sub a { display: block; padding: 0.55rem 0; color: var(--muted-dark); text-decoration: none; }
.mobile-menu__sub a:hover { color: #fff; }
.mobile-menu__footer { margin-top: auto; padding-top: var(--space-7); display: grid; gap: var(--space-3); }
.mobile-menu .mobile-menu__item { opacity: 0; transform: translateY(14px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); transition-delay: calc(var(--i, 0) * 45ms + 80ms); }
.mobile-menu.is-open .mobile-menu__item { opacity: 1; transform: none; }

@media (min-width: 720px) {
	.site-header__cta { display: inline-flex; }
}
@media (min-width: 1180px) {
	.primary-nav { display: block; }
	.menu-toggle, .mobile-menu { display: none !important; }
	.site-header__actions { margin-left: var(--space-3); }
}

/* ---------- Forms ---------- */
.field { display: grid; gap: 0.4rem; min-width: 0; }
.field label {
	font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
	color: rgba(255, 255, 255, 0.7);
}
.field select, .field input {
	width: 100%; min-height: 48px; padding: 0.7rem 2.4rem 0.7rem 0.9rem;
	font-size: 1rem; color: #fff; background-color: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 8px;
	-webkit-appearance: none; appearance: none;
	transition: border-color var(--dur-fast), background-color var(--dur-fast), box-shadow var(--dur-fast);
}
.field input { padding-right: 0.9rem; }
.field select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 0.75rem center; background-size: 16px;
}
.field select option { color: var(--ink); background: #fff; }
.field input::placeholder { color: rgba(255, 255, 255, 0.45); }
.field select:hover, .field input:hover { border-color: rgba(255, 255, 255, 0.35); }
.field select:focus-visible, .field input:focus-visible {
	outline: none; border-color: var(--teal-300); background-color: rgba(255, 255, 255, 0.11);
	box-shadow: 0 0 0 3px rgba(94, 208, 214, 0.25);
}
.field__error { display: none; font-size: var(--fs-xs); color: #FFB4A8; }
.field.is-invalid select, .field.is-invalid input { border-color: #FF8A78; }
.field.is-invalid .field__error { display: block; }
.field__optional { text-transform: none; letter-spacing: 0; opacity: 0.7; }
.form-status { padding: 0.85rem 1rem; border-radius: 8px; font-size: var(--fs-sm); margin-bottom: var(--space-4); }
.form-status--success { background: rgba(94, 208, 214, 0.14); border: 1px solid rgba(94, 208, 214, 0.4); }
.form-status--error { background: rgba(255, 138, 120, 0.12); border: 1px solid rgba(255, 138, 120, 0.4); }

/* ---------- Footer (light, warm grey) ---------- */
.site-footer {
	--f-bg: var(--footer-bg, #E4E4DF); --f-ink: var(--footer-ink, #262825);
	--f-muted: color-mix(in srgb, var(--f-ink) 72%, var(--f-bg)); --f-line: color-mix(in srgb, var(--f-ink) 18%, transparent); --f-sage: color-mix(in srgb, var(--f-ink) 32%, var(--f-bg));
	background: var(--f-bg); color: var(--f-ink); position: relative; overflow: clip;
}
.site-footer ::selection { background: var(--f-ink); color: var(--f-bg); }
/* Call to action block */
.sfoot-cta { position: relative; padding-block: var(--space-9) var(--space-7); isolation: isolate; }
.sfoot-cta__title { font-family: var(--font-sans); font-weight: 500; font-size: var(--fs-h3); line-height: 1.2; text-align: center; margin: 0 0 var(--space-5); color: var(--f-muted); }
.sfoot-big { container-type: inline-size; margin: 0 0 var(--space-4); text-align: center; line-height: 1; }
.sfoot-big__text {
	display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
	font-family: var(--font-sans); font-weight: 200; font-size: 15.5cqw; line-height: 0.86; letter-spacing: -0.02em; color: var(--f-ink);
	/* Tonal fill that melts into the footer background toward the bottom. */
	background: linear-gradient(180deg, color-mix(in srgb, var(--f-ink) 92%, var(--f-bg)) 0%, color-mix(in srgb, var(--f-ink) 62%, var(--f-bg)) 60%, color-mix(in srgb, var(--f-ink) 28%, var(--f-bg)) 100%);
	-webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.sfoot-big__o {
	display: inline-block; width: 0.78em; height: 0.78em; margin-inline: 0.03em; border-radius: 50%; flex: none;
	background: radial-gradient(circle at 32% 28%, #D5D8C6 0%, #A9AC9A 48%, #7E8C86 100%);
	-webkit-mask-image: radial-gradient(circle at 50% 50%, #000 62%, rgba(0, 0, 0, 0.55) 100%); mask-image: radial-gradient(circle at 50% 50%, #000 62%, rgba(0, 0, 0, 0.55) 100%);
}
.sfoot-cta__row { display: grid; justify-items: center; gap: var(--space-6); text-align: center; }
.sfoot-cta__text { margin: 0 auto; max-width: 60ch; font-size: var(--fs-lede); color: var(--f-muted); line-height: 1.55; }
.sfoot-cta__actions { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: var(--space-3); width: max-content; max-width: 100%; justify-content: center; }
.sfoot-cta__actions .btn { justify-content: center; }
.sfoot-cta .btn--glass { --btn-bg: transparent; --btn-fg: var(--f-ink); --btn-bd: var(--f-ink); -webkit-backdrop-filter: none; backdrop-filter: none; }
.sfoot-cta .btn--glass:hover { --btn-bg: var(--f-ink); --btn-fg: var(--f-bg); --btn-bd: var(--f-ink); }

/* Link columns */
.sfoot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-7) var(--space-6); padding-top: var(--space-6); }
.sfoot-col__title {
	font-family: var(--font-sans); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
	color: var(--f-ink); margin: 0 0 var(--space-4); padding-bottom: var(--space-3); border-bottom: 1px solid var(--f-line);
}
.sfoot-col ul { list-style: none; margin: 0; padding: 0; }
.sfoot-col li + li { margin-top: 0.55rem; }
.sfoot-col a { color: var(--f-muted); text-decoration: none; font-size: var(--fs-sm); transition: color var(--dur-fast); }
.sfoot-col a:hover, .sfoot-col a:focus-visible { color: var(--f-ink); }
.sfoot-col address { display: grid; gap: 0.55rem; font-style: normal; font-size: var(--fs-sm); color: var(--f-muted); }
.sfoot-col address a { word-break: break-word; }

/* Bottom row */
.sfoot-base { display: grid; gap: var(--space-6); align-items: end; margin-top: var(--space-8); padding-block: var(--space-6); border-top: 1px solid var(--f-line); font-size: var(--fs-xs); color: var(--f-muted); }
.sfoot-base__legal { margin: 0; max-width: 64ch; }
.sfoot-base__legal span { display: block; margin-top: 0.25rem; }
.sfoot-base__license { display: flex !important; gap: 0.5rem; align-items: flex-start; margin-top: var(--space-3) !important; }
.sfoot-base__license .icon { width: 16px; height: 16px; flex: none; margin-top: 0.1em; }
.sfoot-base__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-6); }
.sfoot-policies { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.sfoot-policies a { color: var(--f-muted); text-decoration: none; }
.sfoot-policies a:hover, .sfoot-policies a:focus-visible { color: var(--f-ink); }
.sfoot-social { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.5rem; }
.sfoot-social a, .sfoot-top { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--f-line); border-radius: 50%; color: var(--f-ink); transition: background-color var(--dur), color var(--dur), border-color var(--dur); }
.sfoot-social .icon { width: 19px; height: 19px; }
.sfoot-top .icon { width: 18px; height: 18px; transform: rotate(180deg); }
.sfoot-social a:hover, .sfoot-social a:focus-visible, .sfoot-top:hover, .sfoot-top:focus-visible { background: var(--f-ink); color: var(--f-bg); border-color: var(--f-ink); }

/* Giant wordmark: cropped and faded at the very bottom */
.sfoot-mark { margin: 0; overflow: hidden; font-size: 12.6vw; line-height: 0.8; height: 0.6em; }
.sfoot-mark__text {
	display: block; white-space: nowrap; text-align: center; text-transform: uppercase; font-family: var(--font-sans); font-weight: 700; letter-spacing: -0.05em; line-height: 0.8;
	font-size: 1em; color: var(--f-sage); padding-top: 0.02em;
	-webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 98%); mask-image: linear-gradient(180deg, #000 30%, transparent 98%);
}

@media (min-width: 760px) {
	.sfoot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
	.sfoot-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
	.sfoot-base { grid-template-columns: 1.2fr 1fr; }
	.sfoot-base__meta { justify-content: flex-end; }
}
@media (max-width: 599px) {
	.sfoot-cta__actions { grid-auto-flow: row; width: 100%; }
}

/* ---------- Basic pages ---------- */
.page-basic { padding-bottom: var(--section-y); min-height: 60vh; }
.entry + .entry { margin-top: var(--space-7); }

/* ==========================================================================
   Motion system
   Content is fully visible by default. Hidden starting states only apply
   when JS is running (.js) and the visitor has not asked for reduced motion.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
	.js [data-reveal] {
		opacity: 0; transform: translate3d(0, 28px, 0);
		transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-cinema);
		transition-delay: calc(var(--i, 0) * 90ms);
	}
	/* Clip reveal: the observed element stays unclipped (so IntersectionObserver
	   can see it); its first child is masked and its image eases out of a zoom. */
	.js [data-reveal="clip"] { opacity: 1; transform: none; }
	.js [data-reveal="clip"] > * {
		clip-path: inset(100% 0 0 0);
		transition: clip-path var(--dur-cinema) var(--ease-cinema);
		transition-delay: calc(var(--i, 0) * 110ms);
	}
	.js [data-reveal="clip"] img, .js [data-reveal="clip"] .media-ph {
		transform: scale(1.18);
		transition: transform 1800ms var(--ease-cinema);
		transition-delay: calc(var(--i, 0) * 110ms);
	}
	/* Cards inside sideways-scrolling rows must always show, including the partly visible ones at the edge. */
	.js .carousel__item[data-reveal], .js .ticker [data-reveal] { opacity: 1; transform: none; transition-delay: 0s; }
	@media (max-width: 759px) {
		.js .swipe-row > [data-reveal], .js .swipe-row > [data-reveal="clip"] { opacity: 1; transform: none; transition-delay: 0s; }
		.js .swipe-row > [data-reveal="clip"] > * { clip-path: none; }
		.js .swipe-row > [data-reveal="clip"] img, .js .swipe-row > [data-reveal="clip"] .media-ph { transform: none; }
	}
	.js [data-reveal].is-visible { opacity: 1; transform: none; }
	.js [data-reveal="clip"].is-visible > * { clip-path: inset(0 0 0 0); }
	.js [data-reveal="clip"].is-visible img, .js [data-reveal="clip"].is-visible .media-ph { transform: scale(1); }
	[data-parallax] { will-change: transform; }
}

/* ---------- Mobile action bar (per page option) ---------- */
.mbar { display: none; }
@media (max-width: 759px) {
	.mbar {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: flex; gap: 0.5rem; align-items: center;
		padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom));
		background: rgba(7, 27, 41, 0.9); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-top: 1px solid rgba(255, 255, 255, 0.12);
	}
	.mbar .btn { flex: 1 1 0; padding-inline: 0.6rem; font-size: 0.6875rem; letter-spacing: 0.1em; min-height: 46px; white-space: normal; text-align: center; line-height: 1.15; }
	.mbar__call { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.25); color: #fff; }
	.mbar__call .icon { width: 19px; height: 19px; }
	.mbar__wa { background: #1f9d55; border-color: #1f9d55; }
	body:has(.mbar) .site-footer { padding-bottom: 5rem; }
}

/* Light backgrounds chosen on sections designed on dark: beat the section's own dark fill. */
.section.has-bg-light { background: var(--ivory); }
.section.has-bg-white { background: var(--paper); }
.section.has-bg-sand { background: var(--sand); }
.section.has-bg-light::before, .section.has-bg-white::before, .section.has-bg-sand::before { background: none; }
.reviews.has-bg-light .rcard, .reviews.has-bg-white .rcard, .reviews.has-bg-sand .rcard, .reviews.has-bg-mist .rcard, .reviews.has-bg-stone .rcard { box-shadow: 0 0 0 1px rgba(10, 34, 51, 0.12); }
.reviews.has-bg-light .btn--glass, .reviews.has-bg-white .btn--glass, .reviews.has-bg-sand .btn--glass, .reviews.has-bg-mist .btn--glass, .reviews.has-bg-stone .btn--glass { --btn-fg: var(--ink); --btn-bd: rgba(10, 34, 51, 0.35); background: transparent; }

/* Mobile: tighter space between a section's heading block and its content (1rem). */
@media (max-width: 767px) {
	.section-head, .cdir__head, .ccmp__head, .offplan .section-head, .reviews .section-head { margin-bottom: 1rem !important; }
	/* Heads that sit in a grid: the grid gap is the space. */
	.developers__head, .slist__head, .tcards__head, .faq__head, .story__head { margin-bottom: 0 !important; }
	.developers__grid, .slist__side, .tcards__layout, .faq__grid, .story__grid { row-gap: 1rem !important; }
	.developers .devstage { padding-top: 0 !important; }
	.services__grid { gap: 1rem !important; }
	/* Heading and its paragraph sit close together in two-part heads. */
	.section-head--split, .listings__head.section-head--split, .link-cards .section-head--split { row-gap: 0.75rem !important; }
	.section-head.section-head--split > *, .section-head.section-head--split .h2, .section-head.section-head--split .lede { margin-bottom: 0 !important; margin-top: 0 !important; }
	.section-head.section-head--split > div > .h2 { margin-bottom: 0 !important; }
	/* Off-plan cards: larger, closer to the property carousel cards. */
	.offplan__grid.swipe-row { --swipe-w: 88%; --swipe-gap: 0.875rem; }
	.offplan__grid .ocard article { min-height: 500px; }
	/* Property carousel: cards closer together. */
	.carousel__track { gap: 0.875rem !important; }
	/* Sideways-scrolling rows never scroll up and down. */
	.section .swipe-row, .invest__cards, .services__cards, .team__grid, .carousel__track, .ticker__viewport, .glb__thumbs { overflow-y: hidden !important; }
	/* Less space under the small label and under the title. */
	.eyebrow { margin-bottom: 0.5rem !important; }
	.h2 { margin-bottom: 0.75rem; }
	.section-head .h2, .services__intro .h2, .faq__head .h2, .slist__head .h2, .tcards__head .h2, .developers__head .h2, .story__head .h2, .cdir__head .h2, .ccmp__head .h2 { margin-bottom: 0.75rem !important; }
}