Relativistic laser pulse compression and focusing in stratified plasma-vacuum systems