/* Webdoor Motion cursor (09 L4): the follower and the "system cursor hidden" rule. Loaded only on pages that use a cursor
   effect. Everything is gated on classes wd-cursor.js adds, so with no script, a touch screen, reduced motion or the
   keyboard in use the page keeps its normal cursor. The values come from --wd-cur-* on the follower (copied from the section). */
.wd-cursor {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 99999;
	width: var(--wd-cur-size, 14px);
	height: var(--wd-cur-size, 14px);
	margin: calc(var(--wd-cur-size, 14px) / -2) 0 0 calc(var(--wd-cur-size, 14px) / -2);
	border-radius: 50%;
	background: var(--wd-cur-color, #fff);
	mix-blend-mode: var(--wd-cur-blend, difference);
	pointer-events: none;
	opacity: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.2s ease, width 0.25s cubic-bezier(.22, 1, .36, 1), height 0.25s cubic-bezier(.22, 1, .36, 1), margin 0.25s cubic-bezier(.22, 1, .36, 1), background-color 0.2s ease;
}
.wd-cursor--ring {
	background: transparent;
	border: 1.5px solid var(--wd-cur-color, #fff);
}
.wd-cursor--on {
	opacity: 1;
}
/* Grown: the dot takes the grown colour; a ring takes it as its line, and can fill (fill is only written when asked). */
.wd-cursor--grow:not(.wd-cursor--ring) {
	background: var(--wd-cur-color-grown, var(--wd-cur-color, #fff));
}
.wd-cursor--ring.wd-cursor--grow {
	border-color: var(--wd-cur-color-grown, var(--wd-cur-color, #fff));
	background: var(--wd-cur-fill-grown, transparent);
}
.wd-cursor--grow {
	width: calc(var(--wd-cur-size, 14px) * var(--wd-cur-grow, 3));
	height: calc(var(--wd-cur-size, 14px) * var(--wd-cur-grow, 3));
	margin: calc(var(--wd-cur-size, 14px) * var(--wd-cur-grow, 3) / -2) 0 0 calc(var(--wd-cur-size, 14px) * var(--wd-cur-grow, 3) / -2);
}
.wd-cursor--label {
	width: calc(var(--wd-cur-size, 14px) * 4.5);
	height: calc(var(--wd-cur-size, 14px) * 4.5);
	margin: calc(var(--wd-cur-size, 14px) * 4.5 / -2) 0 0 calc(var(--wd-cur-size, 14px) * 4.5 / -2);
	mix-blend-mode: normal;
}
/* With a word in it the circle is solid (so the word reads on any page): the base colour, and the grown / fill colour only
   while it is also over a grow target (so a word shown everywhere does not hide the base colour). */
.wd-cursor--label,
.wd-cursor--ring.wd-cursor--label {
	background: var(--wd-cur-color, #fff);
	border-color: var(--wd-cur-color, #fff);
}
.wd-cursor--label.wd-cursor--grow,
.wd-cursor--ring.wd-cursor--label.wd-cursor--grow {
	background: var(--wd-cur-fill-grown, var(--wd-cur-color-grown, var(--wd-cur-color, #fff)));
	border-color: var(--wd-cur-color-grown, var(--wd-cur-color, #fff));
}
.wd-cursor__label {
	font: 600 12px/1 system-ui, sans-serif;
	letter-spacing: 0.02em;
	color: var(--wd-cur-label-color, #000);
	opacity: 0;
	transition: opacity 0.15s ease;
	white-space: nowrap;
}
.wd-cursor--label .wd-cursor__label {
	opacity: 1;
}

/* A section that hides the system cursor: only while the script says the pointer is in it and the keyboard is not in use.
   Form fields keep their own cursor (the follower hides over them too). */
.wd-cursor-hide,
.wd-cursor-hide *:not(input):not(textarea):not(select):not([contenteditable="true"]) {
	cursor: none !important;
}

/* Magnetic, tilt, reveal and trail parts: pointer-transparent by default so the pointer sees the section, not the picture. */
[data-wd-cursor="reveal"] [data-wd-part="image"],
[data-wd-cursor="trail"] [data-wd-part="trail"] {
	position: absolute;
	top: 0;
	left: 0;
	pointer-events: none;
	opacity: 0;
}
[data-wd-cursor="reveal"] [data-wd-part="image"] {
	z-index: 2;
	transition: opacity 0.25s ease;
}
[data-wd-cursor="reveal"] [data-wd-part="image"].wd-cur-on {
	opacity: 1;
}
[data-wd-cursor="tilt"] {
	will-change: transform;
	transform-style: preserve-3d;
}
[data-wd-cursor="tilt"] [data-wd-part="glare"] {
	position: absolute;
	inset: 0;
	border-radius: inherit;
	pointer-events: none;
	opacity: 0;
	background: radial-gradient(circle at var(--wd-gx, 50%) var(--wd-gy, 50%), rgba(255, 255, 255, 0.35), transparent 60%);
	transition: opacity 0.25s ease;
}
[data-wd-cursor="tilt"].wd-cur-in [data-wd-part="glare"] {
	opacity: 1;
}
[data-wd-cursor="spotlight"]::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: 0;
	background: radial-gradient(circle var(--wd-cur-size, 320px) at var(--wd-mx, 50%) var(--wd-my, 50%), var(--wd-cur-color, rgba(255, 255, 255, 0.18)), transparent 70%);
	transition: opacity 0.3s ease;
}
[data-wd-cursor="spotlight"].wd-cur-in::after {
	opacity: 1;
}
:where([data-wd-cursor="spotlight"], [data-wd-cursor="reveal"], [data-wd-cursor="trail"]) {
	position: relative;
}
:where([data-wd-cursor="reveal"], [data-wd-cursor="trail"]) {
	overflow: clip;
}

@media (prefers-reduced-motion: reduce), (hover: none), (pointer: coarse) {
	.wd-cursor { display: none; }
	.wd-cursor-hide, .wd-cursor-hide * { cursor: revert !important; }
	[data-wd-cursor="reveal"] [data-wd-part="image"],
	[data-wd-cursor="trail"] [data-wd-part="trail"],
	[data-wd-cursor="tilt"] [data-wd-part="glare"],
	[data-wd-cursor="spotlight"]::after { display: none; }
}
