Blink with millis: processor time shift?

I think this statement

should be on the top level of loop, and not be controlled by

You should also use ctrl-T in the IDE to format the code,
it would make the indentation match the real nesting level.