/* =========================================================================
   TVARA — main stylesheet
   Brand: Ink Navy #101B30 · Warm Off-White #F3F0E8 · Electric Orange #FF5B22 · Silver Gray #C9CCD1
   Uses CSS logical properties so the same rules work for LTR (en) and RTL (ar).
   ========================================================================= */
:root {
  /* brand palette */
  --navy: #101B30;
  --navy-2: #1B2843;
  --offwhite: #F3F0E8;
  --paper: #FBF9F4;
  --orange: #FF5B22;        /* fills, and text on navy */
  --orange-text: #E8490F;   /* large display text on light backgrounds */
  --orange-ink: #C2410C;    /* small text and icons on light backgrounds */
  --silver: #C9CCD1;
  /* roles (older names kept so every rule picks up the new brand) */
  --blue: var(--orange-ink);
  --purple: var(--navy);
  --cyan: var(--orange);
  --light: #EAE6DC;
  --dark: var(--navy);
  --ink: var(--navy);
  --text: #1F2A40;
  --muted: #5E6472;
  --line: #DAD5C9;
  --white: var(--paper);
  --grad: var(--orange);
  --grad-soft: rgba(255,91,34,.12);
  --radius: 4px;
  --radius-sm: 2px;
  --shadow: 0 1px 2px rgba(16,27,48,.05), 0 8px 24px rgba(16,27,48,.07);
  --shadow-lg: 0 18px 50px rgba(16,27,48,.18);
  --container: 1240px;
  --font: "Manrope", sans-serif;
  --header-h: 76px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  /* Bootstrap 5 theme, mapped to the brand */
  --bs-body-font-family: var(--font);
  --bs-body-color: var(--text);
  --bs-body-bg: var(--offwhite);
  --bs-border-color: var(--line);
  --bs-primary: #FF5B22;
  --bs-primary-rgb: 255, 91, 34;
  --bs-dark-rgb: 16, 27, 48;
  --bs-link-color-rgb: 194, 65, 12;
  --bs-border-radius: 2px;
}
html[lang="ar"] { --font: "Alexandria", "Manrope", system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--offwhite); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.05; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.035em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.35; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 800; }
.hl { color: var(--orange-text); }
.section--dark .hl, .page-hero .hl { color: var(--orange); }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.muted { color: var(--muted); }
.lead { font-size: 1.15rem; color: var(--muted); }
.h-sm { font-size: 1.1rem; margin-block: 1.5em .75em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 6px; z-index: 100; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* icons */
.ico { width: 18px; height: 18px; flex: none; vertical-align: middle; }
.ico--lg { width: 28px; height: 28px; }
[dir="rtl"] .flip { transform: scaleX(-1); }

/* eyebrow */
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .76rem; font-weight: 700; color: var(--orange-ink); margin-bottom: .75rem; }
html[lang="ar"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: .9rem; }
.eyebrow--light { color: var(--cyan); }

/* buttons — Bootstrap's .btn, themed through its CSS variables so hover/active/focus states stay on brand */
.btn {
  --bs-btn-padding-x: 1.6em; --bs-btn-padding-y: .95em;
  --bs-btn-font-family: inherit; --bs-btn-font-size: .95rem; --bs-btn-font-weight: 700; --bs-btn-line-height: 1.4;
  --bs-btn-border-width: 2px; --bs-btn-border-radius: 0;
  --bs-btn-border-color: transparent; --bs-btn-hover-border-color: transparent; --bs-btn-active-border-color: transparent;
  --bs-btn-focus-box-shadow: 0 0 0 .25rem rgba(255, 91, 34, .4);
  display: inline-flex; align-items: center; gap: .8em;
  transition: transform .25s var(--ease-out), box-shadow .25s, background-color .2s, color .2s, border-color .2s;
}
.btn .ico { transition: transform .25s var(--ease-out); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(16, 27, 48, .45); }
.btn:hover .ico { transform: translateX(4px); }
[dir="rtl"] .btn:hover .ico.flip { transform: scaleX(-1) translateX(4px); }
.btn:active { transform: translateY(0); }
.btn--sm { --bs-btn-padding-x: 1.1em; --bs-btn-padding-y: .6em; --bs-btn-font-size: .88rem; }
.btn--primary, .btn--dark {
  --bs-btn-bg: var(--navy); --bs-btn-color: var(--offwhite);
  --bs-btn-hover-bg: var(--orange); --bs-btn-hover-color: var(--navy);
  --bs-btn-active-bg: var(--orange); --bs-btn-active-color: var(--navy);
}
.btn--accent, .section--dark .btn--primary {
  --bs-btn-bg: var(--orange); --bs-btn-color: var(--navy);
  --bs-btn-hover-bg: var(--offwhite); --bs-btn-hover-color: var(--navy);
  --bs-btn-active-bg: var(--offwhite); --bs-btn-active-color: var(--navy);
}
.site-header .btn--accent { --bs-btn-color: #fff; --bs-btn-hover-bg: var(--navy); --bs-btn-hover-color: #fff; --bs-btn-active-bg: var(--navy); --bs-btn-active-color: #fff; }
.btn--ghost {
  --bs-btn-color: var(--offwhite); --bs-btn-border-color: rgba(243, 240, 232, .4);
  --bs-btn-hover-color: var(--orange); --bs-btn-hover-border-color: var(--orange); --bs-btn-hover-bg: transparent;
  --bs-btn-active-color: var(--orange); --bs-btn-active-border-color: var(--orange);
}
.btn--light {
  --bs-btn-bg: var(--offwhite); --bs-btn-color: var(--navy);
  --bs-btn-hover-bg: var(--navy); --bs-btn-hover-color: var(--offwhite);
  --bs-btn-active-bg: var(--navy); --bs-btn-active-color: var(--offwhite);
}
/* Bootstrap reboot/component overrides for class names this site already uses */
.lead { font-weight: 400; }
.badge { line-height: 1.3; }
.pagination { --bs-pagination-padding-x: 0; }
.link-arrow { display: inline-flex; align-items: center; gap: .45em; font-weight: 600; color: var(--blue); }
.link-arrow .ico { transition: transform .2s; }
.link-arrow:hover .ico { transform: translateX(4px); }
[dir="rtl"] .link-arrow:hover .ico { transform: scaleX(-1) translateX(4px); }
.link-arrow--light { color: var(--cyan); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--offwhite); border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s, background-color .25s; }
.site-header.is-scrolled { background: rgba(243,240,232,.94); backdrop-filter: blur(10px); border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(16,27,48,.08); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; direction: ltr; }
.logo__img { display: block; height: 30px; width: auto; }
.site-footer .logo__img { height: 26px; }
.primary-nav { display: flex; align-items: center; gap: 36px; }
.primary-nav > ul { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.primary-nav > ul > li > a { display: block; padding: 26px 12px; font-size: .95rem; font-weight: 600; color: var(--navy); position: relative; }
.primary-nav > ul > li > a::after { content: ""; position: absolute; inset-inline: 12px; bottom: 20px; height: 2px; background: var(--orange); transform: scaleX(0); transition: transform .25s; }
.primary-nav > ul > li:hover > a::after, .primary-nav > ul > li:focus-within > a::after { transform: scaleX(1); }
.primary-nav__actions { display: flex; align-items: center; gap: 20px; }
.lang-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--muted); }
.lang-toggle:hover { color: var(--orange-ink); }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); cursor: pointer; padding: 8px; }

/* mega menu */
.has-mega { position: static; }
.mega { position: absolute; inset-inline: 0; top: 100%; background: var(--offwhite); border-top: 1px solid var(--line); box-shadow: var(--shadow-lg); display: grid; grid-template-columns: 1fr 2fr; gap: 40px; padding: 40px max(24px, calc((100vw - var(--container)) / 2 + 24px)); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s; }
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.mega__intro p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; }
.mega__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 24px; }
.mega__grid a { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--radius-sm); font-weight: 600; }
.mega__grid a:hover { background: var(--light); color: var(--blue); }
.mega__grid small { display: block; font-weight: 400; color: var(--muted); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .primary-nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--offwhite); flex-direction: column; align-items: stretch; padding: 16px 24px 32px; gap: 16px; overflow-y: auto; transform: translateX(100%); transition: transform .3s; }
  [dir="rtl"] .primary-nav { transform: translateX(-100%); }
  .primary-nav:not(.is-open) { visibility: hidden; transition: transform .3s, visibility 0s .3s; }
  .primary-nav.is-open { transform: none; visibility: visible; }
  .primary-nav > ul { flex-direction: column; }
  .primary-nav > ul > li > a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.15rem; }
  .primary-nav > ul > li > a::after { display: none; }
  .mega { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 8px 0; grid-template-columns: 1fr; gap: 0; }
  .mega__intro { display: none; }
  .mega__grid { grid-template-columns: 1fr; }
  .primary-nav__actions { flex-direction: column-reverse; align-items: stretch; gap: 16px; }
  .lang-toggle { justify-content: center; }
  body.nav-open { overflow: hidden; }
}

/* ---------- hero ---------- */
.hero { --bleed: max(24px, (100vw - var(--container)) / 2 + 24px); background: var(--offwhite); overflow: hidden; }
.hero__inner { min-height: clamp(520px, calc(100svh - var(--header-h) - 76px), 760px); }
.hero__copy { display: flex; flex-direction: column; justify-content: center; padding-block: 40px 64px; padding-inline-end: 24px; }
.hero__title { font-size: clamp(3.4rem, 8vw, 7.4rem); font-weight: 800; line-height: .88; letter-spacing: -.065em; margin-bottom: .3em; color: var(--navy); }
html[lang="ar"] .hero__title { font-size: clamp(2.3rem, 4.6vw, 3.9rem); line-height: 1.3; letter-spacing: 0; }
.hw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.hw > span { display: inline-block; }
.hw--hl { color: var(--orange-text); }
html[lang="en"] .hw--hl { display: table; }
.hero__lead { font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.45; color: var(--text); max-width: 17em; margin: 0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero__actions .btn { --bs-btn-padding-x: 1.75em; --bs-btn-padding-y: 1.05em; gap: 1.6em; }
.hero__media { position: relative; min-height: 440px; overflow: hidden; background: var(--navy);
  margin-inline-end: calc(-1 * var(--bleed));
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); }
[dir="rtl"] .hero__media { clip-path: polygon(0 0, 86% 0, 100% 100%, 0 100%); }
@media (min-width: 992px) { .hero__media.col-lg-6 { width: calc(50% + var(--bleed)); } }
.hero__media img { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; object-position: 30% 50%; translate: 0 var(--py, 0px); }
[dir="rtl"] .hero__media img { transform: scaleX(-1); }
@media (max-width: 991.98px) {
  .hero__inner { min-height: 0; }
  .hero__copy { padding-block: 24px 40px; }
  .hero__media { min-height: 320px; margin-inline: -24px; width: calc(100% + 48px); max-width: none; clip-path: polygon(0 12%, 100% 0, 100% 100%, 0 100%); }
  [dir="rtl"] .hero__media { clip-path: polygon(0 0, 100% 12%, 100% 100%, 0 100%); }
}

/* hero entrance: plays once the page loader has gone (body loses .is-loading) */
.js .hw > span { transform: translateY(110%); }
.js .hero-in { opacity: 0; }
.js body:not(.is-loading) .hw > span { animation: hero-word 1s var(--ease-out) both; animation-delay: calc(var(--i) * 90ms + 120ms); }
.js body:not(.is-loading) .hero-in { animation: hero-fade .9s var(--ease-out) both; animation-delay: calc(var(--d) * 80ms + 120ms); }
.js body:not(.is-loading) .hero__media { animation: hero-wipe 1.3s var(--ease-out) .15s both; }
.js[dir="rtl"] body:not(.is-loading) .hero__media { animation-name: hero-wipe-rtl; }
.js body:not(.is-loading) .hero__media img { animation: hero-zoom 1.8s var(--ease-out) .15s both; }
@keyframes hero-word { from { transform: translateY(110%); } to { transform: none; } }
@keyframes hero-fade { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes hero-zoom { from { scale: 1.18; } to { scale: 1; } }
@keyframes hero-wipe { from { clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%); } to { clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); } }
@keyframes hero-wipe-rtl { from { clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); } to { clip-path: polygon(0 0, 86% 0, 100% 100%, 0 100%); } }
@media (max-width: 991.98px) {
  .js body:not(.is-loading) .hero__media { animation-name: hero-rise; }
  .js[dir="rtl"] body:not(.is-loading) .hero__media { animation-name: hero-rise; }
}
@keyframes hero-rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }

/* disciplines strip under the hero: STRATEGY / BRANDING / CONTENT / DIGITAL */
.disciplines { list-style: none; margin: 0; padding: 22px 0; display: flex; justify-content: space-around; flex-wrap: wrap; gap: 8px 24px; border-top: 1px solid var(--line); }
.disciplines li { display: flex; align-items: center; gap: 24px; font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--navy); }
html[lang="ar"] .disciplines li { letter-spacing: 0; font-size: .95rem; }
.disciplines li + li::before { content: "/"; color: var(--orange); font-weight: 400; letter-spacing: 0; margin-inline-end: 24px; }
.disciplines a:hover { color: var(--orange-ink); }
/* Disciplines and stats: a two-up swiper on phones (data-mobile-swiper), one row of four from 768px. */
.disciplines-swiper, .stats-swiper { overflow: hidden; }
.disciplines-swiper { border-top: 1px solid var(--line); }
.disciplines-swiper .disciplines { border-top: 0; box-sizing: border-box; height: auto; }
.stats-swiper .swiper-wrapper { height: auto; text-align: center; }
@media (min-width: 768px) {
  .disciplines-swiper .swiper-slide { width: auto; flex-shrink: 1; }
  .stats-swiper .swiper-slide { flex: 1 1 0; width: auto; }
}
@media (max-width: 767.98px) {
  .disciplines { justify-content: flex-start; flex-wrap: nowrap; gap: 0; }
  .disciplines li { justify-content: center; text-align: center; }
  .disciplines li + li::before { display: none; }
  /* Two equal slides are always in view, so the divider is a fixed line down the middle. */
  .disciplines-swiper::after, .stats-swiper::after { content: ""; position: absolute; z-index: 2; inset-inline-start: 50%; width: 1px; pointer-events: none; }
  .disciplines-swiper::after { top: 20px; bottom: 20px; background: var(--orange); }
  .stats-swiper::after { top: 10%; bottom: 10%; background: rgba(16, 27, 48, .25); }
}

/* page hero (inner pages) */
/* inner-page heroes: cream, big navy headline, a single angled orange accent (as on the home hero) */
.page-hero, .profile-hero { background: var(--offwhite); color: var(--text); position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero { padding-block: clamp(48px, 7vw, 88px) clamp(40px, 6vw, 72px); }
.page-hero::after, .profile-hero::after { content: ""; position: absolute; top: 0; bottom: 0; inset-inline-end: 0; width: clamp(48px, 12vw, 200px); background: var(--orange); clip-path: polygon(55% 0, 100% 0, 100% 100%, 0 100%); pointer-events: none; }
[dir="rtl"] .page-hero::after, [dir="rtl"] .profile-hero::after { clip-path: polygon(0 0, 45% 0, 100% 100%, 0 100%); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--navy); font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 800; line-height: .95; letter-spacing: -.055em; max-width: 16ch; margin-bottom: .35em; }
html[lang="ar"] .page-hero h1 { font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.3; letter-spacing: 0; }
.page-hero .hl, .profile-hero .hl { color: var(--orange-text); }
.crumbs { font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.crumbs a:hover { color: var(--orange-ink); }
.page-hero .hero__lead, .profile-hero .hero__lead { color: var(--text); max-width: 46ch; }
@media (max-width: 760px) { .page-hero::after, .profile-hero::after { width: 40px; } }

/* ---------- sections ---------- */
.section { padding-block: clamp(64px, 8vw, 110px); }
.section--tight { padding-block: 48px clamp(64px, 8vw, 110px); }
.section--tint { background: var(--light); }
.section--dark { background: var(--dark); color: rgba(243,240,232,.8); }
.section--dark h2, .section--dark h3 { color: var(--offwhite); }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section__head h2 { margin: 0; max-width: 24ch; }
.grid { display: grid; gap: 28px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--3 { grid-template-columns: 1fr; } }

/* ---------- project cards ---------- */
.card { border: 0; background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card__link { display: flex; flex-direction: column; height: 100%; }
.card__media { position: relative; aspect-ratio: 16/10; display: grid; place-items: center; overflow: hidden; background: var(--grad); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card__media img { transform: scale(1.05); }
.card__monogram { font-size: 6rem; font-weight: 800; color: rgba(255,255,255,.9); text-shadow: 0 10px 40px rgba(0,0,0,.25); }
.card__media--ui-ux { background: var(--navy); }
.card__media--motion { background: linear-gradient(118deg, var(--navy) 0 58%, var(--orange) 58%); }
.card__media--branding { background: linear-gradient(118deg, var(--orange) 0 42%, var(--navy) 42%); }
.card__media--marketing { background: var(--orange); }
.card__media--development { background: var(--navy-2); }
.card__media--devops { background: var(--silver); }
.card__media--marketing .card__monogram, .card__media--devops .card__monogram { color: var(--navy); text-shadow: none; }
.badge { position: absolute; top: 14px; inset-inline-start: 14px; background: rgba(16,27,48,.82); color: var(--offwhite); font-size: .75rem; font-weight: 600; padding: 5px 10px; border-radius: 0; backdrop-filter: blur(6px); }
.badge--personal { background: var(--orange); color: var(--navy); }
.card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.card__body .eyebrow { margin-bottom: .4rem; }
.card__title { font-size: 1.25rem; }
.card__text { color: var(--muted); font-size: .95rem; flex: 1; }
.card__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; }
.avatars { display: flex; }
.avatars .mini-avatar + .mini-avatar { margin-inline-start: -8px; }
.mini-avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--orange); color: var(--navy); font-size: .72rem; font-weight: 800; border: 2px solid var(--paper); flex: none; font-family: "Manrope", sans-serif; }
.mini-avatar--purple { background: var(--navy); color: var(--offwhite); }
.mini-avatar--cyan { background: var(--orange); color: var(--navy); }
.mini-avatar--blue { background: var(--silver); color: var(--navy); }

/* ---------- services ---------- */
.service { position: relative; display: block; padding: 32px; background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line); transition: border-color .25s, transform .25s, box-shadow .25s; overflow: hidden; }
.service::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 4px; background: var(--grad); transform: scaleX(0); transition: transform .3s; transform-origin: left; }
[dir="rtl"] .service::before { transform-origin: right; }
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.service:hover::before { transform: scaleX(1); }
.service p { color: var(--muted); margin: 0; }
.service__icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 0; background: var(--grad-soft); color: var(--orange-ink); margin-bottom: 20px; }
/* services on navy (home page): flat columns split by thin rules, as on the brand board */
.section--dark .service { background: transparent; border: 0; border-inline-start: 1px solid rgba(243,240,232,.22); border-radius: 0; padding: 8px 28px 12px; color: rgba(243,240,232,.78); }
.section--dark .swiper-slide:first-child .service { border-inline-start: 0; padding-inline-start: 0; }
.section--dark .service:hover { transform: none; box-shadow: none; }
.section--dark .service::before { top: auto; bottom: 0; inset-inline-start: 28px; }
.section--dark .service p { color: rgba(243,240,232,.72); }
.section--dark .service__icon { background: transparent; color: var(--orange); width: auto; height: auto; margin-bottom: 14px; }
.section--dark .service__num { color: rgba(243,240,232,.14); }
.service__num { position: absolute; top: 28px; inset-inline-end: 28px; font-weight: 800; font-size: 2rem; color: var(--line); }
.service-list { display: grid; gap: 0; }
.service-row { display: grid; grid-template-columns: 160px 1fr; gap: 40px; padding-block: 48px; border-bottom: 1px solid var(--line); scroll-margin-top: 140px; }
.service-row:first-child { padding-top: 0; }
.service-row__head { position: relative; }
.service-row .service__num { position: static; display: block; font-size: 3rem; margin-top: 8px; }
@media (max-width: 700px) { .service-row { grid-template-columns: 1fr; gap: 12px; } }
.prose { color: var(--text); font-size: 1.05rem; max-width: 70ch; }

/* ---------- stats ---------- */
.stats { background: var(--orange); color: var(--navy); padding-block: 56px; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stats b { display: block; font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.1; font-family: "Manrope", sans-serif; }
.stats b::after { content: "+"; }
.stats span { font-weight: 600; }
@media (max-width: 700px) { .stats__grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- about split ---------- */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.split__media img { border-radius: 0; box-shadow: var(--shadow-lg); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- member cards ---------- */
.member-card a { display: block; border-radius: var(--radius); overflow: hidden; background: rgba(243,240,232,.04); border: 1px solid rgba(243,240,232,.12); transition: transform .3s, border-color .3s; height: 100%; }
.section:not(.section--dark) .member-card a { background: var(--paper); border-color: var(--line); box-shadow: var(--shadow); }
.member-card a:hover { transform: translateY(-6px); border-color: var(--orange); }
.member-card__photo { aspect-ratio: 4/3; display: grid; place-items: center; background: var(--grad); position: relative; overflow: hidden; }
.member-card--purple .member-card__photo { background: linear-gradient(118deg, var(--navy-2) 0 60%, var(--orange) 60%); }
.member-card--cyan .member-card__photo { background: var(--orange); }
.member-card--blue .member-card__photo { background: var(--silver); }
.member-card--cyan .member-card__initials, .member-card--blue .member-card__initials { color: var(--navy); }
.member-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.member-card__initials { font-family: "Manrope", sans-serif; font-size: 5rem; font-weight: 800; color: var(--offwhite); letter-spacing: -.04em; }
.member-card__body { padding: 24px; }
.member-card__body h3 { margin-bottom: 4px; }
.section:not(.section--dark) .member-card__body h3 { color: var(--ink); }
.member-card__role { color: var(--blue); font-weight: 600; font-size: .95rem; }
.section--dark .member-card__role { color: var(--cyan); }
.section--dark .member-card .muted { color: rgba(243,240,232,.65); }
.section--dark .member-card .link-arrow { color: var(--cyan); }

/* ---------- testimonials ---------- */
.quote { margin: 0; padding: 32px; background: var(--light); border-radius: var(--radius); display: flex; flex-direction: column; gap: 16px; }
.quote__mark { color: var(--blue); }
.quote blockquote { margin: 0; font-size: 1.08rem; flex: 1; }
.quote figcaption b { display: block; color: var(--ink); }
.quote figcaption span { color: var(--muted); font-size: .9rem; }

/* ---------- filters / chips ---------- */
.filters { display: grid; gap: 14px; margin-bottom: 40px; padding: 24px; background: var(--light); border-radius: var(--radius); }
.filters__group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filters__label { font-weight: 700; font-size: .85rem; color: var(--muted); min-width: 92px; }
.chip { display: inline-block; padding: 7px 16px; border-radius: 0; border: 1px solid var(--line); background: var(--paper); font-size: .9rem; font-weight: 500; transition: .2s; }
.chip:hover { border-color: var(--navy); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 48px; }

/* ---------- project detail ---------- */
.page-hero--project h1 { max-width: 26ch; }
.project-cover { border-radius: var(--radius); overflow: hidden; aspect-ratio: 21/9; display: grid; place-items: center; margin-top: -24px; box-shadow: var(--shadow-lg); position: relative; z-index: 2; }
.project-cover img { width: 100%; height: 100%; object-fit: cover; }
.project-cover .card__monogram { font-size: 9rem; }
.project-body { display: grid; grid-template-columns: 300px 1fr; gap: 64px; margin-top: 56px; }
.project-meta { display: grid; gap: 22px; align-content: start; padding: 28px; background: var(--light); border-radius: var(--radius); position: sticky; top: calc(var(--header-h) + 24px); }
.project-meta > div > span { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 4px; }
html[lang="ar"] .project-meta > div > span { text-transform: none; letter-spacing: 0; }
.project-meta a:hover { color: var(--blue); }
.meta-person { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.meta-person small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.3; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 6px 14px; border-radius: 0; background: var(--grad-soft); color: var(--navy); font-weight: 600; font-size: .88rem; }
@media (max-width: 860px) { .project-body { grid-template-columns: 1fr; gap: 32px; } .project-meta { position: static; } }

/* ---------- member profile ---------- */
.profile-hero { padding-block: clamp(48px, 7vw, 88px); }
.profile-hero__inner { display: grid; grid-template-columns: 280px 1fr; gap: 56px; align-items: center; position: relative; }
.profile-hero h1 { color: var(--navy); font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 800; line-height: .95; letter-spacing: -.055em; margin-bottom: .2em; }
html[lang="ar"] .profile-hero h1 { font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.3; letter-spacing: 0; }
.profile-hero .btn--ghost { --bs-btn-color: var(--navy); --bs-btn-border-color: var(--navy); --bs-btn-hover-color: var(--orange-ink); --bs-btn-hover-border-color: var(--orange-ink); }
.profile-hero__inner { z-index: 1; }
.profile-hero__role { font-size: 1.25rem; font-weight: 700; color: var(--orange-ink); margin-bottom: 1em; }
.profile-hero__photo { aspect-ratio: 1; border-radius: 0; background: var(--orange); display: grid; place-items: center; overflow: hidden; box-shadow: var(--shadow-lg); }
.profile-hero--purple .profile-hero__photo { background: linear-gradient(118deg, var(--navy-2) 0 60%, var(--orange) 60%); }
.profile-hero--blue .profile-hero__photo { background: var(--silver); }
.profile-hero--blue .profile-hero__photo span, .profile-hero--cyan .profile-hero__photo span { color: var(--navy); }
.profile-hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-hero__photo span { font-family: "Manrope", sans-serif; font-size: 6rem; font-weight: 800; color: var(--offwhite); }
@media (max-width: 760px) { .profile-hero__inner { grid-template-columns: 1fr; gap: 28px; } .profile-hero__photo { max-width: 200px; } }
.profile-body { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; }
@media (max-width: 860px) { .profile-body { grid-template-columns: 1fr; gap: 40px; } }
.exp { font-size: 1.1rem; color: var(--muted); }
.exp b { font-size: 2.4rem; color: var(--orange-text); font-family: "Manrope", sans-serif; }
.skills { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.skills__label { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 6px; }
.skills__label span:last-child { color: var(--muted); font-family: "Manrope", sans-serif; }
.skills__bar { display: block; height: 6px; background: var(--light); border-radius: 0; overflow: hidden; }
.skills__bar span { display: block; height: 100%; width: 0; background: var(--grad); border-radius: inherit; transition: width 1.2s cubic-bezier(.2,.8,.2,1); }
.skills.is-visible .skills__bar span, .no-js .skills__bar span { width: var(--w); }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.form { display: grid; gap: 20px; }
.form__row { display: grid; gap: 6px; }
.form label { font-weight: 600; font-size: .92rem; }
.form input, .form select, .form textarea { width: 100%; font: inherit; padding: 14px 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: var(--paper); transition: border-color .2s, box-shadow .2s; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(255,91,34,.22); }
.has-error input, .has-error textarea { border-color: #D93025; }
.form__error { color: #D93025; font-size: .85rem; margin: 0; }
.form .btn { justify-self: start; }
.contact__info { padding: 32px; background: var(--light); border-radius: var(--radius); align-self: start; }
.contact__info .h-sm:first-child { margin-top: 0; }
.contact-list { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 10px; }
.contact-list li { display: flex; align-items: center; gap: 10px; }
.contact-list .ico { color: var(--blue); }
.flash-wrap { padding-top: 24px; }
.flash { padding: 16px 20px; border-radius: var(--radius-sm); background: #E8F7EE; color: #11663A; font-weight: 500; border-inline-start: 4px solid #1E9E5A; }

/* ---------- footer ---------- */
.footer-cta { background: var(--orange); color: var(--navy); padding-block: clamp(40px, 6vw, 64px); }
.footer-cta .container { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-cta h2 { color: var(--navy); margin: 0; font-size: clamp(2.2rem, 5.4vw, 4rem); line-height: .95; letter-spacing: -.05em; max-width: 13ch; }
html[lang="ar"] .footer-cta h2 { line-height: 1.3; letter-spacing: 0; }
.site-footer { background: var(--ink); color: rgba(243,240,232,.7); }
.site-footer__cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-block: 56px; }
.site-footer h3 { color: var(--offwhite); font-size: .95rem; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a:hover { color: var(--cyan); }
.site-footer .muted { color: rgba(243,240,232,.6); margin-top: 12px; }
.site-footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-block: 24px 32px; border-top: 1px solid rgba(243,240,232,.12); font-size: .88rem; }
.site-footer__bottom p { margin: 0; }
.socials { display: flex !important; gap: 20px !important; }
@media (max-width: 860px) { .site-footer__cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer__cols { grid-template-columns: 1fr; } }

/* =========================================================================
   Portfolio extras: device mockups, clients strip, gallery, story, docs, Figma
   ========================================================================= */
.ico--back { transform: scaleX(-1); }
[dir="rtl"] .ico--back { transform: none; }
.badge--country { inset-inline-start: auto; inset-inline-end: 14px; background: var(--offwhite); color: var(--ink); }
.card__media--mobile-apps { background: linear-gradient(118deg, var(--navy) 0 64%, var(--orange) 64%); }

/* browser mockup */
.mock-browser { width: 78%; aspect-ratio: 16/10; background: #fff; border-radius: 10px; box-shadow: 0 20px 40px rgba(0,0,0,.3); display: flex; flex-direction: column; overflow: hidden; transform: translateY(10%); transition: transform .4s; }
.card:hover .mock-browser { transform: translateY(4%); }
.mock-browser__bar { display: flex; align-items: center; gap: 5px; padding: 7px 10px; background: #EEF0F4; direction: ltr; }
.mock-browser__bar i { width: 8px; height: 8px; border-radius: 50%; background: #D0D4DC; }
.mock-browser__bar i:first-child { background: #FF6159; }
.mock-browser__bar i:nth-child(2) { background: #FFBD2E; }
.mock-browser__bar i:nth-child(3) { background: #28C941; }
.mock-browser__url { flex: 1; margin-inline-start: 8px; background: #fff; border-radius: 999px; font-size: .68rem; padding: 2px 10px; color: var(--muted); font-family: "Manrope", sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-browser__body { flex: 1; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; background: var(--paper); }
.mock-browser__body b { font-size: 1.05rem; color: var(--ink); line-height: 1.2; }
.mock-browser__lines { display: grid; gap: 6px; }
.mock-browser__lines i { height: 7px; border-radius: 4px; background: var(--line); }
.mock-browser__lines i:first-child { width: 80%; background: var(--orange); }
.mock-browser__lines i:nth-child(2) { width: 60%; }
.mock-browser__lines i:nth-child(3) { width: 70%; }
.project-cover .mock-browser { width: min(70%, 720px); transform: translateY(8%); }
.project-cover .mock-browser__body b { font-size: clamp(1.2rem, 3vw, 2.2rem); }
.project-cover .mock-browser__url { font-size: .85rem; }

/* phone mockup */
.mock-phone { width: 34%; max-width: 150px; aspect-ratio: 9/19; border: 6px solid var(--navy); outline: 1px solid rgba(255,255,255,.25); border-radius: 26px; box-shadow: 0 20px 40px rgba(0,0,0,.35); display: flex; flex-direction: column; align-items: center; padding: 22px 10px 10px; gap: 10px; background: var(--navy-2); transform: translateY(18%); transition: transform .4s; position: relative; }
.card:hover .mock-phone { transform: translateY(10%); }
.mock-phone__notch { position: absolute; top: 6px; width: 40%; height: 8px; border-radius: 6px; background: #000; }
.mock-phone b { color: #fff; font-size: .8rem; text-align: center; line-height: 1.2; }
.mock-phone__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: 100%; }
.mock-phone__grid i { aspect-ratio: 1; border-radius: 2px; background: var(--orange); }
.mock-phone__grid i:nth-child(2n) { opacity: .45; }
.project-cover .mock-phone { width: 200px; max-width: none; transform: translateY(12%); }
.mock-figma { display: grid; justify-items: center; gap: 10px; color: #fff; font-size: 1.1rem; }

/* store badges */
.store-badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 14px; border-radius: 12px; background: #000; color: #fff; border: 1px solid rgba(255,255,255,.3); transition: transform .2s, border-color .2s; }
.store-badge:hover { transform: translateY(-2px); border-color: var(--cyan); }
.store-badge span { display: grid; line-height: 1.1; font-weight: 700; font-family: "Manrope", sans-serif; }
.store-badge small { font-size: .62rem; font-weight: 400; opacity: .8; }

/* clients strip & small cards swiper */
.clients {
  border-bottom: 1px solid var(--line);
  background: var(--offwhite);
  position: relative;
  overflow: hidden;
}
.clients__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-block: 20px;
}
.clients__header {
  flex: 0 0 210px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.clients__label {
  margin: 0;
  font-weight: 700;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.45;
  letter-spacing: -0.01em;
}
.clients__slider-wrap {
  flex: 1;
  min-width: 0;
  position: relative;
}
.clients__slider-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-end: 0;
  width: 40px;
  background: linear-gradient(to var(--to-edge, right), rgba(243,240,232,0), var(--offwhite));
  pointer-events: none;
  z-index: 2;
}
html[dir="rtl"] .clients__slider-wrap::after {
  --to-edge: left;
}
.clients__swiper {
  width: 100%;
  padding-block: 4px;
}
.clients__swiper .swiper-slide {
  height: auto;
  display: flex;
}

/* Featured Work & Services Swipers */
.featured-work__swiper,
.services__swiper {
  width: 100%;
  padding-block: 10px 18px;
  margin-block: -10px -18px;
}
.featured-work__swiper .swiper-slide,
.services__swiper .swiper-slide {
  height: auto;
  display: flex;
}
.featured-work__swiper .card,
.services__swiper .service {
  width: 100%;
  height: 100%;
}
.swiper .reveal {
  opacity: 1 !important;
  transform: none !important;
}
.swiper-pagination,
.swiper-button-prev,
.swiper-button-next {
  display: none !important;
}

/* small client card */
.client-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  min-height: 84px;
  padding: 11px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  user-select: none;
  box-shadow: 0 1px 3px rgba(16, 27, 48, 0.02);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.client-card::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  background: var(--grad);
  border-radius: 0;
  opacity: 0;
  transform: scaleX(0.3);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.client-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 91, 34, 0.55);
  box-shadow: 0 8px 22px -4px rgba(255, 91, 34, 0.14), 0 2px 6px -1px rgba(16, 27, 48, 0.04);
}
.client-card:hover::after {
  opacity: 1;
  transform: scaleX(1);
}
.client-card__top {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}
.client-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 99px;
  background: rgba(18, 22, 32, 0.04);
  color: var(--muted);
  border: 1px solid rgba(18, 22, 32, 0.06);
  line-height: 1.25;
}
.client-card__badge--sa {
  background: rgba(16, 185, 129, 0.08);
  color: #065f46;
  border-color: rgba(16, 185, 129, 0.2);
}
.client-card__badge--eg {
  background: rgba(220, 38, 38, 0.07);
  color: #991b1b;
  border-color: rgba(220, 38, 38, 0.18);
}
.client-card__flag {
  font-size: 0.85rem;
  line-height: 1;
}
.client-card__country {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}
.clients .swiper-pagination,
.clients .swiper-button-prev,
.clients .swiper-button-next {
  display: none !important;
}
.client-card__body {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.client-card__domain {
  font-family: "Manrope", sans-serif;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}
.client-card:hover .client-card__domain {
  color: var(--blue);
}
.client-card__name {
  font-size: 0.76rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

@media (max-width: 991px) {
  .clients__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding-block: 18px;
  }
  .clients__header {
    flex: none;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .clients__label {
    max-width: none;
  }
  .clients__slider-wrap::after {
    display: none;
  }
}

/* figma embed */
.figma-embed { position: relative; aspect-ratio: 16/10; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); margin-top: -24px; background: #1E1E1E; z-index: 2; }
.figma-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.figma-embed__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #F5F5F5; }
.figma-embed__cta { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; padding: 24px;
  background: linear-gradient(to top, rgba(16, 27, 48, .82), rgba(16, 27, 48, .35)); color: var(--offwhite); transition: background-color .3s; }
.figma-embed__cta p { margin: 0; font-size: .95rem; color: rgba(243, 240, 232, .85); }
.figma-embed__cta .ico { width: 14px; height: 20px; }
.figma-embed.is-live .figma-embed__cta, .figma-embed.is-live .figma-embed__poster { display: none; }
.figma-embed__note { margin-top: 12px; text-align: end; }

/* documents */
.docs { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.docs a { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); transition: border-color .2s, box-shadow .2s; }
.docs a:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.docs__ext { display: grid; place-items: center; width: 46px; height: 54px; border-radius: 2px; background: var(--orange); color: var(--navy); font-size: .72rem; font-weight: 800; font-family: "Manrope", sans-serif; flex: none; }
.docs a > span:nth-child(2) { flex: 1; display: grid; }
.docs small { color: var(--muted); }
.docs__dl { color: var(--blue); font-weight: 600; font-size: .9rem; }

/* story (long-form narrative, warm editorial palette) */
.story { background: #211D1B; color: #E8DFD2; padding-block: clamp(64px, 9vw, 120px); position: relative; overflow: hidden; }
.story::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 80% 0%, rgba(168,135,92,.22), transparent 55%), radial-gradient(ellipse at 0% 100%, rgba(160,79,75,.18), transparent 50%); }
.story__inner { position: relative; max-width: 820px; }
.story .eyebrow { color: #A8875C; }
.story__text { font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 2; }
.story__text p { margin-bottom: 1.4em; }
html[lang="en"] .story__text { font-family: Georgia, "Times New Roman", serif; font-style: italic; }

/* gallery + lightbox */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.gallery__item { margin: 0; }
.gallery__item--wide { grid-column: 1 / -1; }
.gallery__item a { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); cursor: zoom-in; }
.gallery__item img { width: 100%; height: auto; transition: transform .5s; }
.gallery__item a:hover img { transform: scale(1.02); }
.gallery__item figcaption { margin-top: 10px; color: var(--muted); font-size: .92rem; }
@media (max-width: 700px) { .gallery { grid-template-columns: 1fr; } }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(16,27,48,.94); }
.lightbox[open] { display: grid; place-items: center; grid-template-rows: 1fr auto; }
.lightbox img { max-width: 92vw; max-height: 84vh; object-fit: contain; border-radius: 8px; align-self: end; }
.lightbox__caption { color: #fff; margin: 12px 0 24px; text-align: center; }
.lightbox__close, .lightbox__nav { position: fixed; background: rgba(255,255,255,.1); color: #fff; border: 0; border-radius: 50%; width: 52px; height: 52px; display: grid; place-items: center; cursor: pointer; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--orange); color: var(--navy); }
.lightbox__close { top: 20px; inset-inline-end: 20px; }
.lightbox__nav { top: 50%; translate: 0 -50%; }
.lightbox__nav--prev { inset-inline-start: 20px; }
.lightbox__nav--next { inset-inline-end: 20px; }

/* team credits */
.card__role { font-size: .85rem; color: var(--orange-ink); font-weight: 600; margin: -4px 0 12px; }
.card__role span { color: var(--muted); font-weight: 400; }
.card__role--team { color: var(--navy); }
.hero-credits { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 12px 28px; }
.hero-credits a { display: flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 600; }
.hero-credits a:hover { color: var(--orange-ink); }
.hero-credits .mini-avatar { border-color: var(--line); }
.hero-credits span:last-child { display: grid; line-height: 1.25; }
.hero-credits small { font-weight: 400; color: var(--muted); font-size: .78rem; }
.credit { position: relative; background: var(--paper); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 18px; overflow: hidden; scroll-margin-top: 140px; }
.credit::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 4px; background: var(--grad); }
.credit--purple::before { background: var(--navy); }
.credit--cyan::before { background: var(--orange); }
.credit--blue::before { background: var(--silver); }
.credit:target { outline: 3px solid var(--blue); outline-offset: 2px; }
.credit__head { display: flex; align-items: center; gap: 14px; }
.credit__head h3 { margin: 0; font-size: 1.15rem; }
.credit__head h3 a:hover { color: var(--blue); }
.credit__role { margin: 0 0 2px; font-size: .82rem; font-weight: 700; color: var(--orange-ink); text-transform: uppercase; letter-spacing: .06em; }
html[lang="ar"] .credit__role { text-transform: none; letter-spacing: 0; font-size: .9rem; }
.mini-avatar--lg { width: 52px; height: 52px; font-size: .95rem; }
.credit__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; flex: 1; }
.credit__list li { position: relative; padding-inline-start: 22px; color: var(--text); font-size: .95rem; }
.credit__list li::before { content: ""; position: absolute; inset-inline-start: 0; top: .55em; width: 10px; height: 10px; border-radius: 3px; background: var(--grad-soft); border: 2px solid var(--blue); }

/* ---------- page loader ---------- */
.page-loader { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: var(--ink); transition: opacity .5s ease, visibility .5s ease; }
.page-loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.page-loader__inner { display: grid; justify-items: center; gap: 22px; }
.page-loader__mark { position: relative; display: grid; place-items: center; width: 132px; height: 132px; }
.page-loader__mark img { width: 84px; height: auto; animation: loader-pulse 1.6s ease-in-out infinite; }
.page-loader__ring { position: absolute; inset: 0; border-radius: 50%; padding: 3px; background: conic-gradient(from 0deg, transparent 0 30%, var(--orange)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: loader-spin 1.1s linear infinite; }
.page-loader__logo { width: 180px; height: auto; }
.page-loader__bar { position: relative; width: 160px; height: 3px; border-radius: 0; background: rgba(243,240,232,.14); overflow: hidden; }
.page-loader__bar::after { content: ""; position: absolute; inset: 0; width: 40%; border-radius: inherit; background: var(--grad); animation: loader-bar 1.2s ease-in-out infinite; }
@keyframes loader-spin { to { transform: rotate(360deg); } }
@keyframes loader-pulse { 0%, 100% { transform: scale(.92); opacity: .85; } 50% { transform: scale(1.04); opacity: 1; } }
@keyframes loader-bar { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }
[dir="rtl"] .page-loader__bar::after { animation-direction: reverse; }
body.is-loading { overflow: hidden; }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .skills__bar span { width: var(--w) !important; }
}

/* =========================================================================
   Chat assistant
   ========================================================================= */
.chat { position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 90; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.chat__toggle { width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; color: var(--navy); background: var(--orange); box-shadow: 0 10px 30px rgba(16,27,48,.3); transition: transform .2s, box-shadow .2s; }
.chat__toggle:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(16,27,48,.4); }
.chat.is-open .chat__toggle { display: none; }
.chat__panel { width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 110px)); display: flex; flex-direction: column; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--line); }
.chat__panel[hidden] { display: none; }
.chat__head { display: flex; align-items: center; gap: 10px; padding: 14px 12px 14px 16px; background: var(--dark); color: var(--offwhite); }
.chat__head > div { flex: 1; min-width: 0; }
.chat__head h2 { font-size: 1rem; margin: 0; color: var(--offwhite); letter-spacing: 0; }
.chat__head p { margin: 0; font-size: .8rem; color: rgba(255,255,255,.7); }
.chat__avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: var(--navy); flex: none; }
.chat__icon-btn { width: 34px; height: 34px; border-radius: 50%; border: 0; background: transparent; color: rgba(255,255,255,.8); cursor: pointer; display: grid; place-items: center; }
.chat__icon-btn:hover { background: rgba(255,255,255,.1); color: #fff; }
.chat__log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--offwhite); }
.chat__msg { margin: 0; max-width: 85%; padding: 10px 14px; border-radius: 16px; font-size: .93rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat__msg--bot { align-self: flex-start; background: var(--paper); color: var(--text); border: 1px solid var(--line); border-end-start-radius: 4px; }
.chat__msg--user { align-self: flex-end; background: var(--navy); color: var(--offwhite); border-end-end-radius: 4px; }
.chat__msg--error { align-self: flex-start; background: #FFF4F4; color: #9B1C1C; border: 1px solid #F5C2C2; }
.chat__msg a { color: var(--orange-ink); text-decoration: underline; }
.chat__typing { display: inline-flex; gap: 4px; padding: 14px; }
.chat__typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: chat-dot 1s infinite ease-in-out; }
.chat__typing span:nth-child(2) { animation-delay: .15s; }
.chat__typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chat-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.chat__suggest { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--light); max-height: 108px; overflow-y: auto; }
.chat__suggest[hidden] { display: none; }
.chat__chip { font: inherit; font-size: .8rem; line-height: 1.3; padding: 6px 12px; border-radius: 16px; border: 1px solid var(--blue); background: #fff; color: var(--blue); cursor: pointer; text-align: start; }
.chat__chip:hover, .chat__chip:focus-visible { background: var(--blue); color: #fff; }
.chat__form { display: flex; align-items: flex-end; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--paper); }
.chat__form textarea { flex: 1; resize: none; font: inherit; font-size: .93rem; padding: 10px 14px; border-radius: 20px; border: 1.5px solid var(--line); max-height: 120px; background: #fff; }
.chat__form textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(255,91,34,.22); }
.chat__send { width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer; background: var(--orange); color: var(--navy); display: grid; place-items: center; flex: none; }
.chat__send:disabled { opacity: .5; cursor: default; }
.chat__note { margin: 0; padding: 0 12px 10px; font-size: .72rem; color: var(--muted); text-align: center; background: var(--paper); }
@media (max-width: 480px) {
  .chat { inset-inline-end: 16px; bottom: 16px; }
  .chat__panel { width: calc(100vw - 32px); height: calc(100vh - 100px); }
}
@media (prefers-reduced-motion: reduce) { .chat__typing span { animation: none; } }


/* =========================================================================
   Home page (brand-board layout, Bootstrap grid + AOS)
   ========================================================================= */
.display-title { font-size: clamp(2.2rem, 5vw, 4.2rem); font-weight: 800; line-height: .98; letter-spacing: -.05em; }
html[lang="ar"] .display-title { font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.3; letter-spacing: 0; }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.work-empty { grid-column: 1 / -1; padding: clamp(40px, 6vw, 72px) 24px; text-align: center; border: 1px dashed var(--line); background: var(--paper); }
.work-empty h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: .4em; }
.work-empty p { color: var(--muted); max-width: 44ch; margin: 0 auto 24px; }
.work-empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
@media (max-width: 991.98px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .work-grid { grid-template-columns: 1fr; gap: 12px; } }
.work-band { padding-block: clamp(40px, 5vw, 64px); }
.work-band .display-title { margin-bottom: clamp(20px, 3vw, 32px); }
[data-aos] .reveal { opacity: 1; transform: none; }

/* photo-style work card */
.work-card { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 2px; background: var(--navy); color: var(--offwhite);
  box-shadow: 0 2px 4px rgba(16, 27, 48, .08), 0 18px 36px -14px rgba(16, 27, 48, .45);
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out); isolation: isolate; }
.work-card:hover, .work-card:focus-visible { transform: translateY(-8px); box-shadow: 0 4px 8px rgba(16, 27, 48, .1), 0 34px 60px -20px rgba(16, 27, 48, .6); color: var(--offwhite); }
.work-card__media { position: absolute; inset: 0; display: grid; place-items: center; z-index: -1; }
.work-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), filter .6s; filter: saturate(.92); }
.work-card:hover .work-card__media img { transform: scale(1.07); filter: saturate(1.05); }
.work-card .mock-browser { width: 80%; transform: translateY(-14%); }
.work-card:hover .mock-browser { transform: translateY(-19%); }
.work-card .mock-phone { width: 38%; transform: translateY(-12%); }
.work-card:hover .mock-phone { transform: translateY(-17%); }
.work-card .mock-figma { color: var(--offwhite); transform: translateY(-30%); }
.work-card .card__monogram { transform: translateY(-18%); transition: transform .6s var(--ease-out); }
.work-card:hover .card__monogram { transform: translateY(-24%) scale(1.04); }
.work-card__tag { position: absolute; top: 14px; inset-inline-start: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px;
  background: rgba(16, 27, 48, .85); color: var(--offwhite); font-size: .72rem; font-weight: 700; letter-spacing: .04em; }
.work-card__tag .ico { width: 9px; height: 13px; color: var(--orange); }
.work-card__overlay { position: absolute; inset: auto 0 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  padding: 88px 20px 18px; background: linear-gradient(to top, rgba(8, 13, 25, .94) 0%, rgba(8, 13, 25, .7) 40%, rgba(8, 13, 25, 0) 100%); }
.work-card__overlay::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 3px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }
[dir="rtl"] .work-card__overlay::after { transform-origin: right; }
.work-card:hover .work-card__overlay::after { transform: scaleX(1); }
.work-card__label { margin: 0 0 4px; font-size: .74rem; color: rgba(243, 240, 232, .72); }
.work-card__title { margin: 0; font-size: 1.05rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; color: var(--offwhite); }
.work-card__arrow { flex: none; display: grid; place-items: center; width: 36px; height: 36px; transition: transform .45s var(--ease-out), background-color .3s, color .3s; }
.work-card:hover .work-card__arrow { transform: translateX(6px); background: var(--orange); color: var(--navy); }
[dir="rtl"] .work-card:hover .work-card__arrow { transform: translateX(-6px); }

/* services: three flat columns split by thin vertical rules, as on the brand board */
.services-band { padding-block: clamp(48px, 6vw, 72px); }
.services-band .display-title { margin-bottom: clamp(28px, 4vw, 44px); }
.service-col { position: relative; display: block; height: 100%; padding: 4px 32px 8px; border-inline-start: 1px solid rgba(243, 240, 232, .22); color: rgba(243, 240, 232, .75); }
.services-grid > div:first-child .service-col { border-inline-start: 0; padding-inline-start: 0; }
.service-col h3 { font-size: clamp(1.2rem, 1.8vw, 1.5rem); font-weight: 700; margin-bottom: .55em; color: var(--offwhite); letter-spacing: -.02em; transition: color .3s; }
.service-col:hover h3 { color: var(--orange); }
.service-col p { margin: 0; max-width: 34ch; font-size: .95rem; line-height: 1.55; color: rgba(243, 240, 232, .72); }
@media (max-width: 767.98px) {
  .service-col, .services-grid > div:first-child .service-col { border-inline-start: 0; padding: 20px 0; }
  .services-grid > div + div .service-col { border-top: 1px solid rgba(243, 240, 232, .18); }
}

/* stats */
.stats b { transition: transform .4s var(--ease-out); }
.stats .swiper-slide:hover b { transform: translateY(-4px); }
.stats span { display: block; }

/* about image with an offset orange block */
.about-media { position: relative; isolation: isolate; margin: 0 18px 18px 0; }
[dir="rtl"] .about-media { margin: 0 0 18px 18px; }
.about-media::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; background: var(--orange); z-index: -1; transition: inset .6s var(--ease-out); }
[dir="rtl"] .about-media::before { inset: 18px 18px -18px -18px; }
.about-media img { width: 100%; height: auto; aspect-ratio: 16 / 10; max-height: 440px; object-fit: cover; object-position: center top; box-shadow: var(--shadow-lg); transition: transform .6s var(--ease-out); }
.about-media:hover img { transform: translate(-6px, -6px); }
[dir="rtl"] .about-media:hover img { transform: translate(6px, -6px); }

/* team + testimonial cards: deeper shadows and lift */
.member-card a { box-shadow: 0 2px 4px rgba(0, 0, 0, .08), 0 18px 36px -16px rgba(0, 0, 0, .5); transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out), border-color .3s; }
.member-card a:hover { transform: translateY(-8px); box-shadow: 0 4px 8px rgba(0, 0, 0, .1), 0 34px 60px -20px rgba(0, 0, 0, .65); }
.member-card__photo > * { transition: transform .9s var(--ease-out); }
.member-card a:hover .member-card__photo > * { transform: scale(1.06); }
.quote { background: var(--paper); border-top: 3px solid var(--orange); border-radius: 2px; box-shadow: var(--shadow); transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.quote:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

/* header compacts on scroll */
.site-header__inner { transition: height .3s var(--ease-out); }
.site-header.is-scrolled .site-header__inner { height: 64px; }
.logo__img { transition: height .3s var(--ease-out); }
.site-header.is-scrolled .logo__img { height: 26px; }

/* CTA band + footer, as on the brand board */
.btn--lg { --bs-btn-padding-x: 1.8em; --bs-btn-padding-y: 1.05em; --bs-btn-font-size: 1.05rem; }
.footer-cta { overflow: hidden; }
.site-footer__main { padding-block: 28px; }
.site-footer ul.site-footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 44px; font-size: .88rem; }
.site-footer__nav a { position: relative; color: rgba(243, 240, 232, .85); }
.site-footer__nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: -4px; height: 2px; background: var(--orange); transform: scaleX(0); transition: transform .35s var(--ease-out); }
.site-footer__nav a:hover { color: var(--offwhite); }
.site-footer__nav a:hover::after { transform: scaleX(1); }
.site-footer__tag p { margin: 0; max-width: 17em; color: rgba(243, 240, 232, .75); font-size: .88rem; line-height: 1.5; }
@media (min-width: 992px) { .site-footer__tag { display: flex; justify-content: flex-end; } }
.site-footer ul.site-footer__contact { display: flex; flex-wrap: wrap; gap: 8px 24px; }
@media (max-width: 991.98px) { .site-footer ul.site-footer__nav { justify-content: flex-start; } }

@media (prefers-reduced-motion: reduce) {
  .js .hw > span, .js .hero-in { opacity: 1 !important; transform: none !important; }
}
