The Catholic Encyclopedia says
It is important to remember that there is a wide difference between the cause and the occasion of sin. The cause of sin in the last analysis is the perverse human will and is intrinsic to the human composite. The occasion is something extrinsic and, given the freedom of the will, cannot, properly speaking, stand in causal relation to the act or vicious habit which we call sin. There can be no doubt that in general the same obligation which binds us to refrain from sin requires us to shun its occasion.
and
Theologians distinguish between the proximate and the remote occasion. They are not altogether at one as to the precise value to be attributed to the terms. De Lugo defines proximate occasion (De poenit. disp. 14, n. 149) as one in which men of like calibre for the most part fall into mortal sin, or one in which experience points to the same result from the special weakness of a particular person. The remote occasion lacks these elements. All theologians are agreed that there is no obligation to avoid the remote occasions of sin both because this would, practically speaking, be impossible and because they do not involve serious danger of sin.
Pope Gregory XVI says in Summo Iugiter Studio:
Hence if the circumstances suggest it, it may be necessary to remind them of that wellknown precept of the natural and divine law, which commands us to avoid not only sins but the next occasion of sin as well.
The Holy Office (now the CDF) condemned the proposition that:
He can sometimes be absolved, who remains in a proximate occasion of sinning, which he can and does not wish to omit, but rather directly and professedly seeks or enters into. [3]
From this quote I think one can infer that, if one does not repent and thereby confess willfully entering into occasion of sin, he cannot be absolved, and therefore has committed a mortal sin. Because someone also is not absolved who withholds any mortal sin from confession. But it's not clear to me whether that also includes near occasion of venial sin.
But, because it is a sin for one to willingly enter into proximate occasion (that much is certainly clear), then condition 2 and 3 may be present. But I'm not able to say when and how it may be grave matter. Anecdotally, I have heard that the gravity of the occasion is the same as the sin itself, but take that with a grain of salt.
In your alcoholic example, if he has consented to drinking in step 3, it seems he has already consented to sinning. And therefore he has already satisfied all 3 conditions, at least in that step, despite not actually drinking.
St Francis de Sales teaches that "Whenever it is possible to avoid the attraction which accompanies temptation, we sin in encountering it in porportion to the pleasure it gives us, or the consent which we give, be it great or little, for a short or a long while." And that "There is impurity in allowing either heart or body to consent to what is impure; and impurity consists so entirely in the consent of the heart, that without it the consent of the body cannot be sin." [4]
The question How defined is the threshold of graveness for mortal sins? (Catholicism) may also be helpful.
[1] Delany, Joseph. "Occasions of Sin." The Catholic Encyclopedia. Vol. 11. New York: Robert Appleton Company, 1911. 7 Mar. 2022 http://www.newadvent.org/cathen/11196a.htm.
[2] Gregory XVI, Pope. On Mixed Marriages. 7 Mar. 2022 https://www.papalencyclicals.net/greg16/g16summo.htm
[3] DS 1221
[4] de Sales, St. Francis. "How Temptations and Attraction May Become Sinful." Introduction to the Devout Life. TAN Books, 2013