/* ==========================================================================
   SVACS 2027 — kinetic mobile navigation
   A full-screen, typography-led menu in the spirit of the Sterling Gate
   reference: the drawer becomes a page, links arrive one after another,
   and hover sweeps a jade wash across the row.
   ========================================================================== */

@media (max-width: 1080px) {
  body.menu-open {
    overflow: hidden;
  }

  /* ---------- the sheet becomes the page ---------- */
  .mobile-sheet {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100dvh;
    padding: 0;
    border: 0;
    border-radius: 0;
    background:
      radial-gradient(
        120% 70% at 82% 0%,
        rgba(95, 211, 154, 0.14) 0%,
        rgba(10, 14, 12, 0) 58%
      ),
      radial-gradient(
        90% 60% at 0% 100%,
        rgba(185, 242, 39, 0.06) 0%,
        rgba(10, 14, 12, 0) 60%
      ),
      #0a0e0c;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    animation: none;
    counter-reset: nav;
  }

  .mobile-sheet[hidden] {
    display: none !important;
  }

  /* ---------- top bar ---------- */
  .mobile-sheet > div:first-child {
    position: sticky;
    top: 0;
    z-index: 3;
    margin: 0 !important;
    padding: 18px 22px !important;
    background: rgba(10, 14, 12, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(243, 241, 231, 0.08);
  }

  /* ---------- links ---------- */
  .mobile-sheet .sheet-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 22px;
    border: 0;
    border-bottom: 1px solid rgba(243, 241, 231, 0.07);
    border-radius: 0;
    background: transparent;
    color: var(--text, #f3f1e7) !important;
    font-family: var(--font-title, "Sora", sans-serif);
    font-size: clamp(23px, 6.2vw, 33px);
    font-weight: 700;
    letter-spacing: -0.032em;
    line-height: 1.12;
    text-decoration: none;
    transition:
      color 0.25s ease,
      background 0.3s ease,
      padding-left 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    animation: navIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .mobile-sheet .sheet-link::before {
    counter-increment: nav;
    content: "0" counter(nav);
    flex-shrink: 0;
    width: 2.4ch;
    font-family: var(--font-tech, monospace);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: rgba(95, 211, 154, 0.72);
  }

  .mobile-sheet .sheet-link i {
    margin-left: auto;
    font-size: 13px;
    color: rgba(243, 241, 231, 0.32);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), color 0.25s ease;
  }

  .mobile-sheet .sheet-link:hover,
  .mobile-sheet .sheet-link:focus-visible {
    background: linear-gradient(
      90deg,
      rgba(95, 211, 154, 0.12) 0%,
      rgba(95, 211, 154, 0) 68%
    );
    color: var(--accent-jade, #5fd39a) !important;
    padding-left: 30px;
  }

  .mobile-sheet .sheet-link:hover i,
  .mobile-sheet .sheet-link:focus-visible i {
    color: var(--accent-jade, #5fd39a);
    transform: translateX(4px);
  }

  .mobile-sheet .sheet-link.active {
    background: linear-gradient(
      90deg,
      rgba(95, 211, 154, 0.16) 0%,
      rgba(95, 211, 154, 0) 72%
    ) !important;
    color: var(--accent-jade, #5fd39a) !important;
    border-color: rgba(243, 241, 231, 0.07) !important;
    box-shadow: inset 3px 0 0 var(--accent-jade, #5fd39a) !important;
    font-weight: 700;
  }

  .mobile-sheet .sheet-link.active i {
    color: var(--accent-jade, #5fd39a) !important;
  }

  /* stagger */
  .mobile-sheet .sheet-link:nth-of-type(1) { animation-delay: 0.04s; }
  .mobile-sheet .sheet-link:nth-of-type(2) { animation-delay: 0.08s; }
  .mobile-sheet .sheet-link:nth-of-type(3) { animation-delay: 0.12s; }
  .mobile-sheet .sheet-link:nth-of-type(4) { animation-delay: 0.16s; }
  .mobile-sheet .sheet-link:nth-of-type(5) { animation-delay: 0.2s; }
  .mobile-sheet .sheet-link:nth-of-type(6) { animation-delay: 0.24s; }
  .mobile-sheet .sheet-link:nth-of-type(7) { animation-delay: 0.28s; }
  .mobile-sheet .sheet-link:nth-of-type(8) { animation-delay: 0.32s; }
  .mobile-sheet .sheet-link:nth-of-type(9) { animation-delay: 0.36s; }

  /* ---------- footer actions ---------- */
  .mobile-sheet > div:last-child {
    margin-top: auto !important;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid rgba(243, 241, 231, 0.08);
  }

  .mobile-sheet .sheet-action {
    padding: 15px 20px;
    font-size: 14.5px;
    border-radius: 999px;
  }

  /* ---------- overlay ---------- */
  .mobile-overlay {
    background: rgba(4, 7, 5, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  /* ---------- burger ---------- */
  .burger-btn {
    width: 44px;
    height: 44px;
    background: rgba(243, 241, 231, 0.06);
    border: 1px solid rgba(243, 241, 231, 0.16);
  }

  .burger-btn:hover {
    background: rgba(95, 211, 154, 0.12);
    border-color: rgba(95, 211, 154, 0.6);
    transform: none;
  }

  .burger-bar {
    width: 18px;
    height: 1.5px;
    background-color: var(--text, #f3f1e7);
  }
}

@keyframes navIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-sheet .sheet-link {
    animation: none;
  }
}
