/* Layout: white, airy field with black type; space does the work. Media is the only "color". Two pinned scroll moments: the work gallery and the process. */
:root {
  --bg: #fbfbfa;
  --surface: #f1f1ef;
  --surface-2: #e7e7e4;
  --ink: #121212;
  --ink-2: #3a3a38;
  --mute: #8b8b87;
  --faint: #b9b9b5;
  --line: rgba(18, 18, 18, .09);
  --on-ink: #fbfbfa;

  --f-display-lat: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --f-body-lat: "Geist", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --f-display-ar: "Alexandria", "Bricolage Grotesque", Tahoma, sans-serif;
  --f-body-ar: "IBM Plex Sans Arabic", "Geist", Tahoma, sans-serif;
  --f-display: var(--f-display-lat);
  --f-body: var(--f-body-lat);

  --gutter: clamp(16px, 4vw, 64px);
  --max: 1480px;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  color-scheme: light;
}
html[lang="ar"] { --f-display: var(--f-display-ar); --f-body: var(--f-body-ar); }

* { box-sizing: border-box; }
html, body { background: var(--bg); color: var(--ink); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; font-family: var(--f-body); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { max-width: 100%; display: block; }
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(--ink); outline-offset: 4px; }
::selection { background: var(--ink); color: var(--on-ink); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
html[lang="ar"] .mono.ar { font-family: var(--f-body-ar); letter-spacing: 0; font-size: 13px; text-transform: none; }
.label { color: var(--mute); }
.flip { display: inline-block; }
html[dir="rtl"] .flip { transform: scaleX(-1); }
.display { font-family: var(--f-display); font-weight: 300; letter-spacing: -.03em; line-height: 1.04; margin: 0; text-wrap: balance; }
html[lang="ar"] .display { letter-spacing: 0; line-height: 1.32; }

/* ---------- Nav (Apple style: thin, translucent, centered links) ---------- */
.nav { position: fixed; inset-inline: 0; top: 0; z-index: 60; padding-top: env(safe-area-inset-top, 0px); background: rgba(251, 251, 250, .8); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); color: var(--ink); transition: background .4s, color .4s; }
.nav.on-dark:not(.scrolled) { background: rgba(22, 22, 23, .55); color: #f5f5f7; }
.nav-in { max-width: 1024px; margin-inline: auto; padding-inline: 22px; height: 44px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.logo { font-family: var(--f-display-lat); font-weight: 500; font-size: 14px; letter-spacing: .2em; justify-self: start; }
.logo { display: inline-flex; align-items: center; line-height: 0; color: var(--ink); }
.logo-mark { height: 11px; width: auto; display: block; }
@media (max-width: 767px) { .logo-mark { height: 8px; } }
/* over the dark hero (before scrolling) the mark turns light so it stays visible */
.nav.on-dark:not(.scrolled) .logo { color: #f5f5f7; }
.nav-links { display: flex; align-items: center; gap: clamp(24px, 3.6vw, 44px); justify-self: center; }
.nav-links a { font-size: 12px; opacity: .8; transition: opacity .3s; letter-spacing: -.01em; }
html[lang="ar"] .nav-links a { font-size: 13px; letter-spacing: 0; }
.nav-links a:hover { opacity: 1; }
.nav-end { justify-self: end; display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; align-items: center; gap: 2px; }
.lang button { padding: 4px 6px; opacity: .55; transition: opacity .3s; font-family: var(--f-body-lat); font-size: 11px; letter-spacing: .04em; }
.lang button[lang="ar"] { font-family: var(--f-body-ar); font-size: 12px; letter-spacing: 0; }
.lang button.on { opacity: 1; font-weight: 600; }
.lang i { width: 1px; height: 10px; background: currentColor; opacity: .3; }
.burger { display: none; width: 32px; height: 32px; position: relative; margin-inline-end: -6px; }
.burger span { position: absolute; inset-inline: 8px; height: 1.2px; border-radius: 1px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); }
.burger span:first-child { top: 12px; } .burger span:last-child { top: 19px; }
.menu-open .burger span:first-child { top: 15.5px; transform: rotate(45deg); }
.menu-open .burger span:last-child { top: 15.5px; transform: rotate(-45deg); }
.menu-open .nav { background: var(--bg); color: var(--ink); }
.mobile-menu { position: fixed; inset: 0; z-index: 55; background: var(--bg); padding: calc(44px + env(safe-area-inset-top, 0px)) 0 40px; opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s; }
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mm-in { padding: 24px 48px; display: flex; flex-direction: column; gap: 6px; }
.mobile-menu a { font-family: var(--f-display); font-size: 28px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; opacity: 0; transform: translateY(-8px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
html[lang="ar"] .mobile-menu a { letter-spacing: 0; line-height: 1.6; }
.menu-open .mobile-menu a { opacity: 1; transform: none; }
.menu-open .mobile-menu a:nth-child(2) { transition-delay: .04s; } .menu-open .mobile-menu a:nth-child(3) { transition-delay: .08s; } .menu-open .mobile-menu a:nth-child(4) { transition-delay: .12s; }

/* Local nav (Apple product-page bar): sticks under the main nav with a blurred background */
.lnav { position: sticky; top: 44px; z-index: 50; margin-top: 44px; background: rgba(251, 251, 250, .72); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(18, 18, 18, .12); }
.lnav-in { max-width: 1024px; margin-inline: auto; padding-inline: 22px; height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lnav-t { font-family: var(--f-display); font-size: 21px; font-weight: 500; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
html[lang="ar"] .lnav-t { letter-spacing: 0; font-size: 19px; }
.lnav-r { display: flex; align-items: center; gap: 22px; font-size: 12px; flex: none; }
html[lang="ar"] .lnav-r { font-size: 13px; }
.lnav-r a { opacity: .8; transition: opacity .3s; }
.lnav-r a:hover { opacity: 1; }
.lnav-r .lnav-pill { opacity: 1; background: var(--ink); color: var(--on-ink); border-radius: 980px; padding: 4px 12px; }
.lnav + .page-top { padding-top: clamp(56px, 8vw, 110px); }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100svh; min-height: 600px; max-height: 1200px; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media video, .hero-media canvas { width: 100%; height: 100%; object-fit: cover; }
.hero-media { transform: scale(1.06); transition: transform 2.8s var(--ease); }
.loaded .hero-media { transform: scale(1); }
.hero.has-video { color: var(--on-ink); }
.hero.has-video::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.28), rgba(0,0,0,0) 30%, rgba(0,0,0,.42)); }
.hero .wrap { padding-bottom: clamp(48px, 9vh, 112px); }
.hero-role { display: block; margin-bottom: clamp(20px, 3vh, 36px); opacity: .6; }
.hero h1 { font-size: clamp(56px, 10.5vw, 176px); font-weight: 200; line-height: .96; letter-spacing: -.045em; }
html[lang="ar"] .hero h1 { font-size: clamp(50px, 8.6vw, 144px); line-height: 1.2; font-weight: 200; letter-spacing: 0; }
.hero h1 em { font-style: normal; font-weight: 500; }
.line { display: block; overflow: hidden; padding-bottom: .06em; }
.line > span { display: inline-block; transform: translateY(108%); transition: transform 1.3s var(--ease); }
.loaded .line > span { transform: none; }
.line:nth-child(2) > span { transition-delay: .14s; }
.hero-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-top: clamp(28px, 5vh, 56px); }
.hero-sub { max-width: 460px; margin: 0; font-size: clamp(15px, 1.2vw, 18px); opacity: .7; }
.fade { opacity: 0; transform: translateY(12px); transition: opacity 1.2s var(--ease) .7s, transform 1.2s var(--ease) .7s; }
.loaded .fade { opacity: 1; transform: none; }
.cue { display: inline-flex; flex-direction: column; align-items: center; gap: 12px; opacity: .55; flex: none; }
.cue i { width: 1px; height: 44px; background: currentColor; opacity: .25; position: relative; overflow: hidden; }
.cue i::after { content: ""; position: absolute; inset: 0; background: currentColor; animation: drip 2.4s var(--ease-io) infinite; }
@keyframes drip { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ---------- Intro film (expands to full-bleed on scroll) ---------- */
.intro { padding-top: clamp(96px, 12vw, 180px); }
.intro-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 64px); }
.intro-head h2 { font-size: clamp(32px, 4vw, 60px); margin-top: 16px; }
.film-bleed { width: 100%; }
.film { position: relative; aspect-ratio: 16 / 9; width: 100%; background: var(--surface); overflow: hidden; }
.film-bleed .film { clip-path: inset(var(--cy, 0%) var(--cx, 0%) round var(--cr, 0px)); will-change: clip-path; }
/* Showreel (tablet + desktop): the film opens up to fill the whole screen, then scrolls on normally (no hold) */
.film-bleed.pinned .film { height: 100vh; height: 100dvh; aspect-ratio: auto; background: #0b0b0b; }
@media (orientation: portrait) {
  .film-bleed.pinned .film video, .film-bleed.pinned .film > img { object-fit: contain; }
}
.film video, .film iframe, .film > img, .film > .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.film .play { position: absolute; inset: 0; display: grid; place-items: center; z-index: 2; }
.play-disc { width: clamp(84px, 9vw, 128px); aspect-ratio: 1; border-radius: 50%; background: var(--bg); color: var(--ink); display: grid; place-items: center; gap: 0; transition: transform .7s var(--ease); box-shadow: 0 20px 60px rgba(0,0,0,.08); }
.play:hover .play-disc { transform: scale(1.1); }
.play-disc svg { width: 20%; margin-inline-start: 6%; }
html[dir="rtl"] .play-disc svg { margin-inline-start: 0; margin-inline-end: 6%; transform: none; }
.film-note { position: absolute; inset-inline-start: 24px; bottom: 20px; z-index: 2; color: var(--mute); pointer-events: none; }
.film.playing .play, .film.playing .film-note { display: none; }

/* placeholder art (shown until real images are added) */
.ph { background: var(--ph, var(--surface)); display: grid; place-items: center; overflow: hidden; position: relative; }
.ph::before { content: ""; position: absolute; inset: -10%; background: radial-gradient(55% 45% at var(--px, 30%) var(--py, 40%), rgba(255,255,255,.9), transparent 70%), radial-gradient(40% 40% at calc(100% - var(--px, 30%)) 85%, rgba(18,18,18,.05), transparent 70%); }
.ph b { position: relative; z-index: 1; font-family: var(--f-display-lat); font-weight: 200; font-size: clamp(48px, 9vw, 160px); letter-spacing: -.05em; color: rgba(18,18,18,.09); line-height: 1; user-select: none; }

/* ---------- Statement ---------- */
.statement { padding-block: clamp(120px, 16vw, 240px); }
.statement p { font-size: clamp(30px, 4.4vw, 70px); line-height: 1.16; margin: 28px 0 0; max-width: 21ch; }
html[lang="ar"] .statement p { line-height: 1.5; max-width: 23ch; }
.statement .w { color: var(--faint); transition: color .35s linear; }
.statement .w.on { color: var(--ink); }

/* ---------- Latest Instagram posts ---------- */
.insta { padding-top: clamp(96px, 12vw, 180px); }
.insta-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 52px); }
.insta-head h2 { font-size: clamp(32px, 4vw, 60px); margin-top: 16px; }
.insta-follow { display: inline-flex; align-items: center; gap: 8px; color: var(--mute); transition: color .3s; }
.insta-follow:hover { color: var(--ink); }
.ig-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 32px); }
.ig-card { display: block; opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * .08s); }
.ig-grid.in .ig-card { opacity: 1; transform: none; }
.ig-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 28px; background: var(--surface); isolation: isolate; -webkit-mask-image: -webkit-radial-gradient(white, black); }
.ig-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.4s var(--ease); }
.ig-card:hover .ig-media img { transform: scale(1.05); }
.ig-badge { position: absolute; top: 16px; inset-inline-end: 16px; width: 34px; height: 34px; border-radius: 50%; background: var(--bg); color: var(--ink); display: grid; place-items: center; }
.ig-badge svg { width: 10px; margin-inline-start: 2px; }
.ig-cap { margin: 14px 0 0; color: var(--mute); font-size: 14px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 767px) {
  .ig-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .ig-grid::-webkit-scrollbar { display: none; }
  .ig-card { flex: none; width: 78%; scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) { .ig-card { opacity: 1; transform: none; transition: none; } }

/* ---------- Work (pinned horizontal gallery) ---------- */
.work { position: relative; }
.work-pin { position: relative; }
.work.pinned .work-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.work-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(28px, 4vh, 48px); }
.work-head h2 { font-size: clamp(36px, 5vw, 80px); margin-top: 14px; }
.work-count { display: flex; align-items: center; gap: 16px; color: var(--mute); }
.work-count .bar { width: clamp(80px, 10vw, 160px); height: 1px; background: var(--line); position: relative; overflow: hidden; }
.work-count .bar i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(var(--wp, .2)); }
html[dir="rtl"] .work-count .bar i { transform-origin: right; }
.track { display: flex; gap: clamp(20px, 2.4vw, 40px); padding-inline: var(--gutter); will-change: transform; }
.work:not(.pinned) .track { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 8px; }
.work:not(.pinned) .track::-webkit-scrollbar { display: none; }
.card { flex: none; width: clamp(270px, 27vw, 430px); scroll-snap-align: start; display: block; }
.card-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); max-height: 58vh; width: 100%; border-radius: 28px; isolation: isolate; -webkit-mask-image: -webkit-radial-gradient(white, black); transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.card:hover .card-media { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0, 0, 0, .10); }
.work.pinned .card-media { aspect-ratio: auto; height: 56vh; }
.card-media > .inner { position: absolute; inset: 0; transition: transform 1.4s var(--ease), filter .8s; }
.card-media img, .card-media .ph { width: 100%; height: 100%; object-fit: cover; }
.card:hover .card-media > .inner { transform: scale(1.06); }
.card-enter { position: absolute; inset-inline-start: 18px; bottom: 18px; z-index: 2; background: var(--bg); color: var(--ink); border-radius: 999px; padding: 9px 16px; font-size: 13px; display: inline-flex; gap: 10px; align-items: center; opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.card:hover .card-enter, .card:focus-visible .card-enter { opacity: 1; transform: none; }
.card-info { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 16px; padding-top: 18px; align-items: baseline; }
.card-n { color: var(--mute); grid-row: span 2; }
.card-info h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(20px, 1.7vw, 26px); line-height: 1.25; margin: 0; letter-spacing: -.01em; }
html[lang="ar"] .card-info h3 { letter-spacing: 0; line-height: 1.5; }
.card-info span.c { color: var(--mute); font-size: 14px; }
.track-end { flex: none; width: clamp(200px, 18vw, 280px); display: flex; align-items: center; color: var(--mute); }

/* ---------- Process (pinned accordion) ---------- */
.process { position: relative; }
.process-pin { padding-block: clamp(96px, 12vw, 160px); }
.process.pinned .process-pin { position: sticky; top: 0; height: 100vh; padding-block: 96px 48px; display: flex; flex-direction: column; justify-content: center; }
.process-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(28px, 4vh, 48px); }
.process-head h2 { font-size: clamp(32px, 4vw, 64px); margin-top: 14px; max-width: 16ch; }
.process-head p { color: var(--ink-2); max-width: 42ch; margin: 0; opacity: .75; }
.panels { display: flex; gap: 8px; height: min(56vh, 520px); }
.panel { position: relative; flex: 1 1 0; min-width: 0; background: var(--surface); overflow: hidden; text-align: start; transition: flex-grow .9s var(--ease), background .6s var(--ease), color .6s var(--ease); display: block; }
.panel.on { flex-grow: 5.5; background: var(--ink); color: var(--on-ink); }
.panel:not(.on):hover { background: var(--surface-2); }
.p-n { position: absolute; top: 22px; inset-inline-start: 22px; opacity: .55; font-variant-numeric: tabular-nums; }
.p-vert { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); writing-mode: vertical-rl; font-family: var(--f-display); font-size: clamp(16px, 1.3vw, 20px); white-space: nowrap; transition: opacity .4s; max-height: calc(100% - 90px); overflow: hidden; }
html[lang="en"] .p-vert { transform: translateX(-50%) rotate(180deg); }
.panel.on .p-vert { opacity: 0; }
.panel.on .p-big { opacity: .16; transition-delay: .3s; }
.p-body { position: absolute; inset-inline: clamp(24px, 3vw, 48px); bottom: clamp(24px, 3vw, 44px); opacity: 0; transform: translateY(16px); transition: opacity .3s, transform .3s; pointer-events: none; }
.panel.on .p-body { opacity: 1; transform: none; transition: opacity .7s var(--ease) .35s, transform .9s var(--ease) .35s; }
.p-big { opacity: 0; transition: opacity .6s; font-family: var(--f-display-lat); font-weight: 200; font-size: clamp(72px, 9vw, 150px); line-height: .9; letter-spacing: -.05em; position: absolute; top: clamp(24px, 3vw, 44px); inset-inline-end: clamp(24px, 3vw, 48px); }
.p-body h3 { font-family: var(--f-display); font-weight: 300; font-size: clamp(32px, 3.4vw, 56px); line-height: 1.1; margin: 0; letter-spacing: -.02em; }
html[lang="ar"] .p-body h3 { letter-spacing: 0; line-height: 1.4; }
.p-body .en { opacity: .45; margin-top: 8px; display: block; }
.p-body p { margin: 16px 0 0; max-width: 40ch; opacity: .72; font-size: 16px; }
.p-progress { display: flex; gap: 8px; margin-top: 18px; }
.p-arrows { display: none; }
.p-progress i { flex: 1; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.p-progress i::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleX(var(--f, 0)); transform-origin: left; }
html[dir="rtl"] .p-progress i::after { transform-origin: right; }

/* ---------- Rule ---------- */
.rule { padding-block: clamp(120px, 15vw, 220px); }
.rule-lines { margin-top: 32px; }
.rule-line { display: flex; align-items: baseline; gap: clamp(16px, 3vw, 40px); padding-block: clamp(10px, 1.4vw, 18px); }
.rule-line .mono { color: var(--mute); flex: none; width: 2.6em; }
.rule-line .display { font-size: clamp(36px, 6.4vw, 108px); line-height: 1.08; }
html[lang="ar"] .rule-line .display { line-height: 1.4; }
.rule-line .display { color: var(--faint); transition: color .6s; }
.rule-line.in .display { color: var(--ink); transition-delay: calc(var(--i, 0) * 120ms + .3s); }
.rule-end { margin-top: clamp(40px, 6vw, 80px); color: var(--mute); max-width: 44ch; }

/* ---------- Contact (quiet) ---------- */
.contact { padding-block: clamp(96px, 12vw, 180px) 40px; border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.mail { font-family: var(--f-display-lat); font-weight: 200; font-size: clamp(30px, 5vw, 80px); letter-spacing: -.03em; line-height: 1.1; direction: ltr; unicode-bidi: isolate; display: inline-block; margin-top: 20px; position: relative; }
.mail::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.mail:hover::after { transform: scaleX(1); }
.socials { display: flex; flex-direction: column; justify-self: end; gap: 6px; min-width: 220px; }
.socials a { display: flex; justify-content: space-between; gap: 24px; padding-block: 10px; border-bottom: 1px solid var(--line); color: var(--ink-2); transition: color .3s, padding .5s var(--ease); }
.socials a:hover { color: var(--ink); padding-inline-start: 8px; }
.copy { margin-top: 18px; color: var(--mute); }
.copy:hover { color: var(--ink); }
footer { padding-block: 64px 40px; color: var(--mute); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Category page ---------- */
.page-top { padding-top: clamp(130px, 16vh, 180px); }
.crumbs { display: flex; gap: 10px; color: var(--mute); flex-wrap: wrap; align-items: center; }
.crumbs a { transition: color .3s; } .crumbs a:hover { color: var(--ink); }
.page-title { font-size: clamp(48px, 8vw, 132px); margin-top: 28px; }
.page-lede { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-top: 32px; flex-wrap: wrap; }
.page-lede p { margin: 0; color: var(--ink-2); max-width: 52ch; font-size: 17px; opacity: .8; }
.banner { margin-top: clamp(48px, 6vw, 88px); aspect-ratio: 21 / 8; position: relative; overflow: hidden; background: var(--surface); border-radius: 28px; }
.banner > .inner { position: absolute; inset: -10% 0; }
.banner img, .banner .ph { width: 100%; height: 100%; object-fit: cover; }
/* project boxes: rounded tile, info on top centered, image at the bottom */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.proj { display: flex; flex-direction: column; background: var(--surface); border-radius: 28px; overflow: hidden; text-align: center; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.proj:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0, 0, 0, .08); }
.proj.wide { grid-column: 1 / -1; }
.proj-info { padding: clamp(32px, 4vw, 48px) 24px 0; display: flex; flex-direction: column; align-items: center; }
.proj-tag { font-size: 13px; font-weight: 600; color: var(--mute); }
.proj-info h3 { font-family: var(--f-display); font-weight: 500; font-size: clamp(26px, 2.8vw, 40px); margin: 6px 0 0; line-height: 1.12; letter-spacing: -.02em; }
html[lang="ar"] .proj-info h3 { letter-spacing: 0; line-height: 1.4; }
.proj-sub { margin-top: 8px; color: var(--ink-2); font-size: 15px; }
.proj-link { margin-top: 14px; font-size: 15px; color: var(--ink); border-bottom: 1px solid transparent; transition: border-color .3s; }
.proj:hover .proj-link { border-color: currentColor; }
.chev { display: inline-block; }
html[dir="rtl"] .chev { transform: scaleX(-1); }
.proj-media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; margin-top: clamp(28px, 3vw, 40px); background: var(--surface-2); }
.proj.wide .proj-media { aspect-ratio: 21 / 9; }
.proj-media > .inner { position: absolute; inset: 0; transition: transform 1.4s var(--ease); }
.proj-media img, .proj-media .ph { width: 100%; height: 100%; object-fit: cover; }
.proj:hover .proj-media > .inner { transform: scale(1.04); }
.more { margin-top: clamp(96px, 12vw, 180px); }
.more-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.more-row a { display: block; }
.more-row a .proj-media { aspect-ratio: 1; margin-top: 0; border-radius: 22px; }
.more-row a h4 { font-family: var(--f-display); font-weight: 500; font-size: 17px; margin: 12px 0 0; line-height: 1.4; }

/* ---------- Reels (vertical 9:16): video with its details beside it ---------- */
.reels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.reel { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: clamp(20px, 2.4vw, 32px); align-items: end; background: var(--surface); border-radius: 28px; padding: 16px; padding-inline-end: clamp(20px, 2.4vw, 32px); }
.reel-media { position: relative; aspect-ratio: 9 / 16; width: 100%; max-width: 100%; overflow: hidden; background: var(--surface-2); border-radius: 18px; }
.reel-media video, .reel-media .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel-play { position: absolute; inset: 0; display: grid; place-items: center; z-index: 2; background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.25)); transition: opacity .4s; }
.reel-play .play-disc { width: 64px; }
.reel-media.active .reel-play { opacity: 0; pointer-events: none; }
.reel-empty { position: absolute; inset-inline: 0; bottom: 18px; text-align: center; color: var(--mute); z-index: 1; }
.reel-info { padding-bottom: 6px; min-width: 0; }
.reel-head { display: flex; flex-direction: column; gap: 6px; }
.reel-head .mono { color: var(--mute); }
.reel-head h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(22px, 2vw, 32px); line-height: 1.25; margin: 0; letter-spacing: -.01em; }
html[lang="ar"] .reel-head h3 { letter-spacing: 0; line-height: 1.5; }
.reel-tag { display: inline-block; margin-top: 10px; font-size: 12px; color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.reel-meta { margin: 18px 0 0; }
.reel-meta div { padding-block: 10px; border-top: 1px solid rgba(18,18,18,.12); }
.reel-meta dt { color: var(--mute); margin-bottom: 2px; }
.reel-meta dd { margin: 0; font-size: 15px; color: var(--ink-2); }

/* ---------- Project page ---------- */
.p-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.p-meta dt { color: var(--mute); margin-bottom: 6px; }
.p-meta dd { margin: 0; font-size: 15px; }
.p-film { margin-top: clamp(40px, 5vw, 72px); }
.story { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 120px); }
.story h2 { font-size: clamp(32px, 3.4vw, 54px); margin-top: 14px; }
.story-rows { margin: 0; }
.story-row { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 24px; padding-block: 26px; border-top: 1px solid var(--line); }
.story-row dt { color: var(--mute); padding-top: 6px; }
.story-row dd { margin: 0; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; color: var(--ink-2); }
.story-row.idea dd { font-family: var(--f-display); font-weight: 300; font-size: clamp(24px, 2.3vw, 36px); line-height: 1.3; color: var(--ink); letter-spacing: -.015em; }
html[lang="ar"] .story-row.idea dd { letter-spacing: 0; line-height: 1.65; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); margin-top: 28px; }
.gallery button { display: block; position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface); width: 100%; }
.gallery button:first-child { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
.gallery button > .inner { position: absolute; inset: 0; transition: transform 1.2s var(--ease); }
.gallery button:hover > .inner { transform: scale(1.04); }
.gallery img, .gallery .ph { width: 100%; height: 100%; object-fit: cover; }
.next { display: block; padding-block: clamp(80px, 10vw, 160px); border-top: 1px solid var(--line); margin-top: clamp(80px, 10vw, 160px); }
.next .mono { color: var(--mute); }
.next h3 { font-size: clamp(44px, 7vw, 116px); margin-top: 18px; display: flex; justify-content: space-between; align-items: center; gap: 24px; transition: transform .8s var(--ease); }
.next:hover h3 { transform: translateX(16px); }
html[dir="rtl"] .next:hover h3 { transform: translateX(-16px); }

/* ---------- Lightbox / curtain / cursor ---------- */
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(251,251,250,.97); display: grid; place-items: center; padding: 72px var(--gutter); opacity: 0; pointer-events: none; transition: opacity .4s; }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lb-img { width: 100%; max-width: 1400px; aspect-ratio: 16 / 10; max-height: 100%; position: relative; overflow: hidden; transform: scale(.97); transition: transform .6s var(--ease); }
.lightbox.open .lb-img { transform: none; }
.lb-img img, .lb-img .ph { width: 100%; height: 100%; object-fit: contain; }
.lb-close { position: absolute; top: 24px; inset-inline-end: var(--gutter); color: var(--mute); }
.lb-close:hover { color: var(--ink); }
.curtain { position: fixed; inset: 0; z-index: 90; background: var(--ink); transform: scaleY(0); transform-origin: bottom; pointer-events: none; }
.curtain.in { transform: scaleY(1); transition: transform .6s var(--ease-io); }
.curtain.out { transform: scaleY(0); transform-origin: top; transition: transform .7s var(--ease-io); }
.c-logo { position: absolute; inset: 0; display: grid; place-items: center; color: var(--on-ink); font-family: var(--f-display-lat); letter-spacing: .08em; font-size: 22px; opacity: 0; transition: opacity .25s; }
.curtain.in .c-logo { opacity: 1; transition-delay: .3s; }

.js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-reveal="clip"] { opacity: 1; transform: none; clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease-io); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-reveal="clip"].in { clip-path: inset(0); }
.js [data-reveal="clip"] > .inner > * { transform: scale(1.15); transition: transform 1.9s var(--ease); }
.js [data-reveal="clip"].in > .inner > * { transform: none; }

.cursor { position: fixed; top: 0; left: 0; z-index: 100; pointer-events: none; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--ink); transition: width .5s var(--ease), height .5s var(--ease), margin .5s var(--ease); display: grid; place-items: center; }
.cursor span { font-size: 12px; color: var(--on-ink); opacity: 0; transition: opacity .3s; white-space: nowrap; }
.cursor.big { width: 88px; height: 88px; margin: -44px 0 0 -44px; }
.cursor.big span { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-in { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .burger { display: block; }
  .process-head, .work-head { flex-direction: column; align-items: flex-start; }
  .panels { flex-direction: row; height: auto; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .panels::-webkit-scrollbar { display: none; }
  .panel { flex: 0 0 82%; min-height: 380px; border-radius: 24px; background: var(--surface); color: var(--ink); padding: 26px; scroll-snap-align: start; display: flex; flex-direction: column; justify-content: space-between; }
  .panel.on { flex-grow: 0; background: var(--surface); color: var(--ink); }
  .panel:last-child { background: var(--ink); color: var(--on-ink); }
  .p-n { position: static; display: block; }
  .p-vert { display: none; }
  .p-big { position: static; opacity: .14; align-self: flex-end; font-size: 120px; order: 3; }
  html[dir="rtl"] .p-big { align-self: flex-start; }
  .panel.on .p-big { opacity: .14; }
  .p-body { position: static; opacity: 1; transform: none; margin-top: 10px; pointer-events: auto; }
  .p-body h3 { font-size: 30px; }
  .p-progress { display: none; }
  .p-arrows { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; color: var(--mute); }
  .p-btns { display: flex; gap: 12px; }
  .p-btns button { width: 36px; height: 36px; border-radius: 50%; background: rgba(18,18,18,.08); color: var(--ink); display: grid; place-items: center; transition: background .3s; }
  .p-btns button:active { background: rgba(18,18,18,.16); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lang button { font-size: 11px; padding: 4px 5px; }
  .lang button[lang="ar"] { font-size: 12px; }
  .reels { grid-template-columns: minmax(0, 1fr); }
  .reel { grid-template-columns: minmax(0, 280px) minmax(0, 1fr); }
  .more-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story { grid-template-columns: minmax(0, 1fr); }
  .story-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .p-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .socials { justify-self: stretch; }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .reel { grid-template-columns: minmax(0, 46%) minmax(0, 1fr); gap: 16px; padding: 12px; border-radius: 24px; }
  .proj { border-radius: 24px; }
  .proj.wide .proj-media { aspect-ratio: 16 / 10; }
  .reel-head h3 { font-size: 19px; }
  .reel-meta dd { font-size: 14px; }
  .reel-play .play-disc { width: 52px; }
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .gallery button:first-child { aspect-ratio: 4 / 3; }
  .banner { aspect-ratio: 4 / 3; }
  .hero-foot { flex-direction: column; align-items: flex-start; }
  .cue { display: none; }
  .card { width: 78vw; }
  .lnav-in { height: 48px; }
  .lnav-t { font-size: 17px; }
  html[lang="ar"] .lnav-t { font-size: 16px; }
  .lnav-r { gap: 14px; }
  .card-media { border-radius: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; clip-path: none; }
  .line > span, .fade { transform: none; opacity: 1; }
}
