/* Scroll-driven awards showcase. Scoped to the isolated homepage clone. */
.vc-awards {
	--vc-awards-bg: #020203;
	--vc-awards-purple: #c26be8;
	--vc-awards-violet: #8e44ad;
	--vc-awards-blue: #4d6dff;
	--vc-awards-electric: #0047ff;
	position: relative;
	z-index: 2;
	background: var(--vc-awards-bg);
	color: #fff;
	font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	isolation: isolate;
}

.vc-awards__track {
	position: relative;
	height: 380svh;
}

.vc-awards__stage {
	position: sticky;
	top: 0;
	height: 100svh;
	min-height: 42rem;
	overflow: hidden;
	background:
		radial-gradient(circle at 72% 46%, rgba(0, 71, 255, 0.17), transparent 34%),
		radial-gradient(circle at 56% 58%, rgba(142, 68, 173, 0.15), transparent 42%),
		linear-gradient(124deg, #020203 0%, #07030b 51%, #02040d 100%);
}

.vc-awards__canvas,
.vc-awards__glow,
.vc-awards__grid {
	position: absolute;
	inset: 0;
}

.vc-awards__certificate,
.vc-awards__event-photo {
	position: absolute;
	top: 50%;
	right: clamp(4rem, 10vw, 10rem);
	z-index: 3;
	width: clamp(15rem, 23vw, 22rem);
	margin: 0;
	opacity: 0;
	transform: translate3d(1.5rem, -46%, 0) scale(0.94);
	visibility: hidden;
	will-change: opacity, transform, filter;
	pointer-events: none;
}

.vc-awards__certificate::before,
.vc-awards__event-photo::before {
	position: absolute;
	inset: -12%;
	z-index: -1;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(77, 109, 255, 0.3), rgba(142, 68, 173, 0.15) 42%, transparent 72%);
	filter: blur(1.25rem);
	content: "";
}

.vc-awards__certificate-frame,
.vc-awards__event-photo-frame {
	position: relative;
	padding: 0.42rem;
	border: 1px solid rgba(194, 107, 232, 0.42);
	background: linear-gradient(145deg, rgba(194, 107, 232, 0.26), rgba(0, 71, 255, 0.2));
	box-shadow: 0 1.5rem 5rem rgba(0, 0, 0, 0.58), 0 0 2.8rem rgba(77, 109, 255, 0.2);
	clip-path: polygon(0 0, calc(100% - 1.25rem) 0, 100% 1.25rem, 100% 100%, 1.25rem 100%, 0 calc(100% - 1.25rem));
	overflow: hidden;
}

.vc-awards__certificate-tap {
	display: none;
}

/* Override the homepage's generic button styles without changing the clone. */
body.home .vc-awards__certificate-tap {
	display: none;
	padding: 0;
	border: 0;
}

.vc-awards__certificate-frame::after,
.vc-awards__event-photo-frame::after {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.22) 49%, transparent 62%),
		linear-gradient(to bottom, rgba(194, 107, 232, 0.08), rgba(0, 71, 255, 0.1));
	background-size: 240% 100%, auto;
	background-position: 150% 0, 0 0;
	content: "";
	mix-blend-mode: screen;
	animation: vc-award-certificate-sheen 5.5s ease-in-out infinite;
}

.vc-awards__certificate img,
.vc-awards__event-photo img {
	display: block;
	width: 100%;
	height: auto;
	filter: saturate(1.06) contrast(1.04) brightness(0.98);
}

.vc-awards__certificate figcaption,
.vc-awards__event-photo figcaption {
	margin-top: 0.7rem;
	color: rgba(255, 255, 255, 0.48);
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-align: center;
	text-transform: uppercase;
}

@keyframes vc-award-certificate-sheen {
	0%, 62% { background-position: 150% 0, 0 0; }
	82%, 100% { background-position: -80% 0, 0 0; }
}

.vc-awards__canvas {
	z-index: 1;
}

.vc-awards__canvas canvas {
	display: block;
	width: 100%;
	height: 100%;
}

.vc-awards__glow {
	z-index: 2;
	background:
		radial-gradient(circle at 72% 48%, rgba(77, 109, 255, 0.13), transparent 28%),
		linear-gradient(90deg, rgba(2, 2, 3, 0.48), transparent 52%);
	pointer-events: none;
}

.vc-awards__grid {
	z-index: 2;
	background:
		linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
	background-size: 72px 72px;
	mask-image: linear-gradient(to right, #000, transparent 82%);
	pointer-events: none;
}

.vc-awards__header {
	position: absolute;
	top: clamp(5.75rem, 10vh, 8.5rem);
	left: clamp(1.25rem, 5vw, 5rem);
	z-index: 4;
	max-width: 36rem;
}

/* The main homepage's broad header rule resets its inset and width. */
body.home .vc-awards__header {
	left: clamp(1.25rem, 5vw, 5rem);
	width: auto;
}

.vc-awards__eyebrow {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	margin: 0 0 0.7rem;
	color: #c784e5;
	font-size: clamp(0.65rem, 0.82vw, 0.76rem);
	font-weight: 750;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.vc-awards__eyebrow::before {
	width: 0.48rem;
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--vc-awards-purple);
	box-shadow: 0 0 0.9rem rgba(194, 107, 232, 0.9);
	content: "";
}

.vc-awards__header h2 {
	margin: 0;
	background: linear-gradient(100deg, #fff 6%, #d9c5e2 46%, #798cff 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	font-family: "Funnel Display", Inter, sans-serif;
	font-size: clamp(2rem, 4vw, 4.7rem);
	font-weight: 680;
	line-height: 0.95;
	letter-spacing: -0.055em;
}

.vc-awards__progress {
	position: absolute;
	top: clamp(6rem, 10vh, 8.5rem);
	right: clamp(1.25rem, 5vw, 5rem);
	z-index: 4;
	display: flex;
	align-items: center;
	gap: 0.55rem;
}

.vc-awards__progress span {
	display: block;
	width: 1.65rem;
	height: 3px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.18);
	transition: width 0.35s ease, background-color 0.35s ease, box-shadow 0.35s ease;
}

.vc-awards__progress span.is-active {
	width: 2.7rem;
	background: linear-gradient(90deg, var(--vc-awards-purple), var(--vc-awards-blue));
	box-shadow: 0 0 1rem rgba(123, 84, 255, 0.45);
}

.vc-awards__content {
	position: absolute;
	left: clamp(1.25rem, 5vw, 5rem);
	bottom: clamp(4.75rem, 9vh, 7.5rem);
	z-index: 4;
	width: min(39rem, 43vw);
	min-height: 17rem;
	pointer-events: none;
}

.vc-awards__item {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	opacity: 0;
	transform: translateY(1.5rem);
	visibility: hidden;
	will-change: opacity, transform;
}

.vc-awards__item.is-active {
	opacity: 1;
	transform: translateY(0);
	visibility: visible;
}

.vc-awards__meta {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	margin-bottom: 1.1rem;
}

.vc-awards__meta span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 4.25rem;
	padding: 0.42rem 0.9rem;
	border: 1px solid rgba(194, 107, 232, 0.36);
	border-radius: 999px;
	background: rgba(142, 68, 173, 0.16);
	color: #d58ef3;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.13em;
}

.vc-awards__meta p {
	margin: 0;
	color: rgba(255, 255, 255, 0.54);
	font-size: 0.72rem;
	font-weight: 720;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.vc-awards__item h3 {
	margin: 0 0 1rem;
	color: #fff;
	font-family: "Funnel Display", Inter, sans-serif;
	font-size: clamp(2.7rem, 5.4vw, 6.3rem);
	font-weight: 660;
	line-height: 0.88;
	letter-spacing: -0.062em;
	text-wrap: balance;
}

.vc-awards__item[data-vc-award="1"] h3 {
	font-size: clamp(2.5rem, 4.1vw, 4.85rem);
	line-height: 0.94;
}

.vc-awards__description {
	max-width: 35rem;
	margin: 0;
	color: #aaa7b2;
	font-size: clamp(0.96rem, 1.18vw, 1.12rem);
	line-height: 1.65;
	text-wrap: pretty;
}

.vc-awards__details {
	max-width: 35rem;
	margin: 0.9rem 0 0;
	color: #d3c5dc;
	font-size: clamp(0.7rem, 0.9vw, 0.83rem);
	font-weight: 600;
	line-height: 1.55;
}

.vc-awards .vc-awards__certificate-button {
	display: flex;
	width: fit-content;
	margin-top: 1.75rem;
	font-family: inherit;
	cursor: pointer;
	pointer-events: auto;
}

.vc-certificate-modal__close:focus-visible {
	outline: 2px solid #c26be8;
	outline-offset: 3px;
}

.vc-certificate-modal {
	width: min(44rem, calc(100vw - 2rem));
	max-width: none;
	height: min(92svh, 64rem);
	max-height: none;
	margin: auto;
	padding: 0;
	border: 1px solid rgba(194, 107, 232, 0.42);
	border-radius: 1rem;
	background: #07070d;
	box-shadow: 0 2rem 8rem rgba(0, 0, 0, 0.82), 0 0 4rem rgba(77, 109, 255, 0.2);
	color: #fff;
	overflow: hidden;
}

.vc-certificate-modal[open] {
	animation: vc-certificate-modal-in 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.vc-certificate-modal::backdrop {
	background: rgba(0, 0, 0, 0.84);
	backdrop-filter: blur(0.7rem);
}

.vc-certificate-modal__panel {
	display: grid;
	grid-template-rows: auto minmax(0, 1fr);
	height: 100%;
}

.vc-certificate-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1.15rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.09);
	background: linear-gradient(100deg, rgba(142, 68, 173, 0.17), rgba(77, 109, 255, 0.08));
}

.vc-certificate-modal__header p,
.vc-certificate-modal__header h3 {
	margin: 0;
}

.vc-certificate-modal__header p {
	margin-bottom: 0.22rem;
	color: #cf83f0;
	font-size: 0.64rem;
	font-weight: 800;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}

.vc-certificate-modal__header h3 {
	font-family: "Funnel Display", Inter, sans-serif;
	font-size: clamp(1rem, 2vw, 1.35rem);
	font-weight: 650;
	line-height: 1.15;
}

.vc-certificate-modal__close {
	display: inline-grid;
	flex: 0 0 auto;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
	font: inherit;
	font-size: 1.55rem;
	line-height: 1;
	cursor: pointer;
}

.vc-certificate-modal__image {
	position: relative;
	display: block;
	min-height: 0;
	background: radial-gradient(circle at 50% 24%, rgba(77, 109, 255, 0.14), transparent 58%);
	overflow: hidden;
	overscroll-behavior: contain;
}

.vc-certificate-modal__image img {
	position: absolute;
	inset: 1rem;
	display: block;
	width: calc(100% - 2rem);
	max-width: none;
	height: calc(100% - 2rem);
	max-height: none;
	border: 1px solid rgba(255, 255, 255, 0.14);
	box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.45);
	object-fit: contain;
}

@keyframes vc-certificate-modal-in {
	from {
		opacity: 0;
		transform: translateY(1rem) scale(0.975);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

html.vc-certificate-modal-open {
	overflow: hidden;
}

.vc-awards__hint {
	position: absolute;
	right: clamp(1.25rem, 5vw, 5rem);
	bottom: clamp(1.5rem, 4vh, 3rem);
	z-index: 4;
	margin: 0;
	color: rgba(255, 255, 255, 0.4);
	font-size: 0.66rem;
	font-weight: 750;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	transition: opacity 0.25s ease;
}

.vc-awards.is-static .vc-awards__track {
	height: auto;
}

.vc-awards.is-static .vc-awards__stage {
	position: relative;
	height: auto;
	min-height: 0;
	padding: 8rem clamp(1.25rem, 5vw, 5rem) 5rem;
}

.vc-awards.is-static .vc-awards__canvas,
.vc-awards.is-static .vc-awards__hint,
.vc-awards.is-static .vc-awards__progress {
	display: none;
}

.vc-awards.is-static .vc-awards__certificate,
.vc-awards.is-static .vc-awards__event-photo {
	position: relative;
	top: auto;
	right: auto;
	width: min(22rem, 74vw);
	margin: 3rem auto 0;
	opacity: 1;
	filter: none;
	transform: none;
	visibility: visible;
}

.vc-awards.is-static .vc-awards__header,
.vc-awards.is-static .vc-awards__content,
.vc-awards.is-static .vc-awards__item {
	position: relative;
	top: auto;
	right: auto;
	bottom: auto;
	left: auto;
	width: auto;
	max-width: none;
	min-height: 0;
}

.vc-awards.is-static .vc-awards__content {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	margin-top: 4rem;
}

.vc-awards.is-static .vc-awards__item {
	padding: 1.5rem;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(255, 255, 255, 0.035);
	opacity: 1;
	transform: none;
	visibility: visible;
}

.vc-awards.is-static .vc-awards__item h3 {
	font-size: clamp(2.1rem, 3.5vw, 3.8rem);
}

@media (max-width: 900px) {
	.vc-awards__track {
		height: 330svh;
	}

	.vc-awards__stage {
		min-height: 40rem;
	}

	.vc-awards__header {
		top: 7rem;
		left: 1.25rem;
		right: 1.25rem;
	}

	.vc-awards__header h2 {
		max-width: 21rem;
		font-size: clamp(2rem, 8.5vw, 3.15rem);
		line-height: 0.96;
	}

	.vc-awards__certificate,
	.vc-awards__event-photo {
		top: 13.25rem;
		right: 1.25rem;
		width: clamp(8.5rem, 39vw, 12rem);
		transform: translate3d(0.75rem, -8%, 0) scale(0.94);
	}

	.vc-awards__certificate figcaption,
	.vc-awards__event-photo figcaption {
		display: none;
	}

	.vc-awards__certificate-tap {
		position: absolute;
		inset: 0;
		z-index: 4;
		display: block;
		width: 100%;
		height: 100%;
		padding: 0;
		border: 0;
		background: transparent;
		cursor: zoom-in;
		pointer-events: auto;
	}

	body.home .vc-awards__certificate-tap {
		display: block;
	}

	.vc-awards__certificate-tap::after {
		position: absolute;
		right: 0.45rem;
		bottom: 0.45rem;
		display: grid;
		place-items: center;
		width: 1.75rem;
		height: 1.75rem;
		border: 1px solid rgba(255, 255, 255, 0.34);
		border-radius: 50%;
		background: linear-gradient(135deg, #8e44ad, #0047ff);
		box-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.38);
		color: #fff;
		font-size: 0.75rem;
		content: "↗";
	}

	.vc-awards__certificate-tap:focus-visible {
		outline: 2px solid #fff;
		outline-offset: 4px;
	}

	.vc-awards__progress {
		top: auto;
		right: auto;
		bottom: 2rem;
		left: 1.25rem;
	}

	.vc-awards__content {
		bottom: 5.75rem;
		left: 1.25rem;
		width: calc(100% - 2.5rem);
		min-height: 13.25rem;
	}

	.vc-awards__item h3 {
		max-width: 19rem;
		font-size: clamp(2.2rem, 10.5vw, 3.65rem);
		line-height: 0.92;
	}

	.vc-awards__item[data-vc-award="1"] h3 {
		font-size: clamp(1.9rem, 8.8vw, 3.1rem);
	}

	.vc-awards__description {
		max-width: min(31rem, 100%);
		font-size: clamp(0.82rem, 3.65vw, 0.94rem);
		line-height: 1.55;
	}

	.vc-awards__details {
		font-size: clamp(0.66rem, 2.8vw, 0.78rem);
	}

	.vc-awards__hint {
		right: 1.25rem;
		bottom: 2rem;
	}

	.vc-awards__glow {
		background: linear-gradient(to bottom, transparent 24%, rgba(2, 2, 3, 0.78) 68%);
	}

	.vc-awards.is-static .vc-awards__content {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 520px) {
	.vc-awards__header {
		top: 7rem;
	}

	.vc-awards__header h2 {
		max-width: 17rem;
	}

	.vc-awards__certificate,
	.vc-awards__event-photo {
		top: 13.25rem;
		right: 1rem;
		width: clamp(8.1rem, 37vw, 10.25rem);
	}

	.vc-awards__meta {
		align-items: flex-start;
		gap: 0.65rem;
	}

	.vc-awards__meta p {
		padding-top: 0.25rem;
		line-height: 1.4;
	}

	.vc-awards__item h3 {
		margin-bottom: 0.8rem;
		max-width: 17rem;
		font-size: clamp(2rem, 10.25vw, 3rem);
	}

	.vc-awards__item[data-vc-award="1"] h3 {
		max-width: 19rem;
		font-size: clamp(1.85rem, 8.4vw, 2.65rem);
	}

	.vc-awards__meta {
		margin-bottom: 0.72rem;
	}

	.vc-awards__content {
		bottom: 5.25rem;
		min-height: 12.25rem;
	}

	.vc-awards .vc-awards__certificate-button {
		margin-top: 1.15rem;
	}

	.vc-certificate-modal {
		width: calc(100vw - 1rem);
		height: fit-content;
		min-height: 0;
		max-height: calc(100svh - 1rem);
		border-radius: 0.75rem;
	}

	.vc-certificate-modal__panel {
		grid-template-rows: auto auto;
		height: auto;
		max-height: calc(100svh - 1rem);
	}

	.vc-certificate-modal__header {
		padding: 0.8rem;
	}

	.vc-certificate-modal__image {
		display: grid;
		place-items: start center;
		padding: 0.65rem;
	}

	.vc-certificate-modal__image img {
		position: static;
		width: 100%;
		height: auto;
		max-height: none;
	}
}

@media (max-width: 390px), (max-height: 700px) and (max-width: 900px) {
	.vc-awards__header {
		top: 6.25rem;
	}

	.vc-awards__header h2 {
		font-size: clamp(1.8rem, 8.4vw, 2.5rem);
	}

	.vc-awards__certificate,
	.vc-awards__event-photo {
		top: 13.25rem;
		width: 9.25rem;
	}

	.vc-awards__content {
		bottom: 4.65rem;
		min-height: 11.5rem;
	}

	.vc-awards__item h3 {
		font-size: clamp(1.85rem, 9.5vw, 2.65rem);
	}

	.vc-awards__description {
		font-size: 0.8rem;
		line-height: 1.45;
	}

	.vc-awards .vc-awards__certificate-button {
		margin-top: 1.1rem;
	}

	.vc-awards__progress,
	.vc-awards__hint {
		bottom: 1.25rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.vc-awards__progress span,
	.vc-awards__hint {
		transition: none;
	}

	.vc-awards__certificate-frame::after {
		animation: none;
	}

	.vc-certificate-modal[open] {
		animation: none;
	}
}

/* Main homepage: keep the certificate viewer clear of global Elementor button styles. */
body.home .vc-certificate-modal {
	width: min(42rem, calc(100vw - 2rem));
	height: fit-content;
	max-height: calc(100svh - 2rem);
	border: 1px solid rgba(201, 174, 228, 0.28);
	border-top: 2px solid #a966d0;
	border-radius: 0.8rem;
	background: #08080e;
	box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.75);
}

body.home .vc-certificate-modal__panel {
	height: auto;
	max-height: calc(100svh - 2rem);
}

body.home .vc-certificate-modal__header {
	padding: 1rem 1.25rem;
	background: #12101a;
}

body.home .vc-certificate-modal__header h3 {
	font-size: clamp(1rem, 1.7vw, 1.25rem);
}

body.home .vc-certificate-modal button.vc-certificate-modal__close {
	display: grid !important;
	flex: 0 0 2.75rem;
	place-items: center;
	width: 2.75rem !important;
	height: 2.75rem !important;
	min-width: 2.75rem;
	padding: 0 !important;
	border: 1px solid rgba(255, 255, 255, 0.24) !important;
	border-radius: 50% !important;
	background: #21182b !important;
	box-shadow: none !important;
	color: #fff !important;
	font-size: 1.5rem !important;
	line-height: 1 !important;
	transition: background 180ms ease, border-color 180ms ease;
}

body.home .vc-certificate-modal button.vc-certificate-modal__close:hover {
	border-color: #c26be8 !important;
	background: #392547 !important;
}

body.home .vc-certificate-modal__image {
	display: grid;
	place-items: center;
	padding: clamp(0.75rem, 2vw, 1.25rem);
	background: #08080e;
	overflow: auto;
}

body.home .vc-certificate-modal__image img {
	position: static;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: calc(100svh - 9.5rem);
	margin: auto;
	border: 0;
	box-shadow: 0 0.7rem 2rem rgba(0, 0, 0, 0.35);
}

@media (max-width: 600px) {
	body.home .vc-certificate-modal {
		width: calc(100vw - 1rem);
		max-height: calc(100svh - 1rem);
	}

	body.home .vc-certificate-modal__panel {
		max-height: calc(100svh - 1rem);
	}

	body.home .vc-certificate-modal__header {
		padding: 0.85rem 0.9rem;
	}

	body.home .vc-certificate-modal__image img {
		max-height: calc(100svh - 7.5rem);
	}
}
