/* =====================================================================
   Site footer — shared by the landing page and every project page.
   Built by js/footer.js. Uses --p (scale), --muted and --ease from the page.
   ===================================================================== */
.site-footer { background: #272727; color: #fff; margin-top: calc(120 * var(--p)); }
.site-footer__inner { width: calc(1200 * var(--p)); margin: 0 auto; padding: calc(48 * var(--p)) 0 calc(41.7 * var(--p)); }
.footer-more__title {
  margin-top: calc(2.39 * var(--p));
  font-weight: 500; font-size: calc(30 * var(--p)); line-height: calc(34 * var(--p)); letter-spacing: calc(-0.6 * var(--p)); color: #fff;
}
.footer-more__grid { margin-top: calc(36.78 * var(--p)); display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(40 * var(--p)); }
.footer-card { display: flex; flex-direction: column; }
.footer-card__img {
  display: block; aspect-ratio: 1320 / 700; overflow: hidden;
  /* same rounded corners as the thumbnails (16px on a 660×350 card), so the zoom on hover stays rounded */
  border-radius: calc(16 / 660 * 100%) / calc(16 / 350 * 100%);
}
.footer-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.footer-card:hover .footer-card__img img { transform: scale(1.04); }
.footer-card__client {
  margin-top: calc(25 * var(--p));
  font-weight: 500; font-size: calc(14 * var(--p)); line-height: calc(22.895 * var(--p)); letter-spacing: calc(0.98 * var(--p)); color: var(--muted);
}
.footer-card__title {
  margin-top: calc(4 * var(--p));
  font-weight: 500; font-size: calc(18 * var(--p)); line-height: calc(25 * var(--p)); letter-spacing: calc(-0.36 * var(--p)); color: #a6a6a6;
  transition: color .3s ease;
}
.footer-card:hover .footer-card__title { color: #fff; }

.footer-contact {
  margin-top: calc(81.85 * var(--p)); border-top: 1px solid #3d4047;
  padding: calc(56 * var(--p)) calc(6 * var(--p)) calc(64 * var(--p)) 0;
  display: flex; align-items: flex-start; justify-content: space-between;
}
.footer-contact__headline {
  position: relative; font-weight: 500; font-size: calc(34 * var(--p)); line-height: 1.1; color: #fff;
}
.footer-contact__headline .squiggle { z-index: -0; }
.squiggle--footer { left: calc(240.26 * var(--p)); top: calc(57 * var(--p)); width: calc(120.12 * var(--p)); height: calc(24.5 * var(--p)); }
.footer-contact__buttons { margin-top: calc(25 * var(--p)); display: flex; gap: calc(12 * var(--p)); }
.pill {
  display: inline-flex; align-items: center; border-radius: 999px; white-space: nowrap;
  padding: calc(14 * var(--p) - 1.5px) calc(22 * var(--p) - 1.5px); border: 1.5px solid #5b5e66;
  font-weight: 500; font-size: calc(14 * var(--p)); line-height: calc(17 * var(--p)); color: #fff;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.pill:hover { background: #fff; color: #222326; border-color: #fff; }
.pill--primary { background: #c9fa75; border-color: #c9fa75; color: #222326; padding: calc(14 * var(--p)) calc(22 * var(--p)); border: 0; }
.pill--primary:hover { background: #bbf15c; }

.footer-bar {
  margin-top: calc(13 * var(--p)); border-top: 1px solid #3d4047; padding-top: calc(24 * var(--p));
  display: flex; align-items: center; justify-content: space-between;
}
.footer-bar__logo { width: calc(86.477 * var(--p)); height: calc(31.3 * var(--p)); }
/* right side: "Designed by me, built with my BFF Jean Claude Van Damme" (and "Back to top" on the case studies) */
.footer-bar__end { display: flex; align-items: center; gap: calc(40 * var(--p)); }
.footer-bar__credit { margin: 0; font-size: calc(14 * var(--p)); line-height: normal; color: #757575; white-space: nowrap; }
.footer-bar__credit b { font-weight: 700; }
.footer-bar__credit s { text-decoration-thickness: 1px; }
.footer-bar__top { font-size: calc(14 * var(--p)); color: #a9acb3; transition: color .25s ease; }
.footer-bar__top:hover { color: #fff; }

/* Simple version (landing page): no "More selected work", no "Back to top" */
.site-footer--simple .site-footer__inner { padding-bottom: calc(35.9 * var(--p)); }
.site-footer--simple .footer-bar > a, .site-footer--simple .footer-bar__logo { display: block; }   /* no gap under the logo */
.site-footer--simple .footer-contact { margin-top: 0; border-top: 0; padding-top: calc(59 * var(--p)); padding-bottom: calc(62 * var(--p)); }

@media (max-width: 767px) {
  .site-footer { margin-top: 96px; }
  .site-footer__inner { width: auto; margin: 0 24px; padding: 48px 0 32px; }
  .footer-more__title { font-size: 26px; line-height: 32px; }
  .footer-more__grid { margin-top: 24px; grid-template-columns: 1fr; gap: 36px; }
  .footer-card__client { margin-top: 16px; font-size: 13px; }
  .footer-card__title { font-size: 17px; line-height: 24px; max-width: none; }
  .footer-contact { margin-top: 56px; padding: 40px 0 48px; flex-direction: column; gap: 28px; }
  .footer-contact__headline { font-size: 30px; }
  .squiggle--footer { left: 212px; top: 50px; width: 106px; height: 22px; }
  .footer-contact__buttons { margin-top: 0; flex-wrap: wrap; gap: 10px; }
  .footer-bar { margin-top: 0; padding-top: 20px; }
  .footer-bar__logo { width: 72px; height: 26px; }
  .footer-bar__top { font-size: 13px; }
  .footer-bar { flex-wrap: wrap; gap: 16px; }
  .footer-bar__end { flex-wrap: wrap; gap: 8px 24px; }
  .footer-bar__credit { font-size: 13px; white-space: normal; }
  .site-footer--simple .footer-contact { margin-top: 0; padding-top: 16px; }
}
