/* =========================================================
   AS96 — Alexis Stan
   Design system
   - Display: "Anton" (heavy condensed) — racing headlines
   - Body: "Inter" — running text
   - Mono: "JetBrains Mono" — telemetry / numbers / labels
   - Palette: deep black, racing red, white
   ========================================================= */

:root {
  --bg:        #060608;
  --bg-2:      #0c0c11;
  --bg-3:      #14141b;
  --line:      rgba(255, 255, 255, 0.08);
  --line-2:    rgba(255, 255, 255, 0.14);
  --fg:        #f3f3f5;
  --fg-mute:   #9a9aa3;
  --fg-dim:    #5b5b66;
  --red:       #e10600;
  --red-hot:   #ff2218;
  --red-dim:   #7a0400;
  --red-glow:  rgba(225, 6, 0, 0.55);
  --ok:        #16d27e;
  --ease:      cubic-bezier(.22, 1, .36, 1);
  --nav-bg:    linear-gradient(180deg, rgba(6,6,8,0.92) 0%, rgba(6,6,8,0.5) 100%);
  --card-bg:   var(--bg-2);
  --shadow:    0 4px 32px rgba(0,0,0,0.4);
}

[data-theme="light"] {
  --bg:        #f5f5f7;
  --bg-2:      #ffffff;
  --bg-3:      #ebebef;
  --line:      rgba(0, 0, 0, 0.09);
  --line-2:    rgba(0, 0, 0, 0.15);
  --fg:        #0a0a0f;
  --fg-mute:   #52525c;
  --fg-dim:    #9a9aa8;
  --red:       #e10600;
  --red-hot:   #c90000;
  --red-dim:   #fcd0cf;
  --red-glow:  rgba(225, 6, 0, 0.25);
  --ok:        #0ea85f;
  --nav-bg:    linear-gradient(180deg, rgba(245,245,247,0.95) 0%, rgba(245,245,247,0.8) 100%);
  --card-bg:   #ffffff;
  --shadow:    0 4px 32px rgba(0,0,0,0.10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }

/* ---------- Typography ---------- */
.display {
  font-family: "Anton", "Oswald", "Archivo Black", sans-serif;
  font-weight: 400;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  line-height: 0.86;
}
.mono {
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: 0.02em;
}
.eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

/* ---------- Layout ---------- */
.wrap {
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: 0 32px;
}
section { position: relative; }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  background: transparent;
  z-index: 100;
}
.scroll-progress > i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--red) 0%, var(--red-hot) 100%);
  box-shadow: 0 0 18px var(--red-glow);
  transition: width 80ms linear;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 101;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--line);
}

/* ---------- Theme toggle ---------- */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  background: none;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  cursor: pointer;
  color: var(--fg);
  transition: border-color 200ms, background 200ms;
  flex-shrink: 0;
}
.theme-toggle:hover { background: var(--bg-3); }
.theme-toggle__icon::before {
  content: '☀';
  font-size: 15px;
  line-height: 1;
}
[data-theme="light"] .theme-toggle__icon::before {
  content: '☾';
}
.theme-toggle--drawer { display: none; }
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Anton", sans-serif;
  font-size: 22px;
  letter-spacing: 0.04em;
}
.nav-logo img {
  height: 44px;
  width: auto;
  display: block;
}
.nav-logo .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: var(--red);
  color: white;
  font-family: "Anton", sans-serif;
  font-size: 16px;
  letter-spacing: 0;
  border-radius: 4px;
  transform: skew(-12deg);
  box-shadow: 0 0 24px var(--red-glow);
}
.nav-logo .badge span { transform: skew(12deg); }
.nav-menu {
  display: flex;
  gap: 28px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.nav-menu a {
  position: relative;
  color: var(--fg-mute);
  transition: color 200ms;
  padding: 6px 0;
}
.nav-menu a:hover { color: var(--fg); }
.nav-menu a::before {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--red);
  transition: width 280ms var(--ease);
}
.nav-menu a:hover::before { width: 100%; }
.nav-cta {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 10px 18px;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  color: var(--fg);
  transition: all 220ms var(--ease);
}
.nav-cta:hover {
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 0 24px var(--red-glow);
}
/* Hamburger button — hidden on desktop */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 102;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform 300ms var(--ease), opacity 300ms var(--ease), width 300ms var(--ease);
  transform-origin: center;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 99;
  opacity: 0;
  transition: opacity 300ms var(--ease);
}
.nav-overlay.visible { opacity: 1; }

/* Mobile menu drawer */
.nav-menu-cta { display: none; }

@media (max-width: 860px) {
  .nav {
    padding: 10px 16px;
  }
  .nav-logo img { height: 34px; }
  .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .nav-overlay { display: block; pointer-events: none; }
  .nav-overlay.visible { pointer-events: all; }

  .nav-menu {
    position: fixed;
    top: 0; right: 0;
    width: 75vw;
    max-width: 300px;
    height: 100dvh;
    background: rgba(6,6,8,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    padding: 80px 32px 40px;
    z-index: 100;
    transform: translateX(100%);
    transition: transform 350ms var(--ease);
    pointer-events: none;
  }
  .nav-menu.open {
    transform: translateX(0);
    pointer-events: all;
  }
  .nav-menu a {
    width: 100%;
    font-size: 13px;
    letter-spacing: 0.14em;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    color: #fff;
  }
  .nav-menu a:first-child { border-top: 1px solid var(--line); }
  .nav-menu a:hover { color: var(--red); }
  .nav-menu-cta {
    display: block;
    margin-top: 24px;
    padding: 12px 20px !important;
    border: 1px solid var(--red) !important;
    border-radius: 2px;
    color: #fff !important;
    text-align: center;
    font-family: "JetBrains Mono", monospace;
    transition: background 220ms var(--ease);
  }
  .nav-menu-cta:hover { background: var(--red) !important; }
  .theme-toggle--desktop { display: none; }
  .theme-toggle--drawer {
    display: flex;
    margin-top: 24px;
    width: 100%;
    border-radius: 4px;
    height: 42px;
    border-color: var(--line-2);
    justify-content: center;
    gap: 8px;
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
  }
  .theme-toggle--drawer::after {
    content: 'Schimbă tema';
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: var(--bg);
  color: #f3f3f5;
  --bg:       #060608;
  --bg-2:     #0c0c11;
  --bg-3:     #14141b;
  --line:     rgba(255,255,255,0.08);
  --line-2:   rgba(255,255,255,0.14);
  --fg:       #f3f3f5;
  --fg-mute:  #9a9aa3;
  --fg-dim:   #5b5b66;
  --red-glow: rgba(225,6,0,0.55);
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 1;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  z-index: 2;
  pointer-events: none;
}
.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, transparent 0%, var(--bg) 95%),
    linear-gradient(180deg, transparent 60%, var(--bg) 100%);
  z-index: 3;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 5;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 140px 32px 80px;
  max-width: 1320px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 100px; }
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 28px;
}
.hero-tag .dot {
  width: 6px; height: 6px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--red);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.85); }
}
.hero-title {
  font-size: clamp(56px, 10vw, 158px);
  margin-bottom: 24px;
}
.hero-title .red { color: var(--red); }
.hero-title .strike {
  display: inline-block;
  position: relative;
}
.hero-title .strike::after {
  content: "";
  position: absolute;
  inset: auto 0 0.16em 0;
  height: 0.06em;
  background: var(--red);
  box-shadow: 0 0 16px var(--red-glow);
  transform-origin: left;
  animation: drawline 1.4s var(--ease) 0.4s both;
}
@keyframes drawline {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
.hero-sub {
  max-width: 540px;
  font-size: 17px;
  color: var(--fg-mute);
  margin-bottom: 36px;
  line-height: 1.55;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 26px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--fg);
  border-radius: 2px;
  transition: all 240ms var(--ease);
  position: relative;
  overflow: hidden;
}
.btn .arrow {
  display: inline-block;
  transition: transform 260ms var(--ease);
}
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary {
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 0 0 var(--red-glow), 0 8px 30px rgba(225, 6, 0, 0.25);
}
.btn-primary:hover {
  background: var(--red-hot);
  box-shadow: 0 0 28px var(--red-glow), 0 14px 40px rgba(225, 6, 0, 0.35);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--fg);
}

.hero-meta {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}
.hero-meta .item {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--fg-mute);
}
.hero-meta .item b {
  display: block;
  font-family: "Anton", sans-serif;
  font-size: 28px;
  color: var(--fg);
  letter-spacing: 0;
  margin-bottom: 2px;
  font-weight: 400;
}
.hero-meta .item b .red { color: var(--red); }

/* Hero photo */
.hero-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  width: 100%;
  max-width: 520px;
  justify-self: center;
}
.hero-photo .frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  background: var(--bg-3);
}
.hero-photo .frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  filter: contrast(1.05) saturate(1.05);
  transform: scale(1.02);
}
.hero-photo .frame::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, transparent 60%, rgba(225, 6, 0, 0.18) 100%),
    linear-gradient(180deg, transparent 70%, rgba(6, 6, 8, 0.9) 100%);
  pointer-events: none;
}
.hero-photo .scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0,
    transparent 3px,
    rgba(255, 255, 255, 0.02) 3px,
    rgba(255, 255, 255, 0.02) 4px
  );
  pointer-events: none;
  mix-blend-mode: overlay;
}
.hero-photo .bracket {
  position: absolute;
  width: 28px; height: 28px;
  border: 2px solid var(--red);
}
.hero-photo .bracket.tl { top: -8px; left: -8px; border-right: 0; border-bottom: 0; }
.hero-photo .bracket.tr { top: -8px; right: -8px; border-left: 0; border-bottom: 0; }
.hero-photo .bracket.bl { bottom: -8px; left: -8px; border-right: 0; border-top: 0; }
.hero-photo .bracket.br { bottom: -8px; right: -8px; border-left: 0; border-top: 0; }

.hero-photo .stamp {
  position: absolute;
  bottom: 18px;
  left: 18px;
  background: rgba(6, 6, 8, 0.78);
  border: 1px solid var(--line-2);
  padding: 10px 14px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-mute);
  backdrop-filter: blur(6px);
}
.hero-photo .stamp b { color: var(--fg); }

.hero-photo .number-tag {
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: "Anton", sans-serif;
  font-size: 88px;
  line-height: 1;
  color: var(--red);
  text-shadow: 0 0 28px var(--red-glow);
  letter-spacing: -0.03em;
}

/* hero ticker */
.ticker {
  position: relative;
  z-index: 5;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(6, 6, 8, 0.8);
  backdrop-filter: blur(6px);
  overflow: hidden;
  height: 56px;
  display: flex;
  align-items: center;
}
.ticker .track {
  display: flex;
  gap: 56px;
  white-space: nowrap;
  animation: scrollx 38s linear infinite;
  padding-left: 56px;
  font-family: "Anton", sans-serif;
  text-transform: uppercase;
  font-size: 22px;
  letter-spacing: 0.04em;
}
.ticker .track span { color: var(--fg); }
.ticker .track i {
  color: var(--red);
  font-style: normal;
  margin: 0 6px;
}
@keyframes scrollx {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Section headers ---------- */
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 56px;
  gap: 32px;
  flex-wrap: wrap;
}
.sec-head .left { max-width: 760px; }
.sec-head .num {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--red);
  margin-bottom: 14px;
}
.sec-head h2 {
  font-size: clamp(40px, 6vw, 84px);
  margin-bottom: 12px;
}
.sec-head p {
  color: var(--fg-mute);
  font-size: 17px;
  max-width: 560px;
}

/* ---------- STATS ---------- */
.stats {
  padding: 110px 0 100px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
.stat {
  padding: 36px 28px;
  border-right: 1px solid var(--line);
  position: relative;
}
.stat:last-child { border-right: 0; }
.stat .label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.stat .label::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--red);
  display: inline-block;
}
.stat .value {
  font-family: "Anton", sans-serif;
  font-size: clamp(48px, 5vw, 80px);
  line-height: 1;
  letter-spacing: -0.01em;
}
.stat .value .unit {
  color: var(--red);
  font-size: 0.55em;
  margin-left: 2px;
}
.stat .sub {
  color: var(--fg-mute);
  font-size: 13px;
  margin-top: 8px;
}

/* ---------- ABOUT ---------- */
.about {
  padding: 140px 0;
  border-bottom: 1px solid var(--line);
}
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}
.about-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.about-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.about-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(6, 6, 8, 0.6) 100%);
}
.about-photo .corner-label {
  position: absolute;
  top: 18px; left: 18px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--fg);
  background: rgba(225, 6, 0, 0.9);
  padding: 6px 10px;
  z-index: 2;
}
.about h2 { font-size: clamp(40px, 6vw, 78px); margin-bottom: 32px; }
.about h2 .red { color: var(--red); }
.about-body { color: var(--fg-mute); font-size: 17px; line-height: 1.65; }
.about-body p + p { margin-top: 18px; }
.about-body strong { color: var(--fg); font-weight: 600; }

.about-quote {
  margin-top: 36px;
  padding: 22px 24px;
  border-left: 3px solid var(--red);
  background: rgba(225, 6, 0, 0.06);
  font-family: "Anton", sans-serif;
  font-size: 22px;
  letter-spacing: 0.01em;
  line-height: 1.15;
  text-transform: uppercase;
}

/* ---------- PALMARES TIMELINE ---------- */
.palmares {
  padding: 140px 0;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(225, 6, 0, 0.06), transparent 70%),
    var(--bg);
}
.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}
@media (max-width: 900px) { .timeline { grid-template-columns: 1fr; } }

.timeline::before {
  content: "";
  position: absolute;
  top: 50px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2) 20%, var(--line-2) 80%, transparent);
}
@media (max-width: 900px) {
  .timeline::before { display: none; }
}
.tl-item {
  padding: 0 18px;
  position: relative;
}
.tl-item .marker {
  width: 14px; height: 14px;
  background: var(--bg);
  border: 2px solid var(--red);
  border-radius: 50%;
  margin-bottom: 24px;
  margin-left: -7px;
  margin-top: 44px;
  box-shadow: 0 0 0 4px var(--bg), 0 0 18px var(--red-glow);
  position: relative;
  z-index: 2;
}
.tl-item.active .marker { background: var(--red); }
.tl-item .year {
  font-family: "Anton", sans-serif;
  font-size: 56px;
  line-height: 0.9;
  margin-bottom: 4px;
}
.tl-item .age {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--red);
  margin-bottom: 18px;
  text-transform: uppercase;
}
.tl-item .desc {
  color: var(--fg-mute);
  font-size: 14px;
  line-height: 1.55;
}
.tl-item .desc b { color: var(--fg); font-weight: 600; }

/* ---------- CARS ---------- */
.cars {
  padding: 140px 0;
  border-bottom: 1px solid var(--line);
}
.cars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .cars-grid { grid-template-columns: 1fr; } }

.car {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 300ms;
}
.car:hover { border-color: var(--red); }
.car .img {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: #000;
  height: 270px;
}
.car .img img {
  width: 130%;
  height: 130%;
  object-fit: cover;
  transition: transform 800ms var(--ease);
}
.car:hover .img img { transform: scale(1.08); }
.car .img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(6, 6, 8, 0.85) 100%);
}
.car .img .badge {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: rgba(6,6,8,0.7);
  border: 1px solid var(--line-2);
  padding: 6px 10px;
  color: var(--fg);
  backdrop-filter: blur(6px);
}
.car .img .badge.pro { background: var(--red); border-color: var(--red); }
.car .body { padding: 26px; }
.car .name {
  font-family: "Anton", sans-serif;
  font-size: 40px;
  letter-spacing: 0.01em;
  margin-bottom: 4px;
}
.car .who {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 22px;
}
.car .specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.car .specs > div {
  padding: 14px 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.car .specs > div:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 12px; }
.car .specs > div:nth-child(even) { padding-left: 12px; }
.car .specs > div em {
  color: var(--fg-mute);
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 10px;
}
.car .specs > div b {
  color: var(--fg);
  font-weight: 600;
}

/* ---------- MEDIA ---------- */
.media {
  padding: 140px 0;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 50% 40% at 20% 30%, rgba(225, 6, 0, 0.07), transparent 70%),
    var(--bg);
}
.media-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 900px) { .media-grid { grid-template-columns: 1fr; } }
.media-numbers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.media-num {
  padding: 28px 24px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}
.media-num::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--red);
}
.media-num .v {
  font-family: "Anton", sans-serif;
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.media-num .l {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.media-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.media-card {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  transition: all 220ms;
}
.media-card:hover { border-color: var(--red); transform: translateX(4px); }
.media-card .thumb {
  width: 90px; height: 70px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}
.media-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.media-card .thumb::after {
  content: "";
  position: absolute; inset: 0;
  border: 1px solid var(--line-2);
}
.media-card .info { flex: 1; }
.media-card .src {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}
.media-card h4 {
  font-family: "Anton", sans-serif;
  font-size: 22px;
  letter-spacing: 0.01em;
  font-weight: 400;
}

/* ---------- TEAM ---------- */
.team {
  padding: 140px 0;
  border-bottom: 1px solid var(--line);
}
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 900px) { .team-grid { grid-template-columns: 1fr; } }
.team-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.team-photos .ph {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.team-photos .ph img { width: 100%; height: 100%; object-fit: cover; }
.team-photos .ph.tall { aspect-ratio: 4/5; grid-row: span 2; }

.team h2 { font-size: clamp(40px, 6vw, 78px); margin-bottom: 28px; }
.team h2 .red { color: var(--red); }
.team-body { color: var(--fg-mute); font-size: 17px; line-height: 1.65; }
.team-body strong { color: var(--fg); font-weight: 600; }
.team-body p + p { margin-top: 16px; }

.team-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 32px;
}
.team-pillars > div {
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.team-pillars > div .n {
  font-family: "Anton", sans-serif;
  font-size: 22px;
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.team-pillars > div .d {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

/* ---------- AGENDA ---------- */
.agenda {
  padding: 140px 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.agenda-list {
  display: flex;
  flex-direction: column;
}
.race {
  display: grid;
  grid-template-columns: 100px 1fr auto auto;
  gap: 24px;
  align-items: center;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
  transition: all 240ms var(--ease);
  position: relative;
}
.race:last-child { border-bottom: 1px solid var(--line); }
.race::before {
  content: "";
  position: absolute;
  left: -20px; top: 0;
  width: 3px; height: 100%;
  background: var(--red);
  transform: scaleY(0);
  transition: transform 280ms var(--ease);
  transform-origin: bottom;
}
.race:hover::before { transform: scaleY(1); transform-origin: top; }
.race:hover { padding-left: 20px; }
.race:hover .name { color: var(--red); }
.race .idx {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: var(--fg-dim);
  letter-spacing: 0.12em;
}
.race .name {
  font-family: "Anton", sans-serif;
  font-size: clamp(28px, 3.4vw, 44px);
  letter-spacing: 0.01em;
  transition: color 220ms;
}
.race .date {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.race .arrow {
  font-family: "JetBrains Mono", monospace;
  color: var(--red);
  font-size: 20px;
  transition: transform 240ms;
}
.race:hover .arrow { transform: translateX(8px); }
@media (max-width: 720px) {
  .race { grid-template-columns: 60px 1fr; gap: 12px; }
  .race .date, .race .arrow { grid-column: 2; }
}

.agenda-extras {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 720px) { .agenda-extras { grid-template-columns: 1fr 1fr; } }
.agenda-extras > div {
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 22px 20px;
}
.agenda-extras > div .e {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.agenda-extras > div .t {
  font-family: "Anton", sans-serif;
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: 0.005em;
}

/* ---------- PARTNERS ---------- */
.partners {
  padding: 100px 0 120px;
  border-bottom: 1px solid var(--line);
}
.partner-marquee {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}
.partner-marquee .row {
  display: flex;
  gap: 64px;
  white-space: nowrap;
  animation: scrollx 32s linear infinite;
}
.partner-marquee .row .p {
  font-family: "Anton", sans-serif;
  font-size: 36px;
  letter-spacing: 0.04em;
  color: var(--fg-mute);
  transition: color 220ms;
  cursor: default;
}
.partner-marquee .row .p:hover { color: var(--fg); }
.partner-marquee::before,
.partner-marquee::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.partner-marquee::before { left: 0; background: linear-gradient(90deg, var(--bg) 0%, transparent 100%); }
.partner-marquee::after  { right: 0; background: linear-gradient(-90deg, var(--bg) 0%, transparent 100%); }

/* ---------- CONTACT ---------- */
.contact {
  padding: 140px 0 80px;
  background:
    radial-gradient(ellipse 50% 60% at 50% 0%, rgba(225, 6, 0, 0.1), transparent 70%),
    var(--bg);
}
.contact-inner {
  text-align: center;
  max-width: 940px;
  margin: 0 auto;
}
.contact h2 {
  font-size: clamp(56px, 10vw, 138px);
  margin-bottom: 30px;
}
.contact h2 .red { color: var(--red); }
.contact .sub {
  color: var(--fg-mute);
  font-size: 18px;
  max-width: 580px;
  margin: 0 auto 56px;
}
.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  text-align: left;
  margin-bottom: 40px;
}
@media (max-width: 700px) { .contact-cards { grid-template-columns: 1fr; } }
.contact-card {
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  transition: all 240ms var(--ease);
  display: block;
}
.contact-card:hover { border-color: var(--red); background: rgba(225, 6, 0, 0.04); }
.contact-card .role {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.contact-card .nm {
  font-family: "Anton", sans-serif;
  font-size: 32px;
  margin-bottom: 16px;
}
.contact-card .info {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: var(--fg-mute);
  line-height: 1.8;
  word-break: break-word;
}
.contact-card .info b { color: var(--fg); font-weight: 400; }

footer {
  padding: 40px 0 30px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
footer span { color: var(--fg-mute); }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"] { transition-delay: 320ms; }
.reveal[data-delay="5"] { transition-delay: 400ms; }

.reveal-clip {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}
.reveal-clip > span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 900ms var(--ease);
}
.in .reveal-clip > span,
.reveal-clip.in > span { transform: none; }
