/* =========================================================
   PROTECTED MOBILE SLIDE / SHRINK MENU
   DO NOT MODIFY WITHOUT EXPLICIT INSTRUCTION
   ========================================================= */
.screen-inner { height: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch; }

.screen-dim {
  position: absolute; inset: 0; z-index: 3;
  background: transparent; pointer-events: none;
  border: none; padding: 0; cursor: default;
}

.screen {
  position: fixed; inset: 0; z-index: 2; overflow: hidden;
  background: var(--color-accent);
  transform-origin: center center;
  transition: transform 0.52s cubic-bezier(0.175, 0.885, 0.32, 1.18),
              border-radius 0.45s cubic-bezier(0.25, 1, 0.5, 1),
              box-shadow 0.52s ease;
}

@media (min-width: 769px) {
  .burger {
    display: none;
  }
}

@media screen and (max-width: 768px) {

.burger {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: none;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    flex: none;
  }
  .burger span {
    width: 16px;
    height: 2px;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .layout {
    position: relative;
    min-height: 100dvh;
  }

  .menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    background-color: rgb(19, 19, 133);
    overflow-y: auto;
  }

  .menu-header {
    display: flex;
    justify-content: flex-end;
    width: 100%;
  }

  .menu-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
  }
  .menu-close:hover { opacity: 0.7; }

  .menu nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
  }

  .menu nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    width: 100%;
    box-sizing: border-box;
    font-family: 'Michroma', sans-serif;
    font-size: var(--nav-link-size);
    font-weight: var(--nav-link-weight);
    letter-spacing: 0.02em;
      }

  .menu-icon {
    flex-shrink: 0;
    opacity: 0.8;
  }

  /* ── Nav Link Wrappers & Stagger States ── */
  .menu .label,
  .menu a,
  .menu .logo.under,
  .menu .footer,
  .menu nav a {
    opacity: 0;
    will-change: transform, opacity;
    color: rgb(206, 207, 255);
  }

  .menu .logo {
    margin-top: auto;
    font-weight: 400;
    color: var(--text-muted);
  }
  .menu .logo strong { font-weight: 700; }

  .menu .logo.under {
    display: block;
    margin-top: auto;
    padding: 10px 12px 25px;
    font-size: 20px;
    letter-spacing: 0.02em;
      color: rgba(255, 255, 255, 0.95);
    border-top: 1px solid rgba(23, 82, 243, 0.76);
  }
  .menu .logo.under strong {
    font-family: var(--ff-primary);
    color: #fff;
    font-weight: 900;
  }

  .menu .footer {
    font-family: var(--ff-primary);
    padding: 10px 7px 80px 20px;
  }

  .menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-brand-dark);
    color: #ffffff !important;
    border: 1px solid rgb(68, 68, 209);
    font-family: 'Michroma', sans-serif;
    font-size: 13px;
    letter-spacing: 0.05em;
    text-decoration: none;
    width: 100%;
    max-width: 62vw;
    padding: 10px 20px;
    margin-top: 2rem;
     margin-bottom: 2rem;
    border-radius: 50px;
    box-sizing: border-box;
    opacity: 0;
    will-change: transform, opacity;
    transition: background 0.2s ease, transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }
  .menu-btn:hover {
    background: var(--color-brand-primary);
    transform: scale(1.01);
    box-shadow: 2px 10px 30px -5px rgba(0, 0, 0, 0.815);
  }

  /* ===== Menu Open State ============================= */
  .layout.menu-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .layout.menu-open .burger span:nth-child(2) { opacity: 0; }
  .layout.menu-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ========= slide screen that opens the menu ========= */
  .layout.menu-open .screen {
    transform: translateX(50%) scale(0.70);
    border-radius: 20px;
    box-shadow: -25px 0 50px rgba(0, 0, 0, 0.5);
  }

  .layout.menu-open .screen-dim {
    pointer-events: auto;
    cursor: pointer;
  }

   .layout.menu-open .menu .label {
    animation: dropSettle 0.45s cubic-bezier(0.1, 1, 0.1, 1) forwards;
    animation-delay: 0.2s;
  }

  .layout.menu-open .menu a,
  .layout.menu-open .menu-btn {
    animation: leapToAttention 0.65s cubic-bezier(0.1, 1, 0.1, 1) forwards;
    animation-delay: calc(var(--i) * 0.06s + 0.15s);
  }

  .layout.menu-open .menu nav a {
    animation-delay: calc(var(--i) * 0.06s + 0.15s);
  }
 
  .layout.menu-open .menu .logo.under {
    animation: leapToAttention 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    animation-delay: 0.48s;
  }

  .layout.menu-open .menu .footer {
    animation: risePop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    animation-delay: 0.58s;
  }

   /* ===== Menu Animation Engine ======================= */
  @keyframes leapToAttention {
    0%   { opacity: 0; transform: translateX(40px) scale(0.96); }
    70%  { opacity: 1; transform: translateX(-4px) scale(1.02); }
    100% { opacity: 1; transform: translateX(0) scale(1) rotate(0deg); }
  }

  @keyframes dropSettle {
    0%   { opacity: 0; transform: translateY(-15px) scale(0.9); }
    65%  { opacity: 1; transform: translateY(3px) scale(1.01); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
  }

  @keyframes risePop {
    0%   { opacity: 0; transform: translateY(12px) scale(0.9); }
    65%  { opacity: 1; transform: translateY(-2px) scale(1.01); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
  }
/* =========================================================
   END PROTECTED MOBILE SLIDE / SHRINK MENU
   ========================================================= */



}