/* Karakuş Film — tek yazı tipi, siyah/beyaz/gri. Renk fotoğraflardan gelir. */

:root {
  --bg: #fff;
  --fg: #000;
  --muted: #777;   /* >= 1rem metin */
  --muted-s: #666; /* küçük metin */
  --line: #eee;
  --ph: #f2f2f2;
  --gut: 4vw;
  --hh: 7rem;      /* başlık yüksekliği; JS ölçüp günceller */
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (min-width: 768px) { html { font-size: 18px; } }
@media (min-width: 1600px) { html { font-size: 20px; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.45;
  text-transform: lowercase;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; text-transform: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3 { font-weight: 500; line-height: 1.15; }

:focus-visible { outline: 2px solid #000; outline-offset: 3px; }
.hero :focus-visible, .tile :focus-visible { outline-color: #fff; }

.skip {
  position: absolute; left: var(--gut); top: -10rem; z-index: 100;
  background: #000; color: #fff; padding: .5rem .8rem; font-size: .9rem;
}
.skip:focus { top: .5rem; }

.vh {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- başlık ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: var(--bg);
  padding: 1.3rem var(--gut);
  display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem;
  min-height: 5rem;
}
.wordmark {
  display: block; font-weight: 500; font-size: 1.6rem; line-height: .98;
  letter-spacing: -.02em;
}
.wordmark span { display: block; }

.nav { text-align: right; }
.nav-main { display: flex; justify-content: flex-end; gap: 0 1.3rem; flex-wrap: wrap; }
.nav-main a {
  font-size: 1.6rem; line-height: 1.15; color: var(--muted);
  transition: color 1s var(--ease);
}
.nav-main a:hover, .nav-main a[aria-current="page"] { color: var(--fg); }
.nav-sub {
  display: flex; justify-content: flex-end; gap: 0 1rem; flex-wrap: wrap;
  margin-top: .35rem; font-size: 1rem; color: var(--muted);
}
.nav-sub a, .nav-sub button { color: var(--muted); transition: color .6s var(--ease); }
.nav-sub a:hover, .nav-sub button:hover, .nav-sub a[aria-current="page"] { color: var(--fg); }
.lang-btn { min-width: 1.4rem; text-align: right; }

.menu-btn { display: none; font-size: 1rem; color: var(--muted); padding: .2rem 0 .2rem .8rem; }

.menu-panel {
  position: fixed; inset: 0; z-index: 60; background: var(--bg);
  padding: 1.3rem var(--gut) 2rem;
  display: flex; flex-direction: column;
  transform: translateY(-100%); visibility: hidden;
  transition: transform .5s var(--ease), visibility 0s linear .5s;
}
.menu-panel.is-open { transform: none; visibility: visible; transition: transform .5s var(--ease), visibility 0s; }
.menu-panel-top { display: flex; justify-content: space-between; align-items: flex-start; }
.menu-close { font-size: 1rem; color: var(--muted); padding: .2rem 0 .2rem .8rem; }
.menu-panel nav { margin-top: auto; margin-bottom: auto; }
.menu-panel .m-main a { display: block; font-size: 2.6rem; line-height: 1.15; color: var(--muted); }
.menu-panel .m-main a[aria-current="page"] { color: var(--fg); }
.menu-panel .m-sub { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: 1.1rem; color: var(--muted); }
.menu-panel .m-sub a, .menu-panel .m-sub button { color: var(--muted); }

@media (max-width: 767px) {
  .nav { display: none; }
  .menu-btn { display: block; }
  .site-header { min-height: 0; padding-top: 1rem; padding-bottom: 1rem; }
}

/* ---------- genel yerleşim ---------- */
main { padding-top: var(--hh); min-height: 70vh; }
.wrap { padding-left: var(--gut); padding-right: var(--gut); }
.section { padding: 7rem var(--gut) 0; }
.section + .section { padding-top: 8rem; }
@media (max-width: 767px) { .section { padding-top: 4.5rem; } .section + .section { padding-top: 5rem; } }

.label { color: var(--muted); font-size: 1rem; margin-bottom: 1.6rem; display: block; font-weight: 400; }
.page-title { font-size: 2rem; font-weight: 500; line-height: 1.1; margin: 4rem 0 2.5rem; }
.statement { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 500; line-height: 1.12; max-width: 24ch; letter-spacing: -.01em; }
.prose { max-width: 38rem; }
.prose p + p { margin-top: 1em; }
.prose-lg { font-size: 1.25rem; line-height: 1.45; }
.more-link { display: inline-block; margin-top: 2.4rem; color: var(--muted); transition: color .6s var(--ease); }
.more-link:hover { color: var(--fg); }
.muted { color: var(--muted); }

/* yükleme: bölümler yavaşça belirir */
.fade { opacity: 0; transition: opacity .4s ease; }
.fade.is-in { opacity: 1; }

/* ---------- showreel ---------- */
/* Lemming gibi kenar boşluklu çerçeve; sayfayı yormayan yükseklik */
.hero { position: relative; margin: .4rem var(--gut) 0; height: 62vh; min-height: 20rem; max-height: 46rem; background: #111; overflow: hidden; }
.hero video, .hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 8rem; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,.35), rgba(0,0,0,0));
}
.hero-cap, .hero-sound {
  position: absolute; bottom: 1.1rem; z-index: 2; color: #fff; font-size: .9rem;
}
.hero-cap { left: 1.1rem; }
.hero-sound { right: 1.1rem; opacity: .85; transition: opacity .4s; }
.hero-sound:hover { opacity: 1; }
@media (max-width: 767px) { .hero { height: 52vh; min-height: 15rem; margin-top: 0; } .wordmark { font-size: 1.35rem; } }

/* ---------- ana sayfa film akışı (Lemming) ---------- */
.feed { display: flex; flex-direction: column; gap: 6rem; margin-top: 1rem; }
.feed-row { display: flex; align-items: flex-end; gap: 1.6rem; }
.feed-row .media { flex: 0 0 auto; }
.feed-row .txt { padding-bottom: .1rem; min-width: 0; }
.feed-row .meta { color: var(--muted); font-size: 1rem; }
.feed-row h3 { font-size: 1.6rem; font-weight: 500; margin-top: .25rem; }
.feed-row:hover img { opacity: .85; }
@media (max-width: 767px) {
  .feed { gap: 3.5rem; }
  .feed-row { flex-direction: column; align-items: stretch; gap: .8rem; margin-left: 0 !important; }
  .feed-row .media { width: 100% !important; }
  .feed li:nth-child(even) .media { width: 78% !important; margin-left: auto; }
  .feed li:nth-child(even) .txt { margin-left: 22%; }
}

.media { position: relative; aspect-ratio: 16 / 9; background: var(--ph); overflow: hidden; }
.media img { width: 100%; height: 100%; object-fit: cover; transition: opacity .6s var(--ease); }
.media.ph { display: flex; align-items: flex-end; padding: 1rem; color: var(--fg); font-weight: 500; }

/* ---------- haber listesi (Zentropa) ---------- */
.list { border-top: 1px solid var(--line); }
.list li { border-bottom: 1px solid var(--line); }
.list a {
  display: grid; grid-template-columns: 8rem 1fr auto; gap: 1.5rem; align-items: baseline;
  padding: 1.05rem 0; transition: color .6s var(--ease);
}
.list .date { color: var(--muted); }
.list .title { font-size: 1.25rem; line-height: 1.3; }
.list .ext { color: var(--muted); font-size: 1rem; }
.list a:hover .title { color: var(--muted); }
@media (max-width: 767px) {
  .list a { grid-template-columns: 1fr auto; gap: .2rem 1rem; }
  .list .date { grid-column: 1 / -1; }
}

/* ---------- filmler mozaiği ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; margin: -1rem 0 2.6rem; font-size: 1rem; }
.filters button { color: var(--muted); transition: color .6s var(--ease); }
.filters button:hover, .filters button[aria-pressed="true"] { color: var(--fg); }
.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1023px) { .mosaic { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 599px) { .mosaic { grid-template-columns: 1fr; } }
.tile { position: relative; display: block; }
.tile .media::after {
  content: ""; position: absolute; inset: 45% 0 0 0; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,.45), rgba(0,0,0,0));
}
.tile .media.ph::after { display: none; }
.tile .cap { position: absolute; left: 1rem; right: 1rem; bottom: .8rem; color: #fff; font-size: 1.25rem; font-weight: 500; z-index: 1; }
.tile .cap small { display: block; font-size: .85rem; font-weight: 400; opacity: .85; }
.tile .media.ph + .cap { color: var(--fg); }
.tile:hover img { opacity: .85; }
.empty { color: var(--muted); padding: 2rem 0; }

/* ---------- film detay ---------- */
.film { display: grid; grid-template-columns: 58fr 42fr; gap: 4vw; padding: 3rem var(--gut) 0; align-items: start; }
.film-media { position: sticky; top: calc(var(--hh) + 1rem); }
.film-media .media.ph { aspect-ratio: 16 / 9; }
.player { position: relative; aspect-ratio: 16 / 9; background: #000; }
.player iframe, .player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play {
  position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-start;
  padding: 1.1rem 1.2rem; color: #fff; font-size: .95rem; gap: .7rem; z-index: 2;
  background: linear-gradient(to top, rgba(0,0,0,.35), rgba(0,0,0,0) 45%);
}
.play .tri {
  width: 0; height: 0; border-style: solid; border-width: .55rem 0 .55rem .95rem;
  border-color: transparent transparent transparent #fff; transition: transform .4s var(--ease);
}
.play:hover .tri { transform: scale(1.12); }
.film-info .meta { color: var(--muted); }
.film-info h1 { font-size: 2rem; margin: .4rem 0 .2rem; }
.film-info .intl { color: var(--muted); }
.film-info .logline { font-size: 1.25rem; margin-top: 1.8rem; max-width: 38rem; }
.film-info .prose { margin-top: 1.4rem; }
.block { margin-top: 3rem; max-width: 38rem; }
.block h2 { font-size: 1rem; font-weight: 400; color: var(--muted); margin-bottom: .8rem; }
.lines li { padding: .15rem 0; }
.lines .sep { color: var(--muted); }
.credits { display: grid; grid-template-columns: minmax(7rem, 40%) 1fr; gap: .25rem 1.2rem; }
.credits dt { color: var(--muted); }
.film-links { margin-top: 3rem; display: flex; flex-wrap: wrap; gap: .5rem 2rem; }
.film-links a { color: var(--muted); transition: color .6s var(--ease); }
.film-links a:hover { color: var(--fg); }
.film-links a.strong { color: var(--fg); }
@media (max-width: 899px) {
  .film { grid-template-columns: 1fr; gap: 2rem; padding-top: 1.5rem; }
  .film-media { position: static; margin: 0 calc(var(--gut) * -1); }
}

/* ---------- hakkımızda ---------- */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 4rem 4vw; margin-top: 1rem; }
.person .ph-img { aspect-ratio: 4 / 5; background: var(--ph); overflow: hidden; }
.person img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .5s var(--ease); }
.person:hover img { filter: grayscale(0); }
.person h3 { font-size: 1.25rem; margin-top: 1rem; }
.person .role { color: var(--muted); margin-top: .15rem; }
.person .bio { margin-top: 1rem; }
.person .bio.clamped { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.person .toggle { margin-top: .6rem; color: var(--muted); transition: color .6s; }
.person .toggle:hover { color: var(--fg); }
.partners { display: flex; flex-wrap: wrap; align-items: center; gap: 2.4rem 3.5rem; }
.partners a, .partners span { display: block; }
.partners img { height: 2.6rem; width: auto; max-width: 10rem; object-fit: contain; filter: grayscale(1) brightness(0); opacity: .55; transition: opacity .5s var(--ease); }
.partners a:hover img { opacity: 1; }

/* ---------- haber detay ---------- */
.article { padding: 3rem var(--gut) 0; }
.article .date { color: var(--muted); }
.article h1 { font-size: 2rem; margin: .5rem 0 2.5rem; max-width: 38rem; }
.article .media { max-width: 58rem; margin-bottom: 2.5rem; }
.article .prose { font-size: 1.1rem; }

/* ---------- iletişim ---------- */
.big-mail { font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 500; line-height: 1.15; word-break: break-word; border-bottom: 1px solid currentColor; transition: color .6s; }
.big-mail:hover { color: var(--muted); }
.contact-grid { margin-top: 3.5rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 2rem; max-width: 52rem; }
.contact-grid h2 { font-size: 1rem; font-weight: 400; color: var(--muted); margin-bottom: .4rem; }
.contact-grid a:hover { color: var(--muted); }

/* ---------- alt bilgi ---------- */
.site-footer {
  margin-top: 9rem; padding: 2.2rem var(--gut) 2.4rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: .4rem 2rem; color: var(--muted-s); font-size: .85rem;
}
.site-footer a { transition: color .6s; }
.site-footer a:hover { color: var(--fg); }
.site-footer .copy { margin-left: auto; }
@media (max-width: 767px) { .site-footer { flex-direction: column; margin-top: 6rem; } .site-footer .copy { margin-left: 0; } }

.notfound { padding: 5rem var(--gut) 0; }
.notfound p { max-width: 38rem; font-size: 1.25rem; }

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