The social origins of the modern Middle East