/* Company History Timeline — frontend */

.cht {
	--cht-pad: clamp(20px, 4vw, 56px);
	background: var(--cht-bg, #0B0E13);
	color: var(--cht-text, #fff);
	font-family: inherit;
}

.cht-inner {
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
	padding-left: var(--cht-pad);
	padding-right: var(--cht-pad);
}

.cht-hero {
	padding: clamp(52px, 7vw, 92px) 0 clamp(12px, 2vw, 28px);
}

.cht-hero__label {
	margin: 0 0 14px;
	color: var(--cht-accent, #8AB4F8);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.cht-hero__title {
	margin: 0 0 18px;
	max-width: 14ch;
	color: var(--cht-text, #fff);
	font-size: clamp(34px, 4.6vw, 54px);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.03em;
}

.cht-hero__intro {
	margin: 0;
	max-width: 40em;
	color: var(--cht-muted, #C8D0DA);
	font-size: 16px;
	line-height: 1.7;
}

.cht-empty {
	margin: 0;
	padding: 48px 0 80px;
	color: var(--cht-muted, #C8D0DA);
}

/* Track */
.cht-track {
	position: relative;
	padding: clamp(28px, 4vw, 56px) 0 clamp(80px, 10vw, 140px);
}

.cht-track__layout {
	display: grid;
	grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
	gap: clamp(28px, 4vw, 72px);
	align-items: start;
}

.cht-sticky {
	position: sticky;
	top: 28%;
	padding-top: 8px;
	pointer-events: none;
}

.cht-sticky__kicker {
	margin: 0 0 6px;
	color: var(--cht-accent, #8AB4F8);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.cht-sticky__year {
	margin: 0;
	color: var(--cht-text, #fff);
	font-size: clamp(42px, 5vw, 72px);
	font-weight: 700;
	line-height: 0.95;
	letter-spacing: -0.04em;
	font-variant-numeric: tabular-nums;
}

.cht-sticky__title {
	margin: 14px 0 0;
	max-width: 16em;
	color: var(--cht-muted, #C8D0DA);
	font-size: 14px;
	line-height: 1.45;
}

.cht-flow {
	position: relative;
	padding-left: 36px;
}

.cht-spine {
	position: absolute;
	top: 8px;
	bottom: 8px;
	left: 7px;
	width: 1px;
	background: rgba(255, 255, 255, 0.12);
	overflow: hidden;
}

.cht-spine__fill {
	display: block;
	width: 100%;
	height: 0;
	background: var(--cht-accent, #8AB4F8);
}

.cht-entries {
	display: flex;
	flex-direction: column;
	gap: clamp(48px, 6vw, 96px);
}

.cht-entry {
	position: relative;
	opacity: 0.42;
	transform: translateY(12px);
	transition: opacity 0.45s ease, transform 0.45s ease;
}

.cht-entry.is-active,
.cht-entry.is-seen {
	opacity: 1;
	transform: none;
}

.cht-entry__dot {
	position: absolute;
	top: 10px;
	left: -36px;
	z-index: 1;
	width: 15px;
	height: 15px;
	margin-left: 0;
	border: 2px solid var(--cht-accent, #8AB4F8);
	border-radius: 50%;
	background: var(--cht-bg, #0B0E13);
	transform: translateX(-7px);
	box-shadow: 0 0 0 0 rgba(138, 180, 248, 0.35);
	transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.cht-entry.is-active .cht-entry__dot {
	background: var(--cht-accent, #8AB4F8);
	box-shadow: 0 0 0 8px rgba(138, 180, 248, 0.16);
}

.cht-entry__year {
	margin: 0 0 10px;
	color: var(--cht-accent, #8AB4F8);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.cht-entry__subtitle {
	margin: 0 0 16px;
	color: var(--cht-muted, #C8D0DA);
	font-size: 15px;
	line-height: 1.5;
}

/* Milestone card */
.cht-card {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: clamp(20px, 3vw, 48px);
	align-items: start;
}

.cht-entry:nth-child(even) .cht-card {
	grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.cht-entry:nth-child(even) .cht-card__copy {
	order: 2;
}

.cht-entry:nth-child(even) .cht-card__media {
	order: 1;
}

.cht-card--text {
	grid-template-columns: minmax(0, 1fr);
}

.cht-card__title {
	margin: 0 0 10px;
	color: var(--cht-text, #fff);
	font-size: clamp(24px, 2.6vw, 34px);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.03em;
}

.cht-card__body {
	color: var(--cht-muted, #C8D0DA);
	font-size: 16px;
	line-height: 1.75;
}

.cht-card__body p {
	margin: 0 0 1em;
}

.cht-card__body p:last-child {
	margin-bottom: 0;
}

.cht-card__media {
	overflow: hidden;
	border-radius: 2px;
	background: rgba(255, 255, 255, 0.04);
}

.cht-card__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

/* Chapter heading */
.cht-chapter {
	padding: clamp(20px, 3vw, 40px) 0;
}

.cht-chapter__title {
	margin: 0;
	max-width: 16ch;
	color: var(--cht-text, #fff);
	font-size: clamp(32px, 4vw, 48px);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.03em;
}

.cht-entry--chapter .cht-entry__dot {
	top: 28px;
	width: 11px;
	height: 11px;
	transform: translateX(-5px);
}

@media (max-width: 900px) {
	.cht-track__layout {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.cht-sticky {
		position: sticky;
		top: 0;
		z-index: 4;
		display: flex;
		align-items: baseline;
		gap: 16px;
		padding: 12px 0 16px;
		margin: 0 0 28px;
		background: linear-gradient(to bottom, var(--cht-bg, #0B0E13) 70%, transparent);
		pointer-events: none;
	}

	.cht-sticky__year {
		font-size: clamp(32px, 8vw, 44px);
	}

	.cht-sticky__title {
		margin: 0;
		flex: 1;
	}

	.cht-sticky__kicker {
		display: none;
	}

	.cht-card,
	.cht-entry:nth-child(even) .cht-card {
		grid-template-columns: 1fr;
	}

	.cht-entry:nth-child(even) .cht-card__copy,
	.cht-entry:nth-child(even) .cht-card__media {
		order: unset;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cht-entry,
	.cht-entry__dot,
	.cht-spine__fill {
		transition: none;
	}

	.cht-entry {
		opacity: 1;
		transform: none;
	}
}
