At what stage of a project are the specifications typically completed?

A. At the beginning of the physical work
B. After occupancy by the owner
C. It is part of completing the detailed design
D. At the completion of the physical work