
/* ==========================================================================
   MENU — burger in the nav, orange full-screen overlay, oversized page names
   in ABC Diatype Expanded. Shared by every page. Tune in the MENU block below.
   ========================================================================== */
@font-face { font-family: "ABC Diatype Expanded"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/diatype-expanded-medium.otf") format("opentype"); }
:root {
  --menu-bg: #FF5A22;            /* overlay colour */
  --menu-ink: #0e0e0e;           /* page names at rest */
  --menu-hot: #ffffff;           /* page name under the cursor, and the current page */
  --menu-size: min(9vw, 13vh);       /* desktop type size: six names must fit one screen */
  --menu-size-m: 12.4vw;         /* phone type size */
  --menu-ease: cubic-bezier(.62, .16, .13, 1.01);
}
.nav__burger {
  position: relative; flex: none; width: 36px; height: 36px; margin: 0 0 0 -10px; padding: 0; border: 0; background: transparent; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav__burger i { display: block; width: 18px; height: 2px; background: #fff; transition: transform .45s var(--menu-ease), background-color .3s; }
.nav__burger:hover i { background: var(--orange); }
html.menu-open .nav__burger i:first-child { transform: translateY(3.5px) rotate(45deg); }
html.menu-open .nav__burger i:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 58; background: var(--menu-bg); color: var(--menu-ink);
  visibility: hidden; clip-path: inset(0 0 100% 0); touch-action: none; overscroll-behavior: contain;
  transition: clip-path .75s var(--menu-ease), visibility 0s .75s;
}
html.menu-open .menu { visibility: visible; clip-path: inset(0 0 0 0); transition: clip-path .75s var(--menu-ease), visibility 0s; }
.menu__inner { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 100px clamp(20px, 2.09vw, 40px) 28px; }
.menu__list { list-style: none; margin: 0 0 32px; padding: 0; display: flex; flex-direction: column; }
.menu__link { position: relative; display: flex; align-items: flex-start; gap: 18px; text-decoration: none; color: inherit; overflow: hidden; padding: 0 .04em .3em; margin-bottom: -.26em; font-size: var(--menu-size); }
.menu__num {
  flex: none; width: 32px; margin-top: .42em; font-family: var(--f-mono); font-size: 12.5px; line-height: 1; letter-spacing: .02em; white-space: nowrap;
  opacity: 0; transition: opacity .4s;
}
html.menu-open .menu__num { opacity: 1; transition-delay: .55s; }
.menu__word {
  display: block; font-family: "ABC Diatype Expanded", var(--f-display); font-weight: 500;
  font-size: var(--menu-size); line-height: .95; letter-spacing: -.045em; white-space: nowrap;
  transform: translateY(150%); transition: transform .95s var(--menu-ease) var(--menu-d, 0s), color .12s, opacity .35s; will-change: transform;   /* the stagger delay sits on the rise only, so hover colour is instant */
}
html.menu-open .menu__word { transform: none; }
html.menu-open .menu__list li:nth-child(1) .menu__word { --menu-d: .14s; }
html.menu-open .menu__list li:nth-child(2) .menu__word { --menu-d: .20s; }
html.menu-open .menu__list li:nth-child(3) .menu__word { --menu-d: .26s; }
html.menu-open .menu__list li:nth-child(4) .menu__word { --menu-d: .32s; }
html.menu-open .menu__list li:nth-child(5) .menu__word { --menu-d: .38s; }
html.menu-open .menu__list li:nth-child(6) .menu__word { --menu-d: .44s; }
.menu__word { opacity: .5; } .menu__link:hover .menu__word, .menu__link.is-current .menu__word { opacity: 1; }
.menu__link.is-current .menu__num::before { content: ""; display: inline-block; width: 6px; height: 7px; margin-right: 6px; background: var(--menu-ink); clip-path: polygon(0 0, 100% 50%, 0 100%); vertical-align: 0; }
.menu__foot { display: flex; justify-content: space-between; gap: 24px; font-family: var(--f-mono); font-size: 12.5px; line-height: 1.3; letter-spacing: .02em; text-transform: uppercase; opacity: 0; transition: opacity .4s; }
html.menu-open .menu__foot { opacity: 1; transition-delay: .6s; }
.menu__foot a { color: inherit; text-decoration: none; }
.menu__foot a:hover { color: var(--menu-hot); }
/* phones: the link row leaves the nav, the burger is the menu */
.is-mobile .nav__links { display: none; }
.is-mobile .nav__burger { margin-left: 0; }
@media (max-width: 560px) { .nav { width: 100%; } .nav__links { display: none; } .nav__burger { margin-left: 0; } }
@media (max-width: 720px) {
  .menu__inner { padding: 90px 20px 20px; }
  .menu__link { font-size: var(--menu-size-m); } .menu__word { font-size: var(--menu-size-m); letter-spacing: -.04em; }
  .menu__num { width: 20px; margin-top: .4em; font-size: 11px; }
  .menu__list { margin-bottom: 24px; }
  .menu__foot { flex-direction: column; gap: 6px; font-size: 11px; }
}
/* the site's custom cursor turns black while the orange menu is open */
html.menu-open .cursor i { background: #0e0e0e; border-color: #0e0e0e; }
html.menu-open .cursor.is-link i { background: transparent; border-color: #0e0e0e; }
html.menu-open .cursor__label { color: #fff; }
/* leaving through the menu: the blinds are black, and so are the ones that lift on the next page */
html.menu-open .curtain i, html.dark-blinds .curtain i, html.dark-blinds .loader i, html.dark-blinds .loader__shutters i { background: #0e0e0e; }   /* MENU: black blinds both ways, so leaving and arriving read as one move */
@media (prefers-reduced-motion: reduce) { .menu, .menu__word, .menu__num, .menu__foot, .nav__burger i { transition: none !important; } }
