/* ========================================
   PROJECT OVERVIEW PAGE
======================================== */

.projects-page {
    width: 100%;
    max-width: none;
    margin: 0;

    background: #fff;
    overflow: hidden;
}


/* ========================================
   HERO
======================================== */

.projects-hero {
    position: relative;

    width: 100%;
    max-width: none;

    min-height: 55vh;

    box-sizing: border-box;

    padding:
        130px
        max(6vw, 30px)
        90px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    border-bottom: 1px solid #d8d8d8;
}


/* Number */

.projects-index {
    position: absolute;

    top: 80px;
    right: max(6vw, 30px);

    margin: 0;

    font-size: 13px;
    line-height: 1;

    letter-spacing: .15em;
}


/* PROJECT */

.projects-hero h1 {
    margin: 0;

    font-size: clamp(64px, 9vw, 135px);
    line-height: .85;

    font-weight: 700;
    letter-spacing: -.06em;
}


/* Japanese subtitle */

.projects-jp {
    margin: 20px 0 0;

    font-size: 16px;
    line-height: 1.5;

    letter-spacing: .15em;
}


/* Intro */

.projects-intro {
    max-width: 650px;

    margin: 55px 0 0;

    font-size: clamp(20px, 2.5vw, 32px);
    line-height: 1.45;

    letter-spacing: -.02em;
}


/* ========================================
   PROJECT LIST SECTION
======================================== */

.projects-list {
    width: 100%;
    max-width: none;

    box-sizing: border-box;

    padding:
        120px
        max(6vw, 30px)
        140px;
}


/* ========================================
   SECTION HEADING
======================================== */

.projects-heading {
    margin-bottom: 70px;
}


/* 01 */

.projects-heading > p:first-child {
    margin: 0 0 10px;

    font-size: 12px;
    line-height: 1;

    letter-spacing: .15em;
}


/* PROJECTS */

.projects-heading h2 {
    margin: 0;

    font-size: clamp(42px, 6vw, 80px);
    line-height: 1;

    font-weight: 500;
    letter-spacing: -.045em;
}


/* Japanese */

.projects-heading h2 + p {
    margin: 14px 0 0;

    font-size: 14px;
    line-height: 1.5;

    letter-spacing: .1em;
}


/* ========================================
   PROJECT ROW
======================================== */

.project-row {
    /*
     * IMPORTANT:
     * This is the positioning parent for the invisible
     * full-row link created further below.
     */
    position: relative;

    display: grid;

    grid-template-columns:
        80px
        minmax(0, 1fr)
        minmax(170px, 230px);

    gap: 35px;

    align-items: center;

    box-sizing: border-box;

    padding: 55px 0;

    border-top: 1px solid #d8d8d8;

    cursor: pointer;

    transition:
        padding-left .25s ease,
        padding-right .25s ease,
        background-color .25s ease;
}


.project-row:last-child {
    border-bottom: 1px solid #d8d8d8;
}


/* Row hover */

.project-row:hover {
    padding-left: 15px;
    padding-right: 15px;

    background-color: #f7f7f7;
}


/* ========================================
   PROJECT NUMBER
======================================== */

.project-number {
    align-self: start;

    margin: 4px 0 0;

    font-size: 12px;
    line-height: 1;

    letter-spacing: .15em;
}


/* ========================================
   PROJECT MAIN INFO
======================================== */

.project-main {
    min-width: 0;
}


.project-main h3 {
    margin: 0;

    font-size: clamp(34px, 4.5vw, 64px);
    line-height: 1.05;

    font-weight: 500;
    letter-spacing: -.04em;
}


.project-main p {
    max-width: 650px;

    margin: 18px 0 0;

    font-size: 15px;
    line-height: 1.7;

    color: #666;
}


/* ========================================
   PROJECT ACTION
======================================== */

.project-action {
    /*
     * Keep this static.
     * If this becomes position:relative,
     * the full-row link overlay will shrink to this area.
     */
    position: static;

    align-self: stretch;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    text-align: right;
}


/* Status */

.project-action > p:first-child {
    margin: 0;

    font-size: 10px;
    line-height: 1;

    font-weight: 600;
    letter-spacing: .12em;
}


/* View project paragraph */

.project-action > p:last-child {
    margin: 30px 0 0;
}


/* Actual link */

.project-action a {
    /*
     * IMPORTANT:
     * Leave this link position:static so its ::before
     * uses .project-row as the positioning parent.
     */
    position: static;

    color: inherit;
    text-decoration: none;

    font-size: 12px;
    line-height: 1.4;

    font-weight: 600;
    letter-spacing: .1em;

    white-space: nowrap;

    transition: opacity .2s ease;
}


/*
 * FULL ROW CLICKABLE AREA
 *
 * This pseudo-element is part of the <a>,
 * but fills the entire .project-row.
 */

.project-action a::before {
    content: "";

    position: absolute;
    inset: 0;

    z-index: 10;
}


/* Visible link response */

.project-row:hover .project-action a {
    opacity: .45;
}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 781px) {

    /* HERO */

    .projects-hero {
        min-height: 520px;

        padding:
            110px
            max(6vw, 24px)
            70px;
    }


    .projects-index {
        top: 50px;
        right: max(6vw, 24px);
    }


    .projects-intro {
        margin-top: 45px;
    }


    /* PROJECT LIST */

    .projects-list {
        padding:
            85px
            max(6vw, 24px)
            100px;
    }


    .projects-heading {
        margin-bottom: 50px;
    }


    /* ROW */

    .project-row {
        grid-template-columns:
            40px
            minmax(0, 1fr);

        gap: 15px 20px;

        padding: 32px 0;
    }


    /*
     * Don't shift the row sideways on touch/mobile.
     */

    .project-row:hover {
        padding-left: 0;
        padding-right: 0;

        background-color: transparent;
    }


    /* NUMBER */

    .project-number {
        margin-top: 4px;
    }


    /* TITLE */

    .project-main h3 {
        font-size: clamp(30px, 9vw, 46px);
    }


    .project-main p {
        margin-top: 14px;

        font-size: 14px;
    }


    /* ACTION */

    .project-action {
        grid-column: 2;

        display: flex;
        flex-direction: row;

        align-items: center;
        justify-content: space-between;

        gap: 20px;

        margin-top: 12px;

        text-align: left;
    }


    .project-action > p:last-child {
        margin: 0;
    }

}