Cross-platform deterministic scoring.
DeterministicScore converts f64 to fixed-point i64 (2^32 scale) for
identical ranking across x86_64, ARM64, and WASM.
score_from_distance is the canonical distance-to-similarity conversion
used by all vector retrieval back-ends (HNSW, flat-scan, …).