/* Arakot Render Lab · v13 · Z · yazının ortaya çıkışı (yazi.js wraps the words)
   [data-reveal="dol"]     grey to ink, word by word, with the scroll
   [data-reveal="netles"]  out of a blur, a little from below, word by word, once
   .yz-at                  the story's words, driven by RenderLabYazi.at(el, t)
   Nothing here hides text until yazi.js has wrapped it: without JS, or under
   reduced motion, the words are simply there.                               */
.yz-w { position: relative; }
/* a word that rises needs a box (transform); a filled word stays inline so
   links keep their underline */
[data-reveal="netles"] .yz-w, .yz-at .yz-w { display: inline-block; }

/* dol: the opacity is written by yazi.js; a fill reads as ink arriving */
[data-reveal="dol"] .yz-w { transition: opacity 120ms linear; }

/* netles: before the element is seen, the word is not there */
[data-reveal="netles"] .yz-w { transform: translate3d(0, 0.32em, 0); }
[data-reveal="netles"] .yz-n { opacity: 0; }
.yz .yz-w::after {
  content: attr(data-w) / "";
  position: absolute; left: 0; top: 0; white-space: pre;
  color: inherit; filter: blur(0.14em); opacity: 0;
  pointer-events: none; user-select: none;
}
[data-reveal="netles"].is-in .yz-w {
  transform: none;
  transition: transform 900ms cubic-bezier(0.23, 1, 0.32, 1);
  transition-delay: calc(var(--i, 0) * 42ms);
}
[data-reveal="netles"].is-in .yz-n {
  opacity: 1;
  transition: opacity 620ms cubic-bezier(0.33, 0, 0.2, 1);
  transition-delay: calc(var(--i, 0) * 42ms + 160ms);
}
[data-reveal="netles"].is-in .yz-w::after { animation: yz-bulanik 900ms cubic-bezier(0.33, 0, 0.2, 1) both; animation-delay: calc(var(--i, 0) * 42ms); }
@keyframes yz-bulanik { 0% { opacity: 0; } 30% { opacity: 0.85; } 100% { opacity: 0; } }

/* the story's words: scroll time decides (no transitions, no clock) */
.yz-at .yz-w { transform: translate3d(0, var(--y, 0), 0); transition: none !important; }
.yz-at .yz-n { opacity: var(--n, 1); transition: none !important; }
.yz-at .yz-w::after { opacity: var(--b, 0); animation: none !important; }

@media (prefers-reduced-motion: reduce) {
  .yz-w, [data-reveal="netles"] .yz-w { transform: none !important; opacity: 1 !important; transition: none !important; }
  .yz-n, [data-reveal="netles"] .yz-n { opacity: 1 !important; transition: none !important; }
  .yz .yz-w::after { display: none; }
}

/* the accent: italic serif words inside a grotesk line (<em class="vurgu">) */
em.vurgu, .vurgu {
  font-family: var(--sc-font-accent); font-style: italic; font-weight: var(--sc-accent-weight, 400);
  font-optical-sizing: auto; letter-spacing: -0.006em; font-synthesis: none;
}

/* v14 · KURGU · tek başına cümleler (ara anlar 'yazi-*', yazi.js): "Her nokta
   bir render." ile aynı ses: sıkı grotesk ilk satır, italik serif ikinci satır,
   sahnenin ortasında; arkasında yumuşak bir ışık. Renkler theme.css'ten. */
.yz-ara {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  padding: var(--hb, 64px) clamp(16px, 4vw, 64px) 0;
  pointer-events: none;
}
.yz-ara__isik {
  position: absolute; left: 50%; top: calc(50% + var(--hb, 64px) / 2);
  width: min(130vw, 2200px); aspect-ratio: 2.2 / 1;
  translate: -50% -50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--sc-surface, #EEEBE5) 78%, transparent) 0%, color-mix(in srgb, var(--sc-surface, #EEEBE5) 34%, transparent) 46%, transparent 72%);
  opacity: 0;
}
.yz-ara__t {
  position: relative; margin: 0; max-width: 16em; text-align: center;
  font-family: var(--sc-font-display); font-weight: 650;
  font-size: clamp(40px, 6.4vw, 200px); line-height: 0.96; letter-spacing: -0.045em;
  color: var(--sc-ink); text-wrap: balance;
  opacity: 0; will-change: transform;
}
.yz-ara__t > .yz-ara__a, .yz-ara__t > em.vurgu { display: block; }
.yz-ara__t > em.vurgu { font-weight: 380; letter-spacing: -0.03em; padding-bottom: 0.06em; }
@media (max-width: 820px), (max-height: 500px) and (pointer: coarse) {
  .yz-ara__t { font-size: clamp(34px, 10.4vw, 46px); line-height: 1; }
}
