.py-factory {
	position: relative;
	z-index: 5;
	background: #fff;
	color: #000;
	box-shadow: 0 -18px 50px rgba(0, 0, 0, 0.16);
}

.py-factory__pin {
	position: sticky;
	top: var(--py-header-h, 80px);
	z-index: 1;
	display: flex;
	flex-direction: column;
	height: calc(100svh - var(--py-header-h, 80px));
	background: #fff;
	overflow: hidden;
}

.admin-bar .py-factory__pin {
	top: calc(var(--py-header-h, 80px) + 32px);
	height: calc(100svh - var(--py-header-h, 80px) - 32px);
}

.py-factory__runway {
	height: 0;
	pointer-events: none;
}

.py-factory__rail {
	display: flex;
	align-items: center;
	flex: 0 0 64px;
	height: 64px;
	padding: 0 clamp(16px, 3vw, 40px);
	background: #fff;
	border-bottom: 1px solid #000;
	box-sizing: border-box;
	direction: rtl;
}

.py-factory__rail-title {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin: 0;
	font-family: "Ray", "Poppins", Tahoma, sans-serif;
	font-size: 15px;
	font-weight: 800;
}

.py-factory__index,
.py-factory__slash {
	font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;
	font-variant-numeric: tabular-nums;
	font-weight: 700;
}

.py-factory__intro {
	flex: 0 0 auto;
	padding: 16px clamp(16px, 3vw, 40px) 8px;
	direction: rtl;
	text-align: center;
}

.py-factory__headline {
	margin: 0;
	font-family: "Ray", Tahoma, sans-serif;
	font-size: clamp(26px, 3vw, 42px);
	font-weight: 800;
	line-height: 1.35;
}

.py-factory__lead {
	width: min(760px, 100%);
	margin: 10px auto 0;
	font-family: "Ray", Tahoma, sans-serif;
	font-size: 15px;
	line-height: 1.9;
}

.py-factory__viewport {
	position: relative;
	flex: 1 1 auto;
	min-height: 0;
	overflow: hidden;
	direction: ltr;
}

.py-factory__track {
	display: flex;
	align-items: center;
	height: 100%;
	padding: 0 48px;
	box-sizing: border-box;
	will-change: transform;
}

.py-factory__photo {
	flex: 0 0 300px;
	width: 300px;
	height: min(340px, 42vh);
	margin: 0;
	overflow: hidden;
	border-radius: 22px;
	background: #f3f3f3;
}

.py-factory__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.py-factory__plot {
	position: relative;
	flex: 0 0 auto;
	width: 2360px;
	height: min(100%, 460px);
	margin-left: 36px;
}

.py-factory__axis {
	position: absolute;
	top: 50%;
	right: 40px;
	left: 0;
	height: 1px;
	background: #000;
}

.py-factory__mark,
.py-factory__step {
	position: absolute;
	top: 0;
	bottom: 0;
}

.py-factory__mark {
	left: 0;
	width: 180px;
}

.py-factory__dot,
.py-factory__node {
	position: absolute;
	top: 50%;
	left: 0;
	width: 10px;
	height: 10px;
	margin: -5px 0 0 -5px;
	border-radius: 50%;
	background: #000;
}

.py-factory__mark-title {
	position: absolute;
	bottom: calc(50% + 18px);
	left: 16px;
	margin: 0;
	font-family: "Ray", Tahoma, sans-serif;
	font-size: 22px;
	font-weight: 800;
	line-height: 1.4;
	white-space: nowrap;
	direction: rtl;
}

.py-factory__step {
	left: var(--x);
	width: 230px;
}

.py-factory__stem {
	position: absolute;
	top: 50%;
	left: 0;
	width: 1px;
	height: 36px;
	background: #000;
}

.py-factory__step.is-up .py-factory__stem {
	bottom: 50%;
	top: auto;
}

.py-factory__copy {
	position: absolute;
	left: 16px;
	width: 214px;
	direction: rtl;
	text-align: right;
}

.py-factory__step.is-up .py-factory__copy {
	bottom: calc(50% + 22px);
}

.py-factory__step.is-down .py-factory__copy {
	top: calc(50% + 22px);
}

.py-factory__copy h3 {
	margin: 0 0 6px;
	font-family: "Ray", Tahoma, sans-serif;
	font-size: 16px;
	font-weight: 800;
	line-height: 1.45;
}

.py-factory__copy p {
	margin: 0;
	font-family: "Ray", Tahoma, sans-serif;
	font-size: 13px;
	line-height: 1.75;
}

@media (max-width: 767px) {
	.py-factory__pin {
		position: relative;
		top: auto;
		height: auto;
		overflow: visible;
	}

	.py-factory__rail {
		flex-basis: 48px;
		height: 48px;
		padding: 0 16px;
	}

	.py-factory__rail-title {
		font-size: 13px;
	}

	.py-factory__headline {
		font-size: 26px;
	}

	.py-factory__lead {
		font-size: 14px;
	}

	.py-factory__viewport {
		height: 520px;
		overflow-x: auto;
		overflow-y: hidden;
	}

	.py-factory__photo {
		flex-basis: 220px;
		width: 220px;
		height: 240px;
		border-radius: 16px;
	}

	.py-factory__plot {
		width: 2100px;
		height: 460px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.py-factory__pin {
		position: relative;
		top: auto;
		height: auto;
	}

	.py-factory__viewport {
		height: 520px;
		overflow-x: auto;
	}
}
