/* P4.10 Project translation from owner-supplied Stitch HTML / DESIGN.md.
 * Scoped to the Project PHP factory. No site fonts, raw brand colors, inline
 * styles or Tailwind runtime; theme palette/EB family bridge are authoritative.
 */
.zaco-fe-stitch-project {
  --zaco-fe-project-copy-measure: 42rem;
  --zaco-fe-project-gallery-gap: var(--zaco-fe-space-4);
  --zaco-fe-project-related-gap: var(--zaco-fe-space-4);
  --zaco-fe-project-feature-pad: var(--zaco-fe-space-5);
}
.zaco-fe-stitch-project .zaco-fe-section { padding-block: var(--zaco-fe-editorial-section-space); }
.zaco-fe-stitch-project .zaco-fe-section-heading { margin-bottom: var(--zaco-fe-space-8); }
.zaco-fe-stitch-project .zaco-fe-section-heading h2,
.zaco-fe-stitch-project .zaco-fe-location-card h2,
.zaco-fe-stitch-project .zaco-fe-cta h2 {
  font-family: var(--zaco-fe-font-display);
  font-size: var(--zaco-fe-editorial-section-size);
  font-weight: 400;
  line-height: var(--zaco-fe-editorial-line-height);
  letter-spacing: var(--zaco-fe-display-tracking-md);
  color: var(--zaco-fe-heading);
}
.zaco-fe-stitch-project .zaco-fe-eyebrow {
  color: var(--zaco-fe-accent);
  letter-spacing: .22em;
}
/* P4.12: owner-selected Stitch two-card bento. Old full-bleed/right-edge
 * geometry belongs to archived P4.7; Project now uses the same centered wide
 * measure as the sections below. P4.13: compact natural-height overview rows
 * allow the two desktop cards to fit in a viewport-height budget. */
.zaco-fe-stitch-project .zaco-fe-project-hero {
  box-sizing: border-box;
  width: 100%;
  max-width: min(var(--zaco-fe-layout-wide), calc(100vw - var(--zaco-fe-container-edge-clearance) - var(--zaco-fe-container-edge-clearance)));
  margin-inline: auto;
  margin-block: var(--zaco-fe-space-6) var(--zaco-fe-space-10);
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(20rem, 3.5fr);
  gap: var(--zaco-fe-project-hero-grid-gap);
  align-items: stretch;
  min-height: var(--zaco-fe-project-hero-bento-height);
  background: transparent;
}
/* WordPress admin toolbar reduces the visible page canvas on logged-in QA. */
body.admin-bar .zaco-fe-stitch-project {
  --zaco-fe-project-hero-fold-reserve: calc(var(--zaco-fe-project-hero-fold-reserve-base) + var(--wp-admin--admin-bar--height, var(--zaco-fe-project-hero-admin-bar-fallback)));
}
.zaco-fe-stitch-project .zaco-fe-project-hero__main {
  min-width: 0;
  min-height: var(--zaco-fe-project-hero-bento-height);
  height: 100%;
  border-radius: var(--zaco-fe-project-hero-card-radius);
  isolation: isolate;
  box-shadow: var(--zaco-fe-shadow-card);
}
.zaco-fe-stitch-project .zaco-fe-project-hero__copy {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  width: 100%;
  height: 100%;
  min-height: var(--zaco-fe-project-hero-bento-height);
  padding: var(--zaco-fe-project-hero-bento-pad);
}
.zaco-fe-stitch-project .zaco-fe-project-hero__details {
  width: min(100%,var(--zaco-fe-project-copy-measure));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.zaco-fe-stitch-project .zaco-fe-project-hero__copy .zaco-fe-back {
  display: inline-flex;
  align-self: flex-start;
  margin: 0;
  color: var(--zaco-fe-on-media);
}
.zaco-fe-stitch-project .zaco-fe-project-hero__details .zaco-fe-eyebrow {
  margin-block-end: 0;
}
.zaco-fe-stitch-project .zaco-fe-project-hero__details h1 {
  margin-block: var(--zaco-fe-editorial-eyebrow-to-title) var(--zaco-fe-editorial-title-to-subtitle);
}
.zaco-fe-stitch-project .zaco-fe-project-hero__details .zaco-fe-project-hero__subtitle {
  /* Prevent theme paragraph defaults from making the title/meta group drift. */
  margin-block: 0;
}
.zaco-fe-stitch-project .zaco-fe-project-hero__details .zaco-fe-project-hero__location {
  margin-block: var(--zaco-fe-editorial-subtitle-to-meta) var(--zaco-fe-editorial-meta-to-support);
  font-weight: var(--zaco-fe-editorial-meta-weight);
  color: var(--zaco-fe-editorial-on-media-soft);
}
.zaco-fe-stitch-project .zaco-fe-project-hero__details .zaco-fe-project-hero__summary {
  margin-block: 0;
  color: var(--zaco-fe-editorial-on-media-muted);
}
.zaco-fe-stitch-project .zaco-fe-project-hero__details .zaco-fe-chip-row {
  margin-block-start: var(--zaco-fe-editorial-support-to-chips);
}
/* Header and image remain independent of the right card's amount of metadata. */
.zaco-fe-stitch-project .zaco-fe-project-hero__shade {
  background: linear-gradient(90deg,var(--zaco-fe-media-scrim-strong) 0%,var(--zaco-fe-media-scrim-medium) 48%,transparent 96%);
}

.zaco-fe-stitch-project .zaco-fe-project-hero__copy h1 {
  font-size: var(--zaco-fe-editorial-hero-size);
  font-weight: var(--zaco-fe-editorial-hero-weight);
}
.zaco-fe-stitch-project .zaco-fe-project-hero__summary { max-width: var(--zaco-fe-editorial-support-measure); }
.zaco-fe-stitch-project .zaco-fe-project-overview h2 {
  font-family: var(--zaco-fe-font-display);
  font-size: var(--zaco-fe-editorial-panel-size);
  font-weight: 500;
  line-height: var(--zaco-fe-editorial-line-height);
}
/* P4.11: reproduce Stitch's actual overlay chips and raised overview card.
 * All geometry consumes foundation primitives; Blocksy owns identity values. */
.zaco-fe-stitch-project .zaco-fe-project-hero__subtitle {
  font-style: italic;
  color: var(--zaco-fe-editorial-on-media-soft);
}
.zaco-fe-stitch-project .zaco-fe-chip-row { gap: var(--zaco-fe-space-2); }
.zaco-fe-stitch-project .zaco-fe-chip-row span {
  display: inline-flex;
  align-items: center;
  min-height: var(--zaco-fe-space-8);
  padding: var(--zaco-fe-project-pill-padding-block) var(--zaco-fe-project-pill-padding-inline);
  border: var(--zaco-fe-stroke-hairline) solid var(--zaco-fe-editorial-pill-stroke);
  border-radius: var(--zaco-fe-project-pill-radius);
  background: var(--zaco-fe-editorial-pill-fill);
  color: var(--zaco-fe-on-media);
  line-height: var(--zaco-fe-leading-compact);
  backdrop-filter: blur(var(--zaco-fe-stitch-overlay-blur));
}
.zaco-fe-stitch-project .zaco-fe-project-overview {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  align-self: stretch;
  background: var(--zaco-fe-surface-raised);
  border: var(--zaco-fe-stroke-hairline) solid var(--zaco-fe-editorial-panel-border);
  border-radius: var(--zaco-fe-project-hero-card-radius);
  padding: var(--zaco-fe-project-hero-overview-pad-compact);
  box-shadow: var(--zaco-fe-editorial-panel-shadow);
}
.zaco-fe-stitch-project .zaco-fe-project-overview h2 {
  padding-bottom: var(--zaco-fe-space-3);
  margin-bottom: 0;
  border-bottom: var(--zaco-fe-stroke-hairline) solid var(--zaco-fe-editorial-panel-border);
}
.zaco-fe-stitch-project .zaco-fe-project-overview dl {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}
.zaco-fe-stitch-project .zaco-fe-project-overview dl > div {
  flex: 1 1 auto;
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(var(--zaco-fe-project-overview-icon-box) + 2 * var(--zaco-fe-project-hero-overview-row-pad-compact));
  padding-block: var(--zaco-fe-project-hero-overview-row-pad-compact);
  padding-inline-start: calc(var(--zaco-fe-project-overview-icon-box) + var(--zaco-fe-project-overview-item-gap));
}
.zaco-fe-stitch-project .zaco-fe-project-overview dt {
  display: block;
  font-size: var(--zaco-fe-text-xs);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.zaco-fe-stitch-project .zaco-fe-project-overview__icon {
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: var(--zaco-fe-project-overview-icon-box);
  height: var(--zaco-fe-project-overview-icon-box);
  padding: var(--zaco-fe-space-2);
  border-radius: var(--zaco-fe-stitch-card-radius);
  background: var(--zaco-fe-editorial-surface-tile);
}
.zaco-fe-stitch-project .zaco-fe-project-overview__icon .zaco-fe-icon {
  width: var(--zaco-fe-project-overview-icon-glyph);
  height: var(--zaco-fe-project-overview-icon-glyph);
}
.zaco-fe-stitch-project .zaco-fe-project-overview dd {
  margin-inline-start: 0;
  font-size: var(--zaco-fe-text-sm);
  line-height: var(--zaco-fe-leading-compact);
  overflow-wrap: break-word;
}
.zaco-fe-stitch-project .zaco-fe-project-overview .zaco-fe-actions { margin-top: var(--zaco-fe-project-hero-overview-action-gap-compact); }
.zaco-fe-stitch-project .zaco-fe-project-overview .zaco-fe-button--primary {
  background: var(--zaco-fe-editorial-cta-bg);
  border-color: var(--zaco-fe-editorial-cta-bg);
  color: var(--zaco-fe-editorial-cta-on) !important;
  width: 100%;
}
.zaco-fe-stitch-project .zaco-fe-project-overview .zaco-fe-button--primary:is(:hover,:focus-visible) {
  background: var(--zaco-fe-editorial-cta-hover-bg);
}
.zaco-fe-stitch-project .zaco-fe-document-link {
  text-align: center;
  font-weight: 500;
  text-decoration: none;
  padding-block: var(--zaco-fe-project-hero-overview-document-gap-compact) 0;
}
/* Owner-accepted Project Story balance: narrative and media share equal desktop
 * columns. Text determines row height; the 1+2 mosaic fits inside the media track. */
.zaco-fe-stitch-project .zaco-fe-project-story__grid {
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: var(--zaco-fe-stitch-story-gap);
  align-items: stretch;
}
/* Missing-media projects still get a readable full-width editorial section. */
.zaco-fe-stitch-project .zaco-fe-project-story__grid--no-media { grid-template-columns: minmax(0,1fr); }
.zaco-fe-stitch-project .zaco-fe-stitch-story__lead {
  font-family: var(--zaco-fe-font-display);
  font-size: var(--zaco-fe-editorial-lead-size);
  line-height: 1.35;
  color: var(--zaco-fe-accent);
  margin-bottom: var(--zaco-fe-space-4);
}
.zaco-fe-stitch-project .zaco-fe-stitch-story__description,
.zaco-fe-stitch-project .zaco-fe-stitch-story__narrative .zaco-fe-richtext {
  font-size: var(--zaco-fe-text-base);
  line-height: var(--zaco-fe-leading-body);
  color: var(--zaco-fe-text-muted);
}
.zaco-fe-stitch-project .zaco-fe-stitch-story__narrative .zaco-fe-richtext { margin-block-end: var(--zaco-fe-space-6); }
.zaco-fe-stitch-project .zaco-fe-story-points {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  gap: var(--zaco-fe-space-4);
  border: 0;
  padding: 0;
  margin-top: var(--zaco-fe-space-8);
}
.zaco-fe-stitch-project .zaco-fe-stitch-story-point {
  display: flex;
  gap: var(--zaco-fe-space-4);
  align-items: flex-start;
  padding: var(--zaco-fe-space-4);
  border: 1px solid transparent;
  border-radius: var(--zaco-fe-stitch-card-radius);
  background: var(--zaco-fe-editorial-surface-tile);
}
.zaco-fe-stitch-project .zaco-fe-stitch-story-point__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--zaco-fe-stitch-card-radius);
  background: var(--zaco-fe-accent-soft);
}
.zaco-fe-stitch-project .zaco-fe-stitch-story-point__icon .zaco-fe-icon { width: 1.2rem; height: 1.2rem; }
.zaco-fe-stitch-project .zaco-fe-stitch-story-point strong {
  display: block;
  color: var(--zaco-fe-heading);
  font-size: var(--zaco-fe-text-lg);
  line-height: var(--zaco-fe-leading-compact);
}
.zaco-fe-stitch-project .zaco-fe-stitch-story-point p {
  margin: var(--zaco-fe-space-1) 0 0;
  font-size: var(--zaco-fe-text-sm);
  line-height: var(--zaco-fe-leading-body);
  color: var(--zaco-fe-text-muted);
}
.zaco-fe-stitch-project .zaco-fe-project-gallery {
  display: grid;
  grid-template-columns: minmax(0,var(--zaco-fe-story-media-major-track)) minmax(0,var(--zaco-fe-story-media-minor-track));
  grid-template-rows: repeat(2,minmax(0,1fr));
  gap: var(--zaco-fe-project-gallery-gap);
  align-self: stretch;
  min-width: 0;
  min-height: 0;
  height: 100%;
}
.zaco-fe-stitch-project .zaco-fe-project-gallery figure,
.zaco-fe-stitch-project .zaco-fe-project-gallery figure.is-main {
  position: relative;
  margin: 0;
  min-height: 0;
  min-width: 0;
  aspect-ratio: auto;
  border-radius: var(--zaco-fe-stitch-card-radius);
  overflow: hidden;
}
.zaco-fe-stitch-project .zaco-fe-project-gallery figure.is-main {
  grid-column: 1;
  grid-row: 1 / span 2;
}
/* With only 1–2 approved images, fill the row rather than create empty cells. */
.zaco-fe-stitch-project .zaco-fe-project-gallery--single { grid-template-columns: minmax(0,1fr); }
.zaco-fe-stitch-project .zaco-fe-project-gallery--pair { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: minmax(0,1fr); }
.zaco-fe-stitch-project .zaco-fe-project-gallery--pair figure.is-main { grid-row: 1; }
.zaco-fe-stitch-project .zaco-fe-project-gallery figure img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.zaco-fe-stitch-project .zaco-fe-stitch-media-label {
  position: absolute;
  left: var(--zaco-fe-space-3);
  bottom: var(--zaco-fe-space-3);
  display: inline-flex;
  align-items: center;
  gap: var(--zaco-fe-space-2);
  max-width: calc(100% - 2 * var(--zaco-fe-space-3));
  padding: var(--zaco-fe-space-2) var(--zaco-fe-space-3);
  border-radius: var(--zaco-fe-stitch-card-radius);
  background: var(--zaco-fe-media-scrim-strong);
  color: var(--zaco-fe-editorial-on-media);
  font-size: var(--zaco-fe-text-xs);
  line-height: var(--zaco-fe-leading-compact);
  overflow-wrap: anywhere;
  backdrop-filter: blur(var(--zaco-fe-stitch-overlay-blur));
}
.zaco-fe-stitch-project .zaco-fe-stitch-media-label .zaco-fe-icon { width: 1rem; height: 1rem; filter: brightness(0) invert(1); }
/* Full-bleed soft/mint chapter; 5 cards across at wide desktop, wrapping
 * deliberately at tablet and mobile instead of creating vertical letterwrap. */
.zaco-fe-stitch-project .zaco-fe-stitch-features { background: var(--zaco-fe-editorial-surface-mint); }
.zaco-fe-stitch-project .zaco-fe-feature-grid { grid-template-columns: repeat(auto-fit,minmax(min(100%,var(--zaco-fe-stitch-feature-track-min)),1fr)); gap: var(--zaco-fe-stitch-feature-gap); }
.zaco-fe-stitch-project .zaco-fe-feature-card {
  border: 1px solid var(--zaco-fe-border);
  border-radius: var(--zaco-fe-stitch-card-radius);
  box-shadow: var(--zaco-fe-shadow-card);
  background: var(--zaco-fe-surface-raised);
}
.zaco-fe-stitch-project .zaco-fe-feature-card__media { position: relative; aspect-ratio: 4/3; }
.zaco-fe-stitch-project .zaco-fe-feature-card__body { padding: var(--zaco-fe-project-feature-pad); }
.zaco-fe-stitch-project .zaco-fe-feature-card__icon {
  top: var(--zaco-fe-project-feature-icon-top);
  right: var(--zaco-fe-space-3);
  width: 2rem;
  height: 2rem;
  color: var(--zaco-fe-accent);
  background: var(--zaco-fe-surface-raised);
  box-shadow: var(--zaco-fe-shadow-card);
}
.zaco-fe-stitch-project .zaco-fe-feature-card__icon .zaco-fe-icon { filter: none; }
.zaco-fe-stitch-project .zaco-fe-feature-card h3 {
  color: var(--zaco-fe-heading);
  font-size: var(--zaco-fe-text-base);
  line-height: var(--zaco-fe-leading-compact);
  margin-bottom: var(--zaco-fe-space-2);
}
.zaco-fe-stitch-project .zaco-fe-feature-card p { font-size: var(--zaco-fe-text-sm); line-height: var(--zaco-fe-leading-body); }
/* Materials gallery 7/12 and nested, tinted related-products panel 5/12. */
.zaco-fe-stitch-project .zaco-fe-stitch-materials { background: var(--zaco-fe-surface); }
.zaco-fe-stitch-project .zaco-fe-project-midgrid { grid-template-columns: minmax(0,7fr) minmax(0,5fr); gap: var(--zaco-fe-stitch-story-gap); align-items: start; }
.zaco-fe-stitch-project .zaco-fe-material-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: var(--zaco-fe-space-3); }
.zaco-fe-stitch-project .zaco-fe-material { min-width: 0; border: none; background: transparent; }
.zaco-fe-stitch-project .zaco-fe-material__media { width: 100%; height: auto; aspect-ratio: 1; border-radius: var(--zaco-fe-stitch-card-radius); overflow: hidden; }
.zaco-fe-stitch-project .zaco-fe-material__body { padding: var(--zaco-fe-space-2) 0 0; overflow-wrap: anywhere; }
.zaco-fe-stitch-project .zaco-fe-related-panel {
  min-width: 0;
  padding: var(--zaco-fe-space-8);
  background: var(--zaco-fe-editorial-surface-mint);
  border: 0;
  border-radius: var(--zaco-fe-stitch-card-radius);
}
.zaco-fe-stitch-project .zaco-fe-related-panel .zaco-fe-section-heading h2 { font-size: var(--zaco-fe-editorial-panel-size); }
.zaco-fe-stitch-project .zaco-fe-stitch-related-list { display: grid; gap: var(--zaco-fe-project-related-gap); }
.zaco-fe-stitch-project .zaco-fe-related-item {
  display: grid;
  grid-template-columns: 5rem minmax(0,1fr) auto;
  align-items: center;
  gap: var(--zaco-fe-space-4);
  min-width: 0;
  padding: var(--zaco-fe-space-3);
  border: 1px solid transparent;
  border-radius: var(--zaco-fe-stitch-card-radius);
  background: var(--zaco-fe-surface-raised);
  color: var(--zaco-fe-heading);
  text-decoration: none;
  transition: background-color var(--zaco-fe-motion-fast) var(--zaco-fe-motion-ease),
              box-shadow var(--zaco-fe-motion-fast) var(--zaco-fe-motion-ease);
}
.zaco-fe-stitch-project .zaco-fe-related-item__media { display: block; width: 5rem; height: 4rem; overflow: hidden; border-radius: var(--zaco-fe-stitch-card-radius); background: var(--zaco-fe-surface-subtle); }
.zaco-fe-stitch-project .zaco-fe-related-item__media img { width: 100%; height: 100%; object-fit: cover; }
.zaco-fe-stitch-project .zaco-fe-related-item__body { display: grid; gap: var(--zaco-fe-space-1); min-width: 0; }
.zaco-fe-stitch-project .zaco-fe-related-item__body strong { display: block; font-size: var(--zaco-fe-text-base); line-height: var(--zaco-fe-leading-compact); overflow-wrap: anywhere; }
.zaco-fe-stitch-project .zaco-fe-related-item__body small { font-size: var(--zaco-fe-text-sm); color: var(--zaco-fe-text-muted); line-height: var(--zaco-fe-leading-compact); }
.zaco-fe-stitch-project .zaco-fe-related-item__arrow { color: var(--zaco-fe-accent); transition: transform var(--zaco-fe-motion-fast) var(--zaco-fe-motion-ease); }
@media (hover:hover) {
  .zaco-fe-stitch-project a.zaco-fe-related-item:hover { background: var(--zaco-fe-hover-surface); box-shadow: var(--zaco-fe-hover-shadow); }
  .zaco-fe-stitch-project a.zaco-fe-related-item:hover .zaco-fe-related-item__arrow { transform: translateX(var(--zaco-fe-space-1)); }
}
/* Reuse the existing canonical Location / approved Testimonial data with
 * the two independent rounded panels shown in the Stitch reference. */
.zaco-fe-stitch-project .zaco-fe-location-testimonial {
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  align-items: stretch;
  gap: var(--zaco-fe-stitch-story-gap);
}
.zaco-fe-stitch-project .zaco-fe-location-card {
  min-width: 0;
  padding: var(--zaco-fe-space-5);
  background: var(--zaco-fe-surface-raised);
  border: var(--zaco-fe-stroke-hairline) solid var(--zaco-fe-border);
  border-radius: var(--zaco-fe-stitch-card-radius);
  box-shadow: var(--zaco-fe-shadow-card);
  grid-template-columns: minmax(0,1fr) minmax(0,1.1fr);
}
.zaco-fe-stitch-project .zaco-fe-location-card:not(:has(> img)) { grid-template-columns: minmax(0,1fr); }
/* P4.14: Stitch location/testimonial source parity; theme colors remain authoritative. */
.zaco-fe-stitch-project .zaco-fe-location-card__content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
}
.zaco-fe-stitch-project .zaco-fe-location-card__heading {
  display: flex;
  align-items: center;
  gap: var(--zaco-fe-location-badge-gap);
  margin-block-end: var(--zaco-fe-space-3);
}
.zaco-fe-stitch-project .zaco-fe-location-card__heading .zaco-fe-eyebrow {
  display: inline-block;
  margin: 0;
  line-height: 1.2;
}
.zaco-fe-stitch-project .zaco-fe-location-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 var(--zaco-fe-location-badge-icon);
  height: var(--zaco-fe-location-badge-icon);
  color: var(--zaco-fe-accent);
}
.zaco-fe-stitch-project .zaco-fe-location-card__icon :is(img, svg) {
  display: block;
  width: 100%;
  height: 100%;
}
.zaco-fe-stitch-project .zaco-fe-location-card__content h2 {
  margin-block: 0 var(--zaco-fe-space-3);
}
.zaco-fe-stitch-project .zaco-fe-location-card__content p {
  font-size: var(--zaco-fe-location-body-size);
  line-height: var(--zaco-fe-location-body-leading);
  margin-block: 0 var(--zaco-fe-space-4);
}
.zaco-fe-stitch-project .zaco-fe-location-card__link {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: var(--zaco-fe-space-2);
  margin-block-start: auto;
  font-weight: 600;
  color: var(--zaco-fe-accent);
  text-decoration: none;
}
.zaco-fe-stitch-project .zaco-fe-location-card__link:hover { color: var(--zaco-fe-heading); }
.zaco-fe-stitch-project .zaco-fe-location-card__link span:last-child {
  transition: transform var(--zaco-fe-motion-fast) var(--zaco-fe-motion-ease);
}
.zaco-fe-stitch-project .zaco-fe-location-card__link:hover span:last-child,
.zaco-fe-stitch-project .zaco-fe-location-card__link:focus-visible span:last-child { transform: translateX(.25rem); }
.zaco-fe-stitch-project .zaco-fe-testimonial__quote {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  align-self: stretch;
}
.zaco-fe-stitch-project .zaco-fe-testimonial__quote p {
  font-size: var(--zaco-fe-testimonial-body-size);
  line-height: var(--zaco-fe-testimonial-body-leading);
  max-width: 60ch;
  margin: 0 0 var(--zaco-fe-testimonial-attribution-gap);
}
.zaco-fe-stitch-project .zaco-fe-testimonial__quote cite {
  font-style: normal;
  margin-block-start: auto;
}

.zaco-fe-stitch-project .zaco-fe-location-card > img {
  width: 100%;
  height: 100%;
  min-height: 11rem;
  max-height: 17rem;
  aspect-ratio: var(--zaco-fe-location-media-ratio);
  object-fit: cover;
  border-radius: var(--zaco-fe-stitch-card-radius);
}
.zaco-fe-stitch-project .zaco-fe-testimonial {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: var(--zaco-fe-space-5);
  border-radius: var(--zaco-fe-stitch-card-radius);
  border: var(--zaco-fe-stroke-hairline) solid var(--zaco-fe-border);
  padding: var(--zaco-fe-space-6);
  background: var(--zaco-fe-editorial-surface-mint);
}
.zaco-fe-stitch-project .zaco-fe-testimonial__quote { flex: 1; min-width: 0; }
.zaco-fe-stitch-project .zaco-fe-testimonial__quote > span {
  font-family: var(--zaco-fe-font-display);
  font-size: var(--zaco-fe-editorial-panel-size);
  line-height: 1;
  color: var(--zaco-fe-accent);
}
.zaco-fe-stitch-project .zaco-fe-testimonial__media {
  width: var(--zaco-fe-project-testimonial-image-width);
  flex: 0 0 var(--zaco-fe-project-testimonial-image-width);
  aspect-ratio: 4/3;
  margin: 0;
  overflow: hidden;
  border-radius: var(--zaco-fe-stitch-card-radius);
}
.zaco-fe-stitch-project .zaco-fe-testimonial__media img { height: 100%; object-fit: cover; }
@media (max-width:1200px) {
  .zaco-fe-stitch-project .zaco-fe-feature-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .zaco-fe-stitch-project .zaco-fe-material-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width:900px) {
  .zaco-fe-stitch-project .zaco-fe-project-story__grid,
  .zaco-fe-stitch-project .zaco-fe-project-midgrid { grid-template-columns: minmax(0,1fr); }
  /* Once narrative and gallery stack, use a media-owned ratio instead of
   * forcing equal heights between two no-longer-adjacent sections. */
  .zaco-fe-stitch-project .zaco-fe-project-gallery {
    height: auto;
    aspect-ratio: var(--zaco-fe-story-media-tablet-ratio);
    min-height: 0;
  }
  .zaco-fe-stitch-project .zaco-fe-project-hero {
    max-width: min(var(--zaco-fe-layout-wide), calc(100vw - var(--zaco-fe-container-edge-clearance) - var(--zaco-fe-container-edge-clearance)));
    min-height: 0;
    grid-template-columns: minmax(0,1fr);
    gap: var(--zaco-fe-space-5);
  }
  .zaco-fe-stitch-project .zaco-fe-project-hero__main {
    height: auto;
    min-height: 34rem;
  }
  .zaco-fe-stitch-project .zaco-fe-project-hero__copy {
    width: 100%;
    min-height: 34rem;
  }
  .zaco-fe-stitch-project .zaco-fe-project-overview {
    height: auto;
  }
  .zaco-fe-stitch-project .zaco-fe-feature-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .zaco-fe-stitch-project .zaco-fe-material-grid { grid-template-columns: repeat(6,minmax(0,1fr)); }
  .zaco-fe-stitch-project .zaco-fe-location-testimonial { grid-template-columns: minmax(0,1fr); }
}
@media (max-width:620px) {
  .zaco-fe-stitch-project .zaco-fe-section { padding-block: var(--zaco-fe-editorial-section-space-mobile); }
  .zaco-fe-stitch-project .zaco-fe-project-hero {
    margin-block: var(--zaco-fe-space-4) var(--zaco-fe-space-8);
  }
  .zaco-fe-stitch-project .zaco-fe-project-hero__main { min-height: 31rem; }
  .zaco-fe-stitch-project .zaco-fe-project-hero__copy {
    width: 100%;
    min-height: 31rem;
    padding: var(--zaco-fe-space-6);
  }
  /* Maintain the same editorial grouping at mobile; the role tokens are fluid. */
  .zaco-fe-stitch-project .zaco-fe-project-gallery {
    height: auto;
    aspect-ratio: auto;
    grid-template-columns: repeat(2,minmax(0,1fr));
    grid-template-rows: auto auto;
  }
  .zaco-fe-stitch-project .zaco-fe-project-gallery figure.is-main {
    grid-column: 1 / -1;
    grid-row: 1;
    aspect-ratio: var(--zaco-fe-story-media-mobile-major-ratio);
  }
  .zaco-fe-stitch-project .zaco-fe-project-gallery figure:not(.is-main) { aspect-ratio: var(--zaco-fe-story-media-mobile-minor-ratio); }
  .zaco-fe-stitch-project .zaco-fe-project-gallery--single { grid-template-columns: minmax(0,1fr); }
  .zaco-fe-stitch-project .zaco-fe-project-gallery--pair { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .zaco-fe-stitch-project .zaco-fe-project-gallery--pair figure:not(.is-main) { grid-column: 1 / -1; }
  .zaco-fe-stitch-project .zaco-fe-feature-grid { grid-template-columns: minmax(0,1fr); }
  .zaco-fe-stitch-project .zaco-fe-material-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .zaco-fe-stitch-project .zaco-fe-related-panel { padding: var(--zaco-fe-space-5); }
  .zaco-fe-stitch-project .zaco-fe-location-card { grid-template-columns: minmax(0,1fr); }
  .zaco-fe-stitch-project .zaco-fe-testimonial { flex-direction: column; align-items: stretch; }
  .zaco-fe-stitch-project .zaco-fe-testimonial__media { width: 100%; flex-basis: auto; }
  .zaco-fe-stitch-project .zaco-fe-related-item { grid-template-columns: 4rem minmax(0,1fr) auto; gap: var(--zaco-fe-space-3); }
  .zaco-fe-stitch-project .zaco-fe-related-item__media { width: 4rem; height: 3.5rem; }
}
@media (max-width:360px) {
  .zaco-fe-stitch-project .zaco-fe-material-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .zaco-fe-stitch-project .zaco-fe-related-item,
  .zaco-fe-stitch-project .zaco-fe-related-item__arrow { transition-duration: 0ms; transform: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .zaco-fe-stitch-project .zaco-fe-location-card__link span:last-child { transition-duration: 0ms; transform: none !important; }
}

/* P4.16 two-column FAQs + canonical Project/gallery visual collection. */
.zaco-fe-stitch-project .zaco-fe-project-faq__columns { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:var(--zaco-fe-info-column-gap); align-items:stretch; }
.zaco-fe-stitch-project .zaco-fe-project-faq__panel { min-width:0; display:flex; flex-direction:column; }
.zaco-fe-stitch-project .zaco-fe-project-faq__panel .zaco-fe-section-heading { margin-block-end:var(--zaco-fe-space-6); }
.zaco-fe-stitch-project .zaco-fe-project-faq__panel .zaco-fe-section-heading h2 { font-family:var(--zaco-fe-font-display); font-size:var(--zaco-fe-display-md); line-height:var(--zaco-fe-display-leading-md); }
.zaco-fe-stitch-project .zaco-fe-project-faq__questions .zaco-fe-faqs { align-content:start; }
.zaco-fe-stitch-project .zaco-fe-project-faq__questions .zaco-fe-faq__answer { max-height:var(--zaco-fe-faq-expanded-max); overflow-y:auto; }
.zaco-fe-stitch-project .zaco-fe-project-faq__view-all { align-self:flex-start; margin-block-start:var(--zaco-fe-space-5); background:transparent; border:0; color:var(--zaco-fe-accent); font-weight:600; padding:var(--zaco-fe-space-2) 0; cursor:pointer; }
.zaco-fe-stitch-project .zaco-fe-project-faq__view-all:hover { text-decoration:underline; }
.zaco-fe-stitch-project .zaco-fe-project-faq__view-all:focus-visible { outline:var(--zaco-fe-faq-caret-stroke) solid var(--zaco-fe-accent); outline-offset:3px; }
.zaco-fe-stitch-project .zaco-fe-project-faq__visuals { flex:1; min-height:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-rows:repeat(2,minmax(0,1fr)); gap:var(--zaco-fe-info-card-gap); }
.zaco-fe-stitch-project .zaco-fe-project-faq__visuals--sparse { grid-template-rows:auto; }
.zaco-fe-visual-card { display:flex; min-height:0; flex-direction:column; text-decoration:none; color:var(--zaco-fe-theme-text); border-radius:var(--zaco-fe-info-card-radius); overflow:hidden; background:var(--zaco-fe-faq-card-surface); box-shadow:var(--zaco-fe-faq-card-shadow); }
.zaco-fe-visual-card__media { display:block; position:relative; flex:1 1 0; height:0; min-height:var(--zaco-fe-info-image-min); overflow:hidden; }
.zaco-fe-visual-card__media img { display:block; position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transition:transform var(--zaco-fe-motion-image) var(--zaco-fe-motion-ease); }
.zaco-fe-visual-card__body { display:grid; grid-template-columns:minmax(0,1fr) auto; flex:0 0 auto; align-items:center; gap:var(--zaco-fe-space-1) var(--zaco-fe-space-2); padding:var(--zaco-fe-space-3); }
.zaco-fe-visual-card__body strong { grid-column:1; grid-row:1; min-width:0; font-size:var(--zaco-fe-info-title-size); line-height:1.25; }
.zaco-fe-visual-card__body small { grid-column:1; grid-row:2; color:var(--zaco-fe-theme-muted); }
.zaco-fe-visual-card__body strong { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.zaco-fe-visual-card__body small { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.zaco-fe-visual-card__arrow { grid-column:2; grid-row:1 / span 2; align-self:center; color:var(--zaco-fe-accent); }
.zaco-fe-visual-card:hover .zaco-fe-visual-card__media img, .zaco-fe-visual-card:focus-visible .zaco-fe-visual-card__media img { transform:scale(1.045); }
.zaco-fe-visual-card:focus-visible { outline:var(--zaco-fe-faq-caret-stroke) solid var(--zaco-fe-accent); outline-offset:3px; }
.zaco-fe-project-faq__columns--faq-only .zaco-fe-faqs { grid-template-columns: repeat(2,minmax(0,1fr)); }
.zaco-fe-project-faq__columns--faq-only { grid-template-columns:1fr; }
@media(max-width:900px) { .zaco-fe-stitch-project .zaco-fe-project-faq__columns { grid-template-columns:1fr; } .zaco-fe-stitch-project .zaco-fe-project-faq__visuals { grid-template-rows:auto; } .zaco-fe-visual-card__media { aspect-ratio:var(--zaco-fe-info-image-ratio); } }
@media(max-width:620px) { .zaco-fe-project-faq__columns--faq-only .zaco-fe-faqs { grid-template-columns:1fr; } }
@media(prefers-reduced-motion:reduce) { .zaco-fe-visual-card__media img { transition:none; } .zaco-fe-visual-card:hover .zaco-fe-visual-card__media img,.zaco-fe-visual-card:focus-visible .zaco-fe-visual-card__media img { transform:none; } }
