hello everyone and thanks for looking. I am plumbing in a bathroom (sink, toilet and acrylic tub with mortar bed) in my attic, but because of limited space between joists and not really wanting to cut in or notch them i came up with this arrangement (see photos and please don't laugh). the question is will it work? and any venting issues? I realize this is probably not up to code. Also looking for comments on internal toilet flange, okay or not? i will need to use one as a female flange will put it way above the finished floor. also

the sink will be upstream from the toilet but haven't gotten that far yet.

the sink will be upstream from the toilet but haven't gotten that far yet.