/* ---------- Arc carousel ---------- */
.arc{position:relative;--card-w:clamp(184px,16.5vw,236px);--card-h:calc(var(--card-w) * 1.42)}
.arc-viewport{position:relative;touch-action:pan-y}
.arc-track{display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x proximity;padding:28px var(--gutter) 36px;overscroll-behavior-x:contain}
.slot{flex:0 0 var(--card-w);height:var(--card-h);scroll-snap-align:center}
.slot[hidden]{display:none}

.card{display:flex;flex-direction:column;justify-content:space-between;gap:14px;width:100%;height:100%;padding:16px;border:0;border-radius:16px;background:var(--c,#DCE8E3);color:var(--navy);text-align:left;font:inherit;text-decoration:none;cursor:pointer;box-shadow:0 10px 24px rgba(15,42,54,.14);transition:box-shadow .3s ease,background-color .2s}
.card .pill{align-self:flex-start;background:#fff;color:var(--navy);font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;line-height:1;padding:5px 9px;border-radius:99px}
.card .copy{display:flex;flex-direction:column;gap:8px}
.card .title{font-family:var(--display);font-weight:700;font-size:clamp(18px,1.6vw,21px);line-height:1.12;margin:0}
.card .desc{font-size:13.5px;line-height:1.4;color:#27414c;margin:0}
.card .open{align-self:flex-start;display:inline-flex;align-items:center;gap:6px;background:var(--navy);color:var(--cream);font-size:13px;font-weight:600;line-height:1;padding:9px 13px;border-radius:99px}
.card .open svg{width:14px;height:14px}

/* Visible keyboard focus: navy ring with a cream gap, 3:1 against both page and card */
.card:focus-visible,.arc-controls button:focus-visible{outline:3px solid var(--navy);outline-offset:4px;box-shadow:0 0 0 7px var(--cream),0 14px 30px rgba(15,42,54,.22)}

/* Static layout (no JavaScript, or reduced motion): a swipeable row, "Open" always visible */
.arc:not(.is-arc) .card .open{opacity:1}
.arc.is-arc .card .open{opacity:0;transition:opacity .25s ease}
.arc.is-arc .card:is(:focus-visible,:focus-within) .open{opacity:1}
@media (hover:hover){.arc.is-arc .slot:hover .card .open{opacity:1}}
@media (hover:none){.arc.is-arc .card .open{opacity:1}}

/* Arc layout, applied by script */
.arc.is-arc .arc-viewport{overflow:hidden;height:calc(var(--card-h) + 150px);cursor:grab}
.arc.is-arc .arc-viewport.is-dragging{cursor:grabbing}
.arc.is-arc .arc-track{display:block;position:absolute;inset:0;padding:0;overflow:visible;scroll-snap-type:none;perspective:1100px;perspective-origin:50% 38%}
.arc.is-arc .slot{position:absolute;left:0;top:0;width:var(--card-w);height:var(--card-h);transform-style:preserve-3d;will-change:transform;scroll-snap-align:none}
.arc.is-arc .card{transform-style:preserve-3d}
/* Hit-testing: the slot's flat plane must not sit in front of the card (the lifted card is counter-rotated, so half of it
   passes behind the slot plane and clicks landed on the empty slot). Only the card takes pointer events; a thin strip under
   the slot keeps :hover steady so the lifted card does not flicker at its bottom edge. */
.arc.is-arc .slot{pointer-events:none}
.arc.is-arc .slot .card{pointer-events:auto}
.arc.is-arc .slot::after{content:"";position:absolute;left:0;right:0;bottom:-10px;height:26px;pointer-events:auto}

/* "Ready to select": the card rises, squares up to the viewer, and the roll stops */
@media (prefers-reduced-motion:no-preference){
  .arc.is-arc .card{transition:translate .38s cubic-bezier(.2,.8,.2,1),scale .38s cubic-bezier(.2,.8,.2,1),rotate .38s cubic-bezier(.2,.8,.2,1),box-shadow .38s ease}
  .arc.is-arc .card:focus-visible{translate:0 -30px;scale:1.07;rotate:y calc(var(--ry,0deg) * -1)}
}
@media (prefers-reduced-motion:no-preference) and (hover:hover){
  .arc.is-arc .slot:hover .card{translate:0 -30px;scale:1.07;rotate:y calc(var(--ry,0deg) * -1);box-shadow:0 22px 38px rgba(15,42,54,.26)}
}
.arc.is-arc .slot:hover .card,.arc.is-arc .card:focus-visible{box-shadow:0 22px 38px rgba(15,42,54,.26)}

.arc-controls{display:flex;justify-content:center;align-items:center;gap:10px;padding:0 var(--gutter)}
.arc-controls button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:44px;min-height:44px;padding:0 18px;background:transparent;color:var(--navy);border:1.5px solid var(--navy);border-radius:99px;font:600 14px/1 var(--body);cursor:pointer;touch-action:manipulation;transition:background-color .15s,color .15s}
.arc-controls button:hover{background:var(--navy);color:var(--cream)}
.arc-controls button:active{background:#1d4152;color:var(--cream)}
.arc-controls button svg{width:16px;height:16px}
.arc-controls [hidden]{display:none}
.arc-controls.is-static .arc-nav{display:none}
.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
