:root {
  --black: #07080a;
  --ink: #0d0f12;
  --panel: #13161a;
  --panel-2: #1a1e23;
  --line: rgba(255, 255, 255, .1);
  --line-2: rgba(255, 255, 255, .2);
  --red: #e30613;
  --red-hot: #ff2b38;
  --white: #f4f5f6;
  --muted: #a3a9b1;
  --font: "Heebo", system-ui, "Segoe UI", Arial, sans-serif;
  --mono: "JetBrains Mono", "Heebo", ui-monospace, Consolas, monospace;
  --radius: 14px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1200px, 100%); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: fixed; top: -60px; right: 16px; z-index: 200;
  background: var(--white); color: #000; padding: 8px 16px; border-radius: 8px;
}
.skip:focus { top: 12px; }

/* top progress, reads like a shift light */
.shift-bar { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120; }
.shift-bar span {
  display: block; height: 100%;
  background: linear-gradient(to left, var(--red-hot), var(--red));
  box-shadow: 0 0 12px var(--red);
  transform: scaleX(0); transform-origin: right;
}

/* type */
h1, h2, h3 { font-weight: 900; font-style: italic; line-height: 1.04; letter-spacing: -.01em; }
h1 { font-size: clamp(3.3rem, 10.5vw, 8.5rem); }
h2 { font-size: clamp(2.1rem, 5vw, 3.8rem); }
h3 { font-size: 1.45rem; line-height: 1.2; }
.accent { color: var(--red); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: .86rem; letter-spacing: .06em; color: var(--muted);
  margin-bottom: 16px;
}
.dot { width: 8px; height: 8px; background: var(--red); border-radius: 50%; box-shadow: 0 0 10px var(--red); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.lead { font-size: clamp(1.05rem, 1.7vw, 1.3rem); color: #d3d6da; max-width: 34em; }
.section-sub { color: var(--muted); font-size: 1.1rem; max-width: 36em; margin-top: 14px; }
.fine { font-size: .85rem; color: var(--muted); line-height: 1.55; }
.fine-center { text-align: center; margin-top: 22px; }

/* buttons, slanted like the logo plate */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 30px; border: 0; cursor: pointer;
  background: var(--red); color: #fff; font-weight: 700;
  border-radius: 9px; transform: skewX(-12deg);
  overflow: hidden; isolation: isolate;
  transition: transform .25s var(--ease), box-shadow .25s, background .25s;
}
.btn > span { display: block; transform: skewX(12deg); }
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .6s var(--ease);
}
.btn:hover { box-shadow: 0 8px 34px rgba(227, 6, 19, .5); transform: skewX(-12deg) translateY(-2px); }
.btn:hover::after { transform: translateX(120%); }
.btn-ghost { background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px var(--white); }
.btn-sm { min-height: 42px; padding: 0 20px; font-size: .95rem; }
.btn-wide { width: 100%; grid-column: 1 / -1; }

/* header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s, box-shadow .3s;
}
/* blur sits on a pseudo-element: on the header itself it would trap the fixed mobile menu */
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; transition: background .3s, box-shadow .3s; }
.site-header.scrolled::before { background: rgba(7, 8, 10, .92); box-shadow: 0 1px 0 var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.brand img { width: auto; height: 40px; }
.main-nav { display: flex; align-items: center; gap: 28px; font-size: .97rem; font-weight: 500; }
.main-nav a:not(.btn) { position: relative; padding: 6px 0; color: #d3d6da; transition: color .2s; }
.main-nav a:not(.btn)::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease);
}
.main-nav a:not(.btn):hover { color: #fff; }
.main-nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav-toggle { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; right: 9px; width: 26px; height: 2px; background: #fff; transition: transform .25s, top .25s; }
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 26px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding-block: 110px 56px; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to left, rgba(7, 8, 10, .92) 8%, rgba(7, 8, 10, .35) 55%, transparent 80%),
    linear-gradient(to top, var(--black), transparent 24%);
}
.hero-inner { position: relative; }
.line { display: block; overflow: hidden; padding: .05em .22em; margin-inline: -.22em; }
.hero-rise { display: block; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; padding-inline: 6px; }
.lead { margin-top: 22px; }
.hud {
  display: flex; flex-wrap: wrap; gap: 8px 34px; margin-top: 46px; padding-top: 18px;
  border-top: 1px solid var(--line); width: fit-content; max-width: 100%;
  font-family: var(--mono);
}
.hud dt { font-size: .7rem; letter-spacing: .12em; color: var(--muted); }
.hud dd { font-size: 1.35rem; font-weight: 700; font-variant-numeric: tabular-nums; direction: ltr; text-align: right; }
.hud-note dd { font-family: var(--font); font-size: 1rem; line-height: 2.03; color: var(--muted); font-weight: 500; }

.js .hero-rise { transform: translateY(110%); }
.js .hero-in { opacity: 0; transform: translateY(16px); }
.js.ready .hero-rise {
  transform: none; transition: transform 1s var(--ease);
  transition-delay: calc(var(--d) * 90ms);
}
.js.ready .hero-in {
  opacity: 1; transform: none; transition: opacity .8s, transform .8s var(--ease);
  transition-delay: calc(var(--d) * 110ms);
}

/* ticker */
.ticker { border-block: 1px solid var(--line); overflow: hidden; background: var(--ink); direction: ltr; }
.ticker-track { display: flex; width: max-content; animation: ticker 36s linear infinite; }
.ticker-track span {
  display: inline-flex; align-items: center; gap: 34px; padding: 15px 0 15px 34px;
  font-family: var(--mono); font-size: .82rem; letter-spacing: .14em; color: var(--muted); white-space: nowrap;
}
.ticker-track span::after { content: ""; width: 14px; height: 6px; background: var(--red); transform: skewX(-24deg); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* sections */
.section { padding-block: clamp(76px, 11vw, 140px); position: relative; }
.section-dark { background: var(--ink); }
.section-head { margin-bottom: clamp(36px, 5vw, 60px); }

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s, transform .9s var(--ease); transition-delay: var(--stagger, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  --mx: 50%; --my: 50%;
  position: relative; padding: 28px 26px 30px; min-height: 240px;
  background: var(--panel); border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--line); overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .3s; pointer-events: none;
  background: radial-gradient(320px circle at var(--mx) var(--my), rgba(227, 6, 19, .24), transparent 70%);
}
.card::after {
  content: ""; position: absolute; top: 0; left: 0; width: 70px; height: 4px;
  background: var(--red); transform: skewX(-30deg) translateX(-8px);
  transition: width .4s var(--ease);
}
.card:hover::before { opacity: 1; }
.card:hover::after { width: 150px; }
.card > * { position: relative; }
.card-tag {
  display: block; font-family: var(--mono); font-size: .78rem; font-weight: 700;
  color: var(--red-hot); letter-spacing: .12em; margin-bottom: 42px;
}
.card p { color: var(--muted); margin-top: 10px; font-size: 1rem; line-height: 1.6; }

.stage-switch {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; margin-top: 28px;
  background: var(--panel); border-radius: 11px; box-shadow: inset 0 0 0 1px var(--line);
}
.stage-switch button {
  min-height: 44px; border: 0; border-radius: 8px; background: transparent; cursor: pointer;
  color: var(--muted); font-weight: 700; font-size: .95rem; transition: background .2s, color .2s;
}
.stage-switch button:hover { color: #fff; }
.stage-switch button[aria-pressed="true"] { background: var(--red); color: #fff; }

/* coding console */
.console {
  display: grid; grid-template-columns: 1fr 1fr; overflow: hidden;
  background: var(--panel); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line);
}
.switches { padding: 10px; }
.switches button {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%;
  min-height: 68px; padding: 10px 16px; background: none; border: 0; border-radius: 10px;
  text-align: right; cursor: pointer; transition: background .2s;
}
.switches button:hover { background: rgba(255, 255, 255, .05); }
.switch-text b { display: block; font-weight: 700; line-height: 1.3; }
.switch-text small { color: var(--muted); font-size: .82rem; }
.toggle {
  flex: none; position: relative; width: 52px; height: 28px; border-radius: 8px;
  background: #2a2f36; transform: skewX(-12deg); transition: background .25s, box-shadow .25s;
}
.toggle::after {
  content: ""; position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border-radius: 5px;
  background: #fff; transition: right .3s var(--ease);
}
[aria-checked="true"] .toggle { background: var(--red); box-shadow: 0 0 16px rgba(227, 6, 19, .6); }
[aria-checked="true"] .toggle::after { right: 28px; }
.terminal { display: flex; flex-direction: column; min-width: 0; background: #08090b; border-inline-start: 1px solid var(--line); }
.terminal-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: .72rem; color: var(--muted); }
.terminal-bar i { width: 9px; height: 9px; border-radius: 50%; background: #2a2f36; }
.terminal-bar i:first-child { background: var(--red); }
.terminal-bar span { margin-left: 8px; }
.terminal pre {
  flex: 1; margin: 0; padding: 16px; height: 400px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  font-family: var(--mono); font-size: .8rem; line-height: 1.75; color: #b6bcc4; white-space: pre-wrap; word-break: break-all;
}
.terminal code { display: block; font: inherit; }
.terminal .ok { color: #58d68d; }
.terminal .cmd { color: #fff; font-weight: 700; }
.terminal .hl { color: var(--red-hot); }
.terminal .cursor { display: inline-block; width: 8px; height: 1em; background: var(--red); vertical-align: -2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* process */
.process-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 6vw, 80px); }
.gauge-sticky { position: sticky; top: calc(50vh - 200px); }
#gauge { width: min(400px, 100%); margin-inline: auto; overflow: visible; }
.gauge-value { fill: #fff; font: 700 38px var(--mono); }
.gauge-unit { fill: var(--muted); font: 400 10px var(--mono); letter-spacing: .14em; }
.gauge-label { fill: #d3d6da; font: 700 15px var(--mono); }
.gauge-label.red { fill: var(--red-hot); }
.steps { display: flex; flex-direction: column; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: 22px; padding-block: clamp(32px, 7vh, 64px);
  border-top: 1px solid var(--line); opacity: .36; transition: opacity .45s;
}
.step.on { opacity: 1; }
.step-num { font-family: var(--mono); font-size: 1rem; font-weight: 700; color: var(--muted); padding-top: 3px; transition: color .3s; }
.step.on .step-num { color: var(--red-hot); }
.step h3 { font-size: clamp(1.45rem, 2.6vw, 2rem); }
.step p { color: var(--muted); margin-top: 10px; max-width: 32em; }

/* faq */
.faq-wrap { max-width: 900px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative; display: block; padding: 22px 0 22px 44px; cursor: pointer; list-style: none;
  font-weight: 700; font-size: 1.15rem; transition: color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--red-hot); }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; left: 6px; top: 50%; width: 16px; height: 2px; background: var(--red);
  transition: transform .3s var(--ease);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details p { padding: 0 0 24px 44px; color: var(--muted); max-width: 44em; }

/* contact */
.contact { background: linear-gradient(180deg, var(--black), #15060a); overflow: hidden; }
.contact-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-list { margin-top: 32px; }
.contact-list li { display: flex; justify-content: space-between; gap: 16px; padding-block: 13px; border-top: 1px solid var(--line); }
.contact-list span { color: var(--muted); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.lead-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: clamp(20px, 3vw, 32px);
  background: rgba(19, 22, 26, .85); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line);
}
.field-wide { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 6px; font-weight: 500; font-size: .95rem; }
.field small { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  background: #0b0d10; border: 1px solid var(--line-2); border-radius: 9px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; }
.field input[dir="ltr"] { text-align: left; }
.field ::placeholder { color: #6d737b; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--red-hot); box-shadow: 0 0 0 3px rgba(227, 6, 19, .25); }
.field [aria-invalid="true"] { border-color: var(--red-hot); }
.form-status { grid-column: 1 / -1; font-size: .92rem; color: #ffb3b8; min-height: 1.5em; }
.form-status.good { color: #7fe0a6; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 30px; background: var(--black); }
.footer-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-row img { height: 34px; width: auto; }
.footer-row p { color: var(--muted); font-size: .85rem; }

/* responsive */
@media (max-width: 980px) {
  .nav-toggle { display: block; z-index: 2; }
  .main-nav {
    position: fixed; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 22px;
    background: rgba(7, 8, 10, .97); font-size: 1.5rem; font-weight: 700;
    visibility: hidden; opacity: 0; transition: opacity .25s, visibility .25s;
  }
  .main-nav.open { visibility: visible; opacity: 1; }
  .btn-sm { min-height: 52px; padding: 0 30px; font-size: 1.05rem; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .contact-grid, .process-grid { grid-template-columns: 1fr; }
  .console { grid-template-columns: 1fr; }
  .terminal { border-inline-start: 0; border-top: 1px solid var(--line); }
  .terminal pre { height: 230px; }
  .gauge-col { order: 2; }
  .gauge-sticky { position: static; }
  #gauge { width: min(300px, 80%); }
  .step { padding-block: 26px; }
  .hero-shade { background: linear-gradient(to left, rgba(7, 8, 10, .68), rgba(7, 8, 10, .38)), linear-gradient(to top, var(--black), transparent 24%); }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .card-tag { margin-bottom: 20px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .hud { gap: 8px 22px; margin-top: 34px; }
  .hud dd { font-size: 1.1rem; }
  .hud-note { display: none; }
  .lead-form { grid-template-columns: 1fr; }
  .brand img { height: 34px; }
  .faq summary { padding-left: 34px; }
  .faq details p { padding-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .ticker-track { animation: none; }
}

/* circuit background */
[data-circuit] { overflow: hidden; }
[data-circuit] > .wrap { position: relative; z-index: 1; }
.circuit {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .7;
}
.circuit .trace { fill: none; stroke: rgba(255, 255, 255, .06); stroke-width: 1.5; }
.circuit .pad { fill: #1b1f25; stroke: rgba(255, 255, 255, .14); }
.circuit .pulse {
  fill: none; stroke: var(--red-hot); stroke-width: 2.5; stroke-linecap: round;
  stroke-dasharray: 7 100; stroke-dashoffset: 107; animation: tracePulse 7s linear infinite;
}
@keyframes tracePulse { to { stroke-dashoffset: 0; } }

/* service icons */
.card-tag { margin-bottom: 18px; }
.card-icon { display: block; width: 58px; height: 58px; margin-bottom: 18px; }
.card-icon svg { width: 100%; height: 100%; overflow: visible; }
.card-icon svg > * {
  fill: none; stroke: var(--white); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: stroke .3s;
}
.js .card-icon svg > * { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s var(--ease) .25s, stroke .3s; }
.js .card.in .card-icon svg > * { stroke-dashoffset: 0; }
.card:hover .card-icon svg > * { stroke: var(--red-hot); }

/* vehicle checker */
.check { background: radial-gradient(ellipse at 20% 0, rgba(227, 6, 19, .12), transparent 55%), var(--black); }
.ck-panel {
  display: grid; grid-template-columns: minmax(250px, 3fr) 8fr; overflow: hidden;
  background: rgba(19, 22, 26, .92); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line);
}
.ck-side { display: flex; flex-direction: column; gap: 14px; padding: 24px; background: rgba(0, 0, 0, .25); border-inline-end: 1px solid var(--line); }
.ck-side select:disabled { opacity: .45; }
.ck-side a, a.inline { color: var(--red-hot); text-decoration: underline; }
.ck-turbo { width: min(210px, 100%); margin: 6px auto; }
.tb-housing { fill: #15181d; stroke: #3a3f47; stroke-width: 2; }
.tb-ring { fill: none; stroke: #3a3f47; stroke-width: 1.5; }
.tb-ring.faint { stroke: rgba(255, 255, 255, .08); }
.tb-wheel path { fill: #cfd3d8; stroke: #6d737b; stroke-width: 1; }
.tb-hub { fill: var(--red); }
.tb-nut { fill: #fff; }
.ck-main { position: relative; padding: clamp(20px, 3vw, 32px); min-height: 420px; min-width: 0; }
.ck-idle { display: grid; place-content: center; text-align: center; gap: 8px; min-height: 360px; color: var(--muted); }
.ck-idle-code { font-family: var(--mono); font-size: clamp(1.1rem, 2.6vw, 1.7rem); font-weight: 700; color: var(--white); letter-spacing: .06em; }
.ck-blink { color: var(--red-hot); animation: blink 1s steps(2) infinite; }
.ck-results { display: flex; flex-direction: column; gap: 18px; }
.ck-results[hidden], .ck-idle[hidden] { display: none; }
.ck-scan {
  position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: linear-gradient(to bottom, transparent, rgba(227, 6, 19, .22) 90%, rgba(255, 138, 145, .9) 100%);
  background-size: 100% 130px; background-repeat: no-repeat; animation: ckScan .9s ease-out both;
}
@keyframes ckScan { from { background-position: 0 -130px; opacity: 1; } 85% { opacity: 1; } to { background-position: 0 100%; opacity: 0; } }
.ck-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.ck-make { font-family: var(--mono); font-size: .8rem; color: var(--red-hot); letter-spacing: .12em; text-align: right; }
.ck-head h3 { font-size: clamp(1.4rem, 3vw, 2.1rem); text-align: right; }
.ck-years { color: var(--muted); font-size: .92rem; }
.ck-switch { margin: 0; min-width: min(320px, 100%); grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 1fr; }
.ck-gauges { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ck-gauges.one { grid-template-columns: minmax(0, 320px); justify-content: center; }
.ck-gauge { position: relative; text-align: center; padding: 14px 10px 16px; background: rgba(0, 0, 0, .28); border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); }
.ck-gauge svg { width: min(230px, 100%); margin-inline: auto; }
.ck-gauge path { fill: none; stroke-linecap: round; }
.g-bg { stroke: #262a30; stroke-width: 10; }
.g-tuned { stroke: var(--red); stroke-width: 10; stroke-dasharray: 0 100; transition: stroke-dasharray .8s var(--ease); }
.g-stock { stroke: #eceef0; stroke-width: 4; stroke-dasharray: 0 100; transition: stroke-dasharray .8s var(--ease); }
.ck-gauge-read { position: absolute; top: clamp(50px, 8vw, 74px); inset-inline: 0; font-family: var(--mono); }
.ck-gauge-read strong { display: block; font-size: clamp(1.7rem, 4vw, 2.8rem); line-height: 1.05; font-variant-numeric: tabular-nums; }
.ck-gauge-read small { color: var(--muted); font-size: .75rem; }
.ck-gauge-label { display: block; font-weight: 700; margin-top: -8px; }
.ck-gain { display: block; font-family: var(--mono); font-size: .86rem; color: #ff8a91; }
.ck-note { padding: 12px 16px; background: rgba(227, 6, 19, .1); border-inline-start: 3px solid var(--red); border-radius: 8px; font-size: .95rem; }
.ck-ladder { display: grid; gap: 8px; }
.ck-row { display: grid; grid-template-columns: 74px 1fr auto; gap: 12px; align-items: center; font-family: var(--mono); font-size: .78rem; color: var(--muted); }
.ck-row-name { text-align: right; }
.ck-row-track { height: 10px; background: #1f2329; border-radius: 3px; overflow: hidden; transform: skewX(-18deg); }
.ck-row-track i { display: block; height: 100%; background: #666c74; animation: ckGrow .8s var(--ease) both; transform-origin: right; }
.ck-row.on { color: #fff; }
.ck-row.on .ck-row-track i { background: var(--red); box-shadow: 0 0 10px var(--red); }
@keyframes ckGrow { from { transform: scaleX(0); } }
.ck-results .fine a { color: var(--white); text-decoration: underline; }
.ck-coding { padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.ck-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.ck-group h4 { margin: 0 0 8px; font-family: var(--mono); font-size: .8rem; color: var(--red-hot); }
.ck-group ul { display: grid; gap: 6px; }
.ck-group li { position: relative; padding-inline-start: 20px; font-size: .93rem; line-height: 1.4; }
.ck-group li::before { content: ""; position: absolute; inset-inline-start: 0; top: .42em; width: 11px; height: 7px; background: var(--red); transform: skewX(-22deg); }
.ck-none { color: var(--muted); }
.ck-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* x-ray car */
.xray { background: linear-gradient(180deg, var(--black), #0b0d11); overflow: hidden; }
.xray-stage { margin-inline: auto; max-width: 1040px; }
.xray-car { width: 100%; overflow: visible; }
.xr-ground { stroke: rgba(255, 255, 255, .22); stroke-width: 1.5; }
.xr-road { stroke: var(--red); stroke-width: 2; stroke-dasharray: 46 34; animation: xrRoad 1.1s linear infinite; opacity: .7; }
@keyframes xrRoad { to { stroke-dashoffset: -80; } }
.xr-body { fill: rgba(255, 255, 255, .025); stroke: #e7e9ec; stroke-width: 2.5; stroke-linejoin: round; }
.xr-glass { fill: rgba(150, 175, 205, .07); stroke: rgba(255, 255, 255, .45); stroke-width: 1.5; }
.xr-line { fill: none; stroke: rgba(255, 255, 255, .32); stroke-width: 1.5; }
.xr-beam { animation: xrBeam 5.5s ease-in-out infinite; }
@keyframes xrBeam { from { transform: translateX(0); } to { transform: translateX(1200px); } }
.xr-bus { fill: none; stroke: rgba(255, 255, 255, .13); stroke-width: 1.5; transition: stroke .3s; }
.xr-bus.on { stroke: var(--red); }
.xr-pulse { fill: none; stroke: transparent; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 10 100; animation: tracePulse 1.5s linear infinite; }
.xr-pulse.on { stroke: #ffb3b8; opacity: .95; }
.xr-tyre { fill: #0b0d10; stroke: #e7e9ec; stroke-width: 2.5; }
.xr-rim { fill: none; stroke: rgba(255, 255, 255, .4); stroke-width: 1.5; }
.xr-spokes { animation: xrSpin 1.4s linear infinite; }
.xr-spokes path { fill: rgba(255, 255, 255, .55); }
@keyframes xrSpin { to { transform: rotate(-360deg); } }
.xr-hubcap { fill: var(--red); }
.xr-node { cursor: pointer; }
.xr-node rect { fill: #13161a; stroke: rgba(255, 255, 255, .55); stroke-width: 1.5; transition: fill .25s, stroke .25s; }
.xr-node text { fill: #fff; font: 700 9px var(--mono); pointer-events: none; }
.xr-halo { fill: var(--red); opacity: 0; transition: opacity .25s; }
.xr-node:hover rect { stroke: var(--red-hot); }
.xr-node.on rect { fill: var(--red); stroke: #fff; }
.xr-node.on .xr-halo { opacity: .28; animation: pulse 1.4s infinite; }
.xray-tabs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 18px; }
.xray-tabs button {
  display: grid; gap: 2px; min-height: 64px; padding: 8px; cursor: pointer; border: 0; border-radius: 10px;
  background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); transition: background .2s;
}
.xray-tabs b { font-family: var(--mono); font-size: .8rem; color: var(--red-hot); }
.xray-tabs span { font-size: .88rem; color: #d3d6da; }
.xray-tabs button:hover { background: var(--panel-2); }
.xray-tabs button[aria-pressed="true"] { background: var(--red); }
.xray-tabs button[aria-pressed="true"] b, .xray-tabs button[aria-pressed="true"] span { color: #fff; }
.xray-panel { margin-top: 14px; padding: 20px 24px; background: var(--panel); border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); }
.xray-panel p { color: var(--muted); margin-top: 6px; }
.xray-link { display: inline-block; margin-top: 10px; color: var(--red-hot); font-weight: 700; text-decoration: underline; }

@media (max-width: 980px) {
  .ck-panel { grid-template-columns: 1fr; }
  .ck-side { border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .ck-turbo { width: 130px; }
  .xray-tabs { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 620px) {
  .ck-row { grid-template-columns: 62px 1fr; }
  .ck-row-vals { grid-column: 1 / -1; text-align: right; }
  .ck-switch { width: 100%; }
  .ck-form { grid-template-columns: 1fr; }
  .ck-gauge-read { top: clamp(38px, 11vw, 52px); }
  .ck-gauge-read strong { font-size: 1.5rem; }
  .ck-gain { font-size: .72rem; }
}
@media (prefers-reduced-motion: reduce) {
  .circuit .pulse, .xr-beam, .xr-pulse, .xr-road, .xr-spokes, .ck-scan { animation: none; display: none; }
  .xr-road, .xr-spokes { display: inline; }
}

/* drivetrain animation */
.drive { overflow: hidden; }
.drive-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 16px; }
.drive-switch { margin: 0; min-width: min(340px, 100%); }
.drive-parts { display: flex; flex-wrap: wrap; gap: 6px; }
.drive-parts button {
  min-height: 40px; padding: 0 14px; border: 0; border-radius: 8px; cursor: pointer;
  background: var(--panel); color: #d3d6da; font-size: .92rem; box-shadow: inset 0 0 0 1px var(--line); transition: background .2s, color .2s;
}
.drive-parts button:hover { background: var(--panel-2); color: #fff; }
.drive-parts button[aria-pressed="true"] { background: var(--white); color: #000; }
.drive-stage {
  position: relative; padding: clamp(10px, 2vw, 22px); background: #090b0e; border-radius: var(--radius); overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line);
}
.dt-side, .dt-top { width: 100%; }
.dt-top { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.dt-hud {
  position: absolute; top: clamp(12px, 2vw, 22px); left: clamp(12px, 2vw, 22px); z-index: 2;
  display: grid; grid-template-columns: repeat(3, auto); gap: 4px 20px; font-family: var(--mono);
}
.dt-hud span { display: block; font-size: .66rem; letter-spacing: .12em; color: var(--muted); }
.dt-hud strong { display: block; font-size: clamp(1.15rem, 2.6vw, 1.9rem); line-height: 1.1; font-variant-numeric: tabular-nums; }
.dt-hud strong.flash { color: var(--red-hot); }
.dt-rev { grid-column: 1 / -1; height: 5px; background: #23272d; border-radius: 3px; overflow: hidden; }
.dt-rev i { display: block; height: 100%; background: var(--white); transform: scaleX(0); transform-origin: left; }
.dt-rev i.red { background: var(--red-hot); box-shadow: 0 0 10px var(--red); }
.dt-ground { stroke: rgba(255, 255, 255, .22); stroke-width: 1.5; }
.dt-road { stroke: var(--red); stroke-width: 2.5; stroke-dasharray: 46 34; opacity: .7; }
.dt-pole { stroke: rgba(255, 255, 255, .08); stroke-width: 2; }
.dt-body { fill: rgba(255, 255, 255, .025); stroke: #e7e9ec; stroke-width: 2.5; stroke-linejoin: round; }
.dt-glass { fill: rgba(150, 175, 205, .05); stroke: rgba(255, 255, 255, .28); stroke-width: 1.5; }
.dt-line { fill: none; stroke: rgba(255, 255, 255, .2); stroke-width: 1.5; }
.dt-tyre { fill: rgba(11, 13, 16, .72); stroke: #e7e9ec; stroke-width: 2.5; }
.dt-rimline { fill: none; stroke: rgba(255, 255, 255, .28); stroke-width: 1.5; }
.dt-wheel-spin path { fill: rgba(255, 255, 255, .34); }
.dt-part { fill: #171b20; stroke: rgba(255, 255, 255, .62); stroke-width: 1.6; transition: stroke .2s, fill .2s; }
[data-part] { cursor: pointer; }
.dt-bore { fill: #0b0d10; stroke: rgba(255, 255, 255, .25); }
.dt-piston rect { fill: #cfd3d8; }
.dt-piston path { stroke: #8b9199; stroke-width: 2.5; }
.dt-crank { stroke: var(--red-hot); stroke-width: 4; stroke-dasharray: 10 6; }
.dt-turbo-spin path { fill: #e7e9ec; }
.dt-gear { fill: #2a2f36; stroke: #c7cbd0; stroke-width: 1.2; }
.dt-gear-hub { fill: #0b0d10; stroke: var(--red-hot); stroke-width: 1.5; }
.dt-pipe { fill: none; stroke: #6d737b; stroke-width: 6; stroke-linejoin: round; }
.dt-shaft { fill: none; stroke: #c7cbd0; stroke-width: 8; stroke-linecap: round; }
.dt-shaft.thin { stroke-width: 6; }
.dt-spin-lines { fill: none; stroke: #0b0d10; stroke-width: 8; stroke-dasharray: 3 15; pointer-events: none; }
.dt-joint { fill: #e7e9ec; stroke: #0b0d10; }
.dt-flow { fill: none; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; stroke-dasharray: 5 7; transition: opacity .2s; }
.dt-flow.power { stroke: var(--red-hot); stroke-width: 4; opacity: .95; }
.dt-flow.exhaust { stroke: #ffb066; stroke-width: 2.5; }
.dt-top-wheel rect { fill: #101317; stroke: #8b9199; stroke-width: 2; transition: stroke .2s; }
.dt-top-wheel.driven rect { stroke: var(--red-hot); }
.dt-tread { stroke: rgba(255, 255, 255, .4); stroke-width: 22; stroke-dasharray: 2 8; }
.dt-cyl { fill: #0b0d10; stroke: rgba(255, 255, 255, .5); stroke-width: 1.5; }
.dt-cyl.fire { fill: var(--red-hot); stroke: #fff; }
.dt-front-tag { fill: var(--muted); font: 700 11px var(--mono); letter-spacing: .16em; }
[data-part].hot .dt-part { stroke: var(--red-hot); fill: rgba(227, 6, 19, .22); }
[data-part].hot .dt-shaft, [data-part].hot .dt-pipe { stroke: var(--red-hot); }
.drive-info h3 { font-size: 1.3rem; }
@media (max-width: 620px) {
  .drive-parts button { min-height: 38px; padding: 0 11px; font-size: .86rem; }
  .dt-hud { gap: 2px 14px; }
  .drive-stage { padding-top: 62px; }
  .dt-hud span { font-size: .58rem; }
}

/* 3D scroll story */
.story { position: relative; height: 900vh; background: #08080b; }
.story-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
#storyCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.story-shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to left, rgba(5, 6, 9, .82), rgba(5, 6, 9, .34) 34%, transparent 56%), linear-gradient(to top, rgba(5, 6, 9, .5), transparent 22%);
}
.story-flash { position: absolute; inset: 0; pointer-events: none; opacity: 0; visibility: hidden; background: radial-gradient(circle at 50% 55%, #fff 0, #ffd2d6 30%, #ff2030 68%, #6d0208 100%); }
.story-caps { position: absolute; inset: 0; display: block; pointer-events: none; }
.cap { position: absolute; inset-inline-start: var(--gutter); top: 50%; margin-top: -9em; width: min(480px, calc(100% - 2 * var(--gutter))); opacity: 0; visibility: hidden; }
.cap.live a { pointer-events: auto; }
.cap h2 { font-size: clamp(2.6rem, 5.4vw, 4.8rem); text-shadow: 0 4px 34px rgba(0, 0, 0, .7); }
.cap p:not(.eyebrow):not(.cap-num) { margin-top: 14px; font-size: clamp(1.05rem, 1.7vw, 1.3rem); color: #e4e6e9; text-shadow: 0 2px 16px rgba(0, 0, 0, .85); }
.cap-num { font-family: var(--mono); font-size: .82rem; letter-spacing: .14em; color: #ff8a91; margin-bottom: 12px; text-align: right; }
.cap-main h1 { font-size: clamp(3.2rem, 7.4vw, 6.4rem); text-shadow: 0 4px 36px rgba(0, 0, 0, .65); }
.cap-main .lead { max-width: 24em; }
.cap-boom .btn { margin-top: 22px; }
.story-rail { position: absolute; inset-block: 22% 22%; left: 22px; width: 3px; background: rgba(255, 255, 255, .14); border-radius: 2px; overflow: hidden; }
.story-rail i { display: block; height: 100%; background: var(--red); box-shadow: 0 0 10px var(--red); transform: scaleY(0); transform-origin: top; }
.story-hint { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: grid; justify-items: center; gap: 6px; font-size: .86rem; color: #e4e6e9; transition: opacity .3s; pointer-events: none; }
.story-hint i { width: 22px; height: 34px; border: 2px solid rgba(255, 255, 255, .7); border-radius: 12px; position: relative; }
.story-hint i::after { content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--red-hot); animation: hintDrop 1.5s ease-in-out infinite; }
@keyframes hintDrop { 60% { transform: translateY(11px); opacity: 0; } 100% { opacity: 0; } }

/* no WebGL or reduced motion: a calm static version */
.story.no3d { height: auto; }
.story.no3d .story-sticky { position: relative; height: auto; padding-block: 120px 60px; }
.story.no3d #storyCanvas, .story.no3d .story-shade, .story.no3d .story-flash, .story.no3d .story-rail, .story.no3d .story-hint { display: none; }
.story.no3d .story-caps { position: relative; display: grid; gap: 40px; }
.story.no3d .cap { position: relative; margin: 0; top: auto; inset-inline-start: auto; opacity: 1 !important; visibility: visible !important; transform: none !important; width: auto; }

/* meet Tal */
.meet { background: linear-gradient(180deg, #08080b, var(--black)); }
.meet-grid { display: grid; grid-template-columns: 5fr 6fr; align-items: center; gap: clamp(28px, 6vw, 80px); }
.meet-photo { position: relative; display: grid; justify-items: center; }
.meet-photo::before { content: ""; position: absolute; inset: 8% 6% 4%; background: radial-gradient(circle at 50% 42%, rgba(227, 6, 19, .34), transparent 66%); pointer-events: none; }
.meet-photo::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: -1.5%; height: 5%; background: radial-gradient(ellipse, rgba(0, 0, 0, .8), transparent 72%); pointer-events: none; }
.meet-photo img { position: relative; z-index: 1; width: min(420px, 82%); height: auto; }
.meet-copy .btn { margin-top: 24px; margin-inline-start: 6px; }

@media (max-width: 760px) {
  .story { height: 800vh; }
  .story-shade { background: linear-gradient(to top, rgba(5, 6, 9, .88), rgba(5, 6, 9, .2) 44%, transparent 60%); }
  .cap { top: auto; margin-top: 0; bottom: 34px; }
  .cap-main { bottom: 74px; }
  .cap h2 { font-size: clamp(2.1rem, 9vw, 2.9rem); }
  .cap-main h1 { font-size: clamp(2.7rem, 12vw, 3.5rem); }
  .story-rail { display: none; }
  .story-hint { display: none; }
  .meet-grid { grid-template-columns: 1fr; }
}

.story-load { position: absolute; left: 22px; bottom: 22px; font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; color: var(--muted); direction: ltr; }

/* first paint: the headline and a dusk backdrop appear at once, the 3D scene fades in over them */
.story-sticky { background: linear-gradient(to bottom, #0b0e1a 0%, #1c1a30 36%, #5a2d3a 50%, #2a1a1c 56%, #101013 100%); }
#storyCanvas { opacity: 0; transition: opacity .6s ease; }
.story.ready3d #storyCanvas { opacity: 1; }
.cap-main { opacity: 1; visibility: visible; }

/* sections far from the screen do no work at all */
main > .section { content-visibility: auto; contain-intrinsic-size: auto 900px; }
