One mask, two physical behaviours
The opening fraction sets the actual slit width. The amplitude mask blocks light outside the openings. The phase stripes change the phase of the field but not the transmitted intensity. The aperture around the grating is finite. The phase step is set directly for the chosen wavelength; it is not derived from any unspecified material.