.simo-timeline {
	--st-accent: #eb655c;
	--st-accent-2: #f39a67;
	--st-card-bg: #fff8f3;
	--st-year-bg: #fff;
	--st-text: #28231f;
	--st-item-min: 230px;
	--st-content-gap: 48px;
	color: var(--st-text);
	width: 100%;
}

.simo-timeline,
.simo-timeline * {
	box-sizing: border-box;
}

.simo-timeline__heading {
	color: var(--st-accent);
	font-size: clamp(2rem, 5vw, 4.25rem);
	font-weight: 700;
	line-height: 1.05;
	margin: 0 0 34px;
	text-align: center;
}

.simo-timeline__scroll {
	overflow-x: auto;
	overflow-y: hidden;
	/*padding: 8px 2px 18px;*/
	scrollbar-color: color-mix(in srgb, var(--st-accent) 55%, transparent) transparent;
	scrollbar-width: thin;
}

.simo-timeline__scroll:focus-visible {
	outline: 2px solid var(--st-accent);
	outline-offset: 4px;
}

.simo-timeline__stage {
	min-width: max(100%, calc(var(--st-items) * var(--st-item-min)));
	position: relative;
}

.simo-timeline__rail {
	background: linear-gradient(90deg, var(--st-accent-2), var(--st-accent));
	border-radius: 999px 0 0 999px;
	box-shadow: 0 10px 30px color-mix(in srgb, var(--st-accent) 24%, transparent);
	height: 22px;
	left: 16px;
	position: absolute;
	right: 34px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 0;
}

.simo-timeline__rail::before {
	background: rgba(255, 255, 255, 0.2);
	border-radius: inherit;
	content: "";
	height: 5px;
	left: 18px;
	position: absolute;
	right: 8px;
	top: 4px;
}

.simo-timeline__rail::after {
	border-bottom: 34px solid transparent;
	border-left: 42px solid var(--st-accent);
	border-top: 34px solid transparent;
	content: "";
	position: absolute;
	right: -34px;
	top: 50%;
	transform: translateY(-50%);
}

.simo-timeline__list {
	display: grid;
	grid-template-columns: repeat(var(--st-items), minmax(var(--st-item-min), 1fr));
	list-style: none;
	margin: 0;
	min-height: 460px;
	padding: 0 24px;
	position: relative;
	z-index: 1;
}

.simo-timeline__item {
	display: grid;
	grid-template-rows: 1fr 82px 1fr;
	min-width: 0;
	padding-inline: 12px;
	position: relative;
}

.simo-timeline__item::before {
	background: #4B67AD;
	content: "";
	left: 50%;
	position: absolute;
	transform: translateX(-50%);
	width: 2px;
	z-index: -1;
}

.simo-timeline__item--top::before {
	bottom: 50%;
	height: var(--st-content-gap);
}

.simo-timeline__item--bottom::before {
	height: var(--st-content-gap);
	top: 50%;
}

.simo-timeline__node {
	align-items: center;
	display: flex;
	grid-row: 2;
	justify-content: center;
	position: relative;
	z-index: 2;
}

.simo-timeline__dot {
	background: var(--st-year-bg);
	border: 4px solid var(--st-accent);
	border-radius: 50%;
	box-shadow: 0 0 0 6px color-mix(in srgb, var(--st-accent) 16%, transparent);
	height: 18px;
	left: 50%;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 18px;
}

.simo-timeline__year {
	background: var(--st-year-bg);
	border: 1px solid color-mix(in srgb, var(--st-accent) 38%, transparent);
	border-radius: 14px;
	box-shadow: 0 8px 24px color-mix(in srgb, var(--st-accent) 18%, transparent);
	color: var(--st-text);
	display: inline-flex;
	font-size: 1.05rem;
	font-weight: 700;
	justify-content: center;
	line-height: 1;
	min-width: 108px;
	padding: 14px 18px;
	position: relative;
	white-space: nowrap;
	z-index: 2;
}

.simo-timeline__card {
	align-self: start;
	background:
		linear-gradient(var(--st-card-bg), var(--st-card-bg)) padding-box,
		linear-gradient(135deg, color-mix(in srgb, var(--st-accent) 65%, white), transparent 72%) border-box;
	border: 1px solid transparent;
	border-radius: 20px;
	box-shadow: 0 18px 48px rgba(65, 35, 25, 0.1);
	margin: 0;
	max-width: 330px;
	padding: 24px 22px;
	position: relative;
	text-align: center;
	width: 100%;
}

.simo-timeline__card::after {
	background: #F76E53;
	border-radius: 999px;
	content: "";
	height: 4px;
	left: 22px;
	position: absolute;
	right: 22px;
	top: 0;
	transform: translateY(-50%);
}

.simo-timeline__item--top .simo-timeline__card {
	align-self: end;
	grid-row: 1;
	justify-self: center;
	margin-bottom: var(--st-content-gap);
}

.simo-timeline__item--bottom .simo-timeline__card {
	align-self: start;
	grid-row: 3;
	justify-self: center;
	margin-top: var(--st-content-gap);
}

.simo-timeline__card-title {
	color: var(--st-text);
	font-size: clamp(1rem, 1.5vw, 1.18rem);
	font-weight: 500;
	line-height: 1.45;
	margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
	.simo-timeline__card,
	.simo-timeline__year {
		transition: transform 180ms ease, box-shadow 180ms ease;
	}

	.simo-timeline__item:hover .simo-timeline__card {
		box-shadow: 0 22px 56px rgba(65, 35, 25, 0.15);
		transform: translateY(-4px);
	}

	.simo-timeline__item:hover .simo-timeline__year {
		transform: scale(1.04);
	}
}

@media (max-width: 1024px) {
	.simo-timeline__scroll {
		overflow: visible;
		padding: 8px 0 0;
	}

	.simo-timeline__stage {
		min-width: 0;
		padding-bottom: 26px;
		position: relative;
	}

	.simo-timeline__rail {
		border-radius: 999px;
		bottom: 18px;
		height: auto;
		left: 18px;
		right: auto;
		top: 8px;
		transform: none;
		width: 5px;
	}

	.simo-timeline__rail::before {
		display: none;
	}

	.simo-timeline__rail::after {
		border-left: 12px solid transparent;
		border-right: 12px solid transparent;
		border-top: 16px solid var(--st-accent);
		border-bottom: 0;
		bottom: -12px;
		left: 50%;
		right: auto;
		top: auto;
		transform: translateX(-50%);
	}

	.simo-timeline__list {
		display: flex;
		flex-direction: column;
		gap: 28px;
		min-height: 0;
		padding: 0 0 0 56px;
	}

	.simo-timeline__item {
		display: flex;
		flex-direction: column;
		padding: 0;
	}

	.simo-timeline__item::before {
		display: none;
	}

	.simo-timeline__node {
		align-items: center;
		align-self: flex-start;
		display: flex;
		justify-content: flex-start;
		margin: 0 0 12px;
		min-height: 44px;
		position: relative;
	}

	.simo-timeline__node::before {
		background: #4B67AD;
		content: "";
		height: 2px;
		left: -38px;
		position: absolute;
		top: 50%;
		width: 38px;
	}

	.simo-timeline__dot {
		height: 16px;
		left: -38px;
		top: 50%;
		width: 16px;
	}

	.simo-timeline__year {
		min-width: 0;
		padding: 12px 16px;
	}

	.simo-timeline__item--top .simo-timeline__card,
	.simo-timeline__item--bottom .simo-timeline__card {
		align-self: stretch;
		margin: 0;
		max-width: none;
		text-align: left;
	}
}

@media (max-width: 480px) {
	.simo-timeline__heading {
		font-size: clamp(2rem, 11vw, 3rem);
	}

	.simo-timeline__list {
		padding-left: 48px;
	}

	.simo-timeline__rail {
		left: 14px;
	}

	.simo-timeline__node::before {
		left: -34px;
		width: 34px;
	}

	.simo-timeline__dot {
		left: -34px;
	}

	.simo-timeline__card {
		padding: 20px 18px;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.simo-timeline__item--top .simo-timeline__card {
		transform: translateY(7px);
	}

	.simo-timeline__item--top:hover .simo-timeline__card {
		transform: translateY(2px);
	}

	.simo-timeline__item--bottom:hover .simo-timeline__card {
		transform: translateY(-4px);
	}
}
