.race-garage {
  --garage-muted: #b5c7d5;
  color: #eef4f8;
  background: #111d28;
  border-top: 5px solid #278bd0;
  scroll-margin-top: 24px;
}
.garage-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  padding: 32px clamp(20px, 4vw, 70px) 26px;
}
.garage-kicker {
  margin: 0 0 10px;
  color: #8bcaf2;
  font: 700 11px/1.5 "SFMono-Regular", Consolas, monospace;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.garage-heading h2 {
  margin: 0;
  color: inherit;
  font-size: clamp(26px, 3vw, 42px);
  letter-spacing: -.04em;
  line-height: 1.1;
}
.garage-heading > p { margin: 0; color: var(--garage-muted); font-size: 15px; }
.garage-selector { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid #3a4a59; }
.garage-selector a {
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: center;
  gap: 6px 14px;
  min-height: 88px;
  padding: 18px clamp(16px, 3vw, 44px);
  color: #d9e4ec;
  background: #1b2a37;
  border-right: 1px solid #3a4a59;
  box-shadow: inset 0 -3px transparent;
  font-size: clamp(15px, 1.5vw, 20px);
  font-weight: 750;
  text-decoration: none;
  transition: background .18s, box-shadow .18s;
}
.garage-selector a:last-child { border-right: 0; }
.garage-selector a > span { color: #8bcaf2; font: 700 11px/1.8 Consolas, monospace; }
.garage-selector small { grid-column: 2; color: var(--garage-muted); font-size: 12px; font-weight: 400; }
.garage-selector a:hover { background: #273b4b; }
.garage-selector a[aria-selected="true"] { background: #263e52; box-shadow: inset 0 -3px #69c2ff; color: #fff; }
.race-garage :focus-visible { outline: 3px solid #8bd4ff; outline-offset: -5px; }
.garage-panel { scroll-margin-top: 16px; }
.garage-panel[hidden] { display: none; }
.garage-image { margin: 0; height: clamp(280px, 42vw, 660px); background: #0c151e; display: grid; place-items: center; }
.garage-image img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.garage-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 80px);
  padding: 32px clamp(20px, 4vw, 70px) 38px;
  border-top: 1px solid #3a4a59;
}
.garage-story h3 { margin: 0; color: #eef4f8; font-size: clamp(27px, 3vw, 42px); line-height: 1.1; letter-spacing: -.035em; }
.garage-story p:not(.garage-kicker) { max-width: 62ch; margin: 0; color: #c9d6e0; font-size: 17px; line-height: 1.6; }
.garage-skills { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 18px 0 24px; list-style: none; color: #91d0fa; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.garage-action { display: inline-flex; justify-content: space-between; align-items: center; gap: 28px; min-height: 46px; border-bottom: 1px solid #77b9e5; color: #eef4f8; font-size: 15px; font-weight: 700; text-decoration: none; }
.garage-action:hover { color: #91d0fa; }
.garage-caption { margin: 0; padding: 12px clamp(20px, 4vw, 70px); color: #9eb2c2; border-top: 1px solid #334453; font-size: 11px; letter-spacing: .04em; }
@media (max-width: 700px) {
  .garage-heading { display: block; padding-top: 25px; }
  .garage-heading > p { margin-top: 12px; }
  .garage-selector a { display: flex; flex-direction: column; align-items: start; gap: 5px; min-height: 95px; padding: 14px 12px; font-size: 14px; }
  .garage-selector small { font-size: 10px; line-height: 1.4; }
  .garage-story { grid-template-columns: 1fr; gap: 22px; padding-block: 25px; }
  .garage-story p:not(.garage-kicker) { font-size: 16px; }
  .garage-image { height: clamp(180px, 56.25vw, 394px); }
}
@media (prefers-reduced-motion: reduce) {
  .garage-selector a { transition: none; }
  html { scroll-behavior: auto; }
}
