/* ============================================================
   ASHWA RACING — RECRUITMENT PAGE
   System: Barlow Condensed + Barlow · dark motorsport-editorial
   ============================================================ */

/* ─── Tokens ────────────────────────────────────────────────── */
:root {
  --red:          #e8001d;
  --red-dark:     #b5001a;
  --black:        #0a0a0a;
  --charcoal:     #141414;
  --dark-grey:    #1c1c1c;
  --mid-grey:     #2a2a2a;
  --off-white:    #f7f6f4;
  --white:        #ffffff;
  --text-muted:   #888;
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;
  --ease-expo:    cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--charcoal);
  color: var(--white);
  overflow-x: hidden;
}

/* ─── Shared tokens ─────────────────────────────────────────── */
.rc-section-label {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--red); margin-bottom: 14px;
}
.rc-section-label--light { color: rgba(255,255,255,0.38); }
.rc-section-label--light .label-dash { background: rgba(255,255,255,0.25); }
.label-dash { display: block; width: 22px; height: 2px; background: var(--red); flex-shrink: 0; }

.rc-section-heading {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 800; line-height: 0.88;
  letter-spacing: -0.01em; text-transform: uppercase;
  color: var(--white); margin-bottom: 18px;
}
.rc-section-heading em { font-style: italic; color: var(--red); display: block; }

/* ─── Reveal ────────────────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition:
    opacity 0.55s var(--ease-expo) var(--delay, 0s),
    transform 0.55s var(--ease-expo) var(--delay, 0s);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ────────────────────────────────────────────────────────────────
   HERO
──────────────────────────────────────────────────────────────── */
.rc-hero {
  position: relative;
  height: 100svh; min-height: 600px; max-height: 960px;
  background: var(--black);
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
}

.rc-hero-bg {
  position: absolute; inset: 0;
  background:
    url('https://ashwaracing.org/cdn-cgi/image/width=1920,format=auto/https://assets.ashwaracing.org/images/prototypes/RZ-X9-C/event/3.png')
    center / cover no-repeat;
  filter: brightness(0.22) saturate(0.65);
  transform: scale(1.04);
  transition: transform 9s var(--ease-expo);
}
.rc-hero:hover .rc-hero-bg { transform: scale(1.0); }

.rc-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.96) 0%,
    rgba(0,0,0,0.4)  50%,
    rgba(0,0,0,0.05) 100%
  );
}

/* Telemetry grid */
.rc-hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* Primary red stripe */
.rc-hero-stripe {
  position: absolute; top: 0; right: 9%; z-index: 2;
  width: 3px; height: 100%;
  background: var(--red);
}

/* Secondary dimmer stripe */
.rc-hero-stripe--secondary {
  right: calc(9% + 14px);
  width: 1px;
  background: var(--red);
  opacity: 0.25;
}

/* Telemetry coordinate annotations — corners */
.rc-hero-coords {
  position: absolute;
  z-index: 3;
  font-family: var(--font-display);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  display: flex;
  flex-direction: column;
  gap: 3px;
  pointer-events: none;
  animation: slideUp 1s var(--ease-expo) 0.5s both;
}
.rc-hero-coords--tl { top: 28px; left: 7%; }
.rc-hero-coords--br { bottom: 100px; right: 7%; align-items: flex-end; }

.rc-hero-content {
  position: relative; z-index: 3;
  padding: 0 7% 48px; max-width: 700px;
}

/* Status badge */
.rc-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 2px;
  margin-bottom: 26px; width: fit-content;
}
.rc-status-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
}

.rc-status--open {
  background: rgba(0,200,100,0.1);
  border: 1px solid rgba(0,200,100,0.28);
  color: #00c864;
}
.rc-status--open .rc-status-dot {
  background: #00c864;
  animation: pulse 1.4s ease-in-out infinite;
}

.rc-status--closed {
  background: rgba(232,0,29,0.08);
  border: 1px solid rgba(232,0,29,0.18);
  color: rgba(255,255,255,0.35);
}
.rc-status--closed .rc-status-dot { background: rgba(255,255,255,0.2); }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,200,100,0.5); }
  50%       { box-shadow: 0 0 0 6px rgba(0,200,100,0); }
}

.rc-eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-display);
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.35); margin-bottom: 18px;
  animation: slideUp 0.8s var(--ease-expo) 0.05s both;
}
.eyebrow-dash { display: block; width: 28px; height: 2px; background: var(--red); flex-shrink: 0; }

.rc-hero-title {
  font-family: var(--font-display);
  font-size: clamp(5rem, 13vw, 10rem);
  font-weight: 800; line-height: 0.75;
  letter-spacing: -0.02em; text-transform: uppercase;
  color: var(--white); margin-bottom: 24px;
  animation: slideUp 0.8s var(--ease-expo) 0.1s both;
}
.rc-hero-title em { font-style: italic; color: var(--red); display: block; }

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

.rc-hero-desc {
  font-size: clamp(0.88rem, 1.3vw, 1rem);
  line-height: 1.72; color: rgba(255,255,255,0.48);
  font-weight: 300; max-width: 440px; margin-bottom: 34px;
  animation: slideUp 0.8s var(--ease-expo) 0.18s both;
}

/* CTA buttons */
.rc-hero-actions {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  animation: slideUp 0.8s var(--ease-expo) 0.26s both;
}

.rc-btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-display);
  font-size: 0.95rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--red); color: var(--white);
  border: 2px solid var(--red); border-radius: 2px;
  cursor: pointer; transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.rc-btn-primary:not([disabled]):hover {
  background: var(--red-dark); border-color: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(232,0,29,0.28);
}
.rc-btn-primary[disabled] {
  opacity: 0.38; cursor: not-allowed;
  background: transparent; border-color: rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.3);
}

.rc-btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-display);
  font-size: 0.95rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--white); text-decoration: none;
  border: 2px solid rgba(255,255,255,0.22); border-radius: 2px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.rc-btn-ghost:hover {
  border-color: var(--white); background: rgba(255,255,255,0.05);
}
.rc-btn-ghost i { transition: transform 0.2s ease; }
.rc-btn-ghost:hover i { transform: translateX(4px); }

/* Stats bar */
.rc-hero-stats {
  position: relative; z-index: 3;
  display: flex; align-items: center;
  background: rgba(10,10,10,0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 22px 7%;
  flex-wrap: wrap; gap: 0;
  animation: fadeUpStats 0.8s var(--ease-expo) 0.4s both;
}

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

.rhs { display: flex; flex-direction: column; padding: 0 44px 0 0; }
.rhs:first-child { padding-left: 0; }

.rhs-num {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 800; color: var(--white); line-height: 1;
  letter-spacing: -0.02em;
}
.rhs-num sup { font-size: 0.52em; color: var(--red); vertical-align: super; }

.rhs-label {
  font-family: var(--font-display);
  font-size: 0.58rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-muted); margin-top: 6px;
}

.rhs-div {
  width: 1px; height: 40px;
  background: rgba(255,255,255,0.09);
  margin-right: 44px; flex-shrink: 0;
  align-self: center;
}

/* ────────────────────────────────────────────────────────────────
   WHY JOIN
──────────────────────────────────────────────────────────────── */
.rc-why {
  background: var(--charcoal);
  padding: 96px 7% 100px;
}

.rc-why-inner { max-width: 1320px; margin: 0 auto; }

.rc-why-header {
  max-width: 560px; margin-bottom: 60px;
}
.rc-why-header p {
  font-size: 0.95rem; line-height: 1.78;
  color: rgba(255,255,255,0.38); font-weight: 300;
  max-width: 440px;
}

.rc-benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.rc-benefit {
  background: var(--dark-grey);
  padding: 30px 26px 28px;
  position: relative; overflow: hidden;
  border-top: 2px solid transparent;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.35s var(--ease-expo),
    box-shadow 0.25s ease;
}

/* Red top border appears on hover */
.rc-benefit:hover {
  background: #222;
  border-top-color: var(--red);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
}

/* Corner accent line — engineering detail */
.rc-benefit::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 0; height: 0;
  border-left: 24px solid transparent;
  border-bottom: 24px solid rgba(255,255,255,0.04);
  transition: border-bottom-color 0.25s ease;
}
.rc-benefit:hover::after {
  border-bottom-color: rgba(232,0,29,0.12);
}

/* Meta row — number + icon side by side */
.rc-benefit-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}

.rc-benefit-num {
  font-family: var(--font-display);
  font-size: 0.6rem; letter-spacing: 0.22em;
  color: var(--text-muted); text-transform: uppercase;
}

.rc-benefit-icon {
  font-size: 1.2rem; color: var(--red);
  transition: transform 0.25s ease;
}
.rc-benefit:hover .rc-benefit-icon { transform: scale(1.1); }

.rc-benefit h3 {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--white); margin-bottom: 10px; line-height: 1.2;
}

.rc-benefit p {
  font-size: 0.82rem; line-height: 1.72;
  color: rgba(255,255,255,0.42); font-weight: 300;
}

/* ────────────────────────────────────────────────────────────────
   PROCESS TIMELINE
──────────────────────────────────────────────────────────────── */
.rc-process {
  background: var(--black);
  /* Red top separator — same language as team page filter border */
  border-top: 2px solid var(--red);
  padding: 96px 7% 100px;
}

.rc-process-inner { max-width: 820px; }

.rc-process-header { margin-bottom: 60px; }

.rc-process-sub {
  font-size: 0.88rem; line-height: 1.7;
  color: rgba(255,255,255,0.35); font-weight: 300;
  margin-top: 4px; letter-spacing: 0.01em;
}

/* Timeline layout */
.rc-timeline {
  display: flex; flex-direction: column;
  gap: 0;
}

.rc-tl-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 28px;
  position: relative;
  transition: transform 0.35s var(--ease-expo);
}
.rc-tl-item:hover { transform: translateX(6px); }

/* Marker column — node + connector line */
.rc-tl-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

/* The numbered circle */
.rc-tl-node {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: var(--dark-grey);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative; z-index: 1;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

/* Active state — node fills red when revealed */
.rc-tl-item.visible .rc-tl-node,
.rc-tl-item:hover   .rc-tl-node {
  border-color: var(--red);
  background: var(--red);
  box-shadow: 0 0 20px rgba(232,0,29,0.25);
}

/* Final node — gold treatment when active */
.rc-tl-node--final { border-color: rgba(201,168,76,0.3); }
.rc-tl-item.visible .rc-tl-node--final,
.rc-tl-item:hover   .rc-tl-node--final {
  background: #c9a84c;
  border-color: #c9a84c;
  box-shadow: 0 0 20px rgba(201,168,76,0.25);
}

.rc-tl-num {
  font-family: var(--font-display);
  font-size: 0.85rem; font-weight: 800;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}
.rc-tl-item.visible .rc-tl-num,
.rc-tl-item:hover   .rc-tl-num {
  color: var(--white);
}

/* Vertical connector line between nodes */
.rc-tl-connector {
  flex: 1;
  width: 1px;
  background: rgba(255,255,255,0.07);
  margin: 6px 0;
  min-height: 56px;
  /* Animates to red as item becomes visible */
  transition: background 0.5s ease;
}
.rc-tl-item.visible .rc-tl-connector { background: rgba(232,0,29,0.22); }

.rc-tl-content {
  padding: 6px 0 52px;
}
/* Last item — no bottom padding */
.rc-tl-item:last-child .rc-tl-content { padding-bottom: 0; }

.rc-tl-stage {
  font-family: var(--font-display);
  font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--red); margin-bottom: 7px;
}

.rc-tl-title {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.03em;
  color: var(--white); margin-bottom: 10px; line-height: 1.1;
}

.rc-tl-content p {
  font-size: 0.87rem; line-height: 1.75;
  color: rgba(255,255,255,0.42); font-weight: 300;
  max-width: 500px; margin-bottom: 12px;
}

/* Engineering spec annotation — decorative */
.rc-tl-spec {
  font-family: var(--font-display);
  font-size: 0.55rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(255,255,255,0.12);
  border-left: 2px solid rgba(255,255,255,0.07);
  padding-left: 10px;
  display: inline-block;
}
.rc-tl-item.visible .rc-tl-spec { color: rgba(232,0,29,0.3); border-left-color: rgba(232,0,29,0.2); }

/* ────────────────────────────────────────────────────────────────
   SUBSYSTEMS CTA
──────────────────────────────────────────────────────────────── */
.rc-subsystems {
  background: var(--red);
  overflow: hidden;
  position: relative;
}

/* Subtle radial depth — not a blob, just a faint brightening */
.rc-subsystems::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 15% 40%, rgba(255,255,255,0.07), transparent 60%);
  pointer-events: none;
}

.rc-subsystems-inner {
  position: relative; z-index: 1;
  padding: 96px 7% 64px;
  max-width: 680px;
}

.rc-subsystems-heading {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800; line-height: 0.88;
  letter-spacing: -0.01em; text-transform: uppercase;
  color: var(--white); margin-bottom: 18px;
}
.rc-subsystems-heading em {
  font-style: italic; color: rgba(255,255,255,0.85); display: block;
}

.rc-subsystems-inner p {
  font-size: 0.95rem; line-height: 1.78;
  color: rgba(255,255,255,0.88); font-weight: 300;
  margin-bottom: 34px; max-width: 460px;
}

.rc-subsystems-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 0.95rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--white); text-decoration: none;
  border-bottom: 2px solid rgba(255,255,255,0.45);
  padding-bottom: 3px;
  transition: gap 0.2s ease, border-color 0.2s ease;
}
.rc-subsystems-link:hover { gap: 16px; border-color: var(--white); }
.rc-subsystems-link i { transition: transform 0.2s ease; }
.rc-subsystems-link:hover i { transform: translateX(4px); }

/* Subsystem ticker */
.rc-sub-strip {
  overflow: hidden;
  background: var(--red-dark);
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  position: relative;
}

/* Fade edges */
.rc-sub-strip::before,
.rc-sub-strip::after {
  content: '';
  position: absolute; top: 0; bottom: 0;
  width: 80px; z-index: 2; pointer-events: none;
}
.rc-sub-strip::before { left: 0;  background: linear-gradient(to right, var(--red-dark), transparent); }
.rc-sub-strip::after  { right: 0; background: linear-gradient(to left,  var(--red-dark), transparent); }

.rc-sub-track {
  display: flex; width: max-content;
  animation: subTicker 28s linear infinite;
  white-space: nowrap;
}
.rc-sub-strip:hover .rc-sub-track { animation-play-state: paused; }

.rc-sub-track span {
  font-family: var(--font-display);
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  padding: 0 22px;
}
.rc-sub-track .sep { color: rgba(255,255,255,0.18) !important; padding: 0 4px !important; }

@keyframes subTicker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── Accessibility ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .rc-sub-track { animation: none; }
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .rc-benefits-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 960px) {
  .rc-benefits-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .rc-hero-stats { padding: 16px 5%; flex-wrap: wrap; row-gap: 14px; }
  .rhs-div { display: none; }
  .rhs { padding-right: 28px; }
  .rc-hero-coords { display: none; }
}

@media (max-width: 640px) {
  .rc-hero { height: 60svh; min-height: 420px; }
  .rc-hero-content { padding: 0 5% 32px; max-width: 100%; }
  .rc-hero-title { font-size: clamp(2.8rem, 12vw, 5rem); }
  .rc-hero-stripe { right: 4%; }
  .rc-hero-stripe--secondary { display: none; }

  .rc-why, .rc-process { padding: 64px 5%; }
  .rc-benefits-grid { grid-template-columns: 1fr; }
  .rc-benefit { padding: 24px 20px; }
  .rc-subsystems-inner { padding: 64px 5% 44px; }

  .rc-hero-actions { gap: 10px; flex-wrap: wrap; }
  .rc-btn-primary, .rc-btn-ghost {
    padding: 10px 18px; font-size: 0.85rem;
    width: 100%; text-align: center; justify-content: center;
  }
}

@media (max-width: 480px) {
  .rc-hero { height: 55svh; min-height: 360px; }
  .rc-hero-content { padding: 0 4% 24px; }
  .rc-hero-title { font-size: clamp(2.4rem, 10vw, 4rem); }
  .rc-hero-desc { font-size: 0.82rem; }

  .rc-status { font-size: 0.62rem; padding: 5px 12px; }
  .rc-eyebrow { font-size: 0.62rem; }

  .rc-hero-stats { padding: 14px 4%; row-gap: 12px; }
  .rhs-num { font-size: 1.4rem; }
  .rhs-label { font-size: 0.55rem; }

  .rc-why, .rc-process { padding: 52px 4%; }
  .rc-section-heading { font-size: clamp(1.8rem, 6vw, 2.4rem); }
  .rc-why-header, .rc-process-header { margin-bottom: 36px; }

  .rc-benefit { padding: 20px 16px; }
  .rc-benefit h3 { font-size: 1rem; }
  .rc-benefit p { font-size: 0.78rem; }

  .rc-tl-item { grid-template-columns: 44px 1fr; gap: 20px; }
  .rc-tl-node { width: 38px; height: 38px; }
  .rc-tl-title { font-size: 1.25rem; }
  .rc-tl-content p { font-size: 0.82rem; }
  .rc-tl-spec { display: none; }

  .rc-subsystems-inner { padding: 52px 4% 36px; }
  .rc-subsystems-heading { font-size: clamp(1.8rem, 7vw, 2.6rem); }
}