/* ==========================================================================
   iLuvion brand system
   Official palette: #5b50a1 purple / #4a67b1 blue / #231f20 ink / #f5f5f5 paper
   Fonts: Futura (Jost fallback) for display and body, Nesobrite (Michroma
   fallback) for small technical labels. Loaded after the legacy stylesheets.
   ========================================================================== */

:root {
  --brand-purple: #5b50a1;
  --brand-blue: #4a67b1;
  --ink: #231f20;
  --paper: #f5f5f5;
  --white: #ffffff;
  --ink-soft: rgba(35, 31, 32, 0.64);
  --ink-faint: rgba(35, 31, 32, 0.38);
  --hairline: rgba(35, 31, 32, 0.12);
  --hairline-dark: rgba(245, 245, 245, 0.14);
  --grad: linear-gradient(135deg, #5b50a1 0%, #4a67b1 100%);
  --purple-tint: rgba(91, 80, 161, 0.08);
  --blue-tint: rgba(74, 103, 177, 0.08);
  --font-display: "Futura", "Jost", "Century Gothic", sans-serif;
  --font-body: "Futura", "Jost", "Century Gothic", sans-serif;
  --font-tech: "Nesobrite", "Michroma", sans-serif;
}

.rb-scope {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

.rb-scope * {
  box-sizing: border-box;
}

.rb-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Buttons ---------- */
.rb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}
.rb-btn:hover {
  transform: translateY(-2px);
}
.rb-btn-solid {
  background: var(--grad);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(91, 80, 161, 0.28);
}
.rb-btn-solid:hover {
  box-shadow: 0 10px 26px rgba(74, 103, 177, 0.36);
  color: var(--white);
}
.rb-btn-outline {
  background: var(--white);
  color: var(--ink);
  border-color: rgba(35, 31, 32, 0.18);
}
.rb-btn-outline:hover {
  border-color: var(--brand-purple);
  color: var(--brand-purple);
}
.rb-btn-solid-onDark {
  background: var(--paper);
  color: var(--ink);
}
.rb-btn-solid-onDark:hover {
  background: var(--white);
  color: var(--brand-purple);
}

/* ---------- Header ---------- */
header.header-area.rb-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
  z-index: 999;
  padding: 0;
  box-shadow: none;
}
.rb-header .rb-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.rb-header .rb-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
}
.rb-header .rb-logo img {
  height: 46px;
  width: auto;
  display: block;
}
.rb-header ul.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.rb-header ul.nav li {
  list-style: none;
}
.rb-header ul.nav a:not(.rb-btn) {
  font-family: var(--font-tech);
  font-size: 0.62rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}
.rb-header ul.nav a:not(.rb-btn):hover,
.rb-header ul.nav a.active {
  color: var(--brand-purple);
}
.rb-header-ctas {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.rb-header .menu-trigger {
  display: none;
}

@media (max-width: 991px) {
  .rb-header-ctas {
    display: none;
  }
  .rb-header ul.nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
    padding: 20px 32px 24px;
    background: var(--paper);
    border-top: 1px solid var(--hairline);
  }
  .rb-header .rb-header-inner {
    flex-wrap: wrap;
    padding: 12px 20px;
  }
  .rb-header .rb-logo img {
    height: 38px;
  }
  .rb-header .menu-trigger {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-tech);
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    cursor: pointer;
    color: var(--ink);
  }
}

/* ---------- Type ---------- */
.rb-eyebrow,
.rb-kicker {
  display: inline-block;
  font-family: var(--font-tech);
  font-size: 0.64rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 18px;
}
.rb-h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.3rem, 5vw, 3.9rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 22px;
}
.rb-h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.012em;
  margin: 0 0 18px;
}
.rb-grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Sections ---------- */
.rb-section {
  padding: 104px 0;
}
.rb-section-pale {
  background: var(--paper);
}
.rb-section-white {
  background: var(--white);
}
.rb-section-dark {
  background: var(--ink);
  color: var(--paper);
}

/* Section heads: left aligned, never centered */
.rb-tiles-head,
.rb-matrix-head,
.rb-solution-head {
  max-width: 720px;
  margin: 0 0 48px;
  text-align: left;
}
.rb-solution-head p {
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0;
}

/* ---------- Hero scene (full viewport, 3D behind, copy left) ---------- */
.rb-heroscene {
  position: relative;
  background: var(--paper);
  overflow: hidden;
}
.rb-three {
  display: none;
}
.rb-heroscene-overlay {
  position: relative;
  z-index: 2;
  padding: 90px 0 70px;
}
.rb-hero-copy {
  max-width: 600px;
}
.rb-hero-copy .rb-h1 {
  margin-bottom: 18px;
}
.rb-hero-sub {
  font-size: 1.06rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 520px;
  margin: 0 0 32px;
}
.rb-hero-ctas {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
/* Stage cards: rise into the space the hero copy vacates, one per phase */
.rb-stage-item {
  max-width: 460px;
  margin-top: 32px;
}
/* phase progress rail: only shown on phones while the 3D scene drives */
.rb-stage-progress {
  display: none;
}
.rb-stage-item .rb-step-num {
  font-family: var(--font-tech);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  margin-bottom: 14px;
}
.rb-stage-item h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  letter-spacing: -0.012em;
  margin: 0 0 14px;
  color: var(--ink);
}
.rb-stage-item p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 400px;
}
@media (min-width: 901px) {
  .rb-heroscene-overlay .rb-container {
    position: relative;
    height: 100%;
  }
  body:not(.rb-no3d) .rb-heroscene-overlay .rb-container {
    display: flex;
    align-items: center;
  }
  body:not(.rb-no3d) .rb-stage {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 32px;
    display: grid;
    align-items: center;
    max-width: 460px;
    pointer-events: none;
  }
  body:not(.rb-no3d) .rb-stage-item {
    grid-area: 1 / 1;
    margin-top: 0;
    opacity: 0;
    visibility: hidden;
  }
}
.rb-scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  font-family: var(--font-tech);
  font-size: 0.56rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.rb-scroll-cue::after {
  content: "";
  display: block;
  width: 44px;
  height: 1px;
  background: linear-gradient(90deg, var(--brand-purple), transparent);
}

@media (min-width: 901px) {
  .rb-heroscene {
    min-height: 100vh;
  }
  .rb-three {
    display: block;
    position: absolute;
    inset: 0;
  }
  .rb-three canvas {
    display: block;
    width: 100%;
    height: 100%;
  }
  .rb-heroscene-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: 0;
    pointer-events: none;
  }
  .rb-heroscene-overlay .rb-container {
    width: 100%;
  }
  .rb-hero-copy,
  .rb-steps,
  .rb-scroll-cue {
    pointer-events: auto;
  }
  body.rb-no3d .rb-heroscene {
    min-height: 0;
  }
  body.rb-no3d .rb-heroscene-overlay {
    position: relative;
    inset: auto;
    padding: 120px 0 90px;
  }
}

/* Phones get the same scroll-driven scene, full-bleed behind the copy.
   Everything is gated on :not(.rb-no3d) so devices without WebGL (or with
   reduced motion set) fall back to the static stacked layout. */
@media (max-width: 900px) {
  body:not(.rb-no3d) .rb-heroscene {
    min-height: 100vh;
    min-height: 100svh;
  }
  body:not(.rb-no3d) .rb-three {
    display: block;
    position: absolute;
    inset: 0;
  }
  body:not(.rb-no3d) .rb-three canvas {
    display: block;
    width: 100%;
    height: 100%;
  }
  body:not(.rb-no3d) .rb-heroscene-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: 76px 0 24px;
    pointer-events: none;
  }
  body:not(.rb-no3d) .rb-heroscene-overlay .rb-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
  }
  body:not(.rb-no3d) .rb-hero-copy,
  body:not(.rb-no3d) .rb-scroll-cue {
    pointer-events: auto;
  }
  body:not(.rb-no3d) .rb-scroll-cue {
    margin-top: 28px;
  }
  /* Stage cards become a glass sheet pinned to the bottom of the phone
     screen, floating over the 3D scene like a story overlay */
  body:not(.rb-no3d) .rb-stage {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 76px 20px calc(28px + env(safe-area-inset-bottom));
    display: grid;
    align-items: end;
    pointer-events: none;
  }
  body:not(.rb-no3d) .rb-stage-item {
    grid-area: 1 / 1;
    margin-top: 0;
    opacity: 0;
    visibility: hidden;
    max-width: none;
    background: rgba(245, 245, 245, 0.78);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    backdrop-filter: blur(16px) saturate(1.4);
    border: 1px solid rgba(35, 31, 32, 0.08);
    border-radius: 20px;
    padding: 22px 24px;
    box-shadow: 0 18px 44px rgba(35, 31, 32, 0.14);
  }
  body:not(.rb-no3d) .rb-stage-item h3 {
    font-size: 1.7rem;
  }
  body:not(.rb-no3d) .rb-stage-item p {
    font-size: 0.95rem;
    max-width: none;
  }
  /* Story-style progress rail on the right edge: one dot per phase */
  body:not(.rb-no3d) .rb-stage-progress {
    display: flex;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    flex-direction: column;
    gap: 10px;
  }
  body:not(.rb-no3d) .rb-stage-dot {
    width: 6px;
    height: 22px;
    border-radius: 3px;
    background: rgba(35, 31, 32, 0.14);
    transition: background 0.3s ease, height 0.3s ease;
  }
  body:not(.rb-no3d) .rb-stage-dot.is-on {
    height: 44px;
    background: linear-gradient(180deg, var(--brand-purple), var(--brand-blue));
  }
}

/* ---------- Outcome tiles ---------- */
.rb-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.rb-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: var(--white);
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.96rem;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.rb-tile:hover {
  border-color: var(--brand-blue);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(74, 103, 177, 0.14);
  color: var(--ink);
}
.rb-tile .rb-arrow {
  color: var(--brand-blue);
  flex-shrink: 0;
}
@media (max-width: 900px) {
  .rb-tiles {
    grid-template-columns: 1fr;
  }
}

/* ---------- Capability matrix ---------- */
.rb-matrix-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
}
.rb-matrix-card {
  padding: 36px 30px;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: var(--white);
}
.rb-matrix-card .rb-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 22px;
  color: var(--brand-purple);
}
.rb-matrix-card .rb-icon svg {
  width: 100%;
  height: 100%;
}
.rb-matrix-card h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0 0 10px;
}
.rb-matrix-card .rb-matrix-tag {
  display: block;
  font-family: var(--font-tech);
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}
.rb-matrix-card p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0;
}
.rb-matrix-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.7;
}
@media (max-width: 900px) {
  .rb-matrix-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .rb-matrix-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Packages ---------- */
.rb-packages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.rb-package {
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background: var(--white);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.rb-package:hover {
  border-color: var(--brand-purple);
  box-shadow: 0 14px 34px rgba(91, 80, 161, 0.12);
  transform: translateY(-3px);
}
.rb-package .rb-package-scope {
  display: inline-block;
  font-family: var(--font-tech);
  font-size: 0.56rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}
.rb-package h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.22rem;
  margin: 0 0 8px;
}
.rb-package .rb-package-tagline {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0 0 20px;
}
.rb-package ul {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  flex-grow: 1;
}
.rb-package ul li {
  position: relative;
  padding: 7px 0 7px 26px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.rb-package ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--brand-blue);
  border-bottom: 2px solid var(--brand-blue);
  transform: rotate(-45deg) scale(0.8);
}
.rb-package .rb-btn {
  align-self: flex-start;
}
.rb-packages-note {
  text-align: left;
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-top: 28px;
}
.rb-packages-note a {
  color: var(--brand-purple);
  font-weight: 600;
  text-decoration: none;
}
@media (max-width: 900px) {
  .rb-packages {
    grid-template-columns: 1fr;
  }
}

/* ---------- Speed band ---------- */
.rb-speed {
  background: var(--ink);
  color: var(--paper);
  padding: 84px 0;
}
.rb-speed-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.rb-speed h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  letter-spacing: -0.015em;
  line-height: 1.05;
  margin: 0;
}
.rb-speed h2 span {
  background: linear-gradient(135deg, #8f85d4 0%, #7f9bd9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.rb-speed p {
  color: rgba(245, 245, 245, 0.66);
  line-height: 1.7;
  margin: 0 0 26px;
}
.rb-speed-points {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rb-speed-points li {
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline-dark);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}
.rb-speed-points li span {
  display: block;
  font-weight: 400;
  font-size: 0.86rem;
  color: rgba(245, 245, 245, 0.55);
  margin-top: 4px;
}
@media (max-width: 900px) {
  .rb-speed-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ---------- Scorecard ---------- */
.rb-scorecard-grid {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: 64px;
  align-items: start;
}
.rb-scorecard-intro p {
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0 0 16px;
}
.rb-scorecard {
  border: 1px solid var(--hairline);
  border-radius: 18px;
  background: var(--white);
  padding: 36px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 18px 44px rgba(35, 31, 32, 0.06);
}
.rb-scorecard-progress {
  height: 4px;
  border-radius: 2px;
  background: rgba(35, 31, 32, 0.08);
  margin-bottom: 28px;
  overflow: hidden;
}
.rb-scorecard-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--grad);
  border-radius: 2px;
  transition: width 0.3s ease;
}
.rb-scorecard-step {
  font-family: var(--font-tech);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}
.rb-scorecard h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  margin: 0 0 22px;
}
.rb-scorecard-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rb-scorecard-option {
  text-align: left;
  padding: 15px 18px;
  border: 1px solid rgba(35, 31, 32, 0.16);
  border-radius: 12px;
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.rb-scorecard-option:hover {
  border-color: var(--brand-purple);
  background: var(--purple-tint);
}
.rb-scorecard-result {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.rb-scorecard-score {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 3rem;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 6px;
}
.rb-scorecard-verdict {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
}
.rb-scorecard-result p {
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0 0 24px;
}
.rb-scorecard-restart {
  margin-top: 14px;
  background: none;
  border: none;
  padding: 0;
  color: var(--ink-soft);
  font-size: 0.85rem;
  text-decoration: underline;
  cursor: pointer;
}
@media (max-width: 900px) {
  .rb-scorecard-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .rb-scorecard {
    padding: 26px 20px;
  }
}

/* ---------- FAQ ---------- */
.rb-faq-grid {
  display: grid;
  grid-template-columns: minmax(240px, 380px) 1fr;
  gap: 64px;
}
.rb-faq-list {
  border-top: 1px solid var(--hairline);
}
.rb-faq-item {
  border-bottom: 1px solid var(--hairline);
}
.rb-faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 26px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}
.rb-faq-item summary::-webkit-details-marker {
  display: none;
}
.rb-faq-item summary .rb-faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--grad);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: transform 0.25s ease;
}
.rb-faq-item[open] summary .rb-faq-icon {
  transform: rotate(45deg);
}
.rb-faq-item p {
  color: var(--ink-soft);
  line-height: 1.7;
  font-size: 0.95rem;
  margin: 0 0 26px;
  max-width: 60ch;
}
@media (max-width: 900px) {
  .rb-faq-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ---------- Closing ---------- */
.rb-closing {
  background: var(--ink);
  color: var(--paper);
  padding-bottom: 0;
}
.rb-closing-top {
  padding: 100px 0 70px;
  text-align: left;
}
.rb-closing-top .rb-h1 {
  color: var(--paper);
  max-width: 720px;
}
.rb-closing-links {
  border-top: 1px solid var(--hairline-dark);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.rb-closing-link {
  padding: 30px 32px;
  border-right: 1px solid var(--hairline-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  transition: background-color 0.2s ease;
}
.rb-closing-link:hover {
  background: rgba(245, 245, 245, 0.05);
  color: var(--paper);
}
.rb-closing-link:last-child {
  border-right: none;
}
.rb-closing-link .rb-arrow {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 1.3rem;
}
@media (max-width: 900px) {
  .rb-closing-links {
    grid-template-columns: 1fr;
  }
  .rb-closing-link {
    border-right: none;
    border-bottom: 1px solid var(--hairline-dark);
  }
}

/* ---------- Interior pages ---------- */
.rb-page-hero {
  background: var(--paper);
  padding: 96px 0 72px;
  text-align: left;
}
.rb-page-hero .rb-h1 {
  max-width: 760px;
  margin: 0 0 20px;
}
.rb-page-hero p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0;
}
.rb-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.rb-split img {
  width: 100%;
  height: auto;
  display: block;
}
.rb-split p {
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0 0 18px;
}
.rb-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
  background: var(--white);
}
.rb-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
  background: var(--white);
}
.rb-num-list {
  max-width: 780px;
  margin: 0;
}
.rb-num-list .rb-mandate-item {
  padding: 26px 0;
  border-top: 1px solid var(--hairline);
}
.rb-num-list .rb-mandate-item:last-child {
  border-bottom: 1px solid var(--hairline);
}
.rb-num-list .rb-mandate-num {
  font-family: var(--font-tech);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  margin-bottom: 8px;
}
.rb-num-list h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  margin: 0 0 8px;
}
.rb-num-list .rb-mandate-item p,
.rb-num-list .rb-mandate-item ul {
  color: var(--ink-soft);
  line-height: 1.7;
}
.rb-num-list .rb-mandate-item ul {
  margin: 10px 0 0;
  padding-left: 20px;
  font-size: 0.95rem;
}
.rb-cta-strip {
  background: var(--ink);
  color: var(--paper);
  padding: 56px 0;
}
.rb-cta-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.rb-cta-strip h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  margin: 0;
}
.rb-contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: start;
}
.rb-form fieldset {
  border: none;
  margin: 0;
  padding: 0;
}
.rb-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.rb-form input,
.rb-form textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid rgba(35, 31, 32, 0.16);
  border-radius: 12px;
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease;
}
.rb-form input:focus,
.rb-form textarea:focus {
  border-color: var(--brand-purple);
}
.rb-form textarea {
  min-height: 170px;
  resize: vertical;
  margin-bottom: 14px;
}
.rb-form-status {
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 18px;
}
.rb-form-status.is-success {
  background: rgba(91, 80, 161, 0.08);
  border: 1px solid rgba(91, 80, 161, 0.24);
  color: var(--brand-purple);
}
.rb-form-status.is-error {
  background: rgba(190, 40, 40, 0.08);
  border: 1px solid rgba(190, 40, 40, 0.24);
  color: #a52424;
}
.rb-contact-info ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rb-contact-info li {
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline);
}
.rb-contact-info .rb-contact-label {
  display: block;
  font-family: var(--font-tech);
  font-size: 0.56rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 6px;
}
.rb-contact-info a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}
.rb-contact-info a:hover {
  color: var(--brand-purple);
}
/* topic chips: one tap pre-fills the subject */
.rb-chips-label {
  font-family: var(--font-tech);
  font-size: 0.56rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 12px;
}
.rb-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}
.rb-chip {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(35, 31, 32, 0.16);
  background: var(--white);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.rb-chip:hover {
  border-color: var(--brand-purple);
  color: var(--brand-purple);
  transform: translateY(-1px);
}
.rb-chip.is-active {
  background: var(--grad);
  border-color: transparent;
  color: var(--white);
}
.rb-contact-console .rb-console {
  margin-bottom: 28px;
}
@media (max-width: 900px) {
  .rb-split,
  .rb-contact-grid,
  .rb-form-grid {
    grid-template-columns: 1fr;
  }
  .rb-split,
  .rb-contact-grid {
    gap: 36px;
  }
  .rb-grid-2,
  .rb-grid-3 {
    grid-template-columns: 1fr;
  }
}

/* ---------- Slim footer ---------- */
.rb-footer {
  background: var(--ink);
  color: rgba(245, 245, 245, 0.7);
  padding: 72px 0 0;
}
.rb-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 64px;
}
.rb-footer-brand img {
  height: 44px;
  width: auto;
  display: block;
}
.rb-footer-blocks {
  position: relative;
  width: 10px;
  height: 10px;
  margin-top: 34px;
  background: var(--brand-purple);
  box-shadow:
    14px 14px 0 var(--brand-blue),
    28px 0 0 rgba(91, 80, 161, 0.55),
    0 28px 0 rgba(74, 103, 177, 0.5),
    28px 28px 0 var(--brand-purple),
    42px 14px 0 rgba(74, 103, 177, 0.35);
  animation: rbBlocksFloat 5s ease-in-out infinite;
}
@keyframes rbBlocksFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
.rb-footer-col h5 {
  font-family: var(--font-tech);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.45);
  margin: 0 0 20px;
}
.rb-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rb-footer-col li {
  margin-bottom: 12px;
}
.rb-footer-col a {
  color: rgba(245, 245, 245, 0.78);
  text-decoration: none;
  font-size: 0.94rem;
  transition: color 0.2s ease;
}
.rb-footer-col a:hover {
  color: var(--paper);
}
.rb-footer-social {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}
.rb-footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(245, 245, 245, 0.08);
  border: 1px solid var(--hairline-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(245, 245, 245, 0.75);
  font-size: 0.85rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.rb-footer-social a:hover {
  background: var(--grad);
  color: var(--white);
}
.rb-footer-bottom {
  border-top: 1px solid var(--hairline-dark);
  padding: 20px 0;
}
.rb-footer-bottom .rb-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: rgba(245, 245, 245, 0.45);
}
.rb-footer-bottom a {
  color: rgba(245, 245, 245, 0.6);
  text-decoration: none;
}
@media (max-width: 900px) {
  .rb-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .rb-footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Reveal on scroll ---------- */
.rb-reveal {
  opacity: 0;
  transition: opacity 0.6s ease;
}
.rb-reveal.rb-in-view {
  opacity: 1;
}

/* ---------- Block ornament (echoes the hero cubes) ---------- */
.rb-blocks {
  position: absolute;
  top: 26px;
  right: 30px;
  width: 9px;
  height: 9px;
  background: var(--blk-a, #ffffff);
  box-shadow:
    13px 13px 0 var(--blk-b, rgba(255, 255, 255, 0.55)),
    26px 0 0 var(--blk-b, rgba(255, 255, 255, 0.55)),
    0 26px 0 var(--blk-b, rgba(255, 255, 255, 0.4)),
    26px 26px 0 var(--blk-a, #ffffff);
  animation: rbBlocksFloat 6s ease-in-out infinite;
}

/* ---------- Capability cards: alternating brand blocks ---------- */
.rb-cap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.rb-cap-card {
  position: relative;
  border-radius: 18px;
  padding: 40px 28px 34px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.rb-cap-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(35, 31, 32, 0.16);
}
.rb-cap-card .rb-cap-tag {
  display: block;
  font-family: var(--font-tech);
  font-size: 0.56rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 14px;
  opacity: 0.75;
}
.rb-cap-card h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.18rem;
  margin: 0 0 12px;
}
.rb-cap-card p {
  font-size: 0.9rem;
  line-height: 1.65;
  margin: 0;
  opacity: 0.85;
  /* legacy stylesheets force a gray p color; inherit the card's own */
  color: inherit;
}
.rb-cap-card h4,
.rb-cap-card .rb-cap-tag {
  color: inherit;
}
.rb-cap-purple {
  background: var(--grad);
  color: var(--white);
  --blk-a: rgba(255, 255, 255, 0.95);
  --blk-b: rgba(255, 255, 255, 0.4);
}
.rb-cap-paper {
  background: var(--white);
  border: 1px solid var(--hairline);
  color: var(--ink);
  --blk-a: var(--brand-purple);
  --blk-b: rgba(91, 80, 161, 0.35);
}
.rb-cap-paper p {
  color: var(--ink-soft);
}
.rb-cap-ink {
  background: var(--ink);
  color: var(--paper);
  --blk-a: var(--brand-blue);
  --blk-b: rgba(74, 103, 177, 0.45);
}
.rb-cap-blue {
  background: linear-gradient(135deg, #4a67b1 0%, #5b50a1 100%);
  color: var(--white);
  --blk-a: rgba(255, 255, 255, 0.95);
  --blk-b: rgba(255, 255, 255, 0.4);
}
.rb-cap-grid.rb-cap-3 {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) {
  .rb-cap-grid,
  .rb-cap-grid.rb-cap-3 {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .rb-cap-grid,
  .rb-cap-grid.rb-cap-3 {
    grid-template-columns: 1fr;
  }
}

/* ---------- Dashboard widgets (Days, not months) ---------- */
.rb-dash {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.rb-dash-card {
  background: #1a1718;
  border: 1px solid var(--hairline-dark);
  border-radius: 16px;
  padding: 22px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rb-dash-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.rb-dash-label {
  font-family: var(--font-tech);
  font-size: 0.56rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.5);
}
.rb-dash-metric {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.7rem;
  color: var(--paper);
  line-height: 1;
}
.rb-dash-metric i {
  font-style: normal;
  font-family: var(--font-tech);
  font-size: 0.52rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.45);
  margin-left: 6px;
}
.rb-dash-card > p {
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(245, 245, 245, 0.55);
  margin: 0;
}
.rb-dash-fig {
  margin-top: auto;
  padding-top: 10px;
}
.rb-dash-fig svg {
  display: block;
  width: 100%;
  height: auto;
}
/* gauge arc draws in when .rb-on lands */
.rb-dash .rb-arc-val {
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  transition: stroke-dashoffset 1.4s cubic-bezier(0.22, 0.8, 0.3, 1);
}
.rb-dash-card.rb-on .rb-arc-val {
  stroke-dashoffset: 66;
}
/* bars grow with stagger */
.rb-dash .rb-bar {
  transform: scaleY(0.06);
  transform-origin: bottom;
  transition: transform 0.9s cubic-bezier(0.22, 0.8, 0.3, 1);
}
.rb-dash-card.rb-on .rb-bar {
  transform: scaleY(1);
}
.rb-dash-card.rb-on .rb-bar:nth-child(2) { transition-delay: 0.08s; }
.rb-dash-card.rb-on .rb-bar:nth-child(3) { transition-delay: 0.16s; }
.rb-dash-card.rb-on .rb-bar:nth-child(4) { transition-delay: 0.24s; }
.rb-dash-card.rb-on .rb-bar:nth-child(5) { transition-delay: 0.32s; }
.rb-dash-card.rb-on .rb-bar:nth-child(6) { transition-delay: 0.4s; }
.rb-dash-card.rb-on .rb-bar:nth-child(7) { transition-delay: 0.48s; }
/* needle sweeps */
.rb-dash .rb-needle {
  transform: rotate(-115deg);
  transform-origin: 60px 60px;
  transition: transform 1.5s cubic-bezier(0.3, 1.2, 0.35, 1);
}
.rb-dash-card.rb-on .rb-needle {
  transform: rotate(52deg);
}
.rb-dash .rb-dot-pulse {
  animation: rbDotPulse 2.2s ease-in-out infinite;
}
@keyframes rbDotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}
@media (max-width: 900px) {
  .rb-dash {
    grid-template-columns: 1fr;
  }
}

/* ---------- Agent console card (About) ---------- */
.rb-console {
  background: var(--ink);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(35, 31, 32, 0.22);
}
.rb-console-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--hairline-dark);
}
.rb-console-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(245, 245, 245, 0.18);
}
.rb-console-bar span:first-child {
  background: var(--brand-purple);
}
.rb-console-bar span:nth-child(2) {
  background: var(--brand-blue);
}
.rb-console-bar em {
  margin-left: auto;
  font-style: normal;
  font-family: var(--font-tech);
  font-size: 0.56rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.4);
}
.rb-console-body {
  padding: 26px 24px 30px;
}
.rb-console-body p {
  font-family: "Courier New", monospace;
  font-size: 0.92rem;
  color: rgba(245, 245, 245, 0.85);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.rb-console-body p b {
  color: var(--brand-blue);
  font-weight: 700;
}
.rb-console-body .ok,
.rb-console-body .run {
  margin-left: auto;
  font-family: var(--font-tech);
  font-size: 0.52rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.rb-console-body .ok {
  color: #9be8c5;
  background: rgba(155, 232, 197, 0.1);
}
.rb-console-body .run {
  color: #b5aef0;
  background: rgba(91, 80, 161, 0.28);
  animation: rbDotPulse 1.8s ease-in-out infinite;
}
.rb-caret {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--paper);
  animation: rbCaret 1s steps(1) infinite;
}
@keyframes rbCaret {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* ---------- Magazine services layout (Solutions) ---------- */
.rb-mag-head {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  align-items: end;
  margin-bottom: 56px;
}
.rb-mag-head p {
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0 0 8px;
}
.rb-mag-layout {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 44px;
  align-items: start;
}
.rb-mag-index {
  position: sticky;
  top: 110px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.rb-mag-index li {
  margin-bottom: 14px;
}
.rb-mag-index a {
  font-family: var(--font-tech);
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-decoration: none;
  transition: color 0.2s ease;
}
.rb-mag-index a:hover {
  color: var(--brand-purple);
}
.rb-mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.rb-mos-card {
  position: relative;
  border-radius: 18px;
  padding: 36px 30px;
  overflow: hidden;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.rb-mos-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(35, 31, 32, 0.16);
}
.rb-mos-card .rb-mos-num {
  font-family: var(--font-tech);
  font-size: 0.56rem;
  letter-spacing: 0.18em;
  margin-bottom: 16px;
  opacity: 0.7;
}
.rb-mos-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.45rem;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.rb-mos-card p {
  font-size: 0.94rem;
  line-height: 1.65;
  margin: 0;
  opacity: 0.85;
  max-width: 46ch;
  color: inherit;
}
.rb-mos-card h3,
.rb-mos-card .rb-mos-num {
  color: inherit;
}
.rb-mos-card ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.rb-mos-card ul li {
  font-family: var(--font-tech);
  font-size: 0.52rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid currentColor;
  opacity: 0.7;
}
.rb-mos-7 { grid-column: span 7; }
.rb-mos-5 { grid-column: span 5; }
.rb-mos-6 { grid-column: span 6; }
@media (max-width: 991px) {
  .rb-mag-head {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .rb-mag-layout {
    grid-template-columns: 1fr;
  }
  .rb-mag-index {
    display: none;
  }
  .rb-mos-7, .rb-mos-5, .rb-mos-6 {
    grid-column: span 12;
  }
}
