/* Splitzo front-end */

.splitzo-wrap {
	margin: 0 0 1.5em;
	padding: 0;
	width: 100%;
}
.splitzo-wrap.splitzo-align-center { margin-left: auto; margin-right: auto; }
.splitzo-wrap.splitzo-align-right { margin-left: auto; }

.splitzo {
	--sz-radius: 16px;
	--sz-fit: cover;
	--sz-handle: #fff;
	--sz-line: 2px;
	--sz-size: 48px;
	--sz-lens: 160px;
	--sz-ease: cubic-bezier(.22, 1, .36, 1);
	position: relative;
	border-radius: var(--sz-radius);
	font-family: inherit;
	line-height: 1.4;
	-webkit-tap-highlight-color: transparent;
}

/* Before JS runs: show both pictures, side by side. */
.splitzo-fallback {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
	gap: 8px;
}
.splitzo-fallback img,
.splitzo-fallback video {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--sz-radius);
}

.splitzo.sz-shadow-soft .sz-stage { box-shadow: 0 10px 30px -12px rgba(15, 23, 42, .35); }
.splitzo.sz-shadow-lifted .sz-stage { box-shadow: 0 30px 60px -20px rgba(15, 23, 42, .45), 0 12px 24px -12px rgba(15, 23, 42, .25); }
.splitzo.sz-shadow-glow .sz-stage { box-shadow: 0 0 0 1px rgba(96, 165, 250, .35), 0 20px 60px -15px rgba(37, 99, 235, .55); }

.sz-stage {
	position: relative;
	width: 100%;
	overflow: hidden;
	border-radius: var(--sz-radius);
	background: #0b0f19;
	user-select: none;
	-webkit-user-select: none;
	touch-action: pan-y;
	cursor: ew-resize;
	isolation: isolate;
}
.sz-or-vertical .sz-stage { touch-action: pan-x; cursor: ns-resize; }
.sz-mode-toggle .sz-stage,
.sz-mode-split .sz-stage { cursor: default; }
.sz-mode-lens .sz-stage { cursor: crosshair; touch-action: pan-y; }
.sz-scroll-linked .sz-stage { cursor: default; touch-action: auto; }

.sz-layer {
	position: absolute;
	inset: 0;
	overflow: hidden;
}
.sz-layer--before { z-index: 2; will-change: clip-path; }
.sz-zoomable {
	position: absolute;
	inset: 0;
	transform-origin: 0 0;
}
.sz-media {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none !important;
	object-fit: var(--sz-fit);
	pointer-events: none;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}
.sz-media--empty {
	background: repeating-linear-gradient(45deg, #1e293b 0 14px, #172033 14px 28px);
}

/* One-photo effects */
.sz-fx-grayscale { filter: grayscale(1); }
.sz-fx-sepia { filter: sepia(1); }
.sz-fx-blur { filter: blur(8px); transform: scale(1.04); }

/* ---------- Divider + handles ---------- */

.sz-divider {
	position: absolute;
	z-index: 5;
	top: 0;
	bottom: 0;
	left: 50%;
	width: var(--sz-line);
	background: var(--sz-handle);
	transform: translateX(-50%);
	box-shadow: 0 0 12px rgba(0, 0, 0, .25);
	pointer-events: none;
}
.sz-or-vertical .sz-divider {
	left: 0;
	right: 0;
	top: 50%;
	bottom: auto;
	width: auto;
	height: var(--sz-line);
	transform: translateY(-50%);
}
.sz-or-diagonal .sz-divider { top: 50%; bottom: auto; }

.sz-handle {
	position: absolute;
	top: 50%;
	left: 50%;
	width: var(--sz-size);
	height: var(--sz-size);
	margin: calc(var(--sz-size) / -2) 0 0 calc(var(--sz-size) / -2);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	color: var(--sz-handle);
	pointer-events: auto;
	cursor: grab;
	outline: none;
	transition: box-shadow .2s var(--sz-ease), background-color .2s;
	touch-action: none;
}
.splitzo.is-dragging .sz-handle { cursor: grabbing; }
.sz-handle:focus-visible { box-shadow: 0 0 0 3px #fff, 0 0 0 6px #2563eb !important; }
.sz-handle__arrow { display: flex; }
.sz-handle__arrow svg {
	width: calc(var(--sz-size) * .36);
	height: calc(var(--sz-size) * .36);
	fill: none;
	stroke: currentColor;
	stroke-width: 2.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.sz-or-vertical .sz-handle { flex-direction: column; }
.sz-or-vertical .sz-handle__arrow svg { transform: rotate(90deg); }

.sz-handle--circle {
	border: var(--sz-line) solid var(--sz-handle);
	border-radius: 50%;
	background: rgba(15, 23, 42, .28);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, .3);
}
.sz-handle--arrows { background: none; }
.sz-handle--arrows .sz-handle__arrow svg { filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .5)); width: calc(var(--sz-size) * .5); height: calc(var(--sz-size) * .5); }
.sz-handle--arrows .sz-handle__arrow--a { margin-right: calc(var(--sz-size) * .1); }
.sz-handle--arrows .sz-handle__arrow--b { margin-left: calc(var(--sz-size) * .1); }
.sz-handle--pill {
	width: calc(var(--sz-size) * .55);
	margin-left: calc(var(--sz-size) * -.275);
	border-radius: 999px;
	background: var(--sz-handle);
	color: #0b0f19;
	flex-direction: column;
	box-shadow: 0 8px 22px rgba(0, 0, 0, .3);
}
.sz-handle--pill .sz-handle__arrow svg { transform: rotate(90deg); width: calc(var(--sz-size) * .3); height: calc(var(--sz-size) * .3); }
.sz-or-vertical .sz-handle--pill {
	width: var(--sz-size);
	height: calc(var(--sz-size) * .55);
	margin: calc(var(--sz-size) * -.275) 0 0 calc(var(--sz-size) / -2);
	flex-direction: row;
}
.sz-or-vertical .sz-handle--pill .sz-handle__arrow svg { transform: none; }

.sz-handle--line { width: calc(var(--sz-size) * .3); margin-left: calc(var(--sz-size) * -.15); }
.sz-handle--line .sz-handle__arrow { display: none; }
.sz-handle--line::before {
	content: "";
	width: 6px;
	height: 60%;
	border-radius: 6px;
	background: var(--sz-handle);
	box-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}
.sz-or-vertical .sz-handle--line { width: var(--sz-size); height: calc(var(--sz-size) * .3); margin: calc(var(--sz-size) * -.15) 0 0 calc(var(--sz-size) / -2); }
.sz-or-vertical .sz-handle--line::before { width: 60%; height: 6px; }

.sz-handle:hover { box-shadow: 0 0 0 8px rgba(255, 255, 255, .16), 0 8px 24px rgba(0, 0, 0, .35); }

/* ---------- Labels ---------- */

.sz-label {
	position: absolute;
	z-index: 4;
	max-width: 40%;
	padding: .35em .8em;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .02em;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	pointer-events: none;
	transition: opacity .25s;
}
.sz-label--glass { color: #fff; background: rgba(15, 23, 42, .35); border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 8px; }
.sz-label--solid { color: #fff; background: #0b0f19; border-radius: 6px; }
.sz-label--pill { color: #0b0f19; background: #fff; border-radius: 999px; box-shadow: 0 4px 14px rgba(0, 0, 0, .2); }
.sz-label--minimal { color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .65); text-transform: uppercase; font-size: 12px; letter-spacing: .12em; }

.sz-label--before { left: 14px; }
.sz-label--after { right: 14px; }
.sz-label-pos-top { top: 14px; }
.sz-label-pos-bottom { bottom: 14px; }
.sz-label-pos-middle { top: 50%; transform: translateY(-50%); }

.sz-or-vertical .sz-label--before { left: 50%; top: 14px; bottom: auto; transform: translateX(-50%); }
.sz-or-vertical .sz-label--after { left: 50%; right: auto; bottom: 14px; top: auto; transform: translateX(-50%); }

.sz-labels-hover .sz-label { visibility: hidden; }
.sz-labels-hover .sz-stage:hover .sz-label,
.sz-labels-hover .sz-stage:focus-within .sz-label { visibility: visible; }

/* ---------- Fade ---------- */

.sz-mode-fade .sz-label--after { z-index: 4; }
.sz-fadebar {
	position: absolute;
	z-index: 6;
	left: 50%;
	bottom: 18px;
	width: min(260px, 60%);
	height: 6px;
	margin-left: min(-130px, -30%);
	border-radius: 6px;
	background: rgba(255, 255, 255, .35);
	backdrop-filter: blur(6px);
	cursor: pointer;
	touch-action: none;
}
.sz-fadebar__fill {
	position: absolute;
	inset: 0 auto 0 0;
	border-radius: inherit;
	background: var(--sz-handle);
}
.sz-fadebar__knob {
	position: absolute;
	top: 50%;
	width: 22px;
	height: 22px;
	margin: -11px 0 0 -11px;
	border-radius: 50%;
	background: var(--sz-handle);
	box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
	outline: none;
}
.sz-fadebar__knob:focus-visible { box-shadow: 0 0 0 3px #2563eb; }

/* ---------- Toggle ---------- */

.sz-toggle {
	position: absolute;
	z-index: 6;
	left: 50%;
	bottom: 16px;
	transform: translateX(-50%);
	display: inline-flex;
	padding: 4px;
	border-radius: 999px;
	background: rgba(15, 23, 42, .45);
	border: 1px solid rgba(255, 255, 255, .2);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}
.sz-toggle__pill {
	position: absolute;
	top: 4px;
	bottom: 4px;
	left: 4px;
	width: 0;
	border-radius: 999px;
	background: var(--sz-handle);
	box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
}
.sz-toggle__btn {
	position: relative;
	z-index: 1;
	margin: 0;
	padding: 7px 16px;
	border: 0;
	border-radius: 999px;
	background: none;
	color: #fff;
	font: 600 13px/1.2 inherit;
	font-family: inherit;
	cursor: pointer;
	transition: color .25s;
}
.sz-toggle__btn[aria-pressed="true"] { color: #0b0f19; }
.sz-toggle__btn:focus-visible { outline: 2px solid #60a5fa; outline-offset: 2px; }

/* ---------- Lens ---------- */

.sz-layer--lens { will-change: clip-path; }
.sz-lens-ring {
	position: absolute;
	z-index: 5;
	width: var(--sz-lens);
	height: var(--sz-lens);
	border-radius: 50%;
	border: var(--sz-line) solid var(--sz-handle);
	box-shadow: 0 0 0 1px rgba(0, 0, 0, .1), 0 12px 40px rgba(0, 0, 0, .35);
	pointer-events: none;
}
.sz-lens-ring__label {
	position: absolute;
	left: 50%;
	bottom: -12px;
	transform: translateX(-50%);
	padding: 2px 10px;
	border-radius: 999px;
	background: var(--sz-handle);
	color: #0b0f19;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .04em;
	white-space: nowrap;
}

/* ---------- Split ---------- */

.sz-stage--split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px;
	background: transparent;
	aspect-ratio: auto !important;
	overflow: visible;
	box-shadow: none !important;
}
.sz-split__panel {
	position: relative;
	overflow: hidden;
	border-radius: var(--sz-radius);
	background: #0b0f19;
}
.splitzo.sz-shadow-soft .sz-split__panel { box-shadow: 0 10px 30px -12px rgba(15, 23, 42, .35); }
.splitzo.sz-shadow-lifted .sz-split__panel { box-shadow: 0 30px 60px -20px rgba(15, 23, 42, .45); }
.splitzo.sz-shadow-glow .sz-split__panel { box-shadow: 0 20px 60px -15px rgba(37, 99, 235, .55); }
.sz-split__panel .sz-label--after { left: 14px; right: auto; }
.sz-mode-split { container-type: inline-size; }
@container (max-width: 520px) {
	.sz-stage--split { grid-template-columns: 1fr; }
}

/* ---------- Timeline ---------- */

.sz-layer--frame { z-index: 1; }
.sz-scrub {
	position: absolute;
	z-index: 8;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 34px 28px 18px;
	background: linear-gradient(to top, rgba(11, 15, 25, .65), transparent);
	cursor: pointer;
	touch-action: none;
}
.sz-scrub__track {
	position: relative;
	height: 4px;
	border-radius: 4px;
	background: rgba(255, 255, 255, .3);
}
.sz-scrub__fill {
	position: absolute;
	inset: 0 auto 0 0;
	border-radius: inherit;
	background: var(--sz-handle);
}
.sz-scrub__stop {
	position: absolute;
	top: 50%;
	width: 12px;
	height: 12px;
	margin: -6px 0 0 -6px;
	padding: 0;
	border: 2px solid var(--sz-handle);
	border-radius: 50%;
	background: #0b0f19;
	cursor: pointer;
	transition: transform .2s var(--sz-ease), background-color .2s;
}
.sz-scrub__stop.is-active { background: var(--sz-handle); transform: scale(1.25); }
.sz-scrub__label {
	position: absolute;
	bottom: 16px;
	left: 50%;
	transform: translateX(-50%);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	white-space: nowrap;
	text-shadow: 0 1px 4px rgba(0, 0, 0, .6);
	opacity: .75;
}
.sz-scrub__stop.is-active .sz-scrub__label { opacity: 1; }
.sz-scrub__knob {
	position: absolute;
	top: 50%;
	width: 20px;
	height: 20px;
	margin: -10px 0 0 -10px;
	border-radius: 50%;
	background: var(--sz-handle);
	box-shadow: 0 0 0 5px rgba(255, 255, 255, .25), 0 4px 12px rgba(0, 0, 0, .4);
	outline: none;
	pointer-events: none;
}
.sz-scrub__knob:focus-visible { box-shadow: 0 0 0 3px #2563eb; }

/* ---------- Tools ---------- */

.sz-tools {
	position: absolute;
	z-index: 9;
	top: 12px;
	right: 12px;
	display: flex;
	gap: 6px;
	opacity: 0;
	transform: translateY(-4px);
	transition: opacity .25s var(--sz-ease), transform .25s var(--sz-ease);
}
.sz-stage:hover .sz-tools,
.sz-stage:focus-within .sz-tools { opacity: 1; transform: none; }
@media (hover: none) { .sz-tools { opacity: 1; transform: none; } }
.sz-mode-slide:not(.sz-or-vertical) .sz-tools,
.sz-mode-fade .sz-tools { top: auto; bottom: 12px; }
.sz-mode-fade .sz-tools { bottom: 40px; }
.sz-tool {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	margin: 0;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .25);
	border-radius: 10px;
	background: rgba(15, 23, 42, .5);
	color: #fff;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	cursor: pointer;
	transition: background-color .2s, transform .2s var(--sz-ease);
}
.sz-tool:hover { background: rgba(37, 99, 235, .85); transform: translateY(-1px); }
.sz-tool:focus-visible { outline: 2px solid #60a5fa; outline-offset: 2px; }
.sz-tool[hidden] { display: none; }
.sz-tool svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Fullscreen ---------- */

.splitzo:fullscreen { display: flex; align-items: center; justify-content: center; padding: 3vmin; background: #05070d; }
.splitzo:fullscreen .sz-stage { width: auto; height: 100%; max-width: 100%; max-height: 100%; margin: auto; }
.splitzo.is-fs {
	position: fixed;
	z-index: 999999;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 3vmin;
	border-radius: 0;
	background: #05070d;
}
.splitzo.is-fs .sz-stage { max-height: 100%; width: auto; height: 100%; max-width: 100%; }
.sz-fs-lock, .sz-fs-lock body { overflow: hidden; }

/* ---------- Caption ---------- */

.splitzo-caption {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 14px;
	margin-top: 14px;
	font-size: .95em;
}
.splitzo-caption__title { font-size: 1.05em; }
.splitzo-caption__text { flex-basis: 100%; opacity: .8; }
.splitzo-caption__title + .splitzo-caption__text { margin-top: -4px; }
.splitzo-caption__cta {
	display: inline-flex;
	align-items: center;
	padding: .55em 1.1em;
	border-radius: 999px;
	background: #2563eb;
	color: #fff !important;
	font-weight: 600;
	font-size: .9em;
	text-decoration: none !important;
	transition: background-color .2s, transform .2s var(--sz-ease);
}
.splitzo-caption__cta:hover { background: #1d4ed8; transform: translateY(-1px); }
.splitzo-wrap { position: relative; }
.splitzo-caption--overlay {
	position: absolute;
	z-index: 5;
	left: 16px;
	bottom: 16px;
	max-width: min(420px, calc(100% - 32px));
	margin: 0;
	padding: 14px 16px;
	border-radius: 14px;
	background: rgba(11, 15, 25, .55);
	border: 1px solid rgba(255, 255, 255, .15);
	color: #fff;
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	pointer-events: auto;
}

/* ---------- Case study card ---------- */

.splitzo-case {
	--sz-case-accent: #2563eb;
	--sz-case-bg: #fff;
	--sz-case-ink: #0b0f19;
	--sz-case-muted: #64748b;
	--sz-case-line: rgba(100, 116, 139, .22);
	--sz-case-fact: rgba(100, 116, 139, .09);
	container-type: inline-size;
	width: 100%;
	margin: 0 0 1.5em;
	border: 1px solid var(--sz-case-line);
	border-radius: 24px;
	background: var(--sz-case-bg);
	color: var(--sz-case-ink);
	box-shadow: 0 24px 50px -30px rgba(15, 23, 42, .35);
	overflow: hidden;
}
.splitzo-case.splitzo-align-center { margin-left: auto; margin-right: auto; }
.splitzo-case.splitzo-align-right { margin-left: auto; }

.splitzo-case__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	gap: clamp(20px, 3cqw, 36px);
	align-items: center;
	padding: clamp(16px, 2.5cqw, 28px);
}
.splitzo-case__grid > .splitzo-wrap { margin: 0; min-width: 0; }

@container (max-width: 580px) {
	.splitzo-case__grid { grid-template-columns: minmax(0, 1fr); }
}
.splitzo-case__body { display: grid; gap: 14px; justify-items: start; min-width: 0; }
.splitzo-case__tag {
	padding: 4px 11px;
	border-radius: 999px;
	background: var(--sz-case-fact);
	color: var(--sz-case-accent);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .03em;
}

.splitzo-case .splitzo-case__title {
	margin: 0;
	padding: 0;
	color: inherit;
	font-size: clamp(21px, 3.2cqw, 28px);
	font-weight: 750;
	line-height: 1.2;
	letter-spacing: -.02em;
}
.splitzo-case__summary { margin: 0; color: var(--sz-case-muted); font-size: 15px; line-height: 1.6; }
.splitzo-case__facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
	gap: 8px;
	width: 100%;
	margin: 0;
}
.splitzo-case__fact { padding: 12px 14px; border-radius: 14px; background: var(--sz-case-fact); }
.splitzo-case__fact dd { margin: 0; font-size: 20px; font-weight: 750; line-height: 1.2; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.splitzo-case__fact dt { margin: 2px 0 0; color: var(--sz-case-muted); font-size: 12.5px; font-weight: 500; }

.splitzo-case__cta {
	display: inline-flex;
	padding: .7em 1.3em;
	border-radius: 999px;
	background: var(--sz-case-accent);
	color: #fff !important;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none !important;
	transition: transform .2s var(--sz-ease, ease), filter .2s;
}
.splitzo-case__cta:hover { transform: translateY(-1px); filter: brightness(1.08); }

