Since you’re an emacs user, I highly recommend org mode and org-ref for technical writing. For collaborative writing I’ll export to overleaf, but I’ve never found anything quite as good as org mode for organizing, building, and revising research writeups.
You don’t have to go all in on org for notes and TODO tracking (I’ve tried and haven’t made it stick).