/* Dvance Showcase and Site Carousel (Elementor widgets): rotating, framed slides of real work. */
.dvsc,
.dvsc *,
.dvsc *::before,
.dvsc *::after {
	box-sizing: border-box;
}

.dvsc {
	--dvsc-accent: #e04545;
	--dvsc-accent-2: #ec5656;
	--dvsc-caption: rgba(255, 255, 255, 0.96);
	--dvsc-ink: #0f172a;
	--dvsc-muted: #475569;
	--dvsc-frame: #ffffff;
	--dvsc-ctl: #ffffff;
	--dvsc-h: 460px;
	position: relative;
	width: 100%;
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.dvsc__stage {
	position: relative;
	height: var(--dvsc-h);
	perspective: 1400px;
}

/* Every slide sits in the same spot; the current one is in front, the next two peek out behind. */
.dvsc__slide {
	position: absolute;
	inset: 0 0 52px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	opacity: 0;
	pointer-events: none;
	transform: translate3d(0, 18px, -80px) scale(0.94);
	transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.dvsc__slide.is-active {
	z-index: 3;
	opacity: 1;
	pointer-events: auto;
	transform: none;
}

.dvsc--stack .dvsc__slide.is-next {
	z-index: 2;
	opacity: 0.55;
	transform: translate3d(28px, -18px, -60px) scale(0.95) rotate(2deg);
}

.dvsc--stack .dvsc__slide.is-after {
	z-index: 1;
	opacity: 0.3;
	transform: translate3d(52px, -34px, -120px) scale(0.9) rotate(4deg);
}

.dvsc--stack .dvsc__slide.is-next .dvsc__caption,
.dvsc--stack .dvsc__slide.is-after .dvsc__caption {
	opacity: 0;
}

/* Frames */
.dvsc__frame {
	--dvsc-paint: var(--dvsc-edge, linear-gradient(#fff, #fff));
	position: relative;
	overflow: hidden;
	background: var(--dvsc-frame);
	box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(15, 23, 42, 0.08);
	transition: box-shadow 0.2s ease;
}

/* Outline (Style → Frame): drawn over the frame's edge in a solid color or a gradient. */
.dvsc__frame::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 3;
	padding: var(--dvsc-bw, 0px);
	border-radius: inherit;
	background: var(--dvsc-paint);
	pointer-events: none;
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
}

.dvsc__slide.is-active .dvsc__frame:hover {
	--dvsc-paint: var(--dvsc-edge_h, var(--dvsc-edge, linear-gradient(#fff, #fff)));
}

.dvsc__slide.is-active .dvsc__frame:active {
	--dvsc-paint: var(--dvsc-edge_a, var(--dvsc-edge_h, var(--dvsc-edge, linear-gradient(#fff, #fff))));
}

.dvsc__slide--browser .dvsc__frame {
	width: 100%;
	max-width: var(--dvsc-w, 760px);
	height: 100%;
	border-radius: var(--dvsc-r, 14px);
	display: flex;
	flex-direction: column;
}

.dvsc__bar {
	display: flex;
	flex: none;
	align-items: center;
	gap: 6px;
	padding: 9px 12px;
	border-bottom: 1px solid rgba(15, 23, 42, 0.08);
	background: #f8fafc;
}

.dvsc__bar span {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #e2e8f0;
}

.dvsc__bar span:first-child {
	background: #fca5a5;
}

.dvsc__bar em {
	flex: 1;
	min-width: 0;
	margin-left: 8px;
	padding: 3px 12px;
	overflow: hidden;
	border-radius: 999px;
	background: #eef2f7;
	color: #64748b;
	font-size: 12px;
	font-style: normal;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.dvsc__slide--phone .dvsc__frame {
	height: 100%;
	aspect-ratio: 390 / 820;
	padding: 10px;
	border-radius: 38px;
	background: #0b1220;
}

.dvsc__notch {
	position: absolute;
	top: 16px;
	left: 50%;
	z-index: 2;
	width: 30%;
	height: 22px;
	margin-left: -15%;
	border-radius: 999px;
	background: #0b1220;
}

.dvsc__slide--phone .dvsc__view {
	border-radius: 28px;
}

.dvsc__slide--none .dvsc__frame {
	width: 100%;
	max-width: var(--dvsc-w, 760px);
	height: 100%;
	border-radius: var(--dvsc-r, 14px);
	background: transparent;
	box-shadow: none;
}

.dvsc__view {
	position: relative;
	flex: 1;
	height: 100%;
	overflow: hidden;
	background: linear-gradient(100deg, #eef2f7 30%, #f8fafc 50%, #eef2f7 70%) 0 0 / 300% 100%;
	animation: dvsc-shimmer 1.6s linear infinite;
}

.dvsc__view.is-loaded,
.dvsc__slide--none .dvsc__view {
	animation: none;
	background: transparent;
}

.dvsc .dvsc__view img {
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	border-radius: 0;
	object-fit: cover;
	object-position: top center;
}

.dvsc__view img[data-dvsc-shot] {
	opacity: 0;
	transition: opacity 0.4s;
}

.dvsc__view.is-loaded img[data-dvsc-shot] {
	opacity: 1;
}

.dvsc__wait {
	position: absolute;
	bottom: 14px;
	left: 50%;
	z-index: 1;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.88);
	color: #64748b;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	transform: translateX(-50%);
}

/* No icon (or one that won't load): a plain globe. */
.dvsc--sites .dvsc__bar em:not(.has-icon)::before {
	content: "";
	display: inline-block;
	width: 13px;
	height: 13px;
	margin: -2px 6px 0 0;
	vertical-align: middle;
	background: currentColor;
	opacity: 0.7;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20M12 2a15 15 0 0 1 0 20M12 2a15 15 0 0 0 0 20'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20M12 2a15 15 0 0 1 0 20M12 2a15 15 0 0 0 0 20'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* A share picture chosen as the slide's picture: centered, not pinned to the top. */
.dvsc .dvsc__view img.dvsc__own--share {
	object-position: center;
}

/* The site's share picture, shown until its screenshot arrives. */
.dvsc .dvsc__view img.dvsc__ph {
	position: absolute;
	inset: 0;
}

.dvsc__view.is-loaded .dvsc__ph {
	display: none;
}

.dvsc__view.is-loaded .dvsc__wait {
	display: none;
}

.dvsc__art {
	display: grid;
	place-items: center;
	height: 100%;
}

.dvsc__art svg {
	width: 100%;
	height: 100%;
	max-height: 100%;
}

/* Auto-scroll (Playback → Scroll website previews): the page's tall screenshot pans down, holds,
   and pans back up. It starts when the preview comes to the front with the carousel on screen
   (showcase.js adds .is-pan) and carries on after the preview moves to the back or the carousel
   leaves the screen. Hovering the front preview pauses it. */
.dvsc.is-panning img[data-dvsc-pan].is-pan {
	animation: dvsc-pan var(--dvsc-pan-t, 22s) ease-in-out 1 both;
}

.dvsc.is-panning .dvsc__slide.is-active .dvsc__frame:hover img.is-pan {
	animation-play-state: paused;
}

@keyframes dvsc-pan {
	0%, 8% {
		object-position: 50% 0%;
	}

	62%, 72% {
		object-position: 50% 100%;
	}

	92%, 100% {
		object-position: 50% 0%;
	}
}

/* Site Carousel: the site's icon in the address bar, the click-through and the live site. */
.dvsc .dvsc__bar .dvsc__icon {
	display: inline-block;
	width: 14px;
	height: 14px;
	margin: -2px 6px 0 0;
	vertical-align: middle;
	border-radius: 3px;
	object-fit: contain;
}

.dvsc .dvsc__open {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	align-items: flex-end;
	justify-content: flex-end;
	padding: 14px;
	color: #fff !important;
	text-decoration: none !important;
}

.dvsc__open > span {
	padding: 7px 12px;
	border-radius: 999px;
	background: linear-gradient(135deg, #d22a2a, var(--dvsc-accent-2));
	box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.5);
	font-size: 13px;
	font-weight: 700;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 0.2s, transform 0.2s, filter 0.15s;
}

.dvsc__open:hover > span,
.dvsc__open:focus-visible > span {
	opacity: 1;
	transform: none;
}

.dvsc__open:active > span {
	filter: brightness(0.88);
	transform: scale(0.97);
}

.dvsc .dvsc__live {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
	height: calc(100% / var(--dvsc-scale, 1));
	max-width: none;
	border: 0;
	background: #fff;
	opacity: 0;
	transform: scale(var(--dvsc-scale, 1));
	transform-origin: 0 0;
	transition: opacity 0.4s;
}

.dvsc__view.is-live .dvsc__live {
	opacity: 1;
}

.dvsc__view.is-live .dvsc__wait {
	display: none;
}

/* Caption card */
.dvsc__caption {
	position: absolute;
	bottom: -26px;
	left: 50%;
	z-index: 4;
	display: grid;
	gap: 3px;
	width: min(520px, calc(100% - 24px));
	padding: 14px 18px;
	border-radius: 14px;
	background: var(--dvsc-caption);
	box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.45);
	color: var(--dvsc-ink);
	transform: translateX(-50%);
	transition: opacity 0.4s;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.dvsc__kicker {
	color: var(--dvsc-accent);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.dvsc__title {
	padding-right: 72px;
	color: var(--dvsc-ink);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
}

.dvsc__link {
	position: absolute;
	right: 16px;
	bottom: 14px;
	color: var(--dvsc-accent) !important;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none !important;
	transition: transform 0.15s, color 0.15s;
}

.dvsc__link:hover,
.dvsc__link:focus-visible {
	color: var(--dvsc-accent-2) !important;
	transform: translateX(2px);
}

.dvsc__link:active {
	transform: translateX(4px);
}

.dvsc__desc {
	display: -webkit-box;
	overflow: hidden;
	color: var(--dvsc-muted);
	font-size: 13.5px;
	line-height: 1.45;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.dvsc__desc:empty {
	height: 2.9em;
	border-radius: 6px;
	background: linear-gradient(100deg, #eef2f7 30%, #f8fafc 50%, #eef2f7 70%) 0 0 / 300% 100%;
	animation: dvsc-shimmer 1.6s linear infinite;
}

.dvsc--sites .dvsc__title {
	padding-right: 0;
}

.dvsc--sites .dvsc__link {
	position: static;
	justify-self: start;
	margin-top: 4px;
}

.dvsc .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* Caption below the frame, or none (Style → Frame → Caption). */
.dvsc--cap-below .dvsc__slide,
.dvsc--cap-none .dvsc__slide {
	inset: 0;
	flex-direction: column;
	gap: 14px;
}

.dvsc--cap-below .dvsc__slide .dvsc__frame,
.dvsc--cap-none .dvsc__slide .dvsc__frame {
	flex: 1 1 0;
	min-height: 0;
	height: auto;
}

.dvsc--cap-below .dvsc__caption {
	position: relative;
	bottom: auto;
	left: auto;
	flex: none;
	transform: none;
}

.dvsc--cap-none .dvsc__caption {
	display: none;
}

.dvsc--cap-below .dvsc__controls,
.dvsc--cap-none .dvsc__controls {
	margin-top: 18px;
}

/* Controls */
.dvsc__controls {
	display: flex;
	gap: 10px;
	align-items: center;
	justify-content: center;
	margin-top: 40px;
}

.dvsc__dots {
	display: flex;
	gap: 8px;
}

.dvsc .dvsc__dot {
	width: 9px;
	height: 9px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: color-mix(in srgb, var(--dvsc-ctl) 45%, transparent);
	cursor: pointer;
	transition: width 0.25s, background 0.25s;
}

.dvsc .dvsc__dot:hover {
	background: color-mix(in srgb, var(--dvsc-ctl) 80%, transparent);
}

.dvsc .dvsc__dot.is-active {
	width: 26px;
	background: linear-gradient(90deg, #d22a2a, var(--dvsc-accent-2));
}

.dvsc .dvsc__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 1px solid color-mix(in srgb, var(--dvsc-ctl) 35%, transparent);
	border-radius: 50%;
	background: color-mix(in srgb, var(--dvsc-ctl) 8%, transparent);
	color: var(--dvsc-ctl);
	cursor: pointer;
	transition: background 0.15s, transform 0.05s;
}

.dvsc .dvsc__btn:hover,
.dvsc .dvsc__btn:focus-visible {
	background: color-mix(in srgb, var(--dvsc-ctl) 20%, transparent);
}

.dvsc .dvsc__btn:active {
	background: color-mix(in srgb, var(--dvsc-ctl) 30%, transparent);
	transform: scale(0.95);
}

.dvsc__btn svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.dvsc__pause .is-play {
	display: none;
}

.dvsc__pause[aria-pressed="true"] .is-play {
	display: block;
}

.dvsc__pause[aria-pressed="true"] .is-pause {
	display: none;
}

@keyframes dvsc-shimmer {
	to {
		background-position: -300% 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dvsc__slide,
	.dvsc__view,
	.dvsc img[data-dvsc-shot] {
		transition: none;
		animation: none;
	}
}

@media (max-width: 600px) {
	.dvsc {
		--dvsc-h: 320px;
	}

	/* Hidden on phones, and kept in place: pushed sideways they made the page scroll sideways
	   (and the browser zoomed out, leaving empty space under the footer). */
	.dvsc--stack .dvsc__slide.is-next,
	.dvsc--stack .dvsc__slide.is-after {
		opacity: 0;
		transform: translate3d(0, 18px, -80px) scale(0.94);
	}

	.dvsc__title {
		font-size: 14px;
	}
}
