/* ============================================================
   CatHood · a Robinhood-parody editorial site for $CATHOOD
   Type: Fraunces (display) + Hanken Grotesk (body)
   Palette: warm paper, deep ink, Robinhood green
   ============================================================ */

:root {
  --paper: #f6f3e9;
  --paper-2: #efebdc;
  --card: #fdfbf4;
  --ink: #151e12;
  --ink-soft: #47543f;
  --green: #00c805;
  --green-deep: #0a7a16;
  --green-tint: #e0f3dc;
  --pink: #f2a0b7;
  --line: rgba(21, 30, 18, 0.16);
  --line-strong: rgba(21, 30, 18, 0.85);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Hanken Grotesk", "Helvetica Neue", sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

/* subtle paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  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='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='table' tableValues='0 0.05'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--green); color: var(--ink); }

a { color: inherit; }
:focus-visible { outline: 3px solid var(--green-deep); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 55, "WONK" 1;
  line-height: 1.02;
  letter-spacing: -0.01em;
  font-weight: 620;
}

section { scroll-margin-top: 96px; }

/* ============ layout helpers ============ */
.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(4.5rem, 9vw, 8rem) clamp(1.25rem, 4vw, 2.5rem);
}

.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.section-head h2 {
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  margin-top: 0.9rem;
}

.green-word {
  font-style: italic;
  color: var(--green-deep);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ============ buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.9em 1.7em;
  border: 2px solid var(--ink);
  cursor: pointer;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out),
              background-color 0.25s ease, color 0.25s ease;
}

.btn svg { width: 1.05em; height: 1.05em; transition: transform 0.35s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover {
  background: var(--green);
  color: var(--ink);
  transform: translate(-3px, -3px);
  box-shadow: 5px 5px 0 var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translate(-3px, -3px);
  box-shadow: 5px 5px 0 var(--green);
}

.btn-sm { padding: 0.62em 1.25em; font-size: 0.9rem; }

.btn-invert {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.btn-invert:hover {
  background: var(--paper);
  color: var(--ink);
  transform: translate(-3px, -3px);
  box-shadow: 5px 5px 0 var(--ink);
}

.btn-ghost-inverse {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost-inverse:hover {
  background: var(--ink);
  color: var(--green);
  transform: translate(-3px, -3px);
  box-shadow: 5px 5px 0 rgba(21, 30, 18, 0.35);
}

.text-link {
  font-weight: 700;
  color: var(--green-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.text-link:hover { color: var(--ink); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
}
.cta-center { justify-content: center; }

/* ============ copy-CA buttons ============ */
.copy-ca { position: relative; }
.copy-ca .ca-label {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 40, "WONK" 0;
  font-size: 1.05em;
  letter-spacing: 0.02em;
}
.copy-ca .copy-hint {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-deep);
  transition: color 0.25s ease;
}
.btn-ghost:hover .copy-hint { color: var(--green); }
.copy-ca.copied .copy-hint { color: var(--green-deep); }

.ca-full {
  display: inline-flex;
  align-items: baseline;
  gap: 0.9rem;
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
  text-align: left;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 0.8rem 1.2rem;
  cursor: pointer;
  font: inherit;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.ca-full:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--green);
}
.ca-full .ca-full-label {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}
.ca-full .copy-hint {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-deep);
}

/* ============ nav ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: var(--container);
  margin: 0 auto;
  padding: 1rem clamp(1.25rem, 4vw, 2.5rem);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
}
.brand-feather { width: 26px; height: 26px; color: var(--green-deep); transform: rotate(-14deg); }
.brand-word {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 70, "WONK" 1;
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -0.01em;
}
.brand-word em {
  font-style: italic;
  color: var(--green-deep);
}

.nav-links { display: flex; gap: 1.8rem; }
.nav-links a {
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--green-deep); }

/* ============ hero ============ */
.hero {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) clamp(1.25rem, 4vw, 2.5rem) clamp(4rem, 8vw, 7rem);
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

.hero h1 {
  font-size: clamp(3.1rem, 7.2vw, 6.2rem);
  margin: 0 0 1.6rem;
  font-weight: 640;
}

.h1-accent { color: var(--green-deep); }

.grow-o {
  position: relative;
  display: inline-block;
}
.sprout-hero {
  position: absolute;
  width: clamp(34px, 4.5vw, 58px);
  left: 50%;
  bottom: 70%;
  transform: translateX(-58%);
  transform-origin: 50% 100%;
  animation: sway 3.6s ease-in-out infinite alternate;
}

@keyframes sway {
  from { transform: translateX(-58%) rotate(-6deg); }
  to   { transform: translateX(-58%) rotate(7deg); }
}

.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 34rem;
}
.lede strong { color: var(--ink); }

.hero .cta-row { margin-top: 2rem; }

.fine-print {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-style: italic;
}

.stat-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}
.stat-chips li {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.42em 0.95em;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  background: var(--card);
}

/* --- the cat --- */
.hero-cat { display: flex; flex-direction: column; align-items: center; gap: 1rem; }

.cat-stage {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.cat {
  width: min(100%, 400px);
  height: auto;
  display: block;
  image-rendering: pixelated;
  animation: bob 5.5s ease-in-out infinite;
  transition: transform 0.3s var(--ease-out);
}
.cat-stage:hover .cat { transform: scale(1.02); }

@keyframes bob {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -9px; }
}

.cat-stage.wiggle .cat { animation: wiggle 0.55s var(--ease-out); }

@keyframes wiggle {
  0%   { rotate: 0deg; }
  25%  { rotate: -5deg; scale: 1.03; }
  50%  { rotate: 5deg; }
  75%  { rotate: -2.5deg; }
  100% { rotate: 0deg; scale: 1; }
}

/* chart tip sprout: positioned via SVG transform attribute, no CSS animation */
.chart-sprout {
  animation: none;
  opacity: 0;
  transition: opacity 0.6s ease 1.5s;
}
.chart-card.drawn .chart-sprout { opacity: 1; }

@keyframes sway-g {
  from { transform: rotate(-5deg); }
  to   { transform: rotate(6deg); }
}

.pet-count {
  display: block;
  text-align: center;
  margin-top: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.meow-toggle {
  margin-top: -0.55rem;
  background: none;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.32em 0.95em;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.meow-toggle:hover { color: var(--ink); border-color: var(--ink); }
.meow-toggle[aria-pressed="false"] { opacity: 0.55; }

.speech-bubble {
  position: absolute;
  top: 2%;
  right: -4%;
  background: var(--card);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  padding: 0.35em 0.9em;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 640;
  font-size: 1.05rem;
  white-space: nowrap;
  box-shadow: 4px 4px 0 var(--green);
  opacity: 0;
  transform: scale(0.5) rotate(-6deg);
  transition: opacity 0.25s var(--ease-out), transform 0.35s var(--ease-out);
  pointer-events: none;
  z-index: 2;
}
.speech-bubble.show {
  opacity: 1;
  transform: scale(1) rotate(-4deg);
}

.cat-caption {
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.cat-caption a {
  color: var(--green-deep);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cat-caption a:hover { color: var(--ink); }

/* ============ marquee ============ */
.marquee {
  background: var(--ink);
  color: var(--green);
  transform: rotate(-1.2deg) scale(1.02);
  overflow: hidden;
  padding: 0.85rem 0;
  border-block: 2px solid var(--ink);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: scroll-x 26s linear infinite;
}

.marquee-track span {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 40, "WONK" 0;
  font-weight: 640;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
  padding-right: 1rem;
}

@keyframes scroll-x {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============ the tease ============ */
.quote-card {
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 20px;
  box-shadow: 10px 10px 0 var(--green-tint);
  padding: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.quote-card blockquote p {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 65, "WONK" 1;
  font-style: italic;
  font-weight: 560;
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 1.12;
}

.quote-card figcaption {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.4rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.quote-card figcaption svg { width: 18px; height: 18px; flex: none; }
.quote-card figcaption a {
  color: var(--green-deep);
  font-weight: 700;
  text-underline-offset: 3px;
}

.tease-body {
  max-width: 46rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.tease-body p { font-size: 1.1rem; color: var(--ink-soft); }
.tease-body strong { color: var(--ink); }
.tease-body .cta-row { margin-top: 0.6rem; }

/* ============ nine lives (vine timeline) ============ */
.vine {
  list-style: none;
  position: relative;
  max-width: 46rem;
  margin-left: clamp(0.5rem, 3vw, 2rem);
  padding-left: 2.2rem;
  border-left: 3px dashed color-mix(in srgb, var(--green-deep) 55%, transparent);
  display: flex;
  flex-direction: column;
  gap: clamp(2.2rem, 4vw, 3.2rem);
}

.vine li { position: relative; }
.vine-node {
  position: absolute;
  left: calc(-2.2rem - 12.5px);
  top: 0.4rem;
  width: 22px;
  height: 22px;
  border-radius: 50% 50% 50% 4px;
  background: var(--green);
  border: 3px solid var(--ink);
  transform: rotate(-12deg);
}
.vine li.now .vine-node { background: var(--pink); }

.vine h3 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.now-tag {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--pink);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.3em 0.85em;
  transform: rotate(2deg);
}

.vine p { color: var(--ink-soft); max-width: 38rem; }

/* ============ tokenomics ============ */
.tokenomics-grid {
  display: grid;
  grid-template-columns: minmax(320px, 480px) 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.label-card {
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 6px;
  padding: 1.6rem 1.5rem 1.4rem;
  box-shadow: 12px 12px 0 var(--green);
  transform: rotate(-1deg);
}

.label-title {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 30, "WONK" 0;
  font-weight: 800;
  font-size: 2.6rem;
  line-height: 1;
  letter-spacing: 0.01em;
}
.label-title sup { font-size: 0.9rem; }

.label-sub {
  margin-top: 0.3rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.label-serving {
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.45;
}

.label-rule { border-top: 1px solid var(--ink); margin: 0.7rem 0; }
.label-rule.thick { border-top-width: 8px; }

.label-rows div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.5rem 0.15rem;
  border-bottom: 1px solid var(--line);
}
.label-rows div:last-child { border-bottom: none; }

.label-rows dt {
  font-weight: 800;
  font-size: 0.92rem;
}
.label-rows dd {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 40, "WONK" 0;
  font-weight: 640;
  font-size: 1.02rem;
  text-align: right;
}
.label-rows dd span { font-size: 0.78em; color: var(--ink-soft); }

.label-foot {
  margin-top: 0.8rem;
  font-size: 0.74rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.tokenomics-notes { max-width: 32rem; display: flex; flex-direction: column; gap: 1.2rem; }

.note-big {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 60, "WONK" 1;
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  line-height: 1.22;
  color: var(--ink);
}

.tokenomics-notes p:not(.note-big) { color: var(--ink-soft); }
.tokenomics-notes .cta-row { margin-top: 0.5rem; }

/* ============ chart ============ */
.chart-card {
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 20px;
  box-shadow: 12px 12px 0 var(--green-tint);
  padding: clamp(1.2rem, 3vw, 2.2rem);
}

.growth-chart { width: 100%; height: auto; display: block; }

.growth-path {
  stroke-dasharray: 2400;
  stroke-dashoffset: 2400;
  transition: stroke-dashoffset 2.1s var(--ease-out);
}
.chart-card.drawn .growth-path { stroke-dashoffset: 0; }

.waypoint circle { opacity: 0; transform: scale(0); transform-box: fill-box; transform-origin: center; transition: opacity 0.4s ease, transform 0.5s var(--ease-out); }
.chart-card.drawn .waypoint circle { opacity: 1; transform: scale(1); }

.waypoint text {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
  fill: var(--ink-soft);
  opacity: 0;
  transition: opacity 0.6s ease 0.9s;
}
.chart-card.drawn .waypoint text { opacity: 1; }

.wp-you circle { fill: var(--pink); }
.wp-you .pulse { fill: none; stroke: var(--pink); transform-box: fill-box; transform-origin: center; }
.chart-card.drawn .wp-you .pulse { animation: pulse 2s ease-out infinite; }

@keyframes pulse {
  0%   { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(2.6); opacity: 0; }
}

.wp-you-label { fill: var(--ink) !important; font-weight: 800 !important; }

.chart-card figcaption {
  margin-top: 1rem;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--ink-soft);
}

/* ============ how to buy ============ */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.8rem, 4vw, 3rem);
  counter-reset: step;
}

.steps li { display: flex; flex-direction: column; gap: 0.7rem; align-items: flex-start; }

.paw {
  position: relative;
  width: 96px;
  height: 96px;
  margin-bottom: 0.4rem;
  transform: rotate(-8deg);
}
.steps li:nth-child(2) .paw { transform: rotate(6deg); }
.steps li:nth-child(3) .paw { transform: rotate(-4deg); }
.paw svg { width: 100%; height: 100%; }

.step-num {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 2.6rem;
  color: var(--paper);
  transform: rotate(8deg);
}
.steps li:nth-child(2) .step-num { transform: rotate(-6deg); }
.steps li:nth-child(3) .step-num { transform: rotate(4deg); }

.steps h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }

.steps p { color: var(--ink-soft); flex: 1; }

.steps .btn { margin-top: 0.4rem; }

/* ============ clowder CTA ============ */
.clowder {
  background: var(--green);
  border-block: 3px solid var(--ink);
  padding: clamp(4.5rem, 9vw, 7.5rem) clamp(1.25rem, 4vw, 2.5rem);
}

.clowder-inner {
  max-width: 46rem;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}

.clowder-cat {
  width: clamp(120px, 16vw, 170px);
  height: auto;
  image-rendering: pixelated;
  animation: bob 4.6s ease-in-out infinite;
  filter: drop-shadow(5px 7px 0 rgba(21, 30, 18, 0.22));
}

.clowder h2 {
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  font-weight: 680;
}

.clowder p {
  font-size: 1.15rem;
  color: color-mix(in srgb, var(--ink) 78%, transparent);
  max-width: 28rem;
}

.clowder .cta-row { margin-top: 1rem; }

/* ============ footer ============ */
.footer {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 2.5rem) 2.5rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.disclaimer {
  margin-top: 1.8rem;
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 52rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.2rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.footer-links { display: flex; gap: 1.4rem; }
.footer-links a {
  font-weight: 700;
  color: var(--green-deep);
  text-decoration: none;
}
.footer-links a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ============ toast ============ */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 100;
  visibility: hidden;
  transform: translate(-50%, 180%);
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.8em 1.5em;
  border-radius: 999px;
  border: 2px solid var(--green);
  box-shadow: 0 12px 32px rgba(21, 30, 18, 0.35);
  transition: transform 0.45s var(--ease-out), visibility 0.45s;
  pointer-events: none;
  max-width: min(90vw, 480px);
  text-align: center;
}
.toast.show { visibility: visible; transform: translate(-50%, 0); }

/* ============ reveals ============ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }

.d1 { transition-delay: 0.09s; }
.d2 { transition-delay: 0.18s; }
.d3 { transition-delay: 0.27s; }
.d4 { transition-delay: 0.36s; }
.d5 { transition-delay: 0.45s; }

/* elements above grain overlay */
/* lift content above the fixed grain overlay (body::before, z-index 1) */
.nav, main { position: relative; z-index: 2; }

/* ============ responsive ============ */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-bottom: 3.5rem; }
  .hero-cat { order: -1; }
  .cat { width: min(72vw, 360px); }
  .tokenomics-grid { grid-template-columns: 1fr; }
  .label-card { max-width: 480px; }
  .steps { grid-template-columns: 1fr; max-width: 30rem; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .ca-full { width: 100%; justify-content: space-between; }
  .ca-full .ca-full-label { font-size: 0.92rem; }
  .lede { font-size: 1.05rem; }
  .marquee-track span { font-size: 0.9rem; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ============ reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cat, .sprout-hero,
  .marquee-track, .chart-card.drawn .wp-you .pulse {
    animation: none !important;
  }
  .growth-path { stroke-dashoffset: 0 !important; transition: none; }
  .chart-sprout { opacity: 1 !important; transition: none; }
  .waypoint circle, .waypoint text { opacity: 1 !important; transform: none !important; transition: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .cat-stage .cat, .ca-full { transition: none; }
}
