@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

:root {
  --bg:          #020203;
  --text:        #ffffff;
  --text-muted:  rgba(255,255,255,0.7);
  --text-dim:    rgba(255,255,255,0.4);

  --font:        "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:        "SF Mono", ui-monospace, Menlo, Monaco, Consolas, monospace;
  --ease:        cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}
body { overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
em { font-style: italic; color: var(--text); }

/* ─── INTERACTIVE CANVAS ──────────────────────────────────────────────── */
#network-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: auto; /* Allow mouse interaction */
  background: var(--bg);
}

/* ─── ANIMATIONS ──────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ─── LAYOUT ──────────────────────────────────────────────────────────── */
.wrap { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 6vw; display: flex; flex-direction: column; justify-content: center; height: 100%; }

/* ─── HEADER ──────────────────────────────────────────────────────────── */
#site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 40px 0; transition: padding 0.3s ease; pointer-events: none; }
.header-inner { max-width: 1400px; margin: 0 auto; padding: 0 6vw; display: flex; align-items: center; justify-content: flex-start; pointer-events: auto; }
.logo-img { width: 48px; height: 48px; filter: brightness(0) invert(1); opacity: 0.9; transition: opacity 0.3s ease, transform 0.3s ease; }
#logo-link:hover .logo-img { opacity: 1; transform: scale(1.05); }

/* ─── CINEMATIC SECTIONS ──────────────────────────────────────────────── */
.s { position: relative; z-index: 1; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; pointer-events: none; }
.s .wrap { pointer-events: none; }
.hero-content, .slide-content { pointer-events: auto; } /* Re-enable pointer on text */

/* ─── HERO ────────────────────────────────────────────────────────────── */
.hero-content { display: flex; flex-direction: column; max-width: 1100px; }
.hero-heading { font-size: clamp(64px, 12vw, 160px); font-weight: 400; line-height: 0.85; letter-spacing: -0.04em; margin-bottom: 64px; text-indent: -0.05em; }
.hero-actions { display: flex; align-items: center; gap: 48px; }
.btn-primary { display: inline-flex; align-items: center; justify-content: center; padding: 16px 32px; background: var(--text); color: var(--bg); font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; transition: opacity 0.3s ease; }
.btn-primary:hover { opacity: 0.8; }
.btn-icon { height: 14px; margin-left: 12px; filter: invert(1); }
.status-indicator { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--text-dim); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #c9b8f4; animation: blink 2s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

/* ─── SLIDES ──────────────────────────────────────────────────────────── */
.slide-content { display: flex; flex-direction: column; max-width: 1000px; }
.s-num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; color: var(--text-dim); margin-bottom: 40px; }
.s-title { font-size: clamp(48px, 8vw, 110px); font-weight: 400; line-height: 0.95; letter-spacing: -0.03em; margin-bottom: 48px; }
.slide-sub { font-size: clamp(24px, 3.5vw, 40px); line-height: 1.4; color: var(--text); margin-bottom: 64px; }

.prose-stack { display: flex; flex-direction: column; gap: 32px; max-width: 700px; }
.prose-stack p { font-size: clamp(20px, 3vw, 32px); line-height: 1.5; color: var(--text-muted); }

/* ─── TYPOGRAPHIC LIST ────────────────────────────────────────────────── */
.typographic-list { display: flex; flex-direction: column; gap: 24px; }
.t-item { font-family: var(--mono); font-size: clamp(16px, 2.5vw, 24px); letter-spacing: 0.1em; color: var(--text-muted); }

/* ─── BARE CONTRACT ───────────────────────────────────────────────────── */
.contract-bare { display: inline-flex; align-items: center; gap: 24px; cursor: pointer; transition: opacity 0.3s; margin-top: 40px; }
.contract-bare:hover { opacity: 0.7; }
.c-label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; color: var(--text-dim); }
.c-val { font-family: var(--mono); font-size: 16px; letter-spacing: 0.1em; color: var(--text); word-break: break-all; }

/* ─── BUTTONS ─────────────────────────────────────────────────────────── */
.btn-text { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--text-dim); transition: color 0.3s; }
.btn-text:hover { color: var(--text); }

/* ─── RESPONSIVE ──────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  #site-header { padding: 24px 0; }
  .logo-img { width: 36px; height: 36px; }
  .hero-heading { font-size: 16vw; margin-bottom: 40px; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 32px; width: 100%; }
  .btn-primary { width: 100%; }
  .contract-bare { flex-direction: column; align-items: flex-start; gap: 8px; }
}
