/*
 * Luxury Jewellery Preloader – frontend stylesheet.
 * Everything is namespaced with .ljp- and only animates transform / opacity.
 */

html.ljp-active,
html.ljp-active body {
	overflow: hidden !important;
}

.ljp-loader,
.ljp-loader *,
.ljp-loader *::before,
.ljp-loader *::after {
	box-sizing: border-box;
}

.ljp-loader {
	--ljp-gold: #d4af37;
	--ljp-gold2: #f6e7b4;
	--ljp-size: 280;
	--ljp-logo-w: 170;
	--ljp-logo-h: auto;
	--ljp-logo-o: 1;
	--ljp-gap: 28px;
	--ljp-glow: 4;
	--ljp-t: 1;
	--ljp-int: .6;
	--ljp-bg: #0b0907;
	--ljp-bg-o: 1;
	--ljp-blur: 0;
	--ljp-pat-o: .07;
	--ljp-ov: #000;
	--ljp-ov-o: 0;
	--ljp-fs: 13;
	--ljp-ff: Georgia, 'Times New Roman', serif;
	--ljp-fw: 400;
	--ljp-tc: #e9dcae;
	--ljp-ls: 5;
	--ljp-bar-w: 220;
	--ljp-fadein: 300ms;
	--ljp-fadeout: 800ms;
	--ljp-z: 999999;
	--ljp-u: 1vmin;

	position: fixed;
	inset: 0;
	z-index: var(--ljp-z);
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	overflow: hidden;
	color: var(--ljp-gold);
	font-family: var(--ljp-ff);
	line-height: 1.2;
	text-align: center;
	-webkit-text-size-adjust: 100%;
	-webkit-font-smoothing: antialiased;
}

/* Size every element relative to the loader itself (also makes the admin preview exact). */
@supports (width: 1cqmin) {
	.ljp-loader {
		container-type: size;
		--ljp-u: 1cqmin;
	}
}

html.ljp-active .ljp-loader {
	display: flex;
	animation: ljp-in var(--ljp-fadein) ease-out backwards;
}

.ljp-pos-top { justify-content: flex-start; }
.ljp-pos-top > .ljp-stage { margin-top: calc(var(--ljp-u) * 12); }
.ljp-pos-bottom { justify-content: flex-end; }
.ljp-pos-bottom > :last-child { margin-bottom: calc(var(--ljp-u) * 12); }

/* ---------------------------------------------------------------- Background */

.ljp-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.ljp-bg,
.ljp-pattern,
.ljp-overlay,
.ljp-bgvec,
.ljp-fx {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.ljp-bg {
	background: var(--ljp-bg);
	opacity: var(--ljp-bg-o);
}

.ljp-hasblur .ljp-bg {
	-webkit-backdrop-filter: blur(calc(var(--ljp-blur) * 1px));
	backdrop-filter: blur(calc(var(--ljp-blur) * 1px));
}

.ljp-hasblur.ljp-bgt-image .ljp-bg {
	inset: calc(var(--ljp-blur) * -2px);
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
	filter: blur(calc(var(--ljp-blur) * 1px));
}

.ljp-overlay {
	background: var(--ljp-ov);
	opacity: var(--ljp-ov-o);
}

.ljp-pattern {
	display: none;
	background: var(--ljp-gold);
	opacity: var(--ljp-pat-o);
	-webkit-mask-repeat: repeat;
	mask-repeat: repeat;
	-webkit-mask-position: center;
	mask-position: center;
}

.ljp-pat-diamonds .ljp-pattern,
.ljp-pat-dots .ljp-pattern,
.ljp-pat-lines .ljp-pattern,
.ljp-pat-rings .ljp-pattern { display: block; }

.ljp-pat-diamonds .ljp-pattern {
	-webkit-mask-size: 64px 64px;
	mask-size: 64px 64px;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cpath d='M32 4 60 32 32 60 4 32Z' fill='none' stroke='%23000' stroke-width='1'/%3E%3Cpath d='M32 18 46 32 32 46 18 32Z' fill='none' stroke='%23000' stroke-width='.6'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cpath d='M32 4 60 32 32 60 4 32Z' fill='none' stroke='%23000' stroke-width='1'/%3E%3Cpath d='M32 18 46 32 32 46 18 32Z' fill='none' stroke='%23000' stroke-width='.6'/%3E%3C/svg%3E");
}

.ljp-pat-dots .ljp-pattern {
	-webkit-mask-size: 28px 28px;
	mask-size: 28px 28px;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Ccircle cx='14' cy='14' r='1.3' fill='%23000'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Ccircle cx='14' cy='14' r='1.3' fill='%23000'/%3E%3C/svg%3E");
}

.ljp-pat-lines .ljp-pattern {
	-webkit-mask-size: 24px 24px;
	mask-size: 24px 24px;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M-2 26 26-2M-2 2 2-2M22 26 26 22' stroke='%23000' stroke-width='.8'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M-2 26 26-2M-2 2 2-2M22 26 26 22' stroke='%23000' stroke-width='.8'/%3E%3C/svg%3E");
}

.ljp-pat-rings .ljp-pattern {
	-webkit-mask-size: 48px 48px;
	mask-size: 48px 48px;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cg fill='none' stroke='%23000' stroke-width='.8'%3E%3Ccircle cx='0' cy='0' r='24'/%3E%3Ccircle cx='48' cy='0' r='24'/%3E%3Ccircle cx='0' cy='48' r='24'/%3E%3Ccircle cx='48' cy='48' r='24'/%3E%3Ccircle cx='24' cy='24' r='24'/%3E%3C/g%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cg fill='none' stroke='%23000' stroke-width='.8'%3E%3Ccircle cx='0' cy='0' r='24'/%3E%3Ccircle cx='48' cy='0' r='24'/%3E%3Ccircle cx='0' cy='48' r='24'/%3E%3Ccircle cx='48' cy='48' r='24'/%3E%3Ccircle cx='24' cy='24' r='24'/%3E%3C/g%3E%3C/svg%3E");
}

/* Decorative vector background (large outlined diamonds + fine circles). */
.ljp-bgvec {
	width: 100%;
	height: 100%;
	color: var(--ljp-gold);
}

.ljp-bv {
	transform-box: fill-box;
	transform-origin: center;
	opacity: 0;
	animation:
		ljp-bvin 1.6s ease-out forwards,
		ljp-spin calc(120s * var(--ljp-t)) linear infinite;
}
.ljp-bv2 { animation-delay: .25s, 0s; animation-direction: normal, reverse; }
.ljp-bv3 { animation-delay: .5s, 0s; }
.ljp-bv4 { animation-delay: .75s, 0s; animation-direction: normal, reverse; }
.ljp-bv5 { animation-delay: .3s, 0s; }
.ljp-bv6 { animation-delay: .6s, 0s; animation-direction: normal, reverse; }

/* ------------------------------------------------------------------- Layers */

.ljp-layer { display: none; }
.ljp-on-bgvec .ljp-layer-bgvec,
.ljp-on-particles .ljp-layer-particles,
.ljp-on-gem .ljp-layer-gem,
.ljp-on-ring .ljp-layer-ring,
.ljp-on-circle .ljp-layer-circle,
.ljp-on-lines .ljp-layer-lines,
.ljp-on-diamonds .ljp-layer-diamonds,
.ljp-on-sparkles .ljp-layer-sparkles { display: block; }

/* Golden particles */
.ljp-p {
	position: absolute;
	left: var(--x);
	top: var(--y);
	width: calc(var(--s) * 2);
	height: calc(var(--s) * 2);
	border-radius: 50%;
	background: radial-gradient(circle, var(--ljp-gold2) 0, var(--ljp-gold) 38%, transparent 70%);
	opacity: 0;
	animation: ljp-rise calc(var(--u) * var(--ljp-t)) ease-in-out var(--d) infinite;
}

/* ------------------------------------------------------------------- Stage */

.ljp-stage {
	position: relative;
	flex: none;
	width: min(calc(var(--ljp-size) * 1px), calc(var(--ljp-u) * 78));
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--ljp-gold);
}

/* Faceted diamond with a travelling shine */
.ljp-gem {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 74%;
	aspect-ratio: 100 / 90;
	opacity: .34;
	transform: translate(-50%, -50%) perspective(700px) rotateY(0deg);
	animation: ljp-sway calc(8s * var(--ljp-t)) ease-in-out infinite;
}
.ljp-gem svg { display: block; width: 100%; height: 100%; }
.ljp-nologo .ljp-gem { opacity: 1; }

.ljp-shine {
	position: absolute;
	inset: 0;
	overflow: hidden;
	clip-path: polygon(25% 4.4%, 75% 4.4%, 98% 36.7%, 50% 96.7%, 2% 36.7%);
}
.ljp-shine::before {
	content: "";
	position: absolute;
	top: -10%;
	bottom: -10%;
	left: 0;
	width: 38%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .85), transparent);
	opacity: calc(.45 + var(--ljp-int) * .55);
	transform: translateX(-170%) skewX(-18deg);
	animation: ljp-shine calc(3.6s * var(--ljp-t)) ease-in-out infinite;
}

/* Ornament rings */
.ljp-ringsvg {
	position: absolute;
	left: -4%;
	top: -4%;
	width: 108%;
	height: 108%;
	color: var(--ljp-gold);
	opacity: calc(.4 + var(--ljp-int) * .55);
}
.ljp-ring-a,
.ljp-ring-b {
	transform-box: fill-box;
	transform-origin: center;
}
.ljp-ring-a { animation: ljp-spin calc(54s * var(--ljp-t)) linear infinite; }
.ljp-ring-b { animation: ljp-spin calc(80s * var(--ljp-t)) linear infinite reverse; }

/* Circular loading */
.ljp-circle {
	position: absolute;
	left: -3%;
	top: -3%;
	width: 106%;
	height: 106%;
}
.ljp-ca,
.ljp-cb { transform-box: fill-box; transform-origin: center; }
.ljp-ca { animation: ljp-spin calc(1.9s * var(--ljp-t)) linear infinite; }
.ljp-cb { animation: ljp-spin calc(3s * var(--ljp-t)) linear infinite reverse; }

/* Gold line frame */
.ljp-lines {
	position: absolute;
	inset: 0;
	color: var(--ljp-gold2);
}
.ljp-lines svg { display: block; width: 100%; height: 100%; overflow: visible; }
.ljp-fr {
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
	animation: ljp-draw calc(5s * var(--ljp-t)) ease-in-out infinite;
}
.ljp-fr-b { animation-delay: .5s; }
.ljp-hl {
	position: absolute;
	left: -70%;
	right: -70%;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--ljp-gold), transparent);
	transform: scaleX(0);
	opacity: 0;
	animation: ljp-hl calc(4.2s * var(--ljp-t)) ease-in-out infinite;
}
.ljp-hl-t { top: -9%; }
.ljp-hl-b { bottom: -9%; animation-delay: .6s; }

/* Floating diamonds */
.ljp-fd {
	position: absolute;
	left: var(--l);
	top: var(--tp);
	width: var(--w);
	height: auto;
	opacity: calc(.5 + var(--ljp-int) * .5);
	animation: ljp-float calc(6.5s * var(--ljp-t)) ease-in-out var(--d) infinite;
}

/* Sparkles */
.ljp-sp {
	position: absolute;
	left: var(--l);
	top: var(--tp);
	width: var(--w);
	height: auto;
	color: var(--ljp-gold2);
	opacity: 0;
	animation: ljp-twinkle calc(3.2s * var(--ljp-t)) ease-in-out var(--d) infinite;
}

/* -------------------------------------------------------------------- Logo */

.ljp-logo-wrap {
	position: relative;
	z-index: 3;
	width: min(calc(var(--ljp-logo-w) * 1px), calc(var(--ljp-u) * 66));
	display: flex;
	align-items: center;
	justify-content: center;
}
.ljp-logo {
	display: block;
	width: 100%;
	height: var(--ljp-logo-h);
	max-height: calc(var(--ljp-u) * 50);
	object-fit: contain;
	opacity: var(--ljp-logo-o);
	filter: drop-shadow(0 0 calc(var(--ljp-glow) * 2.4px) var(--ljp-gold));
}
.ljp-logo[hidden] { display: none; }
.ljp-noglow .ljp-logo { filter: none; animation: none; }
.ljp-on-gem.ljp-nologo .ljp-logo-default { display: none; }

.ljp-la-reveal .ljp-logo-wrap { animation: ljp-reveal calc(1.5s * var(--ljp-t)) cubic-bezier(.22, .61, .36, 1) .2s backwards; }
.ljp-la-fade .ljp-logo-wrap,
.ljp-la-glow .ljp-logo-wrap,
.ljp-la-float .ljp-logo-wrap { animation: ljp-fadein calc(1.1s * var(--ljp-t)) ease-out .15s backwards; }
.ljp-la-zoom .ljp-logo-wrap { animation: ljp-zoomin calc(1.2s * var(--ljp-t)) cubic-bezier(.22, .61, .36, 1) .15s backwards; }
.ljp-la-glow .ljp-logo { animation: ljp-glow calc(2.8s * var(--ljp-t)) ease-in-out infinite; }
.ljp-la-float .ljp-logo { animation: ljp-lfloat calc(4.2s * var(--ljp-t)) ease-in-out infinite; }

/* -------------------------------------------------------------------- Text */

.ljp-text {
	position: relative;
	z-index: 3;
	flex: none;
	max-width: 92%;
	margin-top: var(--ljp-gap);
	padding: 0 16px 0 calc(16px + var(--ljp-ls) * 1px);
	font-family: var(--ljp-ff);
	font-size: clamp(9px, calc(var(--ljp-fs) * 1px), calc(var(--ljp-u) * 7));
	font-weight: var(--ljp-fw);
	letter-spacing: calc(var(--ljp-ls) * 1px);
	color: var(--ljp-tc);
	overflow-wrap: anywhere;
}
.ljp-text span { display: inline-block; }
.ljp-ta-pulse .ljp-text span { animation: ljp-pulse calc(2.4s * var(--ljp-t)) ease-in-out infinite; }
.ljp-ta-rise .ljp-text span { animation: ljp-trise calc(1.4s * var(--ljp-t)) ease-out .4s backwards; }

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
	.ljp-ta-shimmer .ljp-text span {
		color: transparent;
		background: linear-gradient(100deg, var(--ljp-tc) 0%, var(--ljp-tc) 40%, #fff 50%, var(--ljp-tc) 60%, var(--ljp-tc) 100%) 100% 0 / 260% 100%;
		-webkit-background-clip: text;
		background-clip: text;
		animation: ljp-shimmer calc(3.2s * var(--ljp-t)) linear infinite;
	}
}

.ljp-notext .ljp-text,
.ljp-noprog .ljp-bar { display: none; }

/* ---------------------------------------------------------------- Progress */

.ljp-bar {
	position: relative;
	z-index: 3;
	flex: none;
	width: min(calc(var(--ljp-bar-w) * 1px), 70%);
	height: 2px;
	margin-top: calc(var(--ljp-gap) * .8);
	overflow: hidden;
	border-radius: 2px;
}
.ljp-bar::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--ljp-gold);
	opacity: .18;
}
.ljp-bar span {
	position: absolute;
	inset: 0;
	transform: scaleX(0);
	transform-origin: 0 50%;
	transition: transform .45s cubic-bezier(.22, .61, .36, 1);
	background: linear-gradient(90deg, var(--ljp-gold), var(--ljp-gold2), var(--ljp-gold));
}
.ljp-bar span::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	right: 0;
	width: 28%;
	background: linear-gradient(90deg, transparent, #fff);
	opacity: .85;
}
/* No JS-driven progress: show an elegant indeterminate sweep instead. */
.ljp-js-off .ljp-bar span,
.ljp-preview .ljp-bar span {
	transition: none;
	animation: ljp-indet calc(2.4s * var(--ljp-t)) ease-in-out infinite;
}

/* -------------------------------------------------------------------- Exit */

.ljp-loader.ljp-exit {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition:
		opacity var(--ljp-fadeout) ease,
		transform var(--ljp-fadeout) cubic-bezier(.7, 0, .3, 1),
		filter var(--ljp-fadeout) ease,
		visibility 0s linear var(--ljp-fadeout);
}
.ljp-exit-slide-up.ljp-exit { transform: translateY(-100%); }
.ljp-exit-slide-down.ljp-exit { transform: translateY(100%); }
.ljp-exit-zoom-out.ljp-exit { transform: scale(1.12); }
.ljp-exit-blur.ljp-exit { filter: blur(14px); }

/* ------------------------------------------------------- Admin preview mode */

.ljp-loader.ljp-preview {
	position: absolute;
	display: flex;
	animation: none;
}

/* ----------------------------------------------------------- Performance */

@media (max-width: 600px) {
	.ljp-p:nth-child(3n),
	.ljp-hl { display: none; }
}
.ljp-lite .ljp-p:nth-child(2n),
.ljp-lite .ljp-sp:nth-child(2n),
.ljp-lite .ljp-fd:nth-child(2n),
.ljp-lite .ljp-bgvec,
.ljp-lite .ljp-ring-b { display: none; }

/* ------------------------------------------------------------- Keyframes */

@keyframes ljp-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes ljp-fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes ljp-zoomin { from { opacity: 0; transform: scale(.82); } to { opacity: 1; transform: scale(1); } }
@keyframes ljp-reveal {
	from { opacity: 0; clip-path: inset(-30% 130% -30% -30%); }
	to { opacity: 1; clip-path: inset(-30% -30% -30% -30%); }
}
@keyframes ljp-spin { to { transform: rotate(360deg); } }
@keyframes ljp-bvin { to { opacity: .16; } }
@keyframes ljp-rise {
	0% { opacity: 0; transform: translate3d(0, 16px, 0) scale(.5); }
	30% { opacity: calc(.35 + var(--ljp-int) * .65); }
	100% { opacity: 0; transform: translate3d(0, -48px, 0) scale(1); }
}
@keyframes ljp-sway {
	0%, 100% { transform: translate(-50%, -50%) perspective(700px) rotateY(-26deg); }
	50% { transform: translate(-50%, -50%) perspective(700px) rotateY(26deg); }
}
@keyframes ljp-shine {
	0% { transform: translateX(-170%) skewX(-18deg); }
	55%, 100% { transform: translateX(360%) skewX(-18deg); }
}
@keyframes ljp-draw {
	0% { stroke-dashoffset: 1; }
	45%, 70% { stroke-dashoffset: 0; }
	100% { stroke-dashoffset: -1; }
}
@keyframes ljp-hl {
	0% { transform: scaleX(0); opacity: 0; }
	40%, 70% { transform: scaleX(1); opacity: .9; }
	100% { transform: scaleX(1); opacity: 0; }
}
@keyframes ljp-float {
	0%, 100% { transform: translate3d(0, 0, 0) rotate(-6deg); }
	50% { transform: translate3d(0, -14px, 0) rotate(6deg); }
}
@keyframes ljp-twinkle {
	0%, 100% { opacity: 0; transform: scale(.2) rotate(0deg); }
	50% { opacity: calc(.6 + var(--ljp-int) * .4); transform: scale(1) rotate(45deg); }
}
@keyframes ljp-glow {
	0%, 100% { filter: drop-shadow(0 0 calc(var(--ljp-glow) * 1.2px) var(--ljp-gold)); }
	50% { filter: drop-shadow(0 0 calc(var(--ljp-glow) * 4px) var(--ljp-gold2)); }
}
@keyframes ljp-lfloat {
	0%, 100% { transform: translate3d(0, 0, 0); }
	50% { transform: translate3d(0, -7px, 0); }
}
@keyframes ljp-shimmer { to { background-position: 0 0; } }
@keyframes ljp-pulse { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
@keyframes ljp-trise { from { opacity: 0; transform: translate3d(0, 10px, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
@keyframes ljp-indet {
	0% { transform: scaleX(0); transform-origin: 0 50%; }
	50% { transform: scaleX(1); transform-origin: 0 50%; }
	50.01% { transform: scaleX(1); transform-origin: 100% 50%; }
	100% { transform: scaleX(0); transform-origin: 100% 50%; }
}

/* ------------------------------------- "CSS animations" switched off (setting) */

.ljp-no-css .ljp-bgvec *,
.ljp-no-css .ljp-fx *,
.ljp-no-css .ljp-stage *,
.ljp-no-css .ljp-text span,
.ljp-no-css .ljp-logo-wrap { animation: none !important; }
.ljp-no-css .ljp-p { opacity: .5; }
.ljp-no-css .ljp-sp { opacity: .85; transform: none; }
.ljp-no-css .ljp-fr { stroke-dashoffset: 0; }
.ljp-no-css .ljp-hl { transform: none; opacity: .5; }
.ljp-no-css .ljp-bv { opacity: .12; }
.ljp-no-css .ljp-shine { display: none; }
.ljp-no-css .ljp-gem { transform: translate(-50%, -50%); }
.ljp-no-css.ljp-js-off .ljp-bar span { transform: scaleX(.5); }

/* ------------------------------------------------ Respect reduced motion */

@media (prefers-reduced-motion: reduce) {
	.ljp-loader *,
	.ljp-loader *::before,
	.ljp-loader *::after { animation: none !important; }
	.ljp-loader .ljp-p { opacity: .5; }
	.ljp-loader .ljp-sp { opacity: .85; transform: none; }
	.ljp-loader .ljp-fr { stroke-dashoffset: 0; }
	.ljp-loader .ljp-hl { transform: none; opacity: .5; }
	.ljp-loader .ljp-bv { opacity: .12; }
	.ljp-loader .ljp-shine { display: none; }
	.ljp-loader .ljp-gem { transform: translate(-50%, -50%); }
	.ljp-loader .ljp-bar span { transition: transform .2s linear; }
	.ljp-loader.ljp-js-off .ljp-bar span { transform: scaleX(.5); }
	.ljp-exit-slide-up.ljp-exit,
	.ljp-exit-slide-down.ljp-exit,
	.ljp-exit-zoom-out.ljp-exit { transform: none; }
	.ljp-exit-blur.ljp-exit { filter: none; }
}
