/* ==========================================================================
   fly.css: plane transition between pages (see assets/js/fly.js).
   Only transform and opacity animate, so it stays smooth on phones.
   The "landing" class is set by the one-line inline script in each <head>
   so the cover shows before first paint and there is no flash.
   ========================================================================== */
.fly { position: fixed; inset: 0; z-index: 9999; pointer-events: none; background: linear-gradient(160deg, #ffd3e4 0%, #fff4ea 55%, #dce9ff 100%); opacity: 0; transition: opacity .18s ease-out; }
.fly.on { opacity: 1; }
.fly svg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.fly path { stroke: #e0458f; stroke-width: 3; stroke-dasharray: 2 10; stroke-linecap: round; fill: none; stroke-dashoffset: 1200; }
.fly.on path { animation: fly-trail .6s cubic-bezier(.4, 0, .2, 1) forwards; }
.fly i { position: absolute; left: 0; top: 0; font-size: 64px; font-style: normal; line-height: 1; will-change: transform; transform: translate3d(-20vw, 78vh, 0); }
.fly.on i { animation: fly-up .6s cubic-bezier(.4, 0, .2, 1) forwards; }
.fly span { position: absolute; left: 0; right: 0; bottom: 16%; text-align: center; font: 700 34px Caveat, cursive; color: #3d0816; opacity: 0; transform: translateY(8px); transition: opacity .2s .1s, transform .2s .1s; }
.fly.on span { opacity: 1; transform: none; }
@keyframes fly-up {
  0%   { transform: translate3d(-20vw, 78vh, 0) rotate(0deg); }
  60%  { transform: translate3d(55vw, 34vh, 0) rotate(-4deg); }
  100% { transform: translate3d(110vw, 2vh, 0) rotate(-8deg); }
}
@keyframes fly-trail { to { stroke-dashoffset: 0; } }

html.landing::before { content: ""; position: fixed; inset: 0; z-index: 9998; background: linear-gradient(160deg, #ffd3e4 0%, #fff4ea 55%, #dce9ff 100%); transition: opacity .35s ease-out .05s; }
html.landing::after { content: "✈️"; position: fixed; z-index: 9999; left: 0; top: 0; font-size: 64px; line-height: 1; will-change: transform; transform: translate3d(42vw, 42vh, 0); transition: transform .45s cubic-bezier(.55, 0, .8, .2); }
html.landed::before { opacity: 0; }
html.landed::after { transform: translate3d(115vw, -15vh, 0); }
@media (prefers-reduced-motion: reduce) { html.landing::before, html.landing::after { display: none; } }
