@font-face {
	font-family: 'Graphik';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src:
		url('https://design.vdisain.dev/wp-content/uploads/2022/01/Graphik-Bold.woff2') format('woff2'),
		url('https://design.vdisain.dev/wp-content/uploads/2022/01/Graphik-Bold.woff') format('woff');
}

.studio-stilo-preloader {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	overflow: hidden;
	transition: opacity 0.5s ease, transform 0.5s ease, left 0s ease 0.5s;
}

.studio-stilo-preloader.is-complete {
	opacity: 0;
	transform: scale(1);
	left: 1000%;
	pointer-events: none;
}

body.studio-stilo-preloader-complete > *:not(#studio-stilo-preloader) {
	opacity: 1;
	transition: opacity 0.5s ease;
}

.studio-stilo-preloader__logo-phase,
.studio-stilo-preloader__loading-phase {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.studio-stilo-preloader__logo-phase {
	opacity: 1;
	transition: opacity 0.3s ease;
}

.studio-stilo-preloader.is-loading .studio-stilo-preloader__logo-phase {
	opacity: 0;
	pointer-events: none;
}

.studio-stilo-preloader__logo {
	display: block;
	max-width: min(640px, 92vw);
	height: auto;
}

.studio-stilo-preloader__loading-phase {
	opacity: 0;
	transition: opacity 0.3s ease;
}

.studio-stilo-preloader.is-loading .studio-stilo-preloader__loading-phase {
	opacity: 1;
}

.studio-stilo-preloader__content {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 0 24px;
}

.studio-stilo-preloader__percent {
	margin: 0;
	font-family: 'Graphik', sans-serif;
	font-size: clamp(120px, 22vw, 300px);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.02em;
	color: #f3f3f3;
}

.studio-stilo-preloader__word {
	margin: 12px 0 0;
	font-family: 'Graphik', sans-serif;
	font-size: 25px;
	font-weight: 700;
	line-height: 40px;
	letter-spacing: -0.01em;
	color: #000;
	text-transform: lowercase;
	min-height: 40px;
	transition: opacity 0.12s ease;
}

.studio-stilo-preloader__word.is-changing {
	opacity: 0;
}

.studio-stilo-preloader__progress {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	height: 5px;
	background: #fff;
}

.studio-stilo-preloader__progress-bar {
	width: 0;
	height: 100%;
	background: #173a4e;
	transition: width 0.04s linear;
}

@media (max-width: 767px) {
	.studio-stilo-preloader__percent {
		font-size: clamp(96px, 28vw, 180px);
	}

	.studio-stilo-preloader__word {
		font-size: 20px;
		line-height: 32px;
		min-height: 32px;
	}
}
