The director and screenwriter had a vision of a dystopian future that now seems disturbingly prescient.