@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
	width: 100%; min-height: 100%; background: #000; overflow-x: hidden;
	font-family: 'Inter', system-ui, sans-serif; color: #e8ece4;
	scrollbar-width: none; -ms-overflow-style: none;
	-webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
	-webkit-touch-callout: none; user-select: none; -webkit-user-select: none;
}
input, textarea, [contenteditable] { user-select: auto; -webkit-user-select: auto; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; }

.gpu-accelerated {
	will-change: transform, opacity;
}

canvas {
	position: fixed;
	top: 0; left: 0;
	width: 100vw; height: 100vh;
	z-index: 0;
}

#scroll-container {
	position: relative;
	z-index: 1;
	pointer-events: none;
	contain: layout style;
	will-change: transform;
}

.section {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 80px 40px;
	pointer-events: none;
	contain: layout style;
}

.section * { pointer-events: auto; }

/* Scroll snapping */
html {
	scroll-snap-type: y proximity;
}

.section {
	scroll-snap-align: start;
}

.progress-bar {
	position: fixed;
	top: 0; left: 0;
	height: 2px;
	background: rgba(230, 245, 120, 0.6);
	z-index: 200;
	width: 100%;
	transform-origin: left;
	transform: scaleX(0);
	will-change: transform;
}

.revealed {
	opacity: 1 !important;
	transform: translateY(0) !important;
	transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
				transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.delay-1 { transition-delay: 0.1s !important; }
.delay-2 { transition-delay: 0.25s !important; }
.delay-3 { transition-delay: 0.4s !important; }
.delay-4 { transition-delay: 0.55s !important; }

/* Loading Screen */
#loadingScreen {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: #000;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	transition: opacity 0.6s ease, visibility 0.6s ease;
}
#loadingScreen .loading-inner {
	text-align: center;
}
#loadingScreen .loading-brand {
	font-family: 'Playfair Display', serif;
	font-size: clamp(28px, 5vw, 42px);
	color: rgba(248, 252, 240, 0.9);
	letter-spacing: 4px;
	margin-bottom: 32px;
	opacity: 0;
	transform: translateY(20px);
	animation: loadFadeUp 0.8s ease forwards 0.2s;
}
#loadingScreen .loading-bar-track {
	width: 120px;
	height: 1px;
	background: rgba(140, 180, 120, 0.1);
	margin: 0 auto 24px;
	position: relative;
	overflow: hidden;
}
#loadingScreen .loading-bar-sweep {
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(230, 245, 120, 0.8), transparent);
	animation: loadSweep 1.2s ease-in-out infinite;
}
#loadingScreen .loading-label {
	font-size: 10px;
	letter-spacing: 4px;
	text-transform: uppercase;
	color: rgba(210, 230, 160, 0.4);
	opacity: 0;
	animation: loadFadeUp 0.8s ease forwards 0.5s;
}
