:root {
  --paper: #e9e3d9;
  --paper-2: #f0ece4;
  --ink: #25211e;
  --ink-soft: #5e5750;
  --line: #81796f;
  --line-soft: rgba(67, 60, 54, 0.28);
  --tan: #b79973;
  --panel: rgba(240, 236, 228, 0.72);
  --shadow: rgba(53, 47, 41, 0.12);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.45;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .19;
  mix-blend-mode: multiply;
  background-image:
    repeating-linear-gradient(0deg, rgba(40,32,26,.025) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(40,32,26,.016) 0 1px, transparent 1px 7px),
    radial-gradient(circle at 22% 17%, rgba(78,64,50,.07) 0 .55px, transparent .8px),
    radial-gradient(circle at 71% 64%, rgba(78,64,50,.05) 0 .45px, transparent .7px);
  background-size: auto, auto, 8px 8px, 11px 11px;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button, .btn, .copy-btn { font: inherit; }

.skip-link {
  position: fixed;
  left: 10px;
  top: -60px;
  z-index: 10000;
  background: #fff;
  border: 1px solid var(--ink);
  padding: 8px 12px;
}
.skip-link:focus { top: 10px; }

.shell {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 58px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(233, 227, 217, .92);
  backdrop-filter: blur(5px);
}
.header-inner {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.wordmark {
  text-decoration: none;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -.02em;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-family: "Courier New", monospace;
  font-size: 12px;
}
.main-nav > a { text-decoration: none; }
.main-nav > a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav-socials { display: flex; align-items: center; gap: 8px; }
.icon-link, .social-icon, .footer-socials a {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  text-decoration: none;
  transition: transform .12s ease, opacity .12s ease;
}
.icon-link img, .social-icon img, .footer-socials img { width: 25px; height: 25px; object-fit: contain; }
.telegram img { transform: scale(1.08); }
.icon-link:hover, .social-icon:hover, .footer-socials a:hover { transform: translateY(-1px); opacity: .72; }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--ink); font-family: "Courier New", monospace; }

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 58px));
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
  background: #e8e1d6;
}
.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.hero-overlay {
  position: relative;
  min-height: min(760px, calc(100vh - 58px));
  display: flex;
  align-items: center;
}
.hero-copy {
  width: min(540px, 48vw);
  padding: 42px 0;
}
.eyebrow, .section-no, .panel-kicker, .status-line, .aside-note {
  margin: 0 0 16px;
  font-family: "Courier New", monospace;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--ink-soft);
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 6px;
  font-size: clamp(48px, 6vw, 88px);
  line-height: .92;
  letter-spacing: -.065em;
  text-wrap: balance;
}
.ticker {
  margin: 0 0 34px;
  font-family: "Courier New", monospace;
  font-size: 15px;
  font-weight: 700;
}
.hero-line {
  margin: 0 0 10px;
  font-size: clamp(25px, 2.6vw, 40px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.04em;
}
.deadpan {
  max-width: 390px;
  margin: 0 0 28px;
  color: var(--ink-soft);
  font-family: "Courier New", monospace;
  font-size: 13px;
}
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.btn, .copy-btn {
  min-height: 42px;
  border: 1px solid #35312d;
  border-radius: 2px;
  background: #ece7de;
  color: #211f1c;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 18px;
  font-family: "Courier New", monospace;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .12s ease, background .12s ease;
}
.btn:hover, .copy-btn:hover { background: #dfd8cc; transform: translateY(-1px); }
.btn-ghost { background: rgba(236,231,222,.55); }
.btn img { width: 22px; height: 22px; object-fit: contain; }
.ca-box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  width: min(520px, 100%);
  border: 1px solid var(--line);
  background: rgba(240,236,228,.72);
  margin-bottom: 14px;
}
.ca-label {
  align-self: stretch;
  display: grid;
  place-items: center;
  padding: 0 10px;
  border-right: 1px solid var(--line-soft);
  font-family: "Courier New", monospace;
  font-size: 11px;
  font-weight: 700;
}
.ca-box code {
  min-width: 0;
  padding: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "Courier New", monospace;
  font-size: 11px;
}
.copy-btn {
  min-height: 38px;
  border-width: 0 0 0 1px;
  border-color: var(--line-soft);
  border-radius: 0;
  padding: 7px 12px;
}
.hero-socials { display: flex; align-items: center; gap: 4px; }
.social-icon { width: 36px; height: 36px; }
.social-icon img { width: 31px; height: 31px; }

.hero-mobile { display: none; }

.section { padding: 106px 0; border-bottom: 1px solid var(--line-soft); }
.split-grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(380px, .78fr);
  gap: clamp(48px, 8vw, 120px);
  align-items: center;
}
h2 {
  margin-bottom: 30px;
  font-size: clamp(42px, 6vw, 82px);
  line-height: .92;
  letter-spacing: -.06em;
}
.big-copy { max-width: 520px; font-size: clamp(20px, 2.2vw, 30px); line-height: 1.15; }
.big-copy p { margin-bottom: 12px; }
.status-line { margin-top: 30px; }
.about-figure { margin: 0; justify-self: end; width: min(100%, 470px); }
.about-figure img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border: 1px solid var(--line-soft); }

.section-heading { margin-bottom: 38px; }
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.form-card {
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(240,236,228,.42);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .12s ease, background .12s ease;
}
.form-card:hover { transform: translateY(-2px); background: rgba(240,236,228,.76); }
.form-card > span { font-family: "Courier New", monospace; font-size: 11px; color: var(--ink-soft); }
.form-card h3 { margin: 0; font-size: clamp(34px, 4vw, 56px); letter-spacing: -.055em; }
.form-card p { margin: 0; font-family: "Courier New", monospace; font-size: 13px; }
.aside-note { margin-top: 18px; text-align: right; }

.chart-community-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(330px, .7fr); gap: 16px; }
.chart-frame, .community-panel { border: 1px solid var(--line); background: rgba(240,236,228,.46); }
.chart-frame { min-height: 520px; position: relative; overflow: hidden; }
.chart-placeholder { min-height: 520px; padding: 34px; display: grid; place-items: center; align-content: center; text-align: center; }
.chart-placeholder h3 { font-size: clamp(32px, 4vw, 52px); letter-spacing: -.05em; margin: 12px 0 6px; }
.chart-placeholder p { font-family: "Courier New", monospace; font-size: 12px; color: var(--ink-soft); }
.chart-face { font-family: "Courier New", monospace; font-size: 34px; }
#dex-frame { width: 100%; height: 520px; border: 0; background: #f4f0e8; }
.community-panel { padding: 26px; }
.community-panel h3 { margin-bottom: 3px; font-size: clamp(31px, 3.2vw, 48px); letter-spacing: -.05em; }
.panel-ticker { font-family: "Courier New", monospace; font-weight: 700; margin-bottom: 24px; }
.community-ca { margin-bottom: 18px; }
.community-links { display: grid; border-top: 1px solid var(--line-soft); }
.community-links a {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line-soft);
  text-decoration: none;
  font-family: "Courier New", monospace;
  font-size: 12px;
  font-weight: 700;
  transition: transform .12s ease, opacity .12s ease;
}
.community-links a:hover { transform: translateX(2px); opacity: .72; }
.community-links img { width: 34px; height: 34px; object-fit: contain; }
.community-links .telegram img { width: 36px; height: 36px; }
.panel-note { margin: 22px 0 0; font-family: "Courier New", monospace; font-size: 11px; color: var(--ink-soft); }

.final-cta { position: relative; min-height: 640px; overflow: hidden; border-bottom: 1px solid var(--line-soft); }
.final-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.final-overlay { position: relative; min-height: 640px; display: flex; align-items: center; }
.final-copy { width: min(520px, 48vw); }
.final-copy h2 { margin-bottom: 12px; }
.final-copy > p:not(.section-no) { font-family: "Courier New", monospace; color: var(--ink-soft); margin-bottom: 26px; }

.site-footer { padding: 30px 0 24px; background: #e3ddd3; }
.footer-top, .footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-top { padding-bottom: 20px; border-bottom: 1px solid var(--line-soft); }
.footer-top > div { font-size: 14px; }
.footer-top > div span { font-family: "Courier New", monospace; font-size: 12px; }
.footer-socials { display: flex; align-items: center; gap: 5px; }
.footer-bottom { padding-top: 15px; font-family: "Courier New", monospace; font-size: 10px; color: var(--ink-soft); }

[data-link].is-disabled { opacity: .45; cursor: not-allowed; }

.reveal { opacity: 1; transform: none; }
.reveal-ready .reveal { opacity: 0; transform: translateY(8px); transition: opacity .5s ease, transform .5s ease; }
.reveal-ready .reveal.is-visible { opacity: 1; transform: none; }
.delayed-1 { transition-delay: .06s; }
.delayed-2 { transition-delay: .12s; }

@media (max-width: 900px) {
  .main-nav { gap: 13px; }
  .main-nav > a { display: none; }
  .hero-desktop { display: none; }
  .hero-mobile { display: block; border-bottom: 1px solid var(--line-soft); background: #eae4da; }
  .mobile-hero-inner { padding: 74px 0 24px; text-align: left; }
  .mobile-hero-inner h1 { font-size: clamp(50px, 14vw, 76px); }
  .mobile-character { width: min(470px, 88vw); margin: 34px auto 0; }
  .split-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-figure { justify-self: center; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { min-height: 145px; }
  .chart-community-grid { grid-template-columns: 1fr; }
  .chart-frame, .chart-placeholder, #dex-frame { min-height: 430px; height: 430px; }
  .final-cta { min-height: auto; background: var(--paper); }
  .final-art { position: relative; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; object-position: 68% center; border-top: 1px solid var(--line-soft); }
  .final-overlay { min-height: auto; display: block; padding: 72px 0 32px; order: -1; }
  .final-cta { display: flex; flex-direction: column; }
  .final-overlay { order: 1; }
  .final-art { order: 2; }
  .final-copy { width: 100%; }
}

@media (max-width: 640px) {
  .shell { width: min(var(--max), calc(100% - 26px)); }
  .site-header { min-height: 52px; }
  .header-inner { min-height: 52px; }
  .wordmark { font-size: 13px; }
  .menu-toggle { display: block; }
  .main-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 52px;
    display: none;
    padding: 16px 13px;
    background: rgba(233,227,217,.98);
    border-bottom: 1px solid var(--line-soft);
  }
  .main-nav.is-open { display: grid; grid-template-columns: 1fr; align-items: stretch; }
  .main-nav > a { display: block; padding: 9px 0; }
  .nav-socials { padding-top: 7px; }
  .mobile-hero-inner { padding-top: 56px; }
  h1 { letter-spacing: -.055em; }
  h2 { font-size: clamp(39px, 14vw, 60px); }
  .section { padding: 74px 0; }
  .ca-box { grid-template-columns: auto minmax(0, 1fr); }
  .ca-box .copy-btn { grid-column: 1 / -1; width: 100%; border-left: 0; border-top: 1px solid var(--line-soft); }
  .about-figure { width: min(100%, 430px); }
  .chart-frame, .chart-placeholder, #dex-frame { min-height: 360px; height: 360px; }
  .chart-placeholder { padding: 22px; }
  .community-panel { padding: 20px; }
  .footer-top, .footer-bottom { align-items: flex-start; flex-direction: column; }
  .footer-bottom { gap: 8px; }
}

@media (max-width: 370px) {
  .shell { width: calc(100% - 20px); }
  .mobile-hero-inner h1 { font-size: 47px; }
  .btn { padding: 9px 14px; }
  .community-panel { padding: 16px; }
}

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