:root {
  --bg-1: #dcdcdc; --bg-2: #b9b9b9;
  --ink: #141414; --ink-2: #4a4a4a; --muted: #7a7a7a; --line: rgba(20, 20, 20, .14);
  --ember: #ffb43c;
  --sans: "Space Grotesk", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --gut: clamp(16px, 2.6vw, 40px);
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
body {
  margin: 0; color: var(--ink); font: 400 15px/1.5 var(--sans); background: var(--bg-2);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.is-intro { overflow: hidden; }
.mono { font-family: var(--mono); }
a { color: inherit; text-decoration: none; }

/* background on its own fixed layer: "background-attachment: fixed" repaints the whole page on every scroll */
.bg { position: fixed; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 30% 20%, var(--bg-1), var(--bg-2)); }
#fibers { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
/* the warm light that spills under the scene, like the reference. No blur filter: the gradient is already soft. */
/* Sits behind the fibres and all content (z -1, above only the background), and fibers.js fades it out
   while the content sections are on screen, so it never tints cards or text. */
.glow { position: fixed; left: 10vw; bottom: -20vh; width: 80vw; height: 40vh; z-index: -1; pointer-events: none; will-change: opacity;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255, 180, 60, .5), rgba(255, 180, 60, .18) 45%, rgba(255, 180, 60, 0) 70%); opacity: .7; }

/* ---------- opening hook ---------- */
.intro { position: fixed; inset: 0; z-index: 50; display: grid; place-content: center; justify-items: center; gap: 18px; background: radial-gradient(120% 90% at 30% 20%, var(--bg-1), var(--bg-2)); will-change: clip-path; }
.intro[hidden] { display: none; }
.intro-top { position: absolute; left: var(--gut); right: var(--gut); top: var(--gut); display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-2); }
.intro-top span:first-child { font-weight: 600; color: var(--ink); }
.intro-temp { font: 500 clamp(80px, 17vw, 260px)/.85 var(--sans); letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.intro-temp sup { font-size: .22em; letter-spacing: 0; vertical-align: top; position: relative; top: .5em; margin-left: .1em; color: var(--ink-2); }
.intro-bar { position: relative; width: min(520px, 76vw); height: 1px; background: var(--line); }
.intro-bar i { position: absolute; left: 0; top: -1px; height: 3px; width: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, #8a4a12, var(--ember)); }
.intro-bar i::after { content: ""; position: absolute; right: -5px; top: -3px; width: 9px; height: 9px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 16px 4px rgba(255, 180, 60, .8); }
.intro-steps { display: flex; gap: clamp(10px, 3vw, 34px); font-size: 11px; color: var(--muted); }
.intro-steps span.on { color: var(--ink); }
.intro-line { margin: 10px 0 0; font-size: 12px; color: var(--ink-2); opacity: 0; }

/* ---------- token hook in the hero ---------- */
.token-pill { position: absolute; left: var(--gut); width: max-content; bottom: calc(14vh + 2.76 * clamp(34px, 5.6vw, 92px) + 26px); z-index: 6; display: inline-flex; align-items: center; gap: 10px; padding: 7px 8px 7px 14px; border-radius: 999px; background: #141414; color: #f1efea; font-size: 13px; white-space: nowrap; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .6); transition: translate .3s cubic-bezier(.2, .9, .2, 1); }
.token-pill:hover { translate: 0 -2px; }
.token-pill b { font-weight: 600; letter-spacing: .02em; }
.tp-text { color: #b9b4ab; }
.tp-cta { font-size: 11px; color: #141414; background: var(--ember); padding: 4px 10px; border-radius: 999px; }
.ember-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 0 rgba(255, 180, 60, .7); animation: ember 1.8s ease-out infinite; }
@keyframes ember { 70%, 100% { box-shadow: 0 0 0 9px rgba(255, 180, 60, 0); } }
.aside-cta { display: flex; gap: 8px; flex-wrap: wrap; }
.pill.solid { background: var(--ink); color: var(--bg-1); }
.pill.solid:hover { background: transparent; color: var(--ink); }

/* frame chrome */
.chrome { position: fixed; inset: 0 0 auto 0; z-index: 5; display: flex; align-items: flex-start; padding: var(--gut); pointer-events: none; }
.chrome::before { content: ""; position: absolute; inset: 0 0 -40px 0; z-index: -1; background: linear-gradient(rgba(214, 214, 214, .92), rgba(214, 214, 214, .7) 60%, rgba(214, 214, 214, 0)); opacity: 0; transition: opacity .3s; }
body.scrolled .chrome::before { opacity: 1; }
.chrome > * { pointer-events: auto; }
.brand { font: 600 15px var(--mono); letter-spacing: .04em; }
.ver { position: absolute; left: var(--gut); top: calc(var(--gut) + 30px); font-size: 10.5px; color: var(--muted); }
.nav { margin-left: auto; display: grid; justify-items: end; gap: 2px; font-size: 13px; }
.nav a { color: var(--ink-2); transition: color .2s; }
.nav a:hover { color: var(--ink); }
.nav i { font-style: normal; font-size: 11px; }
/* small chips with their own backing, so they stay readable over any section */
.rail { position: fixed; right: var(--gut); bottom: var(--gut); z-index: 5; font-size: 10.5px; color: var(--muted); padding: 5px 10px; border-radius: 999px; background: color-mix(in srgb, var(--bg-1) 82%, transparent); border: 1px solid var(--line); }
.back { position: fixed; left: var(--gut); bottom: var(--gut); z-index: 5; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: color-mix(in srgb, var(--bg-1) 82%, transparent); font: 400 20px/1 var(--sans); color: var(--ink-2); cursor: pointer; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .35s, transform .35s; }
body.scrolled .back { opacity: 1; transform: none; pointer-events: auto; }
.back:hover { color: var(--ink); border-color: var(--ink); }

main { position: relative; z-index: 2; }
.scene { position: relative; min-height: 100svh; padding: calc(var(--gut) * 3) var(--gut); }
.tag { position: absolute; font-size: 13px; letter-spacing: .3em; color: var(--ink-2); }

/* ( A ) */
.a .head { position: absolute; left: var(--gut); bottom: 14vh; margin: 0; font-weight: 500; font-size: clamp(34px, 5.6vw, 92px); line-height: .92; letter-spacing: -.03em; text-align: right; }
.head .ln { display: block; overflow: hidden; }
.head .ln > span { display: inline-block; }
.head .indent { padding-left: 0.6em; }
.head em { font-style: italic; font-weight: 300; text-transform: lowercase; letter-spacing: -.02em; }
.head b { font-weight: 300; }
.a .tag { left: 66%; top: 56%; }
.a .aside { position: absolute; left: 66%; top: calc(56% + 44px); max-width: 300px; font-size: 13px; color: var(--ink-2); }
.aside p { margin: 0 0 18px; }
.pill { display: inline-block; border: 1px solid var(--ink); border-radius: 999px; padding: 8px 18px; font: 500 12px var(--mono); letter-spacing: .02em; transition: background .25s, color .25s; }
.pill:hover { background: var(--ink); color: var(--bg-1); }
.hint { position: absolute; left: 50%; bottom: 4vh; transform: translateX(-50%); font-size: 11px; color: var(--muted); }

/* ( B ) */
.b .head.small { position: absolute; left: var(--gut); top: 44%; margin: 0; font-weight: 500; font-size: clamp(26px, 3.2vw, 52px); line-height: .98; letter-spacing: -.02em; }
.b .tag { right: 22%; top: 48%; }
.b .note { position: absolute; left: var(--gut); top: calc(44% + 130px); max-width: 300px; font-size: 13px; color: var(--ink-2); margin: 0; }
.b .pill.center { position: absolute; left: 50%; bottom: 8vh; transform: translateX(-50%); }

/* ( C ) */
.c .tag { left: var(--gut); top: 18vh; }
.stages { list-style: none; margin: 0; padding: 0; position: absolute; left: var(--gut); right: var(--gut); bottom: 14vh; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.stages li { border-top: 1px solid var(--line); padding-top: 14px; }
.stages span { font-size: 11px; color: var(--muted); }
.stages b { display: block; margin: 6px 0 6px; font-size: 26px; font-weight: 500; letter-spacing: -.02em; }
.stages p { margin: 0; font-size: 13px; color: var(--ink-2); max-width: 22ch; }

@media (max-width: 760px) {
  .a .head { bottom: 30vh; }
  .a .tag { left: var(--gut); top: auto; bottom: 22vh; }
  .a .aside { left: var(--gut); top: auto; bottom: 6vh; }
  .b .head.small { top: 12vh; }
  .b .note { top: auto; bottom: 18vh; }
  .b .tag { right: var(--gut); top: 14vh; }
  .stages { grid-template-columns: 1fr 1fr; bottom: 8vh; }
  .rail { display: none; }
  .hint { display: none; } /* sat on top of the hero buttons */
  .back { left: auto; right: var(--gut); }
  .glow { left: -10vw; width: 120vw; height: 26vh; bottom: -13vh; }
  /* token pill sits under the logo row on phones, short copy */
  .token-pill { bottom: calc(30vh + 2.76 * clamp(34px, 5.6vw, 92px) + 18px); }

  .tp-text { display: none; }
}

/* launch countdown in the token pill */
.token-pill.launch .tp-cta { font-variant-numeric: tabular-nums; min-width: 72px; text-align: center; }
.token-pill.launch { box-shadow: 0 0 0 1px rgba(255, 180, 60, .45), 0 14px 30px -14px rgba(0, 0, 0, .6); }
.token-pill.live .tp-cta { background: #3aa45a; color: #fff; }
