.portfolio-page {
    min-height: 100vh;
    background: #1a2f23;
    color: #f5f1e8;
}

.portfolio-hero {
    position: relative;
    isolation: isolate;
    min-height: 86vh;
    padding: 148px 48px 72px;
    overflow: hidden;
}

.portfolio-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -3;
    background-image: var(--archive-hero-image, url("/themes/outdoor-decoration/assets/images/remote/arcano-remote-10.jpg"));
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
}

.portfolio-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: rgba(0, 0, 0, .62);
}

.portfolio-shell {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.portfolio-kicker {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    color: #e9c176;
    font-size: 13px;
    font-weight: 800;
}

.portfolio-kicker::before {
    content: "";
    width: 42px;
    height: 1px;
    background: #e9c176;
}

.portfolio-title {
    max-width: 900px;
    margin: 0 0 24px;
    color: #fff;
    font-size: clamp(42px, 7vw, 86px);
    line-height: 1.18;
    font-weight: 900;
}

.portfolio-lead {
    max-width: 760px;
    margin: 0 0 40px;
    color: rgba(233, 193, 118, .92);
    font-size: 20px;
    line-height: 2;
    font-style: italic;
}

.portfolio-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.portfolio-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.portfolio-section {
    background: #1a2f23;
    padding: 84px 48px;
}

.portfolio-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 28px;
}

.portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.portfolio-filter {
    min-height: 42px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(233, 193, 118, .24);
    border-radius: 999px;
    background: rgba(255, 255, 255, .04);
    color: rgba(255, 255, 255, .72);
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
}

.portfolio-filter.active,
.portfolio-filter:hover {
    border-color: rgba(233, 193, 118, .78);
    color: #e9c176;
    background: rgba(233, 193, 118, .1);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.project-card {
    position: relative;
    min-height: 480px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 28px;
    background: #102419;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .32);
    color: #fff;
    text-decoration: none;
}

.project-card img,
.project-card-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s ease;
}

.project-card:hover img,
.project-card:hover .project-card-placeholder {
    transform: scale(1.06);
}

.project-card-placeholder {
    background:
        linear-gradient(rgba(0, 0, 0, .12), rgba(0, 0, 0, .58)),
        url("/themes/outdoor-decoration/assets/images/remote/arcano-remote-13.jpg") center/cover;
}

.project-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .82), rgba(0, 0, 0, .14) 55%, rgba(0, 0, 0, .08));
}

.project-card-content {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 1;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 24px;
    background: rgba(5, 26, 15, .68);
    backdrop-filter: blur(22px) saturate(1.18);
    -webkit-backdrop-filter: blur(22px) saturate(1.18);
}

.project-card-content small {
    color: #e9c176;
    font-weight: 900;
}

.project-card-content h2 {
    margin: 10px 0;
    color: #fff;
    font-size: 24px;
    line-height: 1.45;
}

.project-card-content p {
    margin: 0;
    color: rgba(255, 255, 255, .72);
    line-height: 1.9;
    font-size: 14px;
}

.project-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
}

.project-glass {
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 30px;
    background: rgba(5, 26, 15, .68);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 28px 70px rgba(0, 0, 0, .3);
    backdrop-filter: blur(22px) saturate(1.18);
    -webkit-backdrop-filter: blur(22px) saturate(1.18);
}

.project-story {
    padding: clamp(28px, 5vw, 54px);
    color: rgba(255, 255, 255, .76);
    font-size: 17px;
    line-height: 2.25;
}

.project-story h2,
.project-story h3 {
    color: #fff;
    line-height: 1.55;
    font-weight: 900;
}

.project-cover {
    overflow: hidden;
    border-radius: 30px 30px 0 0;
    aspect-ratio: 16 / 8;
    min-height: 320px;
    background: #102419;
}

.project-cover img,
.project-cover-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-cover-placeholder {
    background:
        linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, .5)),
        url("/themes/outdoor-decoration/assets/images/remote/arcano-remote-09.jpg") center/cover;
}

.project-sidebar {
    position: sticky;
    top: 118px;
    display: grid;
    gap: 18px;
}

.project-widget {
    padding: 24px;
}

.project-widget h3 {
    margin: 0 0 18px;
    color: #e9c176;
    font-size: 20px;
    font-weight: 900;
}

.project-facts {
    display: grid;
    gap: 12px;
}

.project-fact {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .11);
    color: rgba(255, 255, 255, .72);
}

.project-fact strong {
    color: #fff;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.project-gallery a {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, .16);
}

.project-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 1024px) {
    .portfolio-hero,
    .portfolio-section {
        padding-left: 24px;
        padding-right: 24px;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .project-sidebar {
        position: static;
    }
}

@media (max-width: 767px) {
    .portfolio-hero {
        min-height: auto;
        padding: 122px 16px 52px;
    }

    .portfolio-section {
        padding: 66px 16px;
    }

    .portfolio-title {
        font-size: 42px;
        line-height: 1.28;
    }

    .portfolio-lead {
        font-size: 16px;
        margin-bottom: 28px;
    }

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

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

    .project-cover {
        aspect-ratio: 4 / 3;
        min-height: 260px;
    }
}

