@charset "UTF-8";
/* menu.css
   Motion ported from "Apple style mobile menu" (codepen.io/theaftermath87/pen/meZgzM):
   the header itself grows from bar height to full screen, then the links ease in
   one after another. On close the links leave bottom-first while the header collapses.
   All of it is driven by one class, .menu-opened, toggled by menu.js. */

:root {
  --bar-h: 60px;                                  /* height of the closed bar */
  --ink: #000;
  --cubic: cubic-bezier(0.4, 0.01, 0.165, 0.99);  /* easing used by the Pen */
  --gutter: max(22px, calc((100% - 1024px) / 2)); /* side padding, same as before */
  --item-shift: -20px;                            /* how far links start above their place */
}

html.menu-lock { overflow: hidden; }              /* stops the page scrolling behind the menu */

/* ---------- HEADER (bar + panel in one element) ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10000;
  height: var(--bar-h);
  margin: 0;
  padding: 0 var(--gutter);
  display: flex;
  align-items: flex-start;            /* NOT center: keeps logo + burger on the top row when the header grows */
  justify-content: space-between;     /* logo left, burger right */
  overflow: hidden;                   /* clips the links while the header is short */
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;

  /* translucent bar with blur and 180% saturation */
  background-color: rgba(255, 255, 255, .95);       /* fallback if blur isn't supported */

  /* CLOSING: wait .2s (links leave first), then collapse */
  transition: height .5s ease-out .2s, background-color 1s ease-out .2s;
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .header {
    background-color: rgba(255, 255, 255, .72);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
  }
}
.header *, .header *::before, .header *::after { box-sizing: border-box; }

/* OPENING: wait .25s, then grow to full screen, white and mostly opaque */
.header.menu-opened {
  height: 100vh;
  height: 100dvh;       /* accounts for phone browser toolbars */
  background-color: rgba(255, 255, 255, 1);
  transition: height .3s ease-in .25s, background-color .5s ease-in .25s;
}

/* ---------- LOGO ---------- */
.logo {
	display: flex;
	align-items: center;                /* centers the logo inside the 60px bar row */
	flex: none;
	height: var(--bar-h);
}
.logo img {
	display: block;
	height: 30px;
	width: auto;
}

/* ---------- BURGER ---------- */
.burger-container {
  position: relative;
  flex: none;
  width: 50px; height: 50px;
  margin: calc((var(--bar-h) - 50px) / 2) -13px 0 0;   /* centers the button in the bar row; -13px lines the lines up with the page margin */
  padding: 0;
  margin-right: 1px;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.burger-container:focus-visible { outline: 2px solid #0071e3; outline-offset: -4px; border-radius: 8px; }

/* The two burger lines are drawn with ::before and ::after on the button itself,
   so they do not depend on any child elements or on other stylesheets. */
.header .burger-container > * { display: none !important; }   /* ignore any leftover spans in the button */
.header .burger-container::before,
.header .burger-container::after {
  content: "";
  display: block;
  position: absolute;
  left: 13px;
  top: 20px;                           /* both lines share the center line... */
  width: 26px;                         /* 50px button minus 13px on each side */
  height: 3px;
  background-color: #000 !important;
  /* CLOSING: lines come back out of the X */
  transition: transform .3s var(--cubic);
}
.header .burger-container::before { transform: translateY(-4px); }   /* ...and are pushed apart by translate */
.header .burger-container::after  { transform: translateY(4px); }

/* OPENING: lines merge into an X */
.header.menu-opened .burger-container::before,
.header.menu-opened .burger-container::after {
  transition: transform .4s var(--cubic) .2s;
}
.header.menu-opened .burger-container::before { transform: translateY(0) rotate(45deg); }
.header.menu-opened .burger-container::after  { transform: translateY(0) rotate(-45deg); }

/* ---------- LINKS ---------- */
.menu {
  position: absolute;
  top: var(--bar-h); left: 0; right: 0;
  margin: 0;
  padding: 24px var(--gutter) 40px;
  list-style: none;
  /* hidden from keyboards and screen readers once the close animation is done */
  visibility: hidden;
  transition: visibility 0s linear 1.1s;
}
.header.menu-opened .menu {
  visibility: visible;
  transition-delay: 0s;
}

.menu-item {
  margin: 0; padding: 0;
  opacity: 0;
  transform: translate3d(0, var(--item-shift), 0);
  /* CLOSING: bottom links leave first. menu.js sets --close-delay on each item. */
  transition: transform .5s var(--cubic), opacity .6s var(--cubic);
  transition-delay: var(--close-delay, 0s);
}
.header.menu-opened .menu-item {
  opacity: 1;
  transform: none;
  /* OPENING: top link first, then each next one .07s later. menu.js sets --open-delay. */
  transition-delay: var(--open-delay, .3s);
}

.menu-item a,
.menu-item a:visited,
.menu-item a:hover,
.menu-item a:active {
  display: block;
  padding: .8em 0 .2em 1.2em;
  font-size: 6vw;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.015em;
  color: var(--ink);
  text-decoration: none;
}
.menu-item a:focus-visible { outline: 2px solid #0071e3; outline-offset: 4px; border-radius: 4px; }

/* ---------- DESKTOP: plain row of links in the bar, no burger ---------- */
@media (min-width: 834px) and (hover: hover) and (pointer: fine) {
  .burger-container { display: none; }

  .header,
  .header.menu-opened {
    height: var(--bar-h);
    transition: none;
  }
  .header.menu-opened { background-color: rgba(255, 255, 255, .72); }

  .header .menu,
  .header.menu-opened .menu {
    position: static;
    display: flex;
    align-items: center;
    height: var(--bar-h);
    margin: 0 0 0 auto;
    padding: 0;
    visibility: visible;
    transition: none;
  }
  .header .menu-item,
  .header.menu-opened .menu-item {
    opacity: 1;
    transform: none;
    transition: none;
    margin-left: 28px;
  }
  .menu-item a,
  .menu-item a:visited,
  .menu-item a:hover,
  .menu-item a:active {
    padding: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    opacity: .7;
  }
  .menu-item a:hover { opacity: 1; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .header, .header *, .header *::before, .header *::after {
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
}
