/* "Our work" page (/work). Classes prefixed wk-. */
.wk-hero-links { margin: 18px 0 0; font-size: .95rem; color: var(--muted); }
.wk-hero-links a { color: var(--navy-3); font-weight: 600; }

.wk-sec { padding-top: clamp(40px, 5vw, 64px); }

.wk-sec-ai { padding-top: 0; }

/* Featured client project */
.wk-feature {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0; align-items: stretch;
  background: var(--white); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow);
  margin-top: 6px;
}
.wk-shot { display: flex; align-items: center; padding: clamp(16px, 2.4vw, 28px); background: var(--stone); }
.wk-shot picture { display: block; width: 100%; }
.wk-shot img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 18px 40px -18px rgba(5, 25, 50, .45); transition: transform .2s; }
.wk-shot:hover img { transform: translateY(-2px); }
.wk-shot:focus-visible { outline: 3px solid var(--halo); outline-offset: -3px; }
.wk-feature-body { padding: clamp(20px, 3vw, 34px); min-width: 0; }
.wk-feature .wk-title { font-size: clamp(1.3rem, 2.2vw, 1.6rem); font-weight: 700; }
.wk-feature .wk-em-h { margin: 4px 0 0; }
.wk-perm { font-size: .68rem; font-weight: 600; letter-spacing: .04em; color: #137150; background: #e2f4ec; padding: 3px 9px; border-radius: 99px; }
.wk-feature-cta { margin: 18px 0 0; }

/* AI group */
.wk-group-head { max-width: 680px; margin: 0 0 24px; }
.wk-group-head h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0 0 8px; }
.wk-group-head p:last-child { color: var(--muted); margin: 0; }

/* Filters (unused since the page was split into groups) */
.wk-filter { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.wk-chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--white); color: var(--navy);
  font: 500 .9rem/1.2 var(--font); cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.wk-chip span { font-size: .74rem; font-weight: 600; padding: 1px 8px; border-radius: 99px; background: var(--stone-2); color: var(--navy-3); }
.wk-chip:hover { border-color: var(--navy); }
.wk-chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.wk-chip[aria-pressed="true"] span { background: rgba(255, 255, 255, .16); color: #fff; }
.wk-count { text-align: center; color: var(--muted); font-size: .9rem; margin: 16px 0 28px; }

/* Grid */
.wk-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.wk-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, border-color .2s; }
.wk-card:hover { box-shadow: var(--shadow); border-color: transparent; }
.wk-card[hidden] { display: none !important; }
.wk-card:has(.wk-details[open]) { box-shadow: var(--shadow); border-color: transparent; }
/* A card with a live demo gets more room once opened. */
@media (min-width: 761px) {
  .wk-card-live:has(.wk-details[open]) { grid-column: span 2; }
  .wk-card-live:has(.wk-details[open]) .wk-art { aspect-ratio: auto; height: 200px; }
}
.wk-art { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--stone); }
.wk-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; min-width: 0; }
.wk-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 10px; }
.wk-tag { font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--navy-3); background: #e8eef8; padding: 3px 9px; border-radius: 99px; }
.wk-live {
  font: 600 .72rem/1.2 var(--font); letter-spacing: .03em; color: #137150; background: #e2f4ec;
  border: 1.5px solid #b9e2cf; padding: 6px 12px; min-height: 32px; border-radius: 99px; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.wk-live::after { content: " \2192"; }
.wk-live:hover { background: #cfeee0; border-color: #1f9d6b; }
.wk-live:focus-visible { outline: 3px solid var(--halo); outline-offset: 2px; }
.wk-title { font-size: 1.12rem; font-weight: 600; line-height: 1.3; margin: 0 0 4px; letter-spacing: -.01em; }
.wk-client { font-size: .82rem; color: var(--muted); margin: 0 0 10px; }
.wk-problem { font-size: .94rem; color: #2c3a52; margin: 0 0 14px; }

/* Details */
.wk-details { border-top: 1px solid var(--line-soft, #e8e3e1); margin-top: auto; }
.wk-details summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  min-height: 44px; padding: 10px 0 0; font-weight: 600; font-size: .92rem; color: var(--navy);
}
.wk-details summary::-webkit-details-marker { display: none; }
.wk-details summary::after { content: "+"; font-size: 1.3rem; font-weight: 400; line-height: 1; color: var(--navy-3); transition: transform .2s; }
.wk-details[open] summary::after { content: "−"; }
.wk-details summary:focus-visible { outline: 3px solid var(--halo); outline-offset: 2px; border-radius: 6px; }
.wk-list { margin: 10px 0 12px; padding: 0; list-style: none; display: grid; gap: 7px; }
.wk-list li { position: relative; padding-left: 20px; font-size: .9rem; color: #2c3a52; }
.wk-list li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 99px 99px 2px 2px; background: var(--navy); }
.wk-built { font-size: .84rem; color: var(--muted); margin: 0; }
.wk-built b { color: var(--navy); font-weight: 600; }

/* Mini interactives (shared) */
.wk-mini { margin-top: 16px; background: var(--stone-2); border-radius: 12px; padding: 14px; }
.wk-mini-label { display: inline-block; margin: 0 0 10px; font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: var(--navy); padding: 3px 9px; border-radius: 99px; }
.wk-status { margin: 10px 0 0; font-size: .82rem; color: var(--navy-3); min-height: 2.4em; }
.wk-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.wk-mini .btn-sm { padding: 9px 14px; font-size: .82rem; min-height: 40px; }

/* Email drafting */
.wk-em-plan { list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.wk-em-plan li { background: #fff; border-radius: 8px; padding: 6px 8px; font-size: .76rem; min-width: 0; border: 1.5px solid transparent; }
.wk-em-plan li small { display: block; font-size: .64rem; color: var(--muted); }
.wk-em-plan li.on { border-color: var(--navy); }
.wk-em-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wk-em-col { background: #fff; border-radius: 10px; padding: 8px; min-width: 0; display: grid; gap: 6px; align-content: start; }
.wk-em-h { margin: 0 0 4px; font-size: .66rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.wk-em-empty { margin: 0; font-size: .78rem; color: var(--muted); }
.wk-em-card { background: var(--stone-2); border-radius: 8px; padding: 8px; font-size: .78rem; display: grid; gap: 4px; animation: wkFade .3s ease; }
.wk-em-card strong { font-size: .8rem; color: var(--navy); }
.wk-em-card p { margin: 0; color: #2c3a52; }
.wk-em-card small { color: #137150; font-weight: 600; }
.wk-em-card .btn-sm { justify-self: start; min-height: 36px; padding: 6px 12px; }
[data-em="ready"] .wk-em-card { border-left: 3px solid #1f9d6b; }
@keyframes wkFade { from { opacity: 0; } }

/* Shared memory */
.wk-mem { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wk-mem-pane { background: #fff; border-radius: 10px; padding: 10px; min-width: 0; }
.wk-mem-msg { margin: 0 0 8px; font-size: .8rem; background: var(--stone-2); border-radius: 10px; padding: 7px 9px; color: #2c3a52; }
.wk-mem-q { background: #e8eef8; color: var(--navy-3); }
.wk-mem-reply { background: #fff; border: 1.5px dashed var(--line); }

/* Agent control room */
.wk-ag-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .78rem; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.wk-ag-pause { font: 600 .76rem var(--font); min-height: 36px; padding: 6px 12px; border-radius: 99px; border: 1.5px solid var(--navy); background: #fff; color: var(--navy); cursor: pointer; }
.wk-ag-pause[aria-pressed="true"] { background: var(--navy); color: #fff; }
.wk-ag-list, .wk-ag-done { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.wk-ag-list li { background: #fff; border-radius: 10px; padding: 8px 10px; display: grid; gap: 6px; font-size: .82rem; }
.wk-ag-btns { display: flex; gap: 6px; }
.wk-ag-list.paused li { color: #56617a; background-image: repeating-linear-gradient(135deg, transparent 0 8px, rgba(5,25,50,.035) 8px 16px); }
.wk-ag-list.paused li .btn { opacity: .55; }
.wk-ag-sub { margin: 12px 0 6px; font-size: .66rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.wk-ag-done li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 8px; background: #fff; border-left: 3px solid #1f9d6b; border-radius: 8px; padding: 7px 10px; font-size: .8rem; animation: wkFade .3s ease; }
.wk-ag-done li.rejected { border-left-color: var(--bad, #c8453b); color: var(--muted); }
.wk-ag-done li small { color: var(--muted); font-variant-numeric: tabular-nums; }
.wk-ag-done .wk-ag-empty { border-left: 0; color: var(--muted); background: transparent; padding: 2px 0; animation: none; }

/* Responsive */
@media (max-width: 1060px) {
  .wk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .wk-feature { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wk-grid { grid-template-columns: 1fr; gap: 16px; }
  .wk-live { min-height: 44px; padding: 10px 14px; }
  .wk-filter { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin-inline: -18px; padding: 2px 18px 8px; scrollbar-width: none; }
  .wk-filter::-webkit-scrollbar { display: none; }
  .wk-chip { flex: none; }
  .wk-count { text-align: left; margin: 10px 0 20px; }
}
@media (max-width: 460px) {
  .wk-em-cols, .wk-mem { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .wk-card, .wk-chip, .wk-details summary::after, .wk-shot img { transition: none; }
  .wk-em-card, .wk-ag-done li { animation: none; }
}
