/* Datum 2026: a case study's social showcase (parts/work/social-showcase.php; Scott, 18 November 2026).
   Carousels in a phone, picked by audience, then vertical stories as tiles. */

/* ---------- Carousels ---------- */
.ws-car { position: relative; overflow: hidden; padding-block: clamp(64px, 8vw, 112px); background: radial-gradient(55% 70% at 80% 40%, rgba(238, 75, 157, .2), transparent 70%), radial-gradient(45% 60% at 5% 100%, rgba(101, 203, 229, .12), transparent 70%), linear-gradient(160deg, var(--base) 25%, #1b0a4f 100%); }
.ws-car__in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.ws-car__text h2 { margin: 6px 0 16px; }
.ws-car__lead { color: var(--soft); max-width: 54ch; margin: 0 0 26px; }
.ws-car__tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .06); box-shadow: 0 0 0 1px var(--line) inset; margin-bottom: 18px; }
.ws-car__tab { border: 0; cursor: pointer; padding: 9px 16px; border-radius: 999px; background: transparent; color: var(--soft); font: 700 14px/1 var(--sans); transition: background .25s, color .25s; }
.ws-car__tab small { margin-left: 4px; font-weight: 600; opacity: .7; }
.ws-car__tab[aria-selected="true"] { background: var(--white); color: var(--base); }
.ws-car__tab:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.ws-car__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ws-car__item[hidden] { display: none; }
.ws-car__pick { width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px; border: 0; border-radius: var(--r-video); cursor: pointer; text-align: left; color: var(--white); background: rgba(255, 255, 255, .05); box-shadow: 0 0 0 1px var(--line) inset; transition: background .25s, box-shadow .25s, transform .25s var(--ease); }
.ws-car__pick img { flex: none; width: 56px; height: 56px; border-radius: 8px; object-fit: cover; }
.ws-car__pick span { display: grid; gap: 3px; min-width: 0; }
.ws-car__pick b { font: 700 14px/1.25 var(--sans); }
.ws-car__pick small { font: 400 12px/1.2 var(--sans); color: var(--soft); }
.ws-car__pick:hover { background: rgba(255, 255, 255, .09); transform: translateY(-2px); }
.ws-car__pick.is-on { background: rgba(238, 75, 157, .16); box-shadow: 0 0 0 2px var(--pink) inset; }
.ws-car__pick:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.ws-car__stage { display: grid; justify-items: center; gap: 18px; }
.ws-car__now { margin: 0; text-align: center; color: var(--soft); font-size: 14px; min-height: 2.6em; max-width: 34ch; }
.ws-car__now b { display: block; color: var(--white); font-size: 15px; }

/* The phone */
.ws-phone { position: relative; width: clamp(270px, 24vw, 330px); border-radius: 44px; padding: 11px; background: linear-gradient(145deg, #2a2a3a, #0b0b14); box-shadow: 0 0 0 2px rgba(255, 255, 255, .12) inset, 0 50px 90px -30px rgba(0, 0, 0, .85); }
.ws-phone__screen { border-radius: 34px; overflow: hidden; background: #fff; color: #111; padding-bottom: 14px; }
.ws-phone__bar { display: flex; align-items: center; justify-content: space-between; padding: 11px 22px 6px; font: 700 12px/1 var(--sans); }
.ws-phone__notch { width: 80px; height: 22px; border-radius: var(--r-video); background: #0b0b14; }
.ws-phone__bar i { width: 23px; height: 11px; border-radius: 3px; border: 1.5px solid #111; position: relative; }
.ws-phone__bar i::after { content: ""; position: absolute; inset: 1.5px 6px 1.5px 1.5px; background: #111; border-radius: 1px; }
.ws-phone__head { display: flex; align-items: center; gap: 9px; padding: 10px 14px; }
.ws-phone__head > span:nth-child(2) { display: grid; line-height: 1.15; }
.ws-phone__head b { font: 700 12.5px/1.2 var(--sans); }
.ws-phone__head small { font: 400 10.5px/1.2 var(--sans); color: #777; }
.ws-phone__av { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; font: 800 13px/1 var(--sans); background: #0041C0; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--pink); }
.ws-phone__more { margin-left: auto; font-size: 10px; letter-spacing: 1px; color: #555; }
.ws-phone__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 1; background: #eee; }
.ws-phone__track::-webkit-scrollbar { display: none; }
.ws-phone__track:focus-visible { outline: 3px solid var(--pink); outline-offset: -3px; }
.ws-phone__slide { flex: 0 0 100%; scroll-snap-align: start; }
.ws-phone__slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ws-phone__dots { display: flex; justify-content: center; gap: 5px; padding: 10px 0 2px; }
.ws-phone__dots i { width: 6px; height: 6px; border-radius: 50%; background: #cfcfcf; transition: background .25s, transform .25s; }
.ws-phone__dots i.is-on { background: #0041C0; transform: scale(1.2); }
.ws-phone__acts { display: flex; align-items: center; gap: 14px; padding: 8px 14px 0; }
.ws-phone__acts svg { fill: none; stroke: #111; stroke-width: 1.8; stroke-linejoin: round; }
.ws-phone__cta { margin-left: auto; padding: 7px 12px; border-radius: 6px; background: #0041C0; color: #fff; font: 700 11px/1 var(--sans); }
.ws-phone__nav { position: absolute; top: 50%; width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer; color: var(--base); background: var(--white); box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .6); transition: transform .2s var(--ease); }
.ws-phone__nav svg { width: 18px; height: 18px; }
.ws-phone__prev { left: -21px; transform: translateY(-50%); }
.ws-phone__prev svg { transform: rotate(90deg); }
.ws-phone__next svg { transform: rotate(-90deg); }
.ws-phone__next { right: -21px; transform: translateY(-50%); }
.ws-phone__prev:hover { transform: translateY(-50%) scale(1.08); }
.ws-phone__next:hover { transform: translateY(-50%) scale(1.08); }
.ws-phone__nav:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.ws-phone.is-swap .ws-phone__track { animation: ws-swap .5s var(--ease); }
@keyframes ws-swap { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }

/* ---------- Stories ---------- */
.ws-reels { padding-block: clamp(56px, 7vw, 96px); background: linear-gradient(180deg, #1b0a4f, var(--base)); }
.ws-reels .h-head p { color: var(--soft); max-width: 46ch; }
.ws-reels__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.ws-reel { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.ws-reel img, .ws-reel__vid, .ws-reel__vid iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.ws-reel__vid iframe { pointer-events: none; opacity: 0; transition: opacity .6s; }
.ws-reel__vid iframe.is-ready { opacity: 1; }
.ws-reel__play { position: absolute; z-index: 2; top: 12px; right: 12px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(2, 0, 62, .55); backdrop-filter: blur(4px); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .7) inset; }
.ws-reel__play svg { fill: #fff; margin-left: 2px; }
.ws-reel__label { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 40px 14px 14px; background: linear-gradient(to top, rgba(2, 0, 62, .9), rgba(2, 0, 62, 0)); color: var(--white); font: 700 13px/1.3 var(--sans); }
.ws-reel:hover, .ws-reel:focus-visible { transform: translateY(-4px); box-shadow: 0 0 0 2px var(--pink), 0 24px 44px -20px rgba(0, 0, 0, .8); outline: none; }
.ws-vdlg { width: min(420px, 92vw); max-height: 92vh; padding: 0; border: 0; border-radius: var(--r-lg); background: #000; overflow: visible; }
.ws-vdlg::backdrop { background: rgba(2, 0, 62, .88); backdrop-filter: blur(6px); }
.ws-vdlg__frame { position: relative; aspect-ratio: 9 / 16; max-height: 92vh; border-radius: var(--r-lg); overflow: hidden; }
.ws-vdlg__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ws-vdlg__close { position: absolute; top: -52px; right: 0; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer; color: var(--base); background: var(--white); }
.ws-vdlg__close svg { width: 18px; height: 18px; }

@media (max-width: 960px) {
	.ws-car__in { grid-template-columns: minmax(0, 1fr); }
	.ws-car__stage { order: -1; }
	.ws-reels__list { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 58%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; }
	.ws-reels__list > li { scroll-snap-align: start; }
}
@media (max-width: 760px) {
	.ws-car__list { grid-template-columns: minmax(0, 1fr); }
	.ws-car__tabs { display: flex; }
	.ws-car__tab { flex: 1; padding: 9px 6px; font-size: 13px; white-space: nowrap; } .ws-car__tab small { margin-left: 2px; }
	.ws-phone { width: min(300px, 82vw); }
	.ws-phone__prev { left: -12px; } .ws-phone__next { right: -12px; }
	.ws-vdlg__close { top: 8px; right: 8px; z-index: 2; }
}
@media (prefers-reduced-motion: reduce) { .ws-phone.is-swap .ws-phone__track { animation: none; } .ws-phone__track { scroll-behavior: auto; } }
