System-by-Design Multiscale Synthesis of Task-Oriented Reflectarrays