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

:root {
  --yellow:      #F5C400;
  --yellow-dark: #D4A900;
  --red:         #C0392B;
  --black:       #0E0E0E;
  --dark:        #161616;
  --dark-2:      #1E1E1E;
  --dark-3:      #2A2A2A;
  --white:       #F9F7F2;
  --gray:        #888;
  --light-gray:  #F2F0EB;

  --font-head: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;

  --container: 1140px;
  --radius: 4px;
  --nav-h: 64px;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

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

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

ul {
  list-style: none;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Buttons ─────────────────────────────────── */

.btn-primary {
  display: inline-block;
  background: var(--yellow);
  color: var(--black);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 2.25rem;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover {
  background: var(--yellow-dark);
  transform: translateY(-1px);
}

/* ── Section Headers ─────────────────────────── */

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
}

.section-header p {
  margin-top: 0.5rem;
  color: var(--gray);
  font-size: 1.05rem;
}

/* ── Navigation ──────────────────────────────── */

#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.75rem;
  background: rgba(14, 14, 14, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.3s;
}

.nav-brand {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
}

.nav-brand-main {
  color: var(--yellow);
}

.nav-brand-sub {
  color: var(--white);
  margin-left: 0.3em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ccc;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--yellow);
}

.nav-cta {
  background: var(--yellow);
  color: var(--black) !important;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius);
  font-weight: 600 !important;
  transition: background 0.2s !important;
}

.nav-cta:hover {
  background: var(--yellow-dark) !important;
  color: var(--black) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.25s;
}

/* ── Hero ────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 2rem) 1.5rem 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/builds/mercedes-turbo-engine-bay.png');
  background-size: cover;
  background-position: center 30%;
  filter: saturate(0.7);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(14,14,14,0.72) 0%,
    rgba(14,14,14,0.55) 50%,
    rgba(14,14,14,0.85) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.hero-eyebrow {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 1.25rem;
}

.hero-content h1 {
  font-family: var(--font-head);
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(249, 247, 242, 0.75);
  margin-bottom: 2.25rem;
  line-height: 1.7;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  font-size: 1.5rem;
  color: var(--yellow);
  opacity: 0.6;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ── Services ────────────────────────────────── */

.services {
  padding: 6rem 0;
  background: var(--dark);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.service-card {
  background: var(--dark-2);
  border: 1px solid var(--dark-3);
  border-radius: var(--radius);
  padding: 2.5rem;
  transition: border-color 0.2s;
}

.service-card:hover {
  border-color: var(--yellow);
}

.service-badge {
  width: 64px;
  height: 64px;
  margin-bottom: 1.5rem;
  border-radius: 50%;
  overflow: hidden;
}

.service-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-badge--sniper {
  background: var(--dark-3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.sniper-icon {
  font-size: 2rem;
  color: var(--yellow);
}

.service-card h3 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--yellow);
  margin-bottom: 1rem;
}

.service-intro {
  color: #bbb;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--dark-3);
  padding-bottom: 1.5rem;
}

.service-list li {
  padding: 0.4rem 0;
  padding-left: 1.25rem;
  position: relative;
  font-size: 0.92rem;
  color: #ccc;
}

.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 6px;
  height: 6px;
  background: var(--yellow);
  border-radius: 50%;
}

/* ── Engine Platform Tags ────────────────────── */

.engine-platforms {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--dark-3);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.engine-group-label {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 0.5rem;
}

.engine-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.engine-tags span {
  display: inline-block;
  background: var(--dark-3);
  border: 1px solid #3a3a3a;
  color: var(--yellow);
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 2px;
}

/* ── Service CAD image ───────────────────────── */

.service-cad {
  margin-top: 1.75rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--dark-3);
}

.service-cad img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.service-cad:hover img {
  transform: scale(1.03);
}

.service-cad figcaption {
  background: var(--dark-3);
}

/* ── RTC Callout ─────────────────────────────── */

.callout-rtc {
  background: var(--yellow);
  color: var(--black);
  padding: 5rem 0;
  text-align: center;
}

.callout-label {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 1.25rem;
}

.callout-rtc h2 {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.15;
  max-width: 820px;
  margin: 0 auto 1.5rem;
}

.callout-rtc p {
  font-size: 1rem;
  max-width: 640px;
  margin: 0 auto;
  opacity: 0.75;
  line-height: 1.7;
}

/* ── Work ────────────────────────────────────── */

.work {
  padding: 6rem 0;
  background: var(--black);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto;
  gap: 1rem;
}

.work-item {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--dark-2);
  border: 1px solid var(--dark-3);
  cursor: pointer;
  transition: border-color 0.2s;
}

.work-item:hover {
  border-color: var(--yellow);
}

.work-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: top left;
  transition: transform 0.4s ease;
}

.work-item:hover img {
  transform: scale(1.02);
}

.work-item--featured {
  grid-column: span 6;
}

.work-item--featured img {
  height: 360px;
  object-position: center;
}

.work-grid .work-item:not(.work-item--featured) {
  grid-column: span 3;
}

figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.78rem;
  color: var(--gray);
  letter-spacing: 0.03em;
  border-top: 1px solid var(--dark-3);
}

/* ── Philosophy ──────────────────────────────── */

.philosophy {
  background: var(--light-gray);
  color: var(--black);
  padding: 6rem 0;
}

.philosophy-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.philosophy-logo {
  width: 280px;
  margin: 0 auto 2.5rem;
}

blockquote {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.75;
  font-style: italic;
  color: #333;
  position: relative;
  padding: 0 1rem;
}

blockquote::before {
  content: '\201C';
  font-family: Georgia, serif;
  font-size: 5rem;
  color: var(--yellow);
  position: absolute;
  top: -1.5rem;
  left: -0.5rem;
  line-height: 1;
}

/* ── Contact ─────────────────────────────────── */

.contact {
  background: var(--dark);
  padding: 6rem 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h3 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--yellow);
  margin-bottom: 1rem;
}

.contact-info > p {
  color: #aaa;
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 2rem;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 1.25rem;
}

.contact-detail-label {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
}

.contact-detail a,
.contact-detail span:last-child {
  font-size: 0.95rem;
  color: var(--white);
}

.contact-detail a:hover {
  color: var(--yellow);
}

.contact-form-card {
  background: var(--dark-2);
  border: 1px solid var(--dark-3);
  border-radius: var(--radius);
  padding: 2.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #bbb;
  margin-bottom: 0.4rem;
}

.form-input,
.form-textarea {
  width: 100%;
  background: var(--dark-3);
  border: 1px solid #3a3a3a;
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.7rem 0.9rem;
  transition: border-color 0.2s;
  outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #555;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--yellow);
}

.form-textarea {
  min-height: 130px;
  resize: vertical;
}

.form-submit {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.form-success {
  display: none;
  background: #1a2e1a;
  border: 1px solid #2d5a2d;
  color: #7ecb7e;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  margin-top: 1rem;
}

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

/* ── Footer ──────────────────────────────────── */

footer {
  background: var(--black);
  border-top: 1px solid var(--dark-3);
  padding: 2.5rem 0;
  text-align: center;
}

.footer-brand {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 0.25rem;
}

.footer-loc {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 0.5rem;
}

.footer-copy {
  font-size: 0.75rem;
  color: #444;
  letter-spacing: 0.05em;
}

/* ── Responsive ──────────────────────────────── */

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

  .work-item--featured {
    grid-column: span 12;
  }

  .work-grid .work-item:not(.work-item--featured) {
    grid-column: span 6;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: var(--black);
    padding: 2rem 1.5rem;
    gap: 1.5rem;
    z-index: 99;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .work-grid .work-item:not(.work-item--featured) {
    grid-column: span 12;
  }

  .work-item img {
    height: 200px;
  }
}
