.epic-timeline {
	padding: clamp(5rem, 10vw, 8.75rem) 0;
	background: var(--epic-bg);
	color: var(--epic-white);
	font-family: var(--epic-font);
	overflow: hidden;
}

.epic-timeline__inner {
	width: min(100% - 2.5rem, var(--epic-container));
}

.epic-timeline__heading {
	margin: 0;
	color: var(--epic-white);
	max-width: 18ch;
}

.epic-timeline__list {
	display: flex;
	flex-direction: column;
	gap: clamp(2.5rem, 5vw, 4.5rem);
	width: 100%;
	position: relative;
}

.epic-timeline__connector {
	position: absolute;
	inset: 0;
	z-index: 0;
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
	pointer-events: none;
}

.epic-timeline__connector-track,
.epic-timeline__connector-path {
	fill: none;
	stroke: #ce351e;
	stroke-width: 3;
	stroke-linecap: round;
	stroke-linejoin: round;
	vector-effect: non-scaling-stroke;
}

.epic-timeline__connector-track {
	opacity: 0.16;
}

.epic-timeline__item {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 33px;
	position: relative;
	z-index: 1;
}

.epic-timeline__item:nth-child(even) {
	align-self: flex-end;
}

.epic-timeline__item:nth-child(odd) {
	align-self: flex-start;
}

.epic-timeline__number {
	position: relative;
	flex: 0 0 auto;
	will-change: opacity, transform;
	transform-origin: center center;
}

.epic-timeline__badge {
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
}

.epic-timeline__badge-ring,
.epic-timeline__badge-fill {
	transform-origin: center;
	transform-box: fill-box;
}

.epic-timeline__badge-fill {
	fill: #ce351e;
	opacity: 0;
}

.epic-timeline__badge-ring {
	fill: none;
	stroke: #ce351e;
	stroke-width: 3;
	stroke-linecap: round;
}

.epic-timeline:not([data-epic-timeline-init]) .epic-timeline__badge-fill,
.epic-timeline:not([data-epic-timeline-init]) .epic-timeline__number-value,
.epic-timeline[data-epic-timeline-static] .epic-timeline__badge-fill,
.epic-timeline[data-epic-timeline-static] .epic-timeline__number-value {
	opacity: 1;
}

.epic-timeline:not([data-epic-timeline-init]) .epic-timeline__badge-ring,
.epic-timeline[data-epic-timeline-static] .epic-timeline__badge-ring {
	opacity: 0;
}

.epic-timeline__number-value {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--epic-white);
	font-family: var(--epic-font-din);
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.05em;
	opacity: 0;
}

.epic-timeline__text {
	margin: 0;
	color: var(--epic-white);
	font-size: 19px;
	font-weight: 400;
	line-height: 1.7;
	will-change: transform, opacity;
}

.epic-timeline__text > :first-child {
	margin-top: 0;
}

.epic-timeline__text > :last-child {
	margin-bottom: 0;
}

.epic-timeline__text p {
	margin: 0;
}

.epic-timeline__text strong,
.epic-timeline__text b {
	font-weight: 700;
	color: #bf3d29;
	text-transform: uppercase;
}

.epic-timeline[data-epic-timeline-static] .epic-timeline__item.is-active .epic-timeline__number,
.epic-timeline[data-epic-timeline-static] .epic-timeline__item.is-active .epic-timeline__text {
	opacity: 1;
}

@media (min-width: 992px) {
	.epic-timeline__list {
		margin-top: -54px;
	}

	.epic-timeline__heading {
		margin: 0 0 0 121px;
		letter-spacing: 2.1px;
	}

	.epic-timeline__item {
		width: 240px;
		margin-top: -120px;
	}

	.epic-timeline__item:nth-child(even) {
		margin-right: 120px;
		margin-left: 0;
	}

	.epic-timeline__item:nth-child(odd) {
		margin-left: 120px;
		margin-right: 0;
	}

	.epic-timeline__number {
		width: 120px;
		aspect-ratio: 1 / 1;
	}

	.epic-timeline__number-value {
		font-size: 50px;
		margin-top: 7px;
	}
}

@media screen and (min-width: 991px) and (max-width: 1200px) {
	.epic-timeline__list {
		margin-top: 110px;
	}
}

@media (max-width: 991px) {
	.epic-timeline__heading {
		margin-bottom: clamp(3rem, 6vw, 5rem);
	}

	.epic-timeline__item {
		flex-direction: row;
		align-items: flex-start;
		gap: clamp(1.25rem, 4vw, 2rem);
		width: 100%;
		max-width: none;
		align-self: stretch;
	}

	.epic-timeline__item:nth-child(even),
	.epic-timeline__item:nth-child(odd) {
		align-self: stretch;
		margin-left: 0;
		margin-right: 0;
	}

	.epic-timeline__number {
		width: 80px;
		aspect-ratio: 1 / 1;
	}

	.epic-timeline__number-value {
		font-size: 24px;
	}

	.epic-timeline__text {
		flex: 1 1 auto;
		min-width: 0;
	}
}

.epic-timeline[data-epic-timeline-static] .epic-timeline__connector {
	display: none;
}

@media (prefers-reduced-motion: reduce) {
	html:not(.epic-motion-on) .epic-timeline__connector {
		display: none;
	}

	html:not(.epic-motion-on) .epic-timeline__number,
	html:not(.epic-motion-on) .epic-timeline__text {
		will-change: auto;
		opacity: 1 !important;
		transform: none !important;
	}

	html:not(.epic-motion-on) .epic-timeline__badge-fill,
	html:not(.epic-motion-on) .epic-timeline__number-value {
		opacity: 1 !important;
	}
}

@media (max-width: 600px) {
	.epic-timeline {
		padding: 4rem 0;
	}

	.epic-timeline__heading {
		margin-bottom: 2.5rem;
		max-width: none;
		letter-spacing: normal;
	}

	.epic-timeline__heading.h1 br {
		display: none;
	}

	.epic-timeline__list {
		gap: 2.5rem;
	}

	.epic-timeline__item {
		margin-right: 0;
		margin-left: 0;
	}

	.epic-timeline__number {
		width: 68px;
	}

	.epic-timeline__number-value {
		font-size: 20px;
	}

	.epic-timeline__text {
		font-size: 16px;
		line-height: 1.7;
	}
}
