:root {
  color-scheme: dark;
  --bg: #08090b;
  --panel: #11151a;
  --panel-2: #171d23;
  --text: #f7f7f2;
  --muted: #aab2ba;
  --line: rgba(255, 255, 255, 0.14);
  --accent: #f4c542;
  --accent-2: #e23d2f;
  --steel: #9fa8ad;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(226, 61, 47, 0.18), transparent 24rem),
    radial-gradient(circle at 86% 12%, rgba(244, 197, 66, 0.14), transparent 22rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.cursor-glow {
  position: fixed;
  inset: auto auto 0 0;
  z-index: 0;
  width: 26rem;
  height: 26rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 197, 66, 0.16), transparent 68%);
  pointer-events: none;
  transform: translate3d(-50%, -50%, 0);
  transition: opacity 200ms ease;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: rgba(8, 9, 11, 0.68);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.hero-actions,
.hero-stats,
.contact-actions,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.7rem;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.6rem;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #101010;
  font-weight: 900;
}

.nav-links {
  gap: clamp(1rem, 3vw, 2rem);
  color: var(--muted);
  font-weight: 600;
}

.nav-links a,
.text-link {
  transition: color 180ms ease;
}

.nav-links a:hover,
.text-link:hover {
  color: var(--accent);
}

.header-call,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.15rem;
  font-weight: 800;
  border: 1px solid transparent;
}

.header-call,
.button.primary {
  background: var(--accent);
  color: #101010;
  box-shadow: 0 0 36px rgba(244, 197, 66, 0.23);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line);
}

.button,
.header-call,
.service-card,
.gallery-card,
.proof-card {
  border-radius: 8px;
}

.button:hover,
.header-call:hover,
.service-card:hover,
.gallery-card:hover {
  transform: translateY(-3px);
}

.button,
.header-call,
.service-card,
.gallery-card {
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: 8rem clamp(1rem, 5vw, 5rem) 4rem;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(8, 9, 11, 0.97) 0%, rgba(8, 9, 11, 0.74) 42%, rgba(8, 9, 11, 0.16) 100%);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero-media img {
  height: 100%;
  object-fit: cover;
  object-position: 52% center;
  filter: saturate(1.1) contrast(1.08);
  transform: scale(1.03);
  animation: slow-zoom 12s ease-in-out infinite alternate;
}

.headlight-beam {
  position: absolute;
  right: -12vw;
  bottom: 9vh;
  width: 60vw;
  height: 23vw;
  background: linear-gradient(90deg, transparent, rgba(244, 197, 66, 0.28), rgba(255, 255, 255, 0.12), transparent);
  transform: rotate(-9deg);
  mix-blend-mode: screen;
  animation: beam 4.5s ease-in-out infinite;
}

.scan-line {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0 42%, rgba(255, 255, 255, 0.28) 48%, transparent 55% 100%);
  opacity: 0.5;
  transform: translateX(-120%);
  animation: shine 5.8s ease-in-out infinite;
}

.hero-content {
  max-width: 58rem;
  position: relative;
  z-index: 2;
}

.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.4rem;
  padding: 0.5rem 0.95rem 0.5rem 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(244, 197, 66, 0.45);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.cert-seal {
  display: grid;
  place-items: center;
  width: 2rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #101010;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 0 18px rgba(244, 197, 66, 0.35);
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
  line-height: 0.96;
}

h1 {
  max-width: 11ch;
  margin-bottom: 1.2rem;
  font-size: clamp(4rem, 12vw, 9.2rem);
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.4rem, 6vw, 5.4rem);
}

h3 {
  margin-bottom: 0.7rem;
  font-size: 1.3rem;
}

.hero-copy,
.intro-copy p,
.feature-copy p,
.proof-copy p,
.contact p {
  max-width: 42rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.24rem);
  line-height: 1.7;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 2rem 0;
}

.hero-stats {
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-stats span {
  min-width: 10rem;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted);
  backdrop-filter: blur(10px);
}

.hero-stats strong {
  display: block;
  color: var(--text);
}

.section-pad {
  position: relative;
  z-index: 2;
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 5vw, 5rem);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 32rem);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.service-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.service-strip span {
  padding: 1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  font-weight: 800;
}

.feature-panel,
.proof {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.feature-image,
.proof-card {
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.feature-image::after,
.gallery-card::after,
.proof-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(244, 197, 66, 0.2), transparent 34%, rgba(226, 61, 47, 0.13));
  pointer-events: none;
}

.feature-image img {
  aspect-ratio: 16 / 10;
  height: 100%;
  object-fit: cover;
}

.video-band {
  background: #0c0f12;
}

.video-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.video-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 1px solid rgba(244, 197, 66, 0.34);
  pointer-events: none;
}

.video-frame video {
  display: block;
  width: 100%;
  max-height: 78vh;
  background: #050607;
  object-fit: cover;
}

.text-link {
  display: inline-flex;
  color: var(--accent);
  font-weight: 900;
}

.section-heading {
  max-width: 54rem;
  margin-bottom: 2rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.service-card {
  min-height: 15rem;
  padding: 1.25rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--line);
}

.service-card span {
  display: inline-flex;
  margin-bottom: 2.8rem;
  color: var(--accent);
  font-weight: 900;
}

.service-card p {
  color: var(--muted);
  line-height: 1.55;
}

.gallery {
  display: grid;
  grid-template-columns: 1.3fr 0.85fr 0.85fr;
  gap: 1rem;
}

.gallery-card {
  position: relative;
  min-height: 28rem;
  overflow: hidden;
  background: var(--panel);
}

.gallery-card.large {
  min-height: 36rem;
}

.gallery-card img {
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.gallery-card:hover img {
  transform: scale(1.05);
}

.gallery-card figcaption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  padding: 0.85rem 1rem;
  background: rgba(8, 9, 11, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  font-weight: 800;
}

.proof {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.04), transparent);
}

.proof-card img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.contact {
  position: relative;
  padding: clamp(4rem, 9vw, 8rem) clamp(1rem, 5vw, 5rem);
  overflow: hidden;
}

.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(8, 9, 11, 0.82), rgba(8, 9, 11, 0.9)),
    url("assets/engine-bay.jpeg") center / cover;
  transform: scale(1.04);
}

.contact-inner {
  position: relative;
  max-width: 55rem;
}

.contact-actions {
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.site-footer {
  position: relative;
  z-index: 2;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem clamp(1rem, 5vw, 5rem);
  background: #050607;
  color: var(--muted);
}

.site-footer a {
  color: var(--accent);
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes slow-zoom {
  from {
    transform: scale(1.03);
  }

  to {
    transform: scale(1.09);
  }
}

@keyframes shine {
  0%,
  58% {
    transform: translateX(-120%);
  }

  78%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes beam {
  0%,
  100% {
    opacity: 0.52;
  }

  50% {
    opacity: 0.95;
  }
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .intro,
  .feature-panel,
  .proof {
    grid-template-columns: 1fr;
  }

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

  .gallery {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 0.75rem;
  }

  .brand span:last-child {
    max-width: 9rem;
    line-height: 1.1;
  }

  .header-call {
    min-height: 2.7rem;
    padding: 0.75rem 0.9rem;
  }

  .hero {
    min-height: 92svh;
    padding: 7rem 1rem 2rem;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(8, 9, 11, 0.58) 0%, rgba(8, 9, 11, 0.94) 56%, #08090b 100%);
  }

  h1 {
    font-size: clamp(3.35rem, 18vw, 5.8rem);
  }

  .hero-stats span,
  .button {
    width: 100%;
  }

  .service-strip,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 12rem;
  }

  .gallery-card,
  .gallery-card.large {
    min-height: 25rem;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
