@font-face {
  font-family: "Geist";
  src: url("./assets/geist.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("./assets/geist-mono.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --paper: #efe7da;
  --ink: #12110f;
  --muted: #6f6960;
  --pink: #ed4d8a;
  --green: #b8f25e;
  --line: rgba(18, 17, 15, 0.22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Geist", Arial, sans-serif;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
::selection { color: var(--ink); background: var(--green); }

.topbar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 4vw;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-size: 20px;
  font-weight: 720;
  letter-spacing: -0.06em;
}

.wordmark span { color: var(--pink); }

.topbar-right {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.topbar-right > a { border-bottom: 1px solid currentColor; }
.topbar-right > a:hover,
.topbar-right > a:focus-visible { color: var(--pink); }

.online { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.online i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(184, 242, 94, 0.22);
  animation: pulse 2s ease-in-out infinite;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.88fr);
  align-items: center;
  gap: 6vw;
  min-height: calc(100svh - 72px);
  padding: 7vw 6vw 8vw;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(18,17,15,0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18,17,15,0.12) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, black, transparent 62%);
}

.hero-copy { position: relative; z-index: 1; }

.eyebrow,
.section-head > p {
  margin: 0 0 28px;
  color: var(--muted);
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow b {
  padding: 5px 8px;
  color: var(--ink);
  background: var(--green);
}

.hero h1 {
  margin: 0;
  font-size: clamp(68px, 9vw, 144px);
  font-weight: 720;
  line-height: 0.84;
  letter-spacing: -0.09em;
}

.tagline {
  margin: 44px 0 0;
  font-size: clamp(20px, 2.2vw, 31px);
  letter-spacing: -0.04em;
}

.actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 34px;
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.actions a,
.final-call a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 17px;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  transition: transform 160ms ease, color 160ms ease, background 160ms ease;
}

.actions a:hover,
.actions a:focus-visible,
.final-call a:hover,
.final-call a:focus-visible {
  color: var(--ink);
  background: var(--green);
  transform: translateY(-2px);
}

.actions span { color: var(--muted); }

.official-contract {
  display: grid;
  gap: 8px;
  width: min(100%, 660px);
  margin-top: 28px;
  padding: 17px 18px;
  background: rgba(239, 231, 218, 0.72);
  border: 1px solid var(--line);
  font-family: "Geist Mono", monospace;
}

.official-contract span,
.official-contract small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
  text-transform: uppercase;
}

.official-contract a {
  overflow-wrap: anywhere;
  font-size: 11px;
  line-height: 1.5;
}

.official-contract a:hover,
.official-contract a:focus-visible { color: var(--pink); }

.portrait-card {
  position: relative;
  z-index: 1;
  width: min(100%, 600px);
  margin: 0 auto;
  padding: 13px;
  color: var(--paper);
  background: var(--ink);
  box-shadow: 22px 22px 0 var(--pink);
}

.frame-label,
.portrait-card figcaption {
  display: flex;
  justify-content: space-between;
  font-family: "Geist Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.08em;
}

.frame-label { padding: 1px 0 11px; }
.portrait-card figcaption { padding-top: 11px; }

.portrait-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: #d6cbbb;
}

.portrait-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scanline {
  position: absolute;
  inset: -24% 0 auto;
  height: 24%;
  background: linear-gradient(transparent, rgba(237,77,138,0.34), transparent);
  mix-blend-mode: color-burn;
  animation: scan 5s linear infinite;
}

.corner { position: absolute; width: 20px; height: 20px; border-color: var(--green); }
.corner.tl { top: 16px; left: 16px; border-top: 2px solid; border-left: 2px solid; }
.corner.tr { top: 16px; right: 16px; border-top: 2px solid; border-right: 2px solid; }
.corner.bl { bottom: 16px; left: 16px; border-bottom: 2px solid; border-left: 2px solid; }
.corner.br { bottom: 16px; right: 16px; border-bottom: 2px solid; border-right: 2px solid; }

.ticker {
  overflow: hidden;
  color: var(--paper);
  background: var(--ink);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.ticker-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 36px;
  padding: 18px 0;
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
  animation: ticker 18s linear infinite;
}

.ticker-track span { min-width: 180px; text-align: center; }
.ticker-track i { color: var(--pink); font-style: normal; }

.mechanics {
  padding: 10vw 5vw 11vw;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  max-width: 1240px;
  margin: 0 auto 72px;
}

.section-head > p { margin: 0; }

.section-head h2 {
  margin: 0;
  font-size: clamp(52px, 7vw, 106px);
  line-height: 0.9;
  letter-spacing: -0.085em;
}

.flywheel {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  max-width: 1240px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.flywheel-node {
  position: relative;
  min-height: 220px;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.flywheel-node > span {
  color: var(--muted);
  font-family: "Geist Mono", monospace;
  font-size: 9px;
}

.flywheel-node strong {
  display: block;
  margin-top: 72px;
  font-size: clamp(28px, 3vw, 45px);
  letter-spacing: -0.06em;
}

.flywheel-node p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.flywheel-node > i {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: -12px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: var(--paper);
  background: var(--ink);
  border-radius: 50%;
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  font-style: normal;
}

.burn-node { background: var(--pink); }
.burn-node > span,
.burn-node p { color: rgba(18,17,15,0.66); }

.mechanics-note {
  display: grid;
  grid-template-columns: 0.35fr 1fr;
  gap: 36px;
  max-width: 820px;
  margin: 72px auto 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.mechanics-note strong,
.mechanics-note small {
  font-family: "Geist Mono", monospace;
  font-size: 9px;
  text-transform: uppercase;
}

.mechanics-note p {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
}

.mechanics-note small {
  grid-column: 2;
  color: var(--muted);
  line-height: 1.5;
}

.protocol {
  padding: 10vw 5vw;
  color: var(--paper);
  background: var(--ink);
}

.light-head > p { color: rgba(239,231,218,0.55); }
.light-head h2 { color: var(--pink); }

.protocol-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1240px;
  margin: 0 auto;
  border-top: 1px solid rgba(239,231,218,0.2);
  border-left: 1px solid rgba(239,231,218,0.2);
}

.protocol-grid article {
  min-height: 260px;
  padding: 30px;
  border-right: 1px solid rgba(239,231,218,0.2);
  border-bottom: 1px solid rgba(239,231,218,0.2);
}

.protocol-grid article > span {
  color: var(--green);
  font-family: "Geist Mono", monospace;
  font-size: 9px;
}

.protocol-grid h3 {
  margin: 74px 0 14px;
  font-size: clamp(35px, 4vw, 56px);
  letter-spacing: -0.065em;
}

.protocol-grid p {
  max-width: 330px;
  margin: 0;
  color: rgba(239,231,218,0.62);
  font-size: 14px;
  line-height: 1.5;
}

.protocol-rule {
  max-width: 1240px;
  margin: 26px auto 0;
  color: rgba(239,231,218,0.46);
  font-family: "Geist Mono", monospace;
  font-size: 9px;
  text-transform: uppercase;
}

.final-call {
  padding: 11vw 5vw 12vw;
  text-align: center;
}

.final-call > p {
  margin: 0 0 36px;
  color: var(--muted);
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.final-call h2 {
  margin: 0 auto 52px;
  font-size: clamp(66px, 10vw, 164px);
  line-height: 0.83;
  letter-spacing: -0.095em;
}

.final-call a { font-family: "Geist Mono", monospace; font-size: 10px; text-transform: uppercase; }

footer {
  display: flex;
  justify-content: space-between;
  padding: 28px 4vw 34px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-family: "Geist Mono", monospace;
  font-size: 9px;
  text-transform: uppercase;
}

@keyframes pulse { 50% { opacity: 0.32; } }
@keyframes scan { to { transform: translateY(520%); } }
@keyframes ticker { to { transform: translateX(-50%); } }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 12vw; }
  .portrait-card { width: min(84vw, 600px); margin-top: 4vw; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .flywheel { grid-template-columns: 1fr 1fr; }
  .flywheel-node:last-child { grid-column: 1 / -1; }
  .protocol-grid { grid-template-columns: 1fr; }
  .protocol-grid article { min-height: 220px; }
}

@media (max-width: 600px) {
  .topbar { padding: 0 18px; }
  .online { display: none; }
  .hero { min-height: auto; padding: 74px 18px 90px; }
  .hero h1 { font-size: clamp(62px, 19vw, 90px); }
  .actions { align-items: flex-start; flex-direction: column; }
  .portrait-card { width: calc(100% - 12px); box-shadow: 12px 12px 0 var(--pink); }
  .mechanics,
  .protocol,
  .final-call { padding: 90px 18px; }
  .section-head { margin-bottom: 48px; }
  .flywheel { grid-template-columns: 1fr; }
  .flywheel-node,
  .flywheel-node:last-child { grid-column: auto; min-height: 180px; }
  .flywheel-node strong { margin-top: 48px; }
  .flywheel-node > i { top: auto; right: 18px; bottom: -12px; transform: rotate(90deg); }
  .mechanics-note { grid-template-columns: 1fr; margin-top: 54px; }
  .mechanics-note small { grid-column: auto; }
  .final-call h2 { font-size: clamp(62px, 18vw, 96px); }
  footer { align-items: flex-start; flex-direction: column; gap: 10px; padding: 26px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .online i,
  .scanline,
  .ticker-track { animation: none; }
}
