:root {
  --paper: #f2f0eb;
  --ink: #111114;
  --muted: rgba(17, 17, 20, 0.72);
  --graphite: #2e2f35;
  --red: #ff5e3d;
  --line: rgba(17, 17, 20, 0.12);
  --display: "Archivo", "Arial Black", sans-serif;
  --sans: "Barlow", "Avenir Next", sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 94, 61, 0.12) 0 10%, transparent 10% 18%, rgba(17, 17, 20, 0.06) 18% 26%, transparent 26% 100%),
    linear-gradient(180deg, #f4f1eb 0%, #ece9e1 100%);
}

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

.shell {
  width: min(1180px, calc(100vw - 2.4rem));
  margin: 0 auto;
}

.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.2rem 0;
}

.back-link,
.variation-label {
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(17, 17, 20, 0.56);
}

.brand {
  justify-self: center;
  font-size: 0.86rem;
  letter-spacing: 0.18em;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 1.08fr);
  gap: 2.6rem;
  align-items: center;
  min-height: calc(100vh - 5rem);
  padding: 2rem 0 4rem;
}

.eyebrow,
.section-label {
  margin: 0;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: -0.03em;
}

h1 {
  margin-top: 0.9rem;
  font-size: clamp(2.8rem, 6.2vw, 6.3rem);
  line-height: 0.94;
  max-width: 11ch;
}

.lede {
  max-width: 38rem;
  margin: 1.35rem 0 0;
  line-height: 1.8;
  color: var(--muted);
  font-size: 1.02rem;
}

.hero-docket {
  display: grid;
  gap: 1rem;
  margin-top: 1.7rem;
}

.hero-docket article,
.stats article,
.run-card,
.coverage-grid article,
.finish-card,
.lap-box,
.speed-box {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.56);
}

.hero-docket article,
.stats article,
.run-card,
.coverage-grid article,
.finish-card,
.lap-box,
.speed-box {
  padding: 1rem 1.05rem;
}

.hero-docket span,
.stats span,
.run-card span,
.lap-box span,
.speed-box span {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(17, 17, 20, 0.52);
}

.hero-docket strong,
.stats strong,
.lap-box strong,
.speed-box strong {
  display: block;
  margin-top: 0.55rem;
  line-height: 1.65;
  font-weight: 600;
}

.garage-board {
  position: relative;
  min-height: 42rem;
  overflow: hidden;
  border: 2px solid rgba(17, 17, 20, 0.1);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 8%, transparent 8% 15%, rgba(255, 255, 255, 0.08) 15% 22%, transparent 22% 100%),
    linear-gradient(180deg, #2f3036 0%, #15161a 100%);
  box-shadow: 0 34px 82px rgba(0, 0, 0, 0.22);
}

.track-line,
.lane,
.marker,
.lap-box,
.speed-box {
  position: absolute;
}

.track-line {
  left: -10%;
  width: 120%;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(-12deg);
}

.track-line-a { top: 18%; }
.track-line-b { top: 48%; }
.track-line-c { top: 76%; }

.lap-box {
  left: 6%;
  top: 8%;
  width: 16rem;
}

.speed-box {
  right: 6%;
  top: 12%;
  width: 12rem;
  text-align: right;
}

.speed-box strong {
  font-size: 3rem;
  line-height: 0.95;
}

.lane {
  padding: 0.75rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.28);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.lane-a { left: 12%; top: 28%; }
.lane-b { right: 14%; top: 34%; }
.lane-c { left: 18%; top: 56%; }
.lane-d { right: 16%; top: 62%; }
.lane-e { left: 36%; bottom: 10%; }

.marker {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 8px rgba(255, 94, 61, 0.14);
}

.marker-a { left: 42%; top: 24%; }
.marker-b { right: 32%; top: 52%; }
.marker-c { left: 52%; bottom: 18%; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.run,
.coverage,
.finish {
  padding-top: 5.5rem;
}

.run-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.run-card {
  min-height: 12rem;
  border-width: 2px;
}

.run-card-large {
  grid-column: span 2;
  min-height: 18rem;
}

.run-card h2 {
  margin-top: 0.8rem;
  font-size: 1.45rem;
  line-height: 1.08;
}

.run-card p,
.coverage-grid p,
.finish-card p {
  margin: 0.9rem 0 0;
  line-height: 1.72;
  color: var(--muted);
}

.coverage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.coverage-grid article {
  position: relative;
  overflow: hidden;
}

.coverage-grid article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0.35rem;
  background: var(--red);
}

.coverage-grid h3 {
  font-size: 1.2rem;
}

.finish-card p {
  margin-top: 0;
  max-width: 44rem;
}

@media (max-width: 980px) {
  .hero,
  .stats,
  .run-grid,
  .coverage-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    min-height: auto;
  }

  .garage-board {
    min-height: 34rem;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(1180px, calc(100vw - 1.4rem));
  }

  .topbar,
  .hero,
  .stats,
  .run-grid,
  .coverage-grid {
    grid-template-columns: 1fr;
  }

  .brand {
    justify-self: start;
  }

  .garage-board {
    min-height: 30rem;
  }

  .run-card-large {
    grid-column: auto;
    min-height: 14rem;
  }
}
