:root {
  --bg: #070707;
  --surface: #0d0d0d;
  --text: #f1eee7;
  --muted: #96938d;
  --line: #2a2926;
  --pad: clamp(18px, 4.5vw, 68px);
  --max: 1440px;
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html[lang="ar"] body {
  font-family: Tahoma, Arial, sans-serif;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 100;
  padding: 10px 12px;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-180%);
}
.skip-link:focus { transform: none; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: max(18px, env(safe-area-inset-top)) var(--pad) 12px;
  mix-blend-mode: difference;
  color: #fff;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.wordmark,
.site-header nav a,
.lang-toggle,
.eyebrow,
.location,
.section-index,
.film-meta p,
.scroll-cue,
footer,
.social-links a,
.action {
  letter-spacing: .14em;
}

html[lang="ar"] .wordmark,
html[lang="ar"] .site-header nav a,
html[lang="ar"] .lang-toggle,
html[lang="ar"] .eyebrow,
html[lang="ar"] .location,
html[lang="ar"] .section-index,
html[lang="ar"] .film-meta p,
html[lang="ar"] .scroll-cue,
html[lang="ar"] footer,
html[lang="ar"] .social-links a,
html[lang="ar"] .action {
  letter-spacing: 0;
}

.wordmark {
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.site-header nav {
  display: flex;
  gap: clamp(14px, 3vw, 34px);
}

.site-header nav a {
  font-size: 10px;
  font-weight: 600;
}

.lang-toggle {
  border: 1px solid rgba(255,255,255,.45);
  background: transparent;
  color: inherit;
  padding: 6px 9px;
  cursor: pointer;
  font-size: 10px;
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 42vw);
  align-items: center;
  gap: clamp(20px, 4vw, 70px);
  padding: 95px var(--pad) 70px;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  border-bottom: 1px solid var(--line);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 3;
  align-self: center;
}

.eyebrow,
.location {
  margin: 0;
  color: var(--muted);
  font-size: clamp(9px, 1vw, 12px);
  font-weight: 600;
}

.hero h1 {
  margin: 18px 0 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(58px, 8.5vw, 142px);
  line-height: .84;
  letter-spacing: -.055em;
  font-weight: 400;
}

html[lang="ar"] .hero h1 {
  font-family: Tahoma, Arial, sans-serif;
  letter-spacing: -.03em;
  line-height: .92;
}

.hero-portrait {
  position: relative;
  z-index: 1;
  width: min(100%, 570px);
  aspect-ratio: 4 / 5;
  justify-self: end;
  margin: 0;
  overflow: hidden;
  background: #111;
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.scroll-cue {
  position: absolute;
  z-index: 4;
  left: var(--pad);
  bottom: max(24px, env(safe-area-inset-bottom));
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 9px;
}

html[dir="rtl"] .scroll-cue {
  left: auto;
  right: var(--pad);
}

.section {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(90px, 13vw, 190px) var(--pad);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(36px, 90px) 1fr;
  gap: 18px;
  align-items: baseline;
  margin-bottom: clamp(50px, 7vw, 100px);
}

html[dir="rtl"] .section-head {
  grid-template-columns: 1fr minmax(36px, 90px);
}
html[dir="rtl"] .section-head .section-index { grid-column: 2; grid-row: 1; }
html[dir="rtl"] .section-head h2 { grid-column: 1; grid-row: 1; }

.section-index {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.section h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 6vw, 84px);
  font-weight: 400;
  letter-spacing: -.035em;
}

html[lang="ar"] .section h2 {
  font-family: Tahoma, Arial, sans-serif;
  letter-spacing: -.02em;
}

.works { padding-bottom: clamp(120px, 18vw, 260px); }

.film {
  width: min(86vw, 820px);
  margin: 0 auto clamp(110px, 16vw, 230px);
}
.film:last-child { margin-bottom: 0; }

.film-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: baseline;
  margin-bottom: 18px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.film-meta h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 4vw, 46px);
  font-weight: 400;
  letter-spacing: -.025em;
}

.film-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}

.film img {
  width: 100%;
  height: auto;
  background: var(--surface);
}

.about {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.bio {
  width: min(100%, 880px);
  margin: 0 0 0 clamp(54px, 8vw, 110px);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 4.6vw, 60px);
  line-height: 1.13;
  letter-spacing: -.025em;
}

html[dir="rtl"] .bio {
  margin: 0 clamp(54px, 8vw, 110px) 0 0;
  font-family: Tahoma, Arial, sans-serif;
  line-height: 1.45;
  letter-spacing: 0;
}

.primary-actions { border-top: 1px solid var(--line); }

.action {
  min-height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  font-size: clamp(12px, 1.5vw, 16px);
  transition: padding .25s ease, opacity .25s ease;
}

.action:hover,
.action:focus-visible { padding-left: 10px; }
html[dir="rtl"] .action:hover,
html[dir="rtl"] .action:focus-visible { padding-left: 0; padding-right: 10px; }

.social-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 44px;
  background: var(--line);
  border: 1px solid var(--line);
}

.social-links a {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-height: 96px;
  justify-content: center;
  padding: 18px;
  background: var(--bg);
  font-size: 10px;
}

.social-links a span:last-child {
  color: var(--muted);
  letter-spacing: .06em;
  overflow-wrap: anywhere;
}

footer {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 36px var(--pad) max(34px, env(safe-area-inset-bottom));
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.7;
}
footer p { margin: 0; }
footer span { color: var(--text); }

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .action { transition: none; }
}

@media (max-width: 760px) {
  .site-header nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    align-items: start;
    padding-top: 88px;
    padding-bottom: 72px;
    gap: 26px;
  }

  .hero-copy {
    width: 100%;
    z-index: 4;
  }

  .hero h1 {
    font-size: clamp(52px, 17vw, 78px);
    max-width: 6ch;
  }

  html[lang="ar"] .hero h1 {
    max-width: none;
    font-size: clamp(52px, 15vw, 74px);
  }

  .hero-portrait {
    width: min(78vw, 430px);
    aspect-ratio: 4 / 5;
    justify-self: end;
  }

  html[dir="rtl"] .hero-portrait {
    justify-self: start;
  }

  .scroll-cue { display: none; }

  .section {
    padding-top: 92px;
    padding-bottom: 92px;
  }

  .section-head {
    grid-template-columns: 36px 1fr;
    margin-bottom: 48px;
  }

  html[dir="rtl"] .section-head {
    grid-template-columns: 1fr 36px;
  }

  .section h2 { font-size: 42px; }

  .film {
    width: 100%;
    margin-bottom: 110px;
  }

  .film-meta { display: block; }
  .film-meta h3 {
    font-size: 31px;
    margin-bottom: 8px;
  }

  .bio {
    width: 100%;
    margin-left: 0;
    font-size: 31px;
    line-height: 1.18;
  }

  html[dir="rtl"] .bio {
    margin-right: 0;
    line-height: 1.55;
  }

  .social-links { grid-template-columns: 1fr; }
  .social-links a { min-height: 76px; }

  footer {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 390px) {
  .wordmark { font-size: 9px; }
  .hero h1 { font-size: 50px; }
}
