/* RODOSU — akış cilası (2026-11-14)
 * journey.css + normal-flow.css üzerine son katman:
 * kaydırdıkça beliren bölümler, yumuşak mikro etkileşimler, açılış nefesi.
 * Tüm animasyonlar yalnızca transform/opacity kullanır (GPU dostu). */

/* ---------- Açılış: logo altındaki yazı nefes alarak gelir ---------- */
@media (prefers-reduced-motion: no-preference) {
  .boot-flow #opening-caption p,
  .intro-ready #opening-caption p {
    animation: akis-rise .9s cubic-bezier(.22,.8,.3,1) .15s backwards;
  }
  .boot-flow #opening-caption span,
  .intro-ready #opening-caption span {
    animation: akis-rise .9s cubic-bezier(.22,.8,.3,1) .32s backwards;
  }
  .boot-flow #next-scene,
  .intro-ready #next-scene {
    animation: akis-fade 1s ease .75s backwards;
  }
  .intro-ready #next-scene > span + span {
    animation: akis-nudge 2.6s ease-in-out 2s infinite;
  }
}
@keyframes akis-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@keyframes akis-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes akis-nudge {
  0%, 100% { transform: none; }
  12%      { transform: translateY(4px); }
  24%      { transform: none; }
}

/* ---------- Kaydırdıkça beliren bölümler ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal-enabled #still-story section > div,
  .reveal-enabled #still-story section > img,
  .reveal-enabled #still-story section > svg,
  .reveal-enabled #still-story section > h2,
  .reveal-enabled #still-story section > p,
  .reveal-enabled #still-story section > .round-cta,
  .reveal-enabled .continuation-copy > *,
  .reveal-enabled .continuation-visual > img {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s cubic-bezier(.22,.8,.3,1), transform .7s cubic-bezier(.22,.8,.3,1);
  }
  .reveal-enabled #still-story section.in-view > div,
  .reveal-enabled #still-story section.in-view > h2,
  .reveal-enabled #still-story section.in-view > p,
  .reveal-enabled #still-story section.in-view > .round-cta,
  .reveal-enabled .continuation-copy.in-view > *,
  .reveal-enabled .continuation-visual.in-view > img {
    opacity: 1;
    transform: none;
  }
  .reveal-enabled #still-story section.in-view > img,
  .reveal-enabled #still-story section.in-view > svg {
    opacity: 1;
    transform: none;
    transition-delay: .12s;
  }
  .reveal-enabled .continuation-copy > :nth-child(2) { transition-delay: .07s; }
  .reveal-enabled .continuation-copy > :nth-child(3) { transition-delay: .13s; }
  .reveal-enabled .continuation-copy > :nth-child(4) { transition-delay: .19s; }
  .reveal-enabled .continuation-copy > :nth-child(5) { transition-delay: .25s; }
}
/* Hareket azaltıldığında her şey anında görünür */
.reduced-motion #still-story section > *,
.reduced-motion .continuation-copy > *,
.reduced-motion .continuation-visual > img { opacity: 1 !important; transform: none !important; }

/* ---------- Bölüm üstyazılarında su çizgisi ---------- */
#still-story .static-feature .eyebrow,
#still-story .static-life .eyebrow {
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}
#still-story .static-feature .eyebrow::after,
#still-story .static-life .eyebrow::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 44px; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #08c2cd, #a8f2e7);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .8s cubic-bezier(.22,.8,.3,1) .25s;
}
html[dir="rtl"] #still-story .static-feature .eyebrow::after { left: auto; right: 0; transform-origin: right; }
#still-story section.in-view .eyebrow::after { transform: scaleX(1); }
.reduced-motion #still-story .eyebrow::after { transform: scaleX(1) !important; }

/* ---------- Mikro etkileşimler ---------- */
.round-cta {
  transition: background-color .25s ease, transform .25s ease;
}
.round-cta:hover { transform: translateY(-2px); }
.round-cta:active { transform: none; }
.round-cta span { transition: transform .25s ease; }
.round-cta:hover span { transform: translateX(3px); }
.global-nav-link, .global-footer-links a { transition: opacity .2s ease; }
.global-nav-link:hover, .global-footer-links a:hover { opacity: .62; }
.specs summary { transition: color .2s ease; }
.specs summary:hover { color: #087c85; }

/* ---------- Cihaz bölümü: ürün hafifçe süzülür ---------- */
@media (prefers-reduced-motion: no-preference) {
  .continuation-visual.in-view > img {
    animation: akis-float 7s ease-in-out 1s infinite;
  }
}
@keyframes akis-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* ---------- Kolaj görseli (SVG kolajın yerine geldi) ---------- */
#still-story .static-feature > img.system-collage {
  max-height: 640px;
  object-fit: contain;
}
#still-story #still-screen > img.system-collage { max-height: 460px; }

/* ---------- Küçük düzeltmeler ---------- */
/* Sahne şeridi: intro yalnızca 2 sahne; eski 7 nokta navigasyonu gizli kalır (normal-flow halleder). */
#stage #card-stages { text-wrap: balance; }
/* Dokunmatikte hover takılmasın */
@media (hover: none) {
  .round-cta:hover { transform: none; }
  .round-cta:hover span { transform: none; }
}
