Chemical enrichment of giant planets and discs due to pebble drift | Synapse