The genius director who effortlessly melded comedy and crisis