/* Perspective device, continuous cover-to-feature choreography. */
.wkn-device-story {
	--device-width: clamp(230px,32svh,330px);
	--device-height: calc(var(--device-width) * 2.025);
	--device-stage-height: calc(100svh - 204px);
	--device-scene-bg: #f6f6f8;
	position: relative;
	background: var(--device-scene-bg);
	color: #1b1d2c;
}
.wkn-device-story .wkn-device-cover {
	min-height: max(740px,88svh);
	padding-top: clamp(150px,17svh,190px);
}
.wkn-device-cover .wkn-polar-hero-copy { max-width: 790px; }
.wkn-device-cover::after { background: var(--device-scene-bg); }
.wkn-device-cover-cue { position: absolute; z-index: 5; bottom: 36px; right: 34px; display: flex; align-items: center; gap: 10px; color: #fff; font-size: 10px; font-weight: 850; letter-spacing: .12em; }
.wkn-device-cover-cue span { font-size: 20px; color: #ffb3b5; }
.wkn-device-pin {
	position: sticky;
	top: 164px;
	z-index: 4;
	height: var(--device-stage-height);
	margin-top: -230px;
	pointer-events: none;
}
.wkn-device-stage { position: relative; height: 100%; }
.wkn-device-rig {
	--device-width: clamp(230px,32svh,330px);
	--device-height: calc(var(--device-width) * 2.025);
	--device-rim: #00090d;
	--device-rim-light: rgba(255,255,255,.22);
	--device-x: 0px;
	--device-y: -40px;
	--device-scale: 1.4;
	--device-rx: 40deg;
	--device-ry: 0deg;
	--device-rz: 0deg;
	--device-glare-x: 0px;
	--device-glare-y: 0px;
	--device-glare-angle: -43deg;
	position: absolute;
	top: 0;
	left: calc(50% - var(--device-width) / 2);
	width: var(--device-width);
	height: var(--device-height);
	margin: 0;
	perspective: 1200px;
	contain: layout style;
}
.wkn-device-rotor {
	position: relative;
	width: 100%;
	height: 100%;
	transform: perspective(1200px) translate3d(var(--device-x),var(--device-y),0) scale(var(--device-scale)) rotateX(var(--device-rx)) rotateY(var(--device-ry)) rotateZ(var(--device-rz));
	transform-origin: 50% 50%;
	transform-style: preserve-3d;
	will-change: transform;
}
.wkn-device-phone {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	margin: 0;
	border-radius: calc(var(--device-width) * .14);
	background: var(--device-rim);
	box-shadow:
		inset 0 0 0 .8px var(--device-rim-light),
		0 .84px .84px -.25px rgba(0,0,0,.08),
		0 1.99px 1.99px -.5px rgba(0,0,0,.08),
		0 3.63px 3.63px -.75px rgba(0,0,0,.08),
		0 6.04px 6.04px -1px rgba(0,0,0,.08),
		0 9.75px 9.75px -1.25px rgba(0,0,0,.09),
		0 15.96px 15.96px -1.5px rgba(0,0,0,.09),
		0 27.48px 27.48px -1.75px rgba(0,0,0,.10),
		0 50px 50px -2px rgba(0,0,0,.16);
	transition: background-color .6s ease;
}
.wkn-device-phone::after { position: absolute; z-index: 10; inset: 1px; border: .7px solid rgba(255,255,255,.15); border-radius: inherit; pointer-events: none; content: ""; }
.wkn-device-display { position: absolute; inset: 6px; overflow: hidden; border-radius: calc(var(--device-width) * .117); background: #2d5992; transform: translateZ(.1px); }
.wkn-device-status { position: absolute; z-index: 5; top: 0; right: 0; left: 0; display: flex; height: 6.3%; align-items: center; justify-content: space-between; padding: 0 8% 0 10%; background: #2d5992; color: #fff; font-family: system-ui,sans-serif; font-size: calc(var(--device-width) * .041); font-weight: 700; line-height: 1; }
.wkn-device-status svg { width: 18%; height: auto; }
.wkn-device-island { position: absolute; z-index: 7; top: 1.8%; left: 50%; width: 29%; height: 3.25%; border-radius: 999px; background: #020408; box-shadow: inset 0 -1px 1px rgba(255,255,255,.08); transform: translateX(-50%); }
.wkn-device-island i { position: absolute; top: 26%; right: 9%; width: 10%; aspect-ratio: 1; border: 1px solid #0f161d; border-radius: 50%; background: radial-gradient(circle at 40% 40%,#172f49,#020408 70%); }
.wkn-device-viewport { position: absolute; inset: 6% 0 3.1%; overflow: hidden; background: #fff; }
.wkn-device-slide { position: absolute; inset: 0; overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(7%) scale(1.035); transform-origin: 50% 70%; transition: opacity .55s ease,transform .8s cubic-bezier(.18,.75,.2,1),visibility 0s .8s; }
.wkn-device-slide.is-active { z-index: 2; opacity: 1; visibility: visible; transform: translateY(0) scale(1); transition-delay: 0s; }
.wkn-device-slide img {
	position: absolute;
	top: -9.52%;
	left: -4.945%;
	display: block;
	width: 109.89%;
	max-width: none;
	height: 119.05%;
	border: 0;
	border-radius: 0;
	object-fit: fill;
}
.wkn-device-screen-title { position: absolute; z-index: 3; top: 0; right: 0; left: 0; display: flex; height: 9.5%; align-items: center; justify-content: center; background: #2d5992; color: #fff; font-size: calc(var(--device-width) * .052); font-weight: 600; line-height: 1.1; }
.wkn-device-homebar { position: absolute; z-index: 6; bottom: 1%; left: 50%; width: 31%; height: .65%; border-radius: 999px; background: #121a22; transform: translateX(-50%); }
.wkn-device-display::after { position: absolute; z-index: 4; right: 0; bottom: 0; left: 0; height: 3.2%; background: #fff; content: ""; }
.wkn-device-glare { position: absolute; z-index: 9; top: -96.5%; right: -96%; left: -96%; width: 292%; height: 85.5%; background: conic-gradient(rgba(255,255,255,0) 108deg,rgba(255,255,255,0) 136.407deg,rgba(255,255,255,.37) 320.4deg); opacity: .66; transform: translate(var(--device-glare-x),var(--device-glare-y)) rotate(var(--device-glare-angle)); pointer-events: none; will-change: transform; }
.wkn-device-button { position: absolute; z-index: -1; width: 3px; border-radius: 2px; background: var(--device-rim); transform: translateZ(-2px); }
.wkn-device-button--volume { top: 20%; left: -2px; height: 13%; }
.wkn-device-button--power { top: 28%; right: -2px; height: 11%; }
.wkn-device-float { position: absolute; z-index: 12; opacity: 0; visibility: hidden; transform: translate3d(0,24px,34px) scale(.65) rotate(-13deg); transition: opacity .45s ease,transform .7s cubic-bezier(.17,.8,.2,1),visibility 0s .7s; }
.wkn-device-float--card { top: 39%; left: 63%; display: flex; width: 225px; align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,.7); border-radius: 15px; padding: 12px 14px; background: rgba(255,255,255,.97); box-shadow: 0 18px 36px rgba(0,9,13,.2); color: #1b1d2c; }
.wkn-device-float--card img { width: 35px; height: 44px; object-fit: contain; }
.wkn-device-float--card span { display: grid; gap: 4px; }
.wkn-device-float--card small { color: #93080a; font-size: 7px; font-weight: 850; letter-spacing: .08em; }
.wkn-device-float--card b { font-size: 12px; letter-spacing: -.025em; }
.wkn-device-float--card i { margin-left: auto; color: #c4090b; font-size: 17px; font-style: normal; }
.wkn-device-float--pin-one { top: 17%; left: -20%; width: 65px; height: 78px; object-fit: contain; }
.wkn-device-float--pin-two { right: -20%; bottom: 17%; width: 60px; height: 75px; object-fit: contain; }
.wkn-device-story[data-device-step="1"] .wkn-device-float--pin-one,
.wkn-device-story[data-device-step="2"] .wkn-device-float--card,
.wkn-device-story[data-device-step="3"] .wkn-device-float--pin-one,
.wkn-device-story[data-device-step="3"] .wkn-device-float--pin-two,
.wkn-device-story[data-device-step="4"] .wkn-device-float--pin-two { opacity: 1; visibility: visible; transform: translate3d(0,0,34px) scale(1) rotate(-7deg); transition-delay: .08s,0s,0s; }
.wkn-device-story[data-device-tone="slate"] .wkn-device-rig { --device-rim: #a6b3c3; --device-rim-light: rgba(255,255,255,.65); }
.wkn-device-chapters { position: relative; z-index: 2; margin-top: calc(200px - var(--device-stage-height)); padding-bottom: 190px; }
.wkn-device-step { position: relative; display: flex; min-height: max(550px,70svh); align-items: center; scroll-margin-top: 100px; }
.wkn-device-step-copy { width: min(39%,445px); margin-left: 58%; padding: 36px 0; }
.has-device-motion .wkn-device-step-copy { opacity: var(--step-opacity,1); transition: opacity .16s ease; }
.wkn-device-step--right .wkn-device-step-copy { margin-left: 6%; text-align: right; }
.wkn-device-eyebrow { margin: 0 0 15px; color: #b3080b; font-size: 10px; font-weight: 850; letter-spacing: .1em; line-height: 1.5; }
.wkn-device-step h2 { margin: 0; color: #1b1d2c; font-size: clamp(30px,3.4vw,48px); font-weight: 820; letter-spacing: -.055em; line-height: 1.04; }
.wkn-device-step-copy > p:not(.wkn-device-eyebrow) { margin: 19px 0 0; color: #4d5155; font-size: 16px; line-height: 1.7; }
.wkn-device-step-copy > a { display: inline-flex; align-items: center; gap: 9px; margin-top: 21px; color: #1b1d2c; font-size: 12px; font-weight: 800; }
.wkn-device-step-copy > a span { color: #c4090b; font-size: 17px; transition: transform .2s ease; }
.wkn-device-step-copy > a:hover span { transform: translate(3px,-3px); }
.wkn-device-step[data-tone="slate"] h2,
.wkn-device-step[data-tone="slate"] .wkn-device-step-copy > a { color: #fff; }
.wkn-device-step[data-tone="slate"] .wkn-device-eyebrow,
.wkn-device-step[data-tone="slate"] .wkn-device-step-copy > a span { color: #ffb3b5; }
.wkn-device-step[data-tone="slate"] .wkn-device-step-copy > p:not(.wkn-device-eyebrow) { color: #edf1f3; }
.wkn-device-story[data-device-tone] .wkn-device-step h2,
.wkn-device-story[data-device-tone] .wkn-device-step-copy > a { color: var(--device-copy-color,#1b1d2c); }
.wkn-device-story[data-device-tone] .wkn-device-step .wkn-device-eyebrow,
.wkn-device-story[data-device-tone] .wkn-device-step-copy > a span { color: var(--device-accent-color,#c4090b); }
.wkn-device-story[data-device-tone] .wkn-device-step-copy > p:not(.wkn-device-eyebrow) { color: var(--device-body-color,#41434e); }
.wkn-device-nav { position: fixed; z-index: 30; bottom: 24px; left: 50%; display: flex; align-items: center; gap: 13px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 5px 9px; background: rgba(255,255,255,.93); box-shadow: 0 6px 24px rgba(0,9,13,.1); transform: translateX(-50%); backdrop-filter: blur(14px); }
.wkn-device-nav a { border-radius: 9px; padding: 8px 13px; color: #1b1d2c; font-size: 13px; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; transition: color .25s ease,background .25s ease,transform .25s ease; }
.wkn-device-nav a[aria-current="step"] { background: #c4090b; color: #fff; transform: rotate(-4deg); }
.has-device-motion .wkn-device-nav { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .25s ease,visibility .25s; }
.has-device-motion.is-device-engaged .wkn-device-nav { opacity: 1; visibility: visible; pointer-events: auto; }
.wkn-device-source-note { position: relative; z-index: 6; max-width: 700px; margin: 0 auto; padding: 20px 25px 32px; color: #edf1f3; font-size: 10px; text-align: center; line-height: 1.6; }
.wkn-device-story[data-device-tone="sand"] .wkn-device-source-note { color: #4d5155; }

/* Reuse the same hardware in the App and Themes introductions. */
.wkn-device-rig--standalone { --device-width: clamp(220px,26vw,285px); --device-scale: 1; --device-rx: 7deg; --device-ry: -18deg; --device-y: 0px; --device-glare-x: -170px; --device-glare-y: 220px; --device-glare-angle: -63deg; position: relative; grid-column: 2; grid-row: 1; justify-self: center; top: auto; left: auto; margin: 10px auto; }
.wkn-device-rig--standalone .wkn-device-rotor { transition: transform .6s cubic-bezier(.18,.75,.2,1); }
.wkn-device-rig--standalone:hover { --device-rx: 1deg; --device-ry: -7deg; }
.wkn-app-page .wkn-hero-side-note { z-index: 8; }

@media (max-width: 1100px) and (min-width: 701px) {
	.wkn-device-step-copy { width: 39%; margin-left: 58%; }
	.wkn-device-step--right .wkn-device-step-copy { margin-left: 3%; }
	.wkn-device-step-copy > p:not(.wkn-device-eyebrow) { font-size: 14px; }
	.wkn-device-float--card { left: 58%; width: 195px; }
}
@media (max-width: 700px) {
	.wkn-device-story { --device-width: clamp(154px,22svh,210px); --device-height: calc(var(--device-width) * 2.025); --device-stage-height: min(48svh,400px); }
	.wkn-device-story .wkn-device-cover { min-height: max(700px,92svh); padding: 126px 20px 0; }
	.wkn-device-cover h1 { font-size: clamp(47px,11vw,66px); }
	.wkn-device-cover .wkn-polar-hero-copy > p:not(.wkn-polar-eyebrow) { font-size: 15px; }
	.wkn-device-cover .wkn-polar-proofline { font-size: 7px; gap: 8px; }
	.wkn-device-cover-cue { right: 18px; bottom: 25px; font-size: 8px; }
	.wkn-device-pin { top: 94px; margin-top: -210px; }
	.wkn-device-pin::before { position: absolute; z-index: 0; inset: -10px 0 -15px; background: linear-gradient(to bottom,var(--device-scene-bg) 87%,transparent); opacity: 0; pointer-events: none; content: ""; transition: opacity .25s ease; }
	.is-device-engaged .wkn-device-pin::before { opacity: 1; }
	.wkn-device-story .wkn-device-rig { --device-width: clamp(154px,22svh,210px); }
	.wkn-device-chapters { margin-top: calc(90px - var(--device-stage-height)); padding-bottom: 140px; }
	.wkn-device-step { min-height: max(730px,100svh); align-items: flex-start; padding-top: calc(var(--device-stage-height) + 50px); scroll-margin-top: 72px; }
	.wkn-device-step-copy,
	.wkn-device-step--right .wkn-device-step-copy { width: min(420px,100%); margin: 0 auto; padding: 22px 0 42px; text-align: center; }
	.has-device-motion .wkn-device-step { padding-top: 0; }
	.has-device-motion .wkn-device-step-copy,
	.has-device-motion .wkn-device-step--right .wkn-device-step-copy { position: fixed; z-index: 5; top: calc(94px + var(--device-height) + 14px); right: 18px; left: 18px; width: min(420px,calc(100% - 36px)); margin: 0 auto; padding: 0; opacity: 0 !important; visibility: hidden; pointer-events: none; transition: opacity .3s ease; }
	.is-device-engaged .wkn-device-step.is-active .wkn-device-step-copy { opacity: 1 !important; visibility: visible; pointer-events: auto; }
	.wkn-device-step h2 { font-size: clamp(29px,7.6vw,41px); }
	.wkn-device-eyebrow { margin-bottom: 10px; font-size: 9px; }
	.wkn-device-step-copy > p:not(.wkn-device-eyebrow) { max-width: 360px; margin: 13px auto 0; font-size: 13px; line-height: 1.65; }
	.wkn-device-step-copy > a { margin-top: 14px; font-size: 11px; }
	.wkn-device-float--card { top: 43%; left: 43%; width: 165px; gap: 7px; border-radius: 11px; padding: 9px; }
	.wkn-device-float--card img { width: 24px; height: 33px; }
	.wkn-device-float--card small { font-size: 5px; }
	.wkn-device-float--card b { font-size: 9px; }
	.wkn-device-float--pin-one { left: -16%; width: 42px; height: 55px; }
	.wkn-device-float--pin-two { right: -16%; width: 42px; height: 55px; }
	.wkn-device-display { inset: 4px; }
	.wkn-device-nav { bottom: 17px; gap: 4px; padding: 4px 6px; }
	.wkn-device-nav a { padding: 7px 10px; font-size: 10px; }
	.wkn-device-rig--standalone { --device-width: 210px; grid-column: 1; grid-row: 2; margin: 8px auto 15px; }
}
@media (max-width: 700px) and (max-height: 720px) {
	.wkn-device-story,
	.wkn-device-story .wkn-device-rig { --device-width: clamp(130px,22svh,158px); }
	.wkn-device-pin { top: 84px; }
	.has-device-motion .wkn-device-step-copy,
	.has-device-motion .wkn-device-step--right .wkn-device-step-copy { top: calc(84px + var(--device-height) + 10px); }
	.wkn-device-step h2 { font-size: 28px; }
	.wkn-device-step-copy > p:not(.wkn-device-eyebrow) { font-size: 12px; line-height: 1.5; }
}
@media (prefers-reduced-motion: reduce) {
	.wkn-device-slide,
	.wkn-device-float,
	.wkn-device-nav,
	.wkn-device-nav a,
	.wkn-device-rig--standalone .wkn-device-rotor { transition: none !important; }
	.has-device-motion .wkn-device-step-copy { transition: none !important; }
	.wkn-device-rotor,.wkn-device-glare { will-change: auto; }
}
