pub fn hex_to_linear(hex: u32) -> [f32; 3]
A 0xRRGGBB hex color → linear-space RGB (for light/material constants).