:root {
  --bg: #161616;
  --bg-2: #1f1f1f;
  --bg-3: #282828;
  --line: #333333;
  --text: #f0efec;
  --muted: #9d9b96;
  --accent: #d27a52;
  --accent-2: #e8a07c;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, 'Segoe UI', Calibri, Roboto, Arial, sans-serif;
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--accent-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--text); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.kicker { font-size: .9rem; color: var(--accent); margin-bottom: .5em; }
.muted { color: var(--muted); }
.lead { font-size: 1.15rem; color: #dddbd6; }
.btn { display: inline-block; padding: .7em 1.2em; border: 1px solid var(--accent); color: var(--text); text-decoration: none; border-radius: 2px; font-size: .95rem; background: transparent; cursor: pointer; font-family: inherit; }
.btn:hover { background: var(--accent); color: var(--bg); }
.btn.solid { background: var(--accent); color: var(--bg); }
.btn.solid:hover { background: var(--accent-2); }
.tag { display: inline-block; font-size: .75rem; padding: .15em .6em; border: 1px solid var(--line); border-radius: 20px; color: var(--muted); }
.notice { border: 1px dashed var(--line); padding: 1.2em 1.4em; color: var(--muted); background: var(--bg-2); border-radius: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(22,22,22,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { font-family: var(--serif); font-size: 1.2rem; color: var(--text); text-decoration: none; white-space: nowrap; }
.brand span { color: var(--accent); }
.nav { display: flex; gap: 2px; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; padding: .45em .65em; font-size: .92rem; border-radius: 2px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--bg-3); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--text); padding: .4em .7em; border-radius: 2px; font-size: .95rem; }
@media (max-width: 1020px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; padding: 8px var(--gutter) 16px; }
  .nav.open { display: flex; }
  .nav a { padding: .7em .4em; font-size: 1rem; }
}

/* footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 80px; padding: 40px 0 56px; color: var(--muted); font-size: .9rem; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-footer h4 { font-family: var(--serif); font-weight: 400; color: var(--text); margin: 0 0 .5em; font-size: 1rem; }
.site-footer a { color: var(--muted); }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* sections */
.section { padding-top: clamp(48px, 8vw, 96px); }
.page-head { padding-top: clamp(28px, 5vw, 56px); padding-bottom: 8px; }

/* home */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; padding-top: clamp(32px, 6vw, 72px); }
.hero-img { position: relative; }
.hero-img img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.hero-img figcaption { font-size: .8rem; color: var(--muted); margin-top: 8px; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } .hero-img { order: -1; } .hero-img img { aspect-ratio: 4/3; } }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { display: block; background: var(--bg-2); text-decoration: none; color: var(--text); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--text); }
.card img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.card .body { padding: 18px 20px 22px; }
.card h3 { margin-bottom: .3em; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }
.cards.small { grid-template-columns: repeat(4, 1fr); }
.cards.small .card .body { padding: 16px; }
@media (max-width: 900px) { .cards, .cards.small { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cards, .cards.small { grid-template-columns: 1fr; } }
.partners { display: flex; flex-wrap: wrap; gap: 12px 28px; color: var(--muted); }

/* galleries */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.grid.big { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.tile { position: relative; background: var(--bg-2); border: 0; padding: 0; cursor: zoom-in; text-align: left; color: var(--text); font: inherit; display: flex; flex-direction: column; }
.tile img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; background: var(--bg-3); }
.tile .cap { padding: 8px 10px 10px; font-size: .84rem; line-height: 1.35; color: var(--muted); }
.tile:hover img { filter: brightness(1.08); }
.tile .badge { position: absolute; top: 8px; left: 8px; background: rgba(0,0,0,.6); color: var(--accent-2); font-size: .7rem; padding: 2px 7px; letter-spacing: .05em; }

/* archive filters */
.filters { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 10px; margin: 24px 0 12px; }
.filters input, .filters select, form input, form select, form textarea { width: 100%; background: var(--bg-2); color: var(--text); border: 1px solid var(--line); padding: .65em .8em; font: inherit; font-size: .95rem; border-radius: 2px; }
.filters label { font-size: .85rem; color: var(--muted); display: block; margin-bottom: 4px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 20px; color: var(--muted); font-size: .92rem; }
.check { display: inline-flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check input { width: auto; flex: none; margin-top: .35em; accent-color: var(--accent); }
@media (max-width: 900px) { .filters { grid-template-columns: 1fr 1fr; } .filters .q { grid-column: 1 / -1; } }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(10,10,10,.97); display: none; grid-template-columns: 1fr 340px; }
.lb.open { display: grid; }
.lb-stage { position: relative; display: flex; align-items: center; justify-content: center; padding: 56px 64px; min-height: 0; }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 112px); object-fit: contain; }
.lb-info { background: var(--bg); border-left: 1px solid var(--line); padding: 56px 28px 28px; overflow: auto; }
.lb-info h3 { font-size: 1.3rem; }
.lb-info dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: .9rem; margin: 18px 0; }
.lb-info dt { color: var(--muted); }
.lb-info dd { margin: 0; }
.lb-btn { position: absolute; background: rgba(0,0,0,.45); color: var(--text); border: 1px solid var(--line); width: 44px; height: 44px; font-size: 1.3rem; cursor: pointer; border-radius: 2px; }
.lb-btn:hover { border-color: var(--accent); }
.lb-close { top: 10px; right: 10px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lb-toggle { display: flex; gap: 6px; margin: 14px 0; }
.lb-toggle button { flex: 1; background: var(--bg-2); color: var(--muted); border: 1px solid var(--line); padding: .5em; cursor: pointer; font: inherit; font-size: .85rem; }
.lb-toggle button[aria-pressed="true"] { color: var(--bg); background: var(--accent); border-color: var(--accent); }
@media (max-width: 900px) {
  .lb { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .lb-stage { padding: 56px 8px 8px; }
  .lb-stage img { max-height: 58vh; }
  .lb-info { border-left: 0; border-top: 1px solid var(--line); padding: 18px 18px 24px; max-height: 40vh; }
}

/* compare slider */
.compare { position: relative; max-width: 100%; max-height: calc(100vh - 112px); user-select: none; touch-action: none; }
.compare img { max-height: calc(100vh - 112px); }
.compare .over { position: absolute; inset: 0; overflow: hidden; }
.compare .over img { position: absolute; top: 0; left: 0; height: 100%; width: auto; max-width: none; max-height: none; }
.compare .handle { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--accent); cursor: ew-resize; }
.compare .handle::after { content: '⇆'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--accent); color: var(--bg); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; }
.compare .lbl { position: absolute; bottom: 8px; font-size: .72rem; background: rgba(0,0,0,.6); padding: 2px 8px; letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 900px) { .compare, .compare img { max-height: 58vh; } }

/* exhibition */
.chapters-nav { display: flex; gap: 6px; flex-wrap: wrap; margin: 24px 0 0; }
.chapters-nav a { font-size: .85rem; padding: .35em .8em; border: 1px solid var(--line); color: var(--muted); text-decoration: none; border-radius: 20px; }
.chapters-nav a:hover { color: var(--text); border-color: var(--accent); }
.chapter { padding-top: clamp(56px, 9vw, 110px); scroll-margin-top: 64px; }
.chapter-head { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(20px, 4vw, 56px); margin-bottom: 28px; }
@media (max-width: 860px) { .chapter-head { grid-template-columns: 1fr; } }

/* timeline */
.timeline { border-left: 1px solid var(--line); margin: 32px 0 0 8px; padding-left: 28px; }
.tl { position: relative; padding-bottom: 28px; }
.tl::before { content: ''; position: absolute; left: -33px; top: 8px; width: 9px; height: 9px; background: var(--accent); border-radius: 50%; }
.tl .year { font-family: var(--serif); color: var(--accent); font-size: 1.15rem; }
.tl a { font-size: .9rem; }
.bio-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 5vw, 64px); }
.bio-grid figure { margin: 0 0 20px; }
.bio-grid figure.cutout img { background: none; }
.bio-grid figcaption { font-size: .8rem; color: var(--muted); margin-top: 6px; }
@media (max-width: 860px) { .bio-grid { grid-template-columns: 1fr; } }
blockquote { margin: 1.4em 0; padding: 0 0 0 1.2em; border-left: 2px solid var(--accent); font-family: var(--serif); font-size: 1.2rem; color: #e8e6e1; }
blockquote cite { display: block; font: .85rem var(--sans); color: var(--muted); margin-top: .5em; font-style: normal; }

/* map */
.map-layout { display: grid; grid-template-columns: 360px 1fr; gap: 0; border: 1px solid var(--line); height: min(72vh, 720px); margin-top: 24px; }
#map { height: 100%; background: #111; }
.map-list { overflow: auto; border-right: 1px solid var(--line); }
.map-list button { display: grid; grid-template-columns: 72px 1fr; gap: 12px; width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--text); text-align: left; padding: 12px; cursor: pointer; font: inherit; }
.map-list button:hover, .map-list button.active { background: var(--bg-2); }
.map-list img, .map-list .ph { width: 72px; height: 54px; object-fit: cover; background: var(--bg-3); }
.map-list strong { font-family: var(--serif); font-weight: 400; display: block; }
.map-list small { color: var(--muted); }
@media (max-width: 860px) { .map-layout { grid-template-columns: 1fr; height: auto; } #map { height: 60vh; } .map-list { max-height: none; border-right: 0; border-top: 1px solid var(--line); order: 2; } }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--bg) !important; color: var(--text) !important; border-radius: 2px !important; }
.leaflet-popup-content { margin: 12px 14px !important; font: 14px/1.45 var(--sans); }
.leaflet-popup-content img { width: 220px; height: 140px; object-fit: cover; margin-bottom: 8px; }
.leaflet-popup-content strong { font: 400 1.05rem var(--serif); display: block; }
.leaflet-container a.leaflet-popup-close-button { color: var(--muted); }
.pin { width: 16px; height: 16px; background: var(--accent); border: 2px solid var(--bg); border-radius: 50%; box-shadow: 0 0 0 1px var(--accent); }

/* building page */
.bld-hero img { width: 100%; max-height: 70vh; object-fit: cover; }
.bld-meta { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0 18px; }
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 5vw, 64px); }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

/* 3D + oral history */
.model-card { background: var(--bg-2); border: 1px solid var(--line); }
.model-card .stage { aspect-ratio: 4/3; background: var(--bg-3); display: grid; place-items: center; color: var(--muted); font-size: .9rem; text-align: center; padding: 20px; }
.model-card model-viewer { width: 100%; height: 100%; }
.model-card .body { padding: 16px 18px 20px; }
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 40px; }
@media (max-width: 760px) { .quotes { grid-template-columns: 1fr; } }
.quotes blockquote { margin: .8em 0; }

/* form */
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
form .field { margin-bottom: 16px; }
form label.l { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
form textarea { min-height: 140px; resize: vertical; }
.upload-row { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.upload-row .qr { background: #fff; padding: 6px; border-radius: 4px; }
form .err { color: #e0907a; font-size: .85rem; margin-top: 4px; }
@media (max-width: 620px) { form .row { grid-template-columns: 1fr; } }

/* breadcrumbs, fișa de arhivă */
.crumbs { font-size: .85rem; color: var(--muted); padding: 24px 0 0; }
.crumbs a { color: var(--muted); }
.crumbs span { color: var(--text); }
.doc-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(24px, 4vw, 56px); padding-top: 24px; }
.doc-zoom { border: 0; padding: 0; background: var(--bg-2); cursor: zoom-in; width: 100%; }
.doc-zoom img { width: 100%; max-height: 78vh; object-fit: contain; }
.doc-variants { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.doc-variants figure { margin: 0; }
.doc-variants img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.doc-variants figcaption { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.doc-title { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.meta { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: .95rem; margin: 20px 0 24px; }
.meta dt { color: var(--muted); }
.meta dd { margin: 0; }
.doc-actions .btn { margin: 0 6px 8px 0; }
@media (max-width: 860px) { .doc-layout { grid-template-columns: 1fr; } }
.video { position: relative; aspect-ratio: 16/9; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
#more { display: block; margin: 28px auto 0; }
@media (min-width: 901px) { .filters { grid-template-columns: 2fr repeat(3, 1fr); } }
@media (max-width: 480px) { .filters { grid-template-columns: 1fr; } }
.archive-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.archive-tabs a { font-size: .9rem; padding: .45em 1em; border: 1px solid var(--line); color: var(--muted); text-decoration: none; border-radius: 20px; }
.archive-tabs a[aria-current="page"], .archive-tabs a:hover { color: var(--bg); background: var(--accent); border-color: var(--accent); }
.events { display: grid; gap: 48px; margin-top: 24px; }
.event .strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-top: 14px; }
.event .strip img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.legal h2 { font-size: 1.35rem; margin-top: 1.6em; }

/* hartă în ton închis */
.leaflet-tile-pane { filter: grayscale(1) invert(1) brightness(.82) contrast(.92); }
