/* لقطة بلقطة — الإصدار الثاني
   الألوان من الصورة نفسها: أبيض الثوب، أسود العقال، وأحمر الشماغ لونًا وحيدًا حارًا.
   الوضع الافتراضي (بدون حركة) مقال صور هادئ؛ html.cine يحوّله إلى شريط بالتمرير. */

:root {
  --paper: #F4F2ED;
  --ink: #111318;
  --red: #D50D3E;
  --red-deep: #8F0A26;
  --glass: #B9CBCB;
  --muted: #5E6066;
  --hair: rgba(17, 19, 24, .18);
  --poster: #A71F23;

  --display: 'Beiruti', 'IBM Plex Sans Arabic', sans-serif;
  --body: 'IBM Plex Sans Arabic', sans-serif;
  --ruqaa: 'Aref Ruqaa', 'Beiruti', serif;
  --led: 'Handjet', 'IBM Plex Mono', monospace;
  --mono: 'IBM Plex Mono', monospace;

  --gut: clamp(20px, 6vw, 96px);
}

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

html {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-size: 18px;
  line-height: 1.8;
  overflow-x: clip;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
bdi { unicode-bidi: isolate; }
em { font-style: normal; }

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

.vh-probe { position: absolute; top: 0; width: 0; height: 100vh; height: 100svh; visibility: hidden; pointer-events: none; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.skip {
  position: fixed; top: 8px; right: 8px; z-index: 200;
  padding: 10px 16px; background: var(--ink); color: var(--paper);
  transform: translateY(-160%);
}
.skip:focus { transform: none; }

.kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 2.2rem;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
}
.kicker::after { content: ''; width: 40px; height: 1px; background: currentColor; }

/* ---------- الإطار الثابت ---------- */

.chrome {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(env(safe-area-inset-top) + 14px) var(--gut) 14px;
  color: var(--ink);
  pointer-events: none;
  transition: color .3s;
}
html[data-chrome="dark"] .chrome { color: var(--paper); }
.chrome > * { pointer-events: auto; }

.wordmark {
  font-family: var(--display);
  font-weight: 900;
  font-size: 24px;
  line-height: 1;
  text-decoration: none;
}

.chrome-nav { display: flex; gap: 22px; align-items: center; }
.chrome-nav a, .view-toggle {
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  color: inherit;
  background: none;
  border: 0;
  padding: 8px 0;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 6px;
  transition: text-decoration-color .2s;
}
.chrome-nav a:hover, .view-toggle:hover { text-decoration-color: currentColor; }

.hud, .spine { display: none; }

/* ---------- تحميل ---------- */

.preloader { display: none; }
html.preload .preloader {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 120;
  background: var(--red);
  color: var(--paper);
}
.pre-word {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(64px, 14vw, 220px);
  line-height: 1;
}
.pre-count {
  position: absolute;
  left: var(--gut);
  bottom: 5vh;
  margin: 0;
  font-family: var(--led);
  font-weight: 500;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 1;
  color: var(--red-deep);
}
.pre-note { position: absolute; right: var(--gut); bottom: 5vh; margin: 0; font-size: 13px; opacity: .85; }

/* ---------- البداية (الوضع الهادئ) ---------- */

.hero {
  padding: calc(env(safe-area-inset-top) + 96px) var(--gut) 12vh;
  background: var(--glass);
}
.hero-stage { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-portrait { order: -1; position: relative; width: min(84vw, 520px); aspect-ratio: 1; overflow: hidden; }
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 24%; }
.hero-portrait .veil { display: none; }
.hero-name {
  margin: .35em 0 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(64px, 13vw, 200px);
  line-height: 1.05;
}
.hero-tile, .hero-thumbs, .viewfinder, .hero-marquee, .hero-hint { display: none; }
.hero-role { margin: 1em 0 .6em; font-size: 20px; font-weight: 500; }
.hero-interests {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 26px;
  list-style: none; margin: 0; padding: 0; font-size: 17px; color: var(--muted);
  counter-reset: i;
}
.hero-interests li { counter-increment: i; }
.hero-interests li::before {
  content: counter(i, arabic-indic) ' ';
  font-family: var(--led);
  color: var(--red);
  margin-inline-end: 6px;
}

/* ---------- من أنا ---------- */

.about { padding: 18vh var(--gut) 14vh; }
.manifesto {
  max-width: 1100px;
  margin: 0;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(30px, 4.4vw, 68px);
  line-height: 1.45;
}
.manifesto em {
  font-family: var(--ruqaa);
  font-weight: 700;
  color: var(--red);
}

/* ---------- المهارات: شبكة ملصق بخطوط رفيعة ---------- */

.skills { padding: 6vh var(--gut) 16vh; }
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--hair);
  border-inline-start: 1px solid var(--hair);
}
.col {
  display: flex;
  flex-direction: column;
  border-inline-end: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
.col h3 {
  margin: 0;
  padding: 18px 20px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.3;
  border-bottom: 1px solid var(--hair);
}
.col ul { list-style: none; margin: 0; padding: 0; }
.col li {
  padding: 13px 20px;
  border-bottom: 1px solid var(--hair);
  transition: background .2s, color .2s;
}
.col li:hover { background: var(--ink); color: var(--paper); }
.col li:hover .lt { color: var(--paper); }
.lt {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: .06em;
  direction: ltr;
  unicode-bidi: isolate;
}
.col > ul > li.lt { text-align: right; }
.pairs li { display: flex; flex-direction: column; gap: 2px; }
.pairs .ar { font-family: var(--display); font-weight: 700; font-size: 21px; line-height: 1.3; }
.pairs .lt { font-size: 11px; color: var(--muted); text-align: right; }
.hatch {
  flex: 1;
  min-height: 48px;
  background: repeating-linear-gradient(-45deg, transparent 0 7px, rgba(17, 19, 24, .22) 7px 8px);
}
.langs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-inline-start: 1px solid var(--hair);
}
.langs p {
  margin: 0;
  padding: 16px 20px;
  display: flex; align-items: baseline; gap: 14px;
  border-inline-end: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
.langs .ar { font-family: var(--display); font-weight: 700; font-size: 22px; }
.langs .note { color: var(--muted); font-size: 15px; }

/* ---------- الفصول (الوضع الهادئ: مقال صور) ---------- */

.reel { padding: 12vh var(--gut) 4vh; }
.reel-word h2 {
  margin: 0 0 6vh;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(56px, 11vw, 180px);
  line-height: 1;
}
.reel-word .kicker { margin-bottom: 1rem; }

.shot { margin: 0 0 12vh; }
.frame { position: relative; overflow: hidden; background: var(--ink); }
.frame img { width: 100%; height: auto; }
.shot[data-kind="site"] .frame { height: 70vh; }
.shot[data-kind="type"] .frame,
.shot[data-kind="noise"] .frame { min-height: 46vh; display: grid; place-items: center; }
.shot[data-kind="poster"] .frame { background: var(--poster); }
.shot[data-kind="poster"] .frame img { max-width: 730px; margin: 0 auto; }

.cap { margin-top: 22px; max-width: 900px; }
.cap-kicker { margin: 0 0 .4em; font-size: 15px; font-weight: 500; color: var(--muted); }
.cap-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(36px, 5.4vw, 84px);
  line-height: 1.1;
}
.cap-line { margin: .5em 0 0; font-size: 19px; max-width: 40em; }
.cap-link {
  display: inline-block;
  margin-top: .8em;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: .04em;
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.type-card { text-align: center; color: var(--paper); padding: 6vh 6vw; }
.type-big {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(56px, 11vw, 190px);
  line-height: 1.02;
}
.type-small { margin: .6em 0 0; font-size: clamp(18px, 2vw, 26px); font-weight: 500; opacity: .85; }

canvas.noise { width: 100%; height: 100%; position: absolute; inset: 0; image-rendering: pixelated; }

.prism-wrap { margin-top: 22px; }
.prism { display: grid; gap: 8px; }
.face {
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hair);
}
.f-role { font-family: var(--display); font-weight: 900; font-size: clamp(26px, 4vw, 56px); line-height: 1.15; }
.f-time { font-family: var(--led); font-size: clamp(22px, 3vw, 40px); color: var(--red); white-space: nowrap; }

/* ---------- صفوف الأرشيف والفعاليات ---------- */

.archive, .credits { padding: 14vh var(--gut); }
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair); }
.row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.6fr) minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 16px;
  padding: 26px 0;
  border-bottom: 1px solid var(--hair);
  transition: opacity .25s;
}
.credits .row { grid-template-columns: minmax(0, 1fr) auto; }
.rows:hover .row { opacity: .4; }
.rows:hover .row:hover { opacity: 1; }
.r-name { font-family: var(--display); font-weight: 700; font-size: clamp(24px, 3vw, 40px); line-height: 1.2; }
.r-type, .r-role { color: var(--muted); font-size: 16px; }
.r-link { font-family: var(--mono); font-size: 14px; text-decoration-color: var(--red); text-underline-offset: 6px; }
.r-link.muted { font-family: var(--body); color: var(--muted); }
.row-thumb {
  position: fixed;
  left: 0; top: 0;
  z-index: 40;
  width: 240px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s;
}

/* ---------- الفاصل المتحرك ---------- */

.interlude { padding: 10vh 0; overflow: hidden; }
.mq { white-space: nowrap; line-height: 1.15; }
.mq span { display: inline-block; will-change: transform; }
.mq-ar { font-family: var(--display); font-weight: 900; font-size: clamp(56px, 10vw, 170px); }
.mq-lt { font-family: var(--mono); font-weight: 500; font-size: clamp(18px, 2.4vw, 36px); color: var(--red); letter-spacing: .06em; margin-top: .4em; }

/* ---------- الآن (على أحمر الملصق) ---------- */

.now { background: var(--poster); color: var(--paper); padding: 16vh var(--gut) 18vh; }
.narrative {
  max-width: 1100px;
  margin: 0 0 10vh;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(26px, 3.2vw, 46px);
  line-height: 1.5;
}
.timeline { display: grid; grid-template-columns: 2fr 3fr; gap: 6px; margin-bottom: 9vh; max-width: 1100px; }
.seg { position: relative; padding-top: 15px; display: flex; flex-direction: column; }
.seg::before {
  content: '';
  position: absolute;
  top: 0; right: 0; left: 0;
  height: 3px;
  background: var(--paper);
  transform-origin: right;
  transform: scaleX(var(--p, 1));
}
.seg-b::before { background: rgba(244, 242, 237, .5); }
.t-len { font-family: var(--led); font-size: clamp(30px, 4vw, 56px); line-height: 1; }
.t-name { font-size: 15px; opacity: .85; }
.lockups {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(244, 242, 237, .3);
}
.lockups li {
  display: flex; flex-direction: column; gap: 4px;
  padding: 18px 16px 18px 0;
  border-inline-start: 1px solid rgba(244, 242, 237, .3);
  padding-inline-start: 16px;
}
.lockups li:first-child { border-inline-start: 0; padding-inline-start: 0; }
.lockups .ar { font-family: var(--display); font-weight: 700; font-size: 22px; }
.lockups .lt { font-size: 11px; opacity: .75; text-align: right; }

/* ---------- التواصل ---------- */

.contact { padding: 18vh var(--gut) 5vh; }
.contact-h {
  margin: 0 0 8vh;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(64px, 12vw, 220px);
  line-height: 1.02;
}
.contact-h em { font-family: var(--ruqaa); font-weight: 700; color: var(--red); }
.links { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair); max-width: 1100px; }
.links a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--hair);
  text-decoration: none;
}
.l-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 48px);
  background: linear-gradient(var(--red), var(--red)) no-repeat 100% 100% / 0 2px;
  transition: background-size .35s, transform .35s;
}
.links a:hover .l-name, .links a:focus-visible .l-name { background-size: 100% 2px; transform: translateX(-6px); }
.l-handle { font-family: var(--mono); font-size: 15px; color: var(--muted); }
.done { margin: 10vh 0 12vh; font-size: 17px; color: var(--muted); }
.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--hair);
  font-size: 13px; color: var(--muted);
}
.clock { font-family: var(--led); font-size: 18px; color: var(--ink); }

/* =====================================================================
   وضع الشريط
   ===================================================================== */

html.cine .hud {
  display: flex;
  position: fixed;
  top: calc(env(safe-area-inset-top) + 62px);
  left: var(--gut);
  z-index: 45;
  flex-direction: column;
  gap: 2px;
  max-width: 260px;
  color: var(--paper);
  opacity: 0;
  transition: opacity .3s, color .3s;
  pointer-events: none;
}
html.cine.in-reel .hud { opacity: 1; }
html[data-chrome="light"] .hud { color: var(--ink); }
.hud-count { font-family: var(--led); font-size: 26px; line-height: 1; }
.hud-title { font-size: 13px; font-weight: 500; line-height: 1.5; }
.hud-meta { font-size: 12px; opacity: .75; line-height: 1.5; }

html.cine .spine {
  display: block;
  position: fixed;
  right: 14px;
  top: 22vh;
  z-index: 45;
  width: 1px;
  height: 56vh;
  background: rgba(127, 127, 127, .35);
}
.spine-fill { position: absolute; inset: 0; background: var(--red); transform-origin: top; transform: scaleY(0); }
.tick {
  position: absolute;
  right: -3px;
  width: 7px;
  height: 7px;
  padding: 0;
  background: var(--paper);
  border: 1px solid rgba(127, 127, 127, .8);
  border-radius: 50%;
  cursor: pointer;
}
.tick.on { background: var(--red); border-color: var(--red); }
.tick span {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  background: var(--paper);
  padding: 2px 8px;
  opacity: 0;
  transition: opacity .2s;
  pointer-events: none;
}
.tick:hover span, .tick:focus-visible span { opacity: 1; }

/* ---------- البداية في وضع الشريط ---------- */

html.cine .hero { padding: 0; height: 240vh; background: none; }
html.cine .hero-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: block;
  background: var(--glass);
}
html.cine .hero-name {
  position: absolute;
  inset: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .14em;
  font-size: clamp(84px, 13vw, 240px);
  white-space: nowrap;
  pointer-events: none;
}
html.cine .hw { display: inline-block; will-change: transform; }
html.cine .hero-tile { display: inline-block; width: .95em; height: .95em; flex: none; }

html.cine .hero-portrait {
  position: absolute;
  inset: 0;
  width: auto;
  aspect-ratio: auto;
  clip-path: inset(50% 50% 50% 50%);
}
html.cine .hero-portrait img {
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 24%;
  transform-origin: 0 0;
  will-change: transform;
}
html.cine .hero-portrait .veil { display: block; position: absolute; inset: 0; background: var(--ink); opacity: 0; }

html.cine .hero-thumbs { display: block; position: absolute; inset: 0; pointer-events: none; }
html.cine .hero-thumbs img {
  position: absolute;
  width: 9vw;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  will-change: transform, opacity;
}
.hero-thumbs img:nth-child(1) { right: 9%;  top: 13%; }
.hero-thumbs img:nth-child(2) { right: 31%; top: 7%; }
.hero-thumbs img:nth-child(3) { right: 63%; top: 11%; }
.hero-thumbs img:nth-child(4) { right: 83%; top: 22%; }
.hero-thumbs img:nth-child(5) { right: 6%;  top: 72%; }
.hero-thumbs img:nth-child(6) { right: 27%; top: 82%; }
.hero-thumbs img:nth-child(7) { right: 60%; top: 80%; }
.hero-thumbs img:nth-child(8) { right: 84%; top: 66%; }

html.cine .hero-over {
  position: absolute;
  right: var(--gut);
  bottom: 9vh;
  max-width: 420px;
  color: var(--ink);
  text-align: right;
  opacity: 0;
}
html.cine .hero-over { background: rgba(244, 242, 237, .92); padding: 18px 22px; }
html.cine .hero-role { margin: 0 0 12px; font-size: 18px; }
html.cine .hero-interests { display: block; color: inherit; font-size: 16px; }
html.cine .hero-interests li { padding: 2px 0; }

html.cine .viewfinder { display: block; position: absolute; inset: 9vh 4vw; pointer-events: none; opacity: 0; }
.viewfinder i { position: absolute; width: 28px; height: 28px; border: 0 solid var(--ink); }
.viewfinder i:nth-child(1) { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.viewfinder i:nth-child(2) { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.viewfinder i:nth-child(3) { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }
.viewfinder i:nth-child(4) { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }

html.cine .hero-marquee {
  display: block;
  position: absolute;
  left: 0; right: 0;
  top: 47%;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.mq-track {
  display: inline-block;
  white-space: nowrap;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(48px, 8vw, 150px);
  line-height: 1;
  color: var(--ink);
  will-change: transform;
}

html.cine .hero-hint {
  display: block;
  position: absolute;
  left: var(--gut);
  bottom: 4vh;
  margin: 0;
  font-size: 14px;
  font-weight: 500;
}

/* ---------- الشريط: المسرح واللقطات ---------- */

html.cine .reel { position: relative; padding: 0; }
html.cine .stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--ink);
}
html.cine .reel-word {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--paper);
  pointer-events: none;
}
html.cine .reel-word h2 { margin: 0; font-size: clamp(90px, 17vw, 320px); line-height: 1; }
html.cine .reel-word .kicker { color: inherit; opacity: .8; margin: 0 0 1.2rem; }
html.cine .reel-word .kicker::after { display: none; }

html.cine .shot {
  position: absolute;
  inset: 0;
  margin: 0;
  visibility: hidden;
  pointer-events: none;
  transform-origin: 50% 50%;
}
html.cine .shot.live { visibility: visible; }
html.cine .shot .frame {
  position: absolute;
  left: 0; top: 0;
  overflow: hidden;
  background: var(--ink);
}
html.cine .shot .frame img {
  position: absolute;
  left: 0; top: 0;
  max-width: none;
  transform-origin: 0 0;
}
html.cine .shot[data-kind="site"] .frame { height: auto; }
html.cine .shot[data-kind="poster"] .frame { background: var(--poster); }
html.cine .shot[data-kind="poster"] .frame img { margin: 0; max-width: none; }
html.cine .shot[data-kind="type"] .frame,
html.cine .shot[data-kind="noise"] .frame { min-height: 0; }

.mosaic { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; pointer-events: none; }
.shot .veil, .shot .flat { position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.shot .veil { background: var(--ink); }
.shot .flat { background: var(--mood, var(--ink)); }
.shot .scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(17, 19, 24, .7) 0%, rgba(17, 19, 24, .25) 32%, rgba(17, 19, 24, 0) 55%);
}
.shot .scrim-site { background: linear-gradient(to top, rgba(17, 19, 24, .88) 0%, rgba(17, 19, 24, .55) 30%, rgba(17, 19, 24, 0) 62%); }
.shot .scrim-light { background: linear-gradient(to top, rgba(244, 242, 237, .85) 0%, rgba(244, 242, 237, .35) 30%, rgba(244, 242, 237, 0) 55%); }

html.cine .cap {
  position: absolute;
  right: var(--gut);
  bottom: calc(28px + env(safe-area-inset-bottom));
  margin: 0;
  max-width: min(64vw, 1000px);
  color: var(--paper);
}
html.cine .shot[data-theme="light"] .cap { color: var(--ink); }
html.cine .shot[data-kind="site"] .cap { right: auto; left: var(--gut); max-width: min(40vw, 620px); }
html.cine .cap-kicker { color: inherit; opacity: .85; }
html.cine .cap-title { font-size: clamp(40px, 6.6vw, 120px); }
html.cine .cap-title .w { display: inline-block; }
html.cine .cap-title .wm { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
html.cine .cap-line { font-size: clamp(16px, 1.4vw, 20px); max-width: 34em; }
html.cine .cap-link { color: inherit; }
html.cine .shot.live .cap a { pointer-events: auto; }

html.cine .prism-wrap {
  position: absolute;
  left: 50%;
  margin: 0;
  width: min(84vw, 1000px);
  transform: translateX(-50%);
  perspective: 1200px;
}
html.cine .prism {
  position: relative;
  height: clamp(80px, 13vh, 140px);
  transform-style: preserve-3d;
  display: block;
}
html.cine .face {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0 24px;
  align-items: center;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  backface-visibility: hidden;
}
html.cine .f-role { font-size: clamp(24px, 4vw, 64px); }

/* ---------- الجوال ---------- */

@media (max-width: 767px) {
  body { font-size: 17px; }
  .chrome-nav { gap: 16px; }
  .chrome-nav a, .view-toggle { font-size: 14px; }

  .grid { grid-template-columns: 1fr 1fr; }
  .col:nth-child(4) { grid-column: 1 / -1; }
  .langs { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; gap: 4px; }
  .credits .row { grid-template-columns: 1fr auto; }
  .lockups { grid-template-columns: 1fr 1fr; }
  .lockups li:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }

  html.cine .hero { height: 200vh; height: 200svh; }
  html.cine .hero-name {
    flex-direction: column;
    gap: .1em;
    font-size: clamp(72px, 24vw, 120px);
  }
  html.cine .hero-thumbs img { width: 22vw; }
  .hero-thumbs img:nth-child(1) { right: 6%;  top: 9%; }
  .hero-thumbs img:nth-child(2) { right: 70%; top: 12%; }
  .hero-thumbs img:nth-child(3) { right: 4%;  top: 78%; }
  .hero-thumbs img:nth-child(4) { right: 72%; top: 82%; }
  .hero-thumbs img:nth-child(5) { right: 68%; top: 48%; }
  .hero-thumbs img:nth-child(6) { right: 8%;  top: 46%; }
  .hero-thumbs img:nth-child(7), .hero-thumbs img:nth-child(8) { display: none; }
  html.cine .hero-over { right: 20px; left: 20px; bottom: 8vh; }
  html.cine .hero-marquee { top: 50%; }
  html.cine .hero-hint { display: none; }

  html.cine .cap { right: 20px; left: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); max-width: none; }
  html.cine .cap-title { font-size: clamp(34px, 10vw, 56px); }
  html.cine .hud { top: calc(env(safe-area-inset-top) + 54px); left: 20px; max-width: 46vw; }
  html.cine .spine { right: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .row, .l-name, .chrome { transition: none; }
}
