Motivic realizations of matrix factorizations I