/* One photographic language and one 3:2 frame across the service catalog. */
/* One content edge from solutions through the homepage footer. */
body.jf-brand-2026.sj-home { --jf-home-gutter: 48px; }
body.jf-brand-2026.sj-home :is(.ej-solutions, .ej-work, .ej-process, .ej-sectors, .sj-faq, .sj-footer) > .sj-container,
body.jf-brand-2026.sj-home .ej-next.sj-container {
  width: min(1632px, calc(100% - var(--jf-home-gutter)));
}
body.jf-brand-2026.sj-home :is(.ej-solutions-grid, .ej-work-grid) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 20px;
}
body.jf-brand-2026.sj-home .ej-work-card > a {
  display: flex;
  flex-direction: column;
  height: 100%;
}
body.jf-brand-2026.sj-home .ej-work-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
}
body.jf-brand-2026.sj-home .ej-work-copy h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.7;
}
body.jf-brand-2026.sj-home .ej-work-copy p {
  flex: 1;
  margin: 0;
  font-size: 14px;
  line-height: 1.9;
}
body.jf-brand-2026.sj-home .ej-work-copy > span {
  margin-top: 8px;
  font-size: 13px;
}
body.jf-brand-2026.sj-home .ej-work-card--lavana .ej-work-image img {
  object-fit: contain;
  object-position: center;
  background: #f3f2ee;
}
body.jf-brand-2026.sj-home .ej-solution-body {
  padding: 20px;
  gap: 16px;
}
body.jf-brand-2026.sj-home .ej-solution-label {
  min-height: 58px;
  gap: 10px;
  align-items: center;
  margin-bottom: 0;
}
body.jf-brand-2026.sj-home .ej-solution-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
}
body.jf-brand-2026.sj-home .ej-solution h3 {
  font-size: 19px;
  line-height: 1.7;
  min-height: 3.4em;
  margin: 0;
}
body.jf-brand-2026.sj-home .ej-solution-body > p {
  font-size: 14px;
  line-height: 1.9;
  margin: 0;
}
body.jf-brand-2026.sj-home .ej-solution-links {
  gap: 12px 16px;
  padding-top: 8px;
  margin-top: 0;
  font-size: 13px;
}
.jf-creative-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.jf-creative-cta > div { max-width: 720px; }
.jf-creative-cta p { margin: 16px 0 0; }
.jf-creative-cta .sj-button { flex-shrink: 0; }
@media (min-width: 901px) {
  .sj-navigation > .sj-dropdown > .sj-mega {
    max-height: calc(100svh - 120px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
}
@media (max-width: 1099px) {
  body.jf-brand-2026.sj-home :is(.ej-solutions-grid, .ej-work-grid) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.jf-brand-2026.sj-home { --jf-home-gutter: 44px; }
  .jf-creative-cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  body.jf-brand-2026.sj-home :is(.ej-solutions-grid, .ej-work-grid) { grid-template-columns: minmax(0, 1fr); }
  body.jf-brand-2026.sj-home :is(.ej-solutions-grid, .ej-work-grid) { grid-auto-rows: auto; }
  body.jf-brand-2026.sj-home { --jf-home-gutter: 32px; }
  body.jf-brand-2026.sj-home .ej-solution-label { min-height: 48px; }
  body.jf-brand-2026.sj-home .ej-solution h3 { min-height: 0; }
}
body.jf-brand-2026.sj-home .ej-solution-media img {
  object-fit: cover;
}
body.jf-brand-2026.sj-home .ej-solution-kind {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.65;
}
/* Extend the real service link across the card while keeping Android separate. */
.sj-home .ej-solution--illustrated {
  position: relative;
  isolation: isolate;
}
.ej-solution-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}
.ej-solution-primary:focus-visible::after {
  outline: 3px solid var(--jf-purple, #7848d8);
  outline-offset: -3px;
}
.ej-solution-secondary {
  position: relative;
  z-index: 2;
}

.jf-service-photo {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--jf-pale, #e8e0f5);
}
.jf-service-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Compact catalog rows preserve a quick scan through the main services. */
body.jf-brand-2026.tr-sui .tr-main .tr-index__row[data-service-photo-row] {
  display: grid;
  grid-template-columns: 32px 156px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 24px;
  padding-block: 22px;
}
[data-service-photo-row] .jf-service-photo {
  width: 156px;
  border-radius: 12px;
}
[data-service-photo-row] .jf-service-row-copy {
  min-width: 0;
}

/* Specializations use the same image frame as the homepage solution cards. */
body.jf-brand-2026.tr-sui .tr-main .tr-tile[data-service-photo-card] {
  overflow: hidden;
  padding: 0;
  gap: 0;
}
[data-service-photo-card] > .jf-service-photo {
  flex: none;
  width: 100%;
  border-bottom: 1px solid var(--jf-line, #d8cfe6);
}
[data-service-photo-card] .jf-service-card-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  min-width: 0;
}
[data-service-photo-card] .tr-tile__top {
  margin: 0;
}

/* A restrained visual beside the existing challenge and solution copy. */
.jf-service-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}
.jf-service-story__copy {
  display: grid;
  gap: 28px;
  min-width: 0;
}
.jf-service-story__copy .t-label {
  display: block;
  margin-bottom: 12px;
  color: var(--jf-purple, #7848d8);
}
body.jf-brand-2026.tr-sui .tr-main .jf-service-story__copy h2 {
  margin: 0;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.9;
  color: var(--jf-ink, #1c1429);
}
.jf-service-story__copy p {
  margin: 0;
}
.jf-service-story > .jf-service-photo {
  width: 100%;
  max-width: 600px;
  margin: 0;
  border: 1px solid var(--jf-line, #d8cfe6);
  border-radius: 16px;
}
.jf-service-story--photo-only {
  display: block;
}
.jf-service-story--photo-only > .jf-service-photo {
  margin-inline: auto;
}

@media (max-width: 900px) {
  body.jf-brand-2026.tr-sui .tr-main .tr-index__row[data-service-photo-row] {
    grid-template-columns: 28px 126px minmax(0, 1fr) 24px;
    gap: 18px;
  }
  [data-service-photo-row] .jf-service-photo { width: 126px; }
  .jf-service-story { gap: 28px; }
}

@media (max-width: 700px) {
  .jf-service-story { grid-template-columns: minmax(0, 1fr); }
  .jf-service-story > .jf-service-photo { max-width: none; }
}

@media (max-width: 600px) {
  body.jf-brand-2026.sj-home .ej-solution-kind { font-size: 16px; }
  body.jf-brand-2026.tr-sui .tr-main .tr-index__row[data-service-photo-row] {
    grid-template-columns: 88px minmax(0, 1fr) 20px;
    gap: 12px;
    padding-block: 20px;
  }
  [data-service-photo-row] .tr-index__num { display: none; }
  [data-service-photo-row] .jf-service-photo { width: 88px; border-radius: 8px; grid-area: 1 / 1; }
  [data-service-photo-row] .jf-service-row-copy { display: contents; }
  [data-service-photo-row] .tr-index__go { grid-area: 1 / 3; }
  body.jf-brand-2026.tr-sui .tr-main [data-service-photo-row] .tr-index__title {
    grid-area: 1 / 2;
    font-size: 16px !important;
    line-height: 1.9;
  }
  body.jf-brand-2026.tr-sui .tr-main [data-service-photo-row] .tr-index__desc {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0;
    font-size: 13px;
    line-height: 1.9;
  }
  [data-service-photo-card] .jf-service-card-copy { padding: 20px; }
}
