Fairly straight forward, hiring manager interview then team interview. Was told I was "in offer territory" and to "expect an email next week." I was even told what the salary would be for the offer. Then, 2 days later, I got a template "We regret to inform you..." email. I understand that they might not have wanted to hire me for whatever reason, but it is terrible to tell someone to expect an offer, give details of the offer, and then rescind that offer by sending a generic HR email. I feel like companies don't feel the need to treat people like human beings anymore.