:root {
    --pbl-cyan: #06b6d4;
    --pbl-black: #000000;
    --pbl-white: #ffffff;
    --pbl-grey: #e5e6e9;
    --pbl-muted: #60646c;
    --pbl-soft-cyan: rgba(6, 182, 212, 0.11);
  }

  .pbl-team-page, .pbl-team-page *, .pbl-modal, .pbl-modal * {
    box-sizing: border-box;
    font-family: "Roboto", Arial, sans-serif !important;
  }

  .pbl-team-page {
    width: 100%; max-width: 100vw; overflow-x: hidden;
    padding: 90px 20px; background: var(--pbl-white); color: var(--pbl-black);
  }

  .pbl-team-container { width: min(1240px, 100%); margin: 0 auto; }

  .pbl-team-header { max-width: 780px; margin: 0 auto 75px; text-align: center; }

  .pbl-eyebrow {
    display: inline-block; margin-bottom: 12px; color: var(--pbl-cyan);
    font-size: 12px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
  }

  .pbl-team-header h2 {
    margin: 0 0 18px; color: var(--pbl-black);
    font-size: clamp(32px, 8vw, 60px); font-weight: 900;
    letter-spacing: -1.5px; line-height: 1.05;
  }

  .pbl-team-header p { margin: 0; color: var(--pbl-muted); font-size: 17px; line-height: 1.75; }

  .pbl-team-group { margin-bottom: 88px; }
  .pbl-team-group:last-child { margin-bottom: 0; }

  .pbl-section-heading { display: flex; align-items: flex-end; gap: 24px; margin-bottom: 32px; }
  .pbl-section-heading > div:first-child { flex-shrink: 0; }

  .pbl-section-heading span {
    display: block; margin-bottom: 6px; color: var(--pbl-cyan);
    font-size: 11px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase;
  }

  .pbl-section-heading h3 {
    margin: 0; color: var(--pbl-black);
    font-size: clamp(24px, 6vw, 37px); font-weight: 800; line-height: 1.15;
  }

  .pbl-heading-line { width: 100%; height: 1px; margin-bottom: 7px; background: var(--pbl-grey); }

  .pbl-team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }

  .pbl-card {
    position: relative; min-width: 0; overflow: hidden;
    border: 1px solid var(--pbl-grey); border-radius: 17px; background: var(--pbl-white);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  }

  .pbl-card.pbl-clickable { cursor: pointer; }

  .pbl-card:hover {
    transform: translateY(-7px); border-color: rgba(6, 182, 212, 0.6);
    box-shadow: 0 19px 42px rgba(0, 0, 0, 0.1);
  }

  .pbl-card:focus-visible { outline: 3px solid rgba(6, 182, 212, 0.35); outline-offset: 4px; }

  .pbl-card-image {
    position: relative; width: 100%; aspect-ratio: 4 / 4.25;
    overflow: hidden; background: var(--pbl-grey);
  }

  .pbl-card-image img {
    width: 100%; height: 100%; display: block; object-fit: cover;
    object-position: var(--pbl-image-position, center top);
    transform: scale(var(--pbl-image-scale, 1)); transition: transform 0.4s ease;
  }

  .pbl-card:hover .pbl-card-image img { transform: scale(calc(var(--pbl-image-scale, 1) + 0.045)); }

  .pbl-card-image::after {
    content: ""; position: absolute; inset: auto 0 0; height: 35%;
    background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0));
    opacity: 0; transition: opacity 0.3s ease;
  }

  .pbl-card:hover .pbl-card-image::after { opacity: 1; }

  .pbl-popup-indicator {
    position: absolute; z-index: 2; right: 15px; bottom: 15px;
    display: grid; place-items: center; width: 42px; height: 42px;
    border-radius: 50%; background: var(--pbl-cyan); color: var(--pbl-black);
    font-size: 19px; font-weight: 800; opacity: 0; transform: translateY(9px);
    transition: opacity 0.28s ease, transform 0.28s ease;
  }

  .pbl-card:hover .pbl-popup-indicator { opacity: 1; transform: translateY(0); }

  .pbl-card-body { padding: 21px 19px 22px; }

  .pbl-card-category {
    display: inline-flex; align-items: center; min-height: 25px;
    margin-bottom: 11px; padding: 5px 10px; border-radius: 50px;
    background: var(--pbl-soft-cyan); color: #087e91;
    font-size: 10px; font-weight: 800; letter-spacing: 0.5px;
    line-height: 1.3; text-transform: uppercase;
  }

  .pbl-card h4 { margin: 0 0 7px; color: var(--pbl-black); font-size: 20px; font-weight: 800; line-height: 1.3; }

  .pbl-card-position { min-height: 42px; margin: 0; color: var(--pbl-muted); font-size: 14px; line-height: 1.5; }

  .pbl-card-actions {
    display: flex; flex-wrap: wrap; align-items: center; gap: 9px;
    margin-top: 17px; padding-top: 15px; border-top: 1px solid var(--pbl-grey);
  }

  .pbl-mini-link, .pbl-view-profile {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 34px; padding: 8px 11px; border: 1px solid var(--pbl-grey);
    border-radius: 7px; background: var(--pbl-white); color: var(--pbl-black);
    font-size: 11px; font-weight: 700; line-height: 1; text-decoration: none;
    transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
  }

  .pbl-mini-link:hover { border-color: var(--pbl-cyan); background: var(--pbl-soft-cyan); }

  .pbl-view-profile { margin-left: auto; border-color: var(--pbl-cyan); background: var(--pbl-cyan); }

  .pbl-view-profile:hover { border-color: var(--pbl-black); background: var(--pbl-black); color: var(--pbl-white); }

  .pbl-modal {
    position: fixed; z-index: 999999; inset: 0; display: flex;
    align-items: center; justify-content: center; padding: 22px;
    visibility: hidden; opacity: 0; overflow: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
  }

  .pbl-modal.pbl-active { visibility: visible; opacity: 1; }

  .pbl-modal-backdrop {
    position: absolute; inset: 0; background: rgba(0,0,0,0.76);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  }

  .pbl-modal-dialog {
    position: relative; z-index: 2; width: min(1000px, 100%);
    max-height: calc(100vh - 44px); overflow-y: auto; -webkit-overflow-scrolling: touch;
    border: 1px solid var(--pbl-grey); border-radius: 23px; background: var(--pbl-white);
    box-shadow: 0 28px 90px rgba(0,0,0,0.36);
    transform: translateY(35px) scale(0.97);
    transition: transform 0.34s cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .pbl-modal.pbl-active .pbl-modal-dialog { transform: translateY(0) scale(1); }

  .pbl-modal-close {
    position: sticky; z-index: 10; top: 16px; float: right;
    display: grid; place-items: center; width: 43px; height: 43px;
    margin: 16px 16px -59px 0; padding: 0 0 3px;
    border: 1px solid var(--pbl-grey); border-radius: 50%;
    background: var(--pbl-white); color: var(--pbl-black);
    font-size: 29px; font-weight: 300; line-height: 1; cursor: pointer;
    transition: transform 0.23s ease, background 0.23s ease, color 0.23s ease;
  }

  .pbl-modal-close:hover { transform: rotate(90deg); background: var(--pbl-black); color: var(--pbl-white); }

  .pbl-modal-top {
    display: grid; grid-template-columns: 330px 1fr;
    min-height: 385px; border-bottom: 1px solid var(--pbl-grey);
  }

  .pbl-modal-photo { min-height: 385px; overflow: hidden; border-radius: 22px 0 0 0; background: var(--pbl-grey); }

  .pbl-modal-photo img {
    width: 100%; height: 100%; min-height: 385px; display: block; object-fit: cover;
    object-position: var(--pbl-modal-image-position, center top);
  }

  .pbl-modal-summary { display: flex; flex-direction: column; justify-content: center; padding: 60px 65px 45px 45px; }

  .pbl-profile-label {
    display: inline-flex; align-self: flex-start; margin-bottom: 14px;
    padding: 7px 12px; border-radius: 30px; background: var(--pbl-soft-cyan); color: #087e91;
    font-size: 10px; font-weight: 800; letter-spacing: 0.7px; text-transform: uppercase;
  }

  .pbl-modal-summary h3 {
    margin: 0 0 9px; color: var(--pbl-black);
    font-size: clamp(28px, 7vw, 47px); font-weight: 900;
    letter-spacing: -0.8px; line-height: 1.08;
  }

  .pbl-modal-position { margin: 0 0 23px; color: var(--pbl-cyan); font-size: 16px; font-weight: 700; line-height: 1.5; }

  .pbl-contact-list { display: grid; gap: 7px; margin-bottom: 23px; }

  .pbl-contact-item { display: flex; align-items: flex-start; gap: 9px; color: var(--pbl-muted); font-size: 14px; line-height: 1.5; }

  .pbl-contact-item strong { min-width: 68px; color: var(--pbl-black); font-size: 12px; font-weight: 800; text-transform: uppercase; }

  .pbl-contact-item a { overflow-wrap: anywhere; color: var(--pbl-muted); text-decoration: none; }

  .pbl-contact-item a:hover { color: var(--pbl-cyan); }

  .pbl-modal-links { display: flex; flex-wrap: wrap; gap: 9px; }

  .pbl-profile-link {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 40px; padding: 10px 14px; border: 1px solid var(--pbl-grey);
    border-radius: 8px; background: var(--pbl-white); color: var(--pbl-black);
    font-size: 12px; font-weight: 700; text-decoration: none;
    transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
  }

  .pbl-profile-link:hover { border-color: var(--pbl-cyan); background: var(--pbl-cyan); }

  .pbl-profile-link.pbl-primary-link { border-color: var(--pbl-black); background: var(--pbl-black); color: var(--pbl-white); }

  .pbl-profile-link.pbl-primary-link:hover { border-color: var(--pbl-cyan); background: var(--pbl-cyan); color: var(--pbl-black); }

  .pbl-modal-content { padding: 42px 48px 52px; }

  .pbl-info-section { margin-bottom: 35px; }
  .pbl-info-section:last-child { margin-bottom: 0; }

  .pbl-info-section h4 { display: flex; align-items: center; gap: 13px; margin: 0 0 16px; color: var(--pbl-black); font-size: 21px; font-weight: 800; }

  .pbl-info-section h4::after { content: ""; width: 100%; height: 1px; background: var(--pbl-grey); }

  .pbl-info-section p { margin: 0; color: var(--pbl-muted); font-size: 15px; line-height: 1.75; }

  .pbl-info-section ul, .pbl-info-section ol { margin: 0; padding-left: 21px; color: var(--pbl-muted); }

  .pbl-info-section li { margin-bottom: 10px; padding-left: 4px; font-size: 14px; line-height: 1.65; }
  .pbl-info-section li:last-child { margin-bottom: 0; }

  .pbl-specialization-box {
    padding: 18px; border-left: 4px solid var(--pbl-cyan);
    border-radius: 0 10px 10px 0; background: #f8f9fa;
    color: var(--pbl-muted); font-size: 15px; line-height: 1.7;
  }

  body.pbl-modal-open { overflow: hidden; }

  @media (max-width: 1180px) { .pbl-team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

  @media (max-width: 900px) {
    .pbl-team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
    .pbl-modal-top { grid-template-columns: 260px 1fr; }
    .pbl-modal-summary { padding: 44px 36px 32px 28px; }
    .pbl-modal-content { padding: 32px 28px 40px; }
  }

  @media (max-width: 820px) { .pbl-team-page { padding: 70px 18px; } }

  @media (max-width: 620px) {
    .pbl-team-page { padding: 50px 16px; }
    .pbl-team-header { margin-bottom: 45px; }
    .pbl-team-header p { font-size: 15px; line-height: 1.65; }
    .pbl-team-group { margin-bottom: 55px; }
    .pbl-section-heading { flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
    .pbl-section-heading span { font-size: 9px; }
    .pbl-section-heading h3 { font-size: 23px; }
    .pbl-heading-line { display: none; }
    .pbl-team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .pbl-card { border-radius: 13px; }
    .pbl-card-body { padding: 14px 13px 15px; }
    .pbl-card-category { font-size: 9px; padding: 4px 8px; margin-bottom: 8px; }
    .pbl-card h4 { font-size: 15px; margin-bottom: 4px; }
    .pbl-card-position { min-height: auto; font-size: 12px; line-height: 1.4; }
    .pbl-card-actions { gap: 6px; margin-top: 12px; padding-top: 11px; }
    .pbl-mini-link, .pbl-view-profile { min-height: 30px; padding: 6px 9px; font-size: 10px; }
    .pbl-popup-indicator { width: 34px; height: 34px; right: 10px; bottom: 10px; font-size: 16px; opacity: 1; transform: translateY(0); }
    .pbl-modal { position: absolute; align-items: flex-start; padding: 0; overflow: visible; height: auto; }
    .pbl-modal-backdrop { position: fixed; }
    .pbl-modal-dialog { width: 100%; max-height: none; border-radius: 0; overflow-y: visible; }
    .pbl-modal-top { grid-template-columns: 1fr; min-height: auto; }
    .pbl-modal-photo {
      min-height: 0;
      width: 120px;
      height: 120px;
      aspect-ratio: 1 / 1;
      border-radius: 50%;
      border: 4px solid var(--pbl-white);
      box-shadow: 0 4px 20px rgba(0,0,0,0.18);
      margin: -60px auto 0;
      position: relative;
      z-index: 3;
    }
    .pbl-modal-photo img {
      min-height: 0;
      height: 100%;
      border-radius: 50%;
    }
    .pbl-modal-summary {
      padding: 14px 20px 26px;
      text-align: center;
      align-items: center;
    }
    .pbl-modal-links { justify-content: center; }
    /* Add a top bar so the photo has something to overlap */
    .pbl-modal-dialog::before {
      content: "";
      display: block;
      height: 64px;
      background: var(--pbl-cyan);
      border-radius: 0;
    }
    .pbl-modal-content { padding: 26px 18px 36px; }
    .pbl-modal-close { top: 10px; right: 4px; width: 38px; height: 38px; margin: 10px 10px -48px 0; font-size: 25px; }
    .pbl-contact-item { display: grid; gap: 2px; font-size: 13px; }
    .pbl-profile-link { min-height: 36px; padding: 8px 12px; font-size: 11px; }
    .pbl-info-section { margin-bottom: 28px; }
    .pbl-info-section h4 { font-size: 18px; }
    .pbl-info-section p, .pbl-specialization-box { font-size: 14px; }
  }

  @media (max-width: 400px) {
    .pbl-team-grid { grid-template-columns: 1fr; }
    .pbl-card-image { aspect-ratio: 4 / 3.4; }
  }
