/* Workstrust TOP opening v43: navy brand hold -> luminous aperture -> settled FV. */
:root {
	--wt-opening-navy: #032e80;
	--wt-opening-blue: #1565c0;
	--wt-opening-light: #bcebf5;
	--wt-opening-ease: cubic-bezier(.76, 0, .24, 1);
}

html.wt-opening-pending,
html.wt-opening-pending body {
	overflow: hidden;
}

.wt-opening {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	place-items: center;
	overflow: hidden;
	background:
		radial-gradient(circle at 50% 50%, rgba(21, 101, 192, .42) 0, rgba(21, 101, 192, .14) 30%, transparent 52%),
		var(--wt-opening-navy);
	isolation: isolate;
	pointer-events: auto;
}

html.wt-opening-pending .wt-opening {
	display: grid;
}

.wt-opening__brand {
	position: relative;
	z-index: 2;
	width: clamp(220px, 30vw, 390px);
	opacity: 0;
	transform: translateY(8px) scale(.975);
	animation: wt-opening-brand-in 1.2s cubic-bezier(.22, 1, .36, 1) both;
}

.wt-opening__brand::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: -1;
	width: clamp(96px, 12vw, 168px);
	aspect-ratio: 1;
	border: 1px solid rgba(188, 235, 245, .54);
	border-radius: 50%;
	box-shadow: 0 0 32px rgba(111, 203, 224, .18);
	opacity: 0;
	transform: translate(-50%, -50%) scale(.42);
	pointer-events: none;
}

.wt-opening__brand img {
	display: block;
	width: 100%;
	height: auto;
	filter: brightness(0) invert(1);
}

.wt-opening__reveal {
	display: none;
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 1;
	width: 0;
	height: 0;
	box-sizing: border-box;
	border: 1px solid rgba(214, 245, 251, .9);
	border-radius: 50%;
	background: transparent;
	box-shadow:
		0 0 34px 8px rgba(111, 203, 224, .34),
		0 0 0 220vmax var(--wt-opening-navy);
	pointer-events: none;
	transform: translate(-50%, -50%);
	will-change: width, height;
}

.wt-opening__reveal::before {
	content: "";
	position: absolute;
	inset: -16px;
	border: 1px solid rgba(188, 235, 245, .48);
	border-radius: 50%;
	opacity: 0;
	pointer-events: none;
}

.wt-opening__skip {
	position: absolute;
	right: max(24px, calc(env(safe-area-inset-right) + 18px));
	bottom: max(22px, calc(env(safe-area-inset-bottom) + 18px));
	z-index: 3;
	min-width: 72px;
	padding: 9px 13px 8px;
	border: 1px solid rgba(255, 255, 255, .62);
	border-radius: 2px;
	background: rgba(0, 57, 84, .28);
	color: #fff;
	font: 600 11px/1.2 Arial, sans-serif;
	letter-spacing: .16em;
	cursor: pointer;
	transition: background-color .18s ease, border-color .18s ease;
}

.wt-opening__skip:hover,
.wt-opening__skip:focus-visible {
	border-color: #fff;
	background: rgba(255, 255, 255, .12);
	outline: 2px solid #fff;
	outline-offset: 3px;
}

.wt-opening.is-revealing {
	background: transparent;
}

.wt-opening.is-revealing .wt-opening__brand {
	animation: wt-opening-brand-out .58s cubic-bezier(.4, 0, 1, 1) both;
}

.wt-opening.is-revealing .wt-opening__brand::before {
	animation: wt-opening-brand-pulse .72s cubic-bezier(.22, 1, .36, 1) both;
}

.wt-opening.is-revealing .wt-opening__skip {
	opacity: 0;
	pointer-events: none;
	transition: opacity .2s ease;
}

.wt-opening.is-revealing .wt-opening__reveal {
	display: block;
	animation: wt-opening-circle-reveal 1.08s var(--wt-opening-ease) both;
}

.wt-opening.is-revealing .wt-opening__reveal::before {
	animation: wt-opening-ring-trail 1.08s var(--wt-opening-ease) both;
}

html.wt-opening-revealing .wt2 .fv {
	transform-origin: 50% 42%;
	animation: wt-opening-fv-settle 1.14s cubic-bezier(.16, 1, .3, 1) both;
	will-change: transform, filter;
}

.wt-opening.is-finished {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .14s ease, visibility 0s linear .14s;
}

@keyframes wt-opening-brand-in {
	0% { opacity: 0; transform: translateY(8px) scale(.975); }
	45%, 100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes wt-opening-brand-out {
	0% { opacity: 1; transform: scale(1); }
	18% { opacity: 1; transform: scale(1.025); }
	100% { opacity: 0; transform: scale(.9); }
}

@keyframes wt-opening-brand-pulse {
	0% { opacity: 0; transform: translate(-50%, -50%) scale(.42); }
	18% { opacity: .86; }
	100% { opacity: 0; transform: translate(-50%, -50%) scale(4.2); }
}

@keyframes wt-opening-circle-reveal {
	0% { width: 0; height: 0; border-color: rgba(232, 251, 255, .96); }
	45% { border-color: rgba(188, 235, 245, .9); }
	100% { width: 300vmax; height: 300vmax; }
}

@keyframes wt-opening-ring-trail {
	0%, 8% { opacity: 0; }
	18% { opacity: .82; }
	62% { opacity: .38; }
	100% { opacity: 0; }
}

@keyframes wt-opening-fv-settle {
	0% { transform: scale(1.028); filter: saturate(.82) brightness(.9) blur(3px); }
	38% { filter: saturate(.94) brightness(.97) blur(.8px); }
	100% { transform: scale(1); filter: none; }
}

@media (max-width: 767px) {
	.wt-opening__brand {
		width: min(68vw, 300px);
	}

	.wt-opening__skip {
		right: max(18px, calc(env(safe-area-inset-right) + 14px));
		bottom: max(18px, calc(env(safe-area-inset-bottom) + 14px));
	}
}

@media (prefers-reduced-motion: reduce) {
	.wt-opening {
		display: none !important;
	}
}
