/* The AntJanus Collection — museum exhibition system
   Walls, frames, placards, and one painted color per wing. */

:root {
  /* primitives */
  --plaster-50: #f5f1e9;
  --plaster-100: #ebe5d9;
  --plaster-200: #d9d0bf;
  --card-50: #fffdf8;
  --charcoal-950: #121110;
  --charcoal-900: #1a1816;
  --charcoal-850: #231f1c;
  --charcoal-700: #3b3631;
  --ink-900: #1c1a17;
  --ink-600: #4d4840;
  --bone-100: #efe9dd;
  --bone-300: #bdb4a5;
  --brass-500: #a57a2a;
  --brass-300: #d7b56a;

  --paint-verdigris: #2d5b4e;
  --paint-aubergine: #3c2c5e;
  --paint-slate: #364f6a;
  --paint-ochre: #7d5210;
  --paint-oxblood: #6c2727;
  --paint-stone: #5a534a;

  /* semantic */
  --bg: var(--plaster-50);
  --bg-alt: var(--plaster-100);
  --surface: var(--card-50);
  --text: var(--ink-900);
  --text-muted: var(--ink-600);
  --rule: var(--plaster-200);
  --frame: #1b1917;
  --mat: #fbf8f2;
  --brass: var(--brass-500);
  --link: #2a4a6e;
  --focus: #b8440f;
  --shadow: 0 22px 34px -18px rgba(28, 22, 14, 0.55), 0 3px 6px -2px rgba(28, 22, 14, 0.25);
  --spot: radial-gradient(ellipse 60% 55% at 50% 0%, rgba(255, 244, 214, 0.75), transparent 70%);
  --code-bg: #1d1b19;
  --code-text: #ece5d6;

  /* current wing (overridden per page / section) */
  --wing: var(--paint-stone);
  --wing-ink: var(--paint-stone);
  --on-wing: #fbf7ef;
  --on-wing-muted: #e6ddcd;

  --font-display: "Bodoni Moda", "Didot", Georgia, serif;
  --font-body: "Source Serif 4", Georgia, serif;
  --font-label: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --max: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: var(--charcoal-950);
  --bg-alt: var(--charcoal-900);
  --surface: var(--charcoal-850);
  --text: var(--bone-100);
  --text-muted: var(--bone-300);
  --rule: var(--charcoal-700);
  --frame: #070605;
  --mat: #2b2724;
  --brass: var(--brass-300);
  --link: #9cc0e6;
  --focus: #ffb070;
  --shadow: 0 24px 40px -16px rgba(0, 0, 0, 0.9), 0 2px 6px rgba(0, 0, 0, 0.6);
  --spot: radial-gradient(ellipse 55% 60% at 50% 0%, rgba(255, 226, 170, 0.14), transparent 72%);
  --code-bg: #0c0b0a;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: var(--charcoal-950);
    --bg-alt: var(--charcoal-900);
    --surface: var(--charcoal-850);
    --text: var(--bone-100);
    --text-muted: var(--bone-300);
    --rule: var(--charcoal-700);
    --frame: #070605;
    --mat: #2b2724;
    --brass: var(--brass-300);
    --link: #9cc0e6;
    --focus: #ffb070;
    --shadow: 0 24px 40px -16px rgba(0, 0, 0, 0.9), 0 2px 6px rgba(0, 0, 0, 0.6);
    --spot: radial-gradient(ellipse 55% 60% at 50% 0%, rgba(255, 226, 170, 0.14), transparent 72%);
    --code-bg: #0c0b0a;
    color-scheme: dark;
  }
}

/* Wings: one wall paint each. --wing-ink is the paint used as text on the plaster wall. */
.wing-lobby { --wing: var(--paint-stone); --wing-ink: #5a534a; }
.wing-a { --wing: var(--paint-verdigris); --wing-ink: #2d5b4e; }
.wing-b { --wing: var(--paint-aubergine); --wing-ink: #4a3775; }
.wing-c { --wing: var(--paint-slate); --wing-ink: #364f6a; }
.wing-d { --wing: var(--paint-ochre); --wing-ink: #7d5210; }
.wing-p { --wing: var(--paint-oxblood); --wing-ink: #7a2c2c; }

:root[data-theme="dark"] .wing-lobby { --wing-ink: #cfc3b0; }
:root[data-theme="dark"] .wing-a { --wing-ink: #86c9b4; }
:root[data-theme="dark"] .wing-b { --wing-ink: #bca8ec; }
:root[data-theme="dark"] .wing-c { --wing-ink: #9dbbdc; }
:root[data-theme="dark"] .wing-d { --wing-ink: #e3b467; }
:root[data-theme="dark"] .wing-p { --wing-ink: #e79a90; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .wing-lobby { --wing-ink: #cfc3b0; }
  :root:not([data-theme="light"]) .wing-a { --wing-ink: #86c9b4; }
  :root:not([data-theme="light"]) .wing-b { --wing-ink: #bca8ec; }
  :root:not([data-theme="light"]) .wing-c { --wing-ink: #9dbbdc; }
  :root:not([data-theme="light"]) .wing-d { --wing-ink: #e3b467; }
  :root:not([data-theme="light"]) .wing-p { --wing-ink: #e79a90; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image: url("assets/plaster-wall.webp");
  background-size: 640px;
  background-blend-mode: multiply;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  overflow-x: hidden;
}
:root[data-theme="dark"] body { background-blend-mode: soft-light; }
img { max-width: 100%; display: block; }
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.12; margin: 0 0 0.5em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--surface); color: var(--text); padding: 10px 14px; z-index: 50; font-family: var(--font-label); }
.skip:focus { top: 12px; }

/* ---------- label type ---------- */
.eyebrow {
  font-family: var(--font-label);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wing-ink);
  margin: 0 0 0.75rem;
}
.acc { font-family: var(--font-mono); font-size: 0.875rem; color: var(--text-muted); letter-spacing: 0.02em; }
.gallery-no {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.4em; height: 2.4em; padding: 0 0.5em;
  border: 2px solid currentColor; border-radius: 999px;
}

/* ---------- masthead / directory ---------- */
.masthead {
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-label);
  position: relative;
  z-index: 20;
}
.masthead::after { content: ""; display: block; height: 6px; background: linear-gradient(90deg, var(--paint-verdigris) 0 20%, var(--paint-aubergine) 20% 40%, var(--paint-slate) 40% 60%, var(--paint-ochre) 60% 80%, var(--paint-oxblood) 80% 100%); }
.mast-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 0.8rem; color: var(--text); text-decoration: none; flex-shrink: 0; }
.brand svg { width: 42px; height: 42px; }
.brand-name { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name strong { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; letter-spacing: 0.01em; }
.brand-name span { font-size: 0.875rem; color: var(--text-muted); letter-spacing: 0.12em; text-transform: uppercase; }
.directory { margin-left: auto; }
.directory ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; align-items: stretch; }
.directory a {
  display: flex; flex-direction: column; justify-content: center;
  padding: 0.45rem 0.75rem; min-height: 52px;
  color: var(--text); text-decoration: none; border-radius: 4px;
  font-size: 1rem; font-weight: 600; line-height: 1.15;
  border-bottom: 3px solid transparent;
}
.directory a small { font-size: 0.8125rem; font-weight: 500; color: var(--text-muted); letter-spacing: 0.1em; text-transform: uppercase; }
.directory a:hover { background: var(--bg-alt); }
.directory a[aria-current="page"] { border-bottom-color: var(--wing); background: var(--bg-alt); }
.directory a[data-w="a"] { --wing: var(--paint-verdigris); }
.directory a[data-w="b"] { --wing: var(--paint-aubergine); }
.directory a[data-w="c"] { --wing: var(--paint-slate); }
.directory a[data-w="d"] { --wing: var(--paint-ochre); }
.directory a[data-w="p"] { --wing: var(--paint-oxblood); }
.dir-swatch { display: inline-block; width: 0.7em; height: 0.7em; border-radius: 50%; background: var(--wing); margin-right: 0.35em; vertical-align: 0.05em; }
:root[data-theme="dark"] .dir-swatch { box-shadow: 0 0 0 1px rgba(255,255,255,.35); }
.lights {
  font-family: var(--font-label); font-weight: 600; font-size: 0.9375rem;
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent; color: var(--text);
  border: 1px solid var(--rule); border-radius: 999px;
  min-height: 44px; padding: 0 1rem; cursor: pointer;
}
.lights:hover { background: var(--bg-alt); }
.lights svg { width: 18px; height: 18px; }
.dir-toggle { display: none; }

@media (max-width: 1180px) {
  .directory a small { display: none; }
  .directory a { padding: 0.45rem 0.55rem; }
}
@media (max-width: 440px) { .b-coll { display: none; } }
@media (max-width: 980px) {
  .mast-inner { flex-wrap: wrap; gap: 0.75rem; padding-block: 0.6rem; }
  .dir-toggle {
    display: inline-flex; align-items: center; gap: 0.5rem; margin-left: auto;
    font: 600 0.9375rem var(--font-label); color: var(--text);
    background: var(--bg-alt); border: 1px solid var(--rule); border-radius: 999px;
    min-height: 44px; padding: 0 1rem; cursor: pointer;
  }
  .lights .lights-label { display: none; }
  .lights { padding: 0 0.8rem; }
  .directory { order: 5; width: 100%; margin: 0; }
  .js .directory { display: none; }
  .js .masthead.open .directory { display: block; }
  .directory ul { flex-direction: column; gap: 0; padding-bottom: 0.75rem; }
  .directory a { min-height: 52px; border-bottom: 1px solid var(--rule); border-left: 5px solid var(--wing); border-radius: 0; padding-left: 0.9rem; }
  .directory a small { display: inline; }
  .directory a[aria-current="page"] { border-bottom-color: var(--rule); }
}
@media (max-width: 520px) {
  .brand-name span { display: none; }
  .brand-name strong { font-size: 1.0625rem; }
  .b-the { display: none; }
  .brand svg { width: 36px; height: 36px; }
  .mast-inner { gap: 0.5rem; }
  .dir-toggle { padding: 0 0.8rem; }
}

/* ---------- wing banner (page hero, painted wall) ---------- */
.wing-banner {
  background: var(--wing);
  color: var(--on-wing);
  position: relative;
  overflow: hidden;
}
.wing-banner::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 50% 90% at 20% 0%, rgba(255, 240, 210, 0.16), transparent 70%); pointer-events: none; }
.wing-banner .wrap { position: relative; padding-block: clamp(2.5rem, 6vw, 5rem); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: end; }
.wing-banner .eyebrow { color: var(--on-wing-muted); }
.wing-banner h1 { font-size: clamp(2.6rem, 7vw, 5.6rem); font-weight: 500; margin: 0 0 0.35em; color: var(--on-wing); }
.wing-banner .lede { font-size: clamp(1.2rem, 1.8vw, 1.4375rem); line-height: 1.5; max-width: 38ch; color: var(--on-wing); margin: 0; }
.wing-banner .wall-text { font-size: 1.125rem; color: var(--on-wing); border-left: 2px solid rgba(255,255,255,.45); padding-left: 1.25rem; max-width: 46ch; }
.wing-banner .wall-text p:last-child { margin-bottom: 0; }
.wing-banner a { color: var(--on-wing); }
.wing-sign { display: flex; align-items: center; gap: 0.8rem; font-family: var(--font-label); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.875rem; margin-bottom: 1.4rem; color: var(--on-wing-muted); }
.wing-sign .gallery-no { color: var(--on-wing); }
@media (max-width: 820px) { .wing-banner .wrap { grid-template-columns: 1fr; align-items: start; } }

/* ---------- sections, room headers ---------- */
.room { padding-block: clamp(3rem, 7vw, 6rem); }
.room + .room { border-top: 1px solid var(--rule); }
.room.painted { background: var(--wing); color: var(--on-wing); border-top: 0; }
.room.painted .eyebrow, .room.painted .room-head p { color: var(--on-wing-muted); }
.room.painted a { color: var(--on-wing); }
.room.tinted { background: var(--bg-alt); }
.room-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.25rem; align-items: end; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.room-head .gallery-no { color: var(--wing-ink); align-self: center; }
.room.painted .room-head .gallery-no { color: var(--on-wing); }
.room-head h2 { font-size: clamp(2rem, 4vw, 3.1rem); margin: 0; }
.room-head p { margin: 0.35rem 0 0; color: var(--text-muted); font-size: 1.125rem; max-width: 60ch; }
.room-head .more { font-family: var(--font-label); font-weight: 600; white-space: nowrap; font-size: 1rem; }
@media (max-width: 700px) {
  .room-head { grid-template-columns: auto minmax(0, 1fr); }
  .room-head .more { grid-column: 1 / -1; }
}

/* ---------- frames and hangs ---------- */
.hang { position: relative; padding-top: 1.5rem; }
.hang::before { content: ""; position: absolute; inset: -1rem -1rem auto; height: 70%; background: var(--spot); pointer-events: none; }
.frame {
  position: relative;
  background: var(--mat);
  border: clamp(6px, 0.9vw, 11px) solid var(--frame);
  padding: clamp(10px, 2vw, 22px);
  box-shadow: var(--shadow);
}
.frame::after { content: ""; position: absolute; inset: clamp(10px, 2vw, 22px); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12), inset 2px 2px 4px rgba(0,0,0,.18); pointer-events: none; }
.frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--bg-alt); }
.frame.gilt { border-color: #8d6a2b; border-image: linear-gradient(135deg, #c9a45a, #7b5a20 40%, #d8b973 60%, #6e4f1b) 1; }
.frame.thin { border-width: 4px; padding: clamp(8px, 1.4vw, 14px); }
.frame.natural img { aspect-ratio: auto; object-fit: contain; }
.room.painted .hang::before { opacity: 0.45; }
.frame .empty-art {
  width: 100%; aspect-ratio: 16 / 10;
  display: grid; place-items: center; text-align: center;
  background: repeating-linear-gradient(135deg, var(--bg-alt) 0 12px, transparent 12px 24px);
  font-family: var(--font-label); font-size: 0.9375rem; color: var(--text-muted); padding: 1rem;
}

/* placard: the tombstone label */
.placard {
  font-family: var(--font-label);
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--rule);
  padding: 1rem 1.1rem 1.05rem;
  box-shadow: 0 2px 0 rgba(0,0,0,.04), 0 6px 12px -8px rgba(0,0,0,.35);
  font-size: 1rem;
  line-height: 1.45;
}
.placard .p-title { font-family: var(--font-body); font-weight: 700; font-size: 1.1875rem; line-height: 1.3; margin: 0 0 0.3rem; }
.placard .p-title a { color: inherit; text-decoration: none; }
.placard .p-title a::after { content: ""; position: absolute; inset: 0; }
.placard .p-meta { margin: 0; color: var(--text-muted); font-size: 0.9375rem; }
.placard .p-desc { margin: 0.6rem 0 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.5; }
.placard .acc { display: block; margin-top: 0.55rem; }
.room.painted .placard { color: var(--text); }
.room.painted .placard a { color: inherit; }

.object { position: relative; display: flex; flex-direction: column; gap: 1.1rem; }
.object .placard { width: min(92%, 30rem); margin-left: auto; }
.object:hover .frame { transform: translateY(-3px); }
.object:hover .p-title a { text-decoration: underline; text-decoration-thickness: 2px; }
.object:focus-within .placard { outline: 3px solid var(--focus); outline-offset: 3px; }
.object:focus-within .p-title a:focus-visible { outline: none; }
.frame { transition: transform 180ms ease; }

.hang-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: clamp(2.5rem, 4vw, 4rem) clamp(1.5rem, 3vw, 3rem); }
.hang-grid.two { grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); }

/* feature hang: big picture with placard at eye level to the right */
.feature { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; position: relative; }
.feature .placard { font-size: 1.0625rem; }
.feature .placard .p-title { font-size: 1.5rem; }
@media (max-width: 820px) { .feature { grid-template-columns: 1fr; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0 1.4rem;
  font: 600 1rem var(--font-label); letter-spacing: 0.02em;
  border-radius: 2px; text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
  transition: background-color 150ms ease, color 150ms ease;
}
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: var(--wing-ink); color: #fff; }
.btn-secondary { background: transparent; color: var(--text); border-color: currentColor; }
.btn-secondary:hover { background: var(--bg-alt); }
.btn-tertiary { color: var(--text-muted); padding-inline: 0.25rem; text-decoration: underline; text-underline-offset: 0.25em; }
.on-wing .btn-primary { background: var(--on-wing); color: var(--wing); }
.on-wing .btn-primary:hover { background: #fff; color: #111; }
.on-wing .btn-secondary { color: var(--on-wing); }
.on-wing .btn-secondary:hover { background: rgba(255,255,255,.12); }
.on-wing .btn-tertiary { color: var(--on-wing-muted); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center; }

.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.chip {
  font: 500 0.875rem var(--font-mono);
  padding: 0.25rem 0.6rem; border: 1px solid var(--rule); border-radius: 2px;
  color: var(--text-muted); background: var(--surface); text-decoration: none;
}
a.chip:hover { color: var(--text); border-color: var(--text-muted); }

/* ---------- home: lobby ---------- */
.lobby { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 6vw, 5rem); position: relative; }
.lobby-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.vinyl { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.8rem, 6.4vw, 5.9rem); line-height: 1.02; letter-spacing: -0.02em; margin: 0 0 1.5rem; }
.vinyl em { font-style: italic; color: var(--wing-ink); }
.lobby .intro { font-size: clamp(1.2rem, 1.7vw, 1.4375rem); line-height: 1.5; max-width: 34ch; color: var(--text); margin-bottom: 2rem; }
.lobby .portrait img { aspect-ratio: 4 / 5; object-position: 30% 30%; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--text); margin-top: 3rem; }
.fact { padding: 1rem 1rem 0 0; }
.fact + .fact { border-left: 1px solid var(--rule); padding-left: 1rem; }
.fact b { display: block; font: 500 clamp(2rem, 4vw, 3.2rem) / 1 var(--font-display); }
.fact span { font: 600 0.875rem var(--font-label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
@media (max-width: 860px) { .lobby-grid { grid-template-columns: 1fr; } .lobby .portrait { max-width: 460px; } }

/* floor plan */
.plan-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.floorplan { width: 100%; height: auto; font-family: var(--font-label); }
.floorplan .room-shape { stroke: var(--text); stroke-width: 3; transition: filter 150ms ease; }
.floorplan a:hover .room-shape, .floorplan a:focus-visible .room-shape { filter: brightness(1.2); }
.floorplan a:focus-visible { outline: none; }
.floorplan a:focus-visible .room-shape { stroke: var(--focus); stroke-width: 6; }
.floorplan .plan-letter { fill: #fbf7ef; font-size: 44px; font-family: var(--font-display); font-weight: 600; }
.floorplan .plan-name { fill: #fbf7ef; font-size: 22px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.floorplan .wall { fill: none; stroke: var(--text); stroke-width: 6; }
.floorplan .lobby-shape { fill: var(--surface); stroke: var(--text); stroke-width: 3; }
.floorplan .lobby-text { fill: var(--text); font-size: 22px; font-weight: 600; letter-spacing: 0.08em; }
.floorplan .you { fill: var(--focus); }
.legend { list-style: none; margin: 0; padding: 0; font-family: var(--font-label); }
.legend li + li { border-top: 1px solid var(--rule); }
.legend a { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 0.2rem 1rem; padding: 1rem 0.25rem; text-decoration: none; color: var(--text); align-items: center; }
.legend a:hover { background: var(--bg-alt); }
.legend .key { grid-row: span 2; width: 3rem; height: 3rem; display: grid; place-items: center; background: var(--wing); color: #fbf7ef; font: 600 1.4rem var(--font-display); }
.legend strong { font-size: 1.125rem; }
.legend span { color: var(--text-muted); font-size: 1rem; }
@media (max-width: 860px) { .plan-grid { grid-template-columns: 1fr; } }

/* audio tour list */
.tour { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(2rem, 4vw, 3rem); }
.tour-stop { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(1rem, 3vw, 2.5rem); align-items: center; position: relative; }
.stop-badge { width: 4.5rem; height: 4.5rem; border-radius: 50%; background: var(--text); color: var(--bg); display: grid; place-items: center; font: 700 1.6rem var(--font-label); position: relative; }
.stop-badge::after { content: ""; position: absolute; right: -6px; bottom: -2px; width: 22px; height: 22px; border-radius: 50%; background: var(--brass); border: 3px solid var(--bg); }
.tour-stop .placard { position: static; }
.tour-stop .p-title a::after { z-index: 1; }
@media (max-width: 820px) { .tour-stop { grid-template-columns: 3.5rem minmax(0, 1fr); } .tour-stop .frame { grid-column: 2; } .stop-badge { width: 3.5rem; height: 3.5rem; font-size: 1.25rem; } .tour-stop .placard { grid-column: 1 / -1; } }

/* catalogue ledger (accession register) */
.ledger { width: 100%; border-collapse: collapse; font-family: var(--font-label); }
.ledger caption { text-align: left; font: 600 0.875rem var(--font-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); padding-bottom: 0.75rem; }
.ledger th { text-align: left; font-size: 0.875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; border-bottom: 2px solid var(--text); padding: 0.6rem 0.75rem 0.6rem 0; }
.ledger td { border-bottom: 1px solid var(--rule); padding: 1rem 0.75rem 1rem 0; vertical-align: top; font-size: 1rem; }
.ledger td.t { font-family: var(--font-body); font-size: 1.1875rem; font-weight: 600; }
.ledger td.t a { color: var(--text); text-decoration: none; }
.ledger td.t a:hover { text-decoration: underline; }
.ledger td.t p { font-weight: 400; font-size: 1.0625rem; color: var(--text-muted); margin: 0.3rem 0 0; }
.ledger td.acc-cell { font-family: var(--font-mono); font-size: 0.875rem; color: var(--text-muted); white-space: nowrap; }
.ledger td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 700px) {
  .ledger thead { display: none; }
  .ledger tr { display: grid; grid-template-columns: 1fr auto; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
  .ledger td { border: 0; padding: 0.15rem 0; }
  .ledger td.t { grid-column: 1 / -1; order: -1; }
  .ledger td.hide-sm { display: none; }
}

/* interactive exhibit cards */
.exhibits { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 1.25rem; }
.exhibit {
  position: relative; display: flex; flex-direction: column; gap: 0.6rem;
  background: var(--surface); border: 1px solid var(--rule); border-top: 6px solid var(--wing);
  padding: 1.4rem 1.3rem 1.3rem; font-family: var(--font-label);
}
.exhibit h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.25rem; margin: 0; }
.exhibit h3 a { color: var(--text); text-decoration: none; }
.exhibit h3 a::after { content: ""; position: absolute; inset: 0; }
.exhibit:hover h3 a { text-decoration: underline; }
.exhibit:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.exhibit h3 a:focus-visible { outline: none; }
.exhibit p { margin: 0; font-family: var(--font-body); font-size: 1.0625rem; color: var(--text); }
.exhibit .type { font-size: 0.875rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--wing-ink); }
.exhibit .medium { margin-top: auto; font-size: 0.9375rem; color: var(--text-muted); }
.room.painted .exhibit .type { color: var(--wing-ink); }

/* visitor services row */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.service { background: var(--surface); border: 1px solid var(--rule); padding: 1.6rem; font-family: var(--font-label); }
.service h3 { font-family: var(--font-display); font-size: 1.7rem; margin-bottom: 0.6rem; }
.service p { font-family: var(--font-body); }
.service ul { list-style: none; margin: 0; padding: 0; }
.service li + li { border-top: 1px solid var(--rule); }
.service li a { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; text-decoration: none; color: var(--text); font-weight: 600; }
.service li a span { color: var(--text-muted); font-weight: 400; }
.service li a:hover { color: var(--link); }
.service.dark { background: var(--wing); color: var(--on-wing); border-color: var(--wing); }
@media (max-width: 900px) { .services { grid-template-columns: 1fr; } }

/* forms */
.field-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.input {
  flex: 1 1 14rem; min-height: 48px; padding: 0 0.9rem;
  font: 1rem var(--font-label); color: var(--text);
  background: var(--bg); border: 1px solid var(--text-muted); border-radius: 2px;
}
.input::placeholder { color: var(--text-muted); opacity: 1; }
.form-note { font: 0.9375rem var(--font-label); color: var(--text-muted); margin: 0.6rem 0 0; }
.form-status { font: 600 1rem var(--font-label); margin: 0.6rem 0 0; min-height: 1.5em; }

/* ---------- footer: visitor information ---------- */
.site-footer { background: var(--frame); color: #e9e2d4; margin-top: 0; font-family: var(--font-label); }
.site-footer a { color: #f4efe4; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem; padding-block: 3.5rem 2.5rem; }
.foot-top h2 { font: 600 0.875rem var(--font-label); letter-spacing: 0.16em; text-transform: uppercase; color: #cbbfa9; margin-bottom: 1rem; }
.foot-top ul { list-style: none; margin: 0; padding: 0; }
.foot-top li a { display: inline-block; padding: 0.3rem 0; text-decoration: none; font-size: 1rem; }
.foot-top li a:hover { text-decoration: underline; }
.foot-top .hours { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.25; margin-bottom: 0.75rem; color: #f4efe4; }
.foot-top p { color: #d6ccba; font-size: 1rem; }
.site-footer .input { background: #1f1c19; color: #f4efe4; border-color: #8a8173; }
.site-footer .input::placeholder { color: #b5ab9a; }
.site-footer .btn-primary { background: #f4efe4; color: #1b1917; }
.site-footer .btn-primary:hover { background: var(--brass-300); color: #1b1917; }
.site-footer .form-note, .site-footer .form-status { color: #d6ccba; }
.foot-bottom { border-top: 1px solid #3a352f; padding-block: 1.25rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; color: #cbbfa9; font-size: 0.9375rem; }
@media (max-width: 900px) { .foot-top { grid-template-columns: 1fr 1fr; } .foot-top > :first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot-top { grid-template-columns: 1fr; } }

/* ---------- writing page ---------- */
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3.5rem); }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }
.shortlist { list-style: none; margin: 0; padding: 0; counter-reset: stop; }
.shortlist li { counter-increment: stop; display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--rule); position: relative; }
.shortlist li::before { content: counter(stop); width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 2px solid var(--wing-ink); color: var(--wing-ink); display: grid; place-items: center; font: 700 1.05rem var(--font-label); }
.shortlist a { font-weight: 700; font-size: 1.1875rem; color: var(--text); text-decoration: none; }
.shortlist a::after { content: ""; position: absolute; inset: 0; }
.shortlist li:hover a { text-decoration: underline; }
.shortlist p { margin: 0.25rem 0 0; color: var(--text-muted); font-size: 1.0625rem; }
.subject-index { columns: 3 12rem; column-gap: 2rem; list-style: none; margin: 0; padding: 0; font-family: var(--font-label); }
.subject-index li { break-inside: avoid; display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dotted var(--rule); padding: 0.55rem 0; }
.subject-index a { color: var(--text); font-weight: 600; text-decoration: none; }
.subject-index a:hover { text-decoration: underline; }
.subject-index span { color: var(--text-muted); font-variant-numeric: tabular-nums; }

/* ---------- AI stories: special exhibition ---------- */
.special { position: relative; background: #141019; color: #efe8f7; overflow: hidden; }
.special::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 40% 60% at 50% 0%, rgba(214, 190, 255, 0.18), transparent 70%); pointer-events: none; }
.special .wrap { position: relative; }
.special .eyebrow { color: #cdbdf0; }
.special h2 { color: #fff; font-size: clamp(2.4rem, 6vw, 4.8rem); font-style: italic; }
.special p { color: #ddd3ec; }
.special .banner-title { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2rem; align-items: end; margin-bottom: 3rem; }
.notice { font-family: var(--font-label); border: 1px solid #6f5c96; padding: 1rem 1.2rem; background: rgba(255,255,255,0.04); color: #efe8f7; font-size: 1rem; }
.notice strong { color: #fff; }
.story-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.story-row .frame { --mat: #1f1a28; }
.story-row .frame img { aspect-ratio: 3 / 4; }
.special .placard { background: #221c2e; border-color: #3f3553; color: #efe8f7; }
.special .placard .p-meta, .special .acc { color: #c3b7d6; }
.coming { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-top: 3rem; }
.coming > div { border: 1px dashed #6f5c96; padding: 1.2rem 1.3rem; font-family: var(--font-label); }
.coming h3 { font-family: var(--font-body); font-size: 1.1875rem; font-weight: 700; margin: 0.3rem 0 0.4rem; color: #fff; }
.coming p { margin: 0; font-family: var(--font-body); font-size: 1.0625rem; }
@media (max-width: 900px) { .story-row { grid-template-columns: 1fr; } .story-row .frame img { aspect-ratio: 16 / 10; } .special .banner-title, .coming { grid-template-columns: 1fr; } }

.strip {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between;
  border: 1px solid var(--rule); border-left: 6px solid var(--wing); background: var(--surface);
  padding: 1.25rem 1.5rem; font-family: var(--font-label);
}
.strip p { margin: 0; font-family: var(--font-body); font-size: 1.1875rem; }

/* ---------- projects: salon hang ---------- */
.salon { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 120px; grid-auto-flow: dense; gap: 1.25rem; }
.salon .s-item { position: relative; }
.salon .frame { height: 100%; display: block; }
.salon .frame img, .salon .frame .empty-art { --pad: clamp(8px, 1.4vw, 14px); position: absolute; top: var(--pad); left: var(--pad); width: calc(100% - 2 * var(--pad)); height: calc(100% - 2 * var(--pad)); max-width: none; aspect-ratio: auto; object-fit: cover; object-position: top left; }
.salon .s-no {
  position: absolute; top: -0.7rem; left: -0.7rem; z-index: 2;
  width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--brass); color: #1b1917;
  display: grid; place-items: center; font: 700 0.9375rem var(--font-label); box-shadow: 0 2px 4px rgba(0,0,0,.4);
}
.salon .w2 { grid-column: span 2; } .salon .w3 { grid-column: span 3; } .salon .w4 { grid-column: span 4; }
.salon .h2 { grid-row: span 2; } .salon .h3 { grid-row: span 3; }
.salon a { display: block; height: 100%; }
@media (max-width: 900px) {
  .salon { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 110px; }
  .salon .w3, .salon .w4 { grid-column: span 2; } .salon .w2 { grid-column: span 1; }
  .salon .h3 { grid-row: span 2; }
}
.salon-key { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 0 2.5rem; }
.salon-key li { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); gap: 0.9rem; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.salon-key .k { width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--brass); color: #1b1917; display: grid; place-items: center; font: 700 0.9375rem var(--font-label); }
.salon-key h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.125rem; margin: 0 0 0.2rem; }
.salon-key p { margin: 0; font-size: 1.0625rem; }
.salon-key .medium { font: 0.9375rem var(--font-label); color: var(--text-muted); margin-top: 0.3rem; }

.centerpiece .stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin: 1.1rem 0; }
.centerpiece .stats div { background: var(--surface); padding: 0.8rem; }
.centerpiece .stats b { display: block; font: 500 2rem / 1.1 var(--font-display); }
.centerpiece .stats span { font: 600 0.8125rem var(--font-label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.jump { position: sticky; top: 0; z-index: 10; background: var(--surface); border-bottom: 1px solid var(--rule); font-family: var(--font-label); }
.jump ul { display: flex; gap: 0.5rem; list-style: none; margin: 0; padding: 0.6rem 0; overflow-x: auto; }
.jump a { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0 1rem; white-space: nowrap; border: 1px solid var(--rule); border-radius: 999px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.9375rem; }
.jump a:hover { background: var(--bg-alt); }
.jump span { color: var(--text-muted); font-weight: 400; }

.os-list { display: grid; gap: clamp(3rem, 6vw, 5rem); }
.os-list .feature:nth-child(even) > :first-child { order: 2; }
@media (max-width: 820px) { .os-list .feature:nth-child(even) > :first-child { order: 0; } }

/* ---------- about: portrait gallery ---------- */
.portrait-hang { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.portrait-hang .frame img { aspect-ratio: 4 / 5; object-position: center 30%; }
@media (max-width: 860px) { .portrait-hang { grid-template-columns: 1fr; } .portrait-hang .hang { max-width: 440px; } }
.chronology { position: relative; list-style: none; margin: 0; padding: 0; }
.chronology::before { content: ""; position: absolute; left: 7.5rem; top: 0; bottom: 0; width: 2px; background: var(--wing-ink); opacity: 0.5; }
.chronology > li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 2rem; padding-bottom: 2.75rem; position: relative; }
.chronology > li::after { content: ""; position: absolute; left: calc(7.5rem - 7px); top: 0.45rem; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--wing-ink); }
.chronology .when { font: 600 1rem var(--font-label); color: var(--wing-ink); padding-top: 0.2rem; }
.chronology h3 { font-size: 1.75rem; margin-bottom: 0.4rem; }
.chronology ul { margin: 0.8rem 0 0; padding-left: 1.2rem; }
.chronology ul li { margin-bottom: 0.4rem; }
@media (max-width: 600px) {
  .chronology::before { left: 6px; }
  .chronology > li { grid-template-columns: 1fr; gap: 0.3rem; padding-left: 2rem; }
  .chronology > li::after { left: -1px; }
}
.career-bar { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--rule); margin-bottom: 3rem; font-family: var(--font-label); }
.career-bar div { flex: 1 1 9rem; padding: 0.75rem 0.9rem; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--surface); }
.career-bar b { display: block; font-size: 1rem; }
.career-bar span { font-size: 0.875rem; color: var(--text-muted); font-family: var(--font-mono); }
.inscriptions { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.inscriptions li { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.4rem); line-height: 1.25; padding: 1.4rem 0; border-bottom: 1px solid rgba(255,255,255,.25); letter-spacing: 0.01em; display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: 1rem; }
.inscriptions li span { font: 600 0.9375rem var(--font-label); letter-spacing: 0.14em; color: var(--on-wing-muted); padding-top: 0.9em; }
.catalogue { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.catalogue section { background: var(--surface); border: 1px solid var(--rule); padding: 1.5rem; }
.catalogue h3 { font-size: 1.6rem; }
.catalogue p { color: var(--text-muted); }
@media (max-width: 820px) { .catalogue { grid-template-columns: 1fr; } }
.beyond { list-style: none; padding: 0; margin: 0; }
.beyond li { padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.beyond strong { display: block; font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; }
details.drawer > summary { cursor: pointer; list-style: none; display: inline-flex; }
details.drawer > summary::-webkit-details-marker { display: none; }
details.drawer[open] > summary .when-closed, details.drawer:not([open]) > summary .when-open { display: none; }

/* ---------- article ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 40; background: transparent; }
.progress span { display: block; height: 100%; width: 0; background: var(--brass); }
.article-hero { padding-block: clamp(2rem, 5vw, 4rem) clamp(2rem, 4vw, 3rem); }
.crumbs { font: 600 0.9375rem var(--font-label); display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; color: var(--text-muted); margin-bottom: 1.5rem; }
.crumbs a { color: var(--wing-ink); }
.article-title { font-size: clamp(2.5rem, 6vw, 5rem); max-width: 18ch; margin-bottom: 0.4em; }
.article-lede { font-size: clamp(1.25rem, 2vw, 1.5rem); max-width: 40ch; color: var(--text-muted); }
.object-hang { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: end; margin-top: 2.5rem; }
.object-hang .placard dl { margin: 0.6rem 0 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.25rem 1rem; }
.object-hang .placard dt { color: var(--text-muted); font-size: 0.9375rem; }
.object-hang .placard dd { margin: 0; font-size: 0.9375rem; }
@media (max-width: 820px) { .object-hang { grid-template-columns: 1fr; } }
.reading-room { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); padding-block: 2rem 4rem; }
.guide { position: sticky; top: 1.5rem; align-self: start; font-family: var(--font-label); }
.guide h2 { font: 600 0.875rem var(--font-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.75rem; }
.guide ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--rule); }
.guide a { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: 0.2rem; padding: 0.5rem 0.75rem; color: var(--text-muted); text-decoration: none; font-size: 1rem; line-height: 1.35; margin-left: -2px; border-left: 2px solid transparent; }
.guide a b { font-family: var(--font-mono); font-weight: 500; font-size: 0.875rem; padding-top: 0.1rem; }
.guide a:hover { color: var(--text); }
.guide a[aria-current="true"] { color: var(--text); border-left-color: var(--wing-ink); font-weight: 600; }
.guide .md-link { display: inline-block; margin-top: 1.25rem; font-size: 0.9375rem; }
.guide details summary { display: none; }
@media (max-width: 1000px) {
  .reading-room { grid-template-columns: minmax(0, 1fr); }
  .guide { position: static; background: var(--surface); border: 1px solid var(--rule); padding: 0.25rem 1rem; }
  .guide details summary { display: flex; align-items: center; min-height: 48px; cursor: pointer; font-weight: 600; }
  .guide details:not([open]) > :not(summary) { display: none; }
  .guide h2 { display: none; }
}
.prose { max-width: 70ch; font-size: 1.1875rem; line-height: 1.7; }
.prose > * { max-width: 66ch; }
.prose h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin: 3.2rem 0 1rem; scroll-margin-top: 1.5rem; display: flex; gap: 1rem; align-items: baseline; }
.prose h2 .room-no { font: 600 0.875rem var(--font-label); letter-spacing: 0.12em; color: var(--wing-ink); border: 2px solid currentColor; border-radius: 999px; padding: 0.15rem 0.6rem; flex-shrink: 0; transform: translateY(-0.3em); }
.prose code { font-family: var(--font-mono); font-size: 0.88em; background: var(--bg-alt); padding: 0.1em 0.35em; border-radius: 2px; }
.prose ol, .prose ul { padding-left: 1.4rem; }
.prose li { margin-bottom: 0.35rem; }
.vitrine { max-width: none !important; margin: 2rem 0 2.25rem; border: 1px solid var(--rule); background: var(--surface); box-shadow: var(--shadow); }
.vitrine-label { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.5rem 0.5rem 0.5rem 1rem; font: 600 0.875rem var(--font-label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); border-bottom: 1px solid var(--rule); }
.vitrine pre { margin: 0; background: var(--code-bg); color: var(--code-text); padding: 1.25rem 1.4rem; overflow-x: auto; font: 0.9375rem / 1.65 var(--font-mono); tab-size: 2; }
.vitrine pre code { background: none; padding: 0; font-size: inherit; }
.copy-btn { font: 600 0.875rem var(--font-label); letter-spacing: 0.06em; min-height: 40px; padding: 0 0.9rem; background: transparent; color: var(--text); border: 1px solid var(--rule); border-radius: 2px; cursor: pointer; }
.copy-btn:hover { background: var(--bg-alt); }
.tok-k { color: #e0a86b; } .tok-s { color: #a9d18e; } .tok-c { color: #9c9387; font-style: italic; } .tok-t { color: #8fc1e3; } .tok-f { color: #f0d58a; }
.note { max-width: 62ch; margin: 1.75rem 0; font-family: var(--font-label); font-size: 1.0625rem; line-height: 1.55; padding: 1.1rem 1.25rem; }
.note p { margin: 0; }
.note .note-kind { display: block; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 0.35rem; }
.note.curator { background: var(--surface); border: 1px solid var(--rule); border-left: 6px solid var(--wing-ink); }
.note.curator .note-kind { color: var(--wing-ink); }
.note.visitor { background: repeating-linear-gradient(var(--surface) 0 1.55em, var(--bg-alt) 1.55em calc(1.55em + 1px)); border: 1px dashed var(--text-muted); transform: rotate(-0.4deg); }
.note.visitor .note-kind { color: var(--text-muted); }
.note.visitor .note-kind::before { content: "✎ "; }
.note.skill { background: var(--bg-alt); border: 2px solid var(--brass); }
.note.skill .note-kind { color: var(--text); }
.filed { margin-top: 3rem; padding-top: 1.5rem; border-top: 2px solid var(--text); font-family: var(--font-label); }
.filed h2 { font: 600 0.875rem var(--font-label) !important; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 0.75rem !important; display: block !important; }
.share-desk { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2.5rem; max-width: none !important; }
.share-desk > div { background: var(--surface); border: 1px solid var(--rule); padding: 1.5rem; font-family: var(--font-label); }
.share-desk h2 { font-size: 1.6rem !important; margin: 0 0 0.6rem !important; display: block !important; }
.share-desk p { font-family: var(--font-body); font-size: 1.0625rem; }
@media (max-width: 760px) { .share-desk { grid-template-columns: 1fr; } }

/* ---------- patterns ---------- */
.three-ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: rgba(255,255,255,.35); border: 1px solid rgba(255,255,255,.35); margin-top: 2rem; }
.three-ways div { background: var(--wing); padding: 1.1rem 1.2rem; }
.three-ways b { display: block; font: 600 0.875rem var(--font-label); letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 0.35rem; }
.three-ways p { margin: 0; font-size: 1.0625rem; }
@media (max-width: 820px) { .three-ways { grid-template-columns: 1fr; } }
.finder { display: grid; gap: 1rem; margin-bottom: 2rem; font-family: var(--font-label); }
.finder .input { font-size: 1.0625rem; min-height: 52px; }
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter { min-height: 44px; padding: 0 1rem; font: 600 0.9375rem var(--font-label); color: var(--text); background: var(--surface); border: 1px solid var(--rule); border-radius: 999px; cursor: pointer; }
.filter:hover { border-color: var(--text-muted); }
.filter[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.finder-bar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.finder-bar output { font-weight: 600; font-size: 1rem; }
.linkish { background: none; border: 0; color: var(--link); text-decoration: underline; font: 600 1rem var(--font-label); cursor: pointer; min-height: 44px; padding: 0 0.25rem; }
.drawers { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 1.25rem; }
.specimen { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--rule); font-family: var(--font-label); }
.specimen .tray { height: 120px; background: var(--bg-alt); border-bottom: 1px solid var(--rule); display: grid; place-items: center; position: relative; color: var(--wing-ink); }
.specimen .tray svg { width: 64%; height: 70%; }
.specimen .tray .acc { position: absolute; left: 0.75rem; top: 0.5rem; }
.specimen .body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: 0.45rem; flex: 1; }
.specimen .cat { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--wing-ink); display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.badge { font: 700 0.8125rem var(--font-label); letter-spacing: 0.08em; text-transform: uppercase; padding: 0.1rem 0.45rem; border: 1.5px solid currentColor; color: var(--text); }
.badge.new { background: var(--brass); color: #1b1917; border-color: var(--brass); }
.specimen h3 { font-family: var(--font-body); font-size: 1.1875rem; font-weight: 700; margin: 0; }
.specimen h3 a { color: var(--text); text-decoration: none; }
.specimen h3 a::after { content: ""; position: absolute; inset: 0; }
.specimen:hover h3 a { text-decoration: underline; }
.specimen:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.specimen h3 a:focus-visible { outline: none; }
.specimen p { margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.5; }
.specimen .date { font-size: 0.875rem; color: var(--text-muted); margin-top: auto; padding-top: 0.4rem; }
.empty-state { text-align: center; padding: 3rem 1rem; border: 1px dashed var(--text-muted); font-family: var(--font-label); }
.empty-state h3 { font-family: var(--font-display); font-size: 1.8rem; }
.wing-d .cat-dd { color: var(--wing-ink); }

.pattern-head .uses { columns: 2 16rem; column-gap: 2rem; padding-left: 1.2rem; margin: 0.5rem 0 1.25rem; }
.panes { border: 1px solid var(--rule); background: var(--surface); box-shadow: var(--shadow); margin-top: 2rem; }
.pane-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; border-bottom: 1px solid var(--rule); padding: 0.4rem; font-family: var(--font-label); }
.tabs { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.tab { min-height: 44px; padding: 0 1rem; font: 600 0.9375rem var(--font-label); background: transparent; color: var(--text-muted); border: 0; border-bottom: 3px solid transparent; cursor: pointer; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--wing-ink); }
.pane-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.pane { padding: clamp(1rem, 3vw, 2rem); }
.pane[hidden] { display: none; }
.pane pre { margin: 0; background: var(--code-bg); color: var(--code-text); padding: 1.25rem; overflow-x: auto; font: 0.9375rem / 1.6 var(--font-mono); }
.pane .prompt { max-width: 66ch; font-size: 1.125rem; }
.pane-note { font: 1rem var(--font-label); color: var(--text-muted); margin: 0 0 1rem; }

/* hairline stat strip demo */
.stage { background: var(--bg-alt); padding: clamp(1rem, 3vw, 2rem); border: 1px solid var(--rule); font-family: var(--font-label); }
.stage-cap { font-size: 1rem; color: var(--text-muted); margin: 0 0 0.75rem; }
.hss-strip { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; grid-template-columns: 1fr; margin-bottom: 1.75rem; }
@media (min-width: 21rem) { .hss-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 52rem) { .hss-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } .hss-strip.five { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.hss-tile { background: var(--surface); padding: 0.9rem 1rem; display: flex; flex-direction: column; gap: 0.2rem; text-align: left; border: 0; color: var(--text); font: inherit; min-width: 0; }
button.hss-tile { cursor: pointer; }
button.hss-tile:hover { background: color-mix(in srgb, var(--wing-ink) 7%, var(--surface)); }
button.hss-tile[aria-pressed="true"] { background: color-mix(in srgb, var(--wing-ink) 16%, var(--surface)); box-shadow: inset 0 -3px 0 var(--wing-ink); }
.hss-label { font: 600 0.8125rem var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.hss-fig { font: 700 1.6rem / 1.15 var(--font-label); font-variant-numeric: tabular-nums; }
.hss-fig.dim { color: var(--text-muted); }
.hss-unit { font-size: 0.9375rem; color: var(--text-muted); }
.hss-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--rule); background: var(--surface); }
.hss-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 1rem; border-bottom: 1px solid var(--rule); font-size: 1rem; }
.hss-list li:last-child { border-bottom: 0; }
.hss-list .st { font-family: var(--font-mono); font-size: 0.875rem; color: var(--text-muted); white-space: nowrap; }
.hss-status { margin: 0.75rem 0 0; font-size: 1rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .object:hover .frame { transform: none; }
}
@media print { .masthead, .site-footer, .guide, .progress { display: none; } }

.prose-fig { margin: 2.2rem 0; }
.prose-fig figcaption { display: block; margin-top: .6rem; }
.prose .note p + p { margin-top: .7rem; }
.prose code { overflow-wrap: anywhere; }
