Looks like a solid build there. The Terra, like a few sandwich cases, has an adjustable spine in the centre allowing a variety of GPU widths/slots on one side and CPU cooler height on the other. See the attached snipped of the manual.
Therefore, you have up to some combination of space for each component. With your L12s77, you'll need to fit the fan under the heatsink as the Terra has a max CPU height of 77mm, leaving you either 43mm (just over 2 slots) for a GPU under 131mm or 33mm (just over 1.5 slots) wide for your GPU, with a max length regardless of 322mm. Checking different SKUs for the 7800XT as an example (TechPowerup is a good place, see here: https://www.techpowerup.com/gpu-specs/radeon-rx-7800-xt.c3839), if you look at different SKUs you will be able to see they come in all different dimensions, so some might fit into the Terra and others might not.
It might be wise to choose a shorter CPU cooler (like the AXP90-x53FC) to allow for wider GPUs, especially as it'll be right up against the side of the case which you've said you want to avoid.