/* fonts:start  Both typefaces are served from this site (SIL Open Font License), so no visitor is sent to Google for them */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url(../assets/fonts/cormorant-garamond-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url(../assets/fonts/cormorant-garamond-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url(../assets/fonts/cormorant-garamond-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url(../assets/fonts/cormorant-garamond-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url(../assets/fonts/cormorant-garamond-latin-ext-500-italic.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url(../assets/fonts/cormorant-garamond-latin-500-italic.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 600; font-display: swap; src: url(../assets/fonts/cormorant-garamond-latin-ext-600-italic.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 600; font-display: swap; src: url(../assets/fonts/cormorant-garamond-latin-600-italic.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(../assets/fonts/dm-mono-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(../assets/fonts/dm-mono-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(../assets/fonts/dm-mono-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(../assets/fonts/dm-mono-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
/* fonts:end */
/* Layout: one ink-drawn skull centred on ruled paper; every room of the site hangs off it. Single look by choice (the paper is the artwork's own). */
:root {
  --paper: #d6d9d6;
  --paper-rule: rgba(255, 255, 255, .34);
  --ink: #1f3f97;
  --ink-deep: #12265f;
  --ink-soft: rgba(31, 63, 151, .16);
  --ink-mid: rgba(18, 38, 95, .72);
  --card: #e6e8e5;
  --glow: #f9fdff;
  --lid: #aebfda;
  --display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gl: max(16px, env(safe-area-inset-left, 0px));
  --gr: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background-color: var(--paper); }
/* Phones tint their status and tool bars with the plain paper colour, so the ruling fades into it instead of stopping at a hard edge */
body::before, body::after { content: ""; position: fixed; left: 0; right: 0; z-index: 5; pointer-events: none; }
body::before { top: 0; height: calc(env(safe-area-inset-top, 0px) + 64px); background: linear-gradient(var(--paper) env(safe-area-inset-top, 0px), transparent); }
body::after { bottom: 0; height: calc(env(safe-area-inset-bottom, 0px) + 88px); background: linear-gradient(transparent, var(--paper) calc(100% - env(safe-area-inset-bottom, 0px))); }
body {
  margin: 0;
  background: var(--paper) repeating-linear-gradient(to bottom, transparent 0 4px, var(--paper-rule) 4px 6px);
  color: var(--ink-deep);
  font-family: var(--display);
  font-size: 1.2rem;
  line-height: 1.5;
  min-height: 100vh; min-height: 100dvh;
}
a { color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* Top bar */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  padding: calc(12px + env(safe-area-inset-top, 0px)) var(--gr) 12px var(--gl);
  pointer-events: none;
}
.bar > * { pointer-events: auto; }
.name { font: 500 .78rem/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; text-decoration: none; color: var(--ink-deep); }
.burger {
  width: 46px; height: 46px; border: 1.5px solid var(--ink); border-radius: 50%;
  background: var(--card); cursor: pointer; display: grid; place-content: center; gap: 5px;
}
.burger span { display: block; width: 18px; height: 1.5px; background: var(--ink); transition: transform .25s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.menu {
  position: fixed; z-index: 19; top: 0; right: 0; bottom: 0; width: min(340px, 100%);
  background: var(--ink-deep); color: var(--paper);
  padding: calc(84px + env(safe-area-inset-top, 0px)) calc(var(--gr) + 12px) 32px 28px;
  display: flex; flex-direction: column; gap: 4px; overflow-y: auto;
  transform: translateX(102%); transition: transform .35s cubic-bezier(.2, .8, .2, 1); visibility: hidden;
}
.menu.open { transform: none; visibility: visible; }
.menu a { color: var(--paper); text-decoration: none; font: italic 600 2rem/1.25 var(--display); }
.menu a:hover { text-decoration: underline; text-underline-offset: 6px; }
.menu small { font: .7rem var(--mono); letter-spacing: .14em; text-transform: uppercase; opacity: .6; margin-top: 18px; }
.menu .fine { margin-top: auto; padding-top: 26px; display: flex; flex-wrap: wrap; gap: 2px 20px; }   /* credits, legal notice and privacy: small, at the foot of the menu */
.menu .fine a { font: .7rem/1.6 var(--mono); letter-spacing: .14em; text-transform: uppercase; opacity: .75; min-height: 36px; display: inline-flex; align-items: center; }
/* the same two links at the foot of every page, in the small type of the page names; on the start page they sit in the lower corner, above the fade */
.legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 22px; max-width: 880px; margin: 64px auto 0; padding: 14px 0 34px; border-top: 1px solid var(--ink-soft); font: 500 .66rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.legal a { display: inline-flex; align-items: center; min-height: 40px; color: var(--ink-mid); text-decoration: none; }
.legal a:hover, .legal a:focus-visible { color: var(--ink); text-decoration: underline; text-underline-offset: .3em; }
.legal.corner { position: fixed; z-index: 6; left: var(--gl); bottom: calc(4px + env(safe-area-inset-bottom, 0px)); margin: 0; padding: 0; border: 0; gap: 0 16px; font-size: .6rem; }
.legal.corner a { opacity: .8; }
.room [id] { scroll-margin-top: 96px; }

/* Skull */
.hero { padding: calc(64px + env(safe-area-inset-top, 0px)) var(--gr) 24px var(--gl); display: grid; justify-items: center; }
.skull {
  position: relative; width: min(100%, 86vh, 900px); aspect-ratio: 1; max-width: 100%;
  -webkit-mask-image: radial-gradient(ellipse 50% 50%, #000 86%, transparent 100%);
          mask-image: radial-gradient(ellipse 50% 50%, #000 86%, transparent 100%);
}
@media (max-aspect-ratio: 4/5) {
  .hero { min-height: 100vh; min-height: 100svh; padding: 0; align-content: center; overflow-x: hidden; overflow-x: clip; }
  .skull { width: 114vw; max-width: none; justify-self: start; margin-left: -7vw; }   /* wider than the screen: centred by hand, Safari would start it at the left edge */
}
.tilt { position: absolute; inset: 0; will-change: transform; }
.skull.sway .tilt { animation: sway 9s ease-in-out infinite alternate; }
.skull.rest, .skull.rest * { animation-play-state: paused !important; }   /* left alone for a while: see site.js */
.skull.dive .tilt { animation: none; }
@keyframes sway { from { transform: perspective(1100px) rotateX(1.1deg) rotateY(-1.9deg); } to { transform: perspective(1100px) rotateX(-1.1deg) rotateY(1.9deg); } }
.skull img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; user-select: none; -webkit-user-drag: none; }
.skull .trip {
  position: absolute; left: 0; top: 0; width: 60%; aspect-ratio: 1; margin: -30% 0 0 -30%; border-radius: 50%; pointer-events: none;
  -webkit-backdrop-filter: hue-rotate(60deg) saturate(2.6) contrast(1.08); backdrop-filter: hue-rotate(60deg) saturate(2.6) contrast(1.08);
  -webkit-mask-image: radial-gradient(circle, #000 45%, transparent 70%); mask-image: radial-gradient(circle, #000 45%, transparent 70%);
  transform: translate3d(83.3%, 50%, 0) scale(0); will-change: transform, opacity; opacity: 0;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1), opacity .4s ease;
  animation: trip 7s steps(84) infinite;   /* twelve small colour steps a second: looks continuous, costs a tenth of a filter change per screen refresh */
}
.skull .trip.show { opacity: 1; }
.skull.tour .trip { transition: opacity 1.5s ease-in-out; }
.skull.follow .trip { transition: transform .16s ease-out, opacity .4s ease; }
.skull.full .trip { opacity: 1; width: 100%; margin: 0; border-radius: 0; -webkit-mask-image: none; mask-image: none; transform: none !important; transition: none; }
@keyframes trip {
  from { -webkit-backdrop-filter: hue-rotate(40deg) saturate(2.6) contrast(1.08); backdrop-filter: hue-rotate(40deg) saturate(2.6) contrast(1.08); }
  to { -webkit-backdrop-filter: hue-rotate(400deg) saturate(2.6) contrast(1.08); backdrop-filter: hue-rotate(400deg) saturate(2.6) contrast(1.08); }
}
.skull { touch-action: pan-y; }
.spot, .branch, .teide, .burger, .audio { touch-action: manipulation; }
.spot { position: absolute; display: block; border-radius: 50%; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.spot b {
  position: absolute; left: 50%; top: calc(50% + 14px); transform: translate(-50%, 4px); white-space: nowrap;
  font: 500 .68rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase;
  background: var(--ink-deep); color: var(--card); padding: 7px 10px 6px; border-radius: 2px;
  opacity: 0; transition: opacity 1.5s ease-in-out, transform 1.5s ease-in-out; pointer-events: none; z-index: 2;
}
.spot:hover b, .spot:focus-visible b { transition-duration: .25s; }
.spot:hover b, .spot:focus-visible b, .spot.lit b { opacity: 1; transform: translate(-50%, 0); }

/* Rooms */
main { padding-left: var(--gl); padding-right: var(--gr); padding-bottom: 96px; }
.room { max-width: 760px; margin: 0 auto; padding-block: 28px 8px; }
.room h2 { font: italic 600 clamp(2.4rem, 7vw, 3.6rem)/1 var(--display); margin: 0 0 14px; color: var(--ink); text-wrap: balance; }
.room p { margin: 0 0 12px; max-width: 62ch; }
/* Without script there is no header and no menu: this plain list of the pages takes their place (it sits in a <noscript>) */
.plain-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; padding: calc(14px + env(safe-area-inset-top, 0px)) var(--gr) 0 var(--gl); font: 500 .72rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.plain-nav a { display: inline-flex; align-items: center; min-height: 40px; color: var(--ink-deep); }
.tag { font: .7rem var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-mid); }

/* Dialogs that fill the window (the DJ page's photographs, the timeline's large view) */
dialog { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; }
dialog::backdrop { background: rgba(18, 38, 95, .93); }
.stage { height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 14px; padding: calc(18px + env(safe-area-inset-top, 0px)) var(--gr) calc(18px + env(safe-area-inset-bottom, 0px)) var(--gl); color: var(--card); }
.stage header, .stage footer { display: flex; justify-content: space-between; align-items: center; font: .72rem var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.stage header strong { font: italic 600 2rem/1 var(--display); letter-spacing: 0; text-transform: none; }
.stage button { font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--card); background: none; border: 1.5px solid var(--card); padding: 10px 16px; cursor: pointer; border-radius: 2px; }
.stage button:focus-visible { outline-color: var(--card); }
.slide { min-height: 0; display: grid; place-items: center; cursor: pointer; background: none; border: 0; padding: 0; width: 100%; }
.slide img { max-width: 100%; max-height: 100%; object-fit: contain; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .skull .trip { animation: none; transition: none; }
  .menu { transition: none; }
}

/* Sound switch: top right, beside the menu */
.bar .tools { display: flex; align-items: center; gap: 10px; margin: 0; }
.bar .tools .burger, .bar .tools .audio { border: 1.5px solid var(--ink); }   /* the blog has a .tools of its own (its search form); its rules stay out of the header */
/* Language switch: a round button like its neighbours. It names the other language and leads to this page in it (js/site.js) */
.lang { width: 46px; height: 46px; border: 1.5px solid var(--ink); border-radius: 50%; background: var(--card); display: grid; place-content: center; font: 500 .7rem/1 var(--mono); letter-spacing: .1em; text-indent: .1em; color: var(--ink); text-decoration: none; touch-action: manipulation; }
@media (max-width: 380px) { .bar .tools { gap: 7px; } .name { letter-spacing: .15em; } }
/* The page for a missing address carries both languages; js/lang.js picks one. Without script both are shown */
.picked[lang="de"] .alt[lang="en"], .picked[lang="en"] .alt[lang="de"] { display: none; }
.audio { width: 46px; height: 46px; border: 1.5px solid var(--ink); border-radius: 50%; background: var(--card); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 3px; position: relative; }
.audio i { width: 2px; height: 16px; border-radius: 1px; background: var(--ink); transform: scaleY(.18); transform-origin: 50% 50%; transition: transform .3s; }
.audio.playing i { animation: wave 1.1s ease-in-out infinite; }
.audio.playing i:nth-child(2) { animation-delay: -.25s; animation-duration: .9s; }
.audio.playing i:nth-child(3) { animation-delay: -.6s; animation-duration: 1.3s; }
.audio.playing i:nth-child(4) { animation-delay: -.4s; animation-duration: 1s; }
@keyframes wave { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
/* When the sound wakes up or is switched, the button says so for a moment */
.audio::before { content: attr(data-say); position: absolute; top: calc(100% + 8px); right: 0; white-space: nowrap; font: 500 .62rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--card); background: var(--ink-deep); padding: 6px 8px 5px; border-radius: 2px; opacity: 0; transform: translate3d(0, -4px, 0); transition: opacity .6s ease, transform .6s ease; pointer-events: none; }
.audio.say::before { opacity: 1; transform: none; }
.audio.say { box-shadow: 0 0 0 6px var(--ink-soft); transition: box-shadow .6s ease; }
.audio { transition: box-shadow 1.2s ease; }
.audio.open i { transform: scaleY(.62); } .audio.open i:nth-child(2), .audio.open i:nth-child(4) { transform: scaleY(.36); }   /* a page without the night sound: the button only says whether sound is allowed */
.audio.muted::after { content: ""; position: absolute; width: 24px; height: 1.5px; background: var(--ink); transform: rotate(-45deg); }

/* Inner pages */
.back { display: block; width: 84px; margin: 0 auto; }
.back img { width: 100%; height: auto; display: block; -webkit-mask-image: radial-gradient(ellipse 50% 50%, #000 80%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50%, #000 80%, transparent 100%); transition: transform .3s; }
.back:hover img { transform: scale(1.08) rotate(-3deg); }
.page { padding-top: calc(70px + env(safe-area-inset-top, 0px)); }
.room h1 { font: italic 600 clamp(2.8rem, 9vw, 4.6rem)/1 var(--display); margin: 6px 0 22px; color: var(--ink); text-wrap: balance; }
.room h2 { font-size: clamp(1.7rem, 5vw, 2.2rem); margin-top: 34px; }
.room ul { margin: 0 0 12px; padding-left: 1.1em; max-width: 62ch; }
.links { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px !important; }
.links a { display: inline-block; font: 500 .72rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--ink-deep); border: 1.5px solid var(--ink); padding: 12px 16px 11px; border-radius: 999px; background: var(--card); }
.links a:hover { background: var(--ink-deep); color: var(--card); }
.posts { list-style: none; padding: 0 !important; display: grid; gap: 22px; margin-top: 24px !important; }
.posts a { font: italic 600 1.6rem/1.2 var(--display); text-decoration: none; }
.posts a:hover { text-decoration: underline; text-underline-offset: 5px; }
.posts time { display: block; font: .68rem var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-mid); margin-bottom: 4px; }
.cols { columns: 2 220px; column-gap: 32px; }


/* Living details on the start page */
/* Film patches: short videos laid exactly over their part of the drawing, with feathered edges */
.film {
  position: absolute; object-fit: fill; pointer-events: none; opacity: 0; transition: opacity 1.2s;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9% 91%, transparent), linear-gradient(transparent, #000 9% 90%, transparent); -webkit-mask-composite: source-in;
          mask-image: linear-gradient(90deg, transparent, #000 9% 91%, transparent), linear-gradient(transparent, #000 9% 90%, transparent); mask-composite: intersect;
}
.film.on { opacity: 1; }
.skull img.skyplate { inset: auto; left: 28.516%; top: 8.301%; width: 42.969%; height: 32.227%; }
/* The flock: six swallows and a flying girl on one long closed flight path; positions come from site.js */
.flock { position: absolute; inset: 0; pointer-events: none; }
.flock span { position: absolute; left: 0; top: 0; }
.flock span { will-change: transform; }
.flock .bird { width: 2%; aspect-ratio: 1; margin: -1% 0 0 -1%; overflow: hidden; }
.flock .bird img { position: static; display: block; width: 800%; max-width: none; height: 100%; animation: flap 1.5s steps(8, jump-none) infinite alternate; }
@keyframes flap { to { transform: translate3d(-87.5%, 0, 0); } }
.flock .girl { width: 3.4%; aspect-ratio: 1; margin: -1.7% 0 0 -1.7%; }
.flock .girl img { position: static; display: block; width: 100%; height: 100%; }
.moonfilm { left: 29%; top: 20%; width: 27%; height: 20.25%; }
.treefilm { left: 57%; top: 27.5%; width: 16%; height: 12%; }
.crownfilm { left: 36%; top: .3%; width: 28%; height: 12%; }
.cityfilm { left: 51%; top: 37.5%; width: 22%; height: 16.5%; }
.waterfilm { left: 22%; top: 75.5%; width: 56%; height: 24%; }
.pathfilm { left: 40.039%; top: 61.035%; width: 18.066%; height: 24.097%; transition-duration: .5s; }
.pathfilm.leaving { transition-duration: 2.5s; }
/* the owl film is cut to the owl's outline, so the birds still pass behind it */
.owlfilm { position: absolute; left: -14.07%; top: -3.63%; width: 128.13%; height: 105.12%; object-fit: fill; opacity: 0; -webkit-mask: url(../assets/owl-mask.png) center / 100% 100% no-repeat; mask: url(../assets/owl-mask.png) center / 100% 100% no-repeat; }
.owl.filmed .owlfilm { opacity: 1; }
.owl.filmed img, .owl.filmed .lid { opacity: 0; }
.owl.filmed > div { animation-name: none; }
.owl.filmed.hoot > div { animation-name: hoot; }
.owl.filmed.away > div, .owl.filmed.back > div { animation-name: flyoff; }
.moonglow { position: absolute; left: 48.1%; top: 28.6%; width: 17%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, var(--glow) 0 34%, transparent 70%); mix-blend-mode: screen; animation: glow 5.5s ease-in-out infinite; pointer-events: none; }
@keyframes glow { 0%, 100% { opacity: .35; transform: translate(-50%, -50%) scale(.94); } 50% { opacity: .95; transform: translate(-50%, -50%) scale(1.08); } }
.stars { position: absolute; inset: 0; pointer-events: none; }
.stars i { position: absolute; width: .45%; aspect-ratio: 1; border-radius: 50%; background: var(--glow); box-shadow: 0 0 6px 1px var(--glow); animation: twinkle 3.4s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: .1; transform: scale(.6); } 50% { opacity: 1; transform: scale(1.15); } }
.clock { position: absolute; top: 46.44%; width: 1.08%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: var(--ink-deep); pointer-events: none; }
.clock i { position: absolute; left: 50%; bottom: 50%; width: 12%; margin-left: -6%; background: var(--card); border-radius: 1px; transform-origin: 50% 100%; transform: rotate(var(--a, 0deg)); }
.clock .h { height: 30%; } .clock .m { height: 44%; }
.owl { position: absolute; left: 45.166%; top: 13.135%; width: 14.062%; height: 22.852%; pointer-events: none; }
.owl > div { position: absolute; inset: 0; transform-origin: 55% 96%; animation: breathe 4.6s ease-in-out infinite; }
.owl img { position: static; width: 100%; height: 100%; }
@keyframes breathe { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.014, 1.02) rotate(.35deg); } }
.owl.hoot > div { animation: hoot .7s ease-out; }
@keyframes hoot { 0% { transform: scale(1); } 30% { transform: scale(1.05, 1.07) rotate(-1.2deg); } 100% { transform: scale(1); } }
.owl.peek > div { animation: peek 2.4s ease-in-out; }
@keyframes peek { 0%, 100% { transform: rotate(0); } 25%, 70% { transform: rotate(-3.2deg) translateX(-1.5%); } }
.lid { position: absolute; width: 11.5%; height: 7%; margin: -3.5% 0 0 -5.75%; border-radius: 50%; background: linear-gradient(var(--lid) 0 52%, var(--ink-deep) 52% 64%, var(--lid) 64%); transform: scaleY(0); transform-origin: 50% 0; transition: transform .09s ease-in; }
.owl.blink .lid { transform: scaleY(1); }
.city { position: absolute; inset: 0; pointer-events: none; }
.city > img { position: absolute; inset: auto; }
.teide, .pathway { position: absolute; display: block; }
.rider { position: absolute; left: 54.6%; top: 35.2%; width: 8%; pointer-events: none; opacity: 0; }
.rider img { position: static; width: 100%; height: auto; }
.rider.go { animation: ride 3.4s cubic-bezier(.45, .05, .6, 1) forwards; }
@keyframes ride {
  0% { opacity: 0; transform: translate(0, 0) scale(.5) rotate(-8deg); }
  12% { opacity: 1; }
  45% { transform: translate(42%, 30%) scale(.8) rotate(6deg); }
  70% { transform: translate(74%, 54%) scale(1) rotate(-5deg); }
  86% { opacity: 1; }
  100% { opacity: 0; transform: translate(104%, 74%) scale(1.08) rotate(4deg); }
}
.branch { position: absolute; display: block; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.branch::after { content: attr(data-say); position: absolute; left: 50%; top: calc(100% + 6px); transform: translate(-50%, 4px); white-space: nowrap; font: 500 .68rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; background: var(--ink-deep); color: var(--card); padding: 7px 10px 6px; border-radius: 2px; opacity: 0; transition: opacity .8s ease-in-out, transform .8s ease-in-out; pointer-events: none; z-index: 2; }
.branch.say::after { opacity: 1; transform: translate(-50%, 0); }
/* Shaken off its branch, the owl flies: one wing beat as a strip of eighteen pictures (assets/owl-fly.webp, made by scripts/owl-wings.py),
   fetched with the first shake. It gathers itself as the standing owl, then the flying one takes over; it comes home the other way
   round. The flying owl looks left, so leaving to the right it is mirrored. Should the strip not have arrived, the old flight below stays */
.owl .wing { position: absolute; left: 50%; top: 50%; width: 300%; aspect-ratio: 613 / 523; transform: translate(-53.3%, -55.1%) scaleX(-1); background: 0 0 / 1800% 100% no-repeat; opacity: 0; pointer-events: none; }
.owl.fly .wing { background-image: url(../assets/owl-fly.webp); }
.owl.fly.back .wing { transform: translate(-46.7%, -55.1%); }
.owl.fly.away > div, .owl.fly.filmed.away > div { animation: flyaway 2.3s cubic-bezier(.45, 0, .75, .55) forwards; }
.owl.fly.back > div, .owl.fly.filmed.back > div { animation: flyhome 2.4s cubic-bezier(.25, .45, .55, 1) both; }   /* its own keyframes: the same ones run backwards would not start again */
.owl.fly.away .wing { animation: wing-in 2.3s linear forwards; }
.owl.fly.back .wing { animation: wing-out 2.4s linear both; }
.owl.fly.away.beat .wing { animation: wing-in 2.3s linear forwards, wing-beat .9s steps(18) infinite; }
.owl.fly.back.beat .wing { animation: wing-out 2.4s linear both, wing-beat .9s steps(18) infinite; }
.owl.fly.away img, .owl.fly.away .owlfilm { animation: perch-out 2.3s linear forwards; }
.owl.fly.back img, .owl.fly.back .owlfilm { animation: perch-in 2.4s linear both; }
.owl.fly.away:not(.filmed) .owlfilm, .owl.fly.back:not(.filmed) .owlfilm, .owl.fly.filmed.away img, .owl.fly.filmed.back img { animation: none; }
.owl.fly.away .lid, .owl.fly.back .lid { opacity: 0; }
@keyframes flyaway {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  8% { transform: translate(0, 3%) scale(1.04, .94); }
  13% { transform: translate(2%, -4%) scale(1); }
  82% { opacity: 1; }
  100% { transform: translate(330%, -180%) scale(.5); opacity: 0; }
}
@keyframes flyhome {
  0% { transform: translate(330%, -180%) scale(.5); opacity: 0; }
  18% { opacity: 1; }
  87% { transform: translate(2%, -4%) scale(1); }
  92% { transform: translate(0, 3%) scale(1.04, .94); }
  100% { transform: translate(0, 0) scale(1); opacity: 1; }
}
@keyframes wing-in { 0%, 11% { opacity: 0; } 13%, 100% { opacity: 1; } }
@keyframes wing-out { 0%, 87% { opacity: 1; } 89%, 100% { opacity: 0; } }
@keyframes perch-in { 0%, 87% { opacity: 0; } 89%, 100% { opacity: 1; } }
@keyframes perch-out { 0%, 11% { opacity: 1; } 13%, 100% { opacity: 0; } }
@keyframes wing-beat { to { background-position-x: 105.8824%; } }
.owl.away > div { animation: flyoff 1.5s cubic-bezier(.5, 0, .9, .6) forwards; }
.owl.back > div { animation: flyoff 1.6s cubic-bezier(.1, .4, .5, 1) reverse both; }
@keyframes flyoff {
  0% { transform: translate(0, 0) scale(1) rotate(0); opacity: 1; }
  12% { transform: translate(0, 3%) scale(1.06, .92); }
  30% { transform: translate(25%, -30%) scale(.9, 1.05) rotate(12deg); }
  45% { transform: translate(70%, -60%) scale(1.05, .85) rotate(18deg); }
  60% { transform: translate(130%, -95%) scale(.8, .95) rotate(22deg); }
  75% { transform: translate(200%, -125%) scale(.75, .62) rotate(26deg); opacity: 1; }
  100% { transform: translate(330%, -180%) scale(.45) rotate(30deg); opacity: 0; }
}
.sprouts img { position: static; width: 100%; height: auto; }
.sprouts { position: absolute; inset: 0; pointer-events: none; }
.sprouts span { position: absolute; width: 5.2%; margin: -5% 0 0 -2.6%; transform-origin: 50% 100%; animation: sprout 7s ease-out forwards; }
@keyframes sprout {
  0% { transform: scale(0) rotate(-12deg); opacity: 1; }
  7% { transform: scale(1.18) rotate(4deg); }
  12% { transform: scale(1) rotate(0); }
  85% { transform: scale(1); opacity: 1; }
  100% { transform: scale(.9); opacity: 0; }
}
/* Dive: clicking a doorway flies into it before the next page opens */
.skull .hires { opacity: 0; pointer-events: none; }
.skull.dive { -webkit-mask-image: none; mask-image: none; z-index: 30; }
.skull.dive .tilt { transform: scale(var(--zoom, 7)); }   /* site.js animates the way there */
.skull.dive .hires.ready { opacity: 1; }
.skull.dive .tilt > img { -webkit-mask-image: radial-gradient(ellipse 50% 50%, #000 86%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50%, #000 86%, transparent 100%); }
.skull.dive .spot, .skull.dive .egg, .skull.dive .trip { opacity: 0; transition: opacity .2s; }
.veil { position: fixed; inset: 0; z-index: 40; background: var(--paper); opacity: 0; pointer-events: none; }
.veil.on { opacity: 1; transition: opacity calc(var(--dive, 1s) * .4) ease-in calc(var(--dive, 1s) * .6); }
.veil.hold { opacity: 1; }
.veil.lift { opacity: 0; transition: opacity .7s ease-out .1s; }
html.diving { overflow: hidden; }
.page { animation: arrive .7s ease-out both; }
@keyframes arrive { from { opacity: 0; transform: scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .audio.playing i { animation: none; transform: scaleY(.7); } .page { animation: none; } .city { transform: none; } .moonglow, .stars i, .owl > div { animation: none !important; } .tilt, .owl { transform: none; } }

/* Bio: a logbook. A chart stays beside the text and an ink line travels with the reader */
.bio-head { max-width: 760px; margin: 0 auto; padding-block: 22px 8px; text-align: center; }
.bio-head h1 { font: italic 600 clamp(2.6rem, 7.4vw, 4.4rem)/1 var(--display); margin: 8px 0 20px; color: var(--ink); text-wrap: balance; }
.bio-head .lede { margin: 0 auto; max-width: 56ch; font-size: 1.3rem; }
.voyage { max-width: 1240px; margin: 44px auto 0; }
.chart .map { position: relative; aspect-ratio: 1000 / 660; overflow: hidden; outline: 1px solid var(--ink-deep); outline-offset: -1px; }
/* the stage is what the camera moves: it glides to the leg being read and comes closer. Pins and line keep their size */
@property --z { syntax: "<number>"; inherits: true; initial-value: 1; }
.stage { position: absolute; inset: 0; transform-origin: 0 0; --z: 1; transition: transform 2.6s cubic-bezier(.45, 0, .2, 1), --z 2.6s cubic-bezier(.45, 0, .2, 1); will-change: transform; }
.stage > img, .stage > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.trail { fill: none; stroke: var(--ink-deep); stroke-width: calc(3.6px / var(--z)); stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
/* a swallow from the start page carries the ink line from city to city */
.carrier { position: absolute; left: 0; top: 0; width: 30px; height: 30px; margin: -15px 0 0 -15px; overflow: hidden; opacity: 0; transition: opacity .5s ease; pointer-events: none; will-change: transform; }
.carrier.up { opacity: 1; }
.carrier img { display: block; width: 800%; max-width: none; height: 100%; animation: flap .9s steps(8, jump-none) infinite alternate; }
/* the city of the moment blooms into colour, the way the skull does under the pointer */
.bloom { position: absolute; left: 0; top: 0; width: 30%; aspect-ratio: 1; margin: -15% 0 0 -15%; border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity 1.4s ease; transform: scale(calc(1 / var(--z)));
  -webkit-backdrop-filter: hue-rotate(60deg) saturate(2.6) contrast(1.08); backdrop-filter: hue-rotate(60deg) saturate(2.6) contrast(1.08);
  -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 68%); mask-image: radial-gradient(circle, #000 30%, transparent 68%); animation: trip 9s steps(108) infinite; }
.bloom.on { opacity: 1; }
html.rest .bloom, html.rest .heli, html.rest .carrier img { animation-play-state: paused; }
.pin { position: absolute; width: 0; height: 0; transform: scale(calc(1 / var(--z))); }
.pin::before { content: ""; position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; box-sizing: border-box; border: 1.5px solid var(--ink-deep); background: var(--paper); transition: background-color .5s ease; }
.pin::after { content: ""; position: absolute; left: -13px; top: -13px; width: 26px; height: 26px; border-radius: 50%; background: var(--ink-soft); opacity: 0; transform: scale(.4); transition: opacity .8s ease, transform .8s ease; }
.pin.seen::before { background: var(--ink-deep); }
.pin.now::after { opacity: 1; transform: none; }
.pin b { position: absolute; left: 11px; top: -22px; white-space: nowrap; font: 500 .6rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--card); background: var(--ink-deep); padding: 5px 7px 4px; border-radius: 2px; opacity: 0; transform: translate3d(0, 4px, 0); transition: opacity .7s ease, transform .7s ease; }
.pin.left b { top: 11px; left: 4px; } .pin.low b { left: auto; right: 10px; top: 10px; }
.pin.seen b { opacity: 1; transform: none; }
.plate { margin: 0; }
/* every engraving states its own proportions (--w, --h) and gets an explicit width, so no browser has to work the width out from a height limit */
.live { position: relative; display: block; max-width: 100%; aspect-ratio: var(--w) / var(--h); }
.live > img { position: absolute; inset: 0; }
.live > img, .kirche img { display: block; width: 100%; height: 100%; }
.live.soft { -webkit-mask-image: radial-gradient(ellipse 50% 50%, #000 58%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50%, #000 58%, transparent 100%); }
.reel { position: absolute; inset: 0; overflow: hidden; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; pointer-events: none; }
.reel video { position: absolute; display: block; object-fit: fill; opacity: 0; transition: opacity 1.2s ease; }
.reel video.on { opacity: 1; }
/* films of ink on white are drawn to a canvas with the white keyed out (bio.js); until one runs, its first frame stands in */
.live > canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; }
.live.on > canvas { opacity: 1; }
.live.on > .still { opacity: 0; transition: opacity 0s .15s; }
/* Munich: the two towers keep Munich time, and the helicopter of chapter one hovers beside them */
.live.scene { width: 100%; }
/* the skull at the end is a way home; the helicopter can be sent on a round */
.live.door img { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.live.door:hover img, .live.door:focus-visible img { transform: scale(1.04) rotate(-2deg); }
.flight { cursor: pointer; z-index: 3; -webkit-tap-highlight-color: transparent; background: none; border: 0; padding: 0; font: inherit; color: inherit; -webkit-appearance: none; appearance: none; }
/* what is hidden in the engravings can be reached by every means, and is still hidden: buttons without a face */
.secret { position: absolute; inset: 0; z-index: 2; display: block; background: none; border: 0; padding: 0; cursor: default; -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent; }
.flight:focus-visible, .secret:focus-visible, .leg .find:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 4px; }
/* the invitation the helicopter leaves behind, and the small messages while something hidden loads or fails */
.invite { position: absolute; left: 0; bottom: 3%; z-index: 4; margin: 0; max-width: 56%; opacity: 0; transform: translate3d(0, 6px, 0); transition: opacity .7s ease, transform .7s ease; }
.invite.on { opacity: 1; transform: none; }
.invite button { display: grid; gap: 5px; justify-items: start; text-align: left; background: none; border: 0; padding: 6px 0; min-height: 44px; cursor: pointer; color: var(--ink); touch-action: manipulation; }
.invite i { font: italic 600 1.05rem/1.15 var(--display); color: var(--ink-deep); }
.invite span { font: 500 .66rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; border-bottom: 1px solid; padding-bottom: 3px; }
.invite button:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 4px; }
.note { position: absolute; left: 50%; bottom: 6%; transform: translateX(-50%); z-index: 5; margin: 0; padding: 8px 12px; width: max-content; max-width: 94%; background: var(--card); border: 1.5px solid var(--ink-deep); border-radius: 4px; font: 500 .62rem/1.6 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-deep); text-align: center; }
.note button { font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--ink); background: none; border: 0; border-bottom: 1px solid; padding: 0; cursor: pointer; }
/* in mid-flight it can be caught (the second easter egg): the target is larger than the drawing, more so for fingers */
.flight.away::after { content: ""; position: absolute; inset: -30% -10%; }
@media (pointer: coarse) { .flight.away::after { inset: -70% -22%; } }
.kirche { position: absolute; right: 3%; bottom: 0; height: 100%; aspect-ratio: 246 / 439; }
.dial { position: absolute; top: 53.1%; width: 9%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: var(--ink-deep); }
.dial i { position: absolute; left: 50%; bottom: 50%; width: 12%; margin-left: -6%; background: var(--card); border-radius: 1px; transform-origin: 50% 100%; transform: rotate(var(--a, 0deg)); }
.dial .h { height: 30%; } .dial .m { height: 44%; }
.flight { position: absolute; left: 0; top: 16%; width: 59%; aspect-ratio: 640 / 252; opacity: 0; transform: translate3d(-46%, -8%, 0); transition: opacity 1.6s ease, transform 3.4s cubic-bezier(.2, .7, .2, 1); }
.flight.on, .flight.calm { opacity: 1; transform: none; }
.flight .still { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transition: opacity .6s ease; }
.flight.on .still { opacity: 0; }
.heli { position: relative; display: block; width: 100%; height: 100%; animation: hover 7s ease-in-out infinite alternate; }
@keyframes hover { from { transform: translate3d(-2%, -2.5%, 0) rotate(-1.2deg); } to { transform: translate3d(2.5%, 2%, 0) rotate(1deg); } }
.plate figcaption, .where { font: .68rem/1.4 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-mid); }
.log { position: relative; }
.leg { position: relative; isolation: isolate; padding-block: 8px 30px; }
.leg[id] { scroll-margin-top: 96px; }   /* a chapter that is linked from elsewhere (the making-of) arrives below the header */
.leg::before { content: attr(data-n); position: absolute; z-index: -1; right: 0; top: -.08em; font: 500 clamp(7rem, 22vw, 12.5rem)/.8 var(--display); color: rgba(31, 63, 151, .1); pointer-events: none; }
.leg h2 { font: italic 600 clamp(1.9rem, 5.4vw, 2.7rem)/1.05 var(--display); margin: 6px 0 16px; color: var(--ink); text-wrap: balance; max-width: 16ch; }
.leg p { margin: 0 0 14px; max-width: 58ch; }
.leg .k { font-style: normal; background: linear-gradient(var(--ink), var(--ink)) 0 100% / 100% 1px no-repeat; padding-bottom: 1px; }
.leg .find { float: right; width: min(34%, 150px); height: auto; margin: 2px 0 6px 16px; shape-outside: margin-box; transform: rotate(4deg); transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.leg:hover .find, .leg .find.carve { transform: translate3d(-10px, 8px, 0) rotate(-5deg); }
.leg .find { cursor: pointer; -webkit-tap-highlight-color: transparent; background: none; border: 0; padding: 0; -webkit-appearance: none; appearance: none; }
.leg .find img { display: block; width: 100%; height: auto; }
.powder { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
/* while the helicopter is out on its round the page must not grow sideways */
html.flying { overflow-x: hidden; }
html.flying body { overflow-x: clip; }
.leg .aside { font: .7rem var(--mono); letter-spacing: .18em; text-transform: uppercase; }
.leg .links { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font: .72rem var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.mark { display: inline-block; width: 0; height: 1em; vertical-align: top; }
@supports (animation-timeline: view()) {
  .leg::before { animation: drift linear both; animation-timeline: view(); }
  @keyframes drift { from { transform: translate3d(0, 70px, 0); } to { transform: translate3d(0, -70px, 0); } }
}
@media (min-width: 900px) {
  .voyage { display: grid; grid-template-columns: minmax(0, 45fr) minmax(0, 55fr); gap: clamp(32px, 5vw, 76px); align-items: start; }
  .chart { position: sticky; top: calc(82px + env(safe-area-inset-top, 0px)); height: calc(100vh - 106px); height: calc(100dvh - 106px); display: flex; flex-direction: column; gap: 18px; }
  .chart .map { flex: none; }
  .plates { position: relative; flex: 1; min-height: 0; }
  .plates .plate { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; opacity: 0; transform: translate3d(0, 10px, 0) scale(.98); transition: opacity .9s ease, transform .9s ease; }
  .plates .plate { pointer-events: none; }
  .plates .plate.on { opacity: 1; transform: none; transition-delay: .5s; pointer-events: auto; }
  .chart { z-index: 3; }
  .plates { container-type: size; }
  .plates .plate .live { flex: none; width: min(100cqw, calc((100cqh - 34px) * var(--w) / var(--h)), calc(var(--w) * 1.3px)); }
  .log .plate, .thread { display: none; }
  .leg { min-height: 62vh; padding-block: 6vh 10vh; }
  .leg:last-child { min-height: 78vh; }
}
@media (max-width: 899px) {
  .chart { margin: 0 auto 34px; max-width: 620px; }
  .plates { display: none; }
  .log { padding-left: 26px; max-width: 620px; margin: 0 auto; }
  .log::before, .thread { content: ""; position: absolute; left: 4px; top: 0; bottom: 0; width: 1.5px; background: var(--ink-soft); }
  .thread { background: var(--ink-deep); transform-origin: 50% 0; transform: scale3d(1, 0, 1); will-change: transform; }
  .leg > .where::before { content: ""; position: absolute; left: -26px; top: 11px; width: 10px; height: 10px; box-sizing: border-box; border-radius: 50%; border: 1.5px solid var(--ink-deep); background: var(--paper); transition: background-color .5s ease; }
  .leg.seen > .where::before { background: var(--ink-deep); }
  .leg { padding-block: 4px 44px; }
  .log .plate { margin: 12px 0 10px; }
  .log .plate .live { width: min(100%, calc(var(--cap, 210px) * var(--w) / var(--h))); }
  .log .plate[data-plate="moscow"] .live { --cap: 270px; }
  .log .plate[data-plate="home"] .live { --cap: 250px; }
  .log .plate[data-plate="now"] .live { --cap: 300px; }
  .stage { transform: none !important; --z: 1 !important; }
  .log .plate figcaption { display: none; }
  .log .plate[data-plate="moscow"] { margin-top: 18px; }
  .log .plate[data-plate="now"] { margin-top: 30px; }
  .log .plate[data-plate="now"] figcaption { display: block; margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) { .invite { transition: none; } .leg::before { animation: none; } .leg:hover .find { transform: rotate(4deg); } .stage { transform: none !important; --z: 1 !important; } .bloom, .heli { animation: none !important; } }

/* The hidden game. On the skull only an unmarked spot on the left cheekbone leads here */
.egg { position: absolute; display: block; border-radius: 50%; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#about { top: 0; left: 0; }   /* read by screen readers and search engines only; it must not add a pixel of scrolling under the skull */
.arcade {
  position: fixed; inset: 0; z-index: 6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: calc(64px + env(safe-area-inset-top, 0px)) var(--gr) calc(14px + env(safe-area-inset-bottom, 0px)) var(--gl);
  animation: arrive .7s ease-out both;
}
.arcade canvas {
  display: block; flex: none; image-rendering: pixelated; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  background: rgba(230, 232, 229, .5); outline: 1px solid var(--ink); outline-offset: 4px;
}
.name.home { display: inline-flex; align-items: center; height: 46px; padding: 0 16px; border: 1.5px solid var(--ink); border-radius: 23px; background: var(--card); color: var(--ink); letter-spacing: .12em; touch-action: manipulation; }
.keys { margin: 0; font: .66rem/1.5 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mid); text-align: center; }
.keys button { font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--ink); background: none; border: 0; border-bottom: 1px solid; padding: 0; cursor: pointer; }
.keys a { color: var(--ink); text-decoration: none; border-bottom: 1px solid; }

/* Reduced motion: everything rests */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .skull .trip, .skull.sway .tilt { animation: none !important; }
  .sprouts span { animation: none !important; }
}
