/* ==========================================================================
   AÇILIŞ ANİMASYONU B (0.137): "servis güzergahı dolaşır"
   Kaynak: Desktop/EVRAN/tasarim/mobil_tasarim/acilis-B-*.html; zamanlama tablosu
   TASARIM_NOTLARI.md "Açılış animasyonu B". Değerler birebir; tek fark nefes döngüsünün
   sayısı: tasarımda sabit 2, burada uygulama hazır olana dek sürer (acilis.js).

   ADIMLAR (başlangıç / süre / eğri):
     durak halkası            0 / 160  cubic-bezier(0.05, 0.7, 0.1, 1)
     soluk güzergah çizilir   0 / 300  cubic-bezier(0.2, 0, 0, 1)
     durak işaretleri         120 / 180
     servis düz yolda         300 / 260 cubic-bezier(0.4, 0, 1, 1)  (x: 20 -> 80)
     servis yayda             560 / 760 cubic-bezier(0.3, 0.4, 0.2, 1) (-32 -> -360 derece, merkez 50,50)
     sağ / sol işaret koyulaşır 643 / 702, 150
     güzergah koyulaşır       1320 / 300
     ad: genişlik / yazı      1400 / 1500, 380 / 280
     nefes (1, 1.2, 1)        1800 / 1200 döngü, ease-in-out
     çıkış                    hazır olunca / 220 cubic-bezier(0.3, 0, 0.8, 0.15)

   Zemin tema token'ı (açık #EDEFF0, koyu #16191C): Android sistem açılış ekranının zemini de
   aynı renk (res/values ve values-night altında splash_renkleri.xml), iki ekran arasında sıçrama yok.
   ⛔ JS ÖLÜRSE PERDE SONSUZA KALMASIN: 12 sn'de yalnız CSS ile kendiliğinden kalkar.
   ========================================================================== */
.acilis {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 72px;
  background: var(--zemin);
  font-family: var(--font-logo);
  animation: acilis-kurtar 0s linear 12s forwards;
}
@keyframes acilis-kurtar {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}
.acilis-sahne {
  display: flex;
  align-items: center;
}
.acilis-isaret {
  display: block;
  width: 88px;
  height: 88px;
  overflow: visible;
}
.acilis .iz {
  fill: none;
  stroke: var(--murekkep);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 215 430;
}
.acilis .tik {
  fill: none;
  stroke: var(--murekkep);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 6 12;
}
.acilis .halka-ic { fill: var(--zemin); }
.acilis .halka-dis { fill: none; stroke: var(--murekkep); stroke-width: 3.5; }
.acilis .nefes { fill: var(--sinyal); }
.acilis .kelime-kap {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  max-width: 240px;
}
.acilis .kelime {
  display: inline-block;
  padding-left: 16px;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--murekkep);
}
.acilis .kelime-evran { font-weight: 600; }
.acilis .kelime-servis { font-weight: 400; color: var(--servis-yazi); }

/* --- zamanlama --- */
.acilis .halka { transform-box: fill-box; transform-origin: center; animation: acilis-halka 160ms cubic-bezier(0.05, 0.7, 0.1, 1) 0ms both; }
.acilis .iz { animation: acilis-iz 300ms cubic-bezier(0.2, 0, 0, 1) 0ms both, acilis-koyulas 300ms cubic-bezier(0.2, 0, 0, 1) 1320ms both; }
.acilis .tikB1 { animation: acilis-tik 180ms cubic-bezier(0.2, 0, 0, 1) 120ms both, acilis-koyulas 150ms cubic-bezier(0.2, 0, 0, 1) 643ms both; }
.acilis .tikB2 { animation: acilis-tik 180ms cubic-bezier(0.2, 0, 0, 1) 120ms both, acilis-koyulas 150ms cubic-bezier(0.2, 0, 0, 1) 702ms both; }
.acilis .yol1 { animation: acilis-duz 260ms cubic-bezier(0.4, 0, 1, 1) 300ms both; }
.acilis .yol2 { transform-box: view-box; transform-origin: 50px 50px; animation: acilis-tur 760ms cubic-bezier(0.3, 0.4, 0.2, 1) 560ms both; }
/* Nefes SONSUZ: uygulama hazır olunca acilis.js döngünün BİTİŞİNDE (animationiteration) çıkışı başlatır.
   İlk döngü 3000 ms'de biter; en az bir nefes görünür (tasarım: toplam yaklaşık 3 sn). */
.acilis .nefes { transform-box: fill-box; transform-origin: center; animation: acilis-gorun 80ms linear 300ms both, acilis-nefes 1200ms ease-in-out 1800ms infinite both; }
.acilis .kelime-kap { animation: acilis-kelime-ac 380ms cubic-bezier(0.05, 0.7, 0.1, 1) 1400ms both; }
.acilis .kelime { animation: acilis-kelime-gel 280ms cubic-bezier(0.2, 0, 0, 1) 1500ms both; }
.acilis.acilis--cikis .acilis-sahne { animation: acilis-cikis 220ms cubic-bezier(0.3, 0, 0.8, 0.15) both; }
.acilis.acilis--cikis { animation: acilis-zemin-cikis 220ms cubic-bezier(0.3, 0, 0.8, 0.15) both; }

@keyframes acilis-halka { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: scale(1); } }
@keyframes acilis-iz { from { stroke-dashoffset: 215; } to { stroke-dashoffset: 0; } }
@keyframes acilis-tik { from { stroke-dashoffset: 6; opacity: 0; } 20% { opacity: 1; } to { stroke-dashoffset: 0; opacity: 1; } }
@keyframes acilis-koyulas { from { stroke: var(--soluk); } to { stroke: var(--murekkep); } }
@keyframes acilis-duz { from { transform: translate(-60px, 0); } to { transform: translate(0, 0); } }
@keyframes acilis-tur { from { transform: rotate(-32deg); } to { transform: rotate(-360deg); } }
@keyframes acilis-gorun { from { opacity: 0; } to { opacity: 1; } }
@keyframes acilis-nefes { 0% { transform: scale(1); } 50% { transform: scale(1.2); } 100% { transform: scale(1); } }
@keyframes acilis-kelime-ac { from { max-width: 0; } to { max-width: 240px; } }
@keyframes acilis-kelime-gel { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
@keyframes acilis-cikis { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(.985); } }
@keyframes acilis-zemin-cikis { from { opacity: 1; } to { opacity: 0; } }

/* HAREKETİ AZALT: logo hazır gelir (son kare), 600 ms sonra çıkış (acilis.js). */
@media (prefers-reduced-motion: reduce) {
  .acilis .an { animation: none !important; }
  .acilis.acilis--cikis,
  .acilis.acilis--cikis .acilis-sahne { animation: none !important; opacity: 0; }
}
