/* Site menu, shared since 2 Dec 2026: the rolodex hero (templates/hero.html) and every inner page (templates/base.html)
   include templates/partials/menu.html, this file and menu.js. Moved out of hero.css unchanged; inner-page header in frame.css. */
.menu{--white:var(--cream);font-size:16px;line-height:normal}
/* nav underline: on hover it wipes out right and redraws from the left (card "Open" link, contact email) */
@keyframes ul-redraw{0%{transform:scaleX(1);transform-origin:right}45%{transform:scaleX(0);transform-origin:right}
  55%{transform:scaleX(0);transform-origin:left}100%{transform:scaleX(1);transform-origin:left}}
/* MENU (Jamie, 1 Dec): one squared glass pill top left on both layouts, Lucide arrow-right-to-line kept pointing
   right; the panel grows out and down from it over the page, the pill fades away, and a bare
   arrow-left-to-line at the panel's top right closes it. Glass after .card. Closed, the menu sits
   under the logo (31); open, it covers it. menu.js sets --pw (pill width) so the panel starts as the pill. */
.menu{position:fixed;z-index:30;top:0;left:0}
.menu-open .menu{z-index:40}
.menu-btn,.menu-panel{position:fixed;top:10px;left:var(--pad);border-radius:6px;color:var(--white);
  background:
    radial-gradient(120% 70% at 18% 0%,rgba(255,255,255,.16),rgba(255,255,255,0) 55%),
    linear-gradient(155deg,rgba(255,138,120,.18),rgba(214,30,40,.10) 50%,rgba(120,0,12,.22));
  -webkit-backdrop-filter:blur(12px) saturate(125%);backdrop-filter:blur(12px) saturate(125%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.6),inset 0 0 0 1px rgba(255,214,206,.32),0 2px 4px rgba(70,0,6,.18),0 18px 36px -18px rgba(60,0,6,.55)}
.menu-btn{z-index:1;height:44px;display:flex;align-items:center;gap:10px;padding:0 0 0 18px;border:0;cursor:pointer;
  font:500 13px/1 var(--mono);letter-spacing:.14em;text-transform:uppercase;-webkit-tap-highlight-color:transparent;transition:transform .15s ease-out,opacity .2s ease-out,visibility 0s}
.menu-open .menu-btn{opacity:0;visibility:hidden;transition:opacity .12s ease-in,visibility 0s .12s}
.menu-btn:active{transform:scale(.97)}
.menu-btn:focus-visible{outline:2px solid var(--white);outline-offset:3px}
/* look C (4 Dec 2026): the icon gets its own square cell behind a hairline, like the split-key buttons */
.menu-ic{display:grid;place-items:center;align-self:stretch;width:44px;box-shadow:inset 1px 0 0 rgba(255,214,206,.4)}
.menu-ic svg{width:18px;height:18px}
/* panel: closed it is clipped to the pill and transparent; opens ease-out 300ms, closes ease-in 200ms */
.menu-panel{bottom:10px;width:360px;display:flex;flex-direction:column;padding:54px 10px 10px;
  visibility:hidden;opacity:0;clip-path:inset(0 calc(100% - var(--pw,110px)) calc(100% - 44px) 0 round 6px);
  transition:clip-path .2s cubic-bezier(.4,0,1,1),opacity .2s ease-in,visibility 0s .2s}
.menu-open .menu-panel{visibility:visible;opacity:1;clip-path:inset(0 round 6px);
  transition:clip-path .3s cubic-bezier(.22,1,.36,1),opacity .15s ease-out,visibility 0s}
@media (max-aspect-ratio:3/2){
  .menu-btn,.menu-panel{top:12px}
  .menu-panel{width:auto;right:var(--pad);bottom:var(--pad)}
}
.menu-close{position:absolute;top:0;right:0;width:44px;height:44px;display:grid;place-items:center;padding:0;border:0;border-radius:10px;
  background:none;color:var(--white);cursor:pointer;-webkit-tap-highlight-color:transparent;transition:transform .15s ease-out}
.menu-close svg{width:22px;height:22px}
.menu-close:active{transform:scale(.97)}
@media (hover:hover){.menu-close:hover{background:rgba(255,255,255,.12)}}
.menu-list{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.35) transparent;margin:0;padding:12px 2px 24px;list-style:none;
  /* soft edges so a scrolled row fades out instead of slicing; padding keeps the rows at rest clear of the fade */
  -webkit-mask-image:linear-gradient(transparent,#000 12px,#000 calc(100% - 24px),transparent);mask-image:linear-gradient(transparent,#000 12px,#000 calc(100% - 24px),transparent)}
.menu-sub{list-style:none;margin:2px 0 8px 22px;padding:0 0 0 10px;border-left:1px solid rgba(255,255,255,.3)}  /* guide line */
.menu-list>li,.menu-card{opacity:0;transform:translateY(-6px);transition:opacity .15s ease-in,transform .15s ease-in}
.menu-open .menu-list>li,.menu-open .menu-card{opacity:1;transform:none;
  transition:opacity .25s ease-out,transform .3s cubic-bezier(.22,1,.36,1);transition-delay:calc(60ms + var(--i)*30ms)}
.menu-link{display:flex;align-items:center;gap:14px;width:100%;min-height:46px;padding:0 14px;border:0;border-radius:14px;
  background:none;color:var(--white);text-decoration:none;text-align:left;cursor:pointer;
  font-family:var(--cond);font-weight:800;font-stretch:66%;font-size:26px;line-height:1;text-transform:uppercase}
/* row icons (Jamie, 1 Dec): Lucide, 20px, a touch dimmer than the words */
.menu-link svg{flex:none;width:20px;height:20px}
.menu-li{opacity:.8}
.menu-chev{margin-left:auto;transition:transform .2s ease-out}
.menu-sub-btn[aria-expanded=true] .menu-chev{transform:rotate(180deg)}
/* service rows: ref in mono as on the cards, name, then a short line */
.menu-sub a{display:flex;align-items:baseline;gap:10px;padding:9px 12px;border-radius:12px;color:rgba(255,255,255,.9);text-decoration:none;font-size:15px;line-height:1.25}
.menu-ref{flex:none;width:18px;font:11px var(--mono);letter-spacing:.06em;color:#ffd9cf}
.menu-sn small{display:block;margin-top:3px;font-size:12px;line-height:1.3;color:rgba(255,255,255,.68)}
.menu-sub:not([hidden]) li{animation:menu-sub-in .25s cubic-bezier(.22,1,.36,1) both;animation-delay:calc(var(--i)*30ms)}
@keyframes menu-sub-in{from{opacity:0;transform:translateY(-4px)}}
/* glass pill for the row under the pointer or focus, as in the reference */
.menu-link:focus-visible,.menu-sub a:focus-visible{background:rgba(255,255,255,.12);box-shadow:inset 0 0 0 1px rgba(255,214,206,.28)}
@media (hover:hover){.menu-link:hover,.menu-sub a:hover{background:rgba(255,255,255,.12);box-shadow:inset 0 0 0 1px rgba(255,214,206,.28)}}
.menu-panel :focus-visible{outline:2px solid var(--white);outline-offset:-2px}
.menu-card{flex:none;margin-top:16px;padding:16px 18px;border-radius:16px;background:rgba(255,255,255,.08);box-shadow:inset 0 0 0 1px rgba(255,214,206,.24)}
.menu-card p{margin:0}
.menu-k{font:12px var(--mono);letter-spacing:.14em;text-transform:uppercase;color:#ffd9cf}
.menu-card .menu-t{margin:8px 0 12px;font-size:17px;line-height:1.35}
.menu-acts{display:flex;flex-wrap:wrap;align-items:center;gap:12px 16px}
/* split key (Jamie, 4 Dec 2026, look C): shared rules in site.css */
.menu-cta{--k-h:40px}
.menu-mail{position:relative;display:inline-block;padding-bottom:6px;color:var(--white);text-decoration:none;font:12px var(--mono);letter-spacing:.08em}
.menu-wa{display:inline-flex;align-items:center;gap:6px}
.menu-wa svg{flex:none;width:14px;height:14px;fill:currentColor}
.menu-mail::after{content:"";position:absolute;left:0;right:0;bottom:0;height:1.5px;background:currentColor;transform-origin:left}
.menu-mail:hover::after,.menu-mail:focus-visible::after{animation:ul-redraw .55s cubic-bezier(.65,0,.35,1)}
@media (prefers-reduced-motion:reduce){
  /* menu: fade only, no clip growth or slide */
  .menu-panel{clip-path:none!important;transition-duration:.15s!important}
  .menu-list>li,.menu-card{transform:none!important;transition-delay:0s!important}
}
