Fermat’s Principle on the Tech Tree