/* HRNSS_ — pure black & white, watch dogs 2 vibe */

:root {
  --bg: #000;
  --fg: #fff;
  --accent: #8AFF3D;
  --mono: "Cascadia Code", "Consolas", "Courier New", monospace;
  --serif: Georgia, "Times New Roman", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  overflow-x: hidden;
  cursor: default;
}

::selection { background: var(--fg); color: var(--bg); }

a { color: var(--fg); text-decoration: none; cursor: pointer; }

/* ---------- background starfield ---------- */

#stars {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* ---------- nav ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 28px;
  z-index: 100;
  mix-blend-mode: difference;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
}

.nav-logo {
  width: 30px;
  height: 30px;
  display: block;
  border-radius: 7px;
  flex-shrink: 0;
}

.logo { font-size: 15px; letter-spacing: 4px; }
.logo .blink { color: var(--accent); }

.nav-right a {
  font-size: 12px;
  margin-left: 18px;
  letter-spacing: 1px;
  opacity: .7;
}
.nav-right a:hover { opacity: 1; background: var(--fg); color: var(--bg); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  overflow: hidden;
}

.scene.fill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-copy {
  position: relative;
  text-align: center;
  z-index: 2;
  pointer-events: none;
  will-change: transform;
}

.hero-logo {
  width: clamp(64px, 10vw, 96px);
  height: clamp(64px, 10vw, 96px);
  display: block;
  margin: 0 auto 22px;
  border-radius: 18px;
}

.tag {
  font-size: clamp(12px, 1.4vw, 15px);
  letter-spacing: 3px;
  opacity: .6;
  margin-bottom: 16px;
}

h1.glitch {
  font-size: clamp(3.4rem, 13vw, 12rem);
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1;
}

.serif {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2.8vw, 2rem);
  margin-top: 14px;
  opacity: .9;
}

.scroll-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 3px;
  opacity: .5;
  z-index: 2;
}

/* ---------- glitch text ---------- */

.glitch { position: relative; display: inline-block; }

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  background: var(--bg);
  overflow: hidden;
  clip-path: inset(50% 0 50% 0);
  opacity: 0;
}

.glitch::before { animation: glitch-a 3.1s infinite steps(1); }
.glitch::after  { animation: glitch-b 2.7s infinite steps(1); }

@keyframes glitch-a {
  0%, 91%, 100% { opacity: 0; }
  92% { opacity: 1; clip-path: inset(12% 0 78% 0); transform: translateX(-8px); }
  94% { opacity: 1; clip-path: inset(58% 0 22% 0); transform: translateX(6px); }
  96% { opacity: 0; }
}
@keyframes glitch-b {
  0%, 84%, 100% { opacity: 0; }
  85% { opacity: 1; clip-path: inset(70% 0 8% 0); transform: translateX(9px); }
  87% { opacity: 1; clip-path: inset(30% 0 55% 0); transform: translateX(-6px); }
  89% { opacity: 0; }
}

/* ---------- ticker ---------- */

.ticker {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--fg);
  border-bottom: 1px solid var(--fg);
  overflow: hidden;
  padding: 10px 0;
  background: var(--bg);
}

.ticker-track {
  display: flex;
  white-space: nowrap;
  animation: ticker 26s linear infinite;
  font-size: 13px;
  letter-spacing: 2px;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- full-bleed blocks ---------- */

.block.full {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  overflow: hidden;
  opacity: 0;
  transition: opacity 1s ease;
}
.block.full.in { opacity: 1; }

.corner-label {
  position: absolute;
  top: 96px;
  left: 32px;
  z-index: 2;
  font-size: clamp(12px, 1.4vw, 15px);
  letter-spacing: 5px;
  opacity: .7;
}

.caption {
  position: absolute;
  bottom: 56px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: clamp(1.15rem, 2.6vw, 1.8rem);
  white-space: nowrap;
  text-shadow: 0 0 18px #000, 0 0 6px #000;
}

/* ---------- join ---------- */

.block.full.join {
  display: flex;
  align-items: center;
  justify-content: center;
}

.join-copy { text-align: center; position: relative; z-index: 2; }

.join-copy .corner-label { position: static; display: block; margin-bottom: 18px; }

h2.glitch {
  font-size: clamp(1.8rem, 6.5vw, 5rem);
  letter-spacing: .1em;
  margin: 10px 0 16px;
}

.mono.dim { font-size: 12px; opacity: .5; letter-spacing: 2px; }

.links {
  margin-top: 38px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  font-size: 14px;
  letter-spacing: 2px;
  padding: 13px 22px;
  border: 1px solid var(--fg);
}
.btn.win {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.btn.win .win-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.btn:hover { background: var(--fg); color: var(--bg); }
.btn.accent { border-color: var(--fg); }
.btn.accent:hover { background: var(--fg); color: var(--accent); }

footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 34px 0 44px;
}

/* ---------- blink / scanlines / flash ---------- */

.blink { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 3px,
    rgba(255, 255, 255, 0.015) 3px 4px
  );
}

/* full-screen inversion burst, fired occasionally by js */
#flash {
  position: fixed;
  inset: 0;
  z-index: 998;
  pointer-events: none;
  background: var(--fg);
  opacity: 0;
}
#flash.on { opacity: .06; }
