FWIW, not every company in the Bay Area is like that. I work for a small company in Palo Alto (< 50 people) where most people get in around 9 (some come earlier, some come later), and people will leave around 5 (some also leave earlier - SF people tend to leave around 3 to beat traffic). 1/3 of our company is also remote.