/* Compact cards share the selected-projects page's palette and rounded frames. */
.home-projects{padding:80px 0 90px;margin:0 var(--gutter);border-top:1px solid #e4e4df;scroll-margin-top:30px}
/* Reuse .grid-header so Projects and Snippets share typography and alignment. */
.carousel-heading{align-items:flex-end}
.carousel-heading>a{color:inherit;font-size:13px;text-decoration:none;padding:12px 0}
.carousel-shell{min-width:0}
.project-carousel{display:flex;gap:20px;min-width:0;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding:3px;padding:6px 3px;overscroll-behavior-x:contain;scrollbar-width:none;cursor:grab;user-select:none}
.project-carousel::-webkit-scrollbar{display:none}
.carousel-item{--card:#102625;--ink:#f3f4ee;--muted:#bff5d9;--art:#d8e4d8;flex:0 0 clamp(280px,28vw,350px);height:344px;display:grid;grid-template-rows:180px minmax(0,1fr);min-width:0;overflow:hidden;border-radius:22px;background:var(--card);color:var(--ink);scroll-snap-align:start;text-decoration:none;transition:transform .3s,box-shadow .3s}
.carousel-art{min-width:0;min-height:0;display:flex;align-items:center;justify-content:center;overflow:hidden;background:var(--art)}
.carousel-art img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .5s cubic-bezier(.22,1,.36,1)}
.carousel-copy{padding:22px 24px 24px;display:flex;flex-direction:column;align-items:flex-start;min-width:0}
.carousel-copy>span{font:500 11px/1.5 PortfolioCircular,Arial,sans-serif;color:var(--muted);margin-bottom:12px}
.carousel-copy h3{font:400 clamp(25px,2.4vw,31px)/1.06 Manrope,Arial,sans-serif;letter-spacing:-.055em;margin:0;max-width:100%;text-wrap:pretty}
.carousel-item:hover{transform:translateY(-3px);box-shadow:0 7px 15px #10262514}
.carousel-item:hover img{transform:scale(1.025)}
.carousel-item[href*="earth-design"]{--card:#173d31;--ink:#f1f3dc;--muted:#c2d6a8;--art:#11372b}
.carousel-item[href*="project-relate"]{--card:#e8efff;--ink:#243258;--muted:#42609a;--art:#f4f7ff}
.carousel-item[href*="project-relate"] .carousel-art{padding:12px}
.carousel-item[href*="project-relate"] img{object-fit:contain}
.carousel-item[href*="attention-flow"]{--card:#e4e8fb;--ink:#24152f;--muted:#524664;--art:#e45136}
.carousel-item[href*="attention-flow"] .carousel-art{padding:19px 24px}
.carousel-item[href*="attention-flow"] img{width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain;border:3px solid #312b38;border-radius:7px;box-shadow:0 9px 18px #39284d25;transform:rotate(3deg)}
.carousel-item[href*="attention-flow"]:hover img{transform:rotate(3deg) scale(1.025)}
.carousel-item[href*="burfi"]{--card:#64213d;--ink:#fcf6ee;--muted:#e6c5d0;--art:#eadbd5}
.carousel-item[href*="burfi"] .carousel-art{padding:15px 20px 23px;gap:19px}
.carousel-item[href*="burfi"] img{height:100%;width:auto;max-width:37%;object-fit:contain;border:2px solid #2b2228;border-radius:10px;box-shadow:0 10px 16px #4b1c3430;transform:rotate(-8deg)}
.carousel-item[href*="burfi"] img+img{transform:rotate(8deg) translateY(7px)}
.carousel-item[href*="burfi"]:hover img{transform:rotate(-8deg) translateY(-3px)}
.carousel-item[href*="burfi"]:hover img+img{transform:rotate(8deg) translateY(4px)}
.carousel-item[href*="philosophy-menu"]{--card:#f0e5d5;--ink:#30223b;--muted:#89402e;--art:#fcf8ed}
.carousel-item[href*="philosophy-menu"] .carousel-art{padding:6px}
.carousel-item[href*="philosophy-menu"] img{object-fit:contain}
.home-projects :focus-visible{outline:3px solid #2944d5;outline-offset:3px}
.home-projects .carousel-item:focus-visible{outline-offset:-4px}
@media(max-width:900px){.carousel-item{flex-basis:min(300px,100%)}}
@media(max-width:600px){
 .home-projects{padding:52px 0 60px}
 .carousel-heading{gap:12px;margin-bottom:22px}
 .carousel-heading>a{font-size:11px}
 .project-carousel{gap:14px}
 .carousel-item{flex-basis:84%;height:328px;grid-template-rows:160px minmax(0,1fr);border-radius:18px}
 .carousel-copy{padding:19px 18px 22px}
 .carousel-copy>span{font-size:10px;margin-bottom:11px}
 .carousel-copy h3{font-size:clamp(22px,6.2vw,27px);line-height:1.09;letter-spacing:-.05em}
 .carousel-item[href*="attention-flow"] .carousel-art{padding:15px}
 .carousel-item[href*="burfi"] .carousel-art{padding:13px 12px 22px;gap:14px}
}
@media(prefers-reduced-motion:reduce){
 .carousel-item,.carousel-art img{transition:none}
 .carousel-item:hover,.carousel-item:hover img{transform:none}
 .carousel-item[href*="attention-flow"]:hover img{transform:rotate(3deg)}
 .carousel-item[href*="burfi"]:hover img{transform:rotate(-8deg)}
 .carousel-item[href*="burfi"]:hover img+img{transform:rotate(8deg) translateY(7px)}
}

/* Project imagery: seamless Relate frame, the Attention Flow process, and romantic editorial photography. */
.carousel-item[href*="project-relate"]{--art:#eff3f8}
.carousel-item[href*="attention-flow"]{--card:#59465e;--ink:#fff7ed;--muted:#e0cfe1;--art:#302439}
.carousel-item[href*="attention-flow"] .carousel-art{padding:0}
.carousel-item[href*="attention-flow"] img{width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;border:0;border-radius:0;box-shadow:none;transform:none}
.carousel-item[href*="attention-flow"]:hover img{transform:scale(1.025)}
.carousel-item[href*="burfi"] .carousel-art{padding:0;gap:0}
.carousel-item[href*="burfi"] img{width:100%;height:100%;max-width:none;object-fit:cover;object-position:50% 44%;border:0;border-radius:0;box-shadow:none;transform:none}
.carousel-item[href*="burfi"]:hover img{transform:scale(1.025)}
@media(prefers-reduced-motion:reduce){.carousel-item[href*="attention-flow"]:hover img,.carousel-item[href*="burfi"]:hover img{transform:none}}

.carousel-item[href*="earth-design"] .carousel-art{background:#f7f6f2}
.carousel-item[href*="earth-design"] img{object-position:left top;transform-origin:left top}

/* Native touch/trackpad scrolling with a mouse grab affordance. */
.project-carousel a{cursor:grab;-webkit-user-drag:none}
.project-carousel img{-webkit-user-drag:none}
.project-carousel.is-dragging{scroll-snap-type:none;scroll-behavior:auto}
.project-carousel.is-dragging,.project-carousel.is-dragging a{cursor:grabbing}
.project-carousel.is-dragging .carousel-item{transform:none;transition:none}
