/* Global module - Career Timeline ("21 years in industry") */
.el-career {
    background: var(--el-color-light);
}

.el-career-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.2fr);
    gap: clamp(32px, calc(32px + 48 * (100vw - 1280px) / 640), 80px);
}

.el-career-side h2 {
    margin: 0 0 clamp(14px, calc(14px + 8 * (100vw - 1280px) / 640), 22px);
}

.el-career-text {
    max-width: 580px;
    margin: 0 0 clamp(28px, calc(28px + 16 * (100vw - 1280px) / 640), 44px);
    font-size: clamp(17px, calc(17px + 4 * (100vw - 1280px) / 640), 21px);
    line-height: 1.7;
    color: var(--el-color-muted);
}

.el-career-image {
    aspect-ratio: 580 / 435;
    overflow: hidden;
    border-radius: clamp(24px, calc(24px + 8 * (100vw - 1280px) / 640), 32px);
}

.el-career-image.is-empty {
    background: linear-gradient(135deg, #cdd7e2, #e3e9ef);
}

.el-career-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Desktop: the list sits in a box as tall as the left side. Pinned (global_career.js): the box stays in place
   while the page scroll moves the list; the track below it supplies that scroll distance. */
.el-career.is-pinned .el-career-grid {
    position: sticky;
    top: var(--el-career-top, 110px);
}
.el-career-scroll {
    position: relative;
}

.el-career-list {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 4px 12px 40px 0; /* room for the orange outline of the lit step */
    overflow-y: auto; /* without pinning (short screens) it still scrolls with the wheel */
    list-style: none;
    scrollbar-width: none; /* no scrollbar shows (design) */
    /* Fade the cards out at the bottom edge, so it reads as "more below" */
    -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 60px), transparent);
    mask-image: linear-gradient(180deg, #000 calc(100% - 60px), transparent);
}

.el-career-list::-webkit-scrollbar {
    display: none;
}

/* Pinned, the page scroll drives the list; at the last step the fade goes */
.el-career.is-pinned .el-career-list {
    overflow: hidden;
}

/* Once the steps move, the top edge fades too; at the last step only the top fade stays */
.el-career.is-scrolled .el-career-list {
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 50px, #000 calc(100% - 60px), transparent);
    mask-image: linear-gradient(180deg, transparent, #000 50px, #000 calc(100% - 60px), transparent);
}

.el-career.is-end .el-career-list {
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 50px);
    mask-image: linear-gradient(180deg, transparent, #000 50px);
}

/* One step: number circle on the line, card on the right */
.el-career-item {
    position: relative;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: clamp(16px, calc(16px + 12 * (100vw - 1280px) / 640), 28px);
    padding-bottom: clamp(16px, calc(16px + 12 * (100vw - 1280px) / 640), 28px);
}

/* The line between the numbers */
.el-career-item::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 31px;
    width: 2px;
    background: #b9cbe0;
}

.el-career-item:last-child::before {
    bottom: auto;
    height: 64px;
}

.el-career-num {
    position: relative;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border: 2px solid var(--el-color-blue-dark);
    border-radius: 50%;
    background: var(--el-color-light);
    font-size: 18px;
    font-weight: 500;
    color: var(--el-color-blue-dark);
}

/* The last step (the latest role) is filled */
.el-career-item:last-child .el-career-num {
    background: var(--el-color-blue-dark);
    color: var(--el-color-white);
}

.el-career-card {
    padding: clamp(22px, calc(22px + 10 * (100vw - 1280px) / 640), 32px) clamp(22px, calc(22px + 10 * (100vw - 1280px) / 640), 32px);
    border-radius: clamp(20px, calc(20px + 8 * (100vw - 1280px) / 640), 28px);
    background: var(--el-color-white);
    box-shadow: 0 2px 10px rgba(12, 29, 39, 0.04);
}

.el-career-eyebrow {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #5a6773;
}

/* h3 in the outline; sized like the design (the site h4 size, a little larger) */
.el-career-card h3 {
    margin: 0 0 10px;
    font-size: clamp(22px, calc(22px + 10 * (100vw - 1280px) / 640), 32px);
    line-height: 1.2;
    color: var(--el-color-blue-dark);
}

.el-career-card-text {
    margin: 0;
    font-size: clamp(16px, calc(16px + 4 * (100vw - 1280px) / 640), 20px);
    line-height: 1.6;
    color: var(--el-color-muted);
}

.el-career-stat {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    margin: 18px 0 0;
    padding: 6px 18px;
    border-radius: 999px;
    background: #fde8dd;
    font-size: 16px;
    color: #b8401a;
}

.el-career-stat strong {
    font-family: var(--el-font-heading);
    font-size: clamp(22px, calc(22px + 6 * (100vw - 1280px) / 640), 28px);
    font-weight: 400;
    line-height: 1.2;
}

/* The step in view (global_career.js): orange number and outline */
.el-career-num,
.el-career-card {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.el-career-item.is-active .el-career-num {
    border-color: var(--el-color-orange);
    background: var(--el-color-orange);
    color: var(--el-color-white);
}

.el-career-item.is-active .el-career-card {
    box-shadow: 0 0 0 2px var(--el-color-orange), 0 12px 30px rgba(12, 29, 39, 0.08);
}

/* Tablet and phone: one column, the whole list shows */
@media (max-width: 991px) {
    .el-career-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .el-career-list {
        position: static;
        overflow: visible;
        padding: 0;
        -webkit-mask-image: none;
        mask-image: none;
    }
}

@media (max-width: 575px) {
    .el-career-item {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 12px;
    }

    .el-career-item::before {
        left: 21px;
    }

    .el-career-num {
        width: 44px;
        height: 44px;
        font-size: 15px;
    }

    .el-career-item:last-child::before {
        height: 44px;
    }
}
