Gritty geometry