/* Suppress the Framer editor controls if a remote bundle reinserts them. */
#__framer-editorbar-container,
#__framer-editorbar,
#__framer-editorbar-label,
#__framer-editorbar-button {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Blend the full-width navigation into the page instead of a white top strip.
   Keep the menu panel and individual controls on their original backgrounds. */
[data-framer-name="Site navigation"] > .ssr-variant > .framer-EtZe9,
[data-framer-name="Site navigation"] > .framer-EtZe9 {
  background-color: #ededed !important;
}

/* Keep full-document navigation, with a restrained crossfade between pages. */
@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 200ms;
  animation-timing-function: ease-in-out;
  mix-blend-mode: normal;
}

::view-transition-old(root) {
  animation-name: portfolio-page-out;
}

::view-transition-new(root) {
  animation-name: portfolio-page-in;
}

@keyframes portfolio-page-out {
  to { opacity: 0; }
}

@keyframes portfolio-page-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Browsers without document transitions still get a gentle page entrance.
   Never hide the document or delay a click while waiting for an animation. */
html[data-page-transition-fallback] body {
  animation: portfolio-page-in 180ms ease-out both;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }

  ::view-transition-old(root),
  ::view-transition-new(root),
  html[data-page-transition-fallback] body {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}
