/* Cengizhan Emer: F · Hareketli Koyu Seçki. Ölçüler ve renkler Tasarım/F-referans.dc.html ile birebir. */

:root {
  --bg: #0e0e0e;
  --fg: #ecebe7;
  --muted: #a3a39e;
  --line: #262626;
  --ph: #1a1a1a;
  --pad: 40px;
  --row: 280px;
  --wall-h: 300px;
  --sans: "Hanken Grotesk", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
html.hareket { scroll-behavior: smooth; }
html.lb-open { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); overflow-x: clip; }
a { color: var(--fg); }
a:hover { color: var(--muted); }
img { display: block; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 1px solid var(--fg); outline-offset: 4px; }
.muted { color: var(--muted); }

/* ------------------------------------------------ açılış */

.open { position: relative; }
.hareket .open { height: 200vh; height: 200svh; }
.open-in { position: relative; top: 0; height: 100vh; height: 100svh; min-height: 480px; overflow: hidden; background: var(--bg); }
.hareket .open-in { position: sticky; }
.open-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--odak, 50% 50%); }
@media (max-aspect-ratio: 1/1) { .open-img { object-position: var(--odak-dikey, var(--odak, 50% 50%)); } }
.hareket .open-img { transform: scale(1.14); will-change: transform; }
.open-shade { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.3); }
.bar { position: absolute; left: 0; right: 0; height: 17%; background: var(--bg); transform: scaleY(0); }
.bar-top { top: 0; transform-origin: top; }
.bar-bot { bottom: 0; transform-origin: bottom; }
.hareket .bar { transform: scaleY(1); }

.top { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 40px; padding: 28px var(--pad); }
.brand { font-size: 18px; text-decoration: none; }
.brand b { font-weight: 600; }
.brand span { font-weight: 300; }
.menu { display: flex; flex-wrap: wrap; gap: 0 30px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; }
.menu a { text-decoration: none; padding: 14px 0; }

.open-foot { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 40px; padding: 0 var(--pad) 44px; }
.name-box { display: flex; flex-direction: column; gap: 16px; }
.name { margin: 0; font-size: clamp(56px, 7.4vw, 108px); line-height: 0.94; font-weight: 300; letter-spacing: -0.02em; }
.name b { font-weight: 600; }
.role { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; }
.credit { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: #d4d3cf; }
.hareket .role, .hareket .credit { opacity: 0; }

/* ------------------------------------------------ marka şeridi */

/* Beyaz göz alıyordu: koyu gri zemin. Logo dosyalarının beyaz zemini derlemede şeffaf yapılıyor
   (logo_zemin.py), logo renkleri birebir orijinal. */
.brands { overflow: hidden; background: #c6c5c0; padding: 12px 0; }
.brands-track { display: flex; width: max-content; animation: brands 95s linear infinite; }
.brands-set { display: flex; flex: 0 0 auto; align-items: center; height: 30px; }
.brands-set img { flex: 0 0 auto; margin: 0 22px; }
@keyframes brands { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ------------------------------------------------ filtre çubuğu */

.filters { position: sticky; top: 0; z-index: 10; background: var(--bg); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 32px; padding: 14px var(--pad); border-bottom: 1px solid var(--line); }
.filters nav { display: flex; flex-wrap: wrap; gap: 0 26px; }
.filters button { min-height: 44px; padding: 0; background: none; border: none; border-bottom: 1px solid transparent; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; color: var(--muted); cursor: pointer; }
.filters button:hover { color: var(--fg); }
.filters button[aria-pressed="true"] { color: var(--fg); border-bottom-color: var(--fg); }
.filters sup { font-size: 9px; letter-spacing: 0.04em; color: var(--muted); }
.count { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: var(--muted); }

/* ------------------------------------------------ grid */

.grid { display: flex; flex-wrap: wrap; gap: 36px 10px; padding: 22px var(--pad) 0; }
.tile { flex: var(--ar) 1 calc(var(--ar) * var(--row)); min-width: 0; display: flex; flex-direction: column; gap: 9px; padding: 0; margin: 0; background: none; border: none; color: var(--fg); text-align: left; cursor: zoom-in; }
.tile[hidden] { display: none; }
.tile-frame { display: block; width: 100%; overflow: hidden; background: var(--ph); clip-path: inset(calc((1 - var(--t, 1)) * 100%) 0 0 0); }
.tile-frame picture { display: block; width: 100%; height: 100%; }
.tile-frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.12 - 0.12 * var(--t, 1))); }
.tile-cap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; width: 100%; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; opacity: clamp(0, calc((var(--t, 1) - 0.5) * 2), 1); }
.hareket .tile { --t: 0; }
.grid-end { flex: 1000 1 0px; height: 0; }

/* ------------------------------------------------ afiş duvarı */

.wall { padding: 130px 0 40px; display: flex; flex-direction: column; gap: 16px; overflow: hidden; }
.wall-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; padding: 0 var(--pad) 24px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; color: var(--muted); }
.wall-row { display: flex; gap: 12px; width: max-content; padding: 0 var(--pad); }
.hareket .wall-row { will-change: transform; }
.wall-row button { flex: 0 0 auto; padding: 0; margin: 0; background: none; border: none; cursor: zoom-in; }
.wall-row img { height: var(--wall-h); width: auto; object-fit: cover; background: var(--ph); }

/* ------------------------------------------------ iletişim */

.contact { padding: 120px var(--pad) 48px; display: flex; flex-direction: column; gap: 44px; }
.contact-reveal { display: flex; flex-direction: column; gap: 14px; }
.label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; color: var(--muted); }
.mail-mask { display: block; overflow: hidden; padding-bottom: 6px; }
.mail { display: inline-block; font-size: clamp(32px, 5.4vw, 80px); font-weight: 300; letter-spacing: -0.02em; text-decoration: none; overflow-wrap: anywhere; }
.hareket .mail { transform: translateY(110%); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; padding-top: 22px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 28px; }
.foot a { text-decoration: none; padding: 14px 0; }
.foot .ig { display: inline-flex; align-items: center; gap: 10px; }
.foot .ig svg { flex: none; width: 20px; height: 20px; }
.foot .muted { padding: 14px 0; }

/* ------------------------------------------------ büyük görünüm */

.lb { position: fixed; inset: 0; z-index: 100; background: rgba(10, 10, 10, 0.97); display: flex; flex-direction: column; }
.lb[hidden] { display: none; }
.lb-bg { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; background: none; border: none; cursor: zoom-out; }
.lb-top { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 16px 10px 24px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--muted); }
.lb-count { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.lb-frame { color: var(--fg); }
.lb-close { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; background: none; border: none; letter-spacing: inherit; color: var(--fg); cursor: pointer; }
.lb-stage { position: relative; flex: 1 1 auto; min-height: 0; padding: 0 84px; overflow: hidden; pointer-events: none; }
.lb-track { position: absolute; top: 0; bottom: 0; left: 0; display: flex; align-items: center; gap: 28px; transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1); }
.lb-track img { flex: 0 0 auto; background: var(--ph); opacity: 0.18; pointer-events: auto; cursor: pointer; transition: opacity 0.4s; }
.lb-track img:hover { opacity: 0.4; }
.lb-track img.on { opacity: 1; cursor: default; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 1px solid #3a3a37; background: var(--bg); color: var(--fg); display: flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; }
.lb-nav:hover { border-color: var(--muted); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-cap { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding: 16px 24px 22px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; pointer-events: none; }

/* ------------------------------------------------ ekran boyutları */

@media (max-width: 900px) {
  :root { --pad: 24px; --row: 220px; }
}

@media (max-width: 600px) {
  :root { --pad: 16px; --row: 200px; --wall-h: 220px; }
  .top { padding: 20px var(--pad); gap: 0 20px; }
  .menu { gap: 0 18px; }
  .open-foot { padding-bottom: 32px; }
  .filters nav { gap: 0 18px; }
  .count { display: none; }
  .grid { gap: 28px 8px; padding-top: 18px; }
  .wall { padding-top: 96px; }
  .contact { padding-top: 96px; gap: 36px; }
  .mail { font-size: 7vw; white-space: nowrap; }  /* satır = 11,6 × yazı boyutu; tek satıra sığsın */
  .lb-stage { padding: 0 34px; }
  .lb-track { gap: 12px; }
  .lb-nav { top: auto; bottom: 12px; transform: none; width: 44px; height: 44px; }
  .lb-prev { left: 12px; }
  .lb-next { right: 12px; }
  .lb-cap { padding: 14px 68px 24px; min-height: 68px; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  .brands-track { animation: none; }
  .lb-track, .lb-track img { transition: none; }
}
