/* ============================================================================
   ROBIN THE CHAD ($RCHAD) — Stylesheet
   Dark Sherwood forest atmosphere, editorial type, hand-drawn card system.
   ============================================================================ */

/* -------------------------------- Variables ------------------------------ */
:root {
  --ink: #07140f;
  --forest-dark: #09251b;
  --forest: #123d2b;
  --forest-mid: #20583b;
  --leaf: #77e44a;
  --cream: #f6eed8;
  --paper: #fff9eb;
  --orange: #f3781f;
  --red: #d8433e;
  --brown: #5a351e;

  --font-display: 'Anton', 'Impact', 'Arial Narrow Bold', sans-serif;
  --font-body: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-lore: 'Cormorant Garamond', Georgia, serif;

  --max-width: 1240px;
  --border-w: 2.5px;
  --shadow-off: 6px;
  --radius: 18px;

  --shadow-hard: var(--shadow-off) var(--shadow-off) 0 0 var(--ink);
  --shadow-hard-sm: 4px 4px 0 0 var(--ink);
  --shadow-hard-orange: var(--shadow-off) var(--shadow-off) 0 0 var(--orange);

  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100%;
}

@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;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
}

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

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

ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
code { font-family: var(--font-body); }

.visually-hidden {
  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: 8px;
  top: -60px;
  background: var(--paper);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  z-index: 1000;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 8px;
}

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

/* Subtle paper texture (CSS-only) used on cream/paper surfaces */
.paper-texture {
  background-image:
    radial-gradient(rgba(7,20,15,0.035) 1px, transparent 1px);
  background-size: 5px 5px;
}

/* ------------------------------- Typography ------------------------------- */
h1, h2, h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0;
  line-height: 1.02;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: clamp(0.72rem, 0.6rem + 0.4vw, 0.85rem);
  color: var(--orange);
  margin: 0 0 0.75rem;
}
.eyebrow .diamond { color: var(--leaf); }

.section-heading {
  font-size: clamp(2rem, 1.5rem + 2.2vw, 3.4rem);
  color: var(--paper);
}

.section-lede {
  font-family: var(--font-lore);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem);
  color: var(--cream);
  max-width: 640px;
  margin: 1rem 0 0;
}

/* --------------------------------- Layout --------------------------------- */
.section {
  position: relative;
  padding: clamp(3.5rem, 3rem + 3vw, 7rem) 0;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 1rem + 2vw, 2.5rem);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}

/* --------------------------------- Buttons --------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: var(--border-w) solid var(--ink);
  box-shadow: var(--shadow-hard-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
  min-height: 48px;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 0 var(--ink); }
.btn:active { transform: translate(0, 0); box-shadow: 2px 2px 0 0 var(--ink); }

.btn-primary {
  background: var(--leaf);
  color: var(--ink);
}
.btn-outline {
  background: var(--paper);
  color: var(--ink);
}
.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--paper);
  box-shadow: 4px 4px 0 0 var(--paper);
}
.btn-ghost:hover { box-shadow: 6px 6px 0 0 var(--paper); }

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

.btn-block {
  display: flex;
  width: 100%;
}

.btn-disabled,
.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  transform: none !important;
}

.btn-small {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 3px 3px 0 0 var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  min-height: 40px;
}
.btn-small:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 0 var(--ink); }
.btn-small:active { transform: translate(0,0); box-shadow: 1px 1px 0 0 var(--ink); }
.btn-small-x { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-small[disabled] { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

.btn-small.is-copied {
  background: var(--leaf);
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--paper);
  border: 2px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.icon-link:hover {
  background: var(--forest-mid);
  border-color: var(--paper);
  transform: translateY(-2px);
}
.icon-link-lg { width: 48px; height: 48px; }

/* ================================ HEADER ================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(7, 20, 15, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.is-scrolled {
  background: rgba(7, 20, 15, 0.94);
  border-bottom-color: var(--forest-mid);
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem clamp(1rem, 0.8rem + 1.5vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}
.brand-pfp {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--leaf);
  object-fit: cover;
  background: var(--forest);
}
.brand-word {
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.3rem);
  letter-spacing: 0.02em;
  color: var(--paper);
  text-transform: uppercase;
  white-space: nowrap;
}
.brand-word span { color: var(--leaf); }

.main-nav ul {
  display: flex;
  gap: clamp(1.25rem, 1rem + 1vw, 2rem);
}
.main-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--cream);
  position: relative;
  padding: 0.4rem 0;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width 0.2s ease;
}
.main-nav a:hover::after,
.main-nav a:focus-visible::after { width: 100%; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.cta-nav { display: none; }
@media (min-width: 1024px) {
  .cta-nav { display: inline-flex; }
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: var(--forest);
  border: 2px solid var(--paper);
  border-radius: 10px;
  padding: 0;
}
.menu-bar {
  width: 20px;
  height: 2px;
  background: var(--paper);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 1024px) {
  .main-nav { display: block; }
  .menu-toggle { display: none; }
}
@media (max-width: 1023px) {
  .main-nav { display: none; }
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100dvh;
  width: min(86vw, 360px);
  background: var(--forest-dark);
  border-left: 2px solid var(--forest-mid);
  padding: 5.5rem 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 250;
  overflow-y: auto;
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu ul { display: flex; flex-direction: column; gap: 1.25rem; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.4rem;
  text-transform: uppercase;
  color: var(--paper);
}
.mobile-menu-socials {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 2px solid var(--forest-mid);
}
.mobile-menu-socials a {
  font-weight: 600;
  color: var(--leaf);
}

.menu-scrim {
  position: fixed;
  top: 0;
  left: 0;
  right: min(86vw, 360px); /* never overlaps the mobile-menu panel itself */
  bottom: 0;
  background: rgba(7,20,15,0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 240;
}
.menu-scrim.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* ================================= HERO ================================= */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 75% 20%, rgba(32,88,59,0.55), transparent 55%),
    linear-gradient(180deg, var(--forest-dark) 0%, var(--ink) 100%);
  padding-top: clamp(2rem, 1.5rem + 2vw, 4rem);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-moon-glow {
  position: absolute;
  top: 6%;
  right: 8%;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(246,238,216,0.22) 0%, rgba(246,238,216,0.06) 45%, transparent 70%);
  border-radius: 50%;
  animation: moonPulse 8s ease-in-out infinite;
}
@keyframes moonPulse {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

.leaf-field { position: absolute; inset: 0; }
.leaf {
  position: absolute;
  width: 14px;
  height: 14px;
  background: var(--leaf);
  opacity: 0.35;
  border-radius: 0 70% 0 70%;
  animation: leafDrift linear infinite;
  will-change: transform;
}
@keyframes leafDrift {
  0% { transform: translate(0, -10vh) rotate(0deg); }
  100% { transform: translate(-40px, 110vh) rotate(360deg); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 1rem + 2vw, 2.5rem);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(1.5rem, 1rem + 2vw, 3rem);
  align-items: center;
  width: 100%;
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
}

.hero-copy { max-width: 620px; }
@media (max-width: 900px) { .hero-copy { max-width: none; margin: 0 auto; } }

.hero-heading {
  font-size: clamp(3rem, 2rem + 6vw, 6.2rem);
  color: var(--paper);
  -webkit-text-stroke: 1.5px var(--ink);
}
.hero-heading .accent-outline {
  color: var(--leaf);
}

.hero-sub {
  font-family: var(--font-lore);
  font-style: italic;
  font-size: clamp(1.15rem, 1rem + 0.8vw, 1.55rem);
  color: var(--cream);
  margin: 1.25rem 0 0.5rem;
  max-width: 520px;
}
@media (max-width: 900px) { .hero-sub { margin-inline: auto; } }

.hero-body {
  font-weight: 600;
  color: var(--leaf);
  font-size: 1.05rem;
  margin: 0 0 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}
@media (max-width: 900px) { .hero-actions { justify-content: center; } }

.hero-socials { display: flex; gap: 0.5rem; }

.hero-badge {
  margin-top: 1.75rem;
  display: inline-block;
  font-family: var(--font-lore);
  font-style: italic;
  font-weight: 600;
  color: var(--orange);
  border-top: 1px solid var(--forest-mid);
  padding-top: 0.9rem;
}

.hero-art {
  position: relative;
  animation: heroEnter 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes heroEnter {
  from { opacity: 0; transform: translateY(28px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.hero-art img {
  width: 100%;
  aspect-ratio: 1672 / 941;
  object-fit: contain;
}

.scroll-cue {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid var(--cream);
  border-radius: 999px;
  z-index: 1;
}
.scroll-cue span {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  background: var(--leaf);
  border-radius: 50%;
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { top: 6px; opacity: 1; }
  70% { top: 24px; opacity: 0.2; }
  100% { top: 24px; opacity: 0; }
}
@media (max-width: 700px) { .scroll-cue { display: none; } }

/* ============================= TICKER STRIP ============================= */
.ticker-strip {
  background: var(--orange);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  z-index: 2;
}
.ticker-track {
  display: inline-flex;
  width: max-content;
  animation: tickerScroll 28s linear infinite;
}
.ticker-set {
  display: inline-flex;
  align-items: center;
  padding: 0.8rem 0;
}
.ticker-set span {
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 0.7rem + 0.5vw, 1.15rem);
  color: var(--ink);
  letter-spacing: 0.03em;
  padding: 0 0.9rem;
}
.tick-sep { color: var(--forest-dark); }
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ================================= LORE ================================= */
.lore-section {
  background: var(--forest-dark);
}
.lore-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 1.5rem + 2vw, 4rem);
  align-items: center;
}
@media (max-width: 900px) {
  .lore-grid { grid-template-columns: 1fr; }
}

.lore-art img {
  border-radius: var(--radius);
  aspect-ratio: 1024 / 1536;
  object-fit: cover;
  max-width: 420px;
  margin: 0 auto;
  border: var(--border-w) solid var(--ink);
  box-shadow: var(--shadow-hard);
}

.lore-lede {
  font-family: var(--font-lore);
  font-style: italic;
  font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem);
  color: var(--paper);
  margin: 1.25rem 0 0.75rem;
}
.lore-body {
  color: var(--cream);
  font-size: 1.05rem;
  margin: 0 0 2rem;
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 640px) {
  .feature-cards { grid-template-columns: 1fr; }
}

.feature-card {
  background: var(--paper);
  color: var(--ink);
  border: var(--border-w) solid var(--ink);
  border-radius: 14px;
  padding: 1.25rem 1.1rem;
  box-shadow: var(--shadow-hard-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0 0 var(--ink);
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--forest-mid);
  margin-bottom: 0.5rem;
}
.feature-card p {
  font-size: 0.92rem;
  margin: 0;
}

/* ============================== MEMES / GALLERY ============================== */
.memes-section { background: var(--ink); }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}
.filter-btn {
  background: transparent;
  color: var(--cream);
  border: 2px solid var(--forest-mid);
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.filter-btn:hover { border-color: var(--leaf); transform: translateY(-1px); }
.filter-btn.is-active {
  background: var(--leaf);
  color: var(--ink);
  border-color: var(--ink);
}

.reaction-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.reaction-card {
  background: var(--paper);
  color: var(--ink);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-hard-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
  display: flex;
  flex-direction: column;
}
.reaction-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 8px 8px 0 0 var(--ink);
}
.reaction-card.is-hidden {
  display: none;
}

.reaction-media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-bottom: var(--border-w) solid var(--ink);
  background: var(--cream);
}
.reaction-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.reaction-card:hover .reaction-media img { transform: scale(1.06); }

.reaction-body {
  padding: 1.15rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.reaction-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 2px solid var(--ink);
}
.tag-bullish { background: var(--leaf); }
.tag-pain { background: var(--red); color: var(--paper); }
.tag-community { background: var(--orange); }
.tag-replies { background: var(--forest-mid); color: var(--paper); }

.reaction-caption {
  font-family: var(--font-lore);
  font-style: italic;
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0;
  flex: 1;
}

.reaction-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.empty-state {
  text-align: center;
  color: var(--cream);
  font-style: italic;
  padding: 2rem 0;
}

/* ================================= STORY ================================= */
.story-section { background: var(--forest-dark); }
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 1.5rem + 2vw, 4rem);
  align-items: center;
}
@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr; }
}

.story-art img {
  border-radius: var(--radius);
  aspect-ratio: 1536 / 1024;
  object-fit: cover;
  border: var(--border-w) solid var(--ink);
  box-shadow: var(--shadow-hard);
}

.story-trail {
  position: relative;
  margin-top: 2rem;
  padding-left: 2.75rem;
}
.story-trail::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background-image: linear-gradient(var(--leaf) 55%, transparent 45%);
  background-size: 2px 14px;
  background-repeat: repeat-y;
}

.story-step, .buy-step {
  position: relative;
  display: flex;
  gap: 1.1rem;
  padding-bottom: 2rem;
}
.story-step:last-child, .buy-step:last-child { padding-bottom: 0; }

.story-num {
  position: absolute;
  left: -2.75rem;
  top: -2px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--leaf);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.story-step h3, .buy-step h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--paper);
  margin: 0 0 0.35rem;
}
.story-step p, .buy-step p {
  color: var(--cream);
  margin: 0;
  font-size: 0.95rem;
}

/* ================================= TOKEN ================================= */
.token-section { background: var(--ink); }
.token-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 1.5rem + 2vw, 4rem);
  align-items: center;
}
@media (max-width: 900px) {
  .token-grid { grid-template-columns: 1fr; }
}

.token-art img {
  border-radius: var(--radius);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  max-width: 380px;
  margin: 0 auto;
  border: var(--border-w) solid var(--ink);
  box-shadow: var(--shadow-hard);
}

.info-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  margin: 1.75rem 0;
}
@media (max-width: 700px) {
  .info-cards { grid-template-columns: repeat(2, 1fr); }
}

.info-card {
  background: var(--forest);
  border: 2px solid var(--forest-mid);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.info-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
}
.info-value {
  font-weight: 700;
  color: var(--paper);
  font-size: 0.95rem;
  word-break: break-word;
}
.info-value.is-pending { color: var(--cream); font-style: italic; font-weight: 500; }

.contract-panel {
  background: var(--paper);
  color: var(--ink);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-hard);
  margin-bottom: 1.75rem;
}
.contract-panel-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--forest-mid);
  margin-bottom: 0.6rem;
}
.contract-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-bottom: 1.25rem;
  border-bottom: 2px dashed var(--forest-mid);
  margin-bottom: 1.25rem;
}
.contract-address {
  flex: 1;
  min-width: 0;
  font-size: 0.95rem;
  font-weight: 600;
  word-break: break-all;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
}
.contract-address.is-pending {
  font-style: italic;
  font-weight: 500;
  color: var(--brown);
}
.contract-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.security-note {
  background: var(--forest);
  border-left: 4px solid var(--orange);
  border-radius: 0 10px 10px 0;
  padding: 1rem 1.25rem;
  color: var(--cream);
  font-size: 0.92rem;
  margin: 0;
}
.security-note strong { color: var(--orange); }

/* ================================ HOW TO BUY ================================ */
.buy-section { background: var(--forest-dark); }
.buy-trail {
  position: relative;
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) {
  .buy-trail {
    grid-template-columns: 1fr;
    padding-left: 2.75rem;
  }
  .buy-trail::before {
    content: '';
    position: absolute;
    left: 17px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background-image: linear-gradient(var(--leaf) 55%, transparent 45%);
    background-size: 2px 14px;
    background-repeat: repeat-y;
  }
  .buy-step { padding-bottom: 2rem; }
}
@media (min-width: 901px) {
  .buy-trail { position: relative; }
  .buy-trail::before {
    content: '';
    position: absolute;
    top: 17px;
    left: 5%;
    right: 5%;
    height: 2px;
    background-image: linear-gradient(90deg, var(--leaf) 55%, transparent 45%);
    background-size: 14px 2px;
    background-repeat: repeat-x;
    z-index: 0;
  }
  .buy-step { flex-direction: column; text-align: center; }
  .buy-step .story-num { position: static; margin: 0 auto 1rem; }
}

.buy-pending-note {
  text-align: center;
  margin-top: 2.5rem;
  font-family: var(--font-lore);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--orange);
}

/* =============================== COMMUNITY =============================== */
.community-section { background: var(--ink); }
.community-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: clamp(2rem, 1.5rem + 2vw, 4rem);
  align-items: center;
}
@media (max-width: 900px) {
  .community-grid { grid-template-columns: 1fr; }
}

.community-art {
  position: relative;
  max-width: 340px;
  margin: 0 auto;
}
.community-art > img:first-child {
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: var(--border-w) solid var(--ink);
  box-shadow: var(--shadow-hard);
}
.community-art-heart {
  position: absolute;
  bottom: -12%;
  right: -12%;
  width: 42%;
  border-radius: 50%;
  border: 3px solid var(--ink);
  box-shadow: var(--shadow-hard-sm);
  background: var(--cream);
}

.community-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.75rem 0;
}

.signal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--leaf);
  margin: 0;
}
.signal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--leaf);
  box-shadow: 0 0 0 0 rgba(119,228,74,0.6);
  animation: signalPulse 2s ease-in-out infinite;
}
@keyframes signalPulse {
  0% { box-shadow: 0 0 0 0 rgba(119,228,74,0.55); }
  70% { box-shadow: 0 0 0 9px rgba(119,228,74,0); }
  100% { box-shadow: 0 0 0 0 rgba(119,228,74,0); }
}

/* ================================ FOOTER CTA ================================ */
.footer-cta {
  position: relative;
  background: linear-gradient(100deg, var(--ink) 0%, var(--ink) 40%, var(--forest-dark) 100%);
  overflow: hidden;
}
.footer-cta-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 15% 30%, rgba(32,88,59,0.4), transparent 60%);
}
.footer-cta-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(3rem, 2.5rem + 3vw, 6rem) clamp(1.25rem, 1rem + 2vw, 2.5rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
@media (max-width: 900px) {
  .footer-cta-inner { grid-template-columns: 1fr; text-align: center; }
}

.footer-cta-sub {
  font-family: var(--font-lore);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--leaf);
  margin: 1rem 0 1.75rem;
}
.footer-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
@media (max-width: 900px) { .footer-cta-actions { justify-content: center; } }

.footer-cta-art img {
  aspect-ratio: 1916 / 821;
  object-fit: contain;
}

.footer-info {
  border-top: 2px solid var(--forest-mid);
  background: var(--forest-dark);
  padding: 2rem clamp(1.25rem, 1rem + 2vw, 2.5rem) 2.5rem;
}
.footer-info-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-bottom: 1.5rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  color: var(--paper);
  letter-spacing: 0.02em;
}
.footer-brand img { border-radius: 50%; }
.footer-links {
  display: flex;
  gap: 1.25rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--cream);
}
.footer-links a:hover { color: var(--leaf); }
.footer-tags {
  display: flex;
  gap: 1.25rem;
  font-size: 0.82rem;
  color: var(--cream);
  opacity: 0.85;
}

.footer-disclaimer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--forest-mid);
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--cream);
  opacity: 0.7;
}

.noscript-banner {
  background: var(--orange);
  color: var(--ink);
  font-weight: 700;
  text-align: center;
  padding: 0.85rem 1.25rem;
}

/* ============================= SCROLL REVEAL ============================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* Fallback: if JS never runs, content must still be visible */
.no-js [data-reveal] {
  opacity: 1;
  transform: none;
}

/* ================================ RESPONSIVE ================================ */
@media (max-width: 480px) {
  .hero-actions .btn { flex: 1 1 auto; }
  .contract-panel-actions .btn { flex: 1 1 auto; }
  .footer-cta-actions .btn { flex: 1 1 auto; }
}
