/*
Theme Name: Syndicate – Version 1 (Dark Editorial)
Description: A fast, minimal and premium theme for a thoroughbred racing syndicate. Home, About and Contact pages, horse listings and an enquiry form that emails you and keeps every lead in wp-admin. All copy, images and colours are editable in Appearance → Customize.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: syndicate
*/

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
	--ink: #0b0d10;
	--ink-2: color-mix(in srgb, var(--ink) 92%, #fff);
	--paper: #f6f4ef;
	--white: #fff;
	--text: #1a1d22;
	--muted: #5d636c;
	--line: rgba(11, 13, 16, .12);
	--on-dark: #f3f1ec;
	--on-dark-muted: rgba(243, 241, 236, .7);
	--line-dark: rgba(255, 255, 255, .16);
	--accent: #c6a15b;
	--accent-ink: #0b0d10;
	--error: #b3261e;

	--serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
	--sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--wrap: 1240px;
	--gutter: clamp(16px, 4vw, 40px);
	--section: clamp(88px, 11vw, 160px);
	--radius: 6px;
	--ease: cubic-bezier(.2, .7, .2, 1);
	--header-h: 84px;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--text);
	font: 400 17px/1.7 var(--sans);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.04; letter-spacing: -.012em; margin: 0 0 .45em; }
h1 em, h2 em, h3 em, .statement em, .mission__statement em { font-style: italic; color: var(--accent); }
p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; margin: 0; z-index: 100; top: 12px; left: 12px;
	padding: 12px 18px; background: var(--white); color: var(--ink); border-radius: var(--radius);
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ==========================================================================
   Type helpers
   ========================================================================== */
.display { font-size: clamp(3.1rem, 7.6vw, 7.25rem); line-height: .96; }
.h1 { font-size: clamp(2.75rem, 5.8vw, 5.25rem); }
.h2 { font-size: clamp(2.3rem, 4.4vw, 4rem); }
.h3 { font-size: clamp(1.5rem, 2vw, 1.9rem); line-height: 1.15; }
.lead { font-size: clamp(1.1rem, 1.45vw, 1.3rem); line-height: 1.65; }
.muted { color: var(--muted); }

.eyebrow {
	display: inline-flex; align-items: center; gap: 14px;
	margin: 0 0 28px;
	font: 700 12px/1.2 var(--sans); letter-spacing: .22em; text-transform: uppercase;
	color: var(--muted);
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: var(--accent); flex: none; }
.is-dark .eyebrow, .section--dark .eyebrow { color: var(--on-dark-muted); }

/* ==========================================================================
   Buttons & links
   ========================================================================== */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 12px;
	min-height: 56px; padding: 0 30px;
	border: 1px solid transparent; border-radius: 999px;
	font: 700 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
	text-decoration: none; cursor: pointer; white-space: nowrap;
	transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.btn svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: color-mix(in srgb, var(--accent) 86%, #fff); box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn--ghost { border-color: var(--line-dark); color: var(--on-dark); }
.btn--ghost:hover { border-color: var(--on-dark); background: rgba(255, 255, 255, .06); }
.btn--dark { background: var(--ink); color: var(--on-dark); }
.btn--dark:hover { background: var(--ink-2); }
.btn--sm { min-height: 44px; padding: 0 22px; font-size: 12px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: progress; }

.link-arrow {
	display: inline-flex; align-items: center; gap: 10px;
	font: 700 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
	text-decoration: none; padding-bottom: 6px;
	background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
	transition: background-size .4s var(--ease), gap .3s var(--ease);
}
.link-arrow svg { width: 15px; height: 15px; }
.link-arrow:hover { gap: 14px; background-size: 40% 1px; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	position: fixed; inset: 0 0 auto; z-index: 50;
	height: var(--header-h);
	color: var(--on-dark);
	border-bottom: 1px solid transparent;
	transition: background-color .4s var(--ease), border-color .4s var(--ease), height .4s var(--ease);
}
.site-header > .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.site-header.is-scrolled,
.has-solid-header .site-header,
.menu-open .site-header {
	--header-h: 72px;
	background: color-mix(in srgb, var(--ink) 90%, transparent);
	-webkit-backdrop-filter: saturate(140%) blur(14px);
	backdrop-filter: saturate(140%) blur(14px);
	border-color: var(--line-dark);
}
.menu-open .site-header { background: var(--ink); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand__mark { width: 30px; height: 30px; color: var(--accent); }
.brand__name { font: 700 14px/1.1 var(--sans); letter-spacing: .26em; text-transform: uppercase; }
.custom-logo { max-height: 46px; width: auto; }

.primary-nav ul { list-style: none; display: flex; gap: clamp(24px, 3vw, 44px); }
.primary-nav a {
	position: relative; display: block; padding: 8px 0;
	font-size: 14px; font-weight: 500; letter-spacing: .04em; text-decoration: none;
	opacity: .78; transition: opacity .25s;
}
.primary-nav a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
	background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav .current_page_item > a { opacity: 1; }
.primary-nav a:hover::after, .primary-nav .current-menu-item > a::after, .primary-nav .current_page_item > a::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
	display: none; width: 46px; height: 46px; padding: 0; border: 1px solid var(--line-dark); border-radius: 50%;
	background: transparent; color: inherit; cursor: pointer; place-items: center;
}
.nav-toggle__bars, .nav-toggle__bars::before { display: block; width: 18px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease); }
.nav-toggle__bars { position: relative; transform: translateY(-3px); }
.nav-toggle__bars::before { content: ""; position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { transform: translateY(0) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(-6px) rotate(-90deg); }

/* Mobile menu overlay */
.mobile-menu {
	position: fixed; inset: 0; z-index: 45;
	display: flex; flex-direction: column; justify-content: space-between;
	padding: calc(var(--header-h) + 40px) var(--gutter) calc(32px + env(safe-area-inset-bottom));
	background: var(--ink); color: var(--on-dark);
	opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
	overflow-y: auto;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.menu-open { overflow: hidden; }
.mobile-menu ul { list-style: none; }
.mobile-menu li { overflow: hidden; border-bottom: 1px solid var(--line-dark); }
.mobile-menu li a {
	display: block; padding: 14px 0; text-decoration: none;
	font: 400 clamp(2.4rem, 11vw, 3.4rem)/1.1 var(--serif);
	transform: translateY(100%); transition: transform .6s var(--ease);
}
.menu-open .mobile-menu li a { transform: none; }
.menu-open .mobile-menu li:nth-child(2) a { transition-delay: .05s; }
.menu-open .mobile-menu li:nth-child(3) a { transition-delay: .1s; }
.menu-open .mobile-menu li:nth-child(4) a { transition-delay: .15s; }
.mobile-menu .current-menu-item a, .mobile-menu .current_page_item a { color: var(--accent); font-style: italic; }
.mobile-menu__foot { display: grid; gap: 20px; margin-top: 40px; }
.mobile-menu__contact { display: grid; gap: 6px; font-size: 15px; color: var(--on-dark-muted); }
.mobile-menu__contact a { text-decoration: none; }

@media (max-width: 959px) {
	.primary-nav { display: none; }
	.nav-toggle { display: grid; }
}
@media (min-width: 960px) { .mobile-menu { display: none; } }
@media (max-width: 599px) { .header-cta { display: none; } }

/* ==========================================================================
   Heroes
   ========================================================================== */
.hero {
	position: relative; isolation: isolate; overflow: hidden;
	min-height: max(640px, 100svh);
	display: flex; align-items: flex-end;
	background: var(--ink); color: var(--on-dark);
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; animation: hero-zoom 2.6s var(--ease) both; }
.hero::after {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background:
		linear-gradient(180deg, rgba(11, 13, 16, .6) 0%, rgba(11, 13, 16, .1) 32%, rgba(11, 13, 16, .2) 55%, rgba(11, 13, 16, .9) 100%),
		linear-gradient(90deg, rgba(11, 13, 16, .55) 0%, transparent 65%);
}
.hero__content { width: 100%; padding-top: calc(var(--header-h) + 64px); padding-bottom: clamp(64px, 11vh, 120px); }
.hero__content > * { animation: rise 1.1s var(--ease) both; }
.hero__content > :nth-child(2) { animation-delay: .1s; }
.hero__content > :nth-child(3) { animation-delay: .2s; }
.hero__content > :nth-child(4) { animation-delay: .3s; }
.hero .eyebrow { color: var(--on-dark-muted); }
.hero__title { max-width: 11.5ch; margin-bottom: 28px; }
.hero__text { max-width: 540px; color: var(--on-dark-muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero__scroll {
	position: absolute; right: var(--gutter); bottom: clamp(64px, 11vh, 120px);
	display: flex; flex-direction: column; align-items: center; gap: 16px;
	font: 700 11px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--on-dark-muted);
	writing-mode: vertical-rl; text-decoration: none;
}
.hero__scroll::after { content: ""; width: 1px; height: 64px; background: linear-gradient(var(--on-dark), transparent); animation: scroll-line 2.4s var(--ease) infinite; }

.hero--page { min-height: max(520px, 74svh); }
.hero--page .hero__title { max-width: 14ch; }
.hero--plain { min-height: 0; }
.hero--plain .hero__content { padding-top: calc(var(--header-h) + 96px); padding-bottom: 72px; }

@media (max-width: 767px) {
	.hero__scroll { display: none; }
	.hero__actions .btn { flex: 1 1 100%; }
}

@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes scroll-line { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: var(--section) 0; }
.section--white { background: var(--white); }
.section--dark { background: var(--ink); color: var(--on-dark); }
.section--dark .muted, .section--dark p { color: var(--on-dark-muted); }
.section--tight-top { padding-top: 0; }

.section-head {
	display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 6vw, 96px); align-items: end;
	margin-bottom: clamp(48px, 6vw, 80px);
}
.section-head h2 { margin: 0; max-width: 15ch; }
.section-head__aside { display: grid; gap: 28px; justify-items: start; }
.section-head__aside p { color: var(--muted); }
.section--dark .section-head__aside p { color: var(--on-dark-muted); }
@media (max-width: 859px) { .section-head { grid-template-columns: 1fr; } }

/* Intro split */
.intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); align-items: center; }
.intro__media { grid-column: 1 / 7; position: relative; }
.intro__body { grid-column: 8 / 13; }
.intro__body h2 { margin-bottom: 32px; }
.intro__body .link-arrow { margin-top: 36px; }
.frame { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--ink); }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.frame:hover img { transform: scale(1.03); }
.frame--portrait { aspect-ratio: 4 / 5; }
.intro__badge {
	position: absolute; right: clamp(-48px, -3vw, -16px); bottom: 40px;
	width: 156px; height: 156px; border-radius: 50%;
	display: grid; place-items: center; text-align: center;
	background: var(--accent); color: var(--accent-ink);
	font: 700 11px/1.5 var(--sans); letter-spacing: .2em; text-transform: uppercase;
	box-shadow: 0 24px 50px -20px rgba(11, 13, 16, .5);
}
.intro__badge strong { display: block; font: italic 400 34px/1 var(--serif); letter-spacing: 0; text-transform: none; margin-bottom: 4px; }
@media (max-width: 959px) {
	.intro__media, .intro__body { grid-column: 1 / -1; }
	.intro__body { order: -1; margin-bottom: 24px; }
	.intro__badge { right: 16px; bottom: 16px; width: 128px; height: 128px; }
}

/* Feature list */
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 3vw, 48px); }
.feature { border-top: 1px solid var(--line); padding-top: 32px; }
.feature__num { display: block; margin-bottom: 40px; font: italic 400 22px/1 var(--serif); color: var(--accent); }
.feature h3 { font-size: 1.7rem; line-height: 1.15; margin-bottom: 14px; }
.feature p { color: var(--muted); font-size: 16px; line-height: 1.65; }
@media (max-width: 959px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559px) { .features { grid-template-columns: 1fr; } .feature__num { margin-bottom: 20px; } }

/* Statement band */
.statement {
	position: relative; isolation: isolate; overflow: hidden;
	min-height: max(560px, 86vh);
	display: grid; place-items: center; text-align: center;
	color: var(--on-dark); background: var(--ink);
}
.statement__media { position: absolute; inset: -8% 0; z-index: -2; }
.statement__media img { width: 100%; height: 100%; object-fit: cover; }
.statement::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(11, 13, 16, .45) 0%, rgba(11, 13, 16, .78) 100%); }
.statement blockquote { margin: 0; padding: var(--section) var(--gutter); }
.statement p { font: 400 clamp(2.2rem, 5vw, 4.6rem)/1.06 var(--serif); letter-spacing: -.012em; max-width: 17ch; margin: 0 auto 36px; }
.statement cite { font: 700 12px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; font-style: normal; color: var(--on-dark-muted); }

/* Horses */
.horses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.horse-card {
	display: flex; flex-direction: column; overflow: hidden;
	background: var(--white); border-radius: var(--radius);
	box-shadow: 0 1px 0 var(--line);
	transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.horse-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(11, 13, 16, .35); }
.horse-card__media { position: relative; aspect-ratio: 4 / 3.4; overflow: hidden; background: var(--ink); }
.horse-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.horse-card:hover .horse-card__media img { transform: scale(1.05); }
.badge {
	position: absolute; top: 16px; left: 16px;
	display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
	border-radius: 999px; background: rgba(11, 13, 16, .72); color: #fff;
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	font: 700 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.badge--limited::before { background: #f2994a; }
.badge--soon::before { background: #fff; }
.badge--full::before { background: #8c929b; }
.horse-card__body { flex: 1; display: flex; flex-direction: column; padding: clamp(24px, 2.4vw, 32px); }
.horse-card__pedigree { margin: 0 0 10px; font: 700 11.5px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.horse-card h3 { font-size: clamp(1.85rem, 2.4vw, 2.2rem); margin-bottom: 18px; }
.horse-card__excerpt { color: var(--muted); font-size: 16px; line-height: 1.65; margin-bottom: 22px; }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; margin: 0 0 28px; }
.specs div { min-width: 0; }
.specs dt { font: 700 10.5px/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.specs dd { margin: 0; font-size: 15px; line-height: 1.45; font-weight: 500; }
.horse-card__cta { margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line); }
@media (max-width: 959px) { .horses { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .horses { grid-template-columns: 1fr; } }
.horses-empty { padding: 48px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; color: var(--muted); }

/* Steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); counter-reset: step; }
.step { border-top: 1px solid var(--line-dark); padding-top: 32px; }
.step__num { display: block; margin-bottom: 28px; font: italic 400 clamp(3.5rem, 6vw, 5.5rem)/.9 var(--serif); color: var(--accent); }
.step h3 { font-size: 1.85rem; margin-bottom: 14px; }
@media (max-width: 767px) { .steps { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band {
	position: relative; isolation: isolate; overflow: hidden;
	padding: clamp(120px, 16vw, 220px) 0; text-align: center;
	background: var(--ink); color: var(--on-dark);
}
.cta-band__media { position: absolute; inset: 0; z-index: -2; }
.cta-band__media img { width: 100%; height: 100%; object-fit: cover; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 13, 16, .55), rgba(11, 13, 16, .82)); }
.cta-band .eyebrow { color: var(--on-dark-muted); }
.cta-band h2 { max-width: 16ch; margin: 0 auto 28px; }
.cta-band p { max-width: 560px; margin: 0 auto 44px; color: var(--on-dark-muted); }

/* ==========================================================================
   About
   ========================================================================== */
.story { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.story__aside { position: sticky; top: 120px; }
.story__aside h2 { margin-bottom: 40px; }
@media (max-width: 859px) {
	.story { grid-template-columns: 1fr; }
	.story__aside { position: static; }
	.story__aside .frame { aspect-ratio: 16 / 10; }
}

.entry { font-size: 18px; line-height: 1.8; }
.entry--narrow { max-width: 760px; }
.entry > :first-child { margin-top: 0; }
.entry > p:first-child {
	font: 400 clamp(1.65rem, 2.5vw, 2.2rem)/1.28 var(--serif); letter-spacing: -.005em;
	color: var(--ink); margin-bottom: 1.1em;
}
.entry h2 { font-size: clamp(2rem, 3vw, 2.6rem); margin-top: 1.6em; }
.entry h3 { font-size: 1.6rem; margin-top: 1.5em; }
.entry ul, .entry ol { padding-left: 1.2em; margin-bottom: 1.4em; }
.entry li { margin-bottom: .4em; }
.entry a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; }
.entry blockquote { margin: 2em 0; padding-left: 28px; border-left: 2px solid var(--accent); font: italic 400 1.6rem/1.35 var(--serif); }
.entry img { border-radius: var(--radius); }

.mission { display: grid; gap: clamp(64px, 9vw, 120px); }
.section--dark .mission__statement, .mission__statement { font: 400 clamp(2.1rem, 4.4vw, 4rem)/1.1 var(--serif); letter-spacing: -.012em; max-width: 22ch; margin: 0; color: var(--on-dark); }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); }
.value { border-top: 1px solid var(--line-dark); padding-top: 32px; }
.value h3 { font-size: 1.85rem; margin-bottom: 14px; }
@media (max-width: 767px) { .values { grid-template-columns: 1fr; } }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100svh; }
.contact__panel {
	position: relative; isolation: isolate; overflow: hidden;
	display: flex; flex-direction: column; justify-content: space-between; gap: 56px;
	padding: calc(var(--header-h) + clamp(48px, 7vw, 96px)) clamp(24px, 5vw, 80px) clamp(48px, 6vw, 72px);
	background: var(--ink); color: var(--on-dark);
}
.contact__media { position: absolute; inset: 0; z-index: -2; }
.contact__media img { width: 100%; height: 100%; object-fit: cover; }
.contact__panel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 13, 16, .78) 0%, rgba(11, 13, 16, .6) 45%, rgba(11, 13, 16, .92) 100%); }
.contact__panel .eyebrow { color: var(--on-dark-muted); }
.contact__panel h1 { max-width: 11ch; margin-bottom: 28px; }
.contact__intro > * { animation: rise 1.1s var(--ease) both; }
.contact__intro > :nth-child(2) { animation-delay: .1s; }
.contact__intro > :nth-child(3) { animation-delay: .2s; }
.contact__panel p { color: var(--on-dark-muted); max-width: 460px; }

.next-steps { list-style: none; display: grid; gap: 18px; counter-reset: next; max-width: 460px; }
.next-steps li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: baseline; color: var(--on-dark-muted); font-size: 15.5px; line-height: 1.6; }
.next-steps li::before { counter-increment: next; content: "0" counter(next); font: italic 400 22px/1 var(--serif); color: var(--accent); }
.next-steps strong { color: var(--on-dark); font-weight: 600; }

.contact-details { margin: 48px 0 0; display: flex; flex-wrap: wrap; gap: 16px 40px; padding-top: 32px; border-top: 1px solid var(--line-dark); font-size: 15px; }
.contact-details dt { font: 700 10.5px/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 6px; }
.contact-details dd { margin: 0; }
.contact-details a { text-decoration: none; }
.contact-details a:hover { color: var(--accent); }

.contact__form-wrap {
	display: flex; align-items: center; justify-content: center;
	padding: calc(var(--header-h) + clamp(48px, 7vw, 96px)) clamp(24px, 5vw, 80px) clamp(48px, 6vw, 72px);
}
.contact__form-inner { width: 100%; max-width: 500px; }
.contact__form-inner > h2 { font-size: clamp(2rem, 3vw, 2.6rem); margin-bottom: 10px; }
.contact__form-inner > .muted { margin-bottom: 36px; }

@media (max-width: 959px) {
	.contact { grid-template-columns: 1fr; min-height: 0; }
	.contact__form-wrap { padding-top: 64px; padding-bottom: 88px; }
}

/* Form */
.enquiry-form { display: grid; gap: 22px; }
.field label {
	display: block; margin-bottom: 10px;
	font: 700 11.5px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.field label span { color: var(--accent); }
.field input {
	width: 100%; height: 58px; padding: 0 18px;
	border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
	font: 500 17px/1 var(--sans); color: var(--text);
	transition: border-color .25s, box-shadow .25s;
	-webkit-appearance: none; appearance: none;
}
.field input::placeholder { color: #a3a8af; font-weight: 400; }
.field input:hover { border-color: rgba(11, 13, 16, .3); }
.field input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 28%, transparent); }
.field--error input { border-color: var(--error); }
.field__error { margin: 8px 0 0; color: var(--error); font-size: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 559px) { .form-row { grid-template-columns: 1fr; } }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.55; color: var(--muted); margin: 0; }
.form-note svg { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--accent); }
.enquiry-form .btn { margin-top: 6px; min-height: 60px; }

.interest {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 14px 18px; border-radius: var(--radius);
	background: color-mix(in srgb, var(--accent) 14%, var(--white)); font-size: 15px;
}
.interest strong { font-weight: 700; }
.interest a { font-size: 13px; color: var(--muted); }

.notice { padding: 16px 20px; border-radius: var(--radius); font-size: 15px; line-height: 1.55; }
.notice--error { background: #fbecea; color: #7a1d17; border: 1px solid #f1c7c3; }

.form-success { text-align: left; }
.form-success__icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); margin-bottom: 32px; }
.form-success__icon svg { width: 28px; height: 28px; }
.form-success h2 { font-size: clamp(2.2rem, 3.4vw, 3rem); margin-bottom: 18px; }
.form-success p { color: var(--muted); margin-bottom: 36px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: var(--on-dark-muted); font-size: 15px; padding: clamp(72px, 9vw, 112px) 0 40px; border-top: 1px solid var(--line-dark); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; padding-bottom: 64px; border-bottom: 1px solid var(--line-dark); }
.footer-brand .brand { color: var(--on-dark); margin-bottom: 24px; }
.footer-brand p { max-width: 360px; margin-bottom: 32px; }
.footer-col h2 { font: 700 11px/1.2 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--on-dark); margin-bottom: 22px; }
.footer-col ul { list-style: none; display: grid; gap: 12px; }
.footer-col a { text-decoration: none; transition: color .2s; }
.footer-col a:hover { color: var(--accent); }
.socials { display: flex; gap: 10px; margin-top: 24px; }
.socials a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line-dark); border-radius: 50%; transition: border-color .25s, color .25s; }
.socials a:hover { border-color: var(--accent); color: var(--accent); }
.socials svg { width: 17px; height: 17px; }
.footer-legal { padding-top: 32px; display: grid; gap: 20px; font-size: 13px; line-height: 1.6; }
.footer-legal p { max-width: 820px; margin: 0; opacity: .8; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--on-dark); }
@media (max-width: 859px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 479px) { .footer-top { grid-template-columns: 1fr; } }

/* Sticky mobile CTA */
.mobile-cta {
	position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
	transform: translateY(160%); transition: transform .5s var(--ease);
}
.mobile-cta .btn { width: 100%; box-shadow: 0 16px 40px -12px rgba(11, 13, 16, .55); }
.mobile-cta.is-visible { transform: none; }
.menu-open .mobile-cta { transform: translateY(160%); }
@media (min-width: 768px) { .mobile-cta { display: none; } }
@media (max-width: 767px) { .site-footer { padding-bottom: 104px; } }

/* 404 */
.not-found .hero__actions { margin-top: 28px; }

/* ==========================================================================
   Motion
   ========================================================================== */
.js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="2"] { transition-delay: .1s; }
.js [data-reveal="3"] { transition-delay: .2s; }
.js [data-reveal="4"] { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
	.js [data-reveal] { opacity: 1; transform: none; }
}
