/* Only the portfolio shortcuts and clearance for the fixed dock. */
.portfolio-explore{margin:0 0 30px;padding:clamp(14px,3vw,24px);border:1px solid #496d5e;border-radius:18px;background:#153732}
.portfolio-explore .bar{display:flex;justify-content:space-between;align-items:center;gap:10px}
.portfolio-explore h2{margin:0 0 8px;line-height:1.15}
.portfolio-explore .label{margin:0 0 4px;color:#afe2ba;font-size:.72rem;letter-spacing:.10em;font-weight:750}
.portfolio-explore .arrow-group{display:flex;gap:6px}
.portfolio-explore button{font:inherit;cursor:pointer}
.portfolio-explore .arrow-group button{padding:0;width:40px;height:40px;border:1px solid #719a81;border-radius:50%;background:#102a29;color:#edf9f1;font-size:1.5rem}
.portfolio-explore button:disabled{opacity:.45;cursor:default}
.portfolio-explore .carousel{position:relative;display:flex;overflow-x:auto;gap:12px;scroll-snap-type:x mandatory;overscroll-behavior-inline:contain;scrollbar-width:thin;scrollbar-color:#719a81 transparent;margin-top:8px;padding:4px 0 10px}
.portfolio-explore .carousel::after{content:"";flex:0 0 min(26%,280px)}
.portfolio-explore .card{box-sizing:border-box;min-width:0;flex:0 0 74%;scroll-snap-align:start;padding:14px;border:1px solid #719a81;border-radius:13px;background:#102a29}
.portfolio-explore .card h3{margin:0;line-height:1.2}
.portfolio-explore .card p:not(.label){margin:5px 0 0}
.portfolio-explore .icon,.portfolio-dock a span{display:grid;place-items:center;width:31px;height:31px;border-radius:9px;background:#afe2ba;color:#152e25;font-weight:800}
.portfolio-explore .icon{margin-bottom:8px}
.portfolio-explore .card .cta{margin:10px 0 0;padding:7px 11px}
.portfolio-explore .dots{display:flex;justify-content:center;gap:1px}
.portfolio-explore .dots button{position:relative;width:23px;height:26px;border:0;background:transparent}
.portfolio-explore .dots button::before{content:"";position:absolute;inset:9px 7px;border-radius:50%;background:#719a81}
.portfolio-explore .dots button[aria-current="true"]::before{background:#caffd8}
.portfolio-explore .hint{font-size:.82rem;margin:0}
.portfolio-dock{position:fixed;z-index:10;bottom:max(8px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);display:flex;justify-content:space-around;gap:3px;width:max-content;max-width:calc(100vw - 16px);box-sizing:border-box;padding:6px;border:1px solid #719a81;border-radius:16px;background:#102a29f5;backdrop-filter:blur(12px);box-shadow:0 6px 26px #05141499}
.portfolio-dock a{display:grid;justify-items:center;gap:3px;padding:3px clamp(3px,1.1vw,9px);color:#edf9f1;text-decoration:none;font-size:clamp(.59rem,2.7vw,.75rem);line-height:1.15;border-radius:9px}
.portfolio-dock a:hover{background:#25473f}
.portfolio-dock a:focus-visible,.portfolio-explore :focus-visible{outline:2px solid white;outline-offset:2px}
.page:has(+ .portfolio-dock){padding-bottom:114px}
html:has(.portfolio-dock){scroll-padding-bottom:90px}
@media(max-width:500px){.portfolio-explore .card{flex-basis:84%}.portfolio-explore .carousel::after{flex-basis:16%}}

/* Fit the shortcut cards to their content; center the selected one. */
.portfolio-explore .carousel{max-width:38rem;margin-inline:auto;align-items:stretch;--gap:9px;gap:var(--gap);scroll-padding:0}
.portfolio-explore .carousel::before,.portfolio-explore .carousel::after{content:"";flex:0 0 var(--lead,0px)}
.portfolio-explore .carousel::after{flex-basis:var(--trail,0px)}
.portfolio-explore .card{flex:0 0 auto;width:max-content;max-width:min(20rem,76%);scroll-snap-align:center;padding:10px 12px;white-space:normal;transition:opacity .18s;background:#102a29}
.portfolio-explore .card:not(.active){opacity:.72}
.portfolio-explore .card p:not(.label){font-size:.87rem}
.portfolio-explore .card h3{font-size:1.03rem}
.portfolio-explore .card .content{height:100%;display:flex;align-items:flex-start;flex-direction:column}
.portfolio-explore .card .cta{margin-block:auto 0;white-space:nowrap}
.portfolio-explore .card p:not(.label){margin-bottom:9px}
@media(prefers-reduced-motion:reduce){.portfolio-explore .card{transition:none}}

/* Keep the first and final cards flush with the track edges. */
.portfolio-explore .carousel::before,.portfolio-explore .carousel::after{content:none}
.portfolio-explore .card:first-child{scroll-snap-align:start}
.portfolio-explore .card:last-child{scroll-snap-align:end}
/* Keep the active shortcut readable while leaving a fading stack of edges. */
.portfolio-explore .carousel.is-stacked{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:1fr;gap:0;overflow:hidden;scroll-snap-type:none;touch-action:pan-y;max-width:32rem;padding-block:4px 8px}
.portfolio-explore .is-stacked .card{grid-area:1/1;justify-self:start;align-self:stretch;margin:0;max-width:min(20rem,77%);transform-origin:center;transform:translateX(var(--card-x,0px)) scaleY(var(--card-scale,1));z-index:var(--card-z,1);opacity:var(--card-opacity,0);transition:transform .32s cubic-bezier(.22,.73,.25,1),opacity .26s,filter .26s;filter:saturate(var(--card-saturate,1));}
.portfolio-explore .is-stacked .card:not(.active){background:#54746a;border-color:#a6c4b5;pointer-events:none}
.portfolio-explore .is-stacked .card:not(.active) .content{visibility:hidden}
.portfolio-explore .is-stacked .card.active{box-shadow:0 3px 12px #041b18a6}
@media(max-width:500px){.portfolio-explore .is-stacked .card{max-width:79%}}
@media(prefers-reduced-motion:reduce){.portfolio-explore .is-stacked .card{transition:none}}
