/*
 * /portfolio page (page-portfolio.php). Loaded only on that page (see
 * inc/enqueue.php). Built from the approved design canvas: same tokens as
 * the rest of the site (black ground, Manrope, #ff6600 accent, #333333
 * grid lines), square-cornered sections between 1px grid lines, pill
 * buttons, hero with the black oval over a grey glow.
 *
 * Desktop reference width is 1440px: sections cap at 1216px with 64px of
 * inner padding. Below 768px the sections sit inside a 16px gutter.
 */

.pf {
	background: var(--color-black);
	color: var(--color-white);
	font-family: var(--font-body);
	overflow-x: clip;
}

/* The global `section` rule adds a bottom border; this page draws its own
   top borders instead. */
.pf section {
	border-bottom: 0;
}

:where(.pf) a {
	color: inherit;
}

/* ----------------------------------------------------------------------
   Shared bits
   ---------------------------------------------------------------------- */
.pf-section {
	width: 100%;
	max-width: 1216px;
	margin-inline: auto;
	padding: 120px 64px;
	border-left: 1px solid var(--color-border-soft);
	border-right: 1px solid var(--color-border-soft);
	border-top: 1px solid var(--color-border);
}

.pf-eyebrow {
	margin: 0;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.45em;
	text-transform: uppercase;
	color: #a3a3a3;
}

.pf-label {
	margin: 0 0 10px;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #a3a3a3;
}

.pf-kicker {
	margin: 0;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--color-text-faint);
}

.pf-h2 {
	margin: 0;
	font-size: 56px;
	line-height: 1.08;
	font-weight: 800;
	letter-spacing: 0.01em;
}

.pf-h2--md {
	font-size: 44px;
	line-height: 1.1;
}

.pf-text {
	margin: 0;
	font-size: 17px;
	line-height: 1.55;
	font-weight: 300;
	color: #d9dde3;
}

.pf-text--strong {
	font-weight: 400;
	color: var(--color-white);
}

.pf-list {
	margin: 0;
	padding-left: 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	font-size: 17px;
	line-height: 1.5;
	font-weight: 300;
	color: #d9dde3;
}

.pf-tags {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.pf-tags li {
	padding: 6px 14px;
	border: 1px solid var(--color-border-soft);
	border-radius: 100px;
	font-size: 13px;
	font-weight: 400;
	color: #d9dde3;
}

.pf-project-id {
	align-self: flex-start;
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 15px;
	font-weight: 500;
	color: var(--color-white);
}

.pf-project-id img {
	display: block;
	width: 24px;
	height: 24px;
	border-radius: 4px;
	object-fit: cover;
}

.pf-project-id--logo-left img {
	object-position: left center;
}

/* Underlined text link with the accent underline. */
.pf-link {
	align-self: flex-start;
	font-size: 16px;
	font-weight: 500;
	color: var(--color-white);
	text-decoration: underline;
	text-decoration-color: var(--color-orange);
	text-underline-offset: 6px;
	text-decoration-thickness: 2px;
}

/* Large numerals: the white-to-grey radial gradient the homepage titles use. */
.pf-num {
	align-self: flex-start;
	display: inline-block;
	font-size: 56px;
	line-height: 1;
	font-weight: 800;
	color: var(--color-white);
	background-image: radial-gradient(ellipse 75% 75% at 30% 50%, #ffffff 0%, #d7d7d7 25%, #aeaeae 50%, #868686 75%, #5d5d5d 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

/* Result numerals inside a project are plain accent colour. */
.pf-result-num {
	font-size: 44px;
	line-height: 1;
	font-weight: 800;
	color: var(--color-orange);
}

/* Buttons */
.pf-btn {
	display: inline-block;
	padding: 17px 28px;
	border: 1px solid var(--color-border-soft);
	border-radius: 100px;
	font-size: 15px;
	font-weight: 500;
	color: var(--color-white);
	text-decoration: none;
	transition: border-color 0.2s ease;
}

.pf-btn:hover,
.pf-btn:focus-visible {
	border-color: var(--color-white);
}

.pf-btn--primary {
	padding: 18px 28px;
	border-color: var(--color-white);
	background: var(--color-white);
	color: var(--color-black);
}

.pf-btn--primary:hover,
.pf-btn--primary:focus-visible {
	background: #d9dde3;
	border-color: #d9dde3;
}

.pf-textlink {
	display: inline-block;
	padding: 17px 12px;
	font-size: 18px;
	font-weight: 400;
	color: var(--color-white);
	text-decoration: none;
}

.pf-cta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px;
	align-items: center;
}

.pf-cta .pf-link {
	align-self: center;
	padding: 17px 8px;
}

/* ----------------------------------------------------------------------
   Hero
   ---------------------------------------------------------------------- */
.pf-hero {
	position: relative;
	min-height: 100svh;
	/* clip (not hidden): hidden would turn .pf-hero into a scroll container
	   and break the sticky top half, same as the homepage hero. */
	overflow: clip;
	display: flex;
	flex-direction: column;
	background: var(--color-black);
}

/* Background: the same three drifting light blobs, growing vignette and film
   grain the homepage hero uses (layout.css .hero__grainient / __aurora /
   __vignette / __grain), written as pure CSS animation so it runs on load
   without any script. Only transform/opacity animate (plus the vignette's
   registered mask-size properties). Reduced-motion visitors get the final
   still state. */
@property --pf-gx {
	syntax: "<percentage>";
	inherits: false;
	initial-value: 100%;
}

@property --pf-gy {
	syntax: "<percentage>";
	inherits: false;
	initial-value: 100%;
}

.pf-hero__grainient {
	position: absolute;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
	opacity: 0.6;
	animation: pf-glow-in 1.5s ease-out both;
}

.pf-hero__aurora {
	position: absolute;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(225, 225, 225, 0.55) 0%, rgba(225, 225, 225, 0) 70%);
	filter: blur(60px);
	mix-blend-mode: screen;
	will-change: transform;
}

.pf-hero__aurora--1 {
	left: 25%;
	top: 25%;
	width: 50%;
	height: 75%;
	animation: pf-aurora-drift-1 2s ease-in-out infinite alternate;
}

.pf-hero__aurora--2 {
	left: -15%;
	top: 40%;
	width: 65%;
	height: 65%;
	animation: pf-aurora-drift-2 3s ease-in-out infinite alternate;
}

.pf-hero__aurora--3 {
	left: 45%;
	top: 46%;
	width: 70%;
	height: 70%;
	animation: pf-aurora-drift-3 2.2s ease-in-out infinite alternate;
}

.pf-hero__vignette {
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: 0.4;
	background-color: rgb(144, 144, 144);
	-webkit-mask-image: radial-gradient(ellipse var(--pf-gx) var(--pf-gy) at center bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 65%);
	mask-image: radial-gradient(ellipse var(--pf-gx) var(--pf-gy) at center bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 65%);
	animation: pf-vignette-in 1.5s ease-out both;
}

.pf-hero__grain {
	position: absolute;
	inset: 0;
	pointer-events: none;
	mix-blend-mode: overlay;
	background-repeat: repeat;
	background-size: 200px 200px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch' result='noise'/%3E%3CfeColorMatrix in='noise' type='matrix' values='0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0 0 0 0 1' result='gray'/%3E%3CfeComponentTransfer in='gray'%3E%3CfeFuncR type='linear' slope='2.2' intercept='-0.6'/%3E%3CfeFuncG type='linear' slope='2.2' intercept='-0.6'/%3E%3CfeFuncB type='linear' slope='2.2' intercept='-0.6'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes pf-glow-in {
	from { opacity: 0; }
	to { opacity: 0.6; }
}

@keyframes pf-vignette-in {
	from { --pf-gx: 40%; --pf-gy: 40%; }
	to { --pf-gx: 100%; --pf-gy: 100%; }
}

@keyframes pf-aurora-drift-1 {
	0% { transform: translate(0%, 10%) scale(1); }
	100% { transform: translate(0%, 1%) scale(1.18); }
}

@keyframes pf-aurora-drift-2 {
	0% { transform: translate(4%, 0%) scale(1.05); }
	100% { transform: translate(-15%, -8%) scale(0.8); }
}

@keyframes pf-aurora-drift-3 {
	0% { transform: translate(0%, 6%) scale(0.98); }
	100% { transform: translate(-6%, -10%) scale(1.1); }
}

@media (prefers-reduced-motion: reduce) {
	.pf-hero__grainient,
	.pf-hero__vignette,
	.pf-hero__aurora {
		animation: none;
	}
}

.pf-hero__lines {
	position: absolute;
	inset: 0;
	z-index: 3;
	pointer-events: none;
}

.pf-hero__lines-inner {
	max-width: 1216px;
	height: 100%;
	margin-inline: auto;
	border-left: 1px solid var(--color-border-soft);
	border-right: 1px solid var(--color-border-soft);
}

.pf-hero__upper {
	position: sticky;
	top: 0;
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 28px;
	padding: 96px 32px 32px;
	text-align: center;
}

.pf-hero__title {
	width: 100%;
	max-width: 1216px;
	margin: 0;
	line-height: 1.04;
	font-weight: 800;
	letter-spacing: 0.01em;
}

/* Scroll-linked blur on the title: --pf-title-blur (0 to 1) is written by
   portfolio.js as the lower half scrolls over the pinned top half. */
.pf-hero__name-svg,
.pf-hero__role {
	filter: blur(calc(var(--pf-title-blur, 0) * 20px));
	transition: filter 0.1s linear;
}

/* The name is SVG text with a native gradient fill (same technique as the
   homepage titles), not background-clip:text, which glitches under blur. */
.pf-hero__name-svg {
	display: block;
	width: 100%;
	height: 106px;
	overflow: visible;
}

.pf-hero__name-svg text {
	font-family: var(--font-heading);
	font-size: 96px;
	font-weight: 800;
	letter-spacing: 0.01em;
}

.pf-hero__role {
	display: block;
	margin-top: 8px;
	font-size: 48px;
	font-weight: 200;
	letter-spacing: 8.4px;
	color: var(--color-white);
}

.pf-hero__lower {
	position: relative;
	z-index: 1;
	flex: 1 1 0;
	min-height: 380px;
}

/* The oval grows (scaleX a little, scaleY a lot) as the lower half scrolls
   up over the pinned title; --pf-oval-progress is written by portfolio.js. */
.pf-hero__oval {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
	display: block;
	transform-origin: bottom center;
	transform: scaleX(calc(1 + var(--pf-oval-progress, 0) * 0.08)) scaleY(calc(1 + var(--pf-oval-progress, 0) * 0.9));
	transition: transform 0.1s linear;
}

@media (prefers-reduced-motion: reduce) {
	.pf-hero__oval { transform: none; transition: none; }
	.pf-hero__name-svg,
	.pf-hero__role { filter: none; transition: none; }
}

.pf-hero__content {
	position: relative;
	max-width: 1216px;
	margin-inline: auto;
	padding: clamp(80px, 14svh, 130px) 64px 96px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 28px;
	text-align: center;
}

.pf-hero__intro {
	margin: 0;
	max-width: 820px;
	font-size: 28px;
	line-height: 1.4;
	font-weight: 300;
	color: #d9dde3;
}

.pf-hero__meta {
	position: absolute;
	left: 50%;
	bottom: 40px;
	transform: translateX(-50%);
	width: max-content;
	max-width: calc(100% - 64px);
	margin: 0;
	text-align: center;
	font-size: 14px;
	font-weight: 300;
	letter-spacing: 0.42px;
	color: #888888;
}

.pf-hero__meta a {
	text-decoration: none;
}

/* ----------------------------------------------------------------------
   Text reveal. Titles and hero text carry data-reveal-heading: main.js (the
   same system the homepage uses) splits them into words and blurs them in
   one by one as they come into view. --pf-delay shifts a whole element later
   so the hero reads in sequence; whole elements that can't be word-split
   (the SVG name, buttons, contact line) fade-blur in on load with the same
   delay. Nothing here uses transform on those, so their own positioning is
   untouched.
   ---------------------------------------------------------------------- */
.pf .reveal-word {
	transition-delay: calc(var(--pf-delay, 0ms) + var(--word-index, 0) * 70ms);
}

.pf-hero__intro .reveal-word {
	transition-delay: calc(var(--pf-delay, 0ms) + var(--word-index, 0) * 40ms);
}

.pf-reveal {
	animation: pf-fade-blur 0.7s ease-out both;
	animation-delay: var(--pf-delay, 0ms);
}

@keyframes pf-fade-blur {
	from { opacity: 0; filter: blur(8px); }
	to { opacity: 1; filter: blur(0); }
}

@media (prefers-reduced-motion: reduce) {
	.pf-reveal { animation: none; }
}

/* ----------------------------------------------------------------------
   Proof strip
   ---------------------------------------------------------------------- */
.pf-proof {
	padding-block: 64px 120px;
}

.pf-proof__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 40px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pf-proof__item {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.pf-proof__caption {
	font-size: 17px;
	line-height: 1.45;
	font-weight: 300;
	color: var(--color-text-faint);
}

.pf-proof__item .pf-project-id {
	margin-top: 4px;
}

/* ----------------------------------------------------------------------
   Projects
   ---------------------------------------------------------------------- */
.pf-project {
	display: flex;
	flex-wrap: nowrap;
	gap: 64px;
	align-items: center;
}

.pf-project--left-bleed {
	gap: 80px;
}

.pf-project--right {
	flex-direction: row-reverse;
	justify-content: space-between;
	gap: 80px;
}

.pf-p-media,
.pf-p-text {
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.pf-p-text {
	gap: 28px;
}

.pf-p-media {
	gap: 32px;
}

.pf-p-media img,
.pf-full-media img {
	display: block;
	width: 100%;
	height: auto;
}

.pf-project--left .pf-p-media { flex: 6 1 0; }
.pf-project--left .pf-p-text { flex: 5 1 0; }

.pf-project--left-bleed .pf-p-media {
	flex: 1 1 560px;
	margin-left: -64px;
}

.pf-project--left-bleed .pf-p-media > :not(.pf-p-image) {
	padding-left: 64px;
}

.pf-project--left-bleed .pf-p-text { flex: 1 1 480px; }

.pf-project--right .pf-p-media { flex: 0 1 540px; }
.pf-project--right .pf-p-text { flex: 1 1 420px; max-width: 560px; }

.pf-p-head {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.pf-p-body {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

/* Result numerals block (Lysts) */
.pf-results {
	display: flex;
	flex-wrap: wrap;
	gap: 20px 40px;
	padding: 28px 0;
	border-top: 1px solid var(--color-border-soft);
	border-bottom: 1px solid var(--color-border-soft);
}

.pf-results .pf-label {
	flex-basis: 100%;
	margin: 0;
}

.pf-result {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.pf-result__caption {
	max-width: 170px;
	font-size: 14px;
	line-height: 1.4;
	font-weight: 300;
	color: var(--color-text-faint);
}

.pf-results--single {
	padding: 0;
	border: 0;
}

.pf-results--single .pf-result-num {
	font-size: 72px;
}

.pf-results--single .pf-result__caption {
	max-width: none;
}

/* Full-width image layout (AIceberg): image bleeds border to border, text in
   two columns below. */
.pf-project--full {
	flex-direction: column;
	align-items: stretch;
	gap: 64px;
}

.pf-full-media {
	margin-inline: -64px;
}

.pf-full-cols {
	display: flex;
	flex-wrap: wrap;
	gap: 64px;
}

.pf-full-cols > .pf-p-head-col {
	flex: 1 1 420px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.pf-full-cols > .pf-p-text {
	flex: 1 1 480px;
}

/* ----------------------------------------------------------------------
   UI craft
   ---------------------------------------------------------------------- */
.pf-craft {
	display: flex;
	flex-direction: column;
	gap: 56px;
}

.pf-craft__list {
	display: flex;
	flex-direction: column;
	gap: 72px;
}

.pf-craft__item {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.pf-craft__media {
	margin-inline: -64px;
}

.pf-craft__media img,
.pf-craft__media video {
	display: block;
	width: 100%;
	height: auto;
	background: var(--color-black);
}

.pf-craft__line {
	margin: 0;
	font-size: 18px;
	line-height: 1.5;
	font-weight: 400;
	color: var(--color-white);
}

/* ----------------------------------------------------------------------
   Two-column text sections (AI, Leadership, About)
   ---------------------------------------------------------------------- */
.pf-split {
	display: flex;
	flex-wrap: wrap;
	gap: 64px;
}

.pf-split > .pf-h2 {
	flex: 1 1 420px;
	min-width: 0;
}

.pf-split__body {
	flex: 1 1 480px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.pf-ai-lead {
	font-weight: 500;
	color: var(--color-white);
}

.pf-recognition {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	font-weight: 300;
	color: var(--color-text-faint);
}

/* ----------------------------------------------------------------------
   Closing
   ---------------------------------------------------------------------- */
.pf-closing {
	padding-block: 140px 160px;
	display: flex;
	flex-direction: column;
	gap: 48px;
}

.pf-closing__line {
	margin: 0;
	max-width: 960px;
	font-size: 56px;
	line-height: 1.15;
	font-weight: 300;
	letter-spacing: 0.01em;
}

.pf-closing .pf-cta {
	justify-content: flex-start;
}

/* ----------------------------------------------------------------------
   Mobile (<= 767px): sections sit inside a 16px gutter; each project
   stacks image, title, role, text, results, link.
   ---------------------------------------------------------------------- */
@media (max-width: 767px) {
	.pf-section {
		margin-inline: 16px;
		width: auto;
		padding: 56px 16px 64px;
	}

	.pf-eyebrow { font-size: 13px; }
	.pf-label { font-size: 11px; margin-bottom: 8px; }
	.pf-kicker { font-size: 12px; }
	.pf-h2 { font-size: 34px; line-height: 1.1; }
	.pf-h2--md { font-size: 30px; line-height: 1.12; }
	.pf-text,
	.pf-list { font-size: 16px; }
	.pf-list { padding-left: 18px; gap: 8px; }
	.pf-tags li { padding: 5px 12px; font-size: 12px; }
	.pf-num { font-size: 52px; }
	.pf-result-num { font-size: 48px; }

	.pf-btn,
	.pf-btn--primary {
		display: block;
		padding: 15px 20px;
		text-align: center;
	}

	.pf-btn--primary { padding: 16px 20px; }

	.pf-textlink { display: block; padding: 12px 0; font-size: 16px; }
	.pf-link { padding: 10px 0; }

	.pf-cta {
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
		gap: 12px;
	}

	.pf-cta .pf-link { align-self: center; padding: 12px 0; }

	/* Hero */
	.pf-hero__upper {
		padding: 96px 32px 24px;
		gap: 20px;
	}

	.pf-hero__name-svg { height: 52px; }
	.pf-hero__name-svg text { font-size: 44px; font-weight: 600; }
	.pf-hero__role { font-size: 22px; letter-spacing: 0.175em; line-height: 1.45; margin-top: 6px; }

	.pf-hero__aurora { filter: blur(40px); }

	.pf-hero__lines { padding-inline: 16px; }
	.pf-hero__lines-inner { max-width: none; }

	.pf-hero__lower { flex: 0 0 auto; min-height: 0; }

	.pf-hero__oval {
		top: 0;
		bottom: auto;
		left: -35%;
		width: 170%;
		transform-origin: top center;
	}

	.pf-hero__content { padding: 56px 32px 40px; gap: 24px; }
	.pf-hero__intro { font-size: 20px; }
	.pf-hero__content .pf-cta { align-self: stretch; }

	.pf-hero__meta {
		position: static;
		transform: none;
		width: auto;
		max-width: none;
		font-size: 13px;
		line-height: 1.5;
	}

	/* Proof */
	.pf-proof { padding-block: 40px 64px; }
	.pf-proof__grid { grid-template-columns: 1fr; gap: 28px; }
	.pf-proof__item { gap: 8px; }
	.pf-proof__caption { font-size: 15px; }

	/* Projects: wrappers dissolve so children can be ordered. */
	.pf-section.pf-project-section {
		padding: 0 0 64px;
	}

	.pf-project,
	.pf-project--left-bleed,
	.pf-project--right,
	.pf-project--full {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 20px;
	}

	.pf-p-media,
	.pf-p-text,
	.pf-full-cols,
	.pf-full-cols > .pf-p-head-col {
		display: contents;
	}

	.pf-project .pf-p-media { margin: 0; }

	.pf-p-head { gap: 20px; }

	.pf-p-image,
	.pf-full-media {
		order: 0;
		margin: 0;
	}

	.pf-full-media { margin-inline: 0; }

	.pf-p-head,
	.pf-p-head-col > * { order: 1; }
	.pf-p-role { order: 2; }
	.pf-p-body { order: 3; }
	.pf-p-results { order: 4; }
	.pf-p-link { order: 5; }

	.pf-project > *:not(.pf-p-image):not(.pf-full-media),
	.pf-project .pf-p-media > :not(.pf-p-image),
	.pf-project .pf-p-text > *,
	.pf-project .pf-p-head-col > *,
	.pf-full-cols > * > * {
		margin-inline: 16px;
	}

	.pf-project .pf-p-media > :not(.pf-p-image) { padding-left: 0; }

	.pf-p-head:first-of-type,
	.pf-p-head-col > :first-child { margin-top: 20px; }

	/* The homepage case study keeps its image inside the padded box. */
	.pf-project--right .pf-p-image {
		margin: 56px 16px 0;
	}

	.pf-project--right .pf-p-head { margin-top: 0; }

	.pf-p-image + *,
	.pf-full-media + * { margin-top: 0; }

	.pf-results { padding: 24px 0; flex-direction: column; flex-wrap: nowrap; gap: 20px; }
	.pf-result { flex-direction: row; align-items: baseline; gap: 14px; }
	.pf-results--single .pf-result { flex-direction: column; gap: 8px; }
	.pf-results--single .pf-result-num { font-size: 56px; }

	/* UI craft */
	.pf-craft { gap: 40px; }
	.pf-craft__list { gap: 40px; }
	.pf-craft__item { gap: 16px; }
	.pf-craft__media { margin-inline: 0; }
	.pf-craft__line { font-size: 16px; }

	/* Split sections */
	.pf-split { gap: 20px; }
	.pf-split__body { gap: 20px; }
	.pf-recognition { font-size: 13px; }

	/* Closing */
	.pf-closing { padding-block: 72px 88px; gap: 32px; }
	.pf-closing__line { font-size: 30px; line-height: 1.2; }
}

@media (prefers-reduced-motion: reduce) {
	.pf-btn { transition: none; }
}

/* /web-development: the hero title is a sentence, not a name, so the first
   line scales with the viewport instead of using the fixed name sizes. */
.pf--web .pf-hero__name-svg { height: clamp(36px, 9.4vw, 106px); }
.pf--web .pf-hero__name-svg text { font-size: clamp(27px, 8.2vw, 96px); font-weight: 800; }

@media (max-width: 767px) {
	.pf--web .pf-hero__name-svg text { font-weight: 700; }
	.pf--web .pf-hero__role { font-size: 18px; }
}

/* Screen recording in a project section (same treatment as the stills). */
.pf-p-image video,
.pf-full-media video {
	display: block;
	width: 100%;
	height: auto;
	background: var(--color-black);
}

/* /web-development: the second hero line is a full sentence, so it runs smaller than a role title. */
.pf--web .pf-hero__role { font-size: 34px; letter-spacing: 0.12em; line-height: 1.35; }

@media (max-width: 767px) {
	.pf--web .pf-hero__role { font-size: 15px; letter-spacing: 0.1em; }
}

/* /product-design: image placeholder (a project row whose screens are not
   ready yet), tools marquee. Scoped to .pf--pd. */
.pf--pd .pf-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 4 / 3;
	padding: 24px;
	border: 1px dashed var(--color-border-soft);
	border-radius: 8px;
	color: #8a8a8a;
	font-size: 14px;
	letter-spacing: 0.04em;
	text-align: center;
}

.pf--pd .pf-tools {
	padding-block: 64px;
	overflow: hidden;
}

.pf--pd .pf-tools .pf-label {
	text-align: center;
	margin-bottom: 24px;
}

.pf--pd .pf-tools__viewport {
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
}

.pf--pd .pf-tools__track {
	display: flex;
	width: max-content;
	animation: pf-tools-scroll 40s linear infinite;
}

.pf--pd .pf-tools__list {
	display: flex;
	flex-shrink: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pf--pd .pf-tools__item {
	display: flex;
	align-items: center;
	gap: 28px;
	padding-right: 28px;
	font-size: 18px;
	font-weight: 500;
	letter-spacing: 0.04em;
	color: #d9dde3;
	white-space: nowrap;
}

.pf--pd .pf-tools__dot {
	opacity: 0.5;
	filter: grayscale(1);
}

@keyframes pf-tools-scroll {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

@media (max-width: 767px) {
	.pf--pd .pf-tools { padding-block: 48px; }
	.pf--pd .pf-tools__item { font-size: 15px; gap: 20px; padding-right: 20px; }
}

@media (prefers-reduced-motion: reduce) {
	.pf--pd .pf-tools__track { animation: none; flex-wrap: wrap; width: auto; }
	.pf--pd .pf-tools__list { flex-wrap: wrap; justify-content: center; row-gap: 12px; }
	.pf--pd .pf-tools__list[aria-hidden="true"] { display: none; }
}

/* /product-design: opt-in wide image (row key image_wide): same edge-to-edge
   wrapper as the AIceberg image (.pf-full-media), placed below the text and
   linked to the full-size file. Scoped to --wide. */
/* The wide image ends the section and carries its own dark frame, so the
   section needs no bottom padding of its own (desktop). */
@media (min-width: 768px) {
	.pf-project-section--wide {
		padding-bottom: 0;
	}
}

.pf-project--wide .pf-zoom {
	display: block;
	cursor: zoom-in;
}

@media (max-width: 767px) {
	.pf-project--wide .pf-full-media--wide {
		order: 6;
		margin-top: 12px;
	}
}
