/* ==========================================================================
   WVD Portfolio
   Colours come from the Customizer as --a1 / --a2 / --a3.
   ========================================================================== */

:root {
	--a1: #4844ee;
	--a2: #b400ff;
	--a3: #ffe65a;

	--bg: #000;
	--fg: #fff;
	--muted: #a1a1a6;
	--line: rgba(255, 255, 255, .12);
	--surface: #0c0c0e;

	--grad: linear-gradient(90deg, var(--a1), var(--a2), var(--a3), var(--a2), var(--a1));
	--grad-speed: 8s;
	--bar-h: 4px;

	--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--wrap: 1320px;
	--gutter: clamp(16px, 4vw, 48px);
	--radius: 14px;
	--ease: cubic-bezier(.2, .7, .1, 1);
	--header-h: 76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--fg);
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }
a:focus-visible,
button:focus-visible { outline: 2px solid var(--a3); outline-offset: 3px; border-radius: 4px; }

::selection { background: var(--a2); color: #fff; }

h1, h2, h3, h4 { margin: 0; line-height: 1.05; letter-spacing: -.03em; font-weight: 900; }
p { margin: 0 0 1em; }

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

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

.skip-link {
	position: absolute; left: 16px; top: -100px; z-index: 100;
	background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 16px; }

/* ---------- The gradient ---------- */
@keyframes wvd-flow {
	from { background-position: 0% 50%; }
	to   { background-position: 300% 50%; }
}

.grad-bar {
	height: var(--bar-h);
	background: var(--grad);
	background-size: 300% 100%;
	animation: wvd-flow var(--grad-speed) linear infinite;
}
.grad-bar--thin { height: 2px; opacity: .9; }

.grad-text {
	background: var(--grad);
	background-size: 300% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	animation: wvd-flow calc(var(--grad-speed) * 1.5) linear infinite;
	/* Gives descenders room inside the clipped area. */
	padding-bottom: .06em;
}

.wvd-static-gradient .grad-bar,
.wvd-static-gradient .grad-text,
.wvd-static-gradient .ticker__track { animation: none; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(0, 0, 0, .78);
	-webkit-backdrop-filter: saturate(140%) blur(14px);
	backdrop-filter: saturate(140%) blur(14px);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }

.site-header__inner {
	display: flex; align-items: center; justify-content: space-between;
	min-height: var(--header-h); gap: 24px;
}

.custom-logo-link { display: block; }
.custom-logo { height: 34px; width: auto; transition: opacity .2s; }
.custom-logo-link:hover .custom-logo { opacity: .8; }

.site-nav .menu { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
	display: block; padding: 8px 14px; border-radius: 99px;
	font-weight: 600; font-size: 15px; color: var(--muted);
	transition: color .2s, background-color .2s;
}
.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a { color: var(--fg); background: rgba(255, 255, 255, .08); }

.menu-toggle {
	display: none; width: 44px; height: 44px; padding: 0;
	background: none; border: 0; color: var(--fg); cursor: pointer;
}
.menu-toggle__lines,
.menu-toggle__lines::before,
.menu-toggle__lines::after {
	display: block; width: 24px; height: 2px; background: currentColor; margin: auto;
	transition: transform .3s var(--ease), opacity .2s;
}
.menu-toggle__lines { position: relative; }
.menu-toggle__lines::before,
.menu-toggle__lines::after { content: ""; position: absolute; left: 0; }
.menu-toggle__lines::before { top: -7px; }
.menu-toggle__lines::after { top: 7px; }
.menu-open .menu-toggle__lines { background: transparent; }
.menu-open .menu-toggle__lines::before { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle__lines::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 760px) {
	:root { --header-h: 64px; }
	.custom-logo { height: 26px; }
	.menu-toggle { display: block; position: relative; z-index: 2; }
	.site-nav {
		position: fixed; inset: 0; z-index: 1;
		display: flex; align-items: center;
		padding: var(--gutter);
		background: var(--bg);
		opacity: 0; visibility: hidden;
		transition: opacity .3s, visibility .3s;
	}
	.menu-open .site-nav { opacity: 1; visibility: visible; }
	.menu-open { overflow: hidden; }
	.site-nav .menu { flex-direction: column; gap: 4px; }
	.site-nav a { font-size: clamp(2.5rem, 12vw, 4rem); font-weight: 900; letter-spacing: -.04em; text-transform: uppercase; color: var(--fg); padding: 0; background: none !important; }
	.site-nav a:hover { color: var(--a3); }
}

/* ---------- Buttons & links ---------- */
.btn {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 14px 24px; border-radius: 99px;
	background: var(--fg); color: var(--bg);
	font-weight: 700; font-size: 15px;
	transition: transform .25s var(--ease), box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -8px var(--a2); }
.btn--ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.btn--ghost:hover { border-color: var(--fg); box-shadow: none; }

.link-arrow {
	font-weight: 600; color: var(--muted); white-space: nowrap;
	transition: color .2s;
}
.link-arrow span { display: inline-block; transition: transform .25s var(--ease); }
.link-arrow:hover { color: var(--fg); }
.link-arrow:hover span { transform: translateX(4px); }

.eyebrow {
	font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
	color: var(--muted); margin-bottom: 20px;
}
.eyebrow a:hover { color: var(--fg); }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(64px, 12vw, 160px); padding-bottom: clamp(48px, 8vw, 96px); }
.hero__title {
	font-size: clamp(3rem, 9.2vw, 8.75rem);
	line-height: .92; letter-spacing: -.055em;
	text-transform: uppercase;
	max-width: 13ch;
}
.hero__bottom {
	display: flex; align-items: flex-end; justify-content: space-between; gap: 32px 48px;
	flex-wrap: wrap; margin-top: clamp(32px, 5vw, 64px);
}
.hero__text { max-width: 52ch; font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--muted); margin: 0; }

/* Hero with background video */
.hero--video {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	min-height: min(88vh, 940px);
	display: flex;
	align-items: flex-end;
}
.hero--video .hero__inner { position: relative; z-index: 2; }
.hero--video .hero__text { color: #e4e4e8; }
.hero__bg {
	position: absolute; inset: 0; z-index: 0;
	width: 100%; height: 100%; object-fit: cover;
	opacity: 0; transition: opacity 1.2s ease;
}
.hero__bg.is-playing { opacity: 1; }
/* Black gradient so the white text always reads. --shade comes from the Customizer (0–1). */
.hero__shade {
	position: absolute; inset: 0; z-index: 1; pointer-events: none;
	background:
		linear-gradient(90deg, rgba(0, 0, 0, calc(var(--shade, .75) + .15)) 0%, rgba(0, 0, 0, calc(var(--shade, .75) * .55)) 55%, rgba(0, 0, 0, calc(var(--shade, .75) * .25)) 100%),
		linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0) 40%),
		linear-gradient(180deg, rgba(0, 0, 0, .6) 0%, rgba(0, 0, 0, 0) 22%);
}
@media (max-width: 760px) {
	.hero--video { min-height: 82vh; }
	.hero__shade {
		background:
			linear-gradient(0deg, #000 0%, rgba(0, 0, 0, calc(var(--shade, .75) + .1)) 55%, rgba(0, 0, 0, calc(var(--shade, .75) * .5)) 100%);
	}
}

/* ---------- Ticker ---------- */
.ticker {
	border-block: 1px solid var(--line);
	overflow: hidden; white-space: nowrap;
	padding-block: 18px;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker__track { display: inline-flex; animation: wvd-ticker 38s linear infinite; }
.ticker__group { display: inline-flex; align-items: center; }
.ticker__item {
	font-size: clamp(1.75rem, 4vw, 3.25rem); font-weight: 900; letter-spacing: -.04em; text-transform: uppercase;
	padding-inline: .45em;
}
.ticker__item:nth-child(4n+3) { color: transparent; -webkit-text-stroke: 1.5px var(--fg); }
.ticker__dot { font-size: 1.5rem; color: var(--a3); }
.ticker__group .ticker__dot:nth-of-type(3n+2) { color: var(--a2); }
.ticker__group .ticker__dot:nth-of-type(3n) { color: var(--a1); }
@keyframes wvd-ticker { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 10vw, 140px); }
.section--tight { padding-top: 24px; }
.section__head {
	display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
	margin-bottom: clamp(32px, 4vw, 56px);
}
.section__title {
	font-size: clamp(2.5rem, 6vw, 5rem); text-transform: uppercase; letter-spacing: -.05em;
}

/* ---------- Grid & cards ---------- */
.grid {
	display: grid; gap: clamp(20px, 2.4vw, 32px);
	grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px)  { .grid { grid-template-columns: 1fr; } }

/* Homepage: asymmetric editorial rhythm 7/5, 5/7, ... */
.grid--featured { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.grid--featured .card { grid-column: span 6; }
.grid--featured .card:nth-child(4n+1),
.grid--featured .card:nth-child(4n) { grid-column: span 7; }
.grid--featured .card:nth-child(4n+2),
.grid--featured .card:nth-child(4n+3) { grid-column: span 5; }
.grid--featured .card:nth-child(4n+2) .card__media,
.grid--featured .card:nth-child(4n+3) .card__media { aspect-ratio: 4 / 4.06; }
.grid--featured .card:nth-child(4n+1) .card__media,
.grid--featured .card:nth-child(4n) .card__media { aspect-ratio: 4 / 2.9; }
@media (max-width: 760px) {
	.grid--featured { grid-template-columns: 1fr; }
	.grid--featured .card { grid-column: auto !important; }
	.grid--featured .card .card__media { aspect-ratio: 4 / 3 !important; }
}

.card { --c: var(--a2); }
.card--blue   { --c: var(--a1); }
.card--purple { --c: var(--a2); }
.card--yellow { --c: var(--a3); }
.card.is-hidden { display: none; }

.card__link { display: block; }
.card__media {
	position: relative; overflow: hidden;
	aspect-ratio: 4 / 3;
	border-radius: var(--radius);
	background: var(--surface);
	isolation: isolate;
}
.card__media::after {
	/* Accent ring on hover. */
	content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
	box-shadow: inset 0 0 0 1px var(--line);
	transition: box-shadow .35s var(--ease);
}
.card__link:hover .card__media::after,
.card__link:focus-visible .card__media::after { box-shadow: inset 0 0 0 2px var(--c); }

.card__img,
.card__preview {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
	transition: transform .7s var(--ease), opacity .35s;
}
.card__link:hover .card__img { transform: scale(1.045); }
.card__preview { opacity: 0; z-index: 1; }
.card.is-previewing .card__preview { opacity: 1; }

.card__placeholder {
	position: absolute; inset: 0; display: grid; place-items: center;
	background:
		radial-gradient(120% 90% at 15% 110%, var(--c) 0%, transparent 55%),
		radial-gradient(90% 80% at 100% 0%, color-mix(in srgb, var(--c) 45%, transparent) 0%, transparent 60%),
		var(--surface);
	transition: transform .7s var(--ease);
}
.card__placeholder span {
	font-size: clamp(6rem, 14vw, 12rem); font-weight: 900; letter-spacing: -.06em; line-height: 1;
	color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, .85);
}
.card__link:hover .card__placeholder { transform: scale(1.04); }

.card__arrow {
	position: absolute; right: 16px; top: 16px; z-index: 2;
	width: 44px; height: 44px; border-radius: 50%;
	display: grid; place-items: center;
	background: var(--fg); color: var(--bg); font-size: 18px; font-weight: 700;
	opacity: 0; transform: scale(.6) rotate(-45deg);
	transition: opacity .3s, transform .4s var(--ease);
}
.card__link:hover .card__arrow,
.card__link:focus-visible .card__arrow { opacity: 1; transform: none; }

.card__body { padding-top: 18px; }
.card__title {
	font-size: clamp(1.35rem, 2vw, 1.75rem); text-transform: uppercase; letter-spacing: -.035em;
	display: inline; background-image: linear-gradient(var(--c), var(--c));
	background-size: 0% 3px; background-repeat: no-repeat; background-position: 0 100%;
	transition: background-size .45s var(--ease);
}
.card__link:hover .card__title { background-size: 100% 3px; }
.card__sub { margin: 6px 0 0; color: var(--fg); opacity: .85; }
.card__tags { margin: 4px 0 0; font-size: 14px; color: var(--muted); }

.empty { color: var(--muted); }

/* ---------- Filters & sorting ---------- */
.toolbar {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
	gap: 16px 32px; margin-bottom: 24px;
}
.toolbar .filters { margin-bottom: 0; }
.sorter { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.sorter__label {
	margin-right: 8px; font-size: 13px; font-weight: 600; letter-spacing: .08em;
	text-transform: uppercase; color: var(--muted);
}
.sort {
	padding: 7px 12px; border-radius: 8px;
	font-size: 14px; font-weight: 600; color: var(--muted);
	transition: color .2s, background-color .2s;
}
.sort:hover { color: var(--fg); }
.sort.is-active { color: var(--fg); background: rgba(255, 255, 255, .1); }
@media (max-width: 700px) {
	.sorter { margin-left: 0; flex-wrap: wrap; }
}

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filter {
	padding: 9px 16px; border-radius: 99px; border: 1px solid var(--line);
	font-size: 14px; font-weight: 600; color: var(--muted);
	transition: color .2s, border-color .2s, background-color .2s;
}
.filter:hover { color: var(--fg); border-color: rgba(255, 255, 255, .4); }
.filter.is-active { background: var(--fg); border-color: var(--fg); color: var(--bg); }

/* ---------- About ---------- */
.about { border-top: 1px solid var(--line); }
.about__grid {
	display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 32px clamp(32px, 6vw, 96px); align-items: start;
}
.about__side { position: sticky; top: calc(var(--header-h) + 40px); }
.about__text { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.65; color: #d9d9de; }
.about__text p:last-child { margin-bottom: 0; }
.about__grid--photo .about__text { padding-top: clamp(0px, 1vw, 12px); }

/* Photo: tilted card with an animated gradient frame, straightens on hover. */
/* (The tilt sits on the frame, because the scroll-reveal animation controls the figure itself.) */
.about__photo { position: relative; margin: clamp(28px, 3vw, 40px) 0 0; max-width: 420px; }
.about__frame {
	transform: rotate(-3deg);
	transition: transform .6s var(--ease);
	display: block; padding: 5px; border-radius: calc(var(--radius) + 5px);
	background: var(--grad); background-size: 300% 100%;
	animation: wvd-flow var(--grad-speed) linear infinite;
	box-shadow: 0 30px 80px -30px var(--a2);
}
.about__frame img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
.about__sticker {
	position: absolute; right: -14px; bottom: 26px;
	padding: 8px 14px; border-radius: 99px;
	background: var(--a3); color: #000;
	font-weight: 900; font-size: 15px; letter-spacing: -.01em; text-transform: uppercase;
	transform: rotate(8deg);
	box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
	transition: transform .6s var(--ease);
}
.about__photo:hover .about__frame { transform: rotate(0deg) scale(1.02); }
.about__photo:hover .about__sticker { transform: rotate(-4deg) scale(1.08); }

@media (max-width: 860px) {
	.about__grid { grid-template-columns: 1fr; }
	.about__side { position: static; }
	.about__photo { max-width: 340px; margin-inline: auto 0; margin-left: 4px; }
	.about__sticker { right: -6px; }
}

/* ---------- Contact ---------- */
.contact { border-top: 1px solid var(--line); }
.contact__title {
	font-size: clamp(2.75rem, 8vw, 7rem); text-transform: uppercase; letter-spacing: -.055em; line-height: .95;
	max-width: 14ch;
}
.contact__row {
	display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px;
	margin-top: clamp(32px, 4vw, 56px);
}
.contact__text { max-width: 40ch; color: var(--muted); font-size: 1.15rem; margin: 0; }
.contact__mail {
	font-size: clamp(1.4rem, 3.2vw, 2.5rem); font-weight: 700; letter-spacing: -.03em;
	padding-bottom: 6px; background: var(--grad); background-size: 300% 3px;
	background-repeat: no-repeat; background-position: 0 100%;
	animation: wvd-flow var(--grad-speed) linear infinite;
	word-break: break-all;
}
.contact__mail:hover { color: var(--a3); }
.contact__form { margin-top: 48px; max-width: 720px; }
.contact__form input:not([type=submit]):not([type=checkbox]),
.contact__form textarea {
	width: 100%; padding: 14px 16px; border-radius: 10px;
	background: var(--surface); border: 1px solid var(--line); color: var(--fg); font: inherit;
}
.contact__form input:focus,
.contact__form textarea:focus { outline: none; border-color: var(--a2); }
.contact__form input[type=submit] {
	padding: 14px 28px; border-radius: 99px; border: 0; cursor: pointer;
	background: var(--fg); color: var(--bg); font: inherit; font-weight: 700;
}

/* ---------- Page heads ---------- */
.page-head { padding-top: clamp(56px, 9vw, 120px); padding-bottom: clamp(24px, 4vw, 48px); }
.page-head__title { font-size: clamp(2.75rem, 8vw, 6.5rem); text-transform: uppercase; letter-spacing: -.055em; }
.page-head__text { margin-top: 20px; color: var(--muted); max-width: 60ch; font-size: 1.15rem; }

/* ---------- Single project ---------- */
.project { --c: var(--a2); }
.project--blue   { --c: var(--a1); }
.project--yellow { --c: var(--a3); }

.project__head { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(32px, 5vw, 64px); }
.back-link { display: inline-block; margin-bottom: 32px; color: var(--muted); font-weight: 600; font-size: 15px; }
.back-link:hover { color: var(--fg); }
.project__title { font-size: clamp(3rem, 9vw, 8rem); text-transform: uppercase; letter-spacing: -.055em; line-height: .92; }
.project__sub { margin: 18px 0 0; font-size: clamp(1.15rem, 2vw, 1.5rem); color: var(--muted); }

.facts {
	display: flex; flex-wrap: wrap; align-items: flex-end; gap: 24px 48px;
	margin: clamp(32px, 4vw, 48px) 0 0; padding-top: 24px; border-top: 1px solid var(--line);
}
.facts dt { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.facts dd { margin: 0; font-weight: 600; }
.facts__cta { margin-left: auto; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.pills li { padding: 3px 12px; border-radius: 99px; border: 1px solid var(--line); font-size: 14px; font-weight: 500; }

.project__hero { margin: 0 auto; }
.project__hero img { width: 100%; border-radius: var(--radius); }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.video iframe,
.video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.project__content { padding-top: clamp(48px, 6vw, 88px); }

.next-project {
	display: block; text-align: center;
	padding: clamp(64px, 10vw, 140px) var(--gutter);
	border-top: 1px solid var(--line); margin-top: clamp(64px, 8vw, 120px);
	transition: background-color .4s;
}
.next-project__label { display: block; color: var(--muted); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 14px; margin-bottom: 12px; }
.next-project__title { font-size: clamp(2.25rem, 7vw, 6rem); font-weight: 900; text-transform: uppercase; letter-spacing: -.055em; line-height: 1; }
.next-project__title span { display: inline-block; transition: transform .35s var(--ease); }
.next-project:hover { background: var(--surface); }
.next-project:hover .next-project__title span { transform: translateX(12px); }

/* ---------- Block content (project pages, pages) ---------- */
.entry-content { padding-bottom: 32px; }
.entry-content > * {
	max-width: 760px; margin-inline: auto;
	padding-inline: var(--gutter);
	box-sizing: content-box;
}
.entry-content > .alignwide { max-width: 1320px; }
.entry-content > .alignfull { max-width: none; padding-inline: 0; }
.entry-content > figure,
.entry-content > .wp-block-image,
.entry-content > .wp-block-gallery,
.entry-content > .wp-block-video,
.entry-content > .wp-block-embed,
.entry-content > .wp-block-columns { max-width: 1320px; }
.entry-content > * + * { margin-top: 1.4em; }
.entry-content > .wp-block-image,
.entry-content > .wp-block-gallery,
.entry-content > .wp-block-video,
.entry-content > .wp-block-embed,
.entry-content > .wp-block-columns { margin-block: clamp(32px, 4vw, 56px); }

.entry-content p,
.entry-content li { font-size: 1.125rem; color: #d9d9de; }
.entry-content h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); text-transform: uppercase; letter-spacing: -.04em; margin-top: 2em; }
.entry-content h3 { font-size: 1.5rem; margin-top: 1.6em; }
.entry-content a:not(.wp-block-button__link) {
	text-decoration: underline; text-decoration-color: var(--a2); text-decoration-thickness: 2px; text-underline-offset: 3px;
}
.entry-content a:not(.wp-block-button__link):hover { text-decoration-color: var(--a3); }
.entry-content img,
.entry-content video { border-radius: var(--radius); }
.entry-content .alignfull img { border-radius: 0; }
.entry-content figcaption,
.entry-content .wp-element-caption { color: var(--muted); font-size: 14px; text-align: center; margin-top: 10px; }
.entry-content .wp-block-gallery { gap: clamp(12px, 1.6vw, 24px); }
.entry-content blockquote {
	border-left: 3px solid var(--a2); padding-left: 24px; margin-left: 0;
	font-size: 1.4rem; font-weight: 600; letter-spacing: -.02em;
}
.entry-content hr { border: 0; height: 2px; background: var(--grad); background-size: 300% 100%; animation: wvd-flow var(--grad-speed) linear infinite; }
.wp-block-button__link { border-radius: 99px !important; font-weight: 700; }
.wp-block-embed__wrapper iframe { width: 100%; border-radius: var(--radius); }

/* ---------- Blog list ---------- */
.post-list { border-top: 1px solid var(--line); }
.post-row a { display: block; padding: 28px 0; border-bottom: 1px solid var(--line); transition: padding .3s var(--ease); }
.post-row a:hover { padding-left: 12px; }
.post-row time { color: var(--muted); font-size: 14px; }
.post-row h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); text-transform: uppercase; margin: 6px 0 10px; }
.post-row p { color: var(--muted); margin: 0; }

/* ---------- Pagination ---------- */
.pagination { margin-top: 48px; }
.nav-links { display: flex; gap: 8px; justify-content: center; }
.page-numbers { min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: 99px; border: 1px solid var(--line); font-weight: 600; padding-inline: 12px; }
.page-numbers.current,
.page-numbers:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* ---------- Footer ---------- */
.site-footer { margin-top: 0; }
.site-footer__inner {
	display: grid; grid-template-columns: 1fr auto; gap: 40px;
	padding-block: clamp(48px, 6vw, 72px) 32px;
}
.site-footer__brand .custom-logo { height: 40px; }
.site-footer__brand p { margin: 16px 0 0; color: var(--muted); max-width: 40ch; }
.site-footer__links { display: flex; gap: 48px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer__links a { font-weight: 600; color: var(--muted); transition: color .2s; }
.site-footer__links a:hover { color: var(--fg); }
.site-footer__bottom {
	grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
	padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted);
}
.to-top:hover { color: var(--fg); }
@media (max-width: 700px) {
	.site-footer__inner { grid-template-columns: 1fr; }
}

/* ---------- Category tiles ---------- */
.cats { padding-top: clamp(48px, 7vw, 96px); }
.cats__label { margin-bottom: 20px; }
.cats__grid {
	display: grid; gap: clamp(12px, 1.6vw, 24px);
	grid-template-columns: repeat(3, minmax(0, 1fr));
}
.cats__grid--1 { grid-template-columns: 1fr; }
.cats__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.cat { --c: var(--a2); --on-c: #fff; }
.cat--blue   { --c: var(--a1); --on-c: #fff; }
.cat--purple { --c: var(--a2); --on-c: #fff; }
.cat--yellow { --c: var(--a3); --on-c: #000; }

a.cat {
	position: relative; isolation: isolate; overflow: hidden;
	display: flex; flex-direction: column; justify-content: flex-end;
	min-height: clamp(400px, 40vw, 580px);
	padding: clamp(20px, 2.2vw, 32px);
	border-radius: var(--radius);
	background: var(--surface);
}
a.cat::after {
	content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3;
	box-shadow: inset 0 0 0 1px var(--line);
	transition: box-shadow .35s var(--ease);
}
a.cat:hover::after,
a.cat:focus-visible::after { box-shadow: inset 0 0 0 2px var(--c); }

.cat__media { position: absolute; inset: 0; z-index: -2; }
.cat__media img,
.cat__media video {
	width: 100%; height: 100%; object-fit: cover;
	transition: transform 1s var(--ease);
}
a.cat:hover .cat__media img,
a.cat:hover .cat__media video,
a.cat:hover .cat__placeholder { transform: scale(1.06); }

.cat__placeholder {
	position: absolute; inset: 0; display: block;
	background:
		radial-gradient(90% 70% at 85% 10%, var(--c) 0%, transparent 60%),
		radial-gradient(70% 60% at 0% 100%, color-mix(in srgb, var(--c) 55%, transparent) 0%, transparent 65%),
		var(--surface);
	transition: transform 1s var(--ease);
}

/* Black overlay, like the intro video. --shade (0–1) is set per category. */
.cat__shade {
	position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background:
		linear-gradient(0deg, rgba(0, 0, 0, .95) 0%, rgba(0, 0, 0, 0) 60%),
		rgba(0, 0, 0, var(--shade, .55));
	transition: background-color .4s;
}
a.cat:hover .cat__shade { background-color: rgba(0, 0, 0, calc(var(--shade, .55) * .7)); }


.cat__body { display: flex; flex-direction: column; align-items: flex-start; }
.cat__title {
	display: block; margin-bottom: 22px;
	font-size: clamp(1.75rem, 2.7vw, 2.75rem); font-weight: 900;
	line-height: .95; letter-spacing: -.045em; text-transform: uppercase;
	max-width: 12ch;
}
.cat__cta {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 11px 20px; border-radius: 99px;
	background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .28);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	font-weight: 700; font-size: 15px;
	transition: background-color .3s, color .3s, border-color .3s;
}
.cat__arrow { display: inline-block; transition: transform .35s var(--ease); }
a.cat:hover .cat__cta,
a.cat:focus-visible .cat__cta { background: var(--c); border-color: var(--c); color: var(--on-c); }
a.cat:hover .cat__arrow { transform: translateX(5px); }

.cat__bar {
	position: absolute; left: 0; right: 0; bottom: 0; height: 5px; z-index: 2;
	background: var(--c); transform: scaleX(0); transform-origin: left;
	transition: transform .55s var(--ease);
}
a.cat:hover .cat__bar,
a.cat:focus-visible .cat__bar { transform: scaleX(1); }

@media (max-width: 900px) {
	.cats__grid,
	.cats__grid--2 { grid-template-columns: 1fr; }
	a.cat { min-height: 300px; }
	.cat__title { max-width: none; }
}

/* Category page banner */
.cat-hero {
	position: relative; isolation: isolate; overflow: hidden;
	min-height: clamp(320px, 42vh, 480px);
	display: flex; align-items: flex-end;
	padding-block: clamp(40px, 6vw, 72px);
}
.cat-hero .cat__shade {
	background:
		linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0) 70%),
		linear-gradient(90deg, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, 0) 70%),
		rgba(0, 0, 0, var(--shade, .55));
}
.cat-hero .cat__bar { transform: none; height: 4px; }
.cat-hero__inner { position: relative; }
.cat-hero .back-link { margin-bottom: 20px; }
.cat-hero .page-head__text { color: #e0e0e6; }
.page-head--spacer { height: clamp(28px, 4vw, 48px); }

/* ---------- Featured work (3 projects) ---------- */
.grid--feature3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--feature3 .card:first-child { grid-column: 1 / -1; }
.grid--feature3 .card:first-child .card__media { aspect-ratio: 21 / 9; }
.grid--feature3 .card:first-child .card__title { font-size: clamp(1.75rem, 3vw, 2.5rem); }
@media (max-width: 700px) {
	.grid--feature3 { grid-template-columns: 1fr; }
	.grid--feature3 .card:first-child .card__media { aspect-ratio: 4 / 3; }
}

/* ---------- Project page: intro + builder modules ---------- */
.project__intro {
	margin: 24px 0 0; max-width: 62ch;
	font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.55; color: #e0e0e6;
}

.modules {
	--m-fg: var(--fg);
	--m-text: #d9d9de;
	--m-muted: var(--muted);
	display: flex; flex-direction: column; gap: var(--m-gap, 24px);
	padding-block: var(--m-gap, 24px);
	background: var(--m-bg, #000);
	color: var(--m-fg);
}
.modules--light { --m-fg: #0b0b0c; --m-text: #2b2b30; --m-muted: #5c5c63; }

.m { width: 100%; margin: 0 auto; }
.m--wide { max-width: var(--wrap); padding-inline: var(--gutter); }
.m--narrow { max-width: calc(820px + 2 * var(--gutter)); padding-inline: var(--gutter); }
.m--full { max-width: none; }

.modules img,
.modules video { display: block; width: 100%; height: auto; border-radius: min(var(--radius), var(--m-gap, 24px)); }
.m--full img,
.m--full video { border-radius: 0; }
.m-media { margin-block: 0; }
.m-media figcaption { margin-top: 10px; text-align: center; font-size: 14px; color: var(--m-muted); }
.m--full figcaption { padding-inline: var(--gutter); }

.m-text { max-width: calc(760px + 2 * var(--gutter)); padding-inline: var(--gutter); color: var(--m-text); font-size: 1.125rem; line-height: 1.7; }
.m-text > :first-child { margin-top: 0; }
.m-text > :last-child { margin-bottom: 0; }
.m-text p { margin: 0 0 1em; }
.m-text h2 { color: var(--m-fg); font-size: clamp(1.75rem, 3.5vw, 2.75rem); text-transform: uppercase; letter-spacing: -.045em; margin: 1.2em 0 .5em; }
.m-text h3 { color: var(--m-fg); font-size: clamp(1.25rem, 2vw, 1.5rem); letter-spacing: -.02em; margin: 1.2em 0 .4em; }
.m-text strong,
.m-text b { color: var(--m-fg); }
.m-text a { color: var(--m-fg); text-decoration: underline; text-decoration-color: var(--a2); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.m-text a:hover { text-decoration-color: var(--a3); }
.m-text ul,
.m-text ol { padding-left: 1.2em; margin: 0 0 1em; }
.m-text blockquote { margin: 0 0 1em; padding-left: 22px; border-left: 3px solid var(--a2); color: var(--m-fg); font-size: 1.35em; font-weight: 600; letter-spacing: -.02em; line-height: 1.4; }
.m-text--large { font-size: clamp(1.3rem, 2.2vw, 1.75rem); line-height: 1.45; letter-spacing: -.01em; }
.m-text--center { text-align: center; }
.m-text--center blockquote { border-left: 0; padding-left: 0; }

.m-grid { display: grid; gap: var(--m-gap, 24px); align-items: start; }
.m-grid figure { margin: 0; }
.m-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.m-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.m-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.m-grid--crop figure { aspect-ratio: 1; }
.m-grid--crop img,
.m-grid--crop video { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) {
	.m-grid--3,
	.m-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.m-embed iframe { width: 100%; border: 0; border-radius: var(--radius); }
.m-spacer--s { height: 24px; }
.m-spacer--m { height: 72px; }
.m-spacer--l { height: 144px; }

/* ---------- Scroll reveal (only when JS is on) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Respect "reduce motion" ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
	.js .reveal { opacity: 1; transform: none; }
}
