:root {
  --ink: #080808;
  --paper: #f4f0e8;
  --paper-2: #e7e0d3;
  --ash: #a9a399;
  --scratch: rgba(8, 8, 8, .14);
  --mx: 0;
  --my: 0;
  --progress: 0%;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Arial Narrow", "Franklin Gothic Medium", Arial, sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  box-shadow: inset 0 0 110px rgba(0,0,0,.2);
}

body.calm * { animation-play-state: paused !important; }

button, a { color: inherit; }
a { text-decoration: none; }
button { font: inherit; }

img {
  display: block;
  max-width: 100%;
}

.grain {
  position: fixed;
  inset: -80%;
  z-index: 999;
  opacity: .075;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 30%, #000 0 .55px, transparent .8px),
    radial-gradient(circle at 70% 65%, #000 0 .65px, transparent .9px),
    radial-gradient(circle at 45% 80%, #000 0 .5px, transparent .75px);
  background-size: 5px 7px, 7px 5px, 4px 6px;
  animation: grain 280ms steps(2) infinite;
}

@keyframes grain {
  0% { transform: translate(0,0); }
  25% { transform: translate(2%, -1%); }
  50% { transform: translate(-1%, 2%); }
  75% { transform: translate(1%, 1%); }
  100% { transform: translate(-2%, -1%); }
}

.scroll-meter {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  z-index: 1100;
  background: rgba(244,240,232,.28);
}

.scroll-meter span {
  display: block;
  width: var(--progress);
  height: 100%;
  background: var(--ink);
  transition: width 80ms linear;
}

.topbar {
  position: fixed;
  top: 4px;
  left: 0;
  right: 0;
  z-index: 900;
  height: 52px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 0 28px;
  mix-blend-mode: difference;
  color: #fff;
  pointer-events: none;
}

.topbar > * { pointer-events: auto; }
.topbar p { margin: 0; font: 700 10px/1 monospace; letter-spacing: .18em; }

.mini-mark {
  justify-self: start;
  font-weight: 1000;
  letter-spacing: -.13em;
  font-size: 21px;
}
.mini-mark span { display: inline-block; transform: rotate(14deg); }

.sound-switch {
  justify-self: end;
  border: 1px solid currentColor;
  padding: 7px 10px;
  color: inherit;
  background: transparent;
  font: 800 9px/1 monospace;
  letter-spacing: .08em;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-content: center;
  padding: 105px 5vw 70px;
  color: var(--paper);
  background: var(--ink);
  isolation: isolate;
  overflow: hidden;
}

.hero-art,
.silent-bg {
  position: absolute;
  inset: -4%;
  z-index: -3;
  background: center / cover no-repeat url("assets/01-eerzo-hero.webp");
  transform: translate(calc(var(--mx) * 11px), calc(var(--my) * 8px)) scale(1.08);
  transition: transform 140ms ease-out;
  filter: contrast(1.08);
}

.hero-fade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.23) 56%, rgba(0,0,0,.5) 100%),
    linear-gradient(0deg, rgba(0,0,0,.86), transparent 40%);
}

.hero-copy { width: min(760px, 72vw); }
.wordmark { width: min(590px, 67vw); filter: invert(1); mix-blend-mode: screen; }

.kicker,
.section-heading span {
  margin: 16px 0 0;
  font: 900 11px/1.2 monospace;
  letter-spacing: .26em;
}

.hero h1 {
  max-width: 760px;
  margin: 20px 0 12px;
  font: 1000 clamp(42px, 6.6vw, 104px)/.82 "Arial Narrow", Impact, sans-serif;
  letter-spacing: -.065em;
  text-transform: uppercase;
}

.hero-note {
  margin: 24px 0 0;
  max-width: 500px;
  font: 700 clamp(14px, 1.35vw, 19px)/1.45 monospace;
}

.artifact-nav {
  position: absolute;
  right: 3vw;
  bottom: 6vh;
  width: min(450px, 34vw);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4px 8px;
  transform: rotate(-2deg);
}

.artifact-link {
  display: block;
  transition: transform 180ms ease, filter 180ms ease;
  filter: drop-shadow(6px 8px 0 rgba(0,0,0,.5));
}

.artifact-link:first-child,
.artifact-link:last-child { grid-column: 1 / -1; margin-inline: 12%; }
.artifact-link img { width: 100%; height: auto; }
.artifact-link:hover,
.artifact-link:focus-visible { transform: scale(1.07) rotate(2deg); filter: invert(1) drop-shadow(6px 8px 0 rgba(255,255,255,.25)); }
.artifact-link:nth-child(2):hover { transform: scale(1.1) rotate(-4deg); }

.scroll-note {
  position: absolute;
  left: 5vw;
  bottom: 24px;
  font: 900 10px/1 monospace;
  letter-spacing: .22em;
  border-bottom: 1px solid currentColor;
  padding-bottom: 6px;
}

.paper-section {
  background-color: var(--paper);
  background-image:
    linear-gradient(90deg, transparent 49.8%, rgba(0,0,0,.04) 50%, transparent 50.2%),
    repeating-linear-gradient(0deg, transparent 0 41px, rgba(0,0,0,.025) 42px);
}

.contract-section {
  position: relative;
  min-height: 440px;
  display: grid;
  place-items: center;
  padding: 100px 5vw 70px;
  border-block: 2px solid var(--ink);
}

.margin-scribble {
  position: absolute;
  left: 2.5vw;
  top: 50%;
  margin: 0;
  transform: translateY(-50%) rotate(-8deg);
  font: 1000 clamp(12px, 1.3vw, 18px)/1.05 monospace;
}

.contract-art { position: relative; width: min(1100px, 83vw); }
.contract-art > img { width: 100%; }
.contract-content {
  position: absolute;
  inset: 25% 13% 25% 17%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: center;
  gap: 8px 22px;
}
.contract-content span { grid-column: 1/-1; font: 900 10px/1 monospace; letter-spacing: .2em; }
.contract-content code { overflow: hidden; text-overflow: ellipsis; font: 900 clamp(13px, 1.8vw, 26px)/1 monospace; }
.contract-content button {
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  padding: 10px 14px;
  font: 900 11px/1 monospace;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--paper), 5px 5px 0 var(--ink);
}
.contract-content button:hover { color: var(--ink); background: var(--paper); }

.whisper-ticker { overflow: hidden; padding: 2px 0; background: var(--ink); }
.whisper-ticker > div { display: flex; width: max-content; animation: crawl 18s linear infinite; }
.whisper-ticker img { width: 620px; height: 188px; object-fit: contain; filter: invert(1); }
@keyframes crawl { to { transform: translateX(-620px); } }

.story { padding: clamp(90px, 12vw, 170px) 5vw; overflow: hidden; }
.section-heading { max-width: 1100px; margin: 0 auto clamp(70px, 8vw, 120px); }
.section-heading h2 {
  margin: 15px 0 0;
  font: 1000 clamp(48px, 8vw, 125px)/.82 "Arial Narrow", Impact, sans-serif;
  letter-spacing: -.06em;
  text-transform: uppercase;
}
.section-heading.centered { text-align: center; }

.chapter {
  width: min(1280px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.04fr .86fr;
  gap: clamp(30px, 6vw, 100px);
  align-items: center;
}
.chapter.reverse { grid-template-columns: .86fr 1.04fr; }
.chapter.reverse .picture-card { order: 2; }

.picture-card { margin: 0; position: relative; }
.picture-card::before {
  content: "";
  position: absolute;
  inset: -13px;
  border: 2px solid currentColor;
  clip-path: polygon(1% 3%, 97% 0, 100% 96%, 4% 100%);
}
.picture-card img { position: relative; width: 100%; height: auto; filter: contrast(1.06); }
.picture-card figcaption,
.climax figcaption {
  position: relative;
  margin-top: 20px;
  font: 900 11px/1.2 monospace;
  letter-spacing: .16em;
}
.tilt-left { transform: rotate(-1.5deg); }
.tilt-right { transform: rotate(1.4deg); }

.story-note { position: relative; min-height: 620px; }
.story-note > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; filter: contrast(1.04); }
.story-note > div {
  position: relative;
  z-index: 1;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 19% 16% 17%;
  font: 700 clamp(16px, 1.5vw, 21px)/1.5 monospace;
}
.story-note blockquote,
.ripped-copy blockquote {
  margin: 24px 0 0;
  font: 1000 clamp(25px, 3.1vw, 50px)/.95 "Arial Narrow", Impact, sans-serif;
  text-transform: uppercase;
}

.dark-story { color: var(--paper); background: var(--ink); }
.black-note { border: 2px solid var(--paper); padding: clamp(28px, 5vw, 70px); transform: rotate(-1deg); box-shadow: 13px 13px 0 var(--paper); }
.black-note span,
.ripped-copy small { font: 900 10px/1 monospace; letter-spacing: .2em; }
.black-note h2,
.ripped-copy h2 {
  margin: 25px 0;
  font: 1000 clamp(40px, 5vw, 78px)/.88 "Arial Narrow", Impact, sans-serif;
  letter-spacing: -.05em;
  text-transform: uppercase;
}
.black-note p,
.ripped-copy p { font: 700 clamp(15px, 1.45vw, 20px)/1.55 monospace; }

.portal-section {
  position: relative;
  min-height: min(970px, 105vh);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--paper);
  background: var(--ink);
  border-block: 5px double var(--paper);
}
.portal { width: min(560px, 70vw); max-height: 95vh; object-fit: contain; filter: invert(1) drop-shadow(0 0 35px rgba(255,255,255,.18)); animation: breathe 5s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.035) rotate(1deg); filter: invert(1) drop-shadow(0 0 60px rgba(255,255,255,.32)); } }
.portal-copy { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding: 20%; mix-blend-mode: difference; }
.portal-copy p { margin: 14px 0; font: 900 10px/1.3 monospace; letter-spacing: .2em; }
.portal-copy h2 { margin: 0; font: 1000 clamp(50px, 8.5vw, 135px)/.78 "Arial Narrow", Impact, sans-serif; letter-spacing: -.06em; }

.ripped-copy { position: relative; padding: clamp(35px, 5vw, 80px); }
.ripped-copy::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #fff; box-shadow: 12px 14px 0 var(--ink); clip-path: polygon(3% 1%, 99% 4%, 96% 96%, 75% 99%, 54% 96%, 31% 100%, 2% 94%, 5% 55%); }

.silent-story { position: relative; min-height: 105vh; display: grid; align-items: center; color: var(--paper); padding: 10vw 7vw; isolation: isolate; }
.silent-bg { background-image: url("assets/05-silent-city.webp"); inset: 0; transform: scale(1.08); }
.silent-story::after { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(0,0,0,.84), rgba(0,0,0,.1) 70%, rgba(0,0,0,.55)); }
.silent-copy { width: min(640px, 85vw); }
.silent-copy > span { font: 900 11px/1 monospace; letter-spacing: .2em; }
.silent-copy h2 { margin: 20px 0 30px; font: 1000 clamp(70px, 10vw, 160px)/.76 "Arial Narrow", Impact, sans-serif; letter-spacing: -.065em; text-transform: uppercase; }
.silent-copy > p:not(.stamp) { font: 700 clamp(16px, 1.6vw, 22px)/1.5 monospace; }
.stamp { display: inline-block; margin: 35px 0 0; padding: 14px 23px; border: 5px double currentColor; transform: rotate(-6deg); font: 900 15px/1.1 monospace; text-align: center; }
.stamp strong { font-size: 38px; }

.roadmap { padding: clamp(100px, 12vw, 180px) 4vw; border-bottom: 3px solid var(--ink); }
.map-wrap { position: relative; width: min(1370px, 100%); margin: 0 auto; }
.map-wrap > img { width: 100%; height: auto; border: 2px solid var(--ink); box-shadow: 15px 18px 0 var(--ink); }
.map-notes {
  list-style: none;
  margin: -26px auto 0;
  padding: 0;
  position: relative;
  width: min(1120px, 92%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  transform: rotate(-1deg);
}
.map-notes li { min-height: 185px; padding: 28px 22px 20px; border: 2px solid var(--ink); background: var(--paper); box-shadow: 7px 8px 0 var(--ink); }
.map-notes li:nth-child(even) { transform: translateY(18px) rotate(1.5deg); background: var(--ink); color: var(--paper); }
.map-notes b { display: block; margin-bottom: 18px; font: 1000 14px/1.1 monospace; }
.map-notes span { font: 700 12px/1.45 monospace; }
.fine-print { margin: 65px auto 0; text-align: center; font: 700 10px/1.4 monospace; letter-spacing: .12em; }

.climax { color: var(--paper); background: var(--ink); padding: clamp(90px, 12vw, 180px) 5vw; }
.climax-grid { width: min(1300px, 100%); margin: 0 auto; display: grid; grid-template-columns: 1.15fr .85fr; gap: 4vw; align-items: end; }
.climax figure { margin: 0; }
.climax figure:nth-child(2) { transform: translateY(13%) rotate(2deg); }
.climax figure img { width: 100%; border: 1px solid var(--paper); }
.manifesto { width: min(1100px, 100%); margin: 150px auto 0; text-align: center; transform: rotate(-1deg); }
.manifesto p { margin: 0; font: 1000 clamp(38px, 7.8vw, 125px)/.76 "Arial Narrow", Impact, sans-serif; letter-spacing: -.055em; }
.manifesto p:nth-child(even) { color: var(--ink); background: var(--paper); }

.live-signal { padding: clamp(100px, 12vw, 180px) 3vw; }
.chart-shell { position: relative; width: min(1280px, 100%); aspect-ratio: 3 / 2; margin: 0 auto; }
.chart-frame { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.chart-window { position: absolute; left: 18.2%; top: 17%; width: 61.5%; height: 64.5%; z-index: 2; overflow: hidden; background: var(--ink); border: 3px solid var(--ink); border-radius: 4px; }
.chart-window iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.1); }
.chart-cover { position: absolute; inset: 0; display: grid; place-content: center; gap: 22px; text-align: center; padding: 25px; color: var(--paper); background: repeating-radial-gradient(circle at 50%, #171717 0 3px, #090909 4px 13px); }
.chart-cover p { margin: 0; font: 900 clamp(13px, 1.5vw, 20px)/1.4 monospace; }
.chart-cover button { justify-self: center; border: 2px solid var(--paper); background: var(--paper); color: var(--ink); padding: 12px 17px; font: 900 11px/1 monospace; cursor: pointer; }
.chart-cover.hidden { display: none; }
.chart-help { text-align: center; font: 700 11px/1.5 monospace; }

.ending { position: relative; min-height: 100vh; display: grid; place-items: center; overflow: hidden; color: var(--paper); background: var(--ink); }
.ending-portal { position: absolute; width: min(720px, 74vw); height: 105%; object-fit: contain; opacity: .25; filter: invert(1); animation: breathe 7s ease-in-out infinite reverse; }
.ending-copy { position: relative; z-index: 1; text-align: center; padding: 100px 5vw; }
.ending-copy > p:first-child { font: 900 11px/1 monospace; letter-spacing: .25em; }
.ending-copy h2 { margin: 25px 0; font: 1000 clamp(66px, 11vw, 180px)/.75 "Arial Narrow", Impact, sans-serif; letter-spacing: -.07em; }
.ending-ticker { display: inline-block; margin: 20px 0 50px; padding: 8px 17px; color: var(--ink); background: var(--paper); font: 1000 18px/1 monospace; transform: rotate(-3deg); }
.ending-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ending-actions a { border: 2px solid var(--paper); padding: 12px 15px; font: 900 11px/1 monospace; }
.ending-actions a:hover { color: var(--ink); background: var(--paper); transform: rotate(-2deg); }

footer { display: flex; justify-content: space-between; gap: 20px; padding: 25px 3vw; color: var(--paper); background: var(--ink); border-top: 1px solid var(--paper); font: 700 9px/1.3 monospace; letter-spacing: .08em; }

.toast { position: fixed; left: 50%; bottom: 25px; z-index: 1200; transform: translate(-50%, 160%); padding: 13px 17px; color: var(--paper); background: var(--ink); border: 2px solid var(--paper); box-shadow: 5px 5px 0 var(--ink); font: 900 11px/1 monospace; transition: transform 250ms ease; }
.toast.show { transform: translate(-50%, 0) rotate(-2deg); }

.reveal { opacity: 0; transform: translateY(45px) rotate(.4deg); transition: opacity 700ms ease, transform 850ms cubic-bezier(.2,.75,.2,1); }
.reveal.delayed { transition-delay: 150ms; }
.reveal.in-view { opacity: 1; transform: translateY(0) rotate(0); }

@media (max-width: 900px) {
  .topbar { padding: 0 14px; grid-template-columns: auto 1fr auto; }
  .topbar p { text-align: center; font-size: 8px; }
  .sound-switch { font-size: 7px; padding: 6px; }
  .hero { min-height: 940px; align-content: start; padding-top: 100px; }
  .hero-art { background-position: 58% center; }
  .hero-copy { width: 100%; }
  .hero h1 { font-size: clamp(48px, 14vw, 85px); }
  .artifact-nav { right: 5vw; bottom: 70px; width: min(470px, 90vw); }
  .scroll-note { display: none; }
  .margin-scribble { position: static; transform: rotate(-3deg); justify-self: start; margin-bottom: 28px; }
  .contract-section { display: flex; flex-direction: column; }
  .contract-art { width: 100%; }
  .contract-content { inset: 22% 10% 22% 16%; gap: 7px; }
  .contract-content code { grid-column: 1/-1; font-size: 12px; }
  .contract-content button { justify-self: start; font-size: 9px; padding: 7px 9px; }
  .chapter, .chapter.reverse { grid-template-columns: 1fr; }
  .chapter.reverse .picture-card { order: initial; }
  .story-note, .story-note > div { min-height: 600px; }
  .map-notes { grid-template-columns: 1fr 1fr; width: 90%; }
  .map-notes li:nth-child(even) { transform: translateY(8px) rotate(1deg); }
  .chart-window { left: 16.5%; top: 15%; width: 66%; height: 68%; }
}

@media (max-width: 600px) {
  .hero { min-height: 850px; padding-inline: 20px; }
  .wordmark { width: 90vw; }
  .hero h1 { font-size: 49px; }
  .hero-note { font-size: 12px; max-width: 80%; }
  .artifact-nav { left: 50%; right: auto; transform: translateX(-50%) rotate(-2deg); width: 94vw; bottom: 42px; }
  .contract-section { min-height: 360px; padding: 80px 17px 60px; }
  .contract-art > img { min-height: 190px; object-fit: fill; }
  .contract-content { inset: 24% 7% 18% 13%; }
  .contract-content span { font-size: 7px; }
  .contract-content code { max-width: 230px; }
  .whisper-ticker img { width: 420px; height: 130px; }
  @keyframes crawl { to { transform: translateX(-420px); } }
  .story { padding-inline: 20px; }
  .section-heading h2 { font-size: 53px; }
  .story-note, .story-note > div { min-height: 520px; }
  .story-note > div { padding: 20% 15%; font-size: 13px; }
  .portal-section { min-height: 720px; }
  .portal { width: 93vw; }
  .portal-copy { padding: 10%; }
  .silent-story { min-height: 850px; }
  .silent-bg { background-position: 62% center; }
  .silent-copy h2 { font-size: 74px; }
  .map-wrap > img { box-shadow: 8px 9px 0 var(--ink); }
  .map-notes { grid-template-columns: 1fr; margin-top: 15px; }
  .map-notes li, .map-notes li:nth-child(even) { min-height: 0; transform: none; }
  .climax-grid { grid-template-columns: 1fr; }
  .climax figure:nth-child(2) { transform: rotate(2deg); }
  .manifesto { margin-top: 90px; }
  .manifesto p { font-size: 42px; }
  .live-signal { padding-inline: 0; }
  .live-signal .section-heading { padding-inline: 20px; }
  .chart-shell { aspect-ratio: 1 / 1.16; overflow: hidden; }
  .chart-frame { width: 174%; max-width: none; left: -36%; object-fit: contain; }
  .chart-window { left: 7%; top: 19%; width: 86%; height: 60%; }
  .chart-help { padding: 0 25px; }
  .ending-copy h2 { font-size: 64px; }
  .ending-actions { flex-direction: column; align-items: stretch; }
  footer { flex-direction: column; text-align: center; }
}

@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; }
}
