/* Tracking: form left, example timeline right. Timeline fills when revealed. */
.tracking { background: var(--ink); }
.tracking__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.tracking__form { margin-top: 28px; max-width: 34rem; }
.tracking__help { margin-top: 14px; font-size: 14px; color: var(--paper-faint); }
.tracking__help a { color: var(--paper); border-bottom: 1px solid var(--blue-soft); }

.timeline {
	position: relative; padding: clamp(22px, 3vw, 32px);
	border-radius: 28px; border: 1px solid var(--line-strong);
	background: linear-gradient(180deg, rgba(238, 241, 248, .045), rgba(238, 241, 248, .015));
	box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.timeline__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.timeline__head > div { display: grid; gap: 4px; }
.timeline__k { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--paper-faint); }
.timeline__id { font: 500 13px var(--mono); letter-spacing: .04em; color: var(--blue-soft); }
.timeline__state {
	display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
	font-size: 12.5px; font-weight: 600; color: var(--amber); background: rgba(255, 176, 84, .08); border: 1px solid rgba(255, 176, 84, .25);
}
.timeline__state i { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 8px var(--amber); }

.timeline__list { --row: 46px; position: relative; margin-top: 22px; }
.timeline__list::before, .timeline__list::after { /* track + progress */
	content: ""; position: absolute; left: 7px; top: calc(var(--row) / 2); width: 1px;
	height: calc(var(--total) * var(--row));
}
.timeline__list::before { background: var(--line-strong); }
.timeline__list::after {
	background: linear-gradient(180deg, var(--blue-soft), var(--amber));
	transform-origin: top; transform: scaleY(calc(var(--done) / var(--total)));
}
.timeline__list li { position: relative; display: flex; align-items: center; gap: 18px; height: var(--row); color: var(--paper-faint); }
.timeline__dot {
	position: relative; z-index: 1; flex: none; width: 15px; height: 15px; border-radius: 50%;
	background: var(--ink-3); border: 1px solid var(--line-strong);
}
.timeline__list li.is-done { color: var(--paper-dim); }
.timeline__list li.is-done .timeline__dot { background: var(--blue-soft); border-color: var(--blue-soft); box-shadow: inset 0 0 0 4px var(--ink-3); }
.timeline__list li.is-now { color: var(--paper); font-weight: 600; }
.timeline__list li.is-now .timeline__dot { background: var(--amber); border-color: var(--amber); box-shadow: 0 0 0 5px rgba(255, 176, 84, .15), 0 0 14px rgba(255, 176, 84, .6); }
.timeline__list li.is-now .timeline__dot::after {
	content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--amber);
	animation: ping 2.6s var(--ease) infinite;
}

/* reveal: progress grows, then steps light in order */
@media (prefers-reduced-motion: no-preference) {
	html.has-reveal .timeline:not(.is-in) .timeline__list::after { transform: scaleY(0); }
	.timeline.is-in .timeline__list::after { transition: transform 1.8s var(--ease-io) .4s; }
	html.has-reveal .timeline:not(.is-in) .timeline__list li { opacity: .35; }
	.timeline.is-in .timeline__list li { transition: opacity .6s var(--ease) calc(.4s + var(--i) * .25s); }
}

@media (max-width: 899px) {
	.tracking__inner { grid-template-columns: 1fr; }
}
@media (max-width: 479px) {
	.timeline__head { flex-direction: column; }
	.track-form--lg { height: 58px; }
	.track-form--lg button { padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
	.timeline__list li.is-now .timeline__dot::after { animation: none; opacity: 0; }
}
