/* Project categories and compact image-first cards. */
#projects{scroll-margin-top:0}
#projects .section-label{margin-bottom:22px}
.project-filter-bar{display:flex;gap:34px;align-items:center;border-bottom:1px solid rgba(48,46,43,.16);margin-bottom:14px;overflow-x:auto;scrollbar-width:none}
.project-filter-bar button{position:relative;flex-shrink:0;border:0;background:none;color:#66625d;font:400 17px/1.4 var(--sans);padding:14px 0 18px;cursor:pointer;white-space:nowrap;transition:color .2s}
.project-filter-bar button span{display:inline-block;font-size:11px;vertical-align:super;margin-left:5px;color:inherit;opacity:.8;font-variant-numeric:tabular-nums}
.project-filter-bar button::after{content:"";position:absolute;bottom:0;left:0;right:0;height:2px;background:var(--indigo);transform:scaleX(0);transform-origin:left;transition:transform .23s ease}
.project-filter-bar button[aria-pressed="true"]{color:var(--indigo);font-weight:500}
.project-filter-bar button[aria-pressed="true"]::after{transform:scaleX(1)}
.project-filter-bar button:hover{color:var(--indigo)}
.project-filter-bar button:focus-visible{outline-offset:-3px}
.preview-caption{font-size:12px;line-height:1.5;color:#746e67;margin:0 0 32px}
.projects-list{row-gap:26px}
.project-card[hidden]{display:none!important}
.project-card.filter-enter{animation:filterIn .32s ease both}
@keyframes filterIn{from{opacity:0;translate:0 9px}to{opacity:1;translate:0 0}}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.preview-card{cursor:default}
.placeholder-art{width:100%;max-width:340px;aspect-ratio:4/5;display:flex;align-items:center;justify-content:center;position:relative;border-radius:8px;background:#d4dcd5;overflow:hidden;padding:18px}
.mock-browser{width:100%;background:#f5f2ea;box-shadow:0 24px 32px #273b3022;border:1px solid #ffffff80;border-radius:8px;transform:rotate(-4deg);overflow:hidden}
.mock-nav{display:flex;gap:4px;padding:10px;border-bottom:1px solid #30302b14}.mock-nav i{height:4px;width:4px;border-radius:50%;background:#9a9f95}
.mock-body{padding:24px 18px 18px}.mock-eyebrow{font-size:7px;letter-spacing:1.5px;color:#5b685b}
.mock-body strong{display:block;font:400 38px/1.02 var(--serif);margin:15px 0 20px;color:#314c40}
.mock-line{height:4px;width:86%;background:#bac3b8;margin:7px 0;border-radius:2px}.mock-line.short{width:60%}
.mock-tiles{display:flex;gap:8px;margin-top:24px}.mock-tiles i{height:65px;background:#bac6b6;flex:1;border-radius:3px}.mock-tiles i:nth-child(2){background:#d4c2a9}.mock-tiles i:nth-child(3){background:#e7ddd0}
.art-caption{position:absolute;bottom:14px;font-size:8px;letter-spacing:2px;color:#57665a}
.concept{background:#d9d5e4}.concept .mock-browser{width:70%;transform:rotate(6deg);border-radius:18px}.concept .mock-body strong{color:#656087}.concept .mock-tiles{flex-direction:column}.concept .mock-tiles i{flex:auto;height:27px;background:#ccc4df}.concept .art-caption{color:#746980}
.redesign{background:#d7dee0}.redesign .mock-browser{transform:rotate(-3deg)}.redesign .mock-body strong{color:#3e5e6b}.redesign .mock-tiles i{background:#bccbd1}.redesign .art-caption{color:#5f747a}
@media(min-width:701px) and (max-width:1000px){.projects-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.projects-list{grid-template-columns:1fr}.project-filter-bar{gap:25px}.project-filter-bar button{font-size:15px}.preview-caption{font-size:11px}.placeholder-art{max-width:310px;aspect-ratio:4/4.5}}
@media(prefers-reduced-motion:reduce){.project-card.filter-enter{animation:none}.project-filter-bar button::after{transition:none}}

.project-filter-bar::-webkit-scrollbar{display:none}

/* Compact image-first cards. */
#projects .project-card{min-height:0;display:flex;flex-direction:column;align-items:stretch;padding:12px;gap:0;border-radius:10px;background:linear-gradient(180deg,rgba(238,236,230,.82),rgba(224,221,214,.74));box-shadow:inset 0 1px 0 #ffffff57,0 10px 30px #1a18140a}
#projects .project-card::before{display:none}
#projects .project-right{order:0;display:block;min-height:0;padding:0;flex:none;aspect-ratio:4/3;overflow:hidden;border-radius:7px;background:rgba(213,210,203,.5)}
#projects .project-image{width:100%;height:100%;max-width:none;aspect-ratio:auto;filter:none;overflow:hidden;border-radius:7px}
#projects .project-image img{width:100%;height:100%;object-fit:contain!important;padding:12px;border-radius:7px}
#projects .project-card:hover{transform:translateY(-4px)}
#projects .project-card:hover .project-image{transform:scale(1.025);filter:none}
#projects .project-left{padding:20px 10px 0;flex:1;display:flex;flex-direction:column}
#projects .project-title{font-size:clamp(23px,2.1vw,29px);font-weight:600;letter-spacing:-.025em;line-height:1.15;min-height:0;margin:0 0 10px;color:var(--portfolio-ink,#302e2b)}
#projects .project-desc{font-size:14px;line-height:1.5;color:#66625d;margin:0 0 16px;max-width:none;min-height:3em}
#projects .project-tags{gap:6px;margin-top:auto}
#projects .tag{font-size:9px;letter-spacing:.04em;padding:5px 8px;line-height:1.3}
.project-card-footer{position:relative;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:20px 10px 0;padding:14px 0 3px;border-top:1px solid #302e2b20;font-size:12px;color:#746e67}
.case-link{color:#494540;font-size:12px}.case-link span{display:inline-block;margin-left:7px;transition:transform .25s}
a.project-card:hover .case-link{color:var(--indigo)}a.project-card:hover .case-link span{transform:translate(2px,-2px)}
.preview-card .case-link,.year-pending{color:#746e67}
#projects .placeholder-art{max-width:none;width:100%;height:100%;aspect-ratio:auto;padding:25px 35px 34px;border-radius:7px}
#projects .mock-browser{max-width:250px}
#projects .mock-body{padding:14px}
#projects .mock-body strong{font-size:28px;margin:8px 0 12px}
#projects .mock-tiles{margin-top:12px}
#projects .mock-tiles i{height:36px}
#projects .concept .mock-browser{max-width:125px}
#projects .concept .mock-tiles{flex-direction:row}
#projects .concept .mock-tiles i{height:25px}
@media(max-width:700px){#projects .project-title{font-size:25px}#projects .project-desc{min-height:0}#projects .project-left{padding-top:18px}.project-card-footer{margin-top:18px}}
@media(prefers-reduced-motion:reduce){.case-link span{transition:none}}

#projects .project-image img{transform:scale(1.4)}

/* Keep breathing room between category navigation and cards. */
.project-filter-bar{margin-bottom:32px}

.project-filter-bar button[hidden]{display:none!important}
