/* ================= EJAD Studio v2 =================
   كل قسم مستلهم من مرجع:
   Intro/Contact → Cenima · Stage columns → Swiss + Bou + Loudmob
   About → Flatline + Swiss + Bliss/Prismatico · Work → LiveMe5ive + Storck + Loudmob
   Reels/Process → Nuwebu · Clients → Tequila                                   */

@font-face { font-family: "Tajawal"; src: url(../assets/fonts/Tajawal-Light.ttf) format("truetype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Tajawal"; src: url(../assets/fonts/Tajawal-Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Tajawal"; src: url(../assets/fonts/Tajawal-Medium.ttf) format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Tajawal"; src: url(../assets/fonts/Tajawal-Bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Tajawal"; src: url(../assets/fonts/Tajawal-ExtraBold.ttf) format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Elms Sans"; src: url(../assets/fonts/ElmsSans-VariableFont_wght.ttf) format("truetype"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "KA Hand"; src: url(../assets/fonts/ka-hand-naskh-v2.ttf) format("truetype"); font-display: swap; }

@property --nw { syntax: "<length>"; inherits: true; initial-value: 72px; }

:root {
  --bg: #0b0907;
  --bg-2: #15100c;
  --ink: #efe6d8;
  --ink-2: rgba(239, 230, 216, .66);
  --ink-3: rgba(239, 230, 216, .34);
  --line: rgba(239, 230, 216, .12);
  --accent: #bb4a1e;
  --accent-2: #d8642f;
  --sand: #cbb896;
  --brown: #2b211b;
  --olive: #6d6352;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --gut: max(var(--gutter), calc((100vw - 1440px) / 2 + var(--gutter)));
  --bar: 64px;            /* ارتفاع القائمة بعد ما تنطوي الأعمدة */
  --font: "Tajawal", system-ui, sans-serif;
  color-scheme: dark;
}
html[lang="en"] { --font: "Elms Sans", system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: clip; }
body.is-loading, body.is-locked { overflow: hidden; }
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 1px solid var(--accent-2); outline-offset: 4px; }
::selection { background: var(--accent); color: var(--ink); }
main { position: relative; }
main > section { position: relative; z-index: 2; }

.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); position: relative; }
.section { position: relative; padding-block: clamp(84px, 9vw, 140px); }

/* ---------- global layers ---------- */
.grain { position: fixed; inset: -50%; z-index: 120; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-4%,3%)} 40%{transform:translate(3%,-2%)} 60%{transform:translate(-2%,-4%)} 80%{transform:translate(4%,2%)} 100%{transform:translate(0,0)} }
.lines { position: fixed; inset: 0; z-index: 1; pointer-events: none; display: grid; grid-template-columns: repeat(4, 1fr);
  width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }
.lines i { border-inline-start: 1px solid rgba(239, 230, 216, .085); }
.lines i:last-child { border-inline-end: 1px solid rgba(239, 230, 216, .085); }
.rule { position: relative; height: 1px; background: var(--line); margin-bottom: clamp(28px, 3vw, 44px); }
.rule::before, .rule::after { content: ""; position: absolute; top: -6px; width: 13px; height: 13px;
  background: linear-gradient(var(--ink-2), var(--ink-2)) center / 100% 1px no-repeat, linear-gradient(var(--ink-2), var(--ink-2)) center / 1px 100% no-repeat; }
.rule::before { inset-inline-start: -6px; }
.rule::after { inset-inline-end: -6px; }
/* scroll cue + soft bottom edge */
.scrollcue { position: fixed; z-index: 56; bottom: 0; left: 50%; width: 1px; height: 54px; background: rgba(239, 230, 216, .22); overflow: hidden; pointer-events: none; transition: opacity .4s; }
.scrollcue i { position: absolute; inset: 0; background: var(--ink); animation: drip 2s var(--ease) infinite; }
.scrollcue.is-end { opacity: 0; }
.fadeb { position: fixed; z-index: 45; inset: auto 0 0; height: 72px; pointer-events: none; background: linear-gradient(transparent, rgba(11, 9, 7, .72)); }
.gl { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 1; pointer-events: none; }

/* ---------- type ---------- */
.kicker { font-family: "Elms Sans", var(--font); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--sand);
  margin: 0 0 26px; display: flex; align-items: center; gap: 14px; }
html[lang="ar"] .kicker { font-family: var(--font); letter-spacing: 0; font-size: 14px; }
.kicker::before { content: ""; width: 28px; height: 1px; background: var(--ink-3); }
.kicker--center { justify-content: center; }
.kicker--center::after { content: ""; width: 28px; height: 1px; background: var(--ink-3); }
.display { font-weight: 300; margin: 0; font-size: clamp(50px, 9vw, 150px); line-height: 1.02; letter-spacing: -.03em; }
html[lang="ar"] .display { font-weight: 500; line-height: 1.22; letter-spacing: 0; }
.title { font-weight: 300; margin: 0; font-size: clamp(34px, 4.8vw, 72px); line-height: 1.08; letter-spacing: -.02em; }
html[lang="ar"] .title { font-weight: 500; line-height: 1.32; letter-spacing: 0; }
.lead { color: var(--ink-2); font-size: clamp(16px, 1.3vw, 19px); max-width: 48ch; margin: 26px 0 0; font-weight: 300; }
html[lang="ar"] .lead { font-weight: 400; }
.lead--center { margin-inline: auto; text-align: center; }
.hand { font-family: "KA Hand", var(--font); font-weight: 400; color: var(--accent-2); }
html[lang="en"] .hand { font-family: "Elms Sans"; font-style: italic; font-weight: 200; }
em { font-style: normal; color: var(--accent-2); }
html[lang="en"] em { font-style: italic; }

/* two-line heading: light line + bold line, filled by the scroll */
.title.hl { font-size: clamp(38px, 5.6vw, 84px); line-height: 1.04; letter-spacing: -.025em; }
html[lang="ar"] .title.hl { line-height: 1.3; letter-spacing: 0; }
html[lang="en"] .title.hl { text-transform: uppercase; }
.hl__a, .hl__b { display: block; width: fit-content; max-width: 100%; padding-block: .14em; margin-block: -.14em; color: transparent; -webkit-text-fill-color: transparent;
  background: linear-gradient(var(--fill-to, to right), var(--ink) var(--f, 0%), rgba(239, 230, 216, .15) var(--f, 0%));
  -webkit-background-clip: text; background-clip: text; }
html[dir="rtl"] .hl__a, html[dir="rtl"] .hl__b { --fill-to: to left; }
.hl__a { font-weight: 300; }
.hl__b { font-weight: 700; }
html[lang="ar"] .hl__a { font-weight: 400; }
html[lang="ar"] .hl__b { font-weight: 800; }

/* slice reveal (Loudmob): 3 horizontal bands slide into one line */
.slice { display: grid; overflow-x: clip; }
.slice > .sl { grid-area: 1 / 1; transition: transform 1.1s var(--ease), opacity .8s var(--ease); }
.slice > .sl--1 { clip-path: inset(-30% 0 66% 0); transform: translateX(8%); opacity: 0; }
.slice > .sl--2 { clip-path: inset(33% 0 33% 0); transform: translateX(-12%); opacity: 0; transition-delay: .06s; }
.slice > .sl--3 { clip-path: inset(66% 0 -30% 0); transform: translateX(5%); opacity: 0; transition-delay: .12s; }
.slice.in > .sl { transform: none; opacity: 1; }

.reveal { opacity: 0; transform: translateY(24px); filter: blur(6px); transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; filter: none; }

/* ---------- pills / magnetic ---------- */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 14px; height: 58px; padding-inline: 28px; border-radius: 60px;
  border: 1px solid rgba(239, 230, 216, .3); font-size: 16px; backdrop-filter: blur(10px); background: rgba(11, 9, 7, .2);
  transition: background .4s var(--ease), color .4s, border-color .4s; will-change: transform; }
.pill small { color: var(--ink-3); font-size: 14px; direction: ltr; transition: color .4s; }
.pill:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pill:hover small { color: rgba(11, 9, 7, .6); }
.pill--main { background: var(--accent); border-color: var(--accent); }
.pill--main small { color: rgba(239, 230, 216, .75); }

/* ---------- mesh gradient (Cenima) ---------- */
.mesh { position: absolute; inset: 0; overflow: hidden; background: var(--brown); }
.mesh b { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .9; animation: drift 14s ease-in-out infinite alternate; }
.mesh b:nth-child(1) { width: 70vmax; height: 70vmax; background: #bb4a1e; top: -30%; inset-inline-start: -15%; }
.mesh b:nth-child(2) { width: 55vmax; height: 55vmax; background: #1a1410; bottom: -30%; inset-inline-start: -20%; animation-duration: 18s; }
.mesh b:nth-child(3) { width: 45vmax; height: 45vmax; background: #6d6352; top: 30%; inset-inline-end: 10%; animation-duration: 16s; animation-delay: -4s; }
.mesh b:nth-child(4) { width: 40vmax; height: 40vmax; background: #efe6d8; bottom: -20%; inset-inline-end: -10%; opacity: .7; animation-duration: 20s; }
.mesh b:nth-child(5) { width: 35vmax; height: 35vmax; background: #d8642f; top: -10%; inset-inline-end: 20%; opacity: .75; animation-duration: 12s; animation-delay: -6s; }
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(8vw, 6vh) scale(1.12); } 100% { transform: translate(-6vw, -4vh) scale(.95); } }
.mesh--soft { opacity: .55; }
.mesh--soft::after { content: ""; position: absolute; inset: 0; background: linear-gradient(var(--bg), rgba(11, 9, 7, .2) 40%, rgba(11, 9, 7, .55)); }

/* ---------- intro ---------- */
.intro { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--brown); }
.no-intro .intro { display: none; }
.intro.is-open { pointer-events: none; }
.mesh b { will-change: transform; }
.intro.is-open .mesh, .intro.is-open .intro__mark, .intro.is-open .intro__line { transition: opacity .35s ease; }
.intro__mark { position: relative; display: flex; gap: 8px; height: 64px; z-index: 1; }
.intro__mark i { width: 26px; background: var(--ink); border-radius: 50%; transform: translate(var(--x), var(--y)) scale(.35); opacity: 0;
  animation: morph 1.3s var(--ease) forwards; animation-delay: var(--dl); }
.intro__mark i:nth-child(1) { --x: -60px; --y: -40px; --dl: .15s; }
.intro__mark i:nth-child(2) { --x: -20px; --y: 50px; --dl: .25s; }
.intro__mark i:nth-child(3) { --x: 30px; --y: -55px; --dl: .35s; }
.intro__mark i:nth-child(4) { --x: 70px; --y: 30px; --dl: .45s; }
@keyframes morph { 40% { opacity: 1; border-radius: 40%; } 100% { transform: none; opacity: 1; border-radius: 2px; } }
.intro__line { position: absolute; top: calc(50% + 56px); z-index: 1; margin: 0; font-size: 15px; letter-spacing: .02em; opacity: 0; filter: blur(8px);
  animation: blurIn 1s var(--ease) 1.3s forwards; }
html[lang="en"] .intro__line { font-family: "Elms Sans"; letter-spacing: .3em; text-transform: uppercase; font-size: 12px; }
@keyframes blurIn { to { opacity: 1; filter: none; } }
.intro__curtain { position: absolute; inset: 0; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; pointer-events: none; }
.intro__curtain i { background: var(--bg); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); }
.intro__curtain i:nth-child(2) { transition-delay: .07s; } .intro__curtain i:nth-child(3) { transition-delay: .14s; } .intro__curtain i:nth-child(4) { transition-delay: .21s; }
.intro.is-closing .intro__curtain i { transform: scaleY(1); }
.intro.is-open { background: transparent; }
@media (max-width: 760px) {
  .mesh b { filter: blur(44px); }
  .intro .mesh b:nth-child(n+4) { display: none; }
}
.intro.is-open .mesh, .intro.is-open .intro__mark, .intro.is-open .intro__line { opacity: 0; }
.intro.is-open .intro__curtain { gap: 6px; }
.intro.is-open .intro__curtain i { transform: scaleY(0); transform-origin: top; }

/* ---------- cursor ---------- */
.cursor { display: none; }
@media (pointer: fine) {
  .cursor { display: grid; place-items: center; position: fixed; top: 0; left: 0; z-index: 110; pointer-events: none; width: 10px; height: 10px; margin: -5px 0 0 -5px;
    border-radius: 50%; background: var(--ink); mix-blend-mode: difference; transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background .3s; }
  .cursor.is-big { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--accent); mix-blend-mode: normal; }
  .cursor__label { font-size: 13px; font-weight: 500; opacity: 0; transition: opacity .2s; white-space: nowrap; }
  .cursor.is-big .cursor__label { opacity: 1; }
}

/* ---------- stage: 4 columns → nav (Swiss + Bou) ---------- */
.stage { position: fixed; top: 0; inset-inline: 0; z-index: 50; height: var(--sh, 100vh); overflow: hidden; background: var(--bg); }
.stage__media { position: absolute; inset: 0 0 auto; height: var(--vh, 100vh); transform: translateY(calc(var(--p, 0) * -18%)) scale(calc(1.06 - var(--p, 0) * .06)); }
.stage__media img, .stage__media video { width: 100%; height: 100%; object-fit: cover; }
.stage__media video { filter: brightness(.62) contrast(1.06) saturate(.92); }
.stage__media img { animation: kenburns 26s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.1) translateX(-1.5%); } }
.stage__shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(rgba(11, 9, 7, calc(.35 + var(--p, 0) * .35)), rgba(11, 9, 7, calc(.15 + var(--p, 0) * .5)) 45%, rgba(11, 9, 7, calc(.55 + var(--p, 0) * .2))); }
.stage::after { content: ""; position: absolute; inset: 0; background: rgba(11, 9, 7, .9); opacity: var(--lp, 0); pointer-events: none; }
.stage.is-docked { box-shadow: inset 0 -1px 0 var(--line); }
.stage__cols { position: absolute; inset: 0; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); }
.col { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; border-inline-end: 6px solid var(--bg); transition: background .4s; }
.col:last-child { border-inline-end: 0; }
.col::after { content: ""; position: absolute; inset: 0; background: var(--bg); transform: scaleY(var(--cv, 0)); transform-origin: top; pointer-events: none; }
.col__label { font-size: 14px; font-weight: 400; color: var(--ink-2); transition: color .3s; opacity: var(--lp, 0); transform: translateY(calc((1 - var(--lp, 0)) * 12px)); white-space: nowrap; }
html[lang="en"] .col__label { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 400; }
.col__bars { display: inline-flex; gap: 2px; height: 14px; opacity: var(--lp, 0); }
.col__bars i { width: 5px; background: currentColor; }
/* docked nav: glass bar, numbered sections, active marker, page progress */
.stage.is-docked { background: transparent; }
.stage.is-docked::after { opacity: 1; background: rgba(11, 9, 7, .94); }
.stage.is-docked .stage__media { opacity: 0; }
.stage.is-docked .col { border-inline-end: 0; }
.stage.is-docked .col:not(:last-child)::before { content: ""; position: absolute; top: 30%; bottom: 30%; inset-inline-end: 0; width: 1px; background: var(--line); }
.stage__cols { counter-reset: nav; padding-inline: calc(var(--lp, 0) * var(--gut)); }
.col:not(.col--home) .col__label::before { counter-increment: nav; content: "0" counter(nav); font-family: "Elms Sans"; font-size: 10px; letter-spacing: .1em;
  color: var(--ink-3); margin-inline-end: 10px; vertical-align: 2px; transition: color .3s; }
.col__label { position: relative; }
.col__label::after { content: ""; position: absolute; inset-inline: 0; bottom: -8px; height: 1px; background: var(--sand); transform: scaleX(0); transition: transform .5s var(--ease); }
.stage.is-docked .col:hover .col__label, .stage.is-docked .col.is-active .col__label { color: var(--ink); }
.stage.is-docked .col.is-active .col__label::before { color: var(--sand); }
.stage.is-docked .col.is-active .col__label::after { transform: scaleX(1); }
.stage.is-docked .stage__cols::after { content: ""; position: absolute; bottom: 0; inset-inline-start: 0; height: 1px; width: 100%;
  background: var(--sand); opacity: .7; transform: scaleX(var(--sp, 0)); transform-origin: right; }
html[dir="ltr"] .stage.is-docked .stage__cols::after { transform-origin: left; }
.stage:not(.is-docked) .stage__cols { pointer-events: none; }
.lang { position: fixed; z-index: 60; bottom: 20px; inset-inline-end: 20px; min-width: 48px; height: 48px; border-radius: 50px; padding-inline: 14px;
  border: 1px solid rgba(239, 230, 216, .3); background: rgba(11, 9, 7, .8); font-family: "Elms Sans", "Tajawal"; font-size: 14px; transition: background .3s, color .3s; }
.lang:hover { background: var(--ink); color: var(--bg); }

/* ---------- hero text ---------- */
main > .hero { position: relative; z-index: 55; height: 100svh; min-height: 620px; display: flex; align-items: center; justify-content: center; text-align: center;
  opacity: var(--ho, 1); transform: translateY(calc((1 - var(--ho, 1)) * -60px)); pointer-events: var(--hpe, auto); }
.hero .display { max-width: 14ch; margin-inline: auto; text-shadow: 0 4px 40px rgba(11, 9, 7, .35); }
.hero .lead { color: var(--ink); opacity: .85; }
.hero__ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
@keyframes drip { from { transform: translateY(-100%); } to { transform: translateY(100%); } }

/* ---------- about ---------- */
.about { min-height: 120vh; display: flex; align-items: center; overflow: hidden; }
.about__inner { text-align: center; z-index: 2; isolation: isolate; }
.about__inner::before { content: ""; position: absolute; z-index: -1; inset: -12% 0; pointer-events: none;
  background: radial-gradient(ellipse 52% 50% at 50% 50%, rgba(11, 9, 7, .62), rgba(11, 9, 7, .3) 60%, transparent 78%); }
.statement { font-weight: 300; margin: 0 auto; max-width: 22ch; font-size: clamp(32px, 4.6vw, 70px); line-height: 1.2; letter-spacing: -.02em; }
html[lang="ar"] .statement { font-weight: 500; line-height: 1.5; letter-spacing: 0; max-width: 20ch; }
.statement .w { display: inline-block; opacity: .15; transition: opacity .5s var(--ease); }
.statement .w.on { opacity: 1; }
.obj { pointer-events: none; }
.obj--about { position: absolute; inset: 0; z-index: 0; }
.about .statement, .about .lead { text-shadow: 0 2px 28px rgba(11, 9, 7, .9), 0 0 2px rgba(11, 9, 7, .6); }
.section__head { position: relative; }
.beam { position: absolute; z-index: 0; width: 140vw; height: 18vh; top: 42%; left: -20vw; transform: rotate(-14deg); filter: blur(38px); opacity: .32; mix-blend-mode: screen;
  background: linear-gradient(90deg, transparent 5%, #ff3b2f 22%, #ff9a3c 32%, #ffe36e 42%, #57e39a 52%, #3fa7ff 62%, #8b5cff 72%, transparent 88%);
  animation: beam 9s ease-in-out infinite alternate; }
@keyframes beam { to { transform: rotate(-9deg) translateY(-6vh); opacity: .22; } }

/* ---------- sector ticker ---------- */
main > .ticker { position: relative; z-index: 2; overflow: hidden; padding-block: 10px; font-size: clamp(64px, 12vw, 190px); line-height: 1.25; font-weight: 800; color: rgba(239, 230, 216, .13);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 16%, #000 84%, transparent); mask-image: linear-gradient(to right, transparent, #000 16%, #000 84%, transparent); }
html[lang="en"] .ticker { font-family: "Elms Sans"; font-weight: 600; letter-spacing: -.04em; text-transform: uppercase; }
.ticker__row { display: flex; width: max-content; white-space: nowrap; animation: tick 70s linear infinite; will-change: transform; }
html[dir="rtl"] .ticker__row { animation-name: tick-r; }
.ticker__row span { padding-inline-end: .35em; }
.ticker b { font-weight: 300; }
@keyframes tick { to { transform: translate3d(-50%, 0, 0); } }
@keyframes tick-r { to { transform: translate3d(50%, 0, 0); } }

/* ---------- work ---------- */
.work__head { position: sticky; top: calc(var(--bar) + 18px); z-index: 0; padding-bottom: clamp(36px, 4vw, 64px); }
.work__head .kicker { margin-bottom: 18px; }

/* editorial grid (LiveMe5ive) */
.edit { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 3vw, 48px); row-gap: clamp(56px, 7vw, 120px); align-items: start; }
.card { position: relative; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.card.is-big { grid-column: span 7; }
.card.is-small { grid-column: span 5; margin-top: clamp(80px, 14vw, 240px); }
.card--reel { grid-column: span 3; }
.card.is-out { opacity: 0; transform: translateY(18px); }
.card__frame { position: relative; }
/* Storck-style notch, cut in the shape of an EJAD block */
.card__media { --nh: 34px; position: relative; overflow: hidden; background: var(--bg-2); aspect-ratio: 4 / 4.7;
  clip-path: polygon(0 0, 100% 0, 100% 100%, calc(28px + var(--nw)) 100%, calc(28px + var(--nw)) calc(100% - var(--nh)), 28px calc(100% - var(--nh)), 28px 100%, 0 100%);
  transition: --nw .7s var(--ease); }
html[dir="rtl"] .card__media {
  clip-path: polygon(0 0, 100% 0, 100% 100%, calc(100% - 28px) 100%, calc(100% - 28px) calc(100% - var(--nh)), calc(100% - 28px - var(--nw)) calc(100% - var(--nh)), calc(100% - 28px - var(--nw)) 100%, 0 100%); }
.card.is-small .card__media { aspect-ratio: 4 / 5.2; }
.card--reel .card__media { aspect-ratio: 9 / 16; }
.card:hover { --nw: 150px; }
.card__media > img, .card__media > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.card__media > img { transform: scale(1.18); }
.card.in .card__media > img { transform: scale(1); }
.card:hover .card__media > img { transform: scale(1.05); }
.card__logo { position: absolute; z-index: 1; top: 50%; left: 50%; width: 38%; max-height: 26%; object-fit: contain; transform: translate(-50%, -50%);
  filter: brightness(0) invert(1); opacity: 0; transition: opacity .6s var(--ease), transform .8s var(--ease); transform: translate(-50%, -40%); }
.card:hover .card__logo, .card:focus-within .card__logo { opacity: 1; transform: translate(-50%, -50%); }
.card__media::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(transparent 55%, rgba(11, 9, 7, .45)); pointer-events: none; transition: background .6s var(--ease); }
.card:has(.card__logo):hover .card__media::after { background: rgba(11, 9, 7, .62); }
.card__logo { z-index: 1; }
/* Loudmob strips reveal */
.card__strips { position: absolute; inset: 0; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); pointer-events: none; }
.card__strips i { background: var(--bg); transform-origin: top; transition: transform 1s var(--ease); }
.card__strips i:nth-child(2) { transition-delay: .08s; } .card__strips i:nth-child(3) { transition-delay: .16s; } .card__strips i:nth-child(4) { transition-delay: .24s; }
.card.in .card__strips i { transform: scaleY(0); }
.card__n { position: absolute; bottom: 0; inset-inline-start: 28px; width: var(--nw); height: 34px; display: grid; place-items: center;
  font-family: "Elms Sans"; font-size: 12px; letter-spacing: .1em; color: var(--ink-3); }
.card__btn { position: absolute; inset: 0; z-index: 3; width: 100%; }
.card__play { position: absolute; z-index: 2; top: 50%; left: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(11, 9, 7, .45); backdrop-filter: blur(10px); border: 1px solid rgba(239, 230, 216, .3); transition: transform .4s var(--ease), background .3s; }
.card__play::before { content: ""; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent var(--ink); margin-left: 4px; }
.card:hover .card__play { transform: scale(1.12); background: var(--accent); }
.card.is-playing .card__play, .card.is-playing .card__btn, .card.is-playing .card__logo { display: none; }
.card__meta { margin-top: 22px; }
.card__title { margin: 0; font-size: clamp(22px, 2.2vw, 34px); font-weight: 400; line-height: 1.25; display: flex; align-items: baseline; gap: 12px; }
html[lang="ar"] .card__title { font-weight: 500; }
.card--reel .card__title { font-size: 16px; }
.card__arrow { color: inherit; transition: transform .4s var(--ease); font-size: .7em; }
.card:hover .card__arrow { transform: translate(-4px, -4px); }
html[lang="en"] .card:hover .card__arrow { transform: translate(4px, -4px); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tags span { font-size: 12px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 40px; color: var(--ink-2); }
.card__client { margin: 4px 0 0; font-size: 13px; color: var(--ink-3); }

/* ---------- work: cards on the 4-column grid, passing over the sticky heading ---------- */
.chapters { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); row-gap: clamp(48px, 6vw, 96px); align-items: start; }
.pj { background: var(--bg-2); }
.pj--big { grid-column: 1 / span 3; }
.pj--big.pj--alt { grid-column: 2 / span 3; }
.pj--big .pj__media { aspect-ratio: 2 / 1; }
.pj--lab { grid-column: span 2; margin-inline: 3px; }
.pj--drop { margin-top: clamp(40px, 7vw, 110px); }
.pj--solo { grid-column: 2 / span 2; }
.pj__media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: var(--bg-2); clip-path: inset(0 0 100% 0); transition: clip-path 1.2s var(--ease); }
.pj.in .pj__media { clip-path: inset(0); }
.pj__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0;
  transform: scale(1.12); transition: opacity 1.1s var(--ease), transform 2.6s var(--ease); }
.pj__img.is-on { opacity: 1; transform: scale(1.02); }
.pj:hover .pj__img.is-on { transform: scale(1.06); }
.pj__media::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(11, 9, 7, .78), rgba(11, 9, 7, .18) 40%, transparent 62%); }
.pj__logo { position: absolute; z-index: 2; bottom: clamp(18px, 2.2vw, 32px); inset-inline-start: clamp(18px, 2.2vw, 32px);
  height: clamp(40px, 4.6vw, 68px); width: auto; max-width: 55%; object-fit: contain; object-position: left bottom;
  filter: drop-shadow(0 6px 22px rgba(0, 0, 0, .6)); opacity: 0; transform: translateY(12px);
  transition: opacity .9s var(--ease) .45s, transform .9s var(--ease) .45s; }
html[dir="rtl"] .pj__logo { object-position: right bottom; }
.pj.in .pj__logo { opacity: 1; transform: none; }
.pj__bars { position: absolute; z-index: 2; top: 18px; inset-inline-end: 18px; display: flex; gap: 4px; }
.pj__bars i { width: 3px; height: 14px; background: rgba(239, 230, 216, .35); transition: background .5s, height .5s var(--ease); }
.pj__bars i.is-on { background: var(--ink); height: 20px; }
.pj__meta { display: grid; grid-template-columns: auto 1fr; gap: clamp(16px, 2vw, 30px); align-items: start; padding: clamp(16px, 2vw, 28px); }
.pj__num { font-family: "Elms Sans"; font-weight: 300; font-size: clamp(64px, 7.4vw, 124px); line-height: .82; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1px rgba(239, 230, 216, .5); }
.pj__meta > * { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.pj.in .pj__meta > * { opacity: 1; transform: none; }
.pj.in .pj__text { transition-delay: .12s; }
.pj__sector { margin: 4px 0 8px; font-size: 12px; color: var(--sand); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ch__lab { font-family: "Elms Sans"; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3);
  border: 1px solid var(--line); border-radius: 40px; padding: 2px 9px; }
.pj__title { margin: 0; font-size: clamp(28px, 2.9vw, 48px); font-weight: 300; line-height: 1.1; letter-spacing: -.02em; }
html[lang="ar"] .pj__title { font-weight: 500; line-height: 1.3; letter-spacing: 0; }
.pj__desc { margin: 10px 0 0; max-width: 46ch; font-size: 13px; line-height: 1.7; color: var(--ink-2); }
.pj__did { margin: 16px 0 0; font-size: 12px; line-height: 1.4; color: var(--ink-3); }
html[lang="en"] .pj__did { letter-spacing: .12em; text-transform: uppercase; font-size: 10px; }
.pj__tags { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pj__tags li { font-size: 12px; line-height: 1; padding: 8px 13px; border: 1px solid var(--line); border-radius: 40px; color: var(--ink-2);
  opacity: 0; transform: translateY(10px);
  transition: opacity .6s var(--ease), transform .6s var(--ease), background .3s, border-color .3s, color .3s;
  transition-delay: calc(.35s + var(--i, 0) * .07s), calc(.35s + var(--i, 0) * .07s), 0s, 0s, 0s; }
.pj.in .pj__tags li { opacity: 1; transform: none; }
.pj__tags li:hover { border-color: rgba(239, 230, 216, .45); background: rgba(239, 230, 216, .07); color: var(--ink); transition-delay: 0s; }

/* ---------- reels: free horizontal strip ---------- */
.reels { overflow: hidden; }
.reels__nav { display: flex; gap: 8px; flex-shrink: 0; }
.reels__arrow { width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(239, 230, 216, .3); display: grid; place-items: center; font-size: 18px;
  transition: background .3s, color .3s, border-color .3s, opacity .3s; }
.reels__arrow:hover:not(:disabled) { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.reels__arrow:disabled { opacity: .3; cursor: default; }
html[dir="ltr"] .reels__arrow span { transform: scaleX(-1); display: block; }
.reels__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(24px, 4vh, 48px); }
.reels__track { display: flex; gap: clamp(14px, 2vw, 28px); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), calc((100vw - 1440px) / 2 + var(--gutter))); padding-inline: max(var(--gutter), calc((100vw - 1440px) / 2 + var(--gutter)));
  padding-bottom: 6px; scrollbar-width: none; cursor: grab; -webkit-overflow-scrolling: touch; }
.reels__track::-webkit-scrollbar { display: none; }
.reels__track.is-drag { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.reels__track.is-drag .card { pointer-events: none; }
.reels__track .card { flex: 0 0 auto; width: clamp(200px, calc(min(62vh, 560px) * 9 / 16), 320px); scroll-snap-align: start; }
.reels__track .card__meta { margin-top: 14px; }

/* ---------- process: four tonal columns on the grid ---------- */
.process__top { display: grid; grid-template-columns: repeat(4, 1fr); align-items: end; margin-bottom: clamp(32px, 4vw, 60px); }
.process__top > div:first-child { grid-column: span 3; }
.obj--bars { height: clamp(170px, 18vw, 260px); }
.process__steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.step { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); align-items: end; padding-block: clamp(16px, 1.6vw, 26px); border-bottom: 1px solid var(--line); }
.step__n { position: absolute; top: clamp(16px, 1.6vw, 26px); inset-inline-start: 0; font-family: "Elms Sans"; font-size: 12px; letter-spacing: .1em; color: var(--ink-3); transition: color .5s; }
.step__word { grid-column: 1 / span 3; width: fit-content; max-width: 100%; margin: 0; padding-inline-start: clamp(36px, 4vw, 60px); font-size: clamp(56px, 9.6vw, 140px); font-weight: 800; line-height: 1.16;
  color: transparent; -webkit-text-fill-color: transparent; -webkit-text-stroke: 1px rgba(239, 230, 216, .5); paint-order: stroke fill;
  background: linear-gradient(var(--fill-to, to right), var(--ink) var(--f, 0%), transparent var(--f, 0%)); -webkit-background-clip: text; background-clip: text; }
html[dir="rtl"] .step__word { --fill-to: to left; }
html[lang="en"] .step__word { font-family: "Elms Sans"; font-weight: 600; line-height: 1.04; letter-spacing: -.03em; text-transform: uppercase; }
.step p { grid-column: 4; margin: 0 0 clamp(8px, 1vw, 16px); font-size: 13px; line-height: 1.7; color: var(--ink-3); transition: color .5s; }
.step.on p { color: var(--ink-2); }
.step.on .step__n { color: var(--sand); }

/* ---------- orbit: words circling the blocks ---------- */
.services__head { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.orbit { position: relative; height: clamp(300px, 34vw, 480px); }
.orbit__obj { position: absolute; inset: 30%; }
.services { overflow-x: clip; }
.orbit__words { position: absolute; inset: 0; }
.orbit__words span { position: absolute; top: 50%; left: 50%; white-space: nowrap; font-size: clamp(13px, 1.25vw, 18px); will-change: transform, opacity; color: var(--ink); }

/* ---------- services: big 3D icons ---------- */
.services__list { margin-top: clamp(24px, 3vw, 44px); border-top: 1px solid var(--line); }
.svc { display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; padding-block: clamp(20px, 3vw, 40px); border-bottom: 1px solid var(--line); }
.svc__icon { aspect-ratio: 1; width: 100%; max-width: 260px; }
.svc > div:nth-child(2) { grid-column: 2 / span 2; padding-inline: 8px; }
.svc__n { font-family: "Elms Sans"; font-size: 12px; color: var(--ink-3); letter-spacing: .1em; display: block; margin-bottom: 8px; }
.svc h3 { margin: 0; font-size: clamp(30px, 4.2vw, 64px); font-weight: 300; line-height: 1.1; transition: color .4s; }
html[lang="ar"] .svc h3 { font-weight: 500; line-height: 1.3; }
.svc:hover h3 { color: var(--sand); }
.svc p { margin: 0; color: var(--ink-2); max-width: 34ch; }

/* ---------- clients grid (Tequila) ---------- */
.logos { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); margin-top: 8px; }
.cell { position: relative; aspect-ratio: 16 / 9; border-bottom: 1px solid var(--line); border-inline-end: 1px solid var(--line); overflow: hidden; }
.cell__logo { position: absolute; inset: 26% 22%; background: #efe6d8;
  -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  transition: transform .8s var(--ease), opacity .8s var(--ease); }
.cell__logo.is-leaving { transform: translateY(-60%); opacity: 0; }
.cell__logo.is-entering { transform: translateY(60%); opacity: 0; transition: none; }
.cell:hover .cell__logo:not(.is-leaving) { transform: scale(1.04); }
.cell::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(239, 230, 216, .08), transparent 60%); opacity: 0; transition: opacity .4s; }
.cell:hover::before { opacity: 1; }

/* ---------- contact (Cenima bookend) ---------- */
.contact { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding-top: clamp(140px, 16vw, 220px); }
.contact__inner { text-align: center; z-index: 1; }
.contact .display { max-width: 13ch; margin-inline: auto; }
.contact__links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 44px; }
.footer { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 28px; margin-top: 90px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.footer p { margin: 0; }
.footer .col__bars { opacity: 1; height: 16px; }
.footer a:hover { color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .work__head { position: static; }
  .chapters { grid-template-columns: 1fr; row-gap: 48px; }
  .pj--big, .pj--big.pj--alt, .pj--lab, .pj--solo { grid-column: 1; margin-inline: 0; }
  .pj--drop { margin-top: 0; }
  .pj--big .pj__media { aspect-ratio: 16 / 10; }
  .step { grid-template-columns: 1fr; }
  .step__word { grid-column: 1; padding-inline-start: 0; padding-top: 22px; font-size: clamp(56px, 13vw, 110px); }
  .step p { grid-column: 1; margin: 6px 0 0; max-width: 42ch; }
  .services__head { grid-template-columns: 1fr; }
  .svc > div:nth-child(2) { grid-column: auto; padding-inline: 0; }
  .svc { grid-template-columns: 120px 1fr; column-gap: 20px; }
  .svc p { grid-column: 2; }
}
@media (max-width: 640px) {
  :root { --bar: 56px; }
  .col__label { font-size: 13px; }
  .col--home .col__label { display: none; }
  .col:not(.col--home) .col__label::before { display: none; }
  .logos { grid-template-columns: repeat(2, 1fr); }
  .pj__num { font-size: 58px; }
  .pj__title { font-size: 26px; }
  .process__top > div:first-child { grid-column: span 4; }
  .process__top .obj--bars { grid-column: span 4; height: 170px; }
  .reels__arrow { width: 44px; height: 44px; }
  .reels__track .card { width: 62vw; }
  .pill { width: 100%; }
  .footer { flex-direction: column; text-align: center; margin-top: 60px; }
  .lang { bottom: 14px; inset-inline-end: 14px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .intro { display: none; }
  .reveal, .slice > .sl, .card__media > img { opacity: 1; transform: none; filter: none; }
  .slice > .sl--2, .slice > .sl--3 { display: none; }
  .slice > .sl--1 { clip-path: none; }
  .statement .w { opacity: 1; filter: none; transform: none; }
  .card__strips { display: none; }
  .hl__a, .hl__b { background: none; color: var(--ink); -webkit-text-fill-color: var(--ink); }
  .pj__media { clip-path: none; }
  .step__word { background: none; -webkit-text-fill-color: var(--ink); -webkit-text-stroke: 0; }
  .step p { color: var(--ink-2); }
  .ticker__row, .scrollcue i { animation: none; }
  .reels__track { overflow-x: auto; }
}

/* big cards: text and pills side by side so the section stays short */
@media (min-width: 961px) {
  .pj--big .pj__text { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(20px, 3vw, 48px); align-items: start; }
  .pj--big .pj__sector, .pj--big .pj__title, .pj--big .pj__desc { grid-column: 1; }
  .pj--big .pj__did { grid-column: 2; grid-row: 1; margin-top: 4px; }
  .pj--big .pj__tags { grid-column: 2; grid-row: 2 / span 2; margin-top: 2px; align-self: start; }
  .pj--lab .pj__media { aspect-ratio: 16 / 9; }
}
