Membrane model for the circadian clock