Bottom
规 supplies the sound — guī drifting to kuī through a regular g/k alternation in old readings. Originally
规 pictured a man-with-compass-and-eye, meaning 'to measure, to spy out, to plan.' That seeing-component fits nicely:
窥 is 'to look secretly through an opening,' an act of measured peeking.