/* GPN Racing Hero — scoped styles */

.gpn-hero {
	--gpn-black: #000000;
	--gpn-neon: #DFFF00;
	--gpn-cyan: #00CCFF;
	--gpn-white: #FFFFFF;
	--gpn-navy: #0A1628;
	--gpn-scroll-height: 300vh;

	position: relative;
	height: var(--gpn-scroll-height);
	background: var(--gpn-black);
	color: var(--gpn-white);
	font-family: 'Rajdhani', system-ui, sans-serif;
	overflow: hidden;
	isolation: isolate;
}

.gpn-hero__pin {
	position: relative;
	width: 100%;
	height: 100vh;
	overflow: hidden;
	background: var(--gpn-black);
}

.gpn-hero__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	background-color: var(--gpn-black);
	background-image: var(--gpn-hero-bg, none);
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	pointer-events: none;
}

.gpn-hero__smoke {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
	pointer-events: none;
	will-change: transform;
}

.gpn-hero__driver {
	position: absolute;
	inset: 0;
	z-index: 3;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	pointer-events: none;
}

.gpn-hero__canvas {
	display: block;
	width: clamp(280px, 38vw, 503px);
	max-width: 503px;
	height: auto;
	max-height: min(88vh, 900px);
	aspect-ratio: 503 / 900;
	object-fit: contain;
	object-position: center bottom;
}

.gpn-hero__glow-eight {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	align-items: stretch;
	justify-content: center;
	height: 100%;
	pointer-events: none;
	filter: drop-shadow(0 0 20px rgba(223, 255, 0, 0.4)) drop-shadow(0 0 40px rgba(0, 204, 255, 0.25));
}

.gpn-glow-eight__svg {
	display: block;
	height: 118%;
	width: auto;
	max-width: none;
	transform: scale(1.12);
	transform-origin: center center;
}

.gpn-glow-eight__text {
	font-family: 'Rajdhani', system-ui, sans-serif;
	font-size: 520px;
	font-weight: 800;
	font-style: italic;
	fill: none;
	stroke: url(#gpn-eight-gradient);
	stroke-width: 2;
}

.gpn-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 4;
	pointer-events: none;
}

.gpn-hud {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	max-width: 28%;
}

.gpn-hud--left {
	left: 6%;
}

.gpn-hud--right {
	right: 6%;
	text-align: right;
}

.gpn-hud__label {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: var(--gpn-neon);
	margin: 0 0 1rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.gpn-hud--right .gpn-hud__label {
	justify-content: flex-end;
}

.gpn-hud__label--cyan {
	color: var(--gpn-cyan);
}

.gpn-hud__dash {
	display: inline-block;
	width: 24px;
	height: 2px;
	background: var(--gpn-neon);
}

.gpn-hud__dash--cyan {
	background: var(--gpn-cyan);
}

.gpn-hud__name {
	font-size: clamp(2rem, 5vw, 4.5rem);
	font-weight: 800;
	line-height: 0.9;
	margin: 0 0 0.5rem;
	position: relative;
}

.gpn-hud__bars {
	display: inline-block;
	width: 40px;
	height: 24px;
	margin-left: 12px;
	background: repeating-linear-gradient(
		-20deg,
		var(--gpn-neon) 0,
		var(--gpn-neon) 4px,
		transparent 4px,
		transparent 10px
	);
	vertical-align: middle;
}

.gpn-hud__championship {
	font-size: clamp(0.85rem, 1.2vw, 1.1rem);
	letter-spacing: 0.3em;
	color: var(--gpn-cyan);
	margin: 0 0 1.5rem;
	text-transform: uppercase;
}

.gpn-hud__stats {
	list-style: none;
	padding: 0;
	margin: 0 0 1.5rem;
	font-size: clamp(0.85rem, 1vw, 1rem);
	font-weight: 600;
	line-height: 1.8;
}

.gpn-hud__stats em {
	font-style: normal;
	opacity: 0.7;
	font-size: 0.85em;
}

.gpn-hud__icon {
	color: var(--gpn-neon);
	margin-right: 0.4rem;
	font-size: 0.6em;
	vertical-align: middle;
}

.gpn-hud__icon--cyan {
	color: var(--gpn-cyan);
}

.gpn-hud__footer {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-top: 2rem;
}

.gpn-hud__car-number {
	font-size: 2.5rem;
	font-weight: 800;
	color: var(--gpn-neon);
	-webkit-text-stroke: 1px var(--gpn-neon);
	text-shadow: 0 0 20px rgba(223, 255, 0, 0.5);
}

.gpn-hud__team {
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.15em;
	opacity: 0.8;
}

.gpn-circuit {
	margin: 1.5rem 0;
	color: var(--gpn-cyan);
}

.gpn-circuit__map {
	width: 140px;
	height: auto;
	margin-left: auto;
	display: block;
	filter: drop-shadow(0 0 8px rgba(0, 204, 255, 0.5));
}

.gpn-circuit__label {
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	margin: 0.5rem 0 0;
}

.gpn-colours {
	display: flex;
	justify-content: flex-end;
	gap: 0.5rem;
	margin: 1rem 0;
}

.gpn-colours__swatch {
	width: 28px;
	height: 28px;
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.gpn-sponsors {
	margin: 1.5rem 0;
}

.gpn-sponsors__label {
	font-size: 0.65rem;
	letter-spacing: 0.2em;
	opacity: 0.6;
	margin: 0 0 0.75rem;
}

.gpn-sponsors__logos {
	display: flex;
	justify-content: flex-end;
	gap: 1.5rem;
}

.gpn-sponsor-logo {
	font-size: 1.1rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	opacity: 0.9;
}

.gpn-target {
	margin-top: 1.5rem;
	padding: 0.75rem 1.25rem;
	border: 1px solid var(--gpn-cyan);
	border-left: 3px solid var(--gpn-neon);
	transform: skewX(-8deg);
	display: inline-block;
}

.gpn-hud--right .gpn-target {
	float: right;
	clear: both;
}

.gpn-target__label {
	font-size: 0.65rem;
	letter-spacing: 0.2em;
	margin: 0;
	opacity: 0.7;
	transform: skewX(8deg);
}

.gpn-target__value {
	font-size: 1rem;
	font-weight: 700;
	margin: 0.25rem 0 0;
	transform: skewX(8deg);
}

.gpn-target__value span {
	color: var(--gpn-neon);
}

.gpn-hero__loading {
	position: absolute;
	bottom: 2rem;
	left: 50%;
	transform: translateX(-50%);
	z-index: 10;
	font-size: 0.85rem;
	letter-spacing: 0.15em;
	color: var(--gpn-cyan);
	transition: opacity 0.4s ease;
}

.gpn-hero__loading--hidden {
	opacity: 0;
	pointer-events: none;
}

.gpn-hero__scroll-spacer {
	height: 0;
	pointer-events: none;
}

/* Mobile */
@media (max-width: 900px) {
	.gpn-hero {
		--gpn-scroll-height: 200vh;
	}

	.gpn-hud {
		max-width: 42%;
	}

	.gpn-hud__name {
		font-size: clamp(1.25rem, 4vw, 2rem);
	}

	.gpn-hud__stats {
		font-size: 0.75rem;
		line-height: 1.6;
	}

	.gpn-hud__bars {
		display: none;
	}

	.gpn-circuit__map {
		width: 100px;
	}

	.gpn-sponsors__logos {
		gap: 0.75rem;
	}

	.gpn-sponsor-logo {
		font-size: 0.85rem;
	}

	.gpn-hero__canvas {
		width: clamp(260px, 48vw, 503px);
		max-height: min(84vh, 900px);
	}
}

@media (max-width: 600px) {
	.gpn-hero {
		--gpn-scroll-height: 150vh;
	}

	.gpn-hud--left {
		left: 4%;
		top: auto;
		bottom: 8%;
		transform: none;
		max-width: 55%;
	}

	.gpn-hud--right {
		display: none;
	}

	.gpn-hud__stats {
		display: none;
	}

	.gpn-hud__footer {
		display: none;
	}

	.gpn-hero__canvas {
		width: clamp(220px, 62vw, 400px);
		max-height: min(78vh, 800px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.gpn-hero__glow-eight {
		animation: none !important;
	}
}
