/* desk · client names in the business and artists lines (9.11.2026).
   These do not open: no dot sticker, no hand cursor, no lift on hover.
   Business: a spread of business cards. Artists: a handwritten list on a
   taped note. A name links out only when content/works-names.md gives a url. */

.names { display: flex; flex-wrap: wrap; gap: clamp(40px, 5vw, 70px) clamp(30px, 4vw, 60px); align-items: flex-start; margin-top: clamp(60px, 7vw, 110px); }
.nm-grp { flex: 1 1 360px; min-width: 0; }
.nm-g-biz { flex-grow: 1.7; }
.nm-grp .dymo-h { font-size: 16px; }
.nm-grp .dymo-h span { font-size: clamp(16px, 1.3vw, 20px); }
.names .nm-grp[hidden] { display: none; }

/* ---------- business cards, spread on the mat ---------- */
.nm-cards { display: grid; align-items: start; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 16px 12px; padding: 6px 4px 10px; }
.nm-cards .nm { position: relative; display: grid; align-content: end; gap: 5px; aspect-ratio: 1.75 / 1; min-height: 104px; padding: 14px 16px 13px;
  background: var(--paper); color: var(--black); border-radius: 3px; box-shadow: var(--sh-flat); cursor: default;
  transform: rotate(var(--r, 0deg)); }
.nm-cards .nm::before { content: ""; position: absolute; top: 14px; inset-inline-start: 16px; width: 22px; height: 4px; background: var(--black); }
.nm-cards .nm:nth-child(4n+2) { background: var(--black); color: var(--white); }
.nm-cards .nm:nth-child(4n+2)::before { background: var(--orange); }
.nm-cards .nm:nth-child(5n+4)::before { width: 14px; height: 14px; border-radius: 50%; background: transparent; box-shadow: inset 0 0 0 3px var(--black); }
.nm-cards .nm:nth-child(odd) { --r: -1.6deg; }
.nm-cards .nm:nth-child(3n) { --r: 2.2deg; }
.nm-cards .nm:nth-child(4n+2) { --r: .8deg; }
.nm-cards .nm:nth-child(7n+1) { --r: -2.8deg; }
.nm-cards .nm-n { font-weight: 900; font-size: clamp(17px, 1.35vw, 21px); line-height: 1.12; letter-spacing: -.01em; }
.nm-cards .nm-t { font-size: 13px; line-height: 1.3; color: #5E5859; }
.nm-cards .nm:nth-child(4n+2) .nm-t { color: #B9B3B4; }

/* ---------- artists: a handwritten list on a taped note ---------- */
.nm-note { position: relative; max-width: 720px; padding: clamp(36px, 4vw, 54px) clamp(24px, 3.4vw, 50px) clamp(26px, 3vw, 40px);
  background-color: var(--paper); color: var(--black); box-shadow: var(--sh-lift); --r: -1.2deg;
 }
.nm-list { columns: 2 220px; column-gap: clamp(24px, 3vw, 48px); }
.nm-list .nm { break-inside: avoid; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; padding: 7px 0 7px; border-bottom: 1px solid var(--rule); cursor: default; }
.nm-list .nm-n { font-family: var(--f-hand); font-weight: 700; font-size: clamp(19px, 1.5vw, 23px); line-height: 1.35; }
.nm-list .nm-t { font-size: 14px; line-height: 1.4; color: #5E5859; }
.nm-list .nm:nth-child(3n+2) .nm-n { display: inline-block; transform: rotate(-.8deg); }

/* a card with a picture: the client's site on its face, the name under it */
.nm-cards .nm.has-pic { aspect-ratio: auto; min-height: 0; align-content: start; padding: 8px 8px 12px; }
.nm-cards .nm.has-pic::before { display: none; }
.nm-cards .nm-pic { display: block; aspect-ratio: 16 / 10; overflow: hidden; margin-bottom: 6px; background: #eee; box-shadow: 0 0 0 1px rgba(35,31,32,.14); }
.nm-cards .nm-pic img { width: 100%; height: 100%; object-fit: cover; object-position: top; pointer-events: none; }
.nm-cards .has-pic .nm-n, .nm-cards .has-pic .nm-t { padding-inline: 6px; }
.nm-cards .nm.has-pic:nth-child(4n+2) .nm-pic { box-shadow: 0 0 0 1px rgba(255,255,255,.2); }

/* ---------- artists: small polaroids for the names with a photo ---------- */
.nm-art { display: flex; flex-wrap: wrap; gap: clamp(30px, 4vw, 50px); align-items: flex-start; }
.nm-pols { flex: 1 1 100%; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 22px 16px; }
.nm-pol { display: grid; gap: 2px; padding: 10px 10px 12px; background: var(--paper); color: var(--black); box-shadow: var(--sh-flat); cursor: default; transform: rotate(var(--r, 0deg)); }
.nm-pol:nth-child(odd) { --r: -2deg; } .nm-pol:nth-child(3n) { --r: 2.4deg; } .nm-pol:nth-child(4n+2) { --r: .9deg; }
.nm-pol .nm-pic { display: block; aspect-ratio: 1; overflow: hidden; margin-bottom: 8px; background: #231F20; }
.nm-pol .nm-pic img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.nm-pol .nm-n { font-family: var(--f-hand); font-weight: 700; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.25; }
.nm-pol .nm-t { font-size: 12.5px; line-height: 1.3; color: #5E5859; }
.nm-art .nm-note { flex: 1 1 320px; }

/* ---------- a name with a url: a plain link out, still no dot ---------- */
.nm-a { display: inline; color: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--orange); text-underline-offset: 4px; cursor: pointer; }
.nm-a:hover { text-decoration-thickness: 3px; }
.nm-out { display: inline-block; width: .62em; height: .62em; margin-inline-start: .3em; vertical-align: .05em; }
[dir="rtl"] .nm-out { transform: scaleX(-1); }

/* the business and artists line pages carry the names as their work */
.l-names { padding: clamp(50px, 6vw, 90px) var(--pad) clamp(70px, 8vw, 130px); border-top: 4px solid var(--black); }
.l-names .work-h { font-weight: 900; font-size: clamp(54px, 8vw, 130px); line-height: .9; letter-spacing: -.03em; margin-bottom: 40px; }
.l-names .work-h .num { display: inline-block; font-size: .32em; vertical-align: top; background: var(--black); color: var(--white); padding: 4px 12px; letter-spacing: 0; transform: rotate(4deg); }
.l-names .nm-cards { max-width: 1180px; }
.l-names .nm-note { max-width: 980px; }

@media (max-width: 860px) {
  .nm-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
  .nm-cards .nm { min-height: 92px; padding: 12px 12px 11px; aspect-ratio: auto; }
  .nm-cards .nm::before { top: 12px; inset-inline-start: 12px; }
  .nm-cards .nm-n { font-size: 16px; }
  .nm-cards .nm-t { font-size: 12px; }
  .nm-note { --r: -.6deg; }
  .nm-pols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
}
@media (prefers-reduced-motion: reduce) { .nm-cards .nm, .nm-note, .nm-list .nm-n, .nm-pol { transform: none; } }

/* 9.11.2026 UX review: the whole card or polaroid is the link, not only the
   name. A visitor taps the picture of the site first; that tap now goes out.
   Touch target = the card (at least 144 by 160 on a phone). Focus rings the
   card, outside it on the mat, so it shows on the black cards too. */
.nm { position: relative; }
.nm-a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.nm-a:focus-visible { outline: none; }
.nm:has(.nm-a:focus-visible) { outline: 3px solid var(--black); outline-offset: 4px; }
.nm:has(.nm-a) { cursor: pointer; }
.nm:has(.nm-a):hover .nm-a { text-decoration-thickness: 3px; }
.nm-list .nm { min-height: 44px; align-content: center; }
/* a note with one or two names stays a note, not an empty strip across the mat */
.nm-note.nm-note-s, .l-names .nm-note.nm-note-s { flex: 0 1 auto; max-width: 420px; }
.nm-note-s .nm-list { columns: 1; }
.nm-nw { white-space: nowrap; }
