/* alikol portfolyo — ziyaretçi sitesi */

:root {
    --bg: #fafafa;
    --surface: #ffffff;
    --ink: #0a0a0a;
    --ink-2: #3a3a3a;
    --muted: #8a8a8a;
    --line: #e9e9e7;
    --chip: #efefed;
    --accent: #ff2d87;
    --wa: #16a34a;
    --radius: 10px;
    --gap: 6px;
    --wrap: 1460px;
    --ease: cubic-bezier(.16, 1, .3, 1);
    --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-thin: "Montserrat", "Inter", system-ui, sans-serif;
    --soft: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--ink);
    font: 400 15px/1.5 var(--font);
    letter-spacing: -0.011em;
    -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
::selection { background: var(--ink); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
:root {
    --footer-h: 27px;
    --folder-shape-wide: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 64' preserveAspectRatio='none'%3E%3Cpath d='M8 0H64C69 0 71 2 73.5 4.5C76 7 78 8 83 8H292Q300 8 300 16V56Q300 64 292 64H8Q0 64 0 56V8Q0 0 8 0Z'/%3E%3C/svg%3E");
    --folder-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 76' preserveAspectRatio='none'%3E%3Cpath d='M5 0H33C36.5 0 38 1.5 39.5 3.5C41 5.5 42.5 7 46 7H95Q100 7 100 12V71Q100 76 95 76H5Q0 76 0 71V5Q0 0 5 0Z'/%3E%3C/svg%3E");
}
main.wrap { flex: 1; padding-bottom: calc(var(--footer-h) + 24px); }
.sep { color: #c8c8c8; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 999px; }
.skip-link:focus { left: 12px; }

/* ---------- Butonlar ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    height: 36px; padding: 0 16px;
    border: 0; border-radius: 999px;
    font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap;
    transition: transform .2s var(--ease), background-color .2s, box-shadow .2s;
}
.btn svg { width: 16px; height: 16px; }
.btn:active { transform: scale(.97); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #262626; }
.btn--wa { background: var(--wa); color: #fff; width: 100%; justify-content: center; height: 42px; }
.btn--wa:hover { background: #15803d; }

.icon-btn {
    display: inline-grid; place-items: center;
    width: 38px; height: 38px; border: 0; border-radius: 999px;
    background: transparent; color: var(--ink-2);
    transition: background-color .2s, color .2s;
}
.icon-btn:hover { background: var(--chip); color: var(--ink); }
.icon-btn--light { color: #fff; background: rgba(255, 255, 255, .08); }
.icon-btn--light:hover { background: rgba(255, 255, 255, .2); color: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; text-align: center; padding: clamp(4px, 1.5vw, 16px) 0 clamp(18px, 3vw, 30px); }
.hero__wordmark {
    display: inline-block; text-decoration: none; color: var(--ink);
    font-size: clamp(44px, 7vw, 96px); font-weight: 200; letter-spacing: -.06em; line-height: 1;
    transition: opacity .3s;
}
.hero__wordmark:hover { opacity: .6; }
.hero__role { margin: 10px 0 0; font-size: 13px; color: var(--muted); font-weight: 500; }

/* Kapalı klasör durumu: tam ekran giriş, klasör sayfanın ortasında */
body:not(.is-open) .hero {
    min-height: calc(100svh - var(--footer-h));
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 0 0 clamp(40px, 8vh, 90px);
}
body.is-open .hero { display: none; }
body.is-open main.wrap { padding-top: clamp(24px, 4vw, 48px); }
/* Klasör açılırken raf soldan süzülerek gelir */
body.is-arriving .shelf { animation: shelfIn .9s var(--soft) .15s backwards; }
@keyframes shelfIn { from { opacity: 0; transform: translateX(-18px); } }
body:not(.is-open) .works { display: none !important; }
body:not(.is-open) main.wrap { padding-bottom: var(--footer-h); }
body.is-open .stage { display: none; }

/* ---------- Klasör sahnesi ---------- */
.stage {
    position: relative; z-index: 2;
    width: min(330px, 64vw, 42vh); aspect-ratio: 100 / 108;
    margin: 0 auto;
}
.folder {
    position: absolute; inset: 0; padding: 0; border: 0; background: none;
    perspective: 900px; cursor: pointer; -webkit-tap-highlight-color: transparent;
    filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .14)) drop-shadow(0 4px 6px rgba(0, 0, 0, .06));
}
.folder:focus-visible { outline: 2px solid var(--accent); outline-offset: 8px; border-radius: 18px; }
.folder__back, .folder__front {
    position: absolute; left: 0; width: 100%; aspect-ratio: 100 / 76;
    -webkit-mask: var(--folder-shape) center / 100% 100% no-repeat;
    mask: var(--folder-shape) center / 100% 100% no-repeat;
}
.folder__back { bottom: 4%; transform: scaleX(-1); background: linear-gradient(180deg, #d9d9d5, #cdcdc8); }
.folder__cards { position: absolute; inset: 0; }
.fcard {
    position: absolute; bottom: 32%; left: calc(var(--x) * 1%);
    width: 38%; aspect-ratio: 3 / 4;
    border: 1.5px solid #fff; border-radius: 6px; overflow: hidden;
    background: var(--chip); box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .45);
    z-index: var(--z);
    transform-origin: 50% 100%;
    transform: translate(-50%, calc(var(--y) * 1%)) rotate(calc(var(--r) * 1deg)) translate3d(var(--mx, 0px), var(--my, 0px), 0);
    transition: transform 1s var(--soft), translate .9s var(--soft), opacity .5s;
    animation: fcardIn .9s var(--ease) backwards; animation-delay: calc(var(--i) * 70ms + 150ms);
}
.fcard img { width: 100%; height: 100%; object-fit: cover; }
@keyframes fcardIn { from { translate: 0 60%; opacity: 0; } }
.folder__front {
    bottom: 0; z-index: 20; container-type: size;
    background: linear-gradient(180deg, rgba(246, 246, 243, .62), rgba(234, 234, 230, .72));
    backdrop-filter: blur(16px) saturate(1.25); -webkit-backdrop-filter: blur(16px) saturate(1.25);
    transform-origin: 50% 100%;
    transform: rotateX(-4deg);
    transition: transform .9s var(--soft);
    color: #77777a;
}
.folder__front::after {   /* üst kenardaki ince ışık */
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 2.5cqh);
    opacity: .7; pointer-events: none;
}
.folder__label, .folder__name {
    position: absolute; left: 6.5cqw;
    font-family: var(--font-thin); font-size: 5cqw; font-weight: 300; letter-spacing: .14em; color: #6c6c6f;
}
.folder__label { top: 2.6cqh; }
.folder__name { left: auto; right: 7cqw; bottom: 7cqh; }
.folder__arrow { position: absolute; right: 7cqw; top: 16cqh; width: 10cqw; height: 10cqw; stroke-width: 1; color: #7d7d80; transition: transform .8s var(--soft), color .4s; }
@media (hover: hover) {
    .folder:hover .folder__front { transform: rotateX(-26deg); }
    .folder:hover .fcard { translate: 0 -9%; }
    .folder:hover .folder__arrow { transform: translate(1cqw, -1cqw); color: var(--accent); }
}
.folder.opening .fcard { opacity: 0; transition: opacity .2s; }
.folder.opening .folder__front { transform: rotateX(-34deg); }

/* Klasörden ızgaraya uçuş */
.card.flying { transition: none; opacity: 1; z-index: 5; }
.back-folder {
    flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px;
    height: 36px; padding: 0 14px 0 12px; margin-left: 16px;
    border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
    font-family: var(--font-thin); font-size: 13px; font-weight: 300; letter-spacing: .02em; color: var(--ink-2);
    transition: border-color .2s, color .2s;
}
.back-folder:hover { border-color: var(--ink); color: var(--ink); }
.back-folder svg { width: 16px; height: 16px; }

/* ---------- İşler: sol raf + ızgara ---------- */
.works { display: grid; grid-template-columns: 178px minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; max-width: 1340px; margin: 0 auto; }
.works .grid { max-width: none; }
.shelf { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 14px; }
.shelf .back-folder { margin-left: 0; align-self: flex-start; }
.shelf__stack { display: flex; flex-direction: column; padding-bottom: 4px; }

/* Üst üste binmiş klasörler: her biri bir öncekinin alt kısmını örter, sadece ad şeridi görünür */
.sfolder {
    --peek: 36px;                                   /* her klasörden görünen şerit */
    position: relative; display: block; width: 100%; aspect-ratio: 100 / 64;
    padding: 0; border: 0; background: none; cursor: pointer; text-align: left;
    -webkit-tap-highlight-color: transparent;
    filter: drop-shadow(0 -3px 6px rgba(0, 0, 0, .07)) drop-shadow(0 1px 2px rgba(0, 0, 0, .05));
    transition: transform .6s var(--soft);
}
.sfolder + .sfolder { margin-top: calc(var(--peek) - 64%); }
.sfolder:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 10px; }
.sfolder__front {
    position: absolute; inset: 0; container-type: size;
    -webkit-mask: var(--folder-shape) center / 100% 100% no-repeat;
    mask: var(--folder-shape) center / 100% 100% no-repeat;
    background: linear-gradient(180deg, #f6f6f3, #ebebe7 40%, #e6e6e2);
    transition: background .4s;
}
.sfolder__front::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 3cqh); pointer-events: none; }
.sfolder__label {
    position: absolute; left: 6cqw; right: 5cqw; top: 15cqh;
    font-family: var(--font-thin); font-size: 10.5px; font-weight: 500; letter-spacing: .01em; line-height: 1.3;
    color: #5c5c5f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    transition: color .3s;
}
.sfolder__br { display: none; }
.sfolder[aria-selected="true"] { transform: translateX(10px); }
.sfolder[aria-selected="true"] .sfolder__front { background: linear-gradient(180deg, #ffffff, #f3f3f0 40%, #ececE8); }
.sfolder[aria-selected="true"] .sfolder__label { color: var(--ink); }
.sfolder[aria-selected="true"] .sfolder__label::before { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 6px 1px 0; border-radius: 50%; background: var(--accent); vertical-align: middle; }
@media (hover: hover) {
    .sfolder:not([aria-selected="true"]):hover { transform: translateX(5px); }
    .sfolder:hover .sfolder__label { color: var(--ink); }
}

/* ---------- Filtreler ---------- */
.filters { display: flex; align-items: center; margin: 0 -16px clamp(16px, 2.4vw, 26px); overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent); mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent); }
.filters::-webkit-scrollbar { display: none; }
.filters__track { position: relative; display: flex; gap: 4px; width: max-content; margin: 0 auto; padding: 0 16px; }
.filters__pill {
    position: relative; z-index: 1;
    height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent;
    font-family: var(--font-thin); font-size: 13.5px; font-weight: 300; letter-spacing: .02em; color: var(--ink-2); white-space: nowrap;
    transition: color .25s;
}
.filters__pill:hover { color: var(--ink); }
.filters__pill[aria-selected="true"] { color: #fff; }
.filters__pill sup { font-size: 9.5px; margin-left: 3px; color: var(--muted); font-weight: 400; transition: color .25s; }
.filters__pill[aria-selected="true"] sup { color: rgba(255, 255, 255, .6); }
.filters__indicator {
    position: absolute; top: 0; left: 0; height: 36px; z-index: 0;
    border-radius: 999px; background: var(--ink);
    transition: transform .45s var(--ease), width .45s var(--ease);
}

/* ---------- Izgara ---------- */
.grid {
    --cols: 5;
    display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: flex-start;
    gap: var(--gap); max-width: 1040px; margin: 0 auto;
}
.grid > .card { width: calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); }
.grid--video { --cols: 3; }   /* Video / Animasyon: 3'lü, telefonda 2'li */

.card {
    position: relative; display: block; overflow: hidden;
    aspect-ratio: 3 / 4; border-radius: var(--radius);
    background: var(--chip); text-decoration: none; color: #fff;
    /* Zeminde çok hafif gri gölge */
    box-shadow: 0 10px 24px -12px rgba(60, 60, 70, .22), 0 2px 6px rgba(60, 60, 70, .06);
    opacity: 0; transform: translateY(18px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
    isolation: isolate;
}
.card.in { opacity: 1; transform: none; }
.card--video { aspect-ratio: 16 / 9; }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .6s; }
.card::after {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .72));
    opacity: 0; transition: opacity .4s;
}
.card__info {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
    padding: clamp(10px, 1.4vw, 18px);
    opacity: 0; transform: translateY(8px);
    transition: opacity .4s, transform .5s var(--ease);
}
.card__cat { display: block; font-size: 11px; font-weight: 500; letter-spacing: .02em; opacity: .75; margin-bottom: 2px; }
.card__title { display: block; font-size: clamp(13px, 1.2vw, 16px); font-weight: 600; line-height: 1.25; letter-spacing: -.02em; }
.card__count {
    position: absolute; top: 10px; right: 10px; z-index: 2;
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 8px; border-radius: 999px;
    background: rgba(0, 0, 0, .45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    font-size: 11px; font-weight: 600;
    opacity: 0; transition: opacity .3s;
}
.card__count svg { width: 12px; height: 12px; }
/* Video kartları: yazı yok, ortada küçük buzlu cam oynat ikonu (imleç gelince belirir) */
.card__play {
    position: absolute; z-index: 2; top: 50%; left: 50%;
    width: 44px; height: 44px; margin: -22px 0 0 -22px;
    display: grid; place-items: center; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .7);
    background: linear-gradient(180deg, rgba(248, 248, 245, .5), rgba(234, 234, 230, .6));
    backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
    color: #3a3a3d;
    box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .8);
    transition: transform .5s var(--soft), opacity .4s var(--soft), background-color .3s, color .3s;
}
.card__play svg { width: 14px; height: 14px; fill: currentColor; stroke: none; margin-left: 2px; }
.card--video .card__info, .card--video::after { display: none; }

@media (hover: hover) {
    .card:hover img { transform: scale(1.045); }
    .card:hover::after, .card:hover .card__count { opacity: 1; }
    .card:hover .card__info { opacity: 1; transform: none; }
    .card__play { opacity: 0; transform: scale(.85); }
    .card:hover .card__play, .card:focus-visible .card__play { opacity: 1; transform: none; }
}
.card:focus-visible::after, .card:focus-visible .card__info { opacity: 1; transform: none; }

.empty { text-align: center; color: var(--muted); padding: 64px 0; font-size: 14px; }

/* ---------- Alt bilgi ---------- */
.footer {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, .86);
    backdrop-filter: saturate(1.5) blur(14px); -webkit-backdrop-filter: saturate(1.5) blur(14px);
    padding-bottom: env(safe-area-inset-bottom);
}
.footer__inner { padding-top: 2px; padding-bottom: 2px; }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
@media (min-width: 641px) { .footer__bottom { min-height: 22px; } }
.footer__links { display: flex; align-items: center; gap: 4px; margin-left: -5px; }
.footer__divider { width: 1px; height: 11px; background: var(--line); margin: 0 4px; }
.lang-btn {
    height: 18px; min-width: 26px; padding: 0 6px;
    border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
    font-family: var(--font-thin); font-size: 9px; font-weight: 400; letter-spacing: .08em; color: var(--ink-2);
    transition: border-color .2s, color .2s;
}
.lang-btn:hover { border-color: var(--ink); color: var(--ink); }
.socials { display: flex; gap: 2px; }
.socials a { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 999px; color: var(--ink-2); transition: background-color .2s, color .2s; }
.socials a:hover { background: var(--chip); color: var(--ink); }
.socials svg { width: 13px; height: 13px; }
.socials svg.fill { fill: currentColor; stroke: none; }
.footer__meta { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 10.5px; color: var(--muted); }

/* ---------- WhatsApp sohbet ---------- */
.chat { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: calc(var(--footer-h) + 12px + env(safe-area-inset-bottom)); z-index: 45; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
/* Küçük yuvarlak ikon, klasördeki gibi buzlu cam */
.chat__launcher {
    position: relative; display: grid; place-items: center;
    width: 48px; height: 48px; padding: 0; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .75);
    background: linear-gradient(180deg, rgba(248, 248, 245, .62), rgba(234, 234, 230, .72));
    backdrop-filter: blur(16px) saturate(1.25); -webkit-backdrop-filter: blur(16px) saturate(1.25);
    color: #5c5c5f;
    box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .3), 0 2px 6px rgba(0, 0, 0, .06), inset 0 1px 0 rgba(255, 255, 255, .9);
    transition: transform .5s var(--soft), color .3s, background-color .3s;
}
.chat__launcher svg { width: 19px; height: 19px; stroke-width: 1.6; }
.chat__launcher > span:not(.pulse) { display: none; }
.chat__launcher .pulse { position: absolute; top: 7px; right: 7px; width: 7px; height: 7px; }
.chat__launcher:hover { transform: translateY(-2px); color: var(--ink); }
.pulse { position: relative; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: pulse 2s infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3); opacity: 0; } }
.chat__card {
    width: min(340px, calc(100vw - 32px));
    background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
    box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .35);
    overflow: hidden; transform-origin: bottom right;
    animation: pop .35s var(--ease);
}
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.96); } }
.chat__head { display: flex; align-items: center; gap: 10px; padding: 14px 10px 14px 16px; background: var(--ink); color: #fff; }
.chat__head .icon-btn { margin-left: auto; color: #fff; }
.chat__head .icon-btn:hover { background: rgba(255, 255, 255, .12); }
.chat__avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); font-weight: 700; font-size: 18px; }
.chat__name { margin: 0; font-weight: 600; font-size: 14px; }
.chat__status { margin: 0; display: flex; align-items: center; gap: 7px; font-size: 12px; opacity: .75; }
.chat__body { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.chat__bubble { margin: 0; padding: 10px 14px; border-radius: 4px 16px 16px 16px; background: var(--chip); font-size: 13.5px; }
.chat__body label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.chat__body input, .chat__body textarea {
    width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px;
    background: var(--bg); font: 400 14px/1.4 var(--font); color: var(--ink); resize: none;
    transition: border-color .2s, background-color .2s;
}
.chat__body input:focus, .chat__body textarea:focus { outline: 0; border-color: var(--ink); background: #fff; }

/* ---------- Proje görünümü ---------- */
.project { position: fixed; inset: 0; z-index: 60; display: flex; justify-content: center; align-items: center; padding: 28px 20px calc(var(--footer-h) + 8px); }
.project__backdrop {
    position: absolute; inset: 0;
    background: rgba(240, 240, 237, .35);
    backdrop-filter: blur(14px) saturate(1.1); -webkit-backdrop-filter: blur(14px) saturate(1.1);
    animation: fade .3s;
}
/* Küçük, buzlu cam proje penceresi */
.project__sheet {
    position: relative; display: flex; flex-direction: column;
    width: min(920px, 100%); height: 100%; max-height: 860px;
    background: linear-gradient(180deg, rgba(248, 248, 245, .7), rgba(236, 236, 232, .78));
    backdrop-filter: blur(28px) saturate(1.3); -webkit-backdrop-filter: blur(28px) saturate(1.3);
    border: 1px solid rgba(255, 255, 255, .8); border-radius: 22px;
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .3), 0 2px 8px rgba(0, 0, 0, .05), inset 0 1px 0 rgba(255, 255, 255, .9);
    animation: sheet .5s var(--soft);
    overflow: hidden;
    font-family: var(--font-thin);
}
.project.closing .project__sheet { animation: sheetOut .3s ease-in forwards; }
.project.closing .project__backdrop { animation: fade .3s reverse forwards; }
@keyframes fade { from { opacity: 0; } }
@keyframes sheet { from { transform: translateY(24px) scale(.98); opacity: 0; } }
@keyframes sheetOut { to { transform: translateY(24px) scale(.98); opacity: 0; } }
.project__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px clamp(16px, 2.6vw, 26px); border-bottom: 1px solid rgba(0, 0, 0, .06); }
.project__heading { display: flex; align-items: center; gap: 12px; min-width: 0; }
.project__logo { width: 40px; height: 40px; object-fit: contain; border-radius: 10px; border: 1px solid rgba(0, 0, 0, .06); padding: 3px; background: rgba(255, 255, 255, .7); }
.project__titles { min-width: 0; }
.project__cat { margin: 0; font-size: 10.5px; font-weight: 500; color: var(--accent); letter-spacing: .06em; }
.project__title { margin: 0; font-size: clamp(15px, 1.6vw, 19px); font-weight: 500; letter-spacing: .01em; line-height: 1.25; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.project__tools { display: flex; gap: 2px; flex-shrink: 0; }
.project__tools .icon-btn { color: #5c5c5f; }
.project__tools .icon-btn:hover { background: rgba(255, 255, 255, .6); color: var(--ink); }
.project__tools svg { stroke-width: 1.6; }
.project__body { flex: 1; min-height: 0; display: flex; }
.project__scroll { flex: 1; min-width: 0; overflow-y: auto; overscroll-behavior: contain; padding: clamp(14px, 2.2vw, 22px) clamp(12px, 2.6vw, 26px) 32px; }
.project__meta { display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 0 0 clamp(14px, 1.8vw, 20px); }
.project__meta div { min-width: 0; }
.project__meta dt { font-size: 10.5px; color: #8a8a8d; font-weight: 400; letter-spacing: .06em; }
.project__meta dd { margin: 2px 0 0; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.project__meta a { text-decoration: underline; text-decoration-color: #bdbdbd; text-underline-offset: 3px; transition: text-decoration-color .2s; word-break: break-all; }
.project__meta a:hover { text-decoration-color: var(--ink); }
.project__desc { margin: -4px 0 20px; max-width: 70ch; color: var(--ink-2); font-size: 13.5px; font-weight: 400; line-height: 1.6; white-space: pre-line; }
.project__gallery { display: flex; flex-direction: column; gap: 6px; }
.project__gallery figure { margin: 0; border-radius: 10px; overflow: hidden; background: rgba(0, 0, 0, .04); }
.project__gallery img { width: 100%; height: auto; cursor: zoom-in; }
.project__gallery video { width: 100%; height: auto; max-height: 70vh; background: #000; }
.project__gallery .pending { min-height: 40vh; }
.project__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 24px; }
.project__nav a {
    display: flex; align-items: center; gap: 12px; min-width: 0;
    padding: 10px; border: 1px solid rgba(255, 255, 255, .8); border-radius: 14px; text-decoration: none;
    background: rgba(255, 255, 255, .4);
    transition: background-color .3s, border-color .3s;
}
.project__nav a:hover { background: rgba(255, 255, 255, .75); }
.project__nav a.next { flex-direction: row-reverse; text-align: right; grid-column: 2; }
.project__nav img { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.project__nav span { min-width: 0; }
.project__nav small { display: block; font-size: 10.5px; color: #8a8a8d; letter-spacing: .04em; }
.project__nav strong { display: block; font-size: 13px; font-weight: 500; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Video işleri: geniş pencere, sağda diğer videolar */
.project__sheet--video { width: min(1180px, 100%); }
.project__list {
    width: 300px; flex-shrink: 0; overflow-y: auto; overscroll-behavior: contain;
    padding: 18px 14px 24px; border-left: 1px solid rgba(0, 0, 0, .06);
    background: rgba(255, 255, 255, .18);
}
.project__list-title { margin: 0 4px 10px; font-size: 10.5px; font-weight: 500; letter-spacing: .08em; color: #8a8a8d; }
.project__list-items { display: flex; flex-direction: column; gap: 4px; }
.vitem {
    display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 12px;
    text-decoration: none; color: var(--ink-2);
    transition: background-color .3s;
}
.vitem:hover { background: rgba(255, 255, 255, .65); }
.vitem__thumb { position: relative; flex-shrink: 0; width: 116px; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: rgba(0, 0, 0, .06); }
.vitem__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--soft); }
.vitem:hover .vitem__thumb img { transform: scale(1.05); }
.vitem__play {
    position: absolute; top: 50%; left: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px;
    display: grid; place-items: center; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .7);
    background: rgba(246, 246, 243, .55);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    color: #3a3a3d; opacity: 0; transition: opacity .3s;
}
.vitem__play svg { width: 9px; height: 9px; fill: currentColor; stroke: none; margin-left: 1px; }
.vitem:hover .vitem__play { opacity: 1; }
.vitem__text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.vitem__text strong { font-size: 12px; font-weight: 500; line-height: 1.35; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vitem__text small { font-size: 10.5px; color: #8a8a8d; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 860px) {
    .project__body { flex-direction: column; overflow-y: auto; overscroll-behavior: contain; }
    .project__body .project__scroll { flex: none; overflow: visible; }
    .project__list { width: auto; overflow: visible; border-left: 0; border-top: 1px solid rgba(0, 0, 0, .06); padding: 14px 10px 24px; }
}

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: rgba(8, 8, 8, .94); animation: fade .25s; touch-action: pan-y; }
.lightbox__img { max-width: 94vw; max-height: 88vh; width: auto; height: auto; border-radius: 6px; animation: zoomIn .35s var(--ease); user-select: none; }
@keyframes zoomIn { from { opacity: 0; transform: scale(.96); } }
.lightbox__close { position: absolute; top: 16px; right: 16px; }
.lightbox__arrow { position: absolute; top: 50%; margin-top: -22px; width: 44px; height: 44px; }
.lightbox__arrow--prev { left: 16px; }
.lightbox__arrow--next { right: 16px; }
.lightbox__count { position: absolute; bottom: 18px; left: 0; right: 0; margin: 0; text-align: center; color: rgba(255, 255, 255, .6); font-size: 12px; font-variant-numeric: tabular-nums; }

/* ---------- Bildirim ---------- */
.toast {
    position: fixed; left: 50%; bottom: 24px; z-index: 90;
    padding: 10px 18px; border-radius: 999px; background: var(--ink); color: #fff;
    font-size: 13px; font-weight: 500; pointer-events: none;
    opacity: 0; transform: translate(-50%, 10px); transition: opacity .3s, transform .3s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Duyarlı ---------- */
.grid { padding-bottom: 24px; }
.card { will-change: transform; }

@media (max-width: 1023px) {
}
@media (max-width: 640px) {
    .stage { width: 46vw; }
    .back-folder span { display: none; }
    .back-folder { width: 36px; padding: 0; justify-content: center; }
}
@media (max-width: 640px) {
    :root { --gap: 4px; --radius: 6px; }
    .grid { --cols: 3; }
    .grid--video { --cols: 2; }
    .card__info { display: none; }
    .card__play { width: 32px; height: 32px; margin: -16px 0 0 -16px; }
    .card__play svg { width: 10px; height: 10px; }
    .chat__launcher { width: 44px; height: 44px; }
    .project { padding: 12px 8px calc(var(--footer-h) + 6px); }
    .project__sheet { border-radius: 16px; }
    .project__gallery { gap: 4px; }
    .project__gallery figure { border-radius: 6px; }
    .project__nav { grid-template-columns: 1fr; }
    .project__nav a.next { grid-column: 1; }
    .lightbox__arrow { display: none; }
    :root { --footer-h: 40px; }
    .footer__bottom { gap: 0; }
    .footer__meta { font-size: 9px; gap: 0 8px; line-height: 1.3; }
    .works { grid-template-columns: 1fr; gap: 16px; }
    .shelf { position: static; flex-direction: row; align-items: center; gap: 6px; padding: 6px 0; }
    .shelf::-webkit-scrollbar { display: none; }
    .shelf .back-folder { align-self: center; }
    .shelf__stack { flex: 1; min-width: 0; flex-direction: row; gap: 4px; padding: 0; }
    .sfolder { --peek: 0px; flex: 1 1 auto; min-width: min-content; width: auto; height: 40px; aspect-ratio: auto; }
    .sfolder + .sfolder { margin-top: 0; }
    .sfolder__front {
        position: relative; inset: auto; display: block; height: 100%; padding: 0 4px; container-type: normal;
        -webkit-mask-image: var(--folder-shape-wide); mask-image: var(--folder-shape-wide);
    }
    /* Telefonda tam ad, küçük punto, gerekirse iki satır */
    .sfolder__label {
        position: static; display: flex; align-items: center; justify-content: center; height: 100%; padding-top: 4px;
        font-size: 8.5px; line-height: 1.15; letter-spacing: 0; text-align: center; white-space: normal; overflow: visible;
    }
    .sfolder__br { display: inline; }
    .sfolder[aria-selected="true"] .sfolder__label::before { flex-shrink: 0; width: 4px; height: 4px; margin: 0 3px 0 0; }
    .sfolder[aria-selected="true"] { transform: translateY(-3px); }
    .chat { bottom: calc(var(--footer-h) + 12px); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    .card { opacity: 1; transform: none; }
}

/* ==========================================================================
   ANTRASİT TEMA (varsayılan) — <html class="light"> olunca açık tema devreye girer
   ========================================================================== */
html:not(.light) {
    --bg: #2b2d30;
    --surface: #34363a;
    --ink: #f1f1ef;
    --ink-2: #c6c7ca;
    --muted: #8d8f95;
    --line: rgba(255, 255, 255, .09);
    --chip: #3a3c40;
    --on-ink: #1f2023;
    color-scheme: dark;
}
html:not(.light) ::selection { color: var(--on-ink); }
html:not(.light) .skip-link, html:not(.light) .toast, html:not(.light) .btn--dark { color: var(--on-ink); }
html:not(.light) .btn--dark:hover { background: #d8d8d6; }
html:not(.light) .sep { color: #55575c; }

/* Ana klasör */
html:not(.light) .folder { filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .45)) drop-shadow(0 4px 6px rgba(0, 0, 0, .2)); }
html:not(.light) .folder__back { background: linear-gradient(180deg, #47494e, #3d3f43); }
html:not(.light) .folder__front {
    background: linear-gradient(180deg, rgba(78, 80, 86, .6), rgba(58, 60, 65, .74));
    color: #a9abb0;
}
html:not(.light) .folder__front::after { background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 2.5cqh); }
html:not(.light) .folder__label, html:not(.light) .folder__name { color: #b3b5ba; }
html:not(.light) .folder__arrow { color: #a3a5aa; }
html:not(.light) .fcard { border-color: rgba(255, 255, 255, .85); box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .7); }

/* Sol raf klasörleri */
html:not(.light) .sfolder { filter: drop-shadow(0 -3px 6px rgba(0, 0, 0, .3)) drop-shadow(0 1px 2px rgba(0, 0, 0, .25)); }
html:not(.light) .sfolder__front { background: linear-gradient(180deg, #46484d, #3f4145 40%, #3b3d41); }
html:not(.light) .sfolder__front::after { background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 3cqh); }
html:not(.light) .sfolder__label { color: #a7a9ae; }
html:not(.light) .sfolder[aria-selected="true"] .sfolder__front { background: linear-gradient(180deg, #56585d, #4c4e53 40%, #47494e); }

/* Kartlar */
html:not(.light) .card { box-shadow: 0 12px 26px -12px rgba(0, 0, 0, .55), 0 2px 6px rgba(0, 0, 0, .18); }
html:not(.light) .filters__pill[aria-selected="true"] { color: var(--on-ink); }
html:not(.light) .filters__pill[aria-selected="true"] sup { color: rgba(0, 0, 0, .5); }

/* Buzlu cam ikonlar (video oynat, sohbet) */
html:not(.light) .card__play, html:not(.light) .vitem__play {
    border-color: rgba(255, 255, 255, .22);
    background: linear-gradient(180deg, rgba(70, 72, 78, .55), rgba(50, 52, 56, .65));
    color: #ededeb;
}
html:not(.light) .card__play { box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .15); }
html:not(.light) .chat__launcher {
    border-color: rgba(255, 255, 255, .14);
    background: linear-gradient(180deg, rgba(74, 76, 82, .62), rgba(54, 56, 60, .74));
    color: #c6c7ca;
    box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .6), 0 2px 6px rgba(0, 0, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .14);
}

/* Alt bilgi */
html:not(.light) .footer { background: rgba(43, 45, 48, .86); }

/* Sohbet kartı */
html:not(.light) .chat__card { box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .7); }
html:not(.light) .chat__head { background: #1f2023; }
html:not(.light) .chat__body input:focus, html:not(.light) .chat__body textarea:focus { background: var(--surface); }

/* Proje penceresi */
html:not(.light) .project__backdrop { background: rgba(18, 19, 21, .45); }
html:not(.light) .project__sheet {
    background: linear-gradient(180deg, rgba(54, 56, 60, .82), rgba(42, 44, 47, .9));
    border-color: rgba(255, 255, 255, .1);
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), 0 2px 8px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .08);
}
html:not(.light) .project__bar { border-bottom-color: rgba(255, 255, 255, .07); }
html:not(.light) .project__logo { border-color: rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .92); }
html:not(.light) .project__tools .icon-btn { color: #b3b5ba; }
html:not(.light) .project__tools .icon-btn:hover { background: rgba(255, 255, 255, .08); }
html:not(.light) .project__meta dt, html:not(.light) .project__nav small, html:not(.light) .project__list-title, html:not(.light) .vitem__text small { color: var(--muted); }
html:not(.light) .project__meta a { text-decoration-color: #5d5f64; }
html:not(.light) .project__gallery figure { background: rgba(255, 255, 255, .04); }
html:not(.light) .project__nav a { border-color: rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04); }
html:not(.light) .project__nav a:hover { background: rgba(255, 255, 255, .09); }
html:not(.light) .project__list { border-left-color: rgba(255, 255, 255, .07); background: rgba(0, 0, 0, .12); }
html:not(.light) .vitem:hover { background: rgba(255, 255, 255, .07); }
html:not(.light) .vitem__thumb { background: rgba(255, 255, 255, .06); }
@media (max-width: 860px) {
    html:not(.light) .project__list { border-top-color: rgba(255, 255, 255, .07); }
}

/* ---------- Tema seçici (alt bilgide, EN düğmesinin yanında) ---------- */
.theme-switch {
    display: flex; align-items: center; gap: 4px; height: 18px; padding: 0 5px; margin-left: 2px;
    border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
}
.theme-dot {
    width: 10px; height: 10px; padding: 0; border-radius: 50%;
    border: 1px solid rgba(128, 128, 128, .45);
    transition: transform .3s var(--soft), box-shadow .3s;
}
.theme-dot--dark { background: #2b2d30; }
.theme-dot--light { background: #fafafa; }
.theme-dot:hover { transform: scale(1.15); }
.theme-dot[aria-pressed="true"] { box-shadow: 0 0 0 1.5px var(--bg), 0 0 0 2.5px var(--ink); }

