/**
 * Luxury Tinting – Scroll-Driven "Layer Peel" Transformation
 * Pinned full-screen stage · stacked car layers · floating service panels · CTA.
 * Aesthetic: minimal, premium (Apple / Tesla).
 */

.lt-tf {
	position: relative;
	background:
		radial-gradient(120% 80% at 50% 0%, #161616 0%, var(--lt-black, #0a0a0a) 60%);
	color: var(--lt-white, #fff);
}

/* ── Pinned stage ─────────────────────────────────────────────────────── */
.lt-tf__stage {
	position: relative;
	height: 100vh;
	min-height: 600px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ── 3D canvas mount (real-time BMW XM) ───────────────────────────────── */
.lt-tf__canvas {
	position: absolute;
	inset: 0;
	z-index: 1;
}
.lt-tf__canvas canvas {
	width: 100% !important;
	height: 100% !important;
	display: block;
}
/* When the 3D viewer is live, hide the SVG fallback car. */
.lt-tf--ready .lt-tf__viz { opacity: 0; visibility: hidden; }
/* When 3D is skipped (mobile / no WebGL), hide the empty canvas. */
.lt-tf--static .lt-tf__canvas { display: none; }

/* ── Layered car (SVG fallback, shown until 3D ready) ─────────────────── */
.lt-tf__viz {
	z-index: 2;
	transition: opacity 0.6s ease;
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}
.lt-tf__layer {
	position: absolute;
	width: min(58vw, 720px);
	max-width: 90%;
	display: flex;
	align-items: center;
	justify-content: center;
	will-change: opacity;
}
.lt-tf__layer img,
.lt-tf__car { width: 100%; height: auto; display: block; }

/* Stacking order: base lowest → ppf highest */
.lt-tf__layer[data-layer="base"]     { z-index: 1; }
.lt-tf__layer[data-layer="wrap"]     { z-index: 2; }
.lt-tf__layer[data-layer="dechrome"] { z-index: 3; }
.lt-tf__layer[data-layer="tint"]     { z-index: 4; }
.lt-tf__layer[data-layer="ppf"]      { z-index: 5; }

.lt-tf__car { filter: drop-shadow(0 34px 50px rgba(0, 0, 0, 0.6)); }

.lt-tf__glow {
	position: absolute;
	left: 50%; top: 54%;
	width: 70%; height: 55%;
	transform: translate(-50%, -50%);
	background: radial-gradient(ellipse at center,
		rgba(201, 168, 76, 0.18) 0%, rgba(201, 168, 76, 0.05) 42%, transparent 70%);
	filter: blur(12px);
	z-index: 0;
}

/* ── Eyebrow ──────────────────────────────────────────────────────────── */
.lt-tf__head {
	position: absolute;
	top: 2.4rem; left: 0; right: 0;
	text-align: center;
	z-index: 8;
}
.lt-tf__eyebrow {
	font-family: var(--lt-brand-font, 'Bebas Neue'), sans-serif;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	font-size: 0.82rem;
	color: var(--lt-gold, #c9a84c);
}

/* ── Service panels (floating glass card, right side) ─────────────────── */
.lt-tf__panel {
	position: absolute;
	z-index: 9;
	top: 50%;
	right: clamp(1.5rem, 7vw, 7rem);
	transform: translateY(-50%);
	width: min(90vw, 380px);
	padding: 2.25rem 2.25rem 2.5rem;
	border-radius: var(--lt-radius-lg, 8px);
	background: rgba(18, 18, 18, 0.55);
	border: 1px solid rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
	opacity: 0;             /* GSAP controls visibility */
	visibility: hidden;
}
.lt-tf__panel-num {
	display: block;
	font-family: 'Cormorant Garamond', serif;
	font-style: italic;
	font-size: 1.1rem;
	color: var(--lt-gold, #c9a84c);
	margin-bottom: 0.4rem;
}
.lt-tf__panel-sub {
	display: block;
	font-family: var(--lt-brand-font, 'Bebas Neue'), sans-serif;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	font-size: 0.72rem;
	color: var(--lt-text-muted, #a0a0a0);
	margin-bottom: 0.5rem;
}
.lt-tf__panel-title {
	font-family: 'Cormorant Garamond', serif;
	font-size: clamp(1.9rem, 3vw, 2.5rem);
	line-height: 1.05;
	margin: 0 0 1.4rem;
	color: var(--lt-white, #fff);
}
.lt-tf__panel-list {
	list-style: none;
	margin: 0; padding: 0;
	display: grid;
	gap: 0.85rem;
}
.lt-tf__panel-list li {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	font-size: 0.98rem;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.82);
}
.lt-tf__panel-list svg {
	flex: 0 0 auto;
	margin-top: 0.15rem;
	color: var(--lt-gold, #c9a84c);
}

/* ── Final CTA ────────────────────────────────────────────────────────── */
.lt-tf__cta {
	position: absolute;
	z-index: 10;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 1.1rem;
	padding: 2rem;
	opacity: 0;
	visibility: hidden;
}
.lt-tf__cta-title {
	font-family: 'Cormorant Garamond', serif;
	font-size: clamp(2.4rem, 6vw, 4.5rem);
	line-height: 1.02;
	margin: 0;
}
.lt-tf__cta-sub {
	font-size: 1.05rem;
	color: var(--lt-text-muted, #a0a0a0);
	margin: 0 0 0.6rem;
	max-width: 34rem;
}

/* ── Scroll hint ──────────────────────────────────────────────────────── */
.lt-tf__hint {
	position: absolute;
	left: 50%; bottom: 1.6rem;
	transform: translateX(-50%);
	display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
	font-family: var(--lt-brand-font, 'Bebas Neue'), sans-serif;
	letter-spacing: 0.2em; text-transform: uppercase;
	font-size: 0.68rem; color: var(--lt-text-muted, #a0a0a0);
	opacity: 0.8; z-index: 8;
}
.lt-tf__hint svg { animation: lt-tf-bob 1.8s ease-in-out infinite; }
@keyframes lt-tf-bob { 0%,100%{transform:translateY(0);} 50%{transform:translateY(4px);} }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 820px) {
	.lt-tf__layer { width: 86vw; }
	.lt-tf__panel {
		right: 50%;
		top: auto;
		bottom: clamp(1.5rem, 6vh, 4rem);
		transform: translateX(50%);
		width: min(92vw, 440px);
		padding: 1.6rem 1.6rem 1.8rem;
	}
	.lt-tf__panel-list { grid-template-columns: 1fr 1fr; gap: 0.7rem 1rem; }
}
@media (max-width: 480px) {
	.lt-tf__panel-list { grid-template-columns: 1fr; }
}

/* ── Static fallback (no GSAP / reduced motion) ───────────────────────── */
.lt-tf--static .lt-tf__stage {
	height: auto;
	display: block;
	padding: 4rem 1.5rem 5rem;
}
.lt-tf--static .lt-tf__viz {
	position: relative;
	height: 56vh;
	margin-bottom: 2.5rem;
}
.lt-tf--static .lt-tf__panel {
	position: relative;
	top: auto; right: auto; transform: none;
	opacity: 1; visibility: visible;
	margin: 0 auto 1.25rem;
}
.lt-tf--static .lt-tf__cta {
	position: relative;
	inset: auto;
	opacity: 1; visibility: visible;
	margin-top: 2rem;
}
.lt-tf--static .lt-tf__hint { display: none; }

@media (prefers-reduced-motion: reduce) {
	.lt-tf__hint svg { animation: none; }
}
