/* Client's October review: each case explains the work behind the objects. */
#project-grid.portfolio-v2-grid .project-card:nth-child(n){grid-column:span 6;padding:0;margin:0}
#project-grid.portfolio-v2-grid:not(.is-filtered) .project-card:nth-child(4n+1),#project-grid.portfolio-v2-grid:not(.is-filtered) .project-card:nth-child(4n+4){grid-column:span 7}
#project-grid.portfolio-v2-grid:not(.is-filtered) .project-card:nth-child(4n+2),#project-grid.portfolio-v2-grid:not(.is-filtered) .project-card:nth-child(4n+3){grid-column:span 5}
#project-grid.portfolio-v2-grid .project-card[hidden]{display:none}
#project-grid .pv2-stage{width:100%;max-width:100%;height:clamp(275px,29vw,420px)}
#project-grid .pv2-stage>.pv2-main-image{height:100%;width:100%;object-fit:cover}
#project-grid [data-slug=amstel-vibes] .pv2-main-image,#project-grid [data-slug=coco-leve] .pv2-main-image{object-fit:contain;background:#e8e1d6}
#project-grid [data-slug=shoptime-baby] .pv2-main-image{object-fit:contain;background:#fff;padding:20px}
#project-grid [data-slug=amazfit-conceito] .pv2-main-image,#project-grid [data-slug=funny-girl] .pv2-main-image{object-fit:contain;background:#e8e1d6}
#project-grid [data-slug=matilda] .pv2-main-image{object-fit:contain;padding:22px;background:#e8e1d6}
#project-grid [data-slug=qualicorp] .pv2-main-image{object-fit:contain;background:#dce6ee}
#project-grid [data-slug=arteris] .pv2-stage{padding:30px;background:#f7f1e7;display:block}
#project-grid [data-slug=arteris] .pv2-main-image,#project-grid [data-slug=olx] .pv2-main-image,#project-grid [data-slug=zurich-santander] .pv2-main-image{object-fit:contain;padding:18px}
#project-grid [data-slug=neon] .pv2-main-image{width:72%;object-fit:cover}
#project-grid .pv2-without-photo .pv2-stage{padding:0;background:#edc05c;color:#241028}
.pv2-narrative{position:relative;display:flex;flex-direction:column;justify-content:center;min-height:100%;width:100%;max-width:100%;padding:55px 8%;overflow:hidden}
.pv2-narrative:after{content:'';position:absolute;width:100%;height:65%;border:1px solid currentColor;border-radius:50%;transform:rotate(-22deg);right:-35%;bottom:-10%;opacity:.2}
.pv2-narrative>svg{position:absolute;width:48px;fill:currentColor;top:45px;right:9%}
.pv2-narrative>span:first-of-type{font-size:11px;text-transform:uppercase;letter-spacing:.1em;margin-bottom:20px}
.pv2-narrative>strong{font:700 clamp(30px,3.6vw,58px)/1.05 Hanken,sans-serif;letter-spacing:-.045em;max-width:95%;overflow-wrap:break-word;position:relative;z-index:1}
.pv2-narrative-detail{font:italic 500 clamp(20px,2.1vw,29px)/1.2 Fraunces,Georgia,serif;max-width:85%;margin-top:15px;position:relative;z-index:1}
.pv2-collage{display:grid;width:100%;height:100%;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;gap:4px;background:#241028}
.pv2-collage>span{display:block;position:relative;min-width:0;min-height:0;overflow:hidden}
.pv2-collage img{object-fit:cover;height:100%;width:100%}
.pv2-collage small:empty{display:none}
.pv2-collage small{position:absolute;bottom:8px;left:8px;background:#f7f1e7ed;color:#241028;padding:5px 8px;font-size:9px}
.portfolio-more{display:flex;justify-content:center;margin-top:40px!important}
.portfolio-more button{border:1px solid #ffc24b;color:#ffc24b;padding:15px 25px;min-height:48px;font-size:13px;display:inline-flex;gap:30px;align-items:center}
.portfolio-more button:hover{background:#ffc24b;color:#241028}
.portfolio-more button[hidden]{display:none}
.case-scope{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:0;margin:0 0 30px;border-top:1px solid #24102830;border-bottom:1px solid #24102830}
.case-scope li{font-size:13px;line-height:1.5;padding:17px 22px 17px 0;display:flex;gap:12px;align-items:baseline}
.case-scope li:before{content:'✦';font-size:12px;flex:none;color:#765627}
.project-dialog{width:min(100%,1280px);height:100dvh;max-width:100%;max-height:100dvh;margin:0 auto;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.project-dialog .dialog-shell{padding:0 40px 40px}
.project-dialog .dialog-top{position:sticky;top:0;z-index:3;background:var(--ivory);padding:14px 0;min-height:72px;gap:20px}
.project-dialog .dialog-top button{min-width:80px;min-height:44px;border:1px solid var(--line)}
.case-media{display:flex;flex-direction:column;gap:48px}
.case-media-row{display:grid;grid-template-columns:minmax(0,1fr);gap:24px;width:100%;align-items:start;justify-items:center}
.case-media-row--portrait{grid-template-columns:repeat(var(--case-media-columns,1),minmax(0,1fr));align-self:center}
.case-media-row--portrait[data-columns="1"]{max-width:360px}
.case-media-row--portrait[data-columns="2"]{max-width:744px}
.case-media-row--portrait[data-columns="3"]{max-width:1128px}
.case-media-item{margin:0;min-width:0;width:100%;max-width:var(--case-media-width,100%)}
.case-media-item:has(img[src$="/zs-catalogo-sem-valores.webp"]),.case-media-item:has(img[src$="/arteris-catalogo-sem-valores.webp"]){max-width:960px}
.case-media-item:has(img[src*="/olx-plataforma-"]){max-width:900px}
.case-chapter{border-top:1px solid var(--line);padding-top:28px;margin-top:10px}
.case-chapter h3{font:600 clamp(25px,3vw,40px)/1.15 Fraunces,Georgia,serif;margin:0;letter-spacing:-.025em}
.case-chapter p{max-width:680px;margin:14px 0 0;font-size:15px;line-height:1.65;color:#685760}
.case-chapter+.case-media-row{margin-top:-16px}
.case-image-frame,.case-video-frame{display:flex;align-items:center;justify-content:center;background:#eae4db;overflow:hidden}
.case-image-frame img{display:block;width:auto;height:auto;max-width:100%;object-fit:contain}
.case-media-item figcaption{font-size:12px;line-height:1.6;margin-top:13px;color:#685760}
.case-video-frame{background:#160820}
.case-video-frame video{display:block;width:auto;height:auto;max-width:100%;object-fit:contain}
.case-video figcaption:before{content:'▶';font-size:10px;margin-right:10px;color:var(--plum)}
.case-disclaimer{font-size:12px;line-height:1.6;color:#685760;margin-top:28px}
.case-footer{display:flex;align-items:center;justify-content:space-between;gap:24px;border-top:1px solid var(--line);margin-top:48px;padding-top:22px}
.case-footer .text-link{font-size:13px;min-height:44px;text-align:left}
.project-dialog .dialog-intro>p{white-space:pre-line;line-height:1.65}
.detail-story .people-story-image{aspect-ratio:3/2;object-fit:contain}
.enc-merch-note{display:flex;align-items:center;justify-content:space-between;gap:30px;margin-top:48px;padding-top:24px;border-top:1px solid #24102850}
.enc-merch-note p{max-width:650px;font-size:15px;line-height:1.55;margin:0}
.enc-merch-note strong{display:block;font-size:19px;margin-bottom:5px}
.enc-merch-note a{font-size:13px;flex:none;border-bottom:1px solid currentColor;padding:8px 0;display:flex;gap:20px}
.brand-sequence{gap:50px;padding-right:50px}
.brand-sequence .rail-logo{width:180px}
.brand-sequence .rail-logo img{max-width:175px;max-height:70px}
.brand-sequence .rail-logo-zs{width:245px}
.brand-sequence .rail-logo-zs img{max-width:230px}
.brand-sequence .rail-logo-narrow img{max-width:100px}
.brand-sequence .rail-logo-dark img{background:#241028;padding:14px;box-sizing:border-box;max-width:165px;max-height:70px;mix-blend-mode:normal}
.brand-track{animation-duration:70s}
.motion-paused .brand-sequence{grid-template-columns:repeat(5,minmax(0,1fr))}
.motion-paused .brand-sequence figure:last-child{grid-column:auto;max-width:none;justify-self:stretch}
@media(max-width:680px){
 .project-dialog .dialog-shell{padding:0 20px 28px}
 .project-dialog .dialog-top{min-height:66px;padding:10px 0}
 .case-media{gap:30px}
 .case-media-row--portrait[data-columns]{grid-template-columns:minmax(0,1fr);max-width:100%;gap:30px}
 .case-media-item figcaption{font-size:11px;margin-top:10px}
 .case-footer{align-items:flex-start;flex-direction:column;gap:14px;margin-top:32px}
 #project-grid.portfolio-v2-grid .project-card:nth-child(n){grid-column:1}
 #project-grid .pv2-stage{height:auto;aspect-ratio:1.3}
 #project-grid .pv2-narrative{position:absolute;inset:0;padding:50px 24px 26px}
 #project-grid .pv2-narrative>svg{width:32px;top:30px}
 #project-grid .pv2-narrative>strong{font-size:36px}
 #project-grid .pv2-narrative-detail{font-size:24px}
 #project-grid .pv2-narrative>span:first-of-type{font-size:9px;margin-bottom:12px}
 #project-grid .pv2-without-photo .pv2-stage{aspect-ratio:auto;min-height:280px}
 #project-grid .pv2-without-photo .pv2-narrative{position:relative;min-height:280px;padding:50px 24px 28px}
 #project-grid .pv2-narrative-detail{max-width:100%}
 #project-grid .pv2-collage{position:absolute;inset:0}
 #project-grid .pv2-collage small{font-size:8px;padding:4px 5px;bottom:5px;left:5px}
 #project-grid [data-slug=arteris] .pv2-stage{padding:0}
 #project-grid [data-slug=neon] .pv2-main-image{width:100%}
 .case-scope{grid-template-columns:1fr;margin-bottom:22px}
 .case-scope li{padding:10px 0;font-size:12px}
 .case-scope li+li{border-top:1px solid #24102815}
 .enc-merch-note{align-items:flex-start;flex-direction:column;gap:15px;margin-top:32px}
 .enc-merch-note p{font-size:14px}
 .enc-merch-note strong{font-size:18px}
 .motion-paused .brand-sequence{grid-template-columns:repeat(2,minmax(0,1fr))}
 .motion-paused .brand-sequence .rail-logo{height:75px}
 .brand-sequence .rail-logo img{max-width:100%;max-height:60px}
 .brand-sequence .rail-logo-narrow img{max-width:90px}
 .portfolio-more{margin-top:25px!important}
}
