/* Approved design 2: each card is a single photographic composition.
   The image contains no labels, headings or buttons. All controls remain live HTML.
   Enable only when every approved background is present. */
#products.portfolio-reference-v1 .portfolio-grid{
 grid-template-columns:minmax(0,615fr) minmax(0,451fr) minmax(0,478fr);
 gap:16px;align-items:stretch
}
#products.portfolio-reference-v1 .portfolio-card{
 container-type:inline-size;min-height:0;border-radius:16px;
 background:#e7f2f8;border-color:#cbdfe9;
 box-shadow:0 8px 19px #16354a0b
}
#products.portfolio-reference-v1 .portfolio-feature{aspect-ratio:615/648}
#products.portfolio-reference-v1 .portfolio-compact:nth-child(2){aspect-ratio:451/318}
#products.portfolio-reference-v1 .portfolio-compact:nth-child(3){aspect-ratio:478/318}
#products.portfolio-reference-v1 .portfolio-compact:nth-child(4){aspect-ratio:451/311}
#products.portfolio-reference-v1 .portfolio-more{aspect-ratio:478/311}
#products.portfolio-reference-v1 .portfolio-card::before,
#products.portfolio-reference-v1 .portfolio-card::after{content:none}
#products.portfolio-reference-v1 .portfolio-image{
 inset:0;width:100%;height:100%;aspect-ratio:auto;
 mask-image:none;-webkit-mask-image:none;z-index:-1;overflow:hidden
}
#products.portfolio-reference-v1 .portfolio-image img,
#products.portfolio-reference-v1 .portfolio-card:hover .portfolio-image img{
 width:100%;height:100%;object-fit:cover;object-position:right bottom;transform:none
}
#products.portfolio-reference-v1 .portfolio-copy{
 padding:clamp(14px,6.3cqw,26px) clamp(13px,5.7cqw,26px) clamp(13px,5.6cqw,24px);
 max-width:100%;min-height:0
}
#products.portfolio-reference-v1 .portfolio-feature .portfolio-copy{
 flex:0;padding:clamp(22px,7.3cqw,38px) clamp(19px,6.3cqw,36px);
 max-width:100%
}
#products.portfolio-reference-v1 .portfolio-copy .eyebrow{
 font-size:clamp(9px,3.2cqw,13px);line-height:1.25;
 padding:.40em 1.65em;margin:0 0 .8em;letter-spacing:.065em;
 background:#008591;white-space:nowrap
}
#products.portfolio-reference-v1 .portfolio-feature .eyebrow{
 font-size:clamp(10px,2.55cqw,14px);margin-bottom:1.45em
}
#products.portfolio-reference-v1 .portfolio-copy h3{
 font-size:clamp(19px,7.3cqw,32px);line-height:1.1;
 margin:0 0 .35em;letter-spacing:-.035em;color:#092844
}
#products.portfolio-reference-v1 .portfolio-feature h3{
 font-size:clamp(29px,9.3cqw,55px);margin-bottom:.35em
}
#products.portfolio-reference-v1 .portfolio-copy>p:not(.eyebrow){
 font-size:clamp(12px,4cqw,17px);line-height:1.31;
 max-width:66%;margin:0 0 .85em;color:#244966
}
#products.portfolio-reference-v1 .portfolio-feature .portfolio-copy>p:not(.eyebrow){
 font-size:clamp(14px,3.55cqw,20px);line-height:1.38;max-width:62%;margin-bottom:.82em
}
#products.portfolio-reference-v1 .portfolio-copy small{
 font-size:clamp(10px,3.2cqw,13.5px);line-height:1.3;margin:0 0 .6em;color:#234962
}
#products.portfolio-reference-v1 .portfolio-feature small{
 font-size:clamp(11px,3cqw,16px);margin-bottom:1.45em
}
#products.portfolio-reference-v1 .portfolio-arrow{
 width:clamp(31px,10.7cqw,44px);height:clamp(31px,10.7cqw,44px);
 background:#ffffff55;border-color:#00858c;color:#007e86
}
#products.portfolio-reference-v1 .portfolio-arrow svg{
 width:54%;height:54%
}
#products.portfolio-reference-v1 .portfolio-feature .portfolio-cta{
 font-size:clamp(12px,3.2cqw,17px);min-height:0;padding-left:.95em;
 gap:.65em;background:#ffffff55
}
#products.portfolio-reference-v1 .portfolio-feature .portfolio-arrow{
 width:clamp(34px,8.25cqw,46px);height:clamp(34px,8.25cqw,46px)
}
#products.portfolio-reference-v1 .portfolio-cta:hover .portfolio-arrow,
#products.portfolio-reference-v1 .portfolio-cta:focus-visible .portfolio-arrow,
#products.portfolio-reference-v1 .portfolio-all:hover .portfolio-arrow{background:#008694;color:#fff}
#products.portfolio-reference-v1 .portfolio-family-list{
 max-width:67%;gap:.18em;margin:0 0 .7em
}
#products.portfolio-reference-v1 .portfolio-family-list a{
 font-size:clamp(11px,3.9cqw,16px);line-height:1.28;color:#244966
}
#products.portfolio-reference-v1 .portfolio-more .portfolio-cta{margin-top:auto}
@media(max-width:1000px){
 #products.portfolio-reference-v1 .portfolio-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
 #products.portfolio-reference-v1 .portfolio-feature{grid-row:auto;grid-column:1/-1;aspect-ratio:auto;min-height:440px}
 #products.portfolio-reference-v1 .portfolio-feature .portfolio-image img{object-fit:contain;object-position:right bottom}
 #products.portfolio-reference-v1 .portfolio-feature .portfolio-copy{max-width:60%;padding:30px}
 #products.portfolio-reference-v1 .portfolio-feature .portfolio-copy>p:not(.eyebrow){max-width:90%}
}
@media(max-width:560px){
 #products.portfolio-reference-v1 .portfolio-grid{grid-template-columns:minmax(0,1fr)}
 #products.portfolio-reference-v1 .portfolio-feature{aspect-ratio:615/648;min-height:0}
 #products.portfolio-reference-v1 .portfolio-feature .portfolio-image img{object-fit:cover}
 #products.portfolio-reference-v1 .portfolio-feature .portfolio-copy{max-width:100%;padding:7.3cqw 6.3cqw}
 #products.portfolio-reference-v1 .portfolio-feature .portfolio-copy>p:not(.eyebrow){max-width:64%}
 #products.portfolio-reference-v1 .portfolio-card:not(.portfolio-feature){min-height:235px}
}
@media(prefers-reduced-motion:reduce){#products.portfolio-reference-v1 .portfolio-card{transition:none!important;transform:none!important}}

/* Explicit grid item width prevents aspect-ratio + mobile min-height from
   increasing the inline size beyond its grid track on 320px screens. */
#products.portfolio-reference-v1 .portfolio-card{width:100%;max-width:100%}
#products.portfolio-reference-v1 .portfolio-feature .portfolio-copy{flex:0 0 auto}
@media(min-width:561px) and (max-width:1000px){
 #products.portfolio-reference-v1 .portfolio-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 #products.portfolio-reference-v1 .portfolio-feature{aspect-ratio:615/648;min-height:0}
 #products.portfolio-reference-v1 .portfolio-feature .portfolio-image img{object-fit:cover}
 #products.portfolio-reference-v1 .portfolio-feature .portfolio-copy{max-width:100%;padding:6.3cqw}
 #products.portfolio-reference-v1 .portfolio-feature .portfolio-copy>p:not(.eyebrow){max-width:62%}
}
@media(max-width:360px){
 #products.portfolio-reference-v1 .portfolio-card:not(.portfolio-feature){min-height:220px}
 #products.portfolio-reference-v1 .portfolio-copy .eyebrow{font-size:9px}
 #products.portfolio-reference-v1 .portfolio-copy h3{font-size:19px}
 #products.portfolio-reference-v1 .portfolio-feature h3{font-size:29px}
 #products.portfolio-reference-v1 .portfolio-copy>p:not(.eyebrow){font-size:12px}
}

/* Number-only slanted badge; preserve the existing content flow exactly. */
#products.portfolio-reference-v1 .portfolio-copy .eyebrow{
 width:clamp(48px,15cqw,68px);
 height:2.05em;line-height:1.25;padding:.40em 0;
 position:relative;color:transparent;
}
#products.portfolio-reference-v1 .portfolio-copy .eyebrow::after{
 content:attr(data-number);position:absolute;inset:0;display:grid;place-items:center;
 color:#fff;font-size:1.45em;line-height:1;font-weight:700;letter-spacing:.015em
}

/* D product heading: one visual pill, two independent catalogue actions. */
.style-d #products .portfolio-catalogue {
 display:inline-flex;align-items:center;flex:none;align-self:flex-end;
 width:max-content;max-width:100%;padding:5px 6px 5px 16px;gap:12px;
 border-radius:999px;background:linear-gradient(115deg,#087f8c,#07556b);
 box-shadow:0 3px 9px #0b536b18;min-height:46px;
}
.style-d #products .portfolio-catalogue a {text-decoration:none;display:flex;align-items:center;justify-content:center;line-height:1.2;}
.style-d #products .portfolio-catalogue-view {color:white;gap:12px;font-size:15px;font-weight:700;white-space:nowrap;}
.style-d #products .portfolio-catalogue-view svg {width:26px;height:26px;flex:none;}
.style-d #products .portfolio-catalogue-view span {border-left:1px solid #ffffff55;padding-left:12px;}
.style-d #products .portfolio-catalogue-download {width:36px;height:36px;flex:none;border-radius:50%;background:#fff;color:#07677a;transition:background .2s,color .2s;}
.style-d #products .portfolio-catalogue-download svg {width:20px;height:20px;}
.style-d #products .portfolio-catalogue-view:hover {color:#d0f8ff;}
.style-d #products .portfolio-catalogue-download:hover {background:#d5f4fa;color:#064457;}
.style-d #products .portfolio-catalogue a:focus-visible {outline:2px solid #fff;outline-offset:2px;}
@media(max-width:760px){.style-d #products .portfolio-catalogue{margin-top:14px;}.style-d #products .portfolio-catalogue-view{font-size:14px;}}
