/* hiring_process styles */
/* ==========================================================================
m-hp — Hiring process (4 steps)
Built on theme: l-section, c-section-head, c-badge, c-grid--4, c-card,
c-icon-tile, c-h5, c-body. Only layout glue + gradient frame live here.
========================================================================== */
.m-hp {
    --hp-gap: 26px;
    /* gradient gutter between / around cards   */
    --hp-bridge-top: 54px;
    /* bridge sits level with the icon tile      */
    --hp-bridge-h: 36px;
}

.m-hp__badge-ico {
    color: var(--c-primary);
    flex: none;
}

/* Gradient frame (soft multi-colour mesh) */
.m-hp .m-hp__frame {
    list-style: none;
    margin: 8px 0 0;
    padding: var(--hp-gap);
    gap: var(--hp-gap);
    border-radius: var(--r-2xl);
    background:
        radial-gradient(60% 90% at 0% 0%, #ead7fb 0%, transparent 60%),
        radial-gradient(45% 80% at 100% 0%, #c9e2f8 0%, transparent 65%),
        radial-gradient(45% 70% at 50% 100%, #fbefcf 0%, transparent 70%),
        radial-gradient(40% 70% at 0% 100%, #e3f0e4 0%, transparent 70%),
        radial-gradient(40% 60% at 55% 0%, #e2f5e8 0%, transparent 70%),
        #eef4f3;
}

/* Cards: borderless white on the frame */
.m-hp .m-hp__step {
    border-color: transparent;
    padding: var(--card-pad-lg);
    gap: 0;
    height: 100%;
}

.m-hp .c-icon-tile {
    margin-bottom: 20px;
}

.m-hp__meta {
    font-size: var(--fs-base);
    font-weight: var(--fw-medium);
    letter-spacing: .02em;
    text-transform: uppercase;
    /* color: var(--c-muted); */
    margin: 0 0 20px;
}

.m-hp__title {
    margin: 0 0 16px;
}

/* Bridge: white link joining a card to the next, with rounded gutter ends */
.m-hp__step::after {
    content: "";
    position: absolute;
    top: calc(var(--hp-bridge-top) - var(--hp-gap) / 2);
    left: calc(100% - 1px);
    width: calc(var(--hp-gap) + 2px);
    height: calc(var(--hp-bridge-h) + var(--hp-gap));
    background: #fff;
    --m: radial-gradient(circle calc(var(--hp-gap) / 2) at 50% 0, #0000 98%, #000);
    --n: radial-gradient(circle calc(var(--hp-gap) / 2) at 50% 100%, #0000 98%, #000);
    -webkit-mask: var(--m) top / 100% 51% no-repeat, var(--n) bottom / 100% 51% no-repeat;
    mask: var(--m) top / 100% 51% no-repeat, var(--n) bottom / 100% 51% no-repeat;
    pointer-events: none;
}

.m-hp__step:last-child::after {
    display: none;
}

/* 2 columns (theme c-grid--4 would go 3+1 here) */
@container wrap (max-width: 1100px) {
    .m-hp .m-hp__frame {
        --cols: 2;
    }

    .m-hp__step:nth-child(2n)::after {
        display: none;
    }
}

/* 1 column: bridges turn vertical, level with the icon tile */
@container wrap (max-width: 600px) {
    .m-hp {
        --hp-gap: 14px;
    }

    .m-hp .m-hp__frame {
        --cols: 1;
        border-radius: var(--r-xl);
    }

    .m-hp__step:nth-child(2n)::after {
        display: block;
    }

    .m-hp__step:last-child::after {
        display: none;
    }

    .m-hp__step::after {
        top: calc(100% - 1px);
        left: calc(var(--card-pad-lg) + 12px - var(--hp-gap) / 2);
        width: calc(var(--hp-bridge-h) + var(--hp-gap));
        height: calc(var(--hp-gap) + 2px);
        --m: radial-gradient(circle calc(var(--hp-gap) / 2) at 0 50%, #0000 98%, #000);
        --n: radial-gradient(circle calc(var(--hp-gap) / 2) at 100% 50%, #0000 98%, #000);
        -webkit-mask: var(--m) left / 51% 100% no-repeat, var(--n) right / 51% 100% no-repeat;
        mask: var(--m) left / 51% 100% no-repeat, var(--n) right / 51% 100% no-repeat;
    }
}

/* Theme reveal sets clip-path: inset(0) on revealed cards, which would cut
off the bridges; switch it off for this module only. */
.motion .m-hp .m-hp__step[data-reveal].is-in,
.m-hp .m-hp__step {
    clip-path: none;
}