/* ==========================================================================
   Vishnu Prompts — "Darkroom" public theme
   Standalone design system for the public website. No Tailwind needed.
   (Admin panel keeps using tailwind.css + custom.css — untouched.)
   ========================================================================== */

:root {
  --paper: #f3eee5;
  --paper-2: #ebe4d6;
  --card: #fbf8f2;
  --ink: #16130f;
  --ink-2: #4a443b;
  --ink-3: #857d6f;
  --line: #d9d0bd;
  --accent: #e8452c;
  --accent-2: #c9341d;
  --moss: #2f4a3a;
  --gold: #c8962e;
  --shell: #14110e;
  --shell-ink: #efe8da;
  --ok-bg: #e3efe3; --ok-ink: #1f5a2d; --ok-line: #b7d6b9;
  --bad-bg: #f8e1dc; --bad-ink: #8c2514; --bad-line: #e8b9ae;
  --radius: 6px;
  --radius-lg: 14px;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-ui: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Telugu", "Noto Sans Devanagari", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #12100d;
    --paper-2: #1a1713;
    --card: #1c1915;
    --ink: #f1ebdf;
    --ink-2: #c4bba9;
    --ink-3: #8f8676;
    --line: #34302a;
    --accent: #ff6a4d;
    --accent-2: #ff866c;
    --moss: #7fb08f;
    --shell: #0a0907;
    --ok-bg: #16281a; --ok-ink: #9fd8a8; --ok-line: #2b4a31;
    --bad-bg: #2d1612; --bad-ink: #f3a899; --bad-line: #5a2a22;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink);
  font-family: var(--font-ui); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; line-height: 1.12; letter-spacing: -0.015em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.pv-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pv-skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--radius); font-weight: 600; }
.pv-skip:focus { top: 12px; }

.pv-wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.pv-wrap--narrow { max-width: 860px; }
.pv-wrap--mid { max-width: 1120px; }
.pv-main { flex: 1; }
.pv-page { padding-top: 28px; padding-bottom: 56px; }
.pv-clamp-1, .pv-clamp-2 { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; }
.pv-clamp-1 { -webkit-line-clamp: 1; }
.pv-clamp-2 { -webkit-line-clamp: 2; }

/* ---------- Buttons & chips ---------- */
.pv-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1.5px solid var(--ink); background: var(--ink); color: var(--paper);
  padding: 11px 20px; border-radius: 999px; font-weight: 700; font-size: 14px;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.pv-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.pv-btn:active { transform: scale(.98); }
.pv-btn--accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.pv-btn--accent:hover { background: var(--accent-2); border-color: var(--accent-2); }
.pv-btn--ghost { background: transparent; color: var(--ink); }
.pv-btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pv-btn--lg { padding: 16px 28px; font-size: 16px; }
.pv-btn--block { width: 100%; }
.pv-btn svg { width: 16px; height: 16px; flex: none; }

.pv-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px;
  border: 1.5px solid var(--line); border-radius: 999px; background: transparent;
  font-size: 13px; font-weight: 700; color: var(--ink-2); transition: all .15s ease;
}
.pv-chip:hover { border-color: var(--ink); color: var(--ink); }
.pv-chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pv-chip--sm { padding: 5px 12px; font-size: 12px; }

.pv-tag {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 3px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  background: var(--ink); color: var(--paper);
}
.pv-tag--pin { background: var(--gold); color: #1b1304; }
.pv-tag--hot { background: var(--accent); color: #fff; }
.pv-tag--tpl { background: var(--moss); color: #fff; }
.pv-tag--soft { background: var(--paper-2); color: var(--ink-2); }
.pv-tag--glass { background: rgba(20,17,14,.72); color: #fff; backdrop-filter: blur(4px); }
.pv-tag svg { width: 11px; height: 11px; }

/* ---------- Header ---------- */
.pv-header { position: sticky; top: 0; z-index: 40; background: var(--paper); background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(10px); border-bottom: 1.5px solid var(--ink); }
.pv-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.pv-brand { display: inline-flex; align-items: center; gap: 10px; }
.pv-brand__mark { width: 36px; height: 36px; display: grid; place-items: center; background: var(--accent); color: #fff; border-radius: 50% 50% 50% 4px; flex: none; }
.pv-brand__mark svg { width: 19px; height: 19px; }
.pv-brand__logo { height: var(--pv-logo-h, 36px); max-width: 240px; width: auto; border-radius: 6px; object-fit: contain; }
.pv-brand__name { font-family: var(--font-display); font-size: 25px; font-weight: 800; letter-spacing: -0.03em; }

.pv-nav { display: none; align-items: center; gap: 2px; }
@media (min-width: 1024px) { .pv-nav { display: flex; } }
.pv-nav__link, .pv-nav__btn {
  display: inline-flex; align-items: center; gap: 5px; padding: 8px 12px; background: none; border: 0;
  font-size: 14px; font-weight: 700; color: var(--ink); position: relative; white-space: nowrap;
}
.pv-nav__link::after, .pv-nav__btn::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.pv-nav__link:hover::after, .pv-nav__btn:hover::after, .pv-dd:focus-within .pv-nav__btn::after, .pv-dd:hover .pv-nav__btn::after { transform: scaleX(1); }
.pv-nav__link--hot { color: var(--accent); }
.pv-nav__btn svg { width: 14px; height: 14px; transition: transform .2s ease; }
.pv-dd { position: relative; }
.pv-dd:hover .pv-nav__btn svg, .pv-dd:focus-within .pv-nav__btn svg { transform: rotate(180deg); }
.pv-dd__panel {
  position: absolute; left: 0; top: 100%; width: 300px; padding: 8px; margin-top: 6px;
  background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--radius-lg);
  box-shadow: 6px 6px 0 var(--ink); opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: all .18s ease; max-height: 380px; overflow-y: auto;
}
.pv-dd:hover .pv-dd__panel, .pv-dd:focus-within .pv-dd__panel { opacity: 1; visibility: visible; transform: none; }
.pv-dd__item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; }
.pv-dd__item:hover { background: var(--paper-2); }
.pv-dd__item em { font-style: normal; font-size: 11px; font-weight: 800; background: var(--ink); color: var(--paper); border-radius: 999px; padding: 1px 8px; }
.pv-dd__all { display: block; margin-top: 6px; padding: 9px; text-align: center; font-size: 12px; font-weight: 800; color: var(--accent); border-top: 1px dashed var(--line); }

.pv-header__tools { display: flex; align-items: center; gap: 10px; }
.pv-search-mini { display: none; position: relative; }
@media (min-width: 768px) { .pv-search-mini { display: block; } }
.pv-search-mini input {
  width: 190px; padding: 9px 14px 9px 38px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--card); font-size: 14px; transition: all .2s ease;
}
@media (min-width: 1280px) { .pv-search-mini input { width: 250px; } }
.pv-search-mini input:focus { outline: none; border-color: var(--ink); width: 280px; }
.pv-search-mini svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--ink-3); pointer-events: none; }
.pv-community { display: none; }
@media (min-width: 640px) { .pv-community { display: inline-flex; } }

.pv-burger { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1.5px solid var(--ink); border-radius: 50%; background: transparent; }
.pv-burger svg { width: 20px; height: 20px; }
.pv-burger .is-hidden { display: none; }
@media (min-width: 1024px) { .pv-burger { display: none; } }

.pv-drawer { display: none; border-top: 1px solid var(--line); background: var(--paper); padding: 16px 20px 28px; max-height: calc(100vh - 68px); overflow-y: auto; }
.pv-drawer.is-open { display: block; }
@media (min-width: 1024px) { .pv-drawer.is-open { display: none; } }
.pv-drawer__search { position: relative; margin-bottom: 14px; }
.pv-drawer__search input { width: 100%; padding: 12px 16px 12px 42px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--card); font-size: 15px; }
.pv-drawer__search svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-3); }
.pv-drawer__link { display: block; padding: 12px 4px; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.pv-drawer__link--hot { color: var(--accent); }
.pv-drawer__label { margin: 22px 0 10px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.pv-drawer__grid { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Flash / notices ---------- */
.pv-note { padding: 13px 16px; border-radius: var(--radius); border: 1.5px solid; font-size: 14px; font-weight: 600; }
.pv-note--ok { background: var(--ok-bg); color: var(--ok-ink); border-color: var(--ok-line); }
.pv-note--bad { background: var(--bad-bg); color: var(--bad-ink); border-color: var(--bad-line); }
.pv-note ul { list-style: disc; padding-left: 20px; display: grid; gap: 4px; font-weight: 500; }
.pv-flash { margin-top: 16px; }

/* ---------- Ads ---------- */
.pv-ad { margin: 24px auto; max-width: 1000px; padding: 0 20px; }
.pv-ad__box { border: 1px dashed var(--line); border-radius: var(--radius); padding: 12px; text-align: center; background: var(--paper-2); }
.pv-ad__label { display: block; margin-bottom: 8px; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.pv-ad__empty { padding: 22px 8px; font-size: 12px; color: var(--ink-3); border: 1px dashed var(--line); border-radius: 4px; }
.ad-slot-container { overflow: hidden; }

/* ---------- Breadcrumb ---------- */
.pv-crumbs { margin-bottom: 22px; }
.pv-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); font-weight: 600; }
.pv-crumbs li { display: flex; align-items: center; gap: 6px; }
.pv-crumbs li + li::before { content: "/"; color: var(--line); }
.pv-crumbs a:hover { color: var(--accent); }
.pv-crumbs [aria-current] { color: var(--ink); max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Section headings ---------- */
.pv-kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.pv-kicker::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.pv-sec { padding-block: 56px; }
.pv-sec--tint { background: var(--paper-2); border-block: 1.5px solid var(--ink); }
.pv-sec__head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 30px; }
@media (min-width: 640px) { .pv-sec__head { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.pv-sec__title { font-size: clamp(28px, 4vw, 42px); margin-top: 8px; }
.pv-link { font-size: 14px; font-weight: 800; border-bottom: 2px solid var(--accent); padding-bottom: 2px; white-space: nowrap; }
.pv-link:hover { color: var(--accent); }

/* ---------- Hero ---------- */
.pv-hero { border-bottom: 1.5px solid var(--ink); overflow: hidden; }
.pv-hero__grid { display: grid; gap: 40px; padding-top: 48px; padding-bottom: 56px; align-items: center; }
@media (min-width: 960px) { .pv-hero__grid { grid-template-columns: 1.15fr .85fr; padding-top: 72px; padding-bottom: 80px; } }
.pv-hero__eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: .06em; padding: 6px 12px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--card); }
.pv-hero__eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pv-pulse 1.8s infinite; }
@keyframes pv-pulse { 50% { opacity: .25; } }
.pv-hero__title { margin-top: 22px; font-size: clamp(40px, 7vw, 82px); line-height: 1.02; letter-spacing: -0.035em; }
.pv-hero__title em { font-style: italic; color: var(--accent); }
.pv-hero__lead { margin-top: 20px; max-width: 54ch; font-size: clamp(16px, 1.6vw, 19px); color: var(--ink-2); }
.pv-hero__form { margin-top: 30px; display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
@media (min-width: 560px) { .pv-hero__form { flex-direction: row; } }
.pv-hero__field { position: relative; flex: 1; }
.pv-hero__field svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--ink-3); pointer-events: none; }
.pv-hero__field input { width: 100%; padding: 16px 18px 16px 50px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--card); font-size: 16px; box-shadow: 4px 4px 0 var(--ink); }
.pv-hero__field input:focus { outline: none; box-shadow: 4px 4px 0 var(--accent); }
.pv-hero__pop { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pv-hero__pop > span { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-right: 4px; }

.pv-collage { position: relative; display: none; height: 520px; }
@media (min-width: 960px) { .pv-collage { display: block; } }
.pv-collage__item { position: absolute; width: 56%; aspect-ratio: 4/5; border: 6px solid var(--card); border-radius: 6px; box-shadow: 0 18px 40px -12px rgba(0,0,0,.35); overflow: hidden; background: var(--paper-2); transition: transform .35s ease; }
.pv-collage__item img { width: 100%; height: 100%; object-fit: cover; }
.pv-collage__item:nth-child(1) { left: 0; top: 4%; transform: rotate(-5deg); z-index: 1; }
.pv-collage__item:nth-child(2) { right: 0; top: 0; transform: rotate(4deg); z-index: 2; }
.pv-collage__item:nth-child(3) { left: 22%; bottom: 0; transform: rotate(-1.5deg); z-index: 3; }
.pv-collage__item:hover { transform: rotate(0) scale(1.04); z-index: 5; }
.pv-collage__stamp { position: absolute; right: 4%; bottom: 8%; z-index: 6; width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; text-align: center; background: var(--accent); color: #fff; font-family: var(--font-mono); font-size: 11px; font-weight: 800; letter-spacing: .06em; line-height: 1.25; transform: rotate(12deg); text-transform: uppercase; }
.pv-collage__stamp b { display: block; font-family: var(--font-display); font-size: 30px; letter-spacing: -.03em; }

/* ---------- Filter bar ---------- */
.pv-filterbar { display: flex; flex-direction: column; gap: 16px; padding-bottom: 22px; border-bottom: 1.5px solid var(--ink); }
@media (min-width: 900px) { .pv-filterbar { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.pv-filterbar h2 { font-size: clamp(24px, 3vw, 34px); }
.pv-filterbar p { margin-top: 6px; font-size: 14px; color: var(--ink-3); }
.pv-chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Prompt grid & card ---------- */
.pv-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .pv-grid { gap: 22px; } }
@media (min-width: 768px) { .pv-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .pv-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pv-grid--4 { }
@media (min-width: 768px) { .pv-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.pv-card { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--radius); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.pv-card:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--ink); }
.pv-card__media { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--paper-2); border-bottom: 1.5px solid var(--ink); }
.pv-card__media > a { display: block; width: 100%; height: 100%; }
.pv-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.pv-card:hover .pv-card__media img { transform: scale(1.06); }
.pv-card__badges { position: absolute; inset: 10px 10px auto 10px; display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; pointer-events: none; }
.pv-card__badges > div { display: flex; flex-wrap: wrap; gap: 5px; }
.pv-card__actions { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; gap: 8px; transition: all .2s ease; }
@media (hover: hover) and (min-width: 640px) {
  .pv-card__actions { opacity: 0; transform: translateY(8px); }
  .pv-card:hover .pv-card__actions, .pv-card:focus-within .pv-card__actions { opacity: 1; transform: none; }
}
.pv-card__preview { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 10px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--card); color: var(--ink); font-size: 12px; font-weight: 800; }
.pv-card__preview:hover { background: var(--ink); color: var(--paper); }
.pv-card__copy { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 1.5px solid var(--ink); border-radius: 50%; background: var(--accent); color: #fff; }
.pv-card__copy:hover { background: var(--accent-2); }
.pv-card__preview svg, .pv-card__copy svg { width: 15px; height: 15px; }
.pv-card__body { display: flex; flex-direction: column; flex: 1; justify-content: space-between; padding: 12px 14px 14px; }
.pv-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.pv-card__cat { color: var(--accent); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-card__cat:hover { text-decoration: underline; }
.pv-card__copies { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-3); flex: none; }
.pv-card__copies svg { width: 13px; height: 13px; }
.pv-card__title { font-size: 17px; line-height: 1.22; }
.pv-card:hover .pv-card__title a { color: var(--accent); }
.pv-card__foot { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--ink-3); font-weight: 600; }
.pv-card__foot a { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); font-weight: 800; }
.pv-card__foot a:hover { color: var(--accent); }
.pv-card__foot svg { width: 13px; height: 13px; }

.pv-mark { background: rgba(200,150,46,.4); background: color-mix(in srgb, var(--gold) 45%, transparent); color: inherit; padding: 0 3px; border-radius: 3px; }

/* ---------- Collections & categories ---------- */
.pv-cols { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .pv-cols { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pv-cols { grid-template-columns: repeat(3, 1fr); } }
.pv-col { position: relative; display: block; aspect-ratio: 4/3; border: 1.5px solid var(--ink); border-radius: var(--radius-lg); overflow: hidden; background: var(--shell); color: #fff; }
.pv-col img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; opacity: .92; }
.pv-col:hover img { transform: scale(1.07); }
.pv-col::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,8,6,.88) 0%, rgba(10,8,6,.15) 62%, transparent 100%); }
.pv-col__count { position: absolute; z-index: 2; top: 14px; left: 14px; }
.pv-col__body { position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 16px; }
.pv-col__body h3 { font-size: 26px; }
.pv-col__body p { margin-top: 6px; font-size: 13px; color: rgba(255,255,255,.78); }
.pv-col__go { position: absolute; z-index: 2; top: 12px; right: 12px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--card); color: var(--ink); transition: all .2s ease; }
.pv-col__go svg { width: 16px; height: 16px; }
.pv-col:hover .pv-col__go { background: var(--accent); color: #fff; transform: rotate(-45deg); }

.pv-cats { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .pv-cats { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .pv-cats { grid-template-columns: repeat(4, 1fr); } }
.pv-cat { display: flex; flex-direction: column; background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--radius); overflow: hidden; transition: all .2s ease; }
.pv-cat:hover { transform: translate(-3px,-3px); box-shadow: 6px 6px 0 var(--accent); }
.pv-cat__img { aspect-ratio: 3/2; overflow: hidden; border-bottom: 1.5px solid var(--ink); background: var(--paper-2); }
.pv-cat__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.pv-cat:hover .pv-cat__img img { transform: scale(1.07); }
.pv-cat__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 14px; }
.pv-cat__row h3 { font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-cat__row span { flex: none; min-width: 28px; text-align: center; font-family: var(--font-mono); font-size: 12px; font-weight: 800; background: var(--ink); color: var(--paper); border-radius: 999px; padding: 2px 9px; }

.pv-more { margin-top: 40px; text-align: center; }

/* ---------- Page headers (archive/category/collection/search) ---------- */
.pv-ph { display: grid; gap: 26px; margin-bottom: 34px; padding: 22px; background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--radius-lg); box-shadow: 6px 6px 0 var(--ink); }
@media (min-width: 768px) { .pv-ph--img { grid-template-columns: 300px 1fr; align-items: center; padding: 26px; } }
.pv-ph__img { aspect-ratio: 3/2; overflow: hidden; border-radius: 8px; border: 1.5px solid var(--ink); background: var(--paper-2); }
.pv-ph__img--wide { aspect-ratio: 16/10; }
.pv-ph__img img { width: 100%; height: 100%; object-fit: cover; }
.pv-ph h1 { margin-top: 10px; font-size: clamp(32px, 5vw, 56px); }
.pv-ph p.pv-ph__desc { margin-top: 10px; color: var(--ink-2); max-width: 64ch; }
.pv-ph__form { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; max-width: 640px; }
@media (min-width: 640px) { .pv-ph__form { flex-direction: row; } }
.pv-ph__form .pv-input { flex: 1; }

.pv-banner { margin-bottom: 34px; padding: 34px 28px; border: 1.5px solid var(--ink); border-radius: var(--radius-lg); background: var(--moss); color: #f4efe3; position: relative; overflow: hidden; }
.pv-banner::after { content: "{ }"; position: absolute; right: 22px; bottom: -34px; font-family: var(--font-mono); font-size: 150px; font-weight: 800; color: rgba(255,255,255,.08); line-height: 1; }
.pv-banner h1 { margin-top: 12px; font-size: clamp(34px, 5vw, 60px); }
.pv-banner p { margin-top: 12px; max-width: 62ch; color: rgba(244,239,227,.82); }
.pv-banner .pv-tag { background: rgba(255,255,255,.16); }

.pv-pagehead { margin-bottom: 26px; }
.pv-pagehead h1 { font-size: clamp(34px, 5vw, 58px); }
.pv-pagehead p { margin-top: 10px; color: var(--ink-2); }

/* ---------- Forms ---------- */
.pv-input, .pv-select, .pv-textarea {
  width: 100%; padding: 12px 16px; background: var(--card); border: 1.5px solid var(--line);
  border-radius: 10px; font-size: 15px; transition: border-color .15s ease, box-shadow .15s ease;
}
.pv-input:focus, .pv-select:focus, .pv-textarea:focus { outline: none; border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.pv-input::placeholder, .pv-textarea::placeholder { color: var(--ink-3); }
.pv-textarea { resize: vertical; min-height: 130px; }
.pv-label { display: block; margin-bottom: 6px; font-family: var(--font-mono); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.pv-panel { background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--radius-lg); padding: 22px; }
@media (min-width: 640px) { .pv-panel { padding: 30px; } }
.pv-panel--shadow { box-shadow: 6px 6px 0 var(--ink); }

.pv-filters { margin-bottom: 34px; }
.pv-filters__grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .pv-filters__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pv-filters__grid { grid-template-columns: 2fr repeat(4, 1fr); } }
.pv-filters__foot { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.pv-check { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; cursor: pointer; }
.pv-check input { width: 18px; height: 18px; accent-color: var(--accent); }
.pv-filters__btns { display: flex; gap: 10px; }

.pv-search-box { margin-bottom: 34px; }
.pv-search-box h1 { font-size: clamp(30px, 4.5vw, 50px); }
.pv-search-box h1 span { color: var(--accent); font-style: italic; }
.pv-search-box > p { margin-top: 8px; color: var(--ink-3); font-size: 14px; }
.pv-search-box form { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; max-width: 680px; }
@media (min-width: 640px) { .pv-search-box form { flex-direction: row; } }
.pv-search-box .pv-input { flex: 1; border-radius: 999px; padding: 14px 20px; }

.pv-empty { padding: 56px 24px; text-align: center; background: var(--card); border: 1.5px dashed var(--ink); border-radius: var(--radius-lg); }
.pv-empty__icon { width: 56px; height: 56px; margin: 0 auto 16px; display: grid; place-items: center; background: var(--paper-2); border-radius: 50%; color: var(--ink-3); }
.pv-empty__icon svg { width: 26px; height: 26px; }
.pv-empty h2 { font-size: 26px; margin-bottom: 8px; }
.pv-empty p { max-width: 46ch; margin: 0 auto 22px; color: var(--ink-3); font-size: 14px; }

.pv-related { margin-top: 56px; padding-top: 34px; border-top: 1.5px solid var(--ink); }
.pv-related h2 { font-size: 26px; margin-bottom: 16px; }
.pv-pills { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Pagination ---------- */
.pv-pager { margin-top: 44px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.pv-pager a, .pv-pager span { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 42px; height: 42px; padding: 0 14px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--card); font-size: 14px; font-weight: 800; }
.pv-pager a:hover { background: var(--ink); color: var(--paper); }
.pv-pager svg { width: 15px; height: 15px; }
.pv-pager .is-current { background: var(--accent); border-color: var(--accent); color: #fff; }
.pv-pager .is-gap { border-color: transparent; background: none; min-width: 20px; padding: 0; color: var(--ink-3); }

/* ---------- Prompt detail ---------- */
.pv-detail__head { margin-bottom: 30px; }
.pv-detail__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.pv-detail__title { font-size: clamp(28px, 4vw, 46px); line-height: 1.08; letter-spacing: -0.025em; max-width: 28ch; }
.pv-detail__meta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 13px; color: var(--ink-3); font-weight: 600; }
.pv-detail__meta strong { color: var(--ink); }
.pv-detail__meta span { display: inline-flex; align-items: center; gap: 6px; }
.pv-detail__meta svg { width: 15px; height: 15px; }
.pv-detail__grid { display: grid; gap: 36px; align-items: start; }
@media (min-width: 1024px) { .pv-detail__grid { grid-template-columns: 5fr 7fr; } .pv-detail__sticky { position: sticky; top: 96px; } }
.pv-frame { background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--radius-lg); padding: 12px; box-shadow: 8px 8px 0 var(--ink); }
.pv-frame__img { aspect-ratio: 4/5; overflow: hidden; border-radius: 8px; background: var(--paper-2); }
.pv-frame__img img { width: 100%; height: 100%; object-fit: cover; }
.pv-frame figcaption { margin-top: 10px; text-align: center; font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); letter-spacing: .04em; }
.pv-stack { display: grid; gap: 22px; }
.pv-block { padding: 22px; background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius-lg); }
.pv-block h2, .pv-block h3.pv-block__title { font-size: 22px; margin-bottom: 12px; }
.pv-block__label { margin-bottom: 8px; font-family: var(--font-mono); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.pv-block--tip { background: var(--paper-2); background: color-mix(in srgb, var(--gold) 16%, var(--card)); border-color: var(--gold); }
.pv-block--tip p { white-space: pre-line; }
.pv-block p { color: var(--ink-2); }

.pv-term { background: var(--shell); border: 1.5px solid var(--ink); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 8px 8px 0 var(--accent); }
.pv-term__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; background: #221e19; border-bottom: 1px solid #38322a; color: var(--shell-ink); }
.pv-term__dots { display: inline-flex; gap: 6px; margin-right: 10px; vertical-align: middle; }
.pv-term__dots i { width: 11px; height: 11px; border-radius: 50%; background: #5a5144; }
.pv-term__dots i:first-child { background: var(--accent); }
.pv-term__title { display: inline-flex; align-items: center; font-family: var(--font-mono); font-size: 13px; font-weight: 700; }
.pv-term__title h2 { font-family: var(--font-mono); font-size: 13px; font-weight: 700; letter-spacing: 0; color: var(--shell-ink); }
.pv-lang { display: inline-flex; padding: 3px; border-radius: 999px; background: #14110e; }
.pv-lang button { border: 0; background: none; color: #a79d8b; padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.pv-lang button.is-active { background: var(--accent); color: #fff; }
.pv-term__body { padding: 20px; }
.pv-term pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--font-mono); font-size: 14.5px; line-height: 1.75; color: var(--shell-ink); user-select: all; }
.pv-term__foot { display: flex; flex-direction: column; gap: 10px; padding: 16px; background: #1b1713; border-top: 1px solid #38322a; }
@media (min-width: 560px) { .pv-term__foot { flex-direction: row; } .pv-term__foot .pv-btn--accent { flex: 1; } }
.pv-term__foot .pv-btn--ghost { color: var(--shell-ink); border-color: #5a5144; }
.pv-term__foot .pv-btn--ghost:hover { background: var(--shell-ink); color: var(--shell); border-color: var(--shell-ink); }

.pv-steps { display: grid; gap: 10px; counter-reset: pv-step; }
.pv-steps li { counter-increment: pv-step; display: flex; gap: 14px; align-items: flex-start; padding: 12px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; color: var(--ink-2); }
.pv-steps li::before { content: counter(pv-step); flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--paper); font-family: var(--font-mono); font-size: 13px; font-weight: 800; }
.pv-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.pv-tool { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1.5px solid var(--ink); border-radius: 999px; font-size: 13px; font-weight: 800; background: var(--paper); }
.pv-tool::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--moss); }
.pv-linkgroup + .pv-linkgroup { margin-top: 18px; }
.pv-linkgroup .pv-pills { gap: 8px; }
.pv-share { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 22px; border: 1.5px solid var(--ink); border-radius: var(--radius-lg); background: var(--card); }
.pv-share strong { font-family: var(--font-display); font-size: 20px; }
.pv-share div { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Prose ---------- */
.pv-prose { color: var(--ink-2); line-height: 1.8; }
.pv-prose h2 { font-size: 26px; color: var(--ink); margin: 1.6em 0 .55em; }
.pv-prose h3 { font-size: 21px; color: var(--ink); margin: 1.4em 0 .5em; }
.pv-prose h4 { font-size: 17px; color: var(--ink); margin: 1.2em 0 .4em; }
.pv-prose p { margin-bottom: 1em; }
.pv-prose ul { list-style: disc; padding-left: 1.4em; margin-bottom: 1em; }
.pv-prose ol { list-style: decimal; padding-left: 1.4em; margin-bottom: 1em; }
.pv-prose li { margin-bottom: .4em; }
.pv-prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.pv-prose blockquote { margin: 1.2em 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--accent); font-family: var(--font-display); font-size: 1.15em; color: var(--ink); }
.pv-prose code { font-family: var(--font-mono); font-size: .9em; background: var(--paper-2); padding: 2px 6px; border-radius: 4px; }
.pv-prose > :first-child { margin-top: 0; }
.pv-article { padding: 26px; }
@media (min-width: 640px) { .pv-article { padding: 48px; } }
.pv-article header { margin-bottom: 26px; padding-bottom: 22px; border-bottom: 1.5px solid var(--ink); }
.pv-article h1 { font-size: clamp(32px, 5vw, 54px); }
.pv-article header p { margin-top: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }
.pv-seo { max-width: 920px; margin: 0 auto; }
.pv-seo h2 { font-size: clamp(24px, 3vw, 34px); }
.pv-seo__lead { margin: 10px 0 16px; font-weight: 700; color: var(--accent); }

/* ---------- Contact / 404 ---------- */
.pv-contact { display: grid; gap: 28px; }
@media (min-width: 900px) { .pv-contact { grid-template-columns: 5fr 7fr; align-items: start; } }
.pv-contact h1 { margin: 10px 0 12px; font-size: clamp(34px, 5vw, 56px); }
.pv-contact__info { margin-top: 24px; padding-top: 22px; border-top: 1px dashed var(--line); display: grid; gap: 16px; font-size: 15px; }
.pv-contact__info a { font-weight: 800; color: var(--accent); }
.pv-form { display: grid; gap: 18px; }
.pv-form__row { display: grid; gap: 16px; }
@media (min-width: 640px) { .pv-form__row { grid-template-columns: 1fr 1fr; } }
.pv-hp { display: none !important; }

.pv-404 { text-align: center; padding: 56px 24px; }
.pv-404__num { display: block; font-family: var(--font-display); font-size: clamp(110px, 22vw, 220px); font-weight: 800; line-height: .85; letter-spacing: -0.06em; color: var(--accent); }
.pv-404 h1 { margin-top: 14px; font-size: clamp(28px, 4vw, 44px); }
.pv-404 p { max-width: 46ch; margin: 14px auto 0; color: var(--ink-2); }
.pv-404__form { max-width: 460px; margin: 26px auto 0; display: flex; gap: 8px; }
.pv-404__form .pv-input { border-radius: 999px; }
.pv-404__links { margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ---------- Modal & toast ---------- */
.pv-modal { position: fixed; inset: 0; z-index: 60; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(10,8,6,.72); backdrop-filter: blur(4px); }
.pv-modal.is-open { display: flex; }
.pv-modal__box { width: 100%; max-width: 860px; max-height: 92vh; display: flex; flex-direction: column; background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--radius-lg); box-shadow: 10px 10px 0 var(--accent); overflow: hidden; animation: pv-pop .22s ease; }
@keyframes pv-pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.pv-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1.5px solid var(--ink); background: var(--paper-2); }
.pv-modal__head div { display: flex; flex-wrap: wrap; gap: 8px; }
.pv-modal__x { width: 36px; height: 36px; display: grid; place-items: center; border: 1.5px solid var(--ink); border-radius: 50%; background: transparent; }
.pv-modal__x:hover { background: var(--ink); color: var(--paper); }
.pv-modal__x svg { width: 16px; height: 16px; }
.pv-modal__grid { display: grid; gap: 22px; padding: 22px; overflow-y: auto; }
@media (min-width: 768px) { .pv-modal__grid { grid-template-columns: 5fr 7fr; } }
.pv-modal__img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 8px; border: 1.5px solid var(--ink); background: var(--paper-2); }
.pv-modal h3 { font-size: 26px; margin-bottom: 10px; }
.pv-modal__tools { margin-bottom: 12px; font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.pv-modal__tools span { color: var(--ink); }
.pv-modal__text { max-height: 230px; overflow-y: auto; padding: 14px; margin-bottom: 16px; background: var(--shell); color: var(--shell-ink); border-radius: 10px; font-family: var(--font-mono); font-size: 13px; line-height: 1.7; white-space: pre-line; user-select: all; }
.pv-modal__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.pv-modal__btns .pv-btn--accent { flex: 1; }

.pv-toast { position: fixed; z-index: 70; right: 20px; bottom: 20px; display: flex; align-items: center; gap: 10px; padding: 13px 20px 13px 14px; background: var(--ink); color: var(--paper); border: 1.5px solid var(--ink); border-radius: 999px; font-size: 14px; font-weight: 700; box-shadow: 4px 4px 0 var(--accent); opacity: 0; transform: translateY(16px); pointer-events: none; transition: all .25s ease; }
.pv-toast.is-visible { opacity: 1; transform: none; }
.pv-toast i { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--moss); color: #fff; font-style: normal; }
.pv-toast svg { width: 14px; height: 14px; }

/* ---------- Footer ---------- */
.pv-footer { margin-top: 72px; background: var(--shell); color: var(--shell-ink); border-top: 1.5px solid var(--ink); }
.pv-footer__big { padding-top: 48px; overflow: hidden; }
.pv-footer__word { font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 11vw, 168px); line-height: .85; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1.5px #5a5144; white-space: nowrap; user-select: none; margin-bottom: -.12em; }
.pv-footer__grid { display: grid; gap: 36px; padding: 44px 0 40px; grid-template-columns: 1fr; border-top: 1px solid #38322a; }
@media (min-width: 768px) { .pv-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pv-footer__grid { grid-template-columns: 4fr 2fr 3fr 3fr; } }
.pv-footer h3 { font-family: var(--font-mono); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #a79d8b; margin-bottom: 16px; }
.pv-footer p, .pv-footer li { font-size: 14px; color: #c9bfae; }
.pv-footer li + li { margin-top: 10px; }
.pv-footer a:hover { color: var(--accent); }
.pv-footer__brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; font-family: var(--font-display); font-size: 24px; font-weight: 800; color: #fff; }
.pv-footer__social { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.pv-footer__social a { padding: 6px 14px; border: 1px solid #5a5144; border-radius: 999px; font-size: 12px; font-weight: 800; color: var(--shell-ink); }
.pv-footer__social a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.pv-footer__news form { display: grid; gap: 8px; margin-top: 12px; }
.pv-footer__news input { width: 100%; padding: 12px 16px; border-radius: 999px; border: 1px solid #5a5144; background: #1b1713; color: #fff; font-size: 14px; }
.pv-footer__news input:focus { outline: none; border-color: var(--accent); }
.pv-footer__news .pv-note { margin-top: 12px; font-size: 12px; }
.pv-footer__links { margin-top: 24px; }
.pv-footer__links div { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; }
.pv-footer__bottom { display: flex; flex-direction: column; gap: 8px; padding: 20px 0 28px; border-top: 1px solid #38322a; font-size: 12px; color: #8f8676; }
@media (min-width: 640px) { .pv-footer__bottom { flex-direction: row; justify-content: space-between; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}


/* ==========================================================================
   v2 — Motion, graphics & natural-ratio (any image size) layout
   ========================================================================== */
/* scroll progress */
.pv-progress { position: fixed; top: 0; left: 0; width: 100%; height: 3px; z-index: 99; transform-origin: left; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--accent), var(--gold), #7c5cff); }

/* ---------- reveal on scroll (only when JS is on) ---------- */
.pv-rv { opacity: 0; }
.pv-rv.is-in { opacity: 1; animation: pv-rise .75s cubic-bezier(.2, .75, .2, 1) backwards; animation-delay: var(--d, 0s); }
@keyframes pv-rise { from { opacity: 0; transform: translateY(34px) scale(.97); } }
@keyframes pv-float { to { transform: translate(30px, -26px) scale(1.08); } }
@keyframes pv-twinkle { 0%, 100% { transform: scale(.55) rotate(0); opacity: .45; } 50% { transform: scale(1) rotate(90deg); opacity: 1; } }
@keyframes pv-shimmer { to { background-position: -200% 0; } }
@keyframes pv-marq { to { transform: translateX(-50%); } }
@keyframes pv-draw { to { stroke-dashoffset: 0; } }
@keyframes pv-spin { to { transform: rotate(360deg); } }
@keyframes pv-bob { 50% { transform: translateY(-10px); } }

/* ---------- header polish ---------- */
.pv-brand:hover .pv-brand__mark { animation: pv-spin .9s cubic-bezier(.3, .7, .2, 1); }
.pv-brand__mark { transition: box-shadow .2s ease; box-shadow: 3px 3px 0 var(--ink); }

/* ---------- buttons ---------- */
.pv-btn { position: relative; overflow: hidden; }
.pv-btn svg { transition: transform .25s ease; }
.pv-btn:hover svg { transform: translateX(4px); }
.pv-btn--accent::after, .pv-btn:not(.pv-btn--ghost):not(.pv-btn--accent)::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.35) 50%, transparent 65%);
  transform: translateX(-130%); transition: transform .6s ease; pointer-events: none;
}
.pv-btn--accent:hover::after, .pv-btn:not(.pv-btn--ghost):not(.pv-btn--accent):hover::after { transform: translateX(130%); }

/* ---------- HERO v2 ---------- */
.pv-hero { position: relative; isolation: isolate; }
.pv-hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.pv-blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; animation: pv-float 13s ease-in-out infinite alternate; translate: calc(var(--mx, 0) * var(--k, 24px)) calc(var(--my, 0) * var(--k, 24px)); }
.pv-blob--a { width: 460px; height: 460px; left: -140px; top: -160px; background: var(--accent); }
.pv-blob--b { width: 380px; height: 380px; right: 6%; top: 4%; background: var(--gold); animation-duration: 17s; --k: -34px; }
.pv-blob--c { width: 420px; height: 420px; left: 38%; bottom: -220px; background: #7c5cff; opacity: .38; animation-duration: 20s; --k: 18px; }
.pv-hero__dots { position: absolute; inset: 0; background-image: radial-gradient(var(--ink) 1px, transparent 1.5px); background-size: 26px 26px; opacity: .14; -webkit-mask-image: radial-gradient(circle at 72% 40%, #000, transparent 68%); mask-image: radial-gradient(circle at 72% 40%, #000, transparent 68%); }
.pv-hero__glow { position: absolute; inset: 0; background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 30%), color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%); transition: background .15s linear; }

.pv-spark { position: absolute; width: 26px; height: 26px; color: var(--accent); animation: pv-twinkle 3.4s ease-in-out infinite; z-index: 1; pointer-events: none; }
.pv-spark--2 { color: var(--ink); width: 18px; height: 18px; animation-delay: 1.1s; }
.pv-spark--3 { color: var(--gold); width: 22px; height: 22px; animation-delay: 2s; }

.pv-hero__title { position: relative; }
.pv-hero__title .pv-line { display: inline-block; animation: pv-rise .9s cubic-bezier(.2, .75, .2, 1) backwards; animation-delay: var(--d, 0s); }
.pv-hero__title em { position: relative; display: inline-block; }
.pv-squiggle { position: absolute; left: -2%; bottom: -.14em; width: 104%; height: .32em; color: var(--accent); overflow: visible; }
.pv-squiggle path { fill: none; stroke: currentColor; stroke-width: 6; stroke-linecap: round; stroke-dasharray: 400; stroke-dashoffset: 400; animation: pv-draw 1.3s .9s cubic-bezier(.4, .1, .2, 1) forwards; }
.pv-hero__eyebrow, .pv-hero__lead, .pv-hero__form, .pv-hero__pop { animation: pv-rise .8s cubic-bezier(.2, .75, .2, 1) backwards; }
.pv-hero__lead { animation-delay: .35s; } .pv-hero__form { animation-delay: .5s; } .pv-hero__pop { animation-delay: .65s; }

/* collage: natural ratio images, parallax */
.pv-collage__item { aspect-ratio: auto; width: 47%; padding: 0; background: var(--card); translate: calc(var(--mx, 0) * var(--k, 12px)) calc(var(--my, 0) * var(--k, 12px)); animation: pv-bob 7s ease-in-out infinite; }
.pv-collage__item img { width: 100%; height: auto; max-height: 360px; object-fit: contain; background: var(--paper-2); }
.pv-collage__item:nth-child(1) { --k: -14px; animation-delay: 0s; }
.pv-collage__item:nth-child(2) { --k: 22px; animation-delay: -2.2s; width: 44%; }
.pv-collage__item:nth-child(3) { --k: -30px; animation-delay: -4.4s; width: 50%; }
.pv-collage__stamp { animation: pv-spin 18s linear infinite; }
.pv-collage__stamp > div { animation: pv-spin 18s linear infinite reverse; }

/* ---------- ribbon / marquee ---------- */
.pv-ribbon { position: relative; z-index: 3; margin: 26px -3% 0; padding: 13px 0; background: var(--ink); color: var(--paper); border-block: 1.5px solid var(--ink); overflow: hidden; transform: rotate(-1.3deg); }
.pv-ribbon--alt { background: var(--accent); color: #fff; transform: rotate(1deg); margin-top: 0; }
.pv-ribbon__track { display: flex; width: max-content; animation: pv-marq 38s linear infinite; }
.pv-ribbon--alt .pv-ribbon__track { animation-direction: reverse; animation-duration: 46s; }
.pv-ribbon:hover .pv-ribbon__track { animation-play-state: paused; }
.pv-ribbon__item { display: inline-flex; align-items: center; gap: 26px; padding-right: 26px; white-space: nowrap; font-family: var(--font-display); font-size: clamp(20px, 2.4vw, 30px); font-weight: 700; font-style: italic; }
.pv-ribbon__item i { display: inline-block; width: 18px; height: 18px; background: currentColor; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); opacity: .85; font-style: normal; }
.pv-ribbon-wrap { padding-block: 14px 8px; overflow: hidden; }

/* ---------- Masonry: ANY image ratio shows in full ----------
   Plain responsive grid by default (works with no JS);
   main.js upgrades it to a packed masonry via row spans (.is-masonry). */
.pv-masonry { display: grid; grid-template-columns: repeat(var(--pv-cols-m, 2), minmax(0, 1fr)); gap: 14px; align-items: start; }
@media (min-width: 640px) { .pv-masonry { gap: 22px; } }
@media (min-width: 768px) { .pv-masonry { grid-template-columns: repeat(var(--pv-cols-t, 3), minmax(0, 1fr)); } }
@media (min-width: 1100px) { .pv-masonry { grid-template-columns: repeat(var(--pv-cols, 4), minmax(0, 1fr)); } }
.pv-masonry > * { min-width: 0; align-self: start; width: 100%; }
.pv-masonry.is-masonry { grid-auto-rows: 6px; row-gap: 0; }
.pv-masonry--wide { grid-template-columns: 1fr; }
@media (min-width: 700px) { .pv-masonry--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .pv-masonry--wide { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.pv-card { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease, translate .25s ease, box-shadow .25s ease; --rx: 0deg; --ry: 0deg; }
.pv-card:hover { transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)); translate: -3px -4px; box-shadow: 7px 8px 0 var(--ink); }
.pv-card__media { aspect-ratio: auto; min-height: 120px; }
.pv-card__media > a { display: block; width: 100%; height: auto; }
.pv-card__media img { width: 100%; height: auto; display: block; object-fit: contain; }
.pv-card__media.is-loading { min-height: 240px; background: linear-gradient(100deg, var(--paper-2) 30%, var(--card) 50%, var(--paper-2) 70%); background-size: 200% 100%; animation: pv-shimmer 1.3s linear infinite; }
.pv-card__media::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.4) 50%, transparent 62%); transform: translateX(-130%); transition: transform .9s ease; }
.pv-card:hover .pv-card__media::before { transform: translateX(130%); }
.pv-card__badges, .pv-card__actions { z-index: 2; }
.pv-card__media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; z-index: 1; pointer-events: none; background: linear-gradient(to top, rgba(10,8,6,.55), transparent); opacity: 0; transition: opacity .25s ease; }
@media (hover: hover) and (min-width: 640px) { .pv-card:hover .pv-card__media::after { opacity: 1; } }
.pv-card__copy:active { transform: scale(.88); }
.pv-card__title a { background-image: linear-gradient(var(--accent), var(--accent)); background-size: 0 2px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .35s ease, color .2s ease; }
.pv-card:hover .pv-card__title a { background-size: 100% 2px; }

/* category / collection tiles */
.pv-cat, .pv-col { transition: transform .25s ease, box-shadow .25s ease; }
.pv-col:hover { transform: translate(-3px, -4px); box-shadow: 7px 8px 0 var(--accent); }
.pv-cat__img::after, .pv-col::before { content: ""; }
.pv-col::before { position: absolute; inset: 0; z-index: 1; background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.28) 50%, transparent 62%); transform: translateX(-130%); transition: transform .9s ease; pointer-events: none; }
.pv-col:hover::before { transform: translateX(130%); }

/* section heads: kicker line draws in */
.pv-kicker::before { transform-origin: left; transition: transform .7s ease .15s; }
.pv-rv:not(.is-in) .pv-kicker::before, .pv-kicker.pv-rv:not(.is-in)::before { transform: scaleX(0); }
.pv-sec--tint { background-image: radial-gradient(color-mix(in srgb, var(--ink) 12%, transparent) 1px, transparent 1.5px); background-size: 22px 22px; background-color: var(--paper-2); }

/* ---------- Detail page: show the FULL image, whatever the ratio ---------- */
.pv-frame__img { aspect-ratio: auto; display: grid; place-items: center; background: repeating-conic-gradient(var(--paper-2) 0 25%, var(--card) 0 50%) 0 0 / 18px 18px; border-radius: 8px; overflow: hidden; }
.pv-frame__img img { width: 100%; height: auto; max-height: 78vh; object-fit: contain; }
.pv-detail--wide .pv-detail__grid { grid-template-columns: 1fr; }
.pv-detail--wide .pv-detail__sticky { position: static; max-width: 980px; width: 100%; margin-inline: auto; }
.pv-detail--wide .pv-frame__img img { max-height: none; }
@media (min-width: 1024px) { .pv-detail--wide .pv-stack { max-width: 980px; margin-inline: auto; width: 100%; } }
.pv-term { transition: box-shadow .3s ease, translate .3s ease; }
.pv-term:hover { translate: -2px -3px; box-shadow: 11px 11px 0 var(--accent); }

/* quick preview modal: full image, any ratio */
.pv-modal__img { aspect-ratio: auto; width: 100%; height: auto; max-height: 62vh; object-fit: contain; background: var(--paper-2); }

/* ---------- confetti on copy ---------- */
.pv-confetti { position: fixed; left: 0; top: 0; width: 0; height: 0; z-index: 120; pointer-events: none; }
.pv-conf { position: absolute; width: 9px; height: 9px; border-radius: 2px; background: var(--c, var(--accent)); animation: pv-conf .95s cubic-bezier(.15, .8, .3, 1) forwards; }
@keyframes pv-conf { from { transform: translate(0, 0) rotate(0) scale(1); opacity: 1; } to { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(.4); opacity: 0; } }

/* ---------- footer extras ---------- */
.pv-footer { position: relative; overflow: hidden; }
.pv-footer::before { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -180px; border-radius: 50%; background: var(--accent); filter: blur(120px); opacity: .22; pointer-events: none; animation: pv-float 16s ease-in-out infinite alternate; }
.pv-footer__word { transition: -webkit-text-stroke-color .4s ease, color .4s ease; }
.pv-footer__big:hover .pv-footer__word { color: color-mix(in srgb, var(--accent) 85%, transparent); -webkit-text-stroke-color: var(--accent); }
.pv-footer { margin-top: 40px; }

@media (prefers-reduced-motion: reduce) {
  .pv-rv { opacity: 1 !important; }
  .pv-ribbon__track, .pv-blob, .pv-spark, .pv-collage__item, .pv-collage__stamp, .pv-collage__stamp > div { animation: none !important; }
  .pv-squiggle path { stroke-dashoffset: 0; }
}


/* ==========================================================================
   v3 — in-feed ads, YouTube, sharing, template assets
   ========================================================================== */
[hidden] { display: none !important; }

/* in-feed ad sitting between prompt cards */
.pv-adcard { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 250px; padding: 30px 10px 12px; text-align: center; overflow: hidden; background: var(--paper-2); border: 1.5px dashed var(--line); border-radius: var(--radius); }
.pv-adcard .pv-ad__label { position: absolute; top: 9px; left: 0; right: 0; margin: 0; }
.pv-adcard .ad-slot-container { width: 100%; max-width: 100%; }
.pv-adcard ins, .pv-adcard iframe, .pv-adcard img { max-width: 100%; }

/* card share button */
.pv-card__sharebtn { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 1.5px solid var(--ink); border-radius: 50%; background: var(--card); color: var(--ink); }
.pv-card__sharebtn:hover { background: var(--ink); color: var(--paper); }
.pv-card__sharebtn svg { width: 15px; height: 15px; }

/* share bar (prompt + template pages) */
.pv-sharebar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; padding: 16px 20px; background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--radius-lg); }
.pv-sharebar strong { font-family: var(--font-display); font-size: 20px; }
.pv-sharebar__btns { display: flex; flex-wrap: wrap; gap: 8px; }

/* share modal */
.pv-modal__box--sm { max-width: 460px; }
.pv-sharegrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 20px; }
.pv-sharegrid .pv-chip { justify-content: center; padding: 12px; font-size: 14px; }
.pv-sharemodal__title { padding: 6px 20px 0; font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.pv-sharemodal__url { margin: 0 20px 20px; display: flex; gap: 8px; }
.pv-sharemodal__url input { flex: 1; min-width: 0; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); font-size: 13px; }

/* YouTube lite embed */
.pv-yt { position: relative; aspect-ratio: 16 / 9; background: #000; border: 1.5px solid var(--ink); border-radius: 12px; overflow: hidden; }
.pv-yt__btn { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.pv-yt__btn img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity .3s; opacity: .92; }
.pv-yt__btn:hover img { transform: scale(1.04); opacity: 1; }
.pv-yt__play { position: absolute; left: 50%; top: 50%; width: 74px; height: 74px; transform: translate(-50%, -50%); display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; box-shadow: 0 0 0 9px rgba(255,255,255,.25); transition: transform .2s ease; }
.pv-yt__btn:hover .pv-yt__play { transform: translate(-50%, -50%) scale(1.1); }
.pv-yt__play svg { width: 34px; height: 34px; margin-left: 4px; }
.pv-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pv-yt noscript a { position: absolute; inset: auto 12px 12px auto; color: #fff; background: rgba(0,0,0,.7); padding: 6px 12px; border-radius: 999px; font-size: 13px; }

/* template assets: QR codes, files, links, codes */
.pv-assets { display: grid; gap: 18px; }
.pv-asset-group { background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--radius-lg); overflow: hidden; }
.pv-asset-group__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 18px; background: var(--ink); color: var(--paper); }
.pv-asset-group__head h3 { font-size: 20px; color: inherit; }
.pv-asset-group__head span { font-family: var(--font-mono); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.pv-asset-group__body { display: grid; gap: 14px; padding: 16px; }
.pv-qrgrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.pv-qr { text-align: center; padding: 12px; background: #fff; color: #16130f; border: 1.5px dashed #b9b09d; border-radius: 12px; }
.pv-qr img { width: 100%; max-width: 220px; height: auto; margin: 0 auto; }
.pv-qr__cap { margin-top: 8px; font-size: 13px; font-weight: 800; }
.pv-qr__hint { font-size: 11px; color: #6b6355; }
.pv-qr a.pv-chip { margin-top: 8px; color: #16130f; border-color: #16130f; }
.pv-asset-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); }
.pv-asset-row__info { min-width: 0; }
.pv-asset-row__info strong { display: block; font-size: 15px; overflow-wrap: anywhere; }
.pv-asset-row__info small { color: var(--ink-3); font-size: 12px; font-weight: 600; }
.pv-codebox { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; background: var(--shell); color: var(--shell-ink); border-radius: 10px; font-family: var(--font-mono); font-size: 13.5px; width: 100%; }
.pv-codebox code { flex: 1; overflow-wrap: anywhere; white-space: pre-wrap; }
.pv-appchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pv-appchip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border: 1.5px solid var(--ink); border-radius: 999px; font-size: 11px; font-weight: 800; background: var(--paper); }
.pv-appchip i { font-style: normal; opacity: .6; }
.pv-appfilter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }


/* ==========================================================================
   v4 — AI buttons, live visitors, WhatsApp, hero trust badges
   ========================================================================== */
/* Open in ChatGPT / Gemini */
.pv-term__foot { flex-wrap: wrap; }
.pv-term__foot .pv-btn--accent { flex: 1 1 200px; }
.pv-btn--ai { flex: 1 1 150px; color: #fff; border-color: transparent; }
.pv-btn--ai svg { width: 15px; height: 15px; }
.pv-btn--chatgpt { background: #10a37f; }
.pv-btn--chatgpt:hover { background: #0c8a6b; border-color: transparent; color: #fff; }
.pv-btn--gemini { background: linear-gradient(120deg, #4285f4, #8e67d6 55%, #d96570); }
.pv-btn--gemini:hover { background: linear-gradient(120deg, #2f6fe0, #7a52c7 55%, #c94f5b); border-color: transparent; color: #fff; }
.pv-modal__btns .pv-btn--ai { flex: 1 1 140px; }
.pv-aibar { display: flex; flex-wrap: wrap; gap: 10px; }

/* live visitors pill */
.pv-live { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 10px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--card); font-size: 13px; font-weight: 700; white-space: nowrap; color: var(--ink); }
.pv-live b { font-family: var(--font-mono); font-weight: 800; display: inline-block; }
.pv-live b.is-bump { animation: pv-bumpnum .6s ease; }
@keyframes pv-bumpnum { 40% { transform: translateY(-3px) scale(1.25); color: var(--accent); } }
.pv-live__dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: #22c55e; flex: none; }
.pv-live__dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #22c55e; opacity: 0; animation: pv-ping 1.8s ease-out infinite; }
@keyframes pv-ping { 0% { transform: scale(.5); opacity: .8; } 100% { transform: scale(1.5); opacity: 0; } }
.pv-live--header { display: none; padding: 4px 11px 4px 9px; font-size: 12px; }
@media (min-width: 1280px) { .pv-live--header { display: inline-flex; } }
.pv-live--hero { margin-left: 10px; }
.pv-live--footer { border-color: #5a5144; background: #1b1713; color: var(--shell-ink); }
.pv-live--drawer { margin: 14px 0 4px; }
@media (prefers-reduced-motion: reduce) { .pv-live__dot::after { animation: none; } }

/* hero trust row */
.pv-hero__eyebrows { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pv-trust { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 18px; animation: pv-rise .8s .75s cubic-bezier(.2,.75,.2,1) backwards; }
.pv-trust li { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.pv-trust li::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%; background: var(--moss) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12.5l4.5 4.5L19 7.5'/></svg>") center/12px no-repeat; }

/* floating WhatsApp button */
.pv-wa { position: fixed; bottom: 18px; z-index: 45; display: inline-flex; align-items: center; gap: 8px; padding: 12px; border-radius: 999px; background: #25d366; color: #fff; font-weight: 800; font-size: 14px; border: 2px solid #0b3d20; box-shadow: 3px 4px 0 #0b3d20; transition: transform .2s ease, box-shadow .2s ease; }
.pv-wa--left { left: 16px; }
.pv-wa--right { right: 16px; }
.pv-wa:hover { transform: translate(-2px, -2px); box-shadow: 5px 6px 0 #0b3d20; color: #fff; }
.pv-wa svg { width: 26px; height: 26px; flex: none; }
.pv-wa span { display: none; padding-right: 6px; }
@media (min-width: 900px) { .pv-wa span { display: inline; } }
.pv-wa::after { content: ""; position: absolute; inset: -6px; border-radius: 999px; border: 2px solid #25d366; opacity: 0; animation: pv-ping 2.6s ease-out infinite; pointer-events: none; }
.pv-toast { z-index: 80; }
@media (prefers-reduced-motion: reduce) { .pv-wa::after { animation: none; } }

/* community button in the mobile drawer / WhatsApp chip in footer */
.pv-drawer__cta { display: flex; margin-top: 16px; }
.pv-footer__social a.is-wa { border-color: #25d366; color: #7ee2a3; }
.pv-footer__social a.is-wa:hover { background: #25d366; border-color: #25d366; color: #fff; }
.pv-footer__brand img { height: 38px; width: auto; max-width: 220px; object-fit: contain; border-radius: 6px; }

/* header: keep brand, nav and the Community button on one line even with long labels */
.pv-brand__name, .pv-community, .pv-nav__link, .pv-nav__btn { white-space: nowrap; }
.pv-community { max-width: 210px; overflow: hidden; text-overflow: ellipsis; padding: 10px 16px; }
.pv-header__bar { gap: 12px; }
.pv-live--header { display: none; }
@media (min-width: 1480px) { .pv-live--header { display: inline-flex; } }
@media (min-width: 1280px) and (max-width: 1479px) { .pv-search-mini input { width: 170px; } .pv-search-mini input:focus { width: 210px; } }
@media (max-width: 1100px) { .pv-brand__name { font-size: 22px; } }
.pv-term__foot .pv-btn { padding: 13px 16px; font-size: 14px; }
.pv-btn--ai { white-space: nowrap; }
.pv-term__foot .pv-btn--accent { flex: 1 1 150px; }
