/* Humble Selected Work. Scoped to the reusable Elementor shortcode. */
.humble-selected-work {
  --hsw-ink: var(--ast-global-color-0,#2d2564);
  --hsw-purple: var(--ast-global-color-5,#5b4fe9);
  --hsw-muted: #4b5266;
  --hsw-ease: cubic-bezier(.165,.84,.44,1);
  color: var(--hsw-ink);
}
.humble-selected-work [hidden] {display:none!important}
.hsw-top {display:flex;align-items:center;justify-content:space-between;gap:1rem;margin:0 0 1.25rem}
.humble-selected-work .hsw-all {display:inline-flex;align-items:center;gap:.3rem;color:var(--hsw-purple);font-weight:600;font-size:.95rem;text-decoration:none!important}
.hsw-all:hover,.hsw-all:focus-visible {text-decoration:underline!important}
.hsw-controls {display:flex;gap:.5rem}
.hsw-controls button {display:grid;place-items:center;width:2.65rem;height:2.65rem;padding:0;border:0;border-radius:6px;background:#eeebff;color:var(--hsw-purple);cursor:pointer;transition:background-color .2s,color .2s}
.hsw-controls button:hover {background:var(--hsw-purple);color:white}
.hsw-controls button:disabled {opacity:.4;cursor:default}
.hsw-track {display:flex;align-items:stretch;gap:.875rem;height:clamp(18rem,32vw,27rem);overflow:hidden;isolation:isolate}
.hsw-panel {position:relative;min-width:3rem;flex:1 1 0;overflow:hidden;background:#182a43;border-radius:8px;text-decoration:none!important;transition:flex-grow .8s var(--hsw-ease);outline-offset:-4px}
.hsw-panel.is-active {flex-grow:4}
.humble-selected-work[data-enhanced] .hsw-panel {flex-grow:var(--hsw-grow,1)}
.hsw-panel:focus-visible {outline:3px solid #fff}
.hsw-image {position:absolute;inset:0;width:100%!important;height:100%!important;object-fit:cover;display:block;object-position:center}
.hsw-overlay {position:absolute;inset:0;display:flex;align-items:flex-end;padding:1.3rem;background:radial-gradient(ellipse at 0 100%,rgba(0,0,0,.72),transparent 65%);opacity:0;transition:opacity .32s ease;pointer-events:none}
.hsw-panel.is-active .hsw-overlay {opacity:1}
.hsw-logo {width:9rem!important;height:auto!important;max-height:5.6rem;object-fit:contain;object-position:left bottom}
.hsw-logo-2019 {width:15rem!important;max-width:90%}
.hsw-logo-2100 {width:11rem!important}
.hsw-logo-text {font-size:clamp(1rem,1.8vw,1.5rem);font-weight:650;color:white}
.hsw-details {margin-top:1.5rem}
.hsw-detail {display:flex;justify-content:space-between;align-items:flex-start;gap:1.5rem;margin-bottom:.8rem}
.hsw-copy {max-width:52rem}
.hsw-copy h3 {font:inherit;font-size:1.2rem;font-weight:650;line-height:1.45;color:var(--hsw-ink);display:inline;margin:0}
.hsw-copy p {font-size:1.12rem;line-height:1.5;color:var(--hsw-muted);display:inline;margin:0 0 0 .3rem}
.humble-selected-work .hsw-case-link {display:inline-flex;align-items:center;justify-content:center;gap:.4rem;white-space:nowrap;border:1px solid rgba(91,79,233,.38);padding:.65rem 1.05rem;border-radius:5px;color:var(--hsw-purple);font-weight:600;font-size:.95rem;transition:background .2s,border .2s;color:var(--hsw-purple);text-decoration:none!important}
.hsw-case-link:hover {background:#eeebff;border-color:var(--hsw-purple)}
.humble-selected-work[data-enhanced] .hsw-detail:not([hidden]) {animation:hsw-in .3s var(--hsw-ease)}
@keyframes hsw-in {from {opacity:0;transform:translateY(4px)} to {opacity:1;transform:translateY(0)}}
@media(max-width:767px){
  .hsw-track {height:clamp(15rem,65vw,22rem);gap:.5rem;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain}
  .hsw-track::-webkit-scrollbar {display:none}
  /* Equal-width snap points keep swipe gestures stable, with the next card peeking in. */
  .humble-selected-work[data-enhanced] .hsw-panel {flex:0 0 82%;min-width:0;scroll-snap-align:start;transition:none}
  .humble-selected-work[data-enhanced] .hsw-track:has(.hsw-panel:nth-child(2))::after {content:"";flex:0 0 max(0px,calc(18% - .5rem))}
  .humble-selected-work[data-enhanced] .hsw-panel:only-child {flex-basis:100%}
  .hsw-overlay {padding:.85rem}
  .hsw-logo {width:6.4rem!important;max-height:4.2rem}
  .hsw-logo-2019 {width:11.5rem!important;max-width:90%}
  .hsw-logo-2100 {width:8.5rem!important}
  .hsw-detail {flex-direction:column;gap:1rem}
  .hsw-copy h3 {font-size:1.12rem}
  .hsw-copy p {font-size:1rem}
  .hsw-details {margin-top:1.1rem}
  .hsw-controls button {width:2.5rem;height:2.5rem}
}
@media(prefers-reduced-motion:reduce){
  .humble-selected-work *, .humble-selected-work *::before, .humble-selected-work *::after {transition:none!important;animation:none!important;scroll-behavior:auto!important}
}

/* Retain brand link colors against theme-wide anchor styling. */
.humble-selected-work a.hsw-all,.humble-selected-work a.hsw-case-link {color:var(--hsw-purple)!important}
.humble-selected-work .hsw-copy h3::after {content:".";margin-right:.08em}
.humble-selected-work .hsw-track {position:relative}
.humble-selected-work a.hsw-all:hover .humble-arrow-group,.humble-selected-work a.hsw-case-link:hover .humble-arrow-group,.humble-selected-work a.hsw-all:focus-visible .humble-arrow-group,.humble-selected-work a.hsw-case-link:focus-visible .humble-arrow-group {transform:translateX(5.5px)}
.humble-selected-work a.hsw-all:hover .humble-arrow-shaft,.humble-selected-work a.hsw-case-link:hover .humble-arrow-shaft,.humble-selected-work a.hsw-all:focus-visible .humble-arrow-shaft,.humble-selected-work a.hsw-case-link:focus-visible .humble-arrow-shaft {opacity:1}
@media (prefers-reduced-motion:reduce){.humble-selected-work .humble-arrow-group {transform:none!important}}

/* Pointer hover: widen the pointed panel and proportionally squeeze its neighbors.
   Selection remains an independent, slower transition; neither captions nor links change on hover. */
@media (min-width:768px) and (hover:hover) and (pointer:fine) {
  .humble-selected-work[data-enhanced] .hsw-panel {transition-duration:.36s}
  .humble-selected-work[data-enhanced][data-selecting] .hsw-panel {transition-duration:.8s}
  .humble-selected-work[data-enhanced] .hsw-panel:is(:hover,:focus-visible) {
    flex-grow:var(--hsw-hover-grow,var(--hsw-grow,1));
  }
}
