/* ============================================================
   MajidTek — Editorial Light Design System
   Cream background, deep emerald accent, Fraunces display serif.
   Magazine-grade typography and generous whitespace.
   ============================================================ */

:root {
    /* === Editorial cream palette === */
    --mt-bg: #F8F5EF;
    --mt-bg-soft: #F2EFE7;
    --mt-bg-cream: #FAF8F3;
    --mt-bg-elev: #FFFFFF;
    --mt-surface: #FFFFFF;
    --mt-surface-2: #FAF8F3;

    /* === Borders — hairlines === */
    --mt-border: #E8E2D4;
    --mt-border-soft: #EFEAE0;
    --mt-border-strong: #D8D2C2;
    --mt-rule: #1A1A1A;

    /* === Text === */
    --mt-text: #0E1410;
    --mt-text-2: #2A2A2A;
    --mt-text-muted: #5A6464;
    --mt-text-dim: #8A8A82;
    --mt-text-faint: #B5B0A4;

    /* === Accent: deep emerald (primary) + warm saffron === */
    --mt-emerald: #0F4C3A;
    --mt-emerald-soft: #1B7A5C;
    --mt-emerald-tint: #E6EFE8;
    --mt-saffron: #C9892C;
    --mt-saffron-soft: #E0A646;
    --mt-saffron-tint: #FAF1DE;
    --mt-terracotta: #B8542C;
    --mt-coral: #E07556;
    --mt-ink: #0E1410;

    /* === Subdued status colors === */
    --mt-success: #1B7A5C;
    --mt-warning: #C9892C;
    --mt-danger: #B8542C;

    /* === Gradients (used very sparingly) === */
    --mt-gradient: linear-gradient(135deg, #0F4C3A 0%, #1B7A5C 100%);
    --mt-gradient-warm: linear-gradient(135deg, #C9892C 0%, #B8542C 100%);
    --mt-gradient-soft: linear-gradient(135deg, rgba(15, 76, 58, 0.06) 0%, rgba(201, 137, 44, 0.06) 100%);

    /* === Shadows — soft, paper-like === */
    --mt-shadow-sm: 0 1px 2px rgba(14, 20, 16, 0.04);
    --mt-shadow: 0 4px 12px rgba(14, 20, 16, 0.06);
    --mt-shadow-lg: 0 24px 48px -16px rgba(14, 20, 16, 0.12), 0 8px 16px -8px rgba(14, 20, 16, 0.06);
    --mt-shadow-xl: 0 48px 96px -24px rgba(14, 20, 16, 0.15), 0 16px 32px -16px rgba(14, 20, 16, 0.1);
    --mt-shadow-card: 0 1px 3px rgba(14, 20, 16, 0.05), 0 1px 2px rgba(14, 20, 16, 0.03);
    --mt-shadow-card-hover: 0 16px 40px -8px rgba(14, 20, 16, 0.15), 0 4px 12px -4px rgba(14, 20, 16, 0.08);

    /* === Geometry === */
    --mt-radius-xs: 4px;
    --mt-radius-sm: 6px;
    --mt-radius: 10px;
    --mt-radius-lg: 16px;
    --mt-radius-xl: 24px;
    --mt-container: 1240px;
    --mt-container-narrow: 920px;
    --mt-nav-height: 76px;

    /* === Easing === */
    --mt-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --mt-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    color: var(--mt-text);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    letter-spacing: -0.005em;
}

body {
    /* === Multi-layered editorial background === */
    background-color: var(--mt-bg);
    background-image:
        /* L1 — Warm saffron sweep from top-right (large, very soft) */
        radial-gradient(ellipse 1200px 900px at 95% -8%, rgba(201, 137, 44, 0.12), transparent 55%),
        /* L2 — Cool emerald sweep from mid-left */
        radial-gradient(ellipse 1000px 800px at -8% 35%, rgba(15, 76, 58, 0.09), transparent 55%),
        /* L3 — Warm coral hint near footer */
        radial-gradient(ellipse 900px 700px at 80% 95%, rgba(184, 84, 44, 0.06), transparent 60%),
        /* L4 — Fine dot grid (architectural) */
        radial-gradient(circle at 1px 1px, rgba(14, 20, 16, 0.05) 1px, transparent 0);
    background-size: auto, auto, auto, 40px 40px;
    background-attachment: fixed, fixed, fixed, fixed;
    background-position: 0 0, 0 0, 0 0, 0 0;
    position: relative;
}

/* Layer ‑‑ Paper grain (very subtle) */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.55;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='320'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.025 0'/></filter><rect width='320' height='320' filter='url(%23n)'/></svg>");
    mix-blend-mode: multiply;
}

/* Layer ‑‑ Architectural edge hairlines + slowly drifting blob */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        /* Big drifting emerald blob (animated) */
        radial-gradient(circle 600px at var(--blob-x, 70%) var(--blob-y, 30%), rgba(15, 76, 58, 0.05), transparent 60%),
        /* Edge hairlines */
        linear-gradient(90deg, var(--mt-border) 0, var(--mt-border) 1px, transparent 1px) left top / 1px 100% no-repeat,
        linear-gradient(90deg, var(--mt-border) 0, var(--mt-border) 1px, transparent 1px) right top / 1px 100% no-repeat;
    opacity: 0.7;
    animation: blobDrift 35s ease-in-out infinite alternate;
}

@keyframes blobDrift {
    0%   { --blob-x: 70%; --blob-y: 25%; }
    33%  { --blob-x: 30%; --blob-y: 60%; }
    66%  { --blob-x: 80%; --blob-y: 70%; }
    100% { --blob-x: 25%; --blob-y: 30%; }
}

/* Modern browsers support custom property animation via @property */
@property --blob-x {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 70%;
}
@property --blob-y {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 30%;
}

/* === Section rhythm — alternate background tones for editorial cadence === */
.mt-section:nth-of-type(even) {
    background:
        linear-gradient(180deg, transparent 0%, rgba(15, 76, 58, 0.025) 50%, transparent 100%);
}

/* Section ornamental top rule — small emerald glyph centered above the eyebrow */
.mt-section + .mt-section::before,
.mt-section + .mt-mission::before,
.mt-mission + .mt-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 7px;
    height: 7px;
    background: var(--mt-emerald);
    z-index: 2;
    box-shadow: 0 0 0 4px var(--mt-bg);
}

/* Make sure content sits above the decorative layers */
.mt-nav,
.mt-shell,
.mt-section,
.mt-hero,
.mt-trustbar,
.mt-footer { position: relative; z-index: 1; }

::selection { background: var(--mt-emerald); color: #fff; }

/* === Arabic typography === */
body.lang-ar { font-family: 'IBM Plex Sans Arabic', 'Cairo', 'Inter', system-ui, sans-serif; font-size: 16px; line-height: 1.75; }
body.lang-ar *:not(.mt-mono):not(svg):not(i):not(.material-icons):not(.mud-icon-root) {
    font-family: inherit;
}
body.lang-ar h1, body.lang-ar h2, body.lang-ar h3, body.lang-ar h4 {
    font-family: 'IBM Plex Sans Arabic', 'Cairo', sans-serif;
    letter-spacing: 0;
}
body.lang-ar .mt-hero-title { font-size: clamp(2.2rem, 5.5vw, 3.75rem); line-height: 1.2; }
body.lang-ar .mt-section-title { font-size: clamp(1.6rem, 3.6vw, 2.4rem); line-height: 1.2; }
body.lang-ar .mt-case-title { font-size: clamp(1.5rem, 3.2vw, 2.1rem); line-height: 1.25; }

/* === Container === */
.mt-container {
    max-width: var(--mt-container);
    margin: 0 auto;
    padding: 0 1.75rem;
}
@media (min-width: 768px) { .mt-container { padding: 0 2.5rem; } }
@media (min-width: 1280px) { .mt-container { padding: 0 3rem; } }

/* === Section base === */
.mt-section {
    padding: 7rem 0;
    position: relative;
}
@media (max-width: 768px) { .mt-section { padding: 4.5rem 0; } }

/* Ornamental section divider — small emerald diamond glyph centered above eyebrow */
.mt-section + .mt-section::before,
.mt-section + .mt-mission::before,
.mt-mission + .mt-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 8px;
    height: 8px;
    background: var(--mt-emerald);
    z-index: 2;
}

.mt-section-header {
    max-width: 760px;
    margin: 0 auto 5rem;
    text-align: center;
}

.mt-section-eyebrow {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--mt-emerald);
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--mt-emerald);
    margin-bottom: 1.75rem;
}

.mt-section-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(2.25rem, 4.6vw, 3.5rem);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--mt-ink);
    margin: 0 0 1.5rem;
    font-variation-settings: "SOFT" 100;
}

.mt-section-subtitle {
    font-size: 1.13rem;
    line-height: 1.7;
    color: var(--mt-text-muted);
    margin: 0;
    max-width: 600px;
    margin: 0 auto;
}

.mt-gradient-text {
    font-style: italic;
    color: var(--mt-emerald);
    font-weight: 500;
}
.mt-gradient-text-shimmer {
    font-style: italic;
    color: var(--mt-emerald);
    font-weight: 500;
}

/* === Buttons — premium editorial === */
.mt-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 1.9rem;
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1;
    letter-spacing: -0.005em;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    transition: background-color 0.45s var(--mt-ease), color 0.45s var(--mt-ease), transform 0.3s var(--mt-ease), box-shadow 0.45s var(--mt-ease), border-color 0.4s var(--mt-ease);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    user-select: none;
}

.mt-btn .mud-icon-root,
.mt-btn svg {
    transition: transform 0.4s var(--mt-ease);
    width: 18px !important;
    height: 18px !important;
}

/* Universal shimmer wipe over button on hover */
.mt-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.22) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.8s var(--mt-ease);
    pointer-events: none;
    z-index: 0;
}
.mt-btn:hover::before { transform: translateX(120%); }

.mt-btn > * { position: relative; z-index: 1; }

/* === Primary — bold ink → emerald on hover, with lift === */
.mt-btn-primary {
    background: var(--mt-ink);
    color: #fff;
    box-shadow:
        0 2px 0 0 var(--mt-emerald),
        0 8px 24px -6px rgba(14, 20, 16, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.mt-btn-primary:hover {
    background: var(--mt-emerald);
    color: #fff;
    transform: translateY(-3px);
    box-shadow:
        0 4px 0 0 var(--mt-ink),
        0 16px 32px -8px rgba(15, 76, 58, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.mt-btn-primary:active {
    transform: translateY(-1px);
    box-shadow:
        0 1px 0 0 var(--mt-ink),
        0 6px 14px -4px rgba(15, 76, 58, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition-duration: 0.15s;
}
.mt-btn-primary:hover .mud-icon-root,
.mt-btn-primary:hover svg {
    transform: translateX(3px);
}
[dir="rtl"] .mt-btn-primary:hover .mud-icon-root,
[dir="rtl"] .mt-btn-primary:hover svg {
    transform: translateX(-3px) scaleX(-1);
}

/* === Ghost — minimal outline that fills on hover === */
.mt-btn-ghost {
    background: transparent;
    color: var(--mt-ink);
    border-color: var(--mt-ink);
    box-shadow: 0 2px 0 0 transparent;
}
.mt-btn-ghost::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--mt-ink);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.5s var(--mt-ease);
    z-index: -1;
}
.mt-btn-ghost:hover {
    color: #fff;
    transform: translateY(-3px);
    border-color: var(--mt-ink);
    box-shadow:
        0 4px 0 0 var(--mt-saffron),
        0 16px 32px -8px rgba(14, 20, 16, 0.25);
}
.mt-btn-ghost:hover::after { transform: scaleY(1); }
.mt-btn-ghost:active {
    transform: translateY(-1px);
    box-shadow:
        0 1px 0 0 var(--mt-saffron),
        0 6px 14px -4px rgba(14, 20, 16, 0.25);
    transition-duration: 0.15s;
}

/* === Inverse for dark backgrounds (CTA banner) === */
.mt-cta-banner .mt-btn-primary {
    background: #fff;
    color: var(--mt-ink);
    box-shadow:
        0 2px 0 0 var(--mt-saffron),
        0 8px 24px -6px rgba(0, 0, 0, 0.5);
}
.mt-cta-banner .mt-btn-primary:hover {
    background: var(--mt-saffron);
    color: var(--mt-ink);
    box-shadow:
        0 4px 0 0 #fff,
        0 16px 32px -8px rgba(201, 137, 44, 0.45);
}
.mt-cta-banner .mt-btn-ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: none;
}
.mt-cta-banner .mt-btn-ghost::after { background: rgba(255, 255, 255, 0.12); }
.mt-cta-banner .mt-btn-ghost:hover {
    color: #fff;
    border-color: #fff;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 0 0 var(--mt-saffron), 0 16px 32px -8px rgba(0, 0, 0, 0.4);
}

/* === Tertiary — link-style with animated arrow (for "Read full case study →") === */
.mt-btn-link, .mt-project-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0;
    color: var(--mt-emerald);
    font-weight: 600;
    font-size: 0.93rem;
    text-decoration: none;
    position: relative;
    transition: color 0.3s var(--mt-ease), gap 0.3s var(--mt-ease);
}
.mt-btn-link::after, .mt-project-cta::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 100%;
    height: 1px;
    background: var(--mt-emerald);
    transform-origin: right;
    transform: scaleX(0);
    transition: transform 0.5s var(--mt-ease);
}
.mt-btn-link:hover::after, .mt-project-cta:hover::after {
    transform-origin: left;
    transform: scaleX(1);
}
.mt-btn-link:hover, .mt-project-cta:hover {
    color: var(--mt-ink);
    gap: 0.7rem;
}

/* === Focus visible — accessibility === */
.mt-btn:focus-visible {
    outline: 2px solid var(--mt-saffron);
    outline-offset: 3px;
}

/* === Nav CTA inherits the new pattern === */
.mt-nav-cta {
    padding: 0.65rem 1.3rem;
    background: var(--mt-ink);
    color: #fff !important;
    border-radius: 999px;
    font-weight: 500;
    font-size: 0.88rem;
    box-shadow: 0 2px 0 0 var(--mt-emerald), 0 4px 12px -3px rgba(14, 20, 16, 0.25);
    transition: background-color 0.4s var(--mt-ease), transform 0.25s var(--mt-ease), box-shadow 0.4s var(--mt-ease);
    position: relative;
    overflow: hidden;
}
.mt-nav-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.7s var(--mt-ease);
    pointer-events: none;
}
.mt-nav-cta:hover {
    background: var(--mt-emerald);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 0 0 var(--mt-ink), 0 8px 20px -4px rgba(15, 76, 58, 0.4);
}
.mt-nav-cta:hover::before { transform: translateX(120%); }

/* === Navigation === */
.mt-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(248, 245, 239, 0.92);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--mt-border);
    padding: 0.85rem 0;
    transition: all 0.3s var(--mt-ease);
}

.mt-shell { padding-top: var(--mt-nav-height); }

.mt-nav-inner {
    max-width: var(--mt-container);
    margin: 0 auto;
    padding: 0 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
@media (min-width: 768px) { .mt-nav-inner { padding: 0 2.5rem; } }

.mt-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: var(--mt-ink);
}
.mt-brand-logo { height: 32px; width: 32px; }
.mt-brand span {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.mt-nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--mt-border);
    border-radius: 8px;
    padding: 0.5rem;
    color: var(--mt-ink);
    cursor: pointer;
}
@media (max-width: 900px) {
    .mt-nav-toggle { display: inline-flex; }
}

.mt-nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 2rem;
}
@media (max-width: 900px) {
    .mt-nav-links {
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: var(--mt-bg);
        border-bottom: 1px solid var(--mt-border);
        padding: 1.5rem 1.75rem 2rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
        display: none;
    }
    .mt-nav-links.open { display: flex; }
}

.mt-nav-links li { list-style: none; }
.mt-nav-links a {
    color: var(--mt-text-2);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    padding: 0.4rem 0;
    position: relative;
    transition: color 0.2s var(--mt-ease);
}
.mt-nav-links a:not(.mt-nav-cta):not(.mt-lang-toggle):hover {
    color: var(--mt-emerald);
}
.mt-nav-links a:not(.mt-nav-cta):not(.mt-lang-toggle)::after {
    content: "";
    position: absolute;
    left: 0; bottom: -2px;
    width: 0; height: 1px;
    background: var(--mt-emerald);
    transition: width 0.3s var(--mt-ease);
}
.mt-nav-links a:not(.mt-nav-cta):not(.mt-lang-toggle):hover::after { width: 100%; }

.mt-nav-cta {
    padding: 0.6rem 1.2rem;
    background: var(--mt-ink);
    color: #fff !important;
    border-radius: 999px;
    font-weight: 500;
    font-size: 0.88rem;
    transition: all 0.25s var(--mt-ease);
}
.mt-nav-cta:hover {
    background: var(--mt-emerald);
    transform: translateY(-1px);
    color: #fff !important;
}
.mt-nav-cta::after { display: none !important; }

.mt-lang-toggle {
    padding: 0.5rem 0.85rem;
    border: 1px solid var(--mt-border);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--mt-text-2);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.2s var(--mt-ease);
}
.mt-lang-toggle:hover {
    border-color: var(--mt-ink);
    color: var(--mt-ink);
}
.mt-lang-toggle::after { display: none !important; }

/* === Hero === */
.mt-hero {
    padding: 5rem 0 4rem;
    min-height: 82vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Hero decorative grid overlay — visible blueprint */
.mt-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(14, 20, 16, 0.06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(14, 20, 16, 0.06) 1px, transparent 1px);
    background-size: 72px 72px;
    background-position: 50% 50%;
    mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, #000 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, #000 0%, transparent 70%);
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
}

/* (watermark removed per design preference) */

/* Repurpose the empty mesh container to host drifting accent blobs */
.mt-hero-mesh {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    display: block;
}
.mt-hero-mesh .blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(72px);
    opacity: 0.45;
    will-change: transform;
}
.mt-hero-mesh .blob-1 {
    width: 480px; height: 480px;
    background: var(--mt-saffron);
    top: -10%; right: -5%;
    opacity: 0.25;
    animation: blobFloat1 18s ease-in-out infinite;
}
.mt-hero-mesh .blob-2 {
    width: 420px; height: 420px;
    background: var(--mt-emerald);
    bottom: -8%; left: -5%;
    opacity: 0.22;
    animation: blobFloat2 22s ease-in-out infinite;
}
.mt-hero-mesh .blob-3 {
    width: 340px; height: 340px;
    background: var(--mt-coral);
    top: 35%; right: 35%;
    opacity: 0.15;
    animation: blobFloat3 26s ease-in-out infinite;
}
.mt-hero-mesh .blob-4 {
    width: 280px; height: 280px;
    background: var(--mt-purple-soft, #c4b5fd);
    bottom: 30%; right: 12%;
    opacity: 0.13;
    animation: blobFloat4 20s ease-in-out infinite;
}
@keyframes blobFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-40px, 30px) scale(1.08); }
    66% { transform: translate(20px, 50px) scale(0.95); }
}
@keyframes blobFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(60px, -40px) scale(1.1); }
}
@keyframes blobFloat3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-30px, 40px); }
}
@keyframes blobFloat4 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-50px, -20px) scale(1.15); }
}

/* Corner ornaments — small markers in hero corners */
.mt-hero .mt-container {
    position: relative;
    z-index: 2;
}
.mt-hero .mt-container::before,
.mt-hero .mt-container::after {
    content: "";
    position: absolute;
    width: 24px;
    height: 24px;
    border: 1px solid var(--mt-emerald);
    opacity: 0.4;
    pointer-events: none;
}
.mt-hero .mt-container::before {
    top: 1rem; left: 1.5rem;
    border-right: none;
    border-bottom: none;
}
.mt-hero .mt-container::after {
    bottom: 1rem; right: 1.5rem;
    border-left: none;
    border-top: none;
}
[dir="rtl"] .mt-hero .mt-container::before { left: auto; right: 1.5rem; border-right: 1px solid var(--mt-emerald); border-left: none; }
[dir="rtl"] .mt-hero .mt-container::after { right: auto; left: 1.5rem; border-left: 1px solid var(--mt-emerald); border-right: none; }

.mt-hero-inner {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.mt-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 1rem;
    background: var(--mt-emerald-tint);
    border: 1px solid var(--mt-emerald);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--mt-emerald);
    margin-bottom: 2.5rem;
}
.mt-hero-badge .mt-dot {
    width: 7px; height: 7px;
    background: var(--mt-emerald);
    border-radius: 50%;
    animation: pulse-dot 2.5s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.mt-hero-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(2.75rem, 7vw, 5.5rem);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -0.035em;
    color: var(--mt-ink);
    margin: 0 0 2rem;
    font-variation-settings: "SOFT" 100;
}
.mt-hero-rotator {
    color: var(--mt-emerald);
    font-style: italic;
    font-weight: 500;
}

.mt-hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.1rem, 1.5vw, 1.25rem);
    line-height: 1.6;
    color: var(--mt-text-muted);
    max-width: 680px;
    margin: 0 auto 2.75rem;
    font-weight: 400;
}

.mt-hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 5rem;
}

.mt-hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    max-width: 800px;
    margin: 0 auto;
    border-top: 1px solid var(--mt-border-strong);
    border-bottom: 1px solid var(--mt-border-strong);
    padding: 2rem 0;
}
@media (max-width: 640px) {
    .mt-hero-stats { grid-template-columns: repeat(2, 1fr); gap: 2rem 0; }
}

.mt-hero-stat { text-align: center; position: relative; }
.mt-hero-stat:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0; top: 15%; bottom: 15%;
    width: 1px;
    background: var(--mt-border-strong);
}
.mt-hero-stat-value {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 2.25rem;
    font-weight: 500;
    color: var(--mt-ink);
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}
.mt-hero-stat-label {
    font-size: 0.78rem;
    color: var(--mt-text-muted);
    letter-spacing: 0.02em;
    font-weight: 500;
}

/* === Trust bar === */
.mt-trustbar {
    padding: 2.5rem 0;
    background: var(--mt-bg-soft);
    border-top: 1px solid var(--mt-border);
    border-bottom: 1px solid var(--mt-border);
}
.mt-trustbar-inner {
    max-width: var(--mt-container);
    margin: 0 auto;
    padding: 0 1.75rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem 2.5rem;
}
.mt-trustbar-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--mt-text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}
.mt-trustbar-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--mt-text-2);
    font-size: 0.95rem;
    font-weight: 500;
}
.mt-trustbar-dot {
    width: 4px; height: 4px;
    background: var(--mt-emerald);
    border-radius: 50%;
}

/* === Cards (general) === */
.mt-grid { display: grid; gap: 2rem; }
.mt-grid-2 { grid-template-columns: repeat(2, 1fr); }
.mt-grid-3 { grid-template-columns: repeat(3, 1fr); }
.mt-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) {
    .mt-grid-3, .mt-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .mt-grid-2, .mt-grid-3, .mt-grid-4 { grid-template-columns: 1fr; }
}

.mt-card {
    background: var(--mt-surface);
    border: 1px solid var(--mt-border);
    border-radius: var(--mt-radius);
    padding: 2.25rem 2rem;
    transition: transform 0.4s var(--mt-ease), box-shadow 0.4s var(--mt-ease), border-color 0.3s var(--mt-ease);
    position: relative;
}
.mt-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--mt-shadow-card-hover);
    border-color: var(--mt-border-strong);
}

.mt-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--mt-emerald-tint);
    color: var(--mt-emerald);
    margin-bottom: 1.5rem;
}
.mt-card-icon.purple { background: rgba(167, 139, 250, 0.12); color: #6D4FD7; }
.mt-card-icon.pink   { background: rgba(225, 117, 86, 0.12); color: var(--mt-coral); }
.mt-card-icon.green  { background: var(--mt-emerald-tint); color: var(--mt-emerald); }
.mt-card-icon.amber  { background: var(--mt-saffron-tint); color: var(--mt-saffron); }
.mt-card-icon.blue   { background: rgba(56, 89, 165, 0.12); color: #2E4A8F; }

.mt-card-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 500;
    letter-spacing: -0.015em;
    color: var(--mt-ink);
    margin: 0 0 0.65rem;
    line-height: 1.25;
}
.mt-card-text {
    font-size: 0.97rem;
    line-height: 1.6;
    color: var(--mt-text-muted);
    margin: 0;
}

.mt-card-list {
    list-style: none;
    padding: 1.25rem 0 0;
    margin: 1.25rem 0 0;
    border-top: 1px solid var(--mt-border);
}
.mt-card-list li {
    position: relative;
    padding-left: 1.3rem;
    margin-bottom: 0.5rem;
    font-size: 0.88rem;
    color: var(--mt-text-2);
    line-height: 1.55;
}
[dir="rtl"] .mt-card-list li { padding-left: 0; padding-right: 1.3rem; }
.mt-card-list li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--mt-emerald);
    font-weight: 600;
}
[dir="rtl"] .mt-card-list li::before { left: auto; right: 0; }

/* === Project cards === */
.mt-project {
    display: block;
    background: var(--mt-surface);
    border: 1px solid var(--mt-border);
    border-radius: var(--mt-radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.4s var(--mt-ease), box-shadow 0.4s var(--mt-ease);
}
.mt-project:hover {
    transform: translateY(-5px);
    box-shadow: var(--mt-shadow-card-hover);
}

.mt-project-thumb {
    background: var(--mt-bg-soft);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    position: relative;
    border-bottom: 1px solid var(--mt-border);
}
.mt-project-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--mt-ease);
}
.mt-project:hover .mt-project-thumb img { transform: scale(1.04); }

.mt-browser-chrome {
    padding: 0.6rem 0.85rem;
    background: var(--mt-bg-soft);
    border-bottom: 1px solid var(--mt-border);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.mt-browser-chrome .mt-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
}
.mt-browser-chrome .mt-dot:nth-child(1) { background: #ff5f57; }
.mt-browser-chrome .mt-dot:nth-child(2) { background: #febc2e; }
.mt-browser-chrome .mt-dot:nth-child(3) { background: #28c840; }
.mt-browser-url {
    flex: 1;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: var(--mt-text-muted);
    background: rgba(255, 255, 255, 0.7);
    padding: 0.2rem 0.7rem;
    border-radius: 4px;
    border: 1px solid var(--mt-border);
}

.mt-project-body { padding: 1.5rem 1.85rem 1.85rem; }
.mt-project-tag {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--mt-emerald);
    margin-bottom: 0.6rem;
}
.mt-project-body h3 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.45rem;
    font-weight: 500;
    color: var(--mt-ink);
    margin: 0 0 0.6rem;
    letter-spacing: -0.015em;
    line-height: 1.2;
}
.mt-project-body p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--mt-text-muted);
    margin: 0 0 1.25rem;
}
.mt-project-stack {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}
.mt-project-stack span {
    padding: 0.3rem 0.75rem;
    background: var(--mt-bg-soft);
    border: 1px solid var(--mt-border);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--mt-text-2);
}
.mt-project-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--mt-emerald);
    font-size: 0.9rem;
    font-weight: 600;
    transition: gap 0.25s var(--mt-ease);
}
.mt-project:hover .mt-project-cta { gap: 0.7rem; }

/* === Forms === */
.mt-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
}
@media (max-width: 900px) { .mt-contact-grid { grid-template-columns: 1fr; gap: 2rem; } }

.mt-contact-info { display: flex; flex-direction: column; gap: 1rem; }
.mt-contact-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.35rem;
    background: var(--mt-surface);
    border: 1px solid var(--mt-border);
    border-radius: var(--mt-radius);
    text-decoration: none;
    transition: all 0.25s var(--mt-ease);
}
.mt-contact-row:hover {
    border-color: var(--mt-emerald);
    background: var(--mt-emerald-tint);
    transform: translateX(4px);
}
[dir="rtl"] .mt-contact-row:hover { transform: translateX(-4px); }
.mt-contact-icon {
    flex: none;
    width: 42px; height: 42px;
    border-radius: 10px;
    background: var(--mt-emerald-tint);
    color: var(--mt-emerald);
    display: grid;
    place-items: center;
}
.mt-contact-label {
    font-size: 0.72rem;
    color: var(--mt-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: 0.2rem;
}
.mt-contact-value { color: var(--mt-ink); font-size: 0.95rem; font-weight: 500; }

.mt-form {
    background: var(--mt-surface);
    border: 1px solid var(--mt-border);
    border-radius: var(--mt-radius);
    padding: 2.25rem 2rem;
}
.mt-form h3 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--mt-ink);
    margin: 0 0 1.75rem;
    letter-spacing: -0.02em;
}
.mt-field { margin-bottom: 1.25rem; }
.mt-field label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--mt-text-2);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}
.mt-field input,
.mt-field textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--mt-bg-cream);
    border: 1px solid var(--mt-border);
    border-radius: 8px;
    color: var(--mt-ink);
    font-family: inherit;
    font-size: 0.97rem;
    transition: all 0.2s var(--mt-ease);
}
.mt-field input::placeholder,
.mt-field textarea::placeholder { color: var(--mt-text-faint); }
.mt-field input:focus,
.mt-field textarea:focus {
    outline: none;
    border-color: var(--mt-emerald);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(15, 76, 58, 0.1);
}
.mt-field textarea { min-height: 120px; resize: vertical; }
.mt-form-success {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    background: var(--mt-emerald-tint);
    border: 1px solid var(--mt-emerald);
    border-radius: 8px;
    color: var(--mt-emerald);
    font-size: 0.92rem;
    margin-bottom: 1.25rem;
}

/* === Process === */
.mt-process {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
@media (max-width: 900px) { .mt-process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .mt-process { grid-template-columns: 1fr; } }

.mt-step {
    background: var(--mt-surface);
    border: 1px solid var(--mt-border);
    border-radius: var(--mt-radius);
    padding: 2.25rem 1.75rem;
    transition: all 0.3s var(--mt-ease);
}
.mt-step:hover { border-color: var(--mt-emerald); transform: translateY(-3px); }
.mt-step-num {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 2.5rem;
    font-weight: 400;
    font-style: italic;
    color: var(--mt-emerald);
    line-height: 1;
    margin-bottom: 1rem;
}
.mt-step h4 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--mt-ink);
    margin: 0 0 0.5rem;
}
.mt-step p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--mt-text-muted);
    margin: 0;
}

/* === Feature rows (security) === */
.mt-feature-row {
    display: flex;
    gap: 1.1rem;
    padding: 1.5rem;
    background: var(--mt-surface);
    border: 1px solid var(--mt-border);
    border-radius: var(--mt-radius);
    transition: all 0.25s var(--mt-ease);
}
.mt-feature-row:hover { border-color: var(--mt-emerald); }
.mt-feature-icon {
    flex: none;
    width: 42px; height: 42px;
    border-radius: 10px;
    background: var(--mt-emerald-tint);
    color: var(--mt-emerald);
    display: grid;
    place-items: center;
}
.mt-feature-body h4 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--mt-ink);
    margin: 0 0 0.35rem;
}
.mt-feature-body p { font-size: 0.9rem; color: var(--mt-text-muted); margin: 0; line-height: 1.55; }

/* === Testimonials === */
.mt-testimonial {
    background: var(--mt-surface);
    border: 1px solid var(--mt-border);
    border-radius: var(--mt-radius);
    padding: 2.25rem 2rem;
    position: relative;
    margin: 0;
}
.mt-testimonial-quote-mark {
    font-family: 'Fraunces', Georgia, serif;
    position: absolute;
    top: 0.5rem;
    right: 1.75rem;
    font-size: 5rem;
    color: var(--mt-emerald-tint);
    line-height: 1;
    pointer-events: none;
    font-weight: 500;
}
[dir="rtl"] .mt-testimonial-quote-mark { right: auto; left: 1.75rem; }
.mt-testimonial-stars { display: flex; gap: 2px; color: var(--mt-saffron); margin-bottom: 1.1rem; }
.mt-testimonial-text {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.08rem;
    line-height: 1.6;
    color: var(--mt-ink);
    margin: 0 0 1.5rem;
    font-style: italic;
    font-weight: 400;
    position: relative;
    z-index: 1;
}
.mt-testimonial-author { display: flex; align-items: center; gap: 0.85rem; }
.mt-testimonial-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--mt-ink);
    color: #fff;
    display: grid;
    place-items: center;
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    font-size: 0.95rem;
}
.mt-testimonial-name { color: var(--mt-ink); font-weight: 500; font-size: 0.95rem; }
.mt-testimonial-role { font-size: 0.83rem; color: var(--mt-text-muted); margin-top: 0.1rem; }

/* === FAQ === */
.mt-faq { max-width: 820px; margin: 0 auto; }
.mt-faq-item {
    background: var(--mt-surface);
    border: 1px solid var(--mt-border);
    border-radius: var(--mt-radius);
    margin-bottom: 0.85rem;
    overflow: hidden;
    transition: border-color 0.25s var(--mt-ease);
}
.mt-faq-item.is-open { border-color: var(--mt-emerald); }
.mt-faq-q {
    width: 100%;
    padding: 1.4rem 1.5rem;
    background: transparent;
    border: none;
    color: var(--mt-ink);
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.08rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    position: relative;
    padding-right: 3rem;
}
[dir="rtl"] .mt-faq-q { text-align: right; padding-right: 1.5rem; padding-left: 3rem; }
.mt-faq-q::after {
    content: "+";
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--mt-emerald);
    transition: transform 0.3s var(--mt-ease);
    font-weight: 400;
}
[dir="rtl"] .mt-faq-q::after { right: auto; left: 1.5rem; }
.mt-faq-item.is-open .mt-faq-q::after { transform: translateY(-50%) rotate(45deg); }
.mt-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--mt-ease), padding 0.3s var(--mt-ease);
    padding: 0 1.5rem;
    color: var(--mt-text-muted);
    line-height: 1.65;
    font-size: 0.97rem;
}
.mt-faq-item.is-open .mt-faq-a { max-height: 500px; padding: 0 1.5rem 1.5rem; }

/* === CTA banner === */
.mt-cta-section { padding: 4rem 0 0; }
.mt-cta-banner {
    background: var(--mt-ink);
    color: #fff;
    border-radius: var(--mt-radius-xl);
    padding: 4.5rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.mt-cta-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 0% 100%, rgba(15, 76, 58, 0.6), transparent 50%),
        radial-gradient(circle at 100% 0%, rgba(201, 137, 44, 0.4), transparent 50%);
    opacity: 0.7;
}
.mt-cta-banner > * { position: relative; z-index: 1; }
.mt-cta-banner h2 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin: 0 0 1.25rem;
    color: #fff;
}
.mt-cta-banner h2 .mt-gradient-text { color: var(--mt-saffron-soft); }
.mt-cta-banner p {
    font-size: 1.1rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}
.mt-cta-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.mt-cta-banner .mt-btn-primary {
    background: #fff;
    color: var(--mt-ink);
    box-shadow: 0 2px 0 var(--mt-saffron);
}
.mt-cta-banner .mt-btn-primary:hover {
    background: var(--mt-saffron);
    color: var(--mt-ink);
}
.mt-cta-banner .mt-btn-ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}
.mt-cta-banner .mt-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: #fff;
}

/* === Footer === */
.mt-footer {
    background: var(--mt-bg-soft);
    border-top: 1px solid var(--mt-border);
    padding: 5rem 0 2rem;
    margin-top: 5rem;
}
.mt-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
@media (max-width: 760px) { .mt-footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }
.mt-footer h5 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--mt-ink);
    margin: 0 0 1.25rem;
}
.mt-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.mt-footer ul li a {
    color: var(--mt-text-muted);
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.2s var(--mt-ease);
}
.mt-footer ul li a:hover { color: var(--mt-emerald); }
.mt-socials { display: flex; gap: 0.5rem; }
.mt-social {
    width: 38px; height: 38px;
    display: grid;
    place-items: center;
    background: var(--mt-surface);
    border: 1px solid var(--mt-border);
    border-radius: 8px;
    color: var(--mt-text-2);
    text-decoration: none;
    transition: all 0.25s var(--mt-ease);
}
.mt-social:hover {
    background: var(--mt-ink);
    color: #fff;
    border-color: var(--mt-ink);
    transform: translateY(-2px);
}
.mt-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid var(--mt-border);
    font-size: 0.87rem;
    color: var(--mt-text-muted);
}

/* === Case study sections === */
.mt-case {
    padding: 6rem 0;
    background: var(--mt-bg-cream);
    border-top: 1px solid var(--mt-border);
}
.mt-case-intro {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
    max-width: var(--mt-container);
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 960px) { .mt-case-intro { grid-template-columns: 1fr; gap: 2.5rem; } }
.mt-case-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--mt-emerald);
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--mt-emerald);
    margin-bottom: 1.5rem;
}
.mt-case-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(2rem, 4vw, 2.85rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--mt-ink);
    margin: 0 0 1.25rem;
}
.mt-case-summary { font-size: 1.05rem; line-height: 1.7; color: var(--mt-text-2); margin: 0 0 2rem; }
.mt-case-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.mt-case-meta-item {
    border-left: 2px solid var(--mt-emerald);
    padding-left: 1rem;
}
[dir="rtl"] .mt-case-meta-item { border-left: none; border-right: 2px solid var(--mt-emerald); padding-left: 0; padding-right: 1rem; }
.mt-case-meta-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--mt-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.3rem;
}
.mt-case-meta-value { color: var(--mt-ink); font-size: 0.92rem; font-weight: 500; }

.mt-case-stack {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.mt-case-stack span {
    padding: 0.4rem 0.85rem;
    background: var(--mt-bg-soft);
    border: 1px solid var(--mt-border);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--mt-text-2);
}

.mt-case-hero {
    background: var(--mt-surface);
    border: 1px solid var(--mt-border);
    border-radius: var(--mt-radius);
    overflow: hidden;
    box-shadow: var(--mt-shadow-lg);
}
.mt-case-hero img { width: 100%; display: block; }

.mt-case-modules {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    max-width: var(--mt-container);
    margin: 0 auto;
}
.mt-case-module {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
@media (max-width: 900px) { .mt-case-module { grid-template-columns: 1fr; gap: 2rem; } }
.mt-case-module:nth-child(even) { direction: rtl; }
.mt-case-module:nth-child(even) > * { direction: ltr; }
[dir="rtl"] .mt-case-module:nth-child(even) { direction: ltr; }
[dir="rtl"] .mt-case-module:nth-child(even) > * { direction: rtl; }
.mt-case-module-img {
    background: var(--mt-surface);
    border: 1px solid var(--mt-border);
    border-radius: var(--mt-radius);
    overflow: hidden;
    box-shadow: var(--mt-shadow);
}
.mt-case-module-img img { width: 100%; display: block; }
.mt-case-module-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--mt-emerald);
    margin-bottom: 1rem;
}
.mt-mod-dot { width: 5px; height: 5px; background: var(--mt-emerald); border-radius: 50%; }
.mt-case-module h4 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.65rem;
    font-weight: 500;
    color: var(--mt-ink);
    margin: 0 0 0.85rem;
    letter-spacing: -0.015em;
    line-height: 1.2;
}
.mt-case-module p {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--mt-text-muted);
    margin: 0 0 1.25rem;
}
.mt-case-module ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mt-case-module li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 0.5rem;
    font-size: 0.92rem;
    color: var(--mt-text-2);
}
[dir="rtl"] .mt-case-module li { padding-left: 0; padding-right: 1.4rem; }
.mt-case-module li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--mt-emerald);
}
[dir="rtl"] .mt-case-module li::before { left: auto; right: 0; content: "←"; }

.mt-case-outcomes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 5rem;
    max-width: var(--mt-container);
    margin-left: auto;
    margin-right: auto;
    padding: 3rem 2rem;
    background: var(--mt-ink);
    color: #fff;
    border-radius: var(--mt-radius-lg);
}
@media (max-width: 760px) { .mt-case-outcomes { grid-template-columns: repeat(2, 1fr); } }
.mt-case-outcome { text-align: center; }
.mt-case-outcome-value {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 2.5rem;
    font-weight: 400;
    font-style: italic;
    color: var(--mt-saffron-soft);
    line-height: 1;
    margin-bottom: 0.5rem;
}
.mt-case-outcome-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

.mt-case-page-header {
    padding: 4rem 0 1rem;
    background: var(--mt-bg);
}
.mt-case-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--mt-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s var(--mt-ease);
}
.mt-case-back:hover { color: var(--mt-emerald); }

/* === Tech stack marquee === */
.mt-marquee {
    overflow: hidden;
    padding: 1.5rem 0;
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.mt-marquee-track {
    display: inline-flex;
    gap: 1.5rem;
    animation: marquee 40s linear infinite;
    white-space: nowrap;
}
@keyframes marquee {
    to { transform: translateX(-50%); }
}
.mt-tech-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.1rem;
    background: var(--mt-surface);
    border: 1px solid var(--mt-border);
    border-radius: 999px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--mt-text-2);
}
.mt-tech-dot { width: 8px; height: 8px; border-radius: 50%; }

/* === Mission === */
.mt-mission {
    padding: 7rem 0;
}
.mt-mission-banner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}
.mt-mission-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--mt-emerald);
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--mt-emerald);
    margin-bottom: 1.75rem;
}
.mt-mission-banner h3 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: -0.02em;
    color: var(--mt-ink);
    margin: 0;
}
.mt-mission-banner h3 strong { color: var(--mt-emerald); font-weight: 500; font-style: italic; }

/* ============================================================
   🎬 PREMIUM ANIMATION LAYER
   ============================================================ */

/* Smooth scroll for anchors */
html { scroll-behavior: smooth; scroll-padding-top: 90px; }

/* === Reveal animations — longer, smoother, more cinematic === */
.mt-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.9s var(--mt-ease-out), transform 0.9s var(--mt-ease-out);
    will-change: opacity, transform;
}
.mt-reveal.is-visible { opacity: 1; transform: translateY(0); }
.mt-reveal-delay-1 { transition-delay: 0.12s; }
.mt-reveal-delay-2 { transition-delay: 0.22s; }
.mt-reveal-delay-3 { transition-delay: 0.32s; }
.mt-reveal-delay-4 { transition-delay: 0.42s; }
.mt-reveal-delay-5 { transition-delay: 0.52s; }

/* Reveal variations */
.mt-reveal-scale { opacity: 0; transform: scale(0.96); transition: opacity 0.9s var(--mt-ease-out), transform 0.9s var(--mt-ease-out); }
.mt-reveal-scale.is-visible { opacity: 1; transform: scale(1); }
.mt-reveal-left { opacity: 0; transform: translateX(-30px); transition: opacity 0.9s var(--mt-ease-out), transform 0.9s var(--mt-ease-out); }
.mt-reveal-left.is-visible { opacity: 1; transform: translateX(0); }
.mt-reveal-right { opacity: 0; transform: translateX(30px); transition: opacity 0.9s var(--mt-ease-out), transform 0.9s var(--mt-ease-out); }
.mt-reveal-right.is-visible { opacity: 1; transform: translateX(0); }

/* Page-entrance animation — first paint */
@keyframes pageEntrance {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.mt-shell > main { animation: pageEntrance 0.8s var(--mt-ease-out); }

/* === Hero word rotator — premium fade swap === */
.mt-hero-rotator {
    display: inline-block;
    color: var(--mt-emerald);
    font-style: italic;
    font-weight: 500;
    position: relative;
    animation: rotatorFade 2.4s var(--mt-ease) infinite;
}
@keyframes rotatorFade {
    0%, 90% { opacity: 1; transform: translateY(0); }
    95% { opacity: 0; transform: translateY(-8px); }
    100% { opacity: 0; transform: translateY(8px); }
}

/* === Section eyebrow animated underline === */
.mt-section-eyebrow {
    position: relative;
    overflow: hidden;
}
.mt-section-eyebrow::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: var(--mt-saffron);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.8s var(--mt-ease-out) 0.4s;
}
.mt-reveal.is-visible .mt-section-eyebrow::after,
.mt-section-eyebrow.is-visible::after { transform: scaleX(1); }

/* === Card hover micro-interactions === */
.mt-card {
    cursor: default;
    backface-visibility: hidden;
    will-change: transform;
    transform-style: preserve-3d;
}
.mt-card .mt-card-icon {
    transition: transform 0.5s var(--mt-ease), box-shadow 0.5s var(--mt-ease);
}
.mt-card:hover .mt-card-icon {
    transform: translateY(-2px) rotate(-2deg);
    box-shadow: 0 8px 20px rgba(15, 76, 58, 0.18);
}
.mt-card-title {
    transition: color 0.3s var(--mt-ease);
}
.mt-card:hover .mt-card-title { color: var(--mt-emerald); }

/* === Step number — animated swipe === */
.mt-step {
    overflow: hidden;
    position: relative;
}
.mt-step::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, var(--mt-emerald-tint), transparent);
    transform: translateX(-100%);
    transition: transform 0.8s var(--mt-ease);
    pointer-events: none;
}
.mt-step:hover::before { transform: translateX(100%); }
.mt-step-num {
    transition: transform 0.5s var(--mt-ease), color 0.3s var(--mt-ease);
}
.mt-step:hover .mt-step-num {
    transform: scale(1.05) rotate(-3deg);
    color: var(--mt-saffron);
}

/* === Buttons: magnetic + shimmer === */
.mt-btn {
    overflow: hidden;
    position: relative;
}
.mt-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.18) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.7s var(--mt-ease);
    pointer-events: none;
}
.mt-btn:hover::after { transform: translateX(100%); }
.mt-btn-primary {
    transition: background 0.4s var(--mt-ease), transform 0.3s var(--mt-ease), box-shadow 0.4s var(--mt-ease);
}
.mt-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 76, 58, 0.3), 0 2px 0 var(--mt-emerald);
}

/* === Nav scroll behaviour === */
.mt-nav.is-scrolled {
    background: rgba(248, 245, 239, 0.96);
    box-shadow: 0 4px 24px rgba(14, 20, 16, 0.06);
}

.mt-nav-links a:not(.mt-nav-cta):not(.mt-lang-toggle) {
    transition: color 0.3s var(--mt-ease);
}
.mt-nav-links a:not(.mt-nav-cta):not(.mt-lang-toggle)::after {
    height: 2px;
    background: var(--mt-emerald);
    border-radius: 1px;
}

/* === Trust bar — gentle drift === */
.mt-trustbar-inner { gap: 1rem 3rem; }
.mt-trustbar-item {
    position: relative;
    transition: transform 0.4s var(--mt-ease), color 0.3s var(--mt-ease);
}
.mt-trustbar-item:hover {
    color: var(--mt-emerald);
    transform: translateY(-1px);
}
.mt-trustbar-dot {
    animation: trust-pulse 2.4s ease-in-out infinite;
}
.mt-trustbar-item:nth-child(2) .mt-trustbar-dot { animation-delay: 0.3s; }
.mt-trustbar-item:nth-child(3) .mt-trustbar-dot { animation-delay: 0.6s; }
.mt-trustbar-item:nth-child(4) .mt-trustbar-dot { animation-delay: 0.9s; }
.mt-trustbar-item:nth-child(5) .mt-trustbar-dot { animation-delay: 1.2s; }
.mt-trustbar-item:nth-child(6) .mt-trustbar-dot { animation-delay: 1.5s; }
.mt-trustbar-item:nth-child(7) .mt-trustbar-dot { animation-delay: 1.8s; }
@keyframes trust-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
}

/* === Project cards — premium hover === */
.mt-project {
    position: relative;
    overflow: hidden;
}
.mt-project::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 60%, rgba(15, 76, 58, 0.06) 100%);
    opacity: 0;
    transition: opacity 0.5s var(--mt-ease);
    pointer-events: none;
}
.mt-project:hover::after { opacity: 1; }
.mt-project-tag {
    transition: letter-spacing 0.4s var(--mt-ease);
}
.mt-project:hover .mt-project-tag { letter-spacing: 0.22em; }

/* === Hero stats — count-up entrance === */
.mt-hero-stat {
    opacity: 0;
    transform: translateY(8px);
    animation: statRise 0.7s var(--mt-ease-out) forwards;
}
.mt-hero-stat:nth-child(1) { animation-delay: 0.6s; }
.mt-hero-stat:nth-child(2) { animation-delay: 0.75s; }
.mt-hero-stat:nth-child(3) { animation-delay: 0.9s; }
.mt-hero-stat:nth-child(4) { animation-delay: 1.05s; }
@keyframes statRise {
    to { opacity: 1; transform: translateY(0); }
}

.mt-hero-stat-value {
    background: linear-gradient(135deg, var(--mt-ink) 0%, var(--mt-emerald) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    transition: background-position 0.6s var(--mt-ease);
}
.mt-hero-stat:hover .mt-hero-stat-value { background-position: 100% 50%; }

/* === Hero badge floating animation === */
.mt-hero-badge {
    animation: floatBadge 4s ease-in-out infinite;
}
@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* === Testimonial reveal === */
.mt-testimonial {
    transition: transform 0.5s var(--mt-ease), box-shadow 0.5s var(--mt-ease), border-color 0.4s var(--mt-ease);
}
.mt-testimonial:hover {
    transform: translateY(-4px);
    box-shadow: var(--mt-shadow-card-hover);
    border-color: var(--mt-emerald);
}
.mt-testimonial-quote-mark {
    transition: transform 0.5s var(--mt-ease), color 0.4s var(--mt-ease);
}
.mt-testimonial:hover .mt-testimonial-quote-mark {
    transform: scale(1.15) rotate(-5deg);
    color: var(--mt-saffron-tint);
}

/* === FAQ smoother === */
.mt-faq-item { transition: border-color 0.4s var(--mt-ease), background 0.4s var(--mt-ease); }
.mt-faq-item.is-open { background: linear-gradient(180deg, var(--mt-emerald-tint), var(--mt-surface)); }
.mt-faq-q { transition: color 0.3s var(--mt-ease); }
.mt-faq-item.is-open .mt-faq-q { color: var(--mt-emerald); }

/* === Feature rows ripple === */
.mt-feature-row {
    position: relative;
    overflow: hidden;
}
.mt-feature-row::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), var(--mt-emerald-tint) 0, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s var(--mt-ease);
    pointer-events: none;
}
.mt-feature-row:hover::before { opacity: 1; }
.mt-feature-row .mt-feature-icon { transition: transform 0.4s var(--mt-ease); }
.mt-feature-row:hover .mt-feature-icon { transform: scale(1.1) rotate(-3deg); }

/* === Section transitions with subtle parallax === */
.mt-section {
    position: relative;
}
.mt-section-header {
    transition: transform 0.6s var(--mt-ease);
}

/* === CTA banner shimmer === */
.mt-cta-banner {
    position: relative;
}
.mt-cta-banner::after {
    content: "";
    position: absolute;
    top: 0; left: -50%;
    width: 200%; height: 100%;
    background: linear-gradient(90deg, transparent 40%, rgba(255, 255, 255, 0.04) 50%, transparent 60%);
    animation: shimmer-pass 6s ease-in-out infinite;
    pointer-events: none;
}
@keyframes shimmer-pass {
    0%, 100% { transform: translateX(-50%); }
    50% { transform: translateX(50%); }
}

/* === Image reveal with subtle parallax === */
.mt-case-hero, .mt-case-module-img {
    overflow: hidden;
    position: relative;
}
.mt-case-hero img, .mt-case-module-img img {
    transition: transform 1.2s var(--mt-ease);
}
.mt-case-hero:hover img, .mt-case-module-img:hover img {
    transform: scale(1.03);
}

/* === Outcome cards entrance === */
.mt-case-outcomes .mt-case-outcome {
    opacity: 0;
    transform: translateY(12px);
    animation: outcomeRise 0.8s var(--mt-ease-out) forwards;
}
.mt-case-outcomes .mt-case-outcome:nth-child(1) { animation-delay: 0.1s; }
.mt-case-outcomes .mt-case-outcome:nth-child(2) { animation-delay: 0.25s; }
.mt-case-outcomes .mt-case-outcome:nth-child(3) { animation-delay: 0.4s; }
.mt-case-outcomes .mt-case-outcome:nth-child(4) { animation-delay: 0.55s; }
@keyframes outcomeRise {
    to { opacity: 1; transform: translateY(0); }
}

/* === Contact rows directional hover === */
.mt-contact-row {
    transition: transform 0.4s var(--mt-ease), border-color 0.3s var(--mt-ease), background 0.3s var(--mt-ease);
}
.mt-contact-row .mt-contact-icon {
    transition: transform 0.4s var(--mt-ease);
}
.mt-contact-row:hover .mt-contact-icon {
    transform: scale(1.08) rotate(-4deg);
}

/* === Footer link slide === */
.mt-footer ul li a {
    position: relative;
    padding-left: 0;
    transition: padding-left 0.3s var(--mt-ease), color 0.2s var(--mt-ease);
}
.mt-footer ul li a::before {
    content: "→";
    position: absolute;
    left: -1rem;
    opacity: 0;
    transition: all 0.3s var(--mt-ease);
    color: var(--mt-emerald);
}
.mt-footer ul li a:hover {
    padding-left: 1.2rem;
}
.mt-footer ul li a:hover::before {
    left: 0;
    opacity: 1;
}
[dir="rtl"] .mt-footer ul li a::before { content: "←"; left: auto; right: -1rem; }
[dir="rtl"] .mt-footer ul li a:hover { padding-left: 0; padding-right: 1.2rem; }
[dir="rtl"] .mt-footer ul li a:hover::before { right: 0; left: auto; }

/* === Logo subtle breathing === */
.mt-brand-logo {
    transition: transform 0.4s var(--mt-ease);
}
.mt-brand:hover .mt-brand-logo {
    transform: rotate(-8deg) scale(1.08);
}

/* === Chatbot launcher gentle attention === */
.mt-chat-launcher {
    animation: chatAttention 6s ease-in-out infinite;
}
@keyframes chatAttention {
    0%, 90%, 100% { transform: rotate(0); }
    92% { transform: rotate(-5deg); }
    94% { transform: rotate(5deg); }
    96% { transform: rotate(-3deg); }
    98% { transform: rotate(0); }
}
.mt-chat-launcher:hover { animation: none; }

/* === Mission banner emphasis === */
.mt-mission-banner h3 strong {
    position: relative;
    display: inline-block;
}
.mt-mission-banner h3 strong::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 4px;
    height: 8px;
    background: var(--mt-saffron-tint);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1s var(--mt-ease-out) 0.5s;
}
.mt-mission-banner.is-visible h3 strong::after,
.mt-mission .mt-reveal.is-visible h3 strong::after {
    transform: scaleX(1);
}

/* === Marquee scroll-pause on hover === */
.mt-marquee:hover .mt-marquee-track {
    animation-play-state: paused;
}
.mt-tech-chip {
    transition: transform 0.3s var(--mt-ease), border-color 0.3s var(--mt-ease);
}
.mt-tech-chip:hover {
    transform: translateY(-2px);
    border-color: var(--mt-emerald);
}

/* === Browser chrome traffic lights gentle glow === */
.mt-browser-chrome .mt-dot {
    transition: box-shadow 0.3s var(--mt-ease), transform 0.3s var(--mt-ease);
}
.mt-project:hover .mt-browser-chrome .mt-dot:nth-child(1) { box-shadow: 0 0 8px #ff5f57; }
.mt-project:hover .mt-browser-chrome .mt-dot:nth-child(2) { box-shadow: 0 0 8px #febc2e; }
.mt-project:hover .mt-browser-chrome .mt-dot:nth-child(3) { box-shadow: 0 0 8px #28c840; }

/* ============================================================
   🎞  EXTRA ANIMATION LAYER — scroll progress, letter reveals,
        cursor glow, floating ornaments, parallax flourishes
   ============================================================ */

/* Scroll progress bar — sits under the fixed nav */
.mt-scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 200;
    pointer-events: none;
}
.mt-scroll-progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--mt-emerald) 0%, var(--mt-saffron) 60%, var(--mt-coral) 100%);
    transition: width 0.12s linear;
    box-shadow: 0 1px 8px rgba(15, 76, 58, 0.3);
}

/* Hero title smooth fade-in (handled by JS to avoid wrap issues) */

/* Cursor glow that follows mouse over hero */
.mt-cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(15, 76, 58, 0.16), transparent 70%);
    pointer-events: none;
    z-index: 9;
    transform: translate(-50%, -50%);
    transition: opacity 0.5s var(--mt-ease);
    opacity: 0;
    mix-blend-mode: multiply;
    will-change: transform, opacity;
}
.mt-cursor-glow.is-active { opacity: 1; }

/* Decorative floating geometric ornaments */
.mt-section::after {
    content: "";
    position: absolute;
    top: 15%;
    right: 3%;
    width: 14px;
    height: 14px;
    background: var(--mt-emerald);
    opacity: 0.15;
    transform: rotate(45deg);
    animation: floatOrnament 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}
.mt-section:nth-of-type(odd)::after {
    top: 75%; right: auto; left: 4%;
    background: var(--mt-saffron);
    opacity: 0.18;
    border-radius: 50%;
    transform: none;
    animation: floatOrnament2 10s ease-in-out infinite;
}
@keyframes floatOrnament {
    0%, 100% { transform: rotate(45deg) translate(0, 0); }
    50% { transform: rotate(225deg) translate(20px, -15px); }
}
@keyframes floatOrnament2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-15px, 20px); }
}

/* Section title underline draw */
.mt-section-title {
    position: relative;
    display: inline-block;
}

/* Card hover — gradient glow that follows cursor */
.mt-card, .mt-project, .mt-feature-row, .mt-testimonial {
    position: relative;
    isolation: isolate;
}
.mt-card::after, .mt-project::after, .mt-testimonial::after {
    /* keep the existing ::after corner gradients but ensure z-index sits below content */
    z-index: 0;
}

/* Subtle parallax on hero content */
.mt-hero-inner {
    transition: transform 0.1s linear;
}
.mt-hero-inner.is-parallax {
    transform: translateY(var(--mt-parallax, 0));
}

/* Image gentle fade-in — soft reveal without distracting curtain */
.mt-case-hero img, .mt-case-module-img img {
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.9s var(--mt-ease-out), transform 1.2s var(--mt-ease-out);
}
.mt-case-hero.is-revealed img, .mt-case-module-img.is-revealed img {
    opacity: 1;
    transform: scale(1);
}

/* Hero blob pulse on scroll */
.mt-hero-mesh .blob {
    transition: opacity 0.5s var(--mt-ease);
}

/* Marquee trust bar — auto-scroll */
.mt-trustbar-inner {
    overflow: hidden;
    white-space: nowrap;
    flex-wrap: nowrap;
}

/* Footer entrance */
.mt-footer {
    background-image: linear-gradient(180deg, rgba(15, 76, 58, 0.02), transparent);
}

/* Section eyebrow draws in after parent reveals */
.mt-section-header.is-visible .mt-section-eyebrow,
.mt-reveal.is-visible.mt-section-eyebrow {
    animation: eyebrowFlash 0.6s var(--mt-ease);
}
@keyframes eyebrowFlash {
    0% { background-color: var(--mt-emerald-tint); }
    100% { background-color: transparent; }
}

/* Stat hover ripple */
.mt-hero-stat { cursor: default; transition: transform 0.4s var(--mt-ease); }
.mt-hero-stat:hover { transform: translateY(-4px); }

/* Project cards — image clip-path entrance */
.mt-project-thumb img {
    clip-path: inset(0 0 0 0);
    transition: clip-path 1s var(--mt-ease-out), transform 0.6s var(--mt-ease);
}

/* Brand logo subtle glow on hover */
.mt-brand:hover {
    filter: drop-shadow(0 4px 8px rgba(15, 76, 58, 0.15));
}

/* Section title — gradient sweep on entrance */
.mt-section-title {
    background: linear-gradient(90deg, var(--mt-ink) 0%, var(--mt-ink) 50%, var(--mt-emerald) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-position: 0% 0%;
    transition: background-position 1.2s var(--mt-ease) 0.3s;
}
.mt-section-title.is-visible,
.mt-reveal.is-visible .mt-section-title { background-position: 100% 0%; }

/* Faq item open — content fade in */
.mt-faq-item.is-open .mt-faq-a {
    animation: faqFade 0.45s var(--mt-ease) 0.1s both;
}
@keyframes faqFade {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Reduce motion: kill heavy effects */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .mt-reveal, .mt-reveal-scale, .mt-reveal-left, .mt-reveal-right {
        opacity: 1 !important; transform: none !important;
    }
    .mt-cursor-glow { display: none; }
    .mt-section::after { animation: none; }
}

/* === Chatbot (light theme adjustments) === */
.mt-chat { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 1100; pointer-events: none; }
.mt-chat > * { pointer-events: auto; }
[dir="rtl"] .mt-chat { right: auto; left: 1.5rem; }

.mt-chat-launcher {
    position: relative;
    width: 60px; height: 60px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: var(--mt-ink);
    color: #fff;
    display: grid;
    place-items: center;
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    font-size: 1.5rem;
    box-shadow: 0 10px 30px rgba(14, 20, 16, 0.25), 0 0 0 1px var(--mt-emerald);
    transition: all 0.3s var(--mt-ease);
}
.mt-chat-launcher:hover {
    background: var(--mt-emerald);
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 15px 40px rgba(15, 76, 58, 0.35);
}
.mt-chat-launcher-mark { line-height: 1; }
.mt-chat-launcher-bubble {
    position: absolute;
    bottom: 4px; right: 4px;
    background: var(--mt-saffron);
    color: var(--mt-ink);
    border-radius: 50%;
    width: 20px; height: 20px;
    display: grid;
    place-items: center;
    font-size: 0.7rem;
    border: 2px solid var(--mt-bg);
}
[dir="rtl"] .mt-chat-launcher-bubble { right: auto; left: 4px; }
.mt-chat-launcher-pulse {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--mt-emerald);
    opacity: 0;
    animation: chatPulse 2.5s ease-in-out infinite;
}
@keyframes chatPulse {
    0%, 100% { opacity: 0; transform: scale(0.92); }
    50% { opacity: 0.4; transform: scale(1.15); }
}

.mt-chat-panel {
    width: min(380px, calc(100vw - 2rem));
    height: min(580px, calc(100vh - 3rem));
    border-radius: var(--mt-radius-lg);
    background: var(--mt-surface);
    border: 1px solid var(--mt-border);
    box-shadow: var(--mt-shadow-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: chatSlideUp 0.3s var(--mt-ease-out) both;
}
@keyframes chatSlideUp {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.mt-chat-header {
    padding: 1rem 1.1rem;
    background: var(--mt-bg-soft);
    border-bottom: 1px solid var(--mt-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex: none;
}
.mt-chat-header-id { display: flex; align-items: center; gap: 0.75rem; }
.mt-chat-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--mt-ink);
    color: #fff;
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    display: grid;
    place-items: center;
    flex: none;
}
.mt-chat-title { font-family: 'Fraunces', Georgia, serif; font-weight: 500; color: var(--mt-ink); font-size: 1rem; }
.mt-chat-status {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.74rem;
    color: var(--mt-text-muted);
    margin-top: 1px;
}
.mt-chat-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--mt-emerald);
}
.mt-chat-close {
    background: transparent;
    border: 1px solid var(--mt-border);
    color: var(--mt-text-muted);
    width: 32px; height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: grid;
    place-items: center;
}
.mt-chat-close:hover { background: var(--mt-bg-soft); color: var(--mt-ink); }

.mt-chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.mt-chat-body::-webkit-scrollbar { width: 6px; }
.mt-chat-body::-webkit-scrollbar-thumb { background: var(--mt-border); border-radius: 3px; }

.mt-chat-msg { display: flex; align-items: flex-end; gap: 0.55rem; }
.mt-chat-msg.is-user { flex-direction: row-reverse; }
[dir="rtl"] .mt-chat-msg.is-user { flex-direction: row; }

.mt-chat-msg-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--mt-ink);
    color: #fff;
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    font-size: 0.78rem;
    display: grid;
    place-items: center;
    flex: none;
}
.mt-chat-msg-content { max-width: 80%; display: flex; flex-direction: column; gap: 0.5rem; }
.mt-chat-msg.is-user .mt-chat-msg-content { align-items: flex-end; }
.mt-chat-msg-bubble {
    padding: 0.75rem 0.95rem;
    border-radius: 14px;
    font-size: 0.92rem;
    line-height: 1.55;
    word-wrap: break-word;
    background: var(--mt-bg-soft);
    color: var(--mt-ink);
    border: 1px solid var(--mt-border);
}
.mt-chat-msg.is-user .mt-chat-msg-bubble {
    background: var(--mt-ink);
    color: #fff;
    border-color: var(--mt-ink);
    border-bottom-right-radius: 4px;
}
[dir="rtl"] .mt-chat-msg.is-user .mt-chat-msg-bubble {
    border-bottom-right-radius: 14px;
    border-bottom-left-radius: 4px;
}
.mt-chat-msg-bubble strong { color: var(--mt-emerald); font-weight: 600; }
.mt-chat-msg.is-user .mt-chat-msg-bubble strong { color: var(--mt-saffron-soft); }

.mt-chat-msg-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: var(--mt-emerald-tint);
    border: 1px solid var(--mt-emerald);
    color: var(--mt-emerald);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    align-self: flex-start;
    transition: all 0.2s var(--mt-ease);
}
.mt-chat-msg-link:hover { background: var(--mt-emerald); color: #fff; }

.mt-chat-suggestions { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.mt-chat-chip {
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: var(--mt-bg-cream);
    border: 1px solid var(--mt-border);
    color: var(--mt-text-2);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s var(--mt-ease);
}
.mt-chat-chip:hover { border-color: var(--mt-emerald); color: var(--mt-emerald); }

.mt-chat-typing { padding: 0.85rem 0.95rem; display: inline-flex; gap: 4px; }
.mt-chat-typing span {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--mt-text-muted);
    animation: chatDot 1.2s ease-in-out infinite;
}
.mt-chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.mt-chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes chatDot {
    0%, 80%, 100% { opacity: 0.3; transform: translateY(0); }
    40% { opacity: 1; transform: translateY(-3px); }
}

.mt-chat-input {
    display: flex;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    background: var(--mt-bg-soft);
    border-top: 1px solid var(--mt-border);
    flex: none;
}
.mt-chat-input input {
    flex: 1;
    padding: 0.6rem 0.95rem;
    background: var(--mt-surface);
    border: 1px solid var(--mt-border);
    border-radius: 999px;
    color: var(--mt-ink);
    font-family: inherit;
    font-size: 0.92rem;
    outline: none;
    transition: border-color 0.2s var(--mt-ease);
}
.mt-chat-input input::placeholder { color: var(--mt-text-faint); }
.mt-chat-input input:focus { border-color: var(--mt-emerald); }
.mt-chat-send {
    width: 38px; height: 38px;
    border-radius: 50%;
    border: none;
    background: var(--mt-ink);
    color: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all 0.2s var(--mt-ease);
}
.mt-chat-send:hover:not(:disabled) { background: var(--mt-emerald); transform: scale(1.05); }
.mt-chat-send:disabled { opacity: 0.4; cursor: not-allowed; }

.mt-chat-footer {
    padding: 0.5rem 1rem 0.7rem 1rem;
    text-align: center;
    font-size: 0.7rem;
    color: var(--mt-text-faint);
    background: var(--mt-bg-soft);
    border-top: 1px solid var(--mt-border);
    flex: none;
    letter-spacing: 0.04em;
}

@media (max-width: 500px) {
    .mt-chat { bottom: 1rem; right: 1rem; }
    [dir="rtl"] .mt-chat { left: 1rem; right: auto; }
    .mt-chat-panel { width: calc(100vw - 2rem); height: calc(100vh - 6rem); }
}

/* === Misc fixes === */
a { color: var(--mt-emerald); text-decoration: none; }
a:hover { color: var(--mt-ink); }
img { max-width: 100%; height: auto; display: block; }

/* ===========================================================
   Case-study additions: external links, app tiles, demo mock-ups
   =========================================================== */
.mt-case-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0 0 2rem;
}
.mt-case-links .mt-btn { white-space: nowrap; }

.mt-case-apps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: var(--mt-container);
    margin: 0 auto;
}
@media (max-width: 960px) { .mt-case-apps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .mt-case-apps { grid-template-columns: 1fr; } }
.mt-case-app {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    padding: 1.1rem 1.2rem;
    background: var(--mt-surface);
    border: 1px solid var(--mt-border);
    border-radius: var(--mt-radius);
    color: var(--mt-ink);
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.mt-case-app:hover { transform: translateY(-2px); box-shadow: var(--mt-shadow); border-color: var(--mt-emerald); }
.mt-case-app .mud-icon-root { color: var(--mt-emerald); flex: 0 0 auto; margin-top: 2px; }
.mt-case-app div { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.mt-case-app strong { font-size: 0.98rem; }
.mt-case-app span { font-size: 0.82rem; color: var(--mt-text-muted); line-height: 1.4; }
.mt-case-app em { font-style: normal; font-size: 0.76rem; color: var(--mt-emerald); font-family: 'JetBrains Mono', monospace; overflow-wrap: anywhere; }

/* --- demo mock-up frames (used where the product is private) --- */
.mt-mock { font-size: 0.8rem; color: var(--mt-ink); }
.mt-mock-body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: 0.8rem; }
.mt-mock-topbar { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; font-size: 0.85rem; }
.mt-mock-muted { color: var(--mt-text-muted); font-size: 0.76rem; }
.mt-mock-badge {
    display: inline-block; padding: 0.15rem 0.6rem; border-radius: 999px;
    font-size: 0.7rem; font-weight: 600; letter-spacing: 0.02em; white-space: nowrap;
    background: var(--mt-bg-soft); color: var(--mt-text-2); border: 1px solid var(--mt-border);
}
.mt-mock-badge-ok   { background: var(--mt-emerald-tint); color: var(--mt-emerald); border-color: transparent; }
.mt-mock-badge-warn { background: var(--mt-saffron-tint); color: var(--mt-saffron); border-color: transparent; }
.mt-mock-badge-live { background: #E3F3FB; color: #0B6E9E; border-color: transparent; }
.mt-mock-badge-muted{ opacity: 0.75; }

.mt-mock-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
.mt-mock-stat { background: var(--mt-bg-soft); border: 1px solid var(--mt-border); border-radius: 10px; padding: 0.6rem 0.7rem; display: flex; flex-direction: column; }
.mt-mock-stat-value { font-family: 'Fraunces', Georgia, serif; font-size: 1.35rem; color: var(--mt-emerald); line-height: 1.1; }
.mt-mock-stat-label { font-size: 0.7rem; color: var(--mt-text-muted); }

.mt-mock-table { width: 100%; border-collapse: collapse; font-size: 0.76rem; }
.mt-mock-table th { text-align: start; font-weight: 600; color: var(--mt-text-muted); padding: 0.35rem 0.5rem; border-bottom: 1px solid var(--mt-border); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; }
.mt-mock-table td { padding: 0.45rem 0.5rem; border-bottom: 1px solid var(--mt-border-soft); vertical-align: middle; }
.mt-mock-table code { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; color: var(--mt-emerald); }

.mt-mock-chat .mt-mock-bubble {
    max-width: 82%; padding: 0.55rem 0.75rem; border-radius: 14px;
    background: var(--mt-bg-soft); border: 1px solid var(--mt-border);
    display: flex; flex-direction: column; gap: 0.15rem; align-self: flex-start; line-height: 1.45;
}
.mt-mock-chat .mt-mock-bubble.mine { align-self: flex-end; background: var(--mt-emerald-tint); border-color: transparent; }
.mt-mock-bubble-name { font-size: 0.68rem; font-weight: 600; color: var(--mt-emerald); }
.mt-mock-bubble-time { font-size: 0.64rem; color: var(--mt-text-dim); align-self: flex-end; }
.mt-mock-input { margin-top: 0.3rem; padding: 0.55rem 0.8rem; border: 1px solid var(--mt-border); border-radius: 999px; color: var(--mt-text-dim); background: var(--mt-surface); }

.mt-mock-tg { display: grid; grid-template-columns: auto 1fr auto; gap: 0.7rem; align-items: start; padding: 0.6rem 0.2rem; border-bottom: 1px solid var(--mt-border-soft); }
.mt-mock-tg:last-child { border-bottom: none; }
.mt-mock-tg-icon { font-size: 1.1rem; line-height: 1; }
.mt-mock-tg div { display: flex; flex-direction: column; gap: 0.15rem; }
.mt-mock-tg strong { font-size: 0.8rem; }
.mt-mock-tg span { color: var(--mt-text-muted); line-height: 1.4; }
.mt-mock-tg em { font-style: normal; font-size: 0.68rem; color: var(--mt-text-dim); }

.mt-mock-phone-wrap { display: flex; justify-content: center; padding: 1.5rem; background: var(--mt-bg-soft); }
.mt-mock-phone {
    width: 250px; border-radius: 28px; background: #0E1410; color: #E6ECF8; padding: 0.8rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25), inset 0 0 0 3px #2A3253;
    display: flex; flex-direction: column; gap: 0.7rem; min-height: 420px;
}
.mt-mock-phone-top { display: flex; justify-content: space-between; font-size: 0.7rem; color: #94A0BC; padding: 0.2rem 0.5rem; }
.mt-mock-push { background: rgba(255,255,255,0.1); border-radius: 14px; padding: 0.6rem 0.75rem; display: flex; flex-direction: column; gap: 0.15rem; line-height: 1.35; }
.mt-mock-push strong { font-size: 0.72rem; color: #8fd3b0; }
.mt-mock-push span { font-size: 0.76rem; }
.mt-mock-phone-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; margin-top: auto; }
.mt-mock-shortcut { position: relative; background: #1B7A5C; border-radius: 16px; padding: 1.1rem 0.6rem 0.7rem; text-align: center; font-size: 0.74rem; font-weight: 600; }
.mt-mock-shortcut-count { position: absolute; top: 6px; inset-inline-end: 8px; background: #E0A646; color: #0E1410; border-radius: 999px; min-width: 20px; height: 20px; font-size: 0.66rem; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; }

.mt-mock-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.mt-mock-tile { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; padding: 0.9rem 0.5rem; background: var(--mt-bg-soft); border: 1px solid var(--mt-border); border-radius: 12px; font-size: 0.74rem; font-weight: 500; text-align: center; }
.mt-mock-tile .mud-icon-root { color: var(--mt-emerald); }

/* dark variant (industrial HMI) */
.mt-mock-dark { background: #0E1410; color: #E6ECF8; }
.mt-mock-dark .mt-mock-muted { color: #94A0BC; }
.mt-mock-dark .mt-mock-table th { color: #94A0BC; border-color: #2A3253; }
.mt-mock-dark .mt-mock-table td { border-color: #1F2540; }
.mt-mock-gauges { display: flex; flex-direction: column; gap: 0.55rem; }
.mt-mock-gauge-head { display: flex; justify-content: space-between; font-size: 0.76rem; margin-bottom: 0.25rem; }
.mt-mock-gauge-head span:first-child { font-family: 'JetBrains Mono', monospace; color: #8fd3b0; }
.mt-mock-gauge-bar { height: 8px; background: #1F2540; border-radius: 999px; overflow: hidden; }
.mt-mock-gauge-bar i { display: block; height: 100%; background: linear-gradient(90deg, #38bdf8, #8fd3b0); border-radius: 999px; }
.mt-mock-gauge-vals { display: flex; justify-content: space-between; font-size: 0.68rem; color: #94A0BC; margin-top: 0.2rem; }
.mt-mock-kv { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; margin-top: 0.3rem; }
.mt-mock-kv div { background: rgba(255,255,255,0.06); border-radius: 10px; padding: 0.5rem 0.6rem; display: flex; flex-direction: column; gap: 0.1rem; }
.mt-mock-kv span { font-size: 0.66rem; color: #94A0BC; }
.mt-mock-kv strong { font-size: 0.9rem; }
.mt-mock-ok { color: #8fd3b0; }
.mt-mock-hex { margin: 0; font-family: 'JetBrains Mono', monospace; font-size: 0.68rem; line-height: 1.55; color: #8fd3b0; background: rgba(255,255,255,0.04); padding: 0.75rem 0.9rem; border-radius: 10px; overflow-x: auto; white-space: pre; }
.mt-mock-log { color: #E6ECF8; }
.mt-mock-legend { display: flex; flex-wrap: wrap; gap: 0.8rem; font-size: 0.68rem; color: #94A0BC; }
.mt-mock-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 0.35rem; vertical-align: middle; }
.mt-mock-actions { display: flex; gap: 0.6rem; justify-content: flex-end; margin-top: 0.3rem; }
.mt-mock-btn { padding: 0.45rem 0.9rem; border-radius: 999px; font-size: 0.74rem; font-weight: 600; border: 1px solid var(--mt-border); }
.mt-mock-btn.primary { background: var(--mt-terracotta); color: #fff; border-color: transparent; }
.mt-mock-btn.ghost { background: var(--mt-surface); color: var(--mt-text-2); }

@media (max-width: 540px) {
    .mt-mock-stats, .mt-mock-kv { grid-template-columns: repeat(2, 1fr); }
    .mt-mock-tiles { grid-template-columns: repeat(2, 1fr); }
    .mt-mock-table th:nth-child(n+4), .mt-mock-table td:nth-child(n+4) { display: none; }
}

/* ===========================================================
   Modern shell: aurora background, floating glass nav, dark footer
   (appended last so it overrides the editorial defaults above)
   =========================================================== */

/* --- Background ------------------------------------------- */
body { background-image: none; }
body::after { display: none; }

.mt-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(ellipse 120% 70% at 50% -10%, rgba(255, 255, 255, 0.9), transparent 60%),
        linear-gradient(180deg, #F8F5EF 0%, #F4F1EA 100%);
}
.mt-bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    will-change: transform;
    mix-blend-mode: multiply;
}
.mt-bg-orb-1 {
    width: 62vmax; height: 62vmax;
    top: -28vmax; right: -18vmax;
    background: radial-gradient(circle, rgba(224, 166, 70, 0.42) 0%, rgba(224, 166, 70, 0) 65%);
    animation: mtOrbA 34s ease-in-out infinite alternate;
}
.mt-bg-orb-2 {
    width: 58vmax; height: 58vmax;
    bottom: -30vmax; left: -20vmax;
    background: radial-gradient(circle, rgba(27, 122, 92, 0.36) 0%, rgba(27, 122, 92, 0) 65%);
    animation: mtOrbB 40s ease-in-out infinite alternate;
}
.mt-bg-orb-3 {
    width: 42vmax; height: 42vmax;
    top: 30%; left: 35%;
    background: radial-gradient(circle, rgba(224, 117, 86, 0.22) 0%, rgba(224, 117, 86, 0) 65%);
    animation: mtOrbC 46s ease-in-out infinite alternate;
}
.mt-bg-orb-4 {
    width: 38vmax; height: 38vmax;
    top: 8%; left: 55%;
    background: radial-gradient(circle, rgba(139, 124, 246, 0.22) 0%, rgba(139, 124, 246, 0) 65%);
    animation: mtOrbD 38s ease-in-out infinite alternate;
}
@keyframes mtOrbA { from { transform: translate(0, 0) scale(1); } 50% { transform: translate(-12vw, 10vh) scale(1.08); } to { transform: translate(6vw, 22vh) scale(0.94); } }
@keyframes mtOrbB { from { transform: translate(0, 0) scale(1); } 50% { transform: translate(14vw, -10vh) scale(1.1); } to { transform: translate(28vw, -4vh) scale(1.02); } }
@keyframes mtOrbC { from { transform: translate(0, 0); } 50% { transform: translate(-18vw, 14vh); } to { transform: translate(16vw, -12vh); } }
@keyframes mtOrbD { from { transform: translate(0, 0) scale(1); } 50% { transform: translate(-22vw, 24vh) scale(1.15); } to { transform: translate(-6vw, 8vh) scale(0.9); } }

/* rotating light beam from the top */
.mt-bg-beam {
    position: absolute;
    top: -60vmax; left: 50%;
    width: 120vmax; height: 120vmax;
    margin-left: -60vmax;
    background: conic-gradient(from 0deg at 50% 50%,
        transparent 0deg, rgba(255, 255, 255, 0.55) 18deg, transparent 36deg,
        transparent 180deg, rgba(27, 122, 92, 0.08) 200deg, transparent 220deg, transparent 360deg);
    opacity: 0.7;
    animation: mtBeam 90s linear infinite;
    mix-blend-mode: soft-light;
}
@keyframes mtBeam { to { transform: rotate(360deg); } }

/* crisp grid that fades toward the bottom */
.mt-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(14, 20, 16, 0.075) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(14, 20, 16, 0.075) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 75%);
}

/* let the aurora show through sections that used to be opaque */
.mt-case { background: rgba(250, 248, 243, 0.55); }
.mt-trustbar { background: rgba(242, 239, 231, 0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.mt-hero::before { opacity: 0.35; }
.mt-hero-mesh .blob { opacity: 0.12; }

/* --- Floating glass navigation ----------------------------- */
:root { --mt-nav-height: 86px; }
.mt-nav {
    top: 14px;
    left: 0; right: 0;
    padding: 0 0.9rem;
    background: transparent;
    border-bottom: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: top 0.35s var(--mt-ease);
}
.mt-nav.is-scrolled { background: transparent; box-shadow: none; top: 10px; }
.mt-nav-inner {
    max-width: 1180px;
    padding: 0.4rem 0.45rem 0.4rem 0.55rem;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 999px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 0 0 1px rgba(14, 20, 16, 0.05),
        0 18px 50px -20px rgba(14, 20, 16, 0.28);
    backdrop-filter: blur(24px) saturate(170%);
    -webkit-backdrop-filter: blur(24px) saturate(170%);
    transition: max-width 0.45s var(--mt-ease), background 0.3s var(--mt-ease), box-shadow 0.3s var(--mt-ease);
}
[dir="rtl"] .mt-nav-inner { padding: 0.4rem 0.55rem 0.4rem 0.45rem; }
.mt-nav.is-scrolled .mt-nav-inner {
    max-width: 1040px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 0 0 1px rgba(14, 20, 16, 0.06),
        0 22px 60px -22px rgba(14, 20, 16, 0.35);
}
.mt-brand { gap: 0.6rem; padding: 0.25rem 0.5rem 0.25rem 0.25rem; }
[dir="rtl"] .mt-brand { padding: 0.25rem 0.25rem 0.25rem 0.5rem; }
.mt-brand-mark {
    display: inline-grid;
    place-items: center;
    width: 38px; height: 38px;
    border-radius: 12px;
    background: var(--mt-ink);
    box-shadow: 0 6px 16px -6px rgba(14, 20, 16, 0.5);
    transition: transform 0.3s var(--mt-ease);
}
.mt-brand:hover .mt-brand-mark { transform: rotate(-6deg) scale(1.05); }
.mt-brand-logo { height: 24px; width: 24px; }
.mt-brand span:not(.mt-brand-mark) { font-size: 1.15rem; }

.mt-nav-links { gap: 0.15rem; }
.mt-nav-links a:not(.mt-nav-cta):not(.mt-lang-toggle) {
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--mt-text-2);
    transition: background 0.25s var(--mt-ease), color 0.25s var(--mt-ease), transform 0.25s var(--mt-ease);
}
.mt-nav-links a:not(.mt-nav-cta):not(.mt-lang-toggle)::after { display: none; }
.mt-nav-links a:not(.mt-nav-cta):not(.mt-lang-toggle):hover {
    background: rgba(14, 20, 16, 0.06);
    color: var(--mt-ink);
}
.mt-nav-links a.is-active:not(.mt-nav-cta):not(.mt-lang-toggle) {
    background: var(--mt-ink);
    color: #fff;
    box-shadow: 0 8px 20px -10px rgba(14, 20, 16, 0.6);
}

.mt-nav-actions { display: flex; align-items: center; gap: 0.4rem; }
.mt-nav-mobile-actions { display: none; }

.mt-lang-toggle {
    padding: 0.5rem 0.8rem;
    border: 1px solid rgba(14, 20, 16, 0.1);
    background: rgba(255, 255, 255, 0.5);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}
.mt-lang-toggle:hover { background: #fff; border-color: rgba(14, 20, 16, 0.2); }

.mt-nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.62rem 1.05rem 0.62rem 1.2rem;
    background: linear-gradient(135deg, #0F4C3A 0%, #1B7A5C 100%);
    color: #fff !important;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 10px 24px -10px rgba(15, 76, 58, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    overflow: hidden;
    position: relative;
}
.mt-nav-cta .mud-icon-root { transition: transform 0.3s var(--mt-ease); }
.mt-nav-cta:hover { background: linear-gradient(135deg, #0F4C3A 0%, #1B7A5C 100%); transform: translateY(-1px); box-shadow: 0 14px 30px -10px rgba(15, 76, 58, 0.8); }
.mt-nav-cta:hover .mud-icon-root { transform: translate(2px, -2px); }
[dir="rtl"] .mt-nav-cta:hover .mud-icon-root { transform: translate(-2px, -2px) scaleX(-1); }
[dir="rtl"] .mt-nav-cta .mud-icon-root { transform: scaleX(-1); }

.mt-nav-toggle {
    width: 42px; height: 42px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(14, 20, 16, 0.1);
    background: rgba(255, 255, 255, 0.6);
    padding: 0;
}

@media (max-width: 900px) {
    .mt-nav { padding: 0 0.6rem; }
    .mt-nav-toggle { display: inline-flex; }
    .mt-nav-actions .mt-nav-cta, .mt-nav-actions .mt-lang-toggle { display: none; }
    .mt-nav-mobile-actions {
        display: flex;
        gap: 0.6rem;
        width: 100%;
        padding-top: 0.75rem;
        margin-top: 0.25rem;
        border-top: 1px solid rgba(14, 20, 16, 0.08);
    }
    .mt-nav-mobile-actions .mt-nav-cta { flex: 1; justify-content: center; }
    .mt-nav-links {
        position: absolute;
        top: calc(100% + 10px);
        left: 0; right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0.2rem;
        padding: 0.75rem;
        background: rgba(255, 255, 255, 0.9);
        border: 1px solid rgba(255, 255, 255, 0.8);
        border-bottom: 1px solid rgba(255, 255, 255, 0.8);
        border-radius: 26px;
        box-shadow: 0 0 0 1px rgba(14, 20, 16, 0.06), 0 30px 60px -20px rgba(14, 20, 16, 0.35);
        backdrop-filter: blur(24px) saturate(170%);
        -webkit-backdrop-filter: blur(24px) saturate(170%);
        transform-origin: top center;
    }
    .mt-nav-links.open { display: flex; animation: mtMenuIn 0.28s var(--mt-ease); }
    .mt-nav-links a:not(.mt-nav-cta):not(.mt-lang-toggle) { display: block; padding: 0.8rem 1rem; font-size: 1rem; border-radius: 16px; }
}
@keyframes mtMenuIn { from { opacity: 0; transform: translateY(-8px) scale(0.98); } to { opacity: 1; transform: none; } }

/* --- Modern dark footer ------------------------------------ */
.mt-footer {
    margin-top: 4rem;
    padding: 5.5rem 0 0;
    background: #0B100E;
    color: #E6ECF8;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 36px 36px 0 0;
    overflow: hidden;
    position: relative;
    isolation: isolate;
}
.mt-footer-glow {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 60% 50% at 15% 0%, rgba(27, 122, 92, 0.35), transparent 60%),
        radial-gradient(ellipse 50% 45% at 90% 20%, rgba(224, 166, 70, 0.18), transparent 60%),
        linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: auto, auto, 64px 64px, 64px 64px;
    mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
}
.mt-footer .mt-container { position: relative; z-index: 1; }
.mt-footer-top {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: start;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
@media (max-width: 960px) { .mt-footer-top { grid-template-columns: 1fr; gap: 3rem; } }
.mt-footer-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem 0.4rem 0.6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(230, 236, 248, 0.85);
    margin-bottom: 1.5rem;
}
.mt-footer-status-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
    animation: mtPulse 2.2s ease-out infinite;
}
@keyframes mtPulse { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); } 100% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); } }
.mt-footer-pitch h2 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 500;
    font-size: clamp(2.2rem, 4.5vw, 3.6rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0 0 1.25rem;
    color: #fff;
}
.mt-footer-accent {
    font-style: italic;
    background: linear-gradient(90deg, #8fd3b0, #E0A646);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.mt-footer-pitch p { color: rgba(230, 236, 248, 0.65); font-size: 1rem; line-height: 1.7; max-width: 440px; margin: 0 0 1.75rem; }
.mt-footer-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.mt-footer-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.35rem;
    border-radius: 999px;
    background: #fff;
    color: #0B100E;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    transition: transform 0.25s var(--mt-ease), box-shadow 0.25s var(--mt-ease), background 0.25s var(--mt-ease);
}
.mt-footer-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -14px rgba(255, 255, 255, 0.5); }
.mt-footer-btn.ghost { background: rgba(255, 255, 255, 0.06); color: #fff; border: 1px solid rgba(255, 255, 255, 0.14); }
.mt-footer-btn.ghost:hover { background: rgba(255, 255, 255, 0.12); box-shadow: none; }
[dir="rtl"] .mt-footer-btn .mud-icon-root { transform: scaleX(-1); }

.mt-footer-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
@media (max-width: 600px) { .mt-footer-cols { grid-template-columns: 1fr 1fr; } }
.mt-footer h5 {
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(230, 236, 248, 0.5);
    margin: 0 0 1.1rem;
}
.mt-footer ul { gap: 0.6rem; }
.mt-footer ul li a, .mt-footer ul li a:hover, .mt-footer-muted {
    color: rgba(230, 236, 248, 0.8);
    font-size: 0.92rem;
    text-decoration: none;
    padding: 0;
}
.mt-footer ul li a::before { display: none; }
.mt-footer ul li a { transition: color 0.2s var(--mt-ease), padding-inline-start 0.25s var(--mt-ease); display: inline-block; }
.mt-footer ul li a:hover { color: #fff; padding-inline-start: 6px; }
.mt-footer-muted { color: rgba(230, 236, 248, 0.5); }

.mt-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 1.75rem 0 2.5rem;
    border-top: none;
    color: rgba(230, 236, 248, 0.5);
    font-size: 0.82rem;
}
.mt-footer-brand { color: #fff; }
.mt-footer-brand span:not(.mt-brand-mark) { color: #fff; font-size: 1.05rem; }
.mt-footer-brand .mt-brand-mark { background: rgba(255, 255, 255, 0.08); box-shadow: none; }
.mt-footer-sep { margin: 0 0.5rem; opacity: 0.5; }
.mt-footer .mt-social {
    width: 40px; height: 40px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(230, 236, 248, 0.8);
    display: inline-flex; align-items: center; justify-content: center;
    transition: background 0.25s var(--mt-ease), transform 0.25s var(--mt-ease), color 0.25s var(--mt-ease);
}
.mt-footer .mt-social:hover { background: #fff; color: #0B100E; transform: translateY(-2px); }

.mt-footer-wordmark {
    position: relative;
    z-index: 0;
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    font-size: clamp(5rem, 19vw, 19rem);
    line-height: 0.78;
    letter-spacing: -0.05em;
    text-align: center;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0));
    -webkit-background-clip: text;
    background-clip: text;
    user-select: none;
    pointer-events: none;
    margin: 0 -2rem -0.1em;
    white-space: nowrap;
}

/* --- Motion preference -------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .mt-bg-orb, .mt-bg-beam, .mt-footer-status-dot { animation: none !important; }
}

/* brand mark uses the logo navy */
.mt-brand-mark { background: #0B2A6F; box-shadow: 0 6px 16px -6px rgba(11, 42, 111, 0.6); }
.mt-footer-brand .mt-brand-mark { background: #0B2A6F; }
.mt-brand-logo { height: 28px; width: 28px; }

/* the mission ornament was anchoring to .mt-shell and peeking above the floating nav */
.mt-mission { position: relative; }

/* NCC mobile strip and wide module */
.mt-case-module-wide { grid-template-columns: 1fr; gap: 2rem; }
.mt-case-module-wide .mt-case-module-body { max-width: 720px; }
.mt-case-phones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
@media (max-width: 900px) { .mt-case-phones { grid-template-columns: repeat(2, 1fr); } }
.mt-case-phone { margin: 0; display: flex; flex-direction: column; gap: 0.6rem; align-items: center; }
.mt-case-phone img { width: 100%; display: block; border-radius: 26px; border: 5px solid #0E1410; box-shadow: 0 24px 48px -20px rgba(14, 20, 16, 0.45); background: #0E1410; }
.mt-case-phone figcaption { font-size: 0.8rem; color: var(--mt-text-muted); text-align: center; }
[dir="rtl"] .mt-case-module-wide { direction: rtl; }

/* ===========================================================
   Modern hero banner: split layout + layered product showcase
   =========================================================== */
.mt-hero-banner { min-height: auto; padding: 4.5rem 0 3.5rem; }
.mt-hero-banner .mt-container::before,
.mt-hero-banner .mt-container::after { display: none; }
.mt-hero-banner .mt-hero-inner { max-width: none; text-align: start; }
.mt-hero-banner .mt-hero-inner.is-parallax { transform: none; }

.mt-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 3.5rem;
    align-items: center;
}

/* --- copy column --- */
.mt-hero-banner .mt-hero-badge {
    margin-bottom: 1.75rem;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(15, 76, 58, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 6px 18px -10px rgba(15, 76, 58, 0.35);
}
.mt-hero-banner .mt-hero-title {
    font-size: clamp(2.6rem, 5.2vw, 4.6rem);
    line-height: 1.02;
    margin: 0 0 1.5rem;
}
body.lang-ar .mt-hero-banner .mt-hero-title { font-size: clamp(2.2rem, 4.6vw, 3.8rem); line-height: 1.2; }
.mt-hero-banner .mt-hero-subtitle { margin: 0 0 2.25rem; max-width: 540px; font-size: clamp(1.02rem, 1.3vw, 1.15rem); }
.mt-hero-banner .mt-hero-actions { justify-content: flex-start; margin-bottom: 2.25rem; }

.mt-hero-trust {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    font-size: 0.86rem;
    color: var(--mt-text-muted);
    max-width: 520px;
    line-height: 1.45;
}
.mt-hero-avatars { display: flex; flex: 0 0 auto; }
.mt-hero-avatars span {
    width: 34px; height: 34px;
    border-radius: 50%;
    display: inline-grid; place-items: center;
    color: #fff; font-size: 0.75rem; font-weight: 700;
    border: 2px solid #fff;
    box-shadow: 0 4px 10px -4px rgba(14, 20, 16, 0.4);
}
.mt-hero-avatars span + span { margin-inline-start: -10px; }

/* --- showcase column --- */
.mt-hero-showcase {
    position: relative;
    height: 520px;
    perspective: 1600px;
}
.mt-hero-ring {
    position: absolute;
    inset: 6% 4% 4% 6%;
    border-radius: 40px;
    background:
        radial-gradient(circle at 30% 20%, rgba(224, 166, 70, 0.35), transparent 55%),
        radial-gradient(circle at 80% 80%, rgba(27, 122, 92, 0.35), transparent 55%),
        linear-gradient(135deg, rgba(11, 42, 111, 0.12), rgba(15, 76, 58, 0.08));
    filter: blur(2px);
}
.mt-hero-ring::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background-image:
        linear-gradient(to right, rgba(14, 20, 16, 0.06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(14, 20, 16, 0.06) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}

.mt-hero-shot {
    position: absolute;
    display: block;
    width: 74%;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        0 0 0 1px rgba(14, 20, 16, 0.06),
        0 30px 60px -24px rgba(14, 20, 16, 0.45),
        0 12px 24px -12px rgba(14, 20, 16, 0.25);
    transition: transform 0.6s var(--mt-ease), box-shadow 0.6s var(--mt-ease), z-index 0s 0.2s;
    text-decoration: none;
}
.mt-hero-shot img { display: block; width: 100%; aspect-ratio: 1410 / 760; object-fit: cover; object-position: top; }
.mt-hero-shot-bar {
    display: flex; align-items: center; gap: 5px;
    padding: 7px 10px;
    background: rgba(248, 245, 239, 0.95);
    border-bottom: 1px solid var(--mt-border);
}
.mt-hero-shot-bar i { width: 8px; height: 8px; border-radius: 50%; background: #ff5f57; }
.mt-hero-shot-bar i:nth-child(2) { background: #febc2e; }
.mt-hero-shot-bar i:nth-child(3) { background: #28c840; }
.mt-hero-shot-bar em {
    margin-inline-start: 8px;
    font-style: normal;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.66rem;
    color: var(--mt-text-muted);
    background: #fff;
    border: 1px solid var(--mt-border);
    border-radius: 6px;
    padding: 1px 8px;
    flex: 1;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.mt-hero-shot-back  { top: 0;    inset-inline-end: 0;   z-index: 1; transform: rotate(4deg) translateY(6px) scale(0.92); opacity: 0.95; }
.mt-hero-shot-mid   { top: 22%;  inset-inline-start: 0; z-index: 2; transform: rotate(-3deg) scale(0.95); }
.mt-hero-shot-front { top: 46%;  inset-inline-end: 6%;  z-index: 3; transform: rotate(1.5deg); }
.mt-hero-shot:hover { z-index: 6; transform: rotate(0) translateY(-6px) scale(1.02); box-shadow: 0 0 0 1px rgba(14, 20, 16, 0.08), 0 40px 80px -28px rgba(14, 20, 16, 0.55); transition: transform 0.4s var(--mt-ease), box-shadow 0.4s var(--mt-ease), z-index 0s; }

.mt-hero-phone {
    position: absolute;
    z-index: 4;
    bottom: -4%;
    inset-inline-start: 4%;
    width: 25%;
    border-radius: 24px;
    padding: 5px;
    background: #0E1410;
    box-shadow: 0 30px 60px -20px rgba(14, 20, 16, 0.6), inset 0 0 0 2px #2A3253;
    transform: rotate(-6deg);
    animation: mtHeroFloat 7s ease-in-out infinite;
}
.mt-hero-phone img { display: block; width: 100%; border-radius: 19px; aspect-ratio: 879 / 1142; object-fit: cover; object-position: top; }

.mt-hero-chip {
    position: absolute;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0.95rem 0.6rem 0.6rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    box-shadow: 0 18px 40px -18px rgba(14, 20, 16, 0.45);
    white-space: nowrap;
    animation: mtHeroFloat 6s ease-in-out infinite;
}
[dir="rtl"] .mt-hero-chip { padding: 0.6rem 0.6rem 0.6rem 0.95rem; }
.mt-hero-chip div { display: flex; flex-direction: column; line-height: 1.2; }
.mt-hero-chip strong { font-size: 0.82rem; color: var(--mt-ink); }
.mt-hero-chip div span { font-size: 0.7rem; color: var(--mt-text-muted); }
.mt-hero-chip-icon {
    width: 32px; height: 32px;
    border-radius: 10px;
    display: inline-grid; place-items: center;
    background: var(--mt-ink);
    color: #fff;
    flex: 0 0 auto;
}
.mt-hero-chip-icon .mud-icon-root { font-size: 1.05rem; }
.mt-hero-chip-icon.live { background: #E3F7EE; position: relative; }
.mt-hero-chip-icon.live::after {
    content: "";
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
    animation: mtPulse 2s ease-out infinite;
}
.mt-hero-chip-1 { top: 4%;  inset-inline-start: -2%; animation-delay: -1s; }
.mt-hero-chip-2 { top: 40%; inset-inline-end: -4%; animation-delay: -3s; }
.mt-hero-chip-2 .mt-hero-chip-icon { background: #0B2A6F; }
.mt-hero-chip-3 { bottom: 2%; inset-inline-end: 8%; animation-delay: -2s; }
.mt-hero-chip-3 .mt-hero-chip-icon { background: linear-gradient(135deg, #0F4C3A, #1B7A5C); }

@keyframes mtHeroFloat {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -10px; }
}

/* --- stats strip --- */
.mt-hero-banner .mt-hero-stats {
    max-width: none;
    margin-top: 4.5rem;
    padding: 1.6rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    box-shadow: 0 0 0 1px rgba(14, 20, 16, 0.05), 0 24px 50px -30px rgba(14, 20, 16, 0.35);
}
.mt-hero-banner .mt-hero-stat:not(:last-child)::after { background: rgba(14, 20, 16, 0.1); }
[dir="rtl"] .mt-hero-banner .mt-hero-stat:not(:last-child)::after { right: auto; left: 0; }

/* --- responsive --- */
@media (max-width: 1100px) {
    .mt-hero-grid { gap: 2.5rem; }
    .mt-hero-showcase { height: 460px; }
}
@media (max-width: 960px) {
    .mt-hero-banner { padding-top: 3rem; }
    .mt-hero-grid { grid-template-columns: 1fr; gap: 3rem; }
    .mt-hero-banner .mt-hero-inner { text-align: center; }
    .mt-hero-banner .mt-hero-subtitle { margin-inline: auto; }
    .mt-hero-banner .mt-hero-actions { justify-content: center; }
    .mt-hero-trust { margin: 0 auto; justify-content: center; text-align: start; }
    .mt-hero-showcase { height: 440px; max-width: 620px; margin: 0 auto; width: 100%; }
}
@media (max-width: 600px) {
    .mt-hero-showcase { height: 320px; }
    .mt-hero-shot { width: 82%; border-radius: 12px; }
    .mt-hero-shot-bar { padding: 5px 8px; }
    .mt-hero-shot-bar em { display: none; }
    .mt-hero-chip { padding: 0.45rem 0.7rem 0.45rem 0.45rem; border-radius: 12px; }
    .mt-hero-chip-icon { width: 26px; height: 26px; border-radius: 8px; }
    .mt-hero-chip strong { font-size: 0.72rem; }
    .mt-hero-chip div span { display: none; }
    .mt-hero-chip-1 { inset-inline-start: 0; }
    .mt-hero-chip-2 { inset-inline-end: 0; }
    .mt-hero-chip-3 { display: none; }
    .mt-hero-phone { width: 28%; border-radius: 18px; }
    .mt-hero-phone img { border-radius: 14px; }
    .mt-hero-trust { flex-direction: column; text-align: center; }
    .mt-hero-banner .mt-hero-stats { margin-top: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
    .mt-hero-chip, .mt-hero-phone { animation: none; }
}

/* No border or focus ring on any h1 (Blazor focuses the h1 after navigation) */
h1,
h1:focus,
h1:focus-visible,
h1:focus-within {
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Case study screen gallery */
.mt-case-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
    max-width: var(--mt-container);
    margin: 0 auto;
}
@media (max-width: 1100px) { .mt-case-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px)  { .mt-case-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem; } }
.mt-case-shot {
    display: flex;
    flex-direction: column;
    background: var(--mt-surface);
    border: 1px solid var(--mt-border);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: var(--mt-ink);
    transition: transform .25s var(--mt-ease), box-shadow .25s var(--mt-ease), border-color .25s var(--mt-ease);
}
.mt-case-shot:hover { transform: translateY(-3px); box-shadow: var(--mt-shadow-card-hover); border-color: var(--mt-emerald); }
.mt-case-shot-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--mt-bg-soft); border-bottom: 1px solid var(--mt-border); }
.mt-case-shot-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform .5s var(--mt-ease); }
.mt-case-shot:hover .mt-case-shot-img img { transform: scale(1.04); }
.mt-case-shot-cap { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.7rem 0.85rem 0.8rem; }
.mt-case-shot-cap strong { font-size: 0.86rem; font-weight: 600; line-height: 1.3; }
.mt-case-shot-cap em { font-style: normal; font-size: 0.72rem; color: var(--mt-emerald); letter-spacing: 0.04em; }

/* One font for every language: the Arabic font (IBM Plex Sans Arabic also covers Latin) */
body,
body *:not(.mt-mono):not(svg):not(i):not(.material-icons):not(.mud-icon-root):not(pre):not(code):not(kbd):not(.mt-mock-hex) {
    font-family: 'IBM Plex Sans Arabic', 'Cairo', system-ui, -apple-system, 'Segoe UI', sans-serif;
}


/* ===========================================================
   Image zoom viewer (lightbox)
   =========================================================== */
.mt-case-hero img, .mt-case-module-img img, .mt-case-phone img { cursor: zoom-in; }
.mt-case-module-img, .mt-case-hero { position: relative; }
.mt-case-module-img::after, .mt-case-hero::after {
    content: "";
    position: absolute;
    top: 12px; inset-inline-end: 12px;
    width: 36px; height: 36px;
    border-radius: 12px;
    background: rgba(14, 20, 16, 0.72) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'><path d='M15.5 14h-.8l-.3-.3A6.5 6.5 0 1 0 9.5 16a6.5 6.5 0 0 0 4.2-1.6l.3.3v.8l5 5 1.5-1.5-5-5zm-6 0a4.5 4.5 0 1 1 0-9 4.5 4.5 0 0 1 0 9zM10 7H9v2H7v1h2v2h1v-2h2V9h-2z'/></svg>") center / 20px no-repeat;
    backdrop-filter: blur(6px);
    opacity: 0;
    transform: scale(0.85);
    transition: opacity .25s var(--mt-ease), transform .25s var(--mt-ease);
    pointer-events: none;
}
.mt-case-module-img:hover::after, .mt-case-hero:hover::after { opacity: 1; transform: none; }

html.mt-lb-lock, html.mt-lb-lock body { overflow: hidden !important; }

.mt-lb {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    grid-template-rows: auto 1fr auto;
    color: #EEF2F8;
    font-family: 'IBM Plex Sans Arabic', 'Cairo', system-ui, sans-serif;
    opacity: 0;
    transition: opacity .22s var(--mt-ease);
}
.mt-lb[hidden] { display: none; }
.mt-lb.is-open { opacity: 1; }
.mt-lb-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 50% 40%, rgba(27, 122, 92, 0.18), transparent 70%),
        rgba(7, 10, 14, 0.9);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
}

/* top bar */
.mt-lb-top {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 14px 18px;
}
.mt-lb-meta { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.mt-lb-count {
    flex: 0 0 auto;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.78rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    direction: ltr;
}
.mt-lb-cap { font-size: 0.95rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0.92; }
.mt-lb-tools {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
    direction: ltr;
}
.mt-lb-tools button, .mt-lb-nav {
    display: inline-grid;
    place-items: center;
    min-width: 38px;
    height: 38px;
    padding: 0 8px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: 600 0.8rem/1 inherit;
    font-variant-numeric: tabular-nums;
    transition: background .18s var(--mt-ease), transform .18s var(--mt-ease);
}
.mt-lb-tools button:hover { background: rgba(255, 255, 255, 0.14); }
.mt-lb-tools button:active { transform: scale(0.94); }
.mt-lb-tools button:focus-visible, .mt-lb-nav:focus-visible, .mt-lb-thumb:focus-visible { outline: 2px solid #8fd3b0; outline-offset: 2px; }
.mt-lb-tools svg, .mt-lb-nav svg { width: 20px; height: 20px; fill: currentColor; }
.mt-lb-zoom { min-width: 58px !important; }
.mt-lb-close { background: rgba(255, 255, 255, 0.12) !important; }
.mt-lb-close:hover { background: #e5484d !important; }
.mt-lb-sep { width: 1px; height: 22px; background: rgba(255, 255, 255, 0.16); margin: 0 3px; }

/* stage */
.mt-lb-stage {
    position: relative;
    z-index: 1;
    overflow: hidden;
    display: grid;
    place-items: center;
    touch-action: none;
    cursor: zoom-in;
    user-select: none;
}
.mt-lb.is-zoomed .mt-lb-stage { cursor: grab; }
.mt-lb.is-grabbing .mt-lb-stage { cursor: grabbing; }
.mt-lb-img {
    max-width: none;
    border-radius: 12px;
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.08);
    background: #fff;
    transform-origin: center center;
    will-change: transform;
    transition: opacity .25s var(--mt-ease);
}
.mt-lb-img.is-animating { transition: transform .28s cubic-bezier(.2, .8, .2, 1), opacity .25s var(--mt-ease); }
.mt-lb-img.is-swapping { opacity: 0; }
.mt-lb.is-open .mt-lb-img { animation: mtLbIn .32s cubic-bezier(.2, .8, .2, 1); }
@keyframes mtLbIn { from { opacity: 0; scale: 0.96; } to { opacity: 1; scale: 1; } }

.mt-lb-spin {
    position: absolute;
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-top-color: #8fd3b0;
    animation: mtLbSpin .8s linear infinite;
    opacity: 0;
    transition: opacity .2s;
    pointer-events: none;
}
.mt-lb.is-loading .mt-lb-spin { opacity: 1; }
@keyframes mtLbSpin { to { transform: rotate(360deg); } }

/* side arrows */
.mt-lb-nav {
    position: absolute;
    z-index: 3;
    top: 50%;
    width: 52px;
    height: 52px;
    margin-top: -26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.mt-lb-nav:hover { background: rgba(255, 255, 255, 0.2); transform: scale(1.06); }
.mt-lb-nav svg { width: 26px; height: 26px; }
.mt-lb-prev { left: 18px; }
.mt-lb-next { right: 18px; }
.mt-lb[dir="rtl"] .mt-lb-prev { left: auto; right: 18px; }
.mt-lb[dir="rtl"] .mt-lb-next { right: auto; left: 18px; }
.mt-lb[dir="rtl"] .mt-lb-nav svg { transform: scaleX(-1); }
.mt-lb.is-single .mt-lb-nav, .mt-lb.is-single .mt-lb-strip { display: none; }

/* bottom: hint + thumbnail strip */
.mt-lb-bottom { position: relative; z-index: 2; padding: 8px 18px 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.mt-lb-hint { font-size: 0.75rem; opacity: 0.55; text-align: center; }
.mt-lb-strip {
    display: flex;
    gap: 8px;
    max-width: 100%;
    overflow-x: auto;
    padding: 6px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}
.mt-lb-thumb {
    flex: 0 0 auto;
    width: 84px;
    height: 54px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 9px;
    overflow: hidden;
    background: #1b2228;
    cursor: pointer;
    opacity: 0.55;
    transition: opacity .2s var(--mt-ease), border-color .2s var(--mt-ease), transform .2s var(--mt-ease);
}
.mt-lb-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.mt-lb-thumb:hover { opacity: 0.9; transform: translateY(-2px); }
.mt-lb-thumb.is-active { opacity: 1; border-color: #8fd3b0; box-shadow: 0 6px 16px -6px rgba(143, 211, 176, 0.7); }

@media (max-width: 760px) {
    .mt-lb-top { padding: 10px; flex-wrap: wrap; }
    .mt-lb-meta { width: 100%; }
    .mt-lb-tools { margin-inline-start: auto; }
    .mt-lb-tools button { min-width: 34px; height: 34px; }
    .mt-lb-tools [data-act="open"], .mt-lb-tools [data-act="full"], .mt-lb-tools .mt-lb-sep:nth-of-type(2) { display: none; }
    .mt-lb-nav { width: 42px; height: 42px; margin-top: -21px; }
    .mt-lb-prev { left: 8px; } .mt-lb-next { right: 8px; }
    .mt-lb[dir="rtl"] .mt-lb-prev { right: 8px; } .mt-lb[dir="rtl"] .mt-lb-next { left: 8px; }
    .mt-lb-hint { display: none; }
    .mt-lb-thumb { width: 64px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
    .mt-lb, .mt-lb-img, .mt-lb-img.is-animating, .mt-lb-thumb { transition: none !important; animation: none !important; }
}

/* Chat assistant: rich answers (lists, links) */
.mt-chat-msg-bubble .mt-chat-list { margin: 0.35rem 0; padding-inline-start: 1.15rem; }
.mt-chat-msg-bubble .mt-chat-list li { margin: 0.15rem 0; }
.mt-chat-msg-bubble a { color: var(--mt-emerald); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.mt-chat-msg.is-user .mt-chat-msg-bubble a { color: #fff; }

/* Visually hidden, still read by search engines and screen readers */
.mt-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* real MajidTek logo (navy artwork baked in): fill the tiles edge to edge */
.mt-brand-mark { overflow: hidden; padding: 0; }
.mt-brand-logo { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.mt-footer-brand .mt-brand-mark { background: #0B2A6F; }

/* === Chat: compact header, smaller text, taller window on big screens === */
.mt-chat-header { padding: 0.55rem 0.8rem; }
.mt-chat-header-id { gap: 0.55rem; }
.mt-chat-avatar { width: 28px; height: 28px; font-size: 0.8rem; }
.mt-chat-title { font-size: 0.86rem; line-height: 1.2; }
.mt-chat-status { font-size: 0.66rem; margin-top: 0; }
.mt-chat-close { width: 26px; height: 26px; border-radius: 7px; }

.mt-chat-body { padding: 0.85rem; gap: 0.75rem; scroll-behavior: smooth; }
.mt-chat-msg-avatar { width: 24px; height: 24px; font-size: 0.7rem; }
.mt-chat-msg-bubble { font-size: 0.8rem; line-height: 1.55; padding: 0.55rem 0.75rem; }
.mt-chat-msg-link { font-size: 0.74rem; }
.mt-chat-chip { font-size: 0.7rem; padding: 0.3rem 0.65rem; }
.mt-chat-input input { font-size: 0.8rem; }
.mt-chat-msg-content[dir="rtl"] .mt-chat-msg-bubble { text-align: right; }
.mt-chat-msg-content[dir="ltr"] .mt-chat-msg-bubble { text-align: left; }

/* use the room a large screen has */
@media (min-height: 760px) and (min-width: 700px) {
    .mt-chat-panel { width: min(420px, calc(100vw - 2rem)); height: min(700px, calc(100dvh - 3rem)); }
}
@media (min-height: 940px) and (min-width: 1200px) {
    .mt-chat-panel { width: 460px; height: min(840px, calc(100dvh - 3rem)); }
}
@media (min-height: 1150px) and (min-width: 1600px) {
    .mt-chat-panel { width: 500px; height: min(1000px, calc(100dvh - 3rem)); }
}
.mt-chat-send.is-empty { opacity: 0.45; }

/* === Chat launcher: the real logo in a navy tile, gold ring, chat badge, online dot === */
.mt-chat-launcher {
    width: 64px; height: 64px;
    padding: 0;
    border-radius: 22px;
    background: #0B2A6F;
    overflow: visible;
    box-shadow:
        0 0 0 2px rgba(243, 183, 43, 0.85),
        0 0 0 6px rgba(243, 183, 43, 0.14),
        0 18px 40px -12px rgba(11, 42, 111, 0.75);
    transition: transform 0.35s var(--mt-ease-out), box-shadow 0.35s var(--mt-ease-out);
}
.mt-chat-launcher:hover {
    background: #0B2A6F;
    transform: translateY(-3px) scale(1.05);
    box-shadow:
        0 0 0 2px #F3B72B,
        0 0 0 8px rgba(243, 183, 43, 0.2),
        0 24px 48px -12px rgba(11, 42, 111, 0.85);
}
.mt-chat-launcher:focus-visible { outline: 2px solid #F3B72B; outline-offset: 4px; }
.mt-chat-launcher-logo {
    width: 100%; height: 100%;
    border-radius: inherit;
    object-fit: cover;
    display: block;
}
.mt-chat-launcher-bubble {
    position: absolute;
    top: -8px; right: -8px; bottom: auto;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFE38A, #F3B72B 55%, #C98A12);
    color: #0B2A6F;
    border: 2px solid #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 6px 14px -4px rgba(201, 138, 18, 0.7);
}
.mt-chat-launcher-bubble svg { width: 14px; height: 14px; fill: currentColor; }
[dir="rtl"] .mt-chat-launcher-bubble { right: auto; left: -8px; }
.mt-chat-launcher-online {
    position: absolute;
    bottom: -3px; right: -3px;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: #22C55E;
    border: 2.5px solid #fff;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
    animation: mtOnlinePing 2.2s ease-out infinite;
}
[dir="rtl"] .mt-chat-launcher-online { right: auto; left: -3px; }
@keyframes mtOnlinePing {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
    80%, 100% { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); }
}
.mt-chat-launcher-pulse {
    inset: -7px;
    border-radius: 28px;
    border: 2px solid rgba(243, 183, 43, 0.7);
}

/* avatars show the logo too */
.mt-chat-avatar, .mt-chat-msg-avatar {
    background: #0B2A6F;
    overflow: hidden;
    padding: 0;
    border-radius: 9px;
    box-shadow: 0 0 0 1.5px rgba(243, 183, 43, 0.6);
}
.mt-chat-msg-avatar { border-radius: 7px; }
.mt-chat-avatar img, .mt-chat-msg-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (prefers-reduced-motion: reduce) {
    .mt-chat-launcher, .mt-chat-launcher-pulse, .mt-chat-launcher-online { animation: none; }
}

/* === Screenshot viewer on phones ===
   The grid tracks must not grow with the image: an auto column took the photo's own width
   (946px on a 375px phone), so "fit to screen" measured the stretched stage. */
.mt-lb {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
    touch-action: none;            /* no page scroll or browser zoom behind the viewer */
    overscroll-behavior: contain;
}
.mt-lb-stage { min-width: 0; min-height: 0; }
.mt-lb-strip { touch-action: pan-x; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.mt-lb-top { padding-top: max(10px, env(safe-area-inset-top)); }
.mt-lb-bottom { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
.mt-lb-img { -webkit-touch-callout: none; -webkit-user-select: none; }

@media (max-width: 760px) {
    .mt-lb-hint { display: block; font-size: 0.7rem; }
    .mt-lb-cap { font-size: 0.8rem; }
    .mt-lb-nav { opacity: 0.85; }
    .mt-lb.is-zoomed .mt-lb-nav { opacity: 0; pointer-events: none; }
}

/* === Language switching on phones ===
   top bar: a pill with the other language in its own script ("عربي" / "English");
   menu: an English | العربية switch with the current one highlighted */
.mt-lang-toggle { display: inline-flex; align-items: center; gap: 0.35rem; }
.mt-lang-name { display: none; }
.mt-nav-mobile-lang { display: none; }

@media (max-width: 900px) {
    .mt-nav-actions .mt-lang-toggle {
        display: inline-flex;
        height: 42px;
        padding: 0 0.85rem 0 0.7rem;
        border-radius: 999px;
        border: 1px solid rgba(14, 20, 16, 0.1);
        background: rgba(255, 255, 255, 0.6);
        color: var(--mt-ink);
        font-size: 0.86rem;
        font-weight: 600;
        letter-spacing: 0;
        white-space: nowrap;
    }
    .mt-nav-actions .mt-lang-toggle .mt-lang-code { display: none; }
    .mt-nav-actions .mt-lang-toggle .mt-lang-name { display: inline; }
    .mt-nav-actions .mt-lang-toggle .mud-icon-root { font-size: 1.05rem; opacity: 0.75; }
    .mt-nav-actions .mt-lang-toggle:active { transform: scale(0.97); }

    .mt-nav-mobile-lang { display: block; width: 100%; padding-top: 0.75rem; margin-top: 0.25rem; border-top: 1px solid rgba(14, 20, 16, 0.08); }
    .mt-nav-mobile-actions { border-top: 0; margin-top: 0; padding-top: 0.6rem; }

    .mt-lang-switch {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4px;
        padding: 4px;
        border-radius: 999px;
        background: rgba(14, 20, 16, 0.05);
        border: 1px solid rgba(14, 20, 16, 0.08);
    }
    .mt-nav .mt-nav-links .mt-lang-switch .mt-lang-option {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 40px;
        padding: 0 0.75rem;
        border-radius: 999px;
        font-size: 0.92rem;
        font-weight: 600;
        color: var(--mt-text-muted);
        background: transparent;
        text-decoration: none;
    }
    .mt-nav .mt-nav-links .mt-lang-switch a.mt-lang-option::after { display: none; }
    .mt-nav .mt-nav-links .mt-lang-switch a.mt-lang-option:hover { color: var(--mt-ink); background: rgba(255, 255, 255, 0.6); }
    .mt-nav .mt-nav-links .mt-lang-switch .mt-lang-option.is-current {
        background: #fff;
        color: var(--mt-ink);
        box-shadow: 0 4px 12px -6px rgba(14, 20, 16, 0.35), 0 0 0 1px rgba(14, 20, 16, 0.06);
    }
}
@media (max-width: 360px) {
    .mt-nav-actions .mt-lang-toggle .mud-icon-root { display: none; }
    .mt-nav-actions .mt-lang-toggle { padding: 0 0.7rem; }
}
/* the phone menu reaches the bottom corner: keep the chat button off it while the menu is open */
@media (max-width: 900px) {
    body:has(.mt-nav.is-open) .mt-chat-launcher { opacity: 0; pointer-events: none; transform: scale(0.8); }
}
