/* ===========================================================
   Subpage layer (neu-sub, r9-unter). Loaded after erlebnis.css, which brings
   the fonts, the tokens, the topbar, the menu, the chips and the footer. The
   subpages stand on the home page's paper without its stage: the same
   type, the same ink, objects in 3D (paper3d: works and photo prints; the
   CSS books below), entrances both ways (sub.js).
   One type scale for subpages and shop (T1, round 9), seven steps, from
   the home page's sizes (chapter title, lead, body 22/19, meta 18/16):
     display  page titles              52 .. 160
     h1       section titles, quotes   38 .. 96
     h2       sub heads, card titles   28 .. 48
     lead     intros, small titles     22 .. 30
     body     running text             22 (19 phones)
     meta     captions, dates, buttons 18 (16 phones)
     label    small UI (counts, badges) 16
   Nothing below 16 px.
   =========================================================== */

html.sx-root {
  --fx-gut: 0px;
  --t-display: clamp(52px, min(8.4vw, 15svh), 160px);
  --t-h1: clamp(38px, min(5.2vw, 10svh), 96px);
  --t-h2: clamp(28px, min(2.8vw, 5.6svh), 48px);
  --t-lead: clamp(22px, 1.8vw, 30px);
  --t-body: 22px;
  --t-meta: 18px;
  --t-label: 16px;
  /* Round 9d (Paul): no accent colour. Colour belongs to her works and
     drawings; the UI is ink on paper. Labels and dates are soft ink, set
     apart by size, weight, spacing and a hairline (rubrics, below). */
  --sx-accent: var(--sx-soft);
  /* Round 10 (Paul: long text stood too far at the left edge): a wider
     margin, and on wide screens the page's content at most 1480 px wide,
     centred, so text and pictures sit together near the middle. */
  --sx-pad: max(clamp(20px, 6vw, 96px), calc((100vw - 1480px) / 2));
  --sx-top: calc(var(--fx-top-h) + 1px);
  --sx-meta: var(--t-meta);
  --sx-body: var(--t-body);
  --sx-lead: var(--t-lead);
  --sx-sub: var(--t-h2);
  --sx-ink: var(--fx-ink);
  --sx-soft: rgba(36, 35, 28, 0.72);
  --sx-col-gap: clamp(24px, 3.4vw, 64px);
  --sx-shadow: 0 1px 1px rgba(30, 26, 18, 0.1), 0 24px 44px -26px rgba(30, 26, 18, 0.55), 0 10px 18px -12px rgba(30, 26, 18, 0.25);
  --sx-ease: cubic-bezier(0.215, 0.61, 0.355, 1);
  background: var(--fx-paper);
  scroll-padding-top: calc(var(--sx-top) + 16px);
}
@media (max-width: 767px) {
  html.sx-root { --t-body: 19px; --t-meta: 16px; }
}
html.sx-root body {
  margin: 0;
  background: var(--fx-paper) !important;
  color: var(--sx-ink);
  font: 400 var(--sx-body)/1.55 var(--fx-serif);
}
html.sx-root .skip-link { position: absolute; left: -9999px; }
html.sx-root .skip-link:focus { left: 12px; top: 10px; z-index: 80; background: #000; color: var(--fx-light); padding: 8px 12px; border-radius: 6px; }

/* ---------- Topbar: solid paper, a hairline, the current section marked ---------- */
html.sx-root .fx-top::before { inset: 0; opacity: 1; background: var(--fx-paper); border-bottom: 1px solid var(--fx-line); }
html.sx-root .fx-top { color: var(--sx-ink); }
html.sx-root .fx-top__nav > ul > li > a[aria-current] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; }
html.sx-root .fx-top__nav ul ul a[aria-current] { text-decoration: underline; text-underline-offset: 4px; }
html.sx-root .fx-top .fx-pill { background: #000; color: var(--fx-light) !important; }
html.sx-root .fx-top .fx-pill[aria-current] { box-shadow: 0 0 0 2px var(--fx-paper), 0 0 0 3.5px #000; }
html.sx-root .fx-menu a[aria-current] { text-decoration: underline; text-underline-offset: 5px; }
html.sx-root .fx-menu > summary { color: var(--sx-ink); }

/* ---------- Main ---------- */
.sx {
  display: block;
  padding: var(--sx-top) var(--sx-pad) 0;
  overflow-x: clip;
}
.sx a { color: inherit; }
.sx img { display: block; max-width: 100%; height: auto; }
.sx p { margin: 0; }
.sx h1, .sx h2, .sx h3, .sx h4, .sx h5 { margin: 0; font-weight: 500; }

/* ---------- Page head ---------- */
.sx-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  gap: 40px var(--sx-col-gap);
  min-height: min(calc(78svh - var(--sx-top)), 720px);
  padding: clamp(40px, 9svh, 110px) 0 clamp(48px, 9svh, 110px);
  box-sizing: border-box;
}
.sx-head__text { display: flex; flex-direction: column; gap: 26px; max-width: 1180px; }
.sx-kicker { font: 500 var(--sx-meta)/1.25 var(--fx-sans); color: var(--sx-accent); }
.sx-title {
  font: 500 var(--t-display)/0.9 var(--fx-sans);
  letter-spacing: -0.045em;
  color: var(--sx-ink);
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: manual;
}
.sx-title--m { font-size: var(--t-h1); line-height: 0.94; letter-spacing: -0.04em; }
.sx-title--l { font-size: var(--t-h1); line-height: 0.98; letter-spacing: -0.035em; }
.sx-kern { margin-left: -0.06em; letter-spacing: 0; }
.sx-lead { max-width: 26em; font: 400 var(--sx-lead)/1.3 var(--fx-serif); color: var(--sx-ink); }
@media (min-width: 900px) {
  .sx-head--media { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .sx-head--media .sx-title, .sx-head--media .sx-title--m, .sx-head--media .sx-title--l { font-size: var(--t-h1); }
}
.sx-head__media { align-self: center; }
.sx-head__media .sx-pic img { max-height: calc(82svh - var(--sx-top)); width: auto; margin-left: auto; }

/* ---------- Pictures: sheets that float ---------- */
.sx-pic { margin: 0; perspective: 1400px; }
.sx-pic__sheet {
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  display: block;
  width: fit-content;
  max-width: 100%;
  transform: rotateX(var(--rx)) rotateY(var(--ry)) translateZ(0);
  transform-style: preserve-3d;
  transition: transform 0.6s var(--sx-ease), box-shadow 0.6s var(--sx-ease);
  box-shadow: var(--sx-shadow);
  background: var(--fx-paper-hi);
}
.sx-pic__sheet img { width: 100%; height: auto; aspect-ratio: var(--ar, auto); object-fit: contain; }
/* her works: the sheet has an edge, a little thickness */
.sx-pic--work .sx-pic__sheet { box-shadow: 1px 1px 0 #cfccbf, 2px 2px 0 #c4c1b3, var(--sx-shadow); }
.sx-pic__sheet.is-lift { transform: rotateX(var(--rx)) rotateY(var(--ry)) translateZ(36px); box-shadow: 1px 1px 0 #cfccbf, 0 40px 60px -30px rgba(30, 26, 18, 0.6), 0 16px 24px -14px rgba(30, 26, 18, 0.3); }
.sx-pic[data-sx-zoom] { cursor: zoom-in; }
.sx-pic[data-sx-zoom]:focus-visible { outline: none; }
.sx-pic[data-sx-zoom]:focus-visible .sx-pic__sheet { outline: 2px solid var(--sx-ink); outline-offset: 6px; }
.sx-pic figcaption { margin-top: 14px; font: 400 var(--sx-meta)/1.35 var(--fx-sans); color: var(--sx-soft); }
.sx-pic--work figcaption { color: var(--sx-ink); }
/* a slow float, each sheet on its own beat */
@keyframes sx-float {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  50% { translate: 0 -6px; rotate: 0.35deg; }
}
.sx-pic__sheet { animation: sx-float 9s ease-in-out infinite; }
.sx-pic:nth-of-type(2n) .sx-pic__sheet { animation-duration: 11s; animation-delay: -3s; }
.sx-pic:nth-of-type(3n) .sx-pic__sheet { animation-duration: 10s; animation-delay: -6s; }

/* ---------- Entrances (sub.js; nothing hidden before it runs) ----------
   3D as on the home page: a block comes up out of the depth, tipped back
   from its lower edge, and stands up into its place (from above it comes
   down, tipped the other way). Display titles unfold word by word like
   cards turning up. Pictures that paper3d draws ([data-3d]) arrive in the
   WebGL layer itself; their figure only brings its caption. */
html.sx-ready [data-sx-in] {
  transition: opacity 0.9s var(--fx-ease-in), transform 1.15s var(--fx-ease-in);
  transition-delay: var(--d, 0ms);
  transform-origin: 50% 0;
}
html.sx-ready [data-sx-in]:not(.is-in) { opacity: 0; transform: perspective(1100px) translate3d(0, 64px, -90px) rotateX(16deg); }
html.sx-ready [data-sx-in].is-above:not(.is-in) { transform-origin: 50% 100%; transform: perspective(1100px) translate3d(0, -64px, -90px) rotateX(-16deg); }
html.sx-ready [data-sx-in]:has([data-3d]), html.sx-ready [data-sx-in]:has(.sx-book) { opacity: 1 !important; transform: none !important; }
html.sx-ready [data-sx-in]:has([data-3d]) figcaption { transition: opacity 0.9s var(--fx-ease-in) 0.35s, translate 1s var(--fx-ease-in) 0.35s; }
html.sx-ready [data-sx-in]:has([data-3d]):not(.is-in) figcaption { opacity: 0; translate: 0 18px; }
/* display titles: words turn up out of the line (no mask, a glyph is never clipped) */
html.sx-ready [data-sx-in="words"] { opacity: 1 !important; transform: none !important; }
.sx-w { display: inline-block; vertical-align: top; perspective: 700px; }
.sx-w > span { display: inline-block; transform-origin: 50% 100%; transition: transform 1.1s var(--fx-ease-in), opacity 0.8s var(--fx-ease-in); transition-delay: calc(var(--i, 0) * 60ms); }
html.sx-ready [data-sx-in="words"]:not(.is-in) .sx-w > span { transform: translate3d(0, 0.5em, 0) rotateX(-75deg); opacity: 0; }
html.sx-ready [data-sx-in="words"].is-above:not(.is-in) .sx-w > span { transform-origin: 50% 0; transform: translate3d(0, -0.5em, 0) rotateX(75deg); opacity: 0; }

/* ---------- Page to page: the old page sinks back, the new one rises
   (cross-document view transitions, Safari 18.2+ / Chromium; elsewhere a
   normal load). The top bar stays put. ---------- */
@view-transition { navigation: auto; }
html.sx-root .fx-top { view-transition-name: sx-top; }
::view-transition-group(root) { animation-duration: 0.7s; }
::view-transition-old(root) { animation: sx-vt-out 0.45s cubic-bezier(0.5, 0, 0.75, 0) both; transform-origin: 50% 30%; }
::view-transition-new(root) { animation: sx-vt-in 0.75s var(--fx-ease-in) 0.12s both; transform-origin: 50% 0; }
@keyframes sx-vt-out { to { opacity: 0; transform: perspective(1400px) translate3d(0, -40px, -160px) rotateX(-7deg); } }
@keyframes sx-vt-in { from { opacity: 0; transform: perspective(1400px) translate3d(0, 70px, -120px) rotateX(9deg); } }

/* ---------- Text ---------- */
.sx-prose, .sx-text { max-width: 33em; }
.sx .sx-prose > * + *, .sx .sx-text > * + * { margin-top: 0.85em; }
.sx-prose p, .sx-text p, .sx-prose li, .sx-text li { font: 400 var(--sx-body)/1.55 var(--fx-serif); }
.sx-prose a, .sx-text a, .sx-note a, .sx-qa__a a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.sx-prose a:hover, .sx-text a:hover { text-decoration-thickness: 2px; }
.sx-sub, .sx-prose h2, .sx-text h2, .sx-prose h3, .sx-text h3 { font: 500 var(--sx-sub)/1.08 var(--fx-sans); letter-spacing: -0.02em; margin-top: 1.4em; }
.sx-prose > .sx-sub:first-child, .sx-text > h2:first-child { margin-top: 0; }
.sx-prose h4, .sx-text h4, .sx-prose h5, .sx-text h5, .sx-prose h6, .sx-text h6 { font: 500 var(--sx-body)/1.35 var(--fx-sans); }
.sx-quote, .sx-prose blockquote {
  margin: 1.2em 0;
  padding: 0;
  font: 400 var(--sx-lead)/1.3 var(--fx-serif);
}
.sx-prose ul, .sx-text ul { padding-left: 1.1em; }
.sx-prose strong, .sx-text strong { font-weight: 600; }
.sx-actions { margin-top: 1.4em; }
.sx-chip { font-size: var(--t-meta) !important; padding: 12px 16px 12px 18px !important; }

/* ---------- Post body: text at the left, the photos beside it ---------- */
.sx-body { padding-bottom: clamp(40px, 8svh, 100px); }
.sx-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; margin-bottom: clamp(48px, 9svh, 120px); }
@media (min-width: 900px) {
  .sx-row { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--sx-col-gap); align-items: start; }
  .sx-row--text { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .sx-row .sx-prose { max-width: 34em; }
  .sx-row:nth-child(2n) .sx-row__media { padding-top: 12svh; }
}
.sx-row__media { display: flex; flex-direction: column; gap: 44px; }
.sx-more > .sx-sub { margin: 0 0 clamp(32px, 5svh, 56px); }
/* text-only post: its one photo stays beside the whole text */
.sx-post .sx-head:not(.sx-head--media) { min-height: 0; }
.sx-body--aside { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.sx-body--aside .sx-aside { order: -1; }
@media (min-width: 900px) {
  .sx-body--aside { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--sx-col-gap); align-items: start; }
  .sx-body--aside .sx-aside { order: 0; position: sticky; top: calc(var(--sx-top) + 32px); }
  .sx-body--aside .sx-row { grid-template-columns: minmax(0, 1fr); }
  .sx-aside .sx-pic img { max-height: calc(100svh - var(--sx-top) - 140px); width: auto; }
}
.sx-row__media .sx-pic:nth-child(2n) { margin-left: 12%; }
.sx-row__media .sx-pic:nth-child(2n + 1):not(:only-child) { margin-right: 8%; }
.sx-prose .sx-pic--work { margin: 1.6em 0; max-width: min(100%, 520px); }
.sx-video { margin: 1.6em 0; }
.sx-video video { width: 100%; max-height: 80svh; background: var(--fx-paper-hi); box-shadow: var(--sx-shadow); }

/* the remaining photos: a calm masonry in three columns (sx-col, laid out by
   the script), one gutter across and down; the works stagger their middle column */
.sx-sheet, .sx-works { --sx-gutter: clamp(24px, 3vw, 48px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sx-gutter); align-items: start; }
.sx-sheet { padding-bottom: clamp(48px, 10svh, 120px); }
.sx-col { display: flex; flex-direction: column; gap: var(--sx-gutter, clamp(28px, 3.4vw, 56px)); }
.sx-works .sx-col:nth-child(2) { padding-top: 14svh; }
.sx-sheet .sx-pic__sheet, .sx-works .sx-pic__sheet { width: 100%; }
@media (max-width: 767px) {
  .sx-sheet, .sx-works { --sx-gutter: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sx-works .sx-col { display: contents; }
  .sx-works .sx-col:nth-child(n) { padding: 0; }

}

/* neighbours */
.sx-postnav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 28px var(--sx-col-gap);
  padding: clamp(40px, 7svh, 80px) 0;
  border-top: 1px solid var(--fx-line);
}
.sx-postnav__item { display: flex; flex-direction: column; gap: 10px; text-decoration: none; }
.sx-postnav__item--older { text-align: right; align-items: flex-end; }
.sx-postnav__dir { font: 500 var(--sx-meta)/1.2 var(--fx-sans); color: var(--sx-soft); }
.sx-postnav__title { font: 500 var(--t-lead)/1.1 var(--fx-sans); letter-spacing: -0.02em; max-width: 16em; text-wrap: balance; }
.sx-postnav__item:hover .sx-postnav__title { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.sx-postnav__all { align-self: center; }
@media (max-width: 767px) {
  .sx-postnav { grid-template-columns: 1fr 1fr; }
  .sx-postnav__all { grid-column: 1 / -1; grid-row: 2; justify-self: start; }
}

/* ---------- Journal archive ---------- */
.sx-archive .sx-head { min-height: 0; padding-bottom: clamp(32px, 6svh, 72px); }
/* the archive title sits on one line on wide screens, so no empty block beside it */
@media (min-width: 900px) { .sx-archive .sx-title { font-size: var(--t-display); } }
.sx-entries { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(64px, 10svh, 120px) var(--sx-col-gap); padding-bottom: clamp(60px, 12svh, 140px); }
.sx-entry__link { display: grid; gap: 22px; text-decoration: none; }
.sx-entry__media { display: block; perspective: 1400px; }
.sx-entry__media .sx-pic__sheet { width: 100%; }
.sx-entry__media img { width: 100%; }
.sx-entry__text { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.sx-entry__date { font: 500 var(--sx-meta)/1.2 var(--fx-sans); font-variant-numeric: tabular-nums; color: var(--sx-accent); }
.sx-entry__title { font: 500 var(--t-h2)/1.02 var(--fx-sans); letter-spacing: -0.03em; text-wrap: balance; }
.sx-entry__excerpt { font: 400 var(--t-body)/1.5 var(--fx-serif); max-width: 30em; }
.sx-entry .sx-chip { margin-top: 6px; }
.sx-entry__link:hover .sx-chip { background: #000; color: var(--fx-light) !important; }
.sx-entry__link:hover .sx-entry__title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
@media (min-width: 900px) {
  .sx-entries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sx-entry--lead { grid-column: 1 / -1; }
  .sx-entry--lead .sx-entry__link { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: var(--sx-col-gap); }
  .sx-entry--lead .sx-entry__title { font-size: var(--t-h1); line-height: 0.98; }
  .sx-entry--lead .sx-entry__excerpt { font-size: var(--sx-lead); line-height: 1.3; }
  /* the two columns stagger, as sheets laid out on a table */
  .sx-entry:not(.sx-entry--lead):nth-child(2n + 1) { margin-top: 22svh; }
  .sx-entry:not(.sx-entry--lead):nth-child(2n + 1) .sx-entry__link,
  .sx-entry:not(.sx-entry--lead):nth-child(2n) .sx-entry__link { padding: 0 4%; }
}
@media (min-width: 1280px) {
  .sx-entries { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .sx-entry--lead { grid-column: 1 / -1; }
  .sx-entry:not(.sx-entry--lead):nth-child(4n + 2) { grid-column: 1 / span 6; }
  .sx-entry:not(.sx-entry--lead):nth-child(4n + 3) { grid-column: 8 / span 5; }
  .sx-entry:not(.sx-entry--lead):nth-child(4n + 4) { grid-column: 2 / span 5; }
  .sx-entry:not(.sx-entry--lead):nth-child(4n + 5) { grid-column: 7 / span 6; }
  .sx-entry:not(.sx-entry--lead) .sx-entry__link { padding: 0; }
}

/* ---------- Questions ---------- */
.sx-faq .sx-body { display: grid; gap: clamp(40px, 7svh, 80px); }
.sx-qa { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.sx-qa__q { font: 500 var(--t-h2)/1.06 var(--fx-sans); letter-spacing: -0.025em; text-wrap: balance; }
.sx-qa__a p { font: 400 var(--sx-body)/1.55 var(--fx-serif); max-width: 34em; }
.sx-qa__a p + p { margin-top: 0.8em; }
.sx-note { font: 400 var(--sx-lead)/1.3 var(--fx-serif); max-width: 28em; }
@media (min-width: 900px) {
  .sx-qa { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--sx-col-gap); align-items: start; }
  .sx-note { margin-left: calc((100% - var(--sx-col-gap)) * 5 / 12 + var(--sx-col-gap)); }
}

/* ---------- Legal texts (verbatim, set for reading) ---------- */
.sx-legal .sx-head { min-height: 0; padding-bottom: 40px; }
.sx-legal .sx-body { max-width: 40em; margin-left: calc((100% - var(--sx-col-gap)) * 5 / 12 + var(--sx-col-gap)); }
@media (max-width: 899px) { .sx-legal .sx-body { margin-left: 0; } }
.sx-legal .sx-body h2 { font-size: var(--t-h2); margin-top: 1.6em; }
.sx-legal .sx-body h5 { margin: 0; }
/* Datenschutz: the subheading that the export had glued onto its section's
   h2 ("1. Datenschutz auf einen Blick" / "Allgemeine Hinweise") */
.sx-p-datenschutz .sx-text > h3 { font: 500 var(--t-lead)/1.2 var(--fx-sans); letter-spacing: -0.01em; }
@media (max-width: 899px) { .sx-p-datenschutz .sx-text > h2 + h3 { margin-top: 0.5em; } }
/* wide screens: each heading stands in the left column beside its text, so the
   left 5/12 of a long legal page is not an empty strip */
@media (min-width: 900px) {
  .sx-legal .sx-body { max-width: none; margin-left: 0; }
  .sx-legal .sx-block > .sx-text { max-width: none; }
  .sx-legal .sx-text, .sw-legal .sx-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--sx-col-gap); align-items: start; }
  .sx-legal .sx-text > *, .sw-legal .sx-body > * { grid-column: 2; max-width: 40em; }
  .sx-legal .sx-text > h2, .sw-legal .sx-body > h2 { grid-column: 1; max-width: 13em; }
  .sx-legal .sx-text > h2, .sx-legal .sx-text > h2 + *, .sw-legal .sx-body > h2, .sw-legal .sx-body > h2 + * { margin-top: 64px; }
  .sx-legal .sx-text > h2:first-child, .sx-legal .sx-text > h2:first-child + *, .sw-legal .sx-body > h2:first-child, .sw-legal .sx-body > h2:first-child + * { margin-top: 0; }
}

/* ---------- Generic sections (Elementor pages) ---------- */
.sx-block { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; margin-bottom: clamp(56px, 10svh, 120px); }
@media (min-width: 900px) {
  .sx-block { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--sx-col-gap); }
  .sx-block > .sx-sub { grid-column: 1; grid-row: 1 / span 4; position: sticky; top: calc(var(--sx-top) + 24px); align-self: start; margin: 0; }
  .sx-block > :not(.sx-sub) { grid-column: 2; }
  .sx-block:not(:has(> .sx-sub)) > *, .sx-block:has(> .sx-works) > * { grid-column: 1 / -1; }
  .sx-block:has(> .sx-works) > .sx-sub { position: static; grid-row: auto; }
  .sx-block:not(:has(> .sx-sub)) > .sx-text { max-width: 33em; }
}
.sx-block > .sx-pic img { max-height: 80svh; width: auto; }

/* ---------- Page end: her line, one button, her signature ---------- */
.sx-end {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 30px;
  align-items: end;
  padding: clamp(64px, 14svh, 160px) 0 clamp(48px, 9svh, 100px);
  border-top: 1px solid var(--fx-line);
}
.sx .sx-end__line { font: 500 var(--t-h1)/0.96 var(--fx-sans); letter-spacing: -0.04em; text-wrap: balance; max-width: 13em; }
@media (min-width: 900px) {
  .sx-end { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--sx-col-gap); }
  .sx-end__line { grid-row: 1 / span 2; }
  .sx-end__action { grid-column: 2; }
  .sx-sign { grid-column: 2; grid-row: 1; }
}
.sx-sign { margin: 0; color: var(--sx-ink); }
/* The slot her pen writes in (pen.js; .fx-sign rules in erlebnis.css):
   once per page load, left to right, then it stays. */
.sx-sign .sx-sign__ink { display: block; width: min(420px, 78vw); margin: 0 0 0 -5%; }
.sx-sign__by { display: block; margin-top: 10px; font: 500 var(--sx-meta)/1.3 var(--fx-sans); letter-spacing: 0.01em; color: var(--sx-ink); }

/* ---------- Footer ---------- */
html.sx-root .sw-footer { padding-left: var(--sx-pad); padding-right: var(--sx-pad); font-size: var(--t-meta); border-top: 1px solid var(--fx-line); }
html.sx-root .sw-footer__inner { align-items: baseline; }
html.sx-root .sw-footer ul { flex-wrap: wrap; gap: 8px 22px; }
html.sx-root .sx-lang { text-decoration: underline !important; text-underline-offset: 4px; }

/* ---------- Zoom (round 9f, K8) ----------
   Above the header, its own margin (sub.js places the object); the paper
   comes up behind the object as it flies out of the page. */
.sx-lightbox { position: fixed; inset: 0; z-index: 90; color: var(--sx-ink); cursor: zoom-out; overscroll-behavior: contain; -webkit-user-select: none; user-select: none; }
.sx-lightbox[hidden] { display: none; }
.sx-lightbox:focus { outline: none; }
.sx-lightbox::before { content: ""; position: absolute; inset: 0; background: var(--sx-zoom-paper, rgba(220, 219, 209, 0.97)); opacity: 0; transition: opacity 0.55s var(--sx-ease); }
.sx-lightbox.is-open::before { opacity: var(--pull, 1); }
.sx-lightbox__obj { position: absolute; left: 0; top: 0; width: 100px; transform-origin: 0 0; perspective: 1800px; }
.sx-lightbox .sx-lightbox__sway > * { width: 100%; margin: 0; }
/* fingers (r9-mobil-unter): pinch, pan, swipe; the page under it never moves */
.sx-lightbox { touch-action: none; }
.sx-lightbox__pinch { transform-origin: 50% 50%; transform-style: preserve-3d; }
.sx-lightbox[style*="--pull"]::before { transition: none; }
.sx-lightbox.is-free :is(.sx-lightbox__cap, .sx-lightbox__btn, .sx-lightbox__count) { opacity: 0 !important; transition: opacity 0.2s var(--sx-ease) !important; }
/* a slow sway while it rests, starting from and returning to its pose */
.sx-lightbox.is-still .sx-lightbox__sway { animation: sx-sway 16s ease-in-out infinite; }
@keyframes sx-sway {
  0%, 100% { transform: none; }
  25% { transform: rotateY(2deg) rotateX(-0.6deg); }
  75% { transform: rotateY(-2deg) rotateX(0.7deg); }
}
.sx-lightbox__cap { position: absolute; margin: 0; font: 400 var(--t-meta)/1.35 var(--fx-sans); text-align: center; opacity: 0; transition: opacity 0.3s var(--sx-ease); }
.sx-lightbox.is-open .sx-lightbox__cap { opacity: 1; transition: opacity 0.45s var(--sx-ease) 0.35s; }
.sx-lightbox__cap * { color: inherit; font: inherit; margin: 0; display: inline; }
.sx-lightbox__cap .sub-gallery__title, .sx-lightbox__cap .mal-item__title { display: block; font-weight: 500; }
.sx-lightbox__cap .sub-gallery__price::before { content: " · "; }
/* (the page's block price would start its own line with the dot) */
.sx-lightbox__cap .sub-gallery__price { display: inline; }
.sx-lightbox__btn, .sx-lightbox__close {
  position: absolute;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--fx-line);
  border-radius: 99px;
  background: var(--fx-paper-hi);
  color: inherit;
  cursor: pointer;
}
.sx-lightbox__btn, .sx-lightbox__close, .sx-lightbox__count { opacity: 0; transition: opacity 0.3s var(--sx-ease); }
.sx-lightbox.is-open :is(.sx-lightbox__btn, .sx-lightbox__close, .sx-lightbox__count) { opacity: 1; }
.sx-lightbox__btn svg, .sx-lightbox__close svg { width: 22px; height: 22px; }
.sx-lightbox__btn:hover, .sx-lightbox__close:hover { background: #fff; }
.sx-lightbox button:focus-visible { outline: 2px solid var(--sx-ink); outline-offset: 2px; }
.sx-lightbox__btn--prev { left: 20px; top: 50%; translate: 0 -50%; }
.sx-lightbox__btn--next { right: 20px; top: 50%; translate: 0 -50%; }
.sx-lightbox__close { right: 16px; top: 16px; }
.sx-lightbox__count { position: absolute; left: 24px; top: 30px; margin: 0; font: 500 var(--t-label)/1 var(--fx-sans); font-variant-numeric: tabular-nums; }
@media (max-width: 767px) {
  .sx-lightbox__btn { top: auto; bottom: 18px; translate: none; }
  .sx-lightbox__btn--prev { left: calc(50% - 60px); }
  .sx-lightbox__btn--next { right: calc(50% - 60px); }
}
/* a work or photo as the sheet it is in the page (paper3d): the picture on
   its board, the back and the four edges */
.sx-zsheet { --t: 0.45cqw; --stock: #f9f8f5; container-type: inline-size; position: relative; display: block; aspect-ratio: var(--ar); perspective: 1600px; }
.sx-zsheet--sheet { --t: 0.8cqw; --stock: #f4f1e9; }
.sx-zsheet__body { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(2.5deg) rotateY(-6deg); }
.sx-zsheet__front, .sx-zsheet__back { position: absolute; inset: 0; background: var(--stock); }
.sx-zsheet__front { transform: translateZ(calc(var(--t) / 2)); }
.sx-zsheet__back { transform: rotateY(180deg) translateZ(calc(var(--t) / 2)); background: #ede8db; }
.sx-zsheet img { position: absolute; inset: var(--m); display: block; width: calc(100% - 2 * var(--m)); height: calc(100% - 2 * var(--m)); max-width: none; object-fit: fill; backface-visibility: hidden; box-shadow: 0 0 1.5px rgba(40, 30, 15, 0.22); }
.sx-zsheet__front::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 40%, rgba(30, 24, 14, 0.045)); pointer-events: none; }
.sx-zsheet__edge { position: absolute; background: #e2dccd; }
.sx-zsheet__edge--l, .sx-zsheet__edge--r { top: 0; bottom: 0; left: calc(50% - var(--t) / 2); width: var(--t); }
.sx-zsheet__edge--l { transform: rotateY(-90deg) translateZ(50cqw); }
.sx-zsheet__edge--r { transform: rotateY(90deg) translateZ(50cqw); }
.sx-zsheet__edge--t, .sx-zsheet__edge--b { left: 0; right: 0; top: calc(50% - var(--t) / 2); height: var(--t); }
.sx-zsheet__edge--t { transform: rotateX(90deg) translateZ(calc(50cqw / var(--ar))); }
.sx-zsheet__edge--b { transform: rotateX(-90deg) translateZ(calc(50cqw / var(--ar))); background: #d6cfbf; }
.sx-zsheet__shadow { position: absolute; left: 5%; right: 5%; bottom: -4%; height: 7%; border-radius: 50%; background: radial-gradient(closest-side, rgba(36, 28, 16, 0.3), rgba(36, 28, 16, 0)); filter: blur(6px); pointer-events: none; }

/* ---------- Phones ---------- */
@media (max-width: 767px) {
  .sx-head { min-height: 0; padding: 36px 0 44px; gap: 30px; }
  .sx-head__media .sx-pic img { max-height: 62svh; margin: 0; }
  .sx-row__media .sx-pic:nth-child(n) { margin-left: 0; margin-right: 0; }
  .sx-row__media { gap: 28px; }
}

/* ===========================================================
   Bespoke pages: their own content markup (werk-, mp-, mu-, vita-,
   sub-, kontakt-) set in the same language as the templates above.
   Pictures there are never cropped: natural size, contained.
   =========================================================== */
.sx-bespoke img { width: 100%; height: auto; object-fit: contain; }
.sx-bespoke section, .sx-bespoke header { margin: 0; }
.sx-bespoke p { font: 400 var(--sx-body)/1.55 var(--fx-serif); }

/* heads: label -> kicker, title -> display, intro -> lead */
.werk-hero, .mp-hero, .vita-hero, .sub-hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 26px;
  min-height: min(calc(64svh - var(--sx-top)), 620px);
  padding: clamp(40px, 9svh, 110px) 0 clamp(48px, 9svh, 110px);
  box-sizing: border-box;
}
.mp-hero__label, .sub-hero__label, .kontakt-label, .vita-section__label, .sub-gallery-header__label, .mp-manifesto__label {
  display: block;
  font: 500 var(--sx-meta)/1.25 var(--fx-sans);
  color: var(--sx-accent);
}
.werk-hero h1, .mp-hero h1, .vita-hero h1, .sub-hero h1, .kontakt-intro h1 {
  font: 500 var(--t-display)/0.92 var(--fx-sans);
  letter-spacing: -0.045em;
  text-wrap: balance;
  max-width: 13em;
}
.sx-bespoke .werk-hero__subtitle, .sx-bespoke .mp-hero__intro, .sx-bespoke .sub-hero__intro, .sx-bespoke .vita-hero .subtitle, .sx-bespoke .vita-hero .intro, .sx-bespoke .kontakt-intro > p {
  max-width: 28em;
  font: 400 var(--sx-lead)/1.3 var(--fx-serif);
}
.sx-bespoke .vita-hero .subtitle { font: 500 var(--t-h2)/1.1 var(--fx-sans); letter-spacing: -0.02em; }

/* section heads */
.vita-section > .vita-section__label, .sub-gallery-header {
  margin-bottom: clamp(28px, 5svh, 56px);
}
.vita-section__title, .sub-gallery-header__title, .mp-book__title {
  font: 500 var(--t-h1)/0.98 var(--fx-sans);
  letter-spacing: -0.035em;
  text-wrap: balance;
  margin-top: 10px !important;
}
.sx-bespoke .sub-gallery-header__text, .sx-bespoke .sub-sold-intro__text {
  max-width: 34em;
  margin-top: 18px;
}
.mp-book__year:empty, .publications__label:empty { display: none; }

.mp-book__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px var(--sx-col-gap);
  align-items: center;
}
@media (min-width: 900px) {
  .mp-book__body { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .mp-book__body--reverse { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .mp-book__body--reverse > :first-child { order: 2; }
}
.mp-book, .vita-section, .mp-manifesto {
  margin-bottom: clamp(72px, 13svh, 160px) !important;
}
.mp-book__text {
  display: flex;
  flex-direction: column;
  gap: 0.85em;
  max-width: 34em;
}

.sx-bespoke .mp-manifesto__quote {
  margin: 0;
  font: 400 var(--t-h2)/1.12 var(--fx-serif);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.sx-bespoke .mp-manifesto__quote { font-size: var(--t-h1); max-width: 17em; }
.mp-manifesto__inner { display: flex; flex-direction: column; gap: 22px; }
.mp-manifesto { padding: clamp(24px, 6svh, 72px) 0; }

/* werk: the three worlds of the home page as the ways in (the framed
   work, the book, the glass: paper3d), then the essay as a reading page
   with the work it speaks of floating beside it */
.sx .werk-hero { min-height: 0; padding: clamp(32px, 6svh, 88px) 0 clamp(16px, 3svh, 40px); gap: 18px; }
.sx .werk-hero h1 { font-size: var(--t-display); }
.sx .werk-worlds { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr) minmax(0, 1fr); align-items: end; gap: 48px var(--sx-col-gap); margin: 0 0 clamp(110px, 18svh, 220px); }
.sx .werk-world { grid-area: auto; text-align: center; }
.sx .werk-world .fx-obj__slot { margin: 0 auto; }
.sx .fx-obj--welt-malerei.werk-world .fx-obj__slot { width: min(80%, 40svh * 728 / 1100, 360px); aspect-ratio: 728 / 1100; }
.sx .fx-obj--welt-schrift.werk-world .fx-obj__slot { width: min(100%, 40svh * 1.45, 680px); aspect-ratio: 1.45; }
.sx .fx-obj--welt-gespraech.werk-world .fx-obj__slot { width: min(86%, 30svh, 340px); aspect-ratio: 1; }
/* Until WebGL draws: a still of the book and the sphere, rendered by paper3d
   from these slots plus a fifth on each side for the shadow (rest pose at
   start, transparent), so the swap is quiet. */
.sx .werk-world img.fx-3d-fallback { inset: -20%; width: 140%; height: 140%; max-width: none; border-radius: 0; background: none; pointer-events: none; }
.sx .werk-world .fx-obj__label { margin-top: 18px; }
.sx .werk-world .fx-obj__title { font: 500 var(--t-h2)/1.05 var(--fx-sans); letter-spacing: -0.03em; }

.werk-essay { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 clamp(40px, 6vw, 120px); max-width: 1320px; margin: 0 auto clamp(64px, 10svh, 120px); scroll-margin-top: calc(var(--sx-top) + clamp(24px, 5svh, 56px)); }
/* (the home's "Inneres Gespräch" lands here: /werk/#essay, round 9f K12) */
.sx .werk-essay__head { margin-bottom: clamp(40px, 7svh, 80px); }
.werk-essay__head h2 { font: 500 var(--t-h1)/0.95 var(--fx-sans); letter-spacing: -0.04em; text-wrap: balance; }
.sx-bespoke .werk-essay__by { max-width: 30em; margin-top: 22px; font: 400 var(--sx-lead)/1.3 var(--fx-serif); }
.werk-essay__text { max-width: 34em; }
.sx-bespoke .werk-essay__text > p { line-height: 1.62; }
.werk-essay__text > p + p { margin-top: 1.1em; }
.sx-bespoke .werk-essay__lead { font: 400 var(--t-lead)/1.38 var(--fx-serif); margin-bottom: 0.5em; }
.werk-essay__quote { margin: 1.1em 0; }
.sx-bespoke .werk-essay__quote p { font: 400 var(--t-h1)/1.04 var(--fx-serif); letter-spacing: -0.015em; }
.sx-bespoke .werk-essay__sign { margin-top: 2em !important; font: 500 var(--sx-meta)/1.3 var(--fx-sans); color: var(--sx-soft); }
.werk-essay__work { margin: 0 auto clamp(40px, 7svh, 72px); width: min(78%, 420px); }
.werk-essay__sheet { aspect-ratio: 1213 / 1600; }
.werk-essay__work figcaption { margin-top: 18px; font: 400 var(--sx-meta)/1.35 var(--fx-sans); color: var(--sx-soft); }
.werk-essay__work figcaption span { display: block; color: var(--sx-ink); font-weight: 500; }
@media (min-width: 1024px) {
  .werk-essay { grid-template-columns: minmax(0, 34em) minmax(280px, 1fr); grid-template-areas: "head head" "text work"; }
  .werk-essay__head { grid-area: head; }
  .werk-essay__text { grid-area: text; }
  .werk-essay__work { grid-area: work; position: sticky; top: calc(var(--sx-top) + 9svh); align-self: start; margin: 0; width: min(100%, calc(66svh * 1213 / 1600)); }
}
/* .fx-obj--world is a grid without columns: its implicit auto column grew to
   the title's one-line width, so "Inneres Gespräch" ran past the screen edge
   in Mobile Safari. One column of the cell's width lets the title wrap. */
@media (max-width: 1023px) {
  .sx .werk-world { grid-template-columns: minmax(0, 1fr); }
  /* both titles of the first row keep two lines' room (the home's rule gave
     it to "Malerei" only; in English "Inner dialogue" then stood a line
     lower), so they start on one line in either language */
  .sx .werk-worlds :is(.fx-obj--welt-malerei, .fx-obj--welt-gespraech) .fx-obj__title { min-height: 2.3em; }
}
/* tablets: the three worlds stand in one row */
@media (min-width: 768px) and (max-width: 1023px) { .sx .werk-worlds .fx-obj__title { min-height: 2.3em; } }
@media (max-width: 767px) {
  .sx .werk-worlds { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "malerei gespraech" "schrift schrift"; gap: 40px 20px; }
  .sx .fx-obj--welt-malerei.werk-world { grid-area: malerei; }
  .sx .fx-obj--welt-gespraech.werk-world { grid-area: gespraech; }
  .sx .fx-obj--welt-schrift.werk-world { grid-area: schrift; }
  .sx .fx-obj--welt-malerei.werk-world .fx-obj__slot { width: min(76%, 150px); }
  .sx .fx-obj--welt-gespraech.werk-world .fx-obj__slot { width: min(84%, 150px); }
  .sx .fx-obj--welt-schrift.werk-world .fx-obj__slot { width: min(88%, 340px); }
  .sx .werk-world .fx-obj__label { margin-top: 14px; }
}

/* malerei: one large work beside the title, the technique with her hands,
   then all her works as a salon wall in three groups. Within a group the
   works stand in their real sizes to each other (compressed: the square
   root of the height), every one a paper3d sheet; the art cards lead to
   the shop, the others open large. */
.sx-p-malerei h2 { font: 500 var(--t-h1)/0.96 var(--fx-sans); letter-spacing: -0.04em; text-wrap: balance; }
.sx-p-malerei figcaption { margin-top: 16px; text-wrap: balance; font: 400 var(--sx-meta)/1.35 var(--fx-sans); color: var(--sx-soft); }
.sx-p-malerei figcaption > span:first-child { display: block; color: var(--sx-ink); font-weight: 500; }
.mal-sheet { width: 100%; aspect-ratio: var(--ar); }

.mal-hero { display: grid; gap: 40px var(--sx-col-gap); align-items: center; padding: clamp(36px, 7svh, 96px) 0 clamp(80px, 14svh, 160px); }
.sx .mal-hero h1 { font: 500 var(--t-display)/0.92 var(--fx-sans); letter-spacing: -0.045em; text-wrap: balance; }
.sx-bespoke .mal-hero__intro { max-width: 22em; margin-top: 26px; font: 400 var(--sx-lead)/1.3 var(--fx-serif); }
.mal-hero__work { margin: 0; width: min(100%, 420px); }

.sx .mal-technik { margin-bottom: clamp(72px, 12svh, 140px); }
.mal-technik h2 { margin-bottom: clamp(32px, 6svh, 64px); }
.mal-technik__body { display: grid; gap: 40px var(--sx-col-gap); }
.mal-technik__text { max-width: 34em; }
.mal-technik__text > p + p { margin-top: 1em; }
.sx-bespoke .mal-technik__quote { margin-bottom: 0.9em; font: 400 var(--t-h2)/1.12 var(--fx-serif); letter-spacing: -0.01em; }
.mal-technik .sx-pic { margin: 0; }

.mal-say { margin: 0 0 clamp(96px, 16svh, 180px); }
.sx-bespoke .mal-say p { max-width: 17em; font: 400 var(--t-h1)/1.1 var(--fx-serif); letter-spacing: -0.015em; text-wrap: balance; }

.mal-works > h2 { margin-bottom: clamp(32px, 6svh, 64px); }
.sx .mal-group { margin-bottom: clamp(96px, 16svh, 180px); }
.sx .mal-group + .mal-group { padding-top: clamp(48px, 8svh, 96px); border-top: 1px solid var(--fx-line); }
.mal-group__head { max-width: 34em; margin-bottom: clamp(56px, 10svh, 104px); }
.mal-group__head h3 { font: 500 var(--sx-sub)/1.05 var(--fx-sans); letter-spacing: -0.025em; }
.mal-group__head p { margin-top: 14px; }
.mal-group__room { width: min(100%, 520px); margin: 0 0 clamp(48px, 8svh, 96px); }
.mal-group--big { --unit: min(56svh, 29vw, 560px); }
.mal-group--mid { --unit: min(46svh, 430px); }
.mal-group--small { --unit: min(38svh, 340px); }
.mal-salon { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(48px, 8svh, 96px) clamp(32px, 4vw, 80px); margin: 0 auto; padding: 0; list-style: none; }
.mal-item { flex: none; width: min(100%, max(108px, calc(var(--unit) * var(--h) * var(--ar) * var(--solo, 1)))); }
.mal-item__in { display: block; margin: 0; color: inherit; text-decoration: none; }
figure.mal-item__in { cursor: zoom-in; }
.mal-item__in:focus-visible { outline: none; }
.mal-item__in:focus-visible .mal-item__title { text-decoration: underline; text-underline-offset: 4px; }
.mal-item__cap { display: block; margin-top: 16px; font: 400 var(--sx-meta)/1.35 var(--fx-sans); color: var(--sx-soft); }
.mal-item__title, .mal-item__meta { display: block; }
.mal-item__title { color: var(--sx-ink); font-weight: 500; }
.mal-item__shop { display: inline-flex; white-space: nowrap; align-items: center; gap: 6px; margin-top: 4px; color: var(--sx-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.mal-item__shop svg { width: 10px; height: 10px; flex: none; }
.mal-item__in:hover .mal-item__shop { text-decoration-thickness: 2px; }

.sx .mal-chapter { display: grid; gap: 32px var(--sx-col-gap); align-items: center; margin-bottom: clamp(96px, 16svh, 180px); }
.mal-chapter__text { max-width: 30em; }
.mal-chapter__text > p + p { margin-top: 1em; }
.mal-chapter__object { margin: 0; }
.mal-chapter__work { margin: 0; width: min(100%, 380px); }

.sx .mal-poem { display: grid; gap: 32px var(--sx-col-gap); align-items: center; margin-bottom: clamp(72px, 12svh, 140px); }
.sx-bespoke .mal-poem__lead { max-width: 30em; }
.mal-poem__work { margin: 0; width: min(100%, 400px); }
.mal-poem__verses { display: flex; flex-direction: column; gap: 1.4em; }
.sx-bespoke .mal-poem__verses p { font: 400 var(--t-h2)/1.2 var(--fx-serif); }

@media (min-width: 1024px) {
  .mal-hero { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .mal-hero__work { width: min(100%, calc(70svh * 730 / 1100)); justify-self: center; }
  .mal-technik__body { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); grid-template-areas: "hands text"; align-items: center; }
  .mal-technik__hands { grid-area: hands; }
  .mal-technik__text { grid-area: text; }
  .mal-say { margin-left: calc((100% - var(--sx-col-gap)) * 3 / 12); }
  /* Head and the Rheingau photo side by side as one compact pair, the
     text centred on the photo (no empty column, no gulf between them). */
  .mal-group--big { display: grid; grid-template-columns: minmax(0, 24em) minmax(0, 360px) 1fr; gap: clamp(56px, 10svh, 104px) clamp(48px, 6vw, 112px); align-items: center; }
  .mal-group--big .mal-salon { grid-column: 1 / -1; } /* the work wall keeps the full width */
  .mal-group--big .mal-group__head, .mal-group--big .mal-group__room { margin: 0; }
  .mal-group--big .mal-group__head { max-width: 24em; }
  .mal-group--big .mal-group__room { width: 100%; }
  .mal-chapter { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "head head" "media text"; }
  .mal-chapter--comm { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); grid-template-areas: "head head" "text media"; }
  .mal-chapter > h2 { grid-area: head; }
  .mal-chapter > figure { grid-area: media; justify-self: center; }
  .mal-chapter__text { grid-area: text; }
  .mal-poem { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); grid-template-areas: "head head" "lead lead" "work verses"; }
  .mal-poem > h2 { grid-area: head; }
  .mal-poem__lead { grid-area: lead; }
  .mal-poem__work { grid-area: work; justify-self: center; }
  .mal-poem__verses { grid-area: verses; }
}
@media (max-width: 767px) {
  .mal-hero { padding: 36px 0 72px; }
  .mal-hero__work { width: min(80%, 300px); }
  .mal-group--big { --unit: min(60svh, 500px); }
  .mal-group--mid, .mal-group--small { --unit: min(27svh, 224px); }
  .mal-salon { gap: 48px 24px; }
}

/* mehr-ueber-mich: her portrait of 2026 as a rigid print beside the title,
   the old photographs as prints in paper3d (they arrive from depth and lie
   on the paper with their thickness and light), set beside the text they
   belong to, enlargeable. */
.sx-p-mehr-ueber-mich h2 { font: 500 var(--t-h1)/0.98 var(--fx-sans); letter-spacing: -0.035em; text-wrap: balance; margin-bottom: clamp(24px, 4svh, 40px); }
.ub-text { max-width: 34em; }
.ub-text > p + p { margin-top: 1em; }
.ub-hero { display: grid; gap: 40px var(--sx-col-gap); align-items: center; padding: clamp(36px, 7svh, 96px) 0 clamp(80px, 14svh, 160px); }
.sx .ub-hero h1 { font: 500 var(--t-display)/0.92 var(--fx-sans); letter-spacing: -0.045em; text-wrap: balance; }
.sx-bespoke .ub-hero__intro { max-width: 24em; margin-top: 26px; font: 400 var(--sx-lead)/1.3 var(--fx-serif); }
.ub-portrait { margin: 0; width: min(80%, 320px); }
.ub-portrait__print { width: 100%; aspect-ratio: 705 / 1024; }
.ub-print { margin: 0; cursor: zoom-in; }
.ub-print:focus-visible { outline: none; }
.ub-print:focus-visible .ub-print__sheet { outline: 2px solid var(--sx-ink); outline-offset: 6px; }
.ub-print figcaption { margin-top: 14px; font: 400 var(--sx-meta)/1.35 var(--fx-sans); color: var(--sx-soft); }
.sx .ub-chapter, .sx .ub-pull, .sx .ub-theater, .sx .ub-story { margin-bottom: clamp(96px, 16svh, 180px); }
.ub-chapter { display: grid; gap: 40px var(--sx-col-gap); align-items: center; }
.ub-print--stones { width: min(100%, 420px); }
.ub-pull__quote { max-width: 17em; }
.sx-bespoke .ub-pull__quote { font: 400 var(--t-h1)/1.1 var(--fx-serif); letter-spacing: -0.015em; text-wrap: balance; }
.sx-bespoke .ub-pull__text { max-width: 30em; margin-top: 28px; }
.ub-theater { display: grid; gap: clamp(40px, 7svh, 72px); }
.ub-theater__prints { display: flex; align-items: flex-end; gap: clamp(20px, 3vw, 48px); max-width: 1100px; }
.ub-print--stage { flex: calc(var(--ar)) 1 0; min-width: 0; }
.ub-jerusalem__prints { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px clamp(20px, 2.4vw, 40px); align-items: start; }
@media (min-width: 1024px) {
  .ub-hero { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .ub-portrait { width: min(100%, calc(68svh * 705 / 1024)); justify-self: center; }
  .ub-chapter--steine { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .ub-print--stones { justify-self: center; }
  .ub-pull, .ub-story, .ub-theater__text { margin-left: calc((100% - var(--sx-col-gap)) * 3 / 12); }
  .ub-chapter--jerusalem { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); grid-template-areas: "head head" "text prints"; align-items: start; }
  .ub-chapter--jerusalem > h2 { grid-area: head; margin-bottom: 0; }
  .ub-chapter--jerusalem > .ub-text { grid-area: text; }
  .ub-jerusalem__prints { grid-area: prints; }
}
@media (max-width: 767px) {
  .ub-hero { padding: 36px 0 72px; }
  .ub-print--stones { width: min(78%, 300px); }
  .ub-theater__prints { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 28px 16px; }
}
.mp-band { background: none; }
.mp-book__subtitle { font: 500 var(--sx-meta)/1.3 var(--fx-sans) !important; color: var(--sx-soft); }

/* vita: the years as a column, the text beside them */
.timeline { display: grid; gap: 0; margin-bottom: clamp(48px, 8svh, 90px); }
.timeline__item { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 18px 0; border-top: 1px solid var(--fx-line); }
.timeline__year { font: 500 var(--t-h2)/1.05 var(--fx-sans); letter-spacing: -0.025em; }
@media (min-width: 900px) {
  .timeline__item { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--sx-col-gap); align-items: baseline; }
}
.publications { margin-top: 24px; }
.exhibitions { display: grid; gap: 0; }
.exhibition-year-group { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px var(--sx-col-gap); padding: 26px 0; border-top: 1px solid var(--fx-line); }
@media (min-width: 900px) { .exhibition-year-group { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } .exhibition-year-group > .exhibition { grid-column: 2; } }
.exhibition-year-group__year { font: 500 var(--t-h2)/1 var(--fx-sans) !important; letter-spacing: -0.03em; grid-row: 1 / span 5; }
.exhibition { padding-bottom: 14px; }
.sx-bespoke .exhibition__title { font: 500 var(--t-lead)/1.2 var(--fx-sans); letter-spacing: -0.01em; }
.sx-bespoke .exhibition__venue { font-size: var(--sx-body); }
.sx-bespoke .exhibition__date { font: 400 var(--sx-meta)/1.4 var(--fx-sans); color: var(--sx-soft); }
.vita-cta, .sub-cta { margin: clamp(24px, 6svh, 64px) 0 clamp(56px, 10svh, 120px); }
.vita-cta a, .sub-cta a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 99px;
  background: #000;
  color: var(--fx-light) !important;
  font: 500 var(--t-meta)/1 var(--fx-sans);
  text-decoration: none;
}
.vita-cta a::after, .sub-cta a::after { content: "\2197"; font-size: 1em; }
.vita-cta a:hover, .sub-cta a:hover { background: #2f2e27; }

/* pastelle: the works for sale, then the sold ones */
.sub-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 72px) clamp(24px, 3.4vw, 56px); align-items: start; margin-bottom: clamp(56px, 10svh, 120px); }
.sub-gallery__item { display: flex; flex-direction: column; gap: 14px; cursor: zoom-in; perspective: 1400px; }
.sub-gallery__item:nth-child(2n) { margin-top: 32px; }
@media (min-width: 900px) { .sub-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } .sub-gallery__item:nth-child(n) { margin-top: 0; } .sub-gallery__item:nth-child(3n + 2) { margin-top: 7svh; } }
@media (min-width: 1200px) { .sub-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); } .sub-gallery__item:nth-child(n) { margin-top: 0; } .sub-gallery__item:nth-child(2n) { margin-top: 7svh; } }
.sub-gallery__item:focus-visible { outline: 2px solid var(--sx-ink); outline-offset: 8px; }
.sub-gallery__info { display: flex; flex-direction: column; gap: 4px; }
.sub-gallery__title { font: 500 var(--t-lead)/1.15 var(--fx-sans); letter-spacing: -0.015em; }
.sub-gallery__meta, .sub-gallery__meta * { font: 400 var(--sx-meta)/1.35 var(--fx-sans); color: var(--sx-soft); }
.sub-gallery__price { display: block; color: var(--sx-ink) !important; font-variant-numeric: tabular-nums; }
.sub-gallery__sold-badge { display: none; }
.sub-sold-intro { margin-bottom: clamp(32px, 6svh, 64px); }
.sub-band { margin-top: clamp(64px, 12svh, 140px); }
@media (max-width: 599px) {
  .sub-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .sub-gallery__title { font-size: var(--t-body); }
}

/* kontakt: her address at the left, the form open on the paper */
.kontakt-wrap { padding: clamp(40px, 9svh, 110px) 0 clamp(64px, 12svh, 140px); }
.kontakt-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px var(--sx-col-gap); align-items: start; }
@media (min-width: 900px) { .kontakt-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.kontakt-intro { display: flex; flex-direction: column; gap: 26px; }
.kontakt-info { font: 400 var(--sx-body)/1.5 var(--fx-serif); }
.kontakt-info strong { display: block; font: 500 var(--t-lead)/1.2 var(--fx-sans); }
.kontakt-info__row { margin-top: 18px; display: flex; flex-direction: column; gap: 6px; font: 500 var(--t-body)/1.3 var(--fx-sans); }
.kontakt-info__row a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
/* The form as a sheet of letter paper on the page (round 9d, G6): fields
   are calm rounded wells with a hairline, labels above them; focus turns
   the hairline to ink with a soft round halo, never a hard rectangle. The
   message grows with its text instead of showing a resize handle. */
.kontakt-form-card {
  padding: clamp(24px, 3.2vw, 48px);
  background: var(--fx-paper-hi);
  border: 1px solid var(--fx-line);
  border-radius: 22px;
  box-shadow: 0 1px 2px rgba(36, 28, 16, 0.05), 0 26px 48px -30px rgba(36, 28, 16, 0.32);
}
.kontakt-form { display: flex; flex-direction: column; gap: 22px; }
.kontakt-form .form-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
@media (min-width: 600px) { .kontakt-form .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kontakt-form .form-group { display: flex; flex-direction: column; gap: 9px; }
.kontakt-form label { font: 500 var(--t-label)/1.2 var(--fx-sans); color: var(--sx-soft); }
.kontakt-form input, .kontakt-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 18px;
  border: 1px solid rgba(36, 35, 28, 0.16);
  border-radius: 14px;
  background: var(--fx-paper);
  color: var(--sx-ink);
  font: 400 var(--t-meta)/1.45 var(--fx-serif);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.25s var(--sx-ease), box-shadow 0.25s var(--sx-ease), background-color 0.25s var(--sx-ease);
}
.kontakt-form textarea { display: block; min-height: 9.5em; max-height: 60svh; resize: none; field-sizing: content; }
.kontakt-form input::placeholder, .kontakt-form textarea::placeholder { color: rgba(36, 35, 28, 0.42); }
@media (hover: hover) { .kontakt-form input:hover, .kontakt-form textarea:hover { border-color: rgba(36, 35, 28, 0.3); } }
.kontakt-form input:focus, .kontakt-form textarea:focus,
.kontakt-form input:focus-visible, .kontakt-form textarea:focus-visible {
  outline: none;
  border-color: rgba(36, 35, 28, 0.62);
  background: var(--fx-paper-hi);
  box-shadow: 0 0 0 4px rgba(36, 35, 28, 0.07);
}
.kontakt-form input:user-invalid { border-color: #a3241b; box-shadow: 0 0 0 4px rgba(163, 36, 27, 0.08); }
.kontakt-form button {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  height: 56px;
  margin-top: 6px;
  padding: 0 30px;
  border: 0;
  border-radius: 99px;
  background: var(--sx-ink);
  color: var(--fx-paper-hi);
  font: 500 var(--t-meta)/1 var(--fx-sans);
  cursor: pointer;
  transition: background-color 0.2s var(--sx-ease), transform 0.12s var(--sx-ease);
}
.kontakt-form button:hover { background: #3a382f; }
.kontakt-form button:active { transform: scale(0.97); }
.kontakt-form button:disabled { opacity: 0.6; cursor: progress; }
.kontakt-form button:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--fx-paper-hi), 0 0 0 5px var(--sx-ink); }
@media (max-width: 599px) { .kontakt-form button { align-self: stretch; justify-content: center; } }
#form-status { display: none; padding: 14px 18px; border-radius: 10px; font: 400 var(--t-meta)/1.4 var(--fx-sans); }

@media (max-width: 767px) {
  .werk-hero, .mp-hero, .vita-hero, .sub-hero { min-height: 0; padding: 36px 0 44px; }
  .mp-book, .vita-section, .mp-manifesto { margin-bottom: 72px !important; }
}

/* ===========================================================
   3D layer (neu-3d, round 10): paper3d draws the pigment ground and the
   objects in one canvas under the type (z-index 0); the page stands above
   it. A light warm paper, the Drei Welten paper of the home page.
   =========================================================== */
html.sx-root:not(.sx-shop) { --fx-paper: #f4efe5; --fx-paper-hi: #fbf8f2; }
html.sx-root .sx, html.sx-root .sw-footer { position: relative; z-index: 1; }
/* A drawn object hides its DOM picture (kept for layout, no-WebGL and print). */
.sx [data-3d] { position: relative; display: block; }
.sx [data-3d] > img { display: block; width: 100%; height: 100%; object-fit: contain; transition: opacity 0.3s var(--sx-ease); }
.sx [data-3d][data-3d-ready] > img { opacity: 0; }
/* A picture paper3d draws: its own float and turn are paper3d's, so the
   DOM sheet keeps still; once drawn, its paper and shadow go with the img. */
.sx .sx-pic__sheet[data-3d] { animation: none; transform: none; }
.sx .sx-pic__sheet[data-3d][data-3d-ready] { box-shadow: none; background: none; }

/* ===========================================================
   Books (r9-unter, round 9): real 3D books in CSS. The cover is her own
   book photo, rectified flat (r9-unter/books/rectify.py); spine, page
   block, head and tail are faces of the same box, so the book turns as a
   body: sub.js turns it with the scroll (spine first, then the cover, then
   the page block, the same both ways) and leans it toward the pointer; a
   light runs over the cover as it turns; its shadow lies on the paper.
   Sizes from the figure's width (container units): W = 100cqw,
   H = W / ar, thickness T = H * th.
   =========================================================== */
.sx-book, .sx-obook {
  --ry: 0deg; --rx: 0deg; --z: 0px; --lx: 0.5; --sh: 0; --lift: 0;
  container-type: inline-size;
  position: relative;
  display: block;
  width: 100%;
  margin: 0 auto;
  aspect-ratio: var(--ar);
  perspective: 1500px;
}
.sx-book__obj, .sx-obook__obj {
  --H: calc(100cqw / var(--ar));
  --T: calc(var(--H) * var(--th, 0.08));
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: translateZ(var(--z)) rotateX(var(--rx)) rotateY(var(--ry));
  will-change: transform;
}
.sx-book__obj > * { position: absolute; backface-visibility: hidden; }
.sx-book__front { inset: 0; overflow: hidden; border-radius: 0.6cqw 1.4cqw 1.4cqw 0.6cqw; transform: translateZ(calc(var(--T) / 2)); background: var(--spine); }
.sx-book__front img { width: 100%; height: 100%; object-fit: fill; max-width: none; }
/* the hinge groove beside the spine, the light on the cover, the shade as it turns away */
.sx-book__front::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.32) 0, rgba(255, 255, 255, 0.16) 1.6%, rgba(0, 0, 0, 0.14) 3.4%, rgba(0, 0, 0, 0) 6%),
    linear-gradient(112deg, rgba(255, 255, 255, 0) calc(var(--lx) * 140% - 62%), rgba(255, 255, 255, 0.26) calc(var(--lx) * 140% - 40%), rgba(255, 255, 255, 0) calc(var(--lx) * 140% - 18%)),
    rgba(20, 16, 10, var(--sh));
  pointer-events: none;
}
.sx-book__back { inset: 0; border-radius: 1.4cqw 0.6cqw 0.6cqw 1.4cqw; background: var(--spine); transform: rotateY(180deg) translateZ(calc(var(--T) / 2)); }
.sx-book__spine {
  top: 0; bottom: 0;
  left: calc(50% - var(--T) / 2);
  width: var(--T);
  border-radius: 40% / 3%;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.34), rgba(255, 255, 255, 0.14) 38%, rgba(255, 255, 255, 0.05) 60%, rgba(0, 0, 0, 0.3)), var(--spine);
  transform: rotateY(-90deg) translateZ(50cqw);
}
/* the page block: inset from the boards (the squares), fine leaf lines, darker at the boards */
.sx-book__pages {
  top: 1.1%; bottom: 1.1%;
  left: calc(50% - var(--T) / 2 + 0.4cqw);
  width: calc(var(--T) - 0.8cqw);
  background:
    linear-gradient(90deg, rgba(60, 50, 30, 0.28), rgba(60, 50, 30, 0) 16%, rgba(60, 50, 30, 0) 84%, rgba(60, 50, 30, 0.28)),
    repeating-linear-gradient(90deg, #f6f1e4 0 1px, #e6dfcd 1px 2px);
  transform: rotateY(90deg) translateZ(calc(50cqw - 1.2cqw));
}
.sx-book__head, .sx-book__tail {
  left: 0.6cqw; right: 1.2cqw;
  top: calc(50% - var(--T) / 2 + 0.4cqw);
  height: calc(var(--T) - 0.8cqw);
  background:
    linear-gradient(rgba(60, 50, 30, 0.22), rgba(60, 50, 30, 0) 18%, rgba(60, 50, 30, 0) 82%, rgba(60, 50, 30, 0.22)),
    repeating-linear-gradient(0deg, #f6f1e4 0 1px, #e3dccb 1px 2px);
}
.sx-book__head { transform: rotateX(90deg) translateZ(calc(var(--H) / 2 - 0.9cqw)); }
.sx-book__tail { transform: rotateX(-90deg) translateZ(calc(var(--H) / 2 - 0.9cqw)); }
/* its shadow on the paper: tight and dark while it stands, wide and soft as it lifts */
.sx-book__shadow {
  position: absolute;
  left: 4%; right: 4%;
  bottom: -5%;
  height: 10%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(36, 28, 16, 0.42), rgba(36, 28, 16, 0));
  transform: translateX(calc(var(--ry) * -0.6px)) scale(calc(1 + var(--lift) * 0.25), calc(1 + var(--lift) * 0.6));
  opacity: calc(1 - var(--lift) * 0.45);
  filter: blur(calc(4px + var(--lift) * 10px));
  pointer-events: none;
}

/* The open book: two leaves hinged in the gutter, a board under them,
   lying on the table; it opens as it comes up (sub.js sets --open). */
.sx-obook { --open: 10deg; perspective: 1800px; }
.sx-obook__obj { transform: translateZ(var(--z)) rotateX(calc(34deg + var(--rx))) rotateY(var(--ry)); }
.sx-obook__board { position: absolute; inset: -1.6% -1.2%; border-radius: 1cqw; background: var(--spine); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06); transform: translateZ(-2px); }
.sx-obook__leaf { position: absolute; top: 0; bottom: 0; width: 50%; transform-style: preserve-3d; }
.sx-obook__leaf img { width: 100%; height: 100%; object-fit: fill; max-width: none; backface-visibility: hidden; }
.sx-obook__leaf--l { left: 0; transform-origin: 100% 50%; transform: rotateY(var(--open)); box-shadow: -1px 1px 0 #ebe5d6, -2px 2px 0 #ddd6c4, -3px 3px 0 #ebe5d6, -4px 4px 0 #d9d2bf; }
.sx-obook__leaf--r { right: 0; transform-origin: 0 50%; transform: rotateY(calc(-1 * var(--open))); box-shadow: 1px 1px 0 #ebe5d6, 2px 2px 0 #ddd6c4, 3px 3px 0 #ebe5d6, 4px 4px 0 #d9d2bf; }
/* the gutter's shade and the light across the pages */
.sx-obook__leaf::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.sx-obook__leaf--l::after { background: linear-gradient(90deg, rgba(255, 255, 255, 0) 70%, rgba(40, 30, 15, 0.08) 88%, rgba(40, 30, 15, 0.3)), linear-gradient(115deg, rgba(255, 255, 255, 0) calc(var(--lx) * 140% - 60%), rgba(255, 255, 255, 0.18) calc(var(--lx) * 140% - 40%), rgba(255, 255, 255, 0) calc(var(--lx) * 140% - 20%)); }
.sx-obook__leaf--r::after { background: linear-gradient(270deg, rgba(255, 255, 255, 0) 72%, rgba(40, 30, 15, 0.1) 90%, rgba(40, 30, 15, 0.34)), rgba(20, 16, 10, var(--sh)); }
.sx-obook .sx-book__shadow { left: 2%; right: 2%; bottom: 2%; height: 30%; background: radial-gradient(closest-side, rgba(36, 28, 16, 0.3), rgba(36, 28, 16, 0)); }
a:hover > .sx-book, .sx-book:hover, .sx-obook:hover { cursor: default; }

/* /schreiben/: the books stand free on the paper (no card, no mat) */
.sx .mp-book__cover { display: flex; justify-content: center; }
.sx .mp-book__cover .sx-book { width: min(78%, calc(64svh * var(--ar)), 400px); margin: 2svh auto 5svh; }
.sx .mp-book__cover .sx-obook { width: min(100%, calc(56svh * var(--ar)), 680px); }
@media (max-width: 767px) {
  .sx .mp-book__cover .sx-book { width: min(62%, calc(46svh * var(--ar))); }
}
.sx-book__obj, .sx-obook__obj { pointer-events: none; }
.sx .mp-book__print { display: block; width: min(100%, calc(70svh * var(--ar)), 460px); aspect-ratio: var(--ar); margin: 0 auto; }

/* ---- Round 9 (r9-unter): the pages' new pieces ---- */

/* Quotes light up word by word with the scroll (sub.js sets --p 0..1 on
   the quote, --n words; each word has its index --i): a word goes from
   pale to full ink over four words' time, the same scrolling back. */
[data-sx-reveal] .sx-w { perspective: none; }
[data-sx-reveal] .sx-w > span { transform: none; transition: opacity 0.25s linear; opacity: calc(0.38 + 0.62 * clamp(0, (var(--p, 0) * (var(--n, 1) + 4) - var(--i, 0)) / 4, 1)); }

/* Drawings (draw.js): the slot takes the sheet's proportions, wide on
   landscape screens, tall on portrait ones; the canvas fills it. */
/* --ar is the sheet as drawn (draw.js: by the window's shape, cut to the
   room around its motif); before that the whole sheet holds the place. */
.sx-draw { --ar-now: var(--ar, var(--ar-wide)); position: relative; margin: 0 auto; aspect-ratio: var(--ar-now); width: min(100%, calc(80svh * var(--ar-now))); }
.sx-draw canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
@media (orientation: landscape) and (max-aspect-ratio: 3 / 2) { .sx-draw { --ar-now: var(--ar, var(--ar-mid, var(--ar-wide))); } }
@media (orientation: portrait) { .sx-draw { --ar-now: var(--ar, var(--ar-tall)); width: min(100%, calc(84svh * var(--ar-now))); } }

/* /vita/: her portrait beside her name, the long text as a reading column,
   the years one by one, today as her studio wagon drawn in, the books on
   a shelf, the church of Cottbus above the shows. */
.vita-hero { display: grid; gap: 40px var(--sx-col-gap); align-items: end; }
.vita-hero__text { display: flex; flex-direction: column; gap: 26px; }
.sx-bespoke .vita-hero .vita-hero__quote { margin-top: 2svh; max-width: 17em; font: 400 var(--t-h2)/1.15 var(--fx-serif); letter-spacing: -0.01em; text-wrap: balance; }
.vita-portrait { margin: 0; width: min(78%, 320px); justify-self: center; }
.vita-portrait__print { width: 100%; aspect-ratio: 705 / 1024; }
@media (min-width: 1024px) {
  .vita-hero { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .vita-portrait { width: min(100%, calc(64svh * 705 / 1024)); }
}
.vita-read { max-width: 34em; margin: 0 0 clamp(96px, 16svh, 180px); }
.vita-read > p + p { margin-top: 1em; }
.sx-bespoke .vita-read p { font: 400 var(--sx-lead)/1.42 var(--fx-serif); }
@media (min-width: 900px) { .vita-read { margin-left: calc((100% - var(--sx-col-gap)) * 4 / 12 + var(--sx-col-gap)); } }
.timeline { margin-bottom: 0; }
.vita-today { margin: clamp(32px, 6svh, 72px) auto clamp(80px, 14svh, 160px); }
.vita-today__text { position: absolute; left: 2%; top: 50%; translate: 0 -50%; width: 42%; display: flex; flex-direction: column; gap: 12px; margin: 0; }
.vita-today .timeline__year { font: 500 var(--t-h1)/0.95 var(--fx-sans); letter-spacing: -0.035em; }
.sx-bespoke .vita-today .timeline__text { font: 400 var(--sx-lead)/1.3 var(--fx-serif); max-width: 14em; }
@media (orientation: portrait) { .vita-today__text { left: 6%; right: 6%; top: 6%; width: auto; translate: none; } }
.publications { margin-top: 0; }
.publications__label { display: block; margin-bottom: clamp(32px, 6svh, 64px); font: 500 var(--sx-meta)/1.25 var(--fx-sans); color: var(--sx-accent); }
.vita-shelf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 20px; }
@media (min-width: 900px) { .vita-shelf { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 56px); } }
.vita-shelf__item { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 26px; justify-items: center; }
.vita-shelf .sx-book { align-self: end; width: min(80%, 220px, calc(46svh * var(--ar))); margin: 0; }
.sx-bespoke .vita-shelf__cap { max-width: 15em; font: 400 var(--sx-meta)/1.4 var(--fx-sans); text-align: center; text-wrap: balance; }
.sx-bespoke .vita-shelf__more { max-width: 34em; margin: clamp(48px, 8svh, 96px) auto 0; font: 400 var(--sx-body)/1.5 var(--fx-serif); text-align: center; }
.vita-church { margin: 0 auto clamp(40px, 8svh, 96px); width: min(100%, calc(66svh * var(--ar-wide))); }
@media (orientation: portrait) { .vita-church { width: min(100%, calc(66svh * var(--ar-tall))); } }

/* /pastelle/: each work on its board (paper3d), cut out of the old mats */
.sub-gallery__sheet { width: 100%; aspect-ratio: var(--ar); }

/* /mehr-ueber-mich/: the old photographs are prints (paper3d) */
.ub-print__sheet { width: 100%; aspect-ratio: var(--ar); }

/* /malerei/: the house altars stand on the paper with a contact shadow */
.mal-chapter__stand { position: relative; display: block; }
.mal-chapter__stand img { position: relative; z-index: 1; }
.mal-chapter__stand::after { content: ""; position: absolute; left: 5%; right: 5%; bottom: 0; height: 8%; border-radius: 50%; background: radial-gradient(closest-side, rgba(36, 28, 16, 0.28), rgba(36, 28, 16, 0)); filter: blur(5px); }

/* ---- First screens (round 9, r9-unter): every page opens on real material ---- */
/* /schreiben/: her books as a stack beside the title. The stack is one 3D
   body (sx-stack): a table plane tilted back, each book a box of the same
   faces as .sx-book (sizes from the stack's width: --h in cqw, W = H * ar,
   T = H * th) lying cover up at its height (--zc). An inline script starts
   the books with embedded cover previews; they fall onto the stack one after
   another, each landing while the next is on its way, and settle. They
   wait above the top edge of the window and fall from there, fully opaque:
   --drop (the inline script) is the distance to the stack in screen pixels; the
   direction (--ux, --uy, --uz) is "straight up on the screen" written in
   the table's tilted plane, so a book falls vertically and keeps its size.
   Only translate and rotate move (compositor). Then sub.js turns the stack
   a little with the scroll and the pointer (--sry, --srx, --sz on the table). */
.mp-hero__text { display: flex; flex-direction: column; gap: 26px; }
.sx-stack {
  --lx: 0.5; --sh: 0; --s: 1.18; --drop: 1600px; --ux: -0.239; --uy: -0.537; --uz: 0.809;
  container-type: inline-size;
  position: relative;
  width: min(100%, 560px, calc(72svh / 0.86));
  aspect-ratio: 1 / 0.86;
  margin: 0 auto;
  perspective: 1700px;
  perspective-origin: 50% 20%;
}
.sx-stack__table { pointer-events: none; }
.sx-stack__table {
  position: absolute;
  left: 50%; top: 60%;
  width: 0; height: 0;
  transform-style: preserve-3d;
  transform: translateZ(var(--sz)) rotateX(calc(54deg + var(--srx))) rotateZ(calc(24deg + var(--sry)));
  will-change: transform;
}
/* the table's turn (sub.js books()) stays on the table: not inherited by the
   books, whose fall would be re-resolved with every frame of it (K11) */
@property --sry { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --srx { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --sz { syntax: "<length>"; inherits: false; initial-value: 0px; }
.sx-stack__shadow {
  position: absolute;
  left: -40cqw; top: -40cqw; width: 80cqw; height: 80cqw;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(36, 28, 16, 0.34), rgba(36, 28, 16, 0.12) 60%, rgba(36, 28, 16, 0));
  filter: blur(6px);
  transform: translateZ(-1px);
}
.sx-stack__book {
  --H: calc(var(--h) * var(--s) * 1cqw);
  --W: calc(var(--H) * var(--ar));
  --T: calc(var(--H) * var(--th));
  position: absolute;
  left: calc(var(--W) / -2); top: calc(var(--H) / -2);
  width: var(--W); height: var(--H);
  transform-style: preserve-3d;
  transform: translate3d(calc(var(--x) * var(--s) * 1cqw), calc(var(--y) * var(--s) * 1cqw), calc(var(--zc) * var(--s) * 1cqw)) rotateZ(var(--r));
}
.sx-stack__book > * { position: absolute; backface-visibility: hidden; }
.sx-stack:not(.is-ready) .sx-stack__book { translate: calc(var(--drop) * var(--ux)) calc(var(--drop) * var(--uy)) calc(var(--drop) * var(--uz)); }
.sx-stack.is-ready .sx-stack__book { animation: sx-stack-fall 1.15s linear calc(var(--i) * 0.26s) both; }
/* the shadow on the table forms as the first book comes down onto it */
.sx-stack:not(.is-ready) .sx-stack__shadow { opacity: 0; }
.sx-stack.is-ready .sx-stack__shadow { animation: sx-stack-shade 0.74s cubic-bezier(0.45, 0, 0.9, 0.55) both; }
@keyframes sx-stack-shade { from { opacity: 0; scale: 0.6; } }
.sx-stack .sx-book__front { inset: 0; transform: translateZ(calc(var(--T) / 2)); border-radius: 0.3cqw 0.7cqw 0.7cqw 0.3cqw; }
.sx-stack .sx-book__back { transform: rotateY(180deg) translateZ(calc(var(--T) / 2)); border-radius: 0.7cqw 0.3cqw 0.3cqw 0.7cqw; }
.sx-stack .sx-book__spine { transform: rotateY(-90deg) translateZ(calc(var(--W) / 2)); }
.sx-stack .sx-book__pages { left: calc(50% - var(--T) / 2 + 0.2cqw); width: calc(var(--T) - 0.4cqw); transform: rotateY(90deg) translateZ(calc(var(--W) / 2 - 0.5cqw)); }
.sx-stack .sx-book__head, .sx-stack .sx-book__tail { left: 0.3cqw; right: 0.6cqw; top: calc(50% - var(--T) / 2 + 0.2cqw); height: calc(var(--T) - 0.4cqw); }
.sx-stack .sx-book__head { transform: rotateX(90deg) translateZ(calc(var(--H) / 2 - 0.4cqw)); }
.sx-stack .sx-book__tail { transform: rotateX(-90deg) translateZ(calc(var(--H) / 2 - 0.4cqw)); }
/* falling: accelerating like a weight from high above the stack, turning a
   little on the way, a short rebound on landing, then rest */
@keyframes sx-stack-fall {
  0% { translate: calc(var(--drop) * var(--ux)) calc(var(--drop) * var(--uy)) calc(var(--drop) * var(--uz)); rotate: 10deg; animation-timing-function: cubic-bezier(0.45, 0, 0.9, 0.55); }
  64% { translate: 0 0 0; rotate: -1deg; animation-timing-function: cubic-bezier(0.2, 0.6, 0.4, 1); }
  78% { translate: 0 0 1.4cqw; rotate: 0.4deg; animation-timing-function: cubic-bezier(0.6, 0, 0.8, 0.6); }
  88% { translate: 0 0 0; rotate: 0deg; animation-timing-function: cubic-bezier(0.2, 0.6, 0.4, 1); }
  94% { translate: 0 0 0.3cqw; }
  100% { translate: 0 0 0; rotate: 0deg; }
}
@media (min-width: 900px) {
  .mp-hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--sx-col-gap); align-items: center; }
  .mp-hero__text { align-self: end; }
}
@media (max-width: 899px) {
  .sx-stack { width: min(100%, 440px); }
}

/* /pastelle/: three works of the gallery hung beside the title, on their
   boards (paper3d sheets), at their own heights. --hh is the tallest work's
   height: as much as the column and the window allow. */
.sub-hero__text { display: flex; flex-direction: column; gap: 26px; }
.sub-hero__hang {
  /* (--hh resolves in the works, so its cqw are the hang's width) */
  --gap: clamp(14px, 1.8vw, 30px);
  --hh: min(58svh, 480px, calc((100cqw - 2 * var(--gap)) / 1.42));
  container-type: inline-size;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: var(--gap);
}
.sub-hero__work { display: block; flex: none; height: calc(var(--hh) * var(--k)); aspect-ratio: var(--ar); margin-top: calc(var(--hh) * var(--top) * 0.6); }
.sub-hero__work img { width: 100%; height: 100%; }
@media (min-width: 900px) {
  .sub-hero { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); column-gap: var(--sx-col-gap); align-items: center; }
  .sub-hero__text { align-self: end; }
}

/* /kontakt/: her portrait 2026 as a print beside her address */
.kontakt-person { display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: end; }
.kontakt-portrait { margin: 0; }
.kontakt-portrait__print { display: block; width: 100%; aspect-ratio: var(--ar); }
.kontakt-portrait__print img { width: 100%; height: 100%; }
@media (max-width: 599px) {
  .kontakt-person { grid-template-columns: minmax(0, 1fr); }
  .kontakt-portrait { width: min(52%, 220px); }
}

/* Rubrics (round 9d): a label is a short hairline and soft ink, as in a
   printed book, never a colour. */
.sx-kicker::before, .sub-hero__label::before, .vita-section__label::before,
.sub-gallery-header__label::before, .publications__label::before,
.mp-hero__label::before, .kontakt-label::before, .mp-manifesto__label::before {
  content: "";
  display: inline-block;
  width: 1.5em;
  height: 1px;
  margin-right: 0.6em;
  vertical-align: 0.32em;
  background: currentColor;
}

/* ===========================================================
   Phones and tablets: sideways rows (r9-mobil-unter, round 9j P5). Below
   1024 px (phones either way up, tablets upright) a run of same-kind items that would
   take several screens is one sideways row: a native scroller with the
   finger's momentum and a snap on each item, the next one's edge in view,
   under it a hairline (the part in view), the count and two buttons
   (sub.js rows()). The layout comes from this media query alone, so the
   first paint is right; sub.js adds the bar and the CSS sheets
   (.sx-rowx__sheet, paper3d leaves those slots: data-3d-off) and the turn
   of the sheets as they pass (--rx-lean). Works stand on one line at one
   height (--rowh), whole, each at its own width; captions below.
   Desktop (1024 px and wider) keeps its grids.
   =========================================================== */
.sx-rowx__sheet { display: none; }
.sx-rowx__bar { display: none; }
@media (max-width: 1023px) {
  html.sx-root { --rowh: clamp(220px, 50svh, 470px); --rx-gap: 18px; }
  html.sx-root :is(.mal-salon, .sub-gallery, .ub-theater__prints, .ub-jerusalem__prints, .sx-entries, .exhibitions):has(> :nth-child(3)),
  html.sx-root :is(.sx-sheet, .sx-works):has(> .sx-col:nth-child(3) > *, > .sx-col > :nth-child(2)) {
    position: relative;
    display: flex !important;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: var(--rx-gap);
    max-width: none !important;
    margin: 0 calc(-1 * var(--sx-pad)) !important;
    padding: 20px 0 22px var(--sx-pad) !important;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--sx-pad);
    scrollbar-width: none;
    list-style: none;
  }
  html.sx-root :is(.mal-salon, .sub-gallery, .ub-theater__prints, .ub-jerusalem__prints, .sx-entries, .exhibitions, .sx-sheet, .sx-works)::-webkit-scrollbar { display: none; }
  /* (the end padding of a flex scroller is not scrollable in Safari: a spacer) */
  html.sx-root :is(.mal-salon, .sub-gallery, .ub-theater__prints, .ub-jerusalem__prints, .sx-entries, .exhibitions):has(> :nth-child(3))::after,
  html.sx-root :is(.sx-sheet, .sx-works):has(> .sx-col:nth-child(3) > *, > .sx-col > :nth-child(2))::after {
    content: "";
    flex: 0 0 max(1px, calc(var(--sx-pad) - var(--rx-gap)));
    order: 99999; /* (the items are ordered by --rx-o; the spacer stays last) */
  }
  html.sx-root :is(.sx-sheet, .sx-works):has(> .sx-col:nth-child(3) > *, > .sx-col > :nth-child(2)) > .sx-col { display: contents; }

  /* the items: works and photos at one height, each at its own width */
  html.sx-root :is(.mal-salon, .sub-gallery, .ub-theater__prints, .ub-jerusalem__prints):has(> :nth-child(3)) > *,
  html.sx-root :is(.sx-sheet, .sx-works):has(> .sx-col:nth-child(3) > *, > .sx-col > :nth-child(2)) > .sx-col > * {
    flex: 0 0 auto;
    width: min(72vw, calc(var(--rx-h, var(--rowh)) * var(--rx-ar, 0.72)));
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    order: var(--rx-o, 0);
    scroll-snap-align: start;
  }
  html.sx-root :is(.mal-salon, .sub-gallery, .ub-theater__prints, .ub-jerusalem__prints):has(> :nth-child(3)) > * [data-3d],
  html.sx-root :is(.sx-sheet, .sx-works):has(> .sx-col:nth-child(3) > *, > .sx-col > :nth-child(2)) [data-3d] {
    display: flex !important;
    flex-direction: column;
    justify-content: flex-end;
    width: 100% !important;
    height: var(--rx-h, var(--rowh)) !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    box-shadow: none !important;
    background: none !important;
    animation: none !important;
    transform: none !important;
  }
  html.sx-root :is(.mal-salon, .sub-gallery, .ub-theater__prints, .ub-jerusalem__prints, .sx-sheet, .sx-works) [data-3d] > img { width: 100%; height: 100%; max-height: none; object-fit: contain; object-position: 50% 100%; }
  .is-row [data-3d]:has(> .sx-rowx__sheet) > img { display: none; }
  .is-row .sx-rowx__sheet { display: block; width: 100%; flex: none; }
  .is-row .sx-rowx__sheet img { width: calc(100% - 2 * var(--m)); height: calc(100% - 2 * var(--m)); max-width: none; object-fit: fill; }
  /* the sheet turns a little toward the middle as it passes (--rx-lean) and
     the light runs over it; at its place it stands nearly square to you */
  .is-row .sx-rowx__sheet .sx-zsheet__body { transform: rotateX(2deg) rotateY(calc(-3deg - var(--rx-lean, 0) * 15deg)) translateZ(calc(-34px * var(--rx-far, 0))); }
  .is-row .sx-rowx__sheet .sx-zsheet__front::after { background: linear-gradient(105deg, rgba(255, 255, 255, calc(0.1 + 0.08 * var(--rx-lean, 0))), rgba(255, 255, 255, 0) 45%, rgba(30, 24, 14, calc(0.05 - 0.03 * var(--rx-lean, 0)))); }
  .is-row .sx-rowx__sheet .sx-zsheet__shadow { bottom: -3%; }
  .is-row .mal-item__cap, .is-row .sub-gallery__info, .is-row figcaption { margin-top: 14px; }
  .is-row .sub-gallery__item { gap: 0; }
  .is-row .sub-gallery__title { font-size: var(--t-body); }

  /* journal cards */
  /* (cards as tall as the row, the chip on their lower edge so it stands on
     one line from card to card; the lead's wide two-column form is undone) */
  html.sx-root .sx-entries:has(> :nth-child(3)) > .sx-entry { display: flex; align-self: stretch; flex: 0 0 auto; width: min(80vw, 460px); margin: 0 !important; scroll-snap-align: start; }
  html.sx-root .sx-entries:has(> :nth-child(3)) .sx-entry__link { flex: 1; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; align-items: stretch; padding: 0 !important; gap: 18px; }
  html.sx-root .sx-entries:has(> :nth-child(3)) .sx-chip { margin-top: auto; }
  html.sx-root .sx-entries:has(> :nth-child(3)) .sx-entry__excerpt { font-size: var(--t-body); line-height: 1.5; }
  html.sx-root .sx-entries:has(> :nth-child(3)) .sx-entry__media img { aspect-ratio: 3 / 2; object-fit: cover; }
  html.sx-root .sx-entries:has(> :nth-child(3)) .sx-entry__title { font-size: var(--t-h2); }
  html.sx-root .sx-entries:has(> :nth-child(3)) .sx-entry__excerpt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }

  /* exhibitions: a card per exhibition, a year's exhibitions side by side
     under their year (it stays in view while they pass), so a year with
     three of them is no taller than one with one; the row snaps on each */
  html.sx-root .exhibitions:has(> :nth-child(3)) > .exhibition-year-group { flex: 0 0 auto; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: var(--rx-exw, min(72vw, 360px)); grid-template-rows: auto 1fr; gap: 10px var(--rx-gap); padding: 18px 0 0; align-content: start; }
  html.sx-root .exhibitions:has(> :nth-child(3)) .exhibition-year-group__year { grid-row: 1; grid-column: 1; justify-self: start; position: sticky; left: 0; margin-right: var(--sx-pad); }
  html.sx-root .exhibitions:has(> :nth-child(3)) .exhibition-year-group:has(> .exhibition ~ .exhibition) > .exhibition-year-group__year { grid-column: span 2; }
  html.sx-root .exhibitions:has(> :nth-child(3)) .exhibition-year-group:has(> .exhibition ~ .exhibition ~ .exhibition) > .exhibition-year-group__year { grid-column: span 3; }
  html.sx-root .exhibitions:has(> :nth-child(3)) .exhibition { grid-row: 2; grid-column: auto; padding-bottom: 0; scroll-snap-align: start; }

  /* in a row everything stands; the row itself came in */
  .is-row [data-sx-in] { opacity: 1 !important; transform: none !important; }
  .is-row [data-sx-in] figcaption { opacity: 1 !important; translate: none !important; }
  /* a caption at the window's edge is not cut: it fades with --rx-cap (set
     by sub.js sync() as the row moves); the picture stays. (:not(#rx) only
     outranks the two "everything stands" rules above.) */
  .is-row :is(.mal-item__cap, .sub-gallery__info, figcaption, .sx-entry__text, .exhibition, .exhibition-year-group__year, .sw-drift__name, .sw-drift__price):not(#rx) { opacity: var(--rx-cap, 1) !important; transition: none !important; }

  /* the bar under a row */
  .sx-rowx__bar { display: flex; align-items: center; gap: 6px; margin: 0 0 clamp(40px, 7svh, 72px); }
  .sx-rowx__bar[hidden] { display: none; }
  .sx-rowx__track { position: relative; flex: 1; height: 2px; margin-right: 10px; background: linear-gradient(rgba(36, 35, 28, 0.16), rgba(36, 35, 28, 0.16)) 0 50% / 100% 1px no-repeat; }
  .sx-rowx__thumb { position: absolute; left: 0; top: 0; height: 2px; border-radius: 1px; background: var(--sx-ink); }
  .sx-rowx__count { min-width: 4.4em; margin-right: 4px; font: 500 var(--t-label)/1 var(--fx-sans); font-variant-numeric: tabular-nums; text-align: right; color: var(--sx-soft); }
  .sx-rowx__btn { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(36, 35, 28, 0.22); border-radius: 50%; background: transparent; color: var(--sx-ink); cursor: pointer; transition: opacity 0.3s var(--sx-ease), background-color 0.3s var(--sx-ease); }
  .sx-rowx__btn svg { width: 20px; height: 20px; }
  .sx-rowx__btn:disabled { opacity: 0.28; cursor: default; }
  .sx-rowx__btn:active:not(:disabled) { background: rgba(36, 35, 28, 0.07); }
  .sx-rowx__btn:focus-visible { outline: 2px solid var(--sx-ink); outline-offset: 2px; }
}
/* landscape phones: a lower row (pictures, caption and bar in one window
   under the topbar), captions in the meta size and never narrower than
   180 px (a narrow work stands at the left of its place), cards narrower */
@media (max-width: 1023px) and (max-height: 540px) {
  html.sx-root { --rowh: clamp(150px, 46svh, 280px); --rx-gap: 26px; }
  html.sx-root :is(.mal-salon, .sub-gallery, .ub-theater__prints, .ub-jerusalem__prints):has(> :nth-child(3)) > *,
  html.sx-root :is(.sx-sheet, .sx-works):has(> .sx-col:nth-child(3) > *, > .sx-col > :nth-child(2)) > .sx-col > * { min-width: 180px; }
  .is-row .sx-rowx__sheet { width: min(100%, calc(var(--rx-h, var(--rowh)) * var(--rx-ar, 0.72))); }
  .is-row :is(.sub-gallery__title, .mal-item__title) { font-size: var(--t-meta); }
  .is-row :is(.sub-gallery__meta, .mal-item__cap, figcaption) { font-size: var(--t-label); }
  html.sx-root .sx-entries:has(> :nth-child(3)) > .sx-entry { width: min(42vw, 400px); }
  html.sx-root .sx-entries:has(> :nth-child(3)) .sx-entry__media img { aspect-ratio: 16 / 9; }
  html.sx-root .sx-entries:has(> :nth-child(3)) .sx-entry__excerpt { -webkit-line-clamp: 2; }
  html.sx-root { --rx-exw: min(40vw, 360px); }
}

/* /schreiben/ below 1024 px (r9-mobil-unter): the chapters are her texts, read
   down the page, so they stay a column; each closed book stands beside its
   own year, title and subtitle (the book and its name read together, half
   the height of a big book above them), her text below at full width. The
   open book and the photos keep the full width. */
@media (max-width: 1023px) {
  .mp-book__body:has(> .mp-book__cover > .sx-book) {
    grid-template-columns: minmax(0, 40fr) minmax(0, 60fr);
    grid-template-rows: 1fr auto auto auto 1fr;
    gap: 0 20px;
    align-items: start;
  }
  .mp-book__body:has(> .mp-book__cover > .sx-book) > .mp-book__cover { grid-column: 1; grid-row: 1 / span 5; order: 0; align-self: center; }
  .sx .mp-book__body:has(> .mp-book__cover > .sx-book) .mp-book__cover .sx-book { width: 100%; margin: 6px 0 18px; }
  .mp-book__body:has(> .mp-book__cover > .sx-book) > .mp-book__text { display: contents; }
  .mp-book__body:has(> .mp-book__cover > .sx-book) > .mp-book__text > * { grid-column: 1 / -1; max-width: 34em; margin-top: 0.85em; }
  .mp-book__body:has(> .mp-book__cover > .sx-book) > .mp-book__text > .mp-book__year { grid-column: 2; grid-row: 2; margin-top: 0; }
  .mp-book__body:has(> .mp-book__cover > .sx-book) > .mp-book__text > .mp-book__title { grid-column: 2; grid-row: 3; margin-top: 6px !important; font-size: var(--t-h2); line-height: 1.02; }
  .mp-book__body:has(> .mp-book__cover > .sx-book) > .mp-book__text > .mp-book__subtitle { grid-column: 2; grid-row: 4; margin-top: 8px; }
  .mp-book__body:has(> .mp-book__cover > .sx-book) > .mp-book__text > :is(.mp-book__subtitle, .mp-book__title) + p:not(.mp-book__subtitle) { margin-top: 24px; }
}

/* /fragen/ below 1024 px (r9-mobil-unter): the questions as a list, a tap opens
   the answer under it (sub.js questions(); the first stands open). The
   answer unfolds by its height, its text fading in with it. */
.sx-qa__toggle { display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-align: inherit; text-wrap: inherit; cursor: default; }
.sx-qa__icon { display: none; }
@media (max-width: 1023px) {
  .sx-faq.is-acc .sx-body { gap: 0; }
  .sx-faq.is-acc .sx-qa { gap: 0; border-top: 1px solid var(--fx-line); }
  .sx-faq.is-acc .sx-qa:has(+ :not(.sx-qa)) { border-bottom: 1px solid var(--fx-line); margin-bottom: clamp(40px, 7svh, 72px); }
  .sx-faq.is-acc .sx-qa__q { font-size: var(--t-lead); line-height: 1.15; }
  .sx-faq.is-acc .sx-qa__toggle { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 44px; padding: 20px 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .sx-faq.is-acc .sx-qa__toggle:focus-visible { outline: 2px solid var(--sx-ink); outline-offset: 4px; border-radius: 4px; }
  .sx-faq.is-acc .sx-qa__icon { position: relative; display: block; flex: none; width: 32px; height: 32px; border: 1px solid rgba(36, 35, 28, 0.28); border-radius: 50%; transition: background-color 0.4s var(--sx-ease); }
  .sx-faq.is-acc .sx-qa__icon::before, .sx-faq.is-acc .sx-qa__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -0.75px 0 0 -6px; background: var(--sx-ink); transition: transform 0.5s var(--sx-ease); }
  .sx-faq.is-acc .sx-qa__icon::after { transform: rotate(90deg); }
  .sx-faq.is-acc .sx-qa.is-open .sx-qa__icon::after { transform: rotate(0deg); }
  .sx-faq.is-acc .sx-qa__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.55s var(--sx-ease); }
  .sx-faq.is-acc .sx-qa.is-open .sx-qa__a { grid-template-rows: 1fr; }
  .sx-faq.is-acc .sx-qa__in { min-height: 0; overflow: hidden; opacity: 0; translate: 0 -8px; transition: opacity 0.45s var(--sx-ease), translate 0.55s var(--sx-ease); }
  .sx-faq.is-acc .sx-qa.is-open .sx-qa__in { opacity: 1; translate: none; transition-delay: 0.08s; }
  .sx-faq.is-acc .sx-qa__in > :last-child { padding-bottom: 26px; }
}
@media (max-width: 1023px) and (max-height: 540px) {
  .sx .mp-book__body:has(> .mp-book__cover > .sx-book) .mp-book__cover .sx-book { width: min(100%, calc(62svh * var(--ar))); }
  .mp-book__body:has(> .mp-book__cover > .sx-book) { grid-template-columns: minmax(0, 30fr) minmax(0, 70fr); }
}

/* /werk/ below 1024 px (r9-mobil-unter): room between the subtitle and the
   three worlds (the sphere's still, larger than its slot, stood 7 px into
   the subtitle until paper3d drew it) */
@media (max-width: 1023px) { .sx .werk-hero { padding-bottom: 44px; } }

/* Big headings below 1024 px (r9-mobil-unter, Paul's R4): the desktop
   leading of 0.90-0.98 let descenders touch the next line ("Ausgewählte /
   Werke"); on the phone every multi-line heading gets clear air between its
   lines. The :not(#sx) outranks the page rules that set leading through the
   font shorthand. */
@media (max-width: 1023px) {
  html.sx-root main h1:not(#sx) { line-height: 1.08; }
  html.sx-root main h2:not(#sx) { line-height: 1.12; }
  html.sx-root main :is(h3, .sx-entry__title, .mp-book__title, .fx-obj__title):not(#sx) { line-height: 1.15; }
  html.sx-root main .werk-essay__quote p:not(#sx) { line-height: 1.12; }
}

/* Legal texts below 1024 px (r9-mobil-unter): the withdrawal form's blank
   line (45 underscores) and long addresses are single words wider than a
   phone; they wrap instead of running past the edge. */
@media (max-width: 1023px) {
  html.sx-root main.sx-legal :is(p, li, td, a) { overflow-wrap: anywhere; }
  /* a blank line to write on ends at the column's edge */
  html.sx-root main.sx-legal p.sx-blank { overflow: hidden; white-space: nowrap; overflow-wrap: normal; }
}

/* Phone pictures belong to Safari's native scroll layer, never a fixed GL
   canvas. Keep the paper border and contact shadow from first paint. Rows
   already provide their own CSS paper body. */
@media (max-width: 1023px) {
  .sx :is([data-3d="sheet"], [data-3d="print"], [data-3d^="post-"]) > img {
    box-sizing: border-box;
    padding: 2.8%;
    background: #f9f8f5;
    box-shadow: 1px 2px 0 #d6cfbf, 0 12px 20px -12px rgba(36, 28, 16, 0.32);
    opacity: 1;
    transition: none;
  }
  .sx [data-3d="sheet"] > img { padding: 4.5%; background: #f4f1e9; }
  .sx .is-row [data-3d] > img { display: none; }
}
/* An inline cover is always present, including while the full image decodes. */
.sx-stack .sx-book__front { background-image: var(--cover-preview); background-size: 100% 100%; }
.sx-stack .sx-book__front img { opacity: 0; transition: opacity 0.25s linear; }
.sx-stack .sx-book__front img.is-decoded { opacity: 1; }
