@font-face {
  font-family: "Big Shoulders Display";
  src: url("/fonts/big-shoulders-display.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("/fonts/barlow-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("/fonts/barlow-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("/fonts/barlow-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/fonts/barlow-condensed-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/fonts/barlow-condensed-800.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/fonts/barlow-condensed-800-italic.woff2") format("woff2");
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/fonts/barlow-condensed-900-italic.woff2") format("woff2");
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --asphalt: #0f1012;
  --surface: #17181b;
  --line: #26282d;
  --text: #f2f1ee;
  --soft: #c9c7c1;
  --muted: #9ea2aa;
  --orange: #ff5a1f;
  --orange-hover: #ff7a47;
  --paper: #f2f1ee;
  --ink: #0f1012;
  --ink-muted: #55534e;
  --orange-on-paper: #c23a0b;

  --font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-condensed: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1rem, 0.4rem + 2.6vw, 2.5rem);
  --section-space: clamp(4.5rem, 3rem + 5vw, 7.5rem);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--asphalt);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-x: hidden;
}

img,
video {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}

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

a {
  color: var(--orange);
  text-underline-offset: 0.18em;
}
a:hover {
  color: var(--orange-hover);
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 20;
  padding: 0.6rem 1rem;
  background: var(--text);
  color: var(--ink);
  font-weight: 700;
}
.skip-link:focus {
  top: 1rem;
}

.container {
  width: 100%;
  max-width: 82rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Shared type pieces taken from the pit-lane direction. */
.eyebrow {
  font-family: var(--font-condensed);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}

.rule {
  height: 3px;
  width: min(100%, 26rem);
  background: var(--orange);
}
.rule-wide {
  width: min(100%, 48rem);
}

.title-plain {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(2.4rem, 1.4rem + 4vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.title-loud {
  font-family: var(--font-condensed);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(2.8rem, 1.6rem + 5vw, 5.5rem);
  line-height: 0.92;
  text-transform: uppercase;
}

.section {
  padding-block: var(--section-space);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: clamp(2rem, 1.4rem + 2vw, 3rem);
}
.section-note {
  max-width: 38rem;
  color: var(--soft);
  font-size: 1.125rem;
  line-height: 1.55;
}

.button {
  display: inline-block;
  padding: 0.9rem 1.6rem;
  background: var(--orange);
  color: var(--ink);
  font-family: var(--font-condensed);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}
.button:hover {
  background: var(--orange-hover);
  color: var(--ink);
}

/* Hero: a muted loop of the car under a shade that darkens toward the text. */
.hero {
  position: relative;
  min-height: min(100svh, 62rem);
  display: flex;
  flex-direction: column;
  background: var(--asphalt) url("/media/hero-poster.jpg") center / cover no-repeat;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 16, 18, 0.72) 0%, rgba(15, 16, 18, 0.08) 30%, rgba(15, 16, 18, 0.3) 58%, var(--asphalt) 100%);
}

.topnav {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 82rem;
  margin-inline: auto;
  padding: 1.25rem var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}
.wordmark:hover {
  color: var(--text);
}
.topnav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
}
.topnav-links a {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--soft);
  text-decoration: none;
}
.topnav-links a:hover {
  color: var(--text);
}
.topnav-links .nav-cta {
  background: var(--orange);
  color: var(--ink);
  padding: 0.45rem 0.9rem;
}
.topnav-links .nav-cta:hover {
  background: var(--orange-hover);
  color: var(--ink);
}

.hero-inner {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding-bottom: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(4.4rem, 1.5rem + 12vw, 12.5rem);
  line-height: 0.8;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}
.meta-line,
.meta-link {
  font-family: var(--font-condensed);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.meta-line {
  color: var(--soft);
}
.meta-link {
  color: var(--text);
  text-decoration: none;
}
.meta-link::after {
  content: " ↓";
  color: var(--orange);
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  padding-top: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.4rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.stat-value {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.8rem, 2rem + 2.5vw, 4rem);
  line-height: 0.9;
  color: var(--orange);
}
.stat-label {
  font-family: var(--font-condensed);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Build sheet: markers on the photo match the numbered list. */
.build-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}
figure {
  margin: 0;
}
figcaption {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.build-photo,
.logo-map {
  position: relative;
}
.build-photo img,
.logo-map img {
  width: 100%;
  border: 1px solid var(--line);
}
.marker {
  position: absolute;
  width: clamp(1.9rem, 1.4rem + 1.4vw, 2.6rem);
  height: clamp(1.9rem, 1.4rem + 1.4vw, 2.6rem);
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 3px solid var(--text);
  background: var(--orange);
  color: var(--ink);
  font-family: var(--font-condensed);
  font-weight: 800;
  font-size: clamp(0.8rem, 0.65rem + 0.4vw, 1rem);
  transform: translate(-50%, -50%);
}
.marker-1 { left: 25%; top: 53%; }
.marker-2 { left: 36%; top: 44%; }
.marker-3 { left: 48%; top: 36%; }
.marker-4 { left: 64%; top: 39%; }
.marker-5 { left: 52%; top: 61%; }

.build-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--line);
}
.build-list li {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  column-gap: 0.9rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}
.build-num {
  grid-row: span 2;
  font-family: var(--font-condensed);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--orange);
}
.build-list h3 {
  font-family: var(--font-condensed);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.build-list p {
  color: var(--soft);
}

/* Watch */
.watch {
  background: var(--surface);
  border-block: 1px solid var(--line);
}
.watch-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--asphalt);
  border: 1px solid var(--line);
}

/* Photos */
.photos {
  display: grid;
  gap: 0.4rem;
}
.photos img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.photos figcaption {
  padding-inline: var(--gutter);
}

/* Story */
.story-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
.prose {
  max-width: 40rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: var(--soft);
  font-size: 1.125rem;
  line-height: 1.6;
}
.timeline {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 1rem;
  border-top: 2px solid var(--line);
}
.timeline li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-top: 1rem;
  border-top: 3px solid transparent;
  margin-top: -2px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.4;
}
.timeline li:first-child {
  border-top-color: var(--orange);
}
.timeline-year {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.1rem;
  line-height: 1;
  color: var(--text);
}
.story-photo {
  width: min(100%, 26rem);
  aspect-ratio: 1;
  object-fit: cover;
  justify-self: center;
}

/* Names on the car: a light band so the parts list reads as its own block. */
.names {
  background: var(--paper);
  color: var(--ink);
}
.names .eyebrow {
  color: var(--orange-on-paper);
}
.names .section-note {
  color: var(--ink-muted);
}
.section-head-split {
  gap: 1rem;
}
.names-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}
.names-grid li {
  position: relative;
  overflow: hidden;
  min-height: 6.5rem;
  padding: 1.5rem 1.5rem 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.3rem;
  background: var(--surface);
  color: var(--text);
}
.names-grid .name {
  position: relative;
  padding-right: 3.5rem;
  overflow-wrap: anywhere;
  font-family: var(--font-condensed);
  font-weight: 800;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.65rem);
  line-height: 1;
  text-transform: uppercase;
}
.names-grid .role {
  position: relative;
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.names-grid .ghost {
  position: absolute;
  right: 1rem;
  top: 0.5rem;
  font-family: var(--font-condensed);
  font-style: italic;
  font-weight: 900;
  font-size: 4.5rem;
  line-height: 1;
  color: var(--line);
}

/* Partners: dashed boxes on the photo show where a logo would sit. */
.logo-map img {
  filter: brightness(0.72);
}
.spot {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 2px dashed var(--orange);
  background: rgba(15, 16, 18, 0.5);
  color: var(--text);
  font-family: var(--font-condensed);
  font-weight: 800;
  font-size: clamp(0.55rem, 0.3rem + 1vw, 1.05rem);
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}
.spot-hood { left: 21%; top: 41%; width: 19%; height: 8%; }
.spot-banner { left: 37%; top: 31%; width: 19%; height: 4.5%; border-color: var(--text); }
.spot-door { left: 58%; top: 45%; width: 12%; height: 13%; }
.spot-quarter { left: 71%; top: 43%; width: 8%; height: 11%; }
.spot-bumper { left: 17%; top: 58%; width: 19%; height: 6%; }

.offer-list {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0 2rem;
}
.offer-list li {
  padding: 1rem 0;
  border-top: 2px solid var(--line);
  color: var(--soft);
}
.offer-list li:first-child {
  border-top-color: var(--orange);
}
.offer-list strong {
  display: block;
  font-family: var(--font-condensed);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text);
}
.contact {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.contact > p {
  font-size: 1.3rem;
  font-weight: 600;
}
.contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}
.email-plain {
  font-size: 1.125rem;
}

/* Follow */
.follow {
  border-top: 1px solid var(--line);
}
.social-list {
  list-style: none;
  margin: 1.5rem 0 1rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2.2rem;
}
.social-list a {
  font-family: var(--font-condensed);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(2.2rem, 1.6rem + 2.5vw, 3.6rem);
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 3px;
}
.social-list a:hover {
  color: var(--orange);
}
.handle {
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer a {
  color: var(--muted);
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
}

/* 404 */
.not-found {
  min-height: 100svh;
}
.not-found .hero-inner {
  margin-block: auto;
}

@media (min-width: 40rem) {
  .names-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .offer-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .timeline {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 48rem) {
  .stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .photos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .photos figcaption {
    padding-inline: 0.75rem;
  }
  .section-head-split {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
  }
}

@media (min-width: 64rem) {
  .build-grid {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 3rem;
  }
  .story-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 4rem;
  }
  .names-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .offer-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero-video {
    display: none;
  }
}
