.mentor-open{position:absolute;inset:0;z-index:5;width:100%;padding:0;border:0;background:transparent;cursor:pointer}
.mentor-open>span{position:absolute;top:16px;right:16px;display:grid;place-items:center;width:30px;height:30px;border:1px solid #ffffff80;border-radius:50%;background:#08080ba8;color:#fff;font:22px/1 var(--sans);opacity:0;transition:opacity .2s}
.mentor-open:hover>span,.mentor-open:focus-visible>span{opacity:1}
.mentor-open:focus-visible{outline:3px solid #fff;outline-offset:7px}
#mentor-dialog{box-sizing:border-box;width:min(850px,calc(100% - 40px));max-width:none;max-height:calc(100dvh - 48px);margin:auto;padding:0;border:1px solid #ffffff29;border-radius:18px;background:#141418;color:#f6f5f1;box-shadow:0 30px 100px #0009;overflow:auto;overscroll-behavior:contain;color-scheme:dark;text-transform:lowercase}
#mentor-dialog::backdrop{background:#050508cf;backdrop-filter:blur(12px)}
.mentor-dialog-top{position:sticky;top:0;z-index:7;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 22px 10px 32px;background:#141418f5}
.mentor-dialog-top>span{font:13px/1.4 var(--sans);color:#a5a5ad}
.mentor-close{display:grid;place-items:center;flex:none;width:44px;height:44px;border:1px solid #ffffff38;border-radius:50%;background:#ffffff08;color:#fff;font:18px var(--sans)}
#mentor-dialog button:focus-visible,#mentor-dialog a:focus-visible{outline:2px solid #fff;outline-offset:4px}
.mentor-profile-layout{display:grid;grid-template-columns:250px minmax(0,1fr);gap:38px;padding:30px 40px 38px;align-items:start}
.mentor-portrait.polaroid{width:100%;margin:6px 0 0;padding:10px 10px 0;transform:rotate(-3deg);background:#f8f7f3;color:#222;align-self:start;box-shadow:0 12px 32px #0005}
.mentor-portrait:before{background:linear-gradient(115deg,#ffffff58,#f5f7fa88 50%,#ffffff50);box-shadow:inset 0 0 0 1px #ffffff18;opacity:1}
.mentor-portrait-image{position:relative}
#mentor-portrait{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:cover;object-position:center 30%;filter:none;border-radius:0}
.mentor-portrait figcaption{padding:15px 6px 19px;text-align:center;font:25px/1.15 var(--hand);overflow-wrap:anywhere}
#mentor-profile-badges{position:absolute;bottom:8px;right:8px;display:flex;align-items:center;gap:5px}
#mentor-profile-badges:empty{display:none}
#mentor-profile-badges img{width:auto;height:30px;max-width:62px;object-fit:contain;border-radius:5px;aspect-ratio:auto;filter:none}
.mentor-company{color:#c4c4ca;font:14px/1.5 var(--sans);margin-bottom:12px;overflow-wrap:anywhere}
#mentor-name{font:clamp(38px,4.5vw,55px)/1.05 'Instrument Serif',serif;letter-spacing:-.025em;overflow-wrap:anywhere;margin:0 0 10px}
.mentor-role{font:14px/1.5 var(--sans);color:#a5a5ad;margin-bottom:26px}
.mentor-building,#mentor-achievement{font:16px/1.65 var(--sans);letter-spacing:-.015em;color:#dedee2}
.mentor-highlight{border-top:1px solid #ffffff24;margin-top:24px;padding-top:19px}
.mentor-highlight-label{font:25px/1.2 var(--hand);color:#f8f7f3;margin-bottom:10px}
.mentor-sources{display:flex;flex-wrap:wrap;gap:8px 16px;margin-top:25px;font:12px/1.5 var(--sans);color:#aaaab3}
.mentor-sources a{text-decoration:underline;text-underline-offset:4px;text-decoration-color:#ffffff50}
.mentor-sources a:hover{color:#fff}
.mentor-profile-nav{display:flex;justify-content:space-between;gap:16px;border-top:1px solid #ffffff24;margin:0 32px;padding:19px 0 22px}
.mentor-profile-nav button{color:#dddde3;padding:10px 0;font:14px/1.4 var(--sans);text-decoration:underline;text-underline-offset:5px;text-decoration-color:#ffffff50}
@media(max-width:639px){
 .mentor-open>span{opacity:1;width:24px;height:24px;top:12px;right:12px;font-size:18px}
 #mentor-dialog{width:calc(100% - 20px);max-height:calc(100dvh - 24px);border-radius:14px}
 .mentor-dialog-top{padding:10px 12px 5px 20px}
 .mentor-dialog-top>span{font-size:12px}
 .mentor-profile-layout{grid-template-columns:minmax(0,1fr);gap:28px;padding:22px 25px 28px}
 .mentor-portrait.polaroid{width:min(210px,78%);justify-self:center;margin:6px 0 0;padding:8px 8px 0}
 .mentor-portrait figcaption{font-size:23px;padding:12px 4px 17px}
 #mentor-name{font-size:42px}
 .mentor-role{margin-bottom:20px}
 .mentor-profile-nav{margin:0 22px;padding:12px 0 16px}
}
@media(prefers-reduced-motion:reduce){.mentor-open>span{transition:none}}

.mentor-card .mentor-affiliations .mentor-company-mark,#mentor-profile-badges .mentor-company-mark{width:30px;height:30px;object-fit:contain;background:#fff;border-radius:3px;filter:none;aspect-ratio:auto}
.mentor-card .mentor-affiliations .mentor-company-wide,#mentor-profile-badges .mentor-company-wide{width:70px;max-width:70px;height:30px;padding:3px}
/* Founders, Inc. uses its black mark on mentor photos and profile portraits. */
.mentor-card .mentor-affiliations img[src="/assets/mentor-companies/founders.png"],#mentor-profile-badges img[src="/assets/mentor-companies/founders.png"]{filter:brightness(0);background:transparent}

.mentor-badge-plate{display:flex;align-items:center;justify-content:center;width:30px;height:30px;background:#fff;border-radius:3px;flex:none;box-shadow:0 1px 5px #0003}
