/* ============================================
   Design tokens — change values here
   ============================================ */
:root {
	/* Colors */
	--color-bg: #fefeff; /* main site background (not pure white) */
	--color-ink: #1c1c1c; /* main dark text */
	--color-accent: #c0492c; /* terracotta accent */
	--color-muted: #6b6b6b;

	/* Fonts */
	--font-display: 'Darker Grotesque', system-ui, sans-serif; /* headings, menu */
	--font-body: 'Arsenal', Georgia, serif; /* subheadings, descriptions */

	/* Sizes */
	--header-pad-y: 1.6rem;
	--header-pad-x: 2.6rem;
	--panel-width: 21%;
}

/* ============================================
   Base reset
   ============================================ */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
}

html {
	font-size: 18px;
	scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}
/* Lock background scroll while the menu overlay is open */
body.menu-open {
	overflow: hidden;
}

body {
	font-family: var(--font-body);
	color: var(--color-ink);
	background: var(--color-bg);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

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

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

/* Visually hidden but available to screen readers */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ============================================
   Hero screen
   ============================================ */
.page-home {
	overflow-x: hidden;
}

.hero {
	position: relative;
	min-height: 100vh;
	min-height: 100svh;
	overflow: hidden;

	/* === VARIANT A: single combined image (current) === */
	background-image: url('/assets/hero.webp');

	/* === VARIANT B: two layers — background + cut-out figure ===
	   To switch back: uncomment the line below, comment out variant A,
	   and uncomment the <img class="hero__figure"> block in src/index.njk
	background-image: url("/assets/hero-bg.webp");
	*/

	background-size: cover;
	background-position: center;
}

/* White panel on the left */
.hero__panel {
	position: absolute;
	inset: 0 auto 0 0;
	width: var(--panel-width);
	background: var(--color-bg);
	z-index: 1;
}

/* ============================================
   Header
   ============================================ */
.header {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 50;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: var(--header-pad-y) var(--header-pad-x);
	font-family: var(--font-display);
	transition:
		background-color 0.4s ease,
		box-shadow 0.4s ease,
		padding 0.4s ease;
}

/* Frosted background once the page is scrolled (toggled by JS in home.njk) */
.header--scrolled {
	background-color: rgba(254, 254, 255, 0.82);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	box-shadow: 0 1px 0 rgba(28, 28, 28, 0.07);
	padding-block: 1.05rem;
}

.header__logo {
	font-weight: 500;
	font-size: 1rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	white-space: nowrap;
}

/* Tagline is centered independently so it does not affect the flex layout */
.header__tagline {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	font-weight: 500;
	font-size: 1.1rem;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

.header__nav {
	display: flex;
	align-items: center;
	gap: 1.3rem;
	font-size: 1.1rem;
	font-weight: 400;
	white-space: nowrap;
}

.header__link:hover,
.header__menu:hover {
	color: var(--color-accent);
}

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

/* ============================================
   Fullscreen menu overlay
   ============================================ */
.menu {
	position: fixed;
	inset: 0;
	z-index: 80;
	display: flex;
	flex-direction: column;
	background: var(--color-bg);
	opacity: 0;
	visibility: hidden;
	transition:
		opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
		visibility 0.55s;
}
.menu--open {
	opacity: 1;
	visibility: visible;
}

/* Top bar mirrors the site header (logo left, close right) */
.menu__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: var(--header-pad-y) var(--header-pad-x);
	font-family: var(--font-display);
}
.menu__close {
	font: inherit;
	font-weight: 400;
	font-size: 1.1rem;
	color: var(--color-ink);
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
	transition: color 0.3s ease;
}
.menu__close:hover {
	color: var(--color-accent);
}

.menu__nav {
	flex: 1;
	min-height: 0;
	display: flex;
	align-items: center;
	overflow-y: auto; /* safety net if it ever exceeds the height */
	padding: 1.5rem var(--header-pad-x) 2.5rem 5rem;
}
.menu__list {
	margin: 0;
	padding: 0;
	list-style: none;
	width: 100%;
}

/* Each item fades + rises in, staggered while the overlay opens */
.menu__item {
	opacity: 0;
	transform: translateY(1.4rem);
	transition:
		opacity 0.6s ease,
		transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.menu--open .menu__item {
	opacity: 1;
	transform: none;
}
.menu--open .menu__item:nth-child(1) { transition-delay: 0.12s; }
.menu--open .menu__item:nth-child(2) { transition-delay: 0.18s; }
.menu--open .menu__item:nth-child(3) { transition-delay: 0.24s; }
.menu--open .menu__item:nth-child(4) { transition-delay: 0.30s; }
.menu--open .menu__item:nth-child(5) { transition-delay: 0.36s; }

.menu__link {
	display: flex;
	align-items: baseline;
	gap: 1.4rem;
	padding: 0.18em 0;
	font-family: var(--font-display);
	font-weight: 400;
	/* Scale by whichever is smaller — page width or height — so all 5 items
	   always fit within one screen, even on short/landscape viewports. */
	font-size: clamp(1.5rem, min(5.4vw, 8vh), 4.6rem);
	line-height: 1.02;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--color-ink);
	width: max-content;
	max-width: 100%;
	transition:
		color 0.35s ease,
		transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.menu__link:hover,
.menu__link:focus-visible {
	color: var(--color-accent);
	transform: translateX(1.2rem);
}
.menu__num {
	font-family: var(--font-body);
	font-size: clamp(0.85rem, 1.1vw, 1.05rem);
	letter-spacing: 0.1em;
	color: var(--color-accent);
}

@media (prefers-reduced-motion: reduce) {
	.menu,
	.menu__item,
	.menu__link {
		transition: opacity 0.2s ease;
	}
	.menu__item {
		transform: none;
	}
}

/* ============================================
   Vertical VIEW WORK rail
   ============================================ */
.rail {
	position: absolute;
	left: 1.7rem;
	top: 25%;
	height: 68%;
	z-index: 5;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.6rem;
}

.rail__line {
	width: 1px;
	flex: 1;
	background: var(--color-accent);
}

/* Bottom line — ends with a small neat downward arrow */
.rail__line--arrow {
	position: relative;
}

.rail__line--arrow::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	width: 6px;
	height: 6px;
	border-right: 1px solid var(--color-accent);
	border-bottom: 1px solid var(--color-accent);
	transform: translate(-50%, 30%) rotate(45deg);
}

/* End cap — a short horizontal line marking the final page (no arrow, no link) */
.rail__line--end {
	position: relative;
}
.rail__line--end::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	width: 12px;
	height: 1px;
	background: var(--color-accent);
	transform: translate(-50%, 1px);
}

.rail__label {
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 0.8rem;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--color-accent);
	white-space: nowrap;
}

/* Whole rail is the click target when it links to the next screen */
.rail--link {
	cursor: pointer;
	padding-inline: 0.4rem;
}
.rail--link:hover .rail__label {
	opacity: 0.7;
}

/* ============================================
   Large VISUAL / WORLDS heading
   ============================================ */
/* The heading is one absolute block; the words flow inside it (relative),
   so WORLDS is offset RELATIVE to VISUAL via its own margins.
   Do NOT set a z-index on .hero__title (keep it auto) — otherwise the figure
   layer cannot be sandwiched between the words in variant B. */
.hero__title {
	position: absolute;
	top: 24%;
	left: 6%;
	margin: 0;
	font-family: var(--font-display);
	font-weight: 400;
	line-height: 0.85;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--color-accent);
	pointer-events: none;
}

.hero__word {
	position: relative; /* stays in flow, but z-index works */
	display: block;
	width: max-content;
}

.hero__word--visual {
	z-index: 4; /* above the figure */
	font-size: clamp(3.5rem, 10.5vw, 12rem);
}

.hero__word--worlds {
	z-index: 2; /* below the figure layer */
	margin-top: 0.15em; /* top offset relative to VISUAL */
	margin-left: 1.4em; /* horizontal offset (staggered) */
	/* font-size: clamp(2rem, 4.7vw, 64px); */
	font-size: clamp(2.5rem, 6.5vw, 9rem);
}

/* Cut-out figure — separate layer above WORLDS */
.hero__figure {
	position: absolute;
	bottom: 0;
	right: 7%;
	height: 94%;
	width: auto;
	z-index: 3;
	pointer-events: none;
}

/* ============================================
   Section divider — infinite slogan marquee
   ============================================ */
.marquee {
	overflow: hidden;
	background: var(--color-bg);
	border-top: 1px solid rgba(28, 28, 28, 0.14);
	border-bottom: 1px solid rgba(28, 28, 28, 0.14);
	padding-block: 0.56rem;
	-webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
	margin: 1.96rem 0;
}

.marquee__track {
	display: flex;
	width: max-content;
	animation: marquee-scroll 32s linear infinite;
}

.marquee:hover .marquee__track {
	animation-play-state: paused;
}

.marquee__group {
	display: flex;
	align-items: center;
	flex: none;
}

.marquee__word {
	padding: 0 0.7em;
	font-family: var(--font-display);
	font-weight: 500;
	font-size: clamp(0.64rem, 1.27vw, 1.08rem);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--color-ink);
}

.marquee__sep {
	font-size: clamp(0.34rem, 0.69vw, 0.54rem);
	color: var(--color-accent);
}

@keyframes marquee-scroll {
	to {
		transform: translateX(-50%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.marquee__track {
		animation: none;
	}
}

/* ============================================
   Selected Works section
   ============================================ */
.works {
	position: relative;
	min-height: 100vh;
	min-height: 100svh;
	display: flex;
	flex-direction: column;
	background: var(--color-bg);
	/* top padding clears the fixed header so the title/cards aren't hidden under it */
	padding: 5rem var(--header-pad-x) 0.5rem 5rem;
}

/* Section rail reuses .rail; just repositions it for this section */
.rail--section {
	top: 12%;
	height: 64%;
}

.works__layout {
	flex: 1; /* fill the full section height */
	min-height: 0;
	display: grid;
	grid-template-columns: minmax(170px, 1fr) 3.1fr;
	gap: 2.5rem;
	align-items: stretch;
}

/* Right column fills the whole section height; grid grows, archive sits at the bottom */
.works__main {
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.works__title {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 400;
	font-size: clamp(2rem, 3.4vw, 3.4rem);
	line-height: 0.92;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--color-accent);
}
.works__title span {
	display: block;
}

/* Bento grid — placement is fixed per slot (1 wide top … 4 tall … 5 wide bottom) */
.works__grid {
	flex: 1; /* fill the available height of works__main */
	min-height: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-template-rows: 1.45fr 1fr 1fr;
	gap: 0.55rem;
}
.work-card--1 {
	grid-area: 1 / 1 / 2 / 4;
}
.work-card--2 {
	grid-area: 2 / 1 / 3 / 2;
}
.work-card--3 {
	grid-area: 2 / 2 / 3 / 3;
}
.work-card--4 {
	grid-area: 2 / 3 / 4 / 4;
} /* tall — stretches across both lower rows */
.work-card--5 {
	grid-area: 3 / 1 / 4 / 3;
}

/* Card */
.work-card {
	position: relative;
	display: block;
	overflow: hidden;
	background: #25262b;
	color: #fff;
	text-decoration: none;
}
/* Image lives in a wrapper so the hover zoom is clipped independently of the
   caption (which is overlaid by default, but sits below for cards 2 & 3). */
.work-card__media {
	position: absolute;
	inset: 0;
	overflow: hidden;
}
.work-card__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
	will-change: transform;
}
/* Bottom gradient so the caption stays readable */
.work-card::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(15, 16, 22, 0.7) 0%, rgba(15, 16, 22, 0) 55%);
	opacity: 0.85;
	transition: opacity 0.5s ease;
	z-index: 1;
}

.work-card__caption {
	position: absolute;
	left: 0;
	bottom: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	padding: 1.1rem 1.2rem;
}
.work-card__num {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 0.8rem;
	letter-spacing: 0.1em;
	color: var(--color-accent);
	line-height: 1;
}
.work-card__title {
	position: relative;
	align-self: flex-start;
	font-family: var(--font-display);
	font-weight: 500;
	font-size: clamp(0.95rem, 1.2vw, 1.15rem);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	line-height: 1;
	margin: 0.1rem 0 0.2rem;
}
.work-card__title::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 100%;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.work-card__meta {
	font-family: var(--font-body);
	font-size: 0.8rem;
	letter-spacing: 0.02em;
	color: rgba(255, 255, 255, 0.78);
	line-height: 1;
}

/* Cards 2 & 3 — caption below a more rectangular image (dark text on page bg) */
.work-card--2,
.work-card--3 {
	display: flex;
	flex-direction: column;
	background: transparent;
	color: var(--color-ink);
}
.work-card--2 .work-card__media,
.work-card--3 .work-card__media {
	position: relative;
	inset: auto;
	flex: 1;
	min-height: 0; /* allow the media to shrink inside the flex column */
}
.work-card--2::after,
.work-card--3::after {
	content: none; /* no overlay gradient — caption is below, not on the image */
}
.work-card--2 .work-card__caption,
.work-card--3 .work-card__caption {
	position: relative;
	left: auto;
	bottom: auto;
	padding: 0.2rem 0 0;
	gap: 0;
}
.work-card--2 .work-card__meta,
.work-card--3 .work-card__meta {
	color: var(--color-muted);
}

/* Hover / focus — slow image zoom, deepening gradient, title underline wipe */
.work-card:hover .work-card__img,
.work-card:focus-visible .work-card__img {
	transform: scale(1.05);
}
.work-card:hover::after,
.work-card:focus-visible::after {
	opacity: 1;
}
.work-card:hover .work-card__title::after,
.work-card:focus-visible .work-card__title::after {
	transform: scaleX(1);
}
.work-card:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 3px;
}

/* "View full archive" row */
.works__archive {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 1.4rem;
	padding-top: 0.4rem;
	border-top: 1px solid rgba(28, 28, 28, 0.18);
	font-family: var(--font-display);
	font-size: 0.95rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--color-muted);
	transition: color 0.3s ease;
}
.works__archive:hover {
	color: var(--color-ink);
}
.works__archive-arrow {
	font-size: 1.2rem;
	transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.works__archive:hover .works__archive-arrow {
	transform: translateX(8px);
}

/* ============================================
   Process section (screen 03)
   ============================================ */
.process {
	position: relative;
	min-height: 100vh;
	min-height: 100svh;
	display: flex;
	flex-direction: column;
	background: var(--color-bg);
	/* top padding clears the fixed header */
	padding: 5rem var(--header-pad-x) 2.5rem 5rem;
}

.process__layout {
	flex: 1; /* fill the section height */
	min-height: 0;
	display: grid;
	grid-template-columns: minmax(220px, 1fr) minmax(0, 3fr);
	gap: 3rem;
	align-items: stretch;
}

/* Left column — title, lead line, tall feature image */
.process__intro {
	display: flex;
	flex-direction: column;
	min-height: 0;
}
.process__title {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 400;
	font-size: clamp(2.6rem, 5vw, 5rem);
	line-height: 0.9;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--color-accent);
}
.process__lead {
	margin: 1.1rem 0 1.6rem;
	font-family: var(--font-body);
	font-style: italic;
	font-weight: bold;
	font-size: clamp(0.85rem, 1vw, 1rem);
	line-height: 1.5;
	color: var(--color-accent);
}
.process__feature {
	flex: 1; /* fills the rest of the left column */
	min-height: 0;
	overflow: hidden;
	background: #25262b;
}
.process__feature img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 18% center;
}

/* Right column — five evenly-spaced step rows */
.process__steps {
	display: flex;
	flex-direction: column;
	min-height: 0;
}
.pstep {
	flex: 1; /* rows share the column height evenly */
	min-height: 0;
	display: grid;
	grid-template-columns: minmax(150px, 200px) minmax(0, 1fr);
	gap: 1.8rem;
	align-items: stretch;
	padding-block: 1rem;
	border-top: 2px solid rgba(28, 28, 28, 0.16);
}
.pstep:first-child {
	border-top: 0;
	padding-top: 0;
}

/* Head fills the row height; a vertical hairline divides the number from the label */
.pstep__head {
	display: flex;
	gap: 1.1rem;
	align-items: stretch;
	height: 100%;
}
.pstep__num {
	flex: none;
	min-width: 2rem;
	font-family: var(--font-display);
	font-weight: bold;
	font-size: clamp(1rem, 1.2vw, 1.25rem);
	letter-spacing: 0.06em;
	color: var(--color-accent);
}
.pstep__body {
	border-left: 2px solid rgba(28, 28, 28, 0.16);
	padding-left: 1.1rem;
}
.pstep__name {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 500;
	font-size: clamp(0.95rem, 1.1vw, 1.15rem);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--color-accent);
}
.pstep__text {
	margin: 0.35rem 0 0;
	font-family: var(--font-body);
	font-size: 0.82rem;
	line-height: 1.35;
	color: var(--color-muted);
}

/* Image strip — equal-width cells fill the row edge-to-edge for any count */
.pstep__strip {
	display: flex;
	gap: 0.4rem;
	height: 100%;
	min-height: 0;
}
.pstep__shot {
	flex: 1 1 0;
	min-width: 0;
	height: 100%;
	overflow: hidden;
}
.pstep__shot img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.pstep__shot:hover img {
	transform: scale(1.05);
}

/* ============================================
   Ways of Working section (screen 04)
   ============================================ */
.services {
	position: relative;
	min-height: 100vh;
	min-height: 100svh;
	display: flex;
	flex-direction: column;
	background: var(--color-bg);
	padding: 5rem var(--header-pad-x) 2.5rem 5rem;
}

.services__layout {
	flex: 1;
	min-height: 0;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
	gap: 3.5rem;
	align-items: stretch;
}

/* Left column — big two-line title up top, lead text lower down */
.services__intro {
	display: flex;
	flex-direction: column;
}
.services__title {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 400;
	font-size: clamp(2.6rem, 6vw, 5.5rem);
	line-height: 1.02;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}
.services__title span {
	display: block;
}
.services__title span:first-child {
	color: var(--color-ink);
}
.services__title span:last-child {
	color: var(--color-accent);
}

.services__lead {
	margin-top: auto; /* push toward the lower part of the column */
	padding-bottom: clamp(1rem, 8vh, 5rem);
}
.services__lead-rule {
	display: block;
	position: relative;
	width: 2.6rem;
	height: 1px;
	margin-bottom: 1.6rem;
	background: var(--color-accent);
}
.services__lead-rule::after {
	content: '';
	position: absolute;
	right: -2px;
	top: 50%;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--color-accent);
	transform: translateY(-50%);
}
.services__lead p {
	margin: 0;
	font-family: var(--font-body);
	font-size: clamp(1rem, 1.3vw, 1.4rem);
	line-height: 1.7;
	color: var(--color-ink);
}

/* Right column — four evenly-spaced service rows */
.services__list {
	display: flex;
	flex-direction: column;
	border-bottom: 1px solid rgba(28, 28, 28, 0.16);
}
.service {
	flex: 1;
	min-height: 0;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 2rem;
	align-items: stretch;
	padding-block: 1rem;
	border-top: 1px solid rgba(28, 28, 28, 0.16);
}
.service__num {
	display: flex;
	align-items: center;
	min-width: 4rem;
	font-family: var(--font-body);
	font-weight: 400;
	font-size: clamp(2.2rem, 3.4vw, 3.4rem);
	line-height: 1;
	color: var(--color-accent);
}
.service__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	border-left: 1px solid rgba(28, 28, 28, 0.16);
	padding-left: 3.5rem;
}
.service__name {
	margin: 0 0 0.6rem;
	font-family: var(--font-display);
	font-weight: 500;
	font-size: clamp(0.95rem, 1.15vw, 1.2rem);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--color-accent);
}
.service__desc {
	margin: 0;
	font-family: var(--font-body);
	font-size: 0.9rem;
	line-height: 1.5;
	color: var(--color-ink);
}
.service__link {
	display: flex;
	align-items: center;
	padding-left: 1rem;
	margin-inline-end: 3rem;
}
.service__arrow {
	font-size: 1.4rem;
	line-height: 1;
	color: var(--color-accent);
	transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.service:hover .service__arrow,
.service:focus-visible .service__arrow {
	transform: translateX(7px);
}
.service:hover .service__name {
	opacity: 0.78;
}
.service:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 4px;
}

/* ============================================
   Service detail page (/work/<slug>/)
   ============================================ */
.detail {
	position: relative;
	/* Fixed to one screen so the right-hand image stack fills (and never overflows)
	   the viewport instead of expanding to the images' natural height. */
	height: 100vh;
	height: 100svh;
	display: flex;
	flex-direction: column;
	background: var(--color-bg);
	padding: 4.8rem var(--header-pad-x) 1.6rem 5rem;
}
.detail__layout {
	display: grid;
	grid-template-columns: 1.3fr 1fr clamp(220px, 21vw, 290px);
	gap: 2.8rem;
	align-items: start;
}

/* Left column */
.detail__intro {
	display: flex;
	flex-direction: column;
}
.detail__num {
	font-family: var(--font-body);
	font-size: clamp(1.6rem, 2.2vw, 2.2rem);
	line-height: 1;
	color: var(--color-accent);
}
.detail__title {
	margin: 0.15rem 0 0;
	font-family: var(--font-display);
	font-weight: 400;
	font-size: clamp(2.8rem, 5.2vw, 5rem);
	line-height: 0.98;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.detail__title span {
	display: block;
}
.detail__title span:first-child {
	color: var(--color-ink);
}
.detail__title span:last-child {
	color: var(--color-accent);
}
.detail__rule {
	display: block;
	position: relative;
	width: 2.4rem;
	height: 1px;
	margin: 2rem 0;
	background: var(--color-accent);
}
.detail__rule::after {
	content: '';
	position: absolute;
	right: -2px;
	top: 50%;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--color-accent);
	transform: translateY(-50%);
}
.detail__lead {
	margin: 0;
	font-family: var(--font-body);
	font-size: clamp(1rem, 1.25vw, 1.3rem);
	line-height: 1.55;
	color: var(--color-ink);
	width: 44%;
}

/* Approach box — flows below the lead with a fixed gap */
.approach {
	margin-top: 1.5rem;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	border: 1px solid rgba(28, 28, 28, 0.2);
}
.approach__main {
	padding: 1rem 1.2rem;
}
.approach__label {
	display: block;
	margin-bottom: 0.55rem;
	font-family: var(--font-display);
	font-weight: bold;
	font-size: 0.8rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--color-accent);
}
.approach__text {
	margin: 0;
	font-family: var(--font-body);
	font-size: 0.92rem;
	line-height: 1.45;
	color: var(--color-ink);
	width: 35%;
}
.approach__meta {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 1rem 1.1rem;
	border-left: 1px solid rgba(28, 28, 28, 0.2);
	font-family: var(--font-display);
	font-size: 0.8rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--color-accent);
	white-space: nowrap;
	text-align: center;
	font-weight: bold;
}

/* Middle column */
.detail__body {
	display: flex;
	flex-direction: column;
}
.detail__copy p {
	margin: 0 0 0.9rem;
	font-family: var(--font-body);
	font-size: clamp(0.95rem, 1.1vw, 1.15rem);
	line-height: 1.55;
	color: var(--color-ink);
	width: 60%;
}
.detail__copy p:last-child {
	margin-bottom: 0;
}
.includes {
	margin-top: 1.5rem;
}
.includes__title {
	margin: 0 0 0.5rem;
	font-family: var(--font-display);
	font-weight: bold;
	font-size: 0.8rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--color-accent);
}
.includes__list {
	margin: 0;
	padding: 0;
	list-style: none;
}
.includes__item {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 0.4rem 0;
	border-bottom: 1px solid rgba(28, 28, 28, 0.16);
	font-family: var(--font-body);
	font-size: 0.95rem;
	color: var(--color-ink);
	font-weight: bold;
}
.includes__arrow {
	color: var(--color-accent);
	font-size: 1.05rem;
}

/* Right column — narrow stack of fixed-size reference images (~285×205) */
.detail__media {
	display: flex;
	flex-direction: column;
	gap: 1.1rem;
}
.detail__shot {
	aspect-ratio: 285 / 205;
	overflow: hidden;
}
/* Two-image pages (e.g. the last service) — wider column, larger images */
.detail__layout--pair {
	grid-template-columns: 1.1fr 0.9fr clamp(300px, 27vw, 375px);
}
.detail__layout--pair .detail__shot {
	aspect-ratio: 5 / 4;
}
.detail__shot img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ============================================
   About section (screen 05)
   ============================================ */
.about {
	position: relative;
	min-height: 100vh;
	min-height: 100svh;
	display: flex;
	flex-direction: column;
	background: var(--color-bg);
	padding: 5rem var(--header-pad-x) 2.5rem 5rem;
}
.about__layout {
	flex: 1;
	min-height: 0;
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 3rem;
	align-items: stretch;
	border-bottom: 1px solid rgba(28, 28, 28, 0.16);
	padding-block: 2.5rem;
}

/* Left — title + body copy */
.about__intro {
	display: flex;
	flex-direction: column;
}
.about__title {
	margin: 2rem 0 2.2rem;
	font-family: var(--font-display);
	font-weight: 400;
	font-size: clamp(2.4rem, 4vw, 3.8rem);
	line-height: 0.95;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--color-accent);
}
.about__copy {
	width: 70%;
}
.about__copy p {
	margin: 0 0 1.2rem;
	font-family: var(--font-body);
	font-size: clamp(0.85rem, 0.95vw, 1rem);
	line-height: 1.55;
	color: var(--color-ink);
}
.about__copy p:last-child {
	margin-bottom: 0;
}

/* Center — tall portrait filling the column height */
.about__media {
	overflow: hidden;
	background: #25262b;
}
.about__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Right — location note, quote, contact link */
.about__side {
	display: flex;
	flex-direction: column;
}
.about__where {
	margin-top: 13rem;
	font-family: var(--font-body);
	font-size: clamp(0.85rem, 0.95vw, 1rem);
	line-height: 1.55;
	color: var(--color-ink);
	width: 50%;
}
.about__quote {
	margin: auto 0 0;
	font-family: var(--font-body);
	font-style: italic;
	font-size: clamp(1rem, 1.25vw, 1.35rem);
	line-height: 1.4;
	color: var(--color-accent);
}
.about__contact {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 2.5rem;
	padding: 2rem 3rem;
	border-inline-start: 2px solid rgba(28, 28, 28, 0.2);
	font-family: var(--font-display);
	font-size: 1rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--color-ink);
	transition: color 0.3s ease;
}
.about__contact:hover {
	color: var(--color-accent);
}
.about__contact-arrow {
	font-size: 1.3rem;
	color: var(--color-accent);
	transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.about__contact:hover .about__contact-arrow {
	transform: translateX(8px);
}

/* ============================================
   Contact section (screen 06)
   ============================================ */
.contact {
	position: relative;
	min-height: 100vh;
	min-height: 100svh;
	display: flex;
	flex-direction: column;
	background: var(--color-bg);
	padding: 4.8rem var(--header-pad-x) 2.5rem 5rem;
}
.contact__layout {
	flex: 1;
	min-height: 0;
	display: grid;
	grid-template-columns: 1fr 0.9fr 1fr;
	gap: 3rem;
	align-items: stretch;
}

/* Left — big title + contact details list */
.contact__intro {
	display: flex;
	flex-direction: column;
}
.contact__title {
	margin: 0 0 1.6rem;
	font-family: var(--font-display);
	font-weight: 400;
	font-size: clamp(2.4rem, 4.2vw, 4rem);
	line-height: 0.92;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--color-accent);
}
.contact__title span {
	display: block;
}
.contact__list {
	margin: 0;
}
.contact__row {
	padding: 0.85rem 0;
	border-top: 1px solid rgba(28, 28, 28, 0.16);
}
.contact__row:last-child {
	border-bottom: 1px solid rgba(28, 28, 28, 0.16);
}
.contact__row dt {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 0.78rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--color-accent);
}
.contact__row dd {
	margin: 0.35rem 0 0;
	font-family: var(--font-body);
	font-size: 0.95rem;
	line-height: 1.5;
	color: var(--color-ink);
}
.contact__row dd a {
	transition: color 0.3s ease;
}
.contact__row dd a:hover {
	color: var(--color-accent);
}

/* Center — stacked cinematic stills */
.contact__media {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	min-height: 0;
}
.contact__shot {
	flex: 1;
	min-height: 0;
	overflow: hidden;
}
.contact__shot img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* Right — collaborations, note, closing line */
.contact__side {
	display: flex;
	flex-direction: column;
}
.contact__collab-title {
	margin: 0 0 1.1rem;
	padding-bottom: 1.1rem;
	border-bottom: 1px solid rgba(28, 28, 28, 0.2);
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 0.82rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--color-accent);
}
.contact__collab {
	font-family: var(--font-body);
	font-size: 0.95rem;
	line-height: 1.5;
	color: var(--color-ink);
}
.contact__collab p {
	margin: 0 0 0.4rem;
}
.contact__collab-list {
	margin: 0;
	padding: 0;
	list-style: none;
}
.contact__note {
	margin: 1.6rem 0 0;
	padding-top: 1.6rem;
	border-top: 1px solid rgba(28, 28, 28, 0.16);
	font-family: var(--font-body);
	font-size: 0.95rem;
	line-height: 1.55;
	color: var(--color-ink);
}
/* Small print — contact/legal info */
.contact__info {
	margin-top: 1.4rem;
	padding-top: 1.4rem;
	border-top: 1px solid rgba(28, 28, 28, 0.16);
}
.contact__info-title {
	margin: 0 0 0.5rem;
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 0.72rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--color-accent);
}
.contact__info p {
	margin: 0 0 0.55rem;
	font-family: var(--font-body);
	font-size: 0.76rem;
	line-height: 1.4;
	color: var(--color-muted);
}
.contact__info p:last-child {
	margin-bottom: 0;
}
.contact__info a {
	color: var(--color-ink);
	transition: color 0.3s ease;
}
.contact__info a:hover {
	color: var(--color-accent);
}

.contact__quote {
	margin: auto 0 0;
	padding-top: 1.6rem;
	font-family: var(--font-body);
	font-style: italic;
	font-size: clamp(1.05rem, 1.3vw, 1.4rem);
	line-height: 1.4;
	color: var(--color-accent);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 760px) {
	:root {
		--header-pad-x: 1.4rem;
		--header-pad-y: 1.2rem;
	}

	/* Header is sticky from the top on mobile → always keep the frosted background */
	.header {
		background-color: rgba(254, 254, 255, 0.9);
		backdrop-filter: blur(12px);
		-webkit-backdrop-filter: blur(12px);
		box-shadow: 0 1px 0 rgba(28, 28, 28, 0.07);
	}

	.hero {
		background-position: 83% center;
	}

	/* Darken for readability over the photo */
	.hero::after {
		content: '';
		position: absolute;
		inset: 0;
		background: linear-gradient(180deg, rgba(20, 25, 40, 0.35), rgba(20, 25, 40, 0.1));
		z-index: 2;
	}

	.hero__panel {
		display: none;
	}

	.rail {
		display: none;
	}

	.header__tagline {
		display: none;
	}

	.header__logo {
		font-size: 0.78rem;
		letter-spacing: 0.1em;
	}

	.header__nav {
		gap: 0.9rem;
		font-size: 0.95rem;
	}

	.hero__title {
		top: 18%;
	}

	.hero__word--worlds {
		margin-left: 0.8em;
	}

	/* Works: single column, title above the stacked cards (not locked to 100vh) */
	.works {
		min-height: 0;
		justify-content: flex-start;
		padding: 4.5rem 1.4rem 3rem;
	}

	.works__layout {
		grid-template-columns: 1fr;
		gap: 1.6rem;
	}

	.works__grid {
		grid-template-columns: 1fr;
		grid-template-rows: auto;
		height: auto;
		max-height: none;
	}

	.work-card--1,
	.work-card--2,
	.work-card--3,
	.work-card--4,
	.work-card--5 {
		grid-area: auto;
	}

	/* List order puts slot-5 content (num 04) after slot-4 (num 05); reorder so the
	   numbers read 04 → 05 top-to-bottom on mobile. Desktop slots stay untouched. */
	.work-card--5 {
		order: 1;
	}
	.work-card--4 {
		order: 2;
	}

	/* All cards use the caption-below layout (like cards 2 & 3 on desktop) */
	.work-card {
		display: flex;
		flex-direction: column;
		aspect-ratio: auto;
		background: transparent;
		color: var(--color-ink);
	}
	.work-card .work-card__media {
		position: relative;
		inset: auto;
		flex: none;
		aspect-ratio: 16 / 10;
	}
	.work-card::after {
		content: none;
	}
	.work-card .work-card__caption {
		position: relative;
		left: auto;
		bottom: auto;
		padding: 0.5rem 0 0;
		gap: 0;
	}
	.work-card .work-card__meta {
		color: var(--color-muted);
	}

	/* Process: single column, natural height, strips become shorter scroll rows */
	.process {
		min-height: 0;
		padding: 4.5rem 1.4rem 3rem;
	}
	.process__layout {
		grid-template-columns: 1fr;
		gap: 1.8rem;
	}
	.process__feature {
		flex: none;
		aspect-ratio: 4 / 5;
	}
	.pstep {
		grid-template-columns: 1fr;
		gap: 0.7rem;
		align-items: stretch;
	}
	.pstep:first-child {
		padding-top: 1rem;
		border-top: 1px solid rgba(28, 28, 28, 0.16);
	}
	.pstep__strip {
		height: 92px;
	}

	/* Ways of Working: single column, natural height */
	.services {
		min-height: 0;
		padding: 4.5rem 1.4rem 3rem;
	}
	.services__layout {
		grid-template-columns: 1fr;
		gap: 2.2rem;
	}
	.services__lead {
		margin-top: 1.5rem;
		padding-bottom: 0;
	}
	.service {
		gap: 1.1rem;
		align-items: center;
	}
	.service__num {
		min-width: 2rem;
	}
	.service__body {
		padding-left: 1.1rem;
	}

	/* Service detail page: single column, natural height */
	.detail {
		min-height: 0;
		padding: 5.5rem 1.4rem 3rem;
	}
	.detail__layout {
		grid-template-columns: 1fr;
		gap: 2.5rem;
	}
	.approach {
		margin-top: 2rem;
	}
	.includes {
		margin-top: 1.5rem;
	}
	.detail__media {
		gap: 1rem;
	}
	.detail__shot {
		aspect-ratio: 4 / 3;
	}

	/* About: single column, image between the text blocks */
	.about {
		min-height: 0;
		padding: 4.5rem 1.4rem 3rem;
	}
	.about__copy {
		width: 100%;
	}
	.about__layout {
		grid-template-columns: 1fr;
		gap: 2rem;
		padding-block: 2rem;
	}
	.about__media {
		order: -1;
		aspect-ratio: 3 / 4;
	}
	.about__where {
		margin-top: 0;
		width: 100%;
	}
	.about__quote {
		margin-top: 1.5rem;
	}

	/* Contact: single column */
	.contact {
		min-height: 0;
		padding: 4.5rem 1.4rem 3rem;
	}
	.contact__layout {
		grid-template-columns: 1fr;
		gap: 2rem;
	}
	.contact__shot {
		aspect-ratio: 16 / 9;
	}
	.contact__note {
		margin-top: 1.2rem;
	}
	.contact__quote {
		margin-top: 1.5rem;
	}

	.menu__nav {
		padding: 1.5rem 1.4rem 3rem;
	}
	.menu__link {
		gap: 1rem;
	}
}
