:root {
	--pd-accent: #F37021;
	--pd-ink: #1a1a1a;
	--pd-muted: #666666;
	--pd-line: #e8e8e8;
	--pd-surface: #f8fafc;
	--pd-card: #ffffff;
	--pd-gray: #4D4D4F;
}

.pd-shell {
	font-family: 'Montserrat', sans-serif;
	max-width: none;
	margin: 0;
	padding: 0;
	background: #fff;
}

.pd-header {
	display: flex;
	justify-content: space-between;
	gap: 32px;
	align-items: flex-end;
	min-height: 360px;
	margin: 0;
	padding: 120px 10% 58px;
	color: #fff;
	background:
		linear-gradient(90deg, rgba(26, 26, 26, 0.84), rgba(77, 77, 79, 0.64)),
		linear-gradient(135deg, var(--pd-gray), #242426);
	position: relative;
	overflow: hidden;
}

.pd-header::after {
	content: "";
	position: absolute;
	right: -90px;
	bottom: -90px;
	width: 320px;
	height: 320px;
	border: 34px solid rgba(243, 112, 33, 0.8);
}

.pd-header > * {
	position: relative;
	z-index: 2;
}

.pd-header span {
	display: block;
	margin-bottom: 16px;
	color: var(--pd-accent);
	font-size: 0.78rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 2px;
}

.pd-header h1 {
	margin: 0;
	font-size: clamp(42px, 7vw, 86px);
	line-height: 0.94;
	letter-spacing: 2px;
	color: #fff;
	text-transform: uppercase;
	font-weight: 900;
}

.pd-header p {
	margin: 18px 0 0;
	max-width: 640px;
	color: rgba(255, 255, 255, 0.82);
	font-size: 18px;
	font-weight: 300;
}

.pd-term-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0;
	padding: 34px 10%;
	background: var(--pd-surface);
}

.pd-term-nav a {
	display: inline-flex;
	align-items: center;
	padding: 13px 20px;
	border-radius: 0;
	text-decoration: none;
	background: #fff;
	border: 1px solid var(--pd-line);
	color: var(--pd-ink);
	font-size: 0.78rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 1px;
	transition: all 0.2s ease;
}

.pd-term-nav a.is-current,
.pd-term-nav a:hover {
	background: var(--pd-accent);
	border-color: var(--pd-accent);
	color: #fff;
}

.pd-section {
	padding: 60px 10% 90px;
	margin-top: 0;
}

.pd-section-heading {
	display: flex;
	align-items: baseline;
	gap: 16px;
	margin-bottom: 28px;
	padding-bottom: 16px;
	border-bottom: 6px solid var(--pd-accent);
}

.pd-section-heading h2 {
	margin: 0;
	font-size: clamp(24px, 3vw, 34px);
	color: var(--pd-accent);
	text-transform: uppercase;
	letter-spacing: 2px;
	font-weight: 900;
}

.pd-section-heading p {
	margin: 0;
	color: var(--pd-muted);
}

.pd-project-block + .pd-project-block {
	margin-top: 70px;
}

.pd-project-header {
	margin-bottom: 22px;
}

.pd-project-title {
	margin: 0;
	font-size: 24px;
	text-transform: uppercase;
	letter-spacing: 2px;
	font-weight: 900;
}

.pd-project-title a {
	color: var(--pd-ink);
	text-decoration: none;
}

.pd-project-term {
	margin-top: 6px;
	font-size: 12px;
	color: var(--pd-accent);
	text-transform: uppercase;
	font-weight: 800;
	letter-spacing: 1px;
}

.pd-project-gallery-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 15px;
}

.pd-project-card {
	position: relative;
	overflow: hidden;
	border-radius: 4px;
	background: var(--pd-card);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
	min-height: 280px;
}

.pd-project-card-media,
.pd-project-card img {
	width: 100%;
	height: 100%;
}

.pd-project-card-media {
	display: block;
	padding: 0;
	border: 0;
	background: transparent;
	text-align: left;
	cursor: pointer;
	font: inherit;
}

.pd-project-card-media:focus-visible {
	outline: 3px solid var(--pd-accent);
	outline-offset: -3px;
}

.pd-project-card img {
	display: block;
	object-fit: cover;
	filter: grayscale(1);
	transition: 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.pd-project-card:hover img,
.pd-project-card:focus-within img {
	filter: grayscale(0);
	transform: scale(1.08);
}

.pd-project-card-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 24px;
	background: linear-gradient(180deg, rgba(243, 112, 33, 0.05), rgba(26, 26, 26, 0.78));
	color: #fff;
	opacity: 0;
	transition: opacity 0.22s ease;
}

.pd-project-card:hover .pd-project-card-overlay,
.pd-project-card:focus-within .pd-project-card-overlay {
	opacity: 1;
}

.pd-project-card-overlay h3 {
	margin: 0 0 8px;
	font-size: 26px;
	line-height: 1.02;
	text-transform: uppercase;
}

.pd-project-card-overlay p {
	margin: 0;
	font-size: 15px;
	line-height: 1.4;
}

.pd-project-gallery-actions {
	margin-top: 28px;
	text-align: center;
}

.pd-load-more,
.pd-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 15px 34px;
	border-radius: 0;
	border: 2px solid #fff;
	background: transparent;
	color: #fff;
	text-decoration: none;
	font-size: 0.78rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 2px;
	cursor: pointer;
	transition: 0.25s ease;
}

.pd-load-more {
	border-color: var(--pd-ink);
	color: var(--pd-ink);
}

.pd-button:hover,
.pd-load-more:hover {
	background: var(--pd-accent);
	border-color: var(--pd-accent);
	color: #fff;
}

.pd-archive-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	padding: 80px 10% 100px;
	background: #fff;
}

.pd-archive-card {
	display: block;
	padding: 42px 36px;
	border-radius: 0;
	background: #fff;
	text-decoration: none;
	color: var(--pd-ink);
	border-top: 6px solid var(--pd-accent);
	box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.04);
	transition: 0.35s ease;
}

.pd-archive-card:hover {
	transform: translateY(-8px);
	background: var(--pd-gray);
	color: #fff;
	box-shadow: 30px 30px 80px rgba(0, 0, 0, 0.12);
}

.pd-archive-card strong {
	display: block;
	font-size: 25px;
	margin-bottom: 12px;
	text-transform: uppercase;
	letter-spacing: 2px;
	line-height: 1.12;
}

.pd-archive-card span {
	color: var(--pd-muted);
	line-height: 1.6;
}

.pd-archive-card:hover span {
	color: rgba(255, 255, 255, 0.78);
}

.pd-single-content {
	max-width: 760px;
	margin-bottom: 28px;
	color: var(--pd-muted);
}

.pd-lightbox-open {
	overflow: hidden;
}

.pd-lightbox[hidden] {
	display: none;
}

.pd-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 30px;
}

.pd-lightbox-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 10, 10, 0.9);
}

.pd-lightbox-dialog {
	position: relative;
	z-index: 2;
	width: min(1180px, 100%);
	height: min(760px, calc(100vh - 60px));
	display: flex;
	align-items: center;
	justify-content: center;
}

.pd-lightbox-figure {
	margin: 0;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.pd-lightbox-image {
	display: block;
	max-width: 100%;
	max-height: calc(100% - 76px);
	object-fit: contain;
	box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
	background: #111;
}

.pd-lightbox-caption {
	min-height: 56px;
	padding-top: 18px;
	text-align: center;
	color: #fff;
}

.pd-lightbox-caption strong {
	display: block;
	font-size: 18px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.pd-lightbox-caption span {
	display: block;
	margin-top: 4px;
	color: rgba(255, 255, 255, 0.72);
}

.pd-lightbox-close,
.pd-lightbox-nav {
	position: absolute;
	z-index: 3;
	border: 0;
	background: rgb(243 112 33 / 39%);
	color: #fff;
	cursor: pointer;
	transition: 0.2s ease;
}

.pd-lightbox-close:hover,
.pd-lightbox-nav:hover,
.pd-lightbox-close:focus-visible,
.pd-lightbox-nav:focus-visible {
	background: var(--pd-accent);
	outline: none;
}

.pd-lightbox-close {
	top: 0;
	right: 0;
	width: 46px;
	height: 46px;
	font-size: 22px;
	line-height: 1;
	text-transform: uppercase;
}

.pd-lightbox-nav {
	top: 50%;
	width: 54px;
	height: 70px;
	transform: translateY(-50%);
	font-size: 58px;
	line-height: 1;
}

.pd-lightbox-prev {
	left: 0;
}

.pd-lightbox-next {
	right: 0;
}

@media (max-width: 1024px) {
	.pd-project-gallery-grid,
	.pd-archive-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.pd-header {
		min-height: 360px;
		padding: 120px 24px 56px;
		flex-direction: column;
		align-items: flex-start;
	}

	.pd-term-nav,
	.pd-archive-grid,
	.pd-section {
		padding-left: 24px;
		padding-right: 24px;
	}
}

@media (max-width: 640px) {
	.pd-header {
		flex-direction: column;
		align-items: flex-start;
		min-height: 330px;
		padding: 106px 18px 46px;
	}

	.pd-project-gallery-grid,
	.pd-archive-grid {
		grid-template-columns: 1fr;
	}

	.pd-project-card {
		min-height: 240px;
	}

	.pd-header h1 {
		font-size: 34px;
		line-height: 1;
		overflow-wrap: anywhere;
	}

	.pd-section-heading {
		display: block;
	}

	.pd-term-nav {
		padding: 24px 18px;
		gap: 8px;
	}

	.pd-term-nav a {
		padding: 11px 14px;
		font-size: 0.72rem;
	}

	.pd-section {
		padding: 40px 18px 60px;
	}

	.pd-section-heading h2 {
		font-size: 28px;
		overflow-wrap: anywhere;
	}

	.pd-project-title {
		font-size: 20px;
		line-height: 1.15;
		overflow-wrap: anywhere;
	}

	.pd-project-card-overlay {
		padding: 18px;
		opacity: 1;
	}

	.pd-project-card-overlay h3 {
		font-size: 20px;
		overflow-wrap: anywhere;
	}

	.pd-archive-grid {
		padding: 46px 18px 70px;
	}

	.pd-archive-card {
		padding: 30px 24px;
	}

	.pd-lightbox {
		padding: 18px;
	}

	.pd-lightbox-dialog {
		height: calc(100vh - 36px);
	}

	.pd-lightbox-close {
		top: 0;
		right: 0;
	}

	.pd-lightbox-nav {
		width: 42px;
		height: 58px;
		font-size: 42px;
	}

	.pd-lightbox-image {
		max-height: calc(100% - 88px);
	}
}
