@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/instrument-serif.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/instrument-serif-italic.woff2") format("woff2");
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/inter.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-500.woff2") format("woff2");
}

:root {
  --page: #f2eee0;
  --page-deep: #ebe6d3;
  --card: #fbf9f0;
  --card-raised: #fffdf7;
  --card-hover: #f6f2e3;
  --text: #1c2b21;
  --ink-secondary: #47543f;
  --muted: #6d7466;
  --faint: #9ba191;
  --border: #e2dcc6;
  --line-strong: #d0c8ac;
  --royal: #1d5b3a;
  --royal-soft: #dfe9d6;
  --royal-tint: #eef4e8;
  --hood: #00c805;
  --hood-ink: #063016;
  --navy: #17382a;
  --navy-deep: #0e2419;
  --engraving: #2e5d45;
  --gold: #a8791f;
  --gold-soft: #f2e6c6;
  --gold-line: #d9bd76;
  --good: #2e7d4f;
  --warn: #a97a17;
  --bad: #b0452c;
  --icon-1: #1d5b3a;
  --icon-2: #6fa37d;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-back: cubic-bezier(.34, 1.56, .64, 1);
  --dur-fast: .16s;
  --dur: .3s;
  --dur-slow: .6s;
  --shadow-pill: 0 1px 2px #17382a0d, 0 10px 26px -14px #17382a38;
  --shadow-card: 0 1px 2px #17382a0a, 0 14px 34px -22px #17382a42;
  --shadow-lift: 0 2px 5px #17382a0f, 0 26px 50px -26px #17382a52;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --max: 80rem;
  --header: 4rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #0c1210;
    --page-deep: #080c0a;
    --card: #141c18;
    --card-raised: #1a2420;
    --card-hover: #1c2621;
    --text: #f4f1e4;
    --ink-secondary: #c3d2c0;
    --muted: #93a793;
    --faint: #6c8271;
    --border: #2b5340;
    --line-strong: #3a6850;
    --royal: #7fe3a7;
    --royal-soft: #163526;
    --royal-tint: #12281d;
    --hood: #00c805;
    --hood-ink: #04180a;
    --navy: #0e2419;
    --navy-deep: #07140e;
    --engraving: #8fbf9a;
    --gold: #d9bd76;
    --gold-soft: #2a2414;
    --gold-line: #8a7340;
    --good: #7fe3a7;
    --warn: #e0b84a;
    --bad: #e07a62;
    --icon-1: #7fe3a7;
    --icon-2: #3d8f5c;
    --shadow-pill: 0 1px 2px #0008, 0 10px 26px -14px #0008;
    --shadow-card: 0 1px 2px #0006, 0 14px 34px -22px #0009;
    --shadow-lift: 0 2px 5px #0008, 0 26px 50px -26px #000a;
  }
}

html {
  scroll-behavior: smooth;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--page);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 80;
  opacity: .035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.55'/></svg>");
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 2px solid var(--hood); outline-offset: 3px; }

.font-display { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; }
.font-mono { font-family: "IBM Plex Mono", ui-monospace, monospace; }
.italic { font-style: italic; }
.tabular { font-variant-numeric: tabular-nums; }

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}
.wrap-wide { width: min(100% - 1.5rem, var(--max)); margin-inline: auto; }

/* Banner */
.banner {
  position: relative;
  z-index: 50;
  background: var(--navy);
  color: var(--page);
  font-size: 13.5px;
  text-align: center;
  padding: .65rem 1rem;
}
.banner a { color: var(--gold-line); text-decoration: underline; text-underline-offset: 3px; }
.banner a:hover { color: #fff; }

/* Header */
.sticky-head {
  position: sticky;
  top: 0;
  z-index: 40;
}
.site-header {
  position: relative;
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}
.sticky-head.is-stuck .head-inner {
  background: color-mix(in srgb, var(--page) 86%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.head-inner { transition: background-color .3s var(--ease), border-color .3s var(--ease); }

.brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  z-index: 2;
  color: var(--royal);
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: block;
  object-fit: cover;
  background: var(--card);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--royal) 16%, transparent);
  transition: transform .5s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(18deg); }
.brand-word {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 22px;
  line-height: 1;
}

.pill-nav {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: none;
  align-items: center;
  gap: 2px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--card) 90%, transparent);
  box-shadow: var(--shadow-pill);
  backdrop-filter: blur(8px);
}
@media (min-width: 1024px) { .pill-nav { display: flex; } }

.nav-link {
  display: flex;
  align-items: center;
  gap: .5rem;
  border-radius: 999px;
  padding: .38rem .9rem;
  font-size: 13.5px;
  color: var(--muted);
  transition: color .2s, background .2s;
}
.nav-link:hover { background: var(--card-hover); color: var(--text); }
.nav-link.is-active { background: var(--royal-tint); color: var(--royal); }
.nav-ico { width: 16px; height: 16px; flex: 0 0 16px; }

.head-actions { display: flex; align-items: center; gap: .5rem; z-index: 2; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  padding: .55rem 1.05rem;
  transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-royal {
  border: 1px solid color-mix(in srgb, var(--royal) 25%, transparent);
  background: var(--royal-soft);
  color: var(--royal);
  box-shadow: var(--shadow-pill);
}
.btn-royal:hover { background: var(--royal); color: var(--card); }
.btn-hood {
  background: var(--hood);
  color: var(--hood-ink);
  border: 1px solid color-mix(in srgb, #000 8%, var(--hood));
  box-shadow: 0 8px 22px -12px color-mix(in srgb, var(--hood) 80%, #000);
}
.btn-hood:hover { filter: brightness(1.05); }
.btn-ghost {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--royal); color: var(--royal); }
.btn-lg { padding: .78rem 1.25rem; font-size: 14.5px; }
.btn-sm { padding: .42rem .85rem; font-size: 13px; }
.btn[disabled], .btn.is-disabled {
  opacity: .55;
  pointer-events: none;
  transform: none;
}

.menu-btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  display: grid;
  place-items: center;
}
@media (min-width: 1024px) { .menu-btn { display: none; } }
.menu-btn:hover { color: var(--royal); border-color: var(--royal); }
.burger { width: 16px; height: 14px; position: relative; display: block; }
.burger span {
  position: absolute; left: 0; height: 1.5px; width: 16px; background: currentColor; border-radius: 2px;
  transition: transform .3s, opacity .2s, top .3s;
}
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 6px; }
.burger span:nth-child(3) { top: 12px; }
.menu-btn.is-open .burger span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.menu-btn.is-open .burger span:nth-child(2) { opacity: 0; }
.menu-btn.is-open .burger span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

.drawer {
  display: none;
  position: fixed;
  inset: 5.75rem .75rem auto .75rem;
  z-index: 45;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  padding: .6rem;
}
.drawer.is-open { display: block; animation: drawer-in .34s var(--ease) both; }
.drawer a, .drawer button {
  display: flex; align-items: center; gap: .7rem;
  width: 100%; text-align: left;
  padding: .8rem .9rem; border-radius: 12px; font-size: 15px;
}
.drawer a:hover, .drawer button:hover { background: var(--card-hover); }
@keyframes drawer-in { from { opacity: 0; transform: translateY(-10px) scale(.98); } }

.scrim {
  display: none;
  position: fixed; inset: 0; z-index: 35;
  background: color-mix(in srgb, var(--navy) 28%, transparent);
}
.scrim.is-open { display: block; animation: fade-in .25s var(--ease) both; }

/* Hero */
.hero-frame {
  position: relative;
  min-height: 440px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.hero-pad { padding: 1rem .75rem 0; }
@media (min-width: 640px) { .hero-pad { padding: 1rem 1.5rem 0; } }

.frieze {
  position: absolute; inset: 0;
  color: var(--engraving);
  pointer-events: none;
}
.frieze svg { width: 100%; height: 100%; display: block; }
.frieze-layer {
  transform: translate(calc(var(--px, 0) * var(--depth, 10) * -1px), calc(var(--py, 0) * var(--depth, 10) * -.55px));
  transition: transform .5s var(--ease);
  will-change: transform;
}

.hero-copy {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 4.5rem 1.25rem 5.5rem;
  max-width: 54rem;
}
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--card) 78%, transparent);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  padding: .35rem .8rem .35rem .55rem;
  font-size: 12.5px;
  color: var(--ink-secondary);
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-pill);
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 99px;
  background: var(--hood);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--hood) 55%, transparent);
  animation: pulse 1.8s var(--ease) infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 8px transparent; }
}
.hero-copy h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: 44px;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 1.5rem 0 0;
  text-wrap: balance;
}
@media (min-width: 640px) {
  .hero-copy h1 { font-size: 68px; }
}
.hero-copy h1 .em { color: var(--royal); font-style: italic; }
.lede {
  margin: 1.25rem auto 0;
  max-width: 36rem;
  color: var(--ink-secondary);
  font-size: 16px;
  line-height: 1.625;
}
@media (min-width: 640px) {
  .lede { font-size: 17px; }
}
.hero-actions {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem;
  margin-top: 1.5rem;
}

.tape {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--card-raised) 88%, transparent);
  overflow: hidden;
  height: 56px;
}
.tape-run {
  display: flex;
  width: max-content;
  animation: tape-run 28s linear infinite;
}
@keyframes tape-run { to { transform: translateX(-33.333%); } }
.tape-item {
  display: flex; align-items: center; gap: .55rem;
  padding: 0 1.25rem;
  height: 56px;
  font-size: 13px;
  white-space: nowrap;
  border-right: 1px solid var(--border);
}
.tape-sym {
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.tape-px { font-family: "IBM Plex Mono", monospace; font-size: 13px; color: var(--ink-secondary); }
.tape-lltv { font-family: "IBM Plex Mono", monospace; font-size: 11px; color: var(--faint); }

.token {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid var(--border);
  object-fit: cover;
  background: var(--card);
  display: block;
  flex: 0 0 24px;
}
.token-lg { width: 36px; height: 36px; flex-basis: 36px; }
.token-xl { width: 44px; height: 44px; flex-basis: 44px; }
.token-stack { display: inline-flex; align-items: center; }
.token-stack .token:last-child { margin-left: -10px; }
.kind {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--faint);
}
.chip-token {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 999px;
  padding: .28rem .7rem .28rem .28rem;
  font-size: 13px;
  font-weight: 500;
}
.chip-token .token { width: 22px; height: 22px; flex-basis: 22px; border: 0; }

.iso-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 8px;
  width: 100%;
  height: 100%;
  padding: 14px;
}
.iso-cell {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  padding: 8px;
  min-height: 0;
}
.iso-cell .iso-top {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  color: var(--muted);
}
.iso-cell img { width: 16px; height: 16px; border-radius: 99px; border: 1px solid var(--border); object-fit: cover; background: var(--card); }
.iso-bars { display: flex; align-items: flex-end; gap: 3px; height: 16px; }
.iso-bars i { width: 3px; border-radius: 2px; background: color-mix(in srgb, var(--royal) 30%, transparent); display: block; }
.iso-cell.cell-alarm .iso-bars i { background: color-mix(in srgb, var(--bad) 45%, transparent); }

.orbit-art { position: relative; width: 100%; height: 100%; }
.orbit-core {
  position: absolute;
  left: 50%; top: 50%;
  width: 44px; height: 44px;
  margin: -22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  object-fit: cover;
  z-index: 2;
  box-shadow: var(--shadow-pill);
}
.orbit-ring {
  position: absolute;
  inset: 0;
  animation: orbit 34s linear infinite;
}
.orbit-slot {
  position: absolute;
  left: 50%; top: 50%;
  width: 0; height: 0;
  transform: rotate(var(--ang)) translateX(58px);
}
.orbit-upright {
  width: 36px; height: 36px;
  margin: -18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  object-fit: cover;
  box-shadow: var(--shadow-pill);
  animation: orbit 34s linear infinite reverse;
}

.mkt-card { padding: 0; overflow: hidden; }
.mkt-banner {
  position: relative;
  min-height: 152px;
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  padding: 1.35rem 1.25rem 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.mkt-banner .chip {
  position: absolute;
  left: 1rem;
  top: 1rem;
  background: var(--card);
}
.mkt-banner h3 { display: flex; align-items: baseline; gap: .5rem; }
.mkt-banner h3 .mkt-meta { display: inline; font-family: Inter, system-ui, sans-serif; font-size: 14px; }
.mkt-body { padding: 1.25rem 1.25rem 1.3rem; }

.vote-row { display: flex; align-items: center; gap: 0; }
.vote-row .token {
  width: 44px; height: 44px; flex-basis: 44px;
  border: 2px solid var(--card);
  margin-left: -12px;
  box-shadow: var(--shadow-pill);
}
.vote-row .token:first-child { margin-left: 0; }

/* Sections */
.section { padding: 4.5rem 0; }
.kicker {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}
.display {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(30px, 4.4vw, 44px);
  line-height: 1.1;
  margin: .75rem 0 0;
  max-width: 36rem;
}
.display .em { color: var(--royal); font-style: italic; }
.sub {
  margin: 1rem 0 0;
  max-width: 38rem;
  color: var(--ink-secondary);
  font-size: 16.5px;
  line-height: 1.6;
}

.why-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}
@media (min-width: 900px) {
  .why-grid { grid-template-columns: repeat(3, 1fr); }
}
.why-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 1.15rem 1.15rem 1.3rem;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}
.why-art {
  height: 208px;
  border-radius: 12px;
  background: var(--card);
  color: var(--engraving);
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
}
.why-card h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.25;
}
.why-card p {
  margin: .45rem 0 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}

.rate-art {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 16px;
}
.rate-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border: 1px solid var(--border);
  background: var(--card-raised);
  border-radius: 999px;
  padding: .28rem .7rem .28rem .5rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: var(--muted);
}
.rate-pill .pulse-dot { width: 6px; height: 6px; background: var(--good); }
.rate-bars {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  height: 112px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
.rate-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}
.rate-bar {
  width: 100%;
  border-radius: 3px;
  background: var(--page-deep);
  transform-origin: bottom;
  animation: bar-rise 3.6s var(--ease) infinite;
}
.rate-bar.is-hot { background: var(--royal); animation: none; }
.rate-pct {
  margin-bottom: 8px;
  border-radius: 999px;
  background: var(--royal);
  color: var(--card);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 2.25rem;
  box-shadow: var(--shadow-card);
}
@media (min-width: 800px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat {
  background: var(--card);
  padding: 1.2rem 1.25rem 1.3rem;
}
.stat dt {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
}
.stat dd {
  margin: .35rem 0 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 28px;
  line-height: 1.1;
}
.stat .hint { margin: .35rem 0 0; font-size: 12.5px; color: var(--muted); }

/* Markets table */
.markets-head {
  display: flex; align-items: end; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap;
}
.table-card {
  margin-top: 1.4rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.table-scroll { overflow-x: auto; }
.mkts { min-width: 760px; }
.mkts th {
  text-align: left;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  padding: .9rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--card-raised);
}
.mkts td {
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  white-space: nowrap;
}
.mkts tr:last-child td { border-bottom: 0; }
.mkts tbody tr { transition: background .2s; }
.mkts tbody tr:hover { background: var(--card-hover); }
.mkt-name { display: flex; align-items: center; gap: .7rem; }
.mkt-name .token { transition: transform .3s var(--ease); }
.mkts tbody tr:hover .token { transform: scale(1.05); }
.mkt-sym { font-weight: 600; }
.mkt-meta { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.num .mkt-meta { display: inline; margin-left: .35rem; }
.num { font-family: "IBM Plex Mono", monospace; font-size: 13px; }
.lltv { color: var(--royal); font-weight: 500; }
.go {
  width: 32px; height: 32px; border-radius: 99px;
  display: grid; place-items: center;
  color: var(--faint);
  transition: .2s var(--ease);
}
.go:hover { color: var(--royal); background: var(--royal-tint); transform: translateX(2px); }
.table-foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem;
  align-items: center;
  padding: .9rem 1.1rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12.5px;
}

/* How */
.how-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2.2rem;
}
@media (min-width: 900px) { .how-grid { grid-template-columns: repeat(3, 1fr); } }
.how-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.3rem 1.5rem;
  box-shadow: var(--shadow-card);
}
.how-n {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--gold);
}
.how-card h3 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 26px;
  margin: .55rem 0 0;
  line-height: 1.15;
}
.how-card p { margin: .6rem 0 0; color: var(--ink-secondary); font-size: 14.5px; line-height: 1.55; }

.split {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}
@media (min-width: 800px) { .split { grid-template-columns: 1fr 1fr; } }
.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.6rem 1.5rem 1.5rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  min-height: 240px;
}
.panel h3 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 40px;
  margin: .2rem 0 0;
  line-height: 1;
}
.panel p { color: var(--ink-secondary); margin: .8rem 0 1.2rem; flex: 1; }

.next-card {
  display: grid;
  gap: 0;
  margin-top: 2rem;
  border: 1px solid var(--border);
  border-radius: 28px;
  overflow: hidden;
  background: var(--navy);
  color: var(--page);
  box-shadow: var(--shadow-lift);
  text-decoration: none;
}
@media (min-width: 860px) { .next-card { grid-template-columns: 1.2fr .8fr; } }
.next-copy { padding: 2rem 1.7rem; }
.next-copy .kicker { color: var(--gold-line); }
.next-copy h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(28px, 3.5vw, 40px);
  margin: .6rem 0 0;
  line-height: 1.12;
}
.next-copy h2 .em { font-style: italic; color: var(--hood); }
.next-copy p { color: color-mix(in srgb, var(--page) 78%, #8fbf9a); margin: .9rem 0 1.2rem; max-width: 36rem; }
.next-art {
  min-height: 220px;
  background:
    radial-gradient(circle at 70% 40%, color-mix(in srgb, var(--hood) 18%, transparent), transparent 46%),
    url("/assets/frieze.jpg") center/cover;
  filter: saturate(.7) contrast(1.05);
}

.guard-list {
  display: grid;
  gap: 1.4rem 2.2rem;
  margin: 2.2rem 0 0;
}
@media (min-width: 640px) { .guard-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .guard-list { grid-template-columns: 1fr 1fr 1fr; } }
.guard { display: flex; gap: .9rem; }
.tick {
  flex: 0 0 24px;
  width: 24px; height: 24px;
  border-radius: 99px;
  display: grid; place-items: center;
  background: var(--royal-tint);
  color: var(--royal);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--royal) 15%, transparent);
  margin-top: 2px;
}
.guard strong { display: block; font-size: 15px; font-weight: 500; }
.guard span { display: block; margin-top: .25rem; font-size: 13.5px; color: var(--muted); line-height: 1.5; }

/* Clock */
.clock-block {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  margin-top: 2rem;
}
@media (min-width: 860px) { .clock-block { grid-template-columns: 1.1fr .9fr; } }
.clock-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow-card);
  padding: 1.4rem;
  color: var(--engraving);
}
.clock-read {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: var(--muted);
}
.clock-read b { color: var(--text); font-weight: 500; }
.state-on { color: var(--hood); }
.state-off { color: var(--warn); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.4rem 0 2.8rem;
  margin-top: 2rem;
}
.foot-grid {
  display: grid;
  gap: 1.8rem;
}
@media (min-width: 800px) {
  .foot-grid { grid-template-columns: 1.3fr 1fr 1fr 1.1fr; }
}
.foot-brand { color: var(--royal); }
.foot-brand p { color: var(--muted); font-size: 13.5px; margin: .7rem 0 0; max-width: 22rem; }
.foot-col h4 {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 .7rem;
}
.foot-col a, .foot-col button {
  display: block;
  font-size: 14px;
  color: var(--ink-secondary);
  padding: .22rem 0;
  text-align: left;
}
.foot-col a:hover, .foot-col button:hover { color: var(--royal); }
.ca-box {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 12px;
  padding: .8rem .9rem;
}
.ca-box .lbl {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
}
.ca-box .val {
  margin-top: .25rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  color: var(--text);
}
.x-soon { opacity: .55; cursor: not-allowed; }
.legal {
  margin-top: 2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--faint);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* App / inner pages */
.page-hero { padding: 2.2rem 0 1.2rem; }
.page-hero h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(32px, 5vw, 48px);
  margin: .4rem 0 0;
  line-height: 1.08;
}
.app-stats { margin-top: 1.4rem; }

.vault-card, .mkt-card, .vote-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}
.vault-card, .vote-card { padding: 1.4rem 1.35rem 1.45rem; }
.mkt-card { padding: 0; overflow: hidden; }
.vault-card { margin-top: 1.6rem; }
.mkt-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}
@media (min-width: 860px) { .mkt-grid { grid-template-columns: 1fr 1fr; } }
.mkt-card h3 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 30px;
  margin: .15rem 0 0;
  line-height: 1;
}
.kv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .7rem 1rem;
  margin-top: 1rem;
}
.kv div span {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
}
.kv div b { display: block; margin-top: .2rem; font-weight: 500; font-size: 15px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: 11.5px;
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: .15rem .55rem;
  color: var(--muted);
}
.vote-card {
  background: linear-gradient(180deg, var(--navy), color-mix(in srgb, var(--navy) 88%, #000));
  color: var(--page);
  margin-bottom: 1rem;
}
.vote-card .kicker { color: var(--gold-line); }
.vote-card h3 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 30px;
  margin: .4rem 0 .5rem;
}
.vote-card p { color: color-mix(in srgb, var(--page) 78%, #8fbf9a); margin: 0 0 1rem; }
.vote-row { margin-bottom: 1rem; }

/* Points */
.meter {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
  margin-top: 1.5rem;
}
.meter-num {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(48px, 8vw, 84px);
  line-height: .9;
}
.point-grid { display: grid; gap: 1rem; margin-top: 1.4rem; }
@media (min-width: 720px) { .point-grid { grid-template-columns: 1fr 1fr; } }
.eq {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
}
.eq b { font-family: "IBM Plex Mono", monospace; }

/* aUSD */
.mint-grid { display: grid; gap: 1rem; margin-top: 1.5rem; }
@media (min-width: 860px) { .mint-grid { grid-template-columns: 1fr 1fr; } }
.field {
  display: flex; justify-content: space-between;
  padding: .7rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.field span { color: var(--muted); }
.field b { font-weight: 500; }
.list-check { margin: .8rem 0 0; padding: 0; list-style: none; color: var(--ink-secondary); font-size: 14px; }
.list-check li { padding: .25rem 0 .25rem 1rem; position: relative; }
.list-check li::before { content: "·"; position: absolute; left: 0; color: var(--gold); }

/* Docs */
.docs-body { max-width: 44rem; }
.docs-body h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 28px;
  margin: 2.2rem 0 .6rem;
}
.docs-body p { color: var(--ink-secondary); line-height: 1.65; }
.docs-body table { margin: 1rem 0 1.4rem; font-size: 14px; }
.docs-body th, .docs-body td {
  text-align: left; padding: .55rem .7rem;
  border-bottom: 1px solid var(--border);
}
.docs-body th { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-family: "IBM Plex Mono", monospace; font-weight: 500; }

/* Modal */
.modal {
  position: fixed; inset: 0; z-index: 70;
  display: none;
  place-items: center;
  padding: 1.2rem;
}
.modal.is-open { display: grid; }
.modal-card {
  position: relative;
  z-index: 2;
  width: min(100%, 420px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow-lift);
  padding: 1.5rem 1.4rem 1.4rem;
  animation: seal-card-in .32s var(--ease) both;
}
.modal-card h3 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 28px;
  margin: .3rem 0 .5rem;
}
.modal-card p { color: var(--ink-secondary); font-size: 14.5px; margin: 0 0 1.1rem; }
@keyframes seal-card-in { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes fade-in { from { opacity: 0; } }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* Animations used by illustrations */
.rosette-spin { animation: orbit 28s linear infinite; transform-origin: 600px 150px; }
.rosette-spin-rev { animation: orbit 36s linear infinite reverse; transform-origin: 600px 150px; }
@keyframes orbit { to { transform: rotate(360deg); } }
.scale-rock { animation: 9s ease-in-out infinite scale-rock; }
@keyframes scale-rock { 0%, 100% { transform: rotate(-2.6deg); } 50% { transform: rotate(2.6deg); } }
.bar-rise { transform-origin: bottom; animation: bar-rise 3.6s var(--ease) infinite; }
@keyframes bar-rise {
  0%, 12% { transform: scaleY(.35); }
  38%, 70% { transform: scaleY(1); }
  92%, 100% { transform: scaleY(.35); }
}
.gauge-sweep { animation: gauge-sweep 4.4s var(--ease) infinite; }
@keyframes gauge-sweep {
  0%, 100% { stroke-dashoffset: 118; }
  45%, 65% { stroke-dashoffset: 42; }
}
.cell-alarm { animation: cell-alarm 6.5s var(--ease) infinite; }
@keyframes cell-alarm {
  0%, 20%, 62%, 100% { border-color: var(--border); background: var(--card); transform: none; }
  27% { transform: translateX(-1.5px); }
  31% { transform: translateX(1.5px); }
  35% { transform: translateX(-1px); }
  27%, 55% { border-color: color-mix(in srgb, var(--bad) 45%, var(--border)); background: color-mix(in srgb, var(--bad) 8%, var(--card)); }
}
.orbit { animation: orbit var(--orbit-dur, 18s) linear infinite; transform-origin: 50% 50%; }
.float-y { animation: float-y 5.5s ease-in-out infinite; }
@keyframes float-y { 50% { transform: translateY(-6px); } }

.nav-link:hover .ico-bar-a { animation: bar-pop .5s var(--ease); }
.nav-link:hover .ico-bar-b { animation: bar-pop .5s var(--ease) 70ms; }
.nav-link:hover .ico-bar-c { animation: bar-pop .5s var(--ease) .14s; }
@keyframes bar-pop { 35% { transform: scaleY(.55); } 70% { transform: scaleY(1.08); } }
.nav-link:hover .ico-flap { animation: flap-lift .55s var(--ease); }
@keyframes flap-lift { 40% { transform: rotate(-13deg) translateY(-.7px); } }
.nav-link:hover .ico-seal { animation: seal-turn .7s var(--ease); }
.nav-link:hover .ico-seal-core { animation: seal-core .7s var(--ease); }
@keyframes seal-turn { to { transform: rotate(60deg); } }
@keyframes seal-core { 45% { transform: scale(1.22); } }
.nav-link:hover .ico-leaf { animation: leaf-turn .65s var(--ease); }
@keyframes leaf-turn { 45% { transform: scaleX(.1) translateX(-.5px); } }

.tip { cursor: help; text-decoration: underline dotted; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse-dot, .tape-run, .rosette-spin, .rosette-spin-rev, .float-y, .bar-rise, .orbit, .gauge-sweep, .scale-rock, .cell-alarm {
    animation: none !important;
  }
  .reveal { opacity: 1; transform: none; }
  .frieze-layer { transform: none !important; }
}

@media (max-width: 640px) {
  .hero-frame { min-height: 390px; border-radius: 18px; }
  .hero-copy { padding: 3.2rem 1rem 4.8rem; }
  .section { padding: 3.2rem 0; }
  .panel h3 { font-size: 32px; }
  .mkts { min-width: 680px; }
}
