SAN FRANCISCO — After more than a decade in tech, Casey Engler thought he was prepared for another round of industry layoffs.