.profile-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.profile-text {
    flex: 1;
}

.profile-drawing {
    width: 13rem;
    height: auto;
    flex-shrink: 0;
}

/* TIMELINE ############*/
:root {
    --timeline-height: 2500px;
    --base-date: 2016-01;
    --end-date: 2028-07;
}

.timeline-container {
    overflow-x: hidden;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 3rem;
    width: 100%;
    padding: 0rem;
    height: var(--timeline-height);
    overflow-y: auto;
    position: relative;
}

.timeline-axis {
    position: relative;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--muted);
    z-index: 1;
    overflow: hidden;
}


.edu-timeline {
    position: relative;
    width: 48%;
}

.work-timeline {
    position: relative;
    width: 48%;
    display: flex;
    gap: 1rem;
}

.work-column-1,
.work-column-2 {
    position: relative;
    width: 48%;
}

.edu-timeline .timeline-axis {
    right: 0;
}

.work-timeline .timeline-axis {
    left: 0;
}

/* Segments */
.edu-segment,
.work-segment {
    overflow: visible;
    position: absolute;
    width: 100%;
    box-sizing: border-box;
    padding: 1rem;
}

.edu-segment {
    text-align: right;
    right: 2px;
    width: 100%;
}

.work-segment {
    text-align: left;
    left: 2px;
}

.edu-label,
.work-label {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 4px;
    letter-spacing: 0.01em;
}

/* Branches */
.branch-line-top,
.branch-line-bottom,
.branch-line-vertical {
    position: absolute;
    background-color: var(--muted);
    z-index: 1;
}

.branch-line-top,
.branch-line-bottom {
    position: absolute;
    height: 2px;
    width: 100%;
    background-color: transparent;
    z-index: 1;
}

.edu-segment .branch-line-vertical {
    width: 4px;
    top: 0;
    right: 0;
}

.work-segment .branch-line-vertical {
    width: 4px;
    top: 0;
    left: 0;
}

.vertical-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background-color: var(--accent);
    z-index: 2;
}

.diagonal-fill {
    position: absolute;
    border: none;
    border-top: 3px dotted var(--muted);
    background-color: #fff;
    opacity: 1;
    z-index: 0;
}

.timeline-year-lines {
    position: relative;
    top: 0;
    right: 1%;
    width: 5%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.year-line {
    position: absolute;
    width: 100%;
    height: 1px;
    background-color: #aaa;
}

.year-label {
    position: absolute;
    left: 50%;
    font-size: 0.9rem;
    padding: 0 6px;
    top: -0.7rem;
}

.month-label {
    position: absolute;
    left: 0;
    font-size: 0.7rem;
    color: grey;
    line-height: 1rem;
    white-space: nowrap;
}

.month-label.active-month {
    font-weight: bold;
    left: -0.4rem;
}

.month-label.neighbor-month {
    left: -0.2rem;
}

.supplementary-info {
    opacity: 0;
    background-color: transparent;
    position: relative;
    z-index: 3;
    transition: opacity 0.3s ease, background-color 0.3s ease;
}

.reveal-line {
    position: relative;
    overflow: hidden;
}

.reveal-line::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    transform: translateY(0%);
    transition: transform 0.6s ease;
    z-index: 1;
    pointer-events: none;
}

.edu-label-and-detail,
.work-label-and-detail {
    position: relative;
    z-index: 0;
}

.edu-label-and-detail:hover:not(:has(.supplementary-info:hover)),
.work-label-and-detail:hover:not(:has(.supplementary-info:hover)),
.edu-label-and-detail.is-open,
.work-label-and-detail.is-open {
    z-index: 20;
}

.edu-label-and-detail:hover:not(:has(.supplementary-info:hover)) .supplementary-info,
.work-label-and-detail:hover:not(:has(.supplementary-info:hover)) .supplementary-info,
.edu-label-and-detail.is-open .supplementary-info,
.work-label-and-detail.is-open .supplementary-info {
    background-color: var(--paper);
    opacity: 1;
}

.edu-label-and-detail:hover:not(:has(.supplementary-info:hover)) .reveal-line::before,
.work-label-and-detail:hover:not(:has(.supplementary-info:hover)) .reveal-line::before,
.edu-label-and-detail.is-open .reveal-line::before,
.work-label-and-detail.is-open .reveal-line::before {
    transform: translateY(100%);
    transition-delay: 0.05s;
    background: var(--paper);
}

.item-subheader {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
    line-height: 1.4;
    font-style: normal;
}

.today-line {
    position: absolute;
    left: 3%;
    width: 10%;
    height: 1px;
    z-index: 10;
    overflow: visible;
}

.today-line::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-image: repeating-linear-gradient(to left,
            black 0,
            black 4px,
            transparent 4px,
            transparent 8px);
    mask-image: linear-gradient(to left, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1));
    -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1));
    mask-size: 100% 100%;
    mask-repeat: no-repeat;
    pointer-events: none;
}


.today-label {
    position: absolute;
    left: 3%;
    font-size: 1em;
    transform: translateY(-100%);
}

/* Skills */
.skills-list,
.interests-list {
    list-style: none;
    padding: 0;
    margin: 6px 0 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skills-list li {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease-out;
    padding: 6px 12px;
    font-size: 0.9rem;
}

.skills-list li.show {
    opacity: 1;
    transform: translateX(0);
}

.skills-list li:nth-child(1) {
    transition-delay: 0s;
}

.skills-list li:nth-child(2) {
    transition-delay: 0.1s;
}

.skills-list li:nth-child(3) {
    transition-delay: 0.2s;
}

.skills-list li:nth-child(4) {
    transition-delay: 0.3s;
}

.skills-list li:nth-child(5) {
    transition-delay: 0.4s;
}

/* Publications */
.publication-list {
    list-style: none;
    padding-left: 0;
}

.publication-item {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-left: 1px solid var(--primary-color);
}

.publication-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5em;
}

.publication-left {
    flex: 1;
}

.publication-right {
    font-size: 1.25rem;
    color: #333;
    margin-left: 1em;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease-out;
    transition-delay: 0.4s;
}

.publication-right.show {
    opacity: 1;
    transform: translateX(0);
}

.publication-title {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.publication-authors {
    font-style: italic;
    color: #555;
    margin-bottom: 0.5rem;
}

.publication-details {
    font-size: 0.9rem;
    color: #666;
}

.publication-type {
    background-color: transparent;
    /* no background */
    color: #444;
    font-size: 0.75rem;
    padding: 0.2em 0.5em;
    margin-left: 0.5em;
    border-radius: 4px;
    border: 1px solid #444;
    /* add border */
    vertical-align: middle;
}

@media (max-width: 700px) {

    .timeline-year-lines,
    .today-line,
    .today-label {
        display: none;
    }

    .timeline-container {
        font-size: 0.85rem;
    }
}