.consultant-block[style*="assets/consultants/alexa.webp"] {
  --profile-photo-primary-rgb: 201 199 195;
  --profile-photo-secondary-rgb: 227 229 233;
  --profile-photo-soft-top: #f4f3f2;
  --profile-photo-soft-bottom: #f7f7f9;
}

.consultant-block[style*="assets/consultants/caroline.png"] {
  --profile-photo-primary-rgb: 225 202 175;
  --profile-photo-secondary-rgb: 202 175 140;
  --profile-photo-soft-top: #f9f4ee;
  --profile-photo-soft-bottom: #f0e8de;
}

.consultant-block[style*="assets/consultants/christos.png"] {
  --profile-photo-primary-rgb: 94 89 92;
  --profile-photo-secondary-rgb: 150 146 169;
  --profile-photo-soft-top: #dddcdd;
  --profile-photo-soft-bottom: #e1dfe6;
}

.consultant-block[style*="assets/consultants/Donna+.png"] {
  --profile-photo-primary-rgb: 165 112 79;
  --profile-photo-secondary-rgb: 201 75 27;
  --profile-photo-soft-top: #ece1da;
  --profile-photo-soft-bottom: #efcbbd;
}

.consultant-block[style*="assets/consultants/Gage.png"] {
  --profile-photo-primary-rgb: 205 205 207;
  --profile-photo-secondary-rgb: 133 122 106;
  --profile-photo-soft-top: #f5f5f5;
  --profile-photo-soft-bottom: #dcd8d4;
}

.consultant-block[style*="assets/consultants/go2talent.png"] {
  --profile-photo-primary-rgb: 0 0 0;
  --profile-photo-secondary-rgb: 254 114 73;
  --profile-photo-soft-top: #c9c9c9;
  --profile-photo-soft-bottom: #ffd6ca;
}

.consultant-block[style*="assets/consultants/Hailee.png"] {
  --profile-photo-primary-rgb: 187 146 109;
  --profile-photo-secondary-rgb: 233 57 43;
  --profile-photo-soft-top: #f1e8e0;
  --profile-photo-soft-bottom: #f9c6c2;
}

.consultant-block[style*="assets/consultants/jenna.png"] {
  --profile-photo-primary-rgb: 173 145 98;
  --profile-photo-secondary-rgb: 144 116 69;
  --profile-photo-soft-top: #eee8de;
  --profile-photo-soft-bottom: #dfd7c9;
}

.consultant-block[style*="assets/consultants/James.png"] {
  --profile-photo-primary-rgb: 104 102 108;
  --profile-photo-secondary-rgb: 73 71 72;
  --profile-photo-soft-top: #dfdfe0;
  --profile-photo-soft-bottom: #cacaca;
}

.consultant-block[style*="assets/consultants/kevin.png"] {
  --profile-photo-primary-rgb: 165 67 140;
  --profile-photo-secondary-rgb: 70 57 48;
  --profile-photo-soft-top: #ecd8e7;
  --profile-photo-soft-bottom: #c9c6c3;
}

.consultant-block[style*="assets/consultants/MaryAnn.png"] {
  --profile-photo-primary-rgb: 144 141 140;
  --profile-photo-secondary-rgb: 76 77 83;
  --profile-photo-soft-top: #e8e7e7;
  --profile-photo-soft-bottom: #cbcbcd;
}

.consultant-block[style*="assets/consultants/maryann.webp"] {
  --profile-photo-primary-rgb: 119 121 126;
  --profile-photo-secondary-rgb: 103 89 77;
  --profile-photo-soft-top: #e2e3e4;
  --profile-photo-soft-bottom: #d3cfcb;
}

.consultant-block[style*="assets/consultants/megan.png"] {
  --profile-photo-primary-rgb: 241 222 209;
  --profile-photo-secondary-rgb: 58 56 55;
  --profile-photo-soft-top: #fcf8f5;
  --profile-photo-soft-bottom: #c6c5c5;
}

.consultant-block[style*="assets/consultants/sloan.png"] {
  --profile-photo-primary-rgb: 81 78 83;
  --profile-photo-secondary-rgb: 51 49 50;
  --profile-photo-soft-top: #dadadb;
  --profile-photo-soft-bottom: #c4c3c4;
}

.consultant-block[style*="assets/consultants/Tiana.png"] {
  --profile-photo-primary-rgb: 1 125 125;
  --profile-photo-secondary-rgb: 205 37 19;
  --profile-photo-soft-top: #cae4e4;
  --profile-photo-soft-bottom: #f1c0bb;
}

.consultant-block[style*="assets/consultants/vince.webp"] {
  --profile-photo-primary-rgb: 47 52 59;
  --profile-photo-secondary-rgb: 236 231 229;
  --profile-photo-soft-top: #d3d4d6;
  --profile-photo-soft-bottom: #f9f8f7;
}

.consultant-block[style*="assets/consultants/Whitney.png"] {
  --profile-photo-primary-rgb: 98 54 46;
  --profile-photo-secondary-rgb: 182 105 73;
  --profile-photo-soft-top: #ded5d3;
  --profile-photo-soft-bottom: #ead4ca;
}

.consultant-block[style*="headshot-c47428e83ba7.png"] {
  --profile-photo-primary-rgb: 70 138 159;
  --profile-photo-secondary-rgb: 232 132 178;
  --profile-photo-soft-top: #d8e6eb;
  --profile-photo-soft-bottom: #f8dbe9;
}

/* Stable mobile portrait framing with a photo-matched Soft gradient. */
@media (max-width: 640px) {
  .consultant-block {
    --profile-bottom-space: max(3.5rem, calc(2.5rem + env(safe-area-inset-bottom, 0px)));
    --profile-photo-fade: 180px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    background-color: var(--profile-photo-soft-top, #e1ecef);
    background-image:
      radial-gradient(ellipse at 0% 56%, rgb(var(--profile-photo-primary-rgb, 68 136 155) / .17), transparent 66%),
      radial-gradient(ellipse at 100% 84%, rgb(var(--profile-photo-secondary-rgb, 205 116 155) / .2), transparent 66%),
      linear-gradient(165deg, var(--profile-photo-soft-top, #e1ecef), var(--profile-photo-soft-bottom, #f1e3eb));
    background-size: 100% 100%;
    background-position: center;
  }

  .consultant-block > .consultant-block-hero {
    grid-area: 1 / 1;
  }

  .consultant-block > .consultant-block-summary {
    grid-area: 2 / 1;
  }

  .consultant-block > .consultant-block-actions {
    grid-area: 3 / 1;
  }

  .consultant-block > .consultant-block-details {
    grid-area: 4 / 1;
  }

  /* Mobile summaries stay visible even in a narrow desktop review iframe. */
  .consultant-block .consultant-hover-info {
    opacity: 1;
    max-height: none;
    transform: none;
  }

  .consultant-block::before {
    z-index: 0;
  }

  /* The photo occupies only the three original rows. The bio never sizes it. */
  .consultant-block::after {
    grid-area: 1 / 1 / 4 / 2;
    inset: -1.5rem -1.15rem calc(-1 * var(--profile-bottom-space));
    border-radius: 28px 28px 0 0;
    background-color: #182235;
    background-image: linear-gradient(200deg, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.55)), var(--photo);
    background-size: cover;
    background-position: center 25%;
    opacity: 1;
    mix-blend-mode: normal;
    filter: none;
    -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - var(--profile-photo-fade)), transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - var(--profile-photo-fade)), transparent 100%);
    pointer-events: none;
  }
}

