/* Nova Agentic — /work/ gallery (brand domain)
   Card grid adapted from the playground gallery so /work/ and /showcase/
   look like the same body of work. Namespaced .wk-* so nothing here can
   collide with nova.css or site-ui.css. */

.wk-hero { padding: clamp(28px, 5vw, 56px) 0 clamp(8px, 2vw, 16px); text-align: center; }
.wk-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px;
  font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: #8b95a9;
}
.wk-eyebrow span { opacity: .55; }
.wk-hero h1 {
  margin: 0 auto; max-width: 18ch;
  font-size: clamp(31px, 6vw, 58px); line-height: 1.06; letter-spacing: -.035em;
}
.wk-grad {
  background: linear-gradient(100deg, #22d3ee, #8b5cf6);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.wk-lede {
  margin: 16px auto 0; max-width: 42ch; color: #a8b2c4;
  font-size: clamp(15.5px, 1.7vw, 18px); line-height: 1.55;
}

.wk-grid {
  display: grid; grid-template-columns: 1fr; gap: clamp(18px, 2.6vw, 28px);
  padding: clamp(22px, 3.4vw, 36px) 0 0;
}
@media (min-width: 620px) { .wk-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .wk-grid { grid-template-columns: repeat(3, 1fr); gap: 26px; } }

.wk-card {
  display: flex; flex-direction: column; padding: 9px;
  border: 1px solid rgba(255, 255, 255, .085); border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, 0) 42%), #10121a;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 18px 40px -30px rgba(0, 0, 0, .9);
  text-decoration: none; color: inherit;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .35s ease, box-shadow .35s ease;
}
.wk-card:hover, .wk-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, .42);
  box-shadow: 0 26px 60px -30px rgba(0, 0, 0, 1), 0 0 0 1px rgba(139, 92, 246, .12);
}
.wk-shot {
  position: relative; margin: 0; aspect-ratio: 6 / 5; overflow: hidden;
  border-radius: 12px; background: #141724;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .05) inset;
}
.wk-shot img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  transform: scale(1.001); filter: saturate(.98);
  transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .35s ease;
}
.wk-card:hover .wk-shot img, .wk-card:focus-visible .wk-shot img { transform: scale(1.035); filter: saturate(1.04); }
.wk-shot::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 30%;
  background: linear-gradient(to top, rgba(8, 9, 13, .38), transparent);
  opacity: .6; pointer-events: none;
}
.wk-idx {
  position: absolute; top: 10px; left: 10px; z-index: 2; padding: 4px 8px; border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, .12); background: rgba(8, 9, 13, .55);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 10.5px; font-weight: 600; letter-spacing: .12em; color: rgba(255, 255, 255, .82);
  font-variant-numeric: tabular-nums;
}
.wk-visit {
  position: absolute; right: 10px; bottom: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18); background: rgba(8, 9, 13, .72);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 12px; font-weight: 550; color: #fff;
  opacity: 0; transform: translateY(6px);
  transition: opacity .3s ease, transform .3s ease;
}
.wk-card:hover .wk-visit, .wk-card:focus-visible .wk-visit { opacity: 1; transform: none; }
@media (hover: none) { .wk-visit { opacity: 1; transform: none; } }

.wk-meta { padding: 15px 9px 13px; }
.wk-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #8b95a9;
}
.wk-tag::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: linear-gradient(100deg, #22d3ee, #8b5cf6); flex: 0 0 auto;
}
.wk-meta h2 {
  margin: 9px 0 6px; font-size: clamp(18px, 2.1vw, 21px);
  font-weight: 600; letter-spacing: -.025em; line-height: 1.2; color: #f7f9fc;
}
.wk-meta p { margin: 0; color: #a8b2c4; font-size: 14.5px; line-height: 1.5; }

.wk-cta {
  position: relative; margin: clamp(46px, 7vw, 88px) 0 clamp(30px, 5vw, 60px);
  padding: clamp(36px, 5.5vw, 64px) clamp(22px, 4vw, 48px);
  border: 1px solid rgba(255, 255, 255, .085); border-radius: 24px; text-align: center; overflow: hidden;
  background:
    radial-gradient(60% 120% at 50% -20%, rgba(139, 92, 246, .16), transparent 60%),
    radial-gradient(46% 100% at 20% 120%, rgba(34, 211, 238, .10), transparent 60%),
    #10121a;
}
.wk-cta h2 {
  margin: 0 auto; max-width: 24ch; font-size: clamp(24px, 4vw, 38px);
  letter-spacing: -.03em; line-height: 1.12; color: #f7f9fc;
}
.wk-cta p { margin: 14px auto 24px; max-width: 46ch; color: #a8b2c4; font-size: 15.5px; }
.wk-note { margin: 18px 0 0; color: #6f7a8d; font-size: 12.5px; }

/* --- Featured row + compact hero: three strongest demos on the first screen
   (card t_5c8a96c9, W48: 18% of /work/ readers reached 75% scroll) --- */
.wk-hero { padding: clamp(14px, 2.4vw, 30px) 0 clamp(10px, 1.8vw, 18px); }
.wk-eyebrow { margin-bottom: 10px; }
.wk-hero h1 { font-size: clamp(27px, 5.2vw, 54px); max-width: 24ch; }
.wk-lede { margin-top: 10px; max-width: 32ch; font-size: clamp(14.5px, 1.5vw, 17px); }
@media (min-width: 760px) { .wk-lede { max-width: 68ch; } }

.wk-feat {
  display: grid; grid-template-columns: 1fr;
  gap: clamp(18px, 2.6vw, 28px); padding: clamp(16px, 2.4vw, 26px) 0 0;
}
@media (min-width: 700px) { .wk-feat { grid-template-columns: repeat(3, 1fr); } }

.wk-card--feat {
  border-color: rgba(255, 255, 255, .14);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 26px 60px -34px rgba(0, 0, 0, .95),
    0 0 0 1px rgba(139, 92, 246, .10);
}
.wk-card--feat .wk-shot { aspect-ratio: 6 / 4.6; }
.wk-card--feat .wk-visit { opacity: 1; transform: none; }

.wk-badge {
  position: absolute; top: 10px; right: 10px; z-index: 2; padding: 4px 9px; border-radius: 999px;
  border: 1px solid rgba(139, 92, 246, .5); background: rgba(88, 60, 168, .38);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 10px; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: #ede9ff;
}

.wk-meta .wk-result { margin: 8px 0 0; color: #dfe5ef; font-size: 14.5px; line-height: 1.45; }

.wk-more {
  display: flex; align-items: center; gap: 10px;
  margin: clamp(34px, 5vw, 56px) 0 0; font-size: 11px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: #8b95a9;
}
.wk-more span { opacity: .55; }
.wk-more::after {
  content: ""; flex: 1 1 auto; height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .16), transparent);
}
.wk-more + .wk-grid { padding-top: clamp(14px, 2vw, 20px); }

/* --- Phone: 2-up compact gallery so the page is short enough to finish.
   Featured tiles stay full width; the nine secondary tiles lose the
   description line (it stays in the HTML, just hidden) at <=619px. --- */
@media (max-width: 619px) {
  .wk-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; padding-top: 14px; }
  .wk-grid .wk-card { padding: 6px; border-radius: 14px; }
  .wk-grid .wk-shot { border-radius: 9px; aspect-ratio: 6 / 4.4; }
  .wk-grid .wk-meta { padding: 10px 4px 6px; }
  .wk-grid .wk-tag { font-size: 9.5px; letter-spacing: .12em; }
  .wk-grid .wk-meta h2 { margin: 6px 0 0; font-size: 14.5px; line-height: 1.25; }
  .wk-grid .wk-meta p { display: none; }
  .wk-grid .wk-idx { font-size: 9.5px; padding: 3px 6px; top: 7px; left: 7px; }
  .wk-grid .wk-visit { display: none; }
  .wk-card--feat .wk-shot { aspect-ratio: 6 / 4.6; }
}

