/* Identity — real project motion showcase (desktop + touch) */
.projects{min-width:0}
.projects .project-grid,.inner-page .projects .project-grid{display:flex!important;align-items:stretch;gap:19px;min-width:0;max-width:100%;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-behavior:smooth;scrollbar-width:none;-webkit-overflow-scrolling:touch;overscroll-behavior-inline:contain;padding:0 3px 15px}
.projects .project-grid::-webkit-scrollbar{display:none}
.projects .project-card{position:relative;flex:0 0 min(455px,83%);min-width:0;scroll-snap-align:start}
.inner-page .projects .project-card{flex-basis:min(485px,46%)}
.projects .project-image.project-motion{height:auto;aspect-ratio:920/540;overflow:hidden;background:#151515;border-radius:8px;isolation:isolate;box-shadow:0 12px 28px rgba(10,10,10,.07)}
.project-motion .project-video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#181818;display:block}
.project-motion:after{content:"";position:absolute;inset:50% 0 0;pointer-events:none;background:linear-gradient(transparent,rgba(0,0,0,.35))}
.project-motion__label{position:absolute;z-index:2;top:14px;left:14px;display:inline-flex;gap:8px;align-items:center;padding:8px 11px;color:white;background:#0b0b0b95;backdrop-filter:blur(10px);border:1px solid #ffffff30;border-radius:30px;letter-spacing:.09em;text-transform:uppercase;font-size:9px;font-weight:750;pointer-events:none}
.project-motion__label::before{content:"";width:6px;height:6px;background:#f4f2e8;border-radius:50%;opacity:.9}
.project-motion__toggle{position:absolute;bottom:14px;right:14px;z-index:3;display:grid;place-items:center;width:38px;height:38px;border:1px solid #ffffff77;border-radius:50%;background:#111b;color:#fff;backdrop-filter:blur(12px);font:600 15px/1 Arial,sans-serif;cursor:pointer;transition:background .2s ease,transform .2s ease}
.project-motion__toggle:hover{background:#111;transform:scale(1.04)}
.project-motion__timeline{position:absolute;z-index:3;bottom:0;left:0;right:0;height:3px;background:#ffffff38;overflow:hidden;pointer-events:none}
.project-motion__timeline>span{display:block;height:100%;width:0%;background:#fff;transform-origin:left}
.project-motion__timeline>span{transition:width .15s linear}
.projects .project-caption{margin-top:14px;align-items:flex-start;gap:14px}
.projects .project-caption>div{min-width:0}
.projects .project-caption .project-category{font-size:10px;line-height:1.35;font-weight:800;color:#a43a3c;text-transform:uppercase;letter-spacing:.12em;margin-bottom:5px;display:block}
.projects .project-caption h3{font-family:Manrope,Arial,sans-serif;font-size:18px;letter-spacing:-.04em;line-height:1.3;font-weight:800;margin:0 0 6px}
.projects .project-caption p{font-size:12px;line-height:1.5;margin:0;color:#666;max-width:310px}
.projects .project-caption .project-replay{border:1px solid #bbb5a9;background:transparent;color:#151515;border-radius:50%;width:35px;height:35px;display:grid;place-items:center;cursor:pointer;flex:none;font-size:19px;transition:background .2s}
.projects .project-caption .project-replay:hover{background:#111;color:#fff}
.projects .carousel-controls{display:flex!important;justify-content:space-between;align-items:center;grid-column:2;margin:8px 0 0;padding:0 2px;width:100%}
.projects .carousel-count{font-size:12px;letter-spacing:.13em;color:#5c554b;font-weight:700;font-variant-numeric:tabular-nums}
.projects .carousel-buttons{display:flex;gap:9px}
.projects .carousel-arrow{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;border:1px solid #ada79c;background:transparent;color:#151515;font-size:20px;cursor:pointer;transition:background .2s,color .2s}
.projects .carousel-arrow:hover{background:#111;color:white}
.projects .carousel-arrow:disabled{opacity:.4}
.projects .carousel-hint{display:none!important}
.projects .demo-note{grid-column:2;color:#75716b;font-size:11px;line-height:1.5;margin-top:5px}
.inner-page .projects .carousel-controls{padding:0 2px}
@media(min-width:1201px){.projects{grid-template-columns:29% minmax(0,1fr)}}
@media(max-width:1200px){.projects .project-card{flex-basis:min(475px,60%)}}
@media(max-width:760px){
 .projects .project-grid,.inner-page .projects .project-grid{display:flex!important;gap:13px;padding:0 6% 15px;scroll-padding-inline:6%}
 .projects .project-card,.inner-page .projects .project-card{flex:0 0 min(85vw,390px)}
 .projects .project-image.project-motion{height:auto;aspect-ratio:920/540;border-radius:6px}
 .project-motion__label{top:11px;left:11px;font-size:8px;padding:7px 9px}
 .project-motion__toggle{width:35px;height:35px;right:11px;bottom:11px}
 .projects .project-caption{margin-top:11px}
 .projects .project-caption h3{font-size:17px}
 .projects .project-caption p{font-size:11.5px}
 .projects .carousel-controls,.inner-page .projects .carousel-controls{padding:4px 6% 0;margin:0;grid-column:auto}
 .projects .demo-note,.inner-page .projects .demo-note{padding:0 6%;grid-column:auto;margin-top:10px}
}
@media(prefers-reduced-motion:reduce){
 .projects .project-grid{scroll-behavior:auto}
 .project-motion__timeline>span{transition:none}
}