.work-thumb--rich {

  --mock-1: #E4405F; --mock-1-tint: #FDECEF;
  --mock-2: #F2721C; --mock-2-tint: #FEF0E6;
  --mock-3: #E8B33C; --mock-3-tint: #FDF5E7;
  --mock-4: #2D1B56; --mock-4-tint: #EFECF6;
  --mock-5: #1E7A4C; --mock-5-tint: #E9F4EE;
  --mock-6: #3676FF; --mock-6-tint: #E9EFFD;


  --site-1: #FF7A00; --site-1-tint: #FBEADB;
  --site-2: #E8B33C; --site-2-tint: #FCF4E7;
  --site-3: #2D1B56; --site-3-tint: #ECE7F4;
  --site-4: #0E4C4B; --site-4-tint: #E4EDEC;
  --site-5: #2A6042; --site-5-tint: #EDEFEA;
  --site-6: #3676FF; --site-6-tint: #E7EDFB;

  --gap: 14px;
  --shot-radius: 10px;
  background: #fff;
}


.work-zoom[data-view="rows"] .work-thumb--rich {
  position: relative;
  display: flex !important;
  flex-direction: column;
  gap: 18px;

  padding: 22px !important;
  border-radius: 14px !important;
  overflow: hidden !important;
}


.work-thumb--rich::after { display: none !important; content: none !important; }
.work-thumb--rich:hover { transform: none !important; box-shadow: none !important; }


.work-thumb--rich .wk__title {
  position: static !important;
  display: block;
  inset: auto !important;
  padding: 0 !important;
  margin: 0 44px 0 0;
  font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: clamp(16px, 1.35vw, 18px);

  font-weight: 700 !important;
  line-height: 1.2;
  letter-spacing: -0.02em !important;
  text-transform: none !important;
  color: var(--text);
}


.wk__media {
  display: grid;
  grid-template-columns: var(--cols, 1fr 1fr 1fr);
  gap: var(--gap);
  align-items: start;
  min-width: 0;
}

.wk__media--single { grid-template-columns: minmax(0, 1fr); }


.wk__shot.wk__shot--flat {
  box-shadow: none;
  background: none;
  border-radius: 0;
}
.wk__shot.wk__shot--flat img { background: none; border-radius: 0; }
.wk__shot {
  display: block;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  min-width: 0;
  border-radius: var(--shot-radius);

  box-shadow: 0 0 0 1px rgba(26, 26, 24, 0.06);
}
.wk__shot img {
  display: block;
  width: 100%;
  height: auto;

  object-fit: fill;
  border-radius: var(--shot-radius);
  background: var(--bg);
}

@media (hover: hover) and (min-width: 700px) {
  .wk__shot { transition: box-shadow .18s ease, transform .18s ease; }
  .wk__shot:hover { box-shadow: 0 0 0 1px rgba(26, 26, 24, 0.16); transform: translateY(-2px); }
}
.wk__shot:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }



.wk__facts {
  display: grid;
  grid-template-columns: repeat(var(--fact-cols, 4), minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}
.wk__fact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 14px 16px;
  border-radius: 12px;
  background: var(--tint);
  min-width: 0;
}

.wk__fact--problem,
.wk__fact--context  { --accent: var(--mock-1); --tint: var(--mock-1-tint); }
.wk__fact--mattered { --accent: var(--mock-2); --tint: var(--mock-2-tint); }
.wk__fact--did,
.wk__fact--role     { --accent: var(--mock-3); --tint: var(--mock-3-tint); }
.wk__fact--evidence { --accent: var(--mock-4); --tint: var(--mock-4-tint); }
.wk__fact--outcome  { --accent: var(--mock-5); --tint: var(--mock-5-tint); }
.wk__fact--areas    { --accent: var(--mock-6); --tint: var(--mock-6-tint); }

[data-scheme="site"] .wk__fact--problem,
[data-scheme="site"] .wk__fact--context  { --accent: var(--site-1); --tint: var(--site-1-tint); }
[data-scheme="site"] .wk__fact--mattered { --accent: var(--site-2); --tint: var(--site-2-tint); }
[data-scheme="site"] .wk__fact--did,
[data-scheme="site"] .wk__fact--role     { --accent: var(--site-3); --tint: var(--site-3-tint); }
[data-scheme="site"] .wk__fact--evidence { --accent: var(--site-4); --tint: var(--site-4-tint); }
[data-scheme="site"] .wk__fact--outcome  { --accent: var(--site-5); --tint: var(--site-5-tint); }
[data-scheme="site"] .wk__fact--areas    { --accent: var(--site-6); --tint: var(--site-6-tint); }

.wk__fact-head {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.wk__fact-icon {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wk__fact-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--tint);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.wk__fact-label {
  font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--text);
  min-width: 0;
}
.wk__fact-body {
  margin: 0;
  font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.48;
  color: var(--text);

  overflow-wrap: break-word;
  hyphens: auto;
}
.wk__pills { display: flex; flex-wrap: wrap; gap: 6px; align-content: flex-start; }

.wk__pill {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 100px;
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
  background: rgba(255, 255, 255, 0.62);
  font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: var(--text);
}

@supports not (border-color: color-mix(in srgb, red 26%, transparent)) {
  .wk__pill { border-color: rgba(26, 26, 24, 0.18); }
}



   THE GAP IS A PER-GROUP VALUE, not a fixed one. The AI cards carry three
   screenshots each and need the air; the enterprise cards are text only
   and are less than half the height, so the same gap reads as a hole
   between them. Florian, 30 August: "the only thing i want to change is
   the distance between the cards for the enterprise section by half."

   `--card-gap` is the MARGIN, and the visible gap is 18px more than it,
   because `.work-group` contributes its own gap. So the measured gaps are
   120 / 80 / 52 for the AI group and 60 / 40 / 26 for enterprise.

   ORDER MATTERS AND SPECIFICITY DOES NOT FOLLOW THE MEDIA QUERY. An ID is
   (1,0,0) and beats `.work-group` at (0,1,0) whatever block it sits in —
   a media query adds no weight. So each override is repeated at ID
   strength inside each breakpoint, and the later block wins on order.
   Writing the phone value only as `.work-group` would leave the enterprise
   group on its desktop gap all the way down. */
.work-group { --card-gap: 102px; }
#work-enterprise { --card-gap: 42px; }

.work-zoom[data-view="rows"] .work-thumb--rich + .work-thumb--rich {
  margin-top: var(--card-gap, 102px) !important;
}
@media (max-width: 999px) {
  .work-group { --card-gap: 62px; }
  #work-enterprise { --card-gap: 22px; }
}
@media (max-width: 699px) {

  .work-group { --card-gap: 34px; }
  #work-enterprise { --card-gap: 8px; }
}


.wk__toggle { display: none; }
.wk__dots { display: none; }



.wk--fields-3 .wk__facts { --fact-cols: 3; }

@media (max-width: 999px) {
  .wk__facts { --fact-cols: 2; }
}

[data-tiles="4"] .wk__facts { --fact-cols: 4; }
[data-tiles="4"] .wk--fields-3 .wk__facts { --fact-cols: 3; }
@media (max-width: 699px) {
  [data-tiles="4"] .wk__facts { --fact-cols: 1; }
}


@media (max-width: 699px) {

  .work-zoom[data-view="rows"] .work-thumb--rich {
    padding: 16px 14px 14px !important;
    gap: 14px;
    cursor: pointer;
  }
  .work-thumb--rich .wk__title {
    font-size: 15.5px;
    margin-right: 40px;
  }

  .wk__toggle {
    display: inline-flex;
    position: absolute;
    top: 13px;
    right: 13px;
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1.5px solid rgba(26, 26, 24, 0.18);
    color: var(--text);
    cursor: pointer;
    z-index: 3;
  }
  .wk__toggle svg {
    width: 13px; height: 13px;
    fill: none; stroke: currentColor; stroke-width: 2;
    stroke-linecap: round; stroke-linejoin: round;
    transition: transform .22s var(--ease-out, ease);
  }
  .wk.is-open .wk__toggle svg { transform: rotate(180deg); }
  .wk__toggle:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }



  .wk__facts { display: none; }
  .wk.is-open .wk__facts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
  }


  .wk__fact {
    background: none;
    padding: 14px 0;
    gap: 6px;
    border-top: 1px solid rgba(26, 26, 24, 0.08);
    border-radius: 0;
  }
  .wk__fact:first-child { border-top: 0; padding-top: 4px; }
  .wk__fact-icon { display: none; }
  .wk__fact-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
  }

  .wk__fact-body { font-size: 14.5px; line-height: 1.5; hyphens: none; }
  .wk__pill { background: #fff; }


  .wk__media {
    display: flex;
    grid-template-columns: none;
    gap: 10px;

    align-items: center;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;

    margin: 0;
    padding: 0;
  }
  .wk__media::-webkit-scrollbar { display: none; }
  .wk__shot {

    flex: 0 0 100%;
    scroll-snap-align: start;
    cursor: pointer;
  }


  .wk__dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin: -2px 0 0;
    padding: 0;
    list-style: none;
  }
  .wk__dots li {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(26, 26, 24, 0.16);
    transition: background .18s ease, transform .18s ease;
  }
  .wk__dots li.is-on {
    background: var(--text);
    transform: scale(1.15);
  }
  .wk__shot img { height: auto; }
}


.wk-cursor svg {
  width: 26px;
  height: 26px;
  display: block;
  fill: none;
  stroke: #fff;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wk-cursor { transform: translate(-50%, -50%) scale(0.6); }
.wk-cursor.is-visible { transform: translate(-50%, -50%) scale(1); }


@media (hover: hover) and (min-width: 900px) {
  .wk-cursor-live .wk__shot,
  .wk-cursor-live .wk__shot img { cursor: none; }
}


.wk-lb {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
  background: rgba(20, 20, 16, 0.86);

  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity .18s ease;
}
.wk-lb.is-mounted { display: flex; }
.wk-lb.is-open { opacity: 1; }
.wk-lb__img {
  max-width: 100%;
  max-height: 92vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  background: var(--bg);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.45);
}

.wk-lb__close,
.wk-lb__nav {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  padding: 0;
  transition: background .16s ease;
}
.wk-lb__close:hover,
.wk-lb__nav:hover { background: rgba(255, 255, 255, 0.18); }
.wk-lb__close { top: 18px; right: 18px; }
.wk-lb__nav--prev { left: 18px; top: 50%; margin-top: -22px; }
.wk-lb__nav--next { right: 18px; top: 50%; margin-top: -22px; }
.wk-lb__close svg, .wk-lb__nav svg {
  width: 17px; height: 17px;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
@media (max-width: 699px) {
  .wk-lb { padding: 2vh 2vw; }
  .wk-lb__nav { display: none; }
}


body.wk-lb-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .wk__shot, .wk__toggle svg, .wk-lb, .wk__dots li { transition: none; }
  .wk__shot:hover { transform: none; }
}
