/* ---- Fonts — pairing to match the logo's script wordmark ---- */
@import url('https://fonts.googleapis.com/css2?family=Allura&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Figtree:wght@400;500;600;700&display=swap');

/* ---- Theme tokens: pastel logo gradient + warm gold + slate lavender ---- */
:root {
  /* Gradient canvas */
  --grad-lilac: #e3c4f0;
  --grad-blue:  #c8d4ee;
  --grad-mint:  #c4e8d4;
  --grad-pink:  #f0d4e4;

  --bg: #f7f2ee;              /* warm cream paper */
  --bg-soft: #f0e8e0;
  --ink: #2a1f36;             /* deep aubergine ink (matches logo outlines) */
  --ink-soft: #5a4a68;
  --ink-dim: #8a7a98;
  --paper-edge: rgba(42, 31, 54, 0.12);

  --gold: #c9a95f;            /* logo gold */
  --gold-deep: #8a6e30;
  --gold-light: #e8cb88;

  --slate: #8a8aa8;           /* logo grey dragon */
  --slate-deep: #5a5a78;

  --plum: #8a5aa8;            /* playful accent plum */
  --plum-deep: #5a2a78;

  --mint: #6ab894;
  --mint-deep: #2e8a64;

  --card-bg: #fffbf5;
  --card-shadow:
    0 1px 0 rgba(255,255,255,0.7) inset,
    0 2px 0 rgba(42,31,54,0.04),
    0 16px 40px rgba(42,31,54,0.10),
    0 0 0 1px rgba(42,31,54,0.08);

  --display: "Cormorant Garamond", Georgia, serif;
  --script:  "Allura", "Cormorant Garamond", cursive;
  --sans:    "Figtree", system-ui, sans-serif;
}

/* ---- Base ---- */
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body {
  min-height: 100vh;
  background: #ffffff;
}
/* Vibrant geometric pattern at low opacity = pastel; matches the original logo background exactly */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url('bg-vibrant.png') center / cover no-repeat;
  opacity: 0.30;
  pointer-events: none;
}
a { color: inherit; }

/* subtle paper grain */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.25) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(42,31,54,0.04) 0%, transparent 40%);
  mix-blend-mode: soft-light;
}

/* ---- Layout ---- */
.page {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 36px 80px;
  z-index: 2;
}

/* ---- Hero ---- */
.hero {
  padding: 72px 0 48px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* HD wordmark image with its built-in white halo */
.hero-mark {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto 18px;
  padding: 14px 48px;
}
.hero-wordmark-img {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(255,255,255,0.7)) drop-shadow(0 4px 10px rgba(42,31,54,0.12));
}

/* Filigree corners in the hero block */
.hero-filigree {
  position: absolute;
  width: 110px;
  height: auto;
  opacity: 0.75;
  pointer-events: none;
  filter: drop-shadow(0 2px 6px rgba(255,255,255,0.8));
}
.hero-filigree.tl { top: 20px; left: 50%; transform: translateX(-300px); }
.hero-filigree.br { bottom: 70px; left: 50%; transform: translateX(190px) rotate(180deg); }

/* Floating decorative dragons scattered through the page */
.floating-dragon {
  position: absolute;
  width: 120px;
  height: auto;
  opacity: 0.9;
  pointer-events: none;
  filter: drop-shadow(0 6px 14px rgba(42,31,54,0.2));
  z-index: 1;
}
.hero .tagline {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(18px, 1.9vw, 24px);
  color: var(--ink-soft);
  margin: 8px auto 18px;
  max-width: 600px;
  line-height: 1.45;
  text-wrap: pretty;
}
.hero .tagline strong {
  font-style: normal;
  font-weight: 500;
  color: var(--plum-deep);
  font-family: var(--display);
}
.hero .byline {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate-deep);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 10px;
}
.hero .byline .sep { color: var(--gold); }

/* Decorative divider — echoes the logo's filigree */
.flourish {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 30px 0 28px;
  color: var(--gold);
}
.flourish::before, .flourish::after {
  content: "";
  flex: 1;
  max-width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
}
.flourish-glyph {
  font-family: var(--script);
  font-size: 28px;
  color: var(--gold-deep);
  line-height: 1;
}

/* ---- Section heading ---- */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  margin: 8px 0 18px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(32px, 3.8vw, 48px);
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.section-head h2 em {
  font-family: var(--script);
  font-weight: 400;
  color: var(--plum);
  font-style: normal;
  font-size: 1.3em;
  margin: 0 0.04em;
  vertical-align: -0.08em;
}
.section-head .count {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* ---- Filter chips ---- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 28px;
  align-items: center;
  padding: 10px 14px;
  background: rgba(255, 251, 245, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 4px 20px rgba(42,31,54,0.06);
}
.filter-chip {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 7px 14px;
  background: transparent;
  border: none;
  color: var(--ink-soft);
  cursor: pointer;
  border-radius: 999px;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.filter-chip:hover {
  background: rgba(138, 90, 168, 0.08);
  color: var(--plum-deep);
}
.filter-chip.active {
  background: var(--ink);
  color: #f0e8d4;
  box-shadow: 0 2px 8px rgba(42,31,54,0.25);
}
.filter-chip.active .chip-count { color: var(--gold-light); }
.filter-chip .chip-count { opacity: 0.55; margin-left: 3px; font-weight: 400; }
.filter-label {
  font-family: var(--display);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-dim);
  padding: 0 10px 0 6px;
}

/* ---- Hoard grid ---- */
.hoard {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}
.hoard-card {
  flex: 0 0 calc(33.333% - 12px);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 10px;
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
  min-height: 380px;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
}
.hoard-card.wide    { flex: 0 0 calc(50% - 9px);     min-height: 380px; }
.hoard-card.feature { flex: 0 0 calc(66.666% - 6px); min-height: 460px; }
.hoard-card.tall    { flex: 0 0 calc(33.333% - 12px); min-height: 480px; }

.hoard-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.8) inset,
    0 4px 0 rgba(42,31,54,0.05),
    0 32px 70px rgba(138, 90, 168, 0.25),
    0 0 0 1px var(--gold);
}
.hoard-card:hover .card-bg img,
.hoard-card:hover .card-bg .placeholder-screenshot { transform: scale(1.04); }

.hoard-card.hidden {
  opacity: 0.32;
  filter: saturate(0.4);
  pointer-events: none;
  transform: scale(0.98);
}

/* Screenshot area — fixed pixel heights so real images don't blow up the card */
.card-bg {
  position: relative;
  flex: 0 0 200px;
  height: 200px;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
  border-bottom: 1px solid var(--paper-edge);
}
.hoard-card.feature .card-bg { flex: 0 0 240px; height: 240px; }
.hoard-card.tall    .card-bg { flex: 0 0 220px; height: 220px; }
.card-bg img, .card-bg .placeholder-screenshot {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Blur-behind: blurred cover fill + sharp contained image on top */
.card-img-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.card-img-blur {
  position: absolute;
  inset: -8%;
  width: 116%; height: 116%;
  object-fit: cover;
  filter: blur(18px) brightness(0.72) saturate(1.1);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.card-img-main {
  position: relative;
  z-index: 1;
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hoard-card:hover .card-img-blur,
.hoard-card:hover .card-img-main { transform: scale(1.04); }

.placeholder-screenshot {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.placeholder-label {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.9);
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px dashed rgba(255,255,255,0.5);
  background: rgba(0,0,0,0.22);
  border-radius: 999px;
  backdrop-filter: blur(3px);
}

/* Corner ornaments on card (filigree-style) */
.card-corner {
  position: absolute;
  width: 30px; height: 30px;
  pointer-events: none;
  color: var(--gold);
  opacity: 0.8;
  z-index: 3;
}
.card-corner.tl { top: 8px; left: 8px; }
.card-corner.tr { top: 8px; right: 8px; transform: scaleX(-1); }

/* Status badge over the image */
.status {
  position: absolute;
  top: 10px; right: 10px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 251, 245, 0.92);
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 3;
}
.status-live     { color: var(--mint-deep); }
.status-wip      { color: var(--gold-deep); }
.status-finished { color: var(--slate-deep); }

.corner-num {
  position: absolute;
  top: 10px; left: 10px;
  font-family: var(--script);
  font-size: 22px;
  color: var(--gold-light);
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
  line-height: 1;
  z-index: 3;
}

/* Card body — ink on cream */
.card-body {
  padding: 16px 18px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}
.card-tag {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 3px 8px;
  background: rgba(138, 90, 168, 0.08);
  color: var(--plum-deep);
  border-radius: 999px;
}
.card-tag + .card-tag { margin-left: 0; }

.card-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: -0.005em;
  margin: 2px 0 2px;
  color: var(--ink);
}
.hoard-card.feature .card-title { font-size: 34px; }
.hoard-card.tall .card-title    { font-size: 28px; }
.card-title em {
  font-family: var(--script);
  font-weight: 400;
  font-style: normal;
  color: var(--plum);
  font-size: 1.25em;
  vertical-align: -0.05em;
  margin: 0 0.04em;
}
.card-subtitle {
  font-family: var(--display);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0 0 10px;
  line-height: 1.3;
}
.card-links {
  display: flex;
  gap: 12px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--paper-edge);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  align-items: center;
}
.card-links .link {
  color: var(--plum-deep);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.card-links .link.muted { color: var(--ink-dim); }
.card-links .ml-auto { margin-left: auto; font-family: var(--script); font-weight: 400; font-size: 18px; color: var(--gold-deep); letter-spacing: 0; text-transform: none; }
.card-links .arrow { transition: transform 0.2s; }
.hoard-card:hover .card-links .link .arrow { transform: translate(2px, -2px); }

/* ---- Modal ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(42, 31, 54, 0.55);
  backdrop-filter: blur(10px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  animation: fadeIn 0.25s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--card-bg);
  max-width: 760px;
  width: 100%;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  border-radius: 12px;
  box-shadow: 0 40px 120px rgba(42,31,54,0.4), 0 0 0 1px var(--gold);
  position: relative;
  animation: rise 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes rise { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  background: rgba(255, 251, 245, 0.92);
  backdrop-filter: blur(4px);
  border: 1px solid var(--paper-edge);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.22em;
  padding: 7px 12px;
  cursor: pointer;
  text-transform: uppercase;
  border-radius: 999px;
  z-index: 2;
}
.modal-close:hover { color: var(--plum-deep); border-color: var(--plum); }

.modal-hero {
  position: relative;
  height: 280px;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  border-bottom: 1px solid var(--paper-edge);
}
.modal-hero img, .modal-hero .placeholder-screenshot {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}

/* Carousel */
.carousel {
  position: relative;
  width: 100%; height: 100%;
}
.carousel-img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}
.carousel-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(42,31,54,0.55);
  border: none;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  transition: background 0.15s;
  display: flex; align-items: center; justify-content: center;
}
.carousel-btn:hover { background: rgba(42,31,54,0.8); }
.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }
.carousel-dots {
  position: absolute;
  bottom: 8px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 5px;
  z-index: 2;
}
.carousel-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s;
}
.carousel-dot.active { background: #fff; }

.modal-body { padding: 28px 40px 40px; }
.modal-tags {
  display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap;
}
.modal h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 40px;
  letter-spacing: -0.01em;
  line-height: 1;
  margin: 6px 0 4px;
  color: var(--ink);
}
.modal h3 em {
  font-family: var(--script);
  font-style: normal;
  font-weight: 400;
  color: var(--plum);
  font-size: 1.25em;
}
.modal .modal-sub {
  font-family: var(--display);
  font-style: italic;
  font-size: 20px;
  color: var(--plum-deep);
  margin: 0 0 20px;
}
.modal p.body {
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 24px;
  max-width: 58ch;
  text-wrap: pretty;
}
.modal-meta {
  display: flex; gap: 14px; align-items: center; margin-bottom: 16px;
  font-family: var(--sans); font-weight: 600;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-dim);
}
.modal-meta .dot { color: var(--gold); }
.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 32px;
  padding-top: 22px;
  border-top: 1px solid var(--paper-edge);
}
.modal-field {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.modal-field .val {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: 17px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  margin-top: 5px;
  line-height: 1.3;
}
.modal-field .val a {
  color: var(--plum-deep);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
}
.modal-field .val a:hover { color: var(--plum); }

/* ---- About / Footer ---- */
.about {
  margin-top: 60px;
  padding: 44px 40px;
  background: rgba(255, 251, 245, 0.75);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 20px 60px rgba(42,31,54,0.08);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  overflow: visible;
}
.about h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 40px;
  margin: 0;
  line-height: 0.95;
  color: var(--ink);
}
.about h2 em {
  font-family: var(--script);
  font-style: normal;
  font-weight: 400;
  color: var(--plum);
  font-size: 1.35em;
  margin-left: 0.05em;
}
.about p {
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  text-wrap: pretty;
  margin: 0 0 16px;
}
.about .sig {
  font-family: var(--script);
  font-size: 32px;
  color: var(--plum);
  margin-top: 22px;
  line-height: 1;
}

footer {
  padding: 36px 0 0;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
footer em {
  font-family: var(--script);
  font-style: normal;
  text-transform: none;
  letter-spacing: 0;
  font-size: 22px;
  color: var(--gold-deep);
}

/* ---- Cursor ember — gold/lilac sparkle instead of fire ---- */
.ember {
  position: fixed;
  width: 6px; height: 6px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1000;
  background: radial-gradient(circle, #fff4cc 0%, #e8cb88 40%, #c9a95f 70%, transparent 75%);
  mix-blend-mode: normal;
  animation: emberFade 1100ms ease-out forwards;
  box-shadow: 0 0 8px rgba(232, 203, 136, 0.6);
}
@keyframes emberFade {
  0%   { transform: scale(1) translateY(0); opacity: 0.9; }
  100% { transform: scale(0.2) translateY(-24px); opacity: 0; }
}

/* ---- Ko-fi support link, top right ---- */
.kofi-link {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 251, 245, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(42,31,54,0.1), 0 0 0 1px var(--paper-edge);
  color: var(--ink);
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.03em;
  transition: all 0.2s ease;
}
.kofi-link:hover {
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(255, 94, 91, 0.22), 0 0 0 1px #ff5e5b;
  color: #c53030;
}
.kofi-cup {
  font-size: 16px;
  transform: translateY(-0.5px);
  filter: saturate(1.1);
}
.kofi-text strong {
  font-family: var(--display);
  font-weight: 600;
  font-style: italic;
  color: #ff5e5b;
  margin-left: 2px;
}
.kofi-link:hover .kofi-text strong { color: #c53030; }

/* ---- Tweaks panel ---- */
.tweaks-panel {
  position: fixed;
  bottom: 24px; right: 24px;
  background: rgba(255, 251, 245, 0.96);
  backdrop-filter: blur(10px);
  padding: 16px 18px;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(42,31,54,0.2), 0 0 0 1px var(--gold);
  z-index: 200;
  min-width: 220px;
}
.tweaks-panel h4 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  color: var(--ink);
  line-height: 1;
}
.tweaks-panel h4 em {
  font-family: var(--script);
  font-style: normal;
  color: var(--plum);
  font-size: 1.2em;
}
.tweak-row { margin-bottom: 10px; }
.tweak-row label {
  display: block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 6px;
}
.tweak-buttons { display: flex; gap: 6px; }
.tweak-btn {
  flex: 1;
  padding: 6px 8px;
  background: transparent;
  border: 1px solid var(--paper-edge);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 6px;
}
.tweak-btn.active {
  background: var(--ink);
  color: var(--gold-light);
  border-color: var(--ink);
}
.tweak-btn:not(.active):hover { border-color: var(--plum); color: var(--plum-deep); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .page { padding: 0 20px 60px; }
  .hoard-card, .hoard-card.wide, .hoard-card.feature, .hoard-card.tall { flex: 0 0 100%; min-height: 320px; }
  .card-bg, .hoard-card.feature .card-bg, .hoard-card.tall .card-bg { flex: 0 0 180px; height: 180px; }
  .about { grid-template-columns: 1fr; gap: 16px; padding: 28px 22px; }
  .modal-body { padding: 20px 22px 28px; }
  .modal-grid { grid-template-columns: 1fr; }
  .hero-mark { padding: 10px 20px; }
  .hero-filigree { width: 60px; }
  .hero-filigree.tl { transform: translateX(-140px); }
  .hero-filigree.br { transform: translateX(80px); }
  .floating-dragon { display: none; }
  .hero-dragon { display: block !important; width: 130px !important; right: 2% !important; }
}
@media (min-width: 900px) and (max-width: 1200px) {
  .hoard-card          { flex: 0 0 calc(50% - 9px); }
  .hoard-card.wide     { flex: 0 0 100%; }
  .hoard-card.feature  { flex: 0 0 100%; }
  .hoard-card.tall     { flex: 0 0 calc(50% - 9px); }
}
