:root {
  --bg: #0b0d10;
  --bg-panel: #14171c;
  --bg-inset: #0e1116;
  --ink: #e8e6e1;
  --ink-dim: #a8a49c;
  --chrome: #c9ccd4;
  --chrome-dark: #7a7e88;
  --blue: #16305e;
  --blue-hi: #2a56a6;
  --neon: #e0301e;
  --cream: #f2ead8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(ellipse 120% 60% at 50% -10%, #1a2030 0%, transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: 'Oswald', sans-serif;
  font-weight: 300;
  line-height: 1.6;
}

/* ---------- chrome trim ---------- */
.chrome-bar {
  height: 10px;
  background: linear-gradient(180deg,
    #f5f7fa 0%, #c9ccd4 30%, #6b6f78 50%, #3c3f46 52%, #9ea2ac 80%, #e8ebf0 100%);
  box-shadow: 0 2px 6px rgba(0,0,0,.7);
}

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); }
.header-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  padding: 1rem 1.5rem;
}

.badge {
  text-align: center;
  padding: .55rem 1.4rem .45rem;
  background: linear-gradient(180deg, #2b2f37, #14171c 60%, #1c2027);
  border: 2px solid var(--chrome-dark);
  border-radius: 12px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.25),
    inset 0 -8px 14px rgba(0,0,0,.6),
    0 4px 14px rgba(0,0,0,.6);
  position: relative;
}
.badge::before, .badge::after {
  content: "★";
  position: absolute; top: 50%; transform: translateY(-50%);
  color: var(--neon); font-size: .8rem;
  text-shadow: 0 0 6px var(--neon), 0 0 14px var(--neon);
}
.badge::before { left: .5rem; }
.badge::after { right: .5rem; }
.badge-top {
  font-family: 'Bebas Neue', sans-serif;
  font-size: .8rem; letter-spacing: .35em;
  color: var(--chrome);
}
.badge-main {
  font-family: 'Alfa Slab One', serif;
  font-size: 1.5rem; letter-spacing: .06em;
  background: linear-gradient(180deg, #fff 20%, var(--chrome) 55%, #8a8e98 75%, #dfe2e8);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.05;
}
.badge-script {
  font-family: 'Yellowtail', cursive;
  color: var(--neon);
  font-size: .95rem; margin-top: -.15rem;
  text-shadow: 0 0 8px rgba(224,48,30,.8);
}

/* ---------- tabs ---------- */
.tabs { display: flex; gap: .4rem; flex-wrap: wrap; }
.tab {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.15rem; letter-spacing: .14em;
  color: var(--ink-dim);
  text-decoration: none;
  padding: .5rem 1.15rem .35rem;
  border: 1px solid #2c313a;
  border-bottom: 3px solid #2c313a;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #191d23, #10131a);
  transition: all .15s ease;
}
.tab:hover { color: var(--cream); border-color: var(--chrome-dark); }
.tab.active {
  color: var(--cream);
  background: linear-gradient(180deg, var(--blue-hi), var(--blue));
  border-color: var(--chrome);
  border-bottom-color: var(--neon);
  text-shadow: 0 0 10px rgba(120,160,255,.5);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  text-align: center;
  padding: 4.5rem 1.5rem 3.5rem;
  overflow: hidden;
}
.starburst {
  position: absolute; left: 50%; top: 46%;
  width: 640px; height: 640px;
  transform: translate(-50%, -50%);
  background: repeating-conic-gradient(from 0deg,
    rgba(42,86,166,.14) 0deg 6deg, transparent 6deg 12deg);
  border-radius: 50%;
  pointer-events: none;
  mask-image: radial-gradient(circle, #000 0%, transparent 68%);
  -webkit-mask-image: radial-gradient(circle, #000 0%, transparent 68%);
}
.hero-title {
  font-family: 'Alfa Slab One', serif;
  font-size: clamp(2.6rem, 7vw, 5rem);
  margin: 0;
  letter-spacing: .02em;
  background: linear-gradient(180deg, #fff 15%, var(--chrome) 50%, #767a84 72%, #e8ebf0 95%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 0 rgba(0,0,0,.8)) drop-shadow(0 8px 24px rgba(0,0,0,.6));
  position: relative;
}
.hero-tagline {
  font-family: 'Yellowtail', cursive;
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  color: var(--neon);
  text-shadow: 0 0 12px rgba(224,48,30,.7), 0 0 40px rgba(224,48,30,.35);
  max-width: 700px; margin: .8rem auto 0;
  position: relative;
}
.hero-meta { margin-top: 1.2rem; display: flex; gap: 1rem; justify-content: center; align-items: center; position: relative; }
.status-pill {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: .2em; font-size: .95rem;
  color: #7dff9a;
  border: 1px solid #2f6b3d;
  background: rgba(20,60,30,.35);
  padding: .25rem .9rem .15rem; border-radius: 999px;
  text-shadow: 0 0 8px rgba(80,255,140,.6);
}
.location { color: var(--ink-dim); letter-spacing: .12em; font-size: .95rem; }

/* ---------- price / CTA ---------- */
.price-block { margin-top: 2.2rem; position: relative; }
.price-headline {
  font-family: 'Alfa Slab One', serif;
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  color: var(--cream);
  text-shadow: 0 0 18px rgba(242,234,216,.25), 0 4px 0 rgba(0,0,0,.7);
}
.price-note { color: var(--ink-dim); margin-top: .3rem; letter-spacing: .05em; }
.cta-row {
  display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap;
  margin-top: 1.4rem;
}
.cta {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem; letter-spacing: .12em;
  text-decoration: none;
  color: var(--cream);
  padding: .6rem 1.5rem .45rem;
  border-radius: 999px;
  border: 1px solid var(--chrome-dark);
  background: linear-gradient(180deg, #33383f, #17191e);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 4px 10px rgba(0,0,0,.6);
  transition: all .15s ease;
}
.cta:hover { border-color: var(--neon); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 0 16px rgba(224,48,30,.5); }
.cta.primary {
  background: linear-gradient(180deg, #f0432f, #a81608);
  border-color: #ff8a7a;
}
.cta.primary:hover { box-shadow: 0 0 24px rgba(224,48,30,.8); }

/* ---------- panels ---------- */
main { max-width: 1200px; margin: 0 auto; padding: 1rem 1.5rem 4rem; }
.panel { display: none; animation: fadein .25s ease; }
.panel.active { display: block; }
.panel-wide { margin-top: 3.5rem; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.panel-title {
  font-family: 'Alfa Slab One', serif;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  color: var(--chrome);
  border-bottom: 3px double var(--chrome-dark);
  padding-bottom: .4rem;
  margin: 0 0 .4rem;
}
.panel-intro { color: var(--ink-dim); max-width: 720px; }

.vehicle-subtitle {
  font-family: 'Bebas Neue', sans-serif;
  color: var(--neon);
  letter-spacing: .18em;
  font-size: 1.05rem;
  text-shadow: 0 0 10px rgba(224,48,30,.5);
  margin: -.2rem 0 1rem;
}
.vehicle-summary { max-width: 760px; font-size: 1.08rem; }

.spec-table {
  width: 100%; border-collapse: collapse;
  margin: 1.6rem 0;
  background: var(--bg-panel);
  border: 1px solid #2a2f38;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 6px 20px rgba(0,0,0,.5);
}
.spec-table td {
  padding: .65rem 1rem;
  border-bottom: 1px solid #22262e;
  vertical-align: top;
}
.spec-table tr:last-child td { border-bottom: none; }
.spec-table td:first-child {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: .12em;
  color: var(--chrome);
  width: 220px;
  background: rgba(255,255,255,.02);
}

.history-block, .condition-block { margin-top: 2rem; }
.section-h {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.35rem; letter-spacing: .16em;
  color: var(--cream);
  border-left: 4px solid var(--neon);
  padding-left: .7rem;
  margin: 0 0 .8rem;
}
.condition-card {
  background: var(--bg-inset);
  border: 1px solid #262b33;
  border-left: 4px solid var(--blue-hi);
  border-radius: 8px;
  padding: .9rem 1.1rem;
  margin-bottom: .8rem;
}
.condition-card h4 {
  margin: 0 0 .25rem;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: .12em;
  color: var(--chrome);
  font-size: 1.05rem;
}
.condition-card p { margin: 0; color: var(--ink); }

/* ---------- gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.gallery-item {
  position: relative;
  border: 1px solid #2c313a;
  border-radius: 10px;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--bg-panel);
  aspect-ratio: 4/3;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
  transition: transform .25s ease;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item .cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: .1em; font-size: .85rem;
  color: var(--cream);
  background: linear-gradient(0deg, rgba(0,0,0,.85), transparent);
  padding: 1.6rem .7rem .5rem;
}
.gallery-subhead {
  grid-column: 1 / -1;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem; letter-spacing: .16em;
  color: var(--neon);
  margin: 1rem 0 0;
  text-shadow: 0 0 10px rgba(224,48,30,.4);
}
.loading { color: var(--ink-dim); font-style: italic; }

/* ---------- Q&A ---------- */
.qa-list { margin-top: 1.5rem; max-width: 820px; }
.qa-item {
  background: var(--bg-panel);
  border: 1px solid #262b33;
  border-radius: 10px;
  padding: 1.1rem 1.3rem;
  margin-bottom: 1rem;
}
.qa-q {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.15rem; letter-spacing: .08em;
  color: var(--cream);
  margin: 0 0 .4rem;
}
.qa-q::before { content: "Q · "; color: var(--neon); }
.qa-a { margin: 0; color: var(--ink); }
.qa-a::before {
  content: "A · ";
  font-family: 'Bebas Neue', sans-serif;
  color: var(--blue-hi);
  letter-spacing: .08em;
}
.qa-date { font-size: .8rem; color: var(--ink-dim); letter-spacing: .1em; margin-top: .5rem; }

/* ---------- paperwork ---------- */
.paperwork-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem; margin-top: 1.5rem;
}
.paper-card {
  background: var(--bg-panel);
  border: 1px solid #2c313a;
  border-radius: 10px;
  padding: 1rem;
}
.paper-card img { width: 100%; border-radius: 6px; cursor: zoom-in; }
.paper-card h4 { font-family: 'Bebas Neue', sans-serif; letter-spacing: .1em; color: var(--chrome); margin: .7rem 0 .2rem; }
.paper-card p { margin: 0; color: var(--ink-dim); font-size: .95rem; }

/* ---------- project board ---------- */
.board { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: 1rem; margin-top: 1.5rem; }
.board-col { min-width: 260px; flex: 1; }
.board-col-title {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: .14em; font-size: 1.05rem;
  color: var(--cream);
  border-bottom: 3px solid var(--neon);
  padding-bottom: .3rem; margin-bottom: .8rem;
}
.board-card {
  background: var(--bg-panel);
  border: 1px solid #2a2f38;
  border-radius: 8px;
  padding: .8rem .95rem;
  margin-bottom: .8rem;
}
.board-card h4 {
  margin: 0 0 .3rem;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: .08em;
  color: var(--chrome);
  font-size: 1rem;
}
.board-card .type-tag {
  display: inline-block;
  font-size: .7rem; letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue-hi);
  border: 1px solid var(--blue-hi);
  border-radius: 4px;
  padding: 0 .4rem;
  margin-bottom: .4rem;
}
.board-card p { margin: .3rem 0; font-size: .92rem; white-space: pre-wrap; }
.board-card .thumbs { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .5rem; }
.board-card .thumbs img {
  width: 72px; height: 72px; object-fit: cover;
  border-radius: 6px; border: 1px solid #333;
  cursor: zoom-in;
}
.board-note { color: var(--ink-dim); font-size: .9rem; margin-top: 1rem; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.92);
  display: none;
  align-items: center; justify-content: center;
  z-index: 100;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw; max-height: 92vh;
  border: 1px solid var(--chrome-dark);
  border-radius: 8px;
  box-shadow: 0 0 60px rgba(0,0,0,.9);
}

/* ---------- footer ---------- */
.site-footer { text-align: center; margin-top: 4rem; }
.site-footer p { padding: 0 1rem; }
.site-footer a { color: var(--neon); }
.site-footer .fine { color: var(--ink-dim); font-size: .85rem; padding-bottom: 2rem; }

@media (max-width: 720px) {
  .header-inner { justify-content: center; }
  .spec-table td:first-child { width: 130px; }
}
