/* GP Legends — Cuero & Gasolina */
:root {
  --background: 30 20% 6%;
  --foreground: 38 45% 92%;
  --surface: 22 18% 9%;
  --surface-2: 18 22% 13%;
  --primary: 44 58% 54%;
  --secondary: 9 50% 23%;
  --border: 30 15% 18%;
  --gold: 44 58% 54%;
  --gold-soft: 44 65% 72%;
  --ember: 9 50% 23%;
  --bone: 38 45% 92%;
  --ink: 30 25% 5%;
  --gradient-gold: linear-gradient(135deg, hsl(44 65% 72%), hsl(44 58% 44%));
  --gradient-card: linear-gradient(160deg, hsl(22 18% 11%) 0%, hsl(22 18% 7%) 100%);
  --shadow-deep: 0 30px 80px -20px hsl(0 0% 0% / 0.75);
  --shadow-gold: 0 20px 60px -20px hsl(44 58% 40% / 0.45);
  --ease-cinema: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-color: hsl(var(--border));
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: 'Barlow', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(circle at 15% 10%, hsl(9 60% 16% / 0.18), transparent 45%),
    radial-gradient(circle at 90% 80%, hsl(44 50% 30% / 0.10), transparent 50%);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font: inherit;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

.font-display, h1, h2, h3, h4 {
  font-family: 'Bebas Neue', 'Barlow Condensed', sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.95;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

h1 {
  font-size: clamp(2.5rem, 8.5vw, 4.5rem);
  line-height: 0.92;
}

h2 {
  font-size: clamp(2rem, 6.5vw, 3.25rem);
  line-height: 0.96;
}

h3 {
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  line-height: 1.05;
}

/* Containers — Always guarantee horizontal margins & padding */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 640px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 768px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.gold-text {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-bone { color: hsl(var(--bone)); }
.text-bone-70 { color: hsl(var(--bone) / 0.7); }
.text-bone-60 { color: hsl(var(--bone) / 0.6); }
.text-bone-50 { color: hsl(var(--bone) / 0.5); }
.text-primary { color: hsl(var(--primary)); }
.text-ink { color: hsl(var(--ink)); }
.bg-bone { background: hsl(var(--bone)); }
.bg-primary { background: hsl(var(--primary)); }
.bg-gradient-card { background: var(--gradient-card); }
.bg-gradient-gold { background: var(--gradient-gold); }
.bg-surface-40 { background: hsl(var(--surface) / 0.4); }
.shadow-deep { box-shadow: var(--shadow-deep); }
.shadow-gold { box-shadow: var(--shadow-gold); }
.border-thin { border: 1px solid hsl(var(--border)); }
.rounded { border-radius: 0.25rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: hsl(var(--primary));
  font-weight: 500;
  line-height: 1.2;
}
.eyebrow::before {
  content: '';
  width: 20px;
  height: 1px;
  background: hsl(var(--primary));
  flex-shrink: 0;
}
@media (min-width: 768px) {
  .eyebrow {
    gap: 0.75rem;
    font-size: 0.75rem;
    letter-spacing: 0.4em;
  }
  .eyebrow::before {
    width: 28px;
  }
}

/* Header & Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.35s var(--ease-cinema);
  background: hsl(var(--background) / 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--border) / 0.6);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

@media (min-width: 768px) {
  .header-inner {
    height: 5rem;
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  z-index: 52;
}

@media (min-width: 768px) {
  .logo {
    gap: 0.75rem;
  }
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.125rem;
  height: 2.125rem;
  border-radius: 0.25rem;
  background: var(--gradient-gold);
  color: hsl(var(--ink));
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  box-shadow: var(--shadow-gold);
}

.logo-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.375rem;
  letter-spacing: 0.16em;
  color: hsl(var(--bone));
}

@media (min-width: 768px) {
  .logo-text {
    font-size: 1.5rem;
    letter-spacing: 0.18em;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 52;
}

/* Mobile Hamburger Toggle */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  background: hsl(var(--surface) / 0.6);
  border: 1px solid hsl(var(--border));
  border-radius: 0.25rem;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

.menu-toggle:hover {
  border-color: hsl(var(--primary) / 0.6);
  background: hsl(var(--surface));
}

.hamburger-bar {
  width: 1.25rem;
  height: 2px;
  background: hsl(var(--bone));
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
  transform-origin: center;
}

.site-header.menu-open .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: hsl(var(--primary));
}

.site-header.menu-open .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.site-header.menu-open .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: hsl(var(--primary));
}

/* Navigation Drawer */
.nav {
  display: none;
}

/* Mobile open state */
.nav.is-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: hsl(var(--background) / 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid hsl(var(--border));
  padding: 1.5rem 1.25rem 2rem;
  gap: 1rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
  animation: navSlideDown 0.25s var(--ease-cinema);
}

@keyframes navSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav a {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: hsl(var(--bone) / 0.75);
  transition: color 0.2s;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid hsl(var(--border) / 0.3);
}

.nav a:hover {
  color: hsl(var(--primary));
}

.nav-cta-mobile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: hsl(var(--ink)) !important;
  background: hsl(var(--primary));
  padding: 0.875rem 1.25rem !important;
  border-radius: 0.25rem;
  border-bottom: none !important;
  text-align: center;
}

/* Desktop navigation */
@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }
  .nav {
    display: flex;
    align-items: center;
    gap: 2.25rem;
    position: static;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0;
    box-shadow: none;
    border: none;
    animation: none;
  }
  .nav a {
    font-size: 0.7rem;
    letter-spacing: 0.32em;
    padding: 0;
    border-bottom: none;
  }
  .nav-cta-mobile {
    display: none !important;
  }
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: hsl(var(--ink));
  background: hsl(var(--bone));
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  transition: background 0.3s;
}

.cta-btn:hover {
  background: hsl(var(--primary));
}

.cta-desktop {
  display: none;
}

@media (min-width: 768px) {
  .cta-desktop {
    display: inline-flex;
  }
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: 4.5rem;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero {
    padding-top: 5rem;
  }
}

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

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

.hero-bg::before,
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
}

.hero-bg::before {
  background: linear-gradient(to right, hsl(var(--background)), hsl(var(--background) / 0.6) 50%, transparent);
}

.hero-bg::after {
  background: linear-gradient(to top, hsl(var(--background)), transparent 50%, hsl(var(--background) / 0.4));
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 4.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .hero-content {
    min-height: calc(100vh - 5rem);
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

.hero h1 {
  font-size: clamp(2.75rem, 9.5vw, 8rem);
  line-height: 0.9;
  color: hsl(var(--bone));
  max-width: 56rem;
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
}

.hero p {
  margin-top: 1.25rem;
  font-size: clamp(0.95rem, 2.5vw, 1.125rem);
  color: hsl(var(--bone) / 0.75);
  max-width: 32rem;
  line-height: 1.65;
}

@media (min-width: 768px) {
  .hero p {
    margin-top: 2rem;
    line-height: 1.7;
  }
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

@media (min-width: 768px) {
  .hero-actions {
    margin-top: 3rem;
    gap: 1.25rem;
  }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: hsl(var(--bone));
  color: hsl(var(--ink));
  padding: 0.875rem 1.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  transition: background 0.3s;
}

.btn-primary:hover {
  background: hsl(var(--primary));
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border: 1px solid hsl(var(--bone) / 0.3);
  color: hsl(var(--bone) / 0.9);
  padding: 0.875rem 1.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  transition: all 0.3s;
}

.btn-ghost:hover {
  border-color: hsl(var(--primary));
  color: hsl(var(--primary));
}

@media (max-width: 480px) {
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost {
    width: 100%;
  }
}

.hero-stats {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 1rem;
  border-top: 1px solid hsl(var(--bone) / 0.15);
  padding-top: 1.5rem;
}

@media (min-width: 768px) {
  .hero-stats {
    margin-top: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 3rem;
  }
}

.hero-stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  color: hsl(var(--primary));
  letter-spacing: 0.05em;
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: hsl(var(--bone) / 0.55);
  margin-top: 0.35rem;
}

/* Marquee */
.marquee {
  position: relative;
  padding: 1.75rem 0;
  border-top: 1px solid hsl(var(--border) / 0.6);
  border-bottom: 1px solid hsl(var(--border) / 0.6);
  background: hsl(var(--surface) / 0.4);
  overflow: hidden;
}

@media (min-width: 768px) {
  .marquee {
    padding: 2.5rem 0;
  }
}

.marquee-track {
  display: flex;
  gap: 2.5rem;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
}

@media (min-width: 768px) {
  .marquee-track {
    gap: 4rem;
  }
}

.marquee-track span {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  letter-spacing: 0.15em;
  color: hsl(var(--bone) / 0.15);
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .marquee-track span {
    gap: 4rem;
  }
}

.marquee-track .star {
  color: hsl(var(--primary));
  font-size: 1.25rem;
}

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

/* Bento Section */
.section {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

@media (min-width: 768px) {
  .section {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.25rem;
}

@media (min-width: 768px) {
  .section-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
  }
}

.section-head h2 {
  font-size: clamp(2.25rem, 7vw, 4.5rem);
  color: hsl(var(--bone));
  line-height: 0.95;
  margin-top: 0.5rem;
}

.section-head p {
  color: hsl(var(--bone) / 0.65);
  max-width: 24rem;
  line-height: 1.65;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.bento {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .bento {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 360px;
    gap: 1.25rem;
  }
}

.bento-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.25rem;
  border: 1px solid hsl(var(--border));
  background: var(--gradient-card);
  box-shadow: var(--shadow-deep);
  min-height: 220px;
  transition: transform 0.6s var(--ease-cinema);
}

@media (min-width: 768px) {
  .bento-card {
    min-height: 240px;
  }
}

.bento-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease-cinema);
}

.bento-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, hsl(var(--ink)), hsl(var(--ink) / 0.4) 50%, transparent);
}

.bento-card:hover img {
  transform: scale(1.05);
}

.bento-card .inner {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .bento-card .inner {
    padding: 2.5rem;
  }
}

.bento-card h3 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  color: hsl(var(--bone));
  line-height: 1;
}

.bento-tag {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: hsl(var(--primary));
}

.bento-feature {
  grid-column: span 1;
}

@media (min-width: 768px) {
  .bento-feature {
    grid-column: span 3;
    grid-row: span 2;
  }
  .bento-feature h3 {
    font-size: clamp(2.5rem, 5vw, 4rem) !important;
  }
  .bento-feature .img-opacity {
    opacity: 0.75 !important;
  }
}

.bento-feature img {
  opacity: 0.65;
}

.bento-wide {
  grid-column: span 1;
}

@media (min-width: 768px) {
  .bento-wide {
    grid-column: span 3;
  }
}

.bento-half {
  grid-column: span 1;
}

@media (min-width: 768px) {
  .bento-half {
    grid-column: span 2;
  }
}

.bento-id {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--gradient-card);
  padding: 2rem 1.5rem;
}

.bento-id::after {
  display: none;
}

.bento-id-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.5rem, 8vw, 4.5rem);
  line-height: 1;
}

.bento-id-label {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: hsl(var(--bone) / 0.6);
  margin-top: 0.25rem;
}

.card-link-arrow {
  margin-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: hsl(var(--primary));
  border-bottom: 1px solid hsl(var(--primary) / 0.4);
  padding-bottom: 0.25rem;
  width: fit-content;
  transition: gap 0.3s;
}

.bento-card:hover .card-link-arrow {
  gap: 1.25rem;
}

/* Timeline */
.timeline-section {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
  border-top: 1px solid hsl(var(--border) / 0.5);
}

@media (min-width: 768px) {
  .timeline-section {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}

.timeline-head {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 2.5rem;
}

@media (min-width: 768px) {
  .timeline-head {
    margin-bottom: 4rem;
  }
}

.timeline-head h2 {
  font-size: clamp(2rem, 6vw, 3.75rem);
  color: hsl(var(--bone));
  line-height: 1;
  margin-top: 0.5rem;
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .timeline {
    grid-template-columns: repeat(4, 1fr);
  }
  .timeline::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: linear-gradient(to right, transparent, hsl(var(--primary) / 0.4), transparent);
  }
}

.era {
  text-align: center;
  position: relative;
  z-index: 1;
}

.era-decade {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.75rem, 8vw, 4rem);
  color: hsl(var(--bone) / 0.3);
  transition: color 0.5s;
  line-height: 1;
}

.era:hover .era-decade {
  color: hsl(var(--primary));
}

.era-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: hsl(var(--primary));
  margin: 0.75rem auto;
  box-shadow: 0 0 0 6px hsl(var(--primary) / 0.15);
}

.era-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.125rem, 3.5vw, 1.25rem);
  color: hsl(var(--bone));
  letter-spacing: 0.1em;
}

.era-note {
  font-size: 0.75rem;
  color: hsl(var(--bone) / 0.55);
  margin-top: 0.25rem;
  padding: 0 0.5rem;
  line-height: 1.5;
}

/* Page Header & Listing pages */
.page-header {
  position: relative;
  padding-top: 6.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid hsl(var(--border) / 0.5);
}

@media (min-width: 768px) {
  .page-header {
    padding-top: 11rem;
    padding-bottom: 5rem;
  }
}

.page-header-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .page-header-inner {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
  }
}

.page-header h1 {
  font-size: clamp(2.5rem, 8.5vw, 5.5rem);
  color: hsl(var(--bone));
  line-height: 0.92;
  margin-top: 0.5rem;
}

@media (min-width: 768px) {
  .page-header h1 {
    font-size: 6rem;
  }
}

.page-header p {
  color: hsl(var(--bone) / 0.65);
  max-width: 24rem;
  line-height: 1.65;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.page-content {
  padding-top: 2.5rem;
  padding-bottom: 5rem;
}

@media (min-width: 768px) {
  .page-content {
    padding-top: 4rem;
    padding-bottom: 6rem;
  }
}

.meta-row {
  margin-top: 1.75rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: hsl(var(--bone) / 0.5);
}

@media (min-width: 768px) {
  .meta-row {
    margin-top: 3rem;
    gap: 1.5rem;
    letter-spacing: 0.4em;
  }
}

.meta-row .sep {
  width: 1.5rem;
  height: 1px;
  background: hsl(var(--bone) / 0.3);
}

/* Filters */
.filters {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .filters {
    margin-top: 3rem;
    gap: 0.75rem;
  }
}

.filter-btn {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  padding: 0.5rem 0.85rem;
  border: 1px solid hsl(var(--border));
  color: hsl(var(--bone) / 0.6);
  border-radius: 0.25rem;
  transition: all 0.2s;
}

.filter-btn:hover {
  color: hsl(var(--primary));
  border-color: hsl(var(--primary) / 0.6);
}

.filter-btn.active {
  background: hsl(var(--primary));
  color: hsl(var(--ink));
  border-color: hsl(var(--primary));
  font-weight: 500;
}

/* Grids */
.grid-3 {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid-2 {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

/* Legend card */
.legend-card {
  position: relative;
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  border-radius: 0.25rem;
  background: var(--gradient-card);
  box-shadow: var(--shadow-deep);
  transition: transform 0.4s var(--ease-cinema);
}

.legend-card:hover {
  transform: translateY(-4px);
}

.legend-img {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
}

.legend-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: all 1.4s var(--ease-cinema);
}

.legend-card:hover .legend-img img {
  opacity: 1;
  transform: scale(1.05);
}

.legend-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, hsl(var(--ink)), hsl(var(--ink) / 0.3) 50%, transparent);
}

.legend-img-overlay {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  z-index: 2;
}

.legend-num {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: hsl(var(--primary));
}

.legend-jersey {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.5rem, 8vw, 4.5rem);
  color: hsl(var(--bone) / 0.85);
  line-height: 1;
}

.legend-img-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.25rem;
  z-index: 2;
}

@media (min-width: 768px) {
  .legend-img-bottom {
    padding: 1.5rem;
  }
}

.legend-meta {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: hsl(var(--bone) / 0.6);
  margin-bottom: 0.35rem;
}

.legend-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.75rem, 5vw, 2rem);
  color: hsl(var(--bone));
  line-height: 1;
}

.legend-nick {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.125rem;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.legend-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-top: 1px solid hsl(var(--border) / 0.6);
}

.legend-foot-stats {
  display: flex;
  gap: 1.25rem;
}

.stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.375rem;
  color: hsl(var(--primary));
  line-height: 1;
}

.stat-num.muted {
  color: hsl(var(--bone));
}

.stat-label {
  font-size: 0.5625rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: hsl(var(--bone) / 0.55);
}

.see-more {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: hsl(var(--bone) / 0.6);
  transition: color 0.3s;
}

.legend-card:hover .see-more {
  color: hsl(var(--primary));
}

/* Moments */
.moment-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.25rem;
  border: 1px solid hsl(var(--border));
  background: var(--gradient-card);
  box-shadow: var(--shadow-deep);
  transition: transform 0.4s var(--ease-cinema);
}

.moment-card:hover {
  transform: translateY(-4px);
}

.moment-media {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.moment-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: all 1.4s var(--ease-cinema);
}

.moment-card:hover .moment-media img {
  opacity: 1;
  transform: scale(1.05);
}

.moment-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, hsl(var(--ink)), hsl(var(--ink) / 0.4) 50%, transparent);
}

.moment-top {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.reel-tag {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: hsl(var(--primary));
}

.duration-tag {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: hsl(var(--bone) / 0.6);
  border: 1px solid hsl(var(--bone) / 0.3);
  padding: 0.25rem 0.5rem;
  border-radius: 0.2rem;
}

.moment-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.25rem;
  z-index: 2;
}

@media (min-width: 768px) {
  .moment-bottom {
    padding: 1.5rem;
  }
}

.moment-circuit {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: hsl(var(--bone) / 0.6);
  margin-bottom: 0.35rem;
}

.moment-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.5rem, 4vw, 1.875rem);
  color: hsl(var(--bone));
  line-height: 1.05;
}

.moment-sub {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.125rem;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.moment-desc {
  padding: 1.25rem;
  border-top: 1px solid hsl(var(--border) / 0.6);
  color: hsl(var(--bone) / 0.7);
  font-size: 0.875rem;
  line-height: 1.65;
}

@media (min-width: 768px) {
  .moment-desc {
    padding: 1.5rem;
    line-height: 1.7;
  }
}

/* Heroes */
.hero-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-radius: 0.25rem;
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  background: var(--gradient-card);
  box-shadow: var(--shadow-deep);
  transition: transform 0.4s var(--ease-cinema);
}

.hero-card:hover {
  transform: translateY(-4px);
}

@media (min-width: 768px) {
  .hero-card {
    grid-template-columns: 5fr 7fr;
  }
}

.hero-card-media {
  position: relative;
  aspect-ratio: 16/10;
  min-height: 220px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero-card-media {
    aspect-ratio: 4/3;
    min-height: 280px;
  }
}

.hero-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: transform 1.4s var(--ease-cinema);
}

.hero-card:hover .hero-card-media img {
  transform: scale(1.05);
}

.hero-card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, hsl(var(--ink) / 0.4), transparent 50%, hsl(var(--ink) / 0.8));
}

.hero-card-num {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-card-num .big {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 6vw, 3rem);
  line-height: 1;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-card-num .small {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: hsl(var(--bone) / 0.7);
  line-height: 1.3;
}

.hero-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .hero-card-body {
    padding: 2.25rem;
    gap: 1.5rem;
  }
}

.hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: hsl(var(--bone) / 0.55);
  margin-bottom: 0.75rem;
}

.hero-meta .sep {
  width: 1.25rem;
  height: 1px;
  background: hsl(var(--bone) / 0.3);
}

.hero-meta .pos {
  color: hsl(var(--primary));
  font-weight: 500;
}

.hero-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  color: hsl(var(--bone));
  line-height: 1.05;
}

.hero-story {
  margin-top: 0.75rem;
  color: hsl(var(--bone) / 0.7);
  line-height: 1.65;
  font-size: 0.9375rem;
  max-width: 36rem;
}

.hero-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  border-top: 1px solid hsl(var(--border) / 0.6);
  padding-top: 1rem;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
}

.hero-foot .left { color: hsl(var(--bone) / 0.5); }
.hero-foot .right { color: hsl(var(--primary)); }

/* Bikes */
.bike-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.25rem;
  border: 1px solid hsl(var(--border));
  background: var(--gradient-card);
  box-shadow: var(--shadow-deep);
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease-cinema);
}

.bike-card:hover {
  transform: translateY(-4px);
}

.bike-media {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.bike-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: transform 1.4s var(--ease-cinema);
}

.bike-card:hover .bike-media img {
  transform: scale(1.08);
}

.bike-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, hsl(var(--ink)), hsl(var(--ink) / 0.3) 50%, transparent);
}

.bike-top {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 2;
  display: flex;
  justify-content: space-between;
}

.bike-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.25rem;
  z-index: 2;
}

.bike-make {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: hsl(var(--bone) / 0.6);
  margin-bottom: 0.25rem;
}

.bike-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.5rem, 4vw, 1.875rem);
  color: hsl(var(--bone));
  line-height: 1.05;
}

.bike-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bike-desc {
  color: hsl(var(--bone) / 0.7);
  font-size: 0.875rem;
  line-height: 1.65;
}

.bike-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 1rem;
  row-gap: 0.75rem;
  border-top: 1px solid hsl(var(--border) / 0.6);
  padding-top: 1rem;
}

.bike-stat-label {
  font-size: 0.5625rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: hsl(var(--bone) / 0.55);
}

.bike-stat-val {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.125rem;
  color: hsl(var(--bone));
}

.bike-highlight {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: hsl(var(--primary));
  border-top: 1px solid hsl(var(--border) / 0.6);
  padding-top: 1rem;
}

.bike-highlight .line {
  width: 1.5rem;
  height: 1px;
  background: hsl(var(--primary));
  flex-shrink: 0;
}

/* Detail Pages (Legends, Heroes, Moments) */
.detail-hero {
  position: relative;
  min-height: 75vh;
  padding-top: 4.5rem;
  overflow: hidden;
}

@media (min-width: 768px) {
  .detail-hero {
    min-height: 90vh;
    padding-top: 6rem;
  }
}

.detail-hero-bg {
  position: absolute;
  inset: 0;
}

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

.detail-hero-bg::before,
.detail-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
}

.detail-hero-bg::before {
  background: linear-gradient(to right, hsl(var(--background)), hsl(var(--background) / 0.8) 50%, hsl(var(--background) / 0.2));
}

.detail-hero-bg::after {
  background: linear-gradient(to top, hsl(var(--background)), transparent);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 2rem;
  padding-bottom: 3rem;
  min-height: 65vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

@media (min-width: 768px) {
  .detail-hero-inner {
    padding-top: 3rem;
    padding-bottom: 4rem;
    min-height: 80vh;
  }
}

.back-link {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: hsl(var(--bone) / 0.6);
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s;
}

@media (min-width: 768px) {
  .back-link {
    margin-bottom: 2.5rem;
  }
}

.back-link:hover {
  color: hsl(var(--primary));
}

.detail-title-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .detail-title-row {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
  }
}

.detail-title {
  max-width: 56rem;
}

.detail-title h1,
.detail-hero h1 {
  font-family: 'Bebas Neue', 'Barlow Condensed', sans-serif;
  line-height: 0.9;
  font-size: clamp(2.75rem, 11vw, 5rem);
  color: hsl(var(--bone));
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  overflow-wrap: break-word;
}

@media (min-width: 768px) {
  .detail-title h1,
  .detail-hero h1 {
    font-size: clamp(5.5rem, 12vw, 9rem);
    line-height: 0.85;
  }
}

.detail-nick {
  margin-top: 0.75rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.25rem, 4vw, 2rem);
  letter-spacing: 0.08em;
  color: hsl(var(--bone) / 0.7);
}

.detail-jersey {
  font-family: 'Bebas Neue', sans-serif;
  line-height: 0.8;
  font-size: clamp(4.5rem, 16vw, 7.5rem);
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.9;
}

@media (min-width: 768px) {
  .detail-jersey {
    font-size: 14rem;
  }
}

.detail-section {
  padding-top: 3rem;
  padding-bottom: 3rem;
  border-top: 1px solid hsl(var(--border) / 0.4);
}

@media (min-width: 768px) {
  .detail-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

.detail-section-bg {
  background: hsl(var(--surface) / 0.4);
  border-top: 1px solid hsl(var(--border) / 0.4);
  border-bottom: 1px solid hsl(var(--border) / 0.4);
}

.detail-section-head {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .detail-section-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 3rem;
  }
}

.detail-section-head h2,
.detail-section h2 {
  font-family: 'Bebas Neue', 'Barlow Condensed', sans-serif;
  font-size: clamp(2rem, 6.5vw, 3rem);
  color: hsl(var(--bone));
  line-height: 0.98;
  overflow-wrap: break-word;
}

.detail-section-sub {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: hsl(var(--bone) / 0.55);
}

.detail-bottom-section {
  padding-bottom: 4rem;
}

@media (min-width: 768px) {
  .detail-bottom-section {
    padding-bottom: 6rem;
  }
}

.bio-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .bio-grid {
    grid-template-columns: 4fr 8fr;
    gap: 2.5rem;
  }
}

.bio-grid h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 6vw, 2.5rem);
  color: hsl(var(--bone));
  line-height: 1;
  margin-top: 0.5rem;
}

.bio-text {
  font-size: clamp(0.95rem, 2.5vw, 1.125rem);
  color: hsl(var(--bone) / 0.75);
  line-height: 1.7;
}

/* Palmares Grid */
.palmares-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(2, 1fr);
  background: hsl(var(--border) / 0.6);
  border: 1px solid hsl(var(--border) / 0.6);
}

@media (min-width: 640px) {
  .palmares-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .palmares-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.palmares-cell {
  background: hsl(var(--background));
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 110px;
}

@media (min-width: 768px) {
  .palmares-cell {
    padding: 2rem;
    min-height: 150px;
  }
}

.palmares-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.75rem, 5vw, 3rem);
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  overflow-wrap: break-word;
}

.palmares-label {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: hsl(var(--bone) / 0.6);
  margin-top: 0.75rem;
}

/* 3D Bikes */
.bike-3d-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .bike-3d-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.bike-3d {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 0.25rem;
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  background: var(--gradient-card);
  box-shadow: var(--shadow-deep);
}

.bike-3d::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, hsl(var(--primary) / 0.18), transparent 65%);
}

.bike-3d::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 33%;
  background: linear-gradient(to top, hsl(var(--ink)), transparent);
}

.bike-3d-svg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bike-3d-svg img {
  width: 75%;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.bike-3d-hud {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.35em;
}

.bike-3d-hud .left { color: hsl(var(--primary)); }
.bike-3d-hud .right { color: hsl(var(--bone) / 0.6); }

.bike-3d-foot {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 2;
}

.bike-3d-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  color: hsl(var(--bone));
  line-height: 1.1;
}

.bike-3d-meta {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: hsl(var(--bone) / 0.6);
  margin-top: 0.25rem;
}

.corner {
  position: absolute;
  width: 1rem;
  height: 1rem;
  border-color: hsl(var(--primary) / 0.6);
}
.corner.tl { top: 0.75rem; left: 0.75rem; border-left: 1px solid; border-top: 1px solid; }
.corner.tr { top: 0.75rem; right: 0.75rem; border-right: 1px solid; border-top: 1px solid; }
.corner.bl { bottom: 0.75rem; left: 0.75rem; border-left: 1px solid; border-bottom: 1px solid; }
.corner.br { bottom: 0.75rem; right: 0.75rem; border-right: 1px solid; border-bottom: 1px solid; }

/* Race videos & Cards */
.race-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .race-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.race-card {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 240px;
  border: 1px solid hsl(var(--border));
  border-radius: 0.25rem;
  background: hsl(var(--ink));
  box-shadow: var(--shadow-deep);
}

@media (min-width: 768px) {
  .race-card {
    min-height: 260px;
  }
}

.race-card .thumb {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transition: transform 1.2s var(--ease-cinema);
}

.race-card:hover .thumb {
  transform: scale(1.05);
}

.race-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 40%, rgba(0, 0, 0, 0.1) 70%);
  z-index: 1;
}

.race-play,
.race-top,
.race-bottom {
  position: relative;
  z-index: 2;
}

.race-top {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: hsl(var(--bone) / 0.7);
}

.race-top .l { color: hsl(var(--primary)); }
.race-top .r { color: hsl(var(--bone) / 0.6); }

.race-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.race-play div {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  border: 1px solid hsl(var(--primary) / 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(var(--ink) / 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: hsl(var(--primary));
  font-size: 1.25rem;
  transition: all 0.3s;
}

.race-card:hover .race-play div {
  background: hsl(var(--primary));
  color: hsl(var(--ink));
  transform: scale(1.08);
}

.race-bottom {
  padding: 1.25rem;
}

.race-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.25rem;
  color: hsl(var(--bone));
  line-height: 1.1;
}

.race-meta {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: hsl(var(--bone) / 0.6);
  margin-top: 0.25rem;
}

/* Reel Stage */
.reel-stage {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 0.25rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--surface) / 0.4);
}

.reel-stage-wide {
  aspect-ratio: 21/9;
}

@media (max-width: 768px) {
  .reel-stage-wide {
    aspect-ratio: 16/9;
  }
}

.reel-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: transform 1.2s var(--ease-cinema), opacity 0.4s ease;
}

.reel-stage:hover img {
  transform: scale(1.05);
  opacity: 0.95;
}

.reel-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, hsl(var(--ink)), hsl(var(--ink) / 0.3) 50%, transparent);
  pointer-events: none;
}

.reel-top {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.35em;
}

.reel-play {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.reel-play-btn {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  border: 1px solid hsl(var(--primary) / 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(var(--ink) / 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: hsl(var(--primary));
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.reel-stage:hover .reel-play-btn {
  background: hsl(var(--primary));
  color: hsl(var(--ink));
  transform: scale(1.1);
  box-shadow: 0 0 25px hsl(var(--primary) / 0.6);
}

.reel-play-btn svg,
.reel-play svg {
  width: 1.25rem;
  height: 1.25rem;
  margin-left: 2px;
}

/* Video Modal */
.video-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1.25rem;
  align-items: center;
  justify-content: center;
}

.video-content {
  position: relative;
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16/9;
  margin: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
  border: 1px solid hsl(var(--border));
  border-radius: 0.25rem;
  overflow: hidden;
  background: #000;
}

.video-content iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.video-modal .close {
  position: absolute;
  top: -2.75rem;
  right: 0;
  color: hsl(var(--bone));
  font-size: 2.25rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s;
}

.video-modal .close:hover {
  color: hsl(var(--primary));
}

@media (max-width: 640px) {
  .video-modal {
    padding: 0.75rem;
  }
  .video-modal .close {
    top: -2.25rem;
    font-size: 1.875rem;
  }
}

/* Others Card */
.others-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .others-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.other-card {
  position: relative;
  min-height: 130px;
  border-radius: 0.25rem;
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  background: var(--gradient-card);
  transition: transform 0.4s var(--ease-cinema);
}

@media (min-width: 768px) {
  .other-card {
    aspect-ratio: 16/7;
    min-height: auto;
  }
}

.other-card:hover {
  transform: translateY(-3px);
}

.other-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  transition: all 1.2s var(--ease-cinema);
}

.other-card:hover img {
  opacity: 0.7;
  transform: scale(1.05);
}

.other-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, hsl(var(--ink)), hsl(var(--ink) / 0.6) 50%, transparent);
}

.other-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 768px) {
  .other-inner {
    padding: 1.75rem;
  }
}

.other-tag {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: hsl(var(--primary));
  margin-bottom: 0.35rem;
}

.other-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: hsl(var(--bone));
  line-height: 1.1;
}

.other-nick {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.125rem;
  letter-spacing: 0.05em;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.other-arrow {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.75rem;
  color: hsl(var(--bone) / 0.3);
  transition: color 0.3s;
  flex-shrink: 0;
}

.other-card:hover .other-arrow {
  color: hsl(var(--primary));
}

/* 404 */
.notfound {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
  padding-top: 5rem;
}

.notfound h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(5rem, 18vw, 8rem);
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}

/* Footer */
.site-footer {
  border-top: 1px solid hsl(var(--border) / 0.6);
  margin-top: 4rem;
}

@media (min-width: 768px) {
  .site-footer {
    margin-top: 8rem;
  }
}

.footer-grid {
  padding-top: 3rem;
  padding-bottom: 3rem;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .footer-grid {
    padding-top: 4rem;
    padding-bottom: 4rem;
    gap: 2.5rem;
    grid-template-columns: repeat(4, 1fr);
  }
}

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

@media (min-width: 768px) {
  .footer-brand {
    grid-column: span 2;
  }
}

.footer-brand-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: 0.12em;
  color: hsl(var(--bone));
  margin-bottom: 0.75rem;
}

.footer h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: hsl(var(--primary));
  margin-bottom: 1rem;
}

.footer ul {
  list-style: none;
}

.footer li {
  color: hsl(var(--bone) / 0.7);
  font-size: 0.875rem;
  padding: 0.25rem 0;
}

.footer-bottom {
  border-top: 1px solid hsl(var(--border) / 0.4);
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  text-align: center;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: hsl(var(--bone) / 0.4);
  line-height: 1.6;
}
