A shaky start to the month has given way to solid S&P 500 gains as markets navigate tariff, inflation, and mega-cap tech ...