As US-led institutions weaken, power is shifting to middle powers, private actors and flexible alliances, creating a world that is more connected, less predictable and harder to control.