The pandemic hit less than a year after Apple celebrated the opening of its new, $5 billion headquarters in Cupertino, Calif., a splashy circular building that resembles a spaceship. It has largely sat unused for the past two years.