:root {
  --yellow: #ffe21a;
  --cyan: #2bcad5;
  --black: #111111;
  --white: #ffffff;
  --header-h: 70px;
  --border: 3px solid var(--black);
  --shadow: 5px 5px 0 var(--black);
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--yellow);
  color: var(--black);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.35;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button, input, textarea, select { font: inherit; }

.wrap { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.mono { font-family: "Courier New", monospace; font-weight: 700; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 190px 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 0 24px;
  background: color-mix(in srgb, var(--yellow) 96%, white 4%);
  border-bottom: var(--border);
}
.brand { display: flex; align-items: center; width: 176px; height: 48px; }
.brand img { width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.desktop-nav { display: flex; justify-content: center; gap: clamp(14px, 2.2vw, 34px); }
.desktop-nav a {
  position: relative;
  text-decoration: none;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: .03em;
  white-space: nowrap;
}
.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -6px;
  height: 3px;
  background: var(--black);
  transition: right .15s ease;
}
.desktop-nav a:hover::after, .desktop-nav a:focus-visible::after { right: 0; }
.social-row { display: flex; align-items: center; gap: 10px; }
.social-link, .social-disabled {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.social-link img, .social-disabled img { width: 29px; height: 29px; object-fit: contain; }
.social-link.telegram img, .social-disabled.telegram img { width: 34px; height: 34px; }
.social-link { transition: transform .12s ease; }
.social-link:hover, .social-link:focus-visible { transform: translate(-2px,-2px) rotate(-2deg); }
.social-disabled { opacity: .45; filter: grayscale(.35); cursor: not-allowed; }

.menu-toggle, .mobile-menu { display: none; }
.menu-toggle {
  justify-self: end;
  width: 43px;
  height: 40px;
  border: var(--border);
  background: var(--cyan);
  box-shadow: 3px 3px 0 var(--black);
  padding: 7px;
}
.menu-toggle span { display: block; height: 3px; margin: 4px 0; background: var(--black); }

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  overflow: hidden;
  border-bottom: var(--border);
  isolation: isolate;
}
.hero-art { position: absolute; inset: 0; z-index: -1; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-content {
  min-height: calc(100svh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-block: 52px 60px;
  max-width: var(--max);
}
.hero-wordmark { width: min(560px, 50vw); margin-bottom: 20px; }
.hero h1, .section h2, .final-cta h2 {
  margin: 0;
  font-size: clamp(42px, 6.2vw, 90px);
  line-height: .92;
  letter-spacing: -.045em;
  font-weight: 1000;
}
.hero h1 { max-width: 720px; }
.hero-copy { font-family: "Courier New", monospace; font-weight: 700; font-size: clamp(17px, 1.65vw, 23px); margin: 22px 0 26px; }
.button-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn, .copy-btn {
  appearance: none;
  border: var(--border);
  background: var(--cyan);
  color: var(--black);
  text-decoration: none;
  font-weight: 1000;
  letter-spacing: .02em;
  box-shadow: var(--shadow);
  padding: 13px 18px;
  cursor: pointer;
  transition: transform .1s ease, box-shadow .1s ease;
}
.btn:hover, .btn:focus-visible, .copy-btn:hover, .copy-btn:focus-visible { transform: translate(3px,3px); box-shadow: 2px 2px 0 var(--black); }
.btn-light { background: var(--yellow); }
.hero-ca { margin-top: 22px; display: flex; align-items: center; gap: 8px; max-width: 600px; border: 2px solid var(--black); background: rgba(255,226,26,.9); padding: 8px; }
.hero-ca code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: "Courier New", monospace; }
.hero-ca .copy-btn { padding: 8px 10px; box-shadow: 3px 3px 0 var(--black); }

.section { padding: clamp(72px, 8vw, 126px) 0; border-bottom: var(--border); }
.section-head { margin-bottom: 34px; max-width: 900px; }
.section h2 { font-size: clamp(44px, 6vw, 80px); }
.eyebrow { font-family: "Courier New", monospace; font-weight: 900; font-size: 13px; letter-spacing: .08em; margin: 0 0 10px; }
.deadpan-copy { font-size: clamp(19px, 2vw, 27px); max-width: 620px; }
.deadpan-copy p { margin: 0 0 12px; }

.about-grid { display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: clamp(34px, 7vw, 100px); }
.art-card { margin: 0; border: var(--border); background: var(--yellow); box-shadow: 8px 8px 0 var(--black); overflow: hidden; }
.art-card img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center; }

.story { background: #ffe72f; }
.story-lines { font-family: "Courier New", monospace; font-size: clamp(18px, 2vw, 26px); font-weight: 700; }
.wide-art { margin: 0; border: var(--border); box-shadow: 8px 8px 0 var(--black); overflow: hidden; }
.wide-art img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

.sighting-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.sighting-card { border: var(--border); background: var(--yellow); box-shadow: 7px 7px 0 var(--black); min-width: 0; }
.sighting-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-bottom: var(--border); }
.sighting-caption { padding: 16px; }
.sighting-caption h3 { margin: 5px 0 9px; font-size: 21px; line-height: 1; }
.sighting-caption p { margin: 0; font-family: "Courier New", monospace; font-size: 14px; font-weight: 700; }

.chart-community { background: #ffe832; }
.chart-community-grid { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(330px, 1fr); gap: 28px; align-items: stretch; }
.chart-column { min-width: 0; }
.chart-frame { min-height: 560px; border: var(--border); background: #fffbea; box-shadow: 8px 8px 0 var(--black); overflow: hidden; }
.chart-frame iframe { display: block; width: 100%; height: 100%; min-height: 560px; border: 0; background: white; }
.chart-placeholder { min-height: 560px; display: grid; place-items: center; align-content: center; text-align: center; gap: 12px; background: repeating-linear-gradient(0deg, #fffbea 0 32px, #f0edda 32px 33px), repeating-linear-gradient(90deg, transparent 0 47px, rgba(0,0,0,.08) 47px 48px); }
.chart-placeholder strong { font-size: clamp(25px, 3vw, 44px); transform: rotate(-1deg); }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-top: 18px; }
.stat { min-width: 0; border: var(--border); background: var(--yellow); padding: 12px; box-shadow: 4px 4px 0 var(--black); }
.stat span { display: block; font-family: "Courier New", monospace; font-size: 11px; font-weight: 900; }
.stat strong { display: block; margin-top: 5px; font-size: clamp(17px,1.7vw,24px); overflow: hidden; text-overflow: ellipsis; }
.contract-panel { margin-top: 18px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 12px; border: var(--border); padding: 10px; background: var(--cyan); box-shadow: 5px 5px 0 var(--black); }
.contract-panel code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: "Courier New", monospace; font-weight: 700; }
.copy-btn { padding: 9px 12px; box-shadow: 3px 3px 0 var(--black); background: var(--yellow); }
.community-panel { position: relative; min-height: 640px; overflow: hidden; border: var(--border); background: var(--yellow); box-shadow: 8px 8px 0 var(--black); }
.community-copy { position: relative; z-index: 2; padding: 28px; }
.community-panel h2 { font-size: clamp(42px,5vw,66px); }
.community-panel p { font-family: "Courier New", monospace; font-size: 18px; font-weight: 700; }
.community-links { margin: 22px 0 20px; gap: 15px; }
.community-links .social-link, .community-links .social-disabled { width: 48px; height: 48px; }
.community-links img { width: 44px; height: 44px; }
.community-links .telegram img { width: 50px; height: 50px; }
.community-chart-btn { display: inline-block; font-size: 13px; }
.community-jak { position: absolute; right: -6%; bottom: -2%; width: min(92%, 450px); max-height: 68%; object-fit: contain; object-position: right bottom; pointer-events: none; }

.final-cta { position: relative; min-height: min(75vw, 820px); border-bottom: var(--border); overflow: hidden; isolation: isolate; display: grid; align-items: center; }
.final-art { position: absolute; inset: 0; z-index: -1; background: url('assets/final-cta.webp') center / cover no-repeat; }
.final-copy { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; padding-block: 80px; }
.final-copy h2 { max-width: 760px; }
.final-copy p { font-family: "Courier New", monospace; font-weight: 700; font-size: clamp(18px, 2vw, 26px); margin: 20px 0 24px; }

.site-footer { position: relative; border-top: 0; min-height: 130px; padding: 24px 0; overflow: hidden; }
.footer-grid { min-height: 90px; display: grid; grid-template-columns: 230px 1fr auto; align-items: center; gap: 24px; position: relative; }
.footer-brand img { width: 210px; }
.footer-grid p { margin: 0; text-align: center; font-family: "Courier New", monospace; }
.footer-grid p span { font-size: 12px; }
.footer-socials { padding-right: 80px; }
.footer-jak { position: absolute; right: -5px; bottom: -58px; width: 100px; transform: rotate(2deg); pointer-events: none; }

.reveal { opacity: 0; transform: translateY(10px); transition: opacity .35s ease, transform .35s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

:focus-visible { outline: 4px solid var(--black); outline-offset: 3px; }

@media (max-width: 1000px) {
  .site-header { grid-template-columns: 160px 1fr auto; gap: 12px; padding-inline: 16px; }
  .brand { width: 150px; }
  .desktop-nav { gap: 15px; }
  .desktop-nav a { font-size: 12px; }
  .header-socials .social-link, .header-socials .social-disabled { width: 27px; height: 27px; }
  .header-socials img { width: 25px; height: 25px; }
  .chart-community-grid { grid-template-columns: 1.25fr .85fr; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 820px) {
  :root { --header-h: 64px; }
  .site-header { grid-template-columns: 1fr auto; height: var(--header-h); }
  .desktop-nav, .header-socials { display: none; }
  .menu-toggle { display: block; }
  .mobile-menu {
    position: absolute;
    top: calc(100% + 3px);
    left: 0;
    right: 0;
    background: var(--yellow);
    border-bottom: var(--border);
    padding: 18px 20px 22px;
    box-shadow: 0 6px 0 rgba(0,0,0,.08);
  }
  .mobile-menu[hidden] { display: none; }
  .mobile-menu:not([hidden]) { display: block; }
  .mobile-menu nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .mobile-menu nav a { border: 2px solid var(--black); padding: 10px; text-decoration: none; font-weight: 900; background: #ffe832; }
  .mobile-socials { margin-top: 18px; }
  .about-grid { grid-template-columns: 1fr; }
  .about .section-copy { max-width: 680px; }
  .art-card { width: min(620px, 100%); }
  .sighting-grid { grid-template-columns: 1fr; max-width: 680px; }
  .chart-community-grid { grid-template-columns: 1fr; }
  .community-panel { min-height: 580px; }
  .footer-grid { grid-template-columns: 1fr; text-align: left; }
  .footer-grid p { text-align: left; }
  .footer-socials { padding-right: 0; }
  .footer-jak { width: 110px; right: 12px; bottom: -62px; }
}

@media (max-width: 700px) {
  .wrap { width: min(calc(100% - 28px), var(--max)); }
  .hero { min-height: calc(100svh - var(--header-h)); }
  .hero-art img { object-fit: cover; object-position: center; }
  .hero-content { min-height: calc(100svh - var(--header-h)); justify-content: flex-start; padding-top: clamp(28px, 7vh, 58px); padding-bottom: 28px; }
  .hero-wordmark { width: min(330px, 78vw); margin-bottom: 16px; }
  .hero h1 { font-size: clamp(39px, 12vw, 60px); max-width: 360px; }
  .hero-copy { margin: 14px 0 18px; font-size: 16px; }
  .button-row { gap: 10px; }
  .btn { padding: 11px 13px; font-size: 13px; box-shadow: 4px 4px 0 var(--black); }
  .hero-ca { max-width: 100%; width: 100%; font-size: 11px; }
  .section { padding: 68px 0; }
  .section h2, .community-panel h2 { font-size: clamp(38px, 12vw, 56px); }
  .art-card img { aspect-ratio: 4/5; object-fit: cover; }
  .wide-art { box-shadow: 5px 5px 0 var(--black); }
  .sighting-grid { gap: 18px; }
  .chart-frame, .chart-frame iframe, .chart-placeholder { min-height: 440px; }
  .stats-grid { gap: 8px; }
  .contract-panel { grid-template-columns: auto minmax(0,1fr); }
  .contract-panel .copy-btn { grid-column: 1 / -1; width: 100%; }
  .community-panel { min-height: 560px; }
  .community-copy { padding: 22px; }
  .community-jak { width: min(95%, 410px); max-height: 64%; right: -10%; }
  .final-cta { min-height: 700px; align-items: start; }
  .final-art { background-size: contain; background-position: center bottom; background-color: var(--yellow); background-repeat: no-repeat; }
  .final-copy { padding-top: 54px; width: min(calc(100% - 28px), var(--max)); }
  .final-copy h2 { font-size: clamp(42px, 13vw, 62px); max-width: 390px; }
  .final-copy p { margin: 14px 0 18px; }
}

@media (max-width: 430px) {
  .brand { width: 138px; }
  .mobile-menu nav { grid-template-columns: 1fr; }
  .hero-wordmark { width: 255px; }
  .hero h1 { font-size: 44px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 10px; }
  .stat strong { font-size: 17px; }
  .community-panel { min-height: 535px; }
}

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