/* Team page on phones: one profile at a time, swipe or tap a dot (30 Oct). */
.tp-dots { display: none; }
@media (max-width: 760px) {
  main.tp { grid-template-columns: minmax(0, 1fr); } /* let the strip scroll instead of widening the page */
  .tp-team { min-width: 0; }
  .tp-people {
    display: flex !important;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1);
    padding: 4px var(--gutter) 8px;
    scroll-padding-inline: var(--gutter);
    align-items: flex-start;
  }
  .tp-people::-webkit-scrollbar { display: none; }
  .tp-people > .tp-person { flex: 0 0 100%; scroll-snap-align: center; margin: 0 !important; align-content: start; }
  .tp-dots { display: flex; justify-content: center; gap: 4px; margin-top: 14px; }
  .tp-dots button {
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
  }
  .tp-dots button::before {
    content: "";
    display: block;
    width: 10px;
    height: 10px;
    margin: auto;
    border-radius: 50%;
    background: rgba(14, 74, 58, 0.25);
    transition: width 0.25s ease, background-color 0.25s ease;
  }
  .tp-dots button[aria-current="true"]::before { width: 24px; border-radius: 999px; background: var(--forest); }
}

/* Desktop: two columns (founders | advisory board); each shows one card at a time and turns by itself (30 Oct). */
.tp-split { display: none; }
@media (min-width: 761px) {
  .tp-split.is-on { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
  .tp-split.is-on + .tp-people, .tp-people.is-split { display: none !important; }
  .tp-split-col h3.tp-split-title { margin: 0 0 12px; font: 800 15px / 1.2 var(--body); letter-spacing: 0.06em; text-transform: uppercase; color: rgba(14, 74, 58, 0.7); }
  .tp-split-stage { position: relative; cursor: pointer; }
  /* only the shown card takes space, so the box fits that person; the hidden ones sit on top of it */
  .tp-split-stage > .tp-person { position: absolute; inset: 0 0 auto; margin: 0 !important; max-width: none !important; opacity: 0; visibility: hidden; transform: translateX(24px); transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), visibility 0s linear 0.5s; }
  .tp-split-stage > .tp-person.is-on { position: relative; opacity: 1; visibility: visible; transform: none; transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), visibility 0s; }
  .tp-split-bar { display: flex; align-items: center; gap: 4px; margin-top: 12px; }
  .tp-split-bar button { width: 30px; height: 30px; padding: 0; border: 0; background: none; cursor: pointer; }
  .tp-split-bar button::before { content: ""; display: block; width: 10px; height: 10px; margin: auto; border-radius: 50%; background: rgba(14, 74, 58, 0.25); transition: width 0.25s ease, background-color 0.25s ease; }
  .tp-split-bar button[aria-current="true"]::before { width: 24px; border-radius: 999px; background: var(--forest); }
  .tp-split-bar .tp-split-state { margin-left: auto; font-size: 13px; color: rgba(14, 74, 58, 0.6); }
}
@media (prefers-reduced-motion: reduce) { .tp-split-stage > .tp-person { transition: none !important; transform: none !important; } }
