/* Shared work index and case-study system. Draft, October 30. */
.work-index{padding-top:42px}
.work-index .section-heading{margin-bottom:34px;align-items:end}
.work-index .section-heading h1{font-size:clamp(40px,4.8vw,70px);font-weight:400;letter-spacing:-.065em;line-height:1.02}
.work-index .work-tools{padding-bottom:28px}
.project-main{max-width:1600px;margin:0 auto;padding:32px var(--gutter) 0}
.all-work-link{display:inline-flex;font-size:12px;line-height:1.4;border-color:#17382a66;padding-bottom:5px;margin-bottom:30px}
.all-work-link:hover{color:var(--leaf);border-color:currentColor}
.project-hero{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6%;padding-bottom:54px;align-items:center}
.project-hero>div{min-width:0}
.project-cover{display:block;border-radius:8px;overflow:hidden;background:#e9ece4}
.project-cover img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;transition:transform .4s ease}
.project-cover:hover img{transform:scale(1.015)}
.project-main[data-project=builtbygirls] .project-cover img{object-position:50% 0%}
.project-title{font-family:Arial,Helvetica,sans-serif;font-size:clamp(38px,5vw,76px);font-weight:400;line-height:1.02;letter-spacing:-.065em;text-transform:none;overflow-wrap:anywhere;margin:0}
.project-category{font-size:11px;line-height:1.5;letter-spacing:0;color:#6a786b;margin:22px 0 18px}
.project-lede{font-size:clamp(17px,1.65vw,23px);line-height:1.5;letter-spacing:-.025em;max-width:37ch}
.project-content{display:grid;grid-template-columns:160px minmax(0,1fr);gap:7%;padding-top:42px;border-top:1px solid var(--line)}
.project-content>article{min-width:0}
.case-side{position:sticky;top:26px;padding-bottom:30px}
.case-side>p{font-size:11px;line-height:1.4;margin-bottom:15px;color:#7c877b}
.case-side nav{display:flex;flex-direction:column;align-items:flex-start;gap:5px}
.case-side a{font-size:12px;line-height:1.4;padding:6px 0;color:#687768;transition:color .2s}
.case-side a:hover,.case-side a[aria-current=true]{color:var(--ink);text-decoration:underline;text-underline-offset:5px;text-decoration-thickness:1px}
.case-section{display:grid;grid-template-columns:minmax(100px,.3fr) minmax(0,1fr);gap:30px;padding-bottom:36px;margin-bottom:36px;border-bottom:1px solid var(--line);scroll-margin-top:30px}
.case-section>h2,.project-section-heading h2{font-size:18px;font-weight:400;line-height:1.3;letter-spacing:-.035em;margin:0}
.case-copy{min-width:0;max-width:65ch;font-size:16px;line-height:1.7;letter-spacing:-.01em;overflow-wrap:anywhere}
.case-copy p{margin:0 0 17px;line-height:1.7}
.case-copy p:last-child{margin-bottom:0}
.case-copy li{margin:0 0 14px;padding-left:2px}
.case-copy li:last-child{margin-bottom:0}
.case-copy strong{font-weight:600}
.case-section[data-section=outcome]{background:#edf0e8;border:0;border-radius:8px;padding:26px;margin-bottom:36px}
.case-section[data-section=outcome] .case-copy{font-size:17px;line-height:1.65}
.case-section[data-section=client] blockquote{font-size:24px;font-weight:400;line-height:1.45;letter-spacing:-.035em;margin:0}
.case-facts{display:grid;grid-template-columns:110px minmax(0,1fr);gap:15px 22px;margin:0 0 20px;font-size:14px;line-height:1.65}
.case-facts:last-child{margin-bottom:0}
.case-facts dt{color:#687768;font-size:12px;padding-top:2px}
.case-facts dd{margin:0;min-width:0}
.case-section[data-section=details] .case-copy>p{font-size:13px}
.project-gallery,.project-posts{margin:0 0 40px;scroll-margin-top:30px}
.project-section-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}
.gallery-buttons{display:flex;align-items:center;gap:15px;flex-wrap:wrap}
.gallery-buttons button{font-size:11px;line-height:1.4;padding:5px 0;color:var(--ink);border-bottom:1px solid #17382a80}
.gallery-buttons button:disabled{opacity:.3}
.gallery-position{font:10px/1.4 ui-monospace,SFMono-Regular,Consolas,monospace;color:#687768;white-space:nowrap}
.campaign-track{gap:18px;scrollbar-width:thin;scrollbar-color:#b2bcae transparent;scroll-snap-type:x mandatory;padding-bottom:12px}
.campaign-track>a{min-width:0;flex:0 0 calc((100% - 36px)/3)}
.campaign-track img{border-radius:6px;aspect-ratio:4/3;object-fit:contain;background:#edf0e8}
.campaign-track figcaption{font:10px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace;color:#7b8779;margin-top:9px}
.gallery-hint{font-size:11px;line-height:1.5;color:#7b8779;margin-top:12px}
.post-layout{display:grid;grid-template-columns:minmax(140px,.38fr) minmax(0,1fr);gap:28px}
.post-layout>div{min-width:0}
.post-choices{display:flex;flex-direction:column;align-items:stretch;gap:6px}
.post-choices button{font-size:13px;line-height:1.4;text-align:left;border:1px solid transparent;border-radius:6px;padding:10px 12px;color:#5c6d5d}
.post-choices button:hover{background:#edf0e8}
.post-choices button[aria-pressed=true]{background:var(--ink);border-color:var(--ink);color:var(--paper)}
.post-note{font-size:12px;line-height:1.65;color:#6a786b;margin-top:18px;max-width:28ch}
.post-frame{display:block;width:100%;height:550px;max-width:100%;border-radius:6px}
.post-frame.video{height:auto;aspect-ratio:16/9;max-width:100%}
.original-post{font-size:12px;margin-top:15px}
.post-panel>p{font-size:11px;line-height:1.6;color:#7b8779;max-width:54ch;margin-top:12px}
.project-pagination{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px;padding:30px 0 48px;border-top:1px solid var(--line)}
.project-neighbor{display:flex;align-items:center;gap:20px;min-width:0}
.project-neighbor+ .project-neighbor{border-left:1px solid var(--line);padding-left:32px}
.project-neighbor img{width:112px;height:84px;object-fit:cover;border-radius:6px;flex-shrink:0}
.neighbor-copy{display:flex;flex-direction:column;gap:8px;min-width:0}
.neighbor-label{font-size:11px;line-height:1.3;color:#7b8779}
.neighbor-title{font-size:clamp(20px,2.2vw,32px);line-height:1.15;letter-spacing:-.045em;overflow-wrap:anywhere}
.project-neighbor:hover .neighbor-title{text-decoration:underline;text-underline-offset:5px;text-decoration-thickness:1px}
@media(max-width:1100px){
  .project-content{grid-template-columns:140px minmax(0,1fr);gap:40px}
  .case-section{grid-template-columns:minmax(0,1fr);gap:18px}
  .post-layout{grid-template-columns:minmax(0,1fr);gap:22px}
  .post-choices{flex-direction:row;flex-wrap:wrap;gap:6px}
  .post-note{max-width:45ch;margin-top:12px}
  .project-neighbor img{width:90px;height:68px}
  .project-neighbor{gap:14px}
}
@media(max-width:760px){
  .project-main{padding-top:25px}
  .project-hero{grid-template-columns:minmax(0,1fr);gap:27px;padding-bottom:38px}
  .project-title{font-size:clamp(36px,7.5vw,58px);line-height:1.04}
  .project-category{margin:16px 0 14px}
  .project-lede{font-size:20px;max-width:43ch;line-height:1.5}
  .project-content{display:block;padding-top:0}
  .case-side{position:static;padding:20px 0;margin-bottom:30px;border-bottom:1px solid var(--line)}
  .case-side>p{margin-bottom:10px}
  .case-side nav{flex-direction:row;flex-wrap:wrap;gap:2px 18px}
  .case-side a{font-size:11px;padding:5px 0}
  .case-section{gap:17px;padding-bottom:30px;margin-bottom:30px}
  .case-copy{font-size:15px;line-height:1.7;max-width:none}
  .case-section[data-section=outcome]{padding:22px;margin-bottom:30px}
  .case-section[data-section=outcome] .case-copy{font-size:16px}
  .project-pagination{gap:22px;padding:25px 0 38px}
  .project-neighbor{display:block}
  .project-neighbor img{width:100%;height:auto;aspect-ratio:4/3;margin-bottom:16px}
  .project-neighbor+ .project-neighbor{padding-left:22px}
  .neighbor-title{font-size:25px}
  .campaign-track>a{flex-basis:82%}
  .project-gallery,.project-posts{margin-bottom:34px}
}
@media(max-width:543px){
  .work-index{padding-top:30px}
  .work-index .section-heading{margin-bottom:28px}
  .work-index .section-aside{font-size:14px;line-height:1.65;max-width:35ch}
  .project-main{padding-top:23px}
  .all-work-link{margin-bottom:24px;font-size:11px}
  .project-hero{gap:24px;padding-bottom:32px}
  .project-title{font-size:clamp(31px,8.3vw,43px);letter-spacing:-.06em}
  .project-category{margin:14px 0 12px;font-size:10px}
  .project-lede{font-size:18px;line-height:1.55}
  .case-side nav{gap:1px 16px}
  .case-section>h2,.project-section-heading h2{font-size:18px}
  .case-facts{grid-template-columns:85px minmax(0,1fr);gap:13px 16px;font-size:13px}
  .case-facts dt{font-size:11px}
  .case-section[data-section=client] blockquote{font-size:22px}
  .project-section-heading{align-items:flex-start;flex-wrap:wrap;gap:12px;margin-bottom:18px}
  .gallery-buttons{gap:15px}
  .post-choices button{font-size:12px;padding:9px 11px}
  .post-frame{height:520px}
  .neighbor-copy{gap:7px}
  .neighbor-label{font-size:10px}
  .neighbor-title{font-size:21px}
}
@media(prefers-reduced-motion:reduce){.project-cover img,.case-side a{transition:none}}
