/*
  h's pb — base styles
  All measurements come from the June 2026 Illustrator artboards (1920px wide).
  Pages are drawn in artboard units inside SVGs with a 1920-wide viewBox, so the
  layout scales proportionally with the window and matches the mockup 1:1 at 1920px.
*/

/* Fonts (29 Nov 2026): Figtree, hosted with the site (SIL Open Font License 1.1, fonts/Figtree-OFL.txt), in place of
   Proxima Nova; and the Palatino that comes with Windows and macOS, in place of Book Antiqua. The aliases PN / PNA / BA /
   BAR stay, so every rule that uses them follows. */
@font-face { font-family: "PN"; font-style: normal; font-weight: 300 900; font-display: swap; src: url("../fonts/figtree-normal-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "PN"; font-style: normal; font-weight: 300 900; font-display: swap; src: url("../fonts/figtree-normal-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "PN"; font-style: italic; font-weight: 300 900; font-display: swap; src: url("../fonts/figtree-italic-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "PN"; font-style: italic; font-weight: 300 900; font-display: swap; src: url("../fonts/figtree-italic-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "PNA"; font-style: normal; font-weight: 300 900; font-display: swap; src: url("../fonts/figtree-normal-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "PNA"; font-style: normal; font-weight: 300 900; font-display: swap; src: url("../fonts/figtree-normal-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "PNA"; font-style: italic; font-weight: 300 900; font-display: swap; src: url("../fonts/figtree-italic-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "PNA"; font-style: italic; font-weight: 300 900; font-display: swap; src: url("../fonts/figtree-italic-latin.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; }
/* the serif: the computer's own Palatino (Windows: Palatino Linotype; macOS: Palatino) */
@font-face { font-family: "BA"; font-style: italic; font-weight: 400; src: local("Palatino Linotype Italic"), local("PalatinoLinotype-Italic"), local("Palatino Italic"), local("Palatino-Italic"); }
@font-face { font-family: "BAR"; font-weight: 400; src: local("Palatino Linotype"), local("PalatinoLinotype-Roman"), local("Palatino"), local("Palatino-Roman"); }

:root {
  /* colours, exact values from the PDFs */
  --bg: #FAFAFA;
  --ink: #333333;
  --muted: #737373;   /* was #969696 (2.8:1); 4.5:1 on the ground for text (Impeccable audit, 1 Dec 2026) */
  /* the five category colours. Since 1 Dec 2026 yellow, orange and lilac are a little deeper than in the PDFs
     (#E3BC3D, #E18256, #BC8CBF), so that as large text they read at 3:1 on the ground — and dots, rings, fields and
     lines use the same colour as the titles, for one colour per category everywhere */
  --buildings: #B38D00;
  --events: #D6784D;
  --writings: #4F703E;
  --research: #4A6792;
  --imagery: #AD7DB0;

  --sans: "PN", "Figtree", "Helvetica Neue", Arial, sans-serif;
  --sans-alt: "PNA", var(--sans);
}

* { box-sizing: border-box; }
/* a category's colour as TEXT. --ct-big (large text: 24px, or 18.7px bold and up — the list titles, the info bio):
   the category colour itself, 3:1 or more. --ct (small text): the same hue with its lightness capped so it reads
   at 4.5:1 (buildings ~#936E00, events ~#B55A2D; green and blue unchanged). Without --c on the element it is
   unset, so var(--ct, …) falls back (option B, 1 Dec 2026). */
*, ::before, ::after { --ct: oklch(from var(--c) min(l, .555) c h); --ct-big: var(--c); }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
.t-em { font-style: italic; }   /* a title kept in its original language on the PT pages (2 Dec 2026) */
/* constant page width: the layout depends on it. Every page keeps the scrollbar's room, also the ones that do not
   scroll (peep box, info, buildings / imagery) — so the logo, «work · info» and the language never move */
html { overflow-y: scroll; scrollbar-gutter: stable; }
body { overflow-x: clip; }   /* clip, not hidden: «hidden» made the body a scroll box, and «sticky» (list titles) did not stick */
body { font-family: var(--sans); -webkit-font-smoothing: antialiased; }

.stage { position: relative; width: 100%; }
.stage > svg { display: block; width: 100%; height: auto; }

/* ---------- shared header (logo + nav) ---------- */
.site-header { position: absolute; inset: 0 0 auto 0; z-index: 2; pointer-events: none; }
.site-header a { pointer-events: auto; cursor: pointer; }
.site-header text { font-family: var(--sans); font-size: 22px; fill: var(--ink); }
.site-header .nav-main { font-weight: 700; }
/* the cursor (header.js; chosen 25 Nov 2026): a black ring, a filled dot over what can be clicked */
html.cur-b, html.cur-b body, html.cur-b #space, html.cur-b #space:active, html.cur-b .w-slide img { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20'%3E%3Ccircle cx='10' cy='10' r='6' fill='none' stroke='%23222' stroke-width='1.6'/%3E%3C/svg%3E") 10 10, auto; }
html.cur-b :is(a, button, [role=button], .node, label, summary, select), html.cur-b :is(a, button, [role=button], .node) * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20'%3E%3Ccircle cx='10' cy='10' r='6.6' fill='%23222'/%3E%3C/svg%3E") 10 10, pointer; }

/* the logo, drawn in the header; its apostrophe swings like the lid of the box (header.js: first opening, and the
   click home) */
.site-header .logo-art { fill: #333; }
.site-header .logo-ap { transform-box: fill-box; transform-origin: 70% 4%; }
.site-header.logo-b .logo-ap.swing { animation: logo-hinge 2.2s cubic-bezier(.3, .6, .3, 1); }
@keyframes logo-hinge { 0% { transform: rotate(0); } 18% { transform: rotate(-58deg); } 36% { transform: rotate(24deg); } 52% { transform: rotate(-12deg); }
  68% { transform: rotate(6deg); } 84% { transform: rotate(-2deg); } 100% { transform: rotate(0); } }
@media (prefers-reduced-motion: reduce) { .site-header .logo-ap { animation: none !important; transition: none; } }.site-header .nav-main.is-off { fill: var(--muted); }
.site-header .nav-sub { font-weight: 400; }
.site-header .icon { fill: var(--ink); }
.site-header a:hover text, .site-header a:focus-visible text { fill: var(--muted); }
.site-header a:hover .icon { fill: var(--muted); }
.site-header .icon .icon-ring { fill: none; stroke: var(--ink); }   /* peep: a peephole, ring + pupil */
.site-header a:hover .icon .icon-ring { fill: none; stroke: var(--muted); }
.site-header .icon-glass circle, .site-header .icon-glass path { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.site-header a:hover .icon-glass circle, .site-header a:hover .icon-glass path { stroke: var(--muted); }
/* language: «en pt» under «info» — the current one bold (like «work»), the other grey (like «info») */
.site-header .lang { font-family: var(--sans); font-size: 22px; font-weight: 400; fill: var(--muted); letter-spacing: .02em; }
.site-header .lang.is-on { font-weight: 700; fill: var(--ink); }
.site-header .lang-other:hover .lang, .site-header .lang-other:focus-visible .lang { fill: var(--ink); }
.site-header.is-phone .lang { font-size: 15px; }
/* views as a drawer (chosen 23 Nov 2026): closed, the views are hidden and not clickable; opening, they come down one
   after the other (45ms apart), 6px and from transparent — a drawer opening, not a menu popping. Closing is quicker. */
.site-header .h-zone { fill: transparent; pointer-events: none; }
.site-header.drawer.open .h-zone { pointer-events: all; }
.site-header .h-current .icon { fill: var(--muted); }
.site-header .h-current .icon-ring { stroke: var(--muted); }
.site-header .h-current { transition: opacity .2s ease; }
.site-header.drawer.open .h-current { opacity: 0; }
.site-header.drawer [data-view] { pointer-events: none; }
.site-header.drawer.open [data-view] { pointer-events: auto; }
.site-header.drawer .v-in { opacity: 0; transform: translateY(-6px); transition: opacity .15s ease, transform .18s ease; }
.site-header.drawer.open .v-in {
  opacity: 1; transform: none;
  transition: opacity .26s ease calc(var(--i) * 45ms), transform .34s cubic-bezier(.2, .7, .2, 1) calc(var(--i) * 45ms);
}
@media (prefers-reduced-motion: reduce) { .site-header.drawer .v-in, .site-header.drawer.open .v-in, .site-header .h-current { transition: none; } }
/* the language, bottom right (chosen 25 Nov 2026): the pair «en pt» set like «info» (Proxima Nova Bold, 22), the
   current one in ink, the other grey (a link); its right edge exactly on «info»'s at every width (header.js measures
   it: --info-gap), on a light ground so it reads over the peep box */
.lang-corner {
  position: fixed; z-index: 25; right: var(--info-gap, calc(56px * var(--u))); bottom: calc(40px * var(--u));
  display: flex; gap: .55em; font-family: var(--sans); font-weight: 700; font-size: calc(22px * var(--u)); line-height: 1.2;
  padding: 2px 6px; margin: -2px -6px; background: color-mix(in srgb, var(--bg) 88%, transparent); border-radius: 2px;
}
.lang-corner span { color: var(--ink); }
.lang-corner a { color: var(--muted); text-decoration: none; }
.lang-corner a:hover, .lang-corner a:focus-visible { color: var(--ink); outline: none; }
:root[data-mode="px"] .lang-corner { bottom: 24px; font-size: 20px; }
/* phones: always in the bottom-right corner too (never at the top while a page is still loading) */
:root[data-phone="1"] .lang-corner { bottom: 16px; font-size: 16px; padding: 6px 10px; margin: -6px -10px;
  background: var(--bg); border-radius: 4px; box-shadow: 0 0 10px 6px var(--bg); }   /* solid: text scrolling under it never shows through (26 Nov 2026) */
:root[data-phone="1"] main.stage { padding-bottom: 48px; }   /* room under the last line for the language */
/* the view you are in: bold, as «work» / «info» already are (the mockups do not mark it — remove this line to go back) */
.site-header .is-current .nav-sub { font-weight: 700; }
/* phones: compact header, views as icons only */
.site-header.is-phone .nav-sub { display: none; }
.site-header.is-phone .icon { transform-box: fill-box; transform-origin: center; transform: scale(1.25); }
.site-header.is-phone .is-current .icon { fill: var(--ink); }
.site-header.is-phone .is-current .icon-ring { stroke-width: 2.4; }
.site-header.is-phone a:not(.is-current) .icon { opacity: .55; }
.site-header.is-phone a.h-search .icon, .site-header.is-phone .h-work, .site-header.is-phone .h-info { opacity: 1; }
:root[data-phone="1"] .list, :root[data-phone="1"] .grid { padding-top: 124px !important; }
.site-header a:focus { outline: none; }
/* keyboard focus (Tab), never with the mouse: a fine 1px line in ink around what has the focus, or under it for
   words in running text — so one always knows where one is (2 Dec 2026, Impeccable) */
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
.site-header a:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; border-radius: 1px; }
.lang-corner a:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
.grid .cell:focus-visible { outline: none; }
.grid .cell:focus-visible .box { outline: 1px solid var(--ink); outline-offset: 4px; }
.list .what a:focus-visible, .info-bio a:focus-visible, .info-contact a:focus-visible { outline: none; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.site-header .hit { fill: transparent; }

/* ---------- map ---------- */
.map { touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.map .node { cursor: grab; }
.map .node.lvl-item { cursor: pointer; }
.map .node:active { cursor: grabbing; }
.map .node circle { fill: var(--bg); stroke: var(--c); transition: fill .18s ease; }
.map .node text {
  font-family: var(--sans-alt); font-weight: 700; fill: var(--ct);
  text-anchor: middle; pointer-events: none; transition: fill .18s ease;
}
.map .node .ring { transform-box: fill-box; transform-origin: center; transform: scale(var(--s, 1)); transition: transform .22s cubic-bezier(.2,.7,.2,1); }

.map .cat-buildings { --c: var(--buildings); }
.map .cat-events    { --c: var(--events); }
.map .cat-writings  { --c: var(--writings); }
.map .cat-research  { --c: var(--research); }
.map .cat-imagery   { --c: var(--imagery); }

/* hover / focus: the circle fills with its colour */
.map .node.is-hot circle { fill: var(--ct); }
.map .node.is-hot text { fill: var(--bg); }
.map .node.is-hot .ring { --s: 1.12; }
.map .node:focus { outline: none; }

/* hovering a category or sub-category quiets the other branches */
.map .node { transition: opacity .25s ease; }
.map.is-focusing .node:not(.is-related) { opacity: .18; }

@media (prefers-reduced-motion: reduce) {
  .map .node, .map .node circle, .map .node text, .map .node .ring { transition: none; }
}

/* ---------- HTML pages in artboard units ----------
   1u = 1px of the 1920 artboard (scaled with the window), or 1 real px below 90%.
   Baselines are placed exactly: in a line box of height L, a font of size s has its
   baseline at (L - s)/2 + k*s, with k = 0.811 (Proxima Nova) / 0.821 (Book Antiqua Italic),
   measured in the browser. */
:root { --u: 1; }
.u-page { position: relative; }

.cat-buildings { --c: var(--buildings); }
.cat-events    { --c: var(--events); }
.cat-writings  { --c: var(--writings); }
.cat-research  { --c: var(--research); }
.cat-imagery   { --c: var(--imagery); }

/* ---------- list (mockup 03) ----------
   columns x = 360 / 468 / 955 / 1144 / 1306; header baseline 256 (22px bold #969696);
   rows: 24px, baselines 294 + 38n. Line box 38: baseline at 26.46 (24px) / 25.84 (22px). */
.list {
  --left: calc(360px * var(--u));
  padding: calc(230.16px * var(--u)) 0 calc(160px * var(--u)) var(--left);
  font-size: calc(24px * var(--u));
  line-height: calc(38px * var(--u));
}
.list .row {
  display: grid;
  grid-template-columns: calc(108px * var(--u)) calc(487px * var(--u)) calc(189px * var(--u)) calc(162px * var(--u)) auto;
  white-space: nowrap;
}
/* a long title wraps onto a second line instead of running into «for who»; a long client or place is cut with
   «…» inside its column (26 Nov 2026) */
.list .row > * { min-width: 0; }
.list .row:not(.head) .what { white-space: normal; padding-right: calc(28px * var(--u)); }
.list .row:not(.head) .when { white-space: normal; padding-right: calc(8px * var(--u)); }   /* «2014–2015» breaks after the dash */
.list .row:not(.head) :is(.who, .where) { overflow: hidden; text-overflow: ellipsis; padding-right: calc(12px * var(--u)); }
.list .head { font-weight: 700; font-size: calc(22px * var(--u)); color: var(--muted); margin-bottom: calc(-0.62px * var(--u)); }
.list .what a { font-weight: 700; color: var(--ct-big); text-decoration: none; }
.list .what a:hover, .list .what a:focus-visible { text-decoration: underline; text-decoration-thickness: calc(2px * var(--u)); text-underline-offset: calc(4px * var(--u)); outline: none; }
.list .as { font-weight: 700; }
.list .as .sep { font-weight: 400; color: var(--ink); }
/* one colour per row (2 Dec 2026): «as what» in the same colour as the title — both are large text (24px bold on a
   computer; the phone line is 19px bold), so both use the category colour itself */
.list .as span[class^="cat-"] { color: var(--ct-big); }
.list .empty::before { content: "\00a0"; }

/* px mode: same columns, real pixels, centred while they fit */
:root[data-mode="px"] .list { --left: max(16px, calc((var(--w) * 1px - 1140px) / 2)); padding-top: 190px; }
/* narrow: two lines per work — year + title, then for who · where · as what */
@media (max-width: 1171px) {
  .list { padding-left: 16px; padding-right: 16px; }
  .list .head { display: none; }
  .list .row { grid-template-columns: 76px 1fr; white-space: normal; padding: 8px 0 10px; border-bottom: 1px solid #ececec; line-height: 1.3; }
  .list .when { grid-row: 1 / 3; }
  .list .what, .list .when { font-size: 22px; }
  .list .who, .list .where, .list .as { display: none; }
  .list .meta { display: block !important; grid-column: 2; font-size: 18px; color: var(--ink); }
  .list .meta .as { font-size: 19px; }   /* bold 19px = large text: the row's colour can be the title's */
}
.list .meta { display: none; }
/* works without a date: grouped at the end under one label */
.list .row.group { margin-top: calc(38px * var(--u)); }
.list .row.group span { grid-column: 1 / -1; font-weight: 700; font-size: calc(22px * var(--u)); color: var(--muted); }
/* the search, after «what» in the list header */
.list .list-search { all: unset; cursor: pointer; display: inline-grid; place-items: center; vertical-align: -.12em; margin-left: .45em; width: 1em; height: 1em; }
.list .list-search svg { width: .78em; height: .78em; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.list .list-search:hover svg, .list .list-search:focus-visible svg { stroke: var(--ink); }

/* ---------- list: a rule under the titles, the glass at its end, a year once (list.js) ---------- */
.list .head { position: relative; }
/* the rule: 1px, a light grey, halfway between the titles and the first figures; as far from the right edge as
   «when» is from the left (--rule-w, --rule-y set by list.js) */
.list-rule .list .head::after { content: ""; position: absolute; left: 0; top: var(--rule-y, 100%); width: var(--rule-w, 100%); height: 1px;
  background: color-mix(in srgb, var(--muted) 45%, var(--bg)); }
/* the glass at the end of the rule, on the titles' line */
.list-rule .list .head .list-search { position: absolute; left: calc(var(--rule-w, 100%) - .89em); top: 50%; transform: translateY(-50%); margin: 0; }
/* the titles (and the rule) stay at the top while the list scrolls; a little room above them */
.list-sticky .list .head { position: sticky; top: 0; z-index: 5; background: var(--bg); box-shadow: 0 calc(-14px * var(--u)) 0 var(--bg); }
/* a year written once, for its first work (the others keep the place, empty) */
.list-once .list .row.same-year .when { color: transparent; }
@media (max-width: 1171px) { .list .row.group { border-bottom: 0; padding-bottom: 0; } .list .row.group span { font-size: 18px; } }
.list .meta .as { display: inline; }
/* the work's image, following the cursor over its row (list.js) */
/* the work's image while its row is under the cursor (list.js): a fixed box whose top-right corner is where the
   line of «as what» meets the right edge of «info»; the image, whatever its shape, sits in that corner */
.list-peek {
  position: fixed; top: var(--y, var(--top)); z-index: 20; pointer-events: none;
  opacity: 0; transition: opacity .3s ease;
}
.list-peek img {
  position: absolute; top: 0; right: 0; display: block; width: auto; height: auto; max-width: 100%; max-height: 100%;
  opacity: 0; transform: translateY(calc(6px * var(--u))); transition: opacity .3s ease, transform .4s cubic-bezier(.2, .7, .2, 1);
}
.list-peek img.on { opacity: 1; transform: none; }
.list-peek.on { opacity: 1; }
:root[data-phone="1"] .list-peek { display: none; }
/* a film's silent preview, over the work's image while the pointer is on it (header.js hoverFilm; 28 Nov 2026) */
.hover-film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
  opacity: 0; transition: opacity .35s ease; pointer-events: none; background: transparent; }
.film-on > .hover-film { opacity: 1; }
.list-peek .hover-film { inset: 0 0 auto auto; object-fit: contain; }
.grid .box .hover-film { object-fit: contain; }   /* where the image is: centred in its square */
@media (prefers-reduced-motion: reduce) { .list-peek, .list-peek img { transition: none; } }

/* ---------- grid (mockup 04) ----------
   4 columns of 430 at x = 60 + 456.67n; boxes at y = 240 + 600n.
   Title 24px bold, baseline 29.2 below the box; year 22px bold #969696, baseline 26.4 lower. */
.grid {
  --cell: calc(430px * var(--u));
  --gap: calc(26.667px * var(--u));
  --cols: 4;
  --left: calc(60px * var(--u));
  display: grid;
  grid-template-columns: repeat(var(--cols), var(--cell));
  column-gap: var(--gap);
  padding: calc(240px * var(--u)) 0 calc(120px * var(--u)) var(--left);
}
/* row pitch 600 = box 430 + caption 170; the caption space keeps that proportion when boxes shrink */
.grid .cell { display: block; height: calc(var(--cell) * 600 / 430); text-decoration: none; color: inherit; outline: none; }
.grid .box { position: relative; display: flow-root; width: var(--cell); height: var(--cell); }   /* flow-root: keeps the quote's negative margin inside */
.grid .box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; }
.grid .box.placeholder { background: color-mix(in srgb, var(--c) 14%, var(--bg)); }
.grid .quote {
  font-family: "BA", "Book Antiqua", Palatino, "Palatino Linotype", serif; font-style: italic;
  line-height: 1.2;
  /* first baseline 0.726em below the top of its room, as in the mockup; the room is the square less the margins
     grid.js sets (--qt / --qr / --ql; the bottom margin is kept by the fitting) */
  margin: calc(var(--qt, 0px) - .195em) var(--qr, 0px) 0 var(--ql, 0px);
  color: #000;                                   /* one tone for every quote: the darkest */
  overflow-wrap: break-word;
  text-wrap: pretty;          /* paragraph-level line breaking, closer to Illustrator's composer */
}
.grid .quote.manual { white-space: pre; overflow-wrap: normal; }
/* the quote's arrival (grid.js): each line rises a little and comes in, line after line, column after column */
.grid .quote .wd { display: inline-block; }
.grid.reveal .box .quote .wd { opacity: 0; transform: translateY(.35em); }
.grid.reveal .box.in .quote .wd {
  opacity: 1; transform: none;
  transition: opacity .7s ease, transform .9s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--col, 0) * 90ms + var(--l, 0) * 110ms);
}
/* (the sheet's «Tom da citação» — cinzento / preto — is no longer used: every quote in the darkest tone) */
.grid .title {
  font-weight: 700; font-size: calc(24px * var(--u)); line-height: calc(28.8px * var(--u));
  color: var(--ct); margin-top: calc(7.336px * var(--u));
}
.grid .year {
  font-weight: 700; font-size: calc(22px * var(--u)); line-height: calc(26.4px * var(--u));
  color: var(--muted); margin-top: calc(-0.578px * var(--u)); min-height: calc(26.4px * var(--u));
}
.grid .cell:hover .title span, .grid .cell:focus-visible .title span { text-decoration: underline; text-decoration-thickness: calc(2px * var(--u)); text-underline-offset: calc(4px * var(--u)); }
.grid .cell:hover img { opacity: .92; }
:root[data-mode="px"] .grid { padding-top: 190px; }

/* ---------- writings with text and image in one square (grid.js; chosen 25 Nov 2026) ---------- */
.grid .box.dual img { transition: opacity .45s ease; }
.grid .box.dual .quote { position: relative; }
/* the image rests; under the pointer it fades and the quote is set line by line (as when the grid arrives) */
.grid .box.dual.mode-b img { opacity: 1; }
.grid .box.dual.mode-b .quote .wd { opacity: 0 !important; transform: translateY(.35em) !important; transition: opacity .2s ease, transform .2s ease !important; }
.grid .cell:hover .box.dual.mode-b img, .grid .cell:focus-visible .box.dual.mode-b img { opacity: 0; }
.grid .cell:hover .box.dual.mode-b .quote .wd, .grid .cell:focus-visible .box.dual.mode-b .quote .wd {
  opacity: 1 !important; transform: none !important;
  transition: opacity .55s ease, transform .75s cubic-bezier(.2,.7,.2,1) !important; transition-delay: calc(.12s + var(--l, 0) * 95ms) !important;
}
/* ---------- the transition between the views (js/transitions.js, «slide», chosen 25 Nov 2026) ---------- */
html.tr-in :is(#list, #grid, #space) { opacity: 0 !important; }

/* ---------- quick search («/» or the glass) ---------- */
.search { position: fixed; inset: 0; z-index: 60; background: color-mix(in srgb, var(--bg) 97%, transparent); backdrop-filter: blur(3px); overflow-y: auto; }
.search[hidden] { display: none; }
:root.searching { overflow: hidden; }
.search-in { position: relative; width: min(calc(1200px * var(--u)), calc(100vw - 32px)); margin: calc(190px * var(--u)) auto 80px; font-family: var(--sans); color: var(--ink); }
:root[data-mode="px"] .search-in { margin-top: 150px; }
:root[data-phone="1"] .search-in { margin-top: 24px; }
.search input {
  all: unset; box-sizing: border-box; display: block; width: 100%; padding: 0 0 10px; border-bottom: 2px solid var(--ink);
  font-family: var(--sans-alt); font-weight: 700; font-size: max(24px, calc(36px * var(--u))); line-height: 1.5;
}
.search input::placeholder { color: #c4c4c4; }
.search input::-webkit-search-cancel-button { display: none; }
.search-close { all: unset; cursor: pointer; position: absolute; right: 0; top: -44px; font-size: 32px; line-height: 1; color: var(--muted); }
.search-close:hover { color: var(--ink); }
.search-hint { margin: 14px 0 18px; color: var(--muted); font-size: max(15px, calc(18px * var(--u))); line-height: 1.6; }
.search-hint a { color: var(--ink); text-decoration: none; font-weight: 700; }
.search-hint a.r-idea { font-family: "BA", "Book Antiqua", Palatino, serif; font-style: italic; font-weight: 400; }
.search-hint a:hover { text-decoration: underline; text-underline-offset: .15em; }
.search-results { list-style: none; margin: 0; padding: 0; font-size: max(17px, calc(24px * var(--u))); line-height: max(28px, calc(38px * var(--u))); }
.search .res { display: grid; grid-template-columns: max(64px, calc(108px * var(--u))) 1fr auto; column-gap: 16px; color: inherit; text-decoration: none; padding: 2px 0; }
.search .res .yr { color: var(--muted); font-weight: 700; }
.search .res .ti { font-weight: 700; color: var(--ct, var(--ink)); }
.search .res.r-idea .ti { font-family: "BA", "Book Antiqua", Palatino, serif; font-style: italic; font-weight: 400; }
.search .res .wh { color: var(--muted); font-size: .8em; white-space: nowrap; }
.search .res[aria-selected="true"] .ti { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .18em; }
@media (max-width: 640px) { .search .res { grid-template-columns: 52px 1fr; } .search .res .wh { grid-column: 2; } }

/* ---------- the work you came back from (list / grid) ---------- */
@keyframes was-here { 0%, 55% { background-color: color-mix(in srgb, var(--c) 16%, var(--bg)); } 100% { background-color: transparent; } }
.list .row.was-here, .grid .cell.was-here { animation: was-here 3.2s ease-out; }
.grid .cell.was-here { outline: 0; }
@media (prefers-reduced-motion: reduce) { .list .row.was-here, .grid .cell.was-here { animation: none; background: color-mix(in srgb, var(--c) 12%, var(--bg)); } }

