.staggered-menu-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 9999;
  pointer-events: none;
}

.staggered-menu-wrapper.fixed-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  overflow: hidden;
}

.staggered-menu-header {
  position: absolute;
  top: 0;
  right: 0;
  left: auto;
  width: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 2em 2em 0 0;
  background: transparent;
  pointer-events: none;
  z-index: 120;
}

.staggered-menu-header > * {
  pointer-events: auto;
}

.sm-logo {
  display: flex;
  align-items: center;
  user-select: none;
}

.sm-logo-img {
  display: block;
  height: 32px;
  width: auto;
  object-fit: contain;
}

.sm-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #e9e9ef;
  font-weight: 500;
  line-height: 1;
  overflow: visible;
  opacity: 1;
  visibility: visible;
  z-index: 130;
  text-shadow: var(--sm-toggle-shadow, 0 1px 8px rgba(0, 0, 0, 0.22));
}

.sm-toggle:focus-visible {
  outline: 2px solid #ffffffaa;
  outline-offset: 4px;
  border-radius: 4px;
}

.sm-line:last-of-type {
  margin-top: 6px;
}

.sm-toggle-textWrap {
  position: relative;
  display: inline-block;
  height: 1em;
  overflow: hidden;
  white-space: nowrap;
  width: var(--sm-toggle-width, auto);
  min-width: var(--sm-toggle-width, auto);
}

.sm-toggle-textInner {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.sm-toggle-line {
  display: block;
  height: 1em;
  line-height: 1;
}

.sm-icon {
  position: relative;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
}

.sm-panel-itemWrap {
  position: relative;
  overflow: hidden;
  line-height: 1;
}

.sm-icon-line {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transform: translate(-50%, -50%);
  will-change: transform;
}

.sm-line {
  display: none !important;
}

.staggered-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: clamp(260px, 38vw, 420px);
  height: 100%;
  background: white;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  padding: 6em 2em 2em 2em;
  overflow-y: auto;
  z-index: 10;
  pointer-events: auto;
  opacity: 0;
}

[data-position='left'] .staggered-menu-panel {
  right: auto;
  left: 0;
}

.sm-prelayers {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: clamp(260px, 38vw, 420px);
  pointer-events: none;
  z-index: 5;
  opacity: 0;
}

[data-position='left'] .sm-prelayers {
  right: auto;
  left: 0;
}

.sm-prelayer {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 100%;
  transform: translateX(0);
  opacity: 0;
}

.sm-panel-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sm-socials {
  margin-top: auto;
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sm-socials-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--sm-accent, #ff0000);
}

.sm-socials-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.sm-socials-list .sm-socials-link {
  opacity: 1;
}

.sm-socials-list:hover .sm-socials-link {
  opacity: 0.35;
}

.sm-socials-list:hover .sm-socials-link:hover {
  opacity: 1;
}

.sm-socials-link:focus-visible {
  outline: 2px solid var(--sm-accent, #ff0000);
  outline-offset: 3px;
}

.sm-socials-list:focus-within .sm-socials-link {
  opacity: 0.35;
}

.sm-socials-list:focus-within .sm-socials-link:focus-visible {
  opacity: 1;
}

.sm-socials-link {
  font-size: 1.2rem;
  font-weight: 500;
  color: #111;
  text-decoration: none;
  position: relative;
  padding: 2px 0;
  display: inline-block;
  transition:
    color 0.3s ease,
    opacity 0.3s ease;
}

.sm-socials-link:hover {
  color: var(--sm-accent, #ff0000);
}

.sm-panel-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
}

.sm-panel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sm-panel-item {
  position: relative;
  color: #000;
  font-weight: 600;
  font-size: 3.5rem;
  cursor: pointer;
  line-height: 1;
  letter-spacing: -2px;
  text-transform: uppercase;
  transition:
    background 0.25s,
    color 0.25s;
  display: inline-block;
  text-decoration: none;
  padding-right: 1.4em;
}

.staggered-menu-panel .sm-socials-list .sm-socials-link {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.staggered-menu-panel .sm-socials-list:hover .sm-socials-link:not(:hover) {
  opacity: 0.35;
}

.staggered-menu-panel .sm-socials-list:focus-within .sm-socials-link:not(:focus-visible) {
  opacity: 0.35;
}

.staggered-menu-panel .sm-socials-list .sm-socials-link:hover,
.staggered-menu-panel .sm-socials-list .sm-socials-link:focus-visible {
  opacity: 1;
}

.sm-panel-itemLabel {
  display: inline-block;
  will-change: transform;
  transform-origin: 50% 100%;
}

.sm-panel-item:hover {
  color: var(--sm-accent, #5227ff);
}

.sm-panel-list[data-numbering] {
  counter-reset: smItem;
}

.sm-panel-list[data-numbering] .sm-panel-item::after {
  counter-increment: smItem;
  content: counter(smItem, decimal-leading-zero);
  position: absolute;
  top: 0.1em;
  right: 2.8em;
  font-size: 18px;
  font-weight: 400;
  color: var(--sm-accent, #5227ff);
  letter-spacing: 0;
  pointer-events: none;
  user-select: none;
  opacity: var(--sm-num-opacity, 0);
}

@media (max-width: 1024px) {
  .staggered-menu-panel {
    width: 100%;
    left: 0;
    right: 0;
  }

  .sm-toggle,
  .sm-toggle * {
    color: #000;
    text-shadow: none;
  }

  .sm-icon-line {
    background: currentColor;
  }

  .staggered-menu-wrapper[data-open] .sm-logo-img {
    filter: invert(100%);
  }
}

@media (max-width: 768px) {
  body.home-page .site-header:not(.is-scrolled) ~ #staggered-menu-root .sm-toggle,
  body.home-page .site-header:not(.is-scrolled) ~ #staggered-menu-root .sm-toggle * {
    color: #fff !important;
    text-shadow: none;
  }

  body.home-page .site-header:not(.is-scrolled) ~ #staggered-menu-root .sm-icon-line {
    background: #fff !important;
  }

  body.home-page .site-header.is-scrolled ~ #staggered-menu-root .sm-toggle,
  body.home-page .site-header.is-scrolled ~ #staggered-menu-root .sm-toggle *,
  body:not(.home-page) #staggered-menu-root .sm-toggle,
  body:not(.home-page) #staggered-menu-root .sm-toggle * {
    color: #000 !important;
    text-shadow: none;
  }

  body.home-page .site-header.is-scrolled ~ #staggered-menu-root .sm-icon-line,
  body:not(.home-page) #staggered-menu-root .sm-icon-line {
    background: #000 !important;
  }

  body.menu-button-light:not(.home-page) .site-header:not(.is-scrolled) ~ #staggered-menu-root .sm-toggle,
  body.menu-button-light:not(.home-page) .site-header:not(.is-scrolled) ~ #staggered-menu-root .sm-toggle * {
    color: #fff !important;
    text-shadow: none;
  }

  body.menu-button-light:not(.home-page) .site-header:not(.is-scrolled) ~ #staggered-menu-root .sm-icon-line {
    background: #fff !important;
  }
}

.staggered-menu-wrapper[data-open] .sm-toggle,
.staggered-menu-wrapper[data-open] .sm-toggle * {
  color: #000 !important;
  text-shadow: none;
}

.staggered-menu-wrapper[data-open] .sm-icon-line {
  background: #000 !important;
}

@media (min-width: 769px) {
  #staggered-menu-root .sm-toggle,
  #staggered-menu-root .sm-toggle * {
    color: #000 !important;
    text-shadow: none;
  }

  #staggered-menu-root .sm-icon-line {
    background: #000 !important;
  }

  body.menu-button-light #staggered-menu-root .sm-toggle,
  body.menu-button-light #staggered-menu-root .sm-toggle * {
    color: #fff !important;
  }

  body.menu-button-light #staggered-menu-root .sm-icon-line {
    background: #fff !important;
  }

  .staggered-menu-wrapper[data-open] .sm-toggle,
  .staggered-menu-wrapper[data-open] .sm-toggle * {
    color: #000 !important;
    text-shadow: none;
  }

  .staggered-menu-wrapper[data-open] .sm-icon-line {
    background: #000 !important;
  }
}

@media (max-width: 640px) {
  .staggered-menu-panel {
    width: 100%;
    left: 0;
    right: 0;
  }

  .staggered-menu-wrapper[data-open] .sm-logo-img {
    filter: invert(100%);
  }
}

#staggered-menu-root .staggered-menu-wrapper[data-open] .sm-toggle,
#staggered-menu-root .staggered-menu-wrapper[data-open] .sm-toggle * {
  color: #000 !important;
  text-shadow: none !important;
}

#staggered-menu-root .staggered-menu-wrapper[data-open] .sm-icon-line {
  background: #000 !important;
}

.fallback-menu {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  --fallback-panel-width: clamp(280px, 38vw, 420px);
  --fallback-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --fallback-ease-in: cubic-bezier(0.55, 0.06, 0.68, 0.19);
}

body.staggered-menu-ready .fallback-menu {
  display: none;
}

.fallback-menu-toggle {
  position: absolute;
  top: 2rem;
  right: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.25rem;
  padding: 0.35rem 0;
  border: 0;
  background: transparent;
  color: #000;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.28);
  transition: color 0.3s ease 0.18s, text-shadow 0.3s ease, transform 0.3s var(--fallback-ease-out);
  z-index: 4;
}

body.menu-button-light .fallback-menu:not(.is-open) .fallback-menu-toggle {
  color: #fff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.28);
}

.fallback-menu-toggle:hover {
  transform: translateY(-1px);
}

.fallback-menu-icon {
  position: relative;
  width: 14px;
  height: 14px;
  display: inline-flex;
  flex: 0 0 14px;
}

.fallback-menu-icon::before,
.fallback-menu-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.25s ease;
}

.fallback-menu-icon::after {
  transform: rotate(90deg);
}

.fallback-menu.is-open .fallback-menu-toggle {
  color: #000;
  text-shadow: none;
}

.fallback-menu.is-open .fallback-menu-icon::before {
  transform: rotate(225deg);
}

.fallback-menu.is-open .fallback-menu-icon::after {
  transform: rotate(315deg);
}

.fallback-menu-prelayers {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: var(--fallback-panel-width);
  pointer-events: none;
  z-index: 1;
}

.fallback-menu-prelayer {
  position: absolute;
  inset: 0;
  transform: translateX(100%);
  transition: transform 0.5s var(--fallback-ease-out);
}

.fallback-menu-prelayer--orange {
  background: var(--orange);
}

.fallback-menu-prelayer--purple {
  background: var(--purple);
}

.fallback-menu.is-open .fallback-menu-prelayer {
  transform: translateX(0);
}

.fallback-menu.is-open .fallback-menu-prelayer--orange {
  transition-delay: 0s;
}

.fallback-menu.is-open .fallback-menu-prelayer--purple {
  transition-delay: 0.07s;
}

.fallback-menu:not(.is-open) .fallback-menu-prelayer,
.fallback-menu:not(.is-open) .fallback-menu-panel {
  transition-duration: 0.32s;
  transition-timing-function: var(--fallback-ease-in);
}

.fallback-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: var(--fallback-panel-width);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 6rem 2rem 2rem;
  background: #fff;
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.18);
  transform: translateX(100%);
  transition: transform 0.65s var(--fallback-ease-out) 0.15s;
  pointer-events: auto;
  z-index: 2;
  overflow-y: auto;
}

.fallback-menu.is-open .fallback-menu-panel {
  transform: translateX(0);
}

.fallback-menu-nav {
  counter-reset: fallbackMenuItem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.fallback-menu-nav a {
  position: relative;
  overflow: hidden;
  color: #000;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -2px;
  text-decoration: none;
  text-transform: uppercase;
  padding-right: 1.4em;
  transition: color 0.25s ease;
}

.fallback-menu-nav a::after {
  counter-increment: fallbackMenuItem;
  content: counter(fallbackMenuItem, decimal-leading-zero);
  position: absolute;
  top: 0.1em;
  right: 2.8em;
  color: var(--orange);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.fallback-menu-nav a span {
  display: inline-block;
  transform: translateY(140%) rotate(10deg);
  transform-origin: 50% 100%;
  transition: transform 1s var(--fallback-ease-out);
  will-change: transform;
}

.fallback-menu.is-open .fallback-menu-nav a span {
  transform: translateY(0) rotate(0);
}

.fallback-menu.is-open .fallback-menu-nav a::after {
  opacity: 1;
}

.fallback-menu.is-open .fallback-menu-nav a:nth-child(1) span,
.fallback-menu.is-open .fallback-menu-nav a:nth-child(1)::after {
  transition-delay: 0.26s;
}

.fallback-menu.is-open .fallback-menu-nav a:nth-child(2) span,
.fallback-menu.is-open .fallback-menu-nav a:nth-child(2)::after {
  transition-delay: 0.36s;
}

.fallback-menu.is-open .fallback-menu-nav a:nth-child(3) span,
.fallback-menu.is-open .fallback-menu-nav a:nth-child(3)::after {
  transition-delay: 0.46s;
}

.fallback-menu.is-open .fallback-menu-nav a:nth-child(4) span,
.fallback-menu.is-open .fallback-menu-nav a:nth-child(4)::after {
  transition-delay: 0.56s;
}

.fallback-menu.is-open .fallback-menu-nav a:nth-child(5) span,
.fallback-menu.is-open .fallback-menu-nav a:nth-child(5)::after {
  transition-delay: 0.66s;
}

.fallback-menu-nav a:hover,
.fallback-menu-nav a:focus-visible,
.fallback-menu-socials a:hover,
.fallback-menu-socials a:focus-visible {
  color: var(--orange);
}

.fallback-menu-socials {
  margin-top: auto;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.55s ease, transform 0.55s var(--fallback-ease-out);
}

.fallback-menu.is-open .fallback-menu-socials {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.42s;
}

.fallback-menu-socials a {
  color: #111;
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 768px) {
  body.home-page .site-header:not(.is-scrolled) ~ .fallback-menu:not(.is-open) .fallback-menu-toggle {
    color: #fff;
    text-shadow: none;
  }

  body.home-page .site-header.is-scrolled ~ .fallback-menu:not(.is-open) .fallback-menu-toggle,
  body:not(.home-page) .fallback-menu:not(.is-open) .fallback-menu-toggle {
    color: #000;
    text-shadow: none;
  }

  .fallback-menu-toggle {
    top: 1.35rem;
    right: 1.25rem;
  }

  .fallback-menu-panel {
    width: 100%;
  }

  .fallback-menu-prelayers {
    width: 100%;
  }
}
