.portfolio { max-width: 820px; margin: 0 auto; padding: 28px 43px 48px; width: 100%; box-sizing: border-box; }
.portfolio a, .portfolio a:visited { color: inherit; text-decoration: none; }
.project-browser { min-width: 0; }
.project-tools { margin-bottom: 26px; }
.project-search { box-sizing: border-box; width: 100%; padding: 13px 15px; font: inherit; font-size: 13px; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 6px; }
.project-search::placeholder { color: var(--muted); }
.project-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.project-filters button { font: inherit; font-size: 11px; color: var(--soft); border: 1px solid var(--border); border-radius: 4px; background: transparent; padding: 7px 10px; cursor: pointer; }
.project-filters button[aria-pressed="true"] { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
.project-card { min-width: 0; }
.project-card[hidden] { display: none; }
.project-card > a { display: block; height: 100%; }
.project-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; object-position: center; border: 1px solid var(--border); border-radius: 6px; box-sizing: border-box; background: #191a1b; transition: border-color .18s ease, transform .18s ease; }
.project-card img.project-preview-contain { object-fit: contain; object-position: center; }
.project-subproject { border-left: 1px solid var(--border); margin-top: 18px; padding-left: 16px; }
.project-card .project-subproject h3 { font-size: 13px; margin-top: 0; }
.project-card .project-subproject p { min-height: 0; }
.project-card.is-text { border-top: 1px solid var(--border); padding-top: 16px; }
.project-card.is-text h2 { margin-top: 0; }
.project-card.is-text p { min-height: 3.5em; }
.contact-intro { font-size: 13px; color: var(--soft); margin: 0 0 22px; line-height: 1.75; }
.contact-intro a { color: var(--accent); text-decoration: none; }
.project-card a:hover img { border-color: var(--accent); transform: translateY(-2px); }
.project-card h2, .project-card h3 { font-size: 15px; font-weight: 500; margin: 14px 0 8px; display: flex; justify-content: space-between; gap: 8px; }
.project-card h2 span, .project-card h3 span { color: var(--muted); font-weight: 400; }
.project-card p { margin: 0; font-size: 12px; color: var(--soft); line-height: 1.75; }
.project-empty { color: var(--soft); font-size: 13px; padding: 30px 0; }
.featured-work { margin: 30px 0; }
.featured-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.featured-heading h2 { font-size: 13px; font-weight: 400; color: var(--accent); margin: 0; }
.featured-heading a { font-size: 11px; color: var(--soft); text-decoration: none; }
.featured-work .project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; text-align: left; }
.featured-work .project-card a { color: var(--text); text-decoration: none; }
.featured-work .project-card h3 { font-size: 12px; }
.featured-work .project-card p { font-size: 11px; }
@media (max-width: 700px) { .portfolio { padding: 24px; } }
@media (max-width: 540px) { .project-grid, .featured-work .project-grid { grid-template-columns: 1fr; gap: 26px; } .featured-work .project-card h3 { font-size: 15px; } .featured-work .project-card p { font-size: 12px; } }
@media (prefers-reduced-motion: reduce) { .project-card img { transition: none; } .project-card a:hover img { transform: none; } }

.projects-page .project-footer { border-top: 0; margin-top: 40px; }
