Text this: Global and local excitation and inhibition shape the dynamics of the cortico-striatal-thalamo-cortical pathway