/* OB Tech Autos — white and minimal; black type, a red accent, carbon fibre for the contact band.
   One font: Archivo (a slightly wide cut for headings). No build step: edit and push. */

:root {
  --bg: #ffffff;
  --soft: #f5f5f6;
  --text: #0b0b0c;
  --muted: #5d5d66;
  --faint: #9a9aa3;
  --line: #e7e7ea;
  --red: #e4002b;
  --dark: #0b0b0c;
  --radius: 12px;
  --wrap: 1180px;
  --pad: clamp(20px, 5vw, 48px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --carbon:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .03) 0 2px, transparent 2px 6px),
    repeating-linear-gradient(-45deg, rgba(0, 0, 0, .4) 0 2px, transparent 2px 6px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.6 Archivo, system-ui, sans-serif; -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2 { margin: 0; font-stretch: 115%; font-weight: 700; letter-spacing: -.02em; line-height: 1.02; }
p { margin: 0; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--dark); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: .76rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--red); flex: none; }
.red { color: var(--red); }

/* ---- Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 26px; border-radius: 999px;
  font-weight: 600; font-size: .95rem; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s;
}
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: var(--red); }
.btn-line { border-color: #cfcfd4; }
.btn-line:hover { border-color: var(--text); }
.btn-sm { min-height: 40px; padding: 0 20px; font-size: .88rem; }

/* ---- Header */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .82); backdrop-filter: blur(14px) saturate(1.6); -webkit-backdrop-filter: blur(14px) saturate(1.6); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled { border-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; white-space: nowrap; font-weight: 700; font-stretch: 125%; letter-spacing: .14em; text-transform: uppercase; font-size: .86rem; }
.brand-car { width: 60px; height: 14px; color: var(--text); }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: .92rem; transition: color .2s; }
.nav-links a:hover { color: var(--text); }

/* ---- Hero */
.hero { padding: clamp(48px, 6vw, 84px) 0 clamp(48px, 6vw, 80px); }
.hero h1 { margin: 22px 0 22px; font-size: clamp(3rem, 8vw, 6.8rem); }
.lede { max-width: 540px; font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-car { width: 100%; margin-top: clamp(32px, 4vw, 52px); overflow: visible; }
.hero-car .body, .hero-car .window {
  fill: none; stroke: var(--text); stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.2s var(--ease) .2s forwards;
}
.hero-car .body { stroke-width: 1.3; }
.hero-car .window { stroke-width: .9; opacity: .55; animation-delay: 1.1s; animation-duration: 1.3s; }
.hero-car .swoosh { fill: var(--red); clip-path: inset(0 100% 0 0); animation: wipe 1.4s var(--ease) 1s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes wipe { to { clip-path: inset(0 0 0 0); } }

/* ---- Sections */
.section { padding: clamp(80px, 11vw, 140px) 0; border-top: 1px solid var(--line); }
.section-soft { background: var(--soft); border-top: 0; }
.section h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
.eyebrow + h2 { margin-top: 18px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.body-lg { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--muted); }
.split h2 + .body-lg { margin-top: 22px; }

.list { list-style: none; margin: 36px 0 0; padding: 0; border-top: 1px solid var(--line); }
.list li { display: flex; gap: 24px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
.list span { width: 86px; flex: none; font-weight: 700; font-stretch: 115%; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--red); }

/* past sales */
.sales { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 20px; margin-top: clamp(32px, 4vw, 48px); }
.sales figure { margin: 0; }
.sales img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); background: #ddd; transition: transform .6s var(--ease); }
.sales figure:hover img { transform: translateY(-4px); }
.sales figcaption { margin-top: 14px; font-weight: 600; font-size: 1rem; }
.sales figcaption span { color: var(--faint); font-weight: 500; margin-right: 6px; }

/* the passion */
.split-media { align-items: center; grid-template-columns: 5fr 7fr; }
.shot { margin: 0; border-radius: var(--radius); overflow: hidden; }
.shot img { width: 100%; aspect-ratio: 21 / 10; object-fit: cover; object-position: 62% 50%; }

/* contact: the carbon-fibre band */
.contact { position: relative; padding: clamp(90px, 12vw, 150px) 0; background: var(--carbon), var(--dark); color: #fff; overflow: hidden; }
.contact::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--red); }
.contact .eyebrow { color: #a9a9b2; }
.contact h2 { margin-top: 18px; font-size: clamp(2.4rem, 6vw, 4.8rem); }
.contact-sub { margin-top: 18px; color: #a9a9b2; font-size: 1.1rem; }
.contact-links { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 16px 64px; margin-top: 48px; }
.contact-links a { display: flex; flex-direction: column; gap: 6px; text-decoration: none; font-weight: 600; font-size: clamp(1.25rem, 2.4vw, 1.75rem); font-stretch: 110%; }
.contact-links a span { font-size: .74rem; font-weight: 600; font-stretch: 100%; letter-spacing: .2em; text-transform: uppercase; color: #a9a9b2; }
.contact-links a:hover { color: #ff3d5a; }

/* footer */
.footer { background: var(--dark); color: #8b8b94; border-top: 1px solid #1f1f23; padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.footer .brand { color: #fff; }
.footer .brand-car { color: #fff; }
.footer p { font-size: .85rem; }

/* ---- Gentle scroll reveals (only when JavaScript runs; the page reads fine without) */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---- Smaller screens */
@media (max-width: 900px) {
  .split, .split-media { grid-template-columns: 1fr; }
  .sales { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav .btn-sm { margin-left: auto; }
  .sales { grid-template-columns: 1fr; }
  .contact-links { grid-template-columns: 1fr; }
  .list span { width: 70px; }
  .brand { gap: 10px; font-size: .78rem; letter-spacing: .1em; }
  .brand-car { width: 48px; height: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-car .body, .hero-car .window { stroke-dashoffset: 0; }
  .hero-car .swoosh { clip-path: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
