In situ control of perovskite absorber properties enables a record-efficiency two-terminal monolithic perovskite-CIGS tandem thin-film solar cell.