.hrmg-home-projects,
.hrmg-home-projects * {
    box-sizing: border-box;
}

.hrmg-home-projects {
    --hrmg-ink: #0c1e31;
    --hrmg-orange: #ff642f;
    --hrmg-cyan: #35c3ec;
    --hrmg-mint: #55ddb0;
    position: relative;
    width: 100vw;
    max-width: none;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
    padding: clamp(76px, 8vw, 132px) 0;
    color: var(--hrmg-ink);
    background:
        radial-gradient(circle at 8% 8%, rgba(53, 195, 236, .12), transparent 28%),
        linear-gradient(180deg, #f7fafc 0%, #eef4f8 100%);
    overflow: hidden;
}

.hrmg-home-projects::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, var(--hrmg-orange), #ff9f68 48%, #552d73 100%);
}

.hrmg-home-projects__shell {
    position: relative;
    width: min(1840px, calc(100% - clamp(32px, 5vw, 96px)));
    margin: 0 auto;
}

.hrmg-home-projects__intro {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, .7fr);
    gap: clamp(42px, 7vw, 120px);
    align-items: end;
    margin-bottom: clamp(42px, 5vw, 76px);
}

.hrmg-home-projects__eyebrow {
    margin: 0 0 16px !important;
    color: var(--hrmg-orange) !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.hrmg-home-projects__intro h2 {
    max-width: 850px;
    margin: 0 !important;
    color: var(--hrmg-ink) !important;
    font-size: clamp(42px, 5.1vw, 78px) !important;
    font-weight: 800 !important;
    line-height: .98 !important;
    letter-spacing: -.055em;
}

.hrmg-home-projects__intro-action > p {
    margin: 0 0 24px !important;
    color: #536579 !important;
    font-size: clamp(16px, 1.35vw, 19px) !important;
    line-height: 1.65 !important;
}

.hrmg-home-projects__all {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--hrmg-ink) !important;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .055em;
    text-decoration: none !important;
    text-transform: uppercase;
}

.hrmg-home-projects__all svg,
.hrmg-project-card__cta svg {
    width: 22px;
    height: 22px;
    transition: transform .25s ease;
}

.hrmg-home-projects__all:hover svg,
.hrmg-home-projects__all:focus-visible svg,
.hrmg-project-card__link:hover .hrmg-project-card__cta svg,
.hrmg-project-card__link:focus-visible .hrmg-project-card__cta svg {
    transform: translateX(5px);
}

.hrmg-home-projects__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.42fr) minmax(350px, .78fr);
    grid-template-rows: repeat(2, minmax(280px, 1fr));
    gap: clamp(18px, 2vw, 30px);
    min-height: min(830px, 68vw);
}

.hrmg-project-card {
    position: relative;
    min-width: 0;
    min-height: 0;
    margin: 0;
    border-radius: clamp(22px, 2vw, 34px);
    background: #13283d;
    box-shadow: 0 22px 54px rgba(19, 40, 61, .13);
    overflow: hidden;
}

.hrmg-project-card.is-featured {
    grid-row: 1 / span 2;
}

.hrmg-project-card__link {
    position: absolute;
    inset: 0;
    display: block;
    color: #fff !important;
    text-decoration: none !important;
    overflow: hidden;
}

.hrmg-project-card__link:focus-visible {
    outline: 4px solid var(--hrmg-cyan);
    outline-offset: -6px;
}

.hrmg-project-card__visual,
.hrmg-project-card__visual picture {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
}

.hrmg-project-card__image {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    object-position: center top;
    filter: saturate(.9) contrast(1.02);
    transform: scale(1.002);
    transition: transform .7s cubic-bezier(.2, .7, .2, 1), filter .5s ease;
}

.hrmg-project-card__link:hover .hrmg-project-card__image,
.hrmg-project-card__link:focus-visible .hrmg-project-card__image {
    filter: saturate(1) contrast(1.04);
    transform: scale(1.045);
}

.hrmg-project-card__placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, .18);
    font-size: clamp(70px, 10vw, 150px);
    font-weight: 800;
    letter-spacing: .08em;
    background: linear-gradient(135deg, #0d2235, #432943);
}

.hrmg-project-card__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(7, 18, 30, .05) 24%, rgba(7, 18, 30, .92) 100%),
        linear-gradient(90deg, rgba(7, 18, 30, .22), transparent 70%);
    transition: background .35s ease;
}

.hrmg-project-card.is-supporting .hrmg-project-card__shade {
    background: linear-gradient(180deg, rgba(7, 18, 30, .03) 12%, rgba(7, 18, 30, .94) 100%);
}

.hrmg-project-card__number {
    position: absolute;
    top: clamp(22px, 2.5vw, 36px);
    right: clamp(22px, 2.5vw, 36px);
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    backdrop-filter: blur(12px);
    background: rgba(9, 24, 38, .3);
}

.hrmg-project-card__content {
    position: absolute;
    inset: auto clamp(28px, 4vw, 58px) clamp(28px, 4vw, 58px);
    z-index: 1;
    max-width: 760px;
}

.hrmg-project-card.is-supporting .hrmg-project-card__content {
    inset: auto clamp(24px, 2.5vw, 38px) clamp(24px, 2.5vw, 38px);
}

.hrmg-project-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    margin-bottom: 12px;
    color: var(--hrmg-mint);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.hrmg-project-card h3 {
    max-width: 880px;
    margin: 0 !important;
    color: #fff !important;
    font-size: clamp(28px, 3.3vw, 54px) !important;
    font-weight: 800 !important;
    line-height: 1.05 !important;
    letter-spacing: -.035em;
}

.hrmg-project-card.is-supporting h3 {
    font-size: clamp(24px, 2.2vw, 34px) !important;
}

.hrmg-project-card__client {
    margin: 9px 0 0 !important;
    color: rgba(255, 255, 255, .75) !important;
    font-size: 14px !important;
    font-weight: 700;
    line-height: 1.35 !important;
}

.hrmg-project-card__summary {
    max-width: 660px;
    margin: 16px 0 0 !important;
    color: rgba(255, 255, 255, .82) !important;
    font-size: clamp(14px, 1.25vw, 17px) !important;
    line-height: 1.55 !important;
}

.hrmg-project-card.is-supporting .hrmg-project-card__summary {
    display: -webkit-box;
    margin-top: 10px !important;
    font-size: 14px !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.hrmg-project-card__cta {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    margin-top: clamp(18px, 2.5vw, 30px);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.hrmg-project-card.is-supporting .hrmg-project-card__cta {
    margin-top: 14px;
}

@media (max-width: 1050px) {
    .hrmg-home-projects__grid {
        grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
        min-height: 720px;
    }

    .hrmg-project-card.is-featured .hrmg-project-card__summary {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        overflow: hidden;
    }
}

@media (max-width: 800px) {
    .hrmg-home-projects {
        padding: 76px 0;
    }

    .hrmg-home-projects__shell {
        width: min(100% - 32px, 680px);
    }

    .hrmg-home-projects__intro {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hrmg-home-projects__grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        min-height: 0;
    }

    .hrmg-project-card,
    .hrmg-project-card.is-featured {
        grid-row: auto;
        min-height: clamp(420px, 122vw, 590px);
    }

    .hrmg-project-card.is-supporting {
        min-height: clamp(350px, 92vw, 470px);
    }

    .hrmg-project-card.is-supporting h3 {
        font-size: clamp(27px, 7vw, 38px) !important;
    }
}

@media (max-width: 520px) {
    .hrmg-home-projects__intro h2 {
        font-size: clamp(40px, 12vw, 56px) !important;
    }

    .hrmg-project-card__content,
    .hrmg-project-card.is-supporting .hrmg-project-card__content {
        inset: auto 24px 28px;
    }

    .hrmg-project-card h3,
    .hrmg-project-card.is-supporting h3 {
        font-size: clamp(27px, 8vw, 38px) !important;
    }

    .hrmg-project-card__summary,
    .hrmg-project-card.is-supporting .hrmg-project-card__summary {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hrmg-project-card__image,
    .hrmg-home-projects__all svg,
    .hrmg-project-card__cta svg {
        transition: none;
    }
}
