/* ==========================================================================
   InSolitus Racing — Joomla 4/5/6 site template  v2
   Palette from the logo: lime #A3C600 · graphite #565656 · black / white
   ========================================================================== */

:root {
	--is-accent: #a3c600;            /* logo lime */
	--is-accent-rgb: 163, 198, 0;
	--is-accent-hi: #bfe21a;         /* hover */
	--is-ink: #0b0d10;               /* text on lime */
	--is-graphite: #565656;          /* logo graphite */
	--is-graphite-hi: #8f8f8f;
	--is-bg: #0b0d10;
	--is-bg-2: #111418;
	--is-surface: #16191e;
	--is-surface-2: #1d2127;
	--is-line: rgba(255, 255, 255, .08);
	--is-text: #e9ecf1;
	--is-muted: #9aa3ae;
	--is-head: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
	--is-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--is-radius: 4px;
	--is-skew: -12deg;
	--is-max: 1240px;

	--bs-body-bg: var(--is-bg);
	--bs-body-color: var(--is-text);
	--bs-body-font-family: var(--is-body);
	--bs-link-color: #fff;
	--bs-link-hover-color: var(--is-accent);
	--bs-border-color: var(--is-line);
	--bs-primary: var(--is-accent);
}
[data-bs-theme="dark"] {
	--bs-body-bg: var(--is-bg);
	--bs-body-color: var(--is-text);
	--bs-secondary-bg: var(--is-surface);
	--bs-tertiary-bg: var(--is-surface-2);
	--bs-border-color: var(--is-line);
	--bs-emphasis-color: #fff;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: clip; }
body { overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body.site {
	margin: 0;
	background:
		radial-gradient(1200px 600px at 85% -10%, rgba(var(--is-accent-rgb), .07), transparent 60%),
		var(--is-bg);
	color: var(--is-text);
	font-family: var(--is-body);
	font-size: 1rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}
body.site > .page { flex: 1 0 auto; }

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3 {
	font-family: var(--is-head);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: .01em;
	text-transform: uppercase;
	color: #fff;
}
h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
h3 { font-size: 1.4rem; }

a { color: #fff; text-decoration-color: var(--is-accent); text-underline-offset: 3px; transition: color .2s; }
a:hover, a:focus { color: var(--is-accent); }
:focus-visible { outline: 2px solid var(--is-accent); outline-offset: 3px; }
::selection { background: var(--is-accent); color: var(--is-ink); }

img { max-width: 100%; height: auto; }

.container { width: 100%; max-width: var(--is-max); margin-inline: auto; padding-inline: 20px; }

.skip-link {
	position: absolute; left: 12px; top: -60px; z-index: 2000;
	background: var(--is-accent); color: var(--is-ink); padding: 10px 16px; font-weight: 600;
}
.skip-link:focus { top: 12px; color: var(--is-ink); }

.visually-hidden {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Logo motifs ---------- */
/* kerb: lime / white like a track curb */
.kerb {
	height: 6px;
	background: repeating-linear-gradient(90deg, var(--is-accent) 0 28px, #fff 28px 56px);
}
/* "////" from the logo: 2 lime + 2 graphite */
.slashes { display: inline-flex; gap: 3px; margin-right: 12px; vertical-align: -2px; }
.slashes i {
	display: block; width: 5px; height: 15px; border-radius: 2px;
	background: var(--is-accent); transform: skewX(-25deg);
}
.slashes i:nth-child(n+3) { background: var(--is-graphite-hi); }

/* ---------- Top bar ---------- */
.topbar { background: #000; color: var(--is-muted); font-size: .85rem; padding: 6px 0; }

/* ---------- Header ---------- */
/* blur lives on ::before — backdrop-filter on the header itself would trap the fixed mobile menu */
.site-header { position: sticky; top: 0; z-index: 1000; }
.site-header::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: rgba(11, 13, 16, .84);
	backdrop-filter: saturate(160%) blur(14px);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	transition: background .3s;
}
.site-header.is-scrolled::before { background: rgba(8, 9, 11, .96); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 80px; transition: min-height .3s; }
.site-header.is-scrolled .header-inner { min-height: 64px; }

.brand { display: flex; align-items: center; flex-shrink: 0; line-height: 0; }
.brand-logo { height: 46px; width: auto; transition: height .3s, transform .3s; }
.site-header.is-scrolled .brand-logo { height: 38px; }
.brand:hover .brand-logo { transform: translateX(2px); }

.site-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.header-tools { display: flex; align-items: center; gap: 18px; }

/* Joomla mod_menu output */
.main-menu ul { list-style: none; margin: 0; padding: 0; }
.main-menu > ul, .main-menu .mod-menu { display: flex; gap: 4px; }
.main-menu li { position: relative; }
.main-menu a, .main-menu .nav-header, .main-menu .separator {
	display: block;
	padding: 10px 14px;
	font-family: var(--is-head); font-weight: 600; font-size: 1.12rem;
	text-transform: uppercase; letter-spacing: .06em;
	color: var(--is-text); text-decoration: none;
	position: relative;
}
.main-menu > ul > li > a::after, .main-menu .mod-menu > li > a::after {
	content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 3px;
	background: var(--is-accent); transform: scaleX(0) skewX(var(--is-skew)); transform-origin: left;
	transition: transform .25s ease;
}
.main-menu a:hover::after, .main-menu .current > a::after, .main-menu .active > a::after { transform: scaleX(1) skewX(var(--is-skew)); }
.main-menu a:hover, .main-menu .current > a, .main-menu .active > a { color: #fff; }

.main-menu li ul {
	position: absolute; top: 100%; left: 0; min-width: 220px; display: block;
	background: var(--is-surface); border-top: 3px solid var(--is-accent);
	box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
	opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: opacity .2s, transform .2s, visibility .2s;
	padding: 6px 0;
}
.main-menu li:hover > ul, .main-menu li:focus-within > ul { opacity: 1; visibility: visible; transform: none; }
.main-menu li ul a { font-size: 1rem; padding: 8px 18px; }
.main-menu li ul a::after { display: none; }

.lang-switch ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.lang-switch a {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 4px 8px; border: 1px solid var(--is-line); border-radius: var(--is-radius);
	font-size: .78rem; font-weight: 600; text-transform: uppercase; text-decoration: none; color: var(--is-muted);
}
.lang-switch .lang-active a, .lang-switch a:hover { border-color: var(--is-accent); color: #fff; }
.lang-switch img { width: 18px; height: auto; }

.social { display: flex; gap: 8px; }
.social-link {
	display: grid; place-items: center; width: 36px; height: 36px;
	border-radius: 50%; background: var(--is-surface-2); color: var(--is-text);
	transition: background .2s, transform .2s, color .2s;
}
.social-link svg { width: 17px; height: 17px; fill: currentColor; }
.social-link:hover { background: var(--is-accent); color: var(--is-ink); transform: translateY(-2px); }

.nav-toggle {
	display: none; margin-left: auto; width: 46px; height: 46px;
	background: transparent; border: 1px solid var(--is-line); border-radius: var(--is-radius); cursor: pointer;
	position: relative;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
	position: absolute; left: 12px; right: 12px; height: 2px; background: #fff; transition: transform .25s, opacity .25s;
}
.nav-toggle-bar { top: 50%; margin-top: -1px; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; left: 0; right: 0; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 991px) {
	.nav-toggle { display: block; }
	.site-header.is-scrolled .header-inner { min-height: 80px; }
	.site-header.is-scrolled .brand-logo { height: 40px; }
	.brand-logo { height: 40px; }
	.site-nav {
		position: fixed; inset: 86px 0 0 0; z-index: 999;
		flex-direction: column; align-items: stretch; gap: 24px;
		padding: 24px 20px 40px; overflow-y: auto;
		background: var(--is-bg);
		transform: translateX(100%); visibility: hidden;
		transition: transform .3s ease, visibility 0s linear .3s;
	}
	.site-nav.is-open { transform: none; visibility: visible; transition: transform .3s ease; }
	.main-menu > ul, .main-menu .mod-menu { flex-direction: column; gap: 0; }
	.main-menu a { font-size: 1.5rem; padding: 14px 4px; border-bottom: 1px solid var(--is-line); }
	.main-menu > ul > li > a::after, .main-menu .mod-menu > li > a::after { left: 4px; right: auto; width: 40px; bottom: 8px; }
	.main-menu li ul { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; padding-left: 16px; }
	.header-tools { justify-content: space-between; }
}

/* ---------- Buttons ---------- */
.btn-race, .btn-ghost, .btn-dark {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 14px 30px;
	font-family: var(--is-head); font-weight: 700; font-size: 1.15rem;
	text-transform: uppercase; letter-spacing: .08em; text-decoration: none;
	transform: skewX(var(--is-skew));
	transition: background .2s, color .2s, box-shadow .2s, transform .2s;
	border: 0; border-radius: 0;
}
.btn-race > span, .btn-ghost > span, .btn-dark > span { display: inline-block; transform: skewX(calc(var(--is-skew) * -1)); }
.btn-race { background: var(--is-accent); color: var(--is-ink); box-shadow: 6px 6px 0 0 var(--is-graphite); }
.btn-race:hover, .btn-race:focus { color: var(--is-ink); background: var(--is-accent-hi); box-shadow: 9px 9px 0 0 #fff; transform: skewX(var(--is-skew)) translate(-2px, -2px); }
.btn-ghost { color: #fff; box-shadow: inset 0 0 0 2px #fff; background: transparent; }
.btn-ghost:hover, .btn-ghost:focus { color: var(--is-ink); background: #fff; }
.btn-dark { background: var(--is-ink); color: #fff; box-shadow: 6px 6px 0 0 rgba(255, 255, 255, .9); }
.btn-dark:hover, .btn-dark:focus { color: var(--is-accent); background: #000; transform: skewX(var(--is-skew)) translate(-2px, -2px); }

.btn-primary {
	--bs-btn-bg: var(--is-accent); --bs-btn-border-color: var(--is-accent); --bs-btn-color: var(--is-ink);
	--bs-btn-hover-bg: var(--is-accent-hi); --bs-btn-hover-border-color: var(--is-accent-hi); --bs-btn-hover-color: var(--is-ink);
	--bs-btn-active-bg: #8eae00; --bs-btn-active-border-color: #8eae00; --bs-btn-active-color: var(--is-ink);
	border-radius: 0; font-family: var(--is-head); font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
}

/* ---------- Eyebrows & section heads ---------- */
.eyebrow {
	font-family: var(--is-head); font-weight: 600; font-size: 1.05rem;
	text-transform: uppercase; letter-spacing: .22em; color: var(--is-accent);
	margin: 0 0 16px; display: flex; align-items: center; flex-wrap: wrap;
}
.section { padding: 96px 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head h2 { margin: 0; font-style: italic; font-weight: 800; }

/* ---------- Hero ---------- */
.hero {
	position: relative; overflow: hidden; isolation: isolate;
	min-height: min(92vh, 820px);
	display: flex; flex-direction: column; justify-content: center;
	padding: 90px 0 0;
	background:
		linear-gradient(90deg, rgba(11, 13, 16, .97) 0%, rgba(11, 13, 16, .86) 34%, rgba(11, 13, 16, .25) 70%, rgba(11, 13, 16, .15) 100%),
		linear-gradient(0deg, rgba(11, 13, 16, 1) 0%, rgba(11, 13, 16, 0) 30%),
		var(--hero-img, none) 70% center / cover no-repeat,
		linear-gradient(180deg, #0f1216, #0b0d10);
}
.hero--modules { min-height: 0; padding: 60px 0; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg .speed {
	position: absolute; right: -10%; height: 2px; width: 55%;
	background: linear-gradient(90deg, transparent, var(--is-accent), transparent);
	transform: skewY(-8deg); opacity: .55;
	animation: speed 3.4s linear infinite;
}
.hero-bg .s1 { top: 24%; }
.hero-bg .s2 { top: 44%; width: 40%; animation-delay: 1.1s; background: linear-gradient(90deg, transparent, #fff, transparent); opacity: .2; }
.hero-bg .s3 { top: 64%; width: 65%; animation-delay: 2.2s; }
@keyframes speed { from { transform: translateX(40%) skewY(-8deg); } to { transform: translateX(-160%) skewY(-8deg); } }

.hero-inner { position: relative; padding-bottom: 120px; }
.hero-title {
	font-size: clamp(3.4rem, 9vw, 7.6rem);
	font-weight: 800; font-style: italic; line-height: .88;
	margin: 0 0 26px; letter-spacing: -.005em;
	text-shadow: 0 10px 40px rgba(0, 0, 0, .55);
}
.hero-title span { display: block; color: var(--is-accent); }
.hero-lead { max-width: 580px; font-size: 1.15rem; color: #d3d8de; margin: 0 0 38px; text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 22px; }

.hero-stats {
	display: flex; flex-wrap: wrap; gap: 14px 0; margin: 56px 0 0; padding: 0;
}
.hero-stats > div {
	padding: 6px 28px 6px 0; margin-right: 28px;
	border-right: 1px solid rgba(255, 255, 255, .15);
}
.hero-stats > div:last-child { border-right: 0; margin-right: 0; }
.hero-stats dt {
	font-family: var(--is-head); font-weight: 800; font-style: italic;
	font-size: 2.8rem; line-height: 1; color: #fff;
}
.hero-stats > div:first-child dt { color: var(--is-accent); }
.hero-stats dd { margin: 4px 0 0; font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; color: var(--is-muted); }

.ticker {
	position: absolute; left: 0; right: 0; bottom: 0;
	background: var(--is-accent); color: var(--is-ink); overflow: hidden;
	transform: skewY(-1.5deg) translateY(10px); transform-origin: left;
	padding: 12px 0 18px;
}
.ticker-track { display: flex; width: max-content; animation: ticker 32s linear infinite; }
.ticker-track span {
	font-family: var(--is-head); font-weight: 800; font-style: italic; font-size: 1.35rem;
	text-transform: uppercase; letter-spacing: .12em; white-space: nowrap; padding-right: 2rem;
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Goals ---------- */
.goals { padding-top: 110px; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
	position: relative; padding: 34px 30px 32px;
	background: linear-gradient(160deg, var(--is-surface-2), var(--is-surface));
	border: 1px solid var(--is-line);
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
	transition: transform .3s, border-color .3s;
}
.feature::before {
	content: ""; position: absolute; left: 0; top: 0; width: 70px; height: 4px;
	background: var(--is-accent); transform: skewX(var(--is-skew)); transform-origin: left;
	transition: width .35s;
}
.feature:hover { transform: translateY(-6px); border-color: rgba(var(--is-accent-rgb), .55); }
.feature:hover::before { width: 100%; }
.feature-no {
	position: absolute; right: 22px; top: 12px;
	font-family: var(--is-head); font-weight: 800; font-style: italic; font-size: 4rem; line-height: 1;
	color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .16);
}
.feature-icon {
	display: grid; place-items: center; width: 58px; height: 58px; margin-top: 6px;
	background: rgba(var(--is-accent-rgb), .12); color: var(--is-accent);
	border-radius: 50%;
}
.feature-icon svg { width: 30px; height: 30px; }
.feature-title { font-size: 1.85rem; margin: 20px 0 10px; font-style: italic; font-weight: 800; }
.feature p { color: var(--is-muted); margin: 0; }

/* ---------- Garage ---------- */
.garage { background: var(--is-bg-2); border-block: 1px solid var(--is-line); }
.garage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.car {
	background: var(--is-surface); border: 1px solid var(--is-line); border-radius: var(--is-radius);
	overflow: hidden; display: flex; flex-direction: column;
	transition: transform .3s, border-color .3s;
}
.car:hover { transform: translateY(-5px); border-color: rgba(var(--is-accent-rgb), .45); }
.car-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0e1013; }
.car-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.car:hover .car-media img { transform: scale(1.05); }
.car-media.is-empty {
	display: grid; place-items: center; align-content: center; gap: 10px;
	background:
		repeating-linear-gradient(-45deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 16px),
		radial-gradient(600px 300px at 50% 120%, rgba(var(--is-accent-rgb), .25), transparent 70%),
		#101317;
}
.car-plate {
	font-family: var(--is-head); font-weight: 800; font-style: italic;
	font-size: clamp(5rem, 11vw, 8.5rem); line-height: .9;
	color: transparent; -webkit-text-stroke: 2px rgba(var(--is-accent-rgb), .7);
}
.car-soon { font-size: .85rem; letter-spacing: .2em; text-transform: uppercase; color: var(--is-muted); }
.car-badge {
	position: absolute; left: 18px; top: 18px;
	padding: 6px 16px; background: var(--is-accent); color: var(--is-ink);
	font-family: var(--is-head); font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: .1em;
	transform: skewX(var(--is-skew));
}
.car-badge--legend { background: #fff; }
.car-body { padding: 26px 28px 30px; }
.car-body h3 { font-size: 2.1rem; font-style: italic; font-weight: 800; margin: 0 0 10px; }
.car-body h3 small { color: var(--is-accent); font-size: .7em; margin-left: 6px; }
.car-body p { color: var(--is-muted); margin: 0 0 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips li {
	padding: 4px 12px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px;
	font-size: .8rem; font-weight: 600; letter-spacing: .06em; color: #d5dae0;
}
.car--now .chips li:first-child { border-color: var(--is-accent); color: var(--is-accent); }

/* ---------- Results ---------- */
.results-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
.results-photo { margin: 0; position: relative; }
.results-photo img {
	width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--is-radius);
	box-shadow: 18px 18px 0 0 rgba(var(--is-accent-rgb), .9);
}
.results-photo figcaption { margin-top: 30px; font-size: .85rem; color: var(--is-muted); }
.results-body h2 { font-style: italic; font-weight: 800; margin: 0 0 26px; }
.year-tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.year-tabs button {
	padding: 8px 22px; border: 1px solid var(--is-line); background: transparent; color: var(--is-muted);
	font-family: var(--is-head); font-weight: 800; font-style: italic; font-size: 1.4rem; cursor: pointer;
	transform: skewX(var(--is-skew)); transition: background .2s, color .2s, border-color .2s;
}
.year-tabs button:hover { color: #fff; border-color: rgba(255, 255, 255, .3); }
.year-tabs button[aria-selected="true"] { background: var(--is-accent); color: var(--is-ink); border-color: var(--is-accent); }
.result-list { list-style: none; margin: 0; padding: 0; }
.result-list li {
	display: flex; align-items: center; gap: 18px;
	padding: 14px 4px; border-bottom: 1px solid var(--is-line);
	animation: rise .4s ease both;
}
.result-list li:nth-child(2) { animation-delay: .04s; } .result-list li:nth-child(3) { animation-delay: .08s; }
.result-list li:nth-child(4) { animation-delay: .12s; } .result-list li:nth-child(5) { animation-delay: .16s; }
.result-list li:nth-child(n+6) { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.result-list .pos {
	flex: 0 0 46px; height: 46px; display: grid; place-items: center;
	font-family: var(--is-head); font-weight: 800; font-style: italic; font-size: 1.5rem;
	border-radius: 50%; border: 2px solid var(--is-graphite); color: var(--is-graphite-hi);
}
.result-list .place-1 .pos { background: var(--is-accent); border-color: var(--is-accent); color: var(--is-ink); }
.result-list .place-2 .pos { border-color: #e6e6e6; color: #fff; }
.result-list .place-3 .pos { border-color: #b08d57; color: #d9b57d; }
.result-list .ev { display: flex; flex-direction: column; }
.result-list .ev strong { font-weight: 600; color: #fff; }
.result-list .ev small { color: var(--is-muted); font-size: .85rem; }

/* ---------- Gallery ---------- */
.gallery { background: var(--is-bg-2); border-top: 1px solid var(--is-line); }
.gallery-grid {
	display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 12px;
}
.gallery-item { position: relative; overflow: hidden; display: block; border-radius: var(--is-radius); background: #000; }
.gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-item:nth-child(6) { grid-column: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease, opacity .4s; }
.gallery-item::after {
	content: attr(data-caption); position: absolute; left: 0; right: 0; bottom: 0;
	padding: 30px 16px 12px; font-size: .85rem; font-weight: 500; color: #fff;
	background: linear-gradient(transparent, rgba(0, 0, 0, .85));
	opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s;
}
.gallery-item:hover img { transform: scale(1.07); opacity: .85; }
.gallery-item:hover::after, .gallery-item:focus-visible::after { opacity: 1; transform: none; }
.gallery-more { text-align: center; margin: 40px 0 0; }

/* lightbox */
.lightbox {
	width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
	background: rgba(5, 6, 8, .94); color: #fff;
}
.lightbox[open] { display: grid; grid-template-columns: 70px 1fr 70px; align-items: center; }
.lightbox::backdrop { background: rgba(0, 0, 0, .6); }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-width: 100%; max-height: 82vh; box-shadow: 0 30px 80px rgba(0, 0, 0, .7); }
.lightbox figcaption { margin-top: 14px; font-family: var(--is-head); font-size: 1.3rem; text-transform: uppercase; letter-spacing: .08em; }
.lightbox button {
	background: transparent; border: 0; color: #fff; font-size: 3rem; line-height: 1; cursor: pointer;
	width: 60px; height: 60px; justify-self: center; transition: color .2s;
}
.lightbox button:hover { color: var(--is-accent); }
.lb-close { position: absolute; top: 14px; right: 14px; }

/* ---------- Page layout ---------- */
.banner { margin-top: 30px; }
.page { padding-top: 56px; padding-bottom: 70px; }
.page--home { padding-bottom: 0; }
.page--home .content > * { margin-bottom: 70px; }
.page.has-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; align-items: start; }
.page--home.has-sidebar { padding-top: 70px; padding-bottom: 20px; }
.content:focus { outline: none; }
.sidebar { position: sticky; top: 100px; display: grid; gap: 22px; }
@media (max-width: 991px) { .page.has-sidebar { grid-template-columns: 1fr; } .sidebar { position: static; } }

.card {
	--bs-card-bg: var(--is-surface);
	--bs-card-border-color: var(--is-line);
	--bs-card-cap-bg: transparent;
	background: var(--is-surface); border: 1px solid var(--is-line); border-radius: var(--is-radius);
	color: var(--is-text); overflow: hidden;
}
.card-header {
	font-family: var(--is-head); font-weight: 700; font-style: italic; text-transform: uppercase;
	font-size: 1.3rem; letter-spacing: .04em; color: #fff;
	padding: 16px 20px 12px; margin: 0; border-bottom: 1px solid var(--is-line);
	position: relative;
}
.card-header::after { content: ""; position: absolute; left: 20px; bottom: -2px; width: 44px; height: 3px; background: var(--is-accent); transform: skewX(var(--is-skew)); }
.card-body { padding: 18px 20px 20px; }
.main-top .card, .main-bottom .card { margin-bottom: 26px; }

/* ---------- Joomla content (com_content) ---------- */
.page-header h1, .page-header h2, .item-page h2, .com-content-article h1 { margin-bottom: 14px; }
.page-header h2 a, .blog-item h2 a { text-decoration: none; }

.blog-items, .blog-featured .items-row { display: grid; gap: 26px; }
.blog-featured .items-leading, .blog .items-leading { display: grid; gap: 26px; margin-bottom: 26px; }
.blog-items.columns-2, .blog-featured .columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.blog-items.columns-3, .blog-featured .columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 767px) { .blog-items.columns-2, .blog-items.columns-3, .blog-featured .columns-2, .blog-featured .columns-3 { grid-template-columns: 1fr; } }

.blog-item, .blog-featured .item, .com-content-article.item-page {
	background: var(--is-surface); border: 1px solid var(--is-line); border-radius: var(--is-radius);
	overflow: hidden; transition: border-color .3s;
}
.blog-item:hover, .blog-featured .item:hover { border-color: rgba(var(--is-accent-rgb), .4); }
.blog-item .item-content, .blog-featured .item-content { padding: 22px 24px 26px; }
.com-content-article.item-page { padding: 34px clamp(20px, 4vw, 48px) 40px; }
.blog-item figure, .item-image { margin: 0; overflow: hidden; }
.blog-item figure img, .item-image img { width: 100%; display: block; transition: transform .6s ease; }
.blog-item:hover figure img { transform: scale(1.05); }

.article-info, .article-info dd, .article-info dt { color: var(--is-muted); font-size: .85rem; margin: 0; }
.article-info { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 14px; }
.article-info dt { display: none; }
.readmore .btn, .readmore a {
	display: inline-flex; gap: 8px; padding: 8px 18px; margin-top: 8px;
	background: transparent; color: #fff; border: 1px solid var(--is-accent); border-radius: 0;
	font-family: var(--is-head); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; text-decoration: none;
	transform: skewX(var(--is-skew));
}
.readmore .btn:hover, .readmore a:hover { background: var(--is-accent); color: var(--is-ink); }

.com-content-article__body, .item-page [itemprop="articleBody"] { font-size: 1.05rem; }
blockquote { border-left: 4px solid var(--is-accent); padding: 6px 0 6px 20px; color: #cfd5dc; font-style: italic; margin: 24px 0; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--is-line); text-align: left; }
th { font-family: var(--is-head); text-transform: uppercase; letter-spacing: .05em; color: #fff; }
hr { border: 0; height: 4px; background: repeating-linear-gradient(90deg, var(--is-accent) 0 20px, transparent 20px 40px); opacity: .7; }

/* breadcrumbs */
.mod-breadcrumbs__wrapper { margin: 0; padding: 0; }
.breadcrumb { --bs-breadcrumb-padding-x: 0; --bs-breadcrumb-bg: transparent; }
.mod-breadcrumbs, .breadcrumb { background: none; display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 0 0 26px; font-size: .85rem; color: var(--is-muted); --bs-breadcrumb-divider-color: var(--is-muted); }
.mod-breadcrumbs a, .breadcrumb a { color: var(--is-muted); text-decoration: none; }
.mod-breadcrumbs a:hover { color: #fff; }
.mod-breadcrumbs__here { margin-right: 6px; }

.pagination { display: flex; gap: 6px; flex-wrap: wrap; list-style: none; padding: 0; margin: 34px 0 0;
	--bs-pagination-bg: var(--is-surface); --bs-pagination-color: #fff; --bs-pagination-border-color: var(--is-line);
	--bs-pagination-active-bg: var(--is-accent); --bs-pagination-active-color: var(--is-ink); --bs-pagination-active-border-color: var(--is-accent);
	--bs-pagination-hover-bg: var(--is-surface-2); --bs-pagination-hover-color: #fff; }

.pagenavigation .btn, .pagenavigation a {
	background: transparent; color: #fff; border: 1px solid var(--is-line); border-radius: 0;
	font-family: var(--is-head); font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
	padding: 6px 16px;
}
.pagenavigation .btn:hover, .pagenavigation a:hover { background: var(--is-accent); border-color: var(--is-accent); color: var(--is-ink); }

.form-control, .form-select, input[type="text"], input[type="email"], input[type="password"], input[type="search"], textarea, select {
	background-color: var(--is-bg-2); color: #fff; border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--is-radius);
}
.form-control:focus, .form-select:focus, input:focus, textarea:focus {
	background-color: var(--is-bg-2); color: #fff; border-color: var(--is-accent);
	box-shadow: 0 0 0 .2rem rgba(var(--is-accent-rgb), .25);
}
label, .control-label { font-weight: 500; color: #d7dce2; }
#system-message-container joomla-alert, .alert { border-radius: var(--is-radius); }


/* ---------- News cards (category blog + featured overrides) ---------- */
.section-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; flex-wrap: wrap; }
.is-home .blog-featured > .page-header, .is-home .com-content-featured > .page-header { display: none; }
.page--home { padding-top: 96px; }

.blog-items, .blog-featured .items-row, .blog-featured .blog-items {
	display: grid !important; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 22px;
}
.blog-items > .blog-item, .blog-featured .blog-item, .blog-featured .item {
	background: none; border: 0; padding: 0; margin: 0; overflow: visible;
}
.blog-items.items-leading, .blog-featured .items-leading { grid-template-columns: 1fr; margin-bottom: 24px; }

.news-card {
	height: 100%; display: flex; flex-direction: column;
	background: var(--is-surface); border: 1px solid var(--is-line); border-radius: var(--is-radius);
	overflow: hidden; transition: transform .3s, border-color .3s, box-shadow .3s;
}
.news-card:hover { transform: translateY(-5px); border-color: rgba(var(--is-accent-rgb), .5); box-shadow: 0 20px 40px rgba(0, 0, 0, .35); }
.news-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #0e1013; }
.news-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.news-card:hover .news-media img { transform: scale(1.06); }
.news-ph {
	position: absolute; inset: 0; display: grid; place-items: center;
	background:
		repeating-linear-gradient(-45deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 16px),
		radial-gradient(500px 260px at 50% 120%, rgba(var(--is-accent-rgb), .22), transparent 70%), #101317;
}
.news-ph .slashes { transform: scale(3.2); margin: 0; opacity: .8; }
.news-date {
	position: absolute; left: 16px; bottom: 16px;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	min-width: 64px; padding: 8px 10px 6px;
	background: var(--is-accent); color: var(--is-ink);
	font-family: var(--is-head); text-transform: uppercase; line-height: 1;
	transform: skewX(var(--is-skew)); box-shadow: 5px 5px 0 0 var(--is-ink);
}
.news-date > * { transform: skewX(calc(var(--is-skew) * -1)); }
.news-date b { font-size: 1.9rem; font-weight: 800; font-style: italic; }
.news-date span { font-size: .78rem; font-weight: 700; letter-spacing: .08em; margin-top: 3px; }
.news-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.news-cat { align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--is-accent); margin-bottom: 8px; }
.news-title { font-size: 1.55rem; font-style: italic; font-weight: 800; margin: 0 0 10px; line-height: 1.08; }
.news-title a { text-decoration: none; color: #fff; }
.news-title a:hover { color: var(--is-accent); }
.news-teaser { color: var(--is-muted); margin: 0 0 18px; font-size: .95rem; }
.news-more {
	margin-top: auto; align-self: flex-start;
	font-family: var(--is-head); font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
	text-decoration: none; color: #fff; border-bottom: 2px solid var(--is-accent); padding-bottom: 2px;
}
.news-more span[aria-hidden] { display: inline-block; transition: transform .2s; color: var(--is-accent); }
.news-card:hover .news-more span[aria-hidden] { transform: translateX(5px); }

/* leading article: wide, image left */
@media (min-width: 768px) {
	.items-leading .news-card { flex-direction: row; }
	.items-leading .news-media { flex: 0 0 56%; aspect-ratio: auto; min-height: 340px; }
	.items-leading .news-body { padding: 36px 40px; justify-content: center; }
	.items-leading .news-title { font-size: clamp(2rem, 3vw, 2.6rem); }
	.items-leading .news-teaser { font-size: 1.05rem; }
}

/* single article: source links (Joomla "Links" tab A/B/C) as buttons */
.com-content-article__links ul, .com-content-article__links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; }
.com-content-article__links a {
	display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px;
	border: 1px solid var(--is-accent); color: #fff; text-decoration: none;
	font-family: var(--is-head); font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
	transform: skewX(var(--is-skew));
}
.com-content-article__links a::after { content: "\2197"; color: var(--is-accent); }
.com-content-article__links a:hover { background: var(--is-accent); color: var(--is-ink); }
.com-content-article__links a:hover::after { color: var(--is-ink); }
.item-page .item-image, .com-content-article .item-image { margin: 0 0 26px; }
.item-page .item-image img { max-height: 520px; object-fit: cover; width: 100%; }

/* ---------- Pit lane: 1.2 % support + sponsor pitch ---------- */
.pitlane { padding-top: 96px; }
.pitlane-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; align-items: stretch; }
.pitlane-grid.single { grid-template-columns: 1fr; }
@media (max-width: 991px) { .pitlane-grid { grid-template-columns: 1fr; } }

.support-card {
	position: relative; overflow: hidden;
	display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 30px;
	padding: clamp(28px, 4vw, 52px);
	color: var(--is-ink);
	background:
		repeating-linear-gradient(-45deg, rgba(0, 0, 0, .04) 0 2px, transparent 2px 14px),
		linear-gradient(135deg, #7f9a00 0%, var(--is-accent) 50%, #c9ec2b 100%);
	border-radius: var(--is-radius);
}
.support-card::after {
	/* logo slashes watermark */
	content: ""; position: absolute; right: -40px; bottom: -60px; width: 260px; height: 220px;
	background: repeating-linear-gradient(65deg, transparent 0 22px, rgba(0, 0, 0, .07) 22px 44px);
	pointer-events: none;
}
.support-card .eyebrow { color: var(--is-ink); opacity: .75; }
.support-card h2 { color: var(--is-ink); font-size: clamp(2rem, 4vw, 3rem); font-style: italic; font-weight: 800; margin: 0 0 12px; }
.support-card p { color: rgba(11, 13, 16, .85); max-width: 460px; font-weight: 500; }
.support-card .btn-dark { margin-top: 10px; }
.support-badge {
	position: relative; z-index: 1;
	width: 170px; aspect-ratio: 1; display: grid; place-items: center;
	background: #fff; border-radius: 50%; padding: 26px;
	box-shadow: 0 0 0 10px rgba(255, 255, 255, .25), 0 20px 50px rgba(0, 0, 0, .3);
	transform: rotate(-8deg); transition: transform .4s;
}
.support-card:hover .support-badge { transform: rotate(0) scale(1.05); }
.support-badge img { max-width: 100%; max-height: 100%; object-fit: contain; }
@media (max-width: 600px) { .support-card { grid-template-columns: 1fr; } .support-badge { width: 130px; } }

.pitch-card {
	padding: clamp(28px, 4vw, 48px);
	background: var(--is-surface); border: 1px solid var(--is-line); border-radius: var(--is-radius);
	position: relative; overflow: hidden;
}
.pitch-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--is-accent); }
.pitch-card h2 { font-style: italic; font-weight: 800; font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 0 0 20px; }
.checks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 32px; color: #d5dae0; }
.checks li::before {
	content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%;
	background: rgba(var(--is-accent-rgb), .15)
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23a3c600' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.event-card {
	position: relative; display: block; overflow: hidden; border-radius: var(--is-radius);
	min-height: 320px; background: var(--is-surface); text-decoration: none; border: 1px solid var(--is-line);
}
.event-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.event-card:hover img { transform: scale(1.06); }
.event-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .9)); }
.event-label { position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 1; color: #fff; }
.event-label strong { font-family: var(--is-head); font-size: 2rem; font-style: italic; text-transform: uppercase; line-height: 1; }

/* ---------- Sponsors ---------- */
.sponsors { padding: 64px 0 70px; }
.section-title { display: flex; justify-content: center; align-items: center; font-size: 1rem; letter-spacing: .32em; color: var(--is-muted); margin: 0 0 30px; font-weight: 600; }
.sponsor-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 40px; }
.sponsor-row img { max-height: 80px; width: auto; filter: grayscale(1) brightness(1.6); opacity: .75; transition: filter .3s, opacity .3s; }
.sponsor-row a:hover img { filter: none; opacity: 1; }

/* ---------- Footer ---------- */
.site-footer { background: #07080a; color: var(--is-muted); font-size: .92rem; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding-top: 56px; padding-bottom: 30px; }
.footer-cols h3 { font-size: 1.15rem; letter-spacing: .08em; margin-bottom: 14px; }
.footer-cols ul { list-style: none; padding: 0; }
.footer-cols a { color: var(--is-muted); text-decoration: none; }
.footer-cols a:hover { color: var(--is-accent); }
@media (max-width: 767px) { .footer-cols { grid-template-columns: 1fr; } }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding-top: 24px; padding-bottom: 24px; border-top: 1px solid var(--is-line); }
.site-footer .kerb + .footer-bottom { border-top: 0; }
.footer-brand { display: flex; align-items: center; gap: 18px; margin-right: auto; }
.footer-brand img { height: 34px; width: auto; }
.to-top { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--is-line); color: #fff; transition: background .2s, border-color .2s; }
.to-top svg { width: 18px; fill: currentColor; }
.to-top:hover { background: var(--is-accent); border-color: var(--is-accent); color: var(--is-ink); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .hero .reveal:nth-child(2) { transition-delay: .08s; }
.js .hero .reveal:nth-child(3) { transition-delay: .16s; }
.js .hero .reveal:nth-child(4) { transition-delay: .24s; }
.js .hero .reveal:nth-child(5) { transition-delay: .32s; }
.js .feature.reveal:nth-child(2), .js .car.reveal:nth-child(2) { transition-delay: .1s; }
.js .feature.reveal:nth-child(3) { transition-delay: .2s; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
	.results-grid { grid-template-columns: 1fr; gap: 40px; }
	.results-photo img { aspect-ratio: 16 / 10; }
	.gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
	.gallery-item:nth-child(6) { grid-column: span 1; }
}
@media (max-width: 767px) {
	.section { padding: 70px 0; }
	.features-grid, .garage-grid { grid-template-columns: 1fr; }
	.hero { min-height: 680px; background-position: 0 0, 0 0, 72% center, 0 0; }
	.hero {
		background:
			linear-gradient(180deg, rgba(11, 13, 16, .55) 0%, rgba(11, 13, 16, .92) 55%, rgba(11, 13, 16, 1) 100%),
			var(--hero-img, none) 72% top / cover no-repeat, #0b0d10;
	}
	.eyebrow { font-size: .92rem; letter-spacing: .12em; }
	.hero-stats > div { padding-right: 18px; margin-right: 18px; }
	.hero-stats dt { font-size: 2.1rem; }
	.lightbox[open] { grid-template-columns: 44px 1fr 44px; }
}

/* ---------- Error / offline pages ---------- */
.standalone {
	min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 40px 20px;
	background:
		radial-gradient(800px 400px at 50% 0%, rgba(var(--is-accent-rgb), .18), transparent 60%),
		var(--is-bg);
}
.standalone .standalone-logo { height: 52px; width: auto; margin-bottom: 30px; }
.standalone .code {
	font-family: var(--is-head); font-weight: 800; font-style: italic; font-size: clamp(7rem, 22vw, 14rem); line-height: .85;
	color: transparent; -webkit-text-stroke: 2px var(--is-accent); margin: 0;
}
.standalone h1 { margin: 10px 0 14px; }
.standalone p { color: var(--is-muted); max-width: 520px; margin: 0 auto 30px; }
.standalone form { max-width: 360px; margin: 0 auto; text-align: left; display: grid; gap: 12px; }
.standalone form input { width: 100%; padding: 10px 12px; }

@media print {
	.site-header, .site-footer, .hero, .sponsors, .pitlane, .sidebar, .goals, .garage, .results, .gallery, .lightbox { display: none !important; }
	body.site { background: #fff; color: #000; }
}
