/* Uma galeria aberta: imagens, legendas e espaço para o trabalho respirar. */
.project-gallery{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(36px,4.5vw,72px) clamp(20px,2.5vw,40px);align-items:start}
.gallery-item{min-width:0}
.gallery-media{position:relative;display:block;overflow-x:hidden;overflow-y:auto;aspect-ratio:1265/712;background:#dedbd4;scroll-behavior:auto;scrollbar-width:thin;scrollbar-color:#8a8780 #dedbd4}
.gallery-media img{display:block;width:100%;height:auto;max-width:100%;object-fit:initial}
.gallery-media::-webkit-scrollbar{width:5px}.gallery-media::-webkit-scrollbar-track{background:#dedbd4}.gallery-media::-webkit-scrollbar-thumb{background:#8a8780;border:0;border-radius:0}
.gallery-media:focus-visible,.gallery-more:focus-visible,.preview-toggle:focus-visible{outline:2px solid var(--accent-text);outline-offset:5px}
.gallery-preview-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;border-bottom:1px solid var(--line)}
.preview-hint{font-size:11px;color:var(--muted)}.preview-hint-hover{display:none}
.preview-toggle{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:6px 0 6px 8px;border:0;background:none;color:var(--ink);font-size:11px;font-weight:600;white-space:nowrap}
.preview-toggle svg{width:15px;height:15px}.preview-pause{display:none}
.preview-toggle[aria-pressed=true] .preview-play{display:none}.preview-toggle[aria-pressed=true] .preview-pause{display:block}
.preview-toggle:hover{color:var(--accent-text)}
.gallery-caption{display:flex;justify-content:space-between;align-items:center;gap:16px;padding-top:15px}
.gallery-title{display:flex;flex-direction:column;gap:5px;min-width:0}
.gallery-title strong{font-size:clamp(22px,1.8vw,28px);font-weight:600;letter-spacing:-.03em;line-height:1.2}
.gallery-title small{font-size:13px;color:var(--muted);line-height:1.5}
.gallery-actions{display:flex;flex-direction:column;align-items:flex-end;flex-shrink:0}
.gallery-more{display:inline-flex;align-items:center;gap:10px;flex-shrink:0;font-size:12px;font-weight:600;min-height:44px}
.gallery-more svg{width:21px;height:21px;transition:transform .3s var(--motion-arrive)}
.gallery-more:hover,.gallery-more:focus-visible{color:var(--accent-text)}
@media(hover:hover) and (pointer:fine){
 .can-preview-motion .preview-hint-manual{display:none}.can-preview-motion .preview-hint-hover{display:inline}
 .gallery-more:hover svg{transform:translate(2px,-2px)}
}
/* Entrada breve por recorte, sem loop e sem cursor sobre a imagem. */
.gallery-item .gallery-media{transition:clip-path .8s var(--motion-arrive)}
.gallery-item .gallery-caption{transition:opacity .5s ease .1s,transform .6s var(--motion-arrive) .1s}
.gallery-item.is-pending .gallery-media{clip-path:inset(10% 0 0 0)}
.gallery-item.is-pending .gallery-caption{opacity:0;transform:translateY(8px)}
.motion-paused :is(.gallery-media,.gallery-media img,.gallery-caption,.gallery-more svg){transition:none!important;transform:none!important;clip-path:none!important;opacity:1!important}
@media(prefers-reduced-motion:reduce){
 :is(.gallery-media,.gallery-media img,.gallery-caption,.gallery-more svg){transition:none!important;transform:none!important;clip-path:none!important;opacity:1!important}
}

.projects-page{background:var(--paper);color:var(--ink);padding-block:clamp(48px,5vw,80px) clamp(56px,6vw,96px)}
.projects-intro{display:flex;justify-content:space-between;align-items:end;gap:32px;margin-bottom:clamp(36px,4vw,64px)}
.projects-title{font-size:clamp(56px,6.5vw,96px);font-weight:800;letter-spacing:-.04em;line-height:1.02}
.project-period{color:var(--orange)}
.projects-intro>p{font-size:16px;line-height:1.65;color:var(--muted);padding-bottom:4px;max-width:38ch}
.projects-toolbar{display:flex;justify-content:space-between;align-items:center;gap:24px;padding-bottom:12px;margin-bottom:28px;border-bottom:1px solid var(--line);scroll-margin-top:24px}
.projects-filters{display:flex;flex-wrap:wrap;gap:0 28px}
.projects-filters button{position:relative;min-height:44px;padding:10px 0;border:0;background:none;color:var(--muted);font-size:14px;font-weight:600;transition:color .2s}
.projects-filters button sup{margin-left:5px;font-size:10px;font-weight:400;font-variant-numeric:tabular-nums}
.projects-filters button:after{content:'';position:absolute;left:0;right:0;bottom:3px;height:2px;background:var(--orange);transform:scaleX(0);transform-origin:left;transition:transform .25s var(--motion-arrive)}
.projects-filters button:hover,.projects-filters button[aria-pressed=true]{color:var(--ink)}
.projects-filters button[aria-pressed=true]:after{transform:scaleX(1)}
.projects-filters button:focus-visible{outline:2px solid var(--accent-text);outline-offset:3px}
.projects-toolbar>p{font-size:12px;color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums}
.projects-disclosure{font-size:12px;color:var(--muted);margin-top:36px}
.projects-invitation{display:flex;justify-content:space-between;align-items:center;gap:28px;border-top:1px solid var(--line);padding-top:clamp(32px,4vw,64px);margin-top:clamp(48px,5vw,80px)}
.projects-invitation h2{font-size:clamp(30px,3.2vw,48px);line-height:1.1;letter-spacing:-.04em}
.projects-invitation .text-link{font-size:15px;min-height:44px;flex-shrink:0}
.home-projects{background:#f6f3ee;padding-block:var(--home-space,clamp(56px,6vw,96px))}
.home-projects .section-heading{margin-bottom:clamp(28px,3vw,44px)}
.home-projects .section-heading h2{font-size:clamp(34px,3.3vw,50px)}
.home-projects .section-heading .text-link{font-size:13px;min-height:44px}
.project-capture-note{font-size:12px;color:var(--muted);margin-top:28px}
@media(max-width:820px){
 .projects-intro{align-items:start;flex-direction:column;gap:20px}
 .projects-filters{gap:0 22px}
 .project-gallery{gap:40px 24px}
 .gallery-caption{align-items:start;gap:10px}
 .gallery-more{gap:6px}
 .gallery-title small{max-width:19ch}
}
@media(max-width:640px){
 .project-gallery{grid-template-columns:1fr}
 .projects-toolbar{flex-wrap:wrap;gap:4px}
 .projects-filters{width:100%;justify-content:space-between;gap:0 12px}
 .projects-toolbar>p{margin-top:5px}
 .projects-invitation{align-items:start;flex-direction:column;gap:20px}
 .home-projects .section-heading{align-items:start;flex-direction:column;gap:14px}
 .home-projects .section-heading h2{font-size:31px}
}
