/* Pickup film — canvas player for the recommended-pickup case study. */
.fx-facts + .pf { margin-top: 32px; }

.pf {
	--pf-ink: var(--sf-ink, #0b1220);
	--pf-text: var(--sf-text, #334155);
	--pf-muted: var(--sf-muted, #556072);
	--pf-line: var(--sf-line, rgba(15, 23, 42, .1));
	--pf-surface: var(--sf-solid, #fff);
	--pf-accent: var(--sf-accent, #ea580c);
	--pf-good: #188038;
	margin: 0;
	font-family: var(--sf-font, Inter, system-ui, sans-serif);
	color: var(--pf-text);
}
html.dark .pf { --pf-good: #81c995; }

.pf__stage {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: 26px;
	overflow: hidden;
	background: linear-gradient(#eef0fb, #f8f1f4);
	box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 30px 70px -30px rgba(76, 66, 140, .45), 0 0 0 1px rgba(255, 255, 255, .7);
	outline: none;
	isolation: isolate;
	user-select: none;
	-webkit-user-select: none;
}
html.dark .pf__stage { background: linear-gradient(#0b0d1a, #151834); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .8), 0 0 0 1px var(--pf-line); }
.pf__stage:focus-visible { box-shadow: 0 0 0 3px var(--pf-accent), 0 24px 60px -28px rgba(15, 23, 42, .45); }
@media (max-width: 619px) { .pf__stage { aspect-ratio: 4 / 5; border-radius: 18px; } }

.pf__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: pointer; }
/* WebGL world under the 2D overlay (labels, chips, badges stay on the 2D canvas). */
.pf__gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; opacity: 0; transition: opacity .6s ease; }
.pf--gl .pf__gl { opacity: 1; }
.is-dragging .pf__canvas { cursor: grabbing; }

/* Overlays are driven per frame from JS (opacity/transform). */
.pf__title, .pf__phone, .pf__rewind, .pf__end { position: absolute; pointer-events: none; will-change: opacity, transform; opacity: 0; visibility: hidden; }

.pf__title { left: 0; right: 0; top: 50%; margin-top: -48px; text-align: center; color: #fff; text-shadow: 0 2px 24px rgba(0, 0, 0, .45); }
.pf__title strong { display: block; font-family: var(--sf-font-brand, inherit); font-size: clamp(26px, 4.6vw, 52px); line-height: 1.04; letter-spacing: -.01em; }
.pf__eyebrow { display: inline-block; margin-bottom: 12px; padding: 5px 12px; border-radius: 99px; font-size: 12px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; background: rgba(15, 20, 30, .45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

.pf__phone {
	left: 4%; top: 14px;
	width: min(250px, 42%);
	padding: 14px;
	border-radius: 22px;
	background: rgba(255, 255, 255, .92);
	color: #202124;
	box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .35), 0 0 0 1px rgba(0, 0, 0, .06);
	backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
html.dark .pf__phone { background: rgba(32, 35, 41, .92); color: #eceef1; }
.pf__phone-top { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; opacity: .7; }
.pf__phone-dot { width: 8px; height: 8px; border-radius: 50%; background: #1a73e8; box-shadow: 0 0 0 4px rgba(26, 115, 232, .2); }
.pf__phone-row { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; }
.pf__phone-row i { color: #1a73e8; font-size: 18px; line-height: 1.2; }
.pf__phone-row strong { display: block; font-size: 15px; }
.pf__phone-row span { font-size: 12px; opacity: .7; }
.pf__phone-btn { padding: 10px; border-radius: 12px; text-align: center; font-size: 13px; font-weight: 700; background: #1a73e8; color: #fff; transition: transform .15s ease, filter .15s ease; }
.pf__phone-btn.is-tap { transform: scale(.94); filter: brightness(.88); box-shadow: 0 0 0 8px rgba(26, 115, 232, .18); }
@media (max-width: 619px) { .pf__phone { top: auto; bottom: 74px; left: 50%; margin-left: -46%; width: 92%; padding: 12px; } .pf__phone-row { margin: 8px 0; } }

.pf__rewind { top: 18px; left: 18px; display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px; font: 800 14px/1 var(--sf-font-mono, monospace); letter-spacing: .12em; text-transform: uppercase; color: #fff; background: rgba(10, 14, 24, .6); }
.pf__rewind i { font-size: 18px; }

.pf__end { left: 50%; bottom: 74px; display: flex; gap: 10px; width: min(560px, 92%); margin-left: max(-280px, -46%); }
.pf__end-card { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .94); color: #202124; box-shadow: 0 14px 32px -12px rgba(0, 0, 0, .35); }
html.dark .pf__end-card { background: rgba(32, 35, 41, .94); color: #eceef1; }
.pf__end-who { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; opacity: .65; }
.pf__end-card strong { display: block; margin: 4px 0 2px; font-size: 14px; line-height: 1.25; }
.pf__end-card span:last-child { display: block; font-size: 12px; line-height: 1.35; opacity: .75; }
@media (max-width: 619px) { .pf__end { flex-direction: column; gap: 6px; bottom: 70px; } .pf__end-card { padding: 9px 12px; } }

.pf__caption {
	position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
	width: max-content; max-width: min(720px, calc(100% - 28px));
	margin: 0; padding: 8px 14px; border-radius: 12px;
	font-size: clamp(13px, 1.5vw, 15.5px); font-weight: 560; line-height: 1.4; text-align: center;
	color: #fff; background: rgba(10, 14, 22, .72);
	backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
	pointer-events: none;
	transition: opacity .25s ease;
}
.pf__caption.is-empty { opacity: 0; }

.pf__prompt {
	position: absolute; left: 50%; top: 18px; transform: translateX(-50%);
	display: grid; justify-items: center; gap: 4px;
	width: min(380px, calc(100% - 28px));
	padding: 14px 16px; border-radius: 18px; text-align: center;
	background: rgba(255, 255, 255, .95); color: #202124;
	box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .4);
	animation: pf-in .4s cubic-bezier(.2, .9, .3, 1.3);
}
html.dark .pf__prompt { background: rgba(32, 35, 41, .95); color: #eceef1; }
.pf__prompt[hidden] { display: none; }
.pf__prompt-k { font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--pf-accent); }
.pf__prompt strong { font-size: 17px; }
.pf__prompt-s { font-size: 12.5px; line-height: 1.4; opacity: .75; margin-bottom: 6px; }
@keyframes pf-in { from { opacity: 0; transform: translate(-50%, -8px) scale(.96); } }
@media (max-width: 619px) { .pf__prompt { top: 10px; padding: 12px; } .pf__prompt-s { display: none; } }

.pf__big-play {
	position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px;
	display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer;
	font-size: 34px; color: #fff; background: rgba(15, 20, 30, .55);
	backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, .25) inset, 0 12px 30px -8px rgba(0, 0, 0, .5);
	transition: transform .2s ease, background .2s ease;
}
.pf__big-play i { margin-left: 4px; }
.pf__big-play:hover { transform: scale(1.06); background: rgba(26, 115, 232, .8); }
.pf__big-play[hidden] { display: none; }
.pf__big-play:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* Controls */
.pf__controls { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.pf__btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	min-height: 36px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--pf-line);
	font: 650 13px/1 var(--sf-font, inherit); color: var(--pf-ink); background: var(--pf-surface); cursor: pointer;
	transition: background .15s ease, transform .15s ease;
}
.pf__btn:hover { transform: translateY(-1px); }
.pf__btn:focus-visible, .pf__chip:focus-visible, .pf__chap:focus-visible { outline: 2px solid var(--pf-accent); outline-offset: 2px; }
.pf__btn--icon { width: 40px; height: 40px; padding: 0; font-size: 18px; flex: none; }
.pf__btn--solid { border-color: transparent; background: var(--pf-accent); color: #fff; }
.pf__time { flex: none; font: 600 12.5px/1 var(--sf-font-mono, monospace); color: var(--pf-muted); font-variant-numeric: tabular-nums; min-width: 84px; }

.pf__track { position: relative; flex: 1; height: 28px; display: flex; align-items: center; }
.pf__segs { display: flex; gap: 3px; width: 100%; height: 6px; transition: height .15s ease; }
.pf__track:hover .pf__segs, .pf__range:focus-visible + * { height: 8px; }
.pf__seg { position: relative; min-width: 4px; border-radius: 99px; overflow: hidden; background: var(--pf-line); background: color-mix(in srgb, var(--pf-muted) 22%, transparent); }
.pf__seg-fill { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: var(--pf-accent); border-radius: inherit; }
.pf__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pf__track:has(.pf__range:focus-visible) { outline: 2px solid var(--pf-accent); outline-offset: 4px; border-radius: 8px; }

.pf__chapters { display: flex; gap: 3px; margin: 6px 0 0 116px; padding-right: 52px; }
.pf__chap {
	min-width: 0; padding: 4px 2px; border: 0; background: none; cursor: pointer;
	font: 600 11.5px/1.2 var(--sf-font, inherit); color: var(--pf-muted); text-align: left;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-radius: 6px;
}
.pf__chap:hover { color: var(--pf-ink); }
.pf__chap.is-active { color: var(--sf-accent-ink, var(--pf-accent)); }

.pf__try {
	position: absolute; z-index: 5; top: 14px; right: 14px;
	width: min(232px, calc(100% - 28px));
	margin: 0; padding: 0; pointer-events: auto;
}
.pf__menu { position: relative; width: 100%; }
.pf__menu-btn {
	display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 7px 12px;
	border-radius: 16px; border: 1px solid rgba(255, 255, 255, .95); cursor: pointer;
	font: 650 13px/1.2 var(--sf-font, inherit); color: #33405f; text-align: left;
	background: linear-gradient(160deg, rgba(255, 255, 255, .94), rgba(246, 244, 255, .82));
	box-shadow: 0 1px 0 #fff inset, 0 16px 36px -16px rgba(76, 66, 140, .5);
	backdrop-filter: blur(16px) saturate(1.35); -webkit-backdrop-filter: blur(16px) saturate(1.35);
}
.pf__menu-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; flex: 1; min-width: 0; }
.pf__try-k {
	font-size: 9px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: #7b849c;
}
.pf__menu-btn .bi-geo-alt-fill { color: var(--pf-accent); font-size: 14px; }
.pf__menu-value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf__menu-btn .bi-chevron-down { font-size: 12px; opacity: .7; transition: transform .15s ease; }
.pf__menu-btn[aria-expanded="true"] .bi-chevron-down { transform: rotate(180deg); }
.pf__menu-btn:focus-visible { outline: 2px solid var(--pf-accent); outline-offset: 2px; }
html.dark .pf__try-k { color: #b7bdd4; }
html.dark .pf__menu-btn {
	color: #eef0fa; border-color: rgba(255, 255, 255, .12);
	background: linear-gradient(160deg, rgba(44, 48, 82, .92), rgba(30, 33, 60, .86));
	box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 16px 36px -16px rgba(0, 0, 0, .65);
}
.pf__menu-list {
	position: absolute; top: calc(100% + 6px); right: 0; left: 0; z-index: 2;
	display: grid; gap: 2px; margin: 0; padding: 6px;
	border-radius: 14px; border: 1px solid rgba(255, 255, 255, .95);
	background: linear-gradient(160deg, rgba(255, 255, 255, .97), rgba(246, 244, 255, .92));
	box-shadow: 0 18px 40px -18px rgba(76, 66, 140, .5);
}
html.dark .pf__menu-list {
	border-color: rgba(255, 255, 255, .12);
	background: linear-gradient(160deg, rgba(44, 48, 82, .96), rgba(30, 33, 60, .94));
}
.pf__menu-list[hidden] { display: none; }
.pf__chip {
	min-height: 34px; padding: 0 10px; border: 0; border-radius: 10px;
	font: 600 13px/1 var(--sf-font, inherit); color: var(--pf-ink); background: transparent; cursor: pointer; white-space: nowrap; text-align: left;
	transition: background .15s ease, color .15s ease;
}
.pf__chip:hover { background: color-mix(in srgb, var(--pf-accent) 12%, transparent); }
.pf__chip[aria-selected="true"] { background: var(--pf-accent); color: #fff; }

.pf__sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 619px) {
	.pf__controls { gap: 8px; }
	.pf__time { min-width: 0; font-size: 11.5px; }
	.pf__chapters { margin-left: 0; padding-right: 0; }
	.pf__chap { font-size: 10.5px; text-align: center; }
	.pf__try { top: 10px; right: 10px; width: min(196px, calc(100% - 20px)); }
}

/* Glass skin for the HTML overlays, matching the canvas chips. */
.pf__phone, .pf__end-card, .pf__prompt {
	background: linear-gradient(160deg, rgba(255, 255, 255, .9), rgba(246, 244, 255, .78));
	border: 1px solid rgba(255, 255, 255, .95);
	box-shadow: 0 1px 0 #fff inset, 0 22px 48px -18px rgba(76, 66, 140, .42);
	backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
	color: #33405f;
}
html.dark .pf__phone, html.dark .pf__end-card, html.dark .pf__prompt {
	background: linear-gradient(160deg, rgba(44, 48, 82, .9), rgba(30, 33, 60, .82));
	border-color: rgba(255, 255, 255, .1);
	box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 22px 48px -18px rgba(0, 0, 0, .7);
	color: #eef0fa;
}
.pf__phone-dot { background: #46b9c6; box-shadow: 0 0 0 4px rgba(70, 185, 198, .22); }
.pf__phone-row i { color: #46b9c6; }
.pf__phone-btn { background: linear-gradient(135deg, var(--sf-accent, #ea580c), color-mix(in srgb, var(--sf-accent, #ea580c) 70%, #fff)); box-shadow: 0 8px 18px -8px var(--sf-accent, #ea580c); }
.pf__end-card { border-radius: 18px; }
.pf__end-card:first-child .pf__end-who { color: #1f7186; }
.pf__end-card:last-child .pf__end-who { color: var(--sf-accent-ink, #a8370b); }
html.dark .pf__end-card:first-child .pf__end-who { color: #93e6df; }
html.dark .pf__end-card:last-child .pf__end-who { color: var(--sf-accent, #fb923c); }
.pf__caption { background: rgba(28, 26, 58, .62); border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); }
.pf__big-play { background: linear-gradient(145deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, .18)); border: 1px solid rgba(255, 255, 255, .7); color: #33405f; }
.pf__big-play:hover { background: linear-gradient(145deg, var(--sf-accent, #ea580c), color-mix(in srgb, var(--sf-accent, #ea580c) 70%, #fff)); color: #fff; }
.pf__rewind { background: rgba(60, 40, 140, .55); border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.pf__title { color: #2a2f55; text-shadow: 0 1px 0 rgba(255, 255, 255, .9), 0 8px 30px rgba(255, 255, 255, .9); }
.pf__eyebrow { color: #fff; background: rgba(60, 50, 130, .45); }
html.dark .pf__title { color: #fff; text-shadow: 0 2px 24px rgba(0, 0, 0, .55); }

/* Action chapter: a 12-column grid. Every section spans the full width, in reading order. */
.sf-cs[data-project="pickme"] #chapter-3 {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	/* Every section spans all 12 columns, so column gaps add nothing visible; on phones eleven
	   32px gaps (352px) were wider than the screen and pushed the page sideways. */
	column-gap: 0;
	row-gap: var(--sf-space-section);
	align-items: start;
}
.sf-cs[data-project="pickme"] #chapter-3 > * { grid-column: 1 / -1; min-width: 0; }


/* Screens: one annotated walkthrough. The phone sits on an accent stage, the
   three steps sit beside it, and numbered markers tie each step to its UI. */
@property --pk-on { syntax: "<number>"; inherits: true; initial-value: 0; }

#screens .pk-walk {
	--pk-beat: 15s;
	display: grid;
	grid-template-columns: minmax(300px, 5fr) minmax(0, 7fr);
	gap: 12px;
	margin: 0;
	padding: 12px;
	border-radius: 32px;
	background:
		radial-gradient(60% 70% at 0% 0%, color-mix(in srgb, var(--sf-accent) 24%, transparent), transparent 70%),
		linear-gradient(145deg, var(--sf-surface-inset), transparent 65%),
		var(--sf-surface);
	box-shadow: var(--sf-surface-shadow), inset 0 1px 0 var(--sf-glass-edge);
}
#screens .pk-walk__stage {
	position: relative;
	display: grid;
	place-items: center;
	padding: clamp(36px, 5vw, 64px) clamp(24px, 3vw, 40px);
}
/* Soft floor under the phone so it sits on the stage instead of floating. */
#screens .pk-walk__stage::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: clamp(18px, 3vw, 34px);
	width: min(64%, 220px);
	height: 22px;
	transform: translateX(-50%);
	border-radius: 50%;
	background: radial-gradient(closest-side, rgb(0 0 0 / .32), transparent);
	filter: blur(6px);
	pointer-events: none;
}
#screens .pk-walk__stage > .ui-phone { position: relative; z-index: 1; width: min(100%, 264px); }
#screens .ui-screen { position: relative; }

#screens .pk-walk__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 20px;
	padding: clamp(28px, 4vw, 48px) clamp(20px, 3.4vw, 48px);
}
#screens .pk-walk__steps { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }

#screens .pk-step {
	position: relative;
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr);
	gap: 18px;
	padding: 20px 24px 22px 20px;
	border-radius: 20px;
	overflow: hidden;
	cursor: pointer;
	background: color-mix(in srgb, var(--sf-accent) calc(var(--pk-on) * 9%), transparent);
	box-shadow: none;
}
#screens .pk-step + .pk-step::before {
	content: "";
	position: absolute;
	top: -5px;
	left: 78px;
	right: 24px;
	height: 1px;
	background: var(--sf-line);
	opacity: calc(1 - var(--pk-on));
}
#screens .pk-step__num {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 13px;
	background: color-mix(in srgb, var(--sf-accent) calc(var(--pk-on) * 100%), var(--sf-accent-soft));
	color: color-mix(in srgb, #fff calc(var(--pk-on) * 100%), var(--sf-accent-on-soft));
	font-family: var(--sf-font-brand, inherit);
	font-size: 1rem;
	line-height: 1;
	font-variant-numeric: tabular-nums;
	box-shadow: inset 0 1px 0 var(--sf-glass-edge), 0 8px 20px -10px color-mix(in srgb, var(--sf-accent) calc(var(--pk-on) * 90%), transparent);
}
#screens .pk-step__copy { min-width: 0; }
#screens .pk-step h3 {
	margin: 0;
	padding-top: 2px;
	color: var(--sf-ink);
	font-size: 1.08rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -.02em;
}
#screens .pk-step p {
	margin: 6px 0 0;
	max-width: 46ch;
	color: var(--sf-text-2);
	font-size: .94rem;
	line-height: 1.55;
}
#screens .pk-step__ui {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-top: 12px;
	padding: 4px 10px 4px 8px;
	border-radius: 10px;
	background: var(--sf-surface-inset);
	box-shadow: inset 0 0 0 1px var(--sf-line);
	color: var(--sf-muted);
	font-size: .76rem;
	font-weight: 600;
	line-height: 1.4;
}
#screens .pk-step__ui i { font-size: .8rem; color: var(--sf-accent-ink); }

/* Numbered markers on the phone, drawn in the 271px canvas space. */
#screens .tm-gate,
#screens .tm-goto { position: relative; }
#screens .pk-mark {
	position: absolute;
	z-index: 6;
	top: 50%;
	display: grid;
	place-items: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--sf-accent);
	color: #fff;
	font: 800 11px/1 Inter, system-ui, sans-serif;
	font-style: normal;
	letter-spacing: 0;
	transform: translateY(-50%) scale(calc(1 + var(--pk-on) * .18));
	box-shadow:
		0 0 0 2px #fff,
		0 0 0 calc(2px + var(--pk-on) * 6px) color-mix(in srgb, var(--sf-accent) 30%, transparent),
		0 4px 10px -2px rgb(0 0 0 / .35);
	pointer-events: none;
}
#screens .tm-gate .pk-mark { right: -30px; }
#screens .tm-goto .pk-mark { left: 12px; }
#screens .tm-slider .pk-mark { top: 0; right: 0; transform: translate(40%, -40%) scale(calc(1 + var(--pk-on) * .18)); }

/* Three beats. Each step, and its marker, is lit for one beat. */
#screens.is-live .pk-step,
#screens.is-live .pk-mark { animation: pk-beat var(--pk-beat) linear infinite; }
#screens.is-live :is(.pk-step, .pk-mark)[data-step="2"] { animation-delay: calc(var(--pk-beat) * -2 / 3); }
#screens.is-live :is(.pk-step, .pk-mark)[data-step="3"] { animation-delay: calc(var(--pk-beat) * -1 / 3); }
#screens.is-live .pk-step { opacity: calc(.7 + var(--pk-on) * .3); }

/* The highlight, number and phone marker all follow --pk-on. */
#screens .pk-step,
#screens .pk-mark { transition: --pk-on 1.2s cubic-bezier(.22, 1, .36, 1); }

@keyframes pk-beat {
	0% { --pk-on: 0; }
	6%, 28% { --pk-on: 1; }
	34%, 100% { --pk-on: 0; }
}

@media (max-width: 900px) {
	#screens .pk-walk { grid-template-columns: minmax(0, 1fr); }
	#screens .pk-walk__stage > .ui-phone { width: min(100%, 244px); }
}
@media (max-width: 560px) {
	#screens .pk-walk { padding: 8px; gap: 8px; border-radius: 26px; }
	#screens .pk-walk__stage { padding: 32px 20px 8px; }
	#screens .pk-walk__body { padding: 24px 8px 12px; }
	#screens .pk-step { grid-template-columns: 34px minmax(0, 1fr); gap: 14px; padding: 16px 14px 18px; }
	#screens .pk-step__num { width: 34px; height: 34px; border-radius: 11px; font-size: .9rem; }
	#screens .pk-step + .pk-step::before { left: 62px; right: 14px; }
}

#screens .ui-phone:not(.trip-motion-phone) .ui-screen::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 4;
	background: #000;
	opacity: 0;
	pointer-events: none;
}
#screens .pk-sheet {
	position: absolute;
	z-index: 5;
	left: 8px;
	right: 8px;
	bottom: 18px;
	display: grid;
	gap: 8px;
	padding: 8px 12px 14px;
	border-radius: 14px;
	background: var(--ui-bg, #fff);
	color: var(--ui-ink, #0b1220);
	box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
	transform: translateY(120%);
}
#screens .pk-sheet__grab {
	width: 36px;
	height: 5px;
	margin: 2px auto 4px;
	border-radius: 99px;
	background: color-mix(in srgb, var(--ui-ink, #0b1220) 22%, transparent);
}
#screens .pk-sheet strong { font-size: 13px; font-weight: 750; letter-spacing: -.01em; }
#screens .pk-sheet span { display: grid; gap: 1px; }
#screens .pk-sheet b { font-size: 12px; font-weight: 700; }
#screens .pk-sheet small { color: var(--ui-muted, #5b6575); font-size: 11px; }

/* iOS system curve, and a light spring for sheets, pins and rubber-band. */
#screens {
	--ios: cubic-bezier(0.32, 0.72, 0, 1);
	--ios-spring: cubic-bezier(0.22, 1.15, 0.36, 1);
}
#screens.is-live .ui-phone:not(.trip-motion-phone) .ui-screen::before { animation: pk-dim 9s linear infinite; }
#screens.is-live .ui-phone:not(.trip-motion-phone) .v-walk {
	stroke-dasharray: 5 7;
	animation: pk-walk 9s linear infinite;
}
#screens.is-live .ui-phone:not(.trip-motion-phone) .v-drop {
	transform-box: fill-box;
	transform-origin: 50% 100%;
	animation: pk-pin 9s linear infinite;
}
#screens.is-live .ui-phone:not(.trip-motion-phone) .v-halo {
	transform-box: fill-box;
	transform-origin: center;
	animation: pk-halo 2.8s var(--ios) infinite;
}
#screens.is-live .ui-phone:not(.trip-motion-phone) .ui-card { animation: pk-card 9s linear infinite; }
#screens.is-live .ui-phone:not(.trip-motion-phone) .ui-btn { animation: pk-press-late 9s linear infinite; }
#screens.is-live .pk-sheet { animation: pk-sheet 9s linear infinite; }
#screens.is-live .tm-view.is-front { animation: pk-push .35s var(--ios) both; }
#screens.is-live .tm-gate { animation: pk-gate 9s linear infinite; }
#screens.is-live .tm-goto { animation: pk-press-early 9s linear infinite; }
#screens.is-live .pk-arrive .tm-slider__knob { animation: pk-arrive 9s linear infinite; }
#screens.is-live .pk-arrive .tm-slider__label { animation: pk-arrive-label 9s linear infinite; }

@keyframes pk-walk {
	0% { stroke-dashoffset: 220; animation-timing-function: cubic-bezier(0.32, 0.72, 0, 1); }
	8% { stroke-dashoffset: 0; animation-timing-function: linear; }
	100% { stroke-dashoffset: -64; }
}
@keyframes pk-pin {
	0%, 7% { opacity: 0; transform: translateY(-16px); animation-timing-function: cubic-bezier(0.22, 1.15, 0.36, 1); }
	12% { opacity: 1; transform: translateY(1.5px); }
	14%, 100% { opacity: 1; transform: none; }
}
@keyframes pk-halo {
	0%, 100% { transform: scale(0.86); opacity: 0.16; }
	50% { transform: scale(1.08); opacity: 0.05; }
}
@keyframes pk-card {
	0%, 12% { box-shadow: none; animation-timing-function: cubic-bezier(0.32, 0.72, 0, 1); }
	16% { box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--sf-ok, #188038) 55%, transparent); }
	24%, 100% { box-shadow: none; }
}
@keyframes pk-press-early {
	0%, 42% { transform: none; animation-timing-function: cubic-bezier(0.32, 0.72, 0, 1); }
	44% { transform: scale(0.97); }
	48%, 100% { transform: none; }
}
@keyframes pk-press-late {
	0%, 47% { transform: none; animation-timing-function: cubic-bezier(0.32, 0.72, 0, 1); }
	48.4% { transform: scale(0.96); }
	51%, 100% { transform: none; }
}
@keyframes pk-dim {
	0%, 48% { opacity: 0; animation-timing-function: cubic-bezier(0.22, 1.15, 0.36, 1); }
	54%, 72% { opacity: 0.3; animation-timing-function: cubic-bezier(0.32, 0.72, 0, 1); }
	78%, 100% { opacity: 0; }
}
@keyframes pk-sheet {
	0%, 48% { transform: translateY(120%); animation-timing-function: cubic-bezier(0.22, 1.15, 0.36, 1); }
	53.5% { transform: translateY(-2%); }
	55.5%, 72% { transform: translateY(0); animation-timing-function: cubic-bezier(0.4, 0, 1, 1); }
	78%, 100% { transform: translateY(120%); }
}
@keyframes pk-push {
	from { transform: translate3d(100%, 0, 0); }
	to { transform: none; }
}
@keyframes pk-gate {
	0%, 3% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); animation-timing-function: cubic-bezier(0.32, 0.72, 0, 1); }
	10% { box-shadow: 0 0 0 5px rgba(22, 163, 74, .28); }
	24%, 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}
@keyframes pk-arrive {
	0%, 70% { transform: translate3d(0, 0, 0) scale(1); animation-timing-function: cubic-bezier(0.32, 0.72, 0, 1); }
	71.5% { transform: translate3d(0, 0, 0) scale(1.05); animation-timing-function: cubic-bezier(0.45, 0, 0.2, 1); }
	81% { transform: translate3d(205px, 0, 0) scale(1.05); }
	83%, 92% { transform: translate3d(205px, 0, 0) scale(1); animation-timing-function: cubic-bezier(0.32, 0.72, 0, 1); }
	97%, 100% { transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes pk-arrive-label {
	0%, 71.5% { opacity: 1; animation-timing-function: cubic-bezier(0.32, 0.72, 0, 1); }
	79%, 92% { opacity: 0; }
	97%, 100% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
	#screens.is-live .v-walk,
	#screens.is-live .v-drop,
	#screens.is-live .v-halo,
	#screens.is-live .ui-card,
	#screens.is-live .ui-btn,
	#screens.is-live .tm-goto,
	#screens.is-live .ui-screen::before,
	#screens.is-live .pk-sheet,
	#screens.is-live .tm-view.is-front,
	#screens.is-live .tm-gate,
	#screens.is-live .pk-arrive .tm-slider__knob,
	#screens.is-live .pk-arrive .tm-slider__label,
	#screens.is-live .pk-step,
	#screens.is-live .pk-mark { animation: none; }
	#screens :is(.pk-step, .pk-mark) { transition: none; }
}

/* Driver screen from the Figma passenger-details frame. */
.tm-gate {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-top: 6px;
	padding: 4px 8px 4px 6px;
	border-radius: 8px;
	background: #dfffe7;
	color: #111827;
	font-size: 20px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -.02em;
}
.tm-gate img { width: 16.5px; height: 16.5px; display: block; }
.tm-slider__knob img { width: 18px; height: 12px; display: block; object-fit: contain; }

/* Case study: the film replaces the two venue maps. */
.pf-lead { margin: 2px 0 22px; max-width: 68ch; color: var(--sf-text-2); font-size: 1.02rem; line-height: 1.6; }
.pf-sub { margin: 36px 0 0; font-size: 1.15rem; font-weight: 700; letter-spacing: -.02em; color: var(--sf-ink); }
.pf-pair, .pf-picks { display: grid; align-items: stretch; gap: clamp(14px, 2vw, 20px); margin: 22px 0 0; padding: 0; list-style: none; }
.pf-pair { grid-template-columns: 1fr 1fr; }
.pf-picks { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 14px; }
.pf-pair > article, .pf-picks > li {
	display: flex; flex-direction: column; height: 100%;
	padding: 24px; border-radius: 26px;
	background: linear-gradient(115deg, var(--sf-accent-soft) -100%, transparent 54%), var(--sf-surface);
	box-shadow: var(--sf-surface-shadow);
}
.pf-kicker { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--sf-muted); }
.pf-pair > .is-miss .pf-kicker { color: var(--sf-warn); }
.pf-pair > .is-hit .pf-kicker, .pf-picks > li.is-best .pf-kicker { color: var(--sf-ok); }
.pf-pair h3, .pf-picks h3 { margin: 8px 0 8px; font-size: 1.05rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.3; color: var(--sf-ink); }
.pf-pair p, .pf-picks p { margin: 0; color: var(--sf-text-2); font-size: .9rem; line-height: 1.55; }
.pf-picks ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.pf-picks li li { padding: 0; border-radius: 0; background: none; box-shadow: none; font-size: .84rem; line-height: 1.45; color: var(--sf-ink); }
.pf-picks li li strong { display: inline-block; min-width: 6.6em; font-weight: 700; color: var(--sf-muted); }
.pf-picks .pf-why { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--sf-line); color: var(--sf-ink); font-weight: 600; }
@media (max-width: 800px) { .pf-pair, .pf-picks { grid-template-columns: 1fr; } }
