/* =====================================================================
   Antiqua — antiqua.gallery — pre-launch waitlist site
   Noir only. Black · gold · cream. No second hue.
   Tokens come from tokens.css; this file is layout + components.
   ===================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-1);
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: rgba(212,177,106,.28); color: var(--cream); }

/* ---- shared type helpers ------------------------------------------- */
.eyebrow {
  font-family: var(--font-mono); font-size: 12px; text-transform: uppercase;
  letter-spacing: .32em; color: var(--gold-mid); margin: 0;
}
.section-label {
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: .28em; color: var(--gold-dim); margin: 0;
}
.display { font-family: var(--font-display); font-style: italic; line-height: 1.04; margin: 0; }
.lede { color: var(--text-2); font-size: 17px; line-height: 1.6; margin: 0; }
.gold { color: var(--gold); }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 40px; }
.rule { width: 44px; height: 1px; background: var(--gold-deep); border: 0; }

.section { padding: 96px 0; }
.section-head { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.section-head .display { font-weight: 700; font-size: 38px; max-width: 660px; }
.deep { background: var(--bg-true); border-top: 1px solid var(--gold-deep); border-bottom: 1px solid var(--gold-deep); }

/* ---- buttons & fields ---------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em;
  text-transform: uppercase; font-weight: 600; cursor: pointer;
  border-radius: var(--r-pill); padding: 13px 22px; border: 1px solid transparent;
  transition: transform var(--dur-fast) var(--ease-soft), box-shadow var(--dur-base) var(--ease-soft), background var(--dur-base);
  text-decoration: none;
}
.btn-gold { background: var(--gold); color: var(--bg); box-shadow: 0 0 22px -8px rgba(212,177,106,.55); }
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 0 28px -6px rgba(212,177,106,.7); }
.btn-gold:active { transform: scale(.975); }
.btn-gold:disabled { background: var(--surface-2); color: var(--gold-deep); box-shadow: none; cursor: default; transform: none; }
.btn-ghost { background: transparent; border-color: var(--gold-deep); color: var(--gold-mid); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.field {
  width: 100%; background: rgba(0,0,0,.35); border: 1px solid var(--gold-deep);
  border-radius: 12px; padding: 14px 16px; color: var(--cream);
  font-family: var(--font-ui); font-size: 16px; outline: none;
  transition: border-color var(--dur-base);
}
.field::placeholder { color: #8A7B55; }
.field:focus { border-color: var(--gold); }
.field:focus-visible { outline: none; box-shadow: 0 0 0 1px var(--gold); }

/* =====================================================================
   NAV
   ===================================================================== */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(10,9,7,.78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gold-deep);
}
.nav-inner { height: 64px; display: flex; align-items: center; justify-content: space-between; }
.wordmark {
  font-family: var(--font-display); font-style: italic; font-weight: 600;
  font-size: 23px; color: var(--cream); text-decoration: none; letter-spacing: .01em;
}
.wordmark .dot { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-link {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold-mid); text-decoration: none;
  transition: color var(--dur-base);
}
.nav-link:hover { color: var(--gold); }
.nav-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px;
  border-radius: var(--r-pill); border: 1px solid var(--gold);
  color: var(--gold-bright); font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .14em; white-space: nowrap;
}
.nav-chip svg { width: 13px; height: 13px; }
@media (max-width: 720px) {
  .nav-links .nav-link { display: none; }
}

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative; min-height: 92vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 64px 40px 56px;
}
.hero-orbit {
  position: relative; width: 380px; height: 380px; margin-bottom: 76px;
  display: flex; align-items: center; justify-content: center;
}
.orbit-ring { position: absolute; inset: 0; z-index: 3; animation: orbitSpin 70s linear infinite; }
.orbit-slot { position: absolute; top: 50%; left: 50%; width: 0; height: 0; }
.orbit-counter { position: absolute; top: 0; left: 0; animation: orbitSpinRev 70s linear infinite; }
.orbit-hex {
  position: absolute; width: 96px; height: 108px; margin: -54px 0 0 -48px;
  filter: drop-shadow(0 10px 26px rgba(0,0,0,.78));
}
.orbit-hex img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.orbit-hex .hx-frame { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.orbit-hex .hx-edge { fill: none; stroke: var(--gold); stroke-width: 2.6; stroke-linejoin: round; }
.hero-icon {
  position: relative; width: 188px; height: 188px; z-index: 2;
  filter: drop-shadow(0 18px 44px rgba(0,0,0,.7));
}
.hero-icon img { width: 100%; height: 100%; }
@keyframes orbitSpin { to { transform: rotate(360deg); } }
@keyframes orbitSpinRev { to { transform: rotate(-360deg); } }

.hero h1 {
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  font-size: 56px; line-height: 1.04; margin: 20px 0 0; max-width: 760px;
  text-wrap: balance; color: var(--cream);
}
.hero-sub { margin: 18px 0 0; max-width: 520px; color: var(--text-2); font-size: 18px; }
.hero-cta { margin-top: 34px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: center; }
.scroll-hint { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-dim); }

@media (prefers-reduced-motion: reduce) {
  .orbit-ring, .orbit-counter { animation: none; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: 38px; }
  .hero-orbit { width: 300px; height: 300px; }
  .hero-icon { width: 150px; height: 150px; }
}

/* =====================================================================
   THE CURATOR PASS  (the centerpiece)
   ===================================================================== */
.pass-section { padding: 40px 0 96px; }
.pass-stage { display: flex; flex-direction: column; align-items: center; }
.pass-eyebrow { margin-bottom: 22px; }

/* scaler keeps the 560×353 card responsive */
.pass-scaler { transform-origin: top center; }
.pass-frame { position: relative; }

.pass {
  --sig-ink: var(--text-1);
  position: relative; width: 560px; height: 353px; border-radius: 18px;
  background: var(--surface); overflow: hidden;
  box-shadow: 0 0 0 1px var(--gold), 0 30px 70px -30px rgba(0,0,0,.9);
}
.pass-sidebar {
  position: absolute; left: 14px; top: 14px; bottom: 14px; width: 136px;
  background: linear-gradient(180deg, var(--surface-2), var(--bg));
  border-radius: 13px; box-shadow: inset 0 0 0 1px var(--gold-deep);
}
.pass-sidebar .matline { position: absolute; inset: 6px; border-radius: 9px; border: 1px solid var(--gold-border); pointer-events: none; }
.medallion {
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 3px var(--bg), inset 0 0 0 4px var(--gold-deep);
}
.medallion span { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 29px; color: var(--gold); }
.spine-antiqua { position: absolute; left: 50%; top: 120px; transform: translateX(-50%) translate(-39px, 14px); }
.spine-antiqua .rot { transform: rotate(-90deg); display: flex; flex-direction: column; align-items: center; gap: 5px; }
.spine-antiqua span { font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 30px; color: var(--text-1); letter-spacing: .02em; white-space: nowrap; }
.spine-antiqua .urule { width: 82px; height: 1px; background: var(--gold); }
.spine-est { position: absolute; left: 50%; top: 208px; transform: translateX(-50%) translate(45px, -62px); }
.spine-est .rot { transform: rotate(-90deg); display: flex; flex-direction: column; align-items: center; gap: 5px; }
.spine-est span { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .22em; color: var(--gold-dim); white-space: nowrap; }
.spine-est .urule { width: 78px; height: 1px; background: var(--gold-deep); }
.pass-serial-side { position: absolute; bottom: 22px; left: 0; right: 0; display: flex; justify-content: center; }

.pass-panel {
  position: absolute; left: 156px; right: 14px; top: 14px; bottom: 14px;
  border-radius: 14px; box-shadow: inset 0 0 0 1px var(--gold-deep); overflow: hidden;
}
.pass-hexfield {
  position: absolute; inset: 0; pointer-events: none; opacity: .58;
  -webkit-mask-image: linear-gradient(125deg, transparent 26%, rgba(0,0,0,.5) 64%, #000 94%);
  mask-image: linear-gradient(125deg, transparent 26%, rgba(0,0,0,.5) 64%, #000 94%);
}
.flo { position: absolute; line-height: 0; }
.flo-tl { left: -26px; top: 6px; }
.flo-tr { right: -25px; top: 2px; }
.flo-bl { left: -27px; bottom: 3px; }
.flo-br { right: -27px; bottom: 1px; }
.pass-content { position: absolute; top: 18px; bottom: 18px; left: 22px; right: 22px; display: flex; flex-direction: column; }
.pass-content .top-row { display: flex; justify-content: flex-end; }
.pass-title-block { margin-top: 14px; transform: translate(5px, -14px); }
.pass-title-block .admit { font-family: var(--font-mono); font-size: 10px; letter-spacing: .36em; color: var(--gold-dim); }
.pass-title-block .title { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 46px; color: var(--text-1); line-height: 1; margin-top: 4px; }
.pass-tier { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .2em; color: var(--gold); margin-top: 9px; min-height: 12px; text-transform: uppercase; }
.pass-sign { margin-top: auto; }

/* serial counter pill */
.serial {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px;
  border: 1px solid var(--gold-deep); border-radius: 4px; background: rgba(0,0,0,.25);
}
.serial .num-glyph { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 17px; color: var(--gold); line-height: 1; }
.serial .digits { font-family: var(--font-mono); font-size: 13px; letter-spacing: .16em; color: var(--gold-bright); }
.serial.blank .digits { color: var(--gold-dim); }

/* signature */
.sig-wrap { text-align: left; }
.sig-inkrow { position: relative; display: inline-block; padding: 0 8px; min-height: 40px; }
.sig-ink {
  font-family: 'Herr Von Muellerhoff', cursive; font-size: 42px; color: var(--sig-ink);
  line-height: .95; white-space: nowrap; transform: rotate(-3deg); transform-origin: center bottom;
  text-shadow: 0 0 7px rgba(242,216,150,.20);
}
.sig-ink.animate { animation: aqWet 1100ms var(--ease-settle); }
.sig-swash { margin-top: -4px; }
.sig-printed { font-family: var(--font-ui); font-size: 12.5px; letter-spacing: .06em; color: var(--text-1); margin-top: 7px; min-height: 16px; }
.sig-caption { font-family: var(--font-ui); font-size: 10.5px; color: var(--text-2); margin-top: 2px; }
.sig-empty .sig-swash, .sig-empty .sig-printed, .sig-empty .sig-caption { visibility: hidden; }

/* stamp */
.stamp {
  position: absolute; right: 4px; top: 96px; text-align: center;
  transform: rotate(-8deg); border: 2px solid var(--gold-bright); border-radius: 8px;
  padding: 6px 13px; background: rgba(10,9,8,.30); box-shadow: 0 0 0 1px rgba(10,9,8,.6);
}
.stamp.animate { animation: aqStamp 460ms var(--ease-settle); }
.stamp .l1 { font-family: var(--font-mono); font-size: 15px; font-weight: 700; letter-spacing: .16em; color: var(--gold-bright); line-height: 1; }
.stamp .l2 { font-family: var(--font-mono); font-size: 7px; letter-spacing: .22em; color: var(--gold-bright); margin-top: 3px; opacity: .85; }

@keyframes aqWet {
  0% { opacity: .5; transform: translateY(3px) rotate(-3deg); filter: drop-shadow(0 0 9px rgba(242,216,150,.6)); }
  100% { opacity: 1; transform: translateY(0) rotate(-3deg); filter: drop-shadow(0 0 0 transparent); }
}
@keyframes aqStamp {
  0% { transform: scale(1.7) rotate(-8deg); opacity: 0; }
  55% { transform: scale(.92) rotate(-8deg); }
  100% { transform: scale(1) rotate(-8deg); opacity: 1; }
}

/* the form under the pass */
.pass-form { margin-top: 30px; width: 560px; max-width: 100%; display: flex; flex-direction: column; gap: 12px; }
.pass-form .row { display: flex; gap: 10px; }
.pass-form .row .field { flex: 1; }
.pass-form .row .field.email { flex: 1.3; }
.form-micro { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-dim); text-align: center; margin: 2px 0 0; }
.pass-form .pass-inputs { display: flex; flex-direction: column; gap: 12px; }
.beta-check {
  display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; cursor: pointer;
  font-family: var(--font-ui); font-size: 14px; color: var(--text-2); user-select: none;
}
.beta-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.beta-check .box {
  width: 18px; height: 18px; border-radius: 5px; border: 1px solid var(--gold-deep);
  background: rgba(0,0,0,.35); position: relative; flex: 0 0 auto; transition: border-color var(--dur-base), background var(--dur-base);
}
.beta-check .box::after {
  content: ""; position: absolute; left: 5px; top: 1.5px; width: 5px; height: 10px;
  border: solid var(--bg); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0);
  transition: transform var(--dur-fast) var(--ease-settle);
}
.beta-check:hover .box { border-color: var(--gold-mid); }
.beta-check input:checked + .box { background: var(--gold); border-color: var(--gold); }
.beta-check input:checked + .box::after { transform: rotate(45deg) scale(1); }
.beta-check input:focus-visible + .box { box-shadow: 0 0 0 2px var(--gold); }
.form-error { color: var(--danger); font-size: 13px; text-align: center; min-height: 0; margin: 0; }
.pass-confirm { display: none; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding-top: 6px; }
.pass-confirm .badge { font-family: var(--font-mono); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-bright); }
.pass-confirm p { margin: 0; max-width: 440px; color: var(--text-2); font-size: 15px; }
.pass-confirm .signoff { font-family: var(--font-display); font-style: italic; color: var(--gold-mid); }
.admitted .pass-form .pass-inputs { display: none; }
.admitted .pass-confirm { display: flex; }

@media (max-width: 480px) {
  .pass-form .row { flex-direction: column; }
}

/* =====================================================================
   CURATOR'S GALLERY  (2-row horizontal salon hang)
   · grid-auto-flow:column → paintings stack 2-high and march sideways
   · gilt molding built from padding + ::before/::after insets (no frame img)
   · edge fades dissolve the strip into the black ground
   ===================================================================== */
.gallery-wall { position: relative; margin-top: 44px; overflow: hidden; }
.gallery-wall::before, .gallery-wall::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 84px; z-index: 4; pointer-events: none;
}
.gallery-wall::before { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.gallery-wall::after { right: 0; background: linear-gradient(to left, var(--bg), transparent); }

.gallery-scroller {
  display: grid;
  grid-template-rows: repeat(2, minmax(160px, 23vw)); /* exactly two rows tall */
  grid-auto-flow: column;          /* fill down, then a new column → sideways */
  grid-auto-columns: max-content;  /* each column only as wide as its art needs */
  gap: 22px 18px; overflow-x: auto; overflow-y: hidden; padding: 8px 40px 38px;
  cursor: grab; overscroll-behavior-x: contain;
  scrollbar-width: thin; scrollbar-color: var(--gold-deep) transparent;
}
.gallery-scroller.dragging { cursor: grabbing; }
.gallery-scroller::-webkit-scrollbar { height: 8px; }
.gallery-scroller::-webkit-scrollbar-track { background: transparent; }
.gallery-scroller::-webkit-scrollbar-thumb { background: var(--gold-deep); border-radius: 4px; }

.art {
  position: relative; height: 100%; justify-self: center; padding: 13px; border-radius: 2px; margin: 0;
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 20%, var(--gold-deep) 48%, var(--gold) 72%, var(--gold-dim) 100%);
  box-shadow:
    0 0 0 1px #1a1408,
    0 22px 34px -18px rgba(0,0,0,.9),
    inset 0 1px 0 rgba(255,230,160,.42),
    inset 0 -1px 0 rgba(0,0,0,.5);
  transition: transform var(--dur-base) var(--ease-soft), filter var(--dur-base) var(--ease-soft);
}
.art.tall  { grid-row: span 2; }
.art.short { grid-row: span 1; }
.art::before { content: ""; position: absolute; inset: 7px; border-radius: 1px; background: linear-gradient(45deg, var(--gold-bright), var(--gold-dim)); z-index: 1; }
.canvas { position: relative; z-index: 2; height: 100%; line-height: 0; box-shadow: 0 0 0 1px #0a0906; }
.canvas img { display: block; height: 100%; width: auto; pointer-events: none; }
.art:hover { transform: translateY(-4px); filter: brightness(1.05); }

.gallery-hint {
  text-align: center; margin-top: 14px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-dim);
}
@media (max-width: 640px) { .gallery-scroller { grid-template-rows: repeat(2, minmax(132px, 34vw)); padding: 8px 24px 32px; } }

/* =====================================================================
   THE COLLECTION  (archive story + spines + flip card)
   ===================================================================== */
.collection-stat { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 40px; }
.collection-stat .big { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 64px; color: var(--gold); line-height: 1; }
.collection-stat .cap { font-family: var(--font-mono); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-dim); }

.collection-grid {
  margin-top: 50px; display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.spine {
  position: relative; aspect-ratio: 3/4; border-radius: var(--r-tile); overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--gold-deep); background: var(--surface);
  transition: transform var(--dur-base) var(--ease-soft), box-shadow var(--dur-base) var(--ease-soft);
}
.spine:hover { transform: translateY(-5px); box-shadow: inset 0 0 0 1px var(--gold), 0 22px 40px -18px rgba(0,0,0,.95); z-index: 2; }
.spine img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-soft); }
.spine:hover img { transform: scale(1.04); }
.spine .lbl {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 10px 9px;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--cream); text-align: center;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.55) 50%, rgba(0,0,0,.92));
}
@media (max-width: 860px) { .collection-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .collection-grid { grid-template-columns: repeat(2, 1fr); } }
.collection-note { margin: 36px auto 0; max-width: 560px; text-align: center; color: var(--text-2); }
.collection-note .free { color: var(--cream); font-family: var(--font-display); font-style: italic; }

/* ornate collection card — a finished puzzle's museum trading card.
   Colour is movement-keyed (the card takes the hue of its hall); all card
   colours are scoped to --c-* locals so the rest of the page is untouched. */
.flip-block { margin-top: 76px; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.flip-intro { text-align: center; max-width: 480px; color: var(--text-2); }
.flip-card {
  /* default hall · Impressionism (forest green) */
  --c-bg1: #1C3326; --c-bg2: #0E1B14; --c-glow: rgba(240,213,140,.14);
  --c-ink: #F0E7D3; --c-ink-dim: #BFC6AC;
  --c-gold: #E0BC78; --c-gold-bright: #F6DE9A; --c-gold-mid: #B7A471; --c-rule: #6E6A3C;
  width: 348px; height: 502px; perspective: 1900px; cursor: pointer;
  background: transparent; border: 0; padding: 0;
  transform: rotate(5deg);
  transition: transform .6s var(--ease-settle);
}
.flip-card.hall-renaissance { --c-bg1: #1B2842; --c-bg2: #0C1424; --c-glow: rgba(220,205,150,.13); --c-ink: #ECE7D6; --c-ink-dim: #AEB6CA; --c-gold: #D6BE84; --c-gold-bright: #F0DCA0; --c-gold-mid: #9AA0B6; --c-rule: #43506E; }
.flip-card.hall-dutch { --c-bg1: #5A2A1E; --c-bg2: #350F0C; --c-glow: rgba(232,168,108,.16); --c-ink: #F3E3C8; --c-ink-dim: #D6AC8E; --c-gold: #E8B57A; --c-gold-bright: #F6CF9A; --c-gold-mid: #C58A60; --c-rule: #7A4030; }
.flip-card:hover { transform: rotate(5deg) translateY(-6px); }
.flip-inner { position: relative; width: 100%; height: 100%; transition: transform 1s var(--ease-settle); transform-style: preserve-3d; }
.flip-card.flipped .flip-inner { transform: rotateY(180deg); }
.flip-face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 44px 84px -32px rgba(0,0,0,.95), 0 0 0 1px var(--c-rule), inset 0 1px 0 rgba(246,222,154,.10);
}
.coll-card {
  background:
    radial-gradient(125% 78% at 50% -10%, var(--c-glow), transparent 60%),
    linear-gradient(177deg, var(--c-bg1), var(--c-bg2));
  padding: 24px 22px; display: flex; flex-direction: column;
}
.flip-back { transform: rotateY(180deg); }

/* slow gilt shimmer sweeping across the frame — life, gated on active + motion */
.coll-card::before {
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0;
  background: linear-gradient(116deg, transparent 38%, rgba(246,222,154,.16) 48%, rgba(255,245,210,.30) 50%, rgba(246,222,154,.16) 52%, transparent 62%);
  transform: translateX(-12%);
}
@media (prefers-reduced-motion: no-preference) {
  .flip-card.lit .coll-card::before { animation: collSheen 6.5s ease-in-out 1.1s infinite; }
}
@keyframes collSheen {
  0% { opacity: 0; transform: translateX(-40%); }
  12% { opacity: 1; }
  30% { opacity: 0; transform: translateX(45%); }
  100% { opacity: 0; transform: translateX(45%); }
}

/* drifting gold motes (front only) */
.coll-motes { position: absolute; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; }
.coll-motes i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: var(--c-gold-bright); opacity: 0; box-shadow: 0 0 6px 1px rgba(246,222,154,.6); }
@media (prefers-reduced-motion: no-preference) {
  .flip-card.lit .coll-motes i { animation: collMote 7s linear infinite; }
}
.coll-motes i:nth-child(1) { left: 18%; bottom: 16%; animation-delay: .4s; }
.coll-motes i:nth-child(2) { left: 42%; bottom: 8%; animation-delay: 2.3s; }
.coll-motes i:nth-child(3) { left: 67%; bottom: 20%; animation-delay: 3.7s; }
.coll-motes i:nth-child(4) { left: 82%; bottom: 12%; animation-delay: 5.1s; }
.coll-motes i:nth-child(5) { left: 30%; bottom: 24%; animation-delay: 6.0s; }
@keyframes collMote {
  0% { opacity: 0; transform: translateY(0) scale(.7); }
  16% { opacity: .9; }
  70% { opacity: .5; }
  100% { opacity: 0; transform: translateY(-78px) scale(1.1); }
}

/* engraved triple-rule frame */
.coll-frame { position: absolute; inset: 12px; border: 1.5px solid var(--c-gold); border-radius: 11px; pointer-events: none; z-index: 1; opacity: .92; }
.coll-frame::before { content: ""; position: absolute; inset: 4px; border: 1px solid var(--c-rule); border-radius: 7px; }

/* scrollwork filigree corners (one SVG, mirrored to the other three) */
.corner { position: absolute; width: 44px; height: 44px; color: var(--c-gold); z-index: 3; pointer-events: none; }
.corner svg { width: 100%; height: 100%; display: block; }
.c-tl { top: 14px; left: 14px; }
.c-tr { top: 14px; right: 14px; transform: scaleX(-1); }
.c-bl { bottom: 14px; left: 14px; transform: scaleY(-1); }
.c-br { bottom: 14px; right: 14px; transform: scale(-1, -1); }

/* eyebrow */
.coll-eyebrow {
  position: relative; z-index: 2; text-align: center; margin: 7px 14px 0;
  display: flex; align-items: center; justify-content: center; gap: 11px;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--c-gold-mid);
}
.coll-eyebrow::before, .coll-eyebrow::after { content: ""; width: 16px; height: 1px; background: var(--c-rule); }

/* gilt-framed painting (front) */
.coll-art {
  position: relative; z-index: 2; margin: 16px 4px 0; padding: 7px; border-radius: 2px;
  background: linear-gradient(135deg, var(--c-gold-bright) 0%, var(--c-gold) 24%, var(--c-rule) 52%, var(--c-gold) 78%, var(--c-gold-mid) 100%);
  box-shadow: 0 12px 24px -12px rgba(0,0,0,.9);
}
.coll-art::after { content: ""; position: absolute; inset: 7px; box-shadow: inset 0 0 0 1px rgba(10,9,6,.55); pointer-events: none; }
.coll-art img { display: block; width: 100%; height: 206px; object-fit: cover; }

/* meta (front) */
.coll-meta { position: relative; z-index: 2; text-align: center; margin-top: 16px; }
.coll-title { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 23px; line-height: 1.12; color: var(--c-ink); white-space: nowrap; }
.coll-fleuron { text-align: center; line-height: 0; margin: 10px 0; }
.coll-fleuron svg { display: inline-block; vertical-align: middle; }
.coll-artist { font-family: var(--font-display); font-style: italic; font-size: 17px; color: var(--c-gold); }

/* front footer — mirrors the app: YEAR / HELD BY */
.coll-foot2 {
  position: relative; z-index: 2; margin-top: auto; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: flex-end;
  gap: 14px; padding: 14px 16px 0; border-top: 1px solid var(--c-rule);
}
.coll-foot2 .k { font-family: var(--font-mono); font-size: 8px; letter-spacing: .2em; text-transform: uppercase; color: var(--c-gold-mid); }
.coll-foot2 .v { font-family: var(--font-display); font-style: italic; font-size: 14.5px; color: var(--c-ink); margin-top: 4px; }
.coll-foot2 .r { text-align: right; }

/* wall card (back) */
.coll-head { position: relative; z-index: 2; text-align: center; margin-top: 14px; }
.coll-head .coll-title { font-size: 22px; }
.coll-byline { font-family: var(--font-display); font-style: italic; font-size: 15px; color: var(--c-gold); margin-top: 7px; }
.coll-fact { position: relative; z-index: 2; margin: 4px 8px 0; font-family: var(--font-ui); font-size: 13.5px; line-height: 1.64; color: var(--c-ink-dim); text-align: left; }
.coll-fact .dropcap { float: left; font-family: var(--font-display); font-weight: 700; font-size: 46px; line-height: .76; color: var(--c-gold); margin: 5px 9px 0 0; }
.coll-footer {
  position: relative; z-index: 2; margin-top: auto; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: flex-end;
  padding: 15px 16px 0; border-top: 1px solid var(--c-rule);
}
.coll-footer .k { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--c-gold-mid); }
.coll-footer .v { font-family: var(--font-display); font-style: italic; font-size: 16px; color: var(--c-gold); margin-top: 4px; }
.coll-footer .r { text-align: right; }

/* hall switcher — recolours the card to each hall's palette */
.hall-chips { display: flex; gap: 9px; flex-wrap: wrap; justify-content: center; }
.hall-chip {
  cursor: pointer; background: transparent; border: 1px solid var(--gold-deep); border-radius: var(--r-pill);
  padding: 7px 14px; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-mid);
  transition: border-color var(--dur-base), color var(--dur-base);
}
.hall-chip .sw { width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.hall-chip:hover { color: var(--gold); border-color: var(--gold-mid); }
.hall-chip[aria-pressed="true"] { color: var(--bg); background: var(--gold); border-color: var(--gold); }
.hall-chip[aria-pressed="true"] .sw { box-shadow: inset 0 0 0 1px rgba(0,0,0,.3); }

@media (prefers-reduced-motion: reduce) {
  .flip-inner { transition: none; }
}

/* =====================================================================
   FROM THE MAKER
   ===================================================================== */
.maker { max-width: 640px; margin: 0 auto; text-align: center; }
.maker .body { margin-top: 28px; font-size: 18px; line-height: 1.7; color: var(--text-1); }
.maker .body p { margin: 0 0 18px; }
.maker .body p:first-letter { } /* reserved */
.maker .sign { margin-top: 10px; font-family: 'Herr Von Muellerhoff', cursive; font-size: 44px; color: var(--gold); transform: rotate(-3deg); display: inline-block; }
.maker .sign-cap { font-family: var(--font-mono); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-dim); margin-top: 4px; }
.maker-photo { margin: 48px 0 0; }
.maker-photo-frame {
  position: relative; padding: 12px; border-radius: 3px;
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 22%, var(--gold-deep) 50%, var(--gold) 76%, var(--gold-dim) 100%);
  box-shadow: 0 34px 66px -28px rgba(0,0,0,.95), inset 0 1px 0 rgba(255,240,200,.45), inset 0 -2px 3px rgba(0,0,0,.5);
}
.maker-photo-frame::after { content: ""; position: absolute; inset: 12px; box-shadow: inset 0 0 0 1px rgba(10,9,6,.6); pointer-events: none; }
.maker-photo-frame img { display: block; width: 100%; height: auto; }
.maker-photo figcaption { margin-top: 16px; font-family: var(--font-display); font-style: italic; font-size: 15px; color: var(--text-2); }
.maker-photo figcaption .i { color: var(--gold-mid); }

/* =====================================================================
   MISSION
   ===================================================================== */
.mission-pillars { margin-top: 52px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.pillar { display: flex; flex-direction: column; gap: 12px; }
.pillar h3 { font-family: var(--font-display); font-weight: 600; font-size: 22px; color: var(--gold); margin: 0; }
.pillar p { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.6; }
.give { margin-top: 60px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 26px; align-items: stretch; }
.give-card { border: 1px solid var(--gold-deep); border-radius: var(--r-card); padding: 30px; background: rgba(0,0,0,.18); }
.give-card .k { font-family: var(--font-mono); font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-dim); }
.give-card h3 { font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 23px; color: var(--cream); margin: 12px 0 0; }
.give-card p { margin: 14px 0 0; color: var(--text-2); font-size: 15px; line-height: 1.6; }
.give-card .btn { margin-top: 20px; }
@media (max-width: 760px) {
  .mission-pillars { grid-template-columns: 1fr; gap: 28px; }
  .give { grid-template-columns: 1fr; }
}

/* =====================================================================
   FAQ
   ===================================================================== */
.faq-list { margin: 52px auto 0; max-width: 760px; }
.faq-item { border-top: 1px solid var(--gold-deep); }
.faq-item:last-child { border-bottom: 1px solid var(--gold-deep); }
.faq-q {
  width: 100%; background: transparent; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 4px; text-align: left; color: var(--cream);
  font-family: var(--font-display); font-style: italic; font-size: 21px;
}
.faq-q .plus { flex: 0 0 auto; width: 18px; height: 18px; position: relative; color: var(--gold); }
.faq-q .plus::before, .faq-q .plus::after { content: ""; position: absolute; background: currentColor; transition: transform var(--dur-base) var(--ease-soft); }
.faq-q .plus::before { left: 0; right: 0; top: 8px; height: 1.5px; }
.faq-q .plus::after { top: 0; bottom: 0; left: 8px; width: 1.5px; }
.faq-item.open .plus::after { transform: scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height var(--dur-slow) var(--ease-soft); }
.faq-a-inner { padding: 0 4px 24px; color: var(--text-2); font-size: 16px; line-height: 1.65; max-width: 680px; }
.faq-a-inner a { color: var(--gold); }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer { padding: 60px 0 72px; border-top: 1px solid var(--gold-deep); }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer .mk { font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 28px; color: var(--gold); }
.footer .mk .dot { color: var(--gold); }
.footer .sub { margin-top: 10px; color: var(--text-2); font-size: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; text-align: right; }
.footer-links a, .footer-links span { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-mid); text-decoration: none; }
.footer-links a:hover { color: var(--gold); }
.footer-row { display: flex; gap: 18px; justify-content: flex-end; flex-wrap: wrap; }
.footer .legal { margin-top: 8px; color: var(--gold-dim); }
@media (max-width: 600px) {
  .footer-inner, .footer-links { text-align: left; align-items: flex-start; }
  .footer-links { text-align: left; }
  .footer-row { justify-content: flex-start; }
}

/* =====================================================================
   LEGAL PAGES (privacy / terms)
   ===================================================================== */
.legal-page { max-width: 720px; margin: 0 auto; padding: 80px 40px 100px; }
.legal-page h1 { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 46px; color: var(--cream); margin: 0; }
.legal-page .updated { font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-dim); margin: 16px 0 0; }
.legal-page h2 { font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 24px; color: var(--gold); margin: 44px 0 12px; }
.legal-page p, .legal-page li { color: var(--text-2); font-size: 16px; line-height: 1.7; }
.legal-page ul { padding-left: 20px; }
.legal-page li { margin: 6px 0; }
.legal-page a { color: var(--gold); }
.legal-back { display: inline-block; margin-top: 50px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-mid); text-decoration: none; }
.legal-back:hover { color: var(--gold); }
