/*=== Rejola homepage ===============================

Loaded only by index.php, after rejola-ai.css (tokens,
buttons, header, footer and shared cards live there).

1.section rhythm
2.hero (copy, system stack, friction, callouts, metrics)
3.clients
4.problems
5.approach
6.capabilities
7.ai
8.technology
9.testimonials
10.success stories
11.insights
12.faq & cta
13.responsive
14.reduced motion

==================================================*/

/*---------- 1. section rhythm ----------*/

.rj-home {
  background: #fff;
}

.rj-section {
  position: relative;
  padding: 80px 0;
}

.rj-section h2 {
  font-size: clamp(36px, 4.4vw, 64px);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -0.045em;
  color: var(--rj-text);
  margin-bottom: 20px;
}

.rj-section p {
  color: var(--rj-muted);
  font-size: 18px;
  line-height: 1.65;
}

.rj-section .eyebrow {
  margin-bottom: 22px;
}

/*---------- 2. hero ----------*/

/* Header blends into the hero: the in-flow header overlays it transparently.
   The sticky clone (.header--sticky) keeps its solid style once scrolled. */
.rj-home header.header-style-one:not(.header--sticky) {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom: 0;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.rj-hero {
  --rj-header-h: 72px; /* measured by home.js */
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--rj-header-h) + 24px) 0 0;
  background: #f5f5fb;
  border-bottom: 1px solid var(--rj-line);
}

/* soft hairline under the nav that fades out at the edges */
.rj-hero::before {
  content: "";
  position: absolute;
  top: var(--rj-header-h);
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(53, 52, 255, 0.14) 20%, rgba(53, 52, 255, 0.14) 80%, transparent);
  pointer-events: none;
}

.rj-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* isometric drafting grid */
.rj-hero__iso {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(30deg, rgba(53, 52, 255, 0.09) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(150deg, rgba(53, 52, 255, 0.09) 0 1px, transparent 1px 44px);
  -webkit-mask-image: radial-gradient(ellipse 55% 75% at 72% 45%, #000 10%, transparent 80%);
  mask-image: radial-gradient(ellipse 55% 75% at 72% 45%, #000 10%, transparent 80%);
}

.rj-hero__aura {
  position: absolute;
  width: 900px;
  height: 900px;
  right: -180px;
  top: -160px;
  background:
    radial-gradient(closest-side, rgba(53, 52, 255, 0.22), rgba(53, 52, 255, 0.06) 55%, transparent),
    radial-gradient(closest-side at 70% 70%, rgba(42, 139, 216, 0.16), transparent);
}

.rj-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 32px;
  align-items: center;
  min-height: min(640px, calc(100vh - 250px));
}

/* Copy */
.rj-hero__copy .title {
  font-size: clamp(54px, 6.4vw, 108px);
  line-height: 0.92;
  letter-spacing: -0.058em;
  font-weight: 500;
  color: var(--rj-ink);
  margin-bottom: 32px;
}

.rj-hero__copy .title span {
  display: block;
  color: transparent;
  background: linear-gradient(95deg, var(--rj-indigo) 0%, #6564ff 35%, var(--rj-blue) 65%, var(--rj-indigo) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  padding-bottom: 0.06em;
}

.rj-hero__copy p {
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.6;
  color: var(--rj-muted);
  max-width: 540px;
  margin-bottom: 40px;
}

.rj-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Entrance, cued by the existing preloader finishing */
.rj-js .rj-hero__copy .title,
.rj-js .rj-hero__copy > p,
.rj-js .rj-hero__actions .rts-btn,
.rj-js .rj-system,
.rj-js .rj-metrics .single-counter-area {
  opacity: 0;
  visibility: visible !important;
}

.loaded .rj-hero__copy .title {
  animation: rjRise 1.2s var(--rj-ease) 0.4s both !important;
}

.loaded .rj-hero__copy .title span {
  animation: rjRise 1.2s var(--rj-ease) 0.55s both, rjSheen 10s var(--rj-ease-in-out) 2.5s infinite;
}

.loaded .rj-hero__copy > p {
  animation: rjRise 1s var(--rj-ease) 0.75s both;
}

.loaded .rj-hero__actions .rts-btn {
  animation: rjRise 1s var(--rj-ease) 0.9s both;
}

.loaded .rj-hero__actions .rts-btn + .rts-btn {
  animation-delay: 1s;
}

.loaded .rj-system {
  animation: rjFadeIn 1.4s var(--rj-ease) 0.3s both;
}

.loaded .rj-metrics .single-counter-area {
  animation: rjRise 1s var(--rj-ease) 1.1s both;
}

.loaded .rj-metrics .single-counter-area:nth-child(2) { animation-delay: 1.2s; }
.loaded .rj-metrics .single-counter-area:nth-child(3) { animation-delay: 1.3s; }

/* System: stage */
.rj-system {
  --face: 240px;
  --gap: calc(52px + var(--explode, 0) * 30px);
  position: relative;
  height: 580px;
}

.rj-stack {
  position: absolute;
  left: 50%;
  top: 60%;
  width: 0;
  height: 0;
}

.rj-stack__scene {
  position: absolute;
  width: var(--face);
  height: var(--face);
  left: calc(var(--face) / -2);
  top: calc(var(--face) / -2);
  transform-style: preserve-3d;
  transform: rotateX(calc(57deg + var(--tilt-y, 0deg))) rotateZ(calc(-45deg + var(--tilt-x, 0deg)));
  transition: transform 1.2s var(--rj-ease);
}

.rj-stack__shadow {
  position: absolute;
  inset: -14%;
  transform: translateZ(-26px);
  background: radial-gradient(closest-side, rgba(37, 36, 224, 0.28), rgba(37, 36, 224, 0.08) 60%, transparent);
}

.rj-stack__layer {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: translateZ(calc(var(--i) * var(--gap)));
  transition: transform 0.9s var(--rj-ease);
}

/* The stack opens at the active layer so its face is fully visible */
.rj-stack__layer.is-active {
  transform: translateZ(calc(var(--i) * var(--gap) + 14px));
}

.rj-stack__layer.is-above {
  transform: translateZ(calc(var(--i) * var(--gap) + var(--face) * 0.42));
}

/* slab thickness */
.rj-stack__layer::before,
.rj-stack__layer::after {
  content: "";
  position: absolute;
  transition: background-color 0.6s;
}

.rj-stack__layer::before {
  left: 0;
  bottom: 0;
  width: 100%;
  height: 10px;
  transform-origin: bottom;
  transform: rotateX(90deg);
  background: linear-gradient(90deg, #d9d8ff, #b9b8ff);
}

.rj-stack__layer::after {
  top: 0;
  right: 0;
  width: 10px;
  height: 100%;
  transform-origin: right;
  transform: rotateY(-90deg);
  background: linear-gradient(180deg, #c8c7ff, #a3a2ff);
}

.rj-stack__face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 0 18px 10px;
  border: 1px solid rgba(53, 52, 255, 0.32);
  background:
    linear-gradient(rgba(53, 52, 255, 0.07) 1px, transparent 1px) 0 0 / 100% 26px,
    linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(236, 236, 255, 0.92));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
  transition: background 0.6s, border-color 0.6s, box-shadow 0.6s;
}

.rj-stack__face em {
  font-family: var(--rj-mono);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--rj-indigo);
  transition: color 0.6s;
}

.rj-stack__face b {
  font-family: var(--font-medium);
  font-weight: 400;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--rj-ink);
  transition: color 0.6s;
}

.rj-stack__layer.is-active .rj-stack__face {
  border-color: rgba(143, 142, 255, 0.9);
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px) 0 0 / 100% 26px,
    linear-gradient(135deg, #4847ff, var(--rj-indigo-600));
  box-shadow: 0 0 60px rgba(53, 52, 255, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.rj-stack__layer.is-active::before { background: #1e1dc4; }
.rj-stack__layer.is-active::after { background: #1716a8; }

.rj-stack__layer.is-active .rj-stack__face em { color: #c9c8ff; }
.rj-stack__layer.is-active .rj-stack__face b { color: #fff; }

/* data rails and packets travelling up through the layers */
.rj-stack__rail,
.rj-stack__packet {
  position: absolute;
  left: var(--rx);
  top: var(--ry);
}

.rj-stack__rail {
  width: 2px;
  height: calc(5 * var(--gap) + 30px);
  transform-origin: top;
  transform: rotateX(90deg);
  background: linear-gradient(to bottom, rgba(53, 52, 255, 0.5), rgba(53, 52, 255, 0.1));
}

.rj-stack__packet {
  width: 8px;
  height: 8px;
  margin: -3px 0 0 -3px;
  background: var(--rj-indigo);
  box-shadow: 0 0 14px 3px rgba(53, 52, 255, 0.6);
  animation: rjPacket 2.8s var(--rj-ease-in-out) var(--d) infinite;
}

@keyframes rjPacket {
  0% { transform: translateZ(0); opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { transform: translateZ(calc(5 * var(--gap) + 30px)); opacity: 0; }
}

/* Friction cards drifting around the stack */
.rj-friction {
  position: absolute;
  inset: 0;
  z-index: 2;
  margin: 0;
  padding: 0;
  list-style: none;
  pointer-events: none;
}

.rj-friction li {
  --n: 0;
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: max-content;
  max-width: 200px;
  margin: 0;
  padding: 10px 14px 10px 30px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--rj-text);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--rj-line);
  border-radius: var(--rj-radius);
  box-shadow: 0 18px 40px -22px rgba(12, 13, 42, 0.45);
  transform: translate(-50%, -50%);
  animation: rjDrift 7s ease-in-out infinite alternate;
  animation-delay: calc(var(--n) * -1.1s);
  transition: translate 1s var(--rj-ease-in-out), scale 1s var(--rj-ease-in-out), opacity 0.8s, filter 0.8s;
}

.rj-friction li:nth-child(2) { --n: 1; }
.rj-friction li:nth-child(3) { --n: 2; }
.rj-friction li:nth-child(4) { --n: 3; }
.rj-friction li:nth-child(5) { --n: 4; }
.rj-friction li:nth-child(6) { --n: 5; }
.rj-friction li:nth-child(7) { --n: 6; }
.rj-friction li:nth-child(8) { --n: 7; }

.rj-friction li::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -3.5px;
  background: var(--rj-red);
  box-shadow: 0 0 0 4px rgba(232, 51, 62, 0.14);
}

.rj-friction li.is-absorbed {
  translate: var(--ax, 0) var(--ay, 0);
  scale: 0.2;
  opacity: 0;
  filter: blur(4px);
}

.rj-friction li.is-returning {
  transition: none;
}

@keyframes rjDrift {
  from { transform: translate(-50%, -50%) translate3d(0, -6px, 0); }
  to { transform: translate(-50%, -50%) translate3d(0, 8px, 0); }
}

/* Callout for the active capability */
.rj-callouts {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 3;
  width: min(440px, 100%);
  height: 84px;
  transform: translateX(-50%);
}

.rj-callout {
  position: absolute;
  inset: 0;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  gap: 6px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s, transform 0.6s var(--rj-ease);
}

.rj-callout:first-child,
.rj-callout.is-active {
  opacity: 1;
  transform: none;
}

.rj-callouts.is-live .rj-callout:first-child:not(.is-active) {
  opacity: 0;
  transform: translateY(10px);
}

.rj-callout em {
  flex-basis: 100%;
  text-align: center;
  font-family: var(--rj-mono);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rj-indigo);
  margin-bottom: 4px;
}

.rj-callout span {
  font-family: var(--rj-mono);
  font-size: 11px;
  padding: 5px 9px;
  border: 1px solid rgba(53, 52, 255, 0.25);
  border-radius: var(--rj-radius);
  background: rgba(255, 255, 255, 0.85);
  color: var(--rj-text);
}

/* Metrics */
.rj-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
  border-top: 1px solid var(--rj-line-strong);
}

.rj-metrics .single-counter-area {
  padding: 30px 32px 40px;
  border-left: 1px solid var(--rj-line);
}

.rj-metrics .single-counter-area:first-child {
  border-left: 0;
  padding-left: 0;
}

.rj-metrics .title {
  font-size: clamp(40px, 4.4vw, 68px);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.05em;
  color: var(--rj-ink);
  margin: 0 0 10px;
}

.rj-metrics .title .plus,
.rj-metrics .single-counter-area:last-child .title {
  color: var(--rj-indigo);
}

.rj-metrics .title .counter {
  color: var(--rj-ink);
}

.rj-metrics p {
  margin: 0;
  font-family: var(--rj-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rj-muted);
}

/*---------- 3. clients ----------*/

.rj-clients {
  padding: 64px 0 48px;
}

.rj-clients__head {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 40px;
}

.rj-clients__head .title {
  margin: 0;
  flex-shrink: 0;
  font-size: clamp(28px, 2.6vw, 40px);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.rj-clients__head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rj-line-strong);
}

.rj-clients__rows {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.rj-clients .brand-area-main-wrapper {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.rj-clients .single-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 92px;
  background: #fff;
  border: 1px solid var(--rj-line);
  border-radius: var(--rj-radius);
  transition: border-color 0.3s, box-shadow 0.4s var(--rj-ease);
}

.rj-clients .single-brand img {
  max-height: 64px;
  max-width: 82%;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.7;
  transition: filter 0.4s, opacity 0.4s;
}

.rj-clients .single-brand:hover {
  border-color: rgba(53, 52, 255, 0.35);
  box-shadow: 0 16px 36px -24px rgba(53, 52, 255, 0.6);
}

.rj-clients .single-brand:hover img {
  filter: none;
  opacity: 1;
}

/*---------- 4. problems ----------*/

.rj-problems {
  padding-top: 100px;
}

.rj-problems__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 80px;
  align-items: start;
}

.rj-problems__intro {
  position: sticky;
  top: 130px;
}

.rj-problems__list {
  counter-reset: problem;
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--rj-line-strong);
}

.rj-problems__list li {
  counter-increment: problem;
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 28px;
  margin: 0;
  padding: 26px 56px 26px 0;
  border-top: 1px solid var(--rj-line-strong);
  font-family: var(--font-medium);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--rj-text);
  transition: color 0.3s, padding 0.5s var(--rj-ease);
}

.rj-problems__list li::before {
  content: counter(problem, decimal-leading-zero);
  flex-shrink: 0;
  width: 28px;
  font-family: var(--rj-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--rj-indigo);
}

.rj-problems__list li::after {
  content: "→";
  position: absolute;
  right: 6px;
  top: 50%;
  font-size: 22px;
  color: var(--rj-indigo);
  opacity: 0;
  transform: translate(-12px, -50%);
  transition: opacity 0.3s, transform 0.5s var(--rj-ease);
}

.rj-problems__list li:hover {
  color: var(--rj-indigo);
  padding-left: 12px;
}

.rj-problems__list li:hover::after {
  opacity: 1;
  transform: translate(0, -50%);
}

/*---------- 5. approach ----------*/

.rj-approach {
  background:
    radial-gradient(800px 500px at 0% 0%, rgba(53, 52, 255, 0.3), transparent 65%),
    linear-gradient(180deg, var(--rj-ink), var(--rj-ink-2));
  color: #fff;
}

.rj-approach h2 {
  color: #fff;
}

.rj-approach p {
  color: rgba(226, 228, 255, 0.72);
}

.rj-approach .eyebrow {
  color: var(--rj-indigo-300);
}

.rj-approach__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 80px;
}

.rj-approach__sticky {
  position: sticky;
  top: 130px;
}

.rj-approach__counter {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-top: 56px;
  font-family: var(--rj-mono);
}

.rj-approach__num {
  font-size: clamp(80px, 9vw, 150px);
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: transparent;
  background: linear-gradient(180deg, #fff, var(--rj-indigo-300));
  -webkit-background-clip: text;
  background-clip: text;
}

.rj-approach__of {
  font-size: 18px;
  color: rgba(226, 228, 255, 0.45);
}

.rj-approach__track {
  position: relative;
  height: 2px;
  margin-top: 28px;
  max-width: 420px;
  background: rgba(200, 200, 255, 0.14);
}

.rj-approach__track span {
  position: absolute;
  inset: 0;
  transform: scaleX(var(--p, 0));
  transform-origin: left;
  background: linear-gradient(90deg, var(--rj-red), var(--rj-blue), var(--rj-green));
  transition: transform 0.5s var(--rj-ease);
}

.rj-approach__steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rj-step {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 56px 40px 56px 0;
  border-top: 1px solid var(--rj-line-dark);
  transition: opacity 0.6s, transform 0.6s var(--rj-ease);
}

.rj-step:last-child {
  border-bottom: 1px solid var(--rj-line-dark);
}

.rj-step .num {
  font-family: var(--rj-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--rj-indigo-300);
  margin-bottom: 18px;
}

.rj-step h3 {
  font-size: clamp(32px, 3.4vw, 52px);
  font-weight: 500;
  letter-spacing: -0.045em;
  color: #fff;
  margin: 0 0 12px;
}

.rj-step p {
  margin: 0;
  max-width: 460px;
}

.rj-approach__steps.is-live .rj-step {
  opacity: 0.28;
}

.rj-approach__steps.is-live .rj-step.is-active {
  opacity: 1;
}

/*---------- 6. capabilities ----------*/

.rj-caps__head {
  max-width: 820px;
  margin-bottom: 64px;
}

.rj-caps__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  perspective: 1400px;
}

.rj-cap {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 380px;
  padding: 36px;
  background: #fff;
  border: 1px solid var(--rj-line-strong);
  border-radius: var(--rj-radius);
  grid-column: span 4;
  transition: border-color 0.4s, box-shadow 0.5s var(--rj-ease);
}

.rj-cap--design { grid-column: span 5; }
.rj-cap--develop { grid-column: span 7; background: var(--rj-paper); }
.rj-cap--discipline { grid-column: span 12; min-height: 0; }

.rj-cap:hover {
  border-color: rgba(53, 52, 255, 0.4);
  box-shadow: 0 40px 80px -48px rgba(53, 52, 255, 0.6);
}

.rj-cap__glyph {
  width: 56px;
  height: 56px;
  margin-bottom: auto;
  fill: none;
  stroke: var(--rj-indigo);
  stroke-width: 1.6;
  stroke-linecap: square;
  transition: transform 0.6s var(--rj-ease);
}

.rj-cap:hover .rj-cap__glyph {
  transform: translateY(-4px) rotate(-4deg);
}

.rj-cap .tagline {
  margin-top: 48px;
  font-family: var(--rj-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--rj-indigo);
}

.rj-cap h3 {
  font-size: clamp(30px, 2.8vw, 44px);
  font-weight: 500;
  letter-spacing: -0.045em;
  margin: 10px 0 12px;
  color: var(--rj-text);
}

.rj-cap p {
  font-size: 16px;
  max-width: 520px;
  margin-bottom: 22px;
}

.rj-cap .rejola-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rj-cap .rejola-tags span {
  padding: 6px 10px;
  font-family: var(--rj-mono);
  font-size: 11px;
  color: var(--rj-muted);
  border: 1px solid var(--rj-line-strong);
  border-radius: var(--rj-radius);
  background: rgba(255, 255, 255, 0.6);
  transition: border-color 0.3s, color 0.3s, background-color 0.3s;
}

.rj-cap:hover .rejola-tags span {
  color: var(--rj-indigo);
  border-color: rgba(53, 52, 255, 0.3);
  background: var(--rj-indigo-50);
}

/* Decision: the AI capability, featured */
.rj-cap--decision {
  background:
    radial-gradient(420px 300px at 100% 0%, rgba(53, 52, 255, 0.55), transparent 70%),
    var(--rj-ink);
  border-color: transparent;
}

.rj-cap--decision h3 { color: #fff; }
.rj-cap--decision p { color: rgba(226, 228, 255, 0.72); }
.rj-cap--decision .tagline,
.rj-cap--decision .rj-cap__glyph { color: var(--rj-indigo-300); stroke: var(--rj-indigo-300); }

.rj-cap--decision .rejola-tags span,
.rj-cap--decision:hover .rejola-tags span {
  color: rgba(226, 228, 255, 0.85);
  border-color: var(--rj-line-dark);
  background: rgba(255, 255, 255, 0.04);
}

/* Discipline: a wide foundation band */
.rj-cap--discipline {
  display: grid;
  grid-template-columns: 56px minmax(0, 0.9fr) minmax(0, 1.1fr);
  grid-template-areas:
    "glyph tag tags"
    "glyph title tags"
    "glyph text tags";
  column-gap: 40px;
  align-items: start;
}

.rj-cap--discipline .rj-cap__glyph { grid-area: glyph; margin: 0; }
.rj-cap--discipline .tagline { grid-area: tag; margin-top: 0; }
.rj-cap--discipline h3 { grid-area: title; }
.rj-cap--discipline p { grid-area: text; margin: 0; }
.rj-cap--discipline .rejola-tags { grid-area: tags; align-self: center; justify-content: flex-end; }

/*---------- 7. ai ----------*/

.rj-ai {
  overflow: hidden;
  background:
    radial-gradient(700px 480px at 85% 40%, rgba(53, 52, 255, 0.4), transparent 65%),
    radial-gradient(600px 400px at 0% 100%, rgba(232, 51, 62, 0.1), transparent 70%),
    linear-gradient(160deg, var(--rj-ink) 0%, var(--rj-ink-2) 60%, var(--rj-ink) 100%);
}

.rj-ai h2 { color: #fff; }
.rj-ai .eyebrow { color: var(--rj-indigo-300); }
.rj-ai .lead { color: rgba(226, 228, 255, 0.74); font-size: 19px; }

.rj-ai__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 72px;
  align-items: center;
}

.rj-ai__actions {
  margin-top: 36px;
}

.rj-ai__board {
  position: relative;
}

.rj-ai__modules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 56px;
}

/* central data bus between the two module columns */
.rj-ai__bus {
  position: absolute;
  top: -20px;
  bottom: -20px;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: linear-gradient(to bottom, transparent, rgba(143, 142, 255, 0.45) 15%, rgba(143, 142, 255, 0.45) 85%, transparent);
}

.rj-ai__bus i {
  position: absolute;
  left: -3px;
  width: 8px;
  height: 22px;
  background: linear-gradient(to bottom, transparent, #fff);
  box-shadow: 0 0 16px rgba(143, 142, 255, 0.9);
  animation: rjBus 3.6s linear infinite;
}

.rj-ai__bus i + i {
  animation-delay: 1.8s;
}

@keyframes rjBus {
  from { top: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  to { top: 100%; opacity: 0; }
}

.rj-module {
  position: relative;
  padding: 24px 22px;
  background: linear-gradient(160deg, rgba(30, 31, 80, 0.8), rgba(10, 11, 34, 0.8));
  border: 1px solid var(--rj-line-dark);
  border-radius: var(--rj-radius);
  transition: border-color 0.4s, transform 0.5s var(--rj-ease);
}

/* trace connecting each module to the bus */
.rj-module::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 28px;
  height: 1px;
  background: rgba(143, 142, 255, 0.45);
}

.rj-module:nth-child(odd)::before { left: 100%; }
.rj-module:nth-child(even)::before { right: 100%; }

.rj-module strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-medium);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: #fff;
}

.rj-module span {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(219, 229, 246, 0.7);
}

.rj-module:hover {
  border-color: rgba(143, 142, 255, 0.5);
  transform: translateY(-3px);
}

/*---------- 8. technology ----------*/

.rj-tech {
  background: var(--rj-paper);
}

.rj-tech__head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}

/* Layers as tabs: the list on the left reads as a stack, AI on top */
.rj-layers {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto;
}

.rj-layers__tabs {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rj-layers__tab {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 16px 18px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--rj-line);
  border-left: 3px solid transparent;
  border-radius: var(--rj-radius);
  color: var(--rj-text);
  transition: background 0.3s, border-color 0.3s, transform 0.4s var(--rj-ease);
}

.rj-layers__tab:hover {
  border-color: rgba(53, 52, 255, 0.35);
  transform: translateX(4px);
}

.rj-layers__tab:focus-visible {
  outline: 2px solid var(--rj-indigo);
  outline-offset: 2px;
}

.rj-layers__tab.is-active {
  background: var(--rj-ink);
  border-color: var(--rj-ink);
  border-left-color: var(--rj-indigo);
  color: #fff;
  transform: translateX(8px);
}

.rj-layers__num,
.rj-layers__count,
.rj-layers__kicker {
  font-family: var(--rj-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.rj-layers__num { color: var(--rj-indigo); }
.rj-layers__tab.is-active .rj-layers__num { color: var(--rj-indigo-300); }

.rj-layers__label {
  font-family: var(--font-medium);
  font-size: 17px;
}

.rj-layers__count {
  min-width: 26px;
  padding: 2px 6px;
  text-align: center;
  border: 1px solid var(--rj-line-strong);
  border-radius: 20px;
  color: var(--rj-muted);
}

.rj-layers__tab.is-active .rj-layers__count {
  border-color: var(--rj-line-dark);
  color: rgba(255, 255, 255, 0.7);
}

.rj-layers__panel {
  position: relative;
  padding: 36px 40px;
  background: #fff;
  border: 1px solid var(--rj-line);
  border-radius: var(--rj-radius);
  box-shadow: var(--rj-shadow);
}

.rj-layers__panel:not([hidden]) {
  animation: rjLayersIn 0.45s var(--rj-ease);
}

@keyframes rjLayersIn {
  from { opacity: 0; transform: translateY(8px); }
}

.rj-layers__kicker {
  margin: 0 0 10px;
  color: var(--rj-indigo) !important;
  text-transform: uppercase;
}

.rj-layers__panel h3 {
  margin: 0 0 10px;
  font-size: 28px;
}

.rj-section .rj-layers__desc {
  max-width: 620px;
  margin: 0 0 26px;
  font-size: 17px;
}

.rj-layers__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.rj-layers__tools li {
  margin: 0;
  padding: 0;
}

.rj-layers__tools a,
.rj-layers__tools span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: var(--rj-indigo-50);
  border: 1px solid var(--rj-indigo-100);
  border-radius: var(--rj-radius);
  color: var(--rj-text);
  font-size: 15px;
  line-height: 1.2;
}

.rj-layers__tools a::before,
.rj-layers__tools span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rj-indigo);
}

.rj-layers__tools a {
  transition: border-color 0.3s, background 0.3s;
}

.rj-layers__tools a:hover {
  background: #fff;
  border-color: var(--rj-indigo);
  color: var(--rj-indigo);
}

.rj-layers__more {
  font-family: var(--font-medium);
  color: var(--rj-indigo);
}

.rj-layers__more:hover { color: var(--rj-indigo-600); }

@media (max-width: 991px) {
  .rj-layers { grid-template-columns: minmax(0, 1fr); }

  /* tabs become a scrolling row of pills */
  .rj-layers__tabs {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .rj-layers__tabs::-webkit-scrollbar { display: none; }

  .rj-layers__tab {
    flex: 0 0 auto;
    width: auto;
    grid-template-columns: auto auto;
    padding: 10px 14px;
    border-left-width: 1px;
  }

  .rj-layers__tab:hover,
  .rj-layers__tab.is-active { transform: none; }

  .rj-layers__count { display: none; }
  .rj-layers__label { font-size: 15px; }
  .rj-layers__panel { padding: 28px 22px; }
  .rj-layers__panel h3 { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .rj-layers__tab,
  .rj-layers__panel:not([hidden]) { transition: none; animation: none; transform: none; }
}

.rj-tech__cta {
  display: flex;
  justify-content: center;
  margin-top: 56px;
}

/*---------- 9. testimonials ----------*/

.rj-voices__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 32px;
}

.rj-voices__head .title {
  margin: 0;
  font-size: clamp(32px, 3.4vw, 48px);
}

.rj-voices__head .disc {
  margin: 0;
  font-size: 17px;
  color: var(--rj-muted);
}

.rj-voices .swiper-wrapper {
  align-items: flex-start;
}

.rj-voices .swiper-slide {
  padding: 8px;
}

/* The theme fixes cards at 500px with a hidden-scrollbar quote; show every quote in full */
.rj-voices .mySwiper-Testimonials .single-testimonials-area-one {
  height: auto;
}

.rj-voices .mySwiper-Testimonials .single-testimonials-area-one .disc {
  height: auto;
}

.rj-voices .single-testimonials-area-one {
  display: flex;
  flex-direction: column;
  padding: 26px 28px 22px;
  background: #fff !important;
  border: 1px solid var(--rj-line-strong) !important;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.rj-voices .single-testimonials-area-one::before {
  content: "\201C";
  top: 4px;
  left: 24px;
  right: auto;
  font-size: 64px;
  color: var(--rj-indigo);
  opacity: 0.9;
}

.rj-voices .single-testimonials-area-one::after {
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(53, 52, 255, 0.07), transparent 60%);
}

/* Quotes show four lines; "Read more" (home-v3.js) opens the full text */
.rj-voices .single-testimonials-area-one p.disc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  margin: 26px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--rj-text) !important;
}

.rj-voices .single-testimonials-area-one.is-open p.disc {
  display: block;
}

.rj-voices__more {
  align-self: flex-start;
  width: auto !important;
  margin: 8px 0 0;
  padding: 0;
  border: 0;
  background: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--rj-indigo);
  cursor: pointer;
}

.rj-voices__more:hover {
  text-decoration: underline;
}

.rj-voices .single-testimonials-area-one .author-wrapper {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--rj-line);
}

.rj-voices .single-testimonials-area-one .author-wrapper .avatar img {
  width: 44px;
  height: 44px;
}

.rj-voices .single-testimonials-area-one .author-wrapper .information .title {
  color: var(--rj-text) !important;
  font-size: 15px;
  letter-spacing: -0.01em;
  margin: 0;
}

.rj-voices .single-testimonials-area-one .author-wrapper .information .desig {
  color: var(--rj-indigo) !important;
}

.rj-voices .single-testimonials-area-one:hover {
  border-color: rgba(53, 52, 255, 0.35) !important;
}

/*---------- 10. success stories ----------*/

.rj-stories {
  background:
    radial-gradient(900px 400px at 50% 0%, rgba(53, 52, 255, 0.35), transparent 70%),
    var(--rj-ink);
}

.rj-stories__head .title {
  color: #fff;
  margin-bottom: 56px;
}

.rj-stories .single-blog-area-five .thumbnail img {
  aspect-ratio: 4 / 5;
  width: 100%;
  object-fit: cover;
}

/*---------- 11. insights ----------*/

.rj-insights__head .title {
  margin-bottom: 56px;
}

.rj-insights .single-blog-area-start {
  border-color: var(--rj-line-strong) !important;
}

/*---------- 12. faq & cta ----------*/

.rj-faq {
  background: var(--rj-paper);
}

.rj-faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 80px;
  align-items: start;
}

.rj-faq__list {
  border-top: 1px solid var(--rj-line-strong);
}

.rj-faq__list details {
  padding: 26px 0;
  border-bottom: 1px solid var(--rj-line-strong);
}

.rj-faq__list summary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-medium);
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--rj-text);
  transition: color 0.25s;
}

.rj-faq__list summary::-webkit-details-marker {
  display: none;
}

.rj-faq__list summary::after {
  content: "+";
  flex-shrink: 0;
  font-family: var(--rj-mono);
  font-size: 22px;
  line-height: 1;
  color: var(--rj-indigo);
  transition: transform 0.4s var(--rj-ease);
}

.rj-faq__list details[open] summary::after {
  transform: rotate(45deg);
}

.rj-faq__list summary:hover {
  color: var(--rj-indigo);
}

.rj-faq__list details p {
  margin: 14px 0 0;
  max-width: 640px;
}

.rj-faq__list details[open] p {
  animation: rjRise 0.6s var(--rj-ease) both;
}

.rj-cta__iso {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    repeating-linear-gradient(30deg, rgba(143, 142, 255, 0.14) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(150deg, rgba(143, 142, 255, 0.14) 0 1px, transparent 1px 48px);
  -webkit-mask-image: radial-gradient(ellipse 50% 90% at 88% 50%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 50% 90% at 88% 50%, #000, transparent 75%);
}


/*---------- 13. responsive ----------*/

@media (max-width: 1199px) {
  .rj-section { padding: 72px 0; }
  .rj-system { --face: 210px; --gap: calc(46px + var(--explode, 0) * 26px); height: 560px; }
  .rj-friction li { max-width: 180px; font-size: 12px; }
  .rj-problems__grid,
  .rj-approach__grid,
  .rj-faq__grid { gap: 56px; }
  .rj-ai__grid { gap: 48px; }
}

@media (max-width: 991px) {
  .rj-hero { --rj-header-h: 110px; padding-top: calc(var(--rj-header-h) + 16px); }

  .rj-hero__grid {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 8px;
  }

  .rj-system { height: 600px; margin-top: 24px; }
  .rj-stack { top: 54%; }

  .rj-problems__grid,
  .rj-approach__grid,
  .rj-ai__grid,
  .rj-faq__grid,
  .rj-voices__head {
    grid-template-columns: 1fr;
  }

  .rj-problems__intro,
  .rj-approach__sticky {
    position: static;
  }

  .rj-approach__counter,
  .rj-approach__track {
    display: none;
  }

  .rj-approach__steps.is-live .rj-step {
    opacity: 1;
  }

  .rj-cap,
  .rj-cap--design,
  .rj-cap--develop { grid-column: span 6; }
  .rj-cap--decision,
  .rj-cap--discipline { grid-column: span 12; }

  .rj-cap--discipline {
    display: flex;
  }

  .rj-cap--discipline .rj-cap__glyph { margin-bottom: auto; }
  .rj-cap--discipline .tagline { margin-top: 40px; }
  .rj-cap--discipline p { margin-bottom: 22px; }
  .rj-cap--discipline .rejola-tags { justify-content: flex-start; }
}

@media (max-width: 767px) {
  .rj-section { padding: 56px 0; }

  .rj-hero__copy .title { font-size: clamp(46px, 13vw, 64px); }

  .rj-hero__actions .rts-btn {
    width: 100%;
    max-width: 100%;
    justify-content: space-between;
  }

  .rj-system { --face: 150px; --gap: calc(30px + var(--explode, 0) * 14px); height: 470px; margin-top: 40px; }
  .rj-stack { top: 54%; }
  .rj-stack__face { padding: 0 12px 8px; gap: 6px; }
  .rj-stack__face b { font-size: 15px; }
  .rj-stack__face em { font-size: 10px; }

  .rj-friction li {
    max-width: 150px;
    padding: 8px 10px 8px 24px;
    font-size: 11px;
  }

  .rj-friction li::before { left: 10px; }
  .rj-friction li:nth-child(n + 5) { display: none; }
  .rj-friction li:nth-child(odd) { --x: 25% !important; }
  .rj-friction li:nth-child(even) { --x: 75% !important; }
  .rj-friction li:nth-child(1), .rj-friction li:nth-child(2) { --y: 4% !important; }
  .rj-friction li:nth-child(3), .rj-friction li:nth-child(4) { --y: 20% !important; }

  .rj-callout span { font-size: 10px; padding: 4px 7px; }

  .rj-metrics .single-counter-area { padding: 22px 12px 28px; }
  .rj-metrics .title { font-size: 34px; }
  .rj-metrics p { font-size: 10px; line-height: 1.5; letter-spacing: 0.08em; }

  .rj-clients__head { margin-bottom: 28px; }
  .rj-clients .single-brand { height: 72px; }

  .rj-problems__list li { gap: 18px; padding: 20px 36px 20px 0; }

  .rj-step { padding: 40px 0; }

  .rj-cap,
  .rj-cap--design,
  .rj-cap--develop { grid-column: span 12; min-height: 0; padding: 28px 24px; }
  .rj-cap .tagline { margin-top: 32px; }

  .rj-ai__modules { grid-template-columns: 1fr; gap: 12px; }
  .rj-ai__bus,
  .rj-module::before { display: none; }

  .rj-voices .single-testimonials-area-one { padding: 24px 20px 20px; }
}

/*---------- 14. reduced motion ----------*/

@media (prefers-reduced-motion: reduce) {
  .rj-js .rj-hero__copy .title,
  .rj-js .rj-hero__copy > p,
  .rj-js .rj-hero__actions .rts-btn,
  .rj-js .rj-system,
  .rj-js .rj-metrics .single-counter-area {
    opacity: 1;
  }

  .loaded .rj-hero__copy .title,
  .loaded .rj-hero__copy .title span,
  .loaded .rj-hero__copy > p,
  .loaded .rj-hero__actions .rts-btn,
  .loaded .rj-system,
  .loaded .rj-metrics .single-counter-area,
  .rj-friction li,
  .rj-stack__packet,
  .rj-ai__bus i {
    animation: none !important;
  }

  .rj-stack__layer,
  .rj-stack__scene,
  .rj-friction li,
  .rj-problems__list li,
  .rj-step {
    transition: none !important;
  }

  .rj-approach__steps.is-live .rj-step {
    opacity: 1;
  }
}
