.ptf {
  --teamy-light: #ffffff;
  --teamy-left: #5c4099;
  --teamy-right: #1897a7;
  --teamy-accent: #ffffff;
  --teamy-soft: rgba(255,255,255,.55);
  display: grid;
  grid-template-columns: minmax(520px, 1.15fr) minmax(360px, .85fr);
  min-height: 720px;
  overflow: hidden;
  background: var(--teamy-left);
  color: var(--teamy-light);
  font-family: var(--body_typography-font-family, inherit);
  font-weight: var(--body_typography-font-weight, inherit);
  letter-spacing: var(--body_typography-letter-spacing, normal);
}
.ptf * { box-sizing: border-box; }
.ptf-field { position: relative; min-height: 720px; background: var(--teamy-left); }
.ptf-centre {
  position: absolute;
  z-index: 2;
  width: 178px;
  height: 178px;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 13px;
  border: 1px solid var(--teamy-soft);
  border-radius: 50%;
  background: transparent;
  color: var(--teamy-light);
  font-family: var(--h3_typography-font-family, inherit);
  font-weight: var(--h3_typography-font-weight, inherit);
  font-size: 25px;
}
.ptf-centre img { width: 126px; height: 126px; object-fit: contain; }
.ptf-node {
  position: absolute;
  z-index: 3;
  width: 86px;
  height: 86px;
  padding: 4px;
  transform: translate(-50%, -50%);
  border: 3px solid var(--teamy-soft);
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  cursor: pointer;
  transition: transform .25s, border-color .25s, box-shadow .25s;
  animation: teamy-wander var(--teamy-duration, 32s) ease-in-out var(--teamy-delay, 0s) infinite alternate;
}
.ptf-node:nth-of-type(2n) { animation-delay: -1.7s; }
.ptf-node:nth-of-type(3n) { animation-delay: -3.2s; }
.ptf-node:hover,
.ptf-node:focus-visible,
.ptf-node.is-active {
  transform: translate(-50%, -50%) scale(1.1);
  border-color: var(--teamy-accent);
  box-shadow: 0 8px 22px #0002;
  outline: none;
}
.ptf-node img,
.ptf-initials {
  display: flex;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(1);
}
.ptf-initials { align-items: center; justify-content: center; background: rgba(255,255,255,.2); color: var(--teamy-light); font-weight: 700; font-size: 20px; }
.ptf-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 0 clamp(45px, 5vw, 90px);
  background: var(--teamy-right);
  color: var(--teamy-light);
}
.ptf-default { animation: teamy-in .25s ease both; }
.ptf.has-profile .ptf-default { visibility: hidden; }
.ptf-eyebrow,
.ptf-role { margin: 0 0 25px; color: var(--teamy-light); font-size: 15px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; }
.ptf-copy h2 {
  margin: 0 0 24px;
  color: var(--teamy-light);
  font-family: var(--h2_typography-font-family, inherit);
  font-weight: var(--h2_typography-font-weight, inherit);
  font-style: var(--h2_typography-font-style, normal);
  font-size: clamp(37px, 3vw, 54px);
  line-height: var(--h2_typography-line-height, 1.12);
  letter-spacing: var(--h2_typography-letter-spacing, normal);
  text-transform: var(--h2_typography-text-transform, none);
}
.ptf-copy h2 em { color: var(--teamy-light); font-style: normal; }
.ptf-intro { margin: 0 0 29px; color: var(--teamy-light); opacity: .78; font-size: 20px; line-height: 1.55; }
.ptf-instruction { display: flex; align-items: center; gap: 12px; color: var(--teamy-light); opacity: .62; font-size: 16px; }
.ptf-instruction span { width: 11px; height: 11px; flex: none; border-radius: 50%; background: var(--teamy-accent); }
.ptf-profile {
  position: absolute;
  inset: 0;
  z-index: 5;
  padding: 0 clamp(45px, 5vw, 90px);
  overflow: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--teamy-right);
  color: var(--teamy-light);
  animation: teamy-in .25s ease both;
}
.ptf-profile[hidden] { display: none; }
.ptf-profile h3 {
  margin: 0 0 18px;
  color: var(--teamy-light);
  font-family: var(--h3_typography-font-family, var(--h2_typography-font-family, inherit));
  font-weight: var(--h3_typography-font-weight, inherit);
  font-size: 35px;
  line-height: var(--h3_typography-line-height, 1.15);
  letter-spacing: var(--h3_typography-letter-spacing, normal);
}
.ptf-profile .ptf-role { margin-bottom: 12px; }
.ptf-bio { color: var(--teamy-light); opacity: .82; font-size: 16px; line-height: 1.65; }
.ptf-link { display: inline-block; margin-top: 12px; color: var(--teamy-light); font-weight: 700; text-decoration: underline; }
.ptf-close { position: absolute; top: 22px; right: 28px; border: 0; background: none; color: var(--teamy-light); font-size: 30px; cursor: pointer; }
.ptf-mobile { display: none; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@keyframes teamy-wander {
  0% { margin-left: 0; margin-top: 0; }
  22% { margin-left: var(--teamy-x1); margin-top: var(--teamy-y1); }
  48% { margin-left: var(--teamy-x2); margin-top: var(--teamy-y2); }
  73% { margin-left: var(--teamy-x2); margin-top: var(--teamy-y1); }
  100% { margin-left: var(--teamy-x1); margin-top: var(--teamy-y2); }
}
@keyframes teamy-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 1000px) {
  .ptf { grid-template-columns: minmax(480px, 1fr) minmax(320px, .75fr); min-height: 650px; }
  .ptf-field { min-height: 650px; }
  .ptf-copy, .ptf-profile { padding-left: 45px; padding-right: 45px; }
  .ptf-node { width: 72px; height: 72px; }
  .ptf-centre { width: 150px; height: 150px; }
}
@media (max-width: 767px) {
  .ptf { display: flex; flex-direction: column; min-height: 0; }
  .ptf-copy { order: 1; min-height: 390px; padding: 55px 25px 35px; }
  .ptf-copy h2 { font-size: 38px; }
  .ptf-intro { font-size: 18px; }
  .ptf-field { display: none; }
  .ptf-profile { padding: 55px 25px 35px; }
  .ptf-instruction { font-size: 14px; }
  .ptf-mobile { order: 2; display: block; padding: 0 22px 30px; background: var(--teamy-left); color: var(--teamy-light); }
  .ptf-accordion-item { border-top: 1px solid rgba(255,255,255,.28); }
  .ptf-accordion-item:last-child { border-bottom: 1px solid rgba(255,255,255,.28); }
  .ptf-accordion-button { display: grid; grid-template-columns: 82px minmax(0,1fr) 30px; align-items: center; gap: 20px; width: 100%; min-height: 142px; padding: 18px 0; border: 0; background: transparent; color: var(--teamy-light); text-align: left; cursor: pointer; }
  .ptf-accordion-photo { display: block; width: 82px; height: 82px; padding: 3px; border: 2px solid rgba(255,255,255,.55); border-radius: 50%; }
  .ptf-accordion-photo img,.ptf-accordion-photo .ptf-initials { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; filter: grayscale(1); }
  .ptf-accordion-heading { display: flex; flex-direction: column; min-width: 0; gap: 10px; }
  .ptf-accordion-heading strong { color: var(--teamy-light); font-family: var(--h3_typography-font-family,var(--h2_typography-font-family,inherit)); font-size: clamp(22px,6vw,30px); font-weight: var(--h3_typography-font-weight,inherit); line-height: 1.15; }
  .ptf-accordion-heading small { color: var(--teamy-light); font-size: 12px; font-weight: 700; line-height: 1.45; letter-spacing: .14em; text-transform: uppercase; }
  .ptf-accordion-icon { color: var(--teamy-light); font-size: 30px; font-weight: 300; line-height: 1; text-align: right; transition: transform .25s; }
  .ptf-accordion-button[aria-expanded="true"] .ptf-accordion-icon { transform: rotate(45deg); }
  .ptf-accordion-panel { padding: 0 0 30px 102px; animation: teamy-in .25s ease both; }
  .ptf-accordion-panel[hidden] { display: none; }
  .ptf-accordion-panel .ptf-bio { color: var(--teamy-light); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .ptf-node, .ptf-profile, .ptf-default { animation: none; } }
