/* Our Work: client index. A list of live client sites on the left and a large
   preview of the hovered client on the right. On narrow screens each row shows
   its own screenshot instead. Loaded only on /work/, after styles.css. */
.cx { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: start; margin-top: 8px; text-align: left; }
.cxList { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--hairline); }
.cxRow { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: baseline; gap: 16px; padding: 22px 0; border-top: 1px solid var(--hairline); color: #8d8d8d; text-decoration: none; transition: color .35s ease; }
.cxIdx { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: #8d8d8d; transition: color .35s ease; }
.cxMain { display: block; min-width: 0; }
.cxName { display: block; font-size: clamp(22px, 2.5vw, 30px); font-weight: 600; letter-spacing: -.025em; line-height: 1.1; }
.cxSub { display: block; margin-top: 8px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #8d8d8d; }
.cxArrow { font-size: 18px; transition: color .35s ease, transform .35s ease; }
.cxRow.is-active, .cxRow:focus-visible { color: var(--text); }
.cxRow.is-active .cxIdx, .cxRow.is-active .cxArrow { color: var(--accent); }
.cxRow.is-active .cxArrow { transform: translate(2px, -2px); }
.cxRow:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.cxThumb { display: none; }

.cxPreview { position: sticky; top: calc(var(--nav-h) + 28px); }
.cxShot { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; border: 1px solid var(--hairline); background: #0b0b0b; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9); }
.cxShot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transform: scale(1.04); transition: opacity .5s ease, transform .9s var(--ease); }
.cxShot img.is-active { opacity: 1; transform: none; }
.cxBar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 18px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #8d8d8d; }
.cxDomain { display: inline-flex; align-items: center; gap: 10px; min-width: 0; text-transform: none; letter-spacing: .02em; font-size: 12px; }
.cxDomain > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cxDomain b { width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(216, 250, 112, .14); }
.cxSummary { margin: 22px 0 0; max-width: 560px; color: #8d8d8d; font-size: 16px; line-height: 1.65; }
.cxMeta { display: grid; grid-template-columns: 1fr 1fr auto; gap: 16px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--hairline); font-size: 14px; color: var(--text); }
.cxMeta em { display: block; margin-bottom: 6px; font-style: normal; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #8d8d8d; }
.cxVisit { align-self: end; font-weight: 600; color: var(--text); text-decoration: none; }
.cxVisit b { color: var(--accent); }

@media (max-width: 860px) {
  .cx { grid-template-columns: 1fr; gap: 0; }
  .cxPreview { display: none; }
  .cxRow { color: var(--text); padding: 24px 0; }
  .cxRow .cxIdx, .cxRow .cxArrow { color: var(--accent); }
  .cxThumb { display: block; margin-top: 16px; border-radius: 12px; overflow: hidden; border: 1px solid var(--hairline); }
  .cxThumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; }
}
@media (prefers-reduced-motion: reduce) {
  .cxShot img { transition: none; transform: none; }
}
