/* Desktop layout choice; the existing mobile rail stays untouched. */
.work-view-switch{display:none}
@media(min-width:761px){
 .work-section .section-heading{position:relative}
 .work-section .work-filter-rail{padding-right:236px}
 .work-view-switch{position:absolute;right:0;bottom:0;display:flex;isolation:isolate;gap:4px;padding:5px;border-radius:999px;background:#f3f3f5}
 .work-view-switch button{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;gap:7px;width:100px;height:38px;padding:9px;font:inherit;font-size:13px;font-weight:500;border:0;border-radius:999px;background:transparent;color:var(--ink);cursor:pointer;transition:color .24s,transform .2s}
 .work-view-switch button[aria-pressed=true]{background:transparent;color:white}
 .work-view-switch button:hover{transform:translateY(-2px)}
 .work-view-switch button:focus-visible{outline:2px solid #7061ff;outline-offset:3px}
 .work-view-selection{position:absolute;z-index:0;left:5px;top:5px;width:100px;height:38px;border-radius:999px;background:#272735;transform:translateX(0);transition:transform .48s cubic-bezier(.22,1.08,.36,1)}
 .work-view-switch.is-grid-selected .work-view-selection{transform:translateX(104px)}
 html[data-theme=dark] .work-view-selection{background:#f2f2f5}
 .work-view-switch svg{width:20px;height:20px}
 html[data-theme=dark] .work-view-switch{background:#242427}
 html[data-theme=dark] .work-view-switch button[aria-pressed=true]{background:transparent;color:#171719}
 .project-list.is-grid-view{height:auto!important;padding:24px 0 80px!important}
 .project-list.is-grid-view .project-deck-stage{position:relative;top:auto;height:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px;overflow:visible}
 .project-list.is-grid-view .project{position:relative!important;inset:auto!important;width:100%!important;translate:none;transform:none!important;visibility:visible!important;pointer-events:auto!important;box-sizing:border-box;min-width:0;transition:translate .35s cubic-bezier(.22,1,.36,1)}
 .project-list.is-grid-view .project[hidden]{display:none!important}
 .project-list.is-grid-view .project:hover{translate:0 -6px!important}
 .project-list.is-grid-view .project .project-info{min-height:230px!important;padding:24px 76px 20px 12px!important}
 .project-list.is-grid-view .project h3{font-size:clamp(28px,2.7vw,42px)!important}
 .project-list.is-grid-view .project .project-media{width:100%!important;aspect-ratio:16/9!important}
 .project-list.is-grid-view .project .project-info>svg{width:52px!important;height:52px!important;padding:15px!important;right:12px!important;bottom:12px!important}
}

@media(prefers-reduced-motion:reduce){.work-view-selection{transition:none}}
