/* ==========================================================================
   Margot — main stylesheet
   Colours, fonts and sizes come from Customizer CSS variables (see inc/customizer/css.php).
   ========================================================================== */

:root {
	/* Fallbacks (overridden inline by the Customizer). */
	--c-bg: #000;
	--c-bg-rgb: 0 0 0;
	--c-surface: #0e0e0f;
	--c-text: #f4f3ef;
	--c-text-rgb: 244 243 239;
	--c-muted: #8d8b86;
	--c-line: #2a2a2a;
	--c-accent: #ca9d50;
	--f-heading: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
	--f-body: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
	--fs-base: 16px;
	--h-scale: 1;
	--h-weight: 300;
	--h-tracking: -0.035em;
	--logo-w: 168px;
	--hero-overlay: 0.35;
	--hero-h: 100;
	--hero-duration: 6s;
	--container: 1680px;
	--gutter: 4vw;
	--grid-cols: 3;
	--radius: 0px;

	/* Derived */
	--header-h: 84px;
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
	--ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
	--space-section: clamp(5rem, 12vw, 11rem);
	--space-block: clamp(2.5rem, 5vw, 4.5rem);
	--on-image: #fff;
}

/* --------------------------------------------------------------------------
   Base
   ----------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
	font-size: var(--fs-base);
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: var(--header-h);
}

body {
	margin: 0;
	background: var(--c-bg);
	color: var(--c-text);
	font-family: var(--f-body);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

img,
svg,
video { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }
a:hover { color: inherit; }

p { margin: 0 0 1em; }

h1, h2, h3, h4, h5, h6 {
	margin: 0;
	font-family: var(--f-heading);
	font-weight: var(--h-weight);
	letter-spacing: var(--h-tracking);
	line-height: 1.05;
}

button { font: inherit; color: inherit; }

::selection { background: var(--c-accent); color: var(--c-bg); }

:focus-visible { outline: 1px solid var(--c-accent); outline-offset: 4px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed !important;
	top: 12px;
	left: 12px;
	z-index: 1000;
	width: auto;
	height: auto;
	padding: 12px 18px;
	clip: auto;
	background: var(--c-text);
	color: var(--c-bg);
}

.site-main:focus { outline: none; }

/* --------------------------------------------------------------------------
   Layout
   ----------------------------------------------------------------------- */
.container {
	width: 100%;
	max-width: calc(var(--container) + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.section { padding-block: var(--space-section) 0; }
.section--tight { padding-top: var(--space-block); }
.site-main > .section:last-child,
.site-main > article > .section:last-child { padding-bottom: var(--space-section); }

.split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
	gap: var(--space-block) 4vw;
	align-items: start;
}
.split + .split { margin-top: var(--space-block); }
.split__aside { padding-top: 0.6em; }

@media (max-width: 860px) {
	.split { grid-template-columns: 1fr; gap: 1.25rem; }
	.split__aside:empty { display: none; }
}

/* --------------------------------------------------------------------------
   Type
   ----------------------------------------------------------------------- */
.label {
	margin: 0 0 1.25rem;
	color: var(--c-muted);
	font-family: var(--f-body);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	line-height: 1.4;
}
.has-upper-labels .label { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.6875rem; }
.label a { transition: color 0.3s; }
.label a:hover { color: var(--c-text); }

.display {
	font-family: var(--f-heading);
	font-weight: var(--h-weight);
	letter-spacing: var(--h-tracking);
	line-height: 0.98;
	margin: 0 0 0.4em;
	text-wrap: balance;
}
.display--hero { font-size: calc(clamp(3.25rem, 10.5vw, 11rem) * var(--h-scale)); line-height: 0.92; }
.display--xl { font-size: calc(clamp(2.75rem, 7.6vw, 8.25rem) * var(--h-scale)); }
.display--lg { font-size: calc(clamp(2.25rem, 4.8vw, 5rem) * var(--h-scale)); line-height: 1.02; }
.display--md { font-size: calc(clamp(1.75rem, 3.2vw, 3.25rem) * var(--h-scale)); }

.lead {
	max-width: 38em;
	color: var(--c-muted);
	font-size: clamp(1.05rem, 1.35vw, 1.3rem);
	line-height: 1.55;
}
.lead p:last-child { margin-bottom: 0; }

.statement {
	margin: 0 0 2.5rem;
	font-family: var(--f-heading);
	font-weight: var(--h-weight);
	font-size: calc(clamp(1.6rem, 3.4vw, 3.6rem) * var(--h-scale));
	letter-spacing: calc(var(--h-tracking) * 0.6);
	line-height: 1.15;
	text-wrap: pretty;
}
.statement--small { font-size: calc(clamp(1.35rem, 2.4vw, 2.4rem) * var(--h-scale)); }
.statement p { margin: 0 0 0.6em; }

/* Scroll-scrubbed text: muted → full colour as it moves through the viewport. */
.js [data-scrub] {
	--p: 0%;
	background-image: linear-gradient(180deg, var(--c-text) calc(var(--p) - 10%), var(--c-muted) calc(var(--p) + 10%));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.margot-editing [data-scrub] { background: none; color: inherit; }

.prose { max-width: 46em; }
.prose--lead { font-size: clamp(1.15rem, 1.6vw, 1.5rem); line-height: 1.55; }
.prose--page { margin-inline: auto; }
.prose > * { margin-top: 0; margin-bottom: 0; }
.prose > * + * { margin-top: 1.2em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--c-accent); }
.prose h2 { font-size: 2rem; margin-top: 2em; }
.prose h3 { font-size: 1.5rem; margin-top: 1.6em; }
.prose img { border-radius: var(--radius); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose blockquote { margin-left: 0; padding-left: 1.2em; border-left: 1px solid var(--c-accent); }

.caption { margin-top: 0.75rem; color: var(--c-muted); font-size: 0.8125rem; }

/* --------------------------------------------------------------------------
   Image frames (fixed ratio: a new image never breaks the layout)
   ----------------------------------------------------------------------- */
.mg-frame {
	position: relative;
	overflow: hidden;
	aspect-ratio: var(--mg-ratio, 4/5);
	border-radius: var(--radius);
	background: var(--c-surface);
}
.mg-frame--fill { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.mg-frame > img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}
.mg-frame--empty {
	background:
		linear-gradient(135deg, transparent 49.6%, var(--c-line) 49.6%, var(--c-line) 50.4%, transparent 50.4%),
		var(--c-surface);
}

/* --------------------------------------------------------------------------
   Buttons
   ----------------------------------------------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.9rem;
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1;
	cursor: pointer;
	transition: color 0.4s var(--ease), background-color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.btn__icon {
	display: inline-grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	border: 1px solid currentColor;
	border-radius: 50%;
	transition: transform 0.5s var(--ease), background-color 0.4s, color 0.4s, border-color 0.4s;
}
.btn__icon .icon { width: 1.05rem; height: 1.05rem; }
.btn:hover .btn__icon { transform: translateX(4px); background: var(--c-accent); border-color: var(--c-accent); color: var(--c-bg); }

.btn--pill {
	padding: 0.45rem 0.45rem 0.45rem 1.6rem;
	border: 1px solid var(--c-line);
	border-radius: 999px;
}
.btn--pill:hover { border-color: var(--c-text); }
.btn--pill .btn__icon { border-color: transparent; background: var(--c-text); color: var(--c-bg); }
.btn--light { border-color: rgba(255, 255, 255, 0.35); color: var(--on-image); }
.btn--light:hover { border-color: #fff; }
.btn--light .btn__icon { background: #fff; color: #000; }

.btn--line { position: relative; padding-bottom: 0.2rem; }
.btn--line .mg-btn-label { position: relative; }
.btn--line .mg-btn-label::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -0.45rem;
	height: 1px;
	background: currentColor;
	transform: scaleX(0.25);
	transform-origin: left;
	transition: transform 0.6s var(--ease);
}
.btn--line:hover .mg-btn-label::after { transform: scaleX(1); }
.btn--line .btn__icon { width: 2.25rem; height: 2.25rem; }

/* --------------------------------------------------------------------------
   Header
   ----------------------------------------------------------------------- */
.site-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 100;
	height: var(--header-h);
	color: var(--c-text);
	transition: transform 0.6s var(--ease), background-color 0.4s, color 0.4s, border-color 0.4s;
	border-bottom: 1px solid transparent;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.site-header.is-solid {
	background: rgb(var(--c-bg-rgb) / 0.86);
	-webkit-backdrop-filter: blur(14px) saturate(1.2);
	backdrop-filter: blur(14px) saturate(1.2);
	border-bottom-color: var(--c-line);
}
.site-header.is-hidden { transform: translateY(-110%); }
.menu-open .site-header { transform: none; background: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 100%;
	padding-inline: var(--gutter);
}

.site-logo { display: inline-flex; align-items: center; position: relative; z-index: 2; }
.site-logo__img { width: var(--logo-w); height: auto; max-height: 64px; object-fit: contain; object-position: left center; }
.site-logo__text { font-family: var(--f-heading); font-size: 1.35rem; letter-spacing: 0.02em; }
.site-logo__img--on-light { display: none; }
.is-light-theme .site-logo__img--on-dark { display: none; }
.is-light-theme .site-logo__img--on-light { display: block; }
/* Over a dark hero image the logo for dark backgrounds is always used. */
.has-hero .site-header:not(.is-solid) { color: var(--on-image); }
.is-light-theme.has-hero .site-header:not(.is-solid) .site-logo__img--on-dark { display: block; }
.is-light-theme.has-hero .site-header:not(.is-solid) .site-logo__img--on-light { display: none; }
.is-light-theme.menu-open .site-header .site-logo__img--on-dark { display: none; }
.is-light-theme.menu-open .site-header .site-logo__img--on-light { display: block; }
.has-hero.menu-open .site-header { color: var(--c-text); }

.site-header__actions { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.5rem); position: relative; z-index: 2; }

.menu-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.9rem;
	padding: 0.5rem 0;
	border: 0;
	background: none;
	cursor: pointer;
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.menu-toggle__icon { position: relative; width: 28px; height: 10px; }
.menu-toggle__icon span {
	position: absolute;
	left: 0;
	width: 100%;
	height: 1px;
	background: currentColor;
	transition: transform 0.5s var(--ease), top 0.5s var(--ease);
}
.menu-toggle__icon span:first-child { top: 0; }
.menu-toggle__icon span:last-child { top: 9px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:first-child { top: 5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:last-child { top: 5px; transform: rotate(-45deg); }

.lang-switch { display: flex; gap: 0.25rem; margin: 0; padding: 0; list-style: none; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; }
.lang-switch li + li::before { content: "/"; margin-right: 0.25rem; opacity: 0.4; }
.lang-switch a { opacity: 0.55; transition: opacity 0.3s; }
.lang-switch a:hover,
.lang-switch .is-current { opacity: 1; }
@media (max-width: 600px) { .lang-switch--header { display: none; } }

/* --------------------------------------------------------------------------
   Full-screen menu overlay
   ----------------------------------------------------------------------- */
.menu-overlay {
	position: fixed;
	inset: 0;
	z-index: 90;
	background: var(--c-bg);
	clip-path: inset(0 0 100% 0);
	transition: clip-path 0.9s var(--ease-in-out);
	overflow-y: auto;
}
.menu-overlay[hidden] { display: block; visibility: hidden; }
.menu-overlay.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
.menu-overlay__inner {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	gap: 4vw;
	align-items: end;
	min-height: 100%;
	padding: calc(var(--header-h) + 4vh) var(--gutter) 6vh;
}
.menu-overlay .menu { margin: 0; padding: 0; list-style: none; counter-reset: m; }
.menu-overlay .menu-item { counter-increment: m; overflow: hidden; }
.menu-overlay .menu-item > a {
	position: relative;
	display: inline-flex;
	align-items: baseline;
	gap: 1.25rem;
	padding: 0.05em 0;
	font-family: var(--f-heading);
	font-weight: var(--h-weight);
	font-size: calc(clamp(2.75rem, 8vh + 2vw, 7.5rem) * var(--h-scale));
	letter-spacing: var(--h-tracking);
	line-height: 1.02;
	transform: translateY(105%);
	transition: transform 0.9s var(--ease), color 0.4s, opacity 0.4s;
}
.menu-overlay .menu-item > a::before {
	content: counter(m, decimal-leading-zero);
	font-family: var(--f-body);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	color: var(--c-muted);
	transform: translateY(-1.6em);
}
.menu-overlay.is-open .menu-item > a { transform: none; }
.menu-overlay.is-open .menu-item:nth-child(2) > a { transition-delay: 0.06s; }
.menu-overlay.is-open .menu-item:nth-child(3) > a { transition-delay: 0.12s; }
.menu-overlay.is-open .menu-item:nth-child(4) > a { transition-delay: 0.18s; }
.menu-overlay.is-open .menu-item:nth-child(5) > a { transition-delay: 0.24s; }
.menu-overlay.is-open .menu-item:nth-child(n+6) > a { transition-delay: 0.3s; }
.menu-overlay .menu:hover .menu-item > a { opacity: 0.35; }
.menu-overlay .menu .menu-item > a:hover,
.menu-overlay .menu .menu-item > a:focus-visible { opacity: 1; }
.menu-overlay .current-menu-item > a { color: var(--c-accent); }

.menu-overlay__aside { display: grid; gap: 2.5rem; padding-bottom: 1.2rem; opacity: 0; transform: translateY(20px); transition: opacity 0.6s 0.3s, transform 0.9s 0.3s var(--ease); }
.menu-overlay.is-open .menu-overlay__aside { opacity: 1; transform: none; }
.menu-overlay__block .label { margin-bottom: 0.75rem; }
.menu-overlay__email { font-size: clamp(1.1rem, 1.6vw, 1.5rem); border-bottom: 1px solid var(--c-line); transition: border-color 0.3s; }
.menu-overlay__email:hover { border-color: var(--c-accent); }
.lang-switch--overlay { font-size: 0.9rem; }

@media (max-width: 860px) {
	.menu-overlay__inner { grid-template-columns: 1fr; align-items: start; align-content: space-between; }
}

/* --------------------------------------------------------------------------
   Socials
   ----------------------------------------------------------------------- */
.socials { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.socials a {
	display: inline-grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	border: 1px solid var(--c-line);
	border-radius: 50%;
	transition: border-color 0.3s, color 0.3s;
}
.socials a:hover { border-color: var(--c-accent); color: var(--c-accent); }
.socials .icon { width: 1.1rem; height: 1.1rem; }
.socials__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* --------------------------------------------------------------------------
   Hero
   ----------------------------------------------------------------------- */
.hero {
	position: relative;
	height: calc(var(--hero-h) * 1svh);
	min-height: 560px;
	overflow: hidden;
	color: var(--on-image);
	background: #000;
	isolation: isolate;
}
.hero__slides,
.hero__slide { position: absolute; inset: 0; }
.hero__slide { opacity: 0; transition: opacity 1.6s var(--ease-in-out); }
.hero__slide.is-active { opacity: 1; z-index: 1; }
.hero__slide .mg-frame { background: #000; }
.has-hero-zoom .hero__slide img { transform: scale(1.08); transition: transform calc(var(--hero-duration) + 2s) linear; }
.has-hero-zoom .hero__slide.is-active img { transform: scale(1); }
.hero__shade {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	background:
		linear-gradient(180deg, rgb(0 0 0 / 0.45) 0%, rgb(0 0 0 / 0) 22%),
		linear-gradient(0deg, rgb(0 0 0 / 0.7) 0%, rgb(0 0 0 / 0) 55%),
		rgb(0 0 0 / var(--hero-overlay));
}
.margot-editing .hero__shade { pointer-events: none; }

.hero__content {
	position: absolute;
	inset: auto 0 0;
	z-index: 3;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	gap: 2rem 4vw;
	padding-bottom: clamp(6.5rem, 14vh, 9rem);
}
.hero__kicker { grid-column: 1 / -1; margin-bottom: 0; color: rgb(255 255 255 / 0.75); }
.hero__title { margin: 0; color: #fff; }
.hero__aside { max-width: 26rem; padding-bottom: 0.8rem; }
.hero__text { color: rgb(255 255 255 / 0.8); font-size: 1rem; margin-bottom: 1.75rem; }

.hero__bar {
	position: absolute;
	inset: auto 0 0;
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 2rem;
	padding-bottom: 2rem;
	font-size: 0.75rem;
	letter-spacing: 0.06em;
}
.hero__captions { position: relative; flex: 1; min-height: 1.2em; }
.hero__caption { position: absolute; inset: 0 auto auto 0; margin: 0; color: rgb(255 255 255 / 0.7); text-transform: uppercase; opacity: 0; transition: opacity 0.8s; white-space: nowrap; }
.hero__caption.is-active { opacity: 1; }
.margot-editing .hero__caption { position: static; display: none; }
.margot-editing .hero__caption.is-active { display: block; }
.hero__dots { display: flex; gap: 1.25rem; }
.hero__dot { display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0; border: 0; background: none; color: rgb(255 255 255 / 0.55); cursor: pointer; font-size: 0.75rem; letter-spacing: 0.08em; }
.hero__dot.is-active { color: #fff; }
.hero__dot-line { position: relative; width: 48px; height: 1px; background: rgb(255 255 255 / 0.3); overflow: hidden; }
.hero__dot-line span { position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.hero__dot.is-active .hero__dot-line span { animation: margot-progress var(--hero-duration) linear forwards; }
.hero.is-paused .hero__dot-line span { animation-play-state: paused; }
.hero__scroll { writing-mode: vertical-rl; text-transform: uppercase; color: rgb(255 255 255 / 0.6); display: none; }
@keyframes margot-progress { to { transform: scaleX(1); } }

/* Optional hero video: covers the slides; the slides return for reduced motion. */
.hero__video { position: absolute; inset: 0; z-index: 1; aspect-ratio: auto; border-radius: 0; background: #000; }
.hero__video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__video.mg-frame--empty { display: none; }
.margot-editing .hero__video.mg-frame--empty { display: block; inset: auto var(--gutter) 6rem auto; z-index: 4; width: 200px; height: 112px; border: 1px dashed rgb(255 255 255 / 0.5); }
.hero--video .hero__dots,
.hero--video .hero__captions { display: none; }
.hero--video .hero__bar { justify-content: flex-end; }
.hero__toggle { position: relative; inset: auto; }
@media (prefers-reduced-motion: reduce) {
	.hero--video .hero__video { display: none; }
	.hero--video .hero__dots { display: flex; }
	.hero--video .hero__toggle { display: none; }
}

@media (max-width: 860px) {
	.hero__content { grid-template-columns: 1fr; padding-bottom: 7rem; }
	.hero__aside { max-width: none; }
	.hero__captions { display: none; }
	.hero__bar { justify-content: flex-start; }
	.hero__dot-line { width: 28px; }
}

/* --------------------------------------------------------------------------
   Home sections
   ----------------------------------------------------------------------- */
.section-head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto;
	align-items: end;
	gap: 1rem 4vw;
	margin-bottom: var(--space-block);
}
.section-head .label,
.section-head .display { margin: 0; }
.section-head .label { align-self: start; padding-top: 0.6em; }
@media (max-width: 860px) {
	.section-head { grid-template-columns: 1fr; }
}

/* Carousel */
.carousel { position: relative; }
.carousel__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: clamp(260px, 30vw, 520px);
	gap: clamp(1rem, 2vw, 2rem);
	padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2));
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2));
	scrollbar-width: none;
	cursor: grab;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.carousel__track.is-dragging a { pointer-events: none; }
.carousel__track > * { scroll-snap-align: start; }
.carousel__controls {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	max-width: calc(var(--container) + 2 * var(--gutter));
	margin: 2.25rem auto 0;
	padding-inline: var(--gutter);
}
.carousel__progress { position: relative; flex: 1; height: 1px; margin-right: 1.5rem; background: var(--c-line); }
.carousel__progress span { position: absolute; inset: 0 auto 0 0; width: 20%; background: var(--c-text); transition: width 0.2s, left 0.2s; }
.carousel__btn {
	display: inline-grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	border: 1px solid var(--c-line);
	border-radius: 50%;
	background: none;
	cursor: pointer;
	transition: border-color 0.3s, opacity 0.3s;
}
.carousel__btn:hover { border-color: var(--c-text); }
.carousel__btn:disabled { opacity: 0.3; cursor: default; }
.carousel__btn .icon { width: 1.1rem; height: 1.1rem; }

/* Cards */
.card { position: relative; }
.card__link { display: block; }
.card__media { position: relative; overflow: hidden; border-radius: var(--radius); }
.card__media img { transition: transform 1.4s var(--ease), filter 1s; }
.card__link:hover .card__media img { transform: scale(1.045); }
.card__view {
	position: absolute;
	right: 1rem;
	bottom: 1rem;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	background: var(--c-text);
	color: var(--c-bg);
	opacity: 0;
	transform: translateY(10px) scale(0.9);
	transition: opacity 0.4s, transform 0.6s var(--ease);
}
.card__view .icon { width: 1.1rem; height: 1.1rem; }
.card__link:hover .card__view { opacity: 1; transform: none; }
.card__meta {
	display: grid;
	grid-template-columns: auto 1fr;
	column-gap: 1rem;
	align-items: baseline;
	padding-top: 1.1rem;
	border-top: 1px solid transparent;
}
.card__index { grid-row: span 2; color: var(--c-muted); font-size: 0.75rem; letter-spacing: 0.08em; }
.card__title { font-size: clamp(1.4rem, 2vw, 2rem); line-height: 1.1; }
.card__subtitle { grid-column: 2; margin: 0.3rem 0 0; color: var(--c-muted); font-size: 0.9375rem; }

/* Film (silent looping video card) */
.film__card { position: relative; }
.film__video { border-radius: var(--radius); background: #000; }
.film__video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .film__video { --mg-ratio: 4/5 !important; } }
.film__shade {
	position: absolute;
	inset: 0 var(--gutter);
	border-radius: var(--radius);
	background: linear-gradient(0deg, rgb(0 0 0 / 0.55), rgb(0 0 0 / 0) 45%), linear-gradient(180deg, rgb(0 0 0 / 0.35), rgb(0 0 0 / 0) 30%);
	pointer-events: none;
}
.film__caption { position: absolute; left: calc(var(--gutter) + clamp(1.25rem, 3vw, 3rem)); right: calc(var(--gutter) + 5rem); bottom: clamp(1.25rem, 3vw, 3rem); color: var(--on-image); pointer-events: none; }
.film__caption .label { color: rgb(255 255 255 / 0.7); margin-bottom: 0.75rem; }
.film__caption .display { margin: 0; color: #fff; }
.margot-editing .film__caption { pointer-events: auto; }
.film__toggle {
	position: absolute;
	right: calc(var(--gutter) + clamp(1.25rem, 3vw, 3rem));
	bottom: clamp(1.25rem, 3vw, 3rem);
	z-index: 3;
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	border: 1px solid rgb(255 255 255 / 0.4);
	border-radius: 50%;
	background: rgb(0 0 0 / 0.25);
	color: #fff;
	cursor: pointer;
	transition: border-color 0.3s, background-color 0.3s;
}
.film__toggle:hover { border-color: #fff; background: rgb(0 0 0 / 0.45); }
/* Pause icon (two bars) / play icon (triangle) */
.film__toggle-icon { width: 12px; height: 14px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.film__toggle[aria-pressed="true"] .film__toggle-icon { width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent currentColor; margin-left: 3px; }

/* Material */
.material__media { margin-top: var(--space-block); overflow: hidden; border-radius: var(--radius); }
.material__image[data-parallax] img { height: 116%; top: -8%; transform: translate3d(0, var(--py, 0), 0); }
.values {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2rem 4vw;
	margin: var(--space-block) 0 0;
	padding: 0;
	list-style: none;
}
.values__item { padding-top: 1.5rem; border-top: 1px solid var(--c-line); }
.values__index { display: block; margin-bottom: 2.5rem; color: var(--c-accent); font-size: 0.75rem; letter-spacing: 0.1em; }
.values__title { margin-bottom: 0.9rem; font-size: clamp(1.6rem, 2.4vw, 2.5rem); }
.values__text { color: var(--c-muted); max-width: 26em; }
@media (max-width: 860px) { .values { grid-template-columns: 1fr; } }

/* Designer */
.designer__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-block) 6vw; align-items: center; }
.designer__image { border-radius: 50%; max-width: 560px; }
.designer__body .lead { margin-bottom: 2.5rem; }
@media (max-width: 860px) { .designer__grid { grid-template-columns: 1fr; } .designer__image { max-width: 70vw; } }

/* Bespoke (image card with overlaid text) */
.bespoke__card { position: relative; }
.bespoke__card > .mg-frame--fill,
.bespoke__card > .bespoke__content { border-radius: max(var(--radius), 0px); }
.bespoke__card { min-height: clamp(520px, 80vh, 860px); display: flex; align-items: flex-end; }
.bespoke__card .bespoke__image { inset: 0 var(--gutter); overflow: hidden; border-radius: var(--radius); }
.bespoke__card .bespoke__image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(0 0 0 / 0.75), rgb(0 0 0 / 0.05) 65%); pointer-events: none; }
.bespoke__content { position: relative; z-index: 2; max-width: 52rem; padding: clamp(2rem, 5vw, 5rem); color: var(--on-image); }
.bespoke__content .label { color: rgb(255 255 255 / 0.7); }
.bespoke__content .lead { color: rgb(255 255 255 / 0.8); margin-bottom: 2.25rem; }

/* --------------------------------------------------------------------------
   Page heads, collection, filters
   ----------------------------------------------------------------------- */
.page-head { position: relative; padding-top: calc(var(--header-h) + clamp(4rem, 12vh, 9rem)); }
.page-head .display { margin-bottom: 0.25em; }
.page-head__text { margin-top: 1.5rem; }
.page-head--404 { min-height: 70vh; }

/* Collection heading over a full-width image or video (site-wide fields). */
.page-head--media { display: flex; align-items: flex-end; min-height: 82svh; padding-bottom: clamp(3rem, 8vh, 6rem); color: var(--on-image); background: #000; overflow: hidden; isolation: isolate; }
.page-head--media .page-head__content { position: relative; z-index: 3; }
.page-head--media .label { color: rgb(255 255 255 / 0.75); }
.page-head--media .display { color: #fff; }
.page-head--media .lead { color: rgb(255 255 255 / 0.82); }
.page-head__media { position: absolute; inset: 0; z-index: 0; }
.page-head__image img { animation: margot-settle 2.4s var(--ease) both; }
.page-head__video { position: absolute; inset: 0; z-index: 1; aspect-ratio: auto; border-radius: 0; background: #000; }
.page-head__video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-head--media .hero__shade { z-index: 2; }
/* Empty fields: hidden for visitors, a small dashed box while editing. */
.page-head__media .mg-frame--empty { display: none; }
.margot-editing .page-head__media .mg-frame--empty { display: block; position: absolute; inset: auto var(--gutter) 1.5rem auto; z-index: 4; width: 200px; height: 112px; border: 1px dashed rgb(var(--c-text-rgb) / 0.5); }
.margot-editing .page-head__media .page-head__video.mg-frame--empty { inset: auto calc(var(--gutter) + 216px) 1.5rem auto; }
@media (prefers-reduced-motion: reduce) { .page-head__video:not(.mg-frame--empty) { display: none; } }

/* Full-width break image between the rows of the collection grid. */
.grid__break { grid-column: 1 / -1; margin-block: clamp(0rem, 2vw, 2rem); border-radius: var(--radius); }
.grid__break[data-parallax] img { height: 116%; top: -8%; transform: translate3d(0, var(--py, 0), 0); }
.grid__break.mg-frame--empty { display: none; }
.margot-editing .grid__break.mg-frame--empty { display: block; }
.grid { grid-auto-flow: dense; }

.collection { padding-top: var(--space-block); padding-bottom: var(--space-section); }
.filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 2rem;
	margin-bottom: var(--space-block);
	padding-bottom: 1.25rem;
	border-bottom: 1px solid var(--c-line);
}
.filters__item { color: var(--c-muted); font-size: 1rem; transition: color 0.3s; }
.filters__item sup { margin-left: 0.2em; font-size: 0.65em; letter-spacing: 0.05em; }
.filters__item:hover,
.filters__item.is-active { color: var(--c-text); }
.filters__item.is-active { text-decoration: underline; text-decoration-color: var(--c-accent); text-underline-offset: 0.5em; }
.grid {
	display: grid;
	grid-template-columns: repeat(var(--grid-cols), minmax(0, 1fr));
	gap: clamp(3rem, 6vw, 6rem) clamp(1rem, 2.5vw, 2.5rem);
}
.grid .card:nth-of-type(3n + 2) { margin-top: clamp(0px, 8vw, 8rem); }
.grid .card.is-hidden { display: none; }
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid .card:nth-of-type(3n + 2) { margin-top: 0; } .grid .card:nth-of-type(2n) { margin-top: 5rem; } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } .grid .card:nth-of-type(2n) { margin-top: 0; } }

/* --------------------------------------------------------------------------
   Piece page
   ----------------------------------------------------------------------- */
.piece-hero { position: relative; display: flex; align-items: flex-end; min-height: 100svh; color: var(--on-image); background: #000; overflow: hidden; }
.piece-hero--plain { min-height: 0; padding-top: calc(var(--header-h) + 10vh); color: var(--c-text); background: none; }
.piece-hero__media img { animation: margot-settle 2.4s var(--ease) both; }
.piece-hero__content { position: relative; z-index: 3; padding-bottom: clamp(3rem, 8vh, 6rem); }
.piece-hero__content .display { margin-bottom: 0.1em; }
.piece-hero:not(.piece-hero--plain) .label { color: rgb(255 255 255 / 0.7); }
.piece-hero__subtitle { font-size: clamp(1.1rem, 1.8vw, 1.6rem); color: rgb(255 255 255 / 0.85); margin: 0; }
.piece-hero--plain .piece-hero__subtitle { color: var(--c-muted); }
@keyframes margot-settle { from { transform: scale(1.08); } to { transform: none; } }

.specs-wrap { margin-top: var(--space-section) !important; }
.specs { margin: 0; border-top: 1px solid var(--c-line); }
.specs__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--c-line); }
.specs dt { color: var(--c-muted); font-size: 0.875rem; }
.specs dd { margin: 0; font-size: 1.0625rem; }

/* "In detail": close-ups in a carousel; each opens the zoom viewer. */
.piece-gallery .section-head { grid-template-columns: minmax(0, 1fr) auto; }
.piece-gallery__hint { margin: 0; color: var(--c-muted); font-size: 0.875rem; }
.piece-gallery__track { grid-auto-columns: clamp(240px, 28vw, 460px); }
.piece-gallery__item { margin: 0; }
.piece-gallery__link { position: relative; display: block; cursor: zoom-in; }
.piece-gallery__link .mg-frame { display: block; }
.piece-gallery__link img { transition: transform 1.4s var(--ease); }
.piece-gallery__link:hover img { transform: scale(1.06); }
.piece-gallery__index { position: absolute; left: 1rem; top: 1rem; z-index: 2; color: #fff; font-size: 0.75rem; letter-spacing: 0.1em; mix-blend-mode: difference; }
.carousel__track.is-dragging .piece-gallery__link { cursor: grabbing; }

/* Zoom button on the piece's opening photo. */
.piece-hero__zoom { position: absolute; right: var(--gutter); bottom: clamp(3rem, 8vh, 6rem); z-index: 4; }
.piece-hero__zoom .btn__icon { font-size: 1.25rem; line-height: 1; }
@media (max-width: 700px) { .piece-hero__zoom { bottom: auto; top: calc(var(--header-h) + 1rem); } }

/* Full-screen zoom viewer (built by site.js). */
.zoom { position: fixed; inset: 0; z-index: 100000; /* above the WordPress admin bar */ display: grid; place-items: center; background: rgb(0 0 0 / 0.96); opacity: 0; visibility: hidden; transition: opacity 0.45s var(--ease), visibility 0s 0.45s; }
.zoom.is-open { opacity: 1; visibility: visible; transition: opacity 0.45s var(--ease); }
.zoom__stage { position: absolute; inset: 0; overflow: hidden; cursor: zoom-in; touch-action: none; }
.zoom.is-zoomed .zoom__stage { cursor: zoom-out; }
.zoom__img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; transform-origin: var(--ox, 50%) var(--oy, 50%); transform: scale(var(--zs, 1)); transition: transform 0.5s var(--ease); user-select: none; -webkit-user-drag: none; }
.zoom.is-panning .zoom__img { transition: none; }
.zoom__bar { position: absolute; inset: auto 0 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem var(--gutter) 1.5rem; color: #fff; font-size: 0.8125rem; letter-spacing: 0.06em; pointer-events: none; }
.zoom__bar > * { pointer-events: auto; }
.zoom__nav { display: flex; gap: 0.5rem; }
.zoom__btn { display: inline-grid; place-items: center; width: 3rem; height: 3rem; border: 1px solid rgb(255 255 255 / 0.35); border-radius: 50%; background: rgb(0 0 0 / 0.4); color: #fff; cursor: pointer; transition: border-color 0.3s, background-color 0.3s; }
.zoom__btn:hover { border-color: #fff; }
.zoom__btn .icon { width: 1.1rem; height: 1.1rem; }
.zoom__close { position: absolute; top: 1.25rem; right: var(--gutter); z-index: 2; font-size: 1.5rem; line-height: 1; }
.zoom__hint { color: rgb(255 255 255 / 0.6); }
.zoom[data-count="1"] .zoom__nav,
.zoom[data-count="1"] .zoom__count { display: none; }
body.zoom-open { overflow: hidden; }

.inquiry__card {
	display: grid;
	justify-items: start;
	padding: clamp(2.5rem, 6vw, 6rem);
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
	background: var(--c-surface);
}
.inquiry__card .lead { margin-bottom: 2.25rem; }
.inquiry__email { margin: 1.5rem 0 0; color: var(--c-muted); font-size: 0.875rem; }
.inquiry__email a { border-bottom: 1px solid var(--c-line); }
.more-pieces { padding-bottom: var(--space-section); }

/* --------------------------------------------------------------------------
   About
   ----------------------------------------------------------------------- */
.about-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--space-block) 4vw; align-items: start; }
.about-intro__image { border-radius: 50%; max-width: 420px; }
@media (max-width: 860px) { .about-intro { grid-template-columns: 1fr; } .about-intro__image { max-width: 60vw; } }
.about-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 3rem); align-items: start; }
.about-pair__offset { margin-top: clamp(3rem, 14vw, 14rem); }
.quote__text { margin: 0; max-width: 16em; font-style: normal; }
.about-wide .mg-frame { border-radius: 0; }
.about-wide [data-parallax] img { height: 116%; top: -8%; transform: translate3d(0, var(--py, 0), 0); }
.about-wide + .section .statement { margin-bottom: 2.5rem; }

/* --------------------------------------------------------------------------
   Contact
   ----------------------------------------------------------------------- */
.contact__grid { display: flex; flex-wrap: wrap; gap: var(--space-block) 4vw; padding-top: 2rem; border-top: 1px solid var(--c-line); }
.contact__block { flex: 1 1 240px; }
.contact__block:first-child { flex: 2 1 560px; max-width: 100%; }
.contact__email { display: inline-block; margin-bottom: 2rem; font-family: var(--f-heading); font-weight: var(--h-weight); font-size: calc(clamp(1.5rem, 3.4vw, 3.4rem) * var(--h-scale)); letter-spacing: var(--h-tracking); line-height: 1.1; overflow-wrap: anywhere; border-bottom: 1px solid var(--c-line); transition: border-color 0.3s; }
@media (min-width: 600px) { .contact__email { overflow-wrap: normal; white-space: nowrap; } }
.contact__email:hover { border-color: var(--c-accent); }
.contact__line { font-size: 1.125rem; font-style: normal; margin-bottom: 2rem; }

.dealer__card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; background: var(--c-surface); }
.dealer__media { position: relative; min-height: 420px; }
.dealer__body { padding: clamp(2rem, 5vw, 5rem); }
.dealer__body .lead { margin-bottom: 2.25rem; }
@media (max-width: 860px) { .dealer__card { grid-template-columns: 1fr; } .dealer__media { min-height: 280px; } }

/* --------------------------------------------------------------------------
   Blog / generic
   ----------------------------------------------------------------------- */
.post-list { border-top: 1px solid var(--c-line); }
.post-row__link { display: grid; grid-template-columns: 12rem 1fr auto; gap: 2rem; align-items: center; padding: 1.75rem 0; border-bottom: 1px solid var(--c-line); }
.post-row__date { margin: 0; }
.post-row__title { font-size: clamp(1.4rem, 2.4vw, 2.25rem); }
.post-row__link .icon { width: 1.4rem; transition: transform 0.5s var(--ease); }
.post-row__link:hover .icon { transform: translateX(6px); }
@media (max-width: 700px) { .post-row__link { grid-template-columns: 1fr; gap: 0.5rem; } .post-row__link .icon { display: none; } }
.navigation.pagination, .post-navigation { margin-top: var(--space-block); }
.nav-links { display: flex; gap: 1.5rem; justify-content: space-between; }
.comments { margin-top: var(--space-block); max-width: 46em; margin-inline: auto; }
.comment-form input, .comment-form textarea, .search-form input[type="search"] { width: 100%; padding: 0.8rem 1rem; border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-surface); color: var(--c-text); font: inherit; }
.comment-form .submit, .search-form .search-submit { margin-top: 1rem; padding: 0.9rem 1.6rem; border: 1px solid var(--c-text); border-radius: 999px; background: var(--c-text); color: var(--c-bg); cursor: pointer; font: inherit; }

/* WordPress core alignment/caption classes */
.alignleft { float: left; margin: 0.4em 1.5em 1em 0; }
.alignright { float: right; margin: 0.4em 0 1em 1.5em; }
.aligncenter { display: block; margin-inline: auto; }
.alignwide { margin-inline: -6vw; }
.alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; }
.wp-caption-text, .wp-element-caption { color: var(--c-muted); font-size: 0.8125rem; }
.sticky, .gallery-caption, .bypostauthor { outline: 0; }

/* --------------------------------------------------------------------------
   Footer
   ----------------------------------------------------------------------- */
.site-footer { padding-top: var(--space-section); border-top: 1px solid var(--c-line); }
.footer-cta { padding-bottom: var(--space-section); }
.footer-cta .display { margin-bottom: 2.75rem; }
.site-footer__main {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
	gap: 2.5rem 4vw;
	padding-top: 3rem;
	padding-bottom: 3rem;
	border-top: 1px solid var(--c-line);
}
.footer-cta + .site-footer__main { border-top: 1px solid var(--c-line); }
.site-footer .site-logo__img { width: calc(var(--logo-w) * 0.9); }
.site-footer__tagline { margin-top: 1.25rem; max-width: 22em; color: var(--c-muted); }
.footer-menu { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.6rem; }
.footer-menu a { transition: color 0.3s; }
.footer-menu a:hover { color: var(--c-accent); }
.site-footer__contact { display: grid; gap: 1.25rem; align-content: start; }
.site-footer__contact > a { justify-self: start; border-bottom: 1px solid var(--c-line); }
.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 2rem;
	padding-top: 1.5rem;
	padding-bottom: 2rem;
	border-top: 1px solid var(--c-line);
	color: var(--c-muted);
	font-size: 0.8125rem;
}
.site-footer__bottom p { margin: 0; }
.back-to-top { display: inline-flex; align-items: center; gap: 0.5rem; }
.back-to-top .icon { width: 1rem; height: 1rem; }
.back-to-top:hover { color: var(--c-text); }
@media (max-width: 860px) { .site-footer__main { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Reveal on scroll
   ----------------------------------------------------------------------- */
.js .has-reveal [data-reveal] { opacity: 0; transform: translate3d(0, 36px, 0); transition: opacity 1.1s var(--ease), transform 1.3s var(--ease); }
.js .has-reveal [data-reveal].is-in { opacity: 1; transform: none; }
.js .has-reveal .grid > .card[data-reveal]:nth-of-type(3n + 2) { transition-delay: 0.08s; }
.js .has-reveal .grid > .card[data-reveal]:nth-of-type(3n + 3) { transition-delay: 0.16s; }
/* Site owners see the same fades as visitors; everything shows at once while editing. */
.margot-editing [data-reveal] { opacity: 1 !important; transform: none !important; }

/* --------------------------------------------------------------------------
   Cinematic scroll effects (Customizer → Motion → "Cinematic scroll effects")
   site.js adds .fx-on to <body> only when the option is on, the visitor allows
   motion and nobody is editing the page. Without it the layout above applies.
   --p values (0 → 1) are scroll progress, set by site.js.
   ----------------------------------------------------------------------- */

/* Hero: text hidden until the intro plays (shown after 3s anyway if JS fails). */
.fx-intro .hero__content,
.fx-intro .hero__bar { opacity: 0; animation: margot-unhide 0s 3s forwards; }
@keyframes margot-unhide { to { opacity: 1; } }

/* Hero: headline lines rise from behind a mask, then the rest fades in. */
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.hero__title .line__inner { display: block; }
.fx-on .hero__title .line__inner { transform: translate3d(0, 110%, 0); transition: transform 1.5s var(--ease); }
.fx-on .hero__title .line:nth-child(2) .line__inner { transition-delay: 0.12s; }
.fx-on .hero__title .line:nth-child(n+3) .line__inner { transition-delay: 0.24s; }
.fx-on .hero .hero__kicker,
.fx-on .hero .hero__aside,
.fx-on .hero .hero__bar > * { opacity: 0; transform: translate3d(0, 18px, 0); transition: opacity 1.2s var(--ease), transform 1.4s var(--ease); }
.fx-on .hero.is-intro .hero__title .line__inner,
.fx-on .hero.is-intro .hero__kicker,
.fx-on .hero.is-intro .hero__aside,
.fx-on .hero.is-intro .hero__bar > * { opacity: 1; transform: none; }
.fx-on .hero.is-intro .hero__aside { transition-delay: 0.45s; }
.fx-on .hero.is-intro .hero__bar > * { transition-delay: 0.7s; }

/* Hero on scroll: image drifts slower than the page and darkens, text lifts away. */
.fx-on .hero__slides,
.fx-on .hero__video:not(.mg-frame--empty) { transform: translate3d(0, calc(var(--hp, 0) * 28%), 0) scale(calc(1 + var(--hp, 0) * 0.06)); will-change: transform; }
.fx-on .hero__content,
.fx-on .hero__bar { transform: translate3d(0, calc(var(--hp, 0) * -14vh), 0); opacity: calc(1 - var(--hp, 0) * 1.7); }
.fx-on .hero::after { content: ""; position: absolute; inset: 0; z-index: 2; background: #000; opacity: calc(var(--hp, 0) * 0.75); pointer-events: none; }

/* Collection heading over an image: the image drifts and darkens, the heading lifts away. */
.fx-on .page-head--media .page-head__media { transform: translate3d(0, calc(var(--hp, 0) * 25%), 0) scale(calc(1 + var(--hp, 0) * 0.05)); will-change: transform; }
.fx-on .page-head--media .page-head__content { transform: translate3d(0, calc(var(--hp, 0) * -12vh), 0); opacity: calc(1 - var(--hp, 0) * 1.6); }
.fx-on .page-head--media::after { content: ""; position: absolute; inset: 0; z-index: 2; background: #000; opacity: calc(var(--hp, 0) * 0.7); pointer-events: none; }

/* Film: starts as a framed card, grows to full screen, then holds while the caption appears. */
.fx-on .film::after { content: ""; display: block; height: 60svh; }
.fx-on .film__card {
	position: sticky;
	top: 0;
	height: 100svh;
	max-width: none;
	padding: 0;
	overflow: hidden;
	clip-path: inset(calc((1 - var(--fp, 0)) * 10svh) calc((1 - var(--fp, 0)) * var(--gutter)) round calc((1 - var(--fp, 0)) * max(var(--radius), 6px)));
}
.fx-on .film__card[data-reveal] { opacity: 1; transform: none; }
.fx-on .film__video { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.fx-on .film__video video { transform: scale(calc(1.15 - var(--fp, 0) * 0.15)); will-change: transform; }
.fx-on .film__shade { inset: 0; border-radius: 0; }
.fx-on .film__caption { bottom: clamp(2rem, 8vh, 6rem); opacity: var(--fc, 0); transform: translate3d(0, calc((1 - var(--fc, 0)) * 40px), 0); }
.fx-on .film__caption .display { font-size: calc(clamp(2.25rem, 6vw, 6.5rem) * var(--h-scale)); }
.fx-on .film__toggle { bottom: clamp(2rem, 8vh, 6rem); }

@media (min-width: 900px) {
	/* Material: the image pins full screen and slowly zooms into the weave while the values scroll over it. */
	.fx-on .material__stage { position: relative; width: 100vw; margin: var(--space-block) 0 0 calc(50% - 50vw); }
	.fx-on .material__stage .material__media { position: sticky; top: 0; height: 100svh; margin: 0; border-radius: 0; }
	.fx-on .material__stage .material__media[data-reveal] { opacity: 1; transform: none; }
	.fx-on .material__stage .material__image { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; transform: scale(calc(1 + var(--mz, 0) * 0.3)); transform-origin: 62% 55%; will-change: transform; }
	.fx-on .material__stage .material__image img { top: 0; height: 100%; transform: none; }
	.fx-on .material__stage .material__media::after {
		content: "";
		position: absolute;
		inset: 0;
		background: linear-gradient(90deg, rgb(0 0 0 / 0.88) 0%, rgb(0 0 0 / 0.6) 32%, rgb(0 0 0 / 0) 62%);
		pointer-events: none;
	}
	.fx-on .material__stage .values {
		position: relative;
		z-index: 2;
		display: block;
		margin: -100svh 0 0;
		padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2));
	}
	.fx-on .material__stage .values__item[data-reveal] {
		display: flex;
		flex-direction: column;
		justify-content: center;
		max-width: 34rem;
		min-height: 90svh;
		padding: 0;
		border: 0;
		opacity: 0.18;
		transform: translate3d(0, 24px, 0);
		transition: opacity 0.8s var(--ease), transform 1s var(--ease);
	}
	.fx-on .material__stage .values__item[data-reveal]:first-child { min-height: 100svh; }
	.fx-on .material__stage .values__item.is-active[data-reveal] { opacity: 1; transform: none; }
	.fx-on .material__stage .values__index { margin-bottom: 1.5rem; }
	.fx-on .material__stage .values__title { font-size: calc(clamp(2.5rem, 5vw, 5.5rem) * var(--h-scale)); color: #fff; }
	.fx-on .material__stage .values__text { color: rgb(255 255 255 / 0.75); font-size: clamp(1.05rem, 1.35vw, 1.3rem); }
}

/* "View" circle that follows the mouse over piece cards. */
.cursor-view { position: fixed; top: 0; left: 0; z-index: 80; width: 0; height: 0; pointer-events: none; }
.cursor-view span {
	position: absolute;
	top: -46px;
	left: -46px;
	display: grid;
	place-items: center;
	width: 92px;
	height: 92px;
	border-radius: 50%;
	background: var(--c-text);
	color: var(--c-bg);
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	transform: scale(0);
	transition: transform 0.5s var(--ease);
}
.cursor-view.is-visible span { transform: scale(1); }
.fx-on.has-cursor-view .card__link { cursor: none; }
.fx-on.has-cursor-view .card__view { display: none; }
body:not(.fx-on) .cursor-view { display: none; }

/* --------------------------------------------------------------------------
   Futuristic layer (same switch as the scroll effects; site.js does the splitting, visitors only)
   ----------------------------------------------------------------------- */

/* Headings assemble word by word out of a blur. */
.w { display: inline-block; }
.w__i { display: inline-block; }
.fx-on .is-split:not([data-scrub]) .w__i {
	opacity: 0;
	filter: blur(12px);
	transform: translate3d(0, 0.45em, 0) scale(1.04);
	transition: opacity 0.9s var(--ease), filter 1.1s var(--ease), transform 1.2s var(--ease);
	transition-delay: calc(min(var(--i, 0), 18) * 0.05s);
}
.fx-on .is-split.is-words-in:not([data-scrub]) .w__i { opacity: 1; filter: blur(0); transform: none; }

/* Intro statement: each word lights up as the scroll reaches it. */
.fx-on [data-scrub].is-split { background: none; color: var(--c-text); }
.fx-on [data-scrub].is-split .w__i { opacity: 0.12; filter: blur(5px); transition: opacity 0.7s var(--ease), filter 0.9s var(--ease), color 0.7s; }
.fx-on [data-scrub].is-split .w__i.is-lit { opacity: 1; filter: blur(0); }
.fx-on [data-scrub].is-split .w__i.is-edge { color: var(--c-accent); }

/* Big outlined text band; speed and direction follow the scroll. */
.marquee { overflow: hidden; padding-block: clamp(3rem, 8vw, 7rem) 0; white-space: nowrap; user-select: none; }
.marquee__track { display: inline-flex; will-change: transform; }
.marquee__item {
	display: inline-block;
	padding-right: 0.35em;
	font-family: var(--f-heading);
	font-weight: var(--h-weight);
	font-size: calc(clamp(3.5rem, 11vw, 12rem) * var(--h-scale));
	letter-spacing: var(--h-tracking);
	line-height: 1;
	color: transparent;
	-webkit-text-stroke: 1px rgb(var(--c-text-rgb) / 0.32);
}
.marquee__item:nth-child(even) { color: rgb(var(--c-text-rgb) / 0.9); -webkit-text-stroke: 0; }
.margot-editing .marquee__item { color: var(--c-text); -webkit-text-stroke: 0; }

/* Cards lean with scroll speed (sideways in the pinned collection). */
.fx-on .carousel[data-carousel-auto] .card__link { transform: skewX(calc(var(--v, 0) * -7deg)); transform-origin: 50% 100%; }
/* Home collection row: flows with the page scroll, so no snap points while that is on; auto-switch pause/play. */
.carousel__track.is-coupled { scroll-snap-type: none; }
.carousel__play .film__toggle-icon { width: 10px; height: 12px; border-left-width: 2px; border-right-width: 2px; }
.carousel__play[aria-pressed="true"] .film__toggle-icon { width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; margin-left: 3px; }
body:not(.fx-on) .carousel__play { display: none; }
.fx-on .grid .card__link { transform: skewY(calc(var(--v, 0) * 1.5deg)); }

/* Pieces tilt toward the mouse, with a soft glare. */
.fx-on.has-cursor-view .card__media { transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.7s var(--ease); }
.fx-on.has-cursor-view .card__media::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgb(255 255 255 / 0.22), rgb(255 255 255 / 0) 55%);
	mix-blend-mode: soft-light;
	opacity: 0;
	transition: opacity 0.5s;
	pointer-events: none;
}
.fx-on.has-cursor-view .card__link:hover .card__media::after { opacity: 1; }

/* Hero: a light follows the mouse and the photo drifts against it. */
.fx-on.has-cursor-view .hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	background: radial-gradient(48vmax circle at calc(var(--mx, 0.5) * 100%) calc(var(--my, 0.45) * 100%), rgb(255 255 255 / 0.13), rgb(255 255 255 / 0) 60%);
	mix-blend-mode: soft-light;
	pointer-events: none;
}
.fx-on.has-cursor-view .hero__slides,
.fx-on.has-cursor-view .hero__video:not(.mg-frame--empty) { translate: calc((var(--mx, 0.5) - 0.5) * -2.4%) calc((var(--my, 0.5) - 0.5) * -2.4%); transition: translate 1.4s var(--ease); }

/* Thin gold reading-progress line under the header. */
.scroll-progress { position: fixed; inset: 0 0 auto; z-index: 101; height: 2px; background: var(--c-accent); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.admin-bar .scroll-progress { top: 32px; }
body:not(.fx-on) .scroll-progress { display: none; }

/* Fine film grain over the whole page. */
.fx-on::after {
	content: "";
	position: fixed;
	inset: -50%;
	z-index: 95;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	opacity: 0.05;
	pointer-events: none;
	animation: margot-grain 1s steps(5) infinite;
}
@keyframes margot-grain {
	0% { transform: translate(0, 0); }
	20% { transform: translate(-3%, 2%); }
	40% { transform: translate(2%, -3%); }
	60% { transform: translate(-2%, -1%); }
	80% { transform: translate(3%, 3%); }
	100% { transform: translate(0, 0); }
}

/* Scroll-linked image reveals (browsers with scroll-driven animations; others show the images as they are). */
@supports (animation-timeline: view()) {
	.fx-on .grid .card__media .mg-frame { animation: margot-wipe linear both; animation-timeline: view(); animation-range: entry 0% cover 35%; }
	.fx-on .grid .card__media img { animation: margot-unzoom linear both; animation-timeline: view(); animation-range: entry 0% cover 50%; }
	.fx-on .designer__image { animation: margot-iris linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
	.fx-on .designer__image img { animation: margot-unzoom linear both; animation-timeline: view(); animation-range: entry 0% cover 60%; }
	.fx-on .bespoke__card .bespoke__image { animation: margot-strip linear both; animation-timeline: view(); animation-range: entry 0% cover 50%; }
	.fx-on .bespoke__card .bespoke__image img { animation: margot-unzoom linear both; animation-timeline: view(); animation-range: entry 0% cover 70%; }
}
@keyframes margot-wipe { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes margot-unzoom { from { scale: 1.28; } to { scale: 1; } }
@keyframes margot-iris { from { clip-path: circle(8% at 50% 50%); rotate: -8deg; } to { clip-path: circle(50% at 50% 50%); rotate: 0deg; } }
@keyframes margot-strip { from { clip-path: inset(22% 34% round 24px); } to { clip-path: inset(0 0 round var(--radius)); } }

/* Page transitions (Customizer → Motion → "Soft fade between pages"; opt-in rule is in the dynamic CSS). */
.site-header { view-transition-name: margot-header; }
#wpadminbar { view-transition-name: margot-adminbar; }
::view-transition-old(root) { animation: margot-vt-out 0.45s cubic-bezier(0.65, 0, 0.35, 1) both; }
::view-transition-new(root) { animation: margot-vt-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both; }
@keyframes margot-vt-out { to { opacity: 0; transform: translate3d(0, -2vh, 0); } }
@keyframes margot-vt-in { from { opacity: 0; transform: translate3d(0, 3vh, 0); } }

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

/* ==========================================================================
   Form popup (inquiry / contact / dealer) – template-parts/form-popup.php
   ========================================================================== */
.margot-form { position: fixed; inset: 0; z-index: 300; }
.margot-form[hidden] { display: none; }
.margot-form__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.55); opacity: 0; transition: opacity 0.5s var(--ease); }
.margot-form__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(680px, 100%);
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: clamp(4.5rem, 9vh, 6rem) clamp(1.5rem, 4vw, 3.5rem) clamp(2rem, 6vh, 4rem);
	background: var(--c-bg);
	color: var(--c-text);
	border-left: 1px solid var(--c-line);
	transform: translateX(100%);
	transition: transform 0.5s var(--ease-in-out);
}
.margot-form.is-open .margot-form__backdrop { opacity: 1; }
.margot-form.is-open .margot-form__panel { transform: none; }
body.form-open { overflow: hidden; }
.admin-bar .margot-form__panel { top: 32px; }
@media (max-width: 782px) { .admin-bar .margot-form__panel { top: 46px; } }
.margot-form__close {
	position: absolute;
	top: 1.25rem;
	right: 1.25rem;
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	border: 1px solid var(--c-line);
	border-radius: 50%;
	background: transparent;
	color: inherit;
	cursor: pointer;
	transition: border-color 0.3s var(--ease);
}
.margot-form__close:hover, .margot-form__close:focus-visible { border-color: var(--c-text); }
.margot-form__close .icon { width: 1.1rem; height: 1.1rem; }
.margot-form .display { margin: 0 0 1rem; }
.margot-form__intro { margin: 0 0 2.25rem; color: var(--c-muted); max-width: 46ch; }
.margot-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1.75rem; margin-bottom: 1.75rem; }
.margot-field { margin: 0; display: grid; gap: 0.4rem; }
.margot-field[hidden] { display: none; }
.margot-field--wide { grid-column: 1 / -1; }
.margot-field label { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-muted); }
.margot-field input:not([type="checkbox"]),
.margot-field textarea {
	width: 100%;
	padding: 0.65rem 0;
	border: 0;
	border-bottom: 1px solid var(--c-line);
	border-radius: 0;
	background: transparent;
	color: var(--c-text);
	font: inherit;
	font-size: 1rem;
	transition: border-color 0.3s var(--ease);
}
.margot-field textarea { resize: vertical; min-height: 7.5rem; line-height: 1.5; }
.margot-field input:focus,
.margot-field textarea:focus { outline: none; border-bottom-color: var(--c-accent); }
.margot-field input:focus-visible,
.margot-field textarea:focus-visible { box-shadow: 0 1px 0 0 var(--c-accent); }
.margot-field [aria-invalid="true"] { border-bottom-color: #d4574e; }
.margot-field--check { display: flex; align-items: flex-start; gap: 0.75rem; }
.margot-field--check input { flex: none; width: 1.1rem; height: 1.1rem; margin: 0.15rem 0 0; accent-color: var(--c-accent); }
.margot-field--check label { font-size: 0.875rem; letter-spacing: 0; text-transform: none; line-height: 1.5; }
.margot-field--check a { color: var(--c-text); border-bottom: 1px solid var(--c-line); }
.margot-field--check input[aria-invalid="true"] { outline: 2px solid #d4574e; outline-offset: 2px; }
.margot-form__error { margin: 0 0 1.25rem; color: #d4574e; font-size: 0.9375rem; }
.margot-form__error[hidden] { display: none; }
.margot-form .btn { background: transparent; color: var(--c-text); }
.margot-form__form .btn[disabled] { opacity: 0.6; cursor: progress; }
.margot-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.margot-form__done:focus { outline: none; }
.margot-form__done .btn { margin-top: 0.5rem; }
@media (max-width: 600px) {
	.margot-form__grid { grid-template-columns: 1fr; }
	.margot-form__panel { border-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.margot-form__backdrop, .margot-form__panel { transition: none; }
}
