/* ==========================================================================
   Portfolio showcase (template-parts/portfolio/, archive-portfolio.php)
   Builds on service-components.css. Everything is scoped to .pf, .pf-hero
   or .pf-page so other pages are unaffected. Scroll effects use CSS
   scroll-driven animations where supported and are skipped entirely for
   visitors who prefer reduced motion.
   ========================================================================== */

.pf,
.pf-hero {
	--pf-radius: clamp(0.625rem, 0.4rem + 0.6vw, 1.125rem);
	--pf-shadow: 0 1.75rem 3.5rem -1.5rem rgba(0, 0, 0, 0.45);
	--pf-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

.pf a:focus-visible,
.pf button:focus-visible,
.pf [tabindex]:focus-visible {
	outline: 3px solid var(--svc-focus);
	outline-offset: 4px;
}

.pf button {
	font-family: inherit;
	cursor: pointer;
}

.pf [hidden] {
	display: none !important;
}

/* --------------------------------------------------------------------------
   Sections and backgrounds
   ----------------------------------------------------------------------- */

.pf-section {
	position: relative;
	padding-block: var(--svc-pad);
}

.pf-bg--white {
	background: #fff;
}

.pf-bg--light {
	background: var(--svc-light);
}

.pf-bg--dark {
	background: var(--svc-ink);
}

.pf-bg--red {
	background: var(--svc-red);
}

.pf-bg--project {
	background: var(--pf-project, #1c1c1c);
}

.pf-bg--dark,
.pf-bg--red,
.pf-bg--project {
	--svc-muted: rgba(255, 255, 255, 0.78);
	--svc-line: rgba(255, 255, 255, 0.2);
	--svc-focus: #fff;
	color: #fff;
}

.pf-bg--white + .pf-bg--white,
.pf-bg--light + .pf-bg--light,
.pf-bg--dark + .pf-bg--dark {
	padding-top: 0;
}

.pf-label {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-size: var(--svc-fs-small) !important;
	font-weight: 600 !important;
	letter-spacing: 0.14em;
	line-height: 1.4 !important;
	text-transform: uppercase;
	color: var(--svc-red);
	margin: 0 0 clamp(2rem, 1.5rem + 1.5vw, 3.5rem) !important;
}

.pf-label::before {
	content: '';
	flex: none;
	width: 2rem;
	height: 2px;
	background: currentColor;
}

.pf-bg--dark .pf-label,
.pf-bg--red .pf-label,
.pf-bg--project .pf-label {
	color: rgba(255, 255, 255, 0.82);
}

.pf-bg--dark .svc-prose a,
.pf-bg--red .svc-prose a,
.pf-bg--project .svc-prose a {
	color: #fff;
	text-decoration-color: currentColor;
}

/* --------------------------------------------------------------------------
   Banner
   ----------------------------------------------------------------------- */

.pf-hero {
	--svc-focus: #fff;
	position: relative;
	display: flex;
	align-items: center; /* Match Lady Elliot / case-study heroes */
	height: auto;
	min-height: 100vh;
	min-height: 100svh;
	overflow: hidden;
	isolation: isolate;
	background: #111;
	color: #fff;
}

.pf-hero--tall {
	min-height: 85vh;
	min-height: 85svh;
}

.pf-hero--medium {
	min-height: max(36rem, 68vh);
	min-height: max(36rem, 68svh);
}

.pf-hero__media {
	position: absolute;
	inset: 0;
	z-index: -2;
	overflow: hidden;
	transition: opacity 0.3s ease;
}

/*
 * Pin the photo to the media box edges. Theme img { height:auto; max-width:100% }
 * otherwise leaves a strip of the hero background (#111) under the image.
 */
.pf-hero__media .hero-image,
.pf-hero__media .pf-hero__img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: var(--pf-fx, 50%) var(--pf-fy, 50%);
}

.pf-hero::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	transition: opacity 0.3s ease;
	background:
		linear-gradient(0deg, rgba(0, 0, 0, calc(var(--pf-overlay, 0.2) + 0.15)) 0%, rgba(0, 0, 0, 0) 55%),
		rgba(0, 0, 0, var(--pf-overlay, 0.2));
}

.pf-hero--plain .pf-hero__media {
	background:
		radial-gradient(ellipse 60% 70% at 85% 30%, rgba(197, 12, 33, 0.38), transparent 70%),
		linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 100% 6rem,
		linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 6rem 100%,
		#111;
}

.pf-hero--plain::after {
	content: none;
}

.pf-hero__content {
	position: relative;
	width: 100%;
	padding-block: clamp(8rem, 6rem + 6vw, 11rem) clamp(4rem, 3rem + 3vw, 6rem);
}

.pf-hero .svc-actions {
	margin-top: 0.25rem;
}

.pf-hero .down-arrow {
	margin-top: clamp(1.75rem, 1.25rem + 2vw, 2.75rem);
	fill: currentColor;
}

.pf-hero--center .pf-hero__content {
	text-align: center;
}

.pf-hero--center .svc-breadcrumb ol,
.pf-hero--center .pf-hero__foot,
.pf-hero--center .pf-hero__cats {
	justify-content: center;
}

.pf-hero--center .pf-hero__title,
.pf-hero--center .pf-hero__descriptor {
	margin-inline: auto !important;
}

.pf-hero__client {
	font-size: var(--svc-fs-small) !important;
	font-weight: 600 !important;
	letter-spacing: 0.14em;
	line-height: 1.4 !important;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.82);
	margin: 0 0 1.25rem !important;
}

.pf-hero__title {
	max-width: 14ch;
	font-size: var(--svc-fs-hero, clamp(2.5rem, 1rem + 6vw, 7rem)) !important;
	font-weight: 900 !important;
	line-height: 0.98 !important;
	letter-spacing: -0.035em;
	text-wrap: balance;
	overflow-wrap: break-word;
	margin: 0 0 2rem !important;
	color: inherit !important;
	margin: 0 !important;
}

.pf-hero__title-line {
	display: inline-block;
}

.pf-hero__title-line::after {
	content: '.';
	color: var(--svc-red);
}

.pf-hero__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.5rem 3rem;
	margin-top: clamp(1.75rem, 1rem + 2vw, 3rem);
}

.pf-hero__descriptor {
	max-width: 34rem;
	margin: 0 0 2rem !important;
	font-size: clamp(1.125rem, 1rem + 0.55vw, 1.5rem) !important;
	font-weight: 500 !important;
	line-height: 1.5 !important;
	color: rgba(255, 255, 255, 0.88);
	text-wrap: pretty;
}

.pf-hero__cats {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.pf-hero__cats li {
	padding: 0.45rem 0.95rem;
	border: 1px solid rgba(255, 255, 255, 0.42);
	border-radius: 999px;
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.02em;
	backdrop-filter: blur(6px);
}

.pf-hero__scroll {
	position: absolute;
	right: var(--svc-gutter);
	bottom: clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
	display: none;
	align-items: center;
	gap: 1rem;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.82);
	text-decoration: none;
}

.pf-hero__scroll:hover {
	color: #fff;
	opacity: 1;
}

.pf-hero__scroll-line {
	position: relative;
	width: 3.5rem;
	height: 1px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.35);
}

.pf-hero__scroll-line::after {
	content: '';
	position: absolute;
	inset: 0;
	background: #fff;
	transform: translateX(-100%);
}

@media (min-width: 1025px) {
	.pf-hero__scroll {
		display: inline-flex;
	}
}

.pf-hero .svc-breadcrumb ol {
	color: rgba(255, 255, 255, 0.72);
}

.pf-hero .svc-breadcrumb a {
	color: #fff;
}

/*
 * Match case-study heroes: once body.white is set on scroll, fade the banner
 * photo/overlay away so the page reads as a white document behind the title.
 */
.white .pf-hero {
	background: transparent;
	color: var(--svc-ink);
	--svc-focus: var(--svc-ink);
}

.white .pf-hero__media,
.white .pf-hero::after {
	opacity: 0;
}

.white .pf-hero .svc-eyebrow,
.white .pf-hero .pf-hero__client,
.white .pf-hero .pf-hero__descriptor,
.white .pf-hero .svc-breadcrumb ol {
	color: var(--svc-muted);
}

.white .pf-hero .svc-breadcrumb a,
.white .pf-hero .svc-textlink--light {
	color: var(--svc-ink);
}

.white .pf-hero .svc-textlink--light {
	border-bottom-color: var(--svc-red);
}

.white .pf-hero .down-arrow {
	fill: #000;
}

/* Dark text over a light photo. */
.pf-hero--text-dark {
	--svc-focus: var(--svc-ink);
	color: var(--svc-ink);
	background: var(--svc-light);
}

.pf-hero--text-dark::after {
	background:
		linear-gradient(0deg, rgba(255, 255, 255, calc(var(--pf-overlay, 0.2) + 0.15)) 0%, rgba(255, 255, 255, 0) 55%),
		rgba(255, 255, 255, var(--pf-overlay, 0.2));
}

.pf-hero--text-dark .pf-hero__client,
.pf-hero--text-dark .pf-hero__descriptor,
.pf-hero--text-dark .pf-hero__scroll,
.pf-hero--text-dark .svc-breadcrumb ol,
.white .pf-hero--text-dark .svc-breadcrumb ol {
	color: rgba(13, 13, 13, 0.74);
}

.pf-hero--text-dark .svc-breadcrumb a,
.white .pf-hero--text-dark .svc-breadcrumb a,
.pf-hero--text-dark .pf-hero__scroll:hover {
	color: var(--svc-ink);
}

.pf-hero--text-dark .pf-hero__cats li {
	border-color: rgba(13, 13, 13, 0.3);
}

.pf-hero--text-dark .pf-hero__scroll-line {
	background: rgba(13, 13, 13, 0.25);
}

.pf-hero--text-dark .pf-hero__scroll-line::after {
	background: var(--svc-ink);
}

/* The header over the banner uses the light logo; switch it for light banners. */
.pf-hero-light:not(.white) header.whitev .logo img {
	filter: invert(1);
}

.pf-hero-light:not(.white) header.whitev .nav-icon span {
	background: var(--svc-ink, #0d0d0d);
}

/* --------------------------------------------------------------------------
   Introduction
   ----------------------------------------------------------------------- */

.pf-intro__grid {
	display: grid;
	gap: clamp(3rem, 2rem + 3vw, 5rem);
}

@media (min-width: 1024px) {
	.pf-intro__grid {
		grid-template-columns: repeat(12, minmax(0, 1fr));
	}

	.pf-intro__main {
		grid-column: 1 / 8;
	}

	.pf-facts {
		grid-column: 9 / -1;
		align-self: start;
		margin-top: 3.4rem !important;
	}
}

.pf-intro__lead {
	max-width: 36ch;
	font-size: clamp(1.375rem, 1rem + 1.25vw, 2.25rem) !important;
	font-weight: 600 !important;
	line-height: 1.32 !important;
	letter-spacing: -0.018em;
	color: var(--svc-ink);
	text-wrap: pretty;
	margin-bottom: 1.5rem !important;
}

.pf-intro__heading {
	margin-bottom: clamp(1.75rem, 1.25rem + 1.75vw, 3rem) !important;
}

/* Multi-paragraph introduction: same body size as story sections, not the large lead. */
.pf-intro__body {
	max-width: 40rem;
	font-size: var(--svc-fs-body, 1.0625rem) !important;
	font-weight: 400 !important;
	line-height: 1.75 !important;
	letter-spacing: normal;
	color: var(--svc-ink);
	text-wrap: pretty;
	margin-bottom: 1.5rem !important;
}

.pf-intro__body p {
	margin: 0 0 1em !important;
	font-size: inherit !important;
	font-weight: inherit !important;
	line-height: inherit !important;
}

.pf-intro__body p:last-child {
	margin-bottom: 0 !important;
}

.pf-intro__more {
	max-width: 40rem;
	font-size: var(--svc-fs-body) !important;
	line-height: 1.75 !important;
	color: var(--svc-muted);
	text-wrap: pretty;
}

.pf-intro__note {
	margin-top: 2.5rem !important;
	padding-left: 1rem;
	border-left: 2px solid var(--svc-red);
	font-size: 0.9375rem !important;
	line-height: 1.6 !important;
	color: var(--svc-muted);
}

.pf-visit {
	display: inline-flex;
	align-items: center;
	gap: 1.5rem;
	margin-top: clamp(2.25rem, 1.75rem + 1.5vw, 3.25rem);
	padding: 0.625rem 0.625rem 0.625rem 1.75rem;
	border-radius: 999px;
	background: var(--svc-ink);
	color: #fff;
	text-decoration: none;
	transition: background-color 0.3s ease;
}

.pf-visit:hover,
.pf-visit:focus {
	background: var(--svc-red);
	color: #fff;
	opacity: 1;
}

.pf-visit__text {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
}

.pf-visit__label {
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.2;
}

.pf-visit__url {
	overflow: hidden;
	font-size: 0.8125rem;
	font-weight: 500;
	line-height: 1.3;
	color: rgba(255, 255, 255, 0.72);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.pf-visit__icon {
	display: grid;
	flex: none;
	place-items: center;
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 50%;
	background: var(--svc-red);
	transition: background-color 0.3s ease, transform 0.4s var(--pf-ease);
}

.pf-visit:hover .pf-visit__icon {
	background: var(--svc-ink);
	transform: rotate(45deg);
}

.pf-facts {
	margin: 0 !important;
	border-bottom: 1px solid var(--svc-line);
}

.pf-facts__row {
	display: grid;
	grid-template-columns: minmax(6.5rem, 2fr) 5fr;
	gap: 1rem;
	padding-block: 1.1rem;
	border-top: 1px solid var(--svc-line);
}

.pf-facts dt {
	padding-top: 0.15rem;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	line-height: 1.4;
	text-transform: uppercase;
	color: var(--svc-muted);
}

.pf-facts dd {
	margin: 0;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.5;
}

.pf-facts dd a {
	display: block;
	width: fit-content;
	color: inherit;
	text-decoration: underline;
	text-decoration-line: underline !important;
	text-decoration-color: var(--svc-line);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.25em;
	transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.pf-facts dd a + a {
	margin-top: 0.3rem;
}

.pf-facts dd a:hover {
	color: var(--svc-red);
	text-decoration-color: var(--svc-red);
	opacity: 1;
}

/* --------------------------------------------------------------------------
   Browser window (featured image and full-page preview)
   ----------------------------------------------------------------------- */

.pf-browser {
	overflow: hidden;
	border-radius: var(--pf-radius);
	background: #fff;
	box-shadow: var(--pf-shadow);
}

.pf-browser__bar {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: clamp(2rem, 1.6rem + 1vw, 2.75rem);
	padding-inline: 1rem;
	background: #ebeae7;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.pf-browser__dots {
	position: absolute;
	left: 1rem;
	display: flex;
	gap: 0.4rem;
}

.pf-browser__dots i {
	width: 0.65rem;
	height: 0.65rem;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.16);
}

.pf-browser__dots i:first-child {
	background: var(--svc-red);
}

.pf-browser__url {
	max-width: min(60%, 28rem);
	overflow: hidden;
	padding: 0.25rem 1.1rem;
	border-radius: 999px;
	background: #fff;
	font-size: 0.75rem;
	font-weight: 500;
	line-height: 1.4;
	color: rgba(13, 13, 13, 0.62);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.pf-browser__view img,
.pf-browser__view video {
	display: block;
	width: 100%;
	height: auto;
}

@media (max-width: 600px) {
	.pf-browser__url {
		max-width: 55%;
		margin-left: 2.5rem;
	}
}

/* --------------------------------------------------------------------------
   Desktop pages gallery — dense collage that bleeds past the viewport
   ----------------------------------------------------------------------- */

.pf-desktop {
	--pf-shot-r: clamp(0.55rem, 0.35rem + 0.6vw, 1rem);
	padding-block: clamp(2.5rem, 1.5rem + 3vw, 5rem) clamp(3.5rem, 2.5rem + 4vw, 7rem);
	overflow: hidden;
	overflow: clip;
}

.pf-desktop > .svc-container {
	position: relative;
	z-index: 1;
	margin-bottom: clamp(1rem, 0.5rem + 1.5vw, 2rem);
}

.pf-desktop .pf-label {
	margin-bottom: 0 !important;
}

.pf-desktop__stage {
	position: relative;
	min-height: min(96vh, 62rem);
}

.pf-desktop__grid {
	display: grid;
	grid-template-columns: repeat(var(--pf-cols, 3), minmax(0, 1fr));
	align-items: start;
	gap: 0;
	width: 168vw;
	margin-left: calc(50% - 84vw);
	padding-block: 0.5rem 2.5rem;
}

.pf-desktop--cols-2 .pf-desktop__grid {
	--pf-cols: 2;
	width: 138vw;
	margin-left: calc(50% - 69vw);
	gap: 0;
}

.pf-desktop--cols-1 .pf-desktop__grid {
	--pf-cols: 1;
	width: min(80rem, 88vw);
	margin-inline: auto;
	gap: 0;
}

.pf-desktop__grid:focus-visible {
	outline: none;
}

.pf-desktop__col {
	display: flex;
	flex-direction: column;
	gap: clamp(0.35rem, 0.15rem + 0.6vw, 0.85rem);
}

/* Hard stagger so the collage reads as one composition, not three neat stacks. */
.pf-desktop--cols-3 .pf-desktop__col--1 {
	--pf-x: 6%;
	margin-right: -4%;
	padding-top: clamp(0.5rem, 2vw, 2.5rem);
	transform: translateX(var(--pf-x));
	z-index: 1;
}

.pf-desktop--cols-3 .pf-desktop__col--2 {
	--pf-x: 0;
	margin-inline: -3%;
	padding-top: clamp(10rem, 22vw, 20rem);
	z-index: 3;
}

.pf-desktop--cols-3 .pf-desktop__col--3 {
	--pf-x: -6%;
	margin-left: -4%;
	padding-top: clamp(2rem, 6vw, 6rem);
	transform: translateX(var(--pf-x));
	z-index: 2;
}

.pf-desktop--cols-2 .pf-desktop__col--1 {
	padding-top: clamp(0.5rem, 3vw, 3.5rem);
	z-index: 1;
}

.pf-desktop--cols-2 .pf-desktop__col--2 {
	padding-top: clamp(8rem, 16vw, 15rem);
	z-index: 2;
}

.pf-shot {
	overflow: hidden;
	border-radius: var(--pf-shot-r, var(--pf-radius));
	background: #111;
	box-shadow:
		0 2.75rem 5.5rem -1.75rem rgba(0, 0, 0, 0.72),
		0 0.65rem 1.5rem -0.2rem rgba(0, 0, 0, 0.4);
}

.pf-shot__img {
	display: block;
	width: 100%;
	height: auto;
}

/* Per-shot tilt/scale so the pack feels hand-laid, not a grid. */
.pf-desktop .pf-shot--i1 { transform: rotate(-1.6deg) scale(1.01); z-index: 2; }
.pf-desktop .pf-shot--i2 { transform: rotate(1.1deg) translateY(0.4rem) scale(0.99); z-index: 1; }
.pf-desktop .pf-shot--i3 { transform: rotate(-0.7deg) scale(1.03); z-index: 4; }
.pf-desktop .pf-shot--i4 { transform: rotate(1.8deg) translateY(-0.6rem); z-index: 3; }
.pf-desktop .pf-shot--i5 { transform: rotate(-1.2deg) scale(1.02); z-index: 2; }
.pf-desktop .pf-shot--i6 { transform: rotate(0.9deg) translateY(0.35rem) scale(0.985); z-index: 1; }
.pf-desktop .pf-shot--i7 { transform: rotate(-1.4deg) scale(1.015); z-index: 3; }
.pf-desktop .pf-shot--i8 { transform: rotate(1.3deg); z-index: 2; }
.pf-desktop .pf-shot--i9 { transform: rotate(-0.85deg) scale(1.01); z-index: 1; }

.pf-desktop .pf-shot--n2 {
	margin-left: -2%;
}

.pf-desktop .pf-shot--n3 {
	margin-left: 3%;
}

/* Small screens: one swipeable row in the original order. */
@media (max-width: 699px) {
	.pf-desktop {
		padding-block: 2rem 3rem;
	}

	.pf-desktop__stage {
		min-height: 0;
	}

	.pf-desktop__grid {
		display: flex;
		gap: 0.85rem;
		width: auto;
		margin: 0;
		padding: 0.5rem var(--svc-gutter) 2rem;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: var(--svc-gutter);
		scrollbar-width: none;
	}

	.pf-desktop__grid::-webkit-scrollbar {
		display: none;
	}

	.pf-desktop__col {
		display: contents;
		transform: none;
		padding-top: 0;
	}

	.pf-shot--desktop {
		flex: 0 0 86vw;
		scroll-snap-align: start;
		transform: none !important;
	}
}

/* --------------------------------------------------------------------------
   Featured image or video
   ----------------------------------------------------------------------- */

.pf-feature__frame {
	position: relative;
	overflow: hidden;
}

.pf-feature--contained .pf-feature__frame {
	border-radius: var(--pf-radius);
}

.pf-feature__media {
	display: block;
	width: 100%;
	height: auto;
}

.pf-feature--crop-16-9 .pf-feature__frame {
	aspect-ratio: 16 / 9;
}

.pf-feature--crop-21-9 .pf-feature__frame {
	aspect-ratio: 21 / 9;
}

.pf-feature--crop-4-3 .pf-feature__frame {
	aspect-ratio: 4 / 3;
}

[class*='pf-feature--crop-'] .pf-feature__media,
[class*='pf-feature--crop-'] .pf-video {
	width: 100%;
	height: 100%;
}

[class*='pf-feature--crop-'] .pf-feature__media {
	object-fit: cover;
}

.pf-feature--bleed {
	padding-block: 0;
}

.pf-feature--bleed .pf-label {
	padding-top: var(--svc-pad);
}

.pf-feature__caption {
	max-width: 46rem;
	margin-top: 1.25rem;
	font-size: 0.9375rem;
	line-height: 1.6;
	color: var(--svc-muted);
}

.pf-feature--bleed .pf-feature__caption {
	padding-bottom: clamp(1.5rem, 1rem + 2vw, 3rem);
}

/* --------------------------------------------------------------------------
   Video controls
   ----------------------------------------------------------------------- */

.pf-video {
	position: relative;
}

.pf-video__toggle {
	position: absolute;
	right: clamp(0.75rem, 0.5rem + 1vw, 1.5rem);
	bottom: clamp(0.75rem, 0.5rem + 1vw, 1.5rem);
	min-height: 2.5rem;
	padding: 0.55rem 1.1rem;
	border: 0;
	border-radius: 999px;
	background: rgba(13, 13, 13, 0.72);
	color: #fff;
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.2;
	backdrop-filter: blur(6px);
}

.pf-video__toggle:hover {
	background: var(--svc-red);
}

.pf-video__play,
.pf-video.is-paused .pf-video__pause {
	display: none;
}

.pf-video.is-paused .pf-video__play {
	display: inline;
}

/* --------------------------------------------------------------------------
   Mobile screens gallery — diagonal phone parade that crops off the edges
   ----------------------------------------------------------------------- */

.pf-mobile {
	--pf-phone-w: clamp(12rem, 6.25rem + 14.5vw, 20rem);
	padding-block: clamp(2.5rem, 1.5rem + 3.5vw, 5rem) clamp(3.5rem, 2.5rem + 4.5vw, 6.5rem);
	overflow: hidden;
	overflow: clip;
}

.pf-mobile > .svc-container {
	position: relative;
	z-index: 1;
	margin-bottom: clamp(0.75rem, 0.35rem + 1.2vw, 1.5rem);
}

.pf-mobile .pf-label {
	margin-bottom: 0 !important;
}

.pf-mobile__track:focus-visible {
	outline: none;
}

.pf-mobile__track {
	display: grid;
	gap: clamp(-0.85rem, -0.25rem + -0.9vw, -0.2rem);
}

.pf-mobile__row {
	display: flex;
	justify-content: center;
	gap: 0;
	/* Overlap so the phones read as one parade, not spaced cards. */
	margin-inline: calc(var(--pf-phone-w) * -0.42);
}

.pf-phone {
	position: relative;
	flex: 0 0 var(--pf-phone-w);
	margin-inline: calc(var(--pf-phone-w) * -0.11);
	padding: 0.5rem;
	border-radius: clamp(1.55rem, 1.1rem + 1.3vw, 2.65rem);
	background:
		linear-gradient(160deg, #2a2a2a 0%, #0a0a0a 45%, #141414 100%);
	box-shadow:
		0 2.5rem 4.5rem -1.25rem rgba(0, 0, 0, 0.62),
		0 0.85rem 1.75rem -0.4rem rgba(0, 0, 0, 0.4),
		inset 0 0 0 1px rgba(255, 255, 255, 0.14),
		inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.pf-phone::before {
	content: '';
	position: absolute;
	top: 0.85rem;
	left: 50%;
	z-index: 2;
	width: 28%;
	height: 0.55rem;
	border-radius: 999px;
	background: #0a0a0a;
	transform: translateX(-50%);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.pf-phone__img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: clamp(1.15rem, 0.85rem + 1vw, 2.1rem);
	background: #111;
}

.pf-mobile--angled .pf-mobile__stage {
	padding-block: clamp(5rem, 12vw, 13rem);
}

.pf-mobile--angled .pf-mobile__track {
	width: 138%;
	margin-left: -19%;
	transform: rotate(-15deg);
	transform-origin: 50% 55%;
}

.pf-mobile--angled .pf-mobile__row--1 {
	justify-content: flex-start;
	padding-left: 6%;
}

.pf-mobile--angled .pf-mobile__row--2 {
	justify-content: flex-end;
	padding-right: 3%;
	transform: translateX(-8%);
	margin-top: calc(var(--pf-phone-w) * -0.05);
}

.pf-mobile--angled.pf-mobile--rows-1 .pf-mobile__row {
	justify-content: center;
	padding-inline: 0;
}

/* Micro offsets so the phone pack isn’t a rigid ladder. */
.pf-mobile--angled .pf-phone--i1 { transform: translateY(0.6rem) scale(0.98); z-index: 1; }
.pf-mobile--angled .pf-phone--i2 { transform: translateY(-0.85rem) scale(1.02); z-index: 3; }
.pf-mobile--angled .pf-phone--i3 { transform: translateY(0.35rem); z-index: 2; }
.pf-mobile--angled .pf-phone--i4 { transform: translateY(-0.4rem) scale(1.01); z-index: 4; }
.pf-mobile--angled .pf-phone--i5 { transform: translateY(0.9rem) scale(0.99); z-index: 2; }
.pf-mobile--angled .pf-phone--i6 { transform: translateY(-1.1rem) scale(1.03); z-index: 5; }
.pf-mobile--angled .pf-phone--i7 { transform: translateY(0.2rem); z-index: 3; }
.pf-mobile--angled .pf-phone--i8 { transform: translateY(-0.55rem) scale(1.01); z-index: 2; }
.pf-mobile--angled .pf-phone--i9 { transform: translateY(0.7rem); z-index: 1; }

.pf-mobile--staggered .pf-phone:nth-child(even) {
	margin-top: clamp(3rem, 10vw, 9rem);
}

.pf-mobile--staggered .pf-mobile__row,
.pf-mobile--straight .pf-mobile__row {
	flex-wrap: wrap;
	justify-content: center;
	gap: clamp(1rem, 0.5rem + 1.5vw, 2rem);
	margin-inline: 0;
	padding-inline: var(--svc-gutter);
}

.pf-mobile--staggered .pf-phone,
.pf-mobile--straight .pf-phone {
	margin-inline: 0;
}

/* Small screens: one straight, swipeable row. */
@media (max-width: 699px) {
	.pf-mobile {
		padding-block: 2rem 3rem;
	}

	.pf-mobile--angled .pf-mobile__stage {
		padding-block: 0;
	}

	.pf-mobile .pf-mobile__track {
		display: flex;
		gap: 0.85rem;
		width: auto;
		margin: 0;
		padding: 0.5rem var(--svc-gutter) 2rem;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: var(--svc-gutter);
		scrollbar-width: none;
		transform: none;
	}

	.pf-mobile__track::-webkit-scrollbar {
		display: none;
	}

	.pf-mobile .pf-mobile__row {
		display: contents;
		transform: none;
		padding: 0;
	}

	.pf-mobile .pf-phone {
		flex: 0 0 min(68vw, 17rem);
		margin-inline: 0;
		margin-top: 0;
		scroll-snap-align: start;
	}

	.pf-phone::before {
		top: 0.65rem;
		height: 0.4rem;
	}
}

/* --------------------------------------------------------------------------
   Project details
   ----------------------------------------------------------------------- */

.pf-text__grid {
	display: grid;
	gap: 1.5rem var(--svc-gap);
}

.pf-text__heading {
	max-width: 18ch;
	font-size: var(--svc-fs-h2) !important;
	font-weight: 800 !important;
	line-height: 1.1 !important;
	letter-spacing: -0.025em;
	text-wrap: balance;
}

.pf-text__heading::after {
	content: '.';
	color: var(--svc-red);
}

.pf-bg--red .pf-text__heading::after {
	color: #fff;
}

.pf-text__body {
	max-width: 42rem;
	font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
}

.pf-text__figure {
	overflow: hidden;
	margin-top: clamp(1.5rem, 1rem + 2vw, 3rem) !important;
	border-radius: var(--pf-radius);
}

.pf-text__img {
	display: block;
	width: 100%;
	height: auto;
}

@media (min-width: 1024px) {
	.pf-text__grid {
		grid-template-columns: repeat(12, minmax(0, 1fr));
	}

	.pf-text__heading {
		grid-column: 1 / 6;
	}

	.pf-text__body {
		grid-column: 7 / -1;
	}

	.pf-text__figure {
		grid-column: 1 / -1;
	}

	.pf-text--side .pf-text__heading,
	.pf-text--side .pf-text__body {
		grid-column: 1 / 6;
	}

	.pf-text--side .pf-text__figure {
		grid-column: 7 / -1;
		grid-row: 1 / span 2;
		align-self: center;
		margin-top: 0 !important;
	}
}

/* --------------------------------------------------------------------------
   Testimonial
   ----------------------------------------------------------------------- */

.pf-quote__inner {
	max-width: calc(58rem + 2 * var(--svc-gutter));
	margin: 0 auto !important;
}

.pf-quote__mark {
	display: block;
	width: clamp(2.5rem, 2rem + 2vw, 4rem);
	height: auto;
	margin-bottom: 1.75rem;
	color: var(--svc-red);
}

.pf-bg--red .pf-quote__mark {
	color: #fff;
}

.pf-quote__text {
	margin: 0;
	padding: 0;
	border: 0;
}

.pf-quote__text p {
	font-size: clamp(1.5rem, 1rem + 1.8vw, 2.75rem) !important;
	font-weight: 600 !important;
	line-height: 1.28 !important;
	letter-spacing: -0.02em;
	text-wrap: pretty;
}

.pf-quote__cite {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-top: 2.25rem;
}

.pf-quote__img {
	flex: none;
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 50%;
	object-fit: cover;
}

.pf-quote__name {
	display: block;
	font-weight: 700;
}

.pf-quote__role {
	display: block;
	font-size: 0.9375rem;
	color: var(--svc-muted);
}

/* --------------------------------------------------------------------------
   Full-page scrolling preview
   ----------------------------------------------------------------------- */

.pf-scroll {
	--pf-view-h: min(74vh, 54rem);
}

.pf-scroll__view {
	position: relative;
	height: var(--pf-view-h);
	overflow-y: auto;
	overscroll-behavior: contain;
	background: #fff;
}

.pf-scroll__view:focus-visible {
	outline: 3px solid var(--svc-ink);
	outline-offset: -3px;
}

.pf-scroll__img {
	display: block;
	width: 100%;
	height: auto;
}

.pf-scroll--full .pf-scroll__view {
	height: auto;
	overflow: visible;
}

.pf-scroll__controls {
	display: flex;
	justify-content: center;
	margin: 1.5rem 0 0 !important;
}

.pf-scroll__toggle {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	padding: 0.6rem 1.25rem;
	border: 1px solid var(--svc-line);
	border-radius: 999px;
	background: transparent;
	color: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.2;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.pf-scroll__toggle:hover {
	border-color: currentColor;
}

.pf-scroll__toggle-off,
.pf-scroll--manual .pf-scroll__toggle-on {
	display: none;
}

.pf-scroll--manual .pf-scroll__toggle-off {
	display: inline;
}

/* Scroll-linked mode: the window stays in place while the page inside it scrolls from top to bottom. */
.pf-scroll--linked {
	padding-bottom: 0;
}

.pf-scroll--linked .pf-scroll__track {
	height: calc(100vh + var(--pf-run, 0px));
	height: calc(100svh + var(--pf-run, 0px));
}

.pf-scroll--linked .pf-scroll__sticky {
	position: sticky;
	top: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	height: 100vh;
	height: 100svh;
	padding-top: clamp(4.5rem, 3rem + 3vw, 6rem);
}

.pf-scroll--linked .pf-scroll__view {
	overflow: hidden;
}

.pf-scroll--linked .pf-scroll__img {
	transform: translate3d(0, calc(var(--pf-p, 0) * -1 * var(--pf-distance, 0px)), 0);
	will-change: transform;
}

@keyframes pf-scroll-page {
	to {
		transform: translate3d(0, calc(-1 * var(--pf-distance, 0px)), 0);
	}
}

@supports (animation-timeline: view()) {
	.pf-scroll--linked .pf-scroll__track {
		view-timeline-name: --pf-scroll;
	}

	.pf-scroll--linked .pf-scroll__img {
		transform: none;
		animation: pf-scroll-page linear both;
		animation-timeline: --pf-scroll;
		animation-range: contain 0% contain 100%;
	}
}

/* --------------------------------------------------------------------------
   Gallery
   ----------------------------------------------------------------------- */

.pf-gallery__grid {
	display: grid;
	gap: clamp(1rem, 0.5rem + 1.6vw, 2.25rem);
}

.pf-gallery__figure {
	margin: 0;
}

.pf-gallery__media,
.pf-gallery__figure .pf-video {
	display: block;
	width: 100%;
	height: auto;
	overflow: hidden;
	border-radius: var(--pf-radius);
}

.pf-gallery__figure .pf-video .pf-gallery__media {
	border-radius: 0;
}

.pf-gallery__caption {
	margin-top: 0.85rem;
	font-size: 0.875rem;
	line-height: 1.55;
	color: var(--svc-muted);
}

@media (min-width: 700px) {
	.pf-gallery--two .pf-gallery__grid,
	.pf-gallery--three .pf-gallery__grid,
	.pf-gallery--staggered .pf-gallery__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.pf-gallery--staggered .pf-gallery__grid {
		align-items: start;
	}

	.pf-gallery--staggered .pf-gallery__item:nth-child(even) {
		margin-top: clamp(4rem, 12vw, 12rem);
	}

	.pf-gallery--masonry .pf-gallery__grid {
		display: block;
		columns: 2;
		column-gap: clamp(1rem, 0.5rem + 1.6vw, 2.25rem);
	}

	.pf-gallery--masonry .pf-gallery__item {
		break-inside: avoid;
		margin-bottom: clamp(1rem, 0.5rem + 1.6vw, 2.25rem);
	}
}

@media (min-width: 1000px) {
	.pf-gallery--three .pf-gallery__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.pf-gallery--masonry .pf-gallery__grid {
		columns: 3;
	}
}

/* --------------------------------------------------------------------------
   Project figures
   ----------------------------------------------------------------------- */

.pf-stats__grid {
	display: grid;
	gap: 2.5rem var(--svc-gap);
	margin: 0 !important;
}

@media (min-width: 700px) {
	.pf-stats__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.pf-stats__grid--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.pf-stats__grid--4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.pf-stats__item {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--svc-line);
}

.pf-stats__value {
	order: -1;
	margin: 0;
	font-size: clamp(3rem, 2rem + 3.5vw, 5.5rem);
	font-weight: 900;
	line-height: 1;
	letter-spacing: -0.04em;
	color: var(--svc-red);
}

.pf-bg--dark .pf-stats__value,
.pf-bg--red .pf-stats__value,
.pf-bg--project .pf-stats__value {
	color: #fff;
}

.pf-stats__label {
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.45;
	color: var(--svc-muted);
}

/* --------------------------------------------------------------------------
   Next project
   ----------------------------------------------------------------------- */

.pf-next {
	--svc-focus: #fff;
	background: var(--svc-ink);
	color: #fff;
}

.pf-next__link {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: min(82vh, 52rem);
	overflow: hidden;
	isolation: isolate;
	color: #fff;
	text-decoration: none;
}

.pf-next__link:hover,
.pf-next__link:focus {
	color: #fff;
	opacity: 1;
}

.pf-next__link:focus-visible {
	outline-offset: -6px;
}

.pf-next__media {
	position: absolute;
	inset: 0;
	z-index: -2;
}

.pf-next__img {
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	transform: scale(1.06);
	transition: transform 1.2s var(--pf-ease), opacity 0.6s ease;
	opacity: 0.62;
}

.pf-next__link::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.1) 70%);
}

.pf-next__link:hover .pf-next__img {
	transform: scale(1);
	opacity: 0.75;
}

.pf-next__content {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	gap: 0.75rem 2rem;
	padding-block: clamp(3rem, 2rem + 4vw, 6rem);
}

.pf-next__eyebrow,
.pf-next__cats {
	grid-column: 1;
	font-size: var(--svc-fs-small);
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.78);
}

.pf-next__title {
	grid-column: 1;
	max-width: 16ch;
	font-size: clamp(2.5rem, 1rem + 6vw, 8rem);
	font-weight: 900;
	line-height: 0.95;
	letter-spacing: -0.04em;
	text-wrap: balance;
	overflow-wrap: break-word;
}

.pf-next__title::after {
	content: '.';
	color: var(--svc-red);
}

.pf-next__arrow {
	display: grid;
	grid-column: 2;
	grid-row: 1 / span 3;
	align-self: end;
	place-items: center;
	width: clamp(3.5rem, 2.5rem + 3vw, 6rem);
	height: clamp(3.5rem, 2.5rem + 3vw, 6rem);
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 50%;
	transition: background-color 0.3s ease, border-color 0.3s ease;
}

.pf-next__arrow .svc-arrow {
	width: 40%;
	height: auto;
}

.pf-next__link:hover .pf-next__arrow {
	background: var(--svc-red);
	border-color: var(--svc-red);
}

.pf-next__all {
	padding-block: 2.5rem;
}

/* --------------------------------------------------------------------------
   Portfolio page
   ----------------------------------------------------------------------- */

.pf-archive-hero .svc-hero__title {
	max-width: none;
}

.pf-archive__section {
	padding-top: clamp(3rem, 2rem + 3vw, 5rem);
}

.pf-filters {
	position: relative;
	margin-bottom: clamp(2.5rem, 2rem + 2.5vw, 4.5rem);
}

.pf-filters ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.pf-filter {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 2.75rem;
	padding: 0.6rem 1.15rem;
	border: 1px solid var(--svc-line);
	border-radius: 999px;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.2;
	color: var(--svc-ink);
	text-decoration: none;
	transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.pf-filter:hover {
	border-color: var(--svc-ink);
	color: var(--svc-ink);
	opacity: 1;
}

.pf-filter[aria-current='true'] {
	border-color: var(--svc-ink);
	background: var(--svc-ink);
	color: #fff;
}

.pf-filter__count {
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--svc-muted);
}

.pf-filter[aria-current='true'] .pf-filter__count {
	color: rgba(255, 255, 255, 0.7);
}

.pf-grid {
	display: grid;
	gap: clamp(2.25rem, 1.5rem + 2vw, 3.75rem) clamp(1rem, 0.65rem + 1.25vw, 1.75rem);
	align-items: start;
}

@media (min-width: 700px) {
	.pf-grid {
		grid-template-columns: repeat(12, minmax(0, 1fr));
	}

	.pf-card--wide {
		grid-column: 1 / -1;
	}

	.pf-card--large {
		grid-column: span 8;
	}

	.pf-card--standard {
		grid-column: span 4;
	}
}

@media (min-width: 700px) and (max-width: 1099px) {
	/* Tablet: equal two-up; lone tile still uses .pf-card--wide. */
	.pf-card--large,
	.pf-card--standard {
		grid-column: span 6;
	}
}

.pf-card__link {
	display: block;
	color: var(--svc-ink);
	text-decoration: none;
}

.pf-card__link:hover,
.pf-card__link:focus {
	color: var(--svc-ink);
	opacity: 1;
}

.pf-card__media {
	position: relative;
	display: block;
	overflow: hidden;
	width: 100%;
	aspect-ratio: 4 / 5;
	border-radius: var(--pf-radius);
	background: #1a1a1a;
}

.pf-card--large .pf-card__media {
	aspect-ratio: 4 / 3;
}

.pf-card--standard .pf-card__media {
	aspect-ratio: 3 / 4;
}

.pf-card--wide .pf-card__media {
	aspect-ratio: 21 / 9;
}

@media (max-width: 699px) {
	.pf-grid {
		gap: clamp(2rem, 1.5rem + 3vw, 2.75rem);
	}

	.pf-card .pf-card__media {
		aspect-ratio: 4 / 3;
	}

	.pf-card__body {
		padding-top: 1rem;
	}

	.pf .pf-card__title {
		font-size: clamp(1.35rem, 1.1rem + 2vw, 1.75rem) !important;
	}
}

/* Absolute fill beats `.svc img { height: auto }` so landscape shots still cover square/portrait tiles. */
.pf-card__media > .pf-card__img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
	transition: transform 1s var(--pf-ease);
}

.pf-card__link:hover .pf-card__img,
.pf-card__link:focus-visible .pf-card__img {
	transform: scale(1.05);
}

.pf-card__panel {
	display: flex;
	align-items: flex-end;
	width: 100%;
	height: 100%;
	padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
	color: #fff;
	font-size: clamp(1.75rem, 1.1rem + 2.2vw, 2.75rem);
	font-weight: 900;
	line-height: 1.02;
	letter-spacing: -0.03em;
	background:
		radial-gradient(ellipse 70% 80% at 90% 10%, rgba(197, 12, 33, 0.45), transparent 70%),
		linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 100% 3rem,
		linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 3rem 100%,
		#111;
}

.pf-card__badge {
	position: absolute;
	top: 50%;
	left: 50%;
	display: grid;
	place-items: center;
	width: clamp(4.5rem, 3.5rem + 2.5vw, 6.5rem);
	height: clamp(4.5rem, 3.5rem + 2.5vw, 6.5rem);
	border-radius: 50%;
	background: var(--svc-red);
	color: #fff;
	font-size: 0.9375rem;
	font-weight: 700;
	transform: translate(-50%, -50%) scale(0);
	transition: transform 0.45s var(--pf-ease);
	pointer-events: none;
}

@media (hover: hover) {
	.pf-card__link:hover .pf-card__badge,
	.pf-card__link:focus-visible .pf-card__badge {
		transform: translate(-50%, -50%) scale(1);
	}
}

.pf-card__body {
	display: block;
	padding-top: 1.25rem;
}

.pf-card__cats {
	display: block;
	margin-bottom: 0.5rem;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	line-height: 1.4;
	text-transform: uppercase;
	color: var(--svc-muted);
}

.pf .pf-card__title {
	font-size: clamp(1.5rem, 1rem + 1.4vw, 2.5rem) !important;
	font-weight: 800 !important;
	line-height: 1.08 !important;
	letter-spacing: -0.025em;
	text-wrap: balance;
	transition: color 0.2s ease;
}

.pf-card__title::after {
	content: '.';
	color: var(--svc-red);
}

.pf-card__link:hover .pf-card__title {
	color: var(--svc-red);
}

.pf-card__summary {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	overflow: hidden;
	max-width: 36rem;
	margin-top: 0.55rem;
	font-size: 0.975rem;
	line-height: 1.5;
	color: var(--svc-muted);
}

.pf-archive__btb-inner {
	max-width: calc(46rem + 2 * var(--svc-gutter));
	margin-inline: 0;
}

.pf .pf-archive__btb-title {
	font-size: var(--svc-fs-h2) !important;
	font-weight: 800 !important;
	line-height: 1.1 !important;
	letter-spacing: -0.02em;
	margin-bottom: 1rem !important;
}

.pf-archive__btb p {
	color: var(--svc-muted);
	margin-bottom: 1.75rem !important;
}

/* --------------------------------------------------------------------------
   Motion
   ----------------------------------------------------------------------- */

@keyframes pf-rise {
	from {
		opacity: 0;
		transform: translateY(0.35em);
	}
}

@keyframes pf-fade {
	from {
		opacity: 0;
	}
}

@keyframes pf-settle {
	from {
		transform: scale(1.12);
	}
}

@keyframes pf-parallax {
	to {
		transform: translateY(14%) scale(1.04);
	}
}

@keyframes pf-scroll-cue {
	0% {
		transform: translateX(-100%);
	}

	60%,
	100% {
		transform: translateX(100%);
	}
}

@keyframes pf-col-up {
	from {
		transform: translateX(var(--pf-x, 0)) translateY(var(--pf-from, 12%));
	}

	to {
		transform: translateX(var(--pf-x, 0)) translateY(var(--pf-to, -12%));
	}
}

@keyframes pf-drift {
	from {
		translate: var(--pf-from, 10%) 0;
	}

	to {
		translate: var(--pf-to, -10%) 0;
	}
}

@keyframes pf-expand {
	from {
		clip-path: inset(7% 5% round var(--pf-radius));
	}

	to {
		clip-path: inset(0 round 0);
	}
}

@keyframes pf-zoom-out {
	from {
		transform: scale(1.14);
	}
}

@keyframes pf-card-in {
	from {
		opacity: 0;
		transform: translateY(3rem);
	}
}

@media (prefers-reduced-motion: no-preference) {
	.pf-hero__media {
		animation: pf-settle 1.8s var(--pf-ease) 0.2s both;
	}

	.pf-hero__client,
	.pf-hero__title-line,
	.pf-hero__foot {
		animation: pf-rise 1s var(--pf-ease) both;
	}

	.pf-hero__client {
		animation-delay: 0.35s;
	}

	.pf-hero__title-line {
		animation-delay: 0.45s;
	}

	.pf-hero__foot {
		animation-delay: 0.65s;
	}

	.pf-hero__crumbs,
	.pf-hero__scroll {
		animation: pf-fade 1s ease 0.9s both;
	}

	.pf-hero__scroll-line::after {
		animation: pf-scroll-cue 2.4s var(--pf-ease) 1.5s infinite;
	}

	.pf-card.is-entering {
		animation: pf-card-in 0.6s var(--pf-ease) both;
	}

	@supports (animation-timeline: view()) {
		.pf-hero__img {
			animation: pf-parallax linear both;
			animation-timeline: view();
			animation-range: exit 0% exit 100%;
		}

		.pf-reveal-img,
		.pf-card {
			animation: svc-reveal linear both;
			animation-timeline: view();
			animation-range: entry 0% entry 30%;
		}

		.pf-reveal-img img {
			animation: pf-zoom-out linear both;
			animation-timeline: view();
			animation-range: entry 0% cover 50%;
		}

		.pf-feature--bleed .pf-feature__frame {
			animation: pf-expand linear both;
			animation-timeline: view();
			animation-range: entry 10% cover 45%;
		}

		.pf-feature--contained .pf-feature__frame,
		.pf-feature--browser .pf-browser {
			animation: svc-reveal linear both;
			animation-timeline: view();
			animation-range: entry 0% entry 35%;
		}

		@media (min-width: 700px) {
			.pf-desktop.pf-move .pf-desktop__stage {
				view-timeline-name: --pf-desk;
			}

			.pf-desktop.pf-move .pf-desktop__col {
				animation: pf-col-up linear both;
				animation-timeline: --pf-desk;
				animation-range: cover 0% cover 100%;
			}

			.pf-desktop.pf-move .pf-desktop__col--1 {
				--pf-from: 10%;
				--pf-to: -14%;
			}

			.pf-desktop.pf-move .pf-desktop__col--2 {
				--pf-from: -12%;
				--pf-to: 14%;
			}

			.pf-desktop.pf-move .pf-desktop__col--3 {
				--pf-from: 16%;
				--pf-to: -18%;
			}

			.pf-mobile.pf-move .pf-mobile__stage {
				view-timeline-name: --pf-phones;
			}

			.pf-mobile.pf-move .pf-mobile__row {
				animation: pf-drift linear both;
				animation-timeline: --pf-phones;
				animation-range: cover 0% cover 100%;
			}

			.pf-mobile.pf-move .pf-mobile__row--1 {
				--pf-from: 14%;
				--pf-to: -14%;
			}

			.pf-mobile.pf-move .pf-mobile__row--2 {
				--pf-from: -16%;
				--pf-to: 16%;
			}

			.pf-mobile--staggered.pf-move .pf-mobile__row,
			.pf-mobile--straight.pf-move .pf-mobile__row {
				--pf-from: 4%;
				--pf-to: -4%;
			}
		}

	}
}

@media (prefers-reduced-motion: reduce) {
	.pf *,
	.pf-hero * {
		transition-duration: 0.01ms !important;
	}

	.pf-device__shot,
	.pf-digital__shot {
		animation: none !important;
		transform: none !important;
	}

	.pf-digital .pf-device__slide {
		transition: none !important;
	}

	.pf-digital--oversized .pf-digital__stage,
	.pf-digital--oversized .pf-digital__slides,
	.pf-digital--oversized .pf-digital__slide--single,
	.pf-digital--oversized .pf-digital__viewport > .pf-digital__shot,
	.pf-digital--oversized .pf-digital__viewport > video.pf-digital__shot {
		animation: none !important;
		transform: none !important;
	}
}

/* --------------------------------------------------------------------------
   Project showcase + Brief / Approach / Result (extends service components)
   ----------------------------------------------------------------------- */

.pf-project-showcase {
	padding-bottom: clamp(3rem, 2rem + 4vw, 5.5rem);
}

.pf-project-showcase .svc-h2 {
	max-width: 18ch;
	margin-bottom: clamp(2.25rem, 1.5rem + 2.5vw, 3.75rem);
}

.pf-project-showcase__stage {
	margin-top: clamp(0.75rem, 0.35rem + 1.25vw, 1.5rem);
}

.pf-project-showcase .pf-device--laptop {
	max-width: min(58rem, 100%);
}

.pf-project-showcase .pf-device--laptop .pf-device__screen {
	aspect-ratio: 16 / 10;
	min-height: min(52vh, 28rem);
}

.pf-project-showcase .pf-device--phone {
	max-width: min(22rem, 100%);
}

.pf-project-showcase .pf-device--portrait {
	max-width: min(28rem, 100%);
}

.pf-project-showcase .pf-device--landscape {
	max-width: min(58rem, 100%);
}

/* CSS digital screen bezel (portrait + landscape). No photographic device PNG. */
.pf-digital {
	--pf-bezel: clamp(1rem, 1.25vw, 1.5rem);
	--pf-bezel-radius: clamp(1.125rem, 1.4vw, 1.5rem);
	--pf-glass-radius: calc(var(--pf-bezel-radius) - 0.45rem);
	--pf-screen-aspect: 9 / 16;
	position: relative;
	width: 100%;
	max-width: min(26rem, 78vw);
	margin-inline: auto;
}

.pf-digital--landscape {
	--pf-screen-aspect: 16 / 9;
	max-width: min(48rem, 94vw);
}

.pf-digital__stage {
	position: relative;
	width: 100%;
	line-height: 0;
}

.pf-digital__bezel {
	padding: var(--pf-bezel);
	background:
		linear-gradient(160deg, #2a2a2a 0%, #0a0a0a 42%, #121212 100%);
	border-radius: var(--pf-bezel-radius);
	box-shadow:
		0 18px 48px rgba(0, 0, 0, 0.28),
		inset 0 1px 0 rgba(255, 255, 255, 0.12),
		inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.pf-digital__glass {
	position: relative;
	overflow: hidden;
	aspect-ratio: var(--pf-screen-aspect);
	border-radius: var(--pf-glass-radius);
	background: #050505;
	box-shadow:
		inset 0 0 0 1px rgba(255, 255, 255, 0.08),
		inset 0 1px 2px rgba(0, 0, 0, 0.55);
}

.pf-digital__viewport {
	position: absolute;
	inset: 0;
	z-index: 1;
	overflow: hidden;
	border-radius: inherit;
	background: #050505;
}

.pf-digital__slides {
	position: absolute;
	inset: 0;
}

.pf-digital__slide,
.pf-digital__slide--single {
	position: absolute;
	inset: 0;
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #050505;
}

.pf-digital__slide--single {
	position: absolute;
}

.pf-digital__shot {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center top;
}

.pf-digital__placeholder {
	position: absolute;
	inset: 0;
	min-height: 0;
	border-radius: 0;
}

/*
 * Optional oversized digital presentation: full content width, crop to the
 * upper screen, flush to the section bottom, subtle scroll parallax.
 */
.pf-project-showcase--oversized {
	padding-bottom: 0;
}

.pf-project-showcase--oversized .pf-project-showcase__intro {
	margin-bottom: clamp(2.25rem, 1.5rem + 2.5vw, 3.75rem);
}

.pf-project-showcase--oversized .pf-project-showcase__intro .svc-h2 {
	margin-bottom: 0;
}

.pf-project-showcase--oversized .pf-project-showcase__stage {
	margin-top: 0;
	overflow: hidden;
}

.pf-project-showcase--oversized .pf-project-showcase__stage > .svc-container {
	max-width: min(90rem, 100%); /* ~1440px content width */
	padding-bottom: 0;
}

.pf-digital--oversized {
	/*
	 * Crop window sized to the upper screen. The bezel stays pinned;
	 * only the glass content scrolls up with the page.
	 */
	--pf-digital-crop-h: clamp(22rem, 58vh, 34rem);
	--pf-digital-content-scale: 1.55;
	--pf-bezel: clamp(1.125rem, 1.35vw, 1.5rem);
	--pf-bezel-radius: clamp(1.25rem, 1.5vw, 1.5rem);
	position: relative;
	width: 100%;
	max-width: none;
	height: var(--pf-digital-crop-h);
	overflow: hidden;
	margin-inline: auto;
}

.pf-digital--oversized.pf-digital--landscape {
	--pf-digital-crop-h: clamp(18rem, 48vh, 28rem);
	--pf-digital-content-scale: 1.4;
}

.pf-digital--oversized .pf-digital__stage {
	position: relative;
	width: 100%;
	height: 100%;
	max-width: none;
	transform: none;
}

.pf-digital--oversized .pf-digital__bezel {
	height: 100%;
	box-sizing: border-box;
	/* Rounded crown stays put; open bottom flush to the section below. */
	padding-bottom: 0;
	border-radius: var(--pf-bezel-radius) var(--pf-bezel-radius) 0 0;
}

.pf-digital--oversized .pf-digital__glass {
	aspect-ratio: auto;
	height: 100%;
	border-radius: var(--pf-glass-radius) var(--pf-glass-radius) 0 0;
}

.pf-digital--oversized .pf-digital__slides,
.pf-digital--oversized .pf-digital__slide--single,
.pf-digital--oversized .pf-digital__viewport > .pf-digital__shot,
.pf-digital--oversized .pf-digital__viewport > video.pf-digital__shot {
	top: 0;
	right: 0;
	bottom: auto;
	left: 0;
	height: calc(100% * var(--pf-digital-content-scale));
	will-change: transform;
	transform: translate3d(0, 0, 0);
}

.pf-digital--oversized .pf-digital__slides .pf-device__slide {
	inset: 0;
}

.pf-digital--oversized .pf-digital__shot {
	height: 100%;
	object-position: center top;
}

@media (max-width: 899px) {
	.pf-digital--oversized {
		--pf-digital-crop-h: clamp(20rem, 54vh, 30rem);
	}

	.pf-digital--oversized.pf-digital--landscape {
		--pf-digital-crop-h: clamp(14rem, 42vh, 22rem);
	}
}

@media (max-width: 559px) {
	.pf-digital--oversized {
		--pf-digital-crop-h: clamp(16rem, 50vh, 24rem);
		--pf-bezel: 0.875rem;
		--pf-bezel-radius: 1rem;
	}
}

.pf-project-showcase__media {
	margin: 0;
	aspect-ratio: 16 / 9;
}

.pf-device__placeholder {
	position: absolute;
	inset: 0;
	min-height: 0;
	border-radius: 0;
}

.pf-project-showcase__url,
.pf-project-showcase__caption,
.pf-story__caption {
	margin: 1.25rem 0 0;
	text-align: center;
	font-size: 0.875rem;
	color: var(--svc-muted);
}

.pf-story .svc-intro__head {
	margin-bottom: clamp(1.75rem, 1.25rem + 1.75vw, 3rem);
}

.pf-story .svc-intro__body {
	margin-bottom: clamp(2.25rem, 1.5rem + 2.5vw, 3.75rem);
}

/* Full-width story image: edge-to-edge, natural aspect, flush to section bottom. */
.pf-story--full_width_image {
	padding-bottom: 0;
}

.pf-story--full_width_image .svc-intro__body {
	margin-bottom: clamp(1.75rem, 1.25rem + 1.75vw, 3rem);
}

.pf-story--full_width_image .svc-container > .svc-eyebrow:last-child {
	margin-bottom: clamp(1.75rem, 1.25rem + 1.75vw, 3rem);
}

.pf-story__bleed {
	margin: 0;
	width: 100%;
	max-width: 100%;
	overflow: hidden;
}

.pf-story__bleed-link {
	display: block;
	color: inherit;
	text-decoration: none;
	line-height: 0;
}

.pf-story__bleed .svc-media__img,
.pf-story__bleed-img,
.pf-story__bleed img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	object-fit: contain;
	object-position: center center;
	vertical-align: bottom;
}

.pf-story__pair {
	display: grid;
	gap: clamp(1rem, 0.75rem + 1.5vw, 1.75rem);
	margin: 0 0 clamp(1.25rem, 1rem + 1.5vw, 2rem);
}

@media (min-width: 700px) {
	.pf-story__pair {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.pf-story__pair .svc-media__figure,
.pf-story__full.svc-media__figure {
	margin: 0;
	aspect-ratio: 16 / 10;
}

.pf-story__full.svc-media__figure {
	aspect-ratio: 21 / 9;
}

.pf-story--single_image .pf-story__full.svc-media__figure {
	aspect-ratio: 16 / 9;
}

/* Result / two-image story frames stay square; lightbox opens the full photo. */
.pf-story--two_images .pf-story__pair .svc-media__figure,
.pf-story__pair .pf-story__frame {
	aspect-ratio: 1 / 1;
}

.pf-story--two_images .pf-story__pair:has(> .pf-story__frame:only-child) {
	grid-template-columns: minmax(0, 28rem);
	justify-content: center;
}

.pf-story__zoom {
	display: block;
	height: 100%;
	overflow: hidden;
	color: inherit;
	text-decoration: none;
}

.pf-story__zoom .svc-media__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	transition: transform 0.45s var(--pf-ease, ease);
}

.pf-story__zoom:hover .svc-media__img,
.pf-story__zoom:focus-visible .svc-media__img {
	transform: scale(1.03);
}

.pf-story__carousel {
	margin: 0 0 clamp(1.25rem, 1rem + 1.5vw, 2rem);
}

.pf-story__carousel .svc-media__figure,
.pf-story__carousel-slide {
	margin: 0;
	aspect-ratio: 16 / 9;
}

.pf-story__carousel-placeholders {
	display: grid;
	gap: clamp(1rem, 0.75rem + 1.5vw, 1.75rem);
}

@media (min-width: 700px) {
	.pf-story__carousel-placeholders {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.pf-story-carousel .owl-dots {
	margin-top: 1rem;
	text-align: center;
}

/* --------------------------------------------------------------------------
   Unified project: narrative, device showcase, placeholders
   ----------------------------------------------------------------------- */

.pf-card__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin-top: 0.85rem;
	font-size: 0.9375rem;
	font-weight: 600;
}

.pf-narrative__grid {
	display: grid;
	gap: clamp(1.25rem, 1rem + 1.5vw, 2rem);
	max-width: 46rem;
}

.pf-narrative__body {
	font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.2rem);
	line-height: 1.65;
	color: var(--svc-ink);
}

.pf-narrative__body > *:first-child {
	margin-top: 0;
}

.pf-narrative__body > *:last-child {
	margin-bottom: 0;
}

.pf-support__grid {
	display: grid;
	gap: clamp(1rem, 0.75rem + 1.5vw, 2rem);
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (min-width: 700px) {
	.pf-support--pair .pf-support__grid,
	.pf-support__grid--brand {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.pf-support--trio .pf-support__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.pf-support__figure {
	margin: 0;
}

.pf-support__img,
.pf-brand-feature__img,
.pf-screens__img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--pf-radius, 0.75rem);
}

.pf-support__caption {
	margin-top: 0.65rem;
	font-size: 0.875rem;
	color: var(--svc-muted);
}

.pf-showcase .pf-label {
	margin-bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}

.pf-device {
	position: relative;
	margin-inline: auto;
	max-width: min(52rem, 100%);
}

.pf-device--laptop {
	padding: 0.85rem 0.85rem 0;
	border-radius: 1.1rem 1.1rem 0.35rem 0.35rem;
	background: linear-gradient(180deg, #3a3a3a 0%, #1a1a1a 55%, #111 100%);
	box-shadow:
		0 2.5rem 4rem -2rem rgba(0, 0, 0, 0.45),
		inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.pf-device__chrome {
	display: flex;
	justify-content: center;
	padding-bottom: 0.55rem;
}

.pf-device__camera {
	width: 0.45rem;
	height: 0.45rem;
	border-radius: 50%;
	background: #0a0a0a;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.pf-device__screen {
	position: relative;
	overflow: hidden;
	border-radius: 0.2rem;
	background: #0d0d0d;
	aspect-ratio: 16 / 10;
}

.pf-device--tablet .pf-device__screen {
	aspect-ratio: 4 / 3;
	border-radius: 1.25rem;
	border: 0.65rem solid #1a1a1a;
}

.pf-device--phone .pf-device__screen {
	max-width: 22rem;
	margin-inline: auto;
	aspect-ratio: 9 / 19;
	border-radius: 1.75rem;
	border: 0.55rem solid #1a1a1a;
}

.pf-device--portrait .pf-device__screen {
	max-width: 28rem;
	margin-inline: auto;
	aspect-ratio: 9 / 16;
	border-radius: 0.75rem;
	border: 0.5rem solid #222;
}

.pf-device--landscape .pf-device__screen {
	aspect-ratio: 16 / 9;
	border-radius: 0.75rem;
	border: 0.5rem solid #222;
}

.pf-device__base {
	height: 0.85rem;
	margin-top: 0.35rem;
	border-radius: 0 0 0.85rem 0.85rem;
	background: linear-gradient(180deg, #2a2a2a, #151515);
}

.pf-device__base span {
	display: block;
	width: 28%;
	height: 0.28rem;
	margin: 0.2rem auto 0;
	border-radius: 999px;
	background: #0a0a0a;
}

.pf-device__viewport {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.pf-device__shot {
	display: block;
	width: 100%;
	height: auto;
	max-width: none;
	transform: translateY(0);
	will-change: transform;
}

.pf-device.is-scrolling .pf-device__shot {
	animation: pf-laptop-scroll linear both;
	animation-timeline: view();
	animation-range: entry 20% cover 80%;
}

.pf-device__video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pf-device__slides {
	position: absolute;
	inset: 0;
}

.pf-device__slide {
	position: absolute;
	inset: 0;
	margin: 0;
	opacity: 0;
	transition: opacity 0.7s ease;
}

.pf-device__slide.is-active {
	opacity: 1;
	z-index: 1;
}

.pf-device__slide .pf-device__shot {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
}

/* Photographic digital-display mockups (hardware outline with UI composited in). */
.pf-project-showcase__mockup {
	position: relative;
	max-width: min(28rem, 78vw);
	margin: 0 auto;
}

.pf-device__slides--mockup {
	position: relative;
	inset: auto;
	aspect-ratio: 3 / 4;
}

.pf-device__slides--mockup .pf-device__slide {
	display: flex;
	align-items: center;
	justify-content: center;
}

.pf-device__slides--mockup .pf-device__slide:not(.is-active) {
	pointer-events: none;
}

.pf-project-showcase__mockup-img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
	object-fit: contain;
}

.pf-showcase__url {
	margin: 1rem 0 0;
	text-align: center;
	font-size: 0.875rem;
	color: var(--svc-muted);
}

.pf-showcase__hint {
	margin-top: 1.25rem;
	font-size: 0.9375rem;
	color: var(--svc-muted);
}

.pf-screens {
	display: grid;
	gap: clamp(1rem, 0.75rem + 1.5vw, 1.75rem);
	margin: clamp(2rem, 1.5rem + 2vw, 3.5rem) 0 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 700px) {
	.pf-screens {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.pf-screens__item {
	overflow: hidden;
	border-radius: var(--pf-radius, 0.75rem);
	background: #f3f3f3;
	box-shadow: 0 1rem 2rem -1.25rem rgba(0, 0, 0, 0.35);
}

.pf-brand-feature {
	margin: 0 0 clamp(1.25rem, 1rem + 1.5vw, 2rem);
}

.pf-placeholder {
	display: grid;
	place-items: center;
	min-height: 14rem;
	padding: 2rem;
	border: 1px dashed rgba(13, 13, 13, 0.25);
	border-radius: var(--pf-radius, 0.75rem);
	background: repeating-linear-gradient(
		-45deg,
		rgba(13, 13, 13, 0.03),
		rgba(13, 13, 13, 0.03) 8px,
		transparent 8px,
		transparent 16px
	);
	text-align: center;
	color: var(--svc-muted);
}

.pf-placeholder--screen {
	position: absolute;
	inset: 0;
	min-height: 0;
	border: 0;
	border-radius: 0;
}

.pf-placeholder p {
	max-width: 28ch;
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.45;
}

@keyframes pf-laptop-scroll {
	from {
		transform: translateY(0);
	}

	to {
		transform: translateY(calc(-100% + 100cqi));
	}
}

@supports not (animation-timeline: view()) {
	.pf-device[data-pf-laptop-scroll] .pf-device__shot {
		animation: none;
	}
}
