typst is great. I experimented with it, it I simply didn't have the fine-tuning and maturity LaTeX. For example, window/orphan control is a binary on/off, while LaTeX calculates by penalties at a much lower level. Pandoc is also great (I used it often for unrelated workflows), but it can't map custom styles from ODT files (not sure about Word).
Seems it’s currently a percentage: https://forum.typst.app/t/how-to-leave-a-single-line-of-para...
On Pandoc I agree. Word custom styles is possible I believe but it will be a mess (as usual with Word).
The funny thing is that you can use both a style template and content template with the DOCX exporter of pandoc and _export_ custom styles. You just can't import them.
Works great on my MD -> DOCX/PDF/HTML workflows but not the inverse, alas.