/* =========================================================================
   Home page — picture-led layout (loaded only on the Home page).
   Full-screen hero under a transparent header, then big image blocks with
   very little text.
   ========================================================================= */

/* --- Transparent header over the hero; solid once the page scrolls --- */
.rji-home main { margin-top: calc(-1 * var(--rji-header-height)); }
.rji-home .rji-header {
  transition: background-color 300ms ease, box-shadow 300ms ease;
}
.rji-home .rji-header:not(.is-scrolled) {
  background-color: transparent;
  box-shadow: none;
  background-image: linear-gradient(180deg, rgba(8, 10, 14, 0.55), rgba(8, 10, 14, 0));
}
.rji-home .rji-header:not(.is-scrolled) .nav-link,
.rji-home .rji-header:not(.is-scrolled) .navbar-toggler,
.rji-home .rji-header:not(.is-scrolled) .rji-header__word strong { color: #fff; }
.rji-home .rji-header:not(.is-scrolled) .rji-header__word small { color: rgba(255, 255, 255, 0.78); }
.rji-home .rji-header:not(.is-scrolled) .rji-brand-logo--dark { display: none; }
.rji-home .rji-header:not(.is-scrolled) .rji-brand-logo--light { display: block; }
.rji-home .rji-header:not(.is-scrolled) .nav-link:hover,
.rji-home .rji-header:not(.is-scrolled) .nav-link.active { color: #f1b47a; }
/* No backdrop-filter here: it would make the header the containing block
   of the fixed mobile menu (offcanvas) and trap it inside the header. */
.rji-home .rji-header.is-scrolled { background-color: var(--rji-white); }

/* --- Shared bits --- */
.rjh-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rji-ember);
  margin-bottom: 0.75rem;
}
.rjh-kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.rjh-kicker--light { color: #f1b47a; }

.rjh-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(1.75rem, 3vw, 2.75rem);
}
.rjh-head h2 { margin: 0; font-size: clamp(2rem, 1.5rem + 2vw, 3.4rem); letter-spacing: -0.01em; }

.rjh-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--rji-charcoal);
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.2rem;
  white-space: nowrap;
}
.rjh-link i { transition: transform var(--rji-transition); }
.rjh-link:hover { color: var(--rji-ember); }
.rjh-link:hover i { transform: translateX(4px); }

.rjh-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  background: var(--rji-charcoal);
  color: #fff;
  font-weight: 600;
  transition: background-color var(--rji-transition), gap var(--rji-transition);
}
.rjh-btn:hover { background: var(--rji-ember); color: #fff; gap: 0.9rem; }

/* ================================ HERO ================================ */
.rjh-hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 520px;
  overflow: hidden;
  background: #0d1014;
  color: #fff;
}
.rjh-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.1s ease, visibility 0s linear 1.1s;
}
.rjh-hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 1.1s ease;
  z-index: 1;
}
.rjh-hero__media,
.rjh-hero__embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}
/* A YouTube player can't "cover" by itself — oversize it and centre it. */
.rjh-hero__embed {
  width: max(100%, 177.78vh);
  height: max(100%, 56.25vw);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
/* No zoom on hero photos: scaling up makes them look soft. */
@keyframes rjhZoom { from { transform: scale(1.12); } to { transform: scale(1); } }

.rjh-hero__shade {
  position: absolute;
  inset: 0;
  /* Light touch: just enough for the menu (top) and slide controls (bottom). */
  background:
    linear-gradient(180deg, rgba(8, 10, 14, 0.45) 0%, rgba(8, 10, 14, 0) 22%),
    linear-gradient(0deg, rgba(8, 10, 14, 0.4) 0%, rgba(8, 10, 14, 0) 22%);
}
.rjh-hero__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(6.5rem, 16vh, 10rem);
  max-width: 1440px;
  padding-inline: clamp(1rem, 4vw, 3.5rem);
}
.rjh-hero__eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #f1b47a;
  margin-bottom: 1rem;
}
.rjh-hero__title {
  color: #fff;
  font-size: clamp(2.3rem, 1.4rem + 3.6vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: 17ch;
  margin-bottom: 1.25rem;
  text-wrap: balance;
}
.rjh-hero__text {
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.2rem);
  max-width: 48ch;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.75rem;
}
/* Words rise in when a slide becomes active. */
.rjh-hero__slide .rjh-hero__content > * { opacity: 0; transform: translateY(28px); }
.rjh-hero__slide.is-active .rjh-hero__content > * {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.rjh-hero__slide.is-active .rjh-hero__content > :nth-child(2) { transition-delay: 0.12s; }
.rjh-hero__slide.is-active .rjh-hero__content > :nth-child(3) { transition-delay: 0.24s; }
.rjh-hero__slide.is-active .rjh-hero__content > :nth-child(4) { transition-delay: 0.36s; }

.rjh-hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.75rem;
  border-radius: 999px;
  background: var(--rji-ember);
  color: #fff;
  font-weight: 600;
  transition: background-color var(--rji-transition), gap var(--rji-transition);
}
.rjh-hero__btn:hover { background: #fff; color: var(--rji-charcoal); gap: 0.9rem; }
.rjh-hero__btn--ghost { background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.5); backdrop-filter: blur(6px); }

.rjh-hero__nav {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: clamp(1.5rem, 4vh, 2.5rem);
  max-width: 1440px;
  padding-inline: clamp(1rem, 4vw, 3.5rem);
  padding-right: calc(clamp(1rem, 4vw, 3.5rem) + 84px); /* clear of the floating WhatsApp / Call buttons */
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.rjh-hero__count { font-variant-numeric: tabular-nums; font-size: 0.9rem; letter-spacing: 0.1em; color: rgba(255, 255, 255, 0.7); }
.rjh-hero__count span { color: #fff; font-weight: 700; }
.rjh-hero__bars { display: flex; gap: 0.5rem; flex: 1; max-width: 420px; }
.rjh-hero__bar {
  flex: 1;
  height: 22px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.rjh-hero__bar span {
  position: relative;
  display: block;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
  overflow: hidden;
}
.rjh-hero__bar span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
}
.rjh-hero__bar.is-done span::after { transform: scaleX(1); }
.rjh-hero__bar.is-active span::after { animation: rjhBar var(--rjh-duration, 6s) linear forwards; }
.rjh-hero.is-paused .rjh-hero__bar.is-active span::after { animation-play-state: paused; }
@keyframes rjhBar { to { transform: scaleX(1); } }
.rjh-hero__arrows { margin-left: auto; display: flex; gap: 0.6rem; }
.rjh-hero__arrows button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 1.1rem;
  backdrop-filter: blur(6px);
  transition: background-color var(--rji-transition), color var(--rji-transition);
}
.rjh-hero__arrows button:hover { background: #fff; color: var(--rji-charcoal); }

.rjh-hero__scroll {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 1.25rem;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 14px;
  display: none;
}
.rjh-hero__scroll span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: #fff;
  animation: rjhScroll 1.8s ease-in-out infinite;
}
@keyframes rjhScroll { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
.rjh-hero:not(:has(.rjh-hero__nav)) .rjh-hero__scroll { display: block; }

/* ============================ INTRO + NUMBERS ============================ */
.rjh-intro { padding-block: clamp(4rem, 8vw, 7rem) clamp(3rem, 6vw, 5rem); }
.rjh-intro__title {
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
  max-width: 18ch;
}
.rjh-intro__text { color: var(--rji-slate); font-size: 1.08rem; margin-bottom: 1.25rem; }
.rjh-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--rji-stone-dark);
}
.rjh-stat { padding: 1.75rem 1.25rem 0 0; }
.rjh-stat + .rjh-stat { padding-left: 1.5rem; border-left: 1px solid var(--rji-stone-dark); }
.rjh-stat strong {
  display: block;
  font-family: var(--rji-font-heading);
  font-size: clamp(2.4rem, 1.8rem + 2.5vw, 4.2rem);
  font-weight: 600;
  line-height: 1;
  color: var(--rji-charcoal);
}
.rjh-stat span { display: block; margin-top: 0.6rem; color: var(--rji-slate); font-size: 0.95rem; }

/* ===================== CATEGORIES — ZIG-ZAG IMAGE BLOCKS ===================== */
.rjh-cats { padding-block: clamp(3rem, 6vw, 5rem); background: var(--rji-stone); }
.rjh-cat {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4.5rem);
}
.rjh-cat + .rjh-cat { margin-top: clamp(3rem, 6vw, 5.5rem); }
.rjh-cat--flip { grid-template-columns: 1fr 1.45fr; }
.rjh-cat--flip .rjh-cat__media { order: 2; }
.rjh-cat__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10.5;
  border-radius: 24px;
  overflow: hidden;
  background: var(--rji-stone-dark);
  box-shadow: var(--rji-shadow-md);
}
.rjh-cat__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1); }
.rjh-cat__media:hover img { transform: scale(1.06); }
.rjh-cat__num {
  position: absolute;
  left: 1.25rem;
  bottom: 0.5rem;
  font-family: var(--rji-font-heading);
  font-size: clamp(3rem, 2rem + 4vw, 6rem);
  font-weight: 600;
  line-height: 1;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.35);
}
.rjh-cat__body h3 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.6rem); margin-bottom: 0.75rem; }
.rjh-cat__body > p { color: var(--rji-slate); font-size: 1.05rem; margin-bottom: 1.25rem; }
.rjh-cat__list { list-style: none; padding: 0; margin: 0 0 1.75rem; border-top: 1px solid var(--rji-stone-dark); }
.rjh-cat__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--rji-stone-dark);
  color: var(--rji-charcoal);
  font-weight: 500;
  transition: color var(--rji-transition), padding var(--rji-transition);
}
.rjh-cat__list a i { color: var(--rji-ember); opacity: 0; transition: opacity var(--rji-transition); }
.rjh-cat__list a:hover { color: var(--rji-ember); padding-left: 0.5rem; }
.rjh-cat__list a:hover i { opacity: 1; }

/* ===================== SERVICES — BIG ROUNDED IMAGE CARDS ===================== */
.rjh-svc { padding-block: clamp(4rem, 7vw, 6rem); }
.rjh-svc__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 1.6vw, 1.5rem); }
/* 3 or 7 cards: the first one is double width so the rows come out even. */
@media (min-width: 1200px) {
  .rjh-svc__grid--wide-first > :first-child { grid-column: span 2; aspect-ratio: auto; }
}
@media (max-width: 1199.98px) { .rjh-svc__grid { grid-template-columns: repeat(3, 1fr); } }
.rjh-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 4.6;
  border-radius: 28px;
  overflow: hidden;
  background: var(--rji-charcoal);
  color: #fff;
  isolation: isolate;
}
.rjh-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1); }
.rjh-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8, 10, 14, 0.75) 0%, rgba(8, 10, 14, 0) 50%);
  z-index: 0;
}
.rjh-card:hover img { transform: scale(1.07); }
.rjh-card__icon { position: absolute; inset: 0; display: grid; place-items: center; font-size: 4rem; color: rgba(255, 255, 255, 0.25); }
.rjh-card__label {
  position: absolute;
  z-index: 1;
  left: 1.5rem;
  right: 5.5rem;
  bottom: 1.4rem;
  font-family: var(--rji-font-heading);
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.6rem);
  font-weight: 600;
  line-height: 1.2;
}
.rjh-card__label small {
  display: block;
  font-family: var(--rji-font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f1b47a;
  margin-bottom: 0.4rem;
}
/* Arrow button tucked into a notch in the bottom-right corner. */
.rjh-card__arrow {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  background: var(--rji-white);
  border-top-left-radius: 28px;
}
.rjh-card__arrow i {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--rji-charcoal);
  color: #fff;
  font-size: 1.15rem;
  transition: background-color var(--rji-transition), transform var(--rji-transition);
}
.rjh-card:hover .rjh-card__arrow i { background: var(--rji-ember); transform: rotate(45deg); }

/* =============================== VIDEO BAND =============================== */
.rjh-film {
  position: relative;
  min-height: clamp(420px, 78vh, 760px);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #0d1014;
  color: #fff;
  text-align: center;
}
.rjh-film__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rjh-film__shade { position: absolute; inset: 0; background: rgba(8, 10, 14, 0.5); }
.rjh-film__content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.rjh-film__content h2 { color: #fff; font-size: clamp(2rem, 1.4rem + 2.8vw, 4rem); max-width: 18ch; margin-bottom: 2rem; text-wrap: balance; }
.rjh-play {
  position: relative;
  width: 150px;
  height: 150px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  color: #fff;
  display: grid;
  place-items: center;
  transition: background-color var(--rji-transition), transform var(--rji-transition);
}
.rjh-play:hover { background: var(--rji-ember); transform: scale(1.05); }
.rjh-play svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: rjhSpin 14s linear infinite; }
.rjh-play text { fill: #fff; font-size: 10px; font-weight: 600; }
.rjh-play i { font-size: 2.4rem; margin-left: 4px; }
@keyframes rjhSpin { to { transform: rotate(360deg); } }
.rjh-film-modal .modal-content { background: #000; border: 0; border-radius: 16px; overflow: hidden; }
.rjh-film-modal .btn-close { position: absolute; z-index: 2; top: 0.9rem; right: 0.9rem; }

/* ============================ PROJECTS MOSAIC ============================ */
.rjh-works { padding-block: clamp(4rem, 7vw, 6rem); }
.rjh-works__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(180px, 20vw, 290px);
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
}
.rjh-works__grid > :first-child { grid-column: span 2; grid-row: span 2; }
.rjh-works__grid--1 > :first-child { grid-column: 1 / -1; }
.rjh-works__grid--2 > *,
.rjh-works__grid--3 > :not(:first-child) { grid-column: span 2; }
.rjh-work {
  position: relative;
  display: block;
  border-radius: 22px;
  overflow: hidden;
  background: var(--rji-stone-dark);
  color: #fff;
}
.rjh-work img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1); }
.rjh-work::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8, 10, 14, 0.78) 0%, rgba(8, 10, 14, 0) 55%);
  transition: opacity var(--rji-transition);
}
.rjh-work:hover img { transform: scale(1.07); }
.rjh-work__info { position: absolute; z-index: 1; left: 1.25rem; right: 1.25rem; bottom: 1.1rem; }
.rjh-work__info small {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f1b47a;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.rjh-work__info strong { font-family: var(--rji-font-heading); font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.45rem); font-weight: 600; line-height: 1.25; }
.rjh-works__grid > :first-child .rjh-work__info strong { font-size: clamp(1.4rem, 1.1rem + 1vw, 2.2rem); }

/* ================= WHAT WE OFFER — EXPANDING PICTURE PANELS ================= */
.rjo { padding-block: clamp(4rem, 7vw, 6rem); background: var(--rji-stone); }
.rjo__panels { display: flex; gap: 0.75rem; height: clamp(440px, 46vw, 600px); }
.rjo__panel {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  border-radius: 26px;
  overflow: hidden;
  background: var(--rji-charcoal);
  color: #fff;
  cursor: pointer;
  outline: none;
  transition: flex-grow 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.rjo__panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1); }
.rjo__shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 10, 14, 0.85) 0%, rgba(8, 10, 14, 0.15) 60%, rgba(8, 10, 14, 0.25) 100%); }
.rjo__num {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  font-family: var(--rji-font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: #f1b47a;
}
/* Closed panel: title runs up the side. */
.rjo__label {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-family: var(--rji-font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  white-space: nowrap;
  transition: opacity 300ms ease;
}
.rjo__body {
  position: absolute;
  left: 1.75rem;
  right: 1.75rem;
  bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 300ms ease, transform 500ms ease;
  pointer-events: none;
}
.rjo__body strong { font-family: var(--rji-font-heading); font-size: clamp(1.5rem, 1.2rem + 1vw, 2.2rem); font-weight: 600; line-height: 1.15; }
.rjo__body > span { color: rgba(255, 255, 255, 0.85); max-width: 36ch; }
.rjo__body em {
  font-style: normal;
  font-weight: 600;
  font-size: 0.9rem;
  color: #f1b47a;
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  margin-top: 0.25rem;
}
/* Open panel: the hovered/focused one, or the first while none is. */
.rjo__panel:hover,
.rjo__panel:focus-visible,
.rjo__panels:not(:hover):not(:focus-within) .rjo__panel:first-child { flex-grow: 4; }
.rjo__panel:hover img,
.rjo__panel:focus-visible img { transform: scale(1.05); }
.rjo__panel:hover .rjo__label,
.rjo__panel:focus-visible .rjo__label,
.rjo__panels:not(:hover):not(:focus-within) .rjo__panel:first-child .rjo__label { opacity: 0; }
.rjo__panel:hover .rjo__body,
.rjo__panel:focus-visible .rjo__body,
.rjo__panels:not(:hover):not(:focus-within) .rjo__panel:first-child .rjo__body { opacity: 1; transform: none; transition-delay: 200ms; }

@media (max-width: 991.98px) {
  /* Tablets and phones: a sideways-swipe row of open cards. */
  .rjo__panels {
    height: auto;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--rji-space-sm);
    margin-inline: calc(-1 * var(--rji-space-sm));
    padding: 0 var(--rji-space-sm) 0.5rem;
    scrollbar-width: none;
  }
  .rjo__panels::-webkit-scrollbar { display: none; }
  .rjo__panel { flex: 0 0 min(78%, 340px) !important; aspect-ratio: 3 / 4; scroll-snap-align: start; border-radius: 22px; }
  .rjo__label { display: none; }
  .rjo__body { opacity: 1; transform: none; left: 1.25rem; right: 1.25rem; bottom: 1.25rem; }
  .rjo__body strong { font-size: 1.4rem; }
  .rjo__body > span { font-size: 0.92rem; }
}

/* ============================== GALLERY ============================== */
.rjh-gallery { padding-block: clamp(4rem, 7vw, 6rem) 0; }
.rjh-gallery__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-auto-rows: clamp(150px, 16vw, 260px);
  grid-auto-flow: dense;
  gap: 6px;
}
.rjh-gallery__item { position: relative; overflow: hidden; background: var(--rji-stone-dark); }
/* 8 photos, two of them tall: fills 5 columns x 2 rows exactly. */
.rjh-gallery__item:nth-child(1),
.rjh-gallery__item:nth-child(4) { grid-row: span 2; }
.rjh-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s ease, filter 1s ease; }
.rjh-gallery__item:hover img { transform: scale(1.08); filter: brightness(1.08); }

/* ================================ BLOG ================================ */
.rjh-blog { padding-block: clamp(4rem, 7vw, 6rem); background: var(--rji-stone); }

/* ============================== IMAGE CTA ============================== */
.rjh-cta {
  position: relative;
  min-height: clamp(380px, 60vh, 560px);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--rji-charcoal);
  color: #fff;
  text-align: center;
}
.rjh-cta__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rjh-cta__shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 10, 14, 0.8), rgba(8, 10, 14, 0.45)); }
.rjh-cta__content { position: relative; z-index: 1; }
.rjh-cta__content h2 { color: #fff; font-size: clamp(2rem, 1.4rem + 2.6vw, 3.8rem); max-width: 20ch; margin: 0 auto 2rem; text-wrap: balance; }

/* ============================== RESPONSIVE ============================== */
@media (max-width: 991.98px) {
  .rji-home main { margin-top: -72px; }
  .rjh-cat,
  .rjh-cat--flip { grid-template-columns: 1fr; gap: 1.5rem; }
  .rjh-cat--flip .rjh-cat__media { order: 0; }
  .rjh-svc__grid { grid-template-columns: repeat(2, 1fr); }
  .rjh-works__grid { grid-template-columns: repeat(2, 1fr); }
  .rjh-works__grid > * { grid-column: auto !important; grid-row: auto !important; }
  .rjh-works__grid > :first-child { grid-column: 1 / -1 !important; }
  .rjh-gallery__grid { grid-template-columns: repeat(4, 1fr); }
  .rjh-gallery__item:nth-child(n) { grid-row: auto; }
  .rjh-stats { grid-template-columns: repeat(2, 1fr); }
  .rjh-stat:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 767.98px) {
  .rjh-hero__content { bottom: 6.5rem; }
  .rjh-hero__count,
  .rjh-hero__arrows { display: none; }
  .rjh-hero__bars { max-width: none; }
  .rjh-head { flex-direction: column; align-items: flex-start; }
  /* Service cards become a sideways-swipe rail on phones. */
  .rjh-svc__grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--rji-space-sm);
    margin-inline: calc(-1 * var(--rji-space-sm));
    padding-inline: var(--rji-space-sm);
    padding-bottom: 0.5rem;
    scrollbar-width: none;
  }
  .rjh-svc__grid::-webkit-scrollbar { display: none; }
  .rjh-card { flex: 0 0 80%; scroll-snap-align: start; }
  .rjh-works__grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .rjh-gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .rjh-gallery__item:nth-child(1),
  .rjh-gallery__item:nth-child(4) { grid-row: span 2; }
  .rjh-stat { padding-right: 0.75rem; }
  .rjh-stat + .rjh-stat { padding-left: 1rem; }
  .rjh-stat:nth-child(3) { padding-left: 0; }
  .rjh-hero__nav { padding-right: calc(var(--rji-space-sm) + 72px); }
  .rjh-play { width: 120px; height: 120px; }
}

@media (prefers-reduced-motion: reduce) {
  .rjh-play svg { animation: none; }
}
