.machine {
	display: grid;
	align-content: start;
	align-items: baseline;
	gap: 0 var(--margin-double);
	grid-template-columns: 1fr 1fr;
	padding-inline: var(--margin-double);
}

.machine:has(.reveal:last-child) {
	padding-bottom: 33vh;
	padding-bottom: 33svh;
}

:not(.hero, .invert, .machine, .steps) + .machine.invert {
	margin-top: 33vh;
	margin-top: 33svh;
}

.machine__wrapper {
	--height: 100vh;
	--height: 100svh;
	grid-column: 1 / -1;
	height: calc(2 * var(--height));
	margin-top: calc(33vh - var(--header));
	margin-top: calc(33svh - var(--header));
	margin-bottom: calc(33vh - var(--margin-double));
	margin-bottom: calc(33svh - var(--margin-double));
}

.machine__images {
	display: flex;
	align-items: center;
	gap: 20%;
	justify-content: space-evenly;
	width: 100%;
	max-width: 1200px;
	height: var(--height);
	margin-inline: auto;
	padding: var(--header) 0 var(--margin-double);
	overflow: hidden;
	position: sticky;
	top: 0;
	z-index: 0;
	mask: linear-gradient(-90deg, hsla(var(--background), 0) 25%, hsl(var(--background)) 75%) 100% 0% / 400% 100% no-repeat;
	transition: mask-position 5s;
}

.machine__images--active {
	mask-position: 0% 0%;
}

.machine__images > figure {
	aspect-ratio: var(--width) / var(--height);
	max-width: calc(var(--width) / var(--total) * 80%);
	max-height: 100%;
	position: relative;
}

.machine__images > figure > img {
	max-width: 100%;
	max-height: 100%;
}

.machine__images > figure > figcaption {
	display: none;
	align-items: baseline;
	padding-top: var(--margin);
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translateX(-50%);
	font-family: "Suisse Intl Mono";
	font-size: var(--fontsize);
	letter-spacing: 0.04em;
	line-height: 1.2;
	text-transform: uppercase;
	white-space: nowrap;
}

.machine__images--active > figure > figcaption {
	display: flex;
}

.machine__images > figure > figcaption::before {
	content: "";
	display: inline-block;
	width: 0.725em;
	height: 0.725em;
	margin-right: 1ch;
	background-color: currentColor;
}

.machine > .reveal {
	grid-column: 2;
	z-index: 1;
}

@media (orientation: portrait) {
	.machine {
		grid-template-columns: 1fr;
	}

	.machine__image > img {
		width: 100%;
		height: 100%;
	}

	.machine > .reveal {
		grid-column: 1;
	}

	.machine > h2 + .reveal {
		margin-top: var(--margin-double);
	}
}