Question about transparent materials in using a transparent scene

Hi, I'm trying to render a procedural material that has partial transparency on a object, while the scene itself is transparent.

It looks fine in both eevee and cycles when the scene is not transparent, and it seems to work in the viewport as in the screenshot below, but when I hit render, part of that material is missing. How can I fix this? @theluthier @jlampel


The relevant part of the material, a screenshot without transparency, and a screenshot with transparency are included.