/* Vela design system: tokens, type, utilities. */
:root {
  --bg: #0b0c0e;
  --bg-2: #101114;
  --bg-3: #17181c;
  --border: #1d1e22;
  --border-strong: #34363c;
  --text: #f0f1f3;
  /* The brief gives #666, which is 3.5:1 on this background (below the 4.5:1 AA bar for small text). #8c8c8c is 6:1. */
  --text-muted: #9b9da4;
  --text-dim: #333333; /* decoration only (dividers, bracket ticks); never body text */
  --accent: #e9ebef;
  --accent-2: #a9b4c2;
  --live: #dfe3e8;
  --danger: #ef4444;

  --font-display: "Sora", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", ui-monospace, "SF Mono", Menlo, monospace;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 2px;
  --maxw: 1200px;
  --nav-h: 56px;
  --section-y: 80px;
  --ease: 200ms ease;
}
@media (max-width: 720px) { :root { --section-y: 48px; } }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Dot grid on every page. The hero particles (index only) sit on top of it. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.05) 1px, transparent 0);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 100%);
}

::selection { background: rgba(233, 235, 239, 0.35); }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 300; letter-spacing: -0.02em; line-height: 1.15; }

/* Utilities */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: var(--section-y); border-top: 1px solid var(--border); }
.section--flush { border-top: 0; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--text-muted); }
.accent { color: var(--accent); }
.label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.label--accent { color: var(--accent); }
.h-display { font-family: var(--font-display); font-weight: 300; font-size: clamp(38px, 5.6vw, 68px); line-height: 1.04; letter-spacing: -0.035em; }
.h-display strong { font-weight: 500; }
.h-section { font-size: clamp(24px, 3.4vw, 38px); line-height: 1.2; letter-spacing: -0.02em; }
.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--text-muted); max-width: 52ch; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.divider { height: 1px; background: var(--border); border: 0; margin: 0; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--accent); color: #0a0a0a; padding: 8px 14px; font-family: var(--font-mono); font-size: 12px; }
.skip:focus { top: 12px; }

/* Scroll reveal. Hidden only when JS runs, so the page never depends on it. */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 500ms ease, transform 500ms ease; transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Hero entrance: runs once on load. */
@keyframes enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
[data-enter] { animation: enter 700ms cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: calc(var(--i, 0) * 90ms); }
@media (prefers-reduced-motion: reduce) { [data-enter] { animation: none; } }
