/* Self-hosted type: IBM Plex Sans and Mono, DM Sans (SIL OFL, licences in fonts/), Humane (freeware, fonts/humane/License.pdf). */
/* latin */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 300;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/plex/ibm-plex-sans-latin-300-normal.woff2") format("woff2"); 
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 300;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/plex/ibm-plex-sans-latin-ext-300-normal.woff2") format("woff2"); 
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/plex/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); 
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/plex/ibm-plex-sans-latin-ext-400-normal.woff2") format("woff2"); 
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/plex/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); 
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/plex/ibm-plex-sans-latin-ext-500-normal.woff2") format("woff2"); 
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/plex/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); 
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/plex/ibm-plex-mono-latin-ext-400-normal.woff2") format("woff2"); 
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/dm-sans/dm-sans-latin-700-normal.woff2") format("woff2"); 
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/dm-sans/dm-sans-latin-ext-700-normal.woff2") format("woff2"); 
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
  /* A wall of 12 × 12 screens over a single artwork. Four levels, one screen wall:
       0  the name, alone, top-left; the artwork fills every other screen
       1  hover the name: it shrinks into a square and menu squares switch on beside it
       2  pick a menu: its blocks switch on below
       3  pick a block: it opens up across most of the wall; pick it again to go to the real thing
     Only screens whose picture changes flicker. Black and white only. */
  @font-face { font-family: "Humane"; src: url("fonts/humane/Humane-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
  @font-face { font-family: "Humane"; src: url("fonts/humane/Humane-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
  @font-face { font-family: "Humane"; src: url("fonts/humane/Humane-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
  @font-face { font-family: "Humane"; src: url("fonts/humane/Humane-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
  @font-face { font-family: "Humane"; src: url("fonts/humane/Humane-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
  :root { --n: 12; --ink: #e9e9e6; --dim: #8b8b86; --sans: "IBM Plex Sans", system-ui, sans-serif; --mono: "IBM Plex Mono", ui-monospace, monospace;
          --display: "Humane", "IBM Plex Sans Condensed", system-ui, sans-serif; --dw: 500; --dlh: .76; /* display: weight, caps line height */
          --bezel: .6; --fuse: 600ms; }
  * { box-sizing: border-box; margin: 0; }
  html, body { height: 100%; overflow: hidden; background: #000; color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
  ::selection { background: var(--ink); color: #000; }
  :focus-visible { outline: 1px solid var(--ink); outline-offset: -4px; }
  a { color: inherit; }

  canvas.art { position: fixed; inset: 0; width: 100%; height: 100%; opacity: var(--art, .5); }
  .wall, .shutters { position: fixed; inset: 0; display: grid; grid-template: repeat(var(--n), 1fr) / repeat(var(--n), 1fr); }

  /* Blocks */
  .sec { position: relative; overflow: hidden; container-type: size; padding: clamp(10px, 4cqmin, 28px); background: #0e0e0d; box-shadow: inset 0 0 0 1px #000; cursor: pointer; }
  .sec[hidden] { display: none; }
  .label { position: relative; z-index: 1; font: 400 clamp(10px, 1.1vw, 12px)/1.3 var(--mono); color: var(--dim); letter-spacing: .04em; text-transform: lowercase; }
  .sec.sel > .label { color: #000; background: var(--ink); padding: 0 .35em; margin-left: -.35em; }
  .sec canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
  .body { position: relative; z-index: 1; }
  .more { display: none; }
  @container (min-height: 300px) and (min-width: 340px) { .more { display: block; } }
  /* The link out sits centred in the block's top-right screen, so it lines up with the screens when they show on hover. */
  .open { position: absolute; right: 0; top: 0; width: calc(100vw / var(--n)); height: calc(100dvh / var(--n)); z-index: 2; font: 400 12px var(--mono); color: var(--dim);
          display: none; align-items: center; justify-content: center; white-space: nowrap; }
  .sec.sel .open, .sec.full .open { display: flex; }

  .name { display: flex; flex-direction: column; justify-content: flex-end; }
  .name h1 .ln { white-space: nowrap; }
  /* Once the menu is open the card is small: the name is set to fill it, each line scaled to the card's width. */
  .name.fit { justify-content: center; padding: clamp(8px, 7cqmin, 14px); }
  .name.fit h1 { font-size: 0; line-height: 0; display: flex; flex-direction: column; align-items: flex-start; }
  .name.fit h1 .ln { display: block; font-size: var(--fs, 20px); line-height: var(--dlh); letter-spacing: 0; }
  /* The byline is a hard block in the pocket beside "Aldu": justified on every line, the last included, and spaced to fill it top to bottom. */
  /* Level 0: "Aldu" top left with the byline block under it; "Cornelissen" fills the rest of the card. */
  .name.l0 { padding: clamp(8px, 7cqmin, 14px); }
  .name.l0 h1 .ln { position: absolute; left: var(--x); top: var(--y); font-size: var(--fs, 20px); line-height: var(--dlh); }
  .name.fit p, .name.l0 p { position: absolute; margin: 0; max-width: none; color: var(--dim); text-transform: uppercase; letter-spacing: .03em; font-weight: 500; }
  .name.fit p .bl, .name.l0 p .bl { display: block; white-space: nowrap; line-height: var(--lh); font-size: var(--bs); }
  .name h1 { font: var(--dw) min(30cqi, 60cqh)/var(--dlh) var(--display); letter-spacing: 0; text-transform: uppercase; }
  .name p { margin-top: .7em; font: 400 min(3.4cqi, 11cqh)/1.35 var(--sans); color: var(--dim); max-width: 34ch; }
  @container (max-width: 300px) { .name h1 { font-size: min(19cqi, 30cqh); } .name p { font-size: min(6cqi, 9cqh); } }

  /* Menu card: four screens. On hover the title tucks into the top-left screen and the other three peek at what's inside. */
  .menu { --pad: clamp(8px, 1vw, 14px); }
  .menu .txt { position: absolute; inset: var(--pad); z-index: 1; }
  .menu b { display: block; width: max-content; font: 700 var(--rs, min(24cqi, 40cqh))/var(--dlh) var(--display); letter-spacing: 0; text-transform: uppercase; transform-origin: 0 0; }
  .menu b .w { display: block; }
  .menu small { position: absolute; left: 0; bottom: 0; font: 400 11px/1.35 var(--mono); color: var(--dim); }
  .menu canvas.fx { z-index: 0; pointer-events: none; mix-blend-mode: difference; }   /* under the title, over the card */
  .menu canvas.peek { image-rendering: auto; opacity: 0; }
  .menu { transition: background-color .35s ease-out, color .35s ease-out; }
  @container (max-width: 130px) { .menu small { display: none; } }
  .menu.narrow .peek { display: none; }
  .menu.sel { background: var(--ink); color: #0e0e0d; } .menu.sel small { color: #4a4a46; }

  .murmur .body { position: absolute; left: clamp(10px, 4cqmin, 28px); right: clamp(10px, 4cqmin, 28px); bottom: clamp(10px, 4cqmin, 28px); }
  /* Statements: the condensed display face, set big and tight; where they cross a picture they invert it. */
  .stmt { font: var(--dw) min(13cqi, 19cqh)/.8 var(--display); letter-spacing: 0; text-transform: uppercase; color: #ecebe7; mix-blend-mode: difference; text-wrap: balance; }
  .murmur .stmt { max-width: 8.6em; }
  .lede { margin-top: 1.1em; font: 300 min(1.9cqi, 3.4cqh)/1.35 var(--sans); color: #b9b8b2; max-width: 40ch; }
  @container (max-height: 300px) { .stmt { font-size: min(9cqi, 15cqh); } }

  /* Shipping dashboard: five figures, then three charts in the wall's dither. */
  .dash { cursor: default; display: flex; flex-direction: column; }
  .dash-grid { flex: 1; min-height: 0; display: grid; grid-template: auto minmax(0, 1fr) minmax(0, .8fr) / repeat(5, 1fr); gap: 3cqmin 2.4cqmin; margin-top: 3cqmin; }
  .stat { border-top: 1px solid #2e2e2c; padding-top: 1.4cqmin; }
  .stat b { display: block; font: var(--dw) clamp(40px, 10cqmin, 120px)/var(--dlh) var(--display); letter-spacing: 0; font-variant-numeric: tabular-nums; }
  .stat small { display: block; margin-top: .6em; font: 400 11px/1.35 var(--mono); color: var(--dim); }
  .panel { margin: 0; display: flex; flex-direction: column; min-height: 0; border-top: 1px solid #2e2e2c; padding-top: 1.2cqmin; }
  .panel.cum { grid-column: span 3; } .panel.weeks { grid-column: span 2; } .panel.heatp { grid-column: 1 / -1; }
  .panel figcaption { display: flex; justify-content: space-between; gap: 1em; font: 400 11px/1.35 var(--mono); color: var(--dim); margin-bottom: 1.2cqmin; }
  .panel output { color: var(--ink); font-variant-numeric: tabular-nums; }
  .panel .plot { position: relative; flex: 1; min-height: 0; cursor: crosshair; }
  .panel canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
  .panel .guide { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--ink); opacity: 0; pointer-events: none; }
  .panel .plot:hover .guide, .panel .guide.on { opacity: .6; }
  .panel .mark { position: absolute; outline: 1px solid var(--ink); outline-offset: 1px; opacity: 0; pointer-events: none; transition: opacity .15s; }
  .panel .mark.on { opacity: 1; }
  @container (max-width: 640px) {
    .dash-grid { grid-template: auto auto minmax(0, 1fr) minmax(0, .8fr) minmax(0, .8fr) / repeat(6, 1fr); }
    .stat { grid-column: span 2; } .stat:nth-child(4), .stat:nth-child(5) { grid-column: span 3; }
    .panel.cum, .panel.weeks, .panel.heatp { grid-column: 1 / -1; }
  }

  .llme canvas.ring { image-rendering: auto; }
  /* Murmur's logo in the wall's ink (its shapes as a mask, so it follows light mode), centred like LLMEKNOW's and as wide;
     the flock thins out behind it. */
  .murmur .logo { position: absolute; left: 50%; top: 50%; z-index: 1; transform: translate(-50%, -50%); pointer-events: none;
      width: calc(206 * min(.18cqmin, 1.3px)); aspect-ratio: 136 / 45; background: var(--ink);
      -webkit-mask: url("brand/murmur.svg") center / contain no-repeat; mask: url("brand/murmur.svg") center / contain no-repeat; }
  /* The LLMEKNOW lockup as on llmeknow.com: a 40-unit badge, a 16-unit gap, the wordmark in DM Sans Bold at 25 units. */
  .llme .centre { --u: min(.18cqmin, 1.3px); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: calc(16 * var(--u)); z-index: 1; pointer-events: none; }
  .llme .centre svg { width: calc(40 * var(--u)); height: auto; flex: none; }
  .llme .centre b { font: 700 calc(25 * var(--u))/1 "DM Sans", sans-serif; letter-spacing: -.02em; color: #f5f5f0; }
  .llme .foot { position: absolute; left: clamp(10px, 4cqmin, 28px); right: clamp(10px, 4cqmin, 28px); bottom: clamp(10px, 4cqmin, 28px); z-index: 2; }
  .llme .stmt { max-width: 9em; }

  .books .shelf { position: absolute; inset: 24% 6% 7% 6%; display: flex; gap: 4%; align-items: flex-start; overflow: hidden; }
  .books .shelf .book { all: unset; position: relative; height: 100%; aspect-ratio: 2 / 3; flex: none; cursor: pointer; transition: opacity .3s; }
  .books .shelf .book:focus-visible, .books .shelf .book.on { outline: 1px solid var(--ink); outline-offset: 3px; }
  .books.reading .shelf .book:not(.on) { opacity: .35; }
  /* A series: on hover the rest of the books fan out behind the cover, and a count says how many there are. */
  .books .shelf .book.series { isolation: isolate; }
  .books .shelf .book.series::before, .books .shelf .book.series::after { content: ""; position: absolute; inset: 0; z-index: -1; background: #1b1b19;
      border: 1px solid #4a4a46; transition: transform .35s cubic-bezier(.16, 1, .3, 1); }
  .books .shelf .book.series:hover::before, .books .shelf .book.series.on::before { transform: translate(6px, -6px); }
  .books .shelf .book.series:hover::after, .books .shelf .book.series.on::after { transform: translate(12px, -12px); background: #141413; }
  .books .shelf .book .more-n { position: absolute; right: 6px; top: 6px; z-index: 1; padding: 1px 5px; font: 400 11px var(--mono); color: #0e0e0d; background: var(--ink);
      opacity: 0; transition: opacity .25s; }
  .books .shelf .book.series:hover .more-n, .books .shelf .book.series.on .more-n { opacity: 1; }
  .books .note .vols { grid-column: 1 / -1; display: flex; gap: 2.4cqmin; overflow-x: auto; padding: 1.6cqmin 0 .6cqmin; scrollbar-width: thin; scrollbar-color: #3a3a38 transparent; }
  .books .note .vols[hidden] { display: none; }
  .books .note .vol { flex: none; display: flex; flex-direction: column; gap: .5em; width: clamp(72px, 11cqh, 120px); text-decoration: none; border: 0; }
  .books .note .vol canvas { position: static; display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; image-rendering: auto; transition: outline-color .2s; outline: 1px solid transparent; outline-offset: 3px; }
  .books .note .vol:hover canvas { outline-color: var(--ink); }
  .books .note .vol small { font: 400 10px/1.3 var(--mono); color: var(--dim); }
  .books .shelf canvas.cov { image-rendering: auto; }
  /* A picked book: title and author on the left, a short note and its Goodreads link on the right. */
  .books .note { position: absolute; left: 5%; right: 5%; bottom: 0; z-index: 2; padding: 2.4cqmin 0 max(3.4cqmin, 30px);   /* clear of the switches */ background: #0e0e0d; border-top: 1px solid #2a2a28;
                 display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); column-gap: 5cqi; row-gap: .6em; align-items: start; }
  .books .note[hidden] { display: none; }
  .books .note h3 { grid-column: 1; font: var(--dw) min(6cqi, 9cqh, 76px)/.8 var(--display); text-transform: uppercase; color: #ecebe7; text-wrap: balance; }
  .books .note .by { grid-column: 1; font: 400 11px/1.4 var(--mono); color: var(--dim); }
  .books .note p { grid-column: 2; grid-row: 1 / span 2; font: 300 clamp(14px, 1.6cqi, 19px)/1.45 var(--sans); color: #b9b8b2; max-width: 52ch; }
  .books .note .links { grid-column: 2; display: flex; gap: 1.6em; font: 400 12px var(--mono); }
  .books .note a { text-decoration: none; border-bottom: 1px solid #555; } .books .note a:hover { border-color: var(--ink); }
  .books .note .x { all: unset; cursor: pointer; color: var(--dim); } .books .note .x:hover { color: var(--ink); }
  @container (max-width: 640px) {
    .books .note { grid-template-columns: 1fr; }
    .books .note p, .books .note .links { grid-column: 1; grid-row: auto; }
    .books .note h3 { font-size: 11cqi; }
  }
  @container (min-height: 420px) {
    .books .stmt { position: relative; z-index: 1; margin-top: 2cqmin; font-size: min(9.5cqi, 13cqh); max-width: 14em; }
    .books .shelf { inset: 30% 5% 0 5%; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(120px, 26cqi), 1fr)); gap: 3cqmin; align-content: start; overflow-y: auto; padding-bottom: 5cqmin; scrollbar-width: thin; scrollbar-color: #3a3a38 transparent; }
    .books .shelf .book { height: auto; width: 100%; }
  }

  /* About: a poster. The photo bleeds off the right edge, full height; the statement is set huge and runs into it,
     inverting where it crosses; the facts sit tight beneath as a small index. */
  .about { cursor: default; padding: 0; }
  .about canvas.portrait { left: auto; right: 0; top: 0; width: 50%; height: 100%; image-rendering: auto; }
  /* --s shrinks the About type in steps until it all fits the block (wall.js); on a phone the block scrolls instead. */
  /* Wide: everything lives in the dark half. The title and the intro share the top row, the intro set at the title's foot;
     the facts sit low as four short lists; the contact line closes it. */
  .about .body { --s: 1; position: absolute; inset: 0 50% 0 0; padding: 3.6cqmin 4cqmin; display: grid;
      grid-template: auto 1fr auto auto / minmax(0, 1.25fr) minmax(0, 1fr); gap: calc(3cqmin * var(--s)) 3cqmin; }
  .about .body > .facts, .about .body > .contact { grid-column: 1 / -1; }
  /* The headline stays in the dark half, clear of the portrait, with room under the menu bar. */
  .about h2.big { font: var(--dw) calc(min(8.6cqi, 21cqh) * var(--s))/.8 var(--display); letter-spacing: 0; text-transform: uppercase; max-width: 3.2em; margin-top: calc(4cqmin * var(--s)); color: #ecebe7;
                  mix-blend-mode: difference; position: relative; z-index: 2; text-wrap: balance; }
  .about .lede { align-self: end; font: 300 calc(min(1.45cqi, 2.9cqh) * var(--s))/1.36 var(--sans); color: #b9b8b2; max-width: 34ch; }
  .about .facts { align-self: end; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(3cqmin * var(--s)) 3cqmin; }
  .about .facts dt { font: 400 11px/1 var(--mono); color: var(--dim); padding-top: .9em; margin-bottom: .9em; border-top: 1px solid #2a2a28; }
  .about .facts ul { list-style: none; padding: 0; margin: 0; display: grid; gap: calc(.75em * var(--s)); }
  .about .facts li { display: grid; gap: .1em; }
  .about .facts li b { font-weight: 500; color: var(--ink); } .about .facts li b a { text-decoration: none; border-bottom: 1px solid #555; }
  .about .facts li span { color: #9d9c96; }
  .about .facts dd { margin: 0; font: 400 calc(min(1.15cqi, 2.05cqh) * var(--s))/1.38 var(--sans); color: #b9b8b2; }
  .about .contact { display: flex; flex-wrap: wrap; gap: .5em 1.6em; font: 400 12px var(--mono); }
  .about .contact a, .about .contact .write { text-decoration: none; border-bottom: 1px solid #555; } .about .contact a:hover, .about .contact .write:hover { border-color: var(--ink); }
  .about .contact .write { background: none; border-width: 0 0 1px; padding: 0; font: inherit; color: var(--ink); cursor: pointer; }
  /* The contact form opens over the photo half; on a phone it covers the block and scrolls. */
  .about .mailform { position: absolute; inset: 0 0 0 50%; z-index: 3; background: #0e0e0d; padding: 3.6cqmin 4cqmin; overflow-y: auto; scrollbar-width: thin; }
  .about .mailform[hidden] { display: none; }
  .about .mailform form { display: grid; gap: 1.4em; max-width: 34em; margin-top: 4cqmin; }
  .about .mailform h3 { font: var(--dw) min(6.5cqi, 11cqh)/.8 var(--display); text-transform: uppercase; color: #ecebe7; margin-bottom: .2em; }
  .about .mailform label { display: grid; gap: .4em; }
  .about .mailform label span { font: 400 11px var(--mono); color: var(--dim); }
  .about .mailform input, .about .mailform textarea { background: none; border: 0; border-bottom: 1px solid #3a3a38; border-radius: 0; color: var(--ink);
      font: 300 16px/1.4 var(--sans); padding: .35em 0; resize: vertical; outline: none; }
  .about .mailform input:focus, .about .mailform textarea:focus { border-color: var(--ink); }
  .about .mailform .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
  .about .mailform .ts { min-height: 65px; }
  .about .mailform .row { display: flex; flex-wrap: wrap; align-items: baseline; gap: .6em 1.6em; font: 400 12px var(--mono); }
  .about .mailform .row button { background: none; border: 0; border-bottom: 1px solid #555; padding: 0; font: inherit; color: var(--ink); cursor: pointer; }
  .about .mailform .row button:hover { border-color: var(--ink); } .about .mailform .row button:disabled { opacity: .4; cursor: default; }
  .about .mailform output { color: var(--dim); }
  html.light .about .mailform .ts { filter: invert(1) hue-rotate(180deg); }
  @container (max-aspect-ratio: 1/1) {
    .about canvas.portrait { width: 100%; height: 30%; top: 0; }
    .about .body { inset: 0; padding-top: calc(30cqh - 9cqi); overflow-y: auto; scrollbar-width: none; grid-template: auto auto auto auto / 1fr; }
    .about .body > * { grid-column: 1; }
    .about .mailform { inset: 0; }
    .about h2.big { font-size: 13cqi; max-width: none; margin-top: 0; }
    .about .lede { font-size: max(14px, 3.6cqi); }
    .about .facts { max-width: none; grid-template-columns: 1fr; gap: 2cqh; }
    .about .facts dd { font-size: max(13px, 3.2cqi); }
  }

  /* Screens: one element per screen, above everything, never in the way of the pointer. */
  .shutters { pointer-events: none; z-index: 10; }
  .cell { box-shadow: inset 0 0 0 1px #000, inset 0 0 22px rgba(0,0,0,var(--bezel)); }
  .cell[data-s="off"]   { background: #000; }
  .cell[data-s="dim"]   { background: #070707; }
  .cell[data-s="flash"] { background: #ededea; }
  .cell[data-s="grey"]  { background: #2a2a28; }
  .cell[data-s="art"]   { background: transparent; box-shadow: none; }   /* the artwork runs across the wall unbroken */
  .cell[data-s="on"]    { background: transparent; box-shadow: none; transition: box-shadow var(--fuse) ease-out .15s; }
  .cell.hov[data-s="on"] { box-shadow: inset 0 0 0 1px #000, inset 0 0 22px rgba(0,0,0,var(--bezel)); transition: box-shadow .25s ease-out; }
  .cell.snap { transition: none !important; }
  .cell.ping { background: rgba(233,233,230,.08) !important; }
  @media (prefers-reduced-motion: reduce) { .cell { transition: background .3s; } }

  /* Theme and language switches: top right, in the free screens beside the menu (bottom right on phones). */
  .switches { position: fixed; right: 14px; top: 12px; z-index: 30; display: flex; gap: 1.8em; mix-blend-mode: difference; }
  .switch { display: flex; gap: .8em; padding: 4px 2px; background: none; border: 0; font: 400 12px var(--mono); color: #8b8b86; cursor: pointer; }
  .switch span.on { color: #e9e9e6; border-bottom: 1px solid currentColor; }
  .switch:hover span:not(.on) { color: #c9c9c5; }
  @media (max-aspect-ratio: 4/5) { .switches { top: auto; bottom: 10px; right: 12px; } }
  /* Light mode: the whole wall inverted (hue kept), photographs and covers inverted back so they stay true. */
  html.light { filter: invert(1) hue-rotate(180deg); }
  html.light :is(.about canvas.portrait, .books canvas.cov, .books .vol canvas) { filter: invert(1) hue-rotate(180deg); }

  /* Tuning panel: T or ?tune. */
  #tune { position: fixed; right: 12px; bottom: 12px; z-index: 50; width: 300px; padding: 14px 16px 12px; background: rgba(8,8,8,.94);
          border: 1px solid #2a2a28; font: 400 11px/1.3 var(--mono); color: var(--ink); max-height: calc(100vh - 24px); overflow-y: auto; scrollbar-width: thin; }
  #tune[hidden] { display: none; }
  #tune h3 { font: 400 11px var(--mono); color: var(--dim); margin: 16px 0 10px; padding-top: 10px; border-top: 1px solid #2a2a28; }
  #tune h2 { font: 400 11px var(--mono); color: var(--dim); margin-bottom: 10px; display: flex; justify-content: space-between; }
  #tune label { display: grid; grid-template-columns: 1fr 44px; gap: 2px 8px; margin-bottom: 9px; }
  #tune label span { color: #c9c9c5; } #tune output { text-align: right; color: var(--dim); }
  #tune input { grid-column: 1 / -1; width: 100%; accent-color: #e9e9e6; height: 14px; }
  #tune small { grid-column: 1 / -1; color: #6c6c68; }
  #tune .row { display: flex; gap: 6px; margin-top: 6px; }
  #tune button { flex: 1; background: none; border: 1px solid #3a3a38; color: var(--ink); font: 400 11px var(--mono); padding: 6px 0; cursor: pointer; }
  #tune button:hover { background: var(--ink); color: #000; }
