/* ==========================================================
   Work (portfolio) page styles
   Loaded by templates/views/assets/portfolio.html
   ========================================================== */

/* ==========================================================
   WORK, page styles (all wk- scoped)
   ========================================================== */
.wk .h2 {
	font-size: clamp(2rem, 3.9vw, 3.25rem);
	line-height: 1.1;
	letter-spacing: -0.028em;
	text-wrap: balance;
}
.wk-head {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: 24px clamp(40px, 7vw, 120px);
	align-items: end;
	margin-bottom: clamp(40px, 4.9vw, 60px);
}
.wk-head .h2 {
	margin-top: 20px;
	max-width: 18ch;
}
.wk-head .lead {
	line-height: 1.7;
}

/* ---------- Hero ---------- */
.wk-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: calc(var(--header-h) + clamp(32px, 4.9vw, 68px)) 0 clamp(40px, 4.9vw, 68px);
}
.wk-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -2;
	background:
		radial-gradient(60% 70% at 85% 20%, rgba(0, 114, 206, 0.14), transparent 60%),
		radial-gradient(40% 50% at 70% 90%, rgba(255, 190, 152, 0.3), transparent 70%);
	pointer-events: none;
}
.wk-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(32px, 5vw, 72px);
	align-items: center;
}
.wk-pill {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 34px;
	padding: 0 16px 0 6px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.8);
	box-shadow: inset 0 0 0 1px var(--line-strong);
	font-size: 14px;
	color: var(--ink-2);
}
.wk-pill i {
	height: 24px;
	padding: 0 10px;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	font: 400 11px/1 var(--font-mono);
	font-style: normal;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--blue);
	background: var(--blue-tint);
}
.wk-hero h1 {
	margin-top: 28px;
	max-width: 13ch;
	font: 400 clamp(2.75rem, 5.6vw, 4.75rem)/1.06 var(--font-display);
	letter-spacing: -0.032em;
}
.wk-hero h1 .wd {
	display: inline-block;
	overflow: hidden;
	vertical-align: top;
	padding-bottom: 0.08em;
	margin-bottom: -0.08em;
}
.wk-hero h1 .wd > span {
	display: inline-block;
}
.js .wk-hero h1 .wd > span {
	transform: translateY(105%);
	animation: wk-rise 1s var(--ease) forwards;
	animation-delay: calc(0.15s + var(--i) * 0.055s);
}
@keyframes wk-rise {
	to {
		transform: none;
	}
}
.wk-hero .lead {
	margin-top: 28px;
	max-width: 48ch;
	line-height: 1.7;
	font-size: clamp(1.05rem, 1.4vw, 1.2rem);
}
.wk-hero-ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 36px;
}
.wk-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 40px;
	margin-top: 48px;
	padding-top: 28px;
	border-top: 1px solid var(--line-strong);
}
.wk-facts b {
	display: block;
	font: 400 2.25rem/1 var(--font-display);
	letter-spacing: -0.035em;
}
.wk-facts b sup {
	font-size: 0.45em;
	color: var(--blue);
	vertical-align: top;
	position: relative;
	top: 0.25em;
	margin-left: 2px;
}
.wk-facts span {
	display: block;
	margin-top: 8px;
	font-size: 14px;
	color: var(--muted);
}

/* screenshot wall */
.wk-wall {
	position: relative;
	height: clamp(480px, 46vw, 640px);
	perspective: 1600px;
	-webkit-mask-image:
		linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent),
		linear-gradient(90deg, transparent, #000 9%, #000 94%, transparent);
	-webkit-mask-composite: source-in;
	mask-image:
		linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent),
		linear-gradient(90deg, transparent, #000 9%, #000 94%, transparent);
	mask-composite: intersect;
}
.wk-wall-tilt {
	position: absolute;
	inset: -10% -6%;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
	transform: rotateX(14deg) rotateZ(-8deg) rotateY(-10deg);
	transform-style: preserve-3d;
}
.wk-col {
	overflow: visible;
}
.wk-col-track {
	display: grid;
	gap: 18px;
	animation: wk-up 55s linear infinite;
}
.wk-col:nth-child(2) .wk-col-track {
	animation-name: wk-down;
	animation-duration: 65s;
}
.wk-col:nth-child(3) .wk-col-track {
	animation-duration: 75s;
}
.wk-wall:hover .wk-col-track {
	animation-play-state: paused;
}
@keyframes wk-up {
	to {
		transform: translateY(-50%);
	}
}
@keyframes wk-down {
	from {
		transform: translateY(-50%);
	}
	to {
		transform: none;
	}
}
.wk-shot {
	overflow: hidden;
	border-radius: 14px;
	background: #fff;
	box-shadow:
		0 1px 2px rgba(16, 24, 32, 0.06),
		0 20px 40px -20px rgba(15, 76, 129, 0.35),
		0 0 0 1px var(--line);
}
.wk-shot-bar {
	display: flex;
	gap: 4px;
	padding: 7px 9px;
	background: #f4f3ef;
	border-bottom: 1px solid var(--line);
}
.wk-shot-bar i {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #d9d7d0;
}
.wk-shot img {
	width: 100%;
	aspect-ratio: 16 / 11;
	object-fit: cover;
	object-position: top;
}

/* industries strip */
.wk-strip {
	padding: 28px 0;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	background: rgba(255, 255, 255, 0.5);
}
.wk-strip-inner {
	display: flex;
	align-items: center;
	gap: 32px;
}
.wk-strip-label {
	flex: none;
	font: 400 12px/1.4 var(--font-mono);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--subtle);
}
.wk-marquee {
	flex: 1;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.wk-marquee-track {
	display: flex;
	gap: 10px;
	width: max-content;
	animation: wk-marq 50s linear infinite;
}
.wk-marquee:hover .wk-marquee-track {
	animation-play-state: paused;
}
@keyframes wk-marq {
	to {
		transform: translateX(-50%);
	}
}
.wk-marquee span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border-radius: 999px;
	font-size: 14px;
	color: var(--ink-2);
	background: #fff;
	box-shadow: inset 0 0 0 1px var(--line);
	white-space: nowrap;
}
.wk-marquee span::before {
	content: '';
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--grad);
}

/* ---------- Case studies ---------- */

/* ---------- Mobile apps ---------- */
.wk-apps-sec {
	background: var(--cloud-dancer);
}
.wk-apps {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	gap: clamp(40px, 6vw, 96px);
}
.wk-phone-wrap {
	position: sticky;
	top: calc(var(--header-h) + 40px);
	height: calc(100vh - var(--header-h) - 80px);
	min-height: 600px;
	max-height: 760px;
	display: grid;
	place-items: center;
}
.wk-phone-wrap::before {
	content: '';
	position: absolute;
	width: 420px;
	height: 420px;
	border-radius: 50%;
	background: radial-gradient(
		closest-side,
		color-mix(in srgb, var(--app-tone, var(--blue)) 30%, transparent),
		transparent
	);
	transition: background 0.8s var(--ease);
}
.wk-phone {
	position: relative;
	width: 290px;
	height: 600px;
	padding: 11px;
	border-radius: 48px;
	background: #101820;
	box-shadow:
		0 40px 80px -30px rgba(16, 24, 32, 0.55),
		0 0 0 1px rgba(255, 255, 255, 0.06) inset,
		0 0 0 2px #2a333d;
}
.wk-phone::before {
	content: '';
	position: absolute;
	top: 20px;
	left: 50%;
	z-index: 3;
	width: 92px;
	height: 26px;
	margin-left: -46px;
	border-radius: 20px;
	background: #101820;
}
.wk-screens {
	position: relative;
	height: 100%;
	border-radius: 38px;
	overflow: hidden;
	background: #fff;
}
.wk-progress {
	position: absolute;
	bottom: 18px;
	left: 50%;
	display: flex;
	gap: 6px;
	transform: translateX(-50%);
}
.wk-progress i {
	width: 6px;
	height: 6px;
	border-radius: 6px;
	background: rgba(16, 24, 32, 0.18);
	transition:
		width 0.4s var(--ease),
		background 0.4s;
}
.wk-progress i.on {
	width: 22px;
	background: var(--app-tone, var(--blue));
}

/* screen UI */
.ps {
	--tone: var(--blue);
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	padding: 48px 16px 0;
	font-size: 12px;
	color: var(--ink);
	background: linear-gradient(180deg, color-mix(in srgb, var(--tone) 10%, #fff) 0%, #fff 38%);
	opacity: 0;
	transform: translateY(18px) scale(0.98);
	transition:
		opacity 0.55s var(--ease),
		transform 0.7s var(--ease);
}
.ps.on {
	opacity: 1;
	transform: none;
}
.ps-status {
	position: absolute;
	top: 18px;
	left: 26px;
	right: 24px;
	display: flex;
	justify-content: space-between;
	font: 400 11px/1 var(--font-body);
}
.ps-status i {
	display: inline-block;
	width: 22px;
	height: 9px;
	border-radius: 3px;
	box-shadow: inset 0 0 0 1px var(--ink);
	position: relative;
}
.ps-status i::after {
	content: '';
	position: absolute;
	inset: 2px 6px 2px 2px;
	border-radius: 1px;
	background: var(--ink);
}
.ps-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 8px;
}
.ps-bar b {
	font: 400 15px/1 var(--font-display);
}
.ps-bar span {
	width: 30px;
	height: 30px;
	border-radius: 10px;
	display: grid;
	place-items: center;
	background: #fff;
	box-shadow: 0 0 0 1px var(--line);
	font-size: 13px;
	color: var(--muted);
}
.ps-hero {
	margin-top: 18px;
}
.ps-hero small {
	font: 400 9.5px/1 var(--font-mono);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--tone);
}
.ps-hero h5 {
	margin: 6px 0 0;
	font: 400 22px/1.1 var(--font-display);
	letter-spacing: -0.02em;
}
.ps-tiles {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin-top: 16px;
}
.ps-tile {
	padding: 12px;
	border-radius: 14px;
	background: #fff;
	box-shadow:
		0 0 0 1px var(--line),
		0 6px 14px -10px rgba(16, 24, 32, 0.25);
}
.ps-tile i {
	width: 26px;
	height: 26px;
	border-radius: 8px;
	display: grid;
	place-items: center;
	font-style: normal;
	font-size: 13px;
	color: #fff;
	background: linear-gradient(135deg, var(--tone), color-mix(in srgb, var(--tone) 60%, #00b5e2));
}
.ps-tile b {
	display: block;
	margin-top: 10px;
	font-size: 11.5px;
	line-height: 1.3;
	font-weight: 400;
}
.ps-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 10px;
	padding: 12px 14px;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 0 0 1px var(--line);
}
.ps-card small {
	display: block;
	font: 400 9px/1 var(--font-mono);
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--subtle);
}
.ps-card b {
	display: block;
	margin-top: 4px;
	font-size: 12.5px;
	font-weight: 400;
}
.ps-card em {
	font-style: normal;
	font-size: 10.5px;
	padding: 4px 8px;
	border-radius: 999px;
	color: color-mix(in srgb, var(--tone) 80%, #101820);
	background: color-mix(in srgb, var(--tone) 12%, #fff);
	white-space: nowrap;
}
.ps-card em.ok {
	color: #0b6b4f;
	background: rgba(0, 195, 137, 0.14);
}
.ps-num {
	width: 26px;
	height: 26px;
	flex: none;
	border-radius: 50%;
	display: grid;
	place-items: center;
	font: 400 10px/1 var(--font-mono);
	color: var(--tone);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 35%, transparent);
}
.ps-row {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 1;
}
.ps-steps {
	margin-top: 16px;
}
.ps-steps small {
	display: flex;
	justify-content: space-between;
	font: 400 9.5px/1 var(--font-mono);
	color: var(--subtle);
}
.ps-steps div {
	height: 5px;
	margin-top: 8px;
	border-radius: 5px;
	background: var(--line);
	overflow: hidden;
}
.ps-steps div i {
	display: block;
	width: 50%;
	height: 100%;
	border-radius: inherit;
	background: var(--tone);
}
.ps-check {
	display: grid;
	gap: 8px;
	margin-top: 12px;
}
.ps-check span {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 11px 12px;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 0 0 1px var(--line);
	font-size: 12px;
}
.ps-check span i {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-style: normal;
	font-size: 9px;
	box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
.ps-check span.done i {
	color: #fff;
	background: var(--tone);
	box-shadow: none;
}
.ps-actions {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	margin-top: 12px;
}
.ps-actions span {
	padding: 10px 0;
	border-radius: 12px;
	text-align: center;
	font-size: 11px;
	background: #fff;
	box-shadow: 0 0 0 1px var(--line);
}
.ps-actions span:last-child {
	color: #fff;
	background: var(--tone);
	box-shadow: none;
}
.ps-cta {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 16px;
	padding: 16px;
	border-radius: 16px;
	color: #fff;
	background: linear-gradient(135deg, var(--tone), color-mix(in srgb, var(--tone) 55%, #00b5e2));
	box-shadow: 0 14px 24px -14px var(--tone);
}
.ps-cta i {
	width: 32px;
	height: 32px;
	border-radius: 10px;
	display: grid;
	place-items: center;
	font-style: normal;
	font-size: 18px;
	background: rgba(255, 255, 255, 0.2);
}
.ps-cta b {
	display: block;
	font-size: 13.5px;
	font-weight: 400;
}
.ps-cta small {
	display: block;
	margin-top: 2px;
	font-size: 10.5px;
	opacity: 0.8;
}
.ps-label {
	display: flex;
	justify-content: space-between;
	margin-top: 18px;
	font: 400 9.5px/1 var(--font-mono);
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--subtle);
}
.ps-tabs {
	margin-top: auto;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	padding: 10px 4px 26px;
	border-top: 1px solid var(--line);
	background: #fff;
	margin-left: -16px;
	margin-right: -16px;
}
.ps-tabs span {
	text-align: center;
	font-size: 9.5px;
	color: var(--subtle);
}
.ps-tabs span::before {
	content: '';
	display: block;
	width: 16px;
	height: 16px;
	margin: 0 auto 4px;
	border-radius: 5px;
	background: var(--line-strong);
}
.ps-tabs span.on {
	color: var(--tone);
}
.ps-tabs span.on::before {
	background: var(--tone);
}

.wk-app-list {
	display: grid;
}
.wk-app {
	--tone: var(--blue);
	min-height: 88vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 48px 0;
	opacity: 0.35;
	transition: opacity 0.6s var(--ease);
}
.wk-app.on {
	opacity: 1;
}
.wk-app-tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font: 400 11.5px/1 var(--font-mono);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--tone);
}
.wk-app-tags span + span::before {
	content: '·';
	margin-right: 8px;
	color: var(--subtle);
}
.wk-app h3 {
	margin-top: 18px;
	font: 400 clamp(2rem, 3.4vw, 2.75rem)/1.1 var(--font-display);
	letter-spacing: -0.028em;
}
.wk-app > p {
	margin-top: 16px;
	color: var(--muted);
	font-size: 17px;
	line-height: 1.75;
	max-width: 52ch;
}
.wk-feats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-top: 28px;
}
.wk-feat {
	padding: 16px 18px;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 0 0 1px var(--line);
}
.wk-feat b {
	display: block;
	font: 400 15px/1.35 var(--font-display);
}
.wk-feat span {
	display: block;
	margin-top: 4px;
	color: var(--muted);
	font-size: 13.5px;
	line-height: 1.55;
}
.wk-outcome {
	padding: 20px 22px;
	border-radius: 18px;
	background: linear-gradient(150deg, color-mix(in srgb, var(--tone) 9%, #fff), #fff 70%);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 18%, transparent);
}
.wk-outcome > span {
	color: var(--tone) !important;
}
.wk-outcome p {
	margin-top: 10px !important;
	color: var(--ink) !important;
	font: 400 1.15rem/1.45 var(--font-display) !important;
	letter-spacing: -0.01em;
}
.wk-app .wk-outcome {
	margin-top: 16px;
	background: linear-gradient(150deg, color-mix(in srgb, var(--tone) 10%, #fff), #fff 70%);
}
.wk-app .wk-outcome > span {
	display: flex;
	align-items: center;
	gap: 10px;
	font: 400 11.5px/1 var(--font-mono);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.wk-app .wk-outcome p {
	font-size: 1.05rem !important;
}
.wk-app-phone {
	display: none;
}

/* ---------- Project index ---------- */
.wk-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 28px;
}
.wk-filter {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 40px;
	padding: 0 16px;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	font-size: 14.5px;
	color: var(--ink-2);
	background: #fff;
	box-shadow: inset 0 0 0 1px var(--line-strong);
	transition:
		background 0.25s,
		color 0.25s,
		box-shadow 0.25s;
}
.wk-filter sup {
	font: 400 11px/1 var(--font-mono);
	color: var(--subtle);
	top: 0;
}
.wk-filter:hover {
	box-shadow: inset 0 0 0 1px var(--ink);
}
.wk-filter[aria-pressed='true'] {
	color: #fff;
	background: var(--ink);
	box-shadow: none;
}
.wk-filter[aria-pressed='true'] sup {
	color: #9aa3ae;
}
.wk-index {
	border-top: 1px solid var(--line-strong);
}
.wk-row {
	--tone: var(--blue);
	position: relative;
	display: grid;
	grid-template-columns: 56px minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1.2fr) 40px;
	gap: 16px;
	align-items: center;
	padding: 24px 8px;
	border-bottom: 1px solid var(--line-strong);
	color: var(--ink);
	transition:
		padding 0.4s var(--ease),
		background 0.4s,
		opacity 0.4s,
		transform 0.4s var(--ease);
}
.wk-row::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, color-mix(in srgb, var(--tone) 8%, transparent), transparent 70%);
	opacity: 0;
	transition: opacity 0.4s;
}
.wk-row:hover {
	padding-left: 20px;
}
.wk-row:hover::before {
	opacity: 1;
}
.wk-row .n {
	font: 400 12px/1 var(--font-mono);
	color: var(--subtle);
}
.wk-row h4 {
	font: 400 clamp(1.15rem, 1.8vw, 1.5rem)/1.2 var(--font-display);
	letter-spacing: -0.015em;
}
.wk-row .sec {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14.5px;
	color: var(--muted);
}
.wk-row .sec::before {
	content: '';
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--tone);
}
.wk-row .what {
	font-size: 14.5px;
	color: var(--ink-2);
}
.wk-row .arr {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	box-shadow: inset 0 0 0 1px var(--line-strong);
	transition:
		background 0.3s,
		color 0.3s,
		transform 0.4s var(--ease),
		box-shadow 0.3s;
}
.wk-row:hover .arr {
	color: #fff;
	background: var(--tone);
	box-shadow: none;
	transform: rotate(-45deg);
}
.wk-row .arr svg {
	width: 14px;
	height: 14px;
}
.wk-row.is-hidden {
	display: none;
}
@media (hover: none) {
	.wk-hover-hint {
		display: none;
	}
}
.wk-row.is-entering {
	animation: wk-row-in 0.5s var(--ease) both;
	animation-delay: calc(var(--k, 0) * 40ms);
}
@keyframes wk-row-in {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
}

.wk-preview {
	position: fixed;
	left: 0;
	top: 0;
	z-index: 50;
	width: 320px;
	pointer-events: none;
	opacity: 0;
	transform: translate3d(-50%, -50%, 0) scale(0.85);
	transition: opacity 0.3s var(--ease);
}
.wk-preview.on {
	opacity: 1;
}
.wk-preview-inner {
	overflow: hidden;
	border-radius: 16px;
	background: #fff;
	box-shadow:
		0 30px 60px -20px rgba(16, 24, 32, 0.45),
		0 0 0 1px var(--line);
	transition: transform 0.4s var(--ease);
}
.wk-preview img {
	width: 100%;
	aspect-ratio: 16 / 11;
	object-fit: cover;
	object-position: top;
}
.wk-preview .app {
	display: none;
	aspect-ratio: 16 / 11;
	place-items: center;
	text-align: center;
	padding: 24px;
	color: #fff;
}
.wk-preview .app b {
	display: block;
	font: 400 1.6rem/1.1 var(--font-display);
	letter-spacing: -0.02em;
}
.wk-preview .app small {
	display: block;
	margin-top: 8px;
	font: 400 11px/1 var(--font-mono);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.8;
}
.wk-preview.is-app img {
	display: none;
}
.wk-preview.is-app .app {
	display: grid;
}

/* ---------- Patterns ---------- */
.wk-pat-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}
.wk-pat {
	--tone: var(--blue);
	display: flex;
	flex-direction: column;
	padding: 28px;
	border-radius: 24px;
	background: linear-gradient(160deg, color-mix(in srgb, var(--tone) 8%, #fff), #fff 60%);
	box-shadow:
		var(--shadow-sm),
		0 0 0 1px color-mix(in srgb, var(--tone) 15%, transparent);
	transition:
		transform 0.45s var(--ease),
		box-shadow 0.45s var(--ease);
}
.wk-pat:hover {
	transform: translateY(-4px);
	box-shadow:
		var(--shadow-md),
		0 0 0 1px color-mix(in srgb, var(--tone) 32%, transparent);
}
.wk-pat-vis {
	position: relative;
	height: 120px;
	border-radius: 16px;
	overflow: hidden;
	background: #fff;
	box-shadow: inset 0 0 0 1px var(--line);
}
.wk-pat h3 {
	margin-top: 24px;
	font: 400 1.25rem/1.3 var(--font-display);
	letter-spacing: -0.015em;
}
.wk-pat p {
	margin-top: 10px;
	color: var(--muted);
	font-size: 15px;
	line-height: 1.7;
}
/* vis 1: workflow */
.v-flow {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 18px;
}
.v-flow::before {
	content: '';
	position: absolute;
	left: 30px;
	right: 30px;
	top: 50%;
	height: 2px;
	background: var(--line-strong);
}
.v-flow i {
	position: relative;
	z-index: 1;
	width: 26px;
	height: 26px;
	border-radius: 8px;
	background: #fff;
	box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--tone) 40%, transparent);
	animation: v-node 4s ease-in-out infinite;
	animation-delay: calc(var(--n) * 0.6s);
}
.v-flow b {
	position: absolute;
	top: 50%;
	left: 30px;
	z-index: 2;
	width: 10px;
	height: 10px;
	margin-top: -5px;
	border-radius: 50%;
	background: var(--tone);
	box-shadow: 0 0 0 5px color-mix(in srgb, var(--tone) 20%, transparent);
	animation: v-travel 4s ease-in-out infinite;
}
@keyframes v-travel {
	0% {
		left: 30px;
	}
	85%,
	100% {
		left: calc(100% - 40px);
	}
}
@keyframes v-node {
	0%,
	100% {
		background: #fff;
	}
	15%,
	35% {
		background: color-mix(in srgb, var(--tone) 20%, #fff);
	}
}
.v-flow small {
	position: absolute;
	bottom: 14px;
	left: 0;
	right: 0;
	text-align: center;
	font: 400 10px/1 var(--font-mono);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--subtle);
}
/* vis 2: offline */
.v-off {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	align-content: center;
	gap: 12px;
}
.v-off-sig {
	display: flex;
	gap: 3px;
	align-items: flex-end;
	height: 22px;
}
.v-off-sig i {
	width: 5px;
	border-radius: 2px;
	background: var(--tone);
	animation: v-sig 3.6s steps(1) infinite;
}
.v-off-sig i:nth-child(1) {
	height: 6px;
}
.v-off-sig i:nth-child(2) {
	height: 11px;
}
.v-off-sig i:nth-child(3) {
	height: 16px;
	animation-delay: 0.1s;
}
.v-off-sig i:nth-child(4) {
	height: 22px;
	animation-delay: 0.1s;
}
@keyframes v-sig {
	0% {
		opacity: 1;
	}
	30% {
		opacity: 0.15;
	}
	75% {
		opacity: 1;
	}
}
.v-off-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 12px;
	border-radius: 999px;
	font: 400 11px/1 var(--font-mono);
	background: var(--paper);
	box-shadow: inset 0 0 0 1px var(--line);
}
.v-off-pill span {
	position: relative;
	display: inline-block;
	width: 120px;
	height: 11px;
	overflow: hidden;
}
.v-off-pill span em {
	position: absolute;
	left: 0;
	font-style: normal;
	animation: v-msg 3.6s steps(1) infinite;
}
.v-off-pill span em + em {
	opacity: 0;
	animation-name: v-msg2;
	color: #0b6b4f;
}
@keyframes v-msg {
	0% {
		opacity: 1;
	}
	30% {
		opacity: 0;
	}
	75% {
		opacity: 1;
	}
}
@keyframes v-msg2 {
	0% {
		opacity: 0;
	}
	30% {
		opacity: 1;
	}
	75% {
		opacity: 0;
	}
}
/* vis 3: toggles */
.v-tog {
	position: absolute;
	inset: 0;
	display: grid;
	align-content: center;
	gap: 10px;
	padding: 0 22px;
}
.v-tog div {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font: 400 11px/1 var(--font-mono);
	color: var(--ink-2);
}
.v-tog i {
	position: relative;
	width: 30px;
	height: 17px;
	border-radius: 17px;
	background: var(--line-strong);
	animation: v-sw 5s ease-in-out infinite;
	animation-delay: calc(var(--n) * 0.8s);
}
.v-tog i::after {
	content: '';
	position: absolute;
	top: 2px;
	left: 2px;
	width: 13px;
	height: 13px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
	animation: v-knob 5s ease-in-out infinite;
	animation-delay: inherit;
}
@keyframes v-sw {
	0%,
	20% {
		background: var(--line-strong);
	}
	30%,
	80% {
		background: var(--tone);
	}
	90%,
	100% {
		background: var(--line-strong);
	}
}
@keyframes v-knob {
	0%,
	20% {
		transform: none;
	}
	30%,
	80% {
		transform: translateX(13px);
	}
	90%,
	100% {
		transform: none;
	}
}
/* vis 4: search */
.v-srch {
	position: absolute;
	inset: 0;
	display: grid;
	align-content: center;
	gap: 10px;
	padding: 0 18px;
}
.v-srch-box {
	display: flex;
	align-items: center;
	gap: 8px;
	height: 30px;
	padding: 0 12px;
	border-radius: 999px;
	font: 400 11px/1 var(--font-mono);
	color: var(--ink-2);
	background: var(--paper);
	box-shadow: inset 0 0 0 1px var(--line);
}
.v-srch-box span {
	overflow: hidden;
	white-space: nowrap;
	width: 0;
	border-right: 1px solid var(--ink);
	animation: v-type 5s steps(18) infinite;
}
@keyframes v-type {
	0% {
		width: 0;
	}
	40%,
	85% {
		width: 18ch;
	}
	100% {
		width: 0;
	}
}
.v-srch-res {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 10px;
	border-radius: 10px;
	font-size: 11px;
	background: color-mix(in srgb, var(--tone) 10%, #fff);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 25%, transparent);
	opacity: 0;
	transform: translateY(6px);
	animation: v-res 5s var(--ease) infinite;
}
.v-srch-res b {
	font: 400 10px/1 var(--font-mono);
	color: var(--tone);
}
@keyframes v-res {
	0%,
	40% {
		opacity: 0;
		transform: translateY(6px);
	}
	50%,
	85% {
		opacity: 1;
		transform: none;
	}
	100% {
		opacity: 0;
	}
}

/* ---------- Closing ---------- */

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
	.wk-head,
	.wk-hero-grid,
	.wk-apps {
		grid-template-columns: 1fr;
	}
	.wk-wall {
		height: 420px;
	}
	.wk-phone-wrap {
		display: none;
	}
	.wk-app {
		min-height: 0;
		opacity: 1;
		padding: 40px 0;
		border-top: 1px solid var(--line-strong);
	}
	.wk-app:first-child {
		border-top: 0;
		padding-top: 0;
	}
	.wk-app-phone {
		display: grid;
		place-items: center;
		margin-bottom: 32px;
	}
	.wk-app-phone .wk-phone {
		width: 250px;
		height: 520px;
	}
	.wk-app-phone .ps {
		opacity: 1;
		transform: none;
	}
	.wk-pat-grid {
		grid-template-columns: 1fr 1fr;
	}
	.wk-row {
		grid-template-columns: 40px minmax(0, 1fr) minmax(0, 1fr) 36px;
	}
	.wk-row .what {
		display: none;
	}
	.wk-preview {
		display: none;
	}
}
@media (max-width: 640px) {
	.wk-strip-inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 14px;
	}
	.wk-marquee {
		width: 100%;
	}
	.wk-wall {
		height: 340px;
	}
	.wk-wall-tilt {
		gap: 10px;
		inset: -10% -30%;
	}
	.wk-col-track {
		gap: 10px;
	}
	.wk-feats,
	.wk-pat-grid {
		grid-template-columns: 1fr;
	}
	.wk-facts {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		gap: 16px;
	}
	.wk-facts b {
		font-size: 1.9rem;
	}
	.wk-facts span {
		font-size: 13px;
	}
	.wk-row {
		grid-template-columns: minmax(0, 1fr) 36px;
		gap: 6px 12px;
		padding: 20px 4px;
	}
	.wk-row .n {
		display: none;
	}
	.wk-row .sec {
		grid-column: 1;
		grid-row: 2;
	}
	.wk-row .arr {
		grid-column: 2;
		grid-row: 1 / span 2;
	}
	.wk-row:hover {
		padding-left: 4px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.wk-col-track,
	.wk-marquee-track {
		animation: none;
	}
	.js .wk-hero h1 .wd > span {
		transform: none;
		animation: none;
	}
}
