/* MAR AI v8. One palette taken from the logo itself:
   maroon #7E1A1C (whole fields), gold #C9A25E (the one accent: every action), cream (type).
   Ground is a warm near-black so the three logo colours sit on it without fighting.
   No gradients, no glows, no thin rules: surfaces are separated by tone steps.
   Type: Noto Naskh Arabic for headings (echoes the calligraphic mark), IBM Plex Sans Arabic for text and Latin.
   Sizes: 14 · 17 · 20 · 26 · 48 · 76 (six, no more). */
:root {
  --ink: #140c0c; --ink-2: #1d1313; --ink-3: #281a1a;
  --maroon: #7e1a1c; --maroon-2: #6c1517;
  --gold: #c9a25e; --gold-2: #ddba7b;
  --cream: #f3ece6; --cream-2: #d6cbc2; --muted: #b0a49a; --on-maroon: #ecd9cc;
  --m: clamp(20px, 4vw, 64px);
  --f-head: "Noto Naskh Arabic", "IBM Plex Sans Arabic", serif;
  --f-text: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; margin: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--ink); color: var(--cream); font: 400 17px/1.65 var(--f-text); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 700; letter-spacing: 0; }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3 { font-family: var(--f-text); font-weight: 600; letter-spacing: -.015em; }
.wrap { max-width: 1360px; margin: 0 auto; padding: 0 var(--m); }
.skip { position: absolute; top: -60px; inset-inline-start: 16px; background: var(--gold); color: var(--ink); padding: 10px 16px; z-index: 50; border-radius: 999px; }
.skip:focus { top: 12px; }

.btn { height: 50px; padding: 0 24px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 600; border-radius: 999px; transition: background .2s, color .2s, transform .2s var(--ease); white-space: nowrap; }
.btn:hover { transform: translateY(-1px); } .btn:active { transform: scale(.98); }
.btn.gold { background: var(--gold); color: var(--ink); } .btn.gold:hover { background: var(--gold-2); }
.btn.line { box-shadow: inset 0 0 0 1.5px var(--cream-2); color: var(--cream); } .btn.line:hover { background: var(--cream); color: var(--ink); }
.btn.sm { height: 44px; padding: 0 20px; }
.btn svg { width: 20px; height: 20px; }

.top { background: var(--ink); }
.nav { display: flex; align-items: center; gap: 32px; height: 80px; }
.logo img { height: 40px; width: auto; }
.links { display: flex; gap: 28px; color: var(--cream-2); }
.links a { transition: color .2s; } .links a:hover { color: var(--cream); }
.end { margin-inline-start: auto; display: flex; align-items: center; gap: 18px; }
.lang { color: var(--cream-2); height: 44px; padding: 0 6px; transition: color .2s; } .lang:hover { color: var(--cream); }

.hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 56px; align-items: end; padding: 48px 0 56px; }
.hero h1 { font-size: clamp(40px, 5vw, 76px); line-height: 1.25; }
html[lang="en"] .hero h1 { line-height: 1.08; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero-side p { font-size: 20px; color: var(--cream-2); margin-bottom: 24px; max-width: 30em; }
.btns { display: flex; gap: 12px; flex-wrap: wrap; }
.reel { grid-column: 1 / -1; position: relative; aspect-ratio: 21 / 9; overflow: hidden; border-radius: 4px; background: var(--ink-2); text-align: start; }
.reel video { width: 100%; height: 100%; object-fit: cover; transform-origin: center; animation: drift 20s ease-in-out infinite alternate; }
@keyframes drift { to { transform: scale(1.06); } }
.reel-cap { position: absolute; inset-inline: 0; bottom: 0; padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; background: rgba(20, 12, 12, .72); }
.reel-cap b { display: block; font-family: var(--f-head); font-size: 20px; }
html[lang="en"] .reel-cap b { font-family: var(--f-text); font-weight: 600; }
.reel-cap small { color: var(--cream-2); font-size: 14px; }
.play { width: 52px; height: 52px; border-radius: 50%; background: var(--gold); color: var(--ink); display: grid; place-items: center; flex: none; transition: transform .3s var(--ease); }
.play svg { width: 22px; height: 22px; fill: currentColor; }
.reel:hover .play { transform: scale(1.08); }

.clients { display: flex; align-items: center; gap: 48px; padding: 24px 32px; background: var(--ink-2); border-radius: 4px; flex-wrap: wrap; }
.clients h2 { font: 400 14px/1.4 var(--f-text); color: var(--muted); letter-spacing: 0; }
.logos { display: flex; align-items: center; gap: 48px; flex-wrap: wrap; flex: 1; }
.logos img { height: 34px; width: auto; filter: brightness(0) invert(.9) sepia(.12); opacity: .85; }
.logos img.tall { height: 46px; } .logos img.round { height: 42px; border-radius: 50%; filter: grayscale(1) brightness(1.4); }

.block { padding: 120px 0; }
.head { display: flex; align-items: end; justify-content: space-between; gap: 16px 40px; margin-bottom: 40px; flex-wrap: wrap; }
.head h2 { font-size: clamp(34px, 3.4vw, 48px); line-height: 1.3; }
html[lang="en"] .head h2 { line-height: 1.1; }
.head p { color: var(--cream-2); max-width: 30em; }

.works { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px 16px; }
.w { grid-column: span 4; text-align: start; display: grid; align-content: start; gap: 14px; }
.w.big { grid-column: span 8; grid-row: span 2; grid-template-rows: 1fr auto; }
.w .pic { display: block; width: 100%; padding: 0; position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 4px; background: var(--ink-2); }
.w.big .pic { aspect-ratio: auto; height: 100%; min-height: 420px; }
.w .pic img, .w .pic video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), opacity .4s; }
.w .pic video { opacity: 0; }
.w:hover .pic video, .w.big .pic video { opacity: 1; }
.w:hover .pic img, .w:hover .pic video { transform: scale(1.03); }
.w .pic .play { position: absolute; bottom: 14px; inset-inline-end: 14px; width: 44px; height: 44px; }
.w h3 { font-size: 20px; line-height: 1.4; }
.w small { display: block; color: var(--muted); font-size: 14px; }

.originals { background: var(--ink-2); }
.posters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.poster { text-align: start; display: grid; gap: 12px; align-content: start; }
.poster .pic { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; background: var(--ink-3); }
.poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.poster:hover img { transform: scale(1.04); }
.poster b { font-family: var(--f-head); font-size: 20px; font-weight: 700; display: block; line-height: 1.4; }
html[lang="en"] .poster b { font-family: var(--f-text); font-weight: 600; }
.poster small { color: var(--muted); font-size: 14px; }

.svcs { background: var(--maroon); }
.svcs .head p { color: var(--on-maroon); }
.svc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.svc div { padding: 28px; background: var(--maroon-2); border-radius: 4px; }
.svc h3 { font-size: 26px; line-height: 1.4; margin-bottom: 8px; }
.svc p { color: var(--on-maroon); }
.webcase { margin-top: 12px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; background: var(--ink); padding: 40px; border-radius: 4px; }
.webcase h3 { font-size: clamp(26px, 2.4vw, 48px); line-height: 1.35; }
.webcase p { color: var(--on-maroon); margin: 12px 0 24px; }
.webshot { display: block; overflow: hidden; border-radius: 4px; }
.webshot img { width: 100%; height: auto; transition: transform .7s var(--ease); }
.webshot:hover img { transform: scale(1.02); }

.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.steps li { background: var(--ink-2); border-radius: 4px; padding: 28px; }
.steps b { display: block; font-family: var(--f-head); font-size: 26px; line-height: 1.4; margin-bottom: 8px; }
html[lang="en"] .steps b { font-family: var(--f-text); font-weight: 600; }
.steps p { color: var(--cream-2); }

.about .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.about-pic { border-radius: 4px; overflow: hidden; aspect-ratio: 4 / 5; }
.about-pic img { width: 100%; height: 100%; object-fit: cover; }
.about h2 { font-size: clamp(34px, 3.4vw, 48px); line-height: 1.3; margin-bottom: 20px; }
.about-txt p { color: var(--cream-2); font-size: 20px; max-width: 34em; }
.about-txt p + p { margin-top: 16px; }
.roles { list-style: none; padding: 0; margin-top: 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.roles li { background: var(--ink-2); border-radius: 4px; padding: 18px 20px; }
.roles b { display: block; font-weight: 600; } .roles span { color: var(--muted); font-size: 14px; }

.cta { background: var(--ink-2); text-align: center; }
.cta h2 { font-size: clamp(36px, 4.2vw, 76px); line-height: 1.3; }
html[lang="en"] .cta h2 { line-height: 1.08; }
.cta .wrap > p { color: var(--cream-2); margin: 16px auto 40px; max-width: 32em; font-size: 20px; }
.brief { max-width: 820px; margin: 0 auto; text-align: start; display: grid; gap: 24px; }
.brief fieldset { border: 0; padding: 0; }
.brief legend { font-weight: 600; margin-bottom: 12px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 999px; background: var(--ink-3); color: var(--cream-2); cursor: pointer; transition: background .2s, color .2s; }
.chips input:checked + span { background: var(--gold); color: var(--ink); font-weight: 600; }
.chips input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fields label { display: grid; gap: 8px; font-weight: 500; }
.fields input { height: 52px; border-radius: 12px; border: 0; background: var(--ink-3); color: var(--cream); padding: 0 16px; font-size: 17px; }
.fields input:focus { outline: 2px solid var(--gold); outline-offset: 0; }
.brief .btn { justify-self: start; }
.hint { color: var(--muted); font-size: 14px; }

.foot { padding: 64px 0 96px; }
.foot .wrap { display: grid; grid-template-columns: auto 1fr auto; gap: 16px 40px; align-items: center; }
.foot img { height: 44px; width: auto; }
.foot p { color: var(--muted); font-size: 14px; }
.foot p a { color: var(--cream-2); text-decoration: underline; text-underline-offset: 3px; }
.contact { display: flex; gap: 24px; flex-wrap: wrap; font-size: 14px; color: var(--cream-2); }
.contact a:hover { color: var(--gold); }
.copy { grid-column: 1 / -1; }

.wa-fab { position: fixed; bottom: 22px; inset-inline-end: 22px; height: 54px; padding: 0 20px; border-radius: 27px; background: var(--gold); color: var(--ink); font-weight: 600; display: flex; align-items: center; gap: 8px; z-index: 20; transition: transform .2s var(--ease), background .2s; }
.wa-fab:hover { background: var(--gold-2); transform: translateY(-2px); }
.wa-fab svg { width: 22px; height: 22px; }

.lightbox { position: fixed; inset: 0; z-index: 40; background: rgba(10, 6, 6, .92); display: grid; place-items: center; padding: 20px; opacity: 0; transition: opacity .3s; }
.lightbox.open { opacity: 1; }
.lb-in { width: min(1100px, 100%); display: grid; gap: 12px; }
.lb-frame { aspect-ratio: 16 / 9; background: #000; border-radius: 4px; overflow: hidden; }
.lightbox.vertical .lb-in { width: min(420px, 100%); } .lightbox.vertical .lb-frame { aspect-ratio: 9 / 16; max-height: 78vh; }
.lb-frame iframe { width: 100%; height: 100%; border: 0; }
.lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.lb-bar p { color: var(--cream-2); }
body.locked { overflow: hidden; }

/* entrance: the parts of each section rise in turn; without script everything is simply there */
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .posters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .links { display: none; } .nav { height: 68px; gap: 16px; } .logo img { height: 34px; }
  .hero { grid-template-columns: 1fr; gap: 20px; padding: 24px 0 40px; }
  .reel { aspect-ratio: 4 / 3; }
  .works { grid-template-columns: 1fr 1fr; gap: 28px 12px; }
  .w, .w.big { grid-column: span 2; grid-row: auto; } .w.big .pic { min-height: 0; aspect-ratio: 16 / 10; }
  .posters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc, .steps { grid-template-columns: 1fr; }
  .webcase, .about .wrap { grid-template-columns: 1fr; gap: 28px; } .webcase { padding: 24px; }
  .fields { grid-template-columns: 1fr; }
  .block { padding: 88px 0; }
  .clients { gap: 20px; padding: 20px; } .logos { gap: 28px; } .logos img { height: 26px; } .logos img.tall { height: 36px; }
  .foot .wrap { grid-template-columns: 1fr; }
  .roles { grid-template-columns: 1fr; }
  .wa-fab span { display: none; } .wa-fab { width: 56px; padding: 0; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reel video { animation: none; }
  .js .rv { opacity: 1; transform: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
