
.experience-section {
    padding: 6rem 2rem 8rem;
    background: var(--primary-color);
    position: relative;
    isolation: isolate;
    z-index: 10;
}

.experience-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.experience-title {
    font-family: 'BBH Sans Bartle', sans-serif;
    font-size: 2rem;
    margin: 0 0 4rem 0;
    color: #fff;
    text-align: center;
    position: relative;
}

.timeline {
    position: relative;
    padding: 10px 0 50px;
}

.timeline-bar {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%) scaleY(0);
    transform-origin: top center;
    width: 8px;
    height: 100%;
    background: rgba(255, 255, 255, 0.88);
    border-radius: 4px;
    transition: transform 1.6s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 0;
}

.timeline-bar.tl-bar-grow {
    transform: translateX(-50%) scaleY(1);
}

.timeline-item {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
    padding: 46px 0;
}

.tl-left  { justify-content: flex-start; }
.tl-right { justify-content: flex-end;   }

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 4px solid #fff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
    z-index: 2;
    transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

.timeline-item:hover .timeline-dot {
    transform: translateX(-50%) scale(1.2);
}

.timeline-card {
    width: calc(50% - 80px);
    background: #fff;
    border-radius: 14px;
    padding: 24px 28px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
    position: relative;
    z-index: 1;
    transition: box-shadow 0.3s ease;
}

.tl-left  .timeline-card { border-right: 4px solid var(--primary-color-dark); }
.tl-right .timeline-card { border-left:  4px solid var(--primary-color-dark); }

.tl-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.tl-type {
    font-family: 'Funnel Display', sans-serif;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #fff;
    background: var(--primary-color);
    padding: 3px 11px;
    border-radius: 999px;
}

.tl-dates {
    font-family: 'Funnel Display', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: #999;
    white-space: nowrap;
}

.tl-title {
    font-family: 'BBH Sans Bartle', sans-serif;
    font-size: 1.2rem;
    margin: 0 0 5px;
    color: #111;
    letter-spacing: 0.04em;
}

.tl-company {
    font-family: 'Funnel Display', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 3px;
}

.tl-location {
    font-family: 'Funnel Display', sans-serif;
    font-size: 0.83rem;
    color: #888;
    margin-bottom: 14px;
}

.tl-desc {
    font-family: 'Funnel Display', sans-serif;
    font-size: 0.9rem;
    color: #444;
    line-height: 1.65;
    margin: 0;
}

.tl-hidden {
    opacity: 0;
    transition: opacity 0.65s ease,
                transform 0.65s cubic-bezier(0.23, 1, 0.32, 1);
}

.tl-left  .tl-hidden { transform: translateX(-50px); }
.tl-right .tl-hidden { transform: translateX(50px);  }

.tl-visible {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

@media (max-width: 768px) {
    .timeline-bar {
        left: 22px;
        transform: translateX(0) scaleY(0);
        transform-origin: top;
    }

    .timeline-bar.tl-bar-grow {
        transform: translateX(0) scaleY(1);
    }

    .timeline-item,
    .tl-left,
    .tl-right {
        justify-content: flex-start;
        padding-left: 56px;
    }

    .timeline-card {
        width: 100%;
        border-left:  4px solid var(--primary-color) !important;
        border-right: none !important;
    }

    .timeline-dot {
        left: 22px;
        border-color: #fff;
    }

    .tl-left  .tl-hidden,
    .tl-right .tl-hidden {
        transform: translateX(30px);
    }

    .experience-title {
        font-size: 1.7rem;
    }
}

