.projects-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px 20px;
    background: rgba(28, 25, 23, 0.46);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.projects-modal.is-open {
    display: flex;
}

body.projects-open {
    overflow: hidden;
}

.projects-dialog {
    position: relative;
    width: min(920px, 100%);
    max-height: min(880px, calc(100vh - 40px));
    overflow: auto;
    padding: 42px 48px 52px;
    border-radius: 28px;
    background: #fffaf6;
    color: #1c1917;
    box-shadow: 0 28px 80px rgba(28, 25, 23, 0.28);
}

.projects-close {
    position: absolute;
    top: 22px;
    right: 22px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(28, 25, 23, 0.08);
    border-radius: 999px;
    background: #f4efe9;
    color: #44403c;
    cursor: pointer;
}

.projects-close svg {
    width: 16px;
    height: 16px;
}

.projects-close:hover {
    background: #efe8e0;
}

.projects-kicker {
    margin: 0 0 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #ea580c;
}

.projects-dialog h2 {
    margin: 0 0 12px;
    font-family: "Newsreader", Georgia, "Times New Roman", serif;
    font-size: clamp(40px, 5vw, 56px);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: #1c1917;
}

.projects-lead {
    max-width: 520px;
    margin: 0 0 40px;
    font-size: 16px;
    line-height: 1.5;
    color: #6b6560;
}

.projects-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 32px;
    align-items: stretch;
}

.project-item {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    color: inherit;
    text-decoration: none;
}

.project-card {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 168px;
    padding: 18px 20px;
    border: 1px solid rgba(28, 25, 23, 0.08);
    border-radius: 16px;
    background: #f6f3ee;
}

.project-card--steel {
    background: #000000;
    border-color: rgba(255, 255, 255, 0.08);
}

.project-logo-image,
.project-logo-image--mark {
    display: block;
    width: 100%;
    height: 132px;
    min-width: 0;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    background: transparent;
}

.project-copy {
    display: grid;
    grid-template-rows: 1.25em 1.45em;
    gap: 6px;
    margin-top: 14px;
}

.project-item h3 {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #3f3a36;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-item p {
    margin: 0;
    max-width: none;
    font-size: 15px;
    line-height: 1.45;
    color: #5c564f;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-logo {
    min-height: 52px;
    display: flex;
    align-items: center;
}

.logo-shop {
    width: 56px;
    height: 56px;
    display: block;
}

.project-logo--lockup {
    gap: 10px;
}

.logo-cube,
.logo-ticket {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    display: block;
}

.lockup-copy {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.lockup-copy strong {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #1d4ed8;
}

.lockup-copy strong em {
    font-style: normal;
}

.lockup-copy small {
    margin-top: 4px;
    font-size: 11px;
    color: #78716c;
}

.lockup-copy--tickets strong {
    color: #1e1b4b;
    letter-spacing: 0.02em;
}

.lockup-copy--tickets strong em {
    color: #7c3aed;
}

@media (hover: hover) and (pointer: fine) {
    .project-item:hover h3 {
        color: #ea580c;
    }
}

.projects-dialog::-webkit-scrollbar {
    width: 10px;
}

.projects-dialog::-webkit-scrollbar-thumb {
    background: rgba(120, 113, 108, 0.35);
    border-radius: 999px;
    border: 2px solid #fffaf6;
}

@media (max-width: 760px) {
    .projects-dialog {
        padding: 36px 22px 32px;
        border-radius: 22px;
    }

    .projects-list {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .projects-lead,
    .project-item p {
        max-width: none;
    }
}
