  We develop a new probabilistic and geometric method to obtain several sharp
results pertaining to the upper tail behavior for the Kardar-Parisi-Zhang (KPZ)
equation in a unified way. The arguments make crucial use of Brownian
resampling invariance properties of Gibbs measures on infinite ensembles of
random continuous curves into which the KPZ equation (under narrow-wedge
initial data) can be embedded. We obtain sharp one-point upper tail estimates,
uniformly in the time parameter, showing that the probability of the value at
zero being larger than $\theta$ is $\exp(-\frac{4}{3}\theta^{3/2}(1+o(1)))$,
for a general class of initial data including the narrow-wedge. Our arguments
also yield the first known density estimates for the narrow-wedge case, which
are optimal. A key intermediate step is developing a precise understanding of
the profile when conditioned on the value at zero equaling $\theta$. Our method
further allows one to obtain multi-point asymptotics which were out of reach of
previous approaches. As an example, we prove sharp explicit two-point upper
tail estimates. All of our arguments also apply to the zero-temperature case of
the Airy$_2$ process; even here, while some of the one-point estimates were
already available due to its connections to random matrix theory, the two-point
asymptotics are new. Finally, to showcase the reach of the method, we obtain
the same results in a purely non-integrable setting under only assumptions of
stationarity and extremality in the class of Gibbs measures, thus providing
evidence in favour of a conjecture suggested by Sheffield and formulated by
Corwin-Hammond on a characterization of such line ensembles. Our method bears
resemblance to the tangent method introduced by Colomo-Sportiello and
mathematically realized by Aggarwal in the context of the six-vertex model.
