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

body {
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--text-primary);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.scroll-progress {
    position: fixed; top: 0; left: 0;
    width: 0%; height: 2px;
    background: #ffffff;
    z-index: 2000;
    transition: width 0.08s linear;
}

/* Template's particles.js network, scoped to the hero/Intro only — exactly
   how the template itself uses it (never on inner pages). */
#particles-js {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
}
#particles-js canvas { pointer-events: none; }
body.no-particles-hero #particles-js { display: none; }

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    background: var(--bg);
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    display: none;
    pointer-events: none;
}

.container {
    max-width: 1200px; margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 48px);
}

/* UTILITY */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
