:root {
  --tint: 243, 236, 222;
  --well: rgba(0, 0, 0, .28);
  --gold-text: #F8E6A8;
  --nav-bg: linear-gradient(to bottom, rgba(11, 10, 8, 0.82), rgba(11, 10, 8, 0.35));
  --glow: rgba(217, 174, 82, 0.10);
  --ink: #0B0A08;
  --ink-2: #13110D;
  --ink-3: #1C1914;
  --line: rgba(var(--tint), 0.09);
  --line-2: rgba(var(--tint), 0.16);
  --ivory: #F3ECDE;
  --ivory-2: rgba(var(--tint), 0.66);
  --ivory-3: rgba(var(--tint), 0.42);
  --gold: #D9AE52;
  --gold-hi: #F8E6A8;
  --gold-lo: #8A6418;
  --gold-grad: linear-gradient(135deg, #F8E6A8 0%, #E2BA5C 34%, #B5852B 70%, #74520F 100%);
  --up: #9FD3A6;
  --down: #E8A08E;
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --pad: clamp(16px, 5vw, 64px);
  --max: 1200px;
  color-scheme: dark;
}


/* light theme: paper and ink */
:root[data-theme="light"] {
  --tint: 21, 18, 13;
  --well: rgba(21, 18, 13, .04);
  --gold-text: #8A6418;
  --nav-bg: linear-gradient(to bottom, rgba(246, 241, 231, 0.88), rgba(246, 241, 231, 0.5));
  --glow: rgba(181, 133, 43, 0.12);
  --ink: #F6F1E7;
  --ink-2: #FBF8F2;
  --ink-3: #EFE8DA;
  --ivory: #15120D;
  --gold: #9A6F1C;
  --up: #2F7A3E;
  --down: #B04A33;
  color-scheme: light;
}
:root[data-theme="light"] .btn-gold { color: #1A1308; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: radial-gradient(1200px 700px at 72% -10%, var(--glow), transparent 60%), var(--ink);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; }
.mono { font-family: var(--mono); font-feature-settings: 'tnum' 1; letter-spacing: -0.01em; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--gold-text); }

#dust { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
main, .nav, .foot { position: relative; z-index: 1; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--pad);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 26px; letter-spacing: 0.01em; }
.links { display: flex; gap: 32px; font-size: 14px; color: var(--ivory-2); }
.links a:hover { color: var(--ivory); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font: 500 15px/1 var(--sans); letter-spacing: 0.01em; cursor: pointer; border: 0;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, opacity .2s;
}
.btn.small { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-gold { background: var(--gold-grad); color: #1A1308; box-shadow: 0 10px 40px -12px rgba(217, 174, 82, .55), inset 0 1px 0 rgba(255,255,255,.35); }
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 16px 50px -12px rgba(217, 174, 82, .75), inset 0 1px 0 rgba(255,255,255,.35); }
.btn-ghost { background: rgba(var(--tint), 0.04); color: var(--ivory); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { background: rgba(var(--tint), 0.08); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }

.eyebrow { margin: 0 0 18px; font: 500 12px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(46px, 6.6vw, 96px); line-height: .98; }
h1 em { white-space: nowrap; }
h2 { font-size: clamp(40px, 5.6vw, 72px); line-height: 1; }
h3 { font-size: 18px; font-weight: 500; margin: 0 0 10px; letter-spacing: -0.01em; }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--ivory-2); max-width: 520px; margin: 28px 0 36px; font-weight: 300; }
.body { color: var(--ivory-2); font-size: 17px; font-weight: 300; max-width: 520px; margin: 24px 0; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.cta.center { justify-content: center; }
.textlink { color: var(--gold-text); font-size: 15px; border-bottom: 1px solid rgba(248, 230, 168, .3); padding-bottom: 2px; }
.textlink:hover { border-color: var(--gold-text); }

section { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 12vw, 160px) var(--pad); }

/* hero */
.hero {
  min-height: calc(100svh - 77px);
  display: grid; grid-template-columns: 1.15fr .85fr; grid-template-rows: 1fr auto;
  align-items: center; gap: 24px 40px; padding-top: 48px; padding-bottom: 40px;
}
.hero-copy { position: relative; z-index: 2; }
.hero-mark { position: relative; height: min(68vh, 640px); min-height: 380px; }
#glyph { position: absolute; inset: -8% -12%; width: 124%; height: 116%; }
.ticker {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.ticker > div { padding: 20px 0; display: flex; flex-direction: column; gap: 6px; }
.ticker > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.ticker .k { font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ivory-3); }
.ticker .v { font-size: clamp(18px, 2vw, 24px); }
.v.up { color: var(--up); }
.v.down { color: var(--down); }

/* principle */
.principle blockquote {
  margin: 0; font-family: var(--serif); font-size: clamp(32px, 4.6vw, 60px); line-height: 1.08; letter-spacing: -0.02em; max-width: 980px;
}
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 72px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.grid3 article { background: var(--ink); padding: 36px 32px 40px; }
.grid3 article p { margin: 0; color: var(--ivory-2); font-weight: 300; }

/* portfolio */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.alloc { display: flex; flex-direction: column; gap: 14px; }
.alloc-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: baseline; }
.alloc-row .name { font-size: 16px; }
.alloc-row .name small { color: var(--ivory-3); font-size: 13px; margin-left: 8px; }
.alloc-row .pct { font-family: var(--mono); font-size: 15px; color: var(--ivory-2); }
.alloc-row .bar { grid-column: 1 / -1; height: 3px; border-radius: 3px; background: rgba(var(--tint), .06); overflow: hidden; }
.alloc-row .bar i { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--gold-grad); transition: width 1.4s cubic-bezier(.2, .8, .2, 1); }

/* performance */
.perf-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.perf .big { font-size: clamp(40px, 6vw, 72px); margin: 0; letter-spacing: -0.03em; }
.perf .note { color: var(--ivory-3); font-size: 14px; max-width: 360px; margin: 0; }
#chart { width: 100%; height: clamp(180px, 26vw, 280px); display: block; overflow: visible; }
.chart-x { display: flex; justify-content: space-between; color: var(--ivory-3); font: 12px var(--mono); margin-top: 12px; }

/* how */
.steps { list-style: none; padding: 0; margin: 0 0 64px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.steps .n { display: block; font: 500 13px var(--mono); color: var(--gold); margin-bottom: 18px; }
.steps p { color: var(--ivory-2); font-weight: 300; margin: 0; }
.fees { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border-top: 1px solid var(--line); }
.fees > div { padding: 22px 20px 0 0; }
.fees dt { font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ivory-3); margin-bottom: 10px; }
.fees dd { margin: 0; font-size: 15px; }

/* governance */
.contracts { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.contracts li { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.contracts li span { color: var(--ivory-2); }
.contracts a { color: var(--gold-text); font-size: 14px; }
.contracts a:hover { text-decoration: underline; }

/* access */
.access { text-align: center; display: flex; flex-direction: column; align-items: center; }
.access h2 { margin-top: 28px; }
.access .body { margin: 24px auto 36px; }

/* footer */
.foot { max-width: var(--max); margin: 0 auto; padding: 48px var(--pad) 64px; border-top: 1px solid var(--line); }
.foot-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 28px; font-size: 14px; color: var(--ivory-2); flex-wrap: wrap; }
.foot nav a:hover { color: var(--ivory); }
.legal { color: var(--ivory-3); font-size: 12.5px; line-height: 1.6; max-width: 900px; margin: 32px 0 0; }

/* reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s ease, transform 1.2s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .links { display: none; }
  .hero { grid-template-columns: 1fr; grid-template-rows: auto; min-height: 0; padding-top: 24px; }
  .hero-mark { order: -1; height: 300px; min-height: 0; margin: 0 -16px; }
  #glyph { inset: 0; width: 100%; height: 100%; }
  .ticker { grid-template-columns: 1fr 1fr; }
  .ticker > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .ticker > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .grid3, .steps { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .fees { grid-template-columns: 1fr 1fr; }
  .contracts li { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* meaning */
.meaning { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: center; }
.glyph-big { height: clamp(220px, 30vw, 380px); display: flex; justify-content: center; filter: drop-shadow(0 30px 80px rgba(217, 174, 82, .28)); }
.glyph-big svg { width: auto; }
.meaning .body + .body { margin-top: 0; }
@media (max-width: 900px) {
  .meaning { grid-template-columns: 1fr; gap: 16px; }
  .glyph-big { height: 200px; }
}

.nav-right { display: flex; align-items: center; gap: 10px; }
.lang { min-width: 40px; height: 40px; border-radius: 999px; border: 0; background: transparent; color: var(--ivory-2); font: 500 12px var(--mono); letter-spacing: .1em; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); }
.lang:hover { color: var(--ivory); box-shadow: inset 0 0 0 1px var(--line-2); }

.theme { width: 40px; height: 40px; border-radius: 999px; border: 0; background: transparent; color: var(--ivory-2); cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; }
.theme:hover { color: var(--ivory); box-shadow: inset 0 0 0 1px var(--line-2); }
.theme svg { width: 16px; height: 16px; }

/* team */
.people { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 40px; }
.person { display: flex; align-items: center; gap: 18px; padding: 22px 24px; border-radius: 20px; background: rgba(var(--tint), .03); box-shadow: inset 0 0 0 1px var(--line); transition: background .2s, box-shadow .2s; }
a.person:hover { background: rgba(var(--tint), .06); box-shadow: inset 0 0 0 1px var(--line-2); }
.avatar { width: 52px; height: 52px; flex: none; border-radius: 999px; display: grid; place-items: center; background: var(--gold-grad); color: #1A1308; font: 500 16px var(--mono); letter-spacing: .04em; }
.who { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.who strong { font-weight: 500; font-size: 17px; }
.who span { color: var(--ivory-2); font-size: 14px; }
.li { color: var(--gold-text); font-size: 14px; white-space: nowrap; }
.team .body { margin-top: 28px; }
@media (max-width: 900px) { .people { grid-template-columns: 1fr; } }
