/* Hareket katmanı stilleri (fx.js). style.css'ten sonra yüklenir. */
html.fx { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body:not(.ready) { overflow: hidden; }

/* film greni: statik, Firefox'ta kapalı */
body::after { content: ''; position: fixed; inset: 0; z-index: 400; pointer-events: none; opacity: .05; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 .92  0 0 0 0 .84  0 0 0 1.4 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
html.ff body::after, html.motion-off body::after { display: none; }

/* açılış ekranı */
.loader { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; }
.loader-half { position: absolute; left: 0; right: 0; height: 50.5%; background: var(--bg); }
.loader-half.t { top: 0; } .loader-half.b { bottom: 0; }
.loader-core { position: relative; display: grid; justify-items: center; gap: 22px; }
.loader-mark { width: 96px; height: 96px; object-fit: contain; filter: drop-shadow(0 0 28px rgba(242, 160, 107, .4)); }
.loader-word { display: flex; font: 600 clamp(52px, 10vw, 104px)/1 var(--display); letter-spacing: -.045em; overflow: hidden; padding: 0 .06em .12em; }
.loader-word span { display: block; }
.loader-count { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 34px; display: flex; justify-content: space-between; align-items: flex-end; font-size: 14px; color: var(--faint); }
.loader-count b { font: 600 clamp(52px, 8vw, 96px)/.85 var(--display); color: var(--text); letter-spacing: -.04em; }
.loader-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255, 255, 255, .06); }
.loader-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--c-violet), var(--c-pink), var(--accent)); transform: scaleX(0); transform-origin: left; box-shadow: 0 0 16px var(--accent); }

/* sayfa geçiş perdesi */
.curtain { position: fixed; inset: 0; z-index: 450; display: grid; grid-template-columns: repeat(5, 1fr); pointer-events: none; visibility: hidden; }
.curtain.on { visibility: visible; }
.curtain i { background: #16120F; border-top: 2px solid var(--accent); }
.curtain i:nth-child(odd) { background: #1C1714; }

/* okuma çubuğu */
.progress { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 60; pointer-events: none; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--c-violet), var(--c-pink), var(--accent)); transform: scaleX(0); transform-origin: left; box-shadow: 0 0 12px rgba(242, 160, 107, .6); }

/* imleç */
.cur, .cur-dot { position: fixed; left: 0; top: 0; z-index: 480; pointer-events: none; opacity: 0; transition: opacity .3s; }
.cur { width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1px solid rgba(255, 255, 255, .6); border-radius: 50%; transition: opacity .3s, width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .3s, border-color .3s; }
.cur-dot { width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: var(--accent); }
body.cur-on .cur, body.cur-on .cur-dot { opacity: 1; }
.cur.hot { width: 68px; height: 68px; margin: -34px 0 0 -34px; background: rgba(242, 160, 107, .12); border-color: var(--accent); }
.cur.down { width: 26px; height: 26px; margin: -13px 0 0 -13px; }

/* kelime maskeleri */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: .12em .08em .16em 0; margin: -.12em -.08em -.16em 0; }
.wi { display: inline-block; }

/* sabitlenen "ilk hafta" sahnesi: tam ekran görseller arasında geçiş */
@media (min-width: 961px) {
  .fx-full .stages { height: 100vh; padding: 0; display: flex; align-items: center; }
  .fx-full .st-bgs { display: block; position: absolute; inset: 0; z-index: -2; }
  .fx-full .st-bg { position: absolute; inset: 0; opacity: 0; transform: scale(1.08); transition: opacity 1s var(--ease), transform 2.4s var(--ease); }
  .fx-full .st-bg.on { opacity: 1; transform: scale(1); }
  .fx-full .st-bg img { width: 100%; height: 100%; object-fit: cover; }
  .fx-full .stages::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(15, 13, 12, .92) 0%, rgba(15, 13, 12, .6) 42%, rgba(15, 13, 12, .1) 75%), linear-gradient(180deg, var(--bg) 0%, rgba(15, 13, 12, 0) 18%, rgba(15, 13, 12, 0) 78%, var(--bg) 100%); }
  .fx-full .st-wrap { position: relative; height: min(80vh, 720px); display: grid; grid-template-rows: auto 1fr auto; }
  .fx-full .st-stage { position: relative; }
  .fx-full .stage { position: absolute; inset: 0; border: 0; padding: 0; align-content: center; gap: 10px; max-width: 640px; }
  .fx-full .st-thumb { display: none; }
  .fx-full .st-big { font-size: clamp(96px, 12vw, 190px); }
  .fx-full .st-body p { font-size: 20px; }
  .fx-full .st-nav { display: block; }
  .st-line { height: 2px; background: rgba(255, 255, 255, .12); margin-bottom: 14px; border-radius: 2px; overflow: hidden; }
  .st-line i { display: block; height: 100%; background: linear-gradient(90deg, var(--c-sky), var(--c-sage), var(--c-pink), var(--accent)); transform: scaleX(0); transform-origin: left; }
  .st-ticks { display: grid; grid-template-columns: repeat(4, 1fr); }
  .st-tick { font-size: 14px; color: rgba(245, 240, 234, .45); transition: color .4s; }
  .st-tick.on { color: var(--hue-text); }
}

/* hareket modu düğmesi otomatik hafif modda vurgulanır */
.icon-btn.auto { border-color: var(--accent-line); }
html.motion-off .loader, html.motion-off .curtain, html.motion-off .cur, html.motion-off .cur-dot { display: none; }
@media (max-width: 960px) { .cur, .cur-dot { display: none; } }
