@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'DM Sans', sans-serif; }

/* ===== SITE SHELL ===== */
.site { background: #fefefe; color: #1a1a1a; }
.page { display: none; }
.page.active { display: block; }

/* ===== NAV ===== */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 36px; height: 54px; background: #fefefe;
  border-bottom: 1px solid #ebebeb; position: sticky; top: 0; z-index: 100;
}
.nav-logo {
  font-family: 'DM Serif Display', serif; font-size: 15px;
  color: #1a1a1a; cursor: pointer;
}
.nav-logo em { font-style: italic; color: #888; }
.nav-links { display: flex; gap: 24px; flex-wrap: wrap; }
.nav-link {
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: #bbb; cursor: pointer; background: none; border: none;
  font-family: 'DM Sans', sans-serif; font-weight: 600;
  padding-bottom: 2px; border-bottom: 1.5px solid transparent;
}
.nav-link.active, .nav-link:hover {
  color: #1a1a1a; border-bottom-color: #1a1a1a;
}

/* ===== SHARED COMPONENTS ===== */
.page-hero { display: grid; grid-template-columns: 8px 1fr; }
.hero-bar { background: #1a1a1a; }
.hero-inner { padding: 52px 48px; background: #fefefe; }

.eyebrow {
  font-size: 9px; letter-spacing: 0.45em; text-transform: uppercase;
  color: #aaa; margin-bottom: 18px; font-weight: 600; display: block;
}
.serif-title {
  font-family: 'DM Serif Display', serif; line-height: 1.0; color: #1a1a1a;
}
.serif-title em { font-style: italic; color: #888; }

.body-text {
  font-size: 13px; color: #aaa; line-height: 1.9; font-weight: 300;
}
.section-label {
  font-size: 9px; letter-spacing: 0.35em; text-transform: uppercase;
  color: #bbb; padding-bottom: 12px; border-bottom: 1px solid #ebebeb;
  margin-bottom: 18px; font-weight: 600; display: block;
}
.divider { border: none; border-top: 1px solid #ebebeb; margin: 0; }

/* Buttons */
.btn-primary {
  background: #1a1a1a; color: #fff; border: none;
  padding: 13px 30px; font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; font-family: 'DM Sans', sans-serif;
  font-weight: 600; cursor: pointer;
}
.btn-primary:hover { background: #333; }
.btn-secondary {
  background: transparent; color: #1a1a1a; border: 1.5px solid #ddd;
  padding: 12px 26px; font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; font-family: 'DM Sans', sans-serif;
  font-weight: 600; cursor: pointer; margin-left: 10px;
}

/* Progress bar */
.progress-track { height: 2px; background: #e8e8e4; overflow: hidden; }
.progress-fill { height: 100%; background: #1a1a1a; width: 51%; }
.progress-label {
  font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase;
  color: #ccc; margin-top: 6px; margin-bottom: 28px; font-weight: 500;
  display: block;
}

/* Color dots */
.cb-item {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: #999; font-weight: 500; margin-right: 24px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.dot-s { background: #b0bec5; }
.dot-b { background: #3a3a3a; border: 1px solid #888; }
.dot-r { background: #9b2020; }

/* Meta stats */
.meta-row { display: flex; gap: 32px; margin-bottom: 28px; flex-wrap: wrap; }
.meta-item { border-left: 2px solid #1a1a1a; padding-left: 14px; }
.meta-val { font-family: 'DM Serif Display', serif; font-size: 28px; color: #1a1a1a; line-height: 1; }
.meta-val.muted { color: #bbb; }
.meta-label {
  font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase;
  color: #bbb; margin-top: 3px; font-weight: 500;
}

/* ===== TIMELINE ===== */
.tl-section {
  background: #fafaf8; border-top: 1px solid #ebebeb; padding: 52px 48px;
}
.tl-horiz {
  position: relative; display: grid;
  grid-template-columns: 1fr 1fr 1fr; gap: 0;
}
.tl-horiz::before {
  content: ''; position: absolute; top: 9px;
  left: calc(16.66% + 10px); right: calc(16.66% + 10px);
  height: 1px; background: #ddd; z-index: 0;
}
.tl-item { position: relative; padding-right: 28px; z-index: 1; }
.tl-item:last-child { padding-right: 0; }
.tl-dot-wrap { margin-bottom: 20px; }
.tl-dot {
  width: 18px; height: 18px; border-radius: 50%; background: #1a1a1a;
  border: 3px solid #fafaf8; box-shadow: 0 0 0 1px #1a1a1a;
  display: inline-block;
}
.tl-head {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.12em; color: #1a1a1a; margin-bottom: 8px;
}
.tl-body { font-size: 12px; color: #aaa; line-height: 1.8; font-weight: 300; }

/* ===== FOOTER BAR ===== */
.footer-bar {
  background: #fefefe; border-top: 1px solid #ebebeb;
  padding: 16px 48px; display: flex;
  justify-content: space-between; align-items: center;
}
.fp-text {
  font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase;
  color: #ccc; font-weight: 500;
}
.fp-track { height: 1px; background: #e8e8e4; width: 160px; overflow: hidden; }
.fp-fill { height: 100%; background: #1a1a1a; width: 51%; }

/* ===== HOME PAGE ===== */
.home-hero-inner { padding: 56px 48px; }
.home-hero-inner .hero-h1 {
  font-size: clamp(36px, 5.5vw, 62px); margin-bottom: 16px;
}
.home-sub {
  font-size: 14px; color: #aaa; line-height: 1.9;
  max-width: 560px; margin-bottom: 24px; font-weight: 300;
}
.home-colors { margin-bottom: 24px; }

/* About strip */
.about-strip {
  border-top: 1px solid #ebebeb; padding: 52px 48px;
  background: #fff; display: grid;
  grid-template-columns: 1fr 1fr; gap: 56px;
}
.about-block-head {
  font-family: 'DM Serif Display', serif; font-size: 22px;
  color: #1a1a1a; margin-bottom: 12px; line-height: 1.15;
}
.about-block-head em { font-style: italic; }
.about-img-placeholder {
  background: #f0f0ec; border: 1px solid #ebebeb; height: 160px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.about-img-placeholder span {
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: #ccc; font-weight: 500;
}
.about-link {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: #1a1a1a; font-weight: 600; text-decoration: none;
  border-bottom: 1px solid #ddd;
}

/* ===== BUILD PROCESS ===== */
.build-steps { padding: 0 48px 52px; }
.build-step {
  display: grid; grid-template-columns: 48px 1fr; gap: 24px;
  padding: 36px 0; border-bottom: 1px solid #ebebeb;
}
.build-step:last-child { border-bottom: none; }
.build-step-num {
  font-family: 'DM Serif Display', serif; font-size: 36px;
  color: #e8e8e4; line-height: 1; padding-top: 2px;
}
.build-step-head {
  font-size: 13px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.12em; color: #1a1a1a; margin-bottom: 8px;
}
.build-step-body {
  font-size: 13px; color: #aaa; line-height: 1.85; font-weight: 300;
}
.build-note {
  background: #fafaf8; border: 1px solid #ebebeb;
  border-left: 3px solid #1a1a1a; padding: 16px 20px; margin-top: 12px;
}
.build-note-label {
  font-size: 9px; letter-spacing: 0.25em; text-transform: uppercase;
  color: #bbb; margin-bottom: 4px; font-weight: 600;
}
.build-note-text {
  font-size: 12px; color: #888; line-height: 1.7; font-weight: 300;
}

/* ===== EXPLORE CARS ===== */
.cars-header {
  background: #fefefe; padding: 44px 48px 0;
  border-bottom: 1px solid #ebebeb;
}
.filter-bar { display: flex; gap: 6px; padding: 14px 0 0; flex-wrap: wrap; }
.filter-btn {
  background: transparent; color: #bbb; border: 1px solid #ebebeb;
  padding: 7px 18px; font-size: 9px; letter-spacing: 0.2em;
  text-transform: uppercase; font-family: 'DM Sans', sans-serif;
  cursor: pointer; font-weight: 600;
}
.filter-btn.on { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }

.cars-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px; padding: 32px 48px;
}
.car-card {
  background: #fff; border: 1px solid #ebebeb;
  padding: 24px 20px; cursor: pointer;
  transition: border-color 0.15s;
}
.car-card:hover { border-color: #1a1a1a; }
.car-card.ghost {
  border-style: dashed; cursor: default; background: #fafaf8;
}
.car-card.ghost:hover { border-color: #ebebeb; }
.car-card.featured { border-color: #1a1a1a; }

.card-top {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 16px;
}
.card-color-row {
  display: flex; align-items: center; gap: 6px;
  font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase;
  color: #ccc; font-weight: 500;
}
.card-badge {
  font-size: 8px; letter-spacing: 0.15em; text-transform: uppercase;
  color: #888; background: #f5f5f3; padding: 3px 8px; font-weight: 600;
}
.card-num {
  font-family: 'DM Serif Display', serif; font-size: 36px;
  color: #1a1a1a; line-height: 1; margin-bottom: 8px;
}
.card-num-ghost {
  font-family: 'DM Serif Display', serif; font-size: 36px;
  color: #e4e4e0; line-height: 1; margin-bottom: 8px;
}
.card-detail { font-size: 11px; color: #bbb; margin-bottom: 4px; font-weight: 400; }
.card-cta {
  font-size: 9px; color: #1a1a1a; letter-spacing: 0.15em;
  text-transform: uppercase; font-weight: 600; margin-top: 12px;
}
.card-cta-ghost {
  font-size: 9px; color: #ccc; letter-spacing: 0.15em;
  text-transform: uppercase; font-weight: 600; margin-top: 12px;
}

.cars-cta-wrap { padding: 0 48px 48px; }
.cars-cta {
  background: #1a1a1a; padding: 22px 26px; max-width: 500px;
  display: flex; gap: 14px;
}
.cars-cta-bar {
  width: 3px; background: #444; flex-shrink: 0;
  align-self: stretch; min-height: 36px;
}
.cars-cta h4 {
  font-size: 11px; font-weight: 600; color: #fff;
  text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 5px;
}
.cars-cta p { font-size: 12px; color: #666; line-height: 1.7; font-weight: 300; }

/* ===== CAR #42 DETAIL ===== */
.car-header-grid { display: grid; grid-template-columns: 8px 1fr; }
.car-bar { background: #1a1a1a; }
.car-header-body {
  padding: 44px 48px; border-bottom: 1px solid #ebebeb; background: #fefefe;
}
.car-badge-row { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.car-badge-text {
  font-size: 9px; letter-spacing: 0.3em; text-transform: uppercase;
  color: #aaa; font-weight: 600;
}
.car-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(48px, 8vw, 76px); color: #1a1a1a;
  line-height: 0.95; margin-bottom: 16px;
}
.car-title em { font-style: italic; color: #888; }
.car-lede {
  font-size: 14px; color: #aaa; line-height: 1.9;
  max-width: 520px; font-weight: 300;
}

.callout-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 6px; padding: 24px 48px; background: #fafaf8;
  border-bottom: 1px solid #ebebeb;
}
.callout-tile {
  background: #fff; border: 1px solid #ebebeb;
  border-top: 2px solid #1a1a1a; padding: 14px 16px;
}
.callout-text { font-size: 12px; color: #777; line-height: 1.7; font-weight: 300; }

.data-wrap {
  display: grid; grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid #ebebeb;
}
.data-panel {
  background: #fefefe; padding: 28px 48px;
  border-right: 1px solid #ebebeb;
}
.data-panel:last-child { border-right: none; background: #fafaf8; }

.kv {
  display: flex; justify-content: space-between;
  margin-bottom: 11px; gap: 12px; align-items: baseline;
}
.kv-k { font-size: 11px; color: #ccc; flex-shrink: 0; }
.kv-v { font-size: 11px; color: #1a1a1a; text-align: right; font-weight: 500; }

/* Provenance timeline */
.prov-wrap {
  background: #fefefe; padding: 28px 48px;
  border-bottom: 1px solid #ebebeb;
}
.vtl { position: relative; padding-left: 22px; }
.vtl::before {
  content: ''; position: absolute; left: 3px; top: 6px; bottom: 6px;
  width: 1px; background: #ebebeb;
}
.vtl-item { position: relative; margin-bottom: 22px; }
.vtl-item:last-child { margin-bottom: 0; }
.vtl-dot {
  position: absolute; left: -22px; top: 4px;
  width: 8px; height: 8px; border-radius: 50%; background: #1a1a1a;
}
.vtl-date {
  font-size: 9px; color: #aaa; letter-spacing: 0.18em;
  text-transform: uppercase; margin-bottom: 4px; font-weight: 600;
}
.vtl-text { font-size: 12px; color: #aaa; line-height: 1.7; font-weight: 300; }

/* Photo strip */
.photo-strip {
  padding: 28px 48px; border-bottom: 1px solid #ebebeb; background: #fafaf8;
}
.photo-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px; margin-top: 16px;
}
.photo-placeholder {
  background: #ebebeb; height: 100px;
  display: flex; align-items: center; justify-content: center;
}
.photo-placeholder span {
  font-size: 9px; letter-spacing: 0.15em; text-transform: uppercase;
  color: #bbb; font-weight: 500;
}

/* Document bar */
.doc-wrap {
  background: #1a1a1a; padding: 26px 48px; display: flex; gap: 14px;
}
.doc-bar {
  width: 3px; background: #333; flex-shrink: 0;
  align-self: stretch; min-height: 36px;
}
.doc-label {
  font-size: 10px; color: #666; text-transform: uppercase;
  letter-spacing: 0.2em; margin-bottom: 5px; font-weight: 600;
}
.doc-body { font-size: 12px; color: #555; line-height: 1.8; font-weight: 300; }

/* ===== CONTACT ===== */
.contact-wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-top: 1px solid #ebebeb;
}
.contact-left {
  padding: 52px 48px; background: #fefefe;
  border-right: 1px solid #ebebeb;
}
.contact-right { padding: 52px 48px; background: #fafaf8; }

.contact-head {
  font-family: 'DM Serif Display', serif; font-size: 28px;
  color: #1a1a1a; margin-bottom: 12px; line-height: 1.2;
}
.contact-head em { font-style: italic; }
.contact-body {
  font-size: 13px; color: #aaa; line-height: 1.85;
  font-weight: 300; margin-bottom: 28px;
}

.contact-item {
  display: flex; gap: 12px; align-items: flex-start;
  margin-bottom: 20px; padding-bottom: 20px;
  border-bottom: 1px solid #ebebeb;
}
.contact-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.contact-item-icon {
  width: 32px; height: 32px; background: #1a1a1a;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 12px; color: #fff;
}
.contact-item-label {
  font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase;
  color: #bbb; font-weight: 600; margin-bottom: 3px;
}
.contact-item-val { font-size: 13px; color: #1a1a1a; font-weight: 500; }

/* Form */
.form-group { margin-bottom: 18px; }
.form-label {
  font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase;
  color: #aaa; font-weight: 600; display: block; margin-bottom: 7px;
}
.form-input {
  width: 100%; border: 1px solid #e0e0dc; padding: 11px 14px;
  font-size: 13px; font-family: 'DM Sans', sans-serif;
  background: #fff; color: #1a1a1a; outline: none;
}
.form-input:focus { border-color: #1a1a1a; }
textarea.form-input { height: 100px; resize: vertical; }
select.form-input { appearance: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .about-strip,
  .contact-wrap,
  .data-wrap { grid-template-columns: 1fr; }

  .page-hero,
  .car-header-grid { grid-template-columns: 1fr; }

  .hero-bar,
  .car-bar { display: none; }

  .tl-horiz { grid-template-columns: 1fr; }
  .tl-horiz::before { display: none; }

  .cars-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }

  .nav { padding: 0 16px; }
  .hero-inner,
  .home-hero-inner,
  .build-steps,
  .cars-header,
  .cars-grid,
  .cars-cta-wrap,
  .car-header-body,
  .callout-grid,
  .data-panel,
  .prov-wrap,
  .photo-strip,
  .doc-wrap,
  .contact-left,
  .contact-right,
  .tl-section,
  .about-strip,
  .footer-bar { padding-left: 20px; padding-right: 20px; }

  .data-panel { border-right: none; border-bottom: 1px solid #ebebeb; }
  .contact-left { border-right: none; border-bottom: 1px solid #ebebeb; }
}
