/* ============================================
   DESKTOP OVERRIDES
   ============================================ */

/**
 * On desktop, sections like Experience (5 jobs)
 * can exceed 100vh in height. With scroll-snap-type: y mandatory
 * and scroll-snap-stop: always, a single scroll gesture would jump
 * from the START of a tall section directly to the START of the
 * next section — making all overflow content completely inaccessible.
 *
 * Mobile benefits from per-section snapping (swipe-per-section feel),
 * so snapping is kept only on mobile/tablet (≤1024px).
 */

@media (min-width: 1025px) {
    body {
        scroll-snap-type: none;
    }

    section,
    .hero {
        scroll-snap-align: none;
        scroll-snap-stop: normal;
    }

    /* Without snapping, sections no longer need to fill the screen: size them
       to their content with an even rhythm. The hero keeps extra room so the
       next heading peeks in on load. */
    section:not(.hero) {
        min-height: auto;
        padding: var(--space-xl) 0;
        margin-bottom: 0;
    }

    section:not(.hero) > :last-child {
        margin-bottom: 0;
    }

    .hero {
        min-height: 75vh;
    }

    /* Keep content clear of the fixed controls on the right edge
       (theme toggle, section dots, scroll-to-top button) */
    .main-content {
        padding-right: 7rem;
    }
}
