/* Fragrance Mania — a printed perfume journal in two inks: warm paper by day, the original warm near-black by night,
   neutral grey fields and one amber accent. Amber fills (buttons, tiles) carry dark ink; amber text is darkened by day.
   Layout: one column line (the axis) at 42% of the page; headings and reading text hang from it, notes and pictures live left of it. */
:root {
  color-scheme: light;
  --bg: #f5f2ed;          /* warm paper */
  --surface: #ece8e1;     /* one tone step down */
  --surface-2: #e3ded5;
  --ink: #161412;         /* 16.5:1 on paper */
  --muted: #5c564e;       /* 6.5:1 on paper */
  --field: #e6e2db;       /* whole sections one step darker */
  --field-2: #dcd7cf;
  --field-ink: #161412;   /* 14.2:1 */
  --field-muted: #4f4a43; /* 6.8:1 */
  --accent: #d4a85a;      /* amber: fills only by day, under dark ink (8.4:1) */
  --accent-ink: #161412;
  --accent-text: #7a561c; /* amber as text by day: 5.9:1 on paper, 5.1:1 on the field */

  --flacon: var(--ink);   /* colour of the bottle layer */
  /* the bottle strips, inlined from img/flacons-*.svg (make_flacons.py) so they also work from disk */
  --flacons-left: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 1000'><g transform='translate(30 40) scale(0.9)'><path d='M46 0H174A6 6 0 0 1 180 6V112A6 6 0 0 1 174 118H46A6 6 0 0 1 40 112V6A6 6 0 0 1 46 0ZM56 12H60A4 4 0 0 1 64 16V102A4 4 0 0 1 60 106H56A4 4 0 0 1 52 102V16A4 4 0 0 1 56 12Z' fill-opacity='1' fill-rule='evenodd'/><path d='M56 12H60A4 4 0 0 1 64 16V102A4 4 0 0 1 60 106H56A4 4 0 0 1 52 102V16A4 4 0 0 1 56 12Z' fill-opacity='0.5'/><path d='M83 118H137A3 3 0 0 1 140 121V139A3 3 0 0 1 137 142H83A3 3 0 0 1 80 139V121A3 3 0 0 1 83 118Z' fill-opacity='0.9'/><path d='M18 142H202A18 18 0 0 1 220 160V376A18 18 0 0 1 202 394H18A18 18 0 0 1 0 376V160A18 18 0 0 1 18 142ZM57 222H163A2 2 0 0 1 165 224V290A2 2 0 0 1 163 292H57A2 2 0 0 1 55 290V224A2 2 0 0 1 57 222ZM20.5 162H20.5A4.5 4.5 0 0 1 25 166.5V353.5A4.5 4.5 0 0 1 20.5 358H20.5A4.5 4.5 0 0 1 16 353.5V166.5A4.5 4.5 0 0 1 20.5 162Z' fill-opacity='0.42' fill-rule='evenodd'/><path d='M24 190H196A10 10 0 0 1 206 200V336A10 10 0 0 1 196 346H24A10 10 0 0 1 14 336V200A10 10 0 0 1 24 190Z' fill-opacity='0.18'/><path d='M57 222H163A2 2 0 0 1 165 224V290A2 2 0 0 1 163 292H57A2 2 0 0 1 55 290V224A2 2 0 0 1 57 222Z' fill-opacity='0.22'/><path d='M20.5 162H20.5A4.5 4.5 0 0 1 25 166.5V353.5A4.5 4.5 0 0 1 20.5 358H20.5A4.5 4.5 0 0 1 16 353.5V166.5A4.5 4.5 0 0 1 20.5 162Z' fill-opacity='0.08'/><path d='M18 352H202A18 18 0 0 1 220 370V376A18 18 0 0 1 202 394H18A18 18 0 0 1 0 376V370A18 18 0 0 1 18 352Z' fill-opacity='0.55'/></g><g transform='translate(252 330) scale(0.9)'><path d='M25 0H25A17 17 0 0 1 42 17V55A17 17 0 0 1 25 72H25A17 17 0 0 1 8 55V17A17 17 0 0 1 25 0Z' fill-opacity='1'/><path d='M15 72H35A1 1 0 0 1 36 73V77A1 1 0 0 1 35 78H15A1 1 0 0 1 14 77V73A1 1 0 0 1 15 72Z' fill-opacity='0.9'/><path d='M14 78H36A9 9 0 0 1 45 87V285A9 9 0 0 1 36 294H14A9 9 0 0 1 5 285V87A9 9 0 0 1 14 78ZM14.5 88H14.5A2.5 2.5 0 0 1 17 90.5V271.5A2.5 2.5 0 0 1 14.5 274H14.5A2.5 2.5 0 0 1 12 271.5V90.5A2.5 2.5 0 0 1 14.5 88Z' fill-opacity='0.45' fill-rule='evenodd'/><path d='M14.5 88H14.5A2.5 2.5 0 0 1 17 90.5V271.5A2.5 2.5 0 0 1 14.5 274H14.5A2.5 2.5 0 0 1 12 271.5V90.5A2.5 2.5 0 0 1 14.5 88Z' fill-opacity='0.1'/><path d='M14 270H36A9 9 0 0 1 45 279V285A9 9 0 0 1 36 294H14A9 9 0 0 1 5 285V279A9 9 0 0 1 14 270Z' fill-opacity='0.55'/></g><g transform='translate(40 470) scale(1)'><path d='M35 0H85A5 5 0 0 1 90 5V67A5 5 0 0 1 85 72H35A5 5 0 0 1 30 67V5A5 5 0 0 1 35 0Z' fill-opacity='1'/><path d='M38 72H82A2 2 0 0 1 84 74V86A2 2 0 0 1 82 88H38A2 2 0 0 1 36 86V74A2 2 0 0 1 38 72Z' fill-opacity='0.9'/><path d='M12 88H108A12 12 0 0 1 120 100V316A12 12 0 0 1 108 328H12A12 12 0 0 1 0 316V100A12 12 0 0 1 12 88ZM20 150H100A2 2 0 0 1 102 152V240A2 2 0 0 1 100 242H20A2 2 0 0 1 18 240V152A2 2 0 0 1 20 150ZM13.5 100H13.5A3.5 3.5 0 0 1 17 103.5V302.5A3.5 3.5 0 0 1 13.5 306H13.5A3.5 3.5 0 0 1 10 302.5V103.5A3.5 3.5 0 0 1 13.5 100Z' fill-opacity='0.42' fill-rule='evenodd'/><path d='M20 150H100A2 2 0 0 1 102 152V240A2 2 0 0 1 100 242H20A2 2 0 0 1 18 240V152A2 2 0 0 1 20 150Z' fill-opacity='0.2'/><path d='M13.5 100H13.5A3.5 3.5 0 0 1 17 103.5V302.5A3.5 3.5 0 0 1 13.5 306H13.5A3.5 3.5 0 0 1 10 302.5V103.5A3.5 3.5 0 0 1 13.5 100Z' fill-opacity='0.08'/><path d='M12 298H108A12 12 0 0 1 120 310V316A12 12 0 0 1 108 328H12A12 12 0 0 1 0 316V310A12 12 0 0 1 12 298Z' fill-opacity='0.55'/></g><g transform='translate(30 830) scale(0.95)'><path d='M78 30a52 28 0 1 0 104 0a52 28 0 1 0 -104 0Z' fill-opacity='1'/><path d='M112 54H148A2 2 0 0 1 150 56V66A2 2 0 0 1 148 68H112A2 2 0 0 1 110 66V56A2 2 0 0 1 112 54Z' fill-opacity='0.9'/><path d='M0 118a130 54 0 1 0 260 0a130 54 0 1 0 -260 0ZM38 100a40 7 0 1 0 80 0a40 7 0 1 0 -80 0Z' fill-opacity='0.42' fill-rule='evenodd'/><path d='M38 100a40 7 0 1 0 80 0a40 7 0 1 0 -80 0Z' fill-opacity='0.1'/><path d='M12 136a118 30 0 1 0 236 0a118 30 0 1 0 -236 0Z' fill-opacity='0.25'/></g></svg>");
  --flacons-right: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 1000'><g transform='translate(110 30) scale(0.9)'><path d='M90 0L130 70L120 190H60L50 70ZM90 12L101 70L96 178H84L79 70Z' fill-opacity='1' fill-rule='evenodd'/><path d='M90 12L101 70L96 178H84L79 70Z' fill-opacity='0.45'/><path d='M62 190H118A2 2 0 0 1 120 192V206A2 2 0 0 1 118 208H62A2 2 0 0 1 60 206V192A2 2 0 0 1 62 190Z' fill-opacity='0.9'/><path d='M40 208H140L180 250V382L140 422H40L0 382V250ZM50 226H130L160 256V374L130 404H50L20 374V256Z' fill-opacity='0.5' fill-rule='evenodd'/><path d='M50 226H130L160 256V374L130 404H50L20 374V256Z' fill-opacity='0.26'/><path d='M80 230H100V400H80Z' fill-opacity='0.12'/></g><g transform='translate(16 480) scale(0.8)'><path d='M23 0H137A3 3 0 0 1 140 3V77A3 3 0 0 1 137 80H23A3 3 0 0 1 20 77V3A3 3 0 0 1 23 0Z' fill-opacity='0.95'/><path d='M57 80H103A2 2 0 0 1 105 82V92A2 2 0 0 1 103 94H57A2 2 0 0 1 55 92V82A2 2 0 0 1 57 80Z' fill-opacity='0.9'/><path d='M12 94H148A12 12 0 0 1 160 106V228A12 12 0 0 1 148 240H12A12 12 0 0 1 0 228V106A12 12 0 0 1 12 94ZM38 140H122A2 2 0 0 1 124 142V188A2 2 0 0 1 122 190H38A2 2 0 0 1 36 188V142A2 2 0 0 1 38 140Z' fill-opacity='0.42' fill-rule='evenodd'/><path d='M38 140H122A2 2 0 0 1 124 142V188A2 2 0 0 1 122 190H38A2 2 0 0 1 36 188V142A2 2 0 0 1 38 140Z' fill-opacity='0.2'/><path d='M12 212H148A12 12 0 0 1 160 224V228A12 12 0 0 1 148 240H12A12 12 0 0 1 0 228V224A12 12 0 0 1 12 212Z' fill-opacity='0.55'/></g><g transform='translate(128 540) scale(0.78)'><path d='M80 40a40 40 0 1 0 80 0a40 40 0 1 0 -80 0ZM95 26a9 9 0 1 0 18 0a9 9 0 1 0 -18 0Z' fill-opacity='1' fill-rule='evenodd'/><path d='M95 26a9 9 0 1 0 18 0a9 9 0 1 0 -18 0Z' fill-opacity='0.4'/><path d='M100 78H140A2 2 0 0 1 142 80V92A2 2 0 0 1 140 94H100A2 2 0 0 1 98 92V80A2 2 0 0 1 100 78Z' fill-opacity='0.9'/><path d='M10 190a110 110 0 1 0 220 0a110 110 0 1 0 -220 0ZM36 190a84 84 0 1 0 168 0a84 84 0 1 0 -168 0Z' fill-opacity='0.5' fill-rule='evenodd'/><path d='M36 190a84 84 0 1 0 168 0a84 84 0 1 0 -168 0Z' fill-opacity='0.22'/><path d='M64 292H176A4 4 0 0 1 180 296V298A4 4 0 0 1 176 302H64A4 4 0 0 1 60 298V296A4 4 0 0 1 64 292Z' fill-opacity='0.6'/></g><g transform='translate(50 740) scale(0.75)'><path d='M25 0H25A17 17 0 0 1 42 17V55A17 17 0 0 1 25 72H25A17 17 0 0 1 8 55V17A17 17 0 0 1 25 0Z' fill-opacity='1'/><path d='M15 72H35A1 1 0 0 1 36 73V77A1 1 0 0 1 35 78H15A1 1 0 0 1 14 77V73A1 1 0 0 1 15 72Z' fill-opacity='0.9'/><path d='M14 78H36A9 9 0 0 1 45 87V285A9 9 0 0 1 36 294H14A9 9 0 0 1 5 285V87A9 9 0 0 1 14 78ZM14.5 88H14.5A2.5 2.5 0 0 1 17 90.5V271.5A2.5 2.5 0 0 1 14.5 274H14.5A2.5 2.5 0 0 1 12 271.5V90.5A2.5 2.5 0 0 1 14.5 88Z' fill-opacity='0.45' fill-rule='evenodd'/><path d='M14.5 88H14.5A2.5 2.5 0 0 1 17 90.5V271.5A2.5 2.5 0 0 1 14.5 274H14.5A2.5 2.5 0 0 1 12 271.5V90.5A2.5 2.5 0 0 1 14.5 88Z' fill-opacity='0.1'/><path d='M14 270H36A9 9 0 0 1 45 279V285A9 9 0 0 1 36 294H14A9 9 0 0 1 5 285V279A9 9 0 0 1 14 270Z' fill-opacity='0.55'/></g></svg>");
  --display: 'Literata', Georgia, 'Times New Roman', serif;
  --text: 'Onest', system-ui, sans-serif;

  --step-small: 0.9375rem;                                   /* 15px */
  --step-body: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);    /* 17–19px */
  --step-lead: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);     /* 20–26px */
  --step-head: clamp(2.125rem, 1.3rem + 3vw, 4.25rem);       /* 34–68px */
  --step-quote: clamp(1.375rem, 1rem + 1.1vw, 2.25rem);     /* 22–36px: statements */
  --step-display: clamp(2.5rem, 0.6rem + 5.4vw, 6.25rem);   /* 40–100px */

  --margin: clamp(16px, 2.4vw, 40px);
  --gutter: clamp(16px, 2.2vw, 36px);
  --axis: 42%;
  --section: clamp(96px, 12vw, 200px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 260ms;
}
/* night: warm near-black, as the original site, with neutral grey fields and the amber accent */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b0a09; --surface: #151515; --surface-2: #1e1e1e;
    --ink: #ece4d8; --muted: #a89e90;              /* 15.7:1 and 7.5:1 on the ground */
    --field: #1e1e1e; --field-2: #2a2a2a; --field-ink: #ece4d8; --field-muted: #b9b4ac;   /* neutral dark grey, 13:1 for text, 7.6:1 for amber */
    --accent-ink: #0b0a09; --accent-text: var(--accent);
    --flacon: var(--accent);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0a09; --surface: #151515; --surface-2: #1e1e1e;
  --ink: #ece4d8; --muted: #a89e90;
  --field: #1e1e1e; --field-2: #2a2a2a; --field-ink: #ece4d8; --field-muted: #b9b4ac;
  --accent-ink: #0b0a09; --accent-text: var(--accent);
  --flacon: var(--accent);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--step-body)/1.55 var(--text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
/* the bottle layer: two strips of drawn bottles (img/flacons-*.svg) used as masks, fixed in the margins, behind everything */
body::before, body::after {
  content: ''; position: fixed; top: 0; bottom: 0; z-index: -1; pointer-events: none; width: 32vh; opacity: 0.13;
  background: var(--flacon); -webkit-mask: var(--flacons-left) 0 0 / 100% 100% no-repeat; mask: var(--flacons-left) 0 0 / 100% 100% no-repeat;
}
body::before { left: -2vh; }
body::after { right: -2vh; -webkit-mask-image: var(--flacons-right); mask-image: var(--flacons-right); }
body:has(main.article)::before, body:has(main.article)::after { opacity: 0.07; }
@media (max-width: 860px) { body::before, body::after { width: 24vh; opacity: 0.08; } body:has(main.article)::before, body:has(main.article)::after { opacity: 0.05; } }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--margin); top: 8px; z-index: 50; padding: 12px 18px; background: var(--ink); color: var(--bg); text-decoration: none; transform: translateY(-150%); }
.skip:focus { transform: none; }

h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -0.025em; line-height: 1; margin: 0; text-wrap: balance; }
h2 { font-size: var(--step-head); }
p { margin: 0 0 1em; }
b, strong { font-weight: 600; }

.link { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.24em; text-decoration-color: color-mix(in oklab, currentColor 40%, transparent); transition: text-decoration-color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .link:hover { text-decoration-color: currentColor; } }
button.link { background: none; border: 0; padding: 0; cursor: pointer; }

.button {
  display: inline-flex; align-items: center; gap: 0.6em; min-height: 52px; padding: 0 1.5em;
  background: var(--ink); color: var(--bg); font: 500 var(--step-body)/1 var(--text);
  text-decoration: none; border: 0; border-radius: 999px; cursor: pointer;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.button:active { transform: scale(0.97); }
.button .arrow { display: inline-block; transition: transform 320ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: color-mix(in oklab, var(--ink) 86%, var(--bg)); }
  .button:hover .arrow { transform: translateY(3px); }
}
.field .button { background: var(--accent); color: var(--accent-ink); }

/* a whole section in the second colour */
.field { background: var(--field); color: var(--field-ink); --muted: var(--field-muted); }
.field ::selection { background: var(--accent); color: var(--accent-ink); }

/* ---------- the bar: wordmark block, a tab of links to the axis, tools at the right ---------- */
.bar { position: relative; z-index: 20; display: flex; align-items: stretch; min-height: 64px; background: var(--bg); }
.bar__mark {
  display: flex; align-items: center; padding: 0 var(--margin); background: var(--field); color: var(--field-ink);
  font: 500 1.375rem/1 var(--display); letter-spacing: -0.02em; text-decoration: none; white-space: nowrap;
}
.nav { display: flex; align-items: stretch; flex: 0 0 auto; min-width: calc(var(--axis) - 14rem); background: var(--surface); padding: 0 calc(var(--gutter) / 2); }
.nav a { display: flex; align-items: center; min-height: 44px; padding: 0 calc(var(--gutter) / 2); text-decoration: none; font-size: var(--step-small); font-weight: 500; transition: background-color var(--t-hover) ease; }
.nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.4em; }
@media (hover: hover) and (pointer: fine) { .nav a:hover { background: var(--surface-2); } }
.bar__tools { margin-left: auto; display: flex; align-items: center; gap: 8px; padding: 0 var(--margin); }
.bar__theme, .bar__menu { min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--surface); font-size: var(--step-small); font-weight: 500; cursor: pointer; white-space: nowrap; transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.bar__theme:active, .bar__menu:active { transform: scale(0.96); }
.bar__theme { display: inline-flex; align-items: center; gap: 8px; }
/* a half-filled disc: day and night in one mark */
.bar__theme-icon { position: relative; flex: none; width: 16px; height: 16px; border: 2px solid currentColor; border-radius: 50%; overflow: hidden; }
.bar__theme-icon::after { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; right: 0; background: currentColor; }
@media (max-width: 520px) {
  .bar__theme { width: 44px; padding: 0; justify-content: center; }
  .bar__theme-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .bar__mark { padding: 0 12px 0 var(--margin); font-size: 1.25rem; }
  .bar__tools { gap: 6px; padding-left: 6px; }
}
@media (max-width: 350px) { .bar__mark { font-size: 1.0625rem; padding-right: 8px; } .bar__menu { padding: 0 12px; } }
@media (hover: hover) and (pointer: fine) { .bar__theme:hover, .bar__menu:hover { background: var(--surface-2); } }
@media (max-width: 860px) {
  .bar { flex-wrap: wrap; }
  .bar__mark { min-height: 56px; }
  .bar__tools { padding: 0 var(--margin) 0 8px; }
  .nav { order: 3; flex: 1 0 100%; min-width: 0; flex-wrap: wrap; padding: 0 calc(var(--margin) - 8px); }
  .nav a { padding: 0 8px; }
  /* with script the links fold into a menu that drops below the bar */
  .js .nav { display: none; }
  .js .bar.is-open .nav { display: grid; position: absolute; left: 0; right: 0; top: 100%; padding: 8px var(--margin) 24px; background: var(--field); color: var(--field-ink); box-shadow: 0 24px 48px -24px rgb(0 0 0 / 0.45); } /* taste-skill-ignore: the open menu floats over the page */
  .js .bar.is-open .nav a { min-height: 56px; padding: 0; font: 500 1.75rem/1 var(--display); letter-spacing: -0.02em; }
  @media (hover: hover) and (pointer: fine) { .js .bar.is-open .nav a:hover { background: none; text-decoration: underline; } }
}

/* ---------- home: the masthead mosaic ---------- */
.section { padding: var(--section) var(--margin) 0; }
.section.field { padding-top: clamp(72px, 9vw, 140px); padding-bottom: clamp(72px, 9vw, 140px); margin-top: var(--section); }
.mosaic { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); height: clamp(340px, 52svh, 620px); }
.mosaic__cell { position: relative; margin: 0; overflow: clip; background: var(--surface); display: block; }
.mosaic__cell img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.mosaic__ram { grid-column: 1 / 3; grid-row: 1 / 3; }
.mosaic__ram img { object-position: 50% 0; transform-origin: 50% 0; }   /* keep air above Ram's head */
.mosaic__p1 { grid-column: 3; grid-row: 1 / 3; }
.mosaic__p2 { grid-column: 4 / 6; grid-row: 1; }
.mosaic__t1 { grid-column: 4; grid-row: 2; }
.mosaic__t2 { grid-column: 5; grid-row: 2; }
.mosaic__p3 { grid-column: 6; grid-row: 1 / 3; }
.mosaic__p4 { grid-column: 7; grid-row: 1 / 3; }
.mosaic__pic { background: #d6d6d8; }
.mosaic__pic img { object-position: 50% 55%; }
.mosaic__p2 img { object-position: 50% 50%; }
.mosaic__tile { display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(14px, 1.6vw, 24px); text-decoration: none; font-size: var(--step-small); line-height: 1.3; transition: background-color var(--t-hover) ease; }
.mosaic__t1 { background: var(--field); color: var(--field-ink); }
.mosaic__t2 { background: var(--accent); color: var(--accent-ink); }
.mosaic__num { font: 500 var(--step-head)/0.9 var(--display); letter-spacing: -0.04em; margin-bottom: 8px; }
@media (hover: hover) and (pointer: fine) {
  a.mosaic__pic:hover img { transform: scale(1.06); }
  .mosaic__t1:hover { background: var(--field-2); }
}
.mast__text { display: grid; grid-template-columns: minmax(0, var(--axis)) minmax(0, 1fr); padding: clamp(40px, 6vw, 96px) var(--margin) 0; align-items: start; }
.mast__lead { font-size: var(--step-lead); line-height: 1.35; max-width: 24ch; padding-right: var(--gutter); margin: 0.6em 0 0; }
.mast h1 { font-size: clamp(2.125rem, 0.5rem + 4.2vw, 4.875rem); line-height: 1.02; letter-spacing: -0.03em; }
.mast h1 .line { display: block; overflow: hidden; padding: 0.06em 0 0.24em; margin: -0.06em 0 -0.24em; }  /* room for Д, у, р, g descenders inside the mask */
.mast h1 [data-line] { display: block; }
.mast__links { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: 40px; }
@media (max-width: 1000px) {
  .mast__text { grid-template-columns: minmax(0, 1fr); }
  .mast__title { order: -1; }
  .mast h1 { font-size: 7.4vw; }
  .mast__lead { margin-top: 24px; max-width: 34ch; }
}
@media (max-width: 760px) {
  .mosaic { grid-template-columns: repeat(3, minmax(0, 1fr)); height: clamp(260px, 42svh, 420px); }
  .mosaic__ram { grid-column: 1 / 3; grid-row: 1 / 3; }
  .mosaic__p1 { grid-column: 3; grid-row: 1 / 3; }
  .mosaic__p2, .mosaic__p3, .mosaic__p4, .mosaic__t1, .mosaic__t2 { display: none; }
  .mast__lead { font-size: 1.125rem; }
  .mast__links { margin-top: 28px; }
}

/* ---------- home: the library (statement heading, list pushed right, a picture held on the left) ---------- */
.library__head { display: grid; grid-template-columns: minmax(0, var(--axis)) minmax(0, 1fr); align-items: end; margin-bottom: clamp(40px, 5vw, 80px); }
.library__head h2 { font-size: var(--step-display); letter-spacing: -0.035em; }
.library__head p { font-size: var(--step-lead); line-height: 1.35; max-width: 30ch; margin: 0; }
.contents { display: grid; grid-template-columns: minmax(0, var(--axis)) minmax(0, 1fr); align-items: start; }
.contents__preview { margin: 0; position: sticky; top: 24px; padding-right: clamp(32px, 5vw, 96px); }
.contents__preview .pic { overflow: clip; background: var(--surface); aspect-ratio: 4 / 5; }
.contents__preview img { width: 100%; height: 100%; object-fit: cover; transition: opacity 420ms ease, transform 1200ms var(--ease-soft); }
.contents__preview img.is-swapping { opacity: 0; transform: scale(1.04); }
.contents__preview figcaption { margin-top: 14px; color: var(--muted); font-size: var(--step-small); max-width: 40ch; }
@media (max-width: 860px) {
  .library__head, .contents { grid-template-columns: minmax(0, 1fr); }
  .library__head p { margin-top: 20px; }
  .contents__preview { display: none; }
}

.search { margin-bottom: 32px; }
.search label { display: block; font-weight: 500; margin-bottom: 10px; }
.search__field { position: relative; }
.search input {
  width: 100%; min-height: 60px; padding: 0 56px 0 22px; border: 0; border-radius: 999px; background: var(--surface); color: var(--ink);
  font: 400 var(--step-lead)/1 var(--display); -webkit-appearance: none; appearance: none;
}
.search input::placeholder { color: var(--muted); opacity: 1; }
.search input::-webkit-search-cancel-button { display: none; }
.search input:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.search__clear { position: absolute; right: 8px; top: 8px; width: 44px; height: 44px; border: 0; border-radius: 999px; background: var(--surface-2); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.search__count { margin: 12px 0 0; min-height: 1.5em; color: var(--muted); font-size: var(--step-small); }
.search__empty { font-size: var(--step-lead); line-height: 1.4; max-width: 36ch; }
.field .search input { background: var(--field-2); color: var(--field-ink); }

.bars { display: grid; gap: 4px; }
.bar-row { background: transparent; transition: background-color var(--t-hover) ease; }
.bar-row[open] { background: var(--surface); }
.bar-row summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 20px; align-items: center;
  min-height: 72px; padding: 16px 20px;
}
.bar-row summary::-webkit-details-marker { display: none; }
.bar-row__name { font: 500 var(--step-lead)/1.15 var(--display); letter-spacing: -0.015em; }
.bar-row__desc .count { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.bar-row__desc { grid-column: 1; margin-top: 6px; color: var(--muted); font-size: var(--step-small); }
.bar-row summary .plus { grid-column: 2; grid-row: 1 / 3; position: relative; width: 44px; height: 44px; border-radius: 999px; background: var(--surface); transition: background-color var(--t-hover) ease, transform var(--t-ui) var(--ease-out); }
.bar-row[open] summary .plus { background: var(--bg); }
.bar-row summary .plus::before, .bar-row summary .plus::after { content: ''; position: absolute; left: 15px; top: 21px; width: 14px; height: 2px; background: currentColor; transition: transform var(--t-ui) var(--ease-out); }
.bar-row summary .plus::after { transform: rotate(90deg); }
.bar-row[open] summary .plus::after { transform: rotate(0deg); }
@media (hover: hover) and (pointer: fine) {
  .bar-row:not([open]):hover { background: var(--surface); }
  .bar-row:not([open]):hover .plus { background: var(--bg); }
}
.bar-row__panel > div { overflow: hidden; }
.bar-row:not([open]) .bar-row__panel { display: none; }
.items { list-style: none; margin: 0; padding: 0 20px 20px; columns: 2 17rem; column-gap: 32px; }
.items li { break-inside: avoid; }
.items a { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; min-height: 44px; padding: 10px 0; text-decoration: none; line-height: 1.35; transition: color var(--t-hover) ease, transform var(--t-hover) var(--ease-out); }
.items .kind { color: var(--muted); font-size: var(--step-small); flex: none; }
.items mark { background: var(--ink); color: var(--bg); padding: 0 0.1em; }
@media (hover: hover) and (pointer: fine) { .items a:hover { text-decoration: underline; text-underline-offset: 0.2em; transform: translateX(4px); } }

/* ---------- home: statement on aubergine ---------- */
.statement { display: grid; grid-template-columns: minmax(0, var(--axis)) minmax(0, 1fr); align-items: center; }
.statement figure { margin: 0; padding-right: clamp(32px, 5vw, 96px); }
.statement figure .pic { overflow: clip; }
.statement figure img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 40%; }
.statement figure { max-width: 520px; }
.statement figcaption { margin-top: 14px; color: var(--muted); font-size: var(--step-small); }
.statement h2 { margin-bottom: 32px; color: var(--accent-text); }
.statement blockquote { margin: 0; }
.statement blockquote p { font: 400 var(--step-quote)/1.25 var(--display); letter-spacing: -0.015em; max-width: 24ch; margin: 0; }
.statement cite { display: block; margin-top: 24px; font-style: normal; color: var(--muted); }
@media (max-width: 860px) { .statement { grid-template-columns: minmax(0, 1fr); row-gap: 40px; } .statement figure { order: 2; padding: 0; } .statement blockquote p { font-size: 1.5rem; } }
[data-fill] { --fill: currentColor; }

/* ---------- home: about Ram and the line of facts ---------- */
.about { display: grid; grid-template-columns: minmax(0, var(--axis)) minmax(0, 1fr); align-items: start; }
.about h2 { padding-right: var(--gutter); }
.about__body { columns: 2 19rem; column-gap: var(--gutter); }
.about__body p { break-inside: avoid; }
.facts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px var(--gutter); margin: clamp(64px, 8vw, 120px) 0 0; }
.facts > div { display: flex; flex-direction: column-reverse; }
.facts dd { margin: 0; font: 400 var(--step-head)/1 var(--display); letter-spacing: -0.03em; }
.facts dt { margin-top: 12px; color: var(--muted); font-size: var(--step-small); max-width: 22ch; }
@media (max-width: 860px) { .about { grid-template-columns: minmax(0, 1fr); row-gap: 28px; } .facts { display: grid; grid-template-columns: 1fr 1fr; } .facts > div:last-child { grid-column: 1 / -1; } }

/* ---------- home: the day's review and the sheet of reviews, on aubergine ---------- */
.today { display: grid; grid-template-columns: minmax(0, var(--axis)) minmax(0, 1fr); align-items: start; padding-bottom: clamp(64px, 8vw, 120px); }
.today h2 { color: var(--accent-text); padding-right: var(--gutter); }
.today__card { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--gutter); align-items: end; }
.today__card h3 { font: 500 var(--step-lead)/1.25 var(--display); letter-spacing: -0.01em; margin-bottom: 14px; }
.today__card p { color: var(--muted); }
.today + .sheet { margin-top: 0; }
@media (max-width: 860px) { .today { grid-template-columns: minmax(0, 1fr); row-gap: 28px; } .today__card { grid-template-columns: minmax(0, 1fr); } }

.frame { position: relative; display: block; overflow: clip; background: var(--surface); aspect-ratio: 16 / 9; }
.field .frame { background: var(--field-2); }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
.frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.frame__play {
  position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 0.55em; min-height: 44px;
  background: var(--accent); color: var(--accent-ink); font: 500 var(--step-small)/1 var(--text); padding: 0 18px; border-radius: 999px;
  transition: transform var(--t-hover) var(--ease-out);
}
.frame__play::before { content: ''; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
@media (hover: hover) and (pointer: fine) {
  .frame:hover img { transform: scale(1.04); }
  .frame:hover .frame__play { transform: scale(1.05); }
}

.sheet { padding: 0 var(--margin) var(--section); }
.sheet__head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 12px var(--gutter); margin-bottom: 32px; }
.sheet__head h2 { color: var(--accent-text); }
.sheet__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px 6px; }
.sheet__grid li:first-child { grid-column: span 2; grid-row: span 2; }
.sheet__grid a { display: block; text-decoration: none; }
.sheet__cap { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 8px; font-size: var(--step-small); line-height: 1.35; color: var(--field-muted); transition: color var(--t-hover) ease; }
.sheet__grid li:first-child .sheet__cap { font: 500 var(--step-lead)/1.25 var(--display); color: var(--field-ink); }
@media (hover: hover) and (pointer: fine) { .sheet__grid a:hover .sheet__cap { color: var(--field-ink); } .sheet__grid a:hover .frame img { transform: scale(1.06); } }
@media (max-width: 1100px) { .sheet__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 600px) { .sheet__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 6px; } .sheet__grid li:first-child { grid-row: auto; } }

/* ---------- home: contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, var(--axis)) minmax(0, 1fr); grid-template-rows: auto auto; align-items: end; padding-bottom: var(--section); }
.contact__pic { grid-column: 1; grid-row: 1 / 3; align-self: start; margin: 0; padding-right: clamp(32px, 5vw, 96px); }
.contact__pic img { width: min(100%, 320px); aspect-ratio: 1; object-fit: cover; object-position: 50% 15%; }
.contact__say { grid-column: 2; }
.contact__say p { font: 400 var(--step-quote)/1.3 var(--display); letter-spacing: -0.01em; max-width: 30ch; margin: 28px 0 0; }
.contact__go { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: 40px; }
@media (max-width: 860px) { .contact { grid-template-columns: minmax(0, 1fr); row-gap: 32px; } .contact__pic, .contact__say, .contact__go { grid-column: 1; grid-row: auto; } .contact__pic img { width: 140px; } }

/* ---------- footer: the name first, places under it ---------- */
.footer { background: var(--field); color: var(--field-ink); --muted: var(--field-muted); padding: clamp(40px, 5vw, 72px) var(--margin) 28px; overflow: clip; }
.footer__mark { margin: 0; font: 500 12.4vw/0.9 var(--display); letter-spacing: -0.05em; white-space: nowrap; color: var(--accent-text); }
.footer__row { display: grid; grid-template-columns: minmax(0, var(--axis)) minmax(0, 1fr); gap: 40px 0; margin-top: clamp(48px, 6vw, 96px); }
.footer__places { list-style: none; margin: 0; padding: 0 var(--gutter) 0 0; display: grid; gap: 6px; align-content: start; }
.footer__places a { display: inline-flex; min-height: 44px; align-items: center; font: 400 var(--step-quote)/1.15 var(--display); letter-spacing: -0.02em; text-decoration: none; transition: color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .footer__places a:hover { color: var(--accent-text); } }
.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px var(--gutter); font-size: var(--step-small); }
.footer__cols h2 { font: 600 var(--step-small)/1.3 var(--text); letter-spacing: 0; margin-bottom: 10px; }
.footer__cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.footer__cols li { color: var(--muted); }
.footer__cols a { display: inline-block; padding: 6px 0; color: var(--field-ink); text-decoration: none; }
.footer__cols .footer__soft li { padding: 4px 0; }
@media (hover: hover) and (pointer: fine) { .footer__cols a:hover { color: var(--accent-text); } }
.footer__legal { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 24px; margin-top: clamp(56px, 7vw, 96px); font-size: var(--step-small); color: var(--muted); }
.footer__legal p { margin: 0; }
.footer__legal a { display: inline-flex; align-items: center; min-height: 44px; color: var(--field-ink); }
@media (max-width: 860px) { .footer__row { grid-template-columns: minmax(0, 1fr); } .footer__cols { grid-template-columns: 1fr 1fr; } .footer__cols > div:last-child { grid-column: 1 / -1; } }

/* ---------- article ---------- */
.article { display: grid; grid-template-columns: minmax(0, var(--axis)) minmax(0, 1fr); padding: clamp(48px, 7vw, 112px) var(--margin) 0; }
.article > * { grid-column: 2; min-width: 0; }
.article__head { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, var(--axis)) minmax(0, 1fr); align-items: start; margin-bottom: clamp(48px, 6vw, 96px); }
.article__head h1 {
  grid-column: 2; grid-row: 1; max-width: 18em;
  font-size: clamp(2.25rem, calc(var(--fs, 64px) * 0.74), 4.75rem); line-height: 1.02; letter-spacing: -0.03em;
}
.article__meta { grid-column: 1; grid-row: 1; margin: 0.5em 0 0; padding-right: var(--gutter); font-size: var(--step-small); line-height: 1.6; color: var(--muted); }
.article__meta a { color: var(--ink); }
.article__time { display: inline-block; margin-top: 6px; padding: 4px 12px; border-radius: 999px; background: var(--surface); color: var(--ink); }
@media (max-width: 1100px) { .article__head h1 { font-size: clamp(2rem, calc(var(--fs-t, 48px) * 0.8), 3.5rem); } }
@media (max-width: 860px) {
  .article, .article__head { grid-template-columns: minmax(0, 1fr); }
  .article > *, .article__head > * { grid-column: 1; }
  .article__head h1 { grid-column: 1; grid-row: 1; font-size: clamp(2rem, calc(var(--fs-t, 48px) * 0.85), 3.25rem); line-height: 1.05; }
  .article__meta { grid-row: 2; margin: 20px 0 0; }
}
@media (max-width: 600px) {
  .article__head h1 { font-size: clamp(1.75rem, calc(var(--fs-m, 30px) * 0.95), 2.5rem); line-height: 1.08; }
}

/* the blotter: a perfumer's paper strip beside the text that soaks up ink as you read */
.blotter { grid-column: 1; grid-row: 2; padding-right: clamp(32px, 5vw, 96px); }
.blotter__in { position: sticky; top: 32px; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 20px; align-items: start; }
.blotter__strip { position: relative; width: 28px; height: min(56svh, 460px); background: var(--surface); border-radius: 0 0 14px 14px; overflow: hidden; }
.blotter__strip::after { content: ''; position: absolute; inset: 0; background: var(--ink); transform-origin: 50% 0; transform: scaleY(var(--p, 0)); }
.blotter__pct { font-size: var(--step-small); color: var(--muted); margin: 0 0 16px; font-variant-numeric: tabular-nums; }
.toc { font-size: var(--step-small); }
.toc h2 { font: 600 var(--step-small)/1.3 var(--text); letter-spacing: 0; margin-bottom: 8px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-height: calc(56svh - 80px); overflow-y: auto; }
.toc a { display: block; padding: 6px 0; text-decoration: none; color: var(--muted); line-height: 1.35; transition: color var(--t-hover) ease; }
.toc a.is-here, .toc a:hover { color: var(--ink); }
@media (max-width: 860px) {
  .blotter { position: fixed; z-index: 30; left: 0; right: 0; top: 0; height: 4px; padding: 0; grid-row: auto; pointer-events: none; }
  .blotter__in { position: static; display: block; }
  .blotter__strip { width: 100%; height: 4px; border-radius: 0; background: transparent; }
  .blotter__strip::after { transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
  .blotter__text { display: none; }
}

.prose { max-width: 40rem; font: 400 clamp(1.125rem, 1.05rem + 0.25vw, 1.25rem)/1.7 var(--display); overflow-wrap: break-word; hyphens: auto; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose table { margin: 0 0 1.1em; }
.prose p { text-wrap: pretty; }
.prose h1, .prose h2, .prose h3, .prose h4 { font-family: var(--display); font-weight: 600; font-size: 1.6em; line-height: 1.15; letter-spacing: -0.02em; margin: 1.8em 0 0.6em; }
.prose .is-sub { font-size: 1.35em; line-height: 1.2; letter-spacing: -0.015em; margin: 1.9em 0 0.5em; }
.prose .is-sub strong { font-weight: 600; }
.prose blockquote { margin-left: 0; padding: 24px 28px; background: var(--surface); border-radius: 0 24px 24px 0; }
.prose blockquote h3 { margin-top: 0; }
.prose img { margin: 1.6em 0; background: var(--surface); }
.prose iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; margin: 1.6em 0; background: var(--surface); }
.prose table { width: 100%; border-collapse: collapse; font: 400 var(--step-small)/1.45 var(--text); display: block; overflow-x: auto; }
.prose td, .prose th { padding: 8px 10px; background: var(--surface); border: 2px solid var(--bg); vertical-align: top; }
.prose a { text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; }
.prose em { font-style: italic; }
.prose__video { margin: 1.4em 0; }
@media (max-width: 860px) { .prose { max-width: none; font-size: 1.125rem; } }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: clamp(64px, 8vw, 120px); }
.pager a { display: flex; flex-direction: column; gap: 10px; min-height: 140px; padding: 24px; background: var(--surface); text-decoration: none; transition: background-color var(--t-hover) ease; }
.pager__next { text-align: right; align-items: flex-end; }
.pager__label { font-size: var(--step-small); color: var(--muted); }
.pager__title { font: 500 var(--step-lead)/1.2 var(--display); letter-spacing: -0.015em; }
@media (hover: hover) and (pointer: fine) { .pager a:hover { background: var(--surface-2); } }
@media (max-width: 600px) { .pager { grid-template-columns: 1fr; } .pager__next { text-align: left; align-items: flex-start; } }

.related { margin-top: clamp(80px, 9vw, 140px); }
.related__from { color: var(--muted); margin: 14px 0 24px; }
.related .bars { gap: 0; }
.related .bars a { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 14px 0; font: 400 var(--step-lead)/1.25 var(--display); letter-spacing: -0.01em; text-decoration: none; transition: color var(--t-hover) ease, opacity 700ms var(--ease-out), transform 900ms var(--ease-expo); transition-delay: 0s, calc(var(--i, 0) * 70ms), calc(var(--i, 0) * 70ms); }
.related .bars a .arrow { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; background: var(--surface); font-family: var(--text); transition: transform 320ms var(--ease-out), background-color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .related .bars a:hover .arrow { transform: translateX(4px); background: var(--ink); color: var(--bg); } }
.more { margin-top: clamp(80px, 9vw, 140px); }
.more h2 { margin-bottom: 28px; }
.more ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 6px; }
.more a { text-decoration: none; }
.more p { margin: 10px 0 0; font-size: var(--step-small); }
@media (hover: hover) and (pointer: fine) { .more a:hover p { text-decoration: underline; } }
.back { margin: clamp(56px, 6vw, 96px) 0 var(--section); }
.back .button:hover .arrow { transform: translateX(-4px); }

/* ---------- video page ---------- */
.page-head { display: grid; grid-template-columns: minmax(0, var(--axis)) minmax(0, 1fr); align-items: end; padding: clamp(48px, 7vw, 112px) var(--margin) 0; row-gap: 32px; }
.page-head h1 { grid-column: 1 / -1; font-size: clamp(4rem, 1rem + 13vw, 15rem); line-height: 0.85; letter-spacing: -0.05em; }
.page-head p { grid-column: 1; font-size: var(--step-lead); line-height: 1.35; max-width: 26ch; padding-right: var(--gutter); margin: 0; }
.page-head .search { grid-column: 2; margin: 0; }
.page-empty { padding: 48px var(--margin) 0; margin-left: var(--axis); }
.vsection { display: grid; grid-template-columns: minmax(0, var(--axis)) minmax(0, 1fr); align-items: start; padding: var(--section) var(--margin) 0; }
.vsection.field { margin-top: var(--section); padding-bottom: var(--section); }
.vsection__head { position: sticky; top: 24px; padding-right: var(--gutter); }
.vsection__head h2 { color: inherit; }
.field .vsection__head h2 { color: var(--accent-text); }
.vsection__head p { color: var(--muted); margin-top: 18px; max-width: 26ch; }
.vlist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 6px; }
.vrow.is-playing { grid-column: 1 / -1; }
.vrow h3 { margin-top: 14px; font: 500 clamp(1.125rem, 1rem + 0.4vw, 1.375rem)/1.25 var(--display); letter-spacing: -0.01em; }
.vrow p { margin: 8px 0 0; color: var(--muted); font-size: var(--step-small); }
.vrow p a { color: var(--ink); }
.field .vrow p a { color: var(--field-ink); }
.vrow[hidden], .items li[hidden], .bar-row[hidden], .vsection[hidden] { display: none; }
@media (max-width: 860px) {
  .page-head, .vsection { grid-template-columns: minmax(0, 1fr); }
  .page-head p, .page-head .search { grid-column: 1; }
  .page-empty { margin-left: 0; }
  .vsection__head { position: static; margin-bottom: 32px; }
}
@media (max-width: 560px) { .vlist { grid-template-columns: minmax(0, 1fr); } }

/* ---------- motion ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-leave 200ms ease both; }
::view-transition-new(root) { animation: vt-arrive 380ms var(--ease-out) 60ms both; }
@keyframes vt-leave { to { opacity: 0; } }
@keyframes vt-arrive { from { opacity: 0; transform: translateY(16px); } }

@media (prefers-reduced-motion: no-preference) {
  .js .mast h1 [data-line] { transform: translateY(105%); animation: line-up 900ms var(--ease-expo) forwards; animation-delay: calc(var(--i) * 110ms + 150ms); }
  .js .mast [data-load] { opacity: 0; transform: translateY(14px); animation: load-rise 600ms var(--ease-out) forwards; animation-delay: var(--d); }
  .js .mosaic__cell { clip-path: inset(0 0 100% 0); animation: load-open 1000ms var(--ease-in-out) forwards; }
  .js .mosaic__cell:nth-child(2) { animation-delay: 60ms; } .js .mosaic__cell:nth-child(3) { animation-delay: 120ms; }
  .js .mosaic__cell:nth-child(4) { animation-delay: 180ms; } .js .mosaic__cell:nth-child(5) { animation-delay: 240ms; }
  .js .mosaic__cell:nth-child(6) { animation-delay: 300ms; } .js .mosaic__cell:nth-child(7) { animation-delay: 360ms; }
  .mosaic__ram img { animation: slow-drift 24s var(--ease-soft) both; }
  /* reveals only hide what script will show, and never anything on an article page */
  .js [data-reveal]:not(.article *) { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-expo); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
      .blotter__strip::after { transition: transform 120ms linear; }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .is-filling > span { display: inline-block; color: color-mix(in oklab, var(--field-ink) 35%, transparent); animation: ink-fill linear both; animation-timeline: view(); animation-range: cover 20% cover 45%; }
    .statement .pic img { animation: pic-drift linear both; animation-timeline: view(); }
  }
}
@keyframes line-up { to { transform: none; } }
@keyframes ink-fill { to { color: var(--field-ink); } }
@keyframes pic-drift { from { transform: scale(1.12) translateY(-3%); } to { transform: scale(1.12) translateY(3%); } }
@keyframes load-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes slow-drift { from { transform: scale(1.1); } to { transform: scale(1); } }
@keyframes load-open { to { clip-path: inset(0); } }
