/* ============================================================
   VICTORY COMICS — pulp-print design system
   void/tar/bone base · blood primary · slime data accent · gold hairlines
   ============================================================ */
:root {
  --void:  #0A0908;
  --tar:   #14110D;
  --smoke: #1E1A15;
  --bone:  #EAE0CB;
  --bone-dim: rgba(234,224,203,0.55);
  --blood: #B3202A;
  --blood-lt: #D8323C;
  --slime: #8FBE3F;
  --gold:  #C9A227;
  --hair:  rgba(201,162,39,0.28);
  --rail-w: 250px;
}
* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  background: var(--void);
  color: var(--bone);
  font-family: "Oswald", sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

/* film-grain overlay */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 999; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.035;
}

.typewriter { font-family: "Special Elite", monospace; }
.black-title {
  font-family: "Pirata One", serif;
  font-weight: 400;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1;
  color: var(--bone);
  text-shadow: 3px 3px 0 var(--blood);
  letter-spacing: 0.02em;
}
.black-title.small { font-size: clamp(2.2rem, 5vw, 3.5rem); }

/* ============ NAV ============ */
nav#topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem 1.5rem;
  background: rgba(10,9,8,0.92);
  border-bottom: 1px solid var(--hair);
  backdrop-filter: blur(8px);
}
.brand {
  font-family: "Pirata One", serif;
  font-size: 1.7rem; text-decoration: none; color: var(--blood-lt);
  letter-spacing: 0.03em;
}
.brand span { color: var(--bone); }
.nav-links { display: flex; gap: 1.4rem; align-items: center; }
.nav-links a {
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; text-decoration: none; color: var(--bone-dim);
  transition: color 0.15s;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--slime); }
.nav-soon {
  font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--hair);
  padding: 0.3rem 0.7rem; border-radius: 2px; cursor: default;
}

/* ============ HERO ============ */
#hero {
  position: relative;
  padding: 6.5rem 1.5rem 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(179,32,42,0.14) 0%, transparent 55%),
    var(--void);
}
/* halftone dot field — the pulp-print motif */
#hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(234,224,203,0.10) 1px, transparent 1.6px);
  background-size: 14px 14px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 75%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 75%);
}
.hero-inner {
  position: relative;
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 3rem; align-items: center;
}
.hero-art { position: relative; transform: rotate(-1.4deg); }
.hero-art img {
  width: 100%; height: auto;
  border: 6px solid #211c15;
  box-shadow: 10px 10px 0 rgba(179,32,42,0.35), 0 24px 60px rgba(0,0,0,0.6);
}
.hero-tape {
  position: absolute; width: 96px; height: 26px;
  background: rgba(234,224,203,0.16);
  border: 1px solid rgba(234,224,203,0.10);
  backdrop-filter: blur(1px);
}
.hero-tape.t1 { top: -12px; left: 8%; transform: rotate(-8deg); }
.hero-tape.t2 { bottom: -12px; right: 6%; transform: rotate(6deg); }

.eyebrow {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.4em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 0.8rem;
}
.hero-copy h1 {
  font-family: "Oswald", sans-serif; font-weight: 600;
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  text-transform: uppercase; letter-spacing: 0.04em; line-height: 1;
  margin-bottom: 1.2rem;
}
.hero-copy h1 em { color: var(--blood-lt); font-style: normal; }
.lede { font-size: 1.02rem; line-height: 1.65; margin-bottom: 0.9rem; max-width: 54ch; }
.lede strong { font-weight: 500; color: var(--slime); }
.lede.dim, .dim { color: var(--bone-dim); }
.hero-cta { display: flex; gap: 0.9rem; margin-top: 1.6rem; flex-wrap: wrap; }

.btn {
  display: inline-block; text-decoration: none;
  font-weight: 500; font-size: 0.82rem; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 0.85rem 1.7rem; border-radius: 2px;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, color 0.15s;
}
.btn.big { font-size: 0.95rem; padding: 1rem 2.4rem; }
.btn-blood { background: var(--blood); color: var(--bone); box-shadow: 4px 4px 0 rgba(143,190,63,0.0); }
.btn-blood:hover, .btn-blood:focus-visible {
  background: var(--blood-lt); transform: translate(-2px,-2px);
  box-shadow: 4px 4px 0 rgba(143,190,63,0.55);
}
.btn-ghost { border: 1px solid var(--hair); color: var(--bone); }
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: var(--slime); color: var(--slime); }

.stat-strip {
  max-width: 1200px; margin: 3.5rem auto 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair);
}
.stat { text-align: center; padding: 1.3rem 0.5rem; border-left: 1px solid var(--hair); }
.stat:first-child { border-left: none; }
.stat-n { display: block; font-weight: 600; font-size: 2rem; color: var(--slime); line-height: 1; }
.stat-l { display: block; margin-top: 0.35rem; font-size: 0.68rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--bone-dim); }

/* torn-paper divider */
.tear {
  height: 26px; margin-top: 3rem;
  background: var(--tar);
  clip-path: polygon(0 55%,3% 20%,7% 60%,11% 25%,15% 65%,19% 30%,24% 70%,28% 22%,33% 60%,38% 28%,43% 66%,48% 24%,53% 62%,58% 30%,63% 68%,68% 26%,73% 60%,78% 32%,83% 70%,88% 24%,93% 58%,97% 30%,100% 60%,100% 100%,0 100%);
}

/* ============ VAULT ============ */
#vault { background: var(--tar); padding: 3.5rem 1.5rem 5rem; }
.vault-head { max-width: 1400px; margin: 0 auto 2.2rem; }
.vault-sub { margin-top: 0.7rem; color: var(--bone-dim); font-size: 0.95rem; }

.vault-body {
  max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: var(--rail-w) minmax(0, 1fr);
  gap: 2.2rem; align-items: start;
}

/* --- collections rail --- */
.rail { position: sticky; top: 76px; }
.rail-inner { display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - 100px); overflow-y: auto; padding-right: 4px; }
.rail-inner::-webkit-scrollbar { width: 4px; }
.rail-inner::-webkit-scrollbar-thumb { background: var(--hair); }
.rail-btn {
  display: flex; justify-content: space-between; align-items: baseline; gap: 0.6rem;
  background: none; border: none; border-left: 2px solid transparent;
  color: var(--bone-dim); font-family: "Oswald", sans-serif; font-weight: 300;
  font-size: 0.88rem; letter-spacing: 0.05em; text-align: left;
  padding: 0.48rem 0.7rem; cursor: pointer;
  transition: color 0.12s, border-color 0.12s, background 0.12s;
}
.rail-btn:hover, .rail-btn:focus-visible { color: var(--bone); background: rgba(234,224,203,0.04); }
.rail-btn.active { color: var(--bone); border-left-color: var(--blood-lt); background: rgba(179,32,42,0.10); }
.rail-btn .n { font-family: "Special Elite", monospace; font-size: 0.72rem; color: var(--slime); }
.rail-btn.all { font-weight: 500; text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.78rem; margin-bottom: 0.5rem; border-bottom: 1px solid var(--hair); padding-bottom: 0.8rem; }

/* --- gallery --- */
.gallery-meta {
  display: flex; align-items: baseline; gap: 0.9rem;
  margin-bottom: 1.1rem; min-height: 1.6rem;
}
#gallery-title { font-size: 1rem; color: var(--bone); }
.count-chip {
  font-family: "Special Elite", monospace; font-size: 0.75rem;
  color: var(--slime); border: 1px solid rgba(143,190,63,0.35);
  padding: 0.1rem 0.55rem; border-radius: 999px;
}

.gallery { columns: 4 240px; column-gap: 14px; }
.thumb {
  break-inside: avoid; margin-bottom: 14px;
  position: relative; cursor: zoom-in;
  border: 1px solid rgba(234,224,203,0.08);
  background: var(--smoke);
  transition: transform 0.16s, box-shadow 0.16s, border-color 0.16s;
}
.thumb img { width: 100%; height: auto; }
/* misregistered-print hover: blood + slime offset, like off-register pulp ink */
.thumb:hover, .thumb:focus-visible {
  transform: translate(-2px,-2px);
  border-color: rgba(234,224,203,0.25);
  box-shadow: 3px 3px 0 rgba(179,32,42,0.65), 6px 6px 0 rgba(143,190,63,0.35);
  z-index: 2;
}
.thumb .tag {
  position: absolute; left: 0; bottom: 0; right: 0;
  font-family: "Special Elite", monospace; font-size: 0.62rem;
  color: var(--bone); background: rgba(10,9,8,0.72);
  padding: 0.22rem 0.45rem;
  opacity: 0; transition: opacity 0.15s;
}
.thumb:hover .tag, .thumb:focus-visible .tag { opacity: 1; }

/* reveal animation */
.thumb.reveal { opacity: 0; transform: translateY(14px); }
.thumb.reveal.in { opacity: 1; transform: none; transition: opacity 0.4s ease, transform 0.4s ease; }

/* ============ MANIFESTO ============ */
#manifesto { background: var(--void); border-top: 1px solid var(--hair); padding: 4.5rem 1.5rem; }
.mf-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.mf-inner .black-title { margin-bottom: 1.6rem; }
.mf-text { font-size: 1.02rem; line-height: 1.8; margin-bottom: 1rem; }

/* ============ CONTACT ============ */
#contact {
  background: var(--tar); border-top: 1px solid var(--hair);
  padding: 4.5rem 1.5rem 5rem; text-align: center;
}
#contact .black-title { margin-bottom: 0.6rem; }
.contact-sub { color: var(--bone-dim); margin-bottom: 2.2rem; }
.contact-cards {
  display: flex; gap: 1.2rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.4rem;
}
.ccard {
  min-width: 250px; text-decoration: none;
  border: 1px solid var(--hair); background: var(--smoke);
  padding: 1.3rem 1.6rem; text-align: left;
  transition: transform 0.15s, border-color 0.15s;
}
.ccard:hover, .ccard:focus-visible { transform: translateY(-3px); border-color: var(--slime); }
.ccard-label { display: block; font-size: 0.68rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.35rem; }
.ccard-val { display: block; font-family: "Special Elite", monospace; font-size: 1rem; color: var(--bone); word-break: break-all; }

/* ============ FOOTER ============ */
footer {
  background: var(--void); border-top: 1px solid var(--hair);
  padding: 2rem 1.5rem; text-align: center;
}
.foot-brand { display: block; font-family: "Pirata One", serif; font-size: 1.3rem; color: var(--blood-lt); margin-bottom: 0.4rem; }
.foot-sub { font-size: 0.75rem; letter-spacing: 0.08em; color: var(--bone-dim); }

/* ============ LIGHTBOX (specimen card) ============ */
.lightbox {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(6,5,4,0.94);
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  padding: 1rem;
}
.lightbox[hidden] { display: none; }
.lb-card {
  max-width: min(1100px, 92vw); max-height: 92vh;
  display: flex; flex-direction: column;
  background: var(--smoke); border: 1px solid var(--hair);
  box-shadow: 8px 8px 0 rgba(179,32,42,0.4), 0 30px 80px rgba(0,0,0,0.8);
  padding: 10px;
}
.lb-imgwrap { overflow: hidden; display: flex; align-items: center; justify-content: center; }
.lb-card img { max-width: 100%; max-height: calc(92vh - 90px); width: auto; height: auto; object-fit: contain; }
.lb-stamp {
  padding: 0.8rem 0.4rem 0.3rem; text-align: center;
  font-size: 0.82rem; color: var(--bone); letter-spacing: 0.06em;
}
.lb-stamp .no { color: var(--slime); }
.lb-close, .lb-prev, .lb-next {
  background: none; border: 1px solid var(--hair); color: var(--bone);
  font-size: 1.2rem; width: 46px; height: 46px; border-radius: 50%;
  cursor: pointer; flex: 0 0 auto;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.lb-close { position: absolute; top: 18px; right: 18px; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover,
.lb-close:focus-visible, .lb-prev:focus-visible, .lb-next:focus-visible {
  border-color: var(--blood-lt); color: var(--blood-lt); background: rgba(179,32,42,0.08);
}

/* focus + motion + responsive */
:focus-visible { outline: 2px solid var(--slime); outline-offset: 2px; }

@media (max-width: 1000px) {
  .vault-body { display: block; }
  .rail { position: sticky; top: 52px; z-index: 90; background: var(--tar); margin: 0 -1.5rem 1.2rem; padding: 0.6rem 1.5rem; border-bottom: 1px solid var(--hair); }
  .rail-inner { flex-direction: row; overflow-x: auto; max-height: none; gap: 6px; scrollbar-width: thin; }
  .rail-btn { flex: 0 0 auto; border-left: none; border: 1px solid var(--hair); border-radius: 999px; padding: 0.35rem 0.8rem; font-size: 0.8rem; white-space: nowrap; }
  .rail-btn.active { border-color: var(--blood-lt); }
  .rail-btn.all { margin: 0; border-bottom: 1px solid var(--hair); padding-bottom: 0.35rem; }
}
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.2rem; }
  .hero-art { max-width: 560px; margin: 0 auto; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; }
  .stat { border-top: 1px solid var(--hair); }
  .stat:nth-child(-n+2) { border-top: none; }
  .lb-prev, .lb-next { position: fixed; bottom: 18px; z-index: 510; background: rgba(10,9,8,0.8); }
  .lb-prev { left: 22%; } .lb-next { right: 22%; }
}
@media (max-width: 560px) {
  .nav-links { gap: 0.8rem; }
  .nav-links a { font-size: 0.68rem; letter-spacing: 0.1em; }
  .nav-soon { display: none; }
  .gallery { columns: 2 140px; column-gap: 10px; }
  .thumb { margin-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .thumb.reveal { opacity: 1; transform: none; }
}

/* ============ V2: GUARANTEE / ARTIST ============ */
#guarantee { background: var(--void); border-top: 1px solid var(--hair); padding: 4.5rem 1.5rem; }
.gq-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 3rem; align-items: center;
}
.gq-art { position: relative; transform: rotate(1.2deg); }
.gq-art img {
  width: 100%; height: auto;
  border: 6px solid #211c15;
  box-shadow: -10px 10px 0 rgba(179,32,42,0.35), 0 24px 60px rgba(0,0,0,0.6);
}
.hero-tape.t3 { top: -12px; right: 10%; transform: rotate(7deg); position: absolute; width: 96px; height: 26px; background: rgba(234,224,203,0.16); border: 1px solid rgba(234,224,203,0.10); }
.gq-copy .black-title { margin-bottom: 1rem; }
.gq-quote {
  font-family: "Oswald", sans-serif; font-weight: 600;
  font-size: clamp(1.5rem, 3.2vw, 2.2rem); line-height: 1.15;
  text-transform: uppercase; letter-spacing: 0.03em;
  color: var(--bone); margin: 1.4rem 0 0.9rem;
  padding-left: 1rem; border-left: 4px solid var(--blood-lt);
}
.gq-quote cite {
  display: block; margin-top: 0.5rem;
  font-family: "Special Elite", monospace; font-style: normal;
  font-size: 0.85rem; letter-spacing: 0.1em; color: var(--gold); text-transform: none;
}
.gq-fine {
  font-size: 0.85rem; color: var(--bone-dim);
  border: 1px dashed var(--hair); padding: 0.7rem 0.9rem;
  max-width: 46ch; margin-bottom: 1.4rem;
}

/* nav store link */
.nav-store {
  font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--hair);
  padding: 0.3rem 0.7rem; border-radius: 2px; text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
}
.nav-store:hover, .nav-store:focus-visible { color: var(--slime); border-color: var(--slime); }

/* manifesto links */
.mf-link { color: var(--slime); text-decoration-color: rgba(143,190,63,0.5); text-underline-offset: 3px; }
.mf-link:hover, .mf-link:focus-visible { color: var(--blood-lt); }

/* collector list form */
.notify { max-width: 460px; margin: 0 auto 2rem; }
.notify .hp { position: absolute; left: -9999px; }
.notify-label { display: block; font-size: 0.8rem; color: var(--bone-dim); margin-bottom: 0.6rem; }
.notify-row { display: flex; gap: 0.6rem; }
.notify-row input[type="email"] {
  flex: 1 1 auto; min-width: 0;
  background: var(--smoke); border: 1px solid var(--hair); border-radius: 2px;
  color: var(--bone); font-family: "Oswald", sans-serif; font-weight: 300;
  font-size: 0.95rem; padding: 0.7rem 0.9rem;
}
.notify-row input[type="email"]::placeholder { color: rgba(234,224,203,0.35); }
.notify-row input[type="email"]:focus-visible { outline: 2px solid var(--slime); outline-offset: 1px; }

/* small button + lightbox inquire */
.btn.small { font-size: 0.68rem; padding: 0.5rem 1rem; letter-spacing: 0.15em; }
.lb-inquire { display: inline-block; margin: 0.2rem auto 0.3rem; align-self: center; }

/* footer links */
.foot-links { display: flex; gap: 1.2rem; justify-content: center; margin: 0.4rem 0 0.7rem; }
.foot-links a {
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--bone-dim); text-decoration: none;
}
.foot-links a:hover, .foot-links a:focus-visible { color: var(--slime); }

@media (max-width: 860px) {
  .gq-inner { grid-template-columns: 1fr; gap: 2.2rem; }
  .gq-art { max-width: 560px; margin: 0 auto; }
  .nav-store { display: none; }
}

/* ============ V3: ARTIST BIO PAGE ============ */
.bio-hero { padding: 7rem 1.5rem 1.5rem; text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(179,32,42,0.14) 0%, transparent 60%), var(--void); }
.bio-sub { color: var(--bone-dim); margin-top: 0.8rem; font-size: 0.95rem; }
.bio-wrap { max-width: 780px; margin: 0 auto; padding: 1.5rem 1.5rem 4rem; }
.bio-photo { position: relative; transform: rotate(-1deg); margin: 1.5rem 0 2.5rem; }
.bio-photo img { width: 100%; height: auto; border: 6px solid #211c15;
  box-shadow: 10px 10px 0 rgba(179,32,42,0.35), 0 24px 60px rgba(0,0,0,0.6); }
.bio p { font-size: 1.02rem; line-height: 1.75; margin-bottom: 1.2rem; color: var(--bone); }
.bio p em { color: var(--slime); font-style: normal; }
.bio-era { display: inline-block; margin: 1.6rem 0 0.9rem; padding: 0.25rem 0.8rem;
  font-size: 0.78rem !important; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold) !important; border: 1px solid var(--hair); line-height: 1.4 !important; }
.bio .gq-quote { margin-top: 2.2rem; }
.bio .hero-cta { margin: 1.8rem 0 2.4rem; }
.bio-sources { font-size: 0.75rem !important; color: var(--bone-dim) !important;
  border-top: 1px solid var(--hair); padding-top: 1.2rem; line-height: 1.8 !important; }
.bio-sources a { color: var(--slime); text-underline-offset: 3px; }
.bio-sources a:hover { color: var(--blood-lt); }
