/* =========================================================
   MC Racing Sim - VERSION 3 theme ("Pit Wall")
   Loaded AFTER style.css on every page. Changes the look,
   not the content. Remove this one <link> to go back to V2.
   ========================================================= */
:root {
  --bg: #0d0e10;
  --bg-2: #141518;
  --panel: #18191d;
  --panel-2: #202227;
  --line: rgba(243,239,231,.10);
  --text: #f3efe7;            /* warm paper white */
  --muted: #a39e94;
  --red: #e8242b;             /* signal red (logo red, a touch warmer) */
  --red-2: #b3121a;
  --gold: #ffb21a;            /* timing amber */
  --green: #29d17a;
  --paper: #efeae0;
  --ink: #141414;
  --radius: 6px;
  --max: 1240px;
  --display: "Archivo", "Arial Black", sans-serif;
  --body: "Archivo", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --kerb: repeating-linear-gradient(90deg, var(--red) 0 34px, var(--paper) 34px 68px);
}
body { font-size: 17px; letter-spacing: .005em; }
body::before { opacity: 0; } /* no carbon texture: cleaner */

/* ---------- Type: wide, upright, heavy ---------- */
h1, h2, h3 { font-family: var(--display); font-stretch: 125%; font-weight: 900; font-style: normal; letter-spacing: -.01em; line-height: .92; }
h1 { font-size: clamp(2.6rem, 6vw, 5.4rem); font-style: normal; font-stretch: 115%; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.9rem); font-style: normal; }
h3 { font-stretch: 112%; font-weight: 800; font-size: 1.45rem; letter-spacing: 0; }
.lead { color: var(--muted); font-size: 1.15rem; line-height: 1.65; }
.tag, .eyebrow { font-family: var(--mono); font-weight: 500; letter-spacing: .18em; }

/* section number becomes a timing-tower position chip */
.sec-num { -webkit-text-stroke: 0; color: var(--ink); background: var(--gold); font-family: var(--mono); font-style: normal; font-weight: 700; font-size: 1.05rem; line-height: 1; padding: 9px 11px 8px; border-radius: 3px; align-self: flex-start; margin-top: 4px; }
.sec-num::before { content: "P"; }
.sec-head { align-items: flex-start; }

/* ---------- Buttons: square, arrow slides on hover ---------- */
.btn { --skew: 0deg; border-radius: 3px; padding: 16px 26px; letter-spacing: .1em; font-size: .86rem; font-weight: 800; font-stretch: 110%; }
.btn > span::after { content: "\2192"; display: inline-block; margin-left: 10px; transition: transform .2s; }
.btn:hover > span::after { transform: translateX(5px); }
.btn-red { background: var(--red); box-shadow: none; }
.btn-red:hover { background: #ff2f36; box-shadow: 0 10px 28px rgba(232,36,43,.35); }
.btn-ghost { border-color: rgba(243,239,231,.35); background: transparent; }
.btn-ghost:hover { border-color: var(--text); background: rgba(243,239,231,.06); }
.nav-links .btn > span::after { content: none; }

/* ---------- Header ---------- */
.statusbar { background: #08090a; border-bottom: 1px solid var(--line); font-family: var(--mono); }
.site-header { background: rgba(13,14,16,.86); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-links a { font-stretch: 110%; letter-spacing: .08em; }
.nav-links a.active { color: var(--text); box-shadow: inset 0 -2px 0 var(--red); }

/* ---------- Hero: big photo, five start lights ---------- */
.hero { min-height: min(88vh, 860px); }
.hero-bg { filter: saturate(1.05) contrast(1.05) brightness(.62); }
.hero::after { background: linear-gradient(90deg, rgba(13,14,16,.96) 0%, rgba(13,14,16,.70) 45%, rgba(13,14,16,.15) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 30%) !important; }
.hero h1 .line2 { color: var(--red); display: block; font-style: normal; }
.hero .sub { color: #d9d4ca; font-size: 1.2rem; max-width: 560px; }

.start-lights { display: flex; gap: 10px; margin: 0 0 26px; padding: 10px 12px; background: #050506; border: 1px solid var(--line); border-radius: 6px; width: max-content; }
.start-lights i { width: 30px; height: 30px; border-radius: 50%; background: #2a1112; box-shadow: inset 0 0 0 3px #1a0a0b; }
.start-lights i { transition: background .08s, box-shadow .08s; }
.start-lights i.lit { background: #ff2b2b; box-shadow: 0 0 18px 4px rgba(255,43,43,.75), inset 0 0 0 3px #ff6a6a; }
.lights-caption { font-family: var(--mono); font-size: .78rem; letter-spacing: .2em; color: var(--muted); text-transform: uppercase; margin: -16px 0 22px; height: 1.2em; }
.lights-caption b { color: var(--green); font-weight: 700; }

/* rating gauge: amber/red sweep, cleaner */
.gauge .track { stroke: rgba(243,239,231,.10); }
.gauge .num { font-family: var(--display); font-stretch: 125%; font-weight: 900; font-style: normal; }
.gauge .lbl { font-family: var(--mono); }

/* review ticker */
.board { background: #08090a; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rv { border-radius: 6px; background: var(--panel); border: 1px solid var(--line); }
.rv .pos { background: var(--gold); color: var(--ink); font-family: var(--mono); font-style: normal; border-radius: 3px; }

/* ---------- Stats: timing-screen numerals ---------- */
.stat .num { font-family: var(--mono); font-weight: 700; font-style: normal; color: var(--text); letter-spacing: -.02em; }
.stat .bar i { background: linear-gradient(90deg, var(--red), var(--gold)); }

/* ---------- Light "paper" sections for contrast ---------- */
.paper { background: var(--paper); color: var(--ink); }
.paper .lead, .paper p { color: #4a4740; }
.paper .tag { color: var(--red-2); }
.paper .btn-ghost { color: var(--ink); border-color: rgba(20,20,20,.35); }
.paper .btn-ghost:hover { background: rgba(20,20,20,.06); border-color: var(--ink); }
.paper .chip, .paper .fact, .paper .card, .paper .tier, .paper .price-card { background: #fff; color: var(--ink); border-color: rgba(20,20,20,.12); }
.paper table { color: var(--ink); }
.paper .outline { -webkit-text-stroke-color: var(--ink); }

/* kerb divider under the hero area */
.kerb { height: 6px; }

/* ---------- Cards & photos ---------- */
.photo, .photo img { border-radius: 6px; }
.chip { border-radius: 3px; font-family: var(--mono); }

/* ---------- Footer ---------- */
.site-footer { background: #08090a; border-top: 4px solid var(--red); }

/* small screens */
@media (max-width: 720px) {
  .start-lights i { width: 24px; height: 24px; }
  h1 { font-size: clamp(2.5rem, 12vw, 3.6rem); }
}
.paper h1, .paper h2, .paper h3, .paper strong, .paper li, .paper .label { color: var(--ink); }
.paper .red { color: var(--red); }
.paper .checklist li::before { color: var(--red); }
.hero h1 { font-size: clamp(2.5rem, 5.2vw, 4.7rem); }
@media (min-width: 901px) { .hero .container { grid-template-columns: 1.75fr .55fr; } }
.hero h1 { font-stretch: 108%; }
.hero h1 .line2 { white-space: nowrap; }
.start-lights i.lit { background: radial-gradient(circle at 40% 35%, #ff8a8a 0 18%, #ff2b2b 45%, #c40d0d 100%); box-shadow: 0 0 22px 6px rgba(255,43,43,.65); }
.hero-phone a, .statusbar em { font-style: normal; }
@media (max-width: 720px) { .hero h1 .line2 { white-space: normal; } }
@media (min-width: 901px) { .hero .container { grid-template-columns: minmax(0,1.55fr) minmax(260px,.6fr); } }
.hero h1 { font-size: clamp(2.5rem, 4.6vw, 4.3rem); }
.gauge-wrap { min-width: 260px; }

/* =========================================================
   BUILD 3 (12-01, Mark's notes): reviews on top, full gauge,
   scroll motion, gauge -> steering wheel scene
   ========================================================= */
/* 5.0 gauge 100% full (pathLength=100 on the path) */
.gauge .fill { stroke-dasharray: 100 200; stroke-dashoffset: 100; }

/* big review band right at the top */
.board-top { border-top: 0; border-bottom: 1px solid rgba(232,36,43,.45); background: linear-gradient(180deg,#0a0b0d,#060607); }
.board-top .board-head { padding-top: 14px; gap: 16px; font-size: .78rem; }
.board-top .board-head .bh-big { color: var(--gold); font-family: var(--display); font-stretch: 115%; font-weight: 900; font-size: 1.15rem; letter-spacing: .02em; }
.board-top .board-viewport { padding: 14px 0 20px; }
.board-top .board-track { gap: 18px; animation-duration: 120s; }
.board-top .rv { width: 460px; padding: 18px 20px; grid-template-columns: 54px 1fr; gap: 2px 16px; }
.board-top .rv .pos { height: 54px; font-size: 1.15rem; }
.board-top .rv .who { font-size: 1.08rem; }
.board-top .rv .who .st { font-size: 1.05rem; letter-spacing: 2px; }
.board-top .rv q { font-size: 1.05rem; line-height: 1.5; color: #e4dfd5; }
@media (max-width: 720px) {
  .board-top .board-head span:last-child { display: none; }
  .board-top .rv { width: 320px; padding: 14px 16px; grid-template-columns: 42px 1fr; }
  .board-top .rv .pos { height: 42px; font-size: 1rem; }
  .board-top .rv q { font-size: .98rem; }
}

/* RC/drones = a small side note, not a main attraction */
.sidenote { padding: 10px 0 34px; }
.sidenote .sn { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; border: 1px dashed rgba(243,239,231,.22); border-radius: 6px; padding: 16px 20px; max-width: 860px; margin: 0 auto; }
.sidenote .sn-tag { font-family: var(--mono); font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.sidenote p { margin: 0; color: var(--muted); font-size: 1rem; }

/* scroll motion: slide/fade IN and OUT both ways */
.js .reveal.from-l { transform: translateX(-60px); }
.js .reveal.from-r { transform: translateX(60px); }
.js .reveal.in.from-l, .js .reveal.in.from-r { transform: none; }
.js .reveal { transition: opacity .8s ease, transform .9s cubic-bezier(.2,.8,.2,1); }
.js .photo.reveal img { transform: scale(1.08); transition: transform 1.4s cubic-bezier(.2,.8,.2,1); }
.js .photo.reveal.in img { transform: scale(1); }

/* gauge -> steering wheel -> into the cockpit */
.wheel-scene { position: relative; height: 340vh; background: #060607; }
.ws-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.ws-photo { position: absolute; inset: 0; clip-path: circle(0 at 50% 50%); }
.ws-photo img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.55) saturate(1.05); transform: scale(1.25); }
.ws-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6,6,7,.85) 0%, transparent 55%); }
.ws-wheel { position: relative; width: min(74vmin, 560px); overflow: visible; will-change: transform; }
.ws-track { stroke: rgba(243,239,231,.08); }
.ws-rim { stroke: url(#wsGrad); filter: drop-shadow(0 0 18px rgba(255,140,40,.25)); }
.ws-spokes { transform: scale(0); }
.ws-spokes path { fill: #1c1d21; stroke: rgba(243,239,231,.18); stroke-width: 2; }
.ws-mark { fill: var(--gold); opacity: 0; }
.ws-hub { opacity: 0; }
.ws-hub text { font-family: var(--display); font-stretch: 125%; font-weight: 900; font-size: 34px; fill: #fff; }
.ws-gauge .num { font-family: var(--display); font-stretch: 125%; font-weight: 900; font-size: 92px; fill: #fff; }
.ws-gauge .lbl { font-family: var(--mono); font-size: 13px; letter-spacing: 3px; fill: var(--muted); }
.ws-gauge .stars { font-size: 26px; fill: var(--gold); letter-spacing: 4px; }
.ws-cap { position: absolute; left: 0; right: 0; top: 9vh; text-align: center; margin: 0; font-family: var(--mono); font-size: clamp(.8rem, 1.6vw, 1.05rem); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); opacity: 0; }
.ws-cap span { background: rgba(6,6,7,.6); padding: 6px 12px; }
.ws-final { position: absolute; left: 0; right: 0; bottom: 12vh; text-align: center; padding: 0 20px; opacity: 0; }
.ws-final h2 { margin: 10px 0 12px; }
.ws-final p { color: #ddd6ca; font-size: 1.15rem; margin: 0; }
@media (prefers-reduced-motion: reduce) {
  .wheel-scene { height: auto; }
  .ws-stage { position: relative; height: 80vh; }
  .ws-photo { clip-path: none; }
  .ws-wheel, .ws-cap { display: none; }
  .ws-final { opacity: 1; }
}

/* phone fixes (build 3) */
@media (max-width: 900px) { .hero .container { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 720px) {
  .stat .num { font-size: clamp(1.9rem, 9vw, 2.6rem); }
  .opener .rating.mobile-only { display: none; } /* the review band on top already shows 5.0 */
}
/* tables on light paper sections */
.paper table { background: #fff; }
.paper th, .paper td { border-bottom-color: rgba(20,20,20,.1); color: var(--ink); }
.paper .table-wrap { border-color: rgba(20,20,20,.14); }
.paper th { color: #6b665c; }
