/* ─────────────────────────────────────────
   RACE THE GLOBE 2026 — Standalone CSS
   ───────────────────────────────────────── */

/* Custom fonts */
@font-face {
  font-family: 'NeueHaas';
  src: url('/static/NeueHaasDisplayBold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Futura';
  src: url('/static/FuturaCyrillicMedium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* Variables */
:root {
  --font-display: 'NeueHaas', 'Jost', sans-serif;
  --font-body:    'Futura', 'DM Sans', sans-serif;
  --font-mono:    'Space Mono', monospace;
  --white: #ffffff;
  --black: #000000;
  --lime: #DCFE52;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); background: #000; color: #fff; }

/* Page wrapper */
.rtg-page {
  background: #000;
  color: #fff;
  min-height: 100vh;
}
img  { max-width: 100%; display: block; }
a    { text-decoration: none; color: inherit; }
button { cursor: pointer; }

/* ── HERO ── */
.rtg2-hero {
  position: relative;
  padding: 40px 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
  background: #000;
}

/* Hero video — contained to hero section only */
.rtg2-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(1.3) contrast(1.1);
  z-index: 0;
}
.rtg2-hero-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(15,17,17,0.50);
}
.rtg2-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--lime);
  max-width: 1100px;
}

/* REVL logo */
.rtg2-revl-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 12px;
}
.rtg2-presents-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #fff;
  margin-top: 6px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.9), 0 2px 20px rgba(0,0,0,0.8);
}
.rtg2-revl-logo {
  height: 76px;
  width: auto;
  display: block;
  opacity: 0.85;
  filter: brightness(0) invert(1);
}

/* Hero stacked copy block */
.rtg2-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  margin-bottom: 40px;
  text-align: center;
}
.rtg2-hero-line {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.6vw, 1.1rem);
  line-height: 1.6;
  color: #fff;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0,0,0,0.9), 0 2px 20px rgba(0,0,0,0.8);
}
.rtg2-hero-line--tagline {
  font-size: clamp(0.85rem, 1.5vw, 1.05rem);
  color: #fff;
  margin-bottom: 4px;
}
.rtg2-hero-line--highlight {
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: clamp(0.75rem, 1.2vw, 0.9rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-top: 6px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.9), 0 2px 20px rgba(0,0,0,0.8);
}

/* RTG logo */
.rtg2-logo-wrap {
  width: 100%;
  max-width: 1100px;
  margin-top: 8px;
  margin-bottom: 20px;
  line-height: 0;
}
.rtg2-logo {
  width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: screen;
  filter: brightness(1.05) contrast(1.15) saturate(1.3);
}

/* Hero tagline / meta lines */
.rtg2-hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.65);
  margin-bottom: 10px;
}
.rtg2-hero-meta {
  font-family: var(--font-mono);
  font-size: clamp(0.75rem, 1.4vw, 0.9rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 40px;
}

/* Divider */
.rtg2-divider {
  width: 48px;
  height: 2px;
  background: var(--lime);
  margin-bottom: 48px;
  border-radius: 1px;
  display: none;
}

/* Meta box */
.rtg2-event-meta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: 1100px;
  border: 1px solid rgba(255,255,255,0.15);
}
.rtg2-meta-row {
  display: flex;
  align-items: stretch;
  justify-content: center;
}
.rtg2-meta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;   /* labels top-aligned */
  gap: 8px;
  padding: 24px 20px;
  flex: 1;
  text-align: center;
}
.rtg2-meta-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lime);
}
.rtg2-meta-value {
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 1.4vw, 1.1rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
}
.rtg2-meta-sub {
  font-family: var(--font-mono);
  font-size: 0.55em;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: #fff;
  vertical-align: middle;
  margin-left: 4px;
}
.rtg2-meta-sep {
  width: 1px;
  background: rgba(255,255,255,0.15);
  align-self: stretch;
  flex-shrink: 0;
}

/* ── THE RACE section wrapper ── */
.rtg2-event-section {
  padding: 56px 40px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Workouts / The Race module */
.rtg2-workouts {
  width: 100%;
  max-width: 1100px;
  margin-top: 0;
  text-align: center;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--lime);
}
.rtg2-workouts-heading {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.2rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  display: inline-block;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  margin-bottom: 36px;
}
.rtg2-workouts-body {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.85;
  color: rgba(255,255,255,0.65);
  max-width: 640px;
  margin: 0 auto 20px;
}
.rtg2-workouts-body:last-child {
  margin-bottom: 0;
}

/* ── REGISTER / WAITLIST ── */
.rtg2-register {
  padding: 56px 40px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.rtg2-register-inner {
  width: min(560px, 100%);
  margin: 0 auto;
  text-align: center;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--lime);
}
.rtg2-section-label {
  font-family: var(--font-mono);
  font-size: 0.87rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 16px;
}
.rtg2-register-heading {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.2rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 16px;
}
.rtg2-register-sub {
  font-size: 1.1rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.55);
  max-width: 420px;
  margin: 0 auto 48px;
}

/* GHL embed */
.rtg2-ghl-wrap { width: 100%; }
.rtg2-ghl-wrap iframe {
  width: 100%;
  height: 577px;
  border: none;
  display: block;
}

/* ── FOOTER ── */
.rtg2-footer {
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.rtg2-footer-logo img {
  height: 36px;
  width: auto;
  display: block;
  opacity: 0.55;
  filter: brightness(0) invert(1);
  transition: opacity 0.2s;
}
.rtg2-footer-logo:hover img { opacity: 0.65; }
.rtg2-footer-copy {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.16);
  text-align: center;
}
.rtg2-footer-link {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.18);
  transition: color 0.2s;
}
.rtg2-footer-link:hover { color: rgba(255,255,255,0.45); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .rtg2-meta-item { padding: 20px 14px; }
  .rtg2-meta-value { font-size: 0.9rem; }
}
@media (max-width: 900px) {
  .rtg2-logo-wrap { max-width: 90vw; }
  .rtg2-event-meta { max-width: 100%; }
  .rtg2-meta-item { padding: 18px 12px; }
  .rtg2-meta-value { font-size: 0.85rem; }
}
@media (max-width: 640px) {
  .rtg2-hero { padding: 48px 20px 0; }
  .rtg2-revl-logo { height: 72px; }
  .rtg2-logo-wrap { max-width: 100%; }
  .rtg2-meta-row { flex-wrap: wrap; }
  .rtg2-meta-item { padding: 16px 12px; gap: 6px; flex: 1 1 45%; }
  .rtg2-meta-sep { display: none; }
  .rtg2-meta-value { font-size: 0.8rem; }
  .rtg2-event-section { padding: 48px 20px 0; }
  .rtg2-register { padding: 48px 20px 0; }
  .rtg2-footer { flex-direction: column; text-align: center; padding: 36px 20px; }
}
