/* ==========================================================================
   $ARCPUP — styles.css
   Mobile-first, dark-only. Edit the tokens in :root to retheme.
   ========================================================================== */

/* ---- Design tokens ---------------------------------------------------- */
:root {
  --bg:        #030507;   /* near-black */
  --bg-2:      #070b10;   /* raised surface */
  --surface:   rgba(0, 240, 255, 0.03);
  --line:      rgba(0, 240, 255, 0.14);
  --line-hi:   rgba(0, 240, 255, 0.45);

  --cyan:      #00f0ff;   /* primary accent */
  --blue:      #2b7bff;   /* secondary accent */
  --ice:       #b8fbff;

  --text:      #e8f6f8;
  --muted:     #7f9298;

  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body:    "Inter Tight", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  --radius: 18px;
  --gutter: 16px;
  --max:    1200px;
  --ease:   cubic-bezier(.2, .8, .2, 1);

  color-scheme: dark;
}

/* ---- Base ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
::selection { background: var(--cyan); color: var(--bg); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.accent {
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---- Typography ------------------------------------------------------- */
.h2 {
  font: 800 clamp(2rem, 7vw, 4rem)/1.02 var(--font-display);
  letter-spacing: -0.03em;
  margin: 0;
}
.label, .eyebrow {
  font: 600 .72rem/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--cyan);
  margin-bottom: 1.25rem;
}
.lead { font-size: clamp(1.1rem, 2.4vw, 1.35rem); line-height: 1.5; color: var(--text); }

/* ---- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.4rem;
  border-radius: 999px;
  font: 600 .95rem/1 var(--font-body);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn--primary {
  background: var(--cyan); color: #001417;
  box-shadow: 0 0 0 0 rgba(0, 240, 255, .5), 0 10px 40px -10px rgba(0, 240, 255, .7);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 6px rgba(0, 240, 255, .12), 0 14px 50px -8px rgba(0, 240, 255, .9); }
.btn--ghost {
  background: rgba(255, 255, 255, .02); color: var(--text);
  border-color: var(--line);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: var(--line-hi); background: rgba(0, 240, 255, .06); transform: translateY(-2px); }
.btn--sm { padding: .6rem 1rem; font-size: .85rem; }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }

/* ---- Nav -------------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .85rem var(--gutter);
  background: linear-gradient(to bottom, rgba(3, 5, 7, .9), rgba(3, 5, 7, .55));
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 240, 255, .07);
}
.nav__brand { display: flex; align-items: center; gap: .5rem; font: 800 1rem/1 var(--font-display); letter-spacing: -.02em; }
.nav__bolt { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: rgba(0, 240, 255, .1); }
.nav__bolt svg { width: 16px; fill: var(--cyan); filter: drop-shadow(0 0 6px var(--cyan)); }
/* Scroll "charge" meter along the bottom of the nav (scroll-driven, no JS) */
.charge {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan), #fff);
  box-shadow: 0 0 12px var(--cyan);
  transform: scaleX(0); transform-origin: left;
}
@supports (animation-timeline: scroll()) {
  .charge { animation: charge linear both; animation-timeline: scroll(root); }
}
.nav__links { display: none; gap: 2rem; font-size: .9rem; color: var(--muted); }
.nav__links a { transition: color .2s; }
.nav__links a:hover { color: var(--cyan); }

/* ---- Hero ------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(100svh, 1000px);
  display: flex; align-items: center;
  padding: 6.5rem 0 4rem;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(60% 50% at 75% 50%, rgba(0, 240, 255, .14), transparent 70%),
    radial-gradient(40% 40% at 20% 80%, rgba(43, 123, 255, .12), transparent 70%),
    var(--bg);
}

.hero__inner {
  width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; gap: 2rem;
}
.hero__copy { position: relative; z-index: 2; }

.eyebrow { display: inline-flex; align-items: center; gap: .6rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); animation: pulse 1.6s infinite; }

.hero__title {
  position: relative;
  margin: 0;
  font: 900 clamp(2.6rem, 13vw, 6rem)/.9 var(--font-display);
  letter-spacing: -0.05em;
  color: var(--text);
  text-shadow: 0 0 40px rgba(0, 240, 255, .3);
}
.hero__sub {
  margin-top: 1.25rem;
  font: 600 clamp(1.1rem, 3.8vw, 1.6rem)/1.3 var(--font-display);
  letter-spacing: -.01em;
  color: var(--muted);
}
.hero__sub em { font-style: normal; color: var(--cyan); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }
.hero__ctas .btn--primary { flex: 1 1 100%; }

/* Hero film: video (or the still, until the video loads) fills the hero
   behind the copy. If hero.jpg is missing, the figure stays in the grid
   and shows the SVG placeholder instead. */
.hero__art { position: relative; margin: 0; }
.hero__art:not(.is-missing) { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
/* Phones: the film sits in the top part of the hero (copy below), fading out
   at the bottom. */
.hero__art {
  --film-mask-x: linear-gradient(to right, transparent, #000 22%, #000 90%, transparent);
  --film-mask-y: linear-gradient(to bottom, transparent, #000 14%, #000 82%, transparent);
}
.hero__img, .hero__video {
  position: absolute; top: max(88px, 16%); left: -22%;
  width: 130%; height: auto; aspect-ratio: 1264 / 832;   /* trims tail side, keeps the whole pup */
  object-fit: cover;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent);
          mask-image: linear-gradient(to bottom, #000 72%, transparent);
}
.hero__video { opacity: 0; transition: opacity 1.2s ease; }
.hero__art.has-video .hero__video { opacity: 1; }
.hero__art.is-missing .hero__img, .hero__art.is-missing .hero__video { display: none; }

/* Readability scrim: bottom on mobile, left side on desktop */
.hero__art:not(.is-missing)::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, var(--bg) 10%, rgba(3, 5, 7, .6) 38%, transparent 55%);
}
.hero:has(.hero__art:not(.is-missing)) { align-items: flex-end; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 1.5rem; transform: translateX(-50%);
  width: 24px; height: 38px; border: 1px solid var(--line-hi); border-radius: 14px;
}
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 2px; height: 8px; margin-left: -1px; background: var(--cyan); border-radius: 2px; animation: scroll 1.6s infinite; }

/* ---- Fallback SVG (shown until hero.jpg exists) --- --------------- */
.fallback { display: none; }
[data-fallback].is-missing img { display: none; }
[data-fallback].is-missing .fallback { display: grid; }

.cat { width: 100%; height: auto; overflow: visible; animation: run .45s ease-in-out infinite alternate; }
.cat__body { fill: #05080b; stroke: rgba(0, 240, 255, .55); stroke-width: 1.5; filter: drop-shadow(0 0 24px rgba(0, 240, 255, .35)); }
.cat__circuit path { fill: none; stroke: var(--cyan); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 6 10; animation: flow 1s linear infinite; }
.cat__circuit circle { fill: var(--cyan); }
.cat__eye { fill: #6fd9ff; animation: blink 4s infinite; }
.cat__bolt { fill: var(--ice); opacity: 0; animation: strike 3.2s infinite; }
.cat__speed line { animation: speed .6s linear infinite; }
.cat__speed line:nth-child(2) { animation-delay: -.2s; }
.cat__speed line:nth-child(3) { animation-delay: -.4s; }
.cat__speed line:nth-child(4) { animation-delay: -.1s; }

/* ---- Marquee ---------------------------------------------------------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(0, 240, 255, .06), rgba(43, 123, 255, .06));
  padding: 1rem 0;
}
.marquee__track {
  display: flex; gap: 2rem; width: max-content;
  font: 800 clamp(1rem, 3vw, 1.4rem)/1 var(--font-display);
  text-transform: uppercase; letter-spacing: -.01em;
  animation: marquee 22s linear infinite;
}
.marquee__track i { font-style: normal; color: var(--cyan); }

/* ---- Sections --------------------------------------------------------- */
.section { padding: clamp(5rem, 14vw, 9rem) 0; position: relative; }
.section__head { margin-bottom: clamp(2.5rem, 6vw, 4rem); }

/* About */
.about__grid { display: grid; gap: 2.5rem; }
.about__copy { display: grid; gap: 1.25rem; color: var(--muted); max-width: 560px; }
.about__copy .h2 { color: var(--text); margin-bottom: .5rem; }
.about__copy .label { margin: 0; }
.about__art { position: relative; margin: 0 auto; width: min(100%, 420px); }
.about__art img {
  width: 100%; height: auto;
  /* fade the black edges into the page so it doesn't read as a box */
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 55%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 55%, transparent 100%);
  filter: drop-shadow(0 0 60px rgba(0, 240, 255, .25));
}
.about__art::before { /* soft cyan aura behind the portrait */
  content: ""; position: absolute; inset: 15% 10%; z-index: -1;
  background: radial-gradient(circle, rgba(0, 240, 255, .18), transparent 65%);
  filter: blur(30px);
}
.about__art .fallback {
  aspect-ratio: 2 / 3; place-content: center; text-align: center; gap: .35rem;
  border: 1px dashed var(--line-hi); border-radius: var(--radius);
}
.about__art .fallback span { font: 800 1rem/1.2 var(--font-display); }
.about__art .fallback small { font: 400 .7rem/1 var(--font-mono); color: var(--muted); }
.pills { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: .75rem 0 0; list-style: none; }
.pills li {
  padding: .5rem .9rem; border: 1px solid var(--line); border-radius: 999px;
  font-size: .85rem; color: var(--text); background: var(--surface);
}

/* Tokenomics */
.tokenomics { background: linear-gradient(to bottom, var(--bg), var(--bg-2) 40%, var(--bg)); }
.tok-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
.card {
  position: relative;
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color .3s, transform .3s var(--ease), box-shadow .3s;
}
/* cyan edge glow that sweeps in on hover */
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  transform: translateX(-100%); transition: transform .6s var(--ease);
}
.card:hover { border-color: var(--line-hi); transform: translateY(-3px); box-shadow: 0 20px 50px -25px rgba(0, 240, 255, .5); }
.card:hover::before { transform: translateX(100%); }
.card__icon { display: block; font-size: 1.1rem; color: var(--cyan); margin-bottom: 1.5rem; opacity: .8; }
.card__value {
  font: 800 clamp(1.3rem, 5vw, 2.2rem)/1.05 var(--font-display);
  letter-spacing: -.03em;
  word-break: break-word;
}
.card__label { margin-top: .5rem; font: 400 .72rem/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }

.card--ca { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.card--ca .card__label { margin: 0 0 .5rem; }
.ca {
  display: block;
  font: 600 clamp(.8rem, 2.6vw, 1.05rem)/1.4 var(--font-mono);
  color: var(--cyan);
  word-break: break-all;
}
.note { margin-top: 1.5rem; font-size: .85rem; color: var(--muted); }

/* Gallery */
.gal-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; grid-auto-flow: dense; }
.tile {
  position: relative; margin: 0; overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.tile--wide { grid-column: span 2; }
.tile--tall { grid-row: span 2; }
.tile--full { grid-column: 1 / -1; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), filter .7s; }
.tile:hover img { transform: scale(1.06); filter: saturate(1.2) brightness(1.1); }
/* Close-up crop: zoom toward the inline transform-origin set in the HTML */
.tile--zoom img { scale: 2; }
.tile::after { /* subtle cyan vignette */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 60px rgba(0, 240, 255, .08);
  transition: box-shadow .4s;
}
.tile:hover::after { box-shadow: inset 0 0 0 1px var(--line-hi), inset 0 0 80px rgba(0, 240, 255, .2); }

/* Placeholder tile while images are missing */
.tile .fallback {
  position: absolute; inset: 0; place-content: center; text-align: center; gap: .35rem;
  background:
    repeating-linear-gradient(115deg, transparent 0 22px, rgba(0, 240, 255, .04) 22px 23px),
    radial-gradient(circle at 70% 40%, rgba(0, 240, 255, .14), transparent 60%);
}
.tile .fallback span { font: 800 clamp(.85rem, 2.4vw, 1.1rem)/1.2 var(--font-display); }
.tile .fallback small { font: 400 .7rem/1 var(--font-mono); color: var(--muted); }

/* PFP Lab */
.pfp__intro { margin-top: 1.25rem; color: var(--muted); max-width: 560px; }
.pfp__grid { display: grid; gap: 2rem; }
.pfp__stage { position: relative; }
.pfp__canvas {
  display: block; width: 100%; height: auto; aspect-ratio: 1;
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid var(--line-hi);
  background: var(--bg-2);
  box-shadow: 0 30px 80px -40px rgba(0, 240, 255, .5);
  cursor: grab;
  touch-action: none;                    /* let drags move the photo, not the page */
}
.pfp__canvas:active { cursor: grabbing; }
.pfp__hint { margin-top: .75rem; text-align: center; font: 400 .72rem/1.4 var(--font-mono); color: var(--muted); letter-spacing: .06em; }
.pfp__controls { display: grid; gap: 1.5rem; align-content: start; }
.pfp__group .card__label { margin: 0 0 .7rem; display: block; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .6rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font: 500 .88rem/1 var(--font-body);
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s, box-shadow .2s;
}
.chip:hover { border-color: var(--line-hi); }
.chip[aria-pressed="true"] {
  background: rgba(0, 240, 255, .12);
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 20px -6px rgba(0, 240, 255, .6);
}
.chip--upload { position: relative; }
.chip--upload:focus-within { outline: 2px solid var(--cyan); outline-offset: 3px; }
.range { width: 100%; accent-color: var(--cyan); }
.pfp__actions { display: flex; flex-wrap: wrap; gap: .75rem; padding-top: .5rem; }
.pfp__actions .btn { flex: 1 1 auto; }

/* Live launch stats (shown once the contract is set) */
.live {
  --p: 0%;
  margin-bottom: 1.25rem;
  padding: 1.25rem 1.25rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--line-hi);
  background: linear-gradient(135deg, rgba(0, 240, 255, .07), rgba(43, 123, 255, .05));
  box-shadow: 0 20px 60px -35px rgba(0, 240, 255, .7);
}
.live[hidden] { display: none; }
.live__head { display: flex; align-items: center; gap: .6rem; font: 600 .78rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); }
.live__dot { width: 8px; height: 8px; border-radius: 50%; background: #3dff9a; box-shadow: 0 0 10px #3dff9a; animation: pulse 1.4s infinite; }
.live__pct { margin-left: auto; font: 800 1.4rem/1 var(--font-display); letter-spacing: -.02em; color: #eaffff; text-transform: none; text-shadow: 0 0 18px rgba(0, 240, 255, .6); }
.live__bar { position: relative; height: 14px; margin: 1rem 0 1.1rem; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); overflow: hidden; }
.live__fill {
  position: absolute; inset: 0 auto 0 0; width: var(--p);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--cyan) 70%, #eaffff);
  box-shadow: 0 0 18px rgba(0, 240, 255, .8);
  transition: width 1.2s var(--ease);
}
.live__fill::after {   /* energy running along the bar */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0 40%, rgba(255, 255, 255, .55) 50%, transparent 60% 100%);
  background-size: 220% 100%;
  animation: barsweep 2.4s linear infinite;
}
@keyframes barsweep { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.live.is-graduated .live__dot { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.live__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem 1rem; margin: 0; }
.live__stats dt { font: 400 .68rem/1.2 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.live__stats dd { margin: .3rem 0 0; font: 800 1.1rem/1.1 var(--font-display); letter-spacing: -.02em; }
@media (min-width: 640px) { .live__stats { grid-template-columns: repeat(4, 1fr); } }
.ca-creator { margin-top: .6rem; font-size: .8rem; color: var(--muted); }
.ca-creator code { font: 600 .8rem var(--font-mono); color: var(--text); word-break: break-all; }

/* How to buy */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: none; }
.step { display: flex; flex-direction: column; gap: .75rem; }
.step p { color: var(--muted); font-size: .92rem; line-height: 1.55; }
.step code { font: 600 .85em var(--font-mono); color: var(--cyan); }
.step .btn { align-self: flex-start; margin-top: auto; }
.step__num {
  font: 800 2.2rem/1 var(--font-display); letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1px var(--cyan);
  filter: drop-shadow(0 0 10px rgba(0, 240, 255, .45));
}
.step__title { margin: 0; font: 800 1.15rem/1.2 var(--font-display); letter-spacing: -.02em; }
.howto__ca { margin-top: 1.5rem; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* Roadmap: phase cards joined by a glowing rail (vertical on phones, horizontal on desktop) */
.roadmap__intro { margin-top: 1.25rem; color: var(--muted); max-width: 560px; }
.roadmap {
  position: relative; list-style: none; margin: 0; padding: 0 0 0 1.75rem;
  display: grid; gap: 1rem;
}
.roadmap::before {                         /* the rail */
  content: ""; position: absolute; left: 6px; top: 1.5rem; bottom: 1.5rem; width: 2px;
  background: linear-gradient(to bottom, var(--cyan), rgba(43, 123, 255, .5) 35%, var(--line) 70%);
  box-shadow: 0 0 12px rgba(0, 240, 255, .5);
}
.roadmap__phase { overflow: visible; }
.roadmap__node {
  position: absolute; left: calc(-1.75rem + 1px); top: 1.6rem;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--line-hi);
}
.roadmap__phase.is-current .roadmap__node {
  background: var(--cyan); border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(0, 240, 255, .15), 0 0 16px var(--cyan);
  animation: pulse 1.8s infinite;
}
.roadmap__phase.is-current { border-color: var(--line-hi); }
.roadmap__title { margin: .5rem 0 1rem; font: 800 1.35rem/1.15 var(--font-display); letter-spacing: -.02em; }
.roadmap__phase.is-current .roadmap__title { text-shadow: 0 0 22px rgba(0, 240, 255, .55); }
.roadmap__items { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.roadmap__items li {
  position: relative; padding-left: 1.5rem;
  color: var(--muted); font-size: .92rem; line-height: 1.45;
}
.roadmap__items li::before {               /* planned: hollow ring */
  content: ""; position: absolute; left: 0; top: .32em;
  width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--line-hi);
}
.roadmap__items li.is-done { color: var(--text); }
.roadmap__items li.is-done::before {       /* done: lit check */
  content: "✓"; border: 0; width: auto; height: auto; top: 0;
  color: var(--cyan); font-weight: 700; font-size: .95rem; line-height: 1.45;
  text-shadow: 0 0 10px var(--cyan);
}
.note a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }

/* Disclaimer */
.disclaimer { padding-top: 0; }
.disclaimer__panel {
  max-width: 860px;
  padding: clamp(1.75rem, 5vw, 3rem);
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .015);
}
.h2--sm { font-size: clamp(1.6rem, 5vw, 2.6rem); }
.disclaimer__intro { margin-top: 1.25rem; color: var(--text); max-width: 640px; }
.disclaimer__list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .9rem; }
.disclaimer__list li {
  position: relative; padding-left: 1.6rem;
  color: var(--muted); font-size: .95rem; line-height: 1.6;
}
.disclaimer__list li::before {
  content: "⚡"; position: absolute; left: 0; top: .05em; font-size: .85rem;
  filter: drop-shadow(0 0 6px var(--cyan));
}
.disclaimer__list strong { color: var(--text); font-weight: 600; }
.footer__legal a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }

/* Community */
.community__panel {
  position: relative;
  padding: clamp(2rem, 6vw, 4.5rem) clamp(1.25rem, 5vw, 4rem);
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid var(--line);
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(0, 240, 255, .14), transparent 55%),
    radial-gradient(60% 100% at 0% 100%, rgba(43, 123, 255, .12), transparent 60%),
    var(--bg-2);
  overflow: hidden;
}
.community__panel .lead { margin-top: 1.25rem; color: var(--muted); max-width: 520px; }
.community__links { display: grid; gap: .75rem; margin-top: 2.5rem; }
.social {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(3, 5, 7, .6);
  transition: border-color .3s, transform .3s var(--ease), background .3s;
}
.social svg { width: 26px; height: 26px; color: var(--cyan); flex: none; }
.social span { display: grid; flex: 1; }
.social strong { font: 600 1.05rem/1.2 var(--font-display); }
.social small { color: var(--muted); font-size: .85rem; }
.social i { font-style: normal; color: var(--cyan); font-size: 1.3rem; transition: transform .3s var(--ease); }
.social:hover { border-color: var(--line-hi); background: rgba(0, 240, 255, .05); transform: translateY(-2px); }
.social:hover i { transform: translateX(6px); }

.ca-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem;
  margin-top: 1.5rem; padding: 1rem 1.25rem;
  border-radius: var(--radius); border: 1px dashed var(--line-hi);
}
.ca-strip .card__label { margin: 0; color: var(--cyan); }
.ca-strip .ca { flex: 1 1 200px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 3rem 0 2.5rem; }
.footer__inner { display: grid; gap: 1.5rem; justify-items: center; text-align: center; }
.footer__ticker { font: 900 2rem/1 var(--font-display); letter-spacing: -.04em; }
.footer__ticker:hover { color: var(--cyan); }
.footer__social { display: flex; gap: .75rem; }
.footer__social a {
  display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; border: 1px solid var(--line);
  transition: border-color .25s, color .25s, box-shadow .25s;
}
.footer__social svg { width: 18px; height: 18px; }
.footer__social a:hover { color: var(--cyan); border-color: var(--line-hi); box-shadow: 0 0 20px rgba(0, 240, 255, .3); }
.footer__legal { font-size: .75rem; color: var(--muted); max-width: 520px; line-height: 1.7; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 60;
  transform: translate(-50%, calc(100% + 2rem));
  opacity: 0; visibility: hidden;
  padding: .8rem 1.25rem; border-radius: 999px;
  background: var(--cyan); color: #001417; font-weight: 600; font-size: .9rem;
  box-shadow: 0 10px 40px -10px rgba(0, 240, 255, .8);
  transition: transform .35s var(--ease), opacity .35s, visibility .35s;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.tok-grid .reveal:nth-child(2), .gal-grid .reveal:nth-child(2) { transition-delay: .08s; }
.tok-grid .reveal:nth-child(3), .gal-grid .reveal:nth-child(3) { transition-delay: .16s; }
.tok-grid .reveal:nth-child(4), .gal-grid .reveal:nth-child(4) { transition-delay: .24s; }
.tok-grid .reveal:nth-child(5), .gal-grid .reveal:nth-child(5) { transition-delay: .32s; }

/* ==========================================================================
   Glow layer — electric polish (cursor light, neon type, lit borders)
   Mouse-driven bits use --mx/--my (viewport) and --x/--y (per element),
   set by main.js section 6. Touch devices simply don't get the hover light.
   ========================================================================== */

/* Circuit-board backdrop: barely there, lights up around the cursor */
.fx-circuit { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.fx-circuit::before, .fx-circuit::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' fill='none' stroke='%2300f0ff' stroke-width='1.3'%3E%3Cpath d='M0 40h64l22 22h62l22-22h50'/%3E%3Cpath d='M40 0v28M40 220v-34l22-22v-40'/%3E%3Cpath d='M0 150h24l20 20h66'/%3E%3Cpath d='M150 220v-40l22-22h48'/%3E%3Cpath d='M120 0v18l22 22M190 62v50l-20 20h-40'/%3E%3Ccircle cx='62' cy='120' r='4'/%3E%3Ccircle cx='110' cy='170' r='4'/%3E%3Ccircle cx='130' cy='132' r='4'/%3E%3Ccircle cx='142' cy='40' r='3'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}
.fx-circuit::before { opacity: .045; }
.fx-circuit::after {
  opacity: 0;
  -webkit-mask-image: radial-gradient(240px circle at var(--mx, -999px) var(--my, -999px), #000, transparent 72%);
          mask-image: radial-gradient(240px circle at var(--mx, -999px) var(--my, -999px), #000, transparent 72%);
  filter: drop-shadow(0 0 4px #00f0ff);
  transition: opacity .5s;
}
.has-pointer .fx-circuit::after { opacity: .6; }

/* Soft light that follows the cursor */
.fx-cursor {
  position: fixed; inset: 0; z-index: 40; pointer-events: none;
  background: radial-gradient(520px circle at var(--mx, -999px) var(--my, -999px), rgba(0, 240, 255, .07), transparent 62%);
  mix-blend-mode: screen;
  opacity: 0; transition: opacity .5s;
}
.has-pointer .fx-cursor { opacity: 1; }

/* Ambient glow pools behind sections */
.about, .gallery, .pfp {
  background:
    radial-gradient(45% 40% at 88% 18%, rgba(0, 240, 255, .055), transparent 70%),
    radial-gradient(40% 40% at 8% 88%, rgba(43, 123, 255, .06), transparent 70%);
}

/* ---- Type ---------------------------------------------------------------- */

/* Hero title: neon tube — powers on once, then a slow light sweep */
.hero__title {
  color: transparent;
  text-shadow: none;
  background: linear-gradient(100deg, #e9fdff 0 40%, #ffffff 46%, #7ff8ff 50%, #e9fdff 56% 100%);
  background-size: 260% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 0 14px rgba(0, 240, 255, .45)) drop-shadow(0 0 42px rgba(0, 150, 255, .3));
  animation: power-on 1.3s linear .15s both, sweep 7s ease-in-out 2s infinite;
}
.hero__sub em { text-shadow: 0 0 18px rgba(0, 240, 255, .6); }

/* Accent words: living cyan → blue shimmer with a soft glow */
.accent {
  background: linear-gradient(90deg, var(--cyan), var(--blue) 30%, #9ffcff 50%, var(--blue) 70%, var(--cyan));
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 0 16px rgba(0, 200, 255, .35));
  animation: shimmer 6s linear infinite;
}

/* Section headings charge in from the left with a bright edge */
.reveal--charge {
  clip-path: inset(-30% 105% -30% -5%);
  filter: brightness(2.2) blur(3px);
  transition: clip-path 1.1s cubic-bezier(.7, 0, .2, 1), filter 1.3s ease;
}
.reveal--charge.is-in { clip-path: inset(-30% -5% -30% -5%); filter: none; }

.label, .eyebrow, .ca { text-shadow: 0 0 12px rgba(0, 240, 255, .55); }

/* Nav: glowing text + underline that charges out */
.nav__links a { position: relative; padding: .3rem 0; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--cyan); box-shadow: 0 0 10px var(--cyan);
  transform: scaleX(0); transition: transform .3s var(--ease);
}
.nav__links a:hover { color: #eaffff; text-shadow: 0 0 12px rgba(0, 240, 255, .8); }
.nav__links a:hover::after { transform: scaleX(1); }

.marquee__track span { text-shadow: 0 0 18px rgba(0, 240, 255, .35); }
.marquee__track i { filter: drop-shadow(0 0 8px var(--cyan)); }

.footer__ticker { transition: color .3s, text-shadow .3s; }
.footer__ticker:hover { text-shadow: 0 0 24px rgba(0, 240, 255, .8); }

/* ---- Buttons ------------------------------------------------------------- */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn--primary::after {                      /* light sweep on hover */
  content: ""; position: absolute; inset: -2px; z-index: -1;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .75) 50%, transparent 65%);
  transform: translateX(-130%);
  transition: transform .75s var(--ease);
}
.btn--primary:hover::after { transform: translateX(130%); }
.hero__ctas .btn--primary { animation: breathe 3s ease-in-out infinite; }
.btn--ghost:hover {
  border-color: var(--cyan);
  color: #eaffff;
  text-shadow: 0 0 12px rgba(0, 240, 255, .8);
  box-shadow: 0 0 24px -6px rgba(0, 240, 255, .7), inset 0 0 18px -8px rgba(0, 240, 255, .6);
}
.btn--ghost:hover svg { filter: drop-shadow(0 0 6px var(--cyan)); }

/* ---- Lit surfaces: cards, tiles, socials, community panel ---------------- */
.social { position: relative; overflow: hidden; }

/* surface glow under the cursor */
.card::before {
  inset: 0; height: auto; transform: none; border-radius: inherit;
  background: radial-gradient(340px circle at var(--x, 50%) var(--y, 50%), rgba(0, 240, 255, .12), transparent 62%);
  opacity: 0; transition: opacity .35s; pointer-events: none;
}
.card:hover::before { transform: none; opacity: 1; }

/* border that lights up where the cursor is */
.card::after, .tile::after, .social::after, .community__panel::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  border-radius: inherit; padding: 1px;
  background: radial-gradient(280px circle at var(--x, 50%) var(--y, 50%), rgba(120, 250, 255, 1), rgba(0, 200, 255, .35) 30%, transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  box-shadow: none;
  opacity: 0; transition: opacity .35s; pointer-events: none;
}
.card:hover::after, .tile:hover::after, .social:hover::after, .community__panel:hover::after { opacity: 1; box-shadow: none; }

.card:hover { box-shadow: 0 24px 60px -28px rgba(0, 240, 255, .6); }
.card:hover .card__value { text-shadow: 0 0 26px rgba(0, 240, 255, .7); color: #f2feff; }
.card__icon { filter: drop-shadow(0 0 8px rgba(0, 240, 255, .6)); }
.social:hover strong { text-shadow: 0 0 14px rgba(0, 240, 255, .7); }
.social:hover svg { filter: drop-shadow(0 0 8px var(--cyan)); }

/* Gallery: glare that follows the cursor + snappy tilt (set inline by JS) */
.tile.is-in { transition: transform .25s ease-out, opacity .8s var(--ease), box-shadow .3s; }
.tile::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(420px circle at var(--x, 50%) var(--y, 50%), rgba(170, 250, 255, .2), transparent 50%);
  mix-blend-mode: screen;
  opacity: 0; transition: opacity .3s;
}
.tile:hover::before { opacity: 1; }
.tile:hover { box-shadow: 0 30px 70px -30px rgba(0, 240, 255, .55); }

/* PFP Lab: chips and canvas glow */
.chip:hover { text-shadow: 0 0 10px rgba(0, 240, 255, .7); box-shadow: 0 0 18px -6px rgba(0, 240, 255, .6); }
.pfp__canvas { transition: box-shadow .4s; }
.pfp__canvas:hover { box-shadow: 0 0 0 1px var(--cyan), 0 30px 90px -30px rgba(0, 240, 255, .8); }

/* ---- Pup dash: the running loop sprints across the page ------------------ */
.dash {
  position: relative;
  height: clamp(150px, 24vw, 300px);
  overflow: hidden;
  margin: clamp(-2rem, -3vw, -1rem) 0;
}
/* glowing track the pup runs along */
.dash::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 16%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, .5) 20%, rgba(0, 240, 255, .5) 80%, transparent);
  box-shadow: 0 0 14px rgba(0, 240, 255, .6);
}
.dash__runner {
  position: absolute; top: 0; bottom: 0; left: 0;
  aspect-ratio: 1264 / 832;
  transform: translateX(-100%);
}
.dash.is-running .dash__runner { animation: dash 4.8s linear infinite; }
.dash__pup {
  width: 100%; height: 100%; object-fit: cover; display: block;
  /* fade the frame's edges so only the pup + its lightning show */
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 55% 50%, #000 55%, transparent 100%);
          mask-image: radial-gradient(ellipse 50% 50% at 55% 50%, #000 55%, transparent 100%);
}
@keyframes dash { from { transform: translateX(-100%); } to { transform: translateX(100vw); } }

/* Glow keyframes */
@keyframes power-on {
  0%   { opacity: 0; }
  8%   { opacity: .9; }
  12%  { opacity: .1; }
  20%  { opacity: 1; }
  24%  { opacity: .35; }
  34%, 100% { opacity: 1; }
}
@keyframes sweep   { 0%, 55% { background-position: 100% 0; } 85%, 100% { background-position: 0% 0; } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 240, 255, .35), 0 10px 40px -10px rgba(0, 240, 255, .7); }
  50%      { box-shadow: 0 0 0 8px rgba(0, 240, 255, 0), 0 14px 56px -8px rgba(0, 240, 255, .95); }
}

/* ---- Keyframes -------------------------------------------------------- */
@keyframes pulse   { 50% { opacity: .35; } }
@keyframes charge  { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes run     { from { transform: translateY(0); } to { transform: translateY(-6px); } }
@keyframes flow    { to { stroke-dashoffset: -32; } }
@keyframes blink   { 0%, 92%, 100% { opacity: 1; } 95% { opacity: .2; } }
@keyframes speed   { from { transform: translateX(60px); opacity: 0; } 30% { opacity: 1; } to { transform: translateX(-120px); opacity: 0; } }
@keyframes strike  { 0%, 70%, 100% { opacity: 0; } 72%, 76% { opacity: 1; } 74% { opacity: .2; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes scroll  { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(12px); opacity: 0; } }

/* ---- Breakpoints ------------------------------------------------------ */
@media (min-width: 640px) {
  .hero__ctas .btn--primary { flex: 0 0 auto; }
  .gal-grid { grid-auto-rows: 220px; }
  .community__links { grid-template-columns: 1fr 1fr; }
  .card--ca { flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (min-width: 900px) {
  :root { --gutter: 32px; }
  .nav__links { display: flex; }
  .hero__inner { grid-template-columns: 1fr 1.15fr; align-items: center; gap: 1rem; }
  .hero__title { font-size: clamp(4rem, 6.2vw, 7rem); }
  .hero__art.is-missing { margin-right: -6vw; }
  .hero:has(.hero__art:not(.is-missing)) { align-items: center; }
  /* Desktop: the film is a large panel on the right whose edges dissolve into
     the page (its background is near-black), so it isn't over-enlarged. */
  .hero__img, .hero__video {
    inset: auto; right: 0; top: 50%;
    transform: translateY(-46%);
    width: min(76%, 1264px); height: auto; aspect-ratio: 1264 / 832;
    -webkit-mask-image: var(--film-mask-x), var(--film-mask-y);
            mask-image: var(--film-mask-x), var(--film-mask-y);
    -webkit-mask-composite: source-in;
            mask-composite: intersect;
  }
  .hero__art:not(.is-missing)::after {
    background: linear-gradient(90deg, var(--bg) 0%, rgba(3, 5, 7, .7) 28%, transparent 50%);
  }
  .about__grid { grid-template-columns: .9fr 1.1fr; align-items: center; gap: 5rem; }
  .tok-grid { grid-template-columns: repeat(4, 1fr); }
  .card { padding: 2rem 1.5rem; }
  .gal-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; }
  .pfp__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 3.5rem; align-items: start; }
  /* roadmap goes horizontal: rail runs across the top through the nodes */
  .roadmap { grid-template-columns: repeat(4, 1fr); padding: 2.25rem 0 0; }
  .roadmap::before {
    left: 0; right: 0; top: 5px; bottom: auto; width: auto; height: 2px;
    background: linear-gradient(90deg, var(--cyan), rgba(43, 123, 255, .5) 35%, var(--line) 75%, transparent);
  }
  .roadmap__node { left: 1.5rem; top: calc(-2.25rem - 1px); }
}

/* ---- Reduced motion --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .dash__runner { transform: translateX(calc(50vw - 50%)); }   /* still pup, centred */
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .cat__bolt { opacity: 1; }
}
