/* =========================================================
   TRACEHAUS
   PROJECTS PAGE
========================================================= */

#main-content {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    background-color: #0a0a0a;
}


/* =========================================================
   PAGE
========================================================= */

.page-projects {
    background: var(--black, #0a0a0a);
    color: var(--white, #f4f4f2);
    min-height: 100vh;
    overflow-x: hidden;
    margin: 0;
}


.page-projects{
    background-color: #f4f4f2;
}


/* =========================================================
   HEADER
========================================================= */

.page-projects .site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;

    z-index: 1000;

    width: 100%;
    height: 52px;

    background: transparent;
    color: var(--white, #f4f4f2);

    display: flex;
    align-items: center;

    padding: 0 15px;
}

.page-projects .header-inner {
    width: 100%;
    max-width: 1920px;
    height: 100%;

    margin: 0 auto;

    display: flex;
    align-items: center;
    padding: 0 30px;
}

/* LOGO */

.page-projects .site-logo {
    display: flex;
    align-items: center;

    width: auto;
    height: 100%;
}

.page-projects .site-logo img {
    display: block;

    width: 105px;
    height: auto;

    max-width: none;
}


/* NAV */

.page-projects .site-navigation {
    height: 100%;

    display: flex;
    align-items: center;
    gap: 30px;
}

.page-projects .site-navigation a {
    position: relative;

    font-size: 7px;
    font-weight: 600;

    letter-spacing: .08em;

    line-height: 1;

    transition: opacity .3s ease;
}

.page-projects .site-navigation a:hover {
    opacity: .45;
}

.page-projects .site-navigation a.active::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;

    bottom: -10px;

    height: 1px;

    background: currentColor;
}


/* HEADER MARK */
/* =========================================================
   HEADER MARK / TOOLTIP
========================================================= */

.page-projects .header-mark {
    position: relative;

    width: 14px;
    height: 14px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-left: auto;

    background: transparent;

    cursor: pointer;
}


/* ICON */

.page-projects .header-mark > img {
    display: block;

    width: 14px;
    height: 14px;

    object-fit: contain;
}


/* =========================================================
   TOOLTIP
========================================================= */

.page-projects .header-mark-tooltip {
    position: absolute;

    top: calc(100% + 12px);
    right: 0;

    width: max-content;

    display: flex;
    flex-direction: column;

    gap: 3px;

    padding: 10px 12px;

    background: #f4f4f2;
    color: #0a0a0a;

    font-size: 7px;
    line-height: 1.15;

    letter-spacing: .04em;

    white-space: nowrap;

    opacity: 0;
    visibility: hidden;

    transform: translateY(-5px);

    transition:
        opacity .25s ease,
        transform .25s ease,
        visibility .25s ease;

    pointer-events: none;

    z-index: 100;
}


/* =========================================================
   TOOLTIP ARROW
========================================================= */

.page-projects .header-mark-tooltip::before {
    content: "";

    position: absolute;

    top: -4px;
    right: 3px;

    width: 8px;
    height: 8px;

    background: #f4f4f2;

    transform: rotate(45deg);
}


/* =========================================================
   HOVER
========================================================= */

.page-projects .header-mark:hover .header-mark-tooltip {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}
/* =========================================================
   HERO
========================================================= */

.projects-hero {
    position: relative;

    width: 100%;
    min-height: 390px;
    height: 390px;

    padding: 120px 5vw 45px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    border-bottom: 1px solid rgba(255, 255, 255, .16);
}


/* SECTION NUMBER */

.projects-hero-number {
    position: absolute;

    top: 92px;
    left: 5vw;

    display: flex;
    gap: 6px;

    font-size: 8px;
    font-weight: 500;

    letter-spacing: .08em;

    color: rgba(255, 255, 255, .45);
}

.projects-hero-number span:first-child {
    color: var(--accent, #f25c78);
}


/* HERO CONTENT */

.projects-hero-content {
    position: relative;

    width: 100%;
}


/* TITLE */

.projects-title {
    margin: 0;

    font-size: clamp(72px, 12vw, 190px);

    font-weight: 300;

    line-height: .78;

    letter-spacing: -.075em;

    white-space: nowrap;
}

.projects-title .accent-dot {
    color: var(--accent, #f25c78);
}


/* DESCRIPTION */

.projects-description {
    width: min(290px, 25vw);

    margin: 45px 0 0 2px;

    font-size: 11px;

    line-height: 1.5;

    letter-spacing: .01em;

    color: rgba(255, 255, 255, .58);
}


/* HERO META */

.projects-hero-meta {
    position: absolute;

    right: 13vw;
    bottom: 70px;

    display: flex;
    flex-direction: column;
    gap: 5px;

    font-size: 7px;

    line-height: 1;

    text-transform: uppercase;
}

.projects-meta-label {
    color: rgba(255, 255, 255, .4);
}

.projects-meta-year {
    color: rgba(255, 255, 255, .9);
}


/* =========================================================
   PROJECT NAVIGATION
========================================================= */

.projects-navigation {
    position: absolute;

    top: 50%;
    right: 4vw;

    transform: translateY(-50%);

    display: flex;
    align-items: flex-start;

    gap: 13px;
}

.projects-navigation-line {
    position: relative;

    width: 1px;
    height: 105px;

    background: rgba(255, 255, 255, .22);
}

.projects-counter {
    display: flex;
    flex-direction: column;

    gap: 12px;

    padding-top: 1px;
}

.projects-counter span {
    position: relative;

    font-size: 7px;

    color: rgba(255, 255, 255, .28);

    line-height: 1;

    transition:
        color .3s ease,
        transform .3s ease;
}

.projects-counter span.active {
    color: var(--accent, #f25c78);
}

.projects-counter span.active::before {
    content: "";

    position: absolute;

    width: 5px;
    height: 5px;

    left: -15px;
    top: -1px;

    border: 1px solid currentColor;

    border-radius: 50%;
}


/* =========================================================
   PROJECT LIST
========================================================= */

.projects-list {
    width: 100%;

    display: flex;
    flex-direction: column;

    gap: 6px;
    background-color: #f4f4f2;
    padding-top: 6px;
}

/* =========================================================
   PROJECT ITEM
========================================================= */

.project-item {
    --project-accent: #f25c78;

    position: relative;

    width: 100%;
    min-height: 250px;
    max-height: 450px;

    display: grid;
    grid-template-columns: 34% 66%;

    cursor: pointer;

    overflow: hidden;

    background: var(--black, #0a0a0a);

    transition: background .4s ease;
}

/* ALTERNATE */

.project-item:nth-child(even) {
    grid-template-columns: 66% 34%;
}


/* =========================================================
   PROJECT INFO
========================================================= */

.project-info {
    position: relative;
    z-index: 2;

    min-width: 0;

    background: var(--white, #f4f4f2);
    color: var(--black, #0a0a0a);

    padding: 38px 38px 32px;

    display: flex;
    flex-direction: column;

    transition:
        background .45s ease,
        color .45s ease;
}


/* EVEN PROJECT */

.project-item:nth-child(even) .project-info {
    order: 2;
}


/* PROJECT NUMBER */

.project-number {
    margin-bottom: 18px;

    color: var(--project-accent);

    font-size: 10px;
    font-weight: 600;

    letter-spacing: .1em;
}


/* TITLE */

.project-title {
    margin: 0;

    max-width: 90%;

    font-size: clamp(24px, 3vw, 48px);

    font-weight: 400;

    line-height: .9;

    letter-spacing: -.055em;

    text-transform: uppercase;
}


/* SUBTITLE */

.project-subtitle {
    margin-top: 9px;

    font-size: 7px;
    line-height: 1;

    letter-spacing: .08em;

    color: rgba(0, 0, 0, .45);
}


/* CATEGORIES */

.project-categories {
    margin-top: auto;

    display: flex;
    flex-direction: column;

    gap: 4px;

    font-size: 11px;    
    text-transform: uppercase;
    letter-spacing: 1.1px;

    line-height: 1.2;

    color: rgba(0, 0, 0, .52);
}

.project-categories span {
    display: block;
}


/* ARROW */

.project-arrow {
    position: absolute;

    right: 34px;
    bottom: 29px;

    font-size: 23px;
    font-weight: 200;

    line-height: 1;

    transition:
        transform .5s cubic-bezier(.16, 1, .3, 1),
        color .3s ease;
}


/* =========================================================
   PROJECT IMAGE
========================================================= */

.project-image {
    position: relative;

    width: 100%;
    height: 450px;
    min-width: 0;
    min-height: 250px;

    overflow: hidden;

    background: #151515;
}

.project-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transform: scale(1.001);

    transition:
        transform 1s cubic-bezier(.16, 1, .3, 1),
        filter .8s ease;
}


/* IMAGE OVERLAY */

.project-image::after {
    content: "";

    position: absolute;

    inset: 0;

    background: rgba(0, 0, 0, 0);

    pointer-events: none;

    transition: background .6s ease;
}


/* =========================================================
   PROJECT ACCENT
========================================================= */

.project-item::before {
    content: "";

    position: absolute;

    z-index: 10;

    top: 0;
    bottom: 0;

    width: 8px;

    background: var(--project-accent);
}


/* ODD */

.project-item:nth-child(odd)::before {
    left: 0;
}

/* EVEN */

.project-item:nth-child(even)::before {
    right: 0;
}


/* =========================================================
   HOVER
========================================================= */

.project-item:hover .project-image img {
    transform: scale(1.045);
}

.project-item:hover .project-image::after {
    background: rgba(0, 0, 0, .08);
}

.project-item:hover .project-arrow {
    transform: translateX(9px);

    color: var(--project-accent);
}


/* =========================================================
   PROJECT IMAGE LABEL
========================================================= */

.project-image-label {
    position: absolute;

    z-index: 3;

    top: 25px;
    right: 25px;

    padding: 7px 9px;

    border: 1px solid rgba(255, 255, 255, .45);

    color: white;

    font-size: 6px;

    letter-spacing: .08em;

    text-transform: uppercase;

    opacity: 0;

    transform: translateY(5px);

    transition:
        opacity .4s ease,
        transform .4s ease;
}

.project-item:hover .project-image-label {
    opacity: 1;

    transform: translateY(0);
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    width: 100%;

    background: #000;

    padding: 0 15px;

    min-height: 48px;

    display: flex;
    align-items: center;
}

.footer-inner {
    width: 100%;
    max-width: 1920px;

    margin: 0 auto;

    display: grid;
    grid-template-columns: 1fr 1fr 1fr;

    align-items: center;

    font-size: 6px;

    line-height: 1;

    letter-spacing: .05em;

    color: rgba(255, 255, 255, .42);

    text-transform: uppercase;
}

.footer-inner .footer-tagline{
    text-align: center;
}

.footer-inner .footer-location{
    text-align: right;
    font-size: 9px;
}

/* =========================================================
   LOADING STATE
========================================================= */

.projects-list.is-loading {
    min-height: 300px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.projects-list.is-loading::after {
    content: "LOADING PROJECTS";

    font-size: 7px;

    letter-spacing: .12em;

    color: rgba(255, 255, 255, .35);

    animation: projectLoading 1.2s ease-in-out infinite alternate;
}

@keyframes projectLoading {

    from {
        opacity: .25;
    }

    to {
        opacity: .8;
    }

}


/* =========================================================
   EMPTY STATE
========================================================= */

.projects-empty {
    min-height: 300px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 8px;

    letter-spacing: .08em;

    color: rgba(255, 255, 255, .4);
}


/* =========================================================
   RESPONSIVE — TABLET
========================================================= */

@media (max-width: 900px) {

    .projects-hero {
        min-height: 600px;

        padding-left: 6vw;
        padding-right: 6vw;
    }

    .projects-hero-number {
        left: 6vw;
    }

    .projects-title {
        font-size: clamp(64px, 13vw, 120px);
    }

    .projects-description {
        width: 250px;
    }

    .projects-hero-meta {
        right: 12vw;
    }

    .projects-navigation {
        right: 4vw;
    }


    .project-item,
    .project-item:nth-child(even) {
        grid-template-columns: 42% 58%;
        min-height: 420px;
    }

    .project-image {
        min-height: 420px;
    }

    .project-info {
        padding: 28px;
    }

}


/* =========================================================
   RESPONSIVE — MOBILE
========================================================= */

@media (max-width: 700px) {


    /* HEADER */

    .page-projects .site-header {
        top: 6px;
        left: 6px;
        right: 6px;

        height: 36px;

        padding: 0 11px;
    }

    .page-projects .header-inner {
        grid-template-columns: 1fr auto;
        padding: 0 10px;
    }

    .page-projects .site-navigation {
        display: none;
    }


    /* HERO */

    .projects-hero {
        min-height: 560px;

        padding:
            125px
            7vw
            60px;
    }

    .projects-hero-number {
        top: 82px;
        left: 7vw;
    }

    .projects-title {
        font-size: 18vw;

        line-height: .8;

        letter-spacing: -.075em;

        white-space: normal;
    }

    .projects-description {
        width: min(250px, 70vw);

        margin-top: 30px;

        font-size: 9px;
    }

    .projects-hero-meta {
        left: 7vw;
        right: auto;

        bottom: 35px;
    }

    .projects-navigation {
        top: auto;
        right: 7vw;
        bottom: 31px;

        transform: none;
    }

    .projects-navigation-line {
        height: 60px;
    }


    /* PROJECT */

    .project-item,
    .project-item:nth-child(even) {

        display: flex;

        flex-direction: column;

        min-height: auto;
    }


    .project-info,
    .project-item:nth-child(even) .project-info {

        order: 1;

        width: 100%;

        min-height: 245px;

        padding: 27px 25px 25px;
    }


    .project-image {

        order: 2;

        width: 100%;

        height: 62vw;

        min-height: 240px;
    }


    .project-title {

        font-size: clamp(27px, 9vw, 42px);

        max-width: 95%;
    }


    .project-arrow {

        right: 25px;
        bottom: 24px;
    }


    .project-item::before {

        left: 0 !important;
        right: auto !important;

        width: 3px;
    }


    /* FOOTER */

    .site-footer {
        padding: 20px 15px;
    }

    .footer-inner {

        display: flex;

        flex-direction: column;

        align-items: flex-start;

        gap: 10px;
    }

    .footer-tagline,
    .footer-location {
        text-align: left;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 420px) {

    .projects-hero {
        min-height: 520px;
    }

    .project-info {
        min-height: 220px !important;
    }

    .project-image {
        height: 68vw;
        min-height: 220px;
    }

}