/* ============================================================
   WEIRDING TECHNOLOGIES — design tokens & base
   Dark, defense-grade. Grotesk headlines + mono data.
   ============================================================ */

:root {
  /* base surfaces — cool near-blacks */
  --bg:        #0a0b0d;
  --bg-1:      #0e1014;
  --bg-2:      #14171c;
  --bg-3:      #1b1f26;
  --line:      rgba(232, 230, 224, 0.10);
  --line-2:    rgba(232, 230, 224, 0.18);
  --line-soft: rgba(232, 230, 224, 0.05);

  /* ink */
  --ink:       #e8e6e0;   /* warm off-white */
  --ink-1:     #b7bcc4;
  --ink-2:     #7e858f;   /* muted */
  --ink-3:     #565d67;   /* faint */

  /* brand accent (tweakable) */
  --accent:    #4ea3ff;
  --accent-dim: color-mix(in oklab, var(--accent) 22%, transparent);
  --accent-ink: #cfe6ff;

  /* data-viz hues — equal L/C, varied hue (oklch) */
  --d-sound:  oklch(0.74 0.13 248);  /* RF/blue family for acoustic */
  --d-rf:     oklch(0.76 0.13 162);  /* green */
  --d-vision: oklch(0.80 0.12 86);   /* amber */
  --d-threat: oklch(0.64 0.20 26);   /* alarm red */

  --font-display: 'Archivo', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --maxw: 1280px;
  --gutter: clamp(20px, 5vw, 80px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
html { overflow-x: clip; }

::selection { background: var(--accent); color: #04070c; }

/* faint global grain / vignette layer hooks */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background:
    radial-gradient(120% 80% at 50% -10%, transparent 60%, rgba(0,0,0,0.5) 100%);
  mix-blend-mode: normal;
}

/* ---------- typography ---------- */
h1, h2, h3, h4 { font-weight: 600; line-height: 1.02; letter-spacing: -0.02em; margin: 0; }
.display {
  font-weight: 700;
  font-size: clamp(40px, 7vw, 104px);
  letter-spacing: -0.035em;
  line-height: 0.95;
  text-wrap: balance;
}
.h2 { font-size: clamp(30px, 4vw, 56px); letter-spacing: -0.03em; }
.h3 { font-size: clamp(22px, 2.4vw, 32px); letter-spacing: -0.02em; }
p { line-height: 1.55; }

.mono {
  font-family: var(--font-mono);
  font-weight: 400;
  letter-spacing: 0.02em;
}
.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { position: relative; z-index: 2; }
.eyebrow-row { display: flex; align-items: center; gap: 14px; }
.rule { height: 1px; background: var(--line); flex: 1; }

/* section index marker */
.sec-head { display: flex; align-items: baseline; gap: 18px; }
.sec-no { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); letter-spacing: 0.1em; }

/* buttons */
.btn {
  font-family: var(--font-mono);
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 20px; border-radius: 2px;
  border: 1px solid var(--line-2); color: var(--ink);
  background: transparent; cursor: pointer; text-decoration: none;
  transition: border-color .2s, background .2s, color .2s;
}
.btn:hover { border-color: var(--accent); color: #fff; background: var(--accent-dim); }
.btn--solid { background: var(--accent); color: #04070c; border-color: var(--accent); font-weight: 500; }
.btn--solid:hover { background: #fff; border-color: #fff; color: #04070c; }
.btn .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* hairline frame helper */
.frame { border: 1px solid var(--line); }

/* corner ticks */
.ticked { position: relative; }
.ticked::before, .ticked::after {
  content: ""; position: absolute; width: 7px; height: 7px;
  border: 1px solid var(--line-2);
}
.ticked::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.ticked::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

a { color: inherit; }
