/* "Meet the team" (George, 2026-11-29, after MAKE by KBank's faces block): the title slides in
   from off screen on the right, the two faces pop in with rings around them, hovering a face
   shows who it is, tapping it sends a wave and keeps the card open. Shared by both home pages. */
.team { background: linear-gradient(180deg, #fffdf8 0%, #e9f7f1 100%); color: #141216; padding: 72px 0 80px; overflow: hidden; text-align: center; }
.team-eyebrow { margin: 0 0 8px; font-size: 15px; font-weight: 700; color: #6b665c; }
.team h2 { margin: 0; font-family: var(--display, var(--font-display, inherit)); font-size: clamp(2.1rem, 6vw, 3.6rem); line-height: 1.02; letter-spacing: -0.035em; }
.team-ready .team-eyebrow, .team-ready h2 { opacity: 0; transform: translateX(70vw); transition: opacity 0.4s ease, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
.team-ready h2 { transition-delay: 0.08s; }
.team-ready.is-in .team-eyebrow, .team-ready.is-in h2 { opacity: 1; transform: none; }
.team-stage { position: relative; display: flex; justify-content: center; gap: clamp(28px, 9vw, 110px); width: min(100% - 32px, 760px); margin: 46px auto 0; padding-bottom: 132px; }
.team-person { all: unset; box-sizing: border-box; position: relative; display: grid; justify-items: center; gap: 12px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.team-person:focus-visible .team-face { outline: 3px solid #141216; outline-offset: 4px; }
.team-face { position: relative; width: clamp(116px, 30vw, 168px); aspect-ratio: 1; border-radius: 50%; }
.team-face img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; border-radius: 50%; border: 5px solid #fff; object-fit: cover; box-shadow: 0 18px 38px rgb(20 18 22 / 0.18); transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
.team-face::before, .team-face::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #35b58a; opacity: 0; }
.team.is-in .team-face::before { animation: team-ring 2.8s ease-out infinite; }
.team.is-in .team-face::after { animation: team-ring 2.8s ease-out 1.4s infinite; }
@keyframes team-ring { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(1.55); opacity: 0; } }
.team-ready .team-person { opacity: 0; transform: translateY(40px) scale(0.5); transition: opacity 0.35s ease, transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1); transition-delay: 0.45s; }
.team-ready .team-person + .team-person { transition-delay: 0.62s; }
.team-ready.is-in .team-person { opacity: 1; transform: none; }
.team.is-in .team-person .team-face { animation: team-float 5s ease-in-out infinite alternate; }
.team.is-in .team-person + .team-person .team-face { animation-delay: -2.5s; }
@keyframes team-float { from { translate: 0 0; } to { translate: 0 -9px; } }
.team-person:hover .team-face img, .team-person.is-open .team-face img { transform: scale(1.07) rotate(-3deg); }
.team-name { font-size: 18px; font-weight: 800; }
.team-name small { display: block; margin-top: 2px; font-size: 13.5px; font-weight: 600; color: #6b665c; }
/* The card that shows on hover, and stays after a tap. */
.team-card { position: absolute; top: calc(100% + 12px); left: 50%; z-index: 3; width: min(78vw, 270px); border-radius: 18px; background: #141216; color: #fff9ec; padding: 14px 16px; font-size: 14.5px; font-weight: 500; line-height: 1.4; text-align: left; box-shadow: 0 16px 34px rgb(20 18 22 / 0.24); opacity: 0; transform: translate(-50%, 10px) scale(0.94); transform-origin: 50% 0; pointer-events: none; transition: opacity 0.22s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
.team-card::before { content: ''; position: absolute; top: -7px; left: 50%; width: 14px; height: 14px; margin-left: -7px; background: #141216; transform: rotate(45deg); }
.team-card a { display: inline-block; margin-top: 8px; color: #ffd43b; font-weight: 700; text-decoration: none; }
.team-person:hover .team-card, .team-person:focus-visible .team-card, .team-person.is-open .team-card { opacity: 1; transform: translate(-50%, 0) scale(1); pointer-events: auto; }
@media (max-width: 620px) {
   .team-person:first-child .team-card { left: 0; transform: translate(0, 10px) scale(0.94); }
   .team-person:first-child .team-card::before { left: 58px; }
   .team-person:last-child .team-card { left: auto; right: 0; transform: translate(0, 10px) scale(0.94); }
   .team-person:last-child .team-card::before { left: auto; right: 51px; }
   .team-person:hover .team-card, .team-person:focus-visible .team-card, .team-person.is-open .team-card { transform: none; }
}
/* The wave that flies off when a face is tapped. */
.team-wave { position: absolute; top: 4%; right: 2%; z-index: 2; font-size: 30px; pointer-events: none; animation: team-wave 0.9s ease-out forwards; }
@keyframes team-wave { 0% { opacity: 0; transform: translate(0, 10px) scale(0.4) rotate(-20deg); } 30% { opacity: 1; transform: translate(10px, -14px) scale(1.2) rotate(18deg); } 55% { transform: translate(16px, -26px) scale(1.1) rotate(-12deg); } 100% { opacity: 0; transform: translate(34px, -70px) scale(0.9) rotate(14deg); } }
.team-hint { margin: 0; font-size: 14px; font-weight: 600; color: #6b665c; }
/* These animations play even when the device asks for reduced motion (George, 2026-11-29). */
