/* =========================================================
   $CARPET — Stylesheet (single-page, consolidated)
   ========================================================= */

:root {
  --bg: #0c0814;
  --bg-2: #140a1f;
  --ink: #f7f3ff;
  --muted: #b9aedb;
  --purple: #8a2be2;
  --purple-2: #b15bff;
  /* Glow used behind text — kept dark so it reads as a halo, not pink-cloud */
  --purple-glow: rgba(70, 28, 130, 0.55);
  --purple-glow-text: rgba(70, 28, 130, 0.65);
  --gold: #f5c542;
  --green: #4ade80;
  --radius: 14px;
  --max: 1200px;
  --font-display: 'Bebas Neue', Impact, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  isolation: isolate;
}

/* =========================================================
   LIVE BACKGROUND — "Carpet Cosmos" (5 layered effects)
     L0  Rotating conic spectrum (body::before)
     L1  Animated SVG ferrofluid blobs
     L2  Breathing Persian medallion constellations
     L3  Rising gold dust particles
     L4  Falling Persian ornament rain
     L5  Cursor-following purple spotlight (mouse)
     L6  Dot grid + film grain overlay (body::after)
   ========================================================= */

.bg-fx {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  overflow: hidden;
  /* Cursor reactive variables, updated by JS — defaults center the spot. */
  --cx: 50%;
  --cy: 50%;
}

/* L1 — fluid */
.bg-fluid {
  position: absolute;
  inset: -10%;
  width: 120%; height: 120%;
  z-index: 0;
  opacity: 0.92;
  animation: fluid-pan 70s ease-in-out infinite;
}
@keyframes fluid-pan {
  0%, 100% { transform: translate3d(0,0,0)        scale(1); }
  50%      { transform: translate3d(-4vw, 3vh, 0) scale(1.04); }
}

/* L2 — Persian medallion constellations: large breathing rings */
.medallion-field { position: absolute; inset: 0; z-index: 1; }
.medallion {
  position: absolute;
  left: var(--mx); top: var(--my);
  width: var(--mr); height: var(--mr);
  margin-left: calc(var(--mr) * -0.5);
  margin-top:  calc(var(--mr) * -0.5);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><g fill='none' stroke='%23b15bff' stroke-linecap='round' stroke-linejoin='round'><circle cx='100' cy='100' r='95' stroke-width='1' stroke-opacity='0.55'/><circle cx='100' cy='100' r='80' stroke-width='0.6' stroke-opacity='0.45'/><circle cx='100' cy='100' r='60' stroke-width='1' stroke-opacity='0.5'/><circle cx='100' cy='100' r='35' stroke-width='0.6' stroke-opacity='0.45'/><path d='M100 5 L130 50 L100 95 L70 50 Z' stroke-width='0.8' stroke-opacity='0.5'/><path d='M100 105 L130 150 L100 195 L70 150 Z' stroke-width='0.8' stroke-opacity='0.5'/><path d='M5 100 L50 70 L95 100 L50 130 Z' stroke-width='0.8' stroke-opacity='0.5'/><path d='M105 100 L150 70 L195 100 L150 130 Z' stroke-width='0.8' stroke-opacity='0.5'/><circle cx='100' cy='100' r='8' stroke='%23f5c542' stroke-opacity='0.6' stroke-width='0.8' fill='%23f5c542' fill-opacity='0.18'/></g><g stroke='%23f5c542' stroke-opacity='0.35' fill='none' stroke-width='0.5'><path d='M100 25 L100 175 M25 100 L175 100'/><circle cx='100' cy='100' r='48'/></g></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  filter: blur(0.4px);
  opacity: 0;
  animation: medallion-breathe var(--mp, 22s) ease-in-out infinite,
             medallion-spin   calc(var(--mp, 22s) * 6) linear infinite;
  animation-delay: var(--md, 0s);
  will-change: opacity, transform;
}
@keyframes medallion-breathe {
  0%, 100% { opacity: 0.05; }
  50%      { opacity: 0.22; }
}
@keyframes medallion-spin {
  to { transform: rotate(360deg); }
}

/* L3 — rising gold dust (small twinkling particles) */
.dust { position: absolute; inset: 0; z-index: 2; }
.dot {
  position: absolute;
  bottom: -20px;
  left: var(--x);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffe9a8 0%, #f5c542 40%, transparent 75%);
  opacity: 0;
  transform: scale(var(--s, 1));
  filter: drop-shadow(0 0 4px rgba(245,197,66,0.7));
  animation: dust-rise var(--dur, 16s) linear infinite,
             dust-twinkle calc(var(--dur, 16s) * 0.27) ease-in-out infinite;
  animation-delay: var(--d, 0s);
  will-change: transform, opacity;
}
@keyframes dust-rise {
  0%   { transform: translate3d(0, 0, 0)         scale(var(--s, 1)); opacity: 0; }
  10%  { opacity: 0.9; }
  90%  { opacity: 0.9; }
  100% { transform: translate3d(0, -110vh, 0)   scale(var(--s, 1)); opacity: 0; }
}
@keyframes dust-twinkle {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(245,197,66,0.7)); }
  50%      { filter: drop-shadow(0 0 12px rgba(245,197,66,1)); }
}

/* L4 — Persian ornament rain (refined: fewer, more elegant) */
.ornament-rain { position: absolute; inset: 0; z-index: 3; }
.orn {
  position: absolute;
  top: -80px;
  left: var(--x);
  width: 28px;
  height: 36px;
  opacity: var(--o, 0.6);
  transform: scale(var(--s, 1));
  animation: orn-fall var(--dur, 22s) linear infinite;
  animation-delay: var(--d, 0s);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 36'><g fill='none' stroke='%23b15bff' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'><path d='M14 1 C7 8, 7 24, 14 31 C20 25, 19 16, 17 12 C15 8, 13 6, 14 1 Z'/><circle cx='14' cy='10' r='2.4' fill='%23f5c542' fill-opacity='0.35'/><path d='M14 13 L14 25 M11 16 L17 16 M10.5 19 L17.5 19 M11 22 L17 22' stroke='%23f5c542' stroke-opacity='0.5' stroke-width='0.7'/></g></svg>");
  background-repeat: no-repeat;
  background-size: contain;
  filter: drop-shadow(0 0 6px rgba(70,28,130,0.55));
  will-change: transform;
}
@keyframes orn-fall {
  0%   { transform: translate3d(0, 0, 0)     scale(var(--s, 1)) rotate(0deg); }
  100% { transform: translate3d(0, 110vh, 0) scale(var(--s, 1)) rotate(360deg); }
}

/* L5 — cursor-following spotlight: a large soft purple radial glow that
   tracks the user's cursor with smooth lag (lag is applied in JS) */
.cursor-spot {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: radial-gradient(circle 320px at var(--cx, 50%) var(--cy, 50%),
    rgba(177,91,255,0.18),
    rgba(138,43,226,0.10) 35%,
    transparent 70%);
  mix-blend-mode: screen;
  transition: background-position 0.0s linear;
}

/* L0 — slow rotating conic spectrum (deepest layer behind .bg-fx) */
body::before {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: -4;
  pointer-events: none;
  background:
    conic-gradient(from 0deg at 50% 50%,
      rgba(138,43,226,0.50) 0deg,
      rgba(86,28,168,0.0)   60deg,
      rgba(177,91,255,0.36) 140deg,
      rgba(86,28,168,0.0)   200deg,
      rgba(245,197,66,0.09) 260deg,
      rgba(86,28,168,0.0)   320deg,
      rgba(138,43,226,0.50) 360deg);
  filter: blur(140px) saturate(1.2);
  animation: conic-spin 130s linear infinite;
  will-change: transform;
}
@keyframes conic-spin {
  to { transform: rotate(360deg); }
}

/* L6 — fine dot grid + film grain overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(177,91,255,0.13) 1px, transparent 1.5px),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.45 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.5'/></svg>");
  background-size: 28px 28px, 220px 220px;
  -webkit-mask-image: radial-gradient(ellipse 80% 75% at 50% 40%, #000 30%, transparent 95%);
          mask-image: radial-gradient(ellipse 80% 75% at 50% 40%, #000 30%, transparent 95%);
  opacity: 0.42;
  mix-blend-mode: screen;
}

@media (prefers-reduced-motion: reduce) {
  body::before, .bg-fluid, .orn, .dot, .medallion { animation: none; }
}

/* ============== MOBILE-SPECIFIC TUNING ============== */
@media (max-width: 720px) {
  /* Banner stage already spans full viewport — just trim bottom margin */
  .hero-stage { margin-bottom: 8px; }

  /* Background — keep the vibe, lighten the cost */
  body::before { filter: blur(80px) saturate(1.2); }     /* lower blur radius */
  .bg-fluid    { opacity: 0.75; }                         /* less intense */
  /* Hide half the ornament rain + half the dust on small screens */
  .orn:nth-child(2n), .dot:nth-child(2n) { display: none; }
  /* Shrink medallion constellations so they don't overflow */
  .medallion { transform: scale(0.55); transform-origin: center center; }

  /* Unroll carpet — let it scale down to viewport width */
  .unroll-carpet { width: min(86vw, 460px); }
  .unroll-edge   { width: min(90vw, 480px); height: 38px; }

  /* DexScreener — shorter on mobile */
  .dex-embed iframe { height: 380px; }

  /* Section vertical rhythm */
  .pillars { margin: 36px auto; gap: 12px; }
  .manifesto, .buy, .comic-strip { margin: 56px auto; }
  .sentry { margin: 56px 0; padding: 56px 18px; }

  /* Card paddings */
  .pillar { padding: 22px 16px; }
  .manifesto-card, .sentry-card { padding: 26px 20px; }

  /* Hero image area */
  .manifesto-art { min-height: 280px; }
  .manifesto-art img { width: 100%; }

  /* Comic panel max image height a little smaller */
  .panel-img img { max-height: 420px; }
}

@media (max-width: 480px) {
  /* Even tighter on phone-narrow */
  .hero-stage { margin-bottom: 6px; }

  .pillars { grid-template-columns: 1fr; }
  .nav { padding: 12px 16px; gap: 10px; }
  .brand { font-size: 20px; }
  .ink-badge, .sentry-badge { height: 22px; width: 22px; }
  .nav-links .cta { padding: 7px 14px; font-size: 13px; }

  /* Background — still lighter */
  .medallion { transform: scale(0.4); }
  .orn:nth-child(3n), .dot:nth-child(3n) { display: none; }

  /* Buy section CA card stacks */
  .ca-row { flex-direction: column; align-items: stretch; }
  #copyBtn { padding: 12px 14px; }

  .dex-embed iframe { height: 320px; }
}
a { color: var(--purple-2); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; display: block; }
.purple { color: var(--purple-2); text-shadow: 0 0 22px var(--purple-glow-text); }

/* ============== NAV ============== */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 28px;
  /* Lighter, more airy — relies on stronger backdrop blur for readability */
  background: rgba(12, 8, 20, 0.42);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid rgba(177,91,255,0.10);
}
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-size: 28px; letter-spacing: 1px; color: var(--ink);
}
.brand-mark { color: var(--purple-2); text-shadow: 0 0 14px var(--purple-glow-text); }
.brand-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.ink-badge {
  height: 28px;
  width: 28px;
  display: inline-block;
  vertical-align: middle;
  margin-left: 6px;
  filter: drop-shadow(0 0 8px rgba(128, 73, 242, 0.55));
  transition: transform .15s ease, filter .2s ease;
}
.brand:hover .ink-badge {
  filter: drop-shadow(0 0 12px rgba(185, 159, 255, 0.7));
}

.sentry-badge-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.sentry-badge {
  height: 28px;
  width: 28px;
  border-radius: 7px;
  display: block;
  filter: drop-shadow(0 0 8px rgba(245, 197, 66, 0.35));
  transition: transform .15s ease, filter .2s ease;
}
.sentry-badge-link:hover .sentry-badge {
  filter: drop-shadow(0 0 14px rgba(245, 197, 66, 0.6));
  transform: translateY(-1px);
}
.brand:hover .ink-badge { transform: translateY(-1px); }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a { color: var(--ink); font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--purple-2); }
.nav-links .cta {
  background: var(--purple); color: var(--ink);
  padding: 9px 18px; border-radius: 999px;
  box-shadow: 0 6px 24px var(--purple-glow);
}
.nav-links .cta:hover { background: var(--purple-2); color: #fff; }

/* ============== BUTTONS ============== */
.btn {
  display: inline-block; padding: 14px 28px; border-radius: 999px;
  font-weight: 800; letter-spacing: 0.5px; font-size: 15px;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  border: 2px solid transparent; cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
  color: white; box-shadow: 0 10px 30px var(--purple-glow);
}
.btn-primary:hover { color: #fff; box-shadow: 0 14px 40px var(--purple-glow); }
.btn-ghost { background: transparent; color: var(--ink); border-color: rgba(177,91,255,0.5); }
.btn-ghost:hover { background: rgba(177,91,255,0.08); color: #fff; }

/* ============== SHARED ============== */
.eyebrow {
  font-family: var(--font-display);
  letter-spacing: 4px; color: var(--purple-2);
  font-size: 14px;
  display: block; margin-bottom: 6px;
}
.section-head {
  text-align: center; max-width: 800px; margin: 0 auto 50px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 88px);
  letter-spacing: 2px; line-height: 0.95; margin: 8px 0 14px;
}
.section-head .lead { color: var(--muted); font-size: 18px; }

/* ============== HERO ============== */
.hero { position: relative; text-align: center; padding: 8px 24px 24px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  /* Single soft spotlight from the top — the global bg does the heavy lifting */
  background: radial-gradient(circle at 50% 0%, rgba(177,91,255,0.22), transparent 60%);
}
/* single beam line for extra crispness */
.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, rgba(177,91,255,0.0), rgba(177,91,255,0.35) 40%, rgba(177,91,255,0.0));
  pointer-events: none;
  filter: blur(0.4px);
  opacity: 0.5;
  z-index: 1;
}
/* Kraken mascot — sits just below the headline, inline */
/* Hero stage: full-viewport-wide container holding banner + overlaid headline */
.hero-stage {
  position: relative;
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 0;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Overlay text sits horizontally centered, anchored toward the top */
.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  pointer-events: none;
  padding: 1% 24px 0;
}
.hero-overlay .kicker {
  margin-bottom: 4px;
  text-shadow:
    0 2px 14px rgba(0,0,0,0.85),
    0 0 28px rgba(0,0,0,0.65);
}
.hero-overlay h1 {
  margin: 0;
  text-shadow:
    0 2px 18px rgba(0,0,0,0.9),
    0 0 38px rgba(0,0,0,0.75),
    0 0 80px rgba(12,8,20,0.6);
}

/* Wizard banner — full-viewport hero image, edges fade into the background */
.hero-banner {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0;
  /* Soft fade on top + bottom + sides so the banner blends into the page bg */
  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0%, #000 9%, #000 86%, transparent 100%),
    linear-gradient(to right,  transparent 0%, #000 4%, #000 96%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image:
    linear-gradient(to bottom, transparent 0%, #000 9%, #000 86%, transparent 100%),
    linear-gradient(to right,  transparent 0%, #000 4%, #000 96%, transparent 100%);
          mask-composite: intersect;
  filter:
    drop-shadow(0 0 50px rgba(177,91,255,0.35))
    drop-shadow(0 0 120px rgba(138,43,226,0.22));
  animation: banner-float 7s ease-in-out infinite;
  /* hide the alt-text/border placeholder during load */
  border: 0;
  background: transparent;
  outline: none;
  font-size: 0;
  color: transparent;
}
@keyframes banner-float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -6px; }
}

/* legacy mascot styles kept for safety in case of cached HTML — also hidden if present */
.hero-mascot { display: none; }
@media (prefers-reduced-motion: reduce) {
  .hero-mascot { animation: none; }
}
.hero-inner {
  position: relative; max-width: 920px; margin: 0 auto;
  z-index: 2;
}
.kicker {
  font-family: var(--font-display);
  font-size: 24px; letter-spacing: 4px; color: var(--muted);
  margin: 0 0 6px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(64px, 10vw, 130px);
  line-height: 0.9; letter-spacing: 2px;
  margin: 6px 0 18px;
  text-align: center;
}
.kicker { text-align: center; }
.tagline { font-size: 16px; color: var(--muted); max-width: 680px; margin: 4px auto 14px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.chain {
  margin-top: 12px; font-family: var(--font-display);
  letter-spacing: 3px; color: var(--muted); font-size: 13px;
}

/* ============== TRUTHS MARQUEE ============== */
.truths {
  position: relative;
  margin: 20px 0 40px;
  padding: 18px 0;
  border-top: 1px solid rgba(177,91,255,0.2);
  border-bottom: 1px solid rgba(177,91,255,0.2);
  background: linear-gradient(90deg, rgba(177,91,255,0.06), rgba(138,43,226,0.02), rgba(177,91,255,0.06));
  overflow: hidden;
  white-space: nowrap;
}
.truths::before, .truths::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 80px;
  z-index: 2; pointer-events: none;
}
.truths::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.truths::after  { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
.truths-track {
  display: inline-flex; align-items: center; gap: 28px;
  animation: truths-scroll 38s linear infinite;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 38px);
  letter-spacing: 2px; color: var(--ink);
  padding-left: 0;
}
.truths-track .dot { color: var(--gold); font-size: 14px; opacity: 0.7; }
.truths-track span.purple { text-shadow: 0 0 20px var(--purple-glow-text); }
@keyframes truths-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.truths:hover .truths-track { animation-play-state: paused; }

/* ============== PILLARS ============== */
.pillars {
  max-width: var(--max); margin: 60px auto;
  padding: 0 24px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.pillar {
  background: linear-gradient(180deg, rgba(177,91,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid rgba(177,91,255,0.18);
  border-radius: var(--radius);
  padding: 28px 22px; text-align: center;
  transition: transform .2s ease, border-color .2s ease;
}
.pillar:hover { transform: translateY(-4px); border-color: var(--purple-2); }
.pillar-icon { font-size: 32px; color: var(--purple-2); margin-bottom: 10px; }
.pillar h3 {
  font-family: var(--font-display);
  letter-spacing: 1.5px; font-size: 22px; margin-bottom: 6px;
}
.pillar p { color: var(--muted); font-size: 14px; }

/* ============== MANIFESTO (combined narrative + cards + pull-quote) ============== */
.manifesto {
  max-width: var(--max); margin: 100px auto;
  padding: 0 24px;
}
.manifesto-top {
  display: grid; grid-template-columns: 0.95fr 1.05fr;
  gap: 60px; align-items: center; margin-bottom: 70px;
}
.manifesto-text h2 {
  font-family: var(--font-display);
  font-size: clamp(46px, 6vw, 78px);
  letter-spacing: 1.5px; line-height: 1; margin: 4px 0 22px;
}
.manifesto-text p { color: var(--muted); margin-bottom: 16px; font-size: 17px; }
.manifesto-text .big {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  color: var(--ink); line-height: 1; letter-spacing: 1px; margin: 22px 0;
}
.manifesto-text .btn { margin-top: 12px; }
.manifesto-art {
  position: relative;
  min-height: 380px;
  display: flex; align-items: center; justify-content: center;
  padding: 10px;
}
.manifesto-art::before {
  /* Big radial glow behind the image */
  content: "";
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(ellipse 60% 55% at 50% 55%, rgba(177,91,255,0.55), rgba(138,43,226,0.25) 40%, transparent 70%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
  animation: pulse-glow 6s ease-in-out infinite;
}
.manifesto-art img {
  position: relative;
  z-index: 1;
  width: 110%;
  max-width: none;
  height: auto;
  background: transparent;
  filter:
    drop-shadow(0 0 24px rgba(177,91,255,0.55))
    drop-shadow(0 0 60px rgba(138,43,226,0.4));
}
@keyframes pulse-glow {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50%      { opacity: 1;     transform: scale(1.04); }
}

.manifesto-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 22px; margin-bottom: 56px;
}
.manifesto-card {
  position: relative; padding: 38px 28px 32px;
  border-radius: var(--radius);
  border: 1px solid rgba(177,91,255,0.25);
  background: linear-gradient(180deg, rgba(177,91,255,0.1), rgba(255,255,255,0.02));
  text-align: left; overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.manifesto-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--purple-2), var(--gold));
  opacity: 0.6;
}
.manifesto-card:hover {
  transform: translateY(-6px); border-color: var(--purple-2);
  box-shadow: 0 20px 50px rgba(177,91,255,0.18);
}
.m-num {
  font-family: var(--font-display);
  font-size: 56px; color: var(--purple-2);
  letter-spacing: 2px; line-height: 1;
  display: block;
}
.manifesto-card h4 {
  font-family: var(--font-display);
  font-size: 28px; letter-spacing: 1.5px; margin: 4px 0 10px;
}
.manifesto-card p { color: var(--muted); }

.pull-quote {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: 2px; line-height: 1.05;
  color: var(--ink);
  text-align: center;
  border: none; padding: 0; margin: 0;
}

/* ============== COMIC STRIP ============== */
.comic-strip {
  position: relative;
  max-width: 1100px; margin: 100px auto;
  padding: 0 24px;
  display: flex; flex-direction: column; gap: 70px;
}
.comic-strip > .panel,
.comic-strip > .section-head { position: relative; z-index: 1; }

/* ===== Scroll-driven unrolling carpet ===== */
.unroll-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  /* fade left/right edges so it doesn't visually compete */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 18%, #000 82%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 18%, #000 82%, transparent);
  /* Promote to its own paint layer so scroll updates don't repaint siblings */
  contain: layout paint;
  /* CSS variables live on this element instead of the whole #story so style
     invalidation only hits .unroll-carpet and .unroll-edge */
}
.unroll-carpet {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate3d(-50%, 0, 0);
  width: clamp(520px, 70vw, 920px);
  height: 100%;
  background-color: #1a0f2c;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240' width='240' height='240'><rect width='240' height='240' fill='%231a0f2c'/><g stroke-linecap='round' stroke-linejoin='round'><line x1='0' y1='30' x2='240' y2='30' stroke='%23b15bff' stroke-opacity='0.30' stroke-width='1'/><line x1='0' y1='40' x2='240' y2='40' stroke='%23f5c542' stroke-opacity='0.18' stroke-width='0.8'/><line x1='0' y1='200' x2='240' y2='200' stroke='%23f5c542' stroke-opacity='0.18' stroke-width='0.8'/><line x1='0' y1='210' x2='240' y2='210' stroke='%23b15bff' stroke-opacity='0.30' stroke-width='1'/><g transform='translate(120 120)'><path d='M0 -50 L42 0 L0 50 L-42 0 Z' fill='none' stroke='%23b15bff' stroke-opacity='0.55' stroke-width='1.5'/><path d='M0 -34 L26 0 L0 34 L-26 0 Z' fill='none' stroke='%23f5c542' stroke-opacity='0.45' stroke-width='1'/><path d='M0 -18 L14 0 L0 18 L-14 0 Z' fill='%23f5c542' fill-opacity='0.18' stroke='%23f5c542' stroke-opacity='0.55' stroke-width='0.8'/><circle r='3' fill='%23f5c542'/></g><path d='M30 120 L48 108 L62 120 L48 132 Z' fill='none' stroke='%23b15bff' stroke-opacity='0.40' stroke-width='1'/><path d='M210 120 L192 108 L178 120 L192 132 Z' fill='none' stroke='%23b15bff' stroke-opacity='0.40' stroke-width='1'/></g></svg>"),
    repeating-linear-gradient(180deg,
      rgba(255,255,255,0.022) 0px,
      rgba(255,255,255,0.022) 1px,
      transparent 1px,
      transparent 4px);
  background-repeat: repeat, repeat;
  background-size: 240px 240px, 100% 4px;
  background-position: top center, top center;
  filter: contrast(1.1);
  opacity: 0.55;
  clip-path: inset(0 0 calc(100% - var(--unroll-y, 0px)) 0);
  -webkit-clip-path: inset(0 0 calc(100% - var(--unroll-y, 0px)) 0);
  will-change: clip-path;
}

/* Rolled rug edge — cylindrical roll seen from the side */
.unroll-edge {
  position: absolute;
  left: 50%;
  top: 0;
  /* Composited GPU transforms via individual properties — they compose cleanly */
  translate: -50% calc(var(--unroll-y, 0px) - 50%);
  scale: var(--unroll-scale, 1);
  transform-origin: center center;
  will-change: translate, scale;
  backface-visibility: hidden;
  width: clamp(540px, 72vw, 940px);
  height: 46px;
  border-radius: 28px;
  background:
    /* LEFT end cap: concentric spiral rings (rolled rug cross-section) */
    radial-gradient(ellipse 16px 22px at 16px 50%,
      #f5c542 0%, #f5c542 6%,
      #2a1645 6%, #2a1645 14%,
      #6d2bb2 14%, #6d2bb2 22%,
      #2a1645 22%, #2a1645 32%,
      #6d2bb2 32%, #6d2bb2 42%,
      #2a1645 42%, #2a1645 56%,
      #6d2bb2 56%, #6d2bb2 70%,
      #2a1645 70%, #2a1645 100%) no-repeat,
    /* RIGHT end cap */
    radial-gradient(ellipse 16px 22px at calc(100% - 16px) 50%,
      #f5c542 0%, #f5c542 6%,
      #2a1645 6%, #2a1645 14%,
      #6d2bb2 14%, #6d2bb2 22%,
      #2a1645 22%, #2a1645 32%,
      #6d2bb2 32%, #6d2bb2 42%,
      #2a1645 42%, #2a1645 56%,
      #6d2bb2 56%, #6d2bb2 70%,
      #2a1645 70%, #2a1645 100%) no-repeat,
    /* Cylinder body — top highlight, deep middle, soft bottom */
    linear-gradient(180deg,
      #4a2080 0%,
      #6d2bb2 18%,
      #2a1645 50%,
      #1a0f2c 100%);
  background-size: 36px 100%, 36px 100%, 100% 100%;
  background-position: 0 0, 100% 0, 0 0;
  box-shadow:
    0 14px 30px rgba(0,0,0,0.55),
    0 0 40px rgba(177,91,255,0.20),
    inset 0 2px 0 rgba(255,255,255,0.22),
    inset 0 -3px 6px rgba(0,0,0,0.55);
  opacity: 0.95;
  transition: opacity 0.3s ease;
}
/* small fringe peeking out below the rolled rug — the leading tassels */
.unroll-edge::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -8px;
  height: 8px;
  background-image: repeating-linear-gradient(90deg,
    rgba(245,197,66,0.55) 0 2px,
    transparent 2px 5px);
  opacity: 0.65;
  border-radius: 0 0 6px 6px;
}
/* hide edge before user scrolls into the section / after it's fully unrolled */
.comic-strip[data-unroll="done"] .unroll-edge,
.comic-strip[data-unroll="hidden"] .unroll-edge { opacity: 0; }
.panel {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 40px; align-items: center;
}
.panel.reverse .panel-img { order: 2; }
.panel-img {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(177,91,255,0.2);
  background: rgba(177,91,255,0.06);
  display: flex; align-items: center; justify-content: center;
  padding: 12px;
}
.panel-img img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  border-radius: 8px;
}
.panel-text .num {
  font-family: var(--font-display);
  font-size: 56px; color: var(--purple-2);
  letter-spacing: 2px; line-height: 1; display: block;
}
.panel-text h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 42px);
  letter-spacing: 1.5px; line-height: 1.05;
  margin: 6px 0 12px;
}
.panel-text p { color: var(--muted); font-size: 17px; }

/* ============== SENTRY ============== */
.sentry {
  position: relative;
  margin: 100px 0;
  padding: 90px 24px;
  background:
    radial-gradient(800px 400px at 80% 0%, rgba(245,197,66,0.08), transparent 60%),
    radial-gradient(700px 500px at 10% 100%, rgba(177,91,255,0.18), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
  border-top: 1px solid rgba(177,91,255,0.2);
  border-bottom: 1px solid rgba(177,91,255,0.2);
}
.sentry-inner { max-width: var(--max); margin: 0 auto; text-align: center; }
.sentry .eyebrow { color: var(--gold); letter-spacing: 5px; }
.sentry-hero-logo {
  display: block;
  width: 96px;
  height: 96px;
  margin: 14px auto 18px;
  border-radius: 22px;
  filter:
    drop-shadow(0 0 24px rgba(245, 197, 66, 0.45))
    drop-shadow(0 0 60px rgba(245, 197, 66, 0.18));
  transition: transform .3s ease;
}
.sentry-hero-logo:hover { transform: scale(1.05); }
.sentry h2 {
  font-family: var(--font-display);
  font-size: clamp(56px, 8vw, 110px);
  letter-spacing: 2px; line-height: 0.95; margin: 8px 0 18px;
}
.sentry .lead {
  color: var(--muted); font-size: 19px;
  max-width: 760px; margin: 0 auto 50px;
}
.sentry-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 22px; margin-bottom: 40px;
}
.sentry-card {
  padding: 32px 24px; border-radius: var(--radius);
  border: 1px solid rgba(245,197,66,0.25);
  background: linear-gradient(180deg, rgba(245,197,66,0.06), rgba(177,91,255,0.04));
  text-align: left;
  transition: transform .25s ease, border-color .25s ease;
}
.sentry-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.sentry-num {
  font-family: var(--font-display);
  font-size: 48px; color: var(--gold);
  letter-spacing: 2px; line-height: 1; display: block;
}
.sentry-card h4 {
  font-family: var(--font-display);
  font-size: 26px; letter-spacing: 1.3px; margin: 4px 0 8px;
}
.sentry-card p { color: var(--muted); font-size: 15px; }
.sentry-cta {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}

/* ============== BUY ============== */
.buy {
  max-width: var(--max); margin: 100px auto;
  padding: 0 24px;
}
.buy-head {
  text-align: center; max-width: 760px; margin: 0 auto 40px;
}
.buy-head h2 {
  font-family: var(--font-display);
  font-size: clamp(56px, 8vw, 110px);
  letter-spacing: 2px; line-height: 0.95; margin: 8px 0 14px;
}
.buy-head .lead { color: var(--muted); font-size: 18px; }
.buy-head .lead a { color: var(--gold); font-weight: 700; }
.buy-head .lead a:hover { color: var(--purple-2); }

.ca-card {
  max-width: 760px; margin: 0 auto 50px;
  padding: 26px; border-radius: var(--radius);
  border: 1px solid rgba(177,91,255,0.3);
  background: linear-gradient(180deg, rgba(177,91,255,0.1), rgba(255,255,255,0.02));
  text-align: left;
}
.ca-card label {
  font-family: var(--font-display);
  letter-spacing: 3px; color: var(--muted); font-size: 14px;
}
.ca-row {
  display: flex; align-items: center; gap: 12px;
  margin-top: 8px;
  background: rgba(0,0,0,0.4);
  padding: 12px 14px; border-radius: 10px;
  border: 1px solid rgba(177,91,255,0.2);
}
.ca-row code {
  flex: 1;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 14px; color: var(--ink); word-break: break-all;
}
.ca-note { color: var(--muted); font-size: 13px; margin-top: 10px; }
#copyBtn {
  background: var(--purple); color: white; border: none;
  padding: 10px 16px; border-radius: 8px;
  cursor: pointer; font-weight: 700; font-family: var(--font-body);
}
#copyBtn:hover { background: var(--purple-2); }
#copyBtn.copied { background: var(--green); color: #002; }

.steps {
  max-width: 1000px; margin: 0 auto 60px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.step {
  padding: 26px 22px; border-radius: var(--radius);
  border: 1px solid rgba(177,91,255,0.2);
  background: rgba(177,91,255,0.05);
}
.step-num {
  font-family: var(--font-display);
  font-size: 42px; color: var(--purple-2);
  letter-spacing: 2px; display: block; line-height: 1;
}
.step h4 {
  font-family: var(--font-display);
  font-size: 22px; letter-spacing: 1.2px; margin: 4px 0 8px;
}
.step p { color: var(--muted); font-size: 15px; }

.dex-cta {
  max-width: 1000px; margin: 0 auto 30px;
  padding: 50px 24px; border-radius: var(--radius);
  border: 1px solid rgba(177,91,255,0.25);
  background: var(--bg-2); text-align: center;
}
.dex-cta h3 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: 1.5px; margin-bottom: 8px;
}
.dex-cta p { color: var(--muted); margin-bottom: 22px; }
.dex-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.dex-embed {
  max-width: 1000px; margin: 0 auto;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(177,91,255,0.25);
  background: var(--bg-2);
}
.dex-embed iframe { width: 100%; height: 560px; border: 0; display: block; }

/* ============== FOOTER ============== */
.footer {
  margin-top: 80px; padding: 60px 24px 40px;
  text-align: center;
  border-top: 1px solid rgba(177,91,255,0.18);
  background: linear-gradient(180deg, transparent, rgba(177,91,255,0.06));
}
.footer-brand .brand-mark {
  font-family: var(--font-display);
  font-size: 36px; letter-spacing: 1px;
}
.footer-brand p {
  color: var(--muted); margin: 8px 0 22px; font-style: italic;
}
.footer-links {
  display: flex; justify-content: center; gap: 24px;
  flex-wrap: wrap; margin-bottom: 22px;
}
.footer-links a { color: var(--ink); font-weight: 600; }
.footer-links a:hover { color: var(--purple-2); }
.footer .ca {
  font-size: 13px; color: var(--muted);
  word-break: break-all; margin-bottom: 8px;
}
.footer .ca code {
  background: rgba(177,91,255,0.1);
  padding: 4px 8px; border-radius: 6px;
  color: var(--ink);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
.footer .fineprint { font-size: 12px; color: var(--muted); }

/* ============== RESPONSIVE ============== */
@media (max-width: 1000px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .manifesto-top { grid-template-columns: 1fr; gap: 30px; }
  .manifesto-grid { grid-template-columns: 1fr; }
  .sentry-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .panel, .panel.reverse { grid-template-columns: 1fr; gap: 20px; }
  .panel.reverse .panel-img { order: 0; }
  .dex-embed iframe { height: 460px; }
  .truths-track { font-size: 22px; gap: 18px; }
}
@media (max-width: 720px) {
  .nav { padding: 14px 18px; }
  .nav-links { gap: 14px; }
  .nav-links a:not(.cta) { display: none; }
  .brand { font-size: 22px; }
  .hero { padding: 70px 18px 50px; }
  .pillars { grid-template-columns: 1fr; }
  .sentry { padding: 60px 20px; margin: 60px 0; }
  .manifesto, .buy, .comic-strip { margin: 60px auto; }
}
