/* SWD Case study screens — the full home page in a browser and a phone you can scroll inside. */
.swd.swd-casescreens { --panel: #2B3655; }
.swd-casescreens .csx__stage { --h: clamp(440px, 46vw, 660px); position: relative; isolation: isolate; overflow: hidden; display: flex; justify-content: center; align-items: flex-end; gap: clamp(18px, 3vw, 44px); padding: clamp(28px, 4.4vw, 64px); border-radius: var(--r-xl); background: radial-gradient(90% 100% at 15% 0%, color-mix(in srgb, var(--panel) 100%, #fff 6%), transparent 70%), linear-gradient(190deg, color-mix(in srgb, var(--panel) 80%, var(--bg)), color-mix(in srgb, var(--panel) 35%, var(--bg))); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.swd-casescreens .csx__grid { position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1.4px); background-size: 22px 22px; -webkit-mask: radial-gradient(80% 70% at 50% 40%, #000, transparent 80%); mask: radial-gradient(80% 70% at 50% 40%, #000, transparent 80%); opacity: .7; }
.swd-casescreens figure { margin: 0; }

.swd-casescreens .csx__desk { position: relative; flex: 1 1 auto; min-width: 0; max-width: 980px; border-radius: 14px; overflow: hidden; background: #0B1020; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 50px 90px -40px rgba(0, 0, 0, .85); }
.swd-casescreens .csx__desk .csx__scroll { height: calc(var(--h) - 40px); }
.swd-casescreens .csx__phone { flex: none; width: calc(var(--h) * .462); }
.swd-casescreens .csx__pframe { position: relative; height: var(--h); padding: 9px; border-radius: 48px; background: #0B1020; box-shadow: 0 0 0 1px rgba(255, 255, 255, .2), 0 40px 70px -30px rgba(0, 0, 0, .9); }
.swd-casescreens .csx__pframe .csx__scroll { height: 100%; border-radius: 39px; }
.swd-casescreens .csx__island { position: absolute; z-index: 2; top: 19px; left: 50%; width: 28%; height: 22px; transform: translateX(-50%); border-radius: 999px; background: #000; pointer-events: none; }

.swd-casescreens .csx__scroll { position: relative; overflow-y: auto; overflow-x: hidden; background: linear-gradient(180deg, #F4F6FA, #E6EAF2); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.swd-casescreens .csx__scroll::-webkit-scrollbar { display: none; }
.swd-casescreens .csx__scroll img { display: block; width: 100%; height: auto; }
.swd-casescreens .csx__scroll:focus-visible { outline-offset: -3px; }

/* scroll position rail */
.swd-casescreens .csx__bar { position: absolute; z-index: 3; right: 6px; top: 50px; bottom: 10px; width: 4px; border-radius: 4px; background: rgba(11, 16, 32, .14); pointer-events: none; }
.swd-casescreens .csx__pframe .csx__bar { right: 13px; top: 56px; bottom: 40px; }
.swd-casescreens .csx__bar i { position: absolute; left: 0; right: 0; top: 0; height: 18%; border-radius: inherit; background: var(--a); box-shadow: 0 0 10px color-mix(in srgb, var(--a) 70%, transparent); transform: translateY(calc(var(--p, 0) * 455%)); }

.swd-casescreens .csx__hint { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 22px; font-size: 15px; color: var(--muted); transition: opacity .4s; }
.swd-casescreens .csx__hint svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.swd-casescreens .csx__wheel { animation: swd-csx-wheel 1.8s ease-in-out infinite; }
@keyframes swd-csx-wheel { 0%, 100% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(3px); opacity: .2; } }

/* browser bar (shared look) */
.swd-casescreens .cs-bar { display: flex; align-items: center; gap: 14px; height: 40px; padding: 0 14px; background: #161C2E; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 13px; color: var(--muted); }
.swd-casescreens .cs-bar__dots { display: flex; gap: 6px; flex: 1 1 0; }
.swd-casescreens .cs-bar__dots i { width: 10px; height: 10px; border-radius: 50%; }
.swd-casescreens .cs-bar__dots i:first-child { background: #FF6159; }
.swd-casescreens .cs-bar__dots i:nth-child(2) { background: #FFBD2E; }
.swd-casescreens .cs-bar__dots i:nth-child(3) { background: #28C941; }
.swd-casescreens .cs-bar__url { display: inline-flex; align-items: center; gap: 7px; min-width: 0; max-width: 60%; padding: 5px 14px; border-radius: 8px; background: rgba(255, 255, 255, .06); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.swd-casescreens .cs-bar__url svg { width: 12px; height: 12px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; }
.swd-casescreens .cs-bar__sp { flex: 1 1 0; }
@media (max-width: 760px) {
	.swd-casescreens .csx__stage { --h: 520px; flex-direction: column; align-items: center; padding: 20px 16px 26px; border-radius: 28px; }
	.swd-casescreens .csx__desk { width: 100%; border-radius: 10px; }
	.swd-casescreens .csx__desk .csx__scroll { height: 260px; }
	.swd-casescreens .csx__desk .cs-bar { height: 28px; gap: 8px; padding: 0 9px; font-size: 10.5px; }
	.swd-casescreens .csx__desk .cs-bar__dots i { width: 7px; height: 7px; }
	.swd-casescreens .csx__desk .cs-bar__url { padding: 3px 8px; max-width: 70%; }
	.swd-casescreens .csx__desk .cs-bar__url svg { display: none; }
	.swd-casescreens .csx__desk .csx__bar { top: 36px; }
	.swd-casescreens .csx__pframe { padding: 7px; border-radius: 40px; }
	.swd-casescreens .csx__pframe .csx__scroll { border-radius: 33px; }
	.swd-casescreens .csx__island { top: 15px; height: 20px; }
}
