:root {
    --ink: #0c1a2b;
    --ink-soft: #2a3a4f;
    --mid: #5a6a7d;
    --line: #e3e7ed;
    --bg: #ffffff;
    --bg-soft: #f6f8fb;
    --bg-dark: #0c1a2b;
    --red: #c0392b;
    --red-dark: #962d22;
    --accent: #1f6feb;
    --radius: 6px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }

h1, h2, h3, h4, h5 { font-family: 'Manrope', 'Inter', sans-serif; color: var(--ink); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); letter-spacing: -0.015em; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }
h5 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink); }

p { color: var(--ink-soft); }

.container { max-width: 1240px; margin: 0 auto; padding: 0 1.5rem; }

/* Buttons */
.btn-primary, .btn-outline {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.75rem 1.25rem; border-radius: var(--radius);
    font-weight: 600; font-size: 0.9375rem; transition: all 0.2s;
    cursor: pointer; border: 0;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-outline { background: transparent; border: 1.5px solid var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }

/* Nav (dark - logo wordmark is white) */
.nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(12, 26, 43, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1.5rem; }
.nav-logo img { height: 40px; }
.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-links > a, .nav-link, .nav-mega-toggle {
    color: rgba(255,255,255,0.86); font-weight: 500; font-size: 0.9375rem;
    padding: 0.5rem 0.85rem; border-radius: 4px;
    background: transparent; border: 0; cursor: pointer; font-family: inherit;
    display: inline-flex; align-items: center; gap: 4px;
    text-decoration: none;
}
.nav-links > a:hover, .nav-link:hover, .nav-mega-toggle:hover { color: #fff; background: rgba(255,255,255,0.08); }
.caret { font-size: 0.7em; opacity: 0.7; }
.nav-toggle span { background: #fff !important; }

/* Mega menu */
.nav-link { display: inline-flex; align-items: center; }
.nav-mega { position: static; }
.nav-mega-panel {
    position: absolute; top: 72px; left: 50%; transform: translateX(-50%) translateY(-8px);
    width: min(900px, calc(100vw - 3rem));
    background: #fff; border: 1px solid var(--line); border-radius: 10px;
    box-shadow: 0 24px 60px rgba(12,26,43,0.18);
    padding: 1.5rem; opacity: 0; visibility: hidden;
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s; z-index: 60;
}
.nav-mega-panel[data-cols="1"] { width: min(420px, calc(100vw - 3rem)); }
.nav-mega:hover .nav-mega-panel,
.nav-mega.open .nav-mega-panel {
    opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.nav-mega-grid { display: grid; gap: 0.5rem; }
.nav-mega-item {
    display: block; padding: 0.85rem 1rem; border-radius: 8px;
    color: var(--ink); transition: background 0.15s;
}
.nav-mega-item:hover { background: var(--bg-soft); color: var(--ink); }
.nav-mega-title { display: block; font-weight: 600; font-size: 0.95rem; }
.nav-mega-desc { display: block; font-size: 0.82rem; color: var(--mid); margin-top: 0.2rem; line-height: 1.45; }
.nav-mega-item:hover .nav-mega-title { color: var(--red); }

.nav-mega-overlay {
    position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
    background: rgba(12,26,43,0.35); opacity: 0; visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s; z-index: 40; pointer-events: none;
}
.nav.has-open-mega .nav-mega-overlay { opacity: 1; visibility: visible; }

.nav-cta-desktop { padding: 0.6rem 1rem; }
.nav-cta-mobile { display: none; }
.nav-toggle { display: none; background: transparent; border: 0; cursor: pointer; width: 32px; height: 32px; padding: 6px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 4px 0; transition: 0.2s; }
.nav-toggle.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============================================================
   Mobile navigation - rewritten clean.
   Drawer is a full-viewport accordion. One panel open at a time.
   ============================================================ */
@media (max-width: 900px) {
    /* backdrop-filter creates a containing block for fixed descendants - kill on mobile */
    .nav { backdrop-filter: none; -webkit-backdrop-filter: none; background: #0c1a2b; }
    .nav-cta-desktop { display: none; }
    .nav-toggle { display: block; }
    .nav-mega-overlay { display: none; }

    /* Drawer container: full viewport below the 72px nav */
    .nav-links {
        position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
        background: #0c1a2b; z-index: 200;
        display: flex; flex-direction: column; align-items: stretch;
        padding: 0.75rem 1rem 1.5rem; gap: 0;
        overflow-y: auto; -webkit-overflow-scrolling: touch;
        transform: translateX(100%); transition: transform 0.25s ease;
    }
    .nav-links.open { transform: translateX(0); }

    /* Top-level rows (simple links + mega toggles) */
    .nav-links > a,
    .nav-mega-toggle {
        display: flex !important; align-items: center; justify-content: space-between;
        width: 100%; padding: 1rem 0.75rem;
        font-size: 1.05rem; font-weight: 600;
        color: #fff !important; text-decoration: none;
        background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,0.08);
        border-radius: 0; cursor: pointer;
    }
    .nav-mega-toggle .caret {
        font-size: 0.65em; opacity: 0.55; transition: transform 0.2s;
    }
    .nav-mega.open .nav-mega-toggle .caret {
        transform: rotate(180deg); opacity: 1; color: var(--red);
    }
    .nav-mega.open .nav-mega-toggle { color: var(--red) !important; border-bottom-color: rgba(192,57,43,0.3); }

    /* Mega container - full-width accordion, NO absolute, NO transform */
    .nav-mega {
        position: static !important;
        width: 100%;
    }
    .nav-mega-panel {
        position: static !important;
        opacity: 1 !important; visibility: visible !important;
        transform: none !important; left: auto !important; top: auto !important;
        width: 100% !important; max-width: none !important;
        background: transparent !important; box-shadow: none !important;
        border: 0 !important; border-radius: 0 !important;
        padding: 0 !important;
        max-height: 0; overflow: hidden;
        transition: max-height 0.3s ease;
    }
    .nav-mega.open .nav-mega-panel {
        max-height: 1600px;
        padding: 0.25rem 0 0.75rem !important;
    }
    /* Override desktop hover behaviour entirely on mobile */
    .nav-mega:hover .nav-mega-panel { transform: none !important; }

    .nav-mega-grid {
        display: flex !important; flex-direction: column;
        grid-template-columns: 1fr !important; gap: 0 !important;
    }
    .nav-mega-item {
        display: block; width: 100%;
        padding: 0.75rem 1rem 0.75rem 1.5rem;
        color: rgba(255,255,255,0.88);
        border-radius: 0; background: transparent;
    }
    .nav-mega-item:hover, .nav-mega-item:active {
        background: rgba(255,255,255,0.05);
    }
    .nav-mega-title {
        color: #fff !important; font-weight: 600; font-size: 0.95rem;
    }
    .nav-mega-desc {
        color: rgba(255,255,255,0.55) !important; font-size: 0.78rem;
        margin-top: 0.15rem; line-height: 1.4;
    }
    .nav-mega-item:hover .nav-mega-title { color: var(--red) !important; }

    /* Bottom contact CTA in drawer */
    .nav-cta-mobile {
        display: inline-flex !important; justify-content: center;
        margin-top: 1.25rem; padding: 1rem 1.5rem; font-size: 1rem;
        border-bottom: 0;
    }
}

/* Animated gradient hero (applies to .page-hero and .home-hero) */
@property --hc-0 { syntax: '<color>'; inherits: false; initial-value: hsla(217, 100%, 30%, 1); }
@property --hc-1 { syntax: '<color>'; inherits: false; initial-value: hsla(0, 0%, 0%, 1); }
@property --hc-2 { syntax: '<color>'; inherits: false; initial-value: hsla(279, 67%, 27%, 1); }
@property --hc-3 { syntax: '<color>'; inherits: false; initial-value: hsla(279, 67%, 27%, 1); }
@property --hc-4 { syntax: '<color>'; inherits: false; initial-value: hsla(217, 100%, 39%, 1); }
@property --hc-5 { syntax: '<color>'; inherits: false; initial-value: hsla(217, 100%, 30%, 1); }
@property --hc-6 { syntax: '<color>'; inherits: false; initial-value: hsla(217, 100%, 47%, 1); }
@property --hx-0 { syntax: '<percentage>'; inherits: false; initial-value: 95%; }
@property --hy-0 { syntax: '<percentage>'; inherits: false; initial-value: 75%; }
@property --hx-1 { syntax: '<percentage>'; inherits: false; initial-value: 95%; }
@property --hy-1 { syntax: '<percentage>'; inherits: false; initial-value: 15%; }
@property --hx-2 { syntax: '<percentage>'; inherits: false; initial-value: 2%; }
@property --hy-2 { syntax: '<percentage>'; inherits: false; initial-value: 86%; }
@property --hx-3 { syntax: '<percentage>'; inherits: false; initial-value: 93%; }
@property --hy-3 { syntax: '<percentage>'; inherits: false; initial-value: 94%; }
@property --hx-4 { syntax: '<percentage>'; inherits: false; initial-value: 55%; }
@property --hy-4 { syntax: '<percentage>'; inherits: false; initial-value: 101%; }
@property --hx-5 { syntax: '<percentage>'; inherits: false; initial-value: 90%; }
@property --hy-5 { syntax: '<percentage>'; inherits: false; initial-value: 47%; }
@property --hx-6 { syntax: '<percentage>'; inherits: false; initial-value: 46%; }
@property --hy-6 { syntax: '<percentage>'; inherits: false; initial-value: 72%; }
@property --hs0a { syntax: '<percentage>'; inherits: false; initial-value: 8%; }
@property --hs0b { syntax: '<percentage>'; inherits: false; initial-value: 56%; }
@property --hs1a { syntax: '<percentage>'; inherits: false; initial-value: 1%; }
@property --hs1b { syntax: '<percentage>'; inherits: false; initial-value: 62%; }
@property --hs2a { syntax: '<percentage>'; inherits: false; initial-value: 8%; }
@property --hs2b { syntax: '<percentage>'; inherits: false; initial-value: 49%; }
@property --hs3a { syntax: '<percentage>'; inherits: false; initial-value: 8%; }
@property --hs3b { syntax: '<percentage>'; inherits: false; initial-value: 49%; }
@property --hs4a { syntax: '<percentage>'; inherits: false; initial-value: 18%; }
@property --hs4b { syntax: '<percentage>'; inherits: false; initial-value: 50%; }
@property --hs5a { syntax: '<percentage>'; inherits: false; initial-value: 11%; }
@property --hs5b { syntax: '<percentage>'; inherits: false; initial-value: 52%; }
@property --hs6a { syntax: '<percentage>'; inherits: false; initial-value: 6%; }
@property --hs6b { syntax: '<percentage>'; inherits: false; initial-value: 36%; }

@keyframes hero-aura {
    0% {
        --hc-0: hsla(calc(var(--hero-hue) + 0), 100%, 30%, 1);
        --hs0a: 8%; --hs0b: 56%; --hx-0: 95%; --hy-0: 75%;
        --hs1a: 1%; --hs1b: 62%; --hc-1: hsla(0, 0%, 6%, 1);
        --hy-1: 15%; --hx-1: 95%;
        --hx-2: 2%; --hy-2: 86%; --hc-2: hsla(calc(var(--hero-hue) + 62), 67%, 27%, 1);
        --hs2a: 8%; --hs2b: 49%;
        --hy-3: 94%; --hx-3: 93%; --hs3a: 8%; --hs3b: 49%;
        --hc-3: hsla(calc(var(--hero-hue) + 62), 67%, 27%, 1);
        --hx-4: 55%; --hy-4: 101%; --hc-4: hsla(calc(var(--hero-hue) + 0), 100%, 39%, 1);
        --hs4a: 18%; --hs4b: 50%;
        --hx-5: 90%; --hy-5: 47%; --hs5a: 11%; --hs5b: 52%;
        --hc-5: hsla(calc(var(--hero-hue) + 0), 100%, 30%, 1);
        --hy-6: 72%; --hx-6: 46%; --hc-6: hsla(calc(var(--hero-hue) + 0), 100%, 47%, 1);
        --hs6a: 6%; --hs6b: 36%;
    }
    50% {
        --hc-0: hsla(calc(var(--hero-hue) + 12), 100%, 30%, 1);
        --hs0a: 9%; --hs0b: 47%; --hx-0: 25%; --hy-0: 90%;
        --hs1a: 9%; --hs1b: 73%; --hc-1: hsla(0, 0%, 6%, 1);
        --hy-1: 12%; --hx-1: 3%;
        --hx-2: 75%; --hy-2: 71%; --hc-2: hsla(calc(var(--hero-hue) + 62), 67%, 27%, 1);
        --hs2a: 9%; --hs2b: 49%;
        --hy-3: 97%; --hx-3: 51%; --hs3a: 9%; --hs3b: 49%;
        --hc-3: hsla(calc(var(--hero-hue) + 62), 67%, 27%, 1);
        --hx-4: 28%; --hy-4: 75%; --hc-4: hsla(calc(var(--hero-hue) + 12), 100%, 39%, 1);
        --hs4a: 9%; --hs4b: 49%;
        --hx-5: 42%; --hy-5: 102%; --hs5a: 9%; --hs5b: 49%;
        --hc-5: hsla(calc(var(--hero-hue) + 12), 100%, 30%, 1);
        --hy-6: 97%; --hx-6: 42%; --hc-6: hsla(calc(var(--hero-hue) + 12), 100%, 39%, 1);
        --hs6a: 9%; --hs6b: 47%;
    }
    100% {
        --hs1a: 9%; --hs1b: 39%; --hc-1: hsla(0, 0%, 6%, 1);
        --hy-1: 14%; --hx-1: 54%;
        --hx-2: 98%; --hy-2: 95%; --hc-2: hsla(calc(var(--hero-hue) + 62), 67%, 27%, 1);
        --hs2a: 10%; --hs2b: 50%;
        --hy-3: 74%; --hx-3: 25%; --hs3a: 10%; --hs3b: 50%;
        --hc-3: hsla(calc(var(--hero-hue) + 62), 67%, 27%, 1);
        --hy-6: 93%; --hx-6: 90%; --hc-6: hsla(calc(var(--hero-hue) + 0), 100%, 31%, 1);
        --hs6a: 9%; --hs6b: 47%;
    }
}

.hero-animated {
    background-color: hsla(calc(var(--hero-hue) + 45), 82%, 4%, 1);
    background-image:
        radial-gradient(circle at var(--hx-0) var(--hy-0), var(--hc-0) var(--hs0a), transparent var(--hs0b)),
        radial-gradient(circle at var(--hx-1) var(--hy-1), var(--hc-1) var(--hs1a), transparent var(--hs1b)),
        radial-gradient(circle at var(--hx-2) var(--hy-2), var(--hc-2) var(--hs2a), transparent var(--hs2b)),
        radial-gradient(circle at var(--hx-3) var(--hy-3), var(--hc-3) var(--hs3a), transparent var(--hs3b)),
        radial-gradient(circle at var(--hx-4) var(--hy-4), var(--hc-4) var(--hs4a), transparent var(--hs4b)),
        radial-gradient(circle at var(--hx-5) var(--hy-5), var(--hc-5) var(--hs5a), transparent var(--hs5b)),
        radial-gradient(circle at var(--hx-6) var(--hy-6), var(--hc-6) var(--hs6a), transparent var(--hs6b));
    animation: hero-aura 18s linear infinite alternate;
    background-blend-mode: normal, normal, normal, normal, normal, normal, normal;
    will-change: background-image, background-color; contain: paint;
}
@media (prefers-reduced-motion: reduce) {
    .hero-animated { animation: none; }
}

/* Page hero */
.page-hero {
    color: #fff; padding: 4.5rem 0 3.5rem; text-align: center;
    position: relative; overflow: hidden;
}
.page-hero::before {
    content: ''; position: absolute; inset: 0; z-index: 0;
    background-color: hsla(calc(var(--hero-hue) + 45), 82%, 4%, 1);
    background-image:
        radial-gradient(circle at var(--hx-0) var(--hy-0), var(--hc-0) var(--hs0a), transparent var(--hs0b)),
        radial-gradient(circle at var(--hx-1) var(--hy-1), var(--hc-1) var(--hs1a), transparent var(--hs1b)),
        radial-gradient(circle at var(--hx-2) var(--hy-2), var(--hc-2) var(--hs2a), transparent var(--hs2b)),
        radial-gradient(circle at var(--hx-3) var(--hy-3), var(--hc-3) var(--hs3a), transparent var(--hs3b)),
        radial-gradient(circle at var(--hx-4) var(--hy-4), var(--hc-4) var(--hs4a), transparent var(--hs4b)),
        radial-gradient(circle at var(--hx-5) var(--hy-5), var(--hc-5) var(--hs5a), transparent var(--hs5b)),
        radial-gradient(circle at var(--hx-6) var(--hy-6), var(--hc-6) var(--hs6a), transparent var(--hs6b));
    animation: hero-aura 18s linear infinite alternate;
    will-change: background-image; contain: paint;
}
@media (prefers-reduced-motion: reduce) { .page-hero::before { animation: none; } }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; }
.page-hero .eyebrow { font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.7; margin-bottom: 0.75rem; color: rgba(255,255,255,0.85); }
.page-hero p { color: rgba(255,255,255,0.88); max-width: 720px; margin: 1rem auto 0; font-size: 1.05rem; }

/* Home hero - animated gradient mesh.
   Uses background-position animation (works everywhere) instead of @property
   var animation (which is patchy on iOS Safari / older Android). */
.home-hero {
    color: #fff; min-height: 88vh; display: flex; align-items: center;
    padding: 6rem 0 5rem; position: relative; overflow: hidden;
    background-color: #0c1a2b;
    background-image:
        radial-gradient(circle at center, rgba(192,57,43,0.55) 0%, transparent 45%),
        radial-gradient(circle at center, rgba(31,111,235,0.55) 0%, transparent 45%),
        radial-gradient(circle at center, rgba(76,29,149,0.55) 0%, transparent 50%),
        radial-gradient(circle at center, rgba(13,148,136,0.40) 0%, transparent 45%);
    background-size: 110% 110%, 100% 100%, 130% 130%, 90% 90%;
    background-repeat: no-repeat;
    background-position: 18% 22%, 82% 18%, 62% 88%, 30% 78%;
    animation: home-hero-drift 22s ease-in-out infinite alternate;
    will-change: background-position;
}
@keyframes home-hero-drift {
    0%   { background-position: 18% 22%, 82% 18%, 62% 88%, 30% 78%; }
    25%  { background-position: 32% 38%, 68% 32%, 78% 72%, 18% 62%; }
    50%  { background-position: 45% 28%, 55% 48%, 40% 78%, 50% 88%; }
    75%  { background-position: 25% 50%, 75% 28%, 55% 65%, 38% 92%; }
    100% { background-position: 50% 30%, 50% 50%, 70% 50%, 25% 70%; }
}
@media (prefers-reduced-motion: reduce) {
    .home-hero { animation: none; }
}
.home-hero .home-hero-video,
.home-hero .home-hero-bg {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: 0;
}
/* Light overlay so the video stays visible. Keeps a vignette + brand tint without burying it. */
.home-hero .home-hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background:
        linear-gradient(90deg, rgba(12,26,43,0.78) 0%, rgba(12,26,43,0.55) 35%, rgba(12,26,43,0.18) 70%, rgba(12,26,43,0.05) 100%),
        linear-gradient(180deg, rgba(12,26,43,0.15) 0%, transparent 35%, rgba(12,26,43,0.45) 100%);
}
.home-hero .home-hero-overlay::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse 60% 80% at 25% 50%, rgba(192,57,43,0.18), transparent 70%);
}
.home-hero .container { position: relative; z-index: 2; width: 100%; }
.home-hero .lead { max-width: 580px; }
.home-hero .eyebrow { font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.7); margin-bottom: 1rem; }
.home-hero h1 { color: #fff; font-size: clamp(2.4rem, 5vw, 4rem); max-width: 900px; }
.home-hero h1 em { font-style: normal; color: var(--red); }
.home-hero .lead { color: rgba(255,255,255,0.82); max-width: 720px; margin-top: 1.25rem; font-size: 1.1rem; line-height: 1.6; }
.home-hero .hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.home-hero .btn-outline { color: #fff; border-color: rgba(255,255,255,0.5); }
.home-hero .btn-outline:hover { background: #fff; color: var(--ink); }

/* Sections */
.section { padding: 4.5rem 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--bg-dark); color: #fff; }
.section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark p { color: rgba(255,255,255,0.78); }

.section-header { max-width: 760px; margin-bottom: 2.5rem; }
.section-header.centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-header .eyebrow { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--red); font-weight: 600; margin-bottom: 0.75rem; }
.section-header p { margin-top: 0.75rem; font-size: 1.025rem; }

/* Priority service cards */
.priority-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.priority-card {
    background: #fff; border: 1px solid var(--line); border-radius: 10px;
    padding: 2rem; transition: all 0.25s; position: relative; overflow: hidden;
    display: flex; flex-direction: column;
}
.priority-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 0.3s;
}
.priority-card:hover { box-shadow: 0 18px 48px rgba(12,26,43,0.10); transform: translateY(-4px); }
.priority-card:hover::before { transform: scaleX(1); }
.priority-num { font-size: 0.78rem; letter-spacing: 0.18em; color: var(--red); font-weight: 700; margin-bottom: 0.75rem; }
.priority-card h3 { margin-bottom: 0.5rem; }
.priority-card .tagline { font-size: 0.95rem; color: var(--mid); margin-bottom: 1rem; font-weight: 500; }
.priority-card .body { font-size: 0.94rem; flex-grow: 1; }
.priority-card .tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.25rem; }
.priority-card .tag { font-size: 0.74rem; padding: 0.28rem 0.6rem; background: var(--bg-soft); border-radius: 999px; color: var(--ink-soft); font-weight: 500; }
.priority-card .more { margin-top: 1.25rem; font-weight: 600; font-size: 0.9rem; }
@media (max-width: 900px) { .priority-grid { grid-template-columns: 1fr; } }

/* Cybersecurity products - clean icon-led grid (no card chrome) */
.cyber-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem 1.75rem; margin-top: 2.5rem; }
.cyber-item { display: flex; gap: 0.9rem; align-items: flex-start; padding: 0.5rem 0; }
.cyber-item-icon {
    flex-shrink: 0; width: 42px; height: 42px; border-radius: 10px;
    background: rgba(192,57,43,0.08); color: var(--red);
    display: flex; align-items: center; justify-content: center;
}
.cyber-item-text .cat { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mid); font-weight: 600; margin-bottom: 0.15rem; }
.cyber-item-text .name { font-weight: 600; font-size: 0.95rem; color: var(--ink); line-height: 1.35; }
@media (max-width: 900px) { .cyber-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cyber-grid { grid-template-columns: 1fr; } }

/* Check list (used in enterprise solutions feature columns) */
.check-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem 1.25rem; padding: 0; }
.check-list li { display: flex; align-items: center; gap: 0.55rem; font-size: 0.94rem; color: var(--ink); }
.check-icon { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(192,57,43,0.10); color: var(--red); flex-shrink: 0; }
@media (max-width: 700px) { .check-list { grid-template-columns: 1fr; } }

/* Card icon (priority cards, feature items) */
.card-icon {
    width: 48px; height: 48px; border-radius: 12px;
    background: linear-gradient(135deg, rgba(192,57,43,0.12), rgba(192,57,43,0.04));
    color: var(--red); display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.1rem;
}
.card-icon svg { width: 24px; height: 24px; }
.feature-item .card-icon { width: 40px; height: 40px; margin-bottom: 0.85rem; }
.feature-item .card-icon svg { width: 20px; height: 20px; }
.solution-tile .card-icon { width: 40px; height: 40px; margin-bottom: 0.75rem; }
.solution-tile .card-icon svg { width: 20px; height: 20px; }
.section-dark .card-icon { background: rgba(192,57,43,0.18); color: #ff8a7a; }

/* Solutions row */
.solutions-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.solution-tile {
    background: #fff; border: 1px solid var(--line); border-radius: 8px;
    padding: 1.25rem; transition: all 0.2s; color: var(--ink);
}
.solution-tile:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); }
.solution-tile h4 { font-size: 1rem; margin-bottom: 0.25rem; color: inherit; }
.solution-tile .arr { font-size: 0.85rem; opacity: 0.6; margin-top: 0.5rem; }
@media (max-width: 900px) { .solutions-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .solutions-row { grid-template-columns: 1fr; } }

/* BOT process */
.bot-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: 2rem; }
.bot-step {
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px; padding: 1.5rem;
}
.bot-step .num { font-size: 0.78rem; letter-spacing: 0.18em; color: var(--red); font-weight: 700; margin-bottom: 0.75rem; }
.bot-step h4 { color: #fff; margin-bottom: 0.5rem; }
.bot-step p { font-size: 0.9rem; color: rgba(255,255,255,0.75); }
@media (max-width: 900px) { .bot-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .bot-steps { grid-template-columns: 1fr; } }

/* Stats / countries */
.stats-band {
    display: grid; grid-template-columns: repeat(4, 1fr);
    background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
}
.stat-item { padding: 1.75rem 1.25rem; text-align: center; border-right: 1px solid var(--line); }
.stat-item:last-child { border-right: 0; }
.stat-item .value { font-size: 2.25rem; font-weight: 800; color: var(--ink); font-family: 'Manrope', sans-serif; }
.stat-item .label { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mid); margin-top: 0.4rem; }
@media (max-width: 700px) { .stats-band { grid-template-columns: repeat(2, 1fr); } .stat-item { border-bottom: 1px solid var(--line); } .stat-item:nth-child(odd) { border-right: 1px solid var(--line); } }

.countries-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.75rem; margin-top: 1.5rem; }
.country-cell { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 0.85rem; text-align: center; font-weight: 500; font-size: 0.92rem; }
@media (max-width: 700px) { .countries-grid { grid-template-columns: repeat(2, 1fr); } }

/* Clients marquee (desktop) - uniform 50px-tall cells */
.clients-marquee { overflow: hidden; padding: 1rem 0; background: transparent; }
.clients-track { display: flex; gap: 3rem; align-items: center; animation: scroll 40s linear infinite; width: max-content; }
.clients-track img {
    height: 50px; width: 130px; object-fit: contain;
    opacity: 0.7; filter: grayscale(0.35); transition: 0.2s;
}
.clients-track img:hover { opacity: 1; filter: none; }
@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Generic content blocks */
.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.content-grid.reverse > div:first-child { order: 2; }
@media (max-width: 900px) { .content-grid, .content-grid.reverse { grid-template-columns: 1fr; } .content-grid.reverse > div:first-child { order: 0; } }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.feature-item { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 1.25rem; }
.feature-item h4 { margin-bottom: 0.4rem; font-size: 1.02rem; }
.feature-item p { font-size: 0.9rem; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .feature-grid { grid-template-columns: 1fr; } }

.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.pillar { padding: 1.5rem; border-left: 3px solid var(--red); background: var(--bg-soft); border-radius: 0 8px 8px 0; }
.pillar h4 { margin-bottom: 0.4rem; }
.pillar p { font-size: 0.92rem; }
.pillar .card-icon { width: 38px; height: 38px; margin-bottom: 0.75rem; }
.pillar .card-icon svg { width: 18px; height: 18px; }
.bot-step .card-icon { width: 40px; height: 40px; margin-bottom: 0.85rem; background: rgba(192,57,43,0.18); color: #ff8a7a; }
.bot-step .card-icon svg { width: 20px; height: 20px; }
.timeline-item .card-icon { width: 38px; height: 38px; margin-bottom: 0.75rem; }
.timeline-item .card-icon svg { width: 18px; height: 18px; }
.contact-info-card .item { display: flex; gap: 0.85rem; align-items: flex-start; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.contact-info-card .item:last-child { border-bottom: 0; }
.contact-info-card .item-icon { flex-shrink: 0; width: 36px; height: 36px; border-radius: 8px; background: rgba(192,57,43,0.10); color: var(--red); display: flex; align-items: center; justify-content: center; }
@media (max-width: 900px) { .pillars-grid { grid-template-columns: 1fr; } }

.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.team-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 1.75rem; display: flex; gap: 1.25rem; align-items: center; }
.team-card img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.team-card h4 { margin-bottom: 0.25rem; }
.team-card .role { font-size: 0.85rem; color: var(--red); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
@media (max-width: 700px) { .team-grid { grid-template-columns: 1fr; } }

.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.timeline-item { padding: 1.5rem; background: var(--bg-soft); border-radius: 8px; }
.timeline-item .year { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 1.6rem; color: var(--red); margin-bottom: 0.25rem; }
.timeline-item h4 { margin-bottom: 0.4rem; }
@media (max-width: 700px) { .timeline { grid-template-columns: 1fr; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-card { background: var(--bg-soft); border-radius: 10px; padding: 1.75rem; }
.contact-info-card h4 { margin-bottom: 1rem; }
.contact-info-card .item { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.contact-info-card .item:last-child { border-bottom: 0; }
.contact-info-card .label { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mid); margin-bottom: 0.25rem; }

.cta-form { display: flex; flex-direction: column; gap: 0.75rem; }
.cta-input {
    width: 100%; padding: 0.85rem 1rem; border: 1px solid var(--line);
    border-radius: var(--radius); font-family: inherit; font-size: 0.95rem;
    background: #fff; color: var(--ink);
}
.cta-input:focus { outline: 0; border-color: var(--red); box-shadow: 0 0 0 3px rgba(192,57,43,0.12); }
.cta-form button { justify-content: center; padding: 1rem 1.5rem; }

.alert { padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1.5rem; font-size: 0.95rem; }
.alert-success { background: #e6f4ea; color: #1e6e3a; border: 1px solid #b7e0c2; }
.alert-error { background: #fbe9e7; color: #962d22; border: 1px solid #f3c2bb; }

/* CTA band */
.cta-band {
    background: linear-gradient(135deg, var(--red) 0%, #962d22 100%);
    color: #fff; padding: 3.5rem 0; text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.9); margin: 0.75rem auto 1.75rem; max-width: 620px; }
.cta-band .btn-outline { color: #fff; border-color: rgba(255,255,255,0.7); }
.cta-band .btn-outline:hover { background: #fff; color: var(--red); }

/* Footer */
.footer { background: var(--bg-dark); color: rgba(255,255,255,0.78); padding: 3.5rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo-img { height: 40px; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.footer-blurb { font-size: 0.92rem; margin-bottom: 1rem; color: rgba(255,255,255,0.7); }
.footer-contact div { font-size: 0.88rem; padding: 0.2rem 0; }
.footer-contact a { color: rgba(255,255,255,0.85); }
.footer-col h5 { color: #fff; margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col li { padding: 0.3rem 0; }
.footer-col a { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 2.5rem; padding-top: 1.5rem; text-align: center; font-size: 0.85rem; color: rgba(255,255,255,0.55); }

/* Reveal - content is always visible; .visible just enables the slide-in animation when scrolled into view. */
.reveal { opacity: 1; transform: none; transition: opacity 0.7s, transform 0.7s; }
.reveal.visible { opacity: 1; transform: none; }

/* SVG icon draw-in animation.
   pathLength=100 (added by icon() helper) normalizes shapes so the dash anim runs uniformly.
   Rules are scoped to .icon-anim so icons stay visible by default if JS fails to enable the effect. */
.icon-anim svg.icon-draw path,
.icon-anim svg.icon-draw line,
.icon-anim svg.icon-draw circle,
.icon-anim svg.icon-draw polygon,
.icon-anim svg.icon-draw polyline,
.icon-anim svg.icon-draw rect,
.icon-anim svg.icon-draw ellipse {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
}
.icon-anim.in-view svg.icon-draw path,
.icon-anim.in-view svg.icon-draw line,
.icon-anim.in-view svg.icon-draw circle,
.icon-anim.in-view svg.icon-draw polygon,
.icon-anim.in-view svg.icon-draw polyline,
.icon-anim.in-view svg.icon-draw rect,
.icon-anim.in-view svg.icon-draw ellipse {
    animation: icon-draw-in 1.2s ease-out forwards;
}
@keyframes icon-draw-in {
    from { stroke-dashoffset: 100; }
    to   { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .icon-anim svg.icon-draw * {
        animation: none !important;
        stroke-dasharray: none !important;
        stroke-dashoffset: 0 !important;
    }
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* Utilities */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.lead { font-size: 1.1rem; line-height: 1.65; color: var(--ink-soft); }
ul.bullet-list { padding-left: 1.25rem; }
ul.bullet-list li { padding: 0.25rem 0; color: var(--ink-soft); }

/* Static client grid (mobile only - replaces marquee) */
.clients-static { display: none; }
.lead-mobile { display: none; }

/* Zeacons / iBeacons feature cards (illustrated icons) */
.zeacons-banner img {
    width: 100%; height: auto; border-radius: 12px;
    background: linear-gradient(135deg, #f6f8fb 0%, #fff 100%);
}
.zeacons-features {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem 2.5rem;
    margin-top: 2.5rem;
}
.zeacons-feature {
    text-align: left;
}
.zeacons-feature-icon {
    width: 100%; max-width: 180px; aspect-ratio: 600/386;
    margin-bottom: 1rem;
}
.zeacons-feature-icon img { width: 100%; height: 100%; object-fit: contain; }
.zeacons-feature h4 { margin-bottom: 0.5rem; font-size: 1.05rem; }
.zeacons-feature p { font-size: 0.92rem; line-height: 1.6; color: var(--ink-soft); }
@media (max-width: 900px) { .zeacons-features { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; } }
@media (max-width: 540px) { .zeacons-features { grid-template-columns: 1fr; } .zeacons-feature-icon { max-width: 140px; } }

/* ============================================================
   Mobile-specific tightening
   ============================================================ */
@media (max-width: 768px) {
    /* Drop the video on mobile - keep the gradient mesh as the hero background */
    .home-hero .home-hero-video { display: none; }
    .home-hero .home-hero-overlay { background: linear-gradient(180deg, rgba(12,26,43,0.25) 0%, transparent 30%, rgba(12,26,43,0.5) 100%); }

    /* Trim the hero on mobile: short lead, single CTA */
    .lead-desktop { display: none; }
    .lead-mobile { display: block; font-size: 1rem; max-width: none; }
    .hide-mobile { display: none !important; }

    /* Replace scrolling marquee with a static 3x2 grid - all cells the same height */
    .clients-marquee { display: none; }
    .clients-static {
        display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem;
        padding: 0.25rem 0;
    }
    .clients-static img {
        width: 100%; height: 56px; object-fit: contain;
        padding: 0.4rem 0.6rem;
        opacity: 0.85; filter: grayscale(0.2);
    }

    .container { padding: 0 1.1rem; }
    .section { padding: 3rem 0; }
    /* Hero takes the bulk of the viewport on mobile, content vertically centered. */
    .home-hero { min-height: 72vh; padding: 5rem 0 3rem; align-items: center; }
    .home-hero h1 { font-size: clamp(2rem, 8vw, 2.8rem); }
    .home-hero .lead { font-size: 0.98rem; }
    .home-hero .hero-actions { gap: 0.6rem; }
    .home-hero .btn-primary, .home-hero .btn-outline { padding: 0.85rem 1.1rem; font-size: 0.92rem; }

    .page-hero { padding: 3rem 0 2.5rem; }
    .page-hero h1 { font-size: clamp(1.7rem, 6.5vw, 2.4rem); }

    h2 { font-size: clamp(1.45rem, 5.5vw, 2rem); }

    .section-header { margin-bottom: 1.75rem; }
    .section-header p { font-size: 0.96rem; }

    .priority-card { padding: 1.5rem; }
    .priority-card h3 { font-size: 1.2rem; }

    .cyber-grid { grid-template-columns: 1fr; gap: 1rem; margin-top: 1.75rem; }
    .cyber-item { padding: 0.35rem 0; }

    .solutions-row { gap: 0.75rem; }
    .solution-tile { padding: 1.1rem; }

    .bot-steps { gap: 0.85rem; }
    .bot-step { padding: 1.25rem; }

    .stats-band { grid-template-columns: 1fr 1fr; }
    .stat-item { padding: 1.25rem 0.75rem; }
    .stat-item .value { font-size: 1.75rem; }

    .cta-band { padding: 2.5rem 0; }
    .cta-band h2 { font-size: 1.4rem; }

    .footer { padding: 2.5rem 0 1.25rem; }
    .footer-grid { gap: 1.75rem; }
    .footer-col h5 { margin-bottom: 0.6rem; }

    .clients-track { gap: 2rem; }
    .clients-track img { height: 36px; }

    .contact-grid { gap: 2rem; }
    .contact-info-card { padding: 1.25rem; }

    .team-card { padding: 1.25rem; flex-direction: column; align-items: flex-start; text-align: left; }
    .team-card img { width: 72px; height: 72px; }

    .feature-grid { gap: 0.85rem; }
    .feature-item { padding: 1.1rem; }

    .timeline { gap: 0.85rem; }

    h1, h2, h3 { letter-spacing: -0.01em; }
}

/* Prevent body scroll when mobile nav drawer is open */
body.nav-open { overflow: hidden; }
