/* Animacja startowa: gołąbek origami Polkrys odlatuje, zostawiając smugę kryształków */
#intro { display: none; }
#intro.play {
  display: block; position: fixed; inset: 0; z-index: 100; overflow: hidden; pointer-events: none;
  background: radial-gradient(800px 500px at 30% 70%, rgba(87,154,222,.35), transparent 70%), linear-gradient(135deg, #EAF2FC 0%, #F7FAFE 55%, #E4EDF9 100%);
  animation: i-fade 2.9s ease forwards;
}
@media (prefers-color-scheme: dark) { #intro.play { background: radial-gradient(800px 500px at 30% 70%, rgba(87,154,222,.25), transparent 70%), linear-gradient(135deg, #081230, #0B1838); } }
.i-bird { position: absolute; left: 0; top: 0; width: 150px; height: auto; overflow: visible; filter: drop-shadow(0 10px 18px rgba(0,39,118,.18));
  offset-path: none; animation: i-fly 2.3s cubic-bezier(.45,.05,.55,.95) forwards; will-change: transform; }
/* skrzydła machają względem tułowia */
.i-wing-up { transform-origin: 13px 14px; animation: i-flap-up .32s ease-in-out 7 alternate; }
.i-wing-down { transform-origin: 12.5px 16px; animation: i-flap-down .32s ease-in-out 7 alternate; }
.i-trail { position: absolute; left: -10vw; bottom: 6vh; width: 120vw; max-width: none; opacity: 0;
  animation: i-trail 2.3s ease-out .15s forwards; transform-origin: left bottom; }
.i-logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.92); display: flex; align-items: center; gap: 12px; opacity: 0;
  animation: i-logo 2.3s ease .55s forwards; }
.i-logo img { height: 64px; } .i-logo span { font: 700 14px/1 system-ui, sans-serif; letter-spacing: .2em; color: #579ADE; border-left: 2px solid #CDD4DB; padding-left: 12px; }
@media (prefers-color-scheme: dark) { .i-logo img { filter: brightness(0) invert(1); } }
@keyframes i-fly {
  0%   { transform: translate(8vw, 72vh) rotate(-8deg) scale(.55); opacity: 0; }
  12%  { opacity: 1; }
  45%  { transform: translate(40vw, 42vh) rotate(-14deg) scale(1); }
  100% { transform: translate(112vw, -22vh) rotate(-24deg) scale(.45); opacity: 1; }
}
@keyframes i-flap-up { from { transform: scaleY(1) skewX(0deg); } to { transform: scaleY(.35) skewX(-8deg); } }
@keyframes i-flap-down { from { transform: scaleY(1); } to { transform: scaleY(.55) translateY(2px); } }
@keyframes i-trail { 0% { opacity: 0; transform: translateX(-30%) scaleX(.6); } 35% { opacity: .55; } 100% { opacity: .35; transform: translateX(0) scaleX(1); } }
@keyframes i-logo { 0% { opacity: 0; transform: translate(-50%, -46%) scale(.92); } 30% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 75% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -54%) scale(1.02); } }
@keyframes i-fade { 0%, 80% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
@media (max-width: 700px) { .i-bird { width: 96px; } .i-logo img { height: 44px; } .i-trail { width: 190vw; bottom: 10vh; } }
@media (prefers-reduced-motion: reduce) { #intro.play { display: none; } }
