pub fn morton_encode(x: u32, y: u32, z: u32) -> u32
Morton code (Z-order curve) interleave for a 3D position.
Quantizes each coordinate to 10 bits, then interleaves.