/* Work browsing: paper, clear hierarchy and one link per project. */
.portfolio-page #work{padding-bottom:54px}
.portfolio-page #work .work-filter-bar{margin:28px 0 32px;padding:18px 0 13px}
.portfolio-page #work .work-filters{gap:8px}
.portfolio-page #work .work-filters button{border-radius:3px;padding:10px 15px;font-size:12px}
.portfolio-page #work-projects{grid-template-columns:repeat(2,minmax(0,1fr));gap:44px 36px;margin-top:0;align-items:stretch}
.portfolio-page #work-projects>.project{position:relative;min-width:0;margin:0}
.portfolio-page #work-projects .project-card-link{display:flex;flex-direction:column;position:relative;height:100%;min-width:0;border-radius:3px;text-decoration:none;padding:0 0 6px;transition:background-color .2s}
.portfolio-page #work-projects .project-card-link:hover{background:color-mix(in srgb,var(--accent) 4%,transparent);text-decoration:none}
.portfolio-page #work-projects .project-card-link:focus-visible{outline:2px solid var(--accent);outline-offset:7px}
.portfolio-page #work-projects .project-image-link{margin:0;border:1px solid var(--line);border-radius:3px;overflow:hidden;transform:none}
.portfolio-page #work-projects .project-art{aspect-ratio:16/10!important;transform:none!important;transition:none}
.portfolio-page #work-projects .project-art .project-shot-viewport>img{width:100%!important;height:100%!important;max-width:100%!important;object-fit:contain!important;object-position:center!important}
.portfolio-page #work-projects .project-meta{margin:18px 0 7px;font:500 9px/1.6 Satoshi,sans-serif;letter-spacing:1px}
.portfolio-page #work-projects h2{font:500 clamp(21px,2.1vw,26px)/1.3 Ranade,Satoshi,sans-serif;letter-spacing:-.5px;margin:0 0 10px;color:var(--ink)}
.portfolio-page #work-projects .project-summary{flex:none;font:400 14px/1.75 Satoshi,sans-serif;max-width:58ch;margin:0;color:var(--muted)}
.portfolio-page #work-projects .project-highlight{flex:none;margin:14px 0 20px;font:500 12px/1.65 Satoshi,sans-serif;color:var(--ink)}
.portfolio-page #work-projects .project-highlight small{display:block;font:400 10px/1.6 Satoshi,sans-serif;color:var(--muted);margin-top:3px}
.portfolio-page #work-projects .case-link{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;padding-top:14px;margin-top:auto;border-top:1px solid var(--line);font:500 12px/1.5 Satoshi,sans-serif;color:var(--ink)}
.portfolio-page #work-projects .case-link>span{font-size:18px;color:var(--accent);transition:transform .2s}
.portfolio-page #work-projects .project-card-link:is(:hover,:focus-visible) .case-link>span{transform:translateX(4px)}
/* Keep editorial overlay text separate from generic screenshot span rules. */
.portfolio-page #work-projects .project-art>.luxury-cover-label{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;gap:0;inset:auto 0 0;padding:40px 24px 20px;line-height:1.2;font-size:inherit}
.portfolio-page #work-projects .luxury-cover-label>strong{display:block;font:400 clamp(22px,2.4vw,30px)/1.2 Georgia,serif;color:#fff3dc;letter-spacing:-.5px;max-width:100%}
.work-invitation.section{display:flex;align-items:center;justify-content:space-between;gap:40px;border-top:1px solid var(--line);border-bottom:0;padding:45px 0 65px}
.work-invitation .eyebrow{margin-bottom:16px}
.work-invitation h2{font:400 clamp(30px,3.4vw,44px)/1.2 Ranade,Satoshi,sans-serif;letter-spacing:-1px;margin:0 0 16px}
.work-invitation p:not(.eyebrow){max-width:58ch;margin:0;color:var(--muted);font-size:14px}
.work-invitation-actions{display:flex;flex:none;flex-direction:column;align-items:center;gap:16px}
.work-invitation-actions .button{display:inline-flex;align-items:center;gap:36px;border-radius:3px}
.work-invitation-actions .text-link{font-size:12px}
@media(max-width:760px){
 .portfolio-page #work{padding-top:36px;padding-bottom:36px}
 .portfolio-page #work-projects{grid-template-columns:minmax(0,1fr);gap:32px}
 .portfolio-page #work .work-filters button{padding:10px 12px;font-size:11px}
 .portfolio-page #work-projects h2{font-size:23px}
 .portfolio-page #work-projects .project-summary{font-size:13px}
 .portfolio-page #work-projects .project-highlight{font-size:12px;margin-top:11px}
 .portfolio-page #work-projects .project-art>.luxury-cover-label{padding:30px 18px 17px}
 .work-invitation.section{align-items:flex-start;flex-direction:column;gap:24px;padding:32px 0 44px}
 .work-invitation-actions{align-items:flex-start}
}
@media(prefers-reduced-motion:reduce){.portfolio-page #work-projects .project-card-link,.portfolio-page #work-projects .case-link>span{transition:none}.portfolio-page #work-projects .project-card-link:is(:hover,:focus-visible) .case-link>span{transform:none}}

/* The workbench shares the same phone gutters as the project collection. */
@media(max-width:760px){
 .portfolio-page .portfolio-build-note.section{width:calc(100% - 40px);max-width:1224px;margin:0 auto 32px;padding:24px 0;min-width:0}
 .portfolio-page .portfolio-build-note .activity-layout{display:grid;grid-template-columns:minmax(0,1fr);width:100%;min-width:0;gap:28px;padding:0}
 .portfolio-page .portfolio-build-note .activity-copy{grid-column:1;grid-row:auto;min-width:0;width:100%}
 .portfolio-page .portfolio-build-note .current-build-project{grid-template-columns:40px minmax(0,1fr);gap:14px;width:100%;max-width:100%}
 .portfolio-page .portfolio-build-note .current-build-project>img{width:40px;height:40px}
 .portfolio-page .portfolio-build-note .current-build-project>span{min-width:0;overflow-wrap:break-word}
 .portfolio-page .portfolio-build-note .activity-paper{grid-column:1;grid-row:auto;width:100%;max-width:100%;min-width:0;margin:0;padding:20px 16px;box-sizing:border-box;transform:none}
 .portfolio-page .portfolio-build-note .activity-heading{flex-wrap:wrap;gap:4px 14px}
 .portfolio-page .portfolio-build-note .activity-period{white-space:normal}
 .portfolio-page .portfolio-build-note .activity-foot{flex-wrap:wrap;gap:10px}
 .portfolio-page .portfolio-build-note .activity-grid{grid-template-columns:repeat(10,minmax(0,1fr));gap:5px}
}

@media(max-width:760px){.portfolio-page #work-projects .project-art.imperio-luxury-cover>img{object-fit:contain!important}}
