/* Racer Engineering — multi-page static site
   Dark industrial TIG / sparks aesthetic */

:root {
  --bg: #050608;
  --bg-elevated: #0c0e12;
  --bg-card: #10131a;
  --bg-alt: #080a0e;
  --charcoal: #161a22;
  --steel: #1e2430;
  --border: #252b38;
  --border-strong: #353d4f;
  --text: #e8ecf2;
  --text-muted: #9aa3b5;
  --text-dim: #6b7385;
  --arc: #3b9eff;
  --arc-bright: #7ec8ff;
  --arc-hot: #e8f4ff;
  --arc-glow: rgba(59, 158, 255, 0.45);
  --spark: #ff6b1a;
  --spark-bright: #ff9a3c;
  --molten: #ff4500;
  --amber: #ff7a18;
  --amber-bright: #ffb347;
  --focus: #7ec8ff;
  --header-h: 4.25rem;
  --radius: 4px;
  --font-display: "Bebas Neue", Impact, Haettenschweiler, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --shadow: 0 14px 44px rgba(0, 0, 0, 0.55);
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(59, 158, 255, 0.06), transparent 50%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
  image-orientation: none;
}

a {
  color: var(--arc-bright);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--arc-hot);
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1.02;
  margin: 0 0 0.5rem;
  color: #f4f7fb;
  text-shadow: 0 0 40px rgba(59, 158, 255, 0.12);
}

h1 { font-size: clamp(2.85rem, 8.5vw, 5rem); }
h2 { font-size: clamp(2.25rem, 5vw, 3.35rem); }
h3 { font-size: clamp(1.5rem, 3vw, 1.9rem); letter-spacing: 0.07em; }

p { margin: 0 0 1rem; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--arc);
  color: #050608;
  padding: 0.5rem 1rem;
  font-weight: 600;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 6, 8, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  min-height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.logo:hover { color: inherit; }

.logo-img {
  flex-shrink: 0;
  width: 3.25rem;
  height: 3.25rem;
  object-fit: cover;
  border-radius: 4px;
  background: #000;
  box-shadow: 0 0 18px rgba(255, 32, 32, 0.4);
}



.logo-mark {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: #050608;
  background: linear-gradient(135deg, var(--arc-bright), var(--arc) 45%, var(--spark));
  border-radius: 3px;
  box-shadow: 0 0 18px var(--arc-glow);
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.logo-text strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.domain-badge {
  font-size: 0.68rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.15rem;
  height: 2px;
  margin-inline: auto;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.site-nav a {
  display: block;
  padding: 0.55rem 0.85rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(59, 158, 255, 0.08);
}

.site-nav a.nav-cta {
  color: #050608;
  background: linear-gradient(135deg, var(--spark-bright), var(--spark));
  font-weight: 600;
  margin-left: 0.35rem;
}

.site-nav a.nav-cta:hover {
  color: #050608;
  filter: brightness(1.08);
}

.weld-line {
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--arc) 20%,
    var(--arc-hot) 40%,
    var(--spark) 55%,
    var(--molten) 70%,
    transparent 100%
  );
  opacity: 0.85;
  box-shadow: 0 0 12px var(--arc-glow), 0 0 8px rgba(255, 107, 26, 0.35);
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(8, 10, 14, 0.98);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.28s ease, opacity 0.2s ease;
  }

  .site-nav.is-open {
    max-height: 24rem;
    opacity: 1;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1.25rem;
    gap: 0.25rem;
  }

  .site-nav a.nav-cta {
    margin-left: 0;
    text-align: center;
  }
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.45rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: filter 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  color: #050608;
  background: linear-gradient(135deg, var(--spark-bright), var(--spark) 60%, var(--molten));
  box-shadow: 0 0 24px rgba(255, 107, 26, 0.35);
}

.btn-primary:hover {
  color: #050608;
  filter: brightness(1.08);
}

.btn-ghost {
  color: var(--text);
  background: transparent;
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  color: var(--arc-hot);
  border-color: var(--arc);
  background: rgba(59, 158, 255, 0.08);
}

.btn-arc {
  color: #050608;
  background: linear-gradient(135deg, var(--arc-bright), var(--arc));
  box-shadow: 0 0 20px var(--arc-glow);
}

.btn-arc:hover {
  color: #050608;
  filter: brightness(1.08);
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: clamp(28rem, 78vh, 42rem);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(105deg, rgba(5, 6, 8, 0.94) 0%, rgba(5, 6, 8, 0.72) 42%, rgba(5, 6, 8, 0.35) 100%),
    linear-gradient(to top, rgba(5, 6, 8, 0.95) 0%, transparent 45%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(59, 158, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 158, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black 20%, transparent 85%);
  pointer-events: none;
}

.hero-arc-glow {
  position: absolute;
  right: -10%;
  bottom: 10%;
  width: 50%;
  height: 50%;
  z-index: -1;
  background: radial-gradient(circle, rgba(59, 158, 255, 0.18), transparent 65%);
  pointer-events: none;
}

/* Site-wide logo watermark */
.site-watermark {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.site-watermark img {
  width: min(110vmin, 1100px);
  height: auto;
  opacity: 0.14;
  filter: saturate(1.15) contrast(1.05);
  mix-blend-mode: screen;
  transform: rotate(-6deg);
  user-select: none;
}

/* Grinding-wheel sparks — full page */
.site-sparks,
.spark-field {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.spark {
  position: absolute;
  width: var(--sw, 2px);
  height: var(--sh, 14px);
  border-radius: 1px;
  background: linear-gradient(
    to bottom,
    #fff6d0 0%,
    var(--spark-bright) 35%,
    var(--spark) 70%,
    transparent 100%
  );
  box-shadow:
    0 0 6px var(--spark-bright),
    0 0 12px rgba(255, 107, 26, 0.55);
  opacity: 0;
  transform-origin: center top;
  animation: grind-spark var(--dur, 0.85s) cubic-bezier(0.15, 0.7, 0.35, 1) var(--delay, 0s) forwards;
  will-change: transform, opacity;
}

@keyframes grind-spark {
  0% {
    opacity: 0;
    transform: translate(0, 0) rotate(var(--rot, 0deg)) scaleY(0.4);
  }
  8% { opacity: 1; }
  55% { opacity: 0.95; }
  100% {
    opacity: 0;
    transform: translate(var(--tx, 40px), var(--ty, -120px)) rotate(var(--rot, 0deg)) scaleY(0.15);
  }
}

/* Content sits above watermark + sparks */
.site-header,
main,
.site-footer,
.lightbox {
  position: relative;
  z-index: 2;
}

.site-header {
  z-index: 40;
}

.hero-content {
  position: relative;
  padding: 4rem 0 3.5rem;
  max-width: 40rem;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--arc-bright);
}

.lede {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 2rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 32rem;
}

.hero-stats li {
  padding: 0.75rem 0.85rem;
  background: rgba(16, 19, 26, 0.75);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 2px solid var(--arc);
}

.hero-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  font-weight: 400;
  margin-bottom: 0.15rem;
}

.hero-stats span {
  font-size: 0.78rem;
  color: var(--text-dim);
}

@media (max-width: 560px) {
  .hero-stats { grid-template-columns: 1fr; }
}

/* ——— Sections ——— */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}

.section-head {
  margin-bottom: 2.25rem;
  max-width: 40rem;
}

.section-sub {
  color: var(--text-muted);
  margin: 0;
  font-size: 1.05rem;
}

/* ——— Division cards (home) ——— */
.division-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .division-grid { grid-template-columns: 1fr; }
}

.division-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.division-card:hover {
  border-color: var(--arc);
  transform: translateY(-3px);
}

.division-card .card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--steel);
}

.division-card .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.division-card:hover .card-media img {
  transform: scale(1.04);
}

.division-card .card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.35rem 1.4rem 1.5rem;
  gap: 0.5rem;
}

.division-card .card-body p {
  color: var(--text-muted);
  flex: 1;
  margin: 0;
}

.division-card .card-link {
  margin-top: 1rem;
  align-self: flex-start;
}

.pill {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--arc-bright);
  background: rgba(59, 158, 255, 0.1);
  border: 1px solid rgba(59, 158, 255, 0.25);
  border-radius: 999px;
  margin-bottom: 0.35rem;
}

.pill-spark {
  color: var(--spark-bright);
  background: rgba(255, 107, 26, 0.12);
  border-color: rgba(255, 107, 26, 0.3);
}

/* ——— Build / vehicle cards ——— */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .card-grid { grid-template-columns: 1fr; }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--steel);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 1.25rem 1.35rem 1.4rem;
}

.card-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.tag-list li {
  padding: 0.25rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--charcoal);
}

/* ——— Process steps ——— */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 900px) {
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .process-grid { grid-template-columns: 1fr; }
}

.process-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.process-step .step-media {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--steel);
}

.process-step .step-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.process-step .step-body {
  padding: 1rem 1.1rem 1.2rem;
}

.process-step .step-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  color: var(--spark);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.process-step h3 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.process-step p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ——— Gallery ——— */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}

.gallery-item {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--steel);
  cursor: zoom-in;
  padding: 0;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.05);
  filter: brightness(1.08);
}

.gallery-item:focus-visible {
  outline: 2px solid var(--arc);
  outline-offset: 2px;
}

/* ——— Contact ——— */
.contact-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 720px) {
  .contact-block { grid-template-columns: 1fr; }
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.contact-card h3 {
  margin-bottom: 1rem;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.contact-list .label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.contact-list a,
.contact-list span.value {
  font-size: 1.1rem;
  color: var(--text);
  font-weight: 500;
}

.contact-list a:hover {
  color: var(--arc-bright);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.contact-form input,
.contact-form textarea {
  padding: 0.7rem 0.85rem;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--arc);
  box-shadow: 0 0 0 3px rgba(59, 158, 255, 0.2);
}

.contact-form textarea {
  min-height: 7rem;
  resize: vertical;
}

.form-note {
  margin: 0;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--arc-bright);
  background: rgba(59, 158, 255, 0.1);
  border: 1px solid rgba(59, 158, 255, 0.25);
  border-radius: var(--radius);
}

.form-note[hidden] {
  display: none;
}

.cta-banner {
  position: relative;
  padding: 3rem 0;
  overflow: hidden;
  border-block: 1px solid var(--border);
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255, 107, 26, 0.12), transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(59, 158, 255, 0.1), transparent 50%),
    var(--bg-elevated);
}

.cta-banner .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-banner h2 {
  margin-bottom: 0.35rem;
}

.cta-banner p {
  margin: 0;
  color: var(--text-muted);
  max-width: 28rem;
}

/* ——— About blurb ——— */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; }
}

.split-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  background: var(--steel);
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-copy p {
  color: var(--text-muted);
}

/* ——— Footer ——— */
.site-footer {
  padding: 2.5rem 0 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
}

.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  font-weight: 400;
  margin-bottom: 0.35rem;
}

.footer-brand p {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin: 0;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  font-weight: 400;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.footer-col a,
.footer-col span {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.footer-col a:hover {
  color: var(--arc-bright);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ——— Lightbox (critical) ——— */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.94);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 3.5rem 4rem;
}

.lightbox-img {
  max-width: 96vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.8);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: rgba(16, 19, 26, 0.85);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(59, 158, 255, 0.2);
  border-color: var(--arc);
  color: var(--arc-hot);
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
  font-size: 1.6rem;
}

.lightbox-prev {
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-caption {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(90vw, 40rem);
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: rgba(5, 6, 8, 0.75);
  border-radius: var(--radius);
  text-align: center;
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .lightbox-inner {
    padding: 3rem 0.5rem;
  }
  .lightbox-prev { left: 0.25rem; }
  .lightbox-next { right: 0.25rem; }
}

/* ——— Misc ——— */
.page-hero-compact {
  min-height: clamp(22rem, 55vh, 32rem);
}

.feature-list {
  margin: 1rem 0 0;
  padding: 0;
}

.feature-list li {
  position: relative;
  padding-left: 1.15rem;
  margin-bottom: 0.55rem;
  color: var(--text-muted);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--spark);
  border-radius: 1px;
  box-shadow: 0 0 8px rgba(255, 107, 26, 0.5);
}

/* ——— Vehicle feature blocks (Offroad Trophy Truck / Class 10) ——— */
.vehicle-block {
  padding: 4.5rem 0;
}

.vehicle-block + .vehicle-block {
  border-top: 1px solid var(--border);
}

.vehicle-block.alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}

.vehicle-feature {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
}

.vehicle-feature.reverse {
  grid-template-columns: 1fr 1.15fr;
}

.vehicle-feature.reverse .vehicle-copy {
  order: 2;
}

.vehicle-feature.reverse .vehicle-media {
  order: 1;
}

@media (max-width: 800px) {
  .vehicle-feature,
  .vehicle-feature.reverse {
    grid-template-columns: 1fr;
  }
  .vehicle-feature.reverse .vehicle-copy,
  .vehicle-feature.reverse .vehicle-media {
    order: unset;
  }
}

.vehicle-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--steel);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
  max-height: 34rem;
}

.vehicle-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vehicle-copy .eyebrow {
  margin-bottom: 0.5rem;
}

.vehicle-copy h2 {
  margin-bottom: 0.75rem;
}

.vehicle-copy p {
  color: var(--text-muted);
}

.gallery-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 720px) {
  .gallery-grid-3 {
    grid-template-columns: 1fr;
  }
}

.shop-detail-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 36rem;
}

@media (max-width: 560px) {
  .shop-detail-strip {
    grid-template-columns: 1fr;
  }
}

.shop-detail-strip .gallery-item {
  aspect-ratio: 16 / 10;
}

/* ——— CAD / media placeholders ——— */
.media-placeholder {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.5rem;
  min-height: 12rem;
  padding: 1.5rem 1.6rem;
  background:
    linear-gradient(135deg, rgba(59, 158, 255, 0.08), rgba(255, 107, 26, 0.06)),
    var(--bg-card);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
}

.media-placeholder .placeholder-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--spark-bright);
}

.media-placeholder p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 28rem;
}

.cad-topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .cad-topic-grid {
    grid-template-columns: 1fr;
  }
}

.cad-topic {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.cad-topic .card-media {
  aspect-ratio: 16 / 10;
}

.cad-topic .card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.5rem;
}

.cad-topic .card-body p {
  flex: 1;
  margin: 0;
}

.division-grid-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 1100px) {
  .division-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .division-grid-4 {
    grid-template-columns: 1fr;
  }
}

.hero-stats-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 36rem;
}

@media (min-width: 700px) {
  .hero-stats-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 44rem;
  }
}

.footer-logo {
  width: 4rem;
  height: 4rem;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0.75rem;
  box-shadow: 0 0 20px rgba(255, 32, 32, 0.35);
}


/* ——— Truggy Classified podium ——— */
.podium-section {
  padding: 4.5rem 0 5rem;
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%, rgba(120, 80, 180, 0.12), transparent 65%),
    linear-gradient(180deg, rgba(5, 6, 8, 0.2), rgba(5, 6, 8, 0.85));
}

.podium {
  position: relative;
  max-width: 52rem;
  margin-inline: auto;
  text-align: center;
  padding: 2.5rem 1.5rem 2rem;
  border: 1px solid rgba(180, 140, 255, 0.18);
  border-radius: 12px;
  background: linear-gradient(165deg, rgba(18, 14, 28, 0.92), rgba(8, 8, 12, 0.95));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 30px 80px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.podium-glow {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 70%;
  height: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(160, 120, 255, 0.22), transparent 70%);
  pointer-events: none;
  filter: blur(8px);
}

.podium-head {
  position: relative;
  margin-bottom: 1.75rem;
}

.podium-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4rem);
  letter-spacing: 0.12em;
  margin: 0.25rem 0 0.5rem;
  text-shadow: 0 0 28px rgba(180, 120, 255, 0.35);
}

.podium-tagline {
  margin: 0 auto;
  max-width: 28rem;
  color: var(--text-muted);
  font-size: 1.02rem;
}

.podium-stage {
  position: relative;
  margin: 0 auto 1.5rem;
  max-width: 40rem;
}

.podium-plinth {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -0.35rem;
  height: 1.1rem;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.18), transparent 70%);
  filter: blur(2px);
  z-index: 0;
}

.podium-shot {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  border-radius: 8px;
  overflow: hidden;
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.65),
    0 0 40px rgba(140, 100, 255, 0.15);
}

.podium-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 55%;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.podium-shot:hover img,
.podium-shot:focus-visible img {
  transform: scale(1.03);
  filter: brightness(1.06);
}

.podium-stamp {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.35rem 0.7rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  color: #f0e6ff;
  background: rgba(40, 20, 70, 0.72);
  border: 1px solid rgba(200, 160, 255, 0.45);
  border-radius: 3px;
  transform: rotate(3deg);
  box-shadow: 0 0 16px rgba(160, 100, 255, 0.35);
}

.podium-note {
  position: relative;
  margin: 0 auto 1.5rem;
  max-width: 30rem;
  color: var(--text-dim);
  font-size: 0.95rem;
  font-style: italic;
}

.podium-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

@media (max-width: 640px) {
  .podium {
    padding: 1.75rem 1rem 1.5rem;
  }
  .podium-stamp {
    font-size: 0.8rem;
    top: 0.65rem;
    right: 0.65rem;
  }
}


.gallery-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 640px) {
  .gallery-grid-2 {
    grid-template-columns: 1fr;
  }
}


/* ——— Division switcher (top + bottom) ——— */
.division-switcher {
  position: relative;
  z-index: 3;
  background: linear-gradient(180deg, rgba(10, 12, 16, 0.98), rgba(8, 9, 12, 0.95));
  border-block: 1px solid rgba(59, 158, 255, 0.18);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.division-switcher-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  padding: 0.85rem 0;
}

.division-switch {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  min-height: 4.5rem;
  padding: 0.85rem 1rem;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.division-switch:hover,
.division-switch:focus-visible {
  border-color: rgba(59, 158, 255, 0.55);
  background: rgba(59, 158, 255, 0.1);
  box-shadow: 0 0 24px rgba(59, 158, 255, 0.2);
  transform: translateY(-1px);
  color: inherit;
}

.division-switch[aria-current="page"] {
  border-color: rgba(255, 107, 26, 0.65);
  background: linear-gradient(145deg, rgba(255, 107, 26, 0.16), rgba(59, 158, 255, 0.08));
  box-shadow: 0 0 28px rgba(255, 107, 26, 0.22);
}

.division-switch strong {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  letter-spacing: 0.08em;
  font-weight: 400;
  line-height: 1.1;
}

.division-switch span {
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.25;
}

a.division-card-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

a.division-card-link:hover,
a.division-card-link:focus-visible {
  color: inherit;
}

a.division-card-link .card-link {
  pointer-events: none;
}

@media (max-width: 900px) {
  .division-switcher-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .division-switch {
    min-height: 4.25rem;
  }
}

@media (max-width: 480px) {
  .division-switcher-inner {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .division-switch {
    min-height: 3.75rem;
    padding: 1rem 1.1rem;
  }
}


/* Front-page logo hero */
.hero-front-logo {
  min-height: min(92vh, 860px);
  align-items: center;
}

.hero-front-logo .hero-bg-logo {
  object-fit: cover;
  object-position: center;
  filter: blur(18px) saturate(1.2) brightness(0.35);
  transform: scale(1.12);
}

.hero-overlay-logo {
  background:
    radial-gradient(ellipse 55% 60% at 50% 42%, rgba(5, 6, 8, 0.15), rgba(5, 6, 8, 0.88) 70%),
    linear-gradient(to top, rgba(5, 6, 8, 0.95) 0%, transparent 50%) !important;
}

.hero-content-logo {
  max-width: 44rem;
  margin-inline: auto;
  text-align: center;
  align-items: center;
  display: flex;
  flex-direction: column;
  padding-top: 2.5rem;
  padding-bottom: 3rem;
}

.front-logo {
  width: min(72vw, 420px);
  height: auto;
  margin: 0 auto 1.25rem;
  border-radius: 12px;
  box-shadow:
    0 0 60px rgba(255, 40, 40, 0.35),
    0 24px 60px rgba(0, 0, 0, 0.65);
}

.hero-content-logo .lede {
  margin-inline: auto;
}

.hero-content-logo .hero-actions {
  justify-content: center;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ——— Racer X water wakes (visible overlay, like sparks) ——— */
.page-racer-x {
  --spark: #5ec8ff;
  --spark-bright: #b8ecff;
}

.page-racer-x .weld-line {
  background: linear-gradient(90deg, transparent, #4db8ff 20%, #9adfff 50%, #4db8ff 80%, transparent) !important;
  box-shadow: 0 0 12px rgba(90, 200, 255, 0.45);
}



/* ——— Brenthel-style blank build sheets ——— */
.build-sheet {
  margin-top: 1.35rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(120, 160, 200, 0.22);
  border-radius: 10px;
  background: rgba(8, 14, 22, 0.55);
}

.build-sheet-label {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(160, 190, 220, 0.75);
}

.build-sheet-grid {
  margin: 0;
  display: grid;
  gap: 0.45rem;
}

.build-sheet-row {
  display: grid;
  grid-template-columns: minmax(9rem, 1.2fr) 1fr;
  gap: 0.75rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  align-items: baseline;
}

.build-sheet-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.build-sheet-row dt {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(220, 230, 240, 0.92);
}

.build-sheet-row dd {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(140, 160, 180, 0.85);
  font-style: italic;
}

.build-sheet-podium {
  margin: 1.5rem auto 0;
  max-width: 36rem;
  text-align: left;
}

@media (max-width: 560px) {
  .build-sheet-row {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

/* Racer X boat gallery: larger tiles */
.gallery-grid[data-gallery="racerx"] {
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.gallery-grid[data-gallery="racerx"] .gallery-item {
  aspect-ratio: 16 / 10;
}
@media (max-width: 640px) {
  .gallery-grid[data-gallery="racerx"] {
    grid-template-columns: 1fr;
  }
}
