/* ==========================================================================
   MetaVision — public site
   Premium, minimal, fast. Pure CSS (no framework). RTL-aware via logical properties.
   ========================================================================== */

:root {
    --ink: #0a0d12;
    --ink-2: #121721;
    --ink-3: #1b2230;
    --text: #1d2330;
    --muted: #5d6677;
    --line: #e6e8ee;
    --line-dark: rgba(255, 255, 255, .12);
    --bg: #ffffff;
    --tint: #f5f6f9;
    --accent: #3a6bff;
    --accent-2: #00c2a8;
    --accent-ink: #2552e0;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow: 0 10px 30px rgba(10, 13, 18, .08);
    --container: 1240px;
    --header-h: 76px;
    --ease: cubic-bezier(.2, .7, .2, 1);
    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

html[lang="ar"] { --font: "IBM Plex Sans Arabic", "Inter", system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.02em; font-weight: 650; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.35; }
h1 { font-size: clamp(2.2rem, 4.6vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.container.narrow { max-width: 820px; }
.skip-link { position: absolute; inset-inline-start: -999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 100; border-radius: 8px; }
.skip-link:focus { inset-inline-start: 8px; }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); display: inline-block; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55em;
    padding: .8em 1.4em; border-radius: 999px; border: 1px solid transparent;
    font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer;
    transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn i { transition: transform .25s var(--ease); }
.btn:hover i.bi-arrow-right { transform: translateX(3px); }
[dir="rtl"] .btn:hover i.bi-arrow-right { transform: scaleX(-1) translateX(3px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 24px rgba(58, 107, 255, .35); }
.btn-primary:hover { background: var(--accent-ink); }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--ink); }
.btn-ghost-light { border-color: rgba(255, 255, 255, .35); color: #fff; background: rgba(255, 255, 255, .04); backdrop-filter: blur(6px); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .12); }
.btn-sm { padding: .55em 1.1em; font-size: .88rem; }
.btn-lg { padding: 1em 1.8em; font-size: 1rem; }
.btn-block { width: 100%; }

/* ── Header ──────────────────────────────────────────────────── */
.site-header {
    position: sticky; top: 0; z-index: 50; height: var(--header-h);
    background: rgba(255, 255, 255, .9); backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--line);
    transition: background .3s, border-color .3s, color .3s;
}
.page-home .site-header { position: fixed; inset-inline: 0; }
.site-header.is-transparent { background: transparent; border-color: transparent; color: #fff; backdrop-filter: none; }
.site-header.is-transparent .main-nav a { color: rgba(255, 255, 255, .82); }
.site-header.is-transparent .main-nav a:hover, .site-header.is-transparent .main-nav a.is-active { color: #fff; }
.site-header.is-transparent .brand-word, .site-header.is-transparent .lang-switch { color: #fff; }
.header-inner { display: flex; align-items: center; height: 100%; gap: 28px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.25rem; color: var(--ink); flex-shrink: 0; }
.brand-word { font-weight: 400; letter-spacing: -.02em; }
.brand-word strong { font-weight: 750; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); position: relative; }
.brand-mark span { position: absolute; inset: 7px; border: 2px solid #fff; border-radius: 50%; }
.brand-logo { height: 34px; width: auto; }
.brand-logo--dark { display: none; }
.site-header.is-transparent .brand-logo--light { display: none; }
.site-header.is-transparent .brand-logo--dark { display: block; }

.main-nav { display: flex; gap: 26px; margin-inline-start: auto; }
.main-nav a { font-size: .93rem; font-weight: 500; color: var(--muted); position: relative; padding: 6px 0; transition: color .2s; }
.main-nav a:hover, .main-nav a.is-active { color: var(--ink); }
.main-nav a.is-active::after { content: ""; position: absolute; inset-inline: 0; bottom: -2px; height: 2px; background: var(--accent); border-radius: 2px; }
.main-nav .nav-cta-mobile, .main-nav .nav-lang-mobile { display: none; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 500; color: var(--muted); }
.lang-switch:hover { color: var(--accent); }
.nav-toggle { display: none; width: 42px; height: 42px; border: 0; background: transparent; cursor: pointer; position: relative; color: inherit; }
.nav-toggle span { position: absolute; inset-inline: 10px; height: 2px; background: currentColor; transition: transform .3s var(--ease), top .3s; }
.nav-toggle span:first-child { top: 16px; }
.nav-toggle span:last-child { top: 24px; }
.nav-open .nav-toggle span:first-child { top: 20px; transform: rotate(45deg); }
.nav-open .nav-toggle span:last-child { top: 20px; transform: rotate(-45deg); }

/* ── Section scaffolding ─────────────────────────────────────── */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--compact { padding: clamp(40px, 6vw, 72px) 0; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--ink); color: rgba(255, 255, 255, .78); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.section-head h2 { margin: 0; max-width: 720px; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
    margin-bottom: 14px;
}
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: .9rem; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.eyebrow--light { color: var(--accent-2); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .93rem; color: var(--accent); }
.section--dark .link-arrow { color: #fff; }
.link-arrow i { transition: transform .25s var(--ease); }
a:hover .link-arrow i, .link-arrow:hover i { transform: translateX(4px); }
[dir="rtl"] a:hover .link-arrow i, [dir="rtl"] .link-arrow:hover i { transform: scaleX(-1) translateX(4px); }
.empty { color: var(--muted); padding: 40px 0; text-align: center; }

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
    position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end;
    padding: calc(var(--header-h) + 60px) 0 48px; color: #fff; background: var(--ink); overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img, .hero-bg video { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 13, 18, .45) 0%, rgba(10, 13, 18, .55) 50%, rgba(10, 13, 18, .92) 100%); }
.hero-grid {
    position: absolute; inset: 0;
    background:
        radial-gradient(60% 60% at 75% 30%, rgba(58, 107, 255, .35), transparent 70%),
        radial-gradient(40% 40% at 20% 80%, rgba(0, 194, 168, .18), transparent 70%),
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 64px 64px,
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 64px 64px,
        var(--ink);
    mask-image: linear-gradient(180deg, #000 60%, transparent);
}
.hero-content { position: relative; z-index: 1; max-width: var(--container); }
.hero-title { color: #fff; font-size: clamp(2.6rem, 6.4vw, 5.6rem); max-width: 14ch; font-weight: 650; margin-bottom: 24px; }
html[lang="ar"] .hero-title { max-width: 16ch; }
.hero-text { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(255, 255, 255, .78); max-width: 620px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats {
    position: relative; z-index: 1; margin-top: 72px; padding-top: 28px; border-top: 1px solid var(--line-dark);
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.stat strong { display: block; font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 650; color: #fff; letter-spacing: -.02em; }
.stat span { color: rgba(255, 255, 255, .62); font-size: .92rem; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); }
.stat--dark strong { color: var(--ink); }
.stat--dark span { color: var(--muted); }

/* ── Page header ─────────────────────────────────────────────── */
.page-header { position: relative; padding: clamp(64px, 9vw, 120px) 0 clamp(40px, 6vw, 72px); background: var(--tint); overflow: hidden; }
.page-header h1 { max-width: 18ch; }
.page-header .lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; margin: 0; }
.page-header.has-image { background: var(--ink); color: #fff; }
.page-header.has-image h1 { color: #fff; }
.page-header.has-image .lead { color: rgba(255, 255, 255, .78); }
.page-header-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .35; }
.page-header .container { position: relative; }
.page-header--error, .page-header--thanks { min-height: 60vh; display: flex; align-items: center; }
.page-header--thanks { text-align: center; }
.page-header--thanks h1, .page-header--thanks .lead { margin-inline: auto; }
.page-header--thanks .hero-actions { justify-content: center; margin-top: 28px; }
.page-header--error .hero-actions { margin-top: 28px; }
.thanks-icon { display: inline-flex; font-size: 3.4rem; color: var(--accent-2); margin-bottom: 12px; }

/* ── Cards ───────────────────────────────────────────────────── */
.feature-card {
    display: flex; flex-direction: column; gap: 6px; padding: 30px; border: 1px solid var(--line);
    border-radius: var(--radius-lg); background: #fff; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
a.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.feature-card p { color: var(--muted); font-size: .95rem; flex: 1; }
.feature-icon {
    width: 48px; height: 48px; border-radius: 12px; display: inline-grid; place-items: center; flex-shrink: 0;
    background: rgba(58, 107, 255, .08); color: var(--accent); font-size: 1.35rem; margin-bottom: 12px;
}
.feature-icon--lg { width: 64px; height: 64px; font-size: 1.7rem; border-radius: 16px; }

.media-placeholder {
    width: 100%; height: 100%; min-height: 200px; display: grid; place-items: center;
    background:
        linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px) 0 0 / 32px 32px,
        linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px) 0 0 / 32px 32px,
        linear-gradient(135deg, var(--ink-3), var(--ink));
    color: rgba(255, 255, 255, .35); font-size: 2.6rem;
}
.media-placeholder--tall { min-height: 420px; border-radius: var(--radius-lg); }
.media-placeholder--hero { min-height: 100%; font-size: 4rem; }

/* Project cards */
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project-grid > .project-card--large { grid-column: span 2; grid-row: span 2; }
.project-card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s; }
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.project-card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink); }
.project-card--large .project-card-media { aspect-ratio: auto; flex: 1; min-height: 360px; }
.project-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.project-card:hover .project-card-media img { transform: scale(1.05); }
.project-card-body { padding: 20px 22px 22px; }
.project-card-body h3 { margin-bottom: 8px; }
.project-card--large .project-card-body h3 { font-size: 1.6rem; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: .86rem; align-items: center; }
.tag { position: absolute; top: 16px; inset-inline-start: 16px; padding: 6px 12px; border-radius: 999px; background: rgba(10, 13, 18, .6); backdrop-filter: blur(8px); color: #fff; font-size: .76rem; font-weight: 600; }
.tag--soft { position: static; background: rgba(58, 107, 255, .1); color: var(--accent); backdrop-filter: none; }
.card-arrow { position: absolute; top: 16px; inset-inline-end: 16px; width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; opacity: 0; transform: scale(.8); transition: .3s var(--ease); }
.project-card:hover .card-arrow { opacity: 1; transform: scale(1); }

/* Discipline rows */
.discipline-list { border-top: 1px solid var(--line-dark); }
.discipline-row {
    display: grid; grid-template-columns: 56px 1.1fr 2fr 32px; align-items: center; gap: 24px;
    padding: 30px 8px; border-bottom: 1px solid var(--line-dark); transition: background .3s, padding .3s var(--ease);
}
.discipline-row:hover { background: rgba(255, 255, 255, .03); padding-inline-start: 20px; }
.discipline-icon { font-size: 1.6rem; color: var(--accent-2); }
.discipline-title { font-size: clamp(1.4rem, 2.4vw, 2rem); color: #fff; font-weight: 600; }
.discipline-summary { color: rgba(255, 255, 255, .6); }
.discipline-row > i { font-size: 1.3rem; color: #fff; }

/* Chips */
.chips, .segment-chips, .filters { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: .9rem; font-weight: 500; background: #fff; transition: .2s; }
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip--lg { padding: 14px 22px; font-size: 1rem; }
.chip--lg i { color: var(--accent); }
.chip--dark { background: transparent; color: #fff; border-color: var(--line-dark); }
.chip--dark:hover { border-color: #fff; }
.filters { margin-bottom: 36px; align-items: center; }
.filter-select select { padding: 9px 36px 9px 16px; border-radius: 999px; border: 1px solid var(--line); font: inherit; font-size: .9rem; background: #fff; cursor: pointer; }
[dir="rtl"] .filter-select select { padding: 9px 16px 9px 36px; }

/* Logos */
.logos-strip { padding: 48px 0; border-block: 1px solid var(--line); }
.logos-label { text-align: center; color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 24px; }
.logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px 56px; }
.logos img { height: 34px; width: auto; filter: grayscale(1); opacity: .6; transition: .3s; }
.logos img:hover { filter: none; opacity: 1; }
.logo-text { font-weight: 700; color: var(--muted); font-size: 1.1rem; }

/* Process */
.process { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; counter-reset: step; }
.process li { counter-increment: step; padding: 28px 24px 8px; border-inline-start: 1px solid var(--line); position: relative; }
.process li::before { content: counter(step, decimal-leading-zero); display: block; font-size: .85rem; font-weight: 700; color: var(--accent); margin-bottom: 18px; }
.process li p { color: var(--muted); font-size: .95rem; }

/* Insight cards */
.insight-card { display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: #fff; transition: transform .35s var(--ease), box-shadow .35s; }
.insight-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.insight-media { aspect-ratio: 16 / 9; overflow: hidden; }
.insight-media img { width: 100%; height: 100%; object-fit: cover; }
.insight-media .media-placeholder { min-height: 0; }
.insight-body { padding: 22px; }
.insight-body h3 { margin: 12px 0 8px; }
.insight-body p { color: var(--muted); font-size: .94rem; margin: 0; }

/* CTA */
.cta-band { background: var(--ink); color: #fff; padding: clamp(56px, 8vw, 96px) 0; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 80% at 85% 50%, rgba(58, 107, 255, .35), transparent 70%); }
.cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: rgba(255, 255, 255, .7); max-width: 560px; margin: 0; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Capability list */
.capability-list { border-top: 1px solid var(--line); }
.capability-row { display: grid; grid-template-columns: 48px 64px 1fr 32px; align-items: center; gap: 20px; padding: 28px 8px; border-bottom: 1px solid var(--line); transition: background .3s, padding .3s var(--ease); }
.capability-row:hover { background: var(--tint); padding-inline-start: 20px; }
.capability-row .feature-icon { margin: 0; }
.capability-index { color: var(--muted); font-weight: 600; font-size: .9rem; }
.capability-text strong { display: block; font-size: 1.3rem; color: var(--ink); font-weight: 600; margin-bottom: 4px; }
.capability-text span { color: var(--muted); }
.capability-row > i { font-size: 1.2rem; color: var(--accent); }

/* Expertise */
.expertise-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.expertise-card { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s; }
.expertise-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.expertise-media { aspect-ratio: 16 / 9; overflow: hidden; }
.expertise-media img { width: 100%; height: 100%; object-fit: cover; }
.expertise-media .media-placeholder { min-height: 0; }
.expertise-body { padding: 28px; }
.expertise-body p { color: var(--muted); }

/* Segments */
.segment-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.segment { display: grid; grid-template-columns: 88px 1fr; gap: 24px; padding: 40px 0; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 20px); }
.segment h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.segment-summary { font-size: 1.1rem; color: var(--muted); max-width: 720px; }

/* Details layout */
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; align-items: start; }
.prose { font-size: 1.06rem; color: var(--text); max-width: 760px; }
.prose h2 { font-size: 1.6rem; margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.prose img { border-radius: var(--radius); margin: 1.5em 0; }
.prose ul, .prose ol { padding-inline-start: 1.3em; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.lead-text { font-size: 1.3rem; color: var(--ink); }
.detail-cta { margin-top: 32px; }
.side-list { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.side-list h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 12px; }
.side-list a { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; gap: 10px; align-items: center; font-weight: 500; }
.side-list a:last-child { border: 0; }
.side-list a:hover { color: var(--accent); }
.side-list a i { color: var(--accent); }
.side-box { position: sticky; top: calc(var(--header-h) + 24px); background: var(--tint); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.side-box h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 6px 0 0; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.check-list i { color: var(--accent-2); margin-inline-end: 6px; }

/* Project details */
.project-hero { position: relative; min-height: 78vh; display: flex; align-items: flex-end; color: #fff; background: var(--ink); overflow: hidden; }
.project-hero-media { position: absolute; inset: 0; }
.project-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.project-hero-content { position: relative; z-index: 1; padding-block: 120px 56px; }
.project-hero h1 { color: #fff; max-width: 18ch; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .75); font-size: .9rem; margin-bottom: 28px; }
.back-link:hover { color: #fff; }
.back-link--dark { color: var(--muted); }
.back-link--dark:hover { color: var(--ink); }
.facts-bar { border-bottom: 1px solid var(--line); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.fact { padding: 26px 20px; border-inline-end: 1px solid var(--line); }
.fact:last-child { border: 0; }
.fact span { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 6px; }
.fact strong { font-weight: 600; color: var(--ink); }
.gallery { columns: 2; column-gap: 20px; }
.gallery figure { margin: 0 0 20px; break-inside: avoid; }
.gallery img { border-radius: var(--radius); width: 100%; cursor: zoom-in; }
.gallery figcaption { font-size: .88rem; color: var(--muted); margin-top: 8px; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10, 13, 18, .94); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 82vh; border-radius: 10px; }
.lightbox p { color: rgba(255, 255, 255, .75); margin-top: 14px; }
.lightbox-close { position: absolute; top: 20px; inset-inline-end: 20px; border: 0; background: rgba(255, 255, 255, .1); color: #fff; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; }
.next-project { display: block; background: var(--ink); color: #fff; padding: 64px 0; transition: background .3s; }
.next-project:hover { background: var(--ink-3); }
.next-project strong { display: block; font-size: clamp(1.6rem, 3.4vw, 2.8rem); font-weight: 600; }

/* Company */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.split-media img { border-radius: var(--radius-lg); width: 100%; object-fit: cover; }

/* Insights article */
.article-cover { border-radius: var(--radius-lg); margin-bottom: 40px; width: 100%; }
.download-box { display: flex; align-items: center; gap: 16px; margin-top: 40px; padding: 22px 26px; border: 1px solid var(--line); border-radius: var(--radius); transition: .25s; }
.download-box:hover { border-color: var(--accent); }
.download-box i { font-size: 2rem; color: var(--accent); }
.download-box small { display: block; color: var(--muted); }
.page-header .meta { margin-bottom: 18px; }

/* Start a project */
.start-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; }
.start-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 44px); }
.start-form fieldset { border: 0; padding: 0; margin: 0 0 36px; display: grid; gap: 20px; }
.start-form legend { font-size: 1.25rem; font-weight: 650; color: var(--ink); margin-bottom: 20px; display: flex; gap: 12px; align-items: center; }
.start-form legend span { font-size: .8rem; color: var(--accent); border: 1px solid currentColor; border-radius: 999px; padding: 2px 10px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: .9rem; font-weight: 500; color: var(--ink); }
.field input, .field select, .field textarea {
    font: inherit; font-weight: 400; font-size: 1rem; padding: 13px 15px; border: 1px solid var(--line);
    border-radius: 12px; background: var(--tint); color: var(--text); transition: border-color .2s, background .2s, box-shadow .2s; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(58, 107, 255, .12); }
.field textarea { resize: vertical; min-height: 140px; }
.field-error { color: #d93636; font-weight: 500; }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-block; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; font-weight: 500; transition: .2s; background: #fff; }
.choice input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.choice input:focus-visible + span { box-shadow: 0 0 0 4px rgba(58, 107, 255, .25); }
.file-drop { align-items: center; text-align: center; border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 28px; cursor: pointer; transition: .2s; position: relative; }
.file-drop:hover, .file-drop.is-drag { border-color: var(--accent); background: rgba(58, 107, 255, .04); }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-drop i { font-size: 1.8rem; color: var(--accent); }
.file-drop small { color: var(--muted); font-weight: 400; }
.form-alert { background: #fff1f1; color: #b42323; border-radius: 12px; padding: 12px 16px; margin-bottom: 24px; display: flex; gap: 8px; align-items: center; }
.form-note { color: var(--muted); font-size: .85rem; text-align: center; margin: 14px 0 0; }
.hp { position: absolute; inset-inline-start: -9999px; height: 0; overflow: hidden; }
.contact-aside { display: grid; gap: 20px; position: sticky; top: calc(var(--header-h) + 24px); }
.contact-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; display: grid; gap: 14px; }
.contact-card h3 { margin-bottom: 4px; }
.contact-card a, .contact-card p { display: flex; gap: 12px; align-items: flex-start; margin: 0; color: var(--text); }
.contact-card a:hover { color: var(--accent); }
.contact-card i { color: var(--accent); margin-top: 3px; }
.contact-card--dark { background: var(--ink); border-color: var(--ink); color: rgba(255, 255, 255, .78); }
.contact-card--dark h3 { color: #fff; }
.mini-steps { margin: 0; padding-inline-start: 1.2em; display: grid; gap: 8px; }
.map { width: 100%; height: 240px; border: 0; border-radius: var(--radius-lg); }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .62); padding: 72px 0 28px; border-top: 1px solid var(--line-dark); font-size: .94rem; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line-dark); }
.brand--footer { color: #fff; margin-bottom: 16px; }
.footer-brand p { max-width: 340px; margin-bottom: 22px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { color: #fff; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; }
html[lang="ar"] .footer-col h4 { letter-spacing: 0; font-size: .95rem; }
.footer-col a:hover { color: #fff; }
.footer-col i { margin-inline-end: 6px; }
.social { display: flex; gap: 10px; margin-top: 8px; }
.social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-dark); display: grid; place-items: center; transition: .2s; }
.social a:hover { background: #fff; color: var(--ink); }
.social i { margin: 0; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 24px; font-size: .85rem; flex-wrap: wrap; }
.footer-bottom .lang-switch { color: rgba(255, 255, 255, .62); }
.powered-by strong { color: #fff; font-weight: 600; }

.whatsapp-fab { position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 40; width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; font-size: 1.5rem; box-shadow: 0 10px 26px rgba(37, 211, 102, .4); transition: transform .25s var(--ease); }
.whatsapp-fab:hover { transform: scale(1.07); }

/* ── Reveal on scroll ────────────────────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
    .js .reveal { opacity: 1; transform: none; }
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .main-nav { gap: 18px; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .detail-layout, .start-layout { grid-template-columns: 1fr; gap: 40px; }
    .side-list, .side-box, .contact-aside { position: static; }
}

@media (max-width: 960px) {
    :root { --header-h: 66px; }
    .nav-toggle { display: block; }
    .header-cta, .header-actions > .lang-switch { display: none; }
    .main-nav {
        position: fixed; inset: var(--header-h) 0 0 0; background: var(--ink); flex-direction: column; gap: 0;
        padding: 24px; margin: 0; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .3s var(--ease); overflow-y: auto;
    }
    .nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
    .main-nav a, .site-header.is-transparent .main-nav a { color: #fff; font-size: 1.4rem; padding: 16px 0; border-bottom: 1px solid var(--line-dark); }
    .main-nav a.is-active::after { display: none; }
    .main-nav .nav-cta-mobile { display: inline-flex; margin-top: 24px; border-bottom: 0 !important; font-size: 1rem !important; }
    .main-nav .nav-lang-mobile { display: block; text-align: center; border: 0 !important; font-size: 1rem !important; }
    .nav-open .site-header { background: var(--ink); color: #fff; border-color: transparent; }
    .nav-open .site-header .brand-word { color: #fff; }
    .nav-open { overflow: hidden; }
    .grid-3, .project-grid { grid-template-columns: 1fr 1fr; }
    .project-grid > .project-card--large { grid-column: span 2; grid-row: auto; }
    .hero-stats, .stats-row { grid-template-columns: repeat(2, 1fr); }
    .discipline-row { grid-template-columns: 44px 1fr 28px; }
    .discipline-summary { display: none; }
    .split { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .container { padding-inline: 18px; }
    .grid-3, .project-grid, .expertise-grid, .form-grid { grid-template-columns: 1fr; }
    .project-grid > .project-card--large { grid-column: auto; }
    .project-card--large .project-card-media { min-height: 260px; }
    .capability-row { grid-template-columns: 52px 1fr 24px; }
    .capability-index { display: none; }
    .segment { grid-template-columns: 1fr; gap: 12px; }
    .gallery { columns: 1; }
    .footer-top { grid-template-columns: 1fr; }
    .cta-actions, .hero-actions { width: 100%; }
    .cta-actions .btn, .hero-actions .btn { flex: 1; }
    .fact { border-inline-end: 0; border-bottom: 1px solid var(--line); }
}
