:root {
  --bg: #ffffff;
  --paper-line: #ececec;
  --ink: #161616;
  --ink-soft: #5a5a5a;
  --ink-faint: #9a9a9a;
  --accent-blue: #1a4ec4;
  --accent-blue-soft: rgba(26, 78, 196, 0.08);
  --accent-yellow: #facc15;
  --accent-yellow-soft: rgba(250, 204, 21, 0.16);
  --accent-frog: #5fb750;
  --accent-frog-soft: rgba(95, 183, 80, 0.12);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  min-height: 100%;
  min-height: 100dvh;
}
body { padding-top: 36px; }

/* clean white — no paper texture */

a { color: inherit; }

/* ── TICKER ───────────────────────────────────────────── */
#ticker-bar {
  position: fixed; top: 0; left: 0; right: 0;
  height: 36px; z-index: 50;
  background: var(--accent-yellow);
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
  display: flex; align-items: center;
  overflow: hidden;
  font-family: "Patrick Hand", cursive;
  font-size: 18px;
  letter-spacing: 2px;
}
.ticker-track {
  display: flex; gap: 24px;
  white-space: nowrap;
  animation: tickerScroll 40s linear infinite;
  padding-left: 24px;
  width: max-content;
}
.t-mark { flex-shrink: 0; font-weight: 700; }
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── X icon top right ─────────────────────────────────── */
#social {
  position: fixed; top: 50px; right: 18px; z-index: 20;
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--bg);
  border-radius: 50%;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
  box-shadow: 0 3px 0 rgba(0,0,0,0.18);
}
#social:hover { transform: translateY(-1px); box-shadow: 0 5px 0 rgba(0,0,0,0.22); }

/* ── HERO ─────────────────────────────────────────────── */
#hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 60px 22px 48px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

/* LEFT — pepe + brand */
.hero-left { display: flex; flex-direction: column; align-items: center; text-align: center; }

/* video stage replacing the click-to-ascend pepe */
.pepe-video-stage {
  position: relative;
  width: 360px; height: 360px;
  margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  user-select: none;
}
.pepe-video {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  background: transparent;
}
.pepe-video-stage .pepe-doodle { opacity: 1; }

.pepe-stage {
  position: relative;
  width: 360px; height: 360px;
  cursor: pointer;
  outline: none;
  user-select: none;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.pepe-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  transition: opacity 280ms ease, transform 280ms ease;
}
.pepe-img--super {
  filter: drop-shadow(0 0 32px rgba(250, 204, 21, 0.55));
  opacity: 0;
  transform: scale(0.92);
}
.pepe-stage.is-ascended .pepe-img--smol {
  opacity: 0;
  transform: scale(0.92);
}
.pepe-stage.is-ascended .pepe-img--super {
  opacity: 1;
  transform: scale(1);
  animation: ascendBurst 520ms cubic-bezier(0.4, 1.7, 0.5, 1) both;
}
@keyframes ascendBurst {
  0%   { opacity: 0; transform: scale(0.55) rotate(-6deg); filter: drop-shadow(0 0 0px rgba(250,204,21,0)); }
  55%  { opacity: 1; transform: scale(1.08) rotate(2deg);  filter: drop-shadow(0 0 56px rgba(250,204,21,0.95)); }
  100% { opacity: 1; transform: scale(1) rotate(0);        filter: drop-shadow(0 0 32px rgba(250,204,21,0.55)); }
}
.pepe-doodle {
  position: absolute;
  font-family: "Patrick Hand", cursive;
  user-select: none;
  pointer-events: none;
  opacity: 0;
  transition: opacity 380ms ease;
}
.pepe-stage.is-ascended .pepe-doodle { opacity: 1; }
.pepe-doodle--star-1 { top: 6%;  right: 8%;  font-size: 26px; color: #facc15; animation: twinkle 2.4s ease-in-out infinite; }
.pepe-doodle--star-2 { top: 22%; right: 2%;  font-size: 18px; color: #fbbf24; animation: twinkle 3.0s ease-in-out 0.4s infinite; }
.pepe-doodle--star-3 { top: 14%; left: 6%;   font-size: 16px; color: #fde047; animation: twinkle 2.7s ease-in-out 0.8s infinite; }
@keyframes twinkle {
  0%, 100% { transform: scale(0.85) rotate(0deg); }
  50%      { transform: scale(1.15) rotate(10deg); }
}
.pepe-stamp {
  position: absolute;
  top: 14%; right: -4%;
  font-family: "Patrick Hand", cursive;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 700;
  color: #d62b2b;
  letter-spacing: 4px;
  border: 3px solid #d62b2b;
  padding: 6px 14px;
  border-radius: 4px;
  transform: rotate(14deg) scale(0.8);
  opacity: 0;
  pointer-events: none;
  text-transform: uppercase;
  background: rgba(255,255,255,0.6);
}
.pepe-stage.is-ascended .pepe-stamp {
  animation: stampSlam 360ms cubic-bezier(0.4, 1.7, 0.5, 1) 200ms forwards;
}
@keyframes stampSlam {
  0%   { opacity: 0; transform: rotate(14deg) scale(2.2); }
  60%  { opacity: 1; transform: rotate(14deg) scale(0.92); }
  100% { opacity: 0.92; transform: rotate(14deg) scale(1); }
}
.pepe-hint {
  position: absolute;
  bottom: -8px; left: 50%; transform: translateX(-50%);
  font-family: "Patrick Hand", cursive;
  font-size: 16px;
  color: var(--ink-faint);
  letter-spacing: 1px;
  white-space: nowrap;
  animation: hintBob 1.6s ease-in-out infinite;
}
@keyframes hintBob {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.6; }
  50%      { transform: translate(-50%, -3px); opacity: 1; }
}
.pepe-stage.is-ascended .pepe-hint { opacity: 0; pointer-events: none; }

.brand {
  position: relative;
  font-family: "Patrick Hand", cursive;
  font-size: clamp(64px, 9vw, 120px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin-top: 22px;
  display: inline-block;
}
.brand::after {
  content: "";
  position: absolute;
  left: 6%; right: 6%;
  bottom: 0.05em;
  height: 0.12em;
  background: var(--accent-yellow);
  z-index: -1;
  transform: skewX(-6deg) rotate(-1deg);
  border-radius: 6px;
}
.brand-mark { color: var(--accent-frog); }

.tagline {
  font-family: "Patrick Hand", cursive;
  font-size: clamp(20px, 2.4vw, 28px);
  margin-top: 6px;
  color: var(--ink-soft);
}
.tagline em {
  color: var(--accent-yellow);
  background: var(--ink);
  padding: 0 6px;
  font-style: normal;
  border-radius: 3px;
}

#ca-box {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 22px;
  padding: 9px 16px;
  background: var(--accent-blue-soft);
  border: 2px solid var(--accent-blue);
  border-radius: 999px;
  cursor: pointer;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--ink);
  letter-spacing: 0.8px;
  max-width: 96vw;
  transition: background 160ms, border-color 160ms;
}
#ca-box:hover { background: rgba(26,78,196,0.18); }
.ca-label { color: var(--accent-blue); font-weight: 700; letter-spacing: 1.5px; flex-shrink: 0; }
.ca-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca-copy { font-size: 9.5px; color: var(--ink-faint); letter-spacing: 1.5px; text-transform: uppercase; flex-shrink: 0; }

.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 18px; }
.cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
  text-decoration: none;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: transform 140ms, box-shadow 140ms, background 140ms, color 140ms;
  box-shadow: 0 3px 0 var(--ink);
}
.cta-btn:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--ink); }
.cta-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.cta-btn--primary {
  background: var(--accent-yellow);
  border-color: var(--ink);
  color: var(--ink);
}
.cta-btn--primary:hover { background: #fde047; }

/* RIGHT — ASK PEP (ChatGPT-style minimal, no window frame) */
.hero-right { width: 100%; }
.ask-shell {
  display: flex; flex-direction: column;
  max-width: 560px; margin: 0 auto;
  width: 100%;
}
.ask-greet {
  font-family: "Patrick Hand", cursive;
  font-size: clamp(28px, 3.2vw, 38px);
  color: var(--ink);
  text-align: center;
  margin-bottom: 6px;
  letter-spacing: 0.3px;
  line-height: 1.15;
}
.ask-sub {
  font-family: "Inter", sans-serif;
  font-size: clamp(13px, 1.4vw, 15px);
  color: var(--ink-soft);
  text-align: center;
  margin: 0 auto 22px;
  max-width: 420px;
  line-height: 1.5;
}

/* thread renders ABOVE the prompt bar; empty by default */
.ask-thread {
  display: flex; flex-direction: column; gap: 18px;
  max-height: 420px;
  overflow-y: auto;
  padding: 4px 2px 16px;
  margin: 0 -2px;
}
.ask-thread:empty { display: none; }
.ask-msg { display: flex; flex-direction: column; gap: 4px; }
.ask-msg--user { align-items: flex-end; }
.ask-msg--bot  { align-items: flex-start; }
.ask-bubble {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  max-width: 100%;
  word-wrap: break-word;
}
.ask-msg--user .ask-bubble {
  background: #f3f3f3;
  border-radius: 18px;
  padding: 10px 14px;
  max-width: 80%;
}
.ask-msg--bot .ask-bubble {
  padding: 0;
  max-width: 100%;
}
.ask-msg--bot .ask-bubble strong { color: var(--accent-blue); font-weight: 700; }
.ask-msg--bot .ask-bubble em { color: var(--accent-frog); font-style: normal; font-weight: 600; }
.ask-msg--bot .ask-bubble code {
  background: var(--accent-yellow-soft);
  padding: 1px 5px;
  border-radius: 3px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9em;
}
.ask-typing { display: inline-flex; gap: 4px; padding: 6px 0; }
.ask-typing span {
  width: 6px; height: 6px;
  background: var(--ink-faint);
  border-radius: 50%;
  animation: typingBounce 1.2s ease-in-out infinite;
}
.ask-typing span:nth-child(2) { animation-delay: 0.18s; }
.ask-typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes typingBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40%           { transform: translateY(-4px); opacity: 1; }
}

/* PROMPT BAR — ChatGPT style: pill, centered, soft border, prominent ASCEND */
.ask-prompt {
  display: flex; align-items: flex-end; gap: 8px;
  background: #fff;
  border: 1.5px solid #e0e0e0;
  border-radius: 28px;
  padding: 8px 8px 8px 18px;
  box-shadow: 0 2px 14px rgba(0,0,0,0.04);
  transition: border-color 160ms, box-shadow 160ms;
}
.ask-prompt:focus-within {
  border-color: var(--ink);
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}
.ask-prompt textarea {
  flex: 1;
  background: transparent;
  border: none; outline: none; resize: none;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.5;
  padding: 8px 0;
  min-height: 24px; max-height: 160px;
}
.ask-prompt textarea::placeholder { color: var(--ink-faint); }
.ask-ascend {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-yellow);
  color: var(--ink);
  border: none;
  border-radius: 999px;
  padding: 9px 16px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 140ms, transform 140ms, box-shadow 140ms;
  box-shadow: 0 0 0 0 rgba(250,204,21,0);
}
.ask-ascend:hover:not(:disabled) {
  background: #fde047;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(250,204,21,0.45);
}
.ask-ascend:disabled { opacity: 0.4; cursor: not-allowed; }

/* chips — small, subtle, below the bar */
.ask-chips {
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;
  margin-top: 12px;
}
.ask-chip {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  padding: 5px 11px;
  border: 1px solid #e0e0e0;
  background: #fff;
  color: var(--ink-soft);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 140ms, color 140ms, background 140ms;
}
.ask-chip:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: #fafafa;
}

.ask-disclaimer {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: var(--ink-faint);
  letter-spacing: 0.8px;
  text-transform: lowercase;
  margin-top: 16px;
  text-align: center;
}

/* ── PEP-IFY (PFP generator section) ──────────────────── */
#pepify-section {
  position: relative;
  max-width: 100%;
  margin: 60px 0 0;
  padding: 80px 22px 50px;
  border-top: 2px dashed var(--paper-line);
  text-align: center;
  overflow: hidden;
}
.pepify-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
}

/* big background syringes — soft, rotated, behind the card */
.pepify-bg-syringe {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  opacity: 0.18;
}
.pepify-bg-syringe--1 {
  width: 280px;
  top: -20px; left: -40px;
  transform: rotate(-30deg);
  animation: pepifyFloat 7s ease-in-out infinite;
}
.pepify-bg-syringe--2 {
  width: 220px;
  bottom: 40px; right: -30px;
  transform: rotate(45deg);
  opacity: 0.14;
  animation: pepifyFloat 9s ease-in-out 1.5s infinite;
}
.pepify-bg-syringe--3 {
  width: 160px;
  top: 50%; left: 5%;
  transform: rotate(72deg);
  opacity: 0.08;
  animation: pepifyFloat 11s ease-in-out 0.6s infinite;
}
@keyframes pepifyFloat {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -10px; }
}
@media (max-width: 880px) {
  .pepify-bg-syringe--1 { width: 180px; top: 0; left: -50px; }
  .pepify-bg-syringe--2 { width: 140px; right: -40px; }
  .pepify-bg-syringe--3 { display: none; }
}
@media (max-width: 640px) {
  .pepify-bg-syringe--2 { display: none; }
  .pepify-bg-syringe--1 { width: 130px; opacity: 0.12; }
}

.pepify-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--accent-frog);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.pepify-heading {
  font-family: "Patrick Hand", cursive;
  font-size: clamp(34px, 5vw, 56px);
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.05;
  letter-spacing: 0.01em;
}
.pepify-heading em {
  position: relative;
  display: inline-block;
  font-style: normal;
  color: var(--ink);
  z-index: 1;
}
.pepify-heading em::after {
  content: "";
  position: absolute;
  left: -4%; right: -4%;
  bottom: 0.08em;
  height: 0.32em;
  background: var(--accent-yellow);
  z-index: -1;
  transform: skewX(-6deg) rotate(-1deg);
  border-radius: 6px;
}
.pepify-sub {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 540px;
  margin: 0 auto 22px;
  line-height: 1.6;
}
.pepify-sub strong { color: var(--ink); font-weight: 700; }
.pepify-sub em {
  color: var(--accent-blue);
  font-style: normal;
  font-weight: 700;
}
.pepify-counter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--accent-frog-soft);
  border: 1.5px solid var(--accent-frog);
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 1.2px;
  color: var(--ink);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.pepify-counter strong {
  color: var(--accent-frog);
  font-weight: 700;
  font-size: 13px;
}
.pepify-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-frog);
  box-shadow: 0 0 8px rgba(95,183,80,0.6);
  animation: pulseDotPep 1.4s ease-in-out infinite;
}
@keyframes pulseDotPep {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

.pepify-card {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 18px;
  padding: 24px 22px 24px;
  box-shadow: 0 6px 0 var(--ink), 0 18px 40px rgba(0,0,0,0.06);
  max-width: 600px;
  margin: 0 auto;
  display: flex; flex-direction: column;
}
.pepify-equation {
  display: flex; align-items: center;
  gap: clamp(6px, 1.4vw, 14px);
  width: 100%; justify-content: center;
  margin-bottom: 22px;
}
.pep-op {
  font-family: "Patrick Hand", cursive;
  font-size: clamp(28px, 4vw, 44px);
  color: var(--ink);
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1;
}
.pep-syringe-cell {
  position: relative;
  flex-shrink: 0;
  width: clamp(46px, 9vw, 72px);
  aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
}
.pep-syringe-cell img {
  width: 100%; height: 100%;
  object-fit: contain;
  transform: rotate(-12deg);
  animation: syringeWiggle 2.4s ease-in-out infinite;
}
@keyframes syringeWiggle {
  0%, 100% { transform: rotate(-12deg); }
  50%      { transform: rotate(-2deg) translateY(-2px); }
}
.pep-tag--mid {
  bottom: -4px; left: 50%;
  transform: translateX(-50%);
  font-size: 8px;
  background: var(--ink);
  color: var(--accent-yellow);
  padding: 2px 6px;
}
.pep-slot {
  position: relative;
  flex: 1;
  aspect-ratio: 1 / 1;
  background: #fafafa;
  border: 1.5px dashed #d6d6d6;
  border-radius: 14px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  cursor: default;
  transition: border-color 180ms, background 180ms;
}
.pep-slot--in { cursor: pointer; }
.pep-slot--in:hover {
  border-color: var(--accent-blue);
  border-style: solid;
  background: var(--accent-blue-soft);
}
.pep-slot.is-dragover {
  border-color: var(--accent-blue);
  background: var(--accent-blue-soft);
}
.pep-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.pep-placeholder {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--ink-soft);
  text-align: center;
  padding: 12px;
}
.pep-icon { color: var(--ink-soft); margin-bottom: 2px; }
.pep-placeholder-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; letter-spacing: 2.5px;
  color: var(--ink); font-weight: 700;
}
.pep-placeholder small {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px; letter-spacing: 1.5px;
  color: var(--ink-faint); text-transform: lowercase;
}
.pep-tag {
  position: absolute;
  bottom: 6px; left: 6px;
  background: rgba(0,0,0,0.78);
  color: var(--accent-yellow);
  font-family: "JetBrains Mono", monospace;
  font-size: 8.5px;
  letter-spacing: 1.4px;
  padding: 3px 6px;
  border-radius: 4px;
  font-weight: 700;
}
.pep-arrow {
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent-blue);
  animation: pepArrowPulse 1.6s ease-in-out infinite;
}
.pep-arrow svg { filter: drop-shadow(0 0 6px rgba(26,78,196,0.3)); }
@keyframes pepArrowPulse {
  0%, 100% { transform: translateX(0); opacity: 0.7; }
  50%      { transform: translateX(4px); opacity: 1; }
}

/* example image inside output slot before generation */
.pep-placeholder--example { position: absolute; inset: 0; padding: 0; gap: 0; overflow: hidden; }
.pep-example-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain;
  background: #fff;
}
.pep-example-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding: 10px 8px; gap: 4px;
  background: linear-gradient(to top, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.4) 50%, transparent 100%);
}
.pep-example-overlay .pep-placeholder-label {
  color: var(--accent-blue); font-size: 10px; letter-spacing: 2.2px;
}
.pep-example-overlay small {
  color: var(--ink); font-size: 9px;
}

.pep-btn {
  display: inline-flex; width: 100%;
  align-items: center; justify-content: center;
  gap: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 13px 20px;
  background: var(--accent-yellow);
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
  border: 2px solid var(--ink);
  transition: transform 140ms, box-shadow 140ms, background 140ms;
  border-radius: 999px;
  box-shadow: 0 3px 0 var(--ink);
  margin-bottom: 8px;
}
.pep-btn:hover:not(:disabled) {
  background: #fde047;
  transform: translateY(-1px);
  box-shadow: 0 5px 0 var(--ink);
}
.pep-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.pep-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.pep-btn--ghost {
  background: #fff;
  color: var(--ink);
}
.pep-btn--ghost:hover:not(:disabled) {
  background: #fafafa;
}
.pep-btn.is-loading { position: relative; color: transparent !important; }
.pep-btn.is-loading svg { opacity: 0; }
.pep-btn.is-loading::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px; top: 50%; left: 50%;
  margin: -7px 0 0 -7px;
  border: 2px solid var(--ink);
  border-top-color: transparent;
  border-radius: 50%;
  animation: pepSpin 700ms linear infinite;
}
@keyframes pepSpin { to { transform: rotate(360deg); } }

/* progress bar */
.pep-progress { margin-top: 6px; display: flex; flex-direction: column; gap: 6px; }
.pep-progress-bar {
  width: 100%; height: 6px;
  background: rgba(0,0,0,0.06);
  border: 1px solid rgba(95,183,80,0.25);
  border-radius: 4px;
  overflow: hidden;
}
.pep-progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent-frog), #8aff95);
  box-shadow: 0 0 12px rgba(95,183,80,0.5);
  transition: width 200ms ease;
}
.pep-progress-text {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px; letter-spacing: 1.2px;
  color: var(--ink-soft); text-align: center;
}
.pep-progress-text span:first-child { color: var(--accent-frog); font-weight: 700; }

.pep-status {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.5px;
  min-height: 16px;
  text-align: center;
  margin-top: 4px;
}
.pep-status.is-error { color: #d62b2b; }
.pep-status.is-success { color: var(--accent-frog); }

#pfpOutImg { cursor: zoom-in; }

/* ── MODAL ─────────────────────────────────────────────── */
.pep-modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
  z-index: 1000;
  animation: pepModalFade 250ms ease-out;
}
.pep-modal.is-open { display: flex; }
@keyframes pepModalFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.pep-modal-card {
  width: 100%; max-width: 480px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 18px;
  padding: 26px 24px 22px;
  box-shadow: 0 6px 0 var(--ink), 0 24px 80px rgba(0,0,0,0.4);
  position: relative;
  animation: pepModalPop 350ms cubic-bezier(0.4, 1.6, 0.5, 1);
  text-align: center;
}
@keyframes pepModalPop {
  from { transform: scale(0.92) translateY(10px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}
.pep-modal-close {
  position: absolute; top: 12px; right: 12px;
  width: 30px; height: 30px; border-radius: 50%;
  background: #f3f3f3; border: 1.5px solid var(--ink);
  color: var(--ink); cursor: pointer;
  font-size: 14px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  font-family: inherit;
  transition: background 160ms;
}
.pep-modal-close:hover { background: var(--accent-yellow); }
.pep-modal-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; letter-spacing: 3px;
  color: var(--accent-frog); text-transform: uppercase;
  margin-bottom: 8px;
}
.pep-modal-title {
  font-family: "Patrick Hand", cursive;
  font-size: 28px; font-weight: 600;
  color: var(--ink); margin: 0 0 18px;
}
.pep-modal-imgwrap {
  width: 100%; aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  margin-bottom: 18px;
  border: 2px solid var(--ink);
  box-shadow: 0 4px 0 var(--ink);
}
.pep-modal-imgwrap img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}
.pep-modal-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pep-modal-actions .pep-btn { flex: 1; margin-bottom: 0; }
@media (max-width: 640px) {
  .pep-modal { padding: 16px; }
  .pep-modal-card { padding: 22px 18px 18px; }
  .pep-modal-title { font-size: 24px; }
  #pepify-section { padding: 60px 14px 36px; }
  .pepify-card { padding: 16px 12px 18px; }
  .pepify-equation { gap: 5px; }
  .pep-op { font-size: 24px; }
  .pep-btn { padding: 12px 16px; font-size: 12px; }
}

/* ── LORE strip ───────────────────────────────────────── */
#lore {
  max-width: 1180px;
  margin: 60px auto;
  padding: 0 22px;
  text-align: center;
  border-top: 2px dashed var(--paper-line);
  padding-top: 60px;
}
.lore-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--accent-blue);
  text-transform: uppercase;
  margin-bottom: 22px;
}
.lore-banner {
  background: #ffffff;
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 6px 0 var(--ink), 0 18px 40px rgba(0,0,0,0.08);
  display: flex; align-items: center; justify-content: center;
  max-width: 920px; margin: 0 auto;
}
.lore-banner img { max-width: 100%; height: auto; }
.lore-caption {
  font-family: "Patrick Hand", cursive;
  font-size: clamp(18px, 2.2vw, 24px);
  margin-top: 22px;
  color: var(--ink-soft);
}

/* ── REGISTRY ─────────────────────────────────────────── */
#registry {
  max-width: 920px;
  margin: 0 auto;
  padding: 60px 22px 30px;
  border-top: 2px dashed var(--paper-line);
}
.reg-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--accent-frog);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 14px;
}
.reg-heading {
  font-family: "Patrick Hand", cursive;
  font-size: clamp(28px, 3.4vw, 40px);
  text-align: center;
  margin-bottom: 8px;
  color: var(--ink);
}
.reg-heading strong {
  color: var(--accent-frog);
  font-family: inherit;
}
.reg-sub {
  text-align: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--ink-faint);
  margin-bottom: 28px;
  text-transform: lowercase;
}

.reg-feed { display: flex; flex-direction: column; gap: 14px; }
.reg-card {
  background: #ffffff;
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 4px 0 var(--ink);
}
.reg-card .reg-prompt {
  font-family: "Patrick Hand", cursive;
  font-size: 18px;
  color: var(--accent-blue);
  margin-bottom: 8px;
}
.reg-card .reg-prompt::before { content: "› "; color: var(--ink-faint); }
.reg-card .reg-stack {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  white-space: pre-wrap;
}
.reg-card .reg-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--paper-line);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--ink-faint);
  text-transform: uppercase;
}
.reg-card .reg-share {
  background: transparent;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: 10px;
  letter-spacing: 1.2px;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 140ms, color 140ms;
}
.reg-card .reg-share:hover { background: var(--ink); color: var(--bg); }
.reg-empty {
  text-align: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--ink-faint);
  padding: 30px 0;
  display: none;
}
.reg-empty.is-visible { display: block; }

/* ── FRIDGE (lore + disclaimer) ───────────────────────── */
#fridge {
  max-width: 1180px;
  margin: 60px auto 0;
  padding: 60px 22px;
  border-top: 2px dashed var(--paper-line);
}
.fridge-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--accent-yellow);
  text-shadow: 0 0 8px rgba(0,0,0,0.4);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 30px;
  color: #c89c00;
}
.fridge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.fridge-card {
  background: #ffffff;
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 5px 0 var(--ink);
  transform: rotate(-0.4deg);
  transition: transform 200ms ease;
}
.fridge-card:nth-child(2) { transform: rotate(0.6deg); }
.fridge-card:nth-child(3) { transform: rotate(-0.2deg); }
.fridge-card:nth-child(4) { transform: rotate(0.4deg); }
.fridge-card:hover { transform: rotate(0) translateY(-2px); }
.fridge-card h3 {
  font-family: "Patrick Hand", cursive;
  font-size: 24px;
  margin-bottom: 10px;
  color: var(--ink);
  letter-spacing: 0.5px;
}
.fridge-card p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.fridge-card p strong { color: var(--ink); font-weight: 700; }
.fridge-card--warn {
  background: #fff8e0;
  border-color: #b9912a;
}
.fridge-card--warn h3 { color: #8a6a17; }

/* ── FOOTER ───────────────────────────────────────────── */
#footer {
  display: flex; justify-content: center; align-items: center;
  flex-wrap: wrap; gap: 8px;
  padding: 36px 22px calc(36px + env(safe-area-inset-bottom));
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--ink-faint);
  text-transform: uppercase;
  border-top: 2px dashed var(--paper-line);
  margin-top: 40px;
}
.footer-mark { color: var(--accent-frog); font-weight: 700; letter-spacing: 2px; }
.footer-sep { opacity: 0.6; }

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-left { order: 1; }
  .hero-right { order: 2; }
  .pepe-stage, .pepe-video-stage { width: 280px; height: 280px; }
}
@media (max-width: 640px) {
  body { padding-top: 32px; }
  #ticker-bar { height: 32px; font-size: 16px; }
  #social { top: 44px; right: 12px; width: 34px; height: 34px; }
  #social svg { width: 14px; height: 14px; }
  #hero { padding: 36px 16px 28px; }
  .pepe-stage, .pepe-video-stage { width: 240px; height: 240px; }
  .pepe-doodle--star-1 { font-size: 20px; }
  .pepe-doodle--star-2 { font-size: 14px; }
  .pepe-doodle--star-3 { font-size: 12px; }
  .pepe-hint { font-size: 14px; }
  .ask-thread { max-height: 280px; }
  #lore, #registry, #fridge { padding-left: 16px; padding-right: 16px; }
  .lore-banner { padding: 14px; }
  .fridge-card { padding: 18px; }
  #ca-box { font-size: 10.5px; padding: 8px 12px; gap: 8px; }
  #ca-box .ca-text { font-size: 9.5px; }
  #ca-box .ca-copy { display: none; }
}
