/* Alliston builder case study — for-builders.html + projects.html additions.
   Reuses tokens/classes from style.css; only section-specific layout lives here. */

.alliston-case { scroll-margin-top: 80px; }

.alliston-case__inner { display: flex; flex-direction: column; gap: 32px; max-width: 1120px; }

.alliston-case__lead { max-width: 860px; margin: 0 auto; color: var(--text-secondary); }
.alliston-case__lead a { color: var(--brand-copper-text); font-weight: 600; text-decoration: none; }
.alliston-case__lead a:hover { text-decoration: underline; }

/* image row: 3 landscape + 1 portrait, one visual line */
.alliston-case__media { display: flex; gap: 20px; align-items: stretch; }
.alliston-case__shot {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  height: 260px;
  flex: 1 1 0;
  box-shadow: 0 12px 32px -8px rgba(41,31,20,0.1);
}
.alliston-case__shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.alliston-case__shot--tall { flex: 0 0 196px; }
.alliston-case__captions { display: flex; gap: 20px; margin-top: -22px; }
.alliston-case__caption { flex: 1 1 0; font-size: 13px; line-height: 18px; color: var(--text-secondary); }
.alliston-case__caption--tall { flex: 0 0 196px; }

/* video + facts split */
.alliston-case__proof { display: flex; gap: 64px; align-items: center; }
.alliston-case__video {
  flex: 0 0 300px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(41,31,20,0.08);
  background: var(--bg-dark);
}
.alliston-case__video video { width: 100%; height: auto; display: block; aspect-ratio: 9 / 16; object-fit: cover; }
.alliston-case__facts { display: flex; flex-direction: column; gap: 24px; flex: 1; max-width: 520px; }
.alliston-case__facts .heading-h3 { line-height: 1.35; }

/* community list as airy pill chips instead of a dense dotted trust-bar */
.alliston-case__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.alliston-case__chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--brand-copper-tint);
  color: var(--brand-bronze);
  font-weight: 600;
  font-size: 13px;
  line-height: 18px;
  white-space: nowrap;
}
.alliston-case__chip--date { background: transparent; border: 1px solid var(--border-strong); color: var(--text-secondary); }

.alliston-case__stat-block { padding-top: 4px; border-top: 1px solid var(--border-subtle); }
.alliston-case__stat { font-size: 14px; line-height: 20px; color: var(--text-muted); margin-top: 12px; }
.alliston-case__permission { font-size: 12px; line-height: 16px; color: var(--text-muted); }
.alliston-case__cta-row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

/* single factual FAQ line */
.alliston-case__faq { max-width: 1120px; width: 100%; }
.alliston-case__faq .faq-row { align-items: flex-start; flex-direction: column; gap: 8px; }
.alliston-case__faq-a { font-size: 14px; line-height: 20px; color: var(--text-secondary); max-width: 720px; }

/* ---- mobile ---- */
@media (max-width: 767px) {
  .alliston-case__inner { gap: 20px; padding: 0; }
  .alliston-case__media { flex-direction: column; gap: 12px; }
  .alliston-case__shot,
  .alliston-case__shot--tall { flex: none; width: 100%; height: 220px; }
  .alliston-case__captions { display: none; }
  .alliston-case__mobile-caption { font-size: 13px; line-height: 18px; color: var(--text-secondary); margin-top: -6px; }
  .alliston-case__proof { flex-direction: column; gap: 20px; }
  .alliston-case__video { flex: none; width: 100%; max-width: 342px; align-self: center; }
  .alliston-case__cta-row .btn { width: 100%; justify-content: center; }
}

/* projects.html: Alliston gallery cells reuse .projects-grid__cell as-is */

/* ---------- Builder proof block (Clinton McColman / Alliston) ----------
   One cohesive card: photo + testimonial on top, video + builders list
   below, tied together with a divider so the section reads as a single
   piece of evidence rather than stacked, unrelated elements. */

.fb-proof {
  background: var(--bg-ground-alt);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(41,31,20,0.07);
  padding: 48px;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.fb-proof__top {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 48px;
  align-items: stretch;
}

.fb-proof__photo { border-radius: 10px; overflow: hidden; box-shadow: 0 12px 32px -10px rgba(41,31,20,0.16); }
.fb-proof__photo img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; display: block; }

.fb-proof__quote-card {
  position: relative;
  background: var(--bg-surface);
  border-left: 3px solid var(--brand-copper);
  border-radius: 4px;
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  overflow: hidden;
}
.fb-proof__quote-mark {
  position: absolute;
  top: -16px;
  right: 24px;
  margin: 0;
  font-family: var(--font-display), Georgia, serif;
  font-weight: 700;
  font-size: 140px;
  line-height: 1;
  color: var(--brand-copper-tint);
  z-index: 0;
  pointer-events: none;
}
.fb-proof__quote-card .fb-case__eyebrow,
.fb-proof__quote-card .fb-quote { position: relative; z-index: 1; }
.fb-proof__quote-card .fb-quote { width: auto; max-width: none; padding: 0; margin-top: 10px; background: transparent; border-left: none; }
.fb-proof__quote-card .fb-quote__text { font-size: 23px; line-height: 33px; }
.fb-proof__quote-card .fb-quote__attr { margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--border-subtle); }

.fb-proof__divider { height: 1px; background: var(--border-subtle); margin: 40px 0; }

.fb-proof__bottom {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: center;
}

.fb-proof__video-col { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.fb-proof__video-card {
  width: 100%;
  max-width: 220px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-dark);
  box-shadow: 0 4px 14px rgba(41,31,20,0.12);
}
.fb-proof__video-card video { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; display: block; }
.fb-proof__video-caption { font-size: 12px; line-height: 16px; color: var(--text-muted); text-align: center; }

.fb-proof__builders {
  border-left: 1px solid var(--border-subtle);
  padding-left: 48px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.fb-proof__builders-label {
  font-family: var(--font-body, "Archivo", sans-serif);
  font-weight: 600; font-size: 12px; line-height: 16px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--brand-bronze);
}
.fb-proof__builders-list { display: flex; flex-wrap: wrap; gap: 10px; }
.fb-proof__pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 13px;
  line-height: 18px;
  white-space: nowrap;
}
.fb-proof__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  height: 44px;
  border-radius: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-sizing: border-box;
}
.fb-proof__logo img { height: 22px; width: auto; max-width: 130px; object-fit: contain; display: block; }
.fb-proof__logo--sm { padding: 8px 14px; height: 36px; }
.fb-proof__logo--sm img { height: 18px; max-width: 100px; }

/* Builder logo column (desktop proof card) — an auto-scrolling vertical
   marquee instead of a flat static grid: matches the video card's height
   exactly (no leftover whitespace below a shorter grid) and reuses the same
   grayscale/opacity-on-hover motion as the home page's builder-marquee and
   about.html's crew-marquee, instead of introducing a third, static-looking
   pattern for the same "row of logos" idea. */
.fb-proof__builders-marquee {
  position: relative;
  height: 390px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 28px, black calc(100% - 28px), transparent);
  mask-image: linear-gradient(to bottom, transparent, black 28px, black calc(100% - 28px), transparent);
}
.fb-proof__builders-track {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: fb-builders-scroll 28s linear infinite;
}
.fb-proof__builders-marquee:hover .fb-proof__builders-track { animation-play-state: paused; }
.fb-proof__builder-cell {
  flex: 0 0 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  border-radius: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-sizing: border-box;
}
.fb-proof__builder-cell img {
  max-height: 34px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: opacity 0.2s ease, filter 0.2s ease;
}
.fb-proof__builder-cell img:hover { filter: none; opacity: 1; }
@keyframes fb-builders-scroll {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .fb-proof__builders-track { animation: none; }
  .fb-proof__builders-marquee { overflow-y: auto; }
}
@media (max-width: 1024px) {
  .fb-proof__builders-marquee { height: 320px; }
  .fb-proof__builder-cell { flex-basis: 72px; }
}

/* legacy quote type styles, still used inside .fb-proof__quote-card and the
   mobile quote block */
.fb-quote { width: 620px; max-width: 100%; margin: 0; padding: 24px 28px; background: var(--bg-ground-alt); border-left: 3px solid var(--brand-copper); }
.fb-quote__text {
  font-family: var(--font-display), Georgia, serif;
  font-weight: 600;
  font-size: 22px;
  line-height: 32px;
  color: var(--text-primary);
  margin: 0 0 16px;
}
.fb-quote__attr { display: flex; flex-direction: column; gap: 2px; }
.fb-quote__name {
  font-family: var(--font-body, "Archivo", sans-serif);
  font-weight: 600; font-size: 14px; line-height: 20px;
  color: var(--text-primary);
}
.fb-quote__role {
  font-family: var(--font-body, "Archivo", sans-serif);
  font-weight: 600; font-size: 12px; line-height: 16px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--brand-bronze);
}
.fb-quote__context {
  font-family: var(--font-body, "Archivo", sans-serif);
  font-size: 12px; line-height: 16px; color: var(--text-muted);
}

.fb-quote--mobile { width: 100%; padding: 0; background: transparent; border-left: none; }
.fb-quote--mobile .fb-quote__text { font-size: 18px; line-height: 26px; }

/* ---- tablet: fb-desktop-only content still renders 768-1024px, so give the
   two-column grids room to breathe before the hard mobile swap at 767px ---- */
@media (max-width: 1024px) {
  .fb-proof { padding: 32px; }
  .fb-proof__top { grid-template-columns: 1fr; gap: 28px; }
  .fb-proof__photo img { min-height: 280px; }
  .fb-proof__quote-mark { font-size: 100px; top: -8px; }
  .fb-proof__bottom { grid-template-columns: 180px 1fr; gap: 32px; }
  .fb-proof__builders { padding-left: 32px; }
}

/* ---- mobile: builder proof card (single stacked card with dividers) ---- */
.fb-mobile-case__divider { height: 1px; background: rgba(122,74,34,0.16); margin: 18px 0; }
.fb-mobile-case__video-row { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.fb-mobile-case__video { width: 100%; max-width: 168px; border-radius: 10px; overflow: hidden; background: var(--bg-dark); box-shadow: 0 4px 14px rgba(41,31,20,0.1); }
.fb-mobile-case__video video { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; display: block; }
.fb-mobile-case__video-caption { font-size: 12px; line-height: 16px; color: var(--text-muted); text-align: center; }
.fb-mobile-case__builders-label {
  font-family: var(--font-body, "Archivo", sans-serif);
  font-weight: 600; font-size: 11px; line-height: 16px; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--brand-bronze);
  margin-bottom: -4px;
}

@media (max-width: 767px) {
  .fb-quote { width: 100%; padding: 20px; }
  .fb-quote__text { font-size: 18px; line-height: 26px; }
  .fb-proof__pill--sm { padding: 6px 12px; font-size: 12px; line-height: 16px; }
}
