.secho-history {
	--history-axis: 21px;
	--history-start: 28px;
	position: relative;
	width: 100%;
	max-width: none;
	margin: 44px auto 64px;
	isolation: isolate;
}

.secho-history .secho-history__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.secho-history__rail {
	position: absolute;
	z-index: 1;
	pointer-events: none;
	top: var(--history-start);
	bottom: 0;
	left: var(--history-axis);
	width: 2px;
	background: repeating-linear-gradient(to bottom, rgba(247, 243, 238, .2) 0 7px, transparent 7px 14px);
}

.secho-history__progress {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: var(--secho-orange);
	transform: scaleY(0);
	transform-origin: top;
}

.secho-history__cursor {
	display: none;
	position: sticky;
	top: calc(var(--history-reading-line, 34vh) - var(--history-cursor-size) / 2);
	--history-cursor-size: 40px;
	align-items: center;
	justify-content: center;
	width: var(--history-cursor-size);
	height: var(--history-cursor-size);
	margin-top: calc(var(--history-cursor-size) / -2);
	margin-bottom: calc(var(--history-cursor-size) / -2);
	margin-left: calc(1px - var(--history-cursor-size) / 2);
	border-radius: 50%;
	background: linear-gradient(145deg, var(--secho-orange-light), var(--secho-orange-dark));
	box-shadow: 0 0 0 5px rgba(255, 105, 55, .08), 0 4px 24px rgba(255, 105, 55, .22);
	transform: translateZ(0);
}

.secho-history .secho-history__cursor img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	border-radius: 0;
	transform: rotate(90deg);
}

.secho-history.is-enhanced .secho-history__cursor { display: flex; }

.secho-history .secho-history__item {
	position: relative;
	margin: 0;
	padding: 0 0 54px 76px;
}

.secho-history .secho-history__item:last-child { padding-bottom: 0; }

.secho-history__dot {
	position: absolute;
	top: var(--history-start);
	left: calc(var(--history-axis) - 6px);
	width: 14px;
	height: 14px;
	margin-top: -7px;
	border: 2px solid var(--secho-orange);
	border-radius: 50%;
	background: var(--secho-bg);
	transition: background-color .35s ease, box-shadow .5s ease;
}

.secho-history__item.is-past .secho-history__dot { background: var(--secho-orange); }

.secho-history p.secho-history__year {
	margin: 0 0 18px;
	color: var(--secho-cream);
	font-size: clamp(26px, 3.4vw, 42px);
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -.03em;
	transition: color .5s ease;
}

.secho-history__card {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	padding: clamp(22px, 3vw, 38px);
	border: 1px solid var(--secho-line);
	border-radius: 22px;
	background: linear-gradient(145deg, rgba(19, 26, 41, .64) 0%, rgba(21, 27, 41, .48) 55%, rgba(108, 57, 39, .36) 100%);
	transition: border-color .6s ease, box-shadow .6s ease;
}

.secho-history__card::before {
	position: absolute;
	z-index: -1;
	pointer-events: none;
	content: "";
}

.secho-history__card::before {
	inset: 0;
	background: radial-gradient(ellipse at 100% 100%, rgba(255, 105, 55, .16), transparent 68%);
	opacity: 0;
	transform: translateX(12%);
	transition: opacity .9s ease-in-out, transform 1.4s cubic-bezier(.22, 1, .36, 1);
}

.secho-history__item.is-active .secho-history__card {
	border-color: rgba(255, 105, 55, .55);
	box-shadow: 0 12px 42px -24px rgba(255, 105, 55, .25);
}
.secho-history__item.is-active .secho-history__card::before {
	opacity: 1;
	transform: translateX(0);
}
.secho-history__item.is-active .secho-history__dot { box-shadow: 0 0 0 5px rgba(255, 105, 55, .1); }
.secho-history__item.is-active .secho-history__year { color: var(--secho-orange-light); }

/* Only enhanced timelines reveal content; without JavaScript everything stays visible. */
.secho-history.has-reveal .secho-history__item > article {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity .75s ease, transform .9s cubic-bezier(.22, 1, .36, 1);
	transition-delay: var(--history-reveal-delay, 0ms);
}
.secho-history.has-reveal .secho-history__item.is-revealed > article,
.secho-history.has-reveal .secho-history__item:focus-within > article {
	opacity: 1;
	transform: none;
}

.secho-history .secho-history__card h2 {
	margin: 0 0 16px;
	color: var(--secho-text);
	font-size: clamp(21px, 2.3vw, 28px);
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: -.02em;
}

.secho-history__text {
	color: var(--secho-muted);
	font-size: 17px;
	line-height: 1.8;
	overflow-wrap: anywhere;
}
.secho-history .secho-history__text p { margin: 0 0 1em; }
.secho-history .secho-history__text > :last-child { margin-bottom: 0; }

@media (max-width: 600px) {
	.secho-history { --history-axis: 13px; --history-start: 18px; margin-block: 30px 44px; }
	.secho-history .secho-history__item { padding-left: 44px; padding-bottom: 36px; }
	.secho-history__cursor { --history-cursor-size: 32px; }
	.secho-history__card { padding: 22px 20px; border-radius: 18px; }
	.secho-history__text { font-size: 16px; line-height: 1.7; }
}

@media (prefers-reduced-motion: reduce) {
	.secho-history *, .secho-history *::before, .secho-history *::after { transition: none !important; animation: none !important; }
	.secho-history.has-reveal .secho-history__item > article { opacity: 1; transform: none; }
	.secho-history.is-enhanced .secho-history__cursor { display: none; }
}

@media print {
	.secho-history__rail, .secho-history__dot { display: none; }
	.secho-history .secho-history__item { padding-left: 0; break-inside: avoid; }
	.secho-history__card { background: none; border-color: #aaa; }
	.secho-history__card::before { display: none; }
	.secho-history.has-reveal .secho-history__item > article { opacity: 1; transform: none; }
	.secho-history .secho-history__year, .secho-history .secho-history__card h2, .secho-history__text { color: #000; }
}
