/**
 * Floaters — Consolidated Stylesheet
 * Extracted from home-v8.html custom <style> blocks.
 * Enqueue alongside Tailwind CDN.
 */

/* ─── TYPOGRAPHY ──────────────────────────────────────── */
html {
	scroll-behavior: smooth;
}
.text-tracked {
	letter-spacing: 0.25em;
	text-transform: uppercase;
}
.gold-shimmer {
	background: linear-gradient(90deg, #d4af37 0%, #f7e08a 50%, #d4af37 100%);
	background-size: 200% auto;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	animation: shimmer 4s linear infinite;
}
@keyframes shimmer {
	to {
		background-position: 200% center;
	}
}

/* ─── BUTTONS & INTERACTIONS ──────────────────────────── */
@keyframes lightSweep {
	0% {
		left: -100%;
	}
	30% {
		left: 100%;
	}
	100% {
		left: 100%;
	}
}
.btn-glass {
	position: relative;
	overflow: hidden;
	background: rgba(212, 175, 55, 0.05);
	backdrop-filter: blur(8px);
	border: 1px solid rgba(212, 175, 55, 0.2);
	transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-glass:hover {
	background: rgba(212, 175, 55, 0.15);
	border-color: #d4af37;
	transform: translateY(-2px);
	box-shadow: 0 10px 30px -10px rgba(212, 175, 55, 0.3);
}
.btn-sheen::after {
	content: "";
	position: absolute;
	top: 0;
	left: -100%;
	width: 50%;
	height: 100%;
	background: linear-gradient(
		90deg,
		transparent,
		rgba(255, 255, 255, 0.4),
		transparent
	);
	transform: skewX(-25deg);
	animation: lightSweep 6s infinite;
}
.gold-divider {
	height: 1px;
	background: linear-gradient(90deg, transparent, #d4af37, transparent);
	box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}
.bg-noise {
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* ─── CUSTOM SCROLLBAR ────────────────────────────────── */
.custom-scrollbar::-webkit-scrollbar {
	width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
	background: #1a1a1a;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
	background: #d4af37;
	border-radius: 3px;
}

/* ─── HERO: LIQUID RINSE REVEAL ───────────────────────── */
:root {
	--reveal-dur: 2.8s;
}
.text-dirty {
	color: transparent;
	filter: contrast(130%) brightness(100%) sepia(50%) hue-rotate(350deg)
		saturate(120%);
	background-image: url("https://lh3.googleusercontent.com/aida-public/AB6AXuC6Uea1QEz5Ck3MfaZQq1STN6VDXkczU6xuqnpurWOgfhcpW-5xXNddnF_4bQ3jAcsLQwE8O8VG48Tskq2xKU3XWbRLnJ8X1VPEeefWNoCGIYzabh-HAu6pKqQy1FWEGfEJRJgTraAdp_rvE2w01ENqpGi5eTbQ-E1l4ADzjWjyPMkWkMPVhT9QEOT7XAP2LgQYp2af9B5PAQ4wJps7biekk8HyPzplAD77V2DPG-DoCdvqodLvUUgmF7IDsND8rj7CNICIj-hfbwg");
	background-size: 250px;
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	text-shadow: 1px 2px 4px rgba(80, 60, 30, 0.4);
}
.text-splatters {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: #9c8246;
	background-image: url("https://www.transparenttextures.com/patterns/buried.png");
	background-repeat: repeat;
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
	filter: url(#mud-splatter-filter);
	z-index: 2;
}
.text-clean {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		90deg,
		#fef08a 0%,
		#c59b27 25%,
		#fef08a 50%,
		#c59b27 75%,
		#fef08a 100%
	);
	background-size: 200% auto;
	background-position: 0% center;
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
	clip-path: inset(0 100% 0 0);
}
.gold-sheen {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		110deg,
		transparent 0%,
		transparent 40%,
		rgba(255, 255, 255, 0.9) 50%,
		transparent 60%,
		transparent 100%
	);
	background-size: 200% 100%;
	background-clip: text;
	-webkit-background-clip: text;
	color: transparent;
	background-position: 200% 0;
	pointer-events: none;
	z-index: 10;
}
.foam-line {
	position: absolute;
	top: -10%;
	bottom: -10%;
	width: 4px;
	background: rgba(255, 255, 255, 0.8);
	box-shadow:
		0 0 20px 5px rgba(255, 255, 255, 0.8),
		0 0 40px 10px rgba(255, 255, 255, 0.3);
	z-index: 20;
	left: 0;
	opacity: 0;
}
.sparkle {
	position: absolute;
	top: 5%;
	right: -2%;
	width: 40px;
	height: 40px;
	opacity: 0;
	pointer-events: none;
	z-index: 30;
	filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.8));
}

/* Hero animation states */
.is-animating .text-dirty,
.is-animating .text-splatters {
	animation: dirt-fade var(--reveal-dur) cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
.is-animating .text-clean {
	animation:
		rinse-reveal var(--reveal-dur) cubic-bezier(0.65, 0, 0.35, 1) forwards,
		flowing-gold 4s linear var(--reveal-dur) infinite;
}
.is-animating .gold-sheen {
	animation: gold-sweep 1.2s ease-in-out forwards;
	animation-delay: 2.8s;
}
.is-animating .foam-line {
	animation: foam-move var(--reveal-dur) cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
.is-animating .sparkle {
	animation: sparkle-pop 4s ease-in-out infinite;
	animation-delay: var(--reveal-dur);
}
@keyframes dirt-fade {
	0%,
	70% {
		opacity: 1;
	}
	100% {
		opacity: 0;
	}
}
@keyframes rinse-reveal {
	0% {
		clip-path: inset(0 100% 0 0);
	}
	70%,
	100% {
		clip-path: inset(0 0 0 0);
	}
}
@keyframes gold-sweep {
	0% {
		background-position: 200% 0;
		opacity: 0;
	}
	10% {
		opacity: 1;
	}
	90% {
		opacity: 1;
	}
	100% {
		background-position: -100% 0;
		opacity: 0;
	}
}
@keyframes foam-move {
	0% {
		left: 0%;
		opacity: 0;
	}
	5% {
		opacity: 1;
	}
	65% {
		left: 100%;
		opacity: 1;
	}
	70%,
	100% {
		left: 100%;
		opacity: 0;
	}
}
@keyframes sparkle-pop {
	0%,
	90% {
		opacity: 0;
		transform: scale(0) rotate(0deg);
	}
	98% {
		opacity: 1;
		transform: scale(1.2) rotate(45deg);
	}
	100% {
		opacity: 0;
		transform: scale(0) rotate(90deg);
	}
}
@keyframes flowing-gold {
	0% {
		background-position: 100% center;
	}
	100% {
		background-position: 0% center;
	}
}

/* ─── GSAP PRE-STATE ──────────────────────────────────── */
.gsap-reveal {
	opacity: 0;
	visibility: hidden;
}

/* ─── MARQUEE ─────────────────────────────────────────── */
@keyframes scroll-marquee {
	0% {
		transform: translateX(0);
	}
	100% {
		transform: translateX(-50%);
	}
}
.animate-marquee {
	animation: scroll-marquee 40s linear infinite;
}
.animate-marquee:hover {
	animation-play-state: paused;
}

/* ─── BEFORE/AFTER SLIDERS ────────────────────────────── */
.slider-container {
	position: relative;
	width: 100%;
	aspect-ratio: 16/9;
	overflow: hidden;
	user-select: none;
}
.slider-image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.slider-after {
	width: 50%;
	z-index: 10;
}
.slider-handle {
	position: absolute;
	top: 0;
	left: 50%;
	width: 4px;
	height: 100%;
	background: #d4af37;
	cursor: ew-resize;
	z-index: 20;
	transform: translateX(-50%);
	box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}
.slider-handle::after {
	content: "unfold_more";
	font-family: "Material Symbols Outlined";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) rotate(90deg);
	width: 40px;
	height: 40px;
	background: #d4af37;
	color: #0a0a0a;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}
.label-before,
.label-after {
	position: absolute;
	top: 20px;
	padding: 4px 12px;
	background: rgba(10, 10, 10, 0.7);
	border: 1px solid rgba(212, 175, 55, 0.3);
	color: #d4af37;
	font-family: "Montserrat", sans-serif;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	z-index: 25;
}
.label-before {
	left: 20px;
}
.label-after {
	right: 20px;
}

/* ─── V-CUT SATIN SEAL ───────────────────────────────── */
.v-cut {
	clip-path: polygon(0 0, 100% 0, 100% 85%, 50% 100%, 0 85%);
}
.desktop-menu .desktop-submenu-toggle[aria-expanded="true"] svg {
	transform: rotate(180deg);
}

.desktop-menu .sub-menu.is-open {
	display: block;
}
