A thermal envelope is its first line of defense against energy loss. The thermal envelope includes your walls, roof, windows, and insulation all working together to keep your home comfortable and efficient. When it comes to insulation, spray foam is the gold standard.