/* Zephyr Timeline: every rule is scoped to .zt-root so Flatsome styles and this block never collide. */
.zt-root {
	--zt-red: #D2232A;
	--zt-paper: #FFFFFF;
	--zt-slate: #626366;
	--zt-top: 0px;
	--zt-sbw: 0px;
	position: relative;
	font-family: inherit;
	color: var(--zt-paper);
	box-sizing: border-box;
}
.zt-root *, .zt-root *::before, .zt-root *::after { box-sizing: inherit; }

.zt-root.zt-fullbleed {
	width: calc(100vw - var(--zt-sbw));
	max-width: none;
	left: 50%;
	margin-left: calc((100vw - var(--zt-sbw)) / -2);
}

/* Plain list: shown when JavaScript or WebGL is unavailable, kept for screen readers otherwise */
.zt-root .zt-list {
	list-style: none; margin: 0; padding: 48px 24px 48px 56px;
	background: var(--zt-slate); position: relative;
}
.zt-root .zt-list::before { content: ""; position: absolute; left: 31px; top: 60px; bottom: 60px; width: 2px; background: var(--zt-red); }
.zt-root .zt-list li { margin: 0 0 40px; padding: 0; position: relative; }
.zt-root .zt-list li::before { content: ""; position: absolute; left: -33px; top: 14px; width: 14px; height: 14px; border-radius: 50%; background: var(--zt-red); border: 2px solid var(--zt-paper); }
.zt-root .zt-list-year { display: block; font-size: 48px; font-weight: 700; line-height: 1.1; }
.zt-root .zt-list-text { display: block; max-width: 34ch; font-size: 17px; line-height: 1.5; opacity: .85; }

.zt-root .zt-story { display: none; position: relative; }
.zt-root.zt-ready .zt-story { display: block; }
.zt-root.zt-ready .zt-list {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: 0;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.zt-root .zt-stage {
	position: -webkit-sticky; position: sticky;
	top: var(--zt-top);
	height: calc(100vh - var(--zt-top));
	height: calc(100svh - var(--zt-top));
	overflow: hidden;
	background: #C9D4DC;
}
.zt-root .zt-canvas { display: block; width: 100%; height: 100%; }
.zt-root .zt-scrim {
	position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(90deg, rgba(22,26,32,.62) 0%, rgba(22,26,32,.25) 38%, rgba(22,26,32,0) 60%);
}

/* Year rail */
.zt-root .zt-rail { position: absolute; left: clamp(24px, 4vw, 56px); top: 22%; bottom: 22%; width: 64px; margin: 0; }
.zt-root .zt-rail-track { position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: rgba(255,255,255,.35); }
.zt-root .zt-rail-fill { position: absolute; left: 0; top: 0; width: 100%; height: 0; background: var(--zt-red); }
.zt-root .zt-rail-list {
	list-style: none; margin: 0; padding: 0; height: 100%;
	display: flex; flex-direction: column; justify-content: space-between; position: relative;
}
.zt-root .zt-rail-list li { margin: 0; padding: 0; }
.zt-root .zt-rail button {
	all: unset;
	display: flex; align-items: center; gap: 10px; cursor: pointer;
	font-family: inherit; font-size: 13px; font-weight: 500; line-height: 1;
	color: rgba(255,255,255,.72); text-transform: none; letter-spacing: 0;
}
.zt-root .zt-rail button::before {
	content: ""; width: 16px; height: 16px; border-radius: 50%; flex: none;
	border: 2px solid var(--zt-paper); background: transparent; transition: background .2s, transform .2s, box-shadow .2s;
}
.zt-root .zt-rail button.zt-passed::before { background: var(--zt-red); }
.zt-root .zt-rail button[aria-current="step"] { color: var(--zt-paper); font-weight: 700; }
.zt-root .zt-rail button[aria-current="step"]::before { background: var(--zt-red); transform: scale(1.3); box-shadow: 0 0 0 6px rgba(210,35,42,.28); }
.zt-root .zt-rail button:focus-visible { outline: 2px solid var(--zt-paper); outline-offset: 4px; border-radius: 4px; }

/* Milestone card */
.zt-root .zt-card { position: absolute; left: calc(clamp(24px, 4vw, 56px) + 110px); bottom: 18%; max-width: 440px; color: var(--zt-paper); }
.zt-root .zt-year { font-size: clamp(64px, 9vw, 116px); font-weight: 700; line-height: .9; letter-spacing: -.02em; margin: 0; color: var(--zt-paper); }
.zt-root .zt-bar { display: block; width: 72px; height: 5px; background: var(--zt-red); margin: 18px 0 20px; }
.zt-root .zt-text { font-size: 18px; line-height: 1.5; margin: 0; max-width: 34ch; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.zt-root .zt-group { display: inline-block; margin-top: 16px; font-size: 14px; font-weight: 500; line-height: 1.2; padding: 6px 12px; border-radius: 999px; background: var(--zt-red); }
.zt-root .zt-group[hidden] { display: none; }
.zt-root .zt-fade { transition: opacity .35s ease, transform .35s ease; }
.zt-root .zt-card.zt-swap .zt-fade { opacity: 0; transform: translateY(8px); }

/* Narrow or portrait stage (set by script from the stage's own size) */
.zt-root.zt-narrow .zt-scrim { background: linear-gradient(180deg, rgba(22,26,32,.45) 0%, rgba(22,26,32,0) 22%, rgba(22,26,32,0) 45%, rgba(22,26,32,.72) 100%); }
.zt-root.zt-narrow .zt-rail { left: 20px; right: 20px; top: 20px; bottom: auto; width: auto; height: 44px; }
.zt-root.zt-narrow .zt-rail-track { left: 8px; right: 8px; top: 7px; bottom: auto; width: auto; height: 2px; }
.zt-root.zt-narrow .zt-rail-fill { height: 100%; width: 0; }
.zt-root.zt-narrow .zt-rail-list { flex-direction: row; height: auto; }
.zt-root.zt-narrow .zt-rail button { flex-direction: column; gap: 8px; font-size: 11px; }
.zt-root.zt-narrow .zt-card { left: 24px; right: 24px; bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }
.zt-root.zt-narrow .zt-year { font-size: 64px; }
.zt-root.zt-narrow .zt-text { font-size: 16px; }

@media (prefers-reduced-motion: reduce) {
	.zt-root .zt-fade, .zt-root .zt-rail button::before { transition: none; }
}
