.timeline {
	background: var(--off-white);
	padding: 110px var(--page-px);
	color: var(--black);
	overflow: hidden;
}

/* ── Rail ── */

.timeline-rail-wrap {
	position: relative;
	overflow: hidden;
	height: 72px;
}

.timeline-rail-wrap::after {
	content: '';
	position: absolute;
	bottom: 7px;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(
		to right,
		var(--off-white) 0%,
		var(--gray-10) 12%,
		var(--gray-10) 88%,
		var(--off-white) 100%
	);
	pointer-events: none;
	z-index: 0;
}

.timeline-track {
	display: flex;
	align-items: flex-end;
	position: absolute;
	bottom: 0;
	left: 0;
}

.timeline-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 160px;
	flex-shrink: 0;
	cursor: pointer;
}

.timeline-step.active {
	cursor: default;
}

.timeline-year {
	font-family: 'Space Mono', monospace;
	font-size: 13px;
	color: var(--gray-20);
	margin-bottom: 12px;
	transition: color 0.1s;
}

.timeline-dot {
	width: 14px;
	height: 14px;
	border-radius: 0;
	border: none;
	background: var(--gray-10);
	position: relative;
	z-index: 1;
	transition: background 0.1s;
}

.timeline-step.active .timeline-year {
	color: var(--black);
	font-weight: 700;
}

.timeline-step.active .timeline-dot {
	background: var(--yellow);
}

/* ── Content card ── */

.timeline-card {
	margin-top: 48px;
	background: var(--white);
	display: flex;
}

.timeline-card-body {
	flex: 1;
	min-width: 0;
}

.timeline-panels {
	position: relative;
}

.timeline-panel {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	opacity: 0;
	pointer-events: none;
	padding: 40px;
}

.timeline-panel.active {
	pointer-events: auto;
}

.timeline-panel-title {
	font-family: 'Geist', sans-serif;
	font-size: 18px;
	font-weight: 600;
	letter-spacing: -0.01em;
	margin-bottom: 12px;
}

.timeline-panel-body {
	color: var(--gray-40);
	line-height: 1.65;
}

/* ── Images column ── */

.timeline-images {
	flex-shrink: 0;
	width: 40%;
	position: relative;
	overflow: hidden;
}

.timeline-image {
	position: absolute;
	inset: 0;
	opacity: 0;
	pointer-events: none;
}

.timeline-image.active {
	pointer-events: auto;
}

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

/* ── Navigation buttons ── */

.timeline-nav {
	display: flex;
	gap: 12px;
	padding: 0 40px 40px;
}

.timeline-btn {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid var(--gray-10);
	background: transparent;
	color: var(--gray-20);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.timeline-btn.is-active:hover {
	border-color: var(--yellow);
	background: var(--yellow);
	color: var(--black);
}

.timeline-btn:disabled {
	opacity: 0.35;
	cursor: default;
}

/* ── Responsive ── */

@media (max-width: 1023px) {
	.timeline {
		padding: 80px 40px;
	}

	.timeline-step {
		width: 120px;
	}
}

@media (max-width: 599px) {
	.timeline {
		padding: 64px clamp(18px, 5vw, 32px);
	}

	.timeline-step {
		width: 100px;
	}

	.timeline-card {
		flex-direction: column;
	}

	.timeline-images {
		width: 100%;
		height: 220px;
	}

	.timeline-panel {
		padding: 24px 24px 16px;
	}

	.timeline-nav {
		padding: 0 24px 24px;
	}
}
