/* ═══════════════════════════════════════════════════════════════
   Centre HOUNGNIBO – Intro Screen Animation
   Immersive, Premium Fullscreen Entry Experience
   ═══════════════════════════════════════════════════════════════ */

/* Hide body scroll while intro is playing */
html.hgb-intro-locked,
body.hgb-intro-locked {
	overflow: hidden !important;
	height: 100vh !important;
}

/* Fullscreen Overlay Curtain */
.hgb-intro {
	position: fixed;
	inset: 0;
	z-index: 9999999;
	width: 100vw;
	height: 100vh;
	background-color: #0c0805;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	box-sizing: border-box;
	transition: opacity 0.85s cubic-bezier(0.77, 0, 0.175, 1),
	            transform 0.85s cubic-bezier(0.77, 0, 0.175, 1),
	            visibility 0.85s ease;
	will-change: opacity, transform;
}

/* Background Atmospheric Radial Aura */
.hgb-intro__glow {
	position: absolute;
	width: clamp(340px, 50vw, 680px);
	height: clamp(340px, 50vw, 680px);
	border-radius: 50%;
	background: radial-gradient(circle, rgba(253, 186, 86, 0.18) 0%, rgba(130, 85, 0, 0.08) 45%, transparent 70%);
	pointer-events: none;
	opacity: 0;
	transform: scale(0.75);
	animation: hgbIntroGlow 1.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
	will-change: opacity, transform;
}

/* Concentric sacred circles (subtle watermarks) */
.hgb-intro__rings {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}

.hgb-intro__ring {
	position: absolute;
	border-radius: 50%;
	border: 1px solid rgba(255, 221, 178, 0.04);
	animation: hgbIntroRingPulse 4s ease-in-out infinite alternate;
}

.hgb-intro__ring--1 { width: 320px; height: 320px; }
.hgb-intro__ring--2 { width: 520px; height: 520px; border-color: rgba(255, 221, 178, 0.03); animation-delay: 0.5s; }
.hgb-intro__ring--3 { width: 720px; height: 720px; border-color: rgba(255, 221, 178, 0.02); animation-delay: 1s; }

/* Content Box (Centered) */
.hgb-intro__content {
	position: relative;
	z-index: 10;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 2rem;
	text-align: center;
	cursor: default;
}

/* Logo Box & Artwork */
.hgb-intro__logo-box {
	position: relative;
	width: clamp(170px, 25vw, 260px);
	display: flex;
	flex-direction: column;
	align-items: center;
	opacity: 0;
	transform: scale(0.88) translateY(10px);
	filter: blur(5px);
	animation: hgbIntroLogo 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
	will-change: opacity, transform, filter;
}

.hgb-intro__logo {
	width: 100%;
	height: auto;
	display: block;
	filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.75)) drop-shadow(0 0 22px rgba(253, 186, 86, 0.28));
	animation: hgbLogoRadiance 3s ease-in-out infinite alternate 1.2s;
}

.hgb-intro__shimmer {
	display: none;
}

/* Tagline beneath Logo */
.hgb-intro__tagline {
	margin-top: 1.75rem;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	opacity: 0;
	transform: translateY(8px);
	animation: hgbIntroTagline 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.65s forwards;
}

.hgb-intro__tagline-bullet {
	color: #fdba56;
	font-size: 10px;
	opacity: 0.7;
}

.hgb-intro__tagline-text {
	font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: clamp(9px, 1.1vw, 11px);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.3em;
	color: #e6e2d9;
}

/* Discreet Skip Button */
.hgb-intro__skip {
	position: absolute;
	top: 1.5rem;
	right: 1.5rem;
	z-index: 20;
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.45rem 0.9rem;
	border-radius: 9999px;
	background-color: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 221, 178, 0.15);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	color: #bc9a7c;
	font-family: "Montserrat", sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
	opacity: 0;
	animation: hgbIntroFade 0.6s ease 0.8s forwards;
	transition: all 0.25s ease;
}

.hgb-intro__skip:hover {
	background-color: rgba(255, 255, 255, 0.14);
	color: #ffffff;
	border-color: rgba(253, 186, 86, 0.4);
	transform: translateY(-1px);
}

.hgb-intro__skip svg {
	transition: transform 0.2s ease;
}

.hgb-intro__skip:hover svg {
	transform: translateX(2px);
}

/* ─────────────────────────────────────────────────────────────
   Exit / Reveal Animation (State when finishing)
   ───────────────────────────────────────────────────────────── */
.hgb-intro--closing {
	opacity: 0;
	transform: scale(1.03);
	pointer-events: none;
	visibility: hidden;
}

.hgb-intro--closing .hgb-intro__logo-box {
	transform: scale(1.08) translateY(-6px);
	opacity: 0;
	filter: blur(8px);
	transition: transform 0.7s cubic-bezier(0.77, 0, 0.175, 1),
	            opacity 0.6s ease,
	            filter 0.6s ease;
}

.hgb-intro--closing .hgb-intro__tagline {
	opacity: 0;
	transform: translateY(-4px);
	transition: opacity 0.4s ease, transform 0.4s ease;
}

.hgb-intro--hidden {
	display: none !important;
}

/* ─────────────────────────────────────────────────────────────
   Keyframe Sequences
   ───────────────────────────────────────────────────────────── */
@keyframes hgbIntroLogo {
	0% {
		opacity: 0;
		transform: scale(0.86) translateY(12px);
		filter: blur(6px);
	}
	100% {
		opacity: 1;
		transform: scale(1) translateY(0);
		filter: blur(0);
	}
}

@keyframes hgbIntroGlow {
	0% {
		opacity: 0;
		transform: scale(0.75);
	}
	100% {
		opacity: 1;
		transform: scale(1);
	}
}

@keyframes hgbLogoRadiance {
	0% {
		filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.75)) drop-shadow(0 0 20px rgba(253, 186, 86, 0.22));
	}
	100% {
		filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 36px rgba(253, 186, 86, 0.48));
	}
}

@keyframes hgbIntroTagline {
	0% {
		opacity: 0;
		transform: translateY(8px);
	}
	100% {
		opacity: 0.9;
		transform: translateY(0);
	}
}

@keyframes hgbIntroFade {
	0% { opacity: 0; }
	100% { opacity: 1; }
}

@keyframes hgbIntroRingPulse {
	0% { transform: scale(0.98); opacity: 0.7; }
	100% { transform: scale(1.02); opacity: 1; }
}
