﻿/* ==========================================================================
   Shreeyan Webtech — Design System
   Premium technology-agency identity. Tokens -> base -> layout -> components.
   ========================================================================== */

:root {
    /* Neutrals */
    --white: #ffffff;
    --off-white: #f7f8fb;
    --mist: #eef1f7;
    --line: #e3e7f0;
    --line-strong: #d3d9e6;
    /* Navy / charcoal (primary) */
    --navy-950: #090d18;
    --navy-900: #0d1424;
    --navy-800: #141d33;
    --navy-700: #1c2740;
    --ink: #0c1220;
    --charcoal: #2a3142;
    --body-text: #4a5268;
    --muted: #7a8299;
    --muted-on-dark: #9aa4c0;
    --line-on-dark: rgba(255, 255, 255, 0.1);
    /* Accents */
    --electric: #4c8dff;
    --electric-600: #2f6fe0;
    --electric-100: rgba(76, 141, 255, 0.1);
    --electric-200: rgba(76, 141, 255, 0.18);
    --violet: #8f85f4;
    --violet-100: rgba(143, 133, 244, 0.12);
    --teal: #22d3c8;
    --teal-100: rgba(34, 211, 200, 0.12);
    --gradient-brand: linear-gradient(120deg, var(--electric) 0%, var(--violet) 60%, var(--teal) 120%);
    --gradient-brand-soft: linear-gradient(120deg, var(--electric-100) 0%, var(--violet-100) 60%, var(--teal-100) 120%);
    /* Type */
    --font-display: "Sora", "Segoe UI", sans-serif;
    --font-body: "Inter", "Segoe UI", sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, monospace;
    /* Layout */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-pill: 999px;
    --shadow-sm: 0 1px 2px rgba(12, 18, 32, 0.06);
    --shadow-md: 0 12px 32px -12px rgba(12, 18, 32, 0.18);
    --shadow-lg: 0 28px 60px -20px rgba(12, 18, 32, 0.28);
    --shadow-glow: 0 18px 44px -14px rgba(76, 141, 255, 0.35);
    --header-h: 76px;
    --container-max: 1200px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    font-family: var(--font-body);
    color: var(--body-text);
    background: var(--white);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--ink);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0;
}

p {
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

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

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

button {
    font-family: inherit;
}

.container {
    max-width: var(--container-max);
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--ink);
    color: var(--white);
    padding: 0.75rem 1.25rem;
    z-index: 2000;
    border-radius: 0 0 var(--radius-sm) 0;
}

    .skip-link:focus {
        left: 0;
    }

:focus-visible {
    outline: 2px solid var(--electric);
    outline-offset: 3px;
    border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   Type utilities
   ========================================================================== */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--electric-600);
    margin-bottom: 1rem;
}

    .eyebrow::before {
        content: "";
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: var(--gradient-brand);
        box-shadow: 0 0 0 4px var(--electric-100);
        flex: none;
    }

.eyebrow--dark {
    color: #a9bcff;
}

    .eyebrow--dark::before {
        box-shadow: 0 0 0 4px rgba(76, 141, 255, 0.28);
    }

.section-title {
    font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.75rem);
    margin-bottom: 1rem;
}

.section-lead {
    font-size: 1.08rem;
    color: var(--muted);
    max-width: 640px;
    line-height: 1.7;
}

.section-head {
    margin-bottom: 3rem;
}

.section-head--center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

    .section-head--center .section-lead {
        margin-left: auto;
        margin-right: auto;
    }

/* ==========================================================================
   Section rhythm
   ========================================================================== */

.section {
    padding: clamp(3.5rem, 3rem + 2vw, 6.5rem) 0;
}

.section--tight {
    padding: clamp(2.5rem, 2rem + 1.5vw, 4rem) 0;
}

.section--alt {
    background: var(--off-white);
}

.section--dark {
    background: var(--navy-950);
    color: var(--muted-on-dark);
}

    .section--dark .section-title,
    .section--dark h1, .section--dark h2, .section--dark h3 {
        color: var(--white);
    }

    .section--dark .section-lead {
        color: var(--muted-on-dark);
    }

.page-hero {
    padding-top: clamp(2.75rem, 2rem + 3vw, 5rem);
    padding-bottom: clamp(2.5rem, 2rem + 2vw, 3.5rem);
    position: relative;
    background: radial-gradient(50% 80% at 90% 0%, var(--electric-100), transparent 65%), radial-gradient(40% 60% at 0% 100%, var(--teal-100), transparent 70%);
}

    .page-hero .section-title {
        max-width: 820px;
    }

    .page-hero .section-lead {
        margin-top: 0.75rem;
    }

.pt-0 {
    padding-top: 0 !important;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-pill);
    padding: 0.8rem 1.6rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid transparent;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
    white-space: nowrap;
}

    .btn svg {
        width: 16px;
        height: 16px;
        transition: transform 0.25s var(--ease);
    }

.btn-primary {
    background: var(--gradient-brand);
    background-size: 160% 160%;
    background-position: 0% 50%;
    color: var(--white);
    box-shadow: 0 10px 24px -10px rgba(76, 141, 255, 0.55);
    transition: background-position 0.45s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

    .btn-primary:hover {
        background-position: 100% 50%;
        transform: translateY(-2px);
        box-shadow: var(--shadow-glow);
        color: var(--white);
    }

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line-strong);
}

    .btn-ghost:hover {
        border-color: var(--electric);
        color: var(--electric-600);
        transform: translateY(-2px);
    }

.btn-ghost--onDark {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.28);
}

    .btn-ghost--onDark:hover {
        border-color: var(--white);
        color: var(--white);
        background: rgba(255, 255, 255, 0.06);
    }

.btn-white {
    background: var(--white);
    color: var(--ink);
}

    .btn-white:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
        color: var(--ink);
    }

.btn-lg {
    padding: 0.95rem 1.9rem;
    font-size: 1rem;
}

.btn:hover svg {
    transform: translateX(2px);
}

.btn-sm-nav {
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    color: var(--ink);
    border-bottom: 1px solid var(--line-strong);
    padding-bottom: 2px;
    transition: color 0.2s var(--ease), border-color 0.2s var(--ease), gap 0.2s var(--ease);
}

    .link-arrow svg {
        width: 15px;
        height: 15px;
        transition: transform 0.2s var(--ease);
    }

    .link-arrow:hover {
        color: var(--electric);
        border-color: var(--electric);
        gap: 0.6rem;
    }

        .link-arrow:hover svg {
            transform: translateX(3px);
        }

/* ==========================================================================
   Navbar.
   The header is ALWAYS position:fixed, on every page — so it floats
   over whatever section sits at the top of the page instead of
   reserving its own space in normal document flow (which is what
   caused the earlier "white patch": the header pushed content down and
   showed the plain page background behind it instead of overlapping).

   Every page's top section (.hero, .hero--video, .page-hero) already
   carries generous top padding sized to sit under this floating header,
   so no extra spacer is needed here.

   Effect, consistent on every page:
   - At the top of the page the pill is transparent (.site-navbar__row
     has no background/shadow) so whatever's behind it — video, page
     gradient, section content — shows through.
   - Past ~8px of scroll, site.js adds "is-scrolled" and the pill
     solidifies into the white capsule with a shadow.
   - Only the home page's video hero is dark, so ONLY there do the nav
     text/brand/toggle colors flip to white (see the has-hero-video
     block further down) — every other page keeps its normal dark text,
     which already reads fine over the light .page-hero background.
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    border-bottom: none;
    box-shadow: none;
    padding-top: 18px;
    padding-bottom: 6px;
    transition: padding-top 0.35s var(--ease), padding-bottom 0.35s var(--ease);
}

    .site-header.is-scrolled {
        padding-top: 10px;
        padding-bottom: 0;
    }

.site-navbar {
    position: relative;
    padding: 0;
    height: var(--header-h);
    transition: height 0.3s var(--ease);
}

/* The actual visual bar. Transparent (no background/shadow) at the top
   of every page — see the ":not(.is-scrolled)" rule below — and becomes
   this solid pill with a shadow everywhere once .is-scrolled is added. */
.site-navbar__row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    height: 100%;
    padding: 0 0.5rem;
    border-radius: var(--radius-pill);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease), backdrop-filter 0.35s var(--ease), padding 0.35s var(--ease);
}

.site-header.is-scrolled .site-navbar__row {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 8px 24px -18px rgba(12, 18, 32, 0.35);
}

/* Transparent-until-scrolled state, on every page. */
.site-header:not(.is-scrolled) .site-navbar__row {
    background: transparent;
    box-shadow: none;
}

.site-brand,
.site-nav,
.site-navbar__actions {
    opacity: 0;
    animation: navIn 0.55s var(--ease) forwards;
}

.site-brand {
    animation-delay: 0.04s;
    padding-left: 0.75rem;
}

.site-nav {
    animation-delay: 0.1s;
}

.site-navbar__actions {
    animation-delay: 0.16s;
    padding-right: 0.25rem;
}

@keyframes navIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- Brand ---- */
.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--ink);
    flex: none;
}

.site-brand__mark {
    position: relative;
    width: 30px;
    height: 30px;
    flex: none;
    transition: transform 0.3s var(--ease);
}

.site-brand__square {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 6px;
}

.site-brand__square--back {
    background: var(--violet);
    top: 0;
    left: 8px;
    opacity: 0.55;
}

.site-brand__square--front {
    background: var(--electric);
    bottom: 0;
    left: 0;
}

.site-brand__text-light {
    font-weight: 500;
    color: var(--muted);
}

/* ---- Primary links: sit inside their own rounded capsule, with an
   animated underline that answers hover/active state. ---- */
.site-nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0 auto;
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius-pill);
    background: var(--off-white);
    transition: background-color 0.35s var(--ease);
}

.site-nav__item {
    position: static;
}

.site-nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.93rem;
    color: var(--charcoal);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.65rem 0.7rem;
    transition: color 0.2s var(--ease);
    white-space: nowrap;
}

    .site-nav__link::after {
        content: "";
        position: absolute;
        left: 0.7rem;
        right: 0.7rem;
        bottom: 0.35rem;
        height: 2px;
        border-radius: var(--radius-pill);
        background: var(--gradient-brand);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.25s var(--ease);
    }

    .site-nav__link:hover,
    .site-nav__link.active,
    .site-nav__link[aria-expanded="true"] {
        color: var(--electric-600);
    }

        .site-nav__link:hover::after,
        .site-nav__link.active::after,
        .site-nav__link[aria-expanded="true"]::after {
            transform: scaleX(1);
        }

.site-nav__chevron {
    width: 9px;
    height: 9px;
    flex: none;
    transition: transform 0.25s var(--ease);
}

.site-nav__link[aria-expanded="true"] .site-nav__chevron {
    transform: rotate(180deg);
}

@media (max-width: 991.98px) {
    .site-nav {
        display: none;
    }
}

/* ---- Full-width shelf panels for About / Services ----
   Anchored to .site-navbar (position:relative) with left:0; width:100%,
   so the panel always spans the header regardless of which link opened
   it or how wide the viewport is — this is what replaces the old
   dropdown that could run off the right edge of the screen. */
.nav-panel {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--navy-950);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
    z-index: 900;
}

    .nav-panel.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

.nav-panel__grid {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 2.5rem;
    padding: 2.25rem 0;
}

.nav-panel__eyebrow {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6d7799;
    margin-bottom: 1rem;
}

.nav-panel__link {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--white);
    padding: 0.6rem 0;
    transition: color 0.2s var(--ease);
}

    .nav-panel__link span {
        font-weight: 400;
        font-size: 0.82rem;
        color: var(--muted-on-dark);
    }

    .nav-panel__link:hover {
        color: var(--electric);
    }

.nav-panel__aside {
    padding-left: 2.5rem;
    border-left: 1px solid var(--line-on-dark);
    display: flex;
    flex-direction: column;
}

.nav-panel__contact {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    padding: 0.4rem 0;
    transition: color 0.2s var(--ease);
}

    .nav-panel__contact svg {
        width: 15px;
        height: 15px;
        color: var(--electric);
        flex: none;
    }

    .nav-panel__contact:hover {
        color: var(--white);
    }

@media (max-width: 991.98px) {
    .nav-panel {
        display: none;
    }
}

/* ---- Actions: CTA + hamburger ---- */
.site-navbar__actions {
    flex: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-cta {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--gradient-brand);
    background-size: 160% 160%;
    background-position: 0% 50%;
    color: var(--white);
    font-weight: 600;
    font-size: 0.88rem;
    border-radius: var(--radius-pill);
    padding: 0.55rem 0.6rem 0.55rem 1.15rem;
    box-shadow: 0 10px 22px -12px rgba(76, 141, 255, 0.6);
    transition: background-position 0.45s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

    .nav-cta:hover {
        background-position: 100% 50%;
        color: var(--white);
        transform: translateY(-1px);
        box-shadow: var(--shadow-glow);
    }

.nav-cta__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    color: var(--white);
    flex: none;
}

    .nav-cta__icon svg {
        width: 14px;
        height: 14px;
    }

@media (max-width: 767.98px) {
    .nav-cta span {
        display: none;
    }

    .nav-cta {
        padding: 0.55rem;
    }

    .nav-cta__icon {
        background: transparent;
    }
}

/* ---- Hamburger: hidden on desktop, the only mobile trigger ---- */
.nav-toggle {
    display: none;
    flex: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    background: var(--white);
    color: var(--ink);
    cursor: pointer;
    transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), transform 0.2s var(--ease);
}

    .nav-toggle:hover {
        border-color: var(--electric);
        color: var(--electric-600);
    }

.nav-toggle__bars {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
}

    .nav-toggle__bars span {
        display: block;
        width: 16px;
        height: 2px;
        border-radius: var(--radius-pill);
        background: currentColor;
        transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
    }

.nav-toggle.is-open {
    background: var(--navy-950);
    border-color: var(--navy-950);
    color: var(--white);
}

    .nav-toggle.is-open .nav-toggle__bars span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .nav-toggle.is-open .nav-toggle__bars span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.is-open .nav-toggle__bars span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

@media (max-width: 991.98px) {
    .nav-toggle {
        display: inline-flex;
    }
}

/* ==========================================================================
   Mobile drawer: single right-hand slide-in panel + scrim
   ========================================================================== */
.mobile-drawer {
    position: fixed;
    inset: 0;
    z-index: 1200;
    visibility: hidden;
    pointer-events: none;
}

    .mobile-drawer.is-open {
        visibility: visible;
        pointer-events: auto;
    }

.mobile-drawer__scrim {
    position: absolute;
    inset: 0;
    background: rgba(9, 13, 24, 0.55);
    opacity: 0;
    transition: opacity 0.3s var(--ease);
}

.mobile-drawer.is-open .mobile-drawer__scrim {
    opacity: 1;
}

.mobile-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(360px, 88vw);
    background: var(--navy-950);
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1.5rem 2rem;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    overflow-y: auto;
}

.mobile-drawer.is-open .mobile-drawer__panel {
    transform: translateX(0);
}

.mobile-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    flex: none;
}

.mobile-drawer__close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s var(--ease);
}

    .mobile-drawer__close svg {
        width: 16px;
        height: 16px;
    }

    .mobile-drawer__close:hover {
        background: rgba(255, 255, 255, 0.2);
    }

.mobile-drawer__list {
    display: flex;
    flex-direction: column;
    padding: 0.5rem 0 1.5rem;
    border-bottom: 1px solid var(--line-on-dark);
}

    .mobile-drawer__list > li > a {
        display: block;
        padding: 0.85rem 0.1rem;
        font-family: var(--font-display);
        font-weight: 700;
        font-size: 1.05rem;
        color: var(--white);
    }

.mobile-drawer__group-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.85rem 0.1rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--white);
}

    .mobile-drawer__group-trigger svg {
        width: 11px;
        height: 11px;
        color: var(--muted-on-dark);
        transition: transform 0.25s var(--ease);
        flex: none;
    }

    .mobile-drawer__group-trigger[aria-expanded="true"] svg {
        transform: rotate(180deg);
    }

.mobile-drawer__sublist {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s var(--ease);
}

    .mobile-drawer__sublist > * {
        overflow: hidden;
    }

.mobile-drawer__group.is-open .mobile-drawer__sublist {
    grid-template-rows: 1fr;
}

.mobile-drawer__sublist a {
    display: block;
    padding: 0.55rem 0.1rem 0.55rem 1rem;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--muted-on-dark);
}

    .mobile-drawer__sublist a:hover {
        color: var(--white);
    }

.mobile-drawer__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 1.5rem;
    background: var(--gradient-brand);
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-pill);
    padding: 0.85rem 1.1rem;
}

.mobile-drawer__contact {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

    .mobile-drawer__contact a,
    .mobile-drawer__contact span {
        display: inline-flex;
        align-items: center;
        gap: 0.6rem;
        font-size: 0.88rem;
        color: rgba(255, 255, 255, 0.7);
    }

    .mobile-drawer__contact svg {
        width: 15px;
        height: 15px;
        color: var(--electric);
        flex: none;
    }

body.nav-open {
    overflow: hidden;
}

/* ==========================================================================
   Company card link/status (used on the back of the Companies flip cards)
   ========================================================================== */

.company-card {
    display: flex;
    flex-direction: column;
}

.company-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1.1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--electric-600);
}

    .company-card__link svg {
        width: 15px;
        height: 15px;
        transition: transform 0.2s var(--ease);
    }

    .company-card__link:hover svg {
        transform: translate(2px, -2px);
    }

.company-card__soon {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1.1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--muted);
}

    .company-card__soon svg {
        width: 14px;
        height: 14px;
    }

.flip-card__face--back .company-card__link {
    color: var(--teal);
    border-top-color: var(--line-on-dark);
}

.flip-card__face--back .company-card__soon {
    color: var(--muted-on-dark);
    border-top-color: var(--line-on-dark);
}

/* ==========================================================================
   Flip cards (Companies page)
   ========================================================================== */

.flip-card {
    perspective: 1600px;
    height: 320px;
    outline: none;
    cursor: pointer;
}

.flip-card__inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.7s var(--ease);
    transform-style: preserve-3d;
}

@media (hover: hover) and (pointer: fine) {
    .flip-card:hover .flip-card__inner {
        transform: rotateY(180deg);
    }
}

.flip-card.is-flipped .flip-card__inner {
    transform: rotateY(180deg);
}

.flip-card__face {
    position: absolute;
    inset: 0;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: var(--radius-md);
    padding: 1.9rem;
    display: flex;
    flex-direction: column;
}

.flip-card__face--front {
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    align-items: flex-start;
    justify-content: center;
    transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.flip-card:hover .flip-card__face--front {
    box-shadow: var(--shadow-lg), 0 0 0 1px var(--electric-100);
    border-color: var(--line-strong);
}

.flip-card__face--back {
    background: linear-gradient(160deg, var(--navy-900), var(--navy-800));
    color: var(--white);
    transform: rotateY(180deg);
    justify-content: space-between;
    box-shadow: var(--shadow-lg);
}

.flip-card__back-title {
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 0.4rem;
}

.flip-card__badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--electric);
    background: rgba(76, 141, 255, 0.15);
    border-radius: var(--radius-pill);
    padding: 0.2rem 0.65rem;
    margin-bottom: 0.75rem;
}

.flip-card__back-desc {
    font-size: 0.92rem;
    color: var(--muted-on-dark);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.flip-card__highlights {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

    .flip-card__highlights li {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.85rem;
        color: var(--muted-on-dark);
    }

        .flip-card__highlights li svg {
            width: 14px;
            height: 14px;
            color: var(--teal);
            flex: none;
        }

.flip-card__hint {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1.25rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--electric-600);
}

    .flip-card__hint svg {
        width: 13px;
        height: 13px;
    }

@media (hover: hover) and (pointer: fine) {
    .flip-card__hint {
        display: none;
    }
}

/* ==========================================================================
   Mission / Vision cards
   ========================================================================== */

.mv-card {
    height: 100%;
    padding: 2.25rem;
    border-radius: var(--radius-lg);
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

    .mv-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
    }

.mv-card--alt {
    background: linear-gradient(160deg, var(--navy-900), var(--navy-800));
    border-color: transparent;
}

    .mv-card--alt .mv-card__title,
    .mv-card--alt .mv-card__desc {
        color: var(--white);
    }

    .mv-card--alt .mv-card__desc {
        color: var(--muted-on-dark);
    }

    .mv-card--alt .card-icon {
        background: rgba(255, 255, 255, 0.12);
        color: var(--white);
    }

.mv-card__title {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.mv-card__desc {
    color: var(--body-text);
    line-height: 1.7;
}

/* ==========================================================================
   Industry chips
   ========================================================================== */

.industry-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    text-align: center;
    padding: 1.4rem 0.75rem;
    height: 100%;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--charcoal);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

    .industry-chip:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-md);
        border-color: var(--line-strong);
    }

    .industry-chip svg {
        width: 24px;
        height: 24px;
        color: var(--electric);
    }

/* ==========================================================================
   Stats band (animated counters)
   ========================================================================== */

.stats-band {
    background: linear-gradient(135deg, var(--navy-950), var(--navy-800));
    border-radius: var(--radius-lg);
    padding: clamp(2rem, 1.6rem + 2vw, 3.2rem);
    position: relative;
    overflow: hidden;
}

    .stats-band::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(55% 90% at 12% 0%, var(--electric-200), transparent 60%), radial-gradient(45% 70% at 100% 100%, var(--violet-100), transparent 65%);
        pointer-events: none;
    }

.stats-band__grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

@media (max-width: 767.98px) {
    .stats-band__grid {
        grid-template-columns: 1fr;
        gap: 2.25rem;
    }
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.stat-number {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.2rem, 1.8rem + 1.6vw, 3rem);
    color: var(--white);
    letter-spacing: -0.02em;
}

    .stat-number .stat-number__suffix {
        color: var(--electric);
    }

.stat-label {
    font-size: 0.95rem;
    color: var(--muted-on-dark);
    max-width: 240px;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
    position: relative;
    padding: clamp(3rem, 2rem + 4vw, 6rem) 0 clamp(3rem, 2rem + 3vw, 5rem);
    overflow: hidden;
    background: radial-gradient(60% 55% at 82% 8%, var(--electric-100), transparent 60%), radial-gradient(45% 45% at 100% 55%, var(--violet-100), transparent 65%), radial-gradient(35% 40% at 8% 85%, var(--teal-100), transparent 70%);
}

    .hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
        background-size: 56px 56px;
        -webkit-mask-image: radial-gradient(60% 60% at 78% 25%, #000 0%, transparent 72%);
        mask-image: radial-gradient(60% 60% at 78% 25%, #000 0%, transparent 72%);
        opacity: 0.6;
        pointer-events: none;
    }

    .hero .container {
        position: relative;
        z-index: 1;
    }

/* ==========================================================================
   Hero — full-bleed video background (Infosys-style)
   ========================================================================== */

.hero--video {
    background: #0b1220; /* fallback while video loads / if it fails */
    min-height: clamp(560px, 82vh, 820px);
    display: flex;
    align-items: center;
}

    .hero--video::before {
        display: none; /* drop the light grid pattern; the video is the texture now */
    }

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-bg__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-bg__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, rgba(10, 16, 32, 0.92) 0%, rgba(15, 23, 42, 0.72) 45%, rgba(15, 23, 42, 0.4) 100%), linear-gradient(0deg, rgba(6, 10, 20, 0.55), rgba(6, 10, 20, 0.55));
}

/* Re-theme hero copy for the dark video backdrop. */
.hero--video .eyebrow {
    color: var(--teal);
}

.hero--video .hero-title,
.hero--video .hero-lead {
    color: #fff;
}

.hero--video .hero-title {
    color: #fff;
}

.hero--video .hero-lead {
    color: rgba(255, 255, 255, 0.78);
}

.hero--video .hero-ticker__item {
    color: #fff;
}

.hero--video .hero-trust__item {
    color: rgba(255, 255, 255, 0.92);
}

.hero--video .btn-ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
}

    .hero--video .btn-ghost:hover {
        border-color: #fff;
        color: #fff;
        background: rgba(255, 255, 255, 0.08);
    }

@media (prefers-reduced-motion: reduce) {
    .hero-bg__video {
        display: none;
    }
}

/* ==========================================================================
   Homepage hero-video header: extra color flip for the dark video
   backdrop. The transparent/solid pill behavior itself is universal
   (see the ":not(.is-scrolled)" rule above) — this block only swaps
   text/brand/toggle colors to light, since this is the one page with a
   dark background behind the transparent nav. Every other page keeps
   its normal dark nav text, which already reads fine over the light
   .page-hero background.
   ========================================================================== */

body.has-hero-video .site-header:not(.is-scrolled) .site-nav {
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

body.has-hero-video .site-header:not(.is-scrolled) .site-nav__link {
    color: rgba(255, 255, 255, 0.92);
}

body.has-hero-video .site-header:not(.is-scrolled) .site-brand,
body.has-hero-video .site-header:not(.is-scrolled) .site-brand__text {
    color: var(--white);
}

body.has-hero-video .site-header:not(.is-scrolled) .site-brand__text-light {
    color: rgba(255, 255, 255, 0.65);
}

body.has-hero-video .site-header:not(.is-scrolled) .nav-toggle {
    background: rgba(255, 255, 255, 0.95);
}

.hero .eyebrow,
.hero-lead,
.hero-actions,
.hero-trust {
    opacity: 0;
    animation: heroFadeUp 0.7s var(--ease) forwards;
}

.hero .eyebrow {
    animation-delay: 0.05s;
}

/* .hero-title is intentionally left out of the block above — it gets its
   own word-by-word reveal (see .word-mask below), driven by site.js.
   No opacity:0 default here, so the heading still shows immediately for
   anyone without JS enabled. */

.hero-lead {
    animation-delay: 0.28s;
}

.hero-actions {
    animation-delay: 0.4s;
}

.hero-trust {
    animation-delay: 0.5s;
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: clamp(2.3rem, 1.7rem + 2.6vw, 3.6rem);
    margin-bottom: 1.25rem;
    max-width: 620px;
}

    .hero-title .text-accent {
        background: var(--gradient-brand);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }

/* ---- Word-by-word reveal for [data-split-words] headings ----
   site.js wraps each word in .word-mask > .word and toggles .is-in;
   each mask clips its word so it slides up from underneath, cascading
   left to right. If JS never runs, the words stay in normal static flow
   (no inline opacity is set until JS actually wraps them), so nothing
   is ever hidden without a fallback. */
.word-mask {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    padding-bottom: 0.08em;
    margin-bottom: -0.08em;
}

    .word-mask .word {
        display: inline-block;
        will-change: transform, opacity;
        transition: transform 0.7s var(--ease), opacity 0.6s var(--ease);
    }

[data-split-words].is-in .word-mask .word {
    transform: translateY(0) !important;
    opacity: 1 !important;
}

.hero-lead {
    font-size: 1.12rem;
    color: var(--muted);
    max-width: 520px;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-bottom: 2.75rem;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1.75rem 2.25rem;
}

.hero-trust__item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--charcoal);
}

    .hero-trust__item svg {
        width: 17px;
        height: 17px;
        color: var(--electric);
        flex: none;
    }

.hero-ticker {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.4rem;
    height: 1.6rem;
    opacity: 0;
    animation: heroFadeUp 0.7s var(--ease) forwards;
    animation-delay: 0.34s;
}

.hero-ticker__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gradient-brand);
    flex: none;
    animation: heroPulse 1.8s ease-in-out infinite;
}

.hero-ticker__rail {
    position: relative;
    flex: 1;
    height: 100%;
    overflow: hidden;
}

.hero-ticker__item {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--charcoal);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

    .hero-ticker__item.is-active {
        opacity: 1;
        transform: translateY(0);
    }

@keyframes heroPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.6;
    }
}

.code-stack {
    position: relative;
    height: 460px;
    max-width: 500px;
    margin: 0 auto;
}

.code-window {
    position: absolute;
    top: 8%;
    left: 3%;
    width: 94%;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    opacity: 0;
    animation: windowIn 0.8s var(--ease) 0.25s forwards, float-a 7s ease-in-out 1s infinite;
}

@keyframes windowIn {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.code-window__bar {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 34px;
    padding: 0 14px;
    border-bottom: 1px solid var(--line);
    background: var(--off-white);
}

.code-window__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--line-strong);
}

.code-window__dot--red {
    background: #f3676b;
}

.code-window__dot--amber {
    background: #f5b84e;
}

.code-window__dot--green {
    background: #3fc481;
}

.code-window__file {
    margin-left: 0.5rem;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--muted, #6b7280);
    letter-spacing: 0.01em;
}

.code-window__body {
    padding: 20px 18px 24px;
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.code-line {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.86rem;
    white-space: nowrap;
}

.code-ln {
    flex: none;
    width: 14px;
    font-size: 0.72rem;
    color: var(--line-strong);
    text-align: right;
}

.code-tok--indent {
    display: inline-block;
    width: 18px;
}

.code-tok--tag {
    color: var(--electric-600);
    font-weight: 600;
}

.code-tok--attr {
    color: var(--violet);
}

.code-tok--str {
    color: #2fa876;
}

.code-tok--plain {
    color: var(--charcoal);
}

.code-tok--kw {
    color: #d6499a;
    font-weight: 600;
}

.code-tok--fn {
    color: var(--electric-600);
}

.code-tok--cmt {
    color: var(--line-strong);
    font-style: italic;
}

.code-cursor {
    display: inline-block;
    width: 6px;
    height: 15px;
    margin-left: 2px;
    background: var(--electric);
    animation: blink 1s step-end infinite;
}

.lang-chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    padding: 0.45rem 0.9rem;
    font-size: 0.78rem;
    font-weight: 700;
    box-shadow: var(--shadow-md);
    z-index: 4;
    opacity: 0;
    animation-name: chipIn, float-b;
    animation-duration: 0.5s, 7.5s;
    animation-timing-function: var(--ease), ease-in-out;
    animation-iteration-count: 1, infinite;
    animation-fill-mode: forwards, none;
}

@keyframes chipIn {
    from {
        opacity: 0;
        transform: scale(0.6);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lang-chip--csharp {
    top: 2%;
    right: -4%;
    color: #7c4fd6;
    animation-delay: 0.55s, 1.55s;
}

.lang-chip--dotnet {
    top: 40%;
    right: -9%;
    color: #7c4fd6;
    animation-name: chipIn, float-c;
    animation-duration: 0.5s, 8.5s;
    animation-delay: 0.68s, 0s;
}

.lang-chip--js {
    bottom: 20%;
    right: -6%;
    color: #b8952e;
    animation-delay: 0.8s, 1s;
}

.lang-chip--sql {
    bottom: -3%;
    left: 18%;
    color: var(--electric-600);
    animation-name: chipIn, float-c;
    animation-duration: 0.5s, 8s;
    animation-delay: 0.92s, 0.5s;
}

.lang-chip--html {
    top: 34%;
    left: -8%;
    color: #d97a3f;
    animation-delay: 1.05s, 1s;
}

.lang-chip--react {
    bottom: 6%;
    left: -6%;
    color: #2ba7c9;
    animation-name: chipIn, float-c;
    animation-duration: 0.5s, 7.2s;
    animation-delay: 1.18s, 1.5s;
}

@keyframes float-a {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-9px);
    }
}

@keyframes float-b {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-11px) rotate(-2deg);
    }
}

@keyframes float-c {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(10px) rotate(2deg);
    }
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

@media (max-width: 991.98px) {
    .code-stack {
        height: 360px;
        margin-top: 3rem;
    }

    .code-line {
        font-size: 0.76rem;
    }
}

@media (max-width: 575.98px) {
    .lang-chip {
        font-size: 0.68rem;
        padding: 0.35rem 0.7rem;
    }
}

/* ==========================================================================
   Trust strip
   ========================================================================== */

.trust-strip {
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--line);
}

.trust-strip__row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.5rem 2rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 600;
    color: var(--charcoal);
    font-size: 0.96rem;
}

    .trust-item svg {
        width: 20px;
        height: 20px;
        color: var(--electric);
        flex: none;
    }

/* ==========================================================================
   Split layout (About)
   ========================================================================== */

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 4vw, 4.5rem);
    align-items: center;
}

@media (max-width: 991.98px) {
    .split {
        grid-template-columns: 1fr;
    }
}

.split-statement {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem);
    font-weight: 700;
    color: var(--ink);
    line-height: 1.25;
}

    .split-statement .text-accent {
        background: var(--gradient-brand);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }

.split-points {
    margin-top: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.split-point {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.split-point__icon {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: var(--electric-100);
    color: var(--electric);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    margin-top: 2px;
}

    .split-point__icon svg {
        width: 14px;
        height: 14px;
    }

.split-point p {
    color: var(--body-text);
}

.split-point strong {
    color: var(--ink);
    font-weight: 600;
}

/* ==========================================================================
   Cards — feature / service / value
   ========================================================================== */

.card-icon {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-sm);
    background: var(--gradient-brand-soft);
    color: var(--electric);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: transform 0.3s var(--ease);
}

    .card-icon svg {
        width: 22px;
        height: 22px;
    }

.feature-card,
.service-card,
.value-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 1.9rem;
    height: 100%;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

    .feature-card:hover,
    .service-card:hover,
    .value-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lg), 0 0 0 1px var(--electric-100);
        border-color: var(--line-strong);
    }

        .feature-card:hover .card-icon,
        .service-card:hover .card-icon,
        .value-card:hover .card-icon {
            transform: scale(1.08) rotate(-4deg);
        }

.feature-card__title,
.service-card__title,
.value-card__title {
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
}

.feature-card__desc,
.service-card__desc,
.value-card__desc {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

.service-card__list {
    margin-top: 1.25rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

    .service-card__list li {
        display: flex;
        align-items: center;
        gap: 0.55rem;
        font-size: 0.87rem;
        color: var(--charcoal);
    }

        .service-card__list li::before {
            content: "";
            width: 5px;
            height: 5px;
            border-radius: 50%;
            background: var(--electric);
            flex: none;
        }

.value-card {
    position: relative;
}

.value-card__index {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 1.1rem;
    display: block;
}

/* ==========================================================================
   Process timeline
   ========================================================================== */

.process-rail {
    position: relative;
}

    .process-rail::before {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: 27px;
        width: 1px;
        background: var(--line);
    }

@media (min-width: 992px) {
    .process-rail {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 1.25rem;
    }

        .process-rail::before {
            top: 27px;
            left: 0;
            right: 0;
            bottom: auto;
            width: 100%;
            height: 1px;
        }
}

.process-step {
    position: relative;
    padding: 0 0 2.5rem 4.5rem;
}

@media (min-width: 992px) {
    .process-step {
        padding: 4.5rem 0 0;
    }
}

.process-step:last-child {
    padding-bottom: 0;
}

.process-step__num {
    position: absolute;
    top: 0;
    left: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--line-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--electric-600);
    z-index: 2;
}

@media (min-width: 992px) {
    .process-step__num {
        position: static;
        margin-bottom: 1.5rem;
    }
}

.process-step__title {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.process-step__desc {
    color: var(--muted);
    font-size: 0.95rem;
}

.flow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.flow-node {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    padding: 0.75rem 1.4rem;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--ink);
    box-shadow: var(--shadow-sm);
}

.flow-arrow {
    color: var(--muted);
    width: 18px;
    height: 18px;
    flex: none;
}

    .flow-arrow svg {
        width: 100%;
        height: 100%;
    }

/* ==========================================================================
   Portfolio (editorial grid)
   ========================================================================== */

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
}

.portfolio-card {
    grid-column: span 6;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

@media (min-width: 768px) {
    .portfolio-card:nth-child(4n+1) {
        grid-column: span 4;
    }

    .portfolio-card:nth-child(4n+2) {
        grid-column: span 2;
    }

    .portfolio-card:nth-child(4n+3) {
        grid-column: span 2;
    }

    .portfolio-card:nth-child(4n+4) {
        grid-column: span 4;
    }
}

.portfolio-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.portfolio-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: flex-end;
    padding: 1.25rem;
    overflow: hidden;
}

    .portfolio-card__media::after {
        content: "";
        position: absolute;
        inset: 0;
        background-image: linear-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
        background-size: 26px 26px;
        opacity: 0.5;
    }

.portfolio-card__category {
    position: relative;
    z-index: 1;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--white);
    background: rgba(9, 13, 24, 0.35);
    padding: 0.35rem 0.7rem;
    border-radius: var(--radius-pill);
    backdrop-filter: blur(6px);
}

.portfolio-card__body {
    padding: 1.5rem;
}

.portfolio-card__title {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.portfolio-card__desc {
    color: var(--muted);
    font-size: 0.93rem;
    margin-bottom: 1.1rem;
}

.portfolio-card__stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.stack-pill {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-sm);
    background: var(--off-white);
    border: 1px solid var(--line);
    color: var(--charcoal);
}

/* ==========================================================================
   Technology badges
   ========================================================================== */

.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 576px) {
    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) {
    .tech-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.tech-tile {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 1.4rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    background: var(--white);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

    .tech-tile:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-md);
        border-color: var(--line-strong);
    }

.tech-tile__name {
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.98rem;
    color: var(--ink);
}

.tech-tile__group {
    font-size: 0.78rem;
    color: var(--muted);
}

/* ==========================================================================
   Why choose us
   ========================================================================== */

.reason-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
}

.reason {
    display: flex;
    gap: 1rem;
}

.reason__icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: var(--violet-100);
    color: var(--violet);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

    .reason__icon svg {
        width: 20px;
        height: 20px;
    }

.reason__title {
    font-size: 1.02rem;
    margin-bottom: 0.35rem;
}

.reason__desc {
    font-size: 0.9rem;
    color: var(--muted);
}

/* ==========================================================================
   Testimonials (placeholder-safe)
   ========================================================================== */

.testimonial-placeholder {
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-lg);
    padding: clamp(2.25rem, 2rem + 2vw, 3.5rem);
    text-align: center;
    background: var(--off-white);
}

.testimonial-placeholder__icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: var(--electric);
}

    .testimonial-placeholder__icon svg {
        width: 24px;
        height: 24px;
    }

.testimonial-placeholder__title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.testimonial-placeholder__desc {
    color: var(--muted);
    max-width: 460px;
    margin: 0 auto;
}

/* ==========================================================================
   CTA banner
   ========================================================================== */

.cta-banner {
    background: var(--navy-950);
    border-radius: var(--radius-lg);
    padding: clamp(2.25rem, 2rem + 2vw, 3.75rem);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
    overflow: hidden;
}

    .cta-banner::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(60% 100% at 100% 0%, rgba(76, 141, 255, 0.35), transparent 60%);
        pointer-events: none;
    }

.cta-banner__content {
    position: relative;
    max-width: 560px;
}

.cta-banner__title {
    color: var(--white);
    font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.15rem);
    margin-bottom: 0.6rem;
}

.cta-banner__text {
    color: var(--muted-on-dark);
    font-size: 1rem;
}

.cta-banner__actions {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.final-cta {
    text-align: center;
    padding: clamp(4rem, 3rem + 3vw, 7rem) 0;
}

    .final-cta .section-title,
    .final-cta .cta-banner__text {
        margin-left: auto;
        margin-right: auto;
    }

    .final-cta .cta-banner__text {
        max-width: 480px;
        margin-top: 0.75rem;
        margin-bottom: 2rem;
    }

    .final-cta .hero-actions {
        justify-content: center;
        margin-bottom: 0;
    }

/* ==========================================================================
   Contact / Careers forms — redesigned
   ========================================================================== */

.contact-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(1.75rem, 1.5rem + 1.5vw, 2.75rem);
    box-shadow: var(--shadow-sm);
}

.contact-card__head {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--line);
}

.contact-card__head-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--gradient-brand-soft);
    color: var(--electric);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

    .contact-card__head-icon svg {
        width: 22px;
        height: 22px;
    }

.contact-card__head-title {
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
}

.contact-card__head-desc {
    font-size: 0.88rem;
    color: var(--muted);
}

/* ---- Field groups: floating-label style, grouped into fieldsets ---- */
.field-group {
    margin-bottom: 1.75rem;
}

    .field-group:last-of-type {
        margin-bottom: 0;
    }

.field-group__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1rem;
}

    .field-group__title::before {
        content: "";
        width: 16px;
        height: 1px;
        background: var(--gradient-brand);
        flex: none;
    }

.field {
    position: relative;
}

.form-label {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--ink);
    margin-bottom: 0.45rem;
    display: block;
}

    .form-label .field-optional {
        font-weight: 400;
        color: var(--muted);
        font-size: 0.8rem;
    }

.form-control,
.form-select {
    width: 100%;
    border: 1.5px solid var(--line-strong);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    color: var(--ink);
    background: var(--off-white);
    transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

    .form-control:hover,
    .form-select:hover {
        border-color: var(--line-strong);
        background: var(--white);
    }

    .form-control:focus,
    .form-select:focus {
        outline: none;
        border-color: var(--electric);
        box-shadow: 0 0 0 4px var(--electric-100);
        background: var(--white);
    }

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%237a8299' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    background-size: 16px;
    padding-right: 2.5rem;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

/* ---- Custom file upload control (Resume PDF) ---- */
.file-drop {
    position: relative;
    border: 1.5px dashed var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--off-white);
    padding: 1.1rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    cursor: pointer;
    transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

    .file-drop:hover {
        border-color: var(--electric);
        background: var(--electric-100);
    }

.file-drop__icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: var(--white);
    border: 1px solid var(--line);
    color: var(--electric);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

    .file-drop__icon svg {
        width: 18px;
        height: 18px;
    }

.file-drop__text {
    flex: 1;
    min-width: 0;
}

.file-drop__label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ink);
    display: block;
}

.file-drop__hint {
    font-size: 0.78rem;
    color: var(--muted);
    display: block;
    margin-top: 0.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-drop input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.form-text {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 0.4rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

@media (max-width: 575.98px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}

.form-submit__note {
    font-size: 0.82rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

    .form-submit__note svg {
        width: 15px;
        height: 15px;
        color: var(--teal);
        flex: none;
    }

.alert-success-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(36, 194, 129, 0.1);
    border: 1px solid rgba(36, 194, 129, 0.35);
    color: #12734f;
    border-radius: var(--radius-sm);
    padding: 0.9rem 1.1rem;
    margin-bottom: 1.5rem;
    font-size: 0.92rem;
}

    .alert-success-banner svg {
        width: 18px;
        height: 18px;
        flex: none;
    }

.contact-info__title {
    font-size: 1.15rem;
    margin-bottom: 1.25rem;
}

.contact-info__list {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    margin-bottom: 1.75rem;
}

    .contact-info__list li {
        display: flex;
        align-items: center;
        gap: 0.85rem;
    }

.contact-info__icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--electric-100);
    color: var(--electric);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

    .contact-info__icon svg {
        width: 18px;
        height: 18px;
    }

.contact-info__label {
    display: block;
    font-size: 0.78rem;
    color: var(--muted);
}

.contact-info__value {
    font-weight: 600;
    color: var(--ink);
}

.contact-info__note {
    border-top: 1px solid var(--line);
    padding-top: 1.5rem;
    font-size: 0.92rem;
    color: var(--muted);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: var(--navy-950);
    color: var(--muted-on-dark);
    padding: clamp(3rem, 2.5rem + 2vw, 5rem) 0 2rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 0.9fr 0.9fr 0.9fr 1.1fr;
    gap: 2rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--line-on-dark);
}

@media (max-width: 991.98px) {
    .footer-top {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .footer-brand-col {
        grid-column: 1 / -1;
    }
}

@media (max-width: 575.98px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

.site-brand--footer {
    color: var(--white);
    margin-bottom: 1rem;
}

    .site-brand--footer .site-brand__text-light {
        color: var(--muted-on-dark);
    }

.footer-tagline {
    font-size: 0.92rem;
    color: var(--muted-on-dark);
    max-width: 320px;
    line-height: 1.65;
}

.footer-heading {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: #6d7799;
    margin-bottom: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

    .footer-links a {
        font-size: 0.92rem;
        color: var(--muted-on-dark);
        transition: color 0.2s var(--ease);
    }

        .footer-links a:hover {
            color: var(--white);
        }

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

    .footer-contact li {
        display: flex;
        align-items: center;
        gap: 0.65rem;
        font-size: 0.92rem;
    }

    .footer-contact a {
        color: var(--muted-on-dark);
        transition: color 0.2s var(--ease);
    }

        .footer-contact a:hover {
            color: var(--white);
        }

.footer-contact__icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    color: #a9bcff;
}

    .footer-contact__icon svg {
        width: 15px;
        height: 15px;
    }

.footer-bottom {
    padding-top: 1.75rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.85rem;
    color: #6d7799;
}

.footer-bottom__links {
    display: flex;
    gap: 1.5rem;
}

    .footer-bottom__links a {
        color: #6d7799;
        transition: color 0.2s var(--ease);
    }

        .footer-bottom__links a:hover {
            color: var(--white);
        }

/* ==========================================================================
   Privacy / simple content page
   ========================================================================== */

.prose {
    max-width: 720px;
}

    .prose h2 {
        font-size: 1.4rem;
        margin-top: 2rem;
        margin-bottom: 0.75rem;
    }

    .prose p {
        color: var(--body-text);
        margin-bottom: 1rem;
        line-height: 1.75;
    }

/* ==========================================================================
   Scroll reveal utility
   ========================================================================== */

[data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

    [data-reveal].is-visible {
        opacity: 1;
        transform: translateY(0);
    }

@media (prefers-reduced-motion: reduce) {
    [data-reveal] {
        opacity: 1;
        transform: none;
    }
}

/* ==========================================================================
   Preloader
   ========================================================================== */

.preloader {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy-950);
    transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
}

body.is-loaded .preloader {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.preloader__mark {
    position: relative;
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
    animation: preloaderPulse 1.4s var(--ease) infinite;
}

/* Same two-square diagonal mark as the navbar logo (.site-brand__mark),
   just scaled up — so the loading screen and the header show the same
   brand mark instead of two different logos. */
.preloader__square {
    position: absolute;
    width: 42px;
    height: 42px;
    border-radius: 12px;
}

.preloader__square--a {
    background: var(--violet);
    top: 0;
    left: 17px;
    opacity: 0.55;
}

.preloader__square--b {
    background: var(--electric);
    bottom: 0;
    left: 0;
}

.preloader__square--c {
    display: none;
}

@keyframes preloaderPulse {
    0%, 100% {
        transform: scale(0.94);
    }

    50% {
        transform: scale(1.04);
    }
}

.preloader__brand {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
    color: var(--white);
    margin-bottom: 1.1rem;
}

.preloader__brand-light {
    font-weight: 500;
    color: var(--muted-on-dark);
}

.preloader__bar {
    width: 160px;
    height: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
    margin-bottom: 0.9rem;
}

.preloader__bar-fill {
    display: block;
    height: 100%;
    width: 40%;
    border-radius: 999px;
    background: var(--gradient-brand);
    animation: preloaderBar 1.1s ease-in-out infinite;
}

@keyframes preloaderBar {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(350%);
    }
}

.preloader__label {
    font-family: var(--font-mono, "JetBrains Mono", monospace);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted-on-dark);
    margin: 0;
}

@media (prefers-reduced-motion: reduce) {
    .preloader__square,
    .preloader__bar-fill {
        animation: none;
    }

    .preloader {
        transition: opacity 0.2s linear, visibility 0.2s linear;
    }
}
