PALO ALTO — Silicon Valley tech companies—always more focused on the virtual realm than the physical one—used to settle for remodeling hand-me-down offices or constructing relatively modest headquarters.

Now, Facebook, Apple and Google have enlisted some of the world’s most renowned architects to design campuses that match their status as corporate giants and cultural innovators.