/* =========================================================
   M+ LABS — WORK PAGE
   ========================================================= */

.work-page {
    background: var(--paper);
    color: var(--ink);
}

/* =========================================================
   WORK PAGE — DARK NAVIGATION
   ========================================================= */

.work-page .site-nav {
    color: #ffffff;
}

.work-page .logo {
    color: #ffffff;
}

.work-page .nav-links a,
.work-page .nav-login {
    color: #ffffff;
}

.work-page .nav-links a:hover,
.work-page .nav-login:hover {
    color: rgba(255, 255, 255, 0.7);
}

.work-page .menu-button {
    color: #ffffff;
}


/* =========================================================
   HERO
   ========================================================= */

.work-hero {
    padding: 150px clamp(24px, 7vw, 120px) 100px;
    background: var(--dark);
    color: #ffffff;
}

.work-hero-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.work-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.6fr);
    gap: 80px;
    align-items: end;
    margin-top: 60px;
}

.work-hero h1 {
    max-width: 900px;
    margin: 0;
    font-size: clamp(64px, 8vw, 130px);
    font-weight: 400;
    line-height: 0.92;
    letter-spacing: -0.065em;
}

.work-hero h1 em {
    color: var(--accent);
    font-family: Georgia, serif;
    font-style: italic;
    font-weight: 400;
}

.work-start-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    max-width: 360px;
    padding: 0 0 18px;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}


/* =========================================================
   PROJECTS
   ========================================================= */

.work-projects {
    background: var(--dark);
    color: #ffffff;
}

.work-project {
    padding: 90px clamp(24px, 7vw, 120px) 120px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    scroll-margin-top: 100px;
}

.work-project-info {
    max-width: 1400px;
    margin: 0 auto 45px;

    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 40px;
}

.work-project-number {
    color: #85877f;
    font-size: 13px;
    letter-spacing: 0.08em;
}

.work-project-info h2 {
    margin: 0;
    font-size: clamp(38px, 5vw, 68px);
    font-weight: 400;
    letter-spacing: -0.055em;
    line-height: 0.95;
}

.work-project-info p {
    margin: 16px 0 4px;
    color: #aaa;
    font-size: 15px;
}

.work-project-info span {
    color: #777;
    font-size: 13px;
}


/* =========================================================
   PROJECT PREVIEW
   ========================================================= */

.project-preview {
    max-width: 1400px;
    margin: 0 auto;
    min-height: 620px;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
}

.portfolio-preview {
    min-height: 0;
    background: #e9e6dc;
}

.portfolio-work-image {
    display: block;
    width: 100%;
    height: clamp(420px, 54vw, 760px);
    object-fit: cover;
}

.work-project-description {
    max-width: 1000px;
    margin: 26px auto 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    line-height: 1.8;
}

.portfolio-project-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0 0 max(0px, calc((100% - 1400px) / 2));
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
}

.portfolio-project-link span {
    font-size: 17px;
    transition: transform 180ms ease;
}

.portfolio-project-link:hover span {
    transform: translate(2px, -2px);
}

.work-empty-state {
    padding: 110px clamp(24px, 7vw, 120px);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
}

.work-empty-state h2 {
    max-width: 750px;
    margin: 34px auto 12px;
    font-family: "Manrope", sans-serif;
    font-size: clamp(32px, 5vw, 58px);
    font-weight: 400;
    letter-spacing: -0.05em;
}

.work-empty-state p {
    color: rgba(255, 255, 255, 0.64);
    font-size: 14px;
}


/* =========================================================
   NORTHSTAR
   ========================================================= */

.northstar-preview {
    background: #d1d1c0;
    color: #263128;
}

.browser-bar {
    height: 42px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 18px;
    background: #ebe8dc;
}

.browser-bar span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #aaa;
}

.northstar-content {
    position: relative;
    min-height: 578px;
    padding: 100px 8%;
    overflow: hidden;
}

.northstar-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
}

.northstar-content h3 {
    position: relative;
    z-index: 2;
    max-width: 650px;
    margin: 50px 0 35px;
    font-family: Georgia, serif;
    font-size: clamp(55px, 7vw, 100px);
    font-weight: 400;
    line-height: 0.9;
    letter-spacing: -0.05em;
}

.northstar-content button {
    position: relative;
    z-index: 2;
    padding: 13px 20px;
    background: transparent;
    border: 1px solid rgba(38, 49, 40, 0.45);
    border-radius: 30px;
    color: #263128;
}

.northstar-building {
    position: absolute;
    right: 7%;
    bottom: -50px;
    width: 38%;
    height: 75%;
    transform: rotate(-7deg);
    background:
        repeating-linear-gradient(
            90deg,
            #465247 0 28px,
            #9ba497 28px 42px
        );
    opacity: 0.9;
}

.northstar-building::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            0deg,
            transparent 0 35px,
            rgba(210, 216, 204, 0.8) 35px 47px
        );
}


/* =========================================================
   ATLAS
   ========================================================= */

.atlas-preview {
    display: flex;
    background: #dce5e1;
    padding: 55px;
}

.atlas-sidebar {
    width: 90px;
    flex-shrink: 0;
    padding: 20px;
    background: #12352e;
    border-radius: 20px 0 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.atlas-sidebar strong {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    background: var(--accent);
    border-radius: 8px;
    color: #17221e;
}

.atlas-sidebar i {
    width: 22px;
    height: 3px;
    background: rgba(255,255,255,0.25);
    border-radius: 4px;
}

.atlas-main {
    flex: 1;
    background: #f8f9f5;
    border-radius: 0 20px 20px 0;
    padding: 55px;
    color: #18231f;
}

.atlas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.atlas-header h3 {
    margin: 0;
    font-size: 35px;
    font-weight: 500;
}

.atlas-header span {
    padding: 10px 15px;
    border: 1px solid #d9ddd8;
    border-radius: 8px;
    color: #68716c;
    font-size: 11px;
}

.atlas-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 45px;
}

.atlas-stats div {
    padding: 25px;
    border: 1px solid #e0e3df;
    border-radius: 12px;
    background: #ffffff;
}

.atlas-stats small {
    display: block;
    margin-bottom: 12px;
    color: #7a817d;
}

.atlas-stats strong {
    font-size: 30px;
}

.atlas-chart {
    height: 220px;
    display: flex;
    align-items: end;
    justify-content: space-around;
    gap: 20px;
    margin-top: 45px;
    padding: 0 25px;
    border-bottom: 1px solid #dfe3df;
}

.atlas-chart span {
    width: 8%;
    min-height: 35px;
    background: var(--accent);
    border-radius: 6px 6px 0 0;
}

.atlas-chart span:nth-child(1) { height: 35%; }
.atlas-chart span:nth-child(2) { height: 48%; }
.atlas-chart span:nth-child(3) { height: 42%; }
.atlas-chart span:nth-child(4) { height: 67%; }
.atlas-chart span:nth-child(5) { height: 53%; }
.atlas-chart span:nth-child(6) { height: 76%; }
.atlas-chart span:nth-child(7) { height: 61%; }
.atlas-chart span:nth-child(8) { height: 88%; }


/* =========================================================
   SILA
   ========================================================= */

.sila-preview {
    display: grid;
    place-items: center;
    background: #ded8ce;
    padding: 70px;
}

.sila-window {
    width: min(700px, 90%);
    padding: 45px;
    background: #f8f5ee;
    border-radius: 18px;
    color: #20211d;
    box-shadow: 0 30px 80px rgba(0,0,0,0.12);
}

.sila-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 25px;
    border-bottom: 1px solid #d9d5cc;
}

.sila-header span {
    font-size: 24px;
    font-weight: 600;
}

.sila-header small {
    color: #777;
}

.sila-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 45px;
    margin: 45px 0;
}

.sila-date small {
    display: block;
    margin-bottom: 15px;
    color: #85827a;
    font-size: 10px;
    letter-spacing: 0.12em;
}

.sila-date strong {
    display: block;
    font-size: 32px;
    font-weight: 400;
}

.sila-date span {
    display: block;
    margin-top: 5px;
    color: #777;
}

.sila-times {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.sila-times button {
    padding: 13px;
    background: transparent;
    border: 1px solid #d5d1c8;
    border-radius: 8px;
}

.sila-times button.selected {
    background: var(--accent);
    border-color: var(--accent);
}

.sila-book {
    width: 100%;
    padding: 16px;
    background: #20211d;
    color: #ffffff;
    border: 0;
    border-radius: 8px;
}


/* =========================================================
   FOUND MARKET
   ========================================================= */

.found-preview {
    padding: 55px;
    background: #eee9df;
    color: #24231f;
}

.found-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 45px;
}

.found-header strong {
    font-family: Georgia, serif;
    font-size: 42px;
}

.found-header span {
    color: #777268;
    font-size: 13px;
}

.found-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.found-card {
    background: #f8f5ee;
    padding: 15px;
}

.found-image {
    aspect-ratio: 1 / 1.15;
    margin-bottom: 18px;
}

.image-one {
    background: linear-gradient(145deg, #bcb5a5, #ded9cc);
}

.image-two {
    background: linear-gradient(145deg, #77766e, #c5c0b5);
}

.image-three {
    background: linear-gradient(145deg, #d1c7b8, #9f998e);
}

.found-card strong {
    display: block;
    font-size: 15px;
    font-weight: 500;
}

.found-card span {
    display: block;
    margin-top: 5px;
    color: #777268;
    font-size: 13px;
}


/* =========================================================
   CTA
   ========================================================= */

.work-cta {
    padding: 120px clamp(24px, 7vw, 120px);
    background: var(--dark);
    color: #ffffff;
    border-top: 1px solid rgba(255,255,255,0.12);
}

.work-cta-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.work-cta h2 {
    max-width: 950px;
    margin: 55px 0 60px;
    font-size: clamp(52px, 7vw, 100px);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.work-cta h2 em {
    color: var(--accent);
    font-family: Georgia, serif;
    font-style: italic;
    font-weight: 400;
}

.work-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    min-width: 280px;
    padding: 18px 22px;
    background: var(--accent);
    color: var(--ink);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .work-hero {
        padding-top: 110px;
    }

    .work-hero-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .work-start-link {
        max-width: 100%;
    }

    .work-project {
        padding-top: 70px;
        padding-bottom: 80px;
    }

    .work-project-info {
        grid-template-columns: 50px minmax(0, 1fr);
        gap: 20px;
    }

    .project-preview {
        min-height: 500px;
    }

    .atlas-preview {
        padding: 30px;
    }

    .atlas-main {
        padding: 35px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .work-hero {
        padding:
            100px
            24px
            80px;
    }

    .work-hero h1 {
        font-size: clamp(52px, 13vw, 70px);
    }

    .work-project {
        padding:
            55px
            24px
            70px;
    }

    .work-project-info {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 30px;
    }

    .work-project-info h2 {
        font-size: clamp(38px, 10vw, 55px);
    }

    .project-preview {
        min-height: 400px;
        border-radius: 12px;
    }

    .portfolio-work-image {
        height: 400px;
    }

    .work-project-description {
        margin-top: 22px;
        font-size: 13px;
    }

    .portfolio-project-link {
        margin-left: 0;
    }

    .work-empty-state {
        padding: 80px 24px;
    }

    .northstar-content {
        min-height: 358px;
        padding: 55px 30px;
    }

    .northstar-content h3 {
        margin-top: 35px;
        font-size: 52px;
    }

    .northstar-building {
        width: 45%;
        height: 55%;
    }

    .atlas-preview {
        padding: 15px;
    }

    .atlas-sidebar {
        width: 50px;
        padding: 15px 8px;
    }

    .atlas-main {
        padding: 25px 18px;
    }

    .atlas-header h3 {
        font-size: 24px;
    }

    .atlas-header span {
        display: none;
    }

    .atlas-stats {
        grid-template-columns: 1fr;
        margin-top: 25px;
    }

    .atlas-stats div {
        padding: 18px;
    }

    .atlas-stats strong {
        font-size: 24px;
    }

    .atlas-chart {
        height: 120px;
        gap: 8px;
        margin-top: 25px;
        padding: 0 5px;
    }

    .sila-preview {
        padding: 25px 15px;
    }

    .sila-window {
        width: 100%;
        padding: 25px;
    }

    .sila-content {
        grid-template-columns: 1fr;
        gap: 30px;
        margin: 30px 0;
    }

    .sila-date strong {
        font-size: 27px;
    }

    .found-preview {
        padding: 25px 15px;
    }

    .found-header strong {
        font-size: 30px;
    }

    .found-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .found-card {
        display: grid;
        grid-template-columns: 110px 1fr;
        column-gap: 15px;
        align-items: center;
    }

    .found-image {
        grid-row: span 2;
        margin: 0;
    }

    .work-cta {
        padding:
            80px
            24px;
    }

    .work-cta h2 {
        margin-top: 40px;
        margin-bottom: 45px;
        font-size: clamp(48px, 12vw, 65px);
    }

    .work-cta-button {
        width: 100%;
    }

}
