Rule reminder
'Prima che / prima di' + past = action preceded another past event → trapassato prossimo. 'Dopo che' + trapassato = completed action that preceded the next event.
Prima che arrivassi tu, io … (preparare) tutto.