/* CSS 3D flight corridor; ordinary navigation remains the source of truth. */
@view-transition {
	navigation: none;
}

.wc-curtain {
	position: fixed;
	inset: 0;
	z-index: 100000;
	will-change: opacity;
	visibility: hidden;
	pointer-events: none;
	overflow: hidden;
	background: radial-gradient(
		ellipse at 50% 50%,
		#16283f,
		#090e17 48%,
		#05070c 85%
	);
}

.wc-curtain::before,
.wc-curtain::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.wc-curtain::before {
	background: repeating-conic-gradient(
		from 10deg at 50% 50%,
		transparent 0deg 14.9deg,
		#a9d6ff1c 15deg 15.1deg,
		transparent 15.2deg 30deg
	);
	mask-image: radial-gradient(transparent 5%, #000 80%);
}

.wc-curtain::after {
	background: radial-gradient(ellipse, transparent 20%, #03060a99 85%);
}

.wc-curtain__tunnel {
	position: absolute;
	inset: 0;
	perspective: 420px;
	perspective-origin: 50% 50%;
}

.wc-curtain__flight {
	position: absolute;
	inset: 0;
	transform-style: preserve-3d;
}

.wc-curtain__gate {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 70vmin;
	height: 70vmin;
	margin: -35vmin 0 0 -35vmin;
	border: 1px solid #91c9ef99;
	border-radius: 15%;
	box-shadow:
		0 0 20px #82bdea18,
		inset 0 0 20px #82bdea18;
	transform: translateZ(calc(var(--depth) * -180px)) rotateZ(45deg);
	backface-visibility: hidden;
	will-change: transform, opacity;
}

.wc-curtain__gate::before {
	content: "";
	position: absolute;
	inset: 12px;
	border: 1px dashed #91c9ef30;
	border-radius: inherit;
}

.wc-curtain__gate:nth-child(3n) {
	border-color: #dc557b;
	box-shadow:
		0 0 22px #dc557b26,
		inset 0 0 22px #dc557b26;
}

.wc-curtain__identity {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	color: #fff;
	z-index: 1;
}

.wc-curtain__wordmark {
	font-size: clamp(30px, 5vw, 68px);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.05em;
	padding: 0 20px;
	text-align: center;
	text-shadow: 0 4px 36px #000;
}

.wc-curtain__wordmark span {
	color: #c0d8ec;
}

.wc-curtain__identity p {
	font: 11px / 1.5 monospace;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	margin: 20px 0 0;
	color: #90a9c3;
}

.wc-curtain__rule {
	height: 1px;
	width: 120px;
	margin-top: 28px;
	background: linear-gradient(90deg, transparent, #e35c80, transparent);
}

.wc-curtain__orbit {
	position: absolute;
	width: 18px;
	height: 18px;
	border: 1px solid #e35c80;
	transform: rotate(45deg);
	bottom: 14%;
}

.wc-motion-in .wc-curtain,
.wc-motion-out .wc-curtain {
	visibility: visible;
	pointer-events: auto;
}

.wc-motion-out .wc-curtain {
	animation: wc-loader-cover 750ms cubic-bezier(0.45, 0, 0.55, 1) both;
}

.wc-motion-out.wc-motion-covered .wc-curtain {
	animation: none;
	opacity: 1;
}

.wc-motion-in.wc-motion-ready .wc-curtain {
	animation: wc-loader-reveal 750ms cubic-bezier(0.45, 0, 0.55, 1) both;
	pointer-events: none;
}

@keyframes wc-loader-cover {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@keyframes wc-loader-reveal {
	from {
		opacity: 1;
	}

	to {
		opacity: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wc-curtain,
	.wc-motion-in .wc-curtain,
	.wc-motion-out .wc-curtain {
		display: none;
	}
}
