As Tesla’s electric-vehicle sales have flattened this year, CEO Elon Musk has increasingly staked the company’s future on his ...