.panel-wrap-work .panel-content {
    width: 100%;
}

.work-heading-block {
    margin-bottom: 16px;
}

.work-eyebrow {
    font-family: 'Instrument Serif', Georgia, serif;
    font-style: italic;
    font-size: 18px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.65);
    display: block;
    margin-bottom: 6px;
    line-height: 1;
}

.work-title {
    font-family: 'Lexend', system-ui, sans-serif;
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 800;
    color: #fff;
    margin: 0 0 32px;
    line-height: 1.1;
}

.work-empty {
    font-family: 'Lexend', system-ui, sans-serif;
    font-size: 14px;
    color: var(--text-faint);
    padding: 24px 0;
}

.work-line {
    position: relative;
    padding-left: 52px;
}

.work-line::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 2px;
}

.work-line::after {
    content: '';
    position: absolute;
    left: 18px;
    top: 8px;
    width: 2px;
    background: linear-gradient(to bottom, #2563eb 0%, rgba(37, 99, 235, 0.4) 100%);
    border-radius: 2px;
    transition: height 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.work-year-group {
    position: relative;
    margin-bottom: 0;
}

.work-year-group + .work-year-group::before {
    content: '';
    display: block;
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
}

.work-year-trigger {
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    user-select: none;
    padding: 20px 0;
    background: none;
    border: none;
    color: inherit;
    font-family: 'Lexend', system-ui, sans-serif;
    width: 100%;
    text-align: left;
    position: relative;
}

.work-year-label-wrap {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-shrink: 0;
}

.work-year-label {
    font-family: 'Lexend', system-ui, sans-serif;
    font-size: clamp(42px, 6vw, 64px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    color: rgba(255, 255, 255, 0.05);
    transition: color 0.3s ease;
}

.work-year-group.is-open .work-year-label {
    color: rgba(37, 99, 235, 0.2);
}

.work-year-group.is-open .work-year-range-badge {
    opacity: 1;
    transform: translateY(0);
    color: rgba(37, 99, 235, 0.8);
}

.work-year-range-badge--present {
    color: rgba(34, 197, 94, 0.6);
    background: rgba(34, 197, 94, 0.07);
    border-color: rgba(34, 197, 94, 0.2);
}

.work-year-group.is-open .work-year-range-badge--present {
    color: rgba(34, 197, 94, 0.9);
}

.work-year-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.work-year-count {
    font-family: 'Lexend', system-ui, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.work-year-group.is-open .work-year-count {
    color: var(--text-muted);
}

.work-year-preview {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    overflow: hidden;
    max-height: 24px;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 1;
}

.work-year-group.is-open .work-year-preview {
    max-height: 0;
    opacity: 0;
}

.work-year-preview-tag {
    font-family: 'Lexend', system-ui, sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 999px;
    padding: 2px 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

.work-year-preview-more {
    display: none;
}

.work-year-chevron {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: var(--text-faint);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    margin-left: auto;
    flex-shrink: 0;
    transition: transform 0.3s ease, stroke 0.3s ease;
}

.work-year-group.is-open .work-year-chevron {
    transform: rotate(180deg);
    stroke: var(--color-primary);
}

.work-year-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.work-year-group.is-open .work-year-content {
    max-height: 4000px;
}

.work-items-wrap {
    padding: 4px 0 28px 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.work-item {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.025);
    transition:
        border-color 0.25s ease,
        background   0.25s ease,
        transform    0.2s ease,
        box-shadow   0.25s ease;
    cursor: pointer;
    overflow: hidden;
}

.work-item--multi-year {
    border-left-color: rgba(37, 99, 235, 0.22);
    border-left-width: 2px;
}

.work-item--ongoing {
    border-left-color: rgba(34, 197, 94, 0.28);
    border-left-width: 2px;
}

.work-item:hover {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.work-item.is-expanded {
    border-color: rgba(37, 99, 235, 0.35);
    background: rgba(37, 99, 235, 0.06);
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.15), 0 12px 40px rgba(0, 0, 0, 0.3);
}

.work-item--ongoing.is-expanded {
    border-color: rgba(34, 197, 94, 0.3);
    background: rgba(34, 197, 94, 0.04);
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.12), 0 12px 40px rgba(0, 0, 0, 0.3);
}

.work-item-trigger {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    user-select: none;
    background: none;
    border: none;
    color: inherit;
    font-family: 'Lexend', system-ui, sans-serif;
    width: 100%;
    cursor: pointer;
    text-align: left;
}

.work-item-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.work-item:hover .work-item-icon,
.work-item.is-expanded .work-item-icon {
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.work-item--ongoing:hover .work-item-icon,
.work-item--ongoing.is-expanded .work-item-icon {
    border-color: rgba(34, 197, 94, 0.35);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.work-item-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 11px;
}

.work-item-icon-emoji {
    font-size: 19px;
    line-height: 1;
    display: block;
}

.work-item-text {
    flex: 1;
    min-width: 0;
    text-align: left;
    padding-top: 2px;
}

.work-item-title {
    font-family: 'Lexend', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
    display: block;
    margin-bottom: 5px;
    word-break: break-word;
}

.work-item-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.work-item-subtitle {
    font-family: 'Lexend', system-ui, sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-faint);
    letter-spacing: 0.04em;
}

.work-item.is-expanded .work-item-subtitle {
    color: rgba(37, 99, 235, 0.75);
}

.work-item--ongoing.is-expanded .work-item-subtitle {
    color: rgba(34, 197, 94, 0.75);
}

.work-item-span-badge {
    font-family: 'Lexend', system-ui, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: rgba(37, 99, 235, 0.7);
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 999px;
    padding: 2px 8px;
    white-space: nowrap;
}

.work-item-span-badge--present {
    color: rgba(34, 197, 94, 0.8);
    background: rgba(34, 197, 94, 0.08);
    border-color: rgba(34, 197, 94, 0.25);
}

.work-item-caret {
    width: 14px;
    height: 14px;
    min-width: 14px;
    fill: none;
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    margin-top: 3px;
    flex-shrink: 0;
    transition: transform 0.3s ease, stroke 0.3s ease;
}

.work-item.is-expanded .work-item-caret {
    transform: rotate(90deg);
    stroke: var(--color-primary);
}

.work-item--ongoing.is-expanded .work-item-caret {
    stroke: rgba(34, 197, 94, 0.8);
}

.work-item-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.work-item.is-expanded .work-item-body {
    max-height: 800px;
}

.work-item-body-inner {
    padding: 12px 16px 18px;
    border-top: 1px solid rgba(37, 99, 235, 0.15);
}

.work-item--ongoing .work-item-body-inner {
    border-top-color: rgba(34, 197, 94, 0.15);
}

.work-item-summary {
    font-family: 'Lexend', system-ui, sans-serif;
    font-size: 12.5px;
    line-height: 1.75;
    color: var(--text-muted);
    font-weight: 400;
    margin: 0;
}

@media (max-width: 900px) {
    .work-year-label {
        font-size: clamp(38px, 5vw, 56px);
    }
}

@media (max-width: 600px) {
    .work-year-preview-tag--extra {
        display: none;
    }

    .work-year-preview-tag {
        max-width: 130px;
        overflow: hidden;
        text-overflow: ellipsis;
        flex-shrink: 1;
    }

    .work-year-preview-more {
        display: inline;
        font-family: 'Lexend', system-ui, sans-serif;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.04em;
        color: rgba(255, 255, 255, 0.22);
        white-space: nowrap;
        flex-shrink: 0;
    }

    .work-line {
        padding-left: 40px;
    }

    .work-year-trigger {
        gap: 10px;
    }

    .work-item-icon {
        width: 38px;
        height: 38px;
        min-width: 38px;
        border-radius: 10px;
    }

    .work-item-icon-img {
        border-radius: 9px;
    }

    .work-item-trigger {
        gap: 10px;
        padding: 12px 13px;
    }
}

@media (max-width: 380px) {
    .work-timeline {
        padding-left: 32px;
    }

    .work-item-trigger {
        padding: 11px 12px;
    }

    .work-year-preview-tag {
        max-width: 110px;
    }
}
