/* Rally Maestro — design system */
@view-transition { navigation: auto; }

:root {
  --bg: #0a0908;
  --bg-2: #12100e;
  --panel: #181512;
  --line: rgba(255, 244, 230, .12);
  --line-strong: rgba(255, 244, 230, .24);
  --text: #f4eee6;
  --muted: #a99f92;
  --red: #e3222b;
  --red-deep: #b3141c;
  --orange: #ff6b1a;
  --sand: #dcb98a;
  --green: #35d07f;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(18px, 4.5vw, 64px);
  --max: 1320px;
  --radius: 14px;
  --header-h: 68px;
  --dock-h: 0px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--body); font-size: clamp(16px, 1.05vw + 12px, 18px); line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden; padding-bottom: var(--dock-h);
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: #fff; color: #000; padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- Type ---------- */
.display, h1, h2, h3 {
  font-family: var(--display); font-weight: 800; font-style: italic; text-transform: uppercase;
  line-height: .92; letter-spacing: -.005em; text-wrap: balance;
}
h1, .h1 { font-size: clamp(3.1rem, 11.5vw, 9.5rem); }
h2, .h2 { font-size: clamp(2.4rem, 6.6vw, 5.2rem); }
h3, .h3 { font-size: clamp(1.55rem, 2.6vw, 2.2rem); line-height: 1; }
.outline { color: transparent; -webkit-text-stroke: 1.5px var(--text); }
.accent { color: var(--red); }
.lede { font-size: clamp(1.08rem, 1.5vw, 1.35rem); line-height: 1.55; color: #e3dbd0; text-wrap: pretty; }
.prose p + p { margin-top: 1.1em; }
.prose p { color: #d5ccc0; text-wrap: pretty; max-width: 68ch; }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 600; font-size: .95rem; letter-spacing: .22em; text-transform: uppercase; color: var(--sand);
}
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--red); transform: skewX(-24deg); flex: none; }
.num { font-family: var(--display); font-style: italic; font-weight: 700; color: var(--red); letter-spacing: .06em; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 10vw, 150px); position: relative; }
.section--tight { padding-block: clamp(48px, 7vw, 96px); }
.section--alt { background: var(--bg-2); }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(32px, 5vw, 64px); max-width: 900px; }
.split { display: grid; gap: clamp(32px, 6vw, 88px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--wide-l { grid-template-columns: 1.15fr .85fr; } .split--wide-r { grid-template-columns: .85fr 1.15fr; } .split--top { align-items: start; } }
.stack { display: grid; gap: 22px; align-content: start; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--red); position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; font-family: var(--display); font-weight: 700; font-style: italic; font-size: 1.12rem;
  letter-spacing: .09em; text-transform: uppercase; color: #fff; background: var(--b);
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  transition: transform .25s var(--ease), background .25s, color .25s; white-space: nowrap; isolation: isolate;
}
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: #fff; transform: translateX(-102%) skewX(-12deg); transition: transform .4s var(--ease); }
.btn:hover { color: #0a0908; }
.btn:hover::after { transform: translateX(0) skewX(0); }
.btn:active { transform: scale(.97); }
.btn--ghost { background: rgba(255, 255, 255, .08); backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn--dark { background: #0a0908; }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }
.link {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-style: italic;
  text-transform: uppercase; letter-spacing: .1em; font-size: 1.05rem; padding-block: 10px; color: var(--text);
}
.link::after { content: "→"; color: var(--red); transition: transform .3s var(--ease); font-style: normal; }
.link:hover::after { transform: translateX(6px); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 120; height: var(--header-h);
  transition: background .35s, box-shadow .35s, transform .4s var(--ease);
}
.header.is-stuck { background: rgba(10, 9, 8, .82); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); box-shadow: 0 1px 0 var(--line); }
.header__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 40px; width: auto; }
.nav { display: none; }
.header__cta { display: none; }
.burger { width: 48px; height: 48px; display: grid; place-items: center; margin-right: -10px; position: relative; z-index: 120; }
.burger span, .burger span::before, .burger span::after { content: ""; display: block; width: 26px; height: 2.5px; background: #fff; transform: skewX(-24deg); transition: transform .35s var(--ease), opacity .2s, width .3s; }
.burger span { position: relative; }
.burger span::before { position: absolute; top: -8px; left: 4px; }
.burger span::after { position: absolute; top: 8px; left: -4px; width: 18px; }
.menu-open .burger span { background: transparent; }
.menu-open .burger span::before { top: 0; left: 0; transform: rotate(45deg); }
.menu-open .burger span::after { top: 0; left: 0; width: 26px; transform: rotate(-45deg); }

@media (min-width: 1080px) {
  :root { --header-h: 84px; }
  .brand img { height: 48px; }
  .burger { display: none; }
  .nav { display: flex; align-items: center; gap: clamp(14px, 1.9vw, 30px); }
  .nav a, .nav button {
    font-family: var(--display); font-weight: 600; font-size: 1.06rem; letter-spacing: .12em; text-transform: uppercase;
    padding: 10px 0; position: relative; color: #efe7dc; display: inline-flex; align-items: center; gap: 6px;
  }
  .nav a::after, .nav .has-sub > button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
  .nav a:hover::after, .nav a[aria-current="page"]::after, .nav .has-sub:hover > button::after { transform: scaleX(1); }
  .has-sub { position: relative; }
  .has-sub svg { width: 10px; height: 10px; }
  .sub { position: absolute; top: 100%; left: -18px; min-width: 210px; padding: 10px 18px; background: rgba(18, 16, 14, .96); border: 1px solid var(--line); border-radius: 10px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: .25s var(--ease); display: grid; }
  .has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
  .header__cta { display: inline-flex; }
}

/* Mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 110; background: #0a0908; display: flex; flex-direction: column;
  padding: calc(var(--header-h) + 12px) var(--gutter) calc(24px + env(safe-area-inset-bottom));
  clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%); visibility: hidden;
  transition: clip-path .55s var(--ease), visibility 0s .55s; overflow-y: auto; overscroll-behavior: contain;
}
.menu::before { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 60% at 100% 0%, rgba(227, 34, 43, .28), transparent 70%); pointer-events: none; }
.menu-open .menu { clip-path: polygon(-20% 0, 100% 0, 100% 100%, 0 100%); visibility: visible; transition: clip-path .55s var(--ease); }
.menu__list { position: relative; display: grid; gap: 2px; margin-block: auto; padding-block: 12px; }
.menu__list a {
  display: flex; align-items: baseline; gap: 14px; padding: 7px 0; font-family: var(--display); font-weight: 800; font-style: italic;
  text-transform: uppercase; font-size: clamp(2rem, 9.4vw, 3.2rem); line-height: 1.05;
  opacity: 0; transform: translateX(30px); transition: opacity .4s, transform .5s var(--ease), color .2s;
}
.menu__list a small { font-size: .85rem; font-weight: 600; color: var(--red); letter-spacing: .1em; width: 22px; font-style: normal; }
.menu__list a[aria-current="page"] { color: var(--red); }
.menu-open .menu__list a { opacity: 1; transform: none; transition-delay: calc(.12s + var(--i) * .04s); }
.menu__foot { position: relative; display: grid; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.menu__foot .row { justify-content: space-between; font-size: .95rem; color: var(--muted); }
@media (min-width: 1080px) { .menu { display: none; } }

/* Scroll progress */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 130; background: linear-gradient(90deg, var(--red), var(--orange)); transform-origin: 0 50%; transform: scaleX(0); }
@supports (animation-timeline: scroll()) {
  .progress { animation: grow linear both; animation-timeline: scroll(root); }
  @keyframes grow { to { transform: scaleX(1); } }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(100svh, 1100px); display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.hero__slides, .hero__slide, .hero__slide img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__slide { opacity: 0; transition: opacity 1.4s ease; }
.hero__slide.is-on { opacity: 1; }
.hero__slide img { object-fit: cover; transform: scale(1.04); }
.hero__slide.is-on img { animation: kb 9s linear both; }
@keyframes kb { from { transform: scale(1.04) translate3d(0, 0, 0); } to { transform: scale(1.17) translate3d(-1.5%, -1.5%, 0); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background:
  linear-gradient(180deg, rgba(10, 9, 8, .62) 0%, rgba(10, 9, 8, .1) 26%, rgba(10, 9, 8, .7) 60%, var(--bg) 100%),
  linear-gradient(90deg, rgba(10, 9, 8, .6), transparent 70%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; opacity: .16; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
#dust { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }
.hero__body { position: relative; z-index: 3; padding-top: calc(var(--header-h) + 40px); padding-bottom: clamp(26px, 5vw, 56px); display: grid; gap: clamp(18px, 2.4vw, 30px); }
.hero h1 { max-width: 12ch; text-shadow: 0 6px 40px rgba(0, 0, 0, .45); }
.hero h1 .line { display: block; overflow: hidden; padding-right: .12em; }
.hero h1 .line > span { display: block; transform: translateY(105%); animation: rise .9s var(--ease) forwards; animation-delay: calc(.15s + var(--i) * .11s); }
@keyframes rise { to { transform: none; } }
.hero .lede { max-width: 46ch; }
.hero__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; padding-top: 18px; border-top: 1px solid var(--line-strong); }
.status { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; font-size: .98rem; }
.status i { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(53, 208, 127, .7); animation: ping 1.8s infinite; }
@keyframes ping { to { box-shadow: 0 0 0 12px rgba(53, 208, 127, 0); } }
.ticks { display: flex; gap: 8px; }
.ticks button { width: 44px; height: 28px; display: grid; place-items: center; }
.ticks button::before { content: ""; width: 100%; height: 4px; background: rgba(255, 255, 255, .28); transform: skewX(-24deg); transition: background .3s; }
.ticks button.is-on::before { background: var(--red); }

/* Page hero (inner pages) */
.phero { position: relative; min-height: min(74svh, 720px); display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.phero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; animation: kb 16s ease-out both; }
.phero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 9, 8, .7) 0%, rgba(10, 9, 8, .2) 35%, rgba(10, 9, 8, .72) 72%, var(--bg) 100%); }
.phero__body { padding-top: calc(var(--header-h) + 56px); padding-bottom: clamp(28px, 5vw, 60px); display: grid; gap: 18px; }
.phero h1 { font-size: clamp(3rem, 10vw, 7.6rem); max-width: 14ch; }
.phero .lede { max-width: 54ch; }
.crumbs { display: flex; gap: 10px; font-family: var(--display); letter-spacing: .18em; text-transform: uppercase; font-size: .9rem; color: var(--sand); }
.crumbs a:hover { color: #fff; }
.crumbs span { color: var(--red); }
.phero--plain { min-height: 0; background: radial-gradient(80% 120% at 100% 0%, rgba(227, 34, 43, .22), transparent 60%), var(--bg-2); }
.phero--plain::before { display: none; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; background: var(--red); color: #fff; padding-block: 13px; transform: rotate(-1.2deg) scale(1.03); margin-block: 10px; position: relative; z-index: 2; }
.marquee__track { display: flex; width: max-content; animation: slide 36s linear infinite; }
.marquee span { font-family: var(--display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: clamp(1.25rem, 2.6vw, 1.9rem); letter-spacing: .05em; padding-inline: 18px; display: inline-flex; align-items: center; gap: 36px; white-space: nowrap; }
.marquee span::after { content: ""; width: 12px; height: 12px; background: #0a0908; transform: skewX(-20deg); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--bg); padding: clamp(18px, 3vw, 34px); display: grid; gap: 6px; align-content: start; }
.section--alt .stat { background: var(--bg-2); }
.stat b { font-family: var(--display); font-style: italic; font-weight: 800; font-size: clamp(2.5rem, 6vw, 4.6rem); line-height: .9; font-variant-numeric: tabular-nums; }
.stat b small { font-size: .42em; color: var(--red); margin-left: 4px; }
.stat span { color: var(--muted); font-size: .95rem; line-height: 1.4; }
@media (min-width: 900px) { .stats--4 { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Experience bento ---------- */
.bento { display: grid; gap: 14px; }
.xcard { position: relative; overflow: hidden; border-radius: var(--radius); min-height: clamp(300px, 62vw, 380px); display: grid; align-items: end; isolation: isolate; background: var(--panel); }
.xcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.1s var(--ease); }
.xcard::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 9, 8, .1) 20%, rgba(10, 9, 8, .92) 100%); transition: background .4s; }
.xcard:hover img { transform: scale(1.07); }
.xcard__body { padding: clamp(18px, 2.6vw, 30px); display: grid; gap: 8px; }
.xcard__body p { color: #d9d0c4; font-size: .98rem; line-height: 1.5; max-width: 44ch; }
.xcard .num { position: absolute; top: 18px; left: 22px; font-size: 1.1rem; }
.tag { position: absolute; top: 16px; right: 16px; font-family: var(--display); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; padding: 6px 12px; background: rgba(10, 9, 8, .72); backdrop-filter: blur(6px); border: 1px solid var(--line-strong); border-radius: 99px; }
.tag--hot { background: var(--orange); color: #0a0908; border-color: transparent; }
@media (min-width: 760px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .xcard { grid-column: span 3; }
  .xcard--big { grid-column: span 4; min-height: 480px; }
  .xcard--side { grid-column: span 2; min-height: 480px; }
}

/* ---------- Track map ---------- */
.trackmap { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background:
  linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 40px,
  linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 40px 100%, #0d0c0a; overflow: hidden; }
.trackmap svg { width: 100%; height: auto; }
.trackmap .road { fill: none; stroke: #2a2622; stroke-width: 30; stroke-linecap: round; stroke-linejoin: round; }
.trackmap .kerb { fill: none; stroke: #fff; stroke-width: 34; stroke-dasharray: 10 10; opacity: .13; }
.trackmap .line { fill: none; stroke: var(--red); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 2400; stroke-dashoffset: 2400; }
.trackmap.is-in .line { animation: draw 3.6s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.trackmap .car { fill: #fff; filter: drop-shadow(0 0 8px var(--orange)); }
.trackmap text { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .14em; fill: var(--sand); text-transform: uppercase; }
.trackmap .pin { fill: var(--orange); }
.trackmap__note { display: block; padding: 0 14px 12px; font-size: .78rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; font-family: var(--display); }

/* ---------- Feature list ---------- */
.features { display: grid; gap: 0; border-top: 1px solid var(--line); }
.features li { display: grid; grid-template-columns: 54px 1fr; gap: 6px 14px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.features .num { font-size: 1.3rem; padding-top: 3px; }
.features h3 { font-size: 1.5rem; }
.features p { grid-column: 2; color: var(--muted); font-size: .98rem; line-height: 1.5; }
.checks { display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 34px; color: #ded5c9; }
.checks li::before { content: ""; position: absolute; left: 0; top: .42em; width: 20px; height: 10px; background: var(--red); clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 14px; }
@media (min-width: 700px) { .cards--2 { grid-template-columns: repeat(2, 1fr); } .cards--3 { grid-template-columns: repeat(2, 1fr); } .cards--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } .cards--4 { grid-template-columns: repeat(4, 1fr); } }
.card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 2.8vw, 34px); display: grid; gap: 14px; align-content: start; overflow: hidden; transition: transform .4s var(--ease), border-color .3s; }
.card::after { content: ""; position: absolute; inset: auto 0 0 0; height: 3px; background: linear-gradient(90deg, var(--red), var(--orange)); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
a.card:hover, .card--lift:hover { transform: translateY(-5px); border-color: var(--line-strong); }
a.card:hover::after, .card--lift:hover::after { transform: scaleX(1); }
.card p { color: var(--muted); font-size: .98rem; line-height: 1.55; }
.card .icon { width: 46px; height: 46px; color: var(--red); }
.card--img { padding: 0; }
.card--img > img { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; }
.card--img > div { padding: clamp(20px, 2.4vw, 30px); display: grid; gap: 12px; }
.price { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 2.4rem; line-height: 1; }
.price small { font-size: .45em; color: var(--muted); font-style: normal; font-weight: 600; letter-spacing: .08em; }

/* ---------- Media frames ---------- */
.frame { position: relative; border-radius: var(--radius); overflow: hidden; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--tall { aspect-ratio: 4 / 5; }
.frame--wide { aspect-ratio: 16 / 10; }
.frame--sq { aspect-ratio: 1; }
.frame--cut { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 44px), calc(100% - 44px) 100%, 0 100%); border-radius: var(--radius) var(--radius) 0 var(--radius); }
.duo { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; align-items: end; }
.duo .frame:last-child { margin-bottom: 36px; }
.cap { position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; background: rgba(10, 9, 8, .74); backdrop-filter: blur(6px); border-radius: 99px; font-size: .8rem; letter-spacing: .06em; }

/* ---------- Horizontal rail ---------- */
.rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { flex: none; scroll-snap-align: start; width: min(78vw, 440px); aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; position: relative; }
.rail img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.rail a:hover img { transform: scale(1.06); }

/* ---------- Quote ---------- */
.quote { font-family: var(--display); font-style: italic; font-weight: 700; text-transform: uppercase; font-size: clamp(1.8rem, 4.6vw, 3.6rem); line-height: 1; text-wrap: balance; }
.quote::before { content: "“"; display: block; color: var(--red); font-size: 2.2em; line-height: .6; margin-bottom: .1em; }
.quote + cite { display: block; margin-top: 18px; font-style: normal; color: var(--sand); letter-spacing: .16em; text-transform: uppercase; font-family: var(--display); }

/* ---------- Simulator HUD + lights ---------- */
.hud { position: relative; border-radius: 20px; border: 1px solid var(--line-strong); background: radial-gradient(120% 90% at 50% 0%, #201b17, #0c0b0a 70%); padding: clamp(18px, 3vw, 34px); display: grid; gap: 20px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(227, 34, 43, .35); }
.hud::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 255, 255, .018) 3px 4px); pointer-events: none; }
.hud__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-family: var(--display); letter-spacing: .16em; text-transform: uppercase; font-size: .88rem; color: var(--muted); }
.lights { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(8px, 2vw, 18px); max-width: 520px; width: 100%; margin-inline: auto; }
.lights i { aspect-ratio: 1; border-radius: 50%; background: #1d1916; border: 2px solid #2d2823; box-shadow: inset 0 -6px 14px rgba(0, 0, 0, .6); transition: background .08s, box-shadow .08s; }
.lights i.on { background: radial-gradient(circle at 35% 30%, #ff8d8d, var(--red) 55%, #7c0d12); box-shadow: 0 0 34px rgba(227, 34, 43, .85), inset 0 -4px 10px rgba(0, 0, 0, .35); border-color: #ff5b62; }
.hud__read { text-align: center; display: grid; gap: 4px; min-height: 128px; align-content: center; }
.hud__time { font-family: var(--display); font-style: italic; font-weight: 800; font-size: clamp(3.4rem, 13vw, 6rem); line-height: .9; font-variant-numeric: tabular-nums; }
.hud__time small { font-size: .32em; color: var(--muted); margin-left: 6px; }
.hud__msg { color: var(--sand); font-family: var(--display); letter-spacing: .14em; text-transform: uppercase; min-height: 1.6em; }
.hud__pad { min-height: 84px; width: 100%; border-radius: 14px; background: var(--red); color: #fff; font-family: var(--display); font-weight: 800; font-style: italic; font-size: 1.5rem; letter-spacing: .1em; text-transform: uppercase; touch-action: manipulation; user-select: none; -webkit-user-select: none; transition: background .15s, transform .1s; -webkit-tap-highlight-color: transparent; }
.hud__pad:active { transform: scale(.985); }
.hud__pad[data-state="armed"] { background: #2a2520; }
.hud__pad[data-state="go"] { background: var(--green); color: #06130c; }
.hud__foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .9rem; color: var(--muted); }
.hud__foot b { color: var(--text); font-variant-numeric: tabular-nums; }

/* Rev gauge */
.gauge { display: grid; gap: 14px; }
.gauge svg { width: 100%; max-width: 440px; margin-inline: auto; overflow: visible; }
.gauge .arc { fill: none; stroke: #2a2520; stroke-width: 16; stroke-linecap: butt; }
.gauge .fill { fill: none; stroke: url(#rev); stroke-width: 16; stroke-dasharray: 0 1000; transition: stroke-dasharray .12s linear; }
.gauge text { font-family: var(--display); font-style: italic; font-weight: 800; fill: var(--text); text-anchor: middle; }
.shift { display: flex; gap: 6px; justify-content: center; }
.shift i { width: 100%; max-width: 30px; height: 10px; background: #2a2520; transform: skewX(-20deg); transition: background .08s, box-shadow .08s; }
.shift i.on { background: var(--green); box-shadow: 0 0 12px var(--green); }
.shift i.on:nth-child(n+5) { background: #ffd23f; box-shadow: 0 0 12px #ffd23f; }
.shift i.on:nth-child(n+8) { background: var(--red); box-shadow: 0 0 14px var(--red); }

/* ---------- Gallery ---------- */
.filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.filters::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 44px; padding: 0 20px; border-radius: 99px; border: 1.5px solid var(--line-strong); font-family: var(--display); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .98rem; transition: .25s; }
.chip[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.grid-g { columns: 2; column-gap: 10px; margin-top: 26px; }
@media (min-width: 760px) { .grid-g { columns: 3; column-gap: 14px; } }
@media (min-width: 1200px) { .grid-g { columns: 4; } }
.grid-g a { display: block; position: relative; margin-bottom: 10px; border-radius: 10px; overflow: hidden; break-inside: avoid; background: var(--panel); }
@media (min-width: 760px) { .grid-g a { margin-bottom: 14px; } }
.grid-g img { width: 100%; transition: transform .8s var(--ease), filter .4s; }
.grid-g a:hover img { transform: scale(1.05); }
.grid-g a[hidden] { display: none; }
.grid-g a::after { content: attr(data-cap); position: absolute; inset: auto 0 0 0; padding: 26px 12px 10px; font-size: .82rem; line-height: 1.3; background: linear-gradient(transparent, rgba(10, 9, 8, .88)); opacity: 0; transition: opacity .3s; }
@media (hover: hover) { .grid-g a:hover::after { opacity: 1; } }

.lb { position: fixed; inset: 0; z-index: 300; background: rgba(6, 5, 4, .96); display: none; grid-template-rows: auto 1fr auto; touch-action: pan-y; }
.lb.is-open { display: grid; animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.lb__bar { display: flex; justify-content: space-between; align-items: center; padding: 10px var(--gutter); font-family: var(--display); letter-spacing: .14em; }
.lb__stage { display: grid; place-items: center; padding: 0 8px; min-height: 0; }
.lb__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.lb__cap { text-align: center; padding: 14px var(--gutter) calc(18px + env(safe-area-inset-bottom)); color: #ddd4c8; font-size: .95rem; }
.lb button { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .1); font-size: 1.3rem; }
.lb__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lb__nav--p { left: 10px; } .lb__nav--n { right: 10px; }
@media (max-width: 640px) { .lb__nav { top: auto; bottom: calc(64px + env(safe-area-inset-bottom)); transform: none; } }

/* ---------- People ---------- */
.person { display: grid; gap: 22px; padding-block: clamp(28px, 4vw, 48px); border-top: 1px solid var(--line); }
.person__pic { width: min(100%, 260px); aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: #fff; }
.person__pic img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.person__mono { display: grid; place-items: center; background: linear-gradient(135deg, var(--red), #5d0b10); font-family: var(--display); font-style: italic; font-weight: 800; font-size: 6rem; color: #fff; }
.person h3 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.person .role { color: var(--sand); font-family: var(--display); letter-spacing: .18em; text-transform: uppercase; font-size: .95rem; }
@media (min-width: 760px) { .person { grid-template-columns: 260px 1fr; gap: 48px; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.form__grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .form__grid { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 7px; }
.field label, .legend { font-family: var(--display); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .9rem; color: var(--sand); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 54px; padding: 14px 16px; background: rgba(255, 255, 255, .05); border: 1.5px solid var(--line-strong); border-radius: 10px;
  font-size: 16px; transition: border-color .2s, background .2s; appearance: none; -webkit-appearance: none;
}
.field textarea { min-height: 120px; resize: vertical; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23dcb98a' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field select option { background: #181512; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); background: rgba(255, 255, 255, .08); }
.field input::placeholder, .field textarea::placeholder { color: #7d756b; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; color: #d5ccc0; cursor: pointer; }
.check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--red); flex: none; }
.form__note { font-size: .88rem; color: var(--muted); }
.form__ok { display: none; padding: 16px 18px; border-radius: 10px; background: rgba(53, 208, 127, .12); border: 1px solid rgba(53, 208, 127, .4); color: #c9f5dd; }
.form.is-sent .form__ok { display: block; }
.items { display: grid; gap: 10px; }
.item { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; align-items: center; padding: 16px; border: 1.5px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .03); }
.item small { display: block; color: var(--muted); font-size: .86rem; }
.item .cost { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 1.4rem; color: var(--sand); }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line-strong); border-radius: 99px; grid-column: 1 / -1; justify-self: start; }
.qty button { width: 46px; height: 44px; font-size: 1.3rem; }
.qty output { min-width: 30px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }
.total { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 0 4px; border-top: 1px solid var(--line-strong); }
.total b { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 2.4rem; }

/* ---------- Contact ---------- */
.contact-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.contact-list a, .contact-list div { display: grid; gap: 4px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-list b { font-family: var(--display); font-style: italic; font-weight: 700; font-size: clamp(1.4rem, 3vw, 2rem); text-transform: uppercase; line-height: 1.1; overflow-wrap: anywhere; }
.contact-list a:hover b { color: var(--red); }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: var(--panel); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.92) contrast(.9); }
@media (min-width: 900px) { .map { aspect-ratio: 16 / 7; } }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; font-family: var(--display); font-weight: 700; font-style: italic; text-transform: uppercase; font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.1; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); color: var(--red); font-size: 1.8rem; font-style: normal; transition: transform .3s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 70ch; }

/* Legal */
.legal { max-width: 820px; }
.legal h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin: 2.2em 0 .5em; scroll-margin-top: 110px; }
.legal h2.major { font-size: clamp(2.2rem, 5vw, 3.6rem); color: var(--red); padding-top: 1em; border-top: 1px solid var(--line); }
.legal p { color: #cfc6ba; margin-bottom: 1em; }

/* ---------- CTA band ---------- */
.cta { position: relative; overflow: hidden; isolation: isolate; background: var(--red); color: #fff; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(-66deg, transparent 0 46px, rgba(0, 0, 0, .09) 46px 92px); }
.cta__in { display: grid; gap: 26px; padding-block: clamp(56px, 8vw, 110px); }
.cta h2 { font-size: clamp(2.8rem, 9vw, 7rem); max-width: 13ch; }
.cta p { max-width: 50ch; font-size: 1.1rem; }
.cta .btn { --b: #0a0908; }
.cta .btn--ghost { background: transparent; box-shadow: inset 0 0 0 2px #fff; }
@media (min-width: 900px) { .cta__in { grid-template-columns: 1.3fr .7fr; align-items: end; } .cta__in .row { justify-content: flex-end; } }

/* ---------- Footer ---------- */
.footer { background: #070605; padding-top: clamp(48px, 7vw, 90px); border-top: 1px solid var(--line); }
.footer__grid { display: grid; gap: 36px; }
.footer h4 { font-family: var(--display); letter-spacing: .2em; text-transform: uppercase; font-size: .9rem; color: var(--sand); margin-bottom: 14px; font-weight: 600; }
.footer li a { display: inline-block; padding: 6px 0; color: #cfc6ba; }
.footer li a:hover { color: #fff; }
.footer__brand img { height: 54px; width: auto; margin-bottom: 16px; }
.footer__brand p { color: var(--muted); max-width: 36ch; font-size: .96rem; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; transition: .25s; }
.social a:hover { background: var(--red); border-color: var(--red); }
.social svg { width: 19px; height: 19px; fill: currentColor; }
.footer__big { font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: clamp(3rem, 15.4vw, 15rem); line-height: .8; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(255, 244, 230, .16); margin-top: clamp(36px, 6vw, 70px); text-align: center; overflow: hidden; user-select: none; }
.footer__bot { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-block: 20px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: .86rem; color: var(--muted); }
.footer__bot a:hover { color: #fff; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
@media (max-width: 759px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand, .footer__contact { grid-column: 1 / -1; } }

/* ---------- Mobile dock ---------- */
.dock { position: fixed; inset: auto 0 0 0; z-index: 90; display: grid; grid-template-columns: 1fr 1fr 1.5fr; background: rgba(10, 9, 8, .9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line-strong); padding-bottom: env(safe-area-inset-bottom); transform: translateY(110%); transition: transform .45s var(--ease); }
.dock.is-up { transform: none; }
.dock a { min-height: 58px; display: flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--display); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 1rem; }
.dock a + a { border-left: 1px solid var(--line); }
.dock a:last-child { background: var(--red); font-style: italic; }
.dock svg { width: 19px; height: 19px; fill: currentColor; flex: none; }
@media (max-width: 1079px) { :root { --dock-h: calc(58px + env(safe-area-inset-bottom)); } }
@media (min-width: 1080px) { .dock { display: none; } }
.menu-open .dock { transform: translateY(110%); }

/* ---------- Reveal ---------- */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.rv.is-in { opacity: 1; transform: none; }
.no-js .rv { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .rv { opacity: 1; transform: none; }
  .hero h1 .line > span { transform: none; }
  .marquee__track { animation: none; }
  .trackmap .line { stroke-dashoffset: 0; }
}

/* ---------- Dust Stage game ---------- */
.game { width: 100%; max-width: 460px; margin-inline: auto; border-radius: 22px; overflow: hidden; border: 1px solid var(--line-strong); background: #14110e; box-shadow: 0 50px 90px -50px rgba(255, 107, 26, .5); }
.game__screen { position: relative; aspect-ratio: 400 / 480; background: #c8905a; }
.game canvas { width: 100%; height: 100%; display: block; }
.game__over { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; padding: 20px; background: linear-gradient(180deg, rgba(10, 9, 8, .6), rgba(10, 9, 8, .88)); backdrop-filter: blur(3px); }
.game__over[hidden] { display: none; }
.game__over b { font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: clamp(2.8rem, 13vw, 4.2rem); line-height: .9; }
.game__over p { color: #e6ddd1; max-width: 28ch; line-height: 1.4; }
.game__modes { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-block: 2px 6px; }
.game__modes .chip { padding: 0 15px; background: rgba(10, 9, 8, .5); }
.game__pad { display: grid; grid-template-columns: 72px 72px 1fr; gap: 10px; padding: 12px; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.game__pad button { height: 72px; border-radius: 16px; background: #26211c; border: 1.5px solid var(--line-strong); display: grid; place-items: center; touch-action: none; -webkit-tap-highlight-color: transparent; transition: background .08s, transform .08s; }
.game__pad svg { width: 30px; height: 30px; pointer-events: none; }
.game__pad button.is-down { background: #3a332c; transform: scale(.95); }
.game__pad .game__gas { margin-left: 14px; background: var(--red); border-color: transparent; font-family: var(--display); font-weight: 800; font-style: italic; font-size: 1.3rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.game__pad .game__gas.is-down { background: var(--green); color: #06130c; }
.game:not(.is-playing) .game__pad { opacity: .45; }
.game__hint { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line-strong); font-size: .88rem; color: #ddd4c8; background: rgba(255, 255, 255, .04); }
.pill b { color: #fff; font-variant-numeric: tabular-nums; }
.card--img > img { object-position: center 18%; }
@media (max-width: 700px) { .trackmap text { font-size: 21px; letter-spacing: .08em; } }
.menu-open .header { background: none; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }

/* ---------- Challenge banner (home) ---------- */
.challenge { display: block; background: linear-gradient(90deg, var(--red), #c2161e 60%, var(--orange)); color: #fff; position: relative; z-index: 2; overflow: hidden; }
.challenge::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-66deg, transparent 0 40px, rgba(0, 0, 0, .08) 40px 80px); }
.challenge__in { position: relative; display: flex; align-items: center; gap: 14px; padding-block: 14px; }
.challenge__flag { width: 34px; height: 34px; flex: none; border-radius: 6px; background: conic-gradient(#fff 25%, #111 0 50%, #fff 0 75%, #111 0) 0 0 / 17px 17px; box-shadow: 0 0 0 2px rgba(0, 0, 0, .25); }
.challenge__txt { display: grid; line-height: 1.2; min-width: 0; }
.challenge__txt b { font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: clamp(1.3rem, 3.2vw, 1.9rem); letter-spacing: .03em; }
.challenge__txt span { font-size: .92rem; opacity: .92; }
.challenge__go { margin-left: auto; flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; background: #0a0908; font-family: var(--display); font-weight: 700; font-style: italic; text-transform: uppercase; letter-spacing: .1em; clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); transition: transform .25s var(--ease); }
.challenge:hover .challenge__go { transform: translateX(4px); }

/* ---------- Game page ---------- */
.gpage { padding-top: calc(var(--header-h) + 18px); padding-bottom: clamp(40px, 6vw, 90px); background: radial-gradient(70% 60% at 100% 0%, rgba(227, 34, 43, .2), transparent 60%), var(--bg-2); }
.gpage__in { display: grid; gap: 22px; }
.gpage__head { display: grid; gap: 16px; align-content: start; }
.gpage h1 { font-size: clamp(2.4rem, 7vw, 5.4rem); }
@media (max-width: 899px) {
  .gpage__head { display: contents; }
  .gpage__head .crumbs { order: 1; } .gpage__head h1 { order: 2; } .gpage .game { order: 3; }
  .gpage__head .lede { order: 4; } .gpage__head .game__hint { order: 5; } .gpage__head .checks { order: 6; } .gpage__head .link { order: 7; }
}
@media (min-width: 900px) { .gpage__in { grid-template-columns: 1fr minmax(0, 460px); gap: clamp(40px, 6vw, 90px); align-items: center; } .gpage { padding-top: calc(var(--header-h) + 48px); } }

button.pill { cursor: pointer; min-height: 40px; }
.sound svg { width: 18px; height: 18px; }
.sound[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
@media (max-width: 600px) { .hero__meta .ticks { display: none; } }
