/* CSS Document */

/* ==========================================================
   MOOSTER GROUP
   OUR WORK / PORTFOLIO

   File: /assets/css/work.css
   ========================================================== */


/* ==========================================================
   01. PORTFOLIO HERO
   ========================================================== */

.work-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 100svh;
    overflow: hidden;
    isolation: isolate;
    background: var(--color-black);
    color: var(--color-white);
}

.work-hero__background {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.work-hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.035) 1px,
            transparent 1px
        );
    background-size: 90px 90px;
}

.work-hero__circle {
    position: absolute;
    width: min(65vw, 900px);
    aspect-ratio: 1;
    top: -35%;
    right: -15%;
    border: 1px solid rgba(255, 107, 0, 0.25);
    border-radius: 50%;
    box-shadow:
        0 0 0 85px rgba(255, 107, 0, 0.025),
        0 0 0 170px rgba(255, 107, 0, 0.015);
}

.work-hero__glow {
    position: absolute;
    width: 800px;
    height: 800px;
    right: -250px;
    bottom: -400px;
    background: radial-gradient(
        circle,
        rgba(255, 107, 0, 0.12),
        transparent 65%
    );
    filter: blur(45px);
}

.work-hero > .container {
    position: relative;
    z-index: 1;
    width: 100%;
    padding-top: clamp(170px, 20vh, 250px);
    padding-bottom: clamp(140px, 16vh, 200px);
}

.work-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.17em;
}

.work-hero__eyebrow-line {
    width: 35px;
    height: 2px;
    background: var(--color-orange);
}

.work-hero__title {
    margin-top: clamp(40px, 6vw, 85px);
    font-size: clamp(3.5rem, 8.5vw, 10rem);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.08em;
}

.work-hero__title > span:not(.text-orange) {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--color-white);
}

.work-hero__bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 55px;
    max-width: 1150px;
    margin-top: clamp(65px, 8vw, 115px);
}

.work-hero__description {
    max-width: 580px;
    color: rgba(255, 255, 255, 0.75);
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    line-height: 1.75;
}

.work-hero__bottom-label {
    position: absolute;
    right: var(--page-gutter);
    bottom: 35px;
    left: var(--page-gutter);
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.12em;
}


/* ==========================================================
   02. PORTFOLIO INTRODUCTION
   ========================================================== */

.work-intro__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.work-intro__index {
    color: var(--color-dark-grey);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.work-intro__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: end;
    gap: clamp(50px, 7vw, 130px);
    margin-top: clamp(80px, 10vw, 150px);
}

.work-intro__heading {
    font-size: clamp(3.5rem, 7.5vw, 9rem);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.08em;
}

.work-intro__content {
    max-width: 500px;
}

.work-intro__lead {
    margin-bottom: 30px;
    font-size: clamp(1.4rem, 2.2vw, 2.4rem);
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: -0.035em;
}

.work-intro__content > p:not(.work-intro__lead) {
    margin-top: 20px;
    color: var(--color-dark-grey);
    font-size: clamp(1rem, 1.2vw, 1.1rem);
    line-height: 1.8;
}


/* ==========================================================
   03. PORTFOLIO SECTION
   ========================================================== */

.work-projects {
    scroll-margin-top: 90px;
}

.work-projects__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: clamp(65px, 8vw, 120px);
}

.work-projects__header h2 {
    margin-top: 35px;
    font-size: clamp(3.5rem, 7.5vw, 9rem);
    line-height: 0.98;
    letter-spacing: -0.08em;
}

.work-projects__header > p {
    max-width: 350px;
    padding-bottom: 10px;
    color: var(--color-dark-grey);
    font-size: clamp(1rem, 1.2vw, 1.1rem);
    line-height: 1.75;
}


/* ==========================================================
   04. PORTFOLIO FILTERS
   ========================================================== */

.work-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: clamp(45px, 6vw, 90px);
    padding-bottom: 30px;
    border-bottom: 1px solid var(--color-border);
}

.work-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 20px;
    border: 1px solid rgba(16, 16, 16, 0.15);
    border-radius: 100px;
    background: transparent;
    color: var(--color-black);
    font-family: inherit;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition:
        background var(--transition-fast),
        border-color var(--transition-fast),
        color var(--transition-fast),
        transform var(--transition-fast);
}

.work-filter:hover {
    border-color: var(--color-black);
    transform: translateY(-2px);
}

.work-filter.is-active,
.work-filter[aria-pressed="true"] {
    border-color: var(--color-black);
    background: var(--color-black);
    color: var(--color-white);
}

.work-filter:focus-visible {
    outline: 2px solid var(--color-orange);
    outline-offset: 4px;
}


/* ==========================================================
   05. ASYMMETRIC PROJECT GRID
   ========================================================== */

.work-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
    gap: clamp(50px, 6vw, 95px) clamp(20px, 3vw, 50px);
}

.work-card {
    grid-column: span 5;
    min-width: 0;
}

.work-card--large {
    grid-column: span 7;
}

/*
   Creates a more editorial arrangement while allowing
   filtered cards to reflow naturally.
*/

.work-card[hidden] {
    display: none !important;
}


/* ==========================================================
   06. PROJECT IMAGE CONTAINERS
   ========================================================== */

.work-card__image {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
    aspect-ratio: 4 / 4.2;
    overflow: hidden;
    isolation: isolate;
}

.work-card--large .work-card__image {
    aspect-ratio: 4 / 3.4;
}

.work-card__image::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    border: 1px solid rgba(16, 16, 16, 0.05);
    pointer-events: none;
}

.work-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 800ms var(--ease-standard);
}

.work-card:hover .work-card__image img {
    transform: scale(1.055);
}


/* ==========================================================
   07. TEMPORARY PROJECT PLACEHOLDERS
   ========================================================== */

.work-card__placeholder {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    padding: clamp(25px, 3vw, 50px);
    overflow: hidden;
}

.work-card__placeholder-number,
.work-card__placeholder-label {
    position: relative;
    z-index: 2;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.work-card__placeholder-word {
    position: relative;
    z-index: 1;
    align-self: center;
    max-width: 100%;
    font-size: clamp(3.5rem, 6.5vw, 8rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.11em;
    white-space: nowrap;
    transition: transform 700ms var(--ease-standard);
}

.work-card:hover .work-card__placeholder-word {
    transform: rotate(-6deg) scale(1.05);
}


/* SIGNAGE */

.work-card__image--signage {
    background: var(--color-black);
    color: var(--color-white);
}

.work-card__image--signage::before {
    content: '';
    position: absolute;
    width: 85%;
    aspect-ratio: 1;
    top: -15%;
    right: -35%;
    border: 2px solid rgba(255, 107, 0, 0.45);
    border-radius: 50%;
    box-shadow: 0 0 0 80px rgba(255, 107, 0, 0.04);
}

.work-card__image--signage .work-card__placeholder-word {
    color: var(--color-orange);
}


/* DIGITAL */

.work-card__image--digital {
    background: #dedfdb;
    color: var(--color-black);
}

.work-card__image--digital::before {
    content: '';
    position: absolute;
    inset: 18%;
    border: 10px solid var(--color-black);
    border-radius: 15px;
    transform: rotate(-10deg);
}

.work-card__image--digital .work-card__placeholder-word {
    color: var(--color-orange);
}


/* INSTALLATION */

.work-card__image--installation {
    background: #ff6b00;
    color: var(--color-black);
}

.work-card__image--installation::before {
    content: '';
    position: absolute;
    width: 120%;
    height: 35%;
    top: 35%;
    left: -10%;
    background: rgba(16, 16, 16, 0.12);
    transform: rotate(-25deg);
}

.work-card__image--installation .work-card__placeholder-word {
    color: var(--color-black);
}


/* BRANDING */

.work-card__image--branding {
    background: #e5e3dd;
    color: var(--color-black);
}

.work-card__image--branding::before,
.work-card__image--branding::after {
    content: '';
    position: absolute;
    width: 55%;
    height: 65%;
    top: 17%;
    left: 20%;
    background: #faf9f5;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.1);
    transform: rotate(-13deg);
}

.work-card__image--branding::after {
    background: var(--color-orange);
    transform: rotate(12deg) translate(15%, 3%);
    opacity: 0.85;
}

.work-card__image--branding .work-card__placeholder-word {
    color: var(--color-black);
}


/* PRINT */

.work-card__image--print {
    background: #242424;
    color: var(--color-white);
}

.work-card__image--print::before {
    content: '';
    position: absolute;
    width: 70%;
    height: 75%;
    top: 12%;
    left: 15%;
    border: 25px solid rgba(255, 255, 255, 0.07);
    transform: rotate(-12deg);
}

.work-card__image--print .work-card__placeholder-word {
    color: var(--color-orange);
}


/* WEBSITE / CREATIVE */

.work-card__image--web {
    background: #ff6b00;
    color: var(--color-black);
}

.work-card__image--web::before {
    content: '';
    position: absolute;
    width: 75%;
    aspect-ratio: 1;
    top: 10%;
    left: -25%;
    border: 65px solid rgba(16, 16, 16, 0.13);
    border-radius: 50%;
}

.work-card__image--web .work-card__placeholder-word {
    color: var(--color-black);
}


/* ==========================================================
   08. PROJECT DETAILS
   ========================================================== */

.work-card__details {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 25px;
    padding-top: 25px;
}

.work-card__category {
    display: block;
    margin-bottom: 15px;
    color: var(--color-orange);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.work-card__details h3 {
    font-size: clamp(1.45rem, 2.2vw, 2.6rem);
    font-weight: 650;
    line-height: 1.15;
    letter-spacing: -0.05em;
}

.work-card__details p {
    margin-top: 12px;
    color: var(--color-dark-grey);
    font-size: 0.95rem;
    line-height: 1.65;
}

.work-card__arrow {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    font-size: 1.35rem;
    transition:
        background var(--transition-medium),
        border-color var(--transition-medium),
        color var(--transition-medium),
        transform var(--transition-medium);
}

.work-card:hover .work-card__arrow {
    border-color: var(--color-orange);
    background: var(--color-orange);
    color: var(--color-white);
    transform: rotate(45deg);
}


/* ==========================================================
   09. PORTFOLIO FOOTER
   ========================================================== */

.work-projects__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: clamp(90px, 10vw, 160px);
    padding-top: 30px;
    border-top: 1px solid var(--color-border);
}

.work-projects__footer p {
    color: var(--color-dark-grey);
    font-size: 0.95rem;
}

.work-projects__footer span {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}


/* ==========================================================
   10. PORTFOLIO STATEMENT
   ========================================================== */

.work-statement__content {
    max-width: 1050px;
}

.work-statement__content h2 {
    margin-top: 40px;
    font-size: clamp(3.5rem, 8vw, 10rem);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.08em;
}

.work-statement__content h2 > span:not(.text-orange) {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--color-white);
}

.work-statement__content > p {
    max-width: 660px;
    margin-top: 35px;
    color: var(--color-mid-grey);
    font-size: clamp(1rem, 1.4vw, 1.25rem);
    line-height: 1.8;
}

.work-statement__content > p:first-of-type {
    margin-top: 55px;
    color: var(--color-white);
    font-size: clamp(1.4rem, 2.2vw, 2.4rem);
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -0.035em;
}


/* ==========================================================
   11. PORTFOLIO CTA
   ========================================================== */

.work-cta__content {
    max-width: 1100px;
}

.work-cta__content h2 {
    margin-top: 40px;
    font-size: clamp(3.5rem, 9vw, 11rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.085em;
}

.work-cta__content > p {
    max-width: 580px;
    margin-top: 45px;
    color: var(--color-dark-grey);
    font-size: clamp(1.05rem, 1.5vw, 1.3rem);
    line-height: 1.75;
}

.work-cta__content .button {
    margin-top: 45px;
}


/* ==========================================================
   12. TABLET
   ========================================================== */

@media (max-width: 1100px) {

    .work-hero__bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 35px;
    }

    .work-intro__layout {
        gap: 55px;
    }

    .work-grid {
        gap: 65px 25px;
    }

    .work-card__placeholder-word {
        font-size: clamp(3.5rem, 7vw, 6rem);
    }

}


/* ==========================================================
   13. MOBILE
   ========================================================== */

@media (max-width: 767px) {

    .work-hero > .container {
        padding-top: 155px;
        padding-bottom: 125px;
    }

    .work-hero__title {
        font-size: clamp(2.8rem, 10vw, 5.5rem);
    }

    .work-hero__circle {
        width: 550px;
        right: -100%;
        top: 10%;
    }

    .work-hero__bottom {
        margin-top: 55px;
    }

    .work-hero__bottom-label {
        bottom: 25px;
        font-size: 0.55rem;
    }

    .work-intro__index {
        display: none;
    }

    .work-intro__layout {
        grid-template-columns: 1fr;
        gap: 45px;
        margin-top: 70px;
    }

    .work-intro__heading {
        font-size: clamp(3.2rem, 10vw, 6rem);
    }

    .work-projects__header {
        align-items: flex-start;
        flex-direction: column;
        gap: 25px;
    }

    .work-projects__header h2 {
        font-size: clamp(3.2rem, 10vw, 6rem);
    }

    .work-filters {
        gap: 8px;
        padding-bottom: 25px;
    }

    .work-filter {
        padding: 12px 15px;
        font-size: 0.65rem;
    }

    .work-grid {
        grid-template-columns: 1fr;
        gap: 65px;
    }

    .work-card,
    .work-card--large {
        grid-column: 1 / -1;
    }

    .work-card__image,
    .work-card--large .work-card__image {
        aspect-ratio: 4 / 3.5;
    }

    .work-card__placeholder-word {
        font-size: clamp(4rem, 13vw, 7rem);
    }

    .work-card__details h3 {
        font-size: clamp(1.6rem, 5vw, 2.4rem);
    }

    .work-projects__footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .work-statement__content h2 {
        font-size: clamp(3.2rem, 10vw, 6rem);
    }

    .work-cta__content h2 {
        font-size: clamp(3.2rem, 10vw, 6rem);
    }

}


/* ==========================================================
   14. SMALL MOBILE
   ========================================================== */

@media (max-width: 380px) {

    .work-hero__title {
        font-size: 9.5vw;
    }

    .work-card__placeholder-word {
        font-size: 12vw;
    }

    .work-card__arrow {
        width: 42px;
        height: 42px;
    }

}


/* ==========================================================
   15. REDUCED MOTION
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

    .work-card__image img,
    .work-card__placeholder-word,
    .work-card__arrow,
    .work-filter {
        transition: none;
    }

}