:root {
  --sand: #f5e8d2;
  --sand-2: #ead6b4;
  --paper: #fffaf2;
  --ink: #2f1d12;
  --muted: #7a604b;
  --wine: #7a1f1f;
  --wine-2: #962a22;
  --gold: #c9973f;
  --gold-2: #e2b866;
  --night: #24150d;
  --line: #e3cfac;
  --radius: 20px;
  --serif: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body { font-family: var(--sans); color: var(--ink); background: var(--sand); }
a { color: inherit; }

/* ================= HERO ================= */
.hero { position: relative; min-height: 92vh; display: flex; flex-direction: column; color: #fff; overflow: hidden; background: var(--night); }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center 40%;
  transform: scale(1.06); animation: heroZoom 22s ease-out forwards; }
.hero-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(36,21,13,.55) 0%, rgba(36,21,13,.35) 35%, rgba(36,21,13,.82) 78%, var(--sand) 100%); }
@keyframes heroZoom { to { transform: scale(1); } }
.topbar { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 18px 26px; }
.brand { font: 600 14px var(--sans); letter-spacing: .4px; opacity: .95; }
.brand { color: var(--gold-2); }
.brand span { color: #fff; }
.expo-langs { display: flex; gap: 4px; background: rgba(255,255,255,.14); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 4px; }
.expo-langs button { border: 0; background: transparent; color: #fff; font: 600 13px var(--sans);
  padding: 6px 12px; border-radius: 999px; cursor: pointer; opacity: .85; }
.expo-langs button.on { background: var(--gold); color: var(--night); opacity: 1; }
.hero-inner { position: relative; z-index: 2; margin: auto; text-align: center; padding: 30px 22px 70px; max-width: 900px; }
.ornament { width: 160px; height: 22px; color: var(--gold-2); display: block; margin: 0 auto 16px; }
.ornament.small { width: 120px; color: var(--gold); margin-bottom: 10px; }
.hero h1 { font: 700 clamp(44px, 8vw, 92px)/1.02 var(--serif); margin: 0; letter-spacing: .5px;
  text-shadow: 0 4px 30px rgba(0,0,0,.45); }
.hero .sub { font: italic 400 clamp(18px, 2.6vw, 26px) var(--serif); margin: 14px 0 0; color: #f7e6c9; }
.hero .intro { max-width: 620px; margin: 16px auto 0; line-height: 1.6; font-size: 16px; color: rgba(255,255,255,.88); }
.hero-cta { display: flex; gap: 12px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.hero-stats { list-style: none; padding: 0; margin: 40px auto 0; display: flex; justify-content: center; gap: 0; flex-wrap: wrap; }
.hero-stats li { padding: 4px 22px; border-left: 1px solid rgba(255,255,255,.25); text-align: center; }
.hero-stats li:first-child { border-left: 0; }
.hero-stats b { display: block; font: 700 30px var(--serif); color: var(--gold-2); }
.hero-stats span { font-size: 12.5px; letter-spacing: .6px; text-transform: uppercase; color: rgba(255,255,255,.8); }

/* ================= BUTTONS ================= */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
  font: 600 15px var(--sans); padding: 13px 22px; border-radius: 999px; text-decoration: none;
  background: var(--wine); color: #fff; transition: transform .15s, background .15s, box-shadow .15s; }
.btn:hover { background: var(--wine-2); transform: translateY(-1px); }
.btn.gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--night); box-shadow: 0 10px 24px -10px rgba(201,151,63,.8); }
.btn.gold:hover { background: linear-gradient(180deg, #ecc678, var(--gold-2)); }
.btn.glass { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(8px); }
.btn.glass:hover { background: rgba(255,255,255,.24); }
.btn.ghost { background: transparent; color: var(--wine); border: 1px solid var(--line); padding: 10px 16px; font-size: 14px; }
.btn.ghost:hover { background: #fff; }

/* ================= SECTIONS ================= */
.section { max-width: 1220px; margin: 0 auto; padding: 40px 22px 30px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 34px; }
.kicker { display: inline-block; font: 700 13px var(--sans); letter-spacing: 2px; color: var(--gold); border: 1px solid var(--gold);
  border-radius: 999px; padding: 4px 12px; }
.section-head h2 { font: 700 clamp(32px, 4.6vw, 48px)/1.1 var(--serif); color: var(--wine); margin: 12px 0 8px; }
.section-head p { color: var(--muted); font-size: 16px; line-height: 1.55; margin: 0; }

/* ================= ARTIFACT CARDS (vitrines) ================= */
.expo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }
.expo-card { position: relative; background: var(--paper); border-radius: var(--radius); overflow: hidden; cursor: pointer;
  display: flex; flex-direction: column; border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 20px 40px -26px rgba(47,29,18,.55);
  transition: transform .25s ease, box-shadow .25s ease; }
.expo-card:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -28px rgba(47,29,18,.65); }
.vitrine { position: relative; height: 270px;
  background: radial-gradient(ellipse 60% 55% at 50% 42%, #5a3a26 0%, #3a2417 55%, var(--night) 100%); }
.vitrine::before { content: ""; position: absolute; left: 18%; right: 18%; top: 0; height: 60%;
  background: radial-gradient(ellipse at top, rgba(255,226,170,.28), transparent 70%); pointer-events: none; z-index: 1; }
.vitrine::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: 26px; height: 18px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0,0,0,.55), transparent 70%); pointer-events: none; }
.vitrine model-viewer { width: 100%; height: 100%; --poster-color: transparent; pointer-events: none; position: relative; z-index: 2; }
.vitrine .num { position: absolute; z-index: 3; top: 14px; left: 16px; font: 700 13px var(--serif); color: var(--gold-2); letter-spacing: 1.5px; }
.vitrine .open3d { position: absolute; z-index: 3; top: 12px; right: 12px; font: 600 11px var(--sans); color: #fff;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); padding: 5px 10px; border-radius: 999px; letter-spacing: .5px; }
.expo-card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1;
  background: linear-gradient(180deg, var(--paper), #fbf1e1); }
.tag { align-self: flex-start; font: 700 11px var(--sans); letter-spacing: .8px; text-transform: uppercase; color: var(--wine);
  background: #f6e1d4; padding: 4px 10px; border-radius: 999px; }
.expo-card h3 { font: 700 23px/1.15 var(--serif); margin: 4px 0 0; }
.expo-card .meta { color: var(--muted); font-size: 13.5px; }
.expo-card .quote { font: italic 15px/1.5 var(--serif); color: #5b4232; margin: 6px 0 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.expo-card .more { margin-top: auto; padding-top: 8px; font: 700 14px var(--sans); color: var(--wine); display: flex; align-items: center; gap: 6px; }
.expo-card:hover .more span { transform: translateX(4px); }
.expo-card .more span { transition: transform .2s; }

/* ================= EXPEDITION ================= */
.expedition { padding-bottom: 50px; }
.photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.photo { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 5;
  box-shadow: 0 24px 44px -28px rgba(47,29,18,.7); background: var(--night); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.photo:hover img { transform: scale(1.04); }
.photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; color: #fff;
  font: italic 18px var(--serif); background: linear-gradient(180deg, transparent, rgba(20,12,7,.8)); }
.lightbox { position: fixed; inset: 0; z-index: 1100; background: rgba(15,9,5,.92); display: none; align-items: center; justify-content: center;
  flex-direction: column; padding: 20px; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 84vh; border-radius: 12px; }
.lb-cap { color: #f3e2c4; font: italic 18px var(--serif); margin-top: 12px; }

/* ================= VIEWER ================= */
.expo-viewer { position: fixed; inset: 0; z-index: 1000; background: rgba(24,14,8,.7); backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center; padding: 18px; }
.expo-viewer.open { display: flex; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } }
.expo-panel { background: var(--paper); border-radius: 24px; width: min(1140px, 100%); max-height: calc(100vh - 36px);
  display: grid; grid-template-columns: 1.3fr 1fr; overflow: hidden; box-shadow: 0 40px 90px -20px rgba(0,0,0,.6); }
.expo-stage { position: relative; min-height: 560px;
  background: radial-gradient(ellipse 65% 60% at 50% 42%, #5f3e29 0%, #3a2417 55%, var(--night) 100%); }
.expo-stage::before { content: ""; position: absolute; left: 20%; right: 20%; top: 0; height: 55%;
  background: radial-gradient(ellipse at top, rgba(255,226,170,.25), transparent 70%); pointer-events: none; }
.expo-stage model-viewer { width: 100%; height: 100%; min-height: 560px; --progress-bar-color: var(--gold); position: relative; }
.expo-stage .hint { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; font-size: 12px; color: rgba(255,255,255,.6); pointer-events: none; }
.expo-stage .size { position: absolute; top: 16px; left: 16px; font: 700 13px var(--sans); color: var(--night);
  background: var(--gold-2); padding: 6px 12px; border-radius: 999px; }
.expo-stage .ph { position: absolute; top: 16px; right: 16px; max-width: 230px; font-size: 11px; line-height: 1.35; color: rgba(255,255,255,.75);
  background: rgba(0,0,0,.3); border: 1px dashed rgba(226,184,102,.6); padding: 6px 9px; border-radius: 10px; }
.expo-ar-btn { position: absolute; left: 50%; bottom: 44px; transform: translateX(-50%); }

.expo-info { padding: 28px 28px 22px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }
.expo-info .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.expo-info h2 { font: 700 32px/1.1 var(--serif); margin: 8px 0 0; color: var(--wine); }
.expo-close { border: 0; background: #f1e3cd; width: 40px; height: 40px; border-radius: 50%; font-size: 22px; cursor: pointer; color: var(--ink); flex: none; }
.expo-close:hover { background: #e9d5b6; }
.expo-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14.5px; margin: 0;
  padding: 12px 14px; background: #f8ecd8; border-radius: 12px; }
.expo-facts dt { color: var(--muted); }
.expo-facts dd { margin: 0; font-weight: 600; }
.label-sm { font: 700 12px var(--sans); letter-spacing: .8px; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.expo-info p { margin: 0; line-height: 1.6; font-size: 15.5px; }
.expo-speaks { position: relative; background: linear-gradient(135deg, #fbefdc, #f6e2c4); border-radius: 16px; padding: 16px 18px 16px 20px;
  border-left: 4px solid var(--gold); }
.expo-speaks h4 { margin: 0 0 8px; font: 700 12px var(--sans); letter-spacing: .8px; text-transform: uppercase; color: var(--wine); }
.expo-speaks p { font: italic 17px/1.6 var(--serif); color: #3d281a; }
.expo-speaks audio { width: 100%; margin-top: 10px; }
.expo-qr { display: flex; gap: 14px; align-items: center; border-top: 1px solid var(--line); padding-top: 16px; }
.expo-qr .code { width: 108px; height: 108px; flex: none; background: #fff; padding: 6px; border-radius: 12px; border: 1px solid var(--line); }
.expo-qr .code svg { width: 100%; height: 100%; display: block; }
.expo-qr span { font-size: 13px; color: var(--muted); line-height: 1.45; }
.expo-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; }
.counter { font: 700 14px var(--serif); color: var(--muted); letter-spacing: 1px; }

/* ================= FOOTER ================= */
.expo-footer { text-align: center; color: var(--muted); font-size: 13.5px; padding: 24px 20px 44px; border-top: 1px solid var(--line);
  max-width: 1220px; margin: 0 auto; }
.expo-footer a { color: var(--wine); font-weight: 600; }

@media (max-width: 860px) {
  .hero { min-height: 88vh; }
  .hero-stats li { padding: 4px 14px; }
  .hero-stats b { font-size: 24px; }
  .expo-viewer { padding: 0; }
  .expo-panel { grid-template-columns: 1fr; border-radius: 0; max-height: 100vh; height: 100vh; overflow-y: auto; }
  .expo-stage, .expo-stage model-viewer { min-height: 58vh; }
  .expo-qr { display: none; }
  .topbar { padding: 14px 16px; }
  .brand { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .hero-bg { animation: none; transform: none; } html { scroll-behavior: auto; } }
