/* Eyebrow + title stack: fixed chip width, title always on its own line */
.rjx-section__intro .rjx-section__title {
    display: block;
    width: 100%;
    margin: 0 0 var(--rjx-space-lg);
}

/* ------------------------------------------------------------
   Homepage Hero (#about) — v1 dual-column layout, rjx tokens
   ------------------------------------------------------------ */

.rjx-section--hero {
  position: relative;
  overflow: hidden;
}

.rjx-home-hero__decor {
  position: absolute;
  top: -200px;
  right: -200px;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(var(--rjx-brand-rgb), 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.rjx-home-hero__decor::before {
  content: "";
  position: absolute;
  top: 100px;
  right: 100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(var(--rjx-brand-rgb), 0.1) 0%, transparent 70%);
}

.rjx-home-hero__decor::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -100px;
  width: 200px;
  height: 200px;
  border: 2px solid rgba(var(--rjx-brand-rgb), 0.12);
  border-radius: 50%;
  animation: rjx-home-hero-pulse 4s ease-in-out infinite;
}

@keyframes rjx-home-hero-pulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.2); opacity: 0.1; }
}

@media (prefers-reduced-motion: reduce) {
  .rjx-home-hero__decor::after {
    animation: none;
  }
}

.rjx-home-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.rjx-section--hero > .rjx-container {
  position: relative;
  z-index: 1;
}

.rjx-home-about {
  display: grid;
  /* Constrain the single column to the viewport (min 0) so the swipeable
     poster strip scrolls internally instead of stretching the whole row
     — which previously also pushed the service cards off-screen on phones. */
  grid-template-columns: minmax(0, 1fr);
  gap: 60px;
}

@media (min-width: 960px) {
  .rjx-home-about {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: 80px;
  }

  /* Row height follows left column; right posters stretch to match without exceeding it */
  .rjx-home-hero__media {
    min-height: 0;
    height: 100%;
    align-self: stretch;
  }

  .rjx-home-posters {
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
    align-self: stretch;
  }

  .rjx-home-poster {
    height: 100%;
    align-self: stretch;
  }
}

.rjx-home-hero__content {
  position: relative;
  min-width: 0;
}

.rjx-home-hero__text {
  margin-bottom: 0;
}


.rjx-home-hero__title {
  margin: 0;
  font-family: var(--rjx-font-display);
  font-size: clamp(44px, 7vw, 104px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--rjx-text);
}

.rjx-home-hero__title-line {
  display: block;
}

.rjx-home-hero__title-line--brand::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 0.55rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--rjx-brand), var(--rjx-accent));
  box-shadow: 0 0 14px rgba(var(--rjx-brand-rgb), 0.32);
}

.rjx-home-hero__title-line--tagline {
  margin-top: 0.95em;
  max-width: 16em;
  font-size: clamp(1.25rem, 2.6vw, 2rem);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: var(--rjx-brand);
}

.rjx-home-hero__tagline-line {
  display: block;
}

.rjx-home-hero__tagline-line--light {
  color: var(--rjx-text);
}

.rjx-home-hero__services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
  max-width: 100%;
  margin-top: var(--rjx-section-content-gap);
}

.rjx-home-hero__service {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  min-height: 5.5rem;
  margin: 0;
  padding: 1.15rem 1.25rem;
  border: 0;
  border-radius: 1rem;
  overflow: hidden;
  cursor: default;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 42%, rgba(0, 0, 0, 0.12) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -18px 28px rgba(0, 0, 0, 0.18),
    0 10px 24px rgba(0, 0, 0, 0.22);
  transition:
    transform 0.38s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.rjx-home-hero__service::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    155deg,
    rgba(var(--rjx-brand-rgb), 0.42),
    rgba(255, 255, 255, 0.08) 38%,
    rgba(var(--rjx-accent-rgb), 0.28)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.rjx-home-hero__service--licensing::before {
  background: linear-gradient(
    155deg,
    rgba(var(--rjx-brand-rgb), 0.52),
    rgba(255, 255, 255, 0.08) 42%,
    rgba(var(--rjx-brand-rgb), 0.18)
  );
}

.rjx-home-hero__service--rjoy::before {
  background: linear-gradient(
    155deg,
    rgba(var(--rjx-accent-rgb), 0.48),
    rgba(255, 255, 255, 0.08) 42%,
    rgba(var(--rjx-accent-rgb), 0.16)
  );
}

.rjx-home-hero__service-icon {
  position: relative;
  z-index: 1;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1rem;
  color: var(--rjx-brand);
  background: rgba(var(--rjx-brand-rgb), 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 6px 16px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

.rjx-home-hero__service--licensing .rjx-home-hero__service-icon {
  color: var(--rjx-brand);
  background: rgba(var(--rjx-brand-rgb), 0.14);
}

.rjx-home-hero__service--rjoy .rjx-home-hero__service-icon {
  color: var(--rjx-accent);
  background: rgba(var(--rjx-accent-rgb), 0.14);
}

.rjx-home-hero__service-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.rjx-home-hero__service-short {
  margin: 0;
  font-family: var(--rjx-font-display);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-align: left;
  color: rgba(255, 255, 255, 0.94);
}

.rjx-home-hero__service-reveal {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.15rem;
  opacity: 0;
  transform: translateY(8px) scale(0.99);
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(
      160deg,
      rgba(255, 255, 255, 0.18) 0%,
      rgba(255, 255, 255, 0.07) 42%,
      rgba(10, 10, 12, 0.46) 100%
    );
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  transition:
    opacity 0.34s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.rjx-home-hero__service-reveal::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.rjx-home-hero__service--licensing .rjx-home-hero__service-reveal::before {
  background: radial-gradient(circle at 50% 12%, rgba(var(--rjx-brand-rgb), 0.22), transparent 62%);
}

.rjx-home-hero__service--rjoy .rjx-home-hero__service-reveal::before {
  background: radial-gradient(circle at 50% 12%, rgba(var(--rjx-accent-rgb), 0.2), transparent 62%);
}

.rjx-home-hero__service-full {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--rjx-font-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  text-align: center;
  color: #fff;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08),
    0 6px 18px rgba(0, 0, 0, 0.4);
  text-wrap: balance;
}

/* Light sheen that sweeps across the card face on hover */
.rjx-home-hero__service::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: inherit;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.16) 50%,
    transparent 70%
  );
  transform: translateX(-120%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

@keyframes rjx-home-service-sweep {
  to {
    transform: translateX(120%);
  }
}

@media (hover: hover) and (pointer: fine) {
  .rjx-home-hero__service:hover::after,
  .rjx-home-hero__service:focus-visible::after {
    opacity: 1;
    animation: rjx-home-service-sweep 0.95s var(--rjx-fx-ease, cubic-bezier(0.22, 1, 0.36, 1)) forwards;
  }

  .rjx-home-hero__service:hover,
  .rjx-home-hero__service:focus-visible {
    transform: translateY(-3px);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.14),
      inset 0 -18px 28px rgba(0, 0, 0, 0.16),
      0 16px 34px rgba(0, 0, 0, 0.28),
      0 0 0 1px rgba(var(--rjx-brand-rgb), 0.16);
  }

  .rjx-home-hero__service--rjoy:hover,
  .rjx-home-hero__service--rjoy:focus-visible {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.14),
      inset 0 -18px 28px rgba(0, 0, 0, 0.16),
      0 16px 34px rgba(0, 0, 0, 0.28),
      0 0 0 1px rgba(var(--rjx-accent-rgb), 0.18);
  }

  .rjx-home-hero__service:hover .rjx-home-hero__service-icon,
  .rjx-home-hero__service:focus-visible .rjx-home-hero__service-icon {
    transform: scale(1.06);
  }

  .rjx-home-hero__service:hover .rjx-home-hero__service-reveal,
  .rjx-home-hero__service:focus-visible .rjx-home-hero__service-reveal {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }
}

@media (max-width: 768px) {
  .rjx-home-hero__title {
    letter-spacing: -0.02em;
  }

  .rjx-home-hero__title-line--tagline {
    max-width: none;
    font-size: 1.1875rem;
  }

  .rjx-home-hero__services {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .rjx-home-hero__service {
    gap: 0.75rem;
    min-height: 5rem;
    padding: 0.95rem 0.85rem;
  }

  .rjx-home-hero__service-icon {
    width: 2.875rem;
    height: 2.875rem;
    border-radius: 0.875rem;
  }

  .rjx-home-hero__service-icon svg {
    width: 24px;
    height: 24px;
  }

  .rjx-home-hero__service-short {
    font-size: 1rem;
  }

  .rjx-home-hero__service-reveal {
    padding: 0.85rem 0.9rem;
  }

  .rjx-home-hero__service-full {
    font-size: 0.9375rem;
    line-height: 1.3;
  }
}

@media (max-width: 480px) {
  .rjx-home-hero__service {
    padding: 0.85rem 0.75rem;
  }

  .rjx-home-hero__service-icon {
    width: 2.625rem;
    height: 2.625rem;
  }

  .rjx-home-hero__service-full {
    font-size: 0.875rem;
  }
}

@media (hover: none), (pointer: coarse) {
  .rjx-home-hero__service:active {
    transform: translateY(-1px);
  }

  .rjx-home-hero__service:active .rjx-home-hero__service-icon {
    transform: scale(1.04);
  }

  .rjx-home-hero__service:active .rjx-home-hero__service-reveal {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rjx-home-hero__service,
  .rjx-home-hero__service-icon,
  .rjx-home-hero__service-reveal {
    transition: none;
  }

  .rjx-home-hero__service::after {
    display: none;
  }
}

.rjx-home-hero__media {
  position: relative;
  max-width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.rjx-home-posters {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  flex: 1;
  min-height: 0;
}

.rjx-home-poster {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  margin: 0;
  border-radius: var(--rjx-poster-radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--rjx-bg-card);
  box-shadow: var(--rjx-shadow-card);
  outline: none;
  transition:
    flex-grow 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s ease,
    border-color 0.4s ease;
}

.rjx-home-poster::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(0, 0, 0, 0.5) 100%);
  opacity: 0.55;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

body.rjx-marketing .rjx-home-posters .rjx-home-poster img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center center;
  transform-origin: center center;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) and (pointer: fine) {
  .rjx-home-posters .rjx-home-poster:hover,
  .rjx-home-posters .rjx-home-poster:focus-visible {
    flex-grow: 2.6;
    border-color: rgba(var(--rjx-brand-rgb), 0.45);
    box-shadow:
      0 18px 44px rgba(0, 0, 0, 0.42),
      0 0 0 1px rgba(var(--rjx-brand-rgb), 0.28);
  }

  .rjx-home-poster:hover img,
  .rjx-home-poster:focus-visible img {
    transform: scale(1.05);
  }

  .rjx-home-poster:hover::after,
  .rjx-home-poster:focus-visible::after {
    opacity: 0.22;
  }
}

/* Below the two-column breakpoint the equal-width flex row collapses
   each poster into a thin cropped sliver. Switch to a horizontal
   scroll-snap strip so every poster keeps a proper 9/16 portrait. */
@media (max-width: 959px) {
  .rjx-home-posters {
    flex: none;
    flex-wrap: nowrap;
    align-items: stretch;
    min-height: 0;
    padding-bottom: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }

  .rjx-home-posters::-webkit-scrollbar {
    display: none;
  }

  .rjx-home-poster {
    flex: 0 0 auto;
    width: clamp(150px, 44vw, 210px);
    height: auto;
    aspect-ratio: 9 / 16;
    scroll-snap-align: start;
  }
}

/* Phones: keep the horizontal scroll-snap strip so posters can be swiped
   left/right instead of stacking vertically. One poster reads prominently
   with the next peeking in to invite the swipe. */
@media (max-width: 767px) {
  .rjx-home-posters {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 12px;
    padding-bottom: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }

  .rjx-home-posters::-webkit-scrollbar {
    display: none;
  }

  .rjx-home-poster {
    flex: 0 0 auto;
    width: clamp(170px, 60vw, 240px);
    height: auto;
    aspect-ratio: 9 / 16;
    scroll-snap-align: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rjx-home-poster,
  .rjx-home-poster img {
    transition: none;
  }
}

@media (max-width: 639px) {
  .rjx-home-about {
    gap: var(--rjx-space-lg);
  }
}

.rjx-home-b2b__cta {
  margin-top: var(--rjx-space-lg);
  display: flex;
  flex-wrap: wrap;
  gap: var(--rjx-space-sm);
}

.rjx-home-rjoy-carousel-wrap {
  margin-top: var(--rjx-section-content-gap);
  border-radius: var(--rjx-radius-lg);
  overflow: visible;
  position: relative;
  z-index: 2;
}

#platform-b2c .rjx-section__intro {
  margin-bottom: 0;
}

.rjx-home-rjoy-carousel {
  position: relative;
  width: 100%;
  min-height: clamp(440px, 44vh, 540px);
}

.rjx-home-rjoy-carousel:focus-visible {
  outline: 2px solid rgba(var(--rjx-brand-rgb), 0.6);
  outline-offset: 6px;
  border-radius: var(--rjx-radius-lg);
}

.rjx-home-rjoy-carousel__viewport {
  width: 100%;
  height: 100%;
  min-height: inherit;
  overflow: visible;
  perspective: 1400px;
  perspective-origin: 50% 50%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.rjx-home-rjoy-carousel__track {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
  transform-style: preserve-3d;
}

.rjx-home-rjoy-carousel__slide {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(9rem, 11.5vw, 12.5rem);
  height: auto;
  aspect-ratio: 9 / 16;
  margin: 0;
  transform: translate(-50%, -50%) scale(0.7);
  transform-origin: center center;
  opacity: 0;
  transition:
    transform 0.7s cubic-bezier(0.32, 0.72, 0, 1),
    opacity 0.6s ease;
}

@supports not (aspect-ratio: 1 / 1) {
  .rjx-home-rjoy-carousel__slide {
    height: clamp(16rem, 20.44vw, 22.22rem);
  }
}

/* The poster itself; clipping/border/shadow live here so the
   reflection below can extend outside the slide box. */
.rjx-home-rjoy-carousel__frame {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--rjx-poster-radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--rjx-bg-card);
  box-shadow: var(--rjx-shadow-card);
  transition: box-shadow 0.6s ease, border-color 0.6s ease;
}

.rjx-home-rjoy-carousel__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Real mirrored reflection: a flipped copy of the poster placed
   directly under it so proportions always match the original. */
.rjx-home-rjoy-carousel__reflection {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
  margin-top: 2px;
  border-radius: var(--rjx-poster-radius);
  overflow: hidden;
  pointer-events: none;
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.45) 24%, rgba(0, 0, 0, 0.12) 50%, transparent 72%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.45) 24%, rgba(0, 0, 0, 0.12) 50%, transparent 72%);
}

.rjx-home-rjoy-carousel__reflection img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scaleY(-1);
  filter: blur(0.6px);
}

.rjx-home-rjoy-carousel__slide.is-active .rjx-home-rjoy-carousel__frame {
  border-color: rgba(var(--rjx-brand-rgb), 0.32);
  box-shadow:
    var(--rjx-shadow-card),
    0 0 0 1px rgba(var(--rjx-brand-rgb), 0.32),
    0 18px 40px rgba(0, 0, 0, 0.45),
    0 0 28px rgba(var(--rjx-brand-rgb), 0.2);
}

/* Side posters are clickable to bring them to center. */
.rjx-home-rjoy-carousel__slide.is-side {
  cursor: pointer;
}

.rjx-home-rjoy-carousel__slide.is-side:hover {
  opacity: 1 !important;
}

/* Left / right navigation buttons */
.rjx-home-rjoy-carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(2.75rem, 4vw, 3.25rem);
  height: clamp(2.75rem, 4vw, 3.25rem);
  padding: 0;
  color: #fff;
  background: rgba(10, 10, 14, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  opacity: 0.55;
  transition:
    opacity 0.3s ease,
    transform 0.3s cubic-bezier(0.32, 0.72, 0, 1),
    background 0.3s ease,
    border-color 0.3s ease;
}

.rjx-home-rjoy-carousel:hover .rjx-home-rjoy-carousel__nav {
  opacity: 0.9;
}

.rjx-home-rjoy-carousel__nav:hover {
  opacity: 1;
  background: rgba(var(--rjx-brand-rgb), 0.85);
  border-color: rgba(var(--rjx-brand-rgb), 0.6);
}

.rjx-home-rjoy-carousel__nav:focus-visible {
  opacity: 1;
  outline: none;
  border-color: rgba(var(--rjx-brand-rgb), 0.9);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.4),
    0 0 0 3px rgba(var(--rjx-brand-rgb), 0.4);
}

.rjx-home-rjoy-carousel__nav svg {
  display: block;
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

.rjx-home-rjoy-carousel__nav--prev {
  left: clamp(0.5rem, 2.5vw, 1.75rem);
}

.rjx-home-rjoy-carousel__nav--next {
  right: clamp(0.5rem, 2.5vw, 1.75rem);
}

.rjx-home-rjoy-carousel__nav--prev:hover svg {
  transform: translateX(-2px);
}

.rjx-home-rjoy-carousel__nav--next:hover svg {
  transform: translateX(2px);
}

.rjx-home-rjoy-carousel__nav:active {
  transform: translateY(-50%) scale(0.92);
}

@media (max-width: 959px) {
  .rjx-home-rjoy-carousel__slide {
    width: clamp(8.5rem, 40vw, 11rem);
    height: auto;
    aspect-ratio: 9 / 16;
  }

  .rjx-home-rjoy-carousel__nav {
    opacity: 0.85;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rjx-home-rjoy-carousel__slide {
    transition: opacity 0.3s ease;
  }

  .rjx-home-rjoy-carousel__nav,
  .rjx-home-rjoy-carousel__nav svg {
    transition: none;
  }
}

.rjx-home-producer .rjx-grid--cards {
  margin-top: var(--rjx-space-xs);
}

/* Title/intro align with producer block; only the player is centered */
.rjx-home-video .rjx-video-wrap {
  margin-left: auto;
  margin-right: auto;
  margin-inline: auto;
}

.rjx-map-compact {
  margin-top: var(--rjx-space-sm);
  border-radius: var(--rjx-radius-lg);
  overflow: hidden;
}

#global-reach .rjx-stat-grid {
  margin-top: var(--rjx-space-md);
}

#global-reach .rjx-map-compact {
  margin-top: var(--rjx-space-lg);
}

/* ------------------------------------------------------------
   RJOY channel cards
   ------------------------------------------------------------ */

.rjx-home-brand-portfolio {
  margin-top: var(--rjx-section-content-gap);
  position: relative;
  z-index: 1;
}

.rjx-home-brand-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(0.9rem, 1.8vw, 1.25rem);
  margin-top: 0;
}

.rjx-home-brand-portfolio + .rjx-home-rjoy-carousel-wrap {
  margin-top: clamp(2.25rem, 4.4vw, 3.5rem);
}

@media (min-width: 768px) {
  .rjx-home-brand-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .rjx-home-brand-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.rjx-home-brand-card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(7.5rem, 10vw, 9.25rem);
  grid-template-rows: auto 1fr;
  align-items: center;
  gap: 0.8rem clamp(0.85rem, 1.8vw, 1.35rem);
  min-height: clamp(11.5rem, 15vw, 13.5rem);
  padding: clamp(1rem, 1.8vw, 1.35rem);
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 0%, rgba(var(--rjx-brand-rgb), 0.1), transparent 34%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02) 48%, rgba(0, 0, 0, 0.16));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 28px rgba(0, 0, 0, 0.22);
  transition:
    transform 0.45s var(--rjx-fx-ease, cubic-bezier(0.22, 1, 0.36, 1)),
    box-shadow 0.45s var(--rjx-fx-ease, cubic-bezier(0.22, 1, 0.36, 1)),
    border-color 0.4s ease;
}

.rjx-home-brand-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    150deg,
    rgba(var(--rjx-brand-rgb), 0.28),
    rgba(255, 255, 255, 0.08) 42%,
    rgba(var(--rjx-accent-rgb), 0.18)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.rjx-home-brand-card::after {
  content: "";
  position: absolute;
  right: -28%;
  bottom: -32%;
  z-index: -2;
  width: 14rem;
  height: 14rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(var(--rjx-brand-rgb), 0.1), transparent 66%);
  pointer-events: none;
}

.rjx-home-brand-card--rjoy {
  background:
    radial-gradient(circle at 20% 0%, rgba(var(--rjx-accent-rgb), 0.12), transparent 38%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02) 48%, rgba(0, 0, 0, 0.16));
}

.rjx-home-brand-card--rjoy::before {
  background: linear-gradient(
    150deg,
    rgba(var(--rjx-accent-rgb), 0.32),
    rgba(255, 255, 255, 0.08) 42%,
    rgba(var(--rjx-accent-rgb), 0.14)
  );
}

.rjx-home-brand-card--rjoy::after {
  background: radial-gradient(circle, rgba(var(--rjx-accent-rgb), 0.1), transparent 66%);
}

.rjx-home-brand-card--zones::before {
  background: linear-gradient(
    150deg,
    rgba(var(--rjx-brand-rgb), 0.24),
    rgba(255, 255, 255, 0.08) 36%,
    rgba(var(--rjx-accent-rgb), 0.24)
  );
}

/* Gradient border + glow blob ease in on hover */
.rjx-home-brand-card::before {
  transition: opacity 0.4s ease;
}

.rjx-home-brand-card::after {
  transition: opacity 0.5s ease, transform 0.6s var(--rjx-fx-ease, cubic-bezier(0.22, 1, 0.36, 1));
}

@media (hover: hover) and (pointer: fine) {
  .rjx-home-brand-card:hover,
  .rjx-home-brand-card:focus-within {
    transform: translateY(-4px);
    border-color: rgba(var(--rjx-brand-rgb), 0.4);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.1),
      0 22px 48px rgba(0, 0, 0, 0.4),
      0 0 0 1px rgba(var(--rjx-brand-rgb), 0.28),
      0 0 40px rgba(var(--rjx-brand-rgb), 0.16);
  }

  .rjx-home-brand-card--rjoy:hover,
  .rjx-home-brand-card--rjoy:focus-within {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.1),
      0 22px 48px rgba(0, 0, 0, 0.4),
      0 0 0 1px rgba(var(--rjx-accent-rgb), 0.3),
      0 0 40px rgba(var(--rjx-accent-rgb), 0.16);
  }

  .rjx-home-brand-card:hover::after,
  .rjx-home-brand-card:focus-within::after {
    transform: translate(8%, 6%) scale(1.18);
  }

  /* Device mockups respond to the card, not constant ambient motion */
  .rjx-home-brand-card:hover .rjx-home-brand-phone,
  .rjx-home-brand-card:focus-within .rjx-home-brand-phone {
    transform: translateY(50%) rotate(2deg) scale(1.04);
  }

  .rjx-home-brand-card:hover .rjx-home-brand-device,
  .rjx-home-brand-card:focus-within .rjx-home-brand-device {
    transform: translateY(50%) translateY(-4px) scale(1.04);
  }

  .rjx-home-brand-card:hover .rjx-home-brand-zone,
  .rjx-home-brand-card:focus-within .rjx-home-brand-zone {
    transform: translateY(50%) scale(1.04);
  }

  .rjx-home-brand-card:hover .rjx-home-brand-stack,
  .rjx-home-brand-card:focus-within .rjx-home-brand-stack {
    transform: translateY(50%) translateX(-3px);
  }

  .rjx-home-brand-card:hover .rjx-home-brand-orbit--one,
  .rjx-home-brand-card:focus-within .rjx-home-brand-orbit--one {
    transform: translate(-3px, -3px) scale(1.1);
  }

  .rjx-home-brand-card:hover .rjx-home-brand-card__kicker,
  .rjx-home-brand-card:focus-within .rjx-home-brand-card__kicker {
    border-color: rgba(var(--rjx-brand-rgb), 0.45);
    background: rgba(var(--rjx-brand-rgb), 0.16);
  }

  .rjx-home-brand-card--rjoy:hover .rjx-home-brand-card__kicker,
  .rjx-home-brand-card--rjoy:focus-within .rjx-home-brand-card__kicker {
    border-color: rgba(var(--rjx-accent-rgb), 0.45);
    background: rgba(var(--rjx-accent-rgb), 0.16);
  }
}

/* Device mockups + stack share the eased transition driven by card hover */
.rjx-home-brand-phone,
.rjx-home-brand-device,
.rjx-home-brand-zone,
.rjx-home-brand-stack,
.rjx-home-brand-orbit {
  transition: transform 0.5s var(--rjx-fx-ease, cubic-bezier(0.22, 1, 0.36, 1));
}

@media (prefers-reduced-motion: reduce) {
  .rjx-home-brand-card,
  .rjx-home-brand-card::after,
  .rjx-home-brand-phone,
  .rjx-home-brand-device,
  .rjx-home-brand-zone,
  .rjx-home-brand-stack,
  .rjx-home-brand-orbit {
    transition: none;
  }

  /* Restore each element's resting transform so hover causes no motion */
  .rjx-home-brand-card:hover,
  .rjx-home-brand-card:focus-within,
  .rjx-home-brand-card:hover .rjx-home-brand-orbit--one,
  .rjx-home-brand-card:focus-within .rjx-home-brand-orbit--one,
  .rjx-home-brand-card:hover::after,
  .rjx-home-brand-card:focus-within::after {
    transform: none;
  }

  .rjx-home-brand-card:hover .rjx-home-brand-phone,
  .rjx-home-brand-card:focus-within .rjx-home-brand-phone {
    transform: translateY(50%) rotate(5deg);
  }

  .rjx-home-brand-card:hover .rjx-home-brand-device,
  .rjx-home-brand-card:focus-within .rjx-home-brand-device,
  .rjx-home-brand-card:hover .rjx-home-brand-zone,
  .rjx-home-brand-card:focus-within .rjx-home-brand-zone,
  .rjx-home-brand-card:hover .rjx-home-brand-stack,
  .rjx-home-brand-card:focus-within .rjx-home-brand-stack {
    transform: translateY(50%);
  }
}

.rjx-home-brand-card__copy {
  position: relative;
  z-index: 2;
  grid-column: 1;
  grid-row: 2;
}

.rjx-home-brand-card__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  justify-self: start;
  grid-column: 1 / -1;
  grid-row: 1;
  min-height: 1.55rem;
  margin: 0;
  padding: 0.28rem 0.6rem;
  border: 1px solid rgba(var(--rjx-brand-rgb), 0.24);
  border-radius: 999px;
  color: var(--rjx-brand);
  background: rgba(var(--rjx-brand-rgb), 0.1);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
}

.rjx-home-brand-card--rjoy .rjx-home-brand-card__kicker {
  border-color: rgba(var(--rjx-accent-rgb), 0.28);
  color: var(--rjx-accent);
  background: rgba(var(--rjx-accent-rgb), 0.1);
}

.rjx-home-brand-card__kicker-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rjx-home-brand-card__kicker-icon svg {
  width: 0.82rem;
  height: 0.82rem;
}

.rjx-home-brand-card__title {
  max-width: 11em;
  margin: 0;
  color: var(--rjx-text);
  font-family: var(--rjx-font-display);
  font-size: clamp(1.15rem, 1.65vw, 1.45rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.rjx-home-brand-card__text {
  max-width: 30rem;
  margin: 0.65rem 0 0;
  color: var(--rjx-text-muted);
  font-size: 0.85rem;
  line-height: 1.55;
}

.rjx-home-brand-card__logos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.4rem;
  align-items: stretch;
  width: 100%;
  margin-top: 0.85rem;
}

.rjx-home-brand-card__logos img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  padding: 0.32rem;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  box-sizing: border-box;
}

.rjx-home-brand-card--rjoy .rjx-home-brand-card__logos img {
  border-color: rgba(var(--rjx-accent-rgb), 0.22);
  background: rgba(var(--rjx-accent-rgb), 0.08);
}

.rjx-home-brand-card__visual {
  position: relative;
  grid-column: 2;
  grid-row: 2;
  align-self: center;
  width: 100%;
  min-height: clamp(8rem, 11vw, 9.5rem);
  margin-top: 0;
}

.rjx-home-brand-phone,
.rjx-home-brand-device,
.rjx-home-brand-zone {
  position: absolute;
  right: 0;
  bottom: 50%;
  transform: translateY(50%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035)),
    rgba(10, 10, 12, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 18px 38px rgba(0, 0, 0, 0.35);
}

.rjx-home-brand-phone {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 6.25rem;
  height: 8.65rem;
  padding: 0.7rem 0.6rem;
  border-radius: 1.25rem;
  transform: translateY(50%) rotate(5deg);
}

.rjx-home-brand-phone__bar {
  width: 1.9rem;
  height: 0.26rem;
  margin-left: auto;
  margin-right: auto;
  margin-inline: auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.rjx-home-brand-feed {
  display: block;
  height: 0.82rem;
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.12);
}

.rjx-home-brand-feed--hero {
  height: 3.9rem;
  background:
    linear-gradient(135deg, rgba(var(--rjx-brand-rgb), 0.52), rgba(var(--rjx-accent-rgb), 0.28)),
    rgba(255, 255, 255, 0.12);
}

.rjx-home-brand-feed--short {
  width: 68%;
}

.rjx-home-brand-orbit {
  position: absolute;
  display: block;
  border-radius: 999px;
  background: rgba(var(--rjx-brand-rgb), 0.18);
  box-shadow: 0 0 24px rgba(var(--rjx-brand-rgb), 0.12);
}

.rjx-home-brand-orbit--one {
  right: 5.65rem;
  bottom: 5.3rem;
  width: 2.35rem;
  height: 2.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rjx-home-brand-orbit--one img {
  display: block;
  width: 50%;
  height: 50%;
  object-fit: contain;
  border-radius: inherit;
}

.rjx-home-brand-orbit--two {
  right: 5rem;
  bottom: 1.25rem;
  width: 1.25rem;
  height: 1.25rem;
  background: rgba(var(--rjx-accent-rgb), 0.2);
  box-shadow: 0 0 24px rgba(var(--rjx-accent-rgb), 0.12);
}

.rjx-home-brand-device {
  width: 6.35rem;
  height: 9rem;
  padding: 0.58rem;
  border-radius: 1.05rem;
}

.rjx-home-brand-device__poster,
.rjx-home-brand-device__title,
.rjx-home-brand-device__meta,
.rjx-home-brand-device__cta {
  display: block;
  border-radius: 0.55rem;
}

.rjx-home-brand-device__poster {
  height: 4.65rem;
  background:
    linear-gradient(160deg, rgba(var(--rjx-accent-rgb), 0.58), rgba(var(--rjx-brand-rgb), 0.22)),
    rgba(255, 255, 255, 0.12);
}

.rjx-home-brand-device__title {
  width: 86%;
  height: 0.52rem;
  margin-top: 0.65rem;
  background: rgba(255, 255, 255, 0.2);
}

.rjx-home-brand-device__meta {
  width: 58%;
  height: 0.4rem;
  margin-top: 0.38rem;
  background: rgba(255, 255, 255, 0.12);
}

.rjx-home-brand-device__cta {
  height: 0.95rem;
  margin-top: 0.6rem;
  background: var(--rjx-brand);
}

.rjx-home-brand-stack {
  position: absolute;
  right: 4.95rem;
  bottom: 50%;
  display: grid;
  gap: 0.36rem;
  width: 3.55rem;
  transform: translateY(50%);
}

.rjx-home-brand-stack span {
  display: block;
  height: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.8rem;
  background: linear-gradient(135deg, rgba(var(--rjx-accent-rgb), 0.18), rgba(255, 255, 255, 0.08));
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.rjx-home-brand-zone {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.42rem;
  width: min(100%, 8.8rem);
  min-height: 7.9rem;
  padding: 0.65rem;
  border-radius: 1.05rem;
}

.rjx-home-brand-zone__banner {
  grid-column: 1 / -1;
  height: 2.55rem;
  border-radius: 0.7rem;
  background:
    linear-gradient(135deg, rgba(var(--rjx-brand-rgb), 0.5), rgba(var(--rjx-accent-rgb), 0.35)),
    rgba(255, 255, 255, 0.1);
}

.rjx-home-brand-zone__tile {
  min-height: 1.75rem;
  border-radius: 0.58rem;
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 1099px) and (min-width: 768px) {
  .rjx-home-brand-card--zones {
    grid-column: 1 / -1;
    min-height: 12.5rem;
  }

  .rjx-home-brand-card--zones .rjx-home-brand-card__title,
  .rjx-home-brand-card--zones .rjx-home-brand-card__text {
    max-width: 34rem;
  }
}

@media (max-width: 767px) {
  .rjx-home-brand-card {
    grid-template-columns: minmax(0, 1fr) clamp(7rem, 34vw, 8.5rem);
    min-height: 12.5rem;
  }

  /* DTC card stacks so the platform logos span the full card width and
     all four (or more, wrapping) stay visible instead of being clipped. */
  .rjx-home-brand-card--rjoy {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    min-height: auto;
  }

  .rjx-home-brand-card--rjoy .rjx-home-brand-card__copy,
  .rjx-home-brand-card--rjoy .rjx-home-brand-card__visual {
    grid-column: 1;
  }

  .rjx-home-brand-card--rjoy .rjx-home-brand-card__copy {
    grid-row: 2;
  }

  .rjx-home-brand-card--rjoy .rjx-home-brand-card__visual {
    grid-row: 3;
    min-height: 8.9rem;
    margin-top: var(--rjx-space-sm);
  }

  .rjx-home-brand-card__visual {
    min-height: 8.25rem;
  }

  .rjx-home-brand-card__title {
    max-width: 13em;
  }

  .rjx-home-brand-phone,
  .rjx-home-brand-device,
  .rjx-home-brand-zone {
    right: 0;
  }

  .rjx-home-brand-stack {
    right: 4.75rem;
  }
}

@media (max-width: 480px) {
  .rjx-home-brand-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    min-height: auto;
  }

  .rjx-home-brand-card__copy,
  .rjx-home-brand-card__visual {
    grid-column: 1;
  }

  .rjx-home-brand-card__copy {
    grid-row: 2;
  }

  .rjx-home-brand-card__visual {
    grid-row: 3;
    min-height: 8.9rem;
    margin-top: var(--rjx-space-sm);
  }

  .rjx-home-brand-card__text {
    font-size: 0.82rem;
  }

  .rjx-home-brand-phone {
    width: 6.2rem;
    height: 8.8rem;
  }

  .rjx-home-brand-device {
    width: 6.4rem;
    height: 9rem;
  }

  .rjx-home-brand-stack {
    right: 4.95rem;
    width: 3.7rem;
  }

  .rjx-home-brand-zone {
    width: min(100%, 11rem);
  }
}

/* ------------------------------------------------------------
   Staggered entrance for home grids (brand cards / hero services /
   posters). Driven by --rjx-stagger-i injected by initStagger().
   A keyframe is used instead of the shared .rjx-reveal--stagger
   transition so it never fights these elements' own hover
   transitions (which win by source order in this stylesheet).
   ------------------------------------------------------------ */
.rjx-home-brand-grid.rjx-reveal--stagger > *,
.rjx-home-hero__services.rjx-reveal--stagger > *,
.rjx-home-posters.rjx-reveal--stagger > * {
  opacity: 0;
}

.rjx-home-brand-grid.rjx-reveal--stagger.is-visible > *,
.rjx-home-hero__services.rjx-reveal--stagger.is-visible > *,
.rjx-home-posters.rjx-reveal--stagger.is-visible > * {
  opacity: 1;
  animation: rjx-home-rise 0.62s var(--rjx-fx-ease, cubic-bezier(0.22, 1, 0.36, 1)) backwards;
  animation-delay: calc(var(--rjx-stagger-i, 0) * 90ms);
}

@keyframes rjx-home-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rjx-home-brand-grid.rjx-reveal--stagger > *,
  .rjx-home-hero__services.rjx-reveal--stagger > *,
  .rjx-home-posters.rjx-reveal--stagger > * {
    opacity: 1;
    animation: none;
  }
}

