/* ==========================================================================
   Karrar Al-Azzawi — Film Director
   Cinematic dark editorial theme · EN / NO / AR (RTL)
   Shared stylesheet — used by index.html and about.html
   ========================================================================== */

:root {
  --bg: #0c0d0f;
  --bg-2: #121417;
  --bg-3: #191c20;
  --ink: #f2efe9;
  --ink-dim: #b7b2a8;
  --ink-faint: #7d7a72;
  --accent: #c9a45c;          /* warm gold */
  --accent-soft: rgba(201, 164, 92, .14);
  --line: rgba(242, 239, 233, .12);
  --serif: "Poppins", "Amiri", Georgia, serif;
  --sans: "Poppins", "Cairo", -apple-system, "Segoe UI", sans-serif;
  --max: 1200px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

html[lang="ar"] {
  --serif: "Amiri", "Poppins", Georgia, serif;
  --sans: "Cairo", "Poppins", -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 6vw; }

::selection { background: var(--accent); color: #14100a; }

/* ---------- typography ---------- */

h1, h2, h3, .serif {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.01em;
}

html[lang="ar"] body { font-size: 18px; letter-spacing: 0; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.4; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .32em;
  color: var(--accent);
}
html[lang="ar"] .kicker { letter-spacing: .12em; font-size: 14px; }

.kicker::before {
  content: "";
  width: 42px;
  height: 1px;
  background: var(--accent);
  opacity: .8;
}

.section-head { margin-bottom: clamp(36px, 6vw, 64px); }

.section-head h1,
.section-head h2 {
  font-size: clamp(34px, 5vw, 58px);
  margin-top: 14px;
}

.section-head p.lede {
  max-width: 640px;
  margin-top: 16px;
  color: var(--ink-dim);
  font-size: 18px;
}

section { padding: clamp(72px, 11vw, 140px) 0; position: relative; }

/* ---------- reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; }
.reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- header ---------- */

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  transition: background .4s, box-shadow .4s, backdrop-filter .4s;
}
.site-header.scrolled {
  background: rgba(12, 13, 15, .96);
  box-shadow: 0 1px 0 var(--line);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 4vw;
}

.brand {
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: .05em;
  white-space: nowrap;
}
.brand strong { font-weight: 600; }

.nav-links {
  display: flex;
  gap: clamp(18px, 2.6vw, 36px);
  list-style: none;
}
.nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  transition: color .3s;
  position: relative;
  padding: 6px 0;
}
html[lang="ar"] .nav-links a { letter-spacing: .02em; font-size: 15px; }
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width .35s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

/* language switcher */
.lang-switch {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.lang-switch button {
  appearance: none;
  background: none;
  border: none;
  color: var(--ink-dim);
  font: 600 12px/1 var(--sans);
  letter-spacing: .08em;
  padding: 9px 14px;
  cursor: pointer;
  transition: background .3s, color .3s;
}
.lang-switch button[aria-pressed="true"] {
  background: var(--accent);
  color: #16110a;
}
.lang-switch button:not([aria-pressed="true"]):hover { color: var(--ink); }

/* mobile nav */
.nav-toggle {
  display: none;
  appearance: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px; height: 40px;
  position: relative;
  z-index: 130;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  inset-inline-start: 8px;
  width: 24px; height: 2px;
  background: var(--ink);
  transition: transform .35s var(--ease), opacity .3s, top .35s var(--ease);
}
.nav-toggle span { top: 19px; }
.nav-toggle span::before { top: -8px; inset-inline-start: 0; }
.nav-toggle span::after  { top: 8px;  inset-inline-start: 0; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
body.nav-open .nav-toggle span::after  { top: 0; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    inset: 0;
    z-index: 120;
    background: rgba(10, 11, 13, .98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s;
  }
  body.nav-open .nav-links { opacity: 1; pointer-events: auto; }
  .nav-links a { font-size: 19px; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: 0;
  isolation: isolate;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 22%;
  filter: saturate(.92) contrast(1.04) brightness(0.9);
  animation: heroZoom 18s var(--ease) both;
}
html[dir="rtl"] .hero-bg img { object-position: 62% 22%; }

@keyframes heroZoom {
  from { transform: scale(1.09); }
  to   { transform: scale(1); }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(12,13,15,.98) 0%, rgba(12,13,15,.7) 30%, rgba(12,13,15,.15) 65%, rgba(12,13,15,.5) 100%),
    linear-gradient(100deg, rgba(12,13,15,.72) 0%, rgba(12,13,15,.1) 55%);
}
html[dir="rtl"] .hero::after {
  background:
    linear-gradient(to top, rgba(12,13,15,.98) 0%, rgba(12,13,15,.7) 30%, rgba(12,13,15,.15) 65%, rgba(12,13,15,.5) 100%),
    linear-gradient(-100deg, rgba(12,13,15,.72) 0%, rgba(12,13,15,.1) 55%);
}

.hero-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 140px 6vw 64px;
}

/* laurel wall: same row as on the film pages, bottom-left under the name */
.hero-laurels {
  /* equal-size boxes, six per row, each row centred so a shorter last row sits in the middle */
  --cols: 6; --gap-x: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px var(--gap-x);
  max-width: calc(var(--cols) * 88px + (var(--cols) - 1) * var(--gap-x));
  margin-top: 30px;
}
.hero-laurels img {
  height: 48px;
  width: calc((100% - (var(--cols) - 1) * var(--gap-x)) / var(--cols));
  object-fit: contain;
  display: block;
  opacity: .85;
  transition: opacity .3s;
}
.hero-laurels img:hover { opacity: 1; }

/* ---------- homepage intro band ---------- */

.intro { background: var(--bg); padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 96px); }
.intro-tag {
  max-width: 760px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(20px, 2.6vw, 30px);
  line-height: 1.45;
  color: var(--ink);
}
.intro .hero-cta { margin-top: 30px; }

/* ---------- homepage teasers ---------- */

/* home: one big card per film, stacked; picture left, text right */
.home-films {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 30px;
}
.home-films .filmo-card {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  column-gap: clamp(24px, 4vw, 56px);
  grid-template-rows: 1fr auto auto auto 1fr; /* text centred beside the picture */
  row-gap: 12px;
  padding: 22px;
}
.home-films .filmo-card .thumb { grid-column: 1; grid-row: 1 / -1; margin-bottom: 0; }
.home-films .filmo-card > :not(.thumb) { grid-column: 2; }
.home-films .filmo-card .year { grid-row: 2; }
.home-films .filmo-card h4 { grid-row: 3; font-size: clamp(26px, 3vw, 38px); line-height: 1.15; }
.home-films .filmo-card .type { grid-row: 4; }
@media (max-width: 900px) {
  .home-films .filmo-card { grid-template-columns: 1fr; grid-template-rows: none; }
  .home-films .filmo-card .thumb, .home-films .filmo-card > :not(.thumb) { grid-column: 1; grid-row: auto; }
  .home-films .filmo-card .thumb { margin-bottom: 8px; }
}
.filmo-card .thumb {
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin-bottom: 10px;
}
.filmo-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.filmo-card:hover .thumb img { transform: scale(1.05); }

.home-quote {
  margin: clamp(44px, 6vw, 70px) auto 0;
  max-width: 720px;
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.45;
  color: var(--ink);
}
.home-quote cite {
  display: block;
  margin-top: 16px;
  font: 700 12px/1 var(--sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  font-style: normal;
}
html[lang="ar"] .home-quote cite { letter-spacing: .05em; font-size: 13px; }

.home-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 40px;
  margin-top: 36px;
}

.hero-role {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
html[lang="ar"] .hero-role { letter-spacing: .1em; font-size: 15px; }
.hero-role::before { content: ""; width: 46px; height: 1px; background: var(--accent); }

.hero h1 {
  font-size: clamp(44px, 7.5vw, 96px);
  line-height: 1;
  font-weight: 300;
  letter-spacing: -.01em;
  max-width: 12ch;
}
html[lang="ar"] .hero h1 { line-height: 1.25; }

.hero-tag {
  margin-top: 26px;
  max-width: 560px;
  font-size: clamp(17px, 2vw, 20px);
  color: var(--ink-dim);
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 38px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font: 600 13.5px/1 var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: transform .3s var(--ease), background .3s, color .3s, border-color .3s;
  cursor: pointer;
}
html[lang="ar"] .btn { letter-spacing: .02em; font-size: 15px; }
.btn-solid { background: var(--accent); color: #16110a; }
.btn-solid:hover { transform: translateY(-2px); background: #dcb56a; }
.btn-ghost { border: 1px solid rgba(242,239,233,.35); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* broadcaster strip */
.broadcasters {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  padding: 44px 0;
}
.hero-strip {
  margin-top: 0;
  padding-top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-strip .label {
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 22px;
}
html[lang="ar"] .hero-strip .label { letter-spacing: .1em; font-size: 13px; }
.hero-strip ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  row-gap: 24px;
}
.hero-strip li {
  font-family: var(--serif);
  font-size: 20px;
  color: rgba(242,239,233,.68);
  white-space: nowrap;
  display: flex;
  align-items: center;
  height: 50px;
}
.hero-strip li img {
  height: 30px;
  width: auto;
  display: block;
  opacity: .72;
  transition: opacity .3s;
}
.hero-strip li:hover img { opacity: 1; }

/* per-mark height tuning: raw bounding-box height isn't equal visual
   weight — thin glyphs and icon marks need more height than bold
   wordmarks to read at the same size */
.hero-strip li img.logo-aljazeera { height: 50px; }
.hero-strip li img.logo-dr { height: 42px; }
.hero-strip li img.logo-bbc { height: 30px; }
.hero-strip li img.logo-nrk { height: 28px; }
.hero-strip li img.logo-francetv { height: 26px; }
.hero-strip li:not(:last-child)::after {
  content: "·";
  display: inline-block;
  margin: 0 20px;
  color: var(--accent);
  opacity: .65;
}

.scroll-hint {
  position: absolute;
  bottom: 30px;
  inset-inline-end: 4vw;
  width: 1px;
  height: 72px;
  background: rgba(242,239,233,.25);
  overflow: hidden;
}
.scroll-hint::after {
  content: "";
  position: absolute;
  top: -40%;
  left: 0;
  width: 100%;
  height: 40%;
  background: var(--accent);
  animation: scrollLine 2.2s var(--ease) infinite;
}
@keyframes scrollLine { to { top: 110%; } }

/* ---------- about ---------- */

.about { background: var(--bg-2); }

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}

.about-text p { color: var(--ink-dim); margin-bottom: 20px; }
.about-text p strong, .about-text p b { color: var(--ink); font-weight: 600; }

.about-quote {
  margin: 34px 0;
  padding-inline-start: 26px;
  border-inline-start: 2px solid var(--accent);
  font-family: var(--serif);
  font-size: clamp(21px, 2.4vw, 26px);
  line-height: 1.45;
  color: var(--ink);
}

.about-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 4px 0 0;
  margin-bottom: 4px;
  font: 600 12.5px/1 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  cursor: pointer;
  transition: color .3s;
}
.about-toggle:hover { color: #dcb56a; }
.about-toggle .label-less { display: none; }
.about-toggle.is-open .label-more { display: none; }
.about-toggle.is-open .label-less { display: inline; }
.about-toggle .chev { transition: transform .35s var(--ease); }
.about-toggle.is-open .chev { transform: rotate(180deg); }

.about-more {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .55s var(--ease);
}
.about-more.open { grid-template-rows: 1fr; }
.about-more-inner { overflow: hidden; min-height: 0; }
.about-more .about-quote { margin-top: 30px; }

.about-readfull {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font: 600 13px/1 var(--sans);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  transition: gap .3s, color .3s;
}
.about-readfull:hover { gap: 14px; color: #dcb56a; }
.about-readfull svg { transition: transform .3s var(--ease); }
html[dir="rtl"] .about-readfull svg { transform: scaleX(-1); }

.about-figure { position: relative; }
.about-figure .frame {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}
.about-figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.about-figure:hover img { transform: scale(1.035); }
.about-figure::before {
  content: "";
  position: absolute;
  inset: 22px -22px -22px 22px;
  border: 1px solid var(--accent-soft);
  border-radius: 4px;
  z-index: -1;
}
html[dir="rtl"] .about-figure::before { inset: 22px 22px -22px -22px; }
.about-figure figcaption {
  margin-top: 14px;
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--ink-faint);
}

/* one-line facts under the Recognition heading (home) */
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 34px;
  margin-top: 24px;
  font-size: 12.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.facts > span { display: inline-flex; align-items: baseline; gap: 10px; }
.facts b {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: 0;
  color: var(--accent);
}
html[lang="ar"] .facts { letter-spacing: .03em; font-size: 14px; }

/* home award highlights: gold winner tag, no hover tint */
.home-awards .medal { color: var(--accent); font-weight: 700; }
.home-awards .award-item:hover { background: none; }

/* companies */
.companies {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: clamp(40px, 6vw, 64px);
}
.company {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 30px 30px 26px;
  background: linear-gradient(160deg, rgba(201,164,92,.05), transparent 45%);
  transition: border-color .35s, transform .35s var(--ease);
}
.company:hover { border-color: rgba(201,164,92,.4); transform: translateY(-3px); }
.company h3 { font-size: 24px; margin-bottom: 4px; }
.company .role { font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
html[lang="ar"] .company .role { letter-spacing: .04em; font-size: 14px; }
.company p { margin-top: 12px; color: var(--ink-dim); font-size: 15.5px; }
.company a.ext { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 13.5px; color: var(--accent); letter-spacing: .06em; }
.company a.ext:hover { text-decoration: underline; }

/* ---------- films ---------- */

.films { background: var(--bg); }

.film-featured {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 70px);
  align-items: center;
  padding: clamp(30px, 4vw, 54px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-2);
  margin-bottom: 26px;
  overflow: hidden;
  position: relative;
}
.film-featured .media {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
.film-featured .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.film-featured:hover .media img { transform: scale(1.04); }

.film-status {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(201,164,92,.45);
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 18px;
}
html[lang="ar"] .film-status { letter-spacing: .06em; font-size: 13px; }

.film-featured h3 {
  font-size: clamp(30px, 3.6vw, 44px);
  margin-bottom: 6px;
}
.film-meta {
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 18px;
}
html[lang="ar"] .film-meta { letter-spacing: .03em; font-size: 14px; }
.film-featured p.syn { color: var(--ink-dim); font-size: 16px; }

.film-credits {
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--ink-faint);
  line-height: 1.9;
}
.film-credits b { color: var(--ink-dim); font-weight: 600; }

.laurels { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.laurel {
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--ink-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 13px;
  background: rgba(242,239,233,.03);
}
.laurel.gold { color: var(--accent); border-color: rgba(201,164,92,.45); background: var(--accent-soft); }

.film-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.film-actions .btn { padding: 12px 24px; font-size: 12.5px; }

/* filmography grid */
.filmo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 26px;
}
.filmo-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px 26px;
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .35s var(--ease), border-color .35s, background .35s;
}
.filmo-card:hover { transform: translateY(-4px); border-color: rgba(201,164,92,.4); background: var(--bg-3); }
.filmo-card .year {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--accent);
  letter-spacing: .08em;
}
.filmo-card h4 { font-family: var(--serif); font-size: 23px; font-weight: 500; }
.filmo-card .type { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); }
html[lang="ar"] .filmo-card .type { letter-spacing: .04em; font-size: 13px; }
.filmo-card p { font-size: 14.5px; color: var(--ink-dim); }

/* ---------- awards ---------- */

.awards { background: var(--bg-2); }

.award-list { list-style: none; border-top: 1px solid var(--line); }
.award-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: baseline;
  padding: 26px 8px;
  border-bottom: 1px solid var(--line);
  transition: background .3s, padding .3s var(--ease);
}
.award-item:hover { background: rgba(201,164,92,.045); }
.award-item .year { font-family: var(--serif); font-size: 21px; color: var(--accent); }
.award-item .what { font-size: 17px; color: var(--ink); }
.award-item .what small { display: block; font-size: 14px; color: var(--ink-faint); margin-top: 3px; }
.award-item .medal { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint); white-space: nowrap; }
html[lang="ar"] .award-item .medal { letter-spacing: .04em; }

/* festival marquee */
.fest-marquee {
  margin-top: clamp(48px, 7vw, 80px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.fest-track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: marquee 46s linear infinite;
}
html[dir="rtl"] .fest-track { animation-name: marqueeRtl; }
.fest-track span {
  font-family: var(--serif);
  font-size: 21px;
  color: rgba(242,239,233,.5);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 56px;
}
.fest-track span::after { content: "✦"; font-size: 11px; color: var(--accent); }
@keyframes marquee   { to { transform: translateX(-50%); } }
@keyframes marqueeRtl{ to { transform: translateX(50%); } }
.fest-marquee:hover .fest-track { animation-play-state: paused; }

/* ---------- press ---------- */

.press { background: var(--bg); }

.press-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.press-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 30px 28px;
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .35s var(--ease), border-color .35s;
}
.press-card:hover { transform: translateY(-4px); border-color: rgba(201,164,92,.4); }
.press-card .outlet {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
}
html[lang="ar"] .press-card .outlet { letter-spacing: .05em; font-size: 13px; }
.press-card blockquote {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.45;
  color: var(--ink);
  flex: 1;
}
.press-card .read {
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color .3s;
}
.press-card:hover .read { color: var(--accent); }

.press-more { margin-top: 40px; text-align: center; }
.press-links {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.press-links a {
  font-size: 13px;
  color: var(--ink-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  transition: color .3s, border-color .3s;
}
.press-links a:hover { color: var(--accent); border-color: rgba(201,164,92,.5); }

/* ---------- gallery ---------- */

.gallery { background: var(--bg-2); padding-bottom: 0; display: none; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.gallery-grid figure {
  overflow: hidden;
  border-radius: 6px;
  position: relative;
  aspect-ratio: 3 / 4;
}
.gallery-grid figure.wide { grid-column: span 2; aspect-ratio: auto; }
.gallery-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease), filter .6s;
  filter: saturate(.92);
}
.gallery-grid figure:hover img { transform: scale(1.05); filter: saturate(1.05); }
.gallery .wrap { padding-bottom: clamp(72px, 11vw, 140px); }

/* ---------- contact ---------- */

.contact {
  background:
    radial-gradient(1200px 500px at 50% -10%, rgba(201,164,92,.09), transparent 60%),
    var(--bg);
  text-align: center;
}
.contact h2 { font-size: clamp(38px, 6vw, 72px); margin-top: 14px; }
.contact .lede { margin: 20px auto 0; max-width: 560px; color: var(--ink-dim); }

.contact-mail {
  display: inline-block;
  margin-top: 40px;
  font-family: var(--serif);
  font-size: clamp(22px, 3.4vw, 36px);
  color: var(--ink);
  border-bottom: 1px solid rgba(201,164,92,.5);
  padding-bottom: 6px;
  transition: color .3s, border-color .3s;
}
.contact-mail:hover { color: var(--accent); border-color: var(--accent); }

.contact-rows {
  margin: 56px auto 0;
  max-width: 720px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.contact-cell { background: var(--bg-2); padding: 26px 20px; }
.contact-cell .lbl { font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 8px; }
html[lang="ar"] .contact-cell .lbl { letter-spacing: .05em; font-size: 13px; }
.contact-cell a, .contact-cell span { font-size: 16px; color: var(--ink-dim); direction: ltr; unicode-bidi: embed; }
.contact-cell a:hover { color: var(--accent); }

/* contact page: portrait as a dark, faded header image; the text starts below his face and camera */
.contact-page {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  --photo-space: 470px;
}
body[data-page] main > section.contact-page:first-child { padding-top: var(--photo-space); }
/* Phone and Based in side by side, Follow as one wide box under them */
.contact-page .contact-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.contact-page .contact-cell:last-child { grid-column: 1 / -1; }
@media (max-width: 560px) { .contact-page .contact-rows { grid-template-columns: 1fr; } }
.contact-photo {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 560px);
  height: calc(var(--photo-space) + 220px);
  z-index: -1;
  /* soft left and right edges */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 22%, #000 78%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 22%, #000 78%, transparent);
}
.contact-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%; /* face and camera above the text */
  opacity: .34;
  filter: saturate(.8);
}
@media (max-width: 560px) {
  .contact-page { --photo-space: 400px; }
  .contact-photo { width: 100%; }
}
.contact-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(12,13,15,.55) 0%, rgba(12,13,15,.1) 25%, rgba(12,13,15,.2) 60%, var(--bg) 100%);
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
  background: var(--bg);
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.site-footer p { font-size: 13.5px; color: var(--ink-faint); }
.footer-links { display: flex; gap: 22px; list-style: none; }
.footer-links a { font-size: 13.5px; color: var(--ink-dim); transition: color .3s; }
.footer-links a:hover { color: var(--accent); }

/* ---------- about page (about.html) ---------- */

/* any page rendered without the full-bleed hero (About, Films, Awards,
   Press, Contact) needs extra top clearance under the fixed nav */
body[data-page] main > section:first-child { padding-top: clamp(150px, 20vw, 200px); }

/* ---------- film detail pages (film-*.html) ---------- */

body.film-page main > section:first-child { padding-top: 0; }

.film-hero {
  position: relative;
  min-height: 78svh;
  display: grid;
  align-items: end;
  padding: 0;
  isolation: isolate;
  overflow: hidden;
}
.film-hero-bg { position: absolute; inset: 0; z-index: -2; }
.film-hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.9) contrast(1.04) brightness(.85);
  animation: heroZoom 18s var(--ease) both;
}
.film-hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(12,13,15,.98) 0%, rgba(12,13,15,.7) 30%, rgba(12,13,15,.15) 65%, rgba(12,13,15,.5) 100%);
}
.film-hero-inner { padding: 150px 6vw 56px; width: 100%; }
.film-hero h1 {
  font-size: clamp(42px, 7vw, 92px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.02em;
  max-width: 14ch;
}
.film-arabic {
  margin-top: 10px;
  font-family: "Amiri", serif;
  font-size: clamp(24px, 3.2vw, 38px);
  color: var(--accent);
  line-height: 1.4;
  text-align: left;            /* RTL text, but anchored under the Latin title */
}
html[dir="rtl"] .film-arabic { display: none; }
.film-hero .film-meta { margin: 16px 0 0; }
.film-back {
  display: flex;               /* own line, above the status pill */
  width: max-content;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  font: 600 12.5px/1 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  transition: color .3s, gap .3s;
}
.film-back:hover { color: var(--accent); gap: 14px; }
.film-back .arr svg { transform: scaleX(-1); display: block; }
html[dir="rtl"] .film-back .arr svg { transform: none; }
html[lang="ar"] .film-back { letter-spacing: .02em; font-size: 14px; }

.film-laurels {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 16px 24px;
  margin-top: 30px;
}
.film-laurels img { height: 44px; width: auto; opacity: .85; }

.film-body { background: var(--bg); padding-top: clamp(56px, 8vw, 96px); }
.film-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, .8fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  margin-bottom: clamp(36px, 5vw, 56px);
  border: 1px solid var(--line);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.film-syn { margin-top: 18px; }
.film-syn p { color: var(--ink-dim); font-size: 17.5px; margin-bottom: 18px; max-width: 64ch; }
.film-syn p:first-child { color: var(--ink); font-size: clamp(19px, 2.1vw, 22px); line-height: 1.55; font-family: var(--serif); font-weight: 500; }
.film-featuring { margin-top: 6px; font-size: 14.5px; color: var(--ink-faint); }
.film-featuring span { color: var(--accent); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: 11.5px; margin-inline-end: 8px; }
html[lang="ar"] .film-featuring span { letter-spacing: 0; font-size: 13px; }

.film-extra { margin-top: clamp(40px, 5vw, 60px); padding-top: 34px; border-top: 1px solid var(--line); }
.film-extra h2 { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 16px; }
.film-extra p { color: var(--ink-dim); margin-bottom: 16px; max-width: 64ch; }
.film-extra .credits { margin-top: 24px; }

.film-side {
  position: sticky;
  top: 110px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px 26px;
  background: var(--bg-2);
}
.film-poster { border-radius: 4px; margin-bottom: 24px; }
.credits { margin-top: 16px; }
.credits div { padding: 10px 0; border-top: 1px solid var(--line); }
.credits div:first-child { border-top: 0; padding-top: 0; }
.credits dt { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 3px; }
html[lang="ar"] .credits dt { letter-spacing: .02em; font-size: 12.5px; }
.credits dd { font-size: 15px; color: var(--ink); }
.film-supported, .film-broadcast { margin-top: 18px; font-size: 14px; color: var(--ink-dim); line-height: 1.7; }
.film-supported b, .film-broadcast b { display: block; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; margin-bottom: 3px; }
html[lang="ar"] .film-supported b, html[lang="ar"] .film-broadcast b { letter-spacing: .02em; font-size: 12.5px; }
.film-side .film-actions { margin-top: 24px; flex-direction: column; align-items: stretch; }
.film-side .film-actions .btn { justify-content: center; }

.film-stills { background: var(--bg-2); padding-top: clamp(56px, 8vw, 96px); }
.stills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.stills-grid a {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 6px;
  background: var(--bg-3);
}
.stills-grid a:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.stills-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), filter .5s; filter: saturate(.92); }
.stills-grid a:hover img { transform: scale(1.04); filter: saturate(1.05); }

.film-fests { background: var(--bg); }
.film-fests .section-head { margin-bottom: 22px; }
.film-fests .section-head.mt { margin-top: clamp(44px, 6vw, 72px); }
.film-fests .award-item { grid-template-columns: 110px minmax(0, 1fr) auto; align-items: center; }
.film-fests .award-item .medal { font-weight: 700; color: var(--ink-faint); }
.film-fests .award-item .medal.win { color: var(--accent); }
.film-fests .award-item .where { font-size: 14px; color: var(--ink-faint); text-align: end; }
.fest-list { list-style: none; border-top: 1px solid var(--line); columns: 2; column-gap: 40px; }
.fest-list li {
  display: flex; gap: 18px; align-items: baseline;
  padding: 11px 6px;
  border-bottom: 1px solid var(--line);
  break-inside: avoid;
  font-size: 15px;
}
.fest-year { font-family: var(--serif); color: var(--accent); min-width: 44px; }
.fest-country { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); min-width: 96px; }
html[lang="ar"] .fest-country { letter-spacing: 0; font-size: 13px; }
.fest-name { color: var(--ink-dim); }
.fest-tag { display: inline-block; margin-inline-start: 10px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); border: 1px solid rgba(201,164,92,.45); border-radius: 999px; padding: 2px 9px; vertical-align: middle; }
html[lang="ar"] .fest-tag { letter-spacing: 0; font-size: 12px; }

.film-nav { border-top: 1px solid var(--line); background: var(--bg-2); }
.film-nav-row { display: grid; grid-template-columns: 1fr 1fr; }
.film-nav-link {
  padding: clamp(32px, 4vw, 52px) 0;
  display: flex; flex-direction: column; gap: 6px;
  transition: color .3s;
}
.film-nav-link.next { text-align: end; border-inline-start: 1px solid var(--line); padding-inline-start: 24px; }
.film-nav-link.prev { padding-inline-end: 24px; }
.film-nav-link .lbl { font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-faint); }
html[lang="ar"] .film-nav-link .lbl { letter-spacing: .02em; font-size: 13px; }
.film-nav-link .ttl { font-family: var(--serif); font-size: clamp(20px, 2.4vw, 28px); color: var(--ink); transition: color .3s; }
.film-nav-link:hover .ttl { color: var(--accent); }

/* filmography cards with thumbnails (films.html) */
.filmo-card.has-thumb { padding: 0 0 24px; overflow: hidden; }
.filmo-card.has-thumb .thumb { border-radius: 0; margin-bottom: 18px; }
.filmo-card.has-thumb > :not(.thumb) { margin-inline: 26px; }
.filmo-card .ar {
  font-family: "Amiri", serif;
  font-size: 17px;
  color: var(--accent);
  margin-top: -6px;
}
html[dir="rtl"] .filmo-card .ar { display: none; }
.filmo-card .more { margin-top: auto; padding-top: 8px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); display: inline-flex; align-items: center; gap: 8px; }
html[lang="ar"] .filmo-card .more { letter-spacing: .02em; font-size: 13.5px; }
html[dir="rtl"] .filmo-card .more svg { transform: scaleX(-1); }
a.filmo-card { color: inherit; }
.film-featured .media a { display: block; height: 100%; }
.film-featured h3 a:hover { color: var(--accent); }
.film-featured .ar {
  font-family: "Amiri", serif;
  font-size: 22px;
  color: var(--accent);
  margin: -2px 0 10px;
}
html[dir="rtl"] .film-featured .ar { display: none; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(8, 9, 11, .96);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: 4px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lightbox button {
  position: absolute; appearance: none; background: none; border: 0; cursor: pointer;
  color: var(--ink); opacity: .7; transition: opacity .3s; font: 300 34px/1 var(--sans);
  width: 56px; height: 56px; display: grid; place-items: center;
}
.lightbox button:hover { opacity: 1; }
.lightbox .lb-close { top: 18px; inset-inline-end: 18px; }
.lightbox .lb-prev { inset-inline-start: 12px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { inset-inline-end: 12px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; font-size: 12px; letter-spacing: .2em; color: var(--ink-faint); }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .film-layout { grid-template-columns: 1fr; }
  .film-side { position: static; }
  .stills-grid { grid-template-columns: repeat(2, 1fr); }
  .stills-grid a:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 9; }
  .fest-list { columns: 1; }
  .film-fests .award-item { grid-template-columns: 1fr; gap: 4px; padding: 20px 4px; }
  .film-fests .award-item .medal, .film-fests .award-item .what, .film-fests .award-item .where { grid-column: 1; text-align: start; }
  .film-fests .award-item .medal { margin-bottom: 4px; }
  .film-hero-inner { padding-top: 130px; }
  .film-laurels img { height: 36px; }
  .about-grid, .film-featured, .companies, .home-films { grid-template-columns: 1fr; }
  .about-figure { order: -1; max-width: 480px; }
  .film-featured .media { order: -1; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid figure.wide { grid-column: span 2; }
  .award-item { grid-template-columns: 64px 1fr; }
  .award-item .medal { grid-column: 2; }
}

@media (max-width: 560px) {
  .hero-inner { padding-bottom: 80px; }
  .hero-laurels { --cols: 4; --gap-x: 18px; row-gap: 16px; margin-top: 26px; }
  .hero-laurels img { height: 40px; }
  .hero-strip ul { row-gap: 22px; }
  .hero-strip li { font-size: 17px; height: 40px; }
  .hero-strip li img.logo-aljazeera { height: 40px; }
  .hero-strip li img.logo-dr { height: 34px; }
  .hero-strip li:not(:last-child)::after { margin: 0 16px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid figure.wide { grid-column: span 1; }
  .lang-switch button { padding: 8px 11px; }
  .brand { font-size: 18px; }
  body[data-page] main > section:first-child { padding-top: clamp(120px, 26vw, 160px); }
  body.film-page main > section:first-child { padding-top: 0; }
  .stills-grid { grid-template-columns: 1fr; }
  .stills-grid a:first-child { grid-column: auto; }
  .film-nav-row { grid-template-columns: 1fr; }
  .film-nav-link.next { border-inline-start: 0; border-top: 1px solid var(--line); padding-inline-start: 0; text-align: start; }
  .film-nav-link.prev { padding-inline-end: 0; }
  .fest-list li { flex-wrap: wrap; gap: 6px 14px; }
}
