/* Pit Window HQ: one dark, floodlit 'night race' look. Layout concept: a pit-wall of glass panels over a dark grid, with one big scroll-driven 3D car on the home page. */
:root {
  --night: #06080e;          /* page */
  --deep: #0b0f19;           /* sections */
  --glass: rgba(17, 22, 36, .72);
  --line: #1f2840;
  --chalk: #eef2f8;          /* text */
  --dim: #8d97ad;            /* secondary text */
  --red: #e10600;            /* brand, CTAs */
  --amber: #ffc83d;          /* highlights */
  --purple: #b05cff;         /* overall best */
  --green: #3ddc84;          /* personal best / gain */
  --cyan: #36d6ff;           /* data accents */
  --f-display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --f-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --r: 18px;
  color-scheme: dark;
}
* { box-sizing: border-box }
[hidden] { display: none !important }
html { scroll-behavior: smooth }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto } *, *:before, *:after { animation: none !important; transition: none !important } }
body { margin: 0; background: var(--night); color: var(--chalk); font: 16px/1.55 var(--f-body); -webkit-font-smoothing: antialiased }
body:before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background: radial-gradient(900px 600px at 80% -10%, rgba(54, 120, 255, .14), transparent 60%), radial-gradient(800px 600px at -10% 110%, rgba(225, 6, 0, .12), transparent 60%),
  linear-gradient(rgba(140, 170, 255, .035) 1px, transparent 1px) 0 0 / 48px 48px, linear-gradient(90deg, rgba(140, 170, 255, .035) 1px, transparent 1px) 0 0 / 48px 48px }
a { color: inherit }
img { max-width: 100% }
.wrap { max-width: 1240px; margin: 0 auto; padding-inline: 20px }
h1, h2, h3 { font-family: var(--f-display); font-weight: 900; line-height: .95; letter-spacing: .3px; margin: 0; text-wrap: balance }
h2 { font-size: clamp(36px, 5vw, 60px) }
h3 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 800 }
p { margin: 0 }
.eyebrow { font: 700 12px/1.2 var(--f-mono); letter-spacing: 1.6px; text-transform: uppercase; color: var(--amber) }
.mono { font-family: var(--f-mono) }
.num { font-variant-numeric: tabular-nums }
.dim { color: var(--dim) }
.btn { display: inline-flex; align-items: center; gap: 8px; font: 800 18px/1 var(--f-display); letter-spacing: .8px; text-decoration: none; background: var(--red); color: #fff; border: 0; border-radius: 999px; padding: 13px 24px; cursor: pointer; transition: transform .15s, box-shadow .15s }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 30px rgba(225, 6, 0, .35) }
.btn.ghost { background: transparent; border: 1.5px solid var(--line); color: var(--chalk) }
.btn.ghost:hover { border-color: var(--chalk); box-shadow: none }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px }
/* nav */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: rgba(6, 8, 14, .72); border-bottom: 1px solid var(--line) }
.nav .wrap { display: flex; align-items: center; gap: 22px; height: 64px }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 900 24px/1 var(--f-display); letter-spacing: .6px; margin-right: auto; white-space: nowrap }
.brand img.lg { width: 36px; height: 36px; border-radius: 50% } .brand img.wm { width: auto; height: 15px; border-radius: 0; display: block }
.brand b { color: var(--red) } .brand .hq { font: italic 900 25px/1 var(--f-display); color: #e10600; letter-spacing: .5px; transform: skewX(-6deg); margin-left: -2px; text-shadow: 0 0 18px rgba(225, 6, 0, .35) } @media (max-width: 420px) { .brand img.wm { height: 12px } .brand .hq { font-size: 21px } }
.nav nav { display: flex; gap: 20px }
.nav nav a { text-decoration: none; color: var(--dim); font-weight: 600; font-size: 15px }
.nav nav a[aria-current="page"], .nav nav a:hover { color: var(--chalk) }
.nav .btn { padding: 10px 18px; font-size: 16px }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--chalk); border-radius: 10px; width: 42px; height: 42px; font-size: 20px }
@media (max-width: 920px) {
  .nav nav { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; gap: 0; background: rgba(6, 8, 14, .97); border-bottom: 1px solid var(--line); padding: 8px 20px 16px }
  .nav nav.open { display: flex } .nav nav a { padding: 12px 0; font-size: 18px; border-bottom: 1px solid var(--line) }
  .menu-btn { display: block } .nav .btn { display: none }
}
/* sections & panels */
section { padding-block: clamp(56px, 8vw, 96px) }
.sh { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 26px }
.sh p { color: var(--dim); max-width: 56ch }
.panel { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); min-width: 0 }
.grid { display: grid; gap: 18px }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)) } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)) } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)) }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr) } }
.chip { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1 var(--f-mono); letter-spacing: .6px; border: 1px solid var(--line); border-radius: 999px; padding: 7px 11px; color: #c6ccda; background: rgba(0, 0, 0, .25) }
.chip b { color: var(--chalk) }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red) }
.live .dot { animation: blink 1.2s infinite } @keyframes blink { 50% { opacity: .25 } }
/* tables */
.tbl-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--line); background: linear-gradient(90deg, #0a0d14 30%, transparent) 0 0 / 28px 100% no-repeat local, linear-gradient(270deg, #0a0d14 30%, transparent) 100% 0 / 28px 100% no-repeat local, linear-gradient(90deg, rgba(0, 0, 0, .55), transparent) 0 0 / 14px 100% no-repeat scroll, linear-gradient(270deg, rgba(0, 0, 0, .55), transparent) 100% 0 / 14px 100% no-repeat scroll; -webkit-overflow-scrolling: touch }
table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums }
th { text-align: left; font: 700 11px/1 var(--f-mono); letter-spacing: 1.2px; color: var(--dim); text-transform: uppercase; padding: 12px 12px; background: rgba(0, 0, 0, .3); white-space: nowrap }
td { padding: 11px 12px; border-top: 1px solid var(--line); white-space: nowrap }
td.drv { font-weight: 600 } td.drv small { color: var(--dim); font-weight: 400; margin-left: 6px }
tr:hover td { background: rgba(255, 255, 255, .025) }
.pos { font: 900 20px/1 var(--f-display); width: 44px } tr:nth-child(1) .pos { color: var(--amber) }
.tbar { display: inline-block; width: 4px; height: 18px; border-radius: 2px; vertical-align: -4px; margin-right: 8px }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px }
.tabs button { font: 800 16px/1 var(--f-display); letter-spacing: .6px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--dim); cursor: pointer }
.tabs button[aria-selected="true"] { background: var(--chalk); color: #0a0d14; border-color: var(--chalk) }
select, input[type=text], input[type=email], input[type=number] { font: 600 16px var(--f-body); background: #070a12; color: var(--chalk); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; max-width: 100% }
label.lbl { display: block; font: 700 11px/1 var(--f-mono); letter-spacing: 1.2px; color: var(--dim); text-transform: uppercase; margin-bottom: 8px }
/* footer */
footer { border-top: 1px solid var(--line); padding-block: 36px 48px; color: var(--dim); font-size: 14px }
footer .wrap { display: grid; gap: 16px }
footer .row { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; justify-content: space-between }
footer a { color: #c6ccda; text-decoration: none } footer a:hover { color: var(--chalk) }
.legal { font-size: 12.5px; line-height: 1.6; max-width: 90ch }
/* reveal on scroll (content is visible by default; JS only adds the motion) */
.rv { transition: transform .7s cubic-bezier(.2, .7, .2, 1), opacity .7s } .rv.pre { transform: translateY(26px); opacity: .001 }
/* spinner (draggable 3D car frames) */
.spin { position: relative; aspect-ratio: 16/10; max-width: 100%; cursor: grab; touch-action: pan-y; user-select: none }
.spin canvas { width: 100%; height: 100%; display: block }
.spin:active { cursor: grabbing }
.spin .hint { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); font: 600 11px var(--f-mono); color: var(--dim); letter-spacing: 1px; pointer-events: none }
.empty { color: var(--dim); font-size: 15px; padding: 18px; border: 1px dashed var(--line); border-radius: 12px }
/* highlighted words in big headings: a block of their own so the highlight never overlaps the line above */
h1 em, h2 em, .hl { display: inline-block; line-height: .92; padding: .03em .14em .01em; margin-top: .08em; font-style: italic }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--amber); color: #14100a; font: 800 15px var(--f-display); padding: 10px 16px; border-radius: 10px; text-decoration: none } .skip:focus { top: 12px }

@media (max-width: 640px) { td.drv, th:nth-child(2) { position: sticky; left: 0; background: #0b0e16; z-index: 1 } td, th { padding-left: 9px; padding-right: 9px } }

.lfilter { margin-top: 28px; display: grid; gap: 14px } .lfilter input { width: 100%; max-width: 560px; border-radius: 999px; padding: 14px 22px; font-size: 16px } .lfilter .tabs { margin-bottom: 0 } [hidden] { display: none !important }
