/* ==========================================================================
   Zakir Designs — main stylesheet
   1  Tokens & base        6  Stacked cards (hero / showcase)   11 Inner pages
   2  Type & utilities     7  About                             12 Projects
   3  Buttons & chips      8  Recent grid                       13 Forms
   4  Header & drawer      9  Call to action                    14 Motion & responsive
   5  Reveal motion       10  Footer
   ========================================================================== */

/* 1 · Tokens & base ------------------------------------------------------ */
:root {
	--zd-ink: #0d1214;
	--zd-ink-2: #172024;
	--zd-paper: #fbfaf7;
	--zd-paper-2: #f1eee8;
	--zd-mute: #5d6569;
	--zd-line: rgba(13, 18, 20, 0.12);
	--zd-accent: #d98a3d;

	--zd-serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
	--zd-sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--zd-gutter: clamp(20px, 4.4vw, 72px);
	--zd-radius: clamp(20px, 2.4vw, 34px);
	--zd-ease: cubic-bezier(0.22, 0.7, 0.18, 1);
	--zd-vh: 100vh;
}

@supports (height: 100svh) {
	:root { --zd-vh: 100svh; }
}

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 90px;
}

body {
	margin: 0;
	background: var(--zd-paper);
	color: var(--zd-ink);
	font: 400 16px/1.65 var(--zd-sans);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}

/* fine film grain over everything, very low contrast */
body::after {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 95;
	pointer-events: none;
	opacity: 0.05;
	mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; }

:focus-visible {
	outline: 2px solid var(--zd-accent);
	outline-offset: 3px;
	border-radius: 4px;
}

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

/* 2 · Type & utilities --------------------------------------------------- */
h1, h2, h3, h4,
.zd-meta dd, .zd-contact__list dd, .zd-next strong, .zd-lede, .zd-wordmark {
	font-variant-numeric: lining-nums;
	font-feature-settings: "lnum" 1;
}

h1, h2, h3, h4 {
	margin: 0;
	font-family: var(--zd-serif);
	font-weight: 500;
	letter-spacing: -0.012em;
	line-height: 1.08;
	text-wrap: balance;
}

p { margin: 0; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0; border: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.zd-skip {
	position: fixed;
	top: 12px; left: 12px;
	z-index: 200;
	padding: 10px 16px;
	border-radius: 99px;
	background: #fff;
	color: var(--zd-ink);
	font-size: 12px;
	transform: translateY(-160%);
}
.zd-skip:focus { transform: none; }

.zd-cover { width: 100%; height: 100%; object-fit: cover; }

.zd-eyebrow {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: clamp(18px, 3vh, 30px);
	font: 500 10.5px/1 var(--zd-sans);
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--zd-mute);
}
.zd-eyebrow span { width: 26px; height: 1px; background: currentColor; }

/* vertical edge labels */
.zd-vlabel {
	position: absolute;
	top: 50%;
	z-index: 3;
	writing-mode: vertical-rl;
	white-space: nowrap;
	font: 500 10px/1 var(--zd-sans);
	letter-spacing: 0.26em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.78);
	pointer-events: none;
}
.zd-vlabel--l { left: calc(var(--zd-gutter) * 0.4); transform: translateY(-50%) rotate(180deg); }
.zd-vlabel--r { right: calc(var(--zd-gutter) * 0.4); transform: translateY(-50%); }

/* 3 · Buttons & chips ---------------------------------------------------- */
.zd-btn {
	--h: 34px;
	display: inline-flex;
	align-items: center;
	gap: 9px;
	height: var(--h);
	padding: 0 16px;
	border: 1px solid transparent;
	border-radius: 99px;
	font: 600 10.5px/1 var(--zd-sans);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.4s var(--zd-ease), color 0.4s var(--zd-ease), border-color 0.4s var(--zd-ease), transform 0.4s var(--zd-ease);
}
.zd-btn .zd-icon { transition: transform 0.4s var(--zd-ease); }
.zd-btn:hover .zd-icon--arrow { transform: translate(2px, -2px); }
.zd-btn:hover .zd-icon--chevron { transform: translateX(2px); }
.zd-btn:active { transform: scale(0.97); }

.zd-btn--light { background: #fff; color: var(--zd-ink); }
.zd-btn--light:hover { background: var(--zd-paper-2); }

.zd-btn--dark { background: var(--zd-ink); color: #fff; }
.zd-btn--dark:hover { background: #24343a; }

.zd-btn--glass {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.42);
	color: #fff;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}
.zd-btn--glass:hover { background: #fff; color: var(--zd-ink); }

.zd-btn--link {
	--h: 34px;
	padding: 0 4px;
	background: none;
	color: inherit;
	background-image: linear-gradient(currentColor, currentColor);
	background-size: 0% 1px;
	background-position: 4px calc(50% + 9px);
	background-repeat: no-repeat;
	transition: background-size 0.5s var(--zd-ease);
}
.zd-btn--link:hover { background-size: calc(100% - 8px) 1px; }

.zd-btn--lg { --h: 48px; padding: 0 26px; font-size: 11px; }

.zd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.zd-chip {
	display: inline-flex;
	align-items: center;
	height: 22px;
	padding: 0 11px;
	border-radius: 99px;
	background: #fff;
	color: var(--zd-ink);
	font: 600 10px/1 var(--zd-sans);
	letter-spacing: 0.06em;
}

/* 4 · Header & drawer ---------------------------------------------------- */
.zd-header {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 100;
	padding: 18px var(--zd-gutter);
	transition: transform 0.6s var(--zd-ease), padding 0.5s var(--zd-ease);
	pointer-events: none;
}
.zd-header > * { pointer-events: auto; }
.admin-bar .zd-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .zd-header { top: 46px; } }

.zd-header__bar {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 20px;
	padding: 0;
	border-radius: 99px;
	transition: background-color 0.5s var(--zd-ease), padding 0.5s var(--zd-ease), box-shadow 0.5s var(--zd-ease);
}

.zd-header.is-scrolled,
.zd-inner .zd-header { padding-top: 12px; }

.zd-header.is-scrolled .zd-header__bar,
.zd-inner .zd-header__bar {
	padding: 8px 8px 8px 26px;
	background: rgba(12, 17, 19, 0.87);
	-webkit-backdrop-filter: blur(18px) saturate(1.4);
	backdrop-filter: blur(18px) saturate(1.4);
	box-shadow: 0 14px 44px -14px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.09);
}
.zd-header.is-hidden { transform: translateY(-140%); }

.zd-brand {
	justify-self: start;
	display: inline-flex;
	align-items: center;
	color: #fff;
}
.zd-brand__logo { width: auto; height: 34px; }
.zd-wordmark {
	font: 500 15px/1 var(--zd-serif);
	letter-spacing: 0.34em;
	text-transform: uppercase;
	white-space: nowrap;
}
.zd-wordmark b { font-weight: 700; }

.zd-menu,
.zd-drawer__menu { list-style: none; }
.zd-nav .zd-menu { display: flex; align-items: center; gap: 2px; }
.zd-nav a {
	display: block;
	padding: 10px 17px;
	border-radius: 99px;
	font: 500 10.5px/1 var(--zd-sans);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.74);
	transition: background-color 0.35s var(--zd-ease), color 0.35s var(--zd-ease);
}
.zd-nav a:hover { background: rgba(255, 255, 255, 0.13); color: #fff; }
.zd-nav .current-menu-item > a,
.zd-nav .current_page_item > a,
.zd-nav .current-menu-ancestor > a,
.zd-nav .current-page-ancestor > a { background: #fff; color: var(--zd-ink); }

.zd-header__end { justify-self: end; display: flex; align-items: center; gap: 10px; }
.zd-header__cta { --h: 36px; }

.zd-burger {
	display: none;
	position: relative;
	width: 44px; height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
	cursor: pointer;
}
.zd-burger__line {
	position: absolute;
	left: 14px; right: 14px;
	height: 1.5px;
	background: #fff;
	transition: transform 0.5s var(--zd-ease), top 0.5s var(--zd-ease);
}
.zd-burger__line:nth-child(1) { top: 19px; }
.zd-burger__line:nth-child(2) { top: 25px; }
.zd-menu-open .zd-burger__line:nth-child(1) { top: 22px; transform: rotate(45deg); }
.zd-menu-open .zd-burger__line:nth-child(2) { top: 22px; transform: rotate(-45deg); }

.zd-drawer {
	position: fixed;
	inset: 0;
	z-index: 99;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 120px var(--zd-gutter) 36px;
	background: rgba(9, 13, 15, 0.97);
	-webkit-backdrop-filter: blur(20px);
	backdrop-filter: blur(20px);
	clip-path: inset(0 0 100% 0);
	visibility: hidden;
	transition: clip-path 0.7s var(--zd-ease), visibility 0s 0.7s;
}
.zd-menu-open { overflow: hidden; }
.zd-menu-open .zd-drawer { clip-path: inset(0); visibility: visible; transition: clip-path 0.7s var(--zd-ease), visibility 0s; }
.zd-menu-open .zd-header__bar { background: transparent !important; box-shadow: none !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
.zd-menu-open .zd-header.is-hidden { transform: none; }

.zd-drawer__menu a {
	display: block;
	padding: 6px 0;
	font: 500 clamp(2.6rem, 11vw, 4.6rem)/1.1 var(--zd-serif);
	letter-spacing: -0.02em;
	color: #fff;
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.6s var(--zd-ease), transform 0.6s var(--zd-ease);
}
.zd-menu-open .zd-drawer__menu li:nth-child(1) a { transition-delay: 0.18s; }
.zd-menu-open .zd-drawer__menu li:nth-child(2) a { transition-delay: 0.24s; }
.zd-menu-open .zd-drawer__menu li:nth-child(3) a { transition-delay: 0.3s; }
.zd-menu-open .zd-drawer__menu li:nth-child(4) a { transition-delay: 0.36s; }
.zd-menu-open .zd-drawer__menu li:nth-child(n+5) a { transition-delay: 0.42s; }
.zd-menu-open .zd-drawer__menu a { opacity: 1; transform: none; }
.zd-drawer__menu .current-menu-item > a { color: var(--zd-accent); }

.zd-drawer__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; color: rgba(255, 255, 255, 0.7); font-size: 14px; }

/* 5 · Reveal motion ------------------------------------------------------ */
.js [data-reveal] {
	opacity: 0;
	transform: translate3d(0, 28px, 0);
	transition: opacity 1s var(--zd-ease), transform 1s var(--zd-ease);
	transition-delay: calc(var(--d, 0) * 90ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

.zd-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.zd-word > span { display: inline-block; }
.js .zd-word > span {
	transform: translate3d(0, 108%, 0);
	transition: transform 1.25s var(--zd-ease);
	transition-delay: calc(var(--i, 0) * 75ms + 350ms);
}
.js .is-ready .zd-word > span { transform: none; }

/* 6 · Stacked cards: hero + showcase ------------------------------------ */
.zd-main { position: relative; }

.zd-hero,
.zd-showcase {
	position: sticky;
	top: 0;
	height: var(--zd-vh);
	overflow: hidden;
	isolation: isolate;
	background: #0a1113;
	color: #fff;
	--p: 0;
}

.zd-showcase {
	--r: 1;
	border-radius: calc(var(--zd-radius) * var(--r)) calc(var(--zd-radius) * var(--r)) 0 0;
}

.zd-hero__media,
.zd-showcase__media,
.zd-cta__media {
	position: absolute;
	inset: -7% 0;
	will-change: transform;
	transform: translate3d(0, calc(var(--p, 0) * -6%), 0) scale(calc(1 + var(--p, 0) * 0.05));
}
.zd-cta__media { inset: 0; transform: none; will-change: auto; }

.js .zd-hero__media .zd-cover {
	transform: scale(1.14);
	transition: transform 2.8s var(--zd-ease);
}
.js .is-ready .zd-hero__media .zd-cover { transform: none; }

/* readable text over any photo */
.zd-hero__shade,
.zd-showcase__shade,
.zd-cta__shade {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background:
		linear-gradient(180deg, rgba(6, 10, 12, 0.52) 0%, rgba(6, 10, 12, 0) 26%, rgba(6, 10, 12, 0) 46%, rgba(6, 10, 12, 0.66) 100%),
		linear-gradient(90deg, rgba(6, 10, 12, 0.42) 0%, rgba(6, 10, 12, 0) 62%);
}

/* hero and project cards carry the copy on the left, so give that side a firmer scrim (real photos are brighter than flat art) */
.zd-hero__shade,
.zd-showcase__shade {
	background:
		linear-gradient(180deg, rgba(6, 10, 12, 0.5) 0%, rgba(6, 10, 12, 0) 26%, rgba(6, 10, 12, 0) 50%, rgba(6, 10, 12, 0.62) 100%),
		linear-gradient(90deg, rgba(6, 10, 12, 0.68) 0%, rgba(6, 10, 12, 0.36) 34%, rgba(6, 10, 12, 0) 68%);
}
.zd-showcase__title,
.zd-showcase__text { text-shadow: 0 1px 22px rgba(0, 0, 0, 0.5); }

/* content that drifts up and fades as the next card covers it */
.zd-layer {
	transform: translate3d(0, calc(var(--p, 0) * -10vh), 0);
	opacity: calc(1 - var(--p, 0) * 1.2);
}

/* dimming layer that darkens the covered card */
.zd-hero::after,
.zd-showcase::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 4;
	pointer-events: none;
	background: #040709;
	opacity: calc(var(--p, 0) * 0.62);
}

/* hero */
.zd-hero__content {
	position: absolute;
	inset: 0;
	z-index: 3;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 0 var(--zd-gutter) clamp(84px, 18vh, 200px);
}
.zd-hero__inner { width: fit-content; max-width: 100%; }
.zd-hero__title {
	max-width: 9.6em;
	font-size: clamp(2.7rem, 5.6vw, 5.8rem);
	line-height: 0.98;
	letter-spacing: -0.02em;
	text-shadow: 0 2px 40px rgba(0, 0, 0, 0.35);
}
.zd-hero__scroll {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: clamp(22px, 4vh, 40px);
	font: 500 10px/1 var(--zd-sans);
	letter-spacing: 0.26em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.85);
}
.zd-hero__rule { flex: 1; min-width: 40px; height: 1px; background: rgba(255, 255, 255, 0.55); }
.js .zd-hero__rule { transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--zd-ease) 0.9s; }
.js .is-ready .zd-hero__rule { transform: none; }
.zd-hero__scroll a { transition: opacity 0.3s; }
.zd-hero__scroll a:hover { opacity: 0.65; }

/* showcase */
.zd-showcase__body {
	position: absolute;
	inset: 0;
	z-index: 3;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 0 var(--zd-gutter);
}
.zd-showcase__title {
	max-width: 14ch;
	font-size: clamp(2.2rem, 4vw, 4rem);
	line-height: 1;
}
.zd-showcase__title a { background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size 0.6s var(--zd-ease); }
.zd-showcase__title a:hover { background-size: 100% 1px; }
.zd-showcase__text {
	max-width: 46ch;
	margin-top: clamp(14px, 2.4vh, 22px);
	font-size: 15px;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.86);
}
.zd-showcase__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(22px, 3.4vh, 34px); }

/* the previous card's text should not take clicks once covered */
.zd-showcase[style*="--p: 1"] .zd-layer,
.zd-hero[style*="--p: 1"] .zd-layer { pointer-events: none; }

/* 7 · About -------------------------------------------------------------- */
.zd-about {
	position: relative;
	display: grid;
	align-items: start;
	padding: clamp(72px, 12vh, 130px) var(--zd-gutter) clamp(72px, 12vh, 130px);
	background: var(--zd-paper);
	border-radius: var(--zd-radius) var(--zd-radius) 0 0;
}
.zd-about__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: clamp(36px, 6.5vw, 120px);
	align-items: center;
	width: 100%;
	max-width: 1500px;
	margin-inline: auto;
}
.zd-about__title { max-width: 13.2em; font-size: clamp(2.1rem, 3.8vw, 3.8rem); line-height: 1.04; }
.zd-about__text { max-width: 50ch; margin-top: clamp(18px, 3vh, 30px); color: var(--zd-mute); font-size: 15.5px; }
.zd-about__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: clamp(24px, 4vh, 38px); }
.zd-about__figure {
	position: relative;
	margin: 0;
	aspect-ratio: 16 / 11;
	overflow: hidden;
	border-radius: 12px;
	background: var(--zd-paper-2);
	box-shadow: 0 40px 70px -40px rgba(13, 18, 20, 0.5), 0 0 0 1px rgba(13, 18, 20, 0.05);
}
.zd-about__figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--zd-ease); }
.zd-about__figure:hover img { transform: scale(1.04); }

.zd-avatars { display: flex; margin-top: clamp(26px, 4.4vh, 44px); list-style: none; }
.zd-avatars li {
	width: 34px; height: 34px;
	margin-left: -9px;
	border: 2px solid var(--zd-paper);
	border-radius: 50%;
	overflow: hidden;
	background: var(--zd-paper-2);
}
.zd-avatars li:first-child { margin-left: 0; }
.zd-avatars img { width: 100%; height: 100%; object-fit: cover; }
.zd-avatars__ph { display: grid; place-items: center; color: rgba(255, 255, 255, 0.85); }
.zd-avatars__ph svg { width: 20px; height: 20px; margin-top: 5px; }
.zd-avatars__ph--1 { background: #5b6d72; }
.zd-avatars__ph--2 { background: #8a7460; }
.zd-avatars__ph--3 { background: #3f5558; }
.zd-avatars__ph--4 { background: #a58a70; }
.zd-avatars__ph--5 { background: #4a5a66; }

/* 8 · Recent grid -------------------------------------------------------- */
.zd-showcases { position: relative; }

.zd-recent {
	position: relative;
	min-height: var(--zd-vh);
	padding: clamp(56px, 9vh, 110px) var(--zd-gutter) calc(clamp(72px, 11vh, 130px) + var(--zd-radius));
	background: var(--zd-paper);
	border-radius: var(--zd-radius) var(--zd-radius) 0 0;
}
.zd-recent__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	max-width: 1500px;
	margin: 0 auto clamp(24px, 4vh, 44px);
}
.zd-recent__title { font-size: clamp(2.1rem, 3.6vw, 3.6rem); }
.zd-recent__text { max-width: 52ch; margin-top: 14px; color: var(--zd-mute); font-size: 14.5px; }

.zd-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(12px, 1.4vw, 22px);
	max-width: 1500px;
	margin-inline: auto;
}

.zd-card { position: relative; border-radius: 12px; overflow: hidden; background: var(--zd-ink-2); color: #fff; isolation: isolate; }
.zd-card__link { position: relative; display: block; aspect-ratio: 16 / 10; }
/* an odd last card spans the row instead of leaving a gap */
@media (min-width: 901px) {
	.zd-grid > .zd-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
	.zd-grid > .zd-card:last-child:nth-child(odd) .zd-card__link { aspect-ratio: 21 / 8; }
}
.zd-card__media { position: absolute; inset: 0; }
.zd-card__media .zd-cover { transition: transform 1.4s var(--zd-ease); }
.zd-card:hover .zd-card__media .zd-cover { transform: scale(1.06); }
.zd-card__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(6, 10, 12, 0.6) 0%, rgba(6, 10, 12, 0.08) 40%, rgba(6, 10, 12, 0.72) 100%);
}
.zd-card__top { position: absolute; top: clamp(18px, 2.2vw, 30px); left: clamp(18px, 2.2vw, 30px); right: 64px; display: grid; gap: 12px; justify-items: start; }
.zd-card__title { font-size: clamp(1.5rem, 2.1vw, 2.15rem); line-height: 1.05; }
.zd-card__text {
	position: absolute;
	left: clamp(18px, 2.2vw, 30px);
	right: clamp(18px, 2.2vw, 30px);
	bottom: clamp(16px, 2vw, 26px);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	max-width: 62ch;
	font-size: 13px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.88);
}
.zd-card__go {
	position: absolute;
	top: clamp(16px, 2vw, 26px);
	right: clamp(16px, 2vw, 26px);
	display: grid;
	place-items: center;
	width: 38px; height: 38px;
	border-radius: 50%;
	background: #fff;
	color: var(--zd-ink);
	opacity: 0;
	transform: scale(0.7) rotate(-20deg);
	transition: opacity 0.5s var(--zd-ease), transform 0.5s var(--zd-ease);
}
.zd-card:hover .zd-card__go,
.zd-card__link:focus-visible .zd-card__go { opacity: 1; transform: none; }

/* 9 · Call to action ----------------------------------------------------- */
.zd-cta {
	position: relative;
	display: flex;
	align-items: center;
	min-height: var(--zd-vh);
	margin-top: calc(var(--zd-radius) * -1);
	overflow: hidden;
	isolation: isolate;
	background: #10202a;
	color: #fff;
	border-radius: var(--zd-radius) var(--zd-radius) 0 0;
}
.zd-cta__shade { background: linear-gradient(90deg, rgba(8, 14, 18, 0.62) 0%, rgba(8, 14, 18, 0.1) 70%), linear-gradient(180deg, rgba(8, 14, 18, 0.25), rgba(8, 14, 18, 0.5)); }
.zd-cta__body { position: relative; z-index: 3; padding: 0 var(--zd-gutter); max-width: 900px; }
.zd-cta__title { font-size: clamp(2.4rem, 5vw, 5rem); line-height: 1; max-width: 15ch; }
.zd-cta__text { max-width: 44ch; margin: clamp(16px, 2.6vh, 26px) 0 clamp(24px, 4vh, 38px); color: rgba(255, 255, 255, 0.86); }

/* 10 · Footer ------------------------------------------------------------ */
.zd-footer {
	position: relative;
	overflow: hidden;
	padding-top: clamp(64px, 10vh, 120px);
	background: var(--zd-ink);
	color: rgba(255, 255, 255, 0.7);
}
.zd-footer__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
	gap: clamp(40px, 7vw, 120px);
	max-width: 1500px;
	margin-inline: auto;
	padding: 0 var(--zd-gutter);
}
.zd-footer__intro { display: grid; gap: 22px; justify-items: start; align-content: start; }
.zd-footer__intro p { max-width: 38ch; font-size: 15px; }
.zd-brand--footer .zd-wordmark { font-size: 18px; }
.zd-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 32px; }
.zd-footer__h { margin-bottom: 18px; font: 600 10.5px/1 var(--zd-sans); letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255, 255, 255, 0.42); }
.zd-footer__list,
.zd-footer .zd-menu { display: grid; gap: 10px; list-style: none; font-size: 15px; }
.zd-footer a:not(.zd-btn) { color: rgba(255, 255, 255, 0.86); transition: color 0.3s; }
.zd-footer a:not(.zd-btn):hover { color: var(--zd-accent); }
.zd-footer .zd-icon { display: inline-block; margin-left: 4px; opacity: 0.6; }
.zd-footer__addr { line-height: 1.6; }
.zd-footer__mute, .zd-footer__mute a { color: rgba(255, 255, 255, 0.5); }
.zd-footer__bar {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px 24px;
	max-width: 1500px;
	margin: clamp(56px, 9vh, 100px) auto 0;
	padding: 22px var(--zd-gutter);
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 12.5px;
	color: rgba(255, 255, 255, 0.5);
}
.zd-totop { display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: 0.16em; font-size: 10.5px; font-weight: 600; }
.zd-footer__mark {
	margin-top: clamp(8px, 2vh, 24px);
	padding: 0 var(--zd-gutter) 0;
	font: 500 clamp(3rem, 11.4vw, 17rem)/0.82 var(--zd-serif);
	letter-spacing: -0.02em;
	text-transform: uppercase;
	text-align: center;
	white-space: nowrap;
	color: rgba(255, 255, 255, 0.055);
	user-select: none;
	transform: translateY(0.12em);
}

.zd-adminpill {
	position: fixed;
	left: 16px; bottom: 16px;
	z-index: 120;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 16px;
	border-radius: 99px;
	background: #fff;
	color: var(--zd-ink);
	font: 600 11.5px/1 var(--zd-sans);
	box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.4);
}

/* 11 · Inner pages ------------------------------------------------------- */
.zd-pagehead {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 52vh;
	padding: calc(120px + 5vh) var(--zd-gutter) clamp(84px, 13vh, 160px);
	background:
		radial-gradient(60% 90% at 88% 108%, rgba(232, 168, 105, 0.5), transparent 70%),
		linear-gradient(165deg, #0c1c21 0%, #173036 58%, #3a4a4c 120%);
	color: #fff;
}
.zd-pagehead__inner { width: 100%; max-width: 1500px; margin-inline: auto; }
.zd-pagehead h1 { max-width: 16ch; font-size: clamp(2.6rem, 6.4vw, 6rem); line-height: 0.98; }
.zd-pagehead__lead { max-width: 52ch; margin-top: 20px; color: rgba(255, 255, 255, 0.78); font-size: 16px; }
.zd-pagehead .zd-eyebrow { color: rgba(255, 255, 255, 0.66); }

.zd-sheet {
	position: relative;
	padding: clamp(48px, 8vh, 96px) var(--zd-gutter) clamp(72px, 12vh, 140px);
	margin-top: calc(var(--zd-radius) * -1);
	background: var(--zd-paper);
	border-radius: var(--zd-radius) var(--zd-radius) 0 0;
}
.zd-sheet__inner { max-width: 1500px; margin-inline: auto; }

.entry-content { font-size: 17px; line-height: 1.75; }
.entry-content > * { max-width: 760px; margin-inline: auto; }
.entry-content > * + * { margin-top: 1.4em; }
.entry-content > .alignwide { max-width: 1200px; }
.entry-content > .alignfull { max-width: none; }
.entry-content h2 { margin-top: 2em; font-size: clamp(1.9rem, 3vw, 2.7rem); }
.entry-content h3 { margin-top: 1.8em; font-size: clamp(1.5rem, 2.2vw, 2rem); }
.entry-content a:not(.wp-block-button__link) { text-decoration: underline; text-decoration-color: var(--zd-accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.entry-content a:not(.wp-block-button__link):hover { color: var(--zd-accent); }
.entry-content blockquote { padding-left: 1.4em; border-left: 2px solid var(--zd-accent); font: italic 500 1.5rem/1.4 var(--zd-serif); }
.entry-content img { border-radius: 10px; }
.entry-content figcaption { margin-top: 10px; font-size: 13px; color: var(--zd-mute); }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li + li { margin-top: 0.4em; }
.entry-content .wp-block-button__link { border-radius: 99px; background: var(--zd-ink); color: #fff; padding: 0.85em 1.8em; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.entry-content .wp-block-gallery { gap: 12px; }
.entry-content .wp-block-gallery img { border-radius: 8px; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.entry-content th, .entry-content td { padding: 12px 10px; border-bottom: 1px solid var(--zd-line); text-align: left; }
.entry-content pre { overflow: auto; padding: 18px; border-radius: 10px; background: var(--zd-ink); color: #e9e6df; font-size: 14px; }
.entry-content hr { border: 0; border-top: 1px solid var(--zd-line); }

.zd-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 48px) clamp(16px, 2vw, 28px); }
.zd-post__media { display: block; aspect-ratio: 16 / 11; overflow: hidden; border-radius: 12px; background: var(--zd-paper-2); }
.zd-post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--zd-ease); }
.zd-post:hover .zd-post__media img { transform: scale(1.05); }
.zd-post__meta { margin-top: 16px; font: 600 10.5px/1 var(--zd-sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--zd-mute); }
.zd-post__title { margin-top: 10px; font-size: clamp(1.5rem, 2vw, 2rem); }
.zd-post__excerpt { margin-top: 10px; color: var(--zd-mute); font-size: 14.5px; }

.navigation.pagination { margin-top: clamp(40px, 7vh, 80px); }
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 16px; border: 1px solid var(--zd-line); border-radius: 99px; font: 600 12px/1 var(--zd-sans); letter-spacing: 0.06em; transition: background-color 0.3s, color 0.3s; }
a.page-numbers:hover { background: var(--zd-ink); color: #fff; }
.page-numbers.current { background: var(--zd-ink); color: #fff; border-color: var(--zd-ink); }

.zd-empty { max-width: 560px; margin: 0 auto; text-align: center; color: var(--zd-mute); }
.zd-empty h2 { margin-bottom: 14px; color: var(--zd-ink); font-size: clamp(2rem, 3vw, 2.8rem); }
.zd-empty .zd-btn { margin-top: 24px; }

.search-form { display: flex; gap: 8px; max-width: 480px; margin: 24px auto 0; }
.search-form label { flex: 1; }
.search-field { width: 100%; height: 46px; padding: 0 18px; border: 1px solid var(--zd-line); border-radius: 99px; background: #fff; font: inherit; }
.search-submit { height: 46px; padding: 0 22px; border: 0; border-radius: 99px; background: var(--zd-ink); color: #fff; font: 600 11px/1 var(--zd-sans); letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; }

/* comments */
.zd-comments { max-width: 760px; margin: clamp(56px, 9vh, 100px) auto 0; padding-top: 40px; border-top: 1px solid var(--zd-line); }
.zd-comments__title { font-size: 2rem; margin-bottom: 24px; }
.comment-list { list-style: none; display: grid; gap: 28px; }
.comment-list .children { list-style: none; margin: 24px 0 0 clamp(12px, 4vw, 40px); display: grid; gap: 24px; }
.comment-body { display: grid; gap: 8px; }
.comment-meta { font-size: 12.5px; color: var(--zd-mute); }
.comment-author .fn { font-style: normal; font-weight: 600; color: var(--zd-ink); }
.comment-author img { display: inline-block; margin-right: 10px; border-radius: 50%; vertical-align: middle; }
.reply a { font: 600 10.5px/1 var(--zd-sans); letter-spacing: 0.14em; text-transform: uppercase; }
.comment-respond { margin-top: 44px; }
.comment-reply-title { font: 500 1.8rem/1.1 var(--zd-serif); }

.entry-content .zd-lede { font: 500 clamp(1.5rem, 2.4vw, 2.1rem)/1.35 var(--zd-serif); color: var(--zd-ink); }
.zd-pages { display: flex; gap: 8px; }
.post-navigation { max-width: 760px; margin: clamp(48px, 8vh, 80px) auto 0; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; justify-content: stretch; gap: 16px; }
.post-navigation a { display: block; padding: 22px 24px; border: 1px solid var(--zd-line); border-radius: 14px; font: 500 1.35rem/1.2 var(--zd-serif); transition: background-color 0.4s var(--zd-ease), color 0.4s var(--zd-ease); }
.post-navigation a:hover { background: var(--zd-ink); color: #fff; }
.post-navigation small { display: block; margin-bottom: 10px; font: 600 10px/1 var(--zd-sans); letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.6; }
.post-navigation .nav-next { text-align: right; }

.zd-contact { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(36px, 7vw, 120px); align-items: start; }
.zd-contact__info .entry-content > * { max-width: none; }
.zd-contact__list { display: grid; gap: 26px; margin: clamp(24px, 4vh, 40px) 0 0; }
.zd-contact__list dt { font: 600 10px/1 var(--zd-sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--zd-mute); }
.zd-contact__list dd { margin: 10px 0 0; font: 500 1.5rem/1.3 var(--zd-serif); }
.zd-contact__list a:hover { color: var(--zd-accent); }
.zd-contact__form .zd-form-wrap { max-width: none; }

/* 12 · Projects ---------------------------------------------------------- */
.zd-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(28px, 5vh, 52px); }
.zd-filter { display: inline-flex; align-items: center; height: 38px; padding: 0 18px; border: 1px solid var(--zd-line); border-radius: 99px; font: 600 10.5px/1 var(--zd-sans); letter-spacing: 0.14em; text-transform: uppercase; transition: background-color 0.35s var(--zd-ease), color 0.35s var(--zd-ease), border-color 0.35s var(--zd-ease); }
.zd-filter:hover { border-color: var(--zd-ink); }
.zd-filter.is-active { background: var(--zd-ink); border-color: var(--zd-ink); color: #fff; }
.zd-grid--archive .zd-card__link { aspect-ratio: 4 / 3; }

.zd-phero { position: relative; display: flex; align-items: flex-end; min-height: 92vh; min-height: 92svh; overflow: hidden; isolation: isolate; background: var(--zd-ink); color: #fff; }
.zd-phero__media { position: absolute; inset: 0; }
.zd-phero .zd-cover { animation: zd-slow-zoom 2.4s var(--zd-ease) both; }
.zd-phero__shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(6, 10, 12, 0.55) 0%, rgba(6, 10, 12, 0) 30%, rgba(6, 10, 12, 0.1) 55%, rgba(6, 10, 12, 0.78) 100%); }
.zd-phero__body { position: relative; z-index: 2; width: 100%; max-width: 1500px; margin: 0 auto; padding: 0 var(--zd-gutter) clamp(90px, 14vh, 150px); }
.zd-phero__title { max-width: 14ch; font-size: clamp(2.8rem, 6.6vw, 6.4rem); line-height: 0.98; }
.zd-phero .zd-chips { margin-bottom: 22px; }
@keyframes zd-slow-zoom { from { transform: scale(1.12); } to { transform: none; } }

.zd-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 26px 32px; max-width: 1200px; margin: 0 auto clamp(40px, 7vh, 72px); padding: 30px 0; border-block: 1px solid var(--zd-line); }
.zd-meta dt { font: 600 10px/1 var(--zd-sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--zd-mute); }
.zd-meta dd { margin: 10px 0 0; font: 500 1.45rem/1.2 var(--zd-serif); }

.zd-next { display: block; max-width: 1200px; margin: clamp(56px, 9vh, 100px) auto 0; padding: clamp(28px, 5vw, 56px); border-radius: 18px; background: var(--zd-ink); color: #fff; transition: background-color 0.5s var(--zd-ease); }
.zd-next:hover { background: #1c2a2f; }
.zd-next small { display: block; font: 600 10.5px/1 var(--zd-sans); letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }
.zd-next strong { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 18px; font: 500 clamp(2rem, 4.4vw, 4rem)/1 var(--zd-serif); letter-spacing: -0.015em; }
.zd-next .zd-icon { width: 0.5em; height: 0.5em; transition: transform 0.5s var(--zd-ease); flex: none; }
.zd-next:hover .zd-icon { transform: translate(6px, -6px); }

/* 13 · Forms ------------------------------------------------------------- */
.zd-form-wrap { max-width: 760px; margin-inline: auto; }
.zd-form { display: grid; gap: 26px; }
.zd-form p { margin: 0; }
.zd-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.zd-form label { display: block; margin-bottom: 4px; font: 600 10.5px/1.4 var(--zd-sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--zd-mute); }
.zd-form input[type="text"], .zd-form input[type="email"], .zd-form input[type="tel"], .zd-form select, .zd-form textarea {
	width: 100%;
	padding: 12px 0;
	border: 0;
	border-bottom: 1px solid rgba(13, 18, 20, 0.28);
	border-radius: 0;
	background: transparent;
	color: var(--zd-ink);
	font: 400 17px/1.5 var(--zd-sans);
	transition: border-color 0.3s;
}
.zd-form textarea { resize: vertical; min-height: 140px; }
.zd-form input:focus, .zd-form select:focus, .zd-form textarea:focus { outline: 0; border-bottom-color: var(--zd-accent); box-shadow: 0 1px 0 var(--zd-accent); }
.zd-form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.zd-notice { margin-bottom: 26px; padding: 16px 20px; border-radius: 12px; font-size: 15px; }
.zd-notice--ok { background: #e7f1e6; color: #1f4a26; }
.zd-notice--err { background: #f8e7e2; color: #7a2a1b; }

/* 14 · Motion & responsive ---------------------------------------------- */
@media (max-width: 1100px) {
	.zd-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 901px) {
	.zd-hero__content { padding-left: max(var(--zd-gutter), 24vw); }
}

@media (max-width: 900px) {
	.zd-nav, .zd-header__cta { display: none; }
	.zd-burger { display: inline-block; }
	.zd-header__bar { grid-template-columns: 1fr auto; }
	.zd-header.is-scrolled .zd-header__bar, .zd-inner .zd-header__bar { padding: 6px 6px 6px 20px; }
	.zd-vlabel { display: none; }

	.zd-about__inner { grid-template-columns: 1fr; }
	.zd-about__figure { order: -1; }

	.zd-grid { grid-template-columns: 1fr; }
	.zd-recent__head { flex-direction: column; align-items: flex-start; }
	.zd-recent { min-height: 0; }

	.zd-footer__inner { grid-template-columns: 1fr; }
	.zd-contact { grid-template-columns: 1fr; }
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.zd-form__row { grid-template-columns: 1fr; }
	.zd-posts { grid-template-columns: 1fr; }
	.zd-hero__title { max-width: 11ch; }
}

@media (max-width: 560px) {
	.zd-card__text { -webkit-line-clamp: 2; }
	.zd-showcase__text { font-size: 14px; }
	.zd-cta { min-height: 78vh; }
}

/* set by an inline timer if main.js never ran: show everything, no animation.
   Kept last so it outranks the .js hiding rules above. */
.zd-failsafe [data-reveal] { opacity: 1; transform: none; transition: none; }
.zd-failsafe .zd-word > span,
.zd-failsafe .zd-hero__media .zd-cover,
.zd-failsafe .zd-hero__rule { transform: none; transition: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
	.js [data-reveal] { opacity: 1; transform: none; }
	.js .zd-word > span, .js .zd-hero__media .zd-cover, .js .zd-hero__rule { transform: none; }
	.zd-hero__media, .zd-showcase__media { transform: none; }
	.zd-layer { transform: none; opacity: 1; }
}

@media print {
	.zd-header, .zd-drawer, .zd-vlabel, body::after { display: none; }
	.zd-hero, .zd-showcase { position: relative; height: auto; min-height: 60vh; }
}
