/*
Theme Name: TH Stone
Description: Custom theme for TH Marble & Granite. A lookbook for Egyptian stone.
Version: 1.3.0
Requires PHP: 7.4
Text Domain: th-stone
*/

/* ---------- Fonts (self-hosted, latin) ---------- */
@font-face {
	font-family: "Bodoni Moda";
	src: url("assets/fonts/bodoni-moda.woff2") format("woff2");
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Bodoni Moda";
	src: url("assets/fonts/bodoni-moda-italic.woff2") format("woff2");
	font-weight: 400 700;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: "Hanken Grotesk";
	src: url("assets/fonts/hanken-grotesk.woff2") format("woff2");
	font-weight: 300 600;
	font-style: normal;
	font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
	--bg: #f2f1ee;
	--bg-2: #e7e6e1;
	--ink: #14161c;
	--ink-2: #4a4d57;
	--line: rgb(20 22 28 / 0.14);
	--gold: #8a6a24;
	--gold-bright: #c9a24a;
	--gold-glow: #dcbb68;
	--lapis: #1b2f5e;
	--lapis-deep: #142449;
	--lapis-2: #2a4a8c;
	--accent: var(--lapis);
	--accent-hover: var(--lapis-2);
	--on-accent: #f2f1ee;
	--accent-text: var(--lapis);
	--band: var(--lapis);
	--band-deep: var(--lapis-deep);
	--band-ink: #eef0f5;
	--band-ink-2: rgb(238 240 245 / 0.74);
	--band-line: rgb(238 240 245 / 0.18);
	--on-photo: #f4f3ef;
	--on-photo-soft: rgb(244 243 239 / 0.9);
	--photo-ink: #15161a;
	--photo-ground: #141b30;
	--scrim: rgb(12 12 14 / 0.62);
	--scrim-soft: rgb(12 12 14 / 0.3);
	--scrim-full: rgb(12 12 14 / 0.94);
	--line-on-photo: rgb(244 243 239 / 0.28);
	--error: #b3261e;

	/* type ramp */
	--fs-label: 0.875rem;
	--fs-small: 0.9375rem;
	--fs-body: 1.0625rem;
	--fs-large: 1.125rem;
	--fs-lead: clamp(1.0625rem, 1.5vw, 1.25rem);
	--fs-title: clamp(1.5rem, 2.6vw, 2.25rem);
	--fs-heading: clamp(1.75rem, 3vw, 2.75rem);
	--fs-statement: clamp(1.75rem, 3.4vw, 3rem);
	--fs-headline: clamp(2.25rem, 4.6vw, 4rem);
	--fs-name: clamp(2.75rem, 5.2vw, 4.75rem);
	--fs-display: clamp(3rem, 7.4vw, 6rem);

	--serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
	--sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

	--wrap: 1400px;
	--gutter: clamp(1rem, 4vw, 3rem);
	--header-h: 72px;
	--strip-h: 40px;

	/* shape: pills for controls, soft corners for media and panels */
	--r-pill: 999px;
	--r-lg: 20px;
	--r-md: 14px;
	--r-sm: 10px;
	--section: clamp(5rem, 11vw, 9rem);
	--ease: cubic-bezier(0.16, 1, 0.3, 1);

	/* z-index scale */
	--z-header: 10;
	--z-nav: 15;
	--z-float: 20;

	color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #0e1322;
		--bg-2: #161d33;
		--ink: #eceef3;
		--ink-2: #a7adbd;
		--line: rgb(236 238 243 / 0.14);
		--gold: #d4b060;
		--accent: #2f4f94;
		--accent-hover: #3b62b3;
		--accent-text: #8fa9e6;
		--band: #172446;
		--band-deep: #0a0f1c;
		--error: #f2a59f;
	}
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 3.5rem); }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 400 var(--fs-body)/1.6 var(--sans);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	caret-color: var(--gold);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
html { scrollbar-color: var(--ink-2) var(--bg); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: var(--bg); padding: 0.75rem 1rem; }
.skip:focus { top: 1rem; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Type ---------- */
.section-title {
	font-family: var(--serif);
	font-size: var(--fs-headline);
	line-height: 1.05;
	letter-spacing: -0.02em;
	margin-bottom: 1.5rem;
}

/* ---------- Buttons and links ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6em;
	min-height: 52px;
	padding: 0 1.75rem;
	background: var(--accent) linear-gradient(var(--accent-hover), var(--accent-hover)) left / 0 100% no-repeat;
	color: var(--on-accent);
	border: 1px solid var(--accent);
	font: 500 var(--fs-small)/1 var(--sans);
	letter-spacing: 0.01em;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-size 0.5s var(--ease), color 0.3s var(--ease), transform 0.15s var(--ease);
}
.btn:hover { background-size: 100% 100%; }
.btn:active { transform: translateY(1px); }
.btn--small { min-height: 42px; padding: 0 1.15rem; font-size: var(--fs-label); }
.btn--light, .band .btn { background-color: var(--gold-bright); background-image: linear-gradient(var(--gold-glow), var(--gold-glow)); border-color: var(--gold-bright); color: var(--lapis-deep); }

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	min-height: 44px;
	font-weight: 500;
	font-size: var(--fs-small);
	text-decoration: none;
	background: linear-gradient(currentColor, currentColor) left calc(100% - 10px) / 0 1px no-repeat;
	transition: background-size 0.45s var(--ease);
}
.link-arrow:hover { background-size: 100% 1px; }
.link-arrow .icon { width: 1.1em; height: 1.1em; transition: transform 0.45s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-arrow--light { color: var(--on-photo); }

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: var(--z-header);
	height: var(--header-h);
	background: var(--bg);
	border-bottom: 1px solid var(--line);
	transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease);
}
.has-hero .site-header { position: fixed; inset: 0 0 auto; }
.has-hero:not(.is-scrolled) .site-header { background: transparent; border-color: var(--line-on-photo); color: var(--on-photo); }
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	height: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.brand { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.brand__coin { width: 40px; height: 40px; }
.brand__name { font-family: var(--serif); font-size: var(--fs-lead); letter-spacing: -0.01em; white-space: nowrap; }
.brand__name span { font-style: italic; }

.site-nav { display: flex; align-items: center; gap: 2.25rem; }
.site-nav ul { display: flex; gap: 2rem; }
.site-nav ul a { font-size: var(--fs-small); text-decoration: none; padding-block: 0.5rem; background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; transition: background-size 0.4s var(--ease); }
.site-nav ul a:hover, .site-nav ul a[aria-current] { background-size: 100% 1px; }
.has-hero:not(.is-scrolled) .site-nav .btn { background-color: var(--gold-bright); background-image: linear-gradient(var(--gold-glow), var(--gold-glow)); border-color: var(--gold-bright); color: var(--lapis-deep); }

.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: 0; cursor: pointer; }
.nav-toggle .icon { width: 28px; height: 28px; }
.nav-toggle__close { display: none; }

@media (max-width: 960px) {
	.nav-toggle { display: inline-flex; z-index: calc(var(--z-nav) + 1); }
	.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
	.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: inline-flex; color: var(--ink); }
	.site-nav {
		position: fixed;
		inset: 0;
		z-index: var(--z-nav);
		flex-direction: column;
		align-items: flex-start;
		justify-content: flex-end;
		gap: 2.5rem;
		padding: calc(var(--header-h) + 2rem) var(--gutter) 3rem;
		background: var(--bg);
		color: var(--ink);
		visibility: hidden;
		opacity: 0;
		transition: opacity 0.35s var(--ease), visibility 0s 0.35s;
	}
	.site-nav.is-open { visibility: visible; opacity: 1; transition: opacity 0.35s var(--ease); }
	.site-nav ul { flex-direction: column; gap: 0.25rem; }
	.site-nav ul a { font-family: var(--serif); font-size: var(--fs-headline); line-height: 1.15; display: block; padding-block: 0.15rem; background: none; }
	.site-nav ul a[aria-current] { font-style: italic; }
	.has-hero:not(.is-scrolled) .site-nav .btn { background-color: var(--accent); background-image: linear-gradient(var(--accent-hover), var(--accent-hover)); border-color: var(--accent); color: var(--on-accent); }
	.nav-open { overflow: hidden; }
	.nav-open .brand { position: relative; z-index: calc(var(--z-nav) + 1); color: var(--ink); }
}
@media (max-width: 420px) {
	.brand__name span { display: none; }
}

/* ---------- Home hero ---------- */
.hero {
	position: relative;
	min-height: 100dvh;
	display: flex;
	align-items: flex-end;
	color: var(--on-photo);
	overflow: hidden;
	background: var(--photo-ground);
}
.hero__media, .page-hero__media { position: absolute; inset: 0; }
.hero__media img, .hero__video, .page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after, .page-hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, var(--scrim) 0%, var(--scrim-soft) 55%, var(--scrim-soft) 100%);
}
.hero__body { position: relative; padding-bottom: clamp(3rem, 8vh, 6rem); padding-top: calc(var(--header-h) + 2rem); }
.hero__title {
	font-family: var(--serif);
	font-size: var(--fs-display);
	line-height: 1.02;
	letter-spacing: -0.03em;
	max-width: 13ch;
	margin-bottom: 1.75rem;
	padding-bottom: 0.08em;
}
.hero__title em { font-style: italic; }
.hero__lead { max-width: 44ch; font-size: var(--fs-lead); line-height: 1.5; margin-bottom: 2.25rem; color: var(--on-photo-soft); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }

/* ---------- Statement ---------- */
.statement { padding-block: var(--section); display: grid; grid-template-columns: minmax(0, 1fr); }
.statement__text {
	font-family: var(--serif);
	font-size: var(--fs-statement);
	line-height: 1.22;
	letter-spacing: -0.015em;
	max-width: 30ch;
	margin-left: clamp(0rem, 16vw, 18rem);
	margin-bottom: 2rem;
}
.statement .link-arrow { margin-left: clamp(0rem, 16vw, 18rem); }

/* ---------- Collection (sticky crossfade) ---------- */
.collection { padding-block: var(--section); }
.collection__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem); }
.collection__group {
	font-size: var(--fs-label);
	font-weight: 500;
	color: var(--ink-2);
	margin: 3rem 0 0.5rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid var(--line);
}
.collection__item a {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: baseline;
	gap: 1rem;
	padding-block: 0.65rem;
	text-decoration: none;
	color: var(--ink-2);
	transition: color 0.5s var(--ease);
}
.collection__thumb { display: none; }
.collection__name {
	font-family: var(--serif);
	font-size: var(--fs-heading);
	line-height: 1.1;
	letter-spacing: -0.02em;
	transition: transform 0.6s var(--ease);
}
.collection__tone { font-size: var(--fs-label); text-align: right; }
.collection__item.is-active a, .collection__item a:hover { color: var(--ink); }
.collection__item.is-active .collection__name { transform: translateX(0.5rem); font-style: italic; }

.collection__stage { position: relative; }
.collection__frame {
	position: sticky;
	top: calc(var(--header-h) + 2rem);
	height: calc(100dvh - var(--header-h) - 4rem);
	max-height: 860px;
	overflow: hidden;
	background: var(--bg-2);
}
.collection__plate {
	position: absolute;
	inset: 0;
	opacity: 0;
	transform: scale(1.04);
	transition: opacity 0.9s var(--ease), transform 1.6s var(--ease);
}
.collection__plate.is-active { opacity: 1; transform: none; }
.collection__plate img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.collection__plate figcaption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding: 4rem 1.5rem 1.25rem;
	background: linear-gradient(to top, var(--scrim), transparent);
	color: var(--on-photo);
	font-family: var(--serif);
	font-size: var(--fs-title);
}
.collection__plate figcaption span { font: 400 var(--fs-label) var(--sans); }

@media (max-width: 899px) {
	.collection__grid { grid-template-columns: minmax(0, 1fr); }
	.collection__stage { display: none; }
	.collection__item a { grid-template-columns: 64px 1fr; grid-template-rows: auto auto; column-gap: 1rem; row-gap: 0; align-items: center; color: var(--ink); }
	.collection__thumb { display: block; grid-row: span 2; width: 64px; height: 64px; overflow: hidden; background: var(--bg-2); }
	.collection__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
	.collection__name { font-size: var(--fs-heading); align-self: end; }
	.collection__tone { text-align: left; color: var(--ink-2); align-self: start; }
	.collection__item.is-active .collection__name { transform: none; font-style: normal; }
}

/* ---------- Work (home) ---------- */
.work { padding-block: var(--section); }
.work__head { max-width: 40rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.work__head p { color: var(--ink-2); max-width: 46ch; }
.work__grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: clamp(1rem, 2vw, 1.5rem);
	margin-bottom: 2.5rem;
}
.work__item img { width: 100%; height: 100%; object-fit: cover; }
.work__item { display: flex; flex-direction: column; }
.work__item img { flex: 1; min-height: 0; }
.work__item figcaption, .gallery__item figcaption { font-size: var(--fs-label); color: var(--ink-2); padding-top: 0.75rem; }
.work__item--1 { grid-column: 1 / span 7; grid-row: span 2; aspect-ratio: 4 / 3.4; }
.work__item--2 { grid-column: 8 / span 5; aspect-ratio: 4 / 3; margin-top: clamp(0rem, 8vw, 7rem); }
.work__item--3 { grid-column: 9 / span 4; aspect-ratio: 1; }
@media (max-width: 760px) {
	.work__grid { grid-template-columns: 1fr 1fr; }
	.work__item--1 { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 4 / 3; }
	.work__item--2, .work__item--3 { grid-column: auto; aspect-ratio: 3 / 4; margin-top: 0; }
}

/* ---------- Versus ---------- */
.versus { background: var(--bg-2); padding-block: var(--section); }
.versus__title { text-align: center; margin-bottom: 1rem; }
.versus__lead { text-align: center; color: var(--ink-2); max-width: 44ch; margin: 0 auto clamp(3rem, 6vw, 5rem); }
.versus__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 5rem); }
.versus__media { overflow: hidden; border-radius: var(--r-lg); margin-bottom: 1.75rem; }
.versus__col img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.versus__col:nth-child(2) { margin-top: clamp(0rem, 10vw, 9rem); }
.versus__col h3 { font-family: var(--serif); font-size: var(--fs-heading); line-height: 1.1; margin-bottom: 1rem; }
.versus__col p { color: var(--ink-2); max-width: 46ch; }
@media (max-width: 760px) {
	.versus__grid { grid-template-columns: 1fr; gap: 4rem; }
	.versus__col:nth-child(2) { margin-top: 0; }
	.versus__title, .versus__lead { text-align: left; margin-left: 0; }
}

/* ---------- Closing ---------- */
.closing { border-top: 1px solid var(--line); padding-block: var(--section); }
.closing__title {
	font-family: var(--serif);
	font-size: var(--fs-display);
	line-height: 1.02;
	letter-spacing: -0.03em;
	max-width: 14ch;
	margin-bottom: 1.5rem;
}
.closing__lead { color: var(--ink-2); max-width: 44ch; font-size: var(--fs-large); margin-bottom: 2.5rem; }
.closing__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2.25rem; }

/* ---------- Inner page hero ---------- */
.page-hero {
	position: relative;
	min-height: min(78dvh, 760px);
	display: flex;
	align-items: flex-end;
	color: var(--on-photo);
	background: var(--photo-ground);
	overflow: hidden;
}
.page-hero--short { min-height: min(62dvh, 600px); }
.page-hero__body { position: relative; padding-block: 6rem clamp(2.5rem, 6vw, 4.5rem); }
.page-hero__title {
	font-family: var(--serif);
	font-size: var(--fs-display);
	line-height: 1;
	letter-spacing: -0.03em;
	margin-bottom: 1.25rem;
}
.page-hero__lead { max-width: 40ch; font-size: var(--fs-lead); line-height: 1.5; color: var(--on-photo-soft); margin: 0; }

/* ---------- Catalog ---------- */
.catalog-intro {
	display: grid;
	grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
	gap: clamp(2rem, 6vw, 6rem);
	padding-block: clamp(4rem, 8vw, 7rem);
}
.catalog-intro__text { font-family: var(--serif); font-size: var(--fs-title); line-height: 1.3; letter-spacing: -0.01em; margin: 0; max-width: 32ch; }
.specs { margin: 0; display: grid; gap: 1.5rem; align-content: start; }
.specs div { border-top: 1px solid var(--line); padding-top: 1rem; }
.specs dt { font-size: var(--fs-label); font-weight: 500; color: var(--ink-2); margin-bottom: 0.35rem; }
.specs dd { margin: 0; }
@media (max-width: 860px) { .catalog-intro { grid-template-columns: 1fr; } }

.stone-index {
	position: sticky;
	top: var(--header-h);
	z-index: calc(var(--z-header) - 1);
	background: var(--bg);
	border-block: 1px solid var(--line);
}
.stone-index ul {
	display: flex;
	gap: 0.25rem 2rem;
	overflow-x: auto;
	scrollbar-width: none;
	scroll-snap-type: x proximity;
}
.stone-index ul::-webkit-scrollbar { display: none; }
.stone-index li { flex: none; scroll-snap-align: start; }
.stone-index a {
	display: block;
	padding-block: 1rem;
	font-size: var(--fs-small);
	text-decoration: none;
	color: var(--ink-2);
	background: linear-gradient(var(--ink), var(--ink)) left bottom / 0 2px no-repeat;
	transition: color 0.3s var(--ease), background-size 0.45s var(--ease);
}
.stone-index a:hover, .stone-index a[aria-current] { color: var(--ink); background-size: 100% 2px; }
.stone-index a[aria-current] { background-image: linear-gradient(var(--gold), var(--gold)); }

.look {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: clamp(2rem, 5vw, 5rem);
	padding-block: clamp(4rem, 8vw, 7rem);
	align-items: start;
}
.look + .look { border-top: 1px solid var(--line); }
.look__main { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-2); }
.look__view { position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s var(--ease); }
.look__view.is-active { opacity: 1; }
.look__view img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.look__thumbs { display: flex; gap: 0.75rem; margin-top: 0.75rem; }
.look__thumb {
	width: 72px;
	height: 72px;
	padding: 0;
	border: 0;
	background: var(--bg-2);
	cursor: pointer;
	overflow: hidden;
	opacity: 0.55;
	outline-offset: 2px;
	transition: opacity 0.3s var(--ease);
}
.look__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.look__thumb:hover, .look__thumb[aria-pressed="true"] { opacity: 1; }
.look__thumb[aria-pressed="true"] { box-shadow: 0 0 0 1px var(--ink); }
.look__body { position: sticky; top: calc(var(--header-h) + 5rem); }
.look__name {
	font-family: var(--serif);
	font-size: var(--fs-name);
	line-height: 1;
	letter-spacing: -0.03em;
	margin-bottom: 0.75rem;
}
.look__meta { color: var(--ink-2); font-size: var(--fs-small); margin-bottom: 1.75rem; }
.look__summary { font-size: var(--fs-large); max-width: 42ch; }
.look__uses { color: var(--ink-2); max-width: 42ch; }
.look__features { margin: 1.75rem 0 2rem; border-top: 1px solid var(--line); }
.look__features li { padding-block: 0.8rem; max-width: 46ch; }
.look__features li + li { border-top: 1px solid var(--line); }
@media (max-width: 899px) {
	.look { grid-template-columns: 1fr; gap: 2rem; }
	.look__body { position: static; }
	.look__main { aspect-ratio: 1; }
}

/* ---------- About ---------- */
.story { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 7vw, 7rem); align-items: center; padding-block: var(--section); }
.story__lead { font-family: var(--serif); font-size: var(--fs-title); line-height: 1.25; letter-spacing: -0.01em; max-width: 26ch; }
.story__text p:not(.story__lead) { color: var(--ink-2); max-width: 46ch; }
.story__media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } }

.activities { padding-bottom: var(--section); }
.activities__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); }
.activities__grid > div { border-top: 1px solid var(--ink); padding-top: 1.5rem; }
.activities h3 { font-family: var(--serif); font-size: var(--fs-heading); margin-bottom: 0.75rem; }
.activities p { color: var(--ink-2); max-width: 40ch; }
@media (max-width: 640px) { .activities__grid { grid-template-columns: 1fr; } }

.services { position: relative; color: var(--on-photo); background: var(--photo-ground); overflow: hidden; }
.services__media { position: absolute; inset: 0; }
.services__media img { width: 100%; height: 100%; object-fit: cover; }
.services__media::after { content: ""; position: absolute; inset: 0; background: var(--scrim); }
.services__body { position: relative; padding-block: var(--section); }
.services__list { max-width: 52rem; }
.services__list li {
	font-family: var(--serif);
	font-size: var(--fs-title);
	line-height: 1.25;
	letter-spacing: -0.01em;
	padding-block: 1.5rem;
	border-top: 1px solid var(--line-on-photo);
}

.reasons { padding-block: var(--section); }
.reasons__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 5vw, 5rem); max-width: 64rem; }
.reasons__list li { padding-block: 1.5rem; border-top: 1px solid var(--line); font-size: var(--fs-large); color: var(--ink-2); }
.reasons__list strong { display: block; font: 400 var(--fs-title)/1.15 var(--serif); color: var(--ink); margin-bottom: 0.35rem; }
@media (max-width: 640px) { .reasons__list { grid-template-columns: 1fr; } }

/* ---------- Projects, Contact, generic intro ---------- */
.intro { padding-block: clamp(4rem, 9vw, 7rem) clamp(2.5rem, 5vw, 4rem); }
.intro__title {
	font-family: var(--serif);
	font-size: var(--fs-display);
	line-height: 1;
	letter-spacing: -0.03em;
	margin-bottom: 1.5rem;
}
.intro__lead { color: var(--ink-2); font-size: var(--fs-lead); max-width: 50ch; }
.prose { max-width: 75ch; margin-inline: auto; }

.gallery { columns: 3 320px; column-gap: clamp(1rem, 2vw, 1.5rem); padding-bottom: var(--section); }
.gallery__item { break-inside: avoid; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.gallery__open { display: block; width: 100%; padding: 0; border: 0; background: var(--bg-2); cursor: zoom-in; overflow: hidden; }
.gallery__open img { width: 100%; transition: transform 1.2s var(--ease); }
.gallery__open:hover img { transform: scale(1.03); }

.lightbox {
	width: 100vw;
	height: 100dvh;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: clamp(1rem, 4vw, 3rem);
	border: 0;
	background: var(--scrim-full);
	color: var(--on-photo);
}
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; place-items: center; }
.lightbox::backdrop { background: transparent; }
.lightbox img { max-width: 100%; max-height: calc(100dvh - 9rem); object-fit: contain; }
.lightbox__caption { margin: 1rem 0 0; font-size: var(--fs-small); }
.lightbox__btn { position: absolute; width: 48px; height: 48px; display: grid; place-items: center; background: none; border: 1px solid var(--line-on-photo); color: var(--on-photo); cursor: pointer; transition: background-color 0.3s var(--ease); }
.lightbox__btn:hover { background: var(--line-on-photo); }
.lightbox__btn .icon { width: 22px; height: 22px; }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev { left: 1rem; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 1rem; top: 50%; translate: 0 -50%; }

.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2.5rem, 7vw, 7rem); padding-block: clamp(4rem, 9vw, 7rem) var(--section); }
.contact__list { margin-top: 2.5rem; border-top: 1px solid var(--line); }
.contact__list li { display: flex; align-items: center; gap: 1rem; border-bottom: 1px solid var(--line); }
.contact__list .icon { color: var(--ink-2); }
.contact__list a { flex: 1; padding-block: 1rem; text-decoration: none; overflow-wrap: anywhere; }
.contact__list a:hover { text-decoration: underline; }
.contact__form { background: var(--bg-2); padding: clamp(1.5rem, 4vw, 3rem); align-self: start; }
.contact__form-title { font-family: var(--serif); font-size: var(--fs-heading); margin-bottom: 1.5rem; }
.contact__fallback { color: var(--ink-2); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* SureForms, restyled to the theme */
.contact__form .srfm-form-container,
.contact__form .srfm-form-container * { font-family: var(--sans) !important; }
.contact__form .srfm-form-container { --srfm-color-scheme-primary: var(--ink); --srfm-color-input-label: var(--ink); --srfm-color-input-text: var(--ink); --srfm-color-input-background: var(--bg); --srfm-color-input-border: var(--line); --srfm-input-field-border-radius: var(--r-sm); --srfm-btn-border-radius: var(--r-pill); background: none !important; padding: 0 !important; }
.contact__form label, .contact__form .srfm-block-label { display: block; margin-bottom: 0.5rem; color: var(--ink) !important; font-size: var(--fs-small) !important; font-weight: 500 !important; }
.contact__form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="hidden"]),
.contact__form textarea,
.contact__form select {
	width: 100%;
	min-height: 50px;
	padding: 0.75rem 1rem !important;
	border: 1px solid var(--line) !important;
	border-radius: var(--r-sm) !important;
	background: var(--bg) !important;
	color: var(--ink) !important;
	font-size: var(--fs-body) !important;
	box-shadow: none !important;
	transition: border-color 0.25s var(--ease);
}
.contact__form input:focus, .contact__form textarea:focus, .contact__form select:focus { border-color: var(--ink) !important; outline: none; box-shadow: 0 0 0 1px var(--ink) !important; }
.contact__form ::placeholder { color: var(--ink-2) !important; opacity: 1; }
.contact__form button[type="submit"], .contact__form .srfm-submit-button {
	min-height: 52px !important;
	padding: 0 1.75rem !important;
	border: 1px solid var(--accent) !important;
	border-radius: var(--r-pill) !important;
	background: var(--accent) !important;
	color: var(--on-accent) !important;
	font-weight: 500 !important;
	cursor: pointer;
}
.contact__form button[type="submit"]:hover, .contact__form .srfm-submit-button:hover { background: var(--accent-hover) !important; border-color: var(--accent-hover) !important; }
.contact__form .srfm-error-message, .contact__form .srfm-error { color: var(--error) !important; }

/* ---------- Footer ---------- */
.site-footer { padding-top: clamp(3.5rem, 7vw, 5rem); font-size: var(--fs-small); }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem; padding-bottom: 3.5rem; }
.site-footer__brand img { width: 72px; height: 72px; margin-bottom: 1.25rem; }
.site-footer__brand p { color: var(--ink-2); max-width: 34ch; }
.site-footer__title { font-size: var(--fs-label); font-weight: 500; color: var(--ink-2); margin-bottom: 1rem; }
.site-footer__list li + li { margin-top: 0.4rem; }
.site-footer__list a { text-decoration: none; overflow-wrap: anywhere; }
.site-footer__list a:hover { text-decoration: underline; }
.site-footer__base { border-top: 1px solid var(--line); padding-block: 1.5rem; color: var(--ink-2); font-size: var(--fs-label); }
.site-footer__base p { margin: 0; }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .site-footer__grid { grid-template-columns: 1fr; } }

.wa-float {
	position: fixed;
	right: clamp(1rem, 3vw, 2rem);
	bottom: clamp(1rem, 3vw, 2rem);
	z-index: var(--z-float);
	width: 56px;
	height: 56px;
	display: grid;
	place-items: center;
	background: var(--ink);
	color: var(--bg);
	border-radius: 50%;
	box-shadow: 0 0 0 1px var(--line);
	transition: transform 0.3s var(--ease);
}
@media (max-width: 640px) {
	.wa-float { width: 48px; height: 48px; right: 0.75rem; bottom: calc(0.75rem + env(safe-area-inset-bottom)); }
	.wa-float .icon { width: 24px; height: 24px; }
}
.wa-float:hover { transform: translateY(-2px); }
.wa-float .icon { width: 28px; height: 28px; }
.wa-float { background: var(--accent); color: var(--on-accent); }
.nav-open .wa-float { display: none; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
	.hero__media img { animation: settle 2.4s var(--ease) both; }
	.hero__body > * { animation: rise 1.1s var(--ease) both; }
	.hero__body > :nth-child(2) { animation-delay: 0.12s; }
	.hero__body > :nth-child(3) { animation-delay: 0.24s; }
	.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
	.js [data-reveal].is-in { opacity: 1; transform: none; }
}
@keyframes settle { from { transform: scale(1.08); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}

/* Catalog pacing: plates alternate sides; stones without their own copy get a larger plate */
@media (min-width: 900px) {
	.look--flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
	.look--flip .look__media { order: 2; }
	.look--plate { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; }
	.look--plate .look__name { font-size: var(--fs-headline); }
	.look--plate.look--flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
	.look--plate .look__body { position: static; padding-bottom: 5.5rem; }
	.look--plate .look__main { aspect-ratio: 16 / 10; }
}

/* Several source photos carry a thin black strip along one edge; crop it out. */
.collection__plate img, .look__view img, .versus__col img, .mosaic__tile img { scale: 1.03; }
@media (max-width: 899px) {
	.look__thumbs { margin-top: 1rem; }
}


/* ======================================================================
   Lapis & Gold
   ====================================================================== */

/* A band re-scopes the tokens, so everything inside reads on lapis. */
.band, .collection, .finder, .site-footer, .top-strip {
	--bg: var(--band);
	--bg-2: var(--band-deep);
	--ink: var(--band-ink);
	--ink-2: var(--band-ink-2);
	--line: var(--band-line);
	--gold: var(--gold-bright);
	background: var(--bg);
	color: var(--ink);
}
.site-footer, .top-strip { --bg: var(--band-deep); --bg-2: var(--band); }
.collection .btn, .finder .btn, .site-footer .btn { background-color: var(--gold-bright); background-image: linear-gradient(var(--gold-glow), var(--gold-glow)); border-color: var(--gold-bright); color: var(--lapis-deep); }
.collection__item.is-active .collection__name { color: var(--gold); }
.collection__group { color: var(--gold); }

/* Top contact strip */
.top-strip { position: relative; z-index: var(--z-header); height: var(--strip-h); font-size: var(--fs-label); }
.top-strip__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.top-strip ul { display: flex; align-items: center; gap: 1.75rem; }
.top-strip a { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 40px; text-decoration: none; color: var(--ink-2); transition: color 0.3s var(--ease); }
.top-strip a:hover { color: var(--gold); }
.top-strip .icon { width: 1.05rem; height: 1.05rem; color: var(--gold); }
.top-strip__social { gap: 1rem !important; }
.top-strip__social .icon { width: 1.2rem; height: 1.2rem; color: inherit; }
.has-hero .top-strip { position: fixed; inset: 0 0 auto; transition: transform 0.4s var(--ease); }
.has-hero.is-scrolled .top-strip { transform: translateY(-100%); }
.hero__sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 120px; pointer-events: none; }
.has-hero .site-header { top: var(--strip-h); }
.has-hero.is-scrolled .site-header { top: 0; }
.has-hero .site-header { transition: top 0.4s var(--ease), background-color 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease); }
.has-hero .hero__body { padding-top: calc(var(--strip-h) + var(--header-h) + 2rem); }
@media (max-width: 760px) { .top-strip .hide-sm { display: none; } }

/* Language switcher: EN FR ES LA, gold marks the current one */
.top-strip__end { display: flex; align-items: center; gap: 1.5rem; }
.lang-switch { display: flex; align-items: center; gap: 0.15rem !important; }
.lang-switch a { justify-content: center; min-width: 32px; min-height: 40px; padding-inline: 0.2rem; font-size: var(--fs-label); font-weight: 500; letter-spacing: 0.06em; text-decoration: none; color: var(--ink-2); }
.lang-switch a:hover { color: var(--gold); }
.lang-switch a[aria-current] { color: var(--gold); text-decoration: underline; text-underline-offset: 0.35em; text-decoration-thickness: 1px; }
.site-footer__base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.site-nav .site-nav__langs { display: none; }
@media (max-width: 760px) {
	.top-strip__inner { gap: 0.75rem; }
	.top-strip__end { gap: 0.5rem; }
	.top-strip .lang-switch a { min-width: 26px; padding-inline: 0; letter-spacing: 0.02em; }
}

/* Hairline nav: gold marks the current page */
.site-nav ul a[aria-current] { background-image: linear-gradient(var(--gold-bright), var(--gold-bright)); }
@media (min-width: 961px) { .site-nav ul { gap: 1.75rem; } }

/* Stats */
.stats { padding-bottom: var(--section); }
.stats__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line); }
.stats__item { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 0.75rem; padding: 2rem 1.5rem 0 0; }
.stats__item + .stats__item { border-left: 1px solid var(--line); padding-left: 1.5rem; }
.stats__num { margin: 0; font: 400 var(--fs-display)/1 var(--serif); letter-spacing: -0.03em; color: var(--accent-text); font-variant-numeric: lining-nums tabular-nums; }
.stats__label { color: var(--ink-2); max-width: 22ch; }
@media (max-width: 760px) {
	.stats__grid { grid-template-columns: 1fr 1fr; }
	.stats__item:nth-child(3) { border-left: 0; padding-left: 0; }
	.stats__item { padding-bottom: 1.5rem; }
}

/* Mosaic */
.finder { padding-block: var(--section); }
.finder__lead { color: var(--ink-2); max-width: 46ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.mosaic { display: grid; gap: clamp(0.5rem, 1vw, 0.875rem); grid-template-columns: repeat(7, minmax(0, 1fr)); }
.mosaic--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.mosaic--9 { grid-template-columns: repeat(9, minmax(0, 1fr)); }
.mosaic__tile a { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--bg-2); color: var(--on-photo); text-decoration: none; }
.mosaic__tile img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 1.2s var(--ease), filter 0.6s var(--ease); }
.mosaic__label {
	position: absolute;
	inset: auto 0 0;
	display: grid;
	gap: 0.15rem;
	padding: 2.5rem 0.9rem 0.85rem;
	background: linear-gradient(to top, var(--scrim), transparent);
	transform: translateY(35%);
	transition: transform 0.6s var(--ease);
}
.mosaic__name { font: 400 var(--fs-large)/1.15 var(--serif); }
.mosaic--9 .mosaic__name, .mosaic--5 .mosaic__name { font-size: var(--fs-body); }
.mosaic__type { font-size: var(--fs-label); color: var(--on-photo-soft); opacity: 0; transition: opacity 0.4s var(--ease); }
.mosaic__tile a:hover img, .mosaic__tile a:focus-visible img { transform: scale(1.12); filter: saturate(1.15); }
.mosaic__tile a:hover .mosaic__label, .mosaic__tile a:focus-visible .mosaic__label { transform: none; }
.mosaic__tile a:hover .mosaic__type, .mosaic__tile a:focus-visible .mosaic__type { opacity: 1; }
.mosaic__tile a:focus-visible { outline-offset: 3px; }
.catalog-mosaic { padding-bottom: clamp(3rem, 6vw, 5rem); }
@media (max-width: 1100px) { .mosaic--9 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .mosaic--7 { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
@media (max-width: 900px) {
	.mosaic, .mosaic--5, .mosaic--9 { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
	.mosaic::-webkit-scrollbar { display: none; }
	.mosaic__tile { flex: 0 0 42%; scroll-snap-align: start; }
	.mosaic__label { transform: none; }
}

/* Footer coin: a slow turn on hover */
.site-footer__brand img { transition: rotate 1.4s var(--ease); }
.site-footer__brand img:hover { rotate: 360deg; }

/* ---------- Motion (Lapis & Gold) ---------- */
@media (prefers-reduced-motion: no-preference) {
	/* Headlines rise in word by word. */
	.js [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
	.js [data-split] .w > span { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease) calc(var(--w) * 70ms); }
	.js [data-split].is-in .w > span { transform: none; }

	/* Photos wipe up into view. */
	.js [data-wipe] { clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease); }
	.js [data-wipe] img { scale: 1.18; transition: scale 1.8s var(--ease); }
	.js [data-wipe].is-in { clip-path: inset(0 0 0 0); }
	.js [data-wipe].is-in img { scale: 1; }
	.js [data-wipe].is-in .look__view img { scale: 1.03; }

	/* Grids cascade in. */
	.js [data-stagger] > * { opacity: 0; transform: translateY(32px); transition: opacity 0.9s var(--ease) calc(var(--i, 0) * 70ms), transform 1.1s var(--ease) calc(var(--i, 0) * 70ms); }
	.js [data-stagger].is-in > * { opacity: 1; transform: none; }

	/* Hero image drifts with the scroll where supported. */
	@supports (animation-timeline: scroll()) {
		.hero__media, .page-hero__media { animation: drift linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
	}
	.page-hero__media img { animation: settle 2.4s var(--ease) both; }
}
@keyframes drift { to { transform: translateY(18%); } }

/* ---------- Shape: rounded system ----------
   Controls are pills, media and panels use soft corners, small chips use --r-sm.
   Full-bleed heroes and bands stay edge to edge. */
.btn, .btn--small, .skip { border-radius: var(--r-pill); }
.lightbox__btn { border-radius: 50%; }
.look__main, .collection__frame, .gallery__open, .mosaic__tile a, .contact__form, .story__media img, .work__item img, .lightbox img { border-radius: var(--r-lg); }
.look__main, .collection__frame, .gallery__open, .mosaic__tile a { overflow: hidden; isolation: isolate; }
.look__thumb, .collection__thumb, .stone-index a { border-radius: var(--r-sm); }
.stone-index a { padding-inline: 0.25rem; }
.collection__plate figcaption { border-radius: 0 0 var(--r-lg) var(--r-lg); }

/* ---------- Brand film (home) ---------- */
.film { padding-bottom: var(--section); }
.film__frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: var(--photo-ground); }
.film__video { display: block; width: 100%; height: 100%; object-fit: cover; }
.film__frame::after { content: ""; position: absolute; inset: 0; background: var(--scrim-soft); pointer-events: none; transition: opacity 0.4s var(--ease); }
.film__play {
	position: absolute; left: 50%; top: 50%; z-index: 1;
	display: inline-flex; align-items: center; gap: 0.75rem;
	min-height: 64px; padding: 0 1.9rem 0 1.4rem;
	translate: -50% -50%;
	border: 0; border-radius: var(--r-pill);
	background: var(--gold-bright); color: var(--lapis-deep);
	font: 500 var(--fs-large)/1 var(--sans); cursor: pointer;
	transition: scale 0.3s var(--ease), background-color 0.3s var(--ease);
}
.film__play:hover { scale: 1.05; background: var(--gold-glow); }
.film__play .icon { width: 26px; height: 26px; }
.film.is-playing .film__play, .film.is-playing .film__frame::after { opacity: 0; pointer-events: none; }
@media (max-width: 640px) { .film__play { min-height: 52px; font-size: var(--fs-body); } }
/* The poster is a screenshot of the hero, so the button sits on a calm corner instead of over its headline. */
.film__play { left: auto; top: auto; right: clamp(16px, 3vw, 40px); bottom: clamp(16px, 3vw, 40px); translate: none; white-space: nowrap; }
.film__frame::after { background: linear-gradient(to top left, var(--scrim) 0%, transparent 45%); }
@media (max-width: 640px) { .film__play span { display: none; } .film__play { padding: 0; width: 56px; justify-content: center; } }

/* ---------- Navigation extras: hints and contact show only in the mobile menu ---------- */
.site-nav__hint, .site-nav__contact { display: none; }

@media (max-width: 960px) {
	/* Lapis panel: the band tokens re-scope everything inside */
	.site-nav {
		--ink: var(--band-ink); --ink-2: var(--band-ink-2); --line: var(--band-line);
		justify-content: flex-start;
		gap: 0;
		padding: calc(var(--header-h) + 1rem) var(--gutter) calc(1.5rem + env(safe-area-inset-bottom));
		background: var(--band);
		color: var(--ink);
		overflow-y: auto;
		clip-path: inset(0 0 100% 0);
		opacity: 1;
		transition: clip-path 0.55s var(--ease), visibility 0s 0.55s;
	}
	.site-nav.is-open { clip-path: inset(0 0 0 0); transition: clip-path 0.6s var(--ease); }

	.site-nav__list { width: 100%; gap: 0 !important; border-top: 1px solid var(--line); }
	.site-nav__list li { border-bottom: 1px solid var(--line); }
	.site-nav ul.site-nav__list a {
		display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
		min-height: 64px; padding-block: 0.9rem 0.7rem;
		font-size: inherit; line-height: 1;
		background: none !important;
		color: var(--ink);
	}
	.site-nav__label { font: 400 clamp(2rem, 9vw, 2.6rem)/1 var(--serif); letter-spacing: -0.02em; transition: translate 0.4s var(--ease), color 0.3s var(--ease); }
	.site-nav__hint { display: block; font: 500 var(--fs-label)/1 var(--sans); color: var(--ink-2); white-space: nowrap; }
	.site-nav ul.site-nav__list a[aria-current] .site-nav__label { font-style: italic; color: var(--gold-bright); }
	.site-nav ul.site-nav__list a[aria-current] .site-nav__hint { color: var(--gold-bright); }
	.site-nav ul.site-nav__list a:active .site-nav__label { translate: 6px 0; }

	.site-nav .site-nav__cta,
	.has-hero:not(.is-scrolled) .site-nav .site-nav__cta {
		width: 100%; min-height: 56px; margin-top: 1.75rem; font-size: var(--fs-body);
		background-color: var(--gold-bright); background-image: linear-gradient(var(--gold-glow), var(--gold-glow));
		border-color: var(--gold-bright); color: var(--lapis-deep);
	}
	.site-nav__contact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; width: 100%; margin-top: 0.75rem; }
	.site-nav__contact a {
		display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.35rem;
		min-height: 72px; border: 1px solid var(--line); border-radius: var(--r-md);
		font-size: var(--fs-label); text-decoration: none; color: var(--ink);
		transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
	}
	.site-nav__contact a:active { background: var(--band-deep); border-color: var(--gold-bright); }
	.site-nav__contact .icon { width: 22px; height: 22px; color: var(--gold-bright); }
	.site-nav .site-nav__langs { display: flex; justify-content: center; gap: 0.5rem !important; width: 100%; margin-top: 1rem; }
	.site-nav ul.site-nav__langs a { display: inline-flex; align-items: center; min-width: 52px; min-height: 48px; border: 1px solid var(--line); border-radius: var(--r-md); background: none; font: 500 var(--fs-label)/1 var(--sans); font-style: normal; color: var(--ink); }
	.site-nav ul.site-nav__langs a[aria-current] { border-color: var(--gold-bright); color: var(--gold-bright); text-decoration: none; }

	/* Header over the open panel reads on lapis */
	.nav-open .site-header { background: var(--band) !important; border-color: var(--band-line) !important; color: var(--band-ink) !important; }
	.nav-open .brand { color: var(--band-ink); }
	.nav-toggle[aria-expanded="true"] .nav-toggle__close { color: var(--band-ink); }
	.nav-open .top-strip { transform: translateY(-100%); }
	.nav-open .site-header, .has-hero.nav-open .site-header { position: fixed; inset: 0 0 auto; top: 0; }

	/* Rows and actions cascade in */
	@media (prefers-reduced-motion: no-preference) {
		.site-nav__list li, .site-nav__cta, .site-nav__contact { opacity: 0; transform: translateY(18px); transition: opacity 0.4s var(--ease), transform 0.5s var(--ease); }
		.site-nav.is-open .site-nav__list li, .site-nav.is-open .site-nav__cta, .site-nav.is-open .site-nav__contact { opacity: 1; transform: none; transition-delay: calc(0.12s + var(--i, 6) * 0.05s); }
		.site-nav__cta { --i: 6; }
		.site-nav__contact { --i: 7; }
	}
}

/* Scaled media (wipe reveals, hero settle) must never widen the page on phones. */
[data-wipe], .hero, .page-hero, .services, .versus__media, .story__media, .work__item { overflow: hidden; }
html, body { overflow-x: clip; }

/* ---------- Stone pages ---------- */
.crumbs { padding-top: clamp(1.5rem, 3vw, 2.5rem); font-size: var(--fs-label); color: var(--ink-2); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.25rem 0.6rem; }
.crumbs li + li::before { content: "/"; margin-inline-end: 0.6rem; color: var(--line); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); }
.look--single { padding-top: clamp(1.5rem, 3vw, 2.5rem); }
.look__links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 2rem; }
.stone-specs { padding-block: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--line); }
.specs--grid { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.5rem clamp(1.5rem, 4vw, 3rem); }
.stone-more { padding-bottom: var(--section); }
.mosaic--4, .mosaic--8 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .mosaic--4, .mosaic--8 { display: flex; } }

/* ---------- Arabic: right to left ----------
   Grid and flex layouts mirror on their own; these rules flip what is set physically. */
html[lang="ar"] {
	--serif: "Bodoni Moda", "Amiri", Georgia, serif;
	--sans: "Hanken Grotesk", "Noto Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
}
/* Arabic letters join, so no tracking; it has no italics; it needs taller lines. */
html[lang="ar"] * { letter-spacing: 0 !important; font-style: normal !important; }
html[lang="ar"] :is(.hero__title, .page-hero__title, .intro__title, .closing__title, .section-title, .look__name, .collection__name, .statement__text, .site-nav__label, .article__title, .steps__title, .faq__q, .post-card__title, .export-stones__type) { line-height: 1.4; }
html[lang="ar"].js [data-split] .w { padding-block: 0.15em 0.3em; margin-block: -0.15em -0.3em; }
[dir="rtl"] .icon--arrow-right, [dir="rtl"] .icon--arrow-up-right, [dir="rtl"] .icon--caret-left, [dir="rtl"] .icon--caret-right { scale: -1 1; }
[dir="rtl"] .link-arrow:hover .icon { transform: translateX(-3px); }
[dir="rtl"] :is(.btn, .link-arrow, .site-nav ul a, .stone-index a) { background-position-x: right; }
[dir="rtl"] :is(.statement__text, .statement .link-arrow) { margin-left: 0; margin-right: clamp(0rem, 16vw, 18rem); }
[dir="rtl"] .collection__tone { text-align: left; }
[dir="rtl"] .collection__item.is-active .collection__name { transform: translateX(-0.5rem); }
[dir="rtl"] .stats__item { padding: 2rem 0 0 1.5rem; }
[dir="rtl"] .stats__item + .stats__item { border-left: 0; padding-left: 0; border-right: 1px solid var(--line); padding-right: 1.5rem; }
[dir="rtl"] .lightbox__close { right: auto; left: 1rem; }
[dir="rtl"] .lightbox__prev { left: auto; right: 1rem; }
[dir="rtl"] .lightbox__next { right: auto; left: 1rem; }
[dir="rtl"] .wa-float { right: auto; left: clamp(1rem, 3vw, 2rem); }
[dir="rtl"] .film__play { right: auto; left: clamp(16px, 3vw, 40px); }
[dir="rtl"] .film__frame::after { background: linear-gradient(to top right, var(--scrim) 0%, transparent 45%); }
[dir="rtl"] .skip { left: auto; right: 1rem; }
/* Phone numbers and emails read left to right inside Arabic text. */
[dir="rtl"] :is(a[href^="tel:"], a[href^="mailto:"]) { direction: ltr; unicode-bidi: isolate; }
@media (max-width: 899px) {
	[dir="rtl"] .collection__tone { text-align: right; }
	[dir="rtl"] .collection__item.is-active .collection__name { transform: none; }
}
@media (max-width: 760px) {
	[dir="rtl"] .versus__title, [dir="rtl"] .versus__lead { text-align: right; margin-right: 0; }
	[dir="rtl"] .stats__item:nth-child(3) { border-right: 0; padding-right: 0; }
}
@media (max-width: 640px) {
	[dir="rtl"] .wa-float { left: 0.75rem; }
}
@media (max-width: 960px) {
	[dir="rtl"] .site-nav ul.site-nav__list a:active .site-nav__label { translate: -6px 0; }
}

/* ---------- Export ---------- */
.export-stones, .export-steps, .export-faq { padding-bottom: var(--section); }
.export-stones__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); }
.export-stones__type { font: 400 var(--fs-heading)/1.1 var(--serif); margin-bottom: 1rem; }
.export-stones__type a { text-decoration: none; }
.export-stones__type a:hover { text-decoration: underline; }
.export-stones__list { border-top: 1px solid var(--line); margin-bottom: 1.25rem; }
.export-stones__list li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-bottom: 1px solid var(--line); }
.export-stones__list a { padding-block: 0.8rem; font-size: var(--fs-large); text-decoration: none; }
.export-stones__list a:hover { text-decoration: underline; }
.export-stones__list span { font-size: var(--fs-label); color: var(--ink-2); text-align: end; }
.export-stones__finishes { color: var(--ink-2); font-size: var(--fs-small); }
@media (max-width: 760px) { .export-stones__grid { grid-template-columns: 1fr; } }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1.5rem clamp(1.5rem, 3vw, 2.5rem); margin-bottom: 2rem; }
.steps__item { border-top: 1px solid var(--ink); padding-top: 1.25rem; }
.steps__num { display: block; font: 400 var(--fs-headline)/1 var(--serif); color: var(--accent-text); margin-bottom: 0.75rem; }
.steps__title { font: 400 var(--fs-title)/1.2 var(--serif); margin-bottom: 0.5rem; }
.steps__item p { color: var(--ink-2); margin: 0; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); margin-bottom: 2rem; max-width: 60rem; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding-block: 1.25rem; font: 400 var(--fs-title)/1.3 var(--serif); cursor: pointer; list-style: none; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: "+"; flex: none; font: 300 1.75rem/1 var(--sans); color: var(--gold); transition: rotate 0.3s var(--ease); }
.faq__item[open] .faq__q::after { rotate: 45deg; }
.faq__a { color: var(--ink-2); max-width: 65ch; margin: 0; padding-bottom: 1.5rem; font-size: var(--fs-large); }
.faq-page { padding-bottom: var(--section); }

/* ---------- Guides ---------- */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem); padding-bottom: var(--section); }
.posts--more { padding-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--line); }
.posts--more .section-title { grid-column: 1 / -1; margin-bottom: 0; }
.post-card__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-lg); background: var(--bg-2); margin-bottom: 1.25rem; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.post-card__media:hover img { transform: scale(1.04); }
.post-card__title { font: 400 var(--fs-title)/1.2 var(--serif); margin-bottom: 0.75rem; }
.post-card__title a { text-decoration: none; }
.post-card__title a:hover { text-decoration: underline; }
.post-card__desc { color: var(--ink-2); margin: 0; }

.article { padding-block: clamp(1.5rem, 3vw, 2.5rem) var(--section); }
.article__head { max-width: 60rem; margin-bottom: 2.5rem; }
.article__title { font: 400 var(--fs-headline)/1.08 var(--serif); letter-spacing: -0.02em; margin-bottom: 1.25rem; }
.article__lead { font-size: var(--fs-lead); color: var(--ink-2); max-width: 60ch; }
.article__meta { font-size: var(--fs-label); color: var(--ink-2); margin: 0; }
.article__media { max-width: 60rem; margin-bottom: 3rem; }
.article__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-lg); }
.article__body { margin-inline: 0; font-size: var(--fs-large); line-height: 1.7; }
.article__body h2 { font: 400 var(--fs-heading)/1.15 var(--serif); margin: 2.75rem 0 1rem; }
.article__body h3 { font: 400 var(--fs-title)/1.2 var(--serif); margin: 2rem 0 0.75rem; }
.article__body p, .article__body ul, .article__body ol { margin: 0 0 1.25rem; }
.article__body ul, .article__body ol { padding-inline-start: 1.25rem; }
.article__body ul { list-style: disc; }
.article__body ol { list-style: decimal; }
.article__body li + li { margin-top: 0.5rem; }
.article__body a { color: var(--accent-text); }
.article__body table { width: 100%; border-collapse: collapse; margin: 0 0 1.5rem; font-size: var(--fs-body); }
.article__body th, .article__body td { text-align: start; padding-block: 0.75rem; padding-inline: 0 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.article__body th { font-weight: 500; color: var(--ink-2); }
.article__body .table-wrap { overflow-x: auto; }
