.work {
    padding-block: clamp(42px, 6vw, 72px);
    border-color: #e6e1d7;
    background: #f4f1e9;
    color: var(--ink);
}
.work .eyebrow { color: #5d4a86; }
.work .eyebrow span { color: var(--ink); }
.work .portfolio-intro { max-width: 58ch; margin-top: 12px; }

.portfolio-projects {
    display: grid;
    gap: clamp(20px, 3vw, 34px);
    margin-top: 26px;
}
.portfolio-project {
    --project-accent: #eee7fa;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "heading" "copy";
    gap: 10px;
    min-width: 0;
    padding-top: 18px;
    border-top: 1px solid #ded8cc;
    overflow-wrap: anywhere;
}
.portfolio-project--preview {
    grid-template-areas: "heading" "preview" "copy";
}
.portfolio-project--atelier { --project-accent: #e5edda; }
.portfolio-project--cafe { --project-accent: #f4e2d9; }
.portfolio-project-heading {
    grid-area: heading;
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 6px 16px;
    min-width: 0;
}
.portfolio-category { color: var(--muted); }
.portfolio-project-heading h3 {
    margin-top: 4px;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
}
.portfolio-stage { grid-area: preview; min-width: 0; margin: 0; }
.portfolio-capture {
    display: block;
    position: relative;
    border: 1px solid #29223626;
    border-radius: 9px;
    background: #f6f3ec;
    box-shadow: 0 5px 16px #201a2b15;
    overflow: hidden;
}
.portfolio-capture img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: auto 16 / 10;
}
.portfolio-zoom {
    position: absolute;
    right: 8px;
    bottom: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border: 1px solid #29223630;
    border-radius: 5px;
    background: #fffdf7;
    color: var(--ink);
    font-size: .75rem;
    font-weight: 700;
}
.portfolio-zoom svg, .portfolio-link svg { width: 15px; height: 15px; }
.portfolio-capture:hover .portfolio-zoom { background: var(--lime); }
.portfolio-project-copy { grid-area: copy; min-width: 0; color: var(--muted); }
.portfolio-project-copy p { max-width: 68ch; }
.portfolio-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}
.portfolio-features li { padding: 3px 8px; border-radius: 4px; background: var(--project-accent); color: var(--ink); font-size: .75rem; font-weight: 700; }
.portfolio-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 750; text-underline-offset: 4px; }
.portfolio-link:hover { color: #5d4a86; }
.portfolio-contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 26px;
    padding-top: 16px;
    border-top: 1px solid #ded8cc;
}
.portfolio-contact p { font-weight: 750; }

@media (min-width: 761px) {
    .portfolio-project--preview {
        grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
        grid-template-rows: auto 1fr;
        grid-template-areas: "preview heading" "preview copy";
        align-items: start;
        column-gap: clamp(20px, 3.5vw, 42px);
    }
    .portfolio-project--preview .portfolio-project-heading { padding-top: 4px; }
}
