/* Work extends the homepage's staggered case gallery. */
.work_page .work_main{padding:0}
.work_page .work_cases{--case-title-size:clamp(200px,42vw,760px)}
.work_page .layered_cases_word{margin:0;font:400 var(--case-title-size)/1 var(--font-heading);letter-spacing:-.035em;color:color-mix(in srgb,var(--color-paper),var(--work-title-grey) var(--work-grey-progress,0%));text-wrap:nowrap}
.work_page .layered_cases_grid{row-gap:clamp(88px,12vw,192px);padding-bottom:20svh}
.work_page .layered_case_media{width:100%}
@media(max-width:767px){
 .work_page .work_cases{--case-title-size:clamp(140px,42vw,320px)}
 .work_page .layered_cases_grid{row-gap:64px;padding-bottom:16svh}
 .work_page .layered_case_lower{margin-top:0}
}

/* Saved gooey filter sits between the opening title and the first case. */
.work_cases_content{position:relative;z-index:1;margin-top:-100svh;padding:calc(50svh + var(--case-title-size)/2 + 24px) clamp(20px,5.5vw,88px) 0}
.work_filters{margin-bottom:48px}
.work_filters .gc_wrap{margin:0}
.work_filters .gc_results_label{color:var(--color-ink)}
.work_filters .gc_clear{color:var(--color-paper)}
.work_filters .gc_clear:disabled{opacity:.35}
.work_page .work_cases_content .layered_cases_grid{margin-top:0;padding:0 0 20svh}
.work_page .layered_case[hidden]{display:none!important}
@media(max-width:767px){.work_cases_content{padding-inline:20px}.work_filters{margin-bottom:40px}.work_page .work_cases_content .layered_cases_grid{padding-bottom:16svh}}

/* Match the shared 60px / Inter 17px standard button. */
.work_filters .gc_chip{height:60px;padding:0 30px;font-size:17px;font-weight:400}
.work_filters .gc_results{left:30px}
.work_filters .gc_results_num,.work_filters .gc_results_label,.work_filters .gc_clear{font-size:17px;font-weight:400}
.work_filters .gc_chip[aria-pressed="false"]:not(.is-leaving) .gc_chip_bg{background:transparent;box-shadow:inset 0 0 0 2px var(--filter-idle-outline)}
.work_filters .gc_chip[aria-pressed="false"]:hover .gc_chip_bg{box-shadow:inset 0 0 0 2px var(--filter-hover-color)}

.case_page_link{display:block;color:inherit;text-decoration:none}.case_page_link::after{display:none!important}

.work_filters .gc_results{top:30px}

.work_filters .gc_clear{width:60px;height:60px;min-height:60px;display:flex;align-items:center;justify-content:center;border:2px solid var(--filter-idle-outline);border-radius:999px;color:var(--color-paper);visibility:visible!important;opacity:1!important}
.work_filters .gc_clear:disabled{opacity:.35!important;cursor:default}
.work_filters .gc_clear svg{display:block}

.work_filters .gc_tray{border-radius:30px}

.work_filters .gc_clear_idle{display:none;font:400 17px/1 var(--font-body)}
.work_filters .gc_clear:disabled{border-color:transparent;opacity:.6!important}
.work_filters .gc_clear:disabled .gc_clear_idle{display:block}
.work_filters .gc_clear:disabled .gc_clear_icon{display:none}

.work_filters .gc_results_label{min-width:0}

.work_filters .gc_results_num{color:var(--color-muted)}

/* Match the quiet grey outline of the theme switch. */
.work_filters{--filter-idle-outline:var(--color-display-muted);--filter-hover-color:var(--color-paper)}
html[data-theme="light"] .work_filters{--filter-idle-outline:var(--color-display-muted);--filter-hover-color:var(--color-paper)}
.work_filters .gc_chip[aria-pressed="false"]:not(.is-leaving),.work_filters .gc_clear{color:var(--filter-hover-color)}
.work_filters .gc_clear:disabled{opacity:1!important}
.work_filters .gc_chip[aria-pressed="false"]:hover,.work_filters .gc_clear:not(:disabled):hover{color:var(--filter-hover-color)}
.work_filters .gc_clear:not(:disabled):hover{border-color:var(--filter-hover-color)}

/* Smooth the outline in both directions without affecting the gooey layout. */
.work_filters .gc_chip_bg{transition:box-shadow .3s ease,opacity .18s cubic-bezier(.3,.9,.1,1)}
.work_filters .gc_clear{transition:border-color .3s ease,color .2s ease}
@media(prefers-reduced-motion:reduce){.work_filters .gc_chip_bg,.work_filters .gc_clear{transition:none}}

.work_page{--work-title-grey:var(--color-display-muted)}
html[data-theme="light"] .work_page{--work-title-grey:var(--color-display-muted)}

/* Compact native swipe rail on phones, retaining the shared filter state. */
@media(max-width:767px){
 .work_filters .gc_stage{overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;touch-action:pan-x pan-y;scrollbar-width:none;padding-bottom:8px}
 .work_filters .gc_stage::-webkit-scrollbar{display:none}
 .work_filters .gc_field{flex-shrink:0;max-width:none}
 .work_filters .gc_chip{height:48px;padding:0 20px;font-size:15px}
 .work_filters .gc_results{left:20px;top:24px}
 .work_filters .gc_results_num,.work_filters .gc_results_label,.work_filters .gc_clear,.work_filters .gc_clear_idle{font-size:15px}
 .work_filters .gc_clear{width:48px;height:48px;min-height:48px}
 .work_filters .gc_chip{scroll-margin-inline:10px}
}

/* Full-pill hover area; shared button physics move only the inner text. */
.work_filters .gc_chip_label{display:flex;align-items:center;justify-content:center;align-self:stretch;box-sizing:border-box;margin-inline:-30px;padding-inline:30px}
.work_filters .gc_chip_label>[data-anm-magnetic-text]{display:block;pointer-events:none}
@media(max-width:767px){.work_filters .gc_chip_label{margin-inline:-20px;padding-inline:20px}}

/* Selected filters keep individual capsules, joined by the shared thin necks. */
.work_filters .gc_field{isolation:isolate}
.work_filters .gc_goo{display:none}
.work_filters .gc_tray{background:transparent!important}
.work_filters .gc_tray::before{content:'';position:absolute;inset:0 auto 0 0;width:var(--gc-count-width,120px);height:var(--gc-count-height,60px);border-radius:999px;background:var(--color-paper)}
.work_filters .gc_field>.mtc_bonds{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:0;fill:var(--color-paper)}
.work_filters .gc_chip{--work-filter-fill:0}
.work_filters .gc_chip .gc_chip_bg,.work_filters .gc_chip[aria-pressed] .gc_chip_bg,.work_filters .gc_chip.is-leaving .gc_chip_bg{opacity:1!important;background:color-mix(in srgb,var(--color-paper) calc(var(--work-filter-fill)*100%),transparent);box-shadow:inset 0 0 0 2px color-mix(in srgb,var(--filter-idle-outline) calc((1 - var(--work-filter-fill))*100%),transparent)}
.work_filters .gc_chip[aria-pressed],.work_filters .gc_chip.is-leaving{color:color-mix(in srgb,var(--color-ink) calc(var(--work-filter-fill)*100%),var(--color-paper))}
.work_filters .gc_chip:hover .gc_chip_bg{box-shadow:inset 0 0 0 2px var(--color-paper)}

/* Use all available width; overflow stays in one horizontal rail at every size. */
.work_filters,.work_filters .gc_wrap,.work_filters .gc_stage{width:100%;min-width:0;max-width:none}
.work_filters .gc_stage{overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;touch-action:pan-x pan-y;scrollbar-width:none;padding-block:8px;box-sizing:border-box}
.work_filters .gc_stage::-webkit-scrollbar{display:none}
.work_filters .gc_field{flex-shrink:0;max-width:none;width:100%}
.work_filters .gc_chip{scroll-margin-inline:16px}

/* Case service links land with the active filters visible beneath the fixed header. */
.work_page .work_filters{scroll-margin-top:120px}

/* Keep the header blur above the120pxfilter landing, including tall screens. */
.work_page .site-top-fade{height:clamp(88px,12svh,112px)}
