/* ==========================================================================
   Zaid Kanaan Cinema
   Layout concept: the site is a projected reel. Each section is a "reel"
   opened by a slate; every move between them is a letterbox cut.
   ========================================================================== */
:root {
  --ink: #0a0a0b;          /* projection-room black */
  --ink-2: #111113;        /* raised surface */
  --ink-3: #1a1a1d;        /* card frame */
  --paper: #ece6da;        /* warm print white */
  --mute: #8f8a80;         /* secondary text */
  --line: rgba(var(--fg-rgb), 0.14);
  --tungsten: #d9a45b;     /* 3200K bulb, used sparingly */
  --tungsten-dim: rgba(217, 164, 91, 0.16);
  --danger: #e2735f;
  --fg-2: var(--fg-2);         /* body copy */
  --fg-3: var(--fg-3);         /* secondary copy */
  --fg-rgb: 236, 230, 218;
  --bg-rgb: 10, 10, 11;
  --glow: #17150f;         /* warm centre of hero */
  --vignette: rgba(0, 0, 0, 0.75);
  --shadow: rgba(0, 0, 0, 0.9);
  --strip: #1d1813;        /* film base, always dark */
  --grain: 0.07;

  --f-display: "Big Shoulders Display", "Oswald", "Arial Narrow", Impact, sans-serif;
  --f-body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --ease-cut: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --bar-h: 50.5vh;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--ink); scroll-behavior: auto; -webkit-text-size-adjust: 100%; font-size: var(--s-root, 100%); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 400 calc(17px * var(--s-body, 1))/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, iframe { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--tungsten); outline-offset: 3px; }
::selection { background: var(--tungsten); color: var(--ink); }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 200; top: 12px; left: 12px; background: var(--paper); color: var(--ink); padding: 8px 14px; }

/* Film grain over everything */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(6) infinite;
}
@keyframes grain {
  0% { background-position: 0 0; } 20% { background-position: -37px 21px; } 40% { background-position: 29px -53px; }
  60% { background-position: -61px -13px; } 80% { background-position: 43px 47px; } 100% { background-position: 0 0; }
}

/* ---------- Type ---------- */
.display {
  font-family: var(--f-display); font-weight: 900; text-transform: var(--case-head, uppercase);
  line-height: 0.88; letter-spacing: -0.005em; margin: 0; text-wrap: balance;
}
.display--xl { font-size: calc(clamp(2.4rem, 10.5vw, 9.5rem) * var(--s-head, 1)); overflow-wrap: anywhere; }
.display--lg { font-size: calc(clamp(2.6rem, 6vw, 5.2rem) * var(--s-head, 1)); }
.eyebrow {
  font: 500 0.74rem/1.2 var(--f-mono); letter-spacing: 0.18em; text-transform: var(--case-label, uppercase);
  color: var(--mute); margin: 0 0 18px; display: inline-flex; align-items: center; gap: 10px;
}
.lede { font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.5; max-width: 60ch; color: var(--paper); margin: 0 0 1.2em; }
.prose { max-width: 65ch; color: var(--fg-2); }
.prose p { margin: 0 0 1.1em; }
.prose a { color: var(--tungsten); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--paper);
  position: relative; display: inline-flex; align-items: center; gap: 12px; cursor: pointer;
  padding: 15px 26px; border: 1px solid var(--b); background: transparent; overflow: hidden;
  font: 500 0.78rem/1 var(--f-mono); letter-spacing: 0.16em; text-transform: var(--case-label, uppercase);
  transition: color 0.45s var(--ease-out), border-color 0.3s;
}
.btn > span { position: relative; z-index: 1; }
.btn::before {
  content: ""; position: absolute; inset: 0; background: var(--b);
  transform: scaleY(0); transform-origin: 50% 50%; transition: transform 0.5s var(--ease-cut);
}
.btn--solid { background: var(--paper); color: var(--ink); }
.btn--solid::before { background: var(--tungsten); }
.btn:hover::before { transform: scaleY(1); }
.btn--ghost:hover { color: var(--ink); }
.btn__play { width: 0; height: 0; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }

/* ---------- Top bar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: calc(18px + env(safe-area-inset-top, 0px)) var(--gutter) 18px;
  background: linear-gradient(to bottom, rgba(var(--bg-rgb), 0.85), rgba(var(--bg-rgb), 0));
  transition: transform 0.5s var(--ease-out);
}
.topbar.is-hidden { transform: translateY(-110%); }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__logo { max-height: 40px; width: auto; }
.brand__mark {
  display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--paper);
  font: 900 1rem/1 var(--f-display); letter-spacing: 0.04em;
}
.brand__name { font: 700 1.15rem/1 var(--f-display); text-transform: var(--case-head, uppercase); letter-spacing: 0.08em; }
.nav__list { list-style: none; display: flex; gap: clamp(14px, 2.2vw, 34px); margin: 0; padding: 0; align-items: center; }
.nav__list a {
  font: 500 0.74rem/1 var(--f-mono); letter-spacing: 0.16em; text-transform: var(--case-label, uppercase); color: var(--mute);
  position: relative; padding: 6px 0; transition: color 0.25s;
}
.nav__list a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--tungsten); transition: right 0.4s var(--ease-out); }
.nav__list a:hover, .nav__list a.is-active { color: var(--paper); }
.nav__list a:hover::after, .nav__list a.is-active::after { right: 0; }
.nav__list .nav__cta { color: var(--paper); border: 1px solid var(--line); padding: 10px 16px; }
.nav__list .nav__cta::after { display: none; }
.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; position: relative; cursor: pointer; }
.menu-toggle span:not(.sr) { position: absolute; left: 10px; right: 10px; height: 1px; background: var(--paper); transition: transform 0.4s var(--ease-cut); }
.menu-toggle span:nth-child(1) { top: 18px; } .menu-toggle span:nth-child(2) { top: 26px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 860px) {
  .menu-toggle { display: block; z-index: 2; }
  .nav {
    position: fixed; inset: 0; background: var(--ink); display: grid; place-items: center;
    clip-path: inset(50% 0 50% 0); transition: clip-path 0.6s var(--ease-cut); pointer-events: none;
  }
  .nav.is-open { clip-path: inset(0 0 0 0); pointer-events: auto; }
  .nav__list { flex-direction: column; gap: 22px; }
  .nav__list a { font: 900 2.4rem/1 var(--f-display); letter-spacing: 0.02em; color: var(--paper); }
  .nav__list .nav__cta { border: 0; padding: 6px 0; color: var(--tungsten); }
}

/* Timecode + current reel, bottom-left */
.reel-counter {
  position: fixed; z-index: 55; left: var(--gutter); bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  display: flex; gap: 14px; align-items: center; pointer-events: none;
  font: 500 0.7rem/1 var(--f-mono); letter-spacing: 0.14em; text-transform: var(--case-label, uppercase); color: var(--mute);
  mix-blend-mode: difference;
}
.reel-counter__tc { color: var(--paper); font-variant-numeric: tabular-nums; }
.reel-counter__label::before { content: "▸ "; color: var(--tungsten); }
@media (max-width: 600px) { .reel-counter { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: clamp(600px, 100svh, 980px); display: grid; align-items: end;
  padding: 120px var(--gutter) 96px; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 80% at 70% 40%, var(--glow) 0%, var(--ink) 60%);
}
.hero__stage { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero::after { /* vignette */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 40%, var(--vignette) 100%),
              linear-gradient(to top, var(--ink) 0%, transparent 35%);
}
.hero__scope { position: absolute; inset: 88px var(--gutter) 64px; pointer-events: none; }
.hero__scope i { position: absolute; width: 26px; height: 26px; border: 1px solid rgba(var(--fg-rgb), 0.45); }
.hero__scope i:nth-child(1) { top: 0; left: 0; border-width: 1px 0 0 1px; }
.hero__scope i:nth-child(2) { top: 0; right: 0; border-width: 1px 1px 0 0; }
.hero__scope i:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.hero__scope i:nth-child(4) { bottom: 0; right: 0; border-width: 0 1px 1px 0; }
.hero__content { max-width: var(--max); width: 100%; margin: 0 auto; }
.eyebrow--rec { color: var(--paper); }
.rec-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); animation: rec 1.4s steps(2) infinite; }
@keyframes rec { 50% { opacity: 0.15; } }
.hero__name {
  margin: 0; font-family: var(--f-display); font-weight: 900; text-transform: var(--case-head, uppercase);
  font-size: calc(clamp(4.4rem, 17vw, 15.5rem) * var(--s-hero, 1)); line-height: 0.8; letter-spacing: -0.01em;
  display: flex; flex-direction: column;
}
.hero__name span:nth-child(2) { color: var(--paper); padding-inline-start: 0.42em; }
.hero__tagline { max-width: 44ch; color: var(--fg-2); font-size: clamp(1.05rem, 1.5vw, 1.25rem); margin: 28px 0 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__foot {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 26px; display: flex; justify-content: flex-end; gap: 28px;
  font: 500 0.68rem/1 var(--f-mono); letter-spacing: 0.16em; text-transform: var(--case-label, uppercase); color: var(--mute);
}
.hero__scroll { color: var(--paper); display: inline-flex; gap: 8px; align-items: center; }
.hero__scroll::after { content: ""; width: 1px; height: 26px; background: var(--paper); transform-origin: top; animation: drip 1.8s var(--ease-out) infinite; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (max-width: 600px) { .hero__foot span:not(.hero__scroll) { display: none; } .hero__scope { inset: 76px 16px 56px; } }

/* Load-in sequence */
.zk-js .hero__name span, .zk-js .hero__tagline, .zk-js .hero__actions, .zk-js .hero .eyebrow {
  animation: rise 1.1s var(--ease-out) both; animation-delay: calc(var(--d, 0) * 1s + 0.25s);
  animation-play-state: paused;
}
.is-rolling .hero__name span, .is-rolling .hero__tagline, .is-rolling .hero__actions, .is-rolling .hero .eyebrow { animation-play-state: running; }
.hero .eyebrow { --d: 0; } .hero__name span:nth-child(1) { --d: 0.08; } .hero__name span:nth-child(2) { --d: 0.18; }
.hero__tagline { --d: 0.32; } .hero__actions { --d: 0.42; }
@keyframes rise { from { opacity: 0; transform: translateY(40px); clip-path: inset(0 0 100% 0); } to { opacity: 1; transform: none; clip-path: inset(0 0 -10% 0); } }

/* ---------- Generic section frame ---------- */
.about, .reel, .contact, .shot__body, .screens, .stills, .credits, .page {
  max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter);
}

/* ---------- About ---------- */
.about {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px);
  padding-block: clamp(96px, 14vw, 180px); align-items: center;
}
.about__portrait { margin: 0; }
.about__frame {
  aspect-ratio: 4 / 5; overflow: hidden; background: var(--ink-3); position: relative;
  outline: 1px solid var(--line); outline-offset: 12px;
}
.about__frame img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter 1.2s var(--ease-out), transform 1.2s var(--ease-out); }
.about__frame:hover img { filter: grayscale(0.2); transform: scale(1.03); }
.about__placeholder { width: 100%; height: 100%; display: grid; place-items: center; background: repeating-linear-gradient(135deg, var(--ink-3) 0 14px, var(--ink-2) 14px 28px); }
.about__placeholder span { font: 900 7rem/1 var(--f-display); color: rgba(var(--fg-rgb), 0.1); }
.about__portrait figcaption { display: flex; justify-content: space-between; margin-top: 26px; font: 500 0.7rem/1 var(--f-mono); letter-spacing: 0.16em; text-transform: var(--case-label, uppercase); color: var(--mute); }
.about__head { display: flex; align-items: center; gap: 22px; margin-bottom: 26px; }
.about__logo { width: 72px; height: 72px; object-fit: contain; }
.about__role { margin: 10px 0 0; font: 500 0.82rem/1 var(--f-mono); letter-spacing: 0.16em; text-transform: var(--case-label, uppercase); color: var(--tungsten); }
.about__bio { max-width: 60ch; color: var(--fg-2); font-size: 1.08rem; }
.about__bio p { margin: 0 0 1em; }
.about__quote { margin: 28px 0; padding-inline-start: 22px; border-inline-start: 1px solid var(--tungsten); font: 500 1.6rem/1.2 var(--f-display); text-transform: var(--case-head, uppercase); max-width: 30ch; }
.about__stats { list-style: none; padding: 0; margin: 36px 0 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); border-top: 1px solid var(--line); }
.about__stats li { border-bottom: 1px solid var(--line); }
.about__stats li + li { border-inline-start: 1px solid var(--line); }
.about__stats a { display: flex; flex-direction: column; gap: 6px; padding-block: 18px; padding-inline: 0 16px; }
.about__stats li + li a { padding-inline-start: 16px; }
.about__stats strong { font: 900 2.6rem/1 var(--f-display); font-variant-numeric: tabular-nums; transition: color 0.3s; }
.about__stats span { font: 500 0.68rem/1 var(--f-mono); letter-spacing: 0.14em; text-transform: var(--case-label, uppercase); color: var(--mute); }
.about__stats a:hover strong { color: var(--tungsten); }
@media (max-width: 860px) { .about { grid-template-columns: minmax(0, 1fr); } .about__portrait { max-width: 420px; } }

/* Social icons */
.socials { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.socials a {
  display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line);
  color: var(--mute); transition: color 0.25s, border-color 0.25s, transform 0.35s var(--ease-out);
}
.socials a:hover { color: var(--ink); background: var(--paper); border-color: var(--paper); transform: translateY(-3px); }
.socials svg { width: 18px; height: 18px; }
.socials span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Reels ---------- */
.reel { padding-block: clamp(72px, 10vw, 140px); }
.reel--page { padding-top: 160px; border-top: 0; }
.slate {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "clap no count" "title title title" "tag tag tag";
  column-gap: 18px; row-gap: 8px; align-items: center; margin-bottom: clamp(36px, 5vw, 64px);
}
.slate__clap { grid-area: clap; width: 46px; height: 30px; position: relative; border: 1px solid var(--paper); border-top-width: 0; }
.slate__clap i {
  position: absolute; left: -1px; right: -1px; top: -9px; height: 9px; border: 1px solid var(--paper);
  background: repeating-linear-gradient(-55deg, var(--paper) 0 6px, transparent 6px 12px);
  transform-origin: 0 100%; transform: rotate(-18deg); transition: transform 0.35s cubic-bezier(0.5, 0, 0.75, 0);
}
.slate.is-clapped .slate__clap i { transform: rotate(0deg); }
.slate__no { grid-area: no; margin: 0; font: 500 0.74rem/1 var(--f-mono); letter-spacing: 0.18em; text-transform: var(--case-label, uppercase); color: var(--tungsten); }
.slate__count { grid-area: count; margin: 0; font: 500 0.74rem/1 var(--f-mono); letter-spacing: 0.16em; text-transform: var(--case-label, uppercase); color: var(--mute); font-variant-numeric: tabular-nums; }
.slate__title { grid-area: title; margin-top: 14px; }
.slate__tag { grid-area: tag; margin: 6px 0 0; color: var(--mute); max-width: 50ch; }

.reel__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); grid-auto-flow: dense; }
.card--lead { grid-column: span 2; grid-row: span 2; }
@media (max-width: 1000px) { .reel__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .card--lead { grid-row: span 1; } }
@media (max-width: 620px) { .reel__grid { grid-template-columns: minmax(0, 1fr); } .card--lead { grid-column: auto; } }
.reel__all { display: inline-block; margin-top: 36px; font: 500 0.78rem/1 var(--f-mono); letter-spacing: 0.16em; text-transform: var(--case-label, uppercase); border-bottom: 1px solid var(--tungsten); padding-bottom: 6px; }
.reel__empty { border: 1px dashed var(--line); padding: 48px 24px; display: grid; justify-items: start; gap: 18px; color: var(--mute); }
.reel__empty p { margin: 0; font: 500 0.8rem/1.4 var(--f-mono); letter-spacing: 0.12em; text-transform: var(--case-label, uppercase); }

/* Cards */
.card { min-width: 0; perspective: 1200px; }
.card__link { display: flex; flex-direction: column; height: 100%; }
.card__frame {
  --rx: 0deg; --ry: 0deg;
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink-3); flex: 1 1 auto;
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d;
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}
.card--lead .card__frame { aspect-ratio: auto; min-height: 320px; }
.card:hover .card__frame { box-shadow: 0 40px 80px -30px var(--shadow), 0 0 0 1px var(--line); }
.card__img, .card__preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card__img { transition: transform 1.2s var(--ease-out), filter 0.8s; filter: saturate(0.85) brightness(0.88); }
.card:hover .card__img { transform: scale(1.06); filter: saturate(1) brightness(1); }
.card__img--empty { display: grid; place-items: center; background: linear-gradient(135deg, var(--ink-3), var(--ink-2)); }
.card__img--empty span { font: 900 calc(clamp(1.4rem, 3vw, 2.4rem) * var(--s-head, 1))/1 var(--f-display); text-transform: var(--case-head, uppercase); color: rgba(var(--fg-rgb), 0.16); padding: 16px; text-align: center; }
.card__preview { opacity: 0; transition: opacity 0.5s; }
.card.is-playing .card__preview { opacity: 1; }
.card__frame::before, .card__frame::after { /* letterbox bars that open on hover */
  content: ""; position: absolute; left: 0; right: 0; height: 12%; background: #0a0a0b; z-index: 2; transition: transform 0.6s var(--ease-cut);
}
.card__frame::before { top: 0; } .card__frame::after { bottom: 0; }
.card:hover .card__frame::before { transform: translateY(-100%); }
.card:hover .card__frame::after { transform: translateY(100%); }
.card__take {
  position: absolute; z-index: 3; top: 14px; inset-inline-start: 14px; font: 500 0.66rem/1 var(--f-mono); letter-spacing: 0.16em; text-transform: var(--case-label, uppercase);
  background: rgba(var(--bg-rgb), 0.7); padding: 7px 9px; backdrop-filter: blur(6px);
}
.card__logo { position: absolute; z-index: 3; inset-inline-end: 14px; bottom: 14px; width: 56px; height: 36px; display: grid; place-items: center; }
.card__logo img { max-height: 36px; width: auto; object-fit: contain; filter: brightness(0) invert(1); opacity: 0.85; }
.card__body { padding-top: 16px; display: grid; gap: 6px; }
.card__title { margin: 0; font: 700 calc(clamp(1.4rem, 2vw, 1.9rem) * var(--s-head, 1))/1 var(--f-display); text-transform: var(--case-head, uppercase); letter-spacing: 0.01em; transition: color 0.3s; }
.card--lead .card__title { font-size: calc(clamp(1.9rem, 3.2vw, 3rem) * var(--s-head, 1)); }
.card:hover .card__title { color: var(--tungsten); }
.card__meta { margin: 0; display: flex; flex-wrap: wrap; gap: 14px; font: 500 0.7rem/1 var(--f-mono); letter-spacing: 0.14em; text-transform: var(--case-label, uppercase); color: var(--mute); }
.card__meta span + span::before { content: "/"; margin-inline-end: 14px; color: var(--line); }
.card__summary { margin: 4px 0 0; color: var(--fg-3); max-width: 60ch; font-size: 0.98rem; }

/* Custom cursor label over cards */
.cursor {
  position: fixed; z-index: 80; top: 0; left: 0; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%;
  display: grid; place-items: center; pointer-events: none; background: var(--paper); color: var(--ink);
  font: 500 0.66rem/1 var(--f-mono); letter-spacing: 0.16em; text-transform: var(--case-label, uppercase);
  transform: translate3d(var(--x, -200px), var(--y, -200px), 0) scale(0); transition: transform 0.35s var(--ease-out);
}
.cursor.is-on { transform: translate3d(var(--x), var(--y), 0) scale(1); }
@media (hover: none) { .cursor { display: none; } }

/* ---------- Contact ---------- */
.contact {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px);
  padding-block: clamp(96px, 12vw, 170px); border-top: 1px solid var(--line);
}
.contact__direct { margin: 32px 0; display: grid; gap: 14px; }
.contact__direct div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.contact__direct dt { font: 500 0.7rem/1.6 var(--f-mono); letter-spacing: 0.14em; text-transform: var(--case-label, uppercase); color: var(--mute); }
.contact__direct dd { margin: 0; overflow-wrap: anywhere; }
.contact__direct a:hover { color: var(--tungsten); }
@media (max-width: 860px) { .contact { grid-template-columns: minmax(0, 1fr); } }

.form { background: var(--ink-2); border: 1px solid var(--line); padding: clamp(22px, 3.4vw, 44px); position: relative; }
.form::before { content: attr(data-label); text-transform: var(--case-label, uppercase); position: absolute; top: -9px; inset-inline-start: 22px; background: var(--ink); padding: 0 10px; font: 500 0.66rem/1.2 var(--f-mono); letter-spacing: 0.18em; color: var(--tungsten); }
.form__hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 24px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field__label { font: 500 0.7rem/1 var(--f-mono); letter-spacing: 0.14em; text-transform: var(--case-label, uppercase); color: var(--mute); }
.field input, .field select, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line); color: var(--paper);
  font: 400 1.05rem/1.4 var(--f-body); padding: 10px 0; border-radius: 0; transition: border-color 0.3s; -webkit-appearance: none; appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--mute) 50%), linear-gradient(135deg, var(--mute) 50%, transparent 50%); background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-inline-end: 24px; }
.field select option { background: var(--ink-2); }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--tungsten); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--danger); }
.form__foot { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.form__status { margin: 0; font-size: 0.95rem; color: var(--mute); }
.form__status.is-ok { color: var(--tungsten); }
.form__status.is-error { color: var(--danger); }
.form.is-sending button { opacity: 0.6; pointer-events: none; }
@media (max-width: 560px) { .form__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 48px var(--gutter) calc(48px + env(safe-area-inset-bottom, 0px)); }
.footer__inner { max-width: var(--max); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.footer__end { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.footer__fin { font: italic 400 2rem/1 var(--f-body); }
.footer__copy, .footer__top { font: 500 0.7rem/1 var(--f-mono); letter-spacing: 0.14em; text-transform: var(--case-label, uppercase); color: var(--mute); }
.footer__top:hover { color: var(--paper); }

/* ---------- Single project ---------- */
.shot__hero { position: relative; min-height: clamp(520px, 86svh, 900px); display: grid; align-items: end; padding: 140px var(--gutter) 64px; overflow: hidden; background: var(--ink-3); }
.shot__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); animation: dolly 14s var(--ease-out) forwards; }
@keyframes dolly { to { transform: scale(1); } }
.shot__veil { position: absolute; inset: 0; background: linear-gradient(to top, var(--ink) 4%, rgba(var(--bg-rgb), 0.25) 60%, rgba(var(--bg-rgb), 0.6)); }
.shot__head { position: relative; max-width: var(--max); width: 100%; margin: 0 auto; }
.shot__back { color: var(--paper); }
.shot__back:hover { color: var(--tungsten); }
.shot__body { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 96px); padding-block: 72px; }
.slate-card { border: 1px solid var(--line); padding: 26px; align-self: start; position: sticky; top: 100px; background: var(--ink-2); }
.slate-card__logo { padding-bottom: 22px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.slate-card__logo img { max-height: 64px; width: auto; }
.slate-card dl { margin: 0; display: grid; gap: 0; }
.slate-card dl div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.slate-card dl div:last-child { border-bottom: 0; }
.slate-card dt { font: 500 0.66rem/1.7 var(--f-mono); letter-spacing: 0.14em; text-transform: var(--case-label, uppercase); color: var(--mute); }
.slate-card dd { margin: 0; font-weight: 500; }
@media (max-width: 860px) { .shot__body { grid-template-columns: minmax(0, 1fr); } .slate-card { position: static; } }

.screens, .stills, .credits { padding-block: 40px 72px; }
.screen { margin-bottom: 40px; }
.screen__frame { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.screen__frame > *, .screen__frame iframe, .screen__frame video { position: absolute; inset: 0; width: 100% !important; height: 100% !important; border: 0; }
.screen__frame .wp-embed-responsive, .screen__frame figure { margin: 0; }
.screen__fallback { display: grid; place-items: center; font: 500 0.8rem/1 var(--f-mono); letter-spacing: 0.16em; text-transform: var(--case-label, uppercase); }
.screen__label { display: block; margin-top: 12px; font: 500 0.68rem/1 var(--f-mono); letter-spacing: 0.16em; text-transform: var(--case-label, uppercase); color: var(--mute); }

.stills__grid { columns: 3 280px; column-gap: 16px; }
.still { display: block; margin-bottom: 16px; break-inside: avoid; overflow: hidden; cursor: zoom-in; }
.still img { width: 100%; height: auto; transition: transform 0.9s var(--ease-out), filter 0.6s; filter: brightness(0.9); }
.still:hover img { transform: scale(1.04); filter: brightness(1); }

.credits__roll { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 32px; }
.credits__roll div { display: flex; flex-direction: column; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.credits__roll dt { font: 500 0.66rem/1.4 var(--f-mono); letter-spacing: 0.14em; text-transform: var(--case-label, uppercase); color: var(--mute); }
.credits__roll dd { margin: 0; font: 700 1.25rem/1.1 var(--f-display); text-transform: var(--case-head, uppercase); letter-spacing: 0.02em; }

.next-reel { position: relative; display: grid; align-content: center; justify-items: start; gap: 12px; min-height: 52vh; padding: 64px var(--gutter); overflow: hidden; border-top: 1px solid var(--line); }
.next-reel__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; opacity: 0.35; filter: grayscale(1); transition: opacity 0.8s, filter 0.8s, transform 1.4s var(--ease-out); }
.next-reel:hover .next-reel__img { opacity: 0.6; filter: grayscale(0); transform: scale(1.04); }
.next-reel .display { transition: transform 0.6s var(--ease-out); }
.next-reel:hover .display { transform: translateX(16px); }
.next-reel { isolation: isolate; }

.page { padding-block: 160px 96px; }
.page--404 { display: grid; gap: 28px; justify-items: start; min-height: 70vh; align-content: center; }
.pager .nav-links { display: flex; gap: 10px; margin-top: 48px; font-family: var(--f-mono); }
.pager .page-numbers { padding: 10px 14px; border: 1px solid var(--line); }
.pager .current { background: var(--paper); color: var(--ink); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(5, 5, 6, 0.96); display: grid; place-items: center; padding: 64px var(--gutter); }
.lightbox__stage { width: min(100%, 1400px); max-height: 100%; display: grid; place-items: center; }
.lightbox__stage img { max-height: 82vh; width: auto; }
.lightbox__stage .screen__frame { width: 100%; }
.lightbox__close, .lightbox__nav { position: absolute; background: none; border: 1px solid var(--line); width: 48px; height: 48px; cursor: pointer; font-size: 1.6rem; line-height: 1; }
.lightbox__close { top: calc(16px + env(safe-area-inset-top, 0px)); right: 16px; }
.lightbox__nav--prev { left: 16px; } .lightbox__nav--next { right: 16px; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--paper); color: var(--ink); }
.lightbox__count { position: absolute; bottom: 20px; font: 500 0.7rem/1 var(--f-mono); letter-spacing: 0.16em; color: var(--mute); }
.lightbox.is-single .lightbox__nav, .lightbox.is-single .lightbox__count { display: none; }

/* ---------- The cut (page / section transitions) ---------- */
.cut { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.cut__bar { position: absolute; left: 0; right: 0; height: var(--bar-h); background: #000; transition: transform 0.62s var(--ease-cut); }
.cut__bar--top { top: 0; transform: translateY(-100%); }
.cut__bar--bot { bottom: 0; transform: translateY(100%); }
.cut.is-closed .cut__bar { transform: translateY(0); }
.cut.is-closed { pointer-events: auto; }
.cut__card {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; padding: 24px;
  opacity: 0; transition: opacity 0.25s;
}
.cut.is-titled .cut__card { opacity: 1; transition-delay: 0.42s; }
.cut__meta { font: 500 0.72rem/1 var(--f-mono); letter-spacing: 0.2em; text-transform: var(--case-label, uppercase); color: var(--tungsten); }
.cut__title { font: 900 calc(clamp(2.4rem, 7vw, 6rem) * var(--s-head, 1))/0.9 var(--f-display); text-transform: var(--case-head, uppercase); max-width: 16ch; text-wrap: balance; }
.cut.is-titled .cut__title { animation: title-in 0.7s var(--ease-out) 0.42s both; }
@keyframes title-in { from { letter-spacing: 0.2em; opacity: 0; filter: blur(8px); } to { letter-spacing: 0; opacity: 1; filter: none; } }
.cut__flash { position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 50%, rgba(255, 196, 120, 0.9), rgba(217, 120, 60, 0.4) 40%, transparent 70%); mix-blend-mode: screen; opacity: 0; pointer-events: none; }
.cut.is-burn .cut__flash { animation: burn 0.7s ease-out; }
@keyframes burn { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: 0; } }
/* No JS: never cover the page */
html:not(.zk-js) .cut { display: none; }

/* Film leader countdown (first visit) */
.leader { position: absolute; inset: 0; display: grid; place-items: center; background: #151513; z-index: 2; }
.leader::before, .leader::after { content: ""; position: absolute; background: rgba(var(--fg-rgb), 0.35); }
.leader::before { left: 0; right: 0; top: 50%; height: 1px; } .leader::after { top: 0; bottom: 0; left: 50%; width: 1px; }
.leader__ring { position: absolute; width: min(64vmin, 520px); aspect-ratio: 1; border-radius: 50%; border: 2px solid rgba(var(--fg-rgb), 0.8); box-shadow: 0 0 0 18px rgba(var(--fg-rgb), 0.06), inset 0 0 0 26px rgba(var(--fg-rgb), 0.08); }
.leader__sweep { position: absolute; width: min(64vmin, 520px); aspect-ratio: 1; border-radius: 50%; background: conic-gradient(rgba(var(--fg-rgb), 0.22) var(--a, 0deg), transparent 0); }
.leader__num { position: relative; font: 900 min(42vmin, 340px)/1 var(--f-display); color: var(--paper); font-variant-numeric: tabular-nums; }
.leader__skip { position: absolute; bottom: calc(26px + env(safe-area-inset-bottom, 0px)); right: 26px; background: none; border: 1px solid var(--line); padding: 10px 16px; font: 500 0.7rem/1 var(--f-mono); letter-spacing: 0.16em; text-transform: var(--case-label, uppercase); cursor: pointer; }

/* ---------- Scroll reveals (start visible; only below-fold blocks are pre-hidden by JS) ---------- */
.reveal.is-pending { clip-path: inset(18% 0 18% 0); opacity: 0.001; transform: translateY(40px) scale(0.985); }
.reveal { transition: clip-path 1.1s var(--ease-cut), opacity 0.8s ease, transform 1.1s var(--ease-out); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  body::after { animation: none; }
  .reveal.is-pending { clip-path: none; opacity: 1; transform: none; }
}

/* ==========================================================================
   v1.1 — moving hero background, "more" arrows, section landing pages
   ========================================================================== */

/* Hero: drifting projector light leaks behind the 3D film strip */
.hero::before {
  content: ""; position: absolute; inset: -25%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(38% 48% at 22% 32%, rgba(217, 164, 91, 0.30), transparent 62%),
    radial-gradient(34% 44% at 78% 68%, rgba(176, 72, 42, 0.24), transparent 62%),
    radial-gradient(28% 38% at 62% 18%, rgba(86, 124, 146, 0.18), transparent 62%),
    radial-gradient(26% 30% at 40% 84%, rgba(var(--fg-rgb), 0.08), transparent 62%);
  filter: blur(24px);
  animation: leak-drift 22s ease-in-out infinite alternate, leak-flicker 5s steps(1) infinite;
}
@keyframes leak-drift {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  33%  { transform: translate3d(6%, -4%, 0) rotate(8deg) scale(1.08); }
  66%  { transform: translate3d(-5%, 5%, 0) rotate(-6deg) scale(1.04); }
  100% { transform: translate3d(3%, 2%, 0) rotate(4deg) scale(1.12); }
}
@keyframes leak-flicker {
  0%, 100% { opacity: 1; } 12% { opacity: 0.86; } 13% { opacity: 1; } 47% { opacity: 0.92; } 48% { opacity: 1; } 71% { opacity: 0.8; } 72% { opacity: 1; }
}
/* A soft beam that sweeps across the frame */
.hero__scope::before {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: 0; width: 38%;
  background: linear-gradient(100deg, transparent, rgba(242, 214, 162, 0.07) 45%, rgba(242, 214, 162, 0.12) 50%, rgba(242, 214, 162, 0.07) 55%, transparent);
  transform: translateX(-120%) skewX(-12deg); animation: beam-sweep 9s var(--ease-cut) infinite;
}
@keyframes beam-sweep { 0% { transform: translateX(-140%) skewX(-12deg); } 55%, 100% { transform: translateX(320%) skewX(-12deg); } }

/* Home: header arrow to the section page */
.slate__count--link { display: inline-flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid transparent; transition: color 0.3s, border-color 0.3s; color: var(--paper); }
.slate__count--link .arrow { color: var(--tungsten); transition: transform 0.4s var(--ease-out); }
.slate__count--link:hover { border-color: var(--tungsten); }
.slate__count--link:hover .arrow { transform: translateX(6px); }

/* Home: "+N more" arrow tile at the end of each reel */
.more-tile {
  position: relative; display: grid; align-content: space-between; gap: 18px; min-height: 220px; padding: 24px;
  border: 1px solid var(--line); background: var(--ink-2); overflow: hidden; isolation: isolate;
  transition: border-color 0.4s, color 0.4s;
}
.more-tile::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--tungsten);
  transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease-cut);
}
.more-tile:hover { color: var(--ink); border-color: var(--tungsten); }
.more-tile:hover::before { transform: scaleX(1); }
.more-tile__count { font: 900 calc(clamp(3rem, 6vw, 5rem) * var(--s-head, 1))/0.85 var(--f-display); font-variant-numeric: tabular-nums; }
.more-tile__label { font: 500 0.74rem/1.4 var(--f-mono); letter-spacing: 0.16em; text-transform: var(--case-label, uppercase); }
.more-tile__arrow { width: 64px; color: var(--tungsten); transition: transform 0.5s var(--ease-out), color 0.4s; }
.more-tile:hover .more-tile__arrow { color: var(--ink); transform: translateX(10px); }
.more-tile__arrow svg { width: 100%; height: auto; display: block; }

/* Section landing hero */
.section-hero {
  position: relative; min-height: clamp(520px, 78svh, 820px); display: grid; align-items: end; overflow: hidden; isolation: isolate;
  padding: 140px var(--gutter) 80px; background: radial-gradient(120% 90% at 70% 30%, var(--glow) 0%, var(--ink) 65%);
}
.section-hero__bg {
  position: absolute; inset: -6%; z-index: -3; background-size: cover; background-position: center;
  filter: grayscale(0.6) brightness(0.45) contrast(1.1); animation: ken-burns 26s ease-in-out infinite alternate;
}
@keyframes ken-burns { from { transform: scale(1) translate3d(0, 0, 0); } to { transform: scale(1.14) translate3d(-3%, -2%, 0); } }
.section-hero__light {
  position: absolute; inset: -25%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(36% 46% at 18% 30%, rgba(217, 164, 91, 0.26), transparent 62%),
    radial-gradient(30% 40% at 82% 72%, rgba(176, 72, 42, 0.2), transparent 62%);
  filter: blur(24px); animation: leak-drift 20s ease-in-out infinite alternate, leak-flicker 6s steps(1) infinite;
}
.section-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, var(--ink) 2%, rgba(var(--bg-rgb), 0.2) 55%, rgba(var(--bg-rgb), 0.7)); }
.section-hero__inner { max-width: var(--max); width: 100%; margin: 0 auto; display: grid; gap: 14px; justify-items: start; }
.section-hero__back { color: var(--paper); margin-bottom: 18px; }
.section-hero__no { margin: 0; font: 500 0.74rem/1 var(--f-mono); letter-spacing: 0.18em; text-transform: var(--case-label, uppercase); color: var(--tungsten); }
.section-hero__back:hover { color: var(--tungsten); }
.section-hero__title {
  margin: 0; font: 900 calc(clamp(3rem, 12vw, 11rem) * var(--s-title, 1))/0.82 var(--f-display); text-transform: var(--case-head, uppercase); letter-spacing: -0.01em; overflow-wrap: break-word; max-width: 100%;
  animation: rise 1.1s var(--ease-out) 0.2s both;
}
.section-hero__tag { margin: 6px 0 0; font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--fg-2); max-width: 50ch; }
.section-hero__intro { max-width: 62ch; color: var(--fg-3); }
.section-hero__intro p { margin: 0; }
.section-hero__scroll { position: absolute; inset-inline-end: var(--gutter); bottom: 28px; font: 500 0.68rem/1 var(--f-mono); letter-spacing: 0.16em; text-transform: var(--case-label, uppercase); display: inline-flex; gap: 8px; align-items: center; }
.section-hero__scroll::after { content: ""; width: 1px; height: 26px; background: var(--paper); animation: drip 1.8s var(--ease-out) infinite; }
.section-stats { margin: 26px 0 0; display: flex; flex-wrap: wrap; border-top: 1px solid var(--line); }
.section-stats div { padding-top: 16px; padding-inline-end: 28px; margin-inline-end: 28px; display: grid; gap: 6px; }
.section-stats div + div { border-inline-start: 1px solid var(--line); padding-inline-start: 28px; }
.section-stats dt { font: 500 0.66rem/1 var(--f-mono); letter-spacing: 0.16em; text-transform: var(--case-label, uppercase); color: var(--mute); }
.section-stats dd { margin: 0; font: 900 calc(clamp(1.8rem, 3.4vw, 2.8rem) * var(--s-head, 1))/1 var(--f-display); font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .section-stats div { padding-inline-end: 16px; margin-inline-end: 16px; } .section-stats div + div { padding-inline-start: 16px; } }

.reel--landing { border-top: 0; padding-top: clamp(40px, 6vw, 72px); }
.filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: clamp(28px, 4vw, 48px); }
.filter__label { font: 500 0.68rem/1 var(--f-mono); letter-spacing: 0.16em; text-transform: var(--case-label, uppercase); color: var(--mute); margin-inline-end: 8px; }
.filter__chip { padding: 9px 14px; border: 1px solid var(--line); font: 500 0.74rem/1 var(--f-mono); letter-spacing: 0.1em; font-variant-numeric: tabular-nums; transition: background 0.3s, color 0.3s, border-color 0.3s; }
.filter__chip:hover { border-color: var(--paper); }
.filter__chip.is-active { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.pager .nav-links { flex-wrap: wrap; align-items: center; }
.pager .page-numbers { font: 500 0.74rem/1 var(--f-mono); letter-spacing: 0.1em; transition: background 0.3s, color 0.3s; }
.pager a.page-numbers:hover { background: var(--paper); color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero__scope::before, .section-hero__bg, .section-hero__light { animation: none; }
}

/* ==========================================================================
   v1.2 — light mode, clear reel boundaries, header tools, Arabic / RTL
   ========================================================================== */

/* Light mode: the editor's light table. Dark stays the default. */
:root[data-mode="light"] {
  --ink: #f1ece2;
  --ink-2: #e7e0d2;
  --ink-3: #d9d0be;
  --paper: #15130f;
  --mute: #6b6457;
  --line: rgba(21, 19, 15, 0.16);
  --tungsten: #985a14;
  --tungsten-dim: rgba(152, 90, 20, 0.14);
  --danger: #b0402c;
  --fg-2: #39342c;
  --fg-3: #4e483e;
  --fg-rgb: 21, 19, 15;
  --bg-rgb: 241, 236, 226;
  --glow: #fbf3e2;
  --vignette: rgba(225, 214, 194, 0.55);
  --shadow: rgba(70, 48, 22, 0.35);
  --grain: 0.05;
  color-scheme: light;
}
html { transition: background-color 0.4s ease; }
:root[data-mode="light"] .reel-counter { mix-blend-mode: normal; }
:root[data-mode="light"] .hero::before { opacity: 0.7; }
:root[data-mode="light"] .section-hero__bg { filter: grayscale(0.6) brightness(1.15) contrast(0.9) sepia(0.2); opacity: 0.45; }

/* Overlays that are always a dark screen, whatever the mode */
.cut, .lightbox, .leader {
  --ink: #0a0a0b; --paper: #ece6da; --mute: #8f8a80; --line: rgba(236, 230, 218, 0.14);
  --fg-rgb: 236, 230, 218; --bg-rgb: 10, 10, 11; --tungsten: #d9a45b;
  color: var(--paper);
}

/* ---------- Header tools: language + mode ---------- */
.nav { margin-inline-start: auto; }
.tools { position: relative; z-index: 2; display: flex; align-items: center; gap: 8px; }
.tool {
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0; cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--paper);
  font: 600 0.8rem/1 var(--f-mono); letter-spacing: 0.06em; transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.tool:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.tool svg { width: 18px; height: 18px; }
.tool--lang[lang="ar"] { font: 600 1.05rem/1 "IBM Plex Sans Arabic", Tahoma, sans-serif; }
.i-moon { display: none; }
:root[data-mode="light"] .i-sun { display: none; }
:root[data-mode="light"] .i-moon { display: block; }
@media (max-width: 860px) { .nav { margin: 0; } .tool { width: 44px; height: 44px; } }

/* ---------- Reels: unmistakable start and end ---------- */
.reel {
  --reel-bg: var(--ink);
  position: relative; padding-block: 0 clamp(56px, 7vw, 96px);
  background: var(--reel-bg);
  box-shadow: 0 0 0 100vmax var(--reel-bg);
  clip-path: inset(0 -100vmax);
}
.reel--alt { --reel-bg: var(--ink-2); }
.reel.reveal.is-pending { clip-path: inset(18% -100vmax); }
.reel--landing, .reel--page { box-shadow: none; clip-path: none; background: none; padding-bottom: clamp(56px, 7vw, 96px); }


.slate {
  grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "big head count";
  align-items: end; column-gap: clamp(18px, 3vw, 44px); row-gap: 18px;
  padding-bottom: clamp(24px, 3vw, 36px); border-bottom: 1px solid var(--line);
}
.slate__big {
  grid-area: big; font: 900 calc(clamp(4.6rem, 12vw, 11rem) * var(--s-head, 1))/0.76 var(--f-display); color: var(--tungsten);
  font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
}
.slate__head { grid-area: head; display: grid; gap: 10px; min-width: 0; }
.slate__top { display: flex; align-items: center; gap: 16px; }
.slate__head .slate__clap, .slate__head .slate__no, .slate__head .slate__title, .slate__head .slate__tag { grid-area: auto; }
.slate__head .slate__title { margin: 6px 0 0; font-size: calc(clamp(2.6rem, 7.6vw, 7.6rem) * var(--s-title, 1)); }
.slate__head .slate__tag { margin: 0; color: var(--fg-2); }
.slate > .slate__count { grid-area: count; align-self: end; }
@media (max-width: 700px) {
  .slate { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "big count" "head head"; align-items: end; }
  .slate > .slate__count { justify-self: end; }
  .slate__head .slate__title { font-size: calc(clamp(2.6rem, 12vw, 4rem) * var(--s-title, 1)); }
}


.contact { border-top: 0; }

/* ---------- Arabic ---------- */
html[lang="ar"] {
  --f-display: "Reem Kufi", "IBM Plex Sans Arabic", Tahoma, "Segoe UI", sans-serif;
  --f-body: "IBM Plex Sans Arabic", Tahoma, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Sans Arabic", Tahoma, "Segoe UI", sans-serif;
}
/* Letter-spacing breaks Arabic joining */
html[lang="ar"] body, html[lang="ar"] body * { letter-spacing: normal !important; }
html[lang="ar"] body { font-size: calc(18px * var(--s-body, 1)); line-height: 1.75; }
html[lang="ar"] .display, html[lang="ar"] .hero__name, html[lang="ar"] .section-hero__title,
html[lang="ar"] .cut__title, html[lang="ar"] .more-tile__count, html[lang="ar"] .slate__big,
html[lang="ar"] .card__title, html[lang="ar"] .credits__roll dd, html[lang="ar"] .about__quote { line-height: 1.2; font-weight: 700; }
html[lang="ar"] .hero__name { font-size: calc(clamp(4rem, 14vw, 12rem) * var(--s-hero, 1)); gap: 0.05em; }
html[lang="ar"] .eyebrow, html[lang="ar"] .nav__list a, html[lang="ar"] .btn, html[lang="ar"] .slate__no,
html[lang="ar"] .slate__count, html[lang="ar"] .card__meta, html[lang="ar"] .card__take, html[lang="ar"] .field__label,
html[lang="ar"] .more-tile__label, html[lang="ar"] .section-stats dt,
html[lang="ar"] .filter__label, html[lang="ar"] .contact__direct dt, html[lang="ar"] .slate-card dt,
html[lang="ar"] .credits__roll dt, html[lang="ar"] .about__stats span, html[lang="ar"] .about__role,
html[lang="ar"] .cut__meta, html[lang="ar"] .footer__copy, html[lang="ar"] .footer__top,
html[lang="ar"] .hero__foot, html[lang="ar"] .reel-counter, html[lang="ar"] .screen__label, html[lang="ar"] .section-hero__no,
html[lang="ar"] .form::before, html[lang="ar"] .leader__skip, html[lang="ar"] .cursor { font-size: 0.86rem; font-weight: 500; }
html[lang="ar"] .footer__fin { font-style: normal; font-family: var(--f-display); }
@media (max-width: 860px) { html[lang="ar"] .nav__list a { font: 700 2rem/1.3 var(--f-display); } }

/* Right-to-left mirroring for things logical properties don't cover */
[dir="rtl"] .nav__list a::after { left: 100%; right: 0; transition: left 0.4s var(--ease-out); }
[dir="rtl"] .nav__list a:hover::after, [dir="rtl"] .nav__list a.is-active::after { left: 0; }
[dir="rtl"] .reel-counter { left: auto; right: var(--gutter); }
[dir="rtl"] .reel-counter__label::before { content: "◂ "; }
[dir="rtl"] .field select { background-position: 12px 55%, 7px 55%; }
[dir="rtl"] .slate__count--link:hover .arrow { transform: translateX(-6px); }
[dir="rtl"] .more-tile::before { transform-origin: right; }
[dir="rtl"] .more-tile__arrow svg { transform: scaleX(-1); }
[dir="rtl"] .more-tile:hover .more-tile__arrow { transform: translateX(-10px); }
[dir="rtl"] .next-reel:hover .display { transform: translateX(-16px); }
[dir="rtl"] .leader__skip { right: auto; left: 26px; }
[dir="rtl"] .hero__scope::before { animation-direction: reverse; }

/* ==========================================================================
   v1.3 — one colour per section, editorial title face
   ========================================================================== */
:root { --f-title: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif; }
html[lang="ar"] { --f-title: "Aref Ruqaa", "Reem Kufi", "Traditional Arabic", serif; }

/* Each reel is tinted with its own colour; the title, number and links pick it up */
.reel {
  --sec: var(--tungsten);
  --sec-ink: var(--sec);
  --reel-bg: color-mix(in oklab, var(--sec) 9%, var(--ink));
  padding-block: clamp(80px, 10vw, 140px);
}
.reel::before { /* soft colour wash from the top corner */
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  inset: 0 calc(50% - 50vw) auto; height: min(70%, 640px);
  background: radial-gradient(60% 100% at 12% 0%, color-mix(in oklab, var(--sec) 22%, transparent), transparent 70%);
}
[dir="rtl"] .reel::before { background: radial-gradient(60% 100% at 88% 0%, color-mix(in oklab, var(--sec) 22%, transparent), transparent 70%); }
.reel { isolation: isolate; }
:root[data-mode="light"] .reel, :root[data-mode="light"] .sec-scope, :root[data-mode="light"] .shot, :root[data-mode="light"] .nav__sec, :root[data-mode="light"] .about__stats li {
  --sec-ink: color-mix(in oklab, var(--sec) 72%, #000);
}
:root[data-mode="light"] .reel { --reel-bg: color-mix(in oklab, var(--sec) 10%, var(--ink)); }

.slate { border-bottom-color: color-mix(in oklab, var(--sec) 45%, transparent); }
.slate__big { color: var(--sec-ink); }
.slate__no, .slate__count--link .arrow { color: var(--sec-ink); }
.slate__clap { border-color: var(--sec-ink); }
.slate__clap i { border-color: var(--sec-ink); background: repeating-linear-gradient(-55deg, var(--sec-ink) 0 6px, transparent 6px 12px); }
.slate__count--link:hover { border-color: var(--sec-ink); }

/* The new section title face: high-contrast italic serif (Ruqaa in Arabic) */
.sec-title {
  margin: 0; font-family: var(--f-title); font-style: italic; font-weight: 700; text-transform: none;
  letter-spacing: -0.02em; line-height: 0.95; color: var(--sec-ink); text-wrap: balance; overflow-wrap: break-word;
}
.slate__head .slate__title.sec-title { font-size: calc(clamp(3rem, 8.4vw, 8.4rem) * var(--s-title, 1)); margin-top: 4px; }
html[lang="ar"] .sec-title { font-style: normal; line-height: 1.3; letter-spacing: normal; }
html[lang="ar"] .slate__head .slate__title.sec-title { font-size: calc(clamp(3rem, 7.6vw, 7.4rem) * var(--s-title, 1)); }
@media (max-width: 700px) { .slate__head .slate__title.sec-title { font-size: calc(clamp(2.8rem, 14vw, 4.4rem) * var(--s-title, 1)); } }

/* Cards and the "more" tile take the section colour */
.reel .card:hover .card__title, .sec-scope .card:hover .card__title { color: var(--sec-ink); }
.reel .card:hover .card__frame { box-shadow: 0 40px 80px -30px var(--shadow), 0 0 0 1px var(--sec); }
.reel .more-tile { border-color: color-mix(in oklab, var(--sec) 40%, transparent); background: color-mix(in oklab, var(--sec) 6%, var(--ink-2)); }
.reel .more-tile__count { color: var(--sec-ink); }
.reel .more-tile__arrow { color: var(--sec-ink); }
.reel .more-tile::before { background: var(--sec); }
.reel .more-tile:hover { border-color: var(--sec); color: #0a0a0b; }
.reel .more-tile:hover .more-tile__count, .reel .more-tile:hover .more-tile__arrow { color: #0a0a0b; }

/* Menu: a colour dot ties each link to its section */
.nav__sec { display: inline-flex !important; align-items: center; gap: 8px; }
.nav__sec::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sec-ink, var(--sec)); flex: none; }
.nav__list a.nav__sec::after { background: var(--sec); }
@media (max-width: 860px) { .nav__sec::before { width: 12px; height: 12px; } }

/* About: counts in each section's colour */
.about__stats li { --sec-ink: var(--sec); }
.about__stats li strong { color: var(--sec-ink, var(--paper)); }
.about__stats li a:hover strong { color: var(--paper); }

/* Section landing page and project page */
.sec-scope, .shot { --sec-ink: var(--sec); }
.section-hero__title.sec-title { font-size: calc(clamp(3.4rem, 12vw, 11rem) * var(--s-title, 1)); line-height: 0.95; }
html[lang="ar"] .section-hero__title.sec-title { line-height: 1.3; }
.sec-scope .section-hero__light {
  background: radial-gradient(40% 50% at 18% 30%, color-mix(in oklab, var(--sec) 45%, transparent), transparent 62%),
              radial-gradient(30% 40% at 82% 72%, color-mix(in oklab, var(--sec) 25%, transparent), transparent 62%);
}
.sec-scope .section-hero__no, .sec-scope .filter__chip.is-active { color: var(--sec-ink); }
.sec-scope .filter__chip.is-active { background: transparent; border-color: var(--sec); }
.sec-scope .section-stats dd { color: var(--sec-ink); }
.shot .shot__back, .shot .eyebrow { color: var(--sec-ink); }
.shot .slate-card { border-top: 3px solid var(--sec); }

/* ==========================================================================
   v1.5 — switches set from Customize → Effects
   ========================================================================== */
body.zk-no-grain::after { display: none; }
body.zk-no-cursor .cursor { display: none; }
body.zk-no-3d .hero__stage { display: none; }
