.team-people{--orbit-angle:0deg;position:relative;overflow:clip;background:radial-gradient(circle at 78% 18%,#c96b4420,transparent 32%),radial-gradient(circle at 8% 90%,#3978891a,transparent 35%);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.team-people-inner{max-width:1450px;margin:auto;padding:0 38px}
.team-people-heading{display:flex;justify-content:space-between;align-items:end;gap:44px;margin-bottom:46px}
.team-people-heading .eyebrow{margin-bottom:17px}
.team-people-heading h2{font-size:clamp(35px,4vw,62px);margin:0}
.team-people-heading h2 .handwritten{color:#efad91;font-size:.9em}
.team-people-heading>p{max-width:380px;margin:0 0 9px;color:var(--muted);font:16px/1.7 Georgia,serif}
.team-card-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));column-gap:23px;row-gap:34px;padding:5px 0 60px}
.team-card{display:block;min-width:0;padding:0;border:0;background:transparent;color:var(--ink);text-align:left;cursor:pointer}
.team-card:nth-child(4n+2),.team-card:nth-child(4n+4){margin-top:52px}
.team-card-photo{position:relative;display:block;aspect-ratio:4/5;border-radius:15px;isolation:isolate}
.team-card-photo::after{content:'';position:absolute;inset:0;z-index:2;border:1px solid #ffffff5c;border-radius:inherit;pointer-events:none}
.team-card-photo img{position:relative;z-index:1;display:block;width:100%;height:100%;object-fit:cover;object-position:center 28%;border-radius:inherit;filter:grayscale(1) contrast(.96);box-shadow:0 18px 32px #12303b16;transition:filter .65s ease,transform .65s cubic-bezier(.2,.8,.2,1),box-shadow .65s ease}
.team-card[data-member="nabila"] img{object-position:51% center}
.team-card[data-member="mary"] img{object-position:center 19%}
.team-card[data-member="laila"] img{object-position:center 30%}
.team-card.is-revealed img{filter:grayscale(0) contrast(1);transform:translateY(-5px);box-shadow:0 22px 40px #12303b30}
.team-card-orbit{position:absolute;z-index:3;left:-20%;top:50%;width:140%;aspect-ratio:1;border-radius:50%;pointer-events:none;opacity:0;transform:translateY(-50%) rotate(var(--orbit-angle));transition:opacity .4s ease}
.team-card-orbit::before,.team-card-orbit::after{content:'';position:absolute;border-radius:50%;inset:0;border:2px solid #de7959;border-right-color:transparent;border-bottom-color:#de79598a;box-shadow:0 0 14px #de79596b,0 0 42px #de79592c;animation:team-ring-blink 2.25s ease-in-out infinite}
.team-card-orbit::after{inset:8%;border-color:#245a69;border-left-color:transparent;border-top-color:#245a6991;box-shadow:0 0 15px #245a6975;animation-delay:.35s}
.team-card.is-active .team-card-orbit{opacity:1}
.team-card-number{position:absolute;z-index:4;right:12px;top:12px;padding:5px 8px;border:1px solid #ffffffb4;border-radius:999px;background:#132e3c88;color:#fff;font-size:10px;letter-spacing:.13em}
.team-card-name{display:block;margin:18px 2px 3px;font:400 clamp(20px,2vw,28px)/1.25 Georgia,serif;letter-spacing:-.025em}
.team-card-role{display:flex;justify-content:space-between;gap:8px;align-items:center;margin:0 2px;color:var(--muted);font-size:12px;line-height:1.5}
.team-card-role span{flex:none;color:var(--orange);font-size:18px;transition:transform .25s}
.team-card:hover .team-card-role span{transform:translate(3px,-3px)}
.team-card:focus-visible{outline:2px solid var(--orange);outline-offset:7px;border-radius:4px}
@keyframes team-ring-blink{0%,100%{opacity:.58}50%{opacity:1}}
body[data-theme="light"] .team-people{background:radial-gradient(circle at 78% 18%,#edb09127,transparent 32%),radial-gradient(circle at 8% 90%,#6b9ba620,transparent 35%),#f7f7f1}
body[data-theme="light"] .team-people-heading h2 .handwritten{color:#d38266}

.founder-portrait.founder-open{display:block;width:100%;border:0;color:var(--ink);text-align:left;cursor:pointer}
.founder-portrait.founder-open:hover img{filter:saturate(1.1) contrast(1.03)}
.founder-role.founder-open{display:block;padding:0;border:0;background:none;text-align:left;cursor:pointer}
.founder-role.founder-open:hover{text-decoration:underline;text-underline-offset:4px}
.founder-read-more{display:inline-flex;align-items:center;gap:22px;margin-top:8px;padding:0 0 7px;border:0;border-bottom:1px solid #ee785866;background:none;color:var(--orange);font-size:13px;cursor:pointer}
.founder-read-more:hover{gap:27px}
.founder-read-more span{font-size:18px}
.founder-open:focus-visible{outline:2px solid var(--orange);outline-offset:6px}

.team-profile-modal{position:fixed;width:min(980px,calc(100vw - 32px));max-height:min(88vh,850px);padding:0;border:1px solid #71858c55;border-radius:18px;background:var(--bg);color:var(--ink);box-shadow:0 30px 90px #07192270;overflow:auto}
.team-profile-modal::backdrop{background:#071720bc;backdrop-filter:blur(8px)}
.team-profile-layout{display:grid;grid-template-columns:minmax(260px,.83fr) 1.17fr}
.team-profile-visual{position:sticky;top:0;align-self:start;height:min(88vh,750px);overflow:hidden;background:#1b323b}
.team-profile-visual img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 30%}
.team-profile-content{padding:54px clamp(28px,4.3vw,58px);overflow:auto}
.team-profile-content .eyebrow{margin-bottom:14px;color:var(--orange)}
.team-profile-content h2{font-size:clamp(32px,3.5vw,48px);margin-bottom:10px}
.team-profile-role{color:var(--orange);font-size:13px;font-weight:600;letter-spacing:.02em;margin-bottom:29px}
.team-profile-bio p{font:15px/1.78 Georgia,serif;color:var(--muted);margin-bottom:17px}
.team-profile-close{position:sticky;float:right;top:13px;right:13px;z-index:5;width:38px;height:38px;margin:13px 13px -51px 0;border:1px solid #627b84b0;border-radius:50%;background:#102c39;color:#fff;font-size:25px;line-height:1;cursor:pointer}
.team-profile-close:hover{background:var(--orange);border-color:var(--orange);color:#10232b}
body[data-theme="light"] .team-profile-modal{background:#fbf8f2}
body[data-theme="light"] .team-profile-bio p{color:#4f646d}
@media(max-width:900px){.team-card-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:30px 20px}.team-card:nth-child(n){margin-top:0}.team-card:nth-child(3n+2){margin-top:40px}}
@media(max-width:620px){
  .team-people-inner{padding:0 20px}
  .team-people-heading{display:block;margin-bottom:28px}
  .team-people-heading h2{font-size:37px;margin-bottom:16px}
  .team-people-heading>p{font-size:14px}
  .team-card-grid{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:16px;row-gap:22px;padding-bottom:30px}
  .team-card:nth-child(n){margin-top:0}
  .team-card:nth-child(even){margin-top:28px}
  .team-card-photo{aspect-ratio:3/4;border-radius:10px}
  .team-card-name{font-size:18px;margin-top:12px}
  .team-card-role{font-size:10px}
  .team-card-orbit{left:-12%;width:124%}
  .team-profile-modal{max-height:92dvh}
  .team-profile-layout{display:block}
  .team-profile-visual{position:relative;top:auto;height:min(38vh,320px)}
  .team-profile-visual img{object-position:center 23%}
  .team-profile-content{padding:27px 25px 34px}
  .team-profile-content h2{font-size:31px}
  .team-profile-bio p{font-size:14px}
}
@media(prefers-reduced-motion:reduce){.team-card-photo img{filter:none;transition:none}.team-card-orbit{display:none}.team-card-role span{transition:none}}

/* Bring the team introduction into a compact editorial two-column layout. */
.team-intro{display:grid;grid-template-columns:minmax(0,1.18fr) minmax(280px,.82fr);column-gap:clamp(28px,5vw,88px);align-items:center;text-align:left}
.team-intro .eyebrow{grid-column:1;grid-row:1;justify-content:flex-start;padding-left:38px}
.team-intro h1{position:relative;grid-column:1;grid-row:2;margin:0;padding-left:38px;font-size:clamp(36px,3.6vw,54px);line-height:1.12}
.team-intro h1 .outlined{font-size:.88em}
.team-intro h1::before{content:"";position:absolute;left:3px;top:.28em;width:17px;height:17px;border:2px solid var(--orange);border-radius:50%;background:radial-gradient(circle,var(--orange) 0 24%,transparent 29%);box-shadow:0 0 0 5px #d66c493c,0 0 0 11px #d66c491d;animation:team-live-pulse 2.2s ease-in-out infinite}
.team-intro>p:last-child{grid-column:2;grid-row:2;max-width:440px;margin:0;font-size:clamp(14px,1.25vw,17px);line-height:1.75}
@keyframes team-live-pulse{0%,100%{opacity:.6;transform:scale(.88)}50%{opacity:1;transform:scale(1.12)}}

.founder-layout{grid-template-columns:minmax(250px,.7fr) minmax(0,1.3fr);gap:clamp(36px,5vw,70px)}
.founder-visual{max-width:340px}
.founder-story .founder-quote{max-width:620px;margin:22px 0 0;padding:19px 0;gap:12px}
.founder-story .founder-quote-open{font-size:43px}
.founder-story .founder-quote p{font-size:18px;line-height:1.48}

.team-card-grid{grid-template-columns:repeat(8,minmax(0,1fr))}
.team-card{grid-column:span 2;container-type:inline-size}
.team-card:nth-child(5){grid-column:2/span 2}
.team-card-name{font-size:clamp(9px,3.1vw,18px);letter-spacing:-.035em;white-space:nowrap}

@media(max-width:900px){
  .team-card-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .team-card,.team-card:nth-child(5){grid-column:auto}
  .team-card:last-child{grid-column:2}
  .team-intro{grid-template-columns:minmax(0,1fr) minmax(240px,.8fr)}
}
@media(max-width:620px){
  .team-intro{display:block;text-align:left}
  .team-intro .eyebrow{padding-left:34px;justify-content:flex-start}
  .team-intro h1{padding-left:34px;font-size:clamp(24px,7.4vw,34px);margin-bottom:24px;white-space:nowrap}
  .team-intro h1 .outlined{font-size:.92em}
  .team-intro h1::before{width:14px;height:14px;left:2px}
  .team-intro>p:last-child{max-width:100%;font-size:15px}
  .founder-layout{grid-template-columns:1fr;gap:30px}
  .founder-visual{width:min(76%,300px)}
  .founder-story .founder-quote{margin-top:20px;padding:17px 0}
  .founder-story .founder-quote p{font-size:16px}
  .team-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .team-card:last-child{grid-column:1/-1;width:calc(50% - 8px);justify-self:center}
}
@media(prefers-reduced-motion:reduce){.team-intro h1::before{animation:none}}

/* A quiet scroll-led bubble and breathing portrait for the founder. */
.founder{position:relative;isolation:isolate}
.founder-bubble{position:absolute;z-index:0;top:var(--bubble-top);left:var(--bubble-left);width:var(--bubble-size);aspect-ratio:1;border:1px solid #91afb466;border-radius:50%;background:radial-gradient(circle at 27% 22%,#ffffffc7 0 3%,#ffffff57 7%,transparent 26%),radial-gradient(circle at 70% 76%,var(--bubble-tint),transparent 55%),radial-gradient(circle at 50% 50%,transparent 42%,#b5d6d633 68%,#ffffff75 86%,#36707d3d 100%);box-shadow:inset -9px -12px 24px #24596826,inset 6px 7px 17px #ffffff9c,0 12px 28px #1b4c5a13;backdrop-filter:blur(1px);transform:translate3d(0,var(--bubble-drop,0px),0);transition:transform .32s ease-out;pointer-events:none}
.founder-bubble::after{content:"";position:absolute;inset:8%;border:1px solid #ffffff54;border-radius:50%;box-shadow:inset 2px 3px 10px #ffffff47}
.founder-heading,.founder-layout{position:relative;z-index:1}
.founder-portrait{animation:founder-breathe 7s ease-in-out infinite}
@keyframes founder-breathe{0%,100%{transform:rotate(-1.7deg) scale(1)}50%{transform:rotate(-1.2deg) scale(1.026)}}

.team-card-preview{position:absolute;z-index:5;inset:0;display:flex;align-items:flex-end;padding:18px;border-radius:inherit;background:linear-gradient(180deg,#0e293b58 0%,transparent 40%,#0a2536d9 100%);color:#fff;font:500 clamp(13px,1.4vw,18px)/1.3 Georgia,serif;opacity:0;transition:opacity .3s ease;pointer-events:none}
.team-card-preview>.team-pulse-dot{position:absolute;top:19px;left:19px}
@media(hover:hover){.team-card:hover .team-card-preview{opacity:1}}
.team-card:focus-visible .team-card-preview{opacity:1}
.team-card-story{display:inline-block;margin:10px 2px 0;padding-bottom:3px;border-bottom:1px solid #d46c4a75;color:var(--orange);font-size:11px;line-height:1.4;white-space:nowrap}
.team-card:hover .team-card-story{border-color:var(--orange)}
.team-pulse-dot{display:block;width:18px;height:18px;border:2px solid #e78363;border-radius:50%;background:radial-gradient(circle,#e78363 0 25%,transparent 30%);box-shadow:0 0 0 5px #e7836352,0 0 0 11px #e7836327;animation:team-live-pulse 2.2s ease-in-out infinite}
.team-profile-pulse{position:fixed;z-index:8;pointer-events:none}
@media(max-width:620px){.founder-bubble{width:calc(var(--bubble-size)*.72);opacity:.8}.team-card-preview{padding:10px;font-size:12px}.team-card-preview>.team-pulse-dot{top:13px;left:13px}.team-card-story{font-size:10px;margin-top:8px}}
@media(prefers-reduced-motion:reduce){.founder-portrait,.team-pulse-dot{animation:none}.founder-bubble{transition:none}}

.team-card-number{display:grid;place-items:center;width:33px;height:33px;padding:0;border:1px solid #ffffffb8;border-radius:50%;background:#17313dcb;box-shadow:0 4px 14px #0b233d3b}
.team-card-number svg{display:block;width:19px;height:19px;color:#fff}
.founder-quote-avatar{grid-column:2;justify-self:end;width:39px;height:39px;margin-top:5px;border:2px solid #ffffffb8;border-radius:50%;object-fit:cover;object-position:center 24%;box-shadow:0 0 0 3px #da7d6242,0 4px 14px #17313d28}
@media(max-width:620px){
  .team-intro{padding-top:34px;padding-bottom:38px}
  .founder{padding-top:37px}
  .founder-heading{margin-bottom:24px}
  .founder-heading h2 .handwritten{display:inline-block;font-size:clamp(18px,5.8vw,25px);letter-spacing:-.035em;white-space:nowrap}
  .founder-quote-avatar{width:34px;height:34px}
}

.founder-marker>span{display:block;transform:translateX(-2px)}
.founder-marker svg{position:absolute;top:11px;right:10px;width:11px;height:11px}
.founder-quote p .founder-quote-avatar{display:inline-block;grid-column:auto;justify-self:auto;vertical-align:middle;margin:0 0 0 11px}
@media(max-width:620px){.founder-marker svg{top:8px;right:7px;width:9px;height:9px}}
