I remember the days of working in an office, nearly a decade ago, and can compare that now to working remotely; and the common thread through that is the value of my work has been tied to autonomy, clarity, and combined trust between me and my colleagues.
When it comes to the remote versus in office debates, it matters less where you work (although I 100% prefer remote and love to occassionally meet up with my colleagues), and more whether the right ingredients are there for a team to function well.