/* ── HOME PAGE ── */

/* Hero */
.hero {
    min-height: 100svh;
    padding-top: var(--nav-h);
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #FFFFFF 0%, #F3F4FF 40%, #EEF2FF 100%);
}

.hero-container {
    position: relative;
    width: 100%;
    max-width: 1440px;
    height: 100%;
    min-height: calc(100svh - var(--nav-h));
    margin-inline: auto;
    padding-inline: clamp(1.5rem, 6vw, 6rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 2;
}

#hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.6;
}

#threejs-mount {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 800px;
    padding: 2rem 0; /* Horizontal padding handled by strictly centered hero-container */
}

.hero-eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-eyebrow::before {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: var(--accent);
}

.hero-title {
    font-size: clamp(2.5rem, 5.5vw, 5rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin-bottom: 1.25rem;
    color: var(--charcoal);
}

.hero-line {
    display: block;
    will-change: transform;
}

.hero-line.italic {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--accent);
}

.hero-sub {
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
    color: var(--mid-grey);
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 50ch;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Hero scroll hint */
.hero-scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 2;
}

.scroll-line {
    display: block;
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

    0%,
    100% {
        transform: scaleY(1);
        opacity: 1;
    }

    50% {
        transform: scaleY(0.6);
        opacity: 0.5;
    }
}

.scroll-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--mid-grey);
}

/* Orb / Ball Structure */
/* .ball-animation-container is an alias used in mobile overrides below */
.hero-orb-wrapper,
.ball-animation-container {
    /* Always visible — never hidden by default */
    display: block !important;
    opacity: 1 !important;
}

.hero-orb-wrapper {
    position: relative;
    width: clamp(260px, 30vw, 440px);
    height: clamp(260px, 30vw, 440px);
    pointer-events: none;
    z-index: 1;
    /* Removed absolute positioning so it anchors dynamically inside flex container */
}

/* Services Preview */
.services-preview {
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    transition: transform var(--smooth-transition, 0.5s cubic-bezier(0.23, 1, 0.32, 1)),
        box-shadow var(--smooth-transition, 0.5s cubic-bezier(0.23, 1, 0.32, 1));
    cursor: none;
    will-change: transform, box-shadow;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl),
        0 0 0 1px var(--accent-glow);
}

.service-card__icon {
    width: 48px;
    height: 48px;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--mid-grey);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.service-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--accent);
    transition: gap 0.2s;
}

.service-card__link span {
    transition: transform 0.25s var(--ease-out);
}

.service-card:hover .service-card__link span {
    transform: translateX(5px);
}

.service-card__particle {
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    transition: transform 0.4s var(--ease-out);
    pointer-events: none;
}

.service-card:hover .service-card__particle {
    transform: scale(1.8);
}

@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* ── Ball Structure (orb) on mobile:
       Keep position:absolute (so Three.js canvas initialisation reads
       the correct pixel size), but reposition it from right-middle
       to bottom-centre. Hero gets bottom padding to make room. ── */
    .hero-orb-wrapper {
        /* Keep absolute so Three.js reads real pixel dimensions */
        position: absolute;

        /* Move from right/centre to absolute centre (behind text) */
        right: auto;
        left: 50%;
        top: 50%;
        bottom: auto;
        transform: translate(-50%, -50%);
        z-index: 0;
        /* Slight opacity drop so text remains readable over orb */
        opacity: 0.8 !important;

        /* Scale to 95% of screen width, capped */
        width: clamp(280px, 95vw, 450px);
        height: clamp(280px, 95vw, 450px);
        display: block !important;
        overflow: hidden;
    }

    /* Keep hero content centered and remove push-up padding */
    .hero-container {
        align-items: center;
        justify-content: center;
        padding-bottom: 2rem;
        padding-top: 2rem;
        flex-direction: column;
        z-index: 2;
    }

    /* Increase mobile typography sizes explicitly */
    .hero-title {
        font-size: clamp(3rem, 10vw, 4.5rem);
    }

    .hero-sub {
        font-size: clamp(1rem, 4vw, 1.25rem);
    }

    .hero-content {
        align-items: center;
        text-align: center;
        width: 100%;
        max-width: 100%;
        padding: 0;
    }

    .hero-eyebrow {
        align-self: center;
    }

    .hero-sub {
        text-align: center;
        max-width: 100%;
    }

    .hero-actions {
        justify-content: center;
    }
}

/* ── 768px breakpoint: Ball Structure scale + visibility fix ── */
/* Targets both the orb wrapper and the user-defined alias class      */
@media (max-width: 768px) {

    /* Force visibility — ball must never be hidden on mobile */
    .hero-orb-wrapper,
    .ball-animation-container {
        display: block !important;
        opacity: 1 !important;
    }

    /* Scale down for small screens so animation fits 80% screen width */
    .ball-animation-container {
        transform: scale(0.6);
        transform-origin: center center;
        margin: 0 auto;
    }
}

/* Very small phones (≤ 480px): shrink the orb a touch more */
@media (max-width: 480px) {
    .hero-orb-wrapper {
        width: clamp(240px, 85vw, 320px);
        height: clamp(240px, 85vw, 320px);
    }

    /* Ensure text remains commanding but not overwhelming */
    .hero-title {
        font-size: clamp(2.8rem, 12vw, 3.5rem);
    }
}

/* Mobile: compact hero padding and service card adjustments */
@media (max-width: 640px) {
    .hero-content {
        padding: 1.25rem 1rem;
        max-width: 100%;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
        max-width: 320px;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }
}

/* ══════════════════════════════════════════════
   HORIZONTAL SCROLL — PROCESS SECTION
══════════════════════════════════════════════ */

/* ── Outer wrapper: overflow hidden to clip the sliding track ── */
.process-horizontal-wrap {
    position: relative;
    width: 100%;
    background: #ffffff;
    overflow: hidden;
}

/* ── Thin top progress bar ── */
.process-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(99, 102, 241, 0.10);
    z-index: 20;
    pointer-events: none;
}

.process-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #6366f1, #818cf8, #a5b4fc);
    border-radius: 0 3px 3px 0;
    transition: width 0.05s linear;
    will-change: width;
}

/* ── Sticky pane — this is what GSAP pins ── */
.process-sticky-limit {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    padding-top: 2rem;
}

/* ── Header row ── */
.process-header-wrap {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding-bottom: 2.5rem;
    gap: 2rem;
}

.process-header {
    flex-shrink: 0;
}

.process-eyebrow-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.process-eyebrow-line {
    display: block;
    width: 28px;
    height: 2px;
    background: #6366f1;
    border-radius: 2px;
    flex-shrink: 0;
}

.process-eyebrow-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #6366f1;
    line-height: 1;
    margin: 0;
}

.process-main-title {
    font-family: var(--font-sans);
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.05;
    color: #0f172a;
    letter-spacing: -0.03em;
    margin: 0;
}

.process-main-title em {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
    color: #6366f1;
    letter-spacing: -0.01em;
}

/* ── Step indicator dots ── */
.process-step-dots {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 6px;
}

.step-dot {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e2e8f0;
    transition: background 0.3s ease, transform 0.3s ease, width 0.3s ease;
    cursor: pointer;
}

.step-dot--active {
    background: #6366f1;
    width: 24px;
    border-radius: 4px;
    transform: scaleY(1.1);
}

/* ── The horizontally-moving track ── */
.process-track {
    display: flex;
    align-items: stretch;
    padding-left: clamp(1.5rem, 8vw, 10%);
    padding-right: clamp(1.5rem, 8vw, 10%);
    gap: 32px;
    will-change: transform;
    cursor: grab;
}

.process-track:active {
    cursor: grabbing;
}

/* ── Individual card ── */
.process-card {
    flex: 0 0 340px;
    /* Compact square format */
    height: 360px;
    text-decoration: none;
}

.process-card__inner {
    position: relative;
    /* Glassmorphism — frosted white with depth */
    background: rgba(255, 255, 255, 0.82);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 28px;
    padding: 2.25rem 2rem 1.75rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* clips ghost number to card bounds */
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.02),
        0 12px 40px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition:
        transform 0.48s cubic-bezier(0.23, 1, 0.32, 1),
        box-shadow 0.48s cubic-bezier(0.23, 1, 0.32, 1),
        border-color 0.36s ease;
}

/* Premium top accent bar — indigo gradient, reveals on hover */
.process-card__inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #818cf8, #a5b4fc);
    border-radius: 32px 32px 0 0;
    opacity: 0;
    transition: opacity 0.36s ease;
}

.process-card:hover .process-card__inner {
    transform: translateY(-15px);
    /* Deep lift — sense of weight & depth */
    box-shadow:
        0 30px 64px rgba(99, 102, 241, 0.14),
        0 10px 24px rgba(0, 0, 0, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    border-color: rgba(99, 102, 241, 0.25);
}

.process-card:hover .process-card__inner::before {
    opacity: 1;
}

/* Ghost number — absolute watermark in top-right corner */
.card-num {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 5rem;
    /* Massive — purely decorative backdrop */
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.05em;
    color: rgba(0, 0, 0, 0.03);
    /* Ultra-low opacity: 0.03 ghost effect */
    -webkit-user-select: none;
    user-select: none;
    pointer-events: none;
    transition: color 0.4s ease;
    z-index: 0;
    /* behind card content */
}

.process-card:hover .card-num {
    color: rgba(99, 102, 241, 0.07);
}

/* Text body — positioned above the ghost number (z-index) */
.card-body {
    position: relative;
    z-index: 1;
    /* sits above ghost .card-num */
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
    margin-top: auto;
    /* pushed down naturally in column */
    padding-top: 1.25rem;
    /* breathing room below ghost number area */
}

.card-body h3 {
    font-size: clamp(1.15rem, 1.4vw, 1.3rem);
    /* Larger, more commanding */
    font-weight: 800;
    /* Premier weight */
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0 0 1.1rem;
}

.card-body p {
    font-size: clamp(0.85rem, 1vw, 0.95rem);
    /* Slightly larger for legibility */
    line-height: 1.7;
    /* Generous — easier to read at large card size */
    color: #64748b;
    margin: 0;
    flex: 1;
}

.card-arrow {
    display: inline-block;
    margin-top: 1rem;
    font-size: 1.1rem;
    color: #6366f1;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.process-card:hover .card-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ── Drag / scroll hint ── */
.process-drag-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding-top: 1.8rem;
    padding-bottom: 0.5rem;
    opacity: 0.55;
    transition: opacity 0.5s ease;
}

.process-drag-hint.hidden {
    opacity: 0;
    pointer-events: none;
}

.drag-hint__line {
    display: block;
    width: 36px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #94a3b8);
    animation: hintPulse 2.2s ease-in-out infinite alternate;
}

.drag-hint__line:last-child {
    background: linear-gradient(90deg, #94a3b8, transparent);
}

.drag-hint__label {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #94a3b8;
}

@keyframes hintPulse {
    from {
        opacity: 0.4;
        transform: scaleX(0.7);
    }

    to {
        opacity: 1;
        transform: scaleX(1);
    }
}

/* ── Mobile responsive ── */
@media (max-width: 768px) {
    .process-horizontal-wrap {
        /* Let GSAP calculate this dynamically; prevent overflow flash */
        overflow: hidden;
    }

    .process-header-wrap {
        flex-direction: column;
        align-items: flex-start;
        padding-bottom: 1.75rem;
        gap: 1rem;
    }

    /* ── Card: 85vw wide, squarified height — scroll-hijack preserved ── */
    .process-card {
        flex: 0 0 75vw;
        height: 320px;
    }

    .process-card__inner {
        padding: 1.75rem 1.5rem 1.5rem;
        border-radius: 20px;
    }

    /* Ghost number scales down for mobile */
    .card-num {
        font-size: 4rem;
        top: 1rem;
        right: 1.25rem;
    }

    .process-track {
        padding-left: clamp(1rem, 5vw, 1.5rem);
        gap: 20px;
        /* Tighter gap on mobile keeps peek effect */
    }

    .process-sticky-limit {
        justify-content: flex-start;
        padding-top: 5.5rem;
        /* Below sticky navbar */
    }

    .process-header-wrap {
        padding-bottom: 1.5rem;
    }

    /* Compact step dots */
    .step-dot {
        width: 6px;
        height: 6px;
    }

    .step-dot--active {
        width: 18px;
    }
}

@media (max-width: 480px) {
    .process-card {
        flex: 0 0 82vw;
        height: 300px;
    }

    .process-card__inner {
        padding: 1.5rem 1.25rem 1.25rem;
        border-radius: 18px;
    }

    .card-num {
        font-size: 3.5rem;
    }
}



/* Subtle angled bg accent — adds depth without clutter */
.process-section-professional::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -80px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* ── Header ── */
.process-header {
    margin-bottom: 48px;
}

.process-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.eyebrow-line {
    display: block;
    width: 28px;
    height: 2px;
    background: #3b82f6;
    border-radius: 2px;
    flex-shrink: 0;
}

.process-eyebrow p {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #3b82f6;
    line-height: 1;
}

.process-title {
    font-family: var(--font-sans);
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.05;
    color: #0f172a;
    letter-spacing: -0.03em;
    margin: 0;
}

.proc-serif-italic {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.proc-blue-text {
    color: #3b82f6;
}

.proc-dot {
    color: #818cf8;
}

/* ── Centre dot ornament ── */
.process-visual-dot {
    display: flex;
    justify-content: center;
    margin-bottom: 44px;
}

.proc-dot-outer {
    width: 44px;
    height: 44px;
    border: 1.5px solid #3b82f6;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.7;
}

.proc-dot-inner {
    width: 8px;
    height: 8px;
    background: #3b82f6;
    border-radius: 50%;
}

/* ── 4-Column Grid — locked position ── */
.process-grid-professional {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    perspective: 1200px;
}

/* Card wrapper — controls the locked height */
.process-card-prof {
    position: relative;
    z-index: 2;
    /* GSAP starts cards invisible; CSS height is pre-locked */
    min-height: 360px;
}

/* Frosted white inner card */
.card-inner-frost {
    background: #ffffff;
    padding: 48px 32px 40px;
    border-radius: 28px;
    height: 100%;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.02),
        0 12px 32px rgba(0, 0, 0, 0.04);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    overflow: hidden;
}

/* Hover — 3D lift */
.process-card-prof:hover .card-inner-frost {
    transform: translateY(-10px) rotateY(-4deg);
    box-shadow:
        0 20px 48px rgba(56, 189, 248, 0.08),
        0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Subtle hover top-border accent */
.card-inner-frost::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #818cf8);
    border-radius: 28px 28px 0 0;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.process-card-prof:hover .card-inner-frost::after {
    opacity: 1;
}

/* ── Card Typography — locked alignment ── */
.process-num {
    display: block;
    font-size: 3.8rem;
    font-weight: 800;
    color: #f1f5f9;
    line-height: 1;
    margin-bottom: 20px;
    letter-spacing: -0.04em;
    /* Ghost number floats behind content */
    -webkit-user-select: none;
    user-select: none;
}

.process-card-prof h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
    margin-top: 0;
}

.process-card-prof p {
    font-size: 0.92rem;
    line-height: 1.68;
    color: #64748b;
    margin: 0;
    flex: 1;
}

/* ── Responsive breakpoints ── */
@media (max-width: 1024px) {
    .process-grid-professional {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .process-section-professional {
        padding: 80px 0;
    }

    .process-grid-professional {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .process-card-prof {
        min-height: unset;
    }
}

/* ══════════════════════════════════════════════
   KINETIC FIVE PILLARS SECTION
══════════════════════════════════════════════ */

/* ── Section wrapper ── */
.kinetic-pillars-section {
    position: relative;
    width: 100%;
    padding: 160px 0 180px;
    background-color: #ffffff;
    /*
     * FIX: overflow must be visible here.
     * overflow:hidden + perspective creates a broken stacking context
     * that causes GSAP's pinSpacing for the Process section to
     * miscalculate, producing the hero→footer scroll jump.
     * Stray elements are clipped by the body instead.
     */
    overflow: visible;
    /* 3D perspective depth for all children */
    perspective: 2000px;
    perspective-origin: 50% 42%;
}

/* ── Animated background grid (revealed on convergence) ── */
.kp-bg-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.9s ease 0.3s;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.04) 1px, transparent 1px);
    background-size: 64px 64px;
    z-index: 0;
}

.kp-bg-grid--active {
    opacity: 1;
}

/* Soft vignette on top of the grid so it fades at edges */
.kp-bg-grid::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 80% at 50% 50%, transparent 40%, #ffffff 100%);
}

/* ── 3D transform stage ── */
.pillars-track {
    position: relative;
    z-index: 2;
    transform-style: preserve-3d;
    will-change: transform;
}

/* ── Header — always visible, no GSAP animation ── */
.kinetic-header {
    text-align: center;
    margin-bottom: 72px;
    position: relative;
    z-index: 10;
    /* No will-change: GSAP no longer animates this element.
       Avoids creating an unnecessary GPU compositing layer. */
    opacity: 1;
    transform: none;
}

.pillars-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #3b82f6;
    margin-bottom: 18px;
}

.pillars-title {
    font-family: var(--font-sans);
    font-size: clamp(2.6rem, 5vw, 4.2rem);
    font-weight: 900;
    line-height: 1.05;
    color: #0f172a;
    letter-spacing: -0.03em;
    margin: 0;
}

.pillars-title em {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
    color: #0f172a;
    opacity: 0.82;
}

/* ── Cards flex row ── */
.kinetic-cards-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 22px;
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 3rem);
    /*
     * FIX: preserve-3d on the container caused iOS/Safari to create
     * a stacking context that broke the scroll compositor.
     * Mouse-parallax rotationX/Y still works via GSAP gsap.set().
     */
    transform-style: flat;
}

/* ── Individual glassmorphic card ── */
.kinetic-card {
    flex: 1;
    max-width: 264px;
    min-height: 380px;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    backdrop-filter: blur(12px) saturate(160%);
    border: 1px solid rgba(0, 0, 0, 0.055);
    border-radius: 28px;
    padding: 48px 28px 40px;
    text-decoration: none;
    color: #1a1a1a;
    display: flex;
    flex-direction: column;
    gap: 0;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.02),
        0 10px 36px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    /* Initial hidden state — GSAP will animate this in */
    opacity: 0;
    /* Performance */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform, opacity;
    transform-style: preserve-3d;
    /* Smooth hover transition (only applies after GSAP reveal) */
    transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.kinetic-card:hover {
    box-shadow:
        0 6px 12px rgba(0, 0, 0, 0.04),
        0 24px 52px rgba(0, 0, 0, 0.09),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transform: translateY(-6px) scale(1.015) !important;
}

/* Top accent bar on hover */
.kinetic-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #818cf8, #38bdf8);
    border-radius: 28px 28px 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.kinetic-card:hover::before {
    opacity: 1;
}

/* ── Card typography ── */
.kinetic-card__icon {
    font-size: 30px;
    margin-bottom: 28px;
    display: block;
    line-height: 1;
}

.kinetic-card__name {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.2;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0 0 16px;
}

.kinetic-card__desc {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #64748b;
    margin: 0 0 auto;
    padding-bottom: 32px;
    flex: 1;
}

.kinetic-card__link {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #3b82f6;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease, color 0.2s ease;
    margin-top: auto;
}

.kinetic-card:hover .kinetic-card__link {
    gap: 10px;
    color: #0f172a;
}

/* ── Tablet (1024px and below): 2-column wrap ── */
@media (max-width: 1024px) {
    .kinetic-cards-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
        padding: 0 clamp(1rem, 5vw, 4rem);
    }

    .kinetic-card {
        flex: 0 0 calc(50% - 20px);
        max-width: calc(50% - 20px);
        min-height: unset;
    }
}

/* ── Mobile: single column; disable 3D effects ── */
@media (max-width: 768px) {
    .kinetic-pillars-section {
        padding: 100px 0 120px;
        /* No perspective on mobile — saves rendering cost */
        perspective: none;
        /* Revert to overflow:hidden on mobile only
           (no GSAP pin beneath it on mobile, so safe) */
        overflow: hidden;
    }

    .pillars-track {
        transform-style: flat;
    }

    .kinetic-cards-container {
        flex-direction: column;
        /* ← vertical stack on mobile */
        align-items: center;
        gap: 18px;
        max-width: 92%;
        margin: 0 auto;
        /* Natural scroll — no snapping */
        overflow: visible;
        scroll-snap-type: none;
    }

    .kinetic-card {
        flex: none;
        width: 100%;
        max-width: 440px;
        min-height: unset;
        padding: 28px 22px 24px;
        margin-bottom: 0;
        /* Disable 3D idle float on mobile */
        transform-style: flat !important;
        will-change: auto;
    }

    .kinetic-card:hover {
        /* Subtle lift only — no rotationY on touch devices */
        transform: translateY(-4px) scale(1.01) !important;
    }
}