John Ternus has succeeded Tim Cook as Apple chief executive, returning the company to its hardware-engineering roots. He launched the foldable iPhone Duo while steering a conservative, privacy-focused artificial intelligence strategy against aggressive Silicon Valley rivals.