/* saqrena.com v4 · açılış: gerçek HTML yazı + filmin son gözü (resim) + altın kum (WebGL: gelişte toplanan taneler, sonra süzülen toz).
   Göz .acilis-goz kutusudur; kum taneleri de aynı kutunun yerine toplanır (js/bolum/acilis.js): yazıyla çakışma yapısal olarak olmaz.
   Varsayılan (hareket azaltma, betik yok): açılış ve şafak bandı akışta alt alta.
   .acilis-gecisli + betik + hareket izni: kutu yapışır, kaydırdıkça göz bebeğinden şafak açılır (bolum-safak.css, js/bolum/safak.js). */
.bolum-acilis { padding-block: 0; --acilis-ara: clamp(24px, 4vw, 64px); }
.acilis-sabit { position: relative; isolation: isolate; overflow: hidden; }
.acilis-iz { display: none; }

/* WebGL tuvali: kutunun tamamı. Kum taneleri yazının arkasında soluk (yazı okunur kalsın), gözün çevresinde tam. */
.acilis-sahne { position: absolute; inset: 0 0 var(--safak-bant, 0px) 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1.1s var(--yay); will-change: transform, opacity;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.34) 0, rgba(0,0,0,.34) 44%, #000 66%); mask-image: linear-gradient(to bottom, rgba(0,0,0,.34) 0, rgba(0,0,0,.34) 44%, #000 66%); }
.acilis-sahne.sahne-hazir { opacity: 1; }

.acilis-ic { position: relative; z-index: 2; min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; row-gap: clamp(20px, 3.4vh, 36px);
  padding-block: calc(var(--ust-boy) + clamp(14px, 3vh, 40px)) clamp(24px, 4.5vh, 56px); }
.acilis-yazi { display: grid; gap: clamp(16px, 2.5vh, 28px); justify-items: start; will-change: transform, opacity; }
.bolum-acilis h1 { font-size: clamp(28px, min(8.7vw, 5.6vw + 12px), 64px); }
.acilis-giris { max-width: 620px; }
.acilis-dugmeler { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(2px, .6vh, 8px); }
.acilis-kanit { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: clamp(2px, .8vh, 10px); padding-top: clamp(14px, 2vh, 20px); border-top: 1px solid var(--cizgi-soluk);
  font-size: 11.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--metin-2); }
.acilis-kanit li { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.acilis-kanit li::before { content: ''; width: 5px; height: 5px; border-radius: 1px; background: var(--altin); flex: none; }
html[lang="ar"] .acilis-kanit { text-transform: none; }

/* göz: filmin son gözü (resim), kutunun tamamı. Halkanın dış çapı kutunun %94,56'sı; bebek merkezi (%50,39, %50,22), çapı %31,67
   (ölçüler araclar/goz_resmi.py). Kaynak resimde halka 851 px: kutu en çok 450 px (2 kat yoğunlukta bire bir, büyütme yok). */
.acilis-goz { position: relative; justify-self: center; width: min(62vw, 34vh, 300px); width: min(62vw, 34svh, 300px); aspect-ratio: 1; will-change: transform, opacity; }
.acilis-goz-resim { position: absolute; inset: 0; width: 100%; height: 100%; }
.acilis-bebek { position: absolute; left: 32.61%; top: 32.44%; width: 35.56%; height: 35.56%; will-change: transform; }

/* gözün gelişi: betik ve hareket izni varsa göz önce görünmez; kum taneleri toplanınca içlerinden çözülür (.coz).
   Sahne kurulamazsa doğrudan gelir (.dogrudan); betik hiç çalışmazsa 3,6 sn sonra kendiliğinden gelir. Hareket azaltmada hep görünür. */
@media (prefers-reduced-motion: no-preference) {
  html.js .acilis-goz > img { opacity: 0; animation: acilis-goz-gel 1s var(--yay) 3.6s both; }
  html.js .acilis-goz.coz > .acilis-goz-resim { animation: acilis-goz-coz 1s cubic-bezier(.3, .6, .2, 1) 1.3s both; }
  html.js .acilis-goz.coz > .acilis-bebek { animation: acilis-goz-gel .5s ease 2.3s both; }
  html.js .acilis-goz.dogrudan > img { animation: acilis-goz-gel .9s var(--yay) both; }
}
@keyframes acilis-goz-gel { from { opacity: 0; } to { opacity: 1; } }
@keyframes acilis-goz-coz {
  from { opacity: 0; transform: scale(1.045); filter: blur(9px) brightness(1.7) saturate(1.15); }
  50% { opacity: .9; }
  to { opacity: 1; transform: none; filter: none; }
}

@media (max-width: 420px) {
  .acilis-dugmeler { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; }
  .acilis-kanit { font-size: 11px; letter-spacing: .1em; gap: 8px 16px; }
}

/* geniş ekran: yazı solda (2), göz sağda (1) */
@media (min-width: 961px) {
  .acilis-sahne { -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,.4) 0, rgba(0,0,0,.4) 36%, #000 60%); mask-image: linear-gradient(to right, rgba(0,0,0,.4) 0, rgba(0,0,0,.4) 36%, #000 60%); }
  html[dir="rtl"] .acilis-sahne { -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,.4) 0, rgba(0,0,0,.4) 36%, #000 60%); mask-image: linear-gradient(to left, rgba(0,0,0,.4) 0, rgba(0,0,0,.4) 36%, #000 60%); }
  .acilis-ic { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: center; column-gap: var(--acilis-ara); }
  .bolum-acilis h1 { font-size: clamp(40px, 5.5vw, 80px); }
  /* kutu sütundan taşabilir; halka yazı sütununa 44 px'ten fazla yaklaşmaz */
  .acilis-goz { width: min(44vh, 450px, (100% + 2 * (var(--acilis-ara) - 44px)) / 0.9456); }
}

/* ── yapışkan düzen: betik var, hareket serbest ── */
@media (prefers-reduced-motion: no-preference) {
  html.js .acilis-gecisli:not(.hata) .acilis-sabit { position: sticky; top: calc(100vh - var(--acilis-boy, 100vh)); top: calc(100lvh - var(--acilis-boy, 100lvh)); }
  html.js .acilis-gecisli:not(.hata) .acilis-ic { min-height: 100vh; min-height: 100lvh; }
  html.js .acilis-gecisli:not(.hata) .acilis-sahne { inset: 0; }
  html.js .acilis-gecisli:not(.hata) .acilis-iz { display: block; height: 120vh; height: 120lvh; }
}
