Architecture and design as duality