/* Tinkeroll — Dünyalar alt sayfası */
.wp { background: #3d6fd6; color: var(--ink); }
#stage { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.wp main, .wp .foot { position: relative; z-index: 2; }
.wp .foot { background: var(--paper); }

/* Açılış */
.w-hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 18vh max(20px, 5vw) 10vh; color: #fff; }
.w-hero .eyebrow { opacity: .85; }
.w-mega { font-size: clamp(56px, 10.5vw, 200px); line-height: .86; letter-spacing: -.06em; font-weight: 600; max-width: 12ch; }
.w-mega em { font-weight: 300; }
.w-lede { margin-top: 34px; max-width: 40ch; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.5; opacity: .92; }
.w-cue { margin-top: 8vh; display: flex; align-items: center; gap: 14px; }
.w-cue .label { color: inherit; opacity: .8; }
.w-cue i { width: 64px; height: 1px; background: currentColor; position: relative; overflow: hidden; opacity: .8; }
.w-cue i::after { content: ""; position: absolute; inset: 0; background: #fff; transform: translateX(-100%); animation: cue2 1.8s cubic-bezier(.76,0,.24,1) infinite; }
@keyframes cue2 { to { transform: translateX(100%); } }
.up { opacity: 0; transform: translateY(24px); transition: opacity .9s, transform 1.1s cubic-bezier(.2,.8,.2,1); }
.ready .up { opacity: 1; transform: none; }
.ready .up:nth-of-type(3) { transition-delay: .25s; } .ready .w-cue { transition-delay: .45s; }

/* Bölümler */
.chapter { position: relative; min-height: 170vh; padding: 20vh max(20px, 5vw); display: grid; grid-template-columns: minmax(0, 520px) 1fr; align-items: start; }
.chapter.right { grid-template-columns: 1fr minmax(0, 520px); }
.chapter.right .ch-copy { grid-column: 2; }
.ch-copy {
  position: sticky; top: 16vh;
  padding: clamp(26px, 3vw, 40px); border-radius: 30px;
  background: rgba(243,239,231,.9); box-shadow: 0 40px 90px -50px rgba(21,19,15,.5), inset 0 0 0 1px rgba(255,255,255,.6);
}
.ch-title { font-size: clamp(48px, 5.6vw, 96px); line-height: .9; letter-spacing: -.05em; margin-top: 10px; }
.ch-title em { color: var(--accent); }
.ch-lede { margin-top: 18px; font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.pieces { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 2px; }
.pieces li {
  display: grid; grid-template-columns: 38px 120px minmax(0, 1fr); align-items: center; gap: 12px;
  padding: 12px 0; border-top: 1px solid var(--line);
}
.pieces svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pieces b { font-weight: 600; font-size: 16px; letter-spacing: -.01em; }
.pieces span { font-size: 14px; color: var(--ink-2); line-height: 1.4; }
.pieces li.reveal:nth-child(2) { transition-delay: .06s; } .pieces li.reveal:nth-child(3) { transition-delay: .12s; } .pieces li.reveal:nth-child(4) { transition-delay: .18s; }

.ch-card {
  position: absolute; bottom: 14vh; margin: 0; width: min(300px, 40vw); rotate: -4deg; outline: none;
}
.ch-card:focus-visible .card-face { box-shadow: 0 0 0 3px #fff, 0 40px 70px -30px rgba(21,19,15,.55); }
.chapter .ch-card { right: 7vw; }
.chapter.right .ch-card { left: 7vw; rotate: 4deg; }
.ch-card { perspective: 900px; cursor: pointer; padding: 0; background: none; box-shadow: none; }
.card-in { position: relative; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.2,.8,.2,1); transform: rotateX(var(--ry, 0deg)) rotateY(calc(var(--rx, 0deg) + var(--flip, 0deg))); }
.ch-card.turned { --flip: 180deg; }
.ch-card.tilting .card-in { transition: transform .15s linear; }
.card-face, .card-back { padding: 9px 9px 0; background: #fbf9f4; border-radius: 6px; box-shadow: 0 40px 70px -30px rgba(21,19,15,.55); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.card-back { position: absolute; inset: 0; transform: rotateY(180deg); padding: 18px; color: var(--ink); display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: auto 1fr auto; gap: 6px 14px;
  background: repeating-linear-gradient(transparent 0 25px, rgba(61,111,214,.13) 25px 26px) #fbf9f4; }
.card-back::after { content: ""; position: absolute; left: 55%; top: 18px; bottom: 18px; width: 1px; background: rgba(21,19,15,.15); }
.pc-msg { grid-column: 1; grid-row: 1 / 3; font-size: 15px; line-height: 26px; font-style: italic; letter-spacing: -.01em; }
.pc-sign { grid-column: 1; grid-row: 3; font-size: 13px; color: var(--ink-3); }
.stamp { grid-column: 2; justify-self: end; width: 54px; height: 62px; padding: 5px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); outline: 2px dashed #e7dfcf; outline-offset: -2px; rotate: 6deg; }
.stamp img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; }
.postmark { position: absolute; right: 44px; top: 46px; width: 64px; height: 64px; border-radius: 50%; border: 1.5px solid rgba(217,102,63,.6); color: rgba(217,102,63,.8); display: grid; place-items: center; text-align: center; font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; line-height: 1.2; rotate: -14deg; }
.pc-to { grid-column: 2; grid-row: 3; font-size: 12px; line-height: 1.5; font-family: var(--mono); letter-spacing: .04em; border-bottom: 1px solid rgba(21,19,15,.2); padding-bottom: 4px; }
.ch-card img { width: 100%; aspect-ratio: 5 / 4; object-fit: contain; background: linear-gradient(#e7eef1, #f3ece0); border-radius: 3px; }
.ch-card figcaption { padding: 10px 2px 11px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }

/* Ara sözler */
.interlude { min-height: 90vh; display: grid; place-items: center; padding: 10vh max(20px, 6vw); text-align: center; color: #fff; }
.big-quote { font-size: clamp(40px, 6.4vw, 120px); line-height: .95; letter-spacing: -.05em; font-weight: 600; max-width: 14ch; text-shadow: 0 10px 50px rgba(0,0,0,.18); }
/* Italic glyphs extend beyond their advance width; keep the stagger without clipping them. */
.big-quote[data-split] .mask { overflow: visible; }
.big-quote em { font-weight: 300; }

/* Son */
.w-end { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 16vh max(20px, 5vw); color: #fff; }
.w-end-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

/* Yan noktalar */
.dots { position: fixed; right: max(16px, 2.4vw); top: 50%; z-index: 30; display: grid; gap: 14px; transform: translateY(-50%); transition: opacity .4s; }
.dots a { display: flex; align-items: center; justify-content: flex-end; gap: 12px; text-decoration: none; color: #fff; }
.dots i { width: 9px; height: 9px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; transition: background .3s, transform .3s; }
.dots a.on i { background: currentColor; transform: scale(1.25); }
.dots span { order: -1; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; opacity: 0; transform: translateX(8px); transition: opacity .3s, transform .3s; }
.dots a:hover span { opacity: .9; transform: none; }
.dots.gone { opacity: 0; pointer-events: none; }
.wp .nav-in { color: #fff; }
.wp .nav.light .nav-in { color: var(--ink); }
.wp .nav .btn.small { --bg: #fff; --fg: var(--ink); }
.wp .nav::before { background: linear-gradient(rgba(20,16,50,.35), rgba(20,16,50,0)); }

@media (max-width: 900px) {
  .chapter, .chapter.right { grid-template-columns: 1fr; min-height: auto; padding: 60vh 16px 12vh; }
  .chapter.right .ch-copy { grid-column: 1; }
  .ch-copy { position: relative; top: 0; }
  .ch-card { position: relative; bottom: auto; left: auto !important; right: auto !important; margin: 28px auto 0; width: min(300px, 80vw); }
  .pieces li { grid-template-columns: 32px 1fr; }
  .pieces li span { grid-column: 2; }
  .dots { display: none; }
  .interlude { min-height: 60vh; }
}

/* Sahneyi sürükle: tabla döner */
.grabbing, .grabbing * { cursor: grabbing !important; user-select: none; -webkit-user-select: none; }
.cursor .drag-tip { position: absolute; left: 22px; top: 14px; white-space: nowrap; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #fff; opacity: 0; transition: opacity .25s; }
.cursor.can-drag .drag-tip { opacity: .85; }
