/* Forfeit: black, grey, off-white. One accent with one meaning: off-white is the stake and the main action. */
@font-face { font-family: 'Bricolage Grotesque'; src: url(/assets/fonts/bricolage-grotesque.woff2) format('woff2'); font-weight: 600 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Geist'; src: url(/assets/fonts/geist.woff2) format('woff2'); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url(/assets/fonts/geist-mono.woff2) format('woff2'); font-weight: 400 500; font-style: normal; font-display: swap; }

:root {
  --ground: #0b0b0c;
  --surface: #121214;
  --surface-2: #19191c;
  --line: rgba(236, 233, 227, .08);
  --line-2: rgba(236, 233, 227, .14);
  --line-3: rgba(236, 233, 227, .26);
  --ink: #ece9e3;
  --ink-2: #bdbab4;
  --muted: #8d8a85;
  --grey: #4b4b4f;
  --display: 'Bricolage Grotesque', 'Arial Narrow', system-ui, sans-serif;
  --text: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.still { scroll-behavior: auto; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 16px/1.55 var(--text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* one quiet light behind the object, and still grain: nothing here moves */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(60vmax 50vmax at 72% 46%, rgba(236, 233, 227, .055), transparent 70%);
}
body::after {
  content: ''; position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; }
::selection { background: var(--ink); color: var(--ground); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--ground); padding: 10px 14px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }

/* header */
.top { position: fixed; inset: 0 0 auto; z-index: 40; transition: background .3s var(--ease), border-color .3s var(--ease); border-bottom: 1px solid transparent; }
.top.scrolled { background: rgba(11, 11, 12, .78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark svg { display: block; width: 30px; height: 30px; }
.logo-word svg { display: block; height: 20px; width: auto; }
.nav { display: flex; gap: 4px; margin: 0 auto; padding: 4px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(18, 18, 20, .6); }
.nav a { font-size: 14px; color: var(--ink-2); text-decoration: none; padding: 7px 14px; border-radius: 999px; transition: color .2s, background .2s; }
.nav a:hover, .nav a[aria-current='true'] { color: var(--ink); background: var(--surface-2); }

/* chips, buttons */
.chip { display: inline-flex; align-items: center; gap: 6px; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); border: 1px solid var(--line-3); border-radius: 999px; padding: 6px 10px; white-space: nowrap; }
.chip-soon { color: var(--muted); border-style: dashed; }
.big-chip { font-size: 12px; padding: 12px 16px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px;
  font: 600 15px/1 var(--text); color: var(--ink); text-decoration: none; cursor: pointer;
  background: transparent; border: 1px solid var(--line-3); border-radius: 999px;
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .1s var(--ease);
}
.btn:hover { border-color: var(--ink-2); background: rgba(236, 233, 227, .05); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.btn-primary:hover { background: #fff; border-color: #fff; }
.link { background: none; border: 0; padding: 4px 0; font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); cursor: pointer; text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 4px; }
.link:hover { color: var(--ink); text-decoration-color: var(--ink); }

/* the stage and its poster */
.stage { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -1; opacity: 0; transition: opacity .6s var(--ease); }
.gl-ready .stage { opacity: 1; }
.poster { position: fixed; z-index: -1; right: max(var(--gutter), calc(50vw - 600px)); top: 50%; width: min(36vw, 420px); transform: translateY(-46%); opacity: .95; transition: opacity .5s var(--ease); }
.poster svg { display: block; width: 100%; height: auto; }
.gl-ready .poster { opacity: 0; }

/* chapter tag */
.chapter-tag { position: fixed; left: var(--gutter); bottom: 22px; z-index: 30; display: flex; gap: 10px; align-items: baseline; font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.chapter-tag .n { color: var(--ink); }
.chapter-tag { transition: opacity .25s var(--ease); }
.chapter-tag.off { opacity: 0; }

/* scenes */
main { position: relative; }
.scene { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 96px 0 72px; }
.copy { display: flex; flex-direction: column; align-items: flex-start; }
.copy > * { max-width: 520px; }
.kicker { margin: 0 0 18px; font: 500 12px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
h1, h2 { font-family: var(--display); font-weight: 800; letter-spacing: -.035em; margin: 0; text-wrap: balance; font-variation-settings: 'opsz' 96; }
h1 { font-size: clamp(48px, 7vw, 104px); line-height: .92; max-width: 9.5em !important; }
h2 { font-size: clamp(36px, 4.8vw, 66px); line-height: .96; }
h2.big { font-size: clamp(44px, 6.4vw, 92px); max-width: 11em !important; }
.beat-1 { color: var(--muted); }
.beat-2 { color: var(--ink); }
.lede { margin: 26px 0 0; font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-2); max-width: 34em !important; }
.lede strong { color: var(--ink); font-weight: 600; }
.body { margin: 20px 0 0; color: var(--ink-2); font-size: 17px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.note { margin: 22px 0 0; font: 400 13px/1.5 var(--mono); color: var(--muted); }
.label { font: 500 11px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* cards */
.card { margin-top: 30px; width: 100%; background: rgba(18, 18, 20, .82); border: 1px solid var(--line-2); border-radius: 18px; padding: 20px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font: 400 12px/1.4 var(--mono); color: var(--muted); }
.claim { margin: 16px 0 0; font: 600 21px/1.3 var(--text); letter-spacing: -.01em; }
.facts { margin: 18px 0 0; display: grid; gap: 0; }
.facts > div { display: grid; grid-template-columns: minmax(0, 7.5em) minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.facts dt { font: 500 11px/1.6 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font: 400 14px/1.5 var(--mono); color: var(--ink); }

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; margin-top: 30px; }
.stat { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; border: 1px solid var(--line-2); border-radius: 16px; background: rgba(18, 18, 20, .7); }
.stat .value { font: 500 clamp(22px, 2.4vw, 30px)/1.1 var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }

/* demo market */
.prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.price { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2); }
.price.yes { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.price .side { font: 500 12px/1 var(--mono); letter-spacing: .1em; }
.price .cents { font: 500 30px/1 var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.odds { height: 6px; border-radius: 6px; background: var(--grey); margin-top: 14px; overflow: hidden; }
.odds-yes { display: block; height: 100%; background: var(--ink); transition: width .35s var(--ease); }
.buy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.buy .btn { width: 100%; }
.position { margin: 14px 0 0; font: 400 13px/1.55 var(--mono); color: var(--ink-2); min-height: 3.1em; }

/* the check: the copy stays put while the clock runs */
.scene.tall { display: block; min-height: 230vh; padding: 0; }
.sticky { position: sticky; top: 0; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 96px 0 72px; }
.count { margin: 12px 0 0; font: 500 clamp(34px, 4vw, 46px)/1 var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.hint { margin: 10px 0 0; font: 400 12px/1.4 var(--mono); color: var(--muted); }
.results { list-style: none; margin: 16px 0 0; padding: 0; }
.results li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); opacity: .28; transition: opacity .35s var(--ease); }
.results li.on { opacity: 1; }
.verdict { flex: none; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; }
.verdict.kept { background: var(--ink); color: var(--ground); }
.verdict.lost { color: var(--ink-2); border: 1px solid var(--line-3); text-decoration: line-through; text-decoration-color: var(--muted); }

/* endings */
.seg { display: inline-flex; margin-top: 28px; padding: 4px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(18, 18, 20, .7); }
.seg button { min-width: 112px; height: 42px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font: 600 15px/1 var(--text); cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease); }
.seg button[aria-pressed='true'] { background: var(--ink); color: var(--ground); }
.ending .claim { margin-top: 0; }
.ending .body { margin-top: 10px; font-size: 16px; }

/* ecosystem */
.eco { align-items: center; }
.eco h2 { max-width: 12em; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.eco-card { position: relative; display: flex; flex-direction: column; gap: 10px; margin: 0; min-height: 200px; text-decoration: none; transition: border-color .2s var(--ease), transform .25s var(--ease); }
a.eco-card:hover { border-color: var(--ink-2); transform: translateY(-2px); }
.eco-card.off { border-style: dashed; }
.eco-name { font: 800 30px/1 var(--display); letter-spacing: -.03em; margin-top: auto; }
.eco-card .body { margin: 0; font-size: 14px; }
.go { position: absolute; top: 18px; right: 20px; color: var(--muted); }
.fine { margin: 20px 0 0; font: 400 12px/1.5 var(--mono); color: var(--muted); }

/* join, footer */
.join .copy > * { max-width: 640px; }
.foot { border-top: 1px solid var(--line); background: var(--ground); padding: 34px 0 30px; position: relative; z-index: 1; }
.foot-in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px 24px; }
.foot .fine { margin: 0; }
.nfa { grid-column: 1 / -1; margin: 6px 0 0; font: 400 11px/1.4 var(--text); color: var(--muted); }

/* phones and narrow windows: the object sits up top, the copy below on a fade of the ground */
@media (max-width: 900px) {
  .nav { display: none; }
  .top-in { justify-content: space-between; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .eco-card { min-height: 0; }
  .eco-name { margin-top: 8px; }
}
@media (max-width: 899px) {
  .chapter-tag { display: none; }
  .scene { align-items: flex-end; padding: 46vh 0 48px; }
  .scene.hero { padding-top: 42vh; }
  .scene.eco, .scene.join { padding-top: 96px; align-items: center; }
  .sticky { align-items: flex-end; padding: 40vh 0 32px; }
  .copy { position: relative; }
  /* the copy wrapper is already full width: the scrim only extends up and down */
  .copy::before { content: ''; position: absolute; inset: -72px 0 -48px; z-index: -1; background: linear-gradient(to top, var(--ground) calc(100% - 72px), rgba(11, 11, 12, 0)); pointer-events: none; }
  .copy > * { max-width: 100%; }
  .actions .btn { flex: 1 1 100%; }
  .poster { right: 50%; top: 22vh; width: 52vw; transform: translate(50%, -40%); }
  .card { padding: 16px; }
  .price .cents { font-size: 26px; }
  .foot-in { grid-template-columns: minmax(0, 1fr); }
  .logo-word svg { height: 18px; }
}
@media (max-width: 360px) {
  .seg button { min-width: 0; padding: 0 18px; }
  .facts > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
