        *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

        :root {
            --bg: #f5f5f5;
            --bg-alt: #ececec;
            --bg-card: #e9e9e9;
            --text: #0a0a0a;
            --text-mute: #6f6f6f;
            --line: rgba(0,0,0,0.1);
            --line-strong: rgba(0,0,0,0.22);
            --pill-bg: rgba(245,245,245,0.6);
            --pill-border: rgba(0,0,0,0.1);
            --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            --font-ar: 'Noto Kufi Arabic', sans-serif;
            --pad: clamp(20px, 5vw, 100px);
        }

        html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; background: var(--bg); }

        body {
            font-family: var(--font);
            background: var(--bg);
            color: var(--text);
            font-size: 16px;
            line-height: 1.5;
            font-weight: 400;
            overflow-x: hidden;
        }

        html[dir="rtl"] body { font-family: var(--font-ar); line-height: 1.7; }
        /* Arabic script needs taller lines and no faux-italic slant */
        html[dir="rtl"] .italic { font-style: normal; }
        html[dir="rtl"] .sec-lead { line-height: 1.85; }
        html[dir="rtl"] .about-body, html[dir="rtl"] .about-more { line-height: 1.85; }
        html[dir="rtl"] .step p, html[dir="rtl"] .sol p { line-height: 1.85; }

        a { color: inherit; text-decoration: none; }
        button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
        img { max-width: 100%; display: block; }

        /* hide native cursor on desktop */
        @media (hover: hover) and (pointer: fine) {
            body, a, button, .work-row, .pill, input, label { cursor: none !important; }
        }

        /* ========== PILL HEADER ========== */
        .pill-bar {
            position: fixed;
            top: 0; left: 0; right: 0;
            z-index: 100;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px var(--pad);
            pointer-events: none;
            gap: 12px;
            transition: background 0.35s ease, padding 0.35s ease;
        }
        /* soft band once scrolled, so the nav stays legible over imagery */
        .pill-bar.scrolled {
            background: rgba(245,245,245,0.86);
            backdrop-filter: blur(16px) saturate(150%);
            -webkit-backdrop-filter: blur(16px) saturate(150%);
            padding: 14px var(--pad);
        }
        .pill {
            padding: 2px 0;
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            font-weight: 600;
            color: var(--text);
            display: flex;
            align-items: center;
            gap: 22px;
            pointer-events: auto;
            white-space: nowrap;
        }
        html[dir="rtl"] .pill { letter-spacing: 0; }
        .pill-brand { letter-spacing: 0.1em; }
        .pill-nav a { transition: opacity 0.2s; }
        .pill-nav a:hover { opacity: 0.55; }
        .lang-toggle { display: flex; gap: 4px; }
        .lang-btn { font-size: 11px; opacity: 0.4; transition: opacity 0.2s; font-weight: 700; letter-spacing: 0.05em; }
        .lang-btn.active, .lang-btn:hover { opacity: 1; }

        @media (max-width: 720px) {
            .pill-nav { display: none; }
            .pill { font-size: 11px; gap: 12px; }
        }

        /* ========== HERO ========== */
        .hero {
            min-height: 100vh;
            padding: 100px var(--pad) 40px;
            display: flex;
            flex-direction: column;
            position: relative;
            overflow: hidden;
        }
        .hero-top {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 24px;
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--text-mute);
            font-weight: 600;
            position: relative;
            z-index: 3;
        }
        html[dir="rtl"] .hero-top { letter-spacing: 0; }

        .hero-center {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            position: relative;
            min-height: 56vh;
            padding: 60px 0 40px;
            color: inherit;
            text-decoration: none;
        }
        .hero-display {
            font-size: clamp(56px, 16vw, 240px);
            line-height: 0.92;
            font-weight: 600;
            letter-spacing: -0.045em;
            color: var(--text);
            position: relative;
            z-index: 3;
            max-width: 100%;
        }
        html[dir="rtl"] .hero-display { letter-spacing: -0.03em; line-height: 1.18; }
        .hero-display .italic { font-style: italic; font-weight: 400; }

        .hero-tag {
            max-width: 560px;
            margin: clamp(28px, 4vw, 48px) auto 0;
            font-size: clamp(12px, 1vw, 14px);
            text-transform: uppercase;
            letter-spacing: 0.1em;
            line-height: 1.6;
            color: var(--text-mute);
            font-weight: 600;
            position: relative;
            z-index: 3;
        }
        html[dir="rtl"] .hero-tag { letter-spacing: 0; }
        .hero-tag, .hero-display {
            text-shadow: 0 0 10px var(--bg), 0 0 20px var(--bg), 0 2px 30px var(--bg);
        }
        .hero-tag .strong { color: var(--text); }

        .hero-meta {
            display: flex;
            justify-content: space-between;
            align-items: end;
            gap: 24px;
            flex-wrap: wrap;
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--text-mute);
            font-weight: 600;
            position: relative;
            z-index: 3;
            margin-top: 24px;
        }
        html[dir="rtl"] .hero-meta { letter-spacing: 0; }

        /* ========== HERO SLIDESHOW ========== */
        .hero-slideshow {
            position: absolute;
            left: 0; right: 0;
            top: 50%;
            transform: translateY(-50%);
            z-index: 1;
            pointer-events: none;
            overflow: hidden;
            mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
            -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
        }
        .slide-track {
            display: flex;
            gap: 24px;
            animation: hero-slide 60s linear infinite;
            will-change: transform;
            padding: 0 12px;
        }
        html[dir="rtl"] .slide-track { animation-name: hero-slide-rtl; }
        .slide {
            flex-shrink: 0;
            width: clamp(220px, 26vw, 360px);
            height: clamp(150px, 16vw, 240px);
            border-radius: 4px;
            overflow: hidden;
            opacity: 0.28;
            filter: grayscale(30%);
        }
        .slide img { width: 100%; height: 100%; object-fit: cover; }
        @keyframes hero-slide {
            from { transform: translateX(0); }
            to { transform: translateX(-50%); }
        }
        @keyframes hero-slide-rtl {
            from { transform: translateX(0); }
            to { transform: translateX(50%); }
        }

        /* ========== TEXT MARQUEE STRIP ========== */
        .strip {
            padding: 18px 0;
            border-top: 1px solid var(--line);
            border-bottom: 1px solid var(--line);
            overflow: hidden;
            white-space: nowrap;
            background: var(--bg);
        }
        .strip-track {
            display: inline-flex;
            gap: 28px;
            animation: scroll-x 40s linear infinite;
            align-items: center;
            will-change: transform;
        }
        html[dir="rtl"] .strip-track { animation-name: scroll-x-rtl; }
        .strip-item {
            font-size: clamp(14px, 2vw, 28px);
            font-weight: 500;
            letter-spacing: -0.02em;
            display: inline-flex;
            align-items: center;
            gap: 28px;
            color: var(--text);
        }
        .strip-item::after {
            content: "";
            width: 6px; height: 6px;
            background: var(--text);
            border-radius: 50%;
            display: inline-block;
        }
        @keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }
        @keyframes scroll-x-rtl { from { transform: translateX(0); } to { transform: translateX(50%); } }

        /* ========== SECTION ========== */
        section.block { padding: clamp(80px, 12vh, 160px) var(--pad); }
        section.block, .hero, .cta, footer { max-width: 1680px; margin-inline: auto; }
        .section-label {
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 0.12em;
            font-weight: 600;
            color: var(--text-mute);
            margin-bottom: 56px;
            display: flex;
            align-items: center;
            gap: 12px;
        }
        html[dir="rtl"] .section-label { letter-spacing: 0; }

        /* ========== WORKS ========== */
        .works-list { list-style: none; }
        .work-row {
            display: flex;
            justify-content: space-between;
            align-items: baseline;
            padding: clamp(28px, 4vw, 44px) 0;
            border-top: 1px solid var(--line);
            position: relative;
            transition: opacity 0.3s ease;
            cursor: pointer;
        }
        .work-row:last-child { border-bottom: 1px solid var(--line); }
        .works-list:hover .work-row:not(:hover) { opacity: 0.32; }
        .work-name {
            font-size: clamp(28px, 5vw, 72px);
            font-weight: 500;
            letter-spacing: -0.035em;
            line-height: 1;
            transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
            transform-origin: left center;
        }
        html[dir="rtl"] .work-name { transform-origin: right center; letter-spacing: -0.02em; line-height: 1.4; }
        .work-row:hover .work-name { transform: translateX(24px); }
        html[dir="rtl"] .work-row:hover .work-name { transform: translateX(-24px); }
        .work-tag {
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 0.14em;
            font-weight: 600;
            color: var(--text-mute);
        }
        html[dir="rtl"] .work-tag { letter-spacing: 0; }

        .works-see {
            margin-top: 56px;
            font-size: 13px;
            text-transform: uppercase;
            letter-spacing: 0.12em;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            border-bottom: 1px solid var(--text);
            padding-bottom: 6px;
            transition: gap 0.3s;
        }
        .works-see:hover { gap: 14px; }
        html[dir="rtl"] .works-see { letter-spacing: 0; }

        /* ========== CURSOR IMAGE (work hover) ========== */
        .cursor-img {
            position: fixed;
            top: 0; left: 0;
            width: clamp(240px, 24vw, 360px);
            height: clamp(160px, 16vw, 240px);
            margin-left: calc(clamp(240px, 24vw, 360px) / -2);
            margin-top: calc(clamp(160px, 16vw, 240px) / -2);
            pointer-events: none;
            z-index: 60;
            will-change: transform;
        }
        .ci-inner {
            width: 100%; height: 100%;
            border-radius: 6px;
            overflow: hidden;
            opacity: 0;
            transform: scale(0.85);
            transition: opacity 0.3s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
            background: var(--bg-card);
            box-shadow: 0 30px 80px rgba(0,0,0,0.22);
        }
        .cursor-img.visible .ci-inner { opacity: 1; transform: scale(1); }
        .ci-inner img { width: 100%; height: 100%; object-fit: cover; display: block; }
        @media (max-width: 900px), (hover: none) { .cursor-img { display: none; } }

        /* ========== MAGNETIC "GO" CURSOR (small) ========== */
        .mc {
            position: fixed;
            top: 0; left: 0;
            width: 56px; height: 56px;
            margin-left: -28px; margin-top: -28px;
            border-radius: 50%;
            pointer-events: none;
            z-index: 80;
            will-change: transform;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        /* small persistent dot */
        .mc-dot {
            position: absolute;
            width: 8px; height: 8px;
            border-radius: 50%;
            background: #0a0a0a;
            opacity: 1;
            transform: scale(1);
            transition: opacity 0.2s ease, transform 0.2s ease;
        }
        .mc.active .mc-dot { opacity: 0; transform: scale(0); }

        /* flipping GO chip — small */
        .mc-chip {
            position: absolute;
            width: 54px; height: 22px;
            perspective: 200px;
            opacity: 0;
            transform: scale(0.5);
            transition: opacity 0.25s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
        }
        .mc.active .mc-chip { opacity: 1; transform: scale(1); }
        .mc-chip-inner {
            width: 100%; height: 100%;
            position: relative;
            transform-style: preserve-3d;
            animation: chip-flip 2.6s linear infinite;
            animation-play-state: paused;
        }
        .mc.active .mc-chip-inner { animation-play-state: running; }
        .mc-face {
            position: absolute; inset: 0;
            background: #0a0a0a;
            color: #fff;
            border-radius: 999px;
            display: flex; align-items: center; justify-content: center;
            gap: 4px;
            font-size: 9px;
            font-weight: 700;
            letter-spacing: 0.14em;
            text-transform: uppercase;
            backface-visibility: hidden;
            -webkit-backface-visibility: hidden;
        }
        html[dir="rtl"] .mc-face { letter-spacing: 0; }
        .mc-face-back { transform: rotateY(180deg); }
        .mc-face .arrow { font-size: 11px; line-height: 0; }
        @keyframes chip-flip {
            from { transform: rotateY(0deg); }
            to { transform: rotateY(360deg); }
        }

        @media (max-width: 900px), (hover: none) { .mc { display: none; } }

        /* ========== HERO IMAGE TRAIL ========== */
        .trail-img {
            position: fixed;
            top: 0; left: 0;
            width: clamp(72px, 7.2vw, 112px);
            height: clamp(88px, 8.8vw, 136px);
            pointer-events: none;
            z-index: 5;
            border-radius: 2px;
            overflow: hidden;
            opacity: 0;
            will-change: transform, opacity;
            box-shadow: 0 30px 60px rgba(0,0,0,0.18);
        }
        .trail-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
        @media (hover: none) { .trail-img { display: none; } }

        /* ========== ABOUT ========== */
        .about {
            display: grid;
            grid-template-columns: 1fr 1.4fr;
            gap: clamp(40px, 8vw, 120px);
            align-items: start;
        }
        @media (max-width: 880px) { .about { grid-template-columns: 1fr; gap: 32px; } }
        .about-greet {
            font-size: clamp(36px, 6vw, 84px);
            font-weight: 500;
            letter-spacing: -0.04em;
            line-height: 0.95;
        }
        html[dir="rtl"] .about-greet { letter-spacing: -0.02em; line-height: 1.4; }
        .about-greet .italic { font-style: italic; font-weight: 400; }
        .about-body {
            font-size: clamp(17px, 1.5vw, 22px);
            line-height: 1.55;
            color: var(--text);
            max-width: 580px;
            opacity: 0.92;
        }
        .about-body strong { font-weight: 600; }

        /* ========== TWO LISTS ========== */
        .lists {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: clamp(40px, 6vw, 80px);
            margin-top: clamp(80px, 12vh, 140px);
            border-top: 1px solid var(--line);
            padding-top: clamp(40px, 6vw, 64px);
        }
        @media (max-width: 720px) { .lists { grid-template-columns: 1fr; gap: 56px; } }
        .lists h3 {
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 0.14em;
            font-weight: 600;
            color: var(--text-mute);
            margin-bottom: 24px;
        }
        html[dir="rtl"] .lists h3 { letter-spacing: 0; }
        .lists ul { list-style: none; }
        .lists li {
            font-size: clamp(20px, 2.4vw, 32px);
            font-weight: 400;
            padding: 12px 0;
            letter-spacing: -0.01em;
            border-bottom: 1px solid var(--line);
        }
        .lists li:last-child { border-bottom: none; }

        /* ========== PRICING ========== */
        .pricing {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1px;
            background: var(--line-strong);
            border: 1px solid var(--line-strong);
            border-radius: 16px;
            overflow: hidden;
        }
        @media (max-width: 880px) { .pricing { grid-template-columns: 1fr; } }
        .price-card {
            background: var(--bg-card);
            padding: clamp(28px, 4vw, 48px);
            display: flex;
            flex-direction: column;
            gap: 20px;
            min-height: 480px;
        }
        .price-card.featured { background: var(--text); color: var(--bg); }
        .uc-em { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; color: var(--text-mute); }
        html[dir="rtl"] .uc-em { letter-spacing: 0; }
        .price-card.featured .uc-em { color: rgba(255,255,255,0.6); }
        .price-name {
            font-size: 28px;
            font-weight: 500;
            letter-spacing: -0.02em;
        }
        .price-amount {
            font-size: clamp(40px, 5vw, 64px);
            font-weight: 600;
            letter-spacing: -0.04em;
            line-height: 1;
            margin-top: 8px;
        }
        .price-amount small { font-size: 15px; font-weight: 500; letter-spacing: 0.04em; opacity: 0.55; margin-left: 8px; }
        html[dir="rtl"] .price-amount small { margin-left: 0; margin-right: 8px; }
        .price-desc { font-size: 15px; line-height: 1.55; opacity: 0.78; }
        .price-feats {
            list-style: none;
            margin-top: auto;
            padding-top: 20px;
            border-top: 1px solid var(--line);
            display: flex; flex-direction: column; gap: 10px;
            font-size: 14px;
        }
        .price-card.featured .price-feats { border-color: rgba(255,255,255,0.2); }
        .price-btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 14px 22px;
            border: 1px solid currentColor;
            border-radius: 999px;
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 0.12em;
            font-weight: 600;
            align-self: flex-start;
            transition: background 0.3s, color 0.3s;
        }
        html[dir="rtl"] .price-btn { letter-spacing: 0; }
        .price-card .price-btn:hover { background: var(--text); color: var(--bg); }
        .price-card.featured .price-btn:hover { background: var(--bg); color: var(--text); }

        /* ========== CTA ========== */
        .cta {
            padding: clamp(80px, 16vh, 200px) var(--pad);
            text-align: center;
            border-top: 1px solid var(--line);
        }
        .cta-question {
            font-size: clamp(20px, 2vw, 28px);
            font-weight: 400;
            color: var(--text-mute);
            letter-spacing: -0.01em;
            margin-bottom: 24px;
            font-style: italic;
        }
        .cta-headline {
            font-size: clamp(44px, 9vw, 150px);
            font-weight: 600;
            letter-spacing: -0.05em;
            line-height: 0.9;
            margin-bottom: 56px;
        }
        html[dir="rtl"] .cta-headline { letter-spacing: -0.03em; line-height: 1.35; }
        html[dir="rtl"] .cta-question, html[dir="rtl"] .tag-line { font-style: normal; }
        .cta-headline .italic { font-style: italic; font-weight: 400; }
        .cta-btn {
            display: inline-flex;
            align-items: center;
            gap: 12px;
            padding: 18px 32px;
            background: var(--text);
            color: var(--bg);
            border-radius: 999px;
            font-size: 13px;
            text-transform: uppercase;
            letter-spacing: 0.12em;
            font-weight: 600;
            transition: transform 0.3s;
        }
        html[dir="rtl"] .cta-btn { letter-spacing: 0; }
        .cta-btn:hover { transform: translateY(-2px); }
        .cta-btn .arrow { display: inline-block; transition: transform 0.3s; }
        .cta-btn:hover .arrow { transform: translateX(4px); }
        html[dir="rtl"] .cta-btn:hover .arrow { transform: translateX(-4px); }

        /* ========== HERO CTAS ========== */
        .hero-ctas {
            display: flex;
            gap: 14px;
            margin-top: clamp(24px, 3vw, 40px);
            justify-content: center;
            flex-wrap: wrap;
            position: relative;
            z-index: 3;
        }
        .btn-ghost {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            padding: 18px 32px;
            border: 1px solid var(--line-strong);
            border-radius: 999px;
            font-size: 13px;
            text-transform: uppercase;
            letter-spacing: 0.12em;
            font-weight: 600;
            transition: background 0.3s, color 0.3s;
        }
        html[dir="rtl"] .btn-ghost { letter-spacing: 0; }
        .btn-ghost:hover { background: var(--text); color: var(--bg); }

        /* ========== SECTION TITLE + LEADS ========== */
        .sec-title {
            font-size: clamp(34px, 5.5vw, 76px);
            font-weight: 500;
            letter-spacing: -0.035em;
            line-height: 1.05;
            max-width: 1000px;
        }
        html[dir="rtl"] .sec-title { letter-spacing: -0.02em; line-height: 1.3; }
        .sec-title .italic { font-style: italic; font-weight: 400; }
        .sec-lead {
            margin-top: 24px;
            font-size: clamp(16px, 1.4vw, 20px);
            line-height: 1.65;
            color: var(--text-mute);
            max-width: 660px;
        }
        .sec-body {
            margin-top: 28px;
            font-size: clamp(17px, 1.5vw, 22px);
            line-height: 1.65;
            max-width: 840px;
            opacity: 0.92;
        }
        .tag-line { margin-top: 24px; font-style: italic; color: var(--text-mute); font-size: clamp(15px, 1.2vw, 18px); }

        /* ========== CASE STUDY ========== */
        .case-study { margin-top: clamp(48px, 7vw, 88px); }
        .case-media {
            border: 1px solid var(--line);
            overflow: hidden;
        }
        .case-media img {
            width: 100%;
            display: block;
            transition: transform 1.4s cubic-bezier(0.2, 0.8, 0.2, 1);
        }
        .case-meta {
            position: relative;
            z-index: 2;
            background: var(--bg);
            border: 1px solid var(--line);
            margin: calc(clamp(40px, 6vw, 96px) * -1) clamp(16px, 4vw, 72px) 0;
            padding: clamp(24px, 3.5vw, 48px);
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 24px clamp(24px, 4vw, 64px);
        }
        @media (max-width: 760px) { .case-meta { grid-template-columns: 1fr; margin-inline: 8px; } }
        /* scroll-in choreography (armed by JS so the block stays visible without it) */
        .case-study.anim-ready .case-media { clip-path: inset(10% 6% 10% 6%); transition: clip-path 1.1s cubic-bezier(0.2, 0.8, 0.2, 1); }
        .case-study.anim-ready .case-media img { transform: scale(1.08); }
        .case-study.anim-ready .case-meta { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease 0.25s, transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.25s; }
        .case-study.in-view .case-media { clip-path: inset(0 0 0 0); }
        .case-study.in-view .case-media img { transform: scale(1); }
        .case-study.in-view .case-media:hover img { transform: scale(1.02); }
        .case-study.in-view .case-meta { opacity: 1; transform: none; }
        .case-client {
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 0.12em;
            font-weight: 600;
            color: var(--text-mute);
        }
        html[dir="rtl"] .case-client { letter-spacing: 0; }
        .case-stat {
            font-size: clamp(40px, 5.5vw, 80px);
            font-weight: 600;
            letter-spacing: -0.03em;
            margin-top: 10px;
            line-height: 1.1;
        }
        .case-stat .case-num { font-variant-numeric: tabular-nums; }
        .case-stat .case-unit { font-size: 0.4em; font-weight: 500; color: var(--text-mute); }
        html[dir="rtl"] .case-stat { letter-spacing: 0; }
        .case-period {
            margin-top: 6px;
            font-size: 13px;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            font-weight: 600;
            color: var(--text-mute);
        }
        html[dir="rtl"] .case-period { letter-spacing: 0; }
        .case-desc {
            font-size: 15px;
            line-height: 1.7;
            color: var(--text-mute);
            align-self: end;
            max-width: 560px;
        }
        html[dir="rtl"] .case-desc { line-height: 1.85; }

        /* ========== CLIENT LOGOS ========== */
        .logo-grid {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 1px;
            background: var(--line);
            border: 1px solid var(--line);
            margin-top: clamp(48px, 7vw, 88px);
        }
        .logo-cell {
            background: var(--bg);
            aspect-ratio: 5 / 4;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: clamp(18px, 2.4vw, 36px);
            transition: background 0.35s ease;
        }
        .logo-cell img {
            width: 70%;
            height: 70%;
            max-width: 125px;
            max-height: 100px;
            object-fit: contain;
            /* grey ghost on light bg: keeps internal logo detail */
            filter: grayscale(1) brightness(0.9);
            opacity: 0.55;
            transition: filter 0.35s ease, opacity 0.35s ease, transform 0.35s ease;
        }
        .logo-cell:hover { background: #ffffff; }
        .logo-cell:hover img { filter: none; opacity: 1; transform: scale(1.05); }
        @media (max-width: 1100px) { .logo-grid { grid-template-columns: repeat(5, 1fr); } }
        @media (max-width: 760px) { .logo-grid { grid-template-columns: repeat(4, 1fr); } }
        @media (max-width: 520px) { .logo-grid { grid-template-columns: repeat(3, 1fr); } }

        /* ========== PROCESS STEPS / SOLUTIONS GRID ========== */
        .steps, .sols {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 1px;
            background: var(--line);
            border-top: 1px solid var(--line);
            border-bottom: 1px solid var(--line);
            margin-top: clamp(48px, 7vw, 88px);
        }
        @media (max-width: 980px) { .steps, .sols { grid-template-columns: 1fr 1fr; } }
        @media (max-width: 560px) { .steps, .sols { grid-template-columns: 1fr; } }
        .step, .sol {
            background: var(--bg);
            padding: clamp(28px, 3.5vw, 48px) clamp(20px, 2.5vw, 36px);
            display: flex;
            flex-direction: column;
            gap: 14px;
        }
        .step-num {
            font-size: 12px;
            letter-spacing: 0.12em;
            color: var(--text-mute);
            font-weight: 600;
        }
        html[dir="rtl"] .step-num { letter-spacing: 0; }
        .step h3, .sol h3 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 500; letter-spacing: -0.02em; }
        .step p, .sol p { font-size: 15px; line-height: 1.65; color: var(--text-mute); }
        .sol-head { font-size: 16px; font-weight: 500; line-height: 1.5; color: var(--text); }

        /* ========== SERVICE PILLARS ========== */
        .pillars {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1px;
            background: var(--line-strong);
            border: 1px solid var(--line-strong);
            border-radius: 16px;
            overflow: hidden;
            margin-top: clamp(48px, 7vw, 88px);
        }
        @media (max-width: 880px) { .pillars { grid-template-columns: 1fr; } }
        .pillar {
            background: var(--bg-card);
            padding: clamp(28px, 4vw, 52px);
            display: flex;
            flex-direction: column;
            gap: 16px;
        }
        .pillar-head {
            font-size: clamp(20px, 2vw, 28px);
            font-weight: 500;
            letter-spacing: -0.02em;
            line-height: 1.35;
        }
        .pillar-body { font-size: 15px; line-height: 1.7; color: var(--text-mute); }
        .chips {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: auto;
            padding-top: 20px;
            border-top: 1px solid var(--line);
        }
        .chip {
            border: 1px solid var(--line-strong);
            border-radius: 999px;
            padding: 8px 14px;
            font-size: 12.5px;
            color: var(--text);
            opacity: 0.85;
            white-space: nowrap;
        }

        /* ========== ABOUT EXTRAS ========== */
        .about-more {
            margin-top: clamp(40px, 6vw, 72px);
            max-width: 860px;
            font-size: clamp(16px, 1.4vw, 20px);
            line-height: 1.7;
            opacity: 0.85;
        }
        .lists.beliefs li { font-size: clamp(17px, 1.8vw, 24px); line-height: 1.5; }

        /* ========== WORKS INTRO ========== */
        .works-list { margin-top: clamp(40px, 6vw, 72px); }

        /* ========== CONTACT FORM ========== */
        .contact-grid {
            display: grid;
            grid-template-columns: 1fr 1.2fr;
            gap: clamp(40px, 8vw, 110px);
            align-items: start;
            margin-top: clamp(40px, 6vw, 72px);
        }
        @media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
        .form-intro { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.65; opacity: 0.92; }
        .cform { display: flex; flex-direction: column; gap: 26px; }
        .cform label {
            display: block;
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 0.12em;
            font-weight: 600;
            color: var(--text-mute);
            margin-bottom: 10px;
        }
        html[dir="rtl"] .cform label { letter-spacing: 0; }
        .cform input, .cform textarea {
            width: 100%;
            background: transparent;
            border: none;
            border-bottom: 1px solid var(--line-strong);
            border-radius: 0;
            color: var(--text);
            font-family: inherit;
            font-size: 17px;
            padding: 10px 0 14px;
            outline: none;
            transition: border-color 0.3s;
        }
        .cform textarea { resize: vertical; min-height: 64px; }
        .cform input:focus, .cform textarea:focus { border-color: var(--text); }
        .cform button { align-self: flex-start; margin-top: 6px; }

        /* ========== FOOTER BRAND ROW ========== */
        .footer-brand {
            grid-column: 1 / -1;
            padding-bottom: 28px;
            border-bottom: 1px solid var(--line);
            margin-bottom: 12px;
        }
        .fb-tag { font-size: clamp(18px, 2vw, 26px); font-weight: 500; letter-spacing: -0.02em; }
        html[dir="rtl"] .fb-tag { letter-spacing: 0; }
        .fb-verbs { margin-top: 8px; color: var(--text-mute); font-size: 14px; }

        /* ========== FOOTER ========== */
        footer {
            padding: 56px var(--pad) 32px;
            border-top: 1px solid var(--line);
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 32px;
            font-size: 13px;
        }
        @media (max-width: 720px) { footer { grid-template-columns: 1fr 1fr; } }
        footer h4 {
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 0.14em;
            color: var(--text-mute);
            font-weight: 600;
            margin-bottom: 14px;
        }
        html[dir="rtl"] footer h4 { letter-spacing: 0; }
        footer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
        footer a:hover { opacity: 0.55; }
        .footer-bottom {
            grid-column: 1 / -1;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-top: 32px;
            margin-top: 24px;
            border-top: 1px solid var(--line);
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--text-mute);
            font-weight: 600;
            flex-wrap: wrap;
            gap: 12px;
        }
        html[dir="rtl"] .footer-bottom { letter-spacing: 0; }

        @media (max-width: 720px) {
            .work-row { flex-direction: column; align-items: flex-start; gap: 8px; }
        }

        /* ========== WORK GRID (home) ========== */
        .work-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: clamp(8px, 0.9vw, 14px);
            margin-top: clamp(48px, 7vw, 88px);
        }
        @media (max-width: 980px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
        @media (max-width: 520px) { .work-grid { grid-template-columns: 1fr; } }
        .work-card { display: block; color: inherit; }
        .wc-media {
            overflow: hidden;
            background: var(--bg-card);
            aspect-ratio: 4 / 3;
            border-radius: 16px;
            transform: translateZ(0);
        }
        .wc-media img {
            width: 100%; height: 100%;
            object-fit: cover;
            transition: transform 1.1s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.5s ease;
            filter: grayscale(18%);
        }
        .work-card:hover .wc-media img { transform: scale(1.05); filter: none; }
        .wc-title {
            margin-top: 12px;
            font-size: 13px;
            font-weight: 600;
            letter-spacing: 0.02em;
            line-height: 1.4;
        }
        html[dir="rtl"] .wc-title { letter-spacing: 0; font-size: 14px; }

        /* ========== SUB-PAGES ========== */
        body.subpage section.block:first-of-type,
        body.subpage .cta:first-of-type { padding-top: clamp(130px, 18vh, 200px); }
        .back-link {
            margin-top: 56px;
            font-size: 13px;
            text-transform: uppercase;
            letter-spacing: 0.12em;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            border-bottom: 1px solid var(--text);
            padding-bottom: 6px;
            transition: gap 0.3s;
        }
        .back-link:hover { gap: 14px; }
        html[dir="rtl"] .back-link { letter-spacing: 0; }

        /* ========== WORKS PAGE ========== */
        .wp-project { margin-top: clamp(24px, 3vw, 40px); }
        .wp-project:first-of-type { margin-top: clamp(40px, 6vw, 72px); }

        /* masonry columns: photos keep their own proportions, never cropped */
        .wp-gallery { columns: 3; column-gap: clamp(10px, 1vw, 16px); }
        @media (max-width: 1100px) { .wp-gallery { columns: 2; } }
        @media (max-width: 640px)  { .wp-gallery { columns: 1; } }
        .g-item {
            position: relative;
            break-inside: avoid;
            margin-bottom: clamp(10px, 1vw, 16px);
            overflow: hidden;
            border-radius: 20px;
            background: var(--bg-card);
            transform: translateZ(0);
        }
        .g-item img {
            width: 100%;
            height: auto;
            display: block;
            transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
        }
        .g-item:hover img { transform: scale(1.03); }

        /* a project's lead card is cropped tall, so its name has room to sit */
        .g-item.is-lead img { aspect-ratio: 4 / 5; object-fit: cover; }
        @media (max-width: 640px) { .g-item.is-lead img { aspect-ratio: 1 / 1; } }

        /* a one-photo project runs as a single wide card, uncropped — those images
           are posters, and a portrait crop cuts their composition in half */
        .wp-project.is-solo .wp-gallery { columns: 1; max-width: min(66%, 840px); }
        .g-item.is-lead.is-solo img { aspect-ratio: auto; object-fit: fill; }
        /* those posters carry their own artwork in the middle, so the name drops
           to the bottom edge instead of sitting on top of it */
        .g-item.is-lead.is-solo .g-cap {
            justify-content: flex-end;
            align-items: flex-start;
            text-align: start;
            padding: 26px 28px;
            background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.55) 100%);
        }
        .g-item.is-lead.is-solo:hover .g-cap { background: linear-gradient(180deg, rgba(0,0,0,0.08) 40%, rgba(0,0,0,0.62) 100%); }
        @media (max-width: 1100px) { .wp-project.is-solo .wp-gallery { max-width: none; } }

        /* the first card of each project carries its name, like a cover */
        .g-cap {
            position: absolute;
            inset: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 14px;
            padding: 22px;
            text-align: center;
            background: linear-gradient(180deg, rgba(0,0,0,0.26) 0%, rgba(0,0,0,0.14) 45%, rgba(0,0,0,0.32) 100%);
            transition: background 0.4s ease;
        }
        .g-item:hover .g-cap { background: linear-gradient(180deg, rgba(0,0,0,0.40) 0%, rgba(0,0,0,0.26) 45%, rgba(0,0,0,0.44) 100%); }
        .g-pill {
            position: absolute;
            top: 18px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(255,255,255,0.92);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            color: var(--text);
            border-radius: 999px;
            padding: 7px 15px;
            font-size: 11px;
            font-weight: 600;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            white-space: nowrap;
        }
        html[dir="rtl"] .g-pill { letter-spacing: 0; }
        .g-title {
            color: #fff;
            font-size: clamp(26px, 2.6vw, 44px);
            font-weight: 500;
            letter-spacing: -0.03em;
            line-height: 1.1;
            text-shadow: 0 2px 28px rgba(0,0,0,0.35);
        }
        html[dir="rtl"] .g-title { letter-spacing: 0; line-height: 1.35; }

        /* ========== REACH MAP ========== */
        .reach { margin-top: clamp(36px, 5vw, 64px); }

        /* the map breaks out of the section padding — full-bleed reads as a horizon */
        .map-wrap {
            position: relative;
            margin-inline: calc(var(--pad) * -1);
            padding-inline: clamp(8px, 2vw, 40px);
            mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
            -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
        }
        .map { width: 100%; height: auto; display: block; overflow: visible; }

        /* --- land dots --- */
        .m-bg { fill: rgba(10,10,10,0.18); opacity: 0; transition: opacity 1.2s ease 0.1s; }
        .reach.is-in .m-bg { opacity: 1; }

        /* outer group dims when another market is active, inner path handles the reveal */
        .m-c { transition: opacity 0.45s ease; }
        .reach.is-active .m-c { opacity: 0.14; }
        .reach.is-active .m-c.is-on { opacity: 1; }
        .m-c > path {
            fill: var(--text);
            opacity: 0;
            transform: translateY(12px);
            transform-box: fill-box;
            transform-origin: center;
            transition: opacity 0.7s ease, transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
            transition-delay: calc(var(--i, 0) * 80ms + 200ms);
        }
        .reach.is-in .m-c > path { opacity: 1; transform: none; }

        /* --- arcs from Tripoli --- */
        .m-arc {
            fill: none;
            stroke: rgba(10,10,10,0.32);
            stroke-width: 1.6;
            stroke-linecap: round;
            transition: stroke 0.35s ease, stroke-width 0.35s ease, opacity 0.45s ease,
                        stroke-dashoffset 1.5s cubic-bezier(0.35, 0, 0.2, 1);
            transition-delay: 0s, 0s, 0s, calc(var(--i, 0) * 110ms + 450ms);
        }
        .reach.is-active .m-arc { opacity: 0.16; }
        .reach.is-active .m-arc.is-on { opacity: 1; stroke: rgba(10,10,10,0.92); stroke-width: 2.6; }
        .m-spark { fill: var(--text); opacity: 0; }
        .reach.is-active .m-spark { opacity: 0 !important; }

        /* --- pins --- */
        .m-pin { transition: opacity 0.45s ease; }
        .reach.is-active .m-pin { opacity: 0.26; }
        .reach.is-active .m-pin.is-on { opacity: 1; }
        .pin-hit { fill: transparent; cursor: pointer; }
        .pin-in {
            opacity: 0;
            transform: scale(0.3);
            transform-box: fill-box;
            transform-origin: center;
            transition: opacity 0.5s ease, transform 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.35);
            transition-delay: calc(var(--i, 0) * 80ms + 650ms);
        }
        .reach.is-in .pin-in { opacity: 1; transform: none; }
        .pin-dot {
            fill: var(--text);
            stroke: var(--bg);
            stroke-width: 3;
            transition: r 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.35);
        }
        .m-pin.is-on .pin-dot { r: 8; }
        .pin-ring { fill: none; stroke: var(--text); stroke-width: 1.6; opacity: 0.45; transition: opacity 0.3s ease; }
        .m-pin.is-hq .pin-ring, .m-pin.is-on .pin-ring { opacity: 0.8; }
        .pin-pulse {
            fill: none;
            stroke: var(--text);
            stroke-width: 1.6;
            transform-box: fill-box;
            transform-origin: center;
            opacity: 0;
        }
        .reach.is-in .pin-pulse { animation: pin-pulse 3.6s cubic-bezier(0.2, 0.6, 0.3, 1) infinite; animation-delay: calc(var(--i, 0) * 0.42s + 1s); }
        @keyframes pin-pulse {
            0%   { transform: scale(0.35); opacity: 0.5; }
            60%  { transform: scale(2.2);  opacity: 0; }
            100% { transform: scale(2.2);  opacity: 0; }
        }
        /* names stay hidden until a market is picked — the pins sit too close to label them all */
        .pin-label {
            font-family: var(--font);
            font-size: 20px;
            font-weight: 700;
            letter-spacing: 1.4px;
            text-transform: uppercase;
            fill: var(--text);
            paint-order: stroke;
            stroke: var(--bg);
            stroke-width: 8px;
            /* keep anchoring geometric in both directions, so the hand-tuned
               label offsets hold in Arabic too */
            direction: ltr;
            stroke-linejoin: round;
            pointer-events: none;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        /* Arabic glyphs are finer and carry dots below the baseline, so the
           knockout halo has to be lighter or it swallows them */
        html[dir="rtl"] .pin-label { font-family: var(--font-ar); letter-spacing: 0; text-transform: none; font-weight: 600; font-size: 22px; stroke-width: 5px; }
        html[dir="rtl"] .m-pin.is-hq .pin-label { font-size: 20px; }
        .m-pin.is-on .pin-label, .m-pin.is-hq .pin-label { opacity: 1; }
        .m-pin.is-hq .pin-label { font-size: 18px; fill: var(--text-mute); }
        .m-pin.is-hq.is-on .pin-label { fill: var(--text); }

        /* --- legend strip under the map --- */
        .reach-foot {
            display: grid;
            grid-template-columns: auto 1fr;
            gap: clamp(24px, 4vw, 64px);
            align-items: end;
            margin-top: clamp(28px, 4vw, 52px);
        }
        @media (max-width: 880px) { .reach-foot { grid-template-columns: 1fr; gap: 28px; } }
        .reach-stats { display: flex; gap: clamp(28px, 3vw, 48px); }
        .rs-num { font-size: clamp(32px, 3.4vw, 46px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
        .rs-lab { display: block; margin-top: 8px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-mute); font-weight: 600; }
        html[dir="rtl"] .rs-lab { letter-spacing: 0; }

        .reach-list {
            list-style: none;
            display: grid;
            grid-template-columns: repeat(9, minmax(0, 1fr));
            border-top: 1px solid var(--line);
        }
        @media (max-width: 1180px) { .reach-list { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
        @media (max-width: 720px)  { .reach-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
        @media (max-width: 420px)  { .reach-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
        .rc {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 6px;
            width: 100%;
            padding: 14px 10px 14px 0;
            font-size: 14px;
            font-weight: 500;
            color: var(--text);
            text-align: start;
            opacity: 0;
            transform: translateY(8px);
            transition: opacity 0.45s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
            transition-delay: calc(var(--i, 0) * 55ms + 500ms);
        }
        .reach.is-in .rc { opacity: 0.6; transform: none; }
        .reach.is-in .rc:hover, .reach.is-in .rc.is-on { opacity: 1; }
        .rc-n {
            font-size: 10px;
            letter-spacing: 0.1em;
            color: var(--text-mute);
            font-weight: 600;
            font-variant-numeric: tabular-nums;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .rc-name { line-height: 1.3; }
        .rc-hq { font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--text); }
        html[dir="rtl"] .rc-hq, html[dir="rtl"] .rc-n { letter-spacing: 0; }

        @media (max-width: 760px) {
            /* the cropped view has no room to spare, and a softer dim keeps the
               map legible on a small screen */
            .map-wrap { mask-image: none; -webkit-mask-image: none; }
            .reach.is-active .m-c { opacity: 0.22; }
            .reach.is-active .m-pin { opacity: 0.35; }
        }

        @media (prefers-reduced-motion: reduce) {
            .m-bg, .m-c > path, .pin-in, .rc { transition-duration: 0.01ms !important; transition-delay: 0s !important; }
            .m-arc { transition-duration: 0.01ms !important; }
            .reach.is-in .pin-pulse { animation: none; }
        }
