/* CASE STUDIES: compact white cards in a horizontal slider on light sky */
/* ===== Case studies: sky + live network, cloud-white cards ===== */
.cases { position: relative; isolation: isolate; overflow: clip; background: linear-gradient(180deg, #CDEAFB 0%, #B6DEF7 100%); padding-block: clamp(64px, 8vw, 112px); }
#sky2 { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; }
.c-head { display: grid; justify-items: center; text-align: center; gap: 16px; }
.c-eyebrow { font: 800 12.5px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: #FFFFFF; background: var(--scarlet); padding: 8px 11px; border-radius: 3px; }
.cases h2 { font: 700 clamp(32px, 3.8vw, 54px)/1.1 "Poppins", system-ui, sans-serif; letter-spacing: -.02em; color: #141B24; }
/* Slider (layout A): compact white cards in one row. Swipe, scroll, or use the buttons (case-slider.js). */
.case-ctrl { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: clamp(24px, 3vw, 36px); }
.case-arrow { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; min-width: 48px; border: 0; border-radius: 999px; cursor: pointer;
  background: #FFFFFF; color: #141B24; box-shadow: 0 10px 24px -14px rgba(26,110,159,.7), 0 0 0 1px rgba(26,110,159,.14) inset; transition: background .2s, opacity .2s, transform .2s; }
.case-arrow svg { width: 18px; height: 18px; }
.case-arrow:hover { background: #E4F3FC; }
.case-next { background: var(--scarlet); color: #FFFFFF; padding: 0 22px; font: 800 16px/1 var(--body); box-shadow: 0 16px 30px -14px rgba(235,47,51,.7); }
.case-next:hover { background: var(--scarlet-hover); transform: translateX(2px); }
.case-arrow:disabled { opacity: .35; cursor: default; transform: none; }
.case-arrow:focus-visible { outline: 3px solid #1A6E9F; outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) { .case-next:not(:disabled) svg { animation: nudge 1.6s ease-in-out infinite; } @keyframes nudge { 50% { transform: translateX(4px); } } }
.case-rail { margin-top: 16px; display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px 4px 22px; scrollbar-width: thin; scrollbar-color: #1A6E9F transparent; }
.case-rail:focus-visible { outline: 3px solid #1A6E9F; outline-offset: 4px; border-radius: 16px; }
.case-card { flex: 0 0 clamp(270px, 29vw, 360px); scroll-snap-align: start; background: #FFFFFF; color: #141B24; border-radius: 16px; padding: 20px 20px 18px; display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 24px 48px -30px rgba(26,110,159,.6), 0 0 0 1px rgba(26,110,159,.10) inset; }
.case-card .case-tag { align-self: flex-start; font: 600 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #1A6E9F; background: #E4F3FC; padding: 6px 8px; border-radius: 4px; }
.case-card h3 { font: 700 19px/1.25 "Poppins", system-ui, sans-serif; color: #141B24; }
.case-prob { font: 400 14.5px/1.55 "Poppins", system-ui, sans-serif; color: #55636E; }
.case-res { font: 600 15px/1.45 "Poppins", system-ui, sans-serif; color: #141B24; border-left: 3px solid var(--scarlet); padding-left: 12px; }
@media (prefers-reduced-motion: reduce) { .case-rail { scroll-behavior: auto; } }
.ph { border-bottom: 1.5px dashed currentColor; opacity: .8; }

/* Card footer: "Read more" (the case study page on this site) + GitHub */
.case-links { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.case-links .case-link { margin-top: 0; }
.case-more { display: inline-flex; align-items: center; gap: 8px; background: var(--scarlet); color: #FFFFFF; text-decoration: none; font: 700 14.5px/1 var(--body); padding: 11px 16px; border-radius: 4px; transition: background .2s; }
.case-more:hover { background: var(--scarlet-hover); }
.case-more svg { width: 14px; height: 14px; }

.case-link { display: inline-flex; align-items: center; gap: 8px; color: #141B24; font: 700 14.5px/1 var(--body); text-decoration: none; }
.case-link svg { width: 18px; height: 18px; color: var(--scarlet); }
.case-link:hover { color: var(--scarlet); }
