Analysts project a 22% S&P 500 gain by 2027, fueled by AI adoption and a sustained earnings supercycle.