/* Hand & Vertex – "archive" look: cream paper, forest-green ink, brass only as accent.
   Serif headings (Cormorant Garamond), sans body (Inter); Cinzel only inside the seal.
   Deliberately avoids the usual AI-design tells: no eyebrows, pills, all-caps labels, numbering, gradients or boxed-in cards. */
:root {
  --paper: #f5efe2; --paper-2: #ece4d2; --card: #fffaf0; --ink: #1c2a22; --ink-2: #5c6157; --muted: #5c6157; /* one secondary text tone, not three */
  --line: rgb(28 42 34 / .13); --green: #1f3d2b; --green-2: #2c5a40; --brass: #b8913a; --brass-ink: #1c1407; --brass-text: #7d5d16;
  --on-green: #f5efe2;
  --serif: "Cormorant Garamond", Georgia, serif; --label: Cinzel, Georgia, serif; --sans: Inter, system-ui, "Segoe UI", sans-serif;
  --r: 10px; --space: clamp(56px, 8vw, 104px); --gutter: clamp(16px, 4vw, 40px);
  --shadow: 0 1px 2px rgb(28 42 34 / .06), 0 8px 24px rgb(28 42 34 / .08);
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121a15; --paper-2: #1a261e; --card: #213128; --ink: #ece6d6; --ink-2: #a8a697; --muted: #a8a697;
    --line: rgb(236 230 214 / .12); --green: #0d1a12; --green-2: #2f5d43; --brass: #d3ae58; --brass-text: #d3ae58; --on-green: #ece6d6;
    --shadow: none; /* shadows barely show on dark: depth comes from the lighter --card instead */
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--green-2); text-underline-offset: 3px; }
@media (prefers-color-scheme: dark) { a { color: var(--brass); } }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.1; margin: 0; text-wrap: balance; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.ex-kicker { color: var(--muted); margin: 0 0 6px; font-size: 15px; }
.notes-title { font-size: clamp(24px, 2.6vw, 30px); color: var(--muted); font-weight: 600; }
.small { font-size: 14px; color: var(--muted); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--card); padding: 8px 12px; border-radius: 8px; }

button, .button { font: 600 15px var(--sans); cursor: pointer; border-radius: 8px; border: 0; padding: 13px 22px;
  background: var(--brass); color: var(--brass-ink); text-decoration: none; display: inline-block; transition: filter .15s, transform .15s; }
button:hover, .button:hover { filter: brightness(1.06); }
button:active { transform: translateY(1px); }
button.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1240px; margin: 0 auto; padding: 12px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 24px/1 var(--serif); }
.logo-seal { display: inline-block; width: 34px; height: 34px; line-height: 0; }
.logo-seal svg { width: 100%; height: 100%; }
.top nav { display: flex; gap: 22px; flex-wrap: wrap; }
.top nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; padding: 4px 0; border-bottom: 2px solid transparent; }
.top nav a:hover { color: var(--ink); }
.top nav a[aria-current] { color: var(--ink); border-color: var(--brass); }

/* Hero: mosaic of real models behind a centred headline */
.hero { position: relative; overflow: hidden; background: var(--green); color: var(--on-green); padding: clamp(72px, 11vw, 140px) var(--gutter) clamp(64px, 9vw, 112px); text-align: center; }
.mosaic { position: absolute; inset: -40px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; opacity: .55; transform: rotate(-4deg) scale(1.08); }
.mosaic img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; display: block; }
.hero::after { content: ""; position: absolute; inset: 0; background: rgb(20 38 27 / .8); }
.hero-in { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; }
.hero h1 { font-size: clamp(42px, 7vw, 84px); color: #fbf6ea; }
.hero-sub { font-size: clamp(17px, 2vw, 20px); color: #d9d4c4; max-width: 640px; margin: 20px auto 32px; }
.hero-sub a { color: #fbf6ea; }
.search { display: flex; gap: 8px; background: #fbf6ea; border-radius: 14px; padding: 6px; box-shadow: 0 10px 40px rgb(0 0 0 / .35); max-width: 720px; margin: 0 auto; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; font: 17px var(--sans); color: #1c2a22; padding: 12px 18px; }
.search input:focus { outline: none; }
.search:focus-within { outline: 3px solid var(--brass); outline-offset: 3px; }
.suggest { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; margin-top: 20px; font-size: 14px; color: #c9c4b4; }
.suggest a { color: #fbf6ea; text-decoration: underline; text-decoration-color: rgb(251 246 234 / .35); text-underline-offset: 4px; }
.suggest a:not(:last-of-type)::after { content: ","; }
.suggest a:hover { text-decoration-color: var(--brass); }

body.searching .home-only { display: none; }
body.searching .hero { padding-top: 48px; padding-bottom: 48px; }
body.searching .hero h1, body.searching .hero-sub { display: none; }

/* Facts strip */
.facts-strip { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1240px; margin: 0 auto; padding: 32px var(--gutter); gap: 16px; border-bottom: 1px solid var(--line); }
.facts-strip div { display: flex; flex-direction: column; gap: 2px; }
.facts-strip b { font: 700 30px/1.1 var(--serif); }
.facts-strip span { font-size: 14px; color: var(--muted); }

/* Browse */
.browse { padding-top: var(--space); padding-bottom: 24px; }
.browse-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.browse-head h2 { font-size: clamp(32px, 4vw, 44px); }
.status { margin: 0; font-size: 14px; color: var(--muted); min-height: 1.5em; }
.filters { margin-top: 20px; background: var(--card); border-radius: var(--r); }
.filters summary { cursor: pointer; padding: 14px 18px; font-weight: 600; }
.f-active { color: var(--brass-text); }
.f-groups { display: grid; gap: 2px; padding: 0 18px 16px; }
.filters fieldset { border: 0; margin: 0; padding: 6px 0; display: grid; grid-template-columns: 150px 1fr; align-items: start; gap: 10px; }
.filters legend { float: left; font: 600 14px/1 var(--sans); color: var(--muted); padding-top: 9px; }
.f-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.f-chip { background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 6px; padding: 6px 12px; font-size: 14px; font-weight: 500; display: inline-flex; gap: 6px; align-items: baseline; }
.f-chip:hover { border-color: var(--brass); filter: none; }
.f-chip small { color: var(--muted); font-size: 12px; }
.f-chip[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--on-green); }
.f-chip[aria-pressed="true"] small { color: inherit; opacity: .75; }
.f-chip:disabled { opacity: .35; cursor: default; }
#f-cat .f-chip { text-transform: capitalize; }
.f-row { display: flex !important; gap: 16px; align-items: center; }
.f-row label { font-size: 14px; color: var(--muted); font-weight: 600; display: flex; gap: 8px; align-items: center; }
.f-row select { font: inherit; padding: 7px 12px; border-radius: 6px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.f-row button { padding: 7px 16px; font-size: 14px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; margin-top: 28px; }
.tile { background: var(--card); border-radius: var(--r); overflow: hidden; text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tile-img { position: relative; }
.tile img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--paper-2); display: block; }
.tile-seal { position: absolute; right: 10px; bottom: -24px; line-height: 0; filter: drop-shadow(0 3px 6px rgb(0 0 0 / .3)); }
.tile-fan { position: absolute; left: 10px; top: 10px; font: 600 11px/1 var(--sans); letter-spacing: .03em; padding: 5px 9px; border-radius: 5px;
  background: #fff4d6; color: #6b4500; border: 1px solid #e3c37a; }
.fan-note { margin: 18px 0 0; padding: 14px 16px; border-radius: 10px; background: #fff4d6; color: #4a3200; border: 1px solid #e3c37a; font-size: 14px; }
.fan-note b { display: block; margin-bottom: 4px; }
.fan-note p { margin: 0; }
.downloads { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 4px; }
.dl:disabled { opacity: .7; cursor: default; }
.tile-body { padding: 14px 76px 16px 16px; display: flex; flex-direction: column; gap: 3px; }
.tile-name { font: 700 20px/1.15 var(--serif); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-author { font-size: 14px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-meta { font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.more-wrap { text-align: center; padding: 36px 0 0; }

/* How we know */
.how { background: var(--paper-2); margin-top: var(--space); padding: var(--space) 0; }
.how-in { display: grid; grid-template-columns: 280px 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.how-seal { line-height: 0; filter: drop-shadow(0 12px 24px rgb(0 0 0 / .2)); justify-self: center; }
.how h2 { font-size: clamp(32px, 4vw, 48px); max-width: 640px; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 28px 0; display: grid; gap: 18px; max-width: 640px; }
.steps li { color: var(--ink-2); }

.steps b { color: var(--ink); }
.text-link { font-weight: 600; text-decoration: none; }

/* FAQ */
.faq { padding-top: var(--space); padding-bottom: var(--space); max-width: 860px; }
.faq h2 { font-size: clamp(32px, 4vw, 44px); margin-bottom: 24px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font: 700 22px/1.25 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font: 400 28px var(--sans); color: var(--brass-text); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--ink-2); max-width: 720px; }

/* Model page */
.view { padding-top: 32px; padding-bottom: var(--space); }
.back { display: inline-block; margin-bottom: 20px; text-decoration: none; font-weight: 600; }
.model { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 36px; }
.stage { position: relative; background: var(--paper-2); border-radius: var(--r); aspect-ratio: 4/3; overflow: hidden; box-shadow: var(--shadow); }
.stage canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.stage-msg { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: var(--muted); text-align: center; padding: 16px; }
.stage-msg img { max-width: 70%; border-radius: 8px; }
.controls-hint { position: absolute; top: 6px; right: 6px; margin: 0; padding: 4px 6px; list-style: none; background: rgb(20 19 15 / .55); color: #f4f1ea;
  border-radius: 6px; font-size: 10px; line-height: 1.2; display: grid; gap: 2px; pointer-events: none; opacity: 0; transition: opacity .2s; }
.stage:hover .controls-hint { opacity: .85; }
.controls-hint kbd { display: inline-block; min-width: 52px; font: 700 9px var(--sans); color: #1d1b18; background: #f4f1ea; border-radius: 3px; padding: 1px 4px; margin-right: 4px; text-align: center; }
.controls-hint.touch { display: none; }
/* touch screens have no hover, so the finger hint stays visible there */
@media (pointer: coarse) { .controls-hint.mouse { display: none; } .controls-hint.touch { display: grid; opacity: .85; } }
.info h1 { font-size: clamp(34px, 4vw, 46px); }
.info h2 { font-size: 22px; margin: 28px 0 6px; }
.by { color: var(--ink-2); margin: 6px 0 20px; font-size: 17px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: 15px; margin: 0; padding: 4px 0 8px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.credit { display: flex; gap: 8px; align-items: stretch; margin-bottom: 20px; }
.credit code { flex: 1; font: 14px/1.5 var(--sans); background: var(--paper-2); border-radius: 8px; padding: 10px 12px; word-break: break-word; }
.credit button { border-radius: 10px; }

/* Seal */
.seal-svg { display: block; }
.m-seal { margin: 24px 0 0; }
.seal-card { border-radius: var(--r); background: var(--card); padding: 20px; }
.seal-card:has(.seal-big) { display: grid; grid-template-columns: 168px 1fr; gap: 22px; align-items: center; }
.seal-big { line-height: 0; filter: drop-shadow(0 8px 16px rgb(0 0 0 / .22)); }
.seal-card h2 { font-size: 26px; color: var(--green-2); }
@media (prefers-color-scheme: dark) { .seal-card h2 { color: var(--brass); } }
.seal-no { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.seal-card ul { margin: 12px 0 0; padding-left: 18px; font-size: 14px; color: var(--ink-2); }
.seal-card .small { margin: 10px 0 0; }
.seal { display: inline-flex; gap: 12px; align-items: center; padding: 10px 16px 10px 12px; border-radius: 14px; border: 2px solid currentColor; }
.seal b { display: block; } .seal small { display: block; font-size: 12px; opacity: .85; }
.seal-icon { font-size: 22px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 2px dashed currentColor; }
.seal-none { color: var(--muted); }
.seal-art { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; }
.seal-art .seal-svg { margin-bottom: 8px; filter: drop-shadow(0 6px 12px rgb(0 0 0 / .2)); }
.seal-art b { font: 700 20px var(--serif); }
.seal-art small { color: var(--muted); font-size: 12px; }

/* Text pages */
.prose { max-width: 900px; }
.prose h1 { font-size: clamp(40px, 6vw, 64px); margin-bottom: 14px; }
.prose h2 { font-size: 30px; margin: 40px 0 10px; }
.prose li { margin-bottom: 8px; color: var(--ink-2); }
.lead { font-size: 20px; color: var(--ink-2); max-width: 720px; }
.seal-levels { display: grid; gap: 28px; margin: 36px 0; }
.level { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; padding-bottom: 12px; }
.level p { margin: 0; color: var(--ink-2); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; margin: 32px 0; }
.card { background: var(--card); border-radius: var(--r); padding: 22px; }
.card h3 { font-size: 23px; margin-bottom: 6px; }
.card .tag { font: 600 14px/1.4 var(--sans); color: var(--green-2); margin: 0 0 10px; }
@media (prefers-color-scheme: dark) { .card .tag { color: var(--brass); } }
.card.muted .tag { color: var(--muted); }
.card p { margin: 0 0 10px; font-size: 15px; color: var(--ink-2); }
.table-wrap { overflow-x: auto; }
.sources { width: 100%; border-collapse: collapse; font-size: 15px; margin: 24px 0; }
.sources th, .sources td { text-align: left; padding: 14px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.sources th { font: 600 14px var(--sans); color: var(--muted); }

.heart { position: absolute; right: 10px; top: 10px; width: 36px; height: 36px; padding: 0; border-radius: 50%; font-size: 18px; line-height: 36px;
  background: rgb(255 250 240 / .92); color: #8a2d2d; box-shadow: 0 2px 6px rgb(0 0 0 / .2); opacity: 0; transition: opacity .15s; }
.tile:hover .heart, .tile:focus-within .heart, .heart[aria-pressed="true"] { opacity: 1; }
@media (pointer: coarse) { .heart { opacity: 1; } }
.save-btn { padding: 4px 12px; font-size: 13px; margin-left: 8px; vertical-align: middle; }
.save-btn[aria-pressed="true"] { color: #8a2d2d; border-color: #c98a8a; }
.similar { margin-top: var(--space); }
.similar h2 { font-size: clamp(28px, 3vw, 38px); }
.page-title { font-size: clamp(40px, 6vw, 60px); margin-bottom: 8px; }
.empty { margin: 40px 0; color: var(--ink-2); font-size: 18px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pic-btn { display: grid; place-items: center; width: 46px; border-radius: 8px; /* inner radius = search radius 14 - padding 6 */ color: #1c2a22; cursor: pointer; flex: none; }
.pic-btn:hover { background: rgb(28 42 34 / .08); }
.pic-btn:focus-within { outline: 3px solid var(--brass); }
.pic-hint { font-size: 13px; color: #c9c4b4; margin: 14px 0 0; }
body.searching .pic-hint { display: none; }
#pic-preview { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; vertical-align: middle; margin-right: 14px; box-shadow: var(--shadow); }
.tile-copy { position: absolute; left: 10px; bottom: 10px; font: 600 11px/1 var(--sans); padding: 5px 9px; border-radius: 5px; background: #8a2d2d; color: #fff; }
/* ---------- start page: video-inspired sections ---------- */
.hero-alt { background: none; border: 0; padding: 6px 0; margin-top: 18px; color: #fbf6ea; font: 500 15px var(--sans); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgb(251 246 234 / .4); }
.hero-alt:hover { text-decoration-color: var(--brass); filter: none; }
body.searching .hero-alt { display: none; }

/* exhibit: vitrine with a spotlight and plinth, tilted neighbours (Airo-style showcase) */
.exhibit { padding: var(--space) 0; }
.exhibit-in { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.exhibit-stage { display: grid; grid-template-columns: 17% 1fr 17%; align-items: center; perspective: 1400px; }
.vitrine { position: relative; aspect-ratio: 1 / 1; border-radius: var(--r); overflow: hidden; z-index: 1;
  background: #f3ead8; box-shadow: var(--shadow), inset 0 0 0 1px rgb(184 145 58 / .35); }
.vitrine::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: 9%; height: 7%; border-radius: 50%; background: radial-gradient(closest-side, rgb(60 45 20 / .28), transparent); pointer-events: none; }
.vitrine canvas { display: block; width: 100%; height: 100%; position: relative; z-index: 1; touch-action: none; }
.vitrine-msg { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: #6b6255; font-size: 14px; }
.ex-side { padding: 0; border-radius: var(--r); overflow: hidden; background: var(--card); opacity: .7; transition: transform .35s, opacity .2s; }
.ex-side img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.ex-prev { transform: translateX(28%) rotateY(32deg) scale(.88); transform-origin: right center; }
.ex-next { transform: translateX(-28%) rotateY(-32deg) scale(.88); transform-origin: left center; }
.ex-side:hover { opacity: 1; filter: none; }
.museum-label { background: var(--card); border-radius: var(--r); padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow); }
.museum-label h2 { font-size: clamp(32px, 3.6vw, 46px); }
.ex-by { color: var(--ink-2); margin: 6px 0 18px; }
.ex-seal { line-height: 0; }
.ex-note { margin: 20px 0 0; font: italic 600 22px/1.35 var(--serif); color: var(--ink); border-left: 2px solid var(--brass); padding-left: 16px; }
.ex-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.ex-dots { display: flex; gap: 8px; margin-top: 20px; }
.ex-dot { width: 10px; height: 10px; padding: 0; border-radius: 50%; background: var(--line); }
.ex-dot[aria-current="true"] { background: var(--brass); }

/* model finder (style-quiz idea) */
.finder { background: var(--paper-2); padding: var(--space) 0; }
.finder-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.finder h2 { font-size: clamp(32px, 4vw, 48px); }
.finder-intro p:not(.eyebrow) { color: var(--ink-2); font-size: 18px; }
.finder-card { background: var(--card); border-radius: var(--r); padding: clamp(20px, 3vw, 32px); min-height: 340px; box-shadow: var(--shadow); }
.fq-top { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.fq-step { font-size: 14px; color: var(--muted); white-space: nowrap; }
.fq-bar { flex: 1; height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.fq-bar i { display: block; height: 100%; background: var(--brass); transition: width .3s; }
.finder-card h3 { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 18px; }
.fq-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fq-opt { background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 4px; padding: 16px 18px; text-align: left; font: 600 19px/1.2 var(--serif); }
.fq-opt:hover, .fq-opt[aria-pressed="true"] { border-color: var(--brass); background: var(--card); filter: none; }
.fq-back { background: none; color: var(--ink-2); padding: 14px 0 0; font-weight: 500; }
.fq-why { margin: 0 0 22px; padding-left: 18px; color: var(--ink-2); }
.fq-why li { margin-bottom: 6px; }
.fq-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* rooms: alternating picture/text rows */
.rooms { padding: var(--space) 0 0; }
.rooms h2 { font-size: clamp(32px, 4vw, 48px); max-width: 720px; margin-bottom: 40px; }
.room { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; margin-bottom: 56px; }
.room.flip .room-pics { order: 2; }
.room-pics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; border-radius: 18px; overflow: hidden; }
.room-pics img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--paper-2); transition: transform .4s; }
.room-pics:hover img { transform: scale(1.03); }
.room h3 { font-size: clamp(30px, 3.4vw, 42px); margin-bottom: 10px; }
.room-text p:not(.eyebrow):not(.small) { color: var(--ink-2); font-size: 18px; max-width: 460px; }

/* timeline */
.timeline { margin: 64px auto 0; }
.timeline figcaption { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; margin-bottom: 10px; }
.timeline figcaption b { font: 700 24px var(--serif); }
.timeline figcaption span { font-size: 14px; color: var(--muted); }
.tl-chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.tl-bar path { fill: #2e7d4f; transition: fill .15s; }
.tl-bar:hover path, .tl-bar:focus path { fill: var(--brass); }
.tl-axis { stroke: var(--line); stroke-width: 1; }
.tl-gap { fill: var(--brass); opacity: .08; }
.tl-mark { stroke: var(--ink-2); stroke-width: 1.5; stroke-dasharray: 4 4; }
.tl-mark.ai { stroke: #8a2d2d; }
.tl-label { font: 600 13px var(--sans); fill: var(--ink-2); }
.tl-gaptext { font: 600 18px var(--serif); fill: var(--muted); }
.tl-year { font: 500 13px var(--sans); fill: var(--muted); }
@media (prefers-color-scheme: dark) { .tl-bar path { fill: #c9a24e; } .tl-bar:hover path { fill: #efd28f; } .tl-mark.ai { stroke: #e08a8a; } }

/* notes from the artists */
.notes { padding: var(--space) 0; text-align: center; }
.notes-in { max-width: 920px; }
.note-big { margin: 10px 0 0; }
.note-big blockquote { margin: 0; font: italic 600 clamp(28px, 4.2vw, 50px)/1.18 var(--serif); color: var(--ink); min-height: 2.4em; }
.note-big blockquote.in { animation: note-in .6s ease both; }
@keyframes note-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.note-big figcaption { margin-top: 18px; color: var(--ink-2); }
.note-nav { display: flex; gap: 14px; justify-content: center; align-items: center; margin: 22px 0 10px; color: var(--muted); font-size: 14px; }
.note-nav button { padding: 8px 16px; }

/* call-to-action band for artists */
.band { background: var(--brass); color: var(--brass-ink); padding: 48px 0; }
.band-in { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.band h2 { font-size: clamp(30px, 3.6vw, 42px); }
.band p { margin: 6px 0 0; max-width: 560px; }
.band .button { background: var(--green); color: var(--on-green); }

/* scroll reveal (only with JS, never with reduced motion) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } .note-big blockquote.in { animation: none; } }

@media (max-width: 760px) {
  .exhibit-in, .finder-in, .room { grid-template-columns: 1fr; }
  .exhibit-stage { grid-template-columns: 1fr; }
  .ex-side { display: none; }
  .room.flip .room-pics { order: 0; }
  .fq-opts { grid-template-columns: 1fr; }
  .tl-chart { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tl-chart svg { min-width: 680px; } /* swipe sideways instead of shrinking the labels to nothing */
  .tl-chart { -webkit-mask-image: linear-gradient(to right, #000 85%, transparent); mask-image: linear-gradient(to right, #000 85%, transparent); } /* fade the edge so it reads as scrollable */
  .band-in { flex-direction: column; align-items: flex-start; }
}

.todo-note { background: #fff4d6; color: #4a3200; border: 1px dashed #c99a2e; border-radius: 10px; padding: 12px 14px; font-size: 14px; }

/* Footer */
.foot { background: var(--green); color: var(--on-green); padding: 48px 0; }
.foot-in { display: grid; grid-template-columns: 1fr auto; gap: 16px 40px; align-items: start; }
.foot-in > div { display: grid; grid-template-columns: auto 1fr; gap: 0 12px; align-items: center; }
.foot-in b { font: 700 24px var(--serif); }
.foot-in > div p { grid-column: 2; margin: 0; color: #c9c4b4; font-size: 14px; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot nav a { color: var(--on-green); text-decoration: none; }
.foot .small { grid-column: 1 / -1; color: #a8a596; margin: 12px 0 0; }

/* Phone */
@media (max-width: 760px) {
  /* phone: one swipeable row instead of two wrapped lines, so the sticky header stays small; faded edge shows it scrolls */
  .top-in { flex-wrap: nowrap; gap: 12px; padding-top: 8px; padding-bottom: 8px; }
  .logo { font-size: 20px; flex: none; } .logo-seal { width: 28px; height: 28px; }
  .top nav { gap: 16px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(to right, #000 85%, transparent); mask-image: linear-gradient(to right, #000 85%, transparent); }
  .top nav a { white-space: nowrap; }
  .top nav a { font-size: 14px; }
  .facts-strip { grid-template-columns: 1fr 1fr; gap: 20px; }
  .facts-strip b { font-size: 24px; }
  .filters fieldset { grid-template-columns: 1fr; gap: 6px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 14px; }
  .tile-name { font-size: 17px; }
  .tile-body { padding: 10px 56px 12px 12px; }
  .tile-seal svg { width: 48px; height: 48px; }
  .how-in { grid-template-columns: 1fr; }
  .model { grid-template-columns: 1fr; gap: 24px; }
  .model > div:first-child { display: contents; } /* phone order: 3D view, title + facts, then seal */
  .m-seal { order: 3; margin: 0; }
  .level { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .seal-card:has(.seal-big) { grid-template-columns: 1fr; justify-items: center; }
  .foot-in { grid-template-columns: 1fr; }
  .search button { padding: 12px 18px; }
}

/* video 2 craft details */
/* white thumbnail backgrounds melt into the cream card instead of showing as white boxes (light mode only) */
@media (prefers-color-scheme: light) { .tile-img { background: var(--card); } .tile img { mix-blend-mode: multiply; } }
/* swapping the heart icon gets a short blur instead of a hard cut */
.heart.swap, .save-btn.swap { animation: icon-swap .25s ease; }
@keyframes icon-swap { from { filter: blur(3px); opacity: .4; } to { filter: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .heart.swap, .save-btn.swap { animation: none; } }

/* accounts: model actions and account page */
.m-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.act { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; font-size: 14px; }
.act svg { flex: none; }
.act b { font-weight: 600; color: var(--muted); }
.act[aria-pressed="true"] { background: var(--green); color: var(--on-green); border-color: var(--green); }
.act[aria-pressed="true"] b { color: inherit; }
.save-btn { margin-left: 0; }
.acc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin: 28px 0 8px; }
.acc-grid section { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.acc-grid h2 { font-size: 24px; margin: 0 0 4px; }
.acc-grid label { font-size: 14px; color: var(--muted); }
.acc-grid input { font: 16px var(--sans); padding: 11px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink); width: 100%; max-width: 340px; }
.acc-grid .button { width: auto; }
.acc-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0 8px; }
.acc-msg { min-height: 1.5em; color: #8a2d2d; }
.acc-error { color: #8a2d2d; }
.danger { color: #8a2d2d; border-color: rgb(138 45 45 / .35); }
@media (prefers-color-scheme: dark) { .acc-msg, .acc-error, .danger { color: #e7a0a0; } }
@media (max-width: 760px) { .acc-grid { grid-template-columns: 1fr; } }

/* language switch (i18n.js): long texts exist in both languages, only the chosen one shows */
html[lang="de"] [data-l="en"], html:not([lang="de"]) [data-l="de"] { display: none !important; }
.lang-btn { padding: 5px 10px; font-size: 14px; font-weight: 600; border-radius: 6px; }
#m-save-count { align-self: center; }
.top nav { margin-left: auto; } /* menu and language button sit together on the right */
.lang-btn { flex-shrink: 0; }
@media (min-width: 1081px) { .top-in { flex-wrap: nowrap; } .logo { flex: none; } .top nav { justify-content: flex-end; flex-wrap: nowrap; white-space: nowrap; } #nav-account { display: inline-block; vertical-align: bottom; max-width: 160px; overflow: hidden; text-overflow: ellipsis; } }
/* sign-in: Google/GitHub first, passkey folded away */
.acc-providers { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin: 24px 0 28px; }
.acc-providers .button { min-width: 240px; text-align: center; }
.acc-passkey { border-top: 1px solid var(--line); padding-top: 14px; }
.acc-passkey summary { cursor: pointer; color: var(--ink-2); font-weight: 600; }
/* Google / GitHub buttons with their logos (Google asks for a light button with the four-colour G) */
.button.oauth { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.button.oauth.google { background: #fff; color: #1f1f1f; border: 1px solid #747775; }
.button.oauth.github { background: #24292f; color: #fff; border: 1px solid #24292f; }
/* phone menu: ⋯ button instead of the swipe row */
.menu-btn { display: none; padding: 2px 12px; font-size: 22px; line-height: 1.2; border-radius: 6px; flex-shrink: 0; }
@media (max-width: 1080px) {
  .top-in { flex-wrap: nowrap; } .logo { flex: none; } /* header menu folds into ⋯ up to 1080px: the German labels need ~1000px in one row */
  .menu-btn { display: inline-block; }
  .top nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; margin: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 6px var(--gutter) 12px; overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .top.menu-open nav { display: flex; }
  .top nav a { padding: 12px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .top nav a:last-child { border-bottom: 0; }
  .top nav a[aria-current] { color: var(--brass-text, var(--ink)); border-color: var(--line); font-weight: 700; }
  .lang-btn { margin-left: auto; }
}
/* model page actions: icons only, side by side; counts next to the icon */
.m-actions { align-items: center; gap: 6px; }
.act { padding: 9px 12px; min-width: 44px; min-height: 42px; justify-content: center; gap: 6px; }
.act b:empty { display: none; }
.save-btn[aria-pressed="true"] svg path { fill: currentColor; }
.act-msg { margin-left: 4px; }
.act[aria-pressed="true"] { background: var(--brass); color: var(--brass-ink); border-color: var(--brass); } /* --green is near-black in dark mode */
.m-report { margin-top: 10px; }
