Gender is an old phenomenon. In the beginning God the Father and the Holy Spirit conceived and begat the Son. God the father is the male parent analogue. The Holy Spirit is the female parent analogue.
First cause gives us the origin of gender which is as elemental as the particles of which matter is composed, and as fundamental as their electric charges
The Holy Trinity can be written as a chemical formula. As blasphemous as this may seem, at first, there's a major problem with it: IT WORKS as a plan for the particle physics of the universe.
We can take what we deduced about Alpha and Omega to find first cause. This is the reason why the universe exists. It's also the origin of the deep, a body of water which predates creation.
There's a school of thought that the creation we live in was made from the remnants of an earlier one. In this narrative Genesis 1:1 describes a creation which was destroyed before the creative process begins in Genesis 1:2.
In the beginning God the father is Alpha, the proton (Hydrogen, H+) which is light. The Holy spirit is omega Oxygen (ΩO2-). These are the elemental spirits of the universe H+ and ΩO2-, Alpha and Omega.
First cause isn't the same as the Big Bang. The Big Bang, or more accurately we should say nucleosynthesis, is an effect, not a cause. Popular Science (SciPop) promotes speculation about a possible first cause.
God is a spirit doesn't mean that God is mystical and undefined, it means His physical nature is that of a vapor. However, God is more than just a Spirit so it's accurate to say that God has a Spirit.
We're going to go off the deep end which we found at the bottom of a rabbit hole: we'll draw a direct connection between the Holy Trinity and particle physics. By doing so we arrive at a theory of first cause.
The Holy Trinity is the origin of gender. God refers to himself as male, Alpha, the Father. Jesus Christ, the begotten, is the Son. Simple deduction gives the gender of the Holy Spirit, Omega, to be female.