/* ==================================================================
   NRI Global Technologies - public site stylesheet
   ================================================================== */

:root {
    --blue:        #1B4FCC;
    --blue-dark:   #143a99;
    --blue-tint:   #eaf0ff;
    --charcoal:    #3A3A3A;
    --charcoal-lt: #5f5f5f;
    --gray-bg:     #F4F6F9;
    --orange:      #F58220;
    --orange-dark: #d96f12;
    --white:       #ffffff;
    --border:      #e2e6ee;
    --radius:      14px;
    --radius-sm:   9px;
    --shadow:      0 10px 30px rgba(27, 79, 204, .08);
    --shadow-lg:   0 24px 60px rgba(20, 40, 90, .14);
    --container:   1160px;
    --section-y:   88px;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--charcoal);
    background: var(--white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip; /* contain off-screen animation transforms without breaking sticky */
}

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

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.2;
    color: #1f2430;
    margin: 0 0 .5em;
}

p { margin: 0 0 1rem; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

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

/* ---- Icons ---- */
.icon {
    width: 28px;
    height: 28px;
    flex: none;
}
.icon--sm { width: 18px; height: 18px; vertical-align: -4px; }
.icon--lg { width: 40px; height: 40px; }

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-weight: 600;
    font-size: .98rem;
    padding: 13px 26px;
    border-radius: 999px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); color: #fff; }
.btn--accent { background: var(--orange); color: #fff; }
.btn--accent:hover { background: var(--orange-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn--ghost:hover { background: var(--blue-tint); }
.btn--light { background: #fff; color: var(--blue); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--outline-light:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ---- Header / nav ---- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .68);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, .5);
    box-shadow: 0 1px 0 rgba(20, 40, 90, .06);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .site-header { background: rgba(255, 255, 255, .97); }
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    gap: 20px;
}

.logo {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    font-weight: 800;
    letter-spacing: .5px;
    color: var(--charcoal);
}
.logo__mark {
    color: var(--blue);
    font-size: 1.6rem;
    font-weight: 800;
}
.logo__text {
    color: #8a8f9c;
    font-size: .82rem;
    letter-spacing: 2px;
    font-weight: 700;
}
.logo--footer .logo__text { color: #aeb4c2; }

/* Uploaded logo image (admin-managed). Falls back to the text lockup above
   when no image is set. width:auto + max-height keeps it proportional and
   clear of the hamburger toggle at every breakpoint. */
.logo--image { align-items: center; }
.logo__img {
    display: block;
    max-height: 40px;
    width: auto;
    max-width: 220px;
}
.logo--footer .logo__img { max-height: 44px; max-width: 240px; }

.primary-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}
.primary-nav ul {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.primary-nav a {
    color: var(--charcoal);
    font-weight: 600;
    font-size: .97rem;
    padding: 6px 0;
    position: relative;
}
.primary-nav a.active,
.primary-nav a:hover { color: var(--blue); }
.primary-nav a.active::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 3px;
    border-radius: 3px;
    background: var(--orange);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    padding: 8px;
    cursor: pointer;
}
.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--charcoal);
    border-radius: 2px;
    transition: .2s;
}

/* ---- Section scaffolding ---- */
.section { padding: var(--section-y) 0; }
.section--tight { padding: 56px 0; }
.section--gray { background: var(--gray-bg); }
.section--blue { background: var(--blue); color: #fff; }
.section--blue h2, .section--blue h3 { color: #fff; }

.section-head {
    max-width: 720px;
    margin: 0 auto 52px;
    text-align: center;
}
.section-head--left { margin-left: 0; text-align: left; }
.eyebrow {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 12px;
}
.section-head h2 {
    font-size: clamp(1.7rem, 3.4vw, 2.5rem);
}
.section-head p { color: var(--charcoal-lt); font-size: 1.05rem; margin-bottom: 0; }

/* ---- Hero ---- */
.hero {
    position: relative;
    background:
        radial-gradient(1100px 480px at 12% -10%, rgba(27, 79, 204, .12), transparent 60%),
        radial-gradient(900px 460px at 100% 0%, rgba(245, 130, 32, .12), transparent 55%),
        var(--white);
    padding: 84px 0 92px;
    overflow: hidden;
}
/* decorative blurred colour blobs - real elements so parallax.js can move them */
.hero__deco {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}
.hero__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    will-change: transform;
}
.hero__blob--1 {
    width: 340px; height: 340px;
    right: 4%; top: 8%;
    background: radial-gradient(circle, rgba(245, 130, 32, .38), transparent 70%);
}
.hero__blob--2 {
    width: 300px; height: 300px;
    right: 26%; bottom: -4%;
    background: radial-gradient(circle, rgba(27, 79, 204, .32), transparent 70%);
}
.hero__grid { position: relative; z-index: 1; }
.hero__grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 56px;
    align-items: center;
}
.hero h1 {
    font-size: clamp(2rem, 4.6vw, 3.25rem);
    letter-spacing: -.5px;
}
.hero__sub {
    font-size: 1.12rem;
    color: var(--charcoal-lt);
    max-width: 34em;
    margin-bottom: 28px;
}
.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 28px;
}
.hero__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: .92rem;
    color: var(--charcoal-lt);
    font-weight: 600;
}
.hero__pills li { display: flex; align-items: center; gap: 8px; }
.hero__pills .icon { color: var(--blue); }

/* Hero mockup - glass panel over the hero's coloured radial glow.
   Deep-blue gradient chosen so the light globe graticule reads clearly. */
.hero__visual {
    position: relative;
    display: grid;
    background: linear-gradient(160deg, rgba(13, 35, 104, .92), rgba(24, 58, 143, .82));
    -webkit-backdrop-filter: blur(10px) saturate(160%);
    backdrop-filter: blur(10px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 22px;
    padding: 26px;
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .3);
    color: #fff;
}
/* globe canvas + fallback share one grid cell; whichever isn't display:none sets the height */
.hero__visual > .hero__globe,
.hero__visual > .hero__visual-fallback { grid-area: 1 / 1; width: 100%; }

/* ---- Hero 3D globe ---- */
.hero__globe {
    position: relative;
    aspect-ratio: 4 / 3.4;
    border-radius: 14px;
    overflow: hidden;
    /* centre lift + edge vignette so the sphere silhouette pops (behind the transparent canvas) */
    background:
        radial-gradient(circle at 50% 42%, rgba(125, 165, 255, .20), rgba(8, 20, 55, 0) 55%),
        radial-gradient(circle at 50% 50%, rgba(6, 15, 44, 0) 42%, rgba(3, 10, 32, .6) 100%),
        #0a1c4d;
}
.hero__globe-canvas {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    display: block;
}
.hero__visual-fallback { aspect-ratio: 4 / 3.4; }
.is-hidden { display: none !important; }

.mock-window {
    background: #fff;
    border-radius: 12px;
    height: 100%;
    color: var(--charcoal);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.mock-window__bar {
    display: flex;
    gap: 7px;
    padding: 12px 14px;
    background: #f1f3f8;
    border-bottom: 1px solid var(--border);
}
.mock-window__bar span {
    width: 11px; height: 11px; border-radius: 50%;
    background: #cfd5e2;
}
.mock-window__body {
    padding: 18px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    flex: 1;
}
.mock-tile {
    background: var(--gray-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: .72rem;
    font-weight: 600;
    color: var(--charcoal-lt);
}
.mock-tile .icon { color: var(--blue); width: 22px; height: 22px; }
.mock-tile:nth-child(3n+2) .icon { color: var(--orange); }
.hero__badge {
    position: absolute;
    right: -14px;
    bottom: 26px;
    background: var(--orange);
    color: #fff;
    font-weight: 700;
    padding: 12px 18px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    font-size: .9rem;
}

/* ---- Trust strip ---- */
.trust-strip {
    background: #12203d;
    color: #dfe6f5;
}
.trust-strip__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 40px;
    padding: 22px 0;
    font-weight: 600;
    letter-spacing: .3px;
}
.trust-strip__inner span { display: flex; align-items: center; gap: 10px; }
.trust-strip__inner .icon { color: var(--orange); width: 18px; height: 18px; }

/* ---- About ---- */
.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}
.about__grid--top { align-items: start; }
.about__text p { font-size: 1.06rem; color: var(--charcoal-lt); }
.about__points {
    list-style: none;
    padding: 0;
    margin: 22px 0 0;
    display: grid;
    gap: 12px;
}
.about__points li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.about__points .icon { color: var(--blue); }

/* About visual (SVG illustration or swapped-in photo) */
.about__media {
    border-radius: 20px;
    padding: 18px;
    background: linear-gradient(160deg, rgba(27, 79, 204, .07), rgba(245, 130, 32, .07));
    border: 1px solid rgba(27, 79, 204, .12);
    box-shadow: var(--shadow);
}
.about__media--photo { padding: 0; overflow: hidden; }
.about__illustration { width: 100%; height: auto; display: block; }
.about__photo {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    display: block;
}

/* About contact info row (below the grid) */
.about__info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 18px;
    margin-top: 44px;
}
.about__info-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    color: inherit;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
a.about__info-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: transparent;
}
.about__info-item .k {
    display: block;
    font-weight: 700;
    color: var(--blue);
    font-size: .72rem;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    margin-bottom: 3px;
}
.about__info-item .v { font-size: .92rem; color: var(--charcoal-lt); overflow-wrap: anywhere; }

/* Legacy aside card - still used as a fallback container elsewhere */
.about__aside {
    background: var(--gray-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
}
.about__aside dl { margin: 0; display: grid; gap: 18px; }
.about__aside dt { font-weight: 700; color: var(--blue); font-size: .82rem; letter-spacing: 1.5px; text-transform: uppercase; }
.about__aside dd { margin: 4px 0 0; }

/* ---- Circular icon badge (shared: industries, contact tiles, about info) ---- */
.icon-badge {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex: none;
    background: rgba(27, 79, 204, .12);
    color: var(--blue);
    transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.icon-badge .icon { width: 26px; height: 26px; }
.icon-badge--blue   { background: rgba(27, 79, 204, .12); color: var(--blue); }
.icon-badge--orange { background: rgba(245, 130, 32, .12); color: var(--orange); }

/* ---- Services (grouped) ---- */
.svc-group { margin-bottom: 46px; }
.svc-group:last-child { margin-bottom: 0; }
.svc-group__head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--border);
}
.svc-group__head .icon {
    color: var(--blue);
    background: var(--blue-tint);
    padding: 9px;
    width: 44px; height: 44px;
    border-radius: 11px;
}
.svc-group__head h3 { font-size: 1.28rem; margin: 0; }
.svc-group__head a {
    margin-left: auto;
    font-weight: 600;
    font-size: .9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 20px;
}
.svc-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.svc-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: #cfd9f5;
}

/* ---- 3D pointer tilt (card-tilt.js adds .tilt-card / .is-tilting) ---- */
.tilt-card { position: relative; will-change: transform; }
.tilt-card.is-tilting {
    transition: none;          /* follow the pointer with no lag while tilting */
    border-color: #cfd9f5;
    z-index: 2;
}
.svc-card__icon {
    color: var(--blue);
    background: var(--blue-tint);
    width: 46px; height: 46px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
}
.svc-card__icon .icon { width: 24px; height: 24px; }
.svc-card h4 { font-size: 1.05rem; margin-bottom: 6px; }
.svc-card p { font-size: .93rem; color: var(--charcoal-lt); margin: 0; }

.services-cta { text-align: center; margin-top: 44px; }

/* ---- Stat band (glass over its own gradient + blurred glow) ---- */
.stat-band {
    position: relative;
    isolation: isolate;
    background: linear-gradient(120deg, rgba(20, 58, 153, .92), rgba(47, 107, 255, .82));
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    backdrop-filter: blur(12px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, .22);
    color: #fff;
    border-radius: 22px;
    padding: 48px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 40px;
    align-items: center;
    overflow: hidden;
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.stat-band::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 320px; height: 320px;
    right: -60px; top: -120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 130, 32, .5), transparent 70%);
    filter: blur(40px);
}
.stat-band__num {
    font-size: clamp(3.4rem, 9vw, 5.5rem);
    font-weight: 800;
    line-height: 1;
}
.stat-band__num small { display: block; font-size: 1rem; letter-spacing: 3px; text-transform: uppercase; font-weight: 700; opacity: .85; }
.stat-band p { margin: 0; font-size: 1.1rem; max-width: 40em; }

/* ---- Why choose us ---- */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 22px;
}
.why-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    text-align: left;
}
.why-card .icon {
    color: var(--orange);
    width: 34px; height: 34px;
    margin-bottom: 12px;
}
.why-card h4 { font-size: 1.02rem; margin-bottom: 6px; }
.why-card p { font-size: .9rem; color: var(--charcoal-lt); margin: 0; }

/* ---- Process ---- */
.process-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    counter-reset: step;
}
.process-step {
    position: relative;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 20px;
    text-align: center;
}
.process-step__num {
    counter-increment: step;
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
    margin: 0 auto 12px;
}
.process-step__num::before { content: counter(step); }
.process-step .icon { color: var(--blue); width: 24px; height: 24px; margin-bottom: 8px; }
.process-step h4 { font-size: 1rem; margin-bottom: 4px; }
.process-step p { font-size: .85rem; color: var(--charcoal-lt); margin: 0; }

/* ---- Industries ---- */
.industry-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
}
.industry-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 14px;
    text-align: center;
    font-weight: 700;
    font-size: .95rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 13px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.industry-card__name { line-height: 1.35; }
.industry-card .icon-badge { width: 58px; height: 58px; }
.industry-card:nth-child(odd)  .icon-badge { background: rgba(27, 79, 204, .12);  color: var(--blue); }
.industry-card:nth-child(even) .icon-badge { background: rgba(245, 130, 32, .12); color: var(--orange); }
.industry-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.industry-card:nth-child(odd):hover .icon-badge {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 10px 22px rgba(27, 79, 204, .35);
}
.industry-card:nth-child(even):hover .icon-badge {
    background: var(--orange);
    color: #fff;
    box-shadow: 0 10px 22px rgba(245, 130, 32, .35);
}

/* subtle decorative backdrop behind a section heading (dot-grid + soft blob) */
.section--soft-deco { position: relative; overflow: clip; }
.section--soft-deco > .container { position: relative; z-index: 1; }
.section-deco-blob {
    position: absolute;
    left: calc(50% - 210px);   /* centred without transform, so parallax.js can own transform */
    top: -40px;
    width: 420px;
    height: 260px;
    background: radial-gradient(closest-side, rgba(245, 130, 32, .16), transparent 72%);
    filter: blur(50px);
    pointer-events: none;
    z-index: 0;
    will-change: transform;
}
.section--soft-deco::before {
    content: "";
    position: absolute;
    left: 50%; top: 24px;
    width: 560px; height: 240px;
    transform: translateX(-50%);
    background: radial-gradient(closest-side, rgba(27, 79, 204, .12), transparent 72%);
    filter: blur(46px);
    pointer-events: none;
    z-index: 0;
}
.section--soft-deco::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(27, 79, 204, .07) 1.4px, transparent 1.4px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(ellipse 62% 42% at 50% 10%, #000, transparent 72%);
    mask-image: radial-gradient(ellipse 62% 42% at 50% 10%, #000, transparent 72%);
    pointer-events: none;
    z-index: 0;
}

/* ---- Testimonials ---- */
.testi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}
.testi-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
}
.testi-card__stars { color: var(--orange); display: flex; gap: 3px; margin-bottom: 12px; }
.testi-card__stars .icon { width: 18px; height: 18px; fill: currentColor; }
.testi-card blockquote { margin: 0 0 16px; font-size: 1.02rem; color: #2b2f3a; }
.testi-card__who { font-weight: 700; }
.testi-card__who span { display: block; font-weight: 500; color: var(--charcoal-lt); font-size: .9rem; }

/* --- flip variant (only used when real testimonials exist) --- */
.testi-card--flip {
    position: relative;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    min-height: 300px;
    perspective: 1400px;
    cursor: pointer;
    outline-offset: 4px;
}
.testi-card--flip .testi-card__inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: inherit;
    transition: transform .7s cubic-bezier(.2, .7, .2, 1);
    transform-style: preserve-3d;
}
.testi-card--flip.is-flipped .testi-card__inner { transform: rotateY(180deg); }
@media (hover: hover) {
    .testi-card--flip:hover .testi-card__inner,
    .testi-card--flip:focus-visible .testi-card__inner { transform: rotateY(180deg); }
}
.testi-card__face {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--shadow);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    overflow: hidden;
}
.testi-card__front .testi-card__quote {
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.testi-card__who { margin-top: auto; }
.testi-card__hint {
    margin-top: 14px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: var(--blue);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.testi-card__hint::after { content: "\2192"; }
.testi-card__back {
    transform: rotateY(180deg);
    background: linear-gradient(160deg, #12296b, #1b4fcc);
    border-color: transparent;
    color: #eef2ff;
}
.testi-card__back blockquote {
    color: #eef2ff;
    font-size: .98rem;
    overflow-y: auto;
    flex: 1;
    margin: 6px 0 14px;
}
.testi-card__back .testi-card__stars { color: #ffb877; margin-bottom: 0; }
.testi-card__qmark {
    width: 30px;
    height: 30px;
    color: rgba(255, 255, 255, .5);
    flex: none;
}

.empty-state {
    text-align: center;
    background: var(--gray-bg);
    border: 1px dashed #c8cfdd;
    border-radius: var(--radius);
    padding: 48px 24px;
    color: var(--charcoal-lt);
    font-weight: 600;
}

/* ---- CTA banner (glass card over gradient + glow) ---- */
.cta-banner {
    position: relative;
    isolation: isolate;
    background:
        radial-gradient(600px 240px at 100% 0%, rgba(245, 130, 32, .32), transparent 60%),
        linear-gradient(120deg, rgba(20, 58, 153, .9), rgba(27, 79, 204, .82));
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    backdrop-filter: blur(12px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, .22);
    color: #fff;
    text-align: center;
    border-radius: 24px;
    padding: 60px 32px;
    overflow: hidden;
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.cta-banner::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 360px; height: 360px;
    left: -80px; bottom: -160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 130, 32, .4), transparent 70%);
    filter: blur(50px);
}
.cta-banner h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.cta-banner p { max-width: 44em; margin: 0 auto 26px; opacity: .92; }
.cta-banner > :not(.cta-shapes) { position: relative; z-index: 1; }

/* ---- CTA banner floating 3D shapes (pure CSS) ---- */
.cta-shapes {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    perspective: 800px;
    border-radius: inherit;
}
.cta-shape {
    position: absolute;
    transform-style: preserve-3d;
}
.cta-shape--ring {
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, .7);
}
.cta-shape--cube { width: 44px; height: 44px; }
.cta-shape--cube i {
    position: absolute;
    inset: 0;
    border: 2px solid rgba(255, 255, 255, .65);
}
.cta-shape--cube i:nth-child(1) { transform: translateZ(22px); }
.cta-shape--cube i:nth-child(2) { transform: rotateY(90deg) translateZ(22px); }
.cta-shape--cube i:nth-child(3) { transform: rotateX(90deg) translateZ(22px); }

/* individual placement + size + colour + independent slow motion */
.cta-shape--1 { top: 14%; left: 7%;   width: 96px; height: 96px; opacity: .5;
                animation: cta-ring 17s linear infinite; }
.cta-shape--2 { top: 56%; left: 4%;   width: 54px; height: 54px; opacity: .55; border-color: rgba(255, 200, 150, .8);
                animation: cta-ring 12s linear infinite -4s; }
.cta-shape--4 { bottom: 12%; right: 7%; width: 74px; height: 74px; opacity: .45;
                animation: cta-ring 21s linear infinite -9s; }
.cta-shape--3 { top: 18%; right: 10%; opacity: .5;
                animation: cta-cube 15s ease-in-out infinite -6s; }
.cta-shape--3 i { border-color: rgba(255, 200, 150, .7); }
.cta-shape--5 { bottom: 20%; left: 44%; width: 30px; height: 30px; opacity: .3;
                animation: cta-cube 24s ease-in-out infinite -3s; }

/* rings: hold a fixed perspective tilt, slowly spin + bob */
@keyframes cta-ring {
    0%   { transform: translateY(0)     rotateX(62deg) rotateZ(0deg); }
    50%  { transform: translateY(-16px) rotateX(58deg) rotateZ(180deg); }
    100% { transform: translateY(0)     rotateX(62deg) rotateZ(360deg); }
}
/* cubes: gentle tumble + bob */
@keyframes cta-cube {
    0%   { transform: translateY(0)     rotateX(-18deg) rotateY(0deg); }
    50%  { transform: translateY(-14px) rotateX(16deg)  rotateY(180deg); }
    100% { transform: translateY(0)     rotateX(-18deg) rotateY(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .cta-shape { animation: none !important; opacity: .22; }
    .cta-shape--ring { transform: rotateX(60deg); }
    .cta-shape--cube { transform: rotateX(-18deg) rotateY(24deg); }
}

/* ---- Contact strip ---- */
.contact-strip__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.contact-tile {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
    color: inherit;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.contact-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.contact-tile:hover .icon-badge--blue   { box-shadow: 0 0 0 6px rgba(27, 79, 204, .10),  0 10px 22px rgba(27, 79, 204, .28); }
.contact-tile:hover .icon-badge--orange { box-shadow: 0 0 0 6px rgba(245, 130, 32, .10), 0 10px 22px rgba(245, 130, 32, .28); }
.contact-tile h4 { margin: 0; font-size: 1rem; }
.contact-tile p {
    margin: 0;
    font-size: .93rem;
    color: var(--charcoal-lt);
    overflow-wrap: anywhere;
}
.contact-tile__val { font-weight: 600; color: var(--blue) !important; }

/* Contact page - aside list of clickable contact rows + map */
.contact-aside { align-self: start; }
.contact-list { display: grid; gap: 12px; }
.contact-list__item {
    display: flex;
    gap: 14px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 18px;
    color: inherit;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
a.contact-list__item:hover {
    transform: translateX(3px);
    box-shadow: var(--shadow);
    border-color: transparent;
}
a.contact-list__item:hover .icon-badge--blue   { box-shadow: 0 0 0 5px rgba(27, 79, 204, .10); }
a.contact-list__item:hover .icon-badge--orange { box-shadow: 0 0 0 5px rgba(245, 130, 32, .10); }
.contact-list__item .icon-badge { width: 46px; height: 46px; }
.contact-list__item .k {
    display: block;
    font-weight: 700;
    color: var(--blue);
    font-size: .72rem;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    margin-bottom: 2px;
}
.contact-list__item .v { font-size: .92rem; color: var(--charcoal-lt); overflow-wrap: anywhere; }
.contact-map {
    margin-top: 20px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
}
.contact-map iframe { border: 0; display: block; width: 100%; height: 240px; }

/* ---- Footer ---- */
.site-footer {
    background: #10192e;
    color: #b9c2d6;
    margin-top: 0;
}
.site-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding: 64px 24px 44px;
}
.site-footer h3 {
    color: #fff;
    font-size: .8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: #b9c2d6; font-size: .93rem; }
.site-footer a:hover { color: #fff; }
.site-footer__brand p { font-size: .92rem; }
.site-footer__contact { display: flex; gap: 8px; align-items: flex-start; }
.site-footer__contact .icon { color: var(--orange); flex: none; }
.site-footer__reach .icon { color: var(--orange); }
.site-footer__bar {
    border-top: 1px solid rgba(255,255,255,.08);
}
.site-footer__bar .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 18px;
    padding-bottom: 18px;
}
.site-footer__bar p { margin: 0; font-size: .86rem; }

/* ---- Forms ---- */
.form-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
}
.form-row { display: grid; gap: 6px; margin-bottom: 18px; }
.form-row label { font-weight: 600; font-size: .9rem; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.input,
.textarea,
.select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font: inherit;
    color: var(--charcoal);
    background: #fff;
}
.input:focus,
.textarea:focus,
.select:focus {
    outline: 3px solid rgba(27,79,204,.15);
    border-color: var(--blue);
}
.textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--charcoal-lt); }

/* ---- Alerts ---- */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
    font-weight: 600;
    font-size: .93rem;
}
.alert--success { background: #e7f7ec; color: #1c7a3e; border: 1px solid #b7e4c6; }
.alert--error   { background: #fdecec; color: #b3261e; border: 1px solid #f3c2c0; }
.alert--info    { background: var(--blue-tint); color: var(--blue-dark); border: 1px solid #cbd9fb; }

/* ---- Page hero (inner pages) ---- */
.page-hero {
    background:
        radial-gradient(800px 300px at 0% 0%, rgba(27,79,204,.12), transparent 60%),
        var(--gray-bg);
    padding: 64px 0;
    text-align: center;
    border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.page-hero p { color: var(--charcoal-lt); max-width: 40em; margin: 0 auto; font-size: 1.05rem; }

.breadcrumb { font-size: .85rem; color: var(--charcoal-lt); margin-bottom: 10px; }

/* ==================================================================
   Responsive  -  audited at ~1024px, ~768px and ~375px
   ================================================================== */

/* ---- <= 1024px : large tablet / small laptop ---- */
@media (max-width: 1024px) {
    :root { --section-y: 72px; }
    .hero__grid { grid-template-columns: 1fr; gap: 40px; }
    .hero__blob--1 { right: -4%; }
    .hero__visual { max-width: 480px; }
    .about__grid { grid-template-columns: 1fr; gap: 40px; }
    .about__grid--top { align-items: stretch; }
    .industry-grid { grid-template-columns: repeat(3, 1fr); }
    .contact-strip__grid { grid-template-columns: repeat(2, 1fr); }
    .stat-band { padding: 40px; }
    .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

/* ---- <= 860px : collapse the primary nav into a hamburger menu ---- */
@media (max-width: 860px) {
    .nav-toggle { display: flex; }
    .primary-nav {
        position: fixed;
        inset: 76px 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #fff;
        border-bottom: 1px solid var(--border);
        padding: 12px 24px 24px;
        transform: translateY(-140%);
        transition: transform .28s ease;
        box-shadow: var(--shadow-lg);
        max-height: calc(100vh - 76px);
        overflow-y: auto;
        z-index: 95;
    }
    .primary-nav.open { transform: translateY(0); }
    .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
    .primary-nav li { border-bottom: 1px solid var(--border); }
    .primary-nav a { display: block; padding: 15px 2px; font-size: 1rem; }
    .primary-nav a.active::after { display: none; }
    .nav-cta { margin-top: 16px; text-align: center; justify-content: center; width: 100%; }
    .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    body.nav-open { overflow: hidden; }
}

/* ---- <= 768px : tablet portrait ---- */
@media (max-width: 768px) {
    :root { --section-y: 60px; }
    .hero { padding: 60px 0 68px; }
    .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .logo__img { max-height: 36px; }
    .logo--footer .logo__img { max-height: 40px; background: #ffffff;}
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
    .cta-banner { padding: 46px 24px; }
    .stat-band { grid-template-columns: 1fr; gap: 18px; padding: 32px; text-align: center; }
    .stat-band::before { display: none; }
    /* lighten glass blur on smaller screens for performance */
    .site-header { -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px); }
    .hero__visual { -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
    .stat-band, .cta-banner { -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---- <= 560px ---- */
@media (max-width: 560px) {
    .form-grid-2 { grid-template-columns: 1fr; }
    .process-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; }
    .industry-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .contact-strip__grid { grid-template-columns: 1fr; }
    .site-footer__grid { grid-template-columns: 1fr; }
    .site-footer__bar .container { justify-content: center; text-align: center; }
    .svc-group__head { flex-wrap: wrap; }
    .svc-group__head a { margin-left: 0; }
    .svc-group__head h3 { font-size: 1.12rem; }
    .card-grid { grid-template-columns: 1fr; }
    .form-card { padding: 22px; }
    .form-card button[type="submit"] { width: 100%; justify-content: center; }
    .cta-banner { padding: 40px 20px; }
    .about__media { padding: 12px; }
    .hero__visual { background: linear-gradient(160deg, #1B4FCC, #2f6bff); }
}

/* ---- <= 380px : small phones ---- */
@media (max-width: 380px) {
    .container { padding: 0 16px; }
    .logo__text { display: none; }
    .logo__img { max-height: 32px; max-width: 180px; }
    .logo--footer .logo__img { max-height: 36px; }
    .mock-window__body { grid-template-columns: repeat(2, 1fr); }
    .stat-band__num { font-size: 3rem; }
    .section-head { margin-bottom: 36px; }
}

/* ==================================================================
   Custom cursor (public site) - enabled by cursor.js on fine pointers
   ================================================================== */
body.has-custom-cursor,
body.has-custom-cursor * {
    cursor: none !important;
}

.cursor-dot,
.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    border-radius: 50%;
    opacity: 0;
    z-index: 99999;
    will-change: transform;
}
.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--orange);
    box-shadow: 0 0 10px rgba(245, 130, 32, .8);
    transition: opacity .25s ease;
}
.cursor-ring {
    width: 38px;
    height: 38px;
    border: 2px solid rgba(27, 79, 204, .55);
    box-shadow: 0 0 18px rgba(27, 79, 204, .22);
    transition: opacity .25s ease, border-color .2s ease,
                background-color .2s ease, box-shadow .2s ease;
}
body.cursor-active .cursor-dot,
body.cursor-active .cursor-ring { opacity: 1; }

body.cursor-hover .cursor-ring {
    border-color: var(--orange);
    background-color: rgba(245, 130, 32, .12);
    box-shadow: 0 0 26px rgba(245, 130, 32, .4);
}
body.cursor-hover .cursor-dot {
    box-shadow: 0 0 16px rgba(245, 130, 32, 1);
}

@media (pointer: coarse), (hover: none) {
    .cursor-dot, .cursor-ring { display: none !important; }
}

/* ==================================================================
   Scroll-triggered entrance animations (scroll-animate.js)
   ================================================================== */
[data-animate].animate-ready {
    opacity: 0;
    transition:
        opacity .5s cubic-bezier(.22, .61, .36, 1),
        transform .5s cubic-bezier(.22, .61, .36, 1);
    transition-delay: var(--animate-delay, 0ms);
    will-change: opacity, transform;
}
[data-animate="fade-up"].animate-ready     { transform: translateY(26px); }
[data-animate="fade-left"].animate-ready   { transform: translateX(-28px); }
[data-animate="fade-right"].animate-ready  { transform: translateX(28px); }
[data-animate="fade-scale"].animate-ready  { transform: scale(.98); }

[data-animate].is-visible {
    opacity: 1;
    transform: none;
}

/* On small screens, horizontal reveals become vertical (no sideways shift) */
@media (max-width: 768px) {
    [data-animate="fade-left"].animate-ready,
    [data-animate="fade-right"].animate-ready { transform: translateY(22px); }
}

@media (prefers-reduced-motion: reduce) {
    [data-animate].animate-ready {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .cursor-dot, .cursor-ring { transition: none; }
}

/* ==================================================================
   Branded preloader (public site only - see includes/preloader.php)
   ================================================================== */
html.is-preloading,
html.is-preloading body { overflow: hidden; }

.preloader {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: grid;
    place-items: center;
    background: var(--white);
    transition: opacity .32s ease, visibility .32s ease;
    /* failsafe: if the controller JS never runs, don't trap the user */
    animation: pl-failsafe 0s linear 10s forwards;
}
@keyframes pl-failsafe {
    to { opacity: 0; visibility: hidden; pointer-events: none; }
}
.preloader--done {
    opacity: 0;
    visibility: hidden;
}
.preloader__box {
    text-align: center;
    animation: pl-pulse 1.8s ease-in-out infinite;
}
.preloader__logo {
    display: flex;
    justify-content: center;
    font-weight: 800;
    font-size: clamp(2.4rem, 8.5vw, 3.2rem);
    letter-spacing: 4px;
    perspective: 720px;
}
/* the whole lockup rotates like a solid 3D sign */
.preloader__logo-3d {
    display: inline-flex;
    gap: 8px;
    transform: rotateX(-6deg);
    transform-style: preserve-3d;
    animation: pl-spin 5s linear infinite;
    animation-delay: .9s;
}
.preloader__logo span {
    display: inline-block;
    color: #3f74ff;                        /* lighter front face */
    /* stacked shadows fake an extruded block going down-right */
    text-shadow:
        1px 1px 0 #1b4fcc,
        2px 2px 0 #1a49c0,
        3px 3px 0 #1844b3,
        4px 4px 0 #163fa6,
        5px 5px 0 #143a99,
        6px 6px 0 #12358c,
        7px 7px 0 #10307f,
        8px 9px 16px rgba(6, 18, 60, .45);
    opacity: 0;
    transform: translateY(10px) scale(.88);
    animation: pl-letter .5s cubic-bezier(.22, .61, .36, 1) forwards;
}
.preloader__logo span:nth-child(1) { animation-delay: .05s; }
.preloader__logo span:nth-child(2) { animation-delay: .18s; }
.preloader__logo span:nth-child(3) { animation-delay: .31s; }
.preloader__word {
    margin-top: 10px;
    font-size: .7rem;
    letter-spacing: 3px;
    font-weight: 700;
    color: #8a8f9c;
    opacity: 0;
    animation: pl-fade .5s ease .44s forwards;
}
.preloader__track {
    margin: 22px auto 0;
    width: 150px;
    height: 3px;
    border-radius: 3px;
    background: rgba(27, 79, 204, .15);
    overflow: hidden;
}
.preloader__bar {
    display: block;
    width: 45%;
    height: 100%;
    border-radius: 3px;
    background: var(--orange);
    animation: pl-slide 1s ease-in-out infinite;
}
@keyframes pl-letter { to { opacity: 1; transform: none; } }
@keyframes pl-fade   { to { opacity: 1; } }
@keyframes pl-spin {
    from { transform: rotateX(-6deg) rotateY(0deg); }
    to   { transform: rotateX(-6deg) rotateY(360deg); }
}
@keyframes pl-slide {
    0%   { transform: translateX(-130%); }
    50%  { transform: translateX(175%); }
    100% { transform: translateX(-130%); }
}
@keyframes pl-pulse {
    0%, 100% { filter: drop-shadow(0 0 0 rgba(27, 79, 204, 0)); }
    50%      { filter: drop-shadow(0 8px 22px rgba(27, 79, 204, .22)); }
}

@media (prefers-reduced-motion: reduce) {
    .preloader__box { animation: none; }
    .preloader__logo-3d { animation: none; transform: rotateX(-6deg); }
    .preloader__logo span {
        opacity: 1;
        transform: none;
        animation: pl-fade .3s ease forwards;
    }
    .preloader__word { animation: none; opacity: 1; }
    .preloader__bar { animation: none; width: 100%; opacity: .55; }
}
