/* ================================================================
   Yolculuk (yolculuk.html) — "Kırmızı İp". Sitenin tasarım sistemiyle (style.css değişkenleri,
   Cormorant/DM Sans/Space Mono, açık/koyu tema). Tek ek renk: ipin kırmızısı.
   ================================================================ */
.jy-page { --thread: #B3172F; --thread-hi: #C9364C; }
[data-theme="dark"] .jy-page { --thread: #D2384E; --thread-hi: #F0566A; }

/* Sahne: sabit tuval, içerik üstünde akar */
#jyScene { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; display: block; z-index: 0; pointer-events: none; }
.jy-page .sky, .jy-page .particle { display: none !important; }      /* app.js süsleri bu sayfada 3D sahneyle çakışır */
.jy-main, .jy-page .footer { position: relative; z-index: 1; }
.jy-page .footer { background: var(--bg-primary); }

.jy-eyebrow { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); }
.jy-cap-meta .k, .jy-eyebrow b { color: var(--thread); font-weight: 400; }

/* ---------- Açılış: iki isim, aralarında düğüm ---------- */
.jy-hero {
  min-height: 100vh; min-height: 100svh; display: grid; align-content: center; justify-items: center; text-align: center;
  padding: calc(var(--nav-height) + 40px) var(--gutter) 90px; position: relative;
}
.jy-names {
  margin: 22px 0 0; width: 100%; max-width: 1280px; display: flex; align-items: baseline; justify-content: space-between;
  font-family: var(--font-display); font-weight: 500; font-size: clamp(64px, 13vw, 200px); line-height: .9; letter-spacing: -.02em; color: var(--text-primary);
}
.jy-names .r { font-style: italic; }
.jy-sub { margin: clamp(24px, 5vh, 50px) 0 0; font-family: var(--font-display); font-style: italic; font-size: clamp(1.2rem, 2vw, 1.55rem); color: var(--text-secondary); max-width: 34ch; }
.jy-sub b { font-style: normal; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.jy-scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); display: grid; justify-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: .65rem; letter-spacing: .26em; text-transform: uppercase; color: var(--text-muted);
}
.jy-scroll:hover { color: var(--thread); }
.jy-scroll i { width: 1px; height: 44px; background: linear-gradient(var(--thread), transparent); transform-origin: top; animation: jy-drip 2.4s ease-in-out infinite; }
@keyframes jy-drip { 0% { transform: scaleY(0) } 50% { transform: scaleY(1) } 100% { transform: scaleY(1); opacity: 0 } }
@media (max-width: 640px) {
  .jy-names { flex-direction: column; align-items: center; gap: .9em; font-size: clamp(60px, 21vw, 110px); }
}

[data-split] .ch { display: inline-block; opacity: 0; transform: translateY(.35em) rotate(4deg); filter: blur(8px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform 1.1s cubic-bezier(.2,.7,.2,1), filter .9s; transition-delay: calc(var(--i) * 70ms + 200ms); }
.jy-ready [data-split] .ch { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) { [data-split] .ch { transition: none; } .jy-scroll i { animation: none; } }

/* ---------- Duraklar ---------- */
.jy-stop { min-height: 92vh; display: flex; align-items: center; padding: 0 var(--gutter); max-width: 1400px; margin: 0 auto; }
.jy-stop.right { justify-content: flex-end; }
.jy-cap { width: min(420px, 44vw); padding: 24px 0; opacity: 0; transform: translateY(30px); transition: opacity .7s, transform .9s cubic-bezier(.2,.7,.2,1); }
.jy-stop.on .jy-cap { opacity: 1; transform: none; }
.jy-cap-meta { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.jy-cap-meta .n { margin-left: auto; }
.jy-cap h2 { margin: 0 0 12px; font-family: var(--font-display); font-weight: 500; font-size: clamp(2.2rem, 4.4vw, 3.8rem); line-height: 1; letter-spacing: -.01em; color: var(--text-primary); text-wrap: balance; }
.jy-cap p { margin: 0 0 18px; color: var(--text-secondary); max-width: 38ch; }
.jy-cap a.go { display: inline-flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--thread);
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-primary); }
.jy-cap a.go:hover { color: var(--thread); }
.jy-cap .ago { margin-top: 16px; font-family: var(--font-display); font-style: italic; font-size: 1.05rem; color: var(--text-muted); }

/* WebGL yoksa: durakta düz polaroid */
.jy-flat-ph { display: none; }
.jy-flat .jy-stop { min-height: 0; padding-block: 8vh; gap: 5vw; }
.jy-flat .jy-flat-ph { display: block; width: min(420px, 46vw); background: #F3ECE1; padding: 12px 12px 44px; transform: rotate(-2deg); box-shadow: var(--shadow-lg); }
.jy-flat .jy-flat-ph img { width: 100%; }
.jy-flat .jy-stop.right .jy-flat-ph { order: 2; transform: rotate(2deg); }

@media (max-width: 760px) {
  .jy-stop, .jy-stop.right { min-height: 105vh; align-items: flex-end; justify-content: center; padding-bottom: 16vh; }
  .jy-cap { width: 100%; padding: 22px 18px; border-radius: 18px; background: color-mix(in srgb, var(--bg-primary) 84%, transparent);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
  .jy-flat .jy-stop { flex-direction: column; align-items: center; }
  .jy-flat .jy-flat-ph { width: 86%; }
}

/* ---------- İpin ucu ---------- */
.jy-end { min-height: 100vh; display: grid; align-content: center; justify-items: center; text-align: center; padding: 0 var(--gutter); }
.jy-end h2 { margin: 18px 0 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(3rem, 8vw, 7rem); line-height: .95; color: var(--text-primary); }
.jy-end h2 em { color: var(--thread); }
.jy-next { margin-top: 30px; color: var(--text-secondary); }
.jy-next a { color: var(--text-primary); text-decoration: underline; text-decoration-color: var(--thread); text-underline-offset: 4px; }
.jy-next b { font-family: var(--font-display); font-style: italic; font-size: 1.4rem; color: var(--thread); }
.jy-end .btn { margin-top: 34px; }

/* ---------- İlerleme şeridi ---------- */
.jy-hud {
  position: fixed; left: var(--gutter); right: var(--gutter); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 5;
  display: flex; align-items: center; gap: 18px; opacity: 0; transition: opacity .5s; pointer-events: none;
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; color: var(--text-muted); font-variant-numeric: tabular-nums;
}
.jy-hud.show { opacity: 1; }
.jy-hud-bar { flex: 1; height: 1px; background: var(--border); position: relative; }
.jy-hud-bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--thread); box-shadow: 0 0 8px var(--thread); }
@media (max-width: 768px) { .has-tabbar .jy-hud { bottom: calc(76px + env(safe-area-inset-bottom)); } }
