:root {
  --black: #07070a;
  --black-2: #0d0d12;
  --black-3: #15151d;
  --paper: #f2efe8;
  --white: #fffef8;
  --muted: #aaa5b5;
  --purple: #7a36ff;
  --purple-2: #9b6aff;
  --purple-dark: #2d1268;
  --lime: #dcff39;
  --lime-2: #b9e900;
  --pink: #ff65ba;
  --line: rgba(255, 255, 255, .17);
  --ink-line: rgba(8, 8, 12, .18);
  --display: Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Narrow", sans-serif;
  --body: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --hand: "Comic Sans MS", "Bradley Hand", "Segoe Print", cursive;
  --max: 1520px;
}

* { box-sizing: border-box; }
html { max-width: 100%; overflow-x: hidden; scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--white);
  background: var(--black);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 9999; top: 12px; left: 12px; padding: 12px 16px; color: var(--black); background: var(--lime); transform: translateY(-180%); }
.skip-link:focus { transform: none; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--lime); outline-offset: 4px; }

.site-header {
  position: absolute;
  z-index: 100;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 34px;
  min-height: 86px;
  padding: 12px clamp(20px, 4vw, 72px);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  background: linear-gradient(180deg, rgba(5, 5, 8, .9), rgba(5, 5, 8, .25));
  backdrop-filter: blur(13px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; width: max-content; text-decoration: none; }
.brand img { width: 52px; height: 52px; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; box-shadow: 0 0 0 4px rgba(122,54,255,.25), 0 0 28px rgba(122,54,255,.55); }
.brand span { display: flex; flex-direction: column; }
.brand b { font-family: var(--display); font-size: 28px; font-weight: 900; letter-spacing: .02em; line-height: .85; }
.brand small { margin-top: 7px; color: var(--purple-2); font-size: 9px; font-weight: 900; letter-spacing: .12em; }
nav { display: flex; align-items: center; gap: 36px; }
nav a { color: #d9d6df; font-size: 12px; font-weight: 850; text-decoration: none; text-transform: uppercase; letter-spacing: .06em; }
nav a:hover { color: var(--lime); }
.header-action { justify-self: end; min-height: 44px !important; padding-inline: 18px !important; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 56px;
  padding: 0 24px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .065em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}
.button:hover { transform: translateY(-3px); }
.button-lime { color: #111206; border-color: var(--lime); background: var(--lime); box-shadow: 0 0 0 0 rgba(220,255,57,.15), 0 12px 34px rgba(220,255,57,.16); }
.button-lime:hover { background: #edff8a; box-shadow: 0 0 0 7px rgba(220,255,57,.1), 0 15px 40px rgba(220,255,57,.2); }
.button-ghost { color: var(--white); background: rgba(7,7,10,.34); backdrop-filter: blur(9px); }
.button-ghost:hover { border-color: var(--purple-2); background: rgba(122,54,255,.2); }

/* Hero */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(520px, .92fr);
  align-items: center;
  gap: clamp(30px, 5vw, 84px);
  min-height: 100vh;
  padding: clamp(145px, 15vh, 185px) clamp(22px, 5.5vw, 96px) clamp(90px, 10vh, 130px);
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(5,5,8,.99) 0%, rgba(5,5,8,.93) 36%, rgba(5,5,8,.28) 66%, rgba(5,5,8,.12) 100%),
    url("./assets/swirly-whirl-v2.webp") center / cover no-repeat,
    var(--black);
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 20% 18%, rgba(122,54,255,.18), transparent 28%),
    linear-gradient(transparent 98%, rgba(255,255,255,.035) 98%),
    linear-gradient(90deg, transparent 98%, rgba(255,255,255,.035) 98%);
  background-size: auto, 52px 52px, 52px 52px;
  mask-image: linear-gradient(90deg, #000, transparent 72%);
}
.hero-noise { position: absolute; z-index: 0; inset: 0; pointer-events: none; opacity: .13; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.38'/%3E%3C/svg%3E"); mix-blend-mode: screen; }
.hero-copy, .hero-stage { position: relative; z-index: 2; }
.signal { display: flex; align-items: center; gap: 11px; margin: 0 0 24px; color: #d3c6f7; font-size: 10px; font-weight: 950; letter-spacing: .16em; }
.signal i { flex: 0 0 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px rgba(220,255,57,.11), 0 0 20px var(--lime); }
.signal-lime { color: var(--lime); }
h1, h2 { margin: 0; font-family: var(--display); font-weight: 900; letter-spacing: .005em; text-transform: uppercase; }
h1 { max-width: 860px; font-size: clamp(68px, 8.2vw, 132px); line-height: .79; }
h1 em { color: var(--purple-2); font-style: normal; text-shadow: 0 0 34px rgba(122,54,255,.45); }
.hero-lede { max-width: 720px; margin: 33px 0 0; color: #c4c0ca; font-size: clamp(16px, 1.25vw, 20px); line-height: 1.67; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 32px; }
.hero-ca { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; max-width: 760px; margin-top: 38px; padding: 13px 15px; border-block: 1px solid rgba(255,255,255,.16); }
.hero-ca span { color: var(--purple-2); font-size: 9px; font-weight: 950; letter-spacing: .12em; }
.hero-ca code { min-width: 0; overflow: hidden; color: #d4d1d8; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.hero-ca button { padding: 0; border: 0; color: var(--lime); background: transparent; font-size: 10px; font-weight: 950; cursor: pointer; }

.hero-stage {
  min-height: min(720px, 70vh);
  transform: perspective(1100px) rotateX(calc(var(--my, 0) * -1deg)) rotateY(calc(var(--mx, 0) * 1deg));
  transform-style: preserve-3d;
  transition: transform .12s ease-out;
}
.hero-character {
  position: absolute;
  z-index: 4;
  top: 48%;
  left: 51%;
  width: min(460px, 36vw);
  max-height: 84%;
  object-fit: contain;
  filter: drop-shadow(0 28px 25px rgba(0,0,0,.6)) drop-shadow(0 0 30px rgba(168,111,255,.32));
  transform: translate(-50%, -50%) translateZ(42px);
  animation: character-float 4.8s ease-in-out infinite;
}
@keyframes character-float { 50% { transform: translate(-50%, calc(-50% - 14px)) translateZ(42px) rotate(1.2deg); } }
.orbit-line { position: absolute; z-index: 2; top: 48%; left: 51%; border: 1px solid rgba(255,255,255,.42); border-radius: 50%; transform: translate(-50%, -50%) rotate(-14deg); }
.orbit-line::after { content: "✦"; position: absolute; top: 46%; left: -10px; color: var(--lime); font-size: 22px; }
.orbit-a { width: 93%; height: 44%; animation: orbit 15s linear infinite; }
.orbit-b { width: 68%; height: 90%; border-color: rgba(122,54,255,.6); transform: translate(-50%, -50%) rotate(24deg); animation: orbit-b 19s linear infinite; }
@keyframes orbit { to { transform: translate(-50%, -50%) rotate(346deg); } }
@keyframes orbit-b { to { transform: translate(-50%, -50%) rotate(384deg); } }
.doodle-note { position: absolute; z-index: 5; margin: 0; color: var(--lime); font-family: var(--hand); font-size: clamp(17px, 1.5vw, 25px); font-weight: 800; line-height: 1.15; text-shadow: 0 2px 9px #000; transform: rotate(-7deg) translateZ(60px); }
.doodle-note::after { content: "↘"; display: block; margin-left: 70%; color: var(--white); font-size: 32px; }
.note-top { top: 2%; right: 4%; }
.note-left { top: 23%; left: -2%; color: var(--white); transform: rotate(5deg) translateZ(60px); }
.note-left::after { content: "→"; margin-left: 80%; color: var(--lime); }
.archive-stamp { position: absolute; z-index: 5; right: 0; bottom: 17%; display: flex; flex-direction: column; align-items: center; padding: 13px 20px; border: 3px solid var(--pink); color: var(--pink); transform: rotate(9deg) translateZ(52px); }
.archive-stamp b { font-family: var(--display); font-size: 29px; letter-spacing: .05em; line-height: 1; }
.archive-stamp span { margin-top: 4px; font-size: 8px; font-weight: 950; letter-spacing: .14em; }
.wake-card { position: absolute; z-index: 7; bottom: 0; left: 3%; width: 310px; padding: 19px; border: 1px solid var(--lime); color: var(--black); background: var(--lime); box-shadow: 12px 12px 0 rgba(122,54,255,.6); transform: rotate(-3deg) translateZ(74px); }
.wake-card > span { font-family: ui-monospace, monospace; font-size: 10px; }
.wake-card > b { display: block; margin: 8px 0 14px; font-family: var(--display); font-size: 25px; letter-spacing: .035em; }
.wake-card button { width: 100%; min-height: 36px; border: 1px solid var(--black); color: var(--white); background: var(--black); font-size: 10px; font-weight: 950; cursor: pointer; }
.reveal { animation: reveal-up .75s both; }
.reveal-late { animation: reveal-up .75s .12s both; }
@keyframes reveal-up { from { opacity: 0; transform: translateY(28px); } }

.ticker { position: relative; z-index: 4; overflow: hidden; border-block: 1px solid var(--lime); color: var(--black); background: var(--lime); transform: rotate(-.5deg) scale(1.01); }
.ticker div { display: flex; align-items: center; width: max-content; min-height: 58px; animation: ticker-move 28s linear infinite; }
.ticker span { font-family: var(--display); font-size: 20px; letter-spacing: .04em; }
.ticker i { margin: 0 34px; color: var(--purple-dark); font-size: 22px; font-style: normal; }
@keyframes ticker-move { to { transform: translateX(-42%); } }

.section { position: relative; width: min(var(--max), 100%); margin: 0 auto; padding: clamp(95px, 10vw, 155px) clamp(20px, 5.5vw, 88px); }
.section-kicker { display: flex; align-items: center; gap: 17px; margin-bottom: 58px; }
.section-kicker span { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid currentColor; border-radius: 50%; font-size: 10px; font-weight: 950; }
.section-kicker p { margin: 0; font-size: 10px; font-weight: 950; letter-spacing: .16em; }
.section-kicker::after { content: ""; flex: 1; height: 1px; margin-left: 12px; background: currentColor; opacity: .22; }
.section-kicker.light { color: var(--white); }

/* Origin */
.origin { color: var(--black); background: var(--paper); }
.origin::before { content: ""; position: absolute; z-index: -1; inset: 0 -100vw; background: var(--paper); }
.origin-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(460px, .8fr); gap: clamp(55px, 8vw, 120px); align-items: start; }
.origin .signal { color: var(--purple-dark); }
.origin-copy h2, .guide-heading h2, .sources-heading h2 { font-size: clamp(62px, 7vw, 110px); line-height: .83; }
.big-copy { max-width: 760px; margin: 32px 0 40px; color: #39363f; font-size: clamp(18px, 1.55vw, 24px); line-height: 1.55; }
.fact-stack { display: grid; border-top: 1px solid var(--ink-line); }
.fact-stack article { display: grid; grid-template-columns: 48px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--ink-line); }
.fact-stack article > span { color: var(--purple); font-family: ui-monospace, monospace; font-size: 11px; font-weight: 900; }
.fact-stack b { display: block; font-size: 17px; }
.fact-stack p { margin: 5px 0 0; color: #5b5761; font-size: 14px; line-height: 1.55; }
.receipt-paper { position: relative; padding: 34px 30px 27px; color: #16151a; background: #fffdf6; box-shadow: 18px 20px 0 #b1ff40, 0 30px 70px rgba(0,0,0,.16); transform: rotate(2.2deg); }
.receipt-paper::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .26; background: repeating-linear-gradient(transparent 0 31px, #8c9bd4 31px 32px); }
.receipt-paper::after { content: ""; position: absolute; top: 0; bottom: 0; left: 48px; width: 1px; background: rgba(244,92,108,.4); }
.paper-tape { position: absolute; z-index: 2; top: -18px; left: 50%; width: 120px; height: 36px; background: rgba(220,255,57,.74); transform: translateX(-50%) rotate(-3deg); }
.paper-heading, .receipt-paper > img, .receipt-paper blockquote, .paper-footer { position: relative; z-index: 1; }
.paper-heading { display: flex; justify-content: space-between; gap: 18px; padding-left: 35px; }
.paper-heading span { color: var(--purple); font-size: 9px; font-weight: 950; letter-spacing: .12em; }
.paper-heading b { font-family: ui-monospace, monospace; font-size: 9px; }
.receipt-paper > img { width: 100%; margin: 28px 0 24px; border: 2px solid var(--black); filter: saturate(.92) contrast(1.05); }
.receipt-paper blockquote { margin: 0; padding-left: 35px; font-family: var(--hand); font-size: clamp(17px, 1.45vw, 23px); font-weight: 700; line-height: 1.45; }
.paper-footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 27px; padding: 17px 0 0 35px; border-top: 1px dashed rgba(0,0,0,.4); font-size: 9px; font-weight: 950; letter-spacing: .08em; }
.paper-footer a { color: var(--purple); }

/* Abilities */
.abilities { position: relative; isolation: isolate; overflow: hidden; background: #0a0711; }
.abilities::before { content: ""; position: absolute; z-index: -1; inset: 0; opacity: .62; background: radial-gradient(circle at 70% 15%, rgba(122,54,255,.43), transparent 35%), url("./assets/swirly-whirl-v2.webp") center / cover no-repeat; }
.abilities::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(7,7,10,.97), rgba(7,7,10,.72) 55%, rgba(7,7,10,.46)); }
.abilities-heading, .assistant-heading, .guide-heading, .timeline-title, .sources-heading { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr); align-items: end; gap: clamp(30px, 7vw, 110px); margin-bottom: 65px; }
.abilities-heading h2, .assistant-heading h2, .timeline-title h2 { font-size: clamp(62px, 7.2vw, 112px); line-height: .83; }
.abilities-heading h2 em { color: var(--lime); font-style: normal; }
.abilities-heading > p, .assistant-heading > p, .guide-heading > p, .timeline-title > p, .sources-heading > p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.65; }
.ability-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.ability-card { position: relative; grid-column: span 2; display: flex; flex-direction: column; min-height: 360px; padding: 24px; border: 1px solid rgba(255,255,255,.2); overflow: hidden; color: var(--black); text-align: left; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.ability-card:nth-child(4), .ability-card:nth-child(5) { grid-column: span 3; min-height: 310px; }
.ability-card:hover { z-index: 2; transform: translateY(-9px) rotate(-1deg); box-shadow: 0 25px 55px rgba(0,0,0,.35); }
.ability-number { font-family: ui-monospace, monospace; font-size: 10px; }
.ability-glyph { display: grid; place-items: center; width: 76px; height: 76px; margin: 42px 0 31px; border: 2px solid currentColor; border-radius: 50%; font-family: var(--display); font-size: 40px; }
.ability-card small { font-size: 9px; font-weight: 950; letter-spacing: .14em; }
.ability-card b { max-width: 310px; margin-top: 8px; font-size: 21px; line-height: 1.2; }
.ability-card i { margin-top: auto; padding-top: 28px; font-size: 10px; font-style: normal; font-weight: 950; }
.card-lime { background: var(--lime); }
.card-violet { color: var(--white); background: var(--purple); }
.card-paper { background: var(--paper); transform: rotate(1deg); }
.card-black { color: var(--white); background: rgba(7,7,10,.88); }
.card-white { background: var(--white); }

/* Assistant */
.assistant-section { position: relative; isolation: isolate; overflow: hidden; border-top: 1px solid rgba(255,255,255,.13); background: #121019; }
.assistant-section::before { content: ""; position: absolute; z-index: -1; inset: 0; opacity: .22; background: linear-gradient(90deg, transparent 98%, rgba(255,255,255,.12) 98%), linear-gradient(transparent 98%, rgba(255,255,255,.12) 98%); background-size: 40px 40px; }
.assistant-section::after { content: ""; position: absolute; z-index: -1; top: -20%; right: -15%; width: 600px; height: 600px; border: 130px solid rgba(122,54,255,.12); border-radius: 50%; }
.assistant-heading h2 { color: var(--purple-2); }
.assistant-app { display: grid; grid-template-columns: 340px minmax(0, 1fr); min-height: 690px; overflow: hidden; border: 1px solid rgba(255,255,255,.25); background: rgba(6,6,9,.92); box-shadow: 0 35px 100px rgba(0,0,0,.45), 14px 14px 0 rgba(122,54,255,.55); }
.assistant-sidebar { display: flex; flex-direction: column; padding: 27px; border-right: 1px solid rgba(255,255,255,.16); background: linear-gradient(180deg, rgba(122,54,255,.17), transparent 50%); }
.assistant-profile { display: flex; align-items: center; gap: 14px; }
.assistant-profile img { width: 74px; height: 74px; border: 1px solid var(--lime); border-radius: 50%; box-shadow: 0 0 0 5px rgba(220,255,57,.08); }
.assistant-profile > div { display: flex; flex-direction: column; min-width: 0; }
.assistant-profile b { font-family: var(--display); font-size: 27px; letter-spacing: .04em; line-height: 1; }
.assistant-profile span { display: flex; align-items: center; gap: 7px; margin-top: 6px; color: var(--lime); font-size: 9px; font-weight: 950; letter-spacing: .11em; }
.assistant-profile span i, .live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 13px var(--lime); }
.assistant-profile small { margin-top: 5px; color: #807b8a; font-size: 8px; font-weight: 900; letter-spacing: .08em; }
.profile-note { margin: 18px 0 24px; color: #9893a1; font-family: var(--hand); font-size: 13px; line-height: 1.45; transform: rotate(-1deg); }
.quick-actions { display: grid; border-top: 1px solid var(--line); }
.quick-actions button { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 9px; min-height: 60px; padding: 0; border: 0; border-bottom: 1px solid var(--line); color: var(--white); background: transparent; text-align: left; cursor: pointer; }
.quick-actions button:hover { color: var(--lime); }
.quick-actions span { color: var(--purple-2); font-family: ui-monospace, monospace; font-size: 9px; }
.quick-actions b { font-size: 13px; }
.quick-actions i { color: var(--lime); font-style: normal; }
.wallet-button { display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 12px; width: 100%; min-height: 65px; margin-top: auto; padding: 10px 13px; border: 1px solid var(--lime); color: var(--black); background: var(--lime); text-align: left; cursor: pointer; }
.wallet-icon { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--black); border-radius: 50%; font-family: var(--display); font-size: 19px; }
.wallet-button > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.wallet-button b { font-size: 12px; }
.wallet-button small { margin-top: 2px; font-size: 9px; }
.wallet-button.connected { color: var(--white); border-color: var(--purple-2); background: var(--purple); }
.wallet-button.connecting { opacity: .7; }

.chat-panel { display: grid; grid-template-rows: auto minmax(310px, 1fr) auto auto auto; min-width: 0; }
.chat-header { display: flex; align-items: center; justify-content: space-between; min-height: 66px; padding: 0 24px; border-bottom: 1px solid var(--line); }
.chat-header > div { display: flex; align-items: center; gap: 10px; }
.chat-header b { font-size: 11px; letter-spacing: .1em; }
.chat-header small { color: #77727e; font-size: 8px; letter-spacing: .09em; }
.chat-header button { padding: 7px 10px; border: 1px solid rgba(255,255,255,.22); color: #b5b0bc; background: transparent; font-size: 9px; font-weight: 900; cursor: pointer; }
.chat-log { min-height: 0; max-height: 540px; padding: 27px; overflow-y: auto; overscroll-behavior: contain; scroll-behavior: smooth; }
.chat-log::-webkit-scrollbar { width: 7px; }
.chat-log::-webkit-scrollbar-thumb { background: var(--purple); }
.message { display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: start; gap: 12px; margin-bottom: 23px; }
.message > div > span { display: block; margin: 0 0 5px 3px; color: #88838e; font-size: 8px; font-weight: 950; letter-spacing: .1em; }
.message-user { grid-template-columns: minmax(0, 1fr) 42px; }
.message-user > div:first-child { grid-column: 2; }
.message-user > div:last-child { grid-column: 1; grid-row: 1; justify-self: end; }
.message-user > div:last-child > span { text-align: right; }
.chat-avatar, .user-avatar { width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; object-fit: cover; }
.user-avatar { display: grid; place-items: center; color: var(--black); background: var(--lime); font-size: 8px; font-weight: 950; }
.message-bubble { width: fit-content; max-width: min(710px, 94%); padding: 14px 16px; border: 1px solid rgba(255,255,255,.16); color: #dedbe3; background: #15131c; font-size: 15px; line-height: 1.58; }
.message-swirly .message-bubble { border-left: 3px solid var(--purple-2); }
.message-user .message-bubble { border-color: rgba(220,255,57,.38); color: var(--black); background: var(--lime); }
.message-bubble code { display: inline-block; max-width: 100%; overflow-wrap: anywhere; color: var(--lime); font-family: ui-monospace, monospace; font-size: .85em; }
.message-user .message-bubble code { color: var(--black); }
.message-bubble p { margin: 10px 0 0; }
.message-bubble a { color: var(--lime); text-underline-offset: 4px; }
.suggested-prompts { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 24px 13px; }
.suggested-prompts button, .amount-options button { min-height: 34px; padding: 0 13px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: #b9b4c0; background: rgba(255,255,255,.04); font-size: 10px; cursor: pointer; }
.suggested-prompts button:hover, .amount-options button:hover { color: var(--black); border-color: var(--lime); background: var(--lime); }
.prompt-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 0 24px; }
.prompt-form input { min-width: 0; height: 56px; padding: 0 18px; border: 1px solid rgba(255,255,255,.22); border-radius: 0; outline: none; color: var(--white); background: rgba(255,255,255,.045); font-size: 14px; }
.prompt-form input:focus { border-color: var(--purple-2); box-shadow: inset 3px 0 var(--purple-2); }
.prompt-form input::placeholder { color: #77727d; }
.prompt-form button { min-width: 103px; border: 1px solid var(--lime); color: var(--black); background: var(--lime); font-size: 10px; font-weight: 950; cursor: pointer; }
.chat-footnote { margin: 10px 24px 17px; color: #716c77; font-size: 9px; }
.amount-options { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.trade-preview, .trade-review { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 14px 0; background: rgba(255,255,255,.13); }
.trade-preview > span, .trade-review > div { display: flex; flex-direction: column; min-width: 0; padding: 12px; background: #0e0d13; }
.trade-preview small, .trade-review small { color: #85808b; font-size: 8px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.trade-preview b, .trade-review b { margin-top: 4px; overflow-wrap: anywhere; color: var(--white); font-size: 11px; }
.trade-confirmation-note { color: #aaa5af; font-size: 12px; }
.message-action { min-height: 43px; padding: 0 14px; border: 1px solid var(--lime); color: var(--black); background: var(--lime); font-size: 10px; font-weight: 950; cursor: pointer; }
.message-action:disabled { opacity: .55; cursor: wait; }
.trade-market-link { display: inline-block; margin-top: 12px; font-size: 10px; font-weight: 900; }

/* Field guide */
.field-guide { color: var(--black); background: var(--paper); }
.field-guide::before { content: ""; position: absolute; z-index: -1; inset: 0 -100vw; background: var(--paper); }
.guide-heading h2 em { color: var(--purple); font-style: normal; }
.guide-heading > p, .sources-heading > p { color: #5f5b65; }
.arc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.arc-card { position: relative; display: flex; flex-direction: column; min-height: 470px; padding: 28px; border: 1px solid var(--black); overflow: hidden; }
.arc-card .card-index { font-family: ui-monospace, monospace; font-size: 9px; font-weight: 900; }
.arc-card .card-icon { display: grid; place-items: center; width: 78px; height: 78px; margin: 65px 0 35px; border: 2px solid currentColor; border-radius: 50%; font-family: var(--display); font-size: 37px; }
.arc-card small { font-size: 9px; font-weight: 950; letter-spacing: .14em; }
.arc-card h3 { margin: 11px 0 12px; font-family: var(--display); font-size: 37px; font-weight: 900; letter-spacing: .02em; line-height: .95; text-transform: uppercase; }
.arc-card p { margin: 0 0 25px; font-size: 15px; line-height: 1.55; }
.arc-card a, .arc-card button { width: max-content; margin-top: auto; padding: 0; border: 0; color: inherit; background: transparent; font-size: 10px; font-weight: 950; text-decoration: underline; text-underline-offset: 5px; cursor: pointer; }
.arc-card-purple { color: var(--white); background: var(--purple); }
.arc-card-purple p { color: #eee8ff; }
.arc-card-lime { background: var(--lime); transform: translateY(30px); }
.arc-card-paper { background: var(--white); }
.independent-label { width: max-content; max-width: 100%; margin-top: 18px; padding: 6px 8px; border: 1px solid currentColor; font-size: 8px; font-weight: 950; letter-spacing: .07em; }

/* Timeline */
.timeline-section { position: relative; isolation: isolate; overflow: hidden; background: #0a0711; }
.timeline-section::before { content: ""; position: absolute; z-index: -1; inset: 0; opacity: .38; background: linear-gradient(90deg, #08070b 0 37%, transparent 70%), url("./assets/swirly-whirl-v2.webp") center / cover no-repeat; }
.timeline-title h2 { color: var(--white); }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.timeline article { position: relative; min-height: 330px; padding: 28px 25px; border-right: 1px solid var(--line); background: rgba(7,7,10,.5); backdrop-filter: blur(8px); }
.timeline article:last-child { border-right: 0; }
.timeline article::before { content: ""; position: absolute; top: -6px; left: 25px; width: 11px; height: 11px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 16px var(--lime); }
.timeline span { display: block; min-height: 90px; color: var(--purple-2); font-family: var(--display); font-size: clamp(35px, 3.6vw, 55px); letter-spacing: .02em; line-height: .9; }
.timeline b { display: block; color: var(--lime); font-size: 10px; letter-spacing: .1em; }
.timeline p { margin: 17px 0 0; color: #aaa5b1; font-size: 14px; line-height: 1.6; }

/* Token + sources */
.token-section { color: var(--white); }
.token-card { display: grid; grid-template-columns: minmax(360px, .78fr) minmax(0, 1.22fr); min-height: 620px; border: 1px solid rgba(255,255,255,.22); overflow: hidden; background: #0d0c12; box-shadow: 18px 18px 0 rgba(122,54,255,.5); }
.token-art { position: relative; display: grid; place-items: center; min-height: 550px; overflow: hidden; background: radial-gradient(circle, rgba(122,54,255,.5), transparent 55%), #08070b; }
.token-art::before { content: ""; position: absolute; inset: 0; opacity: .45; background: url("./assets/swirly-whirl-v2.webp") center / cover no-repeat; }
.token-art img { position: relative; z-index: 2; width: min(330px, 70%); border: 2px solid var(--white); border-radius: 50%; box-shadow: 0 0 0 13px rgba(255,255,255,.06), 0 0 70px rgba(122,54,255,.7); }
.token-art > span { position: absolute; z-index: 3; right: 4%; bottom: 6%; padding: 10px; color: var(--black); background: var(--lime); font-family: var(--display); font-size: 19px; letter-spacing: .03em; line-height: 1; transform: rotate(-4deg); }
.token-orbit { position: absolute; z-index: 1; width: 82%; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; animation: orbit 14s linear infinite; }
.token-orbit::after { content: "✦"; position: absolute; top: 48%; left: -9px; color: var(--lime); font-size: 20px; }
.token-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(40px, 6vw, 90px); }
.token-copy h2 { color: var(--purple-2); font-size: clamp(90px, 11vw, 165px); line-height: .8; }
.token-copy > p:not(.signal) { max-width: 700px; margin: 28px 0 36px; color: #b9b4c0; font-size: 18px; line-height: 1.6; }
.contract-box { display: grid; grid-template-columns: 1fr auto; gap: 9px 20px; max-width: 790px; padding: 17px 0; border-block: 1px solid var(--line); }
.contract-box span { grid-column: 1 / -1; color: var(--purple-2); font-size: 9px; font-weight: 950; letter-spacing: .12em; }
.contract-box code { min-width: 0; overflow: hidden; color: #d8d4dc; font-family: ui-monospace, monospace; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.contract-box button { padding: 0; border: 0; color: var(--lime); background: transparent; font-size: 10px; font-weight: 950; cursor: pointer; }
.token-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.sources { color: var(--black); background: var(--paper); }
.sources::before { content: ""; position: absolute; z-index: -1; inset: 0 -100vw; background: var(--paper); }
.sources-heading { margin-bottom: 50px; }
.source-list { display: grid; border-top: 1px solid var(--ink-line); }
.source-list a { display: grid; grid-template-columns: 55px 1fr auto; align-items: center; gap: 20px; min-height: 91px; border-bottom: 1px solid var(--ink-line); text-decoration: none; transition: padding .18s ease, color .18s ease; }
.source-list a:hover { padding-inline: 12px; color: var(--purple); }
.source-list > a > span { font-family: ui-monospace, monospace; font-size: 10px; }
.source-list div { display: flex; flex-direction: column; }
.source-list b { font-size: 16px; }
.source-list small { margin-top: 4px; color: #6b6770; font-size: 11px; }
.source-list i { font-style: normal; }

/* Floating helper, dialog, footer */
.floating-swirly { position: fixed; z-index: 300; right: 24px; bottom: 24px; display: flex; align-items: center; gap: 12px; padding: 8px; border: 1px solid var(--lime); border-radius: 999px; color: var(--black); background: var(--lime); box-shadow: 0 14px 45px rgba(0,0,0,.4), 0 0 28px rgba(220,255,57,.18); cursor: pointer; }
.floating-swirly img { width: 52px; height: 52px; border: 1px solid var(--black); border-radius: 50%; }
.floating-swirly span { max-width: 250px; padding-left: 10px; font-family: var(--hand); font-size: 12px; font-weight: 700; line-height: 1.25; }
.floating-swirly.active { animation: helper-pop .5s ease both; }
@keyframes helper-pop { 45% { transform: translateY(-11px) rotate(-2deg) scale(1.03); } }
.dialog-backdrop { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(3,3,5,.84); backdrop-filter: blur(8px); }
.wallet-dialog { position: relative; width: min(500px, 100%); padding: 34px; border: 1px solid var(--lime); color: var(--white); background: #111018; box-shadow: 14px 14px 0 rgba(122,54,255,.7); }
.wallet-dialog > img { width: 78px; height: 78px; margin-bottom: 18px; border: 1px solid var(--lime); border-radius: 50%; }
.wallet-dialog h3 { margin: 0; font-family: var(--display); font-size: 38px; letter-spacing: .02em; line-height: 1; }
.wallet-dialog p { color: #b6b1bc; font-size: 14px; line-height: 1.6; }
.dialog-close { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border: 1px solid var(--line); color: var(--white); background: transparent; font-size: 24px; cursor: pointer; }
.wallet-dialog-actions { display: grid; gap: 8px; margin-top: 20px; }
.wallet-dialog-actions a { padding: 13px; border: 1px solid var(--lime); color: var(--black); background: var(--lime); font-size: 10px; font-weight: 950; text-align: center; text-decoration: none; }
footer { display: grid; grid-template-columns: 1fr minmax(260px, 1fr) 1fr; align-items: center; gap: 34px; min-height: 150px; padding: 30px clamp(20px, 5vw, 80px); border-top: 1px solid var(--line); background: #050507; }
.footer-brand { display: inline-flex; align-items: center; gap: 11px; width: max-content; text-decoration: none; }
.footer-brand img { width: 47px; height: 47px; border-radius: 50%; }
.footer-brand span { display: flex; flex-direction: column; }
.footer-brand b { font-family: var(--display); font-size: 23px; line-height: 1; }
.footer-brand small { margin-top: 4px; color: var(--purple-2); font-size: 8px; font-weight: 900; letter-spacing: .1em; }
footer p { margin: 0; color: #716d76; font-size: 10px; line-height: 1.55; text-align: center; }
footer > a:last-child { justify-self: end; color: var(--lime); font-size: 10px; font-weight: 950; }

@media (max-width: 1180px) {
  .site-header { grid-template-columns: 1fr auto; }
  nav { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(420px, .82fr); }
  .origin-grid { grid-template-columns: 1fr 460px; gap: 55px; }
  .ability-card { grid-column: span 3; }
  .ability-card:last-child { grid-column: 2 / span 4; }
  .arc-grid { grid-template-columns: 1fr 1fr; }
  .arc-card:last-child { grid-column: 1 / -1; min-height: 370px; }
  .arc-card-lime { transform: none; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .timeline article:nth-child(2) { border-right: 0; }
  .timeline article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 880px) {
  .site-header { min-height: 72px; padding: 9px 17px; }
  .brand img { width: 45px; height: 45px; }
  .brand b { font-size: 24px; }
  .brand small { display: none; }
  .header-action { min-height: 40px !important; padding-inline: 14px !important; font-size: 10px; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 125px 20px 75px; background: linear-gradient(180deg, rgba(5,5,8,.96) 0 38%, rgba(5,5,8,.32) 68%, rgba(5,5,8,.72)), url("./assets/swirly-whirl-v2.webp") center / cover no-repeat; }
  .hero-copy { max-width: 750px; }
  .hero-stage { min-height: 610px; }
  .hero-character { width: min(480px, 68vw); }
  .origin-grid { grid-template-columns: 1fr; }
  .receipt-paper { width: min(620px, 96%); justify-self: center; }
  .abilities-heading, .assistant-heading, .guide-heading, .timeline-title, .sources-heading { grid-template-columns: 1fr; align-items: start; gap: 28px; }
  .assistant-app { grid-template-columns: 1fr; }
  .assistant-sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
  .quick-actions { grid-template-columns: 1fr 1fr; }
  .quick-actions button:nth-child(odd) { border-right: 1px solid var(--line); }
  .wallet-button { margin-top: 24px; }
  .chat-log { max-height: 510px; }
  .token-card { grid-template-columns: 1fr; }
  .token-art { min-height: 520px; }
  footer { grid-template-columns: 1fr auto; }
  footer p { grid-column: 1 / -1; grid-row: 2; text-align: left; }
}

@media (max-width: 620px) {
  .site-header { position: absolute; }
  .header-action span { display: none; }
  .button { min-height: 50px; padding: 0 18px; font-size: 10px; }
  .hero { padding-top: 115px; }
  h1 { font-size: clamp(57px, 18.3vw, 88px); line-height: .8; }
  .hero-lede { font-size: 15px; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-ca { grid-template-columns: 1fr auto; gap: 7px 12px; }
  .hero-ca span { grid-column: 1 / -1; }
  .hero-ca code { font-size: 9px; }
  .hero-stage { min-height: 500px; }
  .hero-character { width: min(380px, 78vw); }
  .note-top { top: 0; right: 0; }
  .note-left { top: 19%; left: 0; font-size: 15px; }
  .archive-stamp { right: 0; bottom: 19%; }
  .archive-stamp b { font-size: 23px; }
  .wake-card { bottom: 0; left: 0; width: min(290px, 82%); }
  .ticker div { min-height: 49px; }
  .ticker span { font-size: 17px; }
  .section { padding: 86px 19px; }
  .section-kicker { margin-bottom: 42px; }
  .origin-copy h2, .guide-heading h2, .sources-heading h2, .abilities-heading h2, .assistant-heading h2, .timeline-title h2 { font-size: clamp(51px, 15.5vw, 72px); }
  .big-copy { font-size: 17px; }
  .receipt-paper { width: calc(100% - 12px); padding: 27px 18px 22px; box-shadow: 10px 11px 0 #b1ff40; transform: rotate(1deg); }
  .receipt-paper::after { left: 32px; }
  .paper-heading, .receipt-paper blockquote, .paper-footer { padding-left: 24px; }
  .paper-heading b { display: none; }
  .ability-grid { grid-template-columns: 1fr; }
  .ability-card, .ability-card:nth-child(4), .ability-card:nth-child(5), .ability-card:last-child { grid-column: auto; min-height: 285px; transform: none; }
  .ability-glyph { width: 62px; height: 62px; margin: 30px 0 24px; font-size: 32px; }
  .assistant-app { min-height: 0; box-shadow: 8px 8px 0 rgba(122,54,255,.55); }
  .assistant-sidebar { padding: 20px; }
  .assistant-profile img { width: 61px; height: 61px; }
  .quick-actions { grid-template-columns: 1fr; }
  .quick-actions button:nth-child(odd) { border-right: 0; }
  .quick-actions button:nth-child(n+4) { display: none; }
  .chat-header { min-height: 58px; padding: 0 14px; }
  .chat-header small { display: none; }
  .chat-log { min-height: 340px; max-height: 470px; padding: 18px 12px; }
  .message { grid-template-columns: 35px minmax(0, 1fr); gap: 8px; }
  .message-user { grid-template-columns: minmax(0, 1fr) 35px; }
  .chat-avatar, .user-avatar { width: 35px; height: 35px; }
  .message-bubble { max-width: 98%; padding: 12px; font-size: 14px; }
  .suggested-prompts { padding: 0 12px 10px; flex-wrap: nowrap; overflow-x: auto; }
  .suggested-prompts button { flex: 0 0 auto; }
  .prompt-form { gap: 6px; padding: 0 12px; }
  .prompt-form input { height: 51px; padding-inline: 12px; font-size: 13px; }
  .prompt-form button { min-width: 62px; }
  .prompt-form button span { display: none; }
  .chat-footnote { margin-inline: 12px; }
  .trade-preview, .trade-review { grid-template-columns: 1fr 1fr; }
  .arc-grid { grid-template-columns: 1fr; }
  .arc-card, .arc-card:last-child { grid-column: auto; min-height: 390px; padding: 23px; }
  .arc-card .card-icon { margin: 42px 0 28px; }
  .timeline { grid-template-columns: 1fr; }
  .timeline article { min-height: 250px; border-right: 0; border-bottom: 1px solid var(--line); }
  .timeline article:last-child { border-bottom: 0; }
  .timeline span { min-height: 65px; }
  .token-card { box-shadow: 9px 9px 0 rgba(122,54,255,.55); }
  .token-art { min-height: 400px; }
  .token-art img { width: 66%; }
  .token-copy { padding: 45px 22px; }
  .token-copy h2 { font-size: clamp(54px, 17vw, 86px); }
  .token-copy > p:not(.signal) { font-size: 15px; }
  .contract-box { grid-template-columns: minmax(0, 1fr) auto; }
  .token-actions { display: grid; grid-template-columns: 1fr; }
  .source-list a { grid-template-columns: 38px 1fr auto; gap: 11px; }
  .source-list b { font-size: 14px; }
  .floating-swirly { right: 13px; bottom: 13px; padding: 6px; }
  .floating-swirly img { width: 47px; height: 47px; }
  .floating-swirly span { display: none; }
  footer { grid-template-columns: 1fr auto; padding: 28px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .hero-stage { transform: none !important; }
}
