/* ===================================== */
/* RESET & GLOBAL                        */
/* ===================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300&family=Syne:wght@400;500&display=swap');

*,*::before,*::after { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 100%; height: 100%;
  background: #080808;
  font-family: 'Syne', sans-serif;
}

/* ===================================== */
/* WORKS ARCHIVE PAGE                    */
/* assets/css/works-archive.css          */
/* ===================================== */

:root {
  --works-nav-h: 120px;
  --works-foot-h: 72px;
}

body.works-archive-page {
  overflow: hidden;
  cursor: default;
}

/* ── WIPE ── */
body.works-archive-page .wipe {
  position: fixed; inset: 0; z-index: 900;
  background: #080808; pointer-events: none;
  transform: translateY(0%);
  transition: transform .75s cubic-bezier(.76,0,.24,1);
}
body.works-archive-page .wipe.gone { transform: translateY(-100%); }

/* ── SIDE LABEL ── */
.side-label {
  position: fixed; right: 16px; top: 50%; z-index: 400;
  transform: translateY(-50%) rotate(90deg);
  font-size: 9px; letter-spacing: .4em; text-transform: uppercase;
  color: #f0ede8; opacity: .16; pointer-events: none; white-space: nowrap;
  font-family: 'Syne', sans-serif;
}

/* ── SCROLL LINE ── */
.works-archive-page .scroll-line {
  position: fixed; right: 28px;
  top: calc(var(--works-nav-h) + 6vh);
  bottom: calc(var(--works-foot-h) + 6vh);
  width: 1px; z-index: 400; pointer-events: none;
}
.works-archive-page .scroll-line::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(240,237,232,.07);
}
.works-archive-page .scroll-fill {
  position: absolute; top: 0; left: 0;
  width: 1px; height: 0%;
  background: rgba(240,237,232,.6);
  transition: height .08s linear;
}

/* ── NAV ── */
.works-nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--works-nav-h); z-index: 400;
  padding: 0 52px;
  display: flex; justify-content: space-between; align-items: center;
}
.works-nav .nav-logo {
  font-family: 'Syne', sans-serif;
  font-size: 11px; letter-spacing: .28em; text-transform: uppercase;
  color: #f0ede8; text-decoration: none;
}
.works-nav .nav-logo img { height: 74px; width: auto; display: block; }
.works-nav .nav-back {
  display: flex; align-items: center; gap: 14px;
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  font-family: 'Syne', sans-serif;
  color: #f0ede8; text-decoration: none;
  opacity: .55; transition: opacity .3s, gap .35s;
}
.nav-back-line {
  display: block; width: 32px; height: 1px;
  background: #f0ede8; opacity: .5;
  transition: width .35s cubic-bezier(.16,1,.3,1);
}
.works-nav .nav-back:hover { opacity: 1; gap: 20px; }
.works-nav .nav-back:hover .nav-back-line { width: 48px; }

/* ── FOOTER ── */
.social-links {
  position: fixed; bottom: 2rem; left: 2rem; z-index: 400;
  display: flex; align-items: center; gap: .85rem;
}
.social-links a {
  font-size: .72rem; letter-spacing: .25em; text-transform: uppercase;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: rgba(255,255,255,.5); text-decoration: none;
  transition: color .35s;
  padding: .75rem .45rem; margin: -.75rem -.45rem;
}
.social-links a:hover { color: #fff; }
.social-sep {
  font-size: .72rem; color: rgba(255,255,255,.26);
  pointer-events: none; user-select: none;
}
.signature {
  position: fixed; right: 4rem; bottom: 2rem; z-index: 400;
  font-size: .62rem; letter-spacing: .28em; text-transform: uppercase;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: rgba(255,255,255,.28); pointer-events: none;
}
/* ── LOGO ── */
.works-nav .nav-logo {
  opacity: .82;
  transition: opacity .4s ease, transform .4s ease;
}
.works-nav .nav-logo:hover {
  opacity: 1;
  transform: rotate(8deg);
}
/* ── SCROLL CONTAINER ── */
.main-scroll {
  position: fixed;
  top: var(--works-nav-h);
  bottom: var(--works-foot-h);
  left: 0; right: 0;
  overflow-y: auto; overflow-x: hidden;
}
.main-scroll::-webkit-scrollbar { width: 1px; }
.main-scroll::-webkit-scrollbar-thumb { background: rgba(240,237,232,.1); }

/* ── İÇERİK ── */
.works-inner {
  max-width: 1440px; margin: 0 auto;
  padding: 0 52px 80px;
}

/* ── HERO ── */
.works-hero { padding: 80px 0 88px; }
.works-hero-tag {
  display: block; font-size: 10px; letter-spacing: .34em; text-transform: uppercase;
  font-family: 'Syne', sans-serif;
  opacity: .3; margin-bottom: 28px; color: #f0ede8;
}
.works-hero-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(76px, 10.5vw, 148px);
  font-weight: 300; line-height: .88;
  letter-spacing: -.02em; color: #f0ede8;
  margin-bottom: 48px;
}
.works-hero-bottom {
  display: flex; align-items: flex-end; justify-content: space-between;
}
.works-hero-rule {
  width: 44px; height: 1px; background: #f0ede8;
  opacity: .2; margin-bottom: 28px;
}
.works-hero-desc {
  font-size: 12px; line-height: 1.9; opacity: .35;
  max-width: 230px; letter-spacing: .05em; color: #f0ede8;
  font-family: 'Syne', sans-serif;
}
.works-hero-counter {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(72px, 9vw, 128px);
  font-weight: 300; line-height: 1;
  letter-spacing: -.03em;
  color: rgba(240,237,232,.07);
  user-select: none; pointer-events: none; flex-shrink: 0;
}

/* ── KARTLAR ── */
.card {
  display: grid;
  border-top: 1px solid rgba(240,237,232,.1);
  overflow: hidden;
  transition: border-color .5s;
  cursor: pointer;
}
.works-grid > .card:last-child,
.works-grid > .row-2:last-child { border-bottom: 1px solid rgba(240,237,232,.1); }
.card:hover { border-color: rgba(240,237,232,.2); }

.card-a { grid-template-columns: 60% 40%; min-height: 560px; }
.card-c { grid-template-columns: 38% 62%; min-height: 520px; }

/* İKİLİ SATIR */
.row-2 {
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(240,237,232,.1);
  border-bottom: 1px solid rgba(240,237,232,.1);
}
.row-2 .card {
  border-top: none; border-bottom: none;
  border-left: 1px solid rgba(240,237,232,.1);
  min-height: 520px; grid-template-columns: 46% 54%;
}
.row-2 .card:first-child { border-left: none; }

/* ── GÖRSEL ── */
.c-vis { overflow: hidden; position: relative; background: #0d0d0d; }
.c-vis img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: brightness(.58) saturate(.32);
  transition:
    transform 1.8s cubic-bezier(.25,.46,.45,.94),
    filter 1.8s cubic-bezier(.25,.46,.45,.94);
  transform: scale(1.06);
}
.card:hover .c-vis img {
  transform: scale(1.0);
  filter: brightness(.8) saturate(.6);
}
.c-vis-empty {
  width: 100%; height: 100%; min-height: 400px;
  background: #111;
}

/* KATEGORİ ETİKETİ */
.c-tag {
  position: absolute; bottom: 20px; left: 20px;
  font-size: 9px; letter-spacing: .28em; text-transform: uppercase;
  font-family: 'Syne', sans-serif;
  color: rgba(240,237,232,.55);
  background: rgba(8,8,8,.72);
  border: 1px solid rgba(240,237,232,.1);
  padding: .38rem .75rem;
  opacity: 0; transform: translateY(6px);
  transition: opacity .5s ease, transform .5s ease;
  pointer-events: none;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  white-space: nowrap;
}
.card:hover .c-tag { opacity: 1; transform: translateY(0); }

/* ── BİLGİ ── */
.c-info {
  padding: 52px 56px;
  display: flex; flex-direction: column; justify-content: center;
  border-left: 1px solid rgba(240,237,232,.1);
}
.card-c .c-info {
  border-left: none; border-right: 1px solid rgba(240,237,232,.1);
  justify-content: flex-end; padding-bottom: 64px;
}
.row-2 .card .c-info { justify-content: flex-end; padding-bottom: 48px; }

.c-num {
  display: block; font-size: 10px; letter-spacing: .24em;
  font-family: 'Syne', sans-serif;
  opacity: .25; margin-bottom: 8px; color: #f0ede8;
}
.c-rule {
  display: block; width: 22px; height: 1px;
  background: #f0ede8; opacity: .16; margin-bottom: 30px;
}
.c-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(34px, 3.6vw, 58px);
  font-weight: 300; line-height: 1.0;
  letter-spacing: -.01em; margin-bottom: 22px; color: #f0ede8;
}
.c-desc {
  font-size: 12px; line-height: 2; opacity: .34;
  letter-spacing: .04em; max-width: 260px; margin-bottom: 42px;
  color: #f0ede8; font-family: 'Syne', sans-serif;
}
.c-link {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 10px; letter-spacing: .26em; text-transform: uppercase;
  font-family: 'Syne', sans-serif;
  color: #f0ede8; text-decoration: none;
  opacity: .38; transition: opacity .4s, gap .4s; width: fit-content;
}
.c-link-line {
  display: block; width: 18px; height: 1px;
  background: #f0ede8;
  transition: width .4s cubic-bezier(.16,1,.3,1);
}
.card:hover .c-link { opacity: .9; gap: 20px; }
.card:hover .c-link-line { width: 36px; }

/* BOŞ DURUM */
.works-empty {
  padding: 8rem 0; text-align: center;
  font-size: 12px; letter-spacing: .15em;
  color: rgba(240,237,232,.3);
  font-family: 'Syne', sans-serif;
}

/* ── REVEAL ── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1);
}
.reveal.on { opacity: 1; transform: none; }

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  :root { --works-nav-h: 64px; --works-foot-h: 64px; }
  .works-nav, .works-footer { padding: 0 24px; }
  .works-inner { padding: 0 24px 60px; }
  .card-a, .card-c, .row-2 .card { grid-template-columns: 1fr; min-height: auto; }
  .row-2 { grid-template-columns: 1fr; }
  .row-2 .card { border-left: none; border-top: 1px solid rgba(240,237,232,.1); }
  .c-info, .card-c .c-info {
    padding: 32px 24px 40px;
    border-left: none; border-right: none;
    border-top: 1px solid rgba(240,237,232,.1);
    justify-content: flex-start;
  }
  .c-vis { min-height: 240px; }
  .side-label, .works-archive-page .scroll-line { display: none; }
  .works-footer .f-links { gap: 20px; }
  .works-hero-counter { display: none; }
}

/* ===================================== */
/* RESPONSIVE V1 PATCH                   */
/* Tüm çalışmalar arşivi: tablet/mobil    */
/* kart ritmi, footer ve scroll güvenliği.*/
/* ===================================== */

.main-scroll{-webkit-overflow-scrolling:touch;}
.card{min-width:0;}
.c-info,.c-vis{min-width:0;}

@media (max-width:1180px){
  :root{--works-nav-h:100px;--works-foot-h:70px;}
  .works-nav{padding:0 38px;}
  .works-inner{padding:0 38px 72px;}
  .works-hero{padding:64px 0 76px;}
  .card-a{grid-template-columns:56% 44%;min-height:500px;}
  .card-c{grid-template-columns:42% 58%;min-height:480px;}
  .row-2 .card{grid-template-columns:1fr;min-height:auto;}
  .row-2 .card .c-vis{min-height:300px;}
  .row-2 .card .c-info{border-left:none;border-top:1px solid rgba(240,237,232,.1);padding:34px 32px 40px;justify-content:flex-start;}
}

@media (max-width:860px){
  :root{--works-nav-h:72px;--works-foot-h:74px;}
  body.works-archive-page{overflow:hidden;}
  .works-nav{height:var(--works-nav-h);padding:0 24px;}
  .works-nav .nav-logo img{height:54px;}
  .works-nav .nav-back{font-size:9px;letter-spacing:.18em;gap:10px;}
  .nav-back-line{width:24px;}
  .main-scroll{top:var(--works-nav-h);bottom:var(--works-foot-h);}
  .works-inner{padding:0 24px 56px;}
  .works-hero{padding:54px 0 58px;}
  .works-hero-tag{font-size:9px;letter-spacing:.26em;margin-bottom:18px;}
  .works-hero-title{font-size:clamp(56px,15vw,96px);margin-bottom:32px;}
  .works-hero-bottom{display:block;}
  .works-hero-desc{max-width:360px;font-size:11px;line-height:1.8;}
  .works-hero-counter{display:none;}

  .card-a,.card-c,.row-2 .card{grid-template-columns:1fr;min-height:auto;}
  .card-c .c-info{order:2;}
  .card-c .c-vis{order:1;}
  .row-2{grid-template-columns:1fr;border-bottom:none;}
  .row-2 .card{border-left:none;border-top:1px solid rgba(240,237,232,.1);}
  .row-2 .card:first-child{border-top:none;}
  .c-vis{min-height:300px;aspect-ratio:16/10;}
  .c-vis img{height:100%;}
  .c-info,.card-c .c-info,.row-2 .card .c-info{padding:32px 24px 38px;border-left:none;border-right:none;border-top:1px solid rgba(240,237,232,.1);justify-content:flex-start;}
  .c-title{font-size:clamp(34px,9vw,52px);line-height:1.02;margin-bottom:18px;}
  .c-desc{max-width:520px;margin-bottom:30px;line-height:1.85;}
  .c-tag{opacity:1;transform:none;bottom:16px;left:16px;font-size:8px;letter-spacing:.2em;max-width:calc(100% - 32px);overflow:hidden;text-overflow:ellipsis;}
  .side-label,.works-archive-page .scroll-line{display:none;}
  .social-links{left:24px;bottom:20px;gap:.6rem;}
  .social-links a{font-size:.58rem;letter-spacing:.18em;}
  .signature{right:24px;bottom:22px;font-size:.5rem;letter-spacing:.18em;}
}

@media (max-width:640px){
  :root{--works-nav-h:68px;--works-foot-h:0px;}
  .works-nav{padding:0 18px;background:linear-gradient(to bottom,rgba(8,8,8,.92),rgba(8,8,8,0));}
  .works-nav .nav-logo img{height:48px;}
  .works-nav .nav-back{font-size:0;gap:0;opacity:.7;padding:14px 0 14px 18px;}
  .works-nav .nav-back::before{content:'Geri';font-size:9px;letter-spacing:.2em;text-transform:uppercase;}
  .works-nav .nav-back-line{margin-left:10px;width:26px;}
  .main-scroll{bottom:0;}
  .works-inner{padding:0 18px 44px;}
  .works-hero{padding:44px 0 48px;}
  .works-hero-title{font-size:clamp(48px,18vw,76px);line-height:.9;margin-bottom:24px;}
  .works-hero-rule{margin-bottom:18px;}
  .works-hero-desc{font-size:10.5px;line-height:1.75;}

  .card,.row-2{border-color:rgba(240,237,232,.12);}
  .c-vis{min-height:230px;aspect-ratio:4/3;}
  .c-info,.card-c .c-info,.row-2 .card .c-info{padding:26px 18px 34px;}
  .c-num{font-size:9px;margin-bottom:6px;}
  .c-rule{margin-bottom:22px;}
  .c-title{font-size:clamp(31px,11vw,44px);margin-bottom:16px;}
  .c-desc{font-size:11px;line-height:1.8;margin-bottom:26px;opacity:.42;}
  .c-link{font-size:9px;letter-spacing:.2em;opacity:.7;}
  .c-link-line{width:22px;}
  .social-links,.signature{display:none;}
}

@media (max-width:420px){
  .works-inner{padding-left:14px;padding-right:14px;}
  .works-nav{padding:0 14px;}
  .c-vis{min-height:210px;}
  .c-tag{font-size:7.5px;letter-spacing:.16em;}
}

@media (max-height:620px) and (orientation:landscape){
  :root{--works-nav-h:58px;--works-foot-h:0px;}
  .works-nav .nav-logo img{height:42px;}
  .main-scroll{bottom:0;}
  .works-hero{padding:32px 0 42px;}
  .works-hero-title{font-size:clamp(48px,10vw,78px);}
  .card-a,.card-c{grid-template-columns:52% 48%;}
  .card-c .c-info{order:0;}
  .card-c .c-vis{order:0;}
  .c-vis{min-height:260px;aspect-ratio:auto;}
  .c-info,.card-c .c-info{border-top:none;}
  .card-a .c-info{border-left:1px solid rgba(240,237,232,.1);}
  .card-c .c-info{border-right:1px solid rgba(240,237,232,.1);}
  .social-links,.signature{display:none;}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important;}
}
