
.team{--team-spring:cubic-bezier(.34,1.56,.64,1)}
.team h2{text-wrap:balance}
.team .team-intro{max-width:640px;margin:26px auto 0;text-wrap:balance}
.team .team-list{margin-top:56px;align-items:stretch}
.team .team-list>article{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;text-align:center;padding:24px 18px 28px}
.team .team-list>article:nth-child(1){--tc:var(--nuvora-peach)}
.team .team-list>article:nth-child(2){--tc:var(--nuvora-lilac)}
.team .team-list>article:nth-child(3){--tc:var(--nuvora-lavender)}
.team .team-list>article:nth-child(4){--tc:var(--nuvora-mint)}
.team .team-list>article:nth-child(5){--tc:var(--nuvora-pale-yellow)}

/* Card content: one consistent rhythm so every card lines up. */
.team .team-list h3{margin:20px 0 8px}
.team .team-list .team-role{margin:0 0 16px;font:600 10px/1.3 var(--font-body);letter-spacing:.14em;text-transform:uppercase;color:var(--ink);opacity:.72}
.team .team-list .team-line{margin:0;max-width:22ch;font:400 clamp(13px,1.05vw,15px)/1.5 var(--font-body);letter-spacing:0;color:var(--ink);text-wrap:balance}
.team .nb{white-space:nowrap}
.team .team-list .portrait{align-self:center;width:min(100%,180px);height:auto;aspect-ratio:1}
.team .team-list .portrait.portrait-photo{padding:0;overflow:hidden;border:2px solid var(--ink)}
.team .portrait-photo::before,.team .portrait-photo::after{display:none}
.team .portrait-photo img{width:100%;height:100%;object-fit:cover;display:block}

/* "Maybe you?" hiring card. */
.team .team-open-mark{align-self:center;display:grid;place-items:center;width:min(100%,180px);aspect-ratio:1;border:2px dashed var(--ink);border-radius:50%;font:500 clamp(72px,6vw,96px)/1 var(--font-display);color:var(--ink)}
.team .team-open .team-line{margin-bottom:22px}
.team .team-cta{margin-top:auto;display:inline-flex;align-items:center;gap:10px;padding:13px 24px;border-radius:999px;background:var(--ink);color:var(--paper);font:600 12px/1 var(--font-body);text-decoration:none;box-shadow:0 5px 0 rgba(59,0,27,.22);transition:background .2s,color .2s,box-shadow .2s}
.team .team-cta span{transition:translate .3s var(--team-spring)}
.team .team-cta:hover,.team .team-cta:focus-visible{background:var(--nuvora-yellow);color:var(--ink)}
.team .team-cta:hover span,.team .team-cta:focus-visible span{translate:3px -3px}

/* Pop-out profile. */
.team .team-card{cursor:pointer}
.team .team-card:focus{outline:none}
.team .team-card:focus-visible{outline:3px solid var(--ink);outline-offset:5px}
.team .team-pop{position:absolute;z-index:20;left:50%;top:50%;translate:-50% -50%;width:min(360px,calc(100vw - 32px));min-height:calc(100% + 28px);box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;padding:24px 24px 26px;background:var(--tc);border:2px solid var(--ink);border-radius:34px;box-shadow:8px 10px 0 var(--ink);text-align:left;opacity:0;scale:.45;rotate:-7deg;pointer-events:none;transition:opacity .22s ease,scale .5s var(--team-spring),rotate .5s var(--team-spring)}
.team .team-pop::before{content:"hi!";position:absolute;top:-30px;right:-20px;display:grid;place-items:center;width:78px;height:78px;background:var(--nuvora-yellow);color:var(--ink);font:600 22px/1 var(--font-display);letter-spacing:-.03em;clip-path:polygon(0 35%,12% 26%,7% 9%,24% 17%,33% 0,44% 12%,59% 0,69% 15%,88% 9%,86% 27%,100% 36%,91% 49%,100% 66%,83% 74%,87% 94%,66% 88%,55% 100%,42% 88%,24% 98%,18% 78%,0 76%,9% 57%);rotate:14deg;scale:0;transition:scale .55s var(--team-spring) .12s}
.team .team-pop::after{content:"";position:absolute;left:-16px;bottom:-16px;width:36px;height:36px;border:2px solid var(--ink);border-radius:50%;background:var(--nuvora-pink);scale:0;transition:scale .5s var(--team-spring) .2s}
.team .team-pop-head{display:flex;align-items:center;gap:14px;margin-bottom:16px;opacity:0;translate:0 10px;transition:opacity .25s ease .06s,translate .45s var(--team-spring) .06s}
.team .team-avatar{position:relative;flex:none;width:68px;height:68px;overflow:hidden;border:2px solid var(--ink);border-radius:50%;background:var(--paper)}
.team .team-avatar::before{content:"";position:absolute;left:50%;top:13px;width:20px;height:20px;border:1.5px solid var(--ink);border-radius:50%;translate:-50% 0}
.team .team-avatar::after{content:"";position:absolute;left:50%;top:38px;width:38px;height:22px;border:1.5px solid var(--ink);border-radius:50% 50% 0 0;translate:-50% 0}
.team .team-avatar img{position:relative;z-index:1;width:100%;height:100%;object-fit:cover;display:block}
.team .team-pop-who{display:block;min-width:0}
.team .team-pop-name{display:block;font:600 20px/1.1 var(--font-display);letter-spacing:-.03em;color:var(--ink)}
.team .team-pop-role{display:block;margin-top:6px;font:600 10px/1.3 var(--font-body);letter-spacing:.14em;text-transform:uppercase;color:var(--ink);opacity:.72}
.team .team-list .team-bio{margin:0;padding-top:16px;border-top:2px dashed rgba(59,0,27,.35);font:400 14px/1.65 var(--font-body);color:var(--ink);text-wrap:pretty;opacity:0;translate:0 10px;transition:opacity .25s ease .12s,translate .45s var(--team-spring) .12s}
.team .team-card:nth-child(even) .team-pop{--tilt:1deg}

/* Open state: mouse hover and keyboard focus everywhere, tap-to-open (focus) on touch screens. */
.team .team-card:is(:hover,:focus-visible) .team-pop{opacity:1;scale:1;rotate:var(--tilt,-1deg);pointer-events:auto}
.team .team-card:is(:hover,:focus-visible) .team-pop::before,.team .team-card:is(:hover,:focus-visible) .team-pop::after{scale:1}
.team .team-card:is(:hover,:focus-visible) .team-pop-head,.team .team-card:is(:hover,:focus-visible) .team-bio{opacity:1;translate:0 0}
@media(hover:none){
 .team .team-card:focus-within .team-pop{opacity:1;scale:1;rotate:var(--tilt,-1deg);pointer-events:auto}
 .team .team-card:focus-within .team-pop::before,.team .team-card:focus-within .team-pop::after{scale:1}
 .team .team-card:focus-within .team-pop-head,.team .team-card:focus-within .team-bio{opacity:1;translate:0 0}
}

/* The open card sits above its neighbours, and the others step back. */
.team .team-list>article:is(:hover,:focus-within){z-index:30}
.team .team-list>article{transition:opacity .3s ease,transform .8s cubic-bezier(.22,1,.36,1),translate .45s var(--team-spring),rotate .45s var(--team-spring),scale .45s var(--team-spring),background-color .25s ease}
.team .team-list>article.team-card:hover{translate:0 -4px;rotate:0deg;scale:1}
@media(hover:hover){
 .team .team-list:has(.team-card:hover)>article:not(:hover){opacity:.55;scale:.98}
}

/* Where the pop-out opens from, so it never leaves the screen. */
.team .team-list>article:nth-child(1) .team-pop{left:0;translate:0 -50%;transform-origin:left center}
@media(max-width:1050px){
 .team .team-list>article:nth-child(3n+1) .team-pop{left:0;translate:0 -50%;transform-origin:left center}
 .team .team-list>article:nth-child(3n+2) .team-pop{left:50%;translate:-50% -50%;transform-origin:center}
 .team .team-list>article:nth-child(3n) .team-pop{left:auto;right:0;translate:0 -50%;transform-origin:right center}
}
@media(max-width:700px){
 .team .team-list>article{padding:20px 12px 24px}
 .team .team-list>article:nth-child(odd) .team-pop{left:0;right:auto;translate:0 -50%;transform-origin:left center}
 .team .team-list>article:nth-child(even) .team-pop{left:auto;right:0;translate:0 -50%;transform-origin:right center}
 .team .team-pop{padding:20px 20px 22px}
 .team .team-pop::before{right:-12px}
 .team .team-pop::after{left:-10px}
}
@media(max-width:360px){
 .team .team-list>article .team-pop{left:0;right:0;width:auto;translate:0 -50%;transform-origin:center}
}

@media(prefers-reduced-motion:no-preference){
 .team .team-open-mark{animation:sticker-wobble 4.4s ease-in-out infinite}
}
