/* Animacja startowa: znak RTM przelatuje przez ekran, zostawiając smugę rombó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(0,152,95,.35), transparent 70%), linear-gradient(135deg, #E8F3EC 0%, #FDF8EE 55%, #F7EFDD 100%);
  animation: i-fade 1.45s ease forwards;
}
@media (prefers-color-scheme: dark) { html:not([data-theme]) #intro.play { background: radial-gradient(800px 500px at 30% 70%, rgba(0,152,95,.25), transparent 70%), linear-gradient(135deg, #04140F, #082520); } }
.i-bird { position: absolute; left: 0; top: 0; width: 130px; height: auto; overflow: visible; filter: drop-shadow(0 10px 18px rgba(0,68,56,.18));
  offset-path: none; animation: i-fly 1.15s cubic-bezier(.45,.05,.55,.95) forwards; will-change: transform; }
.i-trail { position: absolute; left: -10vw; bottom: 6vh; width: 120vw; max-width: none; opacity: 0;
  animation: i-trail 1.15s ease-out .075s 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 1.15s ease .275s forwards; }
.i-logo img { height: 88px; } .i-logo span { font: 700 14px/1 system-ui, sans-serif; letter-spacing: .2em; color: #00985F; border-left: 2px solid #CDD4DB; padding-left: 12px; }
@media (prefers-color-scheme: dark) { html:not([data-theme]) .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-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: 62px; } .i-trail { width: 190vw; bottom: 10vh; } }
@media (prefers-reduced-motion: reduce) { #intro.play { display: none; } }
