/* Shared family-profile interlude; flush with the surrounding page content. */
.family-profiles{margin:40px 0 55px;padding:40px 0 28px;background:transparent;isolation:isolate}
.family-profiles-copy{display:grid;grid-template-columns:1fr 1fr;align-items:start;gap:8px 56px}
.family-profiles-copy h2{grid-column:1;font-size:clamp(36px,4.5vw,54px);line-height:1.12;letter-spacing:-.04em;margin:0}
.family-profiles-copy p{grid-column:2;max-width:430px;font-size:18px;line-height:1.65;color:#625f58;margin:5px 0 0}
.family-profiles-people{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:15px;list-style:none;margin:64px 0 0;padding:0!important}
.family-profiles-people li{list-style:none;text-align:center;min-width:0;padding:0;perspective:650px;transform:translateY(var(--profile-offset));margin:0}
.family-profile-avatar{width:100%;aspect-ratio:1;max-width:116px;margin:auto;border-radius:50%;background:var(--profile-color);display:grid;place-items:center;transform:translateY(var(--profile-rise,0px)) rotate(var(--profile-turn,var(--profile-tilt))) rotateX(var(--profile-flip-x,0deg)) rotateY(var(--profile-flip-y,0deg));transform-origin:50% 55%}
.family-profile-avatar span{font-family:"Apple Color Emoji","Segoe UI Emoji",sans-serif;font-size:clamp(28px,4.4vw,56px);line-height:1;display:block}
@media(max-width:700px){
 .family-profiles{margin:20px 0 30px;padding:24px 0 20px}
 .family-profiles-copy{display:block}
 .family-profiles-copy h2{letter-spacing:-1.4px;margin-bottom:18px}
 .family-profiles-copy h2 br{display:none}
 .family-profiles-copy p{font-size:16px;margin:0;max-width:400px}
 .family-profiles-people{grid-template-columns:repeat(4,minmax(0,1fr));gap:20px 18px;margin:38px 0 0;padding:0 3px!important}
 .family-profiles-people li{--profile-offset:0px!important}
 .family-profiles-people li:nth-child(2n){transform:translateY(-7px)}
 .family-profiles-people li:nth-child(n+5){transform:translateX(7px)}
 .family-profile-avatar{max-width:76px}
 .family-profile-avatar span{font-size:clamp(30px,8vw,44px)}
}
@media(prefers-reduced-motion:reduce){.family-profile-avatar{transform:rotate(var(--profile-tilt))!important}}
/* Time-based entrances always settle into a readable, face-on resting position. */
.family-profile-avatar.profile-enter{animation:profile-pop 850ms cubic-bezier(.22,.8,.25,1) var(--profile-delay,0ms) both}
.family-profile-avatar.profile-enter[data-entrance="spin"]{animation-name:profile-spin}
.family-profile-avatar.profile-enter[data-entrance="flip"]{animation-name:profile-flip}
@keyframes profile-pop{
  0%{transform:translateY(20px) rotate(var(--profile-tilt)) scale(.8)}
  45%{transform:translateY(-16px) rotate(calc(var(--profile-tilt) - 10deg)) scale(1.08)}
  72%{transform:translateY(4px) rotate(calc(var(--profile-tilt) + 4deg)) scale(.98)}
  100%{transform:rotate(var(--profile-tilt))}
}
@keyframes profile-spin{
  0%{transform:translateY(18px) rotate(calc(var(--profile-tilt) - 360deg)) scale(.82)}
  65%{transform:translateY(-14px) rotate(calc(var(--profile-tilt) + 12deg)) scale(1.06)}
  100%{transform:rotate(var(--profile-tilt))}
}
@keyframes profile-flip{
  0%{transform:translateY(16px) rotate(var(--profile-tilt)) rotateY(-360deg) scale(.85)}
  65%{transform:translateY(-14px) rotate(var(--profile-tilt)) rotateY(12deg) scale(1.06)}
  100%{transform:rotate(var(--profile-tilt)) rotateY(0deg)}
}
@media(prefers-reduced-motion:reduce){.family-profile-avatar.profile-enter{animation:none!important}}
