/* ============================================================
   PISTAPARK — PREMIUM RACING SITE v2.0
   F1/Formula Cinematic Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,300;0,400;0,700;0,900;1,900&family=Inter:wght@300;400;500;600&family=Space+Mono:wght@400;700&display=swap');

/* ─────────────────────────────────────────────────────────────
   TOKENS
───────────────────────────────────────────────────────────── */
:root {
  --black:     #020204;
  --off-black: #0d0d12;
  --dark:      #12121a;
  --mid:       #1c1c28;
  --border:    rgba(255,255,255,0.07);
  --border-hi: rgba(200,255,0,0.2);

  --lime:      #c8ff00;
  --lime-dim:  rgba(200,255,0,0.12);
  --lime-glow: rgba(200,255,0,0.4);
  --red:       #ff1a1a;
  --white:     #f5f5fa;
  --grey:      #6b6b80;
  --grey-hi:   #a0a0b8;

  --f-display: 'Barlow Condensed', sans-serif;
  --f-body:    'Inter', sans-serif;
  --f-mono:    'Space Mono', monospace;

  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in:   cubic-bezier(0.4, 0, 1, 1);

  --r-sm:  4px;
  --r-md:  10px;
  --r-lg:  18px;
  --r-xl:  28px;
  --r-full: 999px;

  --nav-h: 72px;
}

/* ─────────────────────────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--f-body);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  cursor: none; /* custom cursor */
  -webkit-font-smoothing: antialiased;
}
body.no-cursor { cursor: auto; }

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { background: none; border: none; cursor: none; font-family: inherit; }
ul { list-style: none; }

/* ─────────────────────────────────────────────────────────────
   GRAIN TEXTURE OVERLAY
───────────────────────────────────────────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  opacity: 0.028;
  mix-blend-mode: overlay;
}

/* ─────────────────────────────────────────────────────────────
   CUSTOM CURSOR
───────────────────────────────────────────────────────────── */
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--lime);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, width 0.3s var(--ease-expo), height 0.3s var(--ease-expo), background 0.3s;
  will-change: transform;
}

.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1.5px solid rgba(200,255,0,0.6);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.12s var(--ease-expo), width 0.4s var(--ease-expo), height 0.4s var(--ease-expo), border-color 0.3s, opacity 0.3s;
  will-change: transform;
}

.cursor-dot.hovering  { width: 4px; height: 4px; background: var(--lime); }
.cursor-ring.hovering { width: 54px; height: 54px; border-color: var(--lime); }
.cursor-dot.clicking  { transform: translate(-50%,-50%) scale(0.5); }
.cursor-ring.clicking { transform: translate(-50%,-50%) scale(0.8); }

/* ─────────────────────────────────────────────────────────────
   CANVAS BACKGROUND
───────────────────────────────────────────────────────────── */
#racing-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
}

/* ─────────────────────────────────────────────────────────────
   SKIP LINK
───────────────────────────────────────────────────────────── */
.skip-link {
  position: absolute; top: -100%; left: 16px;
  background: var(--lime); color: #000;
  padding: 8px 16px; border-radius: var(--r-sm);
  font-weight: 700; z-index: 10000;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* ─────────────────────────────────────────────────────────────
   NAVIGATION
───────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 clamp(20px, 5vw, 60px);
  transition: background 0.5s, backdrop-filter 0.5s, border-bottom 0.5s;
}

.nav.scrolled {
  background: rgba(2,2,4,0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  position: relative;
  z-index: 2;
}

.nav-logo img { width: 40px; height: auto; }

.nav-logo-text em {
  font-style: normal;
  color: var(--lime);
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 4px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-link {
  position: relative;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
  padding: 8px 16px;
  transition: color 0.25s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 16px;
  height: 1px;
  background: var(--lime);
  transition: transform 0.3s var(--ease-expo);
}

.nav-link:hover,
.nav-link.active { color: var(--white); }
.nav-link:hover::after,
.nav-link.active::after { transform: translateX(-50%) scaleX(1); }

.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-tel {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--grey);
  transition: color 0.25s;
}
.nav-tel:hover { color: var(--lime); }

.btn-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--lime);
  color: #000;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: var(--r-full);
  transition: transform 0.3s var(--ease-back), box-shadow 0.3s, background 0.3s;
  cursor: none;
  position: relative;
  overflow: hidden;
}

.btn-nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.2);
  transform: translateX(-100%) skewX(-15deg);
  transition: transform 0.4s var(--ease-expo);
}

.btn-nav:hover::before { transform: translateX(100%) skewX(-15deg); }
.btn-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--lime-glow);
}

/* ── Hamburger ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  margin-left: auto;
  padding: 8px;
  cursor: none;
  z-index: 2;
}

.nav-hamburger span {
  display: block;
  height: 1.5px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.4s var(--ease-expo), opacity 0.3s, width 0.3s;
}
.nav-hamburger span:nth-child(2) { width: 70%; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Mobile overlay ── */
.nav-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2,2,4,0.98);
  backdrop-filter: blur(32px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}
.nav-mobile-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.nav-mobile-overlay a {
  font-family: var(--f-display);
  font-size: clamp(28px, 8vw, 56px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--grey);
  transition: color 0.25s, transform 0.25s;
}
.nav-mobile-overlay a:hover {
  color: var(--lime);
  transform: translateX(8px);
}

/* ─────────────────────────────────────────────────────────────
   HERO
───────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  z-index: 1;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transform-origin: center;
  transition: transform 8s ease-out;
  will-change: transform;
}

.hero-media.loaded img { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(2,2,4,0.85) 40%, rgba(2,2,4,0.2) 100%),
    linear-gradient(to top, rgba(2,2,4,1) 0%, rgba(2,2,4,0) 50%);
}

/* Speed lines */
.hero-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 clamp(24px, 6vw, 100px);
  padding-bottom: clamp(60px, 8vh, 120px);
  max-width: 900px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.hero-eyebrow-line {
  width: 40px;
  height: 1px;
  background: var(--lime);
}

.hero-eyebrow span {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lime);
}

.hero-title {
  font-family: var(--f-display);
  font-size: clamp(72px, 12vw, 160px);
  font-weight: 900;
  line-height: 1; /* Increased from 0.9 for Greek accents */
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--white);
  overflow: hidden;
  padding-top: 10px; /* Buffer for accents */
}

.hero-title-line {
  display: block;
  transform: translateY(100%);
  transition: transform 1s var(--ease-expo);
}

.hero-title-line.visible { transform: translateY(0); }

.hero-title em {
  font-style: italic;
  color: var(--lime);
  -webkit-text-stroke: 0px;
}

.hero-title .outline {
  -webkit-text-stroke: 2px rgba(255,255,255,0.25);
  color: transparent;
}

.hero-sub {
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--grey-hi);
  max-width: 480px;
  margin: 28px 0 40px;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s 0.5s var(--ease-expo), transform 0.8s 0.5s var(--ease-expo);
}

.hero-sub.visible { opacity: 1; transform: translateY(0); }

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s 0.7s var(--ease-expo), transform 0.8s 0.7s var(--ease-expo);
}

.hero-actions.visible { opacity: 1; transform: translateY(0); }

/* ── Scroll indicator ── */
.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  right: clamp(24px, 5vw, 80px);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: fadeInUp 1s 1.2s var(--ease-expo) forwards;
}

.hero-scroll-indicator span {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--grey);
  writing-mode: vertical-rl;
}

.hero-scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--lime), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ── Hero data strip ── */
.hero-data {
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: stretch;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.hero-data-item {
  padding: 20px 32px;
  border-right: 1px solid var(--border);
  background: rgba(2,2,4,0.5);
  backdrop-filter: blur(12px);
}

.hero-data-number {
  font-family: var(--f-mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--lime);
  line-height: 1;
}

.hero-data-label {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey);
  margin-top: 4px;
}

/* ─────────────────────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 16px 32px;
  border-radius: var(--r-full);
  transition: transform 0.3s var(--ease-back), box-shadow 0.3s;
  cursor: none;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  transform: translateX(-110%) skewX(-20deg);
  transition: transform 0.5s var(--ease-expo);
}
.btn:hover::before { transform: translateX(120%) skewX(-20deg); }
.btn:hover { transform: translateY(-3px); }

.btn-primary {
  background: var(--lime);
  color: #000;
}
.btn-primary:hover { box-shadow: 0 12px 40px var(--lime-glow); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
}
.btn-ghost:hover {
  border-color: var(--lime);
  color: var(--lime);
  box-shadow: 0 0 0 1px var(--lime);
}

.btn-icon-wrap {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.2);
  border-radius: 50%;
  transition: transform 0.3s var(--ease-back);
}
.btn:hover .btn-icon-wrap { transform: translateX(4px); }

/* ─────────────────────────────────────────────────────────────
   CONTAINER
───────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 80px);
}

/* ─────────────────────────────────────────────────────────────
   SECTION BASE
───────────────────────────────────────────────────────────── */
.section {
  padding: clamp(80px, 10vw, 160px) 0;
  position: relative;
  z-index: 1;
}

.section-dark  { background: var(--black); }
.section-mid   { background: var(--off-black); }
.section-light { background: var(--dark); }

/* ── Section header ── */
.s-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 20px;
}

.s-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--lime);
}

.s-title {
  font-family: var(--f-display);
  font-size: clamp(40px, 6vw, 88px);
  font-weight: 900;
  line-height: 1.05; /* Increased from 0.95 for Greek accents */
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--white);
}

.s-title em {
  font-style: italic;
  color: var(--lime);
}

.s-title .outline {
  -webkit-text-stroke: 2px rgba(255,255,255,0.2);
  color: transparent;
}

.s-body {
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--grey-hi);
  line-height: 1.75;
}

/* ─────────────────────────────────────────────────────────────
   SCROLL REVEAL
───────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease-expo), transform 0.9s var(--ease-expo);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.9s var(--ease-expo), transform 0.9s var(--ease-expo);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.9s var(--ease-expo), transform 0.9s var(--ease-expo);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.9s var(--ease-expo), transform 0.9s var(--ease-expo);
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

.d1 { transition-delay: 0.1s !important; }
.d2 { transition-delay: 0.2s !important; }
.d3 { transition-delay: 0.3s !important; }
.d4 { transition-delay: 0.4s !important; }
.d5 { transition-delay: 0.5s !important; }
.d6 { transition-delay: 0.6s !important; }

/* ─────────────────────────────────────────────────────────────
   RACING LINE DIVIDERS
───────────────────────────────────────────────────────────── */
.race-divider {
  position: relative;
  height: 1px;
  background: var(--border);
  overflow: visible;
}

.race-divider::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 120px;
  background: linear-gradient(to right, var(--lime), transparent);
  animation: raceLine 3s ease-in-out infinite;
}

/* ─────────────────────────────────────────────────────────────
   MARQUEE STRIP
───────────────────────────────────────────────────────────── */
.marquee-strip {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--off-black);
  padding: 18px 0;
  position: relative;
  z-index: 1;
}

.marquee-inner {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee 20s linear infinite;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 32px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey);
  white-space: nowrap;
}

.marquee-item strong { color: var(--lime); }
.marquee-dot { width: 4px; height: 4px; background: var(--lime); border-radius: 50%; }

/* ─────────────────────────────────────────────────────────────
   TRACK SECTION (Horizontal Scroll Panels)
───────────────────────────────────────────────────────────── */
.track-section {
  position: relative;
  background: var(--off-black);
  overflow: hidden;
}

.track-section-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.track-panel-media {
  position: relative;
  overflow: hidden;
}

.track-panel-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 0.8s var(--ease-expo);
}

.track-panel-media:hover img { transform: scale(1); }

.track-panel-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent, var(--off-black));
}

.track-panel-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 6vw, 100px);
}

/* ─────────────────────────────────────────────────────────────
   KART CARDS — Cinematic
───────────────────────────────────────────────────────────── */
.kart-lineup {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--border);
}

.kart-card {
  position: relative;
  background: var(--dark);
  overflow: hidden;
  cursor: none;
  transition: flex 0.5s var(--ease-expo);
}

.kart-card::before {
  content: '';
  display: block;
  padding-top: 130%;
}

.kart-card-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 24px;
}

.kart-card-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.kart-card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5) saturate(0.8);
  transition: filter 0.5s, transform 0.7s var(--ease-expo);
}

.kart-card:hover .kart-card-bg img {
  filter: brightness(0.7) saturate(1);
  transform: scale(1.05);
}

.kart-card-gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(2,2,4,0.95) 0%, rgba(2,2,4,0.4) 50%, rgba(2,2,4,0.1) 100%);
}

.kart-card-content {
  position: relative;
  z-index: 2;
}

.kart-card-cat {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 8px;
}

.kart-card-name {
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--white);
  margin-bottom: 4px;
}

.kart-card-engine {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--grey-hi);
}

.kart-card-price {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--lime);
  margin-top: 16px;
}

.kart-card-specs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-expo);
}
.kart-card:hover .kart-card-specs { max-height: 200px; }

.kart-spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.kart-spec-row span:first-child { color: var(--grey); font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
.kart-spec-row span:last-child  { color: var(--white); font-family: var(--f-mono); font-size: 11px; }

.kart-card-cta {
  margin-top: 20px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s 0.1s, transform 0.4s 0.1s var(--ease-expo);
}
.kart-card:hover .kart-card-cta { opacity: 1; transform: translateY(0); }

/* ─────────────────────────────────────────────────────────────
   STATS PANEL — F1 Style
───────────────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--dark);
}

.stat-cell {
  padding: 40px 36px;
  border-right: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}

.stat-cell:last-child { border-right: none; }

.stat-cell::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-expo);
}

.stat-cell:hover::before { transform: scaleX(1); }
.stat-cell:hover { background: rgba(200,255,0,0.03); }

.stat-value {
  font-family: var(--f-display);
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--lime);
}

.stat-unit {
  font-family: var(--f-mono);
  font-size: 20px;
  color: var(--grey-hi);
  font-weight: 400;
}

.stat-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
  margin-top: 8px;
}

/* ─────────────────────────────────────────────────────────────
   PRICING — Race Grade
───────────────────────────────────────────────────────────── */
.pricing-table {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.price-col {
  background: var(--dark);
  padding: 40px 36px 36px;
  position: relative;
  transition: background 0.3s;
}

.price-col.featured {
  background: rgba(200,255,0,0.06);
}

.price-col.featured::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: var(--lime);
  color: #000;
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-align: center;
  padding: 8px;
}

.price-tier {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 4px;
}

.price-name {
  font-family: var(--f-display);
  font-size: 32px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 8px;
}

.price-currency {
  font-family: var(--f-mono);
  font-size: 20px;
  color: var(--grey-hi);
}

.price-number {
  font-family: var(--f-display);
  font-size: 72px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--white);
}

.price-per {
  font-size: 13px;
  color: var(--grey);
  font-family: var(--f-mono);
  margin-bottom: 32px;
}

.price-features {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 32px;
}

.price-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--grey-hi);
}

.price-feature .check {
  width: 18px;
  height: 18px;
  background: var(--lime-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--lime);
}

.price-feature .check svg { width: 10px; height: 10px; }

/* ─────────────────────────────────────────────────────────────
   FAQs — Accordion
───────────────────────────────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 28px 0;
  gap: 24px;
  cursor: none;
  text-align: left;
  transition: color 0.25s;
}

.faq-question:hover { color: var(--lime); }

.faq-q-text {
  font-family: var(--f-display);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.faq-icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--grey);
  transition: transform 0.4s var(--ease-expo), border-color 0.3s, color 0.3s;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  border-color: var(--lime);
  color: var(--lime);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-expo);
}

.faq-answer-inner {
  padding-bottom: 28px;
  font-size: 15px;
  color: var(--grey-hi);
  line-height: 1.8;
  max-width: 680px;
}

/* ─────────────────────────────────────────────────────────────
   CONTACT / BOOKING FORM
───────────────────────────────────────────────────────────── */
.form-field {
  position: relative;
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 10px;
  transition: color 0.25s;
}

.form-control {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  color: var(--white);
  font-family: var(--f-body);
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s;
  appearance: none;
}

.form-control::placeholder { color: var(--grey); }
.form-control:focus { border-color: var(--lime); }
.form-control:focus + .form-focus-line { transform: scaleX(1); }

.form-focus-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-expo);
  pointer-events: none;
}

.form-field:focus-within .form-label { color: var(--lime); }

select.form-control option { background: var(--dark); }
textarea.form-control { resize: vertical; min-height: 120px; }

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
}

/* ─────────────────────────────────────────────────────────────
   CTA BANNER — Cinematic Full-Bleed
───────────────────────────────────────────────────────────── */
.cta-banner {
  position: relative;
  overflow: hidden;
  min-height: 60vh;
  display: flex;
  align-items: center;
  z-index: 1;
}

.cta-banner-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cta-banner-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.3) saturate(0.6);
}

.cta-banner-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(2,2,4,0.9) 50%, rgba(2,2,4,0.4));
}

.cta-banner-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
  width: 100%;
}

/* ─────────────────────────────────────────────────────────────
   PAGE HERO (inner pages)
───────────────────────────────────────────────────────────── */
.page-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-top: var(--nav-h);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(2,2,4,0.7) 0%,
    rgba(2,2,4,0.3) 40%,
    rgba(2,2,4,0.85) 80%,
    rgba(2,2,4,1) 100%
  );
}

.page-hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(60px, 8vw, 120px) clamp(24px, 6vw, 100px);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 24px;
}
.breadcrumb a { transition: color 0.25s; }
.breadcrumb a:hover { color: var(--lime); }
.breadcrumb .sep { color: var(--border-hi); }

/* ─────────────────────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────────────────────── */
.footer {
  background: var(--black);
  border-top: 1px solid var(--border);
  padding: 80px 0 0;
  position: relative;
  z-index: 1;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--border);
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-brand-logo img { width: 48px; }

.footer-brand-logo span {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.footer-brand-text {
  font-size: 14px;
  color: var(--grey);
  line-height: 1.75;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey);
  transition: border-color 0.25s, color 0.25s, transform 0.3s var(--ease-back);
}
.footer-social a:hover {
  border-color: var(--lime);
  color: var(--lime);
  transform: translateY(-3px);
}
.footer-social svg { width: 14px; height: 14px; }

.footer-col h5 {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav a {
  font-size: 14px;
  color: var(--grey);
  transition: color 0.25s, transform 0.25s;
  display: inline-block;
}
.footer-nav a:hover {
  color: var(--white);
  transform: translateX(6px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--grey);
}
.footer-contact-item svg { width: 16px; height: 16px; color: var(--lime); flex-shrink: 0; margin-top: 2px; }
.footer-contact-item a { color: var(--grey); transition: color 0.25s; }
.footer-contact-item a:hover { color: var(--lime); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
  gap: 20px;
  flex-wrap: wrap;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}
.footer-bottom-links a { transition: color 0.25s; }
.footer-bottom-links a:hover { color: var(--lime); }

/* ─────────────────────────────────────────────────────────────
   RACE NUMBER / LARGE BG TEXT
───────────────────────────────────────────────────────────── */
.bg-number {
  position: absolute;
  font-family: var(--f-display);
  font-size: clamp(200px, 30vw, 400px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  color: rgba(255,255,255,0.025);
  pointer-events: none;
  z-index: 0;
  user-select: none;
}

/* ─────────────────────────────────────────────────────────────
   GLITCH TEXT
───────────────────────────────────────────────────────────── */
.glitch {
  position: relative;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch::before {
  color: var(--lime);
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
  transform: translateX(-2px);
  animation: glitch-1 4s infinite steps(1);
}

.glitch::after {
  color: var(--red);
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
  transform: translateX(2px);
  animation: glitch-2 4s infinite steps(1);
}

/* ─────────────────────────────────────────────────────────────
   TIMELINE
───────────────────────────────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--lime), transparent);
}

.timeline-item {
  position: relative;
  padding-bottom: 40px;
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -36px;
  top: 6px;
  width: 10px;
  height: 10px;
  background: var(--lime);
  border-radius: 50%;
  box-shadow: 0 0 16px var(--lime-glow);
}

.timeline-item h4 {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--white);
  margin-bottom: 8px;
}

.timeline-item p {
  font-size: 14px;
  color: var(--grey);
  line-height: 1.7;
}

/* ─────────────────────────────────────────────────────────────
   COMPARISON TABLE
───────────────────────────────────────────────────────────── */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.compare-table th {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 20px 24px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  color: var(--white);
}

.compare-table th:first-child { text-align: left; color: var(--grey); font-size: 11px; letter-spacing: 0.18em; font-family: var(--f-mono); font-weight: 400; }
.compare-table th.featured-col { color: var(--lime); }

.compare-table td {
  padding: 16px 24px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--grey-hi);
  font-family: var(--f-mono);
  font-size: 13px;
}

.compare-table td:first-child { text-align: left; color: var(--grey); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.compare-table tbody tr:hover { background: rgba(255,255,255,0.02); }
.compare-table .yes { color: var(--lime); }
.compare-table .no  { color: var(--grey); opacity: 0.4; }
.compare-table .featured-col { color: var(--white); }

/* ─────────────────────────────────────────────────────────────
   MAP
───────────────────────────────────────────────────────────── */
.map-wrap {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16/7;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(30%) brightness(0.85) invert(0.05);
}

/* ─────────────────────────────────────────────────────────────
   GALLERY
───────────────────────────────────────────────────────────── */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 220px;
  gap: 4px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: none;
}

.gallery-item:nth-child(1) { grid-column: span 7; grid-row: span 2; }
.gallery-item:nth-child(2) { grid-column: span 5; }
.gallery-item:nth-child(3) { grid-column: span 5; }
.gallery-item:nth-child(4) { grid-column: span 4; }
.gallery-item:nth-child(5) { grid-column: span 4; }
.gallery-item:nth-child(6) { grid-column: span 4; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.8);
  transition: transform 0.7s var(--ease-expo), filter 0.4s;
}
.gallery-item:hover img {
  transform: scale(1.06);
  filter: brightness(1);
}

/* ─────────────────────────────────────────────────────────────
   HOURS
───────────────────────────────────────────────────────────── */
.hours-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}

.hours-row:last-child { border-bottom: none; }
.hours-day { color: var(--grey-hi); }
.hours-time { font-family: var(--f-mono); font-size: 13px; color: var(--lime); }
.hours-row.today { color: var(--white); }
.hours-row.today .hours-day { font-weight: 600; }

/* ─────────────────────────────────────────────────────────────
   ACADEMY LEVELS
───────────────────────────────────────────────────────────── */
.academy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.academy-level {
  background: var(--dark);
  padding: 44px 36px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}

.academy-level:hover { background: rgba(200,255,0,0.04); }

.academy-num {
  font-family: var(--f-display);
  font-size: 100px;
  font-weight: 900;
  line-height: 1;
  color: rgba(200,255,0,0.06);
  position: absolute;
  top: 12px; right: 16px;
}

.academy-level h3 {
  font-family: var(--f-display);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  position: relative;
}

.academy-level ul {
  list-style: none;
}

.academy-level ul li {
  font-size: 13px;
  color: var(--grey);
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  line-height: 1.5;
}

.academy-level ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--lime);
  font-size: 11px;
}

/* ─────────────────────────────────────────────────────────────
   EVENT PACKAGES
───────────────────────────────────────────────────────────── */
.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.event-pkg {
  background: var(--dark);
  padding: 44px 36px;
  transition: background 0.3s;
}
.event-pkg:hover { background: rgba(200,255,0,0.04); }

.event-pkg-icon {
  width: 52px; height: 52px;
  background: var(--lime-dim);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lime);
  margin-bottom: 28px;
  transition: background 0.3s, transform 0.3s var(--ease-back);
}
.event-pkg:hover .event-pkg-icon {
  background: rgba(200,255,0,0.22);
  transform: scale(1.1);
}
.event-pkg-icon svg { width: 24px; height: 24px; }

.event-pkg h3 {
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.event-pkg p {
  font-size: 14px;
  color: var(--grey);
  margin-bottom: 24px;
  line-height: 1.7;
}

.event-pkg ul { list-style: none; }
.event-pkg li {
  font-size: 13px;
  color: var(--grey);
  padding: 8px 0;
  padding-left: 22px;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.event-pkg li::before { content: '✓'; position: absolute; left: 0; color: var(--lime); font-weight: 700; }
.event-pkg li:last-child { border-bottom: none; }

/* ─────────────────────────────────────────────────────────────
   CONTACT LAYOUT
───────────────────────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}

.contact-info-block {
  position: sticky;
  top: 100px;
}

.contact-detail-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.contact-detail-row:last-child { border-bottom: none; }

.contact-icon {
  width: 44px; height: 44px;
  background: var(--lime-dim);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--lime);
}
.contact-icon svg { width: 20px; height: 20px; }

.contact-detail-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 6px;
}

.contact-detail-value {
  font-size: 16px;
  color: var(--white);
}
.contact-detail-value a { transition: color 0.25s; }
.contact-detail-value a:hover { color: var(--lime); }

/* ─────────────────────────────────────────────────────────────
   NOTICE / ALERT BOX
───────────────────────────────────────────────────────────── */
.notice {
  border-left: 3px solid var(--lime);
  background: var(--lime-dim);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 20px 24px;
  font-size: 14px;
  color: var(--grey-hi);
}

.notice strong { color: var(--lime); }

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .kart-lineup { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid .stat-cell:nth-child(2) { border-right: none; }
  .gallery-item:nth-child(1) { grid-column: span 7; grid-row: span 2; }
}

@media (max-width: 1024px) {
  .nav-center { display: none; }
  .nav-hamburger { display: flex; }
  .nav-tel { display: none; }
  .track-section-inner { grid-template-columns: 1fr; }
  .track-panel-media { min-height: 50vh; }
  .track-panel-media-overlay { background: linear-gradient(to top, var(--off-black), transparent); }
  .pricing-table { grid-template-columns: 1fr; }
  .academy-grid { grid-template-columns: 1fr; }
  .events-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-info-block { position: static; }
  .cta-banner-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-data { display: none; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 1; }
  .gallery-item:nth-child(n+4) { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .hero-title { font-size: clamp(52px, 15vw, 100px); }
  .kart-lineup { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid .stat-cell:nth-child(odd) { border-right: 1px solid var(--border); }
  .stats-grid .stat-cell:nth-child(2n) { border-right: none; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .gallery-item { grid-column: span 1 !important; grid-row: span 1 !important; }
  .gallery-item:nth-child(n) { display: block; }
  .gallery-item:nth-child(n+4) { display: none; }
}

/* ─────────────────────────────────────────────────────────────
   ANIMATIONS
───────────────────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes raceLine {
  0%   { left: -120px; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: calc(100% + 120px); opacity: 0; }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.4; transform: scaleY(0.7); }
}

@keyframes glitch-1 {
  0%, 95%, 100% { transform: translateX(-2px); clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%); }
  96% { transform: translateX(2px); clip-path: polygon(0 20%, 100% 20%, 100% 55%, 0 55%); }
  97% { transform: translateX(-4px); clip-path: polygon(0 10%, 100% 10%, 100% 30%, 0 30%); }
  98% { transform: translateX(0); clip-path: polygon(0 0, 100% 0, 100% 15%, 0 15%); }
}

@keyframes glitch-2 {
  0%, 95%, 100% { transform: translateX(2px); clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%); }
  96% { transform: translateX(-2px); clip-path: polygon(0 55%, 100% 55%, 100% 85%, 0 85%); }
  97% { transform: translateX(4px); clip-path: polygon(0 70%, 100% 70%, 100% 90%, 0 90%); }
  98% { transform: translateX(0); clip-path: polygon(0 75%, 100% 75%, 100% 100%, 0 100%); }
}

@keyframes spinSlow {
  to { transform: rotate(360deg); }
}

/* ─────────────────────────────────────────────────────────────
   SCROLLBAR
───────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--lime); border-radius: 2px; }

/* ─────────────────────────────────────────────────────────────
   UTILITY
───────────────────────────────────────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.text-lime   { color: var(--lime); }
.text-grey   { color: var(--grey); }
.text-white  { color: var(--white); }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
