/* ATVARMOR Racing Team — page template styles
   Scope: .rt-page wrapper only */

@font-face {
  font-family: 'SouthGhetto';
  src: url('../fonts/SOUTHGHETTO.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cannonade';
  src: url('../fonts/Cannonade.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cannonade';
  src: url('../fonts/Cannonade-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Pitagon Sans Mono';
  src: url('../fonts/PitagonSansMono-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Pitagon Sans Mono';
  src: url('../fonts/PitagonSansMono-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

.rt-page {
  --rt-bg: #121314;
  --rt-bg-card: #1f1e1d;
  --rt-bg-table: #212121;
  --rt-bg-tab: #232323;
  --rt-text: #e0dad0;
  --rt-text-light: #f9f4f0;
  --rt-text-muted: #a7a7a7;
  --rt-text-dim: #949493;
  --rt-text-faded: #585856;
  --rt-accent: #ff6262;
  --rt-accent-dark: #121314;
  --rt-border: #7a7a7a;
  --rt-border-light: #e0dad0;
  --rt-container: 1190px;
  --rt-gutter: clamp(20px, 8.7vw, 125px);
  --rt-font-display: 'SouthGhetto', sans-serif;
  --rt-font-body: 'Cannonade', sans-serif;
  --rt-font-mono: 'Pitagon Sans Mono', monospace;
  --rt-heading-gradient: linear-gradient(135deg, #fffaf0 0%, #dfd9cf 50%, #beb8af 100%);

  background: var(--rt-bg);
  color: var(--rt-text);
  font-family: var(--rt-font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.rt-page *,
.rt-page *::before,
.rt-page *::after {
  box-sizing: border-box;
}

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

.rt-page a {
  color: inherit;
  text-decoration: none;
}

.rt-page strong,
.rt-page b {
  font-weight: 700;
}

.rt-container {
  width: min(var(--rt-container), calc(100% - 2 * var(--rt-gutter)));
  max-width: 100%;
  margin-inline: auto;
}

/* Typography */
.rt-heading {
  font-family: var(--rt-font-display);
  font-size: clamp(42px, 5.2vw, 75px);
  line-height: 0.95;
  text-transform: uppercase;
  background: var(--rt-heading-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.02em;
}

.rt-heading--results {
  font-size: clamp(32px, 4vw, 56px);
}

.rt-heading-wrap {
  position: relative;
  padding-top: 54px;
  margin-bottom: 48px;
}

.rt-heading-wrap--inline {
  margin-bottom: 0;
}

.rt-heading-wrap--sub {
  padding-top: 44px;
}

.rt-heading-pointer {
  position: absolute;
  top: 0;
  left: 0;
  width: 46px;
  height: auto;
}

.rt-heading-pointer--sm {
  width: 36px;
}

.rt-subheading {
  font-family: var(--rt-font-display);
  font-size: clamp(36px, 4vw, 75px);
  line-height: 1;
  text-transform: uppercase;
  background: var(--rt-heading-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.rt-mono {
  font-family: var(--rt-font-mono);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Buttons */
.rt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 24px;
  min-height: 34px;
  border: none;
  border-radius: 15px;
  background: var(--rt-accent);
  color: #000;
  font-family: var(--rt-font-body);
  font-size: 20px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, filter 0.2s;
  position: relative;
}

.rt-btn::before {
  content: '';
  position: absolute;
  left: -2px;
  top: -2px;
  width: 2px;
  height: calc(100% + 4px);
  background: #000;
}

.rt-btn:hover {
  background: #121314;
  color: #FF6262;
  filter: none;
}

.rt-btn--sm {
  min-height: 23px;
  padding: 4px 16px;
  font-size: 14px;
  border-radius: 12px;
  font-family: var(--rt-font-mono);
  text-transform: uppercase;
  letter-spacing: -0.04em;
}

.rt-btn--email {
  min-height: 36px;
  padding: 8px 20px;
  font-size: clamp(16px, 2vw, 24px);
  width: 100%;
  max-width: 295px;
}

.rt-btn--email::after {
  content: '↗';
  font-size: 18px;
  line-height: 1;
  transform: translateY(5px) rotate(45deg);
}

/* Section spacing */
.rt-section {
  padding-block: clamp(60px, 8vw, 100px);
  position: relative;
  max-width: 100%;
  overflow-x: clip;
}

/* Scroll reveal */
@media (prefers-reduced-motion: no-preference) {
  .rt-reveal {
    opacity: 0;
    transform: translate3d(0, 16px, 0);
    filter: blur(3px);
    transition:
      opacity 1.15s cubic-bezier(0.16, 1, 0.3, 1),
      transform 1.15s cubic-bezier(0.16, 1, 0.3, 1),
      filter 1.15s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--rt-reveal-delay, 0ms);
    will-change: opacity, transform, filter;
  }

  .rt-reveal--media {
    transform: translate3d(0, 22px, 0) scale(0.985);
  }

  .rt-reveal.is-visible {
    opacity: 1;
    transform: none;
    filter: none;
    will-change: auto;
  }
}

/* ========== HERO ZONE ========== */
.rt-hero-zone {
  position: relative;
  overflow-x: clip;
  max-width: 100%;
}

/* ========== HERO VIDEO ========== */
.rt-hero-video {
  position: relative;
  min-height: clamp(600px, 90vh, 800px);
  padding-block: clamp(40px, 6vw, 80px) clamp(80px, 12vw, 140px);
  overflow: hidden;
}

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

.rt-hero-video__media video,
.rt-hero-video__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rt-hero-video__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18, 19, 20, 0.92) 0%, rgba(18, 19, 20, 0.55) 55%, rgba(18, 19, 20, 0.35) 100%);
  pointer-events: none;
}

.rt-hero-video__fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(45%, 320px);
  background: linear-gradient(to bottom, rgba(18, 19, 20, 0) 0%, rgba(18, 19, 20, 0.65) 45%, var(--rt-bg) 100%);
  pointer-events: none;
}

.rt-hero-video__inner {
  position: relative;
  z-index: 1;
  min-height: clamp(480px, 70vh, 680px);
  display: flex;
  align-items: flex-end;
}

.rt-hero-video__logo {
  width: min(251px, 60vw);
  margin-bottom: 24px;
}

.rt-hero-video__title {
  max-width: 925px;
  margin-bottom: 24px;
}

.rt-hero-video__lead {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.3;
  max-width: 625px;
  margin-bottom: 32px;
}

.rt-hero-awards {
  position: relative;
  z-index: 2;
  width: min(514px, 88vw);
  aspect-ratio: 514 / 571;
  height: auto;
  margin: -24px auto 0;
  pointer-events: none;
}

.rt-hero-awards__circle {
  position: absolute;
  left: 22.75%;
  top: 18.56%;
  width: 68.09%;
  transform: scaleY(-1);
  opacity: 0.35;
}

.rt-hero-awards__main {
  position: absolute;
  top: 0;
  left: 37.16%;
  width: 40.47%;
  text-align: center;
  z-index: 2;
}

.rt-hero-awards__main img {
  width: 100%;
  height: auto;
}

.rt-hero-awards__side {
  position: absolute;
  z-index: 1;
}

.rt-hero-awards__side img {
  width: 100%;
  height: auto;
  display: block;
}

.rt-hero-awards__side--left {
  left: 0;
  top: 50.79%;
  width: 42.8%;
}

.rt-hero-awards__side--right {
  left: 67.32%;
  top: 60.07%;
  width: 32.68%;
}

.rt-hero-awards__label {
  text-align: center;
  font-family: var(--rt-font-mono);
  font-size: clamp(12px, 1.2vw, 16px);
  text-transform: uppercase;
  margin-top: 8px;
  line-height: 1.25;
}

@media (min-width: 992px) {
  .rt-hero-awards {
    position: absolute;
    right: var(--rt-gutter);
    top: 600px;
    width: min(514px, 36vw);
    max-width: calc(100vw - var(--rt-gutter) * 2 - 640px);
    margin: 0;
  }

  .rt-hero-intro .rt-container {
    padding-right: min(380px, 32vw);
  }
}

/* ========== HERO INTRO ========== */
.rt-hero-intro {
  background: var(--rt-bg);
  padding-block: clamp(32px, 5vw, 64px) clamp(48px, 7vw, 80px);
  margin-top: -1px;
}

.rt-hero-intro__text {
  max-width: min(720px, 100%);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.35;
  color: var(--rt-text);
}

.rt-hero-intro__text p {
  margin: 0 0 1.25em;
}

.rt-hero-intro__text p:last-child {
  margin-bottom: 0;
}

/* ========== RESULTS TABLE ========== */
.rt-results {
  overflow: hidden;
}

.rt-results::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/optimized/background-tri-pattern-transp.webp') center top / cover no-repeat;
  opacity: 0.35;
  pointer-events: none;
  mix-blend-mode: soft-light;
}

.rt-results > .rt-container {
  position: relative;
  z-index: 1;
}

.rt-table__th-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.rt-table__icon {
  display: block;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.rt-results__header {
  display: grid;
  gap: 32px;
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  .rt-results__header {
    grid-template-columns: 1fr 510px;
    align-items: start;
  }

  .rt-results__header .rt-race-meta {
    grid-column: 1 / -1;
    text-align: right;
  }

  .rt-results__header .rt-race-meta__details {
    justify-content: flex-end;
  }

  .rt-results__header .rt-heading-wrap {
    margin-bottom: 0;
  }

  .rt-results__header .rt-heading {
    margin-bottom: 0;
  }
}

.rt-race-card {
  border-radius: 7px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 510 / 234;
  margin: 0;
}

.rt-race-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rt-race-card__blur {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: min(184px, 36%);
  background: linear-gradient(90deg, rgba(18, 19, 20, 0.72) 0%, rgba(18, 19, 20, 0.35) 55%, transparent 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  mask-image: linear-gradient(90deg, #000 0%, #000 45%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.rt-race-card__circle {
  position: absolute;
  left: max(-40px, 8%);
  top: 50%;
  transform: translateY(-50%);
  width: min(350px, 70%);
  height: auto;
  opacity: 0.85;
  pointer-events: none;
  z-index: 1;
}

.rt-race-meta {
  margin-top: 0;
  display: none; /* temporarily hidden */
}

.rt-race-meta__series {
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 12px;
}

.rt-race-meta__details {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px 16px;
  font-family: var(--rt-font-mono);
  font-size: clamp(14px, 1.5vw, 20px);
  text-transform: uppercase;
}

.rt-race-meta__details span:not(:last-child)::after {
  content: '·';
  margin-left: 16px;
  opacity: 0.6;
}

.rt-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

.rt-table {
  width: 100%;
  min-width: 800px;
  border-collapse: collapse;
}

.rt-table thead th {
  background: var(--rt-bg-table);
  padding: 18px 16px;
  font-family: var(--rt-font-mono);
  font-size: clamp(14px, 1.5vw, 20px);
  font-weight: 500;
  text-transform: uppercase;
  text-align: left;
  color: #E0DAD0;
  border-top: 1px solid rgba(224, 218, 208, 0.15);
  border-bottom: 1px solid rgba(224, 218, 208, 0.15);
}

.rt-table tbody tr {
  border-bottom: 2px solid #585856;
}

.rt-table tbody td {
  padding: 24px 16px;
  vertical-align: middle;
  font-size: 18px;
}

.rt-table .rt-mono {
  font-size: 18px;
}

.rt-crew {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rt-crew-member {
  display: flex;
  align-items: center;
  gap: 16px;
}

.rt-crew-member__avatar {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  border: 1px solid #a1a1a1;
  overflow: hidden;
  flex-shrink: 0;
  background: radial-gradient(circle at 50% 40%, #FFFAEF 0%, #BEB8AF 100%);
}

.rt-crew-member__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rt-crew-member__name {
  font-weight: 600;
  font-size: 20px;
  line-height: 1.2;
}

.rt-crew-member__role {
  font-family: var(--rt-font-mono);
  font-size: 14px;
  color: var(--rt-text-muted);
  text-transform: uppercase;
}

.rt-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 6px 16px;
  border-radius: 15px;
  font-family: var(--rt-font-mono);
  font-size: 18px;
  text-transform: uppercase;
}

.rt-badge--filled {
  background: var(--rt-heading-gradient);
  color: var(--rt-accent-dark);
}

.rt-badge--outline {
  border: 1px solid var(--rt-border-light);
  color: var(--rt-border-light);
}

/* ========== TEAM CARDS ========== */
.rt-team-section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.rt-slider-nav {
  display: flex;
  align-items: center;
  border: 1px solid var(--rt-border);
  border-radius: 12px;
  background: #2f2f2f;
  overflow: hidden;
}

.rt-slider-nav button {
  background: none;
  border: none;
  color: var(--rt-text);
  width: 44px;
  height: 34px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s;
}

.rt-slider-nav button img {
  width: 8px;
  height: 14px;
  display: block;
  pointer-events: none;
}

.rt-slider-nav button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.rt-slider-nav button + button {
  border-left: 1px solid var(--rt-border);
}

@media (min-width: 992px) {
  .rt-slider-nav--hide-desktop {
    display: none;
  }
}

.rt-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(16px, 3vw, 34px);
  margin-top: 40px;
}

.rt-cards-slider,
.rt-news__slider {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: clamp(10px, 2vw, 20px);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  padding-bottom: 8px;
  margin-top: 40px;
  max-width: 100%;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.rt-cards-slider::-webkit-scrollbar,
.rt-news__slider::-webkit-scrollbar {
  display: none;
  height: 0;
}

@media (min-width: 992px) {
  .rt-team-section--pilots .rt-slider-nav--mobile,
  .rt-team-section--pilots .rt-pilots-slider--mobile {
    display: none;
  }

  .rt-team-section--pilots .rt-pilots-featured {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(16px, 3vw, 34px);
    margin-top: 40px;
  }

  .rt-team-section--pilots .rt-pilots-featured .rt-card {
    flex: none;
    width: auto;
  }

  .rt-team-section--pilots .rt-pilots-slider--desktop {
    display: grid;
    margin-top: clamp(16px, 3vw, 34px);
  }

  .rt-team-section--pilots .rt-pilots-slider--desktop .rt-cards-slider {
    margin-top: 0;
  }

  .rt-team-section--pilots .rt-slider-nav--bottom {
    display: flex;
    justify-content: flex-end;
    justify-self: end;
    margin-top: 16px;
  }
}

@media (max-width: 991px) {
  .rt-team-section--pilots .rt-pilots-featured,
  .rt-team-section--pilots .rt-pilots-slider--desktop {
    display: none;
  }

  .rt-team-section:not(.rt-news) .rt-slider-nav {
    display: none;
  }
}

.rt-card {
  flex: 0 0 min(272px, 85vw);
  scroll-snap-align: start;
  border-radius: 7px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(180deg, #898885 0%, #484744 100%);
  aspect-ratio: 272 / 428;
  min-height: 428px;
}

.rt-card__photo {
  position: absolute;
  left: 4px;
  top: 4px;
  right: 4px;
  height: calc(100% - 56px);
  border-radius: 3px;
  overflow: hidden;
  background: url('../images/optimized/texture.webp') center / cover no-repeat;
}

.rt-card__photo > img:first-of-type {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rt-card__blur {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42%;
  background: linear-gradient(to top, rgba(18, 19, 20, 0.92) 0%, rgba(18, 19, 20, 0.45) 55%, transparent 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  mask-image: linear-gradient(to top, #000 0%, #000 40%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.rt-card__mark {
  position: absolute;
  top: 26px;
  left: 22px;
  width: 32px;
  height: auto;
  z-index: 2;
  pointer-events: none;
  opacity: 0.9;
}

.rt-card__logo {
  position: absolute;
  right: 14px;
  bottom: 15px;
  width: 54px;
  height: auto;
  z-index: 2;
  pointer-events: none;
}

.rt-card__name {
  position: absolute;
  left: 18px;
  bottom: 15px;
  z-index: 2;
  max-width: 58%;
  font-size: 20px;
  line-height: 1.05;
}

.rt-card__name strong {
  display: block;
  font-weight: 700;
  color: #f9f4f0;
}

.rt-card__name span {
  display: block;
  color: #f9f4f0;
  font-weight: 500;
}

.rt-card__role {
  position: absolute;
  left: 23px;
  right: 23px;
  bottom: 16px;
  z-index: 2;
  font-family: var(--rt-font-mono);
  font-size: 16px;
  text-transform: uppercase;
  text-align: right;
  color: var(--rt-text);
  line-height: 1;
}

/* ========== ALPHA RACE / SUPER SERIES ========== */
.rt-alpha {
  overflow: hidden;
  padding-bottom: 0;
}

.rt-alpha::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/optimized/background-geo-lines-transp.webp') center / cover no-repeat;
  opacity: 0.45;
  pointer-events: none;
  mix-blend-mode: overlay;
}

.rt-alpha > .rt-container {
  position: relative;
  z-index: 1;
}

.rt-alpha__intro {
  display: grid;
  gap: 40px;
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  .rt-alpha__intro {
    grid-template-columns: 1fr 226px;
    align-items: start;
  }
}

.rt-alpha__logos {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

.rt-alpha__logos img {
  max-width: 226px;
}

.rt-alpha__text {
  font-size: 20px;
  line-height: 1.35;
  max-width: 739px;
}

.rt-alpha__text strong {
  font-weight: 700;
}

.rt-schedule-table-wrap {
  margin-bottom: 48px;
  max-width: 100%;
}

.rt-schedule-table {
  width: 100%;
  margin-bottom: 0;
}

.rt-schedule-table thead th {
  font-family: var(--rt-font-mono);
  font-size: 20px;
  text-transform: uppercase;
  font-weight: 400;
  padding: 0 0 20px;
  text-align: left;
  color: #fff;
  border-bottom: 1px solid rgba(224, 218, 208, 0.2);
}

.rt-schedule-table tbody td {
  padding: 20px 16px 20px 0;
  font-size: 20px;
  border-bottom: 1px solid rgba(224, 218, 208, 0.08);
  vertical-align: middle;
}

.rt-schedule-table .rt-mono {
  font-size: 18px;
}

@media (max-width: 767px) {
  .rt-schedule-table-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
  }

  .rt-schedule-table {
    min-width: 640px;
  }
}

.rt-categories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px 32px;
}

@media (max-width: 767px) {
  .rt-categories {
    grid-template-columns: 1fr;
  }
}

.rt-category__title-wrap {
  position: relative;
  padding-top: 44px;
  margin-bottom: 16px;
}

.rt-category__title {
  font-family: var(--rt-font-display);
  font-size: clamp(48px, 6vw, 75px);
  line-height: 1;
  text-transform: uppercase;
  background: var(--rt-heading-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.rt-category__desc {
  font-family: var(--rt-font-mono);
  font-size: 18px;
  line-height: 1.35;
  text-transform: uppercase;
}

.rt-alpha__divider {
  display: block;
  width: 100%;
  height: 32px;
  margin-top: 64px;
  object-fit: fill;
}

@media (max-width: 767px) {
  .rt-alpha__divider {
    height: 28px;
    margin-top: 48px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .rt-alpha__divider {
    height: 16px;
  }
}

/* ========== STATS ========== */
.rt-stats {
  overflow: hidden;
}

.rt-stats__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.rt-year-picker {
  display: flex;
  gap: 40px;
  align-items: flex-end;
  min-height: 56px;
}

.rt-year-picker button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  font-family: var(--rt-font-mono);
  font-size: 20px;
  line-height: 1;
  text-transform: uppercase;
  color: var(--rt-text-faded);
  cursor: pointer;
  padding: 0;
  min-width: 50px;
}

.rt-year-picker button:not(.is-active) {
  transform: translateY(7px);
}

.rt-year-picker button.is-active {
  color: var(--rt-text);
}

.rt-year-picker__mark {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.rt-year-picker__label {
  display: block;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(224, 218, 208, 0.35);
}

.rt-year-picker button.is-active .rt-year-picker__label {
  border-bottom-color: var(--rt-text);
}

.rt-stats-table {
  min-width: 0;
}

.rt-stats-board {
  display: flex;
  align-items: flex-start;
  gap: 0;
  min-width: 0;
}

.rt-stats-lead {
  flex: 0 0 278px;
  min-width: 0;
}

.rt-stats-lead__head {
  position: relative;
  min-height: 146px;
  background: #222;
  overflow: hidden;
}

.rt-stats-table__helmet {
  position: absolute;
  left: 30px;
  top: 0;
  width: 187px;
  height: 146px;
  object-fit: contain;
  pointer-events: none;
}

.rt-stats-stages-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}

.rt-stats-stages {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.rt-stats-stages-wrap:has(.rt-stats-table__nav) .rt-stats-stages {
  width: calc(100% - 69px);
}

.rt-stats-stages::-webkit-scrollbar {
  display: none;
}

.rt-stats-table__nav {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  width: 69px;
  height: 146px;
  background: #222;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  box-sizing: border-box;
  pointer-events: auto;
}

.rt-stats-table__nav button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--rt-text);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  transition: background 0.2s;
}

.rt-stats-table__nav button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.rt-stats-table__nav button + button {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.rt-stats-stage-col {
  flex: 0 0 200px;
  scroll-snap-align: start;
  min-width: 0;
}

.rt-stats-race {
  min-height: 146px;
  padding: 16px 12px;
  text-align: center;
  box-sizing: border-box;
  background: #222;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.rt-stats-stage-col .rt-stats-block,
.rt-stats-lead .rt-stats-block {
  margin-top: 20px;
}

.rt-stats-stage-col .rt-stats-block:last-child,
.rt-stats-lead .rt-stats-block:last-child {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .rt-stats-table {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .rt-stats-table::-webkit-scrollbar {
    display: none;
  }

  .rt-stats-board {
    flex-direction: row;
    align-items: flex-start;
    width: max-content;
    min-width: 100%;
  }

  .rt-stats-lead {
    flex: 0 0 240px;
    width: 240px;
  }

  .rt-stats-stages-wrap {
    flex: 0 0 auto;
    display: block;
    width: auto;
  }

  .rt-stats-stages {
    overflow: visible;
    width: max-content;
  }

  .rt-stats-stages-wrap:has(.rt-stats-table__nav) .rt-stats-stages {
    width: max-content;
  }

  .rt-stats-stage-col {
    flex: 0 0 200px;
  }

  .rt-stats-table__nav {
    display: none;
  }
}

.rt-stats-race img {
  height: 52px;
  margin: 0 auto 12px;
  object-fit: contain;
}

.rt-stats-race__meta {
  font-family: var(--rt-font-mono);
  font-size: 12px;
  text-transform: uppercase;
  color: var(--rt-text-muted);
  line-height: 1.4;
}

.rt-stats-block {
  margin-bottom: 32px;
}

.rt-stats-block__tab {
  display: inline-block;
  background: var(--rt-bg-tab);
  padding: 6px 20px;
  border-radius: 15px;
  font-family: var(--rt-font-mono);
  font-size: 18px;
  text-transform: uppercase;
  color: var(--rt-text-muted);
  margin-bottom: 20px;
}

.rt-stats-block__tab--spacer {
  visibility: hidden;
}

.rt-stats-row--results-only {
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

@media (max-width: 767px) {
  .rt-stats-row--results-only {
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
  }

  .rt-stats-row--results-only .rt-badge {
    font-size: 14px;
    min-width: 0;
    padding: 4px 12px;
  }

  .rt-stats-row--results-only .rt-stats-row__points {
    font-size: 14px;
    min-width: 0;
    text-align: right;
  }
}

.rt-stats-row {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 88px;
  min-height: 88px;
  padding: 0;
  border-bottom: 1px solid rgba(224, 218, 208, 0.08);
  box-sizing: border-box;
}

.rt-stats-row__avatar {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: radial-gradient(circle at 50% 40%, #FFFAEF 0%, #BEB8AF 100%);
}

.rt-stats-row__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rt-stats-row__info {
  flex: 1;
  min-width: 0;
}

.rt-stats-row__info strong {
  display: block;
  font-size: 20px;
  font-weight: 700;
}

.rt-stats-row__points {
  color: var(--rt-text-muted);
  min-width: 70px;
}

.rt-stats-row__info span {
  font-size: 20px;
  color: var(--rt-text-dim);
}

@media (max-width: 767px) {
  .rt-stats-row__info strong,
  .rt-stats-row__info span {
    font-size: 16px;
  }
}

/* ========== NEWS ========== */
.rt-news__slider {
  margin-top: 40px;
}

.rt-news__slider .rt-news-card {
  flex: 0 0 min(380px, 85vw);
  scroll-snap-align: start;
}

.rt-news__empty {
  font-family: var(--rt-font-mono);
  font-size: 16px;
  color: var(--rt-text-muted);
  padding: 24px 0;
}

.rt-news-card {
  background: var(--rt-bg-card);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.rt-news-card__image {
  display: block;
  aspect-ratio: 380 / 132;
  overflow: hidden;
}

.rt-news-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rt-news-card__title {
  padding: 16px 12px;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  color: var(--rt-text-light);
  min-height: 96px;
}

.rt-news-card__title a {
  color: inherit;
  text-decoration: none;
}

.rt-news-card__title a:hover {
  color: var(--rt-accent);
}

.rt-news-card__excerpt {
  padding: 0 12px 16px;
  font-family: var(--rt-font-mono);
  font-size: 16px;
  line-height: 1.4;
  flex: 1;
}

.rt-news-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 12px 16px;
  font-family: var(--rt-font-mono);
  font-size: 16px;
}

.rt-news-card__link {
  text-decoration: underline;
}

/* ========== TEAM CTA ========== */
.rt-cta.rt-section {
  position: relative;
  padding-block: 0 clamp(60px, 8vw, 100px);
  overflow: hidden;
}

.rt-cta__media {
  position: absolute;
  top: -180px;
  left: 0;
  right: 0;
  height: min(780px, 88vh);
  z-index: 0;
  overflow: hidden;
}

.rt-cta__media video,
.rt-cta__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 18%;
}

.rt-cta__media-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 19, 20, 0.92) 0%, rgba(18, 19, 20, 0.65) 30%, rgba(18, 19, 20, 0.2) 58%, transparent 100%),
    linear-gradient(180deg, transparent 0%, transparent 66.67%, rgba(18, 19, 20, 0.35) 85%, rgba(18, 19, 20, 0.92) 100%);
  pointer-events: none;
}

.rt-cta__layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 402px);
  grid-template-areas:
    "header patch"
    "lead   patch"
    "benefits benefits"
    ".      mail";
  column-gap: clamp(24px, 4vw, 63px);
  row-gap: clamp(32px, 4vw, 48px);
  padding-top: clamp(264px, 33vw, 420px);
}

.rt-cta__header {
  grid-area: header;
  min-height: clamp(140px, 18vw, 226px);
  display: flex;
  align-items: flex-end;
}

.rt-cta__header-main {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: clamp(16px, 4vw, 48px);
  max-width: 568px;
}

.rt-cta__header-main .rt-heading-wrap {
  margin-bottom: 0;
}

.rt-cta__logo-m {
  width: 127px;
  flex-shrink: 0;
  margin-bottom: 6px;
}

.rt-cta__patch {
  grid-area: patch;
  margin: 0;
  width: 100%;
  max-width: 402px;
  justify-self: end;
  align-self: start;
  margin-top: clamp(12px, 2vw, 40px);
}

.rt-cta__patch img {
  width: 100%;
  height: auto;
}

.rt-cta__lead {
  grid-area: lead;
  max-width: 583px;
  font-size: 20px;
  line-height: 1.35;
}

.rt-cta__lead p {
  margin: 0 0 1.25em;
}

.rt-cta__lead p:last-child {
  margin-bottom: 0;
}

.rt-cta__lead a {
  text-decoration: underline;
}

.rt-cta__benefits {
  grid-area: benefits;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 188px));
  gap: clamp(16px, 4vw, 63px);
}

.rt-benefit {
  position: relative;
  min-height: 174px;
  padding: 24px 16px;
  border: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--rt-font-mono);
  font-size: 18px;
  line-height: 1.22;
  text-transform: uppercase;
  background:
    url('../vectors/benefit-frame.svg') center / 100% 100% no-repeat;
}

.rt-cta__mail {
  grid-area: mail;
  width: 100%;
  max-width: none;
  justify-self: stretch;
  min-width: 0;
}

@media (min-width: 992px) {
  .rt-cta__layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "header patch"
      "lead   patch"
      "benefits benefits"
      ".      mail";
  }

  .rt-cta__patch {
    justify-self: end;
  }

  .rt-cta__mail {
    width: 100%;
  }

  .rt-cta__mail .rt-subheading {
    font-size: clamp(36px, 3.2vw, 56px);
  }
}

.rt-mail-block__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 32px;
  margin-top: 24px;
}

.rt-mail-block__lead {
  flex: 1 1 280px;
  font-size: 20px;
  line-height: 1.3;
  margin: 0;
}

.rt-cta__mail .rt-btn--email {
  flex: 0 0 min(295px, 100%);
}

@media (max-width: 1199px) {
  .rt-cta__layout {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 340px);
    grid-template-areas:
      "header patch"
      "lead   patch"
      "benefits benefits"
      "mail mail";
  }

  .rt-cta__benefits {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}

@media (max-width: 767px) {
  .rt-cta__layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "header"
      "patch"
      "lead"
      "benefits"
      "mail";
    padding-top: clamp(192px, 54vw, 288px);
  }

  .rt-cta__header {
    min-height: 0;
  }

  .rt-cta__header-main {
    max-width: none;
  }

  .rt-cta__patch {
    justify-self: center;
    margin-top: 0;
  }

  .rt-cta__benefits {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .rt-cta__benefits::-webkit-scrollbar {
    display: none;
  }

  .rt-cta__benefits .rt-benefit {
    flex: 0 0 min(188px, 78vw);
    scroll-snap-align: start;
  }

  .rt-cta__mail {
    justify-self: stretch;
    max-width: none;
  }

  .rt-mail-block__row {
    flex-direction: column;
    align-items: stretch;
  }

  .rt-cta__mail .rt-btn--email {
    width: 100%;
    max-width: none;
  }
}

/* ========== SPACE SCROLL GALLERY ========== */
.rt-worldgrid {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: visible;
  isolation: isolate;
  background: var(--rt-bg);
}

.rt-worldgrid__pin {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: calc(var(--rt-worldgrid-scroll, 3000px) + var(--rt-worldgrid-sticky-h, min(100vw, 100svh)));
}

.rt-worldgrid__sticky {
  position: sticky;
  top: 0;
  width: 100%;
  max-width: 100%;
  height: var(--rt-worldgrid-sticky-h, min(100vw, 100svh));
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 42% at 50% 50%, rgba(36, 38, 42, 0.95) 0%, rgba(18, 19, 20, 0.88) 38%, var(--rt-bg) 100%);
  z-index: 2;
}

.rt-worldgrid__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.rt-worldgrid__stars {
  position: absolute;
  inset: -20%;
  will-change: transform;
  transition: transform 0.08s linear;
  background:
    radial-gradient(1px 1px at 12% 18%, rgba(224, 218, 208, 0.55) 0, transparent 100%),
    radial-gradient(1px 1px at 78% 24%, rgba(224, 218, 208, 0.45) 0, transparent 100%),
    radial-gradient(1.5px 1.5px at 34% 72%, rgba(224, 218, 208, 0.35) 0, transparent 100%),
    radial-gradient(1px 1px at 64% 58%, rgba(224, 218, 208, 0.4) 0, transparent 100%),
    radial-gradient(1px 1px at 22% 44%, rgba(224, 218, 208, 0.3) 0, transparent 100%),
    radial-gradient(1px 1px at 88% 76%, rgba(224, 218, 208, 0.35) 0, transparent 100%),
    radial-gradient(1px 1px at 48% 12%, rgba(224, 218, 208, 0.25) 0, transparent 100%),
    radial-gradient(1px 1px at 8% 82%, rgba(224, 218, 208, 0.3) 0, transparent 100%);
  opacity: 0.7;
}

.rt-worldgrid__bg-ellipse {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(1159px, 120vmin);
  height: auto;
  transform: translate(-50%, -50%);
  will-change: transform;
  opacity: 1;
}

.rt-worldgrid__bg-substract {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(452px, 42vw);
  height: auto;
  transform: translate(-50%, -50%);
  z-index: 1;
  opacity: 0.55;
}

.rt-worldgrid__viewport {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  contain: paint;
  pointer-events: none;
  perspective: 1800px;
  perspective-origin: 50% 46%;
  transform-style: preserve-3d;
}

.rt-spacegallery__photo {
  position: absolute;
  left: 0;
  top: 0;
  margin: 0;
  will-change: transform, opacity;
  opacity: 0;
  pointer-events: none;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.rt-spacegallery__photo.is-clickable {
  cursor: zoom-in;
}

.rt-spacegallery__photo img {
  display: block;
  width: auto;
  height: auto;
  max-width: clamp(200px, 26vw, 420px);
  max-height: clamp(200px, 36vw, 500px);
  border-radius: 4px;
  pointer-events: none;
  transform: perspective(560px) rotateX(calc(var(--rt-photo-bulge, 0) * -3.5deg))
    scale(calc(1 + var(--rt-photo-bulge, 0) * 0.035));
  transform-origin: 50% 55%;
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.55),
    0 calc(10px + var(--rt-photo-bulge, 0) * 22px)
      calc(28px + var(--rt-photo-bulge, 0) * 36px)
      rgba(0, 0, 0, calc(0.28 + var(--rt-photo-bulge, 0) * 0.28)),
    inset 0 1px 0 rgba(255, 255, 255, calc(0.05 + var(--rt-photo-bulge, 0) * 0.16)),
    inset 0 -20px 40px rgba(0, 0, 0, calc(0.06 + var(--rt-photo-bulge, 0) * 0.14));
}

.rt-worldgrid__static {
  display: none;
}

@media (max-width: 767px) {
  .rt-worldgrid__sticky {
    height: 100vh;
    height: 100svh;
  }

  .rt-worldgrid__pin {
    height: calc(var(--rt-worldgrid-scroll, 3000px) + 100vh);
    height: calc(var(--rt-worldgrid-scroll, 3000px) + 100svh);
  }

  .rt-worldgrid__viewport {
    perspective: 1100px;
  }

  .rt-spacegallery__photo img {
    max-width: clamp(168px, 48vw, 300px);
    max-height: clamp(168px, 56vw, 360px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .rt-worldgrid__pin {
    height: auto;
  }

  .rt-worldgrid__sticky {
    position: relative;
    height: auto;
    min-height: 0;
    padding: 48px 0;
  }

  .rt-worldgrid__viewport {
    display: none;
  }

  .rt-worldgrid__static {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 0 var(--rt-gutter);
  }

  .rt-worldgrid__static-photo {
    margin: 0;
  }

  .rt-worldgrid__static-photo {
    cursor: zoom-in;
  }

  .rt-worldgrid__static-photo img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
  }
}

.rt-gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 40px);
}

.rt-gallery-modal[hidden] {
  display: none;
}

.rt-gallery-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 11, 12, 0.92);
  backdrop-filter: blur(8px);
}

.rt-gallery-modal__dialog {
  position: relative;
  z-index: 1;
  max-width: min(1200px, 96vw);
  max-height: 92vh;
  width: fit-content;
  height: fit-content;
  display: block;
}

.rt-gallery-modal__img {
  display: block;
  max-width: min(1200px, 96vw);
  max-height: 92vh;
  width: auto;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65);
}

.rt-gallery-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(10, 11, 12, 0.55);
  color: var(--rt-text);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.rt-gallery-modal__close:hover {
  background: rgba(10, 11, 12, 0.75);
}

body.rt-gallery-modal-open {
  overflow: hidden;
}

/* Join card in pilots section */
.rt-join-card {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.rt-join-card:hover {
  filter: brightness(1.04);
}

.rt-join-card .rt-card__photo {
  height: calc(100% - 8px);
}

.rt-join-card__logo {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 68px;
  z-index: 2;
  pointer-events: none;
}

.rt-join-card__plus {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 0;
  z-index: 2;
  pointer-events: none;
}

.rt-join-card__text {
  position: absolute;
  left: 18px;
  bottom: 52px;
  z-index: 2;
  max-width: 140px;
  margin: 0;
  font-size: 20px;
  line-height: 1.1;
  color: #f9f4f0;
}

.rt-join-card__footer {
  position: absolute;
  right: 23px;
  bottom: 18px;
  z-index: 3;
  display: flex;
  justify-content: flex-end;
}

.rt-stats-table__nav button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.rt-stats-table__nav button img {
  width: 8px;
  height: 14px;
  display: block;
  pointer-events: none;
}

.rt-design-credit {
  padding: 24px var(--rt-gutter) 48px;
  text-align: right;
}

.rt-design-credit a {
  font-family: var(--rt-font-mono);
  font-size: 14px;
  text-transform: uppercase;
  color: var(--rt-text-muted);
  text-decoration: none;
}

.rt-design-credit a:hover {
  color: var(--rt-text);
}
