/* ═══════════════════════════════════════════════════
   $OUTSIDER — noir / classified-document aesthetic
   ═══════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:   #0a0a0a;
  --void:    #050505;
  --ink:     #111111;
  --paper:   #e8e4d8;     /* aged cream */
  --paper-dim: #c8c4b8;
  --accent:  #f5c842;     /* outsider-theory yellow */
  --blood:   #c63838;     /* redacted red */
  --smoke:   #6b6b6b;
  --glass:   #1a1a1a;
}

html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--paper);
  font-family: 'Special Elite', 'Courier New', serif;
  overflow-x: hidden;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }

.sigil { width: 0.95em; height: 0.95em; display: inline-block; vertical-align: -0.12em; flex-shrink: 0; color: currentColor; }
.sigil.sm { width: 0.78em; height: 0.78em; }

/* ── Grain + scanlines overlay ── */
.grain {
  position: fixed; inset: 0; z-index: 1000;
  pointer-events: none;
  opacity: 0.09;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.3' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.9  0 0 0 0 0.9  0 0 0 0 0.85  0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.scanlines {
  position: fixed; inset: 0; z-index: 999;
  pointer-events: none;
  opacity: 0.08;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,0.12) 0 1px, transparent 1px 3px);
}

/* ── Reveal ── */
.reveal       { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.shown { opacity: 1; transform: none; }

/* ═══════════════════════════════════
   CLASSIFIED TOP TAPE
═══════════════════════════════════ */
.top-tape {
  position: relative;
  z-index: 50;
  background: var(--accent);
  color: var(--black);
  padding: 6px 0;
  border-bottom: 2px solid var(--black);
  overflow: hidden;
  font-family: 'Bebas Neue', 'Oswald', sans-serif;
  letter-spacing: 3px;
  font-size: 0.78rem;
}
.tape-track {
  display: inline-flex;
  gap: 24px;
  white-space: nowrap;
  animation: tape-scroll 35s linear infinite;
  padding-left: 100%;
}
@keyframes tape-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

/* ═══════════════════════════════════
   NAV
═══════════════════════════════════ */
nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 5, 5, 0.93);
  border-bottom: 1px solid rgba(245, 200, 66, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 40px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Bebas Neue', 'Oswald', sans-serif;
  font-size: 1.4rem;
  color: var(--accent);
  letter-spacing: 4px;
  flex-shrink: 0;
}
.nav-logo .sigil { width: 1.1em; height: 1.1em; }
.nav-links {
  list-style: none;
  display: flex;
  gap: 22px;
  align-items: center;
}
.nav-links a {
  color: var(--paper);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 2px;
  opacity: 0.7;
  transition: opacity 0.2s, color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover { opacity: 1; color: var(--accent); }
.nav-buy {
  background: var(--accent);
  color: var(--black) !important;
  padding: 6px 14px;
  opacity: 1 !important;
  border: 2px solid var(--accent);
  transition: background 0.15s, transform 0.1s;
}
.nav-buy:hover { background: transparent; color: var(--accent) !important; }

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--paper);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-drawer {
  display: none;
  position: fixed; inset: 0; z-index: 49;
  background: rgba(5, 5, 5, 0.98);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 70px;
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  display: block;
  width: 100%;
  text-align: center;
  padding: 18px 0;
  color: var(--paper);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 5px;
  border-bottom: 1px solid rgba(245, 200, 66, 0.15);
}
.nav-drawer a:first-child { border-top: 1px solid rgba(245, 200, 66, 0.15); }
.nav-drawer a:hover { color: var(--accent); background: rgba(245, 200, 66, 0.08); }

/* ═══════════════════════════════════
   DIVIDER
═══════════════════════════════════ */
.divider {
  text-align: center;
  padding: 14px 0;
  background: var(--void);
  border-top: 1px solid rgba(245, 200, 66, 0.15);
  border-bottom: 1px solid rgba(245, 200, 66, 0.15);
  color: var(--accent);
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 8px;
  font-size: 0.9rem;
  opacity: 0.75;
}

/* ═══════════════════════════════════
   HERO
═══════════════════════════════════ */
#hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  grid-template-rows: auto auto auto;
  grid-template-areas:
    "title   doomer"
    "body    doomer"
    "cta     doomer";
  align-items: start;
  padding: 100px 80px 90px;
  background:
    radial-gradient(ellipse at 75% 40%, rgba(245, 200, 66, 0.06), transparent 60%),
    radial-gradient(ellipse at 20% 100%, rgba(198, 56, 56, 0.06), transparent 70%),
    linear-gradient(180deg, #0a0a0a 0%, #050505 100%);
  position: relative;
  overflow: hidden;
  gap: 0 50px;
  min-height: 92vh;
}

.hero-stamp {
  position: absolute;
  top: 40%; right: -4%;
  transform: rotate(-22deg);
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(4rem, 14vw, 12rem);
  letter-spacing: 10px;
  color: rgba(198, 56, 56, 0.07);
  pointer-events: none;
  white-space: nowrap;
  user-select: none;
  z-index: 0;
  mix-blend-mode: screen;
}

.hero-title-block { grid-area: title; position: relative; z-index: 2; padding-bottom: 20px; min-width: 0; }
.hero-body-block  { grid-area: body;  position: relative; z-index: 2; min-width: 0; }
.hero-cta-block   { grid-area: cta;   position: relative; z-index: 2; padding-top: 24px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.hero-burnie      { grid-area: doomer; position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; min-width: 0; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.88rem;
  letter-spacing: 5px;
  color: var(--accent);
  margin-bottom: 18px;
}

#hero h1 {
  font-family: 'Bebas Neue', 'Oswald', sans-serif;
  font-size: clamp(3.5rem, 8vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.5px;
  color: var(--paper);
}
#hero h1 em {
  color: var(--accent);
  font-style: normal;
  display: inline-block;
  margin-left: 12px;
  text-shadow: 0 0 30px rgba(245, 200, 66, 0.45);
}
#hero h1 .h1-line { display: block; }
.redact {
  display: inline-block;
  background: var(--paper);
  color: var(--paper);
  padding: 0 12px;
  letter-spacing: 0.4em;
  margin-right: 10px;
  transform: skew(-3deg);
  position: relative;
  user-select: none;
}
.redact::after {
  content: "REDACTED";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blood);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.35em;
  letter-spacing: 0.3em;
  opacity: 0.9;
}

.hero-kicker {
  margin-top: 18px;
  font-family: 'Special Elite', monospace;
  color: var(--paper-dim);
  font-size: 1.05rem;
  max-width: 44ch;
  line-height: 1.5;
}

#hero p {
  font-size: 1.04rem;
  line-height: 1.8;
  color: rgba(232, 228, 216, 0.82);
  margin-bottom: 14px;
}
#hero p strong { color: var(--accent); }
#hero p em { color: var(--paper); font-style: italic; }
.hero-stakes {
  margin-top: 10px;
  padding-left: 16px;
  border-left: 3px solid var(--accent);
  font-family: 'Special Elite', monospace;
  color: var(--paper);
}

.hero-float {
  width: clamp(280px, 42vw, 520px);
  filter:
    drop-shadow(0 20px 40px rgba(0,0,0,0.9))
    drop-shadow(0 0 80px rgba(245, 200, 66, 0.18));
  animation: float 5s ease-in-out infinite;
  user-select: none;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

/* ── CA box + Pump.fun button ── */
.ca-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 5px;
  color: var(--accent);
  margin-bottom: 8px;
  opacity: 0.95;
}
.ca-box {
  display: flex;
  align-items: stretch;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(245, 200, 66, 0.4);
  overflow: hidden;
  transition: border-color 0.2s;
  width: 100%;
}
.ca-box:hover { border-color: var(--accent); }
.ca-address {
  flex: 1;
  padding: 12px 16px;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.8rem;
  color: var(--paper);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: 0.3px;
  user-select: all;
  min-width: 0;
}
.ca-copy-btn {
  flex-shrink: 0;
  padding: 12px 16px;
  background: var(--accent);
  color: var(--black);
  border: none;
  cursor: pointer;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 3px;
  transition: background 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.ca-copy-btn:hover { background: var(--paper); }
.ca-copy-btn.copied { background: var(--blood); color: var(--paper); }

.pumpfun-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 22px;
  background: var(--accent);
  color: var(--black);
  border: 2px solid var(--accent);
  transition: background 0.15s, color 0.15s, transform 0.15s;
  cursor: pointer;
  align-self: flex-start;
}
.pumpfun-btn:hover {
  background: transparent;
  color: var(--accent);
  transform: translateY(-2px);
}
.pumpfun-btn-text { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
.pumpfun-btn-text span:first-child {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 3px;
}
.pumpfun-btn-text span:last-child {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 2px;
  opacity: 0.75;
}

/* ═══════════════════════════════════
   SECTIONS
═══════════════════════════════════ */
.section-split {
  padding: 100px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
  border-top: 2px solid rgba(245, 200, 66, 0.18);
}
.section-split.bg-black { background: var(--black); }
.section-split.bg-ink   { background: var(--ink); }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 6px;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-title {
  font-family: 'Bebas Neue', 'Oswald', sans-serif;
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  line-height: 1;
  letter-spacing: 2px;
  color: var(--paper);
  margin-bottom: 28px;
}
.section-body p {
  font-size: 1rem;
  line-height: 1.85;
  color: rgba(232, 228, 216, 0.82);
  margin-bottom: 14px;
}
.section-body p:last-child { margin-bottom: 0; }
.section-body strong { color: var(--accent); }
.section-body em     { color: var(--paper); font-style: italic; }
.pullquote {
  margin-top: 18px;
  padding: 14px 22px;
  border-left: 3px solid var(--accent);
  background: rgba(245, 200, 66, 0.06);
  color: var(--paper);
  font-size: 1.1rem;
  font-style: italic;
}

/* Redacted inline bar */
.redact-inline {
  background: var(--paper);
  color: var(--paper);
  padding: 0 8px;
  margin: 0 2px;
  letter-spacing: 0.2em;
  user-select: none;
  display: inline-block;
  line-height: 1;
  transform: skew(-2deg);
}

/* Image frames */
.img-frame {
  border: 3px solid var(--paper);
  box-shadow: 10px 10px 0 var(--accent);
  background: var(--void);
  overflow: hidden;
  position: relative;
}
.img-frame.img-frame-yellow {
  border-color: var(--accent);
  box-shadow: -10px 10px 0 var(--blood);
}
.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.img-frame:hover img { transform: scale(1.03); }

/* Corner stamp on image frames */
.img-frame::after {
  content: "CLASSIFIED";
  position: absolute;
  top: 10px; right: 10px;
  background: var(--blood);
  color: var(--paper);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 2.5px;
  padding: 3px 8px;
  transform: rotate(6deg);
  border: 1px solid rgba(0,0,0,0.3);
  pointer-events: none;
}
.img-frame.img-frame-yellow::after {
  background: var(--black);
  color: var(--accent);
  border: 1px solid var(--accent);
}

/* ═══════════════════════════════════
   BUY SECTION
═══════════════════════════════════ */
.buy-section {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(245, 200, 66, 0.12), transparent 60%),
    linear-gradient(180deg, #0a0a0a, #050505);
  padding: 120px 40px;
  text-align: center;
  border-top: 2px solid var(--accent);
}
.buy-inner { max-width: 760px; margin: 0 auto; }
.buy-title { font-size: clamp(2.6rem, 5vw, 4.4rem); }
.buy-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  letter-spacing: 3px;
  color: var(--paper-dim);
  margin-bottom: 36px;
}
.buy-ca { margin-bottom: 28px; text-align: left; }
.ca-box-big .ca-address { font-size: 0.92rem; padding: 18px 20px; }
.ca-box-big .ca-copy-btn { padding: 16px 22px; font-size: 0.95rem; }
.pumpfun-btn-big {
  padding: 20px 32px;
  width: 100%;
  justify-content: center;
}
.pumpfun-btn-big .pumpfun-btn-text { align-items: center; }
.pumpfun-btn-big .pumpfun-btn-text span:first-child { font-size: 1.5rem; letter-spacing: 4px; }

/* ═══════════════════════════════════
   FOOTER
═══════════════════════════════════ */
footer {
  background: #000;
  border-top: 2px solid var(--accent);
  text-align: center;
  padding: 50px 20px;
}
.footer-sigil {
  width: 56px; height: 56px;
  color: var(--accent);
  margin: 0 auto 16px;
  display: block;
  filter: drop-shadow(0 0 14px rgba(245, 200, 66, 0.45));
}
footer p {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 3px;
  color: rgba(232, 228, 216, 0.45);
  margin-bottom: 6px;
}
footer p span { color: var(--accent); }
.community-note {
  max-width: 52ch;
  margin: 14px auto 0 !important;
  font-family: 'Special Elite', monospace !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.5px !important;
  color: rgba(245, 200, 66, 0.6) !important;
  font-style: italic;
  line-height: 1.5;
  text-transform: none !important;
}

/* ═══════════════════════════════════
   DESKTOP CENTERING
═══════════════════════════════════ */
@media (min-width: 901px) {
  .section-split, #hero, .buy-section {
    padding-left:  max(80px, calc((100vw - 1200px) / 2));
    padding-right: max(80px, calc((100vw - 1200px) / 2));
  }
  nav {
    padding-left:  max(40px, calc((100vw - 1200px) / 2));
    padding-right: max(40px, calc((100vw - 1200px) / 2));
  }
}

/* ═══════════════════════════════════
   MOBILE
═══════════════════════════════════ */
@media (max-width: 900px) {
  nav { padding: 14px 20px; }
  .nav-links  { display: none; }
  .nav-burger { display: flex; }

  #hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "doomer"
      "body"
      "cta";
    padding: 70px 22px 60px;
    gap: 0;
    min-height: unset;
  }
  .hero-stamp { font-size: 6rem; top: 60%; right: -6%; }
  .hero-burnie { margin: 20px 0 14px; }
  .hero-float { width: clamp(220px, 66vw, 320px); }
  #hero h1 { font-size: 3rem; }
  #hero p { font-size: 0.95rem; }
  .redact { letter-spacing: 0.3em; }
  .redact::after { font-size: 0.32em; }

  .section-split {
    grid-template-columns: 1fr;
    padding: 70px 22px 60px;
    gap: 32px;
  }
  .section-split > div:has(img) { order: -1; }
  .img-frame { box-shadow: 6px 6px 0 var(--accent); }
  .img-frame.img-frame-yellow { box-shadow: -6px 6px 0 var(--blood); }

  .section-title { font-size: 2rem; margin-bottom: 16px; }
  .section-body p { font-size: 0.95rem; line-height: 1.75; }

  .buy-section { padding: 80px 22px; }
  .buy-title   { font-size: 2.4rem; }

  .pumpfun-btn-big .pumpfun-btn-text span:first-child { font-size: 1.1rem; letter-spacing: 3px; }

  .ca-address { font-size: 0.66rem; padding: 12px 10px; }
  .ca-copy-btn { padding: 12px 12px; }
  .pumpfun-btn { width: 100%; justify-content: space-between; }

  .top-tape { font-size: 0.68rem; letter-spacing: 2px; }
  .divider  { font-size: 0.75rem; letter-spacing: 5px; padding: 12px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-float { animation: none; }
  .tape-track { animation: none; }
}
