/* Full-screen menu (option A in menu-demo.html, built by menu.js): navy with the hero's grid, opening as a circle
   from the round menu button. Big numbered items on the left, contact on the right, a big outlined word ribbon
   drifting along the bottom. Grid effects as in the hero but sparser (grid-fx.js, cell/light styles in hero-fx.css). */
.site-menu{position:fixed;inset:0;z-index:39;overflow:hidden;visibility:hidden;pointer-events:none;background:#363a54;color:var(--paper);
  --cx:calc(100% - 5.3% - 28px);--cy:56px;clip-path:circle(0 at var(--cx) var(--cy));transition:clip-path .7s cubic-bezier(.7,0,.2,1),visibility 0s .7s}
.menu-open .site-menu{visibility:visible;pointer-events:auto;clip-path:circle(150% at var(--cx) var(--cy));transition:clip-path .8s cubic-bezier(.7,0,.2,1)}
.menu-open{overflow:hidden}
/* page transition (2026-11-20, menu.js): a page opened from a menu link starts with the menu already covering it
   (no opening animation: .menu-instant), then the menu closes into the button to reveal the page; the page's own
   entrance animations wait (.page-hold) so the title still slides in once the page shows */
.menu-instant .site-menu,.menu-instant .site-menu *,.menu-instant .menu-toggle,.menu-instant .menu-toggle *{transition:none!important}
.page-hold main *,.page-hold main *:before,.page-hold main *:after{animation-play-state:paused!important}
/* 2026-11-20: the menu "empties" around a page change (.menu-blank): the items, the contact side, the word ribbon,
   the grid lights and the orange dot fade out (.25s) before leaving, and the next page starts with only the navy
   grid and glow, then closes. Both sides of the change look the same, so nothing jumps (before, the hovered item's
   orange / the others' dimming were lost on the new page and the items flashed back to white). */
.menu-in,.menu-ribbon,.menu-fx{transition:opacity .25s ease}
.menu-blank .menu-in,.menu-blank .menu-ribbon,.menu-blank .menu-fx{opacity:0;pointer-events:none}
.menu-blank .hero-dot{opacity:0!important}
/* the grid and the orange glow (the hero's recipe) */
.site-menu:before{content:'';position:absolute;inset:0;background-image:linear-gradient(#ffffff0a 1px,transparent 1px),linear-gradient(90deg,#ffffff0a 1px,transparent 1px);background-size:var(--grid,64px) var(--grid,64px)}
.site-menu:after{content:'';position:absolute;width:620px;height:620px;left:-200px;bottom:-200px;border-radius:50%;background:radial-gradient(circle,#e4704c47 0%,#e4704c00 68%);pointer-events:none}
.menu-fx{position:absolute;inset:0;z-index:0;pointer-events:none}
.site-menu.lit-on .fx-lit{--lit:170px}
/* the word ribbon (the about section's words), drifting slowly left */
.menu-ribbon{position:absolute;left:0;right:0;bottom:-.18em;z-index:0;white-space:nowrap;overflow:hidden;font-size:clamp(90px,13vw,190px);font-weight:700;letter-spacing:-4px;line-height:1;color:transparent;-webkit-text-stroke:1px #ffffff1f;pointer-events:none;user-select:none}
.menu-ribbon span{display:inline-block;animation:menu-ribbon 60s linear infinite}
@keyframes menu-ribbon{to{transform:translateX(-50%)}}
.menu-in{position:relative;z-index:1;height:100%;display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:60px;align-items:center;padding:120px 9% 60px}
/* items: rise in one after another; on hover the item turns orange with an arrow and the others fade */
.menu-nav{display:flex;flex-direction:column;margin:-90px 0 0 6%}
.menu-nav a{display:flex;align-items:baseline;gap:22px;padding:10px 0;font-size:clamp(34px,4.4vw,60px);font-weight:800;letter-spacing:-1px;line-height:1.25;opacity:0;transform:translateY(40px);transition:opacity .5s,transform .7s cubic-bezier(.16,1,.3,1),color .25s}
.menu-no{font:500 14px Outfit,sans-serif;color:var(--orange);letter-spacing:1px}
.menu-nav .arr{font-size:.55em;color:var(--orange);opacity:0;transform:translateX(-14px);transition:opacity .25s,transform .35s cubic-bezier(.16,1,.3,1)}
.menu-nav a:hover,.menu-nav a:focus-visible{color:var(--orange)}
.menu-nav a:hover .arr,.menu-nav a:focus-visible .arr{opacity:1;transform:none}
@media(hover:hover){.menu-nav:hover a:not(:hover){opacity:.35!important}}
.menu-open .menu-nav a{opacity:1;transform:none;transition-delay:calc(.35s + var(--i) * .06s)}
.menu-open .menu-nav:hover a{transition-delay:0s}
/* contact column */
.menu-side{display:grid;gap:34px;justify-items:start;opacity:0;transform:translateY(20px);transition:opacity .5s,transform .7s cubic-bezier(.16,1,.3,1)}
.menu-open .menu-side{opacity:1;transform:none;transition-delay:.7s}
.menu-label{margin:0 0 14px;font-size:13px;letter-spacing:2px;color:#9aa1c0}
.menu-side p{margin:0;font-size:15px;line-height:1.9;color:#c9cde0}
.menu-mail{font-size:18px;font-weight:600;border-bottom:1px solid #ffffff4d;padding-bottom:4px;transition:color .2s,border-color .2s}
.menu-mail:hover{color:var(--orange);border-color:var(--orange)}
.menu-side .footer-social{margin:0}
/* the round button becomes × while the menu is open, and stays orange over the navy menu. The button sits inside
   the header (z-index 20, its own stacking layer), so the header is lifted above the menu while it is open */
.menu-open .header{z-index:41}
.menu-open .header .brand{visibility:hidden}
.menu-toggle span{transition:transform .4s cubic-bezier(.16,1,.3,1)}
.menu-open .menu-toggle,.menu-open .menu-toggle.on-light{background:var(--orange)}
.menu-open .menu-toggle span:first-child{transform:translateY(4px) rotate(45deg)}
.menu-open .menu-toggle span:last-child{transform:translateY(-4px) rotate(-45deg)}
/* tablets (769px–1024px): still two columns (menu left, contact right), smaller items; the glow sits top right */
@media(max-width:1024px){
  .menu-in{gap:40px;padding:110px 7% 60px}
  .menu-nav{margin:0}
  .menu-nav a{font-size:40px;gap:18px}
  .menu-ribbon{font-size:90px}
  .site-menu:after{left:auto;right:-280px;bottom:auto;top:-160px}
}
/* phones and small tablets (768px and below): one column. Each item is a full-width row with a line under it and a
   round ↗ button at the right edge, so the rows fill the width; the contact block below: a full-width button, then
   the e-mail and the social icons on one row (stacked on phones up to 480px); scrolls if it doesn't fit */
@media(max-width:768px){
  .site-menu{--cx:calc(100% - 6% - 26px);--cy:44px}
  /* no grid on phones and small tablets: neither the lines nor their effects */
  .site-menu:before,.menu-fx{display:none}
  .menu-in{grid-template-columns:1fr;gap:40px;align-content:start;padding:100px 7% 120px;overflow-y:auto}
  .menu-nav{border-top:1px solid #ffffff1f}
  .menu-nav a{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:16px;padding:14px 0;border-bottom:1px solid #ffffff1f;font-size:28px}
  .menu-nav .arr{display:grid;place-items:center;width:44px;height:44px;border:1px solid #ffffff33;border-radius:50%;font-size:17px;opacity:1;transform:none;transition:background .25s,border-color .25s,color .25s}
  .menu-nav a:hover .arr,.menu-nav a:focus-visible .arr,.menu-nav a:active .arr{background:var(--orange);border-color:var(--orange);color:#fff}
  .menu-side{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:28px 16px;justify-items:stretch}
  .menu-side>div,.menu-side>.btn{grid-column:1/-1}
  .menu-side>.btn{justify-content:center;width:100%}
  /* no e-mail or social icons in the menu on phones and small tablets (they are in the footer) */
  .menu-mail,.menu-side .footer-social{display:none}
}
@media(max-width:480px){
  .menu-side{grid-template-columns:1fr}
  .menu-side p br{display:none}
}
@media(prefers-reduced-motion:reduce){.site-menu,.site-menu *{transition:none!important;animation:none!important}}
