:root {
    --background: #f4f4f1;
    --text: #171717;
    --muted: #6d6d68;
    --border: #d8d8d2;
    --card: #ffffff;
    --card-dark: #1c1c1b;
    --card-dark-text: #f4f4f1;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    min-height: 100vh;

    background: var(--background);
    color: var(--text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}


.home {
    width: min(1200px, calc(100% - 64px));
    min-height: 100vh;

    margin: auto;

    display: flex;
    flex-direction: column;

    padding: 64px 0 32px;
}


/* ---------- INTRO ---------- */

.intro {
    max-width: 760px;
}


.eyebrow {
    margin-bottom: 28px;

    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
}


h1 {
    font-size: clamp(3.5rem, 7vw, 6.5rem);
    line-height: 0.95;
    letter-spacing: -0.055em;
    font-weight: 700;
}


h1 span {
    color: #777770;
}


.description {
    max-width: 570px;

    margin-top: 32px;

    color: var(--muted);

    font-size: 1.05rem;
    line-height: 1.65;
}


/* ---------- PROJECTS ---------- */

.projects {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;

    margin-top: auto;
    padding-top: 100px;
}


.project-card {
    min-height: 360px;

    padding: 30px;

    display: flex;
    flex-direction: column;

    text-decoration: none;
    color: inherit;

    border: 1px solid var(--border);
    border-radius: 4px;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background-color 0.25s ease;
}


.project-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.08);
}


.portfolio-card {
    background: var(--card);
}


.ecoplus-card {
    background: var(--card-dark);
    color: var(--card-dark-text);

    border-color: var(--card-dark);
}


.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.card-number {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    opacity: 0.55;
}


.arrow {
    font-size: 1.5rem;

    transition: transform 0.25s ease;
}


.project-card:hover .arrow {
    transform: translate(4px, -4px);
}


.card-content {
    margin-top: auto;
}


.card-label {
    margin-bottom: 14px;

    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.13em;

    opacity: 0.55;
}


.card-content h2 {
    margin-bottom: 14px;

    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.04em;
}


.card-content p {
    max-width: 430px;

    font-size: 0.95rem;
    line-height: 1.6;

    opacity: 0.7;
}


.card-link {
    margin-top: 30px;

    font-size: 0.8rem;
    font-weight: 600;
}


/* ---------- FOOTER ---------- */

footer {
    display: flex;
    justify-content: space-between;

    margin-top: 32px;

    color: var(--muted);

    font-size: 0.72rem;
}


/* ---------- TABLET ---------- */

@media (max-width: 800px) {

    .home {
        width: min(100% - 40px, 650px);
        padding-top: 45px;
    }

    .projects {
        padding-top: 70px;
    }

    .project-card {
        min-height: 320px;
    }
}


/* ---------- MOBILE ---------- */

@media (max-width: 600px) {

    .home {
        width: calc(100% - 32px);
        padding: 32px 0 24px;
    }


    .eyebrow {
        margin-bottom: 22px;
    }


    h1 {
        font-size: clamp(3rem, 15vw, 4.5rem);
    }


    .description {
        margin-top: 24px;

        font-size: 0.95rem;
    }


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

        gap: 14px;

        padding-top: 60px;
    }


    .project-card {
        min-height: 300px;

        padding: 24px;
    }


    .card-content h2 {
        font-size: 2.5rem;
    }


    footer {
        flex-direction: column;
        gap: 8px;

        margin-top: 24px;
    }
}
