/* 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;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --page: 1120px;
  --gutter: clamp(18px, 5vw, 48px);
  --section-gap: clamp(56px, 11vw, 132px);
}

*, *::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(15px, 1.05vw + 12px, 17px);
  line-height: 1.65;
  -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(11px, 2.6vw, 12.5px);
  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(40px, 9vw, 88px);
  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(11.5px, 2.9vw, 14px);
  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(28px, 6vw, 56px); }

.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(19px, 4.4vw, 30px);
  line-height: 1.35;
  color: var(--ink);
  margin: clamp(8px, 2vw, 14px) auto 0;
  max-width: 22ch;
}

/* pull quote between blocks */
.pullquote {
  font-family: var(--serif);
  font-size: clamp(24px, 6vw, 46px);
  line-height: 1.22;
  text-align: center;
  margin: 0 auto clamp(24px, 5vw, 44px);
  max-width: 18ch;
  text-wrap: balance;
}

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

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

.bio-body {
  display: grid;
  gap: clamp(20px, 4vw, 40px);
  align-items: start;
}

@media (min-width: 860px) {
  /* portrait column + reading column, sides alternating per block.
     nth-of-type counts only the blocks, not the section heading. */
  .bio-body { grid-template-columns: 300px minmax(0, 1fr); }

  .bio-block:nth-of-type(even) .bio-body { grid-template-columns: minmax(0, 1fr) 300px; }
  .bio-block:nth-of-type(even) .bio-figure { order: 2; }
  .bio-block:nth-of-type(even) .bio-text { order: 1; }
}

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

.bio-text p { margin: 0 0 1.05em; }
.bio-text p:last-child { margin-bottom: 0; }
.bio-text 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(28px, 6vw, 56px); }

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

.poster-grid { width: 100%; max-width: 900px; margin: 0 auto clamp(36px, 8vw, 72px); }

.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-head .en {
  font-family: var(--serif);
  font-size: clamp(18px, 4.2vw, 28px);
  margin: 4px 0 0;
  color: var(--ink);
}

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

.film-quote {
  font-family: var(--serif);
  font-size: clamp(19px, 4.6vw, 30px);
  line-height: 1.3;
  text-align: center;
  margin: 0 auto clamp(20px, 4vw, 34px);
  max-width: 24ch;
  text-wrap: balance;
}

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

.awards { width: 100%; max-width: min(780px, 100%); }

.imdb {
  display: inline-block;
  flex: none;
}
.imdb img { width: clamp(52px, 13vw, 64px); }

/* ---------- 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;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: clamp(22px, 4.5vw, 40px);
  align-items: start;
}

.short figure { margin: 0; }

/* posters share one ratio so every card's caption starts on the same line */
.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: 14px 0 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(12px, 3vw, 13.5px); color: var(--muted); margin: 6px 0 0; letter-spacing: .05em; }

.short .watch {
  display: inline-block;
  margin-top: 8px;
  font-size: clamp(12px, 3vw, 13.5px);
  color: var(--link);
  text-underline-offset: 3px;
}

/* award laurels under a short: a centred wrapping row, so a film with
   several of them doesn't stretch its column far past the others */
.short-awards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
}
.short-awards img {
  flex: 0 1 auto;
  width: auto;
  max-width: min(100%, 240px);
}

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

.books-cover { width: 100%; max-width: 900px; margin: 0 auto clamp(30px, 6vw, 60px); }

.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;
  text-wrap: balance;
}
.book .en { font-family: var(--serif); font-size: clamp(17px, 3.8vw, 22px); margin: 3px 0 0; }
.book .meta { font-size: clamp(12px, 3vw, 13.5px); color: var(--muted); margin: 8px 0 0; letter-spacing: .05em; }

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

.academy-inner {
  display: grid;
  gap: clamp(22px, 4.5vw, 44px);
  align-items: center;
}

@media (min-width: 860px) {
  .academy-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

.academy .wordmark { width: 100%; max-width: 200px; margin-bottom: clamp(14px, 3vw, 22px); }
.academy p { margin: 0 0 1em; }

.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(11px, 2.8vw, 12.5px);
  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; }
}
