.selected-work-page .section-head{max-width:1440px;margin:auto;padding:72px 6vw 44px}
.selected-work-list{border-top:1px solid #dededb}
.work-row{border-bottom:1px solid #dededb}
.work-row-inner{max-width:1440px;margin:auto;padding:30px 6vw;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:5vw;align-items:center}
.work-copy{padding:0}
.work-number{font-size:12px;letter-spacing:.08em;color:#777;margin:0 0 22px}
.work-copy h3{font-size:clamp(28px,3vw,44px);font-weight:500;letter-spacing:-.05em;line-height:1.08;margin:0 0 12px}
.work-description{font-size:16px;line-height:1.55;color:#50504e;margin:0 0 14px;max-width:100%}
.work-labels{list-style:none;display:flex;flex-wrap:wrap;gap:7px;padding:0;margin:0 0 16px}
.work-labels li{font-size:11px;line-height:1.35;color:#555550;border:1px solid #d9d9d5;border-radius:30px;padding:6px 9px}
.work-copy .case-link{font-size:13px;text-decoration:none;border:0;padding:0 0 4px;display:inline-flex;gap:6px;align-items:center}
.work-copy .case-link:hover{text-decoration:underline;text-underline-offset:5px}
.work-copy .case-link .case-arrow{display:block;width:16px;height:16px;flex-shrink:0;transition:transform .2s}
.work-copy .case-link:hover span{transform:translate(1px,-1px)}
.work-motion{--preview-bg:#e9e9e5;position:relative;width:100%;max-width:none;justify-self:stretch;aspect-ratio:16/9;border-radius:8px;background:var(--preview-bg);overflow:hidden;isolation:isolate}
.work-row:nth-child(2) .work-motion{--preview-bg:#e6e8e9}
.work-row:nth-child(3) .work-motion{--preview-bg:#e9e6e1}
.work-row:nth-child(4) .work-motion{--preview-bg:#e5e7e2}
.motion-caption{position:absolute;top:22px;left:24px;font-size:10px;letter-spacing:.11em;text-transform:uppercase;color:#686863}
.motion-poster{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:48px 24px;text-align:center}
.motion-project{font-size:clamp(24px,3.5vw,48px);font-weight:500;letter-spacing:-.06em;line-height:1.1;max-width:90%}
.motion-steps{position:relative;width:100%;height:22px;margin-top:16px;color:#72726c;font-size:12px;letter-spacing:.025em}
.motion-steps span{position:absolute;inset:0;opacity:0;animation:preview-step 9s ease-in-out infinite;animation-delay:calc(var(--step)*3s)}
.motion-steps span:first-child{opacity:1}
.motion-bottom{position:absolute;bottom:21px;left:24px;right:24px;display:flex;align-items:center;gap:16px}
.motion-rail{height:2px;background:#00000013;flex:1;overflow:hidden}
.motion-rail span{display:block;width:100%;height:100%;background:#73736c;transform-origin:left;animation:preview-progress 9s linear infinite}
.motion-toggle{display:grid;place-items:center;width:30px;height:30px;border:1px solid #0002;border-radius:50%;background:transparent;color:#55554f;padding:0}
.motion-toggle svg{width:12px;height:12px}
.work-motion-video{background:#ece8f6}
.work-motion-video .project-clip{display:block;width:100%;height:100%;object-fit:contain}
.work-motion-video .motion-toggle{position:absolute;right:14px;bottom:14px;background:#fafafae8;border-color:#0002}
.motion-toggle .play-symbol{display:none}
.work-motion[data-paused=true] .motion-toggle .play-symbol{display:block}
.work-motion[data-paused=true] .motion-toggle .pause-symbol{display:none}
.work-motion[data-paused=true] .motion-steps span,.work-motion[data-paused=true] .motion-rail span,.work-motion[data-visible=false] .motion-steps span,.work-motion[data-visible=false] .motion-rail span{animation-play-state:paused}
/* Keep the layout steady while revealing only the project being explored. */
@media(hover:hover) and (pointer:fine){
 .work-row-inner{transition:filter .25s ease}
 .work-motion{opacity:0;visibility:hidden;pointer-events:none;transition:opacity .28s ease,visibility .28s}
 .work-row:hover .work-motion,.selected-work-list:not(:has(.work-row:hover)) .work-row:focus-within .work-motion{opacity:1;visibility:visible;pointer-events:auto}
 .selected-work-list:has(.work-row:hover) .work-row:not(:hover) .work-row-inner,.selected-work-list:not(:has(.work-row:hover)):has(.work-row:focus-within) .work-row:not(:focus-within) .work-row-inner{filter:blur(4px)}
 .work-row:not(:hover):not(:focus-within) .motion-steps span,.work-row:not(:hover):not(:focus-within) .motion-rail span{animation-play-state:paused}
}
@media(prefers-reduced-motion:reduce){.work-row-inner,.work-motion{transition:none!important}}
@keyframes preview-step{0%,28%{opacity:1;transform:translateY(0)}32%,96%{opacity:0;transform:translateY(-5px)}97%{opacity:0;transform:translateY(5px)}100%{opacity:1;transform:translateY(0)}}
@keyframes preview-progress{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@media(min-width:1440px){.work-row-inner,.selected-work-page .section-head{padding-left:86px;padding-right:86px}.work-row-inner{gap:72px}}
@media(min-width:751px) and (max-width:950px){.work-row-inner{padding-top:12px;padding-bottom:12px}}
@media(max-width:750px){.selected-work-page .section-head{padding:48px 6vw 30px}.section-head .stamp{font-size:10px}.work-row-inner{grid-template-columns:1fr;gap:16px;padding:18px 6vw 20px}.work-copy{padding:0}.work-number{margin-bottom:15px}.work-copy h3{font-size:34px}.work-description{max-width:100%;margin-bottom:18px}.work-labels{margin-bottom:20px}.work-motion{aspect-ratio:16/9;max-width:none}.motion-project{font-size:clamp(27px,6vw,44px)}.motion-caption{left:18px;top:18px;font-size:9px}.motion-bottom{left:18px;right:18px;bottom:14px}}
@media(prefers-reduced-motion:reduce){.motion-steps span,.motion-rail span{animation:none!important}.motion-steps span{opacity:0}.motion-steps span:first-child{opacity:1}.motion-rail span{transform:none}.motion-toggle{display:none}.work-copy .case-link .case-arrow{transition:none}}

/* Fill the Cosmos card edge-to-edge despite the source video's wider aspect ratio. */
.work-motion-video[data-project-name="Cosmos Intelligence"]{background:#060b14}
.work-motion-video[data-project-name="Cosmos Intelligence"] .project-clip{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center}
