/* ============================================================
   POPAPE — The Ape That Learned to Pop
   Pure CSS · No frameworks
   ============================================================ */

/* --- Custom Properties --- */
:root {
  --bg: #120b05;
  --bg-soft: #211208;
  --brown: #5c3518;
  --brown-light: #7a4a22;
  --gold: #f5ae2c;
  --yellow: #ffd84d;
  --cream: #fff1cf;
  --orange: #ff7a1a;
  --orange-hot: #ff5c00;
  --text: #fff8e8;
  --text-muted: rgba(255, 248, 232, 0.65);

  --font-display: Impact, Haettenschweiler, "Franklin Gothic Bold", "Arial Black", sans-serif;
  --font-body: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  --radius: 16px;
  --radius-lg: 24px;
  --shadow-glow: 0 0 40px rgba(245, 174, 44, 0.35);
  --shadow-warm: 0 8px 32px rgba(0, 0, 0, 0.5);

  --nav-height: 80px;
  --nav-height-scrolled: 64px;
  --container: 1200px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/* --- Background Effects --- */
.bg-effects {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  will-change: transform;
}

.bg-blob--1 {
  width: 50vw;
  height: 50vw;
  max-width: 600px;
  max-height: 600px;
  background: radial-gradient(circle, var(--orange) 0%, transparent 70%);
  top: -10%;
  left: -10%;
  animation: blobDrift1 18s ease-in-out infinite;
}

.bg-blob--2 {
  width: 40vw;
  height: 40vw;
  max-width: 500px;
  max-height: 500px;
  background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
  bottom: 20%;
  right: -5%;
  animation: blobDrift2 22s ease-in-out infinite;
}

.bg-blob--3 {
  width: 35vw;
  height: 35vw;
  max-width: 400px;
  max-height: 400px;
  background: radial-gradient(circle, var(--brown-light) 0%, transparent 70%);
  top: 50%;
  left: 40%;
  animation: blobDrift3 20s ease-in-out infinite;
}

.bg-grain {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.bg-particles {
  position: absolute;
  inset: 0;
}

.bg-particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.4;
}

/* --- Pop Flash Overlay --- */
.pop-flash {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle, var(--yellow) 0%, var(--orange) 40%, transparent 70%);
  opacity: 0;
  pointer-events: none;
  z-index: 9998;
  transition: opacity 0.08s ease-out;
}

.pop-flash.is-active {
  opacity: 0.45;
}

/* --- Custom Cursor --- */
.cursor-glow {
  position: fixed;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 216, 77, 0.6) 0%, rgba(255, 122, 26, 0.2) 50%, transparent 70%);
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease, opacity 0.25s ease;
  mix-blend-mode: screen;
  opacity: 0;
}

.cursor-glow.is-visible {
  opacity: 1;
}

.cursor-glow.is-hover {
  width: 48px;
  height: 48px;
}

@media (hover: none), (pointer: coarse) {
  .cursor-glow {
    display: none;
  }
}

/* --- Typography --- */
.eyebrow {
  font-size: clamp(0.7rem, 1.5vw, 0.85rem);
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.5rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.05;
  color: var(--cream);
}

.section-title--mega {
  font-size: clamp(2.5rem, 8vw, 5rem);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

.btn--primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--orange) 100%);
  color: var(--bg);
  box-shadow: 0 4px 20px rgba(245, 174, 44, 0.4);
}

.btn--primary:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 32px rgba(255, 122, 26, 0.5);
}

.btn--outline {
  border: 2px solid var(--gold);
  color: var(--cream);
  background: rgba(245, 174, 44, 0.08);
}

.btn--outline:hover {
  background: rgba(245, 174, 44, 0.18);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn--ghost {
  border: 1px solid rgba(255, 248, 232, 0.25);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
}

.btn--lg {
  padding: 1rem 2rem;
  font-size: 0.95rem;
}

.btn--xl {
  padding: 1.15rem 2.5rem;
  font-size: 1.05rem;
}

.btn--glow {
  animation: ctaPulse 3s ease-in-out infinite;
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: height var(--transition), background var(--transition), box-shadow var(--transition);
}

.navbar.is-scrolled {
  height: var(--nav-height-scrolled);
  background: rgba(18, 11, 5, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(245, 174, 44, 0.15), 0 4px 24px rgba(0, 0, 0, 0.4);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  z-index: 1001;
}

.navbar__logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  transition: transform var(--transition);
}

.navbar.is-scrolled .navbar__logo {
  width: 40px;
  height: 40px;
}

.navbar__brand:hover .navbar__logo {
  transform: scale(1.08);
}

.navbar__wordmark {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  color: var(--cream);
}

.navbar__nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--cream);
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  width: 100%;
}

.nav-link--buy {
  color: var(--gold);
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 8px;
  z-index: 1001;
}

.hamburger__line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.35s ease, opacity 0.25s ease;
}

.hamburger.is-open .hamburger__line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.is-open .hamburger__line:nth-child(2) {
  opacity: 0;
}

.hamburger.is-open .hamburger__line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 2rem) 0 4rem;
  z-index: 1;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero__content {
  z-index: 2;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 0.95;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.hero__title-line {
  display: block;
}

.hero__title-line--accent {
  color: var(--gold);
  text-shadow: 0 0 60px rgba(245, 174, 44, 0.5);
}

.hero__subtitle {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero__desc {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.hero__ticker {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--yellow);
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
  padding: 0.25rem 1rem;
  border: 2px solid rgba(255, 216, 77, 0.3);
  border-radius: 8px;
  background: rgba(255, 216, 77, 0.06);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.hero__glow {
  position: absolute;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(245, 174, 44, 0.35) 0%, rgba(255, 122, 26, 0.1) 40%, transparent 65%);
  border-radius: 50%;
  animation: heroGlowPulse 4s ease-in-out infinite;
}

.hero__eye-shine {
  position: absolute;
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  top: 38%;
  left: 42%;
  filter: blur(1px);
  animation: eyeShine 3s ease-in-out infinite;
  pointer-events: none;
}

.hero__ape {
  position: relative;
  width: min(420px, 90vw);
  height: auto;
  animation: heroFloat 5s ease-in-out infinite;
  filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.6));
  transition: transform 0.1s ease-out;
}

.hero__rings {
  position: absolute;
  top: 50%;
  right: 15%;
  transform: translateY(-50%);
  pointer-events: none;
}

.hero__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(245, 174, 44, 0.2);
  border-radius: 50%;
  animation: ringExpand 4s ease-out infinite;
}

.hero__ring:nth-child(1) { width: 200px; height: 200px; animation-delay: 0s; }
.hero__ring:nth-child(2) { width: 200px; height: 200px; animation-delay: 1.3s; }
.hero__ring:nth-child(3) { width: 200px; height: 200px; animation-delay: 2.6s; }

.hero__scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  animation: scrollBounce 2s ease-in-out infinite;
}

/* --- Pop Section --- */
.pop-section {
  position: relative;
  padding: 6rem 0;
  z-index: 1;
}

.pop-section__header {
  text-align: center;
  margin-bottom: 3rem;
}

.pop-stage {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  margin-bottom: 2.5rem;
}

.pop-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  transition: transform 0.15s ease;
}

.pop-btn:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 6px;
}

.pop-btn__ape {
  width: min(280px, 70vw);
  height: auto;
  transition: transform 0.15s ease;
  filter: drop-shadow(0 12px 40px rgba(245, 174, 44, 0.3));
}

.pop-btn__label {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  letter-spacing: 0.12em;
  color: var(--yellow);
  animation: popLabelPulse 2s ease-in-out infinite;
}

.pop-btn.is-popping .pop-btn__ape {
  transform: scale(1.15);
}

.pop-burst {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
  z-index: 10;
}

.pop-burst.is-active {
  animation: popBurstText 0.5s ease-out forwards;
}

.pop-burst__text {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 6rem);
  color: var(--yellow);
  text-shadow: 0 0 30px var(--orange), 0 4px 0 var(--orange-hot);
  letter-spacing: 0.05em;
}

.pop-stage__rings {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.shockwave {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border: 3px solid var(--gold);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

.shockwave.is-active {
  animation: shockwaveExpand 0.6s ease-out forwards;
}

.pop-particle {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  z-index: 5;
}

.pop-counter {
  text-align: center;
}

.pop-counter__label {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.pop-counter__value {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  color: var(--gold);
  letter-spacing: 0.15em;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.pop-counter__note {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

/* --- About --- */
.about {
  position: relative;
  padding: 6rem 0;
  z-index: 1;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.about__frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-warm), var(--shadow-glow);
}

.about__frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid rgba(245, 174, 44, 0.3);
  border-radius: var(--radius-lg);
  pointer-events: none;
  z-index: 1;
}

.about__frame img {
  width: 100%;
  transition: transform 0.6s ease;
}

.about__frame:hover img {
  transform: scale(1.04);
}

.about__lines p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.about__punch {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem) !important;
  color: var(--cream) !important;
}

.about__punch strong {
  color: var(--gold);
}

.about__tagline {
  font-style: italic;
  color: var(--gold) !important;
  margin-top: 1.5rem !important;
}

/* --- Evolution / Timeline --- */
.evolution {
  position: relative;
  padding: 6rem 0;
  background: linear-gradient(180deg, transparent 0%, rgba(33, 18, 8, 0.6) 50%, transparent 100%);
  z-index: 1;
}

.evolution__header {
  text-align: center;
  margin-bottom: 4rem;
}

.timeline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: 520px;
  margin-inline: auto;
}

.timeline__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.timeline__card {
  width: 100%;
  padding: 2rem;
  background: rgba(92, 53, 24, 0.25);
  border: 1px solid rgba(245, 174, 44, 0.15);
  border-radius: var(--radius);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.timeline__card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 174, 44, 0.35);
  box-shadow: var(--shadow-glow);
}

.timeline__card--active {
  background: linear-gradient(135deg, rgba(245, 174, 44, 0.15) 0%, rgba(255, 122, 26, 0.1) 100%);
  border-color: var(--gold);
  box-shadow: var(--shadow-glow);
}

.timeline__era {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  letter-spacing: 0.08em;
  color: var(--cream);
  margin-bottom: 0.75rem;
}

.timeline__desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.timeline__arrow {
  font-size: 1.5rem;
  color: var(--gold);
  padding: 0.75rem 0;
  animation: arrowBounce 2s ease-in-out infinite;
}

.timeline__final {
  text-align: center;
  padding: 2.5rem;
  margin-top: 1rem;
  background: radial-gradient(ellipse, rgba(245, 174, 44, 0.12) 0%, transparent 70%);
  border-radius: var(--radius-lg);
}

.timeline__final-label {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.timeline__final-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 5rem);
  color: var(--yellow);
  text-shadow: 0 0 40px rgba(255, 216, 77, 0.4);
  letter-spacing: 0.06em;
}

.timeline__final-sub {
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-style: italic;
}

/* --- Crowd / Banner --- */
.crowd {
  position: relative;
  padding: 4rem 0 0;
  z-index: 1;
}

.crowd__header {
  text-align: center;
  margin-bottom: 3rem;
}

.crowd__sub {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--gold);
  letter-spacing: 0.06em;
  margin-top: 0.75rem;
}

.crowd__banner-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  max-height: 70vh;
}

.crowd__banner {
  width: 100%;
  height: auto;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.1s linear;
  will-change: transform;
}

.crowd__fade {
  position: absolute;
  left: 0;
  right: 0;
  height: 120px;
  pointer-events: none;
}

.crowd__fade--top {
  top: 0;
  background: linear-gradient(to bottom, var(--bg) 0%, transparent 100%);
}

.crowd__fade--bottom {
  bottom: 0;
  background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
}

/* --- Philosophy Cards --- */
.philosophy {
  position: relative;
  padding: 6rem 0;
  z-index: 1;
}

.philosophy__header {
  text-align: center;
  margin-bottom: 3rem;
}

.philosophy__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.phil-card {
  perspective: 800px;
  cursor: default;
}

.phil-card__inner {
  padding: 2.5rem 2rem;
  background: linear-gradient(160deg, rgba(92, 53, 24, 0.4) 0%, rgba(33, 18, 8, 0.8) 100%);
  border: 1px solid rgba(245, 174, 44, 0.2);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: box-shadow var(--transition), border-color var(--transition);
  transform-style: preserve-3d;
  will-change: transform;
}

.phil-card:hover .phil-card__inner,
.phil-card:focus-visible .phil-card__inner {
  border-color: var(--gold);
  box-shadow: var(--shadow-glow);
}

.phil-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  letter-spacing: 0.06em;
  color: var(--yellow);
  margin-bottom: 1rem;
}

.phil-card__quote {
  font-size: 1rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.6;
}

/* --- Community --- */
.community {
  position: relative;
  padding: 6rem 0;
  z-index: 1;
}

.community__inner {
  text-align: center;
}

.community__sub {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-muted);
  margin: 1.5rem 0 2.5rem;
  line-height: 1.7;
}

.community__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* --- Final Pop --- */
.final-pop {
  position: relative;
  padding: 8rem 0;
  overflow: hidden;
  z-index: 1;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.final-pop__bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.final-pop__ape-bg {
  width: min(600px, 80vw);
  opacity: 0.12;
  filter: blur(2px);
  animation: finalApePulse 6s ease-in-out infinite;
}

.final-pop__waves {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.final-pop__wave {
  position: absolute;
  width: 100px;
  height: 100px;
  border: 2px solid rgba(245, 174, 44, 0.15);
  border-radius: 50%;
  animation: finalWaveExpand 5s ease-out infinite;
}

.final-pop__wave:nth-child(2) { animation-delay: 1.6s; }
.final-pop__wave:nth-child(3) { animation-delay: 3.2s; }

.final-pop__particles {
  position: absolute;
  inset: 0;
}

.final-banana {
  position: absolute;
  font-size: 1.2rem;
  opacity: 0.5;
  animation: bananaDrift linear infinite;
  pointer-events: none;
}

.final-pop__content {
  position: relative;
  text-align: center;
  z-index: 2;
}

.final-pop__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.final-pop__title span {
  display: block;
}

.final-pop__title--accent {
  color: var(--gold);
  text-shadow: 0 0 60px rgba(245, 174, 44, 0.5);
}

.final-pop__sub {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  letter-spacing: 0.06em;
}

.final-pop.is-visible .final-pop__title span {
  animation: finalTextIn 0.8s ease-out backwards;
}

.final-pop.is-visible .final-pop__title span:nth-child(2) { animation-delay: 0.15s; }
.final-pop.is-visible .final-pop__title span:nth-child(3) { animation-delay: 0.3s; }

/* --- Footer --- */
.footer {
  position: relative;
  padding: 3rem 0;
  border-top: 1px solid rgba(245, 174, 44, 0.12);
  z-index: 1;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer__brand img {
  border-radius: 50%;
  width: 40px;
  height: 40px;
  object-fit: cover;
}

.footer__name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.06em;
}

.footer__ticker {
  display: block;
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.1em;
}

.footer__links {
  display: flex;
  gap: 2rem;
}

.footer__links a {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer__links a:hover,
.footer__links a:focus-visible {
  color: var(--gold);
}

.footer__tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease, filter 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--stagger.is-visible {
  transition-delay: var(--stagger, 0s);
}

/* --- Shake --- */
body.is-shaking {
  animation: pageShake 0.1s ease-in-out;
}

/* --- Keyframes --- */
@keyframes blobDrift1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(8%, 6%); }
}

@keyframes blobDrift2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-6%, -8%); }
}

@keyframes blobDrift3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(5%, -5%); }
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-16px) scale(1.02); }
}

@keyframes heroGlowPulse {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes eyeShine {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

@keyframes ringExpand {
  0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(2.5); opacity: 0; }
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

@keyframes popLabelPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes popBurstText {
  0% { transform: translate(-50%, -50%) scale(0.3); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

@keyframes shockwaveExpand {
  0% { width: 50px; height: 50px; opacity: 0.8; }
  100% { width: 500px; height: 500px; opacity: 0; }
}

@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(245, 174, 44, 0.4); }
  50% { box-shadow: 0 4px 40px rgba(255, 122, 26, 0.6), 0 0 60px rgba(245, 174, 44, 0.3); }
}

@keyframes arrowBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

@keyframes finalApePulse {
  0%, 100% { transform: scale(1); opacity: 0.12; }
  50% { transform: scale(1.05); opacity: 0.18; }
}

@keyframes finalWaveExpand {
  0% { width: 100px; height: 100px; opacity: 0.4; }
  100% { width: 800px; height: 800px; opacity: 0; }
}

@keyframes finalTextIn {
  from { opacity: 0; transform: scale(0.8) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes bananaDrift {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.5; }
  90% { opacity: 0.5; }
  100% { transform: translateY(-10vh) rotate(360deg); opacity: 0; }
}

@keyframes pageShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

@keyframes heroEntrance {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .hero__ape,
  .hero__glow,
  .hero__ring,
  .bg-blob,
  .btn--glow,
  .pop-btn__label,
  .timeline__arrow,
  .hero__scroll-hint,
  .final-pop__ape-bg,
  .final-pop__wave {
    animation: none !important;
  }

  body.is-shaking {
    animation: none !important;
  }
}

/* --- Responsive: Tablet --- */
@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__visual {
    order: -1;
  }

  .hero__actions {
    justify-content: center;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about__visual {
    max-width: 360px;
    margin-inline: auto;
  }

  .philosophy__cards {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }
}

/* --- Responsive: Mobile Nav --- */
@media (max-width: 900px) {
  .hamburger {
    display: flex;
  }

  .navbar__nav {
    position: fixed;
    inset: 0;
    top: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    background: rgba(18, 11, 5, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 2rem;
  }

  .navbar__nav.is-open {
    transform: translateX(0);
  }

  .navbar__links {
    flex-direction: column;
    gap: 1.5rem;
  }

  .nav-link {
    font-size: 1.1rem;
  }

  .navbar__actions {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
  }

  .navbar__actions .btn {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .hero {
    padding-bottom: 3rem;
  }

  .hero__ape {
    width: min(300px, 75vw);
  }

  .hero__rings {
    display: none;
  }

  .community__actions {
    flex-direction: column;
    align-items: center;
  }

  .community__actions .btn {
    width: 100%;
    max-width: 320px;
  }

  .footer__links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
  }
}

@media (max-width: 430px) {
  .hero__title {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .hero__actions .btn {
    width: 100%;
  }

  .pop-btn__ape {
    width: min(220px, 65vw);
  }
}
