/* ==========================================================================
   Abed Makhlouf — Portfolio
   الألوان الأساسية في :root — غيّر --accent لو عايز لون مختلف للموقع كله
   ========================================================================== */

@property --bg    { syntax: "<color>"; inherits: true; initial-value: #0d0b09; }
@property --fg    { syntax: "<color>"; inherits: true; initial-value: #f2eadf; }
@property --muted { syntax: "<color>"; inherits: true; initial-value: #9a9084; }
@property --line  { syntax: "<color>"; inherits: true; initial-value: rgba(242, 234, 223, .14); }
@property --card  { syntax: "<color>"; inherits: true; initial-value: #17130f; }
@property --accent { syntax: "<color>"; inherits: true; initial-value: #e9a55f; }
@property --sweep { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

:root {
  /* dark (default) */
  --bg: #0d0b09;
  --fg: #f2eadf;
  --muted: #9a9084;
  --line: rgba(242, 234, 223, .14);
  --card: #17130f;

  /* brand */
  --accent: #e9a55f;        /* tungsten amber — لون الموقع الأساسي */
  --rec: #ff4b2b;
  --ink: #16120e;
  --cream: #f2eadf;
  --night: #0d0b09;
  --heritage: #9e2f24;      /* أحمر السدو */

  --f-display: "Clash Display", "Alexandria", system-ui, sans-serif;
  --f-body: "Satoshi", "Alexandria", system-ui, sans-serif;
  --f-serif: "Instrument Serif", "Aref Ruqaa", Georgia, serif;
  --f-mono: "JetBrains Mono", "Alexandria", ui-monospace, monospace;
  --f-code: "JetBrains Mono", ui-monospace, monospace;   /* timecodes & counters — Latin in both languages */

  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.83, 0, .17, 1);
  --pad: clamp(18px, 4vw, 64px);
  --radius: clamp(14px, 1.6vw, 24px);
  --flip: 1;                /* -1 in Arabic: mirrors arrows and slide directions */

  transition: --bg .9s var(--ease), --fg .9s var(--ease), --muted .9s var(--ease),
              --line .9s var(--ease), --card .9s var(--ease), --accent .9s var(--ease);
}

:root.is-light {
  --bg: #efe7da;
  --fg: #16120e;
  --muted: #6d6358;
  --line: rgba(22, 18, 14, .14);
  --card: #e3d8c7;
}

/* ---------- Arabic ---------- */
html[lang="ar"] {
  --f-display: "Alexandria", system-ui, sans-serif;
  --f-body: "Alexandria", system-ui, sans-serif;
  --f-serif: "Aref Ruqaa", "Alexandria", serif;
  --f-mono: "Alexandria", system-ui, sans-serif;
  --flip: -1;
}
html[lang="ar"] body { line-height: 1.75; }
html[lang="ar"] *:not(.hud):not(.hud *):not(.film__hud):not(.film__hud *) { letter-spacing: 0 !important; }
html[lang="ar"] .label, html[lang="ar"] .tags, html[lang="ar"] .hero__eyebrow, html[lang="ar"] .hero__role,
html[lang="ar"] .stat__label, html[lang="ar"] .gcard__cap, html[lang="ar"] .aicard__badge,
html[lang="ar"] .brand__industry, html[lang="ar"] .hero__scroll, html[lang="ar"] .reels__hint,
html[lang="ar"] .lb__close, html[lang="ar"] .cursor__label, html[lang="ar"] .footer__bottom { text-transform: none; }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
body.is-loading { overflow: hidden; }
img, video, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
em { font-style: normal; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
svg path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
svg path.fill { fill: currentColor; stroke: none; }
.arr { transform: scaleX(var(--flip)); }

html.has-cursor, html.has-cursor * { cursor: none !important; }
html.has-cursor .lb iframe { cursor: auto !important; }

.wrap { padding-inline: var(--pad); max-width: 1760px; margin-inline: auto; }
section { position: relative; }

/* ---------- Shared type ---------- */
.label {
  display: flex; align-items: center; gap: .75em;
  font-family: var(--f-mono); font-size: 12px; font-weight: 400;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
html[lang="ar"] .label { font-size: 14px; }

.sec-head {
  display: grid; grid-template-columns: 1fr auto; align-items: end;
  gap: 28px 48px; margin-bottom: clamp(44px, 6vw, 96px);
}
.sec-head .label { grid-column: 1 / -1; }
.sec-title {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(52px, 8.6vw, 150px); line-height: .92; letter-spacing: -.035em;
}
.sec-title em, .contact__title em, .statement em, .footer__word em, .reels__end em {
  font-family: var(--f-serif); font-style: italic; font-weight: 400;
  letter-spacing: -.01em; color: var(--accent); padding-right: .04em;
}
.sec-sub { max-width: 420px; color: var(--muted); font-size: 16px; line-height: 1.55; }
html[lang="ar"] .sec-title { font-weight: 700; line-height: 1.18; font-size: clamp(46px, 7.6vw, 132px); }
html[lang="ar"] .sec-title em, html[lang="ar"] .contact__title em, html[lang="ar"] .statement em,
html[lang="ar"] .footer__word em, html[lang="ar"] .reels__end em { font-style: normal; font-weight: 700; padding: 0; }
html[lang="ar"] .sec-sub { font-size: 17px; line-height: 1.8; }

[data-split] > div { padding-bottom: .07em; margin-bottom: -.07em; padding-inline: .08em; margin-inline: -.08em; }
html[lang="ar"] [data-split] > div { padding-bottom: .22em; margin-bottom: -.22em; padding-top: .12em; margin-top: -.12em; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 26px; border-radius: 999px; border: 1px solid var(--fg);
  font-size: 15px; font-weight: 500; overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--fg);
  border-radius: inherit; transform: translateY(101%); transition: transform .6s var(--ease);
}
.btn:hover { color: var(--bg); }
.btn:hover::before { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; transition: transform .6s var(--ease); }
.btn:hover svg { transform: translateX(calc(4px * var(--flip))) scaleX(var(--flip)); }
.btn sup { font-family: var(--f-code); font-size: 11px; opacity: .6; }

/* ==========================================================================
   Preloader — film leader
   ========================================================================== */
.loader {
  position: fixed; inset: 0; z-index: 95; background: var(--night); color: var(--cream);
  display: grid; place-items: center; clip-path: inset(0 0 0 0);
}
.leader {
  --sweep: 0deg;
  position: relative; width: min(56vmin, 460px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  background: conic-gradient(from 0deg, rgba(242, 234, 223, .10) var(--sweep), transparent var(--sweep));
  animation: flicker .18s steps(2) infinite;
}
.leader__ring { position: absolute; border-radius: 50%; border: 1px solid rgba(242, 234, 223, .35); }
.leader__ring--outer { inset: 0; }
.leader__ring--inner { inset: 9%; border-color: rgba(242, 234, 223, .2); }
.leader__cross::before, .leader__cross::after { content: ""; position: absolute; background: rgba(242, 234, 223, .22); }
.leader__cross::before { left: -40vw; right: -40vw; top: 50%; height: 1px; }
.leader__cross::after { top: -40vh; bottom: -40vh; left: 50%; width: 1px; }
.leader__num {
  position: relative; font-family: "Clash Display", var(--f-display); font-weight: 500;
  font-size: min(30vmin, 250px); line-height: 1; letter-spacing: -.04em;
}
.leader__word {
  position: absolute; left: 50%; bottom: 13%; transform: translateX(-50%); white-space: nowrap;
  font-family: var(--f-mono); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent);
}
.loader__foot {
  position: absolute; left: var(--pad); right: var(--pad); bottom: clamp(20px, 4vh, 40px);
  display: flex; justify-content: space-between; align-items: end; gap: 16px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(242, 234, 223, .7);
}
.loader__pct { font-family: var(--f-code); color: var(--accent); }
.loader__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(242, 234, 223, .08); }
.loader__bar i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
[dir="rtl"] .loader__bar i { transform-origin: right; }
@keyframes flicker { 50% { opacity: .94; } }

/* ==========================================================================
   Grain, cursor, subtitles, clapper
   ========================================================================== */
.grain {
  position: fixed; inset: -100%; width: 300%; height: 300%; z-index: 96; pointer-events: none;
  opacity: .075;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.4 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
:root.is-light .grain { opacity: .11; mix-blend-mode: multiply; filter: invert(1); }
@keyframes grain {
  0% { transform: translate(0, 0); } 17% { transform: translate(-4%, 3%); } 33% { transform: translate(3%, -5%); }
  50% { transform: translate(-6%, -2%); } 67% { transform: translate(5%, 4%); } 83% { transform: translate(-2%, 6%); }
  100% { transform: translate(0, 0); }
}

.cursor { position: fixed; inset: 0; z-index: 100; pointer-events: none; display: none; }
html.has-cursor .cursor { display: block; }
.cursor__dot, .cursor__ring { position: fixed; top: 0; left: 0; border-radius: 50%; will-change: transform; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--cream); mix-blend-mode: difference; }
.cursor__ring {
  width: 40px; height: 40px; margin: -20px 0 0 -20px; display: grid; place-items: center;
  border: 1px solid rgba(242, 234, 223, .45); mix-blend-mode: difference;
  transition: width .5s var(--ease), height .5s var(--ease), margin .5s var(--ease),
              background-color .4s var(--ease), border-color .4s var(--ease), opacity .3s;
}
.cursor__label {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink); opacity: 0; transform: scale(.5); transition: opacity .3s, transform .5s var(--ease);
}
html[lang="ar"] .cursor__label { font-size: 14px; font-weight: 600; }
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--cream); }
.cursor.is-label .cursor__ring {
  width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--accent);
  border-color: transparent; mix-blend-mode: normal;
}
.cursor.is-label .cursor__label { opacity: 1; transform: scale(1); }
.cursor.is-label .cursor__dot { opacity: 0; }
.cursor.is-out .cursor__ring, .cursor.is-out .cursor__dot { opacity: 0; }

/* Hidden jokes show up like film subtitles */
.subtitle {
  position: fixed; left: 50%; bottom: clamp(26px, 7vh, 64px); transform: translateX(-50%);
  z-index: 97; pointer-events: none; width: min(92vw, 780px); text-align: center;
}
.subtitle span {
  font-family: var(--f-body); font-weight: 600; font-size: clamp(16px, 1.6vw, 23px); line-height: 1.6;
  color: #ffe36e; background: rgba(0, 0, 0, .62); padding: .14em .5em; border-radius: 4px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  text-shadow: 0 1px 2px #000; opacity: 0; transition: opacity .25s;
}
.subtitle.is-on span { opacity: 1; }

.clap { position: fixed; inset: 0; z-index: 98; display: grid; place-items: center; pointer-events: none; visibility: hidden; }
.clap.is-on { visibility: visible; }
.clap > * { grid-area: 1 / 1; }
.clap__board {
  position: relative; width: 230px; height: 150px; padding: 16px; margin-top: -60px; border-radius: 10px;
  background: #111; border: 2px solid var(--cream); color: var(--cream);
  display: flex; align-items: flex-end; font-family: var(--f-code); font-size: 12px; letter-spacing: .1em;
}
.clap__board b { font-weight: 500; }
.clap__stick {
  position: absolute; left: -2px; right: -2px; top: -36px; height: 30px; border-radius: 6px;
  border: 2px solid var(--cream); transform-origin: 0 100%;
  background: repeating-linear-gradient(135deg, var(--cream) 0 18px, #111 18px 36px);
}
.clap__line {
  margin-top: 190px; padding: 0 20px; text-align: center;
  font-family: var(--f-display); font-weight: 600; font-size: clamp(22px, 3vw, 40px); line-height: 1.3;
  color: #ffe36e; text-shadow: 0 2px 16px rgba(0, 0, 0, .8);
}

/* ==========================================================================
   Sadu × Khayamiya band (Emirati weaving meets Egyptian tent-making)
   ========================================================================== */
.sadu {
  height: 22px; opacity: .92;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='52' height='26' viewBox='0 0 52 26'%3E%3Crect width='52' height='26' fill='%23150f0b'/%3E%3Cpath d='M0 0h52v2.5H0z' fill='%239e2f24'/%3E%3Cpath d='M0 2.5l3.25 4 3.25-4 3.25 4 3.25-4 3.25 4 3.25-4 3.25 4 3.25-4 3.25 4 3.25-4 3.25 4 3.25-4 3.25 4 3.25-4 3.25 4 3.25-4z' fill='%23e9a55f'/%3E%3Cpath d='M0 23.5l3.25-4 3.25 4 3.25-4 3.25 4 3.25-4 3.25 4 3.25-4 3.25 4 3.25-4 3.25 4 3.25-4 3.25 4 3.25-4 3.25 4 3.25-4 3.25 4z' fill='%23e9a55f'/%3E%3Cpath d='M0 23.5h52V26H0z' fill='%239e2f24'/%3E%3Cpath d='M13 7.5l6 5.5-6 5.5-6-5.5z' fill='%23f2eadf'/%3E%3Cpath d='M13 10.5l2.6 2.5-2.6 2.5-2.6-2.5z' fill='%239e2f24'/%3E%3Cg transform='translate(39 13)'%3E%3Crect x='-3.6' y='-3.6' width='7.2' height='7.2' fill='%2335c5c9'/%3E%3Crect x='-3.6' y='-3.6' width='7.2' height='7.2' fill='%2335c5c9' transform='rotate(45)'/%3E%3Ccircle r='1.7' fill='%23150f0b'/%3E%3C/g%3E%3Ccircle cx='26' cy='13' r='1.3' fill='%23e9a55f'/%3E%3Ccircle cx='0' cy='13' r='1.3' fill='%23e9a55f'/%3E%3Ccircle cx='52' cy='13' r='1.3' fill='%23e9a55f'/%3E%3C/svg%3E") repeat-x left center / auto 100%;
  animation: loom 40s linear infinite;
}
@keyframes loom { to { background-position: 520px center; } }

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px var(--pad); color: var(--fg);
  transition: transform .7s var(--ease);
}
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 88%, transparent), color-mix(in srgb, var(--bg) 0%, transparent));
  transition: opacity .5s;
}
.nav.is-scrolled::before { opacity: 1; }
.nav.is-hidden { transform: translateY(-110%); }
.nav__logo { display: flex; align-items: center; gap: 12px; font-weight: 500; font-size: 15px; }
.nav__mark {
  position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; overflow: hidden;
  background: var(--card); box-shadow: 0 0 0 1px var(--line);
  transition: box-shadow .5s var(--ease), transform .6s var(--ease);
}
.nav__mark img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nav__mark-alt { opacity: 0; transition: opacity .5s var(--ease); }
.nav__logo:hover .nav__mark { box-shadow: 0 0 0 2px var(--accent); transform: scale(1.06); }
.nav__logo:hover .nav__mark-alt { opacity: 1; }   /* same guy, better lighting */
.nav__links {
  display: flex; gap: 2px; padding: 5px; border-radius: 999px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 40%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.nav__links a { position: relative; padding: 8px 14px; border-radius: 999px; font-size: 14px; overflow: hidden; transition: background .4s; }
.nav__links a:hover { background: color-mix(in srgb, var(--fg) 8%, transparent); }
.nav__links a span { position: relative; display: inline-block; transition: transform .55s var(--ease); }
.nav__links a span::after { content: attr(data-t); position: absolute; left: 0; right: 0; top: 100%; padding-top: 8px; text-align: center; }
.nav__links a:hover span { transform: translateY(calc(-100% - 8px)); }
.nav__end { display: flex; align-items: center; gap: 10px; }
.nav__lang {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; font-family: "Alexandria", var(--f-body); font-weight: 600; font-size: 15px;
  background: color-mix(in srgb, var(--bg) 40%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: background .4s, color .4s, border-color .4s;
}
.nav__lang:hover { background: var(--accent); color: var(--ink); border-color: transparent; }
.nav__cta {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px;
  background: var(--fg); color: var(--bg); font-size: 14px; font-weight: 500; white-space: nowrap;
}
.nav__dot { width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, .55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(61, 220, 132, 0); } }
.nav__burger { display: none; width: 46px; height: 46px; border-radius: 50%; background: var(--fg); position: relative; }
.nav__burger span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--bg); transition: transform .5s var(--ease), top .5s var(--ease); }
.nav__burger span:first-child { top: 19px; }
.nav__burger span:last-child { top: 26px; }
.nav__burger.is-open span:first-child { top: 22.5px; transform: rotate(45deg); }
.nav__burger.is-open span:last-child { top: 22.5px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 45; background: var(--bg); visibility: hidden;
  display: flex; flex-direction: column; justify-content: center; gap: 40px; padding: 90px var(--pad) 40px;
  clip-path: inset(0 0 100% 0);
}
.menu.is-open { visibility: visible; }
.menu__links a { display: block; overflow: hidden; font-family: var(--f-display); font-weight: 500;
  font-size: clamp(40px, 11vw, 84px); line-height: 1.05; letter-spacing: -.03em; }
html[lang="ar"] .menu__links a { font-weight: 700; line-height: 1.35; }
.menu__links a span { display: inline-block; }
.menu__foot { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.menu__lang { padding: 12px 20px; border-radius: 999px; border: 1px solid var(--line); font-family: "Alexandria", var(--f-body); font-size: 15px; }

.wa-float {
  position: fixed; z-index: 44; inset-inline-end: clamp(14px, 2vw, 24px); bottom: clamp(14px, 2vw, 24px);
  display: inline-flex; align-items: center; gap: 9px; padding: 10px 18px 10px 12px; border-radius: 999px;
  background: var(--fg); color: var(--bg); font-size: 14px; font-weight: 600;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .55);
  transform: translateY(150%); transition: transform .7s var(--ease), background .5s, color .5s;
}
[dir="rtl"] .wa-float { padding: 10px 12px 10px 18px; }
.wa-float.is-on { transform: none; }
.wa-float svg { width: 26px; height: 26px; color: #25d366; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { height: 200vh; height: 200svh; color: var(--cream); }
.hero__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 46% 40% at 50% 50%, rgba(13, 11, 9, .62), rgba(13, 11, 9, 0) 100%),
    linear-gradient(to bottom, rgba(13, 11, 9, .7), rgba(13, 11, 9, 0) 20%, rgba(13, 11, 9, 0) 72%, rgba(13, 11, 9, .95));
}
.hero--no3d .hero__canvas { display: none; }
.hero--no3d .hero__sticky { background: radial-gradient(ellipse 60% 50% at 50% 60%, rgba(233, 165, 95, .22), transparent 70%), var(--night); }

.hero__ui { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.vf { position: absolute; inset: clamp(84px, 11vh, 110px) var(--pad) clamp(20px, 3vh, 32px); pointer-events: none; }
.vf i { position: absolute; width: 28px; height: 28px; border: 0 solid rgba(242, 234, 223, .55); }
.vf i:nth-child(1) { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; }
.vf i:nth-child(2) { top: 0; right: 0; border-top-width: 1.5px; border-right-width: 1.5px; }
.vf i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.vf i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; }

.hero__content {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0 var(--pad);
}
.hero__eyebrow {
  display: flex; align-items: center; gap: 10px; margin-bottom: clamp(14px, 2.4vh, 28px); pointer-events: auto;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(242, 234, 223, .75);
}
html[lang="ar"] .hero__eyebrow { font-size: 16px; }
.hero__title {
  font-family: var(--f-display); font-weight: 600; font-size: clamp(60px, min(15.5vw, 25vh), 280px);
  line-height: .8; letter-spacing: -.045em; text-transform: uppercase;
  text-shadow: 0 20px 80px rgba(0, 0, 0, .4);
}
.hero__line { display: block; overflow: hidden; padding: .02em .06em .04em; }
.hero__line--serif {
  font-family: var(--f-serif); font-style: italic; font-weight: 400; text-transform: none;
  letter-spacing: -.03em; line-height: .86; color: var(--accent); margin-top: -.02em;
}
.hero__line .ch { display: inline-block; will-change: transform; }
html[lang="ar"] .hero__title { font-weight: 800; text-transform: none; line-height: 1.12; font-size: clamp(64px, min(16vw, 22vh), 290px); }
html[lang="ar"] .hero__line { padding: .08em .1em .16em; }
html[lang="ar"] .hero__line--serif { font-style: normal; font-weight: 700; line-height: 1.2; margin-top: -.28em; }
.hero__role {
  margin-top: clamp(18px, 3.4vh, 36px); font-size: clamp(11px, .95vw, 13px); font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
}
html[lang="ar"] .hero__role { font-size: clamp(15px, 1.2vw, 18px); font-weight: 500; }
.hero__text { margin-top: 12px; max-width: 480px; font-size: 15px; line-height: 1.55; color: rgba(242, 234, 223, .7); }
html[lang="ar"] .hero__text { font-size: 17px; line-height: 1.8; max-width: 540px; }

.rec { width: 8px; height: 8px; border-radius: 50%; background: var(--rec); box-shadow: 0 0 12px var(--rec); flex: none; animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: .15; } }
.hud {
  position: absolute; z-index: 3; bottom: clamp(34px, 4.6vh, 50px); direction: ltr;
  display: flex; align-items: center; gap: 10px; pointer-events: none;
  font-family: var(--f-code); font-size: 11px; letter-spacing: .1em; color: rgba(242, 234, 223, .72);
}
.hud--rec { pointer-events: auto; padding: 6px 10px; margin: -6px -10px; border-radius: 999px; transition: background .3s; }
.hud--rec:hover { background: rgba(255, 75, 43, .16); }
.hud--l { inset-inline-start: calc(var(--pad) + 40px); }
.hud--r { inset-inline-end: calc(var(--pad) + 40px); }
.hud__tc { font-variant-numeric: tabular-nums; }
.hero__scroll {
  position: absolute; z-index: 3; left: 50%; bottom: clamp(26px, 3.6vh, 40px); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: none;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: rgba(242, 234, 223, .6);
}
html[lang="ar"] .hero__scroll { font-size: 13px; }
.hero__scroll i { position: relative; width: 1px; height: 44px; background: rgba(242, 234, 223, .2); overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--cream); animation: drip 1.8s var(--ease-io) infinite; }
@keyframes drip { to { top: 100%; } }

/* ==========================================================================
   Marquee
   ========================================================================== */
.marquee { padding-block: clamp(56px, 8vw, 130px) clamp(40px, 6vw, 90px); overflow: hidden; }
.marquee__band { transform: rotate(-3deg); margin-inline: -4vw; }
.marquee__row { display: flex; white-space: nowrap; overflow: visible; direction: ltr; }
.marquee__inner { display: flex; align-items: center; will-change: transform; }
.marquee__inner span, .marquee__inner b {
  font-family: var(--f-display); font-weight: 500; font-size: clamp(54px, 9.6vw, 170px);
  line-height: 1.08; letter-spacing: -.035em; padding-right: .3em; text-transform: uppercase;
}
.marquee__inner span { unicode-bidi: isolate; }
html[lang="ar"] .marquee__inner span { direction: rtl; font-weight: 700; line-height: 1.35; }
.marquee__inner b { color: var(--accent); font-size: clamp(26px, 4.2vw, 76px); font-weight: 400; }
.marquee__inner .o { color: transparent; -webkit-text-stroke: 1.3px var(--fg); }
.marquee__row--alt .marquee__inner span, .marquee__row--alt .marquee__inner b {
  font-family: var(--f-serif); font-style: italic; font-weight: 400; text-transform: none;
  font-size: clamp(34px, 5.6vw, 100px); letter-spacing: -.01em; color: var(--muted);
}
html[lang="ar"] .marquee__row--alt .marquee__inner span { font-style: normal; font-weight: 700; }
.marquee__row--alt .marquee__inner b { color: var(--accent); }

/* ==========================================================================
   About + portrait + clients
   ========================================================================== */
.about { padding-block: clamp(110px, 13vw, 200px) clamp(90px, 10vw, 160px); }
.about__grid { display: grid; grid-template-columns: minmax(130px, .8fr) 2.6fr 1.15fr; gap: clamp(28px, 3.4vw, 56px); align-items: start; }
.about__grid > .label { padding-top: 1.1em; }
.statement {
  font-family: var(--f-display); font-weight: 500; font-size: clamp(28px, 3.7vw, 64px);
  line-height: 1.08; letter-spacing: -.03em;
}
html[lang="ar"] .statement { font-weight: 600; line-height: 1.5; font-size: clamp(26px, 3.3vw, 56px); }
.statement .w { display: inline-block; opacity: .13; }
.statement.is-static .w { opacity: 1; }
.statement.is-static .pill { transform: none; }
.statement em { padding-right: 0; }
.pill {
  display: inline-block; width: 1.55em; height: .92em; border-radius: 1em; overflow: hidden;
  vertical-align: -.06em; margin-inline: 0 .1em; transform: scale(0); transform-origin: center; background: var(--card);
}
.pill img { width: 100%; height: 100%; object-fit: cover; }
.about__foot { display: flex; justify-content: space-between; align-items: center; gap: 30px; margin-top: clamp(40px, 5vw, 72px); flex-wrap: wrap; }
.badge { position: relative; width: 128px; height: 128px; flex: none; }
.badge svg { width: 100%; height: 100%; animation: spin 16s linear infinite; }
.badge text { font-family: var(--f-mono); font-size: 9.6px; letter-spacing: .14em; text-transform: uppercase; fill: var(--fg); direction: ltr; }
html[lang="ar"] .badge text { font-size: 11px; font-weight: 600; }
.badge__dot { position: absolute; inset: 0; margin: auto; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 24px var(--accent); }
@keyframes spin { to { transform: rotate(360deg); } }

.portrait { position: relative; margin-top: .6em; }
.portrait__frame {
  --px: 50%; --py: 38%; --pr: 0%;
  position: relative; aspect-ratio: 3 / 4; border-radius: 22px; overflow: hidden; background: var(--card);
  box-shadow: 0 40px 80px -40px rgba(40, 25, 10, .55);
}
.portrait__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portrait__night { clip-path: circle(var(--pr) at var(--px) var(--py)); transition: clip-path .45s var(--ease); }
.portrait.is-lit .portrait__frame { --pr: 30%; }
.portrait.is-full .portrait__frame { --pr: 150%; }
.portrait__hud {
  position: absolute; z-index: 2; top: 12px; inset-inline-start: 12px; display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 10px; border-radius: 999px; background: rgba(13, 11, 9, .5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-family: var(--f-code); font-size: 10px; letter-spacing: .1em; color: var(--cream); direction: ltr;
}
.portrait figcaption { margin-top: 14px; font-size: 13px; color: var(--muted); }

.clients { margin-top: clamp(80px, 10vw, 150px); border-top: 1px solid var(--line); padding-top: clamp(28px, 3vw, 44px); }
.clients__row { display: flex; align-items: flex-end; gap: clamp(20px, 3vw, 48px); flex-wrap: wrap; }
.clients__stat {
  display: inline-flex; align-items: flex-start; direction: ltr;
  font-family: "Clash Display", var(--f-display); font-weight: 500; font-size: clamp(110px, 17vw, 300px);
  line-height: .8; letter-spacing: -.05em; font-variant-numeric: tabular-nums;
}
html[lang="ar"] .clients__stat { font-family: "Alexandria", sans-serif; font-weight: 700; line-height: 1; }
html[lang="en"] .clients__plus { order: 2; }
.clients__plus { color: var(--accent); font-size: .42em; margin-top: .08em; }
.clients__text { max-width: 440px; padding-bottom: .8em; font-size: clamp(18px, 1.7vw, 25px); line-height: 1.4; }
html[lang="ar"] .clients__text { line-height: 1.8; }
.clients__marquee {
  overflow: hidden; margin-top: clamp(28px, 3vw, 44px); direction: ltr;
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.clients__inner { display: flex; width: max-content; animation: clients 46s linear infinite; }
.clients__inner span { font-family: var(--f-display); font-weight: 500; font-size: clamp(22px, 2.4vw, 36px); white-space: nowrap; padding: 0 .75em; unicode-bidi: isolate; }
html[lang="ar"] .clients__inner span { direction: rtl; font-weight: 600; }
.clients__inner b { color: var(--accent); font-weight: 400; font-size: clamp(16px, 1.6vw, 24px); align-self: center; }
@keyframes clients { to { transform: translateX(-50%); } }

/* ==========================================================================
   Brand stories
   ========================================================================== */
.brands { padding-block: clamp(110px, 13vw, 200px) clamp(40px, 6vw, 90px); }
.brands > .sec-head { margin-bottom: clamp(30px, 4vw, 60px); }
.brand { --brand: var(--accent); position: relative; padding-block: clamp(46px, 5.6vw, 90px); border-top: 1px solid var(--line); overflow: clip; }
.brand::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(55% 60% at 85% 20%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 70%);
}
[dir="rtl"] .brand::before { background: radial-gradient(55% 60% at 15% 20%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 70%); }
.brand__head {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 14px clamp(20px, 3vw, 44px);
  align-items: end; margin-bottom: clamp(26px, 3vw, 44px);
}
.brand__num { font-family: var(--f-code); font-size: 12px; color: var(--muted); align-self: start; padding-top: 1.2em; }
.brand__title { overflow: hidden; padding: .04em .06em .08em; margin: -.04em -.06em -.08em; }
.brand__name { font-family: var(--f-display); font-weight: 500; font-size: clamp(44px, 7vw, 124px); line-height: .95; letter-spacing: -.035em; }
html[lang="ar"] .brand__name { font-weight: 700; line-height: 1.25; }
.brand__name i { color: var(--brand); font-style: normal; }
.brand__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; text-align: end; }
.brand__industry {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--brand) 55%, transparent); color: var(--brand);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
}
html[lang="ar"] .brand__industry { font-size: 13px; }
.brand__work { font-size: 14px; color: var(--muted); max-width: 320px; }
.brand__text { grid-column: 2 / 3; max-width: 640px; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.6; color: var(--muted); }
html[lang="ar"] .brand__text { line-height: 1.9; }
.brand__nav { grid-column: 3; justify-self: end; display: flex; gap: 8px; align-items: center; }
.brand__count { font-family: var(--f-code); font-size: 12px; color: var(--muted); margin-inline-end: 8px; direction: ltr; }
.brand__nav button {
  width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center;
  transition: background .4s, color .4s, border-color .4s;
}
.brand__nav button:hover { background: var(--brand); color: var(--ink); border-color: transparent; }
.brand__nav svg { width: 20px; height: 20px; }

.strip { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.strip::-webkit-scrollbar { display: none; }
.strip__track { display: flex; gap: clamp(10px, 1.1vw, 18px); padding-inline: var(--pad); width: max-content; }
.sitem { --h: clamp(320px, 58vh, 640px); --ar: .75; position: relative; flex: none; height: var(--h); width: calc(var(--h) * var(--ar)); }
.sitem__in {
  position: absolute; inset: 0; border-radius: 18px; overflow: hidden; background: var(--card);
  opacity: 0; transform: translateX(calc(60px * var(--flip))) scale(.96);
  transition: opacity 1s var(--ease), transform 1.2s var(--ease);
}
.sitem.is-in .sitem__in { opacity: 1; transform: none; }
.sitem img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s var(--ease), filter .6s; -webkit-user-drag: none; user-select: none; }
.sitem:hover img { scale: 1.05; }
.sitem__tag {
  position: absolute; z-index: 2; bottom: 12px; inset-inline-start: 12px; max-width: calc(100% - 24px);
  padding: 6px 11px; border-radius: 999px; font-size: 12px; line-height: 1.3; color: var(--cream);
  background: rgba(13, 11, 9, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sitem--video .sitem__in::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(13, 11, 9, .55), transparent 45%); pointer-events: none; }
.soon {
  position: absolute; z-index: 3; top: 12px; inset-inline-end: 12px; padding: 6px 11px; border-radius: 999px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  background: var(--accent); color: var(--ink); font-weight: 600;
}
html[lang="ar"] .soon { font-size: 12px; text-transform: none; }
.is-soon img { filter: saturate(.75) brightness(.8); }

/* ==========================================================================
   Reels — horizontal
   ========================================================================== */
.reels__pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.reels__intro { position: absolute; z-index: 1; inset-inline-start: var(--pad); top: clamp(110px, 17vh, 170px); width: min(30vw, 480px); }
.reels__intro .label { margin-bottom: 26px; }
.reels__intro .sec-title { font-size: clamp(56px, 7vw, 124px); }
html[lang="ar"] .reels__intro .sec-title { font-size: clamp(48px, 6vw, 108px); }
.reels__intro .sec-sub { margin-top: 26px; }
.reels__hint { display: flex; align-items: center; gap: 12px; margin-top: 34px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.reels__hint svg { width: 22px; height: 22px; color: var(--accent); animation: nudge 1.6s var(--ease-io) infinite; }
@keyframes nudge { 50% { translate: calc(8px * var(--flip)) 0; } }

.reels__track {
  position: absolute; z-index: 2; top: clamp(96px, 14vh, 150px); inset-inline-start: 0; width: max-content;
  display: flex; align-items: flex-start; gap: clamp(14px, 1.5vw, 24px);
  padding-inline-start: calc(var(--pad) + min(30vw, 480px) + 6vw); padding-inline-end: var(--pad);
  will-change: transform;
}
.rcard { --h: min(64vh, 660px); flex: none; width: calc(var(--h) * 9 / 16); }
.rcard__media { position: relative; height: var(--h); border-radius: 20px; overflow: hidden; background: var(--card); transform: translateZ(0); }
.rcard__media img, .rcard__media video {
  position: absolute; top: 0; left: -8%; width: 116%; height: 100%; object-fit: cover;
  transition: scale 1.2s var(--ease), filter .8s var(--ease);
}
.rcard:hover .rcard__media img, .rcard:hover .rcard__media video { scale: 1.07; }
.rcard__media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(13, 11, 9, .55), transparent 40%); }
.rcard__num { position: absolute; z-index: 1; inset-inline-start: 16px; bottom: 14px; font-family: var(--f-code); font-size: 11px; letter-spacing: .1em; color: var(--cream); }
.play {
  position: absolute; z-index: 1; left: 50%; top: 50%; width: 62px; height: 62px; margin: -31px 0 0 -31px;
  border-radius: 50%; display: grid; place-items: center; color: var(--ink);
  background: rgba(242, 234, 223, .92); transform: scale(.4); opacity: 0;
  transition: transform .6s var(--ease), opacity .4s;
}
.play::before { content: ""; margin-left: 4px; border-style: solid; border-width: 9px 0 9px 14px; border-color: transparent transparent transparent currentColor; }
.rcard:hover .play, .film:hover .play, .aicard:hover .play, .sitem:hover .play { transform: scale(1); opacity: 1; }
html.has-cursor .play { display: none; }
.rcard__meta { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; }
.rcard__title { font-size: 16px; font-weight: 500; line-height: 1.3; }
html[lang="ar"] .rcard__title { font-size: 17px; line-height: 1.6; }
.tags { font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
html[lang="ar"] .tags { font-size: 13px; }

.reels__end { flex: none; align-self: stretch; display: flex; align-items: center; padding: 0 4vw; height: var(--h, 64vh); }
.reels__end a { font-family: var(--f-display); font-size: clamp(36px, 4vw, 64px); font-weight: 500; letter-spacing: -.03em; line-height: 1.05; }
html[lang="ar"] .reels__end a { font-weight: 700; line-height: 1.4; }
.reels__end a em { display: block; }

.reels__bottom { position: absolute; left: var(--pad); right: var(--pad); bottom: clamp(26px, 5vh, 50px); display: flex; align-items: center; gap: 24px; }
.reels__progress { flex: 1; height: 1px; background: var(--line); }
.reels__progress i { display: block; height: 100%; background: var(--fg); transform-origin: left; transform: scaleX(0); }
[dir="rtl"] .reels__progress i { transform-origin: right; }
.reels__counter { font-family: var(--f-code); font-size: 12px; letter-spacing: .08em; font-variant-numeric: tabular-nums; direction: ltr; }

/* ==========================================================================
   Commercials & podcasts
   ========================================================================== */
.commercials { padding-block: clamp(110px, 13vw, 200px) clamp(60px, 7vw, 110px); }
.films { display: grid; gap: clamp(56px, 8vw, 130px); }
.film:nth-child(even) { width: 84%; margin-inline-start: auto; }
.film__frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; transform: translateZ(0); }
.film__img { position: absolute; left: 0; top: -9%; width: 100%; height: 118%; object-fit: cover; }
.film__bar { position: absolute; z-index: 2; left: 0; right: 0; height: 10.5%; background: #000; transition: transform 1s var(--ease); }
.film__bar--t { top: 0; transform-origin: top; }
.film__bar--b { bottom: 0; transform-origin: bottom; }
.film:hover .film__bar { transform: scaleY(0); }
.film__hud {
  position: absolute; z-index: 3; top: 3.2%; left: 2.4%; right: 2.4%; direction: ltr;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--f-code); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: rgba(242, 234, 223, .8);
}
.film__hud span { display: flex; align-items: center; gap: 8px; }
.film .play { width: clamp(76px, 7vw, 110px); height: clamp(76px, 7vw, 110px); margin: 0; transform: translate(-50%, -50%) scale(.5); z-index: 3; }
.film:hover .play { transform: translate(-50%, -50%) scale(1); }
.film.is-soon .soon { top: 14%; }
.film__meta { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: baseline; margin-top: 20px; }
.film__num { font-family: var(--f-code); font-size: 12px; color: var(--muted); }
.film__title { font-family: var(--f-display); font-size: clamp(24px, 2.6vw, 42px); font-weight: 500; letter-spacing: -.02em; line-height: 1.15; }
html[lang="ar"] .film__title { font-weight: 700; line-height: 1.5; }

/* ==========================================================================
   AI studio
   ========================================================================== */
.ai { padding-block: clamp(90px, 11vw, 170px) clamp(120px, 14vw, 220px); overflow: clip; }
.ai__glow {
  position: absolute; left: 50%; top: 10%; width: 90vw; height: 90vw; max-width: 1400px; max-height: 1400px;
  transform: translateX(-50%); pointer-events: none; filter: blur(30px);
  background: radial-gradient(circle, rgba(233, 165, 95, .16), rgba(164, 91, 214, .06) 40%, transparent 65%);
}
.ai__steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 1.2vw, 18px); margin-bottom: clamp(70px, 8vw, 130px); }
.ai__steps li {
  position: relative; padding: 24px 22px 28px; border-radius: 20px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 65%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.ai__steps b { display: block; margin-bottom: 30px; font-family: var(--f-code); font-size: 12px; color: var(--accent); font-weight: 500; }
.ai__steps h4 { font-family: var(--f-display); font-weight: 500; font-size: clamp(20px, 1.7vw, 26px); line-height: 1.2; margin-bottom: 10px; }
html[lang="ar"] .ai__steps h4 { font-weight: 700; line-height: 1.5; }
.ai__steps p { font-size: 14.5px; line-height: 1.55; color: var(--muted); }
html[lang="ar"] .ai__steps p { font-size: 15px; line-height: 1.9; }
.ai__steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 36px; inset-inline-end: calc(-1 * clamp(10px, 1.2vw, 18px)); width: clamp(10px, 1.2vw, 18px); height: 1px;
  background: var(--accent); opacity: .6;
}
.ai__sub {
  position: relative; display: flex; align-items: center; gap: 18px; margin-bottom: clamp(24px, 3vw, 40px);
  font-family: var(--f-display); font-weight: 500; font-size: clamp(24px, 2.4vw, 38px); letter-spacing: -.02em;
}
html[lang="ar"] .ai__sub { font-weight: 700; }
.ai__sub::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.ai__grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 32px); margin-bottom: clamp(90px, 10vw, 160px); }
.aicard { perspective: 1100px; }
.aicard:nth-child(4n + 2), .aicard:nth-child(4n + 4) { margin-top: 14%; }
.aicard__frame {
  position: relative; border-radius: 24px; padding: 1.5px; transform-style: preserve-3d; will-change: transform;
  background: conic-gradient(from var(--angle), rgba(233, 165, 95, 0) 0%, rgba(233, 165, 95, .95) 12%, rgba(255, 110, 70, .6) 22%, rgba(233, 165, 95, 0) 36%, rgba(242, 234, 223, .15) 60%, rgba(233, 165, 95, 0) 80%);
  animation: angle 6s linear infinite;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7);
}
@keyframes angle { to { --angle: 360deg; } }
.aicard__media { position: relative; aspect-ratio: 9 / 16; border-radius: 22.5px; overflow: hidden; background: var(--card); }
.aicard__media img, .aicard__media video { width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s var(--ease); }
.aicard:hover .aicard__media img { scale: 1.06; }
.aicard__shine {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 240, 220, .28), transparent 42%);
}
.aicard:hover .aicard__shine { opacity: 1; }
.aicard__badge {
  position: absolute; z-index: 2; top: 14px; inset-inline-start: 14px; padding: 6px 11px; border-radius: 999px;
  font-family: var(--f-code); font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--cream); background: rgba(13, 11, 9, .5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.aicard .soon { top: 14px; }
.aicard__meta { margin-top: 18px; display: flex; flex-direction: column; gap: 4px; }
.aicard__title { font-size: 16px; font-weight: 500; line-height: 1.35; }
html[lang="ar"] .aicard__title { font-size: 17px; line-height: 1.6; }

.ai__stills { columns: 4 220px; column-gap: clamp(12px, 1.4vw, 20px); }
.still {
  position: relative; break-inside: avoid; margin-bottom: clamp(12px, 1.4vw, 20px); border-radius: 18px; overflow: hidden; background: var(--card);
  opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.2s var(--ease);
}
.still.is-in { opacity: 1; transform: none; }
.still img { width: 100%; height: auto; transition: scale 1.2s var(--ease); }
.still:hover img { scale: 1.05; }
.still__brand {
  position: absolute; z-index: 2; bottom: 12px; inset-inline-start: 12px; padding: 6px 11px; border-radius: 999px;
  font-size: 12px; color: var(--cream); background: rgba(13, 11, 9, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}

/* ==========================================================================
   Design archive
   ========================================================================== */
.work { padding-block: clamp(110px, 13vw, 200px); }
.filters { position: relative; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(28px, 3vw, 44px); }
.filters__pill { position: absolute; top: 0; left: 0; z-index: 0; border-radius: 999px; background: var(--fg); pointer-events: none; }
.filter {
  position: relative; z-index: 1; padding: 11px 19px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 14px; font-weight: 500; transition: color .45s var(--ease), border-color .45s;
}
.filter sup { font-family: var(--f-code); font-size: 10px; margin-inline-start: 5px; opacity: .6; }
.filter:hover { border-color: var(--fg); }
.filter.is-active { color: var(--bg); border-color: transparent; }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 1.3vw, 20px); }
.gcard { position: relative; }
.gcard.is-hidden { display: none; }
.gcard__in {
  position: relative; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: var(--card);
  opacity: 0; transform: translateY(50px) scale(.96);
  transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, 0s);
}
.gcard.is-in .gcard__in { opacity: 1; transform: none; }
.gcard img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s var(--ease); }
.gcard:hover img { scale: 1.06; }
.gcard__cap {
  position: absolute; inset-inline-start: 12px; bottom: 12px; z-index: 1; padding: 6px 11px; border-radius: 999px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--cream); background: rgba(13, 11, 9, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .6s var(--ease);
}
html[lang="ar"] .gcard__cap { font-size: 12px; }
.gcard:hover .gcard__cap { opacity: 1; transform: none; }
.work__more { display: flex; justify-content: center; margin-top: clamp(40px, 5vw, 70px); }
.work__more[hidden] { display: none; }

/* ==========================================================================
   Services
   ========================================================================== */
.services { padding-block: clamp(110px, 13vw, 200px); }
.svc-list { border-top: 1px solid var(--line); }
.svc {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: 70px 1.25fr 1fr 52px; gap: 24px; align-items: center;
  padding: clamp(24px, 2.8vw, 42px) 0; border-bottom: 1px solid var(--line);
  transition: color .55s var(--ease), padding .7s var(--ease);
}
.svc::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--fg);
  transform: scaleY(0); transform-origin: bottom; transition: transform .7s var(--ease);
}
.svc:hover { color: var(--bg); padding-inline: 26px; }
.svc:hover::before { transform: scaleY(1); }
.svc__num { font-family: var(--f-code); font-size: 12px; opacity: .6; }
.svc__title { font-family: var(--f-display); font-weight: 500; font-size: clamp(28px, 3.6vw, 60px); line-height: 1.05; letter-spacing: -.028em; }
html[lang="ar"] .svc__title { font-weight: 700; line-height: 1.5; }
.svc__text { font-size: 15px; line-height: 1.55; opacity: .72; max-width: 440px; }
html[lang="ar"] .svc__text { font-size: 16px; line-height: 1.9; }
.svc__arrow { width: 50px; height: 50px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; overflow: hidden; position: relative; }
.svc__arrow svg { width: 20px; height: 20px; transition: transform .6s var(--ease); transform: scaleX(var(--flip)) rotate(-45deg); }
.svc:hover .svc__arrow svg { transform: scaleX(var(--flip)) rotate(0deg); }

.svc-preview {
  position: fixed; top: 0; left: 0; z-index: 40; width: 270px; height: 340px; border-radius: 18px;
  overflow: hidden; pointer-events: none; clip-path: inset(50% 50% 50% 50% round 18px);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
}
.svc-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.15); transition: opacity .45s, transform .9s var(--ease); }
.svc-preview img.is-active { opacity: 1; transform: scale(1); }

.industries { display: flex; align-items: center; gap: 22px 30px; flex-wrap: wrap; margin-top: clamp(56px, 6vw, 90px); }
.industries__list { display: flex; flex-wrap: wrap; gap: 10px; }
.industries__list li { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; transition: background .4s, color .4s, border-color .4s; }
.industries__list li:hover { background: var(--accent); color: var(--ink); border-color: transparent; }

/* ==========================================================================
   Contact + footer
   ========================================================================== */
.contact { padding-block: clamp(120px, 14vw, 220px) clamp(90px, 10vw, 150px); }
.contact .label { margin-bottom: clamp(26px, 3vw, 44px); }
.contact__title { font-family: var(--f-display); font-weight: 500; font-size: clamp(56px, 10.4vw, 196px); line-height: .9; letter-spacing: -.042em; max-width: 13ch; }
html[lang="ar"] .contact__title { font-weight: 700; line-height: 1.25; font-size: clamp(50px, 8.6vw, 164px); max-width: 12ch; }
.contact__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; flex-wrap: wrap; margin-top: clamp(50px, 6vw, 90px); }
.contact__btn {
  position: relative; isolation: isolate; overflow: hidden; flex: none;
  width: clamp(170px, 16vw, 250px); aspect-ratio: 1; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: var(--accent); color: var(--ink); font-size: 17px; font-weight: 600; text-align: center; padding: 16px;
  transition: color .5s var(--ease);
}
.contact__btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--fg); border-radius: 50%; transform: scale(0); transition: transform .7s var(--ease); }
.contact__btn:hover { color: var(--bg); }
.contact__btn:hover::before { transform: scale(1); }
.contact__btn svg { width: 26px; height: 26px; transition: transform .6s var(--ease); transform: scaleX(var(--flip)); }
.contact__btn:hover svg { transform: scaleX(var(--flip)) rotate(45deg); }
.contact__links { flex: 1; max-width: 580px; min-width: min(100%, 300px); }
.contact__links a {
  display: flex; justify-content: space-between; align-items: center; gap: 30px;
  padding: 18px 0; border-bottom: 1px solid var(--line); font-size: clamp(17px, 1.5vw, 21px);
}
.contact__links li:first-child a { border-top: 1px solid var(--line); }
.contact__links small { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); min-width: 90px; }
html[lang="ar"] .contact__links small { font-size: 14px; text-transform: none; }
.contact__links span { flex: 1; direction: ltr; text-align: start; unicode-bidi: plaintext; transition: transform .6s var(--ease); }
.contact__links a:hover span { transform: translateX(calc(10px * var(--flip))); }
.contact__links svg { width: 20px; height: 20px; transition: transform .6s var(--ease); transform: scaleX(var(--flip)); }
.contact__links a:hover svg { transform: scaleX(var(--flip)) rotate(45deg); color: var(--accent); }

.footer { padding: 34px var(--pad) 24px; border-top: 1px solid var(--line); overflow: hidden; }
.footer__top { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.footer__up { display: inline-flex; align-items: center; gap: 8px; color: var(--fg); }
.footer__up svg { width: 18px; height: 18px; transition: transform .6s var(--ease); }
.footer__up:hover svg { transform: translateY(-4px); }
.footer__word { margin: clamp(30px, 5vw, 70px) 0 clamp(14px, 2vw, 28px); line-height: .82; overflow: hidden; }
html[lang="ar"] .footer__word { line-height: 1.3; }
.footer__fit { display: inline-block; white-space: nowrap; font-family: var(--f-display); font-weight: 600; font-size: 100px; letter-spacing: -.05em; text-transform: uppercase; }
html[lang="ar"] .footer__fit { font-weight: 800; text-transform: none; }
.footer__fit em { text-transform: none; letter-spacing: -.03em; }
.footer__fit .ch, .footer__fit .wd { display: inline-block; }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
html[lang="ar"] .footer__bottom { font-size: 13px; }
.footer__note { cursor: help; }

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lb { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; visibility: hidden; color: var(--cream); }
.lb.is-open { visibility: visible; }
.lb__backdrop { position: absolute; inset: 0; background: rgba(8, 7, 6, .94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); opacity: 0; }
.lb__top {
  position: absolute; z-index: 2; top: 0; left: 0; right: 0; padding: 20px var(--pad);
  display: flex; justify-content: space-between; align-items: center; font-family: var(--f-code); font-size: 12px; letter-spacing: .1em;
}
.lb__count { direction: ltr; }
.lb__close { display: inline-flex; gap: 10px; align-items: center; padding: 11px 18px; border-radius: 999px; border: 1px solid rgba(242, 234, 223, .25); font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; transition: background .4s, color .4s; }
html[lang="ar"] .lb__close { font-size: 14px; }
.lb__close:hover { background: var(--cream); color: var(--ink); }
.lb__stage { position: relative; z-index: 1; display: grid; place-items: center; max-width: 92vw; max-height: 80vh; }
.lb__stage > img { max-width: min(92vw, 1400px); max-height: min(80vh, calc(100vh - 190px)); width: auto; height: auto; border-radius: 12px; object-fit: contain; }
.lb__frame { position: relative; border-radius: 14px; overflow: hidden; background: #000 center / cover no-repeat; }
.lb__frame::before { content: ""; position: absolute; inset: 0; background: inherit; filter: blur(24px) brightness(.5); transform: scale(1.2); }
.lb__frame--v { height: min(80vh, calc(100vh - 190px)); aspect-ratio: 9 / 16; max-width: 92vw; }
.lb__frame--h { width: min(92vw, calc(min(80vh, 100vh - 190px) * 16 / 9)); aspect-ratio: 16 / 9; }
.lb__frame iframe, .lb__frame video { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; border: 0; background: transparent; }
.lb__spin { position: absolute; z-index: 0; left: 50%; top: 50%; width: 42px; height: 42px; margin: -21px; border-radius: 50%; border: 2px solid rgba(242, 234, 223, .2); border-top-color: var(--accent); animation: spin .9s linear infinite; }
.lb__nav {
  position: absolute; z-index: 2; top: 50%; width: 58px; height: 58px; margin-top: -29px; border-radius: 50%;
  border: 1px solid rgba(242, 234, 223, .25); display: grid; place-items: center; transition: background .4s, color .4s;
}
.lb__nav:hover { background: var(--cream); color: var(--ink); }
.lb__nav svg { width: 22px; height: 22px; }
.lb__nav--prev { inset-inline-start: var(--pad); }
.lb__nav--next { inset-inline-end: var(--pad); }
.lb__caption { position: absolute; z-index: 2; left: var(--pad); right: var(--pad); bottom: 22px; text-align: center; font-size: 15px; }
.lb__caption .tags { display: block; margin-top: 4px; color: rgba(242, 234, 223, .55); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .nav__links a { padding: 8px 10px; font-size: 13px; }
  .ai__grid { grid-template-columns: repeat(3, 1fr); }
  .aicard:nth-child(4n + 2), .aicard:nth-child(4n + 4) { margin-top: 0; }
  .aicard:nth-child(3n + 2) { margin-top: 14%; }
}

@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .svc { grid-template-columns: 50px 1fr 52px; }
  .svc__text { grid-column: 2 / 3; grid-row: 2; }
  .svc__arrow { grid-row: 1 / span 2; grid-column: 3; }
  .ai__steps { grid-template-columns: repeat(2, 1fr); }
  .ai__steps li::after { display: none; }
  .about__grid { grid-template-columns: 1fr 1.6fr; }
  .about__grid > .label { grid-column: 1 / -1; padding-top: 0; }
  .brand__head { grid-template-columns: auto 1fr; }
  .brand__meta { grid-column: 1 / -1; align-items: flex-start; text-align: start; flex-direction: row; flex-wrap: wrap; }
  .brand__text { grid-column: 1 / -1; }
  .brand__nav { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: block; }
  .sec-head { grid-template-columns: 1fr; }
  .about__grid { grid-template-columns: 1fr; gap: 24px; }
  .portrait { max-width: 420px; }

  /* reels: native horizontal scroll */
  .reels__pin { height: auto; overflow: visible; padding-block: clamp(90px, 16vw, 130px) 60px; }
  .reels__intro { position: static; width: auto; padding-inline: var(--pad); margin-bottom: 40px; }
  .reels__hint { display: none; }
  .reels__track {
    position: static; width: auto; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    padding-inline-start: var(--pad); padding-bottom: 6px; -webkit-overflow-scrolling: touch;
  }
  .reels__track::-webkit-scrollbar { display: none; }
  .rcard { --h: min(118vw, 560px); scroll-snap-align: start; scroll-margin-inline-start: var(--pad); }
  .rcard__media img, .rcard__media video { left: 0; width: 100%; }
  .reels__end { display: none; }
  .reels__bottom { position: static; margin: 28px var(--pad) 0; }

  .film:nth-child(even) { width: 100%; }
  .ai__grid { grid-template-columns: repeat(2, 1fr); }
  .aicard:nth-child(3n + 2) { margin-top: 0; }
  .aicard:nth-child(even) { margin-top: 18%; }
  .sitem { --h: min(112vw, 540px); }
  .hud--r { display: none; }
  .hud--l { left: 50%; right: auto; transform: translateX(-50%); bottom: 96px; }
}

@media (max-width: 700px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .svc { grid-template-columns: 1fr 44px; gap: 10px 16px; }
  .svc__num { grid-column: 1; }
  .svc__title { grid-column: 1; }
  .svc__text { grid-column: 1; grid-row: auto; }
  .svc__arrow { grid-column: 2; grid-row: 1 / span 3; width: 44px; height: 44px; }
  .svc:hover { padding-inline: 14px; }
  .film__meta { grid-template-columns: auto 1fr; }
  .film__meta .tags { grid-column: 1 / -1; }
  .ai__steps { grid-template-columns: 1fr; }
  .ai__stills { columns: 2 140px; }
  .lb__nav { top: auto; bottom: 64px; width: 50px; height: 50px; }
  .lb__caption { bottom: 130px; }
  .lb__frame--v { height: min(72vh, calc(100vh - 250px)); }
  .badge { width: 104px; height: 104px; }
  .contact__btn { width: 160px; }
  .wa-float span { display: none; }
  .wa-float { padding: 12px; }
  .brand__nav button { width: 44px; height: 44px; }
}

/* ==========================================================================
   Short screens (landscape phones, small laptop windows)
   Kept after the width rules so they win.
   ========================================================================== */
@media (max-height: 620px) {
  .hero__text, .hero__scroll { display: none; }
  .hero__eyebrow { margin-bottom: 8px; }
  .hero__role { margin-top: 12px; }
  .vf { inset: 72px var(--pad) 14px; }
  .hud { bottom: 24px; }
  .hud--l { bottom: 24px; }
}
@media (max-height: 520px) {
  .hud, .vf { display: none; }
  .hero__eyebrow { display: none; }
  .lb__top { padding: 10px var(--pad); }
  .lb__caption { display: none; }
  .lb__stage > img { max-height: calc(100vh - 90px); }
  .lb__frame--v { height: calc(100vh - 90px); }
  .lb__frame--h { width: min(92vw, calc((100vh - 90px) * 16 / 9)); }
  .lb__nav { top: 50%; bottom: auto; margin-top: -25px; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .grain, .sadu { animation: none; }
  .statement .w { opacity: 1; }
  .pill { transform: none; }
  .gcard__in, .sitem__in, .still { opacity: 1; transform: none; }
}
