/* Axori project detail page — builds on home.css + projects.css (brand, crumb, cursor, placeholder art) */

.pd-app > .brand,
.pd-app > .pd-titlegroup,
.pd-app > .pd-btn-fixed,
.pd-app > .pd-progress,
.pd-app > .axi-dock,
.pd-app > .axi-gear,
.pd-app > .axi-settings { z-index: 30; }

/* ---------- scroll container (the page body doesn't scroll in these templates) ---------- */
.pd-scroll {
	position: fixed;
	inset: 0;
	z-index: 1;
	overflow-x: hidden;
	overflow-y: auto;
	scrollbar-width: none;
	filter: blur(14px);
	opacity: 0.3;
	transition: filter 1.2s var(--ease), opacity 1.2s var(--ease);
}
.pd-scroll::-webkit-scrollbar { display: none; }
.axi-entered .pd-scroll { filter: none; opacity: 1; }
.pd-content { position: relative; }

/* reveal on scroll */
[data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- fixed title group (top right) ---------- */
.pd-titlegroup {
	position: fixed;
	top: 2.28rem;
	right: 2.5rem;
	text-align: right;
	mix-blend-mode: difference;
	transform-origin: right top;
	pointer-events: auto;
}
.pd-titlegroup .pj-crumb { margin-bottom: 0.5rem; }
.pd-titlegroup .pj-crumb .cur { max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-title-row {
	display: flex;
	align-items: stretch;
	justify-content: flex-end;
	gap: 1.5rem;
	transform-origin: right top;
	transition: transform 0.6s var(--ease);
}
.pd-title {
	margin: 0;
	font-family: var(--display);
	font-size: calc(96px * var(--s-title, 1));
	line-height: 1;
	font-weight: 700;
	text-transform: uppercase;
	color: rgb(var(--acc-l));
	max-width: 62vw;
}
.pd-back {
	display: grid;
	place-items: center;
	flex: none;
	aspect-ratio: 1;
	align-self: center;
	width: 4.2rem;
	padding: 0.625rem;
	border: 1px solid rgb(var(--acc-l) / 0.2);
	border-radius: 0.5rem;
	background: rgb(var(--acc-l) / 0.05);
	color: rgb(var(--acc-l));
	transition: background-color 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}
.pd-back svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pd-back:hover { background: rgb(var(--acc-l) / 0.12); border-color: rgb(var(--acc-l) / 0.45); transform: translateX(-3px); }
/* shrinks once the page scrolls */
.pd-scrolled .pd-title-row { transform: scale(0.5); }
.pd-scrolled .pd-titlegroup .pj-crumb { opacity: 0; transition: opacity 0.3s; }

/* ---------- buttons ---------- */
.pd-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 1rem;
	overflow: hidden;
	padding: 0.5rem 0.5rem 0.5rem 1.5rem;
	border: 1px solid rgb(var(--acc-l) / 0.1);
	border-radius: 0.5rem;
	background: rgb(var(--acc-l) / 0.05);
	font-family: var(--mono);
	color: rgb(var(--acc-l));
	transition: border-color 0.3s, background-color 0.3s;
}
.pd-btn-label { font-size: 14px; letter-spacing: 0.025em; }
.pd-btn-icon { display: grid; place-content: center; padding: 0.5rem; border-radius: 0.5rem; background: rgb(var(--acc-l)); color: #000; overflow: hidden; }
.pd-btn-icon svg { width: 1rem; height: 1rem; fill: none; stroke: #000; stroke-width: 1.6; stroke-linecap: round; transition: transform 0.4s var(--ease); }
.pd-btn:hover { border-color: rgb(var(--acc-l) / 0.35); background: rgb(var(--acc-l) / 0.1); }
.pd-btn:hover .pd-btn-icon svg { transform: translate(2px, -2px); }
.pd-btn-fixed { position: fixed !important; left: 2.5rem; bottom: 2rem; display: none; }

/* ---------- bottom progress track ---------- */
.pd-progress {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 2rem;
	display: none;
	width: max-content;
	height: 3.5rem;
	margin: 0 auto;
	align-items: center;
	gap: 0.75rem;
	opacity: 0;
	pointer-events: none !important;
	transition: opacity 0.5s;
}
.pd-scrolled .pd-progress { opacity: 1; }
.pd-track { position: relative; width: clamp(170px, 22vw, 300px); height: 1px; background: rgb(var(--acc-l) / 0.05); }
.pd-mark { position: absolute; top: 50%; width: 1px; height: 7px; background: rgb(var(--acc-l) / 0.1); transform: translate(-50%, -50%); }
.pd-pointer { position: absolute; top: 50%; left: 0; width: 32px; height: 6px; border-radius: 99px; background: rgb(var(--acc-l)); box-shadow: 0 0 10px rgb(var(--acc-l) / 0.55); transform: translate(-50%, -50%); }

/* ================================================================
   CASE-STUDY COVER (.pc-*)
   A project opens with the work itself: a full-bleed image with the
   title sitting on it, then a sticky bar of specs that stays with the
   reader. This is deliberately the opposite of a post, which opens
   with a centred masthead and no image above the title.
   ================================================================ */
.axi-pj:not(.axi-bd) .pd-titlegroup { display: none; }

/* the back control keeps its corner now that the title block has gone */
.pc-back {
	position: fixed;
	top: 1.6rem;
	right: 1.75rem;
	z-index: 30;
}

.axi-pj:not(.axi-bd) .pd-progress,
.axi-pj:not(.axi-bd) .pd-pill { display: none; }

/* The wordmark and the back control are fixed over the page, so scrolling
   content used to slide out from under them mid-word. This fades it away
   first. */
.axi-pj:not(.axi-bd) .pd-app::before {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 5.5rem;
	z-index: 20;
	pointer-events: none;
	background: linear-gradient(rgb(var(--bg)) 42%, rgb(var(--bg) / 0.86) 68%, transparent);
}
.axi-pj:not(.axi-bd) .pj-brand { z-index: 31; }

/* Fluid container: the page tracks the viewport between a comfortable
   minimum and a wide ceiling instead of locking to one width, and the
   side gutter grows with it. */
.axi-pj:not(.axi-bd) {
	/* narrower than it was: with no rail beside it the copy runs the whole
	   width, and 104rem of it was far too long a line to track */
	--pc-max: 78rem;
	--pc-gut: clamp(1.15rem, 4vw, 3.5rem);
}

/* ---------- header ---------- */
.pc-head {
	position: relative;
	z-index: 2;
	width: min(100%, var(--pc-max));
	margin: 0 auto;
	padding: 8.5rem var(--pc-gut) 2.5rem;
}
/* the shared crumb is right-aligned for the fixed corner block; here it
   leads the page, so it runs from the left */
.pc-crumb { justify-content: flex-start; margin-bottom: 2rem; font-size: 10px; letter-spacing: 0.2em; }
.axi-pj p.pc-eyebrow {
	margin: 0 0 1rem !important;
	font-family: var(--mono);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.26em;
	text-transform: uppercase;
	color: rgb(var(--acc) / 0.9);
}
.pc-title {
	margin: 0 0 1.2rem;
	font-family: var(--display);
	font-size: clamp(38px, 5.6vw, 84px);
	line-height: 0.98;
	font-weight: 700;
	text-transform: uppercase;
	color: rgb(var(--acc-l));
}
.axi-pj p.pc-sub {
	max-width: 54ch;
	margin: 0 0 2rem !important;
	font-family: var(--sans);
	font-size: 18px;
	line-height: 1.7;
	color: rgb(var(--acc-l) / 0.66);
}
.pc-cta { display: inline-flex; }

/* the facts stated once, large, before the reader has to look for them */
.pc-strip {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
	gap: 0;
	margin: 3rem 0 0;
	border-top: 1px solid rgb(var(--acc-l) / 0.14);
	border-bottom: 1px solid rgb(var(--acc-l) / 0.14);
}
.pc-strip > div { padding: 1.1rem 1.25rem 1.2rem 0; }
.pc-strip > div + div { padding-left: 1.5rem; border-left: 1px solid rgb(var(--acc-l) / 0.1); }
.pc-strip dt {
	margin-bottom: 0.4rem;
	font-family: ui-monospace, Consolas, monospace;
	font-size: 9.5px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: rgb(var(--acc-l) / 0.4);
}
/* Four columns need about 900px before the longer values start wrapping to
   three lines; below that the strip goes two up. */
@media (max-width: 899px) {
	/* wrapped onto two rows the "every item but the first" rule indents the
	   start of each new row, so the divider follows the column instead */
	.pc-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pc-strip > div,
	.pc-strip > div + div { padding: 0.9rem 1rem 1rem; border-left: 0; }
	.pc-strip > div:nth-child(2n) { border-left: 1px solid rgb(var(--acc-l) / 0.1); }
	.pc-strip > div:nth-child(n + 3) { border-top: 1px solid rgb(var(--acc-l) / 0.1); }
	.pc-strip > div:nth-child(2n + 1) { padding-left: 0; }
}
.pc-strip dd {
	margin: 0;
	font-family: var(--mono);
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1.45;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: rgb(var(--acc-l) / 0.9);
}

/* ---------- body: facts rail + written case study ---------- */
.pc-wrap {
	position: relative;
	z-index: 2;
	display: grid;
	gap: 2.5rem;
	width: min(100%, var(--pc-max));
	margin: 0 auto;
	padding: 2rem var(--pc-gut) 7rem;
}
.pc-panel {
	padding: 1.25rem 1.35rem 1.4rem;
	border: 1px solid rgb(var(--acc-l) / 0.14);
	background: rgb(var(--acc) / 0.03);
}
.pc-specs { margin: 0; padding: 0; list-style: none; }
.pc-specs li {
	display: flex;
	flex-direction: column;
	gap: 5px;
	padding: 0.65rem 0;
	border-bottom: 1px dashed rgb(var(--acc-l) / 0.12);
}
.pc-specs li:first-child { padding-top: 0; }
.pc-specs li:last-child { border-bottom: 0; padding-bottom: 0; }
.pc-fact-k {
	font-family: ui-monospace, Consolas, monospace;
	font-size: 10px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: rgb(var(--acc-l) / 0.52);
}
.pc-fact-v {
	font-family: var(--mono);
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: rgb(var(--acc-l) / 0.9);
}
.pc-panel-b { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid rgb(var(--acc-l) / 0.14); }
.pc-panel-b .pc-fact-k { display: block; margin-bottom: 0.7rem; }
.pc-panel-b .pd-swatches { margin: 0; gap: 0.5rem; }
/* the palette is more useful with its values printed than as bare squares */
.pc-pal { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.pc-pal li { display: flex; align-items: center; gap: 0.6rem; }
.pc-pal .pd-swatch { width: 1rem; height: 1rem; flex: none; }
.pc-pal code {
	font-family: var(--mono);
	font-size: 10.5px;
	letter-spacing: 0.1em;
	color: rgb(var(--acc-l) / 0.6);
}
.axi-pj a.pc-link {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-family: var(--mono);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	overflow-wrap: anywhere;
	color: rgb(var(--acc-l) / 0.85);
	background-image: linear-gradient(rgb(var(--acc)), rgb(var(--acc)));
	background-repeat: no-repeat;
	background-position: 0 100%;
	background-size: 0 1px;
	transition: background-size 0.4s var(--ease), color 0.3s;
}
.axi-pj a.pc-link:hover { color: rgb(var(--acc-l)); background-size: 100% 1px; }

/* ---- jump list: a plain row of chapter links, not a pinned panel ---- */
.pc-jump {
	margin-top: 1.5rem;
	padding-top: 1.35rem;
	border-top: 1px solid rgb(var(--acc-l) / 0.12);
}
.pc-jump .pc-fact-k { display: block; margin-bottom: 0.85rem; }
.pc-jump ul { margin: 0; padding: 0; list-style: none; }
.axi-pj .pc-jump a {
	display: flex;
	gap: 0.7rem;
	padding: 0.4rem 0;
	font-family: var(--mono);
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgb(var(--acc-l) / 0.55);
	transition: color 0.3s;
}
.axi-pj .pc-jump a:hover { color: rgb(var(--acc-l)); }
.axi-pj .pc-jump a.is-now { color: rgb(var(--acc)); }
.pc-jump a span { color: rgb(var(--acc-l) / 0.28); }

.axi-pj p.pc-count {
	margin: 1.15rem 0 0 !important;
	font-family: var(--mono);
	font-size: 9.5px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: rgb(var(--acc-l) / 0.32);
}

.axi-pj a.pc-allwork {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	margin-top: 0.85rem;
	font-family: var(--mono);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: rgb(var(--acc-l) / 0.55);
	transition: color 0.3s, gap 0.4s var(--ease);
}
.axi-pj a.pc-allwork:hover { gap: 1rem; color: rgb(var(--acc-l)); }

/* ---------- numbered sections ---------- */
.pc-main { min-width: 0; }
.pc-sec + .pc-sec { margin-top: 3rem; }
.pc-sec-h {
	display: flex;
	align-items: baseline;
	gap: 0.9rem;
	margin: 0 0 1.1rem;
	padding-bottom: 0.85rem;
	border-bottom: 1px solid rgb(var(--acc-l) / 0.14);
	font-family: var(--display);
	font-size: clamp(22px, 2.2vw, 30px);
	line-height: 1.1;
	font-weight: 700;
	text-transform: uppercase;
	color: rgb(var(--acc-l) / 0.95);
}
.pc-sec-n {
	flex: none;
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.2em;
	color: rgb(var(--acc) / 0.9);
}
/* full width: the copy runs the whole container now that nothing sits beside it */
.pc-sec-b { font-family: var(--sans); font-size: clamp(16px, 0.42vw + 15px, 18px); line-height: 1.8; color: rgb(var(--acc-l) / 0.75); }
.axi-pj .pc-sec-b p { margin: 0 0 1.1em !important; }
.axi-pj .pc-sec-b p:last-child { margin-bottom: 0 !important; }
/* the opening paragraph of each chapter carries a little more weight, so a
   long case study still has a shape when you are skimming it */
.axi-pj .pc-sec-b p:first-child {
	font-size: 1.08em;
	line-height: 1.7;
	color: rgb(var(--acc-l) / 0.88);
}
.axi-pj .pc-sec-b blockquote {
	margin: 1.6em 0;
	padding: 0.2em 0 0.2em 1.4rem;
	border-left: 2px solid rgb(var(--acc) / 0.7);
	font-family: var(--slab);
	font-size: 1.1em;
	line-height: 1.55;
	color: rgb(var(--acc-l) / 0.92);
}

/* one picture, not a gallery — it sits in the header beside the lockup */
.pc-shot { margin: 2.5rem 0 0; }
.pc-shot-btn {
	display: block;
	width: 100%;
	padding: 0;
	border: 1px solid rgb(var(--acc-l) / 0.12);
	background: none;
	cursor: zoom-in;
}
.pc-shot-btn img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.axi-pj .pc-shot figcaption {
	margin-top: 0.7rem;
	font-family: var(--mono);
	font-size: 9.5px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: rgb(var(--acc-l) / 0.32);
}

/* ---------- reel: the gallery as one drifting row of equal frames ---------- */
.pc-reel {
	position: relative;
	margin: 3rem 0 3.25rem;
	/* stays inside the container; the ends fade so the loop has no visible seam */
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.pc-reel .track { display: flex; width: max-content; animation: ticker var(--dur, 40s) linear infinite; }
.pc-reel .grp { display: flex; gap: 0.9rem; padding-right: 0.9rem; }
.pc-reel:hover .track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
	.pc-reel .track { animation: none; }
	.pc-reel { overflow-x: auto; scrollbar-width: none; }
	.pc-reel::-webkit-scrollbar { height: 0; }
}
/* every frame identical, so nothing sits at a different height */
.pc-reel .pc-plate { flex: none; width: clamp(19rem, 30vw, 34rem); }
.pc-reel .pc-plate img { aspect-ratio: 16 / 9; height: auto; }

/* ---------- grids: the same frames in different arrangements ---------- */
.pc-grid { display: grid; gap: 0.9rem; margin: 2.75rem 0 3rem; }
/* one aspect per block, so every frame in a row is exactly the same height */
.pc-grid-1 .pc-plate img { aspect-ratio: 21 / 9; }
.pc-grid-2 .pc-plate img { aspect-ratio: 4 / 3; }
.pc-grid-3 .pc-plate img { aspect-ratio: 1; }
@media (min-width: 700px) {
	.pc-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pc-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 699px) {
	.pc-grid-2 .pc-plate img,
	.pc-grid-3 .pc-plate img { aspect-ratio: 16 / 10; }
}

.pc-plate {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	overflow: hidden;
	border: 1px solid rgb(var(--acc-l) / 0.12);
	background: rgb(var(--acc) / 0.03);
	cursor: zoom-in;
}
.pc-plate img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* monochrome at rest like the rest of the site; the one you point at
	   comes back to life */
	filter: grayscale(1) contrast(1.05) brightness(0.92);
	transition: filter 0.5s var(--ease), transform 0.7s var(--ease);
}
.pc-plate:hover img { filter: none; transform: scale(1.03); }
.pc-plate:focus-visible { outline: 1px solid rgb(var(--acc)); outline-offset: 3px; }
.pc-plate-r {
	position: absolute;
	left: 0.7rem;
	bottom: 0.6rem;
	padding: 0.2rem 0.45rem;
	background: rgb(var(--bg) / 0.72);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	font-family: var(--mono);
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.2em;
	color: rgb(var(--acc-l) / 0.75);
}

.axi-pj p.pc-rights {
	max-width: 66ch;
	margin: 2.5rem 0 0 !important;
	padding: 0;
	font-family: var(--mono);
	font-size: 12px;
	font-style: italic;
	color: rgb(var(--acc-l) / 0.45);
}

/* ---------- foot ---------- */
.pc-end {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 3.5rem;
	padding-top: 2.25rem;
	border-top: 1px solid rgb(var(--acc-l) / 0.12);
}
.axi-pj a.pc-end-b {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.8rem 1.2rem;
	border: 1px solid rgb(var(--acc-l) / 0.2);
	font-family: var(--mono);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: rgb(var(--acc-l) / 0.8);
	transition: color 0.3s, border-color 0.3s, background 0.3s, gap 0.4s var(--ease);
}
.axi-pj a.pc-end-b:hover { gap: 1rem; color: #000; background: rgb(var(--acc-l)); border-color: rgb(var(--acc-l)); }
.axi-pj a.pc-end-live { border-color: rgb(var(--acc) / 0.5); color: rgb(var(--acc-l)); }

@media (min-width: 1000px) {
	/* lockup left, the screenshot filling what used to be dead space right */
	.pc-head {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
		align-items: end;
		gap: clamp(2.5rem, 4.5vw, 6rem);
		padding-top: 9.5rem;
		padding-bottom: 3rem;
	}
	.pc-head-l { min-width: 0; }
	.pc-shot { margin: 0; }
	.pc-shot-btn img { aspect-ratio: 4 / 3; }
	/* the fact strip runs the full width underneath both */
	.pc-strip { grid-column: 1 / -1; margin-top: 1rem; }
	/* One column: the facts run across the top as a band and the writing gets
	   the full width underneath. Nothing is pinned. */
	.pc-wrap {
		gap: 3rem;
		padding-top: 2.5rem;
		padding-bottom: 9rem;
	}
	/* two clearly separated bands: the plain facts across the top, the richer
	   panels underneath, with a rule and real air between them */
	.pc-panel { padding: 2rem 2.25rem 2.25rem; }
	.pc-specs {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
		gap: 0 2.5rem;
		padding: 0 0 1.9rem;
		border-bottom: 1px solid rgb(var(--acc-l) / 0.14);
	}
	.pc-specs li { gap: 0.55rem; padding: 0; border-bottom: 0; }
	.pc-specs li + li { padding-left: 0; border-left: 0; }
	/* flex rather than auto-fit: with three panels a five-track grid left two
	   empty columns and the row read as lopsided. These share the row evenly. */
	.pc-panels {
		display: flex;
		flex-wrap: wrap;
		gap: 2rem 2.5rem;
		padding-top: 1.9rem;
	}
	.pc-panels > .pc-panel-b { flex: 1 1 13rem; min-width: 0; }
	.pc-panel-b { margin-top: 0; padding-top: 0; border-top: 0; }
	.pc-panel-b .pc-fact-k { margin-bottom: 0.9rem; }
	.pc-jump ul { display: flex; flex-wrap: wrap; gap: 0.35rem 1.75rem; }
	.pc-sec + .pc-sec { margin-top: 3.75rem; }
}
@media (max-width: 767px) {
	.pc-back { top: 1rem; right: 1rem; width: 2.6rem; }
	.pc-head { padding-top: 6.5rem; padding-bottom: 2rem; }
	.pc-wrap { padding-bottom: 5rem; }
	.pc-shot-btn img { aspect-ratio: 4 / 3; }
	.pc-end-b { flex: 1 1 100%; justify-content: center; }
}

/* ---------- hero ---------- */
.pd-hero {
	position: relative;
	z-index: 2;
	display: grid;
	padding: 9rem 1.25rem 5rem;
}
.pd-ov-title {
	display: none;
	width: fit-content;
	margin: 0 0 0.75rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid rgb(var(--acc-l) / 0.2);
	font-family: var(--mono);
	font-size: 1rem;
	line-height: 1.5rem;
	font-weight: 700;
	color: rgb(var(--acc-l));
}
/* the brief is the one place on these pages that is read rather than scanned,
   so it is set in the sans face at body size instead of narrow mono */
.pd-ov {
	width: auto;
	max-width: 62ch;
	margin-bottom: 2.5rem;
	font-family: var(--sans);
	font-size: 16.5px;
	line-height: 1.75;
	color: rgb(var(--acc-l) / 0.78);
}
.pd-ov p { margin: 0 0 1em !important; }
.pd-rights { padding-bottom: 4rem; font-family: var(--mono); font-size: 14px; font-style: italic; color: rgb(var(--acc-l) / 0.8); }
.pd-keys {
	display: none;
	grid-template-columns: repeat(3, 1.25rem);
	grid-template-rows: repeat(2, 1.25rem);
	gap: 0.125rem;
	width: fit-content;
	margin-top: 3rem;
}
.pd-key { display: grid; place-content: center; border-radius: 0.125rem; border: 1px solid rgb(var(--acc) / 0.8); }
.pd-key svg { width: 8px; height: 8px; fill: rgb(var(--acc)); }
.pd-key.k-up { grid-column: 2; grid-row: 1; opacity: 0.25; }
.pd-key.k-left { grid-column: 1; grid-row: 2; border-color: rgb(var(--acc-l) / 0.4); }
.pd-key.k-left svg, .pd-key.k-right svg { fill: rgb(var(--acc-l)); }
.pd-key.k-down { grid-column: 2; grid-row: 2; opacity: 0.25; }
.pd-key.k-right { grid-column: 3; grid-row: 2; border-color: rgb(var(--acc-l) / 0.4); }

/* The dossier reads as a spec sheet: one fact per row, label left and value
   right against a dotted leader, inside a bordered panel. Two loose columns
   of stacked label/value pairs were hard to scan and left the hero half empty. */
.pd-hero-r { margin-top: 2.5rem; }
.pd-dossier {
	width: 100%;
	padding: 20px 22px 24px;
	border: 1px solid rgb(var(--acc-l) / 0.14);
	background: rgb(var(--acc) / 0.03);
}
.pd-dl { display: block; margin: 0; padding: 0; list-style: none; }
.pd-di {
	display: flex;
	flex-direction: row;
	align-items: baseline;
	justify-content: space-between;
	gap: 18px;
	min-width: 0;
	padding: 11px 0;
	border: 0;
	border-bottom: 1px dashed rgb(var(--acc-l) / 0.12);
}
.pd-di:last-child { border-bottom: 0; }
.pd-dlabel { margin: 0; font-family: ui-monospace, Consolas, monospace; font-size: 10px; text-transform: uppercase; letter-spacing: 0.2em; color: rgb(var(--acc-l) / 0.4); }
.pd-dvalue { max-width: 62%; font-family: var(--mono); font-size: 12px; line-height: 1.4; font-weight: 700; text-transform: uppercase; letter-spacing: 0.025em; text-align: right; overflow-wrap: anywhere; color: rgb(var(--acc-l) / 0.9); }
.pd-ds { display: flex; flex-direction: column; align-items: flex-start; margin-top: 22px; padding-top: 20px; border-top: 1px solid rgb(var(--acc-l) / 0.14); }
.pd-ds-title { margin-bottom: 1rem; font-family: ui-monospace, Consolas, monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em; color: rgb(var(--acc-l) / 0.4); }
.pd-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pd-chip {
	white-space: nowrap;
	padding: 0.25rem 0.75rem;
	border: 1px solid rgb(var(--acc-l) / 0.1);
	border-radius: 0.375rem;
	background: rgb(var(--acc-l) / 0.05);
	font-family: var(--mono);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	color: rgb(var(--acc-l) / 0.8);
	transition: border-color 0.3s, color 0.3s;
}
.pd-chip:hover { border-color: rgb(var(--acc) / 0.5); color: rgb(var(--acc-l)); }
.pd-swatches { display: flex; gap: 0.75rem; margin-top: 0.5rem; }
.pd-swatch { width: 1.25rem; height: 1.25rem; border: 1px solid rgb(var(--acc-l) / 0.2); border-radius: 0.125rem; box-shadow: 0 1px 3px rgb(0 0 0 / 0.4); }

/* ---------- title marquee ---------- */
.pd-marquee {
	position: relative;
	z-index: 2;
	overflow: hidden;
	padding: 0.5rem 0;
	border-top: 1px solid rgb(var(--acc) / 0.8);
	border-bottom: 1px solid rgb(var(--acc) / 0.8);
	opacity: 0.8;
}
.pd-marquee .track,
.pd-band .track { display: flex; width: max-content; animation: ticker var(--dur, 30s) linear infinite; will-change: transform; }
.pd-marquee .grp { display: flex; }
.pd-mq-item { padding: 0 2rem; font-family: var(--display); font-size: 24px; line-height: 1; font-weight: 700; text-transform: uppercase; white-space: nowrap; color: rgb(var(--acc-l)); }

/* ---------- walkthrough ---------- */
.pd-show { position: relative; z-index: 2; }
.pd-walk { display: flex; flex-direction: column; gap: 2rem; margin: 3rem 0; padding: 0 1.25rem; }
.pd-big { margin: 0 0 2.5rem; font-family: var(--display); font-size: 60px; line-height: 1; font-weight: 700; text-transform: uppercase; color: rgb(var(--acc-l)); }
.pd-walk-text { font-family: var(--mono); font-size: 16px; line-height: 1.5; color: rgb(var(--acc-l) / 0.8); }
.pd-walk-text p { margin: 0 0 1em !important; }
.pd-index { font-family: var(--mono); }
.pd-index-label { display: block; margin-bottom: 1rem; font-size: 11px; letter-spacing: 0.2em; color: rgb(var(--acc-l) / 0.4); }
.pd-index ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.pd-index a { font-size: 12px; letter-spacing: 0.05em; color: rgb(var(--acc-l) / 0.6); transition: color 0.3s, padding-left 0.4s var(--ease); }
.pd-index a:hover { color: rgb(var(--acc-l)); padding-left: 6px; }

/* ---------- media cards ---------- */
.pd-grid { display: grid; gap: 3rem 2.5rem; padding: 0 1.25rem; margin-bottom: 3rem; }
.pd-card {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 0.5rem !important;
	background: rgb(0 0 0 / 0.4) !important;
	cursor: pointer;
}
.pd-card-media { position: absolute; inset: 0; display: block; transition: transform 0.8s var(--ease); }
.pd-card-media img,
.pd-card-media video,
.pd-card-media .pj-ph { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; }
.pd-card-media .pj-ph,
.pd-next-float .pj-ph { display: grid; place-items: center; }
.pd-card-media .pj-ph span { font-size: 28px; }
.pd-card:hover .pd-card-media { transform: scale(1.03); }
.pd-card-scan {
	position: absolute;
	left: 0;
	top: -10%;
	z-index: 2;
	width: 100%;
	height: 1px;
	background: rgb(var(--acc-l) / 0.35);
	box-shadow: 0 0 10px rgb(var(--acc-l) / 0.3);
	opacity: 0;
	transition: opacity 0.5s;
}
.pd-card:hover .pd-card-scan { opacity: 1; animation: pj-scan 6s linear infinite; }
.pd-card-ref {
	position: absolute;
	right: 1.5rem;
	bottom: 1.5rem;
	z-index: 3;
	font-family: ui-monospace, Consolas, monospace;
	font-size: 10px;
	letter-spacing: 0.15em;
	color: rgb(var(--acc-l) / 0.7);
	opacity: 0;
	transition: opacity 0.5s;
}
.pd-card:hover .pd-card-ref { opacity: 1; }

/* case-study column */
.pd-grid-text { display: flex; flex-direction: column; justify-content: center; }
.pd-cs { position: relative; display: flex; flex-direction: column; gap: 2rem; }
.pd-cs-head { display: flex; flex-direction: column; gap: 1rem; }
.pd-cs-titlewrap { display: flex; align-items: center; gap: 1.25rem; }
.pd-cs-title { font-family: ui-monospace, Consolas, monospace; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.25em; color: rgb(var(--acc-l) / 0.7); }
.pd-cs-badge { font-family: ui-monospace, Consolas, monospace; font-size: 10px; letter-spacing: 0.2em; color: rgb(var(--acc-l) / 0.4); }
.pd-cs-div { display: block; height: 1px; width: 100%; background: linear-gradient(90deg, rgb(var(--acc) / 0.6), transparent); transform-origin: left center; transform: scaleX(0); transition: transform 1.4s var(--ease) 0.3s; }
.pd-cs.in .pd-cs-div { transform: scaleX(1); }
.pd-cs-content { font-family: var(--mono); font-size: 13px; line-height: 2; letter-spacing: 0.05em; color: rgb(var(--acc-l) / 0.6); }
.pd-cs-content p { margin: 0 0 1rem !important; }

/* gallery band */
.pd-band { position: relative; overflow: hidden; margin: 3rem 0; padding: 2rem 0; }
.pd-band .grp { display: flex; }
.pd-band-item {
	flex: none;
	width: 260px;
	margin: 0 0.75rem !important;
	overflow: hidden;
	border-radius: 0.5rem !important;
	border: 1px solid rgb(var(--acc) / 0.8) !important;
	cursor: pointer;
	transition: transform 0.5s var(--ease), border-color 0.3s;
}
.pd-band-item img,
.pd-band-item .pj-ph { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.pd-band-item:hover { transform: translateY(-6px); border-color: rgb(var(--acc-l)) !important; }
.pd-band:hover .track { animation-play-state: paused; }

.pd-final { display: grid; gap: 3rem 4rem; padding: 3rem 1.25rem; }
.pd-wide { padding: 3rem 1.25rem; }

/* ---------- next project ---------- */
.pd-next {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3rem;
	width: 100%;
	overflow: hidden;
	padding: 6rem 1.25rem 10rem;
	border-top: 1px solid rgb(var(--acc) / 0.8);
	color: #fff;
}
.pd-next-content { position: relative; z-index: 20; display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.pd-next-tags { display: flex; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.pd-next-tags li { padding: 0.5rem 1rem; border: 1px solid rgb(255 255 255 / 0.2); border-radius: 99px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: rgb(var(--acc-l)); }
.pd-next-title { margin: 1.5rem 0 1rem; font-family: var(--display); font-size: 60px; line-height: 1; font-weight: 700; text-align: center; text-transform: uppercase; color: rgb(var(--acc-l)); transition: letter-spacing 0.7s var(--ease); }
.pd-next:hover .pd-next-title { letter-spacing: 0.03em; }
.pd-next-desc { max-width: 24rem; font-family: var(--mono); font-size: 14px; line-height: 1.45; text-align: center; color: rgb(var(--acc-l) / 0.8); }
.pd-next-float {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 50;
	width: 18rem;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 0.75rem;
	box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.6);
	opacity: 0;
	pointer-events: none;
	transform: translate3d(-50%, -50%, 0) scale(0.6);
	transition: opacity 0.4s, scale 0.4s;
	will-change: transform;
}
.pd-next-float img,
.pd-next-float video,
.pd-next-float .pj-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; transition: opacity 0.4s; }
.pd-next-float video { opacity: 0; }
.pd-next:hover .pd-next-float { opacity: 1; }
.pd-next:hover .pd-next-float video { opacity: 1; }
.pd-next-btn {
	position: relative;
	z-index: 20;
	width: 10rem;
	overflow: hidden;
	padding: 0.75rem 0;
	border: 1px solid rgb(var(--acc-l) / 0.2);
	border-radius: 99px;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
	font-family: var(--mono);
	font-size: 14px;
	text-transform: uppercase;
	transition: opacity 0.3s;
}
.pd-next-btn:hover { opacity: 0.7; }
.pd-next-track { display: flex; align-items: center; gap: 1rem; width: max-content; animation: pd-next-mq 7s linear infinite; }
.pd-next-track i { font-size: 8px; font-style: normal; opacity: 0.5; }
@keyframes pd-next-mq { to { transform: translateX(-50%); } }

/* "VIEW" pill that follows the cursor over media */
.pd-pill {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 60;
	display: none;
	height: 3rem;
	width: 7rem;
	align-items: center;
	overflow: hidden;
	border: 1px solid rgb(var(--acc-l) / 0.3);
	border-radius: 99px;
	background: rgb(0 0 0 / 0.55);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.1em;
	color: rgb(var(--acc-l));
	opacity: 0;
	pointer-events: none !important;
	transform: scale(0.6);
	transition: opacity 0.3s, scale 0.3s;
	will-change: transform;
}
.pd-pill.on { opacity: 1; scale: 1.667; }
.pd-pill-track { display: flex; align-items: center; gap: 0.6rem; width: max-content; animation: pd-next-mq 4s linear infinite; }
.pd-pill-track i { font-size: 6px; font-style: normal; opacity: 0.5; }

/* lightbox */
.pd-modal {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: grid;
	place-items: center;
	background: rgb(0 0 0 / 0.9);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	opacity: 0;
	visibility: hidden;
	cursor: zoom-out;
	transition: opacity 0.4s, visibility 0s linear 0.4s;
}
.pd-modal.open { opacity: 1; visibility: visible; transition-delay: 0s; }
.pd-modal img { max-width: 95vw; max-height: 90vh; border-radius: 1.25rem; object-fit: contain; box-shadow: 0 25px 60px rgb(0 0 0 / 0.6); transform: scale(0.94); transition: transform 0.5s var(--ease); }
.pd-modal.open img { transform: scale(1); }

/* ---------- breakpoints (match the reference) ---------- */
@media (min-width: 640px) {
	.pd-hero { padding-left: 2.5rem; padding-right: 2.5rem; }
	.pd-ov-title { display: block; }
	.pd-walk { margin: 4rem 0; gap: 2.5rem; padding: 0 2.5rem; }
	.pd-grid { row-gap: 4rem; padding: 0 2.5rem; }
	.pd-final { padding: 4rem 2.5rem; }
	.pd-wide { padding: 4rem 2.5rem; }
	.pd-next { padding-left: 2.5rem; padding-right: 2.5rem; }
}
@media (min-width: 768px) {
	.pd-hero { padding-top: 11rem; }
	.pd-dvalue { font-size: 13px; }
	.pd-btn-fixed { display: inline-flex; }
	.pd-progress { display: flex; }
	.pd-pill { display: flex; }
	.pd-band-item { width: 500px; }
	.pd-next { padding-top: 8rem; padding-bottom: 8rem; }
	.pd-next-title { font-size: 72px; }
	.pd-wide { padding-left: 5rem; padding-right: 5rem; }
}
@media (min-width: 1024px) {
	/* brief on the left at a readable measure, spec sheet held to a fixed
	   column on the right — the old 50/50 split left a dead band in the middle */
	.pd-hero {
		grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
		gap: 0 clamp(48px, 5vw, 88px);
		align-items: start;
		max-width: 1400px;
		margin: 0 auto;
	}
	.pd-hero-l { width: auto; }
	.pd-hero-r { width: auto; margin-top: 0; }
	.pd-ov { margin-bottom: 2.75rem; }
	.pd-keys { display: grid; }
	.pd-swatch { width: 1.5rem; height: 1.5rem; }
	.pd-walk { flex-direction: row; justify-content: space-between; align-items: center; margin: 5rem 0; }
	.pd-walk-l { width: 58.333%; }
	.pd-big { font-size: 96px; margin-bottom: 3rem; }
	.pd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 5rem; margin-bottom: 5rem; }
	.pd-grid-text { padding: 0 2.5rem; }
	.pd-band-item { width: 691px; margin: 0 1.25rem !important; }
	.pd-final { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 5rem 2.5rem; }
	.pd-wide { padding: 5rem 10rem; }
	.pd-next { padding-top: 13rem; padding-bottom: 13rem; }
	.pd-next-title { font-size: 8vw; }
}
@media (min-width: 1280px) {
	.pd-big { font-size: 128px; }
	.pd-grid { row-gap: 8rem; margin-bottom: 8rem; }
	.pd-final { padding: 8rem 2.5rem; }
	.pd-wide { padding: 8rem 15rem; }
}
@media (max-width: 1023px) {
	.pd-title { font-size: calc(40px * var(--s-title, 1)); max-width: 70vw; }
	.pd-back { width: 2.6rem; }
}
@media (max-width: 767px) {
	.pd-titlegroup { top: 1.1rem; right: 1rem; }
	.pd-title { font-size: calc(26px * var(--s-title, 1)); }
	.pd-titlegroup .pj-crumb { display: none; }
	.pd-hero { padding-top: 7rem; }
}
