/* Rune Nissen – the burger and the menu. The menu holds contact, socials and the fine print as the footer does at
   the end of every page (css/footer.css). The burger stays in the corner the whole way down; it draws the hero's
   velour curtain shut over the page, and a stage light finds the part under the mouse (js/menu.js). */

/* ---------- Burger ---------- */

/* Where it sits in the hero's bar, but fixed. Past the hero it becomes a clapperboard, so it shows on the light
   sections too: a dark glass square with a striped clapper over it. Under the mouse the clapper lifts; opening the
   menu claps it shut (up and down in one go from a tap or a key) as the snake starts and the curtain comes in, and
   once the curtain is behind it the square stays as a faint frame round the cross. A project or the full-screen wall
   has its own Luk. */
.burger { position: fixed; top: 26px; right: clamp(16px, 4vw, 56px); z-index: 100; width: 48px; height: 48px; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: opacity .3s ease, visibility .3s; }
.burger::before { content: ''; position: absolute; inset: 0; border-radius: 4px 4px 10px 10px; background-color: rgba(13,26,28,.8); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px rgba(243,239,228,.12); opacity: 0; transform: scale(.6); transition: opacity .3s ease, transform .3s cubic-bezier(.2,.7,.2,1), background-color .3s ease; }
.burger::after { content: ''; position: absolute; left: 0; right: 0; top: -11px; height: 8px; border-radius: 2px; background: repeating-linear-gradient(118deg, var(--creme) 0 5px, var(--petrol-900) 5px 10px); box-shadow: inset 0 0 0 1px var(--petrol-900), 0 0 0 1px rgba(243,239,228,.28); transform-origin: 2px 100%; opacity: 0; transform: translateY(6px); transition: opacity .3s ease, transform .3s cubic-bezier(.2,.8,.2,1); }
.burger.is-floating::before { opacity: 1; transform: none; }
.burger.is-floating::after { opacity: 1; transform: none; }
html.has-menu .burger::before { background-color: rgba(5,10,11,.4); transition: opacity .3s ease, transform .3s cubic-bezier(.2,.7,.2,1), background-color .3s ease .2s; }
html.has-menu:not(.rn-arrive) .burger.is-floating::after { animation: burger-clap .34s both; }
@keyframes burger-clap { 0% { transform: none; animation-timing-function: cubic-bezier(.2,.8,.3,1); } 35% { transform: rotate(-18deg); animation-timing-function: cubic-bezier(.6,0,.9,.4); } 64% { transform: none; animation-timing-function: ease-out; } 82% { transform: rotate(-3deg); animation-timing-function: ease-in; } 100% { transform: none; } }
@keyframes burger-clap-down { 0% { transform: rotate(-16deg); animation-timing-function: cubic-bezier(.6,0,.9,.4); } 45% { transform: none; animation-timing-function: ease-out; } 72% { transform: rotate(-3deg); animation-timing-function: ease-in; } 100% { transform: none; } }
/* The snake: each creme stroke is the visible 30 of a path 85.37 long, which runs on to the left, whips round a hook
   (the top one up, the bottom one down) and comes back as a diagonal of the cross. Opening slides the 30 along it
   (0.7 s, the bottom a beat behind) while the lime stroke draws in to its middle; closing runs it all back. Under the
   mouse the lime stroke shortens from the left. */
.burger svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: none; stroke-width: 2; stroke-linecap: round; }
.burger-top, .burger-low { stroke: var(--creme); stroke-dasharray: 30px 100px; stroke-dashoffset: 0; transition: stroke-dashoffset .66s cubic-bezier(.65,0,.35,1); }
.burger-top { transition-delay: .04s; }
html.has-menu .burger-top, html.has-menu .burger-low { stroke-dashoffset: -55.37px; }
html.has-menu .burger-top { transition-delay: 0s; }
html.has-menu .burger-low { transition-delay: .04s; }
.burger-mid { stroke: var(--lime); transform-box: view-box; transform-origin: 39px 24px; transition: transform .35s cubic-bezier(.3,.7,.2,1); }
.burger-mid path { transform-box: view-box; transform-origin: 24px 24px; transition: transform .32s cubic-bezier(.65,0,.35,1) .38s, opacity 0s .38s; }
html.has-menu .burger-mid path { transform: scaleX(0); opacity: 0; transition: transform .32s cubic-bezier(.65,0,.35,1), opacity 0s .3s; }
@media (hover: hover) {
  html:not(.has-menu) .burger:hover .burger-mid { transform: scaleX(.6); }
  html:not(.has-menu) .burger.is-floating:hover::after { transform: rotate(-16deg); }
  /* the mouse has lifted it already, so it only claps */
  html.has-menu:not(.rn-arrive) .burger.is-floating::after { animation: burger-clap-down .24s both; }
}
/* MENU beside the burger while it is still bare lines over the hero (the front page), so it reads as something to
   click; it goes with the clapperboard past the hero, and while the menu is open */
.burger-label { position: absolute; top: 50%; right: calc(100% + 12px); font-size: 12px; font-weight: 500; letter-spacing: .24em; line-height: 1; text-transform: uppercase; white-space: nowrap; color: var(--creme); transform: translateY(-50%); transition: opacity .3s ease, transform .3s cubic-bezier(.2,.7,.2,1), color .2s ease; }
.burger.is-floating .burger-label, html.has-menu .burger-label { opacity: 0; transform: translate(8px, -50%); pointer-events: none; }
@media (hover: hover) { .burger:hover .burger-label { color: var(--lime); } }
/* Phones: under the burger, so it never runs into the name in the middle of the bar */
@media (max-width: 600px) {
  .burger-label { top: calc(100% + 5px); right: 50%; font-size: 9px; letter-spacing: .22em; transform: translateX(calc(50% + .11em)); }
  .burger.is-floating .burger-label, html.has-menu .burger-label { transform: translate(calc(50% + .11em), -6px); }
}
.burger:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px 4px 10px 10px; }
html.has-project .burger, html.has-wall .burger { opacity: 0; visibility: hidden; pointer-events: none; }

/* ---------- Menu ---------- */

html.has-menu { overflow: hidden; }
.menu { position: fixed; inset: 0; z-index: 90; overflow: hidden; visibility: hidden; color: var(--creme); font-family: 'Jost', system-ui, sans-serif; }
.menu.is-on { visibility: visible; }

/* The curtain (the hero's, see css/hero.css) is away to begin with: gathered and pulled out past the edges. The
   burger runs it in and spreads it (just under 1 s), × pulls it off again; the bands lag as it moves (below). */
.menu .drape { transform: translateX(-14%) scaleX(.075); }
.menu.is-in .drape { animation: menu-in .95s cubic-bezier(.25,.7,.25,1) both; }
.menu.is-out .drape { animation: menu-out .75s .15s cubic-bezier(.55,0,.35,1) both; }
.menu.is-on .k, .menu.is-on .drape { will-change: transform; }
@keyframes menu-in { from { transform: translateX(-14%) scaleX(.075); } to { transform: none; } }
@keyframes menu-out { from { transform: none; } to { transform: translateX(-14%) scaleX(.075); } }
.menu-spot { position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: 0; background: radial-gradient(55% 75% at 50% -5%, rgba(243,239,228,.07), rgba(243,239,228,0) 70%); transition: opacity .2s ease; }
.menu.is-in .menu-spot { opacity: 1; transition: opacity .6s ease .5s; }
.menu-logo { position: absolute; top: 26px; left: 0; right: 0; z-index: 6; display: flex; align-items: center; justify-content: center; height: 48px; margin: 0; pointer-events: none; font-family: 'Smooch Sans', sans-serif; font-weight: 800; font-size: 24px; letter-spacing: .26em; line-height: 1; text-transform: uppercase; }
/* The name shows only where the curtain is (js/menu.js moves --cl, the left curtain's inner edge, and --cr, the
   right one's, as the curtain goes), so in the gap the page's own name shows, dark on a light page */
.menu-logo { --cl: 0px; --cr: 100%; clip-path: polygon(0 0, var(--cl) 0, var(--cl) 100%, 0 100%, 0 0, var(--cr) 0, 100% 0, 100% 100%, var(--cr) 100%, var(--cr) 0); }
.menu-edge { position: absolute; right: 0; top: 50px; width: 0; height: 0; pointer-events: none; }

/* DA / EN in the top left, across from × (tools/build-en.py puts it in every page, Danish and English): the language
   you are on in lime, the other a link to this page in it, which js/menu.js keeps for the next visit. It rises with
   the parts. The padding makes each a thumb's width to hit; the letters sit where the burger's edge is mirrored. */
.menu-lang { position: absolute; top: 26px; left: calc(clamp(16px, 4vw, 56px) - 8px); z-index: 7; display: flex; align-items: center; height: 48px; margin: 0; font-size: 12px; font-weight: 500; letter-spacing: .22em; line-height: 1; text-transform: uppercase; color: rgba(243,239,228,.32); }
.menu-lang > :not(.menu-lang-sep) { padding: 16px 8px 16px calc(8px + .22em); }
.menu-lang [aria-current] { color: var(--lime); }
.menu-lang a { color: rgba(243,239,228,.78); transition: color .2s ease; -webkit-tap-highlight-color: transparent; }
@media (hover: hover) { .menu-lang a:hover { color: var(--creme); } }
.menu-lang a:focus-visible { outline: 2px solid var(--lime); outline-offset: -4px; border-radius: 4px; }

/* What is on the curtain rises once it is shut, a line at a time; on × (or a link) it fades before the curtain goes */
.menu-in { opacity: 0; }
.menu.is-in .menu-in { animation: menu-rise .55s calc(.62s + var(--i, 0) * 55ms) cubic-bezier(.2,.7,.2,1) both; }
.menu.is-out .menu-in { animation: menu-fade .2s both; }
@keyframes menu-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes menu-fade { from { opacity: 1; } to { opacity: 0; } }

.menu-body { position: absolute; inset: 0; z-index: 6; isolation: isolate; display: grid; grid-template-columns: 1fr auto; grid-template-rows: 1fr auto; column-gap: 48px; padding: 110px clamp(24px, 6.7vw, 96px) 54px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }

/* The stage light: one pool on the curtain, and a beam down to it from the rig above. js/menu.js places it on the
   part it is on (--lx … --ba); it glides from part to part, and flickers on once the curtain is shut. The beam is
   two cones, a narrow core in a wider haze, cut to shape inside it and then blurred as one (a blur on the cut
   itself would be cut sharp again), by more the wider the beam; the pool falls off evenly to nothing */
.menu-light, .menu-beam { position: absolute; z-index: -1; pointer-events: none; opacity: 0; transition: transform .5s cubic-bezier(.2,.7,.2,1), width .5s cubic-bezier(.2,.7,.2,1), height .5s cubic-bezier(.2,.7,.2,1); }
.menu-light { left: 0; top: 0; width: var(--lw, 0px); height: var(--lh, 0px); transform: translate(var(--lx, 0px), var(--ly, 0px)); border-radius: 50%; background: radial-gradient(closest-side, rgba(243,239,228,.22) 0, rgba(243,239,228,.17) 22%, rgba(243,239,228,.1) 45%, rgba(243,239,228,.045) 68%, rgba(243,239,228,.012) 86%, rgba(243,239,228,0) 100%); }
.menu-beam { left: var(--sx, 0px); top: var(--sy, 0px); width: var(--bl, 0px); height: var(--bh, 0px); transform-origin: 0 50%; transform: translateY(-50%) rotate(var(--ba, 0rad)); filter: blur(max(8px, calc(var(--bh, 0px) * .075))); }
.menu-beam::before, .menu-beam::after { content: ''; position: absolute; left: 0; right: 0; }
.menu-beam::before { top: -30%; bottom: -30%; background: linear-gradient(90deg, rgba(243,239,228,0) 0, rgba(243,239,228,.05) 30%, rgba(243,239,228,.09) 78%, rgba(243,239,228,.06) 100%); clip-path: polygon(0 44%, 100% 4%, 100% 96%, 0 56%); }
.menu-beam::after { top: 0; bottom: 0; background: linear-gradient(90deg, rgba(243,239,228,.02) 0, rgba(243,239,228,.11) 35%, rgba(243,239,228,.2) 80%, rgba(243,239,228,.13) 100%); clip-path: polygon(0 47.5%, 100% 6%, 100% 94%, 0 52.5%); }
.menu.is-in .menu-light, .menu.is-in .menu-beam { animation: menu-flick .6s .6s both; }
@keyframes menu-flick { 0% { opacity: 0; } 12% { opacity: .85; } 18% { opacity: .15; } 30% { opacity: 1; } 38% { opacity: .5; } 55%, 100% { opacity: 1; } }

/* The seven parts, big on the left: the one in the light bright, the rest back in the dark */
.menu-nav { grid-column: 1; grid-row: 1; align-self: center; justify-self: start; }
.menu-nav ul { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.menu-nav li { position: relative; }
.menu-nav a { display: inline-flex; align-items: flex-start; gap: 14px; transition: opacity .35s ease; }
.menu-nav ul:has(.is-lit) li:not(.is-lit) a { opacity: .36; }
.menu-n { margin-top: .9em; font-size: 13px; font-weight: 500; letter-spacing: .16em; color: var(--lime); }
.menu-nav b { font-family: 'Smooch Sans', sans-serif; font-weight: 900; font-size: clamp(42px, min(7.1vw, 9.4vh), 96px); line-height: .9; letter-spacing: .02em; text-transform: uppercase; text-shadow: 0 10px 40px rgba(0,0,0,.45); }
/* No ring round a part with focus: the light is on the part that has it (js/menu.js lights a focused part), and the
   others dim, which shows it plainly enough – the menu opens with the first part focused, and a ring there looked
   like a box round Showreel */
.menu-nav a:focus-visible { outline: none; }

/* A taste of each part, beside the list and level with the part in the light, while the mouse is on the parts (a
   low part's rises by --up to clear contact and the fine print, js/menu.js) */
.menu-peek { position: absolute; left: calc(100% + 64px); top: 50%; display: flex; flex-direction: column; gap: 14px; opacity: 0; pointer-events: none; transform: translate(-12px, calc(-50% - var(--up, 0px))) rotate(-2deg); transition: opacity .3s ease, transform .45s cubic-bezier(.2,.7,.2,1); }
.menu-nav ul:hover .is-lit .menu-peek { opacity: 1; transform: translate(0, calc(-50% - var(--up, 0px))) rotate(-2deg); }
.menu-cap { font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; color: var(--lime); }
.menu-shot { position: relative; display: block; overflow: hidden; border-radius: 12px; box-shadow: 0 24px 50px -20px rgba(0,0,0,.9); }
.menu-shot::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(243,239,228,.16); }
.menu-shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.menu-peek--reel .menu-shot { width: 260px; height: 146px; }
/* Shortform: three of its upright clips side by side, as on its page */
.menu-peek--short .menu-shot { display: flex; gap: 8px; overflow: visible; border-radius: 0; box-shadow: none; }
.menu-peek--short .menu-shot::after { display: none; }
.menu-peek--short img { width: 80px; height: 142px; border-radius: 10px; box-shadow: 0 24px 50px -20px rgba(0,0,0,.9), inset 0 0 0 1px rgba(243,239,228,.16); }
.menu-peek--short img:nth-child(2) { margin-top: -10px; }
.menu-play { position: absolute; left: 50%; top: 50%; z-index: 1; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: var(--lime); box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.menu-play::before { content: ''; position: absolute; left: 18px; top: 15px; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent var(--petrol-900); }
.menu-peek--rune .menu-shot { width: 184px; height: 214px; background: radial-gradient(70% 60% at 50% 38%, #F8F5EE 0, #E5DFD2 100%); }
.menu-fig { position: absolute; left: 50%; top: 8px; width: 276px; aspect-ratio: 1505 / 2008; transform: translateX(-52%); } /* his face in the middle (the image has his floor shadow around him) */
.menu-fig img { position: absolute; }
.menu-fig .menu-body-img { inset: 0; width: 100%; height: 100%; }
.menu-fig .menu-head-img { left: 36.744%; top: 0; width: 36.213%; height: 26.494%; }
.menu-stat { position: absolute; left: 10px; bottom: 10px; z-index: 1; display: flex; align-items: baseline; gap: 6px; padding: 6px 11px; border-radius: 999px; background: var(--petrol-900); font-size: 10px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: rgba(243,239,228,.8); }
.menu-stat strong { font-family: 'Smooch Sans', sans-serif; font-weight: 800; font-size: 16px; letter-spacing: .03em; color: var(--lime); }
/* Stills: four of Rune's stills in a loose pile of prints (creme edges), fanning out as the part comes into the
   light, the back ones first */
.menu-peek--pile .menu-shot { width: 280px; height: 192px; overflow: visible; border-radius: 0; box-shadow: none; }
.menu-peek--pile .menu-shot::after { display: none; }
.menu-peek--pile .menu-shot img { position: absolute; left: 50%; top: 50%; width: 112px; height: 140px; margin: -70px 0 0 -56px; border: 4px solid var(--creme); border-radius: 6px; background: var(--creme); box-shadow: 0 22px 40px -18px rgba(0,0,0,.95); transform: rotate(var(--r0)); transition: transform .5s cubic-bezier(.2,.7,.2,1) var(--w, 0s); }
.menu-peek--pile img:nth-child(1) { --r0: -4deg; --x: -82px; --y: 8px; --r: -14deg; }
.menu-peek--pile img:nth-child(2) { --r0: 3deg; --x: 80px; --y: 2px; --r: 12deg; --w: .04s; }
.menu-peek--pile img:nth-child(3) { --r0: -1deg; --x: -28px; --y: -14px; --r: -5deg; --w: .08s; }
.menu-peek--pile img:nth-child(4) { --r0: 2deg; --x: 30px; --y: 12px; --r: 6deg; --w: .12s; }
.menu-nav ul:hover .is-lit .menu-peek--pile img { transform: translate(var(--x), var(--y)) rotate(var(--r)); }
/* Longform: a loop of six of its music videos, cinema-wide; its first frame shows until it plays, which it does only
   while the part is in the light (js/menu.js) */
.menu-peek--wide .menu-shot { width: 272px; height: 114px; background: var(--petrol-900); }
.menu-shot video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s ease; }
.menu-shot video.is-playing { opacity: 1; }
/* Hjemmeside: the medium on a creme card in its own format, a browser */
.menu-peek--draw .menu-shot { display: grid; place-items: center; background: var(--creme); color: var(--petrol-900); }
.menu-peek--site .menu-shot { width: 252px; height: 168px; padding-top: 24px; }
/* A real site in the frame: Bookbart's front page, as its film on /hjemmeside starts */
.menu-peek--site .menu-shot img { object-position: 50% 0; }
.menu-chrome { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; background: var(--petrol-900); }
.menu-chrome i { width: 6px; height: 6px; border-radius: 50%; background: rgba(243,239,228,.3); }
.menu-chrome i:first-child { background: var(--lime); }
/* 3D: Gavnø Slot as its film on /3d shows it, the wipe halfway through the castle – the finished render at the left,
   the grey model at the right (tools/build-3d-gavnoe.sh) */
.menu-peek--render .menu-shot { width: 260px; height: 146px; background: var(--petrol-900); }

/* Contact in the corner, the fine print along the hem */
.menu-contact { grid-column: 2; grid-row: 1; align-self: end; display: flex; flex-direction: column; align-items: flex-end; margin-bottom: 26px; text-align: right; }
.menu-label { margin: 0 0 12px; font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: rgba(243,239,228,.55); }
.menu-mail { display: inline-block; padding-bottom: 5px; border-bottom: 2px solid var(--lime); font-family: 'Smooch Sans', sans-serif; font-weight: 800; font-size: clamp(28px, 3.4vw, 38px); letter-spacing: .03em; line-height: 1; white-space: nowrap; transition: color .2s ease; }
.menu-phone { display: block; margin-top: 12px; font-size: 16px; color: rgba(243,239,228,.8); transition: color .2s ease; }
.menu-some { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 22px; margin: 20px 0 0; padding: 0; list-style: none; }
.menu-some a { font-size: 15px; font-weight: 500; color: rgba(243,239,228,.85); transition: color .2s ease; }
.menu-mail:hover, .menu-phone:hover, .menu-some a:hover { color: var(--lime); }
.menu-contact a:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; border-radius: 2px; }
.menu-fine { grid-column: 1 / -1; grid-row: 2; margin: 0; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: rgba(243,239,228,.45); }
/* Siden lavet af Andreas: the fine print's own letters, underlined, opening the box (css/footer.css, js/footer.js) */
.menu-credit { padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; text-decoration: underline; text-decoration-color: rgba(243,239,228,.3); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s ease, text-decoration-color .2s ease; -webkit-tap-highlight-color: transparent; }
.menu-credit:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 2px; }
@media (hover: hover) { .menu-credit:hover { color: var(--creme); text-decoration-color: var(--lime); } }

/* No hover, or no room beside the list: no tastes */
@media (hover: none), (max-width: 1099px) {
  .menu-peek { display: none; }
}

/* Phones: the parts, then contact, then the fine print, down the screen */
@media (max-width: 600px) {
  .burger { top: 16px; right: 16px; width: 44px; height: 44px; }
  .burger::after { top: -10px; height: 7px; }
  .menu-logo { top: 16px; height: 44px; font-size: 20px; letter-spacing: .24em; }
  .menu-lang { top: 16px; left: 8px; height: 44px; font-size: 11px; }
  .menu-body { grid-template-columns: 1fr; grid-template-rows: 1fr auto auto; padding: 96px 22px 44px; }
  .menu-nav a { gap: 10px; }
  .menu-n { margin-top: .7em; font-size: 11px; }
  .menu-nav b { font-size: min(15vw, 6.2vh); }
  .menu-contact { grid-column: 1; grid-row: 2; align-self: start; align-items: flex-start; margin: 32px 0 26px; text-align: left; }
  .menu-mail { font-size: min(28px, 7.2vw); }
  .menu-phone { margin-top: 10px; font-size: 15px; }
  .menu-some { justify-content: flex-start; gap: 8px 18px; margin-top: 16px; }
  .menu-some a { font-size: 14px; }
  .menu-fine { grid-row: 3; font-size: 10px; line-height: 1.8; letter-spacing: .18em; }
  .menu-fine span { display: block; }
  .menu-fine .menu-dot { display: none; }
}
/* The smallest phones: DA / EN a little tighter, so EN keeps clear of the name */
@media (max-width: 350px) {
  .menu-lang { font-size: 10px; letter-spacing: .16em; }
  .menu-lang > :not(.menu-lang-sep) { padding-left: calc(6px + .16em); padding-right: 6px; }
}

/* ---------- Between pages ---------- */

/* A link to another page draws the curtain shut over this one first, quicker and with nothing on it; from the menu,
   where it is shut already, only what is on it fades (js/menu.js). The next page starts with it shut: the script in
   its head sets html.rn-arrive before anything is drawn, with a cloth of the same velour standing in until the
   menu's own curtain is in, and the burger as it was on the page before (the cross, the frame or none) until the
   curtain comes off and it turns into its own. */
.menu.is-going .menu-body, .menu.is-going .menu-logo, .menu.is-going .menu-lang, .menu.is-going .menu-spot { opacity: 0; transition: opacity .2s ease; }
.menu.is-bare .menu-body, .menu.is-bare .menu-logo, .menu.is-bare .menu-lang, .menu.is-bare .menu-spot,
html.rn-arrive .menu-body, html.rn-arrive .menu-logo, html.rn-arrive .menu-lang, html.rn-arrive .menu-spot { visibility: hidden; }
.menu.is-bare.is-in .drape { animation-duration: .6s; }
.menu.is-bare.is-in .k { animation-duration: .9s; }
html.rn-arrive .menu { visibility: visible; }
html.rn-arrive .menu .drape { transform: none; }
html.rn-arrive body::before { content: ''; position: fixed; inset: 0; z-index: 89; pointer-events: none; background: linear-gradient(rgba(212,238,106,.9), rgba(212,238,106,.9)) 0 calc(100% - 26px) / 100% 2px no-repeat, linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,0) 16%, rgba(0,0,0,0) 72%, rgba(0,0,0,.6) 100%), repeating-linear-gradient(90deg, rgba(0,0,0,.5) 0px, rgba(0,0,0,.1) 24px, rgba(236,244,238,.12) 44px, rgba(0,0,0,.08) 62px, rgba(0,0,0,.5) 92px) -160px 0, var(--velour); }
html.rn-frame .burger::before, html.rn-frame .burger::after { opacity: 1; transform: none; }
html.rn-noframe .burger::before { opacity: 0; transform: scale(.6); }
html.rn-noframe .burger::after { opacity: 0; transform: translateY(6px); }

/* Reduced motion: the curtain and the menu fade in and out where they hang (and a link to another page just goes) */
@media (prefers-reduced-motion: reduce) {
  .menu .k, .menu .drape, .menu .curtains, .menu-in, .menu-light, .menu-beam, .burger::after { animation: none !important; }
  .menu .drape { transform: none; }
  .menu { opacity: 0; transition: opacity .3s ease, visibility .3s; }
  .menu.is-in { opacity: 1; }
  .menu.is-in .menu-in, .menu.is-in .menu-light, .menu.is-in .menu-beam { opacity: 1; }
  .menu-light, .menu-beam, .menu-peek, .menu-peek--pile img, .burger svg *, .burger::before, .burger::after { transition: none !important; }
}

/* menu-curtain:start */
/* Generated by tools/build-curtain.py: the same nested skew as the hero's curtain, timed for the menu. */
.menu.is-in .p0 { animation: pshut0 1.3s 0.00s both; }
.menu.is-out .p0 { animation: ppull0 1s 0.15s both; }
@keyframes pshut0 { 0% { transform: skewX(0); animation-timing-function: cubic-bezier(.45,0,.55,1); } 38% { transform: skewX(-5.850deg); animation-timing-function: cubic-bezier(.45,0,.55,1); } 72% { transform: skewX(1.040deg); animation-timing-function: cubic-bezier(.45,0,.55,1); } 100% { transform: skewX(0); } }
@keyframes ppull0 { 0% { transform: skewX(0); animation-timing-function: cubic-bezier(.45,0,.55,1); } 42% { transform: skewX(5.850deg); animation-timing-function: cubic-bezier(.45,0,.55,1); } 100% { transform: skewX(0); } }
.menu.is-in .n0 { animation: nshut0 1.3s 0.00s both; }
.menu.is-out .n0 { animation: npull0 1s 0.15s both; }
@keyframes nshut0 { 0% { transform: skewX(0); animation-timing-function: cubic-bezier(.45,0,.55,1); } 38% { transform: skewX(5.850deg); animation-timing-function: cubic-bezier(.45,0,.55,1); } 72% { transform: skewX(-1.040deg); animation-timing-function: cubic-bezier(.45,0,.55,1); } 100% { transform: skewX(0); } }
@keyframes npull0 { 0% { transform: skewX(0); animation-timing-function: cubic-bezier(.45,0,.55,1); } 42% { transform: skewX(-5.850deg); animation-timing-function: cubic-bezier(.45,0,.55,1); } 100% { transform: skewX(0); } }
.menu.is-in .p1 { animation: pshut1 1.3s 0.05s both; }
.menu.is-out .p1 { animation: ppull1 1s 0.20s both; }
@keyframes pshut1 { 0% { transform: skewX(0); animation-timing-function: cubic-bezier(.45,0,.55,1); } 38% { transform: skewX(-5.238deg); animation-timing-function: cubic-bezier(.45,0,.55,1); } 72% { transform: skewX(0.931deg); animation-timing-function: cubic-bezier(.45,0,.55,1); } 100% { transform: skewX(0); } }
@keyframes ppull1 { 0% { transform: skewX(0); animation-timing-function: cubic-bezier(.45,0,.55,1); } 42% { transform: skewX(5.238deg); animation-timing-function: cubic-bezier(.45,0,.55,1); } 100% { transform: skewX(0); } }
.menu.is-in .n1 { animation: nshut1 1.3s 0.05s both; }
.menu.is-out .n1 { animation: npull1 1s 0.20s both; }
@keyframes nshut1 { 0% { transform: skewX(0); animation-timing-function: cubic-bezier(.45,0,.55,1); } 38% { transform: skewX(5.238deg); animation-timing-function: cubic-bezier(.45,0,.55,1); } 72% { transform: skewX(-0.931deg); animation-timing-function: cubic-bezier(.45,0,.55,1); } 100% { transform: skewX(0); } }
@keyframes npull1 { 0% { transform: skewX(0); animation-timing-function: cubic-bezier(.45,0,.55,1); } 42% { transform: skewX(-5.238deg); animation-timing-function: cubic-bezier(.45,0,.55,1); } 100% { transform: skewX(0); } }
.menu.is-in .p2 { animation: pshut2 1.3s 0.10s both; }
.menu.is-out .p2 { animation: ppull2 1s 0.25s both; }
@keyframes pshut2 { 0% { transform: skewX(0); animation-timing-function: cubic-bezier(.45,0,.55,1); } 38% { transform: skewX(-4.779deg); animation-timing-function: cubic-bezier(.45,0,.55,1); } 72% { transform: skewX(0.850deg); animation-timing-function: cubic-bezier(.45,0,.55,1); } 100% { transform: skewX(0); } }
@keyframes ppull2 { 0% { transform: skewX(0); animation-timing-function: cubic-bezier(.45,0,.55,1); } 42% { transform: skewX(4.779deg); animation-timing-function: cubic-bezier(.45,0,.55,1); } 100% { transform: skewX(0); } }
.menu.is-in .n2 { animation: nshut2 1.3s 0.10s both; }
.menu.is-out .n2 { animation: npull2 1s 0.25s both; }
@keyframes nshut2 { 0% { transform: skewX(0); animation-timing-function: cubic-bezier(.45,0,.55,1); } 38% { transform: skewX(4.779deg); animation-timing-function: cubic-bezier(.45,0,.55,1); } 72% { transform: skewX(-0.850deg); animation-timing-function: cubic-bezier(.45,0,.55,1); } 100% { transform: skewX(0); } }
@keyframes npull2 { 0% { transform: skewX(0); animation-timing-function: cubic-bezier(.45,0,.55,1); } 42% { transform: skewX(-4.779deg); animation-timing-function: cubic-bezier(.45,0,.55,1); } 100% { transform: skewX(0); } }
.menu.is-in .p3 { animation: pshut3 1.3s 0.15s both; }
.menu.is-out .p3 { animation: ppull3 1s 0.30s both; }
@keyframes pshut3 { 0% { transform: skewX(0); animation-timing-function: cubic-bezier(.45,0,.55,1); } 38% { transform: skewX(-4.320deg); animation-timing-function: cubic-bezier(.45,0,.55,1); } 72% { transform: skewX(0.768deg); animation-timing-function: cubic-bezier(.45,0,.55,1); } 100% { transform: skewX(0); } }
@keyframes ppull3 { 0% { transform: skewX(0); animation-timing-function: cubic-bezier(.45,0,.55,1); } 42% { transform: skewX(4.320deg); animation-timing-function: cubic-bezier(.45,0,.55,1); } 100% { transform: skewX(0); } }
.menu.is-in .n3 { animation: nshut3 1.3s 0.15s both; }
.menu.is-out .n3 { animation: npull3 1s 0.30s both; }
@keyframes nshut3 { 0% { transform: skewX(0); animation-timing-function: cubic-bezier(.45,0,.55,1); } 38% { transform: skewX(4.320deg); animation-timing-function: cubic-bezier(.45,0,.55,1); } 72% { transform: skewX(-0.768deg); animation-timing-function: cubic-bezier(.45,0,.55,1); } 100% { transform: skewX(0); } }
@keyframes npull3 { 0% { transform: skewX(0); animation-timing-function: cubic-bezier(.45,0,.55,1); } 42% { transform: skewX(-4.320deg); animation-timing-function: cubic-bezier(.45,0,.55,1); } 100% { transform: skewX(0); } }
.menu.is-in .p4 { animation: pshut4 1.3s 0.20s both; }
.menu.is-out .p4 { animation: ppull4 1s 0.35s both; }
@keyframes pshut4 { 0% { transform: skewX(0); animation-timing-function: cubic-bezier(.45,0,.55,1); } 38% { transform: skewX(-3.861deg); animation-timing-function: cubic-bezier(.45,0,.55,1); } 72% { transform: skewX(0.686deg); animation-timing-function: cubic-bezier(.45,0,.55,1); } 100% { transform: skewX(0); } }
@keyframes ppull4 { 0% { transform: skewX(0); animation-timing-function: cubic-bezier(.45,0,.55,1); } 42% { transform: skewX(3.861deg); animation-timing-function: cubic-bezier(.45,0,.55,1); } 100% { transform: skewX(0); } }
.menu.is-in .n4 { animation: nshut4 1.3s 0.20s both; }
.menu.is-out .n4 { animation: npull4 1s 0.35s both; }
@keyframes nshut4 { 0% { transform: skewX(0); animation-timing-function: cubic-bezier(.45,0,.55,1); } 38% { transform: skewX(3.861deg); animation-timing-function: cubic-bezier(.45,0,.55,1); } 72% { transform: skewX(-0.686deg); animation-timing-function: cubic-bezier(.45,0,.55,1); } 100% { transform: skewX(0); } }
@keyframes npull4 { 0% { transform: skewX(0); animation-timing-function: cubic-bezier(.45,0,.55,1); } 42% { transform: skewX(-3.861deg); animation-timing-function: cubic-bezier(.45,0,.55,1); } 100% { transform: skewX(0); } }
.menu.is-in .p5 { animation: pshut5 1.3s 0.25s both; }
.menu.is-out .p5 { animation: ppull5 1s 0.40s both; }
@keyframes pshut5 { 0% { transform: skewX(0); animation-timing-function: cubic-bezier(.45,0,.55,1); } 38% { transform: skewX(-3.402deg); animation-timing-function: cubic-bezier(.45,0,.55,1); } 72% { transform: skewX(0.605deg); animation-timing-function: cubic-bezier(.45,0,.55,1); } 100% { transform: skewX(0); } }
@keyframes ppull5 { 0% { transform: skewX(0); animation-timing-function: cubic-bezier(.45,0,.55,1); } 42% { transform: skewX(3.402deg); animation-timing-function: cubic-bezier(.45,0,.55,1); } 100% { transform: skewX(0); } }
/* menu-curtain:end */
