/* =============================================================================
   ALTER EGO — Signature
   Warm ivory + ink with champagne-gold accents; Cormorant Garamond / Jost.
   1 Tokens  2 Base  3 Layout  4 Buttons & links  5 Header & menu  6 Hero
   7 Sections  8 Portfolio & lightbox  9 Enquiry  10 Inner pages  11 Footer
   12 Motion & utilities
   ========================================================================== */

/* 1. Tokens ----------------------------------------------------------------- */
:root {
	--ivory: #f7f2ea;
	--paper: #fcfaf6;
	--sand: #efe6d8;
	--line: rgba(27, 24, 21, .12);
	--ink: #1b1815;
	--ink-2: #4a433c;
	--muted: #857a6e;
	--gold: #a8834a;
	--gold-soft: #d2b585;
	--night: #15120f;
	--error: #a23b2a;

	--serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
	--sans: "Jost", "Helvetica Neue", Arial, system-ui, sans-serif;

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

/* 2. Base ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0;
	background: var(--ivory);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 17px;
	font-weight: 400;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.1; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
em { font-style: italic; }
::selection { background: var(--gold-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.icon { width: 1.15em; height: 1.15em; flex: none; }
.icon--lg { width: .7em; height: .7em; display: inline-block; vertical-align: middle; stroke-width: 1; }

.skip-link {
	position: absolute; left: 16px; top: -100px; z-index: 200;
	background: var(--ink); color: var(--ivory); padding: 12px 20px; border-radius: 999px;
}
.skip-link:focus { top: 16px; }
.screen-reader-text, .hp {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.site-main:focus { outline: none; }

/* 3. Layout ----------------------------------------------------------------- */
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(780px + var(--gutter) * 2); }
.section { padding-block: var(--section); position: relative; }
.section--sand { background: var(--sand); }
.section--ink { background: var(--night); color: var(--ivory); }

.eyebrow {
	font-family: var(--sans);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .26em;
	text-transform: uppercase;
	color: var(--gold);
	margin: 0 0 22px;
	display: flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; flex: none; }
.eyebrow--light { color: var(--gold-soft); }
.eyebrow a:hover { color: var(--ink); }

.section-head {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: end;
	gap: 0 40px;
	margin-bottom: clamp(40px, 6vw, 80px);
}
.section-head .eyebrow { grid-column: 1 / -1; }
.section-title {
	font-size: clamp(40px, 6vw, 84px);
	font-weight: 300;
	line-height: 1;
	max-width: 15ch;
}
.section-title em, .hero__title em, .page-hero__title em, .site-footer__big em { color: var(--gold); font-weight: 300; }
.section--ink .section-title em, .enquire .section-title em { color: var(--gold-soft); }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.7; color: var(--ink-2); max-width: 56ch; }

/* 4. Buttons & links -------------------------------------------------------- */
.btn {
	--b-bg: var(--ink); --b-fg: var(--ivory); --b-bd: var(--ink);
	display: inline-flex; align-items: center; justify-content: center; gap: 12px;
	padding: 17px 30px;
	border: 1px solid var(--b-bd);
	border-radius: 999px;
	background: var(--b-bg);
	color: var(--b-fg);
	font-family: var(--sans); font-size: 12.5px; font-weight: 500;
	letter-spacing: .18em; text-transform: uppercase; line-height: 1;
	transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
	white-space: nowrap;
}
.btn .icon { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.btn:hover { --b-bg: var(--gold); --b-bd: var(--gold); --b-fg: #fff; }
.btn:hover .icon { transform: translateX(4px); }
.btn:disabled { opacity: .55; cursor: progress; }
.btn--light { --b-bg: var(--ivory); --b-fg: var(--ink); --b-bd: var(--ivory); }
.btn--ghost-light { --b-bg: transparent; --b-fg: #fff; --b-bd: rgba(255, 255, 255, .55); }
.btn--ghost-light:hover { --b-bg: #fff; --b-fg: var(--ink); --b-bd: #fff; }
.btn--outline { --b-bg: transparent; --b-fg: var(--ink); --b-bd: var(--ink); }
.btn--outline:hover { --b-bg: var(--ink); --b-fg: var(--ivory); --b-bd: var(--ink); }
.btn--text { --b-bg: transparent; --b-bd: transparent; --b-fg: var(--ink); padding-inline: 0; }
.btn--text:hover { --b-bg: transparent; --b-bd: transparent; --b-fg: var(--gold); }
.btn--text:hover .icon { transform: translateX(-4px); }
.btn--small { padding: 12px 22px; }
.btn--block { width: 100%; }

.link-arrow {
	display: inline-flex; align-items: center; gap: 10px;
	font-size: 12.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
	padding-bottom: 6px;
	background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
	transition: background-size .45s var(--ease), color .3s;
	white-space: nowrap;
}
.link-arrow .icon { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.link-arrow:hover { background-size: 30% 1px; color: var(--gold); }
.link-arrow:hover .icon { transform: translateX(5px); }
.link-arrow--light { color: var(--ivory); }

/* 5. Header & mobile menu --------------------------------------------------- */
.site-header {
	position: fixed; inset: 0 0 auto; z-index: 100;
	height: var(--header-h);
	color: var(--ink);
	background: rgba(247, 242, 234, .92);
	-webkit-backdrop-filter: blur(14px) saturate(1.2);
	backdrop-filter: blur(14px) saturate(1.2);
	border-bottom: 1px solid var(--line);
	transition: background .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease), transform .45s var(--ease), height .45s var(--ease);
}
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.site-header__brand { position: relative; display: block; flex: none; }
.site-header .logo { height: 40px; width: auto; transition: opacity .45s var(--ease); }
.site-header .logo--light { position: absolute; inset: 0; opacity: 0; }

.site-nav { margin-left: auto; }
.site-nav__list { display: flex; gap: clamp(20px, 2.4vw, 40px); list-style: none; margin: 0; padding: 0; }
.site-nav__list a {
	font-size: 12.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
	padding: 8px 0; position: relative;
}
.site-nav__list a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
	background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.site-nav__list a:hover::after, .site-nav__list .current-menu-item a::after { transform: scaleX(1); transform-origin: left; }

.site-header__actions { display: flex; align-items: center; gap: 20px; }
.site-header__phone { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; letter-spacing: .04em; }
.site-header__phone .icon { width: 16px; height: 16px; }

/* Transparent over hero imagery until scrolled */
.has-hero .site-header:not(.is-scrolled) { background: transparent; color: #fff; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.has-hero .site-header:not(.is-scrolled) .logo--light { opacity: 1; }
.has-hero .site-header:not(.is-scrolled) .logo--dark { opacity: 0; }
.has-hero .site-header:not(.is-scrolled) .btn--header { --b-bg: transparent; --b-fg: #fff; --b-bd: rgba(255, 255, 255, .6); }
.has-hero .site-header:not(.is-scrolled) .btn--header:hover { --b-bg: #fff; --b-fg: var(--ink); --b-bd: #fff; }
.site-header.is-scrolled { --header-h: 72px; }
.site-header.is-hidden { transform: translateY(-100%); }
.menu-open .site-header { background: transparent; border-color: transparent; color: #fff; transform: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.menu-open .site-header .logo--light { opacity: 1; }
.menu-open .site-header .logo--dark { opacity: 0; }

.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 0; position: relative; }
.menu-toggle__bars { position: absolute; inset: 0; display: grid; place-content: center; gap: 7px; }
.menu-toggle__bars span { display: block; width: 26px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:first-child { transform: translateY(4.25px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

.mobile-menu {
	position: fixed; inset: 0; z-index: 90;
	background: var(--night); color: var(--ivory);
	padding: calc(var(--header-h) + 32px) var(--gutter) 40px;
	display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
	overflow-y: auto;
	opacity: 0; transition: opacity .45s var(--ease);
}
.mobile-menu.is-open { opacity: 1; }
.mobile-menu__list { list-style: none; margin: 0; padding: 0; }
.mobile-menu__list li { overflow: hidden; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.mobile-menu__list a {
	display: block; padding: 12px 0;
	font-family: var(--serif); font-size: clamp(36px, 9vw, 56px); font-weight: 300; line-height: 1.1;
	transform: translateY(100%); transition: transform .7s var(--ease), color .3s;
}
.mobile-menu.is-open .mobile-menu__list a { transform: none; }
.mobile-menu__list li:nth-child(2) a { transition-delay: .05s; }
.mobile-menu__list li:nth-child(3) a { transition-delay: .1s; }
.mobile-menu__list li:nth-child(4) a { transition-delay: .15s; }
.mobile-menu__list li:nth-child(5) a { transition-delay: .2s; }
.mobile-menu__list li:nth-child(6) a { transition-delay: .25s; }
.mobile-menu__list a:hover { color: var(--gold-soft); }
.mobile-menu__contact { display: grid; gap: 10px; color: rgba(247, 242, 234, .75); }
.mobile-menu__contact .btn { margin-top: 16px; }

@media (max-width: 1279px) { .site-header__phone { display: none; } }
@media (max-width: 1079px) {
	.site-nav { display: none; }
	.menu-toggle { display: block; }
	.site-header__actions { margin-left: auto; gap: 12px; }
}
@media (max-width: 520px) {
	:root { --header-h: 70px; }
	.site-header .logo { height: 32px; }
	.btn--header { display: none; }
}

/* 6. Hero ------------------------------------------------------------------- */
.hero {
	position: relative;
	min-height: 100svh;
	min-height: max(640px, 100svh);
	display: flex; flex-direction: column; justify-content: flex-end;
	color: #fff;
	overflow: hidden;
	background: var(--night);
}
.hero__media { position: absolute; inset: 0; }
.hero__slide {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
	opacity: 0; transform: scale(1.08);
	transition: opacity 1.8s var(--ease), transform 9s linear;
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero__video { position: absolute; inset: 0; }
.hero__video wistia-player { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__veil {
	position: absolute; inset: 0;
	background:
		linear-gradient(180deg, rgba(10, 8, 6, .55) 0%, rgba(10, 8, 6, 0) 28%),
		linear-gradient(90deg, rgba(10, 8, 6, .5) 0%, rgba(10, 8, 6, 0) 62%),
		linear-gradient(0deg, rgba(10, 8, 6, .78) 0%, rgba(10, 8, 6, .25) 45%, rgba(10, 8, 6, 0) 70%);
}
.hero__content { position: relative; z-index: 2; padding-bottom: clamp(96px, 12vh, 140px); }
.hero__title {
	font-size: clamp(52px, 8.6vw, 136px);
	font-weight: 300;
	line-height: .95;
	letter-spacing: -.02em;
	max-width: 11.5ch;
	margin-bottom: clamp(28px, 4vw, 48px);
}
.hero__title em { color: var(--gold-soft); }
.hero__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px 64px; flex-wrap: wrap; }
.hero__text { max-width: 44ch; font-size: clamp(17px, 1.4vw, 20px); color: rgba(255, 255, 255, .86); margin: 0; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 0; }
.hero__progress { position: absolute; z-index: 2; left: 0; right: 0; bottom: 40px; display: flex; gap: 8px; justify-content: flex-end; }
.hero__progress span { width: 44px; height: 2px; background: rgba(255, 255, 255, .28); position: relative; overflow: hidden; }
.hero__progress span::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.hero__progress span.is-active::after { animation: aes-progress var(--slide-ms, 6000ms) linear forwards; }
@keyframes aes-progress { to { transform: scaleX(1); } }
.hero__scroll { position: absolute; z-index: 2; left: 50%; bottom: 28px; width: 1px; height: 54px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.hero__scroll span { position: absolute; left: 0; top: -50%; width: 1px; height: 50%; background: #fff; animation: aes-scroll 2.2s var(--ease) infinite; }
@keyframes aes-scroll { to { top: 110%; } }
@media (max-width: 720px) {
	.hero__scroll { display: none; }
	.hero__progress { justify-content: flex-start; bottom: 32px; }
	.hero__actions .btn { flex: 1 1 auto; }
}

/* 7. Sections --------------------------------------------------------------- */
/* Intro */
.intro__statement {
	font-family: var(--serif);
	font-size: clamp(30px, 4.3vw, 64px);
	font-weight: 300;
	line-height: 1.18;
	letter-spacing: -.01em;
	max-width: 27ch;
	margin-bottom: clamp(64px, 9vw, 120px);
}
.intro__statement em { color: var(--gold); }
.pill-img {
	display: inline-block; vertical-align: middle;
	width: 1.9em; height: .95em; border-radius: 999px; overflow: hidden;
	margin: -.12em .08em 0; transform: translateY(-.06em);
}
.pill-img img { width: 100%; height: 100%; object-fit: cover; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.pillar { border-top: 1px solid var(--line); padding-top: 28px; }
.pillar__num { font-size: 12px; letter-spacing: .2em; color: var(--gold); }
.pillar__title { font-size: clamp(30px, 3vw, 42px); font-weight: 400; margin: 14px 0 12px; }
.pillar p { color: var(--ink-2); max-width: 34ch; margin: 0; }
@media (max-width: 820px) { .pillars { grid-template-columns: 1fr; gap: 32px; } }

/* Services index */
.services__layout { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.services__visual {
	position: sticky; top: calc(var(--header-h) + 32px);
	aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--ink);
}
.services__img {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
	opacity: 0; transform: scale(1.06);
	transition: opacity .8s var(--ease), transform 1.4s var(--ease);
}
.services__img.is-active { opacity: 1; transform: none; }
.services__list { list-style: none; margin: 0; padding: 0; counter-reset: s; border-bottom: 1px solid var(--line); }
.service-row { border-top: 1px solid var(--line); }
.service-row__link {
	display: grid; grid-template-columns: 56px 1fr 44px; gap: 8px 20px; align-items: start;
	padding: clamp(24px, 3vw, 36px) 0;
}
.service-row__media { display: none; }
.service-row__num { font-size: 12px; letter-spacing: .2em; color: var(--gold); padding-top: 12px; }
.service-row__title {
	display: block; font-family: var(--serif); font-size: clamp(28px, 2.8vw, 42px); font-weight: 400; line-height: 1.1;
	transition: transform .5s var(--ease), color .3s;
}
.service-row__text {
	display: block; color: var(--ink-2); max-width: 54ch; margin-top: 10px;
	font-size: 16px;
}
.service-row__arrow {
	width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%;
	display: grid; place-items: center; margin-top: 6px;
	transition: background .35s var(--ease), color .35s, border-color .35s, transform .35s var(--ease);
}
.service-row__arrow .icon { width: 16px; height: 16px; }
.service-row.is-active .service-row__title, .service-row__link:hover .service-row__title { transform: translateX(8px); color: var(--gold); }
.service-row.is-active .service-row__arrow, .service-row__link:hover .service-row__arrow { background: var(--ink); color: var(--ivory); border-color: var(--ink); transform: rotate(-45deg); }
@media (max-width: 900px) {
	.services__layout { grid-template-columns: 1fr; }
	.services__visual { display: none; }
	.service-row__link { grid-template-columns: 1fr 44px; }
	.service-row__media { display: block; grid-column: 1 / -1; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); margin-bottom: 12px; }
	.service-row__media img { width: 100%; height: 100%; object-fit: cover; }
	.service-row__num { display: none; }
	.service-row.is-active .service-row__title { transform: none; color: inherit; }
	.service-row.is-active .service-row__arrow { background: none; color: inherit; border-color: var(--line); transform: none; }
}

/* Marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 26px 0; background: var(--ivory); }
.marquee__track { display: flex; gap: 36px; width: max-content; animation: aes-marquee 48s linear infinite; align-items: center; }
.marquee__track span { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(30px, 4vw, 56px); white-space: nowrap; line-height: 1; }
.marquee__track .marquee__dot { font-style: normal; font-size: 18px; color: var(--gold); }
@keyframes aes-marquee { to { transform: translateX(-50%); } }

/* Process */
.section-head--light .section-title { color: var(--ivory); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.step { border-top: 1px solid rgba(247, 242, 234, .18); padding-top: 28px; position: relative; }
.step::before { content: ""; position: absolute; top: -1px; left: 0; width: 48px; height: 1px; background: var(--gold-soft); }
.step__num { font-family: var(--serif); font-size: clamp(56px, 6vw, 88px); font-weight: 300; line-height: 1; color: var(--gold-soft); display: block; }
.step__title { font-size: 32px; margin: 18px 0 12px; color: var(--ivory); }
.step p { color: rgba(247, 242, 234, .68); margin: 0; font-size: 16px; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 48px 32px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* About */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 120px); align-items: center; }
.about__media { position: relative; padding-bottom: 18%; }
.about__photo { overflow: hidden; border-radius: var(--radius); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__photo--main { width: 76%; aspect-ratio: 4 / 5; }
.about__photo--second { position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 1; border: 10px solid var(--ivory); }
.about__badge {
	position: absolute; left: 62%; top: 8%;
	width: 132px; height: 132px; border-radius: 50%;
	background: var(--ink); color: var(--ivory);
	display: grid; place-content: center; text-align: center;
	font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1.1;
	margin: 0;
}
.about__badge span { display: block; font-family: var(--sans); font-style: normal; font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 4px; }
.about .section-title { font-size: clamp(38px, 4.4vw, 64px); max-width: 16ch; }
.about .lead { margin: 28px 0 40px; }
.diffs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.diff { display: flex; gap: 16px; }
.diff__icon { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); display: grid; place-items: center; }
.diff__icon .icon { width: 16px; height: 16px; }
.diff__title { font-size: 24px; margin-bottom: 6px; }
.diff p { color: var(--ink-2); font-size: 15.5px; margin: 0; }
@media (max-width: 980px) { .about__grid { grid-template-columns: 1fr; } .about__media { max-width: 560px; } }
@media (max-width: 560px) { .diffs { grid-template-columns: 1fr; } .about__badge { width: 104px; height: 104px; font-size: 20px; left: auto; right: 4%; } }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.quote { margin: 0; background: var(--paper); padding: 40px 36px; border-radius: var(--radius); position: relative; }
.quote__mark { font-family: var(--serif); font-size: 96px; line-height: .6; color: var(--gold); display: block; height: 40px; }
.quote blockquote { margin: 0 0 24px; font-family: var(--serif); font-size: 24px; line-height: 1.4; }
.quote figcaption { font-size: 14px; color: var(--muted); letter-spacing: .04em; }
.quote figcaption strong { color: var(--ink); font-weight: 500; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: clamp(24px, 3vw, 40px); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .cards--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards--3 { grid-template-columns: 1fr; } }
.card { display: flex; flex-direction: column; gap: 12px; }
.card__media { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--sand); margin-bottom: 8px; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__title { font-family: var(--serif); font-size: clamp(26px, 2.2vw, 32px); line-height: 1.1; }
.card__text { color: var(--ink-2); font-size: 15.5px; }
.card .link-arrow { align-self: flex-start; margin-top: 4px; }

/* 8. Portfolio & lightbox --------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter {
	border: 1px solid var(--line); background: transparent; border-radius: 999px;
	padding: 11px 20px; font-size: 13px; letter-spacing: .06em;
	transition: background .3s var(--ease), color .3s, border-color .3s;
}
.filter:hover { border-color: var(--ink); }
@media (max-width: 720px) {
	/* One swipeable row instead of a tall stack of chips. */
	.filters {
		flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
		margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
		scroll-snap-type: x proximity;
	}
	.filters::-webkit-scrollbar { display: none; }
	.filter { flex: none; scroll-snap-align: start; }
}
.filter.is-active { background: var(--ink); color: var(--ivory); border-color: var(--ink); }

/* Even-row gallery in an editorial rhythm (see aes_tile_layout());
   "dense" packing back-fills any gap left at the end. */
.masonry {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-auto-rows: clamp(280px, 31vw, 460px);
	grid-auto-flow: row dense;
	gap: 18px;
}
@media (max-width: 1024px) { .masonry { grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(240px, 44vw, 420px); } }
@media (max-width: 480px) { .masonry { gap: 10px; grid-auto-rows: 52vw; } }
.tile { margin: 0; min-width: 0; }
.tile--wide { grid-column: span 2; }
.tile--full { grid-column: 1 / -1; }
.tile .tile__open { height: 100%; }
.tile .tile__open img { width: 100%; height: 100%; object-fit: cover; }
.tile.is-hidden, .is-collapsed .tile.is-extra { display: none; }
.tile.is-entering { animation: aes-fade-up .6s var(--ease) both; }
@keyframes aes-fade-up { from { opacity: 0; transform: translateY(16px); } }
.tile__open {
	display: block; width: 100%; padding: 0; border: 0; background: var(--sand);
	position: relative; overflow: hidden; border-radius: var(--radius); text-align: left;
}
.tile__open img { width: 100%; transition: transform 1.2s var(--ease), filter .6s; }
.tile__open:hover img { transform: scale(1.045); }
.tile__cap {
	position: absolute; inset: auto 0 0; padding: 48px 20px 18px;
	background: linear-gradient(0deg, rgba(10, 8, 6, .72), rgba(10, 8, 6, 0));
	color: #fff; display: grid; gap: 2px;
	opacity: 0; transform: translateY(10px); transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.tile__cat { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-soft); }
.tile__title { font-family: var(--serif); font-size: 22px; line-height: 1.15; }
.tile__zoom {
	position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%;
	background: rgba(247, 242, 234, .9); color: var(--ink); display: grid; place-items: center;
	opacity: 0; transform: scale(.8); transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.tile__zoom .icon { width: 18px; height: 18px; }
.tile__open:hover .tile__cap, .tile__open:focus-visible .tile__cap { opacity: 1; transform: none; }
.tile__open:hover .tile__zoom, .tile__open:focus-visible .tile__zoom { opacity: 1; transform: none; }
@media (hover: none) {
	.tile__cap { opacity: 1; transform: none; padding: 36px 12px 12px; }
	.tile__title { font-size: 17px; }
	.tile__cat { display: none; }
}
.portfolio__more { text-align: center; margin-top: 48px; }

.lightbox {
	width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
	background: rgba(14, 11, 9, .96); color: var(--ivory);
	overflow: hidden;
}
.lightbox[open] { display: grid; grid-template-columns: 80px 1fr 80px; align-items: center; animation: aes-fade .35s var(--ease); }
.lightbox::backdrop { background: transparent; }
@keyframes aes-fade { from { opacity: 0; } }
.lightbox__figure { margin: 0; display: grid; justify-items: center; gap: 16px; min-width: 0; }
.lightbox__figure img { max-width: 100%; max-height: 80dvh; width: auto; object-fit: contain; border-radius: 2px; transition: opacity .3s; }
.lightbox__figure img.is-loading { opacity: .2; }
.lightbox__cap { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; justify-content: center; font-family: var(--serif); font-size: 22px; }
.lightbox__count { font-family: var(--sans); font-size: 12px; letter-spacing: .2em; color: rgba(247, 242, 234, .6); }
.lightbox__cap .link-arrow { font-family: var(--sans); }
.lightbox__btn {
	width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(247, 242, 234, .3); background: transparent;
	color: var(--ivory); display: grid; place-items: center; justify-self: center;
	transition: background .3s, color .3s;
}
.lightbox__btn:hover { background: var(--ivory); color: var(--ink); }
.lightbox__close { position: absolute; top: 20px; right: 20px; }
@media (max-width: 640px) {
	.lightbox[open] { grid-template-columns: 1fr; }
	.lightbox__prev, .lightbox__next { position: absolute; bottom: 24px; }
	.lightbox__prev { left: 24px; }
	.lightbox__next { right: 24px; }
	.lightbox__figure img { max-height: 70dvh; }
	.lightbox__cap { padding: 0 16px; font-size: 19px; }
}

/* 9. Enquiry ---------------------------------------------------------------- */
.enquire { background: var(--night); color: var(--ivory); overflow: hidden; }
.enquire__bg { position: absolute; inset: 0; }
.enquire__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .32; }
.enquire__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(21, 18, 15, .96) 0%, rgba(21, 18, 15, .78) 45%, rgba(21, 18, 15, .55) 100%); }
.enquire__grid { position: relative; display: grid; grid-template-columns: 5fr 7fr; gap: clamp(48px, 6vw, 96px); align-items: start; }
.enquire__intro { position: sticky; top: calc(var(--header-h) + 40px); }
.enquire .section-title { color: var(--ivory); }
.enquire .lead { color: rgba(247, 242, 234, .75); margin: 28px 0 36px; }
.contact-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.contact-cards a {
	display: flex; align-items: center; gap: 18px; padding: 16px 20px;
	border: 1px solid rgba(247, 242, 234, .16); border-radius: var(--radius);
	transition: border-color .3s, background .3s;
}
.contact-cards a:hover { border-color: var(--gold-soft); background: rgba(247, 242, 234, .04); }
.contact-cards .icon { width: 22px; height: 22px; color: var(--gold-soft); }
.contact-cards small { display: block; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: rgba(247, 242, 234, .55); }
.contact-cards span { font-size: 16px; overflow-wrap: anywhere; }

.form-card {
	background: var(--paper); color: var(--ink);
	padding: clamp(24px, 4vw, 52px);
	border-radius: 6px;
	box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .5);
}
.enquiry fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.enquiry__step.is-active { animation: aes-fade-up .5s var(--ease); }
.enquiry__progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.enquiry__progress span {
	font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
	padding-top: 12px; border-top: 2px solid var(--line); transition: color .3s, border-color .3s;
}
.enquiry__progress span.is-active, .enquiry__progress span.is-done { color: var(--ink); border-color: var(--gold); }
.enquiry__step-label { font-size: 13px; color: var(--muted); margin-bottom: 28px; }
.enquiry__legend { font-family: var(--serif); font-size: clamp(30px, 3vw, 40px); line-height: 1.1; margin-bottom: 24px; padding: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.chip span {
	display: inline-block; padding: 11px 18px; border: 1px solid var(--line); border-radius: 999px;
	font-size: 14.5px; transition: background .25s, color .25s, border-color .25s;
}
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.chips--small span { padding: 9px 16px; font-size: 14px; }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; margin-top: 28px; }
.field--full { grid-column: 1 / -1; }
.field { display: grid; gap: 4px; margin-bottom: 16px; }
.field label, .field__label { font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.field__label { margin-bottom: 8px; }
.opt { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
	width: 100%; font: inherit; font-size: 17px; color: var(--ink);
	background: transparent; border: 0; border-bottom: 1px solid rgba(27, 24, 21, .25); border-radius: 0;
	padding: 12px 0; transition: border-color .3s;
	-webkit-appearance: none; appearance: none;
}
.field select {
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b1815' stroke-width='1.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right center / 18px no-repeat;
	padding-right: 28px; cursor: pointer;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field input::placeholder, .field textarea::placeholder { color: #b3a99d; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); }
.field__error { color: var(--error); font-size: 13.5px; margin: 4px 0 0; min-height: 0; }
.field__error:empty { display: none; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-2); margin-top: 8px; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }

.enquiry__nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.enquiry__nav [data-next], .enquiry__nav [data-submit] { margin-left: auto; }
.enquiry__status { margin: 16px 0 0; font-size: 15px; color: var(--error); }
.enquiry__status:empty { display: none; }
.is-sending [data-submit] span::after { content: "…"; }
.enquiry__done { text-align: center; padding: 40px 0; }
.enquiry__done:focus { outline: none; }
.enquiry__done-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--ink); color: var(--gold-soft); display: grid; place-items: center; margin: 0 auto 24px; }
.enquiry__done-icon .icon { width: 30px; height: 30px; }
.enquiry__done h3 { font-size: 44px; margin-bottom: 12px; }
.enquiry__done p { color: var(--ink-2); max-width: 40ch; margin: 0 auto 28px; }
@media (max-width: 980px) {
	.enquire__grid { grid-template-columns: 1fr; }
	.enquire__intro { position: static; }
}
@media (max-width: 560px) {
	.field-grid { grid-template-columns: 1fr; }
	.enquiry__nav .btn:not(.btn--text) { flex: 1; }
}

/* 10. Inner pages ----------------------------------------------------------- */
.page-hero { padding: calc(var(--header-h) + clamp(56px, 8vw, 110px)) 0 clamp(40px, 6vw, 72px); position: relative; }
.page-hero__title { font-size: clamp(46px, 7vw, 104px); font-weight: 300; line-height: 1; letter-spacing: -.02em; max-width: 16ch; }
.page-hero__text { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); max-width: 54ch; margin: 24px 0 0; }
.page-hero--image { min-height: max(560px, 74svh); display: flex; align-items: flex-end; color: #fff; background: var(--night); padding-bottom: clamp(48px, 7vw, 96px); }
.page-hero--image .page-hero__text { color: rgba(255, 255, 255, .85); }
.page-hero--image .page-hero__title em { color: var(--gold-soft); }
.page-hero__media { position: absolute; inset: 0; overflow: hidden; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; animation: aes-zoom-out 2.4s var(--ease) both; }
@keyframes aes-zoom-out { from { transform: scale(1.08); } }
.page-hero__media::after {
	content: ""; position: absolute; inset: 0;
	background:
		linear-gradient(90deg, rgba(10, 8, 6, .6) 0%, rgba(10, 8, 6, .1) 65%),
		linear-gradient(0deg, rgba(10, 8, 6, .78) 0%, rgba(10, 8, 6, .25) 55%, rgba(10, 8, 6, .5) 100%);
}
.page-hero__inner { position: relative; z-index: 1; }
.page-hero + .section { padding-top: clamp(48px, 6vw, 88px); }
.page-hero--404 { min-height: 80svh; display: flex; align-items: center; }
.page-hero--404 .hero__actions { margin-top: 36px; }

.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .7); margin-bottom: 28px; }
.crumbs a:hover { color: #fff; }
.page-hero:not(.page-hero--image) .crumbs, .crumbs--dark { color: var(--muted); }
.page-hero:not(.page-hero--image) .crumbs a:hover, .crumbs--dark a:hover { color: var(--ink); }

.detail { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(40px, 7vw, 112px); align-items: start; }
.detail__aside { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 24px; }
.detail__thumb { aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius); }
@media (max-height: 760px) { .detail__thumb { display: none; } }
.detail__thumb img { width: 100%; height: 100%; object-fit: cover; }
.aside-card { background: var(--sand); padding: clamp(24px, 3vw, 40px); border-radius: var(--radius); }
.aside-card__title { font-size: 30px; margin-bottom: 20px; }
.ticks { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.ticks .icon { color: var(--gold); width: 18px; height: 18px; margin-top: 4px; }
@media (max-width: 900px) { .detail { grid-template-columns: 1fr; } .detail__aside { position: static; } .detail__thumb { display: none; } }

.prose { font-size: 18px; line-height: 1.8; color: var(--ink-2); }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-size: clamp(32px, 3.4vw, 46px); color: var(--ink); margin: 1.6em 0 .5em; font-weight: 400; }
.prose h3 { font-size: clamp(26px, 2.4vw, 32px); color: var(--ink); margin: 1.4em 0 .4em; }
.prose p:first-of-type { font-size: 1.12em; color: var(--ink); }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--gold); }
.prose img { border-radius: var(--radius); }
.prose blockquote { margin: 1.6em 0; padding-left: 24px; border-left: 2px solid var(--gold); font-family: var(--serif); font-size: 1.4em; color: var(--ink); }

.project__head { padding-top: calc(var(--header-h) + clamp(48px, 7vw, 96px)); padding-bottom: 40px; }
.project__title { font-size: clamp(44px, 6.4vw, 96px); font-weight: 300; line-height: 1; max-width: 18ch; }
.project__figure { margin-block: 0 clamp(48px, 7vw, 96px); }
.project__figure .tile__open { cursor: zoom-in; }
.project__figure img { width: 100%; max-height: 88svh; object-fit: cover; }
.project__body { margin-bottom: clamp(48px, 7vw, 96px); }
.project__pager { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); padding-block: 32px var(--section); }
.pager { display: grid; gap: 6px; font-family: var(--serif); font-size: clamp(22px, 2.4vw, 32px); line-height: 1.15; max-width: 45%; transition: color .3s; }
.pager small { display: inline-flex; align-items: center; gap: 6px; font-family: var(--sans); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.pager small .icon { width: 14px; height: 14px; }
.pager--next { margin-left: auto; text-align: right; }
.pager--next small { justify-content: flex-end; }
.pager:hover { color: var(--gold); }

.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; gap: 8px; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; }
.pagination .current { background: var(--ink); color: var(--ivory); }

/* 11. Footer ---------------------------------------------------------------- */
.site-footer { background: var(--night); color: var(--ivory); padding: clamp(80px, 10vw, 140px) 0 32px; border-top: 1px solid rgba(247, 242, 234, .08); }
.site-footer__cta { padding-bottom: clamp(64px, 8vw, 110px); border-bottom: 1px solid rgba(247, 242, 234, .12); margin-bottom: 64px; }
.site-footer__big {
	display: inline-block;
	font-family: var(--serif); font-size: clamp(44px, 8vw, 128px); font-weight: 300; line-height: 1; letter-spacing: -.02em;
	max-width: 14ch; transition: color .4s var(--ease);
}
.site-footer__big em { color: var(--gold-soft); }
.site-footer__big .icon { transition: transform .5s var(--ease); }
.site-footer__big:hover { color: var(--gold-soft); }
.site-footer__big:hover .icon { transform: translate(8px, -8px); }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1.3fr 1.5fr; gap: 48px 40px; }
.site-footer__brand .logo { height: 52px; width: auto; margin-bottom: 24px; }
.site-footer__brand p { color: rgba(247, 242, 234, .62); max-width: 36ch; font-size: 15.5px; }
.site-footer__title { font-family: var(--sans); font-size: 11.5px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 20px; }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer__links a, .site-footer__links span { color: rgba(247, 242, 234, .72); font-size: 15.5px; transition: color .3s; display: inline-flex; gap: 10px; align-items: center; overflow-wrap: anywhere; }
.site-footer__links a:hover { color: var(--ivory); }
.site-footer__contact .icon { width: 16px; height: 16px; color: var(--gold-soft); }
.socials { display: flex; gap: 10px; margin-top: 24px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(247, 242, 234, .2); display: grid; place-items: center; transition: background .3s, color .3s; }
.socials a:hover { background: var(--ivory); color: var(--ink); }
.socials .icon { width: 18px; height: 18px; }
.site-footer__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 72px; padding-top: 24px; border-top: 1px solid rgba(247, 242, 234, .1); font-size: 13px; color: rgba(247, 242, 234, .5); }
@media (max-width: 980px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }

.wa-float {
	position: fixed; right: 20px; bottom: 20px; z-index: 80;
	width: 58px; height: 58px; border-radius: 50%;
	background: #25d366; color: #fff; display: grid; place-items: center;
	box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .35);
	transform: translateY(120px); transition: transform .5s var(--ease);
}
.wa-float.is-visible { transform: none; }
.wa-float:hover { transform: scale(1.06); }
.wa-float .icon { width: 30px; height: 30px; }

/* 12. Motion & utilities ---------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease) var(--d, 0ms), transform 1s var(--ease) var(--d, 0ms); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js .hero__eyebrow, .js .hero__title, .js .hero__row { animation: aes-fade-up 1.2s var(--ease) both; }
.js .hero__title { animation-delay: .15s; }
.js .hero__row { animation-delay: .35s; }

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