/*
Theme Name: Alekharr
Theme URI: https://alekharr.com/
Author: Alex Harrison
Description: Portfolio theme for alekharr.com. Page templates for the homepage, portfolio, photography, logos, about, contact and each case study; renders Photos and Logos directly (no Elementor needed). Poppins + Bebas Neue, page transitions, project reel, chapter rail and a filterable photo gallery.
Version: 2.2.0
Requires at least: 6.2
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: alekharr
*/

/* ==========================================================
   Tokens
   ========================================================== */
:root {
	--navy: #13284a;
	--deep: #0a1830;
	--steel: #46699a;
	--sky: #7fb2e5;
	--mist: #eef2f7;
	--white: #ffffff;

	--ink: var(--navy);
	--muted: #56688a;
	--line: rgba(19, 40, 74, 0.12);
	--line-strong: rgba(19, 40, 74, 0.28);
	--link: #2b5a96;
	--bg: var(--white);
	--surface: var(--mist);

	--display: "Bebas Neue", "Oswald", Impact, "Arial Narrow", sans-serif;
	--body: "Poppins", "Helvetica Neue", Arial, sans-serif;

	--step--1: 0.8125rem;
	--step-0: 1rem;
	--step-1: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem);
	--step-2: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem);
	--step-3: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem);
	--step-4: clamp(3rem, 1.8rem + 4.6vw, 6rem);
	--step-5: clamp(4.25rem, 2rem + 8.5vw, 9.5rem);

	--gutter: clamp(1.125rem, 0.5rem + 2.5vw, 2.5rem);
	--wrap: 76rem;
	--wrap-wide: 92rem;
	--space: clamp(4.5rem, 3rem + 6vw, 8.5rem);

	--r-sm: 2px;
	--r-md: 4px;
	--ease: cubic-bezier(0.2, 0.7, 0.1, 1);
	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--header-h: 4.25rem;
}

/* ==========================================================
   Base
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1.5rem); }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--body);
	font-size: var(--step-0);
	font-weight: 400;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
h1, h2 { font-family: var(--display); font-weight: 400; line-height: 0.95; letter-spacing: 0.01em; margin: 0 0 0.5em; }
h3, h4 { font-family: var(--body); font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; margin: 0 0 0.6em; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }
::selection { background: var(--sky); color: var(--navy); }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: 0.6rem 1rem; background: var(--navy); color: var(--white); }
.skip:focus { top: 1rem; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--wide { max-width: calc(var(--wrap-wide) + var(--gutter) * 2); }
.icon { width: 1.1em; height: 1.1em; flex: none; }

.h-display { font-size: var(--step-3); }
.h-section { font-family: var(--display); font-weight: 400; font-size: var(--step-2); margin: var(--space) 0 1.5rem; }
.empty { color: var(--muted); padding: 2rem 0; }

/* ==========================================================
   Page transitions (browsers that support cross-document
   View Transitions; others just navigate normally)
   ========================================================== */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
.site-nav__list .current-menu-item > a,
.site-nav__list .current_page_item > a { view-transition-name: nav-current; }
::view-transition-old(root) { animation: vt-out 0.22s var(--ease) both; }
::view-transition-new(root) { animation: vt-in 0.45s var(--ease-out) both; }
::view-transition-group(nav-current) { animation-duration: 0.45s; animation-timing-function: var(--ease-out); }
@keyframes vt-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(18px); } }

/* ==========================================================
   Buttons & links
   ========================================================== */
.btn {
	position: relative;
	display: inline-flex; align-items: center; gap: 0.6em;
	padding: 0.95em 1.5em;
	font-weight: 500; font-size: 0.9375rem; line-height: 1; letter-spacing: 0.01em; text-decoration: none;
	border: 1px solid transparent; border-radius: var(--r-sm);
	transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.3s var(--ease-out);
}
.btn::after {
	content: ""; width: 0.9em; height: 0.9em; flex: none;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform 0.3s var(--ease-out);
}
.btn:hover::after { transform: translateX(4px); }
.btn--small { padding: 0.75em 1.1em; font-size: 0.875rem; }
.btn--small::after { display: none; }
.btn--solid { background: var(--navy); color: var(--white); }
.btn--solid:hover { background: var(--steel); color: var(--white); }
.btn--line { border-color: var(--line-strong); color: var(--ink); }
.btn--line:hover { border-color: var(--ink); color: var(--ink); }
.btn--light { background: var(--sky); color: var(--navy); }
.btn--light:hover { background: var(--white); color: var(--navy); }

.link {
	display: inline-flex; align-items: center; gap: 0.4em;
	font-weight: 500; color: var(--ink); text-decoration: none;
	background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
	padding-bottom: 2px;
	transition: background-size 0.4s var(--ease-out);
}
.link:hover { background-size: 0 1px; background-position: 100% 100%; }

.round {
	display: inline-grid; place-items: center;
	width: 2.75rem; height: 2.75rem; border-radius: 50%;
	border: 1px solid var(--line-strong); background: transparent; color: var(--ink);
	transition: background-color 0.25s, border-color 0.25s, color 0.25s, transform 0.3s var(--ease-out);
}
.round:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.round:disabled { opacity: 0.35; pointer-events: none; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }

/* ==========================================================
   Header (hides on scroll down, returns on scroll up)
   ========================================================== */
.site-header {
	position: sticky; top: 0; z-index: 50;
	height: var(--header-h);
	border-bottom: 1px solid transparent;
	transition: transform 0.4s var(--ease-out), border-color 0.3s;
}
.site-header::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: color-mix(in srgb, var(--bg) 84%, transparent);
	backdrop-filter: saturate(1.4) blur(14px);
	-webkit-backdrop-filter: saturate(1.4) blur(14px);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 1.5rem; }

.brand { display: inline-flex; align-items: center; gap: 0.65rem; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.9375rem; letter-spacing: 0.01em; }
.brand__mark { width: 2rem; height: 2rem; border-radius: 50%; transition: transform 0.6s var(--ease-out); }
.brand:hover .brand__mark { transform: rotate(-180deg); }

.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav__list { display: flex; gap: 1.6rem; list-style: none; }
.site-nav__list a {
	position: relative; display: block; padding: 0.35rem 0;
	color: var(--ink); text-decoration: none; font-size: 0.9375rem; font-weight: 400;
}
.site-nav__list a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
	transform: scaleX(0); transform-origin: right; transition: transform 0.35s var(--ease-out);
}
.site-nav__list a:hover::after { transform: scaleX(1); transform-origin: left; }
.site-nav__list .current-menu-item > a,
.site-nav__list .current_page_item > a { font-weight: 500; }
.site-nav__list .current-menu-item > a::after,
.site-nav__list .current_page_item > a::after { transform: scaleX(1); height: 2px; background: var(--sky); }

/* Reading progress */
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: var(--sky); transform: scaleX(0); transform-origin: left; }
body:not(.is-case) .progress { display: none; }

.nav-toggle { display: none; align-items: center; gap: 0.6rem; border: 0; background: none; padding: 0.5rem 0; font-size: 0.875rem; font-weight: 500; color: var(--ink); }
.nav-toggle__bars { position: relative; width: 22px; height: 8px; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform 0.35s var(--ease-out), top 0.35s var(--ease-out); }
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 3.5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 3.5px; transform: rotate(-45deg); }

@media (max-width: 860px) {
	.nav-toggle { display: inline-flex; z-index: 2; }
	.site-nav {
		position: fixed; inset: 0; z-index: 1;
		flex-direction: column; align-items: flex-start; justify-content: center; gap: 2.5rem;
		padding: var(--header-h) var(--gutter) 2rem;
		background: var(--navy);
		clip-path: circle(0% at calc(100% - 2.5rem) 2rem);
		visibility: hidden;
		transition: clip-path 0.6s var(--ease-out), visibility 0s 0.6s;
	}
	.site-nav.is-open { clip-path: circle(150% at calc(100% - 2.5rem) 2rem); visibility: visible; transition: clip-path 0.6s var(--ease-out), visibility 0s; }
	.site-nav__list { flex-direction: column; gap: 0.15rem; }
	.site-nav__list a { font-family: var(--display); font-size: clamp(3rem, 14vw, 4.5rem); line-height: 1; color: var(--white); padding: 0.1rem 0; opacity: 0; transform: translateY(16px); transition: opacity 0.4s, transform 0.5s var(--ease-out), color 0.2s; }
	.site-nav__list a::after { display: none; }
	.site-nav.is-open .site-nav__list a { opacity: 1; transform: none; }
	.site-nav.is-open .site-nav__list li:nth-child(2) a { transition-delay: 0.05s; }
	.site-nav.is-open .site-nav__list li:nth-child(3) a { transition-delay: 0.1s; }
	.site-nav.is-open .site-nav__list li:nth-child(4) a { transition-delay: 0.15s; }
	.site-nav.is-open .site-nav__list li:nth-child(5) a { transition-delay: 0.2s; }
	.site-nav__list .current-menu-item > a, .site-nav__list .current_page_item > a { color: var(--sky); font-weight: 400; }
	.site-nav__cta { background: var(--sky); color: var(--navy); }
	body.nav-open { overflow: hidden; }
	body.nav-open .nav-toggle { color: var(--white); }
	body.nav-open .site-header::before { background: transparent; backdrop-filter: none; }
	body.nav-open .brand { color: var(--white); position: relative; z-index: 2; }
}

/* ==========================================================
   Homepage hero + aperture
   ========================================================== */
.hero { padding: clamp(2.5rem, 6vw, 5.5rem) 0 clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.85fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); }
.hero__hi { font-size: var(--step-1); font-weight: 300; color: var(--steel); margin-bottom: 0.5rem; }
.hero__name { font-size: var(--step-5); line-height: 0.88; margin: 0 0 1.75rem; letter-spacing: 0.015em; }
.hero__line { display: block; overflow: hidden; }
.hero__line + .hero__line { color: var(--steel); }
.js .hero__line { clip-path: inset(0 0 100% 0); transform: translateY(30%); transition: clip-path 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.js .hero__line + .hero__line { transition-delay: 0.12s; }
.is-loaded .hero__line { clip-path: inset(0 0 0 0); transform: none; }

.hero__roles { position: relative; font-size: var(--step-1); font-weight: 400; margin: 0 0 1rem; min-height: 1.75em; }
.rotator { position: relative; display: inline-grid; padding-bottom: 0.15em; }
.rotator::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--sky); transform-origin: left; }
.rotator__word { grid-area: 1 / 1; white-space: nowrap; opacity: 0; transform: translateY(0.6em); transition: opacity 0.4s, transform 0.5s var(--ease-out); }
.rotator__word.is-on { opacity: 1; transform: none; }
.rotator__word.is-out { opacity: 0; transform: translateY(-0.6em); }
.hero__lede { color: var(--muted); max-width: 44ch; font-weight: 400; font-size: 1.0625rem; }

.aperture { position: relative; margin: 0; aspect-ratio: 1; width: 100%; max-width: 31rem; justify-self: end; }
.aperture__ring {
	position: absolute; inset: 0; border-radius: 50%;
	background: conic-gradient(from 200deg, var(--sky), var(--steel) 30%, var(--navy) 55%, var(--deep) 70%, var(--steel) 85%, var(--sky));
	-webkit-mask: radial-gradient(circle, transparent 63%, #000 63.5%);
	mask: radial-gradient(circle, transparent 63%, #000 63.5%);
	transform: rotate(-120deg) scale(0.7); opacity: 0;
	transition: transform 1.5s var(--ease-out), opacity 0.6s;
}
.aperture__img {
	position: absolute; inset: 9%; border-radius: 50%; overflow: hidden;
	background: var(--mist);
	clip-path: circle(0% at 50% 50%);
	transition: clip-path 1.2s var(--ease-out) 0.25s;
}
.aperture__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transform: scale(1.15); transition: transform 1.8s var(--ease-out) 0.25s; }
.aperture.is-open .aperture__ring { transform: rotate(0) scale(1); opacity: 1; }
.aperture.is-open .aperture__img { clip-path: circle(50% at 50% 50%); }
.aperture.is-open .aperture__img img { transform: scale(1); }
.aperture[data-tilt] { transition: transform 0.6s var(--ease-out); }
.no-js .aperture__ring { transform: none; opacity: 1; }
.no-js .aperture__img { clip-path: circle(50% at 50% 50%); }

@media (max-width: 860px) {
	.hero__grid { grid-template-columns: 1fr; }
	.aperture { order: -1; max-width: 13rem; justify-self: start; }
}

/* Filmstrip */
.strip { overflow: hidden; padding: 0.4rem 0; background: var(--navy); }
.strip__track { display: flex; width: max-content; animation: strip 100s linear infinite; }
.strip:hover .strip__track { animation-play-state: paused; }
.strip__set { display: flex; gap: 0.4rem; padding-right: 0.4rem; list-style: none; }
.strip__set li { height: clamp(8rem, 14vw, 12rem); }
.strip__set img { height: 100%; width: auto; max-width: none; object-fit: cover; filter: grayscale(0.35); transition: filter 0.4s; }
.strip__set img:hover { filter: none; }
@keyframes strip { to { transform: translateX(-50%); } }

/* Statement */
.statement { padding: var(--space) 0 calc(var(--space) * 0.55); }
.statement__text { font-size: clamp(1.375rem, 1rem + 1.6vw, 2.25rem); font-weight: 300; line-height: 1.4; letter-spacing: -0.01em; max-width: 34ch; margin: 0; }

/* Sections */
.section { padding: calc(var(--space) * 0.55) 0 var(--space); }
.section--tight { padding: 0 0 var(--space); }
.section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2.25rem; }
.section__head .h-display { margin: 0; max-width: 22ch; }

/* ==========================================================
   Project reel (homepage)
   ========================================================== */
.reel { position: relative; }
.reel__track {
	list-style: none; display: grid; grid-auto-flow: column;
	grid-auto-columns: clamp(16rem, 26vw, 23rem);
	gap: clamp(1rem, 2vw, 1.75rem);
	overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
	padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
	scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
	scrollbar-width: none;
	user-select: none; -webkit-user-select: none;
}
.reel__track::-webkit-scrollbar { display: none; }
.reel__track.is-dragging { scroll-snap-type: none; }
.reel__track.is-dragging .reel__card { pointer-events: none; }
.reel__item { scroll-snap-align: start; }
.reel__card { display: block; color: var(--ink); text-decoration: none; -webkit-user-drag: none; }
.reel__img { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); border-radius: var(--r-md); position: relative; }
.reel__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); pointer-events: none; }
.reel__card:hover .reel__img img { transform: scale(1.05); }
.reel__meta { display: flex; flex-direction: column; gap: 0.3rem; margin-top: 1rem; border-top: 1px solid var(--line); padding-top: 0.75rem; }
.reel__title { font-family: var(--display); font-size: var(--step-2); line-height: 1; letter-spacing: 0.01em; }
.reel__role { font-size: var(--step--1); color: var(--steel); font-weight: 500; }
.reel__what { display: block; margin-top: 0.35rem; font-size: 0.875rem; color: var(--muted); font-weight: 400; }
.reel__bar { display: flex; align-items: center; gap: 1.5rem; margin-top: 2rem; padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); }
.reel__progress { flex: 1; height: 1px; background: var(--line); position: relative; }
.reel__progress span { position: absolute; left: 0; top: -0.5px; height: 2px; width: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0.1); transition: transform 0.2s; }
.reel__count { margin: 0; font-family: var(--display); font-size: 1.375rem; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; min-width: 3.5em; text-align: center; }
.reel__btns { display: flex; gap: 0.5rem; }
@media (max-width: 600px) { .reel__btns { display: none; } }

/* ==========================================================
   Project index (about page)
   ========================================================== */
.index { list-style: none; border-top: 1px solid var(--line); }
.index__item { border-bottom: 1px solid var(--line); }
.index__link {
	display: grid; grid-template-columns: 5.5rem minmax(0, 1.2fr) minmax(0, 1.4fr) minmax(0, 0.8fr) auto;
	align-items: center; gap: 1.5rem; padding: 1.4rem 0;
	color: var(--ink); text-decoration: none;
	transition: padding 0.4s var(--ease-out);
}
.index__thumb { display: block; width: 5.5rem; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); border-radius: var(--r-sm); }
.index__thumb img { width: 100%; height: 100%; object-fit: cover; }
.index__title { font-family: var(--display); font-size: var(--step-2); line-height: 1; letter-spacing: 0.01em; transition: color 0.25s; }
.index__what { color: var(--muted); font-size: 0.9375rem; font-weight: 400; }
.index__role { font-size: 0.875rem; font-weight: 500; color: var(--steel); }
.index__go { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid var(--line-strong); transition: background-color 0.3s, color 0.3s, transform 0.4s var(--ease-out); }
.index__link:hover .index__title { color: var(--steel); }
.index__link:hover .index__go, .index__link:focus-visible .index__go { background: var(--navy); color: var(--white); border-color: var(--navy); transform: rotate(-45deg); }
@media (max-width: 860px) {
	.index__link { grid-template-columns: 4.25rem minmax(0, 1fr); grid-template-rows: auto auto; gap: 0.2rem 1rem; padding: 1rem 0; }
	.index__thumb { display: block; grid-row: span 2; width: 4.25rem; aspect-ratio: 1; overflow: hidden; background: var(--mist); border-radius: var(--r-sm); }
	.index__thumb img { width: 100%; height: 100%; object-fit: cover; }
	.index__title { font-size: 1.625rem; align-self: end; }
	.index__what { grid-column: 2; font-size: 0.875rem; align-self: start; line-height: 1.5; }
	.index__role, .index__go { display: none; }
}

/* ==========================================================
   About teaser, experience, photo teaser
   ========================================================== */
.about-teaser { padding: 0 0 var(--space); }
.about-teaser__grid { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.about-teaser__img { border-radius: 50% 50% var(--r-md) var(--r-md); overflow: hidden; aspect-ratio: 4 / 5; max-width: 24rem; }
.about-teaser__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.about-teaser__text p { color: var(--muted); max-width: 50ch; font-weight: 400; font-size: 1.0625rem; }

.experience { background: var(--surface); padding: var(--space) 0; }
.experience__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 6rem); }
.experience__intro { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
.experience__intro p { color: var(--muted); max-width: 44ch; font-weight: 400; }
.timeline { list-style: none; border-left: 1px solid var(--line-strong); }
.timeline__item { position: relative; padding: 0 0 2.75rem 2rem; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before { content: ""; position: absolute; left: -5px; top: 0.6rem; width: 9px; height: 9px; background: var(--surface); border: 1px solid var(--steel); transform: rotate(45deg); }
.timeline__item:first-child::before { background: var(--sky); border-color: var(--sky); }
.timeline__year { font-family: var(--display); font-size: 1.5rem; line-height: 1; color: var(--steel); margin: 0 0 0.4rem; letter-spacing: 0.03em; }
.timeline__role { font-size: 1.25rem; margin: 0; }
.timeline__org { font-weight: 400; color: var(--steel); margin: 0.1rem 0 0.75rem; font-size: 0.9375rem; }
.timeline__item p:last-child { color: var(--muted); margin: 0; max-width: 60ch; font-weight: 400; }

.photo-teaser { background: var(--deep); color: var(--white); padding: var(--space) 0; overflow: hidden; }
.photo-teaser__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.photo-teaser__text p { color: rgba(255, 255, 255, 0.72); max-width: 42ch; margin-bottom: 2rem; font-weight: 400; }
.photo-teaser__mosaic { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(5rem, 9vw, 8rem); gap: 0.4rem; }
.photo-teaser__mosaic img { width: 100%; height: 100%; object-fit: cover; }
.photo-teaser__mosaic img:nth-child(1) { grid-column: 1 / 4; grid-row: span 3; }
.photo-teaser__mosaic img:nth-child(2) { grid-column: 4 / 7; grid-row: span 2; }
.photo-teaser__mosaic img:nth-child(3) { grid-column: 4 / 6; grid-row: span 2; }
.photo-teaser__mosaic img:nth-child(4) { grid-column: 6 / 7; grid-row: span 2; }
.photo-teaser__mosaic img:nth-child(5) { grid-column: 1 / 4; grid-row: span 1; }
@media (max-width: 860px) {
	.about-teaser__grid, .experience__grid, .photo-teaser__grid { grid-template-columns: 1fr; }
	.about-teaser__img { max-width: 15rem; }
	.experience__intro { position: static; }
}

/* ==========================================================
   Page heroes
   ========================================================== */
.page-hero { padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.page-hero__title { font-size: var(--step-4); max-width: 16ch; margin-bottom: 1rem; }
.page-hero__lede { font-size: var(--step-1); font-weight: 300; color: var(--muted); max-width: 44ch; margin: 0; }

/* ==========================================================
   Portfolio: case study rows + more work
   ========================================================== */
.cases { list-style: none; border-top: 1px solid var(--line); }
.case { border-bottom: 1px solid var(--line); }
.case__link {
	display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: clamp(1.5rem, 4vw, 4rem); align-items: center;
	padding-block: clamp(2rem, 4vw, 3.25rem);
	color: var(--ink); text-decoration: none;
}
.case__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface); border-radius: var(--r-md); }
.case__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out); }
.case__link:hover .case__media img, .case__link:focus-visible .case__media img { transform: scale(1.03); }
.case__body { display: flex; flex-direction: column; align-items: flex-start; }
.case__role { font-size: 0.8125rem; font-weight: 500; color: var(--steel); letter-spacing: 0.02em; margin-bottom: 0.5rem; }
.case__title { font-family: var(--display); font-size: var(--step-3); line-height: 0.95; letter-spacing: 0.01em; margin-bottom: 1rem; transition: color 0.25s; }
.case__what { color: var(--muted); font-weight: 400; max-width: 42ch; margin-bottom: 1.5rem; }
.case__result { display: flex; align-items: baseline; gap: 0.6rem; padding: 0.9rem 0; margin-bottom: 1.5rem; border-block: 1px solid var(--line); width: 100%; max-width: 26rem; font-size: 0.9375rem; color: var(--muted); }
.case__result strong { font-family: var(--display); font-weight: 400; font-size: 2.5rem; line-height: 0.9; color: var(--ink); }
.case__cta { display: inline-flex; align-items: center; gap: 0.6em; font-weight: 500; font-size: 0.9375rem; padding-bottom: 2px; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.4s var(--ease-out); }
.case__cta::after { content: "\2192"; transition: transform 0.3s var(--ease-out); }
.case__link:hover .case__cta { background-size: 100% 1px; }
.case__link:hover .case__cta::after { transform: translateX(4px); }
.case__link:hover .case__title { color: var(--steel); }
@media (max-width: 760px) { .case__link { grid-template-columns: 1fr; gap: 1.25rem; } }

.more { padding-top: 0; }
.more__grid { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); margin-top: 2rem; }
.more__card { display: block; color: var(--ink); text-decoration: none; }
.more__media { display: grid; gap: 4px; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r-md); background: var(--surface); }
.more__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out); }
.more__media--photography { grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; }
.more__media--photography img:first-child { grid-row: span 2; }
.more__media--logos { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.more__card:hover .more__media img { transform: scale(1.04); }
.more__body { display: block; padding-top: 1rem; margin-top: 1rem; border-top: 1px solid var(--line); }
.more__title { display: block; font-family: var(--display); font-size: var(--step-2); line-height: 1; transition: color 0.25s; }
.more__what { display: block; margin-top: 0.3rem; color: var(--muted); font-weight: 400; font-size: 0.9375rem; }
.more__card:hover .more__title { color: var(--steel); }
@media (max-width: 700px) { .more__grid { grid-template-columns: 1fr; } }

/* ==========================================================
   Dark pages: photography + logos
   ========================================================== */
body.is-dark { --bg: var(--deep); --ink: var(--white); --muted: rgba(255, 255, 255, 0.66); --line: rgba(255, 255, 255, 0.12); --line-strong: rgba(255, 255, 255, 0.3); --link: var(--sky); --surface: rgba(255, 255, 255, 0.06); }
body.is-dark .btn--solid { background: var(--sky); color: var(--navy); }
body.is-dark .round:hover { background: var(--sky); border-color: var(--sky); color: var(--navy); }

.gallery-wrap { padding: 0 0 var(--space); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 1.75rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip {
	display: inline-flex; align-items: baseline; gap: 0.45em;
	padding: 0.55em 1em; border-radius: var(--r-sm);
	border: 1px solid var(--line-strong); background: transparent; color: var(--ink);
	font-weight: 400; font-size: 0.875rem;
	transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.chip span { opacity: 0.55; font-size: 0.8em; font-variant-numeric: tabular-nums; }
.chip:hover { border-color: var(--sky); }
.chip[aria-pressed="true"] { background: var(--sky); border-color: var(--sky); color: var(--navy); font-weight: 500; }
.toolbar__tools { display: flex; align-items: center; gap: 0.75rem; }
.tool { display: inline-flex; align-items: center; gap: 0.5em; padding: 0.55em 0.9em; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: transparent; color: var(--ink); font-size: 0.875rem; transition: border-color 0.2s, background-color 0.2s, color 0.2s; }
.tool:hover { border-color: var(--sky); }
.tool .icon { transition: transform 0.5s var(--ease-out); }
.tool.is-spinning .icon { transform: rotate(360deg); }
.density { display: flex; }
.tool--icon { padding: 0.55em 0.6em; border-radius: 0; margin-left: -1px; }
.density .tool--icon:first-child { border-radius: var(--r-sm) 0 0 var(--r-sm); margin-left: 0; }
.density .tool--icon:last-child { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.tool--icon[aria-pressed="true"] { background: var(--sky); border-color: var(--sky); color: var(--navy); position: relative; z-index: 1; }
.gallery__status { margin: 0 0 1rem; font-size: 0.875rem; color: var(--muted); min-height: 1.5em; }

.masonry { list-style: none; columns: 3; column-gap: 0.6rem; transition: opacity 0.3s; }
.masonry[data-cols="2"] { columns: 2; }
.masonry[data-cols="4"] { columns: 4; }
.masonry__item { break-inside: avoid; margin-bottom: 0.6rem; }
.masonry__item[hidden] { display: none; }
.masonry__item img { width: 100%; background: rgba(255, 255, 255, 0.04); }
.masonry.is-changing { opacity: 0; }
.masonry__item.is-new { animation: pop 0.6s var(--ease-out) both; }
@keyframes pop { from { opacity: 0; transform: translateY(14px); } }
@media (max-width: 900px) { .masonry[data-cols="4"], .masonry { columns: 2; } .masonry[data-cols="2"] { columns: 1; } }
@media (max-width: 600px) {
	.masonry, .masonry[data-cols="3"], .masonry[data-cols="4"] { columns: 2; column-gap: 0.4rem; }
	.masonry__item { margin-bottom: 0.4rem; }
	.density .tool--icon:first-child { display: none; }
	.density .tool--icon:nth-child(2) { border-radius: var(--r-sm) 0 0 var(--r-sm); margin-left: 0; }
	.toolbar { gap: 0.75rem; }
	.filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); width: calc(100% + var(--gutter) * 2); }
	.filters::-webkit-scrollbar { display: none; }
	.chip { flex: none; }
}

.logo-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(15rem, 45%), 1fr)); gap: 0.6rem; }
.logo-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(24rem, 100%), 1fr)); gap: 1rem; }

.zoom { display: block; position: relative; overflow: hidden; border-radius: var(--r-sm); }
.zoom img { transition: transform 0.8s var(--ease-out); }
.zoom:hover img { transform: scale(1.03); }

/* ==========================================================
   About + contact
   ========================================================== */
.about-hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem); }
.about-hero__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about-hero__lede { font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); font-weight: 300; line-height: 1.45; max-width: 32ch; margin: 0; }
.aperture--small { max-width: 20rem; }
.story { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.story__sign { font-family: var(--display); font-size: var(--step-2); color: var(--ink) !important; line-height: 1; margin-top: 2rem; }
.story__facts { position: sticky; top: calc(var(--header-h) + 2rem); }
.story__facts dl { margin: 0; border-top: 1px solid var(--line); }
.story__facts dl > div { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.story__facts dt { font-weight: 500; font-size: 0.8125rem; color: var(--steel); letter-spacing: 0.02em; }
.story__facts dd { margin: 0.15rem 0 0; font-weight: 400; }
@media (max-width: 860px) {
	.about-hero__grid, .story { grid-template-columns: 1fr; }
	.about-hero .aperture { order: -1; max-width: 11rem; justify-self: start; }
	.story__facts { position: static; }
}
.contact-big { list-style: none; margin-top: 3rem; border-top: 1px solid var(--line); max-width: 48rem; }
.contact-big li { border-bottom: 1px solid var(--line); }
.contact-big a { display: flex; align-items: center; gap: 1rem; padding: 1.25rem 0; color: var(--ink); text-decoration: none; font-family: var(--display); font-size: var(--step-3); line-height: 1; transition: padding 0.4s var(--ease-out), color 0.2s; }
.contact-big a span { flex: 1; }
.contact-big a .icon { width: 1.5rem; height: 1.5rem; }
.contact-big a:hover { padding-left: 0.75rem; color: var(--steel); }

/* ==========================================================
   Prose
   ========================================================== */
.prose { max-width: 40rem; }
.prose--editor { max-width: 44rem; }
.prose p, .prose li { color: var(--muted); font-weight: 400; }
.prose h3 { font-size: 1.125rem; margin-top: 2rem; color: var(--ink); }
.prose ul { list-style: none; margin: 0 0 1.25rem; }
.prose ul li { position: relative; padding-left: 1.4rem; margin-bottom: 0.5rem; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 0.6rem; height: 1px; background: var(--steel); }
.prose--editor img { border-radius: var(--r-md); }
.prose--editor h2 { font-size: var(--step-3); margin-top: 3rem; }
.prose--editor .alignwide { margin-inline: calc(50% - min(46rem, 45vw)); max-width: none; }
.prose--editor .alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; }
.callout { border-left: 2px solid var(--sky); padding: 0.15rem 0 0.15rem 1.1rem; color: var(--ink) !important; font-weight: 400 !important; }
.callout strong { display: block; font-weight: 500; color: var(--steel); font-size: 0.8125rem; letter-spacing: 0.02em; margin-bottom: 0.1rem; }

/* ==========================================================
   Case studies
   ========================================================== */
.cs-hero { padding: clamp(3rem, 7vw, 6rem) 0 0; }
.cs-hero__role { font-weight: 500; font-size: 0.875rem; color: var(--steel); margin-bottom: 0.75rem; letter-spacing: 0.02em; }
.cs-hero__title { font-size: var(--step-5); line-height: 0.88; margin-bottom: 2rem; max-width: 14ch; }
.cs-hero__row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 2rem clamp(2rem, 6vw, 6rem); align-items: start; }
.cs-hero__lede { font-size: var(--step-1); line-height: 1.6; font-weight: 300; margin: 0; max-width: 46ch; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.tags li { padding: 0.35em 0.8em; border: 1px solid var(--line-strong); border-radius: var(--r-sm); font-size: 0.8125rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1.5rem; margin: 3rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.stats > div { display: flex; flex-direction: column-reverse; }
.stats dd { margin: 0; font-family: var(--display); font-size: var(--step-4); line-height: 0.9; color: var(--steel); font-variant-numeric: tabular-nums; }
.stats dt { color: var(--muted); margin-top: 0.4rem; font-size: 0.875rem; font-weight: 400; }
.cs-hero__media { margin-top: clamp(2.5rem, 5vw, 4rem); }
.fig--hero img, .fig--hero video { width: 100%; border-radius: var(--r-md); }
.fig--crop img { aspect-ratio: 16 / 8; object-fit: cover; object-position: 50% 25%; }
@media (max-width: 860px) { .cs-hero__row { grid-template-columns: 1fr; } }

.cs-section { padding: var(--space) 0 0; }
.cs-section__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 1.5rem clamp(2rem, 6vw, 6rem); margin-bottom: clamp(2rem, 4vw, 3rem); }
.cs-section__head h2 { font-size: var(--step-3); margin: 0; }
.cs-section__body { padding-top: 0.4rem; }
.chapter { display: flex; align-items: center; gap: 0.75rem; font-weight: 500; font-size: 0.875rem; color: var(--steel); margin-bottom: 0.9rem; }
.chapter__n { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border: 1px solid var(--steel); border-radius: 50%; font-family: var(--display); font-size: 1.125rem; line-height: 1; padding-top: 2px; }
@media (max-width: 860px) { .cs-section__grid { grid-template-columns: 1fr; } }

.cs-sub { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 1rem clamp(2rem, 6vw, 6rem); margin: clamp(3rem, 6vw, 5rem) auto 2rem; }
.cs-sub__title { font-size: 1.25rem; margin: 0; }
.cs-sub__title--lg { font-family: var(--display); font-weight: 400; font-size: var(--step-3); line-height: 0.95; letter-spacing: 0.01em; margin-bottom: 1.5rem; }
.cs-sub--media { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); align-items: center; }
.cs-sub--flip { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.fig--phone { max-width: 19rem; justify-self: center; }
.fig--tall video { max-height: 80vh; margin-inline: auto; }
@media (max-width: 860px) { .cs-sub, .cs-sub--media, .cs-sub--flip { grid-template-columns: 1fr; } }

.fig { margin: 0; }
.fig img { width: 100%; border-radius: var(--r-sm); }
.fig video { width: 100%; border-radius: var(--r-sm); background: var(--deep); }
.fig figcaption { margin-top: 0.6rem; font-size: var(--step--1); color: var(--muted); max-width: 52ch; font-weight: 400; }

.grid-2, .grid-3, .grid-4, .grid-5 { display: grid; gap: clamp(0.6rem, 1.4vw, 1.1rem); align-items: start; margin-bottom: clamp(0.6rem, 1.4vw, 1.1rem); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-2--wide-left { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.grid-2--wide-right { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid--narrow { max-width: 56rem; }
.grid--videos video { aspect-ratio: 9 / 16; object-fit: cover; }
@media (max-width: 860px) {
	.grid-3, .grid-4, .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.grid-2--wide-left, .grid-2--wide-right { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	.grid-2, .grid-3 { grid-template-columns: 1fr; }
	.grid--videos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.grid--videos .fig:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* Carousel */
.carousel__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.carousel__hint { font-weight: 500; color: var(--muted); font-size: 0.875rem; }
.carousel__btns { display: flex; gap: 0.5rem; }
.carousel__track {
	list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 26rem);
	gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
	padding-bottom: 1rem; scrollbar-width: thin; scrollbar-color: var(--steel) transparent; overscroll-behavior-x: contain;
}
.carousel__track > li { scroll-snap-align: start; }
.carousel__track .fig img { border: 1px solid var(--line); }

/* Site cards + docs */
.site-card { display: block; color: var(--ink); text-decoration: none; }
.site-card img { width: 100%; border-radius: var(--r-md); background: var(--surface); }
.site-card span { display: inline-flex; align-items: center; gap: 0.4em; margin-top: 0.75rem; font-weight: 500; font-size: 0.9375rem; border-bottom: 1px solid currentColor; }
.docs { display: flex; flex-wrap: wrap; gap: clamp(1rem, 3vw, 2.5rem); }
.doc { display: block; width: min(100%, 16rem); color: var(--ink); text-decoration: none; }
.doc__cover { display: block; overflow: hidden; border-radius: var(--r-sm); box-shadow: 0 1px 0 var(--line), 0 24px 40px -24px rgba(10, 24, 48, 0.45); transition: transform 0.5s var(--ease-out); }
.doc:hover .doc__cover { transform: translateY(-6px) rotate(-1.5deg); }
.doc__title { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1rem; font-weight: 500; font-size: 0.9375rem; }
.doc__type { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.75rem; font-weight: 500; color: var(--steel); }
.docs--single { justify-content: center; }

/* Next project */
.next { margin-top: var(--space); border-top: 1px solid var(--line); }
.next__link { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto auto; column-gap: 2rem; padding-block: clamp(2.5rem, 6vw, 4.5rem); color: var(--ink); text-decoration: none; }
.next__label { font-weight: 500; font-size: 0.875rem; color: var(--steel); }
.next__title { font-family: var(--display); font-size: var(--step-4); line-height: 0.92; margin: 0.4rem 0; transition: color 0.25s, letter-spacing 0.5s var(--ease-out); }
.next__what { color: var(--muted); font-weight: 400; }
.next__thumb { grid-column: 2; grid-row: 1 / 4; width: clamp(7rem, 15vw, 12rem); aspect-ratio: 1; border-radius: 50%; overflow: hidden; align-self: center; transition: transform 0.7s var(--ease-out); }
.next__thumb img { width: 100%; height: 100%; object-fit: cover; }
.next__link:hover .next__title { color: var(--steel); letter-spacing: 0.04em; }
.next__link:hover .next__thumb { transform: rotate(-12deg) scale(1.05); }

.post-list { list-style: none; border-top: 1px solid var(--line); }
.post-list li { border-bottom: 1px solid var(--line); }
.post-list a { display: flex; justify-content: space-between; gap: 1rem; padding: 1.25rem 0; color: var(--ink); text-decoration: none; }
.post-list__title { font-weight: 500; font-size: var(--step-1); }
.post-list__date { color: var(--muted); }

/* ==========================================================
   Footer
   ========================================================== */
.site-footer { background: var(--navy); color: var(--white); padding: var(--space) 0 2rem; }
body.is-dark .site-footer { background: #071225; border-top: 1px solid var(--line); }
.site-footer__cta { display: grid; gap: 2.25rem; padding-bottom: var(--space); }
.site-footer__line { font-family: var(--display); font-size: var(--step-4); line-height: 0.92; max-width: 14ch; margin: 0; }
.contact-links { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.contact-links a { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.85rem 1.3rem; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: var(--r-sm); color: var(--white); text-decoration: none; font-weight: 400; font-size: 0.9375rem; transition: background-color 0.25s, color 0.25s, border-color 0.25s; }
.contact-links a:hover { background: var(--sky); border-color: var(--sky); color: var(--navy); }
.site-footer__base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 0.875rem; }
.site-footer__brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--white); text-decoration: none; font-weight: 500; }
.site-footer__brand .brand__mark { width: 1.75rem; height: 1.75rem; border-radius: 50%; }
.site-footer__nav { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.site-footer__nav a { color: rgba(255, 255, 255, 0.75); text-decoration: none; }
.site-footer__nav a:hover { color: var(--white); }
.site-footer__copy { margin: 0; color: rgba(255, 255, 255, 0.55); }

/* ==========================================================
   Back to top
   ========================================================== */
.to-top {
	position: fixed; right: clamp(0.75rem, 2vw, 1.5rem); bottom: clamp(0.75rem, 2vw, 1.5rem); z-index: 45;
	display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%;
	border: 0; background: var(--white); color: var(--navy);
	box-shadow: 0 10px 30px -12px rgba(10, 24, 48, 0.5);
	opacity: 0; transform: translateY(1rem) scale(0.9); pointer-events: none;
	transition: opacity 0.3s, transform 0.4s var(--ease-out);
}
.to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover .icon { transform: translateY(-2px); }
.to-top .icon { transition: transform 0.3s var(--ease-out); position: relative; z-index: 1; }
.to-top__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top__ring circle { fill: none; stroke: var(--sky); stroke-width: 2; stroke-dasharray: 100; stroke-dashoffset: 100; }

/* ==========================================================
   Case study chapter rail (desktop) + jump menu (mobile)
   ========================================================== */
.rail { position: fixed; right: 1.25rem; top: 50%; transform: translateY(-50%); z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: 0.15rem; }
.rail[hidden] { display: none; }
.rail a { position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 0.75rem; height: 1.25rem; color: var(--ink); text-decoration: none; }
.rail__label {
	font-size: 0.75rem; font-weight: 500; white-space: nowrap; padding: 0.25em 0.6em;
	background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm);
	opacity: 0; transform: translateX(8px); transition: opacity 0.25s, transform 0.35s var(--ease-out);
	pointer-events: none;
}
.rail__tick { width: 0.875rem; height: 1px; background: var(--line-strong); transition: width 0.35s var(--ease-out), background-color 0.25s, height 0.25s; }
.rail a:hover .rail__label, .rail a:focus-visible .rail__label { opacity: 1; transform: none; }
.rail a:hover .rail__tick { width: 1.5rem; background: var(--ink); }
.rail a.is-active .rail__tick { width: 2rem; height: 2px; background: var(--sky); }
.rail:hover a.is-active .rail__label { opacity: 1; transform: none; }
@media (max-width: 1279px) { .rail { display: none !important; } }

.jump { position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%); z-index: 44; width: max-content; max-width: calc(100vw - 6rem); }
.jump[hidden] { display: none; }
.jump__btn { display: inline-flex; align-items: center; gap: 0.5rem; max-width: 100%; padding: 0.75rem 1.1rem; border: 0; border-radius: 999px; background: var(--navy); color: var(--white); font-size: 0.8125rem; font-weight: 500; box-shadow: 0 12px 30px -12px rgba(10, 24, 48, 0.6); }
.jump__btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jump__sheet { position: absolute; bottom: calc(100% + 0.6rem); left: 50%; transform: translateX(-50%); width: min(22rem, calc(100vw - 2rem)); max-height: 60vh; overflow: auto; padding: 0.5rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: 0 24px 50px -20px rgba(10, 24, 48, 0.5); }
.jump__sheet a { display: block; padding: 0.7rem 0.8rem; color: var(--navy); text-decoration: none; font-size: 0.9375rem; line-height: 1.35; border-radius: var(--r-sm); }
.jump__sheet a:hover, .jump__sheet a.is-active { background: var(--mist); }
.jump__sheet a.is-active { font-weight: 500; }
@media (min-width: 1280px) { .jump { display: none !important; } }

/* ==========================================================
   Lightbox
   ========================================================== */
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: rgba(6, 14, 28, 0.95); padding: 4.5rem 1rem 3.5rem; opacity: 0; transition: opacity 0.3s; }
.lightbox.is-open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lightbox__stage { margin: 0; display: grid; justify-items: center; gap: 0.85rem; max-height: 100%; }
.lightbox__img { max-width: min(92vw, 110rem); max-height: calc(100vh - 9rem); width: auto; height: auto; object-fit: contain; transition: opacity 0.25s, transform 0.4s var(--ease-out); }
.lightbox__img.is-swapping { opacity: 0; transform: scale(0.98); }
.lightbox__caption { margin: 0; color: rgba(255, 255, 255, 0.75); font-size: 0.875rem; text-align: center; font-weight: 400; }
.lightbox__btn { position: absolute; background: rgba(255, 255, 255, 0.08); border-color: transparent; color: var(--white); }
.lightbox__btn:hover { background: var(--white); color: var(--navy); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; top: 1.4rem; left: 1.25rem; margin: 0; color: rgba(255, 255, 255, 0.7); font-family: var(--display); font-size: 1.25rem; letter-spacing: 0.06em; }
.lightbox.is-single .lightbox__prev, .lightbox.is-single .lightbox__next, .lightbox.is-single .lightbox__count { display: none; }
@media (max-width: 640px) { .lightbox__prev, .lightbox__next { top: auto; bottom: 0.75rem; transform: none; } }

/* ==========================================================
   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; }
	@view-transition { navigation: none; }
	.strip__track { animation: none; }
	.strip { overflow-x: auto; }
	.js .hero__line { clip-path: none; transform: none; }
}

/* Block editor alignment basics */
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { margin-inline: auto; }

/* Timeline: role details as a list */
.timeline__meta { font-size: 0.8125rem; color: var(--muted); margin: -0.5rem 0 0.9rem !important; }
.timeline__list { list-style: none; max-width: 62ch; }
.timeline__list li { position: relative; padding-left: 1.25rem; margin-bottom: 0.55rem; color: var(--muted); font-size: 0.9375rem; line-height: 1.65; }
.timeline__list li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 0.55rem; height: 1px; background: var(--steel); }

/* ==========================================================
   Proof bar (homepage, under the hero)
   ========================================================== */
.hero { padding-bottom: clamp(2rem, 4vw, 3.5rem); }
.proof__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line); }
.proof__stats > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: 1.5rem 1.5rem 1.5rem 0; border-right: 1px solid var(--line); }
.proof__stats > div + div { padding-left: 1.5rem; }
.proof__stats > div:last-child { border-right: 0; padding-right: 0; }
.proof__stats dd { margin: 0; font-family: var(--display); font-size: clamp(2.5rem, 1.8rem + 2vw, 3.5rem); line-height: 0.9; color: var(--ink); font-variant-numeric: tabular-nums; }
.proof__stats dt { margin-top: 0.5rem; font-size: 0.8125rem; color: var(--muted); line-height: 1.45; max-width: 20ch; }
.proof__brands { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; padding: 1.1rem 0 1.5rem; border-top: 1px solid var(--line); }
.proof__label { margin: 0; font-size: 0.8125rem; font-weight: 500; color: var(--muted); }
.proof__brands ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.proof__brands a { display: block; border-radius: var(--r-md); overflow: hidden; outline: 1px solid var(--line); outline-offset: -1px; }
.proof__brands img { width: 3rem; height: 3rem; object-fit: cover; filter: grayscale(1); opacity: 0.85; transition: filter 0.3s, opacity 0.3s; }
.proof__brands a:hover img, .proof__brands a:focus-visible img { filter: none; opacity: 1; }
@media (max-width: 760px) {
	.proof__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.proof__stats > div { padding: 1.25rem 1rem 1.25rem 0; }
	.proof__stats > div:nth-child(2n) { border-right: 0; padding-left: 1rem; }
	.proof__stats > div:nth-child(3) { padding-left: 0; }
	.proof__stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ==========================================================
   Case study pager (desktop): fixed bottom-left
   ========================================================== */
.pager { display: none; }
@media (min-width: 1100px) {
	.pager {
		position: fixed; left: clamp(0.75rem, 2vw, 1.5rem); bottom: clamp(0.75rem, 2vw, 1.5rem); z-index: 45;
		display: flex; gap: 0.4rem;
		opacity: 0; transform: translateY(0.75rem); pointer-events: none;
		transition: opacity 0.3s, transform 0.4s var(--ease-out);
	}
	.pager.is-on { opacity: 1; transform: none; pointer-events: auto; }
	.pager__btn {
		display: inline-flex; align-items: center; gap: 0.5rem; height: 3rem; padding: 0 0.95rem;
		border-radius: 999px; background: var(--white); color: var(--navy); text-decoration: none;
		box-shadow: 0 10px 30px -12px rgba(10, 24, 48, 0.45), 0 0 0 1px var(--line);
		font-size: 0.8125rem; font-weight: 500;
		transition: background-color 0.25s, color 0.25s;
	}
	.pager__btn:hover, .pager__btn:focus-visible { background: var(--navy); color: var(--white); }
	.pager__label { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width 0.45s var(--ease-out); }
	.pager__btn:hover .pager__label, .pager__btn:focus-visible .pager__label { max-width: 16rem; }
}
