Balancing beauty and function in architectural design