/* Shared portfolio cards: content comes from content/projects.mjs.
   Keep the arrow's complete ink inside its slot: desktop heading reveals retain
   an inset clip after finishing, so rotating a text glyph at the edge clips it. */
.project-card { min-width: 0; }
.project-card .project-card-image {
  aspect-ratio: 1.35;
  overflow: hidden;
  background: var(--soft);
  border-radius: 0;
  transition: box-shadow 350ms ease;
}
.project-card .project-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  padding: 0;
  object-fit: cover;
  object-position: center;
  transition: transform 350ms ease;
}
.project-card:is(:hover, :focus-within) .project-card-image {
  box-shadow: 0 10px 32px -10px rgb(21 21 21 / .26), 0 -5px 24px -12px rgb(21 21 21 / .16);
}
.project-card:is(:hover, :focus-within) .project-card-image img { transform: scale(1.015); }
.project-card .project-card-copy { display: block; min-width: 0; }
.content-case.project-card .project-card-copy,
.content-resource-project.project-card .project-card-copy { margin-top: 20px; }
.content-case-featured.project-card .project-card-copy { margin-top: 0; }
.content-case-featured.project-card .project-card-title { font-size: clamp(32px, 3.7vw, 54px); }
.project-card .project-card-copy .project-card-scope {
  display: block;
  margin: 0 0 12px;
  padding: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.6;
  text-transform: none;
}
.project-card .project-card-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  color: var(--ink);
  font-size: 29px;
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -.035em;
}
.project-card .project-card-name { min-width: 0; overflow-wrap: anywhere; }
.project-card .project-card-title .project-card-arrow {
  display: grid;
  place-items: center;
  flex: 0 0 1.12em;
  width: 1.12em;
  height: 1.12em;
  margin: 0 0 0 auto;
  font-size: inherit;
  line-height: 1;
  transform: none;
  transition: none;
}
.project-card .project-card-title .project-card-arrow[hidden] { display: none; }
.project-card .project-card-arrow svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform-origin: center;
  transition: transform 240ms ease;
}
.project-card .project-card-copy .project-card-summary {
  margin: 16px 0 0;
  padding: 0;
  max-width: 64ch;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
}
.project-card:is(:hover, :focus-within) .project-card-title {
  font-weight: 600;
  /* The bundled medium face also serves 600; add ink without changing width. */
  -webkit-text-stroke: .22px currentColor;
}
.project-card:is(:hover, :focus-within) .project-card-copy .project-card-summary { font-weight: 500; }
.project-card:is(:hover, :focus-within) .project-card-arrow svg { transform: rotate(45deg); }

/* The Resources carousel shares the listing treatment; its viewport owns the
   scrolling boundary, while the card remains an unboxed part of the canvas. */
.content-resource-project.project-card {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
}
.content-resource-project.project-card .project-card-copy { flex: 1; padding: 0; }
body[data-canvas-active] .content-resource-project.project-card {
  --ink: var(--canvas-ink);
  --muted: var(--canvas-muted);
  --soft: var(--canvas-soft);
}
.content-resource-project.project-card:focus-visible { outline: 2px solid currentColor; outline-offset: 6px; }

/* Preserve the homepage's staggered grid and spotlight interaction. */
.work-item.project-card .project-card-copy { display: block; }
.work-item.project-card .project-card-title { font-size: 24px; }
.work-item.project-card .project-card-copy .project-card-scope { margin-bottom: 10px; }
.work-item.project-card .project-card-copy .project-card-summary { margin-top: 12px; }

/* These notes follow project actions, including the final dark-section CTA. */
p.project-disclaimer,
.closing p.project-disclaimer,
.content-next p.project-disclaimer {
  max-width: 82ch;
  margin: 24px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.75;
}
.closing p.project-disclaimer,
.content-next p.project-disclaimer { color: var(--dark-body); }

@media (prefers-reduced-motion: reduce) {
  .project-card .project-card-image,
  .project-card .project-card-image img,
  .project-card .project-card-arrow svg { transition: none; }
  .project-card:is(:hover, :focus-within) .project-card-image img { transform: none; }
}
