/*=== Rejola homepage v3 ============================

Loaded last on index.php (after home.css and home-ai.css),
scoped to body.rj-v3. The 3D city and global chrome live in
rejola-ai.css / rejola-3d.js.

1.hero
2.ask box (dark)
3.faces
4.metrics
5.clients strip
6.capabilities
7.people
8.testimonials & cta
9.responsive & reduced motion

==================================================*/

/*---------- 1. hero ----------*/

.rj-v3 .v3-hero {
  --rj-header-h: 84px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--rj-header-h) + 48px) 0 0;
  color: #fff;
  background: var(--rj-ink);
}

.v3-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.v3-hero__aurora {
  position: absolute;
  inset: -20% -10% auto auto;
  width: 90%;
  height: 120%;
  background:
    radial-gradient(40% 35% at 70% 40%, rgba(53, 52, 255, 0.55), transparent 70%),
    radial-gradient(30% 30% at 90% 15%, rgba(42, 139, 216, 0.35), transparent 70%),
    radial-gradient(25% 25% at 55% 80%, rgba(143, 142, 255, 0.25), transparent 70%);
  filter: blur(20px);
  animation: v3Aurora 18s ease-in-out infinite alternate;
}

@keyframes v3Aurora {
  to { transform: translate3d(-4%, 3%, 0) scale(1.06); }
}

/* keeps the copy legible over the city */
.v3-hero__vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(5, 6, 15, 0.95) 0%, rgba(5, 6, 15, 0.7) 34%, rgba(5, 6, 15, 0) 62%),
    linear-gradient(0deg, var(--rj-ink) 0%, rgba(5, 6, 15, 0) 22%);
}

.v3-hero > .container {
  position: relative;
  z-index: 2;
}

.v3-hero__copy {
  max-width: 620px;
}

.rj-v3 .v3-hero__copy .title {
  margin: 0 0 28px;
  font-size: clamp(54px, 6.6vw, 112px);
  line-height: 0.92;
  letter-spacing: -0.058em;
  font-weight: 500;
  color: #fff;
}

.rj-v3 .v3-hero__copy .title span {
  display: block;
  color: transparent;
  background: linear-gradient(95deg, #b9b8ff 0%, #6d6cff 35%, #5fb2ff 65%, #b9b8ff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  padding-bottom: 0.06em;
}

.v3-hero__lead {
  max-width: 540px;
  margin: 0 0 36px;
  font-size: clamp(17px, 1.3vw, 20px) !important;
  line-height: 1.6 !important;
  color: rgba(226, 228, 255, 0.74) !important;
}

.v3-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.rj-v3 .v3-hero .rts-btn.btn-dark {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(220, 220, 255, 0.28);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.rj-v3 .v3-hero .rts-btn.btn-dark:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(220, 220, 255, 0.6);
  box-shadow: none;
}

.rj-v3 .v3-hero .rts-btn img {
  filter: brightness(0) invert(1);
}

/* Entrance */
.rj-js .v3-hero__copy .title,
.rj-js .v3-hero__lead,
.rj-js .v3-ask,
.rj-js .v3-hero__actions,
.rj-js .v3-hero .v3-faces,
.rj-js .v3-metrics {
  opacity: 0;
  visibility: visible !important;
}

.loaded .v3-hero__copy .title { animation: rjRise 1.2s var(--rj-ease) 0.35s both !important; }
.loaded .v3-hero__copy .title span { animation: rjRise 1.2s var(--rj-ease) 0.5s both, rjSheen 10s var(--rj-ease-in-out) 2.5s infinite; }
.loaded .v3-hero__lead { animation: rjRise 1s var(--rj-ease) 0.7s both; }
.loaded .v3-ask { animation: rjRise 1s var(--rj-ease) 0.85s both; }
.loaded .v3-hero__actions { animation: rjRise 1s var(--rj-ease) 1s both; }
.loaded .v3-hero .v3-faces { animation: rjRise 1s var(--rj-ease) 1.1s both; }
.loaded .v3-metrics { animation: rjRise 1s var(--rj-ease) 1.2s both; }

/*---------- 2. ask box (dark) ----------*/

.rj-v3 .v3-ask {
  margin: 0 0 30px;
  max-width: 560px;
}

.rj-v3 .v3-ask .rj-ask__label {
  color: var(--rj-indigo-300);
}

.rj-v3 .v3-ask .rj-ask__dot {
  background: var(--rj-indigo-300);
}

.rj-v3 .v3-ask .rj-ask__field {
  background: rgba(14, 15, 44, 0.72);
  border-color: rgba(143, 142, 255, 0.35);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 60px -30px rgba(53, 52, 255, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.rj-v3 .v3-ask .rj-ask__field:focus-within {
  border-color: var(--rj-indigo-300);
  box-shadow: 0 0 0 4px rgba(143, 142, 255, 0.18), 0 30px 60px -30px rgba(53, 52, 255, 0.7);
}

.rj-v3 .v3-ask .rj-ask__field textarea {
  color: #fff;
}

.rj-v3 .v3-ask .rj-ask__field textarea::placeholder {
  color: rgba(226, 228, 255, 0.5);
}

.rj-v3 .v3-ask .rj-ask__try button {
  color: rgba(226, 228, 255, 0.72);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(200, 200, 255, 0.16);
}

.rj-v3 .v3-ask .rj-ask__try button:hover {
  color: #fff;
  border-color: rgba(143, 142, 255, 0.6);
}

.rj-v3 .v3-ask .rj-ask__result {
  background: rgba(14, 15, 44, 0.9);
  border-color: rgba(143, 142, 255, 0.35);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.rj-v3 .v3-ask .rj-match__reply,
.rj-v3 .v3-ask .rj-match__story {
  color: #fff !important;
}

.rj-v3 .v3-ask .rj-match__caps span {
  background: var(--rj-indigo);
}

.rj-v3 .v3-ask .rj-match__caps em {
  color: #d6d5ff;
}

.rj-v3 .v3-ask .rj-match__services a {
  color: #d6d5ff;
  border-color: rgba(143, 142, 255, 0.4);
}

.rj-v3 .v3-ask .rj-match__cta {
  color: #fff;
}

.rj-v3 .v3-ask .rj-match__reset {
  color: rgba(226, 228, 255, 0.7);
  border-color: rgba(200, 200, 255, 0.2);
}

.rj-v3 .v3-ask .rj-match__badge--local {
  color: #fff;
  background: rgba(143, 142, 255, 0.2);
}

/*---------- 4. metrics ----------*/

.v3-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 72px;
  border-top: 1px solid var(--rj-line-dark);
  background: linear-gradient(180deg, rgba(5, 6, 15, 0.4), rgba(5, 6, 15, 0.85));
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.v3-metrics .single-counter-area {
  padding: 28px 32px 36px;
  border-left: 1px solid var(--rj-line-dark);
}

.v3-metrics .single-counter-area:first-child {
  border-left: 0;
  padding-left: 0;
}

.rj-v3 .v3-metrics .title {
  margin: 0 0 10px;
  font-size: clamp(40px, 4.4vw, 68px);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.05em;
  color: #fff;
}

.rj-v3 .v3-metrics .title .counter {
  color: #fff;
}

.rj-v3 .v3-metrics .title .plus,
.rj-v3 .v3-metrics .single-counter-area:last-child .title {
  color: var(--rj-indigo-300);
}

.v3-metrics p {
  margin: 0;
  font-family: var(--rj-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(226, 228, 255, 0.6);
}

/*---------- 5. clients strip ----------*/

/* White ground, logos in full colour */
.rj-v3 .rj-clients {
  padding: 64px 0 56px;
  background: #fff;
}

.rj-v3 .rj-clients__head .title {
  color: var(--rj-text);
}

.rj-v3 .rj-clients .single-brand {
  background: #fff;
  border-color: var(--rj-line);
}

.rj-v3 .rj-clients .single-brand img,
.rj-v3 .rj-clients .single-brand:hover img {
  filter: none !important;
  opacity: 1 !important;
}

/*---------- 6. capabilities ----------*/

.rj-v3 .rj-cap {
  transform-style: preserve-3d;
}

/* conic light border on hover */
.rj-v3 .rj-cap::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 0;
  padding: 1px;
  border-radius: inherit;
  background: conic-gradient(from var(--rj-angle, 0deg), transparent 0 70%, var(--rj-indigo) 80%, #5fb2ff 88%, transparent 96%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.rj-v3 .rj-cap:hover::before {
  opacity: 1;
  animation: v3Spin 3s linear infinite;
}

@property --rj-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes v3Spin {
  to { --rj-angle: 360deg; }
}

/*---------- 7. people ----------*/

.v3-people {
  overflow: hidden;
}

.v3-people__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 72px;
  align-items: center;
  margin-bottom: 72px;
}

.v3-people__intro .rts-btn {
  margin-top: 12px;
}

.v3-people__photo {
  position: relative;
  margin: 0;
  border-radius: var(--rj-radius);
  overflow: hidden;
  box-shadow: 0 60px 120px -60px rgba(12, 13, 42, 0.6);
  transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
  transition: transform 1s var(--rj-ease);
}

.v3-people__photo:hover {
  transform: perspective(1400px) rotateY(0) rotateX(0);
}

.v3-people__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(53, 52, 255, 0.25));
  pointer-events: none;
}

.v3-people__photo img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.v3-people__cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 18px;
  perspective: 1200px;
}

.v3-person {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--rj-text);
  opacity: 0;
  transform: translateY(24px) rotateX(12deg);
  transition: opacity 0.8s var(--rj-ease), transform 0.8s var(--rj-ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}

.v3-people__cards.is-ready .v3-person {
  opacity: 1;
  transform: none;
}

.v3-person__photo {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  margin-bottom: 10px;
  overflow: hidden;
  border-radius: var(--rj-radius);
  background: linear-gradient(160deg, #f4f4ff, #e4e4fb);
}

.v3-person__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  filter: grayscale(0.35) contrast(1.02);
  transition: transform 1s var(--rj-ease), filter 0.5s;
}

.v3-person__photo::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--rj-red), var(--rj-blue), var(--rj-green));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--rj-ease);
}

.v3-person:hover .v3-person__photo img {
  transform: scale(1.06);
  filter: none;
}

.v3-person:hover .v3-person__photo::after {
  transform: scaleX(1);
}

.v3-person__name {
  font-family: var(--font-medium);
  font-size: 16px;
  letter-spacing: -0.01em;
}

.v3-person__role {
  font-family: var(--rj-mono);
  font-size: 11px;
  line-height: 1.4;
  color: var(--rj-indigo);
}

.v3-person--more .v3-person__more {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 5;
  margin-bottom: 10px;
  font-family: var(--font-medium);
  font-size: 40px;
  letter-spacing: -0.04em;
  color: #fff;
  background:
    radial-gradient(160px 120px at 100% 0%, rgba(53, 52, 255, 0.7), transparent 70%),
    var(--rj-ink);
  border-radius: var(--rj-radius);
}

/*---------- 8. testimonials & cta ----------*/

.rj-v3 .rj-voices {
  background: var(--rj-paper);
}


/*---------- 9. responsive & reduced motion ----------*/

@media (max-width: 991px) {
  .rj-v3 .v3-hero {
    min-height: 0;
    padding-top: calc(var(--rj-header-h) + 32px);
  }

  .v3-hero__vignette {
    background: linear-gradient(0deg, var(--rj-ink) 0%, rgba(5, 6, 15, 0.86) 40%, rgba(5, 6, 15, 0.7) 100%);
  }

  .v3-people__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 767px) {
  .rj-v3 .v3-hero__copy .title {
    font-size: clamp(46px, 13vw, 64px);
  }

  .v3-hero__actions .rts-btn {
    width: 100%;
    max-width: 100%;
    justify-content: space-between;
  }

  .v3-metrics .single-counter-area {
    padding: 22px 10px 28px;
  }

  .rj-v3 .v3-metrics .title {
    font-size: 34px;
  }

  .v3-metrics p {
    font-size: 10px;
    line-height: 1.5;
    letter-spacing: 0.08em;
  }

  .v3-people__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .v3-people__photo {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .v3-hero__aurora,
  .rj-v3 .rj-cap:hover::before {
    animation: none !important;
  }

  .rj-js .v3-hero__copy .title,
  .rj-js .v3-hero__lead,
  .rj-js .v3-ask,
  .rj-js .v3-hero__actions,
  .rj-js .v3-hero .v3-faces,
  .rj-js .v3-metrics {
    opacity: 1;
  }

  .loaded .v3-hero__copy .title,
  .loaded .v3-hero__copy .title span,
  .loaded .v3-hero__lead,
  .loaded .v3-ask,
  .loaded .v3-hero__actions,
  .loaded .v3-hero .v3-faces,
  .loaded .v3-metrics {
    animation: none !important;
  }

  .v3-person {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Hero stack: markup and motion shared with index1 (home.css, home.js), recoloured for the dark hero */
.v3-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 32px;
  align-items: center;
}

.rj-v3 .v3-hero .rj-stack__shadow {
  background: radial-gradient(closest-side, rgba(83, 82, 255, 0.55), rgba(53, 52, 255, 0.14) 60%, transparent);
}

.rj-v3 .v3-hero .rj-friction li {
  color: #e6e7ff;
  background: rgba(18, 19, 42, 0.78);
  border-color: rgba(170, 170, 255, 0.22);
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.rj-v3 .v3-hero .rj-callout em {
  color: #b9b8ff;
}

.rj-v3 .v3-hero .rj-callout span {
  color: #e6e7ff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(185, 184, 255, 0.3);
}

/* Full-height hero: copy and stack in the upper field, metrics on the floor line */
@media (min-width: 992px) {
  .rj-v3 .v3-hero > .container {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - var(--rj-header-h) - 48px);
    min-height: calc(100svh - var(--rj-header-h) - 48px);
  }

  .rj-v3 .v3-metrics {
    margin-top: auto;
  }
}

@media (max-width: 991px) {
  .v3-hero__grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
