Robust domestic demand and improved margins drive stellar quarterly performance despite export headwinds.