Calcium carbonate crystallization in tailored constrained environments