/* Fixed portfolio case — BinaryAI molten editorial */
.portfolio-case-page {
	--pc-ink: #17120f;
	--pc-brown: #231813;
	--pc-paper: #f1e8d8;
	--pc-paper-deep: #dfd3c1;
	--pc-ember: #ff5d2e;
	--pc-line-dark: rgba(23, 18, 15, .16);
	--pc-line-light: rgba(241, 232, 216, .18);
	background: var(--pc-paper);
	color: var(--pc-ink);
	overflow: clip;
}

.portfolio-case,
.portfolio-case * {
	box-sizing: border-box;
}

.portfolio-case {
	position: relative;
	isolation: isolate;
	background: var(--pc-paper);
	overflow-wrap: anywhere;
}

.portfolio-case::before {
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	content: "";
	opacity: .055;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.portfolio-case .container {
	width: min(100%, 1428px);
	margin-inline: auto;
	padding-inline: clamp(20px, 4vw, 64px);
}

.pc-section {
	position: relative;
}

.portfolio-case h1,
.portfolio-case h2,
.portfolio-case h3,
.portfolio-case p {
	margin: 0;
}

.portfolio-case h1,
.portfolio-case h2 {
	font-family: var(--display);
	font-weight: 500;
	letter-spacing: -.055em;
	line-height: .94;
}

.portfolio-case h2 {
	font-size: clamp(46px, 6.4vw, 104px);
}

.portfolio-case h2 em {
	font-weight: 400;
	color: var(--pc-ember);
}

.pc-kicker,
.pc-tags span,
.pc-breadcrumbs,
.pc-result__example {
	font-family: var(--mono);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .09em;
	line-height: 1.35;
	text-transform: uppercase;
}

.pc-kicker {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: inherit;
	opacity: .58;
}

.pc-kicker::before {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--pc-ember);
	content: "";
	box-shadow: 0 0 0 5px rgba(255, 93, 46, .13);
}

.pc-button {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	min-height: 58px;
	padding: 0 22px;
	border: 1px solid var(--pc-ember);
	border-radius: 4px;
	background: var(--pc-ember);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}

.pc-button:hover,
.pc-button:focus-visible {
	background: transparent;
	color: var(--pc-ember);
	transform: translateY(-3px);
}

.pc-button:focus-visible,
.pc-next:focus-visible,
.pc-breadcrumbs a:focus-visible {
	outline: 3px solid var(--pc-ember);
	outline-offset: 4px;
}

/* Hero */
.pc-hero {
	padding: calc(var(--header-h, 92px) + clamp(48px, 6vw, 92px)) 0 clamp(72px, 9vw, 138px);
	background:
		radial-gradient(circle at 14% 18%, rgba(255, 93, 46, .16), transparent 27%),
		var(--pc-paper);
}

.pc-breadcrumbs {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: clamp(42px, 6vw, 88px);
	color: rgba(23, 18, 15, .5);
}

.pc-breadcrumbs a {
	color: inherit;
	text-decoration: none;
}

.pc-breadcrumbs a:hover {
	color: var(--pc-ember);
}

.pc-breadcrumbs span[aria-current="page"] {
	max-width: 34ch;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.pc-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, .82fr) minmax(420px, 1.18fr);
	align-items: center;
	gap: clamp(32px, 6vw, 96px);
}

.pc-hero__copy {
	position: relative;
	z-index: 2;
}

.pc-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-bottom: 30px;
}

.pc-tags span {
	padding: 8px 10px;
	border: 1px solid var(--pc-line-dark);
	border-radius: 999px;
	color: rgba(23, 18, 15, .62);
}

.pc-hero h1 {
	max-width: 9ch;
	font-size: clamp(60px, 7.7vw, 126px);
	text-wrap: balance;
}

.pc-hero__lead {
	max-width: 33rem;
	margin: clamp(28px, 4vw, 50px) 0 36px !important;
	font-size: clamp(19px, 1.55vw, 25px);
	line-height: 1.38;
	color: rgba(23, 18, 15, .72);
}

.pc-hero__media {
	position: relative;
	min-height: clamp(470px, 57vw, 780px);
	border-radius: clamp(18px, 2vw, 34px);
	overflow: hidden;
	background: var(--pc-brown);
	box-shadow: 0 30px 80px rgba(53, 36, 26, .17);
}

.pc-hero__media::after {
	position: absolute;
	inset: 0;
	pointer-events: none;
	border: 1px solid rgba(255, 255, 255, .22);
	border-radius: inherit;
	content: "";
}

.pc-hero__media img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: inherit;
	object-fit: cover;
	transition: transform 1s var(--ease);
}

.pc-hero__media:hover img {
	transform: scale(1.025);
}

.pc-hero__media--fallback {
	display: grid;
	place-items: center;
	background:
		linear-gradient(135deg, transparent 0 48%, rgba(255,255,255,.08) 48% 49%, transparent 49%),
		radial-gradient(circle at 72% 26%, rgba(255,93,46,.8), transparent 26%),
		var(--pc-brown);
}

.pc-hero__monogram {
	font-family: var(--display);
	font-size: clamp(80px, 12vw, 184px);
	font-style: italic;
	color: var(--pc-paper);
}

/* Project passport */
.pc-meta {
	background: var(--pc-brown);
	color: var(--pc-paper);
}

.pc-meta__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	padding-block: 36px;
}

.pc-meta__item {
	min-width: 0;
	padding: 10px clamp(18px, 2.5vw, 38px);
	border-left: 1px solid var(--pc-line-light);
}

.pc-meta__item:first-child {
	padding-left: 0;
	border-left: 0;
}

.pc-meta__item strong {
	display: block;
	margin-top: 15px;
	font-family: var(--sans);
	font-size: clamp(16px, 1.4vw, 21px);
	font-weight: 600;
	line-height: 1.28;
}

/* Challenge */
.pc-challenge {
	padding: clamp(100px, 12vw, 190px) 0;
	background: var(--pc-paper);
}

.pc-editorial-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
	gap: clamp(52px, 10vw, 170px);
	align-items: start;
}

.pc-editorial-grid h2 {
	max-width: 9ch;
	margin-top: 28px;
}

.pc-challenge__copy {
	padding-top: clamp(28px, 8vw, 120px);
}

.pc-challenge__copy p {
	font-size: clamp(17px, 1.3vw, 21px);
	line-height: 1.7;
	color: rgba(23, 18, 15, .7);
}

.pc-challenge__copy .pc-copy-lead {
	margin-bottom: 30px;
	font-family: var(--display);
	font-size: clamp(26px, 2.5vw, 40px);
	line-height: 1.25;
	letter-spacing: -.025em;
	color: var(--pc-ink);
}

/* Solution */
.pc-solution {
	padding: clamp(110px, 13vw, 200px) 0;
	border-radius: clamp(28px, 5vw, 72px) clamp(28px, 5vw, 72px) 0 0;
	background:
		radial-gradient(circle at 92% 8%, rgba(255, 93, 46, .22), transparent 25%),
		var(--pc-brown);
	color: var(--pc-paper);
}

.pc-section-head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(300px, .42fr);
	gap: 36px 80px;
	align-items: end;
}

.pc-section-head .pc-kicker {
	grid-column: 1 / -1;
}

.pc-section-head h2 {
	max-width: 11ch;
}

.pc-section-head > p {
	padding-bottom: 8px;
	font-size: clamp(17px, 1.35vw, 21px);
	line-height: 1.65;
	color: rgba(241, 232, 216, .68);
}

.pc-feature-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1px;
	margin-top: clamp(70px, 9vw, 130px);
	background: var(--pc-line-light);
}

.pc-feature {
	position: relative;
	min-height: 330px;
	padding: clamp(28px, 3vw, 46px);
	background: var(--pc-brown);
	transition: background .35s var(--ease), color .35s var(--ease);
}

.pc-feature:hover {
	background: var(--pc-ember);
	color: #fff;
}

.pc-feature__number {
	font-family: var(--mono);
	font-size: 11px;
	opacity: .48;
}

.pc-feature h3 {
	margin-top: 90px;
	font-family: var(--display);
	font-size: clamp(27px, 2.2vw, 38px);
	font-weight: 500;
	line-height: 1.05;
	letter-spacing: -.03em;
}

.pc-feature p {
	max-width: 31ch;
	margin-top: 20px;
	font-size: 15px;
	line-height: 1.55;
	opacity: .67;
}

/* Demo */
.pc-demo {
	padding: clamp(100px, 12vw, 180px) 0;
	background: var(--pc-paper-deep);
}

.pc-demo__head {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 40px;
	margin-bottom: clamp(50px, 7vw, 96px);
}

.pc-demo__head h2 {
	max-width: 10ch;
	text-align: right;
}

.pc-demo__stage {
	margin: 0;
}

.pc-demo__stage > img,
.pc-demo__stage .wp-video,
.pc-demo__stage video {
	display: block;
	width: 100% !important;
	max-width: none !important;
	border-radius: clamp(18px, 2.4vw, 36px);
	box-shadow: 0 28px 80px rgba(50, 31, 22, .17);
}

.pc-demo__stage > img {
	max-height: 860px;
	object-fit: cover;
}

.pc-demo__stage figcaption {
	max-width: 58ch;
	margin-top: 18px;
	font-size: 14px;
	line-height: 1.55;
	color: rgba(23, 18, 15, .6);
}

/* Process */
.pc-process {
	padding: clamp(110px, 13vw, 200px) 0;
	background: var(--pc-paper);
}

.pc-process__layout {
	display: grid;
	grid-template-columns: minmax(280px, .72fr) minmax(420px, 1.28fr);
	gap: clamp(50px, 9vw, 150px);
}

.pc-process h2 {
	max-width: 8.5ch;
	margin-top: 28px;
	font-size: clamp(48px, 5.3vw, 86px);
}

.pc-tech {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 42px;
}

.pc-tech span {
	padding: 9px 12px;
	border: 1px solid var(--pc-line-dark);
	border-radius: 999px;
	font-family: var(--mono);
	font-size: 11px;
	text-transform: uppercase;
}

.pc-steps {
	margin: 0;
	padding: 0;
	list-style: none;
}

.pc-steps li {
	display: grid;
	grid-template-columns: 58px 1fr;
	gap: 18px;
	padding: 32px 0;
	border-top: 1px solid var(--pc-line-dark);
}

.pc-steps li:last-child {
	border-bottom: 1px solid var(--pc-line-dark);
}

.pc-steps li > span {
	font-family: var(--mono);
	font-size: 11px;
	color: var(--pc-ember);
}

.pc-steps h3 {
	font-family: var(--display);
	font-size: clamp(25px, 2vw, 34px);
	font-weight: 500;
	line-height: 1.08;
	letter-spacing: -.025em;
}

.pc-steps p {
	max-width: 48ch;
	margin-top: 12px;
	font-size: 15px;
	line-height: 1.55;
	color: rgba(23, 18, 15, .62);
}

/* Results */
.pc-results {
	padding: clamp(110px, 13vw, 200px) 0;
	background: var(--pc-brown);
	color: var(--pc-paper);
}

.pc-result-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1px;
	margin-top: clamp(70px, 9vw, 130px);
	background: var(--pc-line-light);
}

.pc-result {
	position: relative;
	min-height: 270px;
	padding: clamp(26px, 3vw, 42px);
	background: var(--pc-brown);
}

.pc-result__example {
	position: absolute;
	top: 24px;
	right: 24px;
	padding: 6px 8px;
	border-radius: 999px;
	background: var(--pc-ember);
	color: #fff;
}

.pc-result strong {
	display: block;
	margin-top: 90px;
	font-family: var(--display);
	font-size: clamp(48px, 5vw, 82px);
	font-weight: 500;
	line-height: .9;
	letter-spacing: -.055em;
	color: var(--pc-ember);
}

.pc-result p {
	max-width: 24ch;
	margin-top: 22px;
	font-size: 14px;
	line-height: 1.45;
	color: rgba(241, 232, 216, .68);
}

/* Closing */
.pc-closing {
	padding: clamp(36px, 5vw, 76px) 0 clamp(90px, 10vw, 150px);
	background: var(--pc-paper);
}

.pc-closing__panel {
	position: relative;
	padding: clamp(48px, 8vw, 118px);
	border-radius: clamp(24px, 4vw, 56px);
	overflow: hidden;
	background: var(--pc-ember);
	color: #fff;
}

.pc-closing__panel::after {
	position: absolute;
	top: -40%;
	right: -10%;
	width: 55%;
	aspect-ratio: 1;
	border: 1px solid rgba(255,255,255,.25);
	border-radius: 50%;
	content: "";
	box-shadow: 0 0 0 70px rgba(255,255,255,.035), 0 0 0 140px rgba(255,255,255,.025);
}

.pc-closing__panel h2 {
	position: relative;
	z-index: 1;
	max-width: 10ch;
	margin-top: 28px;
}

.pc-closing__panel h2 em {
	color: var(--pc-brown);
}

.pc-closing__panel > p {
	position: relative;
	z-index: 1;
	max-width: 48ch;
	margin: 32px 0 !important;
	font-size: clamp(17px, 1.4vw, 21px);
	line-height: 1.55;
	opacity: .82;
}

.pc-button--light {
	position: relative;
	z-index: 1;
	border-color: #fff;
	background: #fff;
	color: var(--pc-brown);
}

.pc-button--light:hover,
.pc-button--light:focus-visible {
	border-color: #fff;
	background: transparent;
	color: #fff;
}

.pc-next {
	display: grid;
	grid-template-columns: 160px 1fr auto;
	align-items: center;
	gap: 28px;
	padding: 42px 0 0;
	color: var(--pc-ink);
	text-decoration: none;
}

.pc-next span {
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: .09em;
	text-transform: uppercase;
	opacity: .52;
}

.pc-next strong {
	font-family: var(--display);
	font-size: clamp(27px, 3vw, 46px);
	font-weight: 500;
	letter-spacing: -.035em;
}

.pc-next i {
	font-size: 32px;
	font-style: normal;
	transition: transform .3s var(--ease);
}

.pc-next:hover i {
	transform: translate(6px, -6px);
}

/* Progressive reveal: hidden only after JS marks the root ready. */
.pc-motion-ready [data-case-reveal] {
	opacity: 0;
	transform: translateY(34px);
	transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.pc-motion-ready [data-case-reveal].is-visible {
	opacity: 1;
	transform: none;
}

@media (max-width: 1100px) {
	.pc-hero__grid {
		grid-template-columns: minmax(0, .88fr) minmax(380px, 1.12fr);
		gap: 40px;
	}

	.pc-result-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.pc-hero__grid,
	.pc-editorial-grid,
	.pc-section-head,
	.pc-process__layout {
		grid-template-columns: 1fr;
	}

	.pc-hero h1 {
		max-width: 11ch;
	}

	.pc-hero__media {
		min-height: min(110vw, 690px);
	}

	.pc-challenge__copy {
		max-width: 680px;
		padding-top: 0;
	}

	.pc-section-head > p {
		max-width: 620px;
	}

	.pc-feature-grid {
		grid-template-columns: 1fr;
	}

	.pc-feature {
		min-height: 250px;
	}

	.pc-feature h3 {
		margin-top: 54px;
	}

	.pc-demo__head {
		display: block;
	}

	.pc-demo__head h2 {
		margin-top: 28px;
		text-align: left;
	}
}

@media (max-width: 640px) {
	.pc-hero {
		padding-top: calc(var(--header-h, 76px) + 34px);
	}

	.pc-breadcrumbs span[aria-current="page"] {
		display: none;
	}

	.pc-hero h1 {
		font-size: clamp(52px, 16vw, 76px);
	}

	.pc-button {
		width: 100%;
		min-height: 58px;
	}

	.pc-hero__media {
		min-height: 112vw;
		border-radius: 18px;
	}

	.pc-meta__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		padding-block: 16px;
	}

	.pc-meta__item,
	.pc-meta__item:first-child {
		padding: 22px 14px;
		border-left: 1px solid var(--pc-line-light);
		border-bottom: 1px solid var(--pc-line-light);
	}

	.pc-meta__item:nth-child(odd) {
		padding-left: 0;
		border-left: 0;
	}

	.pc-meta__item:nth-last-child(-n+2) {
		border-bottom: 0;
	}

	.pc-feature-grid,
	.pc-result-grid {
		grid-template-columns: 1fr;
	}

	.pc-result {
		min-height: 220px;
	}

	.pc-result strong {
		margin-top: 62px;
	}

	.pc-steps li {
		grid-template-columns: 42px 1fr;
	}

	.pc-closing__panel {
		padding: 42px 24px;
		border-radius: 24px;
	}

	.pc-closing__panel::after {
		display: none;
	}

	.pc-next {
		grid-template-columns: 1fr auto;
		gap: 8px 20px;
	}

	.pc-next span {
		grid-column: 1 / -1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.portfolio-case *,
	.portfolio-case *::before,
	.portfolio-case *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: .01ms !important;
	}

	.pc-motion-ready [data-case-reveal] {
		opacity: 1;
		transform: none;
	}
}
