/*
Theme Name: Gizmo
Theme URI: https://gizmomp.com
Author: Gizmo Media Production
Description: Bilingual (English and Arabic) theme for Gizmo Media Production: film, post-production and restoration studio.
Version: 1.1.4
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: gizmo
*/
/* Gizmo Media Production — site styles
   Layout concept: a dark grading-suite canvas on a 12-column grid, left-aligned type that bleeds
   large, and the logo's projector beam (the 52° facets of the G) cutting across section edges. */
:root {
  --ink: #0B0B0D;          /* Onyx — brand parent colour, page ground */
  --ink-2: #131418;        /* raised surfaces */
  --ink-3: #1B1D22;        /* hover / inset surfaces */
  --paper: #EEF0F2;        /* primary text on dark */
  --silver: #B9C0C7;       /* brand silver, secondary text */
  --mute: #858D96;         /* tertiary text, captions */
  --line: rgba(185, 192, 199, 0.16);
  --line-2: rgba(185, 192, 199, 0.28);
  --steel: #4A7FA5;        /* brand Steel Blue (Media division accent) */
  --steel-hi: #8DB9DA;     /* accent for text on dark */
  --beam: #8F9296;         /* the logo's grey facet */
  --light: #E7EAED;        /* light band ground */
  --light-ink: #0B0B0D;
  --light-mute: #4E555D;
  --light-line: rgba(11, 11, 13, 0.14);

  --f-display: "Space Grotesk", "IBM Plex Sans Arabic", "Segoe UI", Arial, sans-serif;
  --f-body: "Inter", "IBM Plex Sans Arabic", "Segoe UI", Arial, sans-serif;

  --s-xs: 0.8125rem;
  --s-sm: 0.9375rem;
  --s-md: 1.0625rem;
  --s-lg: 1.375rem;
  --s-xl: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  --s-2xl: clamp(2.25rem, 1.3rem + 3.6vw, 4rem);
  --s-3xl: clamp(2.75rem, 1.2rem + 6.2vw, 6.75rem);

  --wrap: 1360px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --ease: cubic-bezier(.2, .7, .1, 1);
  --header-h: 72px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-body);
  font-size: var(--s-md);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--ink);
}
html[lang="ar"] body { font-family: "IBM Plex Sans Arabic", var(--f-body); line-height: 1.75; }
html[lang="ar"] { --f-display: "IBM Plex Sans Arabic", "Segoe UI", Arial, sans-serif; }

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--steel-hi); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--steel); color: #fff; }

.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; background: var(--paper); color: var(--ink); padding: 10px 14px; }
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

.wrap {
  width: 100%; max-width: var(--wrap); margin-inline: auto;
  padding-left: var(--gutter); padding-right: var(--gutter-r);
}
@media (min-width: 720px) {
  .wrap { padding-left: max(40px, env(safe-area-inset-left, 0px)); padding-right: max(40px, env(safe-area-inset-right, 0px)); }
}

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 500; margin: 0; text-wrap: balance; letter-spacing: -0.025em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 { letter-spacing: 0; font-weight: 600; }
.d-hero { font-size: var(--s-3xl); line-height: 0.98; letter-spacing: -0.045em; font-weight: 500; }
html[lang="ar"] .d-hero { line-height: 1.2; letter-spacing: 0; }
.d-1 { font-size: var(--s-2xl); line-height: 1.04; }
.d-2 { font-size: var(--s-xl); line-height: 1.12; }
.d-3 { font-size: var(--s-lg); line-height: 1.25; letter-spacing: -0.015em; }
.lede { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem); line-height: 1.55; color: var(--silver); max-width: 38em; }
p { margin: 0; max-width: 65ch; }
.muted { color: var(--mute); }
.silver { color: var(--silver); }
.kicker { font-family: var(--f-display); font-size: var(--s-sm); color: var(--steel-hi); letter-spacing: 0.01em; display: inline-flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 26px;
  border-radius: 999px; font-family: var(--f-display); font-weight: 500; font-size: var(--s-md);
  border: 1px solid var(--line-2); background: transparent; transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
[dir="rtl"] .btn svg.arrow { transform: scaleX(-1); }
[dir="rtl"] .btn:hover svg.arrow { transform: scaleX(-1) translateX(4px); }
.btn-primary { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-primary:hover { background: var(--steel-hi); border-color: var(--steel-hi); }
.btn-ghost:hover { border-color: var(--paper); background: rgba(238, 240, 242, .06); }
.btn-play .play-dot { width: 30px; height: 30px; border-radius: 50%; background: var(--steel); display: grid; place-items: center; margin-inline-start: -12px; }
.btn-play .play-dot svg { width: 12px; height: 12px; fill: #fff; }
.link { color: var(--steel-hi); border-bottom: 1px solid rgba(141, 185, 218, .35); transition: border-color .2s; }
.link:hover { border-color: var(--steel-hi); }
.arrow-link { display: inline-flex; gap: 10px; align-items: center; font-family: var(--f-display); font-weight: 500; }
.arrow-link svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.arrow-link:hover svg { transform: translateX(4px); }
[dir="rtl"] .arrow-link svg { transform: scaleX(-1); }
[dir="rtl"] .arrow-link:hover svg { transform: scaleX(-1) translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset-inline: 0; top: env(safe-area-inset-top, 0px); z-index: 50;
  transition: background .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { background: rgba(11, 11, 13, .82); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-color: var(--line); }
.site-header.is-hidden { transform: translateY(-110%); }
.nav { height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand svg { width: 34px; height: auto; }
.brand-name { font-family: var(--f-display); font-weight: 600; font-size: 15px; line-height: 1.05; letter-spacing: 0.02em; }
.brand-name small { display: block; font-weight: 400; color: var(--mute); font-size: 11.5px; letter-spacing: 0.04em; margin-top: 3px; }
.nav-links { display: flex; gap: 4px; margin-inline-start: auto; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-size: var(--s-sm); color: var(--silver); transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--paper); background: rgba(238, 240, 242, .06); }
.nav-links a[aria-current="page"] { color: var(--paper); }
.nav-links a[aria-current="page"]::after { content: ""; display: block; height: 1px; background: var(--steel-hi); margin-top: 2px; }
.nav-tools { display: flex; align-items: center; gap: 12px; }
.tc { font-family: var(--f-display); font-size: 12.5px; color: var(--mute); font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 8px; letter-spacing: 0.03em; direction: ltr; }
.tc .rec { width: 7px; height: 7px; border-radius: 50%; background: #E5484D; box-shadow: 0 0 0 3px rgba(229, 72, 77, .18); animation: rec 1.6s steps(2, jump-none) infinite; }
@keyframes rec { 50% { opacity: .25; } }
.lang { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; font-size: 14px; font-family: "IBM Plex Sans Arabic", var(--f-body); }
.lang:hover { border-color: var(--paper); }
.nav .btn { min-height: 42px; padding: 0 18px; font-size: var(--s-sm); }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; place-items: center; }
.menu-btn span { display: block; width: 16px; height: 1.5px; background: var(--paper); position: relative; transition: transform .3s var(--ease); }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; inset-inline: 0; height: 1.5px; background: var(--paper); transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-btn span::before { top: -5px; } .menu-btn span::after { top: 5px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { top: 0; transform: rotate(45deg); }
.menu-open .menu-btn span::after { top: 0; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45; background: var(--ink);
  padding: calc(var(--header-h) + 24px + env(safe-area-inset-top, 0px)) var(--gutter-r) calc(32px + env(safe-area-inset-bottom, 0px)) var(--gutter);
  display: flex; flex-direction: column; gap: 32px;
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); transition: clip-path .6s var(--ease); visibility: hidden;
}
.menu-open .mobile-menu { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a { font-family: var(--f-display); font-size: clamp(2rem, 9vw, 3rem); line-height: 1.2; padding: 6px 0; border-bottom: 1px solid var(--line); letter-spacing: -0.03em; }
.mobile-menu .m-foot { margin-top: auto; display: grid; gap: 6px; color: var(--silver); font-size: var(--s-sm); }

@media (max-width: 1080px) {
  .nav-links, .nav .btn-primary, .tc { display: none; }
  .menu-btn { display: grid; }
  .nav-tools { margin-inline-start: auto; }
}

/* ---------- Sections ---------- */
main { display: block; }
.section { padding-block: clamp(80px, 9vw, 150px); position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.sec-head { display: grid; gap: 22px; grid-template-columns: 1fr; margin-bottom: clamp(40px, 5vw, 72px); }
@media (min-width: 900px) {
  .sec-head { grid-template-columns: 5fr 7fr; align-items: end; gap: 48px; }
  .sec-head .lede { justify-self: end; }
}
.sec-head-stack { display: grid; gap: 18px; }

/* Light band */
.band-light { background: var(--light); color: var(--light-ink); }
.band-light .kicker { color: var(--steel); }
.band-light .lede, .band-light .silver { color: var(--light-mute); }
.band-light .muted { color: var(--light-mute); }
.band-light + .section { border-top: 0; }
.section + .band-light { border-top: 0; }

/* ---------- Hero ---------- */
.hero { padding-top: calc(var(--header-h) + clamp(48px, 7vw, 110px)); padding-bottom: clamp(56px, 6vw, 96px); position: relative; overflow: hidden; }
.hero-grid { display: grid; gap: 48px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 7fr 5fr; gap: 40px; } }
.hero-copy { display: grid; gap: 28px; position: relative; z-index: 2; min-width: 0; }
.hero .d-hero .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero .d-hero .line > span { display: inline-block; animation: rise 1.1s var(--ease) both; }
.hero .d-hero .line:nth-child(2) > span { animation-delay: .1s; }
.hero .d-hero .line:nth-child(3) > span { animation-delay: .2s; }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); margin-top: clamp(48px, 6vw, 88px); }
.hero-facts li { padding: 20px 20px 0 0; display: grid; gap: 4px; }
[dir="rtl"] .hero-facts li { padding: 20px 0 0 20px; }
.hero-facts b { font-family: var(--f-display); font-weight: 500; font-size: var(--s-lg); letter-spacing: -0.02em; }
.hero-facts span { color: var(--mute); font-size: var(--s-sm); }
@media (min-width: 900px) { .hero-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
ul.plain, ol.plain { list-style: none; margin: 0; padding: 0; }

/* Projector mark */
.projector { position: relative; width: 100%; max-width: 520px; justify-self: center; aspect-ratio: 451 / 502; }
.projector svg.mark { width: 100%; height: auto; overflow: visible; position: relative; z-index: 1; }
.projector canvas { position: absolute; inset: -8% -20% -8% -30%; width: 150%; height: 116%; z-index: 2; pointer-events: none; }
.mark .frame { animation: frameIn 1.2s var(--ease) .1s both; }
.mark .beam { transform-origin: 2% 53%; animation: beamIn 1.6s var(--ease) .35s both; }
.mark .letter { animation: letterIn 1.3s var(--ease) .55s both; }
.mark .beam-glow { animation: flicker 5s ease-in-out 2s infinite; }
@keyframes frameIn { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
@keyframes beamIn { from { opacity: 0; transform: scaleX(.2); } to { opacity: 1; transform: none; } }
@keyframes letterIn { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: none; } }
@keyframes flicker { 0%, 100% { opacity: .55; } 40% { opacity: .75; } 42% { opacity: .5; } 44% { opacity: .78; } 70% { opacity: .62; } }

/* Hero facet backdrop */
.facet-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.facet-bg::before, .facet-bg::after {
  content: ""; position: absolute; width: 160%; height: 70%; inset-inline-start: -30%;
  background: linear-gradient(90deg, rgba(74, 127, 165, 0), rgba(74, 127, 165, .10) 50%, rgba(74, 127, 165, 0));
  transform: rotate(-38deg); top: 10%;
}
.facet-bg::after { top: 60%; transform: rotate(38deg); background: linear-gradient(90deg, rgba(143, 146, 150, 0), rgba(143, 146, 150, .06) 50%, rgba(143, 146, 150, 0)); }
.grain { position: fixed; inset: 0; z-index: 70; pointer-events: none; opacity: .045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0% { background-position: 0 0; } 33% { background-position: -37px 23px; } 66% { background-position: 29px -41px; } 100% { background-position: 0 0; } }

/* ---------- Reel strip ---------- */
.reel { position: relative; display: block; border-radius: 4px; overflow: hidden; aspect-ratio: 4 / 5; max-width: 100%; background: var(--ink-2); isolation: isolate; }
.reel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11, 11, 13, .85), rgba(11, 11, 13, 0) 60%); z-index: 1; }
.reel .poster { position: absolute; inset: 0; }
.reel .reel-ui { position: absolute; inset: auto 0 0 0; z-index: 2; padding: clamp(18px, 3vw, 36px); display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.reel .reel-title { display: grid; gap: 6px; }
.reel .bigplay { width: clamp(64px, 8vw, 96px); height: clamp(64px, 8vw, 96px); border-radius: 50%; background: var(--paper); color: var(--ink); display: grid; place-items: center; transition: transform .5s var(--ease), background .3s; flex-shrink: 0; }
.reel .bigplay svg { width: 26%; height: 26%; fill: currentColor; margin-inline-start: 6%; }
.reel:hover .bigplay { transform: scale(1.08); background: var(--steel-hi); }
.safe-guides { position: absolute; inset: 7% 5%; border: 1px dashed rgba(238, 240, 242, .18); z-index: 1; pointer-events: none; }
.safe-guides::before { content: ""; position: absolute; inset: 10% 5%; border: 1px dashed rgba(238, 240, 242, .1); }
.reel-meta { position: absolute; top: clamp(14px, 2vw, 24px); inset-inline: clamp(14px, 2vw, 24px); z-index: 2; display: flex; justify-content: space-between; font-family: var(--f-display); font-size: 12px; color: rgba(238, 240, 242, .7); font-variant-numeric: tabular-nums; letter-spacing: .04em; direction: ltr; }

/* ---------- Poster (generated stand-in, real thumbnail layers on top) ---------- */
.poster { --h: 205; background:
    linear-gradient(128deg, transparent 0 38%, hsla(var(--h), 35%, 52%, .22) 38% 52%, transparent 52%),
    linear-gradient(52deg, transparent 0 58%, hsla(var(--h), 20%, 70%, .10) 58% 66%, transparent 66%),
    radial-gradient(120% 90% at 85% 15%, hsla(var(--h), 40%, 34%, .9), hsla(var(--h), 30%, 10%, 1) 70%);
  overflow: hidden; }
.poster img.thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s var(--ease), transform 1.2s var(--ease); }
.poster img.thumb.loaded { opacity: 1; }
.poster .p-word { position: absolute; inset-inline-start: 6%; bottom: 8%; font-family: var(--f-display); font-weight: 500; letter-spacing: -0.04em; line-height: .9; color: rgba(238, 240, 242, .9); font-size: clamp(1.75rem, 4vw, 3.25rem); max-width: 80%; }
.poster.has-thumb .p-word { display: none; }

/* ---------- Discipline list (home services) ---------- */
.disciplines { border-top: 1px solid var(--line); }
.disc { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 20px 24px; padding-block: 28px; border-bottom: 1px solid var(--line); position: relative; isolation: isolate; align-items: start; }
.disc::before { content: ""; position: absolute; inset: 0 calc(-1 * var(--gutter)); background: linear-gradient(100deg, var(--ink-2), var(--ink-3)); z-index: -1; clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); transition: clip-path .7s var(--ease); }
.disc:hover::before { clip-path: polygon(0 0, 100% 0, calc(100% - 40px) 100%, 0 100%); }
[dir="rtl"] .disc:hover::before { clip-path: polygon(0 0, 100% 0, 100% 100%, 40px 100%); }
.disc .ico { width: 44px; height: 44px; color: var(--steel-hi); }
.disc h3 { font-size: var(--s-xl); line-height: 1.1; }
.disc p { color: var(--silver); margin-top: 10px; }
.disc .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag { font-size: 13px; padding: 5px 12px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--silver); white-space: nowrap; }
.disc .go { display: none; }
.disc .body2, .disc .tags { grid-column: 2; }
@media (max-width: 899px) { .disc .tags { margin-top: 0; } .projector { max-width: 360px; } }
@media (min-width: 900px) {
  .disc { grid-template-columns: 64px 5fr 6fr 48px; align-items: center; padding-block: 34px; }
  .disc p { margin-top: 0; }
  .disc .tags { grid-column: 3; margin-top: 12px; }
  .disc .body2 { grid-column: 3; }
  .disc .go { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); grid-column: 4; grid-row: 1 / span 2; transition: background .3s, border-color .3s, transform .5s var(--ease); }
  .disc .go svg { width: 18px; height: 18px; }
  [dir="rtl"] .disc .go svg { transform: scaleX(-1); }
  .disc:hover .go { background: var(--paper); color: var(--ink); border-color: var(--paper); transform: rotate(-38deg); }
  [dir="rtl"] .disc:hover .go { transform: rotate(38deg); }
  .disc h3 { grid-row: 1 / span 2; }
  .disc .ico { grid-row: 1 / span 2; }
}

/* ---------- Before / after ---------- */
.ba-grid { display: grid; gap: clamp(32px, 5vw, 72px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 980px) { .ba-grid { grid-template-columns: 7fr 5fr; } }
.ba { position: relative; aspect-ratio: 818 / 640; overflow: hidden; border-radius: 3px; user-select: none; touch-action: pan-y; background: #000; --pos: 50%; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba .after { clip-path: inset(0 0 0 var(--pos)); }
.ba .handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: var(--paper); transform: translateX(-1px); pointer-events: none; }
.ba .handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; border-radius: 50%; transform: translate(-50%, -50%); background: rgba(11, 11, 13, .55); border: 1.5px solid var(--paper); backdrop-filter: blur(6px);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23EEF0F2' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M9 7l-5 5 5 5M15 7l5 5-5 5'/></svg>"); background-size: 22px; background-repeat: no-repeat; background-position: center; }
.ba input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; direction: ltr; }
.ba input[type="range"]:focus-visible + .handle::after { outline: 2px solid var(--steel-hi); outline-offset: 3px; }
.ba .lbl { position: absolute; top: 14px; font-family: var(--f-display); font-size: 12.5px; padding: 6px 12px; border-radius: 999px; background: rgba(11, 11, 13, .62); backdrop-filter: blur(6px); color: var(--paper); pointer-events: none; }
.ba .lbl.l { left: 14px; } .ba .lbl.r { right: 14px; }
.ba-caption { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; font-size: var(--s-sm); color: var(--mute); flex-wrap: wrap; }
.cap-list { display: grid; gap: 0; margin-top: 32px; border-top: 1px solid var(--line); }
.cap-list li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 16px; padding-block: 20px; border-bottom: 1px solid var(--line); }
.cap-list .ico { width: 30px; height: 30px; color: var(--steel-hi); }
.cap-list h3 { font-size: var(--s-lg); letter-spacing: -0.015em; }
.cap-list p { color: var(--silver); font-size: var(--s-sm); margin-top: 4px; }

/* ---------- AI grid ---------- */
.ai-grid { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); }
.ai-cell { padding: 32px 28px 36px; border-inline-end: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 14px; align-content: start; transition: background .4s var(--ease); }
.ai-cell:hover { background: var(--ink-2); }
.ai-cell .ico { width: 36px; height: 36px; color: var(--steel-hi); transition: transform .5s var(--ease); }
.ai-cell:hover .ico { transform: translateY(-4px); }
.ai-cell h3 { font-size: var(--s-lg); letter-spacing: -0.015em; }
.ai-cell p { color: var(--silver); font-size: var(--s-sm); }
.consent { display: flex; gap: 14px; align-items: flex-start; margin-top: 28px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 4px; color: var(--silver); font-size: var(--s-sm); max-width: 760px; }
.consent svg { width: 22px; height: 22px; color: var(--steel-hi); flex-shrink: 0; margin-top: 2px; }

/* ---------- Work grid ---------- */
.work-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .work-grid.feature { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .work-grid.feature .card:nth-child(1) { grid-column: span 6; }
  .work-grid.feature .card:nth-child(2) { grid-column: span 6; }
  .work-grid.feature .card:nth-child(3), .work-grid.feature .card:nth-child(4), .work-grid.feature .card:nth-child(5) { grid-column: span 4; }
  .work-grid.feature .card:nth-child(6) { grid-column: span 12; }
  .work-grid.feature .card:nth-child(6) .poster { aspect-ratio: 21 / 8; }
  .work-grid.all { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.card { display: grid; gap: 14px; position: relative; }
.card .poster { position: relative; aspect-ratio: 16 / 9; border-radius: 3px; }
.card:hover img.thumb { transform: scale(1.04); }
.card .poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11, 11, 13, .5), transparent 50%); opacity: 0; transition: opacity .4s; }
.card:hover .poster::after { opacity: 1; }
.card .pp { position: absolute; z-index: 2; inset-inline-end: 16px; bottom: 16px; width: 52px; height: 52px; border-radius: 50%; background: var(--paper); color: var(--ink); display: grid; place-items: center; transform: scale(.6); opacity: 0; transition: transform .45s var(--ease), opacity .3s; }
.card .pp svg { width: 16px; height: 16px; fill: currentColor; margin-inline-start: 3px; }
.card:hover .pp, .card:focus-visible .pp { transform: none; opacity: 1; }
.card .meta { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.card h3 { font-size: var(--s-lg); letter-spacing: -0.015em; }
.card .cat { color: var(--mute); font-size: var(--s-sm); white-space: nowrap; }
.card .role { color: var(--silver); font-size: var(--s-sm); margin-top: -8px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 36px; }
.chip { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; font-size: var(--s-sm); color: var(--silver); transition: all .25s; }
.chip:hover { color: var(--paper); border-color: var(--paper); }
.chip[aria-pressed="true"] { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.chip .n { color: var(--mute); margin-inline-start: 6px; font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] .n { color: var(--light-mute); }
.card.is-out { display: none; }

/* ---------- Timeline (how we work) ---------- */
.nle { border: 1px solid var(--line); border-radius: 6px; background: var(--ink-2); overflow: hidden; direction: ltr; }
.nle-top { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line); font-family: var(--f-display); font-size: 12px; color: var(--mute); font-variant-numeric: tabular-nums; }
.nle-top .dots { display: flex; gap: 6px; } .nle-top .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); display: block; }
.nle-body { position: relative; overflow-x: auto; }
.nle-inner { min-width: 860px; position: relative; padding: 10px 0 14px; }
.ruler { display: grid; grid-template-columns: 64px repeat(7, 1fr); font-family: var(--f-display); font-size: 11px; color: var(--mute); padding-bottom: 6px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.ruler span { padding-inline-start: 6px; border-inline-start: 1px solid var(--line); }
.ruler span:first-child { border: 0; }
.track { display: grid; grid-template-columns: 64px 1fr; align-items: center; min-height: 52px; border-bottom: 1px solid rgba(185, 192, 199, .07); }
.track .tn { font-family: var(--f-display); font-size: 12px; color: var(--mute); padding-inline-start: 16px; }
.track .lane { position: relative; height: 38px; }
.clip { position: absolute; top: 4px; bottom: 4px; border-radius: 3px; padding: 0 10px; display: flex; align-items: center; font-family: var(--f-display); font-size: 12.5px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border: 1px solid rgba(255, 255, 255, .12); }
.clip.v { background: linear-gradient(180deg, #4A7FA5, #3B6787); }
.clip.v2 { background: linear-gradient(180deg, #5C6B78, #4A5560); }
.clip.a { background: linear-gradient(180deg, #2F7A63, #276552); }
.clip.a::after { content: ""; position: absolute; inset: 55% 8px 6px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .45) 0 1px, transparent 1px 3px); mask: linear-gradient(0deg, #000, transparent); opacity: .5; }
.clip.fx { background: linear-gradient(180deg, #7B6AA8, #66588E); }
.playhead { position: absolute; top: 0; bottom: 0; left: 64px; width: 1px; background: #E5484D; z-index: 3; pointer-events: none; }
.playhead::before { content: ""; position: absolute; top: -1px; left: -6px; border: 6px solid transparent; border-top: 8px solid #E5484D; }
.steps { display: grid; gap: 0; margin-top: 48px; counter-reset: step; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.steps li { counter-increment: step; padding-block: 24px; border-bottom: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--f-display); color: var(--steel-hi); font-size: var(--s-sm); font-variant-numeric: tabular-nums; }
.steps h3 { font-size: var(--s-lg); letter-spacing: -0.015em; }
.steps p { color: var(--silver); font-size: var(--s-sm); }

/* ---------- Clients ---------- */
.clients { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--light-line); border-inline-start: 1px solid var(--light-line); }
@media (min-width: 760px) { .clients { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.clients li { min-height: 120px; display: flex; flex-direction: column; justify-content: space-between; padding: 18px 20px; border-inline-end: 1px solid var(--light-line); border-bottom: 1px solid var(--light-line); transition: background .35s var(--ease), color .35s var(--ease); }
.clients li:hover { background: var(--light-ink); color: var(--light); }
.clients b { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.25rem, 1rem + 1vw, 1.625rem); letter-spacing: -0.03em; line-height: 1.05; }
.clients span { font-size: 12.5px; color: var(--light-mute); }
.clients li:hover span { color: var(--silver); }
.marquee { overflow: hidden; border-block: 1px solid var(--light-line); padding-block: 22px; margin-top: 56px; direction: ltr; mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--f-display); font-size: clamp(1.5rem, 1rem + 2vw, 2.5rem); letter-spacing: -0.03em; white-space: nowrap; display: inline-flex; align-items: center; gap: 56px; }
.marquee-track span::after { content: ""; width: 14px; height: 14px; background: var(--steel); clip-path: polygon(0 50%, 100% 0, 70% 50%, 100% 100%); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Insights ---------- */
.posts { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .posts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.post { display: grid; gap: 16px; align-content: start; }
.post .poster { position: relative; aspect-ratio: 16 / 10; border-radius: 3px; }
.post .poster .p-word { font-size: clamp(1.25rem, 2vw, 1.75rem); letter-spacing: -0.02em; line-height: 1.05; }
.post .pm { display: flex; gap: 14px; font-size: 13px; color: var(--mute); }
.band-light .post .pm { color: var(--light-mute); }
.post h3 { font-size: var(--s-lg); line-height: 1.25; letter-spacing: -0.015em; transition: color .2s; }
.post:hover h3 { color: var(--steel); }
.section:not(.band-light) .post:hover h3 { color: var(--steel-hi); }
.post p { font-size: var(--s-sm); color: var(--light-mute); }
.section:not(.band-light) .post p { color: var(--silver); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-band .big { font-family: var(--f-display); font-size: clamp(3rem, 1rem + 9vw, 9.5rem); line-height: .92; letter-spacing: -0.05em; font-weight: 500; }
html[lang="ar"] .cta-band .big { line-height: 1.15; letter-spacing: 0; }
.cta-band .big a { display: inline-flex; align-items: center; gap: .2em; transition: color .3s; }
.cta-band .big a:hover { color: var(--steel-hi); }
.cta-band .big svg { width: .6em; height: .6em; transition: transform .5s var(--ease); }
.cta-band .big a:hover svg { transform: rotate(-38deg); }
[dir="rtl"] .cta-band .big svg { transform: scaleX(-1); }
[dir="rtl"] .cta-band .big a:hover svg { transform: scaleX(-1) rotate(-38deg); }
.cta-grid { display: grid; gap: 40px; margin-top: 56px; grid-template-columns: 1fr; border-top: 1px solid var(--line); padding-top: 32px; }
@media (min-width: 860px) { .cta-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cta-grid h4 { font-family: var(--f-body); font-weight: 500; font-size: var(--s-sm); color: var(--mute); letter-spacing: 0; margin-bottom: 8px; }
.cta-grid p, .cta-grid a { font-family: var(--f-display); font-size: var(--s-lg); letter-spacing: -0.015em; }
.cta-grid a:hover { color: var(--steel-hi); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-top: 72px; padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px)); background: var(--ink); position: relative; overflow: hidden; }
.f-grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .f-grid { grid-template-columns: 4fr 2fr 2fr 3fr; } }
.f-brand { display: grid; gap: 18px; align-content: start; }
.f-brand svg.full { width: 120px; height: auto; }
.f-brand p { color: var(--silver); font-size: var(--s-sm); }
.f-col h4 { font-family: var(--f-body); font-weight: 500; font-size: 13px; color: var(--mute); letter-spacing: 0; margin-bottom: 14px; }
.f-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: var(--s-sm); }
.f-col a { color: var(--silver); transition: color .2s; }
.f-col a:hover { color: var(--paper); }
.socials { display: flex; gap: 10px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: background .3s, color .3s, border-color .3s; }
.socials a:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.socials svg { width: 17px; height: 17px; }
.legal { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 12.5px; color: var(--mute); }
@media (min-width: 860px) { .legal { grid-template-columns: 1fr auto; align-items: end; } }
.legal .reg { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.giant { font-family: var(--f-display); font-weight: 500; font-size: clamp(5rem, 22vw, 22rem); line-height: .78; letter-spacing: -0.07em; color: transparent; -webkit-text-stroke: 1px var(--line-2); margin-top: 56px; white-space: nowrap; user-select: none; direction: ltr; text-align: start; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-top: calc(var(--header-h) + clamp(56px, 8vw, 120px)); padding-bottom: clamp(48px, 6vw, 88px); position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero .d-hero { max-width: 14ch; }
html[lang="ar"] .page-hero .d-hero { max-width: 18ch; }
.page-hero .ph-grid { display: grid; gap: 28px; }
@media (min-width: 980px) { .page-hero .ph-grid { grid-template-columns: 7fr 5fr; align-items: end; } }
.crumbs { display: flex; gap: 10px; font-size: var(--s-sm); color: var(--mute); margin-bottom: 28px; }
.crumbs a:hover { color: var(--paper); }
.ph-facet { position: absolute; inset-inline-end: -6%; top: 0; height: 100%; width: 46%; pointer-events: none; opacity: .5;
  background: linear-gradient(128deg, transparent 0 40%, rgba(74, 127, 165, .16) 40% 58%, transparent 58%), linear-gradient(52deg, transparent 0 50%, rgba(143, 146, 150, .08) 50% 64%, transparent 64%); }
[dir="rtl"] .ph-facet { transform: scaleX(-1); }

/* ---------- Services page ---------- */
.svc-layout { display: grid; gap: 48px; grid-template-columns: 1fr; }
@media (min-width: 1080px) { .svc-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 72px; } }
.svc-index { display: none; }
@media (min-width: 1080px) {
  .svc-index { display: block; position: sticky; top: calc(var(--header-h) + 32px + env(safe-area-inset-top, 0px)); align-self: start; }
  .svc-index ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-inline-start: 1px solid var(--line); }
  .svc-index a { display: block; padding: 8px 18px; color: var(--mute); font-size: var(--s-sm); border-inline-start: 1px solid transparent; margin-inline-start: -1px; transition: color .2s, border-color .2s; }
  .svc-index a:hover { color: var(--paper); }
  .svc-index a.on { color: var(--paper); border-color: var(--steel-hi); }
}
.svc { padding-block: 0 72px; margin-bottom: 72px; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 24px); }
.svc:last-child { border-bottom: 0; margin-bottom: 0; }
.svc-head { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 20px; align-items: start; margin-bottom: 32px; }
.svc-head .ico { width: 48px; height: 48px; color: var(--steel-hi); }
.svc-head h2 { font-size: var(--s-2xl); line-height: 1.04; }
.svc-head p { color: var(--silver); margin-top: 14px; font-size: var(--s-md); }
.svc-items { display: grid; gap: 0; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .svc-items { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; } }
.svc-items li { padding-block: 20px; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.svc-items h3 { font-size: var(--s-md); font-family: var(--f-display); font-weight: 500; letter-spacing: -0.01em; }
.svc-items p { color: var(--silver); font-size: var(--s-sm); }
.formats { display: flex; flex-wrap: wrap; gap: 10px; }
.formats .tag { font-size: var(--s-sm); padding: 8px 16px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 0; display: flex; justify-content: space-between; gap: 24px; align-items: center; font-family: var(--f-display); font-size: var(--s-lg); letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); flex-shrink: 0; position: relative; transition: transform .4s var(--ease), background .3s; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.faq summary .pm::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .4s var(--ease); }
.faq details[open] summary .pm { background: var(--paper); color: var(--ink); }
.faq details[open] summary .pm::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq .ans { padding: 0 0 26px; color: var(--silver); max-width: 70ch; }

/* ---------- About ---------- */
.split { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 980px) { .split { grid-template-columns: 5fr 7fr; gap: 72px; } }
.prose { display: grid; gap: 20px; color: var(--silver); font-size: var(--s-md); }
.prose p:first-child { color: var(--paper); font-size: var(--s-lg); line-height: 1.5; }
.values { display: grid; gap: 0; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
@media (min-width: 860px) { .values { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.values li { padding: 32px 28px 36px 0; border-bottom: 1px solid var(--line); display: grid; gap: 12px; align-content: start; }
[dir="rtl"] .values li { padding: 32px 0 36px 28px; }
@media (min-width: 860px) { .values li + li { padding-inline-start: 28px; border-inline-start: 1px solid var(--line); } }
.values .ico { width: 34px; height: 34px; color: var(--steel-hi); }
.values h3 { font-size: var(--s-xl); }
.values p { color: var(--silver); }
.founder { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .founder { grid-template-columns: 4fr 8fr; gap: 64px; } }
.founder .monogram { aspect-ratio: 4 / 5; background: var(--ink-2); border: 1px solid var(--line); border-radius: 3px; position: relative; overflow: hidden; display: grid; place-items: end start; padding: 24px; }
.founder .monogram svg { position: absolute; inset: 12% 10% auto auto; width: 60%; opacity: .9; }
.founder .monogram b { font-family: var(--f-display); font-weight: 500; font-size: var(--s-xl); letter-spacing: -0.03em; position: relative; }
.founder .monogram span { display: block; color: var(--mute); font-size: var(--s-sm); font-weight: 400; letter-spacing: 0; font-family: var(--f-body); margin-top: 4px; }
.cred { display: grid; gap: 0; grid-template-columns: 1fr; border-top: 1px solid var(--line); margin-top: 32px; }
@media (min-width: 700px) { .cred { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; } }
.cred li { padding-block: 16px; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.cred b { font-family: var(--f-display); font-weight: 500; }
.cred span { color: var(--mute); font-size: var(--s-sm); }
.facts-table { width: 100%; border-collapse: collapse; font-size: var(--s-sm); }
.facts-table th, .facts-table td { text-align: start; padding: 16px 0; border-bottom: 1px solid var(--light-line); vertical-align: top; }
.facts-table th { font-weight: 500; color: var(--light-mute); width: 40%; padding-inline-end: 24px; }
.facts-table td { font-family: var(--f-display); font-size: var(--s-md); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 56px; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: 7fr 5fr; gap: 80px; } }
.form { display: grid; gap: 26px; }
.form .row2 { display: grid; gap: 26px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form .row2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; min-width: 0; }
.field label { font-size: var(--s-sm); color: var(--silver); }
.field label .req { color: var(--steel-hi); }
.field input, .field select, .field textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-2); color: var(--paper); font: inherit; font-size: var(--s-lg); padding: 10px 0 12px; border-radius: 0; transition: border-color .25s; font-family: var(--f-display); }
.field textarea { min-height: 120px; resize: vertical; font-size: var(--s-md); font-family: var(--f-body); line-height: 1.6; }
.field select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B9C0C7' stroke-width='1.6'><path d='M6 9l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 0 center; background-size: 18px; padding-inline-end: 28px; }
[dir="rtl"] .field select { background-position: left 0 center; }
.field select option { background: var(--ink-2); color: var(--paper); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--steel-hi); }
.field input::placeholder, .field textarea::placeholder { color: #5B626A; }
.field .err { font-size: 13px; color: #FF8A8E; min-height: 0; }
.field.invalid input, .field.invalid textarea { border-color: #FF8A8E; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills { position: relative; }
.pills input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; margin: 0; }
.pills label { min-height: 40px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); cursor: pointer; font-size: var(--s-sm); color: var(--silver); transition: all .2s; }
.pills input:checked + label { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.pills input:focus-visible + label { outline: 2px solid var(--steel-hi); outline-offset: 2px; }
.form-foot { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.form-foot small { color: var(--mute); max-width: 40ch; }
.sent { border: 1px solid var(--line); border-radius: 4px; padding: 28px; display: grid; gap: 16px; background: var(--ink-2); }
.sent h3 { font-size: var(--s-xl); }
.sent .acts { display: flex; gap: 12px; flex-wrap: wrap; }
.side-card { display: grid; gap: 0; border-top: 1px solid var(--line); align-content: start; }
.side-card .it { padding-block: 22px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 16px; align-items: start; }
.side-card .it svg.ico { width: 22px; height: 22px; color: var(--steel-hi); margin-top: 3px; }
.side-card .it h4 { font-family: var(--f-body); font-weight: 500; font-size: 13px; color: var(--mute); letter-spacing: 0; margin-bottom: 4px; }
.side-card .it .v { font-family: var(--f-display); font-size: var(--s-lg); letter-spacing: -0.015em; overflow-wrap: anywhere; }
.side-card .it .v.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.copy { min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; font-size: 12.5px; color: var(--silver); align-self: center; }
.copy:hover { color: var(--paper); border-color: var(--paper); }
.copy.ok { color: var(--ink); background: var(--steel-hi); border-color: var(--steel-hi); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(5, 5, 7, .94); display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .35s var(--ease), visibility .35s; }
.lightbox.open { opacity: 1; visibility: visible; pointer-events: auto; }
.lightbox .lb-frame { width: min(1200px, 100%); aspect-ratio: 16 / 9; background: #000; border-radius: 4px; overflow: hidden; transform: scale(.96); transition: transform .5s var(--ease); }
.lightbox.open .lb-frame { transform: none; }
.lightbox iframe { width: 100%; height: 100%; border: 0; display: block; }
.lightbox .lb-close { position: absolute; top: calc(18px + env(safe-area-inset-top, 0px)); inset-inline-end: calc(18px + env(safe-area-inset-right, 0px)); width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; display: grid; place-items: center; }
.lightbox .lb-close svg { width: 18px; height: 18px; }
.lightbox .lb-title { position: absolute; top: calc(30px + env(safe-area-inset-top, 0px)); inset-inline-start: calc(24px + env(safe-area-inset-left, 0px)); font-family: var(--f-display); color: var(--silver); font-size: var(--s-sm); }

/* ---------- Reveal (content is visible at rest; JS only animates items that start below the fold) ---------- */
.js .rv.pre { opacity: 0; transform: translateY(28px); }
.js .rv { transition: opacity 1s var(--ease), transform 1s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .rv.pre { opacity: 1; transform: none; }
  .grain { display: none; }
}

/* Utilities */
.mt-s { margin-top: 16px; } .mt-m { margin-top: 32px; } .mt-l { margin-top: 56px; }
.row-between { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ltr { direction: ltr; unicode-bidi: isolate; }

/* ---------- Video layers ---------- */
.poster video.prev, .poster video.loop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.poster video.prev { opacity: 0; transition: opacity .4s var(--ease); }
.card.previewing video.prev { opacity: 1; }
.reel .poster video.loop { opacity: .92; }
.card .poster { background: var(--ink-2); }
.card .poster img.thumb { opacity: 1; }
.lightbox .lb-frame video { width: 100%; height: 100%; display: block; background: #000; }
.lightbox .lb-foot { position: absolute; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); inset-inline: 0; display: flex; justify-content: center; gap: 16px; align-items: center; font-size: var(--s-sm); color: var(--silver); flex-wrap: wrap; padding-inline: 16px; }
.lightbox .lb-foot .chip-x { font-family: var(--f-display); font-size: 12px; padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--mute); }
.lightbox .lb-foot a { color: var(--steel-hi); border-bottom: 1px solid rgba(141, 185, 218, .35); }
.ba-caption .arrow-link { color: var(--paper); }

/* ---------- Founder ---------- */
.portrait { margin: 0; position: relative; border-radius: 3px; overflow: hidden; background: var(--ink-2); aspect-ratio: 4 / 5; }
.portrait img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.15) contrast(1.04); }
.portrait figcaption { position: absolute; inset: auto 0 0 0; padding: 60px 22px 20px; background: linear-gradient(0deg, rgba(11, 11, 13, .9), transparent); display: grid; gap: 2px; }
.portrait figcaption b { font-family: var(--f-display); font-weight: 500; font-size: var(--s-lg); letter-spacing: -0.02em; }
.portrait figcaption span { color: var(--silver); font-size: var(--s-sm); }
.suite { margin: 28px 0 0; border-radius: 3px; overflow: hidden; }
.suite img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.suite figcaption { font-size: 13px; color: var(--mute); margin-top: 10px; }
.career { border-top: 1px solid var(--line); }
.career li { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 20px; padding-block: 22px; border-bottom: 1px solid var(--line); }
.career .yr { font-family: var(--f-display); color: var(--steel-hi); font-size: var(--s-sm); font-variant-numeric: tabular-nums; padding-top: 3px; }
.career h3 { font-size: var(--s-lg); letter-spacing: -0.015em; }
.career p { color: var(--silver); font-size: var(--s-sm); margin-top: 4px; }
.career li:last-child h3 { color: var(--steel-hi); }
@media (max-width: 560px) { .career li { grid-template-columns: 1fr; gap: 6px; } }
.tools h4 { font-family: var(--f-body); font-weight: 500; font-size: 13px; color: var(--mute); letter-spacing: 0; }
.post .poster img.thumb { filter: saturate(.85) brightness(.82); }
.post:hover .poster img.thumb { transform: scale(1.04); }
.post .p-tag { position: absolute; inset-inline-start: 14px; bottom: 14px; font-family: var(--f-display); font-size: 13px; padding: 6px 12px; border-radius: 999px; background: rgba(11, 11, 13, .7); backdrop-filter: blur(6px); color: var(--paper); }

@media (min-width: 640px) { .ai-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .ai-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cta-band .big a { display: inline; }
.cta-band .big svg { display: inline-block; vertical-align: -0.04em; margin-inline-start: .15em; }

@media (min-width: 640px) { .reel { aspect-ratio: 16 / 9; } }
@media (min-width: 1000px) { .reel { aspect-ratio: 21 / 9; } }
.contact-grid > *, .form > *, .form .row2 > * { min-width: 0; }
.reel .poster img.thumb { object-position: center; }

@media (max-width: 899px) { .disc { gap: 6px 20px; } .disc p { margin-top: 6px; } .disc .tags { margin-top: 12px; } }

/* ---------- Studio strip ---------- */
.studio-strip { padding-block: 0 clamp(80px, 9vw, 150px); border-top: 0 !important; }
.strip { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .strip { grid-template-columns: 5fr 4fr 3fr; align-items: end; } }
.strip figure { margin: 0; border-radius: 3px; overflow: hidden; position: relative; }
.strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.strip figure:nth-child(3) img { aspect-ratio: 3 / 4; }
.strip figcaption { font-size: 13px; color: var(--mute); margin-top: 10px; }
.suite img { aspect-ratio: 3 / 4; }

/* ---------- WordPress integration ---------- */
.admin-bar .site-header { top: calc(32px + env(safe-area-inset-top, 0px)); }
@media (max-width: 782px) { .admin-bar .site-header { top: calc(46px + env(safe-area-inset-top, 0px)); } }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wpcf7 form .wpcf7-response-output { margin: 24px 0 0; padding: 14px 18px; border-radius: 4px; border: 1px solid var(--line-2); color: var(--silver); font-size: var(--s-sm); }
.wpcf7 form.sent .wpcf7-response-output { border-color: #2BB673; color: #9BE7C4; }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.failed .wpcf7-response-output { border-color: #FF8A8E; color: #FFB4B7; }
.wpcf7-not-valid-tip { font-size: 13px; color: #FF8A8E; margin-top: 6px; display: block; }
.wpcf7-form-control-wrap { display: block; }
.field .lbl { font-size: var(--s-sm); color: var(--silver); display: block; }
label.field { display: grid; gap: 8px; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field select, .field textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-2); color: var(--paper); font-size: var(--s-lg); padding: 10px 0 12px; border-radius: 0; font-family: var(--f-display); }
.field textarea { min-height: 120px; font-size: var(--s-md); font-family: var(--f-body); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--steel-hi); }
.pills .wpcf7-checkbox { display: flex; flex-wrap: wrap; gap: 8px; }
.pills .wpcf7-list-item { margin: 0; }
.pills .wpcf7-list-item label { position: relative; display: inline-flex; cursor: pointer; }
.pills .wpcf7-list-item input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; margin: 0; }
.pills .wpcf7-list-item-label { min-height: 40px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: var(--s-sm); color: var(--silver); transition: all .2s; }
.pills .wpcf7-list-item input:checked + .wpcf7-list-item-label { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.pills .wpcf7-list-item input:focus-visible + .wpcf7-list-item-label { outline: 2px solid var(--steel-hi); outline-offset: 2px; }
.wpcf7-submit.btn { cursor: pointer; }
.wpcf7-spinner { margin-inline-start: 12px; }
.gz-captcha { min-height: 0; }
.cf7-wrap .form { display: grid; gap: 26px; }

/* Article */
.post-hero .d-hero { max-width: 22ch; font-size: clamp(2.25rem, 1.2rem + 3.6vw, 4.25rem); line-height: 1.04; }
.post-meta { display: flex; gap: 16px; flex-wrap: wrap; color: var(--mute); font-size: var(--s-sm); margin-top: 22px; }
.post-cover { margin: 0; }
.post-cover img { width: 100%; max-height: 640px; object-fit: cover; border-radius: 3px; }
.article-body { max-width: 720px; margin-inline: auto; font-size: 1.125rem; line-height: 1.75; color: #D7DBE0; display: grid; gap: 1.1em; }
.article-body > * { margin: 0; max-width: 100%; }
.article-body h2 { font-size: var(--s-xl); color: var(--paper); margin-top: 1em; line-height: 1.15; }
.article-body h3 { font-size: var(--s-lg); color: var(--paper); margin-top: .6em; }
.article-body a { color: var(--steel-hi); border-bottom: 1px solid rgba(141, 185, 218, .35); }
.article-body ul, .article-body ol { padding-inline-start: 1.3em; display: grid; gap: .4em; }
.article-body blockquote { border-inline-start: 2px solid var(--steel); padding-inline-start: 20px; color: var(--paper); font-family: var(--f-display); font-size: var(--s-lg); }
.article-body img, .article-body figure { border-radius: 3px; }
.article-body table { width: 100%; border-collapse: collapse; font-size: var(--s-sm); display: block; overflow-x: auto; }
.article-body th, .article-body td { border-bottom: 1px solid var(--line); padding: 10px 12px 10px 0; text-align: start; }
.article-body strong { color: var(--paper); }
.pagination-wrap { margin-top: 56px; display: flex; gap: 12px; flex-wrap: wrap; }
.page-prose { max-width: 760px; display: grid; gap: 1em; color: var(--silver); }
.page-prose h2, .page-prose h3 { color: var(--paper); }

/* ---------- Round 3 ---------- */
.band-light .tag { color: var(--light-ink); border-color: rgba(11, 11, 13, .22); background: rgba(255, 255, 255, .5); }
.strip { grid-template-columns: 1fr; align-items: start; }
@media (min-width: 760px) { .strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.strip img, .strip figure:nth-child(3) img { aspect-ratio: 4 / 3; object-position: center 30%; }
.post .poster img.thumb { filter: none; }
.post-cover img { aspect-ratio: 21 / 9; object-fit: cover; max-height: none; object-position: center 35%; }
.card .poster img.thumb[src$="/studio1.jpg"] { object-position: center 28%; }
@media (min-width: 1100px) { .work-grid.feature .card:nth-child(6) .poster { aspect-ratio: 21 / 9; } }
.field textarea { height: 150px; }

.card .meta::before, .card .meta::after { content: none !important; display: none !important; }

/* Larger brand mark in the header */
:root { --header-h: 84px; }
.brand { gap: 14px; }
.brand svg { width: 50px; }
.brand-name { font-size: 20px; letter-spacing: .03em; }
.brand-name small { font-size: 13px; margin-top: 4px; }
@media (max-width: 560px) { .brand svg { width: 42px; } .brand-name { font-size: 17px; } .brand-name small { font-size: 11.5px; } }

/* Arabic set in Tajawal */
:root { --f-display: "Space Grotesk", "Tajawal", "Segoe UI", Arial, sans-serif; --f-body: "Inter", "Tajawal", "Segoe UI", Arial, sans-serif; }
html[lang="ar"] { --f-display: "Tajawal", "Segoe UI", Arial, sans-serif; --f-body: "Tajawal", "Segoe UI", Arial, sans-serif; }
html[lang="ar"] body { font-family: "Tajawal", "Segoe UI", Arial, sans-serif; line-height: 1.7; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 { font-weight: 700; }
html[lang="ar"] .d-hero { line-height: 1.15; }
.lang { font-family: "Tajawal", "Segoe UI", Arial, sans-serif; font-weight: 500; }

/* Arabic headlines: give the hamza and madda room above the letters so the reveal mask never clips them */
html[lang="ar"] .hero .d-hero .line { overflow: visible; padding-top: .12em; }
html[lang="ar"] .d-hero { line-height: 1.32; }
html[lang="ar"] .d-1, html[lang="ar"] .d-2 { line-height: 1.32; }
html[lang="ar"] .cta-band .big { line-height: 1.3; }
