/* ==========================================================================
   About: Our journey
   The glowing roadmap of milestones. HTML: template-parts/about/our-journey.php
   ========================================================================== */

.road__list { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 22px; }
.road__list::before { content: ""; position: absolute; top: 86px; left: 6%; right: calc(100% / var(--n, 4) / 2); height: 3px; border-radius: 3px; background: linear-gradient(90deg, #a78bfa, #22d3ee, #f472b6); box-shadow: 0 0 16px rgba(167, 139, 250, .6); }
.road__list::after { content: ""; position: absolute; top: 87px; right: 4%; width: calc(100% / var(--n, 4) / 2 + 2%); height: 0; border-top: 2px dashed rgba(245, 158, 11, .6); }
.road__stop { --rc: #a78bfa; position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.road__year { height: 52px; display: flex; align-items: flex-end; margin-bottom: 12px; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1; background: linear-gradient(120deg, #fff, var(--rc)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.road__node { position: relative; z-index: 1; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--rc); color: #0b0620; box-shadow: 0 0 0 7px var(--bg), 0 0 0 9px color-mix(in srgb, var(--rc) 45%, transparent), 0 0 30px var(--rc); transition: transform .5s var(--ease); }
.is-future .road__node { background: #120b30; color: var(--rc); border: 2px dashed var(--rc); }
.is-future .road__node::after { content: ""; position: absolute; inset: -12px; border-radius: 50%; border: 2px solid var(--rc); animation: ring 2.2s ease-out infinite; }
.road__card { position: relative; margin-top: 28px; width: 100%; padding: 22px 20px; border-radius: 20px; background: linear-gradient(165deg, color-mix(in srgb, var(--rc) 12%, rgba(255, 255, 255, .03)), rgba(255, 255, 255, .012)); border: 1px solid color-mix(in srgb, var(--rc) 30%, transparent); transition: transform .45s var(--ease), border-color .3s, box-shadow .45s; }
.road__card::before { content: ""; position: absolute; left: 50%; top: -28px; width: 2px; height: 28px; margin-left: -1px; background: linear-gradient(var(--rc), color-mix(in srgb, var(--rc) 20%, transparent)); }
.is-future .road__card { border-style: dashed; }
.road__badge { display: inline-block; margin-bottom: 10px; padding: 4px 11px; border-radius: 999px; background: color-mix(in srgb, var(--rc) 18%, transparent); border: 1px solid color-mix(in srgb, var(--rc) 50%, transparent); color: var(--rc); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.road__title { font-size: 1.08rem; line-height: 1.3; margin-bottom: 8px; }
.road__text { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.6; }
.road__stop:hover .road__card { transform: translateY(-6px); border-color: var(--rc); box-shadow: 0 24px 48px -24px var(--rc); }
.road__stop:hover .road__node { transform: scale(1.12) rotate(-12deg); }

@media (max-width: 900px) {
	.road__list { grid-template-columns: 1fr; gap: 20px; padding-left: 72px; }
	.road__list::before { top: 24px; bottom: 60px; left: 23px; right: auto; width: 3px; height: auto; background: linear-gradient(#a78bfa, #22d3ee, #f472b6); }
	.road__list::after { top: auto; bottom: 0; left: 24px; right: auto; width: 0; height: 60px; border-top: 0; border-left: 2px dashed rgba(245, 158, 11, .6); }
	.road__stop { align-items: flex-start; text-align: left; }
	.road__node { position: absolute; left: -72px; top: 0; }
	.road__year { height: auto; margin-bottom: 8px; font-size: 1.6rem; }
	.road__card { margin-top: 0; }
	.road__card::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.is-future .road__node::after { animation: none; }
}
