/* ESS Prod theme — main stylesheet. */

/* ---------- Fonts (SIL Open Font License, bundled in assets/fonts) ---------- */
@font-face {
	font-family: "Instrument Serif";
	src: url("../fonts/instrument-serif-400-normal.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Instrument Serif";
	src: url("../fonts/instrument-serif-400-italic.woff2") format("woff2");
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: "Poppins";
	src: url("../fonts/poppins-100-normal.woff2") format("woff2");
	font-weight: 100;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Poppins";
	src: url("../fonts/poppins-200-normal.woff2") format("woff2");
	font-weight: 200;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Poppins";
	src: url("../fonts/poppins-300-normal.woff2") format("woff2");
	font-weight: 300;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Poppins";
	src: url("../fonts/poppins-400-normal.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
	--title-scale: 0.7; /* All big serif titles (owner: 30% smaller than the original design). */
	--menu-scale: 0.7; /* Top menu (owner: 30% smaller). */
	--text-scale: 0.7; /* Small text and paragraphs under the titles (owner: 30% smaller). */
	--ink: #0c0c0b;
	--ink-2: #161614;
	--ink-3: #22221f;
	--paper: #efece6;
	--muted: #8f8c85;
	--line: rgba(239, 236, 230, 0.14);
	--accent: #ff5b2e;
	--serif: "Instrument Serif", "Times New Roman", Georgia, serif;
	--sans: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--thin: 200; /* Poppins ExtraLight for all small text. */
	--gutter: clamp(1.125rem, 3.4vw, 3.5rem);
	--max: 100%; /* Content lines up with the screen edges at every width, like the full-bleed film. */
	--radius: 0.25rem;
	--ease: cubic-bezier(0.2, 0.8, 0.2, 1);
	--ease-io: cubic-bezier(0.76, 0, 0.24, 1);
	--header-h: 5.25rem;
	color-scheme: dark;
}

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

html {
	font-size: clamp(100%, min(1.1111vw, 1.7778vh), 175%); /* 16px up to a 1440×900 screen, then the whole layout scales with the screen (by its width or height, whichever is tighter). */
	background: var(--ink);
	color: var(--paper);
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--sans);
	font-size: calc(clamp(1rem, 1.05vw, 1.125rem) * var(--text-scale));
	line-height: 1.55;
	font-weight: var(--thin);
	background: var(--ink);
	color: var(--paper);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: clip;
}

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

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

button {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
}

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

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 0.1875rem;
	border-radius: 2px;
}

/* Lenis smooth scroll housekeeping. */
html.lenis,
html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	white-space: nowrap;
}
.skip-link:focus {
	clip: auto;
	clip-path: none;
	width: auto;
	height: auto;
	z-index: 200;
	top: 0.75rem;
	left: 0.75rem;
	padding: 0.625rem 1rem;
	background: var(--paper);
	color: var(--ink);
}

.wrap {
	width: 100%;
	max-width: var(--max);
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.wrap-wide {
	width: 100%;
	padding-inline: calc(var(--gutter) / 2);
}

/* ---------- Type ---------- */
.display {
	font-family: var(--serif);
	font-weight: 400;
	font-size: calc(clamp(3.4rem, 10.5vw, 12.5rem) * var(--title-scale));
	line-height: 0.88;
	letter-spacing: -0.025em;
	margin: 0;
}
.display em,
.h2 em,
.studio__title em {
	font-style: italic;
	color: var(--accent);
}
.h2 {
	font-family: var(--serif);
	font-weight: 400;
	font-size: calc(clamp(2.6rem, 6vw, 6.4rem) * var(--title-scale));
	line-height: 0.95;
	letter-spacing: -0.02em;
	margin: 0;
}
.eyebrow {
	font-family: var(--sans);
	font-size: calc(0.75rem * var(--text-scale));
	font-weight: var(--thin);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--muted);
	margin: 0 0 1.125rem;
}
.lead {
	font-size: calc(clamp(1.25rem, 2vw, 1.75rem) * var(--text-scale));
	line-height: 1.35;
	letter-spacing: -0.01em;
	max-width: 36ch;
}

.link-underline {
	background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
	transition: background-size 0.5s var(--ease);
	padding-bottom: 2px;
}
.link-underline:hover,
.link-underline:focus-visible { background-size: 100% 1px; }

/* ---------- Buttons ---------- */
.btn,
.pill {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
	height: 2.75rem;
	padding: 0 1.375rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	font-size: calc(0.875rem * var(--text-scale));
	font-weight: var(--thin);
	letter-spacing: 0.01em;
	transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
	white-space: nowrap;
}
.btn .icon,
.pill .icon { width: 1.125rem; height: 1.125rem; }
.btn:hover,
.pill:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--solid { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn--solid:hover { background: var(--paper); border-color: var(--paper); }

/* ---------- Header: the menu alone, centred on top ---------- */
.site-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 50;
	height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
	padding-top: env(safe-area-inset-top, 0px);
	padding-inline: var(--gutter);
	display: flex;
	align-items: center;
	justify-content: center;
}
.site-nav__list {
	list-style: none;
	display: flex;
	justify-content: center;
	gap: calc(clamp(1.375rem, 4vw, 3.75rem) * var(--menu-scale));
	margin: 0;
	padding: 0;
	font-size: calc(0.75rem * var(--menu-scale));
	font-weight: var(--thin);
	letter-spacing: 0.18em;
	text-transform: uppercase;
}
/* Top right, in the menu's type: sound on/off for the home film, then the Instagram and Vimeo icons. */
.site-header__aside {
	position: absolute;
	top: env(safe-area-inset-top, 0px);
	right: var(--gutter);
	height: var(--header-h);
	display: flex;
	align-items: center;
	gap: calc(clamp(1.25rem, 2.2vw, 2rem) * var(--menu-scale) + 0.5rem);
}
.header-social { list-style: none; display: flex; align-items: center; gap: 0.875rem; margin: 0; padding: 0; }
.header-social__link {
	display: grid;
	place-items: center;
	width: 1.75rem;
	height: 1.75rem;
	color: rgba(239, 236, 230, 0.86);
	filter: drop-shadow(0 1px 0.6rem rgba(12, 12, 11, 0.45));
	transition: color 0.3s, transform 0.4s var(--ease);
}
.header-social__link:hover,
.header-social__link:focus-visible { color: var(--accent); transform: translateY(-2px); }
.header-social__icon { width: 1.0625rem; height: 1.0625rem; }
@media (max-width: 600px) { /* Phones: the menu moves left so the sound and icons fit beside it. */
	.site-header { justify-content: flex-start; }
	.site-header__aside { gap: 0.75rem; }
	.header-social { gap: 0.5rem; }
}
.sound-toggle {
	height: var(--header-h);
	display: flex;
	align-items: center;
	gap: 0.7em;
	padding: 0;
	border: 0;
	background: none;
	color: rgba(239, 236, 230, 0.86);
	font: inherit;
	font-size: calc(0.75rem * var(--menu-scale));
	font-weight: var(--thin);
	letter-spacing: 0.18em;
	text-transform: uppercase;
	text-shadow: 0 1px 0.75rem rgba(12, 12, 11, 0.45);
	cursor: pointer;
	transition: color 0.3s, opacity 0.5s var(--ease), visibility 0.5s;
}
.sound-toggle.is-waiting { animation: sound-wait 2.2s var(--ease) infinite; }
@keyframes sound-wait { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .sound-toggle.is-waiting { animation: none; } }
.sound-toggle:hover,
.sound-toggle.is-on { color: var(--paper); }
.sound-toggle.is-away { opacity: 0; visibility: hidden; }
.sound-toggle__bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 0.9em; }
.sound-toggle__bars span {
	width: 1px;
	height: 100%;
	background: currentColor;
	transform: scaleY(0.25);
	transform-origin: bottom;
	transition: transform 0.4s var(--ease);
}
.sound-toggle.is-on .sound-toggle__bars span { animation: sound-bars 0.9s ease-in-out infinite alternate; }
.sound-toggle.is-on .sound-toggle__bars span:nth-child(2) { animation-delay: -0.3s; }
.sound-toggle.is-on .sound-toggle__bars span:nth-child(3) { animation-delay: -0.6s; }
.sound-toggle.is-on .sound-toggle__bars span:nth-child(4) { animation-delay: -0.15s; }
@keyframes sound-bars {
	from { transform: scaleY(0.25); }
	to { transform: scaleY(1); }
}
@media (max-width: 600px) {
	.sound-toggle__label { display: none; } /* Phones: the bars alone, clear of the centred menu. */
	.sound-toggle__bars { height: 0.9rem; }
}
@media (prefers-reduced-motion: reduce) {
	.sound-toggle.is-on .sound-toggle__bars span { animation: none; transform: scaleY(0.8); }
}

.site-nav__list a {
	position: relative;
	display: inline-block;
	padding: 0.375rem 0;
	color: rgba(239, 236, 230, 0.86);
	text-shadow: 0 1px 0.75rem rgba(12, 12, 11, 0.45);
	transition: color 0.3s;
}
.site-nav__list a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0.18em; /* Skip the tracking after the last letter. */
	bottom: 0;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 0.5s var(--ease);
}
.site-nav__list a:hover,
.site-nav__list a.is-current { color: var(--paper); }
.site-nav__list a:hover::after,
.site-nav__list a.is-current::after,
html:not(.has-scrollspy) .site-nav__list .current-menu-item > a::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Home slides: hero film, then image slides that slide up over it as you scroll ---------- */
.slides { position: relative; background: var(--ink); }
.slides__stage { position: relative; }
.slide {
	position: relative;
	height: 100vh;
	height: 100svh;
	min-height: 35rem;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	background: var(--ink);
}
.slide__media {
	position: absolute;
	inset: 0;
	will-change: transform;
}
.slide__video,
.slide__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.slide--hero .slide__video { animation: hero-in 2.4s var(--ease) both; }
@keyframes hero-in {
	from { transform: scale(1.12); filter: brightness(0.4); }
	to { transform: none; filter: none; }
}
.slide__shade {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(12, 12, 11, 0.55) 0%, rgba(12, 12, 11, 0) 28%),
		linear-gradient(0deg, rgba(12, 12, 11, 0.85) 0%, rgba(12, 12, 11, 0.2) 55%, rgba(12, 12, 11, 0) 72%);
}
.slide__dim {
	position: absolute;
	inset: 0;
	background: var(--ink);
	opacity: 0;
	pointer-events: none;
}
.slide__content {
	position: relative;
	text-shadow: 0 1px 1rem rgba(12, 12, 11, 0.4); /* Keeps the thin type readable over bright footage. */
	padding-bottom: calc(clamp(5.25rem, 11vh, 7.5rem) + var(--toolbar, 0px));
}
.slide__title { max-width: 14ch; text-wrap: balance; }
.slide__foot {
	margin-top: clamp(1.5rem, 4vh, 2.75rem);
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 2rem;
	flex-wrap: wrap;
}
.slide__text {
	max-width: 38ch;
	margin: 0;
	color: rgba(239, 236, 230, 0.82);
	font-size: calc(clamp(1rem, 1.2vw, 1.15rem) * var(--text-scale));
}
.slide .eyebrow { color: rgba(239, 236, 230, 0.78); }
.slide--video .slide__text { max-width: 60ch; } /* A longer description: wider lines keep it short in height. */
.slide--hero .slide__text { max-width: 58ch; font-size: calc(clamp(0.95rem, 1.05vw, 1.05rem) * var(--text-scale)); line-height: 1.7; }
.slide__num { color: var(--accent); margin-right: 0.5rem; }
.slide .btn {
	border-color: rgba(239, 236, 230, 0.4);
	background: rgba(12, 12, 11, 0.2);
	backdrop-filter: blur(0.5rem);
	-webkit-backdrop-filter: blur(0.5rem);
}
.slide .btn:hover { background: var(--paper); border-color: var(--paper); }

.slides__bar {
	position: absolute;
	left: 0;
	right: 0;
	bottom: var(--toolbar, 0px);
	z-index: 5;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding-block: 1.375rem;
	font-size: calc(0.75rem * var(--text-scale));
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(239, 236, 230, 0.7);
	border-top: 1px solid rgba(239, 236, 230, 0.2);
	margin-inline: auto;
	max-width: calc(var(--max) - 2 * var(--gutter));
	width: calc(100% - 2 * var(--gutter));
	padding-inline: 0;
}
.slides__progress {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	letter-spacing: 0.08em;
	font-variant-numeric: tabular-nums;
}
.slides__track {
	position: relative;
	width: clamp(3.75rem, 10vw, 9.375rem);
	height: 1px;
	background: rgba(239, 236, 230, 0.25);
}
.slides__track span {
	position: absolute;
	inset: 0;
	background: var(--paper);
	transform-origin: left;
	transform: scaleX(0);
}

/* Pinned (JS on, motion allowed): the stage sticks and each slide rises over the one before. */
.slides.is-pinned { height: calc(var(--slides) * 100vh); height: calc(var(--slides) * 100lvh); }
.slides.is-pinned .slides__stage {
	position: sticky;
	top: 0;
	height: 100vh;
	height: 100lvh;
	overflow: hidden;
}
@supports (height: 100lvh) {
	/* Space hidden behind a phone's browser bar, so text stays clear of it. */
	.slides.is-pinned .slides__stage { --toolbar: calc(100lvh - 100svh); }
}
.slides.is-pinned .slide {
	position: absolute;
	inset: 0;
	height: auto;
	min-height: 0;
	will-change: transform;
}
.slides:not(.is-pinned) .slides__bar { display: none; }

/* Photo slide: the photos sit side by side and slide left as you scroll (main.js moves the track). */
.gallery__track {
	display: flex;
	width: calc(var(--photos, 1) * 100%);
	height: 100%;
	will-change: transform;
}
.gallery__frame { flex: 1 1 0; height: 100%; overflow: hidden; }
.gallery__count {
	font-size: calc(0.75rem * var(--text-scale));
	font-weight: var(--thin);
	letter-spacing: 0.18em;
	font-variant-numeric: tabular-nums;
	color: rgba(239, 236, 230, 0.86);
}
/* Without the pinned stage (reduced motion): swipe through the photos instead. */
.slides:not(.is-pinned) .slide--gallery .slide__media { overflow-x: auto; scroll-snap-type: x mandatory; }
.slides:not(.is-pinned) .gallery__frame { scroll-snap-align: start; }

/* Panorama slide: one wide image at 70% of the screen height, centred on black, panned left to right by main.js. */
.slide--pan { --pan-size: 0.7; background: #000; }
.pan {
	position: absolute;
	top: calc((1 - var(--pan-size)) * 50%);
	left: 0;
	height: calc(var(--pan-size) * 100%);
	width: max-content;
	display: flex; /* One image, or the photos of the strip side by side. */
	will-change: transform;
}
.pan__img {
	display: block;
	height: 100%;
	width: auto;
	max-width: none;
}
.pan__piece { flex: 0 0 auto; } /* width and height attributes give each piece its shape before it loads. */
.pan__piece + .pan__piece { margin-left: -1px; } /* Pieces overlap by a pixel so no hairline shows between them. */
/* With a title: the strip sits under the menu and its height leaves the black band below free for the title. */
.slide--pan.has-title {
	--pan-title: calc(clamp(3.4rem, 10.5vw, 12.5rem) * var(--title-scale));
	--pan-lines: 1;
	--pan-pad: calc(clamp(5.25rem, 11vh, 7.5rem) + var(--toolbar, 0px));
	--pan-top: calc(var(--header-h) + clamp(0.5rem, 2vh, 1.5rem));
	--pan-band: calc(var(--pan-pad) + var(--pan-title) * var(--pan-lines) + clamp(1.25rem, 3.5vh, 2.75rem));
}
.slide--pan.has-title .pan {
	top: var(--pan-top);
	height: min(calc(var(--pan-size) * 100%), calc(100% - var(--pan-top) - var(--pan-band)));
}
.slide--pan .slide__content { padding-bottom: var(--pan-pad, 0); text-shadow: none; }
.slide--pan .slide__title { font-size: var(--pan-title); line-height: 1; max-width: none; }
@media (max-width: 600px) {
	.slide--pan.has-title {
		--pan-title: calc(clamp(2.5rem, 13vw, 3.2rem) * var(--title-scale));
		--pan-lines: 2;
		--pan-pad: calc(4.25rem + var(--toolbar, 0px));
	}
}
/* Without the pinned stage (reduced motion): swipe along the strip instead. */
.slides:not(.is-pinned) .slide--pan .slide__media { overflow-x: auto; }
.slides:not(.is-pinned) .pan { position: relative; }

/* Video production slide: numbered services under the title. */
.services {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, auto));
	gap: clamp(0.5rem, 1.6vh, 1rem) clamp(2rem, 6vw, 6rem);
}
.services__item { display: flex; align-items: baseline; gap: 0.9rem; }
.services__num {
	font-size: calc(0.75rem * var(--text-scale));
	font-weight: var(--thin);
	letter-spacing: 0.16em;
	color: var(--accent);
	font-variant-numeric: tabular-nums;
}
.services__name {
	font-family: var(--serif);
	font-size: calc(clamp(1.6rem, 2.6vw, 2.8rem) * var(--title-scale));
	line-height: 1.1;
}
@media (max-width: 600px) {
	.services { grid-template-columns: 1fr; }
}

.reel-button {
	display: inline-flex;
	align-items: center;
	gap: 1rem;
	font-size: calc(0.9375rem * var(--text-scale));
	font-weight: var(--thin);
}
.reel-button__icon {
	display: grid;
	place-items: center;
	width: 4rem;
	height: 4rem;
	border-radius: 50%;
	background: var(--paper);
	color: var(--ink);
	transition: transform 0.6s var(--ease), background-color 0.4s;
}
.reel-button__icon .icon { width: 1.375rem; height: 1.375rem; margin-left: 0.1875rem; }
.reel-button[data-reel-follow] { position: relative; z-index: 6; will-change: translate; }
.follow-active .cursor { opacity: 0; }
.follow-active .slide--hero { cursor: none; }
/* Phones and tablets: the button drifts slowly on its own. */
@media (hover: none) {
	.reel-button[data-reel-follow] .reel-button__icon { animation: drift 7s ease-in-out infinite; }
}
@keyframes drift {
	0%, 100% { translate: 0 0; }
	25% { translate: 0.625rem -0.5rem; }
	50% { translate: -0.375rem -0.875rem; }
	75% { translate: -0.75rem 0.25rem; }
}
.reel-button:hover .reel-button__icon { transform: scale(1.1); background: var(--accent); }

/* ---------- Studio: title, statement that lights up word by word, small services list ---------- */
.studio {
	display: grid;
	justify-items: center;
	text-align: center;
	gap: clamp(1.5rem, 4.5vh, 3rem);
	padding-top: clamp(6.875rem, 18vh, 12.5rem);
	padding-bottom: clamp(5rem, 12vh, 8.75rem);
}
/* Background photo of the Studio section: on the left half, faded into the black around it. */
.studio.has-bg { position: relative; isolation: isolate; }
.studio__bg {
	position: absolute;
	top: 0;
	bottom: 0;
	left: calc(50% - 50vw); /* The page's left edge, outside the centred .wrap. */
	width: min(58vw, 62rem);
	z-index: -1;
	overflow: hidden;
	pointer-events: none;
	-webkit-mask-image: linear-gradient(to right, #000 55%, transparent), linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
	-webkit-mask-composite: source-in;
	mask-image: linear-gradient(to right, #000 55%, transparent), linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
	mask-composite: intersect;
}
.studio__bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 45% 30%;
	opacity: var(--studio-bg, 0.5);
}
.studio__bg--right {
	left: auto;
	right: calc(50% - 50vw);
	-webkit-mask-image: linear-gradient(to left, #000 55%, transparent), linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
	mask-image: linear-gradient(to left, #000 55%, transparent), linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
}
.studio.has-two-bg .studio__bg { width: min(46vw, 52rem); } /* Two portraits frame the text, one each side. */
.studio__bg--right img { object-position: 55% 30%; }
@media (max-width: 760px) { /* Narrow screens: one photo fills the section; two share it, half each. */
	.studio__bg {
		width: 100vw;
		-webkit-mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
		mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
	}
	.studio.has-two-bg .studio__bg { width: 50vw; }
	.studio.has-two-bg .studio__bg--left {
		-webkit-mask-image: linear-gradient(to right, #000 60%, transparent), linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
		mask-image: linear-gradient(to right, #000 60%, transparent), linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
	}
	.studio.has-two-bg .studio__bg--right {
		-webkit-mask-image: linear-gradient(to left, #000 60%, transparent), linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
		mask-image: linear-gradient(to left, #000 60%, transparent), linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
	}
}
.studio__title {
	font-family: var(--serif);
	font-weight: 400;
	font-size: calc(clamp(2.4rem, 5.4vw, 5.6rem) * var(--title-scale));
	line-height: 0.95;
	letter-spacing: -0.02em;
	margin: 0;
	max-width: 18ch;
	text-wrap: balance;
}
.studio__text {
	font-family: var(--serif);
	font-size: calc(clamp(1.3rem, 2vw, 2.1rem) * var(--text-scale));
	line-height: 1.3;
	letter-spacing: -0.005em;
	margin: 0;
	max-width: 42ch;
	text-wrap: pretty;
}
[data-scrub] .word { transition: opacity 0.4s linear; opacity: 0.18; }
[data-scrub] .word.is-lit { opacity: 1; }
.no-js [data-scrub] .word,
.reduce-motion [data-scrub] .word { opacity: 1; }
.studio__services {
	display: grid;
	justify-items: center;
	gap: 1.625rem;
	width: 100%;
	margin-top: clamp(1rem, 4vh, 2.75rem);
	padding-top: 1.75rem;
	border-top: 1px solid var(--line);
}
.studio__services .eyebrow { margin: 0; }
.studio__list {
	list-style: none;
	margin: 0;
	padding: 0;
	width: 100%;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.625rem 2rem;
}
.studio__list li { display: grid; gap: 0.25rem; }
.studio__service { font-family: var(--serif); font-size: calc(clamp(1.4rem, 1.9vw, 1.9rem) * var(--title-scale)); line-height: 1.1; }
.studio__desc { color: var(--muted); font-size: calc(0.875rem * var(--text-scale)); max-width: 30ch; justify-self: center; }
.studio .stats { padding-block: 0; }

/* ---------- Work reel (scroll-driven horizontal slide) ---------- */
.work-reel { position: relative; }
.work-reel__sticky {
	position: sticky;
	top: 0;
	height: 100vh;
	height: 100svh;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: clamp(1.5rem, 4vh, 3rem);
	padding-top: calc(var(--header-h) * 0.6);
}
.work-reel__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.5rem;
}
.work-reel__progress {
	display: flex;
	align-items: center;
	gap: 0.875rem;
	font-size: calc(0.8125rem * var(--text-scale));
	font-variant-numeric: tabular-nums;
	color: var(--muted);
	padding-bottom: 0.625rem;
}
.work-reel__bar {
	position: relative;
	width: clamp(5rem, 12vw, 11.25rem);
	height: 1px;
	background: var(--line);
}
.work-reel__bar span {
	position: absolute;
	inset: 0;
	background: var(--paper);
	transform-origin: left;
	transform: scaleX(0);
}
.work-reel__viewport { overflow: visible; }
.work-reel__track {
	display: flex;
	align-items: flex-start;
	gap: clamp(1rem, 2vw, 2rem);
	padding-inline: var(--gutter);
	will-change: transform;
}
.work-reel .card { flex: 0 0 auto; width: auto; }
.work-reel .card:nth-child(even) { margin-top: clamp(1.25rem, 4vh, 3rem); }
/* Each image keeps its own shape: same height, width from its ratio (--r, set per card). */
.work-reel .card .media { --h: min(60vh, 41.25rem); height: var(--h); width: calc(var(--h) * var(--r, 0.8)); }
.work-reel .card__body { width: 0; min-width: 100%; }
/* Room after the last card so the reel keeps sliding until it reaches the left side. */
html:not(.hreel-native) .work-reel__track::after { content: ""; flex: 0 0 30vw; height: 1px; }

/* Without the scroll-driven slide (touch, small screens, reduced motion): swipeable row. */
.hreel-native .work-reel__sticky { position: relative; height: auto; padding-block: 5.625rem 3.75rem; }
.hreel-native .work-reel__viewport {
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.hreel-native .work-reel__viewport::-webkit-scrollbar { display: none; }
.hreel-native .work-reel__track { transform: none !important; width: max-content; }
.hreel-native .work-reel .card { scroll-snap-align: start; scroll-margin-left: var(--gutter); }
.hreel-native .work-reel .card .media { --h: min(58svh, calc(78vw / var(--r, 0.8))); }
.hreel-native .work-reel .card:nth-child(even) { margin-top: 0; }

/* ---------- Cards ---------- */
.media {
	position: relative;
	display: block;
	overflow: hidden;
	background: var(--ink-2);
	border-radius: var(--radius);
}
.media__img,
.media__video,
.media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.2s var(--ease), opacity 0.6s;
}
.media__video {
	position: absolute;
	inset: 0;
	opacity: 0;
}
.card .media.is-playing .media__video,
.card .media__video--always { opacity: 1; }

.card__link { display: block; }
.card__link:hover .media__img { transform: scale(1.05); }
.card__body {
	display: grid;
	grid-template-columns: 1fr;
	padding-top: 1rem;
}
.card__title {
	font-family: var(--serif);
	font-weight: 400;
	font-size: calc(clamp(1.7rem, 2.3vw, 2.4rem) * var(--title-scale));
	line-height: 1;
	margin: 0;
	transition: color 0.4s;
}
.card__link:hover .card__title { color: var(--accent); }
.card__meta {
	grid-column: 1;
	margin: 0.5rem 0 0;
	font-size: calc(0.875rem * var(--text-scale));
	color: var(--muted);
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem 0.875rem;
}
.card__tag::before { content: "•"; margin-right: 0.875rem; opacity: 0.6; }

.card--more {
	display: grid;
	place-items: center;
	align-content: center;
	gap: 1.125rem;
	aspect-ratio: 4 / 5;
	max-height: 58vh;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	font-family: var(--serif);
	font-size: calc(clamp(2rem, 3vw, 3rem) * var(--title-scale));
	transition: background-color 0.5s var(--ease), color 0.5s;
	align-self: center;
}
.card--more .icon { width: 2.625rem; height: 2.625rem; transition: transform 0.6s var(--ease); }
.card--more:hover { background: var(--paper); color: var(--ink); }
.card--more:hover .icon { transform: translateX(0.5rem); }
.work-reel .card--more { margin-top: 0 !important; }

/* ---------- Marquee ---------- */
.marquee-section { padding-block: clamp(4.375rem, 12vh, 8.75rem); }
.marquee {
	overflow: hidden;
	border-block: 1px solid var(--line);
	padding-block: clamp(1.125rem, 3vh, 2.125rem);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__group {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
}
.marquee__group li {
	font-family: var(--serif);
	font-style: italic;
	font-size: calc(clamp(2.6rem, 6.5vw, 6.8rem) * var(--title-scale));
	line-height: 1.1;
	white-space: nowrap;
	padding-inline: clamp(1.125rem, 2.4vw, 2.5rem);
	display: flex;
	align-items: center;
	gap: clamp(2.25rem, 4.8vw, 5rem);
}
.marquee__group li::after {
	content: "";
	width: 0.28em;
	height: 0.28em;
	border-radius: 50%;
	background: var(--accent);
	flex: none;
	margin-right: calc(-1 * clamp(1.125rem, 2.4vw, 2.5rem));
}
.reduce-motion .marquee__track,
.no-js .marquee__track { animation: none; }

/* ---------- Services ---------- */
.services { padding-block: clamp(4.375rem, 12vh, 8.75rem); }
.section-head { margin-bottom: clamp(2.5rem, 7vh, 5rem); }
.services__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.service {
	position: relative;
	display: grid;
	grid-template-columns: 4.375rem minmax(0, 1.2fr) minmax(0, 1fr);
	align-items: baseline;
	gap: 1.5rem;
	padding-block: clamp(1.5rem, 4vh, 2.5rem);
	border-bottom: 1px solid var(--line);
	transition: padding-left 0.6s var(--ease);
}
.service::before {
	content: "";
	position: absolute;
	left: 0;
	bottom: -1px;
	height: 1px;
	width: 100%;
	background: var(--accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.8s var(--ease);
}
.service:hover::before { transform: scaleX(1); }
.service:hover { padding-left: 1.125rem; }
.service__index { font-size: calc(0.8125rem * var(--text-scale)); color: var(--muted); font-variant-numeric: tabular-nums; }
.service__title {
	font-family: var(--serif);
	font-weight: 400;
	font-size: calc(clamp(2rem, 4.2vw, 4.4rem) * var(--title-scale));
	line-height: 1;
	margin: 0;
	transition: color 0.4s;
}
.service:hover .service__title { color: var(--accent); }
.service__text { margin: 0; color: var(--muted); max-width: 40ch; }

/* ---------- Stats ---------- */
.stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.5rem;
	padding-block: clamp(3.125rem, 9vh, 6.875rem);
}
.stat { border-top: 1px solid var(--line); padding-top: 1.375rem; }
.stat__value {
	display: block;
	font-family: var(--serif);
	font-size: calc(clamp(3rem, 6.5vw, 7rem) * var(--title-scale));
	line-height: 1;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
}
.stat__label { display: block; margin-top: 0.625rem; color: var(--muted); font-size: calc(0.9375rem * var(--text-scale)); }

/* ---------- Page heroes ---------- */
.page-hero { padding-top: calc(var(--header-h) + clamp(3.75rem, 14vh, 10rem)); padding-bottom: clamp(2.5rem, 7vh, 5rem); }
.page-hero__title { max-width: 16ch; }
.page-hero__title--post { font-size: calc(clamp(2.8rem, 7vw, 8rem) * var(--title-scale)); }

/* ---------- Work archive ---------- */
.work-tools {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1.25rem;
	flex-wrap: wrap;
	padding-bottom: 2.25rem;
	border-bottom: 1px solid var(--line);
	margin-bottom: 2.5rem;
}
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	height: 2.375rem;
	padding: 0 1rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	font-size: calc(0.875rem * var(--text-scale));
	transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.chip .icon { width: 1rem; height: 1rem; transform: rotate(180deg); }
.chip:hover { border-color: var(--paper); }
.chip.is-active { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.view-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 0.1875rem; }
.view-toggle button { height: 2rem; padding: 0 1rem; border-radius: 999px; font-size: calc(0.875rem * var(--text-scale)); color: var(--muted); transition: background-color 0.3s, color 0.3s; }
.view-toggle button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }

.work { padding-bottom: clamp(5rem, 14vh, 10rem); }
.work__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(2.5rem, 6vh, 5rem) clamp(1.125rem, 2.4vw, 2.5rem);
}
.work__grid .card:nth-child(even) { margin-top: clamp(2.5rem, 12vh, 10rem); }
.work__grid .media { aspect-ratio: 16 / 10; }
.work__list { display: none; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.work[data-layout="list"] .work__grid { display: none; }
.work[data-layout="list"] .work__list { display: block; }
.posts__list { display: block; }
.is-filtered-out { display: none !important; }
.work__empty { color: var(--muted); }

.row { border-bottom: 1px solid var(--line); }
.row__link {
	display: grid;
	grid-template-columns: 3.125rem minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) 4.375rem 1.5rem;
	align-items: center;
	gap: 1.25rem;
	padding-block: clamp(1.25rem, 3vh, 1.875rem);
	transition: padding-left 0.6s var(--ease), color 0.3s;
}
.row__link:hover { padding-left: 1rem; }
.row__index,
.row__year { font-size: calc(0.8125rem * var(--text-scale)); color: var(--muted); font-variant-numeric: tabular-nums; }
.row__title { font-family: var(--serif); font-size: calc(clamp(1.8rem, 3.4vw, 3.4rem) * var(--title-scale)); line-height: 1; transition: color 0.3s; }
.row__link:hover .row__title { color: var(--accent); }
.row__client,
.row__type { color: var(--muted); font-size: calc(0.9375rem * var(--text-scale)); }
.row .icon { width: 1.375rem; height: 1.375rem; opacity: 0; transform: translateX(-0.625rem); transition: opacity 0.4s, transform 0.5s var(--ease); }
.row__link:hover .icon { opacity: 1; transform: none; }
.posts__list .row__link { grid-template-columns: 4.375rem minmax(0, 2fr) minmax(0, 1.4fr) 1.5rem; }

/* Cover that follows the cursor over list rows and services. */
.hover-preview {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 40;
	width: clamp(13.75rem, 22vw, 23.75rem);
	aspect-ratio: 16 / 10;
	pointer-events: none;
	overflow: hidden;
	border-radius: var(--radius);
	opacity: 0;
	scale: 0.8;
	transform: translate3d(-50%, -50%, 0);
	transition: opacity 0.35s var(--ease), scale 0.5s var(--ease);
	will-change: transform;
}
.hover-preview.is-visible { opacity: 1; scale: 1; }
.hover-preview img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Single project ---------- */
.details {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.5rem;
	margin: clamp(2.25rem, 6vh, 3.75rem) 0 0;
	padding-top: 1.375rem;
	border-top: 1px solid var(--line);
}
.details dt { font-size: calc(0.75rem * var(--text-scale)); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.details dd { margin: 0.375rem 0 0; }
.film {
	position: relative;
	display: block;
	width: 100%;
	text-align: left;
}
.film__media,
.project__film .media { aspect-ratio: 16 / 9; }
.film__play {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	padding: 1.125rem 1.625rem;
	border-radius: 999px;
	background: rgba(12, 12, 11, 0.55);
	backdrop-filter: blur(0.625rem);
	-webkit-backdrop-filter: blur(0.625rem);
	font-weight: var(--thin);
	transition: background-color 0.4s, color 0.4s;
}
.film__play .icon { width: 1.25rem; height: 1.25rem; }
.film:hover .film__play { background: var(--accent); color: var(--ink); }
.film:hover .media__img { transform: scale(1.03); }
.has-custom-cursor .film__play { opacity: 0; }

.project__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
	gap: clamp(1.875rem, 6vw, 7.5rem);
	padding-block: clamp(4.375rem, 12vh, 8.75rem);
}
.project__lead { grid-column: 1 / -1; max-width: 30ch; margin: 0 0 1.25rem; }
.project__body .entry-content { grid-column: 2; }
.credits { grid-column: 1; grid-row: 2; }
.credits dl { margin: 0; }
.credits div { padding-block: 0.75rem; border-bottom: 1px solid var(--line); }
.credits dt { color: var(--muted); font-size: calc(0.875rem * var(--text-scale)); }
.credits dd { margin: 2px 0 0; }

.next-project {
	position: relative;
	display: flex;
	align-items: flex-end;
	height: 80vh;
	min-height: 27.5rem;
	overflow: hidden;
	isolation: isolate;
}
.next-project__media { position: absolute; inset: 0; border-radius: 0; z-index: -1; }
.next-project__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(12, 12, 11, 0.85), rgba(12, 12, 11, 0.1) 70%);
}
.next-project__media img { transform: scale(1.08); transition: transform 1.6s var(--ease); }
.next-project:hover .next-project__media img { transform: scale(1); }
.next-project__content { padding-bottom: clamp(2.5rem, 8vh, 5.625rem); }
.next-project__title { display: block; transition: color 0.4s; }
.next-project:hover .next-project__title { color: var(--accent); }

/* ---------- About & contact ---------- */
.about__image .media { aspect-ratio: 21 / 9; }
.about__body,
.page-body { padding-block: clamp(4.375rem, 12vh, 8.75rem); }
.contact {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
	gap: clamp(2.5rem, 7vw, 8.75rem);
	padding-bottom: clamp(5rem, 14vh, 10rem);
}
.contact__details { display: grid; gap: 2.125rem; align-content: start; }
.contact__details p,
.contact__details address { margin: 0; font-style: normal; }
.contact__big { font-family: var(--serif); font-size: calc(clamp(1.8rem, 3vw, 3rem) * var(--title-scale)); }

.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.625rem 1.5rem; margin-top: 2.25rem; }
.field { display: grid; gap: 0.5rem; }
.field--wide { grid-column: 1 / -1; }
.field--hp { position: absolute; left: -624.9375rem; }
.field label { font-size: calc(0.75rem * var(--text-scale)); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.field input,
.field textarea {
	font: inherit;
	color: var(--paper);
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--line);
	border-radius: 0;
	padding: 0.625rem 0 0.75rem;
	font-size: calc(1.125rem * var(--text-scale));
	transition: border-color 0.3s;
	resize: vertical;
}
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--accent); }
.contact-form .btn { justify-self: start; }
.form-note { padding: 0.875rem 1.125rem; border-radius: var(--radius); border: 1px solid var(--line); }
.form-note--ok { border-color: #5bd38c; }
.form-note--error { border-color: #ff6b6b; }

/* ---------- Editor content ---------- */
.entry-content > * { max-width: 68ch; }
.entry-content > .alignwide { max-width: 75rem; }
.entry-content > .alignfull { max-width: none; }
.entry-content p { margin: 0 0 1.2em; }
.entry-content .lead { font-size: calc(clamp(1.25rem, 2vw, 1.75rem) * var(--text-scale)); }
.entry-content h2,
.entry-content h3 { font-family: var(--serif); font-weight: 400; line-height: 1.05; margin: 1.6em 0 0.5em; }
.entry-content h2 { font-size: calc(clamp(2rem, 3.4vw, 3.2rem) * var(--title-scale)); }
.entry-content h3 { font-size: calc(clamp(1.5rem, 2.4vw, 2.2rem) * var(--title-scale)); }
.entry-content a { text-decoration: underline; text-underline-offset: 0.1875rem; text-decoration-thickness: 1px; }
.entry-content img { border-radius: var(--radius); height: auto; }
.entry-content figure { margin: 2em 0; }
.entry-content figcaption { color: var(--muted); font-size: calc(0.875rem * var(--text-scale)); margin-top: 0.5rem; }
.entry-content blockquote { font-family: var(--serif); font-size: calc(clamp(1.6rem, 2.6vw, 2.4rem) * var(--title-scale)); line-height: 1.15; margin: 1.6em 0; padding-left: 1.5rem; border-left: 1px solid var(--accent); }

.post-nav .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; padding-bottom: 5rem; }
.post-nav a { display: grid; gap: 0.375rem; font-family: var(--serif); font-size: calc(1.6rem * var(--title-scale)); }
.pagination { padding-block: 2.5rem; display: flex; gap: 0.75rem; }

/* ---------- Contact section ---------- */
.contact-section {
	display: grid;
	justify-items: center;
	text-align: center;
	padding-top: clamp(3.75rem, 10vh, 7.5rem);
	padding-bottom: clamp(5.625rem, 14vh, 10rem);
}
.contact-section__title { font-size: calc(clamp(3rem, 8.5vw, 9rem) * var(--title-scale)); max-width: 14ch; text-wrap: balance; }
.contact-section__details { display: grid; justify-items: center; gap: 0.875rem; margin-top: clamp(2rem, 5vh, 3.5rem); }
.contact-section__details p,
.contact-section__details address { margin: 0; font-style: normal; color: var(--muted); }
.contact-section__socials { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.625rem 1.5rem; }
.contact-section__form { width: min(100%, 47.5rem); margin-top: clamp(2.5rem, 7vh, 5rem); text-align: left; }
.contact-section__form .contact-form { margin-top: 0; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }

/* ---------- Footer: one quiet line ---------- */
.site-footer {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.5rem 1.5rem;
	max-width: var(--max);
	margin-inline: auto;
	padding: 1.5rem var(--gutter) calc(1.5rem + env(safe-area-inset-bottom, 0px));
	border-top: 1px solid var(--line);
	font-size: calc(0.75rem * var(--text-scale));
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--muted);
}

/* ---------- Video player ---------- */
.reel-modal {
	width: 100vw;
	height: 100vh;
	height: 100dvh;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(8, 8, 7, 0.96);
	color: var(--paper);
	overflow: hidden; /* The grain layer is larger than the screen (it drifts). */
}
.reel-modal::backdrop { background: rgba(0, 0, 0, 0.6); }
.reel-modal[open] { display: grid; place-items: center; animation: fade-in 0.4s var(--ease); }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.reel-modal__frame {
	width: min(92vw, calc(86vh * 16 / 9));
	aspect-ratio: 16 / 9;
	background: #000;
}
.reel-modal__frame video,
.reel-modal__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.reel-modal__frame.is-image { width: auto; aspect-ratio: auto; background: none; }
.reel-modal__frame.is-image img { display: block; width: auto; height: auto; max-width: 92vw; max-height: 88vh; }
.reel-modal__close {
	position: absolute;
	top: 1.375rem;
	right: 1.375rem;
	width: 3.25rem;
	height: 3.25rem;
	display: grid;
	place-items: center;
	border: 1px solid var(--line);
	border-radius: 50%;
	transition: background-color 0.3s, color 0.3s;
}
.reel-modal__close:hover { background: var(--paper); color: var(--ink); }

/* ---------- Photo deck (Selected work slideshow) ---------- */
.deck {
	width: 100vw;
	height: 100vh;
	height: 100dvh;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(8, 8, 7, 0.96);
	color: var(--paper);
	overflow: hidden;
	perspective: 1600px;
}
.deck::backdrop { background: transparent; }
.deck[open] { display: block; }
.deck.is-opening { animation: deck-room-in 0.7s var(--ease) both; }
.deck.is-closing { background-color: rgba(8, 8, 7, 0); transition: background-color 0.6s var(--ease); }
@keyframes deck-room-in { from { background-color: rgba(8, 8, 7, 0); } }

/* The photo on top lights the room: a soft, blurred wash of its colours. */
.deck__glow {
	position: absolute;
	inset: -12%;
	background: center / cover no-repeat;
	filter: blur(70px) saturate(1.3);
	opacity: 0;
	transition: opacity 1.1s var(--ease);
	pointer-events: none;
}
.deck__glow.is-on { opacity: 0.38; }
.deck.is-closing .deck__glow { opacity: 0; transition-duration: 0.5s; }

.deck__stage {
	--tx: 0;
	--ty: 0;
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 5.5rem 0 8.5rem;
	transform: rotateY(calc(var(--tx) * 7deg)) rotateX(calc(var(--ty) * -6deg));
	transform-style: preserve-3d;
	transition: transform 0.9s var(--ease);
}
.deck__print {
	grid-area: 1 / 1;
	width: min(64vw, calc((100dvh - 15rem) * var(--r)));
	aspect-ratio: var(--r);
	margin: 0;
	position: relative;
	background: var(--ink-3);
	box-shadow: 0 2.5rem 5rem -1.5rem rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(239, 236, 230, 0.06);
	transition: transform 0.85s var(--ease), opacity 0.6s var(--ease);
	will-change: transform;
	user-select: none;
	touch-action: none;
}
.deck__print img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.deck__print::after { /* Prints further down the stack sit in shadow. */
	content: "";
	position: absolute;
	inset: 0;
	background: #000;
	opacity: var(--shade, 0);
	transition: opacity 0.6s var(--ease);
	pointer-events: none;
}
.deck__print:not(.is-top) { pointer-events: none; }
.deck__print.is-gone { transition: transform 0.85s var(--ease), opacity 0.3s 0.45s; } /* Thrown: it leaves whole, then fades. */
.deck__print.is-top { cursor: grab; }
.deck__print.is-dragging { transition: none; cursor: grabbing; }
.deck.is-instant .deck__print,
.deck.is-instant .deck__stage { transition: none; }
.deck.is-closing .deck__print:not(.is-top) { opacity: 0 !important; transition-duration: 0.35s; }
.deck.is-closing .deck__print.is-top { transition: transform 0.62s var(--ease), opacity 0.62s var(--ease); }

.deck__top,
.deck__bottom {
	position: absolute;
	left: var(--gutter);
	right: var(--gutter);
	z-index: 2;
	transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.deck.is-opening .deck__top,
.deck.is-opening .deck__bottom,
.deck.is-opening .deck__arrow { animation: deck-ui-in 0.8s 0.35s var(--ease) both; }
@keyframes deck-ui-in { from { opacity: 0; transform: translateY(0.75rem); } }
.deck.is-closing .deck__top,
.deck.is-closing .deck__bottom,
.deck.is-closing .deck__arrow { opacity: 0; transition: opacity 0.3s; }

.deck__top {
	top: 1.375rem;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 1rem;
}
.deck__title {
	margin: 0;
	font-family: var(--serif);
	font-size: calc(clamp(1.6rem, 2.4vw, 2.6rem) * var(--title-scale));
	line-height: 1;
}
.deck__count {
	margin: 0;
	font-size: calc(0.75rem * var(--text-scale));
	font-weight: var(--thin);
	letter-spacing: 0.16em;
	font-variant-numeric: tabular-nums;
	color: var(--muted);
}
.deck__count [data-deck-at] { color: var(--paper); }
.deck__close,
.deck__arrow {
	width: 3.25rem;
	height: 3.25rem;
	display: grid;
	place-items: center;
	border: 1px solid var(--line);
	border-radius: 50%;
	color: var(--paper);
	background: rgba(12, 12, 11, 0.35);
	transition: background-color 0.3s, color 0.3s;
}
.deck__close { justify-self: end; }
.deck__close:hover,
.deck__arrow:hover { background: var(--paper); color: var(--ink); }
.deck__arrow {
	position: absolute;
	top: calc(50% - 1.5rem);
	right: var(--gutter);
	z-index: 2;
}
.deck__arrow--prev { right: auto; left: var(--gutter); }
.deck__arrow .icon { width: 1.125rem; height: 1.125rem; }
.deck__arrow--prev .icon { transform: scaleX(-1); }

.deck__bottom {
	bottom: 1.125rem;
	display: grid;
	justify-items: center;
	gap: 0.75rem;
}
.deck__rail {
	display: flex;
	gap: 0.5rem;
	max-width: min(100%, 52rem);
	overflow-x: auto;
	padding: 0.5rem 0.25rem;
	scrollbar-width: none;
}
.deck__rail::-webkit-scrollbar { display: none; }
.deck__thumb {
	flex: 0 0 auto;
	height: 3.6rem;
	aspect-ratio: var(--r);
	padding: 0;
	border: 0;
	opacity: 0.4;
	transform: translateY(0) scale(0.92);
	transition: opacity 0.4s, transform 0.4s var(--ease), box-shadow 0.4s;
}
.deck__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.deck__thumb:hover { opacity: 0.8; }
.deck__thumb.is-active { opacity: 1; transform: translateY(-0.25rem) scale(1); box-shadow: 0 0 0 1px var(--paper); }
.deck__hint {
	margin: 0;
	font-size: calc(0.6875rem * var(--text-scale));
	font-weight: var(--thin);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--muted);
}
.has-custom-cursor .deck,
.has-custom-cursor .deck__print.is-top { cursor: none; }

@media (max-width: 760px) {
	.deck__stage { padding: 4.5rem 0 7rem; }
	.deck__print { width: min(80vw, calc((100dvh - 12rem) * var(--r))); }
	.deck__arrow { display: none; }
	.deck__thumb { height: 2.9rem; }
	.deck__top { grid-template-columns: 1fr auto; }
	.deck__count { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.deck__print,
	.deck__stage,
	.deck__glow { transition: none; }
	.deck.is-opening,
	.deck.is-opening .deck__top,
	.deck.is-opening .deck__bottom,
	.deck.is-opening .deck__arrow { animation: none; }
}

/* Contact: two round badges (email, WhatsApp) with turning text, an italic "or" between them. */
.reach {
	display: grid;
	justify-items: center;
	align-items: center;
	gap: clamp(1.75rem, 4vh, 2.5rem);
	margin-top: clamp(2.5rem, 7vh, 4.5rem);
}
.reach--both { grid-template-columns: auto auto auto; column-gap: clamp(2rem, 6vw, 6rem); }
.reach__or {
	font-family: var(--serif);
	font-style: italic;
	font-size: calc(clamp(1.6rem, 2.4vw, 2.4rem) * var(--title-scale));
	color: var(--accent);
	display: grid;
	justify-items: center;
	gap: 0.875rem;
}
.reach__or::before,
.reach__or::after { content: ""; width: 1px; height: clamp(2rem, 6vh, 3.5rem); background: var(--line); }

.reach__badge {
	position: relative;
	display: grid;
	place-items: center;
	width: clamp(8.5rem, 12vw, 10.5rem);
	aspect-ratio: 1;
	border-radius: 50%;
	color: var(--paper);
}
.reach__ring {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: visible;
	animation: reach-turn 22s linear infinite;
}
.reach__badge--mail .reach__ring { animation-direction: reverse; } /* The two badges turn towards each other. */
.reach__ring text {
	fill: currentColor;
	font-family: var(--sans);
	font-weight: var(--thin);
	font-size: 13.5px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	transition: fill 0.4s var(--ease);
}
.reach__icon {
	position: relative;
	display: grid;
	place-items: center;
	width: 52%;
	aspect-ratio: 1;
	border: 1px solid var(--line);
	border-radius: 50%;
	transition: background-color 0.45s var(--ease), color 0.45s var(--ease), border-color 0.45s var(--ease), transform 0.6s var(--ease);
}
.reach__icon svg { width: 42%; height: 42%; }
.reach__badge:hover .reach__icon,
.reach__badge:focus-visible .reach__icon { background: var(--accent); border-color: var(--accent); color: var(--ink); transform: scale(1.08) rotate(-8deg); }
.reach__badge:hover .reach__ring { animation-duration: 7s; }
.reach__badge:hover .reach__ring text { fill: var(--accent); }
@keyframes reach-turn { to { transform: rotate(360deg); } }

.reach__clock {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
	margin: clamp(2.25rem, 6vh, 3.5rem) 0 0;
	font-size: calc(0.75rem * var(--text-scale));
	font-weight: var(--thin);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--muted);
}
.reach__clock[hidden] { display: none; }
.reach__dot {
	width: 0.4375rem;
	height: 0.4375rem;
	border-radius: 50%;
	background: var(--accent);
	animation: reach-pulse 2.4s var(--ease) infinite;
}
@keyframes reach-pulse {
	0% { box-shadow: 0 0 0 0 rgba(255, 91, 46, 0.55); }
	70%, 100% { box-shadow: 0 0 0 0.6rem rgba(255, 91, 46, 0); }
}
@media (max-width: 760px) {
	.reach--both { grid-template-columns: 1fr; }
	.reach__or { grid-auto-flow: column; align-items: center; }
	.reach__or::before,
	.reach__or::after { width: 3rem; height: 1px; }
}
@media (prefers-reduced-motion: reduce) {
	.reach__ring,
	.reach__dot { animation: none; }
}

/* ---------- Video wall (Selected work: Reels & videos) ---------- */
.reels {
	width: 100vw;
	height: 100vh;
	height: 100dvh;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(8, 8, 7, 0.97);
	color: var(--paper);
	overflow: hidden;
}
.reels::backdrop { background: transparent; }
.reels[open] { display: block; }
.reels.is-opening { animation: reels-room-in 0.6s var(--ease) both; }
@keyframes reels-room-in { from { background-color: rgba(8, 8, 7, 0); } }
.reels.is-closing { opacity: 0; transition: opacity 0.45s var(--ease); }
.reels [hidden] { display: none !important; }

.reels__top {
	position: absolute;
	top: 1.375rem;
	left: var(--gutter);
	right: var(--gutter);
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 1.25rem;
}
.reels__title {
	margin: 0;
	font-family: var(--serif);
	font-size: calc(clamp(1.6rem, 2.4vw, 2.6rem) * var(--title-scale));
	line-height: 1;
}
.reels__count,
.reels__hint,
.reels__now,
.reels__ctl,
.reels__back span {
	margin: 0;
	font-size: calc(0.75rem * var(--text-scale));
	font-weight: var(--thin);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--muted);
}
.reels__close,
.reels__arrow {
	width: 3.25rem;
	height: 3.25rem;
	display: grid;
	place-items: center;
	border: 1px solid var(--line);
	border-radius: 50%;
	color: var(--paper);
	background: rgba(12, 12, 11, 0.35);
	transition: background-color 0.3s, color 0.3s;
}
.reels__close { margin-left: auto; }
.reels__close:hover,
.reels__arrow:hover { background: var(--paper); color: var(--ink); }
.reels__back {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
	height: 2.5rem;
	padding: 0 1.125rem 0 0.875rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	color: var(--paper);
	transition: background-color 0.3s, color 0.3s;
}
.reels__back .icon { width: 1rem; height: 1rem; transform: scaleX(-1); }
.reels__back:hover { background: var(--paper); color: var(--ink); }
.reels__back:hover span { color: var(--ink); }

/* The wall: every film at once, sized so they all fit. */
.reels__wall {
	position: absolute;
	inset: 5.5rem var(--gutter) 3.75rem;
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	transition: inset 0.7s var(--ease);
}
.reels__wall::-webkit-scrollbar { display: none; }
.reels__grid {
	--tile-h: 18rem;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-content: center;
	gap: 14px;
	width: 100%;
	margin: auto; /* Centred while the films fit; taller than the screen, they start at the top and scroll. */
	padding-bottom: 0.5rem;
}
.reels__tile {
	position: relative;
	flex: 0 0 auto;
	height: var(--tile-h);
	aspect-ratio: var(--r);
	padding: 0;
	border: 0;
	overflow: hidden;
	background: var(--ink-3);
	transition: transform 0.75s var(--ease), opacity 0.4s var(--ease), box-shadow 0.4s;
}
.reels__tile video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	pointer-events: none;
	transition: transform 0.8s var(--ease);
}
.reels__tile:hover video { transform: scale(1.06); }
.reels__still {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.4s var(--ease);
}
.reels.is-stage .reels__still { opacity: 1; }
.reels__grid:hover .reels__tile:not(:hover) { opacity: 0.45; }
.reels__cap {
	position: absolute;
	inset: auto 0 0;
	padding: 2.5rem 0.75rem 0.75rem;
	text-align: left;
	font-size: calc(0.6875rem * var(--text-scale));
	font-weight: var(--thin);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--paper);
	background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent);
	opacity: 0;
	transform: translateY(0.5rem);
	transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.reels__tile:hover .reels__cap { opacity: 1; transform: none; }
.reels.is-opening .reels__tile:not(:first-child) { animation: reels-tile-in 0.8s calc(var(--i) * 55ms + 0.15s) var(--ease) both; }
@keyframes reels-tile-in { from { opacity: 0; translate: 0 2.5rem; } }

/* Watching: the films line up in a strip along the bottom. */
.reels.is-stage .reels__wall { inset: auto 0 2.25rem; height: 6.5rem; overflow: visible; display: block; }
.reels.is-stage .reels__grid {
	--tile-h: 5.25rem !important;
	flex-wrap: nowrap;
	justify-content: safe center;
	align-items: center;
	max-width: 100% !important;
	overflow-x: auto;
	padding: 0.5rem var(--gutter);
	scrollbar-width: none;
}
.reels.is-stage .reels__grid::-webkit-scrollbar { display: none; }
.reels.is-stage .reels__tile { opacity: 0.5; }
.reels.is-stage .reels__tile:hover { opacity: 1; }
.reels.is-stage .reels__tile.is-current { opacity: 1; box-shadow: 0 0 0 1px var(--paper); transform: translateY(-0.25rem); }
.reels.is-stage .reels__cap { display: none; }
.reels.is-stage .reels__grid:hover .reels__tile:not(:hover) { opacity: 0.4; }

.reels__stage {
	position: absolute;
	inset: 5rem 0 10.5rem;
	display: grid;
	place-items: center;
}
.reels__player {
	position: relative;
	width: min(84vw, calc((100dvh - 17.5rem) * var(--r, 0.5625)));
	aspect-ratio: var(--r, 0.5625);
	background: #000;
	box-shadow: 0 2.5rem 5rem -1.5rem rgba(0, 0, 0, 0.8);
	transition: transform 0.7s var(--ease), opacity 0.26s var(--ease);
}
.reels__player.is-switching { opacity: 0; }
.reels__player video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.reels__bar {
	position: absolute;
	inset: auto 0 0;
	height: 3px;
	background: rgba(239, 236, 230, 0.18);
	cursor: pointer;
	transition: height 0.25s var(--ease);
}
.reels__bar:hover { height: 7px; }
.reels__bar span { display: block; height: 100%; width: 0; background: var(--accent); }
.reels__controls {
	position: absolute;
	top: calc(100% + 0.625rem);
	left: 0;
	right: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}
.reels__ctl { padding: 0.25rem 0; background: none; border: 0; color: var(--paper); transition: color 0.3s; }
.reels__ctl:hover { color: var(--accent); }
.reels__now { text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reels__arrow {
	position: absolute;
	top: calc(50% - 1.625rem);
	right: var(--gutter);
}
.reels__arrow--prev { right: auto; left: var(--gutter); }
.reels__arrow .icon { width: 1.125rem; height: 1.125rem; }
.reels__arrow--prev .icon { transform: scaleX(-1); }
.reels__hint {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0.875rem;
	text-align: center;
	z-index: 2;
}
.reels.is-stage .reels__hint { bottom: 0.5rem; }
.has-custom-cursor .reels,
.has-custom-cursor .reels__player video { cursor: none; }

@media (max-width: 760px) {
	.reels__count { display: none; }
	.reels__arrow { display: none; }
	.reels__player { width: min(92vw, calc((100dvh - 16rem) * var(--r, 0.5625))); }
	.reels__stage { inset: 4.5rem 0 9.5rem; }
	.reels.is-stage .reels__grid { --tile-h: 4.5rem !important; }
}
@media (prefers-reduced-motion: reduce) {
	.reels__tile,
	.reels__tile video,
	.reels__player,
	.reels__wall { transition: none; }
	.reels.is-opening,
	.reels.is-opening .reels__tile { animation: none; }
}

/* ---------- Custom cursor ---------- */
.cursor { display: none; }
.has-custom-cursor,
.has-custom-cursor a,
.has-custom-cursor button,
.has-custom-cursor [data-cursor],
.has-custom-cursor label { cursor: none; }
.has-custom-cursor .reel-modal { cursor: none; }
.has-custom-cursor input,
.has-custom-cursor textarea,
.has-custom-cursor select { cursor: text; }
.has-custom-cursor .reel-modal__frame,
.has-custom-cursor .reel-modal__frame video { cursor: auto; }
.has-custom-cursor .cursor {
	display: block;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 170;
	pointer-events: none;
	mix-blend-mode: difference;
}
.cursor__dot,
.cursor__ring {
	position: fixed;
	top: 0;
	left: 0;
	border-radius: 50%;
	will-change: transform;
}
.cursor__dot {
	width: 0.5rem;
	height: 0.5rem;
	margin: -0.25rem 0 0 -0.25rem;
	background: #fff;
	transition: opacity 0.3s, width 0.3s, height 0.3s, margin 0.3s;
}
.cursor__ring {
	width: 2.5rem;
	height: 2.5rem;
	margin: -1.25rem 0 0 -1.25rem;
	border: 1px solid #fff;
	display: grid;
	place-items: center;
	transition: width 0.5s var(--ease), height 0.5s var(--ease), margin 0.5s var(--ease), background-color 0.4s, border-color 0.4s, opacity 0.3s;
}
.cursor__label {
	font-size: calc(0.8125rem * var(--text-scale));
	font-weight: var(--thin);
	letter-spacing: 0.02em;
	color: var(--ink);
	opacity: 0;
	transform: scale(0.6);
	transition: opacity 0.3s, transform 0.5s var(--ease);
	white-space: nowrap;
}
.cursor.is-hover .cursor__ring { width: 4rem; height: 4rem; margin: -2rem 0 0 -2rem; }
.cursor.is-label { mix-blend-mode: normal; }
.cursor.is-label .cursor__ring {
	width: 6rem;
	height: 6rem;
	margin: -3rem 0 0 -3rem;
	background: var(--accent);
	border-color: var(--accent);
}
.cursor.is-label .cursor__label { opacity: 1; transform: none; }
.cursor.is-label .cursor__dot { opacity: 0; }
.cursor.is-down .cursor__ring { width: 1.875rem; height: 1.875rem; margin: -0.9375rem 0 0 -0.9375rem; }
.cursor.is-label.is-down .cursor__ring { width: 5.25rem; height: 5.25rem; margin: -2.625rem 0 0 -2.625rem; }
.cursor.is-text .cursor__ring { opacity: 0; }
.cursor.is-hidden { opacity: 0; }

/* ---------- 65mm film grain over everything (only the cursor sits above it) ---------- */
.grain {
	position: fixed;
	inset: -10%;
	z-index: 160;
	pointer-events: none;
	background: url("../img/grain.png") repeat;
	background-size: 256px 256px; /* Half-size grain: finer, tighter texture. */
	opacity: var(--grain, 0.1);
	mix-blend-mode: overlay; /* Like a grain plate in an edit: strongest in the midtones, quieter in deep blacks and highlights. */
	animation: grain 1s steps(3) infinite; /* 8 jumps × 3 steps: a new grain frame 24 times a second. */
	will-change: transform;
}
@keyframes grain {
	0% { transform: translate3d(0, 0, 0); }
	12.5% { transform: translate3d(-4%, 3%, 0); }
	25% { transform: translate3d(3%, -6%, 0); }
	37.5% { transform: translate3d(-7%, -2%, 0); }
	50% { transform: translate3d(6%, 5%, 0); }
	62.5% { transform: translate3d(-2%, 7%, 0); }
	75% { transform: translate3d(8%, -3%, 0); }
	87.5% { transform: translate3d(-5%, -7%, 0); }
	100% { transform: translate3d(0, 0, 0); }
}
@media (min-resolution: 2dppx) {
	.grain { background-size: 128px 128px; } /* One grain pixel per screen pixel on high-density screens. */
}
.reel-modal .grain { position: absolute; }

/* ---------- Page transition curtain ---------- */
.curtain {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 150;
	background: var(--ink-2);
	transform: translateY(101%);
	place-items: center;
}
.pt .curtain { display: grid; }
.pt-enter .curtain { transform: translateY(0); animation: curtain-failsafe 0.01s 3s forwards; }
.pt-reveal .curtain { transform: translateY(-101%); transition: transform 0.9s var(--ease-io); }
.pt-leave .curtain { transform: translateY(0); transition: transform 0.7s var(--ease-io); }
@keyframes curtain-failsafe { to { transform: translateY(-101%); } }
.curtain__brand {
	font-family: var(--serif);
	font-size: calc(clamp(2rem, 4vw, 3.4rem) * var(--title-scale));
	opacity: 0;
	transition: opacity 0.4s;
}
.pt-enter .curtain__brand,
.pt-leave .curtain__brand { opacity: 1; transition-delay: 0.25s; }

/* ---------- Reveal animations (JS adds .is-in) ---------- */
.js [data-reveal] {
	opacity: 0;
	transform: translateY(1.625rem);
	transition: opacity 1s var(--ease), transform 1.1s var(--ease);
	transition-delay: calc(var(--d, 0) * 1ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

.word { display: inline-block; }
.split-ready .word { overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split-ready .word__inner {
	display: inline-block;
	transform: translateY(105%);
	transition: transform 1.1s var(--ease);
	transition-delay: calc(var(--i, 0) * 45ms + var(--d, 0) * 1ms);
}
.split-ready.is-in .word__inner { transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.row__link { grid-template-columns: 2.5rem minmax(0, 2fr) minmax(0, 1fr) 3.75rem 1.5rem; }
	.row__type { display: none; }
	.details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
	:root { --header-h: 4.25rem; }
	.slide__foot { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
	.slide__shade {
		background:
			linear-gradient(180deg, rgba(12, 12, 11, 0.5) 0%, rgba(12, 12, 11, 0) 22%),
			linear-gradient(0deg, rgba(12, 12, 11, 0.92) 0%, rgba(12, 12, 11, 0.6) 50%, rgba(12, 12, 11, 0) 80%);
	}
	.slides__progress { display: none; }
	.service { grid-template-columns: 2.5rem minmax(0, 1fr); }
	.service__text { grid-column: 2; }
	.work__grid { grid-template-columns: 1fr; }
	.work__grid .card:nth-child(even) { margin-top: 0; }
	.project__body { grid-template-columns: 1fr; }
	.project__body .entry-content,
	.credits { grid-column: 1; grid-row: auto; }
	.contact { grid-template-columns: 1fr; }
	.studio__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.contact-form { grid-template-columns: 1fr; }
	.row__link { grid-template-columns: 2.125rem minmax(0, 1fr) auto; }
	.row__client,
	.row .icon { display: none; }
	.posts__list .row__link { grid-template-columns: 3.125rem minmax(0, 1fr); }
	.about__image .media { aspect-ratio: 4 / 3; }
}

@media (max-width: 520px) {
	.stats { grid-template-columns: 1fr 1fr; gap: 1.125rem; }
	.studio__list { grid-template-columns: 1fr; }
	.details { grid-template-columns: 1fr 1fr; }
}

/* Very narrow phones: keep the four menu items on one line. */
@media (max-width: 360px) {
	.site-nav__list { gap: calc(0.9rem * var(--menu-scale)); letter-spacing: 0.12em; }
}

/* Short or very narrow phones (iPhone SE, small Androids): tighten the hero so it fits under the menu. */
@media (max-width: 520px) and (max-height: 640px), (max-width: 360px) {
	.slide .eyebrow { display: none; }
	.slide__title { font-size: calc(clamp(2.5rem, 13vw, 3.2rem) * var(--title-scale)); }
	.slide--hero .slide__text { font-size: calc(0.82rem * var(--text-scale)); line-height: 1.55; }
	.slide__foot { margin-top: 1rem; gap: 0.9rem; }
	.reel-button__icon { width: 3.25rem; height: 3.25rem; }
	.slide__content { padding-bottom: calc(4.25rem + var(--toolbar, 0px)); }
	.slides__bar { padding-block: 0.9rem; }
}

/* Phones held sideways: title on the left, text and button on the right, no progress bar. */
@media (max-height: 520px) and (orientation: landscape) {
	:root { --header-h: 3.25rem; }
	.slide .eyebrow,
	.slides__bar { display: none; }
	.slide__content {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
		align-items: end;
		gap: 1.75rem;
		padding-bottom: calc(1.5rem + var(--toolbar, 0px));
	}
	.slide__title { font-size: calc(clamp(2.2rem, 14vh, 4rem) * var(--title-scale)); }
	.slide__foot { margin-top: 0; flex-direction: column; align-items: flex-start; gap: 0.75rem; }
	.slide--hero .slide__text,
	.slide__text { font-size: calc(0.75rem * var(--text-scale)); line-height: 1.5; }
	.reel-button__icon { width: 2.75rem; height: 2.75rem; }
	.studio,
	.contact-section { padding-top: 4.5rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
	.js [data-reveal] { opacity: 1; transform: none; }
	.split-ready .word__inner { transform: none; }
	.grain { animation: none; }
}
