When you leave the company, you can typically keep the vested equity while the unvested equity will be forfeited (and will usually return to the company stock pool). Stock options typically expire within 90 days of leaving the company, so you could lose the vested options if you don't exercise them within 90 days.