.terminal-work .work-page-heading{margin-bottom:36px}
.terminal-work .work-page-lede{margin-top:15px}
.terminal-work .work-directory{border-top:1px solid var(--line);margin-top:34px}
.terminal-work .work-file{border-bottom:1px solid var(--line)}
.terminal-work .work-file-row{position:relative;display:grid;grid-template-columns:124px minmax(0,1fr) 12px;align-items:start;gap:20px;list-style:none;padding:22px 0;cursor:pointer;min-width:0;outline-offset:6px}
.terminal-work .work-file-row::-webkit-details-marker{display:none}
.terminal-work .work-file-row::marker{content:''}
.terminal-work .work-file-row::after,.terminal-work .work-stack>summary::after{content:none!important}
.terminal-work .work-file-name{font-size:13px;line-height:1.8;color:var(--ink);padding-top:1px}
.terminal-work .work-file-name>span{margin-left:3px;color:var(--quiet);opacity:.65}
.terminal-work .work-file-copy{display:grid;gap:5px;min-width:0}
.terminal-work .work-file-outcome{font-size:14px;line-height:1.6;letter-spacing:-.2px;color:var(--ink)}
.terminal-work .work-file-description{font-size:11px;line-height:1.8;color:var(--quiet)}
.terminal-work .work-file-caret{font-size:17px;line-height:1.4;color:var(--accent);opacity:0;transition:opacity .15s}
.terminal-work .work-file-row:hover .work-file-caret,.terminal-work .work-file-row:focus-visible .work-file-caret,.terminal-work .work-file[open]>.work-file-row .work-file-caret{opacity:1}
.terminal-work .work-file-row:hover .work-file-name,.terminal-work .work-file-row:focus-visible .work-file-name{color:var(--accent)}
.terminal-work .work-file-row:focus-visible{outline:none;box-shadow:none}
.terminal-work .work-file[open]>.work-case-study{padding:10px 0 34px}
.terminal-work[data-work-view]:not([data-work-view="index"]) .t-path::before{content:none}
.terminal-work .work-path-link{color:var(--accent);font-weight:500;text-decoration:none}
.terminal-work .work-path-link:hover,.terminal-work .work-path-link:focus-visible{color:var(--accent);font-weight:600;text-decoration:none}
.terminal-work .work-path-link:focus-visible{outline:1px solid var(--accent);outline-offset:3px}
.terminal-work .work-product-link:focus-visible{outline:none;box-shadow:none;color:var(--accent);text-decoration:underline;text-underline-offset:5px}
.terminal-work .work-case-heading{max-width:740px}
.terminal-work .work-case-heading h3{font-size:clamp(22px,2.2vw,28px);font-weight:400;line-height:1.55;letter-spacing:-.8px;color:var(--ink);margin:0 0 17px;text-wrap:balance}
.terminal-work .work-case-heading .t-lede{max-width:64ch}
.terminal-work .work-product-link{display:inline-flex;align-items:center;gap:12px;margin-top:22px;min-height:28px;font-size:12px;color:var(--accent)}
.terminal-work .work-project-status{margin-top:18px;font-size:11px;line-height:1.8;color:var(--quiet)}
.terminal-work .work-flow-section{margin-top:44px}
.terminal-work .work-flow{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px;margin:22px 0 0;padding:0;list-style:none}
.terminal-work .work-flow>li{position:relative;display:flex;flex-direction:column;min-width:0;padding-top:14px;border-top:1px solid var(--line)}
.terminal-work .work-flow-label{font-size:10px;line-height:1.7;color:var(--quiet);margin-bottom:9px}
.terminal-work .work-flow-title{font-size:13px;line-height:1.7;color:var(--ink)}
.terminal-work .work-flow-description{font-size:11px;line-height:1.8;color:var(--quiet);margin-top:6px;max-width:25ch}
@media(min-width:701px){
  .terminal-work .work-flow>li:not(:last-child) .work-flow-label{display:flex;align-items:center;width:calc(100% + 32px)}
  .terminal-work .work-flow>li:not(:last-child) .work-flow-label::after{content:'→';display:flex;align-items:center;justify-content:center;flex:1;height:17px;line-height:17px;color:var(--accent);font-size:14px}
}
.terminal-work .work-boundary{display:grid;grid-template-columns:15px minmax(0,1fr);gap:12px;align-items:start;max-width:68ch;margin:28px 0 0;padding:0;font-size:12px;line-height:1.9;color:var(--copy,var(--quiet))}
.terminal-work .work-boundary>span{color:var(--accent)}
.terminal-work .work-boundary>p{margin:0}
.terminal-work .work-case-sections{display:grid;gap:32px;margin-top:46px;max-width:68ch}
.terminal-work .work-case-section .t-section-title{margin-bottom:12px}
.terminal-work .work-case-section .t-copy+.t-copy{margin-top:12px}
.terminal-work .work-stack{border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-top:2px}
.terminal-work .work-stack>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:52px;font-size:12px;color:var(--quiet);list-style:none;cursor:pointer;outline-offset:5px}
.terminal-work .work-stack>summary::-webkit-details-marker{display:none}
.terminal-work .work-stack>summary>span{font-size:16px;color:var(--accent);font-weight:400}
.terminal-work .work-stack[open]>summary>span{font-size:0}
.terminal-work .work-stack[open]>summary>span::after{content:'−';font-size:16px}
.terminal-work .work-stack>summary:focus-visible{outline:none;box-shadow:none;color:var(--accent)}
.terminal-work .work-stack>div{padding:0 0 22px}
.terminal-work .work-stack .t-copy{font-size:11px;line-height:1.9;color:var(--quiet)}
.terminal-work [data-work-index][hidden],.terminal-work [data-work-case-host][hidden],.terminal-work .work-case-study[hidden]{display:none!important}
@media(max-width:700px){
  .terminal-work .work-page-heading{margin-bottom:28px}
  .terminal-work .work-directory{margin-top:28px}
  .terminal-work .work-file-row{grid-template-columns:minmax(0,1fr) 12px;gap:5px 14px;padding:20px 0}
  .terminal-work .work-file-name{grid-column:1;grid-row:1;font-size:12px}
  .terminal-work .work-file-copy{grid-column:1;grid-row:2;gap:5px}
  .terminal-work .work-file-caret{grid-column:2;grid-row:1;opacity:.7}
  .terminal-work .work-file-outcome{font-size:13px}
  .terminal-work .work-file-description{font-size:11px;max-width:38ch}
  .terminal-work .work-case-heading h3{font-size:23px;letter-spacing:-.6px}
  .terminal-work .work-flow{grid-template-columns:minmax(0,1fr);gap:25px;margin-top:18px}
  .terminal-work .work-flow>li{display:grid;grid-template-columns:78px minmax(0,1fr);gap:5px 14px;padding-top:13px}
  .terminal-work .work-flow-label{position:relative;grid-column:1;grid-row:1/3;justify-self:start;margin:1px 0 0}
  .terminal-work .work-flow-title{grid-column:2;font-size:12px}
  .terminal-work .work-flow-description{grid-column:2;margin:0;max-width:none;font-size:11px}
  .terminal-work .work-flow>li:not(:last-child)::after{content:none}
  .terminal-work .work-flow>li:not(:last-child) .work-flow-label::after{content:'↓';position:absolute;left:0;top:17px;bottom:-25px;display:flex;align-items:center;justify-content:center;width:1ch;color:var(--accent);font-size:12px;line-height:1}
  .terminal-work .work-flow-section{margin-top:34px}
  .terminal-work .work-case-sections{margin-top:36px;gap:28px}
  .terminal-work .work-boundary{font-size:11px;gap:9px}
}
@media(prefers-reduced-motion:reduce){.terminal-work .work-file-caret{transition:none}}
