/* ==========================================================================
   Capital S Consulting — Unified Redesign Design System
   All selectors scoped under .rd-page
   Consolidates shared patterns from 7 preview CSS files into one source.
   ========================================================================== */

/* ---------- Design Tokens ---------- */
.rd-page {
  --rd-blue: #4382ff;
  --rd-blue-dark: #1b54ff;
  --rd-navy: #041546;
  --rd-bg-dark: #03051f;
  --rd-heading: #0f0f0f;
  --rd-body: #4a4a4a;
  --rd-white: #ffffff;
  --rd-border: #e2e4e9;
  --rd-radius: 16px;
  --rd-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --rd-container: 1200px;
  --rd-container-narrow: 780px;
}

/* ---------- Base Resets ---------- */
.rd-page {
  font-family: 'Montserrat', sans-serif;
  color: var(--rd-heading);
  line-height: 1.6;
  overflow-x: hidden;
}

.rd-page *, .rd-page *::before, .rd-page *::after { box-sizing: border-box; }
.rd-page img { max-width: 100%; height: auto; display: block; }
.rd-page a { text-decoration: none; color: inherit; }
.rd-page h1, .rd-page h2, .rd-page h3, .rd-page p, .rd-page blockquote, .rd-page cite { margin: 0; padding: 0; }

/* ---------- Container ---------- */
.rd-container {
  max-width: var(--rd-container);
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 64px);
}
.rd-container--narrow { max-width: var(--rd-container-narrow); }

/* ---------- Typography Utilities ---------- */
.rd-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--rd-blue);
  margin-bottom: 1.5rem;
}
.rd-label--light { color: rgba(67, 130, 255, 0.6); }

.rd-display {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--rd-heading);
}
.rd-display--white { color: var(--rd-white); }

/* ---------- Button System ---------- */
.rd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 48px;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.4s var(--rd-ease);
  text-decoration: none;
}

.rd-page a.rd-btn--primary {
  background: #2968e0;
  color: #ffffff;
}
.rd-page a.rd-btn--primary:hover {
  box-shadow: 0 0 60px rgba(67, 130, 255, 0.5), 0 8px 32px rgba(67, 130, 255, 0.3);
  transform: translateY(-2px);
}

.rd-page a.rd-btn--white {
  background: var(--rd-white);
  color: var(--rd-navy);
}
.rd-page a.rd-btn--white:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(255, 255, 255, 0.25);
}

.rd-btn--outline {
  background: transparent;
  color: var(--rd-white);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}
.rd-btn--outline:hover {
  border-color: var(--rd-white);
  background: rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   HERO — Immersive Cinematic (shared across most page types)
   ========================================================================== */
.rd-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--rd-bg-dark);
  overflow: hidden;
  padding: 120px 24px 80px;
}

.rd-hero--short {
  min-height: 80vh;
}

/* Animated mesh gradient background */
.rd-hero__mesh {
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(ellipse 40% 40% at 25% 35%, rgba(67, 130, 255, 0.18), transparent),
    radial-gradient(ellipse 35% 35% at 75% 55%, rgba(27, 84, 255, 0.12), transparent),
    radial-gradient(ellipse 50% 30% at 50% 80%, rgba(67, 130, 255, 0.08), transparent);
  animation: rd-mesh 18s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes rd-mesh {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(-3%, 2%) rotate(3deg); }
}

/* Centered hero content */
.rd-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
}

/* Split hero variant (text left, badge/photo right) */
.rd-hero__split {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: var(--rd-container);
  margin: 0 auto;
}

.rd-hero__eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 2rem;
}

.rd-hero__title {
  margin-bottom: 2rem;
}

.rd-hero__title-line {
  display: block;
  font-size: clamp(3.2rem, 8vw, 6.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.0;
  color: var(--rd-white);
}

/* Split hero uses smaller title */
.rd-hero__split .rd-hero__title-line {
  font-size: clamp(2.6rem, 5vw, 4.5rem);
}

/* Gradient accent text with animated underline */
.rd-hero__title-line--accent {
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, #4382ff, #00b5ff, #4382ff);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: rd-gradient-text 6s ease infinite;
}

.rd-hero__title-line--accent::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0.04em;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, #4382ff, #00b5ff);
  transform: scaleX(0);
  transform-origin: left;
  animation: rd-underline-draw 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s forwards;
}

/* Sequential accent for multi-line wrapping: draws after the first */
.rd-hero__title-line--accent-2 {
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, #4382ff, #00b5ff, #4382ff);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: rd-gradient-text 6s ease infinite;
}

.rd-hero__title-line--accent-2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0.04em;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, #4382ff, #00b5ff);
  transform: scaleX(0);
  transform-origin: left;
  animation: rd-underline-draw 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.8s forwards;
}

@keyframes rd-underline-draw {
  0% { transform: scaleX(0); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: scaleX(1); opacity: 1; }
}

@keyframes rd-gradient-text {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.rd-page .rd-hero__subtitle {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* Left-aligned subtitle in split hero */
.rd-hero__split .rd-hero__subtitle {
  margin: 0 0 3rem;
}

.rd-hero__cta { position: relative; z-index: 2; }

/* Badge / Photo glass panel for split hero */
.rd-hero__badge-glass,
.rd-hero__photo-glass {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--rd-radius);
  padding: 40px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.rd-hero__badge-glass img,
.rd-hero__photo-glass img {
  max-width: 260px;
  border-radius: 8px;
}

/* Scroll line indicator */
.rd-hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.rd-hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(67, 130, 255, 0.5), transparent);
  animation: rd-scroll-line 2s ease-in-out infinite;
}

@keyframes rd-scroll-line {
  0% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
  100% { opacity: 1; transform: scaleY(1); }
}

/* ==========================================================================
   SECTION PADDING UTILITIES
   ========================================================================== */
.rd-section {
  padding: clamp(80px, 10vw, 140px) 0;
}

.rd-section--light {
  background: #fafbfc;
}

.rd-section--dark {
  background: var(--rd-bg-dark);
}

.rd-section--white {
  background: var(--rd-white);
}

.rd-section__header {
  text-align: center;
  margin-bottom: clamp(48px, 8vw, 80px);
}

.rd-section__header .rd-display {
  max-width: 600px;
  margin: 0 auto;
}

/* ==========================================================================
   EDITORIAL STAGGER LAYOUT (01, 02, 03 numbered items)
   Used by: homepage challenge, sf approach-intro, api problem
   ========================================================================== */
.rd-editorial__items {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.rd-editorial__item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0 2rem;
  padding: clamp(40px, 5vw, 60px) 0;
  border-bottom: 1px solid var(--rd-border);
  align-items: start;
}

.rd-editorial__item:first-child {
  border-top: 1px solid var(--rd-border);
}

.rd-editorial__num {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: rgba(67, 130, 255, 0.15);
  line-height: 1;
  padding-top: 4px;
}

.rd-editorial__body h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 700;
  color: var(--rd-heading);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.rd-editorial__body p {
  font-size: 1rem;
  color: var(--rd-body);
  line-height: 1.75;
}

/* ==========================================================================
   CARD GRID (generic 3-col cards)
   Used by: homepage why, sf achieve, api invest, about services
   ========================================================================== */
.rd-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.rd-cards--2x2 {
  grid-template-columns: repeat(2, 1fr);
}

.rd-card {
  background: var(--rd-white);
  border: 1px solid var(--rd-border);
  border-radius: var(--rd-radius);
  padding: clamp(32px, 4vw, 48px);
  transition: transform 0.4s var(--rd-ease), box-shadow 0.4s var(--rd-ease);
}

.rd-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
}

/* Dark glass card variant */
.rd-card--glass {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.rd-card--glass:hover {
  border-color: rgba(67, 130, 255, 0.3);
  box-shadow: 0 12px 40px rgba(67, 130, 255, 0.12);
}

.rd-card h3 {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  font-weight: 700;
  color: var(--rd-heading);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.rd-card--glass h3 {
  color: var(--rd-white);
}

.rd-card p {
  font-size: 0.95rem;
  color: var(--rd-body);
  line-height: 1.7;
}

.rd-card--glass p {
  color: rgba(255, 255, 255, 0.7);
}

.rd-card--glass .rd-card__num {
  color: rgba(67, 130, 255, 0.3);
}

/* Auto-glass cards on dark backgrounds */
.rd-section--dark .rd-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.rd-section--dark .rd-card:hover {
  border-color: rgba(67, 130, 255, 0.3);
  box-shadow: 0 12px 40px rgba(67, 130, 255, 0.12);
}

.rd-section--dark .rd-card h3 { color: var(--rd-white); }
.rd-section--dark .rd-card p { color: rgba(255, 255, 255, 0.7); }
.rd-section--dark .rd-card .rd-card__num { color: rgba(67, 130, 255, 0.3); }
.rd-section--dark .rd-card a { color: var(--rd-blue); }

/* Auto-glass step-cards on dark backgrounds */
.rd-section--dark .rd-step-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.rd-section--dark .rd-step-card:hover {
  border-color: rgba(67, 130, 255, 0.3);
  box-shadow: 0 12px 40px rgba(67, 130, 255, 0.12);
}

.rd-section--dark .rd-step-card h3 { color: var(--rd-white); }
.rd-section--dark .rd-step-card p { color: rgba(255, 255, 255, 0.7); }
.rd-section--dark .rd-step-card .rd-step-card__num { color: rgba(67, 130, 255, 0.3); }
.rd-section--dark .rd-step-card a { color: var(--rd-blue); }

/* ==========================================================================
   ROW LAYOUT (icon + content horizontal rows)
   Used by: sf solutions, api platforms, homepage industries
   ========================================================================== */
.rd-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.rd-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0 2rem;
  padding: clamp(32px, 4vw, 48px) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  align-items: start;
}

.rd-row:last-child { border-bottom: none; }

.rd-row__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--rd-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rd-row__icon img {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);
}

.rd-row h3 {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  font-weight: 700;
  color: var(--rd-white);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.rd-row p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

/* Light-background row variant */
.rd-row--light h3 { color: var(--rd-heading); }
.rd-row--light p { color: var(--rd-body); }

/* ==========================================================================
   METHODOLOGY / TIMELINE
   Used by: sf methodology, api methodology
   ========================================================================== */
.rd-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 6vw, 72px);
  padding-left: 48px;
}

.rd-timeline::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(67, 130, 255, 0.2);
}

.rd-timeline__phase {
  position: relative;
}

.rd-timeline__num {
  position: absolute;
  left: -48px;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--rd-blue);
  color: var(--rd-white);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.rd-timeline h3 {
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  font-weight: 700;
  color: var(--rd-white);
  margin-bottom: 0.75rem;
}

.rd-timeline p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

/* Light background timeline variant */
.rd-timeline--light h3 { color: var(--rd-heading); }
.rd-timeline--light p { color: var(--rd-body); }
.rd-timeline--light::before { background: rgba(67, 130, 255, 0.15); }

/* ==========================================================================
   SOLUTIONS ROWS (icon backgrounds for service pages)
   ========================================================================== */
.rd-row__icon--blue { background: rgba(67, 130, 255, 0.12); }
.rd-row__icon--green { background: rgba(34, 197, 94, 0.12); }
.rd-row__icon--purple { background: rgba(139, 92, 246, 0.12); }
.rd-row__icon--amber { background: rgba(245, 158, 11, 0.12); }
.rd-row__icon--cyan { background: rgba(6, 182, 212, 0.12); }

/* ==========================================================================
   FEATURED BANNER (dark intro banner for results/achievements)
   ========================================================================== */
.rd-featured-banner {
  padding: clamp(80px, 12vw, 160px) 0;
  background: linear-gradient(170deg, var(--rd-navy) 0%, var(--rd-bg-dark) 100%);
  text-align: center;
  position: relative;
}

.rd-featured-banner__inner {
  max-width: var(--rd-container);
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 64px);
}

.rd-featured-banner p {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.75;
  max-width: 680px;
  margin: 1.5rem auto 0;
}

/* ==========================================================================
   CLIENT SPOTLIGHT (quote + case study section)
   ========================================================================== */
.rd-spotlight {
  padding: clamp(80px, 10vw, 140px) 0;
  background: var(--rd-bg-dark);
  position: relative;
}

.rd-spotlight__inner {
  position: relative;
  max-width: var(--rd-container);
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 64px);
  text-align: center;
}

.rd-spotlight__title {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 800;
  color: var(--rd-white);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.rd-spotlight__subtitle {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: clamp(32px, 4vw, 48px);
}

.rd-spotlight__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  text-align: left;
  margin-bottom: clamp(32px, 4vw, 48px);
}

.rd-spotlight__col h3 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rd-blue);
  margin-bottom: 1rem;
}

.rd-spotlight__col p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.75;
}

.rd-spotlight__col a {
  color: var(--rd-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rd-spotlight blockquote {
  border: none;
  padding: 0;
  margin: 0 auto;
  max-width: 900px;
}

.rd-spotlight blockquote p {
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  font-weight: 600;
  color: var(--rd-white);
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.rd-spotlight blockquote em {
  color: var(--rd-blue);
  font-style: italic;
}

.rd-spotlight cite {
  display: block;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  font-style: normal;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.05em;
}

/* ==========================================================================
   CHOOSE / STEP CARDS (numbered cards with icons)
   ========================================================================== */
.rd-step-card {
  padding: clamp(28px, 3vw, 40px);
  background: var(--rd-white);
  border-radius: var(--rd-radius);
  border: 1px solid var(--rd-border);
  transition: all 0.4s var(--rd-ease);
}

.rd-step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
  border-color: rgba(67, 130, 255, 0.2);
}

.rd-step-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.rd-step-card__num {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: rgba(67, 130, 255, 0.15);
  line-height: 1;
}

.rd-step-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(67, 130, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.rd-step-card__icon img {
  width: 24px;
  height: 24px;
  opacity: 0.7;
}

.rd-step-card h3 {
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  font-weight: 700;
  color: var(--rd-heading);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.rd-step-card p {
  font-size: 0.92rem;
  color: var(--rd-body);
  line-height: 1.75;
}

.rd-step-card a {
  color: var(--rd-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   QUOTE HERO
   Used by: homepage, salesforce
   ========================================================================== */
.rd-quote-hero {
  padding: clamp(80px, 10vw, 140px) 0;
  background: var(--rd-bg-dark);
  position: relative;
}

.rd-quote-hero__inner {
  position: relative;
  max-width: var(--rd-container);
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 64px);
  text-align: center;
}

.rd-quote-hero blockquote {
  border: none;
  padding: 0;
  margin: 0;
}

.rd-quote-hero blockquote p {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 600;
  color: var(--rd-white);
  line-height: 1.5;
  letter-spacing: -0.01em;
  max-width: 900px;
  margin: 0 auto;
}

.rd-quote-hero cite {
  display: block;
  margin-top: 2rem;
  font-size: 0.9rem;
  font-style: normal;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.05em;
}

/* ==========================================================================
   CTA — Dramatic Closing Section
   ========================================================================== */
.rd-cta {
  padding: clamp(120px, 16vw, 220px) 0;
  background: linear-gradient(135deg, #041546, #1b54ff, #041546);
  background-size: 200% 200%;
  animation: rd-gradient-shift 8s ease infinite;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Large decorative circle — shifts with scroll parallax */
.rd-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% + var(--rd-parallax, 0px)));
  width: 500px;
  height: 500px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  pointer-events: none;
  transition: transform 0.1s linear;
}

@keyframes rd-gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.rd-cta__inner {
  position: relative;
  z-index: 1;
  max-width: var(--rd-container);
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 64px);
}

.rd-page .rd-cta__heading {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  color: var(--rd-white);
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 700px;
  margin: 0 auto 1rem;
}

.rd-cta__sub {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: rgba(255, 255, 255, 0.65);
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
}

.rd-cta .rd-btn { padding: 20px 56px; margin-top: 2rem; }

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.rd-faq {
  padding: clamp(80px, 10vw, 140px) 0;
  background: var(--rd-white);
}

.rd-faq__header {
  text-align: center;
  margin-bottom: clamp(48px, 6vw, 72px);
}

.rd-page .rd-faq .js-accordion {
  max-width: var(--rd-container-narrow);
  margin: 0 auto;
}

.rd-faq__accordion-wrap {
  max-width: var(--rd-container-narrow);
  margin: 0 auto;
}

.rd-page .rd-faq .js-accordion-item {
  border-bottom: 1px solid var(--rd-border);
  padding: 0;
}

.rd-page .rd-faq .js-accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.rd-page .rd-faq .js-accordion-header h3 {
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  font-weight: 600;
  color: var(--rd-heading);
  line-height: 1.4;
  flex: 1;
  margin: 0;
  padding: 0;
}

.rd-page .rd-faq .js-accordion-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  opacity: 0.6;
}

.rd-page .rd-faq .js-accordion-icon.active {
  transform: rotate(180deg);
}

.rd-page .rd-faq .js-accordion-body .faqs-v2_accordion-content {
  padding: 0 0 24px 0;
}

.rd-page .rd-faq .js-accordion-body p {
  font-size: 0.95rem;
  color: var(--rd-body);
  line-height: 1.75;
}

.rd-page .rd-faq .js-accordion-body a {
  color: var(--rd-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rd-page .rd-faq .js-accordion-body a:hover {
  color: var(--rd-blue-dark);
}

/* ==========================================================================
   COMPARISON TABLE
   Used by: api integration
   ========================================================================== */
.rd-compare__head,
.rd-compare__row {
  display: grid;
  grid-template-columns: 140px 1fr 1fr;
  gap: 0;
}

.rd-compare__head {
  margin-bottom: 12px;
}

.rd-compare__head span {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  padding: 12px 20px;
}

.rd-compare__row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.rd-compare__cell {
  padding: 18px 20px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
}

.rd-compare__cell--label {
  font-weight: 600;
  color: var(--rd-white);
}

.rd-compare__cell--highlight {
  background: rgba(67, 130, 255, 0.08);
  border-left: 2px solid var(--rd-blue);
}

/* ==========================================================================
   STATS ROW
   Used by: about
   ========================================================================== */
.rd-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  text-align: center;
}

.rd-stat__number {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--rd-blue), #00b5ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.rd-stat__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ==========================================================================
   ARTICLE HEADER (dark header with metadata)
   ========================================================================== */
.rd-article-header {
  background: var(--rd-bg-dark);
  padding: clamp(120px, 14vw, 180px) 0 clamp(60px, 8vw, 100px);
  text-align: center;
}

.rd-article-header__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 2rem;
  transition: color 0.3s ease;
}

.rd-article-header__back:hover { color: var(--rd-white); }

.rd-article-header__cats {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.rd-article-header__cat {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: rgba(67, 130, 255, 0.12);
  color: var(--rd-blue);
}

.rd-article-header__date {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 1.5rem;
}

/* ==========================================================================
   ARTICLE HERO IMAGE
   ========================================================================== */
.rd-hero-img {
  max-width: 960px;
  margin: -60px auto 0;
  padding: 0 clamp(24px, 5vw, 64px);
  position: relative;
  z-index: 2;
}

.rd-hero-img img {
  width: 100%;
  border-radius: var(--rd-radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   ARTICLE BODY (rich text styling)
   ========================================================================== */
.rd-article-body {
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 64px);
}

.rd-article-body h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--rd-heading);
  margin: 2.5rem 0 1rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.rd-article-body h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 700;
  color: var(--rd-heading);
  margin: 2rem 0 0.75rem;
  line-height: 1.3;
}

.rd-article-body h4 {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 700;
  color: var(--rd-heading);
  margin: 1.5rem 0 0.5rem;
}

.rd-article-body p {
  font-size: 1rem;
  color: var(--rd-body);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.rd-article-body a {
  color: var(--rd-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.rd-article-body a:hover {
  color: var(--rd-blue-dark);
}

.rd-article-body ul,
.rd-article-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.rd-article-body li {
  font-size: 1rem;
  color: var(--rd-body);
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

/* Table styling */
.rd-article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.92rem;
}

.rd-article-body th {
  background: #f5f7fa;
  font-weight: 700;
  color: var(--rd-heading);
  padding: 14px 18px;
  text-align: left;
  border-bottom: 2px solid var(--rd-border);
}

.rd-article-body td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--rd-border);
  color: var(--rd-body);
}

/* Callout box */
.rd-article-body .winner-callout {
  background: #f5f8ff;
  border-left: 4px solid var(--rd-blue);
  border-radius: 0 var(--rd-radius) var(--rd-radius) 0;
  padding: 24px 28px;
  margin: 2rem 0;
}

/* Table of Contents */
.rd-article-body .toc {
  background: #f5f7fa;
  border-radius: var(--rd-radius);
  padding: 28px 32px;
  margin: 2rem 0;
}

/* Back to top button */
.rd-back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--rd-navy);
  color: var(--rd-white);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  z-index: 100;
}

.rd-back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.rd-back-to-top:hover {
  transform: translateY(-3px);
  background: var(--rd-blue);
}

/* ==========================================================================
   RECOMMENDED ARTICLES GRID
   ========================================================================== */
.rd-recommended {
  padding: clamp(80px, 10vw, 140px) 0;
  background: #fafbfc;
}

.rd-recommended__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.rd-recommended__card {
  background: var(--rd-white);
  border-radius: var(--rd-radius);
  border: 1px solid var(--rd-border);
  overflow: hidden;
  transition: transform 0.4s var(--rd-ease), box-shadow 0.4s var(--rd-ease);
}

.rd-recommended__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
}

.rd-recommended__card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.rd-recommended__card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.rd-recommended__card-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--rd-heading);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.rd-recommended__card-body p {
  font-size: 0.85rem;
  color: var(--rd-body);
  line-height: 1.6;
}

/* ==========================================================================
   RESOURCES HUB
   ========================================================================== */
/* Featured article card */
.rd-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--rd-white);
  border-radius: var(--rd-radius);
  border: 1px solid var(--rd-border);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.4s var(--rd-ease), box-shadow 0.4s var(--rd-ease);
}

.rd-featured:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
}

.rd-featured__img { overflow: hidden; }
.rd-featured__img img { width: 100%; height: 100%; object-fit: cover; }

.rd-featured__content {
  padding: clamp(32px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.rd-featured__content h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--rd-heading);
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.rd-featured__content p {
  font-size: 0.95rem;
  color: var(--rd-body);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.rd-featured__link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--rd-blue);
}

/* Grid card placeholder (no image) */
.rd-grid__card-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #041546, #1b54ff);
  display: flex;
  align-items: center;
  justify-content: center;
}

.rd-grid__card-placeholder span {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: 'Montserrat', sans-serif;
}

/* Section subtitle (dark) */
.rd-section__sub--dark {
  color: rgba(255, 255, 255, 0.6);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Filter pills */
.rd-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(32px, 4vw, 48px);
}

.rd-filter-btn {
  padding: 10px 24px;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1.5px solid var(--rd-border);
  background: var(--rd-white);
  color: var(--rd-body);
  cursor: pointer;
  transition: all 0.3s ease;
}

.rd-filter-btn:hover { border-color: var(--rd-blue); color: var(--rd-blue); }

.rd-filter-btn.active {
  background: var(--rd-navy);
  color: var(--rd-white);
  border-color: var(--rd-navy);
}

/* Article grid */
.rd-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.rd-grid__card {
  background: var(--rd-white);
  border-radius: var(--rd-radius);
  border: 1px solid var(--rd-border);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.4s var(--rd-ease), box-shadow 0.4s var(--rd-ease);
  display: flex;
  flex-direction: column;
}

.rd-grid__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
}

.rd-grid__card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.rd-grid__card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.rd-grid__card-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--rd-heading);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.rd-grid__card-body p {
  font-size: 0.85rem;
  color: var(--rd-body);
  line-height: 1.6;
}

/* Category tags */
.rd-cat-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(67, 130, 255, 0.08);
  color: var(--rd-blue);
  margin-bottom: 12px;
}

/* ==========================================================================
   STATS BANNER (dark gradient background with animated numbers)
   ========================================================================== */
.rd-stats-banner {
  padding: clamp(60px, 8vw, 100px) 0;
  background: linear-gradient(170deg, var(--rd-navy) 0%, var(--rd-bg-dark) 100%);
  position: relative;
}

.rd-stats-banner .rd-stats {
  max-width: var(--rd-container);
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 64px);
}

.rd-stats-banner .rd-stats .rd-stat__number {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  animation: rd-gradient-text 6s ease infinite;
  background-size: 200% 200%;
}

.rd-stats-banner .rd-stats p {
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   NUMBERED CARD (large faded number, used by about services)
   ========================================================================== */
.rd-card__num {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: rgba(67, 130, 255, 0.15);
  line-height: 1;
  margin-bottom: 1.5rem;
}

.rd-card a {
  color: var(--rd-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rd-card a:hover {
  color: var(--rd-blue-dark);
}

/* ==========================================================================
   INDUSTRIES EDITORIAL ROWS (dark background, linked rows)
   ========================================================================== */
.rd-ind-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.rd-ind-row {
  display: block;
  padding: clamp(24px, 3vw, 32px) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.35s var(--rd-ease);
}

.rd-ind-row:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.rd-ind-row h3 {
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  font-weight: 700;
  color: var(--rd-white);
  margin-bottom: 0.25rem;
  position: relative;
  display: inline-block;
}

.rd-ind-row h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 3px;
  border-radius: 1px;
  background: rgba(100, 160, 255, 0.6);
  transform: scaleX(var(--rd-scroll, 0));
  transform-origin: left;
}

.rd-ind-row p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
}

/* ==========================================================================
   TEAM GRID (glass cards with circular headshots)
   ========================================================================== */
.rd-team__card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--rd-radius);
  padding: clamp(24px, 3vw, 32px);
  text-align: center;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.4s var(--rd-ease);
  display: block;
}

.rd-team__card:hover {
  transform: translateY(-4px);
  border-color: rgba(67, 130, 255, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

.rd-team__card-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  border: 3px solid rgba(67, 130, 255, 0.2);
  transition: border-color 0.4s var(--rd-ease);
}

.rd-team__card:hover .rd-team__card-img {
  border-color: rgba(67, 130, 255, 0.5);
}

.rd-team__card h3 {
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  font-weight: 700;
  color: var(--rd-white);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.rd-team__card p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
  font-weight: 500;
}

/* ==========================================================================
   TEAM MEMBER (bio section)
   ========================================================================== */
.rd-bio {
  padding: clamp(80px, 10vw, 140px) 0;
  background: #fafbfc;
}

.rd-bio__content {
  max-width: 800px;
  margin: 0 auto;
}

.rd-bio__content p {
  font-size: 1rem;
  color: var(--rd-body);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.rd-bio__content h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 700;
  color: var(--rd-heading);
  margin: 2rem 0 0.75rem;
}

/* ==========================================================================
   HOMEPAGE: Challenge Section
   ========================================================================== */
.rd-challenge {
  padding: clamp(80px, 10vw, 140px) 0;
  background: #fafbfc;
  position: relative;
}

.rd-challenge__header {
  text-align: center;
  margin-bottom: clamp(48px, 8vw, 80px);
}

.rd-challenge__header .rd-display {
  max-width: 600px;
  margin: 0 auto;
}

/* ==========================================================================
   HOMEPAGE: Approach Section (dark 2x2 grid)
   ========================================================================== */
.rd-approach {
  padding: clamp(80px, 10vw, 140px) 0;
  background: linear-gradient(170deg, var(--rd-navy) 0%, var(--rd-bg-dark) 100%);
  position: relative;
}

.rd-approach__header {
  text-align: center;
  margin-bottom: clamp(48px, 8vw, 80px);
}

.rd-approach__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
}

.rd-approach__step {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--rd-radius);
  padding: clamp(28px, 3vw, 40px);
  transition: all 0.4s var(--rd-ease);
  opacity: 0;
  transform: scale(0.96) translateY(16px);
}

.rd-approach__step:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(67, 130, 255, 0.2);
  transform: translateY(-3px);
}

.rd-approach.in-view .rd-approach__step {
  opacity: 1;
  transform: scale(1) translateY(0);
  transition: opacity 0.7s var(--rd-ease), transform 0.7s var(--rd-ease);
}

.rd-approach.in-view .rd-approach__step:nth-child(1) { transition-delay: 0.05s; }
.rd-approach.in-view .rd-approach__step:nth-child(2) { transition-delay: 0.15s; }
.rd-approach.in-view .rd-approach__step:nth-child(3) { transition-delay: 0.25s; }
.rd-approach.in-view .rd-approach__step:nth-child(4) { transition-delay: 0.35s; }

.rd-approach__step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.rd-approach__step-num {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: rgba(67, 130, 255, 0.2);
  line-height: 1;
}

.rd-approach__step-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(67, 130, 255, 0.12);
  display: grid;
  place-items: center;
}

.rd-approach__step-icon img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
}

.rd-approach__step h3 {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  font-weight: 700;
  color: var(--rd-white);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.rd-approach__step p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.75;
}

/* ==========================================================================
   HOMEPAGE: Quote Hero (enhanced)
   ========================================================================== */
.rd-quote-hero--home {
  padding: clamp(100px, 14vw, 200px) clamp(24px, 5vw, 64px);
  background: linear-gradient(180deg, #0a1040 0%, #060820 50%, #0a1040 100%);
  position: relative;
  overflow: hidden;
  border-top: 2px solid rgba(67, 130, 255, 0.15);
  border-bottom: 2px solid rgba(67, 130, 255, 0.15);
}

.rd-quote-hero--home::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% + var(--rd-parallax, 0px)));
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(67, 130, 255, 0.06), transparent 60%);
  pointer-events: none;
  transition: transform 0.1s linear;
}

.rd-quote-hero--home .rd-quote-hero__inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.rd-quote-hero--home blockquote p {
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  font-weight: 600;
  color: var(--rd-white);
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.rd-quote-hero--home blockquote em {
  font-style: normal;
  color: var(--rd-blue);
}

.rd-quote-hero--home cite {
  display: block;
  margin-top: 2.5rem;
  font-size: 1rem;
  font-style: normal;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
}

.rd-quote-hero--home cite span {
  color: rgba(255, 255, 255, 0.45);
}

/* ==========================================================================
   HOMEPAGE: Industries Section (horizontal rows with icons)
   ========================================================================== */
.rd-industries {
  padding: clamp(80px, 10vw, 140px) 0;
  background: var(--rd-white);
  position: relative;
}

.rd-industries__header {
  text-align: center;
  margin-bottom: clamp(48px, 6vw, 64px);
}

.rd-ind-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.rd-ind-link {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 0 clamp(20px, 3vw, 32px);
  padding: clamp(24px, 3vw, 32px) 0;
  border-bottom: 1px solid var(--rd-border);
  transition: all 0.35s var(--rd-ease);
  text-decoration: none;
}

.rd-ind-link:first-child {
  border-top: 1px solid var(--rd-border);
}

.rd-ind-link:hover {
  transform: translateX(8px);
}

.rd-ind-link:hover .rd-ind-link__arrow {
  opacity: 1;
  color: var(--rd-blue);
}

.rd-ind-link__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
}

.rd-ind-link__icon--pharma { background: linear-gradient(135deg, #4382ff, #1b54ff); }
.rd-ind-link__icon--pe { background: linear-gradient(135deg, #041546, #1b54ff); }
.rd-ind-link__icon--meddev { background: linear-gradient(135deg, #00b5ff, #4382ff); }
.rd-ind-link__icon--gov { background: linear-gradient(135deg, #1b54ff, #041546); }
.rd-ind-link__icon--edu { background: linear-gradient(135deg, #4382ff, #6b9fff); }

.rd-ind-link__icon img {
  width: 26px;
  height: 26px;
  filter: brightness(0) invert(1);
}

.rd-ind-link__content h3 {
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  font-weight: 700;
  color: var(--rd-heading);
  margin-bottom: 0.25rem;
}

.rd-ind-link__content p {
  font-size: 0.9rem;
  color: var(--rd-body);
  line-height: 1.6;
}

.rd-ind-link__arrow {
  font-size: 1.4rem;
  color: var(--rd-body);
  opacity: 0.5;
  transition: all 0.35s var(--rd-ease);
}

/* ==========================================================================
   HOMEPAGE: Why Capital S (featured dark + detail cards)
   ========================================================================== */
.rd-why__featured {
  padding: clamp(100px, 14vw, 180px) 0;
  background: linear-gradient(160deg, var(--rd-navy) 0%, #0a2266 50%, var(--rd-bg-dark) 100%);
  position: relative;
  overflow: hidden;
}

.rd-why__featured::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  border: 1px solid rgba(67, 130, 255, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.rd-why__featured-inner {
  max-width: var(--rd-container);
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 64px);
  position: relative;
  z-index: 1;
}

.rd-why__featured-inner .rd-display {
  margin-bottom: 1.5rem;
}

.rd-why__featured-inner p {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.75;
  max-width: 620px;
  margin-bottom: 2.5rem;
}

.rd-why__details {
  padding: clamp(64px, 8vw, 100px) 0;
  background: #fafbfc;
  position: relative;
}

.rd-why__details-header {
  text-align: center;
  margin-bottom: clamp(32px, 5vw, 48px);
}

.rd-why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.rd-why__card {
  padding: clamp(28px, 3vw, 40px);
  background: var(--rd-white);
  border-radius: var(--rd-radius);
  border: 1px solid var(--rd-border);
  transition: all 0.4s var(--rd-ease);
  opacity: 0;
  transform: scale(0.96) translateY(16px);
}

.rd-why__details.in-view .rd-why__card {
  opacity: 1;
  transform: scale(1) translateY(0);
  transition: opacity 0.7s var(--rd-ease), transform 0.7s var(--rd-ease);
}

.rd-why__details.in-view .rd-why__card:nth-child(1) { transition-delay: 0.05s; }
.rd-why__details.in-view .rd-why__card:nth-child(2) { transition-delay: 0.15s; }
.rd-why__details.in-view .rd-why__card:nth-child(3) { transition-delay: 0.25s; }

.rd-why__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
  border-color: rgba(67, 130, 255, 0.2);
}

.rd-why__card-num {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: rgba(67, 130, 255, 0.15);
  margin-bottom: 1rem;
  line-height: 1;
}

.rd-why__card h3 {
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  font-weight: 700;
  color: var(--rd-heading);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.rd-why__card p {
  font-size: 0.92rem;
  color: var(--rd-body);
  line-height: 1.75;
}

/* ==========================================================================
   HOMEPAGE: Reviews / Testimonials
   ========================================================================== */
.rd-reviews {
  padding: clamp(80px, 10vw, 140px) 0;
  background: var(--rd-white);
  position: relative;
}

.rd-reviews__header {
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.rd-reviews__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.rd-reviews__card {
  padding: clamp(28px, 3vw, 40px);
  background: #fafbfc;
  border-radius: var(--rd-radius);
  border: 1px solid var(--rd-border);
}

.rd-reviews__stars {
  display: flex;
  gap: 2px;
  margin-bottom: 1rem;
}

.rd-reviews__stars svg {
  width: 16px;
  height: 16px;
  fill: #f59e0b;
}

.rd-reviews__text {
  font-size: 0.95rem;
  color: var(--rd-body);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 1.25rem;
}

.rd-reviews__card cite {
  font-size: 0.9rem;
  font-style: normal;
  color: var(--rd-body);
}

.rd-reviews__card cite strong {
  color: var(--rd-heading);
}

/* ==========================================================================
   FIX: InlineCta button visibility in rd-page
   ========================================================================== */
.rd-page .inline-cta_button {
  color: white !important;
}

/* ==========================================================================
   FIX: Article header z-index for hero image overlap
   ========================================================================== */
.rd-article-header {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   RESPONSIVE: Tablet (991px)
   ========================================================================== */
@media (max-width: 991px) {
  .rd-hero__title-line {
    font-size: clamp(2.6rem, 7vw, 4.5rem);
  }

  .rd-hero__split {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .rd-hero__split .rd-hero__subtitle {
    margin: 0 auto 3rem;
  }

  .rd-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .rd-approach__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rd-why__grid {
    grid-template-columns: 1fr;
  }

  .rd-reviews__grid {
    grid-template-columns: 1fr;
  }

  .rd-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .rd-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rd-recommended__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rd-featured {
    grid-template-columns: 1fr;
  }

  .rd-compare__head,
  .rd-compare__row {
    grid-template-columns: 100px 1fr 1fr;
  }
}

/* ==========================================================================
   RESPONSIVE: Mobile (767px)
   ========================================================================== */
@media (max-width: 767px) {
  .rd-hero {
    min-height: 90vh;
    padding: 120px 20px 60px;
  }

  .rd-hero__title-line {
    font-size: clamp(2.2rem, 10vw, 3.2rem);
  }

  .rd-hero__scroll { display: none; }

  .rd-editorial__item {
    grid-template-columns: 56px 1fr;
    gap: 0 1rem;
  }

  .rd-cards {
    grid-template-columns: 1fr;
  }

  .rd-cards--2x2 {
    grid-template-columns: 1fr;
  }

  .rd-stats {
    grid-template-columns: 1fr 1fr;
  }

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

  .rd-recommended__grid {
    grid-template-columns: 1fr;
  }

  .rd-row {
    grid-template-columns: 48px 1fr;
  }

  .rd-approach__grid {
    grid-template-columns: 1fr;
  }

  .rd-ind-link {
    grid-template-columns: 48px 1fr auto;
  }

  .rd-ind-link__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }

  .rd-ind-link__content p { display: none; }
  .rd-ind-link__arrow { opacity: 0.4; }

  .rd-why__grid {
    grid-template-columns: 1fr;
  }

  .rd-reviews__grid {
    grid-template-columns: 1fr;
  }

  .rd-quote-hero blockquote p {
    font-size: clamp(1.3rem, 5vw, 1.8rem);
  }

  .rd-cta {
    padding: clamp(80px, 12vw, 120px) 0;
  }

  .rd-compare__head,
  .rd-compare__row {
    grid-template-columns: 1fr;
  }

  .rd-compare__cell[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 4px;
  }

  .rd-compare__head { display: none; }

  .rd-timeline {
    padding-left: 36px;
  }

  .rd-timeline__num {
    left: -36px;
    width: 28px;
    height: 28px;
    font-size: 0.7rem;
  }
}

/* ==========================================================================
   RESPONSIVE: Small Mobile (479px)
   ========================================================================== */
@media (max-width: 479px) {
  .rd-hero__title-line { font-size: 2rem; }
  .rd-page .rd-hero__subtitle { font-size: 0.95rem; }

  .rd-btn {
    padding: 16px 36px;
    font-size: 0.9rem;
    width: 100%;
    max-width: 320px;
  }

  .rd-editorial__item {
    grid-template-columns: 1fr;
  }

  .rd-editorial__num {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }
}

/* ==========================================================================
   AOS override
   ========================================================================== */
.rd-page [data-aos="fade-up"] {
  transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

/* ==========================================================================
   SCROLL-LINKED LINE DIVIDERS
   Lines animate proportionally to scroll position via --rd-scroll (0 to 1)
   set by JS on each section element.
   ========================================================================== */

/* Top line: L→R (light backgrounds) */
.rd-line-top-lr::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 5%, rgba(67, 130, 255, 0.5) 50%, transparent 95%);
  transform: scaleX(var(--rd-scroll, 0));
  transform-origin: left;
}

/* Top line: R→L (dark backgrounds) */
.rd-line-top-rl::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 5%, rgba(100, 160, 255, 0.4) 50%, transparent 95%);
  transform: scaleX(var(--rd-scroll, 0));
  transform-origin: right;
}

/* Bottom line: L→R */
.rd-line-bot-lr::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 5%, rgba(67, 130, 255, 0.4) 50%, transparent 95%);
  transform: scaleX(var(--rd-scroll, 0));
  transform-origin: left;
}

/* Bottom line: R→L */
.rd-line-bot-rl::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 5%, rgba(67, 130, 255, 0.4) 50%, transparent 95%);
  transform: scaleX(var(--rd-scroll, 0));
  transform-origin: right;
}

/* ==========================================================================
   SCROLL-LINKED TEXT UNDERLINES
   Underlines grow proportionally to section scroll progress.
   ========================================================================== */
.rd-underline {
  position: relative;
  display: inline-block;
}

.rd-underline::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 3px;
  border-radius: 1px;
  background: rgba(67, 130, 255, 0.45);
  transform: scaleX(var(--rd-scroll, 0));
  transform-origin: left;
}

.rd-underline--bright::after {
  background: rgba(100, 160, 255, 0.6);
}

/* ==========================================================================
   STAGGERED CARD REVEALS
   Cards fade in once section crosses .in-view threshold.
   ========================================================================== */
.rd-reveal {
  opacity: 0;
  transform: scale(0.96) translateY(16px);
  transition: opacity 0.7s var(--rd-ease), transform 0.7s var(--rd-ease);
}

.in-view .rd-reveal {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.in-view .rd-reveal:nth-child(1) { transition-delay: 0.05s; }
.in-view .rd-reveal:nth-child(2) { transition-delay: 0.15s; }
.in-view .rd-reveal:nth-child(3) { transition-delay: 0.25s; }
.in-view .rd-reveal:nth-child(4) { transition-delay: 0.35s; }
.in-view .rd-reveal:nth-child(5) { transition-delay: 0.45s; }
.in-view .rd-reveal:nth-child(6) { transition-delay: 0.55s; }

/* ==========================================================================
   HOMEPAGE: APPROACH — Dark section with bold step cards
   ========================================================================== */
.rd-approach {
  padding: clamp(80px, 10vw, 140px) 0;
  background: linear-gradient(170deg, var(--rd-navy) 0%, var(--rd-bg-dark) 100%);
  position: relative;
}

.rd-approach__header {
  text-align: center;
  margin-bottom: clamp(48px, 8vw, 80px);
}

.rd-approach__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
}

.rd-approach__step {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--rd-radius);
  padding: clamp(28px, 3vw, 40px);
  transition: all 0.4s var(--rd-ease);
}

.rd-approach__step:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(67, 130, 255, 0.2);
  transform: translateY(-3px);
}

.rd-approach__step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.rd-approach__step-num {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: rgba(67, 130, 255, 0.2);
  line-height: 1;
}

.rd-approach__step-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(67, 130, 255, 0.12);
  display: grid;
  place-items: center;
}

.rd-approach__step-icon img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
}

.rd-approach__step h3 {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  font-weight: 700;
  color: var(--rd-white);
  margin-bottom: 0.75rem;
  line-height: 1.3;
  position: relative;
  display: inline-block;
}

.rd-approach__step h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 3px;
  border-radius: 1px;
  background: rgba(100, 160, 255, 0.6);
  transform: scaleX(var(--rd-scroll, 0));
  transform-origin: left;
}

.rd-approach__step p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.75;
}

/* ==========================================================================
   HOMEPAGE: INDUSTRIES — Light-background horizontal rows with icons
   ========================================================================== */
.rd-industries {
  padding: clamp(80px, 10vw, 140px) 0;
  background: var(--rd-white);
  position: relative;
}

.rd-industries__header {
  text-align: center;
  margin-bottom: clamp(48px, 6vw, 64px);
}

.rd-ind-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.rd-page a.rd-ind-link {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 0 clamp(20px, 3vw, 32px);
  padding: clamp(24px, 3vw, 32px) 0;
  border-bottom: 1px solid var(--rd-border);
  transition: all 0.35s var(--rd-ease);
  color: inherit;
  text-decoration: none;
}

.rd-page a.rd-ind-link:first-child {
  border-top: 1px solid var(--rd-border);
}

.rd-page a.rd-ind-link:hover {
  transform: translateX(8px);
}

.rd-page a.rd-ind-link:hover .rd-ind-link__arrow {
  opacity: 1;
  color: var(--rd-blue);
}

.rd-ind-link__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
}

.rd-ind-link__icon--pharma { background: linear-gradient(135deg, #4382ff, #1b54ff); }
.rd-ind-link__icon--pe { background: linear-gradient(135deg, #041546, #1b54ff); }
.rd-ind-link__icon--meddev { background: linear-gradient(135deg, #00b5ff, #4382ff); }
.rd-ind-link__icon--gov { background: linear-gradient(135deg, #1b54ff, #041546); }
.rd-ind-link__icon--edu { background: linear-gradient(135deg, #4382ff, #6b9fff); }

.rd-ind-link__icon img {
  width: 26px;
  height: 26px;
  filter: brightness(0) invert(1);
}

.rd-ind-link__content h3 {
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  font-weight: 700;
  color: var(--rd-heading);
  margin-bottom: 0.25rem;
  position: relative;
  display: inline-block;
}

.rd-ind-link__content h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 3px;
  border-radius: 1px;
  background: rgba(67, 130, 255, 0.4);
  transform: scaleX(var(--rd-scroll, 0));
  transform-origin: left;
}

.rd-ind-link__content p {
  font-size: 0.9rem;
  color: var(--rd-body);
  line-height: 1.6;
}

.rd-ind-link__arrow {
  font-size: 1.4rem;
  color: var(--rd-body);
  opacity: 0.5;
  transition: all 0.35s var(--rd-ease);
}

/* ==========================================================================
   HOMEPAGE: QUOTE HERO — Enhanced with borders and parallax circle
   ========================================================================== */
.rd-quote-hero--home {
  padding: clamp(100px, 14vw, 200px) clamp(24px, 5vw, 64px);
  background: linear-gradient(180deg, #0a1040 0%, #060820 50%, #0a1040 100%);
  border-top: 2px solid rgba(67, 130, 255, 0.15);
  border-bottom: 2px solid rgba(67, 130, 255, 0.15);
  overflow: hidden;
}

.rd-quote-hero--home::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% + var(--rd-parallax, 0px)));
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(67, 130, 255, 0.06), transparent 60%);
  pointer-events: none;
  transition: transform 0.1s linear;
}

.rd-quote-hero blockquote em {
  font-style: normal;
  color: var(--rd-blue);
}

.rd-quote-hero cite span {
  color: rgba(255, 255, 255, 0.45);
}

/* ==========================================================================
   HOMEPAGE: WHY CAPITAL S — Featured dark + details light
   ========================================================================== */
.rd-why__featured {
  padding: clamp(100px, 14vw, 180px) 0;
  background: linear-gradient(160deg, var(--rd-navy) 0%, #0a2266 50%, var(--rd-bg-dark) 100%);
  position: relative;
  overflow: hidden;
}

.rd-why__featured::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  border: 1px solid rgba(67, 130, 255, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.rd-why__featured-inner {
  max-width: var(--rd-container);
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 64px);
  position: relative;
  z-index: 1;
}

.rd-why__featured-inner .rd-display {
  margin-bottom: 1.5rem;
}

.rd-why__featured-inner p {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.75;
  max-width: 620px;
  margin-bottom: 2.5rem;
}

.rd-why__details {
  padding: clamp(64px, 8vw, 100px) 0;
  background: #fafbfc;
  position: relative;
}

.rd-why__details-header {
  text-align: center;
  margin-bottom: clamp(32px, 5vw, 48px);
}

.rd-why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.rd-why__card {
  padding: clamp(28px, 3vw, 40px);
  background: var(--rd-white);
  border-radius: var(--rd-radius);
  border: 1px solid var(--rd-border);
  transition: all 0.4s var(--rd-ease);
}

.rd-why__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
  border-color: rgba(67, 130, 255, 0.2);
}

.rd-why__card-num {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: rgba(67, 130, 255, 0.15);
  margin-bottom: 1rem;
  line-height: 1;
}

.rd-why__card h3 {
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  font-weight: 700;
  color: var(--rd-heading);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.rd-why__card p {
  font-size: 0.92rem;
  color: var(--rd-body);
  line-height: 1.75;
}

/* ==========================================================================
   HOMEPAGE: REVIEWS — Testimonial cards
   ========================================================================== */
.rd-reviews {
  padding: clamp(80px, 10vw, 140px) 0;
  background: var(--rd-white);
  position: relative;
}

.rd-reviews__header {
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.rd-reviews__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.rd-reviews__card {
  padding: clamp(28px, 3vw, 40px);
  background: #fafbfc;
  border-radius: var(--rd-radius);
  border: 1px solid var(--rd-border);
}

.rd-reviews__stars {
  display: flex;
  gap: 2px;
  margin-bottom: 1rem;
}

.rd-reviews__stars svg {
  width: 16px;
  height: 16px;
  fill: #f59e0b;
}

.rd-reviews__text {
  font-size: 0.95rem;
  color: var(--rd-body);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 1.25rem;
}

.rd-reviews__card cite {
  font-size: 0.9rem;
  font-style: normal;
  color: var(--rd-body);
}

.rd-reviews__card cite strong {
  color: var(--rd-heading);
}

/* ==========================================================================
   HOMEPAGE: CHALLENGE — Editorial section on light background
   ========================================================================== */
.rd-challenge {
  padding: clamp(80px, 10vw, 140px) 0;
  background: #fafbfc;
  position: relative;
}

.rd-challenge__header {
  text-align: center;
  margin-bottom: clamp(48px, 8vw, 80px);
}

.rd-challenge__header .rd-display {
  max-width: 600px;
  margin: 0 auto;
}

/* ==========================================================================
   HOMEPAGE: Staggered card reveals for approach + why cards
   ========================================================================== */
.rd-approach__step,
.rd-why__card {
  opacity: 0;
  transform: scale(0.96) translateY(16px);
  transition: opacity 0.7s var(--rd-ease), transform 0.7s var(--rd-ease);
}

.rd-approach.in-view .rd-approach__step,
.rd-why__details.in-view .rd-why__card {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.rd-approach.in-view .rd-approach__step:nth-child(1) { transition-delay: 0.05s; }
.rd-approach.in-view .rd-approach__step:nth-child(2) { transition-delay: 0.15s; }
.rd-approach.in-view .rd-approach__step:nth-child(3) { transition-delay: 0.25s; }
.rd-approach.in-view .rd-approach__step:nth-child(4) { transition-delay: 0.35s; }

.rd-why__details.in-view .rd-why__card:nth-child(1) { transition-delay: 0.05s; }
.rd-why__details.in-view .rd-why__card:nth-child(2) { transition-delay: 0.15s; }
.rd-why__details.in-view .rd-why__card:nth-child(3) { transition-delay: 0.25s; }

/* ==========================================================================
   HOMEPAGE: Responsive overrides
   ========================================================================== */
@media (max-width: 991px) {
  .rd-approach__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rd-why__grid {
    grid-template-columns: 1fr;
  }

  .rd-reviews__grid {
    grid-template-columns: 1fr;
  }
}

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

  .rd-page a.rd-ind-link {
    grid-template-columns: 48px 1fr auto;
  }

  .rd-ind-link__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }

  .rd-ind-link__content p { display: none; }

  .rd-ind-link__arrow { opacity: 0.4; }

  .rd-why__grid {
    grid-template-columns: 1fr;
  }

  .rd-quote-hero--home blockquote p {
    font-size: clamp(1.3rem, 5vw, 1.8rem);
  }
}

@media (max-width: 479px) {
  .rd-editorial__item {
    grid-template-columns: 1fr;
  }

  .rd-editorial__num {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .rd-line-top-lr::before,
  .rd-line-top-rl::before,
  .rd-line-bot-lr::after,
  .rd-line-bot-rl::after {
    transform: scaleX(1) !important;
    transition: none !important;
  }

  .rd-underline::after {
    transform: scaleX(1) !important;
    transition: none !important;
  }

  .rd-reveal,
  .rd-approach__step,
  .rd-why__card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .rd-hero__mesh,
  .rd-hero__scroll-line,
  .rd-hero__title-line--accent,
  .rd-hero__title-line--accent::after {
    animation: none !important;
  }

  .rd-cta { animation: none !important; }
}
