*, *::before, *::after{
  box-sizing: border-box;
}


/* Floating page shell (like the mockup) */
.app-bg{
  min-height: 100vh;
  padding: 26px 0 40px;
  background: #eef1f3;
}
.page-shell{
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  background: var(--bg);
  border-radius: 22px;
  box-shadow: 0 30px 70px rgba(17,24,39,.14);
  overflow: hidden;
  border: 1px solid rgba(17,24,39,.08);
}

/* Constrain the internal container a bit tighter inside the shell */
.page-shell .container{
  width: min(100%, calc(var(--max) + 40px));
}
/* Make sure containers never touch the screen edge */
.container{
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 0 16px;              /* key for mobile */
  box-sizing: border-box;
}


/* Perfect Lens — minimal, modern, technology-first
   Palette: near-white + graphite + green accent
*/

:root{
  --bg: #ffffff;
  --bg-soft: #f5f7f8;
  --text: #111827;
  --muted: #6b7280;
  --line: rgba(17,24,39,.10);
  --shadow: 0 18px 40px rgba(17,24,39,.08);
  --radius: 18px;
  --radius-sm: 12px;
  --green: #7ed957; /* tweak to match brand */
  --green-deep: #2ea44f;
  --max: 1120px;
}

*{ box-sizing: border-box; }
html, body { height: 100%; }
body{
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: #eef1f3;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.45;
}

a{ color: inherit; text-decoration: none; }
a.text-link{
  color: var(--green-deep);
  text-decoration: none;
  border-bottom: 1px solid rgba(46,164,79,.25);
}
a.text-link:hover{ border-bottom-color: rgba(46,164,79,.60); }

.container{
  width: min(100%, calc(var(--max) + 40px));
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link{
  position: absolute;
  left: -999px;
  top: 12px;
  background: #000;
  color: #fff;
  padding: 10px 12px;
  border-radius: 10px;
  z-index: 9999;
}
.skip-link:focus{ left: 12px; }

.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: .2px;
}
.brand-name{ text-transform: uppercase; font-size: 14px; }
.brand-mark{ display: block; }

.nav{
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  color: rgba(17,24,39,.78);
}
.nav a{
  padding: 10px 10px;
  border-radius: 10px;
}
.nav a:hover{
  background: rgba(126,217,87,.10);
  color: rgba(17,24,39,.95);
}
.nav-cta{
  border: 1px solid rgba(46,164,79,.25);
  color: rgba(17,24,39,.90);
  margin-right:10px;
  background-color: rgba(46,164,79,.25);
}
.nav-cta:hover{
  border-color: rgba(46,164,79,.55);
}

.nav-toggle{
  display: none;
  background: transparent;
  border: 0;
  padding: 10px;
  border-radius: 12px;
}
.nav-toggle:hover{ background: rgba(17,24,39,.06); }
.nav-toggle span{
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(17,24,39,.75);
  margin: 5px 0;
  border-radius: 2px;
}

/* HERO */
.hero{
  padding: 18px 0 0;
}
.hero-inner{
  padding-top: 8px;
}
.hero-media{
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: radial-gradient(circle at 20% 20%, rgba(126,217,87,.12), transparent 40%),
              linear-gradient(180deg, #f7fbff, #eef2f5);
}
.hero-video{
  width: 100%;
  height: min(56vh, 560px);
  display: block;
  object-fit: cover;
  filter: saturate(1.02) contrast(1.03);
}
.hero-overlay{
  position: absolute;
  inset: auto 0 0 0;
  padding: 18px 18px 16px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.32));
  color: rgba(255,255,255,.95);
}
.hero-kicker{
  margin: 0;
  font-weight: 500;
  letter-spacing: .2px;
}
.hero-note{
  margin: 6px 0 0;
  font-size: 12px;
  opacity: .82;
}

/* STATEMENT */
.statement{
  padding: 26px 0 10px;
}
.statement-text{
  margin: 0;
  text-align: center;
  font-size: clamp(18px, 2.2vw, 22px);
  color: rgba(17,24,39,.82);
}

/* SECTIONS */
.section{
  padding: 62px 0;
}
.section-alt{
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-head{
  margin-bottom: 18px;
}
.section-head.row{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
}
h2{
  margin: 0;
  font-size: 34px;
  letter-spacing: -0.4px;
}
h3{
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: -0.2px;
}
p{ margin: 0; }
.muted{ color: var(--muted); }

/* GRIDS */
.grid-2{
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 26px;
  align-items: center;
}
.media-card{
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(17,24,39,.06);
}
.media-card img{
  width: 100%;
  height: auto;
  display: block;
}

.bullets{
  padding: 6px 0;
}
.checklist{
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}
.checklist li{
  position: relative;
  padding-left: 28px;
  margin: 12px 0;
  color: rgba(17,24,39,.85);
}
.checklist li::before{
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(126,217,87,.18);
  border: 1px solid rgba(46,164,79,.35);
}
.checklist li::after{
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  width: 6px;
  height: 3px;
  border-left: 2px solid rgba(46,164,79,.9);
  border-bottom: 2px solid rgba(46,164,79,.9);
  transform: rotate(-45deg);
}

.mini-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pill{
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.65);
}

/* CARDS */
.cards-3{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card{
  border: 1px solid var(--line);
  background: rgba(255,255,255,.8);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  box-shadow: 0 10px 22px rgba(17,24,39,.06);
}
.card-icon{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(126,217,87,.18), rgba(126,217,87,.08));
  border: 1px solid rgba(46,164,79,.22);
  box-shadow: 0 10px 18px rgba(17,24,39,.06);
  margin-bottom: 10px;
}
.card-icon img{ width: 20px; height: 20px; }

/* TILES */
.tiles-3{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.tile{
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(17,24,39,.05);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.tile:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(17,24,39,.10);
  border-color: rgba(46,164,79,.25);
}
.tile p{
  margin-top: 8px;
  color: rgba(17,24,39,.70);
}
/* ---------- Wide Tile (single, text-heavy) ---------- */

.tile-wide{
  display: block;
  padding: 22px 22px;
  border-radius: 18px;
  border: 1px solid rgba(17,24,39,.10);
  background: rgba(255,255,255,.85);
  box-shadow: 0 12px 26px rgba(17,24,39,.06);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.tile-wide:hover{
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(17,24,39,.10);
  border-color: rgba(46,164,79,.22);
}

.tile-wide h3{
  margin: 0 0 10px;
}

.tile-wide p{
  margin: 0 0 12px;
  color: rgba(17,24,39,.72);
  max-width: 95ch;
  line-height: 1.6;
}

/* Optional: meta row + links inside the wide tile */
.tile-wide .tile-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.tile-wide .tile-meta .pill{
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(17,24,39,.10);
  background: rgba(255,255,255,.65);
  color: rgba(17,24,39,.78);
  font-size: 13px;
  text-decoration: none;
}

.tile-wide .tile-meta .pill:hover{
  border-color: rgba(46,164,79,.22);
}

/* Optional: a 2-column internal layout for a lot of text */
.tile-wide-grid{
  display: grid;
  grid-template-columns: 1.4fr .9fr;
  gap: 18px;
  align-items: start;
}

@media (max-width: 900px){
  .tile-wide-grid{
    grid-template-columns: 1fr;
  }
}
/* ---------- Feature Tiles (2x2, matches tile language) ---------- */

.tiles-2x2{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (max-width: 900px){
  .tiles-2x2{
    grid-template-columns: 1fr;
  }
}

/* Optional: slightly tighter tile text for feature cards */
.tile.feature p{
  margin: 0;
  max-width: 70ch;
}

/* PUBLICATIONS PREVIEW */
.pub-list{
  display: grid;
  gap: 14px;
}
.pub{
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.85);
}
.pub-date{
  font-weight: 600;
  color: rgba(17,24,39,.70);
}
.pub-title{
  font-weight: 600;
  margin-bottom: 4px;
}
.pub-meta{
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 10px;
}

/* CONTACT */
.contact-grid{
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
  align-items: start;
}
.contact-block{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(17,24,39,.05);
}
.contact-line{
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.contact-line:last-child{ border-bottom: 0; }
.label{
  display: inline-block;
  width: 84px;
  color: var(--muted);
}
.contact-note{
  padding: 18px;
  border-radius: var(--radius);

  border: 1px solid rgba(46,164,79,.18);
}
/* --- Contact section (responsive like Core Team) --- */

.contact-grid{
  display: grid;
  gap: 24px;
  margin-top: 18px;
}

.contact-grid-2{
  grid-template-columns: 1fr 1fr;
  max-width: 980px;
  margin: 0 auto; /* centers the grid like team-grid-2 */
  align-items: stretch;
}

@media (max-width: 900px){
  .contact-grid-2{
    grid-template-columns: 1fr;
    max-width: 520px;
  }
}

.contact-card{
  padding: 20px;
}

.contact-line{
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  padding: 8px 0;
}

.contact-line .label{
  color: rgba(17,24,39,.55);
  font-size: 0.95rem;
}

.contact-map{
  padding: 12px;
  overflow: hidden;
}

.contact-map img{
  width: 100%;
  height: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}
/* --- Contact section mobile fixes --- */

.contact-grid-2{
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Ensure cards can shrink inside grid */
.contact-card,
.contact-map{
  min-width: 0;
}

/* Prevent long strings from forcing overflow */
.contact-line a,
.contact-line{
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* On small screens, stack label/value vertically for nicer fit */
@media (max-width: 560px){
  .contact-line{
    grid-template-columns: 1fr;   /* label above value */
    gap: 4px;
    padding: 10px 0;
  }

  .contact-line .label{
    font-size: 0.85rem;
  }

  .contact-map img{
    max-height: 220px;            /* slightly smaller on phones */
    object-fit: cover;
  }
}



/* ---------- Two-tile applications with images ---------- */

.tiles-2{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (max-width: 900px){
  .tiles-2{
    grid-template-columns: 1fr;
  }
}

/* Tile with image header */
.tile-media{
  overflow: hidden;
  padding: 0;               /* image sits flush */
}

.tile-media .tile-img{
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid rgba(17,24,39,.10);
}
.tile-media .tile-img-wrap{
  background: linear-gradient(
    180deg,
    rgba(245,247,249,1),
    rgba(238,241,244,1)
  );
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 220px;
  border-bottom: 1px solid rgba(17,24,39,.08);
}

.tile-media .tile-img{
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.tile-media .tile-body{
  padding: 18px 18px 16px;
}

.tile-media .tile-body h3{
  margin: 0 0 8px;
}

.tile-media .tile-body p{
  margin: 0 0 14px;
  color: rgba(17,24,39,.72);
  line-height: 1.6;
  max-width: 80ch;
}

/* Link row inside tile */
.tile-media .tile-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

/* If your site already has .text-link you can use it,
   otherwise this gives a consistent modern link style. */
.tile-media .learn-link{
  text-decoration: none;
  color: rgba(17,24,39,.86);
  font-weight: 500;
}

.tile-media .learn-link:hover{
  text-decoration: underline;
}

/* FOOTER */
.site-footer{
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 26px 0;
}
.footer-inner{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
}
.footer-left .footer-brand{ font-weight: 600; }
.footer-center{ text-align: center; }
.footer-right{
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  color: rgba(17,24,39,.72);
}
.footer-right a:hover{ color: rgba(17,24,39,.92); }

/* RESPONSIVE */
@media (max-width: 920px){
  .grid-2{ grid-template-columns: 1fr; }
  .cards-3{ grid-template-columns: 1fr; }
  .tiles-3{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
  .footer-inner{ grid-template-columns: 1fr; text-align: center; }
  .footer-right{ justify-content: center; }
}

@media (max-width: 760px){
  .nav-toggle{ display: inline-block; }
  .nav{
    position: absolute;
    top: 62px;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    gap: 8px;
    background: rgba(255,255,255,.96);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 10px;
    box-shadow: 0 18px 40px rgba(17,24,39,.10);
  }
  .nav.open{ display: flex; }
  .nav a{ padding: 12px 12px; }
  h2{ font-size: 30px; }
  .hero-video{ height: min(52vh, 520px); }
}

.brand-mark{ margin-left: 10px;}

/* ---------- Hashtag pills ---------- */

.pill.tag{
  cursor: default;
  pointer-events: none;
  font-weight: 500;
  letter-spacing: .2px;
}

.pill.tag::before{
  content: "#";
  opacity: .5;
  margin-right: 2px;
}

/* ---------- Research page layout helpers ---------- */

/* Two application tiles */
.tiles-2{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 900px){
  .tiles-2{
    grid-template-columns: 1fr;
  }
}

/* Media tile */
.tile-media{
  padding: 0;
  overflow: hidden;
}

.tile-media .tile-img{
  width: 100%;
  height: 200px;
  object-fit: contain;
  background: rgba(255,255,255,.85);
  border-bottom: 1px solid rgba(17,24,39,.08);
}

/* Tile content */
.tile-media .tile-body{
  padding: 18px 18px 16px;
}

.tile-media h3{
  margin: 0 0 8px;
}

.tile-media p{
  margin: 0 0 14px;
  color: rgba(17,24,39,.72);
  line-height: 1.6;
}

/* Actions */
.tile-actions{
  display: flex;
  gap: 12px;
}

.learn-link{
  text-decoration: none;
  font-weight: 500;
  color: rgba(17,24,39,.85);
}

.learn-link:hover{
  text-decoration: underline;
}

/* Image cards in section content */
.media-card img{
  width: 100%;
  height: auto;
  display: block;
}

/* Small badge helper (optional future use) */
.image-badge{
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255,255,255,.85);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  color: rgba(17,24,39,.75);
}

/* --- Research section spacing polish (fix "too close together") --- */

/* Give the two-column row a bit more air */
#invivo .grid-2{
  gap: 28px;              /* was effectively tighter */
  align-items: start;
}

/* Add space between the big text tile and the image/checklist row */
#invivo .tile-wide{
  margin-bottom: 18px;
}

/* If your in-vivo image and the checklist still feel tight, add a tiny top offset */
#invivo .bullets{
  padding-top: 2px;
}

/* Optional: make the left image card not crowd the row edges */
#invivo .media-card{
  margin: 0;
}

/* ---------- Team page (modernized) ---------- */

.prose{
  max-width: 880px;
}

.work-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.work-card{
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(17,24,39,.08);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 28px rgba(0,0,0,.04);
}

.work-card h3{
  margin: 0 0 8px;
}

.work-card p{
  margin: 0;
  color: rgba(17,24,39,.72);
  line-height: 1.6;
}

@media (max-width: 900px){
  .work-grid{
    grid-template-columns: 1fr;
  }
}

/* Universe card */
.universe-card{
  padding: 14px;
  overflow: hidden;
}

.universe-img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
}

/* Advisory board grid */
.advisors-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 14px;
}

@media (max-width: 1100px){
  .advisors-grid{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px){
  .advisors-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px){
  .advisors-grid{ grid-template-columns: 1fr; }
}

.advisor-card{
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(17,24,39,.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0,0,0,.04);
  display: flex;
  flex-direction: column;
}

.advisor-photo{
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  background: rgba(255,255,255,.85);
  border-bottom: 1px solid rgba(17,24,39,.08);
}

.advisor-meta{
  padding: 14px 14px 10px;
}

.advisor-name{
  font-weight: 600;
  color: rgba(17,24,39,.9);
  margin-bottom: 4px;
}

.advisor-affil{
  color: rgba(17,24,39,.7);
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 8px;
}

.advisor-tagline{
  color: rgba(17,24,39,.72);
  font-size: 14px;
  line-height: 1.5;
}

.advisor-btn{
  margin: 0 14px 14px;
  border-radius: 999px;
  border: 1px solid rgba(17,24,39,.12);
  background: rgba(255,255,255,.92);
  padding: 10px 12px;
  font-weight: 500;
  cursor: pointer;
  transition: transform .06s ease, box-shadow .2s ease;
}

.advisor-btn:hover{
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
}

.advisor-btn:active{
  transform: translateY(1px);
}
.advisor-card .image-wrap img{
object-fit: contain;
background: rgba(255,255,255,.6);
}


/* Modal */
.modal-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(17,24,39,.42);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 999;
}

.modal-backdrop.open{
  display: flex;
}

.modal{
  width: min(860px, 100%);
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(17,24,39,.10);
  border-radius: 20px;
  box-shadow: 0 22px 70px rgba(0,0,0,.18);
  overflow: hidden;
}

.modal-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid rgba(17,24,39,.08);
}

.modal-title{
  font-weight: 600;
  font-size: 18px;
  color: rgba(17,24,39,.92);
}

.modal-sub{
  margin-top: 2px;
  color: rgba(17,24,39,.7);
  font-size: 14px;
}

.modal-close{
  border: 1px solid rgba(17,24,39,.12);
  background: rgba(255,255,255,.92);
  border-radius: 999px;
  padding: 8px 10px;
  cursor: pointer;
  line-height: 1;
}

.modal-body{
  padding: 16px;
  color: rgba(17,24,39,.78);
  line-height: 1.7;
  white-space: pre-line;
}

/* In memoriam */
.memoriam-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 14px;
}

@media (max-width: 900px){
  .memoriam-grid{ grid-template-columns: 1fr; }
}

.memoriam-card{
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(17,24,39,.08);
  border-radius: 18px;
  padding: 14px;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: center;
  box-shadow: 0 10px 28px rgba(0,0,0,.04);
}

.memoriam-photo{
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid rgba(17,24,39,.08);
  background: rgba(255,255,255,.85);
}

.memoriam-card h3{
  margin: 0 0 6px;
}

.memoriam-card p{
  margin: 0;
}

/* --- Core Team --- */

.team-grid{
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

.team-grid-2{
  grid-template-columns: repeat(2, 1fr);
  max-width: 820px;
  margin: 24px auto 0;   /* <-- centers the grid */
}



.team-grid-2{
  grid-template-columns: repeat(2, 1fr);
  max-width: 820px;
}

.team-grid-3{
  grid-template-columns: repeat(3, 1fr);
  margin-top: 32px;
}

@media (max-width: 900px){
  .team-grid-2,
  .team-grid-3{
    grid-template-columns: 1fr;
    max-width: 420px;
  }
}

.team-card{
  background: rgba(255,255,255,.85);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(17,24,39,.06);
}

.team-card img{
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 12px;
}

.team-card h3{
  margin: 6px 0 2px;
}

.team-card .role{
  font-size: 0.95rem;
  color: rgba(17,24,39,.65);
}

/* --- Advisor cards: taller portrait image area --- */

.advisor-card{
  background: rgba(255,255,255,.85);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(17,24,39,.06);
  display: flex;
  flex-direction: column;
}

/* Taller image region */
.advisor-card .image-wrap{
  width: 100%;
  height: 260px;                 /* ? key change: more vertical space */
  background: rgba(17,24,39,.04);
  overflow: hidden;
}

/* Image behavior */
.advisor-card .image-wrap img{
  width: 100%;
  height: 100%;
  object-fit: cover;             /* fills area */
  object-position: center top;   /* keeps faces visible */
  display: block;
}

/* Text area */
.advisor-card .card-body{
  padding: 16px 18px 18px;
}

.advisor-card h3{
  margin: 0 0 6px;
}

.advisor-card p{
  margin: 0 0 8px;
  color: rgba(17,24,39,.72);
  line-height: 1.5;
}
