/* Homepage project cards only. Native scrolling keeps touch gestures lightweight. */
.home-carousel { min-width:0; }
.home-carousel__track {
  display:grid; grid-auto-flow:column; grid-auto-columns:100%;
  gap:var(--space-6); overflow-x:auto; overscroll-behavior-x:contain;
  scroll-snap-type:x mandatory; scrollbar-width:none; position:relative;
  border-radius:24px; touch-action:pan-x pan-y;
}
.home-carousel__track::-webkit-scrollbar { display:none; }
.home-carousel__track:focus-visible { outline:2px solid var(--color-primary); outline-offset:4px; }
.home-carousel__track .home-project__card { min-width:0; scroll-snap-align:start; scroll-snap-stop:always; }
.home-carousel__track .home-project__card > img { height:380px; }
.home-carousel__controls {
  display:flex; align-items:center; justify-content:space-between;
  gap:var(--space-4); padding-top:var(--space-4);
}
.home-carousel__controls[hidden] { display:none; }
.home-carousel__count { color:var(--color-text-muted); font-size:var(--text-xs); font-variant-numeric:tabular-nums; min-width:4rem; }
.home-carousel__dots { display:flex; gap:var(--space-1); }
.home-carousel__dots button { width:32px; height:40px; display:grid; place-items:center; }
.home-carousel__dots button::after { content:""; width:6px; height:6px; border-radius:50%; background:var(--color-border); transition:background 160ms ease; }
.home-carousel__dots button[aria-pressed="true"]::after { background:var(--color-primary); }
.home-carousel__arrows { display:flex; gap:var(--space-2); }
.home-carousel__arrows button { width:40px; height:40px; border:1px solid var(--color-border); border-radius:50%; display:grid; place-items:center; color:var(--color-text); }
.home-carousel__arrows button:hover:not(:disabled) { border-color:var(--color-primary); color:var(--color-primary); }
.home-carousel__arrows button:disabled { opacity:.3; cursor:default; }
@media (pointer:fine) {
  .home-carousel__track { cursor:grab; }
  .home-carousel__track.is-dragging { cursor:grabbing; scroll-snap-type:none; user-select:none; }
}
@media (max-width:860px) {
  .home-carousel__track .home-project__card > img { height:300px; min-height:0; }
}
@media (prefers-reduced-motion:reduce) {
  .home-carousel__dots button::after { transition:none; }
}
