/* ── Layout ─────────────────────────────────── */

.splash {
    min-height: 100vh;
    display: flex;
    justify-content: space-between;
}

/* ── Left panel ─────────────────────────────── */

.left-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6rem 4rem 6rem 5rem;
    position: relative;
    z-index: 1;
    clip-path: inset(-100vh -100vw 0 -100vw);
}

/* Shared vertical line style */
.left-panel::before,
.extended-bio::before,
.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background: linear-gradient(
        to bottom,
        transparent,
        var(--secondary) 8%,
        var(--primary) 92%,
        transparent
    );
}

/* Vertical primary stripe */
.left-panel::before {
    left: 5rem;
    top: 15%;
    bottom: 15%;
    z-index: 1;
}

.name {
    font-family: 'Oliver', serif;
    font-weight: 300;

    font-size: 4.5rem;
    line-height: 1.02;
    letter-spacing: -0.015em;
    color: var(--near-black);
    padding-left: 1.25rem;
    margin-bottom: 1rem;
    opacity: 0;
    animation: rise 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.28s;
}

.name-first {
    color: var(--accent-light);
}

.name-last {
    color: var(--accent);
}

.title-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding-left: 1.25rem;
    margin-bottom: 2.25rem;
    opacity: 0;
    animation: rise 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.4s;
}

.title-text {
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--warm-grey);
}

.bio {
    font-weight: 300;
    font-size: 0.93rem;
    line-height: 1.85;
    color: var(--warm-grey);
    white-space: nowrap;
    padding-left: 1.25rem;
    margin-bottom: 2.75rem;
    opacity: 0;
    animation: rise 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.6s;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    padding-left: 1.25rem;
    opacity: 0;
    animation: rise 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.75s;
}

/* ── Right panel ─────────────────────────────── */

.right-panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem max(3rem, 5vw) 6rem max(2rem, 3vw);
    z-index: 2;
    flex: 1;
    min-width: 0;
}



.photo-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    opacity: 0;
    animation: emerge 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.45s;
}

/* Photo frame — SVG with shape 1 clip path */
.photo-frame {
    position: relative;
    z-index: 1;
    width: min(50.4vw, 550px, 100%);
    display: block;
    overflow: visible;
    margin-left: auto;
}

/* Monogram watermark */
.monogram {
    position: absolute;
    bottom: 0;
    right: 0;
    font-family: 'Oliver', serif;

    font-weight: 300;
    font-size: min(17.9vw, 16.8rem);
    line-height: 1;
    color: var(--accent);
    z-index: 3;
    user-select: none;
    pointer-events: none;
    letter-spacing: -0.05em;
}

/* ── Responsive ──────────────────────────────── */

@media (max-width: 860px) {
    .splash {
        flex-direction: column;
    }

    .right-panel {
        order: -1;
        padding: 4rem 2rem 2rem;
        height: 40vh;
        align-items: flex-end;
        justify-content: flex-end;
    }

    .photo-frame {
        width: clamp(224px, 58.8vw, 336px);
    }

    .monogram {
        font-size: 7rem;
    }

    .left-panel {
        padding: 2.5rem 2rem 5rem 2.5rem;
        height: 60vh;
        align-items: flex-start;
    }

    .left-panel::before {
        left: 2.5rem;
        top: 5%;
        bottom: 5%;
    }

    .name,
    .title-badge,
    .bio,
    .cta-row {
        padding-left: 1rem;
        width: 22rem;
        flex-shrink: 0;
    }
}


/* ════════════════════════════════════════════
   BELOW-FOLD CONTENT
   ════════════════════════════════════════════ */

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 clamp(2rem, 4vw, 2.75rem);
}

.section {
    padding: 5rem 0;
}

.about-section {
    margin-top: 60px;
}

.section-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--warm-grey);
    margin-bottom: 1rem;
}

.section-heading {
    font-family: 'Oliver', serif;
    font-weight: 300;

    font-size: clamp(1.5rem, 2.8vw, 2rem);
    color: var(--primary-dark);
    margin-bottom: 3rem;
    line-height: 1.1;
}

.section-footer {
    text-align: center;
    margin-top: 2.5rem;
}

/* ── About ───────────────────────────────────── */

.about-container {
    display: grid;
    grid-template-columns: 14rem 1fr;
    gap: 5rem;
    align-items: start;
}

.about-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.about-status {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--warm-grey);
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #6a9e6a;
    flex-shrink: 0;
}

.about-facts {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.about-facts li,
.about-facts a {
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--warm-grey);
    text-decoration: none;
    transition: color 0.2s ease;
}

.about-facts a:hover {
    color: var(--near-black);
}

.about-social {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.about-social a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--warm-grey);
    text-decoration: none;
    transition: color 0.2s ease;
}

.about-social a:hover {
    color: var(--near-black);
}

.about-social img {
    opacity: 0.55;
    transition: opacity 0.2s ease;
}

.about-social a:hover img {
    opacity: 0.85;
}

.extended-bio {
    font-weight: 300;
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--near-black);
    max-width: 68ch;
    position: relative;
    padding-left: 1.5rem;
}

.extended-bio::before {
    left: 0;
    top: 0;
    bottom: 0;
}

/* ── Projects ────────────────────────────────── */

.projects-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.project-card {
    flex: 0 0 calc(50% - 0.75rem);
}

.project-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--primary);
    background-color: var(--near-white);
    transition: transform 0.22s ease;
}

.project-card:hover {
    transform: translateY(-4px);
}

.project-card__image {
    height: 190px;
    width: 100%;
    flex-shrink: 0;
    object-fit: cover;
    display: block;
}

/* Project image placeholders */
.project-img--palette {
    background: repeating-linear-gradient(
        90deg,
        var(--accent-light) 0%,
        var(--accent-light) 25%,
        var(--accent) 25%,
        var(--accent) 50%,
        var(--primary) 50%,
        var(--primary) 75%,
        var(--secondary) 75%,
        var(--secondary) 100%
    );
}

.project-img--pios {
    background: linear-gradient(160deg, var(--near-black) 0%, var(--cool-grey) 100%);
}

.project-img--godot {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
}

.project-img--bartop {
    background: linear-gradient(160deg, var(--cool-grey) 20%, var(--near-black) 100%);
}

.project-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.25rem 1.4rem 1.4rem;
}

.project-card__title {
    font-family: 'Oliver', serif;
    font-weight: 400;
    font-size: 1.35rem;
    letter-spacing: 0.05em;
    color: var(--near-black);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.project-card__desc {
    font-size: 0.87rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--warm-grey);
    flex: 1;
    margin-bottom: 1rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: auto;
}

.tag {
    font-size: 0.67rem;
    font-weight: 400;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 0.22rem 0.6rem;
    border-radius: 2px;
    background-color: var(--primary);
    color: var(--near-black);
}

/* ── Timeline ────────────────────────────────── */

.timeline {
    position: relative;
    padding-left: 1rem;
}

.timeline::before {
    left: 0;
    top: 0.5rem;
    bottom: 0.5rem;
}

.timeline-item {
    position: relative;
    padding: 0 0 2.75rem 2.5rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -0.43rem;
    top: 0.38rem;
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 50%;
    border: 2px solid var(--background);
    background-color: var(--primary);
}

.timeline-item:nth-child(4n+1) .timeline-marker { background-color: var(--primary); }
.timeline-item:nth-child(4n+2) .timeline-marker { background-color: var(--accent); }
.timeline-item:nth-child(4n+3) .timeline-marker { background-color: var(--secondary); }
.timeline-item:nth-child(4n+0) .timeline-marker { background-color: var(--accent-light); }


.timeline-header {
    display: flex;
    gap: 1.5rem;
    align-items: baseline;
    cursor: pointer;
}

.timeline-date {
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    color: var(--warm-grey);
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 10.5rem;
}

.timeline-role {
    font-family: 'Oliver', serif;
    font-weight: 400;
    font-size: 1.15rem;
    letter-spacing: 0.05em;
    color: var(--near-black);
    line-height: 1.3;
    margin-bottom: 0.2rem;
}

.timeline-company {
    display: block;
    font-size: 0.79rem;
    font-weight: 400;
    color: var(--warm-grey);
}

.timeline-caret {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--warm-grey);
    opacity: 0;
    margin-left: 0.4rem;
    vertical-align: middle;
    line-height: 1;
    transition: opacity 0.15s ease, transform 0.25s ease;
}

.timeline-item:hover .timeline-caret {
    opacity: 1;
}

.timeline-item.is-open .timeline-caret {
    opacity: 1;
    transform: rotate(180deg);
}

.timeline-details {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 0;
    padding-left: calc(10.5rem + 1.5rem);
    transition: max-height 0.35s ease, opacity 0.25s ease, margin-top 0.25s ease;
}

.timeline-item.is-open .timeline-details {
    max-height: 600px;
    opacity: 1;
    margin-top: 0.8rem;
}

.timeline-details ul {
    list-style: disc;
    padding-left: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.timeline-details li,
.timeline-details p {
    font-size: 0.87rem;
    font-weight: 300;
    line-height: 1.65;
    color: var(--warm-grey);
}

/* ── Skills ──────────────────────────────────── */

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
}

.skills-card {
    flex: 1 1 260px;
    background-color: var(--near-white);
    border-radius: 4px;
    padding: 1.4rem 1.5rem;
    border: 1px solid var(--primary);
}

.skills-card__heading {
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--warm-grey);
    margin-bottom: 1rem;
}

.skills-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.skill-pill {
    font-family: 'Jost', sans-serif;
    font-size: 0.67rem;
    font-weight: 400;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--near-black);
    background-color: var(--primary);
    border-radius: 2px;
    padding: 0.22rem 0.6rem;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
    cursor: pointer;
}

.skill-pill:hover {
    background-color: var(--secondary);
}

/* ── Responsive (below-fold) ─────────────────── */

@media (max-width: 860px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .projects-grid {
        flex-direction: column;
    }

    .project-card {
        flex: 0 0 auto;
    }

    .timeline-header {
        flex-direction: column;
        gap: 0.2rem;
    }

    .timeline-date {
        min-width: unset;
    }

    .timeline-details {
        padding-left: 0;
    }

}
