/* HGX Media — Homepage + Shared Styles */
/* Note: This includes some shared styles that overlap with base.css.
   base.css takes precedence for shared patterns. */

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

:root {
    --blue: #1B6CF2;
    --blue-hover: #1560d9;
    --blue-bg: rgba(27, 108, 242, 0.04);
    --white: #070b15;
    --off-white: #0d1526;
    --text-primary: #ffffff;
    --text-secondary: #94a0b8;
    --text-muted: #5a6478;
    --border: rgba(255, 255, 255, 0.08);
    --font: 'Inter', -apple-system, sans-serif;
    --playfair: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --max-w: 1200px;
    --r: 12px;
    --r-sm: 8px;
    --r-lg: 16px;
    --r-xl: 20px;
}

#hgx-homepage {
    font-family: var(--font);
    background-color: var(--white);
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 24px 24px;
    color: var(--text-primary);
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    position: relative
}

/* NOISE GRAIN SVG FILTER */
svg.noise-filter {
    position: absolute;
    width: 0;
    height: 0
}

.hgx-grain-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
    background-size: 128px 128px;
    opacity: 0.5;
    mix-blend-mode: overlay;
}



/* CURSOR */



/* GRADIENT BG */
.hgx-gradient-bg {
    background: transparent;
}

/* PLACEHOLDER IMAGES */
.hgx-img-placeholder {
    width: 100%;
    height: 100%;
    background: var(--off-white);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    border-radius: var(--r-sm)
}

.hgx-img-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(27, 108, 242, 0.02) 0%, rgba(27, 108, 242, 0.05) 100%)
}

.hgx-img-placeholder .hgx-img-label {
    position: absolute;
    bottom: 10px;
    left: 10px;
    font-size: 9px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 500;
    z-index: 1
}

/* NAV — Blue Pill with glow */





















/* MEGA MENU */



















.hgx-btn-primary {
    background: linear-gradient(135deg, #2979ff 0%, #1B6CF2 50%, #1254d4 100%);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 100px;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .35s cubic-bezier(.23, 1, .32, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: .01em;
    position: relative;
    overflow: hidden !important;
    box-shadow: 0 4px 20px rgba(27, 108, 242, 0.45), 0 0 60px rgba(27, 108, 242, 0.12), inset 0 1px 2px rgba(255, 255, 255, 0.3), inset 0 -2px 4px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateZ(0);
    /* Fixes webkit clipping bug */
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    /* Force clipping in older WebKit */
    mask-image: radial-gradient(white, black);
    will-change: transform, box-shadow;
}

/* Shimmer sweep on btn-primary */
.hgx-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    animation: btnShimmer 3.5s ease infinite;
    pointer-events: none
}

@keyframes btnShimmer {
    0% {
        left: -100%
    }

    40% {
        left: 130%
    }

    100% {
        left: 130%
    }
}

.hgx-btn-primary.hgx-grain-overlay::after {
    opacity: .25;
    border-radius: 100px
}

.hgx-btn-primary:hover {
    background: linear-gradient(135deg, #4494ff 0%, #287cf8 50%, #1866e4 100%);
    box-shadow: 0 8px 36px rgba(27, 108, 242, 0.65), 0 0 90px rgba(27, 108, 242, 0.3), inset 0 1px 2px rgba(255, 255, 255, 0.45), inset 0 -2px 4px rgba(0, 0, 0, 0.1);
    transform: translateZ(0) translateY(-2px) scale(1.015)
}

.hgx-btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: 12px 28px;
    border-radius: 100px;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all .3s cubic-bezier(.23, 1, .32, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
    overflow: hidden !important;
    transform: translateZ(0);
    /* Fixes webkit clipping bug */
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    /* Force clipping in older WebKit */
    mask-image: radial-gradient(white, black);
    will-change: transform, box-shadow;
}

.hgx-btn-ghost:hover {
    border-color: rgba(27, 108, 242, 0.5);
    color: var(--blue);
    background: linear-gradient(135deg, rgba(27, 108, 242, 0.08) 0%, rgba(27, 108, 242, 0.02) 100%);
    box-shadow: 0 4px 16px rgba(27, 108, 242, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transform: translateZ(0) translateY(-2px)
}

/* SECTIONS */
section {
    padding: 96px 48px;
    position: relative
}

.hgx-section-inner {
    max-width: var(--max-w);
    margin: 0 auto
}

.hgx-section-label {
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 10px;
    font-weight: 600
}

.hgx-section-title {
    font-size: clamp(24px, 3vw, 38px);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -.025em;
    max-width: 520px
}

.hgx-section-title strong {
    font-family: var(--playfair);
    font-style: italic;
    font-weight: 600;
    letter-spacing: -0.01em
}

.hgx-section-note {
    font-size: 13px;
    color: var(--text-secondary);
    max-width: 340px;
    line-height: 1.7;
    font-weight: 400
}

.hgx-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 56px;
    gap: 40px
}

/* ═══ 01 HERO ═══ */
#hero {
    min-height: 100dvh;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    padding: 0 48px 64px;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
    margin: 12px 12px 0;
    border-radius: var(--r-xl)
}

.hgx-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: #070b15
}

.hgx-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top
}

.hgx-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 15, 28, 0.3) 0%, rgba(10, 15, 28, 0.1) 40%, rgba(10, 15, 28, 0.5) 100%)
}

.hgx-hero-content {
    max-width: var(--max-w);
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 2
}

.hgx-hero-headline {
    font-size: clamp(36px, 5vw, 68px);
    font-weight: 500;
    line-height: 1.0;
    letter-spacing: -.035em;
    max-width: 800px;
    margin-bottom: 36px;
    color: var(--text-primary)
}

.hgx-hero-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px
}

.hgx-hero-trust-pill {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .02em;
    color: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    transform: translateZ(0);
    white-space: nowrap;
}

.hgx-hero-headline .hgx-hl {
    color: var(--blue);
    font-family: var(--playfair);
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.01em;
    font-size: 1.04em;
}

/* Typewriter styles */
.hgx-typewriter-text {
    border-right: 3px solid var(--blue);
    padding-right: 4px;
    white-space: nowrap;
    animation: blinkCursor 0.75s step-end infinite;
}

.hgx-typewriter-text.is-typing {
    animation: none;
    border-color: var(--blue);
}

@keyframes blinkCursor {

    from,
    to {
        border-color: transparent;
    }

    50% {
        border-color: var(--blue);
    }
}

.hgx-cta-headline .hgx-hl {
    color: var(--blue);
    font-family: var(--playfair);
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.01em;
    font-size: 1.04em
}

.hgx-hero-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px
}

.hgx-hero-sub {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
    max-width: 400px;
    font-weight: 400
}

.hgx-hero-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0
}

#hero .hgx-btn-ghost {
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.05)
}

#hero .hgx-btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 12px rgba(255, 255, 255, 0.05)
}

#hero .hgx-btn-ghost svg {
    fill: rgba(255, 255, 255, 0.7)
}

#hero .hgx-btn-primary {
    box-shadow: 0 2px 12px rgba(27, 108, 242, 0.4), 0 0 50px rgba(27, 108, 242, 0.12)
}

#hero .hgx-btn-primary:hover {
    box-shadow: 0 4px 20px rgba(27, 108, 242, 0.5), 0 0 70px rgba(27, 108, 242, 0.15)
}

.hgx-scroll-indicator {
    position: absolute;
    left: 50%;
    bottom: 48px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: .55;
    z-index: 3
}

.hgx-scroll-indicator-label {
    font-size: 9px;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600
}

.hgx-scroll-line {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden
}

.hgx-scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--blue);
    animation: scrollDown 2s infinite
}

@keyframes scrollDown {
    0% {
        top: -100%
    }

    100% {
        top: 100%
    }
}

/* DELETED STRUCTURAL GRID & CROSSHAIRS */

/* DOT GRID for specific contrast sections if needed */
.hgx-dot-grid-dark {
    position: relative
}

.hgx-dot-grid-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 22px 22px;
}

.hgx-dot-grid-dark>* {
    position: relative;
    z-index: 1
}

/* Card white backgrounds — covers grid lines beneath */
.hgx-fact-card,
.hgx-testi-card,
.hgx-tool-card,
.hgx-faq-right,
.hgx-faq-item {
    background: var(--white)
}

/* ══ WORK + TESTI CARDS ══ */
#work .hgx-work-item {
    background: #000 !important;
    border: none !important;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s cubic-bezier(.23, 1, .32, 1), box-shadow 0.4s ease;
}

#work .hgx-work-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

#testimonials .hgx-testi-card {
    background: #ffffff !important;
    border: none !important;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07), 0 0 0 0 transparent
}

/* Testi card text — dark on white */
#testimonials .hgx-testi-body {
    background: #ffffff !important
}

#testimonials .hgx-testi-text {
    color: #4a5568 !important
}

#testimonials .hgx-testi-text em {
    color: #0a0f1c !important;
    background: linear-gradient(90deg, rgba(27, 108, 242, 0.1), transparent) !important
}

#testimonials .hgx-testi-author-row {
    border-top-color: rgba(0, 0, 0, 0.08) !important
}

#testimonials .hgx-testi-name {
    color: #0a0f1c !important
}

#testimonials .hgx-testi-role {
    color: #9aa3b2 !important
}

#testimonials .hgx-testi-avatar {
    background: rgba(27, 108, 242, 0.08) !important;
    color: var(--blue) !important
}

#testimonials .hgx-testi-card:hover {
    border: none !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.13), 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    transform: translateY(-2px)
}

/* Testi photo: neutral bg for placeholder state */
#testimonials .hgx-testi-photo {
    background: #f0f2f5 !important
}

/* Legacy dark-section overrides — kept only for other sections, not work/testi */
.hgx-section-dark .hgx-work-item,
.hgx-section-dark .hgx-testi-card {
    background: rgba(255, 255, 255, 0.03)
}

.hgx-section-dark .hgx-work-info,
.hgx-section-dark .hgx-testi-body {
    background: transparent
}

.hgx-section-dark .hgx-work-name,
.hgx-section-dark .hgx-testi-text {
    color: rgba(255, 255, 255, 0.85)
}

.hgx-section-dark .hgx-work-result {
    color: rgba(255, 255, 255, 0.5)
}

.hgx-section-dark .hgx-testi-text em {
    color: rgba(255, 255, 255, 0.92)
}

.hgx-section-dark .hgx-testi-author-row {
    border-color: rgba(255, 255, 255, 0.06)
}

.hgx-section-dark .hgx-testi-name {
    color: rgba(255, 255, 255, 0.92)
}

.hgx-section-dark .hgx-testi-role {
    color: rgba(255, 255, 255, 0.3)
}

.hgx-section-dark .hgx-testi-avatar {
    background: rgba(27, 108, 242, 0.15)
}


/* ═══ 02 FACTS ═══ */
#facts {
    padding: 72px 48px
}

/* ═══ 02 WHY HGX — 4-COLUMN GRID ═══ */
.hgx-facts-label {
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 12px;
    text-align: center;
    display: block;
    font-weight: 600
}

.hgx-whyhgx-title {
    font-size: clamp(24px, 3vw, 38px);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -.025em;
    text-align: center;
    margin-bottom: 56px;
    color: var(--text-primary);
}

.hgx-whyhgx-title strong {
    font-family: var(--playfair);
    font-style: italic;
    font-weight: 600;
    letter-spacing: -0.01em
}

.hgx-facts-grid {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px
}

.hgx-fact-card {
    padding: 32px 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--r);
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05), inset 0 0 20px rgba(0, 0, 0, 0.5), 0 2px 12px rgba(0, 0, 0, 0.2);
    transition: all .35s cubic-bezier(.23, 1, .32, 1);
    cursor: default;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.hgx-fact-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), inset 0 0 20px rgba(0, 0, 0, 0.5), 0 12px 40px rgba(27, 108, 242, 0.15), 0 0 0 1px rgba(27, 108, 242, 0.1);
    transform: translateY(-4px)
}

/* Subtle sweep on fact-card hover */
.hgx-fact-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 35%, transparent 65%, rgba(27, 108, 242, 0.05) 100%);
    opacity: 0;
    transition: opacity .4s;
    pointer-events: none;
    z-index: 1;
}

.hgx-fact-card:hover::before {
    opacity: 1
}

.hgx-fact-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(27, 108, 242, 0.08);
    border: 1px solid rgba(27, 108, 242, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all .35s cubic-bezier(.23, 1, .32, 1);
}

.hgx-fact-icon svg {
    width: 22px;
    height: 22px;
    color: var(--blue);
    opacity: 0.9;
}

.hgx-fact-card:hover .hgx-fact-icon {
    background: rgba(27, 108, 242, 0.15);
    border-color: rgba(27, 108, 242, 0.35);
    box-shadow: 0 0 20px rgba(27, 108, 242, 0.2);
}

.hgx-fact-name {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -.01em;
    color: var(--text-primary);
}

.hgx-fact-desc {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
    font-weight: 400
}

/* ═══ 03 DIAGNOSIS — DARK BLUE ═══ */
#diagnosis {
    background: #0c1a3a;
    color: var(--text-primary);
    border-radius: var(--r-xl);
    margin: 0 24px;
    overflow: hidden;
    position: relative
}

/* Dot matrix overlay in diagnosis */
#diagnosis::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 24px 24px
}

/* Ray of light — rotating conic border glow */
#diagnosis::after {
    content: '';
    position: absolute;
    left: -50%;
    top: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from var(--ray-angle, 0deg),
            transparent 0deg,
            rgba(27, 108, 242, 0.0) 60deg,
            rgba(27, 108, 242, 0.6) 90deg,
            rgba(100, 160, 255, 0.9) 100deg,
            rgba(27, 108, 242, 0.6) 110deg,
            rgba(27, 108, 242, 0.0) 160deg,
            transparent 360deg);
    animation: rayRotate 4s linear infinite;
    pointer-events: none;
    z-index: 0
}

/* Inner mask to show only the border ring */
#diagnosis .hgx-diagnosis-ray-mask {
    position: absolute;
    inset: 2px;
    background: #0c1a3a;
    border-radius: var(--r-xl);
    z-index: 1
}

#diagnosis .hgx-section-inner {
    position: relative;
    z-index: 2
}

@keyframes rayRotate {
    from {
        transform: rotate(0deg);
        transform-origin: center
    }

    to {
        transform: rotate(360deg);
        transform-origin: center
    }
}

#diagnosis .hgx-section-label {
    color: rgba(27, 108, 242, 0.8)
}

#diagnosis .hgx-section-title {
    color: var(--text-primary)
}

#diagnosis .hgx-section-note {
    color: rgba(255, 255, 255, 0.5)
}

.hgx-diagnosis-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 56px;
}

.hgx-diagnosis-item {
    display: flex;
    flex-direction: column;
    padding: 40px 32px;
    background: #060a13;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--r-lg);
    transition: border-color .4s, box-shadow .4s, transform .4s;
    position: relative;
    overflow: hidden;
}

.hgx-diagnosis-item::before {
    content: '';
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 150%;
    height: 160px;
    background: radial-gradient(ellipse, rgba(27, 108, 242, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hgx-diagnosis-item>* {
    position: relative;
    z-index: 1;
}

.hgx-diagnosis-item:hover {
    border-color: rgba(27, 108, 242, 0.5);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 24px rgba(27, 108, 242, 0.35), inset 0 0 16px rgba(27, 108, 242, 0.15);
    transform: translateY(-6px);
}

.hgx-diag-problem {
    font-size: clamp(20px, 2vw, 22px);
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -.015em;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.hgx-diag-solution {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
    font-weight: 400;
    margin-bottom: 32px;
}

.hgx-diagnosis-item>div:nth-child(2) {
    flex: 1;
}

.hgx-diag-img {
    height: 160px;
    width: 100%;
    opacity: 0.8;
    transform: scale(1);
    transition: all .5s cubic-bezier(.23, 1, .32, 1);
    overflow: hidden;
    border-radius: var(--r-sm);
    margin-top: auto;
}

.hgx-diagnosis-item:hover .hgx-diag-img {
    opacity: 1;
    transform: scale(1.03);
}

.hgx-diag-img .hgx-img-placeholder {
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}

.hgx-diag-img .hgx-img-placeholder .hgx-img-label {
    color: rgba(255, 255, 255, 0.3);
}

/* ═══ 04 SERVICES (CINEMATIC) ═══ */
.hgx-services-wrap {
    padding: 120px 48px;
}

.hgx-cinematic-services-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    gap: 80px;
    position: relative;
}

.hgx-cinematic-sticky-col {
    width: 32%;
    /* Made narrower */
    flex-shrink: 0;
    position: sticky;
    top: 140px;
    align-self: flex-start;
    margin-bottom: 80px;
    /* buffer for mobile */
}

.hgx-cinematic-scroll-col {
    flex: 1;
    /* Automatically wider now */
    display: flex;
    flex-direction: column;
    gap: 40px;
    /* Reduced gap since they stack now */
    padding-bottom: 60px;
}

.hgx-cinematic-service-card {
    background: var(--white);
    border-radius: calc(var(--r-xl) + 8px);
    border: none;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    /* Changed to horizontal split */
    align-items: stretch;
    box-shadow: 0 4px 60px rgba(0, 0, 0, 0.08);
    /* Replaced border stroke with a soft base shadow/glow */
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    position: sticky;
    /* Cards now stick to the top and stack */
    top: 140px;
    /* Where they stick */
}

.hgx-cinematic-service-card:hover {
    transform: translateY(-4px);
    /* Stronger blue or white glow on hover (handled per-theme if needed, but generic here) */
    box-shadow: 0 16px 80px rgba(27, 108, 242, 0.2);
}

.hgx-cinematic-service-img {
    width: 50%;
    /* Adjusted for better space utilization */
    position: relative;
    background: #f8f9fa;
    overflow: hidden;
}

.hgx-cinematic-service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.hgx-cinematic-service-card:hover .hgx-cinematic-service-img img {
    transform: scale(1.04);
}

.hgx-cinematic-service-body {
    flex-basis: 50%;
    /* Adjusted for better space utilization */
    padding: 48px 40px;
    /* Reduced vertical and horizontal padding to fit text better */
    background: var(--white);
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: center;
    text-align: left;
}

/* Removed .cinematic-service-tag styling entirely */

.hgx-cinematic-service-name {
    font-size: clamp(24px, 2.5vw, 32px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.hgx-cinematic-service-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 400;
    max-width: 90%;
    margin-bottom: 32px;
}

.hgx-cinematic-service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    transition: gap 0.3s, color 0.3s;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
}

.hgx-cinematic-service-link:hover {
    gap: 12px;
    color: var(--blue);
    border-bottom-color: var(--blue);
}

/* DARK CARD OVERRIDES */
.hgx-cinematic-service-card.hgx-card-dark {
    background: #060a13;
    border-color: rgba(255, 255, 255, 0.08);
    /* Dark subtle border */
}

.hgx-cinematic-service-card.hgx-card-dark .hgx-cinematic-service-body {
    background: #060a13;
}

.hgx-cinematic-service-card.hgx-card-dark .hgx-cinematic-service-name {
    color: #ffffff;
}

.hgx-cinematic-service-card.hgx-card-dark .hgx-cinematic-service-desc {
    color: #94a0b8;
    /* --text-secondary mapped for dark mode */
}

.hgx-cinematic-service-card.hgx-card-dark .hgx-cinematic-service-link {
    color: rgba(255, 255, 255, 0.9);
}

.hgx-cinematic-service-card.hgx-card-dark .hgx-cinematic-service-link:hover {
    color: var(--blue);
}

/* BLUE CARD OVERRIDES */
.hgx-cinematic-service-card.hgx-card-blue {
    background: #1B6CF2;
    border-color: rgba(255, 255, 255, 0.15);
}

.hgx-cinematic-service-card.hgx-card-blue .hgx-cinematic-service-body {
    background: #1B6CF2;
}

.hgx-cinematic-service-card.hgx-card-blue .hgx-cinematic-service-name {
    color: #ffffff;
}

.hgx-cinematic-service-card.hgx-card-blue .hgx-cinematic-service-desc {
    color: rgba(255, 255, 255, 0.85);
}

.hgx-cinematic-service-card.hgx-card-blue .hgx-cinematic-service-link {
    color: #ffffff;
}

.hgx-cinematic-service-card.hgx-card-blue .hgx-cinematic-service-link:hover {
    color: rgba(255, 255, 255, 0.8);
    border-bottom-color: rgba(255, 255, 255, 0.8);
}

/* LIGHT CARD OVERRIDES */
.hgx-cinematic-service-card.hgx-card-light {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
}

.hgx-cinematic-service-card.hgx-card-light .hgx-cinematic-service-body {
    background: #ffffff;
}

.hgx-cinematic-service-card.hgx-card-light .hgx-cinematic-service-name {
    color: #070b15;
}

.hgx-cinematic-service-card.hgx-card-light .hgx-cinematic-service-desc {
    color: #475467;
}

.hgx-cinematic-service-card.hgx-card-light .hgx-cinematic-service-link {
    color: #070b15;
}

.hgx-cinematic-service-card.hgx-card-light .hgx-cinematic-service-link:hover {
    color: var(--blue);
    border-bottom-color: var(--blue);
}

/* TECH BADGES */
.hgx-tech-stack-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: -12px;
    margin-bottom: 24px;
}

.hgx-tech-badge {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), background 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.hgx-tech-badge:hover {
    transform: translateY(-3px);
}

/* Dark card tech badges */
.hgx-cinematic-service-card.hgx-card-dark .hgx-tech-badge {
    background: rgba(255, 255, 255, 0.06);
    border: none;
    color: #94a0b8;
    box-shadow: 0 0 0 rgba(255, 255, 255, 0);
}

.hgx-cinematic-service-card.hgx-card-dark .hgx-tech-badge:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.08);
    /* Soft white glow */
}

/* Light card tech badges */
.hgx-cinematic-service-card.hgx-card-light .hgx-tech-badge {
    background: #ffffff;
    border: none;
    color: #5a6478;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04), 0 0 1px rgba(0, 0, 0, 0.08);
    /* floating resting shape */
}

.hgx-cinematic-service-card.hgx-card-light .hgx-tech-badge:hover {
    background: #ffffff;
    color: var(--blue);
    box-shadow: 0 8px 24px rgba(27, 108, 242, 0.15), 0 0 0 1px rgba(27, 108, 242, 0.08);
    /* Nice blue glow */
}

/* Blue card tech badges */
.hgx-cinematic-service-card.hgx-card-blue .hgx-tech-badge {
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 rgba(255, 255, 255, 0);
}

.hgx-cinematic-service-card.hgx-card-blue .hgx-tech-badge:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.15);
    /* Nice white glow */
}

/* DARK SECTION VARIANT */
.hgx-section-dark {
    background: transparent;
    color: var(--text-primary);
    border-radius: var(--r-xl);
    margin: 12px 16px;
    overflow: hidden;
    position: relative
}

/* ═══ 13 CTA — now lives inside footer ═══ */

.hgx-section-dark::before {
    content: '';
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 200px;
    background: radial-gradient(ellipse, rgba(27, 108, 242, 0.1) 0%, transparent 70%);
    pointer-events: none
}

.hgx-section-dark .hgx-section-label {
    color: var(--blue)
}

.hgx-section-dark .hgx-section-title {
    color: white
}

.hgx-section-dark .hgx-section-title strong {
    font-family: var(--playfair);
    font-style: italic;
    color: white
}

.hgx-section-dark .hgx-section-note {
    color: rgba(255, 255, 255, 0.4)
}

/* DELETED DARK SECTION GRID CSS */

/* Crosshair accent marks */
.hgx-crosshair {
    position: absolute;
    width: 16px;
    height: 16px;
    pointer-events: none;
    z-index: 2
}

.hgx-crosshair::before,
.hgx-crosshair::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.12)
}

.hgx-crosshair::before {
    width: 100%;
    height: 1px;
    top: 50%;
    left: 0;
    transform: translateY(-50%)
}

.hgx-crosshair::after {
    width: 1px;
    height: 100%;
    left: 50%;
    top: 0;
    transform: translateX(-50%)
}

.hgx-section-dark .hgx-crosshair::before,
.hgx-section-dark .hgx-crosshair::after {
    background: rgba(255, 255, 255, 0.15)
}

/* ═══ 05 WORK — 3-COLUMN GRID (3x2 = 6 cards) ═══ */

/* Ray of light — rotating conic border glow (same as diagnosis) */
#work::after {
    content: '';
    position: absolute;
    left: -50%;
    top: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from var(--ray-angle, 0deg),
            transparent 0deg,
            rgba(27, 108, 242, 0.0) 60deg,
            rgba(27, 108, 242, 0.6) 90deg,
            rgba(100, 160, 255, 0.9) 100deg,
            rgba(27, 108, 242, 0.6) 110deg,
            rgba(27, 108, 242, 0.0) 160deg,
            transparent 360deg);
    animation: rayRotate 4s linear infinite;
    pointer-events: none;
    z-index: 0
}

/* Inner mask to show only the border ring */
#work .hgx-work-ray-mask {
    position: absolute;
    inset: 2px;
    background: #060a13;
    border-radius: var(--r-xl);
    z-index: 1
}

#work .hgx-section-inner {
    position: relative;
    z-index: 2
}

.hgx-work-grid {
    margin-top: 56px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.hgx-work-item {
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border: none;
    border-radius: var(--r);
    background: #000;
    aspect-ratio: 1/1;
}

.hgx-work-visual {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.hgx-work-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.4s ease;
}

/* Compact dark gradient at bottom for text readability */
.hgx-work-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.35) 55%, transparent 100%);
    opacity: 1;
    pointer-events: none;
    z-index: 1;
}

/* Hover: subtle zoom */
.hgx-work-item:hover .hgx-work-visual img {
    transform: scale(1.05);
}

/* Compact info overlay — always visible */
.hgx-work-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 22px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transform: translateY(0);
    opacity: 1;
    background: transparent;
}

.hgx-work-category {
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
}

.hgx-work-name {
    font-size: clamp(15px, 1.4vw, 18px);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.2;
    color: #fff;
}

.hgx-work-result {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.5;
    max-width: 95%;
}

/* "View All Work" button centered below grid */
.hgx-work-cta {
    text-align: center;
    margin-top: 48px;
}

/* ═══ 06 FOUNDER ═══ */
.hgx-founder-layout {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 56px;
    margin-top: 56px;
    align-items: center
}

.hgx-founder-portrait {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: var(--r-lg);
    position: sticky;
    top: 100px;
    flex-shrink: 0
}

/* Nuke any phantom decorations */
.hgx-founder-portrait::before,
.hgx-founder-portrait::after {
    display: none !important;
    content: none !important
}

.hgx-founder-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    border-radius: var(--r-lg)
}

.hgx-founder-portrait .hgx-img-placeholder {
    height: 100%
}

.hgx-founder-statement {
    font-family: var(--playfair);
    font-style: italic;
    font-size: clamp(17px, 1.8vw, 22px);
    font-weight: 400;
    line-height: 1.55;
    letter-spacing: -0.005em;
    margin-bottom: 20px
}

.hgx-founder-bio {
    font-size: 13px;
    line-height: 1.85;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 28px
}

.hgx-founder-bio strong {
    color: var(--text-primary);
    font-weight: 600
}

.hgx-founder-link {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--blue);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap .2s
}

.hgx-founder-link:hover {
    gap: 14px
}

.hgx-founder-quote {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-secondary);
    font-style: italic;
    padding: 20px 20px;
    margin-top: 28px;
    border: 1px solid var(--border);
    border-radius: var(--r);
    background: rgba(255, 255, 255, 0.02);
    position: relative
}

.hgx-founder-quote::before {
    content: '"';
    position: absolute;
    top: -14px;
    left: 16px;
    font-size: 48px;
    line-height: 1;
    color: rgba(27, 108, 242, 0.25);
    font-style: normal;
    font-weight: 700;
    pointer-events: none
}

/* ═══ 07 PROCESS ═══ */
#process {
    margin: 0 24px;
    border-radius: var(--r-xl);
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    background-color: var(--white);
    background-image: linear-gradient(145deg, rgba(27, 108, 242, 0.02) 0%, rgba(10, 15, 28, 0) 60%)
}

.hgx-process-track {
    margin-top: 56px;
    position: relative
}

#process {
    padding-bottom: 56px;
}

.hgx-process-line {
    position: absolute;
    top: 28px;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.06)
}

.hgx-process-line-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(27, 108, 242, 0.0) 30%,
            rgba(27, 108, 242, 0.6) 80%,
            rgba(100, 160, 255, 1) 95%,
            rgba(255, 255, 255, 1) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.8s cubic-bezier(.23, 1, .32, 1)
}

.hgx-process-line-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: -2px;
    width: 5px;
    height: 5px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 10px 3px rgba(100, 160, 255, 0.8), 0 0 20px 5px rgba(27, 108, 242, 0.5);
}

.hgx-process-line-fill.hgx-animated {
    transform: scaleX(1)
}

.hgx-process-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 32px;
    position: relative
}

.hgx-process-step {
    padding-top: 48px;
    position: relative;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .5s, transform .5s cubic-bezier(.23, 1, .32, 1)
}

.hgx-process-step.hgx-visible {
    opacity: 1;
    transform: translateY(0)
}

/* Active/highlight state - first step glows by default */
.hgx-process-step.hgx-active .hgx-process-dot {
    background: #fff;
    border-color: var(--blue);
    box-shadow: 0 0 0 5px rgba(27, 108, 242, 0.2), 0 0 16px rgba(27, 108, 242, 0.5)
}

.hgx-process-step.hgx-active .hgx-process-step-num {
    text-shadow: 0 0 20px rgba(27, 108, 242, 0.4)
}

.hgx-process-dot {
    position: absolute;
    top: 22px;
    left: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--blue);
    border: 2px solid rgba(27, 108, 242, 0.4);
    z-index: 2;
    transition: all .4s;
    box-shadow: 0 0 0 3px rgba(27, 108, 242, 0.12)
}

.hgx-process-step:hover .hgx-process-dot {
    border-color: var(--blue);
    background: #fff;
    box-shadow: 0 0 0 5px rgba(27, 108, 242, 0.2), 0 0 12px rgba(27, 108, 242, 0.5)
}

.hgx-process-step-num {
    font-size: 32px;
    font-weight: 700;
    color: var(--blue);
    line-height: 1;
    margin-bottom: 14px;
    letter-spacing: -.03em;
    font-variant-numeric: tabular-nums
}

.hgx-process-step-name {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -.01em;
    margin-bottom: 6px
}

.hgx-process-step-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.65;
    font-weight: 400
}

.hgx-process-step-time {
    margin-top: 14px;
    font-size: 10px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--blue);
    font-weight: 600;
    display: inline-block;
    padding: 3px 8px;
    background: var(--blue-bg);
    border-radius: 4px
}

/* ═══ 08 TESTIMONIALS — 2-ROW SLIDER ═══ */
.hgx-testi-section-wrap {
    margin: 0 16px;
    border-radius: var(--r-xl);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    position: relative
}

/* Subtle top glow for testimonials */
.hgx-testi-section-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(27, 108, 242, 0.4), rgba(100, 60, 220, 0.2), transparent);
    pointer-events: none;
    z-index: 2
}

.hgx-testi-section-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 80px;
    background: radial-gradient(ellipse at top, rgba(27, 108, 242, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1
}


#testimonials {
    overflow: hidden;
    padding-left: 0;
    padding-right: 0
}

#testimonials .hgx-section-inner {
    padding: 0 48px
}

.hgx-testi-slider {
    margin-top: 56px;
}

.hgx-testi-row {
    display: flex;
    gap: 16px;
    animation: testiScroll 60s linear infinite
}

.hgx-testi-row:hover {
    animation-play-state: paused
}

@keyframes testiScroll {
    0% {
        transform: translateX(0)
    }

    100% {
        transform: translateX(-50%)
    }
}

.hgx-testi-card {
    min-width: 380px;
    max-width: 380px;
    border: none;
    border-radius: var(--r);
    overflow: hidden;
    cursor: pointer;
    transition: all .4s;
    display: flex;
    flex-direction: column;
    flex-shrink: 0
}

.hgx-testi-card:hover {
    border-color: rgba(27, 108, 242, 0.2);
    box-shadow: 0 8px 32px rgba(27, 108, 242, 0.08), 0 0 0 1px rgba(27, 108, 242, 0.04);
    transform: translateY(-2px)
}

.hgx-section-dark .hgx-testi-card {
    border-color: rgba(255, 255, 255, 0.06)
}

.hgx-section-dark .hgx-testi-card:hover {
    border-color: rgba(27, 108, 242, 0.2);
    box-shadow: 0 8px 32px rgba(27, 108, 242, 0.08)
}

.hgx-testi-photo {
    height: 180px;
    position: relative;
    overflow: hidden;
    background: var(--off-white)
}

.hgx-testi-photo .hgx-img-placeholder {
    border: none;
    height: 100%
}

.hgx-testi-body {
    padding: 20px 18px 18px;
    flex: 1;
    display: flex;
    flex-direction: column
}

.hgx-testi-text {
    font-size: 13px;
    line-height: 1.65;
    font-weight: 400;
    flex: 1;
    margin-bottom: 16px;
    color: #4a5568
}

.hgx-testi-text em {
    font-style: normal;
    color: #0a0f1c;
    font-weight: 500;
    background: linear-gradient(90deg, rgba(27, 108, 242, 0.08), transparent);
    padding: 0 2px;
    border-radius: 2px
}

.hgx-testi-author-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid rgba(0, 0, 0, 0.08)
}

.hgx-testi-avatar {
    width: 32px;
    height: 32px;
    background: var(--blue-bg);
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--blue);
    flex-shrink: 0
}

.hgx-testi-name {
    font-size: 12px;
    font-weight: 600;
    color: #0a0f1c
}

.hgx-testi-role {
    font-size: 10px;
    color: #9aa3b2;
    font-weight: 400
}

.hgx-logo-grid {
    margin-top: 48px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--r);
    overflow: hidden;
    background: #ffffff
}

.hgx-logo-cell {
    aspect-ratio: 1.6/1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 18px 22px;
    background: #ffffff;
    transition: background .35s, border-color .35s;
    cursor: default;
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px) scale(0.97);
    animation: none
}

.hgx-logo-grid.hgx-revealed .hgx-logo-cell {
    animation: logoReveal .55s cubic-bezier(.23, 1, .32, 1) forwards
}

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

/* stagger each cell */
.hgx-logo-grid.hgx-revealed .hgx-logo-cell:nth-child(1) {
    animation-delay: .03s
}

.hgx-logo-grid.hgx-revealed .hgx-logo-cell:nth-child(2) {
    animation-delay: .06s
}

.hgx-logo-grid.hgx-revealed .hgx-logo-cell:nth-child(3) {
    animation-delay: .09s
}

.hgx-logo-grid.hgx-revealed .hgx-logo-cell:nth-child(4) {
    animation-delay: .12s
}

.hgx-logo-grid.hgx-revealed .hgx-logo-cell:nth-child(5) {
    animation-delay: .15s
}

.hgx-logo-grid.hgx-revealed .hgx-logo-cell:nth-child(6) {
    animation-delay: .20s
}

.hgx-logo-grid.hgx-revealed .hgx-logo-cell:nth-child(7) {
    animation-delay: .25s
}

.hgx-logo-grid.hgx-revealed .hgx-logo-cell:nth-child(8) {
    animation-delay: .30s
}

.hgx-logo-grid.hgx-revealed .hgx-logo-cell:nth-child(9) {
    animation-delay: .35s
}

.hgx-logo-grid.hgx-revealed .hgx-logo-cell:nth-child(10) {
    animation-delay: .40s
}

.hgx-logo-grid.hgx-revealed .hgx-logo-cell:nth-child(11) {
    animation-delay: .45s
}

.hgx-logo-grid.hgx-revealed .hgx-logo-cell:nth-child(12) {
    animation-delay: .50s
}

.hgx-logo-grid.hgx-revealed .hgx-logo-cell:nth-child(13) {
    animation-delay: .55s
}

.hgx-logo-grid.hgx-revealed .hgx-logo-cell:nth-child(14) {
    animation-delay: .60s
}

.hgx-logo-grid.hgx-revealed .hgx-logo-cell:nth-child(15) {
    animation-delay: .65s
}

.hgx-logo-grid.hgx-revealed .hgx-logo-cell:nth-child(16) {
    animation-delay: .70s
}

.hgx-logo-grid.hgx-revealed .hgx-logo-cell:nth-child(17) {
    animation-delay: .75s
}

.hgx-logo-grid.hgx-revealed .hgx-logo-cell:nth-child(18) {
    animation-delay: .80s
}

.hgx-logo-grid.hgx-revealed .hgx-logo-cell:nth-child(19) {
    animation-delay: .85s
}

.hgx-logo-grid.hgx-revealed .hgx-logo-cell:nth-child(20) {
    animation-delay: .90s
}

.hgx-logo-grid.hgx-revealed .hgx-logo-cell:nth-child(21) {
    animation-delay: .94s
}

.hgx-logo-grid.hgx-revealed .hgx-logo-cell:nth-child(22) {
    animation-delay: .97s
}

.hgx-logo-grid.hgx-revealed .hgx-logo-cell:nth-child(23) {
    animation-delay: 1.00s
}

.hgx-logo-grid.hgx-revealed .hgx-logo-cell:nth-child(24) {
    animation-delay: 1.03s
}

.hgx-logo-grid.hgx-revealed .hgx-logo-cell:nth-child(25) {
    animation-delay: 1.06s
}

.hgx-logo-grid.hgx-revealed .hgx-logo-cell:nth-child(26) {
    animation-delay: 1.09s
}

.hgx-logo-grid.hgx-revealed .hgx-logo-cell:nth-child(27) {
    animation-delay: 1.12s
}

.hgx-logo-grid.hgx-revealed .hgx-logo-cell:nth-child(28) {
    animation-delay: 1.15s
}

.hgx-logo-grid.hgx-revealed .hgx-logo-cell:nth-child(29) {
    animation-delay: 1.18s
}

.hgx-logo-grid.hgx-revealed .hgx-logo-cell:nth-child(30) {
    animation-delay: 1.21s
}

.hgx-logo-grid.hgx-revealed .hgx-logo-cell:nth-child(31) {
    animation-delay: 1.24s
}

.hgx-logo-grid.hgx-revealed .hgx-logo-cell:nth-child(32) {
    animation-delay: 1.27s
}

.hgx-logo-grid.hgx-revealed .hgx-logo-cell:nth-child(33) {
    animation-delay: 1.30s
}

.hgx-logo-grid.hgx-revealed .hgx-logo-cell:nth-child(34) {
    animation-delay: 1.33s
}

.hgx-logo-grid.hgx-revealed .hgx-logo-cell:nth-child(35) {
    animation-delay: 1.36s
}

.hgx-logo-grid.hgx-revealed .hgx-logo-cell:nth-child(36) {
    animation-delay: 1.39s
}

/* 6-column layout: remove right border on every 6th cell, remove bottom border on last row */
.hgx-logo-cell:nth-child(6n) {
    border-right: none
}

.hgx-logo-cell:nth-last-child(-n+6) {
    border-bottom: none
}

.hgx-logo-cell:hover {
    background: transparent;
    border-color: rgba(0, 0, 0, 0.08)
}

.hgx-logo-cell img {
    max-width: 100%;
    max-height: 90px;
    object-fit: contain;
    transition: transform .3s cubic-bezier(.23, 1, .32, 1)
}

.hgx-logo-cell:hover img {
    transform: none
}

.hgx-clients-cta {
    text-align: center;
    margin-top: 36px
}

/* ═══ 10 TOOLS ═══ */
.hgx-tools-grid {
    margin-top: 56px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px
}

.hgx-tool-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--r);
    padding: 28px 24px;
    transition: all .4s cubic-bezier(.23, 1, .32, 1);
    cursor: pointer;
    text-decoration: none;
    color: #0a0f1c;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06)
}

.hgx-tool-card:hover {
    border-color: rgba(27, 108, 242, 0.25);
    box-shadow: 0 16px 48px rgba(27, 108, 242, 0.12), 0 2px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-4px)
}

.hgx-tool-icon {
    width: 36px;
    height: 36px;
    background: rgba(27, 108, 242, 0.08);
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: background .3s, transform .3s cubic-bezier(.23, 1, .32, 1)
}

.hgx-tool-icon svg {
    width: 16px;
    height: 16px;
    fill: var(--blue)
}

.hgx-tool-name {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -.015em;
    margin-bottom: 6px;
    color: #0a0f1c
}

.hgx-tool-desc {
    font-size: 11.5px;
    color: #4a5568;
    line-height: 1.65;
    font-weight: 400
}

.hgx-tool-arrow {
    font-size: 15px;
    opacity: .2;
    transition: all .3s;
    display: inline-block;
    margin-top: 16px;
    color: var(--blue)
}

.hgx-tool-card:hover .hgx-tool-arrow {
    opacity: 1;
    transform: translate(3px, -3px)
}

.hgx-tool-card:hover .hgx-tool-icon {
    background: rgba(27, 108, 242, 0.15);
    transform: scale(1.1)
}

/* ═══ 11 MARQUEE ═══ */
#marquee {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-top: 48px;
    padding: 0;
    overflow: hidden;
    background: var(--off-white);
    position: relative
}

.hgx-marquee-track {
    display: flex;
    animation: marqueeRun 30s linear infinite;
    white-space: nowrap
}

@keyframes marqueeRun {
    0% {
        transform: translateX(0)
    }

    100% {
        transform: translateX(-50%)
    }
}

.hgx-marquee-item {
    padding: 18px 40px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 28px;
    border-right: 1px solid var(--border);
    flex-shrink: 0;
    transition: color .2s
}

.hgx-marquee-item:hover {
    color: var(--blue)
}

.hgx-marquee-dot {
    width: 3px;
    height: 3px;
    background: var(--blue);
    opacity: .3;
    flex-shrink: 0
}

/* ═══ 12 FAQ ═══ */
.hgx-faq-layout {
    margin-top: 56px;
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 48px
}

.hgx-faq-left-title {
    font-family: var(--playfair);
    font-style: italic;
    font-size: 24px;
    font-weight: 400;
    letter-spacing: -0.005em;
    line-height: 1.25;
    margin-bottom: 14px
}

.hgx-faq-left-sub {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 400;
    margin-bottom: 24px
}

.hgx-faq-right {
    border: 1px solid var(--border);
    border-radius: var(--r);
    overflow: hidden
}

.hgx-faq-item {
    border-bottom: 1px solid var(--border);
    overflow: hidden
}

.hgx-faq-item:last-child {
    border-bottom: none
}

.hgx-faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -.01em;
    transition: background .2s;
    cursor: pointer
}

.hgx-faq-question:hover {
    background: rgba(27, 108, 242, 0.025);
    color: var(--text-primary)
}

.hgx-faq-toggle {
    width: 22px;
    height: 22px;
    border: 1px solid var(--border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    transition: all .3s;
    font-weight: 300;
    color: var(--text-muted)
}

.hgx-faq-item.hgx-open .hgx-faq-toggle {
    transform: rotate(45deg);
    background: var(--blue);
    color: white;
    border-color: var(--blue)
}

.hgx-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease, padding .3s;
    padding: 0 20px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 400
}

.hgx-faq-item.hgx-open .hgx-faq-answer {
    max-height: 400px;
    padding: 0 20px 20px
}

.hgx-faq-item.hgx-open .hgx-faq-question {
    color: var(--text-primary);
    background: rgba(27, 108, 242, 0.025)
}



/* ── ACCESSIBILITY ── */
:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
    border-radius: 4px
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {

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

/* ── GPU HINTS — marquees only ── */
.hgx-testi-row,
.hgx-marquee-track {
    will-change: transform
}

/* HAMBURGER */





/* ── OFF-CANVAS BACKDROP ── */


/* ── OFF-CANVAS PANEL ── */


/* Header row inside panel */




/* Scrollable body */







/* Footer CTA inside panel */


/* Ghost button inside white panel needs dark styling */




/* ═══ TABLET ═══ */
@media(max-width:1100px) {


    .hgx-founder-layout {
        gap: 32px
    }

}

/* ═══ MOBILE ═══ */
@media(max-width:900px) {

    /* Mobile Cinematic Services */
    .hgx-cinematic-services-inner {
        flex-direction: column;
        gap: 40px;
    }

    .hgx-cinematic-sticky-col {
        width: 100%;
        position: relative;
        top: 0;
        margin-bottom: 0px;
    }

    .hgx-cinematic-scroll-col {
        gap: 20px;
        /* Tighter gap for stacking */
    }

    .hgx-cinematic-service-card {
        flex-direction: column;
        /* Revert to stacked on mobile */
        border-radius: var(--r-xl);
        position: sticky;
        top: 100px;
        /* Sticks just below the mobile header */
    }

    .hgx-cinematic-service-img {
        width: 100%;
        /* Revert to full width */
        height: 320px;
        /* Revert height */
    }

    .hgx-cinematic-service-body {
        width: 100%;
        /* Revert to full width */
        padding: 32px 24px;
    }




    .hgx-crosshair {
        display: none
    }






    .hgx-work-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hgx-section-dark {
        margin: 8px;
        border-radius: var(--r)
    }

    section {
        padding: 56px 20px
    }

    .hgx-section-header {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 36px
    }

    .hgx-section-title {
        font-size: clamp(22px, 6vw, 30px);
        max-width: 100%
    }

    .hgx-section-note {
        max-width: 100%;
        font-size: 13px
    }

    .hgx-section-label {
        font-size: 10px;
        margin-bottom: 8px
    }

    #hero {
        min-height: 80dvh;
        min-height: 80vh;
        padding: 90px 20px 32px;
        margin: 6px 6px 0;
        border-radius: var(--r-lg)
    }

    .hgx-hero-headline {
        font-size: clamp(40px, 12vw, 60px);
        margin-bottom: 24px;
        line-height: 1.1;
    }

    .hgx-hero-trust-row {
        gap: 8px;
        margin-bottom: 20px
    }

    .hgx-hero-trust-pill {
        font-size: 10px;
        padding: 6px 12px
    }

    .hgx-hero-sub {
        font-size: 14px;
        max-width: 100%
    }

    .hgx-hero-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px
    }

    .hgx-hero-actions {
        width: 100%;
        flex-direction: row;
        gap: 10px;
        flex-wrap: nowrap
    }

    .hgx-hero-actions .hgx-btn-primary,
    .hgx-hero-actions .hgx-btn-ghost {
        flex: 1;
        justify-content: center;
        padding: 13px 14px;
        font-size: 12px
    }

    .hgx-scroll-indicator {
        display: none
    }

    .grid-overlay {
        display: none
    }

    #facts {
        padding: 40px 20px
    }

    .hgx-facts-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px
    }

    .hgx-fact-card {
        padding: 24px 18px
    }

    .hgx-fact-name {
        font-size: 15px
    }

    .hgx-diagnosis-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: visible;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        gap: 16px;
        padding-bottom: 24px;
        margin-right: -20px;
        margin-left: -20px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .hgx-diagnosis-grid::-webkit-scrollbar {
        display: none;
    }

    .hgx-diagnosis-item {
        flex: 0 0 85%;
        scroll-snap-align: center;
        padding: 32px 24px;
        background: #060a13;
        border: 1px solid rgba(255, 255, 255, 0.07);
        box-shadow: none;
    }

    .hgx-diag-problem {
        font-size: 18px;
    }

    .hgx-diag-solution {
        font-size: 13px;
    }

    .hgx-diag-img {
        height: 140px;
    }

    #diagnosis {
        margin: 0 12px;
        border-radius: var(--r)
    }

    .hgx-services-wrap {
        padding: 56px 20px
    }

    .hgx-work-item {
        grid-column: span 1 !important
    }

    .hgx-work-info {
        padding: 16px 18px
    }

    .hgx-founder-layout {
        grid-template-columns: 1fr;
        gap: 28px
    }

    .hgx-founder-portrait {
        height: auto;
        position: relative;
        top: auto
    }

    .hgx-founder-statement {
        font-size: 17px;
        line-height: 1.6
    }

    .hgx-founder-bio {
        font-size: 13px;
        line-height: 1.75
    }

    .hgx-process-track {
        margin-top: 28px
    }

    .hgx-process-line {
        display: none
    }

    .hgx-process-steps {
        grid-template-columns: 1fr;
        gap: 0
    }

    .hgx-process-step {
        padding: 20px 0 20px 28px;
        border-left: 1px solid var(--border);
        margin-left: 6px;
        position: relative
    }

    .hgx-process-step:last-child {
        border-left-color: transparent
    }

    .hgx-process-dot {
        position: absolute;
        top: 24px;
        left: -7px
    }

    .hgx-process-step-num {
        font-size: 22px;
        margin-bottom: 6px
    }

    .hgx-testi-card {
        min-width: 300px;
        max-width: 300px
    }

    .hgx-testi-photo {
        height: 140px
    }

    #testimonials .hgx-section-inner {
        padding: 0 20px
    }

    .hgx-logo-grid {
        grid-template-columns: repeat(3, 1fr)
    }

    .hgx-logo-cell:nth-child(7n) {
        border-right: 1px solid rgba(0, 0, 0, 0.08)
    }

    .hgx-logo-cell:nth-child(3n) {
        border-right: none
    }

    .hgx-logo-cell:nth-last-child(-n+7) {
        border-bottom: 1px solid rgba(0, 0, 0, 0.08)
    }

    .hgx-logo-cell:nth-last-child(-n+3) {
        border-bottom: none
    }

    .hgx-tools-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px
    }

    .hgx-tool-card {
        min-height: auto;
        padding: 20px 16px
    }

    .hgx-tool-name {
        font-size: 14px
    }

    .hgx-marquee-item {
        padding: 14px 24px;
        font-size: 10px;
        gap: 16px
    }

    .hgx-faq-layout {
        grid-template-columns: 1fr;
        gap: 24px
    }

    .hgx-faq-question {
        padding: 16px;
        font-size: 13px
    }

    .hgx-faq-answer {
        padding: 0 16px;
        font-size: 12px
    }

    .hgx-faq-item.hgx-open .hgx-faq-answer {
        padding: 0 16px 16px
    }

    .hgx-cta-buttons .hgx-btn-primary,
    .hgx-cta-buttons .hgx-btn-ghost {
        width: 100%;
        justify-content: center;
        padding: 14px 24px
    }

    .hgx-cta-trust {
        font-size: 10px
    }

}

@media(max-width:480px) {
    #hero {
        padding: 88px 16px 32px;
        margin: 4px 4px 0;
        border-radius: var(--r)
    }

    section {
        padding: 44px 16px
    }

    .hgx-hero-trust-pill {
        font-size: 10px;
        padding: 6px 10px
    }

    .hgx-hero-headline {
        font-size: clamp(32px, 10.5vw, 44px)
    }

    .hgx-facts-grid {
        grid-template-columns: 1fr
    }

    .hgx-logo-grid {
        grid-template-columns: repeat(3, 1fr)
    }

    .hgx-work-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .hgx-work-item {
        aspect-ratio: 1/1;
        /* Square on mobile for better visibility */
    }

    .hgx-tools-grid {
        grid-template-columns: 1fr
    }




    .hgx-services-wrap {
        padding: 44px 16px
    }


    #diagnosis {
        margin: 0 8px;
        border-radius: var(--r-sm)
    }

}

/* ── SCROLL PROGRESS BAR ── */

/* ── BUTTON ACTIVE / PRESS STATES ── */
.hgx-btn-primary:active {
    transform: translateY(0) scale(0.97) !important;
    box-shadow: 0 2px 10px rgba(27, 108, 242, 0.3) !important;
    transition-duration: .1s !important
}

.hgx-btn-ghost:active {
    transform: scale(0.97) !important;
    transition-duration: .1s !important
}


/* ── RIPPLE ── */
.hgx-ripple-host {
    overflow: hidden;
    position: relative
}

.hgx-ripple-wave {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    transform: scale(0);
    animation: rippleAnim .55s ease-out forwards;
    pointer-events: none;
    z-index: 10
}

@keyframes rippleAnim {
    to {
        transform: scale(4);
        opacity: 0
    }
}

/* ── MAGNETIC BUTTON WRAPPER ── */
.hgx-mag-wrap {
    display: inline-block;
    position: relative
}

/* ── STAGGER CARD REVEALS ── */
.hgx-reveal-card {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .55s cubic-bezier(.23, 1, .32, 1), transform .55s cubic-bezier(.23, 1, .32, 1)
}

.hgx-reveal-card.hgx-is-visible {
    opacity: 1;
    transform: translateY(0)
}

/* ── WORD SPLIT REVEALS ── */
.hgx-split-word {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    margin-right: .22em;
    padding-bottom: 0.12em;
    margin-bottom: -0.12em
}

.hgx-split-word .hgx-word-inner {
    display: inline-block;
    transform: translateY(105%);
    transition: transform .65s cubic-bezier(.23, 1, .32, 1)
}

.hgx-split-revealed .hgx-split-word .hgx-word-inner {
    transform: translateY(0)
}

/* Stagger via CSS custom properties */
.hgx-split-word:nth-child(1) .hgx-word-inner {
    transition-delay: 0s
}

.hgx-split-word:nth-child(2) .hgx-word-inner {
    transition-delay: .06s
}

.hgx-split-word:nth-child(3) .hgx-word-inner {
    transition-delay: .12s
}

.hgx-split-word:nth-child(4) .hgx-word-inner {
    transition-delay: .18s
}

.hgx-split-word:nth-child(5) .hgx-word-inner {
    transition-delay: .24s
}

.hgx-split-word:nth-child(6) .hgx-word-inner {
    transition-delay: .30s
}

.hgx-split-word:nth-child(7) .hgx-word-inner {
    transition-delay: .36s
}

.hgx-split-word:nth-child(8) .hgx-word-inner {
    transition-delay: .42s
}

.hgx-split-word:nth-child(9) .hgx-word-inner {
    transition-delay: .48s
}

.hgx-split-word:nth-child(10) .hgx-word-inner {
    transition-delay: .54s
}

/* ── FACT NUMBER COUNT-UP ── */
.fact-number[data-target] {
    transition: text-shadow .4s
}

/* ── SECTION LABEL SLIDE-IN ── */
.hgx-section-label,
.hgx-facts-label,
.hgx-cta-label {
    opacity: 0;
    transform: translateX(-12px);
    transition: opacity .5s ease, transform .5s ease
}

.hgx-section-label.hgx-label-visible,
.hgx-facts-label.hgx-label-visible,
.hgx-cta-label.hgx-label-visible {
    opacity: 1;
    transform: translateX(0)
}

/* ── DIAGNOSIS ITEM ENHANCED HOVER (Removed side border) ── */

/* ── SERVICE CARD SHIMMER ON HOVER ── */
.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 30%, rgba(27, 108, 242, 0.04) 60%, transparent 100%);
    opacity: 0;
    transition: opacity .4s;
    pointer-events: none;
    border-radius: var(--r)
}

.service-card:hover::after {
    opacity: 1
}

/* ── TOOL CARD BORDER GLOW ON HOVER ── */
.hgx-tool-card:hover {
    background: linear-gradient(145deg, #ffffff 0%, #f8fbff 100%);
    border-color: rgba(27, 108, 242, 0.25) !important
}

/* ── WORK ITEM HOVER — smoother arrow ── */
.hgx-work-arrow {
    opacity: 0 !important;
    transform: translate(6px, -6px) scale(0.75) !important
}

.hgx-work-item:hover .hgx-work-arrow {
    opacity: 1 !important;
    transform: translate(0, 0) scale(1) !important
}

/* ── FAQ ITEM OPEN: left accent ── */
.hgx-faq-item.hgx-open .hgx-faq-question {
    border-left: 2px solid var(--blue);
    padding-left: 18px
}

.hgx-faq-question {
    border-left: 2px solid transparent;
    transition: background .2s, border-color .25s, padding-left .25s
}

/* ── MOBILE TESTIMONIALS: horizontal scroll snap ── */
@media(max-width:900px) {
    .hgx-testi-slider {
        flex-direction: row;
        overflow-x: auto;
        gap: 12px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 12px;
        scrollbar-width: none;
        margin-top: 36px
    }

    .hgx-testi-slider::-webkit-scrollbar {
        display: none
    }

    .hgx-testi-row {
        animation: none !important;
        flex-direction: row;
        flex-shrink: 0;
        gap: 12px
    }

    .hgx-testi-card {
        scroll-snap-align: start;
        flex-shrink: 0
    }

    /* Hint arrow for scroll */
    .hgx-testi-scroll-hint {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 11px;
        color: var(--text-muted);
        font-weight: 500;
        margin-top: 16px;
        letter-spacing: .06em
    }
}

@media(min-width:901px) {
    .hgx-testi-scroll-hint {
        display: none
    }
}

/* ── CTA section border-radius on mobile ── */
@media(max-width:900px) {
    #cta {
        border-radius: var(--r-xl);
        margin: 0 8px
    }

    #process {
        margin: 0 8px
    }

    #industries {
        padding: 64px 0;
        margin: 8px
    }
}

@media(max-width:480px) {
    .hgx-section-dark {
        margin: 4px;
        border-radius: var(--r-sm)
    }

    #cta {
        margin: 0 4px;
        border-radius: var(--r)
    }

    #process {
        margin: 0 4px
    }

    #industries {
        padding: 48px 0;
        margin: 4px
    }
}

/* ── TOUCH TARGET MINIMUM 44px ── */
@media(max-width:900px) {
    .hgx-faq-question {
        min-height: 54px
    }


}

/* ── SECTION SPACING FIX — standardize to 96px desktop / 64px mobile ── */
#clients {
    padding-bottom: 48px !important
}

#facts {
    padding: 48px 48px 96px
}

@media(max-width:900px) {
    #clients {
        padding-bottom: 32px !important
    }

    #facts {
        padding: 32px 20px 64px
    }

    .hgx-services-wrap {
        padding: 64px 20px
    }
}

@media(max-width:480px) {
    #clients {
        padding-bottom: 24px !important
    }

    #facts {
        padding: 24px 16px 48px
    }

    .hgx-services-wrap {
        padding: 48px 16px
    }
}

/* ── HERO LOGO LOOP: ensure no overflow on narrow screens ── */
@media(max-width:480px) {
    #hero {
        padding: 80px 16px 32px;
        margin: 4px 4px 0
    }
}

/* ── FACT CARD: tap highlight on mobile ── */
@media(max-width:900px) {
    .hgx-fact-card:active {
        border-color: rgba(27, 108, 242, 0.3);
        background: rgba(27, 108, 242, 0.03);
        transform: scale(0.99)
    }
}

/* ── GPU HINTS — marquees only ── */

/* ── 09 INDUSTRIES WE CATER ── */
#industries {
    background: #fbfbfb;
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin: 12px 16px;
    border-radius: var(--r-xl);
}

.hgx-ind-glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(27, 108, 242, 0.08) 0%, rgba(27, 108, 242, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

.hgx-ind-header {
    margin-bottom: 56px;
    position: relative;
    z-index: 2;
    padding: 0 24px;
}

.hgx-ind-label {
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #6a7281;
    margin-bottom: 24px;
    font-weight: 600;
    display: inline-block;
    padding: 8px 18px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 100px;
    background: rgba(0, 0, 0, 0.02);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.hgx-ind-title {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -.035em;
    color: #0c1220;
    margin-bottom: 16px;
}

.hgx-ind-title-gradient {
    background: linear-gradient(90deg, #1B6CF2 0%, #00d2ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: var(--playfair);
    font-style: italic;
    font-weight: 600;
    letter-spacing: -0.01em;
    padding-right: 6px;
    /* offset italic descender cutoff */
}

.hgx-ind-sub {
    font-size: 16px;
    line-height: 1.6;
    color: #6b738a;
    max-width: 500px;
    margin: 0 auto;
    font-weight: 400;
    text-wrap: balance;
}

.hgx-ind-marquee-wrap {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 56px;
    z-index: 2;
}

.hgx-ind-marquee-wrap::before,
.hgx-ind-marquee-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 10;
    pointer-events: none;
}

.hgx-ind-marquee-wrap::before {
    left: 0;
    background: linear-gradient(90deg, #fbfbfb 0%, transparent 100%);
}

.hgx-ind-marquee-wrap::after {
    right: 0;
    background: linear-gradient(270deg, #fbfbfb 0%, transparent 100%);
}

.hgx-ind-marquee {
    display: flex;
    width: fit-content;
    animation: marqueeLeft 45s linear infinite;
}

.hgx-ind-marquee.hgx-reverse {
    animation: marqueeRight 50s linear infinite;
}

.hgx-ind-marquee:hover {
    animation-play-state: paused;
}

.hgx-ind-track {
    display: flex;
    gap: 16px;
    padding-right: 16px;
}

@keyframes marqueeLeft {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes marqueeRight {
    0% {
        transform: translateX(-50%);
    }

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

.hgx-ind-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 100px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #ffffff;
    font-size: 13px;
    font-weight: 600;
    color: #3b4256;
    white-space: nowrap;
    transition: all .3s cubic-bezier(.23, 1, .32, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    cursor: default;
}

.hgx-ind-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.15);
    color: #0c1220;
}

.hgx-ind-pill svg {
    width: 14px;
    height: 14px;
    display: block;
}

/* Icon Colors based on image */
.hgx-ind-pill.hgx-color-1 svg {
    color: #1B6CF2;
}

.hgx-ind-pill.hgx-color-2 svg {
    color: #00d2ff;
}

.hgx-ind-pill.hgx-color-3 svg {
    color: #825adc;
}

.hgx-ind-pill.hgx-color-4 svg {
    color: #00e676;
}

.hgx-btn-blue-gradient {
    background: linear-gradient(135deg, #2979ff 0%, #1B6CF2 50%, #1254d4 100%);
    color: #fff;
    border: none;
    padding: 14px 32px;
    border-radius: 100px;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .35s cubic-bezier(.23, 1, .32, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 20px rgba(27, 108, 242, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

.hgx-btn-blue-gradient:hover {
    background: linear-gradient(135deg, #4494ff 0%, #287cf8 50%, #1866e4 100%);
    box-shadow: 0 8px 32px rgba(27, 108, 242, 0.45), inset 0 1px 2px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px) scale(1.02);
}

/* ── CSS FADE-IN (replaces GSAP) ── */
.hgx-gsap-fade {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s cubic-bezier(.23, 1, .32, 1), transform .7s cubic-bezier(.23, 1, .32, 1);
}

.hgx-gsap-fade.hgx-fade-in {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 900px) {
    .hgx-gsap-fade {
        transform: translateY(12px);
    }

    .hgx-gsap-fade.hgx-fade-in {
        transform: translateY(0);
    }
}
