Niches of the pre-photosynthetic biosphere and geologic preservation of Earth’s earliest ecology