1/2 up front. Bill hourly afterwards and deduct from the "deposit" you've taken. Bill every 2 weeks.
Don't launch / hand off final materials until the funds have cleared in your bank for the final payment.