Melt–crystal density crossover in a deep magma ocean