Demographic change and economic shocks have forced mortgage lenders to adapt, and AI and technology are allowing some to serve a broader market.| ATTOM