.portfolio-rotator{min-width:0;background:#171717;color:#fff;border-radius:15px;overflow:hidden}.portfolio-slide[hidden],.portfolio-controls[hidden]{display:none}.portfolio-slide{margin:0}.portfolio-photo{display:block;width:100%;height:auto;aspect-ratio:1.85;object-fit:cover;filter:grayscale(1);background:#444}.portfolio-card{display:grid;grid-template-columns:48px 1fr;gap:14px;align-items:start;padding:20px}.portfolio-mark{display:block;object-fit:contain;background:#fff;filter:none;border-radius:6px;padding:4px}.portfolio-card h2{font-size:clamp(24px,3vw,37px);letter-spacing:-.045em;margin:3px 0}.hero .portfolio-card p{font-size:14px;line-height:1.4;margin:0 0 8px}.hero .portfolio-card .mono{font-size:11px;color:#ddd}.portfolio-card a{font-weight:700;text-underline-offset:4px}.portfolio-controls{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #555;padding:8px 16px;font-size:13px}.portfolio-controls button{color:#fff;background:#262626;border:1px solid #777;border-radius:6px;min-width:40px;min-height:40px;padding:0 10px;font:inherit;cursor:pointer}.portfolio-controls [data-prev],.portfolio-controls [data-next]{font-size:22px}.portfolio-controls button:hover{background:#555}.portfolio-detail{display:grid;grid-template-columns:1fr 1fr;gap:30px;align-items:center}.portfolio-detail .portfolio-photo{border-radius:10px}.case-brand{display:flex;align-items:center;gap:10px;margin-top:18px}.custom-builds>p:not(.mono){font-size:19px;line-height:1.55;max-width:68ch}.build-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin:28px 0}.build-grid article{border-top:1px solid #aaa;padding-top:14px}.build-grid p{line-height:1.55}@media(max-width:740px){.portfolio-detail{grid-template-columns:1fr}.build-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:480px){.build-grid{grid-template-columns:1fr}}

.case-library-link:has(.portfolio-rotator){display:grid;grid-template-columns:minmax(0,3fr) minmax(0,4fr);gap:clamp(24px,5vw,64px);align-items:center;padding-top:32px}
.case-library-copy .pill{margin-top:18px}
.case-library-link .portfolio-card p{font-size:14px;line-height:1.4;margin:0 0 8px}
.case-library-link .portfolio-card .mono{font-size:11px;color:#ddd}
@media(max-width:740px){.case-library-link:has(.portfolio-rotator){grid-template-columns:1fr}}

.case-library-link:has(.study-row){display:block}
.case-library-link:has(.study-row) .case-library-copy{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}
.case-library-copy .pill{margin-top:0}
.case-library-link:has(.study-row) .case-library-copy p{flex-basis:100%;order:3;font-size:16px}
.study-row{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-top:24px}
.study-tile{display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:17px 13px;min-width:0;border:1px solid #bbb;border-radius:9px;background:#fff;color:#171717;text-decoration:none;transition:background .15s,border-color .15s}
.study-tile:hover{background:#f3f3f3;border-color:#333}
.study-tile strong{font-size:15px;line-height:1.3;overflow-wrap:anywhere}
.study-tile span{font-size:12px;text-decoration:underline;text-underline-offset:3px;margin-top:auto}
.study-tile .portfolio-mark{width:38px;height:38px}
@media(max-width:950px){.study-row{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:500px){.study-row{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.study-tile{transition:none}}

.study-row{display:flex;gap:20px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding:2px;padding:3px 3px 18px;margin-top:14px;scrollbar-color:#666 #ddd;scrollbar-width:thin}
.study-row .study-tile{display:block;flex:0 0 350px;padding:0;overflow:hidden;scroll-snap-align:start;border-radius:13px}
.study-visual{position:relative}
.study-visual .portfolio-photo{width:100%;height:190px;aspect-ratio:auto;object-fit:cover}
.study-logo{position:absolute;bottom:12px;left:15px;background:#fff;border:1px solid #ddd;border-radius:9px;padding:8px;box-shadow:0 2px 12px #0002}
.study-logo .portfolio-mark{width:51px;height:51px;padding:0;border-radius:0}
.study-content{padding:19px;display:flex;flex-direction:column;min-height:195px}
.study-content h4{font-size:23px;line-height:1.15;letter-spacing:-.04em;margin:0 0 10px}
.case-library-link .study-content p{font-size:15px;line-height:1.5;margin:0 0 16px;color:#444}
.study-content span{font-weight:700;font-size:13px;margin-top:auto}
.study-scroll-controls{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}
.study-scroll-controls button{width:42px;height:42px;border:1px solid #777;border-radius:50%;font-size:26px;background:#fff;cursor:pointer;color:#171717}
.study-scroll-controls button:disabled{opacity:.35;cursor:default}
.study-row:focus-visible,.study-scroll-controls button:focus-visible{outline:2px solid #171717;outline-offset:3px}
@media(max-width:500px){.study-row .study-tile{flex-basis:85%;min-width:260px}.study-visual .portfolio-photo{height:175px}}

.study-heading{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.study-heading .study-logo{position:static;flex:none;padding:0;border:0;box-shadow:none;background:transparent}
.study-heading .portfolio-mark{width:36px;height:36px}
.study-heading h4{margin:0;min-width:0}
.study-content>span{align-self:flex-end;text-align:right}
