/* =========================
   WORK PAGE
========================= */

.work-page {
    background: #ffffff;
    color: #050505;
    overflow-x: hidden;
}

.work-page * {
    box-sizing: border-box;
    border-radius: 15px;

}

.work-wrap,
.work-project-wrap {
    width: min(1320px, calc(100% - 80px));
    margin: 0 auto;
    position: relative;
}

/* =========================
   HERO
========================= */

.work-hero {
    position: relative;
    padding: 155px 0 88px;
    background: #ffffff;
    overflow: hidden;
}

.work-hero::after {
    content: "";
    position: absolute;
    right: 9%;
    top: 18%;

    width: 380px;
    height: 380px;
    border-radius: 50%;

    background: radial-gradient(circle, rgba(20, 226, 122, 0.14), transparent 62%);
    filter: blur(24px);
    pointer-events: none;
}

.work-eyebrow {
    position: relative;
    z-index: 2;

    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 22px;

    color: #14e27a;

    font-size: 11px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.work-eyebrow::before {
    content: "";
    width: 24px;
    height: 1px;
    background: #14e27a;
}

.work-hero h1 {
    position: relative;
    z-index: 2;

    margin: 0;
    max-width: 920px;

    font-size: clamp(46px, 5vw, 60px);
    line-height: .94;
    letter-spacing: -2.4px;
    font-weight: 500;

    color: #050505;
}

.work-hero p {
    position: relative;
    z-index: 2;

    margin: 28px 0 0;
    max-width: 680px;

    font-size: 17px;
    line-height: 1.6;
    /* letter-spacing: -0.25px; */
    font-weight: 400;

    color: rgba(0, 0, 0, .64);
}

/* =========================
   PROJECTS
========================= */

.work-projects {
    padding: 0 0 130px;
    background: #ffffff;

}

.work-project-wrap {
    display: grid;
    gap: 80px;

}

/* =========================
   PROJECT CARD
========================= */

.work-project-card {
    width: 100%;

    display: grid;
    grid-template-columns: .45fr 1fr;
    gap: 70px;
    align-items: flex-start;

    color: #050505;
    text-decoration: none;

    border: none;
    outline: none;

}

.work-project-info {
    position: sticky;
    top: 130px;
    align-self: flex-start;
    z-index: 2;

    padding-top: 8px;

    border: none;
    outline: none;
}

.work-project-no {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 18px;

    color: #14e27a;

    font-size: 11px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 2px;
}

.work-project-no::before {
    content: "";
    width: 22px;
    height: 1px;
    background: #14e27a;
}

.work-project-card h2 {
    margin: 0 0 20px;
    max-width: 420px;

    font-size: clamp(38px, 3.2vw, 56px);
    line-height: .95;
    letter-spacing: -1px;
    font-weight: 500;

    color: #050505;
}

.work-project-card p {
    margin: 0;
    max-width: 420px;

    font-size: 16px;
    line-height: 1.65;
    /* letter-spacing: -0.15px; */
    font-weight: 400;

    color: rgba(0, 0, 0, .62);
}

/* =========================
   IMAGE CARD
========================= */

.work-project-media {
    position: relative;

    width: 100%;
    height: 560px;

    overflow: hidden;
    background: #111;

    cursor: none;

    transform: translateZ(0);
    box-shadow: 0 28px 90px rgba(0, 0, 0, .09);
}

.work-project-media img {
    width: 100%;
    height: 100%;

    display: block;
    object-fit: cover;

    transition:
        transform .9s cubic-bezier(.22, 1, .36, 1),
        filter .55s ease;
}

.work-project-media::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;

    background: rgba(0, 0, 0, .28);
    opacity: 0;
    pointer-events: none;

    transition: opacity .35s ease;
}

.work-project-card:hover .work-project-media img {
    transform: scale(1.055);
    filter: brightness(.78);
}

.work-project-card:hover .work-project-media::after {
    opacity: 1;
}

/* =========================
   IMAGE TAGS
========================= */

.work-project-tags {
    position: absolute;
    left: 28px;
    top: 28px;
    z-index: 5;

    display: flex;
    flex-direction: column;
    gap: 10px;

    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);

    transition:
        opacity .35s ease,
        visibility .35s ease,
        transform .45s cubic-bezier(.22, 1, .36, 1);
}

.work-project-tags span {
    width: fit-content;
    min-height: 36px;
    padding: 0 18px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 999px;

    background: #ffffff;
    color: #050505;

    font-size: 14px;
    line-height: 1;
    font-weight: 300;

    box-shadow: 0 10px 28px rgba(0, 0, 0, .08);

    opacity: 0;
    transform: translateX(-14px);

    transition:
        opacity .35s ease,
        transform .45s cubic-bezier(.22, 1, .36, 1);
}

.work-project-card:hover .work-project-tags {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.work-project-card:hover .work-project-tags span {
    opacity: 1;
    transform: translateX(0);
}

.work-project-card:hover .work-project-tags span:nth-child(1) {
    transition-delay: .04s;
}

.work-project-card:hover .work-project-tags span:nth-child(2) {
    transition-delay: .09s;
}

.work-project-card:hover .work-project-tags span:nth-child(3) {
    transition-delay: .14s;
}


.work-hover-view {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 6;

    width: 80px;
    height: 80px;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #000000;
    color: #ffffff;

    font-size: 15px;
    line-height: 1;
    font-weight: 500;
    font-style: italic;

    pointer-events: none;

    opacity: 0;
    visibility: hidden;

    transform: translate(-50%, -50%) scale(.78);
    transform-origin: center;

    will-change: left, top, transform, opacity;

    transition: none !important;
}

/* =========================
   TABLET
========================= */

@media (max-width: 1100px) {

    .work-wrap,
    .work-project-wrap {
        width: calc(100% - 56px);
    }

    .work-hero {
        padding: 145px 0 72px;
    }

    .work-project-wrap {
        gap: 80px;
    }

    .work-project-card {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .work-project-info {
        position: relative;
        top: auto;
        padding-top: 0;
    }

    .work-project-media {
        height: 470px;
        cursor: pointer;
    }

    .work-project-tags {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .work-project-tags span {
        opacity: 1;
        transform: none;
    }

    .work-hover-view {
        opacity: 0;
        visibility: hidden;
    }

}

/* =========================
   MOBILE
========================= */

@media (max-width: 767px) {

    .work-wrap,
    .work-project-wrap {
        width: calc(100% - 32px);
    }

    .work-hero {
        padding: 122px 0 54px;
    }

    .work-hero::after {
        right: -130px;
        top: 14%;

        width: 280px;
        height: 280px;
        opacity: .65;
    }

    .work-eyebrow {
        margin-bottom: 18px;

        font-size: 10px;
        letter-spacing: 2px;
    }

    .work-eyebrow::before {
        width: 20px;
    }

    .work-hero h1 {
        font-size: 36px;
        line-height: .98;
        letter-spacing: -1.6px;
    }

    .work-hero p {
        margin-top: 20px;

        font-size: 15.5px;
        line-height: 1.58;
    }

    .work-projects {
        padding-bottom: 84px;
    }

    .work-project-wrap {
        gap: 76px;
    }

    .work-project-card {
        gap: 24px;
    }

    .work-project-no {
        margin-bottom: 14px;
        font-size: 10px;
    }

    .work-project-card h2 {
        margin-bottom: 16px;
        max-width: 100%;

        font-size: 34px;
        line-height: .98;
        letter-spacing: -1px;
    }

    .work-project-card p {
        max-width: 100%;

        font-size: 15px;
        line-height: 1.6;
    }

    .work-project-media {
        height: 330px;
    }

    .work-project-tags {
        left: 16px;
        top: 16px;
        gap: 7px;
    }

    .work-project-tags span {
        min-height: 30px;
        padding: 0 13px;

        font-size: 12px;
    }

    .work-hover-view {
        width: 82px;
        height: 82px;

        font-size: 15px;
    }

}

/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 420px) {

    .work-hero h1 {
        font-size: 32px;
    }

    .work-project-card h2 {
        font-size: 30px;
    }

    .work-project-media {
        height: 315px;
    }

}




/* =========================
   mobile image upload
========================= */



.work-project-picture {
    display: block;
    width: 100%;
    height: 100%;
}

.work-project-picture img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}




/* =========================
   FINAL WORK WHITE LAYOUT + SCROLL ANIMATION
========================= */

.work-page {
    background: #f5f5f2 !important;
    color: #050505 !important;
}

.work-wrap,
.work-project-wrap {
    width: min(1320px, calc(100% - 80px)) !important;
    margin: 0 auto !important;
}

.work-project-wrap {
    gap: 80px !important;
}

/* same div layout */
.work-project-card {
    width: 100% !important;
    min-height: auto !important;

    display: grid !important;
    grid-template-columns: 0.45fr 1fr !important;
    gap: 70px !important;
    align-items: flex-start !important;

    color: #050505 !important;
    text-decoration: none !important;
    background: transparent !important;
}

/* left text stays sticky while right image scrolls */
.work-project-info {
    position: sticky !important;
    top: 130px !important;
    align-self: flex-start !important;
    padding-top: 8px !important;
}

.work-project-card h2 {
    max-width: 420px !important;
    font-size: clamp(38px, 3.2vw, 34px) !important;
    line-height: .95 !important;
    /* letter-spacing: -1.5px !important; */
    font-weight: 500 !important;
}

.work-project-card p {
    max-width: 420px !important;
    color: rgba(0, 0, 0, .62) !important;
}

/* image div */
.work-project-media {
    position: relative !important;
    width: 100% !important;
    height: 560px !important;
    overflow: hidden !important;
    background: #111 !important;
    /* border-radius: 0 !important; */
    cursor: none !important;
    box-shadow: 0 28px 90px rgba(0, 0, 0, .09) !important;
}

.work-project-media img {
    width: 100% !important;
    height: 118% !important;
    display: block !important;
    object-fit: cover !important;
    transform: scale(1.08);
    will-change: transform;
}

/* hover dark overlay */
.work-project-media::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;

    background: rgba(0, 0, 0, .30);
    opacity: 0;
    pointer-events: none;

    transition: opacity .35s ease;
}

.work-project-card:hover .work-project-media::after {
    opacity: 1;
}

/* hover tags only */
.work-project-tags {
    position: absolute;
    left: 28px;
    top: 28px;
    z-index: 5;

    display: flex;
    flex-direction: column;
    gap: 10px;

    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);

    transition:
        opacity .35s ease,
        visibility .35s ease,
        transform .45s cubic-bezier(.22, 1, .36, 1);
}

.work-project-tags span {
    width: fit-content;
    min-height: 36px;
    padding: 0 18px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 999px;
    background: #fff;
    color: #050505;

    font-size: 14px;
    line-height: 1;
    font-weight: 700;

    opacity: 0;
    transform: translateX(-16px);

    transition:
        opacity .35s ease,
        transform .45s cubic-bezier(.22, 1, .36, 1);
}

.work-project-card:hover .work-project-tags {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.work-project-card:hover .work-project-tags span {
    opacity: 1;
    transform: translateX(0);
}

.work-project-card:hover .work-project-tags span:nth-child(1) {
    transition-delay: .04s;
}

.work-project-card:hover .work-project-tags span:nth-child(2) {
    transition-delay: .09s;
}

.work-project-card:hover .work-project-tags span:nth-child(3) {
    transition-delay: .14s;
}

/* view circle mouse follow */
.work-hover-view {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 6;

    width: 80px;
    height: 80px;
    border-radius: 50%;

    background: #000000;
    color: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 15px;
    line-height: 1;
    font-weight: 500;
    font-style: italic;

    pointer-events: none;

    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -50%) scale(.72);
}

/* tablet */
@media (max-width: 1100px) {

    .work-wrap,
    .work-project-wrap {
        width: calc(100% - 56px) !important;
    }

    .work-project-card {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }

    .work-project-info {
        position: relative !important;
        top: auto !important;
    }

    .work-project-media {
        height: 470px !important;
        cursor: pointer !important;
    }

    .work-project-tags {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .work-project-tags span {
        opacity: 1;
        transform: none;
    }

    .work-hover-view {
        display: none;
    }
}

/* mobile */
@media (max-width: 767px) {

    .work-wrap,
    .work-project-wrap {
        width: calc(100% - 32px) !important;
    }

    .work-project-media {
        height: 330px !important;
    }
}



/* =========================
   WORK DETAIL TRANSITION
========================= */

.page-expand-transition {
    position: fixed;
    inset: 0;
    z-index: 999999;
    pointer-events: none;
}

.page-expand-img {
    position: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #111;
    border-radius: 24px;
    overflow: hidden;
    will-change: top, left, width, height, opacity, border-radius;
    transform: translateZ(0);
    backface-visibility: hidden;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .16);
}

.transition-lock,
body.transition-lock {
    overflow: hidden !important;
}


/* =========================
   WORK TRANSITION - NO BLINK
========================= */

.work-page-transition {
    position: fixed;
    inset: 0;
    z-index: 999999;
    pointer-events: none;
    background: transparent;
}

.work-page-transition-img {
    position: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #111;

    border-radius: 15px;
    overflow: hidden;

    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: top, left, width, height, border-radius;
}

.transition-lock,
body.transition-lock {
    overflow: hidden !important;
}


/* =========================
   WORK PAGE TRANSITION
========================= */

.work-page-transition {
    position: fixed;
    inset: 0;
    z-index: 999999;
    pointer-events: none;
    background: transparent;
}

.work-page-transition-img {
    position: fixed;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #111;

    border-radius: 15px;
    overflow: hidden;

    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: top, left, width, height, border-radius;

    box-shadow: 0 30px 90px rgba(0, 0, 0, .16);
}

.transition-lock,
body.transition-lock {
    overflow: hidden !important;
}






/* =========================
   ONLY KAISER WORK CARD FIX
========================= */

@media (min-width: 1101px) {

    .work-project-card--kaiser h2 {
        max-width: 520px !important;
        font-size: clamp(32px, 2.65vw, 46px) !important;
        line-height: .96 !important;
        letter-spacing: -1.6px !important;
    }

    .work-project-card--kaiser p {
        max-width: 440px !important;
    }
}