Every aspect of the Castle’s design, including its siting, was dictated by mathematical formulae. Image© Ricardo Bofill