@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@300;400;500&family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg: #0b0b0c;
  --panel: #111113;
  --line: rgba(255,255,255,.12);
  --text: #f4f2ed;
  --blue: #21468b;
  --red: #ae1c28;
  --warm: #f1eadf;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; width: 100%; max-width: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 20;
  opacity: .035;
  mix-blend-mode: screen;
  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='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

.topbar {
  height: 72px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 64px);
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11,11,12,.82);
  backdrop-filter: blur(14px);
}
.brand, .status { font: 500 11px/1 DM Mono, monospace; letter-spacing: .13em; }
.brand { display: flex; align-items: center; gap: 12px; }
.status { color: #b6b6b8; display: flex; align-items: center; gap: 8px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #56d574; box-shadow: 0 0 14px rgba(86,213,116,.65); }

.flag-mini {
  display: grid;
  grid-template-columns: repeat(3, 6px);
  height: 12px;
  border: 1px solid rgba(255,255,255,.22);
}
.flag-mini i:nth-child(1) { background: var(--blue); }
.flag-mini i:nth-child(2) { background: #f5f5f2; }
.flag-mini i:nth-child(3) { background: var(--red); }

.hero {
  min-height: calc(100vh - 72px);
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(72px, 10vw, 150px) clamp(20px, 6vw, 88px) 90px;
  position: relative;
}
.eyebrow, .section-label { font: 500 11px/1.2 DM Mono, monospace; letter-spacing: .2em; color: #a3a3a6; }
.hero h1 {
  font-size: clamp(70px, 15vw, 210px);
  line-height: .78;
  letter-spacing: -.075em;
  margin: 30px 0 38px;
  font-weight: 900;
  max-width: 1050px;
}
.hero h1 span { color: transparent; -webkit-text-stroke: 1.5px rgba(244,242,237,.68); }
.lede {
  max-width: 680px;
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.5;
  letter-spacing: -.02em;
  color: #c6c5c3;
}
.lede strong { color: var(--text); }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.button {
  font: 600 11px/1 DM Mono, monospace;
  letter-spacing: .08em;
  padding: 16px 18px;
  border: 1px solid var(--line);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.button:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.35); }
.button.primary { background: var(--warm); color: #111; border-color: var(--warm); }
.button.ghost { color: #c4c4c7; }

.pixel-card { width: min(470px, 88vw); margin: 100px 0 0 auto; position: relative; }
.pixel-glow {
  position: absolute; width: 70%; height: 70%; right: 0; top: 0; filter: blur(70px);
  background: linear-gradient(90deg, rgba(33,70,139,.35), rgba(255,255,255,.08), rgba(174,28,40,.32)); opacity: .7;
}
.pixel-ad {
  position: relative; display: grid; grid-template-columns: 1fr 1fr 1fr; aspect-ratio: 3 / 1;
  border: 1px solid rgba(255,255,255,.25); box-shadow: 0 22px 90px rgba(0,0,0,.42); image-rendering: pixelated;
}
.pixel-ad .blue { background: var(--blue); }
.pixel-ad .white { background: #f1f0e9; display:grid; place-items:center; }
.pixel-ad .red { background: var(--red); }
.pixel-ad .white span { color:#111; font: 900 clamp(42px, 7vw, 80px)/1 Inter, sans-serif; }
.pixel-meta {
  position: relative; display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-top:12px;
  font: 500 10px/1 DM Mono, monospace; letter-spacing:.1em; color:#77777c;
}

.story, .archive, .next, .support {
  max-width: 1160px; margin: 0 auto; padding: 120px clamp(20px, 6vw, 56px); border-top: 1px solid var(--line);
}
.timeline { margin-top: 46px; }
.event { display:grid; grid-template-columns: minmax(90px, 160px) 1fr; gap: 30px; padding: 44px 0; border-top:1px solid var(--line); }
.event:last-child { border-bottom: 1px solid var(--line); }
.year { font: 500 clamp(26px, 4vw, 52px)/1 DM Mono, monospace; letter-spacing:-.06em; }
.event h2 { margin:0 0 14px; font-size: clamp(23px, 3vw, 38px); letter-spacing:-.04em; }
.event p { max-width: 650px; color:#aaa9ac; line-height:1.7; margin:0; font-size:16px; }
.muted-event { opacity:.58; }

.numbers { max-width: 1320px; margin: 0 auto; border:1px solid var(--line); display:grid; grid-template-columns: repeat(4, 1fr); }
.stat { min-height: 190px; padding: 30px; display:flex; flex-direction:column; justify-content:space-between; }
.stat + .stat { border-left:1px solid var(--line); }
.stat strong { font-size: clamp(46px, 7vw, 86px); letter-spacing:-.07em; line-height:1; }
.stat span { font:500 10px/1.35 DM Mono, monospace; letter-spacing:.12em; color:#77777c; }

.archive-grid, .support-grid { margin-top: 45px; display:grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
.archive-image-wrap { border: 1px solid var(--line); background: var(--panel); padding: 16px; }
.archive-image { width: 100%; border: 1px solid rgba(255,255,255,.08); }
.archive-copy h2, .support h2 { font-size: clamp(30px, 4vw, 54px); line-height: 1.02; letter-spacing: -.05em; margin: 0 0 18px; }
.archive-copy p, .support p { color:#aaa9ac; line-height:1.7; margin:0 0 18px; font-size:16px; }
.archive-list { margin: 24px 0 0; padding-left: 20px; color:#d0d0d2; line-height:1.8; }

.manifesto { min-height: 62vh; display:grid; place-items:center; text-align:center; padding: 90px 20px; position:relative; }
.manifesto p { font-size: clamp(34px, 7vw, 92px); line-height:1.02; letter-spacing:-.06em; margin:0; font-weight:400; }
.manifesto strong { font-weight:800; }
.quote-mark { position:absolute; font: 900 clamp(180px, 32vw, 500px)/1 Georgia, serif; opacity:.035; transform:translateY(-6%); user-select:none; }

.next-grid { margin-top:45px; display:grid; grid-template-columns: 1.2fr .8fr; gap:70px; }
.next h2 { font-size:clamp(36px, 6vw, 72px); line-height:.98; letter-spacing:-.06em; margin:0; }
.next h2 span { color:#7a7a7f; }
.next-copy { align-self:end; color:#aaa9ac; font-size:16px; line-height:1.7; }
.tiny { margin-top:28px; padding-top:24px; border-top:1px solid var(--line); font: 400 11px/1.55 DM Mono, monospace; color:#65656a; }

.support-card { border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01)); padding: 26px; }
.support-label { font: 500 10px/1 DM Mono, monospace; letter-spacing: .14em; color:#86868c; margin-bottom: 16px; }
.support-address {
  font: 600 15px/1.6 DM Mono, monospace; color:#f3efe7; word-break: break-all;
  padding: 16px; background: rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.08);
}
.support-buttons { display:flex; gap:12px; flex-wrap:wrap; margin-top: 16px; }
.support-qr-wrap { margin-top: 22px; display:flex; justify-content:center; padding: 18px; background: #fff; }
.support-qr { width: 220px; height: 220px; object-fit: contain; }

footer {
  border-top:1px solid var(--line); min-height:86px; display:flex; justify-content:space-between; align-items:center;
  padding:0 clamp(20px, 4vw, 64px); font:500 10px/1 DM Mono, monospace; letter-spacing:.11em; color:#77777c;
}
.footer-right span { color:#ddd; padding:0 7px; }

.reveal { opacity:0; transform:translateY(16px); animation: reveal .75s cubic-bezier(.2,.7,.2,1) forwards; }
.delay-1 { animation-delay:.08s; }
.delay-2 { animation-delay:.16s; }
.delay-3 { animation-delay:.24s; }
@keyframes reveal { to { opacity:1; transform:none; } }

@media (max-width: 760px) {
  .topbar { height:64px; }
  .status, .brand { font-size:9px; }
  .hero { min-height:auto; padding-top:72px; padding-bottom:80px; }
  .hero h1 { font-size: clamp(48px, 15vw, 66px); line-height: .86; letter-spacing: -.06em; margin-top:24px; }
  .hero h1 span { display:block; white-space:nowrap; }
  .lede { max-width: 100%; font-size: 18px; line-height: 1.52; }
  .pixel-card { width: 100%; max-width: 100%; margin-top:70px; }
  .pixel-meta { font-size: 9px; }
  .event { grid-template-columns:1fr; gap:16px; }
  .numbers { grid-template-columns:1fr 1fr; margin:0 16px; }
  .stat { min-height:150px; }
  .stat:nth-child(3) { border-left:0; border-top:1px solid var(--line); }
  .stat:nth-child(4) { border-top:1px solid var(--line); }
  .archive-grid, .support-grid, .next-grid { grid-template-columns:1fr; gap:30px; }
  .support-qr { width: 190px; height: 190px; }
  footer { flex-direction:column; gap:10px; justify-content:center; padding:20px; text-align:center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  .reveal { animation:none; opacity:1; transform:none; }
}


/* V2.1 — universal Bitcoin donation UI */
.support-qr-note {
  margin-top: 22px;
  margin-bottom: 10px;
  text-align: center;
  font: 500 10px/1 DM Mono, monospace;
  letter-spacing: .12em;
  color: #8a8a8f;
}
.support-qr-wrap {
  margin-top: 0;
}


/* V2.2 — phone-safe layout even if a mobile browser requests "Desktop site". */
html.phone-layout .topbar { height:64px; }
html.phone-layout .status,
html.phone-layout .brand { font-size:9px; }

html.phone-layout .hero {
  min-height:auto;
  padding-top:72px;
  padding-bottom:80px;
}
html.phone-layout .hero h1 {
  font-size:66px;
  line-height:.86;
  letter-spacing:-.06em;
  width:100%;
  max-width:100%;
  margin-top:24px;
}
html.phone-layout .hero h1 span {
  display:block;
  white-space:nowrap;
}
html.phone-layout .lede {
  max-width:100%;
  font-size:18px;
  line-height:1.52;
}
html.phone-layout .pixel-card {
  width:100%;
  max-width:100%;
  margin-top:70px;
}
html.phone-layout .pixel-meta { font-size:9px; }

html.phone-layout .event {
  grid-template-columns:1fr;
  gap:16px;
}
html.phone-layout .numbers {
  grid-template-columns:1fr 1fr;
  margin:0 16px;
}
html.phone-layout .stat { min-height:150px; }
html.phone-layout .stat:nth-child(3) {
  border-left:0;
  border-top:1px solid var(--line);
}
html.phone-layout .stat:nth-child(4) {
  border-top:1px solid var(--line);
}
html.phone-layout .archive-grid,
html.phone-layout .support-grid,
html.phone-layout .next-grid {
  grid-template-columns:1fr;
  gap:30px;
}
html.phone-layout .story,
html.phone-layout .archive,
html.phone-layout .next,
html.phone-layout .support {
  width:100%;
  max-width:100%;
}
html.phone-layout .archive-image-wrap,
html.phone-layout .archive-image {
  width:100%;
  max-width:100%;
}
html.phone-layout .support-qr {
  width:190px;
  height:190px;
}
html.phone-layout footer {
  flex-direction:column;
  gap:10px;
  justify-content:center;
  padding:20px;
  text-align:center;
}


/* V3 — multilingual navigation */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 500 9px/1 DM Mono, monospace;
  letter-spacing: .08em;
}
.lang-switcher a {
  color: #6f6f74;
  padding: 6px 4px;
  border-bottom: 1px solid transparent;
}
.lang-switcher a:hover,
.lang-switcher a[aria-current="page"] {
  color: #f4f2ed;
  border-bottom-color: rgba(255,255,255,.55);
}
.meaning-note {
  margin-top: 18px;
  max-width: 680px;
  font: 400 12px/1.65 DM Mono, monospace;
  color: #76767b;
}
.context-note {
  margin-top: 28px;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  max-width: 760px;
  color: #96969b;
  font-size: 15px;
  line-height: 1.7;
}
@media (max-width: 760px) {
  .topbar { padding-left: 16px; padding-right: 16px; }
  .topbar-right { gap: 8px; }
  .status { display: none; }
  .lang-switcher { gap: 5px; font-size: 8px; }
  .lang-switcher a { padding: 6px 2px; }
}


/* V3.1 — translated hero text must never overflow on phones.
   This also protects the English homepage when Chrome/Google Translate
   turns "FOUND IT." into a much longer phrase. */
@media (max-width: 760px) {
  .hero {
    overflow: hidden;
  }

  .hero h1,
  html.phone-layout .hero h1 {
    width: 100%;
    max-width: 100%;
    font-size: clamp(42px, 13.5vw, 60px);
    line-height: .9;
    letter-spacing: -.055em;
    overflow: visible;
  }

  .hero h1 span,
  html.phone-layout .hero h1 span {
    display: block;
    width: 100%;
    max-width: 100%;
    font-size: clamp(34px, 11vw, 50px);
    line-height: .98;
    letter-spacing: -.045em;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    text-wrap: balance;
  }
}

/* Slightly tighter typography on very narrow phones. */
@media (max-width: 390px) {
  .hero h1,
  html.phone-layout .hero h1 {
    font-size: clamp(40px, 12.8vw, 54px);
  }

  .hero h1 span,
  html.phone-layout .hero h1 span {
    font-size: clamp(32px, 10.3vw, 44px);
  }
}


/* V3.2 — definitive mobile hero fix */
@media (max-width: 760px) {
  .hero h1,
  html.phone-layout .hero h1 {
    font-size: 56px !important;
    line-height: .9 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .hero h1 span,
  html.phone-layout .hero h1 span {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    font-size: 42px !important;
    line-height: 1.02 !important;
    letter-spacing: -.035em !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
  }
}

@media (max-width: 390px) {
  .hero h1,
  html.phone-layout .hero h1 {
    font-size: 50px !important;
  }

  .hero h1 span,
  html.phone-layout .hero h1 span {
    font-size: 36px !important;
  }
}
