/* Work pages (/work/ and its case studies): the hero picture, screen galleries, hub card thumbnails and the
   two-column "job / what we used" table. Built on the custom properties at the top of site.css. */

/* Hero picture: real captures in a panel, where other pages show a drawn stage */
.wk-hero { position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center; min-height: clamp(340px, 40vw, 600px); padding: clamp(40px, 4vw, 56px) clamp(14px, 2vw, 28px) clamp(22px, 2.4vw, 32px); border: 1px solid var(--line-2); border-radius: 18px; background: var(--panel); }
.wk-hero::before, .wk-shot__frame::before { content: ""; position: absolute; inset: -30%; z-index: -1; opacity: .55; background: radial-gradient(32% 38% at 26% 30%, color-mix(in srgb, var(--k, #5b5bf6) 70%, transparent), transparent 70%), radial-gradient(30% 36% at 76% 72%, color-mix(in srgb, var(--k2, #ec4899) 60%, transparent), transparent 70%); }
.wk-hero__tag { position: absolute; top: 14px; left: 18px; right: 18px; color: var(--accent); }
.wk-hero__phones { display: flex; justify-content: center; align-items: center; gap: 4%; width: 100%; }
.wk-hero__phones img { width: 29%; height: auto; border-radius: clamp(12px, 1.6vw, 24px); box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .65); }
.wk-hero__phones img:nth-child(2) { width: 33%; transform: translateY(-5%); }
.wk-hero__wide { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .6); }
.wk-hero__combo { position: relative; width: 100%; padding: 0 12% 10% 0; }
.wk-hero__combo .wk-hero__phone { position: absolute; right: 0; bottom: 0; width: 25%; height: auto; border-radius: clamp(10px, 1.4vw, 20px); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .7); }

/* Screen galleries */
.wk-gal { display: grid; gap: clamp(14px, 2vw, 26px); align-items: start; }
.wk-gal--phone { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1040px; }
.wk-gal--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wk-gal--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wk-shot { display: grid; gap: 12px; align-content: start; }
.wk-shot--span { grid-column: 1 / -1; }
.wk-shot__frame { position: relative; isolation: isolate; overflow: hidden; padding: clamp(10px, 1.3vw, 18px); border: 1px solid var(--line-2); border-radius: 18px; background: var(--panel); }
.wk-shot__frame::before { opacity: .4; }
.wk-shot img { display: block; width: 100%; height: auto; border-radius: 10px; }
.wk-gal--phone .wk-shot img { border-radius: clamp(12px, 1.6vw, 22px); }
.wk-shot figcaption { display: grid; gap: 4px; }
.wk-shot figcaption .mono { color: var(--muted); }
.wk-shot figcaption span + span { color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.wk-galnote { margin-top: 20px; color: var(--muted); }

/* Hub cards: an optional capture above the card text, and a one-line description */
.wk-thumb { position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center; aspect-ratio: 16 / 10; margin: -20px -20px 4px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--k) 10%, var(--panel)); }
.wk-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.wk-thumb--phone img { width: 44%; height: auto; margin-top: 18%; object-fit: initial; border-radius: 14px; box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .6); }
.wk-desc { color: var(--ink-2); font-size: 15.5px; line-height: 1.45; }

/* Job and what did it: a two-column table */
.wk-tbl { border-top: 1px solid var(--line-2); }
.wk-tbl > div { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 8px 28px; padding-block: 18px; border-bottom: 1px solid var(--line); align-items: baseline; }
.wk-tbl > .wk-tbl__h { padding-block: 12px; color: var(--muted); }
.wk-tbl b { font-size: clamp(19px, 1.6vw, 24px); font-weight: 500; letter-spacing: -.025em; line-height: 1.2; }
.wk-tbl span { color: var(--ink-2); }

@media (max-width: 900px) {
  .wk-hero { min-height: 0; }
  .wk-gal--phone { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wk-gal--3, .wk-gal--wide { grid-template-columns: minmax(0, 1fr); }
  .wk-tbl > div { grid-template-columns: minmax(0, 1fr); }
  .wk-tbl > .wk-tbl__h { display: none; }
}
