/* ========================================================================== 
   CONTACT MODAL + TEAM CARDS
   Colors: #000000 / #1865ba / #ffffff
   ========================================================================== */

:root {
  --contact-black: #000000;
  --contact-blue: #1865ba;
  --contact-white: #ffffff;
  --contact-border: rgba(24, 101, 186, 0.22);
}

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

.contact-modal,
.contact-modal * {
  box-sizing: border-box;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: clamp(14px, 2.5vw, 36px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.contact-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.contact-modal__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 18%, rgba(24, 101, 186, 0.28), transparent 34%),
    rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.contact-modal__panel {
  position: relative;
  z-index: 1;
  width: min(96vw, 1540px);
  max-height: min(92vh, 900px);
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(360px, 0.85fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: clamp(22px, 2vw, 34px);
  background: var(--contact-black);
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.42);
  transform: translateY(18px) scale(0.985);
  transition: transform 260ms cubic-bezier(.2, .8, .2, 1);
}

.contact-modal.is-open .contact-modal__panel {
  transform: translateY(0) scale(1);
}

.contact-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 8;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 50%;
  background: var(--contact-white);
  color: var(--contact-black);
  font: inherit;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.contact-modal__close:hover,
.contact-modal__close:focus-visible {
  color: var(--contact-blue);
  border-color: var(--contact-blue);
  transform: rotate(6deg);
  outline: none;
}

/* ------------------------------ team side ------------------------------ */
.contact-team {
  min-width: 0;
  padding: clamp(54px, 4.2vw, 74px) clamp(22px, 3vw, 48px) clamp(26px, 3vw, 46px);
  background:
    radial-gradient(circle at 50% 0%, rgba(24, 101, 186, 0.22), transparent 36%),
    var(--contact-black);
  color: var(--contact-white);
  overflow: auto;
}

.contact-team__intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(20px, 2vw, 30px);
}

.contact-team__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
  color: #8ebfed;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.contact-team__eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}

.contact-team__title {
  margin: 0;
  max-width: 15ch;
  color: var(--contact-white);
  font-size: clamp(26px, 2.2vw, 42px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.contact-team__hint {
  margin: 0 0 4px;
  max-width: 28ch;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  line-height: 1.45;
  text-align: right;
}

.team-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.5vw, 22px);
}

.team-card {
  position: relative;
  min-width: 0;
  min-height: clamp(410px, 51vh, 600px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  background: #0b0b0b;
  color: var(--contact-white);
  cursor: pointer;
  isolation: isolate;
  outline: none;
  transform: translateZ(0);
  transition: border-color 200ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.team-card:hover,
.team-card:focus-visible,
.team-card.is-bio-open {
  border-color: rgba(24, 101, 186, 0.72);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.3);
  transform: translateY(-3px);
}

.team-card__front,
.team-card__bio {
  position: absolute;
  inset: 0;
}

.team-card__front {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(22px, 2.2vw, 34px);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.04) 18%, rgba(0, 0, 0, 0.9) 100%),
    radial-gradient(circle at 52% 22%, rgba(24, 101, 186, 0.7), transparent 33%),
    linear-gradient(145deg, #151515 0%, #050505 100%);
  transition: opacity 220ms ease, transform 300ms cubic-bezier(.2, .8, .2, 1);
}

.team-card--sorah .team-card__front {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.04) 18%, rgba(0, 0, 0, 0.9) 100%),
    radial-gradient(circle at 48% 24%, rgba(24, 101, 186, 0.5), transparent 35%),
    linear-gradient(145deg, #111111 0%, #020202 100%);
}

.team-card__monogram {
  position: absolute;
  top: 50%;
  left: 50%;
  color: rgba(255, 255, 255, 0.08);
  font-size: clamp(150px, 16vw, 260px);
  font-weight: 300;
  line-height: 1;
  transform: translate(-50%, -54%);
  user-select: none;
}

.team-card__name {
  position: relative;
  z-index: 1;
  margin: 0 0 13px;
  font-size: clamp(30px, 2.8vw, 48px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.team-card__roles {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.team-card__roles li {
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.team-card__action {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: #91c4f4;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.team-card__action::after {
  content: "↗";
  font-size: 14px;
}

.team-card__bio {
  z-index: 2;
  padding: clamp(24px, 2.2vw, 34px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--contact-white);
  color: var(--contact-blue);
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  transition: opacity 220ms ease, visibility 220ms ease, transform 300ms cubic-bezier(.2, .8, .2, 1);
  scrollbar-width: thin;
  scrollbar-color: rgba(24, 101, 186, 0.55) transparent;
}

.team-card:hover .team-card__front,
.team-card:focus-visible .team-card__front,
.team-card.is-bio-open .team-card__front {
  opacity: 0;
  transform: scale(0.985);
}

.team-card:hover .team-card__bio,
.team-card:focus-visible .team-card__bio,
.team-card.is-bio-open .team-card__bio {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.team-card__bio-name {
  margin: 0 0 13px;
  font-size: clamp(28px, 2.3vw, 40px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
}

.team-card__bio p {
  margin: 0 0 0.72em;
  color: #155b9f;
  font-size: clamp(11px, 0.72vw, 13px);
  line-height: 1.52;
}

.team-card__bio p:last-child {
  margin-bottom: 0;
}

/* ------------------------------- form side ----------------------------- */
.contact-form-panel {
  min-width: 0;
  padding: clamp(64px, 5vw, 82px) clamp(28px, 3.4vw, 54px) clamp(34px, 4vw, 60px);
  background: var(--contact-white);
  color: var(--contact-blue);
  overflow-y: auto;
}

.contact-form-panel__eyebrow {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 10px;
  border: 1px solid var(--contact-border);
  border-radius: 999px;
  color: var(--contact-blue);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.contact-form-panel__title {
  margin: 0 0 12px;
  color: var(--contact-blue);
  font-size: clamp(34px, 3.2vw, 54px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.contact-form-panel__intro {
  margin: 0 0 clamp(24px, 2.4vw, 34px);
  max-width: 40ch;
  color: #356faa;
  font-size: 13px;
  line-height: 1.55;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px 14px;
}

.contact-form__field {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 7px;
  min-width: 0;
}

.contact-form__field--full,
.contact-form__submit,
.contact-form__status {
  grid-column: 1 / -1;
}

.contact-form__field span {
  color: var(--contact-blue);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(24, 101, 186, 0.28);
  border-radius: 12px;
  background: #ffffff;
  color: var(--contact-blue);
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.contact-form input {
  height: 44px;
  padding: 0 14px;
}

.contact-form textarea {
  min-height: 118px;
  padding: 13px 14px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--contact-blue);
  box-shadow: 0 0 0 4px rgba(24, 101, 186, 0.1);
  background: #fbfdff;
}

.contact-form__submit {
  min-height: 48px;
  border: 1px solid var(--contact-blue);
  border-radius: 999px;
  background: var(--contact-blue);
  color: var(--contact-white);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.contact-form__submit:hover,
.contact-form__submit:focus-visible {
  background: var(--contact-white);
  color: var(--contact-blue);
  box-shadow: 0 10px 26px rgba(24, 101, 186, 0.16);
  transform: translateY(-1px);
  outline: none;
}

.contact-form__submit:disabled {
  opacity: 0.58;
  cursor: wait;
  transform: none;
}

.contact-form__status {
  min-height: 18px;
  color: #356faa;
  font-size: 12px;
  line-height: 1.45;
}

.contact-form__status.is-error { color: #a51632; }
.contact-form__status.is-success { color: #166a42; }

.contact-form__honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

@media (max-width: 1120px) {
  .contact-modal__panel {
    max-height: 94vh;
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .contact-team,
  .contact-form-panel {
    overflow: visible;
  }

  .contact-team__title {
    max-width: none;
  }

  .team-card {
    min-height: 470px;
  }
}

@media (max-width: 700px) {
  .contact-modal {
    align-items: start;
    padding: 10px;
  }

  .contact-modal__panel {
    width: 100%;
    max-height: calc(100dvh - 20px);
    border-radius: 20px;
  }

  .contact-modal__close {
    position: sticky;
    float: right;
    top: 12px;
    margin: 12px 12px -54px 0;
  }

  .contact-team {
    padding: 62px 16px 24px;
  }

  .contact-team__intro {
    display: block;
  }

  .contact-team__hint {
    margin-top: 12px;
    text-align: left;
  }

  .team-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .team-card {
    min-height: 0;
    border-radius: 16px;
  }

  .contact-form-panel {
    padding: 54px 18px 28px;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .contact-form__field,
  .contact-form__field--full,
  .contact-form__submit,
  .contact-form__status {
    grid-column: 1;
  }
}

@media (hover: none) {
  .team-card:hover .team-card__front {
    opacity: 1;
    transform: none;
  }

  .team-card:hover .team-card__bio {
    opacity: 0;
    visibility: hidden;
    transform: translateY(18px);
  }

  .team-card.is-bio-open .team-card__front {
    opacity: 0;
    transform: scale(0.985);
  }

  .team-card.is-bio-open .team-card__bio {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-modal,
  .contact-modal__panel,
  .team-card,
  .team-card__front,
  .team-card__bio,
  .contact-form__submit {
    transition: none;
  }
}

.team-card--sorah .team-card__front {
  background-image:
    linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.9)),
    url("../img/sorah.webp");
  background-size: cover;
  background-position: center;
}
.team-card--yossi .team-card__front {
  background-image:
    linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.9)),
    url("../img/yossi.webp");
  background-size: cover;
  background-position: center;
}



/* ========================================================================== 
   CONTACT MODAL — COMPACT DESKTOP LAYOUT + ORIGINAL PORTRAIT CARD RATIO
   Load this file AFTER contact-modal.css.
   ========================================================================== */

@media (min-width: 1121px) {
  .contact-modal {
    padding: clamp(12px, 1.8vw, 28px);
  }

  .contact-modal__panel {
    width: min(96vw, 1380px);
    height: min(92dvh, 760px);
    max-height: calc(100dvh - 24px);
    grid-template-columns: minmax(0, 1fr) clamp(340px, 28vw, 410px);
  }

  .contact-team {
    display: flex;
    flex-direction: column;
    padding: clamp(34px, 3vw, 48px) clamp(24px, 2.4vw, 38px) clamp(22px, 2vw, 30px);
    overflow: hidden;
  }

  .contact-team__intro {
    flex: 0 0 auto;
    margin-bottom: clamp(14px, 1.4vw, 22px);
  }

  .contact-team__title {
    font-size: clamp(27px, 2vw, 36px);
  }

  .team-cards {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: clamp(14px, 1.25vw, 20px);
  }

  .team-card {
    flex: 0 0 auto;
    width: auto;
    height: 100%;
    max-width: calc((100% - clamp(14px, 1.25vw, 20px)) / 2);
    min-height: 0;
    aspect-ratio: 1200 / 1900;
    border-radius: 20px;
  }

  .team-card__front {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(20px, 1.8vw, 28px);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center top;
  }

  .team-card--yossi .team-card__front {
    background-image:
      linear-gradient(180deg, rgba(0, 0, 0, 0.00) 34%, rgba(0, 0, 0, 0.18) 58%, rgba(0, 0, 0, 0.88) 100%),
      url("../img/yossi.webp");
  }

  .team-card--sorah .team-card__front {
    background-image:
      linear-gradient(180deg, rgba(0, 0, 0, 0.00) 34%, rgba(0, 0, 0, 0.18) 58%, rgba(0, 0, 0, 0.88) 100%),
      url("../img/sorah.webp");
  }

  .team-card__monogram {
    display: none;
  }

  .team-card__name {
    position: relative;
    z-index: 2;
    margin: 0 0 11px;
    color: #ffffff;
    font-size: clamp(30px, 2.5vw, 42px);
    line-height: 0.95;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.34);
  }

  .team-card__roles {
    position: relative;
    z-index: 2;
    gap: 6px;
  }

  .team-card__roles li {
    padding: 5px 8px;
    border-color: rgba(255, 255, 255, 0.56);
    color: #ffffff;
    font-size: 9px;
    background: rgba(0, 0, 0, 0.10);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
  }

  .team-card__action {
    display: none;
  }

  .team-card__bio {
    padding: clamp(22px, 1.8vw, 28px);
  }

  .team-card__bio-name {
    font-size: clamp(27px, 2vw, 34px);
  }

  .team-card__bio p {
    font-size: clamp(10.5px, 0.69vw, 12px);
    line-height: 1.46;
  }

  .contact-form-panel {
    height: 100%;
    padding: clamp(34px, 3vw, 48px) clamp(24px, 2.5vw, 34px) 24px;
    overflow-y: auto;
  }

  .contact-form-panel__eyebrow {
    margin-bottom: 10px;
    padding: 5px 9px;
    font-size: 9px;
  }

  .contact-form-panel__title {
    margin-bottom: 9px;
    font-size: clamp(30px, 2.8vw, 43px);
    line-height: 0.98;
  }

  .contact-form-panel__intro {
    margin-bottom: 18px;
    font-size: 12px;
    line-height: 1.45;
  }

  .contact-form {
    gap: 10px 12px;
  }

  .contact-form__field {
    gap: 5px;
  }

  .contact-form__field span {
    font-size: 9px;
  }

  .contact-form input {
    height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 13px;
  }

  .contact-form textarea {
    min-height: 82px;
    height: 82px;
    padding: 11px 12px;
    border-radius: 10px;
    font-size: 13px;
    resize: none;
  }

  .contact-form__submit {
    min-height: 40px;
    font-size: 11px;
  }

  .contact-form__status {
    min-height: 14px;
    font-size: 11px;
  }
}

@media (min-width: 1121px) and (max-height: 720px) {
  .contact-modal__panel {
    height: calc(100dvh - 20px);
    max-height: calc(100dvh - 20px);
  }

  .contact-team {
    padding-top: 28px;
    padding-bottom: 18px;
  }

  .contact-team__intro {
    margin-bottom: 12px;
  }

  .contact-team__eyebrow {
    margin-bottom: 5px;
  }

  .contact-team__title {
    font-size: 28px;
  }

  .contact-team__hint {
    font-size: 10px;
  }

  .contact-form-panel {
    padding-top: 24px;
    padding-bottom: 18px;
  }

  .contact-form-panel__eyebrow {
    margin-bottom: 7px;
  }

  .contact-form-panel__title {
    font-size: 34px;
  }

  .contact-form-panel__intro {
    margin-bottom: 12px;
  }

  .contact-form {
    gap: 8px 10px;
  }

  .contact-form input {
    height: 35px;
  }

  .contact-form textarea {
    min-height: 68px;
    height: 68px;
  }

  .contact-form__submit {
    min-height: 36px;
  }
}

@media (max-width: 1120px) {
  .team-card__monogram {
    display: none;
  }

  .team-card {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 1200 / 1900;
  }

  .team-card__front {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center top;
  }

  .team-card--yossi .team-card__front {
    background-image:
      linear-gradient(180deg, rgba(0, 0, 0, 0.00) 34%, rgba(0, 0, 0, 0.18) 58%, rgba(0, 0, 0, 0.88) 100%),
      url("../img/yossi.webp");
  }

  .team-card--sorah .team-card__front {
    background-image:
      linear-gradient(180deg, rgba(0, 0, 0, 0.00) 34%, rgba(0, 0, 0, 0.18) 58%, rgba(0, 0, 0, 0.88) 100%),
      url("../img/sorah.webp");
  }

  .team-card__name,
  .team-card__roles {
    position: relative;
    z-index: 2;
  }
}

/* ========================================================================== 
   FINAL CARD TEXT + PORTRAIT OVERRIDES
   - keep original portrait visible with no gradient/opacity treatment
   - stack role text vertically over the portrait
   - Yossi text uses Adtrak blue
   ========================================================================== */

.team-card__front {
  background-color: transparent !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-position: center top !important;
}

.team-card--yossi .team-card__front {
  background-image: url("../img/yossi.webp") !important;
}

.team-card--sorah .team-card__front {
  background-image: url("../img/sorah.webp") !important;
}

.team-card__name {
  margin: 0 0 10px !important;
  text-shadow: none !important;
}

.team-card__roles {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: flex-start !important;
  gap: 3px !important;
}

.team-card__roles li {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  line-height: 1.35 !important;
  text-shadow: none !important;
  font-weight: 600 !important;
}

.team-card--yossi .team-card__name,
.team-card--yossi .team-card__roles li {
  color: #1865ba !important;
}

.team-card--sorah .team-card__name,
.team-card--sorah .team-card__roles li {
  color: #ffffff !important;
}


/* ========================================================================== 
   FINAL CONTACT MODAL LAYOUT REFINEMENTS
   ========================================================================== */

:root {
  --contact-light-gray: #f1f2f4;
}

/* Replace the black team-side background with a clean light gray. */
.contact-modal__panel {
  background: var(--contact-light-gray);
}

.contact-team {
  background: var(--contact-light-gray) !important;
  color: #111111;
}

.contact-team__intro {
  display: block;
  align-items: initial;
  justify-content: initial;
  max-width: 760px;
}

.contact-team__title {
  max-width: none;
  color: var(--contact-blue);
  font-weight: 500;
}

.contact-team__lead,
.contact-team__response {
  margin: 0;
  max-width: 58ch;
  color: #202020;
  font-size: clamp(12px, 0.82vw, 14px);
  line-height: 1.5;
}

.contact-team__lead {
  margin-top: 9px;
  font-weight: 600;
}

.contact-team__response {
  margin-top: 7px;
}

/* Role labels remain stacked, but use normal capitalization. */
.team-card__roles li {
  text-transform: none !important;
  letter-spacing: 0 !important;
}

/* Preserve the intended bold emphasis inside the hover biographies. */
.team-card__bio strong {
  color: inherit;
  font-weight: 700;
}

@media (min-width: 1121px) {
  .contact-team__intro {
    margin-bottom: clamp(14px, 1.2vw, 19px);
  }

  /* Align the portrait cards to the left and reduce their overall size. */
  .team-cards {
    justify-content: flex-start !important;
    align-items: flex-end !important;
  }

  .team-card {
    height: clamp(390px, 58vh, 500px) !important;
    max-height: 100%;
  }

  /* Make the form a full-height column so its submit button sits at the bottom. */
  .contact-form-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .contact-form {
    flex: 1 1 auto;
    min-height: 0;
    grid-template-rows: auto auto auto minmax(68px, 1fr) auto auto;
    align-content: stretch;
  }


  .contact-form textarea {
    height: 100%;
    min-height: 68px;
  }

  .contact-form__status {
    align-self: end;
  }

  .contact-form__submit {
    align-self: end;
    width: 100%;
  }
}

@media (min-width: 1121px) and (max-height: 720px) {
  .team-card {
    height: clamp(340px, 54vh, 430px) !important;
  }

  .contact-team__lead,
  .contact-team__response {
    font-size: 11px;
    line-height: 1.35;
  }
}

@media (max-width: 1120px) {
  .contact-team__intro {
    margin-bottom: 18px;
  }

  .contact-team__lead,
  .contact-team__response {
    max-width: none;
  }
}

/* ========================================================================== 
   CONTACT COPY + CARD SPACING TWEAK
   ========================================================================== */

/* The replacement form heading is a sentence, so keep it compact and readable. */
.contact-form-panel__title {
  max-width: 34ch;
  margin-bottom: clamp(18px, 1.8vw, 26px);
  font-size: clamp(20px, 1.55vw, 27px);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.025em;
}

/* Bring the portraits closer to the end of the intro copy. */
@media (min-width: 1121px) {
  .contact-team__intro {
    margin-bottom: 6px;
  }
}

@media (max-width: 1120px) {
  .contact-team__intro {
    margin-bottom: 10px;
  }
}

/* ========================================================================== 
   BOSS REVISION — EQUAL COLUMNS + LEADERSHIP/COPY PLACEMENT
   ========================================================================== */

/* Only the Leadership label remains above the portrait cards. */
.contact-team__intro {
  max-width: none;
}

.contact-team__eyebrow {
  margin-bottom: 0;
  color: var(--contact-blue);
}

/* Copy above the form. */
.contact-form-panel__title {
  max-width: 18ch;
  margin: 0 0 8px;
  color: var(--contact-blue);
  font-size: clamp(28px, 2.35vw, 40px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.contact-form-panel__lead,
.contact-form-panel__intro {
  max-width: 48ch;
  color: #202020;
  font-size: clamp(12px, 0.82vw, 14px);
  line-height: 1.45;
}

.contact-form-panel__lead {
  margin: 0 0 7px;
  font-weight: 600;
}

.contact-form-panel__intro {
  margin: 0 0 clamp(18px, 1.7vw, 24px);
}

/* Names slightly bolder; role lines slightly larger. */
.team-card__name {
  font-weight: 500 !important;
}

.team-card__roles li {
  font-size: clamp(10px, 0.72vw, 12px) !important;
}

@media (min-width: 1121px) {
  /* Equal left/right modal columns. */
  .contact-modal__panel {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .contact-team,
  .contact-form-panel {
    padding-left: clamp(28px, 2.6vw, 40px);
    padding-right: clamp(28px, 2.6vw, 40px);
    padding-bottom: 24px;
  }

  .contact-team__intro {
    flex: 0 0 auto;
    margin-bottom: 10px;
  }

  /* Keep the portrait group smaller and anchored to the left. */
  .team-cards {
    flex: 1 1 auto;
    min-height: 0;
    justify-content: flex-start !important;
    align-items: flex-end !important;
  }

  .team-card {
    height: clamp(360px, 58vh, 460px) !important;
    max-width: calc((100% - clamp(14px, 1.25vw, 20px)) / 2);
  }

  /* Keep the submit button at the bottom, matching the card baseline. */
  .contact-form-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .contact-form {
    flex: 1 1 auto;
    min-height: 0;
    grid-template-rows: auto auto auto minmax(68px, 1fr) auto auto;
    align-content: stretch;
  }

  .contact-form textarea {
    height: 100%;
    min-height: 68px;
  }
}

@media (min-width: 1121px) and (max-height: 720px) {
  .team-card {
    height: clamp(340px, 57vh, 410px) !important;
  }

  .contact-form-panel__title {
    font-size: clamp(24px, 2.05vw, 32px);
  }

  .contact-form-panel__lead,
  .contact-form-panel__intro {
    font-size: 11px;
    line-height: 1.35;
  }

  .contact-form-panel__intro {
    margin-bottom: 12px;
  }
}

@media (max-width: 1120px) {
  .contact-form-panel__title {
    max-width: 20ch;
  }
}

/* ========================================================================== 
   FORM COPY — SINGLE-LINE DESKTOP LAYOUT
   ========================================================================== */
@media (min-width: 1121px) {
  .contact-form-panel__title,
  .contact-form-panel__lead,
  .contact-form-panel__intro {
    max-width: none;
    white-space: nowrap;
  }

  .contact-form-panel__intro {
    font-size: clamp(10px, 0.7vw, 12px);
    line-height: 1.35;
  }
}

/* ========================================================================== 
   FINAL TYPOGRAPHY + HEADER ALIGNMENT
   ========================================================================== */

/* Use Montserrat throughout the complete contact modal. */
.contact-modal,
.contact-modal * {
  font-family: "Montserrat", Arial, sans-serif;
}

/* Restore the form eyebrow pill and align it with Leadership. */
.contact-form-panel__eyebrow {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 24px;
  margin: 0 0 14px;
  padding: 5px 10px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.contact-team__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin: 0;
  line-height: 1;
}

/* Keep the title in title case with the requested letter spacing. */
.contact-form-panel__title {
  text-transform: none !important;
  letter-spacing: 0.0001em !important;
}

/* Match the original card typography and preserve breathing room. */
.team-card__front {
  padding: 0 clamp(20px, 1.8vw, 26px) clamp(14px, 1.3vw, 20px) !important;
}

.team-card__name {
  margin: 0 0 7px !important;
  font-size: clamp(27px, 1.85vw, 32px) !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  letter-spacing: -0.035em !important;
}

.team-card__roles {
  gap: 2px !important;
}

.team-card__roles li {
  font-size: clamp(11px, 0.78vw, 13px) !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
}

@media (min-width: 1121px) {
  /* Equal top padding places both eyebrow labels on the same horizontal line. */
  .contact-team,
  .contact-form-panel {
    padding-top: clamp(34px, 3vw, 46px);
  }

  .contact-team__intro {
    min-height: 24px;
  }
}

@media (max-width: 1120px) {
  .contact-form-panel__eyebrow {
    margin-bottom: 12px;
  }
}

/* ==========================================================================
   MOBILE CARD TYPOGRAPHY — 540PX AND BELOW
   Keep the full name/role block compact and inside the card artwork.
   ========================================================================== */
@media (max-width: 540px) {
  .team-card__front {
    padding: 0 4vw 5vw !important;
  }

  .team-card__name {
    margin: 0 0 2vw !important;
    font-size: 5.6vw !important;
    line-height: 0.92 !important;
    letter-spacing: -0.12vw !important;
  }

  .team-card__roles {
    gap: 0 !important;
    max-width: 100% !important;
  }

  .team-card__roles li {
    font-size: 2.5vw !important;
    line-height: 1 !important;
    letter-spacing: -0.025vw !important;
    white-space: nowrap !important;
  }

  .team-card__action {
    margin-top: 3vw !important;
    font-size: 1.7vw !important;
    gap: 1.2vw !important;
    letter-spacing: 0.12vw !important;
  }

  .team-card__action::after {
    font-size: 2.1vw !important;
  }
}

/* Mobile card placement: fixed bottom spacing across phone widths. */
@media (max-width: 540px) {
  .team-card__front {
    padding-bottom: 8px !important;
  }

  .team-card__action {
    display: none !important;
  }
  
    .demo-contact {
      color: #0265de !important;
      font-size: 18px;
      text-decoration: none;
      font-weight: 500 !important;
    }  

  .contact-team {
    padding: 62px 10px 24px;
  }
  
}

@media (max-width: 375px) {
  .team-card__name {
    font-size: 4.5vw !important;
  }    
}





/* ==========================================================================
   ADTRAK FLOATING WHATSAPP PLACEHOLDER
   Replace assets/img/whatsapp-placeholder.svg with the final logo when ready.
   ========================================================================== */

.adtrak-whatsapp-float {
  position: fixed;
  right: clamp(14px, 1.35vw, 26px);
  bottom: clamp(14px, 1.35vw, 26px);
  z-index: 99990;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: #0265de;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 180ms ease, opacity 180ms ease;
}

.adtrak-whatsapp-float img {
  display: block;
  width: clamp(34px, 2.6vw, 46px);
  height: clamp(34px, 2.6vw, 46px);
  border-radius: 999px;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(7, 19, 36, 0.18));
}

.adtrak-whatsapp-float:hover,
.adtrak-whatsapp-float:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

@media (max-width: 640px) {
  .adtrak-whatsapp-float {
    right: 12px;
    bottom: 12px;
    font-size: 8px;
  }

  .adtrak-whatsapp-float img {
    width: 34px;
    height: 34px;
  }
}
