/* ============================================================================
   Sara Naeem, site styles. One file for both pages, both languages.
   Layout uses logical properties (inline-start / inline-end) so Arabic (RTL)
   and English (LTR) mirror automatically.
   ============================================================================ */

:root {
  --ink: #141414;
  --ink-2: #1c1d1b;
  --ink-3: #272825;
  --black: #0b0b0b;
  --paper: #f2eee6;
  --paper-2: #e6e0d4;
  --accent: #e4c44a;
  --accent-2: #f0d468;
  --red: #b4462e;

  --on-dark: #f6f1e6;
  --on-dark-2: rgba(246, 241, 230, .66);
  --on-dark-3: rgba(246, 241, 230, .34);
  --on-light: #141414;
  --on-light-2: rgba(20, 20, 20, .64);
  --on-light-3: rgba(20, 20, 20, .2);
  --line-dark: rgba(246, 241, 230, .14);
  --line-light: rgba(20, 20, 20, .14);

  --gutter: clamp(16px, 3.2vw, 48px);
  --hdr: clamp(64px, 6.4vw, 88px);
  --radius: clamp(12px, 1.4vw, 22px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.75, 0, .2, 1);

  /* Primary: Helvetica Neue (bold) for Latin, Alyamama bold for Arabic.
     Secondary: Ubuntu for Latin, Alyamama medium for Arabic.
     Helvetica Neue is licensed to Adobe/Apple, so it is used from the visitor's
     device (every Mac and iPhone has it); others fall back to Helvetica/Arial. */
  --f-latin: "Playfair Head", "Amiri Head", Georgia, "Alyamama", serif;
  --f-ui: "Helvetica Neue", "HelveticaNeue", Helvetica, Arial, sans-serif;
  --f-body: "Ubuntu", "Alyamama", system-ui, sans-serif;
  --f-mono: "Ubuntu", "Alyamama", sans-serif;
  --f-display: var(--f-latin);
}

/* English headings: Playfair Display Bold. */
@font-face { font-family: "Playfair Head"; src: url("fonts/Playfair-Bold-latin.woff2") format("woff2"); font-weight: 400 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Arabic headings: Amiri Bold, an elegant Naskh (only Arabic letters, Latin stays Helvetica). */
@font-face { font-family: "Amiri Head"; src: url("fonts/Amiri-Bold-arabic.woff2") format("woff2"); font-weight: 400 900; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E; }
@font-face { font-family: "Alyamama"; src: url("fonts/Alyamama-VariableFont_wght.ttf") format("truetype"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Ubuntu"; src: url("fonts/Ubuntu-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Ubuntu"; src: url("fonts/Ubuntu-Medium.ttf") format("truetype"); font-weight: 500 600; font-display: swap; }
@font-face { font-family: "Ubuntu"; src: url("fonts/Ubuntu-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

html[lang="ar"] {
  --display-lh: 1.5;
  --body-lh: 1.9;
  --body-w: 500;
}

html[lang="en"] {
  --display-lh: 1;
  --body-lh: 1.6;
  --body-w: 400;
}

/* Arabic: Amiri for headings only; buttons, header links and small labels stay in Alyamama for legibility. */
html[lang="ar"] :is(.hdr__menu, .hdr__cta, .btn, .pill, .reel-btn, .cover__role, .player__ctrl, .pm__close, .filter) {
  font-family: "Alyamama", sans-serif; font-weight: 700;
}
html[lang="en"] :is(.hdr__menu, .hdr__cta, .btn, .pill, .reel-btn, .cover__role, .player__ctrl, .pm__close, .filter, .card__go, .menu__nav a) {
  font-family: var(--f-ui); font-weight: 700;
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--on-dark);
  font-family: var(--f-body);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: var(--body-lh);
  font-weight: var(--body-w, 400);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

html.lang-pending body { visibility: hidden; animation: show-anyway 0s 1.5s forwards; }
@keyframes show-anyway { to { visibility: visible; } }

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }

::selection { background: var(--accent); color: var(--ink); }
html[dir="rtl"] .flip { transform: scaleX(-1); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: fixed; inset-inline-start: 12px; top: -80px; z-index: 300;
  background: var(--accent); color: var(--ink); padding: 10px 18px; border-radius: 999px; font-weight: 600;
}
.skip:focus { top: 12px; }

.sr {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.wrap { width: 100%; max-width: 1600px; margin-inline: auto; padding-inline: var(--gutter); }

.display {
  font-family: var(--f-display);
  font-weight: 700;
  
  line-height: var(--display-lh);
}
html[lang="en"] .display { text-transform: uppercase; }

.latin {
  font-family: var(--f-latin);
  font-weight: 700;
  text-transform: uppercase;
  line-height: .86;
  letter-spacing: -.02em;
  word-spacing: .22em;
}

.mono-label {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 12px;
}
html[lang="ar"] .mono-label { letter-spacing: 0; font-family: var(--f-body); font-size: 14px; font-weight: 600; }

/* Her drafting rule: a thin line with a tick at each end, drawn on reveal. */
.rule {
  display: inline-block; flex: none; width: 56px; height: 9px; position: relative;
  background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat;
  color: var(--accent);
  transform-origin: inline-start;
}
.rule::before, .rule::after { content: ""; position: absolute; top: 0; width: 1px; height: 9px; background: currentColor; }
.rule::before { inset-inline-start: 0; }
.rule::after { inset-inline-end: 0; }

/* ---------- rolling label (hover swaps to a copy rising from below) ---------- */

.roll { display: inline-block; position: relative; overflow: hidden; vertical-align: top; }
.roll > span { display: block; position: relative; transition: transform .6s var(--ease); }
.roll > span::after {
  content: attr(data-text); position: absolute; inset-inline-start: 0; top: 100%; white-space: nowrap;
}
a:hover .roll > span, button:hover .roll > span { transform: translateY(-100%); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: .5em;
  background: var(--accent); color: var(--ink);
  font-family: var(--f-display);  font-weight: 700;
  font-size: clamp(19px, 1.6vw, 27px);
  line-height: 1.25;
  padding: .32em .7em .38em;
  border-radius: 6px;
  transition: background-color .3s, color .3s, transform .3s var(--ease);
}
html[lang="en"] .btn { line-height: 1.05; padding: .38em .7em .36em; text-transform: uppercase; letter-spacing: .01em; }
.btn:hover { background: var(--accent-2); }
.btn:active { transform: scale(.97); }
.btn--xl { font-size: clamp(30px, 3.6vw, 56px); padding: .45em 1.1em .5em; border-radius: 10px; }
html[lang="en"] .btn--xl { padding: .5em 1.1em .45em; }
.btn--ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--ghost:hover { background: var(--on-dark); color: var(--ink); }
[data-theme="light"] .btn--ghost:hover { background: var(--ink); color: var(--paper); }

/* ---------- intro curtain ---------- */

.curtain {
  position: fixed; inset: 0; z-index: 200; background: var(--ink);
  display: grid; place-items: center;
  transition: clip-path 1s var(--ease-io);
  clip-path: inset(0 0 0 0);
}
.curtain__in { display: grid; justify-items: center; gap: 18px; }
.curtain__name { font-family: var(--f-latin); font-weight: 700; font-size: clamp(34px, 5.6vw, 92px); line-height: .8; letter-spacing: .01em; color: var(--on-dark); }
.curtain__line { width: min(60vw, 520px); height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; animation: draw 1.1s var(--ease) .15s forwards; }
@keyframes draw { to { transform: scaleX(1); } }
.curtain.is-done { clip-path: inset(0 0 100% 0); pointer-events: none; }
html:not(.js) .curtain, .curtain.is-gone { display: none; }

/* Arabic name in the Latin display slots */
html[lang="ar"] .latin { letter-spacing: 0; line-height: 1.5; }
html[lang="ar"] .cover__name { direction: rtl; }
html[lang="ar"] .about__hero { direction: rtl; text-align: right; }
html[lang="ar"] .about__portrait { right: auto; left: 0; }
html[lang="ar"] .about__giant { line-height: 1.15; }

/* ---------- header ---------- */

.hdr {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: calc(var(--hdr) - 16px);
  display: flex; justify-content: flex-end; align-items: center;
  padding-inline: var(--gutter);
  color: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
}
.hdr > * { pointer-events: auto; }
.hdr__menu, .hdr__cta {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(15px, 1.15vw, 18px); line-height: 1.4;
}
html[lang="en"] .hdr__menu, html[lang="en"] .hdr__cta { line-height: 1.05; letter-spacing: 0; }
.hdr__end { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.hdr__cta[aria-current="page"] { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 2px; }

/* Frosted glass behind the header: blurs what scrolls under it and fades out at the bottom edge. */
.hdr-bg {
  position: fixed; inset: 0 0 auto; z-index: 49; height: calc(var(--hdr) + 44px); pointer-events: none;
  background: rgba(20, 20, 20, .42);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 30%, rgba(0,0,0,.75) 48%, rgba(0,0,0,.4) 68%, rgba(0,0,0,.12) 86%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 30%, rgba(0,0,0,.75) 48%, rgba(0,0,0,.4) 68%, rgba(0,0,0,.12) 86%, transparent 100%);
  transition: background-color .5s var(--ease);
}
.hdr-bg.is-light { background: rgba(242, 238, 230, .5); }

/* The name: big in the hero, it travels up and docks small in the header. */
.flyname {
  position: fixed; z-index: 51; top: calc((var(--hdr) - 16px - 1em) / 2); left: var(--gutter);
  font-size: clamp(18px, 1.6vw, 26px); line-height: 1; white-space: nowrap;
  color: #fff; transform-origin: 0 0;
}
.flyname { display: inline-flex; align-items: center; transition: color .45s var(--ease); }
.flyname.is-light { color: var(--on-light); }
.flyname__mark { width: 0; height: 1.25em; object-fit: contain; opacity: 0; margin-inline-end: 0;
  transition: width .5s var(--ease), opacity .5s var(--ease), margin .5s var(--ease); }
.flyname.is-docked .flyname__mark { width: 1em; opacity: 1; margin-inline-end: .45em; }
html[dir="rtl"] .flyname { left: auto; right: var(--gutter); }
/* On the home page the name is drawn at hero size and only ever scaled DOWN to dock,
   so the letters stay sharp in every browser. Position comes from JS. */
html.js .flyname.is-flying { top: 0; left: 0; right: auto; font-size: clamp(52px, 11vw, 210px); }
html.js .flyname.is-flying { opacity: 0; transition: opacity 1s var(--ease), color .45s var(--ease); }
html.js .flyname.is-flying.is-ready { opacity: 1; }

.lang {
  font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .08em;
  min-width: 42px; height: 30px; padding-inline: 10px; border-radius: 999px;
  box-shadow: inset 0 0 0 1px currentColor; line-height: 30px; text-align: center;
  transition: background-color .3s, color .3s;
}
.lang:hover { background: var(--accent); color: var(--ink); box-shadow: none; }
.lang[data-to="ar"] { font-family: "Alyamama", sans-serif; font-size: 15px; letter-spacing: 0; }

@media (max-width: 600px) {
  .hdr__cta[href$="#contact"] { display: none; }
  .hdr__about { display: none; }
}
@media (max-width: 720px) {
  .hdr__end { gap: 14px; }
  .hdr__menu, .hdr__cta { font-size: 15px; }
  .flyname { font-size: 16px; }
}

/* ---------- menu: side drawer ---------- */

.menu { position: fixed; inset: 0; z-index: 70; visibility: hidden; transition: visibility 0s .6s; }
.menu.is-open { visibility: visible; transition: none; }
.menu__scrim { position: absolute; inset: 0; background: rgba(8, 8, 8, .45); opacity: 0; transition: opacity .5s var(--ease); cursor: pointer; }
.menu.is-open .menu__scrim { opacity: 1; }
.menu__panel {
  position: absolute; inset-block: 0; inset-inline-end: 0; width: min(360px, 82vw);
  display: flex; flex-direction: column; gap: clamp(24px, 4vh, 40px);
  padding: clamp(28px, 5vh, 48px) clamp(24px, 3vw, 44px) calc(28px + env(safe-area-inset-bottom));
  overflow-y: auto; color: var(--on-dark);
  background: rgba(20, 20, 20, .62);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  box-shadow: 0 0 80px rgba(0, 0, 0, .35);
  border-inline-start: 1px solid var(--line-dark);
  transform: translateX(105%); transition: transform .6s var(--ease-io);
}
html[dir="rtl"] .menu__panel { transform: translateX(-105%); }
.menu.is-open .menu__panel { transform: none; }

.menu__brand { display: flex; align-items: center; gap: 12px; font-family: var(--f-latin); font-weight: 700; font-size: clamp(24px, 2.2vw, 32px); line-height: 1; letter-spacing: -.02em; }
html[lang="ar"] .menu__brand { letter-spacing: 0; }
.menu__brand img { width: 1.1em; height: auto; }

.menu__close { display: flex; align-items: center; gap: 0; width: 100%; color: var(--on-dark); }
.menu__close i { flex: 1; height: 1px; background: var(--line-dark); transition: background-color .3s; }
.menu__x { position: relative; width: 34px; height: 34px; flex: none; }
.menu__x::before, .menu__x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 30px; height: 2px; background: currentColor; transition: transform .4s var(--ease); }
.menu__x::before { transform: translate(-50%, -50%) rotate(45deg); }
.menu__x::after { transform: translate(-50%, -50%) rotate(-45deg); }
.menu__close:hover { color: var(--accent); }
.menu__close:hover .menu__x::before { transform: translate(-50%, -50%) rotate(135deg); }
.menu__close:hover .menu__x::after { transform: translate(-50%, -50%) rotate(45deg); }

.menu__nav ol { display: grid; gap: 6px; }
.menu__nav a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-weight: 600; font-size: clamp(19px, 1.6vw, 23px); line-height: 1.5; padding-block: 8px;
  color: var(--on-dark); transition: color .3s, transform .4s var(--ease);
  opacity: 0; transform: translateY(10px);
}
html[lang="en"] .menu__nav a { letter-spacing: -.01em; }
.menu__nav a:hover { color: var(--accent); }
.menu__arrow { width: 18px; height: 18px; opacity: .45; transition: opacity .3s, transform .3s var(--ease); }
.menu__nav a:hover .menu__arrow { opacity: 1; transform: translateX(4px); }
html[dir="rtl"] .menu__nav a:hover .menu__arrow { transform: scaleX(-1) translateX(4px); }
.menu.is-open .menu__nav a { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .6s var(--ease), color .3s; }
.menu.is-open .menu__nav li:nth-child(1) a { transition-delay: .18s; }
.menu.is-open .menu__nav li:nth-child(2) a { transition-delay: .22s; }
.menu.is-open .menu__nav li:nth-child(3) a { transition-delay: .26s; }
.menu.is-open .menu__nav li:nth-child(4) a { transition-delay: .30s; }
.menu.is-open .menu__nav li:nth-child(5) a { transition-delay: .34s; }
.menu.is-open .menu__nav li:nth-child(6) a { transition-delay: .38s; }

.menu__foot { margin-top: auto; display: grid; gap: 14px; justify-items: start; font-size: 15px; font-weight: 600; }
.menu__foot > a { transition: color .3s; }
.menu__foot > a:hover { color: var(--accent); }
.menu__social { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.menu__social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-dark); transition: background-color .3s, color .3s, box-shadow .3s; }
.menu__social a:hover { background: var(--accent); color: var(--ink); box-shadow: none; }
.menu__social svg { width: 18px; height: 18px; }
.menu__social .lang { margin-inline-start: 6px; }

/* ---------- hero (cover) ---------- */

.cover { position: relative; height: 100svh; height: 100lvh; min-height: 560px; background: var(--black); overflow: hidden; }
.cover__media { position: absolute; inset: 0; transform-origin: 50% 100%; will-change: transform; }
.cover__poster, .cover__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover__video { opacity: 0; transition: opacity 1s var(--ease); }
.cover__video.is-playing { opacity: 1; }
.cover__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.1) 26%, rgba(0,0,0,.18) 58%, rgba(0,0,0,.78) 100%),
    radial-gradient(ellipse at 50% 50%, rgba(0,0,0,.28), transparent 70%);
}
.cover__brand {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center;
  text-align: center; padding: var(--hdr) var(--gutter) 0; gap: clamp(14px, 2vh, 26px);
}
.cover__name { display: flex; gap: .26em; line-height: 1; font-size: clamp(52px, 11vw, 210px); color: var(--on-dark); direction: ltr; }
.cover__word { display: block; }
.cover__role {
  font-family: var(--f-display);  font-weight: 700;
  font-size: clamp(18px, 2vw, 32px); line-height: 1.3; color: var(--on-dark);
}
html[lang="en"] .cover__role { text-transform: uppercase; letter-spacing: .02em; }

.reel-btn {
  display: inline-flex; align-items: center; gap: 14px; margin-top: clamp(4px, 1vh, 12px);
  font-family: var(--f-display);  font-weight: 700;
  font-size: clamp(18px, 1.5vw, 24px); line-height: 1.3; color: var(--on-dark);
}
html[lang="en"] .reel-btn { text-transform: uppercase; line-height: 1.05; }
.reel-btn__icon {
  width: clamp(54px, 4.6vw, 70px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; color: var(--ink); background: var(--accent);
  transition: transform .5s var(--ease), background-color .3s;
}
.reel-btn__icon svg { width: 46%; height: 46%; }
.reel-btn:hover .reel-btn__icon { transform: scale(1.08) rotate(90deg); background: var(--accent-2); }
.reel-btn__time { font-family: var(--f-mono); font-size: 12px; font-weight: 500; color: var(--on-dark-2); letter-spacing: .08em; }

.cover__foot {
  position: absolute; inset-inline: var(--gutter); bottom: calc(18px + env(safe-area-inset-bottom));
  display: flex; justify-content: space-between; align-items: end;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; color: var(--on-dark-2);
}
html[lang="ar"] .cover__foot { font-family: var(--f-body); font-size: 13px; letter-spacing: 0; }
.cover__scroll { display: inline-flex; align-items: center; gap: 10px; }
.cover__scroll::after {
  content: ""; width: 1px; height: 34px; background: var(--accent);
  transform-origin: top; animation: drip 2.2s var(--ease) 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; } }

/* hero entrance */
html.js .cover__word { visibility: hidden; }
html.js .cover__role, html.js .reel-btn { opacity: 0; transform: translateY(30px); }
html.js .is-ready .cover__role, html.js .is-ready .reel-btn {
  opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1.2s var(--ease);
}
html.js .is-ready .cover__word:nth-child(3) { transition-delay: .08s; }
html.js .is-ready .cover__role { transition-delay: .22s; }
html.js .is-ready .reel-btn { transition-delay: .34s; }

/* ---------- manifesto ---------- */

.manifesto { position: relative; background: var(--paper); color: var(--on-light); }
.manifesto__pin {
  min-height: 100svh; display: grid; align-content: center; justify-items: center;
  text-align: center; gap: clamp(18px, 3vh, 40px);
  padding: calc(var(--hdr) + 2vh) var(--gutter) 4vh;
}
.manifesto__lines { display: grid; justify-items: center; }
/* The five lines + text + button must fit one screen (minus the header) on any device:
   size is the smaller of a width-based and a height-based value. */
.ml { display: block; text-wrap: balance; white-space: nowrap; }
html[lang="ar"] .ml { line-height: 1.55; font-size: clamp(24px, min(11vw, calc((100svh - var(--hdr) - 230px) / 7.9)), 110px); }
html[lang="en"] .ml { line-height: 1; font-size: clamp(22px, min(5.4vw, calc((100svh - var(--hdr) - 230px) / 5.3)), 100px); }
.manifesto__foot { display: grid; justify-items: center; gap: 22px; max-width: 560px; }
.manifesto__foot p { color: var(--on-light-2); font-size: clamp(15px, 1.15vw, 18px); }

@media (min-width: 768px) {
  html.js .manifesto.is-pinned { height: 180svh; }
  html.js .manifesto.is-pinned .manifesto__pin { position: sticky; top: 0; height: 100svh; min-height: 0; }
}
html.js .ml, html.js .manifesto__foot { opacity: 0; transform: translateY(.4em); transition: opacity .8s var(--ease), transform 1s var(--ease); }
html.js .manifesto__foot { transform: translateY(24px); }
html.js .ml.is-on, html.js .manifesto__foot.is-on { opacity: 1; transform: none; }

/* ---------- about ---------- */

.about {
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse 55% 60% at 22% 40%, rgba(228,196,74,.10), transparent 70%), var(--ink);
  padding-block: calc(var(--hdr) + 6vh) clamp(80px, 11vw, 160px);
}
.about--page { min-height: 100svh; display: grid; align-items: center; }
.about--stats { padding-block: 0 clamp(56px, 8vw, 110px); background: radial-gradient(ellipse 50% 42% at 50% 42%, rgba(228,196,74,.07), transparent 100%), var(--ink); }
.about--stats .stats--band { margin-top: 0; }
.about__grid {
  display: grid; grid-template-columns: minmax(0, .62fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 110px); align-items: center;
}
.about__photo { margin: 0; width: 100%; max-width: 440px; justify-self: center; }
.about__frame {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden;
  background: #3a2418; box-shadow: 0 40px 90px rgba(0,0,0,.45);
}
.about__img { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; object-position: 50% 20%; will-change: transform; }
.about__cap {
  display: flex; justify-content: space-between; gap: 16px; margin-top: 16px;
  font-size: 13px; color: var(--on-dark-2);
}
.about__cap span:last-child { display: inline-flex; align-items: center; gap: 8px; color: var(--on-dark); }
.about__cap span:last-child::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #5fd38a; box-shadow: 0 0 0 4px rgba(95,211,138,.18); }

.about__text { display: grid; gap: clamp(16px, 2vw, 24px); justify-items: start; }
.about__name { font-size: clamp(38px, 4.4vw, 76px); color: var(--on-dark); white-space: nowrap; }
html[lang="ar"] .about__name { line-height: 1.35; }
.about__role { color: var(--accent); font-weight: 600; font-size: clamp(15px, 1.2vw, 19px); }
.about__lead { font-size: clamp(19px, 1.65vw, 27px); line-height: 1.55; color: var(--on-dark); max-width: 30ch; }
html[lang="ar"] .about__lead { line-height: 1.8; }
.about__body { color: var(--on-dark-2); max-width: 56ch; }
.about__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line-dark); }
.stat { padding: 22px 0; border-bottom: 1px solid var(--line-dark); display: grid; gap: 6px; }
.stat:nth-child(odd) { padding-inline-end: 22px; border-inline-end: 1px solid var(--line-dark); }
.stat:nth-child(even) { padding-inline-start: 22px; }
.stat__n { font-family: var(--f-latin); font-weight: 700; font-size: clamp(40px, 4.2vw, 72px); line-height: .9; color: var(--accent); direction: ltr; text-align: start; }
.stat__t { color: var(--on-dark-2); font-size: 14px; line-height: 1.6; max-width: 28ch; }

.stats--band {
  grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(56px, 7vw, 110px);
  border-bottom: 1px solid var(--line-dark);
}
.stats--band .stat:nth-child(n) { padding: clamp(24px, 2.6vw, 40px) clamp(18px, 2vw, 32px); border-bottom: 0; border-inline-end: 1px solid var(--line-dark); }
.stats--band .stat:first-child { padding-inline-start: 0; }
.stats--band .stat:last-child { border-inline-end: 0; padding-inline-end: 0; }
@media (max-width: 900px) {
  .stats--band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats--band .stat:nth-child(n) { padding-inline: 0 18px; }
  .stats--band .stat:nth-child(even) { border-inline-end: 0; padding-inline: 18px 0; }
  .stats--band .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line-dark); }
}
@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__photo { position: relative; top: auto; max-width: 460px; width: 100%; margin-inline: auto; }
}

/* ---------- works (stacked cards) ---------- */

.works { background: var(--ink); padding-block: clamp(90px, 12vw, 180px) clamp(70px, 9vw, 130px); }
.works__head { padding-inline: var(--gutter); margin-bottom: clamp(44px, 7vw, 110px); display: grid; justify-items: center; }
.works__title { display: flex; align-items: center; gap: .18em; color: var(--on-dark); }
.works__big { font-size: clamp(76px, 13vw, 230px); line-height: 1; }
html[lang="en"] .works__big { line-height: .82; }
.works__side { font-size: clamp(26px, 3.6vw, 62px); line-height: 1.05; color: var(--on-dark-2); }
html[lang="en"] .works__side { line-height: .92; }

.stack { display: grid; gap: clamp(28px, 6vh, 64px); padding-inline: var(--gutter); }
.card {
  position: sticky; top: calc(var(--hdr) + 1.2vh);
  height: calc(100svh - var(--hdr) - 4vh); min-height: 380px;
  border-radius: var(--radius); overflow: hidden; background: var(--ink-2);
  transform-origin: 50% 0; isolation: isolate;
  transform: scale(var(--s, 1));
}
.card__link { position: absolute; inset: 0; z-index: 3; display: block; border-radius: inherit; }
.card__media { position: absolute; inset: 0; }
.card__media img, .card__media video { width: 100%; height: 100%; object-fit: cover; }
.card__media video { position: absolute; inset: 0; opacity: 0; transition: opacity .8s; }
.card__media video.is-playing { opacity: 1; }
.card__kb { animation: kb 18s ease-in-out infinite alternate; }
@keyframes kb { from { transform: scale(1.02); } to { transform: scale(1.12) translate(-1.5%, -1%); } }
.card__shade {
  position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(ellipse at 50% 55%, rgba(0,0,0,.18), rgba(0,0,0,.6)), linear-gradient(transparent 60%, rgba(0,0,0,.5));
  opacity: calc(.85 + var(--d, 0) * .15);
}
.card__dim { position: absolute; inset: 0; z-index: 2; background: #000; opacity: calc(var(--d, 0) * .55); pointer-events: none; }
.card__meta {
  position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center;
  text-align: center; gap: 16px; padding: var(--gutter); pointer-events: none;
}
.pill {
  display: inline-block; background: var(--on-dark); color: var(--ink);
  font-family: var(--f-display);  font-weight: 700;
  font-size: clamp(14px, 1.15vw, 18px); line-height: 1.5; padding: .05em .65em; border-radius: 6px;
}
html[lang="en"] .pill { text-transform: uppercase; line-height: 1.2; padding: .2em .6em .15em; letter-spacing: .02em; }
.card__title { font-size: clamp(40px, 6.2vw, 112px); color: var(--on-dark); text-wrap: balance; max-width: 16ch; }
.card__role { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-2); }
html[lang="ar"] .card__role { font-family: var(--f-body); font-size: 14px; letter-spacing: 0; }
.card__go {
  position: absolute; z-index: 2; inset-block-end: clamp(16px, 2.4vw, 32px); inset-inline-end: clamp(16px, 2.4vw, 32px);
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark);
  display: inline-flex; align-items: center; gap: 10px; pointer-events: none;
}
html[lang="ar"] .card__go { font-family: var(--f-body); font-size: 14px; letter-spacing: 0; }
.card__go i { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--ink); display: grid; place-items: center; font-style: normal; transition: transform .5s var(--ease); }
.card:hover .card__go i { transform: scale(1.12); }
.card__idx {
  position: absolute; z-index: 2; inset-block-start: clamp(16px, 2.4vw, 32px); inset-inline-start: clamp(16px, 2.4vw, 32px);
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; color: var(--on-dark-2); pointer-events: none;
}
.works__more { display: grid; justify-items: center; margin-top: clamp(48px, 8vw, 100px); }

/* ---------- clients ---------- */

.clients { position: relative; background: var(--ink); padding-block: clamp(80px, 10vw, 150px); overflow: hidden; }
.clients__rows { display: grid; gap: 14px; }
.marquee {
  direction: ltr; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track { display: flex; gap: 14px; padding-right: 14px; width: max-content; animation: marquee 70s linear infinite; will-change: transform; backface-visibility: hidden; }
.marquee--rev .marquee__track { animation-direction: reverse; animation-duration: 80s; }
@keyframes marquee { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
.logo-tile {
  flex: none; width: clamp(140px, 14vw, 220px); aspect-ratio: 1;
  display: grid; place-items: center; border-radius: 10px;
  background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-dark);
}
.logo-tile img { width: 72%; height: auto; opacity: .82; }
.clients__title { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; padding: var(--gutter); }
.clients__box {
  text-align: center; padding: clamp(28px, 4vw, 60px) clamp(36px, 7vw, 120px);
  background: radial-gradient(closest-side, var(--ink) 62%, rgba(20,20,20,0));
}
.clients__box h2 { font-size: clamp(54px, 7.4vw, 128px); color: var(--on-dark); }
.clients__box p { margin-top: 12px; color: var(--on-dark-2); max-width: 34ch; margin-inline: auto; font-size: 15px; }

@media (max-width: 720px) {
  .clients__title { position: static; padding-bottom: 28px; }
  .clients { display: flex; flex-direction: column-reverse; }
  .clients__box { padding: 0 var(--gutter); background: none; }
}

/* ---------- process (pinned stages) ---------- */

.process { position: relative; background: var(--paper); color: var(--on-light); }
.process__pin {
  min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 6vw, 100px); align-items: center;
  padding: calc(var(--hdr) + 4vh) var(--gutter) 6vh;
  max-width: 1600px; margin-inline: auto;
}
.process__kicker { font-size: clamp(22px, 2.3vw, 38px); margin-bottom: clamp(18px, 3vh, 34px); }
.phases li { position: relative; }
.phase-btn {
  display: flex; align-items: baseline; gap: clamp(10px, 1.4vw, 20px); width: 100%; text-align: start;
  font-family: var(--f-display);  font-weight: 700;
  font-size: clamp(40px, 5.6vw, 100px); line-height: 1.12; color: var(--on-light-3);
  transition: color .6s var(--ease);
}
html[lang="en"] .phase-btn { line-height: .9; text-transform: uppercase; }
html[lang="ar"] .phase-btn { font-size: clamp(34px, 4.3vw, 76px); line-height: 1.65; }
.phase-btn small { font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .1em; color: var(--on-light-2); }
.phase-btn:hover { color: rgba(20,20,20,.5); }
.phase-btn[aria-selected="true"] { color: var(--on-light); }
.process__media { display: grid; gap: 22px; align-content: center; }
.phase-frame { position: relative; aspect-ratio: 16 / 10.5; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.phase-frame > img, .phase-frame > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .8s var(--ease), transform 1.4s var(--ease); }
.phase-frame > .is-on { opacity: 1; transform: none; }
.phase-desc { position: relative; min-height: 7.5em; }
.phase-desc p { position: absolute; inset: 0; color: var(--on-light-2); opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease), transform .8s var(--ease); max-width: 54ch; }
.phase-desc p.is-on { opacity: 1; transform: none; }
.process__btn { margin-top: 6px; justify-self: start; }

@media (min-width: 900px) {
  html.js .process.is-pinned .process__track { height: 300svh; }
  html.js .process.is-pinned .process__pin { position: sticky; top: 0; height: 100svh; min-height: 0; }
}
@media (max-width: 899px) {
  .process__pin { grid-template-columns: 1fr; }
}

.services { padding-block: clamp(30px, 5vw, 80px) clamp(80px, 10vw, 150px); }
.services > .mono-label { margin-bottom: 26px; color: var(--on-light); }
.svc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-light); }
.svc li { padding: 26px 0 30px; border-bottom: 1px solid var(--line-light); display: grid; gap: 8px; align-content: start; }
.svc li:not(:nth-child(3n)) { padding-inline-end: clamp(18px, 2.4vw, 40px); }
.svc li:not(:nth-child(3n + 1)) { padding-inline-start: clamp(18px, 2.4vw, 40px); border-inline-start: 1px solid var(--line-light); }
.svc__n { font-family: var(--f-mono); font-size: 12px; color: var(--on-light-2); letter-spacing: .1em; }
.svc__t { font-family: var(--f-display);  font-weight: 700; font-size: clamp(24px, 2.2vw, 36px); line-height: 1.25; }
html[lang="en"] .svc__t { text-transform: uppercase; line-height: 1; }
.svc__d { color: var(--on-light-2); font-size: 15px; }
.tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.tools li { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; padding: 7px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-light); }
@media (max-width: 900px) {
  .svc { grid-template-columns: 1fr 1fr; }
  .svc li:nth-child(n) { padding-inline: 0; border-inline-start: 0; }
  .svc li:nth-child(odd) { padding-inline-end: 18px; border-inline-end: 1px solid var(--line-light); }
  .svc li:nth-child(even) { padding-inline-start: 18px; }
}
@media (max-width: 560px) {
  .svc { grid-template-columns: 1fr; }
  .svc li:nth-child(n) { padding-inline: 0; border-inline: 0; }
}

/* ---------- career ---------- */

.career { background: var(--paper); color: var(--on-light); padding-block: clamp(40px, 6vw, 90px) clamp(90px, 12vw, 170px); border-top: 1px solid var(--line-light); }
.career__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; align-items: end; margin-bottom: clamp(36px, 5vw, 70px); }
.career__head h2 { font-size: clamp(52px, 8vw, 140px); }
.career__head p { color: var(--on-light-2); max-width: 46ch; justify-self: end; }
.job {
  display: grid; grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(16px, 3vw, 48px); padding-block: 30px; border-top: 1px solid var(--line-light);
  transition: background-color .4s;
}
.job:last-child { border-bottom: 1px solid var(--line-light); }
.job__years { font-family: var(--f-mono); font-size: 13px; letter-spacing: .06em; color: var(--on-light-2); padding-top: .5em; direction: ltr; text-align: start; }
html[lang="ar"] .job__years { direction: rtl; }
.job__role { font-family: var(--f-display);  font-weight: 700; font-size: clamp(26px, 2.6vw, 42px); line-height: 1.2; }
html[lang="en"] .job__role { text-transform: uppercase; line-height: .98; }
.job__org { display: block; margin-top: 8px; font-size: 14px; color: var(--on-light-2); }
.job__d { color: var(--on-light-2); }
.edu { margin-top: clamp(40px, 6vw, 80px); display: grid; grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(16px, 3vw, 48px); }
.edu__t { font-family: var(--f-display);  font-weight: 700; font-size: clamp(22px, 2vw, 32px); line-height: 1.25; }
html[lang="en"] .edu__t { text-transform: uppercase; line-height: 1; }
.edu p { color: var(--on-light-2); }
@media (max-width: 820px) {
  .career__head { grid-template-columns: 1fr; }
  .career__head p { justify-self: start; }
  .job, .edu { grid-template-columns: 1fr; gap: 8px; }
}

.career--page { border-top: 0; padding-top: calc(var(--hdr) + 8vh); min-height: 100svh; }

/* ---------- outro / contact ---------- */

.outro { background: var(--ink); padding-block: clamp(100px, 13vw, 200px) 0; overflow: hidden; }
.outro__stage {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 30vw) minmax(0, 1fr);
  align-items: center; gap: clamp(18px, 3vw, 50px); padding-inline: var(--gutter);
}
.outro__say { font-size: clamp(30px, 4.4vw, 88px); color: var(--on-dark); white-space: nowrap; }
.outro__say--end { text-align: end; }
.outro__media { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--ink-2); transform: scale(var(--s, .9)); }
.outro__media video, .outro__media img { width: 100%; height: 100%; object-fit: cover; }
.outro__cta { display: grid; justify-items: center; margin-top: clamp(30px, 5vw, 60px); }
@media (max-width: 760px) {
  .outro__stage { grid-template-columns: 1fr 1fr; }
  .outro__media { grid-column: 1 / -1; grid-row: 2; aspect-ratio: 16 / 11; }
  .outro__say { grid-row: 1; font-size: clamp(30px, 9vw, 56px); }
  .outro__say--end { grid-row: 3; grid-column: 1 / -1; }
}

.contact {
  scroll-margin-top: var(--hdr);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 110px);
  margin-top: clamp(80px, 11vw, 160px); padding-block: clamp(40px, 5vw, 70px);
  border-top: 1px solid var(--line-dark);
}
.contact__direct { display: grid; gap: 18px; align-content: start; justify-items: start; }
.contact__direct .mono-label { color: var(--on-dark-2); }
.contact__email {
  font-family: var(--f-latin); font-weight: 700; text-transform: lowercase; direction: ltr;
  font-size: clamp(22px, 2.6vw, 46px); line-height: 1; color: var(--on-dark);
  overflow-wrap: anywhere; transition: color .3s;
}
.contact__email:hover { color: var(--accent); }
.contact__row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding-inline: 16px; border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-dark); font-size: 14px; color: var(--on-dark);
  transition: background-color .3s, color .3s, box-shadow .3s;
}
.chip:hover { background: var(--on-dark); color: var(--ink); box-shadow: none; }
.chip--accent { background: var(--accent); color: var(--ink); box-shadow: none; }
.chip--accent:hover { background: var(--accent-2); }
.chip svg { width: 16px; height: 16px; }
.contact__meta { color: var(--on-dark-2); font-size: 14px; display: grid; gap: 4px; }
.contact__meta a { direction: ltr; unicode-bidi: isolate; }
.contact__meta a:hover { color: var(--accent); }

.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; }
.field span { font-size: 13px; color: var(--on-dark-2); }
.field input, .field select, .field textarea {
  width: 100%; background: var(--ink-2); border: 0; border-radius: 10px;
  box-shadow: inset 0 0 0 1px var(--line-dark); padding: 14px 16px; color: var(--on-dark);
  font-size: 16px; transition: box-shadow .3s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--on-dark-2) 50%), linear-gradient(135deg, var(--on-dark-2) 50%, transparent 50%); background-size: 5px 5px; background-repeat: no-repeat; background-position: calc(100% - 22px) 50%, calc(100% - 17px) 50%; }
html[dir="rtl"] .field select { background-position: 17px 50%, 22px 50%; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.field.is-bad input, .field.is-bad textarea { box-shadow: inset 0 0 0 2px var(--red); }
.form__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.form__status { font-size: 15px; color: var(--on-dark-2); }
.form__status.is-ok { color: #6fd39a; }
.form__status.is-err { color: var(--accent); }
.form.is-sending .btn { opacity: .6; pointer-events: none; }
.form__status a { text-decoration: underline; text-underline-offset: .2em; color: var(--on-dark); }
.form__note { font-size: 13px; color: var(--on-dark-3); }
@media (max-width: 860px) {
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .form__row { grid-template-columns: 1fr; }
}

/* ---------- footer ---------- */

.foot {
  background: var(--ink); color: var(--on-dark-2);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
  padding: 28px var(--gutter) calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-dark); font-size: 14px;
}
.foot__nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot__nav a, .foot__social a, .foot__top { transition: color .3s; }
.foot__nav a:hover, .foot__social a:hover, .foot__top:hover { color: var(--accent); }
.foot__mid { text-align: center; display: grid; gap: 6px; justify-items: center; }
.foot__social { display: flex; gap: 18px; }
.foot__end { justify-self: end; display: flex; gap: 22px; align-items: center; }
@media (max-width: 820px) {
  .foot { grid-template-columns: 1fr; justify-items: start; }
  .foot__mid { text-align: start; justify-items: start; }
  .foot__end { justify-self: start; }
}

/* ---------- overlays: reel player, project, lightbox ---------- */

.overlay-open { overflow: hidden; }

.player {
  position: fixed; inset: 0; z-index: 90; background: #000; color: var(--on-dark);
  display: grid; grid-template-rows: var(--hdr) minmax(0, 1fr) auto;
  opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility 0s .45s;
}
.player.is-open { opacity: 1; visibility: visible; transition: opacity .45s var(--ease); }
.player__top, .player__bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-inline: var(--gutter); }
.player__top .mono-label { color: var(--on-dark-2); }
.player__stage { position: relative; min-height: 0; }
.player__stage video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.player__bar { padding-block: 16px calc(16px + env(safe-area-inset-bottom)); }
.player__ctrl {
  font-family: var(--f-display);  font-weight: 700;
  font-size: clamp(17px, 1.4vw, 22px); line-height: 1.3;
}
html[lang="en"] .player__ctrl { text-transform: uppercase; line-height: 1.05; }
.player__track { flex: 1; height: 2px; background: rgba(255,255,255,.2); position: relative; cursor: pointer; }
.player__track i { position: absolute; inset-block: 0; inset-inline-start: 0; width: 0; background: var(--accent); }
html[dir="rtl"] .player__track { transform: scaleX(-1); }
.player__time { font-family: var(--f-mono); font-size: 12px; color: var(--on-dark-2); direction: ltr; }

.pm {
  position: fixed; inset: 0; z-index: 80; background: var(--ink); color: var(--on-dark);
  overflow-y: auto; overscroll-behavior: contain;
  transform: translateY(100%); visibility: hidden;
  transition: transform .8s var(--ease-io), visibility 0s .8s;
}
.pm.is-open { transform: none; visibility: visible; transition: transform .8s var(--ease-io); }
.pm__bar {
  position: sticky; top: 0; z-index: 3; height: var(--hdr);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding-inline: var(--gutter); background: linear-gradient(var(--ink) 55%, rgba(20,20,20,0));
}
.pm__close {
  font-family: var(--f-display);  font-weight: 700;
  font-size: clamp(19px, 1.7vw, 28px); line-height: 1.3;
}
html[lang="en"] .pm__close { text-transform: uppercase; line-height: 1.05; }
.pm__count { font-family: var(--f-mono); font-size: 12px; color: var(--on-dark-2); letter-spacing: .1em; }
.pm__head { padding: 2vh var(--gutter) clamp(30px, 5vw, 60px); display: grid; gap: 20px; }
.pm__title { font-size: clamp(42px, 7vw, 130px); text-wrap: balance; }
.pm__meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; border-top: 1px solid var(--line-dark); padding-top: 20px; }
.pm__meta dt { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-3); }
html[lang="ar"] .pm__meta dt { font-family: var(--f-body); font-size: 13px; letter-spacing: 0; }
.pm__meta dd { margin-top: 4px; font-size: 15px; }
.pm__video { margin: 0 var(--gutter) 14px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: #000; }
.pm__video video { width: 100%; height: 100%; object-fit: cover; }
.pm__video iframe { display: block; width: 100%; height: 100%; border: 0; }
.pm__extra { padding: 18px var(--gutter) 34px; display: grid; gap: 16px; }
.pm__extra .mono-label { color: var(--on-dark-2); }
.pm__clips { display: grid; gap: 14px; }
.pm__clips video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; background: #000; }
.pm__clips.is-vertical { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pm__clips.is-vertical video { aspect-ratio: 9 / 16; }
@media (max-width: 700px) { .pm__clips.is-vertical { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pm__grid { columns: 3 300px; column-gap: 14px; padding: 0 var(--gutter); }
.pm__grid button { display: block; width: 100%; margin-bottom: 14px; border-radius: 10px; overflow: hidden; break-inside: avoid; background: var(--ink-2); cursor: zoom-in; }
.pm__grid img { width: 100%; height: auto; transition: transform .8s var(--ease), opacity .6s; }
.pm__grid button:hover img { transform: scale(1.03); }
.pm__foot { padding: clamp(50px, 8vw, 110px) var(--gutter) clamp(60px, 8vw, 110px); display: grid; justify-items: center; gap: 18px; text-align: center; }
.pm__next { display: grid; gap: 6px; justify-items: center; }
.pm__next small { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; color: var(--on-dark-3); text-transform: uppercase; }
html[lang="ar"] .pm__next small { font-family: var(--f-body); font-size: 14px; letter-spacing: 0; }
.pm__next span { font-size: clamp(36px, 5vw, 84px); transition: color .3s; }
.pm__next:hover span { color: var(--accent); }
@media (max-width: 700px) { .pm__meta { grid-template-columns: 1fr 1fr; } }

.lb {
  position: fixed; inset: 0; z-index: 95; background: rgba(8, 8, 8, .96);
  display: grid; grid-template-rows: var(--hdr) minmax(0, 1fr) var(--hdr); align-items: center;
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s;
}
.lb.is-open { opacity: 1; visibility: visible; transition: opacity .35s; }
.lb__top { display: flex; justify-content: space-between; align-items: center; padding-inline: var(--gutter); }
.lb__stage { position: relative; height: 100%; display: grid; place-items: center; padding-inline: var(--gutter); min-height: 0; }
.lb__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.lb__nav { display: flex; justify-content: center; gap: 12px; }
.lb__btn {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px var(--line-dark); color: var(--on-dark); transition: background-color .3s, color .3s;
}
.lb__btn:hover { background: var(--accent); color: var(--ink); box-shadow: none; }
.lb__btn svg { width: 18px; height: 18px; }

/* ---------- works page ---------- */

.wp-head { padding: calc(var(--hdr) + 8vh) var(--gutter) clamp(30px, 4vw, 50px); background: var(--ink); }
.wp-head__row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 26px; }
.wp-head h1 { font-size: clamp(56px, 10vw, 180px); }
.wp-head h1 sup { font-family: var(--f-mono); font-size: 14px; font-weight: 500; color: var(--accent); vertical-align: top; margin-inline-start: 10px; letter-spacing: .05em; }
.wp-head p { color: var(--on-dark-2); max-width: 44ch; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(28px, 4vw, 50px); }
.filter {
  height: 40px; padding-inline: 18px; border-radius: 999px; font-size: 14px;
  box-shadow: inset 0 0 0 1px var(--line-dark); color: var(--on-dark-2);
  transition: background-color .3s, color .3s, box-shadow .3s;
}
.filter:hover { color: var(--on-dark); box-shadow: inset 0 0 0 1px var(--on-dark-2); }
.filter[aria-pressed="true"] { background: var(--accent); color: var(--ink); box-shadow: none; }
.filter b { font-family: var(--f-mono); font-weight: 500; font-size: 11px; margin-inline-start: 6px; opacity: .7; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(26px, 3vw, 44px) clamp(14px, 1.6vw, 24px); padding: clamp(20px, 3vw, 40px) var(--gutter) clamp(90px, 12vw, 160px); background: var(--ink); }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.tile { display: grid; gap: 14px; text-align: start; }
.tile[hidden] { display: none; }
.tile__media { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--ink-2); }
.tile__media img, .tile__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), opacity .6s; }
.tile__media video { opacity: 0; }
.tile:hover .tile__media img { transform: scale(1.04); }
.tile.is-playing .tile__media video { opacity: 1; }
.tile__badge { position: absolute; z-index: 2; inset-block-start: 12px; inset-inline-start: 12px; }
.tile__name { font-family: var(--f-display);  font-weight: 700; font-size: clamp(24px, 2vw, 34px); line-height: 1.2; color: var(--on-dark); transition: color .3s; }
html[lang="en"] .tile__name { text-transform: uppercase; line-height: .98; }
.tile:hover .tile__name { color: var(--accent); }
.tile__sub { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--on-dark-2); }
.tile__sub span + span::before { content: "·"; margin-inline-end: 14px; color: var(--on-dark-3); }
.wp-empty { grid-column: 1 / -1; color: var(--on-dark-2); }

/* ---------- reveal on scroll ---------- */

html.js .rv { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
html.js .rv.is-in { opacity: 1; transform: none; }
html.js .rv-2 { transition-delay: .1s; }
html.js .rv-3 { transition-delay: .2s; }
html.js .rv .rule, html.js .rule.rv { transform: scaleX(0); transition: transform 1s var(--ease) .2s; }
html.js .rv.is-in .rule, html.js .rule.rv.is-in { transform: none; }

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  html.js .rv, html.js .ml, html.js .manifesto__foot,
  html.js .cover__word, html.js .cover__role, html.js .reel-btn { opacity: 1 !important; transform: none !important; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee__track [aria-hidden="true"] { display: none; }
  .card { transform: none; }
  .curtain { display: none; }
}
