/*
 * SEO Vibe Premium Liquid Morph Cursor
 * All selectors are scoped under sv-lmc classes / ids.
 */

/* ------------------------------------------------------------------
 * Native cursor handling (classes are only added by JS when the
 * custom cursor is actually running on a fine-pointer device).
 * ---------------------------------------------------------------- */
.sv-lmc-hide-native,
.sv-lmc-hide-native * {
	cursor: none !important;
}

/* Form fields, dropdowns, embeds: always give the system cursor back. */
.sv-lmc-hide-native.sv-lmc-native-zone,
.sv-lmc-hide-native.sv-lmc-native-zone * {
	cursor: auto !important;
}

/* ------------------------------------------------------------------
 * Root
 * ---------------------------------------------------------------- */
.sv-lmc-root {
	--sv-lmc-navy: 16, 27, 53;
	--sv-lmc-ivory: 248, 250, 252;
	--sv-lmc-slate: 138, 155, 184;
	--sv-lmc-p: 37, 99, 235;
	--sv-lmc-a: 214, 184, 117;
	--sv-lmc-gloss: 0.55;

	position: fixed;
	left: 0;
	top: 0;
	width: 0;
	height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	pointer-events: none !important;
	z-index: 2147483000;
	opacity: 0;
	transition: opacity 0.28s ease;
	will-change: transform;
	-webkit-font-smoothing: antialiased;
}

.sv-lmc-root--preview {
	position: absolute;
	z-index: 20;
}

.sv-lmc-root.is-visible {
	opacity: 1;
}

.sv-lmc-root,
.sv-lmc-root * {
	pointer-events: none !important;
	user-select: none;
	-webkit-user-select: none;
}

.sv-lmc-svg {
	position: absolute;
	left: -160px;
	top: -160px;
	width: 320px;
	height: 320px;
	overflow: visible;
	display: block;
	max-width: none;
	margin: 0;
}

/* ------------------------------------------------------------------
 * Liquid body (light sections)
 * ---------------------------------------------------------------- */
.sv-lmc-body {
	fill: rgba(var(--sv-lmc-p), 0.16);
	stroke: rgba(var(--sv-lmc-p), 0.62);
	stroke-width: 1.2;
	transition: fill 0.35s ease, stroke 0.35s ease, opacity 0.3s ease;
}

.sv-lmc-depth {
	opacity: calc(0.28 + var(--sv-lmc-gloss) * 0.62);
	transition: opacity 0.3s ease;
}

.sv-lmc-echo {
	fill: none;
	stroke: rgba(var(--sv-lmc-slate), 0.42);
	stroke-width: 1;
	transition: stroke 0.35s ease, opacity 0.3s ease;
}

.sv-lmc-gloss {
	opacity: calc(var(--sv-lmc-gloss) * 0.78);
	transition: opacity 0.3s ease;
}

.sv-lmc-core {
	fill: rgb(var(--sv-lmc-navy));
	transform-box: fill-box;
	transform-origin: center;
	transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.25s ease, fill 0.35s ease;
}

/* ------------------------------------------------------------------
 * Dark sections
 * ---------------------------------------------------------------- */
.sv-lmc-root[data-tone="dark"] .sv-lmc-body {
	fill: rgba(var(--sv-lmc-ivory), 0.13);
	stroke: rgba(var(--sv-lmc-a), 0.85);
}

.sv-lmc-root[data-tone="dark"] .sv-lmc-echo {
	stroke: rgba(var(--sv-lmc-ivory), 0.26);
}

.sv-lmc-root[data-tone="dark"] .sv-lmc-core {
	fill: rgb(var(--sv-lmc-a));
}

/* ------------------------------------------------------------------
 * Labelled states (link / button / card): a firmer surface so the
 * label always stays readable.
 * ---------------------------------------------------------------- */
.sv-lmc-root[data-label="1"] .sv-lmc-body {
	fill: rgba(var(--sv-lmc-p), 0.88);
	stroke: rgba(var(--sv-lmc-a), 0.95);
}

.sv-lmc-root[data-label="1"][data-tone="dark"] .sv-lmc-body {
	fill: rgba(var(--sv-lmc-ivory), 0.9);
	stroke: rgba(var(--sv-lmc-a), 1);
}

.sv-lmc-root[data-label="1"] .sv-lmc-core {
	opacity: 0;
	transform: scale(0.2);
}

.sv-lmc-root[data-label="1"] .sv-lmc-gloss {
	opacity: calc(var(--sv-lmc-gloss) * 0.4);
}

.sv-lmc-root[data-label="1"] .sv-lmc-echo {
	opacity: 0.55;
}

/* Hover without labels (labels disabled): keep the surface airy. */
.sv-lmc-root[data-label="0"][data-state="link"] .sv-lmc-body,
.sv-lmc-root[data-label="0"][data-state="button"] .sv-lmc-body,
.sv-lmc-root[data-label="0"][data-state="card"] .sv-lmc-body {
	fill: rgba(var(--sv-lmc-p), 0.2);
}

.sv-lmc-root[data-label="0"][data-tone="dark"][data-state="link"] .sv-lmc-body,
.sv-lmc-root[data-label="0"][data-tone="dark"][data-state="button"] .sv-lmc-body,
.sv-lmc-root[data-label="0"][data-tone="dark"][data-state="card"] .sv-lmc-body {
	fill: rgba(var(--sv-lmc-ivory), 0.16);
}

/* Image focus: a soft ring, image stays fully visible. */
.sv-lmc-root[data-state="image"] .sv-lmc-body {
	fill: rgba(var(--sv-lmc-ivory), 0.07);
	stroke: rgba(var(--sv-lmc-ivory), 0.9);
	stroke-width: 1.5;
}

.sv-lmc-root[data-state="image"] .sv-lmc-core {
	transform: scale(0.6);
	fill: rgb(var(--sv-lmc-ivory));
}

.sv-lmc-root[data-state="image"] .sv-lmc-echo {
	stroke: rgba(var(--sv-lmc-a), 0.55);
}

/* Reading text: shrink, fade, and turn the core into a slim caret. */
.sv-lmc-root[data-state="text"] .sv-lmc-body {
	opacity: 0.55;
}

.sv-lmc-root[data-state="text"] .sv-lmc-echo {
	opacity: 0;
}

.sv-lmc-root[data-state="text"] .sv-lmc-core {
	transform: scale(0.5, 4.2);
}

/* ------------------------------------------------------------------
 * Label
 * ---------------------------------------------------------------- */
.sv-lmc-label {
	position: absolute;
	left: 0;
	top: 0;
	transform: translate(-50%, -50%) scale(0.85);
	opacity: 0;
	margin: 0;
	padding: 0 0 0 0.16em;
	font: 600 9.5px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	white-space: nowrap;
	color: rgb(var(--sv-lmc-ivory));
	transition: opacity 0.2s ease, transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.3s ease;
}

.sv-lmc-root.is-label .sv-lmc-label {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
	transition-delay: 0.05s, 0.05s, 0s;
}

/* Light primary colour: use navy text on the labelled surface. */
.sv-lmc-root[data-ptone="light"] .sv-lmc-label {
	color: rgb(var(--sv-lmc-navy));
}

/* Dark sections use an ivory surface, so the label is navy. */
.sv-lmc-root[data-tone="dark"] .sv-lmc-label {
	color: rgb(var(--sv-lmc-navy));
}

/* ------------------------------------------------------------------
 * Safety nets
 * ---------------------------------------------------------------- */
@media (hover: none), (pointer: coarse) {
	.sv-lmc-root:not(.sv-lmc-root--preview) {
		display: none !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sv-lmc-root:not(.sv-lmc-root--preview) {
		display: none !important;
	}
}

@media print {
	.sv-lmc-root {
		display: none !important;
	}
}
