Geometry-driven two-dimensional hyperuniformity