/* ==========================================================================
   Imteaz Portfolio 2.0 — main stylesheet
   Tokens first. Light is the default; [data-theme="dark"] switches everything.
   ========================================================================== */

@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-latin-wght-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }

:root {
	--accent: #A8672F;
	--bg: #FFFFFF;
	--surface: #F3F0EB;
	--foot: #F5F2ED;
	--strip: #ECE8E2;
	--text: #1A1714;
	--muted: #655E56;
	--rule: #E6E1DA;
	--overlay: rgba(20, 16, 12, 0.58);
	--accent-ui: var(--accent);
	--shadow: 0 16px 40px rgba(20, 16, 12, 0.12);

	--font: "Montserrat", "Helvetica Neue", Arial, sans-serif;
	--fs-body: 1rem;
	--fs-small: 0.9375rem;
	--fs-label: 0.8125rem;
	--caps: 0.14em;

	--sidebar: 248px;
	--pad: clamp(1.25rem, 3.2vw, 3.5rem);
	--gap: clamp(0.625rem, 1.2vw, 1.25rem);
	--max-read: 46rem;
	--ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	color-scheme: light;
}
:root[data-theme="dark"] {
	--bg: #141210;
	--surface: #1E1A17;
	--foot: #1B1714;
	--strip: #221D19;
	--text: #F1ECE3;
	--muted: #A89E91;
	--rule: #2E2823;
	--overlay: rgba(10, 8, 6, 0.62);
	--accent-ui: color-mix(in srgb, var(--accent) 70%, #ffffff);
	--shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
	color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1rem; }
body {
	margin: 0; background: var(--bg); color: var(--text);
	font-family: var(--font); font-size: var(--fs-body); line-height: 1.65; font-weight: 400;
	-webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
	transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-ui); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 700; }
ul, ol { margin: 0; padding: 0; }
figure { margin: 0; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-ui); outline-offset: 3px; }
.muted { color: var(--muted); }
.icon { flex: 0 0 auto; }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; word-wrap: normal !important; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 1000; background: var(--text); color: var(--bg); padding: 0.75rem 1rem; font-weight: 600; }
.skip-link:focus { top: 1rem; }
.site-main:focus { outline: none; }
.show-dark { display: none; }
[data-theme="dark"] .show-dark { display: inline-flex; }
[data-theme="dark"] .show-light { display: none; }

/* ---------- Shared UI ---------- */
.eyebrow { margin: 0 0 0.75rem; font-size: var(--fs-label); font-weight: 600; letter-spacing: var(--caps); text-transform: uppercase; color: var(--accent-ui); }
.eyebrow a:hover { text-decoration: underline; }
.section-title { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem); margin: 0 0 1.25rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.625rem; }
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 2.875rem;
	padding: 0.7rem 1.35rem; border: 1px solid var(--text); background: transparent; color: var(--text); cursor: pointer;
	font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.2;
	transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:hover { background: var(--text); color: var(--bg); }
.btn--solid { background: var(--text); color: var(--bg); }
.btn--solid:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 0; background: none; color: var(--text); cursor: pointer; }
.icon-btn:hover { color: var(--accent-ui); }
.text-link { font-weight: 600; color: var(--accent-ui); }
.text-link:hover { text-decoration: underline; }
.empty-state { color: var(--muted); font-size: 1.0625rem; padding: 3rem 0; margin: 0; }

/* ---------- Layout: sidebar + page ---------- */
.site-shell { margin-left: var(--sidebar); min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1 0 auto; }
.content { padding: clamp(2rem, 4vw, 2.75rem) var(--pad) clamp(3rem, 6vw, 5rem); }

.sidebar {
	position: fixed; inset: 0 auto 0 0; z-index: 50; width: var(--sidebar);
	display: flex; flex-direction: column; gap: 2rem;
	padding: 2.5rem 2.25rem calc(2rem + env(safe-area-inset-bottom, 0px));
	background: var(--bg); border-right: 1px solid var(--rule); overflow-y: auto;
	transition: background-color 0.3s var(--ease), transform 0.35s var(--ease), visibility 0s linear 0s;
}
.wordmark { font-size: 1rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; line-height: 1.3; }
.wordmark:hover { color: var(--text); }
.sidebar__tagline { margin: 0.5rem 0 0; font-size: var(--fs-label); color: var(--muted); line-height: 1.55; }
.sidebar__nav { margin-top: clamp(3rem, 16vh, 9rem); }
.nav__list { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.nav__list a {
	display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0;
	font-size: var(--fs-label); font-weight: 500; letter-spacing: var(--caps); text-transform: uppercase;
}
.nav__list .current-menu-item > a, .nav__list .current_page_item > a { color: var(--accent-ui); font-weight: 600; }
.nav__list .current-menu-item > a::after { content: "›"; font-size: 1rem; line-height: 1; }
.mode-switch { display: inline-flex; width: fit-content; padding: 3px; border: 1px solid var(--rule); border-radius: 999px; }
.mode-switch button {
	border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer;
	padding: 0.45rem 0.9rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
}
.mode-switch button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.sidebar__socials { margin-top: auto; }
.socials { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.socials a { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.875rem; font-weight: 500; }
.topbar { display: none; }
.sidebar-scrim { display: none; }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.375rem; margin: 0 0 clamp(1.5rem, 3vw, 2rem); }
.filters__btn {
	background: transparent; border: 1px solid transparent; color: var(--muted); cursor: pointer;
	padding: 0.55rem 0.9rem; min-height: 2.5rem; font-size: var(--fs-label); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
	transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.filters__btn:hover { color: var(--text); }
.filters__btn[aria-pressed="true"] { color: var(--text); border-color: var(--accent-ui); }

/* ---------- Wall (masonry) ---------- */
.wall__grid { column-count: var(--cols-d, 4); column-gap: var(--gap); }
.wall__grid .tile { break-inside: avoid; margin-bottom: var(--gap); }
.wall__grid.is-masonry { display: flex; align-items: flex-start; gap: var(--gap); column-count: auto; }
.wall__col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: var(--gap); }
.wall__grid.is-masonry .tile { margin: 0; }
.tile[hidden] { display: none; }
.tile__open { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--surface); cursor: zoom-in; overflow: hidden; }
.tile--video .tile__open { cursor: pointer; }
.tile__open img { width: 100%; height: auto; transition: transform 1s var(--ease); }
.tile__play {
	position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -50%);
	width: clamp(2.75rem, 2.3rem + 0.8vw, 3.25rem); height: clamp(2.75rem, 2.3rem + 0.8vw, 3.25rem); border-radius: 50%;
	display: grid; place-items: center; color: var(--play-fg, #fff); pointer-events: none;
	border: 1.5px solid var(--play-bg, #14100C); background: var(--play-bg, #14100C);
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
	transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), opacity 0.4s var(--ease);
}
.tile__open:hover .tile__play, .tile__open:focus-visible .tile__play {
	background: rgba(20, 16, 12, 0.08); border-color: #fff; color: #fff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35), inset 0 0 6px rgba(0, 0, 0, 0.15);
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}
.js .tile__play { opacity: 0; }
.js .tile.is-loaded .tile__play { opacity: 1; }
.tile__play .icon { margin-left: 2px; }
.tile__overlay {
	position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 0.35rem;
	padding: 1rem; background: var(--overlay); color: #fff; text-align: left; opacity: 0; transition: opacity 0.35s var(--ease);
}
.tile__cat { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.85; }
.tile__title { font-size: clamp(1rem, 0.9rem + 0.35vw, 1.25rem); font-weight: 700; line-height: 1.2; }
.tile__bar { width: 1.75rem; height: 2px; background: var(--accent-ui); margin-top: 0.2rem; transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease) 0.05s; }
.tile__open:hover .tile__overlay, .tile__open:focus-visible .tile__overlay { opacity: 1; }
.tile__open:hover .tile__bar, .tile__open:focus-visible .tile__bar { transform: none; }
.tile__open:hover img { transform: scale(1.03); }
@media (hover: none) { .tile__overlay { display: none; } }
.wall .tile[data-mix] .tile__open { aspect-ratio: 1 / var(--r, 1); }
.wall .tile[data-mix] .tile__open img { height: 100%; object-fit: cover; object-position: center; }
.wall[data-layout="mixed"] .tile[data-mix] .tile__open img { object-position: center 42%; }
/* Intro line */
.intro { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2.5rem; margin: 0 0 clamp(1.5rem, 3vw, 2.25rem); padding-bottom: clamp(1.25rem, 2.5vw, 1.75rem); border-bottom: 1px solid var(--rule); }
.intro__text { max-width: 46rem; }
.intro__title { font-family: var(--font-head, var(--font)); font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem); font-weight: var(--head-weight, 700); letter-spacing: -0.02em; line-height: 1.12; }
.intro__sub { margin: 0.6rem 0 0; font-size: clamp(0.9375rem, 0.88rem + 0.25vw, 1.0625rem); color: var(--muted); line-height: 1.6; }
.intro__actions { flex: 0 0 auto; }
.intro { position: relative; isolation: isolate; }
.intro--image { align-items: center; }
.intro__image { flex: 0 0 auto; width: clamp(4.5rem, 3rem + 5vw, 8.5rem); aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); }
.intro__image img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, center); }
.intro--image .intro__text { flex: 1 1 18rem; }
.intro--bg { padding: clamp(1.75rem, 4vw, 3.25rem) clamp(1.25rem, 3vw, 2.5rem); border-bottom: 0; color: #fff; overflow: hidden; }
.intro__bg { position: absolute; inset: 0; z-index: -1; background: #1a1714; }
.intro__bg img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos-d, center); }
@media (max-width: 1099px) { .intro__bg img { object-position: var(--pos-t, center); } }
@media (max-width: 699px) { .intro__bg img { object-position: var(--pos-m, center); } }
.intro__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15, 12, 10, 0.78) 0%, rgba(15, 12, 10, 0.5) 60%, rgba(15, 12, 10, 0.35) 100%); }
.intro--bg .intro__sub { color: rgba(255, 255, 255, 0.85); }
.intro--bg .btn { border-color: #fff; color: #fff; }
.intro--bg .btn:hover { background: #fff; color: #1a1714; }
.intro--bg .btn--solid { background: #fff; color: #1a1714; }
.intro--bg .btn--solid:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.intro--bg .intro__image { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); }
@media (max-width: 699px) { .intro { align-items: flex-start; } .intro__actions .btn { flex: 1 1 auto; } .intro--image { align-items: flex-start; } .intro__image { width: 4.5rem; } }

/* Banner tone, trailer and bottom fade */
.intro__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos-d, center); opacity: 0; transition: opacity 0.8s var(--ease); }
.intro__video.is-playing { opacity: 1; }
@media (max-width: 1099px) { .intro__video { object-position: var(--pos-t, center); } }
@media (max-width: 699px) { .intro__video { object-position: var(--pos-m, center); } }
.intro--tone-warm .intro__bg img, .intro--tone-warm .intro__video { filter: grayscale(1) sepia(0.32) contrast(0.9) brightness(1.06); }
.intro--tone-cool .intro__bg img, .intro--tone-cool .intro__video { filter: grayscale(1) contrast(1.06) brightness(0.98); }
.intro--tone-cool .intro__bg { background: #1c2126; }
.intro--fade { padding-bottom: clamp(4.5rem, 7vw, 6.5rem); margin-bottom: clamp(-3.25rem, -4vw, -2.5rem); }
.intro--fade::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 48%; z-index: -1; pointer-events: none; background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, var(--bg) 92%); }
[data-theme="dark"] .intro--fade::after { background: linear-gradient(to bottom, rgba(20, 18, 16, 0) 0%, var(--bg) 92%); }
.intro--fade ~ .wall .wall__top, .intro--fade ~ .brands { position: relative; z-index: 1; }
.intro__reel .icon { margin-left: -2px; }

/* Brands strip — always monochrome, visible in light and dark */
.brands { margin: clamp(2.5rem, 5vw, 4rem) 0 0; padding-top: clamp(1.5rem, 3vw, 2rem); border-top: 1px solid var(--rule); text-align: center; }
.intro + .brands, .intro--fade + .brands { margin: 0 0 clamp(1.5rem, 3vw, 2rem); padding: 0.5rem 0 clamp(1.25rem, 2.5vw, 1.75rem); border-top: 0; border-bottom: 1px solid var(--rule); }
.brands__label { margin: 0 0 1.25rem; font-size: 0.75rem; font-weight: 600; letter-spacing: var(--caps); text-transform: uppercase; color: var(--muted); }
.brands__list { list-style: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.5rem clamp(2rem, 4vw, 3.5rem); }
.brands__logo { height: clamp(1.75rem, 1.4rem + 1vw, 2.5rem); width: auto; max-width: 9rem; object-fit: contain; transition: opacity 0.3s var(--ease); }
.brands--solid .brands__logo { filter: brightness(0); opacity: 0.72; }
[data-theme="dark"] .brands--solid .brands__logo { filter: brightness(0) invert(1); opacity: 0.8; }
.brands--gray .brands__logo { filter: grayscale(1) contrast(1.1); opacity: 0.8; }
[data-theme="dark"] .brands--gray .brands__logo { filter: grayscale(1) brightness(1.15); opacity: 0.85; }
.brands__logo:hover { opacity: 1; }

/* Black-and-white wall: colour on hover / in the middle of the screen */
.wall.is-gray .tile__open img { filter: grayscale(1); transition: filter 0.6s var(--ease), transform 1s var(--ease); }
.wall.is-gray.gray-hover .tile__open:hover img, .wall.is-gray.gray-hover .tile__open:focus-visible img, .wall.is-gray.gray-center .tile.is-center .tile__open img { filter: none; }

/* Availability badge + Hire me */
.avail { display: inline-flex; align-items: center; gap: 0.45rem; margin: 0.9rem 0 0; padding: 0.3rem 0.65rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; background: #E7F4EA; color: #1E6B34; }
[data-theme="dark"] .avail { background: rgba(76, 175, 106, 0.16); color: #86D6A0; }
.avail__dot { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: avail-pulse 2.4s ease-out infinite; }
@keyframes avail-pulse { 0% { box-shadow: 0 0 0 0 rgba(46, 160, 67, 0.45); } 70% { box-shadow: 0 0 0 6px rgba(46, 160, 67, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 160, 67, 0); } }
.sidebar__hire { width: 100%; }
.hire-fab { display: none; }
@media (max-width: 1023px) {
	.hire-fab {
		display: inline-flex; align-items: center; position: fixed; z-index: 60; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
		padding: 0.8rem 1.25rem; border-radius: 999px; background: var(--text); color: var(--bg); box-shadow: var(--shadow);
		font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
	}
	.hire-fab:hover { color: var(--bg); background: var(--accent); }
	.nav-open .hire-fab, .lb-open .hire-fab { display: none; }
}

/* Previous / next with thumbnails + more projects */
.adj { display: inline-flex; flex-direction: column; gap: 0.4rem; max-width: 11rem; text-decoration: none !important; }
.adj--next { align-items: flex-end; text-align: right; }
.adj__label { text-decoration: underline; text-underline-offset: 0.2em; }
.adj__thumb { display: block; width: 8.5rem; aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface); }
.adj__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.adj:hover .adj__thumb img { transform: scale(1.05); }
.adj__title { font-size: 0.8125rem; color: var(--muted); line-height: 1.35; }
.project__adjacent { align-items: flex-start; }
.more-projects { margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--rule); }
.more-projects__all { margin: clamp(1.75rem, 3vw, 2.5rem) 0 0; text-align: center; }

/* Services (Work With Me) */
.services { margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--rule); }
.services__list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; }
.services__item { padding: 1.4rem 1.5rem; background: var(--surface); }
.services__title { font-size: 1.125rem; margin-bottom: 0.5rem; }
.services__desc { margin: 0; color: var(--muted); font-size: var(--fs-small); line-height: 1.65; }
.services__note { margin: 1.25rem 0 0; font-size: var(--fs-small); color: var(--muted); font-style: italic; }

/* CV email pop-up */
.cv-gate { width: min(28rem, calc(100vw - 2rem)); padding: 0; border: 1px solid var(--rule); background: var(--bg); color: var(--text); box-shadow: var(--shadow); }
.cv-gate::backdrop { background: rgba(0, 0, 0, 0.55); }
.cv-gate__form { position: relative; display: flex; flex-direction: column; gap: 0.9rem; padding: 2rem 1.75rem 1.75rem; }
.cv-gate__close { position: absolute; right: 0.5rem; top: 0.5rem; }
.cv-gate__title { font-size: 1.375rem; padding-right: 2rem; }
.cv-gate__note { margin: 0; font-size: var(--fs-small); color: var(--muted); }
.cv-gate__field { margin: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.cv-gate__field label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.cv-gate__field input { width: 100%; font: inherit; font-size: 1rem; padding: 0.75rem 0.85rem; border: 1px solid var(--rule); background: var(--bg); color: var(--text); border-radius: 0; }
.cv-gate__field input:focus { outline: none; border-color: var(--accent-ui); }
.cv-gate__check { margin: 0; font-size: var(--fs-small); }
.cv-gate__check input { margin-right: 0.4rem; }
.cv-gate__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cv-gate__error { margin: 0; color: #c0392b; font-size: var(--fs-small); }
.cv-gate__error[hidden] { display: none; }
.cv-gate__submit { width: 100%; }

.wall__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem 1.5rem; }
.wall__top .filters { flex: 1 1 auto; }
.motion-btn { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0.5rem 0.9rem; border: 1px solid var(--rule); background: transparent; color: var(--muted); cursor: pointer; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.motion-btn:hover { color: var(--text); border-color: var(--text); }
.motion-btn[hidden] { display: none; }
.motion-btn__play, .is-paused .motion-btn__pause { display: none; }
.is-paused .motion-btn__play { display: inline; }

/* Auto-scrolling columns */
.wall.is-moving .wall__grid {
	height: calc(100vh - 8.5rem); height: calc(100dvh - 8.5rem); min-height: 26rem; overflow: hidden;
	-webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 2.5rem, #000 calc(100% - 2.5rem), transparent 100%);
	mask-image: linear-gradient(to bottom, transparent 0, #000 2.5rem, #000 calc(100% - 2.5rem), transparent 100%);
}
.wall.is-moving .wall__col { display: block; overflow: visible; }
.wall.is-moving .wall__track { display: flex; flex-direction: column; gap: var(--gap); will-change: transform; animation: wall-up var(--dur, 60s) linear infinite; }
.wall.is-moving .wall__track.is-down { animation-name: wall-down; }
.wall.is-moving .wall__grid:hover .wall__track, .wall.is-moving .wall__grid:focus-within .wall__track, .wall.is-paused .wall__track, .lb-open .wall__track { animation-play-state: paused; }
@keyframes wall-up { from { transform: translateY(0); } to { transform: translateY(calc(-1 * var(--loop, 0px))); } }
@keyframes wall-down { from { transform: translateY(calc(-1 * var(--loop, 0px))); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .wall[data-respect-reduce="1"] .wall__track { animation: none !important; } }

.wall__more { display: flex; justify-content: center; margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.more-btn { background: none; border: 0; cursor: pointer; color: var(--accent-ui); padding: 0.9rem 1.5rem; font-size: var(--fs-label); font-weight: 600; letter-spacing: var(--caps); text-transform: uppercase; }
.more-btn:hover { text-decoration: underline; }
.more-btn[hidden] { display: none; }

/* ---------- Projects page ---------- */
.page-head { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.page-head__title { font-size: clamp(2.25rem, 1.6rem + 2.8vw, 3.75rem); letter-spacing: -0.02em; line-height: 1.05; }
.page-head__title--xl { font-size: clamp(2.5rem, 1.4rem + 4.4vw, 5rem); max-width: 16ch; }
.page-head__intro { margin: 1rem 0 0; color: var(--muted); max-width: 40em; }
.page-head__share { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin-top: 1.25rem; font-size: 0.8125rem; }
.page-head__share-label { color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.6875rem; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3rem) clamp(1rem, 2vw, 1.75rem); }
.card[hidden] { display: none; }
.card__link { display: flex; flex-direction: column; gap: 0.9rem; }
.card__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.card__link:hover .card__media img { transform: scale(1.03); }
.card__title { font-size: 1.25rem; font-weight: 700; line-height: 1.25; color: var(--text); }
.card__link:hover .card__title { color: var(--accent-ui); }
.card__meta { font-size: var(--fs-small); color: var(--muted); margin-top: -0.5rem; }

/* ---------- Single project (article) ---------- */
.project { max-width: 1180px; }
.project__head { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.project__title { font-size: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); letter-spacing: -0.03em; line-height: 1.02; }
.project__rule { display: block; width: 2rem; height: 2px; background: var(--accent-ui); margin: 0.25rem 0; }
.project__tags { margin: 0; font-size: var(--fs-label); font-weight: 600; letter-spacing: var(--caps); text-transform: uppercase; color: var(--accent-ui); }
.project__tags a:hover { text-decoration: underline; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 1.25rem 2rem; margin: 0 0 clamp(2rem, 4vw, 3rem); padding: 1.25rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.facts dt { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.3rem; }
.facts dd { margin: 0; font-weight: 500; line-height: 1.5; }
.project__hero { margin: 0 0 clamp(2rem, 4vw, 3.5rem); }
.project__hero img { width: 100%; max-height: 88vh; object-fit: cover; }
.project__story { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.project__film { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.project__all { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.project__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-top: 1.25rem; border-top: 1px solid var(--text); }
.project__share { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }
.project__share-label { display: inline-flex; align-items: center; gap: 0.4rem; font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.project__adjacent { display: flex; align-items: center; gap: 1rem; font-size: var(--fs-small); font-weight: 500; }
.project__adjacent a { text-decoration: underline; text-underline-offset: 0.2em; }
.project__adjacent a + a { padding-left: 1rem; border-left: 1px solid var(--rule); }
.share { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.share__link { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.35rem 0; background: none; border: 0; cursor: pointer; font-size: var(--fs-small); font-weight: 500; color: var(--text); }
.share__link:hover { color: var(--accent-ui); }

/* Poster-first video */
.video { position: relative; aspect-ratio: 16 / 9; background: #0b0907; overflow: hidden; }
.video__play { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.video__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video__icon {
	position: absolute; left: 50%; top: 50%; width: 5rem; height: 5rem; margin: -2.5rem 0 0 -2.5rem; border-radius: 50%;
	display: grid; place-items: center; color: #fff; border: 1px solid rgba(255, 255, 255, 0.75); background: rgba(20, 16, 12, 0.4);
	transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.video__play:hover .video__icon, .video__play:focus-visible .video__icon { background: var(--accent); border-color: var(--accent); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video.is-playing .video__play { display: none; }

/* Block editor content */
.entry-content { max-width: var(--max-read); }
.project .entry-content { max-width: 52rem; }
.entry-content > * + * { margin-top: 1.4em; }
.entry-content h2 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.875rem); margin-top: 1.8em; letter-spacing: -0.01em; }
.entry-content h3 { font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.375rem); margin-top: 1.6em; }
.entry-content p, .entry-content li { font-size: 1.0625rem; line-height: 1.8; }
.entry-content a { color: var(--accent-ui); text-decoration: underline; text-underline-offset: 0.2em; }
.entry-content ul, .entry-content ol { padding-left: 1.25em; }
.entry-content .alignwide, .entry-content .alignfull { max-width: none; width: 100%; }
.project .entry-content .alignwide, .project .entry-content .alignfull, .project .entry-content .wp-block-image, .project .entry-content .wp-block-gallery, .project .entry-content .wp-block-columns, .project .entry-content .wp-block-embed { max-width: 1180px; width: min(100%, calc(100vw - var(--sidebar) - 2 * var(--pad))); }
.entry-content img { height: auto; }
.entry-content figcaption, .entry-content .wp-element-caption { margin-top: 0.6rem; font-size: 0.875rem; color: var(--muted); }
.entry-content blockquote, .entry-content .wp-block-quote { margin: 2em 0; padding-left: 1.25rem; border-left: 2px solid var(--accent-ui); }
.entry-content blockquote p { font-size: 1.375rem; font-weight: 500; line-height: 1.45; }
.entry-content hr, .entry-content .wp-block-separator { border: 0; border-top: 1px solid var(--rule); margin: 2.5em 0; }
.entry-content .wp-block-gallery { gap: var(--gap); }
.entry-content .wp-block-button__link { border-radius: 0; background: var(--text); color: var(--bg); text-decoration: none; font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.85rem 1.4rem; }
.entry-content .wp-block-embed iframe { width: 100%; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { border-bottom: 1px solid var(--rule); padding: 0.6rem 0.5rem; text-align: left; }
.has-text-color.has-muted-color, .has-muted-color { color: var(--muted); }
.has-accent-color { color: var(--accent-ui); }
.has-surface-background-color { background: var(--surface); }
.has-accent-background-color { background: var(--accent); }

/* ---------- About Me ---------- */
.about__split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.about__split--text { grid-template-columns: minmax(0, 1fr); max-width: 52rem; }
.about__photo { position: sticky; top: 2rem; background: var(--surface); }
.about__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about__text { display: flex; flex-direction: column; gap: 1.25rem; padding-top: 0.5rem; }
.prose p { font-size: 1.0625rem; line-height: 1.8; max-width: 38em; }
.prose p:first-child { font-size: 1.1875rem; line-height: 1.7; }
.about__extra { margin-top: clamp(2.5rem, 5vw, 4rem); }
.about__lists { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4.5rem); margin-top: clamp(3rem, 6vw, 5rem); }
.about__lists .section-title { padding-bottom: 1rem; border-bottom: 1px solid var(--rule); margin: 0; }
.exp { list-style: none; }
.exp__item { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 0.5rem 1.5rem; padding: 1.25rem 0; border-bottom: 1px solid var(--rule); }
.exp__dates { margin: 0; color: var(--muted); font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
.exp__role { font-size: 1.0625rem; font-weight: 600; }
.exp__company { margin: 0.15rem 0 0; color: var(--muted); }
.exp__desc { margin: 0.5rem 0 0; font-size: var(--fs-small); color: var(--muted); }
.kit { list-style: none; }
.kit__item { display: flex; justify-content: space-between; gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--rule); }
.kit__name { font-weight: 500; }
.kit__type { color: var(--muted); font-size: var(--fs-small); text-align: right; }

/* ---------- Work With Me ---------- */
.work__split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.work__info { display: flex; flex-direction: column; gap: 1.75rem; }
.contact-list { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.contact-list > div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1rem; padding: 0.9rem 0; border-bottom: 1px solid var(--rule); }
.contact-list dt { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding-top: 0.2rem; }
.contact-list dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.socials--inline { flex-direction: row; flex-wrap: wrap; gap: 0.75rem 1.5rem; }
.work__form { padding: clamp(1.5rem, 3vw, 2.25rem); background: var(--surface); }
.work__extra { margin-top: clamp(2.5rem, 5vw, 4rem); }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
.contact-form__field { margin: 0 0 1.25rem; display: flex; flex-direction: column; gap: 0.35rem; }
.contact-form__field--full, .contact-form__submit, .contact-form__notice { grid-column: 1 / -1; }
.contact-form label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.contact-form input, .contact-form textarea {
	width: 100%; background: var(--bg); color: var(--text); font: inherit; font-size: 1rem;
	border: 1px solid var(--rule); border-radius: 0; padding: 0.75rem 0.85rem; transition: border-color 0.2s var(--ease);
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent-ui); }
.contact-form textarea { resize: vertical; min-height: 9rem; }
.contact-form__privacy { grid-column: 1 / -1; margin: 0.25rem 0 0; font-size: 0.8125rem; color: var(--muted); }
.contact-form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form__notice { padding: 0.9rem 1rem; border: 1px solid var(--accent-ui); margin: 0 0 1.25rem; }
.contact-form__notice--error { border-color: #c0392b; }
.contact-form .button-text {
	display: inline-flex; align-items: center; min-height: 2.875rem; padding: 0.7rem 1.5rem; border: 1px solid var(--text); background: var(--text); color: var(--bg); cursor: pointer;
	font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
}
.contact-form .button-text:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Lists / 404 ---------- */
.post-item { padding: 1.5rem 0; border-bottom: 1px solid var(--rule); max-width: var(--max-read); }
.post-item__title { font-size: 1.375rem; }
.post-item__meta { color: var(--muted); font-size: var(--fs-small); margin: 0.3rem 0 0.75rem; }
.not-found { display: flex; flex-direction: column; gap: 1rem; min-height: 60vh; justify-content: center; }
.nav-links { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 3rem; font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.nav-links .current { color: var(--accent-ui); }

/* ---------- Social strip + footer ---------- */
.social-strip { background: var(--strip); padding: 1rem var(--pad); }
.socials--strip { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 0.5rem 0; }
.socials--strip li + li::before { content: "•"; color: var(--accent-ui); margin: 0 1rem; }
.socials--strip li { display: inline-flex; align-items: center; }
.site-footer { background: var(--foot); padding: clamp(2.5rem, 5vw, 3.5rem) var(--pad) 1.5rem; }
.site-footer__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.site-footer__col { display: flex; flex-direction: column; gap: 0.9rem; align-items: flex-start; }
.site-footer__name { margin: 0; font-size: 1.375rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.site-footer__text { margin: 0; color: var(--muted); max-width: 24rem; font-size: var(--fs-small); }
.site-footer__heading { margin: 0; font-size: 1.0625rem; font-weight: 700; }
.site-footer__heading::after { content: ""; display: block; width: 1.5rem; height: 2px; background: var(--accent-ui); margin-top: 0.6rem; }
.site-footer__thumbs { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; width: 100%; max-width: 22rem; }
.site-footer__thumbs a, .site-footer__thumb { display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; aspect-ratio: 1; overflow: hidden; background: var(--surface); }
.site-footer__thumbs img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.site-footer__thumbs a:hover img, .site-footer__thumb:hover img { transform: scale(1.06); }
.site-footer__line { margin: 0; font-size: var(--fs-small); }
.site-footer__line span { color: var(--muted); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); font-size: 0.8125rem; color: var(--muted); }
.site-footer__bottom p { margin: 0; }
.site-footer__top { display: inline-flex; align-items: center; gap: 0.35rem; }

/* ---------- Lightbox ---------- */
.lightbox {
	width: 100vw; height: 100vh; height: 100dvh; max-width: 100vw; max-height: 100vh; max-height: 100dvh;
	margin: 0; padding: 0; border: 0; background: var(--bg); color: var(--text); overflow: hidden;
}
.lightbox::backdrop { background: rgba(0, 0, 0, 0.6); }
.lightbox[open] { display: block; }
.lightbox__head { position: absolute; left: var(--pad); top: 1.25rem; right: 6rem; }
.lightbox__cat { margin: 0; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.lightbox__title { margin: 0.1rem 0 0; font-size: 1.0625rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 2.75rem; height: 2.75rem; padding: 0; border: 0; background: none; color: var(--text); cursor: pointer; }
.lb-btn:hover, .lb-btn[aria-expanded="true"] { color: var(--accent-ui); }
.lightbox__close { position: absolute; right: calc(var(--pad) - 0.5rem); top: 1rem; }
.lightbox__prev, .lightbox__next { position: absolute; top: 50%; transform: translateY(-50%); width: 3.5rem; height: 3.5rem; }
.lightbox__prev { left: clamp(0.25rem, 1.5vw, 1.5rem); }
.lightbox__next { right: clamp(0.25rem, 1.5vw, 1.5rem); }
.lightbox__stage { position: absolute; inset: 5rem clamp(3.5rem, 7vw, 6rem) 6.5rem; display: flex; align-items: center; justify-content: center; touch-action: pan-y; }
.lightbox__img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; user-select: none; -webkit-user-drag: none; transition: opacity 0.25s var(--ease); }
.lightbox__img.is-loading { opacity: 0.25; }
.lightbox__img[hidden] { display: none; }
.lightbox__video { position: relative; width: min(100%, calc((100dvh - 11.5rem) * 16 / 9)); aspect-ratio: 16 / 9; background: #000 center / cover no-repeat; }
.lightbox__video[hidden] { display: none; }
.lightbox__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lightbox__playbtn { position: absolute; left: 50%; top: 50%; width: 5rem; height: 5rem; margin: -2.5rem 0 0 -2.5rem; border-radius: 50%; display: grid; place-items: center; color: #fff; border: 1px solid rgba(255, 255, 255, 0.8); background: rgba(20, 16, 12, 0.45); cursor: pointer; }
.lightbox__playbtn:hover { background: var(--accent); border-color: var(--accent); }
.lightbox__caption { position: absolute; left: 50%; bottom: 4.6rem; transform: translateX(-50%); width: min(40rem, 80vw); margin: 0; text-align: center; font-size: 0.875rem; color: var(--muted); }
.lightbox__bar { position: absolute; left: 0; right: 0; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); display: flex; justify-content: center; align-items: center; gap: 0.5rem 1rem; flex-wrap: wrap; padding: 0 var(--pad); }
.lightbox__count { font-size: 0.875rem; font-weight: 600; letter-spacing: 0.06em; font-variant-numeric: tabular-nums; min-width: 4.5rem; text-align: center; }
.lightbox__count b { color: var(--accent-ui); font-weight: 600; }
.lightbox__sharewrap { position: relative; }
.share--pop { position: absolute; left: 50%; bottom: calc(100% + 0.5rem); transform: translateX(-50%); flex-direction: column; gap: 0; width: 15rem; padding: 0.35rem; background: var(--bg); border: 1px solid var(--rule); box-shadow: var(--shadow); z-index: 3; }
.share--pop[hidden] { display: none; }
.share--pop .share__link { width: 100%; padding: 0.6rem 0.75rem; }
.share--pop .share__link:hover { background: var(--surface); }
.lightbox__project[hidden] { display: none; }
.lb-btn[hidden] { display: none; }
.lb-btn.is-on { color: var(--accent-ui); }
.lightbox__thumbs { position: absolute; inset: 4.5rem var(--pad) 5.5rem; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); gap: 0.5rem; align-content: start; background: var(--bg); z-index: 2; }
.lightbox__thumbs[hidden] { display: none; }
.lightbox__thumbs button { padding: 0; border: 2px solid transparent; background: var(--surface); cursor: pointer; aspect-ratio: 1; overflow: hidden; }
.lightbox__thumbs button[aria-current="true"] { border-color: var(--accent-ui); }
.lightbox__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.lightbox--single .lightbox__prev, .lightbox--single .lightbox__next, .lightbox--single [data-lb-thumbs] { display: none; }
.lightbox__toast { position: absolute; left: 50%; bottom: 5rem; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 0.5rem 0.9rem; font-size: 0.8125rem; font-weight: 600; }

/* ---------- Image protection & watermark ---------- */
.is-protected img { -webkit-user-drag: none; user-drag: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.wm-lightbox .lightbox__stage::after, .wm-both .lightbox__stage::after {
	content: var(--wm, ""); position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-18deg);
	font-size: clamp(1.25rem, 3.5vw, 3.25rem); font-weight: 700; letter-spacing: 0.08em; white-space: nowrap;
	color: rgba(255, 255, 255, 0.34); text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35); pointer-events: none; z-index: 1;
}
.lightbox__stage.is-video::after { display: none; }
.wm-both .tile__open::after, .wm-thumbs .tile__open::after {
	content: var(--wm, ""); position: absolute; right: 0.5rem; bottom: 0.4rem; z-index: 1;
	font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.8); text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55); pointer-events: none;
}

/* ---------- Lightbox: immersive full-screen view on phones ---------- */
@media (max-width: 699px), (max-height: 500px) {
	.lightbox__stage { inset: 0; touch-action: pan-y pinch-zoom; }
	.lightbox__head, .lightbox__bar, .lightbox__close, .lightbox__prev, .lightbox__next, .lightbox__caption { transition: opacity 0.25s var(--ease); z-index: 3; }
	.lightbox__head { left: 0; right: 0; top: 0; padding: calc(0.9rem + env(safe-area-inset-top, 0px)) 4rem 1.75rem var(--pad); background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 92%, transparent) 0%, transparent 100%); }
	.lightbox__close { top: calc(0.6rem + env(safe-area-inset-top, 0px)); z-index: 4; }
	.lightbox__bar { bottom: 0; padding: 1.75rem 0.75rem calc(0.75rem + env(safe-area-inset-bottom, 0px)); gap: 0.25rem 0.5rem; flex-wrap: nowrap; background: linear-gradient(to top, color-mix(in srgb, var(--bg) 92%, transparent) 0%, transparent 100%); }
	.lightbox__count { min-width: 3.5rem; font-size: 0.8125rem; }
	.lightbox__project { min-height: 2.5rem; padding: 0.55rem 0.9rem; font-size: 0.6875rem; white-space: nowrap; }
	.lightbox__prev, .lightbox__next { top: 50%; bottom: auto; transform: translateY(-50%); width: 2.75rem; height: 2.75rem; border-radius: 50%; background: color-mix(in srgb, var(--bg) 70%, transparent); }
	.lightbox__prev { left: 0.5rem; right: auto; }
	.lightbox__next { right: 0.5rem; }
	.lightbox__caption { bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px)); }
	.lightbox__thumbs { inset: calc(4.5rem + env(safe-area-inset-top, 0px)) 0.75rem calc(4.5rem + env(safe-area-inset-bottom, 0px)); z-index: 3; }
	.share--pop { left: auto; right: -3rem; transform: none; }
	.lightbox.ui-hidden .lightbox__head, .lightbox.ui-hidden .lightbox__bar, .lightbox.ui-hidden .lightbox__close, .lightbox.ui-hidden .lightbox__prev, .lightbox.ui-hidden .lightbox__next, .lightbox.ui-hidden .lightbox__caption { opacity: 0; pointer-events: none; }
}

/* ---------- Reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
	.js .tile, .js .card { opacity: 0; transform: translateY(12px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
	.js .tile.is-in, .js .card.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*:not(.wall__track), *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1099px) { .wall__grid { column-count: var(--cols-t, 3); } }
@media (max-width: 699px) { .wall__grid { column-count: var(--cols-m, 2) !important; } .wall[data-cols-m="3"] { --gap: 0.375rem; } .wall[data-cols-m="3"] .tile__play { width: 2rem; height: 2rem; } }
.wall.is-parallax .wall__col { will-change: transform; }
.wall.is-parallax:not(.is-moving) .wall__grid { padding-bottom: 2rem; overflow: hidden; }
@media (max-width: 1199px) {
	.cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.work__split, .about__lists { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1023px) {
	:root { --sidebar: 0px; }
	.site-shell { margin-left: 0; }
	.topbar {
		position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between;
		padding: calc(0.4rem + env(safe-area-inset-top, 0px)) calc(var(--pad) - 0.5rem) 0.4rem var(--pad);
		background: var(--bg); border-bottom: 1px solid var(--rule);
	}
	.topbar .wordmark { font-size: 0.9375rem; }
	.topbar__actions { display: flex; gap: 0.25rem; }
	.sidebar { width: min(22rem, 86vw); transform: translateX(-100%); visibility: hidden; box-shadow: var(--shadow); transition: transform 0.35s var(--ease), visibility 0s linear 0.35s; padding-top: calc(2rem + env(safe-area-inset-top, 0px)); }
	.nav-open .sidebar { transform: none; visibility: visible; transition: transform 0.35s var(--ease); }
	.sidebar__nav { margin-top: 2.5rem; }
	.nav__list a { font-size: 1rem; }
	.sidebar-scrim { display: block; position: fixed; inset: 0; z-index: 45; border: 0; padding: 0; background: rgba(0, 0, 0, 0.45); opacity: 0; visibility: hidden; transition: opacity 0.3s var(--ease), visibility 0s linear 0.3s; }
	.nav-open .sidebar-scrim { opacity: 1; visibility: visible; transition: opacity 0.3s var(--ease); }
	body.nav-open { overflow: hidden; }
	.about__split { grid-template-columns: minmax(0, 1fr); }
	.about__photo { position: static; max-width: 32rem; }
	.site-footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.site-footer__grid > :first-child { grid-column: 1 / -1; }
	.project .entry-content .alignwide, .project .entry-content .alignfull, .project .entry-content .wp-block-image, .project .entry-content .wp-block-gallery, .project .entry-content .wp-block-columns, .project .entry-content .wp-block-embed { width: 100%; }
}
@media (max-width: 699px) {
	.cards { grid-template-columns: minmax(0, 1fr); }
	.filters { flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.25rem; }
	.wall__top { flex-direction: column; gap: 0; }
	.motion-btn { min-height: 2rem; padding: 0.3rem 0.65rem; font-size: 0.6875rem; margin-bottom: 1rem; }
	.wall.is-moving .wall__grid { height: calc(100dvh - 12rem); min-height: 22rem; }
	.filters__btn { min-height: 2rem; padding: 0.35rem 0.65rem; font-size: 0.6875rem; letter-spacing: 0.06em; border-color: var(--rule); white-space: nowrap; }
	.filters__btn[aria-pressed="true"] { border-color: var(--accent-ui); background: var(--surface); }
	.site-footer__grid { grid-template-columns: minmax(0, 1fr); }
	.contact-form { grid-template-columns: minmax(0, 1fr); }
	.exp__item { grid-template-columns: minmax(0, 1fr); }
	.lightbox__video { width: 100%; }
	.project__bar { flex-direction: column; align-items: flex-start; }
}

/* ---------- Admin bar ---------- */
.admin-bar .sidebar { top: 32px; }
@media (max-width: 1023px) { .admin-bar .sidebar { top: 0; } .admin-bar .topbar { top: 46px; } }
@media (max-width: 782px) { .admin-bar .topbar { top: 46px; } }
@media (max-width: 600px) { .admin-bar .topbar { top: 0; } }

@media print {
	.sidebar, .topbar, .social-strip, .filters, .lightbox, .wall__more { display: none !important; }
	.site-shell { margin: 0; }
	.js .tile, .js .card { opacity: 1 !important; transform: none !important; }
}
