/* ═══════════════════════════════════════════
   BASE — Reset, Body, Layout Foundations
   ═══════════════════════════════════════════ */

/* ── Reset ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── Root elements ── */
html, body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Space Grotesk', sans-serif;
    overflow-x: hidden;
}

/* html already carries class="scroll-smooth" in the markup — this is
   what actually turns it on, for the new anchor-link CTAs (e.g. finale
   chapter → diploma). Reduced-motion users get the instant jump instead,
   see the override in responsive.css. */
html.scroll-smooth {
    scroll-behavior: smooth;
}

/* ── Canvas background ── */
#vortex-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* ── Main content layer ── */
main {
    position: relative;
    z-index: 5;
}

/* ── Shared panel layout ── */
section.panel {
    position: relative;
    background: rgba(5, 0, 5, 0.88);
    padding: 6rem 1.5rem;
}

/* ── Section headings ── */
.section-heading {
    font-size: clamp(2rem, 5vw, 3.3rem);
    font-weight: 700;
    text-align: center;
    letter-spacing: -0.02em;
    margin-bottom: 3.5rem;
}
.section-heading span {
    color: var(--neon);
    text-shadow: 0 0 20px var(--neon-glow);
}
