/* =========================================
   MYAH CREWS
   IS + BUSINESS ANALYTICS PORTFOLIO
========================================= */


/* =========================================
   COLORS
========================================= */

:root {
    --cream: #eee9df;
    --paper: #f8f5ee;
    --black: #11110f;

    --olive: #687039;
    --olive-dark: #4d532b;

    --burgundy: #521b29;
    --pink: #c998a3;

    --silver: #b7b8b5;
    --gray: #696761;
}


/* =========================================
   RESET
========================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    background: var(--cream);
    color: var(--black);

    font-family:
        "Helvetica Neue",
        Arial,
        sans-serif;
}

a {
    color: inherit;
}


/* =========================================
   HEADER
========================================= */

.site-header {
    height: 72px;

    padding: 0 3%;

    display: grid;
    grid-template-columns: 1fr 1fr 1fr;

    align-items: center;

    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(238, 233, 223, 0.96);

    border-bottom: 1px solid var(--black);
}

.logo {
    text-decoration: none;

    font-size: 18px;
    font-weight: 800;

    letter-spacing: -0.5px;
}

.header-title {
    text-align: center;

    font-size: 9px;
    letter-spacing: 1.8px;
}

.site-header nav {
    display: flex;

    justify-content: flex-end;

    gap: 24px;
}

.site-header nav a {
    text-decoration: none;

    font-size: 9px;

    letter-spacing: 1.4px;

    position: relative;
}

.site-header nav a::after {
    content: "";

    width: 0;
    height: 1px;

    position: absolute;

    bottom: -5px;
    left: 0;

    background: var(--burgundy);

    transition: width 0.2s ease;
}

.site-header nav a:hover::after {
    width: 100%;
}


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

.hero {
    border-bottom: 1px solid var(--black);
}

.hero-meta {
    height: 43px;

    padding: 0 3%;

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

    border-bottom: 1px solid var(--black);

    font-family: "Courier New", monospace;

    font-size: 8px;
    letter-spacing: 1.5px;
}


/* ---------- HERO GRID ---------- */

.hero-grid {
    min-height: 720px;

    display: grid;

    grid-template-columns:
        minmax(0, 1.85fr)
        minmax(330px, 0.65fr);
}


/* ---------- LEFT ---------- */

.hero-copy {
    padding: 85px 6% 70px;

    display: flex;

    flex-direction: column;

    justify-content: center;
}

.eyebrow {
    margin: 0 0 35px;

    color: var(--burgundy);

    font-family: "Courier New", monospace;

    font-size: 9px;

    letter-spacing: 1.7px;
}

.hero h1 {
    margin: 0;

    font-size: clamp(110px, 14vw, 220px);

    line-height: 0.69;

    letter-spacing: -11px;

    font-weight: 800;
}

.hero h1 span {
    display: block;
}

.hero h1 span:last-child {
    margin-left: 7%;
}


/* ---------- HERO STATEMENT ---------- */

.hero-statement {
    margin-top: 70px;

    max-width: 690px;

    display: grid;

    grid-template-columns:
        minmax(260px, 1fr)
        auto;

    gap: 50px;

    align-items: end;
}

.hero-statement p {
    margin: 0;

    max-width: 440px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 20px;

    line-height: 1.55;
}

.hero-statement a {
    text-decoration: none;

    white-space: nowrap;

    font-family: "Courier New", monospace;

    font-size: 9px;

    letter-spacing: 1px;

    border-bottom: 1px solid var(--black);

    padding-bottom: 5px;
}


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

.hero-art {
    position: relative;

    overflow: hidden;

    border-left: 1px solid var(--black);

    background: var(--paper);
}


/* Olive + cream stripes */

.stripe-field {
    position: absolute;

    inset: 0;

    background:
        repeating-linear-gradient(
            90deg,
            var(--olive) 0px,
            var(--olive) 52px,

            var(--paper) 52px,
            var(--paper) 104px
        );
}


/* Burgundy layer */

.burgundy-shape {
    position: absolute;

    width: 78%;
    height: 33%;

    right: -18%;
    top: 21%;

    background: var(--burgundy);

    transform: rotate(-8deg);
}


/* =========================================
   CHROME STAR
========================================= */

.chrome-star {
    position: absolute;

    width: 270px;
    height: 270px;

    top: 10%;
    left: 7%;

    z-index: 3;

    clip-path: polygon(
        50% 0%,
        61% 38%,
        100% 50%,
        61% 62%,
        50% 100%,
        39% 62%,
        0% 50%,
        39% 38%
    );

    background:
        linear-gradient(
            135deg,

            #242424 0%,
            #efefeb 13%,
            #696969 25%,
            #ffffff 38%,
            #333333 52%,
            #dadad6 66%,
            #676767 78%,
            #ffffff 100%
        );

    filter:
        drop-shadow(
            9px
            11px
            0
            rgba(17, 17, 15, 0.28)
        );

    transform: rotate(12deg);
}


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

.hero-index {
    position: absolute;

    z-index: 5;

    left: 8%;
    right: 8%;
    bottom: 7%;

    background: var(--cream);

    border: 1px solid var(--black);
}

.hero-index div {
    display: grid;

    grid-template-columns:
        42px
        1fr;

    border-bottom: 1px solid var(--black);
}

.hero-index div:last-child {
    border-bottom: none;
}

.hero-index span {
    padding: 12px;

    border-right: 1px solid var(--black);

    font-family: "Courier New", monospace;

    font-size: 8px;
}

.hero-index p {
    margin: 0;

    padding: 12px;

    font-size: 10px;

    letter-spacing: 1px;
}


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

.hero-footer {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    border-top: 1px solid var(--black);
}

.hero-footer span {
    padding: 14px;

    text-align: center;

    border-right: 1px solid var(--black);

    font-family: "Courier New", monospace;

    font-size: 8px;

    letter-spacing: 1.3px;
}

.hero-footer span:last-child {
    border-right: none;
}


/* =========================================
   GENERAL
========================================= */

.section-label {
    color: var(--burgundy);

    font-family: "Courier New", monospace;

    font-size: 9px;

    letter-spacing: 1.8px;
}

.section-label.light {
    color: var(--pink);
}


/* =========================================
   ABOUT
========================================= */

.about {
    padding: 105px 5% 0;

    background: var(--paper);

    border-bottom: 1px solid var(--black);
}

.about-grid {
    margin-top: 45px;

    display: grid;

    grid-template-columns:
        1.1fr
        0.9fr;

    gap: 10%;
}

.about h2 {
    margin: 0;

    font-size: clamp(65px, 8vw, 125px);

    line-height: 0.82;

    letter-spacing: -6px;
}

.about h2 em {
    display: block;

    color: var(--olive);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-weight: 400;

    letter-spacing: -4px;
}

.about-copy {
    padding-top: 10px;
}

.about-copy p {
    max-width: 520px;

    font-size: 15px;

    line-height: 1.7;
}

.about-lead {
    margin-top: 0;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 27px !important;

    line-height: 1.35 !important;
}


/* =========================================
   EDITORIAL BAND
========================================= */

.editorial-band {
    min-height: 180px;

    margin-top: 100px;

    display: grid;

    grid-template-columns:
        1.2fr
        0.65fr
        0.75fr;

    border-top: 1px solid var(--black);

    border-left: 1px solid var(--black);

    border-right: 1px solid var(--black);
}


/* Mod pattern */

.mod-pattern {
    background:
        radial-gradient(
            circle at 0 50%,
            var(--paper) 0 20px,
            var(--black) 21px 27px,
            transparent 28px
        ),
        var(--olive);

    background-size: 80px 80px;
}


/* Middle */

.band-message {
    padding: 28px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    background: var(--pink);

    border-left: 1px solid var(--black);

    border-right: 1px solid var(--black);
}

.band-message span {
    font-family: "Courier New", monospace;

    font-size: 8px;

    letter-spacing: 1px;
}

.band-message strong {
    font-size: 25px;

    line-height: 0.95;
}


/* Burgundy stripes */

.stripe-pattern {
    background:
        repeating-linear-gradient(
            0deg,

            var(--burgundy) 0px,
            var(--burgundy) 34px,

            var(--silver) 34px,
            var(--silver) 68px
        );
}


/* =========================================
   WORK
========================================= */

.work {
    padding: 105px 5%;

    background: var(--black);

    color: var(--cream);
}

.work-heading {
    display: grid;

    grid-template-columns:
        0.4fr
        1fr
        0.6fr;

    gap: 40px;

    align-items: end;

    margin-bottom: 75px;
}

.work-heading h2 {
    margin: 0;

    font-size: clamp(85px, 11vw, 165px);

    line-height: 0.73;

    letter-spacing: -9px;
}

.work-heading > p {
    margin: 0;

    max-width: 300px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 16px;

    line-height: 1.5;

    color: #d0ccc4;
}


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

.project {
    min-height: 580px;

    display: grid;

    grid-template-columns:
        70px
        minmax(0, 1.3fr)
        minmax(330px, 0.7fr);

    border-top: 1px solid var(--cream);

    border-bottom: 1px solid var(--cream);
}


/* Number */

.project-number {
    padding: 22px 0;

    border-right: 1px solid var(--cream);

    writing-mode: vertical-rl;

    text-align: center;

    font-family: "Courier New", monospace;

    font-size: 10px;

    letter-spacing: 4px;
}


/* =========================================
   PROJECT VISUAL
========================================= */

.project-visual {
    min-height: 580px;

    position: relative;

    overflow: hidden;

    background: var(--olive);

    border-right: 1px solid var(--cream);
}


/* Grid */

.visual-grid {
    position: absolute;

    inset: 0;

    background-image:
        linear-gradient(
            rgba(238, 233, 223, 0.18) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(238, 233, 223, 0.18) 1px,
            transparent 1px
        );

    background-size: 52px 52px;
}


/* Burgundy circle */

.visual-grid::after {
    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    right: -100px;
    bottom: -110px;

    border-radius: 50%;

    background: var(--burgundy);
}


/* Face analysis lines */

.face-lines {
    position: absolute;

    width: 230px;
    height: 310px;

    left: 17%;
    top: 14%;

    border:
        1px
        solid
        rgba(238, 233, 223, 0.8);

    border-radius: 48% 48% 43% 43%;
}

.face-line {
    position: absolute;

    left: 10%;

    width: 80%;

    height: 1px;

    background:
        rgba(238, 233, 223, 0.75);
}

.line-one {
    top: 30%;
}

.line-two {
    top: 51%;
}

.line-three {
    top: 72%;
}


/* Label */

.visual-label {
    position: absolute;

    top: 4%;
    right: 4%;

    padding: 7px 9px;

    background: var(--cream);

    color: var(--black);

    font-family: "Courier New", monospace;

    font-size: 8px;

    letter-spacing: 1px;
}


/* Project name */

.project-visual h3 {
    position: absolute;

    left: 5%;
    bottom: 5%;

    z-index: 4;

    margin: 0;

    font-size: clamp(55px, 7vw, 110px);

    line-height: 0.78;

    letter-spacing: -6px;
}


/* =========================================
   PROJECT COPY
========================================= */

.project-copy {
    padding: 45px 34px;

    display: flex;

    flex-direction: column;
}

.project-type {
    margin: 0 0 55px;

    color: var(--pink);

    font-family: "Courier New", monospace;

    font-size: 8px;

    letter-spacing: 1.3px;
}

.project-copy > h3 {
    margin: 0;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: clamp(45px, 5vw, 76px);

    font-weight: 400;

    font-style: italic;

    letter-spacing: -3px;
}

.project-description {
    margin: 25px 0 45px;

    color: #d2cec6;

    font-size: 14px;

    line-height: 1.65;
}

.project-facts {
    margin-top: auto;
}

.project-facts div {
    display: grid;

    grid-template-columns:
        85px
        1fr;

    padding: 12px 0;

    border-top:
        1px
        solid
        #4f4d48;
}

.project-facts span {
    color: var(--pink);

    font-family: "Courier New", monospace;

    font-size: 8px;

    letter-spacing: 1px;
}

.project-facts p {
    margin: 0;

    font-size: 12px;
}


/* =========================================
   NEXT PROJECT
========================================= */

.next-project {
    padding: 22px 0;

    display: grid;

    grid-template-columns:
        70px
        1fr
        auto;

    align-items: center;

    border-bottom: 1px solid var(--cream);

    font-family: "Courier New", monospace;
}

.next-project span,
.next-project p,
.next-project strong {
    font-size: 9px;

    letter-spacing: 1.3px;
}

.next-project p {
    margin: 0;
}

.next-project strong {
    color: var(--pink);
}


/* =========================================
   TOOLKIT
========================================= */

.toolkit {
    padding: 105px 5%;

    background: var(--cream);

    border-bottom: 1px solid var(--black);
}

.toolkit-heading {
    margin-top: 45px;

    display: grid;

    grid-template-columns:
        1fr
        0.35fr;

    gap: 50px;

    align-items: end;
}

.toolkit-heading h2 {
    margin: 0;

    font-size: clamp(70px, 9vw, 140px);

    line-height: 0.78;

    letter-spacing: -7px;
}

.toolkit-heading h2 em {
    display: block;

    color: var(--burgundy);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-weight: 400;

    letter-spacing: -5px;
}

.toolkit-heading > p {
    margin: 0;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 16px;
}


/* =========================================
   TOOL COLUMNS
========================================= */

.tool-grid {
    margin-top: 75px;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    border-top: 1px solid var(--black);

    border-bottom: 1px solid var(--black);
}

.tool-column {
    min-height: 320px;

    padding: 28px;

    border-right: 1px solid var(--black);
}

.tool-column:last-child {
    border-right: none;
}

.tool-column:nth-child(2) {
    background: var(--olive);
}

.tool-column:nth-child(3) {
    background: var(--pink);
}

.tool-number {
    font-family: "Courier New", monospace;

    font-size: 8px;
}

.tool-column h3 {
    margin: 70px 0 35px;

    font-size: 34px;

    letter-spacing: -2px;
}

.tool-column p {
    margin: 0;

    padding: 10px 0;

    border-top:
        1px
        solid
        rgba(17, 17, 15, 0.35);

    font-size: 12px;
}


/* =========================================
   CONTACT
========================================= */

.contact {
    min-height: 650px;

    display: grid;

    grid-template-columns:
        0.72fr
        1.28fr;

    background: var(--burgundy);

    color: var(--cream);
}


/* Zebra-inspired pattern */

.contact-pattern {
    border-right: 1px solid var(--cream);

    background:
        repeating-linear-gradient(
            112deg,

            var(--black) 0px,
            var(--black) 25px,

            var(--cream) 25px,
            var(--cream) 53px,

            var(--black) 53px,
            var(--black) 76px,

            var(--cream) 76px,
            var(--cream) 111px
        );
}

.contact-copy {
    padding: 100px 8%;

    display: flex;

    flex-direction: column;

    justify-content: center;
}

.contact-copy h2 {
    margin: 30px 0;

    font-size: clamp(90px, 11vw, 170px);

    line-height: 0.72;

    letter-spacing: -9px;
}

.contact-copy h2 em {
    display: block;

    color: var(--pink);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-weight: 400;

    letter-spacing: -6px;
}

.contact-copy > p {
    font-size: 13px;
}


/* =========================================
   FOOTER
========================================= */

footer {
    padding: 20px 3%;

    display: flex;

    justify-content: space-between;

    gap: 20px;

    background: var(--black);

    color: var(--cream);

    font-family: "Courier New", monospace;

    font-size: 8px;

    letter-spacing: 1.2px;
}


/* =========================================
   MOBILE / SMALL SCREENS
========================================= */

@media (max-width: 900px) {

    .site-header {
        grid-template-columns:
            1fr
            auto;
    }

    .header-title {
        display: none;
    }


    .hero-grid {
        grid-template-columns: 1fr;
    }


    .hero-art {
        min-height: 620px;

        border-left: none;

        border-top: 1px solid var(--black);
    }


    .hero h1 {
        letter-spacing: -7px;
    }


    .hero h1 span:last-child {
        margin-left: 0;
    }


    .hero-statement {
        grid-template-columns: 1fr;

        gap: 30px;
    }


    .about-grid {
        grid-template-columns: 1fr;

        gap: 50px;
    }


    .work-heading {
        grid-template-columns: 1fr;
    }


    .project {
        grid-template-columns:
            55px
            1fr;
    }


    .project-copy {
        grid-column: 1 / -1;

        border-top: 1px solid var(--cream);
    }


    .toolkit-heading {
        grid-template-columns: 1fr;
    }


    .tool-grid {
        grid-template-columns: 1fr;
    }


    .tool-column {
        border-right: none;

        border-bottom: 1px solid var(--black);
    }


    .tool-column:last-child {
        border-bottom: none;
    }


    .contact {
        grid-template-columns: 1fr;
    }


    .contact-pattern {
        min-height: 220px;

        border-right: none;

        border-bottom: 1px solid var(--cream);
    }

}


@media (max-width: 650px) {

    .site-header nav {
        gap: 10px;
    }


    .site-header nav a {
        font-size: 7px;
    }


    .hero-copy {
        padding:
            80px
            6%
            65px;
    }


    .hero h1 {
        font-size: 82px;

        letter-spacing: -5px;
    }


    .hero-footer {
        grid-template-columns: 1fr;
    }


    .hero-footer span {
        border-right: none;

        border-bottom: 1px solid var(--black);
    }


    .hero-footer span:last-child {
        border-bottom: none;
    }


    .editorial-band {
        grid-template-columns: 1fr;
    }


    .mod-pattern,
    .stripe-pattern {
        min-height: 160px;
    }


    .band-message {
        min-height: 190px;

        border-left: none;
        border-right: none;

        border-top: 1px solid var(--black);

        border-bottom: 1px solid var(--black);
    }


    .project {
        grid-template-columns: 1fr;
    }


    .project-number {
        writing-mode: horizontal-tb;

        padding: 15px;

        border-right: none;

        border-bottom: 1px solid var(--cream);
    }


    .project-visual {
        border-right: none;
    }


    .face-lines {
        left: 10%;
    }


    .next-project {
        grid-template-columns:
            auto
            1fr;

        gap: 20px;
    }


    .next-project strong {
        grid-column: 2;
    }


    footer {
        flex-direction: column;
    }

}