/* v9.21: home page card carousels (v9.20 base; v9.21 puts the stacked deck back on phones). To revert, remove the <link> to this file and the <script> for
   assets/home-carousel.js in index.html (and restore the old inline deck script, kept in CHANGELOG notes). */

/* Shared controls: prev / dots / next under a carousel */
.hc-nav{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:14px}
.hc-btn{width:38px;height:38px;border-radius:50%;border:1px solid rgba(11,45,77,.18);background:#fff;color:var(--navy,#071f4b);
  font-size:1.15rem;font-weight:900;line-height:1;display:grid;place-items:center;cursor:pointer;box-shadow:0 4px 12px rgba(9,34,77,.08)}
.hc-btn:hover{background:#f3f7fb}
.hc-btn:focus-visible,.hc-dot:focus-visible,.hc-track:focus-visible{outline:3px solid #287be0;outline-offset:3px}
.hc-dots{display:flex;gap:2px;align-items:center}
.hc-dot{width:24px;height:24px;border:0;background:transparent;padding:0;display:grid;place-items:center;cursor:pointer}
.hc-dot::before{content:"";width:8px;height:8px;border-radius:50%;background:#c7d3e1;transition:transform .2s ease,background .2s ease}
.hc-dot[aria-current="true"]::before{background:var(--green,#16834c);transform:scale(1.35)}
.hc-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* Desktop deck: left 20% = previous, right 20% = next (cursor shows the direction) */
.lt-stack.hc-deck.hc-zone-prev{cursor:w-resize}
.lt-stack.hc-deck.hc-zone-next{cursor:e-resize}

/* Phones: every card row becomes a swipe row with scroll-snap and a peek of the next card */
@media (max-width:760px){
  .home-cards-section .tech-scene{display:block;min-height:0}
  .hc-phone > .hc-track, .home-cards-section .hc-track{min-width:0;max-width:none;justify-self:stretch}
  .hc-phone .hc-track{
    display:flex!important;gap:14px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling:touch;scrollbar-width:none;overscroll-behavior-x:contain;
    padding:6px 7% 12px;margin:0 -16px;scroll-padding:0 7%;height:auto!important;width:auto!important;
    grid-template-columns:none!important;
  }
  .hc-track::-webkit-scrollbar{display:none}
  .hc-track > *{flex:0 0 86%;scroll-snap-align:center;scroll-snap-stop:always;min-width:0}
  /* v9.21: phones keep the stacked deck (no sideways row, no peek). Swipes cycle it in home-carousel.js;
     pan-y lets the page scroll up and down normally while the deck handles left/right. */
  .lt-stack.hc-deck{touch-action:pan-y;overflow:visible}
}
@media (min-width:761px){ .hc-nav.hc-phone-only{display:none} }
@media (prefers-reduced-motion:reduce){
  .hc-track{scroll-behavior:auto}
  .hc-dot::before{transition:none}
}
