/* The handoff drawing is square; the glove ends at 59.6% of its height.
   Keeping the white row at 40.4% aligns both cropped bodies with the bands. */
.proof-wrap {
  --proof-size: calc(624 * var(--u));
  --proof-right: calc(40 * var(--u));
  --proof-white: calc(var(--proof-size) * .404);
  overflow: hidden;
}
.benefits { min-height: calc(var(--proof-size) * .596); }
.benefits-track, .metrics-track { width: calc(1100 * var(--u)); }
.metrics {
  height: var(--proof-white);
  min-height: 0;
  padding-block: 0;
  align-items: center;
}
.proof-pair {
  top: auto;
  bottom: 0;
  right: var(--proof-right);
  width: var(--proof-size);
  height: var(--proof-size);
  object-fit: contain;
}

/* Three photographs leave a real next position with the initial four items. */
.photo-slide { flex-basis: calc((100% - 40 * var(--u)) / 3); }
.slider-controls { gap: 12px; }
.slider-controls button {
  width: clamp(44px, calc(50 * var(--u)), 50px);
  height: clamp(44px, calc(50 * var(--u)), 50px);
  border: 1px solid var(--blue);
  background: var(--blue);
  color: white;
  box-shadow: 0 3px 9px #193e7614;
  transition: background .2s, border-color .2s;
}
.slider-controls button:hover:not(:disabled) {
  background: var(--coral);
  border-color: var(--coral);
}
.slider-controls button:disabled {
  background: white;
  color: var(--blue);
  border-color: #a4bbd7;
  box-shadow: none;
  opacity: .65;
}

/* Move complete SVGs together so heads, limbs and objects stay connected. */
.animated-icon { animation: none; }
.animated-icon .icon {
  transform-origin: center;
  animation: step-float 3.6s ease-in-out infinite;
  animation-delay: calc(var(--step) * -.6s);
  animation-play-state: paused;
}
.is-in-view .animated-icon .icon { animation-play-state: running; }
@keyframes step-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.cloud {
  --cloud-x: 45px;
  --cloud-y: 20px;
  animation: none;
}
.cloud--one { animation-delay: -2s; }
.cloud--two {
  --cloud-x: -38px;
  --cloud-y: 26px;
  animation-duration: 10s;
  animation-delay: -5s;
}
.cloud--three {
  --cloud-x: 60px;
  --cloud-y: 18px;
  animation-duration: 12s;
  animation-delay: -8s;
}
@keyframes cloud-drift {
  from { transform: translate3d(calc(var(--cloud-x) * -1), var(--cloud-y), 0); }
  to { transform: translate3d(var(--cloud-x), calc(var(--cloud-y) * -1), 0); }
}

@media (max-width: 1100px) {
  .proof-wrap { --proof-size: 390px; --proof-right: 10px; }
  .benefits-track, .metrics-track { width: calc(100% - var(--proof-size) * .9); }
}
@media (max-width: 800px) {
  .proof-wrap { --proof-size: 330px; --proof-right: 15px; }
  .benefits { min-height: calc(30px + 190px + 24px + var(--proof-size) * .596); padding: 30px 0 0; }
  .benefits-track { width: 100%; }
  .metrics { width: 100%; }
  .metrics-track {
    display: flex;
    width: calc(var(--proof-size) * .45);
    max-width: none;
    margin-left: auto;
    margin-right: calc(var(--proof-right) + var(--proof-size) * .04);
    gap: 0;
    padding: 0 0 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }
  .metric { flex: 0 0 100%; padding: 10px 8px; scroll-snap-align: start; border: 0; }
  .metric:nth-child(2) { border: 0; }
  .metric p { max-width: none; }
  .photo-slide { flex-basis: calc((100% - 15px) / 2); }
  .media-heading h2 { padding-inline: 0 120px; }
}
@media (max-width: 600px) {
  .proof-wrap { --proof-size: min(390px, calc(100vw - 16px)); --proof-right: 0px; }
  .benefits { min-height: calc(30px + 228px + 24px + var(--proof-size) * .596); }
  .benefits-track { padding-bottom: 0; }
  .metrics { height: var(--proof-white); min-height: 0; padding: 0; }
  .metric { padding: 10px 5px; }
  .metric strong { font-size: 30px; }
  .metric p { font-size: 12px; line-height: 1.5; margin-top: 10px; }
  .photo-slide { flex-basis: 78%; }
  .media-heading { margin-bottom: 22px; }
  .media-heading h2 { padding: 0 0 62px; }
  .slider-controls { right: auto; left: 0; bottom: 0; gap: 10px; }
  .cloud { --cloud-x: 23px; --cloud-y: 14px; }
  .cloud--two { --cloud-x: -20px; --cloud-y: 17px; }
  .cloud--three { --cloud-x: 30px; --cloud-y: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .cloud, .animated-icon .icon { animation: none; transform: none; }
}

/* Keep control glyphs square and centered independently of browser padding. */
.slider-controls button, .lightbox-prev, .lightbox-next, .dialog-close {
  padding: 0;
  aspect-ratio: 1;
  line-height: 0;
}
.slider-controls .icon, .lightbox-prev .icon, .lightbox-next .icon {
  width: 24px;
  height: 24px;
  max-width: none;
  aspect-ratio: 1;
  transform: none;
}
.dialog-close {
  width: 40px;
  height: 40px;
  color: #193e76;
  background: #edf4fc;
  border: 1px solid #c7daf4;
}
.dialog-close .icon { width: 26px; height: 26px; aspect-ratio: 1; }
.dialog-close:hover { color: #fff; background: #193e76; border-color: #193e76; }
.photo-dialog { padding-top: 58px; padding-bottom: 18px; }
.photo-dialog .dialog-close { top: 10px; right: 12px; }
.photo-dialog figure img { max-height: calc(100dvh - 200px); }
.social-links a { padding: 0; aspect-ratio: 1; line-height: 0; }
.social-links .icon {
  width: clamp(22px, calc(28 * var(--u)), 28px);
  height: clamp(22px, calc(28 * var(--u)), 28px);
  max-width: none;
  aspect-ratio: 1;
}
@media (max-width: 600px) {
  .photo-dialog { padding-bottom: 74px; }
  .lightbox-prev, .lightbox-next { width: 40px; height: 40px; bottom: 18px; }
  .lightbox-prev { left: 14px; }
  .lightbox-next { right: 14px; }
}
