.project-hub {
    position: relative;
    min-height: calc(100vh - var(--nav-height, 78px));
    overflow: hidden;
    padding: clamp(66px, 8vw, 112px) clamp(16px, 3vw, 34px) clamp(78px, 9vw, 126px);
    color: #f8fbff;
    background:
        radial-gradient(circle at 11% 13%, rgba(53, 120, 212, .28), transparent 31%),
        radial-gradient(circle at 91% 84%, rgba(15, 159, 145, .22), transparent 30%),
        linear-gradient(145deg, #07111f 0%, #0b1b31 52%, #0d344a 100%);
}

.project-hub::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .38;
    background-image:
        linear-gradient(rgba(130, 172, 218, .09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(130, 172, 218, .09) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

.project-hub-head,
.project-gate-grid {
    position: relative;
    z-index: 1;
}

.project-hub-head {
    width: min(900px, 100%);
    margin: 0 auto clamp(34px, 5vw, 54px);
    text-align: center;
}

.project-hub-head > span {
    display: inline-flex;
    margin-bottom: 16px;
    padding: 7px 12px;
    border: 1px solid rgba(116, 224, 212, .36);
    border-radius: 999px;
    color: #8be8de;
    background: rgba(116, 224, 212, .08);
    font-size: .74rem;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.project-hub-head h1 {
    max-width: 780px;
    margin: 0 auto 16px;
    color: #fff;
    font-size: clamp(2.45rem, 6.4vw, 5rem);
    line-height: .98;
    letter-spacing: -.055em;
}

.project-hub-head p {
    max-width: 700px;
    margin: 0 auto;
    color: rgba(226, 236, 248, .78);
    font-size: clamp(1rem, 1.5vw, 1.13rem);
    line-height: 1.75;
}

.project-gate-grid {
    width: min(1220px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(18px, 2.4vw, 30px);
}

.project-gate-card {
    min-height: 470px;
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
    border: 1px solid rgba(160, 190, 224, .2);
    border-radius: 22px;
    color: #132238;
    background: rgba(255, 255, 255, .97);
    text-decoration: none;
    box-shadow: 0 24px 64px rgba(0, 8, 24, .24);
    transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}

.project-gate-card:hover {
    transform: translateY(-7px);
    border-color: rgba(116, 224, 212, .62);
    box-shadow: 0 30px 78px rgba(0, 8, 24, .32);
}

.project-gate-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #dce7f2;
}

.project-gate-media::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    background: linear-gradient(to top, rgba(7, 17, 31, .5), transparent);
}

.project-gate-media picture,
.project-gate-media img {
    width: 100%;
    height: 100%;
    display: block;
}

.project-gate-media img {
    object-fit: cover;
    transition: transform .55s cubic-bezier(.2, .7, .2, 1);
}

.project-gate-card:hover .project-gate-media img {
    transform: scale(1.045);
}

.project-gate-body {
    position: relative;
    display: grid;
    align-content: start;
    gap: 11px;
    padding: clamp(22px, 3vw, 30px);
}

.project-gate-body > span {
    width: fit-content;
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 7px;
    color: #174f89;
    background: #e8f2fd;
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.project-gate-card.accent .project-gate-body > span {
    color: #08766d;
    background: #def7f3;
}

.project-gate-card.tools .project-gate-body > span {
    color: #5e49a8;
    background: #eeeafd;
}

.project-gate-body h2 {
    margin: 0;
    color: #0b1b31;
    font-size: clamp(1.55rem, 2.6vw, 2.12rem);
    line-height: 1.14;
    letter-spacing: -.03em;
}

.project-gate-body p {
    margin: 0;
    color: #52657d;
    line-height: 1.7;
}

.project-gate-action {
    width: fit-content;
    min-height: 42px;
    margin-top: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(135deg, #174f89, #2563a8);
    font-size: .86rem;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(37, 99, 168, .2);
}

.project-gate-card.accent .project-gate-action {
    background: linear-gradient(135deg, #08766d, #0f9f91);
}

.project-gate-card.tools .project-gate-action {
    background: linear-gradient(135deg, #4f3a91, #725cc4);
}

@media (max-width: 1050px) {
    .project-gate-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .project-hub {
        padding-top: 54px;
    }

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

    .project-gate-card {
        min-height: 0;
    }
}

@media (max-width: 520px) {
    .project-hub {
        padding-inline: 14px;
    }

    .project-hub-head {
        text-align: left;
    }

    .project-hub-head h1,
    .project-hub-head p {
        margin-left: 0;
    }

    .project-gate-card {
        border-radius: 18px;
    }

    .project-gate-action {
        width: 100%;
    }
}

@media (min-width: 1700px) {
    .project-gate-grid {
        width: min(1420px, 100%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .project-gate-card,
    .project-gate-media img {
        transition: none !important;
    }
}
