/* ===== Site menu: the page drops to reveal a blue pegboard panel behind it =====
   --drop (how far the page falls) and --sy (scroll position) are set by script.js */
:root{--menu-ease:cubic-bezier(.32,.72,0,1);--drop:45vh;--sy:0px}
.nav{height:100px;transform-origin:50% 0}
.is-ready .nav{transition:transform .65s var(--menu-ease)}
.menu-open .nav{transform:translateY(var(--drop)) scale(.96)}

/* closed state: one solid button */
.menu-toggle{position:relative;width:56px;height:56px;flex:none;border-radius:50%;background:#111;transition:background .25s,transform .25s var(--ease)}
.menu-toggle i{position:absolute;left:17px;width:22px;height:2px;border-radius:1px;background:#fff;transition:transform .3s var(--ease)}
.menu-toggle i:first-child{top:23px}.menu-toggle i:last-child{top:31px}
.menu-toggle:hover{background:var(--blue)}
.menu-toggle:hover i:first-child{transform:translateY(-1px)}.menu-toggle:hover i:last-child{transform:translateY(1px)}
.menu-toggle:active{transform:scale(.94)}

/* the page */
main{position:relative;z-index:1;background:var(--bg);transition:transform .65s var(--menu-ease),clip-path .65s var(--menu-ease)}
.menu-live main{transform-origin:50% var(--sy);clip-path:inset(var(--sy) 0 0 0 round 0);will-change:transform}
.menu-open main{transform:translateY(var(--drop)) scale(.96);clip-path:inset(var(--sy) 0 0 0 round 28px 28px 0 0)}
.page-dim{position:fixed;left:2%;right:2%;top:var(--drop);bottom:0;z-index:60;border-radius:28px 28px 0 0;background:rgba(0,0,38,.18);opacity:0;visibility:hidden;transition:opacity .25s ease,visibility 0s linear .25s}
.menu-open .page-dim{opacity:1;visibility:visible;transition:opacity .4s ease .2s,visibility 0s}

/* the blue panel */
.site-menu{position:fixed;inset:0;z-index:0;visibility:hidden;overflow-y:auto;color:#fff;background-color:var(--blue);
  background-image:radial-gradient(circle,#000096 3.4px,transparent 3.9px),radial-gradient(circle,rgba(120,120,255,.6) 3.4px,transparent 3.9px);
  background-size:28px 28px;background-position:0 0,0 .75px}
.menu-live .site-menu{visibility:visible}
.sm-inner{display:flex;flex-direction:column;min-height:var(--drop);padding:22px var(--pad) 27px}
.sm-head{display:flex;align-items:center;gap:12px}
.sm-head .logo{margin-right:auto}
.sm-cta{display:flex;gap:12px}
.sm-btn{display:inline-flex;align-items:center;gap:10px;height:56px;padding:0 20px 0 18px;border-radius:28px;font-size:18px;font-weight:600;letter-spacing:-.02em;white-space:nowrap}
.sm-arrow,.sm-doc{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}
.sm-arrow{width:18px;height:18px;transition:transform .3s var(--ease)}
.sm-doc{width:24px;height:24px;stroke-width:1.8}
.sm-btn:hover .sm-arrow{transform:translate(2px,-2px)}
.sm-glass,.sm-socials a{background:rgba(255,255,255,.2);border:1px solid rgba(255,255,255,.55);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);box-shadow:inset 0 1px 2px rgba(255,255,255,.45)}
.sm-chat{background:#fff;color:var(--blue);padding-left:10px}
.sm-badge{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:var(--blue)}
.sm-badge svg{width:22px;height:22px;fill:#fff}
.sm-close{display:grid;place-items:center;flex:none;width:56px;height:56px;border-radius:50%;background:#fff}
.sm-close svg{width:24px;height:24px;fill:none;stroke:var(--blue);stroke-width:2;stroke-linecap:round}
.sm-links{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin-top:40px}
.sm-links a{font-size:28px;font-weight:500;letter-spacing:-.025em;line-height:34px}
.sm-contact{display:flex;align-items:center;gap:28px;margin-top:auto;padding-top:40px;font-size:15px;letter-spacing:-.015em}
.sm-contact p{display:flex;flex-wrap:wrap;gap:0 12px;color:rgba(255,255,255,.9)}
.sm-contact p a:hover{text-decoration:underline}
.sm-socials{display:flex;gap:10px}
.sm-socials a{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;transition:background .25s,transform .3s var(--ease)}
.sm-socials a:hover{background:rgba(255,255,255,.32);transform:translateY(-2px)}
.sm-socials svg{width:20px;height:20px}
.sm-socials .f{fill:#fff}.sm-socials .s{fill:none;stroke:#fff;stroke-width:1.8}
.sm-glass{transition:background .25s}.sm-glass:hover{background:rgba(255,255,255,.32)}
.sm-links:hover a:not(:hover){opacity:.55}
.sm-links a{transition:opacity .25s}

/* items blur in and rise as the page falls; they just fade when it comes back */
.sm-a{opacity:0;transform:translateY(24px);filter:blur(5px);transition:opacity .2s ease,transform .2s ease,filter .2s ease}
.menu-open .sm-a{opacity:1;transform:none;filter:none;transition:opacity .55s var(--ease) calc(.12s + var(--n)*60ms),transform .55s var(--ease) calc(.12s + var(--n)*60ms),filter .55s var(--ease) calc(.12s + var(--n)*60ms)}

/* cursor stays visible on blue */
.cursor.on-blue{background:#fff;color:var(--blue)}
.cursor.on-blue svg{stroke:var(--blue)}

@media (max-width:760px){
  .nav{height:84px}.logo{font-size:24px}
  .sm-inner{padding-top:14px}
  .sm-head{flex-wrap:wrap}
  .sm-cta{order:3;width:100%;margin-top:18px}
  .sm-btn{height:52px;font-size:16px;padding:0 14px 0 12px;gap:8px;flex:1;justify-content:center}
  .sm-chat{padding-left:8px}
  .sm-links{margin-top:26px}
  .sm-contact{flex-direction:column;align-items:flex-start;gap:16px;padding-top:28px}
  .sm-contact p{flex-direction:column}.sm-contact p span{display:none}
}

/* menu button sits 28px from the top and right edge, inside the pegboard corner (matches Figma Hero Area) */
@media (min-width:901px){
  .nav{padding-right:28px;align-items:flex-start;height:100px}
  .nav .logo{margin-top:32px;line-height:36px}
  .nav .logo sup{line-height:1;margin-top:2px}
  .menu-toggle{margin-top:28px}
}
.menu-live{background-color:var(--blue);background-image:radial-gradient(circle,#000096 3.4px,transparent 3.9px),radial-gradient(circle,rgba(120,120,255,.6) 3.4px,transparent 3.9px);background-size:28px 28px;background-position:0 0,0 .75px;background-attachment:fixed} /* same pegboard behind the panel, so nothing but pegboard can show at the edge */
