.race-archive {
  background: var(--ink);
  border-top: 1px solid var(--line);
}
.race-archive .section-head { grid-template-columns: 1fr; }
.race-archive .section-title { font-size: clamp(2.3rem, 5.3vw, 5.4rem); }
.race-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.4vw, 2.5rem);
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
}
.race-card { min-width: 0; border: 1px solid var(--line); background: var(--ink-raised); }
.race-gallery { position: relative; }
.race-stage { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: #080a09; }
.race-slide { position: absolute; inset: 0; margin: 0; }
.race-slide[hidden] { display: none; }
.race-slide img, .race-slide video { width: 100%; height: 100%; object-fit: contain; }
.race-photo-label {
  position: absolute; z-index: 3; inset: 0 0 auto; display: flex;
  align-items: flex-start; justify-content: space-between; gap: .75rem;
  padding: clamp(1rem, 2vw, 1.75rem); padding-bottom: 4.5rem;
  background: linear-gradient(#000b, #0006 52%, transparent);
  pointer-events: none; color: var(--paper);
}
.race-photo-label strong { max-width: 76%; font-family: "Archivo Black", sans-serif; font-size: clamp(.875rem, 1.5vw, 1.25rem); line-height: 1.35; letter-spacing: -.025em; }
.race-kind { padding: .3rem .55rem; border: 1px solid var(--acid); background: #0b0d0cd9; color: var(--acid); font-size: .625rem; line-height: 1.5; font-weight: 800; letter-spacing: .1em; white-space: nowrap; }
.race-play {
  position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 76px; height: 76px;
  padding: 0; border: 1px solid var(--acid); border-radius: 50%;
  color: var(--ink); background: var(--acid); cursor: pointer;
  box-shadow: 0 4px 24px #0005;
}
.race-play[hidden] { display: none; }
.race-play svg { width: 26px; height: 26px; margin-left: 4px; fill: currentColor; }
.race-video-note { position: absolute; left: 1rem; bottom: 4rem; padding: .25rem .5rem; background: #0b0d0cc9; color: var(--paper); font-size: .6875rem; pointer-events: none; }
.race-controls {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  min-height: 4.25rem; padding: .5rem clamp(.75rem, 1.5vw, 1.25rem);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.race-controls[hidden] { display: none; }
.race-nav, .race-autoplay {
  display: inline-grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 50%; background: transparent;
  color: var(--paper); font-size: 1.35rem; cursor: pointer;
}
.race-autoplay { font-size: 1rem; line-height: 1; }
.race-autoplay[hidden] { display: none; }
.race-gallery[data-autoplay="running"] .race-autoplay { border-color: var(--acid); color: var(--acid); }
.race-positions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; }
.race-counter { color: var(--acid); font-size: .8125rem; font-weight: 700; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.race-position { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.race-position::before { display: block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; content: ""; }
.race-position[aria-current="true"] { color: var(--acid); }
.race-position[aria-current="true"]::before { width: 20px; border-radius: 6px; }
.race-nav:hover, .race-nav:focus-visible, .race-autoplay:hover, .race-autoplay:focus-visible { border-color: var(--acid); color: var(--acid); }
.race-body { padding: clamp(1.25rem, 2.5vw, 2rem); }
.race-eyebrow { display: flex; justify-content: space-between; gap: 1rem; margin: 0 0 1rem; color: var(--acid); font-size: .6875rem; letter-spacing: .12em; font-weight: 800; }
.race-eyebrow span:last-child { color: var(--muted); }
.race-body h3 { margin: 0; font-family: "Archivo Black", sans-serif; font-size: clamp(1.4rem, 2.25vw, 2.2rem); line-height: 1.15; letter-spacing: -.035em; }
.race-description { min-height: 3.7em; margin: 1rem 0 1.75rem; color: var(--muted); font-size: .9375rem; line-height: 1.85; word-break: keep-all; }
.race-link { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 52px; padding: .8rem 0; border-top: 1px solid var(--line); color: var(--paper); font-size: .875rem; font-weight: 700; }
.race-link > span[aria-hidden] { color: var(--acid); font-size: 1.5rem; }
.race-link:hover { color: var(--acid); }
.race-media-error { position: absolute; z-index: 4; inset: auto 1rem 4rem; padding: .75rem; margin: 0; background: var(--ink); color: var(--paper); font-size: .875rem; }
@media (prefers-reduced-motion: no-preference) {
  .race-photo-entering { z-index: 2; animation: race-photo-enter 400ms ease-in-out both; }
  .race-photo-leaving { z-index: 1; pointer-events: none; animation: race-photo-leave 400ms ease-in-out both; }
}
@keyframes race-photo-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes race-photo-leave {
  from { opacity: 1; }
  to { opacity: 0; }
}
@media (max-width: 767px) {
  .race-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .race-archive .section-title { font-size: clamp(1.9rem, 8vw, 3.2rem); }
  .race-photo-label strong { font-size: 1rem; }
  .race-body h3 { font-size: clamp(1.35rem, 6vw, 1.85rem); }
  .race-description { min-height: 0; }
  .race-controls { padding-inline: .6rem; }
  .race-position { width: 36px; min-height: 44px; }
}
