/* ═══════════════════════════════════════════════════
   SAHILIEN — COSMIC MANIFESTO
   Theme: Type-III Civilization / Intergalactic
═══════════════════════════════════════════════════ */

:root {
  --void:       #000008;
  --void-2:     #030012;
  --surface:    rgba(3, 1, 16, 0.82);
  --surface-2:  rgba(6, 2, 24, 0.92);

  --purple:         #7c3aed;
  --purple-bright:  #8b5cf6;
  --purple-glow:    #a855f7;
  --purple-electric:#c084fc;
  --purple-dim:     rgba(139, 92, 246, 0.10);
  --purple-border:  rgba(139, 92, 246, 0.18);

  --gold:       #f59e0b;
  --gold-bright:#fbbf24;
  --gold-glow:  rgba(245, 158, 11, 0.55);
  --gold-dim:   rgba(245, 158, 11, 0.08);

  --blue:       #0ea5e9;
  --blue-bright:#38bdf8;
  --blue-dim:   rgba(14, 165, 233, 0.10);

  --red:        #f87171;

  --text:       #f1f5f9;
  --text-2:     #cbd5e1;
  --text-dim:   #64748b;
  --text-muted: #2d3a4f;

  --border:        rgba(139, 92, 246, 0.13);
  --border-bright: rgba(139, 92, 246, 0.32);
  --border-gold:   rgba(245, 158, 11, 0.22);

  --font-display: 'Orbitron', monospace;
  --font-body:    'Space Grotesk', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
}

/* ── Reset ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background:
    radial-gradient(ellipse 140% 80% at 88% -8%,  rgba(100, 20, 180, 0.20) 0%, transparent 55%),
    radial-gradient(ellipse 80%  65% at -8%  68%,  rgba(10, 100, 210, 0.12) 0%, transparent 52%),
    radial-gradient(ellipse 70%  55% at 112% 95%, rgba(90,  20, 170, 0.14) 0%, transparent 50%),
    radial-gradient(ellipse 50%  40% at 50%  50%, rgba(20,  0,  60, 0.30)  0%, transparent 60%),
    var(--void);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--void); }
::-webkit-scrollbar-thumb { background: var(--purple-bright); border-radius: 2px; }

::selection { background: rgba(139, 92, 246, 0.35); color: #fff; }

a { color: var(--purple-electric); text-decoration: none; transition: color 0.2s; }
a:hover { color: #fff; }

/* ── Fixed starfield canvas ─────────────────────── */
#starfield {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* ── Grid + scanline overlay ────────────────────── */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 3px,
      rgba(0, 0, 0, 0.07) 3px,
      rgba(0, 0, 0, 0.07) 4px
    ),
    linear-gradient(rgba(139, 92, 246, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.028) 1px, transparent 1px);
  background-size: 100% 4px, 70px 70px, 70px 70px;
}

/* ── Nav ────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.5rem 4vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}

nav.scrolled {
  background: rgba(0, 0, 10, 0.75);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border-bottom-color: var(--border);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--purple-electric) 0%, var(--gold-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-links a {
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.25s;
}

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

.nav-mobile-btn {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}

.nav-mobile-btn span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text-dim);
  transition: all 0.3s;
}

/* ── Shared section layout ──────────────────────── */
main { position: relative; z-index: 2; }

section {
  position: relative;
  padding: 8rem 8vw;
}

section:not(#hero) {
  border-top: 1px solid var(--border);
}

/* ── Section header ─────────────────────────────── */
.section-header { margin-bottom: 5rem; }

.section-num-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.section-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--purple-bright);
  letter-spacing: 0.12em;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--purple-border);
  border-radius: 3px;
}

.section-label-text {
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--purple-glow);
}

.section-rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--purple-border), transparent);
  max-width: 120px;
}

.section-title {
  font-family: var(--font-body);
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.section-sub {
  font-size: 1rem;
  color: var(--text-dim);
  max-width: 540px;
  line-height: 1.75;
}

/* ── Reveal animation ───────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

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

/* ════════════════════════════════════════
   HERO
════════════════════════════════════════ */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 8vw;
  border-top: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 960px;
  transition: transform 0.15s ease-out;
}

.hero-ident {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.ident-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(139, 92, 246, 0.07);
  border: 1px solid var(--border);
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
}

.ident-tag.hi {
  color: var(--purple-electric);
  border-color: var(--purple-border);
  background: var(--purple-dim);
}

.ident-sep {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
}

.hero-rule {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--purple-border), var(--border-gold), transparent);
  margin-bottom: 2.5rem;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3.8rem, 12vw, 10.5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.88;
  color: #fff;
  text-shadow:
    0 0 60px rgba(139, 92, 246, 0.25),
    0 0 120px rgba(139, 92, 246, 0.10);
  margin-bottom: 1.5rem;
}

.hero-headline .line-two {
  display: block;
  background: linear-gradient(135deg, #fff 0%, rgba(200, 180, 255, 0.85) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-type3 {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.type3-label {
  font-family: var(--font-display);
  font-size: clamp(0.8rem, 2vw, 1.35rem);
  font-weight: 400;
  letter-spacing: 0.22em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.type3-num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6.5vw, 5.5rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--gold);
  text-shadow:
    0 0 25px var(--gold-glow),
    0 0 60px rgba(245, 158, 11, 0.4),
    0 0 120px rgba(245, 158, 11, 0.15);
}

.hero-sub {
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  color: var(--text-dim);
  line-height: 1.8;
  margin: 1.5rem 0 2.5rem;
  max-width: 620px;
}

.hero-sub em {
  font-style: normal;
  color: var(--text-2);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.85rem 1.8rem;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
}

.btn::before, .btn::after {
  content: '';
  position: absolute;
  width: 7px; height: 7px;
  border-color: currentColor;
  border-style: solid;
  opacity: 0.5;
  transition: opacity 0.25s;
}
.btn::before { top: -1px; left: -1px; border-width: 1.5px 0 0 1.5px; }
.btn::after  { bottom: -1px; right: -1px; border-width: 0 1.5px 1.5px 0; }
.btn:hover::before, .btn:hover::after { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-glow) 100%);
  color: #fff;
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.35), inset 0 1px 0 rgba(255,255,255,0.1);
}

.btn-primary:hover {
  color: #fff;
  box-shadow: 0 0 55px rgba(139, 92, 246, 0.6), inset 0 1px 0 rgba(255,255,255,0.15);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  color: var(--purple-electric);
  border-color: var(--purple-border);
  background: var(--purple-dim);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, #d97706 100%);
  color: var(--void);
  box-shadow: 0 0 25px var(--gold-glow);
}

.btn-gold:hover {
  color: var(--void);
  box-shadow: 0 0 50px var(--gold-glow);
  transform: translateY(-1px);
}

.hero-coords {
  position: absolute;
  bottom: 2.5rem;
  left: 8vw;
  right: 8vw;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.coord-dot { color: var(--purple-border); font-size: 0.5rem; }

.hero-scroll {
  position: absolute;
  right: 8vw;
  bottom: 2.5rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.5rem;
  letter-spacing: 0.2em;
}

.scroll-bar {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, transparent, var(--purple-border));
  animation: scroll-grow 2s ease-in-out infinite;
}

@keyframes scroll-grow {
  0%, 100% { transform: scaleY(0.3); transform-origin: top; opacity: 0.4; }
  50%       { transform: scaleY(1);   opacity: 1; }
}

/* ════════════════════════════════════════
   ACTIVE OPERATIONS
════════════════════════════════════════ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.project-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2rem;
  backdrop-filter: blur(8px);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.project-card::before, .project-card::after {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  border-color: var(--purple-bright);
  border-style: solid;
  transition: border-color 0.3s;
}
.project-card::before { top: -1px; left: -1px; border-width: 1.5px 0 0 1.5px; }
.project-card::after  { bottom: -1px; right: -1px; border-width: 0 1.5px 1.5px 0; }

.project-card:hover {
  border-color: var(--purple-border);
  box-shadow:
    0 0 0 1px rgba(139, 92, 246, 0.08),
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(139, 92, 246, 0.10);
  transform: translateY(-3px);
}

.project-card:hover::before, .project-card:hover::after {
  border-color: var(--purple-electric);
}

.project-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 2px;
  margin-bottom: 1.25rem;
}

.status-active {
  background: rgba(34, 197, 94, 0.08);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.18);
}

.status-active::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.status-stealth {
  background: rgba(245, 158, 11, 0.08);
  color: var(--gold-bright);
  border: 1px solid rgba(245, 158, 11, 0.18);
}

.status-classified {
  background: rgba(248, 113, 113, 0.08);
  color: var(--red);
  border: 1px solid rgba(248, 113, 113, 0.18);
}

.project-id {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.project-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.65rem;
  letter-spacing: -0.01em;
}

.project-desc {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.72;
  margin-bottom: 1.5rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  background: var(--purple-dim);
  color: var(--purple-electric);
  border: 1px solid var(--purple-border);
  border-radius: 2px;
}

.tag-gold {
  background: var(--gold-dim);
  color: var(--gold-bright);
  border-color: var(--border-gold);
}

/* ════════════════════════════════════════
   MISSION PARAMETERS (Goals)
════════════════════════════════════════ */
.goals-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem 6rem;
}

.goals-phase {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--purple-glow);
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.goals-phase::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.goal-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 2px solid var(--purple-border);
  border-radius: 3px;
  transition: all 0.25s;
}

.goal-item:hover {
  border-left-color: var(--purple-bright);
  background: var(--surface-2);
  box-shadow: -4px 0 20px rgba(139, 92, 246, 0.1);
}

.goal-item.gold {
  border-left-color: var(--border-gold);
}

.goal-item.gold:hover {
  border-left-color: var(--gold-bright);
  box-shadow: -4px 0 20px rgba(245, 158, 11, 0.1);
}

.goal-icon {
  font-size: 0.9rem;
  padding-top: 0.2rem;
  opacity: 0.8;
}

.goal-text strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}

.goal-text span {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* Kardashev full-width */
.kardashev {
  grid-column: 1 / -1;
  margin-top: 1rem;
  padding: 2.5rem;
  background: var(--surface);
  border: 1px solid var(--border-gold);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.kardashev::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.5;
}

.kardashev-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1rem;
}

.kardashev-title {
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.kardashev-current {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.kardashev p {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.72;
  margin-bottom: 2rem;
  max-width: 680px;
}

.kbar-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  margin-bottom: 0.75rem;
  position: relative;
  overflow: hidden;
}

.kbar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--purple-bright), var(--gold));
  border-radius: 3px;
  transition: width 1.8s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 12px var(--gold-glow);
}

.kbar-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-top: 0.5rem;
}

.kbar-labels span.now {
  color: var(--gold-bright);
}

/* ════════════════════════════════════════
   CASUALTIES & INTEL (Lessons)
════════════════════════════════════════ */
.lessons-grid {
  display: grid;
  gap: 1.25rem;
  max-width: 780px;
}

.lesson-card {
  position: relative;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 2rem;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: all 0.25s;
}

.lesson-card::before, .lesson-card::after {
  content: '';
  position: absolute;
  width: 10px; height: 10px;
  border-color: rgba(248, 113, 113, 0.4);
  border-style: solid;
}
.lesson-card::before { top: -1px; left: -1px; border-width: 1.5px 0 0 1.5px; }
.lesson-card::after  { bottom: -1px; right: -1px; border-width: 0 1.5px 1.5px 0; }

.lesson-card:hover {
  border-color: rgba(248, 113, 113, 0.2);
  background: var(--surface-2);
}

.lesson-num {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--red);
  letter-spacing: 0.1em;
  opacity: 0.7;
  padding-top: 0.2rem;
}

.lesson-fail {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.lesson-learn {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.lesson-detail {
  font-size: 0.84rem;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ════════════════════════════════════════
   TRANSMISSIONS (Quotes)
════════════════════════════════════════ */
#transmissions { text-align: left; }

.quotes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.5rem;
}

.quote-card {
  position: relative;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: all 0.25s;
}

.quote-card::before, .quote-card::after {
  content: '';
  position: absolute;
  width: 10px; height: 10px;
  border-color: var(--purple-border);
  border-style: solid;
  transition: border-color 0.3s;
}
.quote-card::before { top: -1px; left: -1px; border-width: 1.5px 0 0 1.5px; }
.quote-card::after  { bottom: -1px; right: -1px; border-width: 0 1.5px 1.5px 0; }

.quote-card:hover {
  border-color: var(--purple-border);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 20px rgba(139,92,246,0.07);
}

.quote-card:hover::before, .quote-card:hover::after {
  border-color: var(--purple-electric);
}

.quote-signal {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  color: var(--purple-bright);
  margin-bottom: 1rem;
  opacity: 0.7;
}

.quote-text {
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.78;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.quote-source {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ════════════════════════════════════════
   DISPATCHES (Blog)
════════════════════════════════════════ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.blog-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2rem;
  cursor: pointer;
  transition: all 0.3s;
}

.blog-card::before, .blog-card::after {
  content: '';
  position: absolute;
  width: 10px; height: 10px;
  border-color: var(--border);
  border-style: solid;
  transition: border-color 0.3s;
}
.blog-card::before { top: -1px; left: -1px; border-width: 1.5px 0 0 1.5px; }
.blog-card::after  { bottom: -1px; right: -1px; border-width: 0 1.5px 1.5px 0; }

.blog-card:hover {
  border-color: var(--purple-border);
  transform: translateY(-3px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.45), 0 0 30px rgba(139,92,246,0.09);
}

.blog-card:hover::before, .blog-card:hover::after {
  border-color: var(--purple-electric);
}

.blog-dispatch {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--purple-bright);
  margin-bottom: 0.3rem;
  opacity: 0.7;
}

.blog-date {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.blog-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.blog-excerpt {
  font-size: 0.84rem;
  color: var(--text-dim);
  line-height: 1.72;
  margin-bottom: 1.75rem;
}

.blog-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--purple-glow);
  transition: gap 0.2s;
}

.blog-card:hover .blog-cta { gap: 0.8rem; }

.blog-cta svg { transition: transform 0.2s; }
.blog-card:hover .blog-cta svg { transform: translateX(3px); }

.blog-card--empty {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

.blog-title--placeholder,
.blog-excerpt--placeholder {
  color: var(--text-muted);
  font-style: italic;
}

/* ════════════════════════════════════════
   OPEN COMMS (Contact)
════════════════════════════════════════ */
#contact {
  text-align: center;
}

#contact .section-num-label {
  justify-content: center;
}

.contact-headline {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #fff;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 40px rgba(139, 92, 246, 0.3);
}

.contact-sub {
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto 3.5rem;
  line-height: 1.8;
}

.contact-sub strong { color: var(--text-2); }

.contact-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.contact-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: all 0.25s;
  backdrop-filter: blur(8px);
}

.contact-link::before, .contact-link::after {
  content: '';
  position: absolute;
  width: 8px; height: 8px;
  border-color: var(--border);
  border-style: solid;
  transition: border-color 0.25s;
}
.contact-link::before { top: -1px; left: -1px; border-width: 1.5px 0 0 1.5px; }
.contact-link::after  { bottom: -1px; right: -1px; border-width: 0 1.5px 1.5px 0; }

.contact-link:hover {
  color: var(--purple-electric);
  border-color: var(--purple-border);
  background: var(--purple-dim);
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.15);
}

.contact-link:hover::before, .contact-link:hover::after {
  border-color: var(--purple-electric);
}

.contact-email {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.contact-email a {
  color: var(--gold-bright);
}

.contact-email a:hover { color: #fff; }

/* ── Footer ─────────────────────────────────────── */
footer {
  position: relative;
  z-index: 2;
  padding: 2rem 8vw;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--purple-electric), var(--gold-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-meta {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* ── Glitch text effect ─────────────────────────── */
.glitch {
  cursor: default;
  transition: text-shadow 0.1s;
}

.glitch:hover {
  text-shadow:
    2px 0 var(--red), -2px 0 var(--blue),
    0 0 60px rgba(139, 92, 246, 0.5);
}

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 900px) {
  section { padding: 5rem 6vw; }
  #hero   { padding: 0 6vw; }

  .nav-links { display: none; }
  .nav-mobile-btn { display: flex; }

  .goals-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .kardashev { grid-column: 1; }
  .hero-coords { display: none; }
  .hero-scroll { display: none; }

  footer { flex-direction: column; gap: 0.75rem; text-align: center; }
}

@media (max-width: 560px) {
  .hero-headline { font-size: clamp(3rem, 16vw, 5rem); }
  .type3-num     { font-size: clamp(1.8rem, 10vw, 3rem); }
  .lesson-card   { grid-template-columns: 1fr; gap: 0.75rem; }
}
