/* ============================================================
   El Toad Pepe — toad.fun

   PERFORMANCE RULE, learned by measuring: never animate
   background-position. It repaints the whole layer every frame
   on the main thread and dragged this page to 0.9 fps. Every
   moving layer here animates `transform` or `rotate` only, which
   the compositor handles on the GPU. Measured after the switch:
   a steady 60 fps with all decor running.

   Fonts are self-hosted so the page makes zero third-party
   requests and the strict CSP (font-src 'self') holds.
   ============================================================ */

@font-face {
  font-family: "Luckiest Guy";
  src: url("/fonts/luckiest-guy-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Archivo Black";
  src: url("/fonts/archivo-black-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --sky:        #5cc9f5;
  --sky-light:  #b7ecff;
  --sky-deep:   #1a86bd;

  --grass:      #47ad3c;
  --grass-deep: #226b26;
  --lime:       #9bdc4f;

  --red:        #e63329;
  --red-deep:   #ad2019;

  --sun:        #ffc530;
  --sun-deep:   #dd9200;

  --cream:      #fff6e3;
  --paper:      #fdf1d8;
  --white:      #ffffff;

  --ink:        #14291a;
  --ink-soft:   #38513e;
  --ink-faint:  #6d8873;

  --outline:    3px solid var(--ink);
  --pop:        0 6px 0 rgba(20, 41, 26, 0.16);
  --pop-lg:     0 14px 0 rgba(20, 41, 26, 0.12), 0 26px 52px rgba(20, 41, 26, 0.14);
  --pop-card:   0 7px 0 rgba(20, 41, 26, 0.12);

  --font-display: "Luckiest Guy", "Arial Black", Impact, sans-serif;
  --font-heavy:   "Archivo Black", "Arial Black", Impact, sans-serif;
  --font-body:    ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono:    ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --wrap:      1200px;
  --gutter:    18px;

  --pad-panel: clamp(26px, 3.4vw, 52px);
  --gap-block: clamp(26px, 3.2vw, 44px);
  --sect-y:    clamp(40px, 5.4vw, 76px);

  --r-panel:   clamp(24px, 3vw, 42px);
  --r-card:    clamp(16px, 1.9vw, 26px);
  --r-pill:    999px;

  --nav-h:     62px;
}

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

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

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  background-image: radial-gradient(rgba(71, 173, 60, 0.12) 1.5px, transparent 1.6px);
  background-size: 26px 26px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--grass-deep); text-decoration: none; }
a:hover { color: var(--red); }

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--sun);
  color: var(--ink);
  padding: 12px 20px;
  font-weight: 800;
  z-index: 999;
  border-radius: 0 0 14px 0;
}
.skip-link:focus { left: 0; top: 0; }

/* ---------------- Typography ---------------- */

.h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  color: var(--ink);
  text-wrap: balance;
}
.h2--light { color: var(--white); }

.h3 {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.9vw, 1.45rem);
  line-height: 1.16;
  margin: 0 0 10px;
  color: var(--ink);
}
.h3--light { color: var(--white); }

.kicker {
  display: inline-block;
  font-family: var(--font-heavy);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  border: var(--outline);
  margin: 0 0 14px;
}
.kicker--sun   { background: var(--sun);  color: var(--ink); }
.kicker--grass { background: var(--lime); color: var(--ink); }
.kicker--red   { background: var(--red);  color: var(--white); }

.p { margin: 0 0 14px; color: var(--ink-soft); max-width: 56ch; }
.p:last-child { margin-bottom: 0; }
.p strong { color: var(--ink); }
.p--light { color: rgba(255, 255, 255, 0.94); }
.p--light strong { color: var(--white); }

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heavy);
  font-size: 0.9rem;
  padding: 13px 26px;
  border-radius: var(--r-pill);
  border: var(--outline);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.15s ease;
}
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(20, 41, 26, 0.35); }

.btn--sun     { background: var(--sun);   color: var(--ink);   box-shadow: 0 5px 0 var(--sun-deep); }
.btn--sun:hover { background: #ffd45c; color: var(--ink); transform: translateY(-2px); box-shadow: 0 7px 0 var(--sun-deep); }

.btn--red     { background: var(--red);   color: var(--white); box-shadow: 0 5px 0 var(--red-deep); }
.btn--red:hover { background: #f2483e; color: var(--white); transform: translateY(-2px); box-shadow: 0 7px 0 var(--red-deep); }

.btn--outline { background: var(--white); color: var(--ink);   box-shadow: 0 5px 0 rgba(20, 41, 26, 0.26); }
.btn--outline:hover { background: var(--cream); color: var(--ink); transform: translateY(-2px); }

.btn--lg { padding: 16px 32px; font-size: 0.98rem; }
.btn--sm { padding: 9px 17px; font-size: 0.76rem; }
.btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }

/* ---------------- Nav ---------------- */

.nav {
  position: sticky;
  top: 12px;
  z-index: 100;
  padding-inline: var(--gutter);
  margin-bottom: 16px;
}

.nav__bar {
  position: relative;
  width: 100%;
  max-width: var(--wrap);
  min-height: var(--nav-h);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--cream);
  border: var(--outline);
  border-radius: var(--r-pill);
  padding: 7px 7px 7px 13px;
  box-shadow: var(--pop);
}

.nav__brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.nav__brand:hover { color: var(--red); }
.nav__logo { border-radius: 50%; border: 2px solid var(--ink); }
.nav__name { font-family: var(--font-display); font-size: 0.95rem; letter-spacing: 0.02em; }

.nav__menu { display: flex; align-items: center; gap: 4px; }
/* Full-strength ink: the muted green used before was washed out on cream. */
.nav__menu a {
  color: var(--ink);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 8px 12px;
  border-radius: var(--r-pill);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.nav__menu a:hover { background: var(--lime); color: var(--ink); }
.nav__menu .btn { margin-left: 6px; }
.nav__menu .btn:hover { color: var(--white); }

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0;
  background: var(--sun);
  border: var(--outline);
  border-radius: var(--r-pill);
  box-shadow: 0 4px 0 var(--sun-deep);
  cursor: pointer;
}
.nav__burger span {
  display: block;
  height: 3px;
  width: 20px;
  margin-inline: auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------------- Panels ---------------- */

/* overflow:hidden is the point, not an accident: every mascot is planted
   inside its panel and cropped by the bottom edge. */
.panel {
  position: relative;
  border-radius: var(--r-panel);
  border: var(--outline);
  box-shadow: var(--pop-lg);
  padding: var(--pad-panel);
  overflow: hidden;
  isolation: isolate;
}
.panel--cream { background: var(--cream); }
.panel--grass { background: linear-gradient(165deg, var(--grass) 0%, var(--grass-deep) 100%); }
.panel--sky   { background: linear-gradient(165deg, var(--sky-light) 0%, var(--sky) 100%); }
.panel--sun   { background: linear-gradient(165deg, #ffd76a 0%, var(--sun) 100%); }

.section { padding: var(--sect-y) 0; }
.section__head { max-width: 620px; margin-bottom: var(--gap-block); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .p { margin-inline: auto; }

/* ---------------- Panel motion ----------------
   Two composited layers per panel: a slowly turning ray burst (rotate only)
   and a tiled field that scrolls by translating exactly one tile. Nothing
   here touches background-position, so nothing repaints. */

/* No clip of its own: the panel already has overflow:hidden and the radius.
   A second rounded mask here forced the animated layers to re-rasterise on
   every scroll frame instead of just being translated by the compositor. */
.deco {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.deco > * {
  position: absolute;
  will-change: transform;
  transform: translateZ(0);
  animation-play-state: paused;
}
/* Only panels near the viewport animate; the rest cost nothing at all. */
.is-live .deco > * { animation-play-state: running; }

/* Ray burst — the hero's trick, restated in each panel's own colour. */
/* Sized off the panel itself so the burst always reaches every corner.
   `translate` is its own property, so it composes with the `rotate` animation
   and the `transform` promotion without any of them clobbering the others. */
.rays {
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: max(118%, 640px);
  aspect-ratio: 1;
  animation: spin 140s linear infinite;
}
@keyframes spin { to { rotate: 360deg; } }

.rays--white { background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, 0.28) 0deg 7deg, transparent 7deg 18deg); }
.rays--green { background: repeating-conic-gradient(from 0deg, rgba(71, 173, 60, 0.12) 0deg 7deg, transparent 7deg 18deg); }
.rays--sun   { background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, 0.2) 0deg 6deg, transparent 6deg 16deg); }


/* Tiled fields. The layer is twice the panel and shifts by half of itself,
   which is exactly one tile, so the loop is invisible. */
.field {
  left: 0;
  top: 0;
  width: 100%;
  height: 200%;
  background-repeat: repeat-y;
  background-size: 100% 50%;
}
.field--x {
  width: 200%;
  height: 100%;
  background-repeat: repeat-x;
  background-size: 50% 100%;
}

.field--bubbles {
  background-image:
    radial-gradient(circle 7px  at 12% 12%, rgba(255, 255, 255, 0.42), transparent 70%),
    radial-gradient(circle 11px at 31% 58%, rgba(255, 255, 255, 0.32), transparent 70%),
    radial-gradient(circle 5px  at 49% 26%, rgba(255, 255, 255, 0.36), transparent 70%),
    radial-gradient(circle 9px  at 68% 76%, rgba(255, 255, 255, 0.30), transparent 70%),
    radial-gradient(circle 13px at 84% 40%, rgba(255, 255, 255, 0.26), transparent 70%),
    radial-gradient(circle 6px  at 94% 90%, rgba(255, 255, 255, 0.38), transparent 70%);
  animation: field-up 24s linear infinite;
}

.field--confetti {
  background-image:
    radial-gradient(circle 9px  at 9%  16%, rgba(255, 255, 255, 0.9),  transparent 68%),
    radial-gradient(circle 13px at 26% 56%, rgba(230, 51, 41, 0.30),   transparent 68%),
    radial-gradient(circle 8px  at 44% 30%, rgba(255, 255, 255, 0.85), transparent 68%),
    radial-gradient(circle 15px at 61% 78%, rgba(71, 173, 60, 0.28),   transparent 68%),
    radial-gradient(circle 10px at 78% 42%, rgba(255, 255, 255, 0.9),  transparent 68%),
    radial-gradient(circle 11px at 91% 92%, rgba(230, 51, 41, 0.26),   transparent 68%);
  animation: field-up 19s linear infinite;
}

.field--pads {
  background-image:
    radial-gradient(ellipse 90px 28px at 10% 24%, rgba(71, 173, 60, 0.15), transparent 70%),
    radial-gradient(ellipse 60px 20px at 33% 64%, rgba(155, 220, 79, 0.26), transparent 70%),
    radial-gradient(ellipse 110px 34px at 60% 34%, rgba(71, 173, 60, 0.12), transparent 70%),
    radial-gradient(ellipse 70px 22px at 84% 76%, rgba(155, 220, 79, 0.2), transparent 70%);
  animation: field-left 60s linear infinite;
}

@keyframes field-up   { to { transform: translate3d(0, -50%, 0); } }
@keyframes field-left { to { transform: translate3d(-50%, 0, 0); } }

/* ---------------- Hero ---------------- */

.hero { padding: 0 var(--gutter) var(--sect-y); }

.hero__panel {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(26px, 3vw, 44px) clamp(20px, 3.2vw, 48px) 0;
  min-height: min(calc(100svh - 150px), 640px);
  display: flex;
  align-items: flex-end;
}

.hero__sky {
  position: absolute;
  inset: 0;
  will-change: auto;
  transform: none;
  background: linear-gradient(170deg, var(--sky) 0%, var(--sky-light) 52%, #d9f5b4 100%);
}

.hero__grid {
  position: relative;
  z-index: 1;
  width: 100%;
  /* A flex item defaults to min-width:auto and refuses to shrink below its
     min-content, which let the hero copy grow wider than a phone screen. */
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  align-items: end;
  gap: clamp(10px, 2vw, 28px);
}

.hero__copy { min-width: 0; align-self: center; padding-bottom: clamp(10px, 1.6vw, 22px); }

.hero__tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 14px;
}
.hero__tags .kicker { margin: 0; }

.hero__ticker {
  font-family: var(--font-heavy);
  font-size: clamp(0.78rem, 1.4vw, 0.95rem);
  color: var(--ink);
  background: var(--sun);
  border: var(--outline);
  border-radius: var(--r-pill);
  padding: 6px 15px;
  rotate: -2deg;
  box-shadow: 0 4px 0 var(--sun-deep);
}

/* One line, solid white, outline built from stacked text-shadows. The
   text-stroke version thinned the letterforms; this is the heavier, better
   looking treatment. */
.hero__title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 6.6vw, 5.3rem);
  line-height: 0.98;
  letter-spacing: -0.005em;
  color: var(--white);
  text-shadow:
    4px 0 0 var(--ink), -4px 0 0 var(--ink), 0 4px 0 var(--ink), 0 -4px 0 var(--ink),
    3px 3px 0 var(--ink), -3px 3px 0 var(--ink), 3px -3px 0 var(--ink), -3px -3px 0 var(--ink),
    0 13px 0 rgba(20, 41, 26, 0.22);
}

.hero__lede {
  font-size: clamp(0.96rem, 1.2vw, 1.05rem);
  color: var(--ink);
  max-width: 42ch;
  margin: 0 0 20px;
  font-weight: 500;
}
.hero__lede strong { color: var(--red-deep); }

.hero__cta { display: flex; flex-wrap: wrap; gap: 11px; margin-bottom: 16px; }

/* Mascots are planted on the panel floor and cropped by it. */
.figure {
  position: relative;
  min-width: 0;
  z-index: 1;
  align-self: end;
  justify-self: center;
  width: 100%;
  /* Negative margin larger than the panel padding, so the crop bites. */
  margin-bottom: calc(var(--pad-panel) * -1);
}
.figure img {
  width: auto;
  max-width: 100%;
  margin-inline: auto;
}

.hero__figure { justify-self: end; margin-bottom: calc(var(--pad-panel) * -1 - 12px); }
.hero__figure img { max-height: min(80svh, 760px); }

/* ---------------- Contract pill ---------------- */

.ca {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: var(--outline);
  border-radius: var(--r-pill);
  padding: 8px 8px 8px 15px;
  max-width: 100%;
  box-shadow: var(--pop);
}
.ca--dark { background: rgba(0, 0, 0, 0.24); border-color: rgba(255, 255, 255, 0.5); box-shadow: none; }
.ca--dark .ca__value { color: var(--white); }
.ca--dark .ca__label { color: var(--sun); }

.ca__label {
  font-family: var(--font-heavy);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  flex-shrink: 0;
}
/* One line, always. A 44-character address is allowed to run off the end
   under an ellipsis rather than wrap and burst the pill open on a phone. */
.ca__value {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink);
  flex: 1 1 0;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ca__copy {
  flex-shrink: 0;
  font-family: var(--font-heavy);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  border: var(--outline);
  background: var(--sun);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 4px 0 var(--sun-deep);
}
.ca__copy:hover { background: #ffd45c; }
.ca__copy.is-done { background: var(--grass); color: var(--white); box-shadow: 0 4px 0 var(--grass-deep); }

/* ---------------- Marquee ---------------- */

.marquee {
  overflow: hidden;
  background: var(--red);
  color: var(--white);
  border-block: var(--outline);
  padding: 11px 0;
}
/* The track holds exactly two identical halves, so shifting by -50% lands on
   a pixel-identical frame and the loop never jumps. */
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee__half {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-right: 24px;
  font-family: var(--font-display);
  font-size: 0.98rem;
  letter-spacing: 0.1em;
  flex-shrink: 0;
}
.marquee__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sun); flex-shrink: 0; }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }

.tick { font-family: var(--font-heavy); letter-spacing: 0.01em; }

/* ---------------- About ---------------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--gap-block);
  align-items: end;
  padding-bottom: 0;
  min-height: 420px;
}
.about__copy { min-width: 0; padding-bottom: var(--pad-panel); }
.about__figure img { max-height: min(66svh, 600px); }

.about__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-heavy);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--white);
  border: var(--outline);
  border-radius: var(--r-pill);
  padding: 7px 14px;
  box-shadow: 0 4px 0 rgba(20, 41, 26, 0.14);
}
.chip b { color: var(--red); }

/* ---------------- How to buy ---------------- */

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.step {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  background: var(--white);
  border: var(--outline);
  border-radius: var(--r-card);
  padding: 18px 20px;
  box-shadow: var(--pop-card);
}
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: var(--outline);
  background: var(--sun);
  color: var(--ink);
  font-family: var(--font-heavy);
  font-size: 0.9rem;
}
.step__title { font-family: var(--font-display); font-size: 1.02rem; margin: 0 0 4px; color: var(--ink); }
.step__text { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }

.buybar {
  margin-top: var(--gap-block);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.buybar__note { margin: 0; font-size: 0.88rem; color: var(--ink-faint); max-width: 52ch; }
.buybar__note strong { color: var(--ink); }

/* ---------------- Tokenomics ---------------- */

/* One compact strip rather than four large cards inside an already large
   panel — the numbers are small facts and were eating half the section. */
.statbar {
  display: flex;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.95);
  border: var(--outline);
  border-radius: var(--r-card);
  box-shadow: var(--pop-card);
  overflow: hidden;
}
.statbar__item {
  flex: 1 1 120px;
  min-width: 0;
  padding: 14px 16px;
  text-align: center;
  border-left: 2px solid rgba(20, 41, 26, 0.12);
}
.statbar__item:first-child { border-left: 0; }
.statbar__v {
  display: block;
  font-family: var(--font-heavy);
  font-size: clamp(1.15rem, 2.1vw, 1.5rem);
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.statbar__u { color: var(--red); }
.statbar__k {
  display: block;
  margin-top: 5px;
  font-family: var(--font-heavy);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.safety {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: var(--gap-block);
  align-items: end;
  margin-top: var(--gap-block);
}
.safety__copy { min-width: 0; }
.safety__figure { margin-bottom: calc(var(--pad-panel) * -1 - 34px); }
.safety__figure img { max-height: min(52svh, 460px); }

.facts { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.facts li {
  position: relative;
  padding-left: 28px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.92rem;
}
.facts li strong { color: var(--white); }
.facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.34em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--sun);
  border: 3px solid var(--ink);
}

.solscan-link { display: inline-block; margin-top: 10px; font-weight: 800; color: var(--sun); border-bottom: 2px solid rgba(255, 197, 48, 0.5); }
.solscan-link:hover { color: var(--white); }

/* ---------------- Timeline ---------------- */

.timeline {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 740px;
  display: grid;
  gap: 12px;
}

.tl {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  background: var(--white);
  border: var(--outline);
  border-radius: var(--r-card);
  padding: 18px 22px;
  box-shadow: var(--pop-card);
}
.tl--now { background: var(--lime); }

.tl__year { font-family: var(--font-heavy); font-size: 1.3rem; line-height: 1.1; color: var(--red); letter-spacing: -0.02em; }
.tl--now .tl__year { color: var(--grass-deep); }
.tl__title { font-family: var(--font-display); font-size: 1.02rem; margin: 0 0 4px; color: var(--ink); }
.tl__text { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }

/* ---------------- Community ---------------- */

.community { display: grid; gap: var(--gap-block); align-items: end; padding-bottom: 0; }
.community__inner { grid-column: 1; min-width: 0; }
.community__figure { margin-bottom: calc(var(--pad-panel) * -1); }
.community__figure img { max-height: min(48svh, 420px); }

.linkrow { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.linkrow .btn { padding-inline: 20px; }

@media (min-width: 941px) {
  .community { grid-template-columns: minmax(0, 1fr) minmax(0, 0.5fr); }
  .community__inner { padding-bottom: var(--pad-panel); }
}

/* ---------------- Footer ---------------- */

.footer {
  background: var(--ink);
  border-top: var(--outline);
  padding: 44px 0 34px;
  margin-top: var(--sect-y);
  text-align: center;
}
.footer__inner { display: grid; gap: 18px; justify-items: center; }
.footer__brand { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.footer__brand img { border-radius: 50%; border: 3px solid var(--sun); }
.footer__name { font-family: var(--font-display); margin: 0; font-size: 1.05rem; color: var(--white); letter-spacing: 0.03em; }
.footer__ticker { margin: 2px 0 0; font-size: 0.86rem; color: var(--sun); }

.footer__made {
  margin: 0;
  font-family: var(--font-heavy);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime);
}

.footer__nfa {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--sun);
  letter-spacing: 0.04em;
}

.footer__disclaimer {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
  max-width: 66ch;
  padding: 16px 18px;
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--r-card);
}
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.footer__copy { margin: 0; font-size: 0.78rem; color: rgba(255, 255, 255, 0.45); }

/* ---------------- Reveal + parallax ---------------- */

[data-parallax] { transform: translate3d(0, var(--parallax-y, 0px), 0); }

/* ---------------- Responsive ---------------- */

@media (max-width: 1040px) {
  .nav__menu a { padding: 8px 9px; font-size: 0.84rem; }
}

@media (max-width: 940px) {
  /* Stacking the mascot under the copy pushed him off the first screen. He
     shares the same grid cell instead: planted bottom-right, oversized, with
     the text riding over him. */
  .hero__panel { min-height: min(calc(100svh - 130px), 620px); }
  .hero__grid { grid-template-columns: 1fr; grid-template-rows: 1fr; }
  .hero__copy,
  .hero__figure { grid-area: 1 / 1; }
  .hero__copy { position: relative; z-index: 2; padding-bottom: 0; align-self: end; }
  /* A scrim that fades out to the right: the copy stays readable where it
     crosses the costume, and the mascot stays fully visible beside it. */
  .hero__copy::before {
    content: "";
    position: absolute;
    inset: -70px -40px -40px -40px;
    z-index: -1;
    background: linear-gradient(
      180deg,
      rgba(255, 250, 236, 0) 0%,
      rgba(255, 250, 236, 0.38) 30%,
      rgba(255, 250, 236, 0.62) 58%,
      rgba(255, 250, 236, 0.72) 100%
    );
  }
  /* A white halo does the rest of the legibility work, so the scrim can stay
     light and the costume keeps its colour. */
  .hero__lede {
    text-shadow: 0 0 6px #fffaec, 0 0 12px #fffaec, 0 1px 0 #fffaec;
  }
  .hero__figure {
    z-index: 1;
    justify-self: end;
    align-self: end;
    width: auto;
    margin-right: calc(var(--pad-panel) * -1.6);
    margin-bottom: calc(var(--pad-panel) * -1);
  }
  .hero__figure img { max-height: min(70svh, 600px); }

  .about { grid-template-columns: 1fr; min-height: 0; }
  .about__copy { padding-bottom: 6px; }
  .about__figure img { max-height: min(38svh, 320px); }

  .safety { grid-template-columns: 1fr; }
  .safety__figure img { max-height: min(32svh, 280px); }
  .community__figure img { max-height: min(30svh, 260px); }
}

@media (max-width: 760px) {
  body { font-size: 16px; }

  .nav { top: 10px; margin-bottom: 14px; }
  .nav__burger { display: flex; }

  /* Matches the bar edge to edge — it used to sit inset by the bar's padding
     and read as a narrower, misaligned box. */
  .nav__menu {
    position: absolute;
    top: calc(100% + 10px);
    left: -3px;
    right: -3px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    background: var(--cream);
    border: var(--outline);
    border-radius: 30px;
    box-shadow: var(--pop);
    display: none;
  }
  .nav__menu.is-open { display: flex; }
  .nav__menu a { padding: 13px 14px; font-size: 0.98rem; }
  .nav__menu .btn { margin: 8px 0 0; }

  .hero { padding-inline: 12px; }
  .hero__panel { padding: 20px 16px 0; }
  .hero__copy { padding-bottom: 0; }
  .hero__title { margin-bottom: 12px; }
  .hero__title-sm { margin-bottom: 8px; }
  .hero__lede { margin-bottom: 14px; font-size: 0.95rem; }
  .hero__cta { gap: 9px; margin-bottom: 12px; }
  .hero__cta .btn { flex: 1 1 0; padding-inline: 10px; }
  .hero__figure img { max-height: min(60svh, 480px); }

  .tl { grid-template-columns: 1fr; gap: 3px; }
  .linkrow .btn, .footer__links .btn { flex: 1 1 100%; }
  .step { grid-template-columns: 34px minmax(0, 1fr); gap: 12px; }
  .step__num { width: 34px; height: 34px; font-size: 0.8rem; }
}

@media (max-width: 760px) {
  /* The burst is the most expensive layer to rasterise; phones skip it. */
  .rays { display: none; }
}

@media (max-width: 520px) {
  .hero__title-lg { font-size: 2.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-parallax] { transform: none !important; }
}
