/* ═══════════════════════════════════════════════════════
   SOUL OVER SILICON — stylesheet
   palette: #000 / #fff / #1a1a1a / #333 / #888
   ═══════════════════════════════════════════════════════ */

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

:root {
  --black:   #000000;
  --white:   #ffffff;
  --off-white: #e8e8e8;
  --dim:     #888888;
  --dark:    #0a0a0a;
  --border:  #2a2a2a;
  --mono: 'Share Tech Mono', 'Courier New', monospace;
  --display: 'VT323', 'Share Tech Mono', monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

/* ══════════════════════ OVERLAYS ══ */

.scanlines {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    rgba(255,255,255,0.012) 2px,
    rgba(255,255,255,0.012) 4px
  );
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  animation: noiseShift 0.5s steps(1) infinite;
}

@keyframes noiseShift {
  0%   { background-position: 0 0; }
  20%  { background-position: -50px -80px; }
  40%  { background-position: 80px -30px; }
  60%  { background-position: -20px 100px; }
  80%  { background-position: 60px 60px; }
  100% { background-position: 0 0; }
}

/* ══════════════════════ NAV ══ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 2.5rem;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.nav-id {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--dim);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--dim);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 1px;
  background: var(--white);
  transition: width 0.3s;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-links a:hover::after {
  width: 100%;
}

/* ══════════════════════ HERO ══ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

/* subtle grid background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* radial vignette */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.85) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

/* ── logo ── */

.logo-wrap {
  margin-bottom: 0.5rem;
}

.logo-img {
  width: clamp(330px, 68.75vw, 605px);
  height: auto;
  display: block;
}

/* ── glitch title ── */

.hero-title {
  font-family: var(--display);
  font-size: clamp(2.8rem, 8vw, 7rem);
  font-weight: normal;
  letter-spacing: 0.08em;
  line-height: 1;
  position: relative;
}

.glitch {
  animation: glitch-skew 4s infinite linear alternate-reverse;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch::before {
  left: 2px;
  text-shadow: -1px 0 rgba(255,255,255,0.6);
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
  animation: glitch-anim1 3s infinite linear alternate-reverse;
}

.glitch::after {
  left: -2px;
  text-shadow: 1px 0 rgba(255,255,255,0.4);
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
  animation: glitch-anim2 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-skew {
  0%  { transform: skew(0deg); }
  85% { transform: skew(0deg); }
  88% { transform: skew(-1deg); }
  90% { transform: skew(0.5deg); }
  100%{ transform: skew(0deg); }
}

@keyframes glitch-anim1 {
  0%  { clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%); transform: translate(0); }
  80% { clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%); transform: translate(0); }
  85% { clip-path: polygon(0 20%, 100% 20%, 100% 42%, 0 42%); transform: translate(-3px); }
  90% { clip-path: polygon(0 5%, 100% 5%, 100% 28%, 0 28%); transform: translate(2px); }
  100%{ clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%); transform: translate(0); }
}

@keyframes glitch-anim2 {
  0%  { clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%); transform: translate(0); }
  78% { clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%); transform: translate(0); }
  83% { clip-path: polygon(0 70%, 100% 70%, 100% 88%, 0 88%); transform: translate(3px); }
  88% { clip-path: polygon(0 62%, 100% 62%, 100% 95%, 0 95%); transform: translate(-2px); }
  100%{ clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%); transform: translate(0); }
}

/* ── tagline ── */

.hero-sub {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--dim);
  min-height: 1.5em;
}

#tagline::after {
  content: '█';
  animation: blink 1s step-end infinite;
  color: var(--white);
  margin-left: 2px;
}

/* ── signal line ── */

.signal-line {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--dim);
}

.signal-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--white);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.2; transform: scale(0.6); }
}

/* ── CTA button ── */

.btn-primary {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  color: var(--black);
  background: var(--white);
  padding: 0.85rem 2.2rem;
  text-decoration: none;
  position: relative;
  transition: background 0.2s, color 0.2s;
  margin-top: 0.5rem;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: -3px;
  border: 1px solid rgba(255,255,255,0.2);
}

.btn-primary:hover {
  background: var(--black);
  color: var(--white);
  outline: 1px solid var(--white);
}

/* ══════════════════════ SHARED SECTION ══ */

.section-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--dim);
  white-space: nowrap;
}

.divider {
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ══════════════════════ MANIFESTO ══ */

.manifesto {
  border-top: 1px solid var(--border);
}

.manifesto-lead {
  font-family: var(--display);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  line-height: 1.5;
  color: var(--off-white);
  margin-bottom: 3.5rem;
  font-weight: normal;
}

.principles-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.manifesto-blocks {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.m-block {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.m-block:first-child {
  border-top: 1px solid var(--border);
}

.m-num {
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--border);
  padding-top: 0.1rem;
  line-height: 1;
}

.m-text h3 {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  font-weight: normal;
  color: var(--white);
  margin-bottom: 0.8rem;
}

.m-text p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--dim);
}

.manifesto-quote {
  margin-top: 3.5rem;
  padding: 2rem 2rem 2rem 1.5rem;
  border-left: 2px solid var(--white);
  font-family: var(--display);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: normal;
  font-style: normal;
  line-height: 1.6;
  color: var(--off-white);
}

/* ══════════════════════ CONTACT ══ */

.contact {
  border-top: 1px solid var(--border);
}

.contact-lead {
  font-size: 0.9rem;
  color: var(--dim);
  line-height: 1.8;
  max-width: 560px;
  margin-bottom: 2.5rem;
}

.contact-card {
  border: 1px solid var(--border);
  margin-bottom: 2rem;
  position: relative;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  width: 10px;
  height: 10px;
  border-top: 1px solid var(--white);
  border-left: 1px solid var(--white);
}

.contact-card::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 10px;
  height: 10px;
  border-bottom: 1px solid var(--white);
  border-right: 1px solid var(--white);
}

.contact-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.contact-row:last-child {
  border-bottom: none;
}

.contact-key {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: var(--dim);
  display: flex;
  align-items: center;
}

.contact-val {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--white);
}

.pgp-fingerprint {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  word-break: break-all;
}

.contact-row--pgp {
  grid-template-columns: 1fr;
}

.contact-row--pgp .contact-key {
  margin-bottom: 0.5rem;
}

.pgp-key {
  font-family: var(--mono);
  font-size: 0.6rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-all;
  margin: 0;
  color: var(--dim);
  max-height: 200px;
  overflow-y: auto;
}

.contact-link {
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: border-color 0.2s;
}

.contact-link:hover {
  border-color: var(--white);
}

.contact-note {
  font-size: 0.75rem;
  color: var(--dim);
  line-height: 1.7;
  letter-spacing: 0.05em;
}

/* ══════════════════════ FOOTER ══ */

.footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 2.5rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-copy,
.footer-tag {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--dim);
}

/* ══════════════════════ ANIMATIONS ══ */

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.blink {
  animation: blink 1s step-end infinite;
  margin-right: 0.5rem;
}

/* ══════════════════════ SCROLL REVEAL ══ */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════ RESPONSIVE ══ */

@media (max-width: 640px) {
  .nav {
    padding: 1rem 1.5rem;
  }
  .nav-links {
    gap: 1.5rem;
  }
  .section-inner {
    padding: 4rem 1.5rem;
  }
  .contact-row {
    grid-template-columns: 100px 1fr;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}
