Scientists have developed a powerful new computational method that could accelerate the search for next-generation materials capable of turning sunlight into useful chemical energy. The work focuses on polyheptazine imides, a promising class of carbon nitride materials that absorb visible light and can drive reactions such as hydrogen production, carbon dioxide conversion, and hydrogen peroxide.