/* Proof of work: real client screenshots with captions and a lightbox. */

.proof {
  background: #fff;
}

.sd-process + .proof,
.sd-who + .sd-performance + .proof {
  background: var(--surface-soft);
}

.proof .section-head .eyebrow {
  margin: 0 0 16px;
  font-size: 0.75rem;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.proof-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(10, 70, 60, 0.04), 0 16px 40px rgba(6, 53, 46, 0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.proof-card:hover {
  border-color: rgba(10, 70, 60, 0.22);
  box-shadow: 0 1px 0 rgba(10, 70, 60, 0.04), 0 22px 48px rgba(6, 53, 46, 0.12);
  transform: translateY(-4px);
}

.proof-shot {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
  cursor: zoom-in;
}

.proof-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.proof-shot:hover img,
.proof-shot:focus-visible img {
  transform: scale(1.045);
}

.proof-shot:focus-visible {
  outline: none;
  box-shadow: inset var(--focus);
}

.proof-zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  box-shadow: 0 8px 20px rgba(6, 53, 46, 0.25);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

.proof-zoom svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.proof-shot:hover .proof-zoom,
.proof-shot:focus-visible .proof-zoom {
  background: var(--coral);
  opacity: 1;
  transform: none;
}

.proof-cap {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  padding: 20px 22px 22px;
}

.proof-source {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.proof-source::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
}

.proof-cap strong {
  color: var(--green);
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.proof-cap span:last-child {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.proof-note {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.proof-inline {
  margin-top: 56px;
}

.proof-inline .sd-cases-head {
  margin-bottom: 24px;
}

/* Reveal (only once JS is ready, so content never stays hidden) */
.proof-grid.is-ready .proof-card {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease calc(var(--i, 0) * 90ms), transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) calc(var(--i, 0) * 90ms),
    box-shadow 0.35s ease, border-color 0.35s ease;
}

.proof-grid.is-ready .proof-card.is-in {
  opacity: 1;
  transform: none;
}

.proof-grid.is-ready .proof-card.is-in:hover {
  transform: translateY(-4px);
  transition-delay: 0s;
}

/* Lightbox */
.proof-lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  max-height: 100vh;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
}

.proof-lightbox::backdrop {
  background: rgba(4, 30, 26, 0.88);
  backdrop-filter: blur(6px);
}

.proof-lightbox[open] {
  display: grid;
  place-items: center;
  animation: proof-fade 0.25s ease;
}

.proof-lb-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  max-width: min(1200px, calc(100vw - 160px));
  margin: 0;
}

.proof-lb-figure img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 190px);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  animation: proof-zoom-in 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.proof-lb-figure figcaption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 720px;
  text-align: center;
}

.proof-lb-figure figcaption strong {
  font-size: 1.125rem;
  font-weight: 800;
}

.proof-lb-figure figcaption span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9375rem;
}

.proof-lb-count {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.proof-lb-btn {
  position: fixed;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.proof-lb-btn:hover,
.proof-lb-btn:focus-visible {
  border-color: var(--coral);
  background: var(--coral);
  outline: none;
}

.proof-lb-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.proof-lb-close {
  top: 20px;
  right: 20px;
}

.proof-lb-prev {
  top: 50%;
  left: 24px;
  transform: translateY(-50%);
}

.proof-lb-next {
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
}

.proof-lb-btn[hidden] {
  display: none;
}

@keyframes proof-fade {
  from {
    opacity: 0;
  }
}

@keyframes proof-zoom-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
}

@media (max-width: 1040px) {
  .proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .proof-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .proof-zoom {
    opacity: 1;
    transform: none;
  }

  .proof-inline {
    margin-top: 40px;
  }

  .proof-lb-figure {
    max-width: calc(100vw - 32px);
  }

  .proof-lb-figure img {
    max-height: calc(100vh - 230px);
  }

  .proof-lb-prev,
  .proof-lb-next {
    top: auto;
    bottom: 20px;
    transform: none;
  }

  .proof-lb-prev {
    left: calc(50% - 64px);
  }

  .proof-lb-next {
    right: calc(50% - 64px);
  }

  .proof-lb-close {
    top: 14px;
    right: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .proof-card,
  .proof-shot img,
  .proof-zoom,
  .proof-grid.is-ready .proof-card {
    transition: none;
  }

  .proof-grid.is-ready .proof-card {
    opacity: 1;
    transform: none;
  }

  .proof-lightbox[open],
  .proof-lb-figure img {
    animation: none;
  }
}
