/*
 * OPL Liquid Hero — layering.
 * Every rule hangs off .opl-lh-on, which the script adds only once the bubble
 * has actually started. Plugin off, or any safety gate says no → none of this
 * applies and the hero is exactly as Elementor renders it.
 */

/* the 3D layer: fills the hero, sits under the content, never takes clicks */
.opl-hero-scope.opl-lh-on > .opl-lh-stage {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	overflow: hidden;
}

.opl-hero-scope.opl-lh-on > .opl-lh-stage > canvas {
	display: block;
	width: 100%;
	height: 100%;
}

/* headline, text and buttons always above the bubble */
.opl-hero-scope.opl-lh-on > :not(.opl-lh-stage):not(.opl-lh-ui) {
	position: relative;
	z-index: 1;
}

/* ------------------------------------------------------------------
 * v1.1 explore mode — blueprint layer above the content.
 * The layer itself never takes clicks; only its visible controls do,
 * and only while it is open.
 * ------------------------------------------------------------------ */
.opl-hero-scope.opl-lh-on > .opl-lh-ui {
	/* test 2026-11-17: pure white lines (was #9fd4ff / rgba(159,212,255,.55)) */
	--opl-bp: #ffffff;
	--opl-bp-soft: rgba(255, 255, 255, 0.7);
	--opl-line: 1.5px;
	--opl-ink: #ffffff;
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	overflow: hidden;
}

.opl-lh-ui .opl-lh-hit {
	position: absolute;
	left: 0;
	top: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	opacity: 0;
	pointer-events: none;
}
.opl-lh-ui .opl-lh-hit:focus-visible {
	opacity: 1;
	outline: 2px solid var(--opl-bp);
	outline-offset: 6px;
}

/* everything below is hidden until .is-active */
.opl-lh-ui .opl-lh-dial,
.opl-lh-ui .opl-lh-card,
.opl-lh-ui .opl-lh-lines {
	opacity: 0;
	visibility: hidden;
	/* no transform transition on the dial: it is moved every frame */
	transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
.opl-lh-ui.is-active .opl-lh-dial,
.opl-lh-ui.is-active .opl-lh-lines {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.35s ease, visibility 0s;
}
.opl-lh-ui .opl-lh-card {
	transition: opacity 0.3s ease, transform 0.35s ease, visibility 0s linear 0.35s;
}
.opl-lh-ui.is-active .opl-lh-card {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s;
}
.opl-lh-ui.is-active .opl-lh-card:nth-child(1) { transition-delay: 0.12s; }
.opl-lh-ui.is-active .opl-lh-card:nth-child(2) { transition-delay: 0.22s; }

/* ---- leader lines ---- */
.opl-lh-ui .opl-lh-lines {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: visible;
	pointer-events: none;
}
.opl-lh-ui .opl-lh-leader {
	fill: none;
	stroke: var(--opl-bp);
	stroke-width: var(--opl-line);
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
	transition: stroke-dashoffset 0.25s ease;
}
.opl-lh-ui.is-active .opl-lh-leader {
	stroke-dashoffset: 0;
	transition: stroke-dashoffset 0.6s ease 0.3s;
}
.opl-lh-ui.is-active .opl-lh-leader--2 { transition-delay: 0.4s; }
.opl-lh-ui .opl-lh-dot { fill: var(--opl-bp); }
.opl-lh-ui .opl-lh-dot--ring { fill: none; stroke: var(--opl-bp); stroke-width: var(--opl-line); }

/* ---- dial ---- */
.opl-lh-ui .opl-lh-dial {
	position: absolute;
	left: 0;
	top: 0;
	pointer-events: none;
}
.opl-lh-ui .opl-lh-dial-svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: visible;
	pointer-events: none;
}
.opl-lh-ui .opl-lh-track { fill: none; stroke: var(--opl-bp); stroke-width: var(--opl-line); }
.opl-lh-ui .opl-lh-track-hit {
	fill: none;
	stroke: transparent;
	stroke-width: 22;
	cursor: pointer;
	touch-action: none;
}
.opl-lh-ui.is-active .opl-lh-track-hit { pointer-events: stroke; }
.opl-lh-ui .opl-lh-tick { stroke: var(--opl-bp-soft); stroke-width: var(--opl-line); }
.opl-lh-ui .opl-lh-tick--home { stroke: var(--opl-bp); stroke-width: 2; }
.opl-lh-ui .opl-lh-label {
	fill: var(--opl-bp);
	font: 10.5px/1 ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
	text-anchor: middle;
	letter-spacing: 0.04em;
}

.opl-lh-ui .opl-lh-marker,
.opl-lh-ui .opl-lh-btn {
	position: absolute;
	transform: translate(-50%, -50%);
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}
.opl-lh-ui.is-active .opl-lh-marker,
.opl-lh-ui.is-active .opl-lh-btn {
	pointer-events: auto;
}
.opl-lh-ui .opl-lh-marker {
	width: 13px;
	height: 13px;
	border-radius: 50%;
	background: var(--opl-bp);
	box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.22);
	cursor: grab;
	touch-action: none;
	transition: left 0.12s ease-out, top 0.12s ease-out;
}
.opl-lh-ui .opl-lh-marker:active { cursor: grabbing; }
.opl-lh-ui .opl-lh-btn {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	border: var(--opl-line) solid var(--opl-bp);
	background: rgba(24, 10, 62, 0.45);
	color: var(--opl-bp);
	font: 16px/22px ui-monospace, "SFMono-Regular", Consolas, monospace;
	text-align: center;
	cursor: pointer;
	transition: background-color 0.15s ease;
}
.opl-lh-ui .opl-lh-btn:hover { background: rgba(255, 255, 255, 0.22); }
.opl-lh-ui .opl-lh-marker:focus-visible,
.opl-lh-ui .opl-lh-btn:focus-visible,
.opl-lh-ui .opl-lh-link:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 3px;
}

/* ---- callout cards ---- */
.opl-lh-ui .opl-lh-cards {
	position: absolute;
	inset: 0;
	pointer-events: none;
}
/* glass card (client 2026-11-17: 10px corners, glass look) */
.opl-lh-ui .opl-lh-card {
	position: absolute;
	left: 0;
	top: 0;
	box-sizing: border-box;
	width: 236px;
	padding: 12px 15px 13px;
	border: 1px solid rgba(255, 255, 255, 0.38);
	border-radius: 10px;
	background:
		linear-gradient(160deg, rgba(255, 255, 255, 0.20) 0%, rgba(255, 255, 255, 0.07) 42%, rgba(30, 12, 72, 0.30) 100%);
	-webkit-backdrop-filter: blur(14px) saturate(140%);
	backdrop-filter: blur(14px) saturate(140%);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.45),
		inset 0 -1px 0 rgba(255, 255, 255, 0.08),
		0 10px 28px rgba(18, 6, 48, 0.28);
	color: var(--opl-ink);
	text-shadow: 0 1px 2px rgba(10, 4, 30, 0.45);
	text-align: left;
	transform: translateY(8px);
}
.opl-lh-ui.is-active .opl-lh-card {
	transform: none;
	pointer-events: auto;
}
.opl-lh-ui .opl-lh-idx {
	display: block;
	margin: 0 0 4px;
	color: var(--opl-bp);
	font: 10.5px/1.2 ui-monospace, "SFMono-Regular", Consolas, monospace;
	letter-spacing: 0.08em;
}
.opl-lh-ui .opl-lh-card p {
	margin: 0;
	color: inherit;
}
.opl-lh-ui .opl-lh-title {
	margin: 0 0 4px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
}
.opl-lh-ui .opl-lh-text {
	font-size: 13px;
	line-height: 1.45;
	opacity: 0.92;
}
.opl-lh-ui .opl-lh-ruo {
	margin-top: 6px !important;
	font-size: 11px;
	letter-spacing: 0.02em;
	color: var(--opl-bp) !important;
}
.opl-lh-ui .opl-lh-link {
	display: inline-block;
	margin-top: 8px;
	color: #ffffff;
	font-size: 12.5px;
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid var(--opl-bp);
	padding-bottom: 1px;
}
.opl-lh-ui .opl-lh-link:hover { color: var(--opl-bp); }
