/* car-bench public site: "night highway" — asphalt ground, road-sign type, one
   lane-marking accent. Tier plates differ in lightness, not hue alone. */
:root {
  --bg: #0f1012;
  --surface: #16171a;
  --surface-2: #1d1e22;
  --band: #131417;
  --line: #2a2b30;
  --line-soft: #22232a;
  --line-strong: #3a3b40;
  --text: #eceae6;
  --text-2: #cfcbc4;
  --muted: #a3a09a;
  --accent: #f4c542;
  --ink: #111214;
  --sans: "Middle Dot", "Overpass", "Helvetica Neue", Arial, sans-serif;
  --mono: "Overpass Mono", ui-monospace, Menlo, monospace;
}
/* Overpass and Overpass Mono (OFL, fonts/OFL.txt) are served from the site itself,
   variable weight, split by script like Google Fonts: a page loads the parts its
   text needs and asks nothing of other hosts. */
@font-face { font-family: "Overpass"; font-weight: 100 900; font-display: swap; src: url("/fonts/overpass-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Overpass"; font-weight: 100 900; font-display: swap; src: url("/fonts/overpass-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Overpass"; font-weight: 100 900; font-display: swap; src: url("/fonts/overpass-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Overpass Mono"; font-weight: 300 700; font-display: swap; src: url("/fonts/overpass-mono-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Overpass Mono"; font-weight: 300 700; font-display: swap; src: url("/fonts/overpass-mono-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Overpass Mono"; font-weight: 300 700; font-display: swap; src: url("/fonts/overpass-mono-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
/* Overpass draws "·" against the next letter: that one character comes from a
   system face, everything else stays Overpass. */
@font-face { font-family: "Middle Dot"; src: local("Helvetica Neue"), local("Arial"), local("DejaVu Sans"); unicode-range: U+00B7; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent); }
button { font: inherit; }
img { display: block; }
/* Overpass Mono joins fi and ff into ligatures: a monospace line keeps every letter. */
.mono { font-family: var(--mono); font-variant-ligatures: none; font-feature-settings: "liga" 0, "dlig" 0; }
.accent { color: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.wrap { max-width: 1360px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }
@media (max-width: 640px) { .wrap { padding-left: 16px; padding-right: 16px; } }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* header and footer */
.top { border-bottom: 1px solid var(--line); }
.nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 900; font-size: 21px; letter-spacing: -0.01em; }
.brand-plate { fill: var(--accent); }
.links { display: flex; gap: 4px; flex-wrap: wrap; }
.links a { padding: 12px 14px; font-weight: 600; font-size: 15px; }
.links a[aria-current] { color: var(--accent); font-weight: 700; }
.updated { font-size: 13px; color: var(--muted); }
@media (max-width: 640px) { .updated { display: none; } }
.foot { border-top: 1px solid var(--line); margin-top: 0; }
.foot-row { padding-top: 32px; padding-bottom: 40px; display: flex; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.foot-row a { color: var(--muted); }

/* buttons */
.btn { display: inline-flex; align-items: center; min-height: 52px; padding: 0 22px; border-radius: 4px; border: 1px solid var(--line-strong); font-weight: 700; font-size: 16px; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--ink); font-weight: 800; padding: 0 26px; }
.btn-primary:hover { color: var(--ink); filter: brightness(1.06); }
.ctl { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 0 14px; border-radius: 4px; border: 1px solid var(--line-strong); background: transparent; color: var(--text); cursor: pointer; font-weight: 700; font-size: 14px; }
.ctl:hover { border-color: var(--text); color: var(--text); }

/* hero */
.hero { padding-top: 72px; padding-bottom: 48px; display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-end; }
.hero-text { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero h1 { margin: 0; font-weight: 900; font-size: clamp(46px, 7.4vw, 108px); line-height: 0.92; letter-spacing: -0.03em; }
.lead { margin: 0; max-width: 600px; font-size: 19px; line-height: 1.55; color: var(--text-2); text-wrap: pretty; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.prompt { flex: 1 1 420px; min-width: 0; margin: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); padding: 26px 28px; display: flex; flex-direction: column; gap: 14px; }
.prompt figcaption { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; font-size: 13px; color: var(--muted); }
.prompt figcaption .accent { letter-spacing: 0.08em; }
.prompt blockquote { margin: 0; font-size: 13.5px; line-height: 1.65; color: var(--text-2); }

/* the convoy: the site's own parallax, made of the models' cars */
.convoy { position: relative; overflow: hidden; padding: 8px 0 28px; display: flex; flex-direction: column; gap: 16px; }
.convoy::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, var(--bg) 0%, rgba(15,16,18,0) 12%, rgba(15,16,18,0) 88%, var(--bg) 100%); }
.lane { display: flex; gap: 16px; width: max-content; animation: drive linear infinite; }
.lane img { object-fit: cover; flex: 0 0 auto; background: var(--surface-2); }
.lane-1 { animation-duration: 240s; opacity: 0.42; }
.lane-1 img { width: 190px; height: 107px; border-radius: 4px; }
.lane-2 { animation-duration: 120s; }
.lane-2 img { width: 320px; height: 180px; border-radius: 6px; }
/* A picture that failed twice keeps its box, without the browser's broken icon. */
img.gone { visibility: hidden; }
@keyframes drive { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .lane { animation: none; } html { scroll-behavior: auto; } }
@media (max-width: 640px) { .lane-1 img { width: 120px; height: 68px; } .lane-2 img { width: 200px; height: 113px; } }

/* numbers */
.numbers { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--band); }
.numbers-grid { padding-top: 28px; padding-bottom: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); gap: 24px; }
.numbers-grid div { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--muted); }
.num { font-weight: 600; font-size: 36px; color: var(--text); }

/* the wall */
.wall-head { padding-top: 64px; padding-bottom: 24px; display: flex; flex-direction: column; gap: 24px; }
.wall-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.wall-title > div:first-child { max-width: 660px; display: flex; flex-direction: column; gap: 8px; }
h2 { margin: 0; font-weight: 900; font-size: 44px; letter-spacing: -0.02em; }
.wall-title p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--muted); }
.segmented { display: flex; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; flex-wrap: wrap; }
.segmented button { min-height: 44px; padding: 0 16px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-weight: 700; font-size: 14px; }
.segmented button[aria-pressed="true"] { background: var(--line); color: var(--text); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 4px; border: 1px solid var(--line-strong); background: transparent; color: var(--text); cursor: pointer; font-weight: 700; font-size: 14px; }
.chip .mono { font-size: 12px; opacity: 0.75; }
.chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--ink); }
.legend { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.legend-plates { display: flex; gap: 6px; }
.wall { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 28px 20px; padding: 8px 0 72px; }
.card { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.card[hidden] { display: none; }
.poster { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; background: var(--surface-2); outline: 1px solid var(--line); }
.poster img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(.2,.7,.2,1); }
.card:hover .poster img { transform: scale(1.04); }
.card:hover .card-name { color: var(--accent); }
.card-meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.card-line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; min-width: 0; }
.card-name { font-weight: 700; font-size: 16px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-sub { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.metric { font-size: 13px; color: var(--muted); white-space: nowrap; }
.badge { position: absolute; padding: 3px 7px 2px; border-radius: 3px; background: rgba(15,16,18,0.78); font-size: 12px; color: var(--text); }
.badge-runs { top: 12px; right: 10px; }
.badge-local { bottom: 10px; left: 10px; letter-spacing: 0.04em; color: var(--accent); font-size: 11.5px; }

/* tier plates */
.plate { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding-top: 2px; border-radius: 4px; border: 1.5px solid transparent; font-family: var(--sans); font-weight: 900; font-size: 16px; line-height: 1; flex: 0 0 auto; }
.plate-A { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.plate-B { background: #eceae6; border-color: #eceae6; color: var(--ink); }
.plate-C { background: #b8b4ad; border-color: #b8b4ad; color: var(--ink); }
.plate-D { background: #86827c; border-color: #86827c; color: var(--bg); }
.plate-F { background: rgba(15,16,18,0.78); border-color: #86827c; color: var(--text); }
.plate-none { background: rgba(15,16,18,0.78); border: 1.5px dashed #5a5b60; color: var(--muted); }
.plate.on-poster { position: absolute; top: 10px; left: 10px; }
.plate-sm { width: 26px; height: 26px; font-size: 14px; }
.plate-xs { width: 22px; height: 22px; font-size: 12px; }
.plate-lg { width: 56px; height: 56px; font-size: 30px; }

/* method */
.method { border-top: 1px solid var(--line); background: var(--band); }
.method .wrap { padding-top: 72px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 40px; }
.method-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 40px; }
.method-grid div { display: flex; flex-direction: column; gap: 12px; }
.step { font-size: 13px; letter-spacing: 0.08em; }
.method p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text-2); }

/* setup page */
.setup { padding-top: 28px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 24px; }
.crumbs { display: flex; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs .here { color: var(--text); }
.setup-head { display: flex; flex-direction: column; gap: 14px; }
.tags { display: flex; gap: 10px; flex-wrap: wrap; }
.tag { font-size: 12px; letter-spacing: 0.06em; padding: 5px 9px 4px; border-radius: 3px; border: 1px solid var(--line-strong); color: var(--text-2); }
.tag.accent { color: var(--accent); }
.setup h1 { margin: 0; font-weight: 900; font-size: clamp(36px, 5vw, 68px); line-height: 0.98; letter-spacing: -0.025em; }
.setup h1 .muted { font-weight: 700; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.tabs button { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 18px; margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); cursor: pointer; font-weight: 800; font-size: 15px; }
.tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
.setup-grid { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.attempts { flex: 999 1 640px; min-width: 0; }
.attempt { display: flex; flex-direction: column; gap: 12px; }
.attempt[hidden] { display: none; }
.page-title { margin: 0; font-size: 16px; color: var(--text-2); }
.page-title em { color: var(--text); }
.stage { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #000; outline: 1px solid var(--line); }
.stage .still, .stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.stage .still { object-fit: cover; }
/* The page's first frame may take a moment: its still shows until then. */
.stage iframe { opacity: 0; transition: opacity 0.6s ease; }
.stage iframe.shown { opacity: 1; }
.stage:fullscreen { border-radius: 0; outline: 0; }
.live { position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 5px 9px 4px; border-radius: 3px; background: rgba(15,16,18,0.78); font-size: 12px; letter-spacing: 0.06em; pointer-events: none; }
.live-dot { width: 8px; height: 8px; border-radius: 1px; background: var(--accent); }
.controls { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.controls-left { display: flex; gap: 8px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 12px; }
.facts div { padding: 20px 4px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.fact { font-weight: 600; font-size: 28px; color: var(--text); }
.details { display: flex; flex-direction: column; gap: 20px; padding-top: 12px; }
.details dl { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 18px; font-size: 14px; }
.details dt { color: var(--muted); }
.details dd { margin: 0; overflow-wrap: anywhere; }
.rating { flex: 1 1 300px; min-width: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.rating .label { font-size: 12px; letter-spacing: 0.08em; }
.rating-row { display: flex; align-items: center; gap: 16px; }
.rating-row > div { display: flex; flex-direction: column; gap: 2px; }
.rating-big { font-weight: 800; font-size: 26px; line-height: 1.1; }
.rating-vs { font-weight: 700; font-size: 16px; color: var(--text-2); }
.ci { position: relative; height: 22px; }
.ci-line { position: absolute; left: 0; right: 0; top: 10px; height: 2px; background: var(--line); }
.ci-range { position: absolute; top: 7px; height: 8px; border-radius: 2px; background: var(--line-strong); }
.ci-mid { position: absolute; left: calc(50% - 0.5px); top: 0; width: 1px; height: 22px; background: #5a5b60; }
.ci-dot { position: absolute; top: 2px; width: 4px; height: 18px; margin-left: -2px; border-radius: 1px; background: var(--accent); }
.ci-scale { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); }
