:root {
  --bg: #c2bfbb;
  --bg-alt: #c2bfbb;
  --ink: #171615;
  --ink-soft: #423f3c;
  --ink-faint: #6f6c68;
  --green: #7ed957;
  --green-deep: #3fa34d;
  --green-bg: #d7f5c4;
  --toxic: #a6ff00;
  --toxic-deep: #6b9e00;
  --line: rgba(18, 20, 24, 0.14);
  --card-bg: rgba(255, 255, 255, 0.16);
  --chrome-1: #ffffff;
  --chrome-2: #cdd0d4;
  --chrome-3: #8a8d93;
  --shadow: 0 10px 30px rgba(18, 20, 24, 0.1);
  --radius: 22px;
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background-color: var(--bg);
  background-image:
    radial-gradient(1300px 900px at 50% -8%, rgba(126, 217, 87, 0.55), rgba(126, 217, 87, 0.16) 38%, transparent 62%),
    radial-gradient(1000px 760px at 82% 78%, rgba(255,255,255,0.06), transparent 65%),
    radial-gradient(1800px 1100px at 50% 105%, rgba(0,0,0,0.22), transparent 60%),
    radial-gradient(1800px 900px at 50% -15%, rgba(0,0,0,0.1), transparent 55%);
  background-attachment: fixed;
}

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 max(24px, env(safe-area-inset-right)) 0 max(24px, env(safe-area-inset-left));
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* -------- Marquee -------- */
.marquee {
  background: var(--ink);
  color: var(--bg);
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.marquee__track {
  display: inline-flex;
  animation: marquee 26s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  padding: 9px 0;
  display: inline-block;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* -------- Header / Nav -------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(194, 191, 187, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand__mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: url("../assets/logo-mark-icon.png");
  background-size: 145%;
  background-position: 50% 42%;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 0 1px rgba(18, 20, 24, 0.1), var(--shadow);
  flex: none;
}
.brand__mark--sm { width: 28px; height: 28px; }
.brand__word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.01em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav__links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}
.nav__links a:hover { color: var(--ink); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav__toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* -------- Buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn--small { padding: 9px 18px; font-size: 14px; }
.btn--primary {
  background: linear-gradient(180deg, var(--toxic) 0%, var(--toxic-deep) 100%);
  color: #1a2b00;
  box-shadow: 0 6px 18px rgba(107, 158, 0, 0.45);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(107, 158, 0, 0.55); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { background: rgba(23,22,21,0.05); }
.btn--outline {
  background: var(--card-bg);
  color: var(--ink);
  backdrop-filter: blur(6px);
}
.btn--outline:hover { transform: translateY(-2px); }

/* -------- Hero -------- */
.hero {
  position: relative;
  padding: 72px 24px 64px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero__glow {
  position: absolute;
  top: -10%;
  left: 50%;
  width: 900px;
  height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(126, 217, 87, 0.32) 0%, rgba(126, 217, 87, 0) 60%);
  z-index: -1;
  pointer-events: none;
}
.hero__art { width: min(400px, 82vw); margin: 0 auto 8px; }
.art-panel {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: radial-gradient(circle at 35% 25%, #fff, #d6d8db 60%, #a9acb3 100%);
  border-radius: 40px;
}
.art-panel--hero {
  background-image: url("../assets/logo-mark.png"), radial-gradient(circle at 35% 25%, #fff, #d6d8db 60%, #a9acb3 100%);
  background-size: contain, cover;
  background-position: center;
  background-repeat: no-repeat;
}
.art-panel--sunburst {
  background-image: url("../assets/logo-sunburst.jpg"), radial-gradient(circle at 50% 40%, #fff, #dfe1e4 70%);
  border-radius: 30px;
}
.art-panel--cutout {
  background-image: url("../assets/logo-mark-chrome-cutout.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: transparent;
  box-shadow: none;
}
.art-panel--ghost {
  background-image: url("../assets/logo-sunburst-ghost.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: transparent;
  box-shadow: none;
}

.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--ink);
  margin: 0 0 10px;
}
.eyebrow--center { text-align: center; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero__subtitle {
  max-width: 620px;
  color: var(--ink-soft);
  font-size: clamp(16px, 2.4vw, 19px);
  margin: 0 0 30px;
}
.hero__subtitle strong { color: var(--ink); }

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 28px;
}

.ca-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--card-bg);
  backdrop-filter: blur(8px);
  padding: 8px 8px 8px 18px;
  border-radius: 999px;
  font-size: 14px;
}
.ca-pill__label {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.06em;
}
.ca-pill__value { color: var(--ink-soft); }
.ca-pill__copy {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  background: var(--ink);
  color: var(--bg);
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.ca-pill__copy:hover { opacity: 0.85; }

/* -------- Sections -------- */
.section { padding: 90px 0; }
.section--alt { background: var(--bg-alt); }

.section__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.section__grid--reverse { grid-template-columns: 1.1fr 0.9fr; }
.section__grid--reverse .section__art { order: 2; }
.section__grid--reverse .section__copy { order: 1; }

.section__art .art-panel { border-radius: 32px; }
.art-panel--meme {
  aspect-ratio: 1/1;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-color: var(--green-bg);
}
.art-panel--ahshit { background-image: url("../assets/ah-shit-meme.jpg"); }
.art-panel--meditate { background-image: url("../assets/meditate-pepe.jpg"); }
.art-panel--candle { background-image: url("../assets/banana-candle-pepe.jpg"); }
.art-panel--bananasuit { background-image: url("../assets/banana-costume-pepe.jpg"); }
.art-panel--gym { background-image: url("../assets/gym-pepe.jpg"); }
.art-panel--fingers { background-image: url("../assets/middle-finger-pepe.jpg"); }
.art-panel--chef { background-image: url("../assets/chef-pepe.jpg"); }
.art-panel--chromeface {
  background-image: url("../assets/logo-mark-chrome-cutout.png");
  background-size: contain;
  background-color: transparent;
}
.art-panel--victorycutout {
  background-image: url("../assets/ponske-victory-gray-cutout.png");
  background-size: contain;
  background-color: transparent;
}

.section__copy h2,
.section__title {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.section__copy h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 18px;
  line-height: 1.15;
  letter-spacing: 0.01em;
}
.section__copy p { color: var(--ink-soft); font-size: 16px; margin: 0 0 14px; }
.lore-punchline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  color: var(--ink);
}

/* -------- Petition -------- */
.petition {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding: 16px 20px;
  background: var(--card-bg);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
}
.petition__count {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.petition__count span#petitionCount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  color: var(--ink);
  transition: transform 0.25s ease;
}
.petition__count span#petitionCount.bump { transform: scale(1.18); }
.petition__label {
  font-size: 13px;
  color: var(--ink-faint);
}
.petition .btn { margin-left: auto; }
.petition .btn:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none !important;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 16px;
  letter-spacing: 0.01em;
}
.section__title--center { text-align: center; margin-left: auto; margin-right: auto; }
.section__lede {
  max-width: 620px;
  margin: 0 auto 50px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 17px;
}

/* -------- Cards -------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: var(--card-bg);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.card__num {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  font-size: 14px;
  margin-bottom: 12px;
}
.card h3 { font-family: var(--font-display); margin: 0 0 8px; font-size: 20px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* -------- Timeline -------- */
.timeline {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 5%;
  right: 5%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px);
  z-index: 0;
}
.timeline__item {
  position: relative;
  z-index: 1;
  background: var(--bg);
  padding-right: 6px;
}
.timeline__marker {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--green), var(--green-deep));
  color: #123016;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 16px;
  box-shadow: 0 6px 16px rgba(63,163,77,0.3);
}
.timeline__item h4 { font-family: var(--font-display); margin: 0 0 8px; font-size: 18px; }
.timeline__item p { margin: 0; color: var(--ink-soft); font-size: 14px; }

/* -------- Gallery -------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.gallery__item {
  margin: 0;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  display: block;
  width: 100%;
}
.gallery__item .art-panel {
  border-radius: 24px;
  margin-bottom: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}
.gallery__item .art-panel::after {
  content: "⤢";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(23,22,21,0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.gallery__item:hover .art-panel,
.gallery__item:focus-visible .art-panel {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.gallery__item:hover .art-panel::after,
.gallery__item:focus-visible .art-panel::after { opacity: 1; }
.gallery__caption {
  display: block;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  color: var(--ink-soft);
}

/* -------- Wordmark banner -------- */
.banner {
  padding: 30px 0;
  background: var(--bg-alt);
  display: flex;
  justify-content: center;
}
.banner__img {
  width: min(420px, 78vw);
  aspect-ratio: 1 / 1;
  background-image: url("../assets/ponske-victory-gray-cutout.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* -------- Family / CTA -------- */
.family { text-align: center; }

/* -------- Lightbox -------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: rgba(23, 22, 21, 0.82);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox__figure {
  margin: 0;
  max-width: 520px;
  width: 100%;
  transform: scale(0.94);
  transition: transform 0.25s ease;
}
.lightbox.is-open .lightbox__figure { transform: scale(1); }
.lightbox__figure img {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.lightbox__figure figcaption {
  text-align: center;
  color: var(--bg);
  font-family: var(--font-display);
  font-size: 15px;
  margin-top: 16px;
}
.lightbox__close {
  position: absolute;
  top: 22px;
  right: 26px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}
.lightbox__close:hover { background: rgba(255,255,255,0.22); }

/* -------- Confetti -------- */
.confetti-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1100;
  overflow: hidden;
}
.confetti-piece {
  position: absolute;
  top: -10%;
  font-size: 22px;
  animation: confetti-fall linear forwards;
  will-change: transform;
}
@keyframes confetti-fall {
  to {
    transform: translateY(110vh) rotate(360deg);
  }
}

/* -------- Floating X button -------- */
.floating-x {
  position: fixed;
  right: 24px;
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 80;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(18, 20, 24, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
}
.floating-x:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 12px 28px rgba(18, 20, 24, 0.4);
}
@media (max-width: 480px) {
  .floating-x { width: 48px; height: 48px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); }
}

/* -------- Candle scroll tracker -------- */
.candle-tracker {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;
  display: flex;
  pointer-events: none;
}
.candle-tracker__track {
  position: relative;
  width: 14px;
  height: 44vh;
  background: linear-gradient(180deg, #d6d8db, #b7bac1);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(18, 20, 24, 0.08);
}
.candle-tracker__wick {
  position: absolute;
  left: 50%;
  width: 2px;
  background: #b7bac1;
  transform: translateX(-50%);
}
.candle-tracker__wick--top { top: -16px; height: 16px; }
.candle-tracker__wick--bottom { bottom: -16px; height: 16px; }
.candle-tracker__fill {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3%;
  background: linear-gradient(180deg, var(--green), var(--green-deep));
  border-radius: 999px;
  box-shadow: 0 0 14px rgba(63, 163, 77, 0.55);
  transition: height 0.08s linear;
}
.candle-tracker__rider {
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translate(-50%, 50%);
}
.candle-tracker__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: url("../assets/logo-mark-icon.png");
  background-size: 145%;
  background-position: 50% 42%;
  background-repeat: no-repeat;
  border: 2px solid #fff;
  box-shadow: 0 6px 14px rgba(18, 20, 24, 0.3), 0 0 0 4px rgba(126, 217, 87, 0.25);
  animation: rider-climb 1.1s ease-in-out infinite;
}
@keyframes rider-climb {
  0%   { transform: translate(0, 0) rotate(-8deg); }
  25%  { transform: translate(-3px, -6px) rotate(-14deg); }
  50%  { transform: translate(0, -2px) rotate(0deg); }
  75%  { transform: translate(3px, -6px) rotate(14deg); }
  100% { transform: translate(0, 0) rotate(-8deg); }
}
@media (prefers-reduced-motion: reduce) {
  .candle-tracker__avatar { animation: none; }
  .candle-tracker__fill { transition: none !important; }
}
@media (max-width: 900px) {
  .candle-tracker { display: none; }
}

/* -------- Tilt -------- */
.art-panel { transition: transform 0.12s ease-out, box-shadow 0.2s ease; will-change: transform; }
[data-tilt] { perspective: 900px; }

.social-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* -------- Footer -------- */
.site-footer {
  background: linear-gradient(180deg, var(--bg) 0%, var(--ink) 180px, var(--ink) 100%);
  color: var(--bg-alt);
  padding: 48px 0 max(32px, env(safe-area-inset-bottom));
}
.footer__inner { text-align: center; }
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--bg);
}
.footer__brand .brand__word { font-size: 17px; }
.footer__tagline { color: rgba(241,238,231,0.6); font-size: 14px; margin: 0 0 20px; }
.footer__disclaimer {
  max-width: 640px;
  margin: 0 auto;
  color: rgba(241,238,231,0.4);
  font-size: 12px;
  line-height: 1.6;
}

/* -------- Reveal animation -------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* -------- Responsive -------- */
@media (max-width: 860px) {
  .section__grid, .section__grid--reverse {
    grid-template-columns: 1fr;
  }
  .section__grid--reverse .section__art,
  .section__grid--reverse .section__copy,
  .section__art, .section__copy { order: initial; }
  .section__art { width: min(340px, 70vw); margin: 0 auto 32px; }
  .cards { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .timeline::before { display: none; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 24px 22px;
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 10px 0; width: 100%; }
  .nav__toggle { display: flex; }
  .timeline { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}

@media (max-width: 480px) {
  .container { padding-left: max(18px, env(safe-area-inset-left)); padding-right: max(18px, env(safe-area-inset-right)); }
  .hero { padding: 44px 18px 36px; }
  .hero__actions { flex-direction: column; width: 100%; max-width: 320px; }
  .hero__actions .btn { width: 100%; }
  .ca-pill {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    padding: 10px 14px;
    row-gap: 6px;
  }
  .ca-pill__value { white-space: normal; word-break: break-word; }
  .ca-pill__copy { margin-left: auto; }
  .petition { flex-direction: column; align-items: stretch; text-align: center; }
  .petition .btn { margin-left: 0; width: 100%; }
  .social-row { flex-direction: column; align-items: stretch; }
  .social-row .btn { width: 100%; }
  .card { padding: 22px 20px; }
  .banner__img { width: 92vw; }
}
