:root {
  --tectonic-menu-paper: #f2f2ef;
  --tectonic-menu-ink: #08090a;
  --tectonic-menu-red: #c61927;
  --tectonic-menu-red-dark: #5d1018;
  --tectonic-menu-graphite: #151719;
  --tectonic-menu-width: clamp(29rem, 39vw, 51rem);
  --tectonic-menu-grid: clamp(3rem, 4vw, 5.5rem);
  --tectonic-menu-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --tectonic-menu-ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

.tectonic-global-menu {
  position: fixed;
  inset: 0;
  z-index: 16000;
  pointer-events: none;
  color: #fff;
  font-family: "Bahnschrift Condensed", "Arial Narrow", "Microsoft YaHei", sans-serif;
  opacity: 1;
  visibility: visible;
  transition:
    opacity 520ms var(--tectonic-menu-ease-out),
    visibility 0s linear 0s;
}

html.is-tectonic-interaction-booting .tectonic-global-menu,
html.is-tectonic-interaction-loading .tectonic-global-menu,
body.is-tectonic-interaction-loading .tectonic-global-menu,
body.is-piece-interaction-locked .tectonic-global-menu {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 140ms ease-out,
    visibility 0s linear 0s;
}

/* Wheel input is already intercepted by global-staggered-menu.js while the
   panel is open. Do not toggle html/body overflow here: doing so changes the
   containing geometry of the sticky scroll-film viewport and can replace its
   held frame with a black paint. Preserve the page geometry and let the fixed
   scrim provide the background blur. */
html.has-tectonic-global-menu-open,
html.has-tectonic-global-menu-open body {
  overscroll-behavior: none;
}

.tectonic-global-menu__scrim {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.38);
  opacity: 0;
  pointer-events: none;
  cursor: default;
  backdrop-filter: blur(0);
  transition:
    opacity 420ms var(--tectonic-menu-ease-out),
    backdrop-filter 520ms var(--tectonic-menu-ease-out);
}

.tectonic-global-menu[data-open="true"] .tectonic-global-menu__scrim {
  opacity: 1;
  pointer-events: auto;
  backdrop-filter: blur(2px);
}

.tectonic-global-menu__prelayers,
.tectonic-global-menu__prelayer,
.tectonic-global-menu__panel {
  position: absolute;
  inset: 0 0 0 auto;
  width: var(--tectonic-menu-width);
  height: 100%;
  will-change: transform;
  transform: translate3d(101%, 0, 0);
}

.tectonic-global-menu__prelayers {
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  transform: none;
}

.tectonic-global-menu__prelayer--red {
  background: var(--tectonic-menu-red-dark);
}

.tectonic-global-menu__prelayer--graphite {
  background:
    linear-gradient(90deg, rgba(198, 25, 39, 0.18), transparent 22%),
    var(--tectonic-menu-graphite);
}

.tectonic-global-menu__toggle {
  --tectonic-toggle-color: #f7f7f4;
  position: absolute;
  top: var(--tectonic-global-control-edge-y, clamp(1.2rem, 2.2vw, 2.75rem));
  right: var(--tectonic-global-control-edge-x, clamp(1.4rem, 2.4vw, 3.1rem));
  z-index: 4;
  display: flex;
  align-items: center;
  gap: clamp(0.7rem, 0.9vw, 1.15rem);
  min-width: 0;
  margin: 0;
  padding: 0.18em 0.08em;
  border: 0;
  color: var(--tectonic-toggle-color);
  background: transparent;
  pointer-events: auto;
  cursor: pointer;
  isolation: isolate;
  transform: translate3d(var(--tectonic-piece-menu-shift, 0%), 0, 0);
  opacity: var(--tectonic-piece-menu-opacity, 1);
  will-change: transform, opacity;
  transition:
    color 300ms ease-out,
    transform 520ms var(--tectonic-menu-ease-out),
    opacity 320ms ease-out;
}

.tectonic-global-menu__toggle:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 0.45rem;
}

.tectonic-global-menu__toggle-window {
  display: block;
  height: 1.08em;
  overflow: hidden;
  font-size: clamp(2rem, 2.15vw, 3.35rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.025em;
}

.tectonic-global-menu__toggle-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  will-change: transform;
}

.tectonic-global-menu__toggle-copy > span {
  display: block;
  height: 1.08em;
  white-space: nowrap;
}

.tectonic-global-menu__icon {
  position: relative;
  top: -0.12rem;
  display: block;
  flex: 0 0 auto;
  width: clamp(1.45rem, 1.35vw, 2rem);
  aspect-ratio: 1;
  will-change: transform;
}

.tectonic-global-menu__icon i {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.tectonic-global-menu__icon i:last-child {
  transform: translate(-50%, -50%) rotate(90deg);
}

.tectonic-global-menu__panel {
  z-index: 2;
  display: grid;
  grid-template-rows: var(--tectonic-menu-grid) 1fr;
  box-sizing: border-box;
  padding:
    var(--tectonic-menu-grid)
    clamp(2.3rem, 3.8vw, 5.2rem)
    clamp(3rem, 6vh, 5.5rem);
  color: var(--tectonic-menu-ink);
  background-color: var(--tectonic-menu-paper);
  background-image:
    linear-gradient(rgba(8, 9, 10, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 9, 10, 0.045) 1px, transparent 1px);
  background-size: var(--tectonic-menu-grid) var(--tectonic-menu-grid);
  box-shadow: -2rem 0 7rem rgba(0, 0, 0, 0.28);
  pointer-events: none;
  overflow: hidden;
}

.tectonic-global-menu[data-open="true"] .tectonic-global-menu__panel {
  pointer-events: auto;
}

.tectonic-global-menu__panel::before,
.tectonic-global-menu__panel::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.tectonic-global-menu__panel::before {
  top: var(--tectonic-menu-grid);
  right: 0;
  left: 0;
  height: 1px;
  background: rgba(8, 9, 10, 0.32);
}

.tectonic-global-menu__panel::after {
  top: 0;
  bottom: 0;
  left: clamp(1.05rem, 1.25vw, 1.75rem);
  width: 2px;
  background: var(--tectonic-menu-red);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 900ms 360ms var(--tectonic-menu-ease-out);
}

.tectonic-global-menu[data-open="true"] .tectonic-global-menu__panel::after {
  transform: scaleY(1);
}

.tectonic-global-menu__panel-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 2rem;
  height: var(--tectonic-menu-grid);
  box-sizing: border-box;
  padding-bottom: clamp(0.75rem, 1.2vh, 1.15rem);
  border-bottom: 1px solid rgba(8, 9, 10, 0.24);
  font-family: var(--tectonic-ui-small-en, "Bahnschrift", "Arial", sans-serif);
  font-size: clamp(0.58rem, 0.52vw, 0.74rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tectonic-global-menu__panel-meta span:last-child {
  color: var(--tectonic-menu-red);
}

.tectonic-global-menu__panel-meta > span {
  position: relative;
  top: clamp(2rem, 3.4vh, 2.75rem);
}

.tectonic-global-menu__list {
  align-self: start;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: tectonic-menu;
}

.tectonic-global-menu__list li {
  min-width: 0;
  height: calc(var(--tectonic-menu-grid) * 2);
  overflow: visible;
  counter-increment: tectonic-menu;
}

.tectonic-global-menu__list a {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1.5rem;
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
  padding: 0;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  perspective: 800px;
  -webkit-tap-highlight-color: transparent;
}

.tectonic-global-menu__list a::before {
  content: "";
  position: absolute;
  inset: -0.25rem -1rem;
  background: rgba(8, 9, 10, 0.035);
  opacity: 0;
  transform: scaleX(0.92);
  transform-origin: left center;
  transition:
    opacity 250ms ease-out,
    transform 500ms var(--tectonic-menu-ease-out);
}

.tectonic-global-menu__list a:hover::before,
.tectonic-global-menu__list a:focus-visible::before,
.tectonic-global-menu__list a[data-active="true"]::before {
  opacity: 1;
  transform: scaleX(1);
}

.tectonic-global-menu__item-label {
  position: relative;
  z-index: 1;
  display: inline-block;
  width: max-content;
  max-width: 100%;
  font-size: clamp(3.25rem, 5.35vw, 7.35rem);
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: -0.055em;
  text-transform: uppercase;
  top: 0.1em;
  transform-origin: left bottom;
  will-change: transform;
}

.tectonic-global-menu__list b {
  position: relative;
  z-index: 1;
  align-self: end;
  margin-bottom: 0.9rem;
  color: var(--tectonic-menu-red);
  font-family: var(--tectonic-ui-small-en, "Bahnschrift", "Arial", sans-serif);
  font-size: clamp(0.64rem, 0.62vw, 0.84rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: var(--tectonic-menu-number-opacity, 0);
  transform: translateY(0.5rem);
  transition:
    opacity 450ms ease-out,
    transform 620ms var(--tectonic-menu-ease-out);
}

.tectonic-global-menu[data-open="true"] .tectonic-global-menu__list b {
  transform: translateY(0);
}

.tectonic-global-menu__list a > i {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  display: block;
  height: clamp(2px, 0.16vw, 4px);
  background: var(--tectonic-menu-red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 560ms var(--tectonic-menu-ease-out);
}

.tectonic-global-menu__list a:hover > i,
.tectonic-global-menu__list a:focus-visible > i,
.tectonic-global-menu__list a[data-active="true"] > i {
  transform: scaleX(1);
}

.tectonic-global-menu__list a:focus-visible {
  outline: 1px solid var(--tectonic-menu-red);
  outline-offset: 0.7rem;
}

.tectonic-global-menu__list a[data-clicking="true"] > i {
  animation: tectonic-menu-line-confirm 560ms var(--tectonic-menu-ease-out) both;
}

@keyframes tectonic-menu-line-confirm {
  0% { transform: scaleX(1); transform-origin: left center; }
  42% { transform: scaleX(0.22); transform-origin: right center; }
  100% { transform: scaleX(1); transform-origin: left center; }
}

@media (max-width: 760px) {
  :root {
    --tectonic-menu-width: 100vw;
  }

  .tectonic-global-menu__toggle {
    top: 1.25rem;
    right: 1.2rem;
  }

  .tectonic-global-menu__panel {
    padding: 7.5rem 2.25rem 2.5rem;
  }

  .tectonic-global-menu__item-label {
    font-size: clamp(3.4rem, 16vw, 6.2rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tectonic-global-menu,
  .tectonic-global-menu *,
  .tectonic-global-menu *::before,
  .tectonic-global-menu *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
  }
}
