/* Base */
:root {
  --bg: #0b0c10;
  --panel: #111218;
  --text: #e6e6e6;
  --muted: #b3b3b3;
  --primary: #6ee7b7;
  --primary-700: #10b981;
  --border: #22232b;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'><polygon points='0,0 0,20 6,14 12,24 14,23 8,13 20,13' fill='%2300ffa3' stroke='%23ff3bf1' stroke-width='2'/></svg>") 0 0, crosshair;
}

/* Layout */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section.muted { background: rgba(255,255,255,0.02); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* Header */
.site-header { position: sticky; top: 0; backdrop-filter: saturate(180%) blur(8px); background: rgba(11,12,16,0.6); border-bottom: 1px solid var(--border); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; }
.brand { font-weight: 800; letter-spacing: 0.2px; }
.nav a { color: var(--muted); text-decoration: none; margin-left: 16px; font-weight: 600; }
.nav a[aria-current="page"], .nav a:hover { color: var(--text); }
.nav a.glitchy { animation: nav-glitch 250ms steps(2) 2; filter: hue-rotate(25deg) contrast(1.2); }
@keyframes nav-glitch { 0% { transform: translate(0,0) skewX(0deg); text-shadow: -1px 0 var(--accent-pink), 1px 0 var(--accent-cyan);} 49% { transform: translate(-2px,-1px) skewX(10deg);} 50% { transform: translate(2px,1px) skewX(-10deg);} 100% { transform: translate(0,0) skewX(0deg);} }

/* Hero */
.hero { padding: 80px 0 64px; text-align: left; }
.hero-inner { display: grid; gap: 16px; }
.hero h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.1; margin: 0; }
.lede { color: var(--muted); max-width: 60ch; }
.cta-row { display: flex; gap: 12px; margin-top: 8px; }

.btn { display: inline-block; padding: 10px 16px; border-radius: 10px; background: var(--panel); border: 1px solid var(--border); color: var(--text); text-decoration: none; font-weight: 600; }
.btn:hover { border-color: #2f3039; }
.btn.primary { background: linear-gradient(180deg, var(--primary) 0%, var(--primary-700) 100%); color: #0b0c10; border-color: transparent; }
.btn, .nav a, .brand { cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'><polygon points='0,0 0,20 6,14 12,24 14,23 8,13 20,13' fill='%23ffea00' stroke='%2300e5ff' stroke-width='2'/></svg>") 0 0, pointer; }

/* Cards & Grid */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 800px) { .grid-2 { grid-template-columns: 1.2fr 0.8fr; } }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.card h3 { margin-top: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 24px 0; color: var(--muted); }

/* Helpers */
code { background: rgba(255,255,255,0.06); padding: 2px 6px; border-radius: 6px; }
.small { color: var(--muted); font-size: 0.95rem; }

/* ====== Janky/Weird Mashup Overrides ====== */
/* Palette amps */
:root {
  --accent-pink: #ff3bf1;
  --accent-cyan: #00e5ff;
  --accent-yellow: #ffea00;
  --neon-green: #00ffa3;
  --bg-2: #0a0014;
}

/* Loud background stripes + subtle noise */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: 
    repeating-linear-gradient(135deg, rgba(255,59,241,0.12) 0 16px, rgba(0,229,255,0.12) 16px 32px, rgba(0,255,163,0.12) 32px 48px),
    radial-gradient(1200px 800px at 70% -10%, rgba(110,231,183,0.12), transparent 60%),
    var(--bg-2);
  animation: bg-pan 18s linear infinite;
}

/* Scanlines overlay */
.scanlines { position: fixed; inset: 0; pointer-events: none; z-index: 9999; mix-blend-mode: overlay; opacity: 0.12;
  background: repeating-linear-gradient( to bottom, rgba(0,0,0,0.35) 0 2px, rgba(0,0,0,0) 2px 4px ); }

@keyframes bg-pan { from { background-position: 0 0, 0 0, 0 0; } to { background-position: 300px 0, 0 0, 0 0; } }

/* CRT vignette + flicker */
.vignette { position: fixed; inset: 0; pointer-events: none; z-index: 9998; box-shadow: inset 0 0 120px 40px rgba(0,0,0,0.6), inset 0 0 220px 120px rgba(0,0,0,0.4); }
.crt-flicker { position: fixed; inset: 0; pointer-events: none; z-index: 9997; background: radial-gradient(ellipse at center, rgba(255,255,255,0.04) 0%, rgba(0,0,0,0) 60%);
  animation: crt 1.8s infinite steps(1,end); mix-blend-mode: screen; }
@keyframes crt { 0%{ opacity: 0.02; } 10%{ opacity: 0.08; } 11%{ opacity: 0.02; } 50%{ opacity: 0.05; } 51%{ opacity: 0.02; } 100%{ opacity: 0.06; } }
/* Neon cursor canvas overlay */
.cursor-canvas { position: fixed; inset: 0; pointer-events: none; z-index: 9994; mix-blend-mode: screen; }

/* SUS sprinkles & confetti */
.sus-float, .sus-fall { position: fixed; pointer-events: none; z-index: 9993; font-family: 'Press Start 2P', 'VT323', monospace; text-shadow: 0 0 6px rgba(255,255,255,0.3); }
.sus-float { animation: sus-drift var(--dur,18s) ease-in-out infinite alternate; transform-origin: center; transform: translate(0,0) rotate(0deg) scale(var(--scale,1)); }
@keyframes sus-drift {
  0%   { transform: translate(0px, 0px) rotate(0deg) scale(var(--scale,1)); }
  100% { transform: translate(calc(var(--dx, 30) * 1px), calc(var(--dy, -20) * 1px)) rotate(calc(var(--rot, 20) * 1deg)) scale(var(--scale,1)); }
}
.sus-fall { animation: sus-fall 1.6s ease-out forwards; }
@keyframes sus-fall {
  0%   { opacity: 1; transform: translate(0,0) rotate(0deg) scale(1); }
  100% { opacity: 0; transform: translate(calc(var(--sx, 0) * 1px), calc(100vh + 60px)) rotate(calc(var(--rot, 360) * 1deg)) scale(0.8); }
}

/* Ticker bar – GeoCities energy */
.ticker { font-family: 'Comic Neue', 'Comic Sans MS', cursive; background: linear-gradient(90deg, #111218, #1a0f1f); color: var(--accent-yellow); border-top: 3px dashed var(--accent-pink); border-bottom: 3px dashed var(--accent-cyan); padding: 6px 0; text-transform: uppercase; letter-spacing: 1px; }

/* ASCII gnome walker */
.ascii-gnome { position: fixed; bottom: 96px; left: 0; transform: translateX(-120%);
  font-family: 'VT323', 'Press Start 2P', monospace; line-height: 1; font-size: 16px; white-space: pre;
  color: var(--accent-yellow); text-shadow: 0 0 4px var(--accent-yellow), 0 0 8px var(--accent-pink);
  pointer-events: none; z-index: 9996; animation: gnome-walk 28s linear infinite; }
@keyframes gnome-walk { from { transform: translateX(-120%); } to { transform: translateX(110vw); } }
@media (max-width: 720px) { .ascii-gnome { bottom: 72px; font-size: 14px; } }

/* Big corner gnome */
.big-gnome { right: 12px; top: 12px; bottom: auto; left: auto; transform: none; font-size: 28px; z-index: 9995; color: var(--accent-cyan);
  text-shadow: 0 0 6px rgba(0,229,255,0.8), 0 0 10px rgba(255,59,241,0.5); animation: dance-crazy 1.1s linear infinite; transform-origin: top right; will-change: transform; }
@keyframes dance-crazy {
  0%   { transform: rotate(-12deg) skewX(-6deg) translate(0,0) scale(1.0); }
  20%  { transform: rotate(8deg)  skewY(5deg)  translate(4px,-2px) scale(1.08); }
  40%  { transform: rotate(-6deg) skewX(6deg)  translate(-3px,2px) scale(0.96); }
  60%  { transform: rotate(12deg)            translate(5px,-3px) scale(1.1); }
  80%  { transform: rotate(-10deg)           translate(-4px,3px) scale(0.98); }
  100% { transform: rotate(0deg)             translate(0,0)      scale(1.0); }
}
@media (max-width: 720px) { .big-gnome { font-size: 22px; right: 8px; top: 8px; } }

/* Generic ASCII walkers */
.ascii-walker { position: fixed; left: 0; bottom: 120px; transform: translateX(-120%); white-space: pre; line-height: 1; font-family: 'VT323', 'Press Start 2P', monospace; font-size: 14px; pointer-events: none; z-index: 9996; color: var(--accent-cyan); text-shadow: 0 0 6px rgba(0,229,255,0.7); animation: walker-ltr 22s linear forwards; }
.ascii-walker.alt { color: var(--accent-pink); text-shadow: 0 0 6px rgba(255,59,241,0.7); }
.ascii-walker.yellow { color: var(--accent-yellow); text-shadow: 0 0 6px rgba(255,234,0,0.7); }
@keyframes walker-ltr { from { transform: translateX(-120%); } to { transform: translateX(110vw); } }
@keyframes walker-rtl { from { transform: translateX(110vw); } to { transform: translateX(-120%); } }

/* Glitchy headline */
.glitch { position: relative; font-family: 'Rubik Glitch', 'VT323', 'Press Start 2P', system-ui, sans-serif; text-transform: none; font-weight: 800; letter-spacing: 0.5px; }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; }
.glitch::before { color: var(--accent-cyan); transform: translate(2px, 0); clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%); }
.glitch::after { color: var(--accent-pink); transform: translate(-2px, 0); clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%); }
@keyframes glitch-jump { 0% { transform: translate(0,0); } 20% { transform: translate(-2px,1px); } 40% { transform: translate(2px,-1px); } 60% { transform: translate(-1px,2px); } 80% { transform: translate(1px,-2px); } 100% { transform: translate(0,0); } }
.glitch { animation: glitch-jump 0.9s steps(2) infinite; }

/* Wavy underlines and chromatic hover */
a { text-decoration: underline wavy rgba(255,59,241,0.6); text-underline-offset: 3px; }
.nav a { text-decoration-thickness: 2px; }
a:hover { color: var(--accent-cyan); text-decoration-color: rgba(0,229,255,0.8); filter: drop-shadow(0 0 8px rgba(0,229,255,0.35)); }

/* Win98-ish buttons with jiggle */
.btn { border-style: outset; box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 2px 0 0 rgba(0,0,0,0.6); }
.btn.primary { background: linear-gradient(180deg, var(--neon-green) 0%, #00c97c 100%); color: #06110a; text-shadow: 0 1px 0 rgba(255,255,255,0.4); }
@keyframes jiggle { 0%{ transform: rotate(0deg) translateY(0); } 25%{ transform: rotate(-1deg) translateY(-1px); } 50%{ transform: rotate(1deg) translateY(1px); } 75%{ transform: rotate(-1deg) translateY(0); } 100%{ transform: rotate(0deg) translateY(0);} }
.btn:hover { animation: jiggle 240ms ease-in-out; }
.btn:focus-visible { outline: 3px dashed var(--accent-yellow); outline-offset: 4px; }

/* Off-grid brutalist card */
.card { border: 3px solid #fff1; box-shadow: 6px 6px 0 0 rgba(0,0,0,0.5); }
.card.askew { transform: rotate(-1.25deg); margin-left: -8px; border-style: dashed; }
.card:hover { transform: rotate(-2deg) translateY(-2px); filter: saturate(1.3); }

/* Header: chunky + chromatic brand */
.site-header { background: #0b0c10; border-bottom: 3px double var(--accent-pink); }
.brand { font-family: 'Press Start 2P', 'VT323', system-ui, sans-serif; color: var(--accent-yellow); text-shadow: -1px 0 var(--accent-pink), 1px 0 var(--accent-cyan); }

/* Section separators harsher */
.section { padding: 64px 0; }
.section.muted { background: rgba(255,255,255,0.03); border-top: 3px dotted var(--accent-cyan); border-bottom: 3px dotted var(--accent-pink); }

/* Code pop */
code { background: rgba(255,59,241,0.12); border: 1px dashed rgba(255,59,241,0.4); }

/* Focus states everywhere */
*:focus-visible { outline: 3px dashed var(--accent-cyan); outline-offset: 2px; }

/* Reduced motion: calm it down */
@media (prefers-reduced-motion: reduce) {
  .glitch, .btn:hover, body::before, .crt-flicker, .tape, .badge, .ascii-gnome, .ascii-walker, .big-gnome, .sus-float, .sus-fall { animation: none !important; }
}

/* Skip link */
.skip-link { position: absolute; left: -9999px; top: 0; background: #000; color: #fff; padding: 8px 12px; border: 2px dashed var(--accent-yellow); z-index: 10000; }
.skip-link:focus { left: 8px; top: 8px; }

/* Cursor trail */
.trail { position: fixed; left: 0; top: 0; transform: translate(-50%, -50%); pointer-events: none; z-index: 10050; font-family: 'Press Start 2P', 'VT323', monospace; font-size: 18px; color: var(--accent-pink); text-shadow: 0 0 8px rgba(255,59,241,0.9), 0 0 12px rgba(0,229,255,0.6); opacity: 0; transition: opacity 700ms ease, transform 300ms ease; will-change: transform, opacity; }

/* Retro 88x31 badges */
.badges { display: grid; grid-template-columns: repeat(auto-fill, 88px); gap: 10px; }
.badge { width: 88px; height: 31px; background: repeating-linear-gradient(45deg, #1c1c1c 0 6px, #2a2a2a 6px 12px); border: 2px solid #000; box-shadow: inset 0 0 0 1px #fff4, 3px 3px 0 0 #000; color: #fff; font-family: 'VT323', monospace; font-size: 14px; display: grid; place-items: center; text-align: center; text-shadow: 1px 1px 0 #000; animation: badge 1.2s steps(2) infinite; }
.badge.neon { background: linear-gradient(90deg, #220022, #001122); color: var(--accent-yellow); text-shadow: 0 0 6px var(--accent-pink), 0 0 8px var(--accent-cyan); }
.badge.web1 { background: repeating-linear-gradient(90deg, #003300 0 8px, #001a00 8px 16px); color: #0ff; text-shadow: 1px 1px 0 #003; }
.badge.vapor { background: linear-gradient(45deg, #6C5CE7, #00E5FF); color: #000; text-shadow: none; }
@keyframes badge { 0% { filter: hue-rotate(0deg); } 50% { filter: hue-rotate(20deg) brightness(1.1); } 100% { filter: hue-rotate(0deg); } }

/* Hazard tape divider */
.tape { position: relative; display: block; margin: -20px 0 24px; padding: 6px 0; color: #000; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; overflow: hidden; border-top: 3px solid #000; border-bottom: 3px solid #000; transform: rotate(-1.8deg);
  background: repeating-linear-gradient(45deg, #ffd400 0 12px, #ffd400 12px 22px, #000 22px 34px, #000 34px 44px);
}
.tape { white-space: nowrap; text-shadow: -1px -1px 0 #ffd400, 1px 1px 0 #ffd400; animation: tape-scroll 12s linear infinite; }
@keyframes tape-scroll { 0% { text-indent: 0; } 100% { text-indent: -100%; } }

/* Win98 window */
.window { background: #c0c0c0; color: #000; border: 2px solid #000; box-shadow: 2px 2px 0 #fff inset, -2px -2px 0 #7a7a7a inset, 8px 8px 0 rgba(0,0,0,0.6); width: 100%; max-width: 420px; }
.window .titlebar { background: linear-gradient(180deg, #000080, #000060); color: #fff; padding: 4px 6px; display: flex; align-items: center; justify-content: space-between; cursor: grab; }
.window .titlebar:active { cursor: grabbing; }
.window .title { font-family: 'VT323', monospace; font-size: 18px; letter-spacing: 0.5px; }
.window .controls button { background: #c0c0c0; border: 2px solid #000; box-shadow: 1px 1px 0 #fff inset, -1px -1px 0 #7a7a7a inset; width: 24px; height: 20px; margin-left: 6px; font-weight: 800; }
.window .content { background: #e5e5e5; padding: 12px; border-top: 2px solid #7a7a7a; }
.window.max .content { overflow: auto; height: calc(100vh - 40px); }
.window.floating { position: fixed; }
.grabbing, .window .titlebar:active { cursor: grabbing !important; }
