This wasn’t a misfire from a director who’d lost his touch. It was a love letter to a genre he knew inside and out.