Spray polyurethane foam is made on site from two liquids, an isocyanate and a resin blend, that react at the spray gun and expand into a solid that insulates and air-seals in one pass. It comes in open-cell and closed-cell versions.
More detail
The two liquids travel through heated hoses from a proportioner in the truck and meet only at the gun tip, where they mix and start reacting within seconds. Open-cell foam expands many times over into a soft, light material of roughly half a pound per cubic foot; closed-cell expands less and cures into a rigid foam of roughly two pounds per cubic foot. That density difference drives almost everything else: R-value per inch, how much water vapor passes through, cost, and where each belongs in a Central Ohio house. Because the chemistry happens in your attic instead of a factory, quality depends on the equipment staying on ratio and on the surface being warm and dry enough when it is sprayed. Every product used for residential work should carry a current ICC-ES evaluation report, and reading one is worth five minutes before you sign.