Inside Marissa Mayer’s struggle to revive Yahoo’s troubled research lab