.project {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 4.5rem;
    align-items: center;
    padding: 5rem 0;
    border-top: 1px solid var(--border-subtle);
}

.project.flip { grid-template-columns: 5fr 7fr; }
.project.flip .p-img { order: 2; }

.p-img img { width: 100%; }
.project.tall .p-img img { max-width: 440px; margin: 0 auto; }

.p-text h2 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.875rem, 3.2vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.p-sub {
    font-size: 1rem;
    color: var(--text-dim);
    margin-bottom: 1.25rem;
}

.p-text p.body { font-size: 1rem; color: #c5c5d8; line-height: 1.72; margin-bottom: 1.75rem; }

.gh { display: inline-flex; align-items: center; gap: 0.5rem; }
.gh svg { width: 18px; height: 18px; fill: currentColor; }

.note {
    padding: 3rem 0 6rem;
    font-size: 0.75rem;
    line-height: 1.6;
    color: var(--text-ghost);
    max-width: 760px;
}

@media (max-width: 860px) {
    .project, .project.flip { grid-template-columns: 1fr; gap: 2.5rem; padding: 3.5rem 0; }
    .project.flip .p-img { order: 0; }
}
