/* CSS ANIMATION */

/* TEXT ANIMATION */

.reveal-text,
.reveal-text::after {
	animation-delay: var(--animation-delay, 2s);
	animation-iteration-count: var(--iterations, 1);
	animation-duration: var(--duration, 800ms);
	animation-fill-mode: both;
	animation-timing-function: cubic-bezier(0.0, 0.0, 0.2, 1);
}

.reveal-text {
	position: relative;
	animation-name: clip-text;
	white-space: nowrap;
	cursor: default
}

.reveal-block-1 { 
	--animation-delay: var(--delay, 0);
	--animation-duration: var(--duration, 800ms);
	--animation-iterations: var(--iterations, 1);
}

.reveal-block-2 { 
	--animation-delay: var(--delay, 1s);
	--animation-duration: var(--duration, 800ms);
	--animation-iterations: var(--iterations, 1);
}

.reveal-block-3 { 
	--animation-delay: var(--delay, 2s);
	--animation-duration: var(--duration, 800ms);
	--animation-iterations: var(--iterations, 1);
}

.reveal-text::after {
	content: '';
	position: absolute;
	z-index: 10;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #757575;
	transform: scaleX(0);
	transform-origin: 0 50%;
	pointer-events: none;
	animation-name: text-revealer;
}

@keyframes clip-text {
	from {
		clip-path: inset(0 100% 0 0);
	}
	to {
		clip-path: inset(0 0 0 0);
	}
}

@keyframes text-revealer {
	0%, 50% {
		transform-origin: 0 50%;
	}
	60%, 100% {
		transform-origin: 100% 50%;
	}
	60% {
		transform: scaleX(1);
	}
	100% {
		transform: scaleX(0);
	}
}


/* BLOCK'S ANIMATION */

@keyframes reveal_animation1 {
	30% {
		transform: translateY(0);
		opacity: 1;
		clip-path: polygon(100% 0, 100% 100%, 0 100%, 0 0);
		filter: blur(0);
	}
	20% {
		transform: translateY(5px);
		opacity: 0.5;
		clip-path: polygon(100% 0, 100% 100%, 0 100%, 0 5%);
		filter: blur(2px);
	}
	0% {
		transform: translateY(-50px);
		opacity: 0;
		clip-path: polygon(100% 0, 100% 0%, 0 100%, 0 100%);
		filter: blur(10px);
	}
}

@keyframes reveal_animation2 {
	100% {
		transform: translateY(0);
		opacity: 1;
		clip-path: polygon(100% 0, 100% 100%, 0 100%, 0 0);
	}
	60% {
		transform: translateY(0);
		opacity: 1;
		clip-path: polygon(100% 0, 100% 100%, 0 100%, 0 15%);
		filter: blur(0);
	}
	30% {
		transform: translateY(0);
		opacity: 1;
		clip-path: polygon(100% 0, 100% 100%, 0 100%, 0 40%);
		filter: blur(2px);
	}
	0% {
		transform: translateY(50px);
		opacity: 0;
		clip-path: polygon(100% 0, 100% 0%, 0 100%, 0 100%);
		filter: blur(10px);
	}
}

@keyframes fadein_blured {
	0% {
		opacity: 0;
	}
	30% {
		filter: blur(5px);
		opacity: 0.5;
	}
	100% {
		filter: blur(0);
		opacity: 1;
	}
}


/* ANIMATION STAGES */

.layout--block_logo {
	transform-origin: 0 0;
	animation: reveal_animation2 1.5s ease 0s both;
}

.layout--block_promo-repute {
	transform-origin: 0 0;
	animation: reveal_animation2 1.5s ease 0.35s both;
}

#background_container {
	transform-origin: 0 0;
	animation: fadein_blured 700ms ease 0.7s both;
}

.layout--block_picture_right {
}


/* ICON ANIMATION */

.icon_animation {
	animation-name: icon-bell;
	animation-duration: 4s;
	animation-timing-function: linear;
	animation-iteration-count: 10;
}

@keyframes icon-bell {
	0% {
		transform-origin: 50% 0;
		transform: rotateZ(-15deg);
	}
	2.5% {
		transform: rotateZ(15deg);
	}
	5% {
		transform: rotateZ(-18deg);
	}
	7.5% {
		transform: rotateZ(18deg);
	}
	10% {
		transform: rotateZ(-22deg);
	}
	12.5% {
		transform: rotateZ(22deg);
	}
	15% {
		transform: rotateZ(-18deg);
	}
	17.5% {
		transform: rotateZ(18deg);
	}
	20% {
		transform: rotateZ(-12deg);
	}
	22.5% {
		transform: rotateZ(12deg);
	}
	25% {
		transform: rotateZ(0deg);
	}
}