:root {
  --ink: #0a0a0a;
  --paper: #f1f1ed;
  --muted: #a7a7a1;
  --line: rgba(10, 10, 10, 0.22);
  --mini-scale: 0.82;
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); overflow-x: hidden; }
button, a, input { font: inherit; }
a { color: inherit; }
.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 50; padding: .75rem 1rem; color: var(--paper); background: var(--ink); transition: top .2s; }
.skip-link:focus { top: 1rem; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 30;
  opacity: .19;
  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='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.site-header { min-height: 72px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; padding: 0 3.5vw; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .65rem; width: fit-content; text-decoration: none; font-weight: 900; letter-spacing: -.04em; }
.brand-mark { width: 30px; height: 30px; display: grid; place-items: center; color: var(--paper); background: var(--ink); border-radius: 50%; font-family: Impact, "Arial Black", sans-serif; font-size: 1.1rem; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a, .micro-link { font: 700 .74rem/1 "Courier New", monospace; letter-spacing: .08em; text-decoration: none; }
.nav-links a:hover, .micro-link:hover, .text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.micro-link { justify-self: end; }

.hero { min-height: calc(100svh - 72px); display: grid; grid-template-columns: minmax(0, .95fr) minmax(360px, 1.05fr); border-bottom: 1px solid var(--ink); }
.hero-copy { padding: clamp(3rem, 7vw, 7.5rem) 5vw 3.5rem; align-self: center; }
.eyebrow, .kicker, .section-index { font: 700 .72rem/1.2 "Courier New", monospace; letter-spacing: .08em; }
.eyebrow { display: flex; align-items: center; gap: .6rem; margin-bottom: 2.2rem; }
.status-dot { width: 8px; height: 8px; background: var(--ink); border-radius: 50%; box-shadow: 0 0 0 5px rgba(10, 10, 10, .1); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(10, 10, 10, 0); } }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 1.8rem; font-family: Impact, "Arial Black", Arial, sans-serif; font-size: clamp(5rem, 8.5vw, 8.5rem); font-weight: 900; line-height: .82; letter-spacing: -.055em; text-transform: uppercase; }
h1 span { display: block; }
h1 span:nth-child(2) { color: transparent; -webkit-text-stroke: 2px var(--ink); text-stroke: 2px var(--ink); transform: translateX(12%); }
.hero-lede { max-width: 560px; margin-bottom: 1rem; font-size: clamp(1.25rem, 2vw, 1.85rem); font-weight: 800; line-height: 1.02; letter-spacing: -.035em; }
.hero-story { max-width: 600px; margin-bottom: 2rem; font: 400 1rem/1.5 "Courier New", monospace; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 0 1.1rem; border: 1px solid var(--ink); text-decoration: none; font: 800 .76rem/1 "Courier New", monospace; letter-spacing: .05em; transition: transform .18s, box-shadow .18s, background .18s, color .18s; }
.button:hover { transform: translate(-3px, -3px); box-shadow: 4px 4px 0 var(--ink); }
.button-solid { color: var(--paper); background: var(--ink); }
.button-outline { background: transparent; }

.hero-visual { position: relative; min-height: 680px; display: grid; place-items: center; overflow: hidden; border-left: 1px solid var(--ink); background-color: #c9c9c4; background-image: linear-gradient(rgba(10,10,10,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(10,10,10,.1) 1px, transparent 1px); background-size: 38px 38px; }
.hero-visual::before { content: "ARCHIVE / P-0001"; position: absolute; top: 1.4rem; left: 1.4rem; font: 700 .7rem/1 "Courier New", monospace; }
.registration-mark { position: absolute; font-size: 2.6rem; font-weight: 200; line-height: 1; }
.reg-a { right: 5%; top: 8%; }
.reg-b { left: 5%; bottom: 19%; }
.asset-stage { position: relative; width: min(82%, 720px); aspect-ratio: 1; display: grid; place-items: center; }
.hero-asset { width: 100%; height: 100%; object-fit: contain; transform: scale(var(--mini-scale)) translate3d(var(--shift-x, 0), var(--shift-y, 0), 0) rotate(-1.2deg); filter: drop-shadow(13px 16px 0 rgba(10,10,10,.14)); transition: transform .55s cubic-bezier(.2,.9,.2,1); will-change: transform; }
.paid-stamp { position: absolute; right: 7%; bottom: 9%; z-index: 2; width: 116px; aspect-ratio: 1; display: grid; place-items: center; border: 5px double var(--ink); border-radius: 50%; font: 900 1.2rem/.85 "Arial Black", sans-serif; text-align: center; transform: rotate(12deg) scale(calc(1.42 - var(--mini-scale))); opacity: calc(1.6 - var(--mini-scale)); transition: transform .5s, opacity .5s; }
.scale-console { position: absolute; left: 1.4rem; right: 1.4rem; bottom: 1.4rem; padding: 1rem; color: var(--paper); background: var(--ink); }
.scale-console label, .scale-meta { display: flex; align-items: center; justify-content: space-between; font: 700 .7rem/1 "Courier New", monospace; letter-spacing: .08em; }
.scale-console input { width: 100%; margin: .85rem 0; accent-color: var(--paper); cursor: ew-resize; }
.scale-meta { color: #a9a9a5; }
.scale-meta button { border: 0; padding: 0; color: var(--paper); background: none; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

.ca-strip { min-height: 76px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1.5rem; padding: .85rem 3.5vw; color: var(--paper); background: var(--ink); }
.ca-label { font: 700 .7rem/1 "Courier New", monospace; color: #979793; }
.ca-strip code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 clamp(.78rem, 1.4vw, 1rem)/1 "Courier New", monospace; }
.copy-button { min-width: 96px; display: flex; justify-content: space-between; gap: 1rem; padding: .7rem .8rem; border: 1px solid #777; color: var(--paper); background: transparent; font: 700 .72rem/1 "Courier New", monospace; cursor: pointer; }
.copy-button:hover { color: var(--ink); background: var(--paper); }

.marquee { overflow: hidden; padding: .65rem 0; border-bottom: 1px solid var(--ink); background: var(--paper); }
.marquee-track { display: flex; width: max-content; animation: marquee 21s linear infinite; font: 900 1rem/1 "Arial Black", sans-serif; letter-spacing: .02em; }
.marquee-track span { padding-right: .7rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

.story-section { display: grid; grid-template-columns: .25fr .85fr .75fr .65fr; gap: clamp(1.5rem, 4vw, 4rem); padding: clamp(5rem, 10vw, 10rem) 4vw; border-bottom: 1px solid var(--ink); }
.story-heading h2, .receipt-panel h2 { margin: .5rem 0 0; font-family: Impact, "Arial Black", sans-serif; font-size: clamp(3rem, 6.2vw, 7rem); line-height: .82; letter-spacing: -.04em; }
.story-copy { padding-top: 2.1rem; font-size: 1.05rem; line-height: 1.55; }
.story-copy p + p { margin-top: 1.5rem; }
.memo { align-self: start; border: 1px solid var(--ink); transform: rotate(1.5deg); background: #deded9; box-shadow: 9px 9px 0 var(--ink); }
.memo-head { display: flex; justify-content: space-between; padding: .7rem; border-bottom: 1px solid var(--ink); font: 700 .65rem/1 "Courier New", monospace; }
.memo > p { padding: 2.5rem 1rem 2rem; font: 900 1.25rem/1.1 "Arial Black", sans-serif; }
.memo-sign { padding: .7rem; border-top: 1px dashed var(--ink); text-align: right; font: 700 .72rem/1 "Courier New", monospace; }

.receipt-section { display: grid; grid-template-columns: .9fr 1.1fr; background: var(--ink); }
.receipt-panel { width: min(82%, 580px); margin: clamp(4rem, 8vw, 8rem) auto; padding: 2rem; color: var(--ink); background: var(--paper); clip-path: polygon(0 0,100% 0,100% 97%,97% 100%,94% 97%,91% 100%,88% 97%,85% 100%,82% 97%,79% 100%,76% 97%,73% 100%,70% 97%,67% 100%,64% 97%,61% 100%,58% 97%,55% 100%,52% 97%,49% 100%,46% 97%,43% 100%,40% 97%,37% 100%,34% 97%,31% 100%,28% 97%,25% 100%,22% 97%,19% 100%,16% 97%,13% 100%,10% 97%,7% 100%,4% 97%,0 100%); }
.receipt-top { display: flex; justify-content: space-between; padding-bottom: 1rem; border-bottom: 1px dashed var(--ink); font: 700 .65rem/1 "Courier New", monospace; }
.receipt-panel h2 { font-size: clamp(3.5rem, 6vw, 6.8rem); padding: 2rem 0; }
.receipt-lines { border-top: 1px dashed var(--ink); border-bottom: 1px dashed var(--ink); }
.receipt-lines div, .receipt-total { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 0; font: 700 .78rem/1.2 "Courier New", monospace; }
.receipt-total { align-items: flex-end; padding: 1.4rem 0; }
.receipt-total strong { font: 900 3.5rem/.8 "Arial Black", sans-serif; letter-spacing: -.04em; }
.receipt-note { font: 400 .7rem/1.4 "Courier New", monospace; }
.manifesto { padding: clamp(4rem, 8vw, 8rem) 5vw; color: var(--paper); border-left: 1px solid #444; }
.manifesto .section-index { color: #868682; }
.manifesto ol { margin: 2rem 0 3rem; padding: 0; list-style: none; }
.manifesto li { display: grid; grid-template-columns: 50px 1fr; gap: 1rem; padding: 1.5rem 0; border-top: 1px solid #444; }
.manifesto li:last-child { border-bottom: 1px solid #444; }
.manifesto li span { padding-top: .45rem; font: 700 .7rem/1 "Courier New", monospace; color: #868682; }
.manifesto li p { margin: 0; font: 900 clamp(1.8rem, 4vw, 4.7rem)/.9 "Arial Black", sans-serif; letter-spacing: -.035em; }
.final-actions { display: flex; align-items: center; gap: 2rem; }
.button-light { color: var(--ink); background: var(--paper); border-color: var(--paper); }
.button-light:hover { box-shadow: 4px 4px 0 #767671; }
.text-link { font: 700 .72rem/1 "Courier New", monospace; }

footer { display: grid; grid-template-columns: .7fr 1.6fr .7fr; gap: 2rem; align-items: end; padding: 3rem 4vw; color: var(--paper); background: var(--ink); border-top: 1px solid #444; }
footer .brand-mark { color: var(--ink); background: var(--paper); }
footer p, footer > span { margin: 0; font: 400 .68rem/1.4 "Courier New", monospace; color: #999994; }
footer > span { text-align: right; }
.toast { position: fixed; left: 50%; bottom: 1.5rem; z-index: 60; padding: .8rem 1rem; color: var(--ink); background: var(--paper); border: 1px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); font: 700 .72rem/1 "Courier New", monospace; transform: translate(-50%, 160%); transition: transform .25s; }
.toast.show { transform: translate(-50%, 0); }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; min-height: 64px; }
  .nav-links { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; }
  .hero-copy { padding: 4rem 5vw 3rem; }
  .hero-visual { min-height: min(760px, 105vw); border-left: 0; border-top: 1px solid var(--ink); }
  .asset-stage { width: min(86%, 620px); }
  .story-section { grid-template-columns: 1fr 2fr; }
  .story-heading { grid-column: 2; }
  .story-copy { grid-column: 2; }
  .memo { grid-column: 2; max-width: 340px; }
  .receipt-section { grid-template-columns: 1fr; }
  .manifesto { border-left: 0; border-top: 1px solid #444; }
}

@media (max-width: 600px) {
  .site-header { padding: 0 1rem; }
  .micro-link { font-size: .62rem; }
  h1 { font-size: clamp(4.6rem, 23vw, 7rem); }
  .hero-story { font-size: .9rem; }
  .hero-actions .button { width: 100%; }
  .hero-visual { min-height: 125vw; }
  .scale-console { left: .8rem; right: .8rem; bottom: .8rem; }
  .ca-strip { grid-template-columns: 1fr auto; gap: .55rem; padding: 1rem; }
  .ca-label { grid-column: 1 / -1; }
  .story-section { grid-template-columns: 1fr; padding: 4rem 1rem; }
  .story-heading, .story-copy, .memo { grid-column: 1; }
  .receipt-panel { width: calc(100% - 2rem); margin: 3rem 1rem; padding: 1.25rem; }
  .manifesto { padding: 4rem 1rem; }
  .final-actions { align-items: stretch; flex-direction: column; }
  footer { grid-template-columns: 1fr; padding: 2.5rem 1rem; }
  footer > span { text-align: left; }
}

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