/* Founder portrait and author section */
.project.project-with-portrait{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:clamp(40px,6vw,90px);align-items:center}
.founder-portrait{position:relative;margin:0;max-width:440px;justify-self:center;width:100%}
.founder-portrait img{width:100%;aspect-ratio:4/5;height:auto;object-fit:cover;object-position:center 20%;border-radius:200px 200px 18px 18px;box-shadow:0 24px 50px -20px rgba(0,49,91,.22);border:1px solid rgba(255,255,255,.8);outline:1px solid rgba(0,49,91,.08);outline-offset:-1px;background:#e7ebe5;transition:transform .4s ease,box-shadow .4s ease;image-rendering:-webkit-optimize-contrast}
.founder-portrait:hover img{transform:translateY(-3px) scale(1.01);box-shadow:0 30px 60px -22px rgba(0,49,91,.28)}
.founder-portrait figcaption{position:absolute;bottom:-18px;left:20px;right:20px;display:flex;align-items:center;justify-content:space-between;gap:15px;background:rgba(255,255,255,.94);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border:1px solid rgba(206,222,233,.9);border-radius:12px;padding:13px 18px;box-shadow:0 12px 28px rgba(0,49,91,.09);color:#00315b}
.founder-portrait figcaption span{display:flex;flex-direction:column;gap:2px}
.founder-portrait figcaption strong{font-family:var(--serif,Georgia,serif);font-size:19px;font-weight:500;letter-spacing:-.4px}
.founder-portrait figcaption small{font-size:8px;letter-spacing:1.2px;color:#55748a;font-weight:600}
.founder-portrait-mark{width:22px;height:24px;fill:#00315b;opacity:.85;flex-shrink:0}

/* Legacy team layout support */
.project.project-team{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);align-items:center;gap:clamp(36px,5vw,76px)}
.team-intro h2{font-size:clamp(40px,4vw,58px);line-height:1.15;margin-bottom:25px}
.team-intro>p:not(.eyebrow){font-size:13px;line-height:1.9;max-width:420px;margin-bottom:22px}
.team-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.team-card{padding:27px 24px 25px;background:#f3f6f8;border:1px solid #dce6ed;border-radius:14px;min-width:0}
.team-avatar{position:relative;width:156px;max-width:100%;aspect-ratio:1;margin:0 auto 24px;border-radius:50%;overflow:hidden;background:#eae5dc;border:4px solid white;box-shadow:0 7px 22px #00315b0c}
.team-avatar img{position:absolute;top:0;left:0;width:200%;height:100%;max-width:none;object-fit:cover}
.team-avatar.lorenzo img{left:-100%}
.team-card h3{font:400 31px/1.2 var(--serif);color:#00315b;margin:0 0 9px}
.team-role{display:block;color:#49677f;font:500 8px/1.7 var(--sans);letter-spacing:1.1px;min-height:28px;margin-bottom:14px}
.team-card p{font-size:12px;line-height:1.85;margin:0;color:#53606c}
.team-art-credit{font-size:9px;line-height:1.7;color:#68747e;margin:14px 0 0}

@media(max-width:1000px){
  .project.project-team{grid-template-columns:1fr;gap:32px}
  .team-intro>p:not(.eyebrow){max-width:650px}
  .team-intro h2 br:first-child{display:none}
  .team-cards{max-width:720px}
  .team-avatar{width:144px}
}
@media(max-width:800px){
  .project.project-with-portrait{grid-template-columns:1fr;gap:40px}
  .founder-portrait{max-width:360px}
  .founder-portrait img{border-radius:170px 170px 14px 14px}
}
@media(max-width:600px){
  .team-intro h2{font-size:43px}
  .team-intro h2 br:first-child{display:initial}
  .team-cards{grid-template-columns:1fr;gap:15px}
  .team-card{display:grid;grid-template-columns:100px minmax(0,1fr);gap:20px;padding:22px 18px}
  .team-avatar{width:100px;margin:0;border-width:3px}
  .team-card h3{font-size:27px}
  .team-role{font-size:7px;min-height:0;margin-bottom:11px}
  .team-card p{font-size:11px;line-height:1.8}
  .team-art-credit{font-size:9px}
  .team-intro>p:not(.eyebrow){font-size:12px}
}
@media(max-width:360px){
  .team-card{grid-template-columns:78px minmax(0,1fr);gap:15px}
  .team-avatar{width:78px}
}
@media(prefers-reduced-motion:reduce){
  .founder-portrait img{transition:none}
  .founder-portrait:hover img{transform:none}
}
