/* ==========================================================================
   GALERA — premium gallery design system
   ========================================================================== */

:root {
  --bg: #0e0d12;
  --bg-2: #131118;
  --surface: #191722;
  --surface-2: #211e2b;
  --ink: #ece9f2;
  --ink-dim: #aca6c0;
  --ink-faint: #77728e;
  --line: rgba(236, 233, 242, 0.14);
  --line-soft: rgba(236, 233, 242, 0.07);
  /* accent (violet primary + indigo second) — variable names kept as --gold*
     so every existing reference recolours in one place */
  --gold: #b491e6;
  --gold-bright: #c8abf0;
  --gold-dim: rgba(180, 145, 230, 0.35);
  --accent-2: #8ea2ea;
  --accent-grad: linear-gradient(120deg, #c8abf0 0%, #b491e6 45%, #8ea2ea 100%);
  --on-accent: #17112a;
  --red: #e0687e;
  --serif: "Fraunces", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 1240px;
  --pad: clamp(20px, 4vw, 48px);
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--on-accent); }

body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(180, 145, 230, 0.07), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(142, 162, 234, 0.055), transparent 60%);
}
body > * { position: relative; z-index: 1; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--gold); color: var(--on-accent); padding: 10px 18px; font-weight: 700;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- typography ---------- */
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 420; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.6rem, 6.5vw, 5.2rem); line-height: 1.04; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.12; }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.25; }
.italic { font-style: italic; }
.gold { color: var(--gold); }
.dim { color: var(--ink-dim); }
.eyebrow {
  font-family: var(--sans); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold);
  display: flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--gold-dim); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-dim); line-height: 1.7; max-width: 58ch; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { padding: clamp(64px, 9vw, 128px) 0; }
.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 18px 40px; margin-bottom: clamp(30px, 5vw, 56px);
}
.section-head .stack { display: grid; gap: 16px; }
.hr { border: 0; border-top: 1px solid var(--line-soft); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border: 1px solid var(--line);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink); background: transparent; border-radius: 999px;
  transition: all 0.35s var(--ease); white-space: nowrap;
}
.btn:hover { border-color: var(--gold); color: var(--gold-bright); transform: translateY(-1px); }
.btn-solid { background: var(--accent-grad); border-color: transparent; color: var(--on-accent); }
.btn-solid:hover { background: var(--accent-grad); border-color: transparent; color: var(--on-accent); filter: brightness(1.07); }
.btn-sm { padding: 10px 20px; font-size: 0.7rem; }
.btn-wide { width: 100%; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }
/* long full-width labels (e.g. "Create my free membership") need tighter
   tracking and padding to sit comfortably in the pill on narrow phones */
@media (max-width: 600px) {
  .btn-wide { letter-spacing: 0.1em; padding-left: 16px; padding-right: 16px; }
}

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); transition: gap 0.3s var(--ease);
}
.link-arrow::after { content: "\2192"; font-size: 1rem; transition: transform 0.3s var(--ease); }
.link-arrow:hover::after { transform: translateX(5px); }

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s, transform 0.45s var(--ease);
  border-bottom: 1px solid transparent;
  will-change: transform;
}
.site-header.scrolled {
  background: rgba(14, 13, 18, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
}
/* slide up out of view when scrolling down; slides back on scroll-up */
.site-header.hidden { transform: translateY(-100%); }
.header-inner {
  width: 100%; max-width: var(--wrap); margin: 0 auto;
  padding: 0 var(--pad);
  display: flex; align-items: center; gap: 26px;
}
.brand {
  font-family: var(--serif); font-size: 1.5rem; letter-spacing: 0.34em;
  font-weight: 500; margin-right: 8px; color: var(--ink);
}
.brand em {
  font-style: normal;
  background: var(--accent-grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.main-nav { display: flex; gap: 4px; margin-right: auto; }
.main-nav a {
  padding: 8px 14px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-dim); border-radius: 999px;
  transition: color 0.25s;
  position: relative;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a.active { color: var(--gold); }
.main-nav a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 1px; background: var(--gold);
}
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-dim); transition: all 0.3s var(--ease); flex: none;
}
.icon-btn:hover { color: var(--gold); border-color: var(--gold-dim); }
.member-chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 14px 6px 7px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 0.78rem; font-weight: 600; color: var(--ink-dim);
  transition: all 0.3s;
}
.member-chip:hover { border-color: var(--gold-dim); color: var(--ink); }
.member-chip .avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--gold); color: var(--on-accent);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 0.85rem;
}
.nav-toggle { display: none; }

/* mobile nav */
.mobile-nav {
  position: fixed; inset: 0; z-index: 200; background: rgba(14, 13, 18, 0.97);
  backdrop-filter: blur(10px);
  display: flex; flex-direction: column; justify-content: center; padding: var(--pad);
  opacity: 0; pointer-events: none; transition: opacity 0.35s;
}
.mobile-nav.open { opacity: 1; pointer-events: auto; }
.mobile-nav a {
  font-family: var(--serif); font-size: clamp(2rem, 8vw, 3rem); padding: 12px 0;
  color: var(--ink); border-bottom: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; align-items: baseline;
}
.mobile-nav a small { font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.3em; color: var(--ink-faint); text-transform: uppercase; }
.mobile-nav a:hover, .mobile-nav a.active { color: var(--gold); }
.mobile-nav .close-x { position: absolute; top: 18px; right: 18px; }

@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-inner { justify-content: space-between; }
  .brand { margin-right: auto; }
  .hide-mobile { display: none !important; }
}

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  position: relative; overflow: hidden;
  padding-top: var(--header-h);
}
.hero-art {
  position: absolute; inset: 0; z-index: 0;
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-art::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(14,13,18,0.55) 0%, rgba(14,13,18,0.25) 40%, rgba(14,13,18,0.92) 88%),
    linear-gradient(90deg, rgba(14,13,18,0.55) 0%, transparent 55%);
}
.hero-content { position: relative; z-index: 1; padding-bottom: clamp(48px, 7vw, 96px); display: grid; gap: 26px; }
.hero-content h1 { max-width: 16ch; }
.hero-content h1 .italic { color: var(--gold-bright); }
.hero-content h1 .h1-sub {
  display: inline-block; margin-top: 0.02em;
  font-size: 0.66em; letter-spacing: -0.015em; color: var(--ink);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-meta {
  position: absolute; z-index: 1; right: var(--pad); bottom: clamp(48px, 7vw, 96px);
  text-align: right; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-dim); display: grid; gap: 4px;
}
.hero-meta strong { color: var(--ink); font-weight: 600; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; width: fit-content;
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px;
  font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-dim);
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.scroll-hint {
  position: absolute; z-index: 1; left: 50%; bottom: 14px; transform: translateX(-50%);
  width: 1px; height: 52px; overflow: hidden; background: var(--line-soft);
}
.scroll-hint::after {
  content: ""; position: absolute; left: 0; top: -50%; width: 100%; height: 50%;
  background: var(--gold); animation: drip 2.2s var(--ease) infinite;
}
@keyframes drip { 0% { top: -50%; } 100% { top: 110%; } }
@media (max-width: 600px) {
  .hero-content { gap: 18px; padding-bottom: clamp(40px, 12vw, 64px); }
  .hero-content h1 { font-size: clamp(2rem, 9vw, 2.6rem); max-width: 18ch; }
  .hero-content h1 .h1-sub { font-size: 0.72em; }
  .hero-content .lede { font-size: 0.98rem; }
}

/* ---------- ticker ---------- */
.ticker {
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
  overflow: hidden; padding: 18px 0; white-space: nowrap; user-select: none;
  background: var(--bg-2);
}
.ticker-track {
  display: flex; width: max-content;
  animation: ticker var(--ticker-dur, 46s) linear infinite;
  will-change: transform; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}
.ticker-group { display: flex; flex: 0 0 auto; }
@media (hover: hover) { .ticker:hover .ticker-track { animation-play-state: paused; } }
.ticker span {
  font-family: var(--serif); font-size: clamp(1rem, 1.8vw, 1.35rem);
  color: var(--ink-dim); padding: 0 28px; display: inline-flex; align-items: center; gap: 56px;
}
.ticker span::after { content: "\25C7"; color: var(--gold); font-size: 0.7em; }
/* Animate a concrete pixel length (set from JS) rather than a percentage —
   percentage transforms re-rasterize per frame on mobile and shimmer/shake.
   Falls back to -50% if JS hasn't measured yet. */
@keyframes ticker {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(calc(var(--ticker-w, 50%) * -1), 0, 0); }
}

/* ---------- artwork cards ---------- */
.art-card { display: block; position: relative; break-inside: avoid; }
.art-frame {
  position: relative; overflow: hidden; background: var(--surface);
  border: 1px solid var(--line-soft);
}
.art-frame img { width: 100%; height: auto; display: block; transition: transform 1s var(--ease); }
.art-card:hover .art-frame img { transform: scale(1.045); }
.art-frame::after {
  content: ""; position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03), inset 0 -60px 80px -50px rgba(0,0,0,0.55);
  pointer-events: none;
}
.badge-premium {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-bright); background: rgba(14, 13, 18, 0.65); backdrop-filter: blur(6px);
  border: 1px solid var(--gold-dim); border-radius: 999px; padding: 5px 12px;
  pointer-events: none;
}
.art-hover {
  position: absolute; inset: auto 0 0 0; padding: 18px;
  background: linear-gradient(transparent, rgba(9, 8, 16, 0.85));
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  opacity: 0; transform: translateY(8px); transition: all 0.4s var(--ease);
}
.art-card:hover .art-hover, .art-card:focus-visible .art-hover { opacity: 1; transform: none; }
.art-hover .view-tag {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-bright);
}
.art-caption { padding: 14px 2px 4px; display: flex; justify-content: space-between; gap: 14px; align-items: baseline; }
.art-caption .t { font-family: var(--serif); font-size: 1.06rem; line-height: 1.3; }
.art-caption .a { font-size: 0.8rem; color: var(--ink-faint); margin-top: 2px; }
.art-caption .p { font-size: 0.82rem; color: var(--gold); white-space: nowrap; font-weight: 600; }

.fav-btn {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(14, 13, 18, 0.55); backdrop-filter: blur(6px);
  border: 1px solid var(--line); color: var(--ink-dim);
  display: inline-flex; align-items: center; justify-content: center;
  opacity: 0; transition: all 0.3s var(--ease); font-size: 1rem;
}
.art-card:hover .fav-btn, .fav-btn.on { opacity: 1; }
.fav-btn:hover { color: var(--gold-bright); border-color: var(--gold-dim); }
.fav-btn.on { color: var(--red); border-color: rgba(224, 104, 126, 0.5); }

/* featured row (home) — filmstrip: one shared height, width follows each
   image via its inline aspect-ratio, so landscapes get room and portraits
   stay slim with no dead space */
.feat-row {
  display: flex; align-items: flex-start; gap: clamp(18px, 2.5vw, 32px);
  overflow-x: auto; overflow-y: hidden; padding-bottom: 28px; margin-bottom: -18px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.feat-row::-webkit-scrollbar { width: 0; height: 0; display: none; }
.feat-row > * { flex: none; }
.feat-row .art-card { display: flex; flex-direction: column; }
.feat-row .art-frame {
  height: clamp(240px, 30vw, 380px); width: auto;
  max-width: 84vw; aspect-ratio: 4 / 3; /* overridden inline per image */
}
.feat-row .art-frame img { width: 100%; height: 100%; object-fit: cover; }
.feat-row .art-caption { width: 0; min-width: 100%; }
.feat-row .art-caption .t {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.feat-num {
  font-family: var(--serif); font-style: italic; color: var(--ink-faint);
  font-size: 0.95rem; margin-bottom: 10px; display: block;
}

/* ---------- masonry ---------- */
.masonry { columns: 3 300px; column-gap: clamp(18px, 2.2vw, 30px); }
.masonry .art-card { margin-bottom: clamp(26px, 3vw, 42px); }

/* ---------- gallery layout ---------- */
.gallery-layout { display: grid; grid-template-columns: 264px 1fr; gap: clamp(28px, 4vw, 60px); align-items: start; }
.facets { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 8px; }
.facet-group { border-top: 1px solid var(--line-soft); padding: 4px 0; }
.facet-group summary {
  list-style: none; cursor: pointer; padding: 14px 2px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase;
}
.facet-group summary::-webkit-details-marker { display: none; }
.facet-group summary::after { content: "+"; color: var(--gold); font-family: var(--serif); font-size: 1.1rem; transition: transform 0.3s; }
.facet-group[open] summary::after { transform: rotate(45deg); }
.facet-opts { display: grid; gap: 2px; padding: 2px 0 16px; }
.facet-opt {
  display: flex; align-items: center; gap: 11px; padding: 7px 2px;
  font-size: 0.92rem; color: var(--ink-dim); cursor: pointer; border-radius: 6px;
  transition: color 0.2s;
}
.facet-opt:hover { color: var(--ink); }
.facet-opt input { position: absolute; opacity: 0; pointer-events: none; }
.facet-opt .box {
  width: 16px; height: 16px; border: 1px solid var(--line); flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.25s; font-size: 0.65rem; color: var(--on-accent);
}
.facet-opt input:checked ~ .box { background: var(--gold); border-color: var(--gold); }
.facet-opt input:checked ~ .box::after { content: "\2713"; }
.facet-opt input:focus-visible ~ .box { outline: 2px solid var(--gold); outline-offset: 2px; }
.facet-opt .count { margin-left: auto; font-size: 0.75rem; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.facet-opt.zero { opacity: 0.35; }

.gallery-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px;
  padding-bottom: 22px; border-bottom: 1px solid var(--line-soft); margin-bottom: 30px;
}
.result-count { font-size: 0.9rem; color: var(--ink-dim); margin-right: auto; }
.result-count strong { color: var(--ink); }
.sort-select {
  background: transparent; border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 38px 9px 18px; font-size: 0.82rem; color: var(--ink); cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23b491e6' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.sort-select:focus { outline: none; border-color: var(--gold-dim); }
.sort-select option { background: var(--surface); color: var(--ink); }
.filters-open-btn { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.chips:empty { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid var(--gold-dim); border-radius: 999px; padding: 7px 14px;
  font-size: 0.8rem; color: var(--gold-bright); background: rgba(180, 145, 230, 0.07);
  cursor: pointer; transition: all 0.25s;
}
.chip:hover { border-color: var(--gold); }
.chip .x { font-size: 0.9rem; line-height: 1; }
.chip.clear-all { border-style: dashed; color: var(--ink-dim); background: transparent; }

.empty-state { text-align: center; padding: 80px 20px; color: var(--ink-dim); display: grid; gap: 16px; justify-items: center; }
.empty-state .big { font-family: var(--serif); font-size: 1.6rem; color: var(--ink); }

@media (max-width: 900px) {
  .gallery-layout { grid-template-columns: 1fr; }
  .facets {
    position: fixed; inset: 0; z-index: 210; background: var(--bg);
    padding: 24px var(--pad) 110px; overflow-y: auto; display: none;
  }
  .facets.open { display: grid; align-content: start; }
  .facets-footer {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 211;
    padding: 16px var(--pad); background: var(--bg-2); border-top: 1px solid var(--line);
    display: none; gap: 12px;
  }
  .facets.open ~ .facets-footer { display: flex; }
  .filters-open-btn { display: inline-flex; }
}
.facets-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 8px; }
.facets-head h3 { font-size: 1.3rem; }
@media (min-width: 901px) { .facets-head .close-x, .facets-footer { display: none; } }

/* ---------- lightbox / modal ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 230; display: none;
}
.lightbox.open { display: block; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(7, 6, 14, 0.9); backdrop-filter: blur(8px); }
.lightbox-panel {
  position: relative; z-index: 1; height: 100%; overflow-y: auto;
  display: grid; align-items: center; justify-items: center; padding: clamp(14px, 3vw, 44px);
}
.lightbox-card {
  background: var(--bg-2); border: 1px solid var(--line-soft);
  max-width: 1180px; width: 100%;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, 1fr);
  animation: lbIn 0.5s var(--ease);
}
@keyframes lbIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.lightbox-art { background: #0a0912; display: flex; align-items: center; justify-content: center; padding: clamp(18px, 3.5vw, 52px); }
.lightbox-art img { max-height: 76vh; width: auto; max-width: 100%; height: auto; box-shadow: 0 30px 80px rgba(0,0,0,0.6); }
.lightbox-info { padding: clamp(24px, 3vw, 44px); display: grid; gap: 20px; align-content: start; }
.lightbox-info .artist-link { color: var(--gold); font-size: 0.9rem; letter-spacing: 0.06em; }
.lightbox-info .artist-link:hover { color: var(--gold-bright); }
.meta-table { display: grid; gap: 0; border-top: 1px solid var(--line-soft); }
.meta-table div {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: 0.88rem;
}
.meta-table dt { color: var(--ink-faint); }
.meta-table dd { text-align: right; }
.lightbox-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.lightbox-close {
  position: fixed; top: 18px; right: 18px; z-index: 2;
  background: rgba(14, 13, 18, 0.6);
}
.lightbox-nav {
  position: fixed; top: 50%; transform: translateY(-50%); z-index: 2;
  background: rgba(14, 13, 18, 0.6);
}
.lightbox-nav.prev { left: 14px; }
.lightbox-nav.next { right: 14px; }
.related-strip { border-top: 1px solid var(--line-soft); padding-top: 18px; display: grid; gap: 12px; }
.related-strip .row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.related-thumb { border: 1px solid var(--line-soft); overflow: hidden; cursor: pointer; background: var(--surface); padding: 0; }
.related-thumb img { width: 100%; height: 80px; object-fit: cover; display: block; transition: transform 0.6s var(--ease); }
.related-thumb:hover img { transform: scale(1.07); }
@media (max-width: 860px) {
  .lightbox-card { grid-template-columns: 1fr; }
  .lightbox-art svg { max-height: 52vh; }
}

/* comments inside the artwork lightbox */
.lb-comments { border-top: 1px solid var(--line-soft); padding-top: 18px; display: grid; gap: 14px; }
.comment-list { display: grid; gap: 16px; }
.comment { display: grid; grid-template-columns: 34px 1fr; gap: 12px; }
.comment .avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  background: var(--surface-2); border: 1px solid var(--line);
  display: grid; place-content: center; font-family: var(--serif); color: var(--gold); font-size: 0.85rem;
}
.comment .c-head { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; }
.comment .c-head strong { font-size: 0.85rem; }
.comment .c-head time { font-size: 0.72rem; color: var(--ink-faint); }
.comment .c-del {
  margin-left: auto; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-faint); transition: color 0.25s;
}
.comment .c-del:hover { color: var(--red); }
.comment .c-body { color: var(--ink-dim); font-size: 0.9rem; margin-top: 3px; overflow-wrap: anywhere; }
.c-form { display: grid; gap: 10px; }
.c-form textarea {
  width: 100%; resize: vertical; min-height: 62px;
  background: var(--surface); border: 1px solid var(--line); padding: 12px;
  color: var(--ink); line-height: 1.55; font-size: 0.9rem;
}
.c-form textarea:focus { outline: none; border-color: var(--gold-dim); }
.c-form-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.c-form-row .dim { font-size: 0.74rem; }

/* catalog loading bar + failure overlay */
.load-bar {
  position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 2000;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold)); box-shadow: 0 0 8px var(--gold-dim);
}
.load-bar.go { width: 88%; transition: width 9s cubic-bezier(.1, .75, .2, 1); }
.load-bar.done { width: 100%; opacity: 0; transition: width .25s ease, opacity .4s ease .2s; }
@media (prefers-reduced-motion: reduce) { .load-bar { transition: none !important; } }

.load-error {
  position: fixed; inset: 0; z-index: 2100; padding: 24px;
  display: grid; place-items: center; background: rgba(8, 7, 10, 0.92);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.load-error-card {
  max-width: 440px; text-align: center; display: grid; gap: 14px; justify-items: center;
  background: var(--surface); border: 1px solid var(--line); padding: 40px 32px;
}
.load-error-card h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.load-error-card p { font-size: 0.92rem; }

/* per-upload visibility editor in the "Your uploads" strip */
.up-vis-row { padding: 8px 2px 2px; }
.up-vis-row select {
  width: 100%; background: var(--surface); border: 1px solid var(--line);
  color: var(--ink-dim); padding: 7px 10px; font-size: 0.78rem;
}
.up-vis-row select:focus { outline: none; border-color: var(--gold-dim); }

/* ---------- split sections ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.stat-row { display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 64px); }
.stat .n { font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3.4rem); color: var(--gold-bright); line-height: 1; }
.stat .l { font-size: 0.74rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-faint); margin-top: 8px; }

/* ---------- artist cards ---------- */
.artist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: clamp(20px, 2.5vw, 34px); }
.artist-card { display: block; }
.artist-card .art-frame img { aspect-ratio: 16 / 10; object-fit: cover; }
.artist-card .card-row { display: flex; align-items: center; gap: 14px; margin-top: -26px; position: relative; z-index: 2; padding: 0 16px; }
.artist-card .avatar-img {
  width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none;
  border: 2px solid var(--bg); box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}
.artist-card .name { font-family: var(--serif); font-size: 1.25rem; margin-top: 16px; }
.artist-card .sub { font-size: 0.8rem; color: var(--ink-faint); margin-top: 3px; display: flex; justify-content: space-between; gap: 10px; }
.artist-card .support-from { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-top: 10px; }

/* ---------- tiers ---------- */
.tier-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.tier-card {
  border: 1px solid var(--line-soft); background: var(--surface); padding: 26px;
  display: grid; gap: 14px; align-content: start; position: relative;
}
.tier-card.featured { border-color: var(--gold-dim); background: rgba(180, 145, 230, 0.05); }
.tier-card .tier-tag {
  position: absolute; top: -11px; left: 22px;
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  background: var(--gold); color: var(--on-accent); border-radius: 999px; padding: 4px 12px;
}
.tier-card h3 { font-size: 1.15rem; }
.tier-card .tier-price { font-family: var(--serif); font-size: 2rem; color: var(--gold-bright); }
.tier-card .tier-price small { font-size: 0.85rem; color: var(--ink-faint); font-family: var(--sans); }
.tier-card ul { list-style: none; display: grid; gap: 8px; }
.tier-card li { font-size: 0.87rem; color: var(--ink-dim); display: flex; gap: 10px; }
.tier-card li::before { content: "\2713"; color: var(--gold); flex: none; }

.avatar-lg { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; border: 3px solid var(--bg); box-shadow: 0 10px 34px rgba(0,0,0,0.55); }

.search-input {
  width: 100%; max-width: 420px;
  background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: 12px 2px; font-size: 1.05rem; color: var(--ink);
  transition: border-color 0.3s;
}
.search-input:focus { outline: none; border-color: var(--gold); }
.search-input::placeholder { color: var(--ink-faint); }

/* artist profile */
.profile-cover { position: relative; border: 1px solid var(--line-soft); overflow: hidden; }
.profile-cover img { width: 100%; height: clamp(220px, 36vw, 420px); object-fit: cover; display: block; }
.profile-cover::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(14, 13, 18, 0.65));
}
.profile-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 18px 26px;
  margin-top: -54px; position: relative; z-index: 2; padding: 0 clamp(8px, 2vw, 28px);
}
.profile-head .who { display: grid; gap: 4px; padding-bottom: 6px; }
.profile-head .who h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.05; }
.profile-head .who .sub { color: var(--ink-dim); font-size: 0.9rem; }
.profile-head .cta { margin-left: auto; padding-bottom: 10px; display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 720px) { .profile-head .cta { margin-left: 0; } }
.pull-quote {
  font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 2.1rem); font-style: italic;
  line-height: 1.4; color: var(--ink); max-width: 26ch;
}
.pull-quote::before { content: "\201C"; color: var(--gold); }
.pull-quote::after { content: "\201D"; color: var(--gold); }
@media (max-width: 860px) { .profile-hero { grid-template-columns: 1fr; } }

/* ---------- journal ---------- */
.journal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: clamp(22px, 3vw, 40px); }
.journal-card { display: grid; gap: 14px; align-content: start; }
.journal-card .kicker { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); }
.journal-card h3 { transition: color 0.3s; }
.journal-card:hover h3 { color: var(--gold-bright); }
.journal-card .meta { font-size: 0.78rem; color: var(--ink-faint); }
.journal-feature {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(26px, 4vw, 64px); align-items: center;
  margin-bottom: clamp(40px, 6vw, 80px);
}
@media (max-width: 860px) { .journal-feature { grid-template-columns: 1fr; } }

/* reader overlay */
.reader { position: fixed; inset: 0; z-index: 230; display: none; }
.reader.open { display: block; }
.reader-panel {
  position: relative; z-index: 1; height: 100%; overflow-y: auto;
  padding: clamp(20px, 4vw, 60px) var(--pad);
}
.reader-card {
  max-width: 720px; margin: 0 auto; background: var(--bg-2);
  border: 1px solid var(--line-soft); padding: clamp(28px, 5vw, 64px);
  display: grid; gap: 22px; animation: lbIn 0.5s var(--ease);
}
.reader-card .body p { color: var(--ink-dim); margin-bottom: 1.2em; font-size: 1.02rem; line-height: 1.8; }
.reader-card .body p:first-of-type::first-letter {
  font-family: var(--serif); font-size: 3.4em; float: left; line-height: 0.85;
  padding-right: 12px; color: var(--gold);
}

/* ---------- reviews ---------- */
.review-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(280px, 30vw, 400px);
  gap: 22px; overflow-x: auto; overflow-y: hidden; padding-bottom: 28px; margin-bottom: -22px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.review-rail::-webkit-scrollbar { width: 0; height: 0; display: none; }
.review-card {
  border: 1px solid var(--line-soft); background: var(--surface); padding: 28px;
  display: grid; gap: 18px; align-content: space-between;
}
.review-card .stars { color: var(--gold); letter-spacing: 4px; font-size: 0.85rem; }
.review-card .text { font-family: var(--serif); font-size: 1.05rem; line-height: 1.6; font-style: italic; color: var(--ink); }
.review-card .who { font-size: 0.8rem; color: var(--ink-faint); }
.review-card .who strong { color: var(--ink-dim); display: block; font-size: 0.88rem; }

/* ---------- community ---------- */
.locked-banner {
  border: 1px solid var(--gold-dim); background: rgba(180, 145, 230, 0.05);
  padding: clamp(24px, 4vw, 44px); display: grid; gap: 16px; justify-items: start;
}
.thread-list { display: grid; gap: 0; border-top: 1px solid var(--line-soft); }
.thread {
  display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; align-items: center;
  padding: 22px 4px; border-bottom: 1px solid var(--line-soft);
  cursor: pointer; transition: background 0.25s;
}
.thread:hover { background: rgba(236, 233, 242, 0.025); }
.thread .sec { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }
.thread h3 { font-size: 1.15rem; margin-top: 4px; }
.thread .prev { font-size: 0.88rem; color: var(--ink-faint); margin-top: 6px; max-width: 68ch; }
.thread .stats { text-align: right; font-size: 0.78rem; color: var(--ink-faint); display: grid; gap: 4px; white-space: nowrap; }
.thread .stats strong { color: var(--ink-dim); }
.pin-tag { display: inline-block; font-size: 0.62rem; letter-spacing: 0.2em; border: 1px solid var(--gold-dim); color: var(--gold); border-radius: 999px; padding: 2px 10px; margin-left: 10px; vertical-align: middle; text-transform: uppercase; }
.locked-veil { position: relative; }
.locked-veil .veiled { filter: blur(5px); opacity: 0.5; pointer-events: none; user-select: none; }
.locked-veil .veil-cta {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 18px;
  background: linear-gradient(180deg, transparent, rgba(14,13,18,0.75) 45%);
  padding: 20px;
}

.post { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--line-soft); }
.post .avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: var(--surface-2); border: 1px solid var(--line);
  display: grid; place-content: center; font-family: var(--serif); color: var(--gold);
}
.post .head { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; margin-bottom: 8px; }
.post .head strong { font-size: 0.95rem; }
.post .head time { font-size: 0.76rem; color: var(--ink-faint); }
.post .body { color: var(--ink-dim); font-size: 0.97rem; }
.post-actions { display: flex; gap: 16px; margin-top: 12px; }
.post-actions button { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); transition: color 0.25s; }
.post-actions button:hover { color: var(--gold); }
.post-actions button.on { color: var(--red); }

/* forum on mobile: stack each thread so the title gets full width and the
   stats become a tidy wrapping row beneath, instead of a cramped right column */
@media (max-width: 600px) {
  .thread { grid-template-columns: 1fr; gap: 10px; padding: 20px 2px; align-items: start; }
  .thread .stats {
    text-align: left; white-space: normal;
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px;
    font-size: 0.76rem;
  }
  .thread .stats span:last-child { flex-basis: 100%; }   /* author · time on its own line */
  .thread h3 { font-size: 1.08rem; }
  .thread .prev { font-size: 0.86rem; }
  .pin-tag { margin-left: 8px; }
  .post { gap: 14px; grid-template-columns: 38px 1fr; }
  .post .avatar { width: 38px; height: 38px; }
  .reader-card { padding: 24px 18px; }
}

.composer { display: grid; gap: 12px; padding-top: 26px; }
.composer textarea {
  width: 100%; min-height: 110px; resize: vertical;
  background: var(--surface); border: 1px solid var(--line); padding: 16px;
  color: var(--ink); line-height: 1.6;
}
.composer textarea:focus { outline: none; border-color: var(--gold-dim); }

.rules-list { display: grid; gap: 14px; counter-reset: rule; }
.rules-list li { list-style: none; display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: baseline; color: var(--ink-dim); }
.rules-list li::before {
  counter-increment: rule; content: "0" counter(rule);
  font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 1.2rem;
}

/* ---------- forms ---------- */
.form-card {
  max-width: 480px; margin: 0 auto; background: var(--bg-2);
  border: 1px solid var(--line-soft); padding: clamp(28px, 5vw, 52px);
  display: grid; gap: 22px; min-width: 0;
}
/* let every grid item inside the form shrink to the card width instead of
   forcing it wider via min-content. The explicit minmax(0,1fr) column stops
   auto tracks from sizing to the unwrapped error/hint text, which was
   overflowing the card on phones. */
.form-card > form, .form-card form > div, .field { min-width: 0; }
.form-card form > div, .field { grid-template-columns: minmax(0, 1fr); }
.field input, .field textarea, .field select { min-width: 0; max-width: 100%; }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-dim); }
.field input, .field textarea, .field select {
  background: var(--surface); border: 1px solid var(--line); padding: 14px 16px;
  color: var(--ink); transition: border-color 0.3s; width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold); }
.field .err { font-size: 0.78rem; color: #e88596; display: none; }
.field.invalid input, .field.invalid textarea { border-color: rgba(224, 104, 126, 0.7); }
.field.invalid .err { display: block; }
.field .hint { font-size: 0.78rem; color: var(--ink-faint); }
.check-row { display: flex; align-items: flex-start; gap: 11px; font-size: 0.88rem; color: var(--ink-dim); cursor: pointer; }
.check-row input { accent-color: var(--gold); margin-top: 4px; }
.form-divider { display: flex; align-items: center; gap: 16px; color: var(--ink-faint); font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; }
.form-divider::before, .form-divider::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }
.social-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.social-btn { min-width: 0; }
.social-btn svg { flex: none; }
.social-btn {
  border: 1px solid var(--line); padding: 12px; display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 0.82rem; color: var(--ink-dim); transition: all 0.3s;
}
.social-btn:hover { border-color: var(--gold-dim); color: var(--ink); }
.strength { height: 3px; background: var(--line-soft); overflow: hidden; }
.strength i { display: block; height: 100%; width: 0; background: var(--red); transition: all 0.4s; }
.strength.s2 i { width: 50%; background: var(--gold); }
.strength.s3 i { width: 100%; background: #7ba05b; }
.strength.s1 i { width: 22%; }
.form-foot { text-align: center; font-size: 0.88rem; color: var(--ink-faint); }
.form-foot a { color: var(--gold); }
.auth-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line-soft); }
.auth-tabs button { min-width: 0; padding: 14px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-faint); transition: all 0.3s; }
.auth-tabs button.active { background: var(--gold); color: var(--on-accent); }

/* ---------- account ---------- */
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.dash-card { border: 1px solid var(--line-soft); background: var(--surface); padding: 30px; display: grid; gap: 16px; align-content: start; }
.dash-card h3 { display: flex; align-items: center; justify-content: space-between; font-size: 1.15rem; }
.toggle { position: relative; width: 44px; height: 24px; flex: none; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; }
.toggle .track { position: absolute; inset: 0; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); transition: all 0.3s; }
.toggle .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink-faint); transition: all 0.3s; }
.toggle input:checked ~ .track { background: rgba(180, 145, 230, 0.25); border-color: var(--gold-dim); }
.toggle input:checked ~ .track::after { left: 23px; background: var(--gold); }

/* ---------- search overlay ---------- */
.search-overlay { position: fixed; inset: 0; z-index: 240; display: none; }
.search-overlay.open { display: block; }
.search-panel {
  position: relative; z-index: 1; max-width: 680px; margin: 10vh auto 0;
  background: var(--bg-2); border: 1px solid var(--line-soft);
  max-height: 74vh; display: flex; flex-direction: column;
  animation: lbIn 0.4s var(--ease);
}
.search-panel .bar { display: flex; align-items: center; gap: 14px; padding: 8px 22px; border-bottom: 1px solid var(--line-soft); }
.search-panel input { flex: 1; background: none; border: 0; padding: 16px 0; font-size: 1.15rem; color: var(--ink); font-family: var(--serif); }
.search-panel input:focus { outline: none; }
.search-panel kbd { font-size: 0.68rem; border: 1px solid var(--line); border-radius: 5px; padding: 3px 8px; color: var(--ink-faint); }
.search-results { overflow-y: auto; padding: 10px 0 18px; }
.sr-group { padding: 12px 22px 4px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); }
.sr-item { display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; padding: 11px 22px; transition: background 0.2s; }
.sr-item:hover, .sr-item.hl { background: rgba(236, 233, 242, 0.04); }
.sr-item .thumb { width: 46px; height: 46px; flex: none; overflow: hidden; border: 1px solid var(--line-soft); }
.sr-item .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sr-item .t { font-family: var(--serif); font-size: 1rem; }
.sr-item .s { font-size: 0.78rem; color: var(--ink-faint); }
.sr-empty { padding: 40px 22px; text-align: center; color: var(--ink-faint); font-style: italic; font-family: var(--serif); }
@media (max-width: 720px) { .search-panel { margin: 0; max-height: 100vh; height: 100%; } }

/* ---------- toast ---------- */
.toast-zone { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 300; display: grid; gap: 10px; width: min(440px, calc(100vw - 40px)); }
.toast {
  background: var(--surface-2); border: 1px solid var(--gold-dim); color: var(--ink);
  padding: 14px 22px; font-size: 0.9rem; text-align: center;
  animation: toastIn 0.4s var(--ease); box-shadow: 0 18px 50px rgba(0,0,0,0.5);
}
@keyframes toastIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.toast.out { opacity: 0; transition: opacity 0.4s; }

/* ---------- consent ---------- */
.consent {
  position: fixed; bottom: 20px; right: 20px; z-index: 290;
  max-width: 380px; background: var(--bg-2); border: 1px solid var(--line-soft);
  padding: 24px; display: grid; gap: 14px; box-shadow: 0 24px 70px rgba(0,0,0,0.55);
  animation: toastIn 0.5s var(--ease);
}
.consent p { font-size: 0.85rem; color: var(--ink-dim); }
.consent .row { display: flex; gap: 10px; }
@media (max-width: 520px) { .consent { left: 20px; right: 20px; max-width: none; } }

/* ---------- newsletter ---------- */
.news-strip { background: var(--bg-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.news-inner { display: grid; grid-template-columns: 1fr auto; gap: 26px; align-items: center; padding: clamp(36px, 5vw, 64px) 0; }
.news-form { display: flex; gap: 0; min-width: min(420px, 100%); border-bottom: 1px solid var(--line); }
.news-form input { flex: 1; background: none; border: 0; padding: 14px 4px; color: var(--ink); font-size: 1rem; }
.news-form input:focus { outline: none; }
.news-form button { color: var(--gold); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; padding: 0 8px; }
@media (max-width: 780px) { .news-inner { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line-soft); background: var(--bg-2); margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: clamp(30px, 4vw, 60px); padding: clamp(48px, 7vw, 88px) 0 40px; }
.footer-grid h4 { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 18px; }
.footer-grid ul { list-style: none; display: grid; gap: 10px; }
.footer-grid a { color: var(--ink-dim); font-size: 0.92rem; transition: color 0.25s; }
.footer-grid a:hover { color: var(--gold-bright); }
.footer-brand p { color: var(--ink-faint); font-size: 0.9rem; max-width: 34ch; margin-top: 14px; }
.footer-word {
  font-family: var(--serif); text-align: center; user-select: none;
  font-size: clamp(4rem, 15vw, 13rem); line-height: 0.95; letter-spacing: 0.12em;
  color: transparent; -webkit-text-stroke: 1px rgba(236, 233, 242, 0.12);
  padding: 0 0 10px;
}
.footer-base {
  display: flex; flex-wrap: wrap; gap: 12px 30px; justify-content: space-between;
  padding: 22px 0 30px; border-top: 1px solid var(--line-soft);
  font-size: 0.78rem; color: var(--ink-faint);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr; gap: 26px 20px;
    padding: 44px 0 24px;
  }
  .footer-brand p { max-width: none; font-size: 0.85rem; }
  .footer-grid h4 { margin-bottom: 12px; }
  .footer-grid ul { gap: 8px; }
  .footer-grid a { font-size: 0.88rem; }
  .footer-word { font-size: clamp(2.4rem, 13vw, 3.4rem); letter-spacing: 0.16em; padding-bottom: 4px; }
  .footer-base { padding: 18px 0 24px; gap: 6px 18px; font-size: 0.72rem; }
}

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- misc pages ---------- */
.page-hero { padding: calc(var(--header-h) + clamp(48px, 8vw, 110px)) 0 clamp(36px, 6vw, 72px); display: grid; gap: 22px; }
.prose { max-width: 68ch; display: grid; gap: 18px; color: var(--ink-dim); }
.prose h3 { color: var(--ink); margin-top: 14px; }
.prose strong { color: var(--ink); }
.visit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.visit-card { border: 1px solid var(--line-soft); padding: 26px; display: grid; gap: 8px; background: var(--surface); }
.visit-card .l { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); }
.visit-card .v { font-family: var(--serif); font-size: 1.15rem; }
.visit-card .s { font-size: 0.85rem; color: var(--ink-faint); }

.big-404 {
  font-family: var(--serif); font-size: clamp(6rem, 24vw, 18rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--gold-dim); text-align: center;
}

/* focus visibility */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 3px;
}
