Spray foam in lofts is something
https://johnathankdjg973.iamarrows.com/gutters-fascias-and-soffits-cardiff-roofers-who-sort-the-roofline
Spray foam in lofts is something I would steer clear of after reading about it here and elsewhere. Friends had real trouble selling because of it. Glad to see it flagged as something to be careful with