/* ==========================================================
   TechPhile motion layer: animated hero field + walking crowd
   Palette comes from the existing TechPhile home page:
   cyan #13AAB6 · blue #5B83D5 · violet #9A6BC5 · navy #24364B
   ========================================================== */

/* ---------- Hero: moving bars + drifting dot pattern ---------- */
.home-hero > .tp-hero-canvas {
    position: absolute;
    inset: 0;
    z-index: -1;                 /* above the blurred ::before glow, below content */
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border-radius: inherit;
    pointer-events: none;
    /* Quiet zone over the headline (left column) so copy stays crisp,
       while bars and dots stay lively around it and behind the roadmap card. */
    -webkit-mask-image: radial-gradient(ellipse 46% 58% at 25% 46%, rgba(0,0,0,.14) 0%, rgba(0,0,0,.38) 58%, #000 100%);
            mask-image: radial-gradient(ellipse 46% 58% at 25% 46%, rgba(0,0,0,.14) 0%, rgba(0,0,0,.38) 58%, #000 100%);
}
@media (max-width: 991.98px) {
    .home-hero > .tp-hero-canvas {
        -webkit-mask-image: radial-gradient(ellipse 90% 40% at 50% 26%, rgba(0,0,0,.14) 0%, rgba(0,0,0,.4) 60%, #000 100%);
                mask-image: radial-gradient(ellipse 90% 40% at 50% 26%, rgba(0,0,0,.14) 0%, rgba(0,0,0,.4) 60%, #000 100%);
    }
}

/* ---------- Crowd: people walking along the bottom of the page ---------- */
.tp-crowd {
    position: relative;
    z-index: 0;
    height: clamp(210px, 26vw, 300px);
    /* bleed to the edges of the rounded .home-page card and sit on its bottom edge */
    margin: 1.25rem calc(var(--bs-gutter-x, 1.5rem) * -.5) -3rem;
    overflow: hidden;
    cursor: default;
    touch-action: pan-y;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 16%);
            mask-image: linear-gradient(to bottom, transparent 0%, #000 16%);
}
/* a soft floor tint so the crowd feels like it stands on something */
.tp-crowd::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(to top, rgba(91,131,213,.13), rgba(19,170,182,.05) 38%, transparent 62%);
}
.tp-crowd > canvas {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}
.tp-crowd.is-over-person { cursor: pointer; }

/* ---------- Scroll reveals: quiet, accessible, and progressively enhanced ---------- */
.tp-motion-ready [data-tp-reveal] {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    transition: opacity 560ms cubic-bezier(.2,.7,.2,1), transform 560ms cubic-bezier(.2,.7,.2,1);
    transition-delay: var(--tp-reveal-delay, 0ms);
}
.tp-motion-ready [data-tp-reveal].is-tp-visible {
    opacity: 1;
    transform: none;
}
.home-how-it-works {
    position: relative;
    padding: clamp(1.5rem, 4vw, 3.25rem);
    overflow: hidden;
    border: 1px solid rgba(214,225,237,.88);
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(255,255,255,.88), rgba(244,249,255,.82));
    box-shadow: 0 18px 48px rgba(32,54,83,.055);
}
.home-step-card {
    height: 100%;
    padding: 1.4rem;
    border: 1px solid rgba(214,225,237,.82);
    border-radius: 20px;
    background: rgba(255,255,255,.82);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.home-step-card:hover,
.home-step-card:focus-within {
    transform: translateY(-4px);
    border-color: rgba(19,170,182,.45);
    box-shadow: 0 16px 34px rgba(32,54,83,.09);
}
.home-step-number {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    margin-bottom: 1rem;
    border-radius: 14px;
    color: #087f91;
    background: linear-gradient(135deg, #e0f8f5, #e8efff);
    font-weight: 800;
}
.home-step-card h3 { color: #24364b; font-size: 1.08rem; font-weight: 750; }
.home-step-card p { margin-bottom: 0; color: #687a90; line-height: 1.7; }
.home-journey-note {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: 1rem 1.1rem;
    border-radius: 16px;
    color: #40536c;
    background: rgba(230,245,250,.72);
}
.home-journey-note i { color: #148d9d; font-size: 1.1rem; }
@media (prefers-reduced-motion: reduce) {
    .tp-motion-ready [data-tp-reveal],
    .tp-motion-ready [data-tp-reveal].is-tp-visible {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .home-step-card,
    .home-step-card:hover,
    .home-step-card:focus-within { transition: none; transform: none; }
}
@media (max-width: 575.98px) {
    .home-how-it-works { border-radius: 20px; }
    .home-step-card { padding: 1.15rem; }
}

