@font-face {
  font-family: 'Bricolage';
  src: url('/fonts/bricolage.woff2') format('woff2-variations'), url('/fonts/bricolage.woff2') format('woff2');
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --honey: #FFD400;
  --ember: #E0A800;
  --pitch: #000000;
  --cream: #FFF6D8;
  --soot: #24211A;
  --sky-top: #FFE24D;

  --font: 'Bricolage', 'Arial Rounded MT Bold', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pad-x: clamp(20px, 5vw, 80px);
  --sec-y: clamp(96px, 14vh, 180px);
  --maxw: 1320px;
  --ease: cubic-bezier(.2, .8, .2, 1);

  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 90px); -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--pitch);
  color: var(--pitch);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--pitch); outline-offset: 3px; border-radius: 6px; }
.ledger :focus-visible, .token :focus-visible, .story :focus-visible { outline-color: var(--honey); }

.skip { position: absolute; left: -9999px; top: 12px; z-index: 200; background: var(--pitch); color: var(--honey); padding: 10px 16px; border-radius: 999px; }
.skip:focus { left: 12px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad-x); }

.display {
  font-weight: 800;
  font-stretch: 78%;
  font-size: clamp(44px, 6.6vw, 108px);
  line-height: .9;
  letter-spacing: -0.025em;
  margin: 0 0 .32em;
  text-wrap: balance;
}
.body-lg { font-size: clamp(18px, 1.45vw, 22px); line-height: 1.45; max-width: 34ch; margin: 0; }
.note { font-size: 15px; opacity: .72; margin: 22px 0 0; max-width: 46ch; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--pitch); --fg: var(--honey);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--bg); color: var(--fg);
  font-weight: 700; font-stretch: 92%;
  text-decoration: none; border: 0; cursor: pointer;
  height: 46px; padding: 0 22px; border-radius: 999px;
  font-size: 16px; white-space: nowrap;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .9);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 rgba(0, 0, 0, .9); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0, 0, 0, .9); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn--lg { height: 58px; padding: 0 30px; font-size: 18px; }
.btn--sm { height: 38px; padding: 0 16px; font-size: 14px; box-shadow: none; }
.btn--sm:hover { box-shadow: none; }
.btn--dark { --bg: var(--pitch); --fg: var(--honey); }
.btn--cream { --bg: var(--cream); --fg: var(--pitch); box-shadow: 0 4px 0 var(--pitch), inset 0 0 0 2px var(--pitch); }
.btn--cream:hover { box-shadow: 0 6px 0 var(--pitch), inset 0 0 0 2px var(--pitch); }
.btn--honey { --bg: var(--honey); --fg: var(--pitch); box-shadow: 0 4px 0 var(--ember); }
.btn--honey:hover { box-shadow: 0 6px 0 var(--ember); }
.btn--ghost { --bg: transparent; --fg: var(--cream); box-shadow: inset 0 0 0 2px rgba(255, 246, 216, .5); }
.btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--cream); }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--honey);
  display: grid; place-items: center; align-content: center; gap: 18px;
}
.loader__dot { width: min(220px, 46vw); animation: squish 1.1s var(--ease) infinite; filter: drop-shadow(0 18px 18px rgba(120, 80, 0, .25)); }
.loader__text { margin: 0; font-weight: 800; font-stretch: 80%; font-size: 22px; }
.loader__text span { animation: blink 1.2s infinite; }
.loader__text span:nth-child(2) { animation-delay: .2s; }
.loader__text span:nth-child(3) { animation-delay: .4s; }
@keyframes squish { 0%, 100% { transform: scale(1, 1) translateY(0); } 40% { transform: scale(1.06, .92) translateY(6px); } 70% { transform: scale(.96, 1.05) translateY(-10px); } }
@keyframes blink { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }

/* ---------- nav ---------- */
.nav {
  position: fixed; z-index: 50;
  top: calc(env(safe-area-inset-top, 0px) + 14px);
  left: 50%; transform: translateX(-50%);
  width: min(calc(100% - 28px), 1240px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 10px 10px 18px;
  border-radius: 999px;
  transition: background .35s var(--ease), box-shadow .35s var(--ease);
}
.nav.is-solid { background: var(--pitch); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.nav.is-solid .nav__links a, .nav.is-solid .icon-btn { color: var(--cream); }
.nav.is-solid .nav__buy { --bg: var(--honey); --fg: var(--pitch); box-shadow: none; }
.nav.is-solid .menu-btn span { background: var(--cream); }
.nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav__brand img { width: 40px; height: 40px; filter: drop-shadow(0 3px 4px rgba(90, 60, 0, .25)); transition: transform .4s cubic-bezier(.34, 1.56, .64, 1); }
.nav__brand:hover img { transform: rotate(-10deg) scale(1.08); }
.nav__brand span { font-weight: 800; font-stretch: 78%; font-size: 21px; letter-spacing: -0.01em; white-space: nowrap; }
.nav.is-solid .nav__brand span { color: var(--honey); }
.nav__links { display: flex; gap: 6px; }
.nav__links a {
  text-decoration: none; font-weight: 650; font-size: 15px;
  padding: 8px 14px; border-radius: 999px;
  transition: background .2s;
}
.nav__links a:hover { background: rgba(0, 0, 0, .1); }
.nav.is-solid .nav__links a:hover { background: rgba(255, 246, 216, .12); }
.nav__actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 999px; transition: background .2s; }
.icon-btn:hover { background: rgba(0, 0, 0, .1); }
.nav__buy { height: 42px; box-shadow: none; }
.nav__buy:hover { box-shadow: none; }
.menu-btn { display: none; width: 42px; height: 42px; border: 0; background: transparent; border-radius: 999px; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 2.5px; background: var(--pitch); border-radius: 2px; transition: transform .3s var(--ease); }
.menu-btn span:first-child { top: 16px; }
.menu-btn span:last-child { top: 24px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 45; background: var(--honey);
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  padding: 100px var(--pad-x) 40px;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a { font-size: 44px; font-weight: 800; font-stretch: 78%; text-decoration: none; line-height: 1.1; }

/* ---------- hero ---------- */
.hero {
  position: relative; height: 100svh; min-height: 640px;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--honey) 62%);
  overflow: hidden; isolation: isolate;
}
#cityCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 46% 40% at 50% 34%, rgba(255, 226, 77, .92) 0%, rgba(255, 222, 60, .6) 45%, rgba(255, 214, 0, 0) 75%);
}
.hero__fallback { display: none; }
.no-webgl .hero__fallback {
  display: block; position: absolute; inset: 40% 0 0; z-index: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 226, 77, .9), transparent 60%),
    repeating-linear-gradient(60deg, rgba(0, 0, 0, .9) 0 2px, transparent 2px 36px),
    repeating-linear-gradient(-60deg, rgba(0, 0, 0, .9) 0 2px, transparent 2px 36px),
    var(--ember);
}
.hero__inner {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: calc(env(safe-area-inset-top, 0px) + 112px) var(--pad-x) 0;
  pointer-events: none;
}
.hero__inner > * { pointer-events: auto; }
.hero__title { margin: 0; width: min(880px, 92vw); }
.hero__wordmark { width: 100%; filter: drop-shadow(0 22px 22px rgba(90, 60, 0, .28)); }
.hero__lede {
  margin: 18px 0 0; max-width: 36ch;
  font-size: clamp(18px, 1.6vw, 23px); font-weight: 560; line-height: 1.35;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 28px; }
.hero__bar {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 0 var(--pad-x) calc(env(safe-area-inset-bottom, 0px) + 22px);
  color: var(--cream);
}
.hero__bar p { margin: 0; font-size: 15px; font-weight: 600; background: rgba(0, 0, 0, .78); padding: 9px 16px; border-radius: 999px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.clock__label { opacity: .7; font-weight: 500; }
.clock strong { font-variant-numeric: tabular-nums; color: var(--honey); }
.hero__status { display: flex; align-items: center; gap: 10px; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--honey); box-shadow: 0 0 0 0 rgba(255, 212, 0, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255, 212, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 212, 0, 0); } }

/* ---------- story ---------- */
.story { background: var(--pitch); color: var(--cream); position: relative; }
.story__pin {
  min-height: 100svh; display: grid; align-items: center;
  max-width: var(--maxw); margin: 0 auto; padding: var(--sec-y) var(--pad-x);
  position: relative;
}
.story__text {
  margin: 0; max-width: 1080px;
  font-weight: 800; font-stretch: 80%;
  font-size: clamp(32px, 4.1vw, 66px);
  line-height: .98; letter-spacing: -0.02em;
}
.story__text .w { opacity: .14; transition: opacity .1s linear; }
.no-js .story__text .w, .reduce .story__text .w { opacity: 1; }
.story__peek {
  position: absolute; right: max(var(--pad-x), calc((100vw - var(--maxw)) / 2 + 20px)); bottom: 8%;
  width: clamp(150px, 20vw, 300px);
  transform: translateY(40%) rotate(8deg); opacity: 0;
}

/* ---------- city ---------- */
.city { background: var(--honey); padding: var(--sec-y) 0; overflow: hidden; }
.city__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.district {
  margin-top: 40px; display: grid; grid-template-columns: 120px 1fr; gap: 22px; align-items: center;
  background: var(--cream); border-radius: 28px; padding: 22px 26px 22px 18px;
  box-shadow: inset 0 0 0 2.5px var(--pitch), 0 6px 0 var(--pitch);
  max-width: 560px; min-height: 172px;
}
.district__img { width: 120px; filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .18)); }
.district__name { margin: 0 0 6px; font-size: 30px; font-weight: 800; font-stretch: 80%; line-height: 1; }
.district__desc { margin: 0; font-size: 16px; line-height: 1.45; }
.district__run { margin: 10px 0 0; font-size: 14px; font-weight: 650; opacity: .6; }
.district.is-swap { animation: swap .45s var(--ease); }
@keyframes swap { 0% { transform: translateY(6px) scale(.985); } 100% { transform: none; } }
.city__map svg { width: 100%; height: auto; overflow: visible; }
.hex { cursor: pointer; outline: none; }
.hex polygon { fill: var(--honey); stroke: var(--pitch); stroke-width: 4; transition: fill .25s, transform .35s var(--ease); transform-box: fill-box; transform-origin: center; }
.hex text { fill: var(--pitch); font-family: var(--font); font-weight: 800; font-stretch: 80%; font-size: 23px; text-anchor: middle; pointer-events: none; transition: fill .25s; }
.hex:hover polygon, .hex:focus-visible polygon { fill: var(--cream); }
.hex:focus-visible polygon { stroke-width: 7; }
.hex.is-on polygon { fill: var(--pitch); transform: scale(1.04); }
.hex.is-on text { fill: var(--honey); }
.hex .hex__shadow { fill: var(--pitch); stroke: none; }

/* ---------- residents ---------- */
.residents { background: var(--cream); padding: var(--sec-y) 0 calc(var(--sec-y) * .8); }
.residents__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; margin-bottom: clamp(48px, 7vw, 96px); }
.residents__head .display { margin: 0; }
.cast { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.6vw, 40px); }
.cast__item { position: relative; outline: none; padding-top: 70px; }
.cast__item img {
  width: 100%; aspect-ratio: 1 / 1.12; object-fit: contain; object-position: bottom;
  transition: transform .45s cubic-bezier(.34, 1.56, .64, 1);
  filter: drop-shadow(0 18px 14px rgba(70, 50, 0, .18));
  transform-origin: 50% 100%;
}
.cast__item::after {
  content: ''; display: block; height: 14px; width: 62%; margin: -6px auto 0;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, .22), transparent 70%);
  transition: transform .45s var(--ease), opacity .45s;
  position: relative; top: 0; order: 2;
}
.cast__item:hover img, .cast__item:focus-visible img { transform: translateY(-16px) scale(1.03) rotate(-2deg); }
.cast__item h3 { margin: 26px 0 0; font-size: clamp(34px, 3.2vw, 52px); font-weight: 800; font-stretch: 78%; line-height: .95; letter-spacing: -0.02em; }
.cast__role { margin: 4px 0 10px; font-weight: 700; font-size: 16px; color: #8a6c00; }
.cast__line { margin: 0; font-size: 16px; max-width: 30ch; }
.bubble {
  position: absolute; top: 0; left: 50%; z-index: 2;
  width: max-content; max-width: 220px; margin: 0;
  background: var(--pitch); color: var(--cream);
  font-size: 14.5px; font-weight: 600; line-height: 1.3;
  padding: 11px 15px; border-radius: 18px 18px 18px 4px;
  transform: translate(-30%, 12px) scale(.9); opacity: 0;
  transition: opacity .25s, transform .35s cubic-bezier(.34, 1.56, .64, 1);
  pointer-events: none;
}
.cast__item:hover .bubble, .cast__item:focus-visible .bubble, .cast__item.is-talking .bubble { opacity: 1; transform: translate(-30%, 0) scale(1); }
.cast__item:focus-visible { box-shadow: 0 0 0 3px var(--pitch); border-radius: 20px; }

/* ---------- ledger ---------- */
.ledger { background: var(--pitch); color: var(--cream); padding: var(--sec-y) 0; }
.ledger__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.ledger .display { color: var(--honey); }
.feed { background: var(--soot); border-radius: 32px; padding: 8px; box-shadow: 0 0 0 1px rgba(255, 246, 216, .08); }
.feed__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px 12px; }
.feed__head p { margin: 0; font-weight: 750; font-size: 17px; }
.tag { font-size: 13px; font-weight: 700; color: var(--pitch); background: var(--honey); padding: 4px 11px; border-radius: 999px; }
.feed__list { list-style: none; margin: 0; padding: 0; height: 468px; overflow: hidden; position: relative; border-radius: 26px; background: #2c2820; }
.feed__list::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(transparent, #2c2820); pointer-events: none; }
.feed__item { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 14px 18px; border-bottom: 1px solid rgba(255, 246, 216, .07); }
.feed__item img { width: 44px; height: 44px; object-fit: contain; background: var(--honey); border-radius: 14px; padding: 3px; }
.feed__text { margin: 0; font-size: 15.5px; line-height: 1.35; }
.feed__text b { color: var(--honey); font-weight: 700; }
.feed__time { display: block; font-size: 13px; opacity: .5; margin-top: 2px; }
.feed__amt { font-weight: 750; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.feed__amt.is-plus { color: var(--honey); }
.feed__amt.is-minus { color: rgba(255, 246, 216, .6); }

/* ---------- gate ---------- */
.gate { background: var(--honey); padding: var(--sec-y) 0; }
.gate__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.tabs { display: inline-flex; background: var(--pitch); padding: 5px; border-radius: 999px; margin: 36px 0 16px; }
.tabs button { border: 0; background: transparent; color: var(--cream); font-weight: 700; padding: 10px 20px; border-radius: 999px; cursor: pointer; font-size: 15px; transition: background .25s, color .25s; }
.tabs button[aria-selected="true"] { background: var(--honey); color: var(--pitch); }
.tabs button:focus-visible { outline-color: var(--cream); }
.prompt { display: flex; align-items: center; gap: 14px; background: var(--pitch); color: var(--cream); border-radius: 22px; padding: 16px 16px 16px 22px; max-width: 620px; }
.prompt code { flex: 1; font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 14.5px; line-height: 1.5; word-break: break-word; }
.steps { margin: 24px 0 0; padding: 0; list-style: none; counter-reset: s; max-width: 560px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: baseline; padding: 9px 0; font-size: 16.5px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--pitch); color: var(--honey); font-weight: 800; font-size: 14px; transform: translateY(-2px); }
.note--dark { opacity: .8; }
.note--dark a { font-weight: 700; }
.chat {
  background: var(--cream); border-radius: 34px; overflow: hidden;
  box-shadow: inset 0 0 0 3px var(--pitch), 0 10px 0 var(--pitch);
  display: flex; flex-direction: column; min-height: 520px;
  transform: rotate(1.5deg);
}
.chat__top { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 2.5px solid var(--pitch); }
.chat__top img { width: 42px; height: 42px; object-fit: contain; background: var(--honey); border-radius: 50%; padding: 3px; box-shadow: inset 0 0 0 2px var(--pitch); }
.chat__name { margin: 0; font-weight: 800; font-size: 17px; line-height: 1.1; }
.chat__state { margin: 0; font-size: 13px; opacity: .6; }
.chat__body { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; padding: 24px 22px; }
.msg { margin: 0; max-width: 82%; padding: 13px 17px; border-radius: 22px; font-size: 15.5px; line-height: 1.4; font-weight: 520; }
.msg--me { align-self: flex-end; background: var(--pitch); color: var(--cream); border-bottom-right-radius: 6px; }
.msg--dot { align-self: flex-start; background: var(--honey); border-bottom-left-radius: 6px; box-shadow: inset 0 0 0 2px var(--pitch); }
.msg--typing { align-self: flex-start; background: var(--honey); box-shadow: inset 0 0 0 2px var(--pitch); display: none; gap: 5px; padding: 16px 18px; border-bottom-left-radius: 6px; }
.msg--typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--pitch); animation: blink 1s infinite; }
.msg--typing span:nth-child(2) { animation-delay: .15s; }
.msg--typing span:nth-child(3) { animation-delay: .3s; }
.chat.is-armed .msg--me, .chat.is-armed .msg--dot { opacity: 0; transform: translateY(10px); }
.chat .msg--me, .chat .msg--dot { transition: opacity .4s var(--ease), transform .4s var(--ease); }
.chat .is-shown { opacity: 1 !important; transform: none !important; }
.chat .msg--typing.is-typing { display: inline-flex; }
.chat__input { margin: 0 16px 16px; padding: 14px 18px; border-radius: 999px; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .25); font-size: 15px; opacity: .55; }

/* ---------- token ---------- */
.token { background: var(--pitch); color: var(--cream); padding: var(--sec-y) 0; overflow: hidden; }
.token__ticker {
  margin: 0; color: var(--honey);
  font-weight: 800; font-stretch: 75%;
  font-size: clamp(110px, 25vw, 400px);
  line-height: .78; letter-spacing: -0.045em;
  margin-left: -0.04em;
}
.token__lede { margin-top: 30px; max-width: 30ch; }
.facts { margin: 56px 0 0; display: grid; grid-template-columns: repeat(3, 1fr) 2fr; border-top: 1px solid rgba(255, 246, 216, .2); border-bottom: 1px solid rgba(255, 246, 216, .2); }
.facts div { padding: 22px 22px 24px 0; }
.facts div + div { padding-left: 22px; border-left: 1px solid rgba(255, 246, 216, .2); }
.facts dt { font-size: 14px; opacity: .6; margin-bottom: 6px; }
.facts dd { margin: 0; font-size: 24px; font-weight: 750; font-stretch: 86%; }
.facts__ca dd { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.facts__ca code { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 15px; font-weight: 500; word-break: break-all; }
.token__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }
.uses__title { margin: clamp(80px, 10vw, 140px) 0 34px; font-size: clamp(30px, 3vw, 44px); font-weight: 800; font-stretch: 80%; letter-spacing: -0.015em; }
.uses { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 clamp(8px, 1.2vw, 18px); }
.uses li {
  aspect-ratio: 1.1547 / 1;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  background: var(--honey); color: var(--pitch);
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  padding: 0 15%;
  transition: background .25s, transform .4s var(--ease);
}
.uses li:nth-child(even) { transform: translateY(50%); background: var(--cream); }
.uses li:hover { background: #fff; }
.uses h4 { margin: 0 0 6px; font-size: clamp(20px, 1.9vw, 30px); font-weight: 800; font-stretch: 80%; line-height: 1; }
.uses p { margin: 0; font-size: clamp(13px, 1vw, 15.5px); line-height: 1.35; }
.uses { padding-bottom: 11%; }

/* ---------- footer ---------- */
.footer { background: var(--honey); padding: var(--sec-y) 0 40px; overflow: hidden; }
.footer__hero { display: flex; align-items: center; gap: clamp(24px, 4vw, 64px); flex-wrap: wrap; }
.footer__dot { width: clamp(150px, 18vw, 260px); filter: drop-shadow(0 18px 18px rgba(120, 80, 0, .25)); animation: squish 3.2s var(--ease) infinite; }
.footer__say { margin: 0 0 24px; font-weight: 800; font-stretch: 78%; font-size: clamp(38px, 5vw, 80px); line-height: .92; letter-spacing: -0.025em; }
.footer__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.footer__wordmark { width: 100%; margin: clamp(60px, 9vw, 120px) 0 40px; }
.footer__meta { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: start; border-top: 2px solid var(--pitch); padding-top: 24px; }
.footer__meta nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer__meta nav a { font-weight: 700; text-decoration: none; }
.footer__meta nav a:hover { text-decoration: underline; }
.disclaimer { margin: 0; font-size: 13.5px; line-height: 1.5; max-width: 72ch; opacity: .8; }
.copy { margin: 0; font-size: 13.5px; font-weight: 700; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .menu-btn { display: block; }
  .facts { grid-template-columns: repeat(3, 1fr); }
  .facts__ca { grid-column: 1 / -1; border-left: 0 !important; padding-left: 0 !important; border-top: 1px solid rgba(255, 246, 216, .2); }
}
@media (max-width: 900px) {
  .city__grid, .ledger__grid, .gate__grid { grid-template-columns: 1fr; }
  .city__map { order: -1; max-width: 560px; margin: 0 auto; width: 100%; }
  .cast { grid-template-columns: repeat(2, 1fr); row-gap: 56px; }
  .chat { transform: none; min-height: 440px; }
  .footer__meta { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { padding: 8px 8px 8px 14px; }
  .nav__brand img { width: 34px; height: 34px; }
  .nav__brand span { font-size: 19px; }
  .nav__buy { display: none; }
  .hero__inner { padding-top: calc(env(safe-area-inset-top, 0px) + 96px); }
  .hero__cta .btn--lg { height: 52px; font-size: 16px; padding: 0 22px; }
  .hero__bar { justify-content: center; }
  .hero__bar .clock { display: none; }
  .story__peek { display: none; }
  .district { grid-template-columns: 76px 1fr; gap: 14px; padding: 18px; }
  .district__img { width: 76px; }
  .district__name { font-size: 25px; }
  .feed__list { height: 420px; }
  .feed__item { grid-template-columns: 36px 1fr; padding: 12px 14px; }
  .feed__item img { width: 36px; height: 36px; border-radius: 11px; }
  .feed__amt { grid-column: 2; font-size: 14px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(3) { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255, 246, 216, .2); grid-column: 1 / -1; }
  .facts dd { font-size: 20px; }
  .uses { grid-template-columns: repeat(2, 1fr); padding-bottom: 22%; }
  .uses li { padding: 0 12%; }
  .uses li:nth-child(even) { transform: translateY(50%); }
  .uses li:nth-child(3) { margin-top: 4%; }
  .uses li:nth-child(4) { margin-top: 4%; }
  .bubble { max-width: 170px; font-size: 13px; }
}
@media (max-width: 420px) {
  .cast { gap: 14px; }
  .cast__line { font-size: 14.5px; }
  .hero__cta { flex-direction: column; width: 100%; max-width: 320px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ===================================================================
   Docs page
   =================================================================== */
.nav__links a[aria-current="page"] { background: rgba(255, 246, 216, .14); }
.docs-page { background: var(--cream); }
.docs-hero { background: var(--honey); padding: calc(env(safe-area-inset-top, 0px) + 130px) 0 56px; border-bottom: 2.5px solid var(--pitch); }
.docs-hero__inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.docs-hero .display { margin-bottom: .18em; }
.docs-hero__dot { width: clamp(110px, 14vw, 190px); filter: drop-shadow(0 16px 16px rgba(120, 80, 0, .25)); animation: squish 3.2s var(--ease) infinite; }

.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); padding-top: 64px; padding-bottom: 120px; }
.docs__toc { position: sticky; top: 100px; align-self: start; }
.docs__toc-title { margin: 0 0 12px; font-weight: 800; font-size: 15px; }
.docs__toc nav { display: flex; flex-direction: column; gap: 2px; border-left: 2px solid rgba(0, 0, 0, .12); }
.docs__toc a { text-decoration: none; font-size: 15px; font-weight: 550; padding: 6px 0 6px 16px; margin-left: -2px; border-left: 2px solid transparent; opacity: .65; transition: opacity .2s, border-color .2s; }
.docs__toc a:hover { opacity: 1; }
.docs__toc a[aria-current="true"] { opacity: 1; border-left-color: var(--pitch); font-weight: 750; }

.docs__body { max-width: 720px; min-width: 0; }
.docs__body section { padding-bottom: 64px; scroll-margin-top: 100px; }
.docs__body section + section { padding-top: 56px; border-top: 1.5px solid rgba(0, 0, 0, .1); }
.docs__body h2 { margin: 0 0 18px; font-weight: 800; font-stretch: 78%; font-size: clamp(36px, 4vw, 54px); line-height: .95; letter-spacing: -0.02em; }
.docs__body h3 { margin: 32px 0 10px; font-weight: 800; font-stretch: 84%; font-size: 22px; }
.docs__body p, .docs__body li, .docs__body dd { font-size: 17.5px; line-height: 1.6; }
.docs__body p { margin: 0 0 16px; max-width: 64ch; }
.docs__body ul { padding-left: 1.2em; margin: 0 0 16px; }
.docs__body li { margin-bottom: 8px; }
.docs__body li::marker { color: var(--ember); }
.docs__body a:not(.btn) { font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--ember); }
.docs__body .prompt { margin: 8px 0 8px; }
.docs__body .steps li { font-size: 17px; }

.docs-table { overflow-x: auto; margin: 8px 0 16px; border-radius: 20px; box-shadow: inset 0 0 0 2px var(--pitch); background: #fff; }
.docs-table table { width: 100%; border-collapse: collapse; min-width: 520px; }
.docs-table th, .docs-table td { text-align: left; padding: 14px 18px; font-size: 16px; vertical-align: top; }
.docs-table thead th { font-weight: 800; background: var(--pitch); color: var(--honey); }
.docs-table thead th:first-child { border-top-left-radius: 18px; }
.docs-table thead th:last-child { border-top-right-radius: 18px; }
.docs-table tbody tr + tr td, .docs-table tbody tr + tr th { border-top: 1.5px solid rgba(0, 0, 0, .1); }
.docs-table tbody th { font-weight: 750; width: 34%; }
.docs-table td:first-child { font-weight: 700; white-space: nowrap; }
.docs-table tbody th + td { font-weight: 500; white-space: normal; }
.chip { display: inline-block; font-size: 13.5px; font-weight: 750; padding: 3px 11px; border-radius: 999px; background: rgba(0, 0, 0, .08); white-space: nowrap; }
.chip--on { background: var(--honey); box-shadow: inset 0 0 0 1.5px var(--pitch); }
.docs-ca { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.docs-ca code { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 14.5px; word-break: break-all; }

.docs-list { margin: 8px 0 0; display: grid; gap: 0; }
.docs-list div { display: grid; grid-template-columns: 170px 1fr; gap: 18px; padding: 14px 0; border-top: 1.5px solid rgba(0, 0, 0, .1); }
.docs-list div:first-child { border-top: 0; }
.docs-list dt { font-weight: 800; font-stretch: 86%; font-size: 18px; }
.docs-list dd { margin: 0; }

.docs-cast { list-style: none; padding: 0 !important; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.docs-cast li { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: center; background: #fff; border-radius: 22px; padding: 14px 18px 14px 12px; box-shadow: inset 0 0 0 2px var(--pitch); margin: 0; }
.docs-cast img { width: 84px; height: 92px; object-fit: contain; }
.docs-cast h3 { margin: 0 0 4px; font-size: 19px; }
.docs-cast p { margin: 0; font-size: 15px !important; line-height: 1.45 !important; }

.callout { background: var(--honey); border-radius: 18px; padding: 16px 20px; box-shadow: inset 0 0 0 2px var(--pitch); margin-top: 20px !important; }

.docs__body details { border-top: 1.5px solid rgba(0, 0, 0, .1); }
.docs__body details:last-of-type { border-bottom: 1.5px solid rgba(0, 0, 0, .1); }
.docs__body summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 750; font-size: 18px; position: relative; }
.docs__body summary::-webkit-details-marker { display: none; }
.docs__body summary::after { content: '+'; position: absolute; right: 6px; top: 12px; font-size: 26px; font-weight: 600; transition: transform .3s var(--ease); }
.docs__body details[open] summary::after { transform: rotate(45deg); }
.docs__body details p { padding-bottom: 6px; }
.docs-links { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 10px; }
.docs-links a { display: inline-block; padding: 10px 18px; border-radius: 999px; background: var(--pitch); color: var(--honey) !important; text-decoration: none !important; }
.docs-links li { margin: 0; }
.footer--docs { padding: 32px 0 40px; }

@media (max-width: 900px) {
  .docs { grid-template-columns: minmax(0, 1fr); padding-top: 0; }
  .docs__toc { top: calc(env(safe-area-inset-top, 0px) + 76px); z-index: 5; background: var(--cream); margin: 0 calc(var(--pad-x) * -1); padding: 12px var(--pad-x); border-bottom: 1.5px solid rgba(0, 0, 0, .1); }
  .docs__toc-title { display: none; }
  .docs__toc nav { flex-direction: row; overflow-x: auto; border-left: 0; gap: 6px; scrollbar-width: none; }
  .docs__toc nav::-webkit-scrollbar { display: none; }
  .docs__toc a { border: 0; margin: 0; padding: 8px 14px; border-radius: 999px; white-space: nowrap; background: rgba(0, 0, 0, .06); }
  .docs__toc a[aria-current="true"] { background: var(--pitch); color: var(--honey); }
  .docs__body { padding-top: 40px; }
  .docs__body section { scroll-margin-top: 150px; }
  .docs-cast { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .docs-list div { grid-template-columns: 1fr; gap: 4px; }
  .docs-hero { padding-top: calc(env(safe-area-inset-top, 0px) + 110px); padding-bottom: 40px; }
}
