We demonstrate a reflective wavefront sensor grating suitable for the characterization of high-quality x-ray beamlines and optical systems with high power densities. Operating at glancing incidence angles, the optical element is deeply etched with a two-level pattern of shearing interferometry gratings and Hartmann wavefront sensor grids. Transverse features block unwanted light, enabling binary amplitude in reflection with high pattern contrast. We present surface characterization and soft x-ray reflectometry of a prototype grating array to demonstrate function prior to wavefront measurement applications. A simulation of device performance is shown.