.name-text {
    font-weight: bold;
    /* Scales with the screen; 61px is the original desktop size. */
    font-size: clamp(34px, 9vw, 61px);
}

.hand-wave-icon {
    font-size: 0.95em;
    margin-left: -0.5em;
}

.into-text-images-holder {
    display: flex;
    align-items: flex-start;
    gap: 50px;
}

.intro-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.intro-text {
    font-size: 120%;
    line-height: 1.6;
    margin-top: -10px;
    max-width: 580px;
}

.open-to-work {
    display: flex;
    align-items: center;
    gap: 12px;

    width: fit-content;
    max-width: 580px;
    padding: 10px 16px;
    border-radius: 10px;
    background-color: var(--surface-color);

    font-size: 15px;
    line-height: 1.5;
}

.open-to-work-dot {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    border-radius: 50%;

    background-color: #4ade80;
    box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.2);
}

.intro-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.intro-button {
    padding: 9px 20px;
    border-radius: 1000px;
    border: 1px solid var(--surface-raised);
    background-color: var(--surface-color);

    color: var(--text-color);
    font-size: 16px;
    text-decoration: none;

    transition: background-color 200ms, color 200ms, border-color 200ms;
}
.intro-button:hover,
.intro-button-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--background-color);
}
.intro-button-primary {
    font-weight: bold;
}

.intro-reel {
    flex: 1;
    min-width: 0;
    max-width: 640px;
    margin-top: -10px;

    border-radius: 12px;
    background-color: var(--surface-deep);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

@media (max-width: 1200px) {
    .into-text-images-holder {
        flex-direction: column;
    }

    .intro-reel {
        width: 100%;
        max-width: 760px;
        margin-top: 0px;
    }
}

.featured-projects {
    margin-top: 150px;

    display: flex;
    flex-direction: column;
}

.featured-text-holder {
    height: auto;

    display: flex;
    /* On narrow screens "View More" drops below the title instead of squashing it. */
    flex-wrap: wrap;
}

.featured-star {
    stroke: var(--accent-color);
    stroke-width: 2.4;

    stroke-linejoin: round;

    margin-right: 10px;
    margin-top: 8px;

    width: 30px;
    height: 30px;
}

.header-title {
    margin-top: 0px;
    font-size: 38px;
}

.all-projects-text {
    font-size: 22px;
    white-space: nowrap;

    margin-left: auto;
    margin-top: 22px;
}

@media (max-width: 700px)
{
    .header-title {
        font-size: 28px;
    }

    .featured-star {
        width: 26px;
        height: 26px;
        margin-top: 4px;
    }

    .all-projects-text {
        font-size: 18px;
        margin-top: 0px;
    }
}

/* Fits as many cards per row as there is room for (each at least 440px), and on
   desktop only the first row is shown. */
.featured-project-grid {
    width: 100%;
    margin-bottom: 5%;
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr));

    grid-template-rows: 1fr;
    grid-auto-rows: 0;
    overflow: hidden;
}



/* ---------- Work & Education ---------- */

.experience-tab {
    width: min(860px, 100%);
    justify-self: center;

    margin-top: 70px;
    margin-bottom: 100px;
}

.experience-tabs {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;

    padding: 6px;
    border-radius: 12px;
    background-color: var(--surface-color);
}

.experience-tab-highlight {
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 6px;
    width: calc(50% - 6px);

    border-radius: 9px;
    background-color: var(--accent-color);

    transition: transform 350ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.experience-tabs.education .experience-tab-highlight {
    transform: translateX(100%);
}

.experience-tab-button {
    position: relative;
    z-index: 1;

    padding: 10px;
    border: none;
    background: none;

    color: var(--text-color);
    font-family: inherit;
    font-size: 18px;
    cursor: pointer;

    transition: color 250ms;
}
.experience-tab-button.active {
    color: var(--background-color);
    font-weight: bold;
}

.experience-panel {
    display: none;
    position: relative;

    margin-top: 28px;
    padding-left: 36px;
}
.experience-panel.active {
    display: flex;
    flex-direction: column;
    gap: 22px;

    animation: experience-fade-in 300ms ease;
}
@keyframes experience-fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

/* the vertical timeline line */
.experience-panel::before {
    content: "";
    position: absolute;
    left: 9px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background-color: var(--surface-raised);
}

.experience-entry {
    position: relative;

    padding: 24px;
    border-radius: 12px;
    background-color: var(--surface-color);
}

/* the dot on the timeline */
.experience-entry::before {
    content: "";
    position: absolute;
    left: -33px;
    top: 34px;

    width: 12px;
    height: 12px;
    border-radius: 50%;

    background-color: var(--accent-color);
    box-shadow: 0 0 0 5px var(--background-color);
}

.experience-entry-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.experience-logo {
    width: 56px;
    height: 56px;
    flex-shrink: 0;

    object-fit: contain;
    border-radius: 50%;
    background-color: var(--surface-deep);
}

.experience-heading {
    flex-grow: 1;
    min-width: 0;
}

.experience-company {
    color: var(--text-color);
    font-size: 21px;
    font-weight: bold;
    text-decoration: none;
}
.experience-company:hover {
    color: var(--accent-color);
}

.experience-role {
    margin-top: 4px;
    color: var(--muted-color);
    font-size: 16px;
}

.experience-date {
    flex-shrink: 0;
    align-self: flex-start;

    padding: 4px 12px;
    border-radius: 1000px;
    background-color: var(--surface-deep);

    color: var(--muted-color);
    font-size: 13px;
    white-space: nowrap;
}

.experience-points {
    margin: 18px 0px 0px 0px;
    padding-left: 20px;
}
.experience-points li {
    margin-top: 8px;
    font-size: 16px;
    line-height: 26px;
}
.experience-points li::marker {
    color: var(--accent-color);
}

.experience-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.experience-link {
    padding: 6px 14px;
    border-radius: 1000px;
    border: 1px solid var(--surface-raised);
    background-color: var(--surface-deep);

    color: var(--text-color);
    font-size: 14px;
    text-decoration: none;

    transition: background-color 200ms, color 200ms, border-color 200ms;
}
.experience-link:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--background-color);
}

@media (max-width: 700px) {
    .experience-panel {
        padding-left: 24px;
    }
    .experience-panel::before {
        left: 5px;
    }
    .experience-entry {
        padding: 20px 16px;
    }
    .experience-entry::before {
        left: -24px;
    }
    .experience-entry-header {
        flex-wrap: wrap;
    }
    .experience-logo {
        width: 44px;
        height: 44px;
    }
    .experience-date {
        order: 3;
        margin-left: 60px;
    }
}

/* The page is fluid: a share of the window up to 2000px, with a fixed gutter on
   smaller screens. minmax(0, 1fr) stops wide content (the intro row, the card grid)
   from stretching the column past the page width. */
.page-middle-offseter {
    padding-top: 100px;
    width: min(2000px, 88vw);
    grid-template-columns: minmax(0, 1fr);

    display: grid;
    justify-self: center;
}

/* Tablets and phones: show every featured card, in rows, with smaller minimum width. */
@media (max-width: 1200px) {
    .page-middle-offseter {
        width: calc(100vw - 64px);
    }

    .featured-project-grid {
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));

        margin-bottom: 10%;

        grid-template-rows: initial;
        grid-auto-rows: initial;
        overflow: initial;
    }
}

@media (max-width: 700px) {
    .page-middle-offseter {
        width: calc(100vw - 32px);
    }

    .featured-projects {
        margin-top: 90px;
    }
}