/* =========================================================================
   Maya Talem — Filmography
   Dark cinematic, luxury editorial. Fullscreen scroll-snap chapters.
   Self-contained (does not depend on styles.css) so the snap container,
   dark theme and fixed chrome never fight the main site's light layout.
   ========================================================================= */

:root {
  --black: #050403;
  --ink: #0c0a08;
  --porcelain: #f4ede1;
  --warm-white: #efe6d7;
  --muted: #b6a896;
  --gold: #c9a063;
  --gold-bright: #e4c489;
  --bronze: #b07a4f;
  --crimson: #c0392f;
  --line: rgba(244, 237, 225, 0.22);
  --line-soft: rgba(244, 237, 225, 0.12);
  --font-display: "Bodoni Moda", Georgia, serif;
  --font-body: "Jost", "Trebuchet MS", sans-serif;
  --ease: cubic-bezier(0.22, 0.72, 0, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body.film-page {
  margin: 0;
  background: var(--black);
  color: var(--porcelain);
  font-family: var(--font-body);
  overflow: hidden; /* the scroller owns vertical scroll */
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}


/* =========================================================================
   Header
   ========================================================================= */
.site-header {
  position: fixed;
  top: 26px;
  left: 34px;
  right: 34px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  color: var(--porcelain);
}

/* centered-logo header: Filmography (left) — MT (center) — Gallery (right) */
.site-header.is-centered .brand-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.site-header.is-centered .nav-right {
  margin-left: auto;
}

.brand-mark {
  width: 110px;
  height: 74px;
  display: grid;
  place-items: center;
  position: relative;
  flex-shrink: 0;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: brightness(0.7) contrast(5);
}

.desktop-nav {
  justify-self: end;
  display: flex;
  gap: 30px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.desktop-nav a {
  position: relative;
  padding-bottom: 6px;
  color: var(--warm-white);
  opacity: 0.78;
  transition: opacity 400ms var(--ease);
}
.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 450ms var(--ease);
}
.desktop-nav a:hover {
  opacity: 1;
}
.desktop-nav a.is-active {
  opacity: 1;
}
.desktop-nav a.is-active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  justify-self: end;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  gap: 7px;
  align-items: flex-end;
  justify-content: center;
}
.menu-toggle span {
  display: block;
  height: 1px;
  width: 26px;
  background: var(--porcelain);
  transition: transform 400ms var(--ease), opacity 400ms var(--ease);
}
.menu-toggle span:last-child {
  width: 18px;
}

/* mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 25;
  background: rgba(5, 4, 3, 0.97);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 500ms var(--ease), visibility 500ms var(--ease);
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}
.mobile-menu nav {
  display: grid;
  gap: 22px;
  text-align: center;
}
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 30px;
  letter-spacing: 0.02em;
  color: var(--warm-white);
}

/* =========================================================================
   Scroll-snap scroller + chapters
   ========================================================================= */
.scroller {
  height: 100vh;
  height: 100dvh;
  overflow-y: scroll;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.scroller::-webkit-scrollbar {
  display: none;
}

.chapter {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* fullscreen background scene + overlay */
.scene {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.scene-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  transition: transform 6000ms var(--ease);
}
.chapter.is-in .scene-media {
  transform: scale(1);
}
.scene-media--hero {
  background-position: right center;
}

/* Keep Maya's face in view when the portrait artwork fills a wide screen. */
#esh-esh .scene-media {
  background-position: 90% top;
  transform-origin: center top;
}
#the-goat .scene-media {
  background-position: center 20%;
  transform-origin: center top;
}
#karmouz-war .scene-media {
  background-position: 40% top;
  transform-origin: 40% top;
}
#il-gatto-e-la-luna .scene-media {
  background-position: 45% top;
  transform-origin: 45% top;
}
#non-uccidere .scene-media {
  background-position: 40% top;
  transform-origin: 40% top;
}
#un-passo-dal-cielo .scene-media {
  background-position: center top;
  transform-origin: center top;
}
#the-police .scene-media {
  background-position: center top;
  transform-origin: center top;
}
#the-returnees .scene-media {
  background-position: 68% top;
  transform-origin: center top;
}
@media (min-width: 641px) {
  #karmouz-war .scene-media {
    width: 125%;
    background-position: left top;
  }
  #non-uccidere .scene-media {
    width: 118%;
    background-position: left top;
  }
  #the-returnees .scene-media {
    left: -10%;
    width: 110%;
    background-position: right top;
  }
}
@media (max-width: 640px) {
  #esh-esh .scene-media,
  #the-returnees .scene-media {
    background-size: auto 65%;
    background-position: 60% top;
    background-repeat: no-repeat;
    background-color: var(--black);
  }
}

/* dark + bronze overlay, readable text, heavier toward the left text column */
.scene-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(5, 4, 3, 0.96) 0%,
      rgba(5, 4, 3, 0.86) 30%,
      rgba(8, 6, 4, 0.5) 62%,
      rgba(20, 12, 6, 0.42) 100%
    ),
    radial-gradient(
      120% 120% at 75% 50%,
      rgba(120, 78, 38, 0.18),
      transparent 60%
    ),
    linear-gradient(0deg, rgba(5, 4, 3, 0.6), rgba(5, 4, 3, 0.18) 40%);
}
.scene-veil--hero {
  background:
    linear-gradient(
      90deg,
      rgba(5, 4, 3, 0.96) 0%,
      rgba(5, 4, 3, 0.74) 36%,
      rgba(5, 4, 3, 0.34) 66%,
      rgba(5, 4, 3, 0.55) 100%
    ),
    linear-gradient(0deg, rgba(5, 4, 3, 0.7), transparent 45%);
}

/* layout grid inside each chapter */
.chapter-inner {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 120px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 60px;
}
.hero-inner {
  grid-template-columns: 1fr;
}

/* reveal animation */
.chapter-copy {
  max-width: 560px;
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1100ms var(--ease), transform 1100ms var(--ease);
}
.chapter.is-in .chapter-copy {
  opacity: 1;
  transform: none;
}

/* =========================================================================
   Hero
   ========================================================================= */
.eyebrow {
  display: block;
  font-size: 13px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3.4rem, 9vw, 8.2rem);
  line-height: 0.96;
  letter-spacing: 0.01em;
  margin: 0 0 8px;
  color: var(--porcelain);
}
.hero-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 1px;
  background: var(--gold);
  margin-top: 30px;
}
.hero-sub {
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  line-height: 1.7;
  color: var(--muted);
  margin: 26px 0 0;
  max-width: 30ch;
}
.scroll-cue {
  display: inline-flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 64px;
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
}
.scroll-cue svg {
  width: 12px;
  height: 34px;
  stroke: var(--gold);
  stroke-width: 1;
  fill: none;
}
.scroll-cue svg line,
.scroll-cue svg polyline {
  animation: cueBob 2.4s var(--ease) infinite;
}
@keyframes cueBob {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.6;
  }
  50% {
    transform: translateY(6px);
    opacity: 1;
  }
}

/* =========================================================================
   Film chapter copy
   ========================================================================= */
.chapter-index {
  display: block;
  font-size: 14px;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 18px;
}
.chapter-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 5.4vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: 0.01em;
  margin: 0 0 22px;
  color: var(--porcelain);
}
.chapter-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--warm-white);
  margin: 0 0 26px;
}
.chapter-meta i {
  color: var(--gold);
  font-style: normal;
  opacity: 0.7;
}
.chapter-role {
  margin: -12px 0 24px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.4;
  color: var(--gold);
}
[lang="ar"] .chapter-role { font-family: "Tajawal", sans-serif; font-style: normal; }
.chapter-facts {
  margin: 0 0 22px;
  display: grid;
  gap: 6px;
}
.chapter-facts div {
  display: flex;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.chapter-facts dt {
  color: var(--muted);
}
.chapter-facts dt::after {
  content: ":";
}
.chapter-facts dd {
  margin: 0;
  color: var(--warm-white);
}
.chapter-desc {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 38px;
  max-width: 38ch;
}

/* CTA button */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 15px 30px;
  border: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--warm-white);
  transition: border-color 450ms var(--ease), box-shadow 450ms var(--ease),
    color 450ms var(--ease), background-color 450ms var(--ease);
}
.cta-arrow {
  width: 34px;
  height: 12px;
  stroke: currentColor;
  stroke-width: 1;
  fill: none;
  transition: transform 450ms var(--ease);
}
.cta-arrow polyline {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
}
.cta:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
  background-color: rgba(201, 160, 99, 0.06);
  box-shadow: 0 0 0 1px rgba(201, 160, 99, 0.25),
    0 12px 40px -16px rgba(201, 160, 99, 0.6);
}
.cta:hover .cta-arrow {
  transform: translateX(8px);
}

/* =========================================================================
   Vertical poster
   ========================================================================= */
.poster {
  display: block;
  perspective: 1000px;
}
.poster-frame {
  position: relative;
  display: block;
  width: clamp(220px, 22vw, 300px);
  aspect-ratio: 3 / 4.2;
  border: 1px solid rgba(201, 160, 99, 0.55);
  padding: 6px;
  overflow: hidden;
  background: rgba(5, 4, 3, 0.4);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.9);
  transition: transform 600ms var(--ease), box-shadow 600ms var(--ease),
    border-color 600ms var(--ease);
}
.poster-img {
  position: absolute;
  inset: 6px;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  object-fit: cover;
  filter: brightness(0.82) saturate(1.05);
  transition: transform 700ms var(--ease), filter 700ms var(--ease);
}
.poster-shade {
  position: absolute;
  inset: 6px;
  background: linear-gradient(
    180deg,
    rgba(5, 4, 3, 0.1) 30%,
    rgba(5, 4, 3, 0.92) 100%
  );
}
.poster-title {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 26px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.3rem, 1.9vw, 1.8rem);
  line-height: 1.05;
  text-align: center;
  letter-spacing: 0.02em;
}
.poster--gold .poster-title {
  color: var(--gold-bright);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.8);
}
.poster--crimson .poster-title {
  color: #d8423a;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.85);
}
.poster:hover .poster-frame {
  transform: scale(1.03) translateY(-4px);
  border-color: var(--gold-bright);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(201, 160, 99, 0.4);
}
.poster:hover .poster-img {
  filter: brightness(1) saturate(1.1);
  transform: scale(1.04);
}

/* =========================================================================
   Other works
   ========================================================================= */
.works-list {
  list-style: none;
  margin: 0 0 38px;
  padding: 0;
  display: grid;
  gap: 12px;
}
.works-list li {
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--warm-white);
  padding-left: 26px;
  position: relative;
  transition: color 400ms var(--ease), padding-left 400ms var(--ease);
}
.works-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 14px;
  height: 1px;
  background: var(--gold);
  opacity: 0.7;
  transition: width 400ms var(--ease);
}
.works-list li:hover {
  color: var(--gold-bright);
  padding-left: 34px;
}
.works-list li:hover::before {
  width: 22px;
}

/* =========================================================================
   Vertical side navigation
   ========================================================================= */
.sidenav {
  position: fixed;
  top: 50%;
  right: 38px;
  transform: translateY(-50%);
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1.4vh, 18px);
  max-height: calc(100dvh - 180px);
  overflow-y: auto;
  padding: 8px 0;
}
.sidenav::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line-soft);
}
.sidenav-dot {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--muted);
  opacity: 0.55;
  transition: opacity 400ms var(--ease), color 400ms var(--ease);
}
.sidenav-num {
  order: 2;
  min-width: 22px;
  text-align: right;
}
.sidenav-mark {
  order: 1;
  position: relative;
  width: 9px;
  height: 9px;
  margin-left: 7px;
  border-radius: 50%;
  border: 1px solid var(--muted);
  background: transparent;
  transition: all 450ms var(--ease);
}
.sidenav-dot:hover {
  opacity: 1;
  color: var(--warm-white);
}
.sidenav-dot.is-active {
  opacity: 1;
  color: var(--gold-bright);
}
.sidenav-dot.is-active .sidenav-mark {
  border-color: var(--gold-bright);
  background: var(--gold-bright);
  box-shadow: 0 0 0 4px rgba(201, 160, 99, 0.18);
}

/* mobile progress bar (replaces sidenav) */
.film-progress {
  display: none;
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 900px) {
  .site-header {
    top: 20px;
    left: 22px;
    right: 22px;
  }
  .desktop-nav {
    display: none;
  }
  .menu-toggle {
    display: flex;
    margin-left: auto;
  }
  .sidenav {
    display: none;
  }

  .chapter {
    align-items: flex-start;
  }
  .chapter-inner {
    width: calc(100% - 48px);
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 120px 0 70px;
    align-content: center;
    min-height: 100vh;
    align-items: center;
  }
  .chapter--film .chapter-inner,
  .chapter--works .chapter-inner {
    justify-items: start;
  }

  .scene-media--hero {
    background-position: 70% center;
  }
  .scene-veil {
    background:
      linear-gradient(
        0deg,
        rgba(5, 4, 3, 0.97) 8%,
        rgba(5, 4, 3, 0.78) 45%,
        rgba(5, 4, 3, 0.55) 100%
      ),
      radial-gradient(120% 80% at 80% 20%, rgba(120, 78, 38, 0.2), transparent 60%);
  }
  .scene-veil--hero {
    background: linear-gradient(
      0deg,
      rgba(5, 4, 3, 0.96) 12%,
      rgba(5, 4, 3, 0.55) 55%,
      rgba(5, 4, 3, 0.5) 100%
    );
  }

  .chapter-copy {
    max-width: none;
    order: 2;
  }
  .poster {
    order: 1;
    justify-self: start;
  }
  .poster-frame {
    width: clamp(150px, 42vw, 200px);
  }

  .hero-title {
    font-size: clamp(3rem, 16vw, 5rem);
  }
  .chapter-desc {
    margin-bottom: 30px;
  }
}

@media (max-width: 480px) {
  .chapter-meta {
    gap: 8px;
    font-size: 11px;
  }
  .cta {
    padding: 13px 24px;
  }
  .hero-title {
    font-size: clamp(2.2rem, 11vw, 3.2rem);
  }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  .scroller {
    scroll-behavior: auto;
  }
  .scene-media,
  .chapter-copy,
  .cta-arrow,
  .poster-frame {
    transition: none !important;
  }
  .scroll-cue svg line,
  .scroll-cue svg polyline {
    animation: none;
  }
}

/* =========================================================================
   Language globe — fixed bottom-left
   ========================================================================= */
.lang-globe {
  position: fixed;
  bottom: 32px;
  left: 32px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 48px;
  border: 1px solid rgba(201, 160, 99, 0.35);
  background: rgba(5, 4, 3, 0.72);
  backdrop-filter: blur(12px);
  color: var(--muted);
  padding: 10px 6px 8px;
  cursor: pointer;
  transition:
    border-color 400ms var(--ease),
    color 400ms var(--ease),
    box-shadow 400ms var(--ease);
}

.lang-globe svg {
  width: 18px;
  height: 18px;
  display: block;
}

.lang-globe-label {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1;
}

.lang-globe:hover {
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 0 1px rgba(201, 160, 99, 0.2), 0 8px 28px -8px rgba(201, 160, 99, 0.35);
}

@media (max-width: 900px) {
  .lang-globe {
    bottom: 24px;
    left: 20px;
  }
}

/* =========================================================================
   Language switcher (legacy)
   ========================================================================= */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 18px;
  flex-shrink: 0;
}

.lang-switcher button {
  background: none;
  border: none;
  padding: 4px 2px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 300ms var(--ease);
}

.lang-switcher button:hover { color: var(--warm-white); }
.lang-switcher button.is-active { color: var(--gold); }

.lang-sep {
  color: var(--muted);
  font-size: 10px;
  opacity: 0.45;
  pointer-events: none;
}

.mobile-lang-switcher {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 36px;
}

.mobile-lang-switcher button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 300ms;
}

.mobile-lang-switcher button.is-active { color: var(--gold); }
.mobile-lang-switcher .lang-sep { font-size: 12px; }

@media (max-width: 900px) {
  .site-header .lang-switcher { display: none; }
}

/* =========================================================================
   Arabic / RTL overrides
   ========================================================================= */
[lang="ar"] .chapter-copy,
[lang="ar"] .hero-title,
[lang="ar"] .chapter-title {
  font-family: "Tajawal", Georgia, serif;
  letter-spacing: 0;
}

[lang="ar"] .chapter-meta,
[lang="ar"] .chapter-facts,
[lang="ar"] .cta,
[lang="ar"] .works-list li,
[lang="ar"] .eyebrow,
[lang="ar"] .scroll-cue {
  letter-spacing: 0;
  font-family: "Tajawal", sans-serif;
}

[dir="rtl"] .chapter-inner {
  direction: rtl;
}

[dir="rtl"] .poster {
  order: -1;
}

[dir="rtl"] .sidenav {
  right: auto;
  left: 38px;
}

[dir="rtl"] .sidenav-dot {
  flex-direction: row-reverse;
}

[dir="rtl"] .sidenav::before {
  left: auto;
  right: 11px;
}

[dir="rtl"] .works-list li {
  padding-left: 0;
  padding-right: 26px;
}

[dir="rtl"] .works-list li::before {
  left: auto;
  right: 0;
}

[dir="rtl"] .lang-switcher {
  margin-left: 0;
  margin-right: 18px;
}

[dir="rtl"] .desktop-nav.nav-right {
  margin-left: 0;
  margin-right: auto;
}

/* instant mirror on language switch */
body.lang-switching .scene-media {
  transition: none !important;
}

[dir="rtl"] .scene-media--hero {
  transform: scaleX(-1) scale(1.06);
}

[dir="rtl"] .chapter.is-in .scene-media--hero {
  transform: scaleX(-1) scale(1);
}

/* Preserve the supplied artwork, including all printed credits. */
.poster--original .poster-frame { aspect-ratio: auto; }
.poster--original .poster-img { position: static; display: block; width: 100%; height: auto; object-fit: contain; filter: none; }
.poster--original:hover .poster-img { transform: none; filter: none; }
#maserati-the-brothers .scene-media {
  background-position: center;
  background-size: auto 100%;
  background-repeat: no-repeat;
  background-color: #c2bfc6;
  transform: none;
  transition: none;
}

#l-alligatore .poster-frame { width: clamp(280px, 29vw, 420px); }
@media (max-width: 900px) { #l-alligatore .poster-frame { width: min(100%, 340px); } }


.film-trailer-dialog {
  width: min(1080px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid rgba(201, 160, 99, .55);
  background: #080705;
  color: #fffaf2;
}
.film-trailer-dialog::backdrop { background: rgba(0,0,0,.9); }
.film-trailer-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; }
.film-trailer-heading h2 { margin: 0; font: 500 14px var(--font-body); }
.film-trailer-heading button { width: 44px; height: 44px; border: 0; color: inherit; background: transparent; font-size: 32px; cursor: pointer; flex-shrink: 0; }
.film-trailer-heading button:focus-visible { outline: 2px solid var(--gold); }
.film-trailer-dialog video { display: block; width: 100%; max-height: calc(100dvh - 110px); aspect-ratio: 16 / 9; background: #000; }


.poster-collection { display: grid; gap: 12px; }
.poster-collection > .poster { order: 0; }
.poster-variants { display: flex; gap: 12px; }
.poster-variants a { display: block; border: 1px solid rgba(201,160,99,.55); padding: 3px; }
.poster-variants img { display: block; height: 68px; width: auto; }
.poster-variants a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (max-width: 900px) { .poster-collection { order: 1; } }


.header-biography { margin-left: auto; color: inherit; font: 600 12px "Jost", sans-serif; text-transform: uppercase; letter-spacing: .16em; padding: 10px 0; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.header-biography:hover { text-decoration: underline; text-underline-offset: 6px; }
.header-biography:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.site-header:has(.header-biography) .menu-toggle { margin-left: 0; }

#filmography-hero .scene-media--hero {
  background-size: auto 200%;
  background-position: calc(78vw - 177.68dvh) top;
  background-repeat: no-repeat;
  background-color: #17120f;
  transform: none;
}
#filmography-hero .scene-veil--hero {
  background: linear-gradient(90deg, rgba(5,4,3,.58), rgba(5,4,3,.16) 65%, rgba(5,4,3,.12)),
    linear-gradient(0deg, rgba(5,4,3,.55), transparent 65%);
}
@media (max-width: 640px) {
  #filmography-hero .scene-media--hero {
    background-size: auto 145%;
    background-position: calc(65vw - 128.82dvh) -8dvh;
  }
}

/* Complete credits index follows the individual films.
   The scroller stays on mandatory snapping so each gesture lands on the next film;
   the taller index can still be scrolled through as an oversized snap area. */
.chapter--index { background: #161412; padding: 100px 0 70px; }
.film-index-inner { width: min(1240px, calc(100% - 160px)); margin-inline: auto; }
.film-index-inner h2 { margin: 0 0 38px; font: 400 clamp(36px, 5vw, 68px)/1.1 var(--font-display); color: var(--porcelain); }
.film-credit-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(var(--rows-desktop), auto); grid-auto-flow: column; column-gap: 42px; list-style: none; padding: 0; margin: 0; }
.film-credit-list li { border-top: 1px solid rgba(201,160,99,.25); }
.film-credit-list li > a, .film-credit-list li > div { position: relative; display: flex; flex-direction: column; gap: 9px; padding: 22px 22px 22px 0; }
.credit-title { font: 400 clamp(20px, 1.7vw, 26px)/1.2 var(--font-display); color: var(--porcelain); }
.credit-meta { color: var(--muted); font-size: 11px; line-height: 1.5; }
.credit-arrow { position: absolute; right: 0; top: 24px; color: var(--gold); }
.film-credit-list a:hover .credit-title { color: var(--gold); }
.film-credit-list a:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
[dir="rtl"] .film-credit-list li > a, [dir="rtl"] .film-credit-list li > div { padding-inline: 0 22px; }
[dir="rtl"] .credit-arrow { right: auto; left: 0; }
@media (max-width: 900px) {
  .film-index-inner { width: calc(100% - 64px); }
  .film-credit-list { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(var(--rows-tablet), auto); gap: 0 28px; }
}
@media (max-width: 540px) {
  .film-index-inner { width: calc(100% - 48px); }
  .film-credit-list { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
  .film-credit-list li > a, .film-credit-list li > div { padding-block: 17px; }
}

/* Credits without supplied artwork use the same editorial typography. */
.scene--credit {
  background: radial-gradient(ellipse at 78% 40%, rgba(120, 78, 38, .2), transparent 65%), #100d0a;
}
.chapter--credit .chapter-inner { grid-template-columns: 1fr; }
.chapter--credit .chapter-copy { max-width: 900px; }
.chapter--credit .chapter-title { font-size: clamp(2.6rem, 6.5vw, 6rem); }
