/**
 * StaggeredMenu Interactive Effect - Stylesheet
 * Cyber-Luxe obsidian palette, responsive staggered sliding layers,
 * and kinetic typography. Completely transparent header toggle without any background.
 */

:root {
  --sm-accent: #00F5D4;
  --sm-panel-bg: #0a0812;
  --sm-item-color: #ffffff;
  --sm-social-color: rgba(255, 255, 255, 0.75);
}

.staggered-menu-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 99999;
  pointer-events: none;
}

.staggered-menu-wrapper.fixed-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100% !important;
  max-width: 100vw !important;
  height: 100% !important;
  height: 100dvh !important;
  z-index: 99999;
  overflow: hidden;
  pointer-events: none;
  box-sizing: border-box !important;
}

.staggered-menu-header {
  position: fixed !important;
  top: 16px !important;
  left: 16px !important;
  right: 16px !important;
  width: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  pointer-events: none !important;
  z-index: 999999 !important;
  box-sizing: border-box !important;
}

.staggered-menu-header > * {
  pointer-events: auto !important;
}

.sm-logo {
  display: flex;
  align-items: center;
  user-select: none;
}

.sm-logo-img {
  display: block;
  height: 28px;
  width: auto;
  object-fit: contain;
}

/* Menu Toggle Button: Completely transparent - NO background behind menu text per user rule */
.sm-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 8px 4px !important;
  margin: 0 !important;
  cursor: pointer;
  color: #ffffff;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  overflow: visible;
  user-select: none;
  -webkit-tap-highlight-color: transparent !important;
  outline: none !important;
  transition: color 0.25s ease;
}

.sm-toggle:hover,
.sm-toggle:focus-visible {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  color: var(--sm-accent, #00F5D4);
}

.sm-toggle-textWrap {
  position: relative;
  display: inline-block;
  height: 1.15em;
  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.15;
}

.sm-toggle-line {
  display: block;
  height: 1.15em;
  line-height: 1.15;
}

.sm-icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-left: 6px !important;
  vertical-align: middle;
  will-change: transform;
}

.sm-icon-line {
  position: absolute;
  top: 7px;
  left: 1px;
  width: 14px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  pointer-events: none;
}

.sm-icon-line-v {
  top: 7px;
  left: 1px;
}

.staggered-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: clamp(280px, 42vw, 460px);
  height: 100%;
  background: var(--sm-panel-bg, #0a0812);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border-left: 1px solid rgba(255, 0, 85, 0.25);
  display: flex;
  flex-direction: column;
  padding: 6.5em 2.2em 2.5em 2.2em;
  overflow-y: auto;
  z-index: 10;
  pointer-events: auto;
  opacity: 0;
  box-sizing: border-box;
}

[data-position='left'] .staggered-menu-panel {
  right: auto;
  left: 0;
  border-left: none;
  border-right: 1px solid rgba(255, 0, 85, 0.25);
}

.sm-prelayers {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: clamp(280px, 42vw, 460px);
  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;
}

[data-position='left'] .sm-prelayer {
  right: auto;
  left: 0;
}

.sm-panel-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sm-panel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.sm-panel-itemWrap {
  position: relative;
  overflow: hidden;
  line-height: 1;
}

.sm-panel-item {
  position: relative;
  color: var(--sm-item-color, #ffffff);
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 3.2rem);
  cursor: pointer;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  transition: color 0.25s ease, text-shadow 0.25s ease;
  display: inline-block;
  text-decoration: none;
  padding-right: 1.6em;
  font-family: inherit;
  user-select: none;
  -webkit-tap-highlight-color: transparent !important;
}

.sm-panel-itemLabel {
  display: inline-block;
  will-change: transform;
  transform-origin: 50% 100%;
}

.sm-panel-item:hover,
.sm-panel-item:focus-visible {
  color: var(--sm-accent, #00F5D4);
  text-shadow: 0 0 20px rgba(0, 245, 212, 0.45);
  outline: none;
}

.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.15em;
  right: 0.2em;
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  font-weight: 600;
  color: var(--sm-accent, #00F5D4);
  letter-spacing: 0.5px;
  pointer-events: none;
  user-select: none;
  opacity: var(--sm-num-opacity, 0);
  font-family: monospace;
}

.sm-socials {
  margin-top: auto;
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sm-socials-title {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--sm-accent, #00F5D4);
}

.sm-socials-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.sm-socials-item {
  margin: 0;
  padding: 0;
}

.sm-socials-link {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--sm-social-color, rgba(255, 255, 255, 0.75));
  text-decoration: none;
  position: relative;
  padding: 2px 0;
  display: inline-block;
  transition: color 0.3s ease, opacity 0.3s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent !important;
}

.sm-socials-list:hover .sm-socials-link:not(:hover) {
  opacity: 0.35;
}

.sm-socials-link:hover,
.sm-socials-link:focus-visible {
  color: var(--sm-accent, #00F5D4);
  opacity: 1;
  outline: none;
}

@media (max-width: 1024px) {
  .staggered-menu-panel {
    width: 100%;
    left: 0;
    right: 0;
  }
  .sm-prelayers {
    width: 100%;
    left: 0;
    right: 0;
  }
}

@media (max-width: 768px) {
  .staggered-menu-header {
    top: 14px !important;
    left: 14px !important;
    right: 14px !important;
    width: auto !important;
    padding: 0 !important;
  }
  .staggered-menu-panel {
    width: 100%;
    left: 0;
    right: 0;
    padding: 5.5em 1.5em 2em 1.5em;
  }
  .sm-prelayers {
    width: 100%;
    left: 0;
    right: 0;
  }
  .sm-panel-item {
    font-size: clamp(1.75rem, 7vw, 2.4rem);
  }
}
