/**
 * Scroll Logo — fixed page-level SVG driven by GSAP ScrollTrigger.
 *
 * Stage mirrors Uncode Layout Width / Align (.limit-width).
 * Logo anchors (left/top %) are relative to the stage, not the full viewport.
 *
 * Stacking (inside .main-wrapper):
 *   logo              = 100
 *   keyframe rows     = Uncode z-index as-is (typically 0–3) → under logo
 *   non-keyframe rows = 110 + Uncode z-index → always above logo
 */

.uncode-child-scroll-logo-stage {
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
	pointer-events: none;
	/*
	 * Must carry z-index itself: with z-index:auto the logo's inner z-index
	 * only orders inside the stage, and tree-order loses to later rows.
	 * Re-parented into .main-wrapper by JS so this competes with rows.
	 */
	z-index: 100;
	/* mix-blend-mode is discrete (snaps ~midway), not a smooth morph between modes. */
	transition: mix-blend-mode 320ms;
	mix-blend-mode: plus-lighter;
}

.uncode-child-scroll-logo-stage[data-sl-surface="dark"] {
	mix-blend-mode: plus-lighter;
}

.uncode-child-scroll-logo-stage[data-sl-surface="light"] {
	mix-blend-mode: multiply;
}

/* Page Options: Mix blend mode = Off */
.uncode-child-scroll-logo-stage[data-sl-mix-blend="off"] {
	mix-blend-mode: normal;
	transition: none;
}

@media (min-width: 960px) {
	.uncode-child-scroll-logo-stage {
		max-width: var(--sl-layout-max, 1200px);
	}

	.uncode-child-scroll-logo-stage.is-align-left {
		margin-right: auto;
		margin-left: 0;
		right: auto;
	}

	.uncode-child-scroll-logo-stage.is-align-center {
		margin-left: auto;
		margin-right: auto;
	}

	.uncode-child-scroll-logo-stage.is-align-right {
		margin-left: auto;
		margin-right: 0;
		left: auto;
	}
}

.uncode-child-scroll-logo {
	position: absolute;
	top: 0;
	left: 0;
	width: var(--sl-size, 40vw);
	height: auto;
	margin: 0;
	padding: 0;
	pointer-events: none;
	/* Stage owns the stacking level (100); logo stays local. */
	z-index: 0;
	line-height: 0;
	color: #ffffff;
	transform-origin: center center;
	will-change: transform, opacity, color;
}

.uncode-child-scroll-logo svg {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
	color: inherit;
}

/* Optional Page Options override (class added only when stroke width > 0). */
.uncode-child-scroll-logo.has-stroke-override svg :is(path, circle, ellipse, line, polyline, polygon, rect) {
	stroke-width: var(--sl-stroke);
}

.uncode-child-scroll-logo.is-img img {
	display: block;
	width: 100%;
	height: auto;
}

/*
 * Non-keyframe cover base. PHP/JS set the final value to 110 + Uncode z-index
 * via inline style; this is the fallback when Uncode z-index is unset.
 */
.has-scroll-logo .row-container:not([data-scroll-logo-kf="1"]),
.has-scroll-logo .vc_section:not([data-scroll-logo-kf="1"]) {
	position: relative;
	z-index: 110;
}

@media (prefers-reduced-motion: reduce) {
	.uncode-child-scroll-logo,
	.uncode-child-scroll-logo-stage {
		transition: none;
	}
}
