Fan-out gratings with a continuous profile