/**
 * Editorial refinements — Premium Design Refinement v1
 * Authoritative for: section rhythm, hero type, answer/body type, buttons, CTA.
 * Cascade: after design-system; before phase2 page overrides.
 * No new CSS layer. Tokens live in design-system.css.
 */

/* —— Section rhythm —— */
.jia-intro,
.jia-index,
.jia-section,
.jia-trust {
  padding-block: var(--jia-section-pad, 80px);
}
.jia-cta-band {
  padding: var(--jia-section-pad, 80px) 0;
}
.jia-page-hero {
  padding: 80px 0 48px;
}

/* Reading measure */
.jia-answer,
.jia-lead {
  max-width: var(--jia-read, 720px);
}
.jia-statement {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: var(--jia-lh-heading, 1.15);
  letter-spacing: -0.02em;
  max-width: 18ch;
  font-weight: 600;
  color: var(--jia-ink, #082B4C);
}
html[lang^="ar"] .jia-statement,
html[dir="rtl"] .jia-statement {
  letter-spacing: 0;
  line-height: var(--jia-lh-heading-ar, 1.32);
  max-width: 20ch;
  font-size: clamp(26px, 3.2vw, 36px);
}
.jia-intro__grid {
  gap: 36px;
  align-items: start;
}
.jia-answer {
  font-size: var(--jia-text-body, 17px);
  line-height: var(--jia-lh-body, 1.7);
  color: var(--jia-secondary-text, #536579);
  font-weight: 400;
}
html[lang^="ar"] .jia-answer,
html[dir="rtl"] .jia-answer {
  line-height: var(--jia-lh-body-ar, 1.85);
  font-size: var(--jia-text-body, 17px);
  font-weight: 400;
}

/* Section titles (mask-title used as H2) */
.jia-section .jia-mask-title,
.jia-intro .jia-mask-title,
.jia-cta-band .jia-mask-title {
  font-size: var(--jia-text-section, clamp(1.875rem, 3vw, 2.5rem));
  font-weight: 600;
  line-height: var(--jia-lh-heading, 1.15);
  letter-spacing: -0.02em;
  max-width: 22ch;
}
html[lang^="ar"] .jia-section .jia-mask-title,
html[lang^="ar"] .jia-intro .jia-mask-title,
html[lang^="ar"] .jia-cta-band .jia-mask-title,
html[dir="rtl"] .jia-section .jia-mask-title,
html[dir="rtl"] .jia-intro .jia-mask-title,
html[dir="rtl"] .jia-cta-band .jia-mask-title {
  letter-spacing: 0;
  line-height: var(--jia-lh-heading-ar, 1.32);
  font-size: clamp(1.75rem, 2.8vw, 2.25rem);
  max-width: 24ch;
}

/* —— Hero: editorial executive plane —— */
.jia-hero {
  min-height: min(72vh, 700px);
  padding: 112px 0 64px;
  background:
    radial-gradient(ellipse 70% 55% at 85% 20%, color-mix(in srgb, var(--jia-secondary) 12%, transparent), transparent 60%),
    var(--jia-primary);
}
.jia-hero h1,
.jia-hero__title {
  font-size: var(--jia-text-hero, clamp(2.5rem, 4.2vw, 3.75rem));
  letter-spacing: -0.025em;
  max-width: var(--jia-hero-text, 680px);
  font-weight: 600;
  line-height: 1.1;
}
html[lang^="ar"] .jia-hero h1,
html[lang^="ar"] .jia-hero__title,
html[dir="rtl"] .jia-hero h1,
html[dir="rtl"] .jia-hero__title {
  letter-spacing: 0;
  line-height: 1.28;
  font-weight: 600;
  font-size: var(--jia-text-hero-ar, clamp(2.125rem, 3.8vw, 3.25rem));
  max-width: min(var(--jia-hero-text, 680px), 22ch);
}
.jia-hero__lead {
  font-size: var(--jia-text-body, 17px);
  line-height: 1.65;
  max-width: 42ch;
  color: var(--jia-on-navy-soft);
  font-weight: 400;
}
html[lang^="ar"] .jia-hero__lead,
html[dir="rtl"] .jia-hero__lead {
  line-height: 1.8;
  max-width: 46ch;
}
.jia-hero__geo {
  opacity: 0.32;
  border-color: color-mix(in srgb, var(--jia-gold) 18%, transparent);
}
.jia-hero__geo::after {
  border-color: color-mix(in srgb, var(--jia-accent) 16%, transparent);
}
.jia-hero__meta {
  margin-top: 32px;
  letter-spacing: 0.06em;
}
html[lang^="ar"] .jia-hero__meta,
html[dir="rtl"] .jia-hero__meta {
  letter-spacing: 0;
}

/* —— Buttons: architectural, precise —— */
.jia-btn {
  min-height: var(--jia-btn-h, 46px);
  padding: 12px 20px;
  letter-spacing: 0.01em;
  font-size: var(--jia-text-btn, 14.5px);
  font-weight: 600;
  border-radius: var(--jia-radius, 4px);
  text-transform: none;
}
html[lang^="ar"] .jia-btn,
html[dir="rtl"] .jia-btn {
  letter-spacing: 0;
}
.jia-btn--ghost {
  letter-spacing: 0.02em;
}

/* Trust / glance */
.jia-trust h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  max-width: 18ch;
  font-weight: 600;
}
.jia-trust__item b {
  font-size: clamp(22px, 2.6vw, 32px);
  letter-spacing: -0.02em;
  font-weight: 600;
}

/* Service / sector type */
.jia-service-row {
  padding: 24px 8px;
}
.jia-service-row__body h2,
.jia-service-row__body h3 {
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: -0.02em;
  font-weight: 600;
}
html[lang^="ar"] .jia-service-row__body h2,
html[lang^="ar"] .jia-service-row__body h3,
html[dir="rtl"] .jia-service-row__body h2,
html[dir="rtl"] .jia-service-row__body h3 {
  letter-spacing: 0;
  font-weight: 600;
}
.jia-sectors a {
  padding: 20px 0;
}
.jia-sectors b {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 600;
}

/* Advisers — partner presentation */
.jia-people {
  gap: 32px 24px;
}
.jia-person {
  text-decoration: none;
  color: inherit;
}
.jia-person b {
  display: block;
  margin-top: 14px;
  font-family: var(--jia-display);
  font-size: 17px;
  letter-spacing: -0.015em;
  color: var(--jia-primary);
  font-weight: 600;
}
.jia-person span {
  letter-spacing: 0;
  color: var(--jia-secondary-text, #536579);
  font-size: 13.5px;
}
.jia-person p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--jia-secondary-text, #536579);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.jia-person__media {
  border: 0;
}
.jia-avatar {
  border-width: 1px;
}

/* Work rows */
.jia-work article {
  padding: 28px 0;
  gap: 20px;
}
.jia-work h2,
.jia-work h3 {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 600;
}

/* CTA — calm close */
.jia-cta-band h2,
.jia-cta-band .jia-mask-title {
  font-size: clamp(28px, 3.8vw, 40px);
  letter-spacing: -0.02em;
  max-width: 18ch;
  font-weight: 600;
}
html[lang^="ar"] .jia-cta-band h2,
html[lang^="ar"] .jia-cta-band .jia-mask-title,
html[dir="rtl"] .jia-cta-band h2,
html[dir="rtl"] .jia-cta-band .jia-mask-title {
  letter-spacing: 0;
  font-size: clamp(26px, 3.4vw, 36px);
}
.jia-cta-band p {
  font-size: var(--jia-text-body, 17px);
  line-height: 1.7;
  color: var(--jia-on-navy-soft);
  max-width: 42ch;
}

/* Footer */
.jia-footer {
  padding: 64px 0 28px;
}
.jia-footer__brand {
  font-family: var(--jia-display);
  font-size: 18px;
  letter-spacing: 0.02em;
  font-weight: 600;
}
.jia-footer__legal {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  font-style: italic;
  letter-spacing: 0.01em;
}
html[lang^="ar"] .jia-footer__brand,
html[dir="rtl"] .jia-footer__brand {
  letter-spacing: 0;
}

/* Page titles */
.jia-page-hero h1 {
  font-size: clamp(32px, 4.2vw, 48px);
  letter-spacing: -0.02em;
  max-width: var(--jia-hero-text, 680px);
  line-height: 1.12;
  margin: 0 0 14px;
  font-weight: 600;
}
html[lang^="ar"] .jia-page-hero h1,
html[dir="rtl"] .jia-page-hero h1 {
  letter-spacing: 0;
  line-height: 1.3;
  font-size: clamp(28px, 3.8vw, 42px);
}
.jia-page-hero .jia-answer {
  margin-top: 0;
}

@media (max-width: 900px) {
  .jia-intro,
  .jia-index,
  .jia-section,
  .jia-trust {
    padding-block: var(--jia-section-pad-md, 64px);
  }
  .jia-cta-band {
    padding: var(--jia-section-pad-md, 64px) 0;
  }
  .jia-page-hero {
    padding: 64px 0 36px;
  }
}

@media (max-width: 640px) {
  .jia-intro,
  .jia-index,
  .jia-section,
  .jia-trust {
    padding-block: var(--jia-section-pad-sm, 56px);
  }
  .jia-statement {
    max-width: none;
  }
  .jia-hero {
    min-height: auto;
    padding: 96px 0 48px;
  }
  .jia-hero h1,
  .jia-hero__title {
    font-size: clamp(2.5rem, 8vw, 2.75rem); /* ~40–44px */
    max-width: none;
  }
  html[lang^="ar"] .jia-hero h1,
  html[lang^="ar"] .jia-hero__title,
  html[dir="rtl"] .jia-hero h1,
  html[dir="rtl"] .jia-hero__title {
    font-size: clamp(2.125rem, 7.5vw, 2.5rem); /* ~34–40px */
  }
  .jia-section .jia-mask-title,
  .jia-intro .jia-mask-title {
    font-size: clamp(1.875rem, 6vw, 2.125rem); /* ~30–34px */
    max-width: none;
  }
  html[lang^="ar"] .jia-section .jia-mask-title,
  html[dir="rtl"] .jia-section .jia-mask-title {
    font-size: clamp(1.75rem, 5.5vw, 2rem); /* ~28–32px */
  }
  body {
    font-size: var(--jia-text-body-mobile, 16px);
  }
}

/* ==========================================================================
   Contrast + Editorial Background Motifs v1
   Authoritative motif components. Tokens in design-system.css.
   Motifs are static (no second motion system).
   ========================================================================== */

.jia-has-motif {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.jia-has-motif > .jia-wrap,
.jia-has-motif > .jia-cta-band__inner {
  position: relative;
  z-index: 1;
}

.jia-motif {
  position: absolute;
  inset-block: 0;
  width: min(58vw, 720px);
  max-width: 100%;
  pointer-events: none;
  z-index: 0;
  color: var(--jia-motif-navy, var(--jia-navy));
  opacity: var(--jia-motif-opacity, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
}
.jia-motif__svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Anchors — logical; keep quiet zone over primary copy */
.jia-motif--anchor-end {
  inset-inline-end: -6%;
  inset-inline-start: auto;
  justify-content: flex-end;
}
.jia-motif--anchor-start {
  inset-inline-start: -8%;
  inset-inline-end: auto;
  justify-content: flex-start;
}
.jia-motif--anchor-center {
  inset-inline: 10%;
  width: auto;
  opacity: var(--jia-motif-opacity-soft, 0.05);
  justify-content: center;
}

/* Family scale / composition tweaks */
.jia-motif--orbital {
  width: min(62vw, 780px);
  opacity: 0.065;
}
.jia-motif--contour {
  width: min(70vw, 860px);
  opacity: 0.07;
}
.jia-motif--technical {
  width: min(55vw, 680px);
  opacity: 0.06;
}
.jia-motif--minimal {
  width: min(48vw, 560px);
  opacity: 0.055;
}

/* Dark surfaces: quieter white/blue strokes */
.jia-section--navy.jia-has-motif .jia-motif,
.jia-section--deep.jia-has-motif .jia-motif,
.jia-svc-section--navy.jia-has-motif .jia-motif,
.jia-cta-band.jia-has-motif .jia-motif {
  color: #ffffff;
  opacity: var(--jia-motif-opacity-dark, 0.06);
}

/* Soft / tint surfaces */
.jia-section--soft-gray.jia-has-motif .jia-motif,
.jia-section--paper.jia-has-motif .jia-motif,
.jia-svc-section--alt.jia-has-motif .jia-motif {
  opacity: 0.06;
}
.jia-section--blue-tint.jia-has-motif .jia-motif,
.jia-section--soft-blue.jia-has-motif .jia-motif {
  color: var(--jia-motif-navy, var(--jia-navy));
  opacity: 0.055;
}

/* Page heroes (light) — executive minimal only when marked */
.jia-page-hero.jia-has-motif {
  background: var(--jia-surface-white, #fff);
}
.jia-page-hero.jia-has-motif:not(.jia-svc-hero--photo) .jia-motif {
  opacity: 0.05;
}

/* Practice-page motif defaults via body of article */
.jia-svc--financial-advisory .jia-svc-section--position.jia-has-motif .jia-motif--orbital,
.jia-svc--management-advisory .jia-svc-section--position.jia-has-motif .jia-motif--orbital {
  opacity: 0.06;
}
.jia-svc--feasibility-studies .jia-svc-section--offerings.jia-has-motif .jia-motif--contour,
.jia-svc--feasibility-studies .jia-svc-section--dimensions.jia-has-motif .jia-motif--contour {
  opacity: 0.065;
}
.jia-svc--procurement .jia-svc-section.jia-has-motif .jia-motif--technical {
  opacity: 0.055;
}

/* Reduced motion / print: motifs stay static; print hides decoration */
@media print {
  .jia-motif {
    display: none !important;
  }
}

@media (max-width: 1024px) {
  .jia-motif {
    width: min(70vw, 560px);
    opacity: 0.045;
  }
  .jia-motif--orbital,
  .jia-motif--contour {
    width: min(75vw, 640px);
  }
}

@media (max-width: 767px) {
  .jia-motif {
    width: min(92vw, 420px);
    opacity: 0.035;
  }
  .jia-motif--technical .jia-motif__svg path:nth-child(n+4),
  .jia-motif--contour .jia-motif__svg path:nth-child(n+5) {
    display: none;
  }
  .jia-motif--anchor-center {
    inset-inline: 0;
  }
  /* Keep one quiet family; hide secondary density on very small */
  .jia-motif--technical {
    opacity: 0.03;
  }
}

@media (max-width: 380px) {
  .jia-motif--contour,
  .jia-motif--technical {
    opacity: 0.028;
  }
}

/* ==========================================================================
   Phase 1 — Visual system unification (art direction)
   Focal crops, hero family, CTA photo plane, adviser placeholders.
   ========================================================================== */

/* Home hero — keep skyline readable; text sits in navy shade zone */
.jia-hero--photo {
  background-position: 62% center;
}
[dir="rtl"] .jia-hero--photo {
  background-position: 38% center;
}

/* Practice / page photo heroes — intentional crops (not center-default) */
.jia-page--services .jia-svc-hero--photo,
.jia-svc--management-advisory .jia-svc-hero--photo {
  background-position: 58% 40%;
  min-height: min(68vh, 600px);
}
[dir="rtl"] .jia-page--services .jia-svc-hero--photo,
[dir="rtl"] .jia-svc--management-advisory .jia-svc-hero--photo {
  background-position: 42% 40%;
}

.jia-svc--geotechnical-consultancy .jia-svc-hero--photo {
  background-position: 18% 42%;
  min-height: min(70vh, 620px);
}
[dir="rtl"] .jia-svc--geotechnical-consultancy .jia-svc-hero--photo {
  background-position: 82% 42%;
}

.jia-svc--procurement .jia-svc-hero--photo,
.jia-page--procurement .jia-svc-hero--photo {
  background-position: 45% 35%;
  min-height: min(68vh, 600px);
}

.jia-svc-hero--photo .jia-svc-hero__shade {
  background:
    linear-gradient(105deg, rgba(4, 28, 61, 0.92) 0%, rgba(4, 28, 61, 0.72) 40%, rgba(4, 28, 61, 0.28) 70%, rgba(4, 28, 61, 0.18) 100%),
    linear-gradient(to top, rgba(4, 28, 61, 0.5) 0%, transparent 48%);
}
[dir="rtl"] .jia-svc-hero--photo .jia-svc-hero__shade {
  background:
    linear-gradient(255deg, rgba(4, 28, 61, 0.92) 0%, rgba(4, 28, 61, 0.72) 40%, rgba(4, 28, 61, 0.28) 70%, rgba(4, 28, 61, 0.18) 100%),
    linear-gradient(to top, rgba(4, 28, 61, 0.5) 0%, transparent 48%);
}

/* Split heroes — subject-aware object-position */
.jia-svc--financial-advisory .jia-svc-hero__media img {
  object-position: 35% 40%;
}
[dir="rtl"] .jia-svc--financial-advisory .jia-svc-hero__media img {
  object-position: 65% 40%;
}
.jia-svc--feasibility-studies .jia-svc-hero__media img {
  object-position: center center;
}
.jia-svc--other-advisory-services .jia-svc-hero__media img {
  object-position: center 30%;
}

/* Unified split media framing across Tier-1 / supporting */
.jia-svc-hero__media {
  border-radius: 2px;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--jia-navy, #0b2748) 8%, transparent);
}
.jia-svc-hero__media img {
  aspect-ratio: 4 / 3;
}

/* Thumb crops on practice index */
.jia-practice-index--visual .jia-media--thumb img,
.page-template-template-home #practices .jia-media--thumb img {
  object-fit: cover;
  object-position: center 35%;
}
.jia-svc--geotechnical-consultancy .jia-media--thumb img,
.jia-practice-row[href*="geotechnical"] .jia-media--thumb img {
  object-position: 20% center;
}

/* About editorial media */
.jia-page .jia-media--split img {
  object-fit: cover;
  object-position: 40% 35%;
  aspect-ratio: 16 / 10;
}

/* CTA — quiet photographic plane (Riyadh), not a promo banner */
.jia-cta-band--photo {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--jia-deep, #041c3d);
}
.jia-cta-band--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--jia-cta-image);
  background-size: cover;
  background-position: 60% center;
  opacity: 0.28;
  pointer-events: none;
}
.jia-cta-band--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(105deg, rgba(4, 28, 61, 0.94) 0%, rgba(4, 28, 61, 0.82) 45%, rgba(4, 28, 61, 0.7) 100%);
  pointer-events: none;
}
.jia-cta-band--photo .jia-wrap,
.jia-cta-band--photo .jia-cta-band__inner {
  position: relative;
  z-index: 1;
}
[dir="rtl"] .jia-cta-band--photo::before {
  background-position: 40% center;
}

/* Adviser placeholders — intentional JIA component (not missing-image) */
.jia-avatar {
  width: 100%;
  height: 100%;
  min-height: inherit;
  border-radius: 0;
  border: 1px solid color-mix(in srgb, var(--jia-gold, #b88a3b) 28%, transparent);
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--jia-navy, #0b2748) 92%, #fff) 0%, var(--jia-deep, #041c3d) 100%);
  color: color-mix(in srgb, var(--jia-gold, #b88a3b) 85%, #fff);
  font-family: var(--jia-display, inherit);
  font-weight: 600;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  letter-spacing: 0.12em;
  display: grid;
  place-items: center;
}
.jia-avatar--lg {
  width: 100%;
  height: 100%;
  min-height: 160px;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}
.jia-avatar--portrait {
  min-height: 280px;
  font-size: clamp(2.5rem, 5vw, 3.25rem);
  letter-spacing: 0.14em;
}
.jia-person__media .jia-avatar {
  aspect-ratio: 3 / 4;
  min-height: 0;
}
.jia-adviser-hero__portrait .jia-avatar--portrait {
  background:
    linear-gradient(165deg, #0e3358 0%, var(--jia-deep, #041c3d) 100%);
}

/* Home H1 — slightly tighter on mid widths (copy unchanged) */
@media (max-width: 900px) {
  .jia-hero__title {
    font-size: clamp(2.125rem, 5.2vw, 2.75rem);
    line-height: 1.14;
    max-width: 18ch;
  }
  html[lang^="ar"] .jia-hero__title,
  html[dir="rtl"] .jia-hero__title {
    font-size: clamp(1.875rem, 5vw, 2.375rem);
    line-height: 1.3;
    max-width: 16ch;
  }
}

@media (max-width: 640px) {
  .jia-hero--photo {
    background-position: 55% 30%;
  }
  [dir="rtl"] .jia-hero--photo {
    background-position: 45% 30%;
  }
  .jia-page--services .jia-svc-hero--photo,
  .jia-svc--management-advisory .jia-svc-hero--photo {
    background-position: 62% 28%;
    min-height: auto;
  }
  .jia-svc--geotechnical-consultancy .jia-svc-hero--photo {
    background-position: 22% 35%;
    min-height: auto;
  }
  .jia-svc--procurement .jia-svc-hero--photo {
    background-position: 48% 30%;
    min-height: auto;
  }
  .jia-svc-hero__media img {
    aspect-ratio: 16 / 10;
  }
  .jia-cta-band--photo::before {
    opacity: 0.2;
    background-position: center 35%;
  }
}

@media (max-width: 390px) {
  .jia-hero__title {
    font-size: clamp(1.85rem, 7.2vw, 2.15rem);
    line-height: 1.16;
    max-width: 16ch;
  }
  html[lang^="ar"] .jia-hero__title,
  html[dir="rtl"] .jia-hero__title {
    font-size: clamp(1.7rem, 6.8vw, 2rem);
    line-height: 1.32;
  }
}

@media (max-width: 320px) {
  .jia-hero__title {
    font-size: 1.7rem;
    line-height: 1.18;
    max-width: 15ch;
  }
  html[lang^="ar"] .jia-hero__title,
  html[dir="rtl"] .jia-hero__title {
    font-size: 1.55rem;
    line-height: 1.34;
  }
}

/* ------------------------------------------------------------------ */
/* Homepage — Selected Client Experience (CSS marquee)                 */
/* ------------------------------------------------------------------ */

.jia-client-experience {
  overflow-x: clip;
  padding-block: var(--jia-space-5, 48px) var(--jia-space-6, 64px);
}

.jia-client-experience__intro {
  max-width: 42rem;
  margin-inline: auto;
  text-align: center;
  margin-bottom: var(--jia-space-4, 32px);
}

.jia-client-experience__intro .jia-kicker {
  color: var(--jia-emerald, #008B72);
}

.jia-client-experience__intro .jia-mask-title {
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  letter-spacing: -0.02em;
  margin-bottom: var(--jia-space-2, 16px);
}

.jia-client-experience__intro .jia-answer {
  margin-inline: auto;
  max-width: 36rem;
  color: var(--jia-secondary-text, #536579);
}

.jia-client-experience__footer {
  margin-top: var(--jia-space-4, 32px);
  text-align: center;
}

.jia-client-marquee {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.jia-client-marquee__viewport {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
}

.jia-client-marquee__track {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  width: max-content;
  margin: 0;
  padding: 1rem 0;
  list-style: none;
  will-change: transform;
  animation: jia-client-marquee-left 130s linear infinite;
}

.jia-client-marquee:hover .jia-client-marquee__track,
.jia-client-marquee:focus-within .jia-client-marquee__track {
  animation-play-state: paused;
}

.jia-client-marquee__item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5.5rem; /* ~176px gap */
  min-height: 14rem;
}

.jia-client-marquee__logo {
  display: block;
  height: 13.5rem; /* 216px showcase scale */
  width: auto;
  max-width: 28rem; /* 448px wide wordmarks */
  object-fit: contain;
  object-position: center;
  opacity: 0.92;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.jia-client-marquee__item:hover .jia-client-marquee__logo,
.jia-client-marquee__item:focus-within .jia-client-marquee__logo {
  opacity: 1;
  transform: translateY(-2px) scale(1.02);
}

@keyframes jia-client-marquee-left {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (max-width: 1024px) {
  .jia-client-marquee__item {
    padding: 0 4rem; /* ~128px */
    min-height: 11.5rem;
  }
  .jia-client-marquee__logo {
    height: 11rem; /* 176px */
    max-width: 24rem;
  }
  .jia-client-marquee__track {
    animation-duration: 135s;
  }
}

@media (max-width: 768px) {
  .jia-client-marquee__item {
    padding: 0 3.25rem; /* ~104px */
    min-height: 9.5rem;
  }
  .jia-client-marquee__logo {
    height: 9rem; /* 144px */
    max-width: 20rem;
  }
}

@media (max-width: 640px) {
  .jia-client-experience {
    padding-block: var(--jia-space-4, 32px) var(--jia-space-5, 48px);
  }
  .jia-client-experience__intro {
    margin-bottom: var(--jia-space-3, 24px);
    text-align: start;
  }
  html[dir="rtl"] .jia-client-experience__intro {
    text-align: start;
  }
  .jia-client-marquee__item {
    padding: 0 2.75rem; /* ~88px */
    min-height: 8.25rem;
  }
  .jia-client-marquee__logo {
    height: 7.5rem; /* 120px */
    max-width: 17rem;
  }
  .jia-client-marquee__track {
    animation-duration: 140s;
  }
  .jia-client-marquee__viewport {
    -webkit-mask-image: linear-gradient(
      90deg,
      transparent 0%,
      #000 7%,
      #000 93%,
      transparent 100%
    );
    mask-image: linear-gradient(
      90deg,
      transparent 0%,
      #000 7%,
      #000 93%,
      transparent 100%
    );
  }
}

@media (max-width: 390px) {
  .jia-client-marquee__logo {
    height: 6rem; /* 96px */
    max-width: 14rem;
  }
  .jia-client-marquee__item {
    padding: 0 2.35rem; /* ~75px */
    min-height: 7rem;
  }
  .jia-client-marquee__track {
    animation-duration: 145s;
  }
}

@media (max-width: 320px) {
  .jia-client-marquee__logo {
    height: 5.25rem; /* 84px */
    max-width: 12.5rem;
  }
  .jia-client-marquee__item {
    padding: 0 2rem; /* ~64px */
    min-height: 6.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jia-client-marquee__track {
    animation: none;
    transform: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 72rem;
    margin-inline: auto;
    row-gap: 1.75rem;
    column-gap: 0;
  }
  .jia-client-marquee__viewport {
    -webkit-mask-image: none;
    mask-image: none;
    overflow: visible;
  }
  .jia-client-marquee__logo {
    opacity: 0.94;
    height: 9rem;
    max-width: 20rem;
  }
  .jia-client-marquee__item {
    padding: 0 2.5rem;
    min-height: auto;
  }
}

