/* Mr Sauber. Three colours, measured by area: 60 % light, 30 % navy, 10 % gold. Two typefaces, both served from here. */
@font-face { font-family: "Zodiak"; src: url("../fonts/zodiak-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("../fonts/switzer-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("../fonts/switzer-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --bg: #F7F9FB; --navy: #0D3B66; --gold: #E5A93B;
  --pad: clamp(20px, 4.2vw, 64px);
  --logo-w: clamp(160px, 14.5vw, 224px);
  --out: cubic-bezier(.16, .84, .24, 1);
  --display: "Zodiak", "Iowan Old Style", Georgia, serif;
  --sans: "Switzer", "Segoe UI", system-ui, sans-serif;
  --fs: clamp(58px, 10.4vw, 190px);                 /* headline size: "Nichts als" fills about 58 % of the width */
  --floor: clamp(210px, 31svh, 350px);              /* the navy floor of the first section */
}
* { box-sizing: border-box; }
html, body { margin: 0; }
html { scrollbar-gutter: stable; }
/* On a touch screen the water invites a finger across the page, and a sideways drag that starts near the edge was taken
   for the browser's swipe back (measured: the site was left). The site never scrolls sideways. (A touchpad's two-finger
   swipe back stays: it draws no water.) */
@media (hover: none), (pointer: coarse) { html { overscroll-behavior-x: none; } }
html.is-locked { overflow: hidden; }            /* nothing scrolls while the opening is still being drawn */
html.is-held { overflow: hidden; }              /* ... nor while the paper is on screen, or a thrown house waits for its picture (main.js) */
body { background: var(--bg); color: var(--navy); font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }   /* text on the page is not selectable (the script also blocks copying) */
input, textarea, [contenteditable] { -webkit-user-select: text; user-select: text; }
a { color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* focus rings: navy on the light colour (gold there is 1.98:1, under the 3:1 a ring needs), gold on navy (5.49:1) */
:focus-visible { outline: 2px solid var(--navy); outline-offset: 6px; }
.floor :focus-visible, .room--dark :focus-visible, body.logo-dark .brand-slot:focus-visible, body.menu-dark .menu:focus-visible { outline-color: var(--gold); }
/* the first Tab stop: past the journey, straight to the real site (main.js) */
.skip { position: fixed; left: var(--pad); top: 12px; z-index: 70; padding: 12px 18px; border-radius: 12px; background: var(--navy); color: var(--bg); font: 600 12.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; transform: translate3d(0, -160%, 0); }
.skip:focus { transform: none; }
body.is-landing .skip { display: none; }

/* ---------- header ---------- */
.top { position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; justify-content: space-between; align-items: flex-start; padding: 14px 0 0 var(--pad); pointer-events: none; }
.top > * { pointer-events: auto; }
.brand-slot { display: block; width: var(--logo-w); aspect-ratio: 1429 / 810; }
.brand { width: 100%; }
/* the signature is written large in the middle of the screen, then glides into the slot above */
.brand.is-intro { position: fixed; z-index: 30; left: 50%; top: 46%; width: min(66vw, 940px); margin: calc(min(66vw, 940px) / -3.53) 0 0 calc(min(66vw, 940px) / -2); transform-origin: 0 0; pointer-events: none; }
.menu { display: flex; align-items: center; gap: 14px; height: 58px; padding: 0 26px 0 30px; margin: -14px 0 0; border: 0; border-radius: 0 0 0 22px; background: var(--navy); color: var(--bg); font: 600 12.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; cursor: pointer; }
/* the header stays put while sections pass behind it: over a dark section the signature and the menu tab turn light */
.ms-ink { fill: var(--logo-ink, #0D3B66); transition: fill .3s; }
body.logo-dark { --logo-ink: #F7F9FB; }
.menu[data-pop] { transition: background-color .3s, color .3s, opacity .7s var(--out); }
body.menu-dark .menu { background: var(--bg); color: var(--navy); }
.menu__bars { display: grid; gap: 6px; width: 26px; }
.menu__bars i { display: block; height: 2px; background: var(--gold); border-radius: 2px; transition: transform .5s var(--out); transform-origin: 100% 50%; }
.menu__bars i:last-child { transform: scaleX(.62); }
.menu:hover .menu__bars i:first-child { transform: scaleX(.62); }
.menu:hover .menu__bars i:last-child { transform: none; }

/* a label that rolls on hover: the second copy comes from an attribute, so it is read out once */
.roll { display: inline-block; overflow: hidden; height: 1.25em; line-height: 1.25; vertical-align: top; }
.roll > span { display: block; position: relative; transition: transform .55s var(--out); }
.roll > span::after { content: attr(data-t); position: absolute; left: 0; top: 100%; }
a:hover .roll > span, button:hover .roll > span, a:focus-visible .roll > span, button:focus-visible .roll > span { transform: translate3d(0, -100%, 0); }

/* ---------- the house. The site is one house seen from the front; its four windows are the sections. The house is
   drawn on a canvas that fills the screen (#house). Every section (.room) is exactly one screen in size and is placed,
   scaled, into its window pane; when the camera stands at a window, that section fills the screen at full size.
   Scrolling only moves the camera (.track is the length of its journey). ---------- */
#house { position: fixed; inset: 0; z-index: 1; display: block; width: 100%; height: 100%; pointer-events: none; }
.world { position: fixed; inset: 0; z-index: 2; overflow: hidden; }
.room { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: hidden; transform-origin: 0 0; will-change: transform; }   /* exactly one screen, whatever the screen is */
.track { pointer-events: none; }

/* ---------- first section (first window): a light wall, a navy floor, and the horizon between them ---------- */
.hero { display: grid; grid-template-rows: minmax(0, 1fr) var(--floor); background: var(--bg); }
.wall { position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: calc(var(--logo-w) / 1.764 + 26px) var(--pad) 0; min-width: 0; }
.kicker { margin: 0 0 clamp(10px, 2svh, 26px); display: flex; align-items: center; gap: 14px; font: 600 12px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; }
.kicker::before { content: ""; width: 44px; height: 2px; background: var(--gold); }

/* headline. Two colours, one edge between them: the navy letters are part of the navy floor and fill up out of it,
   the light letters are part of the light wall and fill down out of it. Nothing of them shows before they fill.
   Each line is cut exactly at the horizon (2 px of overlap on the navy side, so no hairline shows). */
.line { position: relative; margin: 0; font: 400 var(--fs)/.9 var(--display); letter-spacing: -.035em; white-space: nowrap; width: max-content; }
.l1 { --sink: .1em; color: var(--navy); transform: translate3d(0, var(--sink), 0); clip-path: inset(-3em -3em calc(var(--sink) - 2px) -3em); }
.l2 { --hang: .11em; color: var(--bg); margin-top: calc(var(--hang) * -1); clip-path: inset(var(--hang) -3em -3em -3em); z-index: 1; }
.txt { visibility: hidden; }                    /* the finished line: shown once every letter is full */
.is-clean .txt { visibility: visible; }
/* While filling, every letter has its own window (.slice) onto the line, and each window's edge moves and sloshes
   on its own schedule, like liquid finding its level. The script builds them from the measured letter positions. */
.slice { position: absolute; overflow: hidden; transform-origin: 0 0; visibility: hidden; will-change: transform; }
.slice > span { display: block; will-change: transform; }
.l1 .slice { top: -.16em; bottom: -.6em; }
.l1 .slice > span { padding-top: .16em; }
.l2 .slice { top: -.6em; bottom: -.16em; }
.l2 .slice > span { padding-top: .6em; }

/* the sponge is in front of everything and belongs to no window: when the camera pulls back it comes out with it */
.stage { position: fixed; left: 43%; right: 0; top: clamp(56px, 8svh, 100px); bottom: calc(var(--floor) - 7svh); z-index: 25; pointer-events: none; transform-origin: 50% 50%; will-change: transform; }
#sponge { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.shadow { opacity: 0; position: absolute; left: 20%; right: 16%; bottom: 1svh; height: 7.5svh; background: radial-gradient(closest-side, rgba(2, 16, 34, .6), rgba(2, 16, 34, 0)); }

.floor { position: relative; padding: 0 var(--pad); display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 31%) auto; column-gap: clamp(24px, 4.5vw, 84px); align-items: start; color: var(--bg); }
/* the floor's navy sits in a window (.fl) whose right edge is the wipe line; it reaches a little further left than
   the floor, because a leaning window would otherwise cut the corner. Kept small: it is a layer while the wipe runs. */
.fl { position: absolute; top: 0; bottom: 0; right: 0; left: -120px; overflow: hidden; transform-origin: 0 0; visibility: hidden; }
.fl > * { display: block; height: 100%; padding: 0 0 0 120px; background: var(--navy) content-box; transform-origin: 0 0; }
.is-wiping .fl, .is-wiping .fl > * { will-change: transform; }
.is-clean .fl { visibility: visible; overflow: visible; transform: none !important; }
.is-clean .fl > * { transform: none !important; }
.copy { position: relative; z-index: 1; padding-top: clamp(22px, 4.4svh, 52px); }
.lede { margin: 0; font: 400 clamp(15.5px, 1.2vw, 18px)/1.58 var(--sans); color: rgba(247, 249, 251, .84); max-width: 30em; text-wrap: pretty; }

/* ---------- the button is a bar of soap. The label is stamped into it in capitals, the way a good soap carries its
   name. It is slippery: it slides a little under the pointer, shines once, and foams. ---------- */
.soap { position: relative; display: inline-block; margin-top: clamp(18px, 3svh, 30px); color: var(--navy); text-decoration: none; -webkit-tap-highlight-color: transparent; --foam: var(--bg); }
.soap__bar { position: relative; overflow: hidden; display: grid; place-items: center; height: 70px; padding: 0 46px; border-radius: 27px / 31px;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--bg) 40%, #E1E8F0 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .95), inset 0 -6px 9px rgba(13, 59, 102, .11), 0 12px 18px -9px rgba(2, 16, 34, .6);
  transform: translate3d(var(--sx, 0px), var(--sy, 0px), 0) rotate(var(--sr, 0deg)); transition: transform .8s cubic-bezier(.2, 1.5, .4, 1); }
.soap__bar::before { content: ""; position: absolute; inset: 7px 9px; border-radius: 21px / 24px; box-shadow: inset 0 1.5px 2.5px rgba(13, 59, 102, .24), 0 1px 0 rgba(255, 255, 255, .95); }   /* the rim pressed into the bar */
.soap__bar::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(255, 255, 255, 0) 36%, rgba(255, 255, 255, .85) 50%, rgba(255, 255, 255, 0) 64%); transform: translate3d(-115%, 0, 0); transition: transform 1s var(--out); }   /* wet shine */
.soap:hover .soap__bar::after, .soap:focus-visible .soap__bar::after { transform: translate3d(115%, 0, 0); }
.soap__label { position: relative; font: 400 15.5px/1 var(--display); letter-spacing: .21em; margin-right: -.21em; text-transform: uppercase; white-space: nowrap; color: rgba(13, 59, 102, .92); text-shadow: 0 1px 0 rgba(255, 255, 255, .95), 0 -.7px 0 rgba(13, 59, 102, .32); }   /* stamped */
.soap:active .soap__bar { transform: translate3d(var(--sx, 0px), calc(var(--sy, 0px) + 3px), 0) rotate(var(--sr, 0deg)) scale(.975); transition: transform .1s ease-out; }
/* soap bubbles: rings that rise from the bar while it is pointed at */
.foam { position: absolute; left: 7%; right: 7%; top: 8px; height: 0; pointer-events: none; }
.foam i { position: absolute; left: var(--x); top: 0; width: var(--s); height: var(--s); margin-left: calc(var(--s) / -2); border-radius: 50%; border: 1.5px solid var(--foam); background: radial-gradient(circle at 32% 30%, var(--foam) 0 16%, transparent 19%); opacity: 0; }
.soap:hover .foam i, .soap:focus-visible .foam i { animation: foam var(--d) cubic-bezier(.2, .6, .3, 1) var(--w) infinite; }
@keyframes foam { 0% { opacity: 0; transform: translate3d(0, 3px, 0) scale(.3); } 20% { opacity: .95; } 72% { opacity: .85; } 100% { opacity: 0; transform: translate3d(var(--dx), var(--dy), 0) scale(1.08); } }

/* scroll hint: a drop of water running down a line */
.scroll { position: relative; z-index: 1; align-self: end; padding-bottom: clamp(18px, 3.4svh, 40px); display: grid; justify-items: center; gap: 14px; font: 600 11px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: rgba(247, 249, 251, .82); }
.scroll__track { position: relative; width: 1px; height: 58px; background: rgba(247, 249, 251, .26); }
.scroll__drop { position: absolute; left: 50%; top: -3px; width: 9px; height: 13px; margin-left: -4.5px; fill: var(--gold); animation: drop 2.6s cubic-bezier(.55, 0, .85, .55) infinite; }
@keyframes drop { 0% { opacity: 0; transform: translate3d(0, -4px, 0) scale(.4); } 16% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); } 30% { transform: translate3d(0, 2px, 0) scale(1.05, 1); } 82% { opacity: 1; transform: translate3d(0, 44px, 0) scale(.92, 1.22); } 100% { opacity: 0; transform: translate3d(0, 54px, 0) scale(.7, 1.3); } }

/* the wipe line itself, and the things it leaves behind as it passes */
.wipe { position: absolute; z-index: 6; left: 0; top: 0; width: 3px; height: 100%; margin-left: -1.5px; background: var(--gold); box-shadow: 0 0 22px 3px rgba(229, 169, 59, .5); transform-origin: 0 0; opacity: 0; will-change: transform, opacity; pointer-events: none; }
[data-pop] { opacity: 0; transition: opacity .7s var(--out), transform 1s var(--out); }
[data-pop]:not(.is-pop) { visibility: hidden; }   /* no Tab stop before it is there; once there it is as visible as what holds it (never visible on its own) */
.kicker[data-pop], .copy [data-pop] { transform: translate3d(-16px, 0, 0); }
[data-pop].is-pop { opacity: 1; transform: none; }
.is-locked .scroll[data-pop].is-pop { opacity: 0; }   /* the invitation to scroll shows once scrolling works */

/* ---------- the other windows: one service each. Their drawing and words arrive when the camera does, and stay. ---------- */
.room--dark { background: var(--navy); color: var(--bg); }
.room--light { background: var(--bg); color: var(--navy); }
.room:not(.hero) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); align-items: center; gap: clamp(20px, 4vw, 84px); padding: calc(var(--logo-w) / 1.764 + 30px) var(--pad) clamp(30px, 7svh, 84px); }
.kicker--light { color: rgba(247, 249, 251, .88); }
.h2 { margin: 0; font: 400 clamp(44px, 6.6vw, 118px)/.95 var(--display); letter-spacing: -.032em; }
.room__text { margin: clamp(16px, 3svh, 30px) 0 0; max-width: 24em; font: 400 clamp(16px, 1.3vw, 19px)/1.58 var(--sans); opacity: .84; text-wrap: pretty; }
.room__art { display: block; width: 100%; height: auto; max-height: 64svh; }
.room__art path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--out); }   /* drawn once the room is clean, piece by piece (delays set in main.js) */
.room.is-clean .room__art path { stroke-dashoffset: 0; }
/* a room before the sponge has been over it: this canvas holds its mess and its dirt, the tidy room is underneath */
.room__dirt { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; transition: opacity .35s var(--out); }
/* a window shows what is behind it once its outline has been drawn */
.room:not(.hero) { opacity: 0; transition: opacity .45s var(--out); }
.room.is-framed { opacity: 1; }

/* words that belong to the whole house: they stand beside it while the camera shows all of it */
.card { position: fixed; z-index: 6; left: var(--pad); top: 46%; max-width: min(33vw, 500px); opacity: 0; visibility: hidden; transform: translate3d(0, calc(-50% + 18px), 0); transition: opacity .6s var(--out), transform .9s var(--out), visibility 0s linear .6s; pointer-events: none; }   /* its width is set from the house's place (main.js); hidden once faded: no Tab stop on what is not there */
.card.is-on { opacity: 1; visibility: visible; transform: translate3d(0, -50%, 0); pointer-events: auto; transition-delay: 0s; }
.card--end { top: 50%; }
.h2--card { font-size: clamp(32px, 4vw, 68px); line-height: 1; }
.card .soap { margin-top: 24px; }
.soap--on-light { --foam: var(--navy); }
.soap--on-light .soap__bar { box-shadow: inset 0 2px 0 rgba(255, 255, 255, .95), inset 0 -6px 9px rgba(13, 59, 102, .11), 0 12px 18px -9px rgba(13, 59, 102, .5), 0 0 0 1px rgba(13, 59, 102, .12); }

/* measurement read-out, only with ?perf */
.hud { position: fixed; left: 12px; bottom: 12px; z-index: 50; padding: 9px 12px; border-radius: 10px; background: rgba(2, 16, 34, .92); color: var(--bg); font: 12px/1.5 ui-monospace, Consolas, monospace; white-space: pre; }

/* Three layouts. Wide: two columns (the rules above). Narrow: one column - a phone held upright, a tablet, a small
   window. Low: a phone held sideways or any low, wide window - the two columns again, with everything smaller.
   main.js asks the same question (NARROW) to place the house, the words beside it and the sponge. */
@media (max-width: 900px) and (orientation: portrait), (max-width: 900px) and (min-height: 541px) {
  :root { --fs: 15.2vw; }
  .hero { grid-template-rows: minmax(0, 1fr) auto; }
  .stage { left: -4vw; right: -4vw; top: calc(var(--logo-w) / 1.764 + 18px); bottom: auto; height: 36svh; }
  .shadow { display: none; }
  .room:not(.hero) { grid-template-columns: 1fr; align-content: center; gap: 3svh; }
  .room__art { max-height: 30svh; }
  .card { right: var(--pad); max-width: none; top: auto; bottom: clamp(20px, 4svh, 40px); transform: translate3d(0, 18px, 0); }
  .card.is-on { transform: none; }
  .floor { grid-template-columns: 1fr; padding-bottom: clamp(28px, 6svh, 56px); }
  .copy { padding-top: 16px; }
  .soap__bar { padding: 0 34px; }
  .scroll, .menu .roll { display: none; }
}
@media (orientation: landscape) and (max-height: 540px) {
  :root { --logo-w: clamp(104px, 30svh, 150px); --fs: clamp(44px, min(10.4vw, 22svh), 120px); --floor: clamp(140px, 44svh, 238px); }
  .top { padding-top: 10px; }
  .menu { height: 44px; margin-top: -10px; padding: 0 18px 0 20px; border-radius: 0 0 0 18px; }
  .menu .roll, .scroll { display: none; }
  .brand.is-intro { width: min(66vw, 108svh); margin: calc(min(66vw, 108svh) / -3.53) 0 0 calc(min(66vw, 108svh) / -2); }
  .wall { padding-top: calc(var(--logo-w) / 1.764 + 14px); }
  .kicker { font-size: 10.5px; gap: 10px; margin-bottom: 8px; }
  .kicker::before { width: 30px; }
  .stage { top: 26px; bottom: calc(var(--floor) - 6svh); }
  .floor { grid-template-columns: minmax(0, 1fr) minmax(300px, 48%); column-gap: 24px; }
  .copy { padding-top: clamp(10px, 3.4svh, 18px); }
  .lede { font-size: 13px; line-height: 1.5; }
  .soap { margin-top: clamp(8px, 2.8svh, 14px); }
  .soap__bar { height: 48px; padding: 0 28px; border-radius: 19px / 22px; }
  .soap__bar::before { inset: 5px 7px; border-radius: 14px / 17px; }
  .soap__label { font-size: 12.5px; }
  .room:not(.hero) { padding: calc(var(--logo-w) / 1.764 + 12px) var(--pad) 14px; gap: 24px; }
  .h2 { font-size: clamp(32px, min(6.6vw, 15svh), 80px); }
  .room__text { margin-top: 10px; font-size: 14px; line-height: 1.5; }
  .room__art { max-height: 62svh; }
  .h2--card { font-size: clamp(26px, min(4vw, 9.5svh), 44px); }
  .card .soap { margin-top: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  [data-pop], .roll > span, .soap__bar, .soap__bar::after { transition: none; }
  .foam i, .scroll__drop { animation: none !important; }
}

/* ---------- the paper. Scrolled on past the last view, the house becomes a sheet of paper that is crumpled up and
   thrown away (main.js, "the paper"); the real site (.landing) lies behind it and then becomes the page. While the
   paper is on screen the house's own layers are hidden: the paper shows their picture. ---------- */
canvas.paper { position: fixed; inset: 0; z-index: 60; display: block; width: 100%; height: 100%; pointer-events: none; visibility: hidden; }
.landing { position: fixed; inset: 0; z-index: 0; overflow: hidden; visibility: hidden; background: var(--bg); }
body.is-tossing canvas.paper, body.is-tossing .landing, body.is-landing .landing { visibility: visible; }
/* straight to the real site (index.html's head script: ?landing, reduced motion, a tab that was on it): nothing of the
   journey is painted, and the landing page not before landing.js has hidden its entrances (.is-armed; .is-plain: it
   could not be loaded, the page shows as it is) */
html.is-direct :is(.brand.is-intro, #house, .world, .stage, .card, .top) { visibility: hidden; }
body.is-landing .landing:not(.is-armed):not(.is-plain) { visibility: hidden; }
/* while the sheet is on screen it carries the journey's header: the landing page's own comes when the page is its page
   (and on the way back, the ball pressed, it fades as the ball lifts: the sheet will carry the header again) */
.lp-top { transition: opacity .6s var(--out); }
body.is-tossing .lp-top { opacity: 0; transition: none; }
body.is-tossing.is-back .lp-top { transition: opacity .35s var(--out); }
/* The thrown paper at rest on the landing page: the paper's own picture of the ball and its shadow, in the page where the
   paper's canvas showed it (main.js, putBall), so it scrolls with the page. On whole px and never transformed: a canvas
   laid on a fraction of a pixel is resampled, and the swap would show. Only the ball itself takes the pointer (its
   ::after, a circle round it): pressed, it takes the visitor back to the journey. */
.ball { position: absolute; z-index: 5; display: block; margin: 0; padding: 0; border: 0; background: none; pointer-events: none; -webkit-tap-highlight-color: transparent; }
.ball canvas { display: block; width: 100%; height: 100%; }
.ball::after { content: ""; position: absolute; left: calc(var(--bx) - var(--br) - 4px); top: calc(var(--by) - var(--br) - 4px); width: calc(2 * var(--br) + 8px); height: calc(2 * var(--br) + 8px);
  border-radius: 50%; pointer-events: auto; cursor: pointer; touch-action: manipulation; }
.ball:focus { outline: none; }
.ball:focus-visible::after { outline: 2px solid var(--navy); outline-offset: 2px; }
/* the creases the sheet keeps, over the journey once it has been opened again (main.js, showCreases): over the page
   (house, rooms, words, header) but under the sponge, which is a thing lying on the sheet, not printed on it (the
   owner, 2026-11-23); the sheet carries them while it is on screen */
canvas.creases { position: fixed; inset: 0; z-index: 24; display: block; width: 100%; height: 100%; pointer-events: none; }
/* the opened sheet (the ball was pressed): it only lies there to be looked at. Nothing scrolls; a click anywhere, or
   this button, throws it away again (main.js, opened) */
html.is-opened { overflow: hidden; }
html.is-opened body { cursor: pointer; }
.again { position: fixed; z-index: 26; left: 50%; top: 20px; padding: 12px 20px 11px; border: 1px solid rgba(13, 59, 102, .3); border-radius: 999px; background: rgba(247, 249, 251, .94); color: var(--navy);
  font: 600 11.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; white-space: nowrap; cursor: pointer; opacity: 0; visibility: hidden; transform: translate3d(-50%, -10px, 0);
  transition: opacity .5s var(--out), transform .7s var(--out), visibility 0s linear .5s; }
html.is-opened .again { opacity: 1; visibility: visible; transform: translate3d(-50%, 0, 0); transition-delay: .6s, .6s, 0s; }
body:is(.is-tossing, .is-landing) .again { visibility: hidden; }
@media (max-width: 900px) and (orientation: portrait), (max-width: 900px) and (min-height: 541px) { .again { top: auto; bottom: max(8px, env(safe-area-inset-bottom)); padding: 9px 16px 8px; font-size: 10.5px; } }
body:is(.is-tossing, .is-landing) canvas.creases { visibility: hidden; }
body.is-landing .landing { position: relative; inset: auto; z-index: auto; overflow: visible; }
body.is-tossing :is(#house, .stage, .card, .top), body.is-landing :is(#house, .stage, .card, .top) { visibility: hidden; }
body.is-tossing .world { opacity: 0; }                              /* the rooms set their own visibility (main.js), so the world is faded, not hidden */
body.is-landing :is(.world, .track) { display: none; }              /* away for good while the landing page is the page; comeBack() shows them again before laying out */
/* resting on a view of the whole house, the windows are drawn again at the size they are shown (main.js, showJourney) */
.world.is-still .room { will-change: auto; }
/* The water over the landing page (main.js, "the water"): under its header (.lp-top, z-index 40), which stays dry, over all
   else of the page. Its canvas is one screen; main.js moves it, with each picture drawn on it, to the scroll position that
   picture was drawn at, so the page carries it as it scrolls. The box lies over the whole page and clips it there (the
   canvas never makes the page longer). The water shows itself only where there is water (its module hides the canvas when
   all is dry); the wet page, a copy of the landing page, has none. */
.water { position: absolute; inset: 0; z-index: 30; overflow: clip; pointer-events: none; }
.water canvas { position: absolute; left: 0; top: 0; display: block; width: 100%; height: 100vh; pointer-events: none; will-change: transform; }
/* behind the paper (and the journey) the landing page is a fixed box one screen tall that scrolls itself: there the box
   is that screen, and the canvas, where the page has it, is clipped by the landing page alone */
body:not(.is-landing) .water { overflow: visible; }
.landing.wet .water { display: none; }
/* The squeegee (main.js, squeegee.js: the hero's exit) lies in a box of its own over the water (its inline style: over the
   header too, z-index 41), its canvas only as large as the tool and its shadow. The wet page's copy has none; and a
   picture of it left from a visit of the landing page that has ended (the ball pressed mid-stroke) never shows behind the
   next throw's paper: hidden until the squeegee is driven again (main.js, sqStale). */
.landing.wet .squeegee { display: none; }
.squeegee.is-stale { visibility: hidden; }

/* ---------- the veil: the page's own light colour over everything. A reload that comes back to a place further in is put
   there under it (html.is-resume, from the first paint), a jump within the journey happens under it (.is-veiled); then it
   fades away (main.js, unveil / veil). ---------- */
body::after { content: ""; position: fixed; inset: 0; z-index: 90; background: var(--bg); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .45s var(--out), visibility 0s linear .45s; }
html.is-resume body::after { opacity: 1; visibility: visible; transition: none; }
html.is-veiled body::after { opacity: 1; visibility: visible; transition: opacity .24s cubic-bezier(.45, 0, .55, 1); }
@media (prefers-reduced-motion: reduce) { body::after { transition: visibility 0s linear .2s; } }

/* ---------- the legal pages (impressum.html, datenschutz.html): the site's header - the signature, and a navy tab where
   the menu is - over one column of text, the facts in a two-column list on hairlines. What is still missing is marked
   on a gold tint (navy text on it: gold is never text on the light colour). ---------- */
body.legal { min-height: 100svh; display: flex; flex-direction: column; }
.legal__top { display: flex; justify-content: space-between; align-items: flex-start; padding: 14px 0 0 var(--pad); }
.legal__logo { display: block; width: var(--logo-w); aspect-ratio: 1429 / 810; }
.legal__logo img { display: block; width: 100%; height: 100%; -webkit-user-drag: none; }
.legal__back { display: flex; align-items: center; gap: 14px; height: 58px; padding: 0 26px 0 24px; margin: -14px 0 0; border-radius: 0 0 0 22px; background: var(--navy); color: var(--bg); font: 600 12.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.legal__back svg { flex: none; width: 18px; height: 12px; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .55s var(--out); }
.legal__back:hover svg, .legal__back:focus-visible svg { transform: translate3d(-4px, 0, 0); }
.legal__main { flex: 1; width: 100%; max-width: 980px; margin: 0 auto; padding: clamp(48px, 10svh, 120px) var(--pad) clamp(64px, 12svh, 140px); }
.legal__h1 { margin: 0; font: 400 clamp(52px, 8vw, 118px)/.95 var(--display); letter-spacing: -.035em; }
.legal__lede { margin: clamp(18px, 3svh, 28px) 0 clamp(40px, 7svh, 72px); max-width: 34em; font: 400 clamp(16px, 1.3vw, 19px)/1.6 var(--sans); color: rgba(13, 59, 102, .84); text-wrap: pretty; }
.legal__list { display: grid; grid-template-columns: minmax(150px, 230px) minmax(0, 1fr); column-gap: clamp(24px, 5vw, 72px); margin: 0; border-bottom: 1px solid rgba(13, 59, 102, .14); }
.legal__list > div { display: contents; }
.legal__list dt, .legal__list dd { border-top: 1px solid rgba(13, 59, 102, .14); }
.legal__list dt { padding: 24px 0; font: 600 11.5px/1.75 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: rgba(13, 59, 102, .66); }
.legal__list dd { margin: 0; padding: 19px 0; font: 400 clamp(16px, 1.3vw, 19px)/1.65 var(--sans); text-wrap: pretty; }
.legal__list a, .legal__note a { text-decoration-thickness: 1px; text-underline-offset: 4px; }
.legal__todo { display: inline-block; padding: 1px 10px 2px; border-radius: 9px; background: rgba(229, 169, 59, .2); box-shadow: inset 0 0 0 1px rgba(229, 169, 59, .85); font-weight: 600; }
.legal__note { margin: clamp(40px, 7svh, 72px) 0 0; padding: 24px clamp(20px, 3vw, 32px) 26px; border-radius: 20px; background: rgba(229, 169, 59, .13); box-shadow: inset 0 0 0 1px rgba(229, 169, 59, .85); font: 400 clamp(15px, 1.2vw, 17px)/1.65 var(--sans); text-wrap: pretty; }
.legal__note strong { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px; font: 600 11.5px/1.6 var(--sans); letter-spacing: .22em; text-transform: uppercase; }
.legal__note strong::before { content: ""; flex: none; width: 9px; height: 9px; margin-top: calc(.8em - 4.5px); border-radius: 50%; background: var(--gold); }   /* on the first line's middle */
.legal__note p { margin: 0; }
.legal__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 32px; padding: 30px var(--pad) 34px; background: var(--navy); color: rgba(247, 249, 251, .78); font: 400 13.5px/1.5 var(--sans); }
.legal__foot ul { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0; padding: 0; list-style: none; }
.legal__foot p { margin: 0; }
.legal__foot a { color: var(--bg); font: 600 11.5px/1.5 var(--sans); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; }
.legal__foot a:hover, .legal__foot a[aria-current] { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 5px; }
.legal__foot :focus-visible { outline-color: var(--gold); }
@media (max-width: 640px) {
  .legal__back { height: 50px; padding: 0 18px 0 18px; border-radius: 0 0 0 18px; }
  .legal__list { grid-template-columns: 1fr; }
  .legal__list dt { padding: 20px 0 2px; }
  .legal__list dd { border-top: 0; padding: 0 0 20px; }
}
@media (orientation: landscape) and (max-height: 540px) {
  .legal__top { padding-top: 10px; }
  .legal__back { height: 44px; margin-top: -10px; border-radius: 0 0 0 18px; }
}
