/* ═══════════════════════════════════════════════════════════════
   MERSAT MEDIA — front-end styles
   Brand colour: #18176B (deep indigo). Layout uses logical properties
   (inline-start / inline-end) so English (LTR) and Arabic (RTL) share one set of rules.
═══════════════════════════════════════════════════════════════ */

:root {
    --p-950: #0a0a33;
    --p-900: #0f0e47;
    --p-800: #141360;
    --p: #18176b;
    --p-600: #25239a;
    --p-500: #3533c4;
    --p-400: #6361dc;
    --p-300: #9f9df0;
    --p-200: #cbcaf7;
    --p-100: #e9e9fb;
    --p-50: #f5f5fd;
    --hl: #aeacff;                 /* highlight colour on indigo / photo backgrounds */

    --ink: #12113a;
    --muted: #5e5d7c;
    --line: #e3e3ef;
    --white: #ffffff;

    --radius: 22px;
    --radius-sm: 14px;
    --shadow-sm: 0 6px 20px -10px rgba(24, 23, 107, .25);
    --shadow: 0 24px 60px -28px rgba(24, 23, 107, .45);
    --ease: cubic-bezier(.22, .61, .36, 1);

    --gutter: clamp(16px, 4vw, 40px);
    --header-h: 76px;
    --f-body: 'Manrope', 'IBM Plex Sans Arabic', system-ui, sans-serif;
    --f-accent: 'Playfair Display', Georgia, serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 24px);
    -webkit-text-size-adjust: 100%;
}

html,
body {
    overflow-x: clip;
}

body {
    background: var(--white);
    color: var(--ink);
    font-family: var(--f-body);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

body.lang-ar {
    --f-body: 'IBM Plex Sans Arabic', 'Manrope', system-ui, sans-serif;
    line-height: 1.85;
}

img,
video,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

button {
    font: inherit;
    color: inherit;
    cursor: pointer;
    background: none;
    border: 0;
}

[hidden] {
    display: none !important;
}

:focus-visible {
    outline: 3px solid var(--p-400);
    outline-offset: 3px;
    border-radius: 6px;
}

.container {
    width: min(1240px, 100% - 2 * var(--gutter));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    inset-inline-start: 16px;
    top: 16px;
    z-index: 2000;
    transform: translateY(-200%);
    opacity: 0;
    background: var(--p);
    color: var(--white);
    padding: 10px 18px;
    border-radius: 10px;
    text-decoration: none;
    transition: transform .2s, opacity .2s;
}

.skip-link:focus {
    transform: none;
    opacity: 1;
}

/* Emphasised words: serif italic in English, colour only in Arabic */
em {
    font-style: normal;
    color: var(--p-500);
}

.lang-en .sec-title em,
.lang-en .hero-title .ht-hl,
.lang-en .statement .st-hl,
.lang-en .final-cta em,
.lang-en .form-title em {
    font-family: var(--f-accent);
    font-style: italic;
    font-weight: 700;
    letter-spacing: 0;
}

/* ═══ BUTTONS ═══ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6em;
    min-height: 52px;
    padding: 0 30px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    white-space: nowrap;
    border: 1.5px solid transparent;
    transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}

.btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-sm {
    min-height: 42px;
    padding: 0 20px;
    font-size: 14px;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: var(--p);
    color: var(--white);
    box-shadow: 0 12px 28px -14px rgba(24, 23, 107, .8);
}

.btn-primary:hover {
    background: var(--p-600);
}

.btn-light {
    background: var(--white);
    color: var(--p);
}

.btn-light:hover {
    background: var(--p-100);
}

.btn-ghost {
    border-color: rgba(255, 255, 255, .45);
    color: var(--white);
    backdrop-filter: blur(6px);
}

.btn-ghost:hover {
    background: var(--white);
    color: var(--p);
    border-color: var(--white);
}

.btn-outline {
    border-color: var(--p);
    color: var(--p);
}

.btn-outline:hover {
    background: var(--p);
    color: var(--white);
}

.btn[disabled] {
    opacity: .6;
    pointer-events: none;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: .5em;
    color: var(--p);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid var(--p-200);
    padding-bottom: 2px;
    transition: border-color .3s, gap .3s;
}

.link-arrow:hover {
    border-color: var(--p);
    gap: .8em;
}

/* ═══ HEADER ═══ */
.site-header {
    position: fixed;
    top: 14px;
    inset-inline: 0;
    z-index: 800;
    transition: transform .45s var(--ease);
}

.site-header.is-hidden {
    transform: translateY(calc(-100% - 20px));
}

.header-bar {
    width: min(1240px, 100% - 2 * var(--gutter));
    margin-inline: auto;
    height: var(--header-h);
    padding-inline: 14px 14px;
    padding-inline-start: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 999px;
    box-shadow: 0 10px 40px -18px rgba(15, 14, 71, .45);
    transition: box-shadow .3s;
}

.site-header.is-scrolled .header-bar {
    box-shadow: 0 16px 50px -20px rgba(15, 14, 71, .55);
}

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.brand img {
    height: 85px;
    width: auto;
}

.logo-text {
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -.01em;
    color: var(--p);
    white-space: nowrap;
}

.main-nav {
    margin-inline: auto;
}

.main-nav ul {
    display: flex;
    gap: 4px;
    list-style: none;
}

.main-nav a {
    display: block;
    padding: 10px 16px;
    border-radius: 999px;
    color: var(--ink);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: background .25s, color .25s;
}

.main-nav a:hover,
.main-nav a.is-current {
    background: var(--p-50);
    color: var(--p);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-inline-start: auto;
}

.main-nav + .header-actions {
    margin-inline-start: 0;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1.5px solid var(--line);
    color: var(--p);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: border-color .25s, background .25s;
}

.lang-switch:hover {
    border-color: var(--p);
}

.lang-switch-light {
    color: var(--white);
    border-color: rgba(255, 255, 255, .35);
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--p);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.menu-toggle span {
    width: 18px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform .35s var(--ease), opacity .2s;
}

.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 790;
    background: radial-gradient(120% 80% at 100% 0%, var(--p-600) 0%, var(--p) 45%, var(--p-900) 100%);
    color: var(--white);
    padding: calc(var(--header-h) + 48px) var(--gutter) 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
    overflow-y: auto;
    opacity: 0;
    transition: opacity .35s var(--ease);
}

.mobile-menu.is-open {
    opacity: 1;
}

.mobile-menu ol {
    list-style: none;
}

.mobile-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .5s var(--ease), transform .5s var(--ease);
    transition-delay: calc(var(--i) * 60ms + 80ms);
}

.mobile-menu.is-open li {
    opacity: 1;
    transform: none;
}

.mobile-menu li a {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 16px 0;
    font-size: clamp(1.6rem, 7vw, 2.4rem);
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
}

.mobile-menu li a span {
    font-size: 13px;
    font-weight: 600;
    color: var(--hl);
}

.mobile-menu-foot {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.mobile-menu-foot .btn {
    flex: 1;
}

body.menu-open {
    overflow: hidden;
}

/* Floating buttons */
#wa {
    position: fixed;
    bottom: 22px;
    inset-inline-end: 22px;
    z-index: 600;
    width: 56px;
    height: 56px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px -8px rgba(37, 211, 102, .6);
    transition: transform .3s var(--ease);
}

#wa:hover {
    transform: scale(1.08);
}

#wa svg {
    width: 28px;
    height: 28px;
    fill: var(--white);
}

#stt {
    position: fixed;
    bottom: 22px;
    inset-inline-start: 22px;
    z-index: 600;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--p);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity .3s, transform .3s var(--ease);
}

#stt.show {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

#stt svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--white);
    stroke-width: 2.5;
}

/* ═══ HERO SLIDER ═══ */
.hero {
    --interval: 5000ms;
    position: relative;
    height: 100vh;
    height: 100svh;
    min-height: 640px;
    max-height: 1080px;
    overflow: hidden;
    background: var(--p-900);
    color: var(--white);
    isolation: isolate;
}

.hero-slides,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    transition: opacity 1.4s var(--ease);
}

.hero-slide.is-active {
    opacity: 1;
    z-index: 1;
}

.hero-slide img,
.hero-slide video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.12);
}

.hero-slide.is-active img,
.hero-slide.is-active video {
    animation: kenBurns calc(var(--interval) + 1600ms) linear forwards;
}

@keyframes kenBurns {
    from { transform: scale(1.12) translate3d(0, 0, 0); }
    to { transform: scale(1) translate3d(0, 0, 0); }
}

.hero-shade {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(to top, rgba(10, 10, 51, .95) 0%, rgba(10, 10, 51, .55) 38%, rgba(10, 10, 51, .15) 70%, rgba(10, 10, 51, .35) 100%),
        linear-gradient(to right, rgba(15, 14, 71, .75) 0%, rgba(15, 14, 71, .1) 65%);
}

[dir="rtl"] .hero-shade {
    background:
        linear-gradient(to top, rgba(10, 10, 51, .95) 0%, rgba(10, 10, 51, .55) 38%, rgba(10, 10, 51, .15) 70%, rgba(10, 10, 51, .35) 100%),
        linear-gradient(to left, rgba(15, 14, 71, .75) 0%, rgba(15, 14, 71, .1) 65%);
}

.hero-inner {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-top: calc(var(--header-h) + 60px);
    padding-bottom: 130px;
}

/* All slide texts share one grid cell, so switching never changes the height */
.hero-texts {
    display: grid;
    max-width: 860px;
}

.hero-text {
    grid-area: 1 / 1;
    align-self: end;
    visibility: hidden;
}

.hero-text.is-active {
    visibility: visible;
}

.hero-text > *,
.hero-text .ht-line {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s var(--ease), transform .8s var(--ease);
}

.hero-text.is-active > *,
.hero-text.is-active .ht-line {
    opacity: 1;
    transform: none;
}

.hero-text.is-active .hero-title { transition-delay: .1s; }
.hero-text.is-active .ht-line:nth-child(1) { transition-delay: .15s; }
.hero-text.is-active .ht-line:nth-child(2) { transition-delay: .3s; }
.hero-text.is-active .hero-sub { transition-delay: .45s; }

.hero-text .hero-title {
    opacity: 1;
    transform: none;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    margin-bottom: 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .22);
    backdrop-filter: blur(10px);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
    color: rgba(255, 255, 255, .92);
}

.hero-kicker::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--hl);
    box-shadow: 0 0 0 4px rgba(174, 172, 255, .25);
}

.hero-title {
    font-size: clamp(2.5rem, 6.2vw, 5.4rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -.025em;
    color: var(--white);
}

.lang-ar .hero-title {
    line-height: 1.3;
    letter-spacing: 0;
    font-weight: 700;
}

.ht-line {
    display: block;
}

.ht-hl {
    color: var(--hl);
}

.hero-sub {
    margin-top: 22px;
    max-width: 560px;
    font-size: clamp(1rem, 1.35vw, 1.18rem);
    line-height: 1.75;
    color: rgba(255, 255, 255, .82);
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
    animation: fadeUp .9s .5s var(--ease) both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: none; }
}

.hero-controls {
    position: absolute;
    inset-inline: 0;
    bottom: 34px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 24px;
}

.hero-count {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, .6);
    font-variant-numeric: tabular-nums;
    direction: ltr;
}

.hero-count b {
    font-size: 22px;
    color: var(--white);
}

.hero-count span {
    margin: 0 6px;
}

.hero-dots {
    display: flex;
    gap: 8px;
    flex: 1;
    max-width: 360px;
}

.hero-dot {
    flex: 1;
    height: 22px;
    display: flex;
    align-items: center;
}

.hero-dot i {
    display: block;
    width: 100%;
    height: 3px;
    border-radius: 3px;
    background: rgba(255, 255, 255, .25);
    position: relative;
    overflow: hidden;
}

.hero-dot i::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--white);
    transform: scaleX(0);
    transform-origin: left;
}

[dir="rtl"] .hero-dot i::after {
    transform-origin: right;
}

.hero-dot.is-done i::after {
    transform: scaleX(1);
}

.hero-dot.is-active i::after {
    animation: dotFill var(--interval) linear forwards;
}

.hero.is-paused .hero-dot.is-active i::after {
    animation-play-state: paused;
}

@keyframes dotFill {
    to { transform: scaleX(1); }
}

.hero-arrows {
    display: flex;
    gap: 10px;
    margin-inline-start: auto;
}

.hero-arrow {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, .35);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .3s, border-color .3s;
}

.hero-arrow:hover {
    background: var(--white);
    border-color: var(--white);
    color: var(--p);
}

.hero-arrow svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

[dir="rtl"] .hero-arrow svg,
[dir="rtl"] .lb-prev svg,
[dir="rtl"] .lb-next svg,
[dir="rtl"] .cc-arrow svg,
[dir="rtl"] .btn svg {
    transform: scaleX(-1);
}

/* ═══ TICKER ═══ */
.ticker {
    background: var(--p);
    color: var(--white);
    overflow: hidden;
    padding: 18px 0;
    direction: ltr;
}

.ticker-track {
    display: flex;
    align-items: center;
    gap: 28px;
    width: max-content;
    animation: tick 40s linear infinite;
}

.ticker-track span {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.lang-ar .ticker-track span {
    text-transform: none;
    letter-spacing: 0;
}

.tdot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--hl);
    flex-shrink: 0;
}

@keyframes tick {
    to { transform: translateX(-50%); }
}

/* ═══ SECTIONS ═══ */
.section {
    position: relative;
    padding-block: clamp(72px, 10vw, 128px);
}

.section-tint {
    background: var(--p-50);
}

.section-dark {
    background: var(--p);
    color: var(--white);
}

.sec-head {
    margin-bottom: clamp(36px, 5vw, 60px);
}

.sec-head-split {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px 48px;
    flex-wrap: wrap;
}

.sec-head-split > :first-child {
    max-width: 680px;
}

.sec-head-side {
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    color: var(--muted);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--p-500);
}

.lang-ar .eyebrow {
    letter-spacing: 0;
    font-size: 14px;
}

.eyebrow::before {
    content: '';
    width: 28px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.section-dark .eyebrow,
.eyebrow-light {
    color: var(--hl);
}

.sec-title {
    font-size: clamp(2rem, 4.4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.02em;
    color: var(--ink);
}

.lang-ar .sec-title {
    line-height: 1.35;
    letter-spacing: 0;
    font-weight: 700;
}

.sec-title em {
    display: block;
    color: var(--p-500);
}

.section-dark .sec-title,
.contact-info .sec-title {
    color: var(--white);
}

.section-dark .sec-title em,
.contact-info .sec-title em {
    color: var(--hl);
}

.sec-title-sm {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.center-cta {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

.empty-note {
    text-align: center;
    color: var(--muted);
    padding: 48px 0;
}

.muted {
    color: var(--muted);
}

/* ═══ SERVICES ═══ */
.srv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.srv-card {
    position: relative;
    padding: 30px 26px 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    transition: background .4s var(--ease), color .4s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
    overflow: hidden;
}

.srv-card::after {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    inset-inline-end: -110px;
    top: -110px;
    background: radial-gradient(circle, rgba(174, 172, 255, .35), transparent 70%);
    opacity: 0;
    transition: opacity .4s;
}

.srv-card:hover {
    background: var(--p);
    border-color: var(--p);
    color: var(--white);
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.srv-card:hover::after {
    opacity: 1;
}

.srv-num {
    position: absolute;
    top: 22px;
    inset-inline-end: 24px;
    font-size: 14px;
    font-weight: 700;
    color: var(--p-200);
    transition: color .4s;
}

.srv-card:hover .srv-num {
    color: rgba(255, 255, 255, .4);
}

.srv-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: var(--p-50);
    color: var(--p);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 26px;
    transition: background .4s, color .4s;
}

.srv-icon svg,
.srv-icon img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.srv-card:hover .srv-icon {
    background: rgba(255, 255, 255, .12);
    color: var(--white);
}

.srv-card h3 {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 10px;
}

.srv-card p {
    font-size: 14.5px;
    line-height: 1.75;
    color: var(--muted);
    transition: color .4s;
}

.srv-card:hover p {
    color: rgba(255, 255, 255, .75);
}

/* ── Service card "learn more" link ── */
.srv-learn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .03em;
    color: var(--p-500);
    text-decoration: none;
    transition: color .3s, gap .3s;
}

.srv-learn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    transition: transform .3s var(--ease);
}

.srv-learn:hover {
    color: var(--p);
    gap: 10px;
}

.srv-learn:hover svg {
    transform: translateX(3px);
}

html[dir="rtl"] .srv-learn:hover svg {
    transform: translateX(-3px);
}

.srv-card:hover .srv-learn {
    color: rgba(255, 255, 255, .9);
}

/* ═══ SERVICE PAGE ═══ */
.service-hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: var(--p-900);
}

.service-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.service-hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(8,7,40,.2) 0%, rgba(8,7,40,.85) 100%);
}

.service-hero-body {
    position: relative;
    padding-bottom: 56px;
    padding-top: 140px;
}

.service-hero-sub {
    max-width: 580px;
    margin-top: 12px;
    font-size: 17px;
    line-height: 1.65;
    color: rgba(255, 255, 255, .78);
}

.service-content-section {
    max-width: 860px;
    margin-inline: auto;
}

.service-content {
    font-size: 16px;
    line-height: 1.85;
    color: var(--ink);
}

.service-content h2,
.service-content h3,
.service-content h4 {
    font-weight: 700;
    line-height: 1.35;
    margin-top: 2em;
    margin-bottom: .6em;
    color: var(--ink);
}

.service-content h2 { font-size: 1.5rem; }
.service-content h3 { font-size: 1.25rem; }
.service-content h4 { font-size: 1.1rem; }

.service-content p {
    margin-bottom: 1.2em;
}

.service-content ul,
.service-content ol {
    padding-inline-start: 1.4em;
    margin-bottom: 1.2em;
}

.service-content li {
    margin-bottom: .45em;
}

.service-content strong { font-weight: 700; }
.service-content em     { font-style: italic; }

.service-content a {
    color: var(--p-500);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ═══ STATEMENT BAND ═══ */
.statement {
    background: var(--p-900);
    color: var(--white);
    padding-block: clamp(64px, 9vw, 110px);
    position: relative;
    overflow: hidden;
}

.statement::before {
    content: '';
    position: absolute;
    inset: -40%;
    background:
        radial-gradient(40% 40% at 20% 50%, rgba(53, 51, 196, .45), transparent 70%),
        radial-gradient(35% 35% at 80% 50%, rgba(99, 97, 220, .3), transparent 70%);
}

.statement-inner {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: baseline;
    flex-wrap: wrap;
    gap: .15em .45em;
    text-align: center;
    font-size: clamp(2.2rem, 7vw, 5.6rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.03em;
}

.lang-ar .statement-inner {
    letter-spacing: 0;
    line-height: 1.4;
}

.statement .st-hl {
    color: var(--hl);
}

/* ═══ CLIENTS ═══ */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 320px;
    gap: 16px;
}

/* The bento pattern repeats every 7 cards */
.clients-grid .client-card:nth-child(7n+1) { grid-column: span 7; }
.clients-grid .client-card:nth-child(7n+2) { grid-column: span 5; }
.clients-grid .client-card:nth-child(7n+3),
.clients-grid .client-card:nth-child(7n+4),
.clients-grid .client-card:nth-child(7n+5) { grid-column: span 4; }
.clients-grid .client-card:nth-child(7n+6) { grid-column: span 5; }
.clients-grid .client-card:nth-child(7n+7) { grid-column: span 7; }

.clients-grid-all {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    grid-auto-rows: auto;
}

.clients-grid-all .client-card {
    grid-column: auto !important;
    aspect-ratio: 4 / 3.4;
}

.client-card {
    position: relative;
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--p-100);
    color: var(--white);
    text-decoration: none;
    isolation: isolate;
    box-shadow: var(--shadow-sm);
}

.cc-media,
.cc-media img,
.cc-media video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cc-media img {
    transition: transform 1s var(--ease);
}

.cc-media video {
    opacity: 0;
    transition: opacity .5s;
}

.client-card:hover .cc-media img {
    transform: scale(1.07);
}

.client-card:hover .cc-media video.playing {
    opacity: 1;
}

.client-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(10, 10, 51, .9) 0%, rgba(10, 10, 51, .25) 45%, transparent 70%);
    transition: background .5s;
}

.client-card:hover::after {
    background: linear-gradient(to top, rgba(24, 23, 107, .95) 0%, rgba(24, 23, 107, .45) 55%, rgba(24, 23, 107, .1) 100%);
}

.cc-body {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    z-index: 2;
    padding: 26px 28px;
}

.cc-tag {
    display: inline-block;
    padding: 5px 12px;
    margin-bottom: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    backdrop-filter: blur(8px);
    font-size: 12px;
    font-weight: 600;
    color: var(--white);
}

.cc-title {
    font-size: clamp(1.15rem, 1.8vw, 1.5rem);
    font-weight: 700;
    line-height: 1.3;
}

.cc-arrow {
    position: absolute;
    top: 20px;
    inset-inline-end: 20px;
    z-index: 2;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--white);
    color: var(--p);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(.6);
    opacity: 0;
    transition: transform .4s var(--ease), opacity .4s;
}

.client-card:hover .cc-arrow {
    transform: none;
    opacity: 1;
}

.cc-arrow svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
}

/* ═══ WORK GALLERY ═══ */
.filter-tabs {
    display: inline-flex;
    gap: 4px;
    padding: 5px;
    border-radius: 999px;
    background: var(--p-50);
    border: 1px solid var(--line);
}

.filter-tabs button {
    padding: 9px 20px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    color: var(--muted);
    transition: background .3s, color .3s;
}

.filter-tabs button.is-active {
    background: var(--p);
    color: var(--white);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: start;
}

.work-item {
    min-width: 0;
}

.work-item.is-filtered {
    display: none;
}

.work-thumb {
    position: relative;
    display: block;
    width: 100%;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--p-100);
    cursor: zoom-in;
}

.work-thumb.is-video {
    cursor: pointer;
}

.work-thumb img,
.work-thumb video {
    width: 100%;
    height: auto;
    transition: transform .8s var(--ease);
}

.work-thumb video,
.work-placeholder {
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.work-placeholder {
    display: block;
    background: linear-gradient(135deg, var(--p) 0%, var(--p-500) 100%);
}

.work-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(24, 23, 107, .45);
    opacity: 0;
    transition: opacity .4s;
}

.work-thumb:hover img,
.work-thumb:hover video {
    transform: scale(1.05);
}

.work-thumb:hover::after {
    opacity: 1;
}

.play-badge,
.zoom-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    width: 64px;
    height: 64px;
    margin: -32px 0 0 -32px;
    border-radius: 50%;
    background: var(--white);
    color: var(--p);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .4);
    transition: transform .4s var(--ease), opacity .4s;
}

.play-badge svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    margin-inline-start: 3px;
}

.zoom-badge {
    opacity: 0;
    transform: scale(.6);
}

.zoom-badge svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.work-thumb:hover .zoom-badge {
    opacity: 1;
    transform: none;
}

.work-thumb:hover .play-badge {
    transform: scale(1.12);
}

.work-item figcaption {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 600;
}

.work-item figcaption a {
    color: var(--ink);
    text-decoration: none;
}

.work-item figcaption a:hover {
    color: var(--p-500);
}

/* ── Website link button on work items ── */
.work-visit-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--p-500);
    text-decoration: none;
    transition: color .25s, gap .25s;
}

.work-visit-btn svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    transition: transform .25s;
}

.work-visit-btn:hover {
    color: var(--p);
    gap: 9px;
}

.work-visit-btn:hover svg {
    transform: translate(2px, -2px);
}

/* ═══ ABOUT ═══ */
.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(48px, 7vw, 100px);
    align-items: center;
}

.about-media {
    position: relative;
    padding-inline-end: 28px;
    padding-bottom: 28px;
}

.about-media::before {
    content: '';
    position: absolute;
    inset-inline-end: 0;
    bottom: 0;
    width: 70%;
    height: 70%;
    border-radius: var(--radius);
    background: var(--p-100);
    z-index: -1;
}

.about-frame {
    position: relative;
    aspect-ratio: 4 / 4.6;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--p-100);
    box-shadow: var(--shadow);
}

.about-frame img,
.about-frame video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-badge {
    position: absolute;
    inset-inline-start: -20px;
    bottom: 60px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px;
    border-radius: 18px;
    background: var(--p);
    color: var(--white);
    box-shadow: var(--shadow);
}

.about-badge b {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1;
}

.about-badge span {
    font-size: 13px;
    line-height: 1.4;
    color: rgba(255, 255, 255, .8);
}

.about-copy p {
    color: var(--muted);
    margin-top: 16px;
}

.about-copy .lead {
    margin-top: 24px;
    font-size: 1.15rem;
    color: var(--ink);
    font-weight: 500;
}

.about-countries {
    display: inline-block;
    margin-top: 22px !important;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--p-50);
    color: var(--p) !important;
    font-size: 14px;
    font-weight: 700;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 40px;
}

.stat {
    padding: 22px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
}

.stat-n {
    font-size: clamp(2rem, 3.6vw, 2.8rem);
    font-weight: 800;
    line-height: 1;
    color: var(--p);
}

.stat-l {
    margin-top: 8px;
    font-size: 14px;
    color: var(--muted);
}

/* ═══ WORLDWIDE ═══ */
#global {
    overflow: hidden;
}

#global::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(60% 70% at 75% 40%, rgba(53, 51, 196, .55), transparent 70%);
    pointer-events: none;
}

.global-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
    gap: clamp(40px, 5vw, 72px);
    align-items: center;
}

/* Heading + text + map in the wide column, the countries list in the narrow one beside it */
.global-main {
    grid-column: 2;
    grid-row: 1;
}

.global-copy {
    margin-bottom: clamp(24px, 3vw, 36px);
}

.global-copy > p {
    margin-top: 18px;
    max-width: 640px;
    color: rgba(255, 255, 255, .75);
}

.locations {
    grid-column: 1;
    grid-row: 1;
    list-style: none;
    display: grid;
    gap: 10px;
}

.g-loc {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    transition: background .3s, border-color .3s;
}

.g-loc:hover {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(174, 172, 255, .5);
}

.g-loc b {
    display: block;
    font-weight: 700;
}

.g-loc small {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, .6);
}

.g-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--hl);
    flex-shrink: 0;
    animation: dotPulse 2.2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(174, 172, 255, .55); }
    50% { box-shadow: 0 0 0 8px rgba(174, 172, 255, 0); }
}

.world-map-svg {
    width: 100%;
    height: auto;
    overflow: visible;
    direction: ltr;
}

.wm-land path {
    fill: rgba(255, 255, 255, .13);
    stroke: var(--p);
    stroke-width: .6;
}

.wm-lit path {
    fill: var(--hl);
    stroke: var(--p);
    stroke-width: .6;
    transition: fill .3s;
    animation: wmLit 3.5s ease-in-out infinite;
}

.wm-lit path.hl {
    fill: var(--white);
    animation: none;
}

@keyframes wmLit {
    0%, 100% { fill-opacity: 1; }
    50% { fill-opacity: .7; }
}

.wm-arcs path {
    fill: none;
    stroke: var(--hl);
    stroke-width: 1.3;
    stroke-dasharray: 4 5;
    opacity: .8;
    animation: wmFlow 2.2s linear infinite;
}

@keyframes wmFlow {
    to { stroke-dashoffset: -36; }
}

.wm-dot {
    fill: var(--white);
    stroke: var(--p);
    stroke-width: 1.5;
}

.wm-pin.hq .wm-dot {
    fill: var(--hl);
    stroke: var(--white);
}

.wm-pulse {
    fill: var(--white);
    opacity: .5;
    transform-box: fill-box;
    transform-origin: center;
    animation: wmPulse 2.4s ease-out infinite;
}

@keyframes wmPulse {
    0% { transform: scale(1); opacity: .6; }
    100% { transform: scale(3.4); opacity: 0; }
}

/* ═══ CONTACT ═══ */
.contact-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    border-radius: 28px;
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow);
}

.contact-info {
    position: relative;
    padding: clamp(32px, 5vw, 56px);
    background: var(--p);
    color: var(--white);
    overflow: hidden;
}

.contact-info::before {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    inset-inline-end: -180px;
    bottom: -180px;
    background: radial-gradient(circle, rgba(99, 97, 220, .6), transparent 70%);
}

.contact-info > * {
    position: relative;
}

.contact-info .sec-title {
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
}

.contact-desc {
    margin-top: 16px;
    color: rgba(255, 255, 255, .75);
}

.c-details {
    list-style: none;
    display: grid;
    gap: 18px;
    margin-top: 34px;
}

.c-details li {
    display: flex;
    align-items: center;
    gap: 14px;
}

.c-ico {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.c-ico svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--hl);
    stroke-width: 1.8;
}

.c-details small {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, .55);
}

.c-details a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    word-break: break-word;
}

.c-details a:hover {
    color: var(--hl);
}

.socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.soc {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .22);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .3s, border-color .3s, transform .3s var(--ease);
}

.soc svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--white);
    stroke-width: 1.8;
}

.soc svg.fill-icon {
    fill: var(--white);
    stroke: none;
}

.soc:hover {
    background: var(--white);
    border-color: var(--white);
    transform: translateY(-3px);
}

.soc:hover svg { stroke: var(--p); }
.soc:hover svg.fill-icon { fill: var(--p); }

.contact-form-wrap {
    padding: clamp(32px, 5vw, 56px);
}

.form-title {
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 800;
    line-height: 1.2;
}

.c-form {
    display: grid;
    gap: 16px;
    margin-top: 28px;
}

.frow {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.ff {
    display: grid;
    gap: 6px;
}

.ff > span {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
}

.ff input,
.ff textarea,
.ff select {
    width: 100%;
    font: inherit;
    font-size: 15px;
    color: var(--ink);
    background: var(--p-50);
    border: 1.5px solid var(--line);
    border-radius: 12px;
    padding: 13px 16px;
    outline: none;
    transition: border-color .25s, box-shadow .25s, background .25s;
}

.ff textarea {
    resize: vertical;
    min-height: 120px;
}

.ff input::placeholder,
.ff textarea::placeholder {
    color: #9796b3;
}

.ff input:focus,
.ff textarea:focus,
.ff select:focus {
    border-color: var(--p-400);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(99, 97, 220, .15);
}

.c-form .hp {
    position: absolute;
    inset-inline-start: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.form-msg {
    display: none;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    border: 1px solid transparent;
}

.form-msg.ok,
.form-msg.err {
    display: block;
}

.form-msg.ok {
    background: #ecf8f1;
    border-color: #a8dcbd;
    color: #1d6b40;
}

.form-msg.err {
    background: #fdeeee;
    border-color: #f1b5b5;
    color: #a12626;
}

/* ═══ FINAL CTA ═══ */
.final-cta {
    position: relative;
    overflow: hidden;
    background: var(--p);
    color: var(--white);
    padding-block: clamp(72px, 10vw, 120px);
    text-align: center;
}

.final-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(50% 80% at 15% 100%, rgba(99, 97, 220, .55), transparent 70%),
        radial-gradient(40% 70% at 90% 0%, rgba(53, 51, 196, .6), transparent 70%);
}

.final-cta-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.final-cta h2 {
    max-width: 900px;
    font-size: clamp(2rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.02em;
}

.lang-ar .final-cta h2 {
    line-height: 1.4;
    letter-spacing: 0;
}

.final-cta em {
    color: var(--hl);
}

.final-cta p {
    max-width: 560px;
    color: rgba(255, 255, 255, .78);
}

.final-cta .btn {
    margin-top: 10px;
}

/* ═══ FOOTER ═══ */
.site-footer {
    background: var(--p-950);
    color: rgba(255, 255, 255, .7);
    padding-top: clamp(56px, 7vw, 88px);
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr;
    gap: 48px;
    padding-bottom: 48px;
}

.f-logo {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    border-radius: 14px;
    background: var(--white);
    text-decoration: none;
}

.f-logo img {
    height: 70px;
    width: auto;
}

.f-tagline {
    margin-top: 20px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
}

.f-tagline span {
    display: block;
    color: var(--hl);
}

.f-col h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 18px;
}

.f-col ul {
    list-style: none;
    display: grid;
    gap: 10px;
}

.f-col a {
    color: rgba(255, 255, 255, .7);
    text-decoration: none;
    transition: color .25s;
}

.f-col a:hover {
    color: var(--white);
}

.f-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.f-contact svg {
    width: 18px;
    height: 18px;
    margin-top: 4px;
    flex-shrink: 0;
    fill: none;
    stroke: var(--hl);
    stroke-width: 1.8;
}

.f-contact small {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, .45);
}

.footer-bot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-block: 22px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: 14px;
}

.to-top {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .3s;
}

.to-top:hover {
    background: rgba(255, 255, 255, .1);
}

.to-top svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--white);
    stroke-width: 2.2;
}

/* ═══ INNER PAGES ═══ */
.page-hero {
    position: relative;
    overflow: hidden;
    background: var(--p);
    color: var(--white);
    padding: calc(var(--header-h) + 90px) 0 clamp(56px, 7vw, 88px);
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(50% 90% at 85% 10%, rgba(99, 97, 220, .6), transparent 70%);
}

.page-hero .container {
    position: relative;
}

.crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    font-size: 14px;
    color: rgba(255, 255, 255, .65);
}

.crumbs a {
    color: var(--white);
    text-decoration: none;
}

.crumbs a:hover {
    text-decoration: underline;
}

.page-title {
    font-size: clamp(2.3rem, 6vw, 4.6rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.025em;
    color: var(--white);
}

.lang-ar .page-title {
    line-height: 1.35;
    letter-spacing: 0;
}

.page-sub {
    margin-top: 16px;
    max-width: 560px;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, .78);
}

.page-count {
    display: inline-block;
    margin-top: 24px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    font-size: 14px;
    font-weight: 600;
}

.client-hero {
    position: relative;
    min-height: 72vh;
    min-height: 72svh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: var(--p-900);
    color: var(--white);
    padding: calc(var(--header-h) + 80px) 0 clamp(40px, 6vw, 72px);
}

.client-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: kenBurns 9s linear forwards;
}

.client-hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 51, .95) 0%, rgba(10, 10, 51, .45) 55%, rgba(10, 10, 51, .35) 100%);
}

.client-hero-body {
    position: relative;
}

.client-section {
    padding-top: clamp(48px, 7vw, 88px);
}

.client-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
    margin-bottom: clamp(56px, 8vw, 96px);
}

.client-desc {
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    line-height: 1.9;
    color: var(--ink);
}

.client-facts {
    padding: 28px;
    border-radius: var(--radius);
    background: var(--p-50);
    border: 1px solid var(--line);
    position: sticky;
    top: calc(var(--header-h) + 40px);
}

.client-facts dl {
    display: grid;
    gap: 14px;
    margin-bottom: 22px;
}

.client-facts dl div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.client-facts dt {
    color: var(--muted);
    font-size: 14px;
}

.client-facts dd {
    font-weight: 700;
    text-align: end;
}

.client-work-head {
    margin-bottom: 28px;
}

.client-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    margin-top: clamp(56px, 8vw, 96px);
    padding-top: 32px;
    border-top: 1px solid var(--line);
}

.client-nav a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 700;
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    transition: color .25s;
}

.client-nav a:hover {
    color: var(--p-500);
}

.client-nav small {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
}

.cn-next {
    text-align: end;
}

.cn-all {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--p-50);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cn-all svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--p);
    stroke-width: 2;
}

/* ═══ LIGHTBOX ═══ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1500;
    background: rgba(8, 8, 36, .96);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 72px 84px;
    opacity: 0;
    transition: opacity .3s;
}

.lightbox.is-open {
    opacity: 1;
}

.lb-stage {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb-stage img,
.lb-stage video {
    max-width: 100%;
    max-height: 100%;
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}

.lb-stage iframe {
    width: min(100%, 150vh);
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 12px;
    background: #000;
}

.lb-caption {
    position: absolute;
    bottom: 22px;
    inset-inline: 84px;
    text-align: center;
    color: rgba(255, 255, 255, .8);
    font-weight: 600;
}

.lb-count {
    position: absolute;
    top: 26px;
    inset-inline-start: 28px;
    color: rgba(255, 255, 255, .6);
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    direction: ltr;
}

.lb-btn {
    position: absolute;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .3s, color .3s;
}

.lb-btn:hover {
    background: var(--white);
    color: var(--p);
}

.lb-btn svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
}

.lb-close { top: 16px; inset-inline-end: 16px; }
.lb-prev { top: 50%; inset-inline-start: 16px; margin-top: -26px; }
.lb-next { top: 50%; inset-inline-end: 16px; margin-top: -26px; }

/* ═══ REVEAL ON SCROLL (only when JavaScript runs) ═══ */
.js .r {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s var(--ease), transform .9s var(--ease);
    transition-delay: var(--d, 0ms);
}

.js .r.v {
    opacity: 1;
    transform: none;
}

video.failed {
    display: none;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1120px) {
    .main-nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .header-actions {
        margin-inline-start: auto !important;
    }

    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 300px;
    }

    .clients-grid .client-card {
        grid-column: span 1 !important;
    }

    .clients-grid .client-card:nth-child(3n+1) {
        grid-column: span 2 !important;
    }

    .clients-grid-all .client-card:nth-child(3n+1) {
        grid-column: auto !important;
    }

    .global-grid {
        grid-template-columns: 1fr;
    }

    /* One column: heading, map, then the countries */
    .global-main,
    .locations {
        grid-column: auto;
        grid-row: auto;
    }

    .locations {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
    }

    .f-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .about-grid,
    .contact-card,
    .client-intro {
        grid-template-columns: 1fr;
    }

    .about-media {
        max-width: 560px;
    }

    .client-facts {
        position: static;
    }
}

@media (max-width: 640px) {
    :root {
        --header-h: 64px;
    }

    .site-header {
        top: 10px;
    }

    .header-bar {
        border-radius: 20px;
        padding-inline: 16px 9px;
        gap: 8px;
    }

    .brand img {
        height: 36px;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .header-cta {
        display: none;
    }

    .lang-switch {
        min-height: 40px;
        padding: 0 12px;
        font-size: 13px;
    }

    .menu-toggle {
        width: 44px;
        height: 44px;
    }

    .hero {
        min-height: 600px;
    }

    .hero-inner {
        padding-bottom: 104px;
    }

    .hero-kicker {
        font-size: 12px;
        margin-bottom: 16px;
    }

    .hero-sub {
        margin-top: 16px;
    }

    .hero-btns {
        margin-top: 26px;
    }

    .hero-btns .btn {
        flex: 1 1 auto;
        min-height: 50px;
        padding: 0 22px;
    }

    .hero-controls {
        bottom: 26px;
        gap: 14px;
        padding-inline-end: 68px;
    }

    .hero-arrows {
        display: none;
    }

    .hero-dots {
        max-width: none;
    }

    .srv-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .srv-card {
        padding: 22px 18px;
    }

    .srv-icon {
        width: 50px;
        height: 50px;
        border-radius: 14px;
        margin-bottom: 18px;
    }

    .srv-icon svg,
    .srv-icon img {
        width: 28px;
        height: 28px;
    }

    .srv-card h3 {
        font-size: 16px;
    }

    .srv-card p {
        font-size: 13.5px;
    }

    .clients-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 280px;
        gap: 12px;
    }

    .clients-grid .client-card,
    .clients-grid .client-card:nth-child(3n+1) {
        grid-column: auto !important;
    }

    .clients-grid-all {
        grid-auto-rows: auto;
    }

    .cc-arrow {
        opacity: 1;
        transform: none;
        width: 42px;
        height: 42px;
    }

    .cc-body {
        padding: 20px;
    }

    .work-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .play-badge {
        width: 48px;
        height: 48px;
        margin: -24px 0 0 -24px;
    }

    .filter-tabs {
        width: 100%;
    }

    .filter-tabs button {
        flex: 1;
        padding: 9px 10px;
    }

    .about-badge {
        inset-inline-start: 12px;
        bottom: 44px;
        padding: 14px 18px;
    }

    .about-badge b {
        font-size: 2rem;
    }

    .stats {
        gap: 10px;
    }

    .stat {
        padding: 16px 12px;
    }

    .frow {
        grid-template-columns: 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .client-nav {
        grid-template-columns: 1fr auto 1fr;
        gap: 10px;
    }

    .lightbox {
        padding: 64px 10px 72px;
    }

    .lb-prev,
    .lb-next {
        top: auto;
        bottom: 14px;
        margin-top: 0;
    }

    .lb-caption {
        inset-inline: 76px;
        bottom: 28px;
        font-size: 14px;
    }

    #wa {
        width: 52px;
        height: 52px;
        bottom: 16px;
        inset-inline-end: 16px;
    }

    #stt {
        bottom: 16px;
        inset-inline-start: 16px;
        width: 44px;
        height: 44px;
    }
}

@media.mobile-menu .lang-switch {
    display: none;
}

.work-thumb img.is-yt {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

 (max-width: 380px) {
    .srv-grid {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: 1fr 1fr;
    }

    .lang-switch {
        display: none;
    }

    .mobile-menu .lang-switch {
        display: inline-flex;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ═══ CLIENT LOGOS ═══ */
.logos-section {
    background: var(--white);
    overflow: hidden;
}

.sec-head-center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sec-head-center .eyebrow::after {
    content: '';
    width: 28px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

/* One row of logos. The track holds the list twice and slides by half its width, so the loop never shows a gap.
   When every logo fits on screen, app.js adds .is-static: no movement, logos centred. */
.logo-marquee {
    direction: ltr;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.logo-row {
    overflow: hidden;
    padding-block: 30px;   /* room for the hover zoom and its shadow */
}

.logo-track {
    display: flex;
    gap: 18px;
    width: max-content;
    animation: logoScroll var(--dur, 40s) linear infinite;
}

.logo-marquee:hover .logo-track {
    animation-play-state: paused;
}

@keyframes logoScroll {
    to { transform: translateX(calc(-50% - 9px)); }
}

.logo-marquee.is-static {
    -webkit-mask-image: none;
    mask-image: none;
}

.logo-marquee.is-static .logo-row {
    overflow: visible;
}

.logo-marquee.is-static .logo-track {
    animation: none;
    width: auto;
    justify-content: center;
}

.logo-marquee.is-static [data-copy] {
    display: none;
}

.logo-card {
    flex-shrink: 0;
    width: 220px;
    height: 120px;
    padding: 22px 28px;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}

/* Logos keep their own colours */
.logo-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.logo-card:hover {
    transform: scale(1.1);
    border-color: var(--p-200);
    box-shadow: var(--shadow);
    position: relative;
    z-index: 1;
}

@media (max-width: 640px) {
    .logo-track {
        gap: 12px;
    }

    @keyframes logoScroll {
        to { transform: translateX(calc(-50% - 6px)); }
    }

    .logo-row {
        padding-block: 12px;
    }

    .logo-card {
        width: 150px;
        height: 86px;
        padding: 14px 18px;
        border-radius: var(--radius-sm);
    }
}

@media (prefers-reduced-motion: reduce) {
    .logo-track {
        animation: none;
    }

    .logo-row {
        overflow-x: auto;
    }

    .logo-marquee [data-copy] {
        display: none;
    }
}
