/* ============================================================
   BASE.CSS — Invasionism Design System v2
   Elevated aesthetic — Instrument Serif + Inter
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --hue: 22;
  --accent:      oklch(74% 0.17 260);
  --accent-2:    oklch(82% 0.14 calc(260 + 22));
  --accent-deep: oklch(58% 0.18 260);
  --accent-wash: oklch(74% 0.17 260 / 0.14);
  --glow:        oklch(74% 0.17 260 / 0.5);

  --ink-0: #09090b;
  --ink-1: #0d0d10;
  --ink-2: #121216;
  --ink-3: #18181d;
  --ink-4: #23232a;
  --line:  rgba(255,255,255,0.07);
  --line-2:rgba(255,255,255,0.12);

  --fg:      #f1ecdf;
  --fg-dim:  #b5afa3;
  --fg-mute: #7a7567;

  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans:  'Inter', system-ui, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, monospace;

  --pad:    2rem;
  --motion: 1;
  --radius: 16px;
  --radius-sm: 10px;
  --max-w: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--ink-0);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #0a0a0b; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }

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

.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.mono  { font-family: var(--mono); }

section { position: relative; padding: 120px 0; }
section.divide { border-top: 1px solid var(--line); }
section.dense  { padding: 80px 0; }

/* Section heading */
.sec-head { margin-bottom: 56px; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 8px;
  border: 1px solid var(--line-2);
  background: color-mix(in oklab, var(--ink-2) 80%, transparent);
  border-radius: 999px;
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-family: var(--mono);
}
.kicker::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--glow);
  flex-shrink: 0;
}

.sec-title {
  font-family: var(--serif);
  font-size: clamp(36px, 4.5vw, 64px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin: 0 0 16px;
  color: var(--fg);
}
.sec-title em { font-style: italic; color: var(--accent); }

.sec-sub {
  font-size: clamp(15px, 1.2vw, 18px);
  color: var(--fg-dim);
  max-width: 54ch;
  line-height: 1.6;
  margin: 0;
}

/* Aurora blobs */
.aurora {
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 900px;
  z-index: 0;
  pointer-events: none;
  filter: blur(70px);
  opacity: calc(0.55 * var(--motion));
}
.aurora .blob {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
  animation: drift 24s ease-in-out infinite;
}
.aurora .b1 {
  width: 620px; height: 620px; left: 10%; top: 6%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 62%);
}
.aurora .b2 {
  width: 520px; height: 520px; right: 6%; top: 18%;
  background: radial-gradient(circle, var(--accent-2) 0%, transparent 60%);
  animation-delay: -8s; animation-duration: 30s;
}
.aurora .b3 {
  width: 720px; height: 720px; left: 38%; top: 28%;
  background: radial-gradient(circle, oklch(60% 0.14 calc(260 - 30)) 0%, transparent 65%);
  animation-delay: -14s; animation-duration: 34s;
  opacity: 0.7;
}
@keyframes drift {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(4%,-3%) scale(1.08); }
  66% { transform: translate(-3%,4%) scale(0.95); }
}

/* Grid background */
.grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 80%);
  pointer-events: none;
}

/* Fade in */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.23,1,0.32,1);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* Pulse */
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50% { opacity:.6; transform:scale(0.82); }
}

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--ink-0); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

@media (max-width: 768px) {
  section { padding: 80px 0; }
  :root { --pad: 1.25rem; }
}