/**
 * Page transition — AD ARCHVIZ
 *
 * A dark curtain with a gold edge slides over the page when a link is
 * followed, then lifts away on the next page. Disabled for visitors who
 * prefer reduced motion.
 */

.nova-page-curtain {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: #0A0B0E;
	pointer-events: none;
	transform: translateY(100%);
	will-change: transform;
}

.nova-page-curtain::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--color-accent, #E0B86C), transparent);
}

/* Leaving: curtain rises from the bottom and covers the page. */
html.nova-pt-leaving .nova-page-curtain {
	transform: translateY(0);
	transition: transform 0.45s cubic-bezier(0.76, 0, 0.24, 1);
	pointer-events: all;
}

/* Arriving: page starts covered and the curtain lifts away. */
html.nova-pt-enter .nova-page-curtain {
	transform: translateY(0);
	animation: nova-curtain-lift 0.65s cubic-bezier(0.76, 0, 0.24, 1) 0.05s forwards;
}

@keyframes nova-curtain-lift {
	from { transform: translateY(0); }
	to   { transform: translateY(-100%); }
}

@media (prefers-reduced-motion: reduce) {
	.nova-page-curtain {
		display: none;
	}
}
