:root {
  --museum-wall: #1b1a12;
  --deep-olive: #242515;
  --dark-green: #16261d;
  --old-gold: #c9a45d;
  --deep-gold: #7a5524;
  --bright-gold: #e0bd68;
  --canvas-beige: #d8c698;
  --warm-light: #f0c66a;
  --blue-robe: #073b8e;
  --orange-accent: #d9822b;
  --dark-text: #15110a;
  --ivory: #f4ead0;
  --frame-size: clamp(12px, 2.3vw, 42px);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  color: var(--ivory);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at 18% 20%, rgba(240, 198, 106, 0.13), transparent 40%),
    radial-gradient(circle at 82% 12%, rgba(201, 164, 93, 0.1), transparent 34%),
    radial-gradient(circle at 50% 50%, rgba(36, 37, 21, 0.75), rgba(18, 17, 11, 0.97)),
    linear-gradient(170deg, #15140d 0%, #1d1b12 50%, #121108 100%);
  overflow-x: hidden;
}

.wall-noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
}

.master-frame {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  border: var(--frame-size) solid transparent;
  border-image: linear-gradient(
      145deg,
      #f1d48e 0%,
      var(--old-gold) 18%,
      var(--deep-gold) 40%,
      #ba8c45 56%,
      #7a5524 72%,
      #ecc97a 100%
    )
    1;
  box-shadow:
    inset 0 0 0 1px rgba(255, 232, 176, 0.55),
    inset 0 0 22px rgba(122, 85, 36, 0.8),
    0 0 0 2px rgba(83, 57, 24, 0.7);
}

.master-frame::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0) 35%,
    rgba(255, 255, 255, 0.24) 48%,
    rgba(255, 255, 255, 0) 61%
  );
  animation: shimmer 9s linear infinite;
}

.corner {
  position: absolute;
  width: clamp(24px, 3vw, 52px);
  height: clamp(24px, 3vw, 52px);
  border: 2px solid rgba(224, 189, 104, 0.5);
  border-radius: 4px;
  box-shadow: inset 0 0 12px rgba(122, 85, 36, 0.8);
}

.corner.tl { top: 6px; left: 6px; }
.corner.tr { top: 6px; right: 6px; }
.corner.bl { bottom: 6px; left: 6px; }
.corner.br { bottom: 6px; right: 6px; }

@keyframes shimmer {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1260px, calc(100% - clamp(26px, 5vw, 120px)));
  margin: clamp(14px, 3.5vw, 34px) auto;
  padding: clamp(16px, 2.5vw, 32px);
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 215, 122, 0.09), transparent 35%),
    radial-gradient(circle at 80% 14%, rgba(255, 215, 122, 0.06), transparent 32%),
    linear-gradient(180deg, rgba(24, 23, 15, 0.91), rgba(16, 15, 10, 0.95));
  border: 1px solid rgba(224, 189, 104, 0.26);
  box-shadow:
    inset 0 0 120px rgba(0, 0, 0, 0.45),
    0 22px 44px rgba(0, 0, 0, 0.45);
}

.site-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid rgba(224, 189, 104, 0.4);
  padding-bottom: 14px;
  margin-bottom: clamp(24px, 4vw, 44px);
}

.brand {
  text-decoration: none;
  color: var(--bright-gold);
  font-family: "Cinzel", serif;
  font-size: clamp(1.28rem, 2.5vw, 1.8rem);
  letter-spacing: 0.05em;
  font-weight: 700;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 2vw, 24px);
}

.site-nav a,
.footer-links a {
  color: rgba(244, 234, 208, 0.9);
  text-decoration: none;
  font-weight: 600;
  position: relative;
}

.site-nav a::after,
.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: var(--bright-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}

.site-nav a:hover::after,
.footer-links a:hover::after {
  transform: scaleX(1);
}

.btn {
  text-decoration: none;
  padding: 10px 16px;
  border: 1px solid transparent;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--ivory);
  border-color: rgba(224, 189, 104, 0.7);
  background: linear-gradient(160deg, #1b3327, #0f1f19 58%, #0b1611 100%);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.48), 0 0 16px rgba(224, 189, 104, 0.2);
}

.btn-secondary {
  color: var(--bright-gold);
  border-color: rgba(224, 189, 104, 0.6);
  background: rgba(12, 12, 8, 0.42);
}

.hero {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 30px);
  margin-bottom: clamp(24px, 4vw, 46px);
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(224, 189, 104, 0.25);
  pointer-events: none;
}

.hero-left {
  position: relative;
}

.hero-portrait {
  margin: 0 0 10px;
}

.artist-plaque,
.hero-quote {
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(224, 189, 104, 0.42);
  background: linear-gradient(160deg, rgba(29, 24, 16, 0.94), rgba(16, 14, 10, 0.95));
}

.artist-plaque p,
.hero-quote {
  margin: 0;
  color: var(--canvas-beige);
  font-family: "Cormorant Garamond", serif;
}

.artist-plaque p:first-child {
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.hero-quote {
  font-size: 1.25rem;
}

.hero-quote span {
  display: block;
  font-size: 1rem;
  margin-top: 8px;
}

.hero-right {
  position: relative;
  padding: clamp(12px, 2vw, 22px);
}

.hero-kicker {
  margin: 0;
  color: rgba(224, 189, 104, 0.8);
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Cinzel", serif;
}

h1 {
  margin-top: 6px;
  font-size: clamp(2.1rem, 6vw, 5.2rem);
  line-height: 1.03;
  color: transparent;
  background: linear-gradient(180deg, #f3de9f 0%, #d4ae5e 50%, #8a632b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.55);
}

h2 {
  margin-top: 4px;
  color: var(--canvas-beige);
  font-size: clamp(1.1rem, 2.4vw, 2rem);
  letter-spacing: 0.08em;
}

.hero-sub {
  margin: 8px 0 0;
  color: rgba(224, 189, 104, 0.95);
  letter-spacing: 0.14em;
  font-size: 0.86rem;
}

.hero-text {
  max-width: 62ch;
  color: rgba(244, 234, 208, 0.88);
  margin: 14px 0 16px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.hero-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.mini-frame {
  position: relative;
}

.mini-frame .painting-frame {
  margin: 0;
}

.lamp {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 42px;
  height: 10px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #dcbf7b, #7a5524);
  box-shadow: 0 18px 22px rgba(240, 198, 106, 0.26);
  z-index: 2;
}

.trust-plaque {
  margin: 0;
  text-align: center;
  font-family: "Cinzel", serif;
  letter-spacing: 0.1em;
  color: #2f220f;
  background: linear-gradient(160deg, #bd8c43, #7a5524);
  padding: 8px 10px;
  border: 1px solid rgba(224, 189, 104, 0.65);
}

.painting-frame {
  background: linear-gradient(145deg, #e8c779, #a57834 45%, #6f4f22 100%);
  border: 7px solid transparent;
  border-image: linear-gradient(145deg, #f1d48f, #c59b52, #7a5524, #e9c97d) 1;
  padding: 8px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 234, 189, 0.5),
    0 14px 20px rgba(0, 0, 0, 0.48);
  overflow: hidden;
  transform: translate3d(var(--px, 0), var(--py, 0), 0);
  transition: transform 0.33s ease, box-shadow 0.33s ease;
}

.painting-frame img {
  width: 100%;
  display: block;
  border: 1px solid rgba(32, 22, 10, 0.6);
  object-fit: cover;
}

.museum-section {
  border: 1px solid rgba(224, 189, 104, 0.26);
  background: linear-gradient(180deg, rgba(20, 19, 12, 0.86), rgba(14, 13, 8, 0.92));
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.38);
  padding: clamp(18px, 2.8vw, 28px);
  margin-bottom: clamp(20px, 3vw, 34px);
}

.section-head {
  margin-bottom: 12px;
}

.section-kicker {
  margin: 0 0 4px;
  color: var(--bright-gold);
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  text-transform: uppercase;
  font-weight: 700;
}

h3 {
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  color: var(--canvas-beige);
  letter-spacing: 0.04em;
}

.manuscript {
  background: linear-gradient(160deg, #d8c698, #baa77a);
  color: #2a1e10;
  border: 1px solid rgba(122, 85, 36, 0.65);
  box-shadow: 0 14px 22px rgba(0, 0, 0, 0.4);
  padding: 16px;
}

.manuscript p {
  margin: 0 0 8px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
}

.story-tags {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.story-tags li {
  background: rgba(21, 16, 9, 0.86);
  color: var(--canvas-beige);
  border: 1px solid rgba(224, 189, 104, 0.35);
  padding: 8px 10px;
  text-align: center;
}

.stamps {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stamps span {
  border: 1px dashed rgba(224, 189, 104, 0.7);
  color: rgba(224, 189, 104, 0.95);
  padding: 5px 9px;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
}

.section-copy {
  margin-top: 0;
  color: rgba(244, 234, 208, 0.82);
  max-width: 74ch;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.artwork {
  position: relative;
}

.artwork .painting-frame {
  margin: 0;
}

.brass-plaque {
  margin-top: 8px;
  background: linear-gradient(160deg, #ad8342, #7a5524);
  color: #23170a;
  border: 1px solid rgba(224, 189, 104, 0.7);
  padding: 10px;
}

.brass-plaque h4 {
  font-size: 0.97rem;
  margin: 0;
}

.year {
  margin: 4px 0 5px;
  font-weight: 800;
}

.brass-plaque p {
  margin: 0;
  font-size: 0.9rem;
}

.artwork:hover .painting-frame,
.mini-frame:hover .painting-frame {
  transform: scale(1.016) translate3d(var(--px, 0), var(--py, 0), 0);
  box-shadow:
    inset 0 0 0 1px rgba(255, 234, 189, 0.6),
    0 20px 26px rgba(0, 0, 0, 0.58),
    0 0 18px rgba(224, 189, 104, 0.22);
}

.curator-paper {
  background: linear-gradient(155deg, #d6bf90, #b39a6b);
  color: #271b0f;
  border: 1px solid rgba(122, 85, 36, 0.7);
  padding: 16px;
}

.curator-paper p {
  margin: 0 0 10px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.22rem;
}

.signature {
  margin-bottom: 0;
  font-style: italic;
}

.token-plate {
  background: linear-gradient(155deg, rgba(53, 38, 18, 0.95), rgba(27, 21, 12, 0.96));
  border: 1px solid rgba(224, 189, 104, 0.55);
  padding: 14px;
  box-shadow: inset 0 0 26px rgba(224, 189, 104, 0.12);
}

.token-grid {
  margin: 0;
  display: grid;
  gap: 8px;
}

.token-grid div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 10px;
  border: 1px solid rgba(224, 189, 104, 0.32);
  padding: 10px;
}

.token-grid dt {
  color: var(--bright-gold);
  font-weight: 700;
}

.token-grid dd {
  margin: 0;
  color: var(--ivory);
}

.contract-wrap {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.copy-btn {
  border: 1px solid rgba(224, 189, 104, 0.7);
  background: rgba(22, 20, 13, 0.8);
  color: var(--bright-gold);
  font-weight: 700;
  padding: 6px 10px;
  cursor: pointer;
}

.copy-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.route {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.route li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  border: 1px solid rgba(224, 189, 104, 0.35);
  background: rgba(21, 17, 10, 0.84);
  padding: 10px;
  align-items: center;
}

.route span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: #2b1c0d;
  font-family: "Cinzel", serif;
  font-weight: 800;
  background: linear-gradient(160deg, #d9b35f, #8b632c);
}

.route p {
  margin: 0;
  color: var(--canvas-beige);
}

.cta {
  position: relative;
  overflow: hidden;
  padding: 0;
}

.cta-bg,
.cta-bg img,
.cta-bg .overlay {
  position: absolute;
  inset: 0;
}

.cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-bg .overlay {
  background:
    linear-gradient(165deg, rgba(0, 0, 0, 0.7), rgba(20, 18, 12, 0.68)),
    radial-gradient(circle at 60% 35%, rgba(240, 198, 106, 0.26), transparent 42%);
}

.cta-content {
  position: relative;
  z-index: 2;
  padding: clamp(18px, 3.5vw, 36px);
  max-width: 760px;
}

.cta-content p {
  color: rgba(244, 234, 208, 0.93);
}

.site-footer {
  border-top: 1px solid rgba(224, 189, 104, 0.35);
  padding-top: 14px;
  display: grid;
  gap: 10px;
}

.footer-brand {
  margin: 0;
  font-family: "Cinzel", serif;
  color: var(--bright-gold);
  font-size: 1.15rem;
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.disclaimer {
  color: rgba(244, 234, 208, 0.75);
  font-size: 0.9rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.72s ease, transform 0.72s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1060px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .story-tags {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 740px) {
  :root {
    --frame-size: 12px;
  }

  .page-shell {
    width: calc(100% - 18px);
    padding: 12px;
  }

  .site-header {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .site-nav {
    justify-content: space-between;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .hero-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid,
  .story-tags {
    grid-template-columns: 1fr;
  }

  .token-grid div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .contract-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
