/* =============================================
   MVS — Movin' Violation Society
   Design System: Black/Red/Gray/White
   Dark-first, no light mode toggle needed
============================================= */

@import url('https://api.fontshare.com/v2/css?f[]=clash-display@400,500,600,700&f[]=satoshi@400,500,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Chivo+Mono:wght@400;500;600&display=swap');

/* ── TOKENS ──────────────────────────────── */
:root {
  /* Type */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);
  --text-hero: clamp(3rem,     0.5rem  + 7vw,    8rem);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Brand Colors */
  --red:        #e0151e;
  --red-dim:    #a50f16;
  --red-glow:   rgba(224, 21, 30, 0.25);
  --white:      #ffffff;
  --gray-light: #a8a8a8;
  --gray-mid:   #4a4a4a;
  --gray-dark:  #1e1e1e;
  --black:      #0a0a0a;
  --black-card: #111111;
  --border:     #2a2a2a;

  /* Fonts */
  --font-display: 'Clash Display', 'Arial Black', sans-serif;
  --font-body:    'Satoshi', 'Inter', sans-serif;
  --font-mono:    'Chivo Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  /* Transitions */
  --ease: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;

  /* Content */
  --content-narrow:  640px;
  --content-default: 1000px;
  --content-wide:    1260px;
}

/* ── BASE ─────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  min-height: 100dvh;
  background-color: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
}

img, video, svg { display: block; max-width: 100%; height: auto; }
ul[role='list'], ol[role='list'] { list-style: none; }
input, button, select { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, h5, h6 { text-wrap: balance; line-height: 1.1; font-family: var(--font-display); }
p, li { text-wrap: pretty; max-width: 72ch; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--ease), opacity var(--ease);
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

::selection {
  background: var(--red-glow);
  color: var(--white);
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── LAYOUT HELPERS ──────────────────────── */
.container {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-4), 5vw, var(--space-12));
}

.container--narrow {
  max-width: var(--content-narrow);
}

.section {
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
}

/* ── NAV ─────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--ease);
}

.nav--scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: var(--space-6);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.nav__logo-img {
  height: 52px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

.nav__logo-text {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}

.nav__logo-text .letter-m { color: var(--white); }
.nav__logo-text .letter-v { color: var(--red); }
.nav__logo-text .letter-s { color: var(--gray-light); }

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
}

.nav__links a {
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-light);
}

.nav__links a:hover {
  color: var(--white);
}

.nav__links a.active {
  color: var(--red);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  background: var(--red);
  color: var(--white);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: background var(--ease), transform var(--ease);
  white-space: nowrap;
}

.nav__cta:hover {
  background: var(--red-dim);
  transform: translateY(-1px);
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
}

/* Mobile nav */
.nav__mobile {
  display: none;
  flex-direction: column;
  background: var(--black-card);
  border-top: 1px solid var(--border);
  padding: var(--space-4) 0;
}

.nav__mobile.open { display: flex; }

.nav__mobile a {
  padding: var(--space-3) clamp(var(--space-4), 5vw, var(--space-12));
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-light);
  border-bottom: 1px solid var(--border);
}

.nav__mobile a:last-child { border-bottom: none; }
.nav__mobile a:hover { color: var(--white); background: var(--gray-dark); }

@media (max-width: 768px) {
  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: flex; }
}

/* ── HERO ─────────────────────────────────── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: var(--space-16);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/hero.png');
  background-size: cover;
  background-position: center 40%;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.4) 50%,
    rgba(0,0,0,0.15) 100%
  );
  z-index: 1;
}

.hero__overlay-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--black), transparent);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: var(--space-4);
}

.hero__eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--red);
}

.hero__logo-wrap {
  margin-bottom: var(--space-5);
  max-width: 340px;
}

.hero__logo-img {
  width: 100%;
  height: auto;
  display: block;
}

.hero__sub {
  font-size: var(--text-base);
  color: var(--gray-light);
  max-width: 52ch;
  line-height: 1.7;
  margin-bottom: var(--space-8);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.hero__badge {
  position: absolute;
  right: clamp(var(--space-4), 5vw, var(--space-16));
  bottom: clamp(var(--space-8), 6vw, var(--space-16));
  z-index: 2;
  text-align: center;
}

.hero__badge-ring {
  width: 110px;
  height: 110px;
  border: 2px solid var(--red);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
}

.hero__badge-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
}

.hero__badge-label {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-light);
}

@media (max-width: 600px) {
  .hero__badge { display: none; }
}

/* ── BUTTONS ─────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all var(--ease);
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--red);
  color: var(--white);
  border: 2px solid var(--red);
}

.btn--primary:hover {
  background: var(--red-dim);
  border-color: var(--red-dim);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--red-glow);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--border);
}

.btn--outline:hover {
  border-color: var(--gray-mid);
  transform: translateY(-2px);
}

/* ── SECTION HEADER ──────────────────────── */
.section-header {
  margin-bottom: var(--space-10);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: var(--space-3);
}

.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--red);
}

.section-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.section-title span { color: var(--red); }

/* ── ABOUT STRIP ─────────────────────────── */
.about {
  background: var(--black-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.about__text h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-5);
}

.about__text h2 span { color: var(--red); }

.about__text p {
  color: var(--gray-light);
  margin-bottom: var(--space-4);
  line-height: 1.75;
}

.about__pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.pillar {
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--gray-dark);
}

.pillar__icon {
  font-size: 1.4rem;
  margin-bottom: var(--space-2);
}

.pillar__title {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-1);
  color: var(--white);
}

.pillar__desc {
  font-size: var(--text-xs);
  color: var(--gray-light);
  line-height: 1.5;
  max-width: none;
}

.about__image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.about__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  pointer-events: none;
}

.about__image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-4);
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}

.about__image-tag {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
}

@media (max-width: 768px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__image-wrap { order: -1; }
}

/* ── STATS BAR ───────────────────────────── */
.stats {
  background: var(--red);
  padding-block: var(--space-6);
}

.stats__inner {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: var(--space-4);
  text-align: center;
}

.stat__num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.stat__label {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-top: var(--space-1);
}

/* ── EVENTS SECTION (Home Preview) ──────── */
.events-preview { background: var(--black); }

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-5);
  margin-bottom: var(--space-8);
}

.event-card {
  background: var(--black-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
  display: flex;
  flex-direction: column;
}

.event-card:hover {
  border-color: var(--red);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.5), 0 0 0 1px var(--red-glow);
}

.event-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border);
}

.event-card__date-block {
  flex-shrink: 0;
  text-align: center;
  background: var(--red);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  min-width: 52px;
}

.event-card__date-day {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.event-card__date-month {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
}

.event-card__meta {
  flex: 1;
  min-width: 0;
}

.event-card__type {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 2px;
}

.event-card__title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-card__body {
  padding: var(--space-4) var(--space-5);
  flex: 1;
}

.event-card__desc {
  font-size: var(--text-sm);
  color: var(--gray-light);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.event-card__details {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.event-detail {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--gray-light);
}

.event-detail svg {
  flex-shrink: 0;
  color: var(--red);
}

.event-card__footer {
  padding: var(--space-3) var(--space-5);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.event-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid;
}

.event-tag--open {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.3);
  background: rgba(74, 222, 128, 0.08);
}

.event-tag--featured {
  color: var(--red);
  border-color: rgba(224, 21, 30, 0.3);
  background: rgba(224, 21, 30, 0.08);
}

.event-tag--coming {
  color: var(--gray-light);
  border-color: var(--border);
  background: transparent;
}

.event-tag--example {
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.08);
}

.events-example-banner {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-8);
  font-size: var(--text-sm);
  color: #f59e0b;
}

.events-example-banner svg {
  flex-shrink: 0;
}

.event-card__link {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--ease);
}

.event-card__link:hover { gap: 8px; }

.events-cta {
  text-align: center;
}

/* ── JOIN / DISCORD CTA ──────────────────── */
.join {
  background: linear-gradient(135deg, var(--gray-dark) 0%, var(--black) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.join__eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

.join__eyebrow::before,
.join__eyebrow::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--red);
}

.join h2 {
  font-size: var(--text-3xl);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-4);
}

.join h2 span { color: var(--red); }

.join__sub {
  font-size: var(--text-base);
  color: var(--gray-light);
  max-width: 52ch;
  margin-inline: auto;
  margin-bottom: var(--space-8);
}

.join__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}

/* ── WATCH LIVE STRIP ───────────────────── */
.tiktok-strip {
  background: var(--black-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.live-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.live-btn {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-6);
  background: var(--gray-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all var(--ease);
  min-width: 280px;
}

.live-btn:hover {
  border-color: var(--red);
  background: rgba(224, 21, 30, 0.08);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.live-btn__icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  color: var(--white);
}

.live-btn__text {
  flex: 1;
  text-align: left;
}

.live-btn__label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-light);
  margin-bottom: 3px;
}

.live-btn__handle {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.live-btn__badge {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--red);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  animation: heartbeat 2.4s ease-in-out infinite;
}

@keyframes heartbeat {
  0%   { opacity: 1; transform: scale(1); }
  10%  { opacity: 1; transform: scale(1.12); }
  20%  { opacity: 1; transform: scale(1); }
  30%  { opacity: 1; transform: scale(1.08); }
  40%  { opacity: 1; transform: scale(1); }
  100% { opacity: 1; transform: scale(1); }
}

/* ── FOOTER ──────────────────────────────── */
.footer {
  background: var(--black-card);
  border-top: 1px solid var(--border);
  padding-block: var(--space-10);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-8);
}

.footer__brand p {
  font-size: var(--text-sm);
  color: var(--gray-light);
  margin-top: var(--space-4);
  line-height: 1.65;
  max-width: 38ch;
}

.footer__logo {
  height: 80px;
  width: auto;
}

.footer__col-title {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: var(--space-4);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  list-style: none;
}

.footer__links a {
  font-size: var(--text-sm);
  color: var(--gray-light);
  transition: color var(--ease);
}

.footer__links a:hover { color: var(--red); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
}

.footer__copy {
  font-size: var(--text-xs);
  color: var(--gray-mid);
}

.footer__social {
  display: flex;
  gap: var(--space-3);
}

.footer__social a {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-light);
  transition: all var(--ease);
}

.footer__social a:hover {
  color: var(--white);
  border-color: var(--red);
  background: rgba(224, 21, 30, 0.1);
}

@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ── EVENTS PAGE ─────────────────────────── */
.events-hero {
  position: relative;
  background: var(--black-card);
  border-bottom: 1px solid var(--border);
  padding-block: clamp(var(--space-12), 8vw, var(--space-20));
  overflow: hidden;
}

.events-hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(ellipse at top right, rgba(224,21,30,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.events-hero h1 {
  font-size: var(--text-3xl);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-4);
}

.events-hero h1 span { color: var(--red); }

.events-hero p {
  font-size: var(--text-base);
  color: var(--gray-light);
  max-width: 56ch;
}

/* Filter tabs */
.events-filter {
  background: var(--black-card);
  border-bottom: 1px solid var(--border);
  padding-block: var(--space-4);
}

.filter-tabs {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.filter-tab {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--gray-light);
  cursor: pointer;
  transition: all var(--ease);
}

.filter-tab:hover {
  border-color: var(--gray-mid);
  color: var(--white);
}

.filter-tab.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

/* Events full listing */
.events-section { background: var(--black); }

.events-full-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-5);
}

.event-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  border-color: rgba(224,21,30,0.4);
  background: linear-gradient(135deg, rgba(224,21,30,0.06) 0%, var(--black-card) 100%);
}

.event-card--featured .event-card__header {
  border-right: 1px solid var(--border);
  border-bottom: none;
  flex-direction: column;
  text-align: center;
  min-width: 100px;
  justify-content: center;
}

.event-card--featured .event-card__date-block {
  width: 68px;
  height: 68px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.event-card--featured .event-card__date-day { font-size: var(--text-xl); }

@media (max-width: 640px) {
  .event-card--featured {
    grid-template-columns: 1fr;
  }
  .event-card--featured .event-card__header {
    border-right: none;
    border-bottom: 1px solid var(--border);
    flex-direction: row;
    text-align: left;
    min-width: unset;
  }
}

/* Section dividers */
.events-divider {
  padding: var(--space-4) 0 var(--space-2);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-5);
}

.events-divider h3 {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-light);
}

/* No events state */
.no-events {
  text-align: center;
  padding: var(--space-20) 0;
  display: none;
}

.no-events.visible { display: block; }

.no-events p {
  color: var(--gray-light);
  max-width: none;
}

/* ── SCROLL FADE ANIMATIONS ──────────────── */
/* content is always visible; sections simply slide up a little as they arrive */
.fade-in.visible { animation: fade-up 0.6s ease both; }
@keyframes fade-up { from { transform: translateY(16px); opacity: 0.4; } to { transform: none; opacity: 1; } }


.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }


/* ══════════════════════════════════════════
   NAV: Sprint link highlight
══════════════════════════════════════════ */
.nav__links a.nav__sprint,
.nav__mobile a.nav__sprint { color: var(--white); }
.nav__sprint::after {
  content: 'LIVE'; margin-left: 6px; padding: 1px 5px; border-radius: 3px;
  font-size: 0.6rem; letter-spacing: 0.1em; background: var(--red); color: var(--white); vertical-align: 2px;
}

/* ══════════════════════════════════════════
   MONTHLY SPRINT
══════════════════════════════════════════ */
.sp-mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.sp-muted { color: var(--gray-light); }
.sp-note { color: var(--gray-light); font-size: var(--text-sm); max-width: none; }
.sp-demo-note {
  margin-top: var(--space-6); padding: var(--space-3) var(--space-4); border: 1px dashed var(--red-dim);
  border-radius: var(--radius-md); color: var(--gray-light); font-size: var(--text-sm);
}

/* live pill */
.sp-live {
  display: inline-flex; align-items: center; gap: var(--space-2); padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--black); color: var(--gray-light);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
}
.sp-live__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gray-mid); }
.sp-live--on { color: var(--white); border-color: var(--red-dim); }
.sp-live--on .sp-live__dot { background: var(--red); box-shadow: 0 0 10px var(--red); animation: sp-blink 1.2s steps(2, jump-none) infinite; }
.sp-live--demo { color: #f59e0b; border-color: rgba(245, 158, 11, 0.4); }
.sp-live--demo .sp-live__dot { background: #f59e0b; }
@keyframes sp-blink { 50% { opacity: 0.25; } }

/* hero */
.sp-hero { isolation: isolate;
  position: relative; padding-block: clamp(var(--space-12), 7vw, var(--space-20)) var(--space-10);
  border-bottom: 1px solid var(--border); overflow: hidden;
}
.sp-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(10,10,10,0.97) 35%, rgba(10,10,10,0.7)), url('assets/hero-ac-900.jpg') right center / cover no-repeat;
}
.sp-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-10); align-items: end; }
.sp-hero__main { min-width: 0; }
.sp-hero__title {
  font-size: var(--text-hero); font-weight: 700; text-transform: uppercase; line-height: 0.9;
  letter-spacing: -0.02em; margin-top: var(--space-2);
}
.sp-hero__title span { color: var(--red); }
.sp-hero__track { margin-top: var(--space-5); color: var(--gray-light); font-size: var(--text-base); }
.sp-hero__track b { color: var(--white); }

.sp-route {
  display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-6); max-width: 540px;
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gray-light);
}
.sp-route__gate { display: inline-flex; align-items: center; gap: var(--space-2); white-space: nowrap; }
.sp-route__gate::before { content: ''; width: 10px; height: 10px; border-radius: 2px; }
.sp-route__gate--start::before { background: #22c55e; }
.sp-route__gate--finish::before { background: var(--red); }
.sp-route__road { flex: 1; min-width: 40px; height: 2px; background: repeating-linear-gradient(90deg, var(--gray-mid) 0 14px, transparent 14px 24px); }

.sp-clock {
  background: rgba(17,17,17,0.92); border: 1px solid var(--border); border-top: 3px solid var(--red);
  border-radius: var(--radius-lg); padding: var(--space-5) var(--space-6); min-width: 0;
}
.sp-clock__label { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red); }
.sp-digits { display: flex; gap: var(--space-4); margin-top: var(--space-3); }
.sp-digits div { display: grid; gap: 4px; text-align: center; }
.sp-digits b { font-family: var(--font-mono); font-weight: 500; font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); line-height: 1; font-variant-numeric: tabular-nums; }
.sp-digits span { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gray-mid); }
.sp-clock__when { margin-top: var(--space-3); color: var(--gray-light); font-size: var(--text-xs); }
.sp-clock__when b { color: var(--white); }

.sp-facts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-8); margin-top: var(--space-8); padding-top: var(--space-4); border-top: 1px solid var(--border); }
.sp-facts div { display: flex; align-items: baseline; gap: var(--space-3); }
.sp-facts span { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gray-light); }
.sp-facts b { font-family: var(--font-mono); font-weight: 500; font-size: var(--text-lg); font-variant-numeric: tabular-nums; }
.sp-facts__live { margin-left: auto; }

/* standings */
.sp-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-4) var(--space-6); margin-bottom: var(--space-6); }
.sp-head h2 { font-size: var(--text-xl); font-weight: 700; text-transform: uppercase; }
.sp-head h2 span { color: var(--red); }
.sp-months { display: flex; gap: var(--space-2); overflow-x: auto; padding-bottom: 2px; }
.sp-months button {
  flex: none; padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; color: var(--gray-light);
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
}
.sp-months button:hover { color: var(--white); border-color: var(--gray-mid); }
.sp-months button[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: var(--white); }

.sp-board { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--black-card); }
.sp-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.sp-table th {
  text-align: left; padding: var(--space-4) var(--space-4) var(--space-3); border-bottom: 1px solid var(--border);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gray-mid);
}
.sp-table td { padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border); vertical-align: middle; }
.sp-table tr:last-child td { border-bottom: 0; }
.sp-num { text-align: right !important; font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sp-pos { width: 64px; }
.sp-pos span {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: var(--radius-sm);
  background: var(--gray-dark); font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
}
.sp-p1 .sp-pos span { background: var(--red); color: var(--white); box-shadow: 0 0 18px var(--red-glow); }
.sp-p2 .sp-pos span, .sp-p3 .sp-pos span { border: 1px solid var(--red-dim); color: var(--red); background: transparent; }
.sp-driver b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; line-height: 1.2; overflow-wrap: break-word; }
.sp-driver small { display: block; margin-top: 2px; color: var(--gray-light); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.05em; }
.sp-time { font-size: 1.2rem; font-weight: 500; }
.sp-p1 .sp-time { color: var(--red); }
.sp-gap { color: var(--gray-light); font-size: var(--text-sm); }
.sp-p1 .sp-gap, .sp-p1 .sp-gap-sm { color: var(--red); font-family: var(--font-body); font-weight: 700; font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; }
.sp-gap-sm { display: none; }
.sp-muted.sp-num { font-size: var(--text-sm); }
.sp-fresh td { animation: sp-fresh 5s ease-out; }
.sp-fresh .sp-time { animation: sp-fresh-time 5s ease-out; }
@keyframes sp-fresh { 0%, 35% { background: rgba(224, 21, 30, 0.12); } 100% { background: transparent; } }
@keyframes sp-fresh-time { 0%, 35% { color: #ff4d55; } }

.sp-empty { padding: var(--space-16) var(--space-6); text-align: center; }
.sp-empty b { display: block; font-family: var(--font-display); font-size: var(--text-xl); text-transform: uppercase; margin-bottom: var(--space-2); }
.sp-empty p { margin-inline: auto; color: var(--gray-light); }

/* how it works + app */
.sp-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.sp-step { border-top: 2px solid var(--red); padding-top: var(--space-4); display: grid; gap: var(--space-2); align-content: start; }
.sp-step h3 { font-size: var(--text-lg); font-weight: 700; text-transform: uppercase; }
.sp-step p { color: var(--gray-light); font-size: var(--text-sm); line-height: 1.65; }
.sp-app {
  margin-top: var(--space-10); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-5) var(--space-8); align-items: center;
  padding: var(--space-6); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--black-card);
}
.sp-app h3 { font-size: var(--text-lg); font-weight: 700; text-transform: uppercase; }
.sp-app p { color: var(--gray-light); font-size: var(--text-sm); margin-top: var(--space-2); }

/* hall of fame */
.sp-fame { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--space-4); }
.sp-champ { display: grid; gap: 6px; min-width: 0; padding: var(--space-5); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--black-card); }
.sp-champ__month { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--red); }
.sp-champ__course { color: var(--gray-light); font-size: var(--text-xs); letter-spacing: 0.06em; text-transform: uppercase; }
.sp-champ__name { font-family: var(--font-display); font-weight: 700; font-size: var(--text-xl); text-transform: uppercase; line-height: 1.05; overflow-wrap: anywhere; margin-top: var(--space-1); }
.sp-champ__time { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.sp-champ__car { color: var(--gray-light); font-size: var(--text-xs); }

/* home page teaser */
.sp-home { background: var(--black); }
.sp-home__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: var(--space-12); align-items: center; }
.sp-home h2 { font-size: var(--text-2xl); font-weight: 700; text-transform: uppercase; letter-spacing: -0.01em; margin-bottom: var(--space-5); }
.sp-home h2 span { color: var(--red); }
.sp-home p { color: var(--gray-light); line-height: 1.75; margin-bottom: var(--space-4); }
.sp-home__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.sp-teaser { min-width: 0; padding: var(--space-6); border: 1px solid var(--border); border-top: 3px solid var(--red); border-radius: var(--radius-lg); background: var(--black-card); }
.sp-teaser__head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.sp-teaser__eyebrow { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red); }
.sp-teaser__title { font-size: var(--text-xl); font-weight: 700; text-transform: uppercase; margin-top: var(--space-3); line-height: 1; }
.sp-teaser__track { color: var(--gray-light); font-size: var(--text-sm); margin: var(--space-2) 0 var(--space-4); }
.sp-mini { list-style: none; }
.sp-mini li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: var(--space-3); align-items: center; padding: var(--space-3) 0; border-top: 1px solid var(--border); max-width: none; }
.sp-mini__p { font-family: var(--font-display); font-weight: 700; color: var(--gray-light); }
.sp-mini li:first-child .sp-mini__p { color: var(--red); }
.sp-mini__n { font-family: var(--font-display); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-mini__t { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.sp-teaser__foot {
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); flex-wrap: wrap;
  margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--border);
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray-light);
}
.sp-teaser__foot b { font-family: var(--font-mono); color: var(--white); font-weight: 500; }
.sp-teaser__foot a { color: var(--red); }
.sp-teaser__foot a:hover { color: var(--white); }

@media (max-width: 860px) {
  .sp-hero__grid, .sp-home__grid, .sp-app { grid-template-columns: minmax(0, 1fr); }
  .sp-steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .sp-table { min-width: 0; }
  .sp-table th, .sp-table td { padding: var(--space-3) var(--space-2); }
  .sp-table th:first-child, .sp-table td:first-child { padding-left: var(--space-3); }
  .sp-table th:nth-child(3), .sp-table td:nth-child(3) { padding-right: var(--space-3); }
  .sp-col-gap, .sp-col-runs, .sp-col-set { display: none; }
  .sp-gap-sm { display: block; margin-top: 2px; font-size: 0.75rem; color: var(--gray-light); }
  .sp-pos { width: 44px; }
  .sp-pos span { width: 30px; height: 30px; font-size: 0.95rem; }
  .sp-driver b { font-size: 1rem; }
  .sp-time { font-size: 1rem; }
  .sp-facts__live { margin-left: 0; }
}
