/* ============================================================
   SÜREÇ SAYFASI — SCROLL PARALLAX AKIŞ
   "Bir Projenin Yolculuğu" — 6 adımlık dikey parallax anlatım.
   Play/hız kontrollü otomatik kaydırma ile izlenebilir.
   Görseller şimdilik fotoğraf; ileride karakalem/pastel çizimlerle
   değiştirilecek (yapı hazır: .hp-layer img src'lerini değiştirmek yeterli).
   ============================================================ */

/* Bölüm sarmalayıcı — sahneler burada dikey dizilir */
.hp {
  position: relative;
  background: #14110a; /* sahne zemini, sabit koyu */
}

/* ── Giriş / başlık ekranı ── */
.hp-intro {
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
  padding: 40px 24px;
  color: #f0e6cf;
}
.hp-intro .si-eyebrow { color: var(--gold-light); }
.hp-intro h1 { font-family: var(--font-headline); font-size: clamp(30px,4.5vw,52px); margin: 6px 0 0; color: #fff; }
.hp-intro p  { font-size: 15px; color: rgba(240,230,207,.7); max-width: 52ch; margin: 4px 0 0; line-height: 1.8; }
.hp-scroll-cue {
  margin-top: 18px; font-family: var(--font-mono, monospace); font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hp-scroll-cue i { animation: hpBob 1.6s ease-in-out infinite; }
@keyframes hpBob { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(6px);} }

/* ── Otomatik kaydırma kontrolleri (−  play  +) ── */
.hp-autoplay {
  margin-top: 26px;
  display: flex; align-items: center; justify-content: center; gap: 14px;
}
.hp-ap-btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; cursor: pointer;
  background: transparent; color: var(--gold);
  border: 2px solid var(--gold-border);
  transition: all .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.hp-ap-btn:hover { border-color: var(--gold); color: var(--gold-light); background: rgba(197,160,40,0.08); }
.hp-ap-btn:active { transform: scale(0.94); }
.hp-ap-speed { width: 40px; height: 40px; font-size: 13px; }
.hp-ap-play  { width: 56px; height: 56px; font-size: 18px; border-color: var(--gold); }
.hp-ap-play.is-playing { background: var(--gold); color: var(--carbon, #14110a); box-shadow: 0 0 24px rgba(197,160,40,0.45); }
.hp-ap-rate {
  min-width: 44px; text-align: left;
  font-family: var(--font-mono, monospace); font-size: 13px;
  color: var(--gold-light); letter-spacing: 0.04em;
}

/* ── Sahne — tam ekran, katmanlar üst üste ── */
.hp-scene {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

/* Parallax katmanı — mutlak, sahneyi kaplar */
.hp-layer {
  position: absolute;
  inset: -10% 0; /* kayma payı için taşır */
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
}
.hp-layer img { max-width: 100%; height: auto; display: block; }

/* Arka plan: sahneyi tümüyle kaplar, koyulaştırılmış */
.hp-layer--bg { inset: -12% 0; }
.hp-layer--bg img {
  width: 100%; height: 124%; object-fit: cover; max-width: none;
  filter: brightness(0.45) saturate(0.85) contrast(1.05);
}
/* arka planın üstüne koyu vinyet — ön katman ve yazı okunsun */
.hp-scene::after {
  content: ""; position: absolute; inset: 0; z-index: 15; pointer-events: none;
  background:
    linear-gradient(to top, rgba(15,12,6,0.92) 0%, rgba(15,12,6,0.25) 45%, rgba(15,12,6,0.55) 100%);
}

/* Orta katman: ortalanmış büyükçe pano */
.hp-layer--mid { z-index: 10; }
.hp-layer--mid img {
  width: min(62vw, 720px); height: auto; border-radius: 6px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  border: 1px solid rgba(197,160,40,0.25);
  filter: brightness(0.9);
}
/* Ön / kahraman katman: daha küçük, öne çıkan kart, altın çerçeve */
.hp-layer--fg { z-index: 12; }
.hp-layer--fg img {
  width: min(40vw, 420px); height: auto; border-radius: 6px;
  box-shadow: 0 40px 90px rgba(0,0,0,0.7);
  border: 2px solid rgba(197,160,40,0.55);
}
/* katmanları yatayda hafif kaydırıp derinlik hissi ver */
.hp-layer--fg.hp-pos-left  { justify-content: flex-start; padding-left: clamp(24px,8vw,140px); }
.hp-layer--fg.hp-pos-right { justify-content: flex-end;   padding-right: clamp(24px,8vw,140px); }
.hp-layer--mid.hp-pos-up   { align-items: flex-start; padding-top: 8vh; }

/* ── Sahne yazısı — sabit, öne çıkar ── */
.hp-caption {
  position: absolute;
  left: 0; right: 0; bottom: 10vh;
  z-index: 20;
  text-align: center;
  pointer-events: none;
  padding: 0 24px;
}
.hp-caption .step-no {
  font-family: var(--font-headline);
  font-size: 13px; font-weight: 700; letter-spacing: 0.2em;
  color: var(--gold); display: block; margin-bottom: 8px;
}
.hp-caption h2 {
  font-family: var(--font-headline);
  font-size: clamp(24px,4vw,40px); font-weight: 700;
  color: #fff; margin: 0 0 10px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.6);
}
.hp-caption p {
  font-size: 14px; line-height: 1.7; color: rgba(240,230,207,0.85);
  max-width: 54ch; margin: 0 auto;
}
/* caption'ı sahne görünürken yumuşak getir */
.hp-scene .hp-caption { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
.hp-scene.is-active .hp-caption { opacity: 1; transform: none; }

/* alt etiketler + standartlar */
.hp-caption .hp-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; pointer-events: auto; }
.hp-caption .hp-tag {
  font-size: 12px; color: var(--gold-light);
  background: rgba(20,14,0,0.6); border: 1px solid var(--gold-border);
  border-radius: 100px; padding: 5px 13px; backdrop-filter: blur(4px);
}
.hp-caption .hp-tag .std {
  color: var(--text-muted, #a99b78); font-size: 10.5px; margin-left: 6px;
  letter-spacing: 0.03em;
}

/* her adımdan blog yazısına köprü */
.hp-caption .hp-more {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  pointer-events: auto;
  font-size: 13px; font-weight: 600; letter-spacing: 0.03em;
  color: var(--gold-light); text-decoration: none;
  border-bottom: 1px solid var(--gold-border); padding-bottom: 3px;
  transition: color .2s ease, border-color .2s ease, gap .2s ease;
}
.hp-caption .hp-more:hover { color: #fff; border-color: var(--gold); gap: 12px; }

/* ── Kapanış sahnesi (CTA) ── */
.hp-outro {
  position: relative;
  min-height: 70vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 18px; padding: 60px 24px;
  background: radial-gradient(circle at 50% 30%, #241d10, #14110a 72%);
  color: #f0e6cf;
}
.hp-outro h2 { font-family: var(--font-headline); font-size: clamp(26px,4vw,42px); color: #fff; margin: 0; }
.hp-outro p  { font-size: 15px; color: rgba(240,230,207,.7); max-width: 50ch; margin: 0; line-height: 1.8; }
.hp-outro .hp-outro-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 8px; }

/* ── Erişilebilirlik / mobil ── */
@media (prefers-reduced-motion: reduce) {
  .hp-layer { transform: none !important; }
  .hp-scroll-cue i { animation: none; }
}
@media (max-width: 720px) {
  .hp-layer--mid img { width: 82vw; }
  .hp-layer--fg img  { width: 62vw; }
  .hp-layer--fg.hp-pos-left, .hp-layer--fg.hp-pos-right { justify-content: center; padding: 0; }
  .hp-caption { bottom: 8vh; }
}
