/* Catalog cards share the home page caption layout; preserve catalog controls and native links. */
#works{gap:24px}
#works .home-industry-card{border:1px solid #263349;border-radius:16px;background:#151F38;transition:border-color .18s}
#works .home-industry-card:hover{border-color:#9676D6;transform:none}
#works .home-industry-card__visual{border-bottom:1px solid #263349}
#works .home-industry-card__visual img{object-position:top;transition:none}
#works .home-industry-card:hover .home-industry-card__visual img{transform:none}
#works .home-industry-card__body{flex:1}
#works .home-industry-card__caption b{margin:0;font-size:22px;line-height:1.3;overflow-wrap:break-word}
#works .portfolio-brand{position:static;display:flex;align-items:center;justify-content:center;grid-column:2;grid-row:1;align-self:center;justify-self:end;width:132px;height:56px;margin:0;padding:9px;background:#fff;border:1px solid rgba(15,23,42,.12);border-radius:8px;pointer-events:none}
#works .portfolio-brand--dark{background:#101729;border-color:rgba(196,181,253,.25)}
#works .portfolio-brand picture{display:block;width:100%;height:100%}
#works .portfolio-brand img{display:block;width:100%;height:100%;object-fit:contain}
@media(max-width:1000px){#works .home-industry-card__caption b{font-size:19px}#works .portfolio-brand{width:108px;height:48px}}
@media(max-width:420px){#works .home-industry-card__caption b{font-size:18px}#works .portfolio-brand{width:94px;height:44px;padding:7px}}
@media(prefers-reduced-motion:reduce){#works .home-industry-card{transition:none}}


/* One optical system for every portfolio brand. Pure SVG, original proportions. */
#works .home-industry-card[data-has-brand] .home-industry-card__body{gap:18px;grid-template-columns:minmax(0,1fr) auto;align-items:center;min-height:132px}
#works .home-industry-card[data-has-brand] .home-industry-card__caption{min-width:0}
#works .home-industry-card .portfolio-brand{box-sizing:border-box;position:static;display:flex;align-items:center;justify-content:center;grid-column:2;grid-row:1;align-self:center;justify-self:end;flex:none;width:calc(var(--brand-height,36px) * var(--brand-ratio,3) + 28px);min-width:72px;max-width:220px;height:64px;margin:0;padding:13px;border:1px solid rgba(15,23,42,.14);border-radius:8px;background:#fff;pointer-events:none}
#works .home-industry-card .portfolio-brand img{display:block;width:auto;height:var(--brand-height,36px);max-width:100%;max-height:var(--brand-height,36px);object-fit:contain}
#works .home-industry-card .portfolio-brand--dark{background:#101729;border-color:#3c465e}
#works .home-industry-card .portfolio-brand--black{background:#000;border-color:#3c465e}
#works .home-industry-card .portfolio-brand--graphite{background:#2b3038;border-color:#485062}
@media(max-width:1100px) and (min-width:701px),(max-width:600px){#works .home-industry-card[data-has-brand] .home-industry-card__body{grid-template-columns:minmax(0,1fr);gap:20px}#works .home-industry-card .portfolio-brand{grid-column:1;grid-row:2;justify-self:start}}

/* Detailed native bus line-art needs more optical height than dense wordmarks. */
#works .home-industry-card .portfolio-brand--himkomplekt{padding:7px 13px}
