@font-face {
	font-family: "ABC Diatype Mono";
	src: url("/wp-content/uploads/fonts/ABC-Diatype-Mono.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

:root {
	--ns-font: "ABC Diatype Mono", "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
	--ns-text: #ffffff;
	--ns-line: rgba(255, 255, 255, 0.35);
	--ns-footer-height: 72px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html,
body.ns-explore {
	margin: 0;
	min-height: 100%;
	background: #0a1020;
	color: var(--ns-text);
	font-family: var(--ns-font);
	font-size: 16px;
	line-height: 1.4;
	-webkit-font-smoothing: antialiased;
}

body.ns-explore {
	background: linear-gradient(182deg, #a8bdd4 0%, #6f8fad 18%, #4a6a8a 42%, #1a2a40 72%, #0a1020 100%);
	background-size: 1000% 1000%;
	animation: ns-gradient-shift 28s ease infinite;
	animation-delay: var(--ns-gradient-delay, 0ms);
}

@keyframes ns-gradient-shift {
	0% { background-position: 51% 0%; }
	50% { background-position: 50% 100%; }
	100% { background-position: 51% 0%; }
}

.ns-explore__noise {
	position: fixed;
	inset: 0;
	opacity: 0.12;
	background-image: url("/wp-content/uploads/2024/04/Noise-Black.png");
	background-size: 240px 240px;
	pointer-events: none;
	z-index: 0;
}

.ns-explore__shell {
	position: relative;
	z-index: 1;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.ns-explore__header {
	padding: 48px 24px 36px;
	text-align: center;
}

.ns-explore__logo-link {
	display: inline-block;
	text-decoration: none;
}

@keyframes ns-logo-blur-in {
	from {
		filter: blur(14px);
		opacity: 0;
	}

	to {
		filter: blur(0);
		opacity: 1;
	}
}

.ns-explore__logo {
	display: block;
	width: min(285px, 62vw);
	height: auto;
	margin: 0 auto;
}

.ns-explore--index .ns-explore__logo {
	animation: ns-logo-blur-in 1.4s ease-out both;
}

@media (prefers-reduced-motion: reduce) {
	body.ns-explore,
	.ns-explore--index .ns-explore__logo,
	.ns-explore--index .ns-index__row {
		animation: none;
	}
}

.ns-explore__main {
	flex: 1;
	width: min(920px, calc(100% - 48px));
	margin: 0 auto;
	padding-bottom: calc(var(--ns-footer-height) + 32px);
}

.ns-explore__footer {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	height: var(--ns-footer-height);
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 32px;
	z-index: 5;
	overflow: visible;
	isolation: isolate;
}

.ns-explore__footer::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	top: -48px;
	height: auto;
	pointer-events: none;
	z-index: 0;
	background: linear-gradient(
		180deg,
		rgba(26, 42, 64, 0) 0%,
		rgba(26, 42, 64, 0.15) 100%
	);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	mask-image: linear-gradient(180deg, transparent 0%, #000 100%);
	-webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 100%);
}

.ns-explore__footer > * {
	position: relative;
	z-index: 1;
}

.ns-explore__footer-start {
	display: flex;
	align-items: center;
	gap: 32px;
}

.ns-explore__footer-end {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-left: auto;
}

.ns-explore__footer-link--hotline {
	margin-left: auto;
}

.ns-explore__footer-link--hidden {
	display: none;
}

.ns-explore__footer-link--hotline .ns-explore__footer-link-email,
.ns-explore__footer-link--hotline .ns-explore__footer-link-copied {
	display: none;
}

.ns-explore__footer-link--hotline:hover .ns-explore__footer-link-label,
.ns-explore__footer-link--hotline:focus-visible .ns-explore__footer-link-label {
	display: none;
}

.ns-explore__footer-link--hotline:hover .ns-explore__footer-link-email,
.ns-explore__footer-link--hotline:focus-visible .ns-explore__footer-link-email {
	display: inline;
	letter-spacing: 0.04em;
}

.ns-explore__footer-link--hotline.is-copied .ns-explore__footer-link-label,
.ns-explore__footer-link--hotline.is-copied .ns-explore__footer-link-email {
	display: none;
}

.ns-explore__footer-link--hotline.is-copied .ns-explore__footer-link-copied {
	display: inline;
	letter-spacing: 0.12em;
}

.ns-explore__footer-link--hotline.is-hotline-reset .ns-explore__footer-link-email,
.ns-explore__footer-link--hotline.is-hotline-reset:hover .ns-explore__footer-link-email,
.ns-explore__footer-link--hotline.is-hotline-reset:focus-visible .ns-explore__footer-link-email {
	display: none;
}

.ns-explore__footer-link--hotline.is-hotline-reset .ns-explore__footer-link-label,
.ns-explore__footer-link--hotline.is-hotline-reset:hover .ns-explore__footer-link-label,
.ns-explore__footer-link--hotline.is-hotline-reset:focus-visible .ns-explore__footer-link-label {
	display: inline;
}

.ns-explore__footer-link,
.ns-index__row,
.ns-detail__back a {
	color: var(--ns-text);
	text-decoration: none;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	font-size: 14px;
}

.ns-index__row:hover,
.ns-detail__back a:hover {
	opacity: 0.72;
}

@keyframes ns-index-blur-in {
	from {
		filter: blur(12px);
	}

	to {
		filter: blur(0);
	}
}

.ns-explore--index .ns-index__row {
	animation: ns-index-blur-in 1.1s ease-out both;
	animation-delay: calc(0.2s + (var(--row-index, 0) * 0.045s));
}

.ns-explore__main--index {
	padding-bottom: calc(var(--ns-footer-height) + 75px);
}

.ns-index {
	display: flex;
	flex-direction: column;
	gap: 0;
	margin-top: 10px;
}

.ns-index__row {
	display: grid;
	grid-template-columns: 64px 1.1fr 1.6fr 72px;
	gap: 16px;
	align-items: center;
	padding: 14px 0;
	border-top: 1px solid var(--ns-line);
	transition: opacity 0.2s ease;
}

.ns-index__row:last-child {
	border-bottom: 1px solid var(--ns-line);
}

.ns-index__cell {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ns-index__cell--number,
.ns-index__cell--year {
	text-align: center;
}

.ns-index__cell--title {
	text-align: left;
}

.ns-index__empty {
	text-align: center;
	padding: 48px 0;
	opacity: 0.8;
}

.ns-explore__main--about {
	position: fixed;
	inset: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0 32px;
	pointer-events: none;
}

.ns-explore--about .ns-explore__header {
	position: relative;
	z-index: 2;
}

.ns-explore__main--detail {
	padding-bottom: calc(var(--ns-footer-height) + 20px);
}

.ns-detail {
	width: min(880px, calc(100vw - 48px));
	margin: 10px auto 0;
}

.ns-detail__video {
	position: relative;
	width: 100%;
	background-color: rgba(26, 42, 64, 0.65);
	background-image: var(--ns-video-poster);
	background-size: cover;
	background-position: center;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
	transition: opacity 0.7s ease;
	--plyr-color-main: #ffffff;
	--plyr-video-control-color: #ffffff;
	--plyr-video-control-color-hover: #ffffff;
	--plyr-video-control-background-hover: transparent;
	--plyr-video-controls-background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.28) 100%);
	--plyr-range-fill-background: rgba(255, 255, 255, 0.92);
	--plyr-range-thumb-background: #ffffff;
	--plyr-range-track-height: 1px;
	--plyr-range-thumb-height: 0;
	--plyr-video-progress-buffered-background: rgba(255, 255, 255, 0.16);
	--plyr-font-family: var(--ns-font);
	--plyr-control-icon-size: 13px;
	--plyr-control-spacing: 4px;
	--plyr-control-padding: 2px;
	--plyr-control-radius: 0;
}

.ns-detail__video:not(.is-ready) > * {
	opacity: 0;
}

.ns-detail__video iframe {
	visibility: hidden;
}

.ns-detail__video.is-ready iframe {
	visibility: visible;
}

.ns-detail__video.is-ready .plyr {
	opacity: 1;
}

.ns-detail__video .plyr__video-embed,
.ns-detail__video .plyr__video-embed__container {
	overflow: hidden;
}

.ns-detail__video .plyr__poster {
	display: none;
}

.ns-detail__video .plyr.plyr--video .plyr__controls {
	display: flex;
	align-items: center;
	gap: 10px;
	inset: auto 0 0;
	width: 100%;
	padding-top: 20px;
	padding-right: 16px;
	padding-bottom: 14px;
	padding-left: 16px;
}

.ns-detail__video .plyr__progress__container {
	flex: 1;
	min-width: 0;
	margin-left: 0;
	margin-right: 0;
}

.ns-detail__video .plyr__progress {
	width: 100%;
	margin-right: 0;
}

.ns-detail__video .plyr__progress input[type="range"] {
	width: 100%;
}

.ns-detail__video .plyr--video .plyr__control {
	opacity: 0.55;
	background: transparent;
	border-radius: 0;
	overflow: visible;
	transition: opacity 0.15s ease;
}

.ns-detail__video .plyr--video .plyr__control svg {
	border-radius: 0;
	overflow: visible;
}

.ns-detail__video .plyr--video .plyr__control[data-plyr="play"] svg:not(.icon--pressed) {
	width: 16px;
	height: 16px;
}

.ns-detail__video .plyr--video .plyr__control[data-plyr="play"] svg.icon--pressed {
	width: 13px;
	height: 13px;
}

.ns-detail__video .plyr--video .plyr__control:focus-visible,
.ns-detail__video .plyr--video .plyr__control:hover,
.ns-detail__video .plyr--video .plyr__control[aria-expanded="true"] {
	opacity: 1;
	background: transparent;
}

.ns-detail__video .plyr.plyr--video .plyr__volume .plyr__control[data-plyr="mute"] {
	opacity: 1;
	background: transparent;
}

.ns-detail__video .plyr.plyr--video .plyr__volume .plyr__control.plyr__control--pressed[data-plyr="mute"] {
	opacity: 0.55;
	background: transparent;
}

.ns-detail__video .plyr.plyr--video .plyr__volume .plyr__control.plyr__control--pressed[data-plyr="mute"]:hover,
.ns-detail__video .plyr.plyr--video .plyr__volume .plyr__control.plyr__control--pressed[data-plyr="mute"]:focus-visible {
	opacity: 1;
}

.ns-detail__video .plyr__progress input[type="range"]::-webkit-slider-thumb,
.ns-detail__video .plyr__progress input[type="range"]::-moz-range-thumb {
	opacity: 0;
	width: 0;
	height: 0;
	border: 0;
}

.ns-detail__meta {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	align-items: end;
	margin-top: 18px;
	padding-bottom: 70px;
}

.ns-detail__meta-left {
	display: grid;
	gap: 6px;
}

.ns-detail__index,
.ns-detail__director,
.ns-detail__client,
.ns-detail__title {
	margin: 0;
	font-size: 14px;
	letter-spacing: 0.12em;
}

.ns-detail__index {
	opacity: 0.55;
}

.ns-detail__client {
	text-transform: uppercase;
}

.ns-detail__project {
	text-align: right;
	display: grid;
	gap: 4px;
}

.ns-detail__title em {
	font-style: italic;
	font-weight: 400;
}

.ns-about__copy {
	margin: 0;
	width: min(505px, calc(100% - 48px));
	pointer-events: auto;
	transform: translateY(24px);
	text-align: center;
	font-size: clamp(14px, 1.8vw, 17px);
	line-height: 1.7;
	letter-spacing: 0.04em;
	animation: ns-logo-blur-in 1.4s ease-out both;
}

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

@media (max-width: 768px) {
	.ns-explore__header {
		padding-top: 32px;
		padding-bottom: 32px;
	}

	.ns-explore__logo {
		width: min(168px, 46vw);
	}

	.ns-explore--detail .ns-explore__header {
		position: relative;
		z-index: 2;
	}

	.ns-explore__main--detail {
		position: fixed;
		inset: 0;
		z-index: 1;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		max-width: none;
		margin: 0;
		padding: 0;
	}

	.ns-detail {
		margin: 0;
		width: 100%;
		transform: translateY(32px);
	}

	.ns-detail__video {
		width: 100%;
		box-shadow: none;
	}

	.ns-detail__meta {
		padding-right: 24px;
		padding-left: 24px;
	}

	.ns-index {
		margin-top: 0;
	}

	.ns-index__row {
		grid-template-columns: auto minmax(0, 1.1fr) minmax(0, 1.8fr) auto;
		gap: 8px;
		padding: 12px 0;
		font-size: 11px;
		letter-spacing: 0.06em;
	}

	.ns-index__cell--number,
	.ns-index__cell--year,
	.ns-index__cell--director,
	.ns-index__cell--title {
		grid-area: auto;
		white-space: nowrap;
	}

	.ns-index__cell--number { text-align: left; }
	.ns-index__cell--year { text-align: right; }

	.ns-detail__index,
	.ns-detail__director,
	.ns-detail__client,
	.ns-detail__title {
		font-size: 11px;
		letter-spacing: 0.06em;
	}

	.ns-explore__footer {
		height: auto;
		align-items: flex-end;
		padding: 24px;
	}

	.ns-explore__footer-link {
		font-size: 11px;
		letter-spacing: 0.06em;
	}

	.ns-explore__footer-start {
		gap: 24px;
	}
}
