/* SWD Case study next — big card to the next project, screenshot rising from its brand colour. */
.swd.swd-casenext { --panel: #2B3655; }
.swd-casenext .cnx { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); min-height: 420px; border-radius: var(--r-xl); overflow: hidden; background: var(--card); box-shadow: inset 0 0 0 1px var(--edge); text-decoration: none; color: #fff; transition: box-shadow .35s, transform .35s; }
.swd-casenext a.cnx:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--a) 45%, transparent), 0 40px 80px -50px rgba(0, 0, 0, .9); }
.swd-casenext .cnx__text { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; padding: clamp(28px, 4vw, 56px); }
.swd-casenext .cnx__name { font-size: clamp(38px, 5vw, 72px); line-height: 1; letter-spacing: -.05em; }
.swd-casenext .cnx__type { margin-top: 14px; font-size: 18px; color: var(--muted); }
.swd-casenext .cnx__line { margin-top: 14px; max-width: 34ch; font-size: 17px; color: #C9D1E3; }
.swd-casenext .cnx__go { display: inline-flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 36px; font-size: 18px; font-weight: 500; }
.swd-casenext .cnx__arrow { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--a); color: var(--ink); transition: transform .3s; }
.swd-casenext .cnx__arrow svg { width: 18px; height: 18px; }
.swd-casenext a.cnx:hover .cnx__arrow { transform: rotate(45deg) scale(1.06); }

.swd-casenext .cnx__vis { position: relative; overflow: hidden; background: radial-gradient(90% 90% at 70% 10%, color-mix(in srgb, var(--panel) 100%, #fff 10%), transparent 70%), linear-gradient(180deg, var(--panel), color-mix(in srgb, var(--panel) 45%, var(--card))); }
.swd-casenext .cnx__shot { position: absolute; left: 12%; top: 16%; width: 104%; border-radius: 12px; overflow: hidden; background: #0B1020; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 40px 80px -30px rgba(0, 0, 0, .8); transform: translateY(0) rotate(-2deg); transform-origin: 0 0; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.swd-casenext a.cnx:hover .cnx__shot { transform: translateY(-14px) rotate(0deg); }
.swd-casenext .cnx__shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.swd-casenext .cnx__all { display: flex; justify-content: center; margin-top: 26px; }

/* browser bar (shared look) */
.swd-casenext .cs-bar { display: flex; align-items: center; gap: 12px; height: 34px; padding: 0 12px; background: #161C2E; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 12px; color: var(--muted); }
.swd-casenext .cs-bar__dots { display: flex; gap: 5px; flex: 1 1 0; }
.swd-casenext .cs-bar__dots i { width: 9px; height: 9px; border-radius: 50%; background: #2E3757; }
.swd-casenext .cs-bar__url { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 7px; background: rgba(255, 255, 255, .06); white-space: nowrap; }
.swd-casenext .cs-bar__url:empty { display: none; }
.swd-casenext .cs-bar__url svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.swd-casenext .cs-bar__sp { flex: 1 1 0; }

@media (max-width: 860px) {
	.swd-casenext .cnx { grid-template-columns: minmax(0, 1fr); min-height: 0; }
	.swd-casenext .cnx__vis { order: -1; aspect-ratio: 16 / 10; }
	.swd-casenext .cnx__shot { left: 8%; top: 14%; width: 100%; }
	.swd-casenext .cnx__go { padding-top: 26px; }
}
@media (max-width: 640px) {
	.swd-casenext .cnx { border-radius: 28px; }
	.swd-casenext .cnx__text { padding: 24px 22px 26px; }
	.swd-casenext .cnx__arrow { width: 46px; height: 46px; }
	.swd-casenext .cs-bar { height: 24px; }
	.swd-casenext .cs-bar__dots i { width: 6px; height: 6px; }
}
