/* =====================================================================
   DENİZ KAAN FENER — "masaüstü dosyası" portfolyosu
   paper #f3ecdf · card #fffdf9 · cocoa #35251a · gold #a98c52 · manila
   Bricolage Grotesque (display) · Sacramento (script) ·
   Instrument Sans (body) · Fraunces (italik folyo) · system mono
   ===================================================================== */

:root {
  --paper: #f3ecdf;
  --panel: #ece2cd;
  --card: #fffdf9;
  --cocoa: #35251a;
  --cocoa-soft: rgba(53, 37, 26, 0.66);
  --ink: #14110d;
  --ink-soft: rgba(20, 17, 13, 0.64);
  --ink-faint: rgba(20, 17, 13, 0.38);
  --line: rgba(53, 37, 26, 0.18);
  --line-strong: rgba(53, 37, 26, 0.45);
  --gold: #a98c52;
  --gold-deep: #7d6538;
  --gold-line: rgba(169, 140, 82, 0.45);
  --manila: #e9d9b0;
  --manila-dark: #d9c391;
  --display: "Bricolage Grotesque", "Arial Black", sans-serif;
  --script: "Sacramento", cursive;
  --serif: "Fraunces", "Georgia", serif;
  --sans: "Instrument Sans", -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, monospace;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --maxw: 1360px;
  --r-lg: 18px;
  --r-md: 12px;
  --ease-lux: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--gold); color: var(--card); }

img, video { max-width: 100%; display: block; }

a { color: inherit; }

.mono {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--cocoa-soft);
}

.kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  color: var(--gold-deep);
  margin: 2.6rem 0 0.9rem;
}

:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: fixed; top: -100px; left: var(--gutter);
  background: var(--cocoa); color: var(--card);
  padding: 0.6rem 1.2rem; z-index: 200;
  font-size: 0.85rem; text-decoration: none;
  border-radius: 0 0 var(--r-md) var(--r-md);
  transition: top 200ms var(--ease-lux);
}
.skip-link:focus { top: 0; }

/* ---- grain (kraft kâğıdı) ---- */
.grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none; z-index: 90;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* ---- scroll progress ---- */
.progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px; background: var(--gold);
  transform-origin: 0 50%; transform: scaleX(var(--sp, 0));
  z-index: 160; pointer-events: none;
}
@supports (animation-timeline: scroll()) {
  .progress {
    transform: none;
    animation: progress-grow linear both;
    animation-timeline: scroll(root block);
  }
  @keyframes progress-grow { from { scale: 0 1; } to { scale: 1 1; } }
}

/* ---- custom cursor ---- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  body.has-cursor .cursor { display: block; }
  .cursor-dot, .cursor-ring {
    position: fixed; top: 0; left: 0;
    pointer-events: none; z-index: 170;
    border-radius: 50%;
    translate: -50% -50%;
  }
  .cursor-dot { width: 6px; height: 6px; background: var(--cocoa); }
  .cursor-ring {
    width: 36px; height: 36px;
    border: 1.5px solid var(--gold-line);
    display: grid; place-items: center;
    transition: width 300ms var(--ease-lux), height 300ms var(--ease-lux),
                background-color 300ms, border-color 300ms;
  }
  .cursor-ring .cursor-label {
    font-family: var(--mono); font-size: 0.55rem;
    letter-spacing: 0.08em; text-transform: lowercase;
    color: var(--card); opacity: 0;
    transition: opacity 200ms;
  }
  body.cursor-grow .cursor-ring {
    width: 66px; height: 66px;
    background: rgba(53, 37, 26, 0.9);
    border-color: transparent;
  }
  body.cursor-grow .cursor-ring .cursor-label { opacity: 1; }
  body.cursor-hidden .cursor { visibility: hidden; }
}

/* ---- dikey kenar notu ---- */
.marginalia {
  position: fixed; right: 1.1rem; top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-family: var(--mono); font-size: 0.62rem;
  letter-spacing: 0.24em; text-transform: lowercase;
  color: var(--ink-faint);
  z-index: 80; pointer-events: none;
}
@media (max-width: 960px) { .marginalia { display: none; } }

/* =====================================================================
   ORTAK PARÇALAR — pencere, klasör, sticker, imleç oku
   ===================================================================== */

/* mac penceresi */
.window {
  background: var(--card);
  border: 1.5px solid var(--cocoa);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(53, 37, 26, 0.14);
  overflow: hidden;
}
.window-bar {
  display: flex; align-items: center; gap: 0.55rem;
  padding: 0.55rem 0.9rem;
  border-bottom: 1.5px solid var(--cocoa);
  background: var(--paper);
}
.window-bar i {
  width: 11px; height: 11px; border-radius: 50%;
  border: 1px solid rgba(53, 37, 26, 0.35);
}
.window-bar i:nth-child(1) { background: #d9836f; }
.window-bar i:nth-child(2) { background: #dfba63; }
.window-bar i:nth-child(3) { background: #a3b284; }
.window-title {
  margin-left: 0.4rem;
  font-family: var(--mono); font-size: 0.66rem;
  letter-spacing: 0.08em; color: var(--cocoa-soft);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* script sticker (çıkartma) */
.sticker {
  display: inline-block;
  font-family: var(--script);
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.6rem);
  line-height: 1;
  color: var(--card);
  background: var(--cocoa);
  padding: 0.5em 0.8em 0.32em;
  border-radius: 999px;
  border: 4px solid var(--paper);
  box-shadow: 0 8px 20px rgba(53, 37, 26, 0.22);
  rotate: -5deg;
  transform-origin: center;
}

/* dekoratif imleç oku */
.doodle-cursor {
  position: absolute; pointer-events: none; user-select: none;
  width: clamp(30px, 4vw, 52px); aspect-ratio: 5 / 6;
}
.doodle-cursor svg { width: 100%; height: 100%; }

/* el çizimi süsler */
.squiggle { color: var(--gold); }

/* =====================================================================
   MASTHEAD
   ===================================================================== */
.masthead {
  position: sticky; top: 0; z-index: 150;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1.5px solid transparent;
  transition: border-color 300ms;
}
.masthead.is-stuck { border-bottom-color: var(--line); }

.masthead-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0.85rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
}

.wordmark {
  font-family: var(--display); font-weight: 800;
  font-size: 1.1rem; letter-spacing: 0.02em;
  text-transform: lowercase;
  color: var(--cocoa);
  text-decoration: none;
}
.wordmark-dot { color: var(--gold); }

.nav { display: flex; gap: clamp(1rem, 2.5vw, 2.2rem); }
.nav a {
  font-family: var(--mono);
  font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: lowercase;
  text-decoration: none; color: var(--cocoa-soft);
  padding-block: 0.3rem;
  border-bottom: 1.5px solid transparent;
  transition: color 300ms, border-color 300ms;
}
.nav a:hover { color: var(--cocoa); border-bottom-color: var(--gold); }
@media (max-width: 760px) { .nav { display: none; } }

.masthead-right { display: flex; align-items: center; gap: 1.4rem; }

.lang-toggle { display: flex; align-items: center; gap: 0.45rem; }
.lang-toggle button {
  background: none; border: none; cursor: pointer;
  font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.1em; color: var(--ink-faint);
  padding: 0.3rem 0.15rem;
}
.lang-toggle button[aria-pressed="true"] {
  color: var(--gold-deep);
  border-bottom: 1.5px solid var(--gold);
}
.lang-sep { color: var(--ink-faint); font-size: 0.7rem; }

.menu-btn {
  display: none;
  background: var(--card); cursor: pointer;
  border: 1.5px solid var(--cocoa);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.12em; text-transform: lowercase;
}
@media (max-width: 760px) { .menu-btn { display: block; } }

/* ---- overlay menü ---- */
.overlay-menu {
  position: fixed; inset: 0; z-index: 140;
  background: var(--paper);
  display: grid; place-items: center;
}
.overlay-menu[hidden] { display: none; }
.overlay-menu nav { display: flex; flex-direction: column; gap: 1.1rem; }
.overlay-menu a {
  font-family: var(--display); font-weight: 750;
  font-size: clamp(2.2rem, 9vw, 3.6rem);
  text-transform: lowercase;
  color: var(--cocoa);
  text-decoration: none;
  display: flex; align-items: baseline; gap: 1rem;
  opacity: 0; translate: 0 24px;
  animation: om-in 640ms var(--ease-lux) forwards;
  animation-delay: calc(var(--i) * 90ms + 60ms);
}
.om-no {
  font-family: var(--mono); font-size: 0.8rem;
  color: var(--gold-deep); letter-spacing: 0.1em;
}
@keyframes om-in { to { opacity: 1; translate: 0 0; } }

/* =====================================================================
   BÖLÜM İSKELETİ
   ===================================================================== */
main { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.section { padding-block: clamp(5rem, 12vh, 9.5rem) 0; }

.section-head {
  position: relative;
  padding-top: 1.1rem;
  margin-bottom: clamp(2.2rem, 5vh, 3.6rem);
}
.section-head::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0;
  border-top: 1.5px dashed var(--line-strong);
}
.sec-no {
  position: absolute; right: 0; top: -0.35em;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(6rem, 14vw, 12rem);
  line-height: 1; color: transparent;
  -webkit-text-stroke: 1.5px rgba(169, 140, 82, 0.35);
  pointer-events: none; user-select: none;
}
.sec-title {
  font-family: var(--display); font-weight: 780;
  font-size: clamp(2.6rem, 1.4rem + 4.8vw, 5.6rem);
  line-height: 0.98; letter-spacing: -0.02em;
  text-transform: lowercase;
  color: var(--cocoa);
}
.sec-title em { font-style: normal; color: var(--gold-deep); }
.sec-title::before {
  content: counter(sec, decimal-leading-zero) " /";
  font-family: var(--mono); font-size: 0.76rem; font-weight: 400;
  letter-spacing: 0.18em; color: var(--gold-deep);
  display: block; margin-bottom: 0.7rem;
}
.section, .contact { counter-increment: sec; }
body { counter-reset: sec 1; }

/* =====================================================================
   01 · KAPAK — masaüstü sahnesi
   ===================================================================== */
.hero {
  position: relative;
  padding-top: clamp(2.5rem, 7vh, 5rem);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-areas: "folio folio folio folio folio folio folio folio folio folio folio folio"
                       "name name name name name name name name name name name name"
                       "meta meta meta meta meta plate plate plate plate plate plate plate";
  column-gap: 1rem;
}

.hero-folio {
  grid-area: folio;
  display: flex; align-items: center; gap: 1rem;
  font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.18em; text-transform: lowercase;
  color: var(--cocoa-soft);
  margin-bottom: clamp(1.5rem, 4vh, 2.5rem);
}
.folio-no { color: var(--gold-deep); }
.folio-rule { flex: 0 0 56px; height: 1.5px; background: var(--gold); }

/* hayalet şerit — arkada süzülen içi boş dev kelimeler */
.hero-ghost {
  position: absolute; top: clamp(3rem, 9vh, 6rem); left: -20vw;
  width: 200vw; overflow: hidden;
  pointer-events: none; user-select: none; z-index: -1;
}
.hero-ghost span {
  display: inline-block; white-space: nowrap;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(6rem, 17vw, 13rem); line-height: 1;
  text-transform: lowercase;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(169, 140, 82, 0.28);
  animation: drift-x 70s linear infinite;
}
@keyframes drift-x { to { transform: translateX(-50%); } }

.hero-name {
  grid-area: name;
  position: relative;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3.2rem, 1.4rem + 10.5vw, 10.5rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: lowercase;
  color: var(--cocoa);
  margin-bottom: clamp(2rem, 5vh, 3rem);
}
.hero-name .line { display: block; overflow: hidden; }
.hero-name .inner {
  display: inline-block;
  translate: 0 110%;
  animation: line-up 900ms var(--ease-lux) forwards;
}
.hero-name .line:nth-child(1) .inner { animation-delay: 120ms; }
.hero-name .line:nth-child(2) .inner { animation-delay: 260ms; }
@keyframes line-up { to { translate: 0 0; } }
.line-indent { padding-left: clamp(2rem, 10vw, 10rem); }
.hero-period { color: var(--gold); }
.hero-year {
  font-family: var(--serif); font-style: italic; font-weight: 420;
  font-size: 0.3em; letter-spacing: 0;
  color: var(--gold-deep); margin-left: 0.3em;
}

/* isim üstüne binen el yazısı */
.hero-script {
  position: absolute;
  top: -0.52em; left: clamp(0.5rem, 4vw, 4rem);
  font-family: var(--script);
  font-size: clamp(1.8rem, 1rem + 3.4vw, 4rem);
  font-weight: 400; line-height: 1;
  color: var(--gold-deep);
  rotate: -6deg;
  z-index: 2;
  animation: pre-in 800ms var(--ease-lux) 500ms both;
}

/* showreel penceresi */
.hero-plate {
  grid-area: plate;
  position: relative;
  align-self: start;
  rotate: 1.6deg;
  transition: rotate 600ms var(--ease-lux);
}
.hero-plate:hover { rotate: 0deg; }
.hero-plate video {
  width: 100%; aspect-ratio: 16 / 9;
  object-fit: cover; display: block;
}
.hero-plate-caption {
  margin-top: 0.7rem;
  font-family: var(--mono); font-size: 0.62rem;
  letter-spacing: 0.12em; text-transform: lowercase;
  color: var(--ink-faint);
  display: flex; gap: 0.8rem; align-items: center;
}
.hero-plate-caption::before {
  content: ""; width: 34px; height: 1.5px; background: var(--gold);
}

.hero-meta {
  grid-area: meta;
  align-self: end;
  padding-right: clamp(1rem, 3vw, 3rem);
}
.hero-role {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.3rem);
  line-height: 1.4; margin-bottom: 1rem;
  color: var(--cocoa);
}
.hero-value {
  font-size: 0.98rem; color: var(--ink-soft);
  max-width: 34ch; margin-bottom: 1.8rem;
}
.hero-cta { display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* masaüstüne saçılmış dosyalar */
.hero-file {
  position: absolute; z-index: 3;
  width: clamp(90px, 11vw, 150px);
  pointer-events: none;
}
.hero-file img {
  border: 1.5px solid var(--cocoa); border-radius: 10px;
  background: var(--card); padding: 5px;
  box-shadow: 0 12px 26px rgba(53, 37, 26, 0.18);
  aspect-ratio: 1; object-fit: cover;
}
.hero-file figcaption {
  margin-top: 0.35rem; text-align: center;
  font-family: var(--mono); font-size: 0.58rem;
  letter-spacing: 0.04em; color: var(--cocoa-soft);
}
.hero-file-1 { top: 6%; right: 2%; rotate: 5deg; }
.hero-file-2 { bottom: -4%; left: 42%; rotate: -7deg; }
@media (max-width: 960px) {
  .hero { display: block; }
  .hero-plate { margin-top: 1rem; }
  .hero-meta { margin-top: 2rem; }
  .hero-file { display: none; }
}

/* ---- butonlar ---- */
.btn {
  display: inline-block;
  font-family: var(--mono); font-size: 0.76rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: lowercase;
  text-decoration: none; cursor: pointer;
  padding: 0.9rem 1.7rem;
  border: 1.5px solid var(--cocoa);
  border-radius: 999px;
  transition: background-color 400ms var(--ease-lux), color 400ms var(--ease-lux),
              box-shadow 400ms var(--ease-lux), translate 400ms var(--ease-lux);
  will-change: transform;
}
.btn-fill { background: var(--cocoa); color: var(--card); }
.btn-fill:hover { background: var(--gold-deep); border-color: var(--gold-deep); box-shadow: 0 10px 22px rgba(53, 37, 26, 0.25); }
.btn-ghost { background: var(--card); color: var(--cocoa); }
.btn-ghost:hover { background: var(--manila); }
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.68rem; }

/* ---- müşteri bandı ---- */
.marquee {
  margin-top: clamp(4rem, 9vh, 7rem);
  border-top: 1.5px dashed var(--line-strong);
  border-bottom: 1.5px dashed var(--line-strong);
  overflow: hidden;
  padding-block: 0.9rem;
}
.marquee-track {
  display: flex; gap: 3.2rem; width: max-content;
  animation: marquee 46s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--display); font-size: 1rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: lowercase;
  color: var(--cocoa-soft); white-space: nowrap;
}
.marquee-track span::after {
  content: "✳"; color: var(--gold); margin-left: 3.2rem;
  font-size: 0.8rem; vertical-align: 2px;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* =====================================================================
   02 · HAKKIMDA — panel bandı
   ===================================================================== */
.about {
  background: var(--panel);
  margin-inline: calc(-1 * var(--gutter));
  padding-inline: var(--gutter);
  padding-bottom: clamp(4rem, 9vh, 7rem);
  position: relative;
}
.about .sticker {
  position: absolute;
  top: clamp(2.4rem, 7vh, 5.5rem);
  left: clamp(14rem, 32vw, 30rem);
  z-index: 2;
}
@media (max-width: 700px) { .about .sticker { display: none; } }

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 6vw, 6rem);
}
@media (max-width: 880px) { .about-grid { grid-template-columns: 1fr; } }

.about-lede p:first-of-type {
  font-family: var(--display);
  font-size: clamp(1.25rem, 1.05rem + 1vw, 1.65rem);
  font-weight: 500; line-height: 1.5;
  color: var(--cocoa);
}
.about-edu {
  margin-top: 1.6rem; color: var(--ink-soft); font-size: 0.95rem;
  padding-left: 1.1rem; border-left: 3px solid var(--gold);
  border-radius: 2px;
}
.cv-row { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; margin-top: 2.2rem; }
.cv-row .kicker { margin: 0; }

.exp-index { list-style: none; }
.exp-index li {
  border-top: 1.5px dashed var(--line);
  padding: 0.85rem 0;
  display: grid; grid-template-columns: 1fr auto; column-gap: 1rem;
}
.exp-index li:last-child { border-bottom: 1.5px dashed var(--line); }
.exp-role { font-weight: 600; font-size: 0.95rem; color: var(--cocoa); }
.exp-org { color: var(--ink-soft); font-size: 0.88rem; grid-column: 1; }
.exp-date {
  grid-column: 2; grid-row: 1 / span 2; align-self: center;
  font-family: var(--mono); font-size: 0.66rem;
  letter-spacing: 0.06em; color: var(--gold-deep);
  text-align: right; white-space: nowrap;
}

.tools { list-style: none; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.tools li {
  font-size: 0.78rem; letter-spacing: 0.02em;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  background: var(--card);
}
.tools li b { font-weight: 600; }
.tools li span { color: var(--ink-faint); font-size: 0.7rem; margin-left: 0.35rem; }
.tools-ai li { border-color: var(--gold-line); background: var(--manila); }

/* =====================================================================
   03 · İŞLER — klasörler + dosya kartları
   ===================================================================== */

/* klasör filtreleri */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem;
  align-items: flex-end;
  padding-bottom: 1.2rem; margin-bottom: 0.7rem;
  border-bottom: 1.5px dashed var(--line-strong);
}
.filter-bar button {
  background: none; border: none; cursor: pointer;
  display: grid; justify-items: center; gap: 0.3rem;
  font-family: var(--mono); font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.05em; text-transform: lowercase;
  color: var(--cocoa-soft);
  padding: 0.5rem 0.6rem 0.4rem;
  border-radius: var(--r-md);
  transition: background-color 300ms, color 300ms;
}
.filter-bar button .f-icon { width: 52px; height: 40px; }
.filter-bar button .f-icon svg { width: 100%; height: 100%; display: block; }
.filter-bar button .f-body { fill: var(--manila); stroke: var(--cocoa); }
.filter-bar button .f-tab { fill: var(--manila-dark); stroke: var(--cocoa); }
.filter-bar button sup {
  font-size: 0.58rem; color: var(--gold-deep); margin-left: 0.25rem;
}
.filter-bar button:hover { background: rgba(53, 37, 26, 0.05); color: var(--cocoa); }
.filter-bar button[aria-pressed="true"] {
  background: var(--card);
  color: var(--cocoa);
  box-shadow: 0 6px 16px rgba(53, 37, 26, 0.12);
}
.filter-bar button[aria-pressed="true"] .f-body { fill: var(--gold); }
.filter-bar button[aria-pressed="true"] .f-tab { fill: var(--gold-deep); }
.filter-count {
  font-family: var(--mono); font-size: 0.65rem;
  letter-spacing: 0.1em; text-transform: lowercase;
  color: var(--ink-faint); margin-bottom: 2rem;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 150px;
  grid-auto-flow: dense;
  gap: clamp(0.9rem, 2vw, 1.7rem);
}
.work-tile {
  position: relative; cursor: pointer;
  border: none; background: none; padding: 0;
  text-align: left; font: inherit; color: inherit;
  grid-column: span 2; grid-row: span 2;
  display: flex; flex-direction: column;
}
.work-tile.t-wide { grid-column: span 4; }
.work-tile.t-tall { grid-row: span 3; }
.work-tile.is-hidden { display: none; }

.wt-frame {
  flex: 1; overflow: hidden; position: relative;
  border: 1.5px solid var(--cocoa);
  border-radius: var(--r-lg);
  padding: 7px; background: var(--card);
  transition: rotate 600ms var(--ease-lux), translate 600ms var(--ease-lux),
              box-shadow 600ms var(--ease-lux);
}
/* deftere yapıştırılmış baskılar — her kart hafif açılı */
.work-tile:nth-child(3n) .wt-frame { rotate: 1.1deg; }
.work-tile:nth-child(3n + 1) .wt-frame { rotate: -0.9deg; }
.work-tile:nth-child(3n + 2) .wt-frame { rotate: 0.5deg; }
.work-tile:hover .wt-frame, .work-tile:focus-visible .wt-frame {
  rotate: 0deg; translate: 0 -5px;
  box-shadow: 0 26px 48px rgba(53, 37, 26, 0.2);
}
/* renk düzenleme hover'ı: gri açılır, renkli biter */
.wt-frame img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: calc(var(--r-lg) - 8px);
  transition: transform 900ms var(--ease-lux), filter 700ms var(--ease-lux);
  filter: grayscale(0.45) sepia(0.08) contrast(0.97);
}
.work-tile:hover .wt-frame img,
.work-tile:focus-visible .wt-frame img { transform: scale(1.035); filter: none; }
.wt-badge {
  position: absolute; top: 15px; left: 15px;
  font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.08em;
  text-transform: lowercase;
  background: var(--cocoa); color: var(--card);
  padding: 0.3rem 0.65rem; border-radius: 999px;
}
.wt-caption {
  display: grid; grid-template-columns: 1fr auto;
  align-items: baseline; column-gap: 0.7rem;
  padding: 0.65rem 0.3rem 0;
}
.wt-file {
  grid-column: 1;
  font-family: var(--mono); font-size: 0.6rem;
  letter-spacing: 0.04em; color: var(--gold-deep);
}
.wt-title {
  grid-column: 1;
  font-family: var(--display); font-weight: 720;
  font-size: clamp(1.05rem, 0.9rem + 0.6vw, 1.35rem);
  line-height: 1.12; text-transform: lowercase;
  color: var(--cocoa);
  border-bottom: 1.5px solid transparent;
  transition: border-color 300ms;
  width: fit-content;
}
.work-tile:hover .wt-title { border-bottom-color: var(--gold); }
.wt-meta {
  grid-column: 2; grid-row: 1 / span 2; align-self: end;
  font-family: var(--mono); font-size: 0.58rem;
  letter-spacing: 0.06em; text-transform: lowercase;
  color: var(--ink-faint); text-align: right;
}

@media (max-width: 1060px) {
  .works-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 130px; }
}
@media (max-width: 640px) {
  .works-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
  .work-tile, .work-tile.t-wide { grid-column: span 2; grid-row: auto; }
  .wt-frame { aspect-ratio: 4 / 3; flex: none; }
  .work-tile.t-tall .wt-frame { aspect-ratio: 4 / 5; }
}

/* =====================================================================
   04 · OYUNLAR — çikolata uygulama kartları
   ===================================================================== */
.games { position: relative; }
.games-sub {
  margin-top: 1rem; max-width: 44ch;
  color: var(--ink-soft); font-size: 0.95rem;
}

.games-list { display: grid; gap: clamp(1.2rem, 3vw, 2rem); margin-top: 1rem; }

.game-card {
  position: relative; cursor: pointer;
  font: inherit; text-align: left;
  background: var(--cocoa); color: var(--paper);
  border: 1.5px solid var(--cocoa);
  border-radius: var(--r-lg);
  padding: clamp(1.4rem, 4vw, 2.6rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem 2rem;
  box-shadow: 0 14px 30px rgba(53, 37, 26, 0.16);
  transition: translate 500ms var(--ease-lux), box-shadow 500ms var(--ease-lux), rotate 500ms var(--ease-lux);
}
.games-list .game-card:nth-child(odd) { rotate: -0.5deg; }
.games-list .game-card:nth-child(even) { rotate: 0.5deg; }
.game-card:hover {
  rotate: 0deg; translate: 0 -5px;
  box-shadow: 0 28px 52px rgba(53, 37, 26, 0.28);
}
.game-status {
  grid-column: 2; grid-row: 1; align-self: start; justify-self: end;
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.1em;
  text-transform: lowercase; white-space: nowrap;
  border: 1.5px solid var(--gold-line); color: var(--gold);
  border-radius: 999px;
  padding: 0.32rem 0.8rem;
  rotate: 2deg;
}
.game-status.live { background: var(--gold); color: var(--cocoa); border-color: var(--gold); }
.game-title {
  grid-column: 1; grid-row: 1;
  font-family: var(--display); font-weight: 780;
  font-size: clamp(1.9rem, 1.2rem + 3.4vw, 3.6rem);
  line-height: 1; letter-spacing: -0.015em;
  text-transform: lowercase;
  color: var(--paper);
}
.game-title .slash { color: var(--gold); font-weight: 400; }
.game-one {
  grid-column: 1 / -1;
  font-family: var(--script);
  color: rgba(243, 236, 223, 0.85);
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem);
  line-height: 1.1;
  max-width: 34ch;
}
.game-chips { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.4rem; }
.game-chips span {
  font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.06em;
  text-transform: lowercase; color: rgba(243, 236, 223, 0.6);
  border: 1px solid rgba(243, 236, 223, 0.22);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
}
.game-open {
  grid-column: 1 / -1; margin-top: 0.6rem;
  font-family: var(--mono); font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: lowercase; color: var(--gold);
}
@media (max-width: 700px) {
  .game-card { grid-template-columns: 1fr; }
  .game-status { grid-column: 1; grid-row: 1; justify-self: start; }
  .game-title { grid-row: 2; }
}

/* oyun kimlikleri */
.g-dealndrop .game-title::after {
  content: "●"; color: var(--gold); font-size: 0.45em;
  display: inline-block; margin-left: 0.35em; vertical-align: 0.35em;
  transition: transform 700ms var(--ease-lux);
}
.g-dealndrop:hover .game-title::after { transform: rotateY(540deg); }
.g-deadline .game-title { text-transform: uppercase; letter-spacing: 0.01em; }
.g-deadline:hover .game-title { animation: glitch 340ms steps(2) infinite; }
@keyframes glitch {
  0% { text-shadow: 3px 0 var(--gold), -3px 0 rgba(243, 236, 223, 0.4); }
  50% { text-shadow: -3px 0 var(--gold), 3px 0 rgba(243, 236, 223, 0.4); }
  100% { text-shadow: 2px 2px var(--gold), -2px -2px rgba(243, 236, 223, 0.4); }
}
.g-bioyun { border-style: dashed; border-color: rgba(243, 236, 223, 0.5); }
.g-bioyun .game-title {
  font-family: var(--mono); font-weight: 700;
  letter-spacing: 0.04em;
  font-size: clamp(1.5rem, 1rem + 2.6vw, 2.8rem);
  text-shadow: 3px 3px 0 rgba(169, 140, 82, 0.6);
}
.g-bioyun .game-title::after {
  content: "▮"; color: var(--gold); margin-left: 0.25em;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.g-galeri .game-title { font-weight: 500; }
.g-arkas .game-title { font-weight: 600; }

/* =====================================================================
   05 · İLETİŞİM — çikolata bandı
   ===================================================================== */
.contact {
  position: relative;
  background: var(--cocoa);
  color: var(--paper);
  margin-inline: calc(-1 * var(--gutter));
  padding-inline: var(--gutter);
  margin-top: clamp(5rem, 12vh, 9.5rem);
  padding-block: clamp(4rem, 12vh, 8rem) 2rem;
}
.contact .section-head::before { border-top-color: rgba(243, 236, 223, 0.35); }
.contact .sec-title { color: var(--paper); }
.contact .sec-no { -webkit-text-stroke-color: rgba(169, 140, 82, 0.5); }

.contact-huge {
  font-family: var(--script); font-weight: 400;
  font-size: clamp(3rem, 1.6rem + 7.5vw, 7.5rem);
  line-height: 1.05;
  color: var(--paper);
  margin-bottom: clamp(1.6rem, 4vh, 2.6rem);
}
.contact-huge em { font-style: normal; color: var(--gold); }
.contact-email {
  display: inline-block;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.15rem, 0.9rem + 2vw, 2.3rem);
  letter-spacing: -0.01em;
  color: var(--paper);
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 0.2rem;
  transition: color 400ms;
  will-change: transform;
}
.contact-email:hover { color: var(--gold); }
@media (max-width: 620px) {
  .contact-email { font-size: clamp(1rem, 4.2vw, 1.4rem); }
}
.contact-links { display: flex; gap: 0.8rem; margin-top: 2.4rem; }
.pill {
  font-family: var(--mono);
  font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: lowercase;
  text-decoration: none; color: var(--paper);
  border: 1.5px solid rgba(243, 236, 223, 0.4);
  padding: 0.7rem 1.4rem; border-radius: 999px;
  transition: border-color 300ms, background-color 300ms, color 300ms;
}
.pill:hover { border-color: var(--gold); background: var(--gold); color: var(--cocoa); }
.contact-meta { margin-top: 3rem; display: flex; flex-direction: column; gap: 0.4rem; }
.contact-meta .mono { color: rgba(243, 236, 223, 0.65); }
.colophon { margin-top: clamp(3rem, 7vh, 5rem); }
.colophon-corners {
  display: flex; justify-content: space-between; gap: 1rem;
  font-family: var(--mono); font-size: 0.62rem;
  letter-spacing: 0.08em; text-transform: lowercase;
  color: rgba(243, 236, 223, 0.55);
  border-top: 1.5px dashed rgba(243, 236, 223, 0.3);
  padding-top: 1rem;
}
.colophon p { font-size: 0.62rem; color: rgba(243, 236, 223, 0.45); margin-top: 0.7rem; }

/* =====================================================================
   İŞ PENCERESİ (dialog)
   ===================================================================== */
.work-dialog {
  border: 1.5px solid var(--cocoa); padding: 0;
  width: min(1100px, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  background: var(--card); color: var(--ink);
  border-radius: 14px;
  margin: auto;
}
.work-dialog::backdrop {
  background: rgba(30, 20, 13, 0.6);
  backdrop-filter: blur(6px);
}
.wd-bar {
  position: sticky; top: 0; z-index: 6;
  display: flex; align-items: center; gap: 0.55rem;
  padding: 0.6rem 1rem;
  background: var(--paper);
  border-bottom: 1.5px solid var(--cocoa);
}
.wd-bar i {
  width: 11px; height: 11px; border-radius: 50%;
  border: 1px solid rgba(53, 37, 26, 0.35);
}
.wd-bar i:nth-child(1) { background: #d9836f; }
.wd-bar i:nth-child(2) { background: #dfba63; }
.wd-bar i:nth-child(3) { background: #a3b284; }
.wd-path {
  margin-left: 0.4rem; flex: 1;
  font-family: var(--mono); font-size: 0.66rem;
  letter-spacing: 0.06em; color: var(--cocoa-soft);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wd-close {
  background: var(--cocoa); color: var(--card);
  border: none; cursor: pointer;
  border-radius: 999px;
  font-family: var(--mono); font-size: 0.66rem;
  letter-spacing: 0.1em; text-transform: lowercase;
  padding: 0.45rem 1rem;
}
.wd-close:hover { background: var(--gold-deep); }
.wd-inner { padding: clamp(1.4rem, 4vw, 2.6rem); }

.wd-kicker {
  font-family: var(--mono); font-size: 0.66rem;
  letter-spacing: 0.16em; text-transform: lowercase;
  color: var(--gold-deep); margin-bottom: 0.8rem;
}
.wd-title {
  font-family: var(--display); font-weight: 780;
  font-size: clamp(2rem, 1.4rem + 3vw, 3.6rem);
  line-height: 0.98; letter-spacing: -0.02em;
  text-transform: lowercase; color: var(--cocoa);
  margin-bottom: 1.2rem; max-width: 18ch;
}
.wd-credit {
  display: flex; flex-wrap: wrap; gap: 0.4rem 2.4rem;
  border-top: 1.5px dashed var(--line); border-bottom: 1.5px dashed var(--line);
  padding: 0.8rem 0; margin-bottom: 1.4rem;
}
.wd-credit dt {
  font-family: var(--mono); font-size: 0.58rem;
  letter-spacing: 0.14em; text-transform: lowercase;
  color: var(--ink-faint);
}
.wd-credit dd { font-size: 0.88rem; font-weight: 500; }
.wd-credit > div { display: flex; flex-direction: column; gap: 0.15rem; }
.wd-note {
  font-size: 1rem; line-height: 1.65;
  color: var(--ink-soft); max-width: 62ch; margin-bottom: 2rem;
}

.wd-media { display: grid; gap: 1.6rem; }
.wd-video video { width: 100%; background: var(--cocoa); border-radius: var(--r-md); }
.wd-video.v-vertical { max-width: 420px; margin-inline: auto; }
.wd-video figcaption, .wd-strip-label {
  font-family: var(--mono); font-size: 0.62rem;
  letter-spacing: 0.1em; text-transform: lowercase;
  color: var(--ink-faint); margin-top: 0.5rem;
}

.wd-strip {
  display: flex; gap: 0.8rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 0.6rem;
}
.wd-strip::-webkit-scrollbar { height: 4px; }
.wd-strip::-webkit-scrollbar-thumb { background: var(--gold-line); border-radius: 2px; }
.wd-strip button {
  flex: 0 0 auto; scroll-snap-align: start;
  border: 1.5px solid var(--cocoa);
  border-radius: var(--r-md);
  background: var(--card);
  padding: 4px; cursor: zoom-in;
  overflow: hidden;
}
.wd-strip img { height: clamp(200px, 38vh, 340px); width: auto; border-radius: calc(var(--r-md) - 5px); }
.wd-strip button.m-contain img { object-fit: contain; background: #fff; }
.wd-strip button.m-dark img { background: var(--cocoa); }

.wd-iconset {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center;
  border: 1.5px solid var(--line); border-radius: var(--r-md);
  padding: 1.4rem; background: #fff;
}
.wd-iconset img { height: 56px; width: auto; }

/* =====================================================================
   LIGHTBOX
   ===================================================================== */
.lightbox {
  border: none; background: transparent; padding: 0;
  width: 100vw; height: 100dvh; max-width: none; max-height: none;
  display: grid; place-items: center;
}
.lightbox:not([open]) { display: none; }
.lightbox::backdrop { background: rgba(30, 20, 13, 0.93); }
.lightbox figure {
  display: grid; place-items: center; gap: 0.8rem;
  max-width: 92vw; max-height: 88dvh;
}
.lightbox img {
  max-width: 92vw; max-height: 80dvh;
  object-fit: contain;
  border: 1.5px solid rgba(243, 236, 223, 0.3);
  border-radius: var(--r-md);
  padding: 6px; background: rgba(53, 37, 26, 0.4);
}
.lightbox figcaption { color: rgba(243, 236, 223, 0.75); }
.lb-close, .lb-prev, .lb-next {
  position: fixed; z-index: 5;
  background: none; border: 1.5px solid rgba(243, 236, 223, 0.4);
  color: var(--paper); cursor: pointer;
  width: 44px; height: 44px; border-radius: 50%;
  font-size: 1rem;
  transition: border-color 300ms, background-color 300ms;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { border-color: var(--gold); background: rgba(169, 140, 82, 0.3); }
.lb-close { top: 1.2rem; right: 1.2rem; }
.lb-prev { left: 1.2rem; top: 50%; translate: 0 -50%; }
.lb-next { right: 1.2rem; top: 50%; translate: 0 -50%; }

/* =====================================================================
   MEGA MARQUEE — bölümler arası dev içi boş kelimeler
   ===================================================================== */
.mega-marquee {
  margin-inline: calc(-1 * var(--gutter));
  margin-top: clamp(5rem, 12vh, 9.5rem);
  overflow: hidden;
  border-top: 1.5px dashed var(--line);
  border-bottom: 1.5px dashed var(--line);
  padding-block: 0.6rem;
}
.mega-track {
  display: inline-block; white-space: nowrap; width: max-content;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(3.2rem, 8.5vw, 7.5rem); line-height: 1.1;
  text-transform: lowercase; letter-spacing: 0;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(53, 37, 26, 0.45);
  animation: drift-x 38s linear infinite;
}
.mega-track em {
  font-style: normal; -webkit-text-stroke: 0;
  color: var(--gold);
}
.mega-rev .mega-track { animation-direction: reverse; }
.mega-rev { border-bottom: none; }

/* =====================================================================
   PRELOADER — çikolata perde
   ===================================================================== */
.preloader {
  position: fixed; inset: 0; z-index: 300;
  background: var(--cocoa);
  display: grid; place-content: center; gap: 0.7rem;
  transition: clip-path 850ms var(--ease-lux) 150ms, visibility 0s 1100ms;
  clip-path: inset(0 0 0 0);
}
.preloader.done { clip-path: inset(0 0 100% 0); visibility: hidden; }
.pre-word {
  font-family: var(--script); font-weight: 400;
  font-size: clamp(2.6rem, 9vw, 5rem);
  color: var(--paper);
  animation: pre-in 700ms var(--ease-lux) both;
}
.pre-dot { color: var(--gold); }
.pre-sub {
  font-family: var(--mono); font-size: 0.62rem;
  letter-spacing: 0.3em; text-transform: lowercase;
  color: rgba(243, 236, 223, 0.55);
  text-align: center;
  animation: pre-in 700ms var(--ease-lux) 150ms both;
}
@keyframes pre-in { from { opacity: 0; translate: 0 18px; } }

/* =====================================================================
   REVEAL KOREOGRAFİSİ
   ===================================================================== */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0; translate: 0 18px;
    transition: opacity 700ms var(--ease-lux), translate 700ms var(--ease-lux);
  }
  [data-reveal].is-visible { opacity: 1; translate: 0 0; }
  .work-tile[data-reveal] { transition-delay: calc(var(--i, 0) * 60ms); }

  .work-dialog[open] { animation: dlg-in 380ms var(--ease-lux); }
  @keyframes dlg-in {
    from { opacity: 0; transform: translateY(14px) scale(0.985); }
  }

  /* hayalet rakamlar kaydırmayla süzülür */
  @supports (animation-timeline: view()) {
    .sec-no {
      animation: ghost-y linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 90%;
    }
    @keyframes ghost-y { from { translate: 0 70px; } to { translate: 0 -70px; } }
  }
}

/* =====================================================================
   REDUCED MOTION
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-name .inner { translate: 0 0; animation: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
  .overlay-menu a { opacity: 1; translate: 0 0; animation: none; }
  .progress { display: none; }
  .preloader { display: none; }
  .hero-ghost span, .mega-track { animation: none; }
  .g-deadline:hover .game-title { animation: none; }
}
