/* Mustafa Altıoklar — responsive stylesheet
   Mobile-first. Every size is fluid (clamp) so nothing is pinned to a
   desktop canvas the way the original export was. */

:root {
  --bg: #f4f0e8;
  --ink: #24211d;
  --muted: #8b867d;
  --rule: #d8d1c5;
  --link: #1a4bd8;

  --serif: "Cormorant Garamond", Cormorant, Georgia, "Times New Roman", serif;
  /* the whole site is set in the serif; only sizes change */
  --sans: var(--serif);

  --page: 1120px;
  --gutter: clamp(18px, 5vw, 48px);
  --section-gap: clamp(48px, 9.4vw, 114px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(17px, 1.15vw + 13px, 20px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.narrow { max-width: 680px; margin-inline: auto; }

/* ---------- top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

.topbar nav {
  display: flex;
  gap: clamp(14px, 3.4vw, 36px);
  align-items: center;
  /* "safe" keeps the first item reachable when the row has to scroll;
     plain centering clips the start on narrow screens */
  justify-content: safe center;
  overflow-x: auto;
  scrollbar-width: none;
  padding-block: 12px;
  -webkit-overflow-scrolling: touch;
}
.topbar nav::-webkit-scrollbar { display: none; }

.topbar a {
  flex: none;
  text-decoration: none;
  font-size: clamp(12px, 2.6vw, 15px);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  padding-block: 4px;
  transition: color .18s ease;
}
.topbar a:hover, .topbar a:focus-visible { color: var(--ink); }

/* ---------- hero ---------- */

.hero {
  padding-top: clamp(34px, 7.6vw, 74px);
  text-align: center;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 9.5vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0;
}

.hero .tagline {
  margin: clamp(10px, 2vw, 16px) 0 0;
  font-size: clamp(12.5px, 2.9vw, 16px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- sections ---------- */

section { padding-block: var(--section-gap); }
section + section { padding-top: 0; }

.section-head { text-align: center; margin-bottom: clamp(24px, 5vw, 46px); }

.section-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 8vw, 68px);
  line-height: 1.05;
  margin: 0;
}

.section-head .sub {
  font-family: var(--serif);
  font-size: clamp(18px, 2.6vw, 30px);
  line-height: 1.3;
  color: var(--ink);
  margin: clamp(8px, 2vw, 14px) auto 0;
  max-width: none;
}

/* pull quote between blocks. Lines should fill naturally — short quotes
   stay on one line, long ones only push the last word or two down —
   rather than being forced into even, "balanced" multi-line blocks. */
.pullquote {
  font-family: var(--serif);
  font-size: clamp(21px, 3.1vw, 38px);
  line-height: 1.25;
  text-align: center;
  margin: 0 auto clamp(20px, 4vw, 38px);
  max-width: none;
}

/* ---------- biography ---------- */

.bio-block { margin-bottom: var(--section-gap); }
.bio-block:last-child { margin-bottom: 0; }

/* The photo sits beside the opening paragraphs; everything after it runs
   the full width underneath. Splitting per paragraph (instead of wrapping
   text around a float) means a sentence never breaks mid-way with its last
   few words stranded below the picture. */
.bio-top { display: grid; gap: 22px; }

@media (min-width: 900px) {
  .bio-top {
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
  }
  /* one block is shown with a larger photo */
  .bio-block--wide .bio-top { grid-template-columns: 440px minmax(0, 1fr); }
  .bio-block--wide.bio-block:nth-of-type(even) .bio-top { grid-template-columns: minmax(0, 1fr) 440px; }

  /* alternate sides per block, like the reference layout */
  .bio-block:nth-of-type(even) .bio-top { grid-template-columns: minmax(0, 1fr) 300px; }
  .bio-block:nth-of-type(even) .bio-figure { order: 2; }
  .bio-block:nth-of-type(even) .bio-side { order: 1; }
}

.bio-figure { margin: 0; }

.bio-figure img {
  width: 100%;
  border-radius: 2px;
}

.bio-side p, .bio-rest p { margin: 0 0 1.05em; }
.bio-rest { margin-top: 1.05em; }
.bio-body p:last-child { margin-bottom: 0; }
.bio-body a { color: var(--link); text-underline-offset: 2px; }

/* ---------- video ---------- */

.video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0d0c0b;
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  border: 0;
  padding: 0;
  display: block;
}

.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video .play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.video .play::before {
  content: "";
  width: clamp(52px, 13vw, 74px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .8);
  background: rgba(0, 0, 0, .25);
  transition: transform .2s ease, background .2s ease;
}

.video .play::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: clamp(9px, 2.3vw, 13px) 0 clamp(9px, 2.3vw, 13px) clamp(15px, 3.8vw, 21px);
  border-color: transparent transparent transparent rgba(255, 255, 255, .92);
  margin-left: 5px;
}

.video:hover .play::before { transform: scale(1.06); background: rgba(0, 0, 0, .1); }

.hero-video { margin-top: clamp(20px, 4vw, 36px); }

/* ---------- filmography ---------- */

/* the poster wall is one image; each poster gets an invisible link on top
   that jumps to that film further down the page */
.poster-grid {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto clamp(30px, 6vw, 58px);
}
.poster-grid img { width: 100%; }
.poster-grid a {
  position: absolute;
  border-radius: 2px;
  outline-offset: 3px;
  transition: box-shadow .18s ease, transform .18s ease;
}
.poster-grid a:hover,
.poster-grid a:focus-visible {
  box-shadow: 0 0 0 2px var(--ink);
  transform: scale(1.02);
}

/* section label above the feature list */
.group-head {
  text-align: center;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 6vw, 44px);
  margin: 0 0 clamp(22px, 4.5vw, 38px);
}

.film {
  padding-block: clamp(34px, 7vw, 64px);
  border-top: 1px solid var(--rule);
}
.film:first-of-type { border-top: 0; padding-top: 0; }

.film-head { text-align: center; margin-bottom: clamp(18px, 4vw, 30px); }

.film-head h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 7.6vw, 62px);
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}

.film-sub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2vw, 18px);
  margin: 4px 0 0;
}

.film-head .en {
  font-family: var(--serif);
  font-size: clamp(18px, 4.2vw, 28px);
  margin: 0;
  color: var(--ink);
}

.film-head .meta {
  margin: clamp(6px, 1.6vw, 10px) 0 0;
  font-size: clamp(14px, 1.5vw, 19px);
  letter-spacing: 0.02em;
  color: var(--muted);
}

.film-quote {
  font-family: var(--serif);
  font-size: clamp(18px, 2.4vw, 28px);
  line-height: 1.3;
  text-align: center;
  margin: 0 auto clamp(18px, 3vw, 30px);
  max-width: none;
}

.film-extras {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(14px, 3vw, 22px);
  margin-top: clamp(18px, 4vw, 28px);
}

/* Award laurels are stored one per file, so every laurel can be drawn at
   the same fixed height regardless of how many a film won — the source
   artwork packed anywhere from 1 to 9 laurels onto a single canvas, which
   is what made them come out at wildly different sizes. */
.laurels {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(2px, 0.8vw, 8px);
  width: 100%;
}
.laurels img {
  height: clamp(52px, 7.5vw, 78px);
  width: auto;
  max-width: none;
  flex: none;
}
.laurels--sm img { height: clamp(34px, 4.6vw, 46px); }

.imdb { display: inline-block; flex: none; line-height: 0; }
.imdb img { width: clamp(44px, 5vw, 58px); }

/* ---------- shorts ---------- */

.shorts-head {
  text-align: center;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 6vw, 44px);
  margin: var(--section-gap) 0 clamp(24px, 5vw, 40px);
}

.shorts {
  display: grid;
  /* always at least 2 columns, even on a phone — a single full-bleed
     poster per row reads as broken, not a gallery */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 4vw, 40px);
  align-items: start;
}

@media (min-width: 640px) {
  .shorts { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: clamp(22px, 4.5vw, 40px); }
}

.short figure { margin: 0; }

/* title sits above the poster (reference layout); the caption block gets a
   floor height so posters still line up across a row when a title wraps */
.short figcaption {
  text-align: center;
  min-height: 5.6em;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin-bottom: 14px;
}

.short figure > img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 2px;
}

.short h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(21px, 4.6vw, 27px);
  line-height: 1.15;
  margin: 0;
}

.short .en { font-family: var(--serif); font-size: clamp(15px, 3.4vw, 19px); margin: 2px 0 0; color: var(--muted); }
.short .year { font-size: clamp(13px, 1.4vw, 17px); color: var(--muted); margin: 4px 0 0; letter-spacing: .02em; }

.short .watch {
  display: block;
  text-align: center;
  margin-top: 10px;
  font-size: clamp(13px, 1.4vw, 16px);
  color: var(--link);
  text-underline-offset: 3px;
}

.short .laurels { margin-top: 10px; }

/* ---------- books ---------- */

/* each book on the photo opens its own video */
.books-cover {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto clamp(26px, 5vw, 50px);
}
.books-cover img { width: 100%; }

.book-hit {
  position: absolute;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 2px;
  display: grid;
  place-items: center;
  transition: background .18s ease, box-shadow .18s ease;
}
.book-hit:hover, .book-hit:focus-visible {
  background: rgba(36, 33, 29, .28);
  box-shadow: 0 0 0 2px var(--ink);
}

/* play badge — always faintly visible so the photo reads as clickable */
.book-play {
  width: clamp(38px, 5vw, 54px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .9);
  background: rgba(36, 33, 29, .55);
  position: relative;
  opacity: .75;
  transition: opacity .18s ease, transform .18s ease;
}
.book-play::after {
  content: "";
  position: absolute;
  top: 50%; left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 7px 0 7px 11px;
  border-color: transparent transparent transparent #fff;
}
.book-hit:hover .book-play,
.book-hit:focus-visible .book-play { opacity: 1; transform: scale(1.08); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20, 18, 16, .88);
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 48px);
}
/* display:grid would otherwise override the hidden attribute */
.lightbox[hidden] { display: none; }
.lightbox-frame {
  width: min(1000px, 100%);
  aspect-ratio: 16 / 9;
  background: #000;
}
.lightbox-frame iframe { width: 100%; height: 100%; border: 0; }
.lightbox-close {
  position: absolute;
  top: clamp(10px, 2vw, 22px);
  right: clamp(14px, 2.5vw, 28px);
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  font-family: var(--serif);
}

.books {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(28px, 5vw, 48px);
  align-items: start;
}

/* one media box per book, same ratio for a video or a cover, so the
   titles underneath line up across the row */
.book-media {
  aspect-ratio: 16 / 9;
  margin-bottom: 16px;
}
.book-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 2px;
}
.book-media .video { height: 100%; aspect-ratio: auto; }

.book h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 5.6vw, 38px);
  line-height: 1.1;
  margin: 0;
}
@media (min-width: 640px) { .book h3 { min-height: 2.2em; } }
.book .en { font-family: var(--serif); font-size: clamp(17px, 3.8vw, 22px); margin: 3px 0 0; }
.book .meta { font-size: clamp(13px, 1.4vw, 17px); color: var(--muted); margin: 8px 0 0; letter-spacing: .02em; }

/* ---------- academy ---------- */

.academy-inner {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}

.academy .wordmark { width: 100%; max-width: 190px; margin: 0 auto clamp(14px, 3vw, 22px); }
.academy p { margin: 0 0 1em; }
.academy .academy-photo {
  width: 100%;
  max-width: 520px;
  margin: clamp(18px, 3.5vw, 30px) auto clamp(6px, 1.5vw, 14px);
}

.academy .cta {
  display: inline-block;
  margin-top: 8px;
  font-size: clamp(12.5px, 3vw, 14px);
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  text-decoration: none;
}

.academy .logo { width: 100%; max-width: 260px; margin-inline: auto; }

/* ---------- contact ---------- */

.contact { text-align: center; }

.contact h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 7vw, 52px);
  margin: 0 0 clamp(20px, 4vw, 34px);
}

.contact a {
  font-family: var(--serif);
  font-size: clamp(20px, 5vw, 34px);
  color: var(--link);
  display: inline-block;
  margin: 4px 0;
  text-underline-offset: 4px;
  word-break: break-word;
}

.contact .logo { width: 100%; max-width: 210px; margin: clamp(26px, 5vw, 44px) auto 0; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--rule);
  margin-top: var(--section-gap);
  padding-block: clamp(26px, 5vw, 40px);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(12px, 3.5vw, 34px);
}

.site-footer a {
  text-decoration: none;
  font-size: clamp(12px, 2.8vw, 15px);
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}
.site-footer a:hover { color: var(--ink); }

.credit {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  margin-top: 18px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Book captions stay with their own cover at every screen size. */
.books { max-width: 900px; margin-inline: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.book { text-align: center; min-width: 0; }
.book-art { position: relative; margin-bottom: 14px; }
.book-art svg { display: block; width: 100%; height: auto; }
.book-art .book-hit { inset: 0; width: 100%; height: 100%; }
.book h3 { font-size: clamp(20px, 2.3vw, 26px); min-height: 0; line-height: 1.2; }
.book .en { font-size: clamp(16px, 1.7vw, 19px); line-height: 1.35; }
.book .meta { font-size: 14px; line-height: 1.4; margin-top: 6px; }

.academy-inner { max-width: 900px; }
.academy p { max-width: 720px; margin-inline: auto; }
.academy .academy-photo { max-width: 900px; }
@media (max-width: 540px) { .books { grid-template-columns: 1fr; } }

/* Compact section rhythm; adjacent paragraphs retain a single normal gap. */
:root { --section-gap: clamp(30px, 4.2vw, 52px); }
.pullquote { margin-bottom: clamp(18px, 2.4vw, 28px); }
.bio-side p, .bio-rest p { margin-bottom: .85em; }
.bio-rest { margin-top: .85em; }
.bio-side p:last-child, .bio-rest p:last-child { margin-bottom: 0; }
@media (min-width: 900px) {
  .bio-top, .bio-block--wide .bio-top, .bio-block:last-child .bio-top {
    grid-template-columns: 36% minmax(0, 1fr); gap: 36px; align-items: stretch;
  }
  .bio-block:nth-of-type(even) .bio-top,
  .bio-block--wide.bio-block:nth-of-type(even) .bio-top {
    grid-template-columns: minmax(0, 1fr) 36%;
  }
  .bio-block:last-child .bio-top { grid-template-columns: minmax(0, 1fr) 40%; }
  .bio-figure { position: relative; min-height: 0; margin-block: .35em; }
  .bio-figure img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center; }
}
#filmography .section-head { margin-bottom: 18px; }
.poster-grid a { border: 1px solid rgba(255,255,255,.35); cursor: pointer; }
.poster-action { position: absolute; right: 6px; bottom: 8px; border-radius: 20px; padding: 4px 10px; background: rgba(20,18,16,.8); color: #fff; font-family: Inter, sans-serif; font-size: clamp(10px,1.15vw,13px); line-height: 1.4; box-shadow: 0 2px 8px #0004; }
.poster-grid a:hover, .poster-grid a:focus-visible { background: #ffffff25; box-shadow: 0 0 0 3px #b88635, 0 8px 22px #0005; transform: translateY(-4px) scale(1.025); z-index: 1; }
.poster-grid a:hover .poster-action, .poster-grid a:focus-visible .poster-action { background: #f4f0e8; color: #24211d; }
.short-poster-link { display: block; position: relative; overflow: hidden; border-radius: 2px; }
.short-poster-link img { width: 100%; aspect-ratio: 2/3; object-fit: cover; transition: transform .2s ease, filter .2s ease; }
.short-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); display: grid; place-items: center; width: 54px; height: 54px; padding-left: 3px; border-radius: 50%; border: 2px solid #fff; color: #fff; background: #181613bb; font-size: 22px; }
.short-video-label { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: #181613dd; color: #fff; padding: 5px 10px; border-radius: 18px; font-size: 14px; }
.short-poster-link:hover img, .short-poster-link:focus-visible img { transform: scale(1.04); filter: brightness(.8); }
.short-poster-link:focus-visible, .academy-logo-link:focus-visible { outline: 3px solid #b88635; outline-offset: 5px; }
.academy-logo-link { display: block; width: fit-content; max-width: 100%; margin-inline: auto; }
.academy-logo-link:hover { opacity: .75; }
@media (prefers-reduced-motion: reduce) { .short-poster-link img { transition: none; } .poster-grid a:hover, .poster-grid a:focus-visible { transform: none; } }
.laurels .award-art { height: clamp(52px, 7.5vw, 78px); width: auto; aspect-ratio: 941 / 761; flex: none; }







.pullquote { white-space: pre-line; }
