/* Anchorage Art Fund – design system (Group CI, drawn in brass).
   Night, brass and parchment; Cormorant Garamond for display, Archivo for everything else.
   Red #E52518 appears only in the logo. */

/* ══ Languages: every text is on the page four times; only the one matching <html lang> shows (js/lang.js) ══ */
html:not([lang="en"]) [data-lang="en"], html:not([lang="de"]) [data-lang="de"],
html:not([lang="fr"]) [data-lang="fr"], html:not([lang="it"]) [data-lang="it"] { display: none !important; }

/* ══ Fonts (SIL OFL, self-hosted) ═══════════════════════ */
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/cormorant-garamond-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/cormorant-garamond-latin-ext-500-normal.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500; font-display: swap;
  src: url('../fonts/cormorant-garamond-latin-500-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500; font-display: swap;
  src: url('../fonts/cormorant-garamond-latin-ext-500-italic.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/archivo-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/archivo-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/archivo-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/archivo-latin-ext-700-normal.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 800; font-display: swap;
  src: url('../fonts/archivo-latin-800-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 800; font-display: swap;
  src: url('../fonts/archivo-latin-ext-800-normal.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ══ Tokens ═════════════════════════════════════════════ */
:root {
  --night: #0B0A09;
  --panel: #161412;
  --panel-2: #1D1A17;          /* lighter panel – intermediaries block */
  --brass: #C4A06A;
  --brass-lt: #D8BC84;
  --parchment: #E6DECF;
  --stone: #A89F8F;
  --rule: #2E2A26;
  --grid: #1C1A18;             /* graticule */
  --error: #C8553D;
  --logo-red: #E52518;         /* logo only */

  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Archivo', 'Helvetica Neue', Arial, sans-serif;

  --strip-h: 28px;
  --nav-h: 68px;
  --head-h: calc(var(--strip-h) + var(--nav-h));
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);

  --gilt: linear-gradient(135deg, #6f5226 0%, #c9a463 14%, #f1dca2 26%, #a37b3b 40%, #e6c988 54%, #8c6a33 68%, #d8bc84 82%, #6a4d22 100%);
  --ease: cubic-bezier(0.3, 0.1, 0.2, 1);
}

/* ══ Base ═══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); }
body {
  margin: 0; background: var(--night); color: var(--parchment);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
@media (min-width: 1024px) { body { font-size: 18px; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brass-lt); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--parchment); }
:focus-visible { outline: 2px solid var(--brass-lt); outline-offset: 3px; }
p { margin: 0 0 1em; }
strong { color: #fff; font-weight: 700; }
::selection { background: var(--brass); color: var(--night); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 200; background: var(--brass); color: var(--night); padding: 8px 14px; font-weight: 700; }
.skip-link:focus { top: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ══ Type ═══════════════════════════════════════════════ */
.kicker {
  font: 700 12px/1.4 var(--sans); letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--brass); margin: 0 0 1.1rem;
}
.kicker--stone { color: var(--stone); }
.display, h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--parchment); margin: 0; }
.display, h1 { font-size: clamp(42px, 6.2vw, 88px); line-height: 1.02; letter-spacing: -0.01em; }
h2, .h2 { font-size: clamp(31px, 3.6vw, 48px); line-height: 1.08; }
h3, .h3 { font-size: clamp(24px, 2.2vw, 30px); line-height: 1.15; }
.display em, h1 em, h2 em { display: block; font-style: italic; color: var(--brass); }
h1, h2, h3, .display { text-wrap: balance; }
h2 em.inline, h1 em.inline { display: inline; }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--parchment); max-width: 46em; }
.muted { color: var(--stone); }
.small { font-size: 14px; line-height: 1.55; }
.footnote { font-size: 13px; line-height: 1.55; color: var(--stone); max-width: 62em; }
.footnote p { margin: 0 0 0.4em; }
.figure { font: 800 clamp(26px, 2.6vw, 34px)/1.05 var(--sans); color: var(--parchment); letter-spacing: -0.01em; }
.label-caps { font: 700 11px/1.4 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--stone); }

/* ══ Group devices ══════════════════════════════════════ */
/* Graticule: faint grid behind hero and section openers. */
.graticule {
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: -1px -1px;
}
/* Drop line from the top edge, ending in the brass-light fix square; it lines up with the .wrap text column at any width. */
.dropline { position: absolute; top: 0; left: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter))); width: 1px; height: var(--dl, 96px); background: var(--brass); pointer-events: none; }
.dropline::after { content: ''; position: absolute; left: -4px; bottom: -9px; width: 9px; height: 9px; background: var(--brass-lt); }
.dropline--anim { transform-origin: top; animation: drop 1.1s var(--ease) both; }
.dropline--anim::after { animation: fix-in 0.3s 1s both; }
@keyframes drop { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes fix-in { from { opacity: 0; } to { opacity: 1; } }
/* Coordinate dateline */
.dateline { font: 700 11px/1.3 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--stone); }
.fix-inline { display: inline-block; width: 9px; height: 9px; background: var(--brass-lt); margin-right: 8px; vertical-align: 0; }

/* ══ Top strip + header ═════════════════════════════════ */
.site-strip {
  min-height: var(--strip-h); display: flex; align-items: center; justify-content: center;
  background: var(--night); border-bottom: 1px solid var(--rule);
  font: 700 10px/1.3 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--stone);
  padding: 4px 12px; text-align: center;
}
@media (max-width: 420px) { .site-strip { font-size: 9px; letter-spacing: 0.12em; } }
.site-head {
  position: sticky; top: 0; z-index: 50; background: rgba(11, 10, 9, 0.94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-nav { height: var(--nav-h); display: flex; align-items: center; gap: 24px; }
.site-logo { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--parchment); flex: none; }
.site-logo img { height: 34px; width: auto; }
.site-logo span { font: 500 19px/1 var(--serif); letter-spacing: 0.02em; padding-left: 14px; border-left: 1px solid var(--rule); }
.site-links { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 28px); margin: 0 0 0 auto; padding: 0; list-style: none; }
.site-links a { font: 400 14px/1 var(--sans); color: var(--stone); text-decoration: none; padding: 8px 0; border-bottom: 1px solid transparent; }
.site-links a:hover { color: var(--parchment); }
.site-links a[aria-current="page"] { color: var(--parchment); border-bottom-color: var(--brass); }
.site-links .btn { padding: 0 16px; min-height: 36px; border: 0; color: var(--night); }
.site-links .btn[aria-current="page"] { color: var(--night); box-shadow: inset 0 -2px 0 var(--night); }
.site-lang { display: flex; gap: 2px; font: 700 11px/1 var(--sans); letter-spacing: 0.12em; }
.site-lang button { padding: 6px 4px; min-height: 28px; background: none; border: 0; font: inherit; letter-spacing: inherit;
  color: var(--stone); opacity: 0.6; cursor: pointer; }
.site-lang button:hover { opacity: 1; }
.site-lang button[aria-pressed="true"] { color: var(--parchment); opacity: 1; cursor: default; box-shadow: inset 0 -1px 0 var(--brass); }
.site-menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--rule); color: var(--parchment);
  min-width: 44px; min-height: 44px; font: 700 11px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer; }
@media (max-width: 1199px) { /* the header: German and Italian labels need the room up to 1200 px */
  .site-menu-btn { display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; }
  .site-logo span { display: none; }
  .site-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--night); border-bottom: 1px solid var(--rule); padding: 8px var(--gutter) 20px; margin: 0;
  }
  .site-head.is-open .site-links { display: flex; }
  .site-links a { display: block; padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--rule); }
  .site-links a[aria-current="page"] { border-bottom-color: var(--rule); color: var(--brass-lt); }
  /* Invest keeps its button shape in the dropdown – the plain link rule above must not flatten it. */
  .site-links a.btn {
    display: flex; align-items: center; justify-content: center; margin-top: 18px; min-height: 48px; padding: 0 24px;
    font: 700 13px/1.2 var(--sans); letter-spacing: 0.12em; color: var(--night); border-bottom: 0;
  }
  .site-links a.btn[aria-current="page"] { color: var(--night); box-shadow: none; }
  .site-lang { padding-top: 14px; }
}

/* ══ Buttons ════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 24px;
  font: 700 13px/1.2 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  background: var(--brass); color: var(--night); border: 1px solid var(--brass); cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { background: var(--brass-lt); border-color: var(--brass-lt); color: var(--night); }
.btn--ghost { background: transparent; color: var(--brass-lt); }
.btn--ghost:hover { background: rgba(196, 160, 106, 0.12); color: var(--parchment); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.4; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.arrow-link { font: 700 13px/1.3 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; color: var(--brass-lt); }
.arrow-link::after { content: ' →'; }

/* ══ Sections ═══════════════════════════════════════════ */
.section { position: relative; padding: clamp(64px, 9vw, 128px) 0; border-top: 1px solid var(--rule); }
.section--panel { background: var(--panel); }
.section--flush { border-top: 0; }
.opener { position: relative; max-width: 52em; margin-bottom: clamp(36px, 5vw, 64px); }
.opener h2 + p, .opener .h2 + p { margin-top: 1.25rem; }
.page-hero { --hero-top: clamp(72px, 10vw, 140px); position: relative; padding: var(--hero-top) 0 clamp(56px, 7vw, 96px); overflow: hidden; }
/* The line stops 16 px above the kicker (hero padding + 36 px kicker margin – 9 px square – 16 px), however short the hero gets. */
.page-hero .dropline { height: min(var(--dl, 96px), calc(var(--hero-top) + 11px)); }
.page-hero .wrap { position: relative; }
.page-hero .kicker { margin-top: 36px; }
.page-hero h1 { max-width: 13em; }
.page-hero .lead { margin-top: 1.5rem; }
.cols { display: grid; gap: clamp(28px, 4vw, 64px); }
.cols > * { min-width: 0; }
@media (min-width: 860px) {
  .cols--2 { grid-template-columns: 1fr 1fr; }
  .cols--5-7 { grid-template-columns: 5fr 7fr; }
  .cols--7-5 { grid-template-columns: 7fr 5fr; }
}
.rule-top { border-top: 1px solid var(--parchment); padding-top: 18px; }
.rule-top--brass { border-top-color: var(--brass); }
.band {
  margin-top: clamp(32px, 4vw, 48px); padding: 24px 28px; border-left: 2px solid var(--brass);
  background: var(--panel); font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55;
}

/* Key-facts strip */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--rule); margin-top: 36px; }
.facts > div { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--rule); }
.facts .figure { font-size: clamp(20px, 2vw, 26px); }
.facts .figure sup { font: 700 0.55em/1 var(--sans); color: var(--brass); margin-left: 2px; }
.facts .label-caps { margin-top: 8px; font-size: 10px; }
.facts .fix-inline { vertical-align: 2px; }
@media (min-width: 700px) { .facts { grid-template-columns: repeat(4, auto); } }

/* Numbered cards */
.cards { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
@media (min-width: 700px) { .cards--2 { grid-template-columns: repeat(2, 1fr); } .cards--3, .cards--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } .cards--4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--night); padding: 28px 26px 30px; }
.section--panel .card { background: var(--panel); }
.card-num { font: 800 13px/1 var(--sans); letter-spacing: 0.14em; color: var(--brass); margin-bottom: 18px; }
.card h3 { font-size: 24px; margin-bottom: 10px; }
.card p { font-size: 15.5px; line-height: 1.6; color: var(--stone); margin: 0; }
.card p strong { color: var(--parchment); }

/* Rail – vertical timeline. Brass-light square = start and present; outlined = not yet fixed. */
.rail { list-style: none; margin: 0; padding: 0; position: relative; }
.rail::before { content: ''; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 1px; background: var(--brass); }
.rail li { position: relative; padding: 0 0 28px 36px; }
.rail li:last-child { padding-bottom: 0; }
.rail li::before { content: ''; position: absolute; left: 0; top: 6px; width: 9px; height: 9px; background: var(--night); border: 1px solid var(--brass); }
.rail li.is-fixed::before { background: var(--brass-lt); border-color: var(--brass-lt); }
.rail .label-caps { color: var(--brass); }
.rail strong { display: block; font: 500 22px/1.2 var(--serif); color: var(--parchment); margin: 4px 0 6px; }
.rail p { margin: 0; color: var(--stone); font-size: 15.5px; }
.rail a { text-decoration: none; }

/* Data table */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.45; }
table.data caption { text-align: left; padding-bottom: 12px; }
table.data th, table.data td { text-align: left; padding: 13px 16px 13px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.data thead th { font: 700 11px/1.3 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass); border-bottom-color: var(--brass); }
table.data tbody th { font-weight: 400; color: var(--stone); width: 38%; }
table.data td { color: var(--parchment); }
table.data .is-open { color: var(--brass-lt); font-weight: 700; }
dl.spec { margin: 0; display: grid; grid-template-columns: minmax(130px, 38%) 1fr; font-size: 15.5px; }
dl.spec dt, dl.spec dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--rule); }
dl.spec dt { color: var(--stone); padding-right: 16px; }

/* Notice block */
.notice { background: var(--panel); border-top: 2px solid var(--brass); padding: clamp(24px, 3vw, 40px); }
.notice h3 { font: 700 12px/1.4 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass); margin-bottom: 16px; }
.notice p { font-size: 14.5px; line-height: 1.65; color: var(--stone); }
.notice p strong { color: var(--parchment); }

/* Quote */
.quote { margin: 0; padding: 0 0 0 28px; border-left: 1px solid var(--brass); }
.quote p { font: italic 500 clamp(22px, 2.2vw, 30px)/1.3 var(--serif); color: var(--parchment); }
.quote footer { font: 700 11px/1.4 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass); }

/* Is / is not */
.isnot { list-style: none; margin: 0; padding: 0; }
.isnot li { position: relative; padding: 12px 0 12px 26px; border-bottom: 1px solid var(--rule); font-size: 15.5px; }
.isnot li::before { content: ''; position: absolute; left: 0; top: 19px; width: 9px; height: 9px; background: var(--brass-lt); }
.isnot--not li::before { background: transparent; border: 1px solid var(--stone); }
.isnot--not li { color: var(--stone); }

/* CTA band – every page ends with the next step */
.cta-band { position: relative; background: var(--panel); border-top: 1px solid var(--rule); padding: clamp(72px, 8vw, 112px) 0 clamp(56px, 6vw, 80px); overflow: hidden; }
.cta-band .dropline { --dl: 48px; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; }
.cta-band h2 { font-size: clamp(28px, 3vw, 40px); max-width: 18em; }
.cta-band .kicker { margin-bottom: 0.8rem; }

/* Document card */
.doc-cards { display: grid; gap: 16px; }
@media (min-width: 700px) { .doc-cards { grid-template-columns: repeat(2, 1fr); } }
.doc-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid var(--rule); background: var(--night); text-decoration: none; color: var(--parchment); transition: border-color 0.2s; }
.doc-card:hover { border-color: var(--brass); color: var(--parchment); }
.doc-card h3 { font-size: 23px; }
.doc-card p { margin: 0; color: var(--stone); font-size: 15px; }
.doc-card .doc-meta { display: flex; justify-content: space-between; gap: 12px; font: 700 11px/1.4 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--stone); margin-top: auto; padding-top: 12px; border-top: 1px solid var(--rule); }
.doc-card .doc-meta b { color: var(--brass-lt); font-weight: 700; }

/* Forms */
.form { display: grid; gap: 18px; }
@media (min-width: 700px) { .form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; } }
.field { display: grid; gap: 7px; }
.field > label, .field > legend, .fieldset > legend { font: 700 11px/1.4 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--stone); padding: 0; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; font: 400 16px/1.4 var(--sans); color: var(--parchment);
  background: var(--panel); border: 1px solid var(--rule); border-radius: 0; -webkit-appearance: none; appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--brass) 50%), linear-gradient(135deg, var(--brass) 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brass); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-size: 13.5px; }
.fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice-row { display: grid; gap: 8px; margin-top: 8px; }
@media (min-width: 560px) { .choice-row--3 { grid-template-columns: repeat(3, 1fr); } }
.choice { position: relative; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 14px; border: 1px solid var(--rule); background: var(--panel); cursor: pointer; font-size: 14.5px; line-height: 1.35; }
.choice:hover { border-color: var(--stone); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .mark { flex: none; width: 14px; height: 14px; border: 1px solid var(--brass); }
.choice input[type="radio"] + .mark { border-radius: 50%; }
.choice input:checked + .mark { background: var(--brass-lt); box-shadow: inset 0 0 0 3px var(--panel); }
.choice:has(input:checked) { border-color: var(--brass); }
.choice:has(input:focus-visible) { outline: 2px solid var(--brass-lt); outline-offset: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.5; color: var(--stone); cursor: pointer; }
.check input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--brass); }

/* ══ Gilt frames + museum labels ════════════════════════ */
/* The carved frame of the Read room, cut into nine pieces: corners stay, edges stretch to any size.
   --fw is the frame width in % of the frame's own width; the frame's parent is the size container
   (.frame-wrap on the wall, .frame-host elsewhere), so the width can be expressed in cqi. */
.frame-wrap, .frame-host { container-type: inline-size; }
.frame {
  position: relative; display: block; width: 100%; aspect-ratio: 3 / 4;
  border: calc(var(--fw, 9) * 1cqi) solid transparent;
  border-image: url("../images/frame-gilt.webp") 129 126 138 130 stretch;
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.55);
}
/* Modern: a plain gilt moulding, drawn – for the more recent works on the wall (and the oval, which has no carved image). */
.frame--modern { border-image: none; background: var(--gilt);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.55), 0 2px 4px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 236, 190, 0.35), inset 0 0 12px rgba(60, 40, 10, 0.6); }
.frame::before { display: none; }
.frame--modern::before { /* inner moulding */
  display: block;
  content: ''; position: absolute; inset: calc(var(--fw, 9) * -0.45cqi); border: 2px solid rgba(70, 48, 18, 0.55);
  box-shadow: 0 0 0 1px rgba(255, 230, 170, 0.35), inset 0 0 0 1px rgba(255, 230, 170, 0.25); pointer-events: none;
}
.frame-inner { position: relative; display: block; width: 100%; height: 100%; background: radial-gradient(120% 90% at 50% 30%, #1a1714, #0d0c0a 70%);
  box-shadow: inset 0 6px 14px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(0, 0, 0, 0.6); overflow: hidden; }
.frame-inner img { width: 100%; height: 100%; object-fit: cover; }
/* The oval belongs to the salon hang only; the row and the mobile hang use identical frames. */
.wall--salon .frame--oval, .wall--salon .frame--oval .frame-inner, .wall--salon .frame--oval::before { border-radius: 50%; }
.frame--wide { aspect-ratio: 4 / 3; }
/* Raking light: a highlight that follows the cursor (or the scroll on touch). */
.rake { --lx: 30%; --ly: 20%; }
.frame::after { /* over the carving too, not only the opening */
  content: ''; position: absolute; inset: calc(var(--fw, 9) * -1cqi); border-radius: inherit; pointer-events: none;
  background: radial-gradient(60% 60% at var(--lx, 30%) var(--ly, 20%), rgba(255, 240, 200, 0.55), rgba(255, 240, 200, 0) 60%);
  mix-blend-mode: soft-light; opacity: 0.9; transition: opacity 0.4s;
}
.frame--open { background: none; box-shadow: none; border: 1.5px dashed var(--brass); border-image: none; }
.frame--open::before, .frame--open::after { display: none; }
.frame--open .frame-inner { background: transparent; box-shadow: none; }

.tag {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%); z-index: 2; white-space: nowrap;
  font: 800 9.5px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase;
  background: var(--brass); color: var(--night); padding: 5px 8px;
}

.museum-label {
  background: var(--parchment); color: #2a241c; padding: 10px 12px 11px; box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
}
.museum-label .ml-room { display: block; font: 700 9.5px/1.3 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: #7d6a4b; }
.museum-label .ml-title { display: block; font: 500 18px/1.15 var(--serif); color: #1b1712; margin-top: 3px; }
.museum-label .ml-meta { display: block; font: 400 12.5px/1.45 var(--sans); color: #4a4236; margin-top: 6px; }
.museum-label--lg { padding: 28px 32px 26px; max-width: 520px; }
.museum-label--lg .ml-title { font-size: clamp(28px, 3vw, 36px); }
.museum-label--lg .ml-sub { display: block; font: italic 500 20px/1.3 var(--serif); color: #4a3f30; margin: 4px 0 18px; }
.museum-label--lg dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font: 400 14px/1.5 var(--sans); color: #2a241c; }
.museum-label--lg dt { font-weight: 700; }
.museum-label--lg dd { margin: 0; }
.museum-label--lg .ml-foot { display: block; margin-top: 18px; font: 700 9.5px/1.4 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: #8a7a60; }

/* ══ Scroll indicator: the sounding lead sinks as you read ══ */
.lead-rail { position: fixed; right: 14px; top: calc(var(--head-h) + 24px); bottom: 24px; width: 18px; z-index: 40; pointer-events: none; }
.lead-rail .line { position: absolute; left: 8px; top: 0; width: 1px; height: var(--p, 0%); background: var(--brass); }
.lead-rail .line-rest { position: absolute; left: 8px; top: 0; bottom: 0; width: 1px; background: var(--rule); }
.lead-rail .plumb { position: absolute; left: 3px; top: var(--p, 0%); width: 11px; transform: translateY(-2px); }
.lead-rail .marks { position: absolute; inset: 0; pointer-events: auto; }
.lead-rail .marks a { position: absolute; left: 1px; width: 15px; height: 15px; transform: translateY(-50%); }
.lead-rail .marks a::before { content: ''; position: absolute; left: 4px; top: 4px; width: 7px; height: 7px; border: 1px solid var(--brass); background: var(--night); }
.lead-rail .marks a.is-here::before { background: var(--brass-lt); border-color: var(--brass-lt); }
@media (max-width: 699px) { .lead-rail { right: 4px; } }

/* ══ Footer ═════════════════════════════════════════════ */
.site-foot { border-top: 1px solid var(--rule); padding: 48px 0 40px; font-size: 13.5px; color: var(--stone); }
.site-foot .foot-notice { max-width: 70em; line-height: 1.6; margin-bottom: 28px; }
.site-foot .foot-notice a { white-space: nowrap; }
.site-foot nav ul { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0 0 28px; padding: 0; }
.site-foot nav a { color: var(--parchment); text-decoration: none; }
.site-foot nav a:hover { color: var(--brass-lt); }
.site-foot .foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 20px; border-top: 1px solid var(--rule); }

/* ══ Reveal on scroll (subtle) ══════════════════════════ */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Arrival after the descent: the gallery lights up. */
.lights-up main { animation: lights-up 1.1s ease-out both; }
@keyframes lights-up { from { filter: brightness(0.15); } to { filter: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-delay: 0s !important; transition-duration: 0.001s !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
