@font-face {
  font-family: "Mesmerize";
  src: url("/assets/fonts/mesmerize/mesmerize-ex-lt-.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Mesmerize";
  src: url("/assets/fonts/mesmerize/mesmerize-ex-rg.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Mesmerize";
  src: url("/assets/fonts/mesmerize/mesmerize-ex-sb.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Myriad Pro";
  src: url("/assets/fonts/myriad_pro/MyriadPro-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Myriad Pro";
  src: url("/assets/fonts/myriad_pro/MYRIADPRO-REGULAR.OTF") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Myriad Pro";
  src: url("/assets/fonts/myriad_pro/MYRIADPRO-SEMIBOLD.OTF") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

#jb_body.page-team {
  --ink: #2f2f39;
  --paper: #fcfcfd;
  --section: #f4f6f9;
  --navy: #41647b;
  --navy-d: #365466;
  --sand: #bdb19d;
  --mute: #575760;
  --line: rgba(0, 0, 0, 0.08);
  --white: #fff;
  --page-pad: 40px;
}
#jb_body.page-team * { box-sizing: border-box; }
html:has(#jb_body.page-team) { scroll-behavior: smooth; }
#jb_body.page-team {
  font-family: "Myriad Pro", "Myriad-Pro-Light", system-ui, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
#jb_body.page-team a { color: inherit; text-decoration: none; }
#jb_body.page-team button {
  font-family: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  font-size: 16px;
}
#jb_body.page-team .team-page-main img { max-width: 100%; display: block; }

#jb_body.page-team .progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 1200;
  background: transparent;
  pointer-events: none;
}
#jb_body.page-team .progress-bar {
  height: 100%;
  background: var(--navy);
  width: 0%;
  transition: width 80ms linear;
}

#jb_body.page-team .team-page-main { padding-top: 50px; }
#jb_body.page-team .wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--page-pad);
}
#jb_body.page-team .team-head { padding-top: 0; }
#jb_body.page-team .team-head h1 {
  font-family: "Mesmerize", sans-serif;
  font-weight: 300;
  font-size: 32px;
  line-height: 48px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #111;
  margin: 0;
}
#jb_body.page-team .team-head p {
  font-family: "Myriad Pro", sans-serif;
  font-weight: 300;
  font-size: 20px;
  line-height: 28px;
  color: var(--mute);
  margin: 8px 0 0;
}

#jb_body.page-team .team-body {
  display: grid;
  grid-template-columns: 236px 1fr;
  gap: 40px;
  align-items: start;
  padding-top: 72px;
  padding-bottom: 56px;
}
#jb_body.page-team .facets { position: sticky; top: 104px; }
#jb_body.page-team .facet-block + .facet-block { margin-top: 30px; }
#jb_body.page-team .facet-block h3 {
  font-family: "Myriad Pro", sans-serif;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #63636b;
  margin: 0 0 14px;
}
#jb_body.page-team .facet-block button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  font-family: "Myriad Pro", sans-serif;
  font-size: 16px;
  line-height: 1.3;
  padding: 9px 2px;
  color: var(--mute);
  font-weight: 300;
  transition: color 0.15s;
}
#jb_body.page-team .facet-block button .n {
  font-size: 16px;
  opacity: 0.85;
  font-variant-numeric: tabular-nums;
}
#jb_body.page-team .facet-block button:hover { color: #111; }
#jb_body.page-team .facet-block button.on { color: #111; font-weight: 400; }
#jb_body.page-team .facet-block button.on .lbl {
  box-shadow: inset 0 -1.5px 0 currentColor;
  padding-bottom: 3px;
}

#jb_body.page-team .team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 20px;
}
#jb_body.page-team .team-card {
  position: relative;
  aspect-ratio: 325 / 406;
  border-radius: 2px;
  overflow: hidden;
  background: #e9edf1;
}
#jb_body.page-team .team-card__link {
  position: absolute;
  inset: 0;
  z-index: 4;
}
#jb_body.page-team .t-photo {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
#jb_body.page-team .t-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
#jb_body.page-team .team-card:hover .t-photo img { transform: scale(1.06); }
#jb_body.page-team .t-mono {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #5a7d94, #3a586b);
  color: #fff;
  font-family: "Mesmerize", sans-serif;
  font-weight: 300;
  font-size: 40px;
  letter-spacing: 0.04em;
}
#jb_body.page-team .t-foot {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  pointer-events: none;
}
#jb_body.page-team .t-tag {
  font-family: "Myriad Pro", sans-serif;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(65, 100, 123, 0.94);
  padding: 6px 11px;
  border-radius: 2px;
}
#jb_body.page-team .t-label {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.9);
}
#jb_body.page-team .t-office {
  font-family: "Myriad Pro", sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 20px;
  color: var(--navy);
}
#jb_body.page-team .t-nr { display: flex; flex-direction: column; gap: 4px; }
#jb_body.page-team .t-name {
  font-family: "Mesmerize", sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 22px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #111;
}
#jb_body.page-team .t-role {
  font-family: "Myriad Pro", sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 21px;
  color: var(--mute);
}
#jb_body.page-team .team-empty {
  padding-top: 56px;
  text-align: center;
  font-family: "Myriad Pro", sans-serif;
  font-size: 18px;
  color: var(--mute);
}
#jb_body.page-team .team-empty[hidden] { display: none; }

#jb_body.page-team .expert {
  margin-top: 88px;
  background: var(--navy);
  color: #fff;
  padding: 0 40px;
  text-align: center;
  min-height: 315px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
#jb_body.page-team .expert h2 {
  font-family: "Mesmerize", sans-serif;
  font-weight: 300;
  font-size: 32px;
  line-height: 48px;
  color: #fff;
  letter-spacing: 0;
  text-transform: uppercase;
  margin: 0 0 12px;
}
#jb_body.page-team .expert p {
  font-family: "Myriad Pro", sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 24px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 28px;
  max-width: 640px;
}
#jb_body.page-team .expert .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 32px;
  background: transparent;
  color: #fff;
  font-family: "Mesmerize", sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: 0;
  text-transform: uppercase;
  border: 0.5px solid #fff;
  transition: 0.25s;
}
#jb_body.page-team .expert .btn:hover { background: rgba(255, 255, 255, 0.14); }

#jb_body.page-team .reveal {
  opacity: 0;
  transform: translate3d(0, 40px, 0);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
#jb_body.page-team .reveal.in { opacity: 1; transform: translate3d(0, 0, 0); }
#jb_body.page-team .reveal.d1 { transition-delay: 0.05s; }
#jb_body.page-team .reveal.d2 { transition-delay: 0.1s; }
#jb_body.page-team .split-words { display: inline-block; }
#jb_body.page-team .split-words .w {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
#jb_body.page-team .split-words.in .w { opacity: 1; transform: translate3d(0, 0, 0); }

@media (max-width: 1100px) {
  #jb_body.page-team .team-body { grid-template-columns: 200px 1fr; gap: 28px; }
  #jb_body.page-team .team-grid { grid-template-columns: repeat(2, 1fr); }
}
/* V2 — fixed header: header height + 50px gap to title */
#jb_body.page-team.layout-v2 .team-page-main {
  padding-top: calc(72px + 48px + 50px);
}

/* ---------- Mobile / tablet (template JBY-Our-Team_dev) ---------- */
@media (max-width: 980px) {
  html:has(#jb_body.page-team),
  html:has(#jb_body.page-team) body {
    overflow-x: hidden;
  }
}

@media (max-width: 820px) {
  #jb_body.page-team {
    --page-pad: 24px;
  }
  #jb_body.page-team .wrap { padding: 0 24px; }
  #jb_body.page-team.layout-v2 .team-page-main {
    padding-top: 30px;
  }
  #jb_body.page-team .team-body {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  #jb_body.page-team .team-body > * { min-width: 0; }
  #jb_body.page-team .facets { position: static; }

  /* Horizontal-scroll facet rows (label above) */
  #jb_body.page-team .facet-block { display: block; }
  #jb_body.page-team .facet-block h3 { margin: 0 0 8px; }
  #jb_body.page-team .facet-items {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0 22px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }
  #jb_body.page-team .facet-items::-webkit-scrollbar { display: none; }
  #jb_body.page-team .facet-block button {
    width: auto;
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 8px 0 5px;
  }
  #jb_body.page-team .facet-block button.on {
    box-shadow: inset 0 -1.5px 0 currentColor;
  }
  #jb_body.page-team .facet-block button.on .lbl {
    box-shadow: none;
    padding-bottom: 0;
  }

  #jb_body.page-team .team-grid { grid-template-columns: repeat(2, 1fr); }
  #jb_body.page-team .team-head h1 { font-size: 28px; line-height: 40px; }
  #jb_body.page-team .team-head p { font-size: 18px; line-height: 26px; }
  #jb_body.page-team .expert { padding: 56px 24px; min-height: auto; }
  #jb_body.page-team .expert h2 { font-size: 24px; line-height: 36px; }
}

@media (max-width: 680px) {
  #jb_body.page-team .expert h2 {
    white-space: nowrap;
    font-size: clamp(16px, 5.8vw, 28px);
    line-height: 1.25;
  }
  #jb_body.page-team .expert .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  #jb_body.page-team header.header-v2 .btn-contact-us,
  #jb_body.page-team header.header-v2 .header-home__contact {
    display: none !important;
  }

  #jb_body.page-team .team-head { padding-top: 40px; }
  #jb_body.page-team .team-head p { margin-bottom: 6px; }

  #jb_body.page-team .facet-block + .facet-block { margin-top: 22px; }
  #jb_body.page-team .facet-block h3 { font-size: 13px; margin: 0 0 8px; }
  #jb_body.page-team .facet-block button { font-size: 15px; }
  #jb_body.page-team .facet-items { gap: 0 16px; }
}

@media (max-width: 520px) {
  #jb_body.page-team .team-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
  #jb_body.page-team .reveal,
  #jb_body.page-team .split-words .w { transition: none; opacity: 1; transform: none; }
  #jb_body.page-team .t-photo img { transition: none; }
}

/* V2 header — light bar, navy on scroll (matches team template) */
#jb_body.page-team header.header-v2 {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  color: #111;
  background: rgba(252, 252, 253, 0) !important;
  pointer-events: none;
  box-shadow: none;
  border-bottom: 1px solid #eeeef0;
  transition: color 0.45s ease, border-color 0.45s ease;
}
#jb_body.page-team header.header-v2::before { content: none !important; }
#jb_body.page-team header.header-v2 .header-v2__bar {
  pointer-events: auto;
  position: relative;
  z-index: 5;
  min-height: 0 !important;
  padding: 24px 40px !important;
  background: transparent !important;
  transition: padding 0.35s ease, background 0.45s ease;
}
#jb_body.page-team header.header-v2.header-v2--sticky .header-v2__bar,
#jb_body.page-team header.header-v2.scrolled .header-v2__bar {
  padding: 16px 40px !important;
  background: #41647b !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.15);
}
#jb_body.page-team header.header-v2.header-v2--sticky,
#jb_body.page-team header.header-v2.scrolled {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.15);
}
#jb_body.page-team header.header-v2 .header-v2__logo { width: 72px !important; height: 72px !important; }
#jb_body.page-team header.header-v2 .header-v2__logo-image { filter: invert(1); transition: filter 0.45s ease; }
#jb_body.page-team header.header-v2.header-v2--sticky .header-v2__logo,
#jb_body.page-team header.header-v2.scrolled .header-v2__logo { width: 60px !important; height: 60px !important; }
#jb_body.page-team header.header-v2.header-v2--sticky .header-v2__logo-image,
#jb_body.page-team header.header-v2.scrolled .header-v2__logo-image { filter: brightness(0) invert(1); }
#jb_body.page-team header.header-v2 .header-v2__menu-toggle,
#jb_body.page-team header.header-v2 .header-v2__search {
  color: #111;
  border-color: rgba(0, 0, 0, 0.28);
  transition: color 0.45s ease, border-color 0.45s ease, background 0.25s ease;
}
#jb_body.page-team header.header-v2.header-v2--sticky .header-v2__menu-toggle,
#jb_body.page-team header.header-v2.scrolled .header-v2__menu-toggle,
#jb_body.page-team header.header-v2.header-v2--sticky .header-v2__search,
#jb_body.page-team header.header-v2.scrolled .header-v2__search {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}
#jb_body.page-team header.header-v2 .btn-contact-us,
#jb_body.page-team header.header-v2 .header-home__contact {
  font-family: "Mesmerize", sans-serif;
  font-weight: 300;
  font-size: 16px !important;
  line-height: 20px !important;
  letter-spacing: 0;
  text-transform: uppercase;
  height: 40px;
  padding: 0 24px;
  color: #111 !important;
  border: 0.5px solid rgba(0, 0, 0, 0.55) !important;
  background: transparent !important;
  transition: color 0.45s ease, border-color 0.45s ease, background 0.25s ease;
}
#jb_body.page-team header.header-v2.header-v2--sticky .btn-contact-us,
#jb_body.page-team header.header-v2.scrolled .btn-contact-us,
#jb_body.page-team header.header-v2.header-v2--sticky .header-home__contact,
#jb_body.page-team header.header-v2.scrolled .header-home__contact {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.75) !important;
}
#jb_body.page-team header.header-v2 .header-v2-drilldown__panel {
  top: 0;
  padding-top: var(--team-nav-h, 88px);
  background: rgba(0, 0, 0, 0.88);
}
#jb_body.page-team header.header-v2.header-v2--menu-open {
  z-index: 400;
  color: #fff;
  background: rgba(0, 0, 0, 0.88) !important;
  border-bottom: 0;
}
#jb_body.page-team header.header-v2.header-v2--menu-open .header-v2__bar {
  background: rgba(0, 0, 0, 0.88) !important;
  backdrop-filter: none !important;
}
#jb_body.page-team footer.mt-20 { margin-top: 0 !important; }
#jb_body.page-team .header-v2-drilldown__link {
  font-family: "Mesmerize", sans-serif;
  font-weight: 300;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
#jb_body.page-team .header-v2-drilldown__featured-title {
  font-family: "Mesmerize", sans-serif;
  font-weight: 300;
  letter-spacing: 0;
  text-transform: uppercase;
}
#jb_body.page-team .header-v2-drilldown__featured-text {
  font-family: "Myriad Pro", sans-serif;
  font-weight: 400;
}
#jb_body.page-team .header-v2-drilldown__featured-cta {
  font-family: "Mesmerize", sans-serif;
  font-weight: 300;
  text-transform: uppercase;
}
#jb_body.page-team .footer-block .footer-menu li a {
  font-family: "Mesmerize", sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0;
  text-transform: uppercase;
}
#jb_body.page-team .footer-block .footer-menu li span {
  font-family: "Mesmerize", sans-serif;
  font-weight: 300;
}
#jb_body.page-team .footer-block h4 {
  font-family: "Myriad Pro", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--mute);
}
#jb_body.page-team .footer-block .row-footer-block a,
#jb_body.page-team .footer-block p {
  font-family: "Mesmerize", sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ink);
}
#jb_body.page-team .footer-block img {
  width: 72px !important;
  height: 72px !important;
  max-width: 72px !important;
  object-fit: contain;
}
@media (max-width: 820px) {
  #jb_body.page-team header.header-v2 .header-v2__bar { padding: 16px 24px !important; }
  #jb_body.page-team header.header-v2.header-v2--sticky .header-v2__bar { padding: 12px 24px !important; }
}
