Once all 12 pips are filled, a 20 day timer starts (based on the next time Advent would generate a pip of progress ~20 days). If you haven't reduced any Avatar progress by that time, the game ends in a loss.
Attacking Alien facilities will be your primary way to reduce Avatar progress, so be sure to acquire the resistance connections that make launching blacksite missions possible.