/* Editorial solution sequence. Every application image retains its full frame. */
.solution-context{font-size:12px;color:var(--muted);line-height:1.7;padding-top:24px;border-top:1px solid var(--line);margin-bottom:16px}
.solution-row{display:grid;grid-template-columns:minmax(0,.72fr) minmax(0,1.28fr);grid-template-areas:'copy visual';gap:clamp(40px,5vw,80px);align-items:center;padding-block:clamp(56px,7vw,96px);scroll-margin-top:40px}
.solution-row:not(:last-child){padding-block-end:clamp(28px,4vw,56px)}
.solution-row+.solution-row{border-block-start:1px solid var(--line);padding-block-start:clamp(28px,4vw,56px)}
.solution-row-reverse{grid-template-columns:minmax(0,1.28fr) minmax(0,.72fr);grid-template-areas:'visual copy'}
.solution-row>.solution-copy{grid-area:copy}
.solution-row>.solution-preview{grid-area:visual}
.solution-copy{min-width:0}
.solution-copy .eyebrow{color:var(--muted);margin-bottom:24px}
.solution-copy h2{margin:0;font-family:var(--display-font);font-size:clamp(30px,3vw,44px);line-height:1.1;letter-spacing:-.04em;font-weight:500;max-width:460px}
.solution-copy>p:not(.eyebrow){font-size:16px;line-height:1.8;max-width:390px;color:var(--muted);margin-top:24px}
.solution-copy>.text-link{margin-top:20px;font-size:13px}
.portal-more{--icon-size:20px;--icon-gap:12px;border-block-start:1px solid var(--line);padding-block-start:clamp(24px,3vw,40px)}
.portal-more h2{margin:0;font-size:clamp(22px,2vw,28px);line-height:1.2;letter-spacing:-.035em;font-weight:500}
.portal-more dl{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr));gap:clamp(22px,2.5vw,36px) clamp(24px,3vw,48px);margin:clamp(24px,2.5vw,36px) 0 0}
.portal-more dl>div{scroll-margin-block-start:32px}
.portal-more dt{display:grid;grid-template-columns:var(--icon-size) 1fr;align-items:start;column-gap:var(--icon-gap);font-size:16px;font-weight:600;line-height:1.45}
.portal-more dt svg{width:var(--icon-size);height:var(--icon-size);margin-block-start:.1em;color:var(--muted)}
.portal-more dd{margin:6px 0 0;margin-inline-start:calc(var(--icon-size) + var(--icon-gap));max-width:44ch;color:var(--muted);font-size:15px;line-height:1.6}
@media(min-width:1100px){.portal-more dl{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* A complete image, an even matte and one quiet action; no artificial crop. */
.solution-preview{position:relative;min-width:0;margin:0}
.solution-preview-stage{padding:clamp(12px,1.7vw,24px);background:var(--paper);border:1px solid var(--line)}
.work-directory .solution-preview-stage{background:var(--paper-light)}
.solution-screen{width:100%;background:#f8fafc;border:1px solid color-mix(in srgb,var(--line) 60%,transparent);border-radius:4px;overflow:hidden}
.solution-screenshot{display:block;width:100%;height:auto;max-width:100%;object-fit:contain;filter:saturate(.8)}
.solution-preview figcaption{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:0 16px;color:var(--muted);line-height:1.6;margin-top:8px;text-align:left}
.solution-preview-open{display:inline-flex;align-items:center;gap:8px;min-height:44px;font-size:12px;color:var(--ink)}
.solution-preview-open svg{width:16px;height:16px;flex:none}
.solution-preview-open::before{content:'';position:absolute;inset:0;cursor:zoom-in}
.solution-preview-open:focus-visible{outline:none}
.solution-preview-open:focus-visible::before{outline:2px solid var(--accent);outline-offset:5px}
.solution-preview-large .solution-preview-stage{padding:24px}
.solution-preview-large .solution-screenshot{filter:none}
@media(hover:hover){
 .solution-preview:hover .solution-preview-open>span{text-decoration:underline;text-underline-offset:4px}
 .solution-preview:hover .solution-screen{border-color:var(--muted)}
}

/* Zebly is our own product: a separate, wide feature after the client work. */
.solution-product{margin-top:clamp(32px,5vw,64px);padding:clamp(32px,5vw,64px);background:var(--dark);color:var(--on-dark);scroll-margin-top:32px}
.solution-product-intro{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:clamp(32px,6vw,80px);align-items:start}
.zebly-wordmark{display:block;max-width:100%;height:auto}
.solution-product-heading .zebly-wordmark{width:clamp(148px,16vw,240px)}
.product-byline{display:flex;align-items:center;gap:8px;margin-block-start:14px;color:var(--on-dark-muted);font-size:13px;line-height:1.5}
.product-byline img{display:block;width:clamp(86px,7vw,100px);height:auto}
.solution-product-body>p{font-size:17px;line-height:1.8;max-width:560px;color:var(--on-dark-muted)}
.solution-product .product-actions{margin-top:24px;gap:12px 28px}
.solution-product .text-link,.solution-product .product-external{color:var(--on-dark);font-size:13px}
.solution-product .button-light{background:var(--on-dark);color:var(--dark)}
.solution-product .button-light:hover{background:white}
.solution-product>.solution-preview{margin-top:48px}
.solution-product .solution-preview-stage{padding:0;background:transparent;border:0}
.solution-product .solution-screen{border:1px solid var(--dark-rule);border-radius:4px}
.solution-product .solution-screenshot{filter:saturate(.88)}
.solution-product .solution-preview figcaption{color:var(--on-dark-muted)}
.solution-product .solution-preview-open{color:var(--on-dark)}
.solution-product :focus-visible{outline-color:var(--on-dark)}
.solution-product .solution-preview-open:focus-visible::before{outline-color:var(--on-dark)}

@media(max-width:960px){
 .solution-row,.solution-row-reverse{grid-template-columns:1fr;grid-template-areas:'copy' 'visual';gap:32px;padding-block:48px}
 .solution-copy h2{font-size:38px;max-width:580px}
 .solution-copy>p:not(.eyebrow){max-width:620px;margin-top:20px}
 .solution-copy .eyebrow{margin-bottom:16px}
 .solution-copy>.text-link{margin-top:16px}
 .solution-preview-stage{padding:20px}
 .solution-product{padding:32px;margin-top:48px}
 .solution-product-intro{grid-template-columns:1fr;gap:32px}
 .solution-product-body>p{max-width:640px}
 .solution-product>.solution-preview{margin-top:32px}
}
@media(max-width:480px){
 .solution-context{padding-top:20px;margin-bottom:0}
 .solution-row,.solution-row-reverse{padding-block:36px;gap:24px}
 .solution-copy h2{font-size:32px}
 .solution-copy>p:not(.eyebrow){font-size:16px;line-height:1.75}
 .solution-preview-stage,.solution-preview-large .solution-preview-stage{padding:8px}
 .solution-preview figcaption{gap:0 12px;margin-top:8px}
 .solution-preview figcaption>span{font-size:11px}
 .solution-preview-open{font-size:12px}
 .solution-product{padding:24px 20px;margin-top:40px;margin-inline:-8px}
 .solution-product-intro{gap:24px}
 .solution-product-body>p{font-size:16px;line-height:1.75}
 .solution-product .product-actions{gap:4px 24px;margin-top:20px}
 .solution-product>.solution-preview{margin-top:28px}
}

/* Portfolio plates: a complete product view and a closer look at the same screen. */
.portfolio-figure{margin:0;min-width:0}
.solution-row>.portfolio-figure{grid-area:visual}
.portfolio-figure>figcaption{color:var(--muted);font-size:12px;line-height:1.5;margin-top:10px}
.folio{position:relative;isolation:isolate;container-type:inline-size;overflow:hidden;--mat:#dac6cb;--type:#4c323f;background:var(--mat);color:var(--type)}
.folio-inventory,.folio-receipts{--mat:#d6dacf;--type:#34463d}
.folio-receivables{--mat:#e4c6be;--type:#643c38}
.assistant-film{--mat:#522139;--type:#fff0f6;background:linear-gradient(120deg,#71324e 0%,#56243b 46%,#401a2d 100%)}
.folio-label{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:clamp(15px,3.5cqw,30px) 4.6%;position:relative;z-index:1}
.folio-label>span{display:flex;align-items:center;gap:8px;font-size:clamp(14px,2.2cqw,18px);font-weight:550;letter-spacing:-.03em}
.folio-label .cv-icon{width:20px;height:20px;flex:none}
.folio-label>small{font-size:clamp(10px,1.6cqw,13px);letter-spacing:.045em}
.folio-composition{position:relative;height:55cqw;perspective:125cqw}
.folio-sheet,.folio-detail{position:absolute;overflow:hidden;background:#fff;border-radius:1.4cqw;box-shadow:0 .22cqw .16cqw #35162424,0 2.3cqw 3.4cqw -1.3cqw #35162442}
.folio img{display:block;width:100%;height:auto}
.folio-sheet{width:82%;right:6%;top:1%;transform:rotateX(9deg) rotateY(11deg) rotateZ(3deg)}
.folio-detail{width:54%;left:5%;bottom:8%;border:.65cqw solid #fff;border-radius:1cqw;transform:rotateZ(-1.5deg)}
.folio-receivables .folio-sheet{left:6%;right:auto;transform:rotateX(9deg) rotateY(-11deg) rotateZ(-3deg)}
.folio-receivables .folio-detail{left:auto;right:5%;transform:rotateZ(1.5deg)}
.solution-canvas{position:relative}
/* Each still has its own label when all three are shown together. */
.film-screens{grid-row:2;perspective:135cqw;display:grid;grid-template-columns:minmax(0,1fr);justify-items:center;gap:22px;padding:2% 4.6% 3%}
.film-frame{margin:0;width:100%;min-width:0;align-self:center}
.film-frame picture{display:block}
.film-frame img{border-radius:1.25cqw;background:white;box-shadow:0 2px 3px #34463d13,0 12px 24px -12px #34463d52}
.film-frame figcaption{margin-top:8px;font-size:14px}
.film-captions{display:flex;gap:3%;list-style:none;margin:0;padding:4% 5% 4.6%}
.film-caption{flex:1;min-width:0;padding-top:9px;border-top:1px solid #aa7e94;line-height:1.35;font-size:clamp(12px,2cqw,16px);font-weight:500}
.folio-receipts{--tab-line:#839587}
.folio-receipts[data-enhanced] .film-frame figcaption{display:none}
@container(min-width:561px){
 .folio-receipts .film-frame{transform:rotateX(4deg) rotateY(-5deg) rotateZ(-1.5deg)}
}
.portfolio-large{max-width:1080px;margin-inline:auto}
@container(max-width:480px){
 .folio-composition{height:64cqw}
 .folio-sheet{width:88%;right:5%;transform:rotateX(5deg) rotateY(6deg) rotateZ(2deg)}
 .folio-receivables .folio-sheet{left:5%;transform:rotateX(5deg) rotateY(-6deg) rotateZ(-2deg)}
 .folio-detail{width:72%;bottom:8%}
 .folio-label small{font-size:11px}
 .film-captions{gap:8px}
 .film-screens{padding-inline:4.6%}
}

/* The chapter starts at the work anchor, before the client introduction. */
.studio-work.section-pad{padding-block-start:clamp(30px,4.5vw,72px)}
.featured-project{
 display:grid;
 gap:clamp(28px,3vw,44px);
 padding-bottom:clamp(24px,4vw,52px);
}
.featured-opening{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;
 gap:clamp(32px,4vw,72px);container-type:inline-size;
}
.featured-project-label{
 grid-column:1/-1;
 display:flex;
 align-items:center;
 gap:clamp(16px,2vw,32px);
}
.featured-project-label h2{
 flex:1;
 display:flex;
 align-items:center;
 gap:inherit;
 font-size:clamp(21px,1.8vw,28px);
 line-height:1.2;
 letter-spacing:-.025em;
 font-weight:500;
 color:var(--accent);
}
.featured-project-label h2::after{content:"";flex:1;border-top:1px solid var(--line)}
.featured-client-logo{display:block;width:clamp(106px,9vw,136px);height:auto}
.featured-opening h1{font-size:clamp(60px,6.6cqw,112px);font-weight:500;letter-spacing:-.07em;line-height:.92;max-width:9ch;text-wrap:balance}
.featured-intro{max-width:55ch;font-size:clamp(17px,1.5vw,23px);line-height:1.55;text-wrap:pretty}
.featured-intro p+p{margin-top:.8em}
.project-teaser{padding-block-end:0}
.teaser-layout{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);align-items:center;gap:clamp(32px,6vw,90px)}
.teaser-copy h3{max-width:14ch;font-size:clamp(40px,4.6vw,74px);line-height:1.02;letter-spacing:-.055em;font-weight:500;text-wrap:balance}
.teaser-copy p{margin-block:20px 24px;max-width:47ch;font-size:clamp(16px,1.3vw,20px);line-height:1.6;color:var(--muted);text-wrap:pretty}
.teaser-copy .button,.solution-product .button-light{gap:10px;font-size:15px;font-weight:600}
.project-end .text-link{font-size:15px;color:var(--accent)}
.project-teaser .assistant-slides{padding-block-end:6%}
.project-back{display:inline-flex;align-items:center;gap:8px;min-height:44px;font-size:14px;color:var(--muted)}
.project-back svg{width:17px;height:17px;order:-1;transform:rotate(180deg)}
.project-back:is(:hover,:focus-visible) span{text-decoration:underline;text-underline-offset:.25em}
.featured-project-label .project-back{margin-inline-end:auto}
.project-end{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 20px;border-block-start:1px solid var(--line);margin-block-start:clamp(32px,5vw,64px);padding-block-start:12px}
.work-jumps,.work-jumps nav{display:flex;align-items:center;flex-wrap:wrap;column-gap:clamp(14px,2.4vw,32px)}
.work-jumps{justify-content:space-between;border-block:1px solid var(--line);padding-block:4px}
.work-jump{display:inline-flex;align-items:center;gap:7px;min-height:44px;font-size:14px;font-weight:500}
.work-jump svg{width:16px;height:16px;flex:none;transform:rotate(90deg);color:var(--accent)}
.work-jump:is(:hover,:focus-visible) span{text-decoration:underline;text-underline-offset:.22em}
.other-project{color:var(--muted)}
@media(max-width:760px){
 .teaser-layout{grid-template-columns:minmax(0,1fr);gap:18px}
 .featured-opening{grid-template-columns:1fr;gap:18px}
 .featured-opening h1{font-size:clamp(50px,8.5vw,66px);line-height:1;max-width:none}
 .featured-project{grid-template-columns:1fr;gap:16px}
 .featured-project-label{margin-bottom:10px}
 .work-jumps{align-items:stretch;flex-direction:column}
 .work-jumps nav{column-gap:16px}
 .work-jump{width:fit-content}
 .other-project{align-self:flex-start}
}
.capability-rows article{scroll-margin-top:24px}
