#experience {
    width: 100vw;
    min-height: auto;
    height: auto;
    position: relative;
    padding: 8vh 5vw 12vh 5vw;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 4vw;
}

.exp-sticky-col {
    position: sticky;
    top: 12vh;
    align-self: flex-start;
    width: 44vw;
    height: 76vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
    transform: translateZ(0);
    will-change: transform;
}

.exp-canvas-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

#exp_canvas {
    width: 100%;
    height: 100%;
    display: block;
    transform: translateZ(0);
}

.exp-timeline-col {
    position: relative;
    width: 48vw;
    display: flex;
    flex-direction: column;
    gap: clamp(2.5rem, 2.8125vw, 4.5rem);
    padding: 2vh 0 10vh 0;
    z-index: 5;
}

.exp-timeline-spine {
    position: absolute;
    top: clamp(1.5rem, 1.75vw, 2.8rem);
    bottom: clamp(1.5rem, 1.75vw, 2.8rem);
    left: 50%;
    width: 2px;
    background-color: rgba(148, 139, 137, 0.22);
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 1;
}

.exp-timeline-item {
    position: relative;
    width: 100%;
    min-height: 48vh;
    box-sizing: border-box;
}

.exp-timeline-node {
    position: sticky;
    top: calc(20vh + clamp(1.5rem, 1.6875vw, 2.7rem));
    left: 0;
    margin-left: 50%;
    transform: translateX(-50%);
    margin-bottom: -14px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #211c1e;
    border: 2px solid rgba(148, 139, 137, 0.4);
    box-sizing: border-box;
    transition: background-color 0.35s ease, border-color 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
    z-index: 10;
    cursor: pointer;
}

.exp-timeline-node:hover {
    border-color: var(--fg);
    transform: translateX(-50%) scale(1.15);
}

.exp-timeline-item.active .exp-timeline-node {
    background-color: var(--fg);
    border-color: var(--fg);
    transform: translateX(-50%) scale(1.35);
    box-shadow: 0 0 12px rgba(229, 220, 217, 0.35);
}

.exp-timeline-item.active .exp-timeline-node:hover {
    transform: translateX(-50%) scale(1.45);
}

.exp-timeline-item.active .exp-timeline-node::after {
    background-color: #100E0F;
}

.exp-timeline-item:nth-child(odd) .exp-item-card {
    margin-left: 0;
    margin-right: auto;
    text-align: right;
    align-items: flex-end;
}

.exp-timeline-item:nth-child(even) .exp-item-card {
    margin-left: auto;
    margin-right: 0;
    text-align: left;
    align-items: flex-start;
}

.exp-title {
    width: 100%;
    text-align: end;
    margin-bottom: clamp(1.5rem, 1.875vw, 3rem);
}

.exp-item-card {
    position: sticky;
    top: 20vh;
    align-self: flex-start;
    width: 44%;
    display: flex;
    flex-direction: column;
    gap: clamp(0.6rem, 0.59375vw, 0.95rem);
    padding: clamp(1.2rem, 0.9375vw, 1.5rem) clamp(1.2rem, 1.03125vw, 1.65rem);
    border-radius: clamp(0.5rem, 0.546875vw, 0.875rem);
    background-color: rgba(22, 19, 20, 0.82);
    transition: background-color 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    font-family: var(--font-main);
    z-index: 4;
    cursor: pointer;
}

.exp-timeline-item:hover .exp-item-card,
.exp-timeline-item.active .exp-item-card {
    background-color: #1c181a;
}

.exp-card-epoch {
    font-family: var(--font-main);
    font-size: clamp(1.8rem, 1.375vw, 2.2rem);
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #9e9494;
    transition: color 0.3s ease;
}

.exp-timeline-item.active .exp-card-epoch {
    color: var(--fg);
}

.exp-card-title {
    font-family: var(--font-main);
    font-size: clamp(1.25rem, 0.90625vw, 1.45rem);
    color: var(--fg);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.exp-card-org {
    font-family: var(--font-main);
    font-size: clamp(0.9rem, 0.6375vw, 1.02rem);
    color: var(--alt);
    font-weight: 400;
}

.exp-card-org strong {
    color: #cfc6c3;
    font-weight: 600;
}

.exp-card-desc {
    font-family: var(--font-main);
    font-size: clamp(0.9rem, 0.6375vw, 1.02rem);
    line-height: 1.68;
    color: #cfc6c3;
    font-weight: 400;
    text-align: justify;
}

.exp-timeline-item:nth-child(odd) .exp-card-desc {
    text-align-last: right;
}

@media (max-width: 1024px) {
    #experience {
        flex-direction: column;
        min-height: auto;
        padding: 8vh 5vw;
        gap: 4vh;
    }

    .exp-sticky-col {
        position: relative;
        top: 0;
        width: 100%;
        height: 420px;
    }

    .exp-timeline-col {
        width: 100%;
        padding: 1vh 0;
        gap: 3.5rem;
    }

    .exp-timeline-item {
        min-height: auto;
    }

    .exp-timeline-spine {
        left: 14px;
        transform: none;
    }

    .exp-timeline-node {
        position: absolute;
        top: 2.8rem;
        left: 14px;
        margin-left: 0;
        margin-bottom: 0;
        transform: translate(-50%, -50%);
    }

    .exp-timeline-node:hover {
        transform: translate(-50%, -50%) scale(1.15);
    }

    .exp-timeline-item.active .exp-timeline-node {
        transform: translate(-50%, -50%) scale(1.35);
    }

    .exp-timeline-item.active .exp-timeline-node:hover {
        transform: translate(-50%, -50%) scale(1.45);
    }

    .exp-item-card {
        position: relative;
        top: 0;
        width: calc(100% - 48px);
        margin-left: auto !important;
        margin-right: 0 !important;
        padding: 1.8rem 2rem;
        text-align: left !important;
        align-items: flex-start !important;
    }

    .exp-timeline-item:nth-child(odd) .exp-card-desc,
    .exp-timeline-item:nth-child(even) .exp-card-desc {
        text-align: left;
    }
}

@media (max-width: 640px) {
    .exp-item-card {
        padding: 1.4rem 1.6rem;
    }
}

@media (max-width: 850px) {
    .exp-sticky-col {
        display: none !important;
    }

    #experience {
        padding: 8vh 6vw;
        gap: 2rem;
        min-height: 100vh;
        min-height: 100svh;
        box-sizing: border-box;
    }

    #experience > div:last-child {
        width: 100%;
    }

    .exp-title {
        text-align: left;
        margin-bottom: 2rem;
        font-size: clamp(2.8rem, 12vw, 4.8rem);
    }

    .exp-timeline-col {
        width: 100%;
        padding: 0;
        gap: 2.5rem;
    }

    .exp-timeline-spine {
        left: 12px;
        top: 1rem;
        bottom: 1rem;
    }

    .exp-timeline-node {
        left: 12px;
        top: 1.6rem;
    }

    .exp-item-card {
        width: calc(100% - 32px);
        padding: 1.2rem 1.3rem;
        gap: 0.6rem;
    }

    .exp-card-epoch {
        font-size: clamp(1.2rem, 4vw, 1.5rem);
    }

    .exp-card-title {
        font-size: clamp(1.05rem, 3.2vw, 1.25rem);
    }

    .exp-card-org {
        font-size: 0.85rem;
    }

    .exp-card-desc {
        font-size: 0.88rem;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    #experience {
        padding: 6vh 5vw;
    }

    .exp-title {
        font-size: clamp(2.5rem, 13vw, 3.8rem);
    }

    .exp-item-card {
        width: calc(100% - 28px);
        padding: 1rem 1.1rem;
    }

    .exp-card-epoch {
        font-size: 1.15rem;
    }

    .exp-card-title {
        font-size: 1rem;
    }

    .exp-card-desc {
        font-size: 0.84rem;
    }
}
