/* RM5 film eki (2026-11-18): home-v4.css'ten sonra yüklenir. Oynatıcı: js/home-v5.js
   Tuval karenin kendi boyutunda çizilir, ekrana burada oturur. .v4-hi: kaydırma durunca gelen net kare. */
.v4-canvas { object-fit: cover; }
.v4-hi { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; opacity: 0; pointer-events: none; transition: opacity .1s linear; }
.v4-hi.is-on { opacity: 1; transition: opacity .35s ease; }
/* Film ekranı kaplarken kaydırmayı oynatıcı yönetir: her hareket tek sahne (js/home-v5.js, step) */
.v4-film.is-lock .v4-stick { touch-action: none; }

/* Otomatik kip (2026-11-20, js/home-v5.js OTO): film site ilk açıldığında bir kez, baştan sona tek parça oynar; bitince
   son karede durur. .v5-skip oynarken "Geç", .v5-again bitince "Tekrar izle". .v5-cut: atlamada kısa kararma. Yalnız opacity. */
.v5-cut { position: absolute; inset: 0; z-index: 1; background: #0E0D0C; opacity: 0; pointer-events: none; transition: opacity .24s ease; }
.v5-cut.on { opacity: 1; }
.v5-ob { position: absolute; z-index: 5; left: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); height: 36px; padding: 0 16px; border-radius: 30px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(14, 13, 12, .55); color: #fff; font: 600 .8rem/1 var(--font-body); letter-spacing: .05em; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .45s ease, background-color .2s ease; -webkit-tap-highlight-color: transparent; }
.v5-ob:hover { background: rgba(14, 13, 12, .8); }
.v4-film.is-playing .v5-skip { opacity: 1; pointer-events: auto; }
.v4-film.is-light .v5-ob { background: rgba(255, 255, 255, .7); border-color: rgba(21, 19, 19, .16); color: #151313; }
/* Film bitince: belirgin "Tekrar izle" + kaydırıcı denetimleri (oklar, noktalar) */
.v5-sl { position: absolute; z-index: 5; left: 16px; bottom: calc(72px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 8px; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .5s ease, transform .5s cubic-bezier(.2, .7, .2, 1); }
.v4-film.is-done .v5-sl { opacity: 1; transform: none; pointer-events: auto; }
.v5-sl button { border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.v5-again { display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 16px 0 5px !important; border-radius: 30px; background: #fff; color: #151313; font: 700 .84rem/1 var(--font-body); white-space: nowrap; box-shadow: 0 6px 22px rgba(0, 0, 0, .3); transition: transform .2s cubic-bezier(.2, .7, .2, 1), box-shadow .2s ease; }
.v5-again:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(0, 0, 0, .36); }
.v5-again i { width: 30px; height: 30px; border-radius: 50%; background: #E11D2E; display: grid; place-items: center; }
.v5-again svg { width: 13px; height: 13px; fill: #fff; margin-left: 1px; }
.v4-film.is-light .v5-again { background: #151313; color: #fff; }
.v4-film.is-oto .v4-stick { touch-action: pan-y; }
/* Kaydırıcı sekmeleri: numara + konu, üstte dolan süre çizgisi (süre betikteki SLIDE_MS ile aynı: 7 sn) */
@keyframes v5fill { to { transform: scaleX(1); } }
.v5-tabs { position: absolute; z-index: 5; left: 16px; right: 16px; bottom: calc(70px + env(safe-area-inset-bottom)); display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .5s ease, transform .5s cubic-bezier(.2, .7, .2, 1); }
.v4-film.is-done .v5-tabs { opacity: 1; transform: none; pointer-events: auto; }
.v5-tab { position: relative; display: grid; gap: 3px; justify-items: start; padding: 11px 0 2px; border: 0; background: none; color: rgba(255, 255, 255, .6); text-align: left; cursor: pointer; font: 600 .74rem/1.25 var(--font-body); transition: color .3s ease; -webkit-tap-highlight-color: transparent; }
.v5-tab::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: rgba(255, 255, 255, .28); }
.v5-tab u { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: #E11D2E; transform: scaleX(0); transform-origin: 0 50%; }
.v5-tab i { font-style: normal; font-size: .64rem; letter-spacing: .12em; opacity: .85; }
.v5-tab b { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.v5-tab:hover { color: #fff; }
.v5-tab.on { color: #fff; }
.v5-tab.on u { animation: v5fill 7s linear forwards; }
.v4-film.is-light .v5-tab { color: rgba(21, 19, 19, .58); }
.v4-film.is-light .v5-tab:hover, .v4-film.is-light .v5-tab.on { color: #151313; }
.v4-film.is-light .v5-tab::before { background: rgba(21, 19, 19, .2); }
/* Sahne geçişi: hedef sahnenin net karesi üstte belirir; yazı ve gölgeler yumuşak değişir */
.v5-xf { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; opacity: 0; transform: scale(1.05); pointer-events: none; transition: opacity .65s ease, transform 1.7s cubic-bezier(.2, .7, .2, 1); }
.v5-xf.on { opacity: 1; transform: none; }
.v4-film.is-done .v4-txt { transition: opacity .5s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.v4-film.is-done .v4-shade { transition: opacity .6s ease; }
.v4-film.is-swap .v4-txt { opacity: 0 !important; }
/* Film oynarken sahne yazıları ve yazı gölgeleri görünmez (sahibi: "bunlara gerek yok"); yazılar yalnız kaydırıcıda çıkar */
.v4-film.is-oto.is-playing .v4-txt { opacity: 0 !important; pointer-events: none; transition: opacity .35s ease; }
.v4-film.is-oto.is-playing .v4-shade { opacity: 0 !important; transition: opacity .35s ease; }
.v4-film.is-done .v4-prog { opacity: 0; }
@media (max-width: 1399px) { .v4-film.is-oto .v4-hint { display: none; } }
/* Mobil ilk ekran (2026-11-24, mobil denetim): telefonda film kendiliğinden oynarken ekranda yalnız film karesi ve "Geç" kalıyordu.
   Yalnız ≤899px: ilk sahnenin başlığı (tek H1) oynarken de görünür kalır, altında koyu geçiş ve iki kısa düğme (Teklif al / WhatsApp);
   alt yazı oynarken gizlenir. Masaüstünde değişiklik yok (.v4-macts gizli). Film bitince sahne yazıları eski kurala döner. */
.v4-macts { display: none; }
@media (max-width: 899px) {
    .v4-macts { display: flex; gap: 10px; margin-top: 14px; }
    .v4-film .v4-txt[data-a="1"] .v4-acts { display: none; }
    .v4-mbtn { flex: 1 1 0; min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 14px; border-radius: 12px; font: 700 .95rem/1 var(--font-body); text-decoration: none; -webkit-tap-highlight-color: transparent; }
    .v4-mbtn-q { background: #E11D2A; color: #fff; }
    .v4-mbtn-wa { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .3); }
    .v4-mbtn:active { transform: scale(.98); }
    .v4-film .v4-txt[data-a="1"]::before { content: ""; position: absolute; left: -22px; right: -22px; top: -70px; bottom: calc(-76px - env(safe-area-inset-bottom)); z-index: -1; pointer-events: none;
        background: linear-gradient(to top, rgba(10, 9, 9, .9) 0%, rgba(10, 9, 9, .6) 55%, rgba(10, 9, 9, 0) 100%); }
    .v4-film.is-oto.is-playing .v4-txt[data-a="1"] { opacity: 1 !important; visibility: visible !important; pointer-events: auto; }   /* home-v5.js satır içi visibility:hidden yazıyor; !important şart (2026-11-24 son kontrol) */
    .v4-film.is-oto.is-playing .v4-txt[data-a="1"] .v4-sub { display: none; }
    .v4-film .v5-ob { height: 44px; }   /* aşağıdaki telefon kuralı (.v5-ob 34px) sonra geldiği için daha özgül seçici */
    .v4-film .v4-copy { bottom: calc(92px + env(safe-area-inset-bottom)); }   /* alttaki WhatsApp / Ara / Diğer çubuğuyla arada nefes payı */
}
/* Telefon: altta sabit WhatsApp / Ara çubuğu (≈88px) ve sağda sohbet balonu var. Denetimler çubuğun üstünde tek satırdır:
   solda sekmeler, sağlarında yalnız ikon olarak "Tekrar izle"; balonun altına ve düğmenin üstüne taşmaz. */
@media (max-width: 899px) {
    /* Telefonda altta yer yok (başlık + düğme + WhatsApp çubuğu + sohbet balonu): bütün denetimler ÜSTTE, menünün altında durur */
    .v5-ob { left: auto; right: 16px; bottom: auto; top: calc(78px + env(safe-area-inset-top)); height: 34px; padding: 0 14px; }
    .v5-tabs { left: 16px; right: 68px; top: calc(80px + env(safe-area-inset-top)); bottom: auto; gap: 6px; transform: translateY(-8px); }
    .v5-tab { font-size: .68rem; padding-top: 9px; }
    .v5-tab i { display: none; }
    .v5-sl { left: auto; right: 16px; top: calc(76px + env(safe-area-inset-top)); bottom: auto; transform: translateY(-8px); }
    .v5-again { width: 40px; height: 40px; padding: 0 !important; justify-content: center; font-size: 0; gap: 0; }
    .v5-again i { width: 40px; height: 40px; }
}
@media (min-width: 900px) {
    .v5-ob, .v5-sl { left: auto; right: clamp(28px, 5vw, 110px); bottom: 22px; }
    .v5-again { height: 44px; font-size: .9rem; } .v5-again i { width: 34px; height: 34px; }
    .v5-tabs { left: clamp(28px, 5vw, 110px); right: auto; width: min(600px, 44vw); bottom: 24px; gap: 14px; }
    .v5-tab { font-size: .86rem; padding-top: 13px; }
    .v5-tab i { font-size: .68rem; }
    /* 2026-11-24: sağ alttaki "Bize ulaşın" düğmesi (site-v2.css .cw: right 24px, bottom 24px, 52px yükseklik) ile çakışmasın:
       "Geç" / "Tekrar izle" düğmenin üstüne çıkar, aynı sağ hizada durur. Çerez şeridi açıkken düğme 58px kalktığı için onlar da kalkar. */
    .v5-ob, .v5-sl { right: 24px; bottom: 96px; }
    body.v2:has(.cookie-banner.show) .v5-ob, body.v2:has(.cookie-banner.show) .v5-sl { bottom: 154px; }
    /* 2026-11-24 son kontrol: "Tekrar izle" beyaz hap, hemen altındaki koyu "Bize ulaşın" hapıyla aynı aileden olsun (koyu zemin, ince çizgi) */
    .v4-film:not(.is-light) .v5-again { background: var(--v2-band, #141414); color: #FAFAFA; border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 14px 34px -14px rgba(0, 0, 0, .6); }
    body.v2:has(.cw.is-open) .v5-ob, body.v2:has(.cw.is-open) .v5-sl { opacity: 0; pointer-events: none; }
}
@media (prefers-reduced-motion: reduce) { .v5-ob, .v5-cut, .v5-sl, .v5-tabs, .v5-xf, .v4-film.is-done .v4-txt { transition: none; } .v5-tab.on u { animation: none; transform: scaleX(1); } }

/* ── Filmin devamı (2026-11-19). Sürekli hareketlerin hepsi yalnız transform / opacity ile ve yalnız bölüm ekrandayken (.is-play) çalışır. ── */

/* Akan yazı bandı */
.v5-band { overflow: hidden; background: #0E0E0E; padding: clamp(6px, 1.5vw, 20px) 0 clamp(40px, 6vw, 84px); }
.v5-band-run { display: flex; align-items: center; width: max-content; will-change: transform; animation: v5run 60s linear infinite; animation-play-state: paused; }
.v5-band.is-play .v5-band-run { animation-play-state: running; }
.v5-band span { margin-right: clamp(20px, 3vw, 46px); font: 800 clamp(2.5rem, 7.4vw, 6.2rem)/1.05 var(--font-head); letter-spacing: -.04em; white-space: nowrap; color: #fff; }
.v5-band span.o { color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .5); }
.v5-band i { flex: none; width: clamp(10px, 1.1vw, 16px); height: clamp(10px, 1.1vw, 16px); margin-right: clamp(20px, 3vw, 46px); border-radius: 50%; background: var(--r4-red); }
@keyframes v5run { to { transform: translate3d(-50%, 0, 0); } }

/* Süreç: çizgi çizilir, etkin adım sırayla yanar */
body.v2 .v5-proc .v2-circle { isolation: isolate; }
body.v2 .v5-proc .v2-circle::before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: 50%; background: var(--r4-red); opacity: 0; }
body.v2 .v5-proc.is-play .v2-circle::before { animation: v5step 8s linear infinite; }
body.v2 .v5-proc .v2-steps li:nth-child(2) .v2-circle::before { animation-delay: 2s; }
body.v2 .v5-proc .v2-steps li:nth-child(3) .v2-circle::before { animation-delay: 4s; }
body.v2 .v5-proc .v2-steps li:nth-child(4) .v2-circle::before { animation-delay: 6s; }
@keyframes v5step { 0% { opacity: 0; } 5% { opacity: 1; } 22% { opacity: 1; } 29% { opacity: 0; } 100% { opacity: 0; } }
@media (min-width: 768px) {
    body.v2 .v5-proc .v2-circle { position: relative; }
    body.v2 .v5-proc .v2-steps li:not(:last-child)::after { transform: scaleX(0); transform-origin: 0 50%; transition: transform .9s cubic-bezier(.2, .7, .2, 1) .2s; }
    body.v2 .v5-proc .v2-steps li:nth-child(2)::after { transition-delay: .55s; }
    body.v2 .v5-proc .v2-steps li:nth-child(3)::after { transition-delay: .9s; }
    body.v2 .v5-proc.is-seen .v2-steps li:not(:last-child)::after { transform: scaleX(1); }
}

/* Sayaçlar sayarken rakam genişliği oynamasın */
body.v2 .proof-stats b { font-variant-numeric: tabular-nums; }

/* Kapanış sahnesi: filmin ilk karesi, çok yavaş yaklaşan kamera */
body.v2 .v5-end { --v2-ink: #fff; --v2-ink-2: #DDD8D2; --v2-ink-3: #B9B2AB; --v2-rule: rgba(255, 255, 255, .2); --v2-rule-2: rgba(255, 255, 255, .45);
    display: grid; align-items: end; min-height: min(88svh, 820px); padding-block: 0; background: #0E0D0C; color: #fff; isolation: isolate; }
body.v2 .v5-end .v2-marble { display: none; }
.v5-end-bg { position: absolute; inset: 0; z-index: -2; display: block; overflow: hidden; }
.v5-end-bg img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 34%; transform: scale(1.04); will-change: transform; animation: v5zoom 28s ease-in-out infinite alternate; animation-play-state: paused; }
.v5-end.is-play .v5-end-bg img { animation-play-state: running; }
@keyframes v5zoom { from { transform: scale(1.04) translate3d(0, 0, 0); } to { transform: scale(1.15) translate3d(-1.2%, -1%, 0); } }
body.v2 .v5-end::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(to top, rgba(12, 11, 10, .95) 0%, rgba(12, 11, 10, .82) 36%, rgba(12, 11, 10, .25) 62%, rgba(12, 11, 10, 0) 80%); }
body.v2 .v5-end .v2-contact-in { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-block: clamp(40px, 8vw, 96px); }
body.v2 .v5-end h2 { color: #fff; }
body.v2 .v5-end .v2-link-dark { color: #fff; }
@media (min-width: 900px) {
    body.v2 .v5-end { align-items: center; min-height: min(92svh, 900px); }
    .v5-end-bg img { object-position: 62% 50%; }
    body.v2 .v5-end::after { background: linear-gradient(90deg, rgba(12, 11, 10, .9) 0%, rgba(12, 11, 10, .72) 30%, rgba(12, 11, 10, .2) 58%, rgba(12, 11, 10, 0) 76%); }
    body.v2 .v5-end .v2-contact-in { gap: 22px; }
    body.v2 .v5-end .v2-contact-in > * { max-width: 560px; }
}
/* ── İkinci tur (yalnız önizleme, $rm5Next): film sahnesinden kareler ── */
/* Hizmetler: görseli olmayan hizmetin sahnesi */
.v5-sbg, .v5-pbg { position: absolute; inset: 0; z-index: 0; display: block; overflow: hidden; }
.v5-sbg img, .v5-pbg img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.03); will-change: transform; animation: v5drift 24s ease-in-out infinite alternate; animation-play-state: paused; }
.is-play .v5-sbg img, .is-play .v5-pbg img { animation-play-state: running; }
@keyframes v5drift { from { transform: scale(1.03) translate3d(0, 0, 0); } to { transform: scale(1.12) translate3d(1%, -.8%, 0); } }
.v5-sbg::after, .v5-pbg::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.v5-sbg::after { background: linear-gradient(90deg, rgba(14, 13, 12, .92) 0%, rgba(14, 13, 12, .74) 38%, rgba(14, 13, 12, .28) 70%, rgba(14, 13, 12, .1) 100%), linear-gradient(to top, rgba(14, 13, 12, .55), rgba(14, 13, 12, 0) 45%); }
body.v2 .v2-split-panel.v5-has-bg > :not(.v5-sbg) { position: relative; z-index: 1; }
body.v2 .v2-split-panel.v5-has-bg { justify-content: flex-end; }
body.v2 .v2-split-panel.v5-has-bg p { color: #E4DFDA; }
body.v2 .v2-split-panel.v5-has-bg .v2-split-n { color: #CFC9C3; }
@media (max-width: 767px) {
    .v5-sbg::after { background: linear-gradient(to top, rgba(14, 13, 12, .95) 0%, rgba(14, 13, 12, .8) 45%, rgba(14, 13, 12, .3) 80%, rgba(14, 13, 12, .15) 100%); }
}

/* Hazır programlar: başlık, kasadaki programın yakın çekimi üzerinde */
body.v2 .v5-phead { position: relative; isolation: isolate; overflow: hidden; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 12px; flex-wrap: nowrap;
    min-height: clamp(300px, 34vw, 460px); padding: clamp(22px, 3.2vw, 48px); border-radius: 20px; background: #151414; color: #fff; }
body.v2 .v5-phead > :not(.v5-pbg) { position: relative; z-index: 1; }
.v5-pbg img { object-position: 50% 50%; }
.v5-pbg::after { background: linear-gradient(90deg, rgba(14, 13, 12, .9) 0%, rgba(14, 13, 12, .66) 30%, rgba(14, 13, 12, .12) 56%, rgba(14, 13, 12, 0) 72%), linear-gradient(to top, rgba(14, 13, 12, .5), rgba(14, 13, 12, 0) 50%); }
body.v2 .v5-phead h2 { max-width: 11em; color: #fff; }
body.v2 .v5-phead .v2-prod-sub { max-width: 30em; text-align: left; color: #E4DFDA; }
@media (max-width: 767px) {
    body.v2 .v5-phead { min-height: 480px; }
    .v5-pbg { bottom: 34%; }
    .v5-pbg img { object-position: 52% 50%; }
    .v5-pbg::after { background: linear-gradient(to top, #151414 0%, rgba(21, 20, 20, .55) 22%, rgba(21, 20, 20, 0) 50%); }
}

@media (prefers-reduced-motion: reduce) {
    .v5-sbg img, .v5-pbg img { animation: none !important; }
    .v5-band-run, .v5-end-bg img, body.v2 .v5-proc .v2-circle::before { animation: none !important; }
    body.v2 .v5-proc .v2-steps li:not(:last-child)::after { transition: none; transform: none; }
}
