Wow. My company has been trying to decide between setting up our HQ in San Francisco or further down the bay. I think we have our answer.
We also have an office in NYC -- also not cheap, but totally worth it. Between NYC and SF we have no trouble recruiting employees who want to live in a desirable location (and we, the officers, want to live here too!), and nearly all of our partners and business contacts are either in SF or NYC, too.