:root {
	--ss-motion-red: #dc183d;
	--ss-motion-black: #0c1012;
	--ss-motion-white: #fff;
	--ss-motion-line: rgba(255, 255, 255, 0.32);
}

* {
	box-sizing: border-box;
}

html,
body {
	min-height: 100%;
	margin: 0;
}

body {
	font-family: Arial, Helvetica, sans-serif;
	letter-spacing: 0;
}

.ss-motion {
	position: relative;
	min-height: 100svh;
	overflow: hidden;
	background: var(--ss-motion-black);
	color: var(--ss-motion-white);
	isolation: isolate;
}

.ss-motion__media,
.ss-motion__shade,
.ss-motion__effect,
.ss-motion__image,
.ss-motion__sequence-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.ss-motion__media {
	z-index: -3;
	overflow: hidden;
}

.ss-motion__image,
.ss-motion__sequence-image {
	display: block;
	object-fit: cover;
}

.ss-motion__shade {
	z-index: -2;
	pointer-events: none;
}

.ss-motion__effect {
	z-index: -1;
	pointer-events: none;
}

.ss-motion__frame {
	position: relative;
	display: grid;
	grid-template-rows: auto 1fr auto auto;
	min-height: 100svh;
	padding: 38px 48px 32px;
}

.ss-motion__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.ss-motion__logo {
	display: block;
	width: 210px;
	height: auto;
}

.ss-motion__variant-id,
.ss-motion__process,
.ss-motion__sequence {
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
}

.ss-motion__variant-id {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 56px;
	height: 32px;
	border: 1px solid rgba(255, 255, 255, 0.48);
}

.ss-motion__intro {
	align-self: end;
	max-width: 920px;
	padding-bottom: 36px;
}

.ss-motion__process {
	margin: 0 0 18px;
	color: #f0f2f2;
}

.ss-motion h1 {
	margin: 0;
	font-size: 66px;
	font-weight: 700;
	line-height: 0.98;
	letter-spacing: 0;
}

.ss-motion__categories {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--ss-motion-line);
	border-bottom: 1px solid rgba(255, 255, 255, 0.18);
	list-style: none;
}

.ss-motion__categories li {
	min-width: 0;
	padding: 19px 18px 19px 0;
	border-right: 1px solid rgba(255, 255, 255, 0.24);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.25;
}

.ss-motion__categories li:not(:first-child) {
	padding-left: 18px;
}

.ss-motion__categories li:last-child {
	border-right: 0;
}

/* M01: print-head movement and a restrained scanning line. */
.ss-motion-page--m01 .ss-motion {
	border-top: 6px solid var(--ss-motion-red);
}

.ss-motion-page--m01 .ss-motion__frame {
	min-height: calc(100svh - 6px);
}

.ss-motion-page--m01 .ss-motion__image {
	object-position: center;
	transform: scale(1.04);
	animation: ss-motion-m01-camera 9s ease-in-out infinite alternate;
}

.ss-motion-page--m01 .ss-motion__shade {
	background: rgba(5, 8, 10, 0.56);
}

.ss-motion-page--m01 .ss-motion__effect::before {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 12%;
	width: 2px;
	background: rgba(220, 24, 61, 0.9);
	box-shadow: 0 0 24px rgba(220, 24, 61, 0.52);
	content: "";
	animation: ss-motion-m01-scan 5.8s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.ss-motion-page--m01 .ss-motion__process {
	color: #ffb8bb;
}

@keyframes ss-motion-m01-camera {
	from { transform: scale(1.04) translate3d(-1.2%, 0, 0); }
	to { transform: scale(1.09) translate3d(1.2%, -0.5%, 0); }
}

@keyframes ss-motion-m01-scan {
	0%, 12% { transform: translate3d(0, 0, 0); opacity: 0; }
	22% { opacity: 1; }
	76% { opacity: 1; }
	88%, 100% { transform: translate3d(66vw, 0, 0); opacity: 0; }
}

/* M02: pointer parallax over the CNC process. */
.ss-motion-page--m02 .ss-motion__image {
	object-position: center;
	transform: scale(1.09) translate3d(var(--ss-motion-x, 0), var(--ss-motion-y, 0), 0);
	transition: transform 900ms cubic-bezier(0.2, 0.72, 0.2, 1);
}

.ss-motion-page--m02 .ss-motion__shade {
	background: rgba(4, 7, 8, 0.48);
}

.ss-motion-page--m02 .ss-motion__frame {
	padding-left: clamp(48px, 8vw, 128px);
}

.ss-motion-page--m02 .ss-motion__intro {
	max-width: 780px;
	padding-left: 24px;
	border-left: 6px solid var(--ss-motion-red);
}

.ss-motion-page--m02 .ss-motion__process {
	color: #ffd7d9;
}

/* M03: a three-stage manufacturing sequence. */
.ss-motion-page--m03 .ss-motion__sequence-image {
	opacity: 0;
	transform: scale(1.04);
	transition: opacity 900ms ease, transform 4.6s ease;
}

.ss-motion-page--m03 .ss-motion__sequence-image.is-active {
	opacity: 1;
	transform: scale(1.09);
}

.ss-motion-page--m03 .ss-motion__shade {
	background: rgba(4, 7, 9, 0.6);
}

.ss-motion-page--m03 .ss-motion__intro {
	padding-bottom: 22px;
}

.ss-motion-page--m03 .ss-motion__process {
	color: #ffd0d2;
}

.ss-motion__sequence {
	display: flex;
	gap: 20px;
	padding: 0 0 28px;
	color: rgba(255, 255, 255, 0.52);
}

.ss-motion__sequence span {
	position: relative;
	padding-top: 12px;
}

.ss-motion__sequence span::before {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 2px;
	background: rgba(255, 255, 255, 0.28);
	content: "";
}

.ss-motion__sequence span.is-active {
	color: var(--ss-motion-white);
}

.ss-motion__sequence span.is-active::before {
	background: var(--ss-motion-red);
}

/* M04: a film-like material feed made from a lightweight local still. */
.ss-motion-page--m04 .ss-motion__image {
	object-position: center;
	transform: scale(1.04);
	animation: ss-motion-m04-feed 8s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
}

.ss-motion-page--m04 .ss-motion__shade {
	background: rgba(3, 6, 8, 0.48);
}

.ss-motion-page--m04 .ss-motion__effect::before,
.ss-motion-page--m04 .ss-motion__effect::after {
	position: absolute;
	left: 0;
	width: 100%;
	height: 1px;
	background: rgba(255, 255, 255, 0.34);
	content: "";
}

.ss-motion-page--m04 .ss-motion__effect::before {
	top: 31%;
}

.ss-motion-page--m04 .ss-motion__effect::after {
	top: 69%;
}

.ss-motion-page--m04 .ss-motion__process {
	color: #ffc6c9;
}

@keyframes ss-motion-m04-feed {
	from { transform: scale(1.04) translate3d(0, -1.4%, 0); }
	to { transform: scale(1.12) translate3d(-1.8%, 1.2%, 0); }
}

/* M05: typography reveal over finished products. */
.ss-motion-page--m05 .ss-motion__image {
	object-position: center;
	transform: scale(1.07);
	animation: ss-motion-m05-breathe 11s ease-in-out infinite alternate;
}

.ss-motion-page--m05 .ss-motion__shade {
	background: rgba(3, 5, 6, 0.52);
}

.ss-motion-page--m05 .ss-motion__intro {
	max-width: 980px;
}

.ss-motion-page--m05 h1 {
	display: flex;
	flex-wrap: wrap;
	gap: 0 0.24em;
}

.ss-motion-page--m05 h1 > span {
	display: block;
	clip-path: inset(0 100% 0 0);
	animation: ss-motion-m05-type 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ss-motion-page--m05 h1 > span:nth-child(2) {
	animation-delay: 100ms;
}

.ss-motion-page--m05 h1 > span:nth-child(3) {
	animation-delay: 200ms;
}

.ss-motion__headline-accent {
	color: var(--ss-motion-red);
}

.ss-motion-page--m05 .ss-motion__process {
	color: #ffd2d4;
}

@keyframes ss-motion-m05-breathe {
	from { transform: scale(1.07) translate3d(0, 0, 0); }
	to { transform: scale(1.12) translate3d(1%, -0.8%, 0); }
}

@keyframes ss-motion-m05-type {
	from { clip-path: inset(0 100% 0 0); transform: translate3d(0, 18px, 0); }
	to { clip-path: inset(0 0 0 0); transform: translate3d(0, 0, 0); }
}

/* Comparison index. */
.ss-motion-compare {
	min-height: 100%;
	background: #f1f2f2;
	color: #111719;
}

.ss-motion-compare__header {
	display: grid;
	grid-template-columns: minmax(180px, 260px) 1fr;
	gap: 48px;
	align-items: end;
	padding: 40px 48px;
	border-top: 6px solid var(--ss-motion-red);
	border-bottom: 1px solid #c9cecf;
}

.ss-motion-compare__header img {
	display: block;
	width: 220px;
	height: auto;
}

.ss-motion-compare__header span,
.ss-motion-compare__meta > span {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
}

.ss-motion-compare__header h1 {
	margin: 8px 0 0;
	font-size: 38px;
	line-height: 1;
	letter-spacing: 0;
}

.ss-motion-compare__list {
	display: grid;
	gap: 0;
}

.ss-motion-compare__item {
	display: grid;
	grid-template-columns: minmax(300px, 34%) 1fr;
	min-height: min(76vh, 720px);
	border-bottom: 1px solid #bfc5c6;
}

.ss-motion-compare__meta {
	display: grid;
	grid-template-rows: auto 1fr auto;
	gap: 32px;
	padding: 42px 48px;
}

.ss-motion-compare__meta h2 {
	margin: 0 0 14px;
	font-size: 42px;
	line-height: 1;
	letter-spacing: 0;
}

.ss-motion-compare__meta p {
	max-width: 430px;
	margin: 0;
	color: #535c5f;
	font-size: 16px;
	line-height: 1.55;
}

.ss-motion-compare__meta a {
	justify-self: start;
	padding-bottom: 4px;
	border-bottom: 2px solid var(--ss-motion-red);
	color: #111719;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.ss-motion-compare__item iframe {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 620px;
	border: 0;
	background: var(--ss-motion-black);
}

@media (max-width: 780px) {
	.ss-motion__frame {
		grid-template-rows: auto 1fr auto;
		padding: 24px 20px 20px;
	}

	.ss-motion__logo {
		width: 152px;
	}

	.ss-motion__variant-id {
		min-width: 48px;
		height: 28px;
		font-size: 10px;
	}

	.ss-motion__intro {
		align-self: end;
		padding-bottom: 24px;
	}

	.ss-motion h1 {
		font-size: 42px;
		line-height: 1;
	}

	.ss-motion__process {
		max-width: 260px;
		margin-bottom: 12px;
		font-size: 10px;
	}

	.ss-motion__categories {
		grid-template-columns: 1fr;
		border-bottom: 0;
	}

	.ss-motion__categories li,
	.ss-motion__categories li:not(:first-child) {
		padding: 9px 0;
		border-right: 0;
		border-bottom: 1px solid rgba(255, 255, 255, 0.22);
		font-size: 12px;
	}

	.ss-motion-page--m01 .ss-motion__image {
		object-position: 60% center;
	}

	.ss-motion-page--m01 .ss-motion__effect::before {
		left: 6%;
	}

	@keyframes ss-motion-m01-scan {
		0%, 12% { transform: translate3d(0, 0, 0); opacity: 0; }
		22% { opacity: 1; }
		76% { opacity: 1; }
		88%, 100% { transform: translate3d(82vw, 0, 0); opacity: 0; }
	}

	.ss-motion-page--m02 .ss-motion__frame {
		padding-left: 20px;
	}

	.ss-motion-page--m02 .ss-motion__image {
		object-position: 39% center;
	}

	.ss-motion-page--m02 .ss-motion__intro {
		padding-left: 16px;
		border-left-width: 4px;
	}

	.ss-motion-page--m03 .ss-motion__sequence-image {
		object-position: 58% center;
	}

	.ss-motion__sequence {
		grid-column: 1;
		gap: 12px;
		padding-bottom: 16px;
		font-size: 9px;
	}

	.ss-motion-page--m03 .ss-motion__categories {
		grid-row: 4;
	}

	.ss-motion-page--m04 .ss-motion__image {
		object-position: 62% center;
	}

	.ss-motion-page--m05 .ss-motion__image {
		object-position: 59% center;
	}

	.ss-motion-page--m05 h1 {
		display: block;
	}

	.ss-motion-page--m05 h1 > span {
		width: max-content;
		max-width: 100%;
	}

	.ss-motion-compare__header {
		grid-template-columns: 1fr;
		gap: 22px;
		padding: 24px 20px 28px;
	}

	.ss-motion-compare__header img {
		width: 170px;
	}

	.ss-motion-compare__header h1 {
		font-size: 30px;
	}

	.ss-motion-compare__item {
		grid-template-columns: 1fr;
		min-height: 0;
	}

	.ss-motion-compare__meta {
		gap: 22px;
		padding: 30px 20px;
	}

	.ss-motion-compare__meta h2 {
		font-size: 34px;
	}

	.ss-motion-compare__item iframe {
		min-height: 680px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ss-motion__image,
	.ss-motion__sequence-image,
	.ss-motion__effect::before,
	.ss-motion-page--m05 h1 > span {
		animation: none !important;
		transition: none !important;
	}

	.ss-motion-page--m05 h1 > span {
		clip-path: none;
		transform: none;
	}

	.ss-motion-page--m02 .ss-motion__image {
		transform: scale(1.07);
	}

	.ss-motion-page--m03 .ss-motion__sequence-image:not(:first-child),
	.ss-motion-page--m03 .ss-motion__sequence span:not(:first-child) {
		display: none;
	}
}
