/* =========================================================
   BEARD BABY ($Beard) — THE ROYAL NURSERY
   Vanilla CSS. No frameworks.
   ========================================================= */

:root {
  /* Palette */
  --cream: #FFF7E8;
  --blue: #DCEEFF;
  --white: #FFFCF6;
  --brown: #42251B;
  --choc: #281610;
  --gold: #D6A443;
  --gold-soft: #F4D58A;
  --beige: #EADBC5;
  --text: #281610;

  --blue-deep: #B9D8F5;
  --gold-deep: #A97A26;
  --line: rgba(66, 37, 27, 0.14);

  /* Type */
  --font-display: "Segoe UI Black", "Arial Black", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, "Liberation Mono", monospace;

  /* Spacing */
  --gutter: clamp(16px, 4vw, 72px);
  --section-y: clamp(80px, 10vw, 180px);
  --radius-lg: clamp(22px, 2vw, 36px);
  --nav-top: max(14px, env(safe-area-inset-top));
  --nav-h: 66px;

  /* Motion */
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 30px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.15rem);
  line-height: 1.55;
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

@supports (overflow: clip) {
  body { overflow-x: clip; }
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 8px;
}

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

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--brown);
  color: var(--cream);
  font-weight: 800;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

.container {
  width: min(100% - var(--gutter) * 2, var(--max, 1680px));
  margin-inline: auto;
}

/* ---------- Shared type ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: clamp(0.75rem, 0.7rem + 0.2vw, 0.9rem);
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brown);
}
.eyebrow::before {
  content: "";
  width: 0.55em; height: 0.55em;
  background: var(--gold);
  transform: rotate(45deg);
  flex: none;
}
.eyebrow--gold { color: var(--gold-soft); }

.section-head {
  max-width: 1100px;
  margin-bottom: clamp(48px, 6vw, 96px);
}
.section-title {
  margin-top: 0.3em;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3rem, 1.6rem + 6vw, 8.5rem);
  line-height: 0.9;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  color: var(--brown);
}
.section-sub {
  margin-top: 0.8em;
  font-size: clamp(1.1rem, 0.9rem + 0.8vw, 1.6rem);
  font-weight: 600;
  color: rgba(40, 22, 16, 0.75);
}
.section-head--light .section-title { color: var(--cream); }
.section-head--light .section-sub { color: rgba(255, 247, 232, 0.75); }

/* ---------- Buttons ---------- */
.btn {
  --shadow-c: var(--choc);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 44px;
  padding: 0.95em 1.7em;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 6px 0 var(--shadow-c);
  transition: transform 0.35s var(--ease-bounce), box-shadow 0.35s var(--ease-bounce), background-color 0.25s;
}
.btn::after {
  /* gold shine sweep */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(244, 213, 138, 0.45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.6s var(--ease-out);
}
.btn:hover {
  transform: translateY(-3px) rotate(-1.5deg) scale(1.03);
  box-shadow: 0 9px 0 var(--shadow-c);
}
.btn:hover::after { transform: translateX(120%); }
.btn:active {
  transform: translateY(4px) scale(0.98);
  box-shadow: 0 2px 0 var(--shadow-c);
  transition-duration: 0.1s;
}

.btn--primary {
  background: var(--brown);
  color: var(--cream);
  border-color: rgba(214, 164, 67, 0.7);
}
.btn--ghost {
  --shadow-c: var(--brown);
  background: var(--white);
  color: var(--brown);
  border-color: var(--brown);
}
.btn--gold {
  --shadow-c: var(--gold-deep);
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: var(--choc);
  border-color: var(--gold-soft);
}

.btn--sm { padding: 0.75em 1.15em; font-size: 0.8rem; box-shadow: 0 4px 0 var(--shadow-c); }
.btn--sm:hover { box-shadow: 0 6px 0 var(--shadow-c); }
.btn--lg { padding: 1.15em 2.1em; font-size: clamp(0.95rem, 0.85rem + 0.3vw, 1.15rem); }
.btn--xl { padding: 1.25em 2.6em; font-size: clamp(1rem, 0.85rem + 0.5vw, 1.35rem); }
.btn__x { font-size: 1.2em; line-height: 1; }

/* ---------- Chips ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.5em 1em;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.chip--sol {
  background: var(--brown);
  color: var(--gold-soft);
}
.chip__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #9b6bff, #19fb9b);
}
.chip--pending {
  border: 1.5px solid var(--gold);
  color: var(--gold-soft);
}

/* ---------- Contract address ---------- */
.ca {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  border-radius: 999px;
}
.ca__value {
  font-family: var(--font-mono);
  font-weight: 700;
  overflow-wrap: anywhere;
  word-break: break-all;
}
.ca__copy {
  flex: none;
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.3s var(--ease-bounce), background-color 0.2s, color 0.2s;
}
.ca__copy:hover { transform: scale(1.06) rotate(-2deg); }
.ca__copy:active { transform: scale(0.95); }
.ca__copy.is-copied { background: var(--gold) !important; color: var(--choc) !important; }

.ca--compact {
  gap: 10px;
  padding: 5px 5px 5px 16px;
  background: rgba(255, 252, 246, 0.9);
  border: 1.5px solid var(--beige);
  box-shadow: 0 6px 20px -12px rgba(40, 22, 16, 0.4);
}
.ca--compact .ca__label {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  color: var(--gold-deep);
}
.ca--compact .ca__value { font-size: 0.95rem; color: var(--brown); }
.ca--compact .ca__copy {
  padding: 0 16px;
  font-size: 0.72rem;
  background: var(--brown);
  color: var(--cream);
}

/* =========================================================
   NAVIGATION
   ========================================================= */
.nav {
  position: fixed;
  top: var(--nav-top);
  left: 0; right: 0;
  z-index: 100;
  padding-inline: max(var(--gutter), env(safe-area-inset-left));
  pointer-events: none;
}
.nav__bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(100%, 1600px);
  height: var(--nav-h);
  margin-inline: auto;
  padding: 0 10px 0 10px;
  border-radius: 999px;
  background: rgba(255, 247, 232, 0.82);
  border: 1.5px solid rgba(214, 164, 67, 0.45);
  box-shadow: 0 10px 30px -18px rgba(40, 22, 16, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  pointer-events: auto;
  transition: box-shadow 0.3s, background-color 0.3s;
}
.nav.is-scrolled .nav__bar {
  background: rgba(255, 247, 232, 0.94);
  box-shadow: 0 14px 34px -16px rgba(40, 22, 16, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: none;
}
.nav__logo {
  width: 46px; height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  transition: transform 0.4s var(--ease-bounce);
}
.nav__brand:hover .nav__logo { transform: rotate(-10deg) scale(1.08); }
.nav__wordmark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--brown);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(8px, 2vw, 36px);
}
.nav__links a {
  position: relative;
  padding: 8px 4px;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--brown);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 4px; right: 4px; bottom: 2px;
  height: 3px;
  border-radius: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.nav__links a:hover::after { transform: scaleX(1); }
.nav__links .nav__menu-x { display: none; }

.nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.nav__x { min-width: 44px; padding-inline: 0.9em; font-size: 1rem; }

.nav__toggle {
  display: none;
  position: relative;
  width: 46px; height: 46px;
  border: 2px solid var(--brown);
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
}
.nav__toggle span {
  position: absolute;
  left: 12px; right: 12px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--brown);
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
.nav__toggle span:nth-child(1) { top: 14px; }
.nav__toggle span:nth-child(2) { top: 20px; }
.nav__toggle span:nth-child(3) { top: 26px; }
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  overflow: hidden;
  background: linear-gradient(180deg, var(--blue) 0%, #E6F2FF 55%, var(--cream) 74%, var(--cream) 100%);
}

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

.hero__wallpaper {
  position: absolute;
  inset: 0 0 26% 0;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.42) 0 44px, transparent 44px 88px);
  -webkit-mask-image: linear-gradient(180deg, #000 20%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 20%, transparent 100%);
}
.hero__dots {
  position: absolute;
  inset: 0 0 26% 0;
  background-image: radial-gradient(circle, rgba(214, 164, 67, 0.35) 2.2px, transparent 2.8px);
  background-size: 88px 88px;
  background-position: 22px 30px;
  -webkit-mask-image: linear-gradient(180deg, #000 10%, transparent 90%);
  mask-image: linear-gradient(180deg, #000 10%, transparent 90%);
}
.hero__floor {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 26%;
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(12.5% - 1px), rgba(234, 219, 197, 0.6) calc(12.5% - 1px) 12.5%),
    linear-gradient(180deg, #FBEFD9, var(--cream) 40%);
  border-top: 3px solid rgba(214, 164, 67, 0.55);
  box-shadow: 0 -10px 0 rgba(255, 252, 246, 0.9);
}
.hero__spotlight {
  position: absolute;
  top: -10%;
  right: -6%;
  width: min(70vw, 1500px);
  height: 120%;
  background: radial-gradient(closest-side, rgba(255, 252, 246, 0.98), rgba(255, 247, 232, 0.7) 45%, rgba(255, 247, 232, 0) 100%);
  animation: glow 9s ease-in-out infinite;
}
.hero__ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(214, 164, 67, 0.45);
}
.hero__ring::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  border: 1px dashed rgba(214, 164, 67, 0.4);
}
.hero__ring--lg {
  width: clamp(320px, 30vw, 640px);
  aspect-ratio: 1;
  right: 4%;
  top: 9%;
  animation: drift 14s ease-in-out infinite;
}
.hero__ring--sm {
  width: clamp(120px, 10vw, 220px);
  aspect-ratio: 1;
  right: 37%;
  bottom: 18%;
  animation: drift 11s ease-in-out -4s infinite reverse;
}

/* 4-point gold sparkles */
.sparkle {
  position: absolute;
  width: var(--s, 22px);
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  animation: twinkle 3.6s ease-in-out infinite;
}
.sparkle--1 { --s: 26px; top: 26%; right: 41%; animation-delay: -0.4s; }
.sparkle--2 { --s: 18px; top: 58%; right: 6%; animation-delay: -1.6s; }
.sparkle--3 { --s: 34px; top: 20%; right: 9%; animation-delay: -2.4s; }
.sparkle--4 { --s: 14px; top: 64%; left: 47%; animation-delay: -0.9s; }
.sparkle--5 { --s: 20px; top: 33%; left: 3%; animation-delay: -3s; }

/* Bunting garland */
.bunting {
  position: absolute;
  top: calc(var(--nav-top) + var(--nav-h) + 14px);
  left: -2%;
  right: -2%;
  height: 40px;
  border-bottom: 2px solid rgba(169, 122, 38, 0.6);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
}
.bunting span {
  --sag: calc((1 - (var(--i) - 7.5) * (var(--i) - 7.5) / 56.25) * 38px);
  position: absolute;
  top: calc(var(--sag) - 2px);
  left: calc(var(--i) * (100% / 15) - 17px);
  width: 34px;
  height: 42px;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background: var(--gold);
  transform-origin: 50% 0;
  animation: sway 4.8s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.3s);
}
.bunting span:nth-child(4n + 2) { background: var(--white); }
.bunting span:nth-child(4n + 3) { background: var(--blue-deep); }
.bunting span:nth-child(4n + 4) { background: var(--brown); }

.hero__inner {
  --max: 1880px;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 3vw, 64px);
  padding-top: calc(var(--nav-top) + var(--nav-h) + 90px);
  padding-bottom: 0;
}

.hero__content {
  align-self: center;
  padding-bottom: clamp(40px, 8vh, 110px);
}
.hero__eyebrow { color: var(--brown); }
.hero__eyebrow::before { display: none; }
.eyebrow__crown {
  width: 1.5em; height: 1em;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  clip-path: polygon(0 100%, 0 20%, 25% 55%, 50% 0, 75% 55%, 100% 20%, 100% 100%);
}

.hero__title {
  margin-top: 0.18em;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(5rem, 8vw, 10rem);
  line-height: 0.86;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

/* Beard-inspired type: fibrous brown texture, irregular letters, soft depth */
.beard-type {
  display: block;
  white-space: nowrap;
}
.beard-type > span {
  position: relative;
  display: inline-block;
  color: var(--brown);
  text-shadow: 0 0.03em 0 var(--choc), 0 0.07em 0 rgba(214, 164, 67, 0.55);
  transition: transform 0.4s var(--ease-bounce);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .beard-type > span {
    color: transparent;
    text-shadow: none;
    background:
      repeating-linear-gradient(98deg, rgba(255, 214, 170, 0) 0 2px, rgba(255, 214, 170, 0.12) 2px 3px, rgba(0, 0, 0, 0) 3px 7px),
      repeating-linear-gradient(80deg, rgba(20, 8, 4, 0.28) 0 1px, rgba(0, 0, 0, 0) 1px 5px),
      linear-gradient(180deg, #6A3E2C 0%, var(--brown) 42%, #2E1911 100%);
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 0.025em 0 var(--choc)) drop-shadow(0 0.06em 0 rgba(214, 164, 67, 0.6)) drop-shadow(0 0.16em 0.12em rgba(40, 22, 16, 0.16));
  }
}
.beard-type > span:nth-child(1) { transform: rotate(-2.5deg); }
.beard-type > span:nth-child(2) { transform: translateY(0.025em) rotate(1.5deg); }
.beard-type > span:nth-child(3) { transform: rotate(-1deg); }
.beard-type > span:nth-child(4) { transform: translateY(-0.02em) rotate(2deg); }
.beard-type > span:nth-child(5) { transform: translateY(0.015em) rotate(-1.5deg); }
.hero__title:hover .beard-type > span:nth-child(odd) { transform: translateY(-0.04em) rotate(3deg); }
.hero__title:hover .beard-type > span:nth-child(even) { transform: translateY(0.02em) rotate(-3deg); }

.crown {
  position: absolute;
  left: -0.08em;
  top: -0.3em;
  width: 0.5em;
  height: 0.32em;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold) 60%, var(--gold-deep));
  clip-path: polygon(0 100%, 0 25%, 22% 60%, 50% 0, 78% 60%, 100% 25%, 100% 100%);
  transform: rotate(-16deg);
  filter: none;
}

.hero__tagline {
  margin-top: clamp(20px, 2.4vw, 40px);
  font-size: clamp(1.5rem, 1rem + 1.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--brown);
}
.hero__tagline strong {
  font-weight: 900;
  background: linear-gradient(180deg, transparent 62%, var(--gold-soft) 62% 92%, transparent 92%);
}
.hero__desc {
  margin-top: 14px;
  max-width: 34ch;
  font-size: clamp(1.05rem, 0.95rem + 0.35vw, 1.3rem);
  color: rgba(40, 22, 16, 0.75);
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 18px;
  margin-top: clamp(26px, 3vw, 44px);
}
.hero__token {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: clamp(26px, 3vw, 40px);
}

.hero__stage {
  position: relative;
  align-self: end;
  display: flex;
  justify-content: center;
}
.hero__baby {
  position: relative;
  width: min(100%, calc((100vh - var(--nav-top) - var(--nav-h) - 110px) * 0.6667), 680px);
  width: min(100%, calc((100svh - var(--nav-top) - var(--nav-h) - 110px) * 0.6667), 680px);
  min-width: min(100%, 300px);
  margin-bottom: clamp(8px, 2.5vh, 32px);
}
.hero__baby-btn {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  border-radius: 40px;
  -webkit-tap-highlight-color: transparent;
}
.hero__baby-btn img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: contain;
  filter: drop-shadow(0 30px 30px rgba(40, 22, 16, 0.18));
  animation: bob 5.5s ease-in-out 1.6s infinite;
}
.hero__baby-btn.is-wiggling img { animation: wiggle 0.6s var(--ease-out); }

/* Royal cushion the baby sits on */
.hero__cushion {
  position: absolute;
  left: 2%; right: 2%;
  bottom: 0.5%;
  height: 15%;
  border-radius: 50% / 48%;
  background: radial-gradient(ellipse at 50% 30%, #F1F8FF 0%, var(--blue-deep) 60%, #9CC3EA 100%);
  box-shadow:
    inset 0 -7px 0 rgba(214, 164, 67, 0.65),
    inset 0 4px 0 rgba(255, 255, 255, 0.7),
    0 28px 40px -20px rgba(40, 22, 16, 0.45);
}
.hero__cushion::before,
.hero__cushion::after {
  content: "";
  position: absolute;
  top: 46%;
  width: 18px; height: 34px;
  border-radius: 9px 9px 4px 4px;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold-deep));
}
.hero__cushion::before { left: -6px; transform: rotate(18deg); }
.hero__cushion::after { right: -6px; transform: rotate(-18deg); }

/* Speech bubble */
.bubble {
  position: absolute;
  z-index: 2;
  top: 24%;
  left: -6%;
  max-width: min(260px, 60vw);
  padding: 14px 18px;
  border: 2px solid var(--brown);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 6px 0 var(--brown);
  font-weight: 900;
  font-size: clamp(0.9rem, 0.8rem + 0.3vw, 1.1rem);
  line-height: 1.25;
  color: var(--brown);
  opacity: 0;
  transform: scale(0.6) translateY(10px);
  transform-origin: 80% 100%;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.4s var(--ease-bounce);
}
.bubble::after {
  content: "";
  position: absolute;
  right: 22px; bottom: -14px;
  width: 22px; height: 14px;
  background: var(--brown);
  clip-path: polygon(0 0, 100% 0, 80% 100%);
}
.bubble.is-visible { opacity: 1; transform: none; }

/* Intro entrance */
.intro { animation: introRise 0.9s var(--ease-out) both; }
.intro--1 { animation-delay: 0.05s; }
.intro--2 { animation-name: introTitle; animation-duration: 1.1s; animation-delay: 0.15s; }
.intro--3 { animation-delay: 0.45s; }
.intro--4 { animation-delay: 0.6s; }
.intro--5 { animation-delay: 0.75s; }
.intro--baby { animation-name: introBaby; animation-duration: 1.3s; animation-delay: 0.25s; }

/* =========================================================
   MARQUEE
   ========================================================= */
.marquee {
  position: relative;
  z-index: 2;
  overflow: hidden;
  background: var(--brown);
  border-block: 3px solid var(--gold);
  color: var(--gold-soft);
  padding-block: clamp(14px, 1.4vw, 22px);
}
.marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee__track > * { margin-right: clamp(20px, 2.4vw, 44px); }
.marquee span {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.1rem, 0.8rem + 1.2vw, 2.1rem);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee i {
  width: 14px; height: 14px;
  flex: none;
  background: var(--gold);
  transform: rotate(45deg);
}

/* =========================================================
   STORY
   ========================================================= */
.story {
  position: relative;
  padding-block: var(--section-y) calc(var(--section-y) + 30px);
  background:
    radial-gradient(circle at 92% 8%, rgba(220, 238, 255, 0.9), transparent 34%),
    radial-gradient(circle at 4% 96%, rgba(244, 213, 138, 0.35), transparent 30%),
    var(--cream);
}
.story__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(20px, 3vw, 56px);
  row-gap: clamp(40px, 5vw, 80px);
}
.story__head { grid-column: 1 / 9; }
.story__title {
  margin-top: 0.4em;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.6rem, 1.2rem + 5.2vw, 7.4rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--brown);
}
.story__title span {
  display: inline;
  background: linear-gradient(180deg, transparent 58%, var(--gold-soft) 58% 90%, transparent 90%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.portrait {
  grid-column: 9 / 13;
  grid-row: 1 / 3;
  align-self: start;
  justify-self: end;
  width: min(100%, 520px);
  margin-top: clamp(0px, 4vw, 70px);
}
.portrait__frame {
  padding: clamp(12px, 1.2vw, 22px);
  border-radius: 999px 999px 26px 26px;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold) 38%, var(--gold-deep) 62%, var(--gold-soft));
  box-shadow: 0 30px 60px -30px rgba(40, 22, 16, 0.55), inset 0 0 0 2px rgba(255, 255, 255, 0.35);
  transform: rotate(2.5deg);
  transition: transform 0.6s var(--ease-bounce);
}
.portrait:hover .portrait__frame { transform: rotate(-1deg) scale(1.02); }
.portrait__frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 40%;
  border-radius: 999px 999px 16px 16px;
  border: 3px solid var(--white);
}
.portrait__plaque {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: max-content;
  max-width: 90%;
  margin: -34px auto 0;
  padding: 12px 28px;
  border-radius: 999px;
  background: var(--brown);
  border: 2px solid var(--gold);
  box-shadow: 0 6px 0 var(--choc);
  text-align: center;
  transform: rotate(-1.5deg);
}
.portrait__plaque span {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.portrait__plaque strong {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.2rem, 1rem + 0.6vw, 1.6rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--cream);
}

.story__copy {
  grid-column: 1 / 9;
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.4vw, 40px);
  padding-left: clamp(0px, 6vw, 140px);
  border-left: 0;
}
.story__line { color: var(--brown); }
.story__line--sm {
  font-size: clamp(1.4rem, 1rem + 1.4vw, 2.4rem);
  font-weight: 600;
}
.story__line--lg {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 1rem + 3.4vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.03em;
}
.story__line--xl {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3rem, 1.4rem + 5.6vw, 8.4rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}
.story__nos {
  display: flex;
  flex-direction: column;
  gap: 0.25em;
  padding-left: clamp(18px, 3vw, 48px);
  border-left: 4px solid var(--gold);
  font-size: clamp(1.4rem, 0.9rem + 1.6vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  color: rgba(66, 37, 27, 0.85);
}
.story__nos s {
  text-decoration-color: var(--gold);
  text-decoration-thickness: 0.14em;
}
.story__aside {
  font-size: 0.5em;
  font-weight: 700;
  color: var(--gold-deep);
  vertical-align: middle;
}

.hl {
  font-style: normal;
  text-transform: uppercase;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hl--beard {
  background: linear-gradient(180deg, transparent 60%, var(--gold-soft) 60% 92%, transparent 92%);
}
.hl--baby {
  display: inline-block;
  padding: 0 0.12em 0.04em;
  border-radius: 0.14em;
  background: var(--blue);
  box-shadow: inset 0 -0.08em 0 var(--gold);
  transform: rotate(-2deg);
}

/* =========================================================
   SHOWCASE
   ========================================================= */
.showcase::before,
.chart::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -1px;
  height: 24px;
  background: radial-gradient(circle at 50% 0, var(--scallop) 0 22px, transparent 23px) 0 0 / 48px 24px repeat-x;
  z-index: 1;
}
.showcase::after,
.chart::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 24px;
  background: radial-gradient(circle at 50% 100%, var(--scallop-bottom) 0 22px, transparent 23px) 24px 0 / 48px 24px repeat-x;
  z-index: 1;
}

.showcase {
  --scallop: var(--cream);
  --scallop-bottom: var(--white);
  position: relative;
  padding-block: calc(var(--section-y) + 10px);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(214, 164, 67, 0.22), transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(214, 164, 67, 0.12), transparent 50%),
    var(--choc);
  color: var(--cream);
}
.showcase__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: clamp(40px, 5vw, 80px);
}
.showcase__title {
  margin-top: 0.35em;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3rem, 1.4rem + 6.4vw, 9rem);
  line-height: 0.88;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--gold);
}
.showcase__title span { color: var(--cream); }

.showcase__figure { --max: 1680px; }
.showcase__frame {
  padding: clamp(6px, 0.6vw, 12px);
  border-radius: calc(var(--radius-lg) + 8px);
  background: linear-gradient(135deg, var(--gold-soft), var(--gold) 40%, var(--gold-deep) 65%, var(--gold-soft));
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(244, 213, 138, 0.3);
}
.showcase__frame img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}
.showcase__caption {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(14px, 2vw, 32px);
  margin-top: clamp(24px, 3vw, 44px);
  font-weight: 900;
  font-size: clamp(0.85rem, 0.75rem + 0.4vw, 1.15rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.showcase__caption i {
  width: 8px; height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
}

/* =========================================================
   HOW TO BUY
   ========================================================= */
.buy {
  position: relative;
  padding-block: var(--section-y);
  background:
    radial-gradient(circle at 100% 0%, var(--blue) 0, transparent 32%),
    radial-gradient(circle at 0% 70%, rgba(220, 238, 255, 0.8) 0, transparent 26%),
    var(--white);
}

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 32px);
  counter-reset: none;
}
.steps::before {
  /* dashed "ribbon" linking the blocks */
  content: "";
  position: absolute;
  left: 6%; right: 6%;
  top: calc(clamp(24px, 2.4vw, 40px) + 44px);
  border-top: 3px dashed rgba(214, 164, 67, 0.6);
}
.step {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2.4vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--cream);
  border: 2px solid var(--line);
}
.step::after {
  /* little stitched corner */
  content: "";
  position: absolute;
  right: 18px; top: 18px;
  width: 26px; height: 26px;
  border-top: 3px dotted var(--gold);
  border-right: 3px dotted var(--gold);
  border-radius: 0 10px 0 0;
}
.step__block {
  display: grid;
  place-items: center;
  width: 88px; height: 88px;
  margin-bottom: clamp(20px, 2vw, 32px);
  border-radius: 20px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.1rem;
  letter-spacing: -0.04em;
  color: var(--choc);
  background: var(--gold-soft);
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.55), 0 7px 0 var(--choc);
  transition: transform 0.45s var(--ease-bounce);
}
.step:nth-child(1) .step__block { transform: rotate(-7deg); background: var(--gold); }
.step:nth-child(2) .step__block { transform: rotate(5deg); background: var(--blue-deep); }
.step:nth-child(3) .step__block { transform: rotate(-4deg); background: var(--beige); }
.step:nth-child(4) .step__block { transform: rotate(8deg); background: var(--brown); color: var(--gold-soft); }
.step:hover .step__block { transform: translateY(-8px) rotate(0deg) scale(1.06); }
.step__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.5rem, 1.1rem + 1vw, 2.2rem);
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--brown);
}
.step__text {
  margin-top: 0.8em;
  color: rgba(40, 22, 16, 0.78);
}

/* CA panel */
.ca-panel {
  position: relative;
  max-width: 1100px;
  margin: clamp(56px, 6vw, 100px) auto 0;
  padding: clamp(26px, 3.4vw, 56px);
  border-radius: calc(var(--radius-lg) + 6px);
  background:
    radial-gradient(circle at 100% 0, rgba(214, 164, 67, 0.25), transparent 45%),
    var(--brown);
  color: var(--cream);
  box-shadow: 0 10px 0 var(--choc), 0 40px 70px -40px rgba(40, 22, 16, 0.7);
  border: 2px solid rgba(214, 164, 67, 0.6);
}
.ca-panel__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: clamp(18px, 2vw, 28px);
}
.ca-panel__label {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.2rem, 0.9rem + 1vw, 2rem);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.ca--large {
  display: flex;
  width: 100%;
  gap: 12px;
  padding: 10px 10px 10px clamp(18px, 2.4vw, 36px);
  background: rgba(255, 247, 232, 0.07);
  border: 2px dashed rgba(214, 164, 67, 0.7);
}
.ca--large .ca__value {
  flex: 1;
  min-width: 0;
  font-size: clamp(1.3rem, 0.9rem + 2vw, 2.8rem);
  color: var(--cream);
  letter-spacing: 0.02em;
}
.ca--large .ca__copy {
  padding: 0 clamp(20px, 2.2vw, 40px);
  min-height: clamp(52px, 4.4vw, 72px);
  font-size: clamp(0.85rem, 0.75rem + 0.3vw, 1.05rem);
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: var(--choc);
  box-shadow: 0 4px 0 var(--gold-deep);
}
.ca-panel__note {
  margin-top: 16px;
  font-size: 0.92rem;
  color: rgba(255, 247, 232, 0.7);
}

.buy__cta {
  display: flex;
  justify-content: center;
  margin-top: clamp(40px, 4vw, 64px);
}

/* =========================================================
   CHART
   ========================================================= */
.chart {
  --scallop: var(--white);
  --scallop-bottom: var(--blue);
  position: relative;
  padding-block: calc(var(--section-y) + 10px);
  background:
    radial-gradient(ellipse at 15% 10%, rgba(214, 164, 67, 0.18), transparent 45%),
    var(--brown);
  color: var(--cream);
}
.chart .section-head { margin-inline: auto; text-align: center; }
.chart .eyebrow { justify-content: center; }
.chart__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 420px;
  max-height: 82vh;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 3px solid var(--gold);
  background: var(--choc);
  box-shadow: 0 0 0 8px rgba(214, 164, 67, 0.12), 0 40px 80px -40px rgba(0, 0, 0, 0.7);
}
.chart__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.chart__cta {
  display: flex;
  justify-content: center;
  margin-top: clamp(36px, 4vw, 60px);
}

/* =========================================================
   COMMUNITY
   ========================================================= */
.community {
  position: relative;
  overflow: hidden;
  padding-block: var(--section-y) clamp(40px, 5vw, 80px);
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.7) 2.5px, transparent 3px) 0 0 / 56px 56px,
    linear-gradient(180deg, var(--blue), #CFE6FD);
}
.community__bg { position: absolute; inset: 0; pointer-events: none; }
.sparkle--a { --s: 40px; top: 12%; left: 52%; animation-delay: -1s; }
.sparkle--b { --s: 22px; bottom: 30%; left: 6%; animation-delay: -2s; }
.sparkle--c { --s: 28px; top: 20%; right: 5%; animation-delay: -0.3s; }

.community__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 5vw, 100px);
}
.community__title {
  margin-top: 0.3em;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3.2rem, 1.4rem + 6.6vw, 9.6rem);
  line-height: 0.88;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  color: var(--brown);
}
.community__title span {
  display: inline;
  background: linear-gradient(180deg, transparent 58%, var(--gold-soft) 58% 90%, transparent 90%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.community__sub {
  margin: 0.9em 0 clamp(28px, 3vw, 48px);
  font-size: clamp(1.2rem, 0.9rem + 1vw, 1.9rem);
  font-weight: 700;
  color: rgba(40, 22, 16, 0.8);
}

.card-wrap {
  display: flex;
  justify-content: center;
  perspective: 1200px;
}
.member-card {
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  width: min(100%, 560px);
  aspect-ratio: 1.586;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(18px, 2vw, 32px);
  border-radius: clamp(18px, 1.8vw, 30px);
  background:
    radial-gradient(circle at 85% 10%, rgba(214, 164, 67, 0.35), transparent 40%),
    repeating-linear-gradient(100deg, rgba(255, 255, 255, 0.02) 0 2px, transparent 2px 6px),
    linear-gradient(135deg, var(--brown), var(--choc));
  color: var(--cream);
  border: 2px solid var(--gold);
  box-shadow: 0 12px 0 var(--choc), 0 50px 80px -40px rgba(40, 22, 16, 0.8), inset 0 0 0 6px rgba(214, 164, 67, 0.15);
  transform: rotate(-4deg) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease-out);
}
.member-card.is-tilting { transition-duration: 0.1s; }
.member-card__top,
.member-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.member-card__club {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.1rem, 0.8rem + 1vw, 1.8rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.member-card__tier {
  padding: 0.4em 0.9em;
  border: 1.5px solid var(--gold);
  border-radius: 999px;
  font-size: clamp(0.55rem, 0.5rem + 0.2vw, 0.72rem);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
  white-space: nowrap;
}
.member-card__body {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.6vw, 26px);
}
.member-card__body img {
  width: 30%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 16px;
  border: 3px solid var(--gold);
}
.member-card dl {
  display: grid;
  gap: clamp(4px, 0.6vw, 10px);
}
.member-card dl div { display: flex; gap: 10px; align-items: baseline; }
.member-card dt {
  min-width: 5.5em;
  font-size: clamp(0.6rem, 0.55rem + 0.2vw, 0.75rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 213, 138, 0.75);
}
.member-card dd {
  font-weight: 900;
  font-size: clamp(0.95rem, 0.8rem + 0.5vw, 1.35rem);
  text-transform: uppercase;
}
.member-card__foot {
  font-family: var(--font-mono);
  font-size: clamp(0.65rem, 0.6rem + 0.25vw, 0.85rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 247, 232, 0.7);
}

.community__closing {
  position: relative;
  margin-top: clamp(60px, 7vw, 120px);
  padding-inline: var(--gutter);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 1rem + 7vw, 11rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--brown);
  text-shadow: 0 0.05em 0 var(--gold-soft);
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  padding: clamp(56px, 6vw, 96px) 0 calc(clamp(28px, 3vw, 44px) + env(safe-area-inset-bottom));
  background: var(--choc);
  color: var(--cream);
  border-top: 4px solid var(--gold);
}
.footer__grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__brand img {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}
.footer__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1;
}
.footer__meta {
  margin-top: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px clamp(16px, 2.4vw, 40px);
}
.footer__links a {
  padding: 6px 2px;
  font-weight: 800;
  text-decoration: none;
  color: var(--cream);
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--gold-soft); }
.footer__ca {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(214, 164, 67, 0.5);
}
.footer__ca-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.footer__ca code {
  font-family: var(--font-mono);
  font-weight: 700;
  overflow-wrap: anywhere;
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: clamp(36px, 4vw, 56px);
  padding-top: 24px;
  border-top: 1px solid rgba(255, 247, 232, 0.14);
  font-size: 0.88rem;
  color: rgba(255, 247, 232, 0.65);
}
.footer__slogan {
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 150;
  max-width: calc(100% - 32px);
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--brown);
  color: var(--cream);
  border: 2px solid var(--gold);
  font-weight: 800;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 20px);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.35s var(--ease-bounce);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.js .reveal {
  opacity: 0;
  transform: translateY(44px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 110ms);
}
.js .reveal--right { transform: translateX(50px) rotate(2deg); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   KEYFRAMES
   ========================================================= */
@keyframes introRise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}
@keyframes introTitle {
  from { opacity: 0; transform: translateY(60px) scale(0.94); }
  to { opacity: 1; transform: none; }
}
@keyframes introBaby {
  0% { opacity: 0; transform: translateY(80px) scale(0.86); }
  60% { opacity: 1; transform: translateY(-8px) scale(1.01); }
  100% { opacity: 1; transform: none; }
}
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(-0.6deg); }
}
@keyframes wiggle {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-4deg) scale(1.02); }
  40% { transform: rotate(3deg); }
  60% { transform: rotate(-2deg); }
  80% { transform: rotate(1deg); }
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-14px, 12px) scale(1.03); }
}
@keyframes glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.04); }
}
@keyframes twinkle {
  0%, 100% { opacity: 0.9; transform: scale(1) rotate(0deg); }
  50% { opacity: 0.35; transform: scale(0.6) rotate(45deg); }
}
@keyframes sway {
  0%, 100% { transform: rotate(-4deg); }
  50% { transform: rotate(4deg); }
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* Ultrawide: let the content breathe a little wider */
@media (min-width: 2200px) {
  :root { --gutter: 96px; }
  .hero__inner { --max: 2100px; }
  .container { --max: 1840px; }
}

/* Short desktop viewports (laptops) */
@media (min-width: 901px) and (max-height: 820px) {
  .hero__inner { padding-top: calc(var(--nav-top) + var(--nav-h) + 76px); }
  .hero__title { font-size: clamp(4.4rem, 7vw, 8.4rem); }
  .hero__tagline { margin-top: 16px; }
  .hero__ctas, .hero__token { margin-top: 22px; }
}

@media (max-width: 1200px) {
  .nav__wordmark { font-size: 1rem; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps::before { display: none; }
}

@media (max-width: 1024px) {
  .story__head,
  .story__copy { grid-column: 1 / -1; }
  .portrait {
    grid-column: 1 / -1;
    grid-row: auto;
    justify-self: center;
    width: min(100%, 420px);
    margin-top: 0;
  }
  .story__copy { padding-left: 0; }
  .community__grid { grid-template-columns: 1fr; }
  .community__copy { text-align: center; }
  .community__copy .eyebrow { justify-content: center; }
  .footer__grid { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer__bottom { justify-content: center; text-align: center; }
}

/* Tablet & mobile: stacked hero + menu */
@media (max-width: 900px) {
  :root { --nav-h: 60px; }

  .nav__links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    border-radius: 26px;
    background: var(--cream);
    border: 1.5px solid rgba(214, 164, 67, 0.5);
    box-shadow: 0 24px 40px -20px rgba(40, 22, 16, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.98);
    transform-origin: top center;
    transition: opacity 0.25s, transform 0.3s var(--ease-out), visibility 0s linear 0.3s;
  }
  .nav.is-open .nav__links {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.25s, transform 0.3s var(--ease-out), visibility 0s;
  }
  .nav__links a {
    padding: 14px 18px;
    border-radius: 16px;
    font-size: 1.1rem;
  }
  .nav__links a:hover { background: var(--blue); }
  .nav__links a::after { display: none; }
  .nav__links .nav__menu-x { display: block; }
  .nav__x { display: none; }
  .nav__toggle { display: block; }
  .nav__logo { width: 40px; height: 40px; }

  .bunting { height: 26px; }
  .bunting span {
    --sag: calc((1 - (var(--i) - 7.5) * (var(--i) - 7.5) / 56.25) * 24px);
    width: 22px; height: 28px;
    left: calc(var(--i) * (100% / 15) - 11px);
  }

  .hero__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 12px;
    padding-top: calc(var(--nav-top) + var(--nav-h) + 72px);
  }
  .hero__content { padding-bottom: 0; }
  .hero__title { font-size: clamp(3.6rem, 17vw, 7.5rem); }
  .hero__desc { margin-inline: auto; }
  .hero__ctas,
  .hero__token { justify-content: center; }
  .hero__stage { width: 100%; }
  .hero__baby {
    width: min(84vw, 460px);
    min-width: 0;
    margin-bottom: 18px;
  }
  .bubble { left: 0; top: 18%; }
  .hero__ring--lg { right: -20%; top: auto; bottom: 8%; width: 80vw; }
  .hero__ring--sm { right: auto; left: 4%; bottom: 30%; }
  .hero__spotlight { top: auto; bottom: -10%; right: -20%; width: 140vw; height: 70%; }
  .hero__floor { height: 16%; }
  .hero__wallpaper, .hero__dots { inset: 0 0 16% 0; }
  .sparkle--1 { top: 52%; right: 8%; }
  .sparkle--4 { top: 70%; left: 8%; }
  .sparkle--5 { display: none; }

  .chart__frame { aspect-ratio: 4 / 5; min-height: 0; max-height: 78vh; }
}

@media (max-width: 640px) {
  :root { --section-y: 76px; }

  .nav__bar { padding-inline: 6px; gap: 8px; }
  .nav__actions { gap: 8px; }

  .hero__ctas { flex-direction: column; align-items: stretch; width: 100%; max-width: 360px; margin-inline: auto; }
  .hero__ctas .btn { width: 100%; }
  .hero__token { flex-direction: column; }

  .steps { grid-template-columns: 1fr; }
  .step { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 20px; }
  .step__block { width: 68px; height: 68px; font-size: 1.6rem; margin-bottom: 0; border-radius: 16px; }
  .step__title { flex: 1; min-width: 0; }
  .step__text { flex-basis: 100%; }

  .ca--large { flex-direction: column; align-items: stretch; border-radius: 22px; padding: 16px; }
  .ca--large .ca__value { text-align: center; }

  .member-card { transform: rotate(-2deg); }
  .member-card__tier { display: none; }

  .community__copy .btn { width: 100%; max-width: 360px; }
  .community__closing { white-space: normal; }

  .showcase::before, .chart::before, .showcase::after, .chart::after {
    background-size: 32px 16px;
    height: 16px;
  }
  .showcase::before, .chart::before {
    background-image: radial-gradient(circle at 50% 0, var(--scallop) 0 14px, transparent 15px);
  }
  .showcase::after, .chart::after {
    background-image: radial-gradient(circle at 50% 100%, var(--scallop-bottom) 0 14px, transparent 15px);
    background-position: 16px 0;
  }
}

@media (max-width: 400px) {
  .nav__wordmark { display: none; }
  .ca--compact .ca__value { font-size: 0.85rem; }
}

@media (max-width: 340px) {
  .nav__buy-ticker { display: none; }
  .hero__title { font-size: 3.4rem; }
}

/* Hover only where it makes sense */
@media (hover: none) {
  .btn:hover { transform: none; box-shadow: 0 6px 0 var(--shadow-c); }
  .btn--sm:hover { box-shadow: 0 4px 0 var(--shadow-c); }
  .hero__title:hover .beard-type > span { transform: none; }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .marquee__track { animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
