Facing Threats at Home and Abroad, Iran’s President Takes a Harder Line