/* Outbound revision: preserve the approved demo animation and coloured panels. */
.team-bar{background:var(--mist);color:var(--navy);border-bottom:1px solid var(--sky)}
/* Equal outer slots centre the sentence on the viewport, not the leftover space. */
.team-bar-inner{display:grid;grid-template-columns:170px minmax(0,1fr) 170px;align-items:center;gap:32px;padding-block:24px}
.team-princeton{display:block;width:170px;max-width:100%;justify-self:start}
.team-princeton img{width:100%;height:auto;filter:brightness(0)}
.team-bar p{margin:0;min-width:0;text-align:center;font-size:clamp(17px,1.45vw,21px);line-height:1.55;text-wrap:balance}
.team-map{width:140px;height:100px;max-width:100%;justify-self:end;object-fit:contain;border-radius:var(--radius-panel,12px)}
@media(max-width:1100px) and (min-width:761px){.team-bar-inner{grid-template-columns:140px minmax(0,1fr) 140px;gap:24px}.team-princeton{width:140px}.team-map{width:110px;height:79px}}
@media(max-width:760px){.team-bar-inner{grid-template-columns:48px minmax(0,1fr) 48px;gap:10px;padding-block:22px}.team-princeton{width:32px}.team-map{width:48px;height:42px}.team-bar p{font-size:16px;line-height:1.5}}
@media(max-width:370px){.team-bar-inner{grid-template-columns:40px minmax(0,1fr) 40px;gap:8px}.team-princeton{width:28px}.team-map{width:40px;height:36px}.team-bar p{font-size:15px}}

/* Original caption-strip timeline, without the removed captions. */
.animation-progress{min-height:0;margin-top:22px}
.animation-progress .strip-cell{height:3px;padding-top:0}
@media(max-width:760px){.mobile-progress{margin-top:12px;margin-bottom:0}}

/* Founder credit sits in the existing Princeton/Brooklyn bar. */
.team-bar .founder-credit{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:8px;white-space:nowrap}
.founder-credit a{display:inline-flex;align-items:center;gap:8px;flex:none;text-decoration:none}
.founder-credit a:focus-visible{outline:2px solid var(--navy);outline-offset:5px;border-radius:2px}
.founder-portrait{position:relative;flex:none}
.founder-name{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.founder-credit img{width:44px;height:44px;object-fit:cover;object-position:center 20%;border-radius:var(--radius-panel,12px);flex:none}

/* One centered tile at the original artwork size and card inset. */
.risk-flow{width:min(100%,360px);margin:0 auto;min-width:0;scroll-margin-top:90px}
.risk-flow canvas{display:block;width:100%;aspect-ratio:1;height:auto;padding:12px;background:var(--mist);border-radius:var(--radius-panel,12px);box-sizing:border-box}
@media(min-width:761px){
 body[data-page="home"]{display:flex;flex-direction:column;min-height:100svh}
 body[data-page="home"] main{display:flex;flex:1 0 auto;flex-direction:column}
 /* Share spare height between the two bands; keep the footer at its natural height. */
 body[data-page="home"] .home-hero{display:grid;align-content:center;flex:2 0 auto;padding-block:40px}
 body[data-page="home"] .team-bar{display:grid;align-content:center;flex:1 0 auto}
 .risk-hero-layout{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,1fr);column-gap:clamp(22px,4vw,60px)}
 .risk-hero-layout .demo-stage{display:contents}
 .home-hero .risk-hero-layout h1{grid-column:1;grid-row:1;margin:0;text-align:left;transform:translateX(var(--risk-heading-inset,0px))}
 .risk-hero-layout .risk-flow{grid-column:2;grid-row:1;width:100%;margin:0;position:relative}
 .risk-hero-layout .risk-flow canvas{position:absolute;top:0;left:var(--risk-demo-center,50%);transform:translateX(-50%);height:100%;width:auto}
 .risk-hero-layout .sector-copy{grid-column:1/-1;grid-row:2;text-align:center;margin:clamp(32px,5vw,70px) 0 0}
}
@media(max-width:760px){
 .risk-hero-layout .demo-stage{display:flex;flex-direction:column;gap:clamp(22px,5vw,40px);margin-top:clamp(26px,7vw,48px)}
 .risk-hero-layout .risk-flow{width:min(100%,360px)}
 .risk-hero-layout .sector-copy{text-align:center;text-wrap:pretty;margin:0 auto;max-width:52ch}
}
@media(max-width:430px){
 .team-bar-inner > div{display:contents}
 .team-bar-inner > div > p:not(.founder-credit){grid-area:1 / 2}
 .team-bar-inner .founder-credit{grid-area:2 / 1 / auto / -1;margin-top:2px}
}
@media(max-width:374px){
 .cw-header.is-compact .brand-morph{width:min(220px,calc(100vw - 152px))}
}
