/* Home "On the workbench" (visual refresh V5 from https://claude.ai/artifact/JLxLjXhCPxd9wEMciFS3pG).
   Replaces the "Projects I'm still imagining…" grid-paper canvas: a header like Featured Work's,
   then three cards in the work grid's grammar (bordered thumbnail, caption with a pill).
   The markup comes from scripts/apply-workbench.py. The thumbnails are still Framer's
   WhimsicalItem components, so they keep their lightbox; their inline styles are overridden
   here. Linked from every page's <head> because Framer navigates to home client-side. */

/* The section was a bordered 3px frame around a full-bleed grid-paper canvas. */
#main .framer-17yqtca {
  --wb-ink: #10201f;
  --wb-mute: #496362;
  --wb-teal: #007f80;
  height: auto !important;
  gap: 24px !important;
  padding: 48px 60px 88px !important;
  background: none !important;
}
#main .framer-17yqtca::after { content: none !important; }

/* ---------- Workbench texture (each block below can be deleted on its own) ----------
   1. Engineering grid: faint teal lines every 24px, a slightly stronger line every 120px,
      fading out at the top and bottom so the band has no hard edge. */
#main .framer-17yqtca::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 127, 128, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 127, 128, 0.09) 1px, transparent 1px),
    linear-gradient(rgba(0, 127, 128, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 127, 128, 0.05) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: center top;
  -webkit-mask-image: linear-gradient(transparent, #000 72px, #000 calc(100% - 72px), transparent);
  mask-image: linear-gradient(transparent, #000 72px, #000 calc(100% - 72px), transparent);
}
.cs-wb-head, #main .framer-fpjqq0 { position: relative; z-index: 1; }

/* 2. Pencil sketches right of the header (markup in apply-workbench.py). */
.cs-wb-doodles {
  position: absolute;
  right: 10px;
  top: -12px;
  width: 340px;
  height: auto;
  pointer-events: none;
  fill: none;
  stroke: #10201f;
  stroke-opacity: 0.3;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 1199.98px) { .cs-wb-doodles { width: 260px; right: 0; top: -12px; } }
@media (max-width: 999.98px) { .cs-wb-doodles { display: none; } }

/* 3. Masking tape: each card is taped to the bench, at a slightly different angle. */
.cs-wb-card { position: relative; }
.cs-wb-card::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: -12px;
  left: 50%;
  width: 92px;
  height: 24px;
  margin-left: -46px;
  background: rgba(227, 199, 191, 0.82);
  clip-path: polygon(0 12%, 5% 0, 30% 6%, 62% 0, 95% 5%, 100% 0, 97% 50%, 100% 100%, 70% 94%, 35% 100%, 4% 95%, 0 100%, 3% 50%);
  transform: rotate(-3deg);
  pointer-events: none;
}
.cs-wb-card:nth-child(2)::before { transform: translateX(-38px) rotate(2.5deg); }
.cs-wb-card:nth-child(3)::before { transform: translateX(30px) rotate(-1.5deg); }
/* The empty spacer under Featured Work (desktop and tablet) kept the cards clear of the old
   canvas; next to a plain header it left a 250px hole. */
#main .framer-1ofi5hu { min-height: 0 !important; padding: 0 !important; height: 24px !important; }

/* ---------- Header (same type as "Featured Work") ---------- */
.cs-wb-head { width: 100%; max-width: 1320px; padding: 0 10px; display: grid; gap: 4px; }
.cs-wb-h {
  margin: 0;
  font-family: "National Park", "National Park Placeholder", sans-serif;
  font-weight: 600;
  font-size: 25px;
  line-height: 40px;
  letter-spacing: -0.02em;
  color: #050505;
}
.cs-wb-sub { margin: 0; font-family: "Inter", "Inter Placeholder", sans-serif; font-size: 15px; line-height: 1.5; color: var(--wb-mute); }
.cs-wb-more { color: var(--wb-teal); font-weight: 600; text-decoration: none; white-space: nowrap; }
.cs-wb-more:is(:hover, :focus-visible) { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Grid ---------- */
#main .framer-fpjqq0 {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-template-rows: none !important;
  grid-auto-rows: auto !important;
  align-items: stretch !important;
  justify-content: start !important;
  gap: 50px !important;
  width: 100% !important;
  max-width: 1320px;
  height: auto !important;
  padding: 0 10px !important;
}

/* ---------- Card: one outline around thumbnail and caption, shadow only on hover ---------- */
.cs-wb-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1.5px solid #222;
  background: #effffe;
  transition: box-shadow 0.2s ease;
}
.cs-wb-card:is(:hover, :focus-within) { box-shadow: 4px 4px 0 #222; }

/* The thumbnail: 4:3, grid paper behind the image, a rule between it and the caption. */
.cs-wb-card > [class*="-container"] {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  height: auto !important;
  /* min-height: 0, or the image's natural height stretches the box past 4:3. */
  min-height: 0;
  aspect-ratio: 4 / 3 !important;
  overflow: hidden;
  flex: none !important;
  grid-area: auto !important;
}
.cs-wb-card > [class*="-container"] > div {
  border: 0 !important;
  border-bottom: 1.5px solid #222 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background-color: #fff !important;
  background-image:
    linear-gradient(rgba(16, 32, 31, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 32, 31, 0.07) 1px, transparent 1px) !important;
  background-size: 16px 16px !important;
}
.cs-wb-card button { display: block; overflow: hidden; }
.cs-wb-card button:focus-visible { outline: 2px solid var(--wb-teal); outline-offset: -5px; }
.cs-wb-card img, .cs-wb-card video { transition: transform 0.3s cubic-bezier(.22, 1, .36, 1); }
.cs-wb-card:hover :is(img, video) { transform: scale(1.03); }
/* The stamp rally photo is portrait: show all of it, on the grid paper. */
.framer-1t398ym-container img { object-fit: contain !important; padding: 12px 0; box-sizing: border-box; }
/* Keep the Amoriem Labs wordmark (left edge of the screenshot) in the crop. */
.framer-ogcf0h-container img { object-position: left center; }
/* The FigJam board reads from its top-left corner (the flow and the themes). */
.framer-1qev27w-container img { object-position: left top; }

/* Caption: title and status pill on one row, one line of description under them. */
.cs-wb-cap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 12px;
  padding: 15px 15px 17px;
  cursor: pointer;
}
.cs-wb-t {
  margin: 0;
  font-family: "National Park", "National Park Placeholder", sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #121111;
}
.cs-wb-st {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border: 1px solid #222;
  border-radius: 25px;
  background: #fff;
  font-family: "National Park", "National Park Placeholder", sans-serif;
  font-size: 14px;
  line-height: 22px;
  color: var(--wb-ink);
  white-space: nowrap;
}
.cs-wb-st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--wb-teal); }
.cs-wb-d {
  grid-column: 1 / -1;
  margin: 0;
  font-family: "Inter", "Inter Placeholder", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  color: var(--wb-mute);
  text-wrap: pretty;
}
.cs-wb-d b { color: var(--wb-ink); font-weight: 600; }

/* ---------- Smaller desktops and tablet: the pill moves under the title ---------- */
@media (max-width: 1199.98px) {
  #main .framer-17yqtca { padding: 40px 40px 72px !important; }
  #main .framer-fpjqq0 { gap: 20px !important; padding: 0 !important; }
  .cs-wb-head { padding: 0; }
  .cs-wb-cap { grid-template-columns: minmax(0, 1fr); padding: 13px 13px 15px; }
  .cs-wb-st { justify-self: start; }
  .cs-wb-t { font-size: 18px; }
}

/* ---------- Phone: a swipeable row, so the section stays about one screen tall ---------- */
@media (max-width: 809.98px) {
  #main .framer-17yqtca { padding: 32px 0 56px !important; gap: 14px !important; }
  .cs-wb-head { padding: 0 20px; }
  #main .framer-fpjqq0 {
    grid-template-columns: none !important;
    grid-auto-flow: column;
    grid-auto-columns: 78% !important;
    gap: 14px !important;
    padding: 14px 20px 10px !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 20px;
    overscroll-behavior-x: contain;
  }
  .cs-wb-card { scroll-snap-align: start; }
}

@media (prefers-reduced-motion: reduce) {
  .cs-wb-card, .cs-wb-card img, .cs-wb-card video { transition: none; }
  .cs-wb-card:hover :is(img, video) { transform: none; }
}
