/* Chief Troll Officer ($CTO) — black + cream meme / tuxedo troll */
:root {
  --ink: #0a0a0a;
  --ink-2: #141414;
  --panel: #1a1a1a;
  --cream: #f5f0e6;
  --cream-2: #ebe4d4;
  --accent: #0a0a0a;
  --muted: rgba(245, 240, 230, .72);
  --muted-2: rgba(245, 240, 230, .45);
  --line: rgba(245, 240, 230, .18);
  --line-dark: rgba(10, 10, 10, .12);
  --display: "Space Grotesk", Inter, system-ui, sans-serif;
  --body: Inter, system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1120px;
  --gut: clamp(18px, 4vw, 48px);
  --sec-y: clamp(72px, 9vw, 110px);
  --nav-h: 64px;
  --nav-clear: 96px;
  --radius: 14px;
  --shadow: 0 0 0 1px var(--line), 0 18px 50px rgba(0,0,0,.45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-clear); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  position: relative;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--ink); color: var(--cream); }
.is-hidden, [hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; }

.grain {
  pointer-events: none; position: fixed; inset: 0; z-index: 90; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Buttons */
.gbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  font-family: var(--display); font-size: 15px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--cream); background: var(--ink); border: 0; border-radius: 8px;
  box-shadow: 0 4px 0 #000, 0 8px 24px rgba(0,0,0,.2);
  text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.gbtn:hover { transform: translateY(-2px); background: #222; box-shadow: 0 6px 0 #000, 0 12px 28px rgba(0,0,0,.25); }
.gbtn:active { transform: translateY(1px); box-shadow: 0 2px 0 #000; }
.gbtn--ghost {
  background: transparent; color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
}
.gbtn--ghost:hover { background: rgba(10,10,10,.06); box-shadow: inset 0 0 0 2px var(--ink); }
.gbtn--dark {
  background: var(--cream-2); color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-dark);
}
.gbtn--lg { min-height: 54px; padding: 14px 26px; font-size: 17px; }
.gbtn.is-disabled, .gbtn[aria-disabled="true"] {
  opacity: .5; cursor: not-allowed; transform: none !important;
  box-shadow: inset 0 0 0 1px var(--line-dark) !important;
  background: #cfc8b8; color: #555;
}

.tag {
  display: inline-block; padding: 7px 14px;
  background: var(--ink); color: var(--cream);
  border-radius: 4px;
  font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
}

/* Nav */
.site-nav {
  position: fixed; top: 14px; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: center; padding: 0 16px; pointer-events: none;
}
.nav-bar {
  pointer-events: auto;
  width: 1080px; max-width: 100%; min-height: var(--nav-h);
  display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 14px;
  background: rgba(245, 240, 230, .92); border: 2px solid var(--ink); border-radius: 12px;
  backdrop-filter: blur(14px); box-shadow: 0 8px 28px rgba(0,0,0,.12);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink); flex: none;
  font-family: var(--display); font-size: 18px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.brand img {
  width: 40px; height: 40px; border-radius: 8px;
  object-fit: cover; border: 2px solid var(--ink);
  background: var(--cream);
}
.brand b { color: #444; }
.nav-menu {
  display: flex; align-items: center; gap: 18px; margin-left: 8px; flex: 1;
}
.nav-menu > a {
  font-weight: 600; font-size: 13px; color: rgba(10,10,10,.65);
  text-decoration: none; white-space: nowrap; letter-spacing: .02em;
}
.nav-menu > a:hover { color: var(--ink); }
.nav-bar .gbtn--nav {
  margin-left: auto; min-height: 40px; padding: 8px 16px; font-size: 13px;
}
.nav-toggle {
  display: none; width: 42px; height: 42px; margin-left: auto;
  background: transparent; border: 2px solid var(--ink); border-radius: 8px;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    display: none; position: absolute; top: calc(100% + 8px); left: 16px; right: 16px;
    flex-direction: column; align-items: stretch; gap: 4px; padding: 12px;
    background: var(--cream); border: 2px solid var(--ink); border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0,0,0,.15);
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu > a { padding: 12px 10px; }
  .nav-bar { position: relative; flex-wrap: wrap; }
  .nav-bar .gbtn--nav {
    display: inline-flex; margin-left: 0; min-height: 38px;
    padding: 8px 12px; font-size: 12px; order: 2;
  }
  .nav-toggle { order: 3; margin-left: 8px; }
  .nav-menu { order: 4; }
}

/* Hero */
.home-hero {
  position: relative; overflow: hidden; z-index: 1;
  background:
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(0,0,0,.06), transparent 55%),
    var(--cream);
  padding: calc(var(--nav-clear) + 28px) var(--gut) 56px;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 56px);
  align-items: center; max-width: var(--wrap); margin: 0 auto;
}
.hero-copy .tag { margin-bottom: 18px; }
.hero-title {
  margin: 0; font-family: var(--display); font-weight: 700;
  font-size: clamp(40px, 7vw, 78px); line-height: .95; letter-spacing: -.02em;
  text-wrap: balance; text-transform: uppercase; color: var(--ink);
}
.hero-title span { display: block; }
.hero-sub {
  margin: 18px 0 0; max-width: 42ch;
  font-size: clamp(14px, 1.3vw, 17px); line-height: 1.55; color: rgba(10,10,10,.7); font-weight: 500;
}
.hero-sub b { color: var(--ink); font-weight: 700; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; align-items: center; }
.ca-chip {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
  padding: 6px 6px 6px 12px; background: var(--ink); color: var(--cream);
  border-radius: 8px; font-weight: 700; font-size: 12px;
}
.ca-chip code {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font: 500 12px/1.2 var(--mono); color: var(--cream);
}
.ca-chip__act {
  flex: none; padding: 8px 14px; border-radius: 6px;
  background: var(--cream); color: var(--ink); border: 0;
  font-weight: 700; font-size: 12px; letter-spacing: .04em; text-transform: uppercase;
}
.stat-pill {
  display: inline-flex; flex-direction: column; gap: 2px;
  padding: 8px 14px; background: rgba(10,10,10,.06);
  border: 1.5px solid rgba(10,10,10,.15); border-radius: 8px;
}
.stat-pill dt { font-size: 10px; font-weight: 700; color: rgba(10,10,10,.45); text-transform: uppercase; letter-spacing: .08em; }
.stat-pill dd { margin: 0; font-family: var(--display); font-size: 16px; font-weight: 700; color: var(--ink); }

.mascot-wrap {
  position: relative; width: min(420px, 100%); margin: 0 auto;
  aspect-ratio: 1;
}
.mascot-halo {
  position: absolute; inset: 6%; border-radius: 24px;
  background: radial-gradient(circle, rgba(0,0,0,.08), transparent 70%);
  filter: blur(12px); z-index: 0;
}
.mascot-bob { position: relative; z-index: 1; height: 100%; }
.mascot-img {
  width: 100%; height: 100%; object-fit: contain;
  border-radius: 20px; border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 #000;
  background: var(--cream);
}
.bubble {
  position: absolute; top: 4%; right: -2%; z-index: 2;
  margin: 0; padding: 10px 14px;
  background: var(--ink); color: var(--cream);
  border-radius: 10px;
  font-family: var(--display); font-size: 13px; font-weight: 700; line-height: 1.35;
  box-shadow: 4px 4px 0 rgba(0,0,0,.25);
}
.mascot-wrap.is-alive .mascot-bob {
  animation: bob 3.2s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Tape */
.tape-clip { overflow: hidden; border-block: 3px solid var(--ink); background: var(--ink); position: relative; z-index: 1; }
.tape { padding: 12px 0; }
.tape__track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.tape__set { display: flex; gap: 28px; padding-right: 28px; white-space: nowrap; }
.tape__set span { font-family: var(--display); font-size: 15px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(245,240,230,.7); }
.tape__set b { color: var(--cream); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
.sec { position: relative; z-index: 1; padding: var(--sec-y) var(--gut); }
.sec--panel { background: var(--cream-2); }
.sec--glow {
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(0,0,0,.05), transparent 60%),
    var(--cream);
}
.head { margin-bottom: 28px; }
.head--center { text-align: center; max-width: 52ch; margin-left: auto; margin-right: auto; }
.h-display {
  margin: 12px 0 0; font-family: var(--display); font-weight: 700;
  font-size: clamp(28px, 4.5vw, 48px); line-height: 1.1; letter-spacing: -.02em; text-transform: uppercase;
}
.dek { margin: 12px 0 0; color: rgba(10,10,10,.65); font-size: 15px; }

.about-grid {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 4vw, 48px);
  align-items: center; max-width: var(--wrap); margin: 0 auto;
}
.about-frame {
  border-radius: 20px; overflow: hidden; border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 #000; background: var(--cream);
}
.about-frame img { width: 100%; }
.about-copy p { color: rgba(10,10,10,.7); margin: 0 0 14px; }
.about-copy p b { color: var(--ink); }
.quote-card {
  margin: 20px 0; padding: 18px 20px;
  background: var(--ink); color: var(--cream); border-radius: 12px;
}
.quote-card blockquote { margin: 0; font-family: var(--display); font-size: 20px; font-weight: 700; letter-spacing: .01em; }
.quote-card cite { display: block; margin-top: 8px; font-size: 12px; color: rgba(245,240,230,.55); font-style: normal; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; background: var(--cream); border: 1.5px solid rgba(10,10,10,.2); border-radius: 999px;
  font-size: 12px; font-weight: 600; color: var(--ink);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }

/* Embed */
.embed-wrap {
  max-width: 560px; margin: 28px auto 0;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.embed-wrap .twitter-tweet { margin: 0 auto !important; }
.embed-fallback { margin: 0; }
.embed-note {
  max-width: 62ch; margin: 22px auto 0; text-align: center;
  font-size: 13px; color: rgba(10,10,10,.5);
}

.get-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px);
  max-width: var(--wrap); margin: 0 auto; align-items: start;
}
.ca-card {
  padding: 20px; background: var(--cream); border: 2px solid var(--ink); border-radius: var(--radius);
  box-shadow: 6px 6px 0 #000;
}
.ca-card__head { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 12px; }
.ca-card__title { font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.ca-card__chain {
  font-size: 11px; font-weight: 700; color: var(--cream); background: var(--ink);
  padding: 4px 10px; border-radius: 999px; letter-spacing: .06em; text-transform: uppercase;
}
.ca-card__addr {
  display: block; padding: 14px; background: var(--ink); border-radius: 8px;
  font: 500 13px/1.4 var(--mono); color: var(--cream); word-break: break-all;
}
.ca-card__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.ca-card__note { margin: 12px 0 0; font-size: 12px; color: rgba(10,10,10,.5); }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 14px; }
.steps li {
  position: relative; padding: 16px 16px 16px 58px;
  background: var(--cream); border: 2px solid var(--ink); border-radius: var(--radius);
  counter-increment: step;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 14px; top: 16px;
  font-family: var(--display); font-size: 18px; font-weight: 700; color: var(--ink);
}
.steps b { display: block; margin-bottom: 4px; color: var(--ink); letter-spacing: .02em; }
.steps span { color: rgba(10,10,10,.65); font-size: 13px; }
.venues { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.venue {
  padding: 10px 14px; border: 2px solid var(--ink); border-radius: 8px;
  text-decoration: none; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink); background: var(--cream);
}
.venue.is-disabled, .venue[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.get-cta { margin-top: 18px; }

.cta-band {
  position: relative; z-index: 1; text-align: center;
  padding: clamp(64px, 8vw, 100px) var(--gut);
  background: var(--ink); color: var(--cream);
  border-block: 3px solid #000;
}
.cta-band .tag { background: var(--cream); color: var(--ink); }
.cta-band .h-display { color: var(--cream); }
.cta-band .dek { color: rgba(245,240,230,.65); }
.cta-band .gbtn--ghost { color: var(--cream); box-shadow: inset 0 0 0 2px var(--cream); }
.cta-band .gbtn--ghost:hover { background: rgba(245,240,230,.1); }
.cta-band .gbtn:not(.gbtn--ghost) { background: var(--cream); color: var(--ink); box-shadow: 0 4px 0 #333; }
.join-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }

/* Footer */
.site-footer {
  position: relative; z-index: 1;
  padding: 56px var(--gut) 32px; background: var(--cream-2); border-top: 3px solid var(--ink);
}
.foot-grid {
  display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 32px;
  max-width: var(--wrap); margin: 0 auto 36px;
}
.foot-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-size: 18px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.foot-brand img {
  width: 44px; height: 44px; border-radius: 8px; border: 2px solid var(--ink);
}
.foot-brand b { color: #444; }
.site-footer h4 {
  margin: 0 0 12px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink);
}
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li + li { margin-top: 8px; }
.site-footer a { color: rgba(10,10,10,.6); text-decoration: none; font-size: 14px; }
.site-footer a:hover { color: var(--ink); }
.foot-bottom {
  max-width: var(--wrap); margin: 0 auto; padding-top: 24px; border-top: 1px solid rgba(10,10,10,.15);
}
.foot-bottom p { margin: 0 0 10px; font-size: 12px; color: rgba(10,10,10,.5); line-height: 1.55; }

@media (max-width: 900px) {
  .hero-grid, .about-grid, .get-grid, .foot-grid { grid-template-columns: 1fr; }
  .bubble { right: 4%; top: -2%; }
}
@media (prefers-reduced-motion: reduce) {
  .tape__track, .mascot-wrap.is-alive .mascot-bob { animation: none !important; }
}
