:root {
  --text-main: #f5f5f5;
  --text-soft: #cecece;
  --line: rgba(255, 255, 255, 0.18);
  --panel: rgba(0, 0, 0, 0.55);
  --chip: rgba(255, 255, 255, 0.08);
  --accent: #ffd49c;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--text-main);
  background:
    linear-gradient(145deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.5)),
    url("image/background.jpg") center/cover fixed no-repeat;
}

.page-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 80% 16%, rgba(255, 186, 101, 0.22), transparent 37%),
    radial-gradient(circle at 12% 88%, rgba(255, 255, 255, 0.08), transparent 35%);
}

.topbar {
  position: sticky;
  top: 0.8rem;
  z-index: 6;
  width: min(96vw, 1320px);
  margin: 0.8rem auto 0;
  padding: 0.65rem 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text-main);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.74rem;
  font-weight: 700;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  object-fit: cover;
}

.nav-links {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  color: var(--text-main);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.64rem;
  font-weight: 700;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.45rem 0.72rem;
}

.nav-links a:hover,
.nav-links a.is-active {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
}

.team-page {
  width: min(96vw, 1320px);
  margin: 1rem auto 2rem;
  position: relative;
  z-index: 2;
}

.team-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.hero-copy,
.hero-feature,
.team-wall {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
}

.hero-copy {
  padding: 1.2rem;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.65rem;
  color: var(--text-soft);
}

h1 {
  margin: 0.55rem 0 0;
  font-family: "Bebas Neue", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: clamp(2.3rem, 5.6vw, 4.6rem);
  line-height: 0.9;
}

.hero-copy p {
  color: var(--text-soft);
  line-height: 1.6;
  margin-top: 0.8rem;
}

.hero-chips {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.hero-chips span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--chip);
  padding: 0.45rem 0.65rem;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-feature {
  position: relative;
  overflow: hidden;
  min-height: 360px;
}

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

.hero-feature-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), transparent);
}

.hero-feature-overlay p {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.06em;
  font-size: 1.6rem;
}

.hero-feature-overlay span {
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.66rem;
}

.team-wall {
  padding: 1rem;
}

.wall-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  margin-bottom: 0.8rem;
}

.wall-head h2 {
  margin: 0;
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 0.12em;
}

.wall-head p {
  margin: 0;
  color: var(--accent);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.rider-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transform: translateY(10px);
  opacity: 0;
  animation: cardIn 0.65s ease-out forwards;
}

.rider-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  background: rgba(0, 0, 0, 0.45);
}

.rider-meta {
  position: static;
  padding: 0.65rem;
  background: rgba(0, 0, 0, 0.72);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.rider-meta h3 {
  margin: 0;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.rider-meta p {
  margin: 0.22rem 0 0;
  font-size: 0.63rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.rider-card:hover img {
  transform: none;
  transition: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(0, 0, 0, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-figure {
  margin: 0;
  max-width: min(95vw, 900px);
}

.lightbox-figure img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.lightbox-figure figcaption {
  margin-top: 0.6rem;
  text-align: center;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
}

.lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
}

@keyframes cardIn {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 950px) {
  .team-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .topbar {
    top: 0.5rem;
    padding: 0.55rem 0.6rem;
    flex-direction: column;
    align-items: stretch;
  }

  .brand {
    justify-content: center;
  }

  .nav-links {
    justify-content: center;
  }

  .wall-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

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