/* ============ $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--dev:hover { background: #fff; color: #000; }
.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; }

/* ---------- 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 {
  position: absolute; z-index: 6; left: -2%; top: 40%; max-width: 300px;
  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: translateX(-100%) scale(.5); opacity: 0;
  transition: transform .45s var(--spring), opacity .2s; pointer-events: none;
}
.bubble:empty { display: none; }
.hero__ape.talk .bubble { transform: translateX(-100%) scale(1); 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; }

/* ---------- who ---------- */
.who__bg { position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(45% 55% at 85% 45%, rgba(240,106,20,.28), transparent 70%), linear-gradient(180deg, var(--ink), #1a0d07 50%, var(--ink));
}
.who__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: stretch; }
.who__text { display: flex; flex-direction: column; padding: 8px 0; }
.statement { font-size: clamp(32px, 3.5vw, 54px); 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); }
.facts { margin-top: auto; padding-top: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.facts div { padding: 18px 0; border-top: 1px solid var(--line); }
.facts dt { font-family: var(--mono); font-size: 13px; color: var(--cream-dim); margin-bottom: 6px; }
.facts dd { font-size: 19px; font-weight: 500; letter-spacing: -.01em; }
.who__photo { position: relative; border-radius: var(--r); overflow: hidden; min-height: 560px; background: #000; box-shadow: 0 40px 90px -40px rgba(0,0,0,.8); }
.who__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 26% 40%; transform: scale(1.04); transition: transform 1.4s var(--ease); }
.who__photo:hover img { transform: scale(1.08); }
.who__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(13,8,5,.55)); pointer-events: none; }
.who__badge { position: absolute; left: 20px; bottom: 20px; z-index: 1; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; }

/* ---------- 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 { columns: 3; column-gap: 20px; }
.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); }

/* ---------- troop ---------- */
.troop { background: var(--ink); }
.troop__grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
.troop__text { display: flex; flex-direction: column; justify-content: center; }
.troop__title { font-weight: 800; font-size: clamp(64px, 8.4vw, 136px); line-height: .86; letter-spacing: -.055em; font-variation-settings: "wdth" 75, "opsz" 96; }
.troop__title .o { background: linear-gradient(90deg, var(--amber), var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .04em; }
.troop__lead { margin: 28px 0 36px; font-size: 20px; color: var(--cream-dim); }
.troop__end { margin-top: 72px; font-size: 22px; line-height: 1.3; letter-spacing: -.02em; color: var(--cream-dim); }
.troop__end span { color: var(--cream); }
.troop__stage {
  position: relative; align-self: center; aspect-ratio: 1178 / 777; border-radius: var(--r); overflow: hidden; background: #1a0f08;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 50px 100px -40px rgba(240,106,20,.45), 0 40px 80px -40px rgba(0,0,0,.9);
}
.troop__stage img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.4s var(--ease); }
.troop__stage:hover img { transform: scale(1.06); }
.redacted { background: var(--cream); color: transparent; border-radius: 3px; padding: 0 4px; user-select: none; }

/* ---------- 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); }

/* ---------- 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; }
  .who__grid, .troop__grid { grid-template-columns: 1fr; gap: 48px; }
  .who__photo { min-height: 0; aspect-ratio: 4 / 3; }
  .gallery { columns: 2; }
}
@media (max-width: 639px) {
  body { font-size: 16px; }
  .pill span { display: none; }
  .pill { width: 44px; padding: 0; justify-content: center; }
  .foot__row .logo { margin-right: 0; flex: 1 1 100%; }
  .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--ghost { display: none; }
  .hero__copy .btn { width: 100%; justify-content: space-between; }
  .hero__ape { width: 136vw; right: -34vw; }
  .bubble { font-size: 17px; left: 30%; top: 0; max-width: 220px; border-radius: 20px 20px 20px 6px; transform-origin: 0 100%; transform: translateY(-100%) scale(.5); }
  .hero__ape.talk .bubble { transform: translateY(-100%) scale(1); }
  section:not(.hero) { padding: calc(var(--nav) + 40px) 0 80px; }
  .facts { grid-template-columns: 1fr; padding-top: 40px; }
  .who__photo { aspect-ratio: 1; }
  .vault__head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 32px; }
  .gallery { column-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; }
  .troop__end { margin-top: 48px; font-size: 19px; }
}
@media (max-height: 760px) and (min-width: 1024px) { .hero__title { font-size: clamp(96px, 10.5vw, 170px); } }

@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; }
}
