.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: 2.2rem 0 3.5rem;
}

.project-filters button,
.comparison-toolbar button {
  appearance: none;
  border: 1px solid rgba(0, 47, 43, .24);
  padding: .7rem 1rem;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}

.project-filters button:hover,
.project-filters button.is-active,
.comparison-toolbar button:hover {
  color: var(--ink);
  background: #00f7d4;
  border-color: #00f7d4;
}

.projects-grid .project-card[hidden] {
  display: none;
}

.comparison-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 2rem 0 1rem;
  color: rgba(0, 47, 43, .68);
  font-size: .65rem;
  letter-spacing: .15em;
  text-transform: uppercase;
}

/* The comparison is a hero-sized visual: keep it below the heading and span
   the full content width instead of letting the injected toolbar create a
   second grid column. */
.before-after {
  grid-template-columns: 1fr;
  align-items: start;
}

.before-after .split-heading,
.before-after .comparison-toolbar,
.before-after .comparison {
  grid-column: 1 / -1;
}

.before-after .split-heading {
  max-width: 54rem;
}

.before-after .comparison {
  width: 100%;
  min-height: clamp(30rem, 58vw, 52rem);
}

.comparison-toolbar button {
  padding: .55rem .8rem;
  font-size: .55rem;
}

.comparison-label {
  user-select: none;
}

.project-scope {
  display: grid;
  gap: .45rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 47, 43, .18);
}

.project-scope span,
.form-note {
  color: rgba(0, 47, 43, .62);
  font-size: .64rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.project-scope strong {
  color: var(--ink);
  font-size: .8rem;
  font-weight: 500;
  line-height: 1.5;
}

.whatsapp-cta {
  display: inline-flex;
  width: fit-content;
  margin-top: 1.3rem;
  padding-bottom: .35rem;
  border-bottom: 1px solid #00f7d4;
  color: #00f7d4;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.whatsapp-cta:hover {
  color: var(--ivory);
}

.whatsapp-float {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem .9rem;
  border: 1px solid rgba(0, 247, 212, .5);
  color: var(--ink);
  background: #00f7d4;
  box-shadow: 0 12px 30px rgba(0, 47, 43, .22);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.whatsapp-float span {
  display: grid;
  width: 1.2rem;
  height: 1.2rem;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: .8rem;
}

.whatsapp-float svg {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
}

.nav-cta.consultation-cta {
  color: var(--ink);
  background: #00f7d4;
  border-color: #00f7d4;
}

.nav-cta.consultation-cta:hover {
  color: var(--ivory);
  background: transparent;
  border-color: currentColor;
}

.mobile-project-link.consultation-cta {
  color: #00f7d4;
}

.form-note {
  grid-column: 1 / -1;
  margin: -.55rem 0 0;
  line-height: 1.5;
}

.modal-gallery {
  scroll-snap-type: x mandatory;
}

.modal-gallery img {
  scroll-snap-align: start;
}

@media (max-width: 680px) {
  .project-filters {
    margin: 1.5rem 0 2rem;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: .35rem;
  }

  .project-filters button {
    flex: 0 0 auto;
  }

  .comparison-toolbar {
    margin-top: 1.2rem;
  }

  .modal-gallery {
    display: flex;
    overflow-x: auto;
    gap: .65rem;
    padding: 0 .7rem .7rem;
  }

  .modal-gallery img,
  .modal-gallery img:first-child {
    flex: 0 0 88vw;
    height: 68svh;
  }

  .whatsapp-float {
    right: .7rem;
    bottom: .7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .custom-cursor,
  .ice-cube-field {
    display: none !important;
  }
}
