/* =========================================================
   CyberByAli — Light Cyber Theme · Bilingual (AR/EN)
   ========================================================= */

:root {
    /* Surfaces — pure white Apple-style */
    --bg:               #FFFFFF;
    --bg-tint:          #F5F5F7;
    --surface:          #FFFFFF;
    --surface-2:        #F5F5F7;
    --border:           #E5E5E7;
    --border-strong:    #C7C7CC;

    /* Text */
    --text:             #0B1220;
    --text-2:           #2A2F45;
    --muted:            #5E6783;
    --dim:              #8A93AE;

    /* Brand accent — Cyber Green (signature, fresh tech vibe) */
    --primary:          #00B86B;
    --primary-soft:     #14C97A;
    --primary-dark:     #00964F;
    --primary-50:       #E3FBEF;
    --primary-100:      #C7F4D9;
    --primary-glow:     rgba(0, 184, 107, 0.18);

    /* Secondary — Cyber Cyan (gradient end, electric tech) */
    --secondary:        #06B6D4;
    --secondary-soft:   #22D3EE;
    --secondary-50:     #ECFEFF;

    /* Cinema-mode accent — bright teal that pops on dark photo */
    --accent:           #5EEAD4;

    --warn:             #F59E0B;
    --danger:           #EF4444;

    /* Type */
    --font-ar:          'Cairo', 'Tajawal', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-ar-display:  'Cairo', 'Reem Kufi', 'Tajawal', sans-serif;
    --font-en:          'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-en-display:  'Inter', system-ui, sans-serif;
    --font-mono:        'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

    /* Layout */
    --container:        1200px;
    --radius-sm:        8px;
    --radius:           14px;
    --radius-lg:        22px;
    --radius-xl:        32px;

    /* Motion */
    --ease:             cubic-bezier(.22, 1, .36, 1);
    --t-fast:           .18s;
    --t-med:            .32s;
    --t-slow:           .55s;

    /* Shadows */
    --shadow-sm:        0 1px 2px rgba(11,18,32,.04), 0 1px 3px rgba(11,18,32,.03);
    --shadow:           0 4px 14px rgba(11,18,32,.06), 0 2px 4px rgba(11,18,32,.04);
    --shadow-lg:        0 20px 50px -10px rgba(11,18,32,.12), 0 8px 16px rgba(11,18,32,.05);
    --shadow-glow:      0 0 0 1px var(--primary-100), 0 12px 32px -8px var(--primary-glow);
}

/* RESET / BASE */
*, *::before, *::after { box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    /* iOS safe area handling */
    --safe-top: env(safe-area-inset-top);
    --safe-bottom: env(safe-area-inset-bottom);
    --safe-left: env(safe-area-inset-left);
    --safe-right: env(safe-area-inset-right);
}
body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-ar);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    position: relative;
    -webkit-touch-callout: none;
    overscroll-behavior-y: none;
}
html[data-lang="en"] body { font-family: var(--font-en); }

/* Language switch */
html[data-lang="ar"] [lang="en"] { display: none !important; }
html[data-lang="en"] [lang="ar"] { display: none !important; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: rgba(0,184,107,.12); }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; -webkit-tap-highlight-color: rgba(0,184,107,.12); }
input, select, textarea, button { -webkit-touch-callout: default; }
ul { list-style: none; padding: 0; margin: 0; }
::selection { background: var(--primary); color: #fff; }

/* Better focus ring (keyboard-only, not on click) */
:focus { outline: none; }
:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
    border-radius: 4px;
}
button:focus-visible, a:focus-visible, .btn:focus-visible {
    outline-offset: 4px;
}

/* Touch device: disable sticky :hover by reverting hover-only effects */
@media (hover: none) {
    .nav-links a:hover,
    .lang-toggle:hover,
    .btn-primary:hover,
    .btn-ghost:hover,
    .mission-card:hover,
    .expertise-card:hover,
    .media-card:hover,
    .follow-btn:hover,
    .contact-pill:hover,
    .timeline-item:hover,
    .edu-row:hover,
    .cert-card:hover,
    .marquee-logo:hover img,
    .card-link:hover,
    .service-card:hover,
    .form-field input:hover,
    .form-field select:hover,
    .form-field textarea:hover {
        transform: none;
        box-shadow: var(--shadow-sm);
    }
}

/* Tap target sizing — min 44x44 for iOS Human Interface Guidelines */
@media (hover: none) {
    .nav-links a,
    .lang-toggle,
    .nav-toggle,
    .contact-pill,
    .social-link,
    .card-link {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
}

/* BACKGROUND LAYERS */
.bg-grid {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background-image:
        linear-gradient(to right, rgba(11,18,32,.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(11,18,32,.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%);
}
.bg-glow {
    position: fixed;
    z-index: -1;
    pointer-events: none;
    filter: blur(80px);
    opacity: .55;
    border-radius: 50%;
}
.bg-glow-1 {
    top: -10%; right: -5%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 65%);
}
.bg-glow-2 {
    top: 30%; left: -10%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(6,182,212,.16) 0%, transparent 65%);
}

/* LAYOUT */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; position: relative; }
.section + .section { padding-top: 16px; }
@media (max-width: 768px) { .section { padding: 56px 0; } }

/* NAVIGATION */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    /* Frosted white at all times — clean nav-bar feel like the scrolled state */
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: none;
    transition: background var(--t-med) var(--ease);
    padding-top: env(safe-area-inset-top);
}
.nav.scrolled {
    background: rgba(255, 255, 255, 0.92);
    border-bottom: none;
}
.nav-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 78px;
}
/* Lock every direct child of the nav to the same height so they all sit on one baseline */
.nav-inner > * { display: inline-flex; align-items: center; height: 42px; }
.nav-inner > .nav-actions { height: auto; }
.nav-actions > * { height: 42px; }

/* Mobile: compact nav — half the vertical footprint */
@media (max-width: 880px) {
    .nav-inner {
        padding: 10px 18px;
        min-height: 58px;
        gap: 12px;
    }
    .nav-inner > *,
    .nav-actions > * { height: 38px; }
    .nav-toggle,
    .lang-toggle { width: 38px !important; height: 38px !important; }
}
.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
}
.logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    box-shadow: 0 6px 14px -4px var(--primary-glow);
    position: relative;
    overflow: hidden;
}
.logo-mark::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 9px;
    background: linear-gradient(135deg, rgba(255,255,255,.3), transparent 60%);
}
.logo-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255,255,255,.25);
    position: relative;
    z-index: 1;
}
.logo-text { display: inline-flex; align-items: baseline; }
.logo-cursor {
    color: var(--primary);
    animation: blink 1.1s steps(2, end) infinite;
    margin-inline-start: 2px;
}
@keyframes blink {
    0%, 50% { opacity: 1; }
    50.01%, 100% { opacity: 0; }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
}
/* Push the actions cluster (EN + book button) to the opposite end of the nav */
.nav-actions { margin-inline-start: auto; }
.nav-links a {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-2);
    transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.nav-links a:hover { background: var(--surface-2); color: var(--text); }
.nav-links a.active {
    color: var(--text);
    background: var(--surface-2);
    position: relative;
}
.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 14px;
    right: 14px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.nav-actions { display: flex; align-items: center; gap: 10px; }

.lang-toggle {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--border-strong);
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all var(--t-fast) var(--ease);
}
.lang-toggle:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }
html[data-lang="ar"] .lang-toggle .when-en,
html[data-lang="en"] .lang-toggle .when-ar { display: none; }

.nav-toggle { display: none; }
.nav-toggle-bar {
    display: block;
    width: 18px;
    height: 1.8px;
    background: var(--text);
    border-radius: 2px;
    margin: 0;
    transition: transform var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
}

@media (max-width: 880px) {
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 5px;
        width: 42px;
        height: 42px;
        padding: 0;
        order: 3;
        background: rgba(255, 255, 255, 0.7);
        border: 1px solid var(--border-strong);
        border-radius: 12px;
        cursor: pointer;
        transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
    }
    .nav-toggle:hover {
        background: rgba(255, 255, 255, 0.98);
        border-color: var(--text);
    }
    .nav-toggle:active { transform: scale(0.96); }
    .nav-toggle[aria-expanded="true"] {
        background: var(--text);
        border-color: var(--text);
    }
    .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: #fff; }
    .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(6.8px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
    .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-6.8px) rotate(-45deg); }
    .nav-links {
        list-style: none;
        order: 4;
        position: fixed;
        top: calc(58px + env(safe-area-inset-top));
        left: 0;
        right: 0;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: 0 20px;
        background: rgba(255, 255, 255, 0.98);
        -webkit-backdrop-filter: saturate(180%) blur(24px);
        backdrop-filter: saturate(180%) blur(24px);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 24px 40px -16px rgba(11, 18, 32, 0.10);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height .35s var(--ease), opacity .25s var(--ease), padding .25s var(--ease);
        z-index: 99;
    }
    .nav-links.open {
        max-height: 80vh;
        opacity: 1;
        padding: 24px 20px 32px;
    }
    .nav-links li { list-style: none; }
    .nav-links a {
        display: block;
        padding: 18px 8px;
        font-size: 17px;
        font-weight: 600;
        color: var(--text);
        border-bottom: 1px solid var(--border);
    }
    .nav-links li:last-child a { border-bottom: none; }
    html[data-lang="ar"] .nav-links a { font-family: var(--font-ar); font-weight: 700; }
    .nav-actions .nav-cta { display: none; }
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 999px;
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: -0.005em;
    transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
    line-height: 1;
    white-space: nowrap;
    border: 1px solid transparent;
}
.btn-lg { padding: 14px 26px; font-size: 15px; }

.btn-primary {
    background: var(--text);
    color: #fff;
    box-shadow: 0 8px 24px -8px rgba(11,18,32,.3);
}
.btn-primary:hover {
    background: #1A2238;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px -10px rgba(11,18,32,.4);
}
.btn-ghost {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--text); transform: translateY(-1px); }
.btn-icon { flex-shrink: 0; }

html[dir="rtl"] .arrow-ltr,
html[dir="ltr"] .arrow-rtl { display: none; }

/* PILL HEADER */
.pill-header {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 12.5px;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0.04em;
    text-transform: lowercase;
    box-shadow: var(--shadow-sm);
}
.pill-header-light {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.18);
    color: #fff;
}
.pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-50);
    position: relative;
}
.pill-dot::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1px solid var(--primary);
    animation: pulseDot 2s var(--ease) infinite;
    opacity: 0;
}
@keyframes pulseDot {
    0% { transform: scale(.6); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

/* SECTION TITLE */
.section-title {
    font-family: var(--font-en-display);
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin: 18px 0 14px;
    color: var(--text);
}
html[data-lang="ar"] .section-title {
    font-family: var(--font-ar-display);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.25;
}
.section-title-sm { font-size: clamp(26px, 3.4vw, 38px); }
.section-title .accent {
    background: linear-gradient(120deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.section-lead {
    font-size: clamp(16px, 1.4vw, 19px);
    color: var(--muted);
    max-width: 720px;
    margin: 0 0 48px;
    line-height: 1.7;
}

/* HERO */
.hero { padding: 56px 0 80px; position: relative; }

/* Cursor-following glow (desktop, hover-capable only) */
@media (hover: hover) and (pointer: fine) {
    .hero::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(circle 480px at var(--mx, 50%) var(--my, 30%),
                    rgba(0, 184, 107, 0.10) 0%,
                    rgba(6, 182, 212, 0.04) 35%,
                    transparent 70%);
        pointer-events: none;
        z-index: 0;
        transition: background-position .15s var(--ease);
    }
    .hero > .container { position: relative; z-index: 1; }
}
.hero-container {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: center;
}
@media (max-width: 880px) {
    /* Mobile: photo behind, text overlaid on top (z-axis stack) */
    .hero {
        position: relative;
        overflow: hidden;
        padding: 32px 0 48px;
        min-height: 88dvh;
    }
    .hero-container {
        grid-template-columns: 1fr;
        gap: 0;
        position: relative;
        min-height: 76dvh;
    }
    .hero-text {
        order: 1;
        grid-column: 1;
        grid-row: 1;
        position: relative;
        z-index: 3;
        padding: 24px 0;
        align-self: center;
    }
    .hero-photo {
        order: 2;
        grid-column: 1;
        grid-row: 1;
        position: relative;
        z-index: 1;
        max-width: 100%;
        width: 100%;
        align-self: stretch;
        justify-self: center;
    }
    .hero-photo .photo-frame {
        max-width: 520px;
        margin: 0 auto;
        opacity: 0.32;
        filter: saturate(0.85);
    }
    .hero-photo .photo-corner { display: none; }
    .hero-photo .photo-badge {
        opacity: 1;
        z-index: 5;
    }
    /* Photo card opacity stays low so dark text reads cleanly on top */
}

.hero-photo { position: relative; }

.photo-frame {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-xl);
    background: linear-gradient(160deg, var(--primary-50) 0%, var(--secondary-50) 100%);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.photo-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(0,184,107,.07) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0,184,107,.07) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(circle at 50% 60%, #000 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at 50% 60%, #000 40%, transparent 80%);
}
.photo-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 18px 30px rgba(11,18,32,.18));
    z-index: 1;
}
.photo-corner {
    position: absolute;
    width: 26px;
    height: 26px;
    border: 2px solid var(--text);
    z-index: 2;
}
.photo-corner-tl { top: 16px; left: 16px; border-right: 0; border-bottom: 0; border-top-left-radius: 8px; }
.photo-corner-tr { top: 16px; right: 16px; border-left: 0; border-bottom: 0; border-top-right-radius: 8px; }
.photo-corner-bl { bottom: 16px; left: 16px; border-right: 0; border-top: 0; border-bottom-left-radius: 8px; }
.photo-corner-br { bottom: 16px; right: 16px; border-left: 0; border-top: 0; border-bottom-right-radius: 8px; }
.photo-badge {
    position: absolute;
    bottom: 22px;
    inset-inline-start: 22px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(10px);
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    z-index: 3;
    box-shadow: var(--shadow);
}
.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-50);
    animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .6; transform: scale(.85); }
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 24px;
    padding: 7px 16px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}
.hero-kicker .prompt { color: var(--primary); font-weight: 700; }

.hero-title {
    font-family: var(--font-en-display);
    font-size: clamp(42px, 6.5vw, 84px);
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.035em;
    margin: 0 0 28px;
    color: var(--text);
}
html[data-lang="ar"] .hero-title {
    font-family: var(--font-ar-display);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.2;
    font-size: clamp(40px, 6vw, 76px);
}
.title-line { display: block; }
.title-accent {
    background: linear-gradient(120deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-divider {
    margin: 0 0 24px;
    height: 1px;
    background: var(--border);
    max-width: 320px;
    position: relative;
}
.hero-divider span {
    position: absolute;
    inset-inline-end: 0;
    top: -3px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-50);
}

.hero-tagline {
    font-size: clamp(15.5px, 1.3vw, 18px);
    line-height: 1.75;
    color: var(--muted);
    max-width: 580px;
    margin: 0 0 40px;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 48px; }

.hero-meta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.meta-item { display: flex; flex-direction: column; gap: 2px; }
.meta-num {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}
.meta-label { font-size: 12px; color: var(--muted); font-weight: 500; }
.meta-divider { width: 1px; height: 28px; background: var(--border); }

@media (max-width: 540px) {
    .hero-meta { gap: 12px; }
    .meta-divider { display: none; }
    .meta-item {
        flex: 1 0 calc(50% - 12px);
        padding: 10px 14px;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius);
    }
    .meta-num { font-size: 18px; }
}

/* MARQUEE — trusted by */
.section-marquee {
    padding: 56px 0;
    overflow: hidden;
}
.marquee-header {
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
}

.marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 80px;
    width: max-content;
    animation: marquee-scroll 55s linear infinite;
    will-change: transform;
}
.marquee:hover .marquee-track { animation-play-state: paused; }

@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
html[dir="rtl"] .marquee-track {
    animation-name: marquee-scroll-rtl;
}
@keyframes marquee-scroll-rtl {
    from { transform: translateX(0); }
    to   { transform: translateX(50%); }
}

.marquee-logo {
    flex: 0 0 auto;
    height: 88px;
    display: grid;
    place-items: center;
    padding: 0 8px;
}
.marquee-logo img {
    max-height: 88px;
    max-width: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform var(--t-med) var(--ease), filter var(--t-med) var(--ease);
}
.marquee-logo:hover img {
    transform: scale(1.08);
    filter: drop-shadow(0 6px 14px rgba(11,18,32,.12));
}

@media (max-width: 768px) {
    .marquee-track { gap: 48px; animation-duration: 45s; }
    .marquee-logo { height: 64px; }
    .marquee-logo img { max-height: 64px; max-width: 150px; }
}

/* MISSION */
.section-mission { text-align: center; }
.section-mission .pill-header { margin: 0 auto; }
.section-mission .section-title { text-align: center; }
.section-mission .section-lead { margin-inline: auto; text-align: center; }

.mission-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 16px;
}
@media (max-width: 768px) { .mission-cards { grid-template-columns: 1fr; } }

.mission-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: start;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
    position: relative;
    overflow: hidden;
}
.mission-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-50), transparent 60%);
    opacity: 0;
    transition: opacity var(--t-med) var(--ease);
    pointer-events: none;
}
.mission-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-100);
    box-shadow: var(--shadow);
}
.mission-card:hover::before { opacity: 1; }

.mission-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--primary-50);
    color: var(--primary);
    display: grid;
    place-items: center;
    position: relative;
    z-index: 1;
}
.mission-label {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
    text-transform: lowercase;
    letter-spacing: 0.04em;
    position: relative; z-index: 1;
}
.mission-text {
    font-family: var(--font-en-display);
    font-size: 26px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
    position: relative; z-index: 1;
}
html[data-lang="ar"] .mission-text {
    font-family: var(--font-ar-display);
    font-weight: 700;
}

/* EXPERTISE */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 36px;
}
@media (max-width: 880px) { .expertise-grid { grid-template-columns: 1fr; } }

.expertise-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
    position: relative;
    overflow: hidden;
}
.expertise-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-med) var(--ease);
}
html[dir="rtl"] .expertise-card::before { transform-origin: right; }
.expertise-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-100);
    box-shadow: var(--shadow);
}
.expertise-card:hover::before { transform: scaleX(1); }

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 12px;
}
.card-tag {
    padding: 4px 10px;
    background: var(--primary-50);
    color: var(--primary-dark);
    border-radius: 999px;
    font-weight: 600;
}
.card-id { color: var(--dim); font-weight: 500; }
.card-title {
    font-family: var(--font-en-display);
    font-size: 34px;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin: 0;
    color: var(--text);
}
html[data-lang="ar"] .card-title {
    font-family: var(--font-ar-display);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.2;
}
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.card-tags li {
    padding: 5px 11px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 12.5px;
    color: var(--text-2);
    font-weight: 500;
}
.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 0 0;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-dark);
    border-top: 1px dashed var(--border);
    transition: gap var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.card-link:hover { gap: 12px; color: var(--text); }

/* ABOUT */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}
@media (max-width: 880px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } }

.about-lead {
    margin: 18px 0 24px;
    font-size: 16px;
    color: var(--muted);
    line-height: 1.8;
}
.about-title {
    font-family: var(--font-en-display);
    font-size: clamp(28px, 3.5vw, 42px);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin: 0 0 24px;
    color: var(--text);
}
html[data-lang="ar"] .about-title {
    font-family: var(--font-ar-display);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.4;
}
.about-title .accent {
    background: linear-gradient(120deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.about-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.about-chip {
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-2);
}
.about-chip-primary { background: var(--text); color: #fff; border-color: var(--text); }

.about-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.about-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}
.about-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}
.about-card-head > div { display: flex; flex-direction: column; }
.about-card-head strong { font-family: var(--font-mono); font-size: 14px; font-weight: 600; }
.about-card-logo {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: grid;
    place-items: center;
    box-shadow: 0 4px 10px -2px var(--primary-glow);
}
.about-card-logo .logo-dot { width: 12px; height: 12px; }
.about-card-body {
    font-size: 15px;
    color: var(--text-2);
    line-height: 1.75;
    margin: 0 0 16px;
}
.about-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.dim { color: var(--dim); font-size: 12.5px; }
.opacity-50 { opacity: .65; }

.kbd {
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 600;
    padding: 4px 9px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-bottom-width: 2px;
    border-radius: 6px;
    color: var(--text-2);
    letter-spacing: 0.02em;
}

/* SERVICES */
.services-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 18px;
    margin-top: 36px;
}
@media (max-width: 880px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
    overflow: hidden;
    transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.service-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.service-card-feature {
    background: linear-gradient(160deg, var(--text) 0%, #0F1A33 100%);
    border-color: var(--text);
    color: #fff;
}
.service-card-feature .service-desc { color: #C9D1E5; }
.service-card-feature .service-list li { color: #C9D1E5; border-color: rgba(255,255,255,.12); }
.service-card-feature .service-list li::before { background: var(--primary); }
.service-card-feature .btn-primary { background: var(--primary); color: var(--text); }
.service-card-feature .btn-primary:hover { background: var(--primary-soft); }
.service-card-feature::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    pointer-events: none;
}

.service-num {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.1em;
}
.service-card-feature .service-num { color: var(--primary); }

.service-title {
    font-family: var(--font-en-display);
    font-size: clamp(22px, 2.5vw, 28px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0;
}
html[data-lang="ar"] .service-title {
    font-family: var(--font-ar-display);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.35;
}
.service-desc { color: var(--muted); font-size: 15px; line-height: 1.7; margin: 0; }

.service-list { display: flex; flex-direction: column; gap: 0; }
.service-list li {
    padding: 12px 0;
    padding-inline-start: 22px;
    border-top: 1px dashed var(--border);
    font-size: 14.5px;
    color: var(--text-2);
    position: relative;
}
.service-list li::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--primary);
    transform: translateY(-50%) rotate(45deg);
}
.service-list li:last-child { border-bottom: 1px dashed var(--border); }
.service-card .btn { align-self: flex-start; margin-top: 6px; }

/* TIMELINE */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 36px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    overflow: hidden;
}
.timeline-item {
    padding: 22px 26px;
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 18px;
    align-items: start;
    transition: background var(--t-fast) var(--ease);
    border-bottom: 1px solid var(--border);
}
.timeline-item:last-child { border-bottom: 0; }
.timeline-item:hover { background: var(--surface-2); }
.timeline-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: contain;
    background: var(--surface-2);
    border: 1px solid var(--border);
    padding: 6px;
}
.timeline-logo-brand {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-color: transparent;
    display: grid;
    place-items: center;
    padding: 0;
    box-shadow: 0 4px 10px -2px var(--primary-glow);
}
.timeline-logo-brand .logo-dot { width: 14px; height: 14px; }
.timeline-role { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.timeline-role strong { font-size: 16px; font-weight: 700; }
.timeline-role .dim { font-family: var(--font-mono); font-size: 12.5px; }
.timeline-body p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.65; }

/* CREDENTIALS */
.credentials-grid {
    display: flex;
    flex-direction: column;
    gap: 56px;
}
@media (max-width: 880px) { .credentials-grid { gap: 40px; } }
.credentials-col > .pill-header { margin-bottom: 18px; }
.edu-list, .cert-grid { display: grid; gap: 16px; }
.cert-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 880px) { .cert-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .cert-grid { grid-template-columns: 1fr; } }

.edu-row, .cert-card {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 20px;
    align-items: center;
    padding: 26px 30px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
    min-height: 112px;
}
.edu-row:hover, .cert-card:hover {
    border-color: var(--primary-100);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px -14px rgba(11, 18, 32, .14);
}
.edu-row img, .cert-card img {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: var(--surface-2);
    padding: 8px;
    border: 1px solid var(--border);
    object-fit: contain;
}
.edu-row > div, .cert-card > div {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.edu-row strong, .cert-card > div > span:first-child {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text);
    letter-spacing: -.005em;
}
html[data-lang="ar"] .edu-row strong,
html[data-lang="ar"] .cert-card > div > span:first-child {
    font-weight: 700;
    font-size: 18px;
    line-height: 1.55;
    letter-spacing: 0;
}
.cert-card .dim, .edu-row .dim {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.55;
}
html[data-lang="en"] .cert-card .dim,
html[data-lang="en"] .edu-row .dim {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: .02em;
}
html[data-lang="ar"] .cert-card .dim,
html[data-lang="ar"] .edu-row .dim {
    font-family: var(--font-ar);
    font-size: 14px;
    line-height: 1.6;
    letter-spacing: 0;
}

/* CERT MARQUEE — auto-scrolling carousel */
.cert-marquee {
    position: relative;
    overflow: hidden;
    padding: 14px 0;
    margin-top: 10px;
    mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}
.cert-marquee-track {
    display: flex;
    gap: 14px;
    align-items: stretch;
    width: max-content;
    animation: certMarqueeScroll 60s linear infinite;
    will-change: transform;
}
.cert-marquee-track:hover { animation-play-state: paused; }
.cert-marquee-track .cert-card {
    width: 340px;
    min-width: 340px;
    flex-shrink: 0;
    margin: 0;
}
@keyframes certMarqueeScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
html[dir="rtl"] .cert-marquee-track { animation-name: certMarqueeScrollRtl; }
@keyframes certMarqueeScrollRtl {
    from { transform: translateX(0); }
    to   { transform: translateX(50%); }
}
@media (max-width: 540px) {
    .cert-marquee-track .cert-card { width: 280px; min-width: 280px; }
    .cert-marquee-track { animation-duration: 45s; }
}
@media (prefers-reduced-motion: reduce) {
    .cert-marquee-track { animation: none; }
}

/* MEDIA */
.media-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 36px;
}
@media (max-width: 768px) { .media-grid { grid-template-columns: 1fr; } }

.media-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
    display: flex;
    flex-direction: column;
}
.media-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.media-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--text) 0%, #1A2238 100%);
    overflow: hidden;
    isolation: isolate;
}
.media-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s var(--ease);
    z-index: 0;
}
.media-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11,18,32,0) 45%, rgba(11,18,32,0.55) 100%);
    z-index: 1;
    pointer-events: none;
}
.media-card:hover .media-thumb img { transform: scale(1.06); }

.media-play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.94);
    color: var(--text);
    border-radius: 50%;
    z-index: 2;
    transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
    box-shadow: 0 10px 28px rgba(11, 18, 32, 0.4);
}
.media-play svg { margin-inline-start: 3px; }
.media-card:hover .media-play {
    background: var(--primary);
    color: #fff;
    transform: scale(1.08);
}

.media-badge {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    padding: 6px 12px;
    background: rgba(11, 18, 32, 0.82);
    color: #fff;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    backdrop-filter: blur(8px);
    z-index: 2;
    letter-spacing: 0.02em;
}
html[data-lang="ar"] .media-badge { font-family: var(--font-ar); font-weight: 600; font-size: 12px; }

.media-duration {
    position: absolute;
    bottom: 12px;
    inset-inline-end: 12px;
    padding: 5px 10px;
    background: rgba(11, 18, 32, 0.82);
    color: #fff;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    backdrop-filter: blur(8px);
    z-index: 2;
}

.media-info { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 6px; }
.media-info strong { font-size: 18px; font-weight: 700; line-height: 1.35; color: var(--text); }
html[data-lang="ar"] .media-info strong { font-size: 19px; }
.media-info .dim { font-size: 13px; line-height: 1.5; }

/* FOLLOW */
.follow-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 36px;
    align-items: center;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.follow-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--primary-50) 0%, transparent 50%, var(--secondary-50) 100%);
    z-index: -1;
}
@media (max-width: 880px) { .follow-card { grid-template-columns: 1fr; padding: 28px; } }
.follow-text .section-title { margin-top: 14px; }
.follow-actions { display: flex; flex-direction: column; gap: 10px; }
.follow-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--t-fast) var(--ease);
}
.follow-btn:hover {
    background: var(--surface);
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}
.follow-btn svg { color: var(--text); flex-shrink: 0; }
.follow-btn > span { display: flex; flex-direction: column; gap: 1px; line-height: 1.3; }
.follow-btn strong { font-family: var(--font-mono); font-size: 15px; font-weight: 600; }

/* CTA SCHEDULE */
.cta-card {
    background: linear-gradient(160deg, var(--text) 0%, #0F1A33 100%);
    color: #fff;
    border-radius: var(--radius-xl);
    padding: 56px 48px;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 36px;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 36px 36px;
    pointer-events: none;
}
.cta-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}
@media (max-width: 880px) { .cta-card { grid-template-columns: 1fr; padding: 36px 28px; } }

.cta-text { position: relative; z-index: 1; }
.cta-text .pill-header { color: rgba(255,255,255,.85); }
.cta-title {
    font-family: var(--font-en-display);
    font-size: clamp(34px, 4.5vw, 54px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin: 18px 0 14px;
}
html[data-lang="ar"] .cta-title {
    font-family: var(--font-ar-display);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.3;
}
.cta-title .accent {
    background: linear-gradient(120deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.cta-lead { color: #C9D1E5; font-size: 16px; line-height: 1.75; margin: 0; max-width: 480px; }
.cta-buttons { display: flex; flex-direction: column; gap: 10px; position: relative; z-index: 1; }
.cta-card .btn-primary { background: var(--primary); color: var(--text); font-weight: 700; }
.cta-card .btn-primary:hover { background: var(--primary-soft); transform: translateY(-1px); }
.cta-card .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.25); }
.cta-card .btn-ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.5); }

/* CONTACT FORM — clean single-column */
.section-form { padding-top: 56px; padding-bottom: 56px; }

.form-container {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 24px;
}

.form-head {
    text-align: center;
    margin-bottom: 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.form-title {
    font-family: var(--font-en-display);
    font-size: clamp(28px, 3.4vw, 40px);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin: 4px 0 0;
    color: var(--text);
}
html[data-lang="ar"] .form-title {
    font-family: var(--font-ar-display);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.4;
}
.form-title .accent {
    background: linear-gradient(120deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.form-lead {
    color: var(--muted);
    font-size: 15.5px;
    line-height: 1.7;
    margin: 0;
    max-width: 520px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
    position: relative;
}
.contact-form::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
    letter-spacing: 0.02em;
    text-align: start;
}
html[data-lang="ar"] .form-label { font-family: var(--font-ar); font-weight: 700; font-size: 14px; }

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font: inherit;
    font-size: 15px;
    color: var(--text);
    line-height: 1.4;
    transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
    appearance: none;
    -webkit-appearance: none;
    font-family: inherit;
}
.form-field textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}
.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover {
    border-color: var(--border-strong);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--surface);
    box-shadow: 0 0 0 4px var(--primary-50);
}

/* Custom select arrow */
.form-field select {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%235E6783' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 1l5 5 5-5'/></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}
html[dir="rtl"] .form-field select {
    background-position: left 16px center;
    padding-right: 16px;
    padding-left: 40px;
}

/* Honeypot — invisible to humans */
.form-honey {
    position: absolute !important;
    width: 1px; height: 1px;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.form-submit {
    margin-top: 6px;
    width: 100%;
    justify-content: center;
}
.form-submit.is-loading { opacity: 0.7; cursor: wait; }
.form-submit.is-loading .btn-icon { animation: spin 0.9s linear infinite; }
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.form-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding-top: 4px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--dim);
}
html[data-lang="ar"] .form-trust { font-family: var(--font-ar); font-weight: 500; font-size: 12.5px; }
.form-trust svg { color: var(--primary); flex-shrink: 0; }

.form-success {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: var(--primary-50);
    border: 1px solid var(--primary-100);
    border-radius: var(--radius);
    color: var(--primary-dark);
}
.form-success[hidden] { display: none !important; }
.form-success svg { color: var(--primary); flex-shrink: 0; }
.form-success > span { display: flex; flex-direction: column; gap: 2px; line-height: 1.4; }
.form-success strong { color: var(--text); font-weight: 700; }

@media (max-width: 540px) {
    .contact-form { padding: 24px; gap: 16px; }
    .form-field input,
    .form-field select,
    .form-field textarea { padding: 12px 14px; font-size: 16px; /* prevents iOS zoom */ }
}

/* CONTACT */
.section-contact { padding-top: 24px; }
.contact-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.contact-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 13.5px;
    color: var(--text-2);
    transition: all var(--t-fast) var(--ease);
}
.contact-pill:hover {
    border-color: var(--primary);
    color: var(--text);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}
.contact-pill svg { color: var(--primary); flex-shrink: 0; }

/* EXPLORE — home page "what's next" panel */
.section-explore {
    padding: 72px 0 96px;
    text-align: center;
}
.section-explore .pill-header { margin: 0 auto; }
.section-explore .section-title { margin: 14px auto 36px; }

.explore-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    text-align: start;
}
@media (max-width: 960px) { .explore-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .explore-grid { grid-template-columns: 1fr; gap: 12px; } }

.explore-card {
    position: relative;
    padding: 24px 22px 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
    overflow: hidden;
}
.explore-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-med) var(--ease);
}
html[dir="rtl"] .explore-card::before { transform-origin: right; }
@media (hover: hover) {
    .explore-card:hover {
        transform: translateY(-3px);
        border-color: var(--primary-100);
        box-shadow: var(--shadow);
    }
    .explore-card:hover::before { transform: scaleX(1); }
    .explore-card:hover .explore-arrow { color: var(--primary); transform: translateX(0); }
}
html[dir="rtl"] @media (hover: hover) { .explore-card:hover .explore-arrow { transform: translateX(0); } }

.explore-num {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--dim);
    letter-spacing: 0.08em;
}
.explore-title {
    font-family: var(--font-en-display);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--text);
}
html[data-lang="ar"] .explore-title {
    font-family: var(--font-ar-display);
    font-weight: 700;
    letter-spacing: 0;
    font-size: 23px;
}
.explore-desc {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
    flex: 1;
}
.explore-arrow {
    color: var(--text-2);
    margin-top: 6px;
    transition: color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
    align-self: end;
}

.explore-card-cta {
    background: linear-gradient(160deg, var(--text) 0%, #0F1A33 100%);
    border-color: var(--text);
    color: #fff;
}
.explore-card-cta .explore-num { color: var(--primary); }
.explore-card-cta .explore-title { color: #fff; }
.explore-card-cta .explore-desc { color: #C9D1E5; }
.explore-card-cta .explore-arrow { color: var(--primary); }
.explore-card-cta::before { transform: scaleX(1); }

/* 404 PAGE */
.error-section {
    min-height: calc(100vh - 200px);
    min-height: calc(100dvh - 200px);
    display: grid;
    place-items: center;
    padding: 60px 0;
    position: relative;
}
.error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
    max-width: 640px;
}
.error-code {
    display: flex;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: clamp(96px, 16vw, 200px);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.04em;
    margin-bottom: 8px;
    color: var(--text);
}
.error-digit { display: inline-block; }
.error-digit-accent {
    background: linear-gradient(120deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: errorPulse 2.5s ease-in-out infinite;
}
@keyframes errorPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
    .error-digit-accent { animation: none; }
}

.error-title {
    font-family: var(--font-en-display);
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin: 0;
    color: var(--text);
}
html[data-lang="ar"] .error-title {
    font-family: var(--font-ar-display);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.3;
}
.error-title .accent {
    background: linear-gradient(120deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.error-lead {
    font-size: 16px;
    line-height: 1.7;
    color: var(--muted);
    margin: 0 0 8px;
    max-width: 480px;
}
.error-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 8px;
}
.error-links {
    display: flex;
    gap: 8px 12px;
    flex-wrap: wrap;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 13.5px;
    color: var(--muted);
    margin-top: 4px;
}
html[data-lang="ar"] .error-links { font-family: var(--font-ar); }
.error-links a {
    color: var(--text-2);
    padding: 4px 8px;
    border-radius: 6px;
    transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
@media (hover: hover) {
    .error-links a:hover { color: var(--primary); background: var(--surface); }
}

/* PAGE INTRO — hero block for non-home pages */
.page-intro {
    padding: 88px 0 56px;
    text-align: center;
    position: relative;
}
.page-intro .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    max-width: 820px;
}
.page-title {
    font-family: var(--font-en-display);
    font-size: clamp(40px, 5.5vw, 72px);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 8px 0 6px;
    color: var(--text);
}
html[data-lang="ar"] .page-title {
    font-family: var(--font-ar-display);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.25;
    font-size: clamp(38px, 5.2vw, 68px);
}
.page-title .accent {
    background: linear-gradient(120deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.page-lead {
    font-size: clamp(16px, 1.4vw, 19px);
    line-height: 1.7;
    color: var(--muted);
    margin: 0;
    max-width: 680px;
}
@media (max-width: 768px) { .page-intro { padding: 56px 0 36px; } }

/* FOOTER */
.footer { border-top: 1px solid var(--border); background: var(--surface); margin-top: 80px; padding-bottom: env(safe-area-inset-bottom); }
.footer-inner {
    padding: 32px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}
.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    justify-content: center;
}
.footer-nav a {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13.5px;
    color: var(--text-2);
    transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
@media (hover: hover) {
    .footer-nav a:hover { background: var(--bg); color: var(--text); }
}
@media (max-width: 540px) {
    .footer-inner { flex-direction: column; align-items: stretch; text-align: center; }
    .footer-brand { justify-content: center; display: inline-flex; align-self: center; }
}
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 14px;
}
.footer-meta { display: flex; flex-direction: column; gap: 2px; text-align: end; }

/* Mobile */
@media (max-width: 540px) {
    .section { padding: 48px 0; }
    .hero { padding: 32px 0 56px; }
    .hero-cta { width: 100%; }
    .hero-cta .btn { flex: 1; justify-content: center; }
    .timeline-item { grid-template-columns: 44px 1fr; gap: 14px; padding: 18px 18px; }
    .timeline-logo { width: 44px; height: 44px; }
    .cta-card { padding: 32px 22px; }
    .service-card { padding: 28px 22px; }
    .footer-meta { text-align: start; }
}

/* =========================================================
   MOTION — hero entrance + scroll reveal
   ========================================================= */

/* Only hide pre-animation if JS is available (so no-JS users see content) */
html.js .hero-kicker,
html.js .hero-title .title-line,
html.js .hero-divider,
html.js .hero-tagline,
html.js .hero-cta,
html.js .hero-meta,
html.js .hero-photo {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    will-change: opacity, transform;
}
html.js .hero-photo { transform: scale(0.985) translateY(12px); }

html.js body.loaded .hero-kicker { opacity: 1; transform: none; transition-delay: 0.08s; }
html.js body.loaded .hero-title .title-line:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.22s; }
html.js body.loaded .hero-title .title-line:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.34s; }
html.js body.loaded .hero-title .title-line:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.46s; }
html.js body.loaded .hero-divider { opacity: 1; transform: none; transition-delay: 0.58s; }
html.js body.loaded .hero-tagline { opacity: 1; transform: none; transition-delay: 0.68s; }
html.js body.loaded .hero-cta { opacity: 1; transform: none; transition-delay: 0.80s; }
html.js body.loaded .hero-meta { opacity: 1; transform: none; transition-delay: 0.92s; }
html.js body.loaded .hero-photo { opacity: 1; transform: none; transition-delay: 0.15s; transition-duration: 1s; }

/* Scroll-reveal — fade-up when element enters viewport */
html.js .expertise-card,
html.js .mission-card,
html.js .service-card,
html.js .media-card,
html.js .timeline-item,
html.js .edu-row,
html.js .cert-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
html.js .expertise-card.in-view,
html.js .mission-card.in-view,
html.js .service-card.in-view,
html.js .media-card.in-view,
html.js .timeline-item.in-view,
html.js .edu-row.in-view,
html.js .cert-card.in-view {
    opacity: 1;
    transform: none;
}
html.js .expertise-card:nth-child(2) { transition-delay: 0.08s; }
html.js .expertise-card:nth-child(3) { transition-delay: 0.16s; }
html.js .mission-card:nth-child(2) { transition-delay: 0.08s; }
html.js .mission-card:nth-child(3) { transition-delay: 0.16s; }

/* Subtle shimmer on primary button */
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg,
        transparent 30%,
        rgba(255, 255, 255, 0.10) 50%,
        transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s var(--ease);
    pointer-events: none;
    z-index: -1;
}
@media (hover: hover) {
    .btn-primary:hover::after { transform: translateX(100%); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    html.js .hero-kicker,
    html.js .hero-title .title-line,
    html.js .hero-divider,
    html.js .hero-tagline,
    html.js .hero-cta,
    html.js .hero-meta,
    html.js .hero-photo,
    html.js .expertise-card,
    html.js .mission-card,
    html.js .service-card,
    html.js .media-card,
    html.js .timeline-item,
    html.js .edu-row,
    html.js .cert-card {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* =========================================================
   APPLE-MINIMAL DESIGN SYSTEM (v10) — overrides above
   Huge type, massive whitespace, sparse content, premium feel.
   ========================================================= */

body { background: #fff; }

/* Clean grid background — much subtler */
.bg-grid { display: none; }
.bg-glow { display: none; }

/* === NAV — minimal, no terminal vibes === */
.nav {
    background: rgba(255, 255, 255, 0.85);
    border-bottom: none;
}
.nav.scrolled { background: rgba(255,255,255,0.92); border-bottom: none; }
.nav-inner {
    max-width: 1200px;
    padding: 26px 24px;
}
.nav-logo { gap: 0; font-family: var(--font-en); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.nav-logo .logo-mark { display: none; }
.nav-logo .logo-text { color: var(--text); }
.nav-logo .logo-cursor { display: none; }
.nav-links a { font-weight: 500; font-size: 14.5px; color: var(--muted); letter-spacing: -0.005em; }
.nav-links a:hover { color: var(--text); background: transparent; }
.nav-links a.active { color: var(--text); background: transparent; }
.nav-links a.active::after { display: none; }

/* === BUTTONS — Apple-style pill === */
.btn { font-family: var(--font-en); font-weight: 500; letter-spacing: -0.005em; border-radius: 999px; padding: 12px 22px; font-size: 15px; }
html[data-lang="ar"] .btn { font-family: var(--font-ar); font-weight: 600; letter-spacing: 0; }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-primary { background: var(--text); color: #fff; box-shadow: none; }
.btn-primary:hover { background: #1a1d2e; transform: translateY(-1px); }
.btn-primary::after { display: none !important; }
.btn-ghost { background: transparent; border: 1px solid var(--border-strong); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--text); }
.btn-light-ghost {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.35);
    color: #fff;
    padding: 16px 28px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 500;
    transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.btn-light-ghost:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.6); }

/* === MOMENT system === */
.moment {
    padding: clamp(48px, 5vw, 88px) 24px;
    position: relative;
}
.moment-tight { padding: clamp(36px, 4vw, 64px) 24px; }
.moment-inner {
    max-width: 1100px;
    margin: 0 auto;
}
.moment-narrow { max-width: 820px; }

.moment-dark {
    background: var(--text);
    color: #fff;
}
.moment-dark .moment-body { color: rgba(255,255,255,0.7); }

.moment-eyebrow {
    display: block;
    font-family: var(--font-en);
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 20px;
}
html[data-lang="ar"] .moment-eyebrow { font-family: var(--font-ar); letter-spacing: 0.04em; font-weight: 700; font-size: 14px; }
.moment-eyebrow-light { color: rgba(255,255,255,0.6); }

.moment-headline {
    font-family: var(--font-en);
    font-size: clamp(40px, 6.5vw, 88px);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.038em;
    color: var(--text);
    margin: 0 0 28px;
    max-width: 1000px;
}
html[data-lang="ar"] .moment-headline {
    font-family: var(--font-ar-display);
    font-size: clamp(38px, 6vw, 82px);
    line-height: 1.2;
    letter-spacing: 0;
    font-weight: 800;
    overflow-wrap: break-word;
    word-break: break-word;
}
.moment-dark .moment-headline { color: #fff; }

.moment-headline-sm {
    font-family: var(--font-en);
    font-size: clamp(32px, 4.5vw, 56px);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text);
    margin: 0 0 48px;
}
html[data-lang="ar"] .moment-headline-sm {
    font-family: var(--font-ar-display);
    font-size: clamp(30px, 4.2vw, 52px);
    line-height: 1.25;
    letter-spacing: 0;
    font-weight: 800;
    overflow-wrap: break-word;
    word-break: break-word;
}
.moment-dark .moment-headline-sm { color: #fff; }

.moment-body {
    font-size: clamp(17px, 1.4vw, 21px);
    line-height: 1.6;
    color: var(--muted);
    margin: 0 0 36px;
    max-width: 720px;
    font-weight: 400;
}

.moment-accent {
    background: linear-gradient(120deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* === HERO (home) === */
.moment-hero { padding: clamp(48px, 8vw, 100px) 24px clamp(56px, 9vw, 120px); }
.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}
@media (max-width: 880px) {
    .hero-grid { grid-template-columns: 1fr; gap: 32px; text-align: start; }
    .hero-photo { order: 1; max-width: 360px; margin: 0 auto; }
    .hero-text { order: 2; }
}

.hero-photo img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 32px;
    background: linear-gradient(160deg, #DFF7E8 0%, #D6F0FA 100%);
    aspect-ratio: 1 / 1;
    object-fit: contain;
    object-position: center;
    box-shadow: 0 24px 60px -16px rgba(11, 18, 32, 0.18);
}

.hero-headline {
    font-family: var(--font-en);
    font-size: clamp(56px, 9vw, 120px);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.045em;
    color: var(--text);
    margin: 0 0 36px;
}
html[data-lang="ar"] .hero-headline {
    font-family: var(--font-ar-display);
    font-size: clamp(48px, 7.5vw, 96px);
    line-height: 1.3;
    letter-spacing: 0;
    font-weight: 800;
}
.hero-headline .title-line { display: block; }
html[data-lang="ar"] .hero-headline .title-line { margin-bottom: 6px; }
html[data-lang="ar"] .hero-headline .title-line:last-child { margin-bottom: 0; }
.hero-headline .title-accent {
    background: linear-gradient(120deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-tagline {
    font-size: clamp(16px, 1.3vw, 19px);
    line-height: 1.6;
    color: var(--muted);
    margin: 0 0 36px;
    max-width: 540px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
@media (max-width: 540px) {
    .hero-cta { width: 100%; }
    .hero-cta .btn { flex: 1; justify-content: center; }
}

/* === PROOF grid (4 cells) === */
.proof-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid var(--border);
    margin-top: 16px;
}
@media (max-width: 880px) {
    .proof-grid { grid-template-columns: repeat(2, 1fr); }
}
.proof-cell {
    background: #fff;
    padding: clamp(32px, 4vw, 56px) clamp(20px, 2.5vw, 36px);
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0; /* allow grid 1fr columns to shrink past content min-width */
}
.proof-sub { overflow-wrap: anywhere; }

/* Proof-logos row — full-color chips in a single tight row */
.proof-logos {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 18px;
    flex-wrap: nowrap;
}
.proof-logos img,
.proof-logos--icons svg {
    flex: 0 0 auto;
    height: 30px;
    width: 30px;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 4px;
    box-sizing: border-box;
    box-shadow: 0 1px 2px rgba(11, 18, 32, 0.04);
    transition: transform 0.35s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), color 0.3s var(--ease);
}
.proof-logos--icons svg {
    padding: 6px;
    color: var(--text);
}
.proof-logos img:hover,
.proof-logos--icons svg:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: 0 6px 14px -4px rgba(0, 184, 107, 0.3);
}
.proof-logos--icons svg:hover { color: var(--primary); }

/* Tighter on small screens */
@media (max-width: 540px) {
    .proof-logos { gap: 6px; padding-top: 14px; }
    .proof-logos img,
    .proof-logos--icons svg { height: 26px; width: 26px; padding: 3px; }
    .proof-logos--icons svg { padding: 5px; }
}
.proof-num {
    font-family: var(--font-en);
    font-size: clamp(56px, 7vw, 88px);
    line-height: 0.95;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--text);
    margin: 0;
}
.proof-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-top: 6px;
}
html[data-lang="ar"] .proof-label { font-size: 16px; font-weight: 700; }
.proof-sub {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--muted);
    letter-spacing: 0.01em;
    line-height: 1.5;
}

/* === DOORS grid (3 cards) === */
.doors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 8px;
}
@media (max-width: 880px) { .doors-grid { grid-template-columns: 1fr; } }

.door-card {
    background: var(--bg-tint);
    border-radius: 28px;
    padding: clamp(28px, 3.5vw, 44px);
    color: var(--text);
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-height: 320px;
    transition: transform var(--t-med) var(--ease);
    position: relative;
}
@media (hover: hover) { .door-card:hover { transform: translateY(-4px); } }
.door-top { display: flex; flex-direction: column; gap: 6px; }
.door-num {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.06em;
}
.door-title {
    font-family: var(--font-en);
    font-size: clamp(28px, 3vw, 36px);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0;
    color: var(--text);
}
html[data-lang="ar"] .door-title { font-family: var(--font-ar-display); font-weight: 800; letter-spacing: 0; }
.door-desc {
    font-size: 15.5px;
    line-height: 1.55;
    color: var(--muted);
    margin: 0;
    flex: 1;
}
.door-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-weight: 600;
    font-size: 15px;
    margin-top: auto;
}
.door-link svg { transition: transform var(--t-fast) var(--ease); }
@media (hover: hover) { .door-card:hover .door-link svg { transform: translateX(-4px); } }
html[dir="ltr"] @media (hover: hover) { .door-card:hover .door-link svg { transform: translateX(4px); } }

/* === STORY block === */
.story-block { display: flex; flex-direction: column; gap: 28px; }
.story-headline {
    font-family: var(--font-en);
    font-size: clamp(24px, 2.5vw, 32px);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin: 0;
    color: var(--text);
}
html[data-lang="ar"] .story-headline { font-family: var(--font-ar-display); font-weight: 800; }
.story-text {
    font-size: clamp(17px, 1.3vw, 20px);
    line-height: 1.7;
    color: var(--text-2);
    margin: 0;
}

/* === SERVICE row (split layout) === */
.service-row {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: clamp(40px, 5vw, 80px);
    align-items: start;
    padding: clamp(32px, 4vw, 60px) 0;
    border-top: 1px solid var(--border);
}
@media (max-width: 880px) { .service-row { grid-template-columns: 1fr; gap: 28px; } }

.service-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 0.06em;
    margin-bottom: 16px;
}
.service-name {
    font-family: var(--font-en);
    font-size: clamp(40px, 5vw, 64px);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.035em;
    margin: 0 0 20px;
    color: var(--text);
}
html[data-lang="ar"] .service-name { font-family: var(--font-ar-display); font-weight: 800; }
.service-desc {
    font-size: clamp(16px, 1.3vw, 19px);
    line-height: 1.6;
    color: var(--muted);
    margin: 0 0 28px;
}
.service-detail-head {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0 0 18px;
    font-weight: 600;
}
html[data-lang="ar"] .service-detail-head { font-family: var(--font-ar); letter-spacing: 0.04em; }
.service-list { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; }
.service-list li {
    list-style: none;
    padding: 16px 0;
    border-top: 1px solid var(--border);
    font-size: 16px;
    color: var(--text-2);
    line-height: 1.5;
}
.service-list li:first-child { border-top: 0; padding-top: 0; }

/* === PROCESS list === */
.process-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 28px; }
.process-list li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 24px;
    align-items: start;
    padding: 24px 0;
    border-top: 1px solid var(--border);
}
.process-list li:first-child { border-top: 0; padding-top: 0; }
.process-num {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.06em;
    padding-top: 4px;
    min-width: 32px;
}
.process-text { display: flex; flex-direction: column; gap: 6px; }
.process-text strong {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}
.process-text p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }

/* === FEATURED media (large hero card) === */
.featured-media {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: clamp(32px, 4vw, 56px);
    text-decoration: none;
    color: inherit;
    border-radius: 28px;
    padding: clamp(24px, 3vw, 40px);
    background: var(--bg-tint);
    align-items: center;
    transition: transform var(--t-med) var(--ease);
}
@media (max-width: 880px) {
    .featured-media { grid-template-columns: 1fr; gap: 24px; }
}
@media (hover: hover) { .featured-media:hover { transform: translateY(-3px); } }
.featured-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; }
.featured-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
@media (hover: hover) { .featured-media:hover .featured-thumb img { transform: scale(1.04); } }
.featured-thumb .media-play {
    position: absolute; inset: 0; margin: auto;
    width: 72px; height: 72px;
    display: grid; place-items: center;
    background: rgba(255,255,255,0.94);
    color: var(--text);
    border-radius: 50%;
    box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}
.featured-info { display: flex; flex-direction: column; gap: 12px; }
.featured-badge {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 600;
}
html[data-lang="ar"] .featured-badge { font-family: var(--font-ar); }
.featured-title {
    font-family: var(--font-en);
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin: 0;
    color: var(--text);
}
html[data-lang="ar"] .featured-title { font-family: var(--font-ar-display); font-weight: 800; line-height: 1.3; }
.featured-desc { font-size: 16px; line-height: 1.6; color: var(--muted); margin: 0; }
.featured-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text);
    margin-top: 4px;
}

/* === TOPICS list === */
.topics-list { list-style: none; padding: 0; margin: 0 0 32px; display: flex; flex-direction: column; gap: 0; }
.topics-list li {
    padding: 20px 0;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.topics-list li:last-child { border-bottom: 1px solid var(--border); }
.topics-list strong { font-size: 18px; font-weight: 600; color: var(--text); }
.topics-list .dim { font-size: 14.5px; color: var(--muted); }

/* === FORM (override the previous styles, cleaner) === */
.moment-form { background: var(--bg-tint); }
.moment-form .form-container { max-width: 640px; margin: 0 auto; padding: 0 24px; }
.moment-form .contact-form {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: clamp(28px, 3.5vw, 48px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.moment-form .contact-form::before { display: none; }

/* === Hero photo on mobile: magazine-cover full-bleed overlay === */
@media (max-width: 880px) {
    /* Section becomes a full-height canvas */
    .moment-hero {
        min-height: 92dvh !important;
        padding: 0 !important;
        overflow: hidden;
        position: relative !important;
        display: block !important;
    }

    /* Kill the flex/grid layout — become a positioning context */
    .moment-hero .hero-grid {
        display: block !important;
        position: relative !important;
        min-height: 92dvh !important;
        padding: 0 !important;
        max-width: unset !important;
        width: 100% !important;
        gap: 0 !important;
    }

    /* Photo fills the whole section behind everything */
    .moment-hero .hero-photo {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        max-width: unset !important;
        margin: 0 !important;
        z-index: 0 !important;
        order: unset !important;
        align-self: unset !important;
        opacity: 1 !important;
        filter: none !important;
    }

    .moment-hero .hero-photo .photo-3d-wrapper {
        width: 100% !important;
        height: 100% !important;
        border-radius: 0 !important;
        perspective: none !important;
    }

    .moment-hero .hero-photo .photo-3d-wrapper img {
        width: 100% !important;
        height: 100% !important;
        aspect-ratio: unset !important;
        object-fit: cover !important;
        object-position: center 12% !important;
        border-radius: 0 !important;
        animation: none !important;
        transform: none !important;
        box-shadow: none !important;
    }

    /* Dark gradient scrim — stronger so text always has contrast over light photo areas */
    .moment-hero .hero-photo::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(
            to bottom,
            rgba(11, 18, 32, 0.05) 0%,
            rgba(11, 18, 32, 0.18) 30%,
            rgba(11, 18, 32, 0.55) 50%,
            rgba(11, 18, 32, 0.85) 75%,
            rgba(11, 18, 32, 0.96) 100%
        );
        pointer-events: none;
        z-index: 1;
    }

    /* Text sits at the bottom over the scrim */
    .moment-hero .hero-text {
        position: absolute !important;
        inset: auto 0 0 0 !important;
        z-index: 2 !important;
        padding: 0 32px 64px !important;
        color: #fff !important;
        text-align: start !important;
        order: unset !important;
        align-self: unset !important;
    }

    .moment-hero .hero-text .hero-headline,
    .moment-hero .hero-text .hero-headline .title-line {
        color: #fff !important;
        text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
    }

    /* Headline: tighter scale but more line breathing on mobile */
    .moment-hero .hero-headline {
        font-size: clamp(48px, 12vw, 76px) !important;
        line-height: 1.05 !important;
        margin-bottom: 22px !important;
    }
    html[data-lang="ar"] .moment-hero .hero-headline {
        font-size: clamp(42px, 11vw, 68px) !important;
        line-height: 1.3 !important;
    }
    .moment-hero .hero-headline .title-line {
        margin-bottom: 4px;
    }

    .moment-hero .hero-text .hero-headline .title-accent {
        color: var(--accent) !important;
    }

    .moment-hero .hero-text .hero-tagline {
        color: rgba(255, 255, 255, 0.88) !important;
        text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
        font-size: 14.5px !important;
        line-height: 1.7 !important;
        margin-bottom: 28px !important;
        max-width: 100% !important;
    }

    .moment-hero .hero-cta {
        margin-bottom: 0 !important;
        gap: 10px;
    }

    .moment-hero .hero-text .btn-ghost {
        border-color: rgba(255, 255, 255, 0.55) !important;
        color: #fff !important;
    }

    /* Hide any leftover photo-frame artifacts */
    .hero-photo .photo-frame,
    .hero-photo .photo-bg,
    .hero-photo .photo-corner,
    .hero-photo .photo-badge { display: none !important; }
}

/* === Marquee spacing in new moment === */
.moment-marquee { padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(48px, 6vw, 80px); }
.moment-marquee .marquee-header { margin-bottom: 32px; text-align: center; display: flex; justify-content: center; }

/* === Override moment-page-intro for non-home pages === */
.moment-page-intro {
    padding-top: clamp(72px, 10vw, 140px);
    padding-bottom: clamp(40px, 5vw, 64px);
    text-align: start;
}
.moment-page-intro .moment-headline { margin-bottom: 24px; }

/* === Timeline updates for new design === */
.timeline {
    border-radius: 24px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    margin-top: 36px;
}
.timeline-item { padding: 28px 32px; }
@media (max-width: 540px) { .timeline-item { padding: 20px 20px; } }

/* === Credentials — stacked vertically so each row gets full width === */
.credentials-grid {
    display: flex;
    flex-direction: column;
    gap: clamp(44px, 5vw, 72px);
    margin-top: 36px;
    padding-top: 60px;
    border-top: 1px solid var(--border);
}
@media (max-width: 880px) { .credentials-grid { padding-top: 40px; gap: 36px; } }

/* Featured education/program row (e.g. CISA Trainee) — accent treatment */
.edu-row-featured {
    border-color: rgba(0, 184, 107, 0.28);
    background: linear-gradient(90deg, rgba(0, 184, 107, 0.05) 0%, var(--surface) 60%);
    position: relative;
    padding-inline-end: 110px;
}
html[dir="rtl"] .edu-row-featured {
    background: linear-gradient(270deg, rgba(0, 184, 107, 0.05) 0%, var(--surface) 60%);
}
.edu-row-featured::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 10px;
    bottom: 10px;
    width: 3px;
    background: var(--primary, #00B86B);
    border-radius: 2px;
}
.edu-row-featured:hover {
    border-color: var(--primary, #00B86B);
}
.edu-status {
    position: absolute;
    top: 50%;
    inset-inline-end: 26px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    background: rgba(0, 184, 107, 0.08);
    border: 1px solid rgba(0, 184, 107, 0.25);
    border-radius: 999px;
    font-family: var(--font-mono, monospace);
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-dark, #00964F);
    letter-spacing: .12em;
    text-transform: uppercase;
    white-space: nowrap;
}
html[data-lang="ar"] .edu-status { font-family: var(--font-ar); letter-spacing: 0; font-size: 13px; }
.edu-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary, #00B86B);
    box-shadow: 0 0 0 0 rgba(0, 184, 107, 0.55);
    animation: eduStatusPulse 2s ease-out infinite;
    flex-shrink: 0;
}
@keyframes eduStatusPulse {
    0%   { box-shadow: 0 0 0 0 rgba(0, 184, 107, 0.55); }
    100% { box-shadow: 0 0 0 8px rgba(0, 184, 107, 0); }
}
@media (max-width: 540px) {
    .edu-row-featured { padding-inline-end: 18px; padding-bottom: 14px; padding-top: 14px; }
    .edu-status {
        position: static;
        transform: none;
        margin-top: 8px;
        grid-column: 2;
        justify-self: start;
    }
}

/* Cert cards — generous padding + prominent logo */
.cert-card {
    padding: 28px 26px;
    min-height: 120px;
}
.cert-card img {
    width: 60px;
    height: 60px;
    padding: 9px;
}
.cert-card > div > span:first-child {
    font-size: 18px;
    line-height: 1.45;
    font-weight: 700;
}
html[data-lang="ar"] .cert-card > div > span:first-child {
    font-size: 18px;
    line-height: 1.55;
}
.cert-card .dim {
    font-size: 14px;
}

/* Mobile: compact credentials cards so they don't dominate the screen */
@media (max-width: 880px) {
    .edu-row, .cert-card {
        grid-template-columns: 48px 1fr;
        padding: 18px 18px;
        gap: 14px;
        min-height: auto;
        border-radius: 16px;
    }
    .edu-row img, .cert-card img {
        width: 48px;
        height: 48px;
        padding: 6px;
        border-radius: 11px;
    }
    .edu-row strong, .cert-card > div > span:first-child,
    html[data-lang="ar"] .edu-row strong,
    html[data-lang="ar"] .cert-card > div > span:first-child {
        font-size: 15px;
        line-height: 1.4;
    }
    .cert-card .dim, .edu-row .dim,
    html[data-lang="ar"] .cert-card .dim,
    html[data-lang="ar"] .edu-row .dim {
        font-size: 12.5px;
        line-height: 1.5;
    }
    .edu-list, .cert-grid { gap: 12px; }
    .edu-row-featured { padding-inline-end: 18px; }
    .edu-row-featured .edu-status {
        font-size: 11px;
        padding: 5px 10px;
        gap: 6px;
    }
}

/* === Contact pills row centered on contact page === */
.moment-direct .contact-row { justify-content: flex-start; gap: 8px; flex-wrap: wrap; }
@media (max-width: 540px) { .moment-direct .contact-row { justify-content: center; } }
.contact-pill { background: var(--bg-tint); border-color: var(--bg-tint); }
.contact-pill:hover { background: var(--surface-2); border-color: var(--border); }

/* === Footer simpler === */
.footer { background: #fff; border-top: 1px solid var(--border); margin-top: 0; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 40px 24px; }
.footer-brand { font-family: var(--font-en); font-weight: 700; font-size: 16px; }
.footer-brand .logo-mark { display: none; }

/* === Hide old hero stuff that's no longer used === */
.hero-kicker { display: none; }
.hero-divider { display: none; }
.hero-meta { display: none; }

/* Hide old photo-frame elements (cleaner photo now) */
.photo-frame, .photo-bg, .photo-corner, .photo-badge { display: none; }

/* =========================================================
   3D EFFECTS (v12)
   ========================================================= */

/* Hero photo — 3D wrapper + floating animation */
.photo-3d-wrapper {
    display: block;
    border-radius: 32px;
    perspective: 1200px;
}
.photo-3d-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 32px;
    background: linear-gradient(160deg, #DFF7E8 0%, #D6F0FA 100%);
    aspect-ratio: 1 / 1;
    object-fit: contain;
    object-position: center;
    box-shadow: 0 24px 60px -16px rgba(11, 18, 32, 0.18);
    transform-origin: center center;
    will-change: transform;
    /* Default transition for mouse-leave snap-back */
    transition: transform 0.5s cubic-bezier(.22, 1, .36, 1),
                box-shadow 0.5s cubic-bezier(.22, 1, .36, 1);
}

/* Gentle floating animation when not being interacted with */
@keyframes float3d {
    0%   { transform: perspective(1000px) rotateX(1.5deg) rotateY(-3deg)   translateY(0px); }
    33%  { transform: perspective(1000px) rotateX(-1deg)  rotateY(2.5deg)  translateY(-10px); }
    66%  { transform: perspective(1000px) rotateX(2deg)   rotateY(0.5deg)  translateY(-5px); }
    100% { transform: perspective(1000px) rotateX(1.5deg) rotateY(-3deg)   translateY(0px); }
}
@media (prefers-reduced-motion: no-preference) {
    .photo-3d-wrapper img {
        animation: float3d 7s ease-in-out infinite;
    }
    /* JS will add .is-hovering to suppress animation during mouse tracking */
    .photo-3d-wrapper.is-hovering img {
        animation: none;
    }
}

/* Mobile: keep a subtle static tilt, no floating */
@media (max-width: 880px) {
    .photo-3d-wrapper img {
        animation: none;
        transform: none;
    }
}

/* Proof cells — 3D tilt on hover */
.proof-3d {
    transition: transform 0.35s cubic-bezier(.22, 1, .36, 1),
                box-shadow 0.35s cubic-bezier(.22, 1, .36, 1);
    position: relative;
}
@media (hover: hover) {
    .proof-3d:hover {
        transform: perspective(700px) rotateX(-6deg) translateY(-8px);
        box-shadow: 0 22px 50px -12px rgba(11, 18, 32, 0.13),
                    0 0 0 1px var(--primary-100);
        z-index: 2;
    }
}

/* Cert cards — subtle 3D lift on hover */
@media (hover: hover) {
    .cert-card:hover {
        transform: perspective(600px) rotateX(-4deg) translateY(-3px);
        border-color: var(--primary-100);
        box-shadow: 0 12px 28px -8px rgba(11, 18, 32, 0.10);
    }
    .edu-row:hover {
        transform: perspective(600px) rotateX(-3deg) translateY(-2px);
        border-color: var(--primary-100);
        box-shadow: 0 10px 24px -6px rgba(11, 18, 32, 0.08);
    }
}

/* =========================================================
   BOOKING SECTION (v12)
   ========================================================= */

.moment-booking {
    background: var(--bg-tint);
}

/* 3D depth on the form card itself */
.booking-form-3d {
    transition: box-shadow 0.4s cubic-bezier(.22, 1, .36, 1);
}
.booking-form-3d:hover {
    box-shadow: 0 32px 72px -18px rgba(11, 18, 32, 0.11);
}

.booking-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Paid-consultation notice banner */
.booking-notice {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 22px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    font-size: 15.5px;
    line-height: 1.65;
    color: var(--text-2);
    box-shadow: var(--shadow-sm);
}
.booking-notice svg {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 3px;
}
.booking-notice p {
    margin: 0;
}

/* Direct contact row below form */
.booking-direct {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding-top: 8px;
}
.booking-direct-label {
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* 2-column form row */
.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 560px) {
    .form-row-2 { grid-template-columns: 1fr; }
}

/* Override: moment-form tint bg for booking section */
.moment-booking .contact-form {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: clamp(28px, 3.5vw, 48px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.moment-booking .contact-form::before { display: none; }


/* =====================================================================
   ELITE POLISH LAYER — scroll-driven 3D, micro-interactions, premium feel
   ----------------------------------------------------------------------
   Modules (CSS):
     1. Motion tokens (easings + durations)
     2. Scroll-progress indicator
     3. Cursor spotlight (desktop)
     4. 3D reveal system ([data-reveal], [data-reveal-stagger])
     5. Scroll-tilt cards ([data-scroll-3d])
     6. Magnetic buttons ([data-magnetic])
     7. Typography micro-polish
     8. iOS safe-area + touch refinements
     9. Marquee edge mask + hover-pause
   ===================================================================== */

/* ---- 1. Motion tokens ---- */
:root {
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring:    cubic-bezier(0.34, 1.5, 0.64, 1);
    --duration-reveal: 0.95s;
}

/* ---- 2. Scroll-progress indicator (top edge) ---- */
.scroll-progress {
    position: fixed;
    inset: 0 0 auto 0;
    height: 2px;
    z-index: 200;
    pointer-events: none;
    background: rgba(11, 18, 32, 0.04);
}
.scroll-progress__bar {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    box-shadow: 0 0 12px rgba(0, 184, 107, 0.45),
                0 0 4px rgba(6, 182, 212, 0.55);
    transform-origin: left center;
    transform: scaleX(var(--scroll-progress, 0));
    transition: transform 0.08s linear;
    will-change: transform;
}
[dir="rtl"] .scroll-progress__bar { transform-origin: right center; }

/* ---- 3. Cursor spotlight (desktop only, subtle) ---- */
.cursor-glow {
    position: fixed;
    top: 0; left: 0;
    width: 520px; height: 520px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(
        circle,
        rgba(0, 184, 107, 0.09) 0%,
        rgba(6, 182, 212, 0.05) 38%,
        transparent 72%
    );
    transform: translate(calc(var(--cx, -1000px) - 50%), calc(var(--cy, -1000px) - 50%));
    opacity: 0;
    transition: opacity 0.5s var(--ease);
    will-change: transform, opacity;
}
body.cursor-active .cursor-glow { opacity: 1; }
@media (hover: none), (max-width: 880px), (prefers-reduced-motion: reduce) {
    .cursor-glow { display: none !important; }
}

/* ---- 4. 3D reveal system ---- */
/* Reveal animations — GATED behind html.reveal-ready so content stays
   visible by default. JS only adds the gate class once IntersectionObserver
   is set up, preventing any race where content is left hidden. */
html.reveal-ready [data-reveal] {
    opacity: 0;
    transform: translateY(48px) rotateX(6deg);
    transform-origin: center bottom;
    transition: opacity var(--duration-reveal) var(--ease-out-expo),
                transform var(--duration-reveal) var(--ease-out-expo);
    will-change: transform, opacity;
}
html.reveal-ready [data-reveal].in-view {
    opacity: 1;
    transform: translateY(0) rotateX(0);
}
html.reveal-ready [data-reveal="card"] {
    transform: translateY(36px) scale(0.96);
}
html.reveal-ready [data-reveal="card"].in-view {
    transform: translateY(0) scale(1);
}

html.reveal-ready [data-reveal-stagger] > * {
    opacity: 0;
    transition: opacity 0.85s var(--ease-out-expo),
                transform 0.85s var(--ease-out-expo);
    will-change: opacity, transform;
}
/* Non-scroll-3d children get an upward-lift entrance */
html.reveal-ready [data-reveal-stagger] > *:not([data-scroll-3d]) {
    transform: translateY(28px);
}
html.reveal-ready [data-reveal-stagger].in-view > * { opacity: 1; }
html.reveal-ready [data-reveal-stagger].in-view > *:not([data-scroll-3d]) { transform: none; }
html.reveal-ready [data-reveal-stagger].in-view > *:nth-child(1) { transition-delay: 0.04s; }
html.reveal-ready [data-reveal-stagger].in-view > *:nth-child(2) { transition-delay: 0.12s; }
html.reveal-ready [data-reveal-stagger].in-view > *:nth-child(3) { transition-delay: 0.20s; }
html.reveal-ready [data-reveal-stagger].in-view > *:nth-child(4) { transition-delay: 0.28s; }
html.reveal-ready [data-reveal-stagger].in-view > *:nth-child(5) { transition-delay: 0.36s; }
html.reveal-ready [data-reveal-stagger].in-view > *:nth-child(6) { transition-delay: 0.44s; }
html.reveal-ready [data-reveal-stagger].in-view > *:nth-child(7) { transition-delay: 0.52s; }
html.reveal-ready [data-reveal-stagger].in-view > *:nth-child(8) { transition-delay: 0.60s; }

/* ---- 5. Scroll-tilt cards (JS sets --s3d-rx + --s3d-ty) ---- */
[data-scroll-3d] {
    transform: perspective(1400px)
               rotateX(var(--s3d-rx, 0deg))
               translateY(var(--s3d-ty, 0));
    transform-origin: center bottom;
    will-change: transform;
    backface-visibility: hidden;
}

/* Sections that host 3D cards get a shared perspective viewing plane */
.moment-proof,
.moment-credentials { perspective: 1600px; }

/* Reduce-motion: kill all entrance / scroll transforms */
@media (prefers-reduced-motion: reduce) {
    [data-reveal],
    [data-reveal-stagger] > *,
    [data-scroll-3d] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .scroll-progress { display: none; }
    html { scroll-behavior: auto; }
}

/* ---- 6. Magnetic buttons (JS sets transform) ---- */
[data-magnetic] {
    transition: transform 0.45s var(--ease-spring),
                background-color var(--t-fast) var(--ease),
                color var(--t-fast) var(--ease),
                box-shadow var(--t-med) var(--ease);
    will-change: transform;
}

/* ---- 7. Typography micro-polish ---- */
html[data-lang="en"] .hero-headline { letter-spacing: -0.035em; }
html[data-lang="ar"] .hero-headline { letter-spacing: -0.01em; }
html[data-lang="en"] .moment-headline,
html[data-lang="en"] .moment-headline-sm { letter-spacing: -0.025em; }
.hero-headline { line-height: 0.96; }

/* Subtle gradient sheen on accent text */
.title-accent,
.moment-accent {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
            color: transparent;
}

/* Crisper number rendering for proof counters */
.proof-num {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1, "lnum" 1;
}

/* ---- 8. iOS safe-area + touch refinements ---- */
@supports (padding: max(0px)) {
    .nav-inner { padding-top: max(0px, env(safe-area-inset-top)); }
    .moment-booking { padding-bottom: max(96px, calc(96px + env(safe-area-inset-bottom))); }
    .footer { padding-bottom: env(safe-area-inset-bottom); }
}

/* iOS momentum scroll + smoother kinetic feel */
html, body {
    -webkit-overflow-scrolling: touch;
}

/* Tap-state for primary buttons on touch */
@media (hover: none) {
    .btn-primary:active { transform: scale(0.97); }
    .btn-ghost:active   { transform: scale(0.98); }
    .contact-pill:active { transform: scale(0.98); }
}

/* ---- 9. Marquee polish ---- */
.marquee {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 7%, #000 93%, transparent 100%);
            mask-image: linear-gradient(to right, transparent 0%, #000 7%, #000 93%, transparent 100%);
}
@media (hover: hover) {
    .marquee:hover .marquee-track { animation-play-state: paused; }
}

/* ---- 10. Tighter rhythm on phone + tablet ---- */
@media (max-width: 880px) {
    .moment             { padding: 56px 22px; }
    .moment-tight       { padding: 40px 22px; }
    .moment-marquee     { padding-top: 32px; padding-bottom: 32px; }
    .moment-proof       { padding-top: 48px; padding-bottom: 48px; }
    /* Manifesto + about sit close to neighbors */
    .moment-manifesto   { padding-top: 48px; padding-bottom: 48px; }
    #about              { padding-top: 48px; padding-bottom: 48px; }
    /* Hero already controls its own height (92dvh full-bleed) */
    .moment-hero        { padding: 0; }
}
@media (min-width: 881px) and (max-width: 1100px) {
    .moment             { padding: 72px 28px; }
    .moment-marquee     { padding-top: 48px; padding-bottom: 48px; }
}

/* =====================================================================
   POLISH PASS v2 — touch / a11y / ripple / drawer / tilt-glare / split
   ---------------------------------------------------------------------
   1.  Touch-action + tap delay kill on all interactives
   2.  scroll-margin-top for sticky-nav offset on anchored sections
   3.  Skip-to-main-content link (visible on focus)
   4.  Sliding underline + active-section highlight on nav links
   5.  Mobile drawer (right-slide + backdrop + body lock + focus trap)
   6.  Ripple effect on .btn click (JS injects span)
   7.  Universal card tilt + glare overlay (cert / proof / edu rows)
   8.  Heading word-split mask animation (in-view triggers stagger)
   9.  Form validation visual states + submit spinner
   10. Reduced-motion respected everywhere
   ===================================================================== */

/* 0. Page-level horizontal clip (prevents off-screen drawer / decorations
   from extending document scroll width) */
html { overflow-x: clip; }
body { overflow-x: clip; }

/* 1. Touch + tap latency */
.btn,
a, button,
input, select, textarea,
.nav-toggle, .lang-toggle, .nav-logo, .contact-pill,
.proof-cell, .cert-card, .edu-row {
    touch-action: manipulation;
}

/* 2. Sticky-nav scroll offset on anchored sections */
section[id], #hero, #about, #credentials, #booking, #trusted {
    scroll-margin-top: 84px;
}
@media (max-width: 880px) {
    section[id], #hero, #about, #credentials, #booking, #trusted {
        scroll-margin-top: 68px;
    }
}

/* 3. Skip-to-main-content (visually hidden, visible on focus) */
.skip-link {
    position: fixed;
    inset-inline-start: 16px;
    top: 16px;
    z-index: 1000;
    padding: 12px 18px;
    background: var(--text);
    color: #fff;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    transform: translateY(-200%);
    transition: transform 0.28s var(--ease-out-expo);
    text-decoration: none;
    box-shadow: 0 8px 24px -8px rgba(11, 18, 32, 0.4);
}
.skip-link:focus-visible {
    transform: translateY(0);
    outline: 3px solid var(--primary);
    outline-offset: 3px;
}

/* 4. Sliding underline + active highlight on desktop nav links */
.nav-links a {
    position: relative;
}
@media (hover: hover) and (min-width: 881px) {
    .nav-links a::after {
        content: '';
        position: absolute;
        inset-block-end: -6px;
        inset-inline-start: 0;
        width: 100%;
        height: 2px;
        background: var(--primary);
        transform: scaleX(0);
        transform-origin: left center;
        transition: transform 0.32s var(--ease-out-expo);
        border-radius: 2px;
    }
    [dir="rtl"] .nav-links a::after { transform-origin: right center; }
    .nav-links a:hover::after,
    .nav-links a.active::after { transform: scaleX(1); }
    .nav-links a.active { color: var(--primary); }
}

/* 5. Mobile drawer + backdrop */
.nav-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(11, 18, 32, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease);
    z-index: 95;
}
body.drawer-open .nav-drawer-backdrop {
    opacity: 1;
    pointer-events: auto;
}
body.drawer-open { overflow: hidden; }

@media (max-width: 880px) {
    /* Full-width dropdown below the nav — clean, no side-panel weirdness */
    .nav-links {
        list-style: none !important;
        position: fixed !important;
        top: calc(58px + env(safe-area-inset-top)) !important;
        left: 0 !important;
        right: 0 !important;
        inset-inline-start: 0 !important;
        inset-inline-end: 0 !important;
        width: 100% !important;
        height: auto !important;
        max-height: 0;
        flex-direction: column !important;
        gap: 0 !important;
        padding: 0 24px !important;
        background: rgba(255, 255, 255, 0.98) !important;
        -webkit-backdrop-filter: saturate(180%) blur(24px);
        backdrop-filter: saturate(180%) blur(24px);
        box-shadow: 0 24px 40px -16px rgba(11, 18, 32, 0.10);
        border-bottom: 1px solid var(--border);
        transform: none !important;
        opacity: 0;
        overflow: hidden;
        transition: max-height .38s var(--ease), opacity .26s var(--ease), padding .26s var(--ease);
        z-index: 99;
        align-items: stretch !important;
        display: flex !important;
    }
    [dir="rtl"] .nav-links,
    [dir="ltr"] .nav-links {
        transform: none !important;
    }
    .nav-links.open,
    [dir="rtl"] .nav-links.open,
    [dir="ltr"] .nav-links.open {
        max-height: 70vh;
        opacity: 1;
        padding: 28px 24px 36px !important;
        transform: none !important;
    }
    .nav-links li { width: 100%; list-style: none; }
    .nav-links a {
        display: block;
        padding: 18px 6px;
        font-size: 17px;
        font-weight: 600;
        border-bottom: 1px solid var(--border);
        color: var(--text);
    }
    .nav-links li:last-child a { border-bottom: none; }
    html[data-lang="ar"] .nav-links a { font-family: var(--font-ar); font-weight: 700; }
    .nav-links a::after { display: none !important; }
    .nav-links a.active { color: var(--primary); }
}

/* 6. Ripple — buttons must clip and stack the ripple span */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn > * { position: relative; z-index: 1; }
.ripple {
    position: absolute;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.32;
    pointer-events: none;
    transform: scale(0);
    animation: rippleExpand 0.55s ease-out forwards;
    z-index: 0;
}
@keyframes rippleExpand {
    to { transform: scale(8); opacity: 0; }
}
.btn-primary .ripple { background: #fff; opacity: 0.38; }
.btn:active { transform: translateY(1px) scale(0.97); transition: transform 0.1s var(--ease); }

/* 7. Universal tilt + glare (applied to .cert-card, .proof-cell, .edu-row via JS) */
.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
}
.tilt-card.is-tilting {
    transition: transform 0.1s ease;
}
.tilt-glare {
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: radial-gradient(
        circle at var(--gx, 50%) var(--gy, 50%),
        rgba(255, 255, 255, 0.55) 0%,
        rgba(255, 255, 255, 0.18) 18%,
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    mix-blend-mode: overlay;
    z-index: 2;
}
.tilt-card.is-tilting .tilt-glare { opacity: 0.85; }
@media (prefers-reduced-motion: reduce) {
    .tilt-card { transform: none !important; transition: none !important; }
    .tilt-glare { display: none !important; }
}

/* 8. Form validation visual states */
.form-field input.is-invalid,
.form-field select.is-invalid,
.form-field textarea.is-invalid {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.16);
}
.form-field input.is-valid,
.form-field select.is-valid,
.form-field textarea.is-valid {
    border-color: var(--primary);
}
.form-error {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    color: var(--danger);
    font-size: 13px;
    font-weight: 500;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.22s var(--ease), max-height 0.22s var(--ease);
}
.form-field.has-error .form-error {
    opacity: 1;
    max-height: 60px;
}
.form-field.is-valid::after {
    content: '✓';
    position: absolute;
    inset-inline-end: 14px;
    bottom: 14px;
    color: var(--primary);
    font-weight: 700;
    pointer-events: none;
}
.form-field { position: relative; }

/* Submit-button loading spinner */
.form-submit { position: relative; }
.form-submit.is-submitting > *:not(.submit-spinner) { opacity: 0.18; }
.submit-spinner {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 22px;
    height: 22px;
    border: 2.5px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    animation: spin 0.85s linear infinite;
    animation-play-state: paused;
}
.form-submit.is-submitting .submit-spinner {
    opacity: 1;
    animation-play-state: running;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 10. A few extra touch-target enforcements on mobile */
@media (max-width: 880px) {
    .lang-toggle, .nav-toggle { min-width: 48px; min-height: 48px; }
    .contact-pill { min-height: 48px; }
    .btn { min-height: 48px; }
}

/* Nav shrink on scroll (existing `.nav.scrolled` hook gets visual treatment) */
.nav .nav-inner { transition: padding 0.25s var(--ease); }
.nav.scrolled .nav-inner { padding-block: 22px; }

/* Research & Recognition — full-width block beneath the credentials 2-col grid */
.credentials-extra {
    margin-top: clamp(40px, 5vw, 64px);
    padding-top: clamp(32px, 4vw, 48px);
    border-top: 1px solid var(--border);
}
.credentials-extra .edu-list {
    margin-top: 20px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
@media (max-width: 540px) {
    .credentials-extra .edu-list { grid-template-columns: 1fr; }
}

/* ============================================================
   BOOKING TABS — Consultation vs Business Collaboration
   ============================================================ */
.booking-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 6px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 28px;
}
.booking-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 14px 14px;
    background: transparent;
    border: 0;
    border-radius: var(--radius);
    cursor: pointer;
    color: var(--muted);
    transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
    text-align: center;
    min-height: 64px;
}
.booking-tab:hover { color: var(--text); }
.booking-tab[aria-selected="true"] {
    background: var(--bg);
    color: var(--text);
    box-shadow: 0 2px 8px -4px rgba(11, 18, 32, .08), 0 0 0 1px var(--border);
}
.booking-tab-title {
    font-weight: 600;
    font-size: 15px;
    letter-spacing: -.01em;
}
html[data-lang="ar"] .booking-tab-title { font-weight: 700; font-size: 14.5px; }
.booking-tab-meta {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--muted);
    letter-spacing: .02em;
}
html[data-lang="ar"] .booking-tab-meta { font-family: var(--font-ar); font-weight: 500; letter-spacing: 0; }

/* Panels */
.booking-panel {
    animation: panelFadeIn .35s var(--ease);
}
.booking-panel[hidden] { display: none; }
@keyframes panelFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Consultation meta strip */
.consultation-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
    margin-bottom: 22px;
}
.consultation-meta .meta-item {
    padding: 18px 14px;
    text-align: center;
    border-inline-end: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.consultation-meta .meta-item:last-child { border-inline-end: 0; }
.consultation-meta .meta-num {
    font-family: var(--font-mono);
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-dark, var(--primary));
    line-height: 1;
    letter-spacing: -.01em;
}
.consultation-meta .meta-label {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.3;
}
html[data-lang="ar"] .consultation-meta .meta-label { font-size: 12.5px; }

.consultation-desc {
    font-size: 14.5px;
    color: var(--muted);
    line-height: 1.72;
    margin: 0 0 20px;
}
html[data-lang="ar"] .consultation-desc { font-size: 14.5px; line-height: 1.85; }

/* Terms collapsible */
.terms-block {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 24px;
    overflow: hidden;
    background: var(--surface);
}
.terms-summary {
    list-style: none;
    padding: 13px 18px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13.5px;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    user-select: none;
    transition: background var(--t-fast);
}
.terms-summary:hover { background: var(--surface-2); }
.terms-summary::-webkit-details-marker { display: none; }
.terms-chevron {
    color: var(--muted);
    transition: transform var(--t-fast) var(--ease);
    display: inline-flex;
}
.terms-block[open] .terms-chevron { transform: rotate(180deg); }
.terms-list {
    padding: 6px 18px 16px;
    margin: 0;
    list-style: none;
    border-top: 1px solid var(--border);
}
.terms-list li {
    padding: 10px 0;
    font-size: 13.5px;
    line-height: 1.62;
    color: var(--muted);
    position: relative;
    padding-inline-start: 26px;
    border-bottom: 1px dashed var(--border);
}
html[data-lang="ar"] .terms-list li { font-size: 13.5px; line-height: 1.78; padding-inline-start: 24px; }
.terms-list li:last-child { border-bottom: 0; }
.terms-list li::before {
    content: '✓';
    position: absolute;
    inset-inline-start: 0;
    top: 9px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(0, 184, 107, .1);
    color: var(--primary-dark, var(--primary));
    text-align: center;
    line-height: 18px;
    font-size: 11px;
    font-weight: 700;
}
.terms-list li.term-no::before {
    content: '×';
    background: rgba(220, 50, 80, .1);
    color: #c52f44;
    font-size: 16px;
    line-height: 17px;
}

/* Checkbox field */
.checkbox-field {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    margin: 0 0 8px;
    cursor: pointer;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 13.5px;
    color: var(--text);
    line-height: 1.55;
    transition: border-color var(--t-fast);
}
.checkbox-field:hover { border-color: var(--text-2); }
.checkbox-field:has(input:checked) {
    border-color: var(--primary, #00B86B);
    background: rgba(0, 184, 107, .04);
}
.checkbox-field input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}
.checkbox-field .checkbox-mark {
    width: 20px;
    height: 20px;
    border: 1.5px solid var(--border-strong, var(--border));
    border-radius: 6px;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
    color: transparent;
    transition: all var(--t-fast) var(--ease);
}
.checkbox-field:has(input:checked) .checkbox-mark {
    background: var(--primary, #00B86B);
    border-color: var(--primary, #00B86B);
    color: #fff;
}
.checkbox-field input:focus-visible ~ .checkbox-mark {
    box-shadow: 0 0 0 3px rgba(0, 184, 107, .25);
}
.checkbox-text { flex: 1; min-width: 0; }
html[data-lang="ar"] .checkbox-text { font-size: 13.5px; line-height: 1.7; }

@media (max-width: 540px) {
    .booking-tab { padding: 12px 10px; min-height: 58px; }
    .booking-tab-title { font-size: 14px; }
    .consultation-meta { grid-template-columns: 1fr 1fr 1fr; }
    .consultation-meta .meta-item { padding: 14px 8px; }
    .consultation-meta .meta-num { font-size: 18px; }
}

/* Icon-based meta item (used for "focused topic") */
.consultation-meta .meta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark, var(--primary));
    height: 26px;
    margin-bottom: 4px;
}

/* Terms trigger button (replaces the old <details> accordion) */
.terms-trigger {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    cursor: pointer;
    transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
    margin-bottom: 22px;
    text-align: start;
    font: inherit;
}
.terms-trigger:hover {
    border-color: var(--text-2, var(--text));
    background: var(--surface-2);
}
.terms-trigger:focus-visible { outline-offset: 2px; }
.terms-trigger-icon {
    color: var(--muted);
    display: inline-flex;
    flex-shrink: 0;
}
.terms-trigger:hover .terms-trigger-icon { color: var(--text); }
.terms-trigger-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.terms-trigger-text strong {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -.005em;
}
html[data-lang="ar"] .terms-trigger-text strong { font-size: 14px; font-weight: 700; }
.terms-trigger-sub {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.4;
}
html[data-lang="ar"] .terms-trigger-sub { font-size: 12.5px; }
.terms-trigger-chevron {
    color: var(--muted);
    flex-shrink: 0;
    transition: transform var(--t-fast) var(--ease);
}
html[dir="rtl"] .terms-trigger-chevron { transform: scaleX(-1); }
.terms-trigger:hover .terms-trigger-chevron { transform: translateX(3px); color: var(--text); }
html[dir="rtl"] .terms-trigger:hover .terms-trigger-chevron { transform: scaleX(-1) translateX(3px); }

/* Inline terms link inside checkbox label */
.terms-inline-link {
    background: transparent;
    border: 0;
    padding: 0;
    font: inherit;
    color: var(--primary-dark, var(--primary));
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
    transition: opacity var(--t-fast);
}
.terms-inline-link:hover { opacity: .75; }
.terms-inline-link:focus-visible { outline-offset: 2px; border-radius: 2px; }

/* Terms modal */
.terms-modal {
    width: min(680px, 94vw);
    max-height: 88vh;
    max-height: 88dvh;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg);
    color: var(--text);
    overflow: hidden;
    box-shadow: 0 32px 80px -20px rgba(11, 18, 32, .35);
    inset: 0;
    margin: auto;
}
.terms-modal[open] { animation: termsModalIn .3s var(--ease); }
.terms-modal::backdrop {
    background: rgba(11, 18, 32, .55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: termsBackdropIn .3s var(--ease);
}
@keyframes termsModalIn {
    from { opacity: 0; transform: translateY(20px) scale(.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes termsBackdropIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.terms-modal-inner {
    display: flex;
    flex-direction: column;
    max-height: inherit;
    height: 88vh;
    height: 88dvh;
    max-height: 88dvh;
}
.terms-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    background: var(--bg);
}
.terms-modal-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    letter-spacing: -.01em;
}
html[data-lang="ar"] .terms-modal-header h3 { font-size: 17.5px; font-weight: 700; }
.terms-modal-close {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--t-fast) var(--ease);
    flex-shrink: 0;
}
.terms-modal-close:hover {
    color: var(--text);
    border-color: var(--text-2, var(--text));
    background: var(--surface-2);
}

.terms-modal-body {
    padding: 22px;
    overflow-y: auto;
    flex: 1;
    background: var(--bg);
}
.terms-intro {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.7;
    margin: 0 0 22px;
    padding: 12px 14px;
    background: var(--surface-2);
    border-radius: var(--radius-sm, 8px);
    border-inline-start: 3px solid var(--border);
}
html[data-lang="ar"] .terms-intro { font-size: 13.5px; line-height: 1.85; }

.terms-section {
    margin-bottom: 24px;
}
.terms-section:last-child { margin-bottom: 0; }
.terms-section h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 12px;
    letter-spacing: -.005em;
}
html[data-lang="ar"] .terms-section h4 { font-size: 15px; font-weight: 700; }
.terms-section-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--muted);
    flex-shrink: 0;
}
.terms-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.terms-section li {
    padding: 10px 0;
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.72;
    position: relative;
    padding-inline-start: 18px;
    border-bottom: 1px dashed var(--border);
}
html[data-lang="ar"] .terms-section li { line-height: 1.85; font-size: 13.5px; }
.terms-section li:last-child { border-bottom: 0; }
.terms-section li::before {
    content: '';
    position: absolute;
    inset-inline-start: 2px;
    top: 19px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--muted);
}
.terms-section li strong {
    display: block;
    color: var(--text);
    font-weight: 700;
    margin-bottom: 4px;
}
.terms-section li .dim {
    display: block;
    font-size: 12.5px;
    color: var(--dim, var(--muted));
}

/* Highlighted "Payment first" section */
.terms-section-key {
    background: rgba(0, 184, 107, .04);
    border: 1px solid rgba(0, 184, 107, .18);
    border-radius: var(--radius);
    padding: 18px 20px;
    margin-bottom: 24px;
}
.terms-section-key h4 { color: var(--primary-dark, var(--primary)); }
.terms-section-key .terms-section-num {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.terms-section-key li::before { background: var(--primary); }
.terms-section-key li strong { color: var(--text); }

/* ============================================================
   CINEMA SCROLL — lean, perf-safe, fail-safe
   Only applied when <html class="cinema-on"> is set by JS.
   If JS doesn't run, every element stays visible (no opacity:0).
   ============================================================ */

/* Reading-progress bar — fixed at the top */
.reading-progress {
    position: fixed;
    top: 0;
    inset-inline-start: 0;
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, var(--primary, #00B86B), var(--secondary, #06B6D4));
    transform-origin: left center;
    transform: scaleX(0);
    z-index: 9999;
    pointer-events: none;
    will-change: transform;
}
html[dir="rtl"] .reading-progress { transform-origin: right center; }

/* Smooth easing for the hero photo's continuous transform */
.hero-photo img,
.hero-photo .photo-card,
.photo-frame {
    transition: transform .12s linear, opacity .25s linear;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Fade-up entrance — only enabled when JS marks <html> with .cinema-on */
@media (prefers-reduced-motion: no-preference) {
    html.cinema-on .cinema-fade {
        opacity: 0;
        transform: translate3d(0, 28px, 0);
        transition:
            opacity .75s cubic-bezier(.22, 1, .36, 1),
            transform .85s cubic-bezier(.22, 1, .36, 1);
        will-change: opacity, transform;
    }
    html.cinema-on .cinema-fade.scroll-in {
        opacity: 1;
        transform: translate3d(0, 0, 0);
        will-change: auto;
    }

    /* Subtle stagger for sibling cards in grids/lists */
    html.cinema-on .cert-grid    > .cinema-fade:nth-child(2).scroll-in { transition-delay: .06s; }
    html.cinema-on .cert-grid    > .cinema-fade:nth-child(3).scroll-in { transition-delay: .12s; }
    html.cinema-on .cert-grid    > .cinema-fade:nth-child(4).scroll-in { transition-delay: .18s; }
    html.cinema-on .cert-grid    > .cinema-fade:nth-child(5).scroll-in { transition-delay: .24s; }
    html.cinema-on .cert-grid    > .cinema-fade:nth-child(6).scroll-in { transition-delay: .30s; }

    html.cinema-on .timeline     > .cinema-fade:nth-child(2).scroll-in { transition-delay: .06s; }
    html.cinema-on .timeline     > .cinema-fade:nth-child(3).scroll-in { transition-delay: .12s; }
    html.cinema-on .timeline     > .cinema-fade:nth-child(4).scroll-in { transition-delay: .18s; }
    html.cinema-on .timeline     > .cinema-fade:nth-child(5).scroll-in { transition-delay: .24s; }

    html.cinema-on .proof-grid   > .cinema-fade:nth-child(2).scroll-in { transition-delay: .08s; }
    html.cinema-on .proof-grid   > .cinema-fade:nth-child(3).scroll-in { transition-delay: .16s; }
    html.cinema-on .proof-grid   > .cinema-fade:nth-child(4).scroll-in { transition-delay: .24s; }

    html.cinema-on .edu-list     > .cinema-fade:nth-child(2).scroll-in { transition-delay: .07s; }

    html.cinema-on .process-list > .cinema-fade:nth-child(2).scroll-in { transition-delay: .08s; }
    html.cinema-on .process-list > .cinema-fade:nth-child(3).scroll-in { transition-delay: .16s; }

    html.cinema-on .topics-list  > .cinema-fade:nth-child(2).scroll-in { transition-delay: .07s; }
    html.cinema-on .topics-list  > .cinema-fade:nth-child(3).scroll-in { transition-delay: .14s; }
}

@media (prefers-reduced-motion: reduce) {
    .reading-progress { display: none; }
    .cinema-fade { opacity: 1 !important; transform: none !important; }
}

/* Prominent notice — "advisory consultation, not services" */
.terms-notice {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    background: rgba(220, 50, 80, .055);
    border: 1.5px solid rgba(220, 50, 80, .28);
    border-radius: var(--radius);
    margin-bottom: 22px;
}
.terms-notice-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(220, 50, 80, .12);
    color: #c52f44;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.terms-notice-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.terms-notice-text strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #c52f44;
    letter-spacing: -.005em;
    line-height: 1.35;
}
html[data-lang="ar"] .terms-notice-text strong { font-size: 14.5px; font-weight: 700; line-height: 1.55; }
.terms-notice-text > span:not(strong) {
    display: block;
    font-size: 13px;
    color: var(--text-2, var(--text));
    line-height: 1.65;
}
html[data-lang="ar"] .terms-notice-text > span:not(strong) { font-size: 13px; line-height: 1.78; }

/* Acceptance section (final summary) */
.terms-section-accept {
    background: rgba(0, 184, 107, .04);
    border: 1px solid rgba(0, 184, 107, .18);
    border-radius: var(--radius);
    padding: 18px 20px;
    margin-bottom: 8px;
}
.terms-section-accept h4 { color: var(--primary-dark, var(--primary)); }
.terms-section-accept .terms-section-num {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.terms-section-accept li::before { display: none; }
.terms-section-accept li {
    border-bottom: 0;
    padding: 4px 0;
    padding-inline-start: 0;
    color: var(--text);
    font-weight: 500;
}
.terms-section-accept li:last-child { padding-bottom: 0; }

/* Warning section (prohibited) */
.terms-section-warn {
    background: rgba(220, 50, 80, .03);
    border: 1px solid rgba(220, 50, 80, .15);
    border-radius: var(--radius);
    padding: 18px 20px;
    margin-bottom: 24px;
}
.terms-section-warn h4 { color: #c52f44; }
.terms-section-warn .terms-section-num {
    background: rgba(220, 50, 80, .1);
    border-color: rgba(220, 50, 80, .25);
    color: #c52f44;
}
.terms-section-warn li::before { background: #c52f44; }

.terms-modal-footer {
    padding: 16px 22px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--surface-2);
    flex-shrink: 0;
}
.terms-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    align-items: center;
}

/* Agreement checkbox inside modal footer */
.terms-agree {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
    position: relative;
}
.terms-agree:hover { border-color: var(--text-2, var(--text)); }
.terms-agree:has(input:checked) {
    border-color: var(--primary, #00B86B);
    background: rgba(0, 184, 107, .04);
}
.terms-agree input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}
.terms-agree .checkbox-mark {
    width: 22px;
    height: 22px;
    border: 1.5px solid var(--border-strong, var(--border));
    border-radius: 6px;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: transparent;
    transition: all var(--t-fast) var(--ease);
}
.terms-agree:has(input:checked) .checkbox-mark {
    background: var(--primary, #00B86B);
    border-color: var(--primary, #00B86B);
    color: #fff;
}
.terms-agree input:focus-visible ~ .checkbox-mark {
    box-shadow: 0 0 0 3px rgba(0, 184, 107, .25);
}
.terms-agree .checkbox-text {
    flex: 1;
    min-width: 0;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--text);
}
html[data-lang="ar"] .terms-agree .checkbox-text { font-size: 13.5px; line-height: 1.75; }

/* Disabled state for aria-disabled buttons/links */
.btn[aria-disabled="true"] {
    opacity: .45;
    pointer-events: none;
    cursor: not-allowed;
    box-shadow: none;
}
.btn[aria-disabled="true"]:hover { transform: none; }

/* Booking — trust badge above the CTA */
.booking-trust {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 12px;
    color: var(--text-2, var(--muted));
    font-weight: 500;
    margin-bottom: 14px;
    letter-spacing: 0;
}
html[data-lang="ar"] .booking-trust { font-size: 12.5px; }
.booking-trust-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary, #00B86B);
    position: relative;
    flex-shrink: 0;
}
.booking-trust-dot::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid var(--primary, #00B86B);
    opacity: 0;
    animation: trustPulse 2.4s ease-out infinite;
}
@keyframes trustPulse {
    0%   { transform: scale(.5); opacity: .8; }
    100% { transform: scale(2.2); opacity: 0; }
}
.booking-trust-sep { color: var(--dim, var(--muted)); opacity: .5; }

/* Booking CTA — refined professional dark card */
.booking-cta {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 20px 24px;
    background: var(--text, #0B1220);
    border: 1px solid var(--text, #0B1220);
    border-radius: var(--radius-lg);
    color: #fff;
    cursor: pointer;
    transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
    text-align: start;
    font: inherit;
    box-shadow: 0 10px 30px -12px rgba(11, 18, 32, .35), 0 1px 0 rgba(255, 255, 255, .04) inset;
    margin-top: 0;
    position: relative;
}
.booking-cta:hover {
    background: #1A2238;
    transform: translateY(-2px);
    box-shadow: 0 18px 40px -14px rgba(11, 18, 32, .45), 0 1px 0 rgba(255, 255, 255, .06) inset;
}
.booking-cta:active { transform: translateY(0); }
.booking-cta:focus-visible { outline: 3px solid var(--primary, #00B86B); outline-offset: 3px; }
.booking-cta-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 6px 16px -4px rgba(37, 211, 102, .55);
}
.booking-cta-icon svg { color: #fff; }
.booking-cta-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.booking-cta-text strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -.005em;
    line-height: 1.3;
}
html[data-lang="ar"] .booking-cta-text strong { font-size: 16px; font-weight: 700; line-height: 1.45; }
.booking-cta-sub {
    font-size: 12.5px;
    color: rgba(255, 255, 255, .65);
    line-height: 1.45;
}
html[data-lang="ar"] .booking-cta-sub { font-size: 12.5px; line-height: 1.6; }
.booking-cta-arrow {
    flex-shrink: 0;
    color: rgba(255, 255, 255, .55);
    transition: transform var(--t-fast) var(--ease), color var(--t-fast);
    display: inline-flex;
}
html[dir="rtl"] .booking-cta-arrow { transform: scaleX(-1); }
.booking-cta:hover .booking-cta-arrow { color: #fff; transform: translateX(4px); }
html[dir="rtl"] .booking-cta:hover .booking-cta-arrow { transform: scaleX(-1) translateX(4px); }

/* Assurance row below the CTA */
.booking-assurance {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 22px;
    margin-top: 16px;
    padding: 12px 16px;
    background: var(--surface, transparent);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
}
.booking-assurance-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
}
html[data-lang="ar"] .booking-assurance-item { font-size: 12.5px; }
.booking-assurance-item svg { color: var(--primary-dark, var(--primary, #00B86B)); flex-shrink: 0; }

/* Legacy class kept harmless */
.booking-cta-note {
    display: none;
}

@media (max-width: 540px) {
    .booking-cta { padding: 18px 20px; gap: 14px; }
    .booking-cta-icon { width: 42px; height: 42px; border-radius: 11px; }
    .booking-cta-text strong { font-size: 15px; }
    .booking-cta-sub { font-size: 12px; }
    .booking-assurance { gap: 8px 14px; padding: 10px 12px; }
    .booking-assurance-item { font-size: 11.5px; }
    .booking-trust { font-size: 11.5px; padding: 6px 12px; gap: 8px; }
    .booking-trust-sep { display: none; }
    .terms-modal-actions { flex-direction: column-reverse; width: 100%; }
    .terms-modal-actions .btn { width: 100%; justify-content: center; }
}

@media (max-width: 540px) {
    .terms-modal { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; border: 0; inset: 0; margin: 0; }
    .terms-modal-inner { height: 100dvh; max-height: 100dvh; }
    .terms-modal-header { padding: 16px 18px; }
    .terms-modal-body { padding: 18px; }
    .terms-modal-footer { padding: 14px 18px; flex-direction: column-reverse; gap: 8px; }
    .terms-modal-footer .btn { width: 100%; }
}

/* Old price toggle — keep CSS but no longer used in HTML */
.meta-price-toggle {
    position: relative;
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    font: inherit;
    text-align: center;
    padding: 18px 14px;
    border-inline-end: 1px solid var(--border);
    transition: background var(--t-fast) var(--ease);
    overflow: hidden;
}
.meta-price-toggle:last-child { border-inline-end: 0; }
.meta-price-toggle:hover { background: var(--surface-2); }
.meta-price-toggle:focus-visible { outline-offset: -3px; }
.meta-price-toggle .price-hidden,
.meta-price-toggle .price-revealed {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 50px;
}
.meta-price-toggle .price-hidden .price-icon {
    color: var(--muted);
    display: inline-flex;
    transition: color var(--t-fast);
}
.meta-price-toggle:hover .price-hidden .price-icon { color: var(--text); }
.meta-price-toggle .price-hidden .meta-label {
    font-size: 11.5px;
    color: var(--muted);
    line-height: 1.3;
    font-weight: 500;
}
html[data-lang="ar"] .meta-price-toggle .price-hidden .meta-label { font-size: 12px; }
.meta-price-toggle .price-revealed { display: none; }
.meta-price-toggle[aria-expanded="true"] .price-hidden { display: none; }
.meta-price-toggle[aria-expanded="true"] .price-revealed {
    display: flex;
    animation: priceReveal .4s var(--ease);
}
@keyframes priceReveal {
    from { opacity: 0; transform: scale(.92); }
    to   { opacity: 1; transform: scale(1); }
}
@media (max-width: 540px) {
    .meta-price-toggle { padding: 14px 8px; }
    .meta-price-toggle .price-hidden .meta-label { font-size: 10.5px; }
}
