:root {
  color-scheme: dark;
  --ink: #070809;
  --ink-2: #0d1012;
  --paper: #f5f1e8;
  --muted: #a4aaad;
  --line: rgba(245, 241, 232, .18);
  --gold: #f5c84b;
  --cyan: #19f6d2;
  --pink: #ff3b88;
  --max: 1180px;
  --pad: clamp(1rem, 3vw, 2.5rem);
  --display: Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Black", sans-serif;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at var(--mx, 80%) var(--my, 5%), rgba(25,246,210,.08), transparent 22rem),
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
    var(--ink);
  background-size: auto, 48px 48px, 48px 48px, auto;
  color: var(--paper);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.65;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99;
  opacity: .16;
  background: repeating-linear-gradient(0deg, transparent 0 4px, rgba(255,255,255,.025) 5px);
  mix-blend-mode: soft-light;
}

::selection { background: var(--gold); color: #070809; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { color: var(--gold); }
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; }
button { color: inherit; }

.skip-link {
  position: fixed;
  top: .5rem;
  left: .5rem;
  z-index: 200;
  transform: translateY(-150%);
  padding: .7rem 1rem;
  background: var(--gold);
  color: #000;
  font-weight: 900;
}
.skip-link:focus { transform: none; }

.progress { position: fixed; inset: 0 auto auto 0; z-index: 150; width: 100%; height: 3px; background: transparent; }
.progress span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--gold), var(--cyan), var(--pink)); box-shadow: 0 0 12px var(--cyan); }

.shell { width: min(100% - (var(--pad) * 2), var(--max)); margin-inline: auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid var(--line);
  background: rgba(7,8,9,.86);
  backdrop-filter: blur(18px) saturate(150%);
}
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; flex: none; }
.brand img { width: 44px; height: 44px; }
.brand-word { font-family: var(--display); font-size: 1.1rem; letter-spacing: .05em; line-height: .9; text-transform: uppercase; }
.brand-word span { display: block; color: var(--gold); font-size: .65rem; letter-spacing: .24em; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: .15rem; }
.site-nav a, .search-open {
  border: 0;
  background: none;
  padding: .65rem .72rem;
  color: var(--muted);
  text-decoration: none;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}
.site-nav a:hover, .site-nav a[aria-current="page"], .search-open:hover { color: var(--paper); background: rgba(245,200,75,.08); }
.search-open { border-left: 1px solid var(--line); color: var(--gold); }
.menu-toggle { display: none; margin-left: auto; padding: .55rem .7rem; border: 1px solid var(--line); background: none; font-weight: 900; }

.noise-label, .eyebrow {
  margin: 0;
  color: var(--cyan);
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.noise-label::before, .eyebrow::before { content: "// "; color: var(--pink); }

.hero { position: relative; min-height: calc(100svh - 76px); display: grid; align-items: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .55; background: url("manifesto-lines.svg") center/cover no-repeat; pointer-events: none; }
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr); gap: clamp(2rem, 7vw, 7rem); align-items: center; padding-block: clamp(4rem, 10vw, 8rem); }
.hero h1, .page-hero h1 {
  margin: .3rem 0 1rem;
  max-width: 9ch;
  font-family: var(--display);
  font-size: clamp(4.3rem, 12vw, 10rem);
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: .76;
  text-transform: uppercase;
  text-wrap: balance;
}
.hero h1 .cut, .page-hero h1 .cut { display: block; color: transparent; -webkit-text-stroke: 1px var(--gold); text-shadow: 4px 4px 0 rgba(255,59,136,.12); }
.hero-copy { max-width: 740px; color: #d8dcde; font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.55; }
.hero-copy strong { color: var(--paper); }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.7rem; }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: .75rem 1.15rem;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #050607;
  text-decoration: none;
  font-size: .82rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 13px 100%, 0 calc(100% - 13px));
  transition: transform .2s ease, box-shadow .2s ease;
}
.button:hover { color: #000; transform: translate(-2px,-2px); box-shadow: 6px 6px 0 rgba(25,246,210,.3); }
.button.alt { background: transparent; color: var(--paper); border-color: var(--line); }
.button.alt:hover { color: var(--gold); border-color: var(--gold); }

.identity-machine { position: relative; aspect-ratio: 1; display: grid; place-items: center; isolation: isolate; }
.identity-machine::before, .identity-machine::after { content: ""; position: absolute; border: 1px solid var(--line); border-radius: 50%; animation: orbit 18s linear infinite; }
.identity-machine::before { inset: 3%; border-style: dashed; }
.identity-machine::after { inset: 15%; animation-duration: 11s; animation-direction: reverse; box-shadow: 0 0 50px rgba(245,200,75,.08) inset; }
.machine-core { width: 54%; aspect-ratio: 1; display: grid; place-items: center; background: #0b0d0f; border: 1px solid var(--gold); transform: rotate(45deg); box-shadow: 0 0 75px rgba(245,200,75,.13); }
.machine-core img { width: 72%; transform: rotate(-45deg); filter: drop-shadow(0 0 20px rgba(245,200,75,.25)); }
.machine-tag { position: absolute; padding: .3rem .45rem; background: var(--ink); border: 1px solid var(--line); font-size: .65rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.machine-tag:nth-of-type(1) { top: 5%; left: 18%; color: var(--gold); }
.machine-tag:nth-of-type(2) { right: 0; top: 45%; color: var(--cyan); }
.machine-tag:nth-of-type(3) { bottom: 5%; left: 15%; color: var(--pink); }
@keyframes orbit { to { transform: rotate(360deg); } }

.ticker { overflow: hidden; border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); background: var(--gold); color: #08090a; }
.ticker-track { display: flex; width: max-content; padding: .66rem 0; animation: marquee 25s linear infinite; }
.ticker span { padding-right: 2.5rem; font-family: var(--display); font-size: 1.05rem; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

.section { padding-block: clamp(4.5rem, 9vw, 8rem); border-bottom: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: minmax(0, .72fr) minmax(280px, 1.28fr); gap: 2rem; align-items: end; margin-bottom: clamp(2rem, 5vw, 4rem); }
.section h2, .article h2 { margin: .35rem 0 0; font-family: var(--display); font-size: clamp(2.9rem, 7vw, 6rem); letter-spacing: -.025em; line-height: .85; text-transform: uppercase; }
.section-intro { margin: 0; max-width: 680px; color: #c1c6c8; font-size: 1.1rem; }
.rule { width: 5rem; height: 5px; margin: 1rem 0; background: linear-gradient(90deg, var(--gold) 45%, var(--cyan) 45% 70%, var(--pink) 70%); }

.layer-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.layer { position: relative; min-height: 300px; padding: clamp(1.2rem, 3vw, 2.2rem); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(145deg, rgba(255,255,255,.025), transparent); overflow: hidden; }
.layer::after { content: attr(data-index); position: absolute; right: -.02em; bottom: -.25em; color: rgba(245,241,232,.03); font-family: var(--display); font-size: 11rem; line-height: 1; }
.layer h3 { position: relative; margin: 4rem 0 .7rem; font-family: var(--display); font-size: 2rem; text-transform: uppercase; }
.layer p { position: relative; color: var(--muted); }
.layer .key { position: relative; color: var(--gold); font-size: .7rem; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }

.command-map { display: grid; gap: .7rem; }
.command-row { display: grid; grid-template-columns: 180px 1fr; border: 1px solid var(--line); background: rgba(255,255,255,.02); }
.command-code { display: grid; place-items: center; min-height: 140px; padding: 1rem; border-right: 1px solid var(--line); color: var(--gold); font-family: var(--display); font-size: 2.8rem; }
.command-copy { padding: 1.2rem clamp(1.2rem, 3vw, 2.2rem); }
.command-copy h3 { margin: 0 0 .25rem; font-family: var(--display); font-size: 1.7rem; text-transform: uppercase; }
.command-copy p { margin: 0; color: var(--muted); }
.command-row:nth-child(2) .command-code { color: var(--cyan); }
.command-row:nth-child(3) .command-code { color: var(--pink); }

.manifesto { position: relative; overflow: hidden; background: var(--paper); color: #090a0b; }
.manifesto::before { content: "GK"; position: absolute; right: -2vw; top: -.2em; font-family: var(--display); font-size: clamp(15rem, 38vw, 35rem); color: rgba(0,0,0,.035); line-height: 1; }
.manifesto blockquote { position: relative; margin: 0; max-width: 14ch; font-family: var(--display); font-size: clamp(3.3rem, 9vw, 8.5rem); letter-spacing: -.03em; line-height: .86; text-transform: uppercase; }
.manifesto blockquote em { color: #b17f00; font-style: normal; }
.manifesto .signature { position: relative; margin-top: 2rem; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }

.wiki-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: .8rem; }
.wiki-link { position: relative; min-height: 260px; grid-column: span 4; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.3rem; border: 1px solid var(--line); text-decoration: none; overflow: hidden; background: rgba(255,255,255,.025); }
.wiki-link:nth-child(1), .wiki-link:nth-child(5) { grid-column: span 8; }
.wiki-link::before { content: ""; position: absolute; inset: 0; opacity: 0; background: linear-gradient(145deg, rgba(245,200,75,.17), transparent); transition: opacity .25s ease; }
.wiki-link:hover::before { opacity: 1; }
.wiki-link > * { position: relative; }
.wiki-link small { color: var(--cyan); font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.wiki-link strong { margin-top: .5rem; font-family: var(--display); font-size: clamp(1.8rem, 4vw, 3.2rem); line-height: .9; text-transform: uppercase; }
.wiki-link span { margin-top: .6rem; max-width: 50ch; color: var(--muted); }

.cta-strip { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; padding: clamp(1.5rem,4vw,3rem); border: 1px solid var(--gold); background: linear-gradient(110deg, rgba(245,200,75,.11), rgba(25,246,210,.035)); }
.cta-strip h2 { margin: 0; font-size: clamp(2.5rem, 6vw, 5rem); }
.cta-strip p { margin: .7rem 0 0; color: var(--muted); }

.page-hero { position: relative; padding-block: clamp(5rem, 12vw, 10rem) clamp(3rem, 7vw, 6rem); border-bottom: 1px solid var(--line); overflow: hidden; }
.page-hero::after { content: attr(data-code); position: absolute; right: -1vw; bottom: -.26em; color: rgba(245,241,232,.035); font-family: var(--display); font-size: clamp(12rem, 38vw, 34rem); line-height: 1; }
.page-hero .shell { position: relative; z-index: 1; }
.page-hero h1 { max-width: 10ch; font-size: clamp(4.2rem, 11vw, 9rem); }
.page-deck { max-width: 760px; margin: 1rem 0 0; color: #cbd0d2; font-size: clamp(1.1rem, 2vw, 1.35rem); }
.crumbs { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.3rem; color: var(--muted); font-size: .78rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.crumbs span { color: var(--gold); }

.article { width: min(100% - (var(--pad) * 2), 920px); margin-inline: auto; padding-block: clamp(3.5rem, 8vw, 7rem); }
.article > section { padding-block: 2.5rem; border-bottom: 1px solid var(--line); }
.article > section:first-child { padding-top: 0; }
.article h2 { max-width: 11ch; font-size: clamp(2.5rem, 6vw, 4.8rem); }
.article h3 { margin: 2rem 0 .4rem; color: var(--gold); font-family: var(--display); font-size: 1.7rem; letter-spacing: .02em; text-transform: uppercase; }
.article p, .article li { color: #c4c9cb; font-size: 1.05rem; }
.article strong { color: var(--paper); }
.article .lead { color: var(--paper); font-size: clamp(1.2rem,2.5vw,1.55rem); line-height: 1.5; }
.callout { margin: 2rem 0; padding: 1.2rem 1.3rem; border-left: 4px solid var(--gold); background: rgba(245,200,75,.07); }
.callout.cyan { border-color: var(--cyan); background: rgba(25,246,210,.05); }
.callout.pink { border-color: var(--pink); background: rgba(255,59,136,.06); }
.callout b { display: block; color: var(--gold); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; }
.callout p { margin: .45rem 0 0; }
.fact-list { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin: 2rem 0; padding: 0; list-style: none; }
.fact-list li { padding: 1rem; border: 1px solid var(--line); background: rgba(255,255,255,.02); }
.fact-list strong { display: block; color: var(--cyan); font-family: var(--display); font-size: 1.35rem; text-transform: uppercase; }
.article-nav { display: grid; grid-template-columns: repeat(2,1fr); gap: .8rem; padding-top: 3rem; }
.article-nav a { padding: 1rem; border: 1px solid var(--line); text-decoration: none; }
.article-nav small { display: block; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.article-nav strong { font-family: var(--display); font-size: 1.5rem; text-transform: uppercase; }

.source-list { list-style: none; margin: 2rem 0; padding: 0; }
.source-list li { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.source-list code { color: var(--gold); font-weight: 900; }
.source-list a { color: var(--paper); font-weight: 800; overflow-wrap: anywhere; }
.source-list p { margin: .25rem 0 0; font-size: .95rem; }

.site-footer { padding-block: 3rem; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; }
.footer-line { max-width: 18ch; margin: 0; font-family: var(--display); font-size: clamp(1.8rem,4vw,3.2rem); line-height: .9; text-transform: uppercase; }
.footer-line em { color: var(--gold); font-style: normal; }
.footer-links { display: flex; flex-wrap: wrap; align-content: flex-start; justify-content: flex-end; gap: .5rem 1rem; }
.footer-links a { color: var(--muted); font-size: .82rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.legal { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); color: #747a7d; font-size: .78rem; }

.search-dialog { width: min(760px, calc(100% - 2rem)); max-height: min(760px, calc(100vh - 2rem)); padding: 0; border: 1px solid var(--gold); background: #0a0c0e; color: var(--paper); box-shadow: 0 25px 100px #000; }
.search-dialog::backdrop { background: rgba(0,0,0,.84); backdrop-filter: blur(8px); }
.search-head { display: flex; align-items: center; gap: .8rem; padding: 1rem; border-bottom: 1px solid var(--line); }
.search-head input { min-width: 0; flex: 1; padding: .85rem 1rem; border: 1px solid var(--line); background: #070809; color: var(--paper); font-size: 1rem; }
.search-close { width: 44px; height: 44px; border: 1px solid var(--line); background: none; cursor: pointer; }
.search-results { overflow-y: auto; max-height: 60vh; padding: .7rem; }
.search-result { display: block; padding: 1rem; border-bottom: 1px solid var(--line); text-decoration: none; }
.search-result:hover { background: rgba(245,200,75,.07); }
.search-result strong { display: block; font-family: var(--display); font-size: 1.4rem; text-transform: uppercase; }
.search-result span { color: var(--muted); }
.search-empty { padding: 2rem 1rem; color: var(--muted); text-align: center; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 920px) {
  .menu-toggle { display: block; }
  .site-nav { position: absolute; inset: 76px 0 auto; display: none; padding: .7rem var(--pad) 1rem; border-bottom: 1px solid var(--line); background: rgba(7,8,9,.98); }
  .site-nav.is-open { display: grid; grid-template-columns: repeat(2,1fr); }
  .site-nav a, .search-open { text-align: left; border-left: 0; }
  .hero { min-height: auto; }
  .hero-inner { grid-template-columns: 1fr; }
  .identity-machine { width: min(520px, 90vw); margin-inline: auto; }
  .section-head { grid-template-columns: 1fr; align-items: start; }
  .layer-grid { grid-template-columns: 1fr; }
  .layer { min-height: 250px; }
  .wiki-link, .wiki-link:nth-child(1), .wiki-link:nth-child(5) { grid-column: span 6; }
}

@media (max-width: 650px) {
  .header-inner { min-height: 68px; }
  .site-nav { top: 68px; grid-template-columns: 1fr; }
  .brand-word { font-size: .95rem; }
  .hero-inner { padding-block: 3.5rem; }
  .hero h1 { font-size: clamp(4rem, 23vw, 7rem); }
  .identity-machine { width: 84vw; }
  .command-row { grid-template-columns: 85px 1fr; }
  .command-code { min-height: 125px; font-size: 1.7rem; }
  .wiki-link, .wiki-link:nth-child(1), .wiki-link:nth-child(5) { grid-column: 1 / -1; min-height: 230px; }
  .cta-strip, .footer-grid { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .fact-list, .article-nav { grid-template-columns: 1fr; }
  .source-list li { grid-template-columns: 1fr; gap: .25rem; }
}

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

