U.S. equities extended their months-long advance on Thursday, with the S&P 500 rising to an intraday high around 6,137—just 10 points shy of the 6,147 record set on Feb. 19. The benchmark gauge briefly traded in record territory late in the session, positioning it to notch a new all-time closing high if gains hold into the bell. Gains were broad-based, led by materials and financial shares, underscoring investor confidence midway through a year marked by resilient corporate earnings and easing concerns about a hard economic landing. The upbeat tone persisted even as Micron Technology slipped roughly 2.4% after initially rallying on stronger-than-expected quarterly results.