/* OSINT/SCORE — Palantir Gotham / AIP & Anduril Lattice Tactical Design System
   Single source of truth for landing, console, and executive dossiers.
   Strict 2-Font Architecture:
   - Primary UI & Display Grotesk: Golos Text + IBM Plex Sans
   - Tactical Telemetry & Tabular Data: IBM Plex Mono */

@font-face {
  font-family: "OS Sans";
  src: url("/brand/fonts/GolosText-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "OS Sans";
  src: url("/brand/fonts/GolosText-SemiBold.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "OS Sans";
  src: url("/brand/fonts/GolosText-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "OS Sans";
  src: url("/brand/fonts/GolosText-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("/brand/fonts/IBMPlexSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/brand/fonts/IBMPlexSans-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/brand/fonts/IBMPlexSans-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/brand/fonts/IBMPlexSans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "OS Mono";
  src: url("/brand/fonts/IBMPlexMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "OS Mono";
  src: url("/brand/fonts/IBMPlexMono-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "OS Mono";
  src: url("/brand/fonts/IBMPlexMono-Medium.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "OS Mono";
  src: url("/brand/fonts/IBMPlexMono-Medium.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Alias legacy font names to OS Sans so no 3rd/4th font ever loads */
@font-face {
  font-family: "OS Display";
  src: url("/brand/fonts/GolosText-Bold.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "OS Serif";
  src: url("/brand/fonts/GolosText-SemiBold.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Palantir Gotham / Anduril Lattice Deep Tactical Surfaces */
  --os-ink: #060911;
  --os-ink-2: #0b101d;
  --os-ink-3: #11192c;
  --os-ink-4: #1e2b45;
  --os-line: rgba(148, 163, 184, 0.12);
  --os-line-strong: rgba(148, 163, 184, 0.22);
  --os-text: #f8fafc;
  --os-text-2: #94a3b8;
  --os-text-3: #64748b;

  /* Crisp Executive Paper — Light document surfaces */
  --os-paper: #f8fafc;
  --os-paper-2: #f1f5f9;
  --os-paper-line: #cbd5e1;
  --os-paper-ink: #090d16;
  --os-paper-muted: #475569;

  /* Tactical Signal & Telemetry Accents */
  --os-cobalt: #0ea5e9;
  --os-cobalt-hover: #38bdf8;
  --os-cobalt-deep: #0284c7;
  --os-cobalt-glow: rgba(14, 165, 233, 0.22);
  --os-cyan: #38bdf8;
  --os-cyan-soft: rgba(56, 189, 248, 0.14);
  --os-amber: #f59e0b;
  --os-amber-soft: rgba(245, 158, 11, 0.14);
  --os-green: #10b981;
  --os-green-bright: #34d399;
  --os-red: #f87171;
  --os-red-soft: rgba(248, 113, 113, 0.14);

  /* Strict 2-Font Intelligence Typography System */
  --os-font-sans: "OS Sans", "Golos Text", "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --os-font-display: var(--os-font-sans);
  --os-font-serif: var(--os-font-sans);
  --os-font-mono: "OS Mono", "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* Precision Tactical Geometry & Motion Tokens */
  --os-radius-sm: 6px;
  --os-radius: 10px;
  --os-radius-lg: 14px;
  --os-shadow: 0 24px 64px -20px rgba(2, 6, 23, 0.78);
  --os-shadow-elevated: 0 18px 42px -14px rgba(2, 6, 23, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --os-mint: #38bdf8;
  --os-copper: var(--os-cobalt);
  --os-action-ink: #ffffff;
  --os-white: #ffffff;
  --os-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --os-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --os-ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --os-ease-spring: linear(
    0, 0.009, 0.035 2.1%, 0.141 4.4%, 0.723 12.9%, 0.938 16.7%,
    1.017, 1.077, 1.121, 1.149 24.3%, 1.159, 1.163, 1.161, 1.154 29.9%,
    1.129 32.8%, 1.051 39.6%, 1.017 43.1%, 0.991, 0.977 51%,
    0.974 53.8%, 0.975 57.1%, 0.997 69.8%, 1.003 76.9%, 1
  );
  --os-duration-fast: 160ms;
  --os-duration-base: 240ms;
  --os-duration-slow: 420ms;
}

/* Shared brand mark: three precision tactical bars */
.os-mark { display: inline-flex; flex-direction: column; gap: 3px; transform: skewX(-18deg); }
.os-mark i { display: block; width: 20px; height: 3.5px; border-radius: 1.5px; background: var(--os-text); transition: transform var(--os-duration-base) var(--os-ease-out); }
.os-mark i:nth-child(2) { background: var(--os-cobalt); transform: translateX(3px); box-shadow: 0 0 8px rgba(255, 77, 46, 0.5); }
.os-mark i:nth-child(3) { background: var(--os-cyan); opacity: 0.85; }
.os-wordmark { font: 700 18px/1 var(--os-font-sans); letter-spacing: -0.025em; color: var(--os-text); }
.os-wordmark b { color: var(--os-cobalt); font-weight: 700; margin: 0 2px; }

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .ambient-orb,
  .scanline-overlay,
  .graph .ring,
  .graph .sweep {
    animation: none !important;
  }
}
