﻿@font-face {
  font-family: 'Big Shoulders Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(assets/fonts/big-shoulders-display-latin-ext-0.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: 'Big Shoulders Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(assets/fonts/big-shoulders-display-latin-1.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: 'Big Shoulders Display';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(assets/fonts/big-shoulders-display-latin-ext-0.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: 'Big Shoulders Display';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(assets/fonts/big-shoulders-display-latin-1.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: 'Big Shoulders Display';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(assets/fonts/big-shoulders-display-latin-ext-0.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: 'Big Shoulders Display';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(assets/fonts/big-shoulders-display-latin-1.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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/jetbrains-mono-latin-ext-2.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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/jetbrains-mono-latin-3.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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/jetbrains-mono-latin-ext-2.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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/jetbrains-mono-latin-3.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: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/manrope-latin-ext-4.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: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/manrope-latin-5.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: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/manrope-latin-ext-4.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: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/manrope-latin-5.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: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/manrope-latin-ext-4.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: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/manrope-latin-5.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: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(assets/fonts/manrope-latin-ext-4.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: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(assets/fonts/manrope-latin-5.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: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(assets/fonts/manrope-latin-ext-4.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: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(assets/fonts/manrope-latin-5.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;
}

:root {
  --font-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --radius: 18px;
  --header-h: 60px;
  --track-h: 40px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Palette inspired by the Ferrari SF-26 livery: burgundy, rosso, white, shield yellow (dark only) */
:root {
  --bg: #0c0809;
  --bg-2: #140c0e;
  --panel: #1b1214;
  --panel-2: #25171a;
  --ink: #f6efed;
  --ink-2: #d8caca;
  --muted: #a39294;
  --line: rgba(246, 239, 237, .11);
  --line-2: rgba(246, 239, 237, .22);
  --rust: #c8102e;
  --rust-text: #ff4d5e;
  --burgundy: #5e0a17;
  --on-rust: #ffffff;
  --volt: #ffd100;
  --hazard: #ffd100;
  --kerb-white: #f6efed;
  --shadow: 0 24px 60px rgba(0, 0, 0, .5);
  color-scheme: dark;
}


*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%;  overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; transition: background-color .3s, color .3s; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--rust); color: var(--on-rust); }
.lucide { width: 1.15em; height: 1.15em; flex: none; }

.wrap { width: min(1280px, 100% - 32px); margin-inline: auto; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 100; background: var(--rust); color: var(--on-rust); padding: .6em 1em; border-radius: 10px; font-weight: 700; text-decoration: none; transition: top .2s; }
.skip:not(:focus) { clip-path: inset(50%); }
.skip:focus { top: 12px; }
.noscript { padding: 120px 16px; text-align: center; }

/* Topbar */
.topbar { position: fixed; inset: 0 0 auto; z-index: 50; transition: transform .35s var(--ease); }
.topbar.is-hidden { transform: translateY(calc(-1 * var(--header-h))); }
.topbar__row { position: relative; z-index: 1; height: var(--header-h); display: flex; align-items: center; gap: 14px; padding: 0 max(16px, 3vw); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.brand { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.brand span { color: var(--rust-text); }
.nav { margin-left: auto; display: flex; gap: 4px; }
.nav a { display: flex; align-items: baseline; gap: 6px; padding: 8px 12px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--ink-2); transition: color .2s, background-color .2s; }
.nav a small { font-family: var(--font-mono); font-size: .7rem; color: var(--muted); }
.nav a:hover, .nav a.is-active { color: var(--ink); background: var(--line); }
.nav a.is-active small { color: var(--rust-text); }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line-2); transition: border-color .2s, background-color .2s; }
.icon-btn:hover { border-color: var(--rust); }
.menu-btn { display: none; margin-left: auto; }

/* Profile */
.profile { position: relative; }
.profile__btn { width: 42px; height: 42px; border-radius: 12px; overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s; }
.profile__btn img { width: 100%; height: 100%; }
.profile__btn:hover { transform: rotate(-6deg) scale(1.05); }
.profile__btn[aria-expanded="true"] { box-shadow: 0 0 0 2px var(--rust); }
.profile__panel { position: absolute; top: calc(100% + 10px); left: 0; width: min(300px, calc(100vw - 32px)); padding: 8px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line-2); box-shadow: var(--shadow); animation: pop .18s var(--ease); }
.profile__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; }
.profile__row + .profile__row, .profile__about { border-top: 1px solid var(--line); }
.profile__row--col { flex-direction: column; align-items: stretch; }
.profile__label { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .95rem; }
.profile__label .lucide { color: var(--rust-text); }
.profile__about { padding: 12px; display: grid; gap: 10px; }
.profile__about p { color: var(--muted); font-size: .9rem; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }

.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 12px; background: var(--bg-2); }
.seg button { padding: 8px; border-radius: 9px; font-family: var(--font-mono); font-size: .85rem; font-weight: 500; color: var(--muted); transition: background-color .2s, color .2s; }
.seg button[aria-pressed="true"] { background: var(--panel); color: var(--ink); box-shadow: 0 1px 0 var(--line-2); }

/* Progress track */
.track { position: relative; height: var(--track-h); background: linear-gradient(color-mix(in srgb, var(--bg) 82%, transparent), transparent); pointer-events: none; }
.track__road { position: absolute; left: 0; right: 0; bottom: 6px; height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 14px, transparent 14px 24px); }
.track__fill { position: absolute; left: 0; right: 0; bottom: 5px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--burgundy), var(--rust), var(--rust-text)); transform: scaleX(0); transform-origin: left; }
.track__flag { position: absolute; right: max(16px, 3vw); bottom: 6px; width: 16px; height: 22px; color: var(--ink-2); }
.track__cloth { fill: var(--panel); }
.track.is-done .track__flag { animation: wave .5s ease-in-out infinite alternate; transform-origin: 0 100%; }
@keyframes wave { to { transform: skewY(-6deg) scaleX(.9); } }
.moto { position: absolute; left: 0; bottom: 4px; width: 46px; height: 30px; will-change: transform; }
.moto__svg { width: 100%; height: 100%; overflow: visible; transform-origin: 22% 90%; }
.puff { position: absolute; bottom: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); opacity: .5; animation: puff .7s ease-out forwards; }
@keyframes puff { to { transform: translateX(var(--dx, -18px)) translateY(-6px) scale(2.4); opacity: 0; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .6em; padding: .85em 1.35em; border-radius: 999px; font-weight: 700; text-decoration: none; border: 1.5px solid transparent; transition: transform .2s var(--ease), box-shadow .2s, border-color .2s, background-color .2s; }
.btn--primary { background: linear-gradient(135deg, var(--rust), var(--burgundy)); color: var(--on-rust); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px color-mix(in srgb, var(--rust) 40%, transparent); }
.btn--ghost { border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--rust); transform: translateY(-2px); }
.btn--small { padding: .6em 1em; font-size: .9rem; justify-content: center; background: var(--bg-2); }
.btn--small:hover { background: var(--rust); color: var(--on-rust); }
.btn--lg { padding: 1em 1.6em; font-size: 1.05rem; }

/* Hero */
.hero { position: relative; min-height: min(100svh, 980px); display: grid; align-items: center; padding: calc(var(--header-h) + var(--track-h) + 24px) 0 clamp(24px, 5svh, 64px); overflow: hidden; isolation: isolate; }
.pcb { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; -webkit-mask-image: linear-gradient(100deg, transparent 20%, #000 65%); mask-image: linear-gradient(100deg, transparent 20%, #000 65%); }
.pcb .trace { fill: none; stroke: var(--line-2); stroke-width: 2; }
.pcb .via { fill: var(--bg); stroke: var(--line-2); stroke-width: 2; }
.pcb .pulse { fill: none; stroke: var(--rust-text); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 50 950; stroke-dashoffset: 1000; animation: pulse var(--d, 6s) linear var(--delay, 0s) infinite; }
.pcb .pulse--volt { stroke: var(--volt); }
@keyframes pulse { to { stroke-dashoffset: 0; } }
.hero__glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(560px circle at var(--mx, 75%) var(--my, 45%), color-mix(in srgb, var(--rust) 22%, transparent), transparent 70%), radial-gradient(900px circle at 100% 0%, color-mix(in srgb, var(--burgundy) 45%, transparent), transparent 60%); pointer-events: none; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(24px, 3vw, 48px); align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); padding: 6px 14px 6px 10px; border: 1px solid var(--line-2); border-radius: 999px; }
.kicker__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--volt); box-shadow: 0 0 0 0 var(--volt); animation: blink 2s infinite; }
@keyframes blink { 50% { box-shadow: 0 0 0 6px transparent; opacity: .6; } }
.hero__name { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; line-height: .82; font-size: clamp(3.4rem, min(24cqi, 26svh), 13rem); letter-spacing: -.005em; margin: 24px 0 26px; }
.hero__text { container-type: inline-size; min-width: 0; }
.hero__name span { display: block; animation: rise .8s var(--ease) both; }
.hero__name span + span { animation-delay: .08s; }
.outline { color: transparent; -webkit-text-stroke: 2px var(--ink); transition: color .35s, -webkit-text-stroke-color .35s; }
.hero__name:hover .outline { color: var(--rust-text); -webkit-text-stroke-color: var(--rust-text); }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }
.hero__lead { font-size: clamp(1.1rem, 1.8vw, 1.35rem); color: var(--ink-2); max-width: none; font-weight: 500; }
.axes { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 26px 0 32px; }
.axes li { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; }
.axes .lucide { color: var(--rust-text); }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hero__cta .proof { margin-top: 0; }

/* Gauge */
.gauge { justify-self: center; align-self: center; width: clamp(300px, min(600px, calc(100svh - 150px), 44vw), 600px); }
.gauge__dial { position: relative; display: block; width: 100%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 38%, var(--panel-2), var(--panel) 70%); border: 1px solid var(--line-2); box-shadow: var(--shadow), inset 0 0 0 10px var(--bg-2), inset 0 0 0 11px var(--line); touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: transform .15s; }
.gauge__dial:active { transform: scale(.985); }
.gauge__dial svg { width: 100%; height: 100%; }
.g-arc { fill: none; stroke: var(--line-2); stroke-width: 2; }
.g-red { fill: none; stroke: var(--rust); stroke-width: 8; }
.g-live { fill: none; stroke: var(--rust); stroke-width: 3; stroke-linecap: round; opacity: .8; }
.g-tick { stroke: var(--ink-2); stroke-width: 3; }
.g-tick--minor { stroke: var(--muted); stroke-width: 1.5; }
.g-num { fill: var(--ink-2); font-family: var(--font-display); font-weight: 800; font-size: 21px; text-anchor: middle; dominant-baseline: central; }
.g-num--red { fill: var(--rust); }
.g-needle { fill: var(--rust); }
.g-hub { fill: var(--ink); }
.g-hub-in { fill: var(--rust); }
.g-rpm { fill: var(--ink); font-family: var(--font-mono); font-size: 24px; font-weight: 500; text-anchor: middle; }
.g-unit { fill: var(--muted); font-family: var(--font-mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; text-anchor: middle; }
.g-led { fill: var(--line-2); transition: fill .08s; }
.g-led.on-g { fill: var(--volt); }
.g-led.on-y { fill: var(--hazard); }
.g-led.on-r { fill: var(--rust); }
.gauge__dial.is-limit .g-led { animation: limiter .12s steps(2) infinite; }
@keyframes limiter { 50% { fill: var(--line-2); } }

/* Marquee */
.marquee { position: relative; overflow: hidden; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.marquee::before { content: ""; display: block; height: 8px; background: repeating-linear-gradient(90deg, var(--rust) 0 28px, var(--kerb-white) 28px 56px); }
.marquee__track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.marquee__item { display: flex; align-items: center; gap: .7em; padding: .45em .7em .45em 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.7rem, 4vw, 2.8rem); text-transform: uppercase; white-space: nowrap; }
.marquee__item::after { content: ""; width: .32em; height: .32em; background: var(--rust); transform: rotate(45deg); }
.marquee__item:nth-child(even) { color: transparent; -webkit-text-stroke: 1.5px var(--ink-2); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: clamp(32px, 3.6vw, 52px) 0; scroll-margin-top: max(0px, calc(var(--track-h) + 16px - clamp(32px, 3.6vw, 52px))); }
.section--alt { background: var(--bg-2); }
.section__head { margin-bottom: clamp(20px, 2.6vw, 30px); }
.eyebrow { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--rust-text); }
.h2 { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(2.6rem, 6.4vw, 4.8rem); line-height: 1.04; margin: 10px 0 14px; text-wrap: balance; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 60ch; font-weight: 500; }
.body { color: var(--muted); margin-top: 16px; max-width: 60ch; }
.mini-title { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin: 26px 0 12px; }

/* About */
.about { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.pitch { font-size: clamp(1.7rem, 3.2vw, 2.6rem); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; margin: 4px 0 18px; text-wrap: balance; }
.pitch mark { color: inherit; background: linear-gradient(transparent 60%, color-mix(in srgb, var(--rust) 45%, transparent) 60%) no-repeat 0 0 / 0% 100%; transition: background-size 1.1s var(--ease) .3s; }
.is-in .pitch mark, html:not(.js) .pitch mark { background-size: 100% 100%; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.stat { display: grid; gap: 6px; align-content: start; padding: clamp(18px, 2.4vw, 28px); position: relative; }
.stat:nth-child(even) { border-left: 1px solid var(--line); }
.stat:nth-child(n+3) { border-top: 1px solid var(--line); }
.stat::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--rust), transparent); opacity: .7; }
.stat__value { font-family: var(--font-display); font-weight: 900; font-size: clamp(2.8rem, 5vw, 4rem); line-height: .9; color: var(--rust-text); font-variant-numeric: tabular-nums; }
.stat__label { color: var(--ink-2); font-weight: 600; font-size: .95rem; line-height: 1.35; max-width: 22ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: .45em .95em; border: 1px solid var(--line-2); border-radius: 999px; font-size: .92rem; font-weight: 600; transition: border-color .2s, color .2s, transform .2s var(--ease); }
.chips li:hover { border-color: var(--rust); color: var(--rust-text); transform: translateY(-2px); }
.spec { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.spec__head { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; background: linear-gradient(120deg, var(--burgundy), var(--rust) 70%); color: var(--on-rust); font-family: var(--font-mono); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; }
.spec__brand { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: .06em; font-weight: 900; }
.spec__list { padding: 6px 24px 14px; }
.spec__list div { display: grid; grid-template-columns: minmax(100px, 32%) 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--line-2); }
.spec__list div:last-child { border-bottom: 0; }
.spec__list div { transition: background-color .2s; }
.spec__list div:hover dt { color: var(--rust-text); }
.spec__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px; border-top: 1px solid var(--line); background: var(--panel-2); font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.spec__barcode { width: 92px; height: 22px; flex: none; background: repeating-linear-gradient(90deg, var(--ink-2) 0 2px, transparent 2px 4px, var(--ink-2) 4px 5px, transparent 5px 8px, var(--ink-2) 8px 11px, transparent 11px 12px); opacity: .7; }
.spec__list dt { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.spec__list dd { font-weight: 600; }

/* Projects */
.projects { display: grid; gap: 18px; grid-template-columns: 1fr; }
.card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 24px; min-height: 260px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); overflow: hidden; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.card::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line-2) 1px, transparent 1px), linear-gradient(90deg, var(--line-2) 1px, transparent 1px); background-size: 22px 22px; -webkit-mask-image: radial-gradient(260px circle at var(--px, 50%) var(--py, 50%), #000, transparent 70%); mask-image: radial-gradient(260px circle at var(--px, 50%) var(--py, 50%), #000, transparent 70%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--rust) 55%, transparent); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; }
.card__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.card__icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: color-mix(in srgb, var(--rust) 14%, transparent); color: var(--rust-text); }
.card__icon .lucide { width: 22px; height: 22px; }
.card__code { font-family: var(--font-mono); font-size: .75rem; color: var(--muted); }
.card__status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--volt); }
.card__status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.card h3 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.7rem, 2.6vw, 2.1rem); line-height: 1.1; text-transform: uppercase; }
.card p { color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.tags li { font-family: var(--font-mono); font-size: .72rem; padding: 4px 9px; border-radius: 6px; border: 1px solid var(--line); background: var(--panel-2); color: var(--ink-2); }
.soon { flex: 1; margin-inline: 20px; display: flex; align-items: stretch; border-radius: 10px; overflow: hidden; background: #0a0a0a; border: 1px solid color-mix(in srgb, var(--hazard) 55%, transparent); box-shadow: 0 0 26px color-mix(in srgb, var(--hazard) 16%, transparent); }
.soon__stripes { width: 16px; flex: none; background: repeating-linear-gradient(-45deg, var(--hazard) 0 6px, #0a0a0a 6px 12px); animation: hazard-roll 1.2s linear infinite; }
.soon__lights { display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.soon__lights span { width: 10px; height: 10px; border-radius: 50%; background: var(--hazard); box-shadow: 0 0 12px var(--hazard); animation: beacon .9s steps(1) infinite; }
.soon__lights span:nth-child(2), .soon__text + .soon__lights span:first-child { animation-delay: -.45s; }
.soon__text + .soon__lights span:nth-child(2) { animation-delay: 0s; }
.soon__text { flex: 1; text-align: center; padding: 7px 4px; line-height: 1.15; font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; letter-spacing: .05em; text-transform: uppercase; color: #fff; }
@keyframes hazard-roll { to { background-position: 0 34px; } }
@keyframes beacon { 50% { opacity: .15; box-shadow: none; } }
.card__app { width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.card--app { background: linear-gradient(160deg, color-mix(in srgb, var(--volt) 7%, var(--panel)), var(--panel) 55%); }
.store-btn { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: var(--ink); color: var(--bg); font-weight: 700; font-size: .9rem; text-decoration: none; transition: transform .2s var(--ease), background-color .2s; }
.store-btn:hover { transform: translateY(-2px); background: var(--rust); color: var(--on-rust); }
.store-btn .lucide:last-child { width: 1em; height: 1em; opacity: .7; }
.card:not(.card--feature) .soon { order: 1; flex-basis: 100%; margin: 14px 0 0; }
@media (max-width: 699px) {
  .soon { order: 1; flex-basis: 100%; margin: 14px 0 0; }
}
@media (min-width: 700px) {
  .projects { grid-template-columns: repeat(2, 1fr); }
  .card--feature { grid-column: span 2; }
  .card--feature h3 { font-size: clamp(2rem, 3.4vw, 2.8rem); }
}
@media (min-width: 700px) and (max-width: 999px) {
  .card:last-child:nth-child(even) { grid-column: span 2; }
}
@media (min-width: 1000px) {
  .projects { grid-template-columns: repeat(3, 1fr); }
  .card--wide { grid-column: span 2; }
}

/* Method */
.method__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.engine { display: grid; justify-items: center; gap: 14px; padding: 28px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); background-image: radial-gradient(var(--line) 1px, transparent 1px); background-size: 16px 16px; }
.engine__svg { width: min(260px, 100%); }
.engine__readout { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.engine__readout b { color: var(--rust-text); font-weight: 500; }
.e-port { stroke: var(--line-2); stroke-width: 12; stroke-linecap: round; transition: stroke .25s; }
.e-port--in.on { stroke: var(--volt); }
.e-port--ex.on { stroke: var(--muted); }
.e-case { fill: var(--bg-2); stroke: var(--line-2); stroke-width: 2; }
.e-web { fill: var(--muted); }
.e-pin { fill: var(--rust); }
.e-axle { fill: var(--ink); }
.e-rod { stroke: var(--ink-2); stroke-width: 9; stroke-linecap: round; }
.e-wall { fill: none; stroke: var(--ink-2); stroke-width: 4; }
.e-piston { fill: var(--ink-2); }
.e-ring { stroke: var(--panel); stroke-width: 2; }
.e-gas { fill: var(--volt); opacity: .25; }
.e-gas.is-burn { fill: var(--rust); }
.e-gas.is-exhaust { fill: var(--muted); }
.e-head { fill: var(--panel-2); stroke: var(--ink-2); stroke-width: 3; }
.e-plug { fill: var(--muted); }
.e-stem { stroke: var(--ink-2); stroke-width: 4; }
.e-valve { fill: var(--ink-2); }
.e-spark { fill: var(--hazard); opacity: 0; }

.steps { display: grid; gap: 10px; counter-reset: step; }
.step { width: 100%; text-align: left; display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); transition: border-color .25s, background-color .25s, transform .25s var(--ease); }
.step:hover { border-color: var(--line-2); }
.step__num { grid-row: span 3; font-family: var(--font-display); font-size: 2.4rem; font-weight: 900; line-height: 1; color: var(--line-2); transition: color .25s; }
.step__stroke { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.step__title { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; text-transform: uppercase; line-height: 1.1; }
.step__text { color: var(--ink-2); font-size: .97rem; }
.step.is-active { border-color: var(--rust); background: color-mix(in srgb, var(--rust) 8%, var(--panel)); transform: translateX(6px); }
.step.is-active .step__num { color: var(--rust-text); }

/* Inventory */
.inventory { display: grid; gap: 18px; max-width: 1080px; margin-inline: auto; }
#inventaire .section__head { text-align: center; }
#inventaire .section__head .lead { margin-inline: auto; }
@media (min-width: 900px) {
  .inventory { grid-template-columns: auto 1fr; align-items: stretch; }
  .inventory .hotbar { grid-template-columns: repeat(3, 104px); align-content: start; }
  .inventory .slot-detail { grid-template-columns: 1fr; align-content: center; padding: clamp(24px, 3vw, 40px); }
  .inventory .slot-detail h3 { font-size: 2.6rem; }
  .inventory .slot-detail p { font-size: 1.1rem; }
}
.hotbar { display: grid; grid-template-columns: repeat(9, 1fr); gap: 10px; padding: 12px; border-radius: 14px; background: color-mix(in srgb, var(--ink) 6%, transparent); border: 1px solid var(--line); }
.slot { position: relative; aspect-ratio: 1; display: grid; place-items: center; border-radius: 6px; border: 2px solid var(--line); background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink-2); transition: border-color .15s, background-color .15s, color .15s, transform .15s var(--ease); }
.slot:hover { border-color: var(--line-2); color: var(--ink); }
.slot .lucide { width: 40%; height: 40%; }
.slot__key { position: absolute; top: 4px; left: 7px; font-family: var(--font-mono); font-size: .7rem; color: var(--muted); }
.slot__dur { position: absolute; left: 7px; right: 7px; bottom: 7px; height: 4px; border-radius: 2px; background: var(--volt); opacity: .8; }
.slot[aria-selected="true"] { border-color: var(--rust); background: color-mix(in srgb, var(--rust) 16%, transparent); color: var(--rust-text); transform: translateY(-4px); }
.slot-detail { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; padding: 24px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); min-height: 150px; }
.slot-detail__icon { width: 84px; height: 84px; display: grid; place-items: center; border-radius: 14px; background: color-mix(in srgb, var(--rust) 14%, transparent); color: var(--rust-text); animation: pop .25s var(--ease); }
.slot-detail__icon .lucide { width: 40px; height: 40px; }
.slot-detail h3 { font-family: var(--font-display); font-size: 2rem; font-weight: 800; text-transform: uppercase; line-height: 1.1; }
.slot-detail p { color: var(--ink-2); margin: 6px 0 12px; }
.slot-detail .tags { margin-top: 0; padding-top: 0; }

/* Contact */
.contact { position: relative; padding: clamp(40px, 5vw, 64px) clamp(24px, 5vw, 64px) clamp(28px, 4vw, 52px); border-radius: 28px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.contact::before { content: ""; position: absolute; inset: 0 0 auto; height: 20px; background: conic-gradient(#f6efed 25%, #0c0809 0 50%, #f6efed 0 75%, #0c0809 0) 0 0 / 20px 20px; }
.contact::after { content: ""; position: absolute; inset: 20px 0 auto; height: 4px; background: var(--rust); }
.contact { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.contact__title { max-width: 16ch; }
.actions { display: grid; gap: 12px; }
.action { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--bg-2); text-decoration: none; transition: border-color .2s, transform .2s var(--ease), background-color .2s; }
.action:hover { border-color: var(--rust); transform: translateX(4px); }
.action > .lucide { color: var(--muted); transition: color .2s, transform .2s var(--ease); }
.action:hover > .lucide { color: var(--ink); transform: translate(2px, -2px); }
.action__icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: color-mix(in srgb, var(--rust) 16%, transparent); color: var(--rust-text); }
.action__icon .lucide { width: 22px; height: 22px; }
.action__text { display: grid; line-height: 1.3; min-width: 0; }
.action__text b { font-size: 1.05rem; }
.action__text small { color: var(--muted); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.action--primary { background: linear-gradient(135deg, var(--rust), var(--burgundy)); border-color: transparent; color: var(--on-rust); }
.action--primary .action__icon { background: rgba(255, 255, 255, .14); color: #fff; }
.action--primary .action__text small, .action--primary > .lucide { color: rgba(255, 255, 255, .75); }
.levels { display: grid; gap: 18px; }
.levels__track { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; }
.levels__track li { position: relative; padding: 10px 0; border-radius: 8px; text-align: center; font-family: var(--font-mono); font-size: .8rem; font-weight: 600; border: 1px solid var(--line); background: var(--panel-2); }
.levels__track li::after { content: ""; position: absolute; left: 0; right: 0; bottom: -9px; height: 3px; border-radius: 2px; background: currentColor; opacity: .75; }
.levels__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.levels__foot .tags { margin-top: 0; padding-top: 0; }
.levels__legend { display: flex; flex-wrap: wrap; gap: 6px 20px; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.levels__legend li { display: inline-flex; align-items: center; gap: 8px; }
.levels__legend li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.levels__m { color: var(--hazard); border-color: color-mix(in srgb, var(--hazard) 40%, transparent) !important; }
.levels__p { color: var(--ink); }
.levels__s { color: var(--rust-text); border-color: color-mix(in srgb, var(--rust) 45%, transparent) !important; }
.card--feature { justify-content: space-between; }
.card--feature p:not(.soon) { font-size: 1.1rem; }

/* Footer */
.footer { padding: 18px 0 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
#contact { padding-bottom: 24px; }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer__links a { text-decoration: none; }
.footer__links a:hover { color: var(--rust-text); }
.footer__cookies:hover { color: var(--rust-text); }
.footer__top { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.footer__top:hover { color: var(--rust-text); }

/* 404 */
body[data-page="404"] { min-height: 100svh; display: flex; flex-direction: column; }
.wipe { position: relative; flex: 1; display: grid; align-content: center; padding: calc(var(--header-h) + 16px) 0 16px; overflow: hidden; isolation: isolate; }
.wipe__bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 30% 40%, color-mix(in srgb, var(--burgundy) 70%, transparent), transparent 60%), repeating-linear-gradient(0deg, color-mix(in srgb, var(--ink) 4%, transparent) 0 1px, transparent 1px 4px); }
.wipe__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); grid-template-areas: "text panel" "crash panel"; gap: 8px clamp(32px, 5vw, 72px); align-items: start; }
.wipe__text { grid-area: text; }
.wipe__panel { grid-area: panel; align-self: center; }
.wipe__code { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--rust-text); }
.wipe__404 { position: relative; font-family: var(--font-display); font-weight: 900; font-size: clamp(5rem, min(22vw, 24svh), 14rem); line-height: .8; margin: 10px 0 14px; letter-spacing: -.02em; }
.wipe__404::before, .wipe__404::after { content: attr(data-text); position: absolute; inset: 0; }
.wipe__404::before { color: var(--rust-text); transform: translate(-4px, 2px); clip-path: inset(0 0 62% 0); animation: glitch 2.6s steps(1) infinite; mix-blend-mode: screen; }
.wipe__404::after { color: var(--volt); transform: translate(4px, -2px); clip-path: inset(58% 0 0 0); animation: glitch 2.6s steps(1) infinite reverse; mix-blend-mode: screen; opacity: .8; }
@keyframes glitch { 0%, 86%, 100% { transform: none; clip-path: inset(0 0 100% 0); } 88% { transform: translate(-6px, 2px); clip-path: inset(10% 0 55% 0); } 92% { transform: translate(6px, -2px); clip-path: inset(60% 0 8% 0); } 96% { transform: translate(-3px, 0); clip-path: inset(35% 0 40% 0); } }
.wipe__title { font-size: clamp(2rem, min(5vw, 7svh), 3.6rem); margin: 6px 0 10px; }
.wipe__panel { padding: 22px; border-radius: var(--radius); background: color-mix(in srgb, var(--panel) 85%, transparent); border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: blur(8px); }
.wipe__panel .mini-title { margin-top: 0; }
.spawns { display: grid; gap: 8px; }
.spawn { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 9px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); text-decoration: none; transition: border-color .2s, transform .2s var(--ease), background-color .2s; }
.spawn:hover { border-color: var(--rust); transform: translateX(4px); background: color-mix(in srgb, var(--rust) 8%, var(--bg-2)); }
.spawn__icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: color-mix(in srgb, var(--rust) 14%, transparent); color: var(--rust-text); }
.spawn__text { display: grid; line-height: 1.25; }
.spawn__text b { font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; text-transform: uppercase; }
.spawn__text small { color: var(--muted); font-size: .85rem; }
.spawn__state { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--volt); }
.crash { grid-area: crash; position: relative; height: 112px; max-width: 520px; }
.crash::before { content: ""; position: absolute; left: 0; right: 0; bottom: 16px; border-top: 2px dashed var(--line-2); }
.crash::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; border-radius: 4px; background: repeating-linear-gradient(90deg, var(--rust) 0 24px, var(--kerb-white) 24px 48px); }
.crash__moto { position: absolute; left: 12px; bottom: 17px; width: 112px; height: 74px; }
.crash__moto .moto__svg { transform: rotate(8deg); transform-origin: 78% 80%; }
.crash__cone { position: absolute; left: 160px; bottom: 17px; width: 32px; }
.crash__smoke { position: absolute; left: 60px; bottom: 50px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); opacity: 0; animation: smoke 2.4s ease-out infinite; }
.crash__smoke:nth-child(2) { animation-delay: .8s; }
.crash__smoke:nth-child(3) { animation-delay: 1.6s; }
@keyframes smoke { 0% { opacity: .55; transform: scale(.6); } 100% { opacity: 0; transform: translate(-24px, -56px) scale(2.4); } }


/* Above-the-fold proof */
.proof { display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; padding: 6px 14px 6px 6px; border-radius: 999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--panel) 70%, transparent); font-size: .9rem; font-weight: 600; color: var(--ink-2); text-decoration: none; transition: border-color .2s, color .2s; }
.proof:hover { border-color: var(--rust); color: var(--ink); }
.proof__apps { display: flex; }
.proof__apps img { width: 32px; height: 32px; border-radius: 9px; border: 2px solid var(--bg); }
.proof__apps img + img { margin-left: -10px; }

/* Cookie notice */
.notice { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; margin-inline: auto; max-width: 900px; display: flex; align-items: center; gap: 14px 18px; padding: 14px 16px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line-2); box-shadow: var(--shadow); animation: notice-in .4s var(--ease) both; }
.notice::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; border-radius: 16px 16px 0 0; background: repeating-linear-gradient(90deg, var(--rust) 0 14px, var(--kerb-white) 14px 28px); }
.notice.is-leaving { opacity: 0; transform: translateY(12px); transition: opacity .3s, transform .3s; }
.notice__icon { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; background: color-mix(in srgb, var(--rust) 16%, transparent); color: var(--rust-text); }
.notice p { flex: 1; font-size: .92rem; color: var(--ink-2); line-height: 1.45; }
.notice__actions { display: flex; align-items: center; gap: 16px; flex: none; }
.notice__actions a { font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.notice__btn { padding: .6em 1.2em; }
@keyframes notice-in { from { opacity: 0; transform: translateY(16px); } }

/* Legal pages */
.btn--back { margin-left: auto; padding: .55em 1em; font-size: .9rem; }
.legal { padding: calc(var(--header-h) + 48px) 0 72px; }
.legal__doc { max-width: 820px; }
.legal__doc > .h2 { margin-bottom: 28px; }
.legal__block { padding: 22px 0; border-top: 1px solid var(--line); }
.legal__block h2 { display: flex; align-items: baseline; gap: 14px; font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 1.9rem); font-weight: 800; text-transform: uppercase; line-height: 1.1; margin-bottom: 10px; }
.legal__block h2 span { font-family: var(--font-mono); font-size: .8rem; font-weight: 500; color: var(--rust-text); }
.legal__block p { color: var(--ink-2); max-width: 70ch; }
.legal__block p + p { margin-top: 10px; }
.legal__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Responsive */
@media (min-width: 981px) and (max-height: 860px) {
  .hero__name { margin: 14px 0 16px; }
  .axes { margin: 16px 0 20px; }
}
@media (min-width: 981px) and (max-height: 720px) {
  .hero { padding-top: calc(var(--header-h) + var(--track-h) + 10px); }
  .kicker { padding-block: 4px; }
  .hero__name { font-size: clamp(3.4rem, min(24cqi, 19svh), 13rem); margin: 10px 0 12px; }
  .hero__lead { font-size: 1.12rem; line-height: 1.5; }
  .axes { display: none; }
  .hero__cta { margin-top: 18px; }
}
@media (min-width: 981px) and (min-aspect-ratio: 2/1) {
  .hero__name { font-size: 12.4cqi; white-space: nowrap; }
  .hero__name span { display: inline-block; }
  .hero__name span + span { margin-left: .22em; }
}
@media (max-width: 980px) {
  .hero__grid, .about, .method__grid, .wipe__grid, .contact { grid-template-columns: 1fr; }
  .wipe__grid { grid-template-areas: "text" "crash" "panel"; }
  .gauge { width: min(100%, 440px); min-width: 0; }
  .pcb { opacity: .45; }
}
@media (max-width: 860px) {
  .menu-btn { display: grid; }
  .nav { position: absolute; top: calc(100% + 1px); left: 0; right: 0; flex-direction: column; gap: 2px; padding: 10px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--line); display: none; }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px; font-size: 1.05rem; }
}
@media (max-width: 640px) {
  .spawn__text small, .spawn__state { display: none; }
  .spawns { grid-template-columns: 1fr 1fr; }
  .spawn { grid-template-columns: auto 1fr; gap: 10px; padding: 8px 10px; }
  .spawn:hover { transform: none; }
  .spawn__icon { width: 34px; height: 34px; }
  .spawn__text b { font-size: 1.15rem; }
  .wipe__panel { padding: 14px; }
  .wipe__panel .mini-title { margin-bottom: 10px; }
  .wipe__404 { font-size: clamp(4rem, min(22vw, 15svh), 8rem); }
  .wipe .lead { font-size: .98rem; }
  body[data-page="404"] .footer { padding: 12px 0 14px; font-size: .82rem; }
  .crash { height: 84px; }
  .crash__moto { width: 96px; height: 63px; }
  .crash__cone { left: 140px; width: 28px; }
  .notice { flex-wrap: wrap; gap: 10px; bottom: 10px; left: 10px; right: 10px; padding: 12px 14px; }
  .notice__icon { display: none; }
  .notice p { flex-basis: 100%; font-size: .85rem; }
  .notice__actions { width: 100%; justify-content: flex-end; }
  .notice__actions a { margin-right: auto; }
  .notice__btn { padding: .5em 1.1em; }
  .btn--back span { display: none; }
  .hotbar { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) and (max-height: 700px) {
  .wipe { padding-top: calc(var(--header-h) + 8px); }
  .wipe__404 { font-size: 12svh; margin-bottom: 8px; }
  .crash { height: 74px; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .brand { font-size: 1.05rem; }
  .slot-detail { grid-template-columns: 1fr; }
  .spec__list div { grid-template-columns: 1fr; gap: 2px; }
  .step.is-active { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .pcb .pulse { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}
