:root {
  --ink: #11130e;
  --paper: #f6f2e7;
  --green: #a8d55f;
  --deep-green: #317a3a;
  --orange: #dc542e;
  --line: 3px solid var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  overflow-x: hidden;
  cursor: crosshair;
}
a, button, [role="button"] { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }

.paper-noise {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  opacity: .08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='110' height='110' viewBox='0 0 110 110'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
.cursor-dot {
  position: fixed;
  left: -14px;
  top: -14px;
  width: 28px;
  height: 28px;
  z-index: 100;
  border: 2px solid var(--ink);
  border-radius: 50%;
  pointer-events: none;
  transition: width .15s, height .15s, left .15s, top .15s, background .15s;
}
.cursor-dot.active { left: -22px; top: -22px; width: 44px; height: 44px; background: rgba(168,213,95,.4); }

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 42px;
  border-bottom: var(--line);
  background: rgba(246,242,231,.92);
  backdrop-filter: blur(10px);
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 900; letter-spacing: .08em; }
.brand-eye { font-size: 28px; line-height: 1; animation: blink 5s step-end infinite; }
.topbar nav { display: flex; gap: 38px; font-size: 13px; font-weight: 900; letter-spacing: .08em; }
.topbar nav a { position: relative; }
.topbar nav a::after { content: ''; position: absolute; left: 0; bottom: -7px; width: 0; height: 3px; background: var(--orange); transition: width .2s; }
.topbar nav a:hover::after { width: 100%; }
.issue { justify-self: end; border: 2px solid var(--ink); padding: 8px 12px; font-size: 12px; transform: rotate(1deg); background: white; }

.hero {
  min-height: 100vh;
  padding: 126px 5vw 60px;
  position: relative;
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  align-items: center;
  gap: 2vw;
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(17,19,14,.09) 50%, transparent 50.2%),
    linear-gradient(rgba(17,19,14,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17,19,14,.06) 1px, transparent 1px),
    var(--green);
  background-size: auto, 32px 32px, 32px 32px, auto;
  border-bottom: var(--line);
}
.hero-copy { position: relative; z-index: 2; align-self: center; }
.eyebrow { display: flex; align-items: center; gap: 12px; font-weight: 800; text-transform: uppercase; font-size: 13px; letter-spacing: .08em; }
.eyebrow span { width: 42px; height: 3px; background: var(--ink); }
h1 { margin: 25px 0 18px; font-size: clamp(84px, 8.8vw, 170px); line-height: .72; letter-spacing: -.09em; font-weight: 1000; }
h1 span, h1 em { display: block; }
h1 em { color: var(--paper); font-style: normal; -webkit-text-stroke: 4px var(--ink); transform: translateX(7vw); }
.hero-line { width: 420px; max-width: 100%; font-family: Georgia, serif; font-size: 23px; line-height: 1.35; margin: 32px 0; }
.hero-actions, .community-links { display: flex; flex-wrap: wrap; gap: 14px; }
.ink-button {
  min-width: 188px;
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  padding: 17px 20px;
  border: var(--line);
  background: var(--ink);
  color: white;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .05em;
  box-shadow: 5px 5px 0 var(--orange);
  transition: transform .15s, box-shadow .15s;
}
.ink-button.paper { color: var(--ink); background: var(--paper); box-shadow: 5px 5px 0 var(--deep-green); }
.ink-button:hover { transform: translate(-3px,-3px) rotate(-1deg); box-shadow: 9px 9px 0 var(--orange); }
.ink-button.paper:hover { box-shadow: 9px 9px 0 var(--deep-green); }
.ink-button:active { transform: translate(3px,3px); box-shadow: 1px 1px 0 var(--orange); }

.portrait-wrap { position: relative; width: min(690px, 46vw); justify-self: center; transform: translate(var(--mx,0), var(--my,0)) rotate(1.5deg); transition: transform .18s ease-out; }
.portrait-card { position: relative; overflow: hidden; border: 5px solid var(--ink); background: white; box-shadow: 18px 19px 0 rgba(17,19,14,.18); outline: none; }
.portrait-card::before { content: ''; position: absolute; inset: 0; z-index: 2; box-shadow: inset 0 0 80px rgba(168,213,95,.18); pointer-events: none; }
.portrait-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transform: scale(1.01); transition: filter .35s, transform .35s; }
.portrait-card:hover img, .portrait-card.noticed img { filter: saturate(1.22) contrast(1.06); transform: scale(1.035) translateX(-4px); }
.caption-strip { position: absolute; inset: auto 0 0; z-index: 3; background: var(--ink); color: white; padding: 14px 18px; font-size: 12px; font-weight: 900; letter-spacing: .06em; }
.scan-line { position: absolute; left: 0; right: 0; top: -12%; height: 3px; background: rgba(220,84,46,.8); z-index: 3; animation: scan 6s linear infinite; }
.stamp { position: absolute; right: -50px; top: -42px; z-index: 5; border: 6px double var(--orange); color: var(--orange); border-radius: 50%; padding: 17px 12px; font-weight: 1000; font-size: 18px; text-align: center; transform: rotate(14deg); background: rgba(246,242,231,.8); }
.note { position: absolute; left: -60px; bottom: 40px; z-index: 6; padding: 14px 20px; background: #ffe66c; border: 2px solid var(--ink); font-family: Georgia, serif; font-style: italic; font-weight: 700; transform: rotate(-8deg) scale(.2); opacity: 0; transition: .25s; }
.note.visible { opacity: 1; transform: rotate(-8deg) scale(1); }
.ticker-card { position: absolute; left: 5vw; bottom: 54px; display: grid; grid-template-columns: auto auto; align-items: center; gap: 3px 18px; padding: 14px 18px; border: var(--line); background: var(--paper); transform: rotate(-1deg); }
.ticker-card span { font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.ticker-card strong { grid-row: span 2; grid-column: 2; font-size: 28px; }
.ticker-card strong i { font-style: normal; }
.ticker-card small { font-family: Georgia, serif; }
.scroll-note { position: absolute; right: 28px; bottom: 36px; writing-mode: vertical-rl; font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.scroll-note b { color: var(--orange); font-size: 22px; }

.marquee { overflow: hidden; border-bottom: var(--line); background: var(--ink); color: var(--paper); padding: 15px 0; }
.marquee-track { display: flex; align-items: center; width: max-content; animation: marquee 22s linear infinite; }
.marquee span { font-weight: 1000; font-size: 20px; letter-spacing: .08em; padding: 0 36px; }
.marquee b { color: var(--green); }

.file-section { min-height: 1080px; padding: 56px 5vw 90px; position: relative; }
.section-number { border-bottom: 2px solid var(--ink); padding-bottom: 12px; font-size: 12px; font-weight: 900; letter-spacing: .14em; }
.section-number.light { border-color: var(--paper); color: var(--paper); }
.file-grid { min-height: 860px; display: grid; grid-template-columns: 1.2fr .85fr .95fr; align-items: center; gap: 5vw; }
.file-title > p { font-size: 12px; font-weight: 900; line-height: 1.5; letter-spacing: .12em; }
.file-title h2, .community h2 { font-size: clamp(66px,6vw,118px); line-height: .82; letter-spacing: -.075em; margin: 38px 0 0; }
.file-title h2 span { color: var(--deep-green); font-family: Georgia, serif; font-style: italic; font-weight: 500; }
.witness-card { position: relative; transform: rotate(-4deg); padding: 14px 14px 54px; background: white; border: 2px solid var(--ink); box-shadow: 12px 14px 0 rgba(17,19,14,.12); }
.witness-card img { aspect-ratio: .77; object-fit: cover; object-position: center 13%; filter: grayscale(1) contrast(1.12); }
.witness-card p { font-size: 12px; font-weight: 900; letter-spacing: .08em; text-align: center; margin: 19px 0 0; }
.tape { position: absolute; width: 110px; height: 31px; left: 50%; top: -20px; z-index: 2; transform: translateX(-50%) rotate(3deg); background: rgba(224,191,117,.65); }
.lore { align-self: center; border-left: var(--line); padding-left: 30px; max-width: 430px; }
.lore .scribble { color: var(--orange); font-size: 36px; font-weight: 1000; letter-spacing: -8px; }
.lore h3 { font: italic 700 36px/1.05 Georgia, serif; }
.lore p { font-size: 18px; line-height: 1.6; }
.lore blockquote { margin: 35px 0 0; padding: 18px 20px; border: 2px dashed var(--ink); background: var(--green); font: italic 700 22px Georgia, serif; transform: rotate(1deg); }

.rules-section { min-height: 940px; position: relative; overflow: hidden; padding: 56px 5vw 90px; background: var(--ink); color: var(--paper); }
.rules-section::after { content: ''; position: absolute; width: 700px; height: 700px; right: -250px; top: 50px; border: 100px solid var(--deep-green); border-radius: 50%; opacity: .45; }
.rules-heading { display: flex; justify-content: space-between; align-items: flex-end; margin: 80px 0 70px; position: relative; z-index: 2; }
.rules-heading p { width: 260px; font-size: 12px; line-height: 1.5; font-weight: 900; letter-spacing: .1em; }
.rules-heading h2 { margin: 0; font-size: clamp(92px,9vw,170px); line-height: .67; letter-spacing: -.08em; text-align: right; }
.rules-heading h2 em { color: var(--green); font-family: Georgia, serif; font-weight: 500; }
.rules-list { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3,1fr); gap: 0; border-top: 2px solid var(--paper); border-bottom: 2px solid var(--paper); }
.rules-list article { min-height: 240px; padding: 28px; border-right: 2px solid var(--paper); transition: background .2s, color .2s, transform .2s; }
.rules-list article:last-child { border-right: 0; }
.rules-list article:hover { background: var(--green); color: var(--ink); transform: translateY(-8px); }
.rules-list b { font-size: 12px; }
.rules-list h3 { font-size: 32px; margin: 62px 0 16px; }
.rules-list p { max-width: 270px; line-height: 1.5; margin: 0; }
.floating-eyes { position: absolute; left: 6vw; bottom: 22px; display: flex; gap: 6px; color: var(--green); font-size: 28px; transform: rotate(-8deg); }

.community { min-height: 960px; padding: 90px 8vw; display: grid; grid-template-columns: 1fr .82fr; gap: 8vw; align-items: center; background: var(--orange); }
.community-copy { max-width: 790px; }
.community-copy > p { max-width: 540px; font: italic 24px/1.4 Georgia, serif; margin: 30px 0; }
.community h2 { color: var(--paper); -webkit-text-stroke: 3px var(--ink); }
.ink-button.dark { background: var(--ink); box-shadow: 6px 6px 0 var(--paper); }
.ink-button.green { color: var(--ink); background: var(--green); box-shadow: 6px 6px 0 var(--ink); }
.community-poster { position: relative; border: 5px solid var(--ink); background: var(--paper); transform: rotate(3deg); box-shadow: 22px 24px 0 rgba(17,19,14,.23); }
.community-poster img { aspect-ratio: 1 / 1; object-fit: cover; filter: saturate(.88); }
.community-poster p { position: absolute; left: -45px; bottom: 28px; margin: 0; padding: 13px 18px; background: var(--ink); color: var(--paper); font-size: 24px; font-weight: 1000; line-height: .9; transform: rotate(-5deg); }
.community-poster span { color: var(--green); }

.contract-section { padding: 86px 5vw 92px; background: var(--green); border-top: var(--line); border-bottom: var(--line); }
.ca-label { margin-bottom: 19px; font-size: 12px; font-weight: 900; letter-spacing: .12em; }
.ca-row { display: grid; grid-template-columns: 1fr auto; border: 5px solid var(--ink); background: var(--paper); box-shadow: 12px 12px 0 var(--ink); }
.ca-row code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 29px; font: 900 clamp(16px,2vw,34px)/1 monospace; }
.ca-row button { border: 0; border-left: 5px solid var(--ink); padding: 0 40px; background: var(--orange); color: var(--ink); font-weight: 1000; letter-spacing: .08em; transition: background .15s, color .15s; }
.ca-row button:hover { background: var(--ink); color: white; }
.ca-row button:active { background: white; color: var(--ink); }
.copy-status { margin: 25px 0 0; font-size: 12px; font-weight: 900; text-align: right; letter-spacing: .12em; }

footer { min-height: 150px; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; padding: 30px 5vw; background: var(--paper); font-size: 12px; font-weight: 900; letter-spacing: .08em; }
footer p:nth-child(2) { text-align: center; }
footer a { justify-self: end; border-bottom: 2px solid; }
.toast { position: fixed; left: 50%; bottom: -100px; z-index: 50; transform: translateX(-50%) rotate(-1deg); padding: 18px 26px; border: var(--line); background: var(--ink); color: white; font-size: 13px; font-weight: 900; box-shadow: 7px 7px 0 var(--orange); transition: bottom .3s cubic-bezier(.2,.9,.2,1.3); }
.toast.show { bottom: 36px; }

[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].revealed { opacity: 1; transform: translateY(0); }

@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes scan { to { top: 112%; } }
@keyframes blink { 0%,46%,49%,100% { transform: scaleY(1); } 47%,48% { transform: scaleY(.08); } }

@media (max-width: 1200px) {
  .topbar nav { gap: 20px; }
  .hero { grid-template-columns: 1fr 1fr; }
  .portrait-wrap { width: 48vw; }
  .file-grid { gap: 3vw; }
  .file-title h2 { font-size: 64px; }
}

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