.header {
    position: fixed;
    z-index: 10;
    top: 0;
    left: 0;
    padding: 0.25rem 0.5rem;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(0px);
    transition: 400ms 200ms;
    font-size: 13px;
    line-height: 1.3em;
}

.header h1 {
        font-size: 13px;
            line-height: 1.3em;
}

.header.open {
    bottom: 0;
    backdrop-filter: blur(10px);
}

.header-title {
    display: inline;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

.header-button {
    color: rgb(140, 140, 140);
    text-decoration: underline;
    display: inline;
}

.header.open .header-button {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 0.5rem;
}

.header-text-short {
    display: inline;
}

.header.open .header-text-short {
    display: none;
}

.header-text-full {
    display: none;
}

.header.open .header-text-full {
    display: inline;
}

.header-info {
    display: none;
}

.header.open .header-info {
    display: block;
    position: absolute;
    bottom: 3rem;
}

@media screen and (min-width: 768px) {
    .header {
        position: static;
        padding: 0 1.5rem 0 0;
        max-width: 450px;
    }

    .header-text-short {
        display: none;
    }
    
    .header-text-full {
        display: inline;
    }

    .header-info {
        display: none;
    }

    .header.open .header-info {
        display: none;
    }

    .header-button {
        display: none;
    }
}

/* Page */
.page {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

@media screen and (min-width: 768px) {
    .page {
        grid-column: 2;
        grid-row: 1/4;
    }
}

/* 
    Projects 
*/

.projects {
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.project{
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: 1fr auto auto;
    gap: 0.5rem;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: 200ms;
    opacity: 0;
    padding-top: 2rem;
}

.project.active {
    display: grid;
    grid-template-columns: 1fr auto;
    opacity: 1;
    transition: 300ms 200ms;
    z-index: 1;
}

.project-cover {
    position: relative;
    grid-column: 1/-1;
    align-self: center;
    max-height: 70svh;
}

.project-cover figcaption {
    font-size: 9.5px;
    line-height: 1.5em;
    text-align: right;
    position: absolute;
    top: calc(100% + 0.25rem);
    right: 0;
}

.project-category {
    grid-column: 1;
    grid-row: 2;
    font-size: 9.5px;
    line-height: 1.5em;
    text-wrap: balance;
}

.project-title {
    font-size: 13px;
}

.project-info {
    grid-column: 2;
    grid-row: 2;
    font-size: 9.5px;
    line-height: 1.5em;
    text-align: right;
}

.project-description {
    grid-column: 1/-1;
    font-size: 13px;
    text-wrap: balance;
}

/* Tablet Small (>560px) */
@media screen and (min-width: 560px) {
    .project-cover {
        margin: 0 2rem;
        cursor: e-resize
    }
}

@media screen and (min-width: 768px) {
    .project {
        height: calc(100svh - 1rem);
        gap: 0.25rem;
        display: grid;
        grid-template-columns: repeat(8, 1fr);
        grid-template-rows: auto auto 1fr auto;
        padding: 0;
    }

    .project.active {
        display: grid;
        grid-template-columns: repeat(8, 1fr);
        grid-template-rows: auto auto 1fr auto;
    }

    .project-cover {
        grid-column: 1/-1;
        width: 100%;
        max-height: calc(100svh - 10rem);
        aspect-ratio: 3/2;
        margin: 0;
    }

    .project-cover figure,
    .project-cover picture,
    .project-cover img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: var(--focus, 50% 50%);
        max-height: calc(100svh - 10rem);
    }

    .project-cover figcaption {
        font-size: 13px;
    }

    .project-cover-title {
        display: none;
    }

    .project-category {
        grid-column: 1/4;
        grid-row: 2;
        font-size: 13px;
    }

    .project-title {
        grid-column: 1/-1;
        grid-row: 3;
        font-size: 13px;
        align-self: center;
    }

    .project-description {
        grid-column: 1/-3;
        grid-row: 4;
        font-size: 13px;
        line-height: 1.15em;
    }

    .project-info {
        grid-column: -3/-1;
        grid-row: 4;
        text-align: right;
        font-size: 13px;
        line-height: 1.15em;
    }
}



/* 
    Footer 
*/
.footer {
    display: none;
    grid-row: 3;
}

.footer-contacts {
    margin-bottom: 1rem;
}

.footer-emails-email:not(:last-child) {
    margin-bottom: 1rem;
}

@media screen and (min-width: 768px) {
    .footer {
        display: block;
    }
}


.cursor {
    position: fixed;
    opacity: 0;
}