/* Élan case study: status pill, engineer details, screenshot gallery, agent loop figure */
.cs-status{display:inline-block; font-family:var(--f-mono); font-size:12px; border:1px solid var(--accent); color:var(--accent); padding:1px 8px}
.cs-note{font-size:15px !important; color:var(--ink-2)}

.eng{border:1px solid var(--line); background:var(--panel); margin:20px 0}
.eng summary{cursor:pointer; padding:12px 16px; font-family:var(--f-mono); font-size:13px; color:var(--ink)}
.eng summary::marker{color:var(--accent)}
.eng[open] summary{border-bottom:1px solid var(--line)}
.eng-body{padding:14px 16px 4px}
.eng-body p, .eng-body li{font-size:15.5px}

/* gallery */
.shots{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin:20px 0 8px}
.shot{margin:0; min-width:0; display:flex; flex-direction:column; gap:8px}
.shot a{display:block; border:1px solid var(--line); background:var(--panel); line-height:0}
.shot a:hover{border-color:var(--ink-2)}
.shot img{display:block; width:100%; height:auto}
.shot figcaption{font-size:14px; color:var(--ink-2); line-height:1.45}
.shot figcaption b{color:var(--ink); font-weight:600}
.shot-pair{grid-column:1/-1; display:grid; grid-template-columns:repeat(2,minmax(0,240px)); justify-content:center; gap:24px; padding:16px; border:1px solid var(--line); background:var(--accent-soft)}
.shot.phone a{border-radius:18px; overflow:hidden; border-width:4px; border-color:var(--ink)}
@media (max-width:640px){ .shots{grid-template-columns:1fr} .shot-pair{grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; padding:12px} }

/* agent loop */
.lp-pos{font-family:var(--f-mono); font-size:12.5px; color:var(--ink-2)}
.ctrs{display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); margin:0; border-bottom:1px solid var(--line)}
.ctrs div{padding:12px 16px; min-width:0}
.ctrs div + div{border-left:1px solid var(--line)}
.ctrs dt{font-family:var(--f-mono); font-size:11px; letter-spacing:.05em; text-transform:uppercase; color:var(--ink-2)}
.ctrs dd{margin:2px 0 0; font-family:var(--f-display); font-weight:800; font-size:24px; letter-spacing:-.02em; font-variant-numeric:tabular-nums; line-height:1.1}
@media (max-width:640px){
  .ctrs{grid-template-columns:repeat(3,minmax(0,1fr))}
  .ctrs div:nth-child(4){border-left:0}
  .ctrs div:nth-child(n+4){border-top:1px solid var(--line)}
  .ctrs dd{font-size:20px}
}
.loop .fig-svg .ghost{fill:var(--panel); stroke:var(--line); stroke-width:1}
.loop .node.stack.on .ghost{stroke:var(--accent)}
.loop .edge.dash{stroke-dasharray:5 5}
.loop .edge.on{stroke:var(--accent)}
.loop .ahead{fill:var(--ink-2)}
.loop .elab{font-family:var(--f-mono); font-size:11px; fill:var(--ink-2)}
.loop .chk{font-family:var(--f-mono); font-size:11px}
.loop .node.dim{opacity:.45}
.loop .node, .loop .edge{transition:opacity .25s, stroke .25s}
.loop .pk{opacity:0}
.loop .pk.go{opacity:1}

.results4{grid-template-columns:repeat(4,minmax(0,1fr))}
@media (max-width:700px){ .results4{grid-template-columns:repeat(2,minmax(0,1fr))} .results4 div:nth-child(3){border-left:0; padding-left:0} .results4 div + div{border-top:0} .results4 div:nth-child(n+3){border-top:1px solid var(--line)} .results4 div:nth-child(2), .results4 div:nth-child(4){padding-left:16px; border-left:1px solid var(--line)} }

@media (prefers-reduced-motion: reduce){
  .loop .node, .loop .edge{transition:none}
  .loop .pk{display:none}
}
