/* ============ Tokens ============ */
:root {
    --ink: #111111;
    --ink-soft: #4a4f57;
    --muted: #8a8f98;
    --white: #ffffff;
    --brand: #125eb0;
    --brand-dark: #0d4a8c;
    --nav-accent: #2c2a8f;
    --process: #3c97f6;
    --tech-bg: #c5eef8;
    --tariq: #20a24b;
    --tradishes: #e8492f;
    --footer: #1e1e1e;
    --yellow: #d8d01c;

    --font-head: "Rubik", "Roboto", system-ui, sans-serif;
    --font-body: "Manrope", system-ui, sans-serif;

    --container: 1140px;
    --gutter: 20px;
    --header-h: 90px;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    background: var(--white);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { margin: 0; font-family: var(--font-head); font-weight: 300; line-height: 1.15; }

p { margin: 0; }

ul { margin: 0; padding: 0; list-style: none; }

button { font: inherit; cursor: pointer; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.section { padding: 100px 0; }

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 200;
    padding: 10px 16px;
    background: var(--brand);
    color: var(--white);
}
.skip-link:focus { left: 10px; top: 10px; }

/* ============ Buttons & links ============ */
.btn {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 999px;
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}
.btn:hover { transform: translateY(-2px); }

.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--brand); color: var(--white); }

.btn-primary { background: var(--brand); color: var(--white); }
.btn-primary:hover { background: var(--brand-dark); }

.link-arrow,
.link-case,
.link-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.link-arrow { color: var(--brand); white-space: nowrap; }
.link-arrow::after { content: "\2192"; transition: transform 0.2s; }
.link-arrow:hover::after { transform: translateX(4px); }

.link-case { color: var(--white); }
.link-case::after { content: "\2198"; transition: transform 0.2s; }
.link-case:hover::after { transform: translate(3px, 3px); }

.link-more { color: var(--muted); font-weight: 400; }
.link-more:hover { color: var(--brand); }

/* ============ Header ============ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    background: var(--white);
    transition: box-shadow 0.25s;
}
.site-header.is-scrolled { box-shadow: 0 2px 18px rgba(0, 0, 0, 0.08); }

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img { height: 32px; width: auto; }

.site-nav { display: flex; gap: 8px; }

.site-nav a {
    position: relative;
    padding: 10px 20px;
    font-family: var(--font-head);
    font-size: 15px;
    color: var(--ink);
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--nav-accent);
    transform: scaleX(0);
    transition: transform 0.25s;
}

.site-nav a:hover::after,
.site-nav a.is-active::after { transform: scaleX(1); }

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    background: none;
}
.nav-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--ink);
    transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Hero slider ============ */
.hero {
    position: relative;
    height: min(720px, calc(100vh - var(--header-h)));
    min-height: 460px;
    overflow: hidden;
    background: #1d2a3a;
    color: var(--white);
}

.hero-track { position: absolute; inset: 0; }

.slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.9s ease, visibility 0.9s;
}
.slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 20, 35, 0.55) 0%, rgba(10, 20, 35, 0.15) 60%, transparent 100%);
}
.slide.is-active { opacity: 1; visibility: visible; }

.slide-content { position: relative; }

.slide h1,
.slide h2 {
    max-width: 460px;
    margin-bottom: 26px;
    font-size: clamp(28px, 3.4vw, 40px);
    font-weight: 400;
    line-height: 1.2;
    transform: translateY(24px);
    opacity: 0;
    transition: transform 0.8s 0.25s, opacity 0.8s 0.25s;
}
.slide .btn {
    transform: translateY(24px);
    opacity: 0;
    transition: transform 0.8s 0.45s, opacity 0.8s 0.45s, background 0.2s, color 0.2s;
}
.slide.is-active h1,
.slide.is-active h2,
.slide.is-active .btn { transform: none; opacity: 1; }

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 48px;
    height: 48px;
    margin-top: -24px;
    padding: 12px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--white);
    opacity: 0.8;
    transition: background 0.2s, opacity 0.2s;
}
.hero-arrow:hover { background: rgba(255, 255, 255, 0.15); opacity: 1; }
.hero-arrow svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; }
.hero-arrow.prev { left: 16px; }
.hero-arrow.next { right: 16px; }

.hero-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 26px;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 10px;
}
.hero-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: background 0.2s, transform 0.2s;
}
.hero-dots button[aria-selected="true"] { background: var(--white); transform: scale(1.3); }

/* ============ Intro ============ */
.intro { padding-bottom: 50px; }

.intro-title {
    max-width: 560px;
    margin-bottom: 36px;
    font-size: clamp(28px, 3.2vw, 38px);
    font-weight: 400;
}

.intro-body {
    display: grid;
    grid-template-columns: minmax(0, 680px) auto;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}
.intro-body p { font-size: 15px; line-height: 1.75; color: var(--ink-soft); }

/* ============ Banner ============ */
.banner {
    padding: 80px 0;
    background: var(--brand);
    color: var(--white);
    text-align: center;
}
.banner p {
    font-family: var(--font-head);
    font-size: clamp(22px, 2.8vw, 32px);
    font-weight: 300;
    line-height: 1.3;
}

/* ============ Section heads ============ */
.section-head { margin-bottom: 60px; }

.eyebrow {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-head);
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.section-head h2 {
    margin-bottom: 30px;
    font-size: clamp(30px, 3.4vw, 42px);
}

.lead-row {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}
.lead-row p { font-size: 14px; line-height: 1.6; }

.lines {
    flex: none;
    position: relative;
    width: 110px;
    height: 7px;
    margin-top: 10px;
    border-top: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    opacity: 0.85;
}

/* ============ Case studies ============ */
.cases { padding-bottom: 60px; }

.case {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    margin-bottom: 60px;
}

.case-card {
    position: relative;
    z-index: 1;
    padding: 70px 66px;
    color: var(--white);
}
.case-card h3 {
    margin-bottom: 26px;
    font-size: clamp(26px, 2.6vw, 34px);
    font-weight: 300;
}
.case-card p {
    max-width: 380px;
    margin-bottom: 44px;
    font-size: 13px;
    line-height: 1.6;
}

.case-logo { height: 44px; width: auto; margin-bottom: 26px; }

.case-tariq .case-card { background: var(--tariq); min-height: 520px; }
.case-tariq .case-media {
    justify-self: start;
    width: min(440px, 100%);
    aspect-ratio: 1;
    margin-left: -40px;
    border-radius: 50%;
    overflow: hidden;
    align-self: start;
}
.case-tariq .case-media img { width: 100%; height: 100%; object-fit: cover; }

.case-tradishes { align-items: stretch; }
.case-tradishes .case-card { background: var(--tradishes); }
.case-tradishes .case-media { overflow: hidden; }
.case-tradishes .case-media img { width: 100%; height: 100%; object-fit: cover; }

/* ============ Process ============ */
.process { background: var(--process); color: var(--white); }

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
}
.step h3 {
    font-size: 30px;
    margin-bottom: 18px;
}
.step h3::after {
    content: "";
    display: block;
    width: 28px;
    height: 2px;
    margin-top: 18px;
    background: currentColor;
}
.step p { font-size: 13.5px; line-height: 1.65; opacity: 0.95; }

/* ============ AI / ML ============ */
.tech { background: var(--tech-bg); }

.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.tech-card {
    display: flex;
    flex-direction: column;
    padding: 0 48px 44px;
    background: var(--white);
    transition: transform 0.3s, box-shadow 0.3s;
}
.tech-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(18, 94, 176, 0.15); }

.tech-card img {
    width: 60%;
    aspect-ratio: 3 / 2;
    margin: 0 auto 30px;
    object-fit: cover;
}
.tech-card h3 { margin-bottom: 22px; font-size: 28px; }
.tech-card p { flex: 1; margin-bottom: 36px; font-size: 13px; line-height: 1.6; }

/* ============ CTA ============ */
.cta { padding: 90px 0; }

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}
.cta h2 { margin-bottom: 12px; font-size: clamp(30px, 3.4vw, 42px); }
.cta p { color: var(--ink-soft); }

/* ============ Footer ============ */
.site-footer {
    padding: 70px 0 0;
    background: var(--footer);
    color: #c9cbd0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr 1.3fr auto;
    gap: 40px;
    padding-bottom: 50px;
}

.footer-logo img { width: 40px; height: auto; }

.site-footer h4 {
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 400;
    color: var(--white);
}
.site-footer li { margin-bottom: 8px; font-size: 14px; }
.site-footer li a:hover { color: var(--white); }

.social { display: flex; gap: 12px; }
.social a {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    transition: background 0.2s;
}
.social a:hover { background: var(--brand); }
.social svg { width: 16px; height: 16px; fill: var(--white); }

.footer-bottom {
    padding-top: 22px;
    padding-bottom: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 13px;
    color: #8d9097;
}

/* ============ Background images ============ */
/* Kept here rather than in inline style="" so the Content-Security-Policy can forbid inline styles.
   Paths are relative to this stylesheet. */
.bg-hero-1 { background-image: url("../img/hero-1.webp"); }
.bg-hero-2 { background-image: url("../img/hero-2.webp"); }
.bg-hero-3 { background-image: url("../img/hero-3.webp"); }
.bg-about-banner { background-image: url("../img/about-banner.webp"); }
.bg-contact-banner { background-image: url("../img/contact-banner.webp"); }
.bg-tariq-banner { background-image: url("../img/tariq-banner.webp"); }
.bg-tradishes-banner { background-image: url("../img/tradishes-banner.webp"); }
.bg-locktill-banner { background-image: url("../img/locktill-banner.webp"); }
.bg-careers-banner { background-image: url("../img/careers-banner.webp"); }

/* ============ Inner pages: banner ============ */
.page-banner {
    position: relative;
    height: 380px;
    background-color: #1d2a3a;
    background-position: center;
    background-size: cover;
}
.page-banner .container {
    position: relative;
    height: 100%;
}
.page-title {
    position: absolute;
    left: var(--gutter);
    bottom: 0;
    min-width: min(540px, calc(100% - var(--gutter) * 2));
    padding: 34px 40px 26px;
    background: var(--yellow);
}
.page-title h1 {
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
}
.page-title p {
    margin-top: 6px;
    font-size: 14px;
    color: #3b3a10;
}

/* ============ Inner pages: content ============ */
.page-section { padding: 80px 0; }
.page-section + .page-section { padding-top: 0; }
.page-section.alt { padding-top: 80px; background: #f5f8fc; }

.page-section h2 {
    margin-bottom: 22px;
    font-size: clamp(26px, 2.8vw, 34px);
    font-weight: 500;
}
.page-section h3 { font-weight: 400; }

.prose p {
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.8;
    color: var(--ink-soft);
}
.prose p:last-child { margin-bottom: 0; }
.prose .lead { font-size: 17px; color: var(--ink); }

.cols-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 60px;
}

.split {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 60px;
}
.split.reverse .split-media { order: -1; }
.split-media img { width: 100%; height: auto; border-radius: 4px; }
.split-media.boxed {
    padding: 40px;
    background: #3fb8d7;
    border-radius: 4px;
}

.callout {
    padding: 36px 40px;
    border-left: 4px solid var(--brand);
    background: #f5f8fc;
    font-size: 16px;
    line-height: 1.75;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}
.feature {
    padding: 32px 28px;
    border: 1px solid #e6e9ef;
    border-radius: 6px;
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.feature:hover { border-color: var(--brand); box-shadow: 0 12px 30px rgba(18, 94, 176, 0.1); transform: translateY(-3px); }
.feature-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    border-radius: 10px;
    background: rgba(18, 94, 176, 0.1);
    color: var(--brand);
}
.feature-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { margin-bottom: 10px; font-size: 20px; font-weight: 500; }
.feature p { font-size: 14px; line-height: 1.7; color: var(--ink-soft); }

.steps-list { counter-reset: step; display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.steps-list li {
    counter-increment: step;
    position: relative;
    padding: 4px 0 0 58px;
    min-height: 40px;
    font-size: 15px;
    line-height: 1.75;
    color: var(--ink-soft);
}
.steps-list li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--brand);
    color: var(--white);
    font-family: var(--font-head);
    font-weight: 500;
}
.steps-list strong { color: var(--ink); font-weight: 600; }

.check-list { display: grid; gap: 12px; }
.check-list li {
    position: relative;
    padding-left: 30px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--ink-soft);
}
.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--tariq) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-8' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tags li {
    padding: 8px 16px;
    border-radius: 999px;
    background: #eef3fa;
    color: var(--brand);
    font-size: 13px;
    font-weight: 500;
}

/* ============ Careers ============ */
.values {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.values-2 { grid-template-columns: 1fr 1fr; }
.value {
    padding: 30px 24px;
    border-radius: 6px;
    background: var(--brand);
    color: var(--white);
}
.value:nth-child(2) { background: var(--process); }
.value:nth-child(3) { background: var(--tariq); }
.value:nth-child(4) { background: var(--tradishes); }
.value h3 { margin-bottom: 8px; font-size: 20px; font-weight: 500; }
.value p { font-size: 13px; line-height: 1.6; opacity: 0.92; }

.jobs { display: grid; gap: 14px; }
.job {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px 30px;
    padding: 26px 30px;
    border: 1px solid #e6e9ef;
    border-radius: 6px;
}
.job h3 { margin-bottom: 6px; font-size: 19px; font-weight: 500; }
.job p { font-size: 14px; line-height: 1.65; color: var(--ink-soft); }
.job-meta { display: inline-block; margin-bottom: 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--brand); }
.job.is-closed { background: #fafafa; }
.job.is-closed h3, .job.is-closed p { color: var(--muted); }
.badge-closed {
    padding: 8px 18px;
    border-radius: 999px;
    background: #ececec;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.cv-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding: 40px;
    border-radius: 6px;
    background: var(--brand);
    color: var(--white);
}
.cv-box h2 { margin: 0; color: var(--white); }
.cv-box p { margin-top: 8px; opacity: 0.9; }
.cv-box .btn-light:hover { background: var(--ink); }

/* ============ Contact ============ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 60px;
    align-items: start;
}
.contact-cards { display: grid; gap: 16px; }
.contact-cards { gap: 14px; max-width: 460px; }
.contact-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 10px;
    overflow: hidden;
    color: var(--white);
    box-shadow: 0 14px 34px var(--card-shadow);
    transition: transform 0.25s, box-shadow 0.25s;
}
.contact-card.is-phone {
    --card-shadow: rgba(18, 94, 176, 0.28);
    background: linear-gradient(135deg, var(--brand) 0%, var(--process) 100%);
}
.contact-card.is-email {
    --card-shadow: rgba(32, 162, 75, 0.26);
    background: linear-gradient(135deg, #178a3d 0%, var(--tariq) 100%);
}
.contact-card:hover,
.contact-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 20px 44px var(--card-shadow);
}

.contact-card .feature-icon {
    position: relative;
    z-index: 1;
    flex: none;
    width: 40px;
    height: 40px;
    margin: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.18);
    color: var(--white);
}
.contact-card .feature-icon svg { width: 20px; height: 20px; }

.contact-card-body { position: relative; z-index: 1; flex: 1; min-width: 0; }
.contact-card-label {
    display: block;
    margin-bottom: 2px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.85;
}
.contact-card strong {
    display: block;
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
    overflow-wrap: anywhere;
}
.contact-card small { display: block; margin-top: 2px; font-size: 12px; opacity: 0.8; }

.contact-card-arrow {
    position: relative;
    z-index: 1;
    flex: none;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--white);
    color: var(--ink);
    font-size: 14px;
    transition: transform 0.25s;
}
.contact-card:hover .contact-card-arrow,
.contact-card:focus-visible .contact-card-arrow { transform: translateX(4px); }

/* Large faded icon in the corner for texture. */
.contact-card-mark {
    position: absolute;
    right: -12px;
    bottom: -20px;
    width: 90px;
    height: 90px;
    fill: none;
    stroke: var(--white);
    stroke-width: 1.2;
    opacity: 0.1;
    pointer-events: none;
}

.contact-social { margin-top: 30px; }
.contact-social h3 { margin-bottom: 14px; font-size: 16px; font-weight: 500; }
.contact-social .social a { background: #eef3fa; }
.contact-social .social svg { fill: var(--brand); }
.contact-social .social a:hover { background: var(--brand); }
.contact-social .social a:hover svg { fill: var(--white); }

/* ============ Gallery ============ */
.gallery {
    columns: 3 280px;
    column-gap: 20px;
}
.gallery-item {
    break-inside: avoid;
    margin: 0 0 20px;
}
.gallery-item a {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 6px;
    cursor: zoom-in;
}
.gallery-item img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}
.gallery-item a::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(18, 94, 176, 0.25);
    opacity: 0;
    transition: opacity 0.3s;
}
.gallery-item a:hover img,
.gallery-item a:focus-visible img { transform: scale(1.04); }
.gallery-item a:hover::after,
.gallery-item a:focus-visible::after { opacity: 1; }
.gallery-item figcaption {
    padding: 10px 2px 0;
    font-size: 13px;
    color: var(--ink-soft);
}

.lightbox {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}
.lightbox::backdrop { background: rgba(10, 14, 22, 0.92); }
.lightbox figure {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 60px 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
}
.lightbox img {
    max-width: 100%;
    max-height: calc(100% - 40px);
    object-fit: contain;
    border-radius: 4px;
}
.lightbox figcaption { color: #e6e9ef; font-size: 14px; text-align: center; }
.lightbox-close,
.lightbox-nav {
    position: absolute;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transition: background 0.2s;
}
.lightbox-close:hover,
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.25); }
.lightbox-close {
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    font-size: 28px;
    line-height: 1;
}
.lightbox-nav {
    top: 50%;
    width: 48px;
    height: 48px;
    margin-top: -24px;
    padding: 12px;
}
.lightbox-nav svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; }
.lightbox-nav.prev { left: 16px; }
.lightbox-nav.next { right: 16px; }

/* ============ Inner pages: responsive ============ */
@media (max-width: 860px) {
    .page-banner { height: 280px; }
    .page-title { padding: 24px 26px 18px; }
    .page-section { padding: 60px 0; }
    .page-section.alt { padding-top: 60px; }
    .cols-2,
    .split,
    .contact-grid { grid-template-columns: 1fr; gap: 30px; }
    .split.reverse .split-media { order: 0; }
    .values { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
    .page-banner { height: 220px; }
    .page-title { left: 0; right: 0; min-width: 0; }
    .values,
    .values-2 { grid-template-columns: 1fr; }
    .job { grid-template-columns: 1fr; padding: 22px; }
    .job .btn, .badge-closed { justify-self: start; }
    .contact-card { gap: 12px; padding: 14px 16px; }
    .contact-card strong { font-size: 15px; }
    /* The whole card is the link, so the arrow only costs width on phones. */
    .contact-card-arrow { display: none; }
    .lightbox figure { padding: 60px 12px; }
    .lightbox-nav { top: auto; bottom: 16px; margin-top: 0; }
    .cv-box { padding: 28px 24px; }
    .callout { padding: 24px; }
    .split-media.boxed { padding: 24px; }
}

/* ============ Reveal on scroll ============ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
    .section { padding: 80px 0; }
    .case-card { padding: 54px 44px; }
    .case-tariq .case-media { width: min(360px, 100%); }
    .tech-card { padding: 0 32px 36px; }
    .footer-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-logo { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
    :root { --header-h: 70px; }

    .nav-toggle { display: block; }

    .site-nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        padding: 10px var(--gutter) 20px;
        background: var(--white);
        box-shadow: 0 12px 20px rgba(0, 0, 0, 0.08);
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.25s, opacity 0.25s, visibility 0.25s;
    }
    .site-nav.is-open { transform: none; opacity: 1; visibility: visible; }
    .site-nav a { padding: 14px 0; border-bottom: 1px solid #eee; }
    .site-nav a::after { display: none; }
    .site-nav a.is-active { color: var(--brand); }

    .hero { height: 70vh; min-height: 420px; }
    .hero-arrow { display: none; }

    .intro-body { grid-template-columns: 1fr; gap: 24px; }

    .case,
    .case-tradishes { grid-template-columns: 1fr; }
    .case-tariq .case-card { min-height: 0; }
    .case-tariq .case-media {
        order: -1;
        width: 70%;
        margin: 0 auto -60px;
        position: relative;
        z-index: 2;
        border: 6px solid var(--white);
    }
    .case-tariq .case-card { padding-top: 90px; }
    .case-tradishes .case-media { aspect-ratio: 4 / 3; }

    .steps,
    .tech-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 560px) {
    :root { --gutter: 16px; }

    .section { padding: 64px 0; }
    .banner { padding: 56px 0; }
    .banner br { display: none; }

    .lead-row { flex-direction: column; gap: 16px; }
    .lead-row br { display: none; }

    .case-card { padding: 44px 26px; }
    .case-card h3 br { display: none; }
    .case-tariq .case-card { padding-top: 84px; }

    .tech-card { padding: 0 22px 30px; }
    .tech-card img { width: 80%; }

    .cta-inner { flex-direction: column; align-items: flex-start; }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-grid > div:last-child { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
    .reveal { opacity: 1; transform: none; }
}
