/**
 * About page — timeline
 */

.mph-section--timeline {
	background: var(--mph-color-primary);
	color: #fff;
	padding: 88px 0;
}

.mph-section--timeline .mph-heading--light {
	color: #fff;
}

.mph-timeline {
	list-style: none;
	margin: 3rem 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	position: relative;
}

.mph-timeline::before {
	content: "";
	position: absolute;
	top: 28px;
	left: 8%;
	right: 8%;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(242, 189, 62, 0.55), transparent);
}

.mph-timeline__item {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 10px;
	opacity: 0;
	transform: translateY(16px);
	animation: mph-timeline-in 0.7s ease forwards;
	animation-delay: calc(0.12s * var(--mph-tl-i, 0));
}

.mph-timeline__icon {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(242, 189, 62, 0.12);
	border: 1px solid rgba(242, 189, 62, 0.55);
	color: var(--mph-color-accent);
	box-shadow: 0 0 0 8px rgba(7, 59, 45, 0.85);
}

.mph-timeline__year {
	margin-top: 6px;
	font-family: var(--mph-font-heading);
	font-size: 1.25rem;
	font-weight: 600;
	color: #fff;
}

.mph-timeline__title {
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--mph-color-accent);
}

.mph-timeline__text {
	margin: 0;
	max-width: 220px;
	font-size: 0.8125rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.78);
}

@keyframes mph-timeline-in {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.mph-timeline__item {
		opacity: 1;
		transform: none;
		animation: none;
	}
}

@media (max-width: 1024px) {
	.mph-timeline {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 36px 24px;
	}

	.mph-timeline::before {
		display: none;
	}
}

@media (max-width: 560px) {
	.mph-section--timeline {
		padding: 64px 0;
	}

	.mph-timeline {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.mph-timeline__item {
		align-items: flex-start;
		text-align: left;
		padding-left: 20px;
		border-left: 1px solid rgba(242, 189, 62, 0.35);
	}

	.mph-timeline__icon {
		position: absolute;
		left: -28px;
		width: 44px;
		height: 44px;
		box-shadow: 0 0 0 6px var(--mph-color-primary);
	}

	.mph-timeline__item {
		padding-left: 40px;
	}

	.mph-timeline__text {
		max-width: none;
	}
}
