US stocks closed mixed as investors weighed Middle East tensions and Iran peace talks. Inflation rose due to energy shocks, while Dow and S&P slipped but Nasdaq gained on tech strength. Despite volatility, all major indexes posted weekly gains as traders stayed cautious ahead of major earnings and macro risks.