King Charles’ latest project at Dumfries House integrates heritage preservation with modern green technologies.