/*
 * Wildtrack Motocross page (/wildtrack/): the brand's black, acid yellow and
 * red, chequered flags and heavy italic type. Scoped to .wt so nothing leaks
 * into the rest of haibo.africa.
 */

body.haibo-wildtrack {
	background: #0b0b0b;
}

.wt {
	--wt-ink: #0b0b0b;
	--wt-yellow: #d9e21b;
	--wt-red: #e5262d;
	--wt-paper: #f4f4ef;
	--wt-wrap: min(1200px, 100% - 2 * clamp(1rem, 4vw, 2.5rem));
	color: #fff;
	background: var(--wt-ink);
	font-family: Nunito, ui-rounded, system-ui, sans-serif;
	overflow-x: clip;
}

.wt *,
.wt *::before,
.wt *::after {
	box-sizing: border-box;
}

.wt img,
.wt video {
	display: block;
	max-width: 100%;
	height: auto;
}

.wt h1,
.wt h2 {
	margin: 0;
	color: #fff !important;
	font-weight: 900;
	font-style: italic;
	text-transform: uppercase;
	letter-spacing: -0.02em;
	line-height: 0.92;
	text-wrap: balance;
}

.wt h2 {
	font-size: clamp(2.4rem, 5vw + 0.5rem, 5rem);
}

.wt h1 span,
.wt h2 span {
	color: var(--wt-yellow);
}

.wt p {
	margin: 0;
}

.wt a {
	color: inherit;
}

.wt :focus-visible {
	outline: 3px solid var(--wt-yellow);
	outline-offset: 3px;
}

.wt-wrap {
	width: var(--wt-wrap);
	margin-inline: auto;
}

.wt-section {
	padding-block: clamp(4rem, 8vw, 8rem);
}

.wt-kicker {
	margin-bottom: 1rem !important;
	font-weight: 900;
	font-style: italic;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--wt-red);
}

.wt-lede {
	max-width: 44ch;
	font-size: clamp(1.1rem, 0.5vw + 1rem, 1.35rem);
	line-height: 1.5;
	color: rgb(255 255 255 / 0.88);
}

.wt-lede--narrow {
	margin-top: 1.25rem !important;
}

.wt-small {
	margin-top: 1.5rem !important;
	max-width: 70ch;
	font-size: 0.92rem;
	color: rgb(255 255 255 / 0.6);
}

/* Buttons: italic, slanted, like a race number board. */
.wt-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.wt-btn {
	display: inline-flex;
	align-items: center;
	min-height: 52px;
	padding: 0.85rem 1.6rem;
	font-weight: 900;
	font-style: italic;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	text-decoration: none;
	clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
	transition: transform 0.2s ease, background 0.2s;
}

.wt-btn:hover {
	transform: translateX(4px);
}

.wt-btn--sm {
	min-height: 42px;
	padding: 0.55rem 1.3rem;
	font-size: 0.9rem;
}

.wt-btn--yellow {
	background: var(--wt-yellow);
	color: var(--wt-ink) !important;
}

.wt-btn--ghost {
	background: #fff;
	color: var(--wt-ink) !important;
}

/* Top bar */
.wt-bar {
	position: sticky;
	top: 0;
	z-index: 20;
	display: flex;
	align-items: center;
	gap: 1.5rem;
	padding: 0.6rem clamp(1rem, 4vw, 2.5rem);
	background: rgb(11 11 11 / 0.88);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.wt-bar__brand img {
	width: auto;
	height: 52px;
}

.wt-bar__nav {
	display: flex;
	gap: 1.25rem;
	margin-inline-start: auto;
	font-weight: 800;
	text-transform: uppercase;
	font-size: 0.9rem;
	letter-spacing: 0.05em;
}

.wt-bar__nav a {
	text-decoration: none;
}

.wt-bar__nav a:hover {
	color: var(--wt-yellow);
}

/* Hero */
.wt-hero {
	position: relative;
	isolation: isolate;
	display: grid;
	align-items: end;
	min-height: calc(100svh - 62px);
	padding: clamp(5rem, 10vw, 8rem) 0 clamp(3rem, 6vw, 5rem);
	overflow: hidden;
}

.wt-hero__video {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	filter: grayscale(1) contrast(1.15);
}

.wt-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(to top, var(--wt-ink) 2%, rgb(11 11 11 / 0.55) 45%, rgb(11 11 11 / 0.15)),
		linear-gradient(100deg, rgb(11 11 11 / 0.7), transparent 60%);
}

.wt-hero__copy {
	display: grid;
	gap: 1.4rem;
	justify-items: start;
	width: var(--wt-wrap);
	margin-inline: auto;
}

.wt-hero h1 {
	font-size: clamp(3.4rem, 9vw + 0.5rem, 9.5rem);
}

.wt-sticker {
	width: min(380px, 72vw);
	filter: drop-shadow(0 12px 24px rgb(0 0 0 / 0.5));
}

.wt-flag {
	position: absolute;
	right: 0;
	bottom: 0;
	z-index: -1;
	width: min(48vw, 640px);
	height: 120px;
	opacity: 0.9;
	background: repeating-conic-gradient(#fff 0 25%, var(--wt-ink) 0 50%) 0 0 / 40px 40px;
	clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
}

/* Ticker */
.wt-ticker {
	overflow: hidden;
	padding-block: 0.9rem;
	background: var(--wt-yellow);
	color: var(--wt-ink);
	transform: rotate(-1.2deg) scale(1.02);
}

.wt-ticker__track {
	display: flex;
	width: max-content;
	gap: 2.5rem;
	font-weight: 900;
	font-style: italic;
	font-size: clamp(1.4rem, 2vw + 0.6rem, 2.2rem);
	text-transform: uppercase;
	white-space: nowrap;
}

.wt-ticker__track span::after {
	content: "/";
	margin-inline-start: 2.5rem;
	color: var(--wt-red);
}

@media (prefers-reduced-motion: no-preference) {
	.wt-ticker__track {
		animation: wt-ticker 28s linear infinite;
	}
}

@keyframes wt-ticker {
	to {
		transform: translateX(-50%);
	}
}

/* About */
.wt-split {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: clamp(2rem, 5vw, 5rem);
	align-items: center;
}

.wt-about p:not(.wt-kicker) {
	margin-top: 1.25rem;
	font-size: 1.12rem;
	line-height: 1.65;
	color: rgb(255 255 255 / 0.82);
}

.wt-checks {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.5rem;
	margin: 1.75rem 0 0;
	padding: 0;
	list-style: none;
}

.wt-checks li {
	padding: 0.85rem 1rem;
	border-inline-start: 6px solid var(--wt-yellow);
	background: rgb(255 255 255 / 0.06);
	font-weight: 800;
}

.wt-collage {
	position: relative;
	margin: 0;
	min-height: 520px;
}

.wt-collage img {
	position: absolute;
	width: 62%;
	border: 6px solid #fff;
}

.wt-collage img:first-child {
	top: 0;
	left: 0;
	transform: rotate(-3deg);
}

.wt-collage img:last-child {
	right: 0;
	bottom: 0;
	transform: rotate(4deg);
	box-shadow: -12px 12px 0 var(--wt-red);
}

/* Track record */
.wt-record {
	background: var(--wt-paper);
	color: var(--wt-ink);
}

.wt-record h2 {
	color: var(--wt-ink) !important;
}

.wt-record h2 span {
	color: var(--wt-red);
}

.wt-next {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(1.5rem, 4vw, 4rem);
	align-items: end;
}

.wt-next__copy {
	padding-inline-start: 1.25rem;
	border-inline-start: 8px solid var(--wt-yellow);
	font-size: clamp(1.1rem, 0.5vw + 1rem, 1.35rem);
	line-height: 1.55;
}

.wt-timeline {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 0.6rem;
	margin: 2.5rem 0 0;
	padding: 0;
	list-style: none;
}

.wt-timeline li {
	display: grid;
	align-content: start;
	gap: 0.4rem;
	padding: 1.4rem 1.2rem;
	background: #fff;
	border-block-start: 8px solid var(--wt-ink);
}

.wt-timeline b {
	font-style: italic;
	font-weight: 900;
	text-transform: uppercase;
	color: var(--wt-red);
}

.wt-timeline span {
	font-size: 1.2rem;
	font-weight: 900;
	line-height: 1.15;
}

.wt-timeline small {
	font-size: 0.92rem;
	line-height: 1.4;
	color: #555;
}

.wt-timeline .is-next {
	background: var(--wt-ink);
	color: #fff;
	border-color: var(--wt-yellow);
}

.wt-timeline .is-next b {
	color: var(--wt-yellow);
}

.wt-timeline .is-next small {
	color: rgb(255 255 255 / 0.7);
}

/* Reach */
.wt-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.6rem;
	margin: 2.5rem 0 0;
	padding: 0;
	list-style: none;
}

.wt-stats li {
	display: grid;
	gap: 0.3rem;
	padding: 1.5rem;
	background: rgb(255 255 255 / 0.06);
	clip-path: polygon(0 0, 100% 0, 94% 100%, 0 100%);
}

.wt-stats b {
	font-size: clamp(2.6rem, 3vw + 1rem, 4rem);
	font-weight: 900;
	font-style: italic;
	line-height: 1;
	color: var(--wt-yellow);
}

/* Watch */
.wt-watch {
	background:
		repeating-conic-gradient(rgb(255 255 255 / 0.04) 0 25%, transparent 0 50%) 0 0 / 60px 60px,
		var(--wt-ink);
}

.wt-player {
	margin-top: 2rem;
	border: 6px solid var(--wt-yellow);
	background: #000;
}

.wt-player video {
	width: 100%;
	aspect-ratio: 16 / 9;
}

.wt-gallery {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.75rem;
	margin: 0.75rem 0 0;
	padding: 0;
	list-style: none;
}

.wt-gallery img {
	width: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	object-position: top;
}

/* Contact */
.wt-contact {
	background: var(--wt-red);
}

.wt-contact h2 span {
	color: var(--wt-ink);
}

.wt-contact .wt-lede {
	color: #fff;
}

.wt-contact__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
	margin-top: 2rem;
}

.wt-card {
	display: grid;
	gap: 0.25rem;
	padding: 1.5rem;
	background: var(--wt-ink);
	text-decoration: none;
	transition: transform 0.2s ease;
}

.wt-card:hover {
	transform: translateY(-4px);
}

.wt-card small {
	font-weight: 700;
	color: rgb(255 255 255 / 0.7);
}

.wt-card b {
	font-size: 1.6rem;
	font-weight: 900;
	font-style: italic;
}

.wt-card span {
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--wt-yellow);
}

.wt-card--yellow {
	background: var(--wt-yellow);
	color: var(--wt-ink);
}

.wt-card--yellow b {
	color: var(--wt-ink) !important;
}

.wt-card--yellow small {
	color: rgb(11 11 11 / 0.7);
}

.wt-card--yellow span {
	color: var(--wt-red);
}

/* Footer */
.wt-foot {
	display: grid;
	justify-items: center;
	gap: 1rem;
	padding: 3rem 1rem 4rem;
	text-align: center;
	color: rgb(255 255 255 / 0.7);
}

.wt-foot img {
	width: 240px;
}

.wt-foot a {
	color: var(--wt-yellow);
	font-weight: 800;
}

/* Small screens */
@media (max-width: 960px) {
	.wt-split,
	.wt-next {
		grid-template-columns: 1fr;
	}

	.wt-collage {
		min-height: 420px;
	}

	.wt-timeline {
		grid-template-columns: 1fr 1fr;
	}

	.wt-stats {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 640px) {
	.wt-bar__nav {
		display: none;
	}

	.wt-bar .wt-btn {
		margin-inline-start: auto;
	}

	.wt-checks,
	.wt-timeline,
	.wt-contact__grid,
	.wt-gallery {
		grid-template-columns: 1fr;
	}

	.wt-collage {
		min-height: 340px;
	}

	.wt-flag {
		height: 70px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wt-hero__video {
		display: none;
	}
}
