contrast masks are possible with 35mm, although tricky to align. I unmount the slide, and cut the film between perforation and fold the tabs in to align with perf holes of the film I want to make the mask of.
I use an old roll of 35mm Kodalith ortho, so I can develop it under red safelight to visually judge the level of density. You want a light low contrast neg for the mask.
It is possible to use pan film for more accurate masking of all colours, but need to work in absolute darkness, and then develop by experiment for the right time and temperature.
Use the enlarger as a controllable light source to expose. If Kodalith, its speed is not too far off of enlarging paper speed to get the right time/aperture to start for exposure. Otherwise ise paper as ISO6, and stop the lens down or add neutral denity if you are using pan iso 100 speed film.
Place mask film emulsion down, positive in need of mask emulsion up. This allow you to get an unsharp mask, so alignment is not so critical for 35mm. Glass on top to squash together. Diffuse with a Kleenex, etc.
Develop in low contrast developer. Very dilute paper developer, or low contrast film developer. Ideally, take the metol you found, and add a small pinch -less than a gram per litere, then some sodium sulfite - say 80g/l , and then try that for developing mask films. It lets you go to about 3-4 minutes for a low contrast neg.
Then to project the slide with mask, re-mesh the cut tabs to the perfs.