:root {
  --ink: #0b0c0e;
  --paper: #e9e6dd;
  --rust: #d9552a;
  --rust-dark: #7c2b1b;
  --acid: #c7ff2e;
  --steel: #848581;
  --line: rgba(233, 230, 221, .18);
  --impact: 0;
}

* { box-sizing: border-box; }
html { max-width: 100%; scroll-behavior: smooth; background: var(--ink); overflow-x: clip; }
body {
  margin: 0;
  color: var(--paper);
  background:
    radial-gradient(circle at 72% 18%, rgba(217, 85, 42, .16), transparent 28rem),
    linear-gradient(115deg, #0b0c0e 0%, #121417 55%, #090a0b 100%);
  font-family: Arial, Helvetica, sans-serif;
  max-width: 100%;
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.grain {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: .08;
  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='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.cursor-glow {
  position: fixed;
  width: 26rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(199, 255, 46, .07), transparent 68%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

.site-header {
  position: relative;
  z-index: 20;
  max-width: 1500px;
  margin: 0 auto;
  height: 86px;
  padding: 0 3vw;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  width: max-content;
  font-weight: 900;
  letter-spacing: -.03em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.4rem;
  aspect-ratio: 1;
  color: var(--ink);
  background: var(--acid);
  border-radius: 50%;
  font-size: .85rem;
  transform: rotate(-8deg);
}

nav { display: flex; gap: 2rem; }
nav a {
  color: rgba(233, 230, 221, .62);
  font: 700 .74rem/1 monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: color .2s ease;
}
nav a:hover, nav a:focus-visible { color: var(--acid); }

.header-buy {
  justify-self: end;
  padding: .75rem 1rem;
  border: 1px solid var(--paper);
  font: 800 .75rem/1 monospace;
  letter-spacing: .08em;
  transition: background .2s, color .2s;
}
.header-buy:hover, .header-buy:focus-visible { background: var(--paper); color: var(--ink); }

.hero {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 86px);
  max-width: 1500px;
  margin: 0 auto;
  padding: 6vh 3vw 7vh;
  display: grid;
  grid-template-columns: minmax(360px, .92fr) minmax(380px, .78fr) 220px;
  gap: 2vw;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
}

.hero::before {
  content: "67";
  position: absolute;
  z-index: -2;
  right: 4%;
  top: -4%;
  color: transparent;
  -webkit-text-stroke: 1px rgba(233, 230, 221, .07);
  font: 900 clamp(20rem, 35vw, 38rem)/.8 Arial Black, sans-serif;
  letter-spacing: -.13em;
}

.hero-orbit {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(199, 255, 46, .13);
  border-radius: 50%;
  pointer-events: none;
}
.orbit-one { width: 44vw; aspect-ratio: 1; right: 8%; animation: rotate 28s linear infinite; }
.orbit-two { width: 30vw; aspect-ratio: 1; right: 15%; border-style: dashed; animation: rotate 20s linear infinite reverse; }
.orbit-one::after, .orbit-two::after {
  content: "";
  position: absolute;
  width: .5rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--acid);
  top: 18%;
  left: 10%;
  box-shadow: 0 0 20px var(--acid);
}

.kicker, .section-label {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin: 0 0 1.5rem;
  color: var(--acid);
  font: 700 .75rem/1.2 monospace;
  letter-spacing: .14em;
}
.kicker span { width: 2.5rem; height: 1px; background: var(--acid); }

h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 1.4rem;
  font: 900 clamp(4rem, 7.3vw, 8rem)/.77 Arial Black, Arial, sans-serif;
  letter-spacing: -.085em;
  text-transform: uppercase;
}
h1 em { color: var(--rust); font-style: normal; }
.hero-intro {
  max-width: 31rem;
  margin-bottom: 1.8rem;
  color: rgba(233, 230, 221, .68);
  font-size: clamp(1rem, 1.15vw, 1.2rem);
  line-height: 1.55;
}
.hero-intro strong { color: var(--paper); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: 13rem;
  padding: .95rem 1rem;
  border: 1px solid var(--line);
  font: 800 .76rem/1 monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: transform .2s, background .2s, color .2s;
}
.button:hover, .button:focus-visible { transform: translateY(-3px); }
.button-primary { background: var(--acid); color: var(--ink); border-color: var(--acid); }
.button-ghost:hover, .button-ghost:focus-visible { border-color: var(--paper); }

.hero-visual { position: relative; align-self: center; }
.portrait-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: #26211e;
  border: 1px solid rgba(233, 230, 221, .3);
  box-shadow: 1.5rem 1.5rem 0 rgba(217, 85, 42, .16), 0 30px 100px rgba(0, 0, 0, .5);
  transform: rotate(calc(-1.5deg + var(--mx, 0deg))) rotateY(var(--my, 0deg));
  transition: transform .18s ease-out;
}
.portrait-wrap img { width: 100%; height: 100%; display: block; object-fit: cover; filter: saturate(.83) contrast(1.06); }
.portrait-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1rem rgba(10, 11, 12, .08);
  pointer-events: none;
}
.scanline {
  position: absolute;
  inset: -100% 0 auto;
  height: 50%;
  background: linear-gradient(transparent, rgba(199, 255, 46, .1), transparent);
  animation: scan 7s ease-in-out infinite;
}
.portrait-stamp {
  position: absolute;
  right: .8rem;
  bottom: .8rem;
  padding: .45rem .65rem;
  color: var(--acid);
  border: 2px solid var(--acid);
  font: 900 .7rem/.95 monospace;
  letter-spacing: .08em;
  transform: rotate(-8deg);
  mix-blend-mode: difference;
}
.visual-index {
  position: absolute;
  z-index: 2;
  left: -1rem;
  top: -2.5rem;
  font: .65rem/1.2 monospace;
  letter-spacing: .12em;
}
.visual-index strong { color: var(--rust); font-size: 1.1rem; }
.visual-caption {
  margin-top: 1.1rem;
  display: flex;
  justify-content: space-between;
  color: rgba(233, 230, 221, .48);
  font: .65rem/1 monospace;
  letter-spacing: .08em;
}

.impact-panel {
  align-self: end;
  margin-bottom: 5vh;
  padding: 1rem;
  background: rgba(8, 9, 10, .7);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.panel-topline { display: flex; justify-content: space-between; font: 700 .64rem/1 monospace; letter-spacing: .08em; }
.live-dot { color: var(--acid); }
.live-dot::before { content: "● "; animation: blink 1.2s steps(1) infinite; }
.impact-core {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  margin: 1rem 0;
  padding: 0;
  display: grid;
  place-content: center;
  gap: .3rem;
  color: var(--paper);
  background: radial-gradient(circle, rgba(217, 85, 42, calc(.18 + var(--impact) * .45)), #111 60%);
  border: 1px solid rgba(217, 85, 42, .5);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 calc(6rem * var(--impact)) rgba(217, 85, 42, .32), inset 0 0 2rem rgba(0,0,0,.6);
  user-select: none;
  touch-action: manipulation;
  transition: transform .15s, border-color .2s;
}
.impact-core::before, .impact-core::after { content: ""; position: absolute; inset: 9%; border: 1px dashed rgba(233,230,221,.2); border-radius: 50%; animation: rotate 11s linear infinite; }
.impact-core::after { inset: 21%; animation-direction: reverse; }
.impact-core:active, .impact-core.charging { transform: scale(.96); border-color: var(--acid); }
.impact-number { font: 900 2.2rem/1 Arial Black, sans-serif; letter-spacing: -.07em; }
.impact-label { font: 700 .54rem/1 monospace; letter-spacing: .08em; }
.meter { height: 3px; background: rgba(233,230,221,.12); overflow: hidden; }
.meter span { display: block; width: 0; height: 100%; background: var(--acid); box-shadow: 0 0 8px var(--acid); }
.impact-status { min-height: 2.5em; margin: .8rem 0 0; color: rgba(233,230,221,.5); font: .65rem/1.35 monospace; }

.manifesto, .protocol, .signal { max-width: 1500px; margin: 0 auto; padding: 9rem 3vw; }
.manifesto { border-top: 1px solid var(--line); }
.manifesto-copy { display: grid; grid-template-columns: 1.6fr .6fr; gap: 7vw; align-items: end; }
.oversized-quote {
  margin: 0;
  font: 900 clamp(3rem, 6.5vw, 7rem)/.87 Arial Black, sans-serif;
  letter-spacing: -.075em;
}
.oversized-quote span { color: transparent; -webkit-text-stroke: 1px var(--rust); }
.origin-note { border-left: 1px solid var(--rust); padding-left: 1.5rem; color: rgba(233,230,221,.62); font-size: 1rem; line-height: 1.6; }
.origin-note p:first-child { color: var(--paper); font-weight: 700; }

.protocol { background: var(--paper); color: var(--ink); max-width: none; padding-left: max(3vw, calc((100vw - 1500px)/2 + 3vw)); padding-right: max(3vw, calc((100vw - 1500px)/2 + 3vw)); }
.protocol .section-label { color: var(--rust-dark); }
.protocol h2, .signal h2 { margin-bottom: 4rem; font: 900 clamp(4rem, 9vw, 10rem)/.76 Arial Black, sans-serif; letter-spacing: -.085em; }
.rules { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(11,12,14,.35); }
.rule-card { position: relative; min-height: 22rem; padding: 1.4rem 4rem 1rem 0; border-right: 1px solid rgba(11,12,14,.22); }
.rule-card + .rule-card { padding-left: 2rem; }
.rule-card:last-child { border-right: 0; }
.rule-num { font: 700 .7rem/1 monospace; color: var(--rust-dark); }
.rule-card h3 { max-width: 13rem; margin: 6rem 0 1rem; font: 900 1.8rem/.9 Arial Black, sans-serif; letter-spacing: -.05em; }
.rule-card p { max-width: 18rem; line-height: 1.5; color: rgba(11,12,14,.65); }
.rule-vector { position: absolute; top: 1rem; right: 1.5rem; color: var(--rust); font: 300 3rem/1 Arial, sans-serif; }

.signal { position: relative; min-height: 90vh; display: grid; grid-template-columns: 1fr 1fr; gap: 9vw; align-items: center; overflow: hidden; }
.signal::before { content: ""; position: absolute; width: 55vw; aspect-ratio: 1; right: -20%; border: 1px solid rgba(217,85,42,.18); border-radius: 50%; box-shadow: 0 0 0 5vw rgba(217,85,42,.025), 0 0 0 10vw rgba(217,85,42,.02); }
.signal-grid { position: absolute; inset: 0; opacity: .12; background-image: linear-gradient(rgba(233,230,221,.2) 1px, transparent 1px), linear-gradient(90deg, rgba(233,230,221,.2) 1px, transparent 1px); background-size: 67px 67px; mask-image: linear-gradient(to right, black, transparent 75%); }
.signal-copy, .contract-card { position: relative; z-index: 1; }
.signal h2 { margin: 0 0 2rem; color: var(--rust); }
.signal-copy > p:last-child { max-width: 27rem; color: rgba(233,230,221,.62); font-size: 1.15rem; line-height: 1.5; }
.signal-copy strong { color: var(--paper); }
.contract-card { padding: 2rem; background: rgba(233,230,221,.055); border: 1px solid var(--line); backdrop-filter: blur(16px); }
.contract-card > p:first-child { font: 700 .7rem/1 monospace; letter-spacing: .12em; color: var(--acid); }
.contract-row { display: grid; grid-template-columns: 1fr auto; border: 1px solid rgba(233,230,221,.25); }
.contract-row code { padding: 1.2rem; overflow: hidden; text-overflow: ellipsis; color: rgba(233,230,221,.8); font-size: .8rem; white-space: nowrap; }
.contract-row button { border: 0; border-left: 1px solid rgba(233,230,221,.25); padding: 0 1.2rem; color: var(--ink); background: var(--acid); cursor: pointer; font: 800 .7rem/1 monospace; }
.contract-hint { margin: .8rem 0 2rem; color: rgba(233,230,221,.4); font-size: .72rem; }
.contract-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.contract-actions a { display: flex; justify-content: space-between; padding: 1rem; border: 1px solid rgba(233,230,221,.25); font: 700 .7rem/1 monospace; transition: background .2s, color .2s; }
.contract-actions a:hover, .contract-actions a:focus-visible { background: var(--paper); color: var(--ink); }

footer { max-width: 1500px; margin: 0 auto; padding: 2rem 3vw; display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 2rem; align-items: center; border-top: 1px solid var(--line); color: rgba(233,230,221,.4); font: .65rem/1.5 monospace; }
footer p { margin: 0; }
footer p:last-child { text-align: right; }
.footer-brand { color: var(--paper); }

.momentum-flash { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; pointer-events: none; opacity: 0; background: rgba(199,255,46,.9); color: var(--ink); }
.momentum-flash span { font: 900 clamp(5rem, 18vw, 17rem)/1 Arial Black, sans-serif; letter-spacing: -.09em; transform: scale(.7); }
.momentum-flash.fire { animation: flash .68s ease-out; }
.impact-particle { position: fixed; z-index: 110; width: 7px; height: 7px; background: var(--acid); pointer-events: none; animation: particle .7s ease-out forwards; }
body.unstoppable::after { content: "UNSTOPPABLE MODE"; position: fixed; z-index: 40; inset: auto 0 0; padding: .6rem; color: var(--ink); background: var(--acid); text-align: center; font: 900 .68rem/1 monospace; letter-spacing: .18em; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.8,.2,1); }
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }
.reveal.visible { opacity: 1; transform: none; }

@keyframes rotate { to { transform: rotate(360deg); } }
@keyframes scan { 0%,20% { transform: translateY(0); } 70%,100% { transform: translateY(400%); } }
@keyframes blink { 50% { opacity: .25; } }
@keyframes flash { 0% { opacity: 0; } 12% { opacity: 1; } 100% { opacity: 0; } }
@keyframes particle { to { transform: translate(var(--x), var(--y)) rotate(280deg); opacity: 0; } }

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr 1fr; padding-top: 4rem; }
  .impact-panel { grid-column: 1 / -1; width: min(100%, 540px); margin: 0 auto; display: grid; grid-template-columns: auto 110px 1fr; gap: 1rem; align-items: center; }
  .panel-topline { display: block; }
  .live-dot { display: block; margin-top: .6rem; }
  .impact-core { margin: 0; }
  .impact-status { margin: .5rem 0 0; }
  .meter { grid-column: 3; }
  .manifesto-copy { grid-template-columns: 1fr; }
  .origin-note { max-width: 34rem; }
}

@media (max-width: 760px) {
  .site-header { height: 72px; grid-template-columns: 1fr auto; padding: 0 1rem; }
  nav { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding: 3.5rem 1rem 5rem; gap: 4rem; }
  .hero-copy { order: 1; }
  .hero-visual { order: 2; margin: 0 .5rem; }
  .impact-panel { order: 3; grid-template-columns: 1fr 110px; width: 100%; }
  .impact-panel > div:nth-of-type(2), .impact-status { grid-column: 1; }
  .impact-core { grid-column: 2; grid-row: 1 / span 2; }
  .meter { grid-column: 1; }
  h1 { font-size: clamp(4rem, 18vw, 6.2rem); }
  .hero-intro { font-size: 1rem; }
  .button { flex: 1 1 100%; }
  .orbit-one { width: calc(100vw - 2rem); right: 1rem; }
  .orbit-two { width: 72vw; right: 8vw; }
  .manifesto, .protocol, .signal { padding: 6rem 1rem; }
  .oversized-quote { font-size: clamp(2.7rem, 13vw, 5rem); }
  .protocol h2, .signal h2 { font-size: clamp(3.7rem, 18vw, 7rem); }
  .rules { grid-template-columns: 1fr; }
  .rule-card, .rule-card + .rule-card { min-height: 15rem; padding: 1.4rem 4rem 1.8rem 0; border-right: 0; border-bottom: 1px solid rgba(11,12,14,.22); }
  .rule-card h3 { margin-top: 3.5rem; }
  .signal { min-height: auto; grid-template-columns: 1fr; gap: 4rem; }
  .contract-card { padding: 1rem; }
  .contract-actions { grid-template-columns: 1fr; }
  footer { padding: 2rem 1rem; grid-template-columns: 1fr; }
  footer p:last-child { text-align: left; }
  .cursor-glow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .cursor-glow { display: none; }
}

:focus-visible { outline: 2px solid var(--acid); outline-offset: 4px; }
