/* =====================================================================
   MUSEU GCVR · catálogo de exposição · 2026
   Edition B&W + acento vermelho · tipografia editorial maciça
   ===================================================================== */

:root {
  --red:        #d4112c;
  --red-deep:   #97081d;
  --red-glow:   rgba(212, 17, 44, 0.22);
  --black:      #050505;
  --ink:        #0e0e0e;
  --ink-soft:   #4a4a4a;
  --ink-faded:  #7a7a7a;
  --gold:       #c9a02e;
  --gold-soft:  #ead78a;
  --paper:      #f6f1e7;
  --bone:       #ece3d2;
  --canvas:     #e2d6bf;
  --line:       rgba(5,5,5,.10);
  --line-2:     rgba(5,5,5,.20);
  --line-w:     rgba(255,255,255,.10);
  --shadow-1:   0 2px 4px rgba(0,0,0,.04), 0 16px 40px -10px rgba(0,0,0,.10);
  --shadow-2:   0 30px 80px -20px rgba(0,0,0,.32);
  --plinth:     linear-gradient(180deg, #faf3e3 0%, #d8caac 100%);

  --serif: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --sans:  "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-font-smoothing: antialiased; }
html { scroll-behavior: smooth; background: var(--paper); }
body {
  font-family: var(--sans); color: var(--ink); background: var(--paper);
  line-height: 1.5; font-feature-settings: "ss01","cv11";
}

a { color: var(--red); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--red-deep); }

img { max-width: 100%; display: block; }

::selection { background: var(--red); color: #fff; }

/* ============= TIPOGRAFIA editorial ============= */
.display, h1, h2, h3, h4 {
  font-family: var(--serif); font-weight: 400; color: var(--black);
  line-height: 0.96; letter-spacing: -0.025em;
  font-variation-settings: "SOFT" 30, "WONK" 1, "opsz" 144;
}
.display { font-size: clamp(3.4rem, 12vw, 11rem); }
h1 { font-size: clamp(3rem, 8.5vw, 7.6rem); font-weight: 400; }
h2 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); font-weight: 400; }
h3 { font-family: var(--serif); font-size: clamp(1.4rem, 2vw, 1.8rem); font-weight: 500; line-height: 1.06; }
.italic { font-style: italic; font-weight: 400; }
em { font-style: italic; color: var(--red); font-variation-settings: "SOFT" 50; }

p { line-height: 1.6; }

/* Hanging running head (marginalia) */
.running-head {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--ink-soft);
}
.dark .running-head { color: rgba(255,255,255,.6); }

/* ============= LAYOUT ============= */
.wrap     { width: min(1480px, 94%); margin: 0 auto; }
.wrap-md  { width: min(1180px, 92%); margin: 0 auto; }
.wrap-sm  { width: min(820px, 92%); margin: 0 auto; }
.wrap-xs  { width: min(640px, 92%); margin: 0 auto; }

/* Compatibility with old templates */
.container { width: min(1180px, 92%); margin: 0 auto; }
.container-narrow { width: min(820px, 92%); margin: 0 auto; }

section { position: relative; }
.block { padding: clamp(5rem, 11vw, 10rem) 0; position: relative; }
.block.tight { padding: clamp(3rem, 6vw, 5rem) 0; }
.block.dark { background: var(--black); color: #ececec; }
.block.dark h1, .block.dark h2, .block.dark h3 { color: #fff; }
.block.bone   { background: var(--bone); }
.block.canvas { background: var(--canvas); }
.block.paper  { background: var(--paper); }
.block.cream  { background: var(--paper); }

/* Vertical numbered rules (catalogue style) */
.numbered {
  display: flex; align-items: baseline; gap: 1.4rem;
  border-top: 2px solid var(--ink); padding-top: 1.4rem; margin-bottom: 2.6rem;
}
.numbered .n {
  font-family: var(--mono); font-size: .85rem; letter-spacing: .14em;
  color: var(--ink); font-weight: 500;
}
.dark .numbered { border-top-color: rgba(255,255,255,.4); }
.dark .numbered .n { color: rgba(255,255,255,.85); }
.numbered .t {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .22em;
  color: var(--ink-soft); text-transform: uppercase;
}
.dark .numbered .t { color: rgba(255,255,255,.6); }

/* Eyebrow / kicker */
.kicker {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--ink); margin-bottom: 1rem;
}
.kicker::before { content: ""; width: 28px; height: 1px; background: var(--red); }
.dark .kicker { color: rgba(255,255,255,.78); }
.dark .kicker::before { background: var(--gold); }

/* Section head/tail compat */
.section-head { max-width: 880px; margin-bottom: 3rem; }
.section-head p { margin-top: 1.2rem; color: var(--ink-soft); font-size: 1.1rem; max-width: 680px; }
.dark .section-head p { color: rgba(255,255,255,.7); }
.section-tail { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 3rem; flex-wrap: wrap; }

/* ============= TOP STRIP ============= */
.topbar {
  background: var(--black); color: #d8d3c4; font-size: .72rem;
  letter-spacing: .04em; font-family: var(--mono); border-bottom: 1px solid #1a1a1a;
}
.topbar .wrap, .topbar .container {
  display: flex; gap: 1.2rem; padding: .55rem 0; flex-wrap: wrap;
  justify-content: space-between; align-items: center;
}
.topbar a { color: var(--gold-soft); }
.topbar .pulse { color: var(--red); animation: pulse 2.5s infinite; }
@keyframes pulse { 0%,70%,100% { opacity: 1; } 35% { opacity: .35; } }
.topbar .group { display: flex; gap: 1.2rem; align-items: center; }

/* Color band */
.color-strip { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; height: 3px; }
.color-strip span:nth-child(1) { background: var(--black); }
.color-strip span:nth-child(2) { background: var(--red); }
.color-strip span:nth-child(3) { background: var(--gold); }
.color-strip span:nth-child(4) { background: #fff; }

/* ============= HEADER ============= */
.site-header {
  position: sticky; top: 0; z-index: 80;
  background: rgba(246, 241, 231, 0.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap, .site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; padding: .9rem 0;
}
.brand { display: flex; align-items: center; gap: .85rem; }
.brand img { height: 56px; width: auto; }
.brand-text strong {
  display: block; font-family: var(--serif); font-size: 1.4rem;
  color: var(--black); font-weight: 500; line-height: 1;
  font-variation-settings: "SOFT" 50, "opsz" 144;
}
.brand-text span {
  display: block; font-family: var(--mono); font-size: .62rem;
  letter-spacing: .26em; text-transform: uppercase; color: var(--red);
  margin-top: 4px;
}

nav.main { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; }
nav.main a {
  color: var(--ink); font-weight: 500; font-size: .92rem; padding: .35rem 0;
  position: relative; letter-spacing: -0.005em;
}
nav.main a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px;
  height: 1px; background: var(--red); transition: right .25s ease;
}
nav.main a:hover::after, nav.main a.active::after { right: 0; }
nav.main a.cta {
  background: var(--black); color: #fff; padding: .6rem 1.1rem;
  border-radius: 0; font-size: .82rem; font-family: var(--mono);
  letter-spacing: .14em; text-transform: uppercase;
}
nav.main a.cta:hover { background: var(--red); color: #fff; }
nav.main a.cta::after { display: none; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; }
.nav-toggle span { display: block; width: 24px; height: 1.5px; background: var(--black); margin: 6px 0; transition: .25s; }
@media (max-width: 1180px) {
  nav.main {
    display: none; position: fixed; inset: 64px 0 auto 0;
    flex-direction: column; gap: 0; background: var(--paper); padding: 1rem 0;
    box-shadow: var(--shadow-1);
  }
  nav.main.open { display: flex; }
  nav.main a { padding: .9rem 6%; width: 100%; border-bottom: 1px solid var(--line); }
  nav.main a.cta { margin: .8rem 6%; width: auto; text-align: center; }
  .nav-toggle { display: block; }
}

/* ============= HERO — catálogo de capa ============= */
.hero {
  position: relative; overflow: hidden;
  background: var(--black); color: #fff;
  min-height: 92vh; display: flex; align-items: end;
  padding: 0 0 clamp(2.4rem, 6vw, 4.2rem) 0;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5,5,5,.18) 0%, rgba(5,5,5,.55) 60%, rgba(5,5,5,.95) 100%),
    url("../img/poolwide.jpg") center/cover no-repeat;
  filter: grayscale(.55) contrast(1.05);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, var(--red) 0%, var(--red) 30%, transparent 30%, transparent 100%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero-tag {
  position: absolute; top: clamp(1.5rem, 4vw, 3rem); left: 0; right: 0; z-index: 3;
}
.hero-tag .wrap {
  display: flex; justify-content: space-between; gap: 2rem;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .22em;
  color: rgba(255,255,255,.7); text-transform: uppercase;
}
.hero-tag .wrap > div { display: flex; gap: 1rem; align-items: center; }
.hero-tag .dot { width: 7px; height: 7px; background: var(--red); border-radius: 50%; display: inline-block; }
.hero-display {
  font-family: var(--serif); font-weight: 300; line-height: .94;
  font-size: clamp(3.2rem, 11vw, 9.6rem); color: #fff;
  letter-spacing: -0.03em; max-width: 14ch;
  font-variation-settings: "SOFT" 30, "WONK" 1, "opsz" 144;
}
.hero-display em {
  font-style: italic; color: var(--gold-soft); font-weight: 400;
  font-variation-settings: "SOFT" 60, "WONK" 1, "opsz" 144;
}
.hero-meta {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem;
  margin-top: clamp(2.2rem, 4vw, 3.2rem); max-width: 720px;
  border-top: 1px solid rgba(255,255,255,.18); padding-top: 1.4rem;
}
.hero-meta div { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; color: rgba(255,255,255,.7); text-transform: uppercase; }
.hero-meta strong {
  display: block; color: #fff; font-family: var(--serif); font-style: italic;
  font-weight: 400; font-size: 2.2rem; line-height: 1; margin-bottom: .35rem;
  letter-spacing: -.02em; text-transform: none;
}
.hero-meta strong .accent { color: var(--gold); }

.hero-actions { display: flex; gap: .8rem; margin-top: 2.4rem; flex-wrap: wrap; }

@media (max-width: 720px) {
  .hero-meta { grid-template-columns: repeat(2, 1fr); }
}

/* ============= BUTTONS — squared, mono ============= */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: 1rem 1.6rem; border-radius: 0; font-weight: 500;
  font-family: var(--mono); font-size: .78rem; letter-spacing: .14em;
  text-transform: uppercase; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s, background .2s, color .2s, border-color .2s;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-deep); color: #fff; }
.btn-light { background: #fff; color: var(--black); }
.btn-light:hover { background: var(--gold-soft); color: var(--black); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { background: #fff; color: var(--black); border-color: #fff; }
.btn-black { background: var(--black); color: #fff; }
.btn-black:hover { background: var(--red); color: #fff; }
.btn-outline { background: transparent; color: var(--black); border-color: var(--black); }
.btn-outline:hover { background: var(--black); color: #fff; }

/* ============= GRID utilities ============= */
.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 4rem; align-items: start; }
.split.center { align-items: center; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 2rem; } }

/* ============= MARQUEE ============= */
.marquee {
  background: var(--red); color: #fff; padding: .9rem 0; overflow: hidden;
  font-family: var(--mono); font-size: .78rem; letter-spacing: .18em;
  text-transform: uppercase; border-top: 1px solid var(--red-deep); border-bottom: 1px solid var(--red-deep);
}
.marquee-track {
  display: flex; gap: 3rem; white-space: nowrap; animation: scroll 38s linear infinite;
}
.marquee-track span { flex-shrink: 0; }
.marquee-track .sep { color: var(--gold-soft); }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============= ROOMS — index card style ============= */
.rooms-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }
.room {
  position: relative; background: #fff; overflow: hidden;
  border-radius: 0; border: 1px solid var(--line); aspect-ratio: 4/5;
  text-decoration: none; color: inherit; display: block;
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.room:hover { transform: translateY(-4px); }
.room .figure {
  position: absolute; inset: 0; background: #ddd center/cover no-repeat;
  filter: grayscale(.2); transition: filter .4s, transform .6s;
}
.room:hover .figure { filter: grayscale(0); transform: scale(1.04); }
.room::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(5,5,5,0) 30%, rgba(5,5,5,.92) 100%);
}
.room .num {
  position: absolute; top: 18px; left: 18px; z-index: 3;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .22em;
  color: #fff; text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.5); padding: .25rem .5rem;
}
.room .name {
  position: absolute; bottom: 18px; left: 18px; right: 18px; z-index: 3;
  color: #fff; font-family: var(--serif); font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 400; line-height: 1; letter-spacing: -.02em;
}
.room .lead {
  position: absolute; bottom: 60px; left: 18px; right: 18px; z-index: 3;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .12em;
  color: rgba(255,255,255,.78); text-transform: uppercase;
  opacity: 0; transition: opacity .3s;
}
.room:hover .lead { opacity: 1; }

/* Compatibility — old room body-style */
.room .body { padding: 1.2rem 1.4rem 1.6rem; }
.room .arrow { font-family: var(--mono); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--red); font-weight: 500; }

/* ============= VITRINE — fichas catalográficas ============= */
.vitrine {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--bone); border-radius: 0; border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.vitrine:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); color: inherit; }
.vitrine .display {
  aspect-ratio: 1/1; background: var(--plinth);
  position: relative; display: flex; align-items: center; justify-content: center;
  overflow: hidden; border-bottom: 1px solid var(--line);
}
.vitrine .display::before {
  content: ""; position: absolute; left: 8%; right: 8%; bottom: 0; height: 16%;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.32) 0%, transparent 70%);
  filter: blur(10px); border-radius: 50%;
}
.vitrine .display img {
  max-width: 76%; max-height: 76%; object-fit: contain;
  filter: drop-shadow(0 22px 30px rgba(0,0,0,.22));
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
  position: relative; z-index: 1;
}
.vitrine:hover .display img { transform: scale(1.04); }

.vitrine .ficha { padding: 1.4rem 1.4rem 1.6rem; }
.vitrine .inv {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .14em;
  color: var(--ink-soft); text-transform: uppercase;
  display: flex; justify-content: space-between; align-items: center;
}
.vitrine .inv::after {
  content: ""; flex: 1; height: 1px; background: var(--line); margin-left: 1rem;
}
.vitrine .ficha h3 { font-size: 1.4rem; margin: .65rem 0 .35rem; line-height: 1.05; }
.vitrine .meta-row {
  font-family: var(--mono); font-size: .7rem; color: var(--ink-soft);
  letter-spacing: .04em; line-height: 1.5;
}
.vitrine .cat-tag {
  display: inline-block; margin-top: .9rem;
  background: var(--ink); color: #fff;
  padding: .18rem .55rem; border-radius: 0;
  font-family: var(--mono); font-size: .65rem; letter-spacing: .14em;
  text-transform: uppercase;
}

/* ============= ACERVO FILTERS ============= */
.filters {
  display: flex; gap: 0; flex-wrap: wrap; margin-bottom: 2.4rem;
  font-family: var(--mono); border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}
.filters a {
  padding: .9rem 1.4rem; font-size: .72rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink); background: transparent;
  border-right: 1px solid var(--line); transition: background .2s, color .2s;
}
.filters a:hover, .filters a.active { background: var(--ink); color: #fff; }

/* ============= FICHA detalhe ============= */
.ficha-page {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 4rem; align-items: start;
}
@media (max-width: 980px) { .ficha-page { grid-template-columns: 1fr; gap: 2rem; } }
.ficha-display {
  background: var(--plinth); border-radius: 0;
  padding: clamp(2rem, 5vw, 4rem); position: relative; min-height: 460px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); box-shadow: var(--shadow-1);
}
.ficha-display::after {
  content: ""; position: absolute; left: 12%; right: 12%; bottom: 0; height: 22%;
  background: radial-gradient(ellipse, rgba(0,0,0,.28) 0%, transparent 70%);
  filter: blur(8px); border-radius: 50%; z-index: 0;
}
.ficha-display img {
  max-height: 460px; max-width: 100%; object-fit: contain;
  filter: drop-shadow(0 32px 42px rgba(0,0,0,.22));
  position: relative; z-index: 1;
}
.ficha-info .id-line {
  font-family: var(--mono); color: var(--red); letter-spacing: .14em;
  text-transform: uppercase; font-size: .76rem;
}
.ficha-info h1 { font-size: clamp(2.4rem, 4.4vw, 3.8rem); margin: .8rem 0 1.2rem; }
.ficha-info .lead {
  font-family: var(--serif); font-size: 1.25rem; color: var(--ink); line-height: 1.45;
  font-weight: 400; max-width: 540px;
}
.ficha-table {
  margin-top: 2.6rem; border-top: 2px solid var(--ink);
}
.ficha-table dt, .ficha-table dd { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.ficha-table dt {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-soft);
}
.ficha-table dd { font-size: 1rem; }
.ficha-table dl { display: grid; grid-template-columns: 200px 1fr; gap: 0; }
@media (max-width: 600px) { .ficha-table dl { grid-template-columns: 1fr; } .ficha-table dd { padding-top: 0; } }

/* ============= TROPHY ROOM — sala dos campeões ============= */
.trophy-room {
  background:
    radial-gradient(ellipse 60% 40% at 50% -10%, rgba(201,160,46,.18), transparent 70%),
    var(--black);
  color: #fff;
}
.medal-wall { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.4rem; }
.medal {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  padding: 1.6rem; position: relative; overflow: hidden;
  transition: border-color .3s, transform .3s;
}
.medal:hover { border-color: rgba(201,160,46,.5); transform: translateY(-3px); }
.medal::before { content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 4px; background: var(--red); }
.medal.gold::before   { background: linear-gradient(180deg, #ffe27a, var(--gold)); }
.medal.silver::before { background: linear-gradient(180deg, #d8d8d8, #8e8e8e); }
.medal.bronze::before { background: linear-gradient(180deg, #c98a4f, #7a4a23); }
.medal .yr { font-family: var(--mono); color: var(--gold); letter-spacing: .14em; font-size: .78rem; text-transform: uppercase; }
.medal h3 { color: #fff; margin: .55rem 0 .35rem; font-size: 1.3rem; }
.medal .event { font-family: var(--mono); font-size: .76rem; color: rgba(255,255,255,.7); }
.medal .who { margin-top: 1rem; font-family: var(--serif); font-style: italic; color: rgba(255,255,255,.85); }
.medal .pill-medal {
  display: inline-block; margin-top: 1rem; padding: .22rem .65rem;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
}
.medal.gold .pill-medal   { background: var(--gold); color: var(--black); border-color: var(--gold); }
.medal.silver .pill-medal { background: #d4d4d4; color: var(--black); border-color: #d4d4d4; }
.medal.bronze .pill-medal { background: #b97a44; color: #fff; border-color: #b97a44; }

.trophy-tab { display: flex; gap: 0; flex-wrap: wrap; margin-bottom: 2.4rem;
  border-top: 1px solid rgba(255,255,255,.18); border-bottom: 1px solid rgba(255,255,255,.18); }
.trophy-tab a {
  padding: .9rem 1.4rem; font-family: var(--mono);
  border-right: 1px solid rgba(255,255,255,.10); color: rgba(255,255,255,.85);
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
}
.trophy-tab a:hover, .trophy-tab a.active { background: var(--gold); color: var(--black); border-color: var(--gold); }

/* ============= TIMELINE editorial ============= */
.timeline { position: relative; padding-left: 2.4rem; }
.timeline::before {
  content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 1px;
  background: linear-gradient(180deg, var(--red), var(--gold) 60%, transparent);
}
.timeline .item { position: relative; padding: .4rem 0 2.2rem 0; }
.timeline .item::before {
  content: ""; position: absolute; left: -2.4rem; top: .9rem; width: 12px; height: 12px;
  background: var(--red); box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--red);
}
section.dark .timeline .item::before, section.block.dark .timeline .item::before {
  box-shadow: 0 0 0 3px var(--black), 0 0 0 4px var(--gold); background: var(--gold);
}
.timeline .year {
  font-family: var(--mono); font-size: .82rem; color: var(--red);
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: .35rem;
}
section.dark .timeline .year, section.block.dark .timeline .year { color: var(--gold); }
.timeline h3 { margin-bottom: .4rem; }
.timeline p { color: var(--ink-soft); font-size: 1rem; }
section.dark .timeline p, section.block.dark .timeline p { color: rgba(255,255,255,.7); }

/* ============= EXHIBITIONS ============= */
.exhibit {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 0;
  background: #fff; border-radius: 0; overflow: hidden;
  border: 1px solid var(--line);
  transition: box-shadow .3s, transform .3s;
}
.exhibit:hover { box-shadow: var(--shadow-2); transform: translateY(-3px); }
@media (max-width: 760px) { .exhibit { grid-template-columns: 1fr; } }
.exhibit .img { background: #ddd center/cover no-repeat; min-height: 320px; aspect-ratio: 4/3; filter: grayscale(.1); transition: filter .4s; }
.exhibit:hover .img { filter: grayscale(0); }
.exhibit .body { padding: 2.2rem 2.4rem; display: flex; flex-direction: column; gap: 1rem; justify-content: center; }
.exhibit .kind {
  align-self: flex-start; padding: .25rem .7rem; background: var(--red); color: #fff;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
}
.exhibit.permanente .kind { background: var(--black); }
.exhibit.itinerante .kind { background: var(--gold); color: var(--black); }
.exhibit .period {
  font-family: var(--mono); font-size: .82rem; color: var(--ink-soft); letter-spacing: .04em;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: .55rem 0;
}

/* ============= QUOTE / pull quote ============= */
.quote-block { text-align: center; max-width: 980px; margin: 0 auto; }
.quote {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(1.8rem, 4vw, 3.2rem); line-height: 1.18;
  color: rgba(255,255,255,.96); letter-spacing: -.02em;
  font-variation-settings: "SOFT" 50, "WONK" 1, "opsz" 144;
}
.quote::before {
  content: "“"; display: block; font-size: 6rem; color: var(--gold);
  line-height: .55; margin-bottom: 1rem; font-style: normal;
}
.quote-attr {
  margin-top: 1.6rem; font-family: var(--mono); font-size: .72rem;
  letter-spacing: .22em; color: var(--gold); text-transform: uppercase;
}

/* ============= LEGENDS ============= */
.legend-card {
  background: #fff; border-radius: 0; padding: 2rem;
  border: 1px solid var(--line); display: flex; flex-direction: column; gap: .9rem;
  transition: transform .25s, box-shadow .25s;
}
.legend-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.legend-card .role { font-family: var(--mono); color: var(--red); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.legend-card .name { font-family: var(--serif); font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1; font-weight: 500; }
.legend-card .badge {
  align-self: flex-start; background: var(--gold); color: var(--black);
  padding: .25rem .7rem; font-family: var(--mono);
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
}
.legend-card p { color: var(--ink-soft); }

/* ============= GALLERY masonry ============= */
.masonry { columns: 3 280px; column-gap: 1rem; }
.masonry figure {
  break-inside: avoid; margin: 0 0 1rem; border-radius: 0;
  overflow: hidden; position: relative; background: #fff;
  border: 1px solid var(--line);
  transition: transform .3s;
}
.masonry figure:hover { transform: translateY(-3px); box-shadow: var(--shadow-1); }
.masonry figcaption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(180deg, transparent, rgba(5,5,5,.92));
  color: #fff; padding: 2.4rem 1rem .9rem; font-size: .82rem;
  opacity: 0; transition: opacity .25s;
  font-family: var(--mono); letter-spacing: .04em;
}
.masonry figure:hover figcaption { opacity: 1; }
.masonry .credit {
  display: block; margin-top: .25rem; font-family: var(--mono);
  font-size: .65rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-soft);
}
.masonry .badge-community {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: var(--gold); color: var(--black);
  padding: .15rem .55rem; border-radius: 0;
  font-family: var(--mono); font-size: .62rem;
  letter-spacing: .18em; text-transform: uppercase;
}

/* ============= VALUES ============= */
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; border-top: 1px solid var(--line-2); border-left: 1px solid var(--line-2); }
.values .v {
  padding: 1.8rem 1.6rem 2rem; background: transparent;
  border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2);
  position: relative; overflow: hidden;
  transition: background .2s;
}
.values .v:hover { background: rgba(0,0,0,.025); }
.values .v::before { content: ""; position: absolute; left: 0; top: 0; width: 28px; height: 2px; background: var(--red); }
.values .v:nth-child(2)::before { background: var(--gold); }
.values .v:nth-child(3)::before { background: var(--black); }
.values .v:nth-child(4)::before { background: var(--red-deep); }
.values .v:nth-child(5)::before { background: var(--ink); }
.values .v strong {
  display: block; font-family: var(--serif); font-size: 1.55rem;
  margin: .9rem 0 .45rem; font-weight: 500; line-height: 1;
}
.values .v span { color: var(--ink-soft); font-size: .94rem; line-height: 1.5; }

/* ============= NEWS / DOCUMENT cards ============= */
.card {
  background: #fff; border-radius: 0; overflow: hidden;
  border: 1px solid var(--line); display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); color: inherit; }
.card .thumb { aspect-ratio: 4/3; background: #eee center/cover no-repeat; filter: grayscale(.15); transition: filter .3s, transform .6s; }
.card:hover .thumb { filter: grayscale(0); transform: scale(1.02); }
.card .body { padding: 1.4rem 1.5rem 1.7rem; flex: 1; display: flex; flex-direction: column; gap: .55rem; }
.card .tag {
  display: inline-flex; gap: .3rem; align-items: center;
  font-family: var(--mono); font-size: .7rem; color: var(--red);
  letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
}
.card h3 { font-size: 1.4rem; line-height: 1.05; }
.card p { color: var(--ink-soft); font-size: .94rem; line-height: 1.55; }
.card .more {
  margin-top: auto; font-family: var(--mono); font-size: .72rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--red); font-weight: 500;
}

/* ============= PAGE HEAD interior ============= */
.page-head {
  background: var(--black); color: #fff;
  padding: clamp(5rem, 10vw, 8rem) 0 clamp(3rem, 6vw, 5rem);
  position: relative; overflow: hidden;
  border-bottom: 4px solid var(--red);
}
.page-head::after {
  content: ""; position: absolute; right: -200px; top: -200px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,160,46,.15), transparent 65%);
}
.page-head .wrap, .page-head .container { position: relative; z-index: 1; }
.page-head h1 { color: #fff; max-width: 22ch; font-weight: 300; letter-spacing: -.025em; }
.page-head h1 em { font-style: italic; color: var(--gold-soft); font-weight: 400; }
.page-head p { margin-top: 1.4rem; color: rgba(255,255,255,.78); max-width: 760px; font-size: 1.12rem; line-height: 1.5; }
.crumbs {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 1.6rem;
}
.crumbs a { color: var(--gold); }
.crumbs span { color: rgba(255,255,255,.5); padding: 0 .55rem; }

/* ============= CONTRIBUTE ============= */
.contrib-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 880px) { .contrib-grid { grid-template-columns: 1fr; gap: 2rem; } }
.contrib-info {
  background: var(--black); color: #f0eee8; padding: 2.6rem 2.4rem;
  border-radius: 0; border-left: 4px solid var(--red);
}
.contrib-info h3 { color: #fff; }
.contrib-info ol { padding-left: 1.4rem; margin-top: 1rem; }
.contrib-info ol li { margin: .8rem 0; color: rgba(255,255,255,.78); }
.contrib-info ol li strong { color: var(--gold); }
.contrib-info .step {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 0; background: var(--red);
  color: #fff; font-family: var(--mono); font-size: .82rem; margin-right: .6rem;
}

form.contrib-form, form.contact-form {
  background: #fff; padding: 2.6rem; border-radius: 0;
  border: 1px solid var(--line); border-left: 4px solid var(--ink);
}
.field { display: block; margin: 1rem 0; }
.field label {
  display: block; font-family: var(--mono); font-size: .72rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft);
  margin-bottom: .35rem; font-weight: 500;
}
.field input, .field textarea {
  width: 100%; padding: .9rem 1rem; border-radius: 0; border: 1px solid var(--line-2);
  font-family: inherit; font-size: 1rem; background: var(--paper);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input[type="file"] { background: transparent; padding: .6rem 0; border: 0; font-family: var(--mono); font-size: .85rem; }
.field input:focus, .field textarea:focus {
  outline: 0; border-color: var(--red); background: #fff;
  box-shadow: 0 0 0 3px var(--red-glow);
}
.field textarea { min-height: 130px; resize: vertical; }
.field .help { font-size: .82rem; color: var(--ink-soft); margin-top: .35rem; }
.field-checkbox {
  display: flex; align-items: flex-start; gap: .7rem;
  background: var(--bone); padding: .9rem 1.1rem; border-radius: 0;
  border: 1px solid var(--line); border-left: 3px solid var(--red);
}
.field-checkbox input { width: 18px; height: 18px; margin-top: 3px; flex: 0 0 18px; }
.field-checkbox label { font-family: inherit; font-size: .9rem; color: var(--ink); text-transform: none; letter-spacing: 0; line-height: 1.45; }
.errors { background: #fdecec; color: #8b0a1f; padding: .7rem 1rem; border-radius: 0; font-size: .9rem; margin-top: .35rem; border: 1px solid #f5b8b8; font-family: var(--mono); letter-spacing: .04em; }
.alert { background: #e6f7ec; color: #16793f; padding: 1rem 1.2rem; border-radius: 0; margin-bottom: 1.2rem; border: 1px solid #b6e7c5; font-family: var(--mono); font-size: .88rem; letter-spacing: .04em; border-left: 4px solid #16793f; }

/* ============= CONTACT ============= */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2.4rem; align-items: stretch; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info {
  background: var(--black); color: #fff; padding: 2.6rem; border-radius: 0;
  display: flex; flex-direction: column; gap: 1rem; border-left: 4px solid var(--red);
}
.contact-info h3 { color: #fff; }
.contact-info .line { display: flex; align-items: center; gap: .7rem; color: rgba(255,255,255,.8); font-family: var(--mono); font-size: .88rem; letter-spacing: .02em; }
.contact-info a { color: var(--gold); }
.contact-info iframe { border: 0; border-radius: 0; min-height: 240px; margin-top: .5rem; filter: grayscale(.3); }

/* ============= FOOTER ============= */
footer.site {
  background: var(--black); color: #b8b6b0; padding: 5rem 0 1.5rem;
  border-top: 1px solid rgba(255,255,255,.06);
}
footer.site .wrap, footer.site .container { width: min(1480px, 94%); margin: 0 auto; }
footer.site .grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.4rem; margin-bottom: 2.4rem; }
@media (max-width: 820px) { footer.site .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { footer.site .grid { grid-template-columns: 1fr; } }
footer.site h4 {
  color: #fff; font-family: var(--mono); font-size: .7rem;
  letter-spacing: .22em; text-transform: uppercase; margin-bottom: 1.2rem; font-weight: 500;
}
footer.site a { color: #b8b6b0; font-size: .9rem; }
footer.site a:hover { color: var(--gold); }
footer.site ul { list-style: none; padding: 0; line-height: 2.1; }
footer.site .brand-foot { display: flex; align-items: center; gap: .9rem; margin-bottom: 1rem; }
footer.site .brand-foot img { height: 64px; }
footer.site .brand-foot strong { color: #fff; font-family: var(--serif); font-size: 1.4rem; font-weight: 500; line-height: 1; }
footer.site .brand-foot .sub { font-family: var(--mono); font-size: .68rem; letter-spacing: .18em; color: var(--gold); text-transform: uppercase; margin-top: .3rem; }
footer.site small { color: #87857f; font-size: .76rem; font-family: var(--mono); letter-spacing: .04em; }
footer.site .legal { border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.4rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }

/* ============= SOCIAL ============= */
.social { display: flex; gap: .5rem; margin-top: 1rem; }
.social a {
  width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 0; background: rgba(255,255,255,.06); color: #fff;
  border: 1px solid rgba(255,255,255,.10); transition: background .2s, border-color .2s;
  font-family: var(--mono); font-size: .8rem;
}
.social a:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* ============= REVEAL on scroll ============= */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============= CURATORIAL TEXT ============= */
.curatorial {
  font-family: var(--serif); font-weight: 400; line-height: 1.42;
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  color: var(--ink); max-width: 760px; letter-spacing: -.005em;
}
.curatorial em { font-style: italic; color: var(--red-deep); }

/* Drop cap */
.drop-cap::first-letter {
  font-family: var(--serif); font-size: 5em; line-height: .82;
  float: left; padding: .25rem .5rem 0 0; font-weight: 500; color: var(--red);
}

/* ============= STATIC PAGE PROGRESS BAR ============= */
.scrollbar {
  position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 100; background: transparent;
}
.scrollbar div { height: 100%; background: var(--red); width: 0%; transition: width .1s linear; }

/* ============= UTILS ============= */
.muted { color: var(--ink-soft); }
.divider { height: 1px; background: var(--line); margin: 3rem 0; }
.center { text-align: center; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 1rem; } .gap-2 { gap: 2rem; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
