/* ============ $BABOON ============ */
:root {
  --ink: #0d0805;
  --ink-2: #160d08;
  --burnt: #b0400c;
  --orange: #f06a14;
  --amber: #ffb36b;
  --cream: #f6ead9;
  --cream-dim: #b9a58d;
  --line: rgba(246, 234, 217, .12);

  --gut: 80px;
  --nav: 84px;
  --r: 28px;
  --r-sm: 16px;

  --display: "Bricolage Grotesque", ui-sans-serif, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: dark;
}
@media (max-width: 1023px) { :root { --gut: 40px; } }
@media (max-width: 639px)  { :root { --gut: 20px; --nav: 68px; --r: 20px; } }

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--ink); color: var(--cream);
  font-family: var(--display); font-variation-settings: "opsz" 16;
  font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip;
}
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
::selection { background: var(--orange); color: var(--ink); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 10px; }
.wrap { width: min(100% - 2 * var(--gut), 1280px); margin-inline: auto; position: relative; z-index: 2; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--cream); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }
.ic { width: 18px; height: 18px; flex: none; }

/* ---------- glass ---------- */
.glass {
  background: linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
  -webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 20px 50px -18px rgba(0,0,0,.5);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  height: 56px; padding: 0 7px 0 26px; border-radius: 999px; border: 0;
  background: var(--cream); color: var(--ink);
  font-size: 16px; font-weight: 500; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.btn__ic {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--cream); overflow: hidden;
  transition: transform .45s var(--ease), background-color .3s;
}
.btn__ic .ic { width: 17px; height: 17px; }
.btn__ic--tg { background: #229ED9; color: #fff; }
.btn__ic--tg svg { width: 18px; height: 18px; fill: currentColor; transform: translateX(-1px); }
.btn:hover { background: #fff; }
.btn:hover .btn__ic { transform: rotate(-12deg) scale(1.06); background: var(--orange); color: var(--ink); }
.btn:hover .btn__ic--tg { background: #229ED9; color: #fff; }
.btn:active { transform: scale(.97); }
.btn--ghost { padding: 0 26px; background: transparent; color: var(--cream); box-shadow: inset 0 0 0 1px rgba(246,234,217,.22); }
.btn--ghost:hover { background: rgba(246,234,217,.08); box-shadow: inset 0 0 0 1px rgba(246,234,217,.45); }
.btn--sm { height: 46px; padding-left: 20px; gap: 10px; }
.btn--sm .btn__ic { width: 34px; height: 34px; }
.ca-short { font-family: var(--mono); letter-spacing: .02em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.pill {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px;
  border: 0; background: rgba(246,234,217,.08); box-shadow: inset 0 0 0 1px rgba(246,234,217,.16);
  font-size: 15px; font-weight: 500; cursor: pointer; transition: background-color .25s, color .25s, box-shadow .25s;
}
.pill .ic { width: 16px; height: 16px; }
.pill:hover { background: var(--cream); color: var(--ink); box-shadow: none; }
.ic--x { width: 14px; height: 14px; fill: currentColor; }
.pill--dev { text-decoration: none; }
.pill--memes { text-decoration: none; }
.pill--ca span { font-family: var(--mono); font-size: 14px; letter-spacing: .02em; }
.pill--memes .ic { width: 15px; height: 15px; }
.pill--dev:hover { background: #fff; color: #000; }
.foot__ca { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 16px; border-radius: 999px; cursor: pointer;
  font-family: var(--mono); font-size: 13px; color: var(--cream); box-shadow: inset 0 0 0 1px var(--line); transition: background-color .25s, color .25s, box-shadow .25s; max-width: 100%; }
.foot__ca:hover { background: var(--cream); color: var(--ink); box-shadow: none; }
.foot__ca:focus-visible { outline: 2px solid var(--cream); outline-offset: 2px; }
.foot__ca-label { color: var(--orange); }
.foot__ca:hover .foot__ca-label { color: var(--burnt); }
.foot__ca-value { word-break: break-all; }
.foot__ca .ic { width: 15px; height: 15px; flex: none; }
.foot__dev { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 999px; text-decoration: none; font-size: 14px; color: var(--cream); box-shadow: inset 0 0 0 1px var(--line); transition: background-color .25s, color .25s, box-shadow .25s; }
.foot__dev:hover { background: #fff; color: #000; box-shadow: none; }
.foot__row .logo { margin-right: auto; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(246,234,217,.08); box-shadow: inset 0 0 0 1px rgba(246,234,217,.16); transition: background-color .25s, color .25s; }
.icon-btn svg { width: 18px; height: 18px; fill: currentColor; transform: translateX(-1px); }
.icon-btn:hover { background: #229ED9; color: #fff; box-shadow: none; }
.icon-btn--x svg { width: 16px; height: 16px; transform: none; }
.icon-btn--x:hover { background: #fff; color: #000; }
.icon-btn--ig svg { width: 20px; height: 20px; transform: none; fill: none; }
.icon-btn--ig:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); color: #fff; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; height: var(--nav); z-index: 40; border-bottom: 1px solid transparent; transition: background-color .4s, border-color .4s; }
.nav.is-scrolled { background: rgba(13, 8, 5, .6); -webkit-backdrop-filter: blur(22px) saturate(140%); backdrop-filter: blur(22px) saturate(140%); border-bottom-color: var(--line); }
.nav__row { height: 100%; display: flex; align-items: center; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -.02em; }
.logo img { width: 34px; height: 34px; border-radius: 50%; background: var(--orange); transition: transform .5s var(--ease); }
.logo:hover img { transform: rotate(-14deg); }
.nav__links { display: flex; gap: 4px; margin: 0 auto; }
.nav__links a { position: relative; padding: 10px 16px; text-decoration: none; font-size: 15px; color: var(--cream-dim); transition: color .25s; }
.nav__links a::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav__links a:hover { color: var(--cream); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__end { display: flex; align-items: center; gap: 8px; }

/* ---------- hero ---------- */
.hero { position: relative; height: 100svh; min-height: 680px; overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: 0; background: radial-gradient(110% 90% at 72% 40%, #2a1309 0%, #140a05 48%, var(--ink) 78%); }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); }
.blob--a { width: 60vw; aspect-ratio: 1; right: 6vw; top: -8%; background: radial-gradient(circle, rgba(255,128,40,.9), rgba(214,78,10,.6) 40%, transparent 70%); animation: drift 18s ease-in-out infinite alternate; }
.blob--b { width: 38vw; aspect-ratio: 1; left: -12vw; bottom: -20vw; background: radial-gradient(circle, rgba(176,64,12,.45), transparent 70%); animation: drift 22s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(-4vw, 3vw) scale(1.06); } }

.hero__wrap { height: 100%; z-index: 3; pointer-events: none; display: flex; flex-direction: column; justify-content: center; padding-top: var(--nav); padding-bottom: 24px; }
.hero__wrap > * { pointer-events: auto; }
.hero__title {
  margin-left: -.05em;
  font-weight: 800; line-height: .8; letter-spacing: -.05em;
  font-size: clamp(96px, 12.2vw, 200px); font-variation-settings: "wdth" 75, "opsz" 96;
  pointer-events: none;
}
.hero__word { display: inline-flex; pointer-events: auto; }
.hero__word span {
  display: inline-block;
  background: linear-gradient(180deg, #fff8ee 0%, var(--cream) 50%, #e2bd93 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: transform .5s var(--ease);
}
.hero__word span:hover { transform: translateY(-.05em); }
.hero__copy { margin-top: clamp(24px, 3.4svh, 36px); }
.hero__tag { font-size: clamp(34px, 3.7vw, 58px); line-height: 1.02; font-weight: 500; letter-spacing: -.04em; margin-bottom: clamp(28px, 4svh, 44px); }
.hero__copy .btn { height: 64px; font-size: 18px; padding-left: 30px; }
.hero__copy .btn__ic { width: 50px; height: 50px; }
.hero__copy .btn--ghost { padding: 0 32px; }

.hero__ape { position: absolute; z-index: 2; bottom: 0; right: -4vw; width: min(62vw, calc((100svh - 60px) * 1.1)); }
.ape__img { width: 100%; height: auto; pointer-events: none; user-select: none; filter: drop-shadow(0 40px 80px rgba(0,0,0,.55)); }
.ape__gl { position: absolute; left: 0; top: 0; width: 100%; height: auto; aspect-ratio: 1123 / 1021; pointer-events: none; filter: drop-shadow(0 40px 80px rgba(0,0,0,.55)); }
.hero__ape.is-3d .ape__img { visibility: hidden; }
.ape__hit { position: absolute; left: 8%; right: 14%; top: 6%; bottom: 10%; z-index: 5; background: none; border: 0; cursor: pointer; border-radius: 45%; }
.ape__hit:focus-visible { outline-offset: -12px; }

.bubble {
  /* its bottom-right corner (the "tail") sits just above-left of his brow, so the line reads as his */
  position: absolute; z-index: 6; left: 25%; top: 23%; max-width: 300px; white-space: nowrap;
  background: var(--cream); color: var(--ink); font-weight: 600; font-size: 20px; line-height: 1.2; letter-spacing: -.02em;
  padding: 14px 20px; border-radius: 22px 22px 6px 22px; box-shadow: 0 24px 50px -16px rgba(0,0,0,.6);
  transform-origin: 100% 100%; transform: translate(-100%, -100%) scale(.5); opacity: 0;
  transition: transform .45s var(--spring), opacity .2s; pointer-events: none;
}
.bubble::after { /* little tail pointing down-right at his face */
  content: ""; position: absolute; right: -7px; bottom: -7px; width: 18px; height: 18px;
  background: var(--cream); clip-path: polygon(0 0, 100% 100%, 30% 70%, 0 30%); border-radius: 2px;
}
.bubble:empty { display: none; }
.hero__ape.talk .bubble { transform: translate(-100%, -100%) scale(1) rotate(-2deg); opacity: 1; }

/* entrance */
.js [data-enter] .hero__word span { opacity: 0; transform: translateY(.4em); }
.js [data-enter] .hero__copy { opacity: 0; transform: translateY(16px); }
.js [data-enter] .hero__ape { opacity: 0; transform: translateY(6%); }
.js [data-enter].in .hero__word span { opacity: 1; transform: none; transition: opacity .6s, transform 1s var(--ease); }
.js [data-enter].in .hero__word span:nth-child(2) { transition-delay: .05s; }
.js [data-enter].in .hero__word span:nth-child(3) { transition-delay: .1s; }
.js [data-enter].in .hero__word span:nth-child(4) { transition-delay: .15s; }
.js [data-enter].in .hero__word span:nth-child(5) { transition-delay: .2s; }
.js [data-enter].in .hero__word span:nth-child(6) { transition-delay: .25s; }
.js [data-enter].in .hero__copy { opacity: 1; transform: none; transition: opacity .8s .5s, transform 1s .5s var(--ease); }
.js [data-enter].in .hero__ape { opacity: 1; transform: none; transition: opacity .8s .15s, transform 1.4s .15s var(--ease); }
.js [data-enter].settled .hero__word span { transition: transform .5s var(--ease); transition-delay: 0s; }

/* ---------- shared ---------- */
section:not(.hero) { min-height: 100svh; padding: calc(var(--nav) + 72px) 0 110px; position: relative; overflow: hidden; isolation: isolate; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-weight: 400; font-size: 13px; color: var(--cream-dim); margin-bottom: 36px; }
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--orange); }
.title { font-weight: 800; font-size: clamp(60px, 8vw, 128px); line-height: .86; letter-spacing: -.05em; font-variation-settings: "wdth" 75, "opsz" 96; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #3fdc7c; box-shadow: 0 0 0 4px rgba(63,220,124,.18); flex: none; }

/* ---------- mission: collector card left, text right ---------- */
.rally { display: flex; align-items: center; background: var(--ink); }
.rally__bg { position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(40% 55% at 22% 50%, rgba(240,106,20,.24), transparent 70%), linear-gradient(180deg, var(--ink), #1a0d07 50%, var(--ink)); }
.rally__wrap { display: grid; grid-template-columns: 5fr 6fr; gap: 96px; align-items: center; }

/* the card: an original collector card, amber frame, foil sheen on hover */
.bcard { position: relative; width: min(100%, 420px); justify-self: center; margin: 0; border-radius: 26px; padding: 10px;
  background: linear-gradient(150deg, #ffd59a 0%, var(--amber) 22%, var(--orange) 55%, var(--burnt) 100%);
  box-shadow: 0 50px 100px -40px rgba(240,106,20,.55), 0 30px 60px -30px rgba(0,0,0,.9);
  isolation: isolate; overflow: hidden;
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); will-change: transform; }
.bcard__frame { position: relative; border-radius: 18px; padding: 14px 14px 12px; background: linear-gradient(180deg, #24140b, #120a06); color: var(--cream); }
.bcard__top { display: flex; align-items: baseline; justify-content: space-between; padding: 2px 4px 12px; }
.bcard__name { font-weight: 800; font-size: 34px; line-height: 1; letter-spacing: -.04em; font-variation-settings: "wdth" 75, "opsz" 96; text-transform: uppercase; }
.bcard__no { font-family: var(--mono); font-size: 12px; color: var(--amber); }
.bcard__art { border-radius: 12px; overflow: hidden; aspect-ratio: 1; background: #808080; box-shadow: 0 0 0 2px rgba(255,179,107,.5); }
.bcard__art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.bcard__type { all: unset; box-sizing: border-box; width: 100%; cursor: pointer; display: flex; align-items: center; gap: 10px; justify-content: flex-start; margin: 12px 0 4px; padding: 7px 12px; border-radius: 999px; background: rgba(240,106,20,.16); font-family: var(--mono); font-size: 12px; color: var(--amber); }
.bcard__type > span:first-child { color: var(--cream); font-weight: 500; }
.bcard__ca { font-size: 10.5px; letter-spacing: 0; color: var(--amber); word-break: break-all; transition: color .2s; }
.bcard__type:hover .bcard__ca { color: var(--cream); }
.bcard__type:focus-visible { outline: 2px solid var(--cream); outline-offset: 2px; }
.bcard__stats { margin: 6px 4px 0; }
.bcard__stats div { display: grid; grid-template-columns: 76px 1fr; align-items: center; gap: 12px; padding: 7px 0; border-bottom: 1px solid rgba(246,234,217,.08); }
.bcard__stats dt { font-size: 14px; font-weight: 600; }
.bcard__stats dd { display: flex; align-items: center; gap: 10px; }
.bcard__stats i { flex: 1; height: 5px; border-radius: 99px; background: linear-gradient(90deg, var(--orange) var(--v), rgba(246,234,217,.1) var(--v)); }
.bcard__stats b { width: 28px; text-align: right; font-family: var(--mono); font-size: 13px; font-weight: 500; }
.bcard__foot { display: flex; justify-content: space-between; gap: 12px; padding: 10px 4px 2px; font-size: 13px; color: var(--cream-dim); }
.bcard__foot span:first-child { font-style: italic; }
.bcard__foot span:last-child { font-family: var(--mono); font-size: 11px; color: var(--amber); }
/* foil: a soft glare that follows the turn of the card, plus a faint warm holo band */
.bcard__foil { position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit; mix-blend-mode: screen;
  opacity: var(--glare, .35);
  background:
    radial-gradient(circle at var(--gx, 50%) var(--gy, 30%), rgba(255,244,222,.42), transparent 42%),
    linear-gradient(115deg, transparent 20%, rgba(255,179,107,.12) calc(var(--gx, 50%) - 10%), rgba(255,226,180,.2) var(--gx, 50%), rgba(240,106,20,.1) calc(var(--gx, 50%) + 10%), transparent 80%); }

.rally__text { max-width: 560px; }
.statement { font-size: clamp(32px, 3.4vw, 52px); line-height: 1.08; font-weight: 600; letter-spacing: -.035em; font-variation-settings: "wdth" 90, "opsz" 72; }
.statement .w { color: rgba(246,234,217,.18); transition: color .4s; }
.statement .w.on { color: var(--cream); }

.reach { list-style: none; margin: 48px 0 0; padding: 0; }
.reach__row { display: grid; grid-template-columns: 44px 96px 1fr auto; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.reach__row:last-child { border-bottom: 1px solid var(--line); }
.reach__ic { width: 44px; height: 44px; border-radius: 12px; background: var(--cream); display: grid; place-items: center; color: #000; transition: transform .4s var(--spring); }
.reach__ic img { width: 24px; height: 24px; object-fit: contain; }
.reach__ic .ic--x { width: 18px; height: 18px; }
.reach__row:hover .reach__ic { transform: translateY(-2px) rotate(-6deg); }
.reach__name { font-weight: 600; font-size: 18px; letter-spacing: -.01em; }
.reach__bar { height: 6px; border-radius: 99px; background: rgba(246,234,217,.1); overflow: hidden; }
.reach__bar i { display: block; height: 100%; width: var(--v, 0%); border-radius: inherit; background: linear-gradient(90deg, var(--amber), var(--cream)); }
.reach__row--x .reach__bar i { width: 22%; background: var(--orange); animation: x-wake 3.2s var(--ease) infinite; }
@keyframes x-wake { 0%, 100% { width: 14%; } 55% { width: 34%; } }
.reach__state { font-family: var(--mono); font-size: 13px; color: var(--cream-dim); display: inline-flex; align-items: center; gap: 8px; min-width: 104px; justify-content: flex-end; }
.reach__row--x .reach__state { color: var(--amber); }
.dot--live { background: var(--orange); box-shadow: 0 0 0 4px rgba(240,106,20,.2); animation: live 1.6s ease-in-out infinite; }
@keyframes live { 50% { box-shadow: 0 0 0 7px rgba(240,106,20,0); } }

.rally__lead { margin: 32px 0 28px; font-size: 18px; line-height: 1.5; color: var(--cream-dim); max-width: 480px; }

/* ---------- vault ---------- */
.vault__bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(55% 40% at 10% 0%, rgba(240,106,20,.22), transparent 70%), var(--ink); }
.vault__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 56px; }
.vault__lead { font-size: 18px; color: var(--cream-dim); padding-bottom: 8px; }
.vault__lead span { color: var(--cream); }
.gallery { display: flex; gap: 20px; align-items: flex-start; }
.gallery__col { flex: 1 1 0; min-width: 0; }
.meme { position: relative; margin: 0 0 20px; break-inside: avoid; border-radius: var(--r-sm); overflow: hidden; background: var(--ink-2); box-shadow: 0 0 0 1px var(--line); transition: transform .5s var(--ease), box-shadow .4s; }
.meme__open { all: unset; display: block; cursor: zoom-in; }
.meme img { width: 100%; height: auto; transition: transform .9s var(--ease); }
.meme:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(246,234,217,.25), 0 30px 60px -30px rgba(0,0,0,.9); }
.meme:hover img { transform: scale(1.03); }
.meme__save { position: absolute; right: 12px; bottom: 12px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--cream); opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .4s var(--ease), background-color .25s, color .25s; }
.meme__save:hover { background: var(--cream); color: var(--ink); }
.meme:hover .meme__save, .meme__save:focus-visible { opacity: 1; transform: none; }
@media (hover: none) { .meme__save { opacity: 1; transform: none; } }

/* ---------- viewer ---------- */
.viewer { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 72px 24px 120px; }
.viewer[hidden] { display: none; }
.viewer__backdrop { position: absolute; inset: 0; border: 0; background: rgba(10,6,3,.75); -webkit-backdrop-filter: blur(26px); backdrop-filter: blur(26px); cursor: zoom-out; }
.viewer__stage { position: relative; max-width: min(1200px, 100%); display: grid; place-items: center; }
.viewer__stage img { max-width: 100%; max-height: calc(100svh - 200px); width: auto; height: auto; border-radius: 18px; box-shadow: 0 40px 100px -20px rgba(0,0,0,.8); }
.viewer.open .viewer__stage img { animation: pop .5s var(--ease); }
@keyframes pop { from { transform: scale(.96); opacity: 0; } }
.viewer__bar { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 999px; }
.viewer__count { font-family: var(--mono); font-size: 13px; padding: 0 10px 0 14px; color: var(--cream-dim); }
.vbtn { width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255,255,255,.07); display: grid; place-items: center; cursor: pointer; transition: background-color .25s; }
.vbtn:hover { background: rgba(255,255,255,.18); }

.redacted { background: var(--cream); color: transparent; border-radius: 3px; padding: 0 4px; user-select: none; }

/* ---------- reward: a short band, go viral and get paid ---------- */
section.reward { min-height: 0; padding: 24px 0 96px; background: var(--ink); }
.reward__card { position: relative; overflow: hidden; display: grid; grid-template-columns: 6fr 5fr; gap: 64px; align-items: center; padding: 48px 56px; border-radius: var(--r);
  background: radial-gradient(60% 90% at 0% 0%, rgba(240,106,20,.22), transparent 70%), linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); }
.reward__coins { display: flex; margin-bottom: 22px; }
.reward__coins img { width: 56px; height: 56px; border-radius: 50%; box-shadow: 0 0 0 4px var(--ink), 0 14px 30px -10px rgba(0,0,0,.8); transition: transform .5s var(--spring); }
.reward__coins img + img { margin-left: -14px; }
.reward__card:hover .reward__coins img:first-child { transform: translateY(-4px) rotate(-10deg); }
.reward__card:hover .reward__coins img + img { transform: translateY(-4px) rotate(10deg); transition-delay: .06s; }
.reward__title { font-weight: 800; font-size: clamp(44px, 4.6vw, 72px); line-height: .9; letter-spacing: -.05em; font-variation-settings: "wdth" 75, "opsz" 96; }
.reward .o { background: linear-gradient(90deg, var(--amber), var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .04em; }
.reward__lead { margin: 18px 0 28px; font-size: 18px; line-height: 1.5; color: var(--cream-dim); max-width: 520px; }
.payout { margin: -6px 0 28px; max-width: 520px; }
.payout__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 10px; font-family: var(--mono); font-size: 13px; color: var(--cream-dim); }
.payout__row b { font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: var(--cream); }
.payout__row em { font-style: normal; font-size: 15px; font-weight: 500; color: var(--cream-dim); }
.payout__bar { height: 10px; border-radius: 99px; background: rgba(246,234,217,.1); overflow: hidden; }
.payout__bar i { display: block; height: 100%; width: var(--v); min-width: 10px; border-radius: inherit; background: linear-gradient(90deg, var(--amber), var(--orange)); box-shadow: 0 0 18px rgba(240,106,20,.6); }
.reward__steps a { color: var(--cream); text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 3px; }
.reward__steps a:hover { color: var(--amber); }
.reward__steps { list-style: none; margin: 0; padding: 0; }
.reward__steps li { display: flex; gap: 20px; align-items: baseline; padding: 20px 0; border-top: 1px solid var(--line); }
.reward__steps li:last-child { border-bottom: 1px solid var(--line); }
.reward__n { font-family: var(--mono); font-size: 13px; color: var(--orange); flex: none; }
.reward__steps h3 { font-size: 20px; font-weight: 600; letter-spacing: -.015em; }
.reward__steps p { margin-top: 4px; font-size: 16px; line-height: 1.45; color: var(--cream-dim); }

/* ---------- pfp: pick a face, preview it as a post, download ---------- */
.pfp { display: flex; align-items: center; background: var(--ink); }
.pfp__bg { position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(45% 55% at 80% 50%, rgba(240,106,20,.22), transparent 70%), linear-gradient(180deg, var(--ink), #1a0d07 55%, var(--ink));
}
.pfp__grid { display: grid; grid-template-columns: 5fr 6fr; gap: 72px; align-items: center; }
.title .o { background: linear-gradient(90deg, var(--amber), var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .04em; }
.pfp__lead { margin: 28px 0 36px; font-size: 19px; line-height: 1.5; color: var(--cream-dim); max-width: 470px; }

/* the chosen face, shown as it would look on a post */
.pfp-card { display: flex; align-items: center; gap: 18px; padding: 16px 22px 16px 16px; border-radius: 22px; margin-bottom: 28px; max-width: 470px; }
.pfp-card__face { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 3px var(--orange); }
.pfp-card__face.swap { animation: pfp-swap .5s var(--spring); }
@keyframes pfp-swap { from { scale: .7; rotate: -10deg; } }
.pfp-card__name { font-weight: 600; font-size: 17px; }
.pfp-card__name span { font-weight: 400; color: var(--cream-dim); margin-left: 6px; font-size: 15px; }
.pfp-card__post { margin-top: 4px; font-size: 17px; line-height: 1.4; }

.pfp-wall { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.pfp-tile { all: unset; position: relative; display: block; aspect-ratio: 1; border-radius: 18px; overflow: hidden; cursor: pointer; background: var(--ink-2, #1a0f08);
  box-shadow: 0 0 0 1px var(--line); transition: transform .4s var(--ease), box-shadow .25s; }
.pfp-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease), filter .3s; }
.pfp-tile:hover { transform: translateY(-2px); }
.pfp-tile:hover img { transform: scale(1.03); }
.pfp-tile[aria-checked="true"] { box-shadow: 0 0 0 3px var(--orange), 0 18px 40px -16px rgba(240,106,20,.6); }
.pfp-wall:has([aria-checked="true"]) .pfp-tile:not([aria-checked="true"]):not(:hover) img { filter: saturate(.75) brightness(.8); }
.pfp-tile:focus-visible { outline: 3px solid var(--cream); outline-offset: 3px; }
/* last home tile: leads to the page with every face */
.pfp-tile--all { display: grid; place-content: center; text-align: center; gap: 4px; text-decoration: none; color: var(--cream);
  background: linear-gradient(150deg, rgba(240,106,20,.32), rgba(176,64,12,.18)); box-shadow: inset 0 0 0 1px rgba(255,179,107,.35); }
.pfp-tile--all:hover { background: linear-gradient(150deg, rgba(240,106,20,.5), rgba(176,64,12,.3)); }
.pfp-tile__more { font-weight: 800; font-size: clamp(22px, 2.2vw, 34px); line-height: 1; letter-spacing: -.04em; font-variation-settings: "wdth" 75, "opsz" 96; color: var(--amber); }
.pfp-tile__label { font-family: var(--mono); font-size: 12px; }

/* ---------- PFP page ---------- */
.nav__links a[aria-current="page"] { color: var(--cream); }
.pfpp { background: var(--ink); }
.pfpp__bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 40% at 15% 0%, rgba(240,106,20,.24), transparent 70%), var(--ink); }
.pfpp__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; margin-bottom: 48px; }
.pfpp__lead { margin-top: 24px; font-size: 19px; line-height: 1.5; color: var(--cream-dim); max-width: 520px; }
.pfpp__side { display: flex; flex-direction: column; align-items: flex-end; gap: 18px; flex: none; }
.pfpp__fact { font-family: var(--mono); font-size: 13px; color: var(--cream-dim); }
.pfpp__fact span { color: var(--amber); }
.pfpp__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.pfp-dl { position: relative; display: block; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: var(--ink-2); box-shadow: 0 0 0 1px var(--line); transition: transform .4s var(--ease), box-shadow .25s; }
.pfp-dl img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.pfp-dl:hover { transform: translateY(-2px); box-shadow: 0 0 0 3px var(--orange), 0 18px 40px -16px rgba(240,106,20,.6); }
.pfp-dl:hover img { transform: scale(1.03); }
.pfp-dl:focus-visible { outline: 3px solid var(--cream); outline-offset: 3px; }
.pfp-dl__btn { position: absolute; right: 10px; bottom: 10px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); color: var(--ink);
  opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .35s var(--spring); }
.pfp-dl:hover .pfp-dl__btn, .pfp-dl:focus-visible .pfp-dl__btn { opacity: 1; transform: none; }
@media (hover: none) { .pfp-dl__btn { opacity: 1; transform: none; width: 34px; height: 34px; right: 8px; bottom: 8px; } }


/* meme vault: "there's more on X" band after the gallery */
.more { margin-top: 36px; display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 36px 40px; border-radius: var(--r); }
.more__title { font-weight: 800; font-size: clamp(36px, 3.6vw, 56px); line-height: .92; letter-spacing: -.045em; font-variation-settings: "wdth" 75, "opsz" 96; }
.more__lead { margin-top: 14px; font-size: 18px; line-height: 1.5; color: var(--cream-dim); max-width: 560px; }
.more .o, .together .o { background: linear-gradient(90deg, var(--amber), var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .04em; }
.more__actions { flex: none; }
.more .btn { flex: none; }

/* ---------- together: the closing word over a crowd of the same face ---------- */
.together { display: flex; align-items: center; background: var(--ink); text-align: center; }
.together__crowd { position: absolute; inset: -20px; z-index: -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 14px; align-content: center; justify-items: center; padding: 20px; }
.together__crowd img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; opacity: .38; filter: saturate(.6); transition: opacity .4s, filter .4s, transform .5s var(--spring); }
.together__crowd img:hover { opacity: .9; filter: none; transform: scale(1.08); }
.together::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(48% 52% at 50% 50%, rgba(13,8,5,.96) 30%, rgba(13,8,5,.75) 62%, rgba(13,8,5,.25) 100%),
              linear-gradient(180deg, var(--ink), transparent 18%, transparent 82%, var(--ink)); }
.together__wrap { display: flex; flex-direction: column; align-items: center; }
.together__title { font-weight: 800; font-size: clamp(56px, 7.6vw, 124px); line-height: .88; letter-spacing: -.05em; font-variation-settings: "wdth" 75, "opsz" 96; }
.together__lead { margin: 32px auto 40px; font-size: 20px; line-height: 1.5; color: var(--cream-dim); max-width: 620px; }
.together .btn-row { justify-content: center; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 28px 0 32px; }
.foot__row { display: flex; align-items: center; gap: 16px 24px; flex-wrap: wrap; }
.foot__row .logo img { width: 28px; height: 28px; }
.foot__legal { font-size: 14px; color: var(--cream-dim); }

/* banana burst on click */
.banana-drop { position: fixed; z-index: 98; pointer-events: none; user-select: none; will-change: transform, opacity; filter: drop-shadow(0 4px 6px rgba(0,0,0,.35)); }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 95; transform: translate(-50%, 160%); padding: 14px 22px; border-radius: 999px; font-weight: 500; transition: transform .5s var(--ease); white-space: nowrap; max-width: calc(100vw - 32px); }
.toast:not(.show) { visibility: hidden; transition: transform .5s var(--ease), visibility 0s .5s; }
.toast.show { transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 1023px) {
  .nav__links { display: none; }
  .nav__end { margin-left: auto; }
  .hero__ape { width: min(96vw, calc((100svh - 300px) * 1.1)); right: -10vw; }
  .hero__wrap { justify-content: flex-start; padding-top: calc(var(--nav) + 36px); }
  .hero__title { font-size: 15.2vw; }
  /* phones and tablets: title, faces, then the preview and download right under them */
  .pfp__grid { grid-template-columns: 1fr; gap: 0; }
  .pfpp__head { flex-direction: column; align-items: flex-start; gap: 28px; }
  .pfpp__side { align-items: flex-start; }
  .pfpp__grid { grid-template-columns: repeat(4, 1fr); }
  /* smaller screens: steps sit between the text and the button */
  .reward__card { grid-template-columns: 1fr; gap: 0; padding: 40px; }
  .reward__main { display: contents; }
  .reward__coins { order: 1; } .reward__title { order: 2; } .reward__lead { order: 3; margin-bottom: 20px; }
  .payout { order: 4; margin-top: 0; }
  .reward__steps { order: 5; margin-bottom: 28px; }
  .reward__card > .btn, .reward__main > .btn { order: 6; justify-self: start; }
  .pfp__text { display: contents; }
  .pfp__grid .title { order: 1; }
  .pfp__lead { order: 2; margin-bottom: 32px; }
  .pfp-wall { order: 3; margin-bottom: 24px; }
  .pfp-card { order: 4; }
  .pfp__grid .btn-row { order: 5; }
  /* the picture moves into the flow, under the text */
  .rally__wrap { grid-template-columns: 1fr; gap: 56px; }
  .rally__text { max-width: 640px; }
}
@media (max-width: 639px) {
  body { font-size: 16px; }
  .pill span { display: none; }
  .pill--memes { display: none; }
  .pill { width: 44px; padding: 0; justify-content: center; }
  .foot__row .logo { margin-right: 0; flex: 1 1 100%; }
  .foot__ca { width: 100%; border-radius: 18px; font-size: 12px; }
  .logo span { font-size: 17px; }
  .hero { min-height: 640px; }
  .hero__wrap { padding-top: calc(var(--nav) + 20px); }
  .hero__title { font-size: 27vw; }
  .hero__copy { margin-top: 18px; }
  .hero__tag { font-size: 30px; margin-bottom: 22px; }
  .hero__copy .btn { height: 58px; font-size: 17px; }
  .hero__copy .btn__ic { width: 44px; height: 44px; }
  .hero__copy .btn { width: 100%; justify-content: space-between; }
  .hero__ape { width: 136vw; right: -34vw; }
  /* on a phone his head starts near the screen edge, so the bubble grows rightwards over his crown */
  .bubble { font-size: 17px; left: 30%; top: 16%; max-width: 230px; white-space: normal; border-radius: 22px 22px 22px 6px; transform-origin: 0 100%; transform: translate(0, -100%) scale(.5); }
  .bubble::after { right: auto; left: -7px; clip-path: polygon(100% 0, 0 100%, 70% 70%, 100% 30%); }
  .hero__ape.talk .bubble { transform: translate(0, -100%) scale(1) rotate(2deg); }
  section:not(.hero) { padding: calc(var(--nav) + 40px) 0 80px; }
  .pfp-wall { gap: 8px; }
  .pfpp__grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .pfp-dl { border-radius: 14px; }
  .pfpp__side, .pfpp__side .btn-row { width: 100%; }
  .pfp-tile__label { font-size: 10px; }
  section.reward { padding: 8px 0 64px; }
  .reward__card { padding: 28px 22px; }
  .reward__coins img { width: 44px; height: 44px; }
  .reward__steps li { padding: 12px 0; gap: 14px; }
  .reward__steps h3 { font-size: 17px; }
  .reward__steps p { font-size: 15px; }
  .reward__card .btn { width: 100%; justify-content: space-between; }
  .more { flex-direction: column; align-items: stretch; padding: 28px 22px; gap: 24px; }
  .more .btn { justify-content: space-between; }
  .together__crowd { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 10px; }
  .together__lead { font-size: 18px; }
  .pfp-tile { border-radius: 12px; }
  .pfp-card { padding: 12px 16px 12px 12px; }
  .pfp-card__face { width: 64px; height: 64px; }
  .reach { margin-top: 36px; }
  .reach__row { grid-template-columns: 44px 1fr auto; gap: 14px; }
  .reach__ic { grid-row: span 2; }
  .reach__bar { grid-column: 2 / -1; grid-row: 2; }
  .reach__state { min-width: 0; }
  .vault__head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 32px; }
  .gallery { gap: 10px; }
  .meme { margin-bottom: 10px; border-radius: 12px; }
  .meme__save { right: 6px; bottom: 6px; width: 40px; height: 40px; }
  .viewer { padding: 64px 12px 110px; }
  .viewer__bar .btn--sm span:first-child { display: none; }
  .viewer__bar .btn--sm { padding: 0 6px; }
  .btn-row .btn { flex: 1 1 100%; justify-content: space-between; }
  .btn-row .btn--ghost { justify-content: center; }
}
@media (max-height: 760px) and (min-width: 1024px) { .hero__title { font-size: clamp(96px, 10.5vw, 170px); } }

/* very narrow phones: four round buttons need the room, so the logo keeps only its face */
@media (max-width: 359px) { .nav .logo span { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
  .statement .w { color: var(--cream); }
}

/* ---------- banana cursor ---------- */
@media (pointer: fine) {
  html, html * { cursor: url("img/banana.svg?v=2") 4 3, auto !important; }
  html :is(a, button, label, summary, [role="button"], .ape__hit, .meme__open, .viewer__backdrop),
  html :is(a, button, .meme__open) * { cursor: url("img/banana-peeled.svg?v=2") 3 3, pointer !important; }
}
