/* =========================================================
   XTEAM RACING — Homepage
   Dark, high-contrast, one bold accent (acid lime)
   ========================================================= */

:root {
  --bg: #0a0a0b;
  --bg-2: #111113;
  --bg-3: #18181b;
  --line: rgba(255, 255, 255, .1);
  --line-2: rgba(255, 255, 255, .18);
  --text: #f4f4f2;
  --muted: #9a9a96;
  --accent: #c6ff1a;
  --accent-ink: #0a0a0b;
  --red: #ff4d2e;

  --f-display: "Anton", "Impact", "Arial Narrow Bold", sans-serif;
  --f-body: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --radius: 18px;
  --radius-sm: 10px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 72px;
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
body.menu-open { overflow: hidden; }

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, h5, p, figure { margin: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }

.container { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 7vw, 100px); }
.mono { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; }
.label { color: var(--accent); }
.accent { color: var(--accent); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--f-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted);
}
.eyebrow .idx { color: var(--accent); padding: .25rem .5rem; border: 1px solid var(--line-2); border-radius: 99px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(198, 255, 26, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(198, 255, 26, 0); } 100% { box-shadow: 0 0 0 0 rgba(198, 255, 26, 0); } }

.h2 {
  font-family: var(--f-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(2.6rem, 7vw, 6.5rem); line-height: .92; letter-spacing: -.005em;
}
.h3 { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1; }

.section-head { margin-bottom: clamp(24px, 3.5vw, 44px); }
.section-head--split { display: grid; gap: 1.25rem; }
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1fr 2fr; align-items: end; }
  .section-head--split .h2 { text-align: right; }
}

/* ---------- Buttons ---------- */
.btn {
  --h: 48px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  height: var(--h); padding: 0 1.4rem; border-radius: 99px;
  font-weight: 600; font-size: .95rem; white-space: nowrap; overflow: hidden; isolation: isolate;
  transition: color .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease), transform .3s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn .arr { font-style: normal; transition: transform .4s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn--sm { --h: 40px; padding: 0 1.1rem; font-size: .85rem; }
.btn--lg { --h: 58px; padding: 0 1.8rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent::before { background: #fff; }
.btn--ghost { border: 1px solid var(--line-2); color: var(--text); background: rgba(255, 255, 255, .04); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--ghost::before { background: var(--text); }
.btn--ghost:hover { color: var(--bg); border-color: var(--text); }
.btn--outline { border: 1px solid var(--accent); color: var(--accent); }
.btn--outline::before { background: var(--accent); }
.btn--outline:hover { color: var(--accent-ink); }
.btn--outline.is-done { background: var(--accent); color: var(--accent-ink); }

.link-arrow { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; border-bottom: 1px solid var(--accent); padding-bottom: 2px; }
.link-arrow i { font-style: normal; color: var(--accent); transition: transform .4s var(--ease); }
.link-arrow:hover i { transform: translateX(5px); }

.icon-btn { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; transition: background .3s; }
.icon-btn:hover { background: rgba(255, 255, 255, .08); }
.icon-btn__badge { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-size: .65rem; font-weight: 700; display: grid; place-items: center; }
.icon-btn--line { border: 1px solid var(--line-2); }
.icon-btn--line:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* ---------- Preloader ---------- */
.preloader { position: fixed; inset: 0; z-index: 1000; background: var(--bg); display: grid; place-items: center; }
.preloader__inner { width: min(420px, 80vw); display: grid; gap: 1rem; }
.preloader__brand { font-family: var(--f-display); font-size: clamp(2.4rem, 8vw, 4rem); line-height: 1; letter-spacing: .01em; }
.preloader__brand em { font-style: normal; color: var(--accent); margin-left: .2em; }
.preloader__bar { height: 2px; background: var(--line); overflow: hidden; }
.preloader__bar span { display: block; height: 100%; width: 0; background: var(--accent); }
.preloader__count { justify-self: end; color: var(--muted); }

/* ---------- Grain & cursor ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 900; pointer-events: none; opacity: .06;
  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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain { 0%, 100% { transform: translate(0, 0); } 20% { transform: translate(-5%, 3%); } 40% { transform: translate(4%, -6%); } 60% { transform: translate(-3%, 5%); } 80% { transform: translate(6%, 2%); } }

.cursor {
  position: fixed; top: 0; left: 0; z-index: 950; pointer-events: none;
  width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--accent);
  mix-blend-mode: difference; display: grid; place-items: center; opacity: 0;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .3s;
}
.cursor__label { font-family: var(--f-mono); font-size: .7rem; text-transform: uppercase; color: var(--accent-ink); opacity: 0; transition: opacity .2s; }
.cursor.is-active { opacity: 1; }
.cursor.is-hover { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
.cursor.is-label { width: 88px; height: 88px; margin: -44px 0 0 -44px; mix-blend-mode: normal; }
.cursor.is-label .cursor__label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  padding-top: env(safe-area-inset-top, 0px);
  transition: transform .5s var(--ease), background .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled { background: rgba(10, 10, 11, .72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-color: var(--line); }
/* header stays fixed and visible while scrolling */
.header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: 1440px; margin: 0 auto; padding-inline: var(--gutter); }

.logo { display: inline-flex; align-items: center; gap: .55rem; }
.logo__mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-family: var(--f-display); font-size: 1.5rem; transform: skewX(-8deg); }
.logo__text { font-family: var(--f-display); font-size: 1.25rem; letter-spacing: .02em; line-height: 1; }
.logo__text b { font-weight: 400; color: var(--muted); margin-left: .25em; }

.nav { display: none; }
.nav ul { display: flex; gap: .25rem; padding: .3rem; border: 1px solid var(--line); border-radius: 99px; background: rgba(255, 255, 255, .03); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav a { display: block; padding: .5rem 1rem; border-radius: 99px; font-size: .88rem; font-weight: 500; color: #cfcfcb; transition: color .3s, background .3s; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.nav a.is-active { background: var(--text); color: var(--bg); }

.header__actions { display: flex; align-items: center; gap: .5rem; }
.hide-sm { display: none; }

.burger { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-content: center; gap: 6px; }
.burger span { display: block; width: 18px; height: 1.5px; background: var(--text); transition: transform .4s var(--ease); }
.menu-open .burger span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-open .burger span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

@media (min-width: 1100px) {
  .nav { display: block; }
  .burger { display: none; }
}
@media (min-width: 640px) { .hide-sm { display: inline-flex; } }

/* mobile menu */
.mmenu {
  position: fixed; inset: 0; z-index: 400; background: var(--bg);
  padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 24px) var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease); visibility: hidden;
}
.menu-open .mmenu { clip-path: inset(0 0 0 0); visibility: visible; }
.mmenu li { border-bottom: 1px solid var(--line); overflow: hidden; }
.mmenu a { display: flex; align-items: baseline; gap: 1rem; padding: .7rem 0; font-family: var(--f-display); font-size: clamp(2rem, 9vw, 3.4rem); text-transform: uppercase; line-height: 1.05; }
.mmenu a .mono { color: var(--accent); }
.mmenu a:hover { color: var(--accent); }
.mmenu__foot { display: grid; gap: .75rem; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 11, .55) 0%, rgba(10, 10, 11, .1) 30%, rgba(10, 10, 11, .35) 60%, var(--bg) 100%),
    linear-gradient(90deg, rgba(10, 10, 11, .7) 0%, rgba(10, 10, 11, .25) 45%, transparent 70%),
    radial-gradient(120% 80% at 0% 100%, rgba(10, 10, 11, .85), transparent 60%);
}
.hero__content { position: relative; z-index: 2; padding-top: calc(var(--header-h) + 60px); padding-bottom: 24px; }
.hero__eyebrow { color: #d6d6d2; margin-bottom: 1.25rem; }
.hero__title {
  font-family: var(--f-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(3.2rem, min(12vw, 15svh), 11rem); line-height: .86; letter-spacing: -.01em;
}
.line { display: block; overflow: hidden; padding-bottom: .04em; }
.line > span { display: inline-block; will-change: transform; }
.line--accent { color: var(--accent); }
.hero__bottom { display: grid; gap: 1.5rem; margin-top: clamp(24px, 4vw, 40px); }
.hero__sub { max-width: 34rem; font-size: clamp(1rem, 1.4vw, 1.2rem); color: #dcdcd8; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (min-width: 900px) {
  .hero__bottom { grid-template-columns: 1fr auto; align-items: end; }
}
.hero__meta { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: flex-end; padding-bottom: 28px; padding-top: 24px; border-top: 1px solid var(--line); margin-top: 8px; }
.hero__next { display: grid; gap: .15rem; }
.hero__next strong { font-size: 1rem; }
.hero__next .mono:last-child { color: var(--muted); }
.scroll-cue { display: flex; flex-direction: column; align-items: center; gap: .5rem; color: var(--muted); }
.scroll-cue__line { width: 1px; height: 48px; background: var(--line-2); position: relative; overflow: hidden; }
.scroll-cue__line::after { content: ""; position: absolute; left: 0; top: -50%; width: 100%; height: 50%; background: var(--accent); animation: drip 1.8s var(--ease) infinite; }
@keyframes drip { to { top: 100%; } }

/* ---------- Marquee ---------- */
.marquee { background: var(--accent); color: var(--accent-ink); overflow: hidden; padding: .8rem 0; transform: rotate(-1.5deg) scale(1.03); margin-block: 1rem; }
.marquee__track { display: flex; width: max-content; align-items: center; gap: 2rem; animation: marquee 30s linear infinite; }
.marquee span { font-family: var(--f-display); font-size: clamp(1.6rem, 4vw, 3rem); text-transform: uppercase; line-height: 1; white-space: nowrap; }
.marquee i { font-style: normal; font-size: 1.4rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.about__statement {
  font-size: clamp(1.6rem, 4vw, 3.6rem); line-height: 1.15; font-weight: 500; letter-spacing: -.02em; max-width: 1200px;
}
.reveal-words .w { opacity: .18; transition: opacity .2s; }
.about__grid { display: grid; gap: 1.25rem; margin-top: clamp(32px, 5vw, 60px); }
.about__img { border-radius: var(--radius); overflow: hidden; background: var(--bg-3); }
.about__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.about__img:hover img { transform: scale(1.05); }
.about__img--a { aspect-ratio: 4 / 3.4; }
.about__img--b { aspect-ratio: 4 / 5; }
.about__copy { display: grid; gap: 1.25rem; align-content: start; color: #c9c9c5; font-size: 1.05rem; }
.about__copy strong { color: var(--text); font-weight: 600; }
.about__copy .link-arrow { justify-self: start; color: var(--text); }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); margin-top: 1rem; }
.stats li { padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.stats li:nth-child(odd) { padding-right: 1rem; border-right: 1px solid var(--line); }
.stats li:nth-child(even) { padding-left: 1rem; }
.stats strong, .stats b { font-family: var(--f-display); font-weight: 400; font-size: clamp(2.6rem, 6vw, 4.5rem); line-height: 1; }
.stats b { color: var(--accent); }
.stats span { display: block; color: var(--muted); font-size: .9rem; margin-top: .35rem; }

@media (min-width: 900px) {
  .about__grid { grid-template-columns: 1.15fr .85fr 1fr; align-items: start; gap: 2rem; }
  .about__img--b { margin-top: 3rem; }
  .about__copy { padding-top: 2rem; }
  .stats { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); }
  .stats li, .stats li:nth-child(odd), .stats li:nth-child(even) { padding: 2rem 1.5rem; border-right: 1px solid var(--line); }
  .stats li:first-child { padding-left: 0; }
  .stats li:last-child { border-right: 0; }
}

/* ---------- Feature cards ---------- */
.features__grid { display: grid; gap: 1rem; }
.fcard {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 520px; border-radius: var(--radius); overflow: hidden; isolation: isolate;
  border: 1px solid var(--line);
}
.fcard__media { position: absolute; inset: 0; z-index: -2; }
.fcard__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.2s var(--ease), filter .6s; filter: grayscale(.4) brightness(.8); }
.fcard::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 10, 11, .05) 20%, rgba(10, 10, 11, .92) 78%); }
.fcard:hover .fcard__media img { transform: scale(1); filter: grayscale(0) brightness(.9); }
.fcard__body { padding: clamp(1.4rem, 2.5vw, 2rem); display: grid; gap: .8rem; }
.fcard__num { color: var(--accent); }
.fcard h3 { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(2rem, 3.4vw, 3rem); line-height: .95; }
.fcard p { color: #cfcfcb; max-width: 34ch; }
.fcard__go { justify-self: start; margin-top: .5rem; display: inline-flex; gap: .5rem; align-items: center; padding: .55rem 1rem; border-radius: 99px; background: rgba(255, 255, 255, .1); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-weight: 600; font-size: .9rem; transition: background .4s var(--ease), color .4s; }
.fcard__go i { font-style: normal; transition: transform .4s var(--ease); }
.fcard:hover .fcard__go { background: var(--accent); color: var(--accent-ink); }
.fcard:hover .fcard__go i { transform: rotate(45deg); }
@media (min-width: 900px) {
  .features__grid { grid-template-columns: repeat(3, 1fr); }
  .fcard { min-height: 640px; }
  .fcard:nth-child(2) { margin-top: 40px; margin-bottom: -40px; }
}

/* ---------- Horizontal gallery ---------- */
.hscroll { position: relative; overflow: hidden; background: var(--bg-2); border-block: 1px solid var(--line); }
.hscroll { padding-block: clamp(56px, 7vw, 100px); }
.hscroll__head { margin-bottom: clamp(24px, 3.5vw, 44px); }
.hscroll__pin { display: flex; align-items: center; }
.hscroll__head { display: grid; gap: 1rem; }
.hscroll__hint { color: var(--muted); }
.hscroll__track { display: flex; gap: 1rem; padding-inline: var(--gutter); width: max-content; align-items: center; }
.hcard { position: relative; width: clamp(240px, 32vw, 460px); aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; flex-shrink: 0; background: var(--bg-3); }
.hcard--tall { width: clamp(200px, 24vw, 360px); aspect-ratio: 3 / 4; }
.hcard img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.hcard:hover img { transform: scale(1.06); }
.hcard figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem 1.1rem; background: linear-gradient(transparent, rgba(0, 0, 0, .8)); font-family: var(--f-display); text-transform: uppercase; font-size: 1.4rem; line-height: 1; display: grid; gap: .3rem; }
.hcard figcaption .mono { color: var(--accent); font-family: var(--f-mono); font-size: .7rem; }
@media (min-width: 900px) {
  .hscroll__head { grid-template-columns: auto 1fr auto; align-items: end; gap: 2rem; }
  .hscroll__head .h2 { grid-column: 2; }
}
/* mobile: native swipe instead of pinning */
@media (max-width: 899px) {
  .hscroll__pin { display: block; }
  .hscroll__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
  .hscroll__track::-webkit-scrollbar { display: none; }
  .hcard { scroll-snap-align: start; width: 78vw; }
  .hcard--tall { width: 62vw; }
}

/* ---------- Events ---------- */
.events__filters { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .5rem; margin-bottom: 1.5rem; scrollbar-width: none; }
.events__filters::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; padding: .55rem 1.1rem; border-radius: 99px; border: 1px solid var(--line-2); font-size: .88rem; font-weight: 500; transition: all .3s var(--ease); }
.chip:hover { border-color: var(--text); }
.chip.is-active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.events__list { position: relative; border-top: 1px solid var(--line); }
.event {
  position: relative; display: grid; grid-template-columns: auto 1fr; gap: .75rem 1.25rem; align-items: center;
  padding: 1.5rem 0; border-bottom: 1px solid var(--line); transition: padding .5s var(--ease);
}
.event::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(198, 255, 26, .08), transparent 70%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.event:hover::before { opacity: 1; }
.event.is-hidden { display: none; }
.event__date { display: grid; justify-items: center; min-width: 64px; padding: .5rem; border: 1px solid var(--line-2); border-radius: 12px; }
.event__date strong { font-family: var(--f-display); font-weight: 400; font-size: 2rem; line-height: 1; }
.event__date .mono { font-size: .62rem; color: var(--muted); }
.event__main h3 { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.5rem, 3vw, 2.4rem); line-height: 1; transition: color .3s; }
.event:hover .event__main h3 { color: var(--accent); }
.event__meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; color: var(--muted); margin-top: .45rem; font-size: .7rem; }
.event__tags { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .4rem; }
.event .rsvp { grid-column: 1 / -1; justify-self: start; }
.tag { font-family: var(--f-mono); font-size: .68rem; text-transform: uppercase; padding: .3rem .6rem; border-radius: 6px; background: rgba(255, 255, 255, .06); color: #cfcfcb; }
.tag--easy { background: rgba(198, 255, 26, .14); color: var(--accent); }
.tag--mid { background: rgba(255, 196, 0, .14); color: #ffc400; }
.tag--hard { background: rgba(255, 77, 46, .16); color: var(--red); }
@media (min-width: 900px) {
  .event { grid-template-columns: 90px 1.6fr 1fr auto; padding: 1.75rem 1rem; }
  .event__tags, .event .rsvp { grid-column: auto; }
  .event .rsvp { justify-self: end; }
  .event:hover { padding-left: 1.75rem; }
}
.event-preview { position: fixed; top: 0; left: 0; z-index: 300; width: 280px; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; pointer-events: none; opacity: 0; transform: scale(.8); }
.event-preview img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none), (max-width: 899px) { .event-preview { display: none; } }
.events__foot { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; margin-top: 2rem; }

/* ---------- Shop ---------- */
.fitment {
  display: grid; gap: .75rem; padding: clamp(1.2rem, 2.5vw, 1.75rem); margin-bottom: 2rem;
  border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.fitment::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); }
.fitment__title { display: grid; gap: .2rem; }
.fitment__title strong { font-size: 1.15rem; }
.select { display: grid; gap: .3rem; }
.select .mono { color: var(--muted); font-size: .65rem; }
.select select {
  appearance: none; -webkit-appearance: none; width: 100%; height: 48px; padding: 0 2.5rem 0 1rem; border-radius: 12px;
  background: var(--bg-3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23c6ff1a' stroke-width='1.8'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 1rem center;
  border: 1px solid var(--line-2); color: var(--text); font: inherit; font-size: .95rem; cursor: pointer;
}
.select select:disabled { opacity: .45; cursor: not-allowed; }
.select select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.fitment .btn { align-self: end; }
.fitment__result { grid-column: 1 / -1; color: var(--accent); min-height: 1em; }
.fitment__result:empty { display: none; }
@media (min-width: 900px) {
  .fitment { grid-template-columns: 1.3fr 1fr 1fr .7fr auto; align-items: end; gap: 1rem; padding-left: 2rem; }
}

.cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; margin-bottom: clamp(32px, 5vw, 56px); }
.cat { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; isolation: isolate; border: 1px solid var(--line); }
.cat img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.6) brightness(.6); transition: transform 1s var(--ease), filter .5s; }
.cat::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(transparent 30%, rgba(10, 10, 11, .85)); }
.cat:hover img { transform: scale(1.08); filter: grayscale(0) brightness(.75); }
.cat__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem 1.1rem; }
.cat__body .mono { color: var(--accent); }
.cat h3 { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.3rem, 2.4vw, 2rem); line-height: 1; margin-top: .2rem; }
.cat p { color: #bdbdb9; font-size: .82rem; margin-top: .3rem; display: none; }
.cat--lg { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
@media (min-width: 640px) { .cat p { display: block; } }
@media (min-width: 900px) {
  .cats { grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: repeat(2, 260px); }
  .cat { aspect-ratio: auto; }
  .cat--lg { grid-column: 1; grid-row: 1 / 3; aspect-ratio: auto; }
}

.products-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 1.25rem; }
.products-nav { display: flex; gap: .5rem; }
.products { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; scroll-behavior: smooth; }
.products::-webkit-scrollbar { display: none; }
.product { flex: 0 0 clamp(240px, 70vw, 320px); scroll-snap-align: start; }
@media (min-width: 900px) { .product { flex-basis: calc((100% - 3rem) / 4); } }
.product__img { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--bg-3); margin-bottom: .9rem; }
.product__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.product:hover .product__img img { transform: scale(1.06); }
.badge { position: absolute; top: .75rem; left: .75rem; font-family: var(--f-mono); font-size: .65rem; text-transform: uppercase; padding: .35rem .6rem; border-radius: 6px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.badge--road { background: rgba(198, 255, 26, .9); color: var(--accent-ink); }
.badge--track { background: rgba(255, 77, 46, .92); color: #fff; }
.badge--cert { background: rgba(255, 255, 255, .92); color: var(--accent-ink); }
.product__cat { color: var(--muted); font-size: .68rem; }
.product h4 { font-size: 1.1rem; font-weight: 600; margin-top: .2rem; }
.product__row { display: flex; justify-content: space-between; align-items: center; margin-top: .5rem; }
.price { font-family: var(--f-display); font-size: 1.5rem; }
.add { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); font-size: 1.3rem; transition: all .3s var(--ease); }
.add:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); transform: rotate(90deg); }

.trust { display: grid; gap: .75rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.trust li { display: flex; gap: .75rem; align-items: center; color: #cfcfcb; font-size: .95rem; }
.trust b { display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: rgba(198, 255, 26, .12); color: var(--accent); font-weight: 600; }
@media (min-width: 900px) { .trust { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Community ---------- */
.community { background: var(--bg-2); border-top: 1px solid var(--line); }
.community__grid { display: grid; gap: 1.25rem; }
/* boards stretch to match the profile card height so no empty space is left beside it */
.boards { display: flex; flex-direction: column; gap: .75rem; }
.board { flex: 1; }
.board {
  display: grid; grid-template-columns: auto 1fr; gap: .5rem 1rem; align-items: center;
  padding: 1.25rem; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line);
  transition: border-color .4s, transform .4s var(--ease);
}
.board:hover { border-color: var(--accent); transform: translateX(6px); }
.board__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--bg-3); font-size: 1.4rem; }
.board h4 { font-size: 1.15rem; font-weight: 600; }
.board p { color: var(--muted); font-size: .9rem; }
.board__count { grid-column: 2; color: var(--accent); }
@media (min-width: 640px) {
  .board { grid-template-columns: auto 1fr auto; }
  .board__count { grid-column: auto; }
}

.profile { border-radius: var(--radius); overflow: hidden; background: var(--bg); border: 1px solid var(--line); }
.profile__cover { aspect-ratio: 16 / 9; overflow: hidden; }
.profile__cover img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.profile__body { padding: 1.25rem; display: grid; gap: 1.1rem; }
.profile__id { display: flex; gap: .85rem; align-items: center; margin-top: -2.6rem; }
.avatar { display: grid; place-items: center; width: 64px; height: 64px; flex-shrink: 0; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-family: var(--f-display); font-size: 1.4rem; border: 4px solid var(--bg); }
.profile__id div { display: grid; padding-top: 1.6rem; }
.profile__id .mono { color: var(--muted); font-size: .65rem; }
.profile__bike { display: grid; gap: .2rem; padding: 1rem; border-radius: 12px; background: var(--bg-3); }
.profile__bike strong { font-family: var(--f-display); font-weight: 400; font-size: 1.6rem; text-transform: uppercase; line-height: 1.05; }
.profile__bike .mono:last-child { color: var(--muted); font-size: .65rem; }
.profile__gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.profile__gallery img { aspect-ratio: 1; object-fit: cover; border-radius: 10px; width: 100%; }
@media (min-width: 900px) { .community__grid { grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: stretch; } }

.rules { margin-top: clamp(32px, 5vw, 56px); padding: clamp(1.4rem, 3vw, 2.5rem); border-radius: var(--radius); border: 1px dashed var(--line-2); display: grid; gap: 1.5rem; }
.rules__head { display: grid; gap: .4rem; }
.rules__list { display: grid; gap: 1rem; }
.rules__list li { display: flex; gap: .85rem; align-items: baseline; font-size: 1.05rem; }
.rules__list b { color: var(--accent); }
.rules .link-arrow { justify-self: start; }
@media (min-width: 900px) {
  .rules { grid-template-columns: 1fr 2fr; align-items: center; }
  .rules__list { grid-template-columns: repeat(2, 1fr); }
  .rules .link-arrow { grid-column: 2; }
}

/* ---------- Reel ---------- */
.reel { padding: clamp(16px, 3vw, 32px) var(--gutter); background: var(--bg); }
.reel__frame { position: relative; height: clamp(480px, 90svh, 920px); border-radius: clamp(16px, 3vw, 32px); overflow: hidden; clip-path: inset(0 round clamp(16px, 3vw, 32px)); }
.reel__video { width: 100%; height: 100%; object-fit: cover; }
.reel__overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 1rem; padding: clamp(1.4rem, 4vw, 3.5rem); background: linear-gradient(180deg, transparent 30%, rgba(10, 10, 11, .85)); }
.reel__overlay .mono { color: var(--accent); }
.reel__title { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(2.4rem, 7vw, 6.5rem); line-height: .9; }
.reel__play { position: absolute; top: clamp(1.4rem, 4vw, 3rem); right: clamp(1.4rem, 4vw, 3rem); width: clamp(72px, 9vw, 120px); height: clamp(72px, 9vw, 120px); border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 1.4rem; display: grid; place-items: center; transition: transform .4s var(--ease); }
.reel__play:hover { transform: scale(1.08); }
.reel__play::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid rgba(198, 255, 26, .5); animation: ring 2.4s var(--ease) infinite; }
@keyframes ring { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }

/* ---------- Closing CTA ---------- */
.cta { position: relative; overflow: hidden; padding-block: clamp(80px, 11vw, 150px); text-align: center; isolation: isolate; }
.cta__bg { position: absolute; inset: -10% 0; z-index: -1; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.35) saturate(.9); }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 60% at 50% 50%, transparent, var(--bg) 95%), linear-gradient(var(--bg), transparent 25%, transparent 75%, var(--bg)); }
.cta__inner { display: grid; justify-items: center; gap: 1.5rem; }
.cta__title { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(2.8rem, 10vw, 10rem); line-height: .88; }
.cta__text { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: #dcdcd8; max-width: 36rem; }
.cta__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: .5rem; }
.cta__note { color: var(--muted); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-top: clamp(48px, 6vw, 80px); padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); overflow: hidden; }
.footer__top { display: grid; gap: 3rem; }
.footer__news { display: grid; gap: 1.25rem; max-width: 34rem; }
.newsletter { display: flex; gap: .5rem; padding: .35rem; border-radius: 99px; border: 1px solid var(--line-2); background: var(--bg-2); }
.newsletter input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--text); font: inherit; padding: 0 1rem; }
.newsletter input:focus { outline: none; }
.newsletter__msg { color: var(--accent); min-height: 1em; }
.footer__cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.footer__cols div { display: grid; gap: .55rem; align-content: start; }
.footer__cols h5 { color: var(--muted); margin-bottom: .4rem; font-weight: 400; }
.footer__cols a { color: #d4d4d0; transition: color .3s; }
.footer__cols a:hover { color: var(--accent); }
@media (min-width: 900px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__cols { grid-template-columns: repeat(3, 1fr); }
}
.footer__brand { font-family: var(--f-display); font-size: clamp(2.5rem, 15.5vw, 17rem); line-height: .8; letter-spacing: -.01em; margin-top: clamp(48px, 8vw, 96px); white-space: nowrap; color: var(--text); }
.footer__brand span { color: transparent; -webkit-text-stroke: 1px var(--line-2); }
.footer__bottom { display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between; padding-top: 1.5rem; margin-top: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); }
.to-top:hover { color: var(--accent); }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 800; transform: translate(-50%, calc(100% + 48px)); visibility: hidden; padding: .85rem 1.25rem; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-weight: 500; transition: transform .5s var(--ease); max-width: calc(100vw - 32px); text-align: center; }
.toast.is-show { transform: translate(-50%, 0); visibility: visible; }

/* ---------- Focus & motion ---------- */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .grain { display: none; }
}

/* leave room for the floating music button (bottom-left) beside the hero's "Next ride" info */
.hero__next { margin-left: 64px; }
@media (min-width: 561px) { .hero__next { margin-left: 190px; } }

/* ---------- back to top (v1: lime disc + progress ring) ---------- */
.totop { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 650; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: rgba(12, 12, 12, .72); color: var(--accent); font-size: 1.3rem; font-weight: 700; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); opacity: 0; visibility: hidden; transform: translateY(16px) scale(.8); transition: opacity .4s, transform .5s var(--ease), visibility 0s .4s, background .3s, color .3s; }
.totop.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .4s, transform .5s var(--ease), background .3s, color .3s; }
.totop:hover { background: var(--accent); color: var(--accent-ink); }
.totop svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.totop circle { fill: none; stroke-width: 2; stroke: var(--line-2); }
.totop .totop__prog { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 163.4; stroke-dashoffset: 163.4; }
.totop span { position: relative; transition: transform .4s var(--ease); }
.totop:hover span { transform: translateY(-3px); }

/* responsive: the tilted marquee is scaled past the viewport edge — clip it so the page never scrolls sideways */
main { overflow-x: clip; }
