/* ─── Experience section ──────────────────────────────────── */
.experience {
	padding: 3rem 2rem 2.5rem;
	display: flex;
	justify-content: center;
}

.experience-inner {
	max-width: 900px;
	width: 100%;
}

.exp-timeline,
.exp-show-all {
	max-width: 720px;
}

/* ─── Timeline ────────────────────────────────────────────── */
.exp-timeline {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.exp-step {
	display: flex;
	gap: 1.6rem;
	opacity: 0;
	transform: translateY(16px);
	overflow: hidden;
	transition: opacity 0.5s ease,
	transform 0.5s ease,
	max-height 0.5s ease,
	margin-bottom 0.5s ease,
	filter 0.3s ease;
}

.exp-step.visible {
	opacity: 1;
	transform: translateY(0);
}

.exp-step:nth-child(1) {
	transition-delay: 0s;
}

.exp-step:nth-child(2) {
	transition-delay: 0.1s;
}

.exp-step:nth-child(3) {
	transition-delay: 0.2s;
}

.exp-step:nth-child(4) {
	transition-delay: 0.3s;
}

.exp-step:nth-child(5) {
	transition-delay: 0.4s;
}

/* ── Нерелевантный — уезжает вправо и схлопывается ─────── */
.exp-step.exp-dim {
	opacity: 0 !important;
	transform: translateX(60px) !important;
	max-height: 0 !important;
	margin-bottom: 0 !important;
	pointer-events: none;
}

.exp-step.exp-dim .exp-connector {
	opacity: 0;
}

/* ── Релевантный — подсвечен ────────────────────────────── */
.exp-step.exp-highlight .exp-num {
	color: var(--accent);
	opacity: 1;
}

.exp-step.exp-highlight .exp-connector {
	background: linear-gradient(
			to bottom,
			rgba(91, 44, 44, 0.5),
			rgba(91, 44, 44, 0.15)
	);
}

/* ── Aside ────────────────────────────────────────────────── */
.exp-step-aside {
	display: flex;
	flex-direction: column;
	align-items: center;
	flex-shrink: 0;
	width: 2rem;
	padding-top: 0.1rem;
}

.exp-num {
	font-family: 'JetBrains Mono', monospace;
	font-size: 0.65rem;
	font-weight: 600;
	color: rgba(91, 44, 44, 0.35);
	letter-spacing: 0.06em;
	transition: color 0.3s ease, opacity 0.3s ease;
}

.exp-connector {
	width: 1px;
	flex: 1;
	min-height: 2rem;
	margin: 0.5rem 0;
	background: linear-gradient(
			to bottom,
			rgba(91, 44, 44, 0.2),
			rgba(91, 44, 44, 0.05)
	);
	transition: background 0.3s ease, opacity 0.3s ease;
}

/* ── Body ─────────────────────────────────────────────────── */
.exp-step-body {
	padding-bottom: 2.8rem;
	flex: 1;
	/* Без border-left — он вызывал артефакт при скрытии */
}

.exp-period {
	font-family: 'JetBrains Mono', monospace;
	font-size: 0.65rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(91, 44, 44, 0.5);
	margin-bottom: 0.35rem;
}

.exp-role {
	font-size: 1rem;
	font-weight: 700;
	color: var(--text);
	letter-spacing: -0.01em;
	margin-bottom: 1rem;
}

.exp-list {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	margin-bottom: 1rem;
}

.exp-list li {
	font-size: 0.8rem;
	color: var(--muted);
	line-height: 1.5;
	padding-left: 1rem;
	position: relative;
}

.exp-list li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 4px;
	height: 1px;
	background: rgba(91, 44, 44, 0.35);
}

.exp-transition {
	font-size: 0.78rem;
	color: var(--muted);
	font-style: italic;
	margin-bottom: 0.8rem;
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
}

.exp-arrow {
	color: var(--accent);
	font-style: normal;
	flex-shrink: 0;
	opacity: 0.6;
}

/* ── Теги треков ──────────────────────────────────────────── */
.exp-tracks {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.exp-track-tag {
	font-family: 'JetBrains Mono', monospace;
	font-size: 0.6rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(91, 44, 44, 0.45);
	border: 1px solid rgba(91, 44, 44, 0.2);
	padding: 0.15rem 0.45rem;
	border-radius: 2px;
}

/* ── Mobile ───────────────────────────────────────────────── */
@media (max-width: 768px) {
	.experience {
		padding: 3rem 1.2rem 4rem;
	}

	.exp-step {
		gap: 1rem;
	}

	.exp-step-aside {
		width: 1.6rem;
	}

	.exp-role {
		font-size: 0.9rem;
	}

	.exp-step-body {
		padding-bottom: 2rem;
	}
}

/* ── Show all ─────────────────────────────────────────────── */
.exp-show-all {
	margin-top: 2rem;
	display: flex;
	justify-content: center;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.exp-show-all.visible {
	opacity: 1;
	transform: translateY(0);
}

.exp-show-all button {
	font-family: 'JetBrains Mono', monospace;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(91, 44, 44, 0.5);
	background: none;
	border: 1px solid rgba(91, 44, 44, 0.2);
	padding: 0.5rem 1.2rem;
	border-radius: 2px;
	cursor: pointer;
	transition: color 0.2s, border-color 0.2s;
}

.exp-show-all button:hover {
	color: var(--accent);
	border-color: var(--accent);
}