/* ==========================================================================
   kino.css — animacja wejścia z logo findepeace, płynne przewijanie (Lenis)
   i odsłanianie zdjęć/grafik przy przewijaniu. Wspólne dla stron findepeace.
   ========================================================================== */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto !important; scroll-snap-type: none !important; }
.lenis.lenis-stopped { overflow: clip; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* ---------- animacja wejścia ---------- */
.intro { display: none; }
html.kino-intro .intro { display: grid; }
html.kino-intro { scroll-snap-type: none !important; }
html.kino-intro body { overflow: hidden; }
.intro {
  position: fixed; inset: 0; z-index: 1000; place-items: center;
  background: #0A0A0B; color: #fff; cursor: pointer;
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.6s cubic-bezier(.76, 0, .24, 1);
}
.intro.is-out { clip-path: inset(0 0 100% 0); }
.intro-stage { display: flex; flex-direction: column; align-items: center; gap: clamp(22px, 4vh, 40px); }
.intro-moon { width: clamp(120px, 22vmin, 220px); aspect-ratio: 1; position: relative; }
.intro-moon::before { content: ""; position: absolute; inset: -30%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,.16), transparent); opacity: 0; animation: introGlow 2.2s .7s ease-out forwards; }
.intro-moon img { position: relative; width: 100%; height: 100%; clip-path: circle(0% at 50% 62%); transform: translateY(14%) scale(.9); animation: introMoon 1.9s .2s cubic-bezier(.16, 1, .3, 1) forwards; }
.intro-word { height: clamp(26px, 4.4vmin, 44px); clip-path: inset(0 100% 0 0); animation: introWord 1.6s 1.15s cubic-bezier(.65, 0, .35, 1) forwards; }
.intro-word img { height: 100%; width: auto; display: block; }
.intro-line { width: clamp(120px, 22vmin, 220px); height: 1px; background: rgba(255,255,255,.14); overflow: hidden; }
.intro-line i { display: block; height: 100%; background: #fff; transform: scaleX(0); transform-origin: 0 50%; animation: introLine 2.8s .25s cubic-bezier(.65, 0, .35, 1) forwards; }
.intro-skip { position: absolute; bottom: max(28px, env(safe-area-inset-bottom, 0px)); font: 500 11px/1 "JetBrains Mono", Mono, ui-monospace, monospace; letter-spacing: .2em; text-transform: uppercase; color: #8E8E96; opacity: 0; animation: introFade .6s 1.2s forwards; }
@keyframes introMoon { to { clip-path: circle(75% at 50% 62%); transform: none; } }
@keyframes introGlow { to { opacity: 1; } }
@keyframes introWord { to { clip-path: inset(0 0 0 0); } }
@keyframes introLine { to { transform: scaleX(1); } }
@keyframes introFade { to { opacity: 1; } }
/* strona "wjeżdża" spod podnoszącej się kurtyny */
html.kino-intro .kino-page { transform: translateY(6vh) scale(.98); opacity: .4; }
.kino-page { transition: transform 2s cubic-bezier(.16, 1, .3, 1), opacity 1.6s ease; transform-origin: 50% 0; }
html.kino-ready .kino-page { transform: none; opacity: 1; }

/* ---------- odsłanianie zdjęć i grafik ---------- */
.kino-media { clip-path: inset(100% 0 0 0); transition: clip-path 2.2s cubic-bezier(.65, 0, .35, 1); }
.kino-media > * { scale: 1.25; translate: 0 var(--py, 0px); transition: scale 2.8s cubic-bezier(.16, 1, .3, 1); will-change: translate, scale; }
.kino-media.is-in { clip-path: inset(0 0 0 0); }
.kino-media.is-in > * { scale: 1.06; }
/* wariant okrągły (księżyc, emblemat) */
.kino-media.kino-circle { clip-path: circle(0% at 50% 62%); }
.kino-media.kino-circle.is-in { clip-path: circle(75% at 50% 62%); }
.kino-media.kino-circle > *, .kino-media.kino-circle.is-in > * { scale: 1; }
.kino-media.kino-circle > * { scale: .92; }
.kino-media.kino-circle.is-in > * { scale: 1; }

@media (prefers-reduced-motion: reduce) {
  html.kino-intro .intro { display: none; }
  html.kino-intro body { overflow: auto; }
  .kino-page, html.kino-intro .kino-page { transform: none; opacity: 1; transition: none; }
  .kino-media, .kino-media.kino-circle { clip-path: none; transition: none; }
  .kino-media > * { scale: 1; translate: none; transition: none; }
}

/* ---------- przewijak przeglądarki: cienki i półprzezroczysty ---------- */
html { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.14) transparent; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.28); }

/* ---------- immersja: ziarno filmowe, winieta, światło za kursorem ---------- */
.kino-grain, .kino-vignette, .kino-light { position: fixed; inset: 0; pointer-events: none; }
.kino-vignette { z-index: 897; background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(0,0,0,.55) 100%); }
.kino-light { z-index: 896; opacity: 0; transition: opacity 1.2s ease; background: radial-gradient(520px circle at var(--lx, 50%) var(--ly, 40%), rgba(255,255,255,.055), transparent 70%); }
.kino-light.on { opacity: 1; }
.kino-grain { z-index: 898; inset: -50%; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); } 40% { transform: translate(2%,-3%); } 60% { transform: translate(-2%,-1%); } 80% { transform: translate(3%,3%); } 100% { transform: translate(0,0); } }
@media (prefers-reduced-motion: reduce) { .kino-grain { animation: none; } .kino-light { display: none; } }
@media (pointer: coarse) { .kino-light { display: none; } }
