/* Scroll position controls short, restrained motion; content is always readable. */
.milestone-motion .pathway article{--milestone-progress:1;--milestone-offset:0px;opacity:1!important;transform:none!important;transition:none!important}
.milestone-motion .pathway article:after{content:'';position:absolute;top:-1px;left:0;width:100%;height:2px;background:linear-gradient(90deg,#eea48d,#b6dcff);transform:scaleX(var(--milestone-progress));transform-origin:left;box-shadow:0 0 10px #bee3ff55;pointer-events:none}
.milestone-motion .pathway article:before{transition:box-shadow .3s,background .3s;z-index:1}
.milestone-motion .pathway article.milestone-lit:before{background:#ffd3b9;box-shadow:0 0 0 5px #f3b9a51a,0 0 18px #f7b59c88}
.milestone-motion .pathway article>*{transform:translateY(var(--milestone-offset));opacity:calc(.72 + var(--milestone-progress)*.28)}
.milestone-motion .pathway article h3{transition:color .3s}.milestone-motion .pathway article.milestone-lit h3{color:#fff}
.milestone-motion .diploma.scroll-surface{opacity:1!important;transform:translateY(var(--diploma-lift,0px))!important;transition:box-shadow .35s,border-color .35s;box-shadow:0 18px 40px #082d5826,inset 0 1px 0 #ffffff44;border-color:rgba(198,226,255,calc(.25 + var(--diploma-glow,1)*.3))}
@media(prefers-reduced-motion:reduce){.milestone-motion .pathway article>*{transform:none!important;opacity:1}.milestone-motion .pathway article:after{transform:none}.milestone-motion .pathway article:before,.milestone-motion .pathway article h3{transition:none}.milestone-motion .diploma.scroll-surface{transform:none!important;transition:none}}
/* Bright milestone stars, illuminated by the existing scroll controller. */
.pathway article:before,.milestone-motion .pathway article:before,.milestone-motion .pathway article.milestone-lit:before{content:'✦';top:-17px;left:-5px;width:28px;height:32px;line-height:32px;text-align:center;font-size:30px;border-radius:0;background:transparent;box-shadow:none;color:#fff1bd;text-shadow:0 0 8px #ffd87c,0 0 18px #ffdf9b99;z-index:2;transition:color .3s,text-shadow .3s}
.milestone-motion .pathway article.milestone-lit:before{color:#fffdf1;text-shadow:0 0 5px #fff,0 0 13px #ffe29b,0 0 26px #ffc76b}
