:root {
    --navy: #0a2240;
    --navy-deep: #0b1d39;
    --gold: #c8962e;
    --gold-bright: #d4a431;
    --ink: #16243b;
    --gray: #5c6470;
    --light: #f4f5f7;
    --line: #e6e8ec;
    --white: #ffffff;
    --maxw: 1180px;
    --radius: 3px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--ink);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 30px; }
a { text-decoration: none; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; font-weight: 800; letter-spacing: -0.018em; }

/* dot grid helper */
.dotgrid {
    position: absolute;
    background-image: radial-gradient(currentColor 1.1px, transparent 1.2px);
    background-size: 13px 13px;
    color: #c7ccd4;
    opacity: 0.9;
    pointer-events: none;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
    padding: 14px 24px;
    font-size: 12px; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase;
    border-radius: var(--radius);
    transition: transform .15s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-bright); }
.btn-outline { background: transparent; color: var(--gold); border: 1.5px solid var(--gold); padding: 12.5px 22.5px; }
.btn-outline:hover { background: var(--gold); color: #fff; }

/* ---------- Top accent + Header ---------- */
.topbar { height: 4px; background: linear-gradient(90deg, var(--gold) 0%, var(--gold-bright) 18%, var(--navy) 55%, var(--navy-deep) 100%); }

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .25s ease;
    transform: translateZ(0);
}
.site-header.scrolled { box-shadow: 0 8px 24px rgba(10, 34, 64, 0.08); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 18px; }
.brand img { height: 34px; display: block; }

.main-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav-actions { display: flex; align-items: center; gap: 14px; margin-left: 28px; }
.main-nav a {
    position: relative; font-size: 11.5px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; white-space: nowrap;
    color: var(--navy); display: inline-flex; align-items: center; gap: 6px; transition: color .2s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--gold); }
.main-nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--gold); }
.caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid var(--gold); display: inline-block; }
.btn-contact { margin-left: 6px; }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    background: linear-gradient(180deg, #fbfbfc 0%, #f3f4f6 100%);
    padding: 70px 0 0;
}
.bg-tri { position: absolute; pointer-events: none; transform: skewX(-18deg); }
.bg-tri-1 { top: -60px; right: 8%; width: 360px; height: 420px; background: #eef0f3; opacity: .8; }
.bg-tri-2 { top: 120px; right: -60px; width: 220px; height: 460px; background: #e9ebef; opacity: .7; }
.dotgrid-hero { top: 60px; right: 36%; width: 90px; height: 70px; }

.hero-grid {
    position: relative; z-index: 2;
    display: grid; grid-template-columns: 1.18fr 0.82fr; gap: 32px; align-items: center;
}
.eyebrow { color: var(--gold); font-size: 11.5px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; margin: 0 0 20px; }
.hero-copy h1 { font-size: clamp(1.9rem, 3.85vw, 3rem); font-weight: 900; color: var(--navy); margin-bottom: 22px; letter-spacing: -0.028em; white-space: nowrap; }
.text-gold { color: var(--gold); }
.lead { color: var(--gray); font-size: 16px; max-width: 430px; margin: 0 0 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* hero collage */
.hero-visual { position: relative; min-height: 408px; }
.arcs { position: absolute; top: -20px; right: -30px; width: 460px; height: 380px; z-index: 1; pointer-events: none; }

/* sliced night-city image */
.city {
    position: absolute; left: 4px; top: 26px; width: 64%; height: 274px;
    z-index: 2; filter: drop-shadow(0 26px 55px rgba(10, 34, 64, 0.34));
}
.slice {
    position: absolute; inset: 0;
    background-image: url("../images/hero-city.svg");
    background-size: cover; background-position: center;
}
.slice-a { clip-path: polygon(18% 0, 46% 0, 28% 100%, 0 100%); }
.slice-b { clip-path: polygon(48% 0, 74% 0, 56% 100%, 30% 100%); }
.slice-c { clip-path: polygon(76% 0, 100% 0, 82% 100%, 58% 100%); }

/* gold + navy parallelograms (same slant, edges match the slices) */
.para { position: absolute; clip-path: polygon(25% 0, 100% 0, 75% 100%, 0 100%); }
.para-navy { top: -4px; right: 150px; width: 118px; height: 108px; background: var(--navy); z-index: 1; }
.para-gold-top {
    top: 56px; right: 56px; width: 120px; height: 138px;
    background: linear-gradient(160deg, var(--gold-bright), var(--gold)); z-index: 3;
    filter: drop-shadow(0 16px 32px rgba(200, 150, 46, 0.26));
}
.para-gold-big {
    right: -18px; bottom: -6px; width: 178px; height: 166px;
    background: linear-gradient(165deg, var(--gold), #b9852a); z-index: 1;
}
.dotgrid-visual { right: 168px; top: 4px; width: 64px; height: 50px; z-index: 4; }

/* animated comets (Endava-style flowing trails) */
.comets { position: absolute; inset: 0; z-index: 4; pointer-events: none; will-change: contents; }
.comet { fill: none; stroke-linecap: round; stroke-dasharray: 14 86; }
.c-blue  { stroke: #7fc0ff; stroke-width: 4;   animation: cometRun 9s    linear infinite; opacity: .85; }
.c-gold  { stroke: #e6b84e; stroke-width: 4;   animation: cometRun 11s   linear infinite; animation-delay: -3s; opacity: .9; }
.c-white { stroke: #ffffff; stroke-width: 3.4; animation: cometRun 10s   linear infinite; animation-delay: -5.6s; opacity: .8; }
.c-blue2 { stroke: #6aa6ff; stroke-width: 3.6; animation: cometRun 12.5s linear infinite; animation-delay: -2s; opacity: .72; }
@keyframes cometRun { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -100; } }
@media (prefers-reduced-motion: reduce) {
    .comet { animation: none; stroke-dasharray: none; opacity: .35; }
}
.constellation { top: -8px; right: 70px; width: 96px; height: 64px; color: #b9c2cf; z-index: 1; }
.diamond { position: absolute; width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); z-index: 4; }
.diamond-1 { top: 30px; right: 36px; }
.diamond-2 { bottom: 26px; right: 6px; opacity: .7; }

/* ---------- Trust bar ---------- */
.trust { margin-top: 56px; padding: 30px 30px 44px; border-top: 1px solid var(--line); }
.trust-label { text-align: center; margin: 0 0 24px; }
.trust-label span {
    position: relative; display: inline-block; padding: 0 18px;
    color: var(--navy); font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
}
.trust-label span::before, .trust-label span::after {
    content: ""; position: absolute; top: 50%; width: 70px; height: 1px; background: var(--line);
}
.trust-label span::before { right: 100%; }
.trust-label span::after { left: 100%; }

.trust-row { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.trust-logos { display: flex; align-items: center; gap: 46px; flex-wrap: wrap; filter: grayscale(1); opacity: .58; }
.trust-logos > span { display: inline-flex; align-items: center; gap: 7px; color: #4a5260; font-weight: 700; }
.tl-aws { position: relative; font-size: 22px; font-weight: 800 !important; color: #232f3e !important; padding-bottom: 5px; }
.tl-aws::after {
    content: ""; position: absolute; left: 1px; right: 4px; bottom: 0; height: 7px;
    border-bottom: 2.5px solid #232f3e; border-radius: 0 0 9px 9px;
}
.tl-ms { font-size: 19px; }
.tl-ms i { width: 16px; height: 16px; background:
    linear-gradient(#5a5a5a 0 0) 0 0/7px 7px no-repeat,
    linear-gradient(#5a5a5a 0 0) 9px 0/7px 7px no-repeat,
    linear-gradient(#5a5a5a 0 0) 0 9px/7px 7px no-repeat,
    linear-gradient(#5a5a5a 0 0) 9px 9px/7px 7px no-repeat; }
.tl-dell { font-size: 21px; font-weight: 800 !important; letter-spacing: .02em; }
.tl-dell em { font-size: 10px; font-weight: 600; font-style: normal; letter-spacing: .04em; }
.tl-vm { font-size: 20px; }
.dotgrid-trust { position: relative; width: 90px; height: 50px; flex: none; }

/* ---------- Solutions ---------- */
.solutions { background: linear-gradient(180deg, #f3f4f6 0%, #f3f4f6 50%, #fff 50%); padding-bottom: 0; }
.solutions-panel {
    display: grid; grid-template-columns: 1fr 1fr;
    border-radius: 8px; overflow: hidden;
    box-shadow: 0 30px 70px rgba(10, 34, 64, 0.13);
    transform: translateY(-30px);
}
.sol-card { position: relative; padding: 50px 46px; overflow: hidden; }
.sol-gov { background: linear-gradient(110deg, #0a2240 30%, #0d2c54 100%); color: #fff; }
.sol-ent { background: var(--white); color: var(--ink); }

/* faint capitol dome silhouette */
.dome {
    position: absolute; right: -12px; bottom: -18px; width: 200px; height: 240px; opacity: .2;
    background: url("../images/capitol.svg") right bottom / contain no-repeat;
    -webkit-mask: linear-gradient(180deg, #000 80%, transparent);
            mask: linear-gradient(180deg, #000 80%, transparent);
}
.globe {
    position: absolute; right: -30px; bottom: -30px; width: 220px; height: 220px; opacity: .5;
    background:
        radial-gradient(circle, transparent 64%, #e7ebf1 65%, transparent 66%),
        radial-gradient(circle, transparent 48%, #eef1f5 49%, transparent 50%);
}

.sol-icon {
    position: relative; z-index: 2; width: 54px; height: 54px;
    display: grid; place-items: center; border: 1.5px solid var(--gold); border-radius: 5px;
    color: var(--gold); margin-bottom: 24px;
}
.sol-icon svg { width: 26px; height: 26px; }
.sol-kicker { position: relative; z-index: 2; color: var(--gold); font-size: 11.5px; font-weight: 700; letter-spacing: 0.17em; text-transform: uppercase; margin: 0 0 12px; }
.sol-card h2 { position: relative; z-index: 2; font-size: 29px; margin-bottom: 18px; }
.sol-card h2 .ul { display: block; width: 46px; height: 3px; background: var(--gold); margin-top: 14px; border-radius: 2px; }
.sol-text { position: relative; z-index: 2; max-width: 400px; font-size: 14.5px; }
.sol-gov .sol-text { color: rgba(255,255,255,0.78); }
.sol-ent .sol-text { color: var(--gray); }

.link-arrow { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 9px; margin-top: 26px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.link-arrow .arrow { transition: transform .2s ease; }
.link-arrow:hover .arrow { transform: translateX(5px); }
.link-gold { color: var(--gold); }
.link-navy { color: var(--navy); }

/* ---------- Services strip ---------- */
.services-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.services-row { display: flex; align-items: stretch; padding: 0; }
.service {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 11px;
    padding: 24px 14px;
    font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy);
    border-left: 1px solid var(--line);
}
.service:first-child { border-left: none; }
.svc-ico { color: var(--gold); display: inline-flex; }
.svc-ico svg { width: 20px; height: 20px; }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--navy-deep), var(--navy)); color: #fff; text-align: center; }
.dotgrid-cta { top: 26px; left: 8%; width: 120px; height: 70px; color: rgba(255,255,255,0.18); }
.cta-inner { position: relative; z-index: 2; padding: 76px 28px; }
.cta h2 { font-size: 33px; margin-bottom: 14px; }
.cta p { color: rgba(255,255,255,0.75); margin: 0 0 28px; font-size: 15.5px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.7); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding: 58px 30px 38px; }
.footer-brand img { height: 30px; margin-bottom: 18px; }
.footer-brand p { font-size: 13.5px; max-width: 310px; }
.footer-col h4 { color: #fff; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 13.5px; margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 20px 30px; border-top: 1px solid rgba(255,255,255,0.08); font-size: 12px; }
.footer-bottom .tagline { color: var(--gold); letter-spacing: 0.08em; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
    .main-nav { display: none; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { min-height: 320px; margin-top: 10px; }
    .solutions-panel { grid-template-columns: 1fr; }
    .services-row { flex-wrap: wrap; }
    .service { flex: 1 1 40%; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .footer-grid { grid-template-columns: 1fr; }
    .trust-row { flex-direction: column; }
}

/* =========================================================
   HYBRID DESIGN SYSTEM (Endava x Stefanini x ProximaIT)
   ========================================================= */

/* scroll reveal — gentle, GPU-composited (no sub-pixel trembling) */
.reveal { opacity: 0; transform: translate3d(0, 16px, 0); transition: opacity 1s cubic-bezier(.16, 1, .3, 1), transform 1s cubic-bezier(.16, 1, .3, 1); backface-visibility: hidden; }
.reveal.in { opacity: 1; transform: translate3d(0, 0, 0); }
.reveal[data-d="1"] { transition-delay: .1s; }
.reveal[data-d="2"] { transition-delay: .2s; }
.reveal[data-d="3"] { transition-delay: .3s; }
.reveal[data-d="4"] { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ===== Scroll-linked motion (Apple / Endava style) — progressive enhancement =====
   On modern browsers, content is driven by scroll position itself: it glides in as
   it enters the viewport and gently reverses on the way up — so sections feel tied
   together. Runs on the compositor (smooth, no jitter). Older browsers keep the
   IntersectionObserver fallback above. */
/* a continuous gold thread that "draws" down the page as you scroll —
   visually links every section together (the Endava-style connective tissue) */
.scroll-progress {
    position: fixed; left: 0; top: 0; width: 4px; height: 100vh;
    background: linear-gradient(180deg, var(--gold) 0%, #e7c46b 45%, var(--navy) 100%);
    transform: scaleY(0); transform-origin: top center;
    z-index: 200; pointer-events: none; opacity: .9;
    box-shadow: 0 0 14px rgba(200, 150, 46, .45);
}

@supports (animation-timeline: view()) {
    /* content glides + scales in, driven by scroll position; reverses on scroll up */
    .reveal, .reveal.in {
        opacity: 1; transform: none; transition: none;
        animation: scrollReveal linear both;
        animation-timeline: view();
        animation-range: entry 2% cover 38%;
    }
    .reveal[data-d="1"] { animation-range: entry 8% cover 42%; }
    .reveal[data-d="2"] { animation-range: entry 14% cover 46%; }
    .reveal[data-d="3"] { animation-range: entry 20% cover 50%; }
    .reveal[data-d="4"] { animation-range: entry 26% cover 54%; }
    @keyframes scrollReveal {
        from { opacity: 0; transform: translateY(70px) scale(.94); }
        to   { opacity: 1; transform: translateY(0) scale(1); }
    }

    /* the progress thread grows with overall page scroll */
    .scroll-progress {
        animation: threadGrow linear both;
        animation-timeline: scroll(root);
    }
    @keyframes threadGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

    /* hero text drifts up slightly as you start scrolling (depth) */
    .hero-copy {
        animation: heroCopyPara linear both;
        animation-timeline: view();
        animation-range: exit 0% exit 100%;
    }
    @keyframes heroCopyPara {
        from { transform: translateY(0); opacity: 1; }
        to   { transform: translateY(-40px); opacity: .55; }
    }

    /* parallax depth on the hero visual as it scrolls away */
    .hero-visual {
        animation: heroParallax linear both;
        animation-timeline: view();
        animation-range: cover;
    }
    @keyframes heroParallax {
        from { transform: translateY(-26px); }
        to   { transform: translateY(60px); }
    }

    /* the navy "Why" band lifts in for a layered, connected feel */
    .section.navy .container {
        animation: bandLift linear both;
        animation-timeline: view();
        animation-range: entry 0% cover 32%;
    }
    @keyframes bandLift {
        from { opacity: .2; transform: translateY(60px) scale(.97); }
        to   { opacity: 1; transform: translateY(0) scale(1); }
    }
}
@media (prefers-reduced-motion: reduce) {
    .scroll-progress { display: none; }
    @supports (animation-timeline: view()) {
        .reveal, .reveal.in, .hero-copy, .hero-visual, .section.navy .container {
            animation: none; opacity: 1; transform: none;
        }
    }
}

/* section + heading */
.section { padding: 100px 0; }
.section.alt { background: var(--light); }
.section.navy { background: linear-gradient(135deg, var(--navy-deep), var(--navy)); color: #fff; }
.sec-head { max-width: 700px; margin: 0 0 52px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head .eyebrow { margin-bottom: 14px; }
.sec-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); color: var(--navy); letter-spacing: -0.028em; line-height: 1.08; }
.section.navy .sec-head h2 { color: #fff; }
.sec-head p { margin: 18px 0 0; color: var(--gray); font-size: 16px; }
.section.navy .sec-head p { color: rgba(255,255,255,.72); }

/* grids */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

/* service / feature card */
.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 34px 30px; overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.card::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--gold); transition: width .35s ease; }
.card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(10,34,64,.13); border-color: transparent; }
.card:hover::before { width: 100%; }
.card .ico { width: 52px; height: 52px; display: grid; place-items: center; border: 1.5px solid var(--gold); border-radius: 8px; color: var(--gold); margin-bottom: 20px; }
.card .ico svg { width: 26px; height: 26px; }
.card h3 { font-size: 19px; color: var(--navy); margin-bottom: 10px; }
.card p { color: var(--gray); font-size: 14.5px; margin: 0; }
.card .more { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--gold); font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.card .more .arrow { transition: transform .2s ease; }
.card:hover .more .arrow { transform: translateX(4px); }

/* industries small card */
.ind { display: flex; align-items: center; gap: 14px; padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: 8px;
    color: var(--navy); font-weight: 700; font-size: 14px; transition: transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease; }
.ind .ico { color: var(--gold); display: inline-flex; flex: none; }
.ind .ico svg { width: 24px; height: 24px; }
.ind:hover { background: var(--navy); color: #fff; transform: translateY(-4px); box-shadow: 0 18px 40px rgba(10,34,64,.18); }

/* stats band */
.stats .row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 64px 0; }
.stat { text-align: center; position: relative; }
.stat .n { font-size: clamp(2.2rem, 4vw, 3.1rem); font-weight: 900; color: var(--gold-bright); letter-spacing: -.02em; line-height: 1; }
.stat .l { margin-top: 12px; font-size: 12px; letter-spacing: .13em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 12%; height: 76%; width: 1px; background: rgba(255,255,255,.12); }

/* why-us feature */
.feat .num { font-size: 13px; font-weight: 800; color: var(--gold); letter-spacing: .12em; }
.feat .bar { width: 40px; height: 3px; background: var(--gold); border-radius: 2px; margin: 16px 0; }
.feat h3 { font-size: 20px; color: var(--navy); margin: 0 0 10px; }
.section.navy .feat h3 { color: #fff; }
.feat p { color: var(--gray); font-size: 14.5px; margin: 0; }
.section.navy .feat p { color: rgba(255,255,255,.72); }

/* statement (big bold, Endava-style) */
.statement { position: relative; overflow: hidden; padding: 116px 0; background: linear-gradient(135deg, #07182f, #0a2240); color: #fff; }
.statement .dotgrid { top: 40px; right: 6%; width: 130px; height: 80px; color: rgba(255,255,255,.16); }
.statement h2 { position: relative; z-index: 2; font-size: clamp(2.1rem, 4.8vw, 3.9rem); font-weight: 900; letter-spacing: -.03em; max-width: 1000px; line-height: 1.07; }
.statement .text-gold { color: var(--gold-bright); }
.statement p { position: relative; z-index: 2; color: rgba(255,255,255,.74); font-size: 17px; max-width: 560px; margin: 24px 0 32px; }

/* metrics */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.metric { text-align: left; }
.metric .n { font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 900; color: var(--gold); letter-spacing: -.02em; line-height: 1; }
.metric .l { color: var(--gray); font-size: 13.5px; margin-top: 10px; }
.section.navy .metric .l { color: rgba(255,255,255,.72); }

/* insights */
.insight { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease; }
.insight:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(10,34,64,.13); }
.insight .thumb { height: 168px; position: relative; overflow: hidden; background: linear-gradient(135deg, #0d2c54, #0a2240); }
.insight .thumb::after { content: ""; position: absolute; inset: 0;
    background: radial-gradient(circle at 70% 30%, rgba(111,176,255,.35), transparent 45%), radial-gradient(circle at 30% 70%, rgba(200,150,46,.25), transparent 45%); }
.insight .tag { position: absolute; z-index: 2; left: 16px; top: 16px; background: var(--gold); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: 3px; }
.insight .body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.insight .meta { font-size: 12px; color: var(--gray); letter-spacing: .04em; margin-bottom: 10px; }
.insight h3 { font-size: 17px; color: var(--navy); margin: 0 0 10px; line-height: 1.32; }
.insight p { color: var(--gray); font-size: 14px; margin: 0 0 18px; flex: 1; }
.insight .more { color: var(--gold); font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; display: inline-flex; gap: 8px; align-items: center; }
.insight .more .arrow { transition: transform .2s ease; }
.insight:hover .more .arrow { transform: translateX(4px); }

/* page hero (subpages) */
.page-hero { position: relative; overflow: hidden; background: linear-gradient(130deg, var(--navy-deep) 40%, #0d2c54); color: #fff; padding: 96px 0 84px; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero .eyebrow { color: var(--gold-bright); }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 900; letter-spacing: -.03em; max-width: 800px; line-height: 1.05; }
.page-hero p { color: rgba(255,255,255,.76); font-size: 17px; max-width: 580px; margin-top: 20px; }
.page-hero .pg-shape { position: absolute; clip-path: polygon(25% 0, 100% 0, 75% 100%, 0 100%); z-index: 1; }
.pg-shape.s1 { top: -30px; right: 8%; width: 150px; height: 200px; background: linear-gradient(180deg, var(--gold-bright), var(--gold)); opacity: .9; }
.pg-shape.s2 { bottom: -50px; right: 18%; width: 120px; height: 180px; background: rgba(255,255,255,.05); }
.pg-shape.s3 { top: 40px; right: 2%; width: 90px; height: 150px; background: rgba(200,150,46,.18); }
.page-hero .dotgrid { bottom: 30px; left: 38%; width: 110px; height: 60px; color: rgba(255,255,255,.14); }

/* split CTA (careers + contact) */
.split { display: grid; grid-template-columns: 1fr 1fr; border-radius: 12px; overflow: hidden; box-shadow: 0 30px 70px rgba(10,34,64,.14); }
.split > div { padding: 60px 50px; }
.split .s-careers { background: linear-gradient(135deg, var(--navy-deep), var(--navy)); color: #fff; }
.split .s-contact { background: var(--gold); color: #fff; }
.split h3 { font-size: 26px; margin-bottom: 12px; letter-spacing: -.02em; }
.split p { font-size: 15px; margin: 0 0 26px; }
.split .s-careers p { color: rgba(255,255,255,.78); }
.split .s-contact p { color: rgba(255,255,255,.9); }

/* contact form */
.form { display: grid; gap: 16px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); }
.field input, .field textarea, .field select { width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: 14px; background: #fff; color: var(--ink); transition: border-color .2s ease, box-shadow .2s ease; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,150,46,.16); }
.form-ok { background: #ecf6ec; border: 1px solid #bfe0bf; color: #1f6b2e; padding: 16px 18px; border-radius: 8px; font-size: 14.5px; font-weight: 600; }

/* contact info list */
.cinfo { display: flex; flex-direction: column; gap: 26px; }
.cinfo .item { display: flex; gap: 16px; }
.cinfo .ico { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border: 1.5px solid var(--gold); border-radius: 8px; color: var(--gold); }
.cinfo .ico svg { width: 22px; height: 22px; }
.cinfo h4 { font-size: 15px; color: var(--navy); margin: 0 0 4px; }
.cinfo p { font-size: 14px; color: var(--gray); margin: 0; }

/* prose for content pages */
.prose { max-width: 760px; }
.prose p { color: var(--gray); font-size: 16px; margin: 0 0 18px; }
.prose h3 { color: var(--navy); font-size: 22px; margin: 36px 0 12px; }
.prose ul { color: var(--gray); font-size: 15.5px; padding-left: 20px; }
.prose li { margin-bottom: 8px; }

/* button variants */
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--gold); color: #fff; }
.btn-ghost-light { background: transparent; border: 1.5px solid rgba(255,255,255,.55); color: #fff; padding: 12.5px 22.5px; }
.btn-ghost-light:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* mobile nav toggle (hidden on desktop) */
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 4px 0; transition: .25s ease; }

/* responsive for new components */
@media (max-width: 920px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .stats .row { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
    .stat + .stat::before { display: none; }
    .metrics { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
    .split { grid-template-columns: 1fr; }
    .section { padding: 72px 0; }

    .nav-toggle { display: block; }
    .main-nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start;
        background: #fff; border-bottom: 1px solid var(--line); padding: 16px 30px 22px; gap: 4px;
        box-shadow: 0 24px 40px rgba(10,34,64,.12); display: none; }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 10px 0; width: 100%; }

    /* hero stacks to one column + title wraps (kills horizontal overflow) */
    .hero-grid { grid-template-columns: 1fr; gap: 18px; }
    .hero-copy h1 { white-space: normal; }
    .hero-copy h1 br { display: none; }
    .lead { max-width: 560px; }
    .hero-visual { min-height: 300px; }
}
@media (max-width: 560px) {
    .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
    .metrics, .stats .row { grid-template-columns: 1fr; }
    .form .row2 { grid-template-columns: 1fr; }
    .split > div { padding: 44px 30px; }

    /* phones: drop the decorative collage that created the empty gap, tighten hero */
    .hero { padding-top: 36px; }
    .hero-visual { display: none; }
    .bg-tri, .dotgrid-hero { display: none; }
    .hero-actions { width: 100%; }
    .hero-actions .btn { width: 100%; justify-content: center; }

    /* header CTA is hidden on phones (it overflowed); logo + menu button remain */
    .btn-contact { display: none; }
}

/* ============================================================
   PREMIUM POLISH — micro-interactions, depth & refined motion
   ============================================================ */
:root { --ease: cubic-bezier(.16, 1, .3, 1); }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }

/* keyboard focus ring (accessible + premium) */
a:focus-visible, button:focus-visible, .btn:focus-visible {
    outline: 2px solid var(--gold); outline-offset: 3px; border-radius: var(--radius);
}

/* HEADER — condenses and lifts on scroll */
.site-header { transition: box-shadow .3s var(--ease), background .3s ease; }
.site-header .nav-wrap { transition: height .3s var(--ease); }
.site-header .brand img { transition: height .3s var(--ease); }
.site-header.scrolled { box-shadow: 0 10px 30px rgba(10, 34, 64, .10); background: rgba(255, 255, 255, .97); }
.site-header.scrolled .nav-wrap { height: 62px; }
.site-header.scrolled .brand img { height: 29px; }

/* NAV — animated underline on hover */
.main-nav a::before {
    content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
    background: var(--gold); transition: width .3s var(--ease);
}
.main-nav a:hover::before { width: 100%; }

/* BUTTONS — depth + soft glow */
.btn { transition: transform .25s var(--ease), background .25s ease, color .2s ease, box-shadow .25s ease; }
.btn-gold { box-shadow: 0 8px 20px rgba(200, 150, 46, .26); }
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(200, 150, 46, .42); }
.btn-light:hover, .btn-outline:hover { box-shadow: 0 10px 24px rgba(200, 150, 46, .30); }

/* BIG SOLUTION CARDS — lift + icon pop */
.sol-card { transition: transform .4s var(--ease); }
.sol-card .sol-icon { transition: transform .4s var(--ease); }
.solutions-panel:hover .sol-card:not(:hover) { opacity: .92; }
.sol-card:hover { transform: translateY(-6px); }
.sol-card:hover .sol-icon { transform: translateY(-3px) scale(1.07); }

/* SERVICE STRIP — interactive */
.service { transition: transform .25s var(--ease), color .2s ease; cursor: default; }
.service .svc-ico { transition: transform .25s var(--ease), color .2s ease; }
.service:hover { transform: translateY(-4px); color: var(--gold); }
.service:hover .svc-ico { transform: scale(1.14); color: var(--gold); }

/* CARD — light sheen sweep on hover */
.card::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
    background: linear-gradient(120deg, transparent 42%, rgba(255, 255, 255, .55) 50%, transparent 58%);
    transform: translateX(-120%); transition: transform .8s var(--ease), opacity .2s ease;
}
.card:hover::after { transform: translateX(120%); opacity: 1; }

/* FEATURE cards lift subtly */
.feat { transition: transform .35s var(--ease); }
.feat:hover { transform: translateY(-5px); }

/* CONNECTIVE THREAD — glowing leading tip */
.scroll-progress::after {
    content: ""; position: absolute; left: 50%; bottom: -2px; transform: translateX(-50%);
    width: 12px; height: 12px; border-radius: 50%; background: var(--gold-bright);
    box-shadow: 0 0 18px 5px rgba(231, 196, 107, .65);
}

/* HERO — animated scroll-down hint */
.scroll-hint {
    position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 9px; z-index: 6;
    color: var(--navy); opacity: .5; font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase;
    text-decoration: none; transition: opacity .25s ease;
}
.scroll-hint:hover { opacity: .85; }
.scroll-hint .mouse { width: 22px; height: 34px; border: 2px solid currentColor; border-radius: 12px; position: relative; }
.scroll-hint .mouse::before {
    content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; border-radius: 2px;
    background: var(--gold); transform: translateX(-50%); animation: mouseWheel 1.7s var(--ease) infinite;
}
@keyframes mouseWheel {
    0% { opacity: 0; transform: translate(-50%, 0); }
    30% { opacity: 1; }
    70% { opacity: 1; transform: translate(-50%, 9px); }
    100% { opacity: 0; transform: translate(-50%, 11px); }
}

/* DEPTH — soft radial glow in the navy band */
.section.navy { position: relative; overflow: hidden; }
.section.navy .container { position: relative; z-index: 1; }
.section.navy::before {
    content: ""; position: absolute; top: -25%; right: -8%; width: 520px; height: 520px; z-index: 0;
    background: radial-gradient(circle, rgba(200, 150, 46, .16), transparent 62%); pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .scroll-hint .mouse::before { animation: none; }
}

@media (max-width: 880px) { .scroll-hint { display: none; } }

/* ---- Hero aurora: soft animated glow for depth & life ---- */
.hero::after {
    content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background:
        radial-gradient(440px 320px at 80% 16%, rgba(200, 150, 46, .13), transparent 60%),
        radial-gradient(560px 460px at 10% 92%, rgba(63, 127, 208, .10), transparent 62%);
    animation: auroraShift 18s ease-in-out infinite alternate;
}
@keyframes auroraShift {
    from { transform: translate3d(0, 0, 0); opacity: .85; }
    to   { transform: translate3d(0, -14px, 0); opacity: 1; }
}
.hero > .container, .hero > .scroll-hint { position: relative; z-index: 2; }
@media (prefers-reduced-motion: reduce) { .hero::after { animation: none; } }

/* ---- Process steps: connecting line between numbers (desktop) ---- */
.process .feat { position: relative; }
@media (min-width: 921px) {
    .process .feat:not(:last-child)::after {
        content: ""; position: absolute; top: 9px; left: calc(50% + 22px); right: calc(-50% + 22px);
        height: 2px; background: linear-gradient(90deg, var(--gold), rgba(200, 150, 46, .15));
    }
}

/* ---- Back-to-top button ---- */
.to-top {
    position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%;
    background: var(--navy); color: #fff; border: 0; display: grid; place-items: center; cursor: pointer;
    box-shadow: 0 12px 30px rgba(10, 34, 64, .28); z-index: 150;
    opacity: 0; transform: translateY(14px) scale(.9); pointer-events: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease), background .2s ease;
}
.to-top svg { width: 20px; height: 20px; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--gold); transform: translateY(-3px); }
.to-top:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (max-width: 560px) { .to-top { right: 16px; bottom: 16px; width: 42px; height: 42px; } }
