.nnps-project-detail {
	--nnpd-hero-height: 100svh;
	--nnpd-width: 1600px;
	--nnpd-background: #151515;
	--nnpd-text: #fff;
	--nnpd-muted: #a3a3a3;
	--nnpd-spacing: 120px;
	--nnpd-overlay: 0.42;
	--nnpd-gallery-columns: 2;
	--nnpd-gutter: clamp(24px, 6vw, 108px);
	width: 100%;
	overflow: hidden;
	color: var(--nnpd-text);
	background: var(--nnpd-background);
}

.nnps-project-detail *,
.nnps-project-detail *::before,
.nnps-project-detail *::after {
	box-sizing: border-box;
}

.nnpd-hero {
	position: relative;
	display: flex;
	width: 100%;
	height: var(--nnpd-hero-height);
	min-height: min(560px, 100svh);
	align-items: center;
	justify-content: center;
	overflow: hidden;
	isolation: isolate;
	background: var(--nnpd-background);
}

.nnpd-hero__media,
.nnpd-hero__overlay {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.nnpd-hero__media {
	z-index: 0;
	background: var(--nnpd-background);
}

.nnpd-hero__media > .nnps-slide__image {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	object-fit: cover;
	object-position: center;
}

.nnpd-hero__video {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 1;
	width: 100%;
	height: 100%;
	min-width: 177.78vh;
	min-height: 56.25vw;
	border: 0;
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, -50%) scale(1.05);
	transition: opacity 520ms ease;
}

.nnpd-hero__media.is-video-ready .nnpd-hero__video {
	opacity: 1;
}

@supports (width: 100cqw) {
	.nnpd-hero__media--video {
		container-type: size;
	}

	.nnpd-hero__video {
		min-width: 177.78cqh;
		min-height: 56.25cqw;
	}
}

.nnpd-hero__overlay {
	z-index: 2;
	pointer-events: none;
	background:
		linear-gradient(180deg, rgb(0 0 0 / 22%) 0%, rgb(0 0 0 / 12%) 48%, rgb(0 0 0 / var(--nnpd-overlay)) 100%),
		rgb(0 0 0 / calc(var(--nnpd-overlay) * 0.45));
}

.nnpd-hero__content {
	position: relative;
	z-index: 3;
	width: 100%;
	padding-inline: var(--nnpd-gutter);
	text-align: center;
}

.nnpd-hero__eyebrow {
	margin: 0 0 20px;
	font-size: clamp(11px, 1vw, 15px);
	font-weight: 500;
	letter-spacing: 0.2em;
	line-height: 1.45;
	text-transform: uppercase;
	opacity: 0.8;
}

.nnps-project-detail .nnpd-hero__title {
	margin: 0;
	color: var(--nnpd-text);
	font-size: clamp(58px, 11.8vw, 190px);
	font-weight: 500;
	letter-spacing: -0.075em;
	line-height: 0.98;
	text-wrap: balance;
}

.nnpd-hero__scroll {
	position: absolute;
	right: var(--nnpd-gutter);
	bottom: 42px;
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.8;
}

.nnpd-hero__scroll span {
	width: 40px;
	height: 1px;
	background: currentColor;
}

.nnpd-content {
	width: min(100%, calc(var(--nnpd-width) + (var(--nnpd-gutter) * 2)));
	margin-inline: auto;
	padding: 0 var(--nnpd-gutter) var(--nnpd-spacing);
}

.nnpd-meta {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px;
	padding-block: clamp(58px, 8vw, 114px);
	border-bottom: 1px solid rgb(255 255 255 / 11%);
}

.nnpd-meta__label,
.nnpd-next-project__label {
	display: block;
	margin-bottom: 12px;
	color: var(--nnpd-text);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.nnpd-meta__value {
	margin: 0;
	color: var(--nnpd-muted);
	font-size: clamp(17px, 1.6vw, 25px);
	font-weight: 400;
	line-height: 1.45;
}

.nnpd-section {
	display: grid;
	grid-template-columns: minmax(180px, 0.33fr) minmax(0, 1fr);
	gap: clamp(30px, 7vw, 125px);
	margin-top: var(--nnpd-spacing);
}

.nnps-project-detail .nnpd-section__heading {
	margin: 0;
	color: var(--nnpd-text);
	font-size: clamp(30px, 3vw, 48px);
	font-weight: 500;
	letter-spacing: -0.05em;
	line-height: 1.15;
}

.nnpd-section__body {
	color: var(--nnpd-muted);
	font-size: clamp(16px, 1.55vw, 23px);
	font-weight: 400;
	line-height: 1.8;
}

.nnpd-section__body > :first-child {
	margin-top: 0;
}

.nnpd-section__body > :last-child {
	margin-bottom: 0;
}

.nnpd-section__body p {
	margin: 0 0 24px;
}

.nnpd-section__body strong,
.nnpd-section__body a,
.nnpd-section__body h2,
.nnpd-section__body h3,
.nnpd-section__body h4 {
	color: var(--nnpd-text);
}

.nnpd-section__body a {
	text-underline-offset: 4px;
}

.nnpd-gallery {
	margin-top: var(--nnpd-spacing);
}

.nnpd-gallery__viewport {
	position: relative;
}

.nnpd-gallery--carousel .nnpd-gallery__viewport {
	width: calc(100% + var(--nnpd-gutter));
	overflow-x: auto;
	overflow-y: hidden;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.nnpd-gallery--carousel .nnpd-gallery__viewport::-webkit-scrollbar {
	display: none;
}

.nnpd-gallery--carousel .nnpd-gallery__track {
	display: flex;
	align-items: stretch;
	gap: clamp(16px, 3vw, 44px);
	padding-right: var(--nnpd-gutter);
}

.nnpd-gallery--carousel .nnpd-gallery__item {
	flex: 0 0 min(77%, 1040px);
	scroll-snap-align: start;
}

.nnpd-gallery--grid .nnpd-gallery__track {
	display: grid;
	grid-template-columns: repeat(var(--nnpd-gallery-columns), minmax(0, 1fr));
	gap: clamp(14px, 2.4vw, 34px);
}

.nnpd-gallery__item {
	margin: 0;
}

.nnpd-gallery__image-button {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: zoom-in;
}

.nnps-project-detail .nnpd-gallery__item img.nnpd-gallery__image {
	display: block;
	width: 100%;
	height: clamp(330px, 58vw, 700px);
	max-width: none;
	object-fit: cover;
	object-position: center;
}

.nnps-project-detail .nnpd-gallery--grid .nnpd-gallery__item img.nnpd-gallery__image {
	height: auto;
	aspect-ratio: 4 / 3;
}

.nnpd-gallery__caption {
	margin-top: 12px;
	color: var(--nnpd-muted);
	font-size: 13px;
}

.nnpd-gallery__navigation {
	display: flex;
	min-height: 80px;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
}

.nnpd-gallery__arrows {
	display: flex;
	align-items: center;
	gap: 12px;
}

.nnpd-gallery__arrow,
.nnpd-lightbox__close,
.nnpd-lightbox__previous,
.nnpd-lightbox__next {
	display: inline-flex;
	width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 7px;
	border: 0;
	color: var(--nnpd-text);
	background: transparent;
	cursor: pointer;
}

.nnpd-gallery__arrow svg {
	width: 100%;
}

.nnpd-gallery__arrow:disabled {
	opacity: 0.3;
	cursor: default;
}

.nnpd-gallery__counter {
	display: flex;
	gap: 9px;
	color: var(--nnpd-muted);
	font-size: 12px;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.08em;
}

.nnpd-gallery__current {
	color: var(--nnpd-text);
}

.nnpd-lightbox {
	position: fixed;
	z-index: 999999;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 76px;
	background: rgb(9 9 9 / 96%);
}

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

html.nnpd-lightbox-open {
	overflow: hidden;
}

.nnpd-lightbox__image {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.nnpd-lightbox__close,
.nnpd-lightbox__previous,
.nnpd-lightbox__next {
	position: absolute;
	z-index: 2;
	font-size: 30px;
}

.nnpd-lightbox__close {
	top: 22px;
	right: 26px;
}

.nnpd-lightbox__previous {
	left: 18px;
}

.nnpd-lightbox__next {
	right: 18px;
}

.nnpd-next-project {
	position: relative;
	display: block;
	margin-top: calc(var(--nnpd-spacing) * 1.35);
	padding: 52px 72px 52px 0;
	border-top: 1px solid rgb(255 255 255 / 14%);
	color: var(--nnpd-text);
	text-decoration: none;
}

.nnpd-next-project__title {
	display: block;
	font-size: clamp(34px, 7vw, 98px);
	font-weight: 500;
	letter-spacing: -0.07em;
	line-height: 1.08;
}

.nnpd-next-project__arrow {
	position: absolute;
	top: 57px;
	right: 8px;
	font-size: 35px;
}

.nnps-project-detail.is-ready [data-nnpd-reveal] {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 650ms ease, transform 650ms ease;
}

.nnps-project-detail.is-ready [data-nnpd-reveal].is-visible {
	opacity: 1;
	transform: none;
}

@media (max-width: 767px) {
	.nnps-project-detail {
		--nnpd-gutter: 22px;
		--nnpd-spacing: 80px;
	}

	.nnpd-hero {
		min-height: 100svh;
		background-color: var(--nnpd-background);
	}

	.nnps-project-detail .nnpd-hero__media > img.nnps-slide__image {
		position: absolute !important;
		inset: 0 !important;
		width: 100% !important;
		height: 100% !important;
		min-width: 100% !important;
		min-height: 100% !important;
		max-width: none !important;
		max-height: none !important;
		object-fit: cover !important;
		object-position: center center !important;
	}

	.nnps-project-detail .nnpd-hero__media--video > iframe.nnpd-hero__video {
		top: 50% !important;
		left: 50% !important;
		width: max(100%, 177.78svh) !important;
		height: max(100%, 56.25vw) !important;
		min-width: 177.78svh !important;
		min-height: 100% !important;
		max-width: none !important;
		max-height: none !important;
		transform: translate(-50%, -50%) scale(1.06) !important;
	}

	.nnps-project-detail .nnpd-hero__title {
		font-size: clamp(56px, 15vw, 94px);
	}

	.nnpd-hero__scroll {
		right: 22px;
		bottom: 30px;
		font-size: 10px;
	}

	.nnpd-meta {
		grid-template-columns: 1fr;
		gap: 27px;
		padding-block: 56px;
	}

	.nnpd-meta__label {
		margin-bottom: 5px;
	}

	.nnpd-section {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.nnpd-section__body {
		font-size: 16px;
		line-height: 1.75;
	}

	.nnpd-gallery--carousel .nnpd-gallery__item {
		flex-basis: 88%;
	}

	.nnps-project-detail .nnpd-gallery__item img.nnpd-gallery__image {
		height: clamp(320px, 118vw, 570px);
	}

	.nnpd-gallery--grid .nnpd-gallery__track {
		grid-template-columns: 1fr;
	}

	.nnpd-lightbox {
		padding: 72px 20px;
	}

	.nnpd-lightbox__previous,
	.nnpd-lightbox__next {
		bottom: 18px;
	}

	.nnpd-lightbox__previous {
		left: calc(50% - 55px);
	}

	.nnpd-lightbox__next {
		right: calc(50% - 55px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.nnpd-gallery--carousel .nnpd-gallery__viewport {
		scroll-behavior: auto;
	}

	.nnps-project-detail.is-ready [data-nnpd-reveal],
	.nnpd-hero__video {
		transition-duration: 0.01ms;
	}
}
