/*
Homepage server-status illustration.
The artwork is one flat image (person, rack, plant, and the Server Status
panel). A masked copy of that image eases the panel in. The Server 1 row
pulses, the four active meters fill, and the whole figure floats.
*/

@keyframes nv-status-float {
	0%,
	100% {
		transform: translate3d(0, 0, 0);
	}

	50% {
		transform: translate3d(0, -1.35%, 0);
	}
}

@keyframes nv-status-panel-in {
	from {
		opacity: 0;
		transform: translate3d(0, 2.6%, 0);
	}

	to {
		opacity: 1;
		transform: translate3d(0, 0, 0);
	}
}

@keyframes nv-status-bar-fill {
	0% {
		transform: scaleX(0);
		filter: brightness(1.35);
	}

	100% {
		transform: scaleX(1);
		filter: brightness(1);
	}
}

@keyframes nv-status-row-pulse {
	0%,
	100% {
		box-shadow: inset 0 0 0 0 rgba(229, 193, 12, 0);
		background-color: rgba(229, 193, 12, 0);
	}

	50% {
		box-shadow: inset 0 0 22px 1px rgba(229, 193, 12, 0.55);
		background-color: rgba(229, 193, 12, 0.16);
	}
}

.nv-status-illu {
	position: relative;
	display: inline-block;
	max-width: 100%;
	line-height: 0;
	vertical-align: top;
	animation: nv-status-float 6.8s ease-in-out infinite;
}

.nv-status-illu__base,
.nv-status-illu__panel-img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
}

.nv-status-illu__base {
	position: relative;
	z-index: 0;
}

.nv-status-illu__panel {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	opacity: 0;
}

.nv-status-illu__panel-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.nv-status-illu__row,
.nv-status-illu__bar {
	position: absolute;
	pointer-events: none;
}

.nv-status-illu__row {
	left: 36.4%;
	top: 13.5%;
	width: 22.8%;
	height: 5.5%;
	border-radius: 8px;
	animation: nv-status-row-pulse 2.8s ease-in-out 1.25s infinite;
}

.nv-status-illu__bar {
	left: 41.25%;
	height: 0.5%;
	border-radius: 2px;
	overflow: hidden;
}

.nv-status-illu__bar i {
	display: block;
	height: 100%;
	width: 100%;
	transform: scaleX(0);
	transform-origin: left center;
	animation: nv-status-bar-fill 0.72s cubic-bezier(0.22, 0.82, 0.28, 1) forwards;
}

.nv-status-illu__bar--1 {
	top: 16.85%;
	width: 3.15%;
	background: #6c5f2b;
}

.nv-status-illu__bar--1 i {
	background: #fdcc0e;
	animation-delay: 0.72s;
}

.nv-status-illu__bar--2 {
	top: 23.6%;
	width: 2.6%;
	background: #12232a;
}

.nv-status-illu__bar--2 i {
	background: #fdcc0e;
	animation-delay: 0.88s;
}

.nv-status-illu__bar--3 {
	top: 30.3%;
	width: 1.9%;
	background: #12232a;
}

.nv-status-illu__bar--3 i {
	background: #3b5963;
	animation-delay: 1.04s;
}

.nv-status-illu__bar--4 {
	top: 37.1%;
	width: 1.3%;
	background: #12232a;
}

.nv-status-illu__bar--4 i {
	background: #3b5c67;
	animation-delay: 1.2s;
}

@supports (mask-mode: luminance) {
	.nv-status-illu__base {
		-webkit-mask-image: url("../images/server-status-base-mask.svg");
		mask-image: url("../images/server-status-base-mask.svg");
		-webkit-mask-mode: luminance;
		mask-mode: luminance;
		-webkit-mask-repeat: no-repeat;
		mask-repeat: no-repeat;
		-webkit-mask-size: 100% 100%;
		mask-size: 100% 100%;
	}

	.nv-status-illu__panel-img {
		-webkit-mask-image: url("../images/server-status-panel-mask.svg");
		mask-image: url("../images/server-status-panel-mask.svg");
		-webkit-mask-mode: luminance;
		mask-mode: luminance;
		-webkit-mask-repeat: no-repeat;
		mask-repeat: no-repeat;
		-webkit-mask-size: 100% 100%;
		mask-size: 100% 100%;
	}

	.nv-status-illu__panel {
		animation: nv-status-panel-in 1.05s cubic-bezier(0.22, 0.82, 0.28, 1) both;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nv-status-illu,
	.nv-status-illu__panel,
	.nv-status-illu__row,
	.nv-status-illu__bar i {
		animation: none;
	}

	.nv-status-illu__row,
	.nv-status-illu__bar {
		display: none;
	}
}

@supports (mask-mode: luminance) {
	@media (prefers-reduced-motion: reduce) {
		.nv-status-illu__panel {
			opacity: 1;
			transform: none;
		}
	}
}
