/* =========================================================================
   UYAN/dev — SİNEMATİK GİRİŞ: "bir web sitesinin anatomisi"
   Yapışkan sahne + kaydırmaya bağlı ilerleme (js/cine.js → --p, --blur …)
   Stil: parallax storytelling · 5 katman · reduced-motion → durağan son kare
   ========================================================================= */

.c-cine { position: relative; height: 340vh; }
.cine-sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate;
  --g: #00ff9c; --c: #00e5ff; --m: #ff2bd6; --y: #ffd400;
  --mono: "JetBrains Mono", ui-monospace, monospace; --head: "Space Grotesk", system-ui, sans-serif; --serif: "Instrument Serif", Georgia, serif;
}
/* film greni */
.cine-sticky::after {
  content: ""; position: absolute; inset: 0; z-index: 9; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------------------------------------------------------------- ARKA PLAN */
.cine-bg { position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(48% 42% at 50% 52%, rgba(0,255,156,calc(.10 + var(--glow, 0) * .14)), transparent 70%),
    radial-gradient(30% 30% at 72% 30%, rgba(0,229,255,.08), transparent 70%),
    radial-gradient(35% 35% at 25% 75%, rgba(255,43,214,calc(var(--glow, 0) * .08)), transparent 70%),
    #000;
}
.cine-bg::before { /* perspektifli zemin ızgarası */
  content: ""; position: absolute; left: -50%; right: -50%; bottom: -10%; height: 70%;
  background-image: linear-gradient(rgba(0,255,156,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(0,255,156,.14) 1px, transparent 1px);
  background-size: 64px 64px; transform: perspective(600px) rotateX(72deg); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(0deg, #000, transparent 75%); mask-image: linear-gradient(0deg, #000, transparent 75%);
  opacity: calc(.25 + var(--tilt, 0) * .5);
}
.cine-word {
  position: absolute; right: -2vw; bottom: -4vw; z-index: 1; font-family: var(--head); font-weight: 700; line-height: .8; letter-spacing: -.06em;
  font-size: 23vw; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.07); white-space: nowrap; pointer-events: none;
  transform: translate3d(calc(var(--p, 0) * -14vw), 0, 0);
}
.cine-word span { -webkit-text-stroke-color: rgba(0,255,156,.16); }

/* ---------------------------------------------------------------- SAHNE + KATMANLAR */
.cine-stage { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; perspective: 1700px; perspective-origin: 50% 40%; }
.cine-stack {
  --w: min(760px, 74vw, 108vh); --gap: calc(var(--w) * .16);
  position: relative; width: var(--w); aspect-ratio: 16 / 10; transform-style: preserve-3d;
  transform: translate3d(0, var(--ty, 0px), 0) scale(var(--s, .92)) rotateX(var(--rx, 0deg)) rotateZ(var(--rz, 0deg)) rotateY(var(--ry, 0deg));
  font-size: calc(var(--w) * .02); will-change: transform;
}
/* zemin gölgesi */
.cine-stack::before {
  content: ""; position: absolute; inset: -12%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0,255,156,.22), transparent);
  transform: translateZ(calc(var(--gap) * var(--e, 0) * -2.6 - 8px)); opacity: calc(.3 + var(--tilt, 0) * .7);
}
.cl {
  position: absolute; inset: 0; border-radius: calc(var(--w) * .02); overflow: hidden;
  transform: translateZ(calc((2 - var(--i)) * var(--gap) * var(--e, 0) + (4 - var(--i)) * 4px));
  border: 1px solid var(--lc); box-shadow: 0 0 0 1px rgba(0,0,0,.4), 0 0 calc(var(--w) * .06) -4px var(--lc);
}
/* alt katmanlar ayrışma başlayana kadar gizli: Safari neredeyse üst üste duran 3D yüzeyleri yanlış sıralayıp
   kod/ızgara katmanını öndeki ekranın üstüne çizebiliyor. Birleşik halde zaten yalnızca ön ekran görünmeli. */
.cl:not([data-n="0"]) { opacity: var(--sub, 0); visibility: var(--subv, hidden); }
.cl[data-n="0"] { --i: 0; } .cl[data-n="1"] { --i: 1; } .cl[data-n="2"] { --i: 2; } .cl[data-n="3"] { --i: 3; } .cl[data-n="4"] { --i: 4; }
.cl-tag { position: absolute; left: 1.2em; top: 1em; font-family: var(--mono); font-size: .62em; letter-spacing: .08em; color: var(--lc); opacity: .9; z-index: 2; }

/* 01 · arayüz — örnek premium ürün sitesi (açık zemin + koyu görsel panel) */
.cl-ui { --lc: rgba(255,255,255,.55); --ink: #0c0c0e; color: var(--ink); display: flex; flex-direction: column;
  background: radial-gradient(120% 80% at 0% 0%, #fbfaf6, #f1efe8 60%, #e9e6dd); }
.cl-ui::before { /* nokta ızgara dokusu */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(0,0,0,.09) 1px, transparent 1.2px); background-size: 1.3em 1.3em;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 55%); mask-image: linear-gradient(90deg, #000, transparent 55%);
}
.cu-bar { position: relative; display: flex; align-items: center; gap: .4em; padding: .5em .9em; background: rgba(0,0,0,.05); border-bottom: 1px solid rgba(0,0,0,.06); font-family: var(--mono); font-size: .52em; color: #6b6b6b; }
.cu-bar i { width: .9em; height: .9em; border-radius: 50%; background: #ff5f57; } .cu-bar i:nth-child(2) { background: #febc2e; } .cu-bar i:nth-child(3) { background: #28c840; }
.cu-bar span { margin: 0 auto; background: rgba(255,255,255,.8); padding: .2em 2.6em; border-radius: 1em; }
.cu-bar span b { font-size: .8em; filter: grayscale(1); margin-right: .3em; }
.cu-nav { position: relative; display: flex; align-items: center; gap: 1.3em; padding: .9em 1.6em .5em; font-family: var(--head); font-size: .78em; }
.cu-nav b { display: flex; align-items: center; gap: .45em; font-weight: 700; letter-spacing: -.035em; margin-right: auto; }
.cu-logo { width: 1.1em; height: 1.1em; border-radius: .35em; background: conic-gradient(from 210deg, #00ff9c, #00e5ff, #ff2bd6, #ffd400, #00ff9c); box-shadow: inset 0 0 0 .22em var(--ink); }
.cu-nav span { width: 3em; height: .32em; border-radius: 1em; background: rgba(0,0,0,.16); }
.cu-nav em { font-style: normal; font-size: .85em; font-weight: 600; color: #fff; background: var(--ink); padding: .45em 1.1em; border-radius: 2em; }
.cu-hero { position: relative; flex: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 1.4em; padding: .4em 1.6em .8em; align-items: center; min-height: 0; }
.cu-copy small { display: inline-flex; align-items: center; gap: .5em; font-family: var(--mono); font-size: .5em; letter-spacing: .16em; color: #2a2a2a; background: rgba(0,0,0,.05); border: 1px solid rgba(0,0,0,.08); padding: .35em .8em; border-radius: 2em; }
.cu-copy small i { width: .6em; height: .6em; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 .25em rgba(16,185,129,.2); }
.cu-copy strong { display: block; margin-top: .45em; font-family: var(--head); font-weight: 700; font-size: 2.35em; line-height: .96; letter-spacing: -.055em; }
.cu-copy strong em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.02em;
  background: linear-gradient(100deg, #0c0c0e 30%, #1d6b5a 60%, #7a2f8f); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.cu-lines { display: grid; gap: .45em; margin-top: .9em; }
.cu-lines i { height: .38em; width: 92%; border-radius: 1em; background: rgba(0,0,0,.12); } .cu-lines i + i { width: 70%; }
.cu-btns { position: relative; display: flex; align-items: center; gap: .55em; margin-top: 1.1em; font-family: var(--head); font-size: .66em; font-weight: 600; }
.cu-b1 { color: #fff; background: var(--ink); padding: .75em 1.25em; border-radius: 2em; box-shadow: 0 .6em 1.4em -.5em rgba(0,0,0,.6); }
.cu-b2 { padding: .7em 1.2em; border-radius: 2em; border: 1.5px solid rgba(0,0,0,.75); }
.cu-cursor { position: absolute; left: 6.8em; top: 1.9em; width: 1.7em; height: 1.7em; fill: #fff; stroke: #000; stroke-width: 1.6; stroke-linejoin: round; filter: drop-shadow(0 .2em .25em rgba(0,0,0,.35)); }
.cu-proof { display: flex; align-items: center; gap: .55em; margin-top: 1.1em; font-family: var(--head); font-size: .58em; color: #3a3a3a; }
.cu-av { display: flex; } .cu-av i { width: 1.7em; height: 1.7em; border-radius: 50%; border: .18em solid #f3f1ea; margin-left: -.5em; }
.cu-av i:first-child { margin-left: 0; background: linear-gradient(135deg, #f6d365, #fda085); } .cu-av i:nth-child(2) { background: linear-gradient(135deg, #84fab0, #8fd3f4); }
.cu-av i:nth-child(3) { background: linear-gradient(135deg, #a18cd1, #fbc2eb); } .cu-av i:nth-child(4) { background: #0c0c0e; }
.cu-proof b { color: #c48a00; font-weight: 700; } .cu-proof em { font-style: normal; opacity: .75; }

/* sağ panel: yanardöner krom küre + yörüngeler + yüzen kartlar */
.cu-art { position: relative; align-self: stretch; min-height: 9em; border-radius: 1em; overflow: hidden;
  background: radial-gradient(70% 60% at 60% 45%, #1a1f2e, #07080b 70%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 1.2em 2.4em -1em rgba(0,0,0,.55); }
.cu-art::before { /* arka renk sisi */
  content: ""; position: absolute; inset: -20%; filter: blur(2.6em); opacity: .38;
  background: conic-gradient(from 200deg at 55% 50%, #00ff9c, #00e5ff, #6d5cff, #ff2bd6, #ffd400, #00ff9c); animation: cuSpin 14s linear infinite;
}
.cu-orb { position: absolute; left: 50%; top: 47%; width: 46%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background:
    radial-gradient(circle at 32% 26%, rgba(255,255,255,.95), rgba(255,255,255,0) 22%),
    radial-gradient(circle at 70% 80%, rgba(0,229,255,.55), transparent 45%),
    radial-gradient(circle at 25% 75%, rgba(255,43,214,.45), transparent 45%),
    radial-gradient(circle at 50% 50%, #cfd6e4, #5b6170 55%, #14161c 80%);
  box-shadow: inset -.6em -.8em 1.6em rgba(0,0,0,.55), inset .4em .4em 1em rgba(255,255,255,.25), 0 1.6em 2.6em -.6em rgba(0,0,0,.8);
}
.cu-ring { position: absolute; left: 50%; top: 47%; border-radius: 50%; border: 1px solid rgba(255,255,255,.28); transform: translate(-50%, -50%) rotate(-18deg); }
.cu-r1 { width: 78%; height: 26%; } .cu-r2 { width: 62%; height: 62%; border-style: dashed; border-color: rgba(255,255,255,.14); transform: translate(-50%, -50%); }
.cu-chip { position: absolute; z-index: 2; display: flex; align-items: center; gap: .5em; padding: .55em .7em; border-radius: .7em; font-family: var(--head); color: #fff;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(.6em); -webkit-backdrop-filter: blur(.6em); box-shadow: 0 .6em 1.4em -.6em rgba(0,0,0,.7); }
.cu-metric { left: 6%; top: 8%; display: grid; grid-template-columns: auto auto; column-gap: .6em; row-gap: .1em; align-items: baseline; padding: .55em .75em .6em; }
.cu-metric em { font-style: normal; font-size: .46em; opacity: .7; letter-spacing: .06em; text-transform: uppercase; }
.cu-metric b { font-size: .8em; color: #6dffc0; }
.cu-metric svg { grid-column: 1 / -1; width: 6.2em; height: 1.5em; overflow: visible; }
.cu-metric path { fill: none; stroke: #6dffc0; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; filter: drop-shadow(0 0 .2em rgba(109,255,192,.8)); }
.cu-toast { right: 5%; bottom: 9%; }
.cu-toast > i { display: grid; place-items: center; width: 1.5em; height: 1.5em; border-radius: 50%; background: #10b981; font-size: .62em; font-style: normal; font-weight: 700; }
.cu-toast span { display: grid; line-height: 1.15; } .cu-toast b { font-size: .56em; font-weight: 600; } .cu-toast em { font-style: normal; font-size: .46em; opacity: .7; font-family: var(--mono); }
.cu-score { right: 7%; top: 9%; padding: .4em; border-radius: 50%; }
.cu-score svg { width: 2.4em; height: 2.4em; transform: rotate(-90deg); }
.cu-score circle { fill: none; stroke: rgba(255,255,255,.15); stroke-width: 3; }
.cu-score circle.v { stroke: #6dffc0; stroke-dasharray: 94.3; stroke-dashoffset: 0; stroke-linecap: round; }
.cu-score b { position: absolute; inset: 0; display: grid; place-items: center; font-size: .62em; }
.cu-logos { position: relative; display: flex; align-items: center; gap: 1.5em; padding: .7em 1.6em 1em; border-top: 1px solid rgba(0,0,0,.07); font-size: .7em; color: rgba(0,0,0,.42); white-space: nowrap; }
.cu-logos small { font-family: var(--mono); font-size: .62em; letter-spacing: .16em; text-transform: uppercase; margin-right: .2em; }
.cu-logos .l1 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.15em; }
.cu-logos .l2 { font-family: var(--mono); font-weight: 700; letter-spacing: -.02em; }
.cu-logos .l3 { font-family: var(--head); font-weight: 700; letter-spacing: -.06em; font-size: 1.1em; }
.cu-logos .l4 { font-family: var(--head); font-weight: 500; letter-spacing: .02em; }
.cu-logos .l5 { font-family: var(--head); font-weight: 700; letter-spacing: .3em; font-size: .85em; }
@keyframes cuSpin { to { transform: rotate(360deg); } }

/* 02 · yerleşim */
.cl-grid { --lc: rgba(0,255,156,.55); background: rgba(0,255,156,.035); }
.cg-cols { position: absolute; inset: 0 1.6em; display: grid; grid-template-columns: repeat(12, 1fr); gap: .6em; }
.cg-cols i { background: rgba(0,255,156,.06); border-inline: 1px solid rgba(0,255,156,.12); }
.cg-box { position: absolute; border: 1.5px dashed rgba(0,255,156,.7); border-radius: .5em; font-family: var(--mono); font-size: .6em; color: var(--g); padding: .5em .7em; background: rgba(0,0,0,.25); }
.cg-nav { left: 4%; right: 4%; top: 13%; height: 9%; }
.cg-hero { left: 4%; right: 4%; top: 27%; height: 38%; }
.cg-a { left: 4%; width: 28.6%; bottom: 7%; height: 18%; } .cg-b { left: 35.7%; width: 28.6%; bottom: 7%; height: 18%; } .cg-c { right: 4%; width: 28.6%; bottom: 7%; height: 18%; }

/* 03 · kod */
.cl-code { --lc: rgba(0,229,255,.55); background: rgba(2,10,12,.88); }
.cc-pre { position: absolute; left: 1.6em; top: 2.8em; font-family: var(--mono); font-size: .78em; line-height: 1.75; color: #cfe; white-space: pre; }
.cc-pre .k { color: var(--m); } .cc-pre .f { color: var(--g); } .cc-pre .t { color: var(--c); } .cc-pre .s { color: var(--y); } .cc-pre .n { color: #ff9e64; }

/* 04 · api */
.cl-api { --lc: rgba(0,229,255,.5); background: rgba(0,14,18,.82); }
.ca-net { position: absolute; inset: 14% 8% 26%; width: 84%; height: 60%; overflow: visible; }
.ca-net path { fill: none; stroke: rgba(0,229,255,.55); stroke-width: 1.5; stroke-dasharray: 6 6; animation: caFlow 1.2s linear infinite; vector-effect: non-scaling-stroke; }
.ca-net circle { fill: #001014; stroke: var(--c); stroke-width: 2; vector-effect: non-scaling-stroke; }
.ca-net .hub { fill: rgba(0,229,255,.2); }
@keyframes caFlow { to { stroke-dashoffset: -24; } }
.ca-log { position: absolute; left: 1.6em; right: 1.6em; bottom: 1.2em; display: grid; gap: .3em; font-family: var(--mono); font-size: .6em; color: rgba(207,255,238,.75); }
.ca-log b { color: var(--c); font-weight: 500; } .ca-log em { font-style: normal; color: var(--g); }

/* 05 · veri */
.cl-data { --lc: rgba(255,43,214,.5); background: rgba(16,2,14,.85); }
.cd-grid { position: absolute; left: 6%; right: 6%; top: 18%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2em; }
.cd-db { display: grid; justify-items: center; gap: .15em; font-family: var(--mono); font-size: .6em; color: rgba(255,200,245,.85); }
.cd-db i { width: 4.6em; height: 1.4em; border: 1.5px solid var(--m); border-radius: 50%; background: rgba(255,43,214,.12); }
.cd-db i + i { margin-top: -.7em; }
.cd-db b { margin-top: .5em; font-weight: 400; }
.cd-rows { position: absolute; left: 6%; right: 6%; bottom: 10%; display: grid; gap: .45em; }
.cd-rows i { height: .5em; border-radius: .3em; background: linear-gradient(90deg, rgba(255,43,214,.35), rgba(255,43,214,.05)); }
.cd-rows i:nth-child(even) { width: 78%; }

/* ---------------------------------------------------------------- ETİKETLER */
.cine-calls { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.cc { position: absolute; inset: 0; opacity: var(--o, 0); }
.cc-dot { position: absolute; left: 0; top: 0; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: #000; border: 2px solid var(--cc, #00ff9c); box-shadow: 0 0 12px var(--cc, #00ff9c); }
.cc-line { position: absolute; left: 0; top: 0; height: 1px; transform-origin: 0 50%; background: linear-gradient(90deg, var(--cc, #00ff9c), transparent 140%); opacity: .7; }
.cc-box {
  position: absolute; left: 0; top: 0; width: 230px; padding: 10px 14px 11px; display: grid; gap: 3px;
  border-left: 2px solid var(--cc, #00ff9c); background: linear-gradient(90deg, rgba(0,0,0,.72), rgba(0,0,0,.3)); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.cc.is-left .cc-box { border-left: 0; border-right: 2px solid var(--cc, #00ff9c); text-align: right; background: linear-gradient(270deg, rgba(0,0,0,.72), rgba(0,0,0,.3)); }
.cc-box em { font-style: normal; font-family: var(--mono); font-size: 11px; letter-spacing: .15em; color: var(--cc, #00ff9c); }
.cc-box b { font-family: var(--head); font-size: 19px; font-weight: 600; color: #fff; letter-spacing: -.02em; }
.cc-box span { font-family: var(--mono); font-size: 11.5px; line-height: 1.5; color: rgba(230,255,244,.68); }
.cc[data-n="0"] { --cc: #ffffff; } .cc[data-n="1"] { --cc: #00ff9c; } .cc[data-n="2"] { --cc: #00e5ff; } .cc[data-n="3"] { --cc: #00e5ff; } .cc[data-n="4"] { --cc: #ff2bd6; }

/* ---------------------------------------------------------------- BUZLU CAM + MERCEK */
.cine-glass {
  --lens: radial-gradient(circle at var(--lx, 50%) var(--ly, 50%), transparent calc(var(--lr, 150px) * .74), #000 var(--lr, 150px));
  position: absolute; inset: 0; z-index: 6;
  backdrop-filter: blur(calc(var(--blur, 28) * 1px)) saturate(1.3) brightness(.8); -webkit-backdrop-filter: blur(calc(var(--blur, 28) * 1px)) saturate(1.3) brightness(.8);
  background: linear-gradient(115deg, rgba(255,255,255,.05), rgba(255,255,255,0) 40%, rgba(255,255,255,.04) 60%, rgba(255,255,255,0));
  -webkit-mask-image: var(--lens); mask-image: var(--lens);
  opacity: var(--go, 1); visibility: var(--gv, visible);
}
.cine-glass::before { /* camda kayan yansıma */
  content: ""; position: absolute; inset: -20%; pointer-events: none;
  background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,.07) 48%, rgba(255,255,255,.015) 52%, transparent 58%);
  transform: translate3d(calc(-30% + var(--p, 0) * 300%), 0, 0);
}
/* mercek halkası: boyut sabit, büyüme scale ile (cine.js → --lx --ly --ls --lo) */
.cine-lens {
  --R: min(150px, 20vw, 20vh); position: absolute; left: 0; top: 0; z-index: 7; width: calc(var(--R) * 2); height: calc(var(--R) * 2); margin: calc(var(--R) * -1) 0 0 calc(var(--R) * -1);
  border-radius: 50%; pointer-events: none; opacity: var(--lo, 1); visibility: var(--gv, visible);
  transform: translate3d(var(--lx, 50vw), var(--ly, 50vh), 0) scale(var(--ls, 1));
  border: 1px solid rgba(255,255,255,.4);
  box-shadow: 0 0 0 1px rgba(0,0,0,.35), inset 0 0 0 1px rgba(0,255,156,.12), inset 0 0 40px rgba(0,255,156,.12), 0 0 50px rgba(0,255,156,.12);
}
.cine-lens::before { /* ölçü çizgileri */
  content: ""; position: absolute; inset: -9px; border-radius: 50%;
  background: repeating-conic-gradient(from -1deg, rgba(255,255,255,.55) 0 1.2deg, transparent 1.2deg 15deg);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 6px), #000 calc(100% - 5px)); mask: radial-gradient(closest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
}
.cine-lens::after { /* artı işareti */
  content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; opacity: .55;
  background: linear-gradient(#fff, #fff) 50% / 1px 100% no-repeat, linear-gradient(#fff, #fff) 50% / 100% 1px no-repeat;
}
.cine-lens span { position: absolute; left: calc(100% + 14px); top: 50%; transform: translateY(-50%); white-space: nowrap; font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: var(--g); }
.cine-hint {
  position: absolute; left: 50%; bottom: 112px; z-index: 8; transform: translateX(-50%); display: grid; justify-items: center; gap: 10px; pointer-events: none;
  font-family: var(--mono); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: rgba(255,255,255,.75); opacity: var(--go, 1);
}
.cine-hint i { width: 22px; height: 36px; border: 1.5px solid rgba(255,255,255,.5); border-radius: 12px; position: relative; }
.cine-hint i::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--g); animation: cineWheel 1.6s ease-in-out infinite; }
@keyframes cineWheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ---------------------------------------------------------------- HUD */
.cine-hud { position: absolute; inset: 0; z-index: 8; pointer-events: none; font-family: var(--mono); color: rgba(230,255,244,.75); }
.ch-tl, .ch-tr { position: absolute; top: 92px; display: grid; gap: 4px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.ch-tl { left: max(24px, calc((100% - 1240px) / 2)); } .ch-tr { right: max(24px, calc((100% - 1240px) / 2)); text-align: right; }
.ch-tl b { color: var(--g); font-weight: 700; }
.ch-cap { position: absolute; left: max(24px, calc((100% - 1240px) / 2)); bottom: 40px; width: min(440px, calc(100% - 48px)); height: 110px; }
.cap { position: absolute; left: 0; right: 0; bottom: 0; opacity: 0; } /* opaklık ve kayma cine.js'ten, kaydırmaya bağlı */
.cap em { font-style: normal; font-size: 11px; letter-spacing: .2em; color: var(--g); }
.cap p { margin-top: 8px; font-family: var(--head); font-size: clamp(20px, 2.2vw, 30px); font-weight: 600; line-height: 1.15; letter-spacing: -.025em; color: #fff; }
.ch-br { position: absolute; right: max(24px, calc((100% - 1240px) / 2)); bottom: 40px; display: flex; align-items: center; gap: 14px; font-size: 11px; letter-spacing: .14em; }
.ch-prog { width: 120px; height: 2px; background: rgba(255,255,255,.15); position: relative; overflow: hidden; }
.ch-prog i { position: absolute; inset: 0; background: var(--g); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); box-shadow: 0 0 10px var(--g); }
.ch-skip { pointer-events: auto; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: #fff; border: 1px solid rgba(255,255,255,.3); padding: 0 14px; min-height: 40px; border-radius: 999px; background: rgba(0,0,0,.4); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background-color .2s, color .2s, border-color .2s; }
.ch-skip:hover { background: var(--g); color: #000; border-color: var(--g); }
.ch-skip:focus-visible { outline: 2px solid var(--g); outline-offset: 3px; }

/* ---------------------------------------------------------------- MOBİL */
@media (max-width: 760px) {
  .c-cine { height: 290vh; }
  .cine-stack { --w: min(84vw, 62vh); --gap: calc(var(--w) * .3); }
  /* telefonda etiketler katmanın hemen yanında küçük çip */
  .cc-box { width: auto; padding: 5px 10px 6px; gap: 0; grid-template-columns: auto auto; align-items: baseline; column-gap: 7px; }
  .cc-box em { font-size: 10px; }
  .cc-box b { font-size: 14px; }
  .cc-box span { display: none; }
  .ch-tr { display: none; }
  .ch-tl { top: 84px; }
  .ch-cap { bottom: 132px; left: 16px; width: calc(100% - 32px); height: 96px; }
  .ch-br { bottom: 84px; right: 16px; }
  .ch-prog { width: 64px; }
  .ch-step { display: none; }
  .cine-hint { bottom: 252px; }
  .cine-lens span { display: none; }
}

/* ---------------------------------------------------------------- HAREKET AZALTMA: durağan son kare */
@media (prefers-reduced-motion: reduce) {
  .c-cine { height: auto; }
  .cine-sticky { position: relative; }
  .cine-glass, .cine-lens, .cine-hint, .ch-br .ch-prog, .ch-step { display: none; }
  .cu-art::before, .ca-net path, .cine-hint i::after { animation: none; }
}

/* =========================================================================
   KATMAN PUSULASI — girişteki yığın küçülüp sağ kenara yerleşir. Katmanlar menüdeki bölümlerden
   üretilir (yukarıdan aşağı sayfa sırası); bulunulan bölümün katmanı öne çıkar, tıklayınca oraya gider.
   Katmanlar gerçek 3D derinlikte değil, her biri kendi eğimiyle çizilir ve öndeki/arkadaki sırası
   z-index ile belirlenir: böylece aktif katman alttan bile olsa her zaman en önde görünür.
   ========================================================================= */
.lcomp {
  --sp: 32px; /* katmanlar arası dikey aralık */
  position: fixed; right: 18px; top: 50%; z-index: 96; width: 84px; height: 300px; margin-top: -150px;
  font-family: "JetBrains Mono", ui-monospace, monospace; pointer-events: none;
}
/* fare üzerindeyken etiketlerin arkasında koyu geçiş: arkadaki metinle karışmasın */
.lcomp::before { content: ""; position: absolute; right: -18px; top: -30px; bottom: -30px; width: 380px; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: linear-gradient(270deg, rgba(0,0,0,.94) 45%, rgba(0,0,0,.75) 70%, transparent); }
.lcomp.on:hover::before, .lcomp.on:focus-within::before { opacity: 1; }
.lc-stage { position: absolute; inset: 0; display: grid; place-items: center;
  opacity: 0; transform: translate3d(-38vw, 0, 0) scale(3.2); transition: transform 1s cubic-bezier(.7,0,.2,1), opacity .6s ease; }
.lcomp.on .lc-stage { opacity: 1; transform: none; }
.lc-stack { position: relative; width: 58px; height: 38px; perspective: 650px; }
.lc-stack i {
  position: absolute; inset: 0; border-radius: 5px; border: 1px solid var(--lc); background: rgba(4,8,7,.88); z-index: calc(20 - var(--k));
  transform: translateY(calc((var(--k) - var(--mid)) * var(--sp) + var(--lift, 0px))) rotateX(56deg) rotateZ(-34deg);
  transition: transform .45s cubic-bezier(.2,.7,.2,1), background-color .3s, box-shadow .3s, opacity .3s; opacity: .5;
}
.lc-stack i.on { --lift: -10px; z-index: 40; opacity: 1; background: var(--lt); box-shadow: 0 0 18px var(--lc), inset 0 0 12px var(--lt); }
.lc-stack i.hov:not(.on) { opacity: .9; --lift: -4px; z-index: 35; }

/* tıklama alanları: konumları JS'te katmanların ekrandaki yerinden ölçülür; etiket solda */
.lc-list { position: absolute; inset: 0; }
.lc-list li { display: contents; }
.lc-list button { position: absolute; right: 0; top: 0; height: var(--sp); width: 84px; pointer-events: none; color: #fff; }
.lcomp.on .lc-list button { pointer-events: auto; }
.lc-list button > * { pointer-events: none; }
.lc-list b {
  position: absolute; right: calc(100% + 2px); top: 50%; transform: translate(6px, -50%); white-space: nowrap; opacity: 0;
  display: flex; align-items: baseline; gap: 8px; transition: opacity .3s, transform .3s;
  font-family: "Space Grotesk", system-ui, sans-serif; font-size: 13px; font-weight: 600; letter-spacing: -.01em; text-shadow: 0 1px 8px #000, 0 0 2px #000;
}
.lc-list button.on b { top: calc(50% - 10px); } /* aktif katman 10px kalkık: etiketi de onunla hizalı */
.lc-list b em { font-style: normal; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 10px; font-weight: 400; letter-spacing: .12em; color: var(--lc); }
/* satır etiketleri yalnızca fareyle üzerine gelince; varsayılan olarak aktif bölümün adı yığının altında */
.lcomp.on:hover .lc-list b, .lcomp.on:focus-within .lc-list b { opacity: 1; transform: translate(0, -50%); }
.lcomp.on:hover .lc-list button:not(.on) b, .lcomp.on:focus-within .lc-list button:not(.on) b { color: rgba(255,255,255,.62); }
.lc-list button:focus-visible { outline: 1px solid var(--lc); outline-offset: -4px; border-radius: 6px; }
.lc-cap { position: absolute; left: -40px; right: -40px; bottom: -8px; display: grid; justify-items: center; gap: 1px; text-align: center; opacity: 0; transition: opacity .4s .5s; }
.lcomp.on.has-act .lc-cap { opacity: 1; }
.lcomp.on:hover .lc-cap, .lcomp.on:focus-within .lc-cap { opacity: 0; transition-delay: 0s; }
.lc-cap em { font-style: normal; font-size: 9px; letter-spacing: .18em; color: var(--cc, #00ff9c); }
.lc-cap b { font-family: "Space Grotesk", system-ui, sans-serif; font-size: 12px; font-weight: 600; color: #fff; text-shadow: 0 1px 8px #000; }

/* 1400px altı: sağ alt köşede kompakt gösterge (içeriği ortadan kapatmaz) */
@media (max-width: 1399px) {
  .lcomp { top: auto; bottom: 96px; margin-top: 0; right: 8px; transform: scale(.62); transform-origin: right bottom; }
  .lc-cap b { font-size: 15px; } .lc-cap em { font-size: 11px; }
}
@media (hover: none), (max-width: 760px) {
  .lcomp.on .lc-list button { pointer-events: none; }
}
@media (max-width: 760px) { .lcomp { bottom: 140px; transform: scale(.55); } }
@media (prefers-reduced-motion: reduce) {
  .lc-stage, .lc-stack i, .lc-list b { transition: none; }
}
