/* EAAPS People page */
body[data-page="people"] .people-title{position:relative;overflow:hidden;padding:92px 0 60px;text-align:center;background:#fff}
body[data-page="people"] .people-heading{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center}
body[data-page="people"] .people-title h1{max-width:900px;margin-top:28px;font-size:clamp(42px,4.4vw,60px);font-weight:500;line-height:1.1;letter-spacing:-.04em}
.people-badge{display:inline-block;padding:6px 10px;border:1px solid var(--blue-600);border-radius:6px;color:var(--navy-900);font-size:12px;line-height:1;font-weight:600;letter-spacing:.06em}
.people-doodle{position:absolute;width:clamp(105px,13vw,205px);height:auto;stroke:var(--blue-600);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;opacity:.4;pointer-events:none}
.people-doodle--left{left:max(4%,calc(50% - 675px));top:48%}
.people-doodle--right{right:max(5%,calc(50% - 680px));top:31%;width:clamp(80px,9vw,135px)}
body[data-page="people"] .people-section{padding:0 0 56px;background:#fff}
body[data-page="people"] .contact-section{padding-top:44px}
body[data-page="people"] .people-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.profile-card{position:relative;display:flex;align-items:center;gap:18px;min-width:0;min-height:136px;padding:12px 18px;border:0;border-radius:16px;background:transparent;color:var(--navy-900);font:inherit;text-align:left;cursor:pointer;transition:transform 180ms ease,background 180ms ease}
.profile-card::before{content:"";position:absolute;left:0;top:12px;bottom:12px;width:1px;background:#cbd5dc;transition:opacity 180ms ease}
.profile-card img{flex:none;width:96px;height:112px;border-radius:12px;object-fit:cover;object-position:center 26%}
.profile-card-copy{display:flex;flex-direction:column;gap:8px;min-width:0}
.profile-card-copy strong{font-size:18px;line-height:1.3;font-weight:650}
.profile-card-copy span{color:var(--neutral-500);font-size:15px;line-height:1.4}
.profile-card:hover,.profile-card:focus-visible{z-index:1;transform:scale(1.003);background:rgba(36,49,61,.035)}
.profile-card:hover::before,.profile-card:focus-visible::before{opacity:0}
.profile-card:focus-visible{z-index:2;outline:3px solid var(--blue-600);outline-offset:3px}
.profile-dialog{width:min(1110px,calc(100% - 48px));max-width:none;max-height:calc(100dvh - 48px);padding:0;border:0;border-radius:18px;background:#fff;color:var(--neutral-800);box-shadow:0 30px 90px rgba(0,30,60,.3);overflow:hidden}
.profile-dialog:focus{outline:none}
.profile-dialog::backdrop{background:rgba(22,40,60,.66);backdrop-filter:blur(5px)}
.profile-dialog-card{--profile-height:min(660px,calc(100dvh - 144px));position:relative;display:grid;grid-template-columns:minmax(0,36%) minmax(0,1fr);gap:48px;min-height:0;padding:48px}
.profile-dialog-image{width:100%;height:var(--profile-height);border-radius:12px;object-fit:cover;object-position:center 26%}
.profile-dialog-content{display:flex;flex-direction:column;min-width:0;height:var(--profile-height);padding:20px 4px 0 0}
.profile-dialog-heading{flex:none;padding-right:30px}
.profile-dialog-name-row{display:flex;align-items:center;gap:10px}
.profile-dialog-heading h2{margin:0;color:var(--navy-900);font-size:clamp(30px,3vw,44px);line-height:1.12;letter-spacing:-.035em}
.profile-linkedin{display:grid;flex:none;width:22px;height:22px;place-items:center;color:#9aa5b1;transform:translateY(4px);transition:color 180ms ease}
.profile-linkedin[hidden]{display:none}
.profile-linkedin svg{display:block;width:20px;height:20px}
.profile-linkedin:hover,.profile-linkedin:focus-visible{color:var(--blue-600)}
.profile-dialog-heading p{margin:12px 0 22px;color:var(--blue-600);font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase}
.profile-dialog-bio-wrap{position:relative;flex:1;min-height:0}
.profile-dialog-bio{height:100%;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-right:16px;scrollbar-width:none}
.profile-dialog-bio::-webkit-scrollbar{display:none}
.profile-dialog-scrollbar{position:absolute;top:0;right:0;bottom:0;width:5px;border-radius:5px;background:#e5ebef;pointer-events:none}
.profile-dialog-scrollbar[hidden]{display:none}
.profile-dialog-scrollbar>div{position:absolute;top:0;left:0;width:100%;border-radius:5px;background:#8199aa}
@media(max-width:700px){.profile-dialog-bio-wrap{flex:none}.profile-dialog-bio{height:auto}}
.profile-dialog-bio p{margin:0 0 24px;color:#40505f;font-size:16px;line-height:1.7}
.profile-dialog[data-profile="josef"] .profile-dialog-bio p,.profile-dialog[data-profile="jeanne"] .profile-dialog-bio p{font-size:18px}
.profile-dialog[data-profile="jitka"] .profile-dialog-bio p{font-size:20px}
@media(max-width:700px){.profile-dialog[data-profile] .profile-dialog-bio p{font-size:16px}}
.profile-dialog-bio p:last-child{margin-bottom:0}
.profile-dialog-close{position:absolute;top:16px;right:16px;z-index:1;display:grid;width:38px;height:38px;place-items:center;padding:0;border:0;border-radius:50%;background:transparent;color:var(--navy-900);cursor:pointer;transition:background 160ms ease}
.profile-dialog-close:hover{background:#eaf3fa}
.profile-dialog-close svg{width:23px;height:23px}
@media(max-width:1100px){body[data-page="people"] .people-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){body[data-page="people"] .people-title{padding:64px 0 48px}body[data-page="people"] .people-title h1{margin-top:24px;font-size:clamp(34px,7.8vw,44px)}.people-doodle{opacity:.17}.people-doodle--left{left:-34px;top:56%}.people-doodle--right{right:-18px;top:20%}body[data-page="people"] .people-section{padding-bottom:48px}body[data-page="people"] .contact-section{padding-top:48px}.profile-dialog{width:calc(100% - 24px);max-height:calc(100dvh - 24px)}.profile-dialog-card{display:flex;flex-direction:column;gap:20px;max-height:calc(100dvh - 24px);padding:20px;overflow-y:auto}.profile-dialog-image{flex:none;height:min(34dvh,300px);object-position:center 22%}.profile-dialog-content{flex:none;height:auto;padding:0}.profile-dialog-heading{padding-right:0}.profile-dialog-heading h2{font-size:30px}.profile-dialog-bio{max-height:32dvh;padding-right:8px}.profile-dialog-close{top:26px;right:26px;background:#fff}}
@media(max-width:560px){body[data-page="people"] .people-list{grid-template-columns:1fr;gap:12px}.profile-card{min-height:124px;padding:12px 14px}.profile-card img{width:88px;height:100px}.profile-dialog-card{padding:16px}.profile-dialog-close{top:22px;right:22px}}
@media(prefers-reduced-motion:reduce){.profile-card,.profile-dialog-close{transition:none}.profile-card:hover{transform:none}}

/* Reuse the team section on the About page. */
body[data-page="about"] .people-title{position:relative;scroll-margin-top:88px;overflow:hidden;padding:92px 0 60px;text-align:center;background:#fff}
body[data-page="about"] .people-title--board{padding:24px 0 32px}
body[data-page="about"] .people-founders-section{padding-bottom:24px}
body[data-page="about"] .people-heading{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center}
body[data-page="about"] .people-title h1,body[data-page="about"] .people-title h2{max-width:900px;margin-top:28px;color:var(--navy-900);font-size:clamp(42px,4.4vw,60px);font-weight:500;line-height:1.1;letter-spacing:-.04em}
body[data-page="about"] .people-section{padding:0 0 56px;background:#fff}
body[data-page="about"] .contact-section{padding-top:44px}
body[data-page="about"] .people-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
@media(max-width:1100px){body[data-page="about"] .people-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){body[data-page="about"] .people-title{padding:64px 0 48px}body[data-page="about"] .people-title h1,body[data-page="about"] .people-title h2{margin-top:24px;font-size:clamp(34px,7.8vw,44px)}body[data-page="about"] .people-section{padding-bottom:48px}body[data-page="about"] .contact-section{padding-top:48px}}
@media(max-width:560px){body[data-page="about"] .people-list{grid-template-columns:1fr;gap:12px}}

/* Center five board profiles in a 3 + 2 desktop grid. */
body[data-page="about"] .people-board-section .people-list{grid-template-columns:repeat(6,minmax(0,1fr))}
body[data-page="about"] .people-board-section .profile-card{grid-column:span 2}
body[data-page="about"] .people-board-section .profile-card:nth-child(4){grid-column:2 / span 2}
body[data-page="about"] .people-board-section .profile-card:nth-child(5){grid-column:4 / span 2}
@media(max-width:1100px){
  body[data-page="about"] .people-board-section .people-list{grid-template-columns:repeat(2,minmax(0,1fr))}
  body[data-page="about"] .people-board-section .profile-card{grid-column:auto}
  body[data-page="about"] .people-board-section .profile-card:nth-child(4){grid-column:auto}
  body[data-page="about"] .people-board-section .profile-card:nth-child(5){grid-column:1 / -1;justify-self:center;width:calc(50% - 7px)}
}
@media(max-width:560px){
  body[data-page="about"] .people-board-section .people-list{grid-template-columns:1fr}
  body[data-page="about"] .people-board-section .profile-card:nth-child(5){grid-column:auto;justify-self:stretch;width:auto}
}
