/* V9: compact drag/swipe case-study carousel; public visual system unchanged. */
.projects-carousel{position:relative;min-width:0;--carousel-fade:var(--surface-soft);}
.projects-carousel__top{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 13px;}
.projects-carousel__hint{font:700 10px/1.4 var(--body);letter-spacing:.13em;color:var(--text-soft)}
.projects-carousel__hint span{color:var(--wine);font-size:17px;margin-left:6px}
.projects-carousel.is-hinting .projects-carousel__hint span{animation:ph-slide-hint 1.4s ease-in-out 1}
@keyframes ph-slide-hint{0%,100%{transform:translateX(0)}50%{transform:translateX(13px)}}
.projects-carousel__buttons{display:flex;gap:8px}
.projects-carousel__buttons button{width:44px;height:44px;border-radius:50%;border:1px solid var(--line);background:var(--surface);color:var(--wine);font:600 19px/1 var(--body);transition:transform .2s,border-color .2s,opacity .2s}
.projects-carousel__buttons button:hover:not(:disabled){transform:translateY(-2px);border-color:var(--wine)}
.projects-carousel__buttons button:disabled{opacity:.3;cursor:default}
.projects-carousel__viewport{overflow-x:auto;overflow-y:hidden;overscroll-behavior-inline:contain;scrollbar-width:none;scroll-snap-type:x proximity;touch-action:pan-x pan-y;cursor:grab;padding:6px 2px 25px;outline-offset:5px}
.projects-carousel__viewport::-webkit-scrollbar{display:none}
.projects-carousel__viewport.is-dragging{cursor:grabbing;scroll-snap-type:none;user-select:none}
.projects-carousel__viewport.is-dragging *{cursor:grabbing!important;user-select:none!important}
.projects-carousel .projects__grid{display:flex;align-items:stretch;gap:clamp(14px,2vw,24px);width:max-content;min-width:100%;}
.projects-carousel .project-card,.projects-carousel .project-card--featured{display:flex;flex-direction:column;flex:none;width:clamp(300px,38vw,505px);min-height:0;grid-column:auto;scroll-snap-align:start}
.projects-carousel .project-card--featured{width:clamp(330px,58vw,720px)}
.projects-carousel .project-card__visual,.projects-carousel .project-card--featured .project-card__visual{min-height:clamp(260px,28vw,370px)}
.projects-carousel .project-card__info,.projects-carousel .project-card--featured .project-card__info{padding:clamp(23px,2.8vw,35px);justify-content:flex-start}
.projects-carousel .project-card--featured h3{font-size:clamp(2rem,3.2vw,3.6rem)}
.projects-carousel::before,.projects-carousel::after{content:'';position:absolute;top:55px;bottom:24px;width:clamp(23px,5vw,65px);pointer-events:none;z-index:2;opacity:0;transition:opacity .28s}
.projects-carousel::before{left:-2px;background:linear-gradient(90deg,var(--carousel-fade),transparent)}
.projects-carousel::after{right:-2px;background:linear-gradient(270deg,var(--carousel-fade),transparent)}
.projects-carousel[data-can-prev="true"]::before,.projects-carousel[data-can-next="true"]::after{opacity:1}
@media(max-width:680px){.projects-carousel .project-card,.projects-carousel .project-card--featured{width:min(85vw,380px)}.projects-carousel .project-card__visual,.projects-carousel .project-card--featured .project-card__visual{min-height:240px}.projects-carousel__buttons button{width:44px;height:44px}}
@media(hover:none){.projects-carousel__viewport{cursor:auto}.projects-carousel .project-card:hover{transform:none}}
@media(prefers-reduced-motion:reduce){.projects-carousel *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

/* Coherent 24px line-art family. Draw strokes only when in view or hovered. */
.skill__glyph,.v9-skill-icon-preview svg{stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round;fill:none}
.skill__glyph :is(path,circle,rect,line,polyline){stroke-dasharray:140;stroke-dashoffset:140;transition:stroke-dashoffset .95s cubic-bezier(.2,.7,.2,1)}
.skill.is-visible .skill__glyph :is(path,circle,rect,line,polyline),.skill:hover .skill__glyph :is(path,circle,rect,line,polyline){stroke-dashoffset:0}
@media(prefers-reduced-motion:reduce){.skill__glyph :is(path,circle,rect,line,polyline){stroke-dashoffset:0;transition:none}}

html.ph-preview-native {scroll-behavior:auto;overscroll-behavior-y:contain}
html.ph-preview-native body:not(.dialog-open) {overscroll-behavior-y:contain}
