:root {
  --rb-purple: #472a99;
  --rb-purple-dark: #1a0b2e;
  --rb-cream: #faf6ef;
  --rb-lilac: #d4c5f9;
  --rb-violet-light: #a78bfa;
}

/* Preserve the original header contrast on dark sections. */
header > a,
header > div > a,
header > div > button {
  transition: color 180ms ease, border-color 180ms ease, opacity 180ms ease;
}

body.rb-header-on-dark header > a,
body.rb-header-on-dark header > div > a,
body.rb-header-on-dark header > div > button,
body.rb-menu-open header > a,
body.rb-menu-open header > div > a,
body.rb-menu-open header > div > button {
  color: var(--rb-cream) !important;
  border-color: rgba(250, 246, 239, 0.4) !important;
}

body.rb-header-on-dark header > a span,
body.rb-menu-open header > a span {
  color: var(--rb-cream) !important;
}

/* The small hero label needs a tiny optical correction against large display type. */
.rb-optical-eyebrow {
  margin-left: 0.45em;
}

.rb-home .rb-hero-purple {
  color: var(--rb-purple) !important;
}

/* Manifesto: a quiet white card using the existing brand purple. */
.rb-manifest-section > div {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4.5rem);
  border: 1px solid rgba(71, 42, 153, 0.18);
  border-radius: clamp(1.5rem, 3vw, 2.5rem);
  background:
    radial-gradient(circle at 100% 0%, rgba(167, 139, 250, 0.16), transparent 36%),
    #fff;
  box-shadow: 0 1.5rem 4rem rgba(26, 11, 46, 0.07);
}

.rb-manifest-section > div::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0.35rem;
  background: var(--rb-purple);
}

/* Services index: keep the original card design and align content within each row. */
.rb-service-card {
  min-height: 290px !important;
  justify-content: flex-start !important;
  gap: 1.4rem;
}

.rb-service-card::after,
.rb-work-card::after {
  content: none !important;
  display: none !important;
}

.rb-service-card > div:first-of-type > span:first-child {
  width: 2.5rem !important;
  height: 2.5rem !important;
  flex: 0 0 2.5rem;
}

.rb-service-card > div:first-of-type > span:first-child svg {
  width: 1.15rem !important;
  height: 1.15rem !important;
}

.rb-service-card > div:last-child {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  width: 100%;
}

.rb-service-card > div:last-child h2 {
  min-height: 4.75rem;
}

.rb-service-card > div:last-child p {
  flex: 1 1 auto;
}

.rb-card-cta {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  margin-top: 1.2rem;
  border-radius: 999px;
  padding: 0.65rem 0.95rem;
  background: var(--rb-purple);
  color: var(--rb-cream);
  font-family: var(--font-fredoka), sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.rb-service-card:hover .rb-card-cta {
  background: var(--rb-violet-light);
  color: var(--rb-purple-dark);
  transform: translateY(-2px);
}

/* Project index cards retain their original gradients and dimensions. */
.rb-work-card .rb-card-cta {
  background: var(--rb-cream);
  color: var(--rb-purple);
}

.rb-work-card:hover .rb-card-cta {
  background: var(--rb-lilac);
  color: var(--rb-purple-dark);
}

/* Original custom cursor behavior. Service cards use the normal dot only. */
.rb-cursor {
  opacity: 0;
  transform: translate3d(-100px, -100px, 0);
  transition: opacity 150ms ease;
  will-change: transform;
}

.rb-cursor.is-visible {
  opacity: 1;
}

.rb-cursor > div {
  transform: translate(-50%, -50%);
}

.rb-cursor.has-label > div {
  width: 7.2rem !important;
  height: 7.2rem !important;
  padding: 1rem !important;
  background: var(--rb-cream) !important;
  color: var(--rb-purple) !important;
  transform: translate(-22%, -82%) !important;
  white-space: normal !important;
  line-height: 1.2 !important;
}

.rb-cursor.rb-on-dark > div {
  background: var(--rb-cream) !important;
  color: var(--rb-purple) !important;
}

/* Numbered items on service and project details. */
.rb-numbered-item {
  display: grid !important;
  grid-template-columns: 3.2rem minmax(0, 1fr);
  column-gap: 0.8rem;
  align-items: start;
}

.rb-numbered-item > .rb-workflow-number {
  grid-column: 1;
  grid-row: 1;
  align-self: baseline;
  min-width: 2.2rem;
  margin-top: 0 !important;
  font-size: 1.35rem !important;
  font-weight: 600;
  line-height: 1.25 !important;
}

.rb-numbered-item > h2,
.rb-numbered-item > h3 {
  grid-column: 2;
  grid-row: 1;
  align-self: baseline;
  margin-top: 0 !important;
  line-height: 1.25 !important;
}

.rb-numbered-item > p,
.rb-numbered-item > ul,
.rb-numbered-item > ol,
.rb-numbered-item > div:not(:first-child) {
  grid-column: 2;
}

.rb-service-detail .rb-other-services-contact {
  display: none !important;
}

.rb-service-detail .rb-section-style-heading {
  margin-top: 3rem !important;
}

/* Project details. */
.rb-project-detail .rb-more-work-footer {
  display: none !important;
}

.rb-project-detail.rb-live-project .rb-situation-heading {
  margin-bottom: 1.5rem !important;
}

/* About page. */
.rb-about main > section:nth-of-type(2) {
  padding-top: clamp(4.5rem, 6vw, 6rem) !important;
  padding-bottom: clamp(4.5rem, 6vw, 6rem) !important;
  background: #fff !important;
  background-image: none !important;
}

.rb-about .rb-short-principles,
.rb-beliefs-list {
  margin-left: 0 !important;
  list-style: none !important;
  gap: 0.8rem !important;
}

.rb-about .rb-short-principles li,
.rb-beliefs-list li {
  position: relative;
  padding: 0.85rem 1rem 0.85rem 3rem;
  border: 1px solid rgba(26, 11, 46, 0.1);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.68);
}

.rb-about .rb-short-principles li::before,
.rb-beliefs-list li::before {
  content: "\2713";
  position: absolute;
  left: 1rem;
  top: 0.8rem;
  color: var(--rb-purple);
  font-weight: 700;
}

.rb-beliefs-section {
  padding: clamp(4.5rem, 6vw, 6rem) 1.5rem;
  background: linear-gradient(to bottom, #fff, var(--rb-cream));
}

.rb-beliefs-section > div {
  width: min(100%, 48rem);
  margin-inline: auto;
}

.rb-beliefs-section h2 {
  margin-bottom: 2rem;
}

.rb-about .rb-how-work-section {
  padding-top: clamp(4.5rem, 6vw, 6rem) !important;
  padding-bottom: clamp(4.5rem, 6vw, 6rem) !important;
  background: var(--rb-cream) !important;
}

.rb-about .rb-why-section {
  padding: clamp(4.5rem, 6vw, 6rem) 1.5rem;
  background: linear-gradient(to bottom, var(--rb-cream), #fff);
}

.rb-about .rb-why-inner {
  width: min(100%, 80rem);
  margin-inline: auto;
}

.rb-about .rb-why-inner > div {
  margin-top: 0 !important;
}

.rb-about main > section:last-of-type {
  padding-top: clamp(4.5rem, 6vw, 6rem) !important;
  padding-bottom: clamp(4.5rem, 6vw, 6rem) !important;
}

/* Blog index CTA: the same lightweight treatment as Services. */
.rb-blog-cta {
  margin-top: 4rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(26, 11, 46, 0.1);
}

.rb-blog-cta p {
  max-width: 32rem;
  color: rgba(26, 11, 46, 0.62);
  font-family: inherit;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.55;
}

.rb-blog-cta a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 1rem 2rem;
  background: var(--rb-purple);
  color: var(--rb-cream);
  font-family: var(--font-fredoka), sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: background-color 180ms ease, color 180ms ease;
}

.rb-blog-cta a:hover {
  background: var(--rb-violet-light);
  color: var(--rb-purple-dark);
}

/* Generated editorial previews share one consistent frame in both languages. */
.rb-blog-preview {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  background: #faf6ef;
  object-fit: cover;
}

.rb-blog-preview-frame > :not(.rb-blog-preview) {
  display: none !important;
}

.rb-article-preview {
  padding: 0 1.5rem clamp(3rem, 7vw, 6rem);
  background: #fff;
}

.rb-article-preview img {
  display: block;
  width: min(100%, 64rem);
  height: auto;
  margin-inline: auto;
  background: #faf6ef;
  border-radius: clamp(1.25rem, 3vw, 2rem);
  box-shadow: 0 1.5rem 4rem rgba(26, 11, 46, 0.09);
}

.rb-analytics-questions {
  padding-left: 1.35rem !important;
  list-style: disc !important;
}

.rb-analytics-questions li::marker {
  color: var(--rb-purple);
}

/* Blog article readability and pale blocks using the original site violet. */
.rb-blog-article main > section:first-of-type {
  background-color: var(--rb-purple-dark) !important;
  background-image: linear-gradient(
    135deg,
    var(--rb-purple) 0%,
    #241141 50%,
    var(--rb-purple-dark) 100%
  ) !important;
}

.rb-blog-article main > section:nth-of-type(2) > div {
  max-width: 52rem !important;
}

.rb-blog-article main > section:nth-of-type(2) h2 {
  margin-top: 3.25rem !important;
  padding-top: 1rem;
  line-height: 1.18 !important;
}

.rb-blog-article main > section:nth-of-type(2) h3 {
  margin-top: 2rem !important;
  line-height: 1.3 !important;
}

.rb-blog-article main > section:nth-of-type(2) p {
  max-width: 48rem;
  line-height: 1.85 !important;
}

.rb-blog-article main > section:nth-of-type(2) ul,
.rb-blog-article main > section:nth-of-type(2) ol {
  margin: 0.75rem 0 1.25rem !important;
  padding: 1.35rem 1.35rem 1.35rem 2.75rem;
  border-left: 4px solid var(--rb-purple);
  border-radius: 0 1rem 1rem 0;
  background: rgba(71, 42, 153, 0.06);
  list-style: disc !important;
}

.rb-blog-article main > section:nth-of-type(2) li {
  padding-left: 0.25rem;
  line-height: 1.65;
}

.rb-blog-article main > section:nth-of-type(2) li::marker {
  color: var(--rb-purple);
  content: "\2022  ";
}

/* Original full-screen menu. Header remains the single visible logo. */
body.rb-menu-open {
  overflow: hidden;
}

.rb-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 2rem 1.5rem;
  background: var(--rb-purple-dark);
  color: var(--rb-cream);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition:
    clip-path 760ms cubic-bezier(0.76, 0, 0.24, 1),
    visibility 760ms;
}

.rb-menu-overlay[hidden] {
  display: none;
}

.rb-menu-overlay.is-open {
  clip-path: inset(0);
  visibility: visible;
}

.rb-menu-spacer {
  height: 1.75rem;
}

.rb-menu-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.rb-menu-link-wrap {
  margin-bottom: -0.2em;
  overflow: hidden;
  padding-bottom: 0.2em;
}

.rb-menu-link-inner {
  opacity: 0;
  transform: translateY(150%);
  transition:
    opacity 560ms ease,
    transform 760ms cubic-bezier(0.22, 1, 0.36, 1);
}

.rb-menu-overlay.is-open .rb-menu-link-inner {
  opacity: 1;
  transform: translateY(0);
}

.rb-menu-links a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.5rem 0;
  color: var(--rb-cream);
  font-family: "Fredoka", "Comfortaa", sans-serif !important;
  font-size: clamp(2.5rem, 9vw, 6rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.025em;
  transition: color 180ms ease;
}

.rb-menu-links a:hover,
.rb-menu-links a:focus-visible {
  color: var(--rb-violet-light);
  outline: none;
}

.rb-menu-bottom {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(250, 246, 239, 0.15);
  font-size: 0.875rem;
}

.rb-menu-bottom > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  color: var(--rb-lilac);
}

.rb-menu-bottom a:hover {
  color: var(--rb-violet-light);
}

/* Original compact cookie banner. */
.rb-cookie-banner {
  opacity: 0;
  transform: translateY(0.8rem);
  transition: opacity 220ms ease, transform 220ms ease;
}

.rb-cookie-banner[hidden] {
  display: none !important;
}

.rb-cookie-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Original line reveal animation. */
[data-split-line="true"].rb-split-ready {
  opacity: 0;
  transform: translateY(115%);
  transition:
    opacity 620ms ease,
    transform 760ms cubic-bezier(0.22, 1, 0.36, 1);
}

[data-split-line="true"].rb-split-ready.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll-driven original Selected Work motion. */
@media (min-width: 1024px) {
  #work.rb-slider-ready {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  #work.rb-slider-ready > .rb-work-pin {
    position: sticky;
    top: 0;
    padding-top: 10rem;
    padding-bottom: 10rem;
  }

  #work.rb-slider-ready .rb-home-slider {
    width: min(100%, 1440px);
    margin-inline: auto;
    will-change: transform;
  }

  #work.rb-slider-ready .rb-home-slider > a {
    width: min(32vw, 460px) !important;
    height: min(58vh, 560px) !important;
  }

  #work.rb-slider-ready .rb-home-slider > a > div:last-child > span:first-child {
    display: block;
    min-height: 3rem;
  }

  #work.rb-slider-ready .rb-home-slider > a > div:last-child > h3 {
    min-height: 10.35rem;
  }

  #work.rb-slider-ready .rb-home-slider > a > div:last-child > p {
    min-height: 7.5rem;
  }
}

@media (min-width: 1200px) {
  #work.rb-slider-ready .rb-home-slider > a > div:last-child > span:first-child {
    min-height: 2rem;
  }

  #work.rb-slider-ready .rb-home-slider > a > div:last-child > h3 {
    min-height: 7.75rem;
  }

  #work.rb-slider-ready .rb-home-slider > a > div:last-child > p {
    min-height: 6.25rem;
  }
}

@media (min-width: 1536px) {
  #work.rb-slider-ready .rb-home-slider > a > div:last-child > h3 {
    min-height: 5.2rem;
  }

  #work.rb-slider-ready .rb-home-slider > a > div:last-child > p {
    min-height: 5rem;
  }
}

/* Replaces numerical counters with quieter line-drawn symbols. */
.rb-metric-icon {
  width: 4.25rem;
  height: 4.25rem;
  color: var(--rb-purple);
}

.rb-metric-icon path,
.rb-metric-icon circle,
.rb-metric-icon rect,
.rb-metric-icon polyline,
.rb-metric-icon line {
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
  opacity: 0.25;
  transition:
    stroke-dashoffset 900ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 500ms ease;
}

.rb-metric-card.is-visible .rb-metric-icon path,
.rb-metric-card.is-visible .rb-metric-icon circle,
.rb-metric-card.is-visible .rb-metric-icon rect,
.rb-metric-card.is-visible .rb-metric-icon polyline,
.rb-metric-card.is-visible .rb-metric-icon line {
  stroke-dashoffset: 0;
  opacity: 1;
}

.rb-form-status {
  min-height: 1.4rem;
  color: var(--rb-purple);
  font-size: 0.85rem;
}

@media (min-width: 640px) {
  .rb-menu-overlay {
    padding: 2.5rem 3rem;
  }

  .rb-menu-links a {
    padding: 0.75rem 0;
  }

  .rb-menu-bottom {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

@media (max-width: 767px) {
  .rb-service-card {
    min-height: 275px !important;
  }

  .rb-service-card > div:last-child h2 {
    min-height: 0;
  }

  .rb-blog-cta {
    flex-direction: column;
  }

  .rb-blog-article main > section:nth-of-type(2) ul,
  .rb-blog-article main > section:nth-of-type(2) ol {
    padding: 1.1rem 1rem 1.1rem 2.25rem;
  }

  .rb-numbered-item {
    grid-template-columns: 2.7rem minmax(0, 1fr);
    column-gap: 0.65rem;
  }

  .rb-numbered-item > .rb-workflow-number {
    font-size: 1.15rem !important;
  }
}

@media (pointer: coarse) {
  .rb-cursor {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rb-card-cta,
  .rb-menu-overlay,
  .rb-menu-link-inner,
  .rb-cookie-banner,
  [data-split-line="true"].rb-split-ready,
  .rb-metric-icon * {
    transition: none !important;
  }

  [data-split-line="true"].rb-split-ready,
  .rb-menu-link-inner {
    opacity: 1;
    transform: none;
  }

  .rb-metric-icon * {
    stroke-dashoffset: 0 !important;
    opacity: 1 !important;
  }
}
