.motion-ready body {
  transition:
    transform 720ms cubic-bezier(0.77, 0, 0.175, 1),
    opacity 460ms cubic-bezier(0.23, 1, 0.32, 1);
}

@starting-style {
  .motion-ready body {
    opacity: 0.12;
    transform: translate3d(-12vw, 0, 0);
  }
}

html.page-is-leaving {
  overflow: hidden;
  background: var(--silver-2);
}

html.page-is-leaving body {
  opacity: 0.08;
  transform: translate3d(102vw, 0, 0);
  pointer-events: none;
  user-select: none;
  will-change: transform, opacity;
}

html.page-is-leaving::after {
  content: "";
  position: fixed;
  z-index: 1000;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: var(--black);
  box-shadow: -24px 0 64px rgba(8, 9, 9, 0.28);
  animation: page-edge-sweep 720ms cubic-bezier(0.77, 0, 0.175, 1) both;
  pointer-events: none;
}

html.page-no-transition body {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

@keyframes page-edge-sweep {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(102vw, 0, 0);
  }
}

.scroll-progress {
  position: fixed;
  z-index: 140;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

.motion-ready .reveal {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity 520ms var(--ease-out),
    transform 520ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.motion-ready .reveal.reveal-image {
  clip-path: inset(0 0 12% 0);
  transform: translate3d(0, 24px, 0);
  transition:
    opacity 620ms var(--ease-out),
    transform 620ms var(--ease-out),
    clip-path 720ms var(--ease-out);
}

.motion-ready .reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.motion-ready .reveal.reveal-image.is-visible {
  clip-path: inset(0 0 0 0);
}

.motion-ready .hero-visual img {
  translate: 0 var(--portrait-shift, 0);
  transition: translate 80ms linear;
}

.motion-parallax {
  transition: translate 420ms cubic-bezier(0.23, 1, 0.32, 1);
  will-change: translate;
}

.person-card,
.smart-link,
.service-item,
.contact-icon,
.service-icon {
  transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
}

.person-card {
  transition: transform 320ms cubic-bezier(0.23, 1, 0.32, 1);
}

.smart-link .contact-icon,
.service-item .service-icon {
  transition: transform 280ms cubic-bezier(0.23, 1, 0.32, 1);
}

.btn,
.smart-link,
.service-item,
.person-card,
.menu a,
.logo {
  -webkit-tap-highlight-color: transparent;
}

.btn:focus-visible,
.smart-link:focus-visible,
.service-item:focus-visible,
.person-card:focus-visible,
.menu a:focus-visible,
.logo:focus-visible,
.footer a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.topbar {
  transition: box-shadow 220ms ease, background-color 220ms ease;
}

.has-scrolled .topbar {
  background: rgba(238, 239, 239, 0.98);
  box-shadow: 0 10px 32px rgba(8, 9, 9, 0.08);
}

@media (hover: hover) and (pointer: fine) {
  .person-card:hover {
    transform: translate3d(0, -6px, 0);
  }

  .smart-link:hover {
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
  }

  .smart-link:hover .contact-icon {
    transform: rotate(-4deg) scale(1.04);
  }

  .service-item:hover .service-icon {
    transform: translate3d(5px, -2px, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .motion-ready body,
  html.page-is-leaving body {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html.page-is-leaving::after {
    content: none;
  }

  .scroll-progress {
    display: none;
  }

  .motion-ready .reveal,
  .motion-ready .reveal.reveal-image {
    opacity: 1;
    clip-path: none;
    transform: none;
  }

  .motion-ready .hero-visual img,
  .motion-parallax {
    translate: none !important;
    transition: none;
  }
}
