/* SWD Case study hero — logo, name, facts, then the live site playing in a browser and a phone on the brand stage. */
.swd.swd-casehero { --panel: #2B3655; --brand: var(--a); padding-top: clamp(120px, 12vw, 170px); overflow: hidden; }
.swd-casehero .chx__glow { position: absolute; z-index: 0; top: -320px; left: 50%; width: 1300px; height: 900px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--panel) 42%, transparent), color-mix(in srgb, var(--a) 10%, transparent) 55%, transparent); opacity: .9; pointer-events: none; }
.swd-casehero .chx__crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; font-size: 14px; color: var(--muted); }
.swd-casehero .chx__crumbs a { color: var(--muted); text-decoration: none; }
.swd-casehero .chx__crumbs a:hover { color: #fff; }
.swd-casehero .chx__crumbs span[aria-hidden] { opacity: .45; }
.swd-casehero .chx__crumbs [aria-current] { color: #DCE2EF; }

.swd-casehero .chx__top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 32px 64px; align-items: end; }
.swd-casehero .chx__id { display: grid; gap: 26px; justify-items: start; }
.swd-casehero .chx__logo { display: inline-flex; align-items: center; height: 72px; max-width: 300px; padding: 14px 22px; border-radius: 18px; background: var(--tile, #fff); box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 20px 40px -24px rgba(0, 0, 0, .8); }
.swd-casehero .chx__logo img { height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.swd-casehero .chx__name { font-size: clamp(46px, 7.4vw, 112px); line-height: .96; letter-spacing: -.055em; }
.swd-casehero .chx__line { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; color: #C9D1E3; max-width: 30ch; }
.swd-casehero .chx__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 28px; }
.swd-casehero .chx__domain { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: var(--muted); }
.swd-casehero .chx__soon { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; padding: 10px 16px; border-radius: 999px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--edge); font-size: 15px; font-weight: 500; }
.swd-casehero .chx__soon i { width: 8px; height: 8px; border-radius: 50%; background: #FFC857; }

.swd-casehero .chx__facts { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); margin: clamp(40px, 5vw, 64px) 0 0; border-top: 1px solid var(--edge); }
.swd-casehero .chx__facts > div { padding: 20px 24px 0 0; }
.swd-casehero .chx__facts > div + div { padding-left: 24px; border-left: 1px solid var(--edge); }
.swd-casehero .chx__facts dt { font-size: 13px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.swd-casehero .chx__facts dd { margin: 8px 0 0; font-size: clamp(16px, 1.4vw, 19px); font-weight: 500; color: #fff; }

/* the stage: brand colour, faint grid, devices */
.swd-casehero .chx__stage { position: relative; isolation: isolate; overflow: hidden; margin-top: clamp(40px, 5vw, 64px); padding: clamp(22px, 4vw, 56px) clamp(16px, 5vw, 72px) clamp(26px, 5vw, 72px); border-radius: var(--r-xl); background: radial-gradient(120% 90% at 85% 0%, color-mix(in srgb, var(--panel) 100%, #fff 8%), transparent 70%), linear-gradient(170deg, var(--panel), color-mix(in srgb, var(--panel) 45%, var(--bg)) 95%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 60px 120px -60px color-mix(in srgb, var(--panel) 70%, #000); }
.swd-casehero .chx__grid { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask: radial-gradient(90% 80% at 50% 30%, #000, transparent 75%); mask: radial-gradient(90% 80% at 50% 30%, #000, transparent 75%); }
.swd-casehero .chx__rec { display: inline-flex; align-items: center; gap: 9px; margin-bottom: clamp(16px, 2.4vw, 28px); padding: 7px 14px 7px 12px; border-radius: 999px; background: rgba(11, 16, 32, .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 13.5px; font-weight: 500; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.swd-casehero .chx__rec i { width: 8px; height: 8px; border-radius: 50%; background: #FF5A5F; box-shadow: 0 0 0 4px rgba(255, 90, 95, .25); animation: swd-pulse 2.4s infinite; }
.swd-casehero .chx__devs { display: grid; grid-template-areas: "d"; align-items: start; }
.swd-casehero .chx__desk, .swd-casehero .chx__phone { grid-area: d; margin: 0; }
.swd-casehero .chx__desk { width: 84%; 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-casehero .chx__stage:not(.chx__stage--phone) .chx__desk { width: 100%; }
.swd-casehero .chx__screen { position: relative; aspect-ratio: 16 / 10; background: #0B1020; }
.swd-casehero .chx__screen :is(video, img) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.swd-casehero .chx__phone { justify-self: end; align-self: end; width: 21%; margin-bottom: -2%; }
.swd-casehero .chx__pscreen { position: relative; aspect-ratio: 390 / 844; border-radius: clamp(26px, 3.2vw, 46px); overflow: hidden; background: #0B1020; border: clamp(5px, .6vw, 9px) solid #0B1020; box-shadow: 0 0 0 1px rgba(255, 255, 255, .2), 0 40px 70px -30px rgba(0, 0, 0, .9); }
.swd-casehero .chx__pscreen :is(video, img) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: inherit; }
.swd-casehero .chx__island { position: absolute; z-index: 2; top: 2.4%; left: 50%; width: 30%; height: 3.6%; transform: translateX(-50%); border-radius: 999px; background: #000; }

/* browser bar (shared look) */
.swd-casehero .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-casehero .cs-bar__dots { display: flex; gap: 6px; flex: 1 1 0; }
.swd-casehero .cs-bar__dots i { width: 10px; height: 10px; border-radius: 50%; background: #2E3757; }
.swd-casehero .cs-bar__dots i:first-child { background: #FF6159; }
.swd-casehero .cs-bar__dots i:nth-child(2) { background: #FFBD2E; }
.swd-casehero .cs-bar__dots i:nth-child(3) { background: #28C941; }
.swd-casehero .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-casehero .cs-bar__url svg { width: 12px; height: 12px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; }
.swd-casehero .cs-bar__sp { flex: 1 1 0; }

@media (max-width: 980px) {
	.swd-casehero .chx__top { grid-template-columns: minmax(0, 1fr); }
	.swd-casehero .chx__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.swd-casehero .chx__facts > div { padding-bottom: 18px; }
	.swd-casehero .chx__facts > div:nth-child(odd) { padding-left: 0; border-left: 0; }
	.swd-casehero .chx__facts > div:nth-child(n+3) { border-top: 1px solid var(--edge); }
}
@media (max-width: 640px) {
	.swd.swd-casehero { padding-top: 110px; }
	.swd-casehero .chx__crumbs { margin-bottom: 24px; }
	.swd-casehero .chx__logo { height: 58px; padding: 11px 16px; border-radius: 15px; max-width: 240px; }
	.swd-casehero .chx__btns .btn { flex: 1 1 100%; }
	.swd-casehero .chx__stage { border-radius: 28px; }
	.swd-casehero .chx__desk { width: 92%; border-radius: 10px; }
	.swd-casehero .cs-bar { height: 28px; gap: 8px; padding: 0 9px; font-size: 10.5px; }
	.swd-casehero .cs-bar__dots i { width: 7px; height: 7px; }
	.swd-casehero .cs-bar__dots { gap: 4px; }
	.swd-casehero .cs-bar__url { padding: 3px 8px; max-width: 70%; }
	.swd-casehero .cs-bar__url svg { display: none; }
	.swd-casehero .chx__phone { width: 32%; margin-top: 34%; margin-bottom: 0; }
	.swd-casehero .chx__pscreen { border-width: 4px; border-radius: 22px; }
}
@media (max-width: 760px) { .swd-casehero .chx__crumbs a { display: inline-block; padding: 10px 0; } .swd-casehero .chx__crumbs { margin-bottom: 20px; } }
