:root {
	--bg: #040404;
	--ink: #f0f0ec;
	--muted: #a8a8a3;
	--dim: #777772;
	--line: rgba(255, 255, 255, 0.18);
	--soft: rgba(255, 255, 255, 0.08);
	--ease: cubic-bezier(0.18, 0.74, 0.15, 1);
	--mono: "Courier New", Courier, monospace;
}
* {
	box-sizing: border-box;
}
html,
body {
	margin: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	background: var(--bg);
	color: var(--ink);
	font-family: Arial, Helvetica, sans-serif;
}
button,
input,
a {
	font: inherit;
	color: inherit;
}
a {
	text-decoration: none;
}
.mono {
	font-family: var(--mono);
	letter-spacing: 0.13em;
	text-transform: uppercase;
	font-size: 10px;
	line-height: 1.2;
}

.app {
	position: fixed;
	inset: 0;
	background: #020202;
}

/* ===== GLOBAL VHS / GRAIN ===== */
.noise {
	position: fixed;
	inset: -10%;
	z-index: 200;
	pointer-events: none;
	opacity: 0.18;
	mix-blend-mode: screen;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.82'/%3E%3C/svg%3E");
	background-size: 220px 220px;
	animation: grain 0.25s steps(2, end) infinite;
}
@keyframes grain {
	0% {
		transform: translate(0, 0);
	}
	25% {
		transform: translate(-1.2%, .9%);
	}
	50% {
		transform: translate(.9%, -1.1%);
	}
	75% {
		transform: translate(.6%, 1.1%);
	}
	100% {
		transform: translate(-.9%, -.5%);
	}
}
.scanlines {
	position: fixed;
	inset: 0;
	z-index: 201;
	pointer-events: none;
	opacity: 0.16;
	background: repeating-linear-gradient(
		to bottom,
		transparent 0 2px,
		rgba(255, 255, 255, 0.055) 3px,
		transparent 4px
	);
}
.vignette {
	position: fixed;
	inset: 0;
	z-index: 202;
	pointer-events: none;
	box-shadow: inset 0 0 140px 60px rgba(0, 0, 0, 0.9);
}
.chromatic {
	position: fixed;
	inset: 0;
	z-index: 203;
	pointer-events: none;
	opacity: 0.08;
	background:
		radial-gradient(circle at 10% 50%, rgba(0, 140, 255, 0.45), transparent 35%),
		radial-gradient(circle at 90% 50%, rgba(255, 0, 80, 0.35), transparent 35%);
	mix-blend-mode: screen;
}

/* ===== TOP NAV ===== */
.topbar {
	display: none !important;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 140;
	padding: 18px 56px 0;
	color: #ffffff;
	pointer-events: none;
}
.topline {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 18px;
}
.socials,
.nav,
.right-actions {
	pointer-events: auto;
}
.socials {
	display: flex;
	gap: 12px;
	align-items: center;
}
.socials a {
	width: 18px;
	height: 18px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	border: 1px solid transparent;
	opacity: 0.88;
}
.socials a:hover {
	border-color: rgba(255, 255, 255, 0.3);
}
.socials svg {
	width: 14px;
	height: 14px;
	fill: white;
}
.nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	white-space: nowrap;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.nav span.sep {
	opacity: 0.45;
}
.right-actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	align-items: center;
	color: var(--muted);
}
.top-rule {
	margin-top: 16px;
	height: 1px;
	background: rgba(255, 255, 255, 0.3);
}

/* ===== INTRO / REC HUD ===== */
.hud {
	position: fixed;
	inset: 0;
	z-index: 130;
	padding: 30px 54px 30px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 1.2s ease;
	display: grid;
	grid-template-rows: auto 1fr auto;
	pointer-events: none;
}
.hud-top {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: start;
	color: #d8d8d3;
}
.playLabel {
	font-family: var(--mono);
	font-size: 28px;
	letter-spacing: 0.05em;
	opacity: 0.88;
	text-shadow: 0 0 12px rgba(255, 255, 255, 0.08);
}
.playLabel.hidden {
	opacity: 0;
}
.hud-bottom {
	display: block;
	color: #d6d6d0;
}
.hud-bottom .center {
	display: none !important;
	text-align: center;
	color: #d7d7d1;
}
.hud-bottom .right {
	position: fixed;
	right: 54px;
	bottom: 26px;
	text-align: right;
	z-index: 132;
}
.timer {
	font-family: var(--mono);
	font-size: 28px;
	letter-spacing: 0.03em;
}
.hud.visible {
	opacity: 1;
}
.playLabel,
.sp,
.timer {
	color: rgba(255, 255, 255, 0.78);
	text-shadow: 0 0 10px rgba(0, 0, 0, 0.85);
}
.sp {
	position: fixed;
	left: 54px;
	bottom: 24px;
	z-index: 132;
	font-family: var(--mono);
	font-size: 30px;
	letter-spacing: 0.02em;
}
.frameNote {
	display: none !important;
	position: fixed;
	left: 50%;
	bottom: 102px;
	transform: translateX(-50%);
	z-index: 131;
	color: #b8b8b2;
	text-align: center;
	pointer-events: none;
	opacity: 1;
	transition: opacity 0.35s ease;
}
.frameNote.hidden {
	opacity: 0;
}

/* ===== INTRO BUTTON ===== */
.intro-center {
	display: none !important;
	position: fixed;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	z-index: 135;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	text-align: center;
}
.introBtn {
	border: 1px solid rgba(255, 255, 255, 0.82);
	background: rgba(0, 0, 0, 0.18);
	color: white;
	padding: 18px 38px;
	min-width: 290px;
	border-radius: 999px;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: 13px;
	cursor: pointer;
	transition:
		transform 0.22s ease,
		background 0.22s ease,
		opacity 0.5s ease;
	backdrop-filter: blur(1px);
}
.introBtn:hover {
	transform: translateY(-1px);
	background: rgba(255, 255, 255, 0.06);
}
.intro-center.faded .introBtn,
.intro-center.faded .introCaption {
	opacity: 0;
	pointer-events: none;
}
.introCaption {
	max-width: 420px;
	color: #b0b0ab;
	transition: opacity 0.5s ease;
}

/* ===== 3D STAGE ===== */
#sceneWrap {
	position: fixed;
	inset: 0;
	z-index: 20;
	opacity: 0;
	transition: opacity 0.9s ease;
}
#sceneWrap.live {
	opacity: 1;
}
#sceneWrap canvas {
	width: 100% !important;
	height: 100% !important;
	display: block;
}
#sceneWrap.live.preclick {
	opacity: 0.08;
}
#sceneWrap.live.preclick.peek {
	opacity: 0.98;
}
#sceneWrap.preclick canvas {
	filter: blur(5px) contrast(1.02) brightness(0.92);
	transition:
		filter 1.2s ease,
		opacity 1.2s ease;
}
#sceneWrap.peek canvas {
	filter: blur(1.2px) contrast(1.06) brightness(0.98);
}

.introVideoLayer {
	position: fixed;
	inset: 0;
	z-index: 90;
	display: grid;
	place-items: center;
	pointer-events: none;
	background: #000;
	transition:
		opacity 1.8s ease,
		transform 2.6s cubic-bezier(0.18, 0.74, 0.15, 1),
		filter 1.6s ease;
}
.introVideoLayer.hidden {
	opacity: 0;
}
.introVideoLayer.persistent {
	opacity: 0.94;
	mix-blend-mode: normal;
	filter: contrast(1.02) saturate(0.92);
}
.introVideoLayer.peek {
	opacity: 0.14;
	filter: contrast(1.04) saturate(0.86) brightness(0.84);
}
.introVideo {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 1;
	filter: saturate(0.9) contrast(1.02) brightness(0.76);
}

/* static intro moon removed: intro uses 3D moon directly */

/* ===== HOTSPOTS ===== */
.hotspots {
	position: fixed;
	inset: 0;
	z-index: 110;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.45s ease;
}
.hotspots.live {
	opacity: 1;
}
.hotspot {
	position: absolute;
	left: 0;
	top: 0;
	transform: translate(-50%, -50%);
	pointer-events: auto;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
	color: white;
	text-align: center;
}
.hotspot .ring {
	width: 68px;
	height: 68px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.82);
	display: grid;
	place-items: center;
	background: rgba(255, 255, 255, 0.03);
	box-shadow:
		0 0 18px rgba(255, 255, 255, 0.06),
		inset 0 0 18px rgba(255, 255, 255, 0.02);
	transition:
		transform 0.22s ease,
		background 0.22s ease,
		border-color 0.22s ease;
}
.hotspot .ring::after {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: white;
	box-shadow: 0 0 14px rgba(255, 255, 255, 0.65);
}
.hotspot:hover .ring {
	transform: scale(1.08);
	background: rgba(255, 255, 255, 0.08);
	border-color: white;
}
.hotspot .label {
	margin-top: 10px;
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	white-space: nowrap;
	color: rgba(255, 255, 255, 0.96);
	text-shadow:
		0 2px 10px rgba(0, 0, 0, 0.95),
		0 0 18px rgba(0, 0, 0, 0.95);
	background: rgba(0, 0, 0, 0.26);
	padding: 3px 8px;
	border-radius: 999px;
	backdrop-filter: blur(1px);
}
.hotspot .label b {
	display: block;
	font-size: 11px;
	font-weight: 700;
	color: #ffffff;
}

.sectionBack {
	position: fixed;
	left: 50%;
	bottom: 34px;
	transform: translateX(-50%);
	z-index: 115;
	border: 1px solid rgba(255, 255, 255, 0.72);
	background: rgba(0, 0, 0, 0.26);
	color: rgba(255, 255, 255, 0.96);
	padding: 6px 12px;
	border-radius: 999px;
	cursor: pointer;
	opacity: 0;
	pointer-events: none;
	transition:
		opacity 0.3s ease,
		transform 0.3s ease,
		background 0.2s ease;
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-shadow:
		0 2px 10px rgba(0, 0, 0, 0.95),
		0 0 18px rgba(0, 0, 0, 0.95);
	backdrop-filter: blur(1px);
}
.sectionBack.live {
	opacity: 1;
	pointer-events: auto;
	transform: translateX(-50%) translateY(0);
}
.sectionBack:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #ffffff;
}
.hotspot.sub .ring {
	width: 58px;
	height: 58px;
	border-color: rgba(255, 255, 255, 0.72);
}
.hotspot.sub .label {
	opacity: 0.9;
}

/* ===== PORTFOLIO OVERLAY ===== */
.portfolio {
	position: fixed;
	inset: 0;
	z-index: 160;
	background:
		radial-gradient(
			circle at 50% 42%,
			rgba(255, 255, 255, 0.06),
			transparent 22%
		),
		#050505;
	opacity: 0;
	pointer-events: none;
	transform: scale(1.03);
	transition:
		opacity 0.6s ease,
		transform 0.85s var(--ease);
}
.portfolio.open {
	opacity: 1;
	pointer-events: auto;
	transform: scale(1);
}
.portfolioShell {
	position: relative;
	height: 100%;
	display: grid;
	grid-template-rows: auto 1fr auto;
	padding: 28px 34px 26px;
}
.portfolioTop {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: start;
	gap: 16px;
	color: #d6d6d1;
}
.backBtn {
	border: 0;
	background: none;
	padding: 0;
	cursor: pointer;
	color: #cfcfca;
	text-align: left;
}
.backBtn:hover {
	color: white;
}
.portfolioCode {
	text-align: center;
	color: #8e8e89;
}
.portfolioCounter {
	text-align: right;
	color: #8e8e89;
}
.portfolioMain {
	display: grid;
	grid-template-columns: minmax(200px, 0.8fr) minmax(0, 3fr) minmax(
			120px,
			0.6fr
		);
	align-items: center;
	gap: 34px;
	min-height: 0;
}
.seriesInfo h1 {
	margin: 0;
	font-size: clamp(40px, 5.5vw, 96px);
	line-height: 0.84;
	letter-spacing: -0.06em;
	text-transform: uppercase;
	font-weight: 400;
}
.seriesInfo p {
	max-width: 260px;
	margin: 20px 0 0;
	color: #aaa9a4;
	font-size: 13px;
	line-height: 1.45;
}
.seriesNo {
	color: #7c7c78;
	margin-bottom: 14px;
}
.viewer {
	position: relative;
	height: min(72vh, 760px);
	min-height: 420px;
	overflow: hidden;
	display: grid;
	place-items: center;
}
.card {
	position: absolute;
	width: min(76%, 860px);
	height: 90%;
	display: grid;
	place-items: center;
	opacity: 0;
	transform: translateX(16%) scale(0.94);
	filter: blur(3px);
	transition:
		opacity 0.45s ease,
		transform 0.8s var(--ease),
		filter 0.45s ease;
}
.card.active {
	opacity: 1;
	transform: translateX(0) scale(1);
	filter: none;
}
.card.prev {
	opacity: 0.12;
	transform: translateX(-62%) scale(0.72);
}
.card.next {
	opacity: 0.12;
	transform: translateX(62%) scale(0.72);
}
.card img,
.card video {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	box-shadow: 0 18px 70px rgba(0, 0, 0, 0.46);
	background: #111;
}
.placeholder {
	width: 100%;
	height: 100%;
	display: grid;
	place-items: center;
	text-align: center;
	border: 1px solid var(--line);
	color: #777771;
	background:
		linear-gradient(
			135deg,
			transparent 48%,
			rgba(255, 255, 255, 0.08) 49%,
			rgba(255, 255, 255, 0.08) 51%,
			transparent 52%
		),
		#101010;
}
.placeholder b {
	display: block;
	color: #b2b2ac;
	font-size: 13px;
	font-weight: 400;
	margin-bottom: 8px;
}
.viewerNav {
	text-align: right;
}
.viewerNav button {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.24);
	background: rgba(255, 255, 255, 0.02);
	cursor: pointer;
	margin-bottom: 10px;
}
.viewerNav button:hover {
	background: white;
	color: black;
}
.loadBtn {
	display: inline-block;
	width: auto !important;
	height: auto !important;
	border-radius: 0 !important;
	border: 0 !important;
	background: none !important;
	border-bottom: 1px solid #8a8a84 !important;
	padding: 0 0 5px !important;
	color: #9f9f99 !important;
	margin-top: 22px !important;
}
.loadBtn:hover {
	color: #fff !important;
}
.portfolioBottom {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: end;
	gap: 18px;
	color: #868682;
}
.portfolioBottom .right {
	text-align: right;
}
.strip {
	display: flex;
	gap: 6px;
	justify-content: center;
	max-width: 62vw;
	overflow: auto;
}
.strip button {
	width: 44px;
	height: 27px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: #101010;
	padding: 0;
	cursor: pointer;
	opacity: 0.46;
	overflow: hidden;
	flex: 0 0 auto;
}
.strip button.active {
	opacity: 1;
	border-color: #aaa;
}
.strip img,
.strip video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.transitionHole {
	position: fixed;
	z-index: 159;
	left: 50%;
	top: 50%;
	width: 0;
	height: 0;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	background: #000;
	opacity: 0;
	pointer-events: none;
}
.transitionHole.go {
	opacity: 1;
	animation: fallIn 0.95s var(--ease) forwards;
}
@keyframes fallIn {
	0% {
		width: 2px;
		height: 2px;
		box-shadow: 0 0 0 0 #000;
	}
	65% {
		width: 16vmax;
		height: 16vmax;
		box-shadow: 0 0 0 40vmax #000;
	}
	100% {
		width: 18vmax;
		height: 18vmax;
		box-shadow: 0 0 0 80vmax #000;
	}
}

/* ===== responsive ===== */
@media (max-width: 900px) {
	.topbar {
		padding: 14px 16px 0;
	}
	.nav {
		font-size: 11px;
		gap: 10px;
	}
	.topline {
		grid-template-columns: auto 1fr;
	}
	.right-actions {
		display: none;
	}
	.hud {
		padding: 24px 16px 22px;
	}
	.hud-bottom {
		display: block;
	}
	.hud-bottom .center {
		display: none;
	}
	.sp {
		left: 16px;
		bottom: 16px;
	}
	.hud-bottom .right {
		right: 16px;
		bottom: 16px;
	}
	.playLabel {
		font-size: 22px;
	}
	.introBtn {
		min-width: 240px;
		padding: 16px 28px;
		font-size: 12px;
	}
	.portfolioShell {
		padding: 18px 16px 16px;
	}
	.portfolioMain {
		grid-template-columns: 1fr;
		gap: 12px;
	}
	.seriesInfo {
		position: absolute;
		left: 16px;
		top: 66px;
		z-index: 3;
	}
	.seriesInfo p {
		display: none;
	}
	.viewer {
		height: 72vh;
		min-height: 380px;
	}
	.card {
		width: 94%;
		height: 78%;
	}
	.viewerNav {
		position: absolute;
		right: 16px;
		top: 48%;
		transform: translateY(-50%);
		z-index: 4;
	}
	.portfolioBottom {
		grid-template-columns: 1fr;
	}
	.portfolioBottom > :not(.strip) {
		display: none;
	}
	.strip {
		justify-content: flex-start;
		max-width: 100%;
	}
	.hotspot .ring {
		width: 54px;
		height: 54px;
	}
	.hotspot .label {
		font-size: 9px;
	}
	.hotspot .label b {
		font-size: 10px;
	}
}
