/* Team page (pathshodh_team.php): design-system person cards (docs/13-design-system.md, .ps-person), editorial layout.
   Portraits: assets/images/team/card/*.webp, each person's original photo on one shared mist backdrop (E:\work_scratch\team\compose_team.py).
   Same frame as the nav bar (--frame, from site-nav.css). Tokens from site-tokens.css. Scroll reveal: AOS (data-aos), loaded on every page. */
.ps-team{font-family:var(--font-sans);color:var(--text-primary);background:var(--bg-page);-webkit-font-smoothing:antialiased}
.ps-team *,.ps-team *::before,.ps-team *::after{box-sizing:border-box}
.ps-team .ps-team-in{padding:clamp(72px,8vw,128px) var(--frame) clamp(120px,12vw,180px)}
.ps-team ul{list-style:none;margin:0;padding:0}
.ps-team li{margin:0;padding:0}

/* ---------- a card: portrait, then name and role ---------- */
.ps-team .ps-member{position:relative;display:block;color:inherit;text-decoration:none}
.ps-team .ps-member-ph{position:relative;aspect-ratio:4/5;overflow:hidden;border-radius:var(--radius-lg);background:var(--bg-cool);
  box-shadow:0 1px 2px rgba(18,23,53,.06),0 12px 32px -18px rgba(18,23,53,.28);transition:transform .45s cubic-bezier(.2,.7,.2,1),box-shadow .45s}
.ps-team .ps-member-ph img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 0;transition:transform .7s cubic-bezier(.2,.7,.2,1)}
/* a crimson line that grows along the foot of the portrait on hover */
.ps-team .ps-member-ph::after{content:"";position:absolute;left:0;right:0;bottom:0;height:4px;background:var(--action-primary);transform:scaleX(0);transform-origin:left;transition:transform .45s cubic-bezier(.2,.7,.2,1)}
.ps-team .ps-member-tx{padding-top:20px}
.ps-team .ps-member-name{margin:0;font-family:inherit;font-size:var(--step-h4);font-weight:500;line-height:var(--lh-h4);letter-spacing:var(--tr-h4);color:var(--text-primary);text-transform:none;transition:color .25s}
.ps-team .ps-member-role{display:block;margin-top:6px;font-size:16px;line-height:1.5;color:var(--text-secondary)}
.ps-team .ps-member-kicker{display:block;margin-bottom:4px;font-weight:500;color:var(--text-accent)}

.ps-team .ps-member:hover .ps-member-ph{transform:translateY(-6px);box-shadow:0 2px 4px rgba(18,23,53,.06),0 28px 48px -22px rgba(18,23,53,.42)}
.ps-team .ps-member:hover .ps-member-ph img{transform:scale(1.04)}
.ps-team .ps-member:hover .ps-member-ph::after{transform:scaleX(1)}
.ps-team a.ps-member:hover .ps-member-name{color:var(--text-accent)}
.ps-team a.ps-member:focus-visible{outline:3px solid var(--focus-ring);outline-offset:8px;border-radius:var(--radius-lg)}
/* grid cards that open a biography page: a small chevron after the name */
.ps-team .ps-team-grid a.ps-member .ps-member-name::after{content:"";display:inline-block;width:.45em;height:.45em;margin-left:.45em;border:solid currentColor;border-width:2px 2px 0 0;transform:translateY(-.1em) rotate(45deg);opacity:.5;transition:transform .25s,opacity .25s}
.ps-team .ps-team-grid a.ps-member:hover .ps-member-name::after{opacity:1;transform:translate(.15em,-.1em) rotate(45deg)}

/* ---------- the two co-founders: a navy band that continues the page banner ---------- */
/* on this page the banner photo fades into the band below (the banner's own ::before is its left-to-right gradient) */
body:has(.ps-team) .rs-counter.counter-home5-style.bg25-fund::after{content:"";position:absolute;left:0;right:0;bottom:0;height:45%;z-index:-1;pointer-events:none;background:linear-gradient(180deg,rgba(18,23,53,0),var(--bg-dark))}
.ps-team .ps-team-top{position:relative;overflow:hidden;background:var(--bg-dark);color:var(--text-on-dark);isolation:isolate}
.ps-team .ps-team-top::before{content:"";position:absolute;inset:0;z-index:-1;
  background:radial-gradient(60% 80% at 85% 10%,rgba(169,45,49,.22),transparent 70%),radial-gradient(50% 70% at 10% 100%,rgba(101,133,203,.16),transparent 70%)}
.ps-team .ps-team-in--top{padding-top:clamp(56px,6vw,96px);padding-bottom:clamp(72px,8vw,128px)}
.ps-team .ps-team-lead{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(32px,5vw,96px)}
.ps-team .ps-team-lead .ps-member{display:grid;grid-template-columns:minmax(0,11fr) minmax(0,10fr);gap:clamp(24px,2.8vw,44px);align-items:end}
/* the portrait sits on a thin light-crimson frame offset behind it */
.ps-team .ps-team-lead .ps-member-ph{overflow:visible;border-radius:var(--radius-lg);box-shadow:none;background:none}
.ps-team .ps-team-lead .ps-member-ph::before{content:"";position:absolute;inset:0;transform:translate(14px,14px);border:1.5px solid var(--crimson-300);border-radius:var(--radius-lg);opacity:.75;transition:transform .45s cubic-bezier(.2,.7,.2,1)}
.ps-team .ps-team-lead .ps-member-ph img{position:relative;border-radius:var(--radius-lg);box-shadow:0 30px 60px -30px rgba(0,0,0,.6)}
.ps-team .ps-team-lead .ps-member-ph::after{display:none}
.ps-team .ps-team-lead .ps-member:hover .ps-member-ph{transform:none;box-shadow:none}
.ps-team .ps-team-lead .ps-member:hover .ps-member-ph::before{transform:translate(8px,8px)}
.ps-team .ps-team-lead .ps-member:hover .ps-member-ph img{transform:translateY(-4px)}
.ps-team .ps-team-lead .ps-member-tx{padding:0 0 6px}
.ps-team .ps-team-lead .ps-member-kicker{margin:0;color:var(--crimson-300);font-size:16px;letter-spacing:.02em}
.ps-team .ps-team-lead .ps-member-name{font-size:clamp(28px,2.6vw,40px);line-height:1.1;letter-spacing:-.03em;color:var(--text-on-dark);text-wrap:balance}
.ps-team .ps-team-lead a.ps-member:hover .ps-member-name{color:var(--text-on-dark)}
.ps-team .ps-team-lead .ps-member-tx,.ps-team .ps-team-lead .ps-member-role{color:var(--text-on-dark-secondary);font-size:16px;line-height:1.5}
/* "Co-Founder" (the first part of the role) is shown above the name: the role box is dissolved (display:contents)
   and the kicker moved first with order; the rest of the role follows the name */
.ps-team .ps-team-lead .ps-member-tx{display:flex;flex-direction:column;align-items:flex-start;gap:14px}
.ps-team .ps-team-lead .ps-member-role{display:contents}
.ps-team .ps-team-lead .ps-member-kicker{order:-1}
.ps-team .ps-team-lead .ps-member-go{display:inline-flex;align-items:center;justify-content:center;width:52px;height:52px;margin-top:14px;border:1.5px solid rgba(255,255,255,.4);border-radius:var(--radius-pill);color:var(--text-on-dark);transition:background .25s,border-color .25s,transform .25s}
.ps-team .ps-team-lead a.ps-member:hover .ps-member-go{background:var(--action-primary);border-color:var(--action-primary);transform:translateX(4px)}

/* ---------- everyone else: four across, every second column set lower ---------- */
.ps-team .ps-team-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(48px,5vw,72px) clamp(20px,2.4vw,36px)}
.ps-team .ps-team-grid>li{position:relative}
.ps-team .ps-team-grid>li:nth-child(even){top:clamp(40px,5vw,72px)}

/* ---------- name and designation on their own background (2026-11-09, the user's ask; concept C chosen from six) ----------
   Grid cards: a navy band (--bg-dark, the colour of the co-founders' band above) laid across the foot of the portrait, full width,
   with the portrait's rounded bottom corners. It covers the lowest 56px of the photo (the shirt, never the face) and runs on below it
   as far as the words need; on desktop and tablet the bands in a row end level. A short crimson bar at its top grows across on hover
   (it takes over from the line on the portrait's foot, which the band now covers). Co-founders: a navy panel beside the portrait. */
.ps-team .ps-team-grid>li{display:flex}
.ps-team .ps-team-grid .ps-member{display:flex;flex-direction:column;width:100%}
.ps-team .ps-team-grid .ps-member-ph::after{display:none}
.ps-team .ps-team-grid .ps-member-tx{position:relative;z-index:1;flex:1 1 auto;margin:-56px 0 0;padding:20px 22px 22px;border-radius:0 0 var(--radius-lg) var(--radius-lg);background:var(--bg-dark);
  box-shadow:0 18px 36px -22px rgba(18,23,53,.5);transition:transform .45s cubic-bezier(.2,.7,.2,1),box-shadow .45s}
.ps-team .ps-team-grid .ps-member-name,.ps-team .ps-team-grid a.ps-member:hover .ps-member-name{color:var(--text-on-dark)}
.ps-team .ps-team-grid .ps-member-role{color:var(--text-on-dark-secondary)}
.ps-team .ps-team-grid .ps-member-tx::before{content:"";position:absolute;left:22px;top:0;width:28px;height:3px;border-radius:0 0 2px 2px;background:var(--action-primary);transition:width .45s cubic-bezier(.2,.7,.2,1)}
.ps-team .ps-team-grid .ps-member:hover .ps-member-tx{transform:translateY(-6px);box-shadow:0 26px 44px -24px rgba(18,23,53,.6)}
.ps-team .ps-team-grid .ps-member:hover .ps-member-tx::before{width:calc(100% - 44px)}
/* both co-founder panels run from the top of the portrait to just above its foot, so they match; the arrow sits at the panel's foot */
.ps-team .ps-team-lead .ps-member{align-items:stretch}
.ps-team .ps-team-lead .ps-member-tx{position:relative;z-index:1;justify-content:space-between;margin:0 0 clamp(24px,3vw,48px) clamp(-64px,-4vw,-40px);padding:clamp(24px,2.4vw,34px);
  border:1px solid rgba(255,255,255,.12);border-radius:var(--radius-lg);background:#1B2147;box-shadow:0 30px 60px -30px rgba(0,0,0,.65);transition:border-color .3s}
.ps-team .ps-team-lead .ps-member-tx::before{content:"";position:absolute;left:clamp(24px,2.4vw,34px);top:0;width:28px;height:3px;border-radius:0 0 2px 2px;background:var(--action-primary);transition:width .45s cubic-bezier(.2,.7,.2,1)}
.ps-team .ps-team-lead a.ps-member:hover .ps-member-tx{border-color:rgba(226,142,141,.4)}
.ps-team .ps-team-lead a.ps-member:hover .ps-member-tx::before{width:56px}
.ps-team .ps-team-lead .ps-member-name{font-size:clamp(28px,2.5vw,38px)}

/* tablet: the co-founders side by side as stacked cards (portrait, then text); the grid stays four across */
@media (min-width:768px) and (max-width:991px){
  .ps-team .ps-team-lead{gap:40px}
  .ps-team .ps-team-lead .ps-member{grid-template-columns:1fr;gap:32px;align-items:start}
  .ps-team .ps-team-lead .ps-member-ph{width:78%}
  .ps-team .ps-team-lead .ps-member-name{font-size:28px}
  .ps-team .ps-team-lead .ps-member-tx{margin:-64px 0 0 32px}
  .ps-team .ps-team-grid a.ps-member .ps-member-name::after{display:none}   /* no room beside the name; the whole card is still the link */
  .ps-team .ps-team-grid{column-gap:18px}
  .ps-team .ps-member-name{font-size:19px}
  .ps-team .ps-member-role{font-size:15px}
  .ps-team .ps-team-grid .ps-member-tx{margin-top:-44px;padding:16px 14px 18px}
  .ps-team .ps-team-grid .ps-member-tx::before{left:14px}
  .ps-team .ps-team-grid .ps-member:hover .ps-member-tx::before{width:calc(100% - 28px)}
}
@media (max-width:767px){
  .ps-team .ps-team-in{padding-bottom:136px}   /* 96px below the last card; the second column sits 40px lower */
  .ps-team .ps-team-lead{grid-template-columns:1fr;gap:48px}
  .ps-team .ps-team-lead .ps-member{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:22px;align-items:center}
  .ps-team .ps-team-lead .ps-member-ph::before{transform:translate(8px,8px)}
  .ps-team .ps-team-lead .ps-member-name{font-size:24px}
  .ps-team .ps-team-lead .ps-member-tx{gap:10px;font-size:15px}
  .ps-team .ps-team-lead .ps-member-kicker{font-size:15px}
  .ps-team .ps-team-lead .ps-member-go{width:44px;height:44px;margin-top:8px}
  .ps-team .ps-team-grid{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:16px;row-gap:40px}
  .ps-team .ps-team-grid>li:nth-child(3n+2){top:0}
  .ps-team .ps-team-grid>li:nth-child(even){top:40px}
  .ps-team .ps-member-tx{padding-top:14px}
  .ps-team .ps-member-name{font-size:18px}
  .ps-team .ps-member-role{font-size:15px}
  .ps-team .ps-team-grid .ps-member-tx{margin-top:-40px;padding:14px 12px 16px;border-radius:0 0 18px 18px}
  .ps-team .ps-team-grid .ps-member-tx::before{left:12px;width:22px}
  .ps-team .ps-team-grid .ps-member:hover .ps-member-tx::before{width:calc(100% - 24px)}
  .ps-team .ps-team-lead .ps-member-tx{margin:0 0 0 -28px;padding:18px 14px 16px}
  .ps-team .ps-team-grid .ps-member-tx{flex:0 0 auto}   /* on phones each panel fits its own words */
  .ps-team .ps-team-grid a.ps-member .ps-member-name::after{display:none}   /* no room beside the name; the whole card is still the link */
  .ps-team .ps-team-lead .ps-member-tx::before{left:14px;width:22px}
}
@media (prefers-reduced-motion:reduce){
  .ps-team .ps-member-ph,.ps-team .ps-member-ph img,.ps-team .ps-member-ph::before,.ps-team .ps-member-ph::after,.ps-team .ps-member-go,.ps-team .ps-member-name,.ps-team .ps-member-tx,.ps-team .ps-member-tx::before{transition:none}
  .ps-team .ps-member:hover .ps-member-ph,.ps-team .ps-member:hover .ps-member-ph img,.ps-team .ps-team-grid .ps-member:hover .ps-member-tx{transform:none}
}

/* ---------- Board of Advisors page (pathshodh_advisors.php): the same cards, three across (the user's choice), the middle column set lower ---------- */
.ps-advisors .ps-team-in{padding-bottom:clamp(96px,13vw,200px)}   /* 96px on phones, like the Team page */
@media (min-width:768px){
  .ps-advisors .ps-team-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .ps-advisors .ps-team-grid>li:nth-child(even){top:0}
  .ps-advisors .ps-team-grid>li:nth-child(3n+2){top:clamp(40px,5vw,72px)}
}

/* ---------- Team page graphics (2026-11-16, the user: "Build B"; mock-ups A and B shown first). Team page only: every rule here is
   kept off the Board of Advisors page (.ps-advisors), which has no co-founders' band and no role icons. No words are added.
   1 a fine dot grid in the navy co-founders' band
   2 a cool surface (--bg-cool) behind the grid, a dot grid fading in at two corners, the portraits as white cards on it
   3 a wavy join between band and grid with fine measurement-trace lines along it (../images/team/team-ribbon.svg; its light fill is
     --bg-cool, #EEF1F5, written into the file), and the traces once more above the footer (team-traces.svg).
     Both files are drawn by E:\work_scratch\team\mock\make_motif.py; they stretch to the width, the lines keep their thickness.
   4 a round crimson badge with a role icon on the top edge of each grid card's name panel (span.ps-role-ic, aria-hidden) ---------- */
.ps-team:not(.ps-advisors){position:relative;background:var(--bg-cool)}
.ps-team:not(.ps-advisors)>.ps-team-in{position:relative;z-index:1;padding-top:clamp(40px,4.5vw,72px)}
.ps-team:not(.ps-advisors)::before{content:"";position:absolute;left:0;right:0;bottom:0;height:clamp(84px,10.4vw,166px);z-index:0;pointer-events:none;
  background:url(../images/team/team-traces.svg) center bottom/100% 100% no-repeat}
.ps-team:not(.ps-advisors)::after{content:"";position:absolute;left:0;right:0;bottom:0;height:min(1100px,55%);z-index:0;pointer-events:none;
  background:radial-gradient(circle,rgba(18,23,53,.3) 1px,transparent 1.6px) 0 0/26px 26px;
  -webkit-mask-image:radial-gradient(55% 60% at 100% 100%,#000 0,transparent 72%),radial-gradient(45% 55% at 0 55%,#000 0,transparent 72%);
          mask-image:radial-gradient(55% 60% at 100% 100%,#000 0,transparent 72%),radial-gradient(45% 55% at 0 55%,#000 0,transparent 72%)}
/* :where() keeps this below the hover rule above, so the hover shadow still shows */
:where(.ps-team:not(.ps-advisors)) .ps-team-grid .ps-member-ph{background:#fff;box-shadow:0 1px 2px rgba(18,23,53,.08),0 18px 40px -20px rgba(18,23,53,.35)}

.ps-team .ps-team-top::before{background:
  radial-gradient(circle,rgba(255,255,255,.075) 1px,transparent 1.6px) 0 0/26px 26px,
  radial-gradient(60% 80% at 85% 10%,rgba(169,45,49,.22),transparent 70%),
  radial-gradient(50% 70% at 10% 100%,rgba(101,133,203,.16),transparent 70%)}
.ps-team .ps-team-top::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:clamp(100px,13.2vw,210px);z-index:-1;pointer-events:none;
  background:url(../images/team/team-ribbon.svg) center bottom/100% 100% no-repeat}
.ps-team .ps-team-in--top{padding-bottom:clamp(150px,15vw,250px)}

.ps-team .ps-team-grid .ps-member-tx .ps-role-ic{position:absolute;right:18px;top:-18px;display:flex;align-items:center;justify-content:center;width:36px;height:36px;
  border-radius:50%;background:var(--action-primary);color:#fff;box-shadow:0 0 0 3px var(--bg-dark)}
.ps-team .ps-team-grid .ps-member-tx .ps-role-ic svg{display:block;width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
@media (max-width:991px){
  .ps-team .ps-team-grid .ps-member-tx .ps-role-ic{right:12px;top:-15px;width:30px;height:30px}
  .ps-team .ps-team-grid .ps-member-tx .ps-role-ic svg{width:16px;height:16px}
}
@media (max-width:767px){
  .ps-team .ps-team-top::after{height:84px;background-size:230% 100%;background-position:35% bottom}
  .ps-team .ps-team-in--top{padding-bottom:132px}
  .ps-team:not(.ps-advisors)>.ps-team-in{padding-top:36px}
  .ps-team:not(.ps-advisors)::before{height:76px;background-size:230% 100%;background-position:60% bottom}
  .ps-team .ps-team-grid .ps-member-tx .ps-role-ic{top:-20px}   /* the name starts 14px down on phones: the badge ends 10px down, clear of it */
}

/* ---------- Co-founders: light name panels (2026-11-16, the user: "Build A"; mock-ups A and B shown first). No words are added.
   1 the name panel turns white, so the names stand out on the navy band (name navy, role grey, "Co-Founder" crimson)
   2 the thin offset frame behind the portrait becomes a solid crimson block at its top left corner, with a square of dots
     at its bottom left corner; both sit behind the picture (the portrait box is its own layer)
   3 the arrow button is filled crimson; on hover it darkens, the block tucks in and the bar on the panel grows ---------- */
.ps-team .ps-team-lead .ps-member-tx{border-color:transparent;background:#fff;box-shadow:0 34px 60px -28px rgba(0,0,0,.75)}
.ps-team .ps-team-lead .ps-member-name,.ps-team .ps-team-lead a.ps-member:hover .ps-member-name{color:var(--text-primary)}
.ps-team .ps-team-lead .ps-member-tx,.ps-team .ps-team-lead .ps-member-role{color:var(--text-secondary)}
.ps-team .ps-team-lead .ps-member-kicker{color:var(--text-accent);font-weight:500}
.ps-team .ps-team-lead .ps-member-tx::before{width:56px;height:4px}
.ps-team .ps-team-lead a.ps-member:hover .ps-member-tx{border-color:transparent}
.ps-team .ps-team-lead a.ps-member:hover .ps-member-tx::before{width:96px}
.ps-team .ps-team-lead .ps-member-go{border-color:var(--action-primary);background:var(--action-primary);color:#fff}
.ps-team .ps-team-lead a.ps-member:hover .ps-member-go{border-color:var(--action-primary-hover);background:var(--action-primary-hover)}
/* keyboard focus: white ring on this band. !important because the theme sets a{outline:none!important} (style.min.css) */
.ps-team .ps-team-lead a.ps-member:focus-visible{outline:3px solid #fff!important;outline-offset:8px}

.ps-team .ps-team-lead .ps-member-ph{isolation:isolate}
.ps-team .ps-team-lead .ps-member-ph::before{inset:auto;left:-16px;top:-16px;width:48%;height:40%;z-index:-1;transform:none;border:0;border-radius:var(--radius-lg);background:var(--action-primary);opacity:1}
.ps-team .ps-team-lead .ps-member:hover .ps-member-ph::before{transform:translate(6px,6px)}
.ps-team .ps-team-lead .ps-member-ph::after,.ps-team .ps-team-lead .ps-member:hover .ps-member-ph::after{display:block;left:-26px;right:auto;bottom:-26px;width:132px;height:132px;z-index:-1;transform:none;
  background:radial-gradient(circle,rgba(255,255,255,.5) 1.6px,transparent 2.2px) 0 0/16px 16px}
.ps-team .ps-team-lead .ps-member-ph img{box-shadow:0 30px 60px -26px rgba(0,0,0,.7)}
@media (max-width:767px){
  .ps-team .ps-team-lead .ps-member-ph::before{left:-10px;top:-10px}
  .ps-team .ps-team-lead .ps-member-ph::after,.ps-team .ps-team-lead .ps-member:hover .ps-member-ph::after{left:-14px;bottom:-14px;width:84px;height:84px;background-size:14px 14px}
  .ps-team .ps-team-lead .ps-member-tx::before{width:36px}
  .ps-team .ps-team-lead a.ps-member:hover .ps-member-tx::before{width:36px}
}
@media (prefers-reduced-motion:reduce){
  .ps-team .ps-team-lead .ps-member:hover .ps-member-ph::before{transform:none}
}
