#about { position: relative; isolation: isolate; padding-top: 0; overflow: clip; }
#about .about-grid > :first-child { position: relative; z-index: 1; padding-top: 96px; }
.portrait-lanyard {
  --band: clamp(155px, 18vw, 235px);
  align-self: start;
  width: min(100%, 390px);
  justify-self: center;
  padding: 0 0 24px;
  perspective: 1000px;
}
.lanyard-rig {
  width: 97%;
  margin: auto;
  transform-origin: 50% 0;
  transform: rotate(var(--angle, -3deg));
}
.lanyard-band {
  display: block;
  width: 80px;
  height: var(--band);
  margin: auto;
  background: url('assets/lanyard-band.svg') center / 100% 100% no-repeat;
  transform: scaleY(var(--stretch, 1));
  transform-origin: top;
}
.lanyard-badge {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  position: relative;
  perspective: 900px;
  cursor: grab;
  user-select: none;
  touch-action: pan-y pinch-zoom;
  transform: translateY(var(--pull, 0px));
}
.lanyard-badge:active { cursor: grabbing; }
.lanyard-badge::before {
  content: '';
  position: absolute;
  z-index: 2;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 21px;
  border: 3px solid #8d99a5;
  background: linear-gradient(105deg, #536275, #eef2f5 38%, #8493a0 65%, #d3d9dd);
  border-radius: 5px;
}
.badge-faces { display: grid; transform-style: preserve-3d; }
.lanyard-badge[aria-pressed="true"] .badge-faces { transform: rotateY(180deg); }
.badge-front, .badge-back {
  grid-area: 1 / 1;
  backface-visibility: hidden;
  padding: 15px 7px 7px;
  background: #fff;
  border: 1px solid #c5cdda;
  border-radius: 12px;
  box-shadow: 0 12px 24px #1029511a;
}
.badge-front { display: grid; grid-template-rows: 77% 1fr; aspect-ratio: 3 / 4; padding: 0; overflow: hidden; border: 0; }
.badge-caption { color: #fff; background: linear-gradient(to right, #102951, #24528a); display: grid; align-content: center; gap: 4px; padding-inline: 8%; text-align: left; }
.badge-role { font-size: clamp(14px, 1.5vw, 18px); font-weight: 500; line-height: 1.25; }
.badge-name { font: bold clamp(21px, 2.5vw, 32px)/1.2 Georgia, serif; }
.about-grid .badge-front img { display: block; margin: 0; width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: center; border-radius: 0; box-shadow: none; }
.badge-back { transform: rotateY(180deg); position: relative; padding: 0; overflow: hidden; background: #102951; }
.about-grid .badge-back img { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; object-fit: contain; box-shadow: none; }
@media (prefers-reduced-motion: no-preference) {
  .badge-faces { transition: transform 550ms ease-in-out; }
}
@media (max-width: 650px) {
  #about .about-grid > :first-child { padding-top: 24px; }
  .portrait-lanyard { grid-row: 1; width: min(90%, 390px); --band: 100px; }
}

.portrait-lanyard { position: relative; }
.lanyard-scene { position: absolute; inset: 0; }
.lanyard-canvas { display: block; width: 100%; height: 100%; }
.lanyard-canvas:focus-visible { outline: 2px solid #365c91; outline-offset: -3px; }
.portrait-lanyard.is-3d .lanyard-rig { visibility: hidden; }
