*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --plaster: #efe4d0;
  --plaster-deep: #e4d3b4;
  --navy: #1a2744;
  --navy-ink: #12192c;
  --ginger: #d9782c;
  --ginger-hot: #e89a4a;
  --apple: #5d8a32;
  --gilt: #c4a35a;
  --gilt-bright: #e8d39a;
  --wine: #8e1e2a;
  --paper: #f7f0e2;
  --ink: #1c1410;
  --ink-soft: #5c4e3d;
  --cloud: #8aa0b8;
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-label: "Cinzel", "Times New Roman", serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --frame:
    0 0 0 3px #3a2a12,
    0 0 0 10px var(--gilt),
    0 0 0 12px #7a5c22,
    0 22px 40px rgba(26, 39, 68, 0.28);
  --shadow: 0 24px 50px rgba(26, 39, 68, 0.18);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse at 12% 8%, rgba(217, 120, 44, 0.12), transparent 36%),
    radial-gradient(ellipse at 90% 20%, rgba(93, 138, 50, 0.1), transparent 32%),
    linear-gradient(180deg, #f3e8d2 0%, var(--plaster) 40%, #e8d9bc 100%);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
}

.wall-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent 0 47px,
      rgba(140, 110, 60, 0.05) 47px 48px
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0 47px,
      rgba(140, 110, 60, 0.04) 47px 48px
    );
}

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

a {
  color: inherit;
}

.kicker {
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--wine);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.gilt-frame {
  background: linear-gradient(145deg, #f0dc9a, #b8892e 40%, #f6e7b0 70%, #8a6420);
  padding: 10px 10px 0;
  box-shadow: var(--frame);
}

.gilt-frame img {
  width: 100%;
  object-fit: cover;
  background: #1a2744;
}

.gilt-frame figcaption {
  font-family: var(--font-label);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.7rem 0.5rem 0.85rem;
  color: var(--navy);
  background: linear-gradient(180deg, #efe0b4, #dcc48a);
}

/* Ticket header — not a standard sticky crypto nav */
.ticket-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  align-items: center;
  gap: 1rem 1.25rem;
  padding: 0.65rem 1.4rem;
  background:
    repeating-linear-gradient(
      -12deg,
      #1a2744 0 10px,
      #152038 10px 12px
    );
  color: var(--gilt-bright);
  border-bottom: 6px double var(--gilt);
}

.ticket-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--paper);
  min-width: 0;
}

.ticket-seal {
  width: 46px;
  height: 46px;
  object-fit: cover;
  object-position: center 35%;
  border: 2px solid var(--gilt);
  box-shadow: 0 0 0 3px rgba(196, 163, 90, 0.25);
  flex-shrink: 0;
}

.ticket-meta em {
  display: block;
  font-style: normal;
  font-family: var(--font-label);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gilt);
}

.ticket-meta strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
}

.ticket-stub {
  font-family: var(--font-label);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cloud);
  justify-self: center;
}

.ticket-nav {
  display: flex;
  gap: 1.1rem;
}

.ticket-nav a {
  color: var(--paper);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.ticket-nav a:hover {
  color: var(--ginger-hot);
}

.ticket-socials {
  display: flex;
  gap: 0.4rem;
}

.wax {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #c43a3a, var(--wine));
  color: var(--paper);
  text-decoration: none;
  box-shadow: 0 4px 0 #5a1018;
}

.wax:hover {
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gilt-bright);
}

/* Split salon hero */
.salon-hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: calc(100vh - 76px);
  min-height: calc(100dvh - 76px);
}

.hanging-work {
  display: grid;
  place-items: center;
  padding: 2.5rem 2rem;
  background:
    linear-gradient(180deg, rgba(26, 39, 68, 0.08), transparent 30%),
    #d9c7a4;
}

.hero-frame {
  width: min(920px, 100%);
}

.hero-frame img {
  aspect-ratio: 21 / 9;
  object-position: center;
}

.wall-plaque {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3.5rem 3rem;
  background:
    linear-gradient(180deg, #1e2d4d 0%, var(--navy) 55%, #12192c 100%);
  color: var(--paper);
  border-left: 1px solid rgba(232, 211, 154, 0.22);
}

.plaque-kicker {
  font-family: var(--font-label);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gilt);
  margin-bottom: 0.85rem;
}

.wall-plaque h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  font-weight: 700;
  line-height: 0.95;
  color: var(--gilt-bright);
}

.plaque-ticker {
  font-family: var(--font-label);
  letter-spacing: 0.28em;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--ginger-hot);
  margin: 0.7rem 0 1.4rem;
}

.plaque-meta {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1.3rem;
  padding: 1rem 0;
  border-block: 1px solid rgba(232, 211, 154, 0.22);
}

.plaque-meta div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.75rem;
  font-size: 0.92rem;
}

.plaque-meta dt {
  font-family: var(--font-label);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gilt);
}

.plaque-copy {
  color: rgba(247, 240, 226, 0.82);
  margin-bottom: 1.6rem;
  max-width: 38em;
}

.plaque-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.3rem;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.92rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

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

.btn-ink {
  background: var(--ginger);
  color: #1c1008;
  border-color: rgba(255, 220, 170, 0.35);
  box-shadow: 0 8px 20px rgba(217, 120, 44, 0.35);
}

.btn-gilt {
  background: transparent;
  color: var(--gilt-bright);
  border-color: rgba(232, 211, 154, 0.45);
}

.btn-gilt:hover {
  background: rgba(196, 163, 90, 0.12);
}

.btn-lg {
  padding: 1rem 1.55rem;
}

.btn-copy {
  background: var(--navy);
  color: var(--gilt-bright);
  flex-shrink: 0;
}

.btn-copy.copied {
  background: var(--apple);
  color: #f7f0e2;
}

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

/* Picture rail */
.picture-rail {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: var(--navy-ink);
  border-block: 8px solid var(--gilt);
  padding: 1rem 0 1.15rem;
}

.rail-track {
  display: flex;
  gap: 1.1rem;
  width: max-content;
  animation: rail 36s linear infinite;
  padding-inline: 1rem;
}

.rail-track figure {
  width: 92px;
  margin: 0;
}

.rail-track img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border: 3px solid var(--gilt);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
}

.rail-track span {
  display: block;
  margin-top: 0.4rem;
  text-align: center;
  font-family: var(--font-label);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gilt-bright);
}

@keyframes rail {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Rooms */
.room {
  position: relative;
  z-index: 1;
  padding: 5rem 0;
}

.room-inner,
.room-head,
.accession-card,
.chart-wrapper,
.ticket-list,
.buy-cta,
.press-layout,
.colophon-inner {
  width: min(1180px, 92vw);
  margin-inline: auto;
}

.room-head {
  text-align: left;
  margin-bottom: 2rem;
}

.room-index {
  font-family: var(--font-label);
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  color: var(--gilt);
}

.room-head h2,
.didactic-label h2,
.accession-card h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  line-height: 1.08;
  color: var(--navy);
  margin-bottom: 0.55rem;
}

.lede {
  color: var(--ink-soft);
  max-width: 36em;
}

.text-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 800;
  color: var(--wine);
  text-decoration: none;
  border-bottom: 2px solid rgba(142, 30, 42, 0.35);
}

.text-link:hover {
  color: var(--ginger);
}

/* Didactic / wall text — reversed from old about-grid */
.room-didactic {
  background:
    linear-gradient(90deg, rgba(247, 240, 226, 0.7) 0 48%, transparent 48%),
    var(--plaster);
}

.room-didactic .room-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: center;
}

.didactic-label {
  background: var(--paper);
  padding: 2.2rem 2rem;
  box-shadow: var(--shadow);
  border-top: 6px solid var(--wine);
}

.didactic-label p {
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.didactic-label strong {
  color: var(--navy);
}

.portrait-frame img {
  aspect-ratio: 4 / 5;
  object-position: center 20%;
}

/* Salon hang — masonry, not a fan of polaroids */
.room-salon {
  background: #cbb892;
}

.salon-wall {
  width: min(1180px, 92vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 150px;
  gap: 1.15rem;
}

.salon-piece {
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.salon-piece img {
  flex: 1;
  height: auto;
  min-height: 0;
  object-fit: cover;
}

.s-lg { grid-column: span 6; grid-row: span 3; }
.s-md { grid-column: span 6; grid-row: span 2; }
.s-sm { grid-column: span 3; grid-row: span 2; }
.s-logo { grid-column: span 6; grid-row: span 2; }

.salon-piece:hover {
  transform: translateY(-4px);
  z-index: 2;
}

/* Press wall */
.room-press {
  background:
    radial-gradient(ellipse at 80% 0%, rgba(26, 39, 68, 0.08), transparent 40%),
    var(--plaster);
}

.press-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.magazine {
  grid-column: 1 / -1;
}

.vitrine,
.magazine {
  background: var(--navy-ink);
  color: var(--paper);
  box-shadow: var(--shadow);
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.vitrine-head,
.magazine-masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1.1rem 0.7rem;
}

.vitrine-head a,
.magazine-masthead a {
  color: var(--gilt-bright);
  font-weight: 800;
  font-size: 0.85rem;
  text-decoration: none;
}

.vitrine-note {
  padding: 0 1.1rem 0.85rem;
  color: var(--cloud);
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(232, 211, 154, 0.12);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.7rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(247, 240, 226, 0.18);
}

.x-pill {
  background: rgba(247, 240, 226, 0.06);
}

.ig-pill {
  background: linear-gradient(135deg, rgba(253, 29, 29, 0.22), rgba(131, 58, 180, 0.28));
  color: var(--paper);
  border-color: rgba(225, 48, 108, 0.4);
}

.panda-pill {
  background: rgba(217, 120, 44, 0.2);
  color: var(--ginger-hot);
  border-color: rgba(217, 120, 44, 0.4);
}

.embed-well {
  display: flex;
  justify-content: center;
  padding: 0.9rem 0.7rem 1.1rem;
  min-height: 560px;
  max-height: 760px;
  overflow: auto;
  flex: 1;
  background: #0e1422;
}

.tweet-embed-wrap .twitter-tweet {
  margin: 0 auto !important;
}

.ig-vitrine .embed-well {
  background: #161018;
  align-items: flex-start;
}

.ig-embed-wrap .instagram-media {
  margin: 0 auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  background: #fff;
  border: 0 !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}

.ig-embed-wrap .instagram-media a {
  color: #8e1e2a;
}

.ig-embed-wrap iframe {
  max-width: 100% !important;
}

.magazine {
  background: #f4ead6;
  color: var(--ink);
}

.magazine-masthead a {
  color: var(--wine);
}

.magazine-spread {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.1rem;
  padding: 0.4rem 1.15rem 1.15rem;
  align-items: center;
}

.magazine-date {
  font-family: var(--font-label);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wine);
  margin-bottom: 0.45rem;
}

.magazine-copy h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 0.7rem;
}

.magazine-copy p {
  color: var(--ink-soft);
  margin-bottom: 0.8rem;
}

.magazine-copy ul {
  margin: 0 0 1rem 1.1rem;
  color: var(--navy);
  font-weight: 600;
}

.magazine-cover img {
  aspect-ratio: 4 / 5;
  object-position: 18% center;
}

.magazine-embed {
  height: 420px;
  border-top: 1px solid rgba(26, 39, 68, 0.12);
  background: #fff;
}

.panda-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.magazine-embed-note {
  padding: 0.55rem 1.1rem 0.9rem;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

/* Accession / CA */
.room-accession {
  background: var(--navy);
  padding: 4.5rem 0;
}

.accession-card {
  background: var(--paper);
  padding: 2.4rem 2rem;
  text-align: center;
  box-shadow: var(--frame);
  border-top: 10px solid var(--gilt);
}

.accession-sub {
  color: var(--ink-soft);
  margin-bottom: 1.2rem;
}

.ca-box {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  max-width: 820px;
  margin: 0 auto;
  padding: 1rem 1rem 1rem 1.2rem;
  background: #1a2744;
  border: 1px solid rgba(196, 163, 90, 0.4);
}

.ca-address {
  flex: 1;
  font-size: clamp(0.72rem, 2vw, 0.95rem);
  word-break: break-all;
  color: var(--gilt-bright);
  font-weight: 700;
  text-align: left;
}

.ca-tba {
  font-family: var(--font-label);
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  letter-spacing: 0.32em;
  text-align: center;
  word-break: normal;
}

.copy-toast {
  min-height: 1.5rem;
  margin-top: 0.75rem;
  font-weight: 700;
  color: var(--apple);
  opacity: 0;
  transition: opacity 0.25s;
}

.copy-toast.show {
  opacity: 1;
}

/* Market */
.room-market .chart-wrapper {
  margin-top: 0;
  overflow: hidden;
  background: #0e1422;
  min-height: 280px;
  padding: 0;
}

.room-market .chart-wrapper img,
.dexscreener-embed {
  width: 100%;
  height: 560px;
  border: 0;
  display: block;
}

.chart-placeholder {
  display: grid;
  place-items: center;
  min-height: 280px;
  padding: 2rem;
  text-align: center;
  color: var(--gilt-bright);
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.chart-link {
  display: block;
  text-align: center;
  margin: 1rem auto 0;
}

/* Admission tickets — vertical, not 4-up cards */
.room-tickets {
  background: var(--plaster-deep);
}

.ticket-list {
  list-style: none;
  display: grid;
  gap: 0.9rem;
  margin-bottom: 2.2rem;
}

.ticket-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1.2rem;
  align-items: center;
  background: var(--paper);
  padding: 0.85rem 1.2rem 0.85rem 0.85rem;
  border-left: 10px solid var(--wine);
  box-shadow: 0 10px 24px rgba(26, 39, 68, 0.1);
}

.ticket-list img {
  width: 110px;
  height: 86px;
  object-fit: cover;
  border: 2px solid var(--gilt);
}

.ticket-num {
  font-family: var(--font-label);
  color: var(--wine);
  letter-spacing: 0.12em;
  font-size: 0.8rem;
}

.ticket-list h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--navy);
}

.ticket-list p {
  color: var(--ink-soft);
}

.buy-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.room-tickets .btn-gilt {
  color: var(--navy);
  border-color: var(--navy);
  background: transparent;
}

/* Colophon */
.colophon {
  position: relative;
  z-index: 1;
  background: var(--navy-ink);
  color: var(--cloud);
  padding: 2.4rem 0 2rem;
  border-top: 8px double var(--gilt);
}

.colophon-inner {
  display: grid;
  gap: 1.1rem;
  justify-items: center;
  text-align: center;
}

.colophon-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--paper);
}

.colophon-brand strong {
  display: block;
  font-family: var(--font-display);
}

.colophon-brand span {
  color: var(--gilt);
  font-size: 0.85rem;
}

.colophon-links {
  display: flex;
  gap: 1.2rem;
}

.colophon-links a {
  color: var(--ginger-hot);
  font-weight: 800;
  text-decoration: none;
}

.colophon-note {
  max-width: 42em;
  font-size: 0.82rem;
  opacity: 0.75;
}

@media (max-width: 980px) {
  .ticket-stub {
    display: none;
  }

  .ticket-bar {
    grid-template-columns: 1fr auto auto;
  }

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

  .hero-frame img {
    aspect-ratio: 16 / 8;
  }

  .wall-plaque {
    padding: 2.4rem 1.5rem 3rem;
    border-left: 0;
    border-top: 1px solid rgba(232, 211, 154, 0.22);
  }

  .room-didactic .room-inner,
  .press-layout,
  .magazine-spread {
    grid-template-columns: 1fr;
  }

  .s-lg,
  .s-md,
  .s-logo {
    grid-column: span 12;
  }

  .s-sm {
    grid-column: span 6;
  }

  .salon-wall {
    grid-auto-rows: 120px;
  }
}

@media (max-width: 720px) {
  .ticket-nav {
    position: fixed;
    top: 62px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #12192c;
    padding: 0.4rem 0 0.8rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
    border-bottom: 4px solid var(--gilt);
  }

  .ticket-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .ticket-nav a {
    padding: 0.85rem 1.3rem;
    border-top: 1px solid rgba(232, 211, 154, 0.08);
  }

  .nav-toggle {
    display: flex;
  }

  .ticket-list li {
    grid-template-columns: 1fr;
  }

  .ticket-list img {
    width: 100%;
    height: 140px;
  }

  .ca-box {
    flex-direction: column;
    text-align: center;
  }

  .ca-address {
    text-align: center;
  }

  .embed-well {
    min-height: 480px;
  }

  .magazine-embed {
    height: 360px;
  }

  .dexscreener-embed {
    height: 420px;
  }

  .s-sm {
    grid-column: span 12;
  }
}
