.home-projects {
    overflow: hidden;
    background: #f7f6f2;
}

.home-projects__heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 34px;
}

.home-projects__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 13px;
    color: #777f87;
    font-family: Archivo, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
}

.home-projects__eyebrow > span {
    width: 22px;
    height: 1px;
    background: #ffc631;
}

.home-projects__title {
    margin: 0;
    color: #07182b;
    font-size: clamp(32px, 4vw, 46px);
    letter-spacing: -.035em;
}

.home-projects__intro {
    max-width: 330px;
    margin: 0 0 5px;
    color: #68717b;
    font-size: 15px;
    line-height: 1.7;
}

.home-projects__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.home-project-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(7, 24, 43, .08);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(7, 24, 43, .06);
    transition: transform .25s ease, box-shadow .25s ease;
}

.home-project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(7, 24, 43, .11);
}

.home-project-card__image {
    position: relative;
    display: block;
    height: 205px;
    overflow: hidden;
    background: #e8e5de;
}

.home-project-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.home-project-card:hover .home-project-card__image img {
    transform: scale(1.045);
}

.home-project-card__area {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 7px;
    background: rgba(7, 24, 43, .8);
    color: #fff;
    font-family: Archivo, sans-serif;
    font-size: 11px;
    font-weight: 700;
    -webkit-backdrop-filter: blur(7px);
    backdrop-filter: blur(7px);
}

.home-project-card__body {
    display: flex;
    min-height: 188px;
    flex-direction: column;
    padding: 18px 16px 15px;
}

.home-project-card__location {
    margin: 0 0 7px;
    color: #858b92;
    font-family: Archivo, sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .1em;
}

.home-project-card__location span {
    color: #e5ae19;
}

.home-project-card h3 {
    min-height: 44px;
    margin: 0;
    color: #07182b;
    font-size: 16px;
    line-height: 1.35;
}

.home-project-card__features {
    margin: 7px 0 13px;
    color: #68717b;
    font-size: 12px;
    line-height: 1.5;
}

.home-project-card__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #ecebe7;
}

.home-project-card__details {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #07182b;
    font-family: Archivo, sans-serif;
    font-size: 11px;
    font-weight: 700;
}

.home-project-card__details span {
    color: #bd8a00;
    font-size: 16px;
}

.home-project-card__details:hover {
    color: #ad7d00;
}

.home-project-card__quote {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: 6px;
    background: #ffc631;
    color: #07182b;
    font-family: Archivo, sans-serif;
    font-size: 10px;
    font-weight: 700;
}

.home-project-card__quote:hover {
    background: #f2b814;
    color: #07182b;
}

.home-projects__footer {
    display: flex;
    justify-content: center;
    margin-top: 34px;
}

.home-projects__footer > a {
    display: inline-flex;
    min-height: 49px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 20px;
    border: 1px solid rgba(7, 24, 43, .2);
    border-radius: 7px;
    color: #07182b;
    font-family: Archivo, sans-serif;
    font-size: 12px;
    font-weight: 700;
}

.home-projects__footer > a span {
    color: #ad7d00;
    font-size: 17px;
}

.home-projects__footer > a:hover {
    border-color: #07182b;
    background: #07182b;
    color: #fff;
}

@media (max-width: 1100px) {
    .home-projects__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .home-project-card__image {
        height: clamp(180px, 28vw, 260px);
    }
}

@media (max-width: 767.98px) {
    .home-projects__heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        margin-bottom: 25px;
    }

    .home-projects__intro {
        font-size: 14px;
    }

    .home-projects__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 15px;
    }

    .home-project-card {
        display: grid;
        grid-template-columns: minmax(105px, 35%) minmax(0, 1fr);
    }

    .home-project-card__image {
        height: 100%;
        min-height: 190px;
    }

    .home-project-card__body {
        min-height: 190px;
        padding: 15px 13px 12px;
    }

    .home-project-card h3 {
        min-height: 0;
        font-size: 15px;
    }

    .home-project-card__actions {
        flex-wrap: wrap;
        gap: 8px;
    }

    .home-project-card__details {
        font-size: 10px;
    }

    .home-project-card__quote {
        min-height: 31px;
        padding: 0 9px;
    }
}

@media (max-width: 390px) {
    .home-project-card {
        grid-template-columns: minmax(94px, 32%) minmax(0, 1fr);
    }

    .home-project-card__body {
        padding-right: 10px;
        padding-left: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-project-card,
    .home-project-card__image img,
    .home-projects__footer > a {
        transition: none;
    }
}
