:root {
  --ink: #090b08;
  --ink-soft: #11150f;
  --paper: #f3f5ea;
  --paper-dim: #c7cbbd;
  --acid: #c9ff36;
  --acid-bright: #e3ff82;
  --line: rgba(243, 245, 234, 0.18);
  --display: "Arial Narrow", "Helvetica Neue Condensed", "Avenir Next Condensed", sans-serif;
  --body: "Helvetica Neue", "Inter", Arial, sans-serif;
  --mono: "SFMono-Regular", "Roboto Mono", "Courier New", monospace;
  --page: min(1320px, calc(100vw - 64px));
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--paper);
  background: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body::selection { color: var(--ink); background: var(--acid); }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; font: inherit; }
img { display: block; max-width: 100%; }

.noise {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  width: 100%;
  height: 2px;
  background: transparent;
}
.scroll-progress span { display: block; width: 0; height: 100%; background: var(--acid); }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 32px;
  border-bottom: 1px solid transparent;
  transition: background 300ms ease, border-color 300ms ease, height 300ms ease;
}
.site-header.is-scrolled {
  height: 64px;
  background: rgba(9, 11, 8, 0.84);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; width: max-content; align-items: center; gap: 10px; }
.brand img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.brand span {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: -0.06em;
  transform: skewX(-8deg);
}
.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  position: relative;
  color: rgba(243, 245, 234, 0.72);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 200ms ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 100%;
  height: 1px;
  background: var(--acid);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms ease;
}
.nav a:hover { color: var(--paper); }
.nav a:hover::after { transform: scaleX(1); }
.header-action {
  justify-self: end;
  padding: 10px 15px;
  border: 1px solid rgba(243, 245, 234, 0.42);
  font-family: var(--mono);
  font-size: 0.73rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 220ms ease, background 220ms ease, border-color 220ms ease;
}
.header-action span { color: var(--acid); }
.header-action:hover { color: var(--ink); background: var(--acid); border-color: var(--acid); }
.header-action:hover span { color: inherit; }

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #030503;
}
.hero-art {
  position: absolute;
  inset: -3%;
  width: 106%;
  height: 106%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.9) contrast(1.04);
  transform: scale(1.04);
  animation: hero-breathe 16s ease-in-out infinite alternate;
}
@keyframes hero-breathe { to { transform: scale(1.08); } }
.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 5, 3, 0.96) 0%, rgba(3, 5, 3, 0.76) 32%, rgba(3, 5, 3, 0.08) 68%),
    linear-gradient(0deg, #050705 0%, transparent 34%, rgba(0, 0, 0, 0.2) 100%);
}
.hero-orbit { position: absolute; right: 5vw; top: 14vh; width: 30vw; aspect-ratio: 1; opacity: 0.34; }
.hero-orbit i {
  position: absolute;
  inset: calc(var(--i, 0) * 10%);
  border: 1px solid rgba(201, 255, 54, 0.38);
  border-radius: 50%;
  animation: orbit 16s linear infinite;
}
.hero-orbit i:nth-child(2) { --i: 1; animation-duration: 22s; animation-direction: reverse; }
.hero-orbit i:nth-child(3) { --i: 2; animation-duration: 12s; }
.hero-orbit i::after { content: ""; position: absolute; top: 6%; left: 25%; width: 5px; height: 5px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 14px var(--acid); }
@keyframes orbit { to { transform: rotate(360deg); } }

.hero-copy {
  position: relative;
  z-index: 2;
  width: var(--page);
  margin: 0 auto;
  padding: 142px 0 104px;
}
.eyebrow, .kicker {
  margin: 0 0 22px;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.eyebrow::before, .kicker::before { content: "//"; margin-right: 10px; opacity: 0.65; }
.display-title {
  max-width: 830px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.2rem, 6.5vw, 6.6rem);
  font-stretch: condensed;
  font-weight: 900;
  line-height: 0.87;
  letter-spacing: -0.075em;
  text-transform: uppercase;
}
.display-title span { display: block; }
.display-title span:last-child { color: transparent; -webkit-text-stroke: 1px rgba(243, 245, 234, 0.78); }
.hero-turn { display: flex; align-items: baseline; gap: 18px; margin-top: 36px; }
.hero-turn p { margin: 0; color: var(--paper-dim); font-size: clamp(1rem, 1.5vw, 1.3rem); }
.hero-turn strong {
  color: var(--acid);
  font-family: var(--display);
  font-size: clamp(2.1rem, 3.2vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1;
  text-transform: uppercase;
  transform: skewX(-8deg);
}
.hero-actions, .token-actions, .finale-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.button {
  position: relative;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  overflow: hidden;
  border: 1px solid rgba(243, 245, 234, 0.4);
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: transform 240ms var(--ease), color 240ms ease, background 240ms ease, border-color 240ms ease;
}
.button:hover { transform: translateY(-3px); }
.button-primary { color: var(--ink); background: var(--acid); border-color: var(--acid); }
.button-primary:hover { background: var(--acid-bright); }
.button-ghost { background: rgba(9, 11, 8, 0.28); backdrop-filter: blur(8px); }
.button-ghost:hover { color: var(--ink); background: var(--paper); border-color: var(--paper); }
.scroll-cue {
  position: absolute;
  right: 32px;
  bottom: 38px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 13px;
  color: rgba(243, 245, 234, 0.64);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
.scroll-cue i { width: 1px; height: 46px; overflow: hidden; background: rgba(243, 245, 234, 0.24); }
.scroll-cue i::after { content: ""; display: block; width: 100%; height: 50%; background: var(--acid); animation: descend 1.9s ease-in-out infinite; }
@keyframes descend { 0% { transform: translateY(-110%); } 100% { transform: translateY(220%); } }

.ticker { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--acid); color: var(--ink); }
.ticker-track { display: flex; width: max-content; align-items: center; gap: 28px; padding: 13px 0; animation: ticker 28s linear infinite; }
.ticker span { font-family: var(--mono); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; }
.ticker i { font-family: var(--display); font-size: 1.5rem; font-weight: 900; line-height: 1; }
@keyframes ticker { to { transform: translateX(-50%); } }

.chapter {
  position: relative;
  width: var(--page);
  margin: 0 auto;
  padding: 150px 0;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.35fr);
  gap: clamp(50px, 8vw, 130px);
  align-items: center;
}
.chapter-two { grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.82fr); }
.chapter-index {
  position: absolute;
  top: 54px;
  left: 0;
  color: rgba(243, 245, 234, 0.44);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}
.chapter h2, .token-copy h2, .principles h2, .finale h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.65rem, 4.8vw, 5.25rem);
  font-stretch: condensed;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.065em;
  text-transform: uppercase;
}
.chapter-copy > p:not(.kicker), .token-copy > p:not(.kicker) {
  max-width: 540px;
  margin: 30px 0 0;
  color: var(--paper-dim);
  font-size: 1.05rem;
  line-height: 1.75;
}
.chapter-copy blockquote {
  margin: 38px 0 0;
  padding: 0 0 0 18px;
  border-left: 2px solid var(--acid);
  color: var(--paper);
  font-size: 0.96rem;
  line-height: 1.6;
}
.chapter-media { margin: 0; overflow: hidden; }
.chapter-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: saturate(0.8) contrast(1.04);
  transition: transform 1.1s var(--ease), filter 500ms ease;
}
.chapter-media:hover img { transform: scale(1.035); filter: saturate(1) contrast(1.05); }
.chapter-media figcaption {
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: rgba(243, 245, 234, 0.48);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.interlude { position: relative; min-height: 56vw; max-height: 790px; overflow: hidden; }
.interlude > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.5) saturate(0.7); }
.interlude::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--ink), transparent 24%, transparent 72%, var(--ink)); }
.interlude-copy { position: absolute; z-index: 2; left: 50%; top: 50%; width: min(720px, calc(100% - 48px)); text-align: center; transform: translate(-50%, -50%); }
.interlude-copy span { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--acid); }
.interlude-copy p, .interlude-copy strong { display: block; margin: 14px 0 0; font-family: var(--display); font-size: clamp(2rem, 4vw, 4rem); font-weight: 900; line-height: 0.98; letter-spacing: -0.05em; text-transform: uppercase; }
.interlude-copy strong { color: transparent; -webkit-text-stroke: 1px var(--paper); }

.question-sequence { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 38px; }
.question-sequence span, .question-sequence strong { padding: 9px 12px; border: 1px solid var(--line); font-family: var(--mono); font-size: 0.72rem; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; }
.question-sequence span { color: rgba(243, 245, 234, 0.42); text-decoration: line-through; }
.question-sequence strong { color: var(--ink); background: var(--acid); border-color: var(--acid); }

.token-section {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(420px, 0.75fr);
  min-height: 860px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}
.token-visual { position: relative; min-height: 720px; overflow: hidden; }
.token-visual img { width: 100%; height: 100%; object-fit: cover; }
.token-symbol {
  position: absolute;
  right: 22px;
  bottom: -42px;
  color: rgba(201, 255, 54, 0.92);
  font-family: Georgia, serif;
  font-size: 12rem;
  line-height: 1;
  mix-blend-mode: screen;
}
.token-copy { align-self: center; padding: clamp(50px, 7vw, 110px); }
.token-copy .kicker { color: #587214; }
.token-copy > p:not(.kicker) { color: rgba(9, 11, 8, 0.68); }
.token-facts { margin: 38px 0 0; border-top: 1px solid rgba(9, 11, 8, 0.18); }
.token-facts div { display: flex; justify-content: space-between; gap: 30px; padding: 14px 0; border-bottom: 1px solid rgba(9, 11, 8, 0.18); }
.token-facts dt { color: rgba(9, 11, 8, 0.52); font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.token-facts dd { margin: 0; font-weight: 600; }
.contract-block { margin-top: 26px; }
.contract-block > span { display: block; margin-bottom: 9px; color: rgba(9, 11, 8, 0.52); font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; }
.copy-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 15px;
  cursor: pointer;
  border: 1px solid rgba(9, 11, 8, 0.22);
  background: rgba(9, 11, 8, 0.035);
  transition: background 220ms ease, border-color 220ms ease;
}
.copy-button:hover { border-color: var(--ink); background: white; }
.copy-button code { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-family: var(--mono); font-size: 0.76rem; }
.copy-label { flex: 0 0 auto; color: #587214; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; }
.token-copy .button-primary { background: var(--ink); color: var(--acid); border-color: var(--ink); }
.token-copy .button-primary:hover { color: var(--paper); }
.text-link { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; border-bottom: 1px solid rgba(9, 11, 8, 0.4); }

.principles { position: relative; width: var(--page); margin: 0 auto; padding: 150px 0; }
.principles .chapter-index { top: 52px; }
.principles-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 50px; }
.principles-intro .kicker { align-self: flex-start; }
.principle-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 76px; border-top: 1px solid var(--line); }
.principle-grid article { min-height: 290px; padding: 24px 26px 28px 0; border-right: 1px solid var(--line); }
.principle-grid article + article { padding-left: 26px; }
.principle-grid article:last-child { border-right: 0; }
.principle-grid span { color: var(--acid); font-family: var(--mono); font-size: 0.68rem; }
.principle-grid h3 { margin: 98px 0 10px; font-family: var(--display); font-size: clamp(1.9rem, 3vw, 3.1rem); letter-spacing: -0.05em; line-height: 1; text-transform: uppercase; }
.principle-grid p { max-width: 260px; margin: 0; color: var(--paper-dim); }

.finale { position: relative; min-height: 82svh; display: flex; align-items: center; overflow: hidden; }
.finale > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.finale-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3, 5, 3, 0.96), rgba(3, 5, 3, 0.54) 44%, rgba(3, 5, 3, 0.12)), linear-gradient(0deg, #050705, transparent 35%); }
.finale-copy { position: relative; z-index: 2; width: var(--page); margin: 0 auto; }
.finale-copy .chapter-index { position: static; margin-bottom: 42px; }
.finale-copy > p:not(.kicker) { margin: 28px 0 0; color: var(--paper-dim); font-size: 1.12rem; }
.button-ghost.light { background: rgba(9, 11, 8, 0.4); }

.site-footer { width: var(--page); margin: 0 auto; padding: 56px 0 30px; display: grid; grid-template-columns: 1fr auto; gap: 44px; align-items: start; }
.footer-mark { display: flex; align-items: center; gap: 15px; }
.footer-mark img { width: 54px; height: 54px; border-radius: 50%; }
.footer-mark strong { display: block; font-family: var(--display); font-size: 1.6rem; letter-spacing: -0.06em; line-height: 1; }
.footer-mark span { display: block; margin-top: 6px; color: rgba(243, 245, 234, 0.48); font-size: 0.82rem; }
.footer-links { display: flex; gap: 20px; }
.footer-links a, .footer-links button { padding: 0; cursor: pointer; border: 0; background: transparent; color: var(--paper-dim); font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.07em; text-transform: uppercase; transition: color 180ms ease; }
.footer-links a:hover, .footer-links button:hover { color: var(--acid); }
.site-footer > p { grid-column: 1 / -1; margin: 0; padding-top: 24px; border-top: 1px solid var(--line); color: rgba(243, 245, 234, 0.36); font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; }

.toast { position: fixed; z-index: 130; right: 24px; bottom: 24px; padding: 13px 18px; color: var(--ink); background: var(--acid); font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.07em; text-transform: uppercase; transform: translateY(24px); opacity: 0; pointer-events: none; transition: opacity 220ms ease, transform 300ms var(--ease); }
.toast.is-visible { opacity: 1; transform: translateY(0); }

.reveal { opacity: 0; transform: translateY(34px); transition: opacity 800ms ease, transform 900ms var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  :root { --page: min(100% - 40px, 720px); }
  .site-header { padding: 0 20px; grid-template-columns: 1fr auto; }
  .nav { display: none; }
  .hero-copy { padding-bottom: 88px; }
  .display-title { max-width: 660px; font-size: clamp(3rem, 10.6vw, 5.7rem); }
  .hero-vignette { background: linear-gradient(90deg, rgba(3, 5, 3, 0.94), rgba(3, 5, 3, 0.45) 68%, rgba(3, 5, 3, 0.1)), linear-gradient(0deg, #050705 0%, transparent 42%); }
  .scroll-cue { display: none; }
  .chapter, .chapter-two { padding: 116px 0; grid-template-columns: 1fr; gap: 44px; }
  .chapter-two .chapter-media { order: 2; }
  .chapter-two .chapter-copy { order: 1; }
  .chapter-index { top: 40px; }
  .interlude { min-height: 680px; }
  .token-section { grid-template-columns: 1fr; min-height: auto; }
  .token-visual { min-height: 75vw; }
  .token-copy { padding: 78px max(20px, calc((100vw - 720px) / 2)); }
  .principles { padding: 118px 0; }
  .principles .chapter-index { top: 40px; }
}

@media (max-width: 640px) {
  :root { --page: calc(100% - 32px); }
  .site-header { height: 66px; padding: 0 16px; }
  .site-header.is-scrolled { height: 58px; }
  .brand img { width: 28px; height: 28px; }
  .header-action { padding: 8px 11px; }
  .header-action span { display: none; }
  .hero { min-height: 830px; align-items: flex-end; }
  .hero-art { inset: 0; width: 100%; height: 100%; object-position: 61% center; }
  .hero-vignette { background: linear-gradient(0deg, #030503 0%, rgba(3, 5, 3, 0.78) 50%, rgba(3, 5, 3, 0.2) 100%); }
  .hero-orbit { width: 72vw; right: -18vw; top: 15vh; }
  .hero-copy { padding: 120px 0 54px; }
  .eyebrow { margin-bottom: 16px; }
  .display-title { font-size: clamp(2.8rem, 14.8vw, 4.55rem); line-height: 0.9; }
  .hero-turn { margin-top: 26px; }
  .hero-actions { margin-top: 28px; }
  .button { min-height: 46px; padding: 0 17px; }
  .chapter, .chapter-two { padding: 100px 0; gap: 36px; }
  .chapter h2, .token-copy h2, .principles h2, .finale h2 { font-size: clamp(2.55rem, 13vw, 4rem); }
  .chapter-copy > p:not(.kicker), .token-copy > p:not(.kicker) { font-size: 1rem; line-height: 1.68; }
  .chapter-media img { aspect-ratio: 4 / 3; }
  .chapter-media figcaption span:last-child { display: none; }
  .interlude { min-height: 590px; }
  .interlude > img { object-position: 65% center; }
  .interlude-copy { width: calc(100% - 32px); }
  .token-visual { min-height: 118vw; }
  .token-copy { padding: 66px 16px 78px; }
  .principles-intro { display: block; }
  .principle-grid { grid-template-columns: 1fr; margin-top: 54px; }
  .principle-grid article, .principle-grid article + article { min-height: 0; padding: 24px 0 28px; border-right: 0; border-bottom: 1px solid var(--line); }
  .principle-grid h3 { margin-top: 44px; }
  .finale { min-height: 760px; align-items: flex-end; }
  .finale > img { object-position: 42% center; }
  .finale-shade { background: linear-gradient(0deg, #030503 3%, rgba(3, 5, 3, 0.78) 48%, rgba(3, 5, 3, 0.08)); }
  .finale-copy { padding-bottom: 66px; }
  .site-footer { grid-template-columns: 1fr; gap: 28px; padding-top: 44px; }
  .footer-links { flex-wrap: wrap; gap: 14px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
