/* ═══════════════════════════════════════════
   NEXXUS eSports — style.css
═══════════════════════════════════════════ */

/* ── Brand tokens ─────────────────────────── */
:root {
  --yellow:     #EDFF20;
  --green:      #C3FF20;
  --black:      #000000;
  --bg:         #0a0a0a;
  --surface:    #111111;
  --surface-2:  #1a1a1a;
  --border:     #222222;
  --text:       #ffffff;
  --text-muted: #888888;

  --nav-h: 68px;
  --transition: 0.25s ease;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Utility ──────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 800px;
}

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

.accent-yellow { color: var(--yellow); }
.accent-green  { color: var(--green); }

/* ── Scroll-triggered entrance animations ─── */
/*
  Elements with .fade-in start invisible and slide in.
  JavaScript adds .visible when IntersectionObserver fires.
*/
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.fade-in.from-left {
  transform: translateX(-28px);
}

.fade-in.from-right {
  transform: translateX(28px);
}

.fade-in.scale-in {
  transform: scale(0.88) translateY(16px);
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* Stagger delay helpers */
.stagger-1 { transition-delay: 0.08s; }
.stagger-2 { transition-delay: 0.16s; }
.stagger-3 { transition-delay: 0.24s; }
.stagger-4 { transition-delay: 0.32s; }
.stagger-5 { transition-delay: 0.40s; }
.stagger-6 { transition-delay: 0.48s; }


/* ══════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background var(--transition), box-shadow var(--transition);
}

#navbar.scrolled {
  background: rgba(0, 0, 0, 0.97);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Logo */
.nav-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  transition: opacity var(--transition);
}

.nav-logo:hover {
  opacity: 0.85;
}

.nav-logo-img {
  width: 140px;
  height: auto;
  object-fit: contain;
  opacity: 0.92;
  transition: opacity var(--transition);
}

.nav-logo:hover .nav-logo-img {
  opacity: 1;
}

/* Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  position: relative;
  transition: color var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}

.nav-link:hover,
.nav-link.active {
  color: var(--yellow);
}

.nav-link.active::after,
.nav-link:hover::after {
  transform: scaleX(1);
}

/* CTA button */
.btn-nav {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--yellow);
  color: var(--black);
  padding: 9px 22px;
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
  white-space: nowrap;
  flex-shrink: 0;
  transition: box-shadow var(--transition), background var(--transition);
}

.btn-nav:hover {
  box-shadow: 0 0 20px rgba(237, 255, 32, 0.45);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  width: 36px;
  height: 36px;
  margin-left: auto;
  align-items: center;
  justify-content: center;
}

.hamburger-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* Close icon (×) shown when menu is open */
.nav-hamburger.open .hamburger-icon {
  display: none;
}

.nav-hamburger.open::after {
  content: '✕';
  color: var(--text);
  font-size: 1.2rem;
  line-height: 1;
}


/* ══════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════ */
.btn-parallelogram {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 13px 32px;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  transition: box-shadow var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--yellow);
  color: var(--black);
}

.btn-primary:hover {
  box-shadow: 0 0 24px rgba(237, 255, 32, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--yellow);
  box-shadow: inset 0 0 0 1.5px var(--yellow);
}

.btn-outline:hover {
  box-shadow: inset 0 0 0 1.5px var(--yellow), 0 0 20px rgba(237, 255, 32, 0.3);
}

.btn-submit {
  display: block;
  width: 100%;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--yellow);
  color: var(--black);
  padding: 16px;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  transition: box-shadow var(--transition);
}

.btn-submit:hover {
  box-shadow: 0 0 28px rgba(237, 255, 32, 0.5);
}


/* ══════════════════════════════════════════
   SECTION COMMON
══════════════════════════════════════════ */
.section {
  padding: 100px 0;
}

.section-dark {
  background: #080808;
}

.section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::before {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--green);
  flex-shrink: 0;
}

.section-heading {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 28px;
}

.section-subtext {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 60px;
}

.body-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.75;
}


/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  overflow: hidden;
}

/* Hero background photo */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.45;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top,    #000 0%, transparent 50%),
    linear-gradient(to bottom, #000 0%, transparent 30%),
    linear-gradient(to right,  rgba(0,0,0,0.5) 0%, transparent 50%),
    linear-gradient(to left,   rgba(0,0,0,0.5) 0%, transparent 50%);
}

.hero-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at 50% 60%, rgba(195, 255, 32, 0.07) 0%, transparent 68%);
  pointer-events: none;
}

/* Bottom ambient line */
#hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(237, 255, 32, 0.35), transparent);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 0 24px;
  margin-top: var(--nav-h);
}

/* Hero badge — animate in on load */
.hero-badge {
  width: 300px;
  height: auto;
  object-fit: contain;
  /*
    invert(1)        → white bg becomes black (disappears on dark bg)
    hue-rotate(180°) → shifts the inverted blue back toward yellow,
                       preserving approximate brand color
  */
  filter: drop-shadow(0 0 40px rgba(237, 255, 32, 0.35));
  opacity: 0;
  transform: scale(0.88) translateY(16px);
  animation: heroIn 0.9s 0.15s var(--ease-out) forwards;
}

.hero-tagline {
  margin-top: 28px;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.02em;
  opacity: 0;
  animation: heroIn 0.8s 0.35s var(--ease-out) forwards;
}

.hero-subtitle {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--green);
  margin-top: 8px;
  opacity: 0;
  animation: heroIn 0.8s 0.5s var(--ease-out) forwards;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 36px;
  opacity: 0;
  animation: heroIn 0.8s 0.65s var(--ease-out) forwards;
}

@keyframes heroIn {
  to {
    opacity: 1;
    transform: none;
  }
}

/* Scroll cue */
.hero-scroll {
  position: absolute;
  z-index: 2;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: heroIn 0.6s 1s var(--ease-out) forwards;
}

.hero-scroll span {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
  animation: scrollBounce 1.8s 1.4s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}


/* ══════════════════════════════════════════
   ABOUT
══════════════════════════════════════════ */
#about {
  background: var(--bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.about-text {
  padding-top: 8px;
}

.about-quote {
  border-left: 3px solid var(--yellow);
  padding: 14px 20px;
  margin-top: 28px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.02em;
  background: rgba(237, 255, 32, 0.04);
}

.about-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Image with corner bracket accents — same trick as Hikari */
.about-img-wrap {
  position: relative;
  overflow: hidden;
}

.about-img-wrap::before,
.about-img-wrap::after {
  content: '';
  position: absolute;
  z-index: 1;
  width: 20px;
  height: 20px;
  transition: width 0.4s, height 0.4s;
}

.about-img-wrap::before {
  top: 0;
  left: 0;
  border-top: 2px solid var(--yellow);
  border-left: 2px solid var(--yellow);
}

.about-img-wrap::after {
  bottom: 0;
  right: 0;
  border-bottom: 2px solid var(--yellow);
  border-right: 2px solid var(--yellow);
}

.about-img-wrap:hover::before,
.about-img-wrap:hover::after {
  width: 40px;
  height: 40px;
}

.about-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s var(--ease-out);
}

.about-img-wrap:hover .about-img {
  transform: scale(1.04);
}

/* Bottom sweep line on hover */
.about-img-wrap .sweep-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
  z-index: 2;
}

.about-img-wrap:hover .sweep-line {
  transform: scaleX(1);
}

/* Stats 2×2 grid */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}

.stat-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}

.stat-card:hover {
  border-color: rgba(237, 255, 32, 0.3);
  transform: translateY(-3px);
}

.stat-card:hover::before {
  transform: scaleX(1);
}

.stat-number {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 2.2rem;
  color: var(--yellow);
  line-height: 1;
  transition: text-shadow var(--transition);
}

.stat-card:hover .stat-number {
  text-shadow: 0 0 14px rgba(237, 255, 32, 0.6);
}

.stat-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}


/* ══════════════════════════════════════════
   ROSTER
══════════════════════════════════════════ */
.roster-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.driver-card {
  background: var(--surface);
  border: 1px solid #1a1a1a;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.driver-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}

.driver-card:hover {
  transform: translateY(-5px);
  border-color: rgba(237, 255, 32, 0.4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.driver-card:hover::after {
  transform: scaleX(1);
}

.driver-top {
  background: var(--surface-2);
  padding: 28px 20px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 110px;
}

.driver-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #1e1e1e;
  border: 1.5px solid rgba(237, 255, 32, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--yellow);
  letter-spacing: 0.04em;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.driver-card:hover .driver-avatar {
  border-color: var(--yellow);
  box-shadow: 0 0 16px rgba(237, 255, 32, 0.25);
}

.driver-number {
  position: absolute;
  top: 12px;
  right: 14px;
  background: var(--yellow);
  color: var(--black);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  line-height: 1.2;
}

.driver-info {
  padding: 18px 20px 22px;
  border-top: 1px solid var(--border);
}

.driver-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.driver-role {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 4px;
}

.driver-spec {
  font-size: 0.82rem;
  color: var(--text-muted);
}


/* ══════════════════════════════════════════
   ACHIEVEMENTS — TIMELINE
══════════════════════════════════════════ */
.timeline {
  position: relative;
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Center line */
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding-bottom: 40px;
}

.timeline-left {
  align-self: flex-start;
  padding-right: 56px;
  text-align: right;
}

.timeline-right {
  align-self: flex-end;
  padding-left: 56px;
  text-align: left;
}

/* Dot on the center line */
.timeline-dot {
  position: absolute;
  top: 20px;
  width: 12px;
  height: 12px;
  background: var(--yellow);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(237, 255, 32, 0.5);
  transition: box-shadow var(--transition), transform var(--transition);
}

.timeline-left .timeline-dot {
  right: -6px;
}

.timeline-right .timeline-dot {
  left: -6px;
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.4);
  box-shadow: 0 0 20px rgba(237, 255, 32, 0.7);
}

/* Card */
.timeline-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 22px 24px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}

.timeline-left .timeline-card {
  border-top-right-radius: 0;
}

.timeline-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-out);
}

.timeline-item:hover .timeline-card {
  border-color: rgba(237, 255, 32, 0.3);
  transform: translateY(-3px);
}

.timeline-item:hover .timeline-card::after {
  transform: scaleX(1);
}

.timeline-year {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.timeline-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  margin: 8px 0 6px;
  letter-spacing: 0.01em;
}

.timeline-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Pill badges */
.pill {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 4px 10px;
}

.pill-championship {
  background: var(--yellow);
  color: var(--black);
}

.pill-award {
  border: 1px solid var(--green);
  color: var(--green);
  background: transparent;
}

.pill-podium {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.7);
  background: transparent;
}


/* ══════════════════════════════════════════
   TEAM NEWS
══════════════════════════════════════════ */
.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 48px;
}

.news-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 28px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform var(--transition), border-color var(--transition);
}

/* Corner accent — top-left */
.news-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  border-top: 2px solid transparent;
  border-left: 2px solid transparent;
  transition: border-color var(--transition), width 0.4s, height 0.4s;
}

/* Bottom sweep line */
.news-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-out);
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(237, 255, 32, 0.35);
}

.news-card:hover::before {
  border-color: var(--yellow);
  width: 28px;
  height: 28px;
}

.news-card:hover::after {
  transform: scaleX(1);
}

.news-featured {
  background: #161616;
}

.news-date {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.news-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.news-excerpt {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}

.news-read {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-top: 4px;
  transition: letter-spacing var(--transition);
  align-self: flex-start;
}

.news-card:hover .news-read {
  letter-spacing: 0.28em;
}


/* ══════════════════════════════════════════
   SPONSORS
══════════════════════════════════════════ */
.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.sponsor-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition);
}

.sponsor-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-out);
}

.sponsor-card:hover {
  transform: translateY(-4px);
  border-color: rgba(237, 255, 32, 0.35);
}

.sponsor-card:hover::after {
  transform: scaleX(1);
}

.sponsor-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #1c1c1c;
  border: 1.5px solid rgba(237, 255, 32, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--yellow);
  letter-spacing: 0.04em;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.sponsor-card:hover .sponsor-avatar {
  border-color: var(--yellow);
  box-shadow: 0 0 18px rgba(237, 255, 32, 0.2);
}

.sponsor-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  letter-spacing: 0.04em;
}

.sponsor-tier {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.sponsors-cta {
  margin-top: 48px;
  text-align: center;
}


/* ══════════════════════════════════════════
   CONTACT
══════════════════════════════════════════ */
.section-contact {
  background: linear-gradient(180deg, #0a0a0a 0%, #060606 100%);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 48px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-input {
  background: var(--surface);
  border: 1px solid #333;
  color: var(--text);
  font-family: 'Barlow', sans-serif;
  font-size: 0.9rem;
  padding: 12px 16px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.form-input::placeholder {
  color: #555;
}

.form-input:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 2px rgba(237, 255, 32, 0.1);
}

.form-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-select option {
  background: #1a1a1a;
  color: var(--text);
}

.form-textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.65;
}


/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
#footer {
  background: #050505;
  border-top: 1px solid #111;
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

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

.footer-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 50%;
  /* NX Profile Invert has dark bg — show as-is */
  opacity: 0.8;
  transition: opacity var(--transition);
}

.footer-logo:hover {
  opacity: 1;
}

.footer-tagline {
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.footer-heading {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.45);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--yellow);
}

/* Social links */
.social-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.4);
  transition: color var(--transition);
}

.social-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.social-link:hover {
  color: var(--yellow);
}

/* Footer bottom bar */
.footer-bottom {
  border-top: 1px solid #111;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.06em;
}

.footer-bottom-right {
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.68rem;
}


/* ══════════════════════════════════════════
   RACE GALLERY
══════════════════════════════════════════ */

/* Event group */
.gallery-event {
  margin-top: 56px;
}

.gallery-event-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}

.gallery-event-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.gallery-event-meta {
  text-align: center;
  flex-shrink: 0;
}

.gallery-event-series {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.gallery-event-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1;
}

/* Grid variants */
.gallery-grid {
  display: grid;
  gap: 8px;
}

.gallery-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.gallery-grid-1 {
  grid-template-columns: 1fr;
  max-width: 640px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s var(--ease-out), opacity 0.3s;
  opacity: 0.82;
}

.gallery-grid-1 .gallery-item img {
  height: 220px;
}

.gallery-item:hover img {
  transform: scale(1.05);
  opacity: 1;
}

/* Zoom icon */
.gallery-zoom-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0);
  transition: background 0.3s;
  pointer-events: none;
}

.gallery-zoom-icon svg {
  width: 32px;
  height: 32px;
  color: var(--yellow);
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.3s, transform 0.3s var(--ease-out);
  filter: drop-shadow(0 0 8px rgba(237,255,32,0.6));
}

.gallery-item:hover .gallery-zoom-icon {
  background: rgba(0,0,0,0.25);
}

.gallery-item:hover .gallery-zoom-icon svg {
  opacity: 1;
  transform: scale(1);
}

/* Sweep line on hover */
.gallery-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-out);
  z-index: 2;
}

.gallery-item:hover::after {
  transform: scaleX(1);
}


/* ══════════════════════════════════════════
   LIGHTBOX
══════════════════════════════════════════ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}

.lightbox-img-wrap {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img-wrap img {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
  display: block;
  box-shadow: 0 0 60px rgba(0,0,0,0.8);
  transition: opacity 0.2s;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  z-index: 2;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  font-family: 'Barlow Condensed', sans-serif;
  line-height: 1;
}

.lightbox-close {
  top: 24px;
  right: 28px;
  width: 42px;
  height: 42px;
  font-size: 1.1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 64px;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--yellow);
  color: var(--black);
  border-color: var(--yellow);
}

.lightbox-prev.hidden,
.lightbox-next.hidden {
  opacity: 0;
  pointer-events: none;
}

.lightbox-counter {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
}


/* ══════════════════════════════════════════
   RESPONSIVE — TABLET & MOBILE
══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .roster-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sponsors-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }

  .section { padding: 72px 0; }

  /* Nav collapse */
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.97);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open { display: flex; }

  .nav-link {
    font-size: 1.1rem;
    padding: 12px 0;
    width: 100%;
    border-bottom: 1px solid var(--border);
    color: var(--text);
  }

  .nav-link:last-child { border-bottom: none; }

  .btn-nav { display: none; }

  .nav-hamburger { display: flex; }

  .nav-inner { gap: 0; }

  /* Hero */
  .hero-badge { width: 200px; }
  .hero-tagline { font-size: 0.95rem; }

  /* About */
  .about-grid { grid-template-columns: 1fr; gap: 40px; }

  .stats-grid { grid-template-columns: 1fr 1fr; }

  /* Roster */
  .roster-grid { grid-template-columns: 1fr 1fr; }

  /* Timeline — stack single column */
  .timeline::before { left: 20px; }

  .timeline-item {
    width: 100%;
    padding-left: 52px;
    padding-right: 0;
    text-align: left;
  }

  .timeline-left,
  .timeline-right {
    align-self: stretch;
    padding-left: 52px;
    padding-right: 0;
    text-align: left;
  }

  .timeline-left .timeline-dot,
  .timeline-right .timeline-dot {
    left: 14px;
    right: auto;
  }

  /* Gallery */
  .gallery-grid-3 { grid-template-columns: 1fr; }
  .gallery-grid-1 { max-width: 100%; }
  .gallery-item img { height: 200px; }
  .gallery-event-header { gap: 12px; }
  .gallery-event-name { font-size: 1.1rem; }

  /* News */
  .news-grid { grid-template-columns: 1fr; }

  /* Sponsors */
  .sponsors-grid { grid-template-columns: 1fr 1fr; }

  /* Contact */
  .form-row { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .roster-grid    { grid-template-columns: 1fr; }
  .sponsors-grid  { grid-template-columns: 1fr; }
  .stats-grid     { grid-template-columns: 1fr 1fr; }
  .hero-ctas      { flex-direction: column; align-items: center; }
}


/* ══════════════════════════════════════════
   STARS CANVAS
══════════════════════════════════════════ */
.stars-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  width: 100%;
  height: 100%;
}


/* ══════════════════════════════════════════
   SPARKLES
══════════════════════════════════════════ */
.hero-badge-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.88) translateY(16px);
  animation: heroIn 0.9s 0.15s var(--ease-out) forwards;
}

/* hero-badge no longer animates on its own — wrap does */
.hero-badge {
  animation: none;
  opacity: 1;
  transform: none;
  position: relative;
  z-index: 1;
}

.sparkles-container {
  position: absolute;
  inset: -60px;
  pointer-events: none;
  z-index: 0;
}

.sparkle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yellow);
  transform: translate(-50%, -50%) translate(var(--tx), var(--ty)) scale(0);
  animation: sparklePop var(--dur, 1.4s) var(--delay, 0s) ease-out infinite;
  box-shadow: 0 0 6px 2px rgba(237, 255, 32, 0.6);
}

@keyframes sparklePop {
  0%   { transform: translate(-50%,-50%) translate(var(--tx), var(--ty)) scale(0); opacity: 1; }
  60%  { opacity: 1; }
  100% { transform: translate(-50%,-50%) translate(calc(var(--tx) * 1.6), calc(var(--ty) * 1.6)) scale(0); opacity: 0; }
}


/* ══════════════════════════════════════════
   BUTTON SHIMMER
══════════════════════════════════════════ */
.btn-shimmer {
  overflow: hidden;
}

.btn-shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  animation: shimmerScan 2.8s 1.2s ease-in-out infinite;
}

.btn-primary { position: relative; }
.btn-outline { position: relative; }

@keyframes shimmerScan {
  0%   { left: -80%; }
  100% { left: 140%; }
}


/* ══════════════════════════════════════════
   FOCUS CARDS — ROSTER
══════════════════════════════════════════ */
.roster-grid:has(.driver-card:hover) .driver-card:not(:hover) {
  filter: blur(3px) brightness(0.55);
  transform: scale(0.97);
}

.roster-grid .driver-card {
  transition: transform 0.3s var(--ease-out),
              border-color 0.3s,
              box-shadow 0.3s,
              filter 0.3s,
              opacity 0.3s;
}

.roster-grid .driver-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--yellow);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(237,255,32,0.25);
  filter: none;
}


/* ══════════════════════════════════════════
   TRACING BEAM — ACHIEVEMENTS
══════════════════════════════════════════ */
.timeline {
  position: relative;
}

/* Override the plain ::before line with a dimmer base */
.timeline::before {
  background: #1a1a1a;
  z-index: 0;
}

.timeline-beam {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 0%;
  background: linear-gradient(180deg, var(--yellow) 0%, var(--green) 100%);
  box-shadow: 0 0 12px rgba(237,255,32,0.5), 0 0 30px rgba(237,255,32,0.2);
  z-index: 1;
  transition: height 0.05s linear;
  pointer-events: none;
}


/* ══════════════════════════════════════════
   GALLERY CAROUSEL
══════════════════════════════════════════ */
.gc {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
}

.gc-track {
  display: flex;
  transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.gc-slide {
  flex: 0 0 100%;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.gc-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.6s var(--ease-out), opacity 0.3s;
  opacity: 0.92;
}

.gc-slide:hover img {
  transform: scale(1.03);
  opacity: 1;
}

/* Zoom icon on slides */
.gc-slide .gallery-zoom-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0);
  transition: background 0.3s;
  pointer-events: none;
}

.gc-slide .gallery-zoom-icon svg {
  width: 36px;
  height: 36px;
  color: var(--yellow);
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.3s, transform 0.3s var(--ease-out);
  filter: drop-shadow(0 0 8px rgba(237,255,32,0.6));
}

.gc-slide:hover .gallery-zoom-icon {
  background: rgba(0,0,0,0.2);
}

.gc-slide:hover .gallery-zoom-icon svg {
  opacity: 1;
  transform: scale(1);
}

/* Sweep line */
.gc-slide::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-out);
  z-index: 2;
}

.gc-slide:hover::after {
  transform: scaleX(1);
}

/* Prev / Next buttons */
.gc-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 60px;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  font-size: 1.8rem;
  font-family: 'Barlow Condensed', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  line-height: 1;
}

.gc-prev { left: 0; }
.gc-next { right: 0; }

.gc-btn:hover {
  background: var(--yellow);
  color: var(--black);
  border-color: var(--yellow);
}

.gc-btn.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Dots */
.gc-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.gc-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.gc-dot.active {
  background: var(--yellow);
  transform: scale(1.3);
  box-shadow: 0 0 6px rgba(237,255,32,0.6);
}

/* Hide prev/next when only 1 slide */
.gc:not([data-total]) .gc-btn,
.gc[data-total="1"] .gc-btn,
.gc[data-total="1"] .gc-dots {
  display: none;
}


/* ══════════════════════════════════════════
   SPONSORS MARQUEE
══════════════════════════════════════════ */
.sponsors-marquee {
  overflow: hidden;
  margin-top: 48px;
  /* Fade edges */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}

.sponsors-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: sponsorScroll 28s linear infinite;
}

.sponsors-marquee:hover .sponsors-track {
  animation-play-state: paused;
}

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

/* Sponsor cards in marquee — fixed width */
.sponsors-marquee .sponsor-card {
  flex: 0 0 200px;
  width: 200px;
}
