This question arose from my attempts to understand the inclusion
Regular $\subset$ Complete Intersection $\subset$ Gorenstein $\subset$ Cohen Macaulay
There are many related questions here and in mathoverflow and they have been really helpful but I didn't find much on a geometric interpretation of regular sequences themselves. Although what follows makes sense in a more general fashion, I am mainly interested in rings $k[x_1,\cdots,x_n]/I$ that are coordinate rings of algebraic varieties $V$ (and I'll be happy to take an answer based on them).
It seems to me that there are at least two different contexts in which regular sequences are important:
When they live inside the ideal $I$ that defines the variety: There, after we localize at a point, if $I$ is generated by a regular sequence, the local ring is a Complete Intersection ring.
When they live inside the ring itself: There, after we localize at a point $P$, if the maximal size of a regular sequence is equal to $\operatorname{codim}P$, the ring is Cohen Macaulay.
For the first part of my question, I am asking for a geometric interpretation that maybe binds these two cases together. Is it just the normal way of treating depth as a sort of dimension where we want to describe our variety via succesive intersections of hypersurfaces? Would that make it clear why Complete Intersection $\Rightarrow$ Cohen Macaulay?
For the second part, I would like to understand (geometrically) why things change when we localize. For instance the ring $k[x,y,z]/(xz,yz)$ is not Cohen Macaulay (indeed, it is clearly not equidimensional). In particular, the localization at the origin has no regular sequence of size 2. However, the ring itself does; it is not difficult to see that $\{xy+3,x-y\}$ is one.
The same sequence is not regular in the localization because there $xy+3$ is a unit. I would like to understand if there is a geometric meaning to this. Is it interesting or useful for a non-local ring to have a maximal regular sequence equal to its dimension?