Fitting large houses onto narrow lots has been a consistent challenge for San Francisco architects for more than a century.