Text this: Application of a modified mean-field method to a gauge-invariant variational calculation