/* ==========================================================================
   ONE CHORD TILL ANARCHY — design system
   Direction: broadcast / system-status readout, not neon nightclub.
   ========================================================================== */

:root {
  /* Color */
  --bg:          #0A0C0F;
  --bg-panel:    #14171C;
  --bg-panel-2:  #1B1F25;
  --border:      #2A2E33;
  --border-hi:   #3A4048;

  --red:         #C13A2E;   /* alarm / primary accent */
  --red-dim:     #7A241C;
  --red-glow:    rgba(193, 58, 46, 0.35);

  --cyan:        #4FD8DE;   /* system readout / secondary accent */
  --cyan-dim:    #2E8388;
  --cyan-glow:   rgba(79, 216, 222, 0.28);

  --text:        #E8E6E0;
  --text-muted:  #8B9096;
  --text-faint:  #575D64;

  /* Type */
  --font-display: 'Anton', 'Archivo Black', 'JetBrains Mono', sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'JetBrains Mono', 'IBM Plex Mono', monospace;

  /* Layout */
  --max-w: 1120px;
  --gutter: 24px;
  --status-h: 34px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Ambient grain — degradation-stack texture, always faint, never decorative-heavy */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Scanline wash — very faint, static, not animated (avoid AI-slop motion) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 998;
  opacity: 0.035;
  background: repeating-linear-gradient(
    to bottom,
    #fff 0px,
    #fff 1px,
    transparent 1px,
    transparent 3px
  );
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Status bar (signature element) ---------- */

.status-bar {
  height: var(--status-h);
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #F5F4F0;
}

.status-bar .status-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 var(--gutter);
}

.status-bar .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 6px var(--red-glow);
  margin-right: 8px;
  animation: pulse 2.4s ease-in-out infinite;
}

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

.status-bar .status-cyan { color: var(--cyan); }
.status-bar .status-red { color: var(--red); }
.status-bar .status-inner > span:not(:first-child):not(.status-cyan):not(.status-red) { color: #C7C4BC; }

@media (prefers-reduced-motion: reduce) {
  .status-bar .dot { animation: none; }
}

/* ---------- Nav ---------- */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  max-width: var(--max-w);
  margin: 0 auto;
}

.nav-mark {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-mark img {
  height: 30px;
  width: auto;
  display: block;
}

.nav-mark span { color: var(--red); }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links a {
  color: var(--text-muted);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
  border-color: var(--red);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-hi);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 8px 10px;
  letter-spacing: 0.08em;
  cursor: pointer;
}

@media (max-width: 780px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px var(--gutter); display: block; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: block; }
}

/* ---------- Type scale ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0;
  color: #FFFFFF;
}

h1 { font-size: clamp(2.4rem, 7vw, 4.6rem); line-height: 1.0; letter-spacing: 0.015em; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); line-height: 1.1; }
h3 { font-family: var(--font-mono); font-weight: 700; text-transform: none; letter-spacing: 0.01em; font-size: 1.1rem; line-height: 1.3; color: var(--text); }

p { margin: 0 0 1em; color: var(--text-muted); }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--red);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("../images/hero-earth.webp");
  background-size: cover;
  background-position: center 55%;
  opacity: 0.55;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at 15% 0%, var(--red-glow), transparent 55%),
    linear-gradient(180deg, rgba(10,12,15,0.35) 0%, rgba(10,12,15,0.75) 55%, var(--bg) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 110px 0 90px;
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 14px;
}
.hero-thesis {
  max-width: 760px;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  color: #F5F4F0;
  font-family: var(--font-mono);
  font-weight: 700;
  line-height: 1.45;
  margin: 22px 0 34px;
}

.hero-thesis .em { color: var(--red); }

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */

.btn {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 13px 22px;
  border: 1px solid var(--border-hi);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.btn:hover { border-color: var(--red); background: rgba(193,58,46,0.08); }

.btn-solid {
  background: var(--red);
  border-color: var(--red);
  color: #0A0C0F;
  font-weight: 700;
}

.btn-solid:hover { background: #d8493c; border-color: #d8493c; }

.btn-cyan { border-color: var(--cyan-dim); }
.btn-cyan:hover { border-color: var(--cyan); background: rgba(79,216,222,0.08); }

/* ---------- Sections ---------- */

.section {
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  gap: 20px;
  flex-wrap: wrap;
}

.section-head .link-more {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--cyan);
  white-space: nowrap;
}

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.card {
  background: var(--bg-panel);
  padding: 26px;
}

.card .card-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.92rem; }

@media (max-width: 900px) {
  .card-grid { grid-template-columns: 1fr; }
}

/* ---------- News list ---------- */

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

.news-item {
  display: flex;
  gap: 28px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}

.news-date {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-faint);
  white-space: nowrap;
  min-width: 96px;
}

.news-title { color: var(--text); font-size: 0.98rem; }
.news-title:hover { color: var(--cyan); }

@media (max-width: 600px) {
  .news-item { flex-direction: column; gap: 4px; }
}

/* ---------- ZRI callout band ---------- */

.callout {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  padding: 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.callout p { max-width: 480px; }

@media (max-width: 700px) {
  .callout { padding: 30px; }
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 50px 0 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 34px;
}

.footer-links {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.footer-links a:hover { color: var(--cyan); }

.footer-credit {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  font-style: italic;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  border: 1px solid var(--border-hi);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.footer-social a:hover { border-color: var(--cyan); color: var(--cyan); }

/* ---------- Focus states (accessibility floor) ---------- */

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
