:root {
  --bg: #050605;
  --panel: #0b0d0b;
  --panel-2: #10130f;
  --line: rgba(255,255,255,.11);
  --line-acid: rgba(212,255,31,.34);
  --text: #f1f2ed;
  --muted: #b6bdb1;
  --acid: #b8d61a;
  --acid-bright: #d4ff1f;
  --shadow: 0 30px 90px rgba(0,0,0,.38);
  --wrap: 1220px;
  --header: 74px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 82% 0%, rgba(184,214,26,.08), transparent 32rem),
    linear-gradient(180deg, #050605 0%, #070807 100%);
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 1.08rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { background: var(--acid-bright); color: #050605; }

.noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 6; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.85'/%3E%3C/svg%3E");
}
.skip-link {
  position: fixed; left: 1rem; top: 1rem; z-index: 100; transform: translateY(-180%);
  padding: .7rem 1rem; background: var(--acid-bright); color: #050605; font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.shell { width: min(calc(100% - 2rem), var(--wrap)); margin-inline: auto; }
.section-label {
  margin: 0 0 .55rem; color: var(--acid-bright); font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 1rem; letter-spacing: .16em; text-transform: uppercase;
}

.site-header {
  position: sticky; top: 0; z-index: 40; min-height: var(--header);
  padding: 0 max(1rem, calc((100vw - var(--wrap)) / 2));
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid transparent;
  transition: background .2s ease, border-color .2s ease, backdrop-filter .2s ease;
}
.site-header.scrolled,
.site-header.solid {
  background: rgba(5,6,5,.90);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: .72rem; }
.brand img { width: 34px; height: 34px; object-fit: contain; }
.wordmark {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 1.95rem; line-height: 1; letter-spacing: .045em;
}
.wordmark small { margin-right: .45rem; font-size: .68rem; vertical-align: super; }
.wordmark span { color: var(--acid); }
.site-nav { display: flex; align-items: center; gap: 1.25rem; }
.site-nav > a { color: #d9ded5; font-size: .94rem; font-weight: 600; letter-spacing: .035em; }
.site-nav > a:hover, .back-link:hover { color: var(--acid-bright); }
.menu-toggle {
  display: none; width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); background: transparent; color: white;
}
.menu-toggle span:not(.sr-only) { display: block; width: 18px; height: 2px; margin: 5px auto; background: currentColor; }
.back-link { color: var(--muted); font-weight: 600; }

.hero {
  position: relative; min-height: calc(100svh - var(--header)); display: grid; align-items: center; overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.hero-media, .hero-shade { position: absolute; inset: 0; }
.hero-media { background: url("/hero-front.webp") 62% center / cover no-repeat; transform: scale(1.015); }
.hero-shade {
  background:
    linear-gradient(90deg, rgba(5,6,5,.96) 0%, rgba(5,6,5,.88) 24%, rgba(5,6,5,.54) 46%, rgba(5,6,5,.15) 66%, rgba(5,6,5,.38) 100%),
    linear-gradient(180deg, rgba(5,6,5,.36) 0%, transparent 28%, rgba(5,6,5,.14) 70%, rgba(5,6,5,.96) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(7rem, 11vw, 10rem); }
.hero-copy { width: min(100%, 520px); }
.hero-motto {
  margin: 0 0 1rem; color: var(--text); font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 1.25rem; letter-spacing: .19em;
}
.hero h1 {
  margin: 0; display: grid; gap: .05em;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(3.45rem, 6.4vw, 5.85rem); line-height: .88; letter-spacing: .025em; text-transform: uppercase;
}
.hero h1 span, .hero h1 strong { display: block; font-weight: 400; }
.hero h1 strong { color: var(--acid-bright); }
.hero-body { max-width: 31rem; margin: 1.1rem 0 0; color: var(--muted); line-height: 1.65; font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.65rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .82rem 1.25rem;
  border: 1px solid var(--line); font-weight: 700; letter-spacing: .04em;
  transition: transform .15s ease, color .15s ease, background .15s ease, border-color .15s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { border-color: var(--acid-bright); background: var(--acid-bright); color: #050605; }
.button-ghost { background: rgba(5,6,5,.42); backdrop-filter: blur(9px); }
.button-ghost:hover { border-color: var(--line-acid); color: var(--acid-bright); }

.story,
.archive,
.buy,
.roadmap,
.tokenomics,
.risk,
.join,
.lore-closing {
  margin-top: 2rem;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(13,15,13,.98), rgba(8,10,8,.98));
  box-shadow: var(--shadow);
}
.story {
  position: relative; z-index: 3; margin-top: -4.5rem;
  display: grid; grid-template-columns: 1.22fr .78fr; gap: 1.3rem;
  padding: clamp(1.35rem, 3vw, 2.15rem);
}
.story h2,
.section-heading h2,
.join h2,
.lore-hero h1,
.chapter h2,
.lore-closing h2 {
  margin: 0; font-family: "Bebas Neue", Impact, sans-serif; font-weight: 400; line-height: .94; letter-spacing: .025em; text-transform: uppercase;
}
.story h2 { max-width: 11ch; font-size: clamp(3rem, 5.6vw, 4.8rem); }
.story-columns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-top: 1rem; }
.story-columns p, .mark-card p, .section-heading > p, .buy-steps p, .roadmap li, .risk p, .join-copy > p, .chapter p, .lore-hero > p, .lore-closing p {
  color: var(--muted); line-height: 1.62;
}
.mark-card { height: 100%; padding: 1.25rem; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(184,214,26,.10), rgba(184,214,26,.015)); }
.mark-card img { width: 84px; height: 84px; margin-bottom: .9rem; object-fit: contain; }
.mark-card h3 { margin: 0 0 .7rem; font-family: "Bebas Neue", Impact, sans-serif; font-size: 2.35rem; line-height: .95; font-weight: 400; text-transform: uppercase; }

.archive, .buy, .roadmap, .tokenomics { padding: clamp(1.4rem, 3.5vw, 2.35rem); }
.archive { position: relative; overflow: hidden; }
.archive::after {
  content: ""; position: absolute; right: -4rem; bottom: -6rem; width: 23rem; height: 23rem;
  background: url("/hood-mark.png") center/contain no-repeat; opacity: .035; pointer-events: none;
}
.section-heading { display: grid; grid-template-columns: 1.05fr .95fr; gap: 1.5rem; align-items: end; margin-bottom: 1.8rem; }
.section-heading h2 { max-width: 12ch; font-size: clamp(3rem, 5.7vw, 4.9rem); }
.section-heading > p { margin: 0; max-width: 36rem; }
.archive-line { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding-top: 1rem; }
.archive-line::before { content: ""; position: absolute; left: 7%; right: 7%; top: 3.35rem; height: 1px; background: linear-gradient(90deg, transparent, var(--acid), var(--acid), transparent); opacity: .5; }
.archive-line article { position: relative; min-height: 210px; padding: 0 .4rem; }
.timeline-number { color: rgba(255,255,255,.38); font-family: "Bebas Neue", Impact, sans-serif; font-size: 1.2rem; letter-spacing: .12em; }
.timeline-node { position: relative; z-index: 2; width: 15px; height: 15px; margin: 1.22rem 0 1.25rem; border: 3px solid var(--panel); outline: 1px solid var(--acid-bright); background: var(--acid-bright); transform: rotate(45deg); }
.timeline-label { margin: 0 0 .45rem; color: var(--acid-bright); font-family: "Bebas Neue", Impact, sans-serif; font-size: 1.2rem; letter-spacing: .08em; text-transform: uppercase; }
.archive-line h3 { margin: 0; max-width: 13ch; font-family: "Bebas Neue", Impact, sans-serif; font-size: 2rem; line-height: 1; font-weight: 400; text-transform: uppercase; }
.text-link { position: relative; z-index: 2; display: inline-flex; gap: .6rem; margin-top: 1rem; color: var(--acid-bright); font-weight: 700; letter-spacing: .04em; }
.text-link.compact { margin-top: .7rem; }

.buy-steps { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.buy-steps-five { grid-template-columns: repeat(5, 1fr); }
.buy-steps article { min-height: 240px; padding: 1.15rem; background: rgba(255,255,255,.012); }
.buy-steps article + article { border-left: 1px solid var(--line); }
.buy-steps-five article:nth-child(5n+1) { border-left: 0; }
.buy-steps span { color: var(--acid-bright); font-family: "Bebas Neue", Impact, sans-serif; letter-spacing: .14em; }
.buy-steps h3 { margin: 3rem 0 .55rem; font-family: "Bebas Neue", Impact, sans-serif; font-size: 2rem; line-height: 1; font-weight: 400; text-transform: uppercase; }
.buy-steps p { margin: 0; }
.contract-box { margin-top: 1rem; display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; padding: 1rem; border: 1px solid var(--line-acid); background: rgba(184,214,26,.055); }
.contract-box p { margin: 0 0 .3rem; color: var(--muted); font-size: .82rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.contract-box code { color: var(--text); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85rem; overflow-wrap: anywhere; }
.copy-button { min-height: 45px; padding: .75rem 1rem; border: 1px solid var(--acid-bright); background: var(--acid-bright); color: #050605; font-weight: 700; cursor: pointer; }

.roadmap-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.roadmap-grid article { position: relative; min-height: 280px; padding: 1.25rem; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(255,255,255,.025), rgba(184,214,26,.025)); overflow: hidden; }
.roadmap-grid article::after { content: ""; position: absolute; right: -2rem; bottom: -3.2rem; width: 9rem; height: 9rem; border: 1px solid rgba(212,255,31,.10); transform: rotate(45deg); }
.phase-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.phase-top span { color: var(--acid-bright); font-family: "Bebas Neue", Impact, sans-serif; font-size: 1.1rem; letter-spacing: .12em; text-transform: uppercase; }
.phase-top small { color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.roadmap-grid h3 { margin: 3rem 0 .75rem; font-family: "Bebas Neue", Impact, sans-serif; font-size: 2.7rem; line-height: .95; font-weight: 400; text-transform: uppercase; }
.roadmap-grid ul { margin: 0; padding: 0; list-style: none; }
.roadmap-grid li { position: relative; padding-left: 1rem; }
.roadmap-grid li + li { margin-top: .4rem; }
.roadmap-grid li::before { content: ""; position: absolute; left: 0; top: .68em; width: 5px; height: 5px; background: var(--acid-bright); transform: rotate(45deg); }

.token-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.token-grid article { min-height: 135px; padding: 1.2rem; display: flex; flex-direction: column; justify-content: space-between; }
.token-grid article:nth-child(3n+2), .token-grid article:nth-child(3n+3) { border-left: 1px solid var(--line); }
.token-grid article:nth-child(n+4) { border-top: 1px solid var(--line); }
.token-grid span { color: var(--muted); font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.token-grid strong { color: var(--acid-bright); font-family: "Bebas Neue", Impact, sans-serif; font-size: 2rem; line-height: 1; font-weight: 400; text-transform: uppercase; }

.risk { padding: clamp(1.3rem, 3vw, 2rem); border-color: rgba(255,255,255,.15); background: linear-gradient(90deg, rgba(184,214,26,.055), rgba(255,255,255,.018)); }
.risk p:last-child { margin: 0; max-width: 68rem; font-size: 1.08rem; }
.risk strong { color: var(--text); }

.join { padding: clamp(1.4rem, 3.5vw, 2.35rem); display: grid; grid-template-columns: .85fr 1.15fr; gap: 2rem; align-items: end; }
.join h2 { max-width: 10ch; font-size: clamp(3rem, 5.6vw, 4.7rem); }
.join-copy > p:last-child { max-width: 30rem; margin-bottom: 0; }
.social-grid { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line); }
.social-grid a { min-height: 110px; padding: 1rem; display: flex; flex-direction: column; justify-content: space-between; background: rgba(255,255,255,.012); }
.social-grid a:nth-child(2n) { border-left: 1px solid var(--line); }
.social-grid a:nth-child(n+3) { border-top: 1px solid var(--line); }
.social-grid a:hover { background: rgba(184,214,26,.055); }
.social-grid span { font-family: "Bebas Neue", Impact, sans-serif; font-size: 1.8rem; text-transform: uppercase; }
.social-grid small { color: var(--acid-bright); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

.site-footer { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; padding: 2rem 0 2.6rem; border-top: 1px solid var(--line); margin-top: 3.5rem; }
.site-footer p { margin: 0; color: var(--muted); font-size: .84rem; letter-spacing: .04em; }
.site-footer p:nth-child(2) { text-align: center; }

.lore-hero { padding: clamp(4rem, 9vw, 7rem) 0 2rem; }
.lore-hero h1 { max-width: 9ch; font-size: clamp(4rem, 9vw, 7rem); }
.lore-hero > p:last-child { max-width: 43rem; font-size: 1.12rem; }
.chapters { display: grid; gap: 1.15rem; }
.chapter { display: grid; grid-template-columns: 150px 1fr; gap: 1.3rem; padding: clamp(1.2rem, 3vw, 1.9rem); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(13,15,13,.98), rgba(8,10,8,.98)); box-shadow: var(--shadow); }
.chapter-tag { margin: .25rem 0 0; color: var(--acid-bright); font-family: "Bebas Neue", Impact, sans-serif; font-size: 1rem; letter-spacing: .14em; text-transform: uppercase; }
.chapter h2 { font-size: clamp(2.7rem, 5vw, 4.2rem); }
.chapter p { max-width: 48rem; margin: 0 0 .75rem; }
.chapter strong, .chapter em { color: var(--text); }
.lore-closing { margin-bottom: 2rem; padding: clamp(1.4rem, 3vw, 2rem); display: grid; grid-template-columns: 100px 1fr; gap: 1.4rem; align-items: center; }
.lore-closing img { width: 84px; height: 84px; object-fit: contain; }
.lore-closing h2 { max-width: 13ch; font-size: clamp(3rem, 5.5vw, 4.7rem); margin-bottom: 1rem; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .menu-toggle { display: block; position: relative; z-index: 3; }
  .site-nav {
    position: fixed; inset: 0 0 0 auto; width: min(83vw, 360px); padding: 5.8rem 1.25rem 1.25rem;
    background: rgba(5,6,5,.99); border-left: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; transform: translateX(100%); transition: transform .22s ease;
  }
  .site-nav.open { transform: translateX(0); }
  .site-nav > a { padding: .95rem 0; border-bottom: 1px solid var(--line); }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

  .hero { min-height: 760px; align-items: end; }
  .hero-media { background-position: 66% center; }
  .hero-shade {
    background:
      linear-gradient(180deg, rgba(5,6,5,.74) 0%, rgba(5,6,5,.28) 34%, rgba(5,6,5,.50) 68%, rgba(5,6,5,.98) 100%),
      linear-gradient(90deg, rgba(5,6,5,.72), rgba(5,6,5,.08));
  }
  .hero-inner { padding-bottom: 5rem; }
  .hero-copy { width: min(100%, 560px); }

  .story, .section-heading, .join, .lore-closing { grid-template-columns: 1fr; }
  .story { margin-top: -2.5rem; }
  .archive-line, .buy-steps, .roadmap-grid, .token-grid { grid-template-columns: 1fr 1fr; }
  .buy-steps-five { grid-template-columns: 1fr 1fr; }
  .archive-line::before { display: none; }
  .archive-line article { min-height: auto; padding: 1rem; border: 1px solid var(--line); }
  .timeline-node { margin: 1rem 0; }
  .buy-steps article:nth-child(odd), .token-grid article:nth-child(odd) { border-left: 0; }
  .buy-steps article:nth-child(even), .token-grid article:nth-child(even) { border-left: 1px solid var(--line); }
  .buy-steps article:nth-child(n+3), .token-grid article:nth-child(n+3) { border-top: 1px solid var(--line); }
  .token-grid article:nth-child(3) { border-left: 0; }
  .token-grid article:nth-child(4) { border-left: 1px solid var(--line); }
  .site-footer { grid-template-columns: 1fr; justify-items: start; }
  .site-footer p:nth-child(2) { text-align: left; }
}

@media (max-width: 620px) {
  .shell { width: min(calc(100% - 1rem), var(--wrap)); }
  .wordmark { font-size: 1.48rem; }
  .wordmark small { display: none; }
  .brand img { width: 30px; height: 30px; }
  .hero { min-height: 700px; }
  .hero h1 { font-size: clamp(3.2rem, 14vw, 4.7rem); }
  .hero-body { font-size: 1rem; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .button { width: 100%; }
  .story-columns, .archive-line, .buy-steps, .roadmap-grid, .token-grid, .social-grid, .contract-box, .chapter { grid-template-columns: 1fr; }
  .buy-steps-five article + article { border-left: 0; border-top: 1px solid var(--line); }
  .buy-steps article + article, .buy-steps article:nth-child(even), .token-grid article:nth-child(even), .social-grid a:nth-child(2n) { border-left: 0; }
  .buy-steps article:nth-child(n+2), .token-grid article:nth-child(n+2), .social-grid a:nth-child(n+2) { border-top: 1px solid var(--line); }
  .buy-steps article { min-height: 205px; }
  .buy-steps h3 { margin-top: 2rem; }
  .contract-box .copy-button { width: 100%; }
  .chapter { gap: .4rem; }
  .lore-closing { grid-template-columns: 1fr; }
}

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


/* v8: three final community links */
.social-grid-three {
  grid-template-columns: repeat(3, 1fr);
}
.social-grid-three a:nth-child(2n) {
  border-left: 1px solid var(--line);
}
.social-grid-three a:nth-child(3) {
  border-left: 1px solid var(--line);
  border-top: 0;
}

@media (max-width: 720px) {
  .social-grid-three {
    grid-template-columns: 1fr;
  }
  .social-grid-three a,
  .social-grid-three a:nth-child(2n),
  .social-grid-three a:nth-child(3) {
    border-left: 0;
  }
  .social-grid-three a + a {
    border-top: 1px solid var(--line);
  }
}
