Solution
= Solution
The inverse <3+1 decomposition of spacetime> metric gives
$$
\boxed{X=\frac1{2N^2}(\dot\phi-N^i\partial_i\phi)^2
-\frac12h^{ij}\partial_i\phi\partial_j\phi}.
$$
The first term is the squared derivative along the hypersurface normal and the second is the spatial-gradient contribution.