#portfolio-hit-area{position:fixed;inset:0;z-index:8}
body[data-chapter="portfolio"] #story{pointer-events:none}
.portfolio-chapter{max-width:350px;justify-content:center;height:100%;min-height:0;padding:12px 0}
.portfolio-chapter>:not(#portfolio-companies){flex-shrink:0}
.portfolio-chapter .eyebrow{margin-bottom:18px}
.portfolio-chapter h2{font-size:clamp(2.6rem,4.4vw,4.5rem)}
.portfolio-intro{font-size:15px;line-height:1.6;color:var(--soft);margin-top:18px;max-width:290px}
#portfolio-count{font-size:12px;color:var(--soft);margin-top:24px}
#portfolio-companies{width:100%;margin-top:10px;pointer-events:auto;overflow-y:auto;max-height:min(44svh,405px);min-height:80px;flex:0 1 auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#93a7b2 #071d2b44;padding-right:12px}
.portfolio-company{display:flex;align-items:center;justify-content:space-between;gap:16px;text-align:left;border-top:1px solid var(--line);width:100%;padding:12px 0;min-height:65px}
.portfolio-company:last-child{border-bottom:1px solid var(--line)}
.portfolio-company strong{display:block;font-size:18px;font-weight:500}
.portfolio-company small{display:block;font-size:12px;color:var(--soft);margin-top:4px}
.portfolio-company>span:last-child{color:var(--gold);font-size:21px}
.portfolio-company:hover strong{color:var(--gold)}
#portfolio-explore{margin-top:18px;pointer-events:auto}
.portfolio-chapter.is-hidden #portfolio-companies,.portfolio-chapter.is-hidden #portfolio-explore{pointer-events:none}
body[data-chapter="portfolio"] .shade{background:linear-gradient(90deg,#03131dee,rgba(3,19,29,.78) 25%,rgba(3,19,29,.04) 62%),linear-gradient(0deg,#03131d99,transparent 30%,transparent 83%,#03131d66)}
#portfolio-dialog{color-scheme:light;background:#fffaf0;color:var(--navy);width:min(780px,calc(100% - 40px));max-height:calc(100svh - 48px);border:0;border-radius:4px;padding:48px;overflow:auto;overscroll-behavior:contain;box-shadow:0 28px 120px #0007}
#portfolio-dialog::backdrop{background:#03131dc9;backdrop-filter:blur(6px)}
#portfolio-close{position:absolute;right:18px;top:16px;width:44px;height:44px;font-size:28px;line-height:1}
#portfolio-close:hover{background:#071d2b0c;border-radius:50%}
#portfolio-company-logo{width:170px;height:66px;object-fit:contain;object-position:left center;margin-bottom:26px}
#portfolio-company-logo[data-theme="dark"]{background:var(--navy);padding:12px;object-position:center;border-radius:3px}
#portfolio-company-tag{font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:#506572;margin-bottom:12px}
#portfolio-company-name{font-size:clamp(2rem,4vw,3.25rem);line-height:1.08;max-width:560px}
#portfolio-company-building{font-size:20px;line-height:1.5;margin-top:20px;max-width:570px}
.portfolio-founders{margin-top:30px;padding-top:24px;border-top:1px solid #071d2b26}
.portfolio-founders h3{font-size:11px;font-weight:500;text-transform:uppercase;letter-spacing:.14em;color:#506572;margin-bottom:10px}
#portfolio-company-founders{font-size:17px;line-height:1.6}
#portfolio-company-before{font-size:14px;line-height:1.65;color:#3f5664;margin-top:14px}
#portfolio-portraits{display:flex;flex-wrap:wrap;gap:12px;margin-top:22px}
#portfolio-portraits img{width:calc((100% - 24px)/3);max-width:150px;aspect-ratio:1;object-fit:cover;border-radius:2px;background:#ece7dd}
#portfolio-portrait-caption{font-size:11px;color:#506572;margin-top:8px}
#portfolio-company-site{margin-top:24px;border-color:#071d2b50}
#portfolio-company-site:hover{color:#7e6000;border-color:#7e6000}
@media(max-width:1000px) and (min-width:701px){.portfolio-chapter{max-width:290px}.portfolio-company strong{font-size:16px}}
@media(max-width:700px){
  body[data-chapter="portfolio"] #story{inset:105px var(--gutter) 88px;display:flex;align-items:flex-end}
  body[data-chapter="portfolio"] .stage>video,body[data-chapter="portfolio"] .stage>img{object-position:68% 50%!important}
  body[data-chapter="portfolio"] .shade{background:linear-gradient(0deg,#03131df7 8%,#03131ddd 36%,#03131d33 67%,#03131d33)}
  .portfolio-chapter{min-height:0;height:auto;max-height:100%;max-width:100%;width:100%;padding:14px 0}
  .portfolio-chapter .eyebrow{margin-bottom:9px}.portfolio-chapter h2{font-size:2.25rem}
  .portfolio-intro{font-size:13px;margin-top:10px;max-width:100%}
  #portfolio-count{margin-top:16px}#portfolio-companies{margin-top:8px;max-height:32svh}.portfolio-company{padding:11px 0;min-height:62px}.portfolio-company strong{font-size:16px}.portfolio-company small{font-size:11px}
  #portfolio-explore{font-size:12px;margin-top:7px;padding:7px 0}
  #portfolio-dialog{width:calc(100% - 24px);padding:28px 24px;max-height:calc(100svh - 24px)}
  #portfolio-company-logo{width:145px;height:55px;margin-bottom:22px}#portfolio-company-building{font-size:18px}
}
@media(max-height:650px){.portfolio-chapter{justify-content:flex-start}.portfolio-chapter .eyebrow{margin-bottom:8px}.portfolio-chapter h2{font-size:2.3rem}.portfolio-intro{margin-top:10px}#portfolio-companies{margin-top:14px}.portfolio-company{min-height:60px;padding:10px 0}#portfolio-explore{margin-top:8px}}
@media(max-width:700px) and (max-height:640px){body[data-chapter="portfolio"] #story{display:block}}
