/* Couche de mouvement. Inactive tant que html.motion-on n'est pas posé. */

.hero-stage,
.hero-webgl {
	display: none;
}

html.motion-on #intro-area {
	position: relative;
	background-image: none;
}

html.motion-on .hero-stage {
	display: block;
	position: absolute;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
	z-index: 0;
}

html.motion-on .hero-photo {
	position: absolute;
	left: -6%;
	top: -12%;
	width: 112%;
	height: 124%;
	background: url(../img/intro-web-lite.png) center center / cover no-repeat;
	will-change: transform;
}

html.motion-on.has-webgl .hero-webgl {
	display: block;
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

html.motion-on.has-webgl .hero-photo {
	opacity: 0.72;
}

html.motion-on #intro-area > .container {
	position: relative;
	z-index: 1;
}

html.motion-on #about-me,
html.motion-on #services,
html.motion-on #work,
html.motion-on #contact-rapide {
	position: relative;
}

html.motion-on #about-me > .container,
html.motion-on #services > .container,
html.motion-on #work > .container,
html.motion-on #contact-rapide > .container {
	position: relative;
	z-index: 1;
}

.section-depth {
	position: absolute;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
	z-index: 0;
}

.section-depth-blob {
	position: absolute;
	top: 16%;
	left: -12%;
	width: min(48vw, 540px);
	height: min(48vw, 540px);
	border-radius: 50%;
	background: radial-gradient(circle, rgba(65, 105, 225, 0.2), rgba(91, 77, 214, 0.08) 42%, transparent 70%);
	filter: blur(6px);
	will-change: transform;
}

.section-depth-blob.is-right {
	left: auto;
	right: -14%;
	top: 30%;
}

html.motion-on .is-depth-shift,
html.motion-on .services-selection:hover .is-depth-shift {
	transition-property: background, color, box-shadow, border;
}

html.motion-on [data-reveal] {
	opacity: 0;
	transform: translate3d(0, 22px, 0);
	transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.7, 0.2, 1);
	transition-delay: calc(var(--reveal-i, 0) * 80ms);
}

html.motion-on [data-reveal].is-inview {
	opacity: 1;
	transform: translate3d(0, 0, 0);
}

html.motion-on .menu a.is-active {
	color: royalblue;
}

html.motion-on [data-pi-magnet] {
	position: static;
	display: inline-flex;
	align-items: center;
	vertical-align: middle;
	transition: transform 0.18s ease-out;
}

html.motion-on .copyright-detail .flex-pi {
	position: static;
	right: auto;
	top: auto;
	margin: 0;
}

@media (prefers-reduced-motion: reduce) {
	html.motion-on [data-reveal] {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.hero-stage,
	.hero-webgl {
		display: none;
	}
}
